@idmwx/idmui-gl4 0.6.0 → 0.6.1

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
@@ -2,15 +2,15 @@ var Eo = Object.defineProperty;
2
2
  var jo = (o, e, t) => e in o ? Eo(o, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[e] = t;
3
3
  var re = (o, e, t) => (jo(o, typeof e != "symbol" ? e + "" : e, t), t);
4
4
  import Be from "axios";
5
- import { openBlock as y, createElementBlock as T, withDirectives as Jt, createElementVNode as l, vShow as eo, toDisplayString as x, normalizeStyle as oe, resolveComponent as k, createVNode as h, withCtx as g, mergeProps as E, normalizeClass as Ne, createTextVNode as Z, Fragment as ve, renderList as ze, createBlock as U, createCommentVNode as N, withModifiers as Fo } from "vue";
6
- import _e from "mapbox-gl";
5
+ import { openBlock as y, createElementBlock as T, withDirectives as eo, createElementVNode as l, vShow as to, toDisplayString as w, normalizeStyle as oe, resolveComponent as k, createVNode as h, withCtx as g, mergeProps as E, normalizeClass as Ne, createTextVNode as Z, Fragment as _e, renderList as Le, createBlock as U, createCommentVNode as F, withModifiers as Fo } from "vue";
6
+ import ke from "mapbox-gl";
7
7
  import { LngLatHelper as ie, TropicalHelper as Ao, LaneHelper as Fe } from "@idm-plugin/geo";
8
- import * as F from "@turf/turf";
9
- import { LayerHelper as Qt, CompanyHelper as No } from "@idm-plugin/tag-nop";
8
+ import * as j from "@turf/turf";
9
+ import { LayerHelper as Jt, CompanyHelper as No } from "@idm-plugin/tag-nop";
10
10
  import O from "moment";
11
11
  import Ho from "@mapbox/sphericalmercator";
12
12
  import { LayerHelper as Wo } from "@idm-plugin/tag";
13
- import { Meteo2Assist as to } from "@idm-plugin/meteo";
13
+ import { Meteo2Assist as oo } from "@idm-plugin/meteo";
14
14
  import { useTheme as Go } from "vuetify";
15
15
  const q = (o, e) => {
16
16
  const t = o.__vccOpts || o;
@@ -375,7 +375,7 @@ const $o = {
375
375
  if (t) {
376
376
  this.showZone = !0, this.form = { ...t.properties };
377
377
  const a = document.getElementById("idm-gl4-zone-info");
378
- this.marker ? this.marker.setLngLat([o.lngLat.lng, o.lngLat.lat]) : this.marker = new _e.Marker(a).setLngLat([o.lngLat.lng, o.lngLat.lat]).setOffset([0, 0]).addTo(this.map);
378
+ this.marker ? this.marker.setLngLat([o.lngLat.lng, o.lngLat.lat]) : this.marker = new ke.Marker(a).setLngLat([o.lngLat.lng, o.lngLat.lat]).setOffset([0, 0]).addTo(this.map);
379
379
  }
380
380
  },
381
381
  handleRender() {
@@ -465,7 +465,7 @@ const $o = {
465
465
  }, ea = { id: "idm-gl4-zone-info" }, ta = ["innerHTML"];
466
466
  function oa(o, e, t, i, a, r) {
467
467
  var s;
468
- return Jt((y(), T("div", ea, [
468
+ return eo((y(), T("div", ea, [
469
469
  l("div", {
470
470
  class: "iconfont close",
471
471
  onClick: e[0] || (e[0] = (c) => a.showZone = !1)
@@ -475,7 +475,7 @@ function oa(o, e, t, i, a, r) {
475
475
  innerHTML: (s = a.form) == null ? void 0 : s.name
476
476
  }, null, 8, ta)
477
477
  ], 512)), [
478
- [eo, a.showZone]
478
+ [to, a.showZone]
479
479
  ]);
480
480
  }
481
481
  const aa = /* @__PURE__ */ q($o, [["render", oa]]);
@@ -536,7 +536,7 @@ const ia = {
536
536
  if (t) {
537
537
  this.showPort = !0, this.form = { ...t.properties }, this.form.lng = t.geometry.coordinates[0], this.form.lat = t.geometry.coordinates[1];
538
538
  const a = document.getElementById("port-info");
539
- this.marker ? this.marker.setLngLat([o.lngLat.lng, o.lngLat.lat]) : this.marker = new _e.Marker(a).setLngLat([o.lngLat.lng, o.lngLat.lat]).setOffset([0, -85]).addTo(this.map);
539
+ this.marker ? this.marker.setLngLat([o.lngLat.lng, o.lngLat.lat]) : this.marker = new ke.Marker(a).setLngLat([o.lngLat.lng, o.lngLat.lat]).setOffset([0, -85]).addTo(this.map);
540
540
  }
541
541
  },
542
542
  handleRender() {
@@ -583,7 +583,7 @@ const ia = {
583
583
  style: { "align-items": "flex-start" }
584
584
  }, ha = { class: "meteo-forecast flex-end" };
585
585
  function da(o, e, t, i, a, r) {
586
- return Jt((y(), T("div", ra, [
586
+ return eo((y(), T("div", ra, [
587
587
  l("div", {
588
588
  class: "close iconfont",
589
589
  onClick: e[0] || (e[0] = (s) => a.showPort = !1)
@@ -591,19 +591,19 @@ function da(o, e, t, i, a, r) {
591
591
  l("div", la, [
592
592
  l("div", sa, [
593
593
  e[2] || (e[2] = l("label", null, "Name : ", -1)),
594
- l("span", null, x(a.form.name), 1)
594
+ l("span", null, w(a.form.name), 1)
595
595
  ]),
596
596
  l("div", na, [
597
597
  e[3] || (e[3] = l("label", null, "Position : ", -1)),
598
- l("span", null, x(r.computeLat(a.form.lat)) + ", " + x(r.computeLng(a.form.lng)), 1)
598
+ l("span", null, w(r.computeLat(a.form.lat)) + ", " + w(r.computeLng(a.form.lng)), 1)
599
599
  ]),
600
600
  l("div", ca, [
601
601
  e[4] || (e[4] = l("label", null, "LoCode : ", -1)),
602
- l("span", null, x(a.form.loCode || "-"), 1)
602
+ l("span", null, w(a.form.loCode || "-"), 1)
603
603
  ]),
604
604
  l("div", ma, [
605
605
  e[5] || (e[5] = l("label", null, "Region : ", -1)),
606
- l("span", null, x(a.form.zoneName || "-"), 1)
606
+ l("span", null, w(a.form.zoneName || "-"), 1)
607
607
  ]),
608
608
  l("div", ha, [
609
609
  l("span", {
@@ -612,7 +612,7 @@ function da(o, e, t, i, a, r) {
612
612
  ])
613
613
  ])
614
614
  ], 512)), [
615
- [eo, a.showPort]
615
+ [to, a.showPort]
616
616
  ]);
617
617
  }
618
618
  const pa = /* @__PURE__ */ q(ia, [["render", da], ["__scopeId", "data-v-474e9036"]]), ua = {
@@ -1269,7 +1269,7 @@ const ja = {
1269
1269
  },
1270
1270
  data() {
1271
1271
  return {
1272
- lngLat: void 0,
1272
+ lngLat: { e: { lng: 0, lat: 0 }, lng: 0, lat: 0, str: "" },
1273
1273
  source: "idm-lat-lng-source",
1274
1274
  layer: "idm-lat-lng-layer",
1275
1275
  labelLayer: "idm-lat-lng-label-layer",
@@ -1301,6 +1301,12 @@ const ja = {
1301
1301
  this.right = (((o = document.getElementsByClassName("right-bar")[0]) == null ? void 0 : o.clientWidth) || 0) + 10;
1302
1302
  },
1303
1303
  immediate: !0
1304
+ },
1305
+ "lngLat.e": {
1306
+ handler(o) {
1307
+ this.lngLat.lng = ie.lng2pretty(o == null ? void 0 : o.lng, 2).pretty, this.lngLat.lat = ie.lat2pretty(o == null ? void 0 : o.lat, 2).pretty, this.lngLat.str = `[${o == null ? void 0 : o.lng.toFixed(4)}, ${o == null ? void 0 : o.lat.toFixed(4)}]`;
1308
+ },
1309
+ immediate: !0
1304
1310
  }
1305
1311
  },
1306
1312
  methods: {
@@ -1309,8 +1315,7 @@ const ja = {
1309
1315
  this.show ? ((o = this.map) == null || o.on("zoomend", this.handleZoomEnd), this.handleRender()) : (this.handleClear(), (e = this.map) == null || e.off("zoomend", this.handleZoomEnd));
1310
1316
  },
1311
1317
  handleMouseMove(o) {
1312
- const e = o.lngLat, t = ie.lng2pretty(e.lng, 2), i = ie.lat2pretty(e.lat, 2), a = `[${e.lng.toFixed(4)}, ${e.lat.toFixed(4)}]`;
1313
- this.lngLat = { lng: t, lat: i, str: a };
1318
+ this.lngLat.e = o.lngLat;
1314
1319
  },
1315
1320
  handleComputeLatLngs() {
1316
1321
  var i;
@@ -1357,7 +1362,7 @@ const ja = {
1357
1362
  handleZoomEnd() {
1358
1363
  var e;
1359
1364
  const o = this.handleComputeLatLngs();
1360
- (e = this.map) == null || e.getSource(this.source).setData(F.featureCollection(o));
1365
+ (e = this.map) == null || e.getSource(this.source).setData(j.featureCollection(o));
1361
1366
  },
1362
1367
  handleRender() {
1363
1368
  if (this.handleClear(), this.map) {
@@ -1414,14 +1419,14 @@ const ja = {
1414
1419
  }
1415
1420
  };
1416
1421
  function Fa(o, e, t, i, a, r) {
1417
- var s, c, n, p, d;
1422
+ var s, c, n;
1418
1423
  return y(), T("div", {
1419
1424
  class: "idm-lat-lng-tip-gl4 pa-2 text-caption text-right rounded",
1420
1425
  style: oe({ right: a.right + "px" })
1421
1426
  }, [
1422
- l("div", null, x((c = (s = a.lngLat) == null ? void 0 : s.lat) == null ? void 0 : c.pretty), 1),
1423
- l("div", null, x((p = (n = a.lngLat) == null ? void 0 : n.lng) == null ? void 0 : p.pretty), 1),
1424
- l("div", null, x((d = a.lngLat) == null ? void 0 : d.str), 1)
1427
+ l("div", null, w((s = a.lngLat) == null ? void 0 : s.lat), 1),
1428
+ l("div", null, w((c = a.lngLat) == null ? void 0 : c.lng), 1),
1429
+ l("div", null, w((n = a.lngLat) == null ? void 0 : n.str), 1)
1425
1430
  ], 4);
1426
1431
  }
1427
1432
  const Oo = /* @__PURE__ */ q(ja, [["render", Fa]]);
@@ -1488,7 +1493,7 @@ const Na = {
1488
1493
  right: 10,
1489
1494
  toggle: !1,
1490
1495
  mapFeather: localStorage.getItem("mapFeathersCacheGL4") || "light",
1491
- tagLayers: [...Qt.OTHER_LAYERS.filter((o) => o.enabled)],
1496
+ tagLayers: [...Jt.OTHER_LAYERS.filter((o) => o.enabled)],
1492
1497
  layerWeight: 0,
1493
1498
  otherLayers: {},
1494
1499
  activeOtherLayers: [],
@@ -1652,8 +1657,8 @@ const Na = {
1652
1657
  class: "border rounded-sm"
1653
1658
  }, Qa = { class: "text-body-2 text-center pt-1" }, Ja = { class: "layers-body" }, $a = { class: "layers-body" }, ei = { class: "layers-body" }, ti = { class: "layers-body" };
1654
1659
  function oi(o, e, t, i, a, r) {
1655
- var V, Y, $, ee, Q, ne, ce, de, me, K;
1656
- const s = k("VBtn"), c = k("VTooltip"), n = k("VCardTitle"), p = k("VCardItem"), d = k("VCheckbox"), m = k("VCardText"), f = k("VCard"), _ = k("IdmWorld12nm"), b = k("IdmWorldMarine"), S = k("IdmChinaRoute"), C = k("IdmWarZone"), B = k("IdmGmdssArea"), M = k("IdmEcaZone"), L = k("IdmAlertZone"), v = k("IdmPort"), z = k("IdmLoadLine"), P = k("IdmTimezone"), w = k("IdmVRA"), R = k("IdmSpecialArea"), W = k("IdmTerminator"), X = k("IdmLatLng");
1660
+ var V, Y, $, ee, Q, ne, he, de, ce, K;
1661
+ const s = k("VBtn"), c = k("VTooltip"), n = k("VCardTitle"), p = k("VCardItem"), d = k("VCheckbox"), m = k("VCardText"), f = k("VCard"), _ = k("IdmWorld12nm"), b = k("IdmWorldMarine"), S = k("IdmChinaRoute"), C = k("IdmWarZone"), B = k("IdmGmdssArea"), M = k("IdmEcaZone"), L = k("IdmAlertZone"), v = k("IdmPort"), z = k("IdmLoadLine"), P = k("IdmTimezone"), x = k("IdmVRA"), R = k("IdmSpecialArea"), W = k("IdmTerminator"), X = k("IdmLatLng");
1657
1662
  return y(), T("div", Ha, [
1658
1663
  l("div", {
1659
1664
  class: "menu-bar-box transition px-1 rounded",
@@ -1686,7 +1691,7 @@ function oi(o, e, t, i, a, r) {
1686
1691
  style: oe({ top: t.top + "px", right: a.toggle ? "0px" : "-280px" })
1687
1692
  }, [
1688
1693
  l("div", Wa, [
1689
- l("div", Ga, x(o.$t("layer.layers")), 1),
1694
+ l("div", Ga, w(o.$t("layer.layers")), 1),
1690
1695
  h(s, {
1691
1696
  icon: "",
1692
1697
  density: "comfortable",
@@ -1717,7 +1722,7 @@ function oi(o, e, t, i, a, r) {
1717
1722
  style: { "font-size": "16px !important" }
1718
1723
  }, {
1719
1724
  default: g(() => [
1720
- Z(x(o.$t("layer.mapFeathers")), 1)
1725
+ Z(w(o.$t("layer.mapFeathers")), 1)
1721
1726
  ]),
1722
1727
  _: 1
1723
1728
  })
@@ -1727,7 +1732,7 @@ function oi(o, e, t, i, a, r) {
1727
1732
  h(m, null, {
1728
1733
  default: g(() => [
1729
1734
  l("div", Va, [
1730
- (y(!0), T(ve, null, ze(a.mapFeathers, (I) => (y(), T("div", {
1735
+ (y(!0), T(_e, null, Le(a.mapFeathers, (I) => (y(), T("div", {
1731
1736
  key: I.value,
1732
1737
  class: "mb-2 feather-item",
1733
1738
  onClick: (le) => r.handleToggleMapFeather(I)
@@ -1737,11 +1742,11 @@ function oi(o, e, t, i, a, r) {
1737
1742
  }, [
1738
1743
  I.value === "dark" ? (y(), T("img", Za)) : I.value === "nautical" ? (y(), T("img", Xa)) : I.value === "satellite" ? (y(), T("img", qa)) : (y(), T("img", Ka))
1739
1744
  ], 2),
1740
- l("div", Qa, x(o.$t(`layer.${I.locale}`)), 1)
1745
+ l("div", Qa, w(o.$t(`layer.${I.locale}`)), 1)
1741
1746
  ], 8, Ya))), 128))
1742
1747
  ]),
1743
1748
  l("div", Ja, [
1744
- (y(!0), T(ve, null, ze(a.tagLayers.filter((I) => ["graticule", "day-night", "time-zones"].includes(I.key)), (I) => (y(), U(d, {
1749
+ (y(!0), T(_e, null, Le(a.tagLayers.filter((I) => ["graticule", "day-night", "time-zones"].includes(I.key)), (I) => (y(), U(d, {
1745
1750
  key: I.key,
1746
1751
  modelValue: a.checkList,
1747
1752
  "onUpdate:modelValue": e[0] || (e[0] = (le) => a.checkList = le),
@@ -1772,7 +1777,7 @@ function oi(o, e, t, i, a, r) {
1772
1777
  style: { "font-size": "16px !important" }
1773
1778
  }, {
1774
1779
  default: g(() => [
1775
- Z(x(o.$t("layer.pointsOfInteresting")), 1)
1780
+ Z(w(o.$t("layer.pointsOfInteresting")), 1)
1776
1781
  ]),
1777
1782
  _: 1
1778
1783
  })
@@ -1782,7 +1787,7 @@ function oi(o, e, t, i, a, r) {
1782
1787
  h(m, null, {
1783
1788
  default: g(() => [
1784
1789
  l("div", $a, [
1785
- (y(!0), T(ve, null, ze(a.tagLayers.filter((I) => ["ports", "nav-warnings", "tidal-stations"].includes(I.key)), (I) => (y(), U(d, {
1790
+ (y(!0), T(_e, null, Le(a.tagLayers.filter((I) => ["ports", "nav-warnings", "tidal-stations"].includes(I.key)), (I) => (y(), U(d, {
1786
1791
  key: I.key,
1787
1792
  modelValue: a.checkList,
1788
1793
  "onUpdate:modelValue": e[1] || (e[1] = (le) => a.checkList = le),
@@ -1813,7 +1818,7 @@ function oi(o, e, t, i, a, r) {
1813
1818
  style: { "font-size": "16px !important" }
1814
1819
  }, {
1815
1820
  default: g(() => [
1816
- Z(x(o.$t("layer.otherLayers")), 1)
1821
+ Z(w(o.$t("layer.otherLayers")), 1)
1817
1822
  ]),
1818
1823
  _: 1
1819
1824
  })
@@ -1823,7 +1828,7 @@ function oi(o, e, t, i, a, r) {
1823
1828
  h(m, null, {
1824
1829
  default: g(() => [
1825
1830
  l("div", ei, [
1826
- (y(!0), T(ve, null, ze(a.tagLayers.filter((I) => !["graticule", "day-night", "time-zones", "ports", "nav-warnings", "tidal-stations"].includes(I.key)), (I) => (y(), U(d, {
1831
+ (y(!0), T(_e, null, Le(a.tagLayers.filter((I) => !["graticule", "day-night", "time-zones", "ports", "nav-warnings", "tidal-stations"].includes(I.key)), (I) => (y(), U(d, {
1827
1832
  key: I.key,
1828
1833
  modelValue: a.checkList,
1829
1834
  "onUpdate:modelValue": e[2] || (e[2] = (le) => a.checkList = le),
@@ -1854,7 +1859,7 @@ function oi(o, e, t, i, a, r) {
1854
1859
  style: { "font-size": "16px !important" }
1855
1860
  }, {
1856
1861
  default: g(() => [
1857
- Z(x(o.$t("layer.myFollows")), 1)
1862
+ Z(w(o.$t("layer.myFollows")), 1)
1858
1863
  ]),
1859
1864
  _: 1
1860
1865
  })
@@ -1900,81 +1905,81 @@ function oi(o, e, t, i, a, r) {
1900
1905
  map: t.map,
1901
1906
  token: t.token,
1902
1907
  show: a.checkList.includes("world12nm")
1903
- }, o.$attrs), null, 16, ["map", "token", "show"])) : N("", !0),
1908
+ }, o.$attrs), null, 16, ["map", "token", "show"])) : F("", !0),
1904
1909
  t.map ? (y(), U(b, E({
1905
1910
  key: 1,
1906
1911
  map: t.map,
1907
1912
  token: t.token,
1908
1913
  show: a.checkList.includes("worldMarine")
1909
- }, o.$attrs), null, 16, ["map", "token", "show"])) : N("", !0),
1914
+ }, o.$attrs), null, 16, ["map", "token", "show"])) : F("", !0),
1910
1915
  t.map ? (y(), U(S, E({
1911
1916
  key: 2,
1912
1917
  map: t.map,
1913
1918
  token: t.token,
1914
1919
  show: a.checkList.includes("chinaRoute")
1915
- }, o.$attrs), null, 16, ["map", "token", "show"])) : N("", !0),
1920
+ }, o.$attrs), null, 16, ["map", "token", "show"])) : F("", !0),
1916
1921
  t.map ? (y(), U(C, E({
1917
1922
  key: 3,
1918
1923
  map: t.map,
1919
1924
  zone: (V = a.otherLayers) == null ? void 0 : V["war-zones"]
1920
- }, o.$attrs), null, 16, ["map", "zone"])) : N("", !0),
1925
+ }, o.$attrs), null, 16, ["map", "zone"])) : F("", !0),
1921
1926
  t.map ? (y(), U(B, E({
1922
1927
  key: 4,
1923
1928
  map: t.map,
1924
1929
  area: (Y = a.otherLayers) == null ? void 0 : Y["gmdss-areas"]
1925
- }, o.$attrs), null, 16, ["map", "area"])) : N("", !0),
1930
+ }, o.$attrs), null, 16, ["map", "area"])) : F("", !0),
1926
1931
  t.map ? (y(), U(M, E({
1927
1932
  key: 5,
1928
1933
  map: t.map,
1929
1934
  zone: ($ = a.otherLayers) == null ? void 0 : $["eca-zones"]
1930
- }, o.$attrs), null, 16, ["map", "zone"])) : N("", !0),
1935
+ }, o.$attrs), null, 16, ["map", "zone"])) : F("", !0),
1931
1936
  t.map ? (y(), U(L, E({
1932
1937
  key: 6,
1933
1938
  map: t.map,
1934
1939
  zone: (ee = a.otherLayers) == null ? void 0 : ee["alert-zones"],
1935
1940
  "before-layer": "empty-layer-3"
1936
- }, o.$attrs), null, 16, ["map", "zone"])) : N("", !0),
1941
+ }, o.$attrs), null, 16, ["map", "zone"])) : F("", !0),
1937
1942
  t.map ? (y(), U(v, E({
1938
1943
  key: 7,
1939
1944
  map: t.map,
1940
1945
  port: (Q = a.otherLayers) == null ? void 0 : Q.ports,
1941
1946
  "forecast-model": t.forecastModel
1942
- }, o.$attrs, { "before-layer": "empty-layer-3" }), null, 16, ["map", "port", "forecast-model"])) : N("", !0),
1947
+ }, o.$attrs, { "before-layer": "empty-layer-3" }), null, 16, ["map", "port", "forecast-model"])) : F("", !0),
1943
1948
  t.map ? (y(), U(z, E({
1944
1949
  key: 8,
1945
1950
  map: t.map,
1946
1951
  line: (ne = a.otherLayers) == null ? void 0 : ne["load-lines"]
1947
- }, o.$attrs), null, 16, ["map", "line"])) : N("", !0),
1952
+ }, o.$attrs), null, 16, ["map", "line"])) : F("", !0),
1948
1953
  t.map ? (y(), U(P, E({
1949
1954
  key: 9,
1950
1955
  map: t.map,
1951
- zone: (ce = a.otherLayers) == null ? void 0 : ce["time-zones"]
1952
- }, o.$attrs), null, 16, ["map", "zone"])) : N("", !0),
1953
- t.map ? (y(), U(w, E({
1956
+ zone: (he = a.otherLayers) == null ? void 0 : he["time-zones"]
1957
+ }, o.$attrs), null, 16, ["map", "zone"])) : F("", !0),
1958
+ t.map ? (y(), U(x, E({
1954
1959
  key: 10,
1955
1960
  map: t.map,
1956
1961
  area: (de = a.otherLayers) == null ? void 0 : de["voluntary-reporting-area"]
1957
- }, o.$attrs), null, 16, ["map", "area"])) : N("", !0),
1962
+ }, o.$attrs), null, 16, ["map", "area"])) : F("", !0),
1958
1963
  t.map ? (y(), U(R, E({
1959
1964
  key: 11,
1960
1965
  map: t.map,
1961
- area: (me = a.otherLayers) == null ? void 0 : me["special-area"]
1962
- }, o.$attrs), null, 16, ["map", "area"])) : N("", !0),
1966
+ area: (ce = a.otherLayers) == null ? void 0 : ce["special-area"]
1967
+ }, o.$attrs), null, 16, ["map", "area"])) : F("", !0),
1963
1968
  t.map ? (y(), U(W, E({
1964
1969
  key: 12,
1965
1970
  map: t.map,
1966
1971
  area: (K = a.otherLayers) == null ? void 0 : K["day-night"]
1967
- }, o.$attrs), null, 16, ["map", "area"])) : N("", !0),
1972
+ }, o.$attrs), null, 16, ["map", "area"])) : F("", !0),
1968
1973
  t.map ? (y(), U(X, E({
1969
1974
  key: 13,
1970
1975
  map: t.map,
1971
1976
  "menu-toggle": t.menuToggle,
1972
1977
  show: a.checkList.includes("graticule")
1973
- }, o.$attrs), null, 16, ["map", "menu-toggle", "show"])) : N("", !0)
1978
+ }, o.$attrs), null, 16, ["map", "menu-toggle", "show"])) : F("", !0)
1974
1979
  ]);
1975
1980
  }
1976
1981
  const ai = /* @__PURE__ */ q(Na, [["render", oi]]);
1977
- class oo {
1982
+ class ao {
1978
1983
  constructor(e) {
1979
1984
  re(this, "map");
1980
1985
  re(this, "mercator");
@@ -2308,9 +2313,9 @@ re(se, "fragmentSchema", `
2308
2313
  vec4 color = texture2D(u_color, vec2(rgba.r, 0));
2309
2314
  gl_FragColor = color;
2310
2315
  }`);
2311
- class be {
2316
+ class ye {
2312
2317
  }
2313
- re(be, "vertexSchema", `
2318
+ re(ye, "vertexSchema", `
2314
2319
  precision mediump float;
2315
2320
 
2316
2321
  attribute float a_index; // 索引
@@ -2334,7 +2339,7 @@ re(be, "vertexSchema", `
2334
2339
  gl_PointSize = 1.0;
2335
2340
  // gl_PointSize = u_point;
2336
2341
  gl_Position = vec4(2.0 * v_particle_pos.x - 1.0, 1.0 - 2.0 * v_particle_pos.y, 0, 1);
2337
- }`), re(be, "fragmentSchema", `
2342
+ }`), re(ye, "fragmentSchema", `
2338
2343
  precision mediump float;
2339
2344
 
2340
2345
  uniform sampler2D u_factor;
@@ -2356,7 +2361,7 @@ re(be, "vertexSchema", `
2356
2361
 
2357
2362
  float f = 1.0 - uv.b;
2358
2363
  gl_FragColor = texture2D(u_color_ramp, ramp_pos) * f;
2359
- }`), re(be, "quadVertSchema", `
2364
+ }`), re(ye, "quadVertSchema", `
2360
2365
  precision mediump float;
2361
2366
 
2362
2367
  attribute vec2 a_pos;
@@ -2366,7 +2371,7 @@ re(be, "vertexSchema", `
2366
2371
  void main() {
2367
2372
  v_tex_pos = a_pos;
2368
2373
  gl_Position = vec4(1.0 - 2.0 * a_pos, 0, 1);
2369
- }`), re(be, "screenFragmentSchema", `
2374
+ }`), re(ye, "screenFragmentSchema", `
2370
2375
  precision mediump float;
2371
2376
 
2372
2377
  uniform sampler2D u_screen;
@@ -2378,7 +2383,7 @@ re(be, "vertexSchema", `
2378
2383
  vec4 color = texture2D(u_screen, 1.0 - v_tex_pos);
2379
2384
  // a hack to guarantee opacity fade out even with a value close to 1.0
2380
2385
  gl_FragColor = vec4(floor(255.0 * color * u_opacity) / 255.0);
2381
- }`), re(be, "updateFragmentSchema", `
2386
+ }`), re(ye, "updateFragmentSchema", `
2382
2387
  precision mediump float;
2383
2388
 
2384
2389
  uniform sampler2D u_particles;
@@ -2489,7 +2494,7 @@ const ii = {
2489
2494
  showCaption: !1,
2490
2495
  source: "wind-barb-source",
2491
2496
  barbs: [0, 2, 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60, 65, 70, 75, 80, 85, 90, 95, 100, 105],
2492
- empty: F.featureCollection([]),
2497
+ empty: j.featureCollection([]),
2493
2498
  right: 10,
2494
2499
  bottom: 125,
2495
2500
  windBarbLoaded: !1
@@ -2608,7 +2613,7 @@ const si = {
2608
2613
  type: Object
2609
2614
  },
2610
2615
  viewport: {
2611
- type: oo
2616
+ type: ao
2612
2617
  },
2613
2618
  menuToggle: {
2614
2619
  type: Object
@@ -2725,11 +2730,11 @@ const si = {
2725
2730
  ];
2726
2731
  this.wrapper = this.webgl.bindParticle(
2727
2732
  this.particleContext,
2728
- be.vertexSchema,
2729
- be.fragmentSchema,
2730
- be.quadVertSchema,
2731
- be.screenFragmentSchema,
2732
- be.updateFragmentSchema
2733
+ ye.vertexSchema,
2734
+ ye.fragmentSchema,
2735
+ ye.quadVertSchema,
2736
+ ye.screenFragmentSchema,
2737
+ ye.updateFragmentSchema
2733
2738
  ), this.wrapper.color = this.webgl.setup(this.particleContext, o, !0, 16, 16), this.wrapper = { ...this.wrapper, ...this.webgl.setupParticle(this.particleContext, 9e3), ...this.webgl.resize(this.viewport, this.particleContext) }, this.viewport.map.on("resize", this.handleResize), this.viewport.map.on("movestart", this.handlePause), this.viewport.map.on("moveend", this.handlePlay);
2734
2739
  }
2735
2740
  },
@@ -2784,7 +2789,7 @@ function ci(o, e, t, i, a, r) {
2784
2789
  l("span", null, "40", -1),
2785
2790
  l("span", null, "60", -1)
2786
2791
  ]), 4)
2787
- ])) : N("", !0);
2792
+ ])) : F("", !0);
2788
2793
  }
2789
2794
  const mi = /* @__PURE__ */ q(si, [["render", ci]]), hi = {
2790
2795
  name: "IdmCurrent",
@@ -2818,7 +2823,7 @@ const mi = /* @__PURE__ */ q(si, [["render", ci]]), hi = {
2818
2823
  directionLayer: "current-direction-layer",
2819
2824
  speedLayer: "current-speed-layer",
2820
2825
  speedLabelLayer: "current-speed-label-layer",
2821
- empty: F.featureCollection([])
2826
+ empty: j.featureCollection([])
2822
2827
  };
2823
2828
  },
2824
2829
  computed: {
@@ -2963,7 +2968,7 @@ const ui = {
2963
2968
  type: Object
2964
2969
  },
2965
2970
  viewport: {
2966
- type: oo
2971
+ type: ao
2967
2972
  },
2968
2973
  menuToggle: {
2969
2974
  type: Object
@@ -3073,11 +3078,11 @@ const ui = {
3073
3078
  ];
3074
3079
  this.wrapper = this.webgl.bindParticle(
3075
3080
  this.particleContext,
3076
- be.vertexSchema,
3077
- be.fragmentSchema,
3078
- be.quadVertSchema,
3079
- be.screenFragmentSchema,
3080
- be.updateFragmentSchema
3081
+ ye.vertexSchema,
3082
+ ye.fragmentSchema,
3083
+ ye.quadVertSchema,
3084
+ ye.screenFragmentSchema,
3085
+ ye.updateFragmentSchema
3081
3086
  ), this.wrapper.color = this.webgl.setup(this.particleContext, o, !0, 16, 16), this.wrapper = {
3082
3087
  ...this.wrapper,
3083
3088
  ...this.webgl.setupParticle(this.particleContext, 9e3),
@@ -3135,7 +3140,7 @@ function fi(o, e, t, i, a, r) {
3135
3140
  l("span", null, "2", -1),
3136
3141
  l("span", null, "3.2", -1)
3137
3142
  ]), 4)
3138
- ])) : N("", !0);
3143
+ ])) : F("", !0);
3139
3144
  }
3140
3145
  const bi = /* @__PURE__ */ q(ui, [["render", fi]]);
3141
3146
  const yi = {
@@ -3263,7 +3268,7 @@ function xi(o, e, t, i, a, r) {
3263
3268
  l("span", null, "6", -1),
3264
3269
  l("span", null, "9", -1)
3265
3270
  ]), 4)
3266
- ])) : N("", !0);
3271
+ ])) : F("", !0);
3267
3272
  }
3268
3273
  const vi = /* @__PURE__ */ q(yi, [["render", xi], ["__scopeId", "data-v-79ce70e2"]]), _i = {
3269
3274
  name: "IdmSigWave",
@@ -3289,7 +3294,7 @@ const vi = /* @__PURE__ */ q(yi, [["render", xi], ["__scopeId", "data-v-79ce70e2
3289
3294
  source: "sig-wave-height-source",
3290
3295
  heightLayer: "sig-wave-height-layer",
3291
3296
  heightLabelLayer: "sig-wave-height-label-layer",
3292
- empty: F.featureCollection([])
3297
+ empty: j.featureCollection([])
3293
3298
  };
3294
3299
  },
3295
3300
  watch: {
@@ -3418,7 +3423,7 @@ const zi = /* @__PURE__ */ q(_i, [["render", ki]]), Li = {
3418
3423
  directionLayer: "swell-direction-layer",
3419
3424
  heightLayer: "swell-height-layer",
3420
3425
  heightLabelLayer: "swell-height-label-layer",
3421
- empty: F.featureCollection([])
3426
+ empty: j.featureCollection([])
3422
3427
  };
3423
3428
  },
3424
3429
  watch: {
@@ -3577,7 +3582,7 @@ const Ci = /* @__PURE__ */ q(Li, [["render", Pi]]), Si = {
3577
3582
  layer: "prmsl-layer",
3578
3583
  labelLayer: "prmsl-label-layer",
3579
3584
  pointLabelLayer: "prmsl-point-label-layer",
3580
- empty: F.featureCollection([])
3585
+ empty: j.featureCollection([])
3581
3586
  };
3582
3587
  },
3583
3588
  watch: {
@@ -3711,7 +3716,7 @@ function Ti(o, e, t, i, a, r) {
3711
3716
  _: 1
3712
3717
  })
3713
3718
  ], 4)
3714
- ])) : N("", !0);
3719
+ ])) : F("", !0);
3715
3720
  }
3716
3721
  const Ri = /* @__PURE__ */ q(Si, [["render", Ti]]);
3717
3722
  const Ii = {
@@ -3836,7 +3841,7 @@ function Di(o, e, t, i, a, r) {
3836
3841
  l("span", null, "90", -1),
3837
3842
  l("span", null, null, -1)
3838
3843
  ]), 4)
3839
- ])) : N("", !0);
3844
+ ])) : F("", !0);
3840
3845
  }
3841
3846
  const Oi = /* @__PURE__ */ q(Ii, [["render", Di]]);
3842
3847
  const Bi = {
@@ -3946,7 +3951,7 @@ function ji(o, e, t, i, a, r) {
3946
3951
  l("span", null, "80", -1),
3947
3952
  l("span", null, "100", -1)
3948
3953
  ]), 4)
3949
- ])) : N("", !0);
3954
+ ])) : F("", !0);
3950
3955
  }
3951
3956
  const Fi = /* @__PURE__ */ q(Bi, [["render", ji], ["__scopeId", "data-v-9696d73b"]]);
3952
3957
  const Ni = {
@@ -4065,7 +4070,7 @@ function Wi(o, e, t, i, a, r) {
4065
4070
  l("span", null, "2", -1),
4066
4071
  l("span", null, "3", -1)
4067
4072
  ]), 4)
4068
- ])) : N("", !0);
4073
+ ])) : F("", !0);
4069
4074
  }
4070
4075
  const Gi = /* @__PURE__ */ q(Ni, [["render", Wi]]);
4071
4076
  const Ui = {
@@ -4186,7 +4191,7 @@ function Yi(o, e, t, i, a, r) {
4186
4191
  l("span", null, "20", -1),
4187
4192
  l("span", null, "30", -1)
4188
4193
  ]), 4)
4189
- ])) : N("", !0);
4194
+ ])) : F("", !0);
4190
4195
  }
4191
4196
  const Zi = /* @__PURE__ */ q(Ui, [["render", Yi]]);
4192
4197
  const Xi = {
@@ -4295,7 +4300,7 @@ function Ki(o, e, t, i, a, r) {
4295
4300
  l("span", null, "3", -1),
4296
4301
  l("span", null, "9", -1)
4297
4302
  ]), 4)
4298
- ])) : N("", !0);
4303
+ ])) : F("", !0);
4299
4304
  }
4300
4305
  const Qi = /* @__PURE__ */ q(Xi, [["render", Ki]]);
4301
4306
  const Ji = {
@@ -4407,7 +4412,7 @@ function er(o, e, t, i, a, r) {
4407
4412
  l("span", null, "30", -1),
4408
4413
  l("span", null, "40", -1)
4409
4414
  ]), 4)
4410
- ])) : N("", !0);
4415
+ ])) : F("", !0);
4411
4416
  }
4412
4417
  const tr = /* @__PURE__ */ q(Ji, [["render", er]]);
4413
4418
  const or = {
@@ -4532,7 +4537,7 @@ function ir(o, e, t, i, a, r) {
4532
4537
  l("span", null, "30", -1),
4533
4538
  l("span", null, "40", -1)
4534
4539
  ]), 4)
4535
- ])) : N("", !0);
4540
+ ])) : F("", !0);
4536
4541
  }
4537
4542
  const rr = /* @__PURE__ */ q(or, [["render", ir]]);
4538
4543
  const lr = {
@@ -4569,8 +4574,7 @@ const lr = {
4569
4574
  type: String
4570
4575
  },
4571
4576
  gateway: {
4572
- type: String,
4573
- default: "aa"
4577
+ type: String
4574
4578
  },
4575
4579
  assistGateway: {
4576
4580
  type: Array,
@@ -4606,9 +4610,10 @@ const lr = {
4606
4610
  right: 10,
4607
4611
  toggle: !1,
4608
4612
  autoActive: !0,
4609
- allLayers: [...Qt.WEATHER_LAYERS],
4610
- tagLayers: [...Qt.WEATHER_LAYERS.filter((o) => !o.hide)],
4613
+ allLayers: [...Jt.WEATHER_LAYERS],
4614
+ tagLayers: [...Jt.WEATHER_LAYERS.filter((o) => !o.hide)],
4611
4615
  checkList: [],
4616
+ renderKey: "",
4612
4617
  iceToggleValue: void 0,
4613
4618
  weatherLayers: {},
4614
4619
  activeWeatherLayers: [],
@@ -4688,7 +4693,7 @@ const lr = {
4688
4693
  watch: {
4689
4694
  "menuToggle.v": {
4690
4695
  handler() {
4691
- this.toggle = this.menuToggle.weatherLayers, this.$nextTick(() => {
4696
+ this.toggle = this.menuToggle.weatherLayers, this.menuToggle.weatherLayers && (this.autoActive = !0), this.$nextTick(() => {
4692
4697
  var o;
4693
4698
  this.right = (((o = document.getElementsByClassName("right-bar")[0]) == null ? void 0 : o.clientWidth) || 0) + 10;
4694
4699
  });
@@ -4701,7 +4706,7 @@ const lr = {
4701
4706
  },
4702
4707
  map: {
4703
4708
  handler() {
4704
- this.map && (this.map.on("move", this.handleMove4Weather), this.viewport = new oo(this.map), this.handleRampColorInitial(), this.handleWeatherLayerChange());
4709
+ this.map && (this.map.on("move", this.handleMove4Weather), this.viewport = new ao(this.map), this.handleRampColorInitial(), this.handleWeatherLayerChange());
4705
4710
  },
4706
4711
  immediate: !0
4707
4712
  },
@@ -4713,6 +4718,11 @@ const lr = {
4713
4718
  },
4714
4719
  immediate: !0
4715
4720
  },
4721
+ renderKey: {
4722
+ handler(o, e) {
4723
+ o && o !== e && (this.checkList = [o]);
4724
+ }
4725
+ },
4716
4726
  checkList: {
4717
4727
  handler(o, e) {
4718
4728
  this.handleCheckListChange(o, e), this.$emit("weatherCheckList", o);
@@ -4742,6 +4752,7 @@ const lr = {
4742
4752
  },
4743
4753
  isLogin: {
4744
4754
  handler(o) {
4755
+ o ? (this.fetchModels(), this.fetchWeatherLayers()) : this.models = {};
4745
4756
  },
4746
4757
  immediate: !0
4747
4758
  }
@@ -4762,10 +4773,10 @@ const lr = {
4762
4773
  const o = localStorage.getItem(this.cache.versionKey);
4763
4774
  this.cache.v !== o && (localStorage.removeItem(this.cache.autoActiveKey), localStorage.removeItem(this.cache.checkListKey), localStorage.setItem(this.cache.versionKey, this.cache.v));
4764
4775
  let e = localStorage.getItem(this.cache.autoActiveKey);
4765
- this.autoActive = e !== "false", localStorage.setItem(this.cache.autoActiveKey, this.autoActive), e = localStorage.getItem(this.cache.checkListKey), this.checkList = JSON.parse(e || "[]"), localStorage.setItem(this.cache.checkListKey, JSON.stringify(this.checkList));
4776
+ this.autoActive = e !== "false", localStorage.setItem(this.cache.autoActiveKey, this.autoActive), e = localStorage.getItem(this.cache.checkListKey), this.checkList = JSON.parse(e || "[]"), this.checkList.find((t) => this.rendersKeys.includes(t)) && (this.renderKey = this.checkList.find((t) => this.rendersKeys.includes(t))), localStorage.setItem(this.cache.checkListKey, JSON.stringify(this.checkList));
4766
4777
  },
4767
4778
  handleMenuToggle() {
4768
- this.$emit("menuToggle", "weatherLayers"), this.autoActive && this.$parent.$refs.idmBottomBar.handleToggle(this.autoActive);
4779
+ this.$emit("menuToggle", "weatherLayers");
4769
4780
  },
4770
4781
  handleFastWeatherToggle(o) {
4771
4782
  let e = [];
@@ -4775,7 +4786,7 @@ const lr = {
4775
4786
  if (this.arraysEqual(o, e))
4776
4787
  return !1;
4777
4788
  const t = [...new Set(o)], i = t == null ? void 0 : t.filter((r) => !(e != null && e.includes(r)))[0], a = e == null ? void 0 : e.filter((r) => !(t != null && t.includes(r)))[0];
4778
- 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 = t.filter((r) => !this.rendersKeys.includes(r))), a && (a === "ice-forecast" ? (this.checkList = t.filter((r) => !["ice-cover", "ice-thickness", "ice-forecast"].includes(r)), this.iceToggleValue = void 0) : this.checkList = t), this.checkList.includes("wind-particle") && (this.showWindParticle = !0), this.checkList.includes("current-particle") && (this.showCurrentParticle = !0), localStorage.setItem(this.cache.checkListKey, JSON.stringify(t)), this.activeWeatherLayers = this.autoActive ? this.allLayers.filter((r) => t.includes(r.key)) : [], this.handleWeatherLayerChange();
4789
+ 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 = t.filter((r) => !this.rendersKeys.includes(r)), this.renderKey = void 0)), a && (a === "ice-forecast" ? (this.checkList = t.filter((r) => !["ice-cover", "ice-thickness", "ice-forecast"].includes(r)), this.iceToggleValue = void 0) : this.checkList = t), this.checkList.includes("wind-particle") && (this.showWindParticle = !0), this.checkList.includes("current-particle") && (this.showCurrentParticle = !0), localStorage.setItem(this.cache.checkListKey, JSON.stringify(t)), this.activeWeatherLayers = this.autoActive ? this.allLayers.filter((r) => t.includes(r.key)) : [], this.handleWeatherLayerChange();
4779
4790
  },
4780
4791
  async fetchModels() {
4781
4792
  this.models = {};
@@ -4793,7 +4804,7 @@ const lr = {
4793
4804
  if (this.map) {
4794
4805
  const _ = ((a = this.map) == null ? void 0 : a.getZoom()) + 1, b = (r = this.map) == null ? void 0 : r.getBounds(), S = `${b._sw.lng},${b._sw.lat},${b._ne.lng},${b._ne.lat}`;
4795
4806
  if (this.particleFactor && ((s = this.$refs.layer) != null && s.autoActive)) {
4796
- const C = Qt.WEATHER_LAYERS.find((B) => {
4807
+ const C = Jt.WEATHER_LAYERS.find((B) => {
4797
4808
  var M;
4798
4809
  return ((M = B.peer) == null ? void 0 : M.weight) === this.particleFactor.weight;
4799
4810
  });
@@ -4820,17 +4831,17 @@ const lr = {
4820
4831
  key: P
4821
4832
  },
4822
4833
  responseType: /\.(jpg|png)$/.test(L[P]) ? "blob" : "json"
4823
- }).catch((w) => {
4824
- console.log(`[${P}] fetch layer error: ${w}`);
4834
+ }).catch((x) => {
4835
+ console.log(`[${P}] fetch layer error: ${x}`);
4825
4836
  })
4826
4837
  );
4827
4838
  const z = await Promise.all(v);
4828
4839
  this.weatherLayers = {}, z.map((P) => {
4829
4840
  var W, X, V, Y;
4830
- const w = ((W = P == null ? void 0 : P.data) == null ? void 0 : W.data) || (P == null ? void 0 : P.data);
4841
+ const x = ((W = P == null ? void 0 : P.data) == null ? void 0 : W.data) || (P == null ? void 0 : P.data);
4831
4842
  let R = (V = (X = P == null ? void 0 : P.config) == null ? void 0 : X.headers) == null ? void 0 : V.key;
4832
- R && w && (this.weatherLayers[R] = {
4833
- raw: w,
4843
+ R && x && (this.weatherLayers[R] = {
4844
+ raw: x,
4834
4845
  type: ((Y = P == null ? void 0 : P.config) == null ? void 0 : Y.responseType) === "blob" ? "image" : "json",
4835
4846
  etime: M.data.etime
4836
4847
  });
@@ -4927,35 +4938,35 @@ const lr = {
4927
4938
  for (const z in L)
4928
4939
  if (z > c && z < n && (!(a <= this.zoom) || z % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
4929
4940
  const P = L[z].lng;
4930
- r > s ? P.forEach((w, R) => {
4941
+ r > s ? P.forEach((x, R) => {
4931
4942
  var W, X, V, Y, $, ee;
4932
4943
  if (a < 2) {
4933
- if ((w >= 0 && w <= 360 || w >= -360 && w <= 0) && w % 10 === 0) {
4934
- const Q = F.point([w, z], {
4944
+ if ((x >= 0 && x <= 360 || x >= -360 && x <= 0) && x % 10 === 0) {
4945
+ const Q = j.point([x, z], {
4935
4946
  val: ((W = L[z].val) == null ? void 0 : W[R]) || ((X = L[z].dir) == null ? void 0 : X[R]),
4936
4947
  spd: (V = L[z].spd) == null ? void 0 : V[R]
4937
4948
  });
4938
4949
  M.push(Q);
4939
4950
  }
4940
- } else if ((w >= r && w <= 180 || w >= -180 && w <= s) && (!(a <= this.zoom) || w % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
4941
- const Q = F.point([w, z], {
4951
+ } else if ((x >= r && x <= 180 || x >= -180 && x <= s) && (!(a <= this.zoom) || x % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
4952
+ const Q = j.point([x, z], {
4942
4953
  val: ((Y = L[z].val) == null ? void 0 : Y[R]) || (($ = L[z].dir) == null ? void 0 : $[R]),
4943
4954
  spd: (ee = L[z].spd) == null ? void 0 : ee[R]
4944
4955
  });
4945
4956
  M.push(Q);
4946
4957
  }
4947
- }) : P.forEach((w, R) => {
4958
+ }) : P.forEach((x, R) => {
4948
4959
  var W, X, V, Y, $, ee;
4949
4960
  if (r < 2) {
4950
- if ((w >= 0 && w <= 360 || w >= -360 && w <= 0) && w % 10 === 0) {
4951
- const Q = F.point([w, z], {
4961
+ if ((x >= 0 && x <= 360 || x >= -360 && x <= 0) && x % 10 === 0) {
4962
+ const Q = j.point([x, z], {
4952
4963
  val: ((W = L[z].val) == null ? void 0 : W[R]) || ((X = L[z].dir) == null ? void 0 : X[R]),
4953
4964
  spd: (V = L[z].spd) == null ? void 0 : V[R]
4954
4965
  });
4955
4966
  M.push(Q);
4956
4967
  }
4957
- } else if (w >= r && w <= s && (!(a <= this.zoom) || w % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
4958
- const Q = F.point([w, z], {
4968
+ } else if (x >= r && x <= s && (!(a <= this.zoom) || x % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
4969
+ const Q = j.point([x, z], {
4959
4970
  val: ((Y = L[z].val) == null ? void 0 : Y[R]) || (($ = L[z].dir) == null ? void 0 : $[R]),
4960
4971
  spd: (ee = L[z].spd) == null ? void 0 : ee[R]
4961
4972
  });
@@ -4969,14 +4980,14 @@ const lr = {
4969
4980
  if (!v.data) {
4970
4981
  const z = [];
4971
4982
  for (const P in (f = v.raw) == null ? void 0 : f.LineString) {
4972
- const w = v.raw.LineString[P];
4973
- for (const R of w)
4983
+ const x = v.raw.LineString[P];
4984
+ for (const R of x)
4974
4985
  z.push(
4975
- F.lineString(R, {
4986
+ j.lineString(R, {
4976
4987
  val: Number(P)
4977
4988
  })
4978
4989
  );
4979
- v.data = F.featureCollection(z);
4990
+ v.data = j.featureCollection(z);
4980
4991
  }
4981
4992
  }
4982
4993
  if (v.data) {
@@ -4991,35 +5002,35 @@ const lr = {
4991
5002
  for (const z in L)
4992
5003
  if (z > c && z < n && (!(a <= this.zoom) || z % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
4993
5004
  const P = L[z].lng;
4994
- r > s ? P.forEach((w, R) => {
5005
+ r > s ? P.forEach((x, R) => {
4995
5006
  var W, X, V, Y, $, ee;
4996
5007
  if (a < 2) {
4997
- if ((w >= 0 && w <= 360 || w >= -360 && w <= 0) && w % 10 === 0) {
4998
- const Q = F.point([w, z], {
5008
+ if ((x >= 0 && x <= 360 || x >= -360 && x <= 0) && x % 10 === 0) {
5009
+ const Q = j.point([x, z], {
4999
5010
  val: ((W = L[z].val) == null ? void 0 : W[R]) || ((X = L[z].dir) == null ? void 0 : X[R]),
5000
5011
  spd: (V = L[z].spd) == null ? void 0 : V[R]
5001
5012
  });
5002
5013
  M.push(Q);
5003
5014
  }
5004
- } else if ((w >= r && w <= 180 || w >= -180 && w <= s) && (!(a <= this.zoom) || w % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
5005
- const Q = F.point([w, z], {
5015
+ } else if ((x >= r && x <= 180 || x >= -180 && x <= s) && (!(a <= this.zoom) || x % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
5016
+ const Q = j.point([x, z], {
5006
5017
  val: ((Y = L[z].val) == null ? void 0 : Y[R]) || (($ = L[z].dir) == null ? void 0 : $[R]),
5007
5018
  spd: (ee = L[z].spd) == null ? void 0 : ee[R]
5008
5019
  });
5009
5020
  M.push(Q);
5010
5021
  }
5011
- }) : P.forEach((w, R) => {
5022
+ }) : P.forEach((x, R) => {
5012
5023
  var W, X, V, Y, $, ee;
5013
5024
  if (r < 2) {
5014
- if ((w >= 0 && w <= 360 || w >= -360 && w <= 0) && w % 10 === 0) {
5015
- const Q = F.point([w, z], {
5025
+ if ((x >= 0 && x <= 360 || x >= -360 && x <= 0) && x % 10 === 0) {
5026
+ const Q = j.point([x, z], {
5016
5027
  val: ((W = L[z].val) == null ? void 0 : W[R]) || ((X = L[z].dir) == null ? void 0 : X[R]),
5017
5028
  spd: (V = L[z].spd) == null ? void 0 : V[R]
5018
5029
  });
5019
5030
  M.push(Q);
5020
5031
  }
5021
- } else if (w >= r && w <= s && (!(a <= this.zoom) || w % (a < this.zoom / 2 ? 5 : 3) === 0)) {
5022
- const Q = F.point([w, z], {
5032
+ } else if (x >= r && x <= s && (!(a <= this.zoom) || x % (a < this.zoom / 2 ? 5 : 3) === 0)) {
5033
+ const Q = j.point([x, z], {
5023
5034
  val: ((Y = L[z].val) == null ? void 0 : Y[R]) || (($ = L[z].dir) == null ? void 0 : $[R]),
5024
5035
  spd: (ee = L[z].spd) == null ? void 0 : ee[R]
5025
5036
  });
@@ -5032,16 +5043,16 @@ const lr = {
5032
5043
  if (v) {
5033
5044
  if (!v.data) {
5034
5045
  const P = [];
5035
- for (const w in (b = v.raw) == null ? void 0 : b.Polygon) {
5036
- const R = v.raw.Polygon[w];
5046
+ for (const x in (b = v.raw) == null ? void 0 : b.Polygon) {
5047
+ const R = v.raw.Polygon[x];
5037
5048
  for (const W of R)
5038
5049
  P.push(
5039
- F.polygon(W, {
5040
- val: Number(w)
5050
+ j.polygon(W, {
5051
+ val: Number(x)
5041
5052
  })
5042
5053
  );
5043
5054
  }
5044
- v.data = F.featureCollection(P);
5055
+ v.data = j.featureCollection(P);
5045
5056
  }
5046
5057
  const z = a < this.zoom ? v.data.features.filter((P) => P.properties.val > 0.5) : v.data.features;
5047
5058
  M = M.concat(z), t = (/* @__PURE__ */ new Date()).valueOf() - (o + e), console.log("current speed elapsed: ", t, ", total: ", e += t);
@@ -5052,37 +5063,37 @@ const lr = {
5052
5063
  for (const v in L)
5053
5064
  if (v > c && v < n && (!(a <= this.zoom) || v % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
5054
5065
  const z = L[v].lng;
5055
- r > s ? z.forEach((P, w) => {
5066
+ r > s ? z.forEach((P, x) => {
5056
5067
  var R, W, X, V;
5057
5068
  if (a < 2) {
5058
5069
  if ((P >= 0 && P <= 360 || P >= -360 && P <= 0) && P % 10 === 0) {
5059
- const Y = F.point([P, v], {
5060
- dir: ((R = L[v].val) == null ? void 0 : R[w]) || ((W = L[v].dir) == null ? void 0 : W[w]),
5061
- spd: L[v].spd[w]
5070
+ const Y = j.point([P, v], {
5071
+ dir: ((R = L[v].val) == null ? void 0 : R[x]) || ((W = L[v].dir) == null ? void 0 : W[x]),
5072
+ spd: L[v].spd[x]
5062
5073
  });
5063
5074
  M.push(Y);
5064
5075
  }
5065
5076
  } else if ((P >= r && P <= 180 || P >= -180 && P <= s) && (!(a <= this.zoom) || P % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
5066
- const Y = F.point([P, v], {
5067
- dir: ((X = L[v].val) == null ? void 0 : X[w]) || ((V = L[v].dir) == null ? void 0 : V[w]),
5068
- spd: L[v].spd[w]
5077
+ const Y = j.point([P, v], {
5078
+ dir: ((X = L[v].val) == null ? void 0 : X[x]) || ((V = L[v].dir) == null ? void 0 : V[x]),
5079
+ spd: L[v].spd[x]
5069
5080
  });
5070
5081
  M.push(Y);
5071
5082
  }
5072
- }) : z.forEach((P, w) => {
5083
+ }) : z.forEach((P, x) => {
5073
5084
  var R, W, X, V;
5074
5085
  if (a < 2) {
5075
5086
  if ((P >= 0 && P <= 360 || P >= -360 && P <= 0) && P % 10 === 0) {
5076
- const Y = F.point([P, v], {
5077
- dir: ((R = L[v].val) == null ? void 0 : R[w]) || ((W = L[v].dir) == null ? void 0 : W[w]),
5078
- spd: L[v].spd[w]
5087
+ const Y = j.point([P, v], {
5088
+ dir: ((R = L[v].val) == null ? void 0 : R[x]) || ((W = L[v].dir) == null ? void 0 : W[x]),
5089
+ spd: L[v].spd[x]
5079
5090
  });
5080
5091
  M.push(Y);
5081
5092
  }
5082
5093
  } else if (P >= r && P <= s && (!(a <= this.zoom) || P % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
5083
- const Y = F.point([P, v], {
5084
- dir: ((X = L[v].val) == null ? void 0 : X[w]) || ((V = L[v].dir) == null ? void 0 : V[w]),
5085
- spd: L[v].spd[w]
5094
+ const Y = j.point([P, v], {
5095
+ dir: ((X = L[v].val) == null ? void 0 : X[x]) || ((V = L[v].dir) == null ? void 0 : V[x]),
5096
+ spd: L[v].spd[x]
5086
5097
  });
5087
5098
  M.push(Y);
5088
5099
  }
@@ -5099,19 +5110,19 @@ const lr = {
5099
5110
  const v = [];
5100
5111
  for (const z in L.Polygon) {
5101
5112
  const P = L.Polygon[z];
5102
- for (const w of P)
5113
+ for (const x of P)
5103
5114
  v.push(
5104
- F.polygon(w, {
5115
+ j.polygon(x, {
5105
5116
  val: Number(z)
5106
5117
  })
5107
5118
  );
5108
5119
  }
5109
5120
  for (const z in L.Point) {
5110
5121
  const P = L.Point[z];
5111
- for (let w = 0; w < ((S = P.lng) == null ? void 0 : S.length); w++)
5122
+ for (let x = 0; x < ((S = P.lng) == null ? void 0 : S.length); x++)
5112
5123
  v.push(
5113
- F.point([P.lng[w], z], {
5114
- val: Number(P.val[w])
5124
+ j.point([P.lng[x], z], {
5125
+ val: Number(P.val[x])
5115
5126
  })
5116
5127
  );
5117
5128
  }
@@ -5129,19 +5140,19 @@ const lr = {
5129
5140
  const v = [];
5130
5141
  for (const z in L.LineString) {
5131
5142
  const P = L.LineString[z];
5132
- for (const w of P)
5143
+ for (const x of P)
5133
5144
  v.push(
5134
- F.lineString(w, {
5145
+ j.lineString(x, {
5135
5146
  val: Number(z)
5136
5147
  })
5137
5148
  );
5138
5149
  }
5139
5150
  for (const z in L.Point)
5140
- L.Point[z].lng.forEach((P, w) => {
5151
+ L.Point[z].lng.forEach((P, x) => {
5141
5152
  P = ie.convertToStdLng(P), v.push(
5142
- F.point([P, z], {
5143
- val: L.Point[z].val[w],
5144
- type: L.Point[z].type[w]
5153
+ j.point([P, z], {
5154
+ val: L.Point[z].val[x],
5155
+ type: L.Point[z].type[x]
5145
5156
  })
5146
5157
  );
5147
5158
  });
@@ -5150,7 +5161,7 @@ const lr = {
5150
5161
  }
5151
5162
  t = (/* @__PURE__ */ new Date()).valueOf() - (o + e), console.log("prmsl elapsed: ", t, ", total: ", e += t);
5152
5163
  }
5153
- M.length && (this.weatherLayers[C].data = F.featureCollection(M)), B && (this.weatherLayers[C].version = Math.random() + 1);
5164
+ M.length && (this.weatherLayers[C].data = j.featureCollection(M)), B && (this.weatherLayers[C].version = Math.random() + 1);
5154
5165
  }
5155
5166
  }
5156
5167
  },
@@ -5164,10 +5175,10 @@ const lr = {
5164
5175
  return o.features.forEach((r) => {
5165
5176
  if (r.geometry.type !== "Point")
5166
5177
  if (i > a) {
5167
- let s = [i, e._sw.lat, 180, e._ne.lat], c = F.bboxClip(r, s);
5168
- c.geometry.coordinates.length && t.push(c), s = [-180, e._sw.lat, a, e._ne.lat], c = F.bboxClip(r, s), c.geometry.coordinates.length && t.push(c);
5178
+ let s = [i, e._sw.lat, 180, e._ne.lat], c = j.bboxClip(r, s);
5179
+ c.geometry.coordinates.length && t.push(c), s = [-180, e._sw.lat, a, e._ne.lat], c = j.bboxClip(r, s), c.geometry.coordinates.length && t.push(c);
5169
5180
  } else {
5170
- const s = [i, e._sw.lat, a, e._ne.lat], c = F.bboxClip(r, s);
5181
+ const s = [i, e._sw.lat, a, e._ne.lat], c = j.bboxClip(r, s);
5171
5182
  c.geometry.coordinates.length && t.push(c);
5172
5183
  }
5173
5184
  else
@@ -5184,16 +5195,16 @@ const lr = {
5184
5195
  }, pr = { class: "text-caption px-2" }, ur = { class: "d-flex flex-row justify-start align-center" }, gr = {
5185
5196
  class: "d-flex flex-row justify-center align-center",
5186
5197
  style: { width: "48px" }
5187
- }, fr = { class: "text-caption px-2" }, br = { class: "header-box d-flex justify-space-between align-center pl-4 pr-4" }, yr = { class: "d-flex justify-start align-center ga-3" }, wr = { class: "text-h5 font-weight-medium" }, xr = { class: "layers-body" }, vr = { class: "layers-body" }, _r = {
5198
+ }, fr = { class: "text-caption px-2" }, br = { class: "header-box d-flex justify-space-between align-center pl-4 pr-4" }, yr = { class: "d-flex justify-start align-center ga-3" }, wr = { class: "text-h5 font-weight-medium" }, xr = {
5188
5199
  key: 0,
5189
5200
  class: "d-flex justify-start align-center ga-4 pl-6"
5190
- }, kr = {
5201
+ }, vr = {
5191
5202
  key: 1,
5192
5203
  class: "d-flex justify-start align-center ga-4 pl-6"
5193
- }, zr = { class: "text-body-1 py-2" }, Lr = { class: "text-body-1 font-weight-medium" }, Pr = { class: "text-body-2 opacity-70" }, Cr = { class: "text-body-2 opacity-70 mb-3" }, Sr = { class: "text-body-1 font-weight-medium" }, Mr = { class: "text-body-2 opacity-70" }, Tr = { class: "text-body-2 opacity-70 mb-3" }, Rr = { class: "text-body-1 py-2" }, Ir = { class: "text-body-1 font-weight-medium" }, Ar = { class: "text-body-2 opacity-70" }, Dr = { class: "text-body-2 opacity-70 mb-3" }, Or = { class: "text-body-1 font-weight-medium" }, Br = { class: "text-body-2 opacity-70" }, Er = { class: "text-body-2 opacity-70 mb-3" }, jr = { class: "text-body-1 py-2" }, Fr = { class: "text-body-1 font-weight-medium" }, Nr = { class: "text-body-2 opacity-70" }, Hr = { class: "text-body-2 opacity-70 mb-3" };
5194
- function Wr(o, e, t, i, a, r) {
5195
- var ce, de, me, K, I, le, ge, fe, ye, we, Se, Me, Te, Re, Ie;
5196
- const s = k("VBtn"), c = k("VTooltip"), n = k("VCol"), p = k("VRow"), d = k("VCardText"), m = k("VDivider"), f = k("VCard"), _ = k("VSwitch"), b = k("VCardTitle"), S = k("VCardItem"), C = k("VCheckbox"), B = k("VBtnToggle"), M = k("IdmWindBarb"), L = k("IdmSigWaveHeight"), v = k("IdmCurrentDirection"), z = k("IdmPrmsl"), P = k("IdmWindParticle"), w = k("IdmCurrentParticle"), R = k("IdmWave"), W = k("IdmSwell"), X = k("IdmIceEdge"), V = k("IdmIceCover"), Y = k("IdmIceThickness"), $ = k("IdmPrecip3h"), ee = k("IdmVisibility"), Q = k("IdmWaterTemp"), ne = k("IdmTemp");
5204
+ }, _r = { class: "text-body-1 py-2" }, kr = { class: "text-body-1 font-weight-medium" }, zr = { class: "text-body-2 opacity-70" }, Lr = { class: "text-body-2 opacity-70 mb-3" }, Pr = { class: "text-body-1 font-weight-medium" }, Cr = { class: "text-body-2 opacity-70" }, Sr = { class: "text-body-2 opacity-70 mb-3" }, Mr = { class: "text-body-1 py-2" }, Tr = { class: "text-body-1 font-weight-medium" }, Rr = { class: "text-body-2 opacity-70" }, Ir = { class: "text-body-2 opacity-70 mb-3" }, Ar = { class: "text-body-1 font-weight-medium" }, Dr = { class: "text-body-2 opacity-70" }, Or = { class: "text-body-2 opacity-70 mb-3" }, Br = { class: "text-body-1 py-2" }, Er = { class: "text-body-1 font-weight-medium" }, jr = { class: "text-body-2 opacity-70" }, Fr = { class: "text-body-2 opacity-70 mb-3" };
5205
+ function Nr(o, e, t, i, a, r) {
5206
+ var de, ce, K, I, le, ge, fe, we, xe, Se, Me, Te, Re, Ie, be;
5207
+ const s = k("VBtn"), c = k("VTooltip"), n = k("VCol"), p = k("VRow"), d = k("VCardText"), m = k("VDivider"), f = k("VCard"), _ = k("VSwitch"), b = k("VCardTitle"), S = k("VCardItem"), C = k("VCheckbox"), B = k("v-radio"), M = k("VBtnToggle"), L = k("IdmWindBarb"), v = k("IdmSigWaveHeight"), z = k("IdmCurrentDirection"), P = k("IdmPrmsl"), x = k("IdmWindParticle"), R = k("IdmCurrentParticle"), W = k("IdmWave"), X = k("IdmSwell"), V = k("IdmIceEdge"), Y = k("IdmIceCover"), $ = k("IdmIceThickness"), ee = k("IdmPrecip3h"), Q = k("IdmVisibility"), ne = k("IdmWaterTemp"), he = k("IdmTemp");
5197
5208
  return y(), T("div", sr, [
5198
5209
  l("div", {
5199
5210
  class: "menu-bar-box transition pa-1",
@@ -5203,12 +5214,12 @@ function Wr(o, e, t, i, a, r) {
5203
5214
  text: o.$t("weather.weatherLayers"),
5204
5215
  location: "left"
5205
5216
  }, {
5206
- activator: g(({ props: j }) => [
5207
- h(s, E(j, {
5217
+ activator: g(({ props: H }) => [
5218
+ h(s, E(H, {
5208
5219
  "min-width": "32",
5209
5220
  width: "32",
5210
5221
  height: "32",
5211
- class: ["text-none pa-0", a.toggle ? "bg-primary active-border" : ""],
5222
+ class: ["text-none pa-0", a.autoActive ? "bg-primary active-border" : ""],
5212
5223
  onClick: r.handleMenuToggle
5213
5224
  }), {
5214
5225
  default: g(() => e[7] || (e[7] = [
@@ -5230,8 +5241,8 @@ function Wr(o, e, t, i, a, r) {
5230
5241
  text: "Legend",
5231
5242
  location: "left"
5232
5243
  }, {
5233
- activator: g(({ props: j }) => [
5234
- h(s, E(j, {
5244
+ activator: g(({ props: H }) => [
5245
+ h(s, E(H, {
5235
5246
  "min-width": "32",
5236
5247
  width: "32",
5237
5248
  height: "32",
@@ -5261,8 +5272,8 @@ function Wr(o, e, t, i, a, r) {
5261
5272
  e[9] || (e[9] = l("div", { class: "text-body-1 font-weight-600 mb-2" }, "Wind Level", -1)),
5262
5273
  h(p, { class: "ma-0 ml-n1 text-body-2" }, {
5263
5274
  default: g(() => [
5264
- (y(!0), T(ve, null, ze(a.legend.barbs, (j, te) => (y(), U(n, {
5265
- key: j,
5275
+ (y(!0), T(_e, null, Le(a.legend.barbs, (H, te) => (y(), U(n, {
5276
+ key: H,
5266
5277
  cols: "6",
5267
5278
  class: "d-flex flex-row justify-start align-center py-1 px-0 ma-0"
5268
5279
  }, {
@@ -5272,7 +5283,7 @@ function Wr(o, e, t, i, a, r) {
5272
5283
  class: Ne(["iconfont", r.barbsIconName[te]]),
5273
5284
  style: oe({ color: t.theme === "dark" ? "#fff" : "#000" })
5274
5285
  }, null, 6),
5275
- l("span", mr, x(Number(j) < 10 ? `00${j}kts` : Number(j) < 100 ? `0${j}kts` : `${j}kts`), 1)
5286
+ l("span", mr, w(Number(H) < 10 ? `00${H}kts` : Number(H) < 100 ? `0${H}kts` : `${H}kts`), 1)
5276
5287
  ])
5277
5288
  ]),
5278
5289
  _: 2
@@ -5293,7 +5304,7 @@ function Wr(o, e, t, i, a, r) {
5293
5304
  style: { width: "100px" }
5294
5305
  }, {
5295
5306
  default: g(() => [
5296
- (y(!0), T(ve, null, ze(a.legend.sigWaveHeight, (j, te) => (y(), U(n, {
5307
+ (y(!0), T(_e, null, Le(a.legend.sigWaveHeight, (H, te) => (y(), U(n, {
5297
5308
  key: te,
5298
5309
  cols: "12",
5299
5310
  class: "d-flex flex-row justify-start align-center py-1 px-0 ma-0"
@@ -5302,9 +5313,9 @@ function Wr(o, e, t, i, a, r) {
5302
5313
  l("div", hr, [
5303
5314
  te === 0 ? (y(), T("div", dr)) : (y(), T("div", {
5304
5315
  key: 1,
5305
- style: oe({ width: "24px", height: "12px", background: j.color })
5316
+ style: oe({ width: "24px", height: "12px", background: H.color })
5306
5317
  }, null, 4)),
5307
- l("div", pr, x(j.label), 1)
5318
+ l("div", pr, w(H.label), 1)
5308
5319
  ])
5309
5320
  ]),
5310
5321
  _: 2
@@ -5325,7 +5336,7 @@ function Wr(o, e, t, i, a, r) {
5325
5336
  style: { width: "110px" }
5326
5337
  }, {
5327
5338
  default: g(() => [
5328
- (y(!0), T(ve, null, ze(a.legend.current, (j, te) => (y(), U(n, {
5339
+ (y(!0), T(_e, null, Le(a.legend.current, (H, te) => (y(), U(n, {
5329
5340
  key: te,
5330
5341
  cols: "12",
5331
5342
  class: "d-flex flex-row justify-center align-center py-1 px-0 ma-0"
@@ -5335,10 +5346,10 @@ function Wr(o, e, t, i, a, r) {
5335
5346
  l("div", gr, [
5336
5347
  l("i", {
5337
5348
  class: "iconfont icon-direction-arrow opacity-80",
5338
- style: oe({ fontSize: 48 * j.size + "px" })
5349
+ style: oe({ fontSize: 48 * H.size + "px" })
5339
5350
  }, null, 4)
5340
5351
  ]),
5341
- l("div", fr, x(j.label), 1)
5352
+ l("div", fr, w(H.label), 1)
5342
5353
  ])
5343
5354
  ]),
5344
5355
  _: 2
@@ -5352,18 +5363,18 @@ function Wr(o, e, t, i, a, r) {
5352
5363
  })
5353
5364
  ]),
5354
5365
  _: 1
5355
- }, 8, ["style"])) : N("", !0)
5356
- ])) : N("", !0),
5366
+ }, 8, ["style"])) : F("", !0)
5367
+ ])) : F("", !0),
5357
5368
  l("div", {
5358
5369
  class: Ne(["available-layers transition flex-center", a.toggle ? "right-bar" : ""]),
5359
5370
  style: oe({ top: t.top + "px", right: a.toggle ? "0px" : "-280px" })
5360
5371
  }, [
5361
5372
  l("div", br, [
5362
5373
  l("div", yr, [
5363
- l("div", wr, x(o.$t("weather.weather")), 1),
5374
+ l("div", wr, w(o.$t("weather.weather")), 1),
5364
5375
  h(_, {
5365
5376
  modelValue: a.autoActive,
5366
- "onUpdate:modelValue": e[1] || (e[1] = (j) => a.autoActive = j),
5377
+ "onUpdate:modelValue": e[1] || (e[1] = (H) => a.autoActive = H),
5367
5378
  class: "small-switch",
5368
5379
  color: "primary",
5369
5380
  inset: "",
@@ -5402,30 +5413,28 @@ function Wr(o, e, t, i, a, r) {
5402
5413
  style: { "font-size": "16px !important" }
5403
5414
  }, {
5404
5415
  default: g(() => [
5405
- Z(x(o.$t("weather.overlays")), 1)
5416
+ Z(w(o.$t("weather.overlays")), 1)
5406
5417
  ]),
5407
5418
  _: 1
5408
5419
  })
5409
5420
  ]),
5410
5421
  _: 1
5411
5422
  }),
5412
- h(d, null, {
5423
+ h(d, { class: "py-2" }, {
5413
5424
  default: g(() => [
5414
- l("div", xr, [
5415
- (y(!0), T(ve, null, ze(a.tagLayers.filter((j) => j.overlays), (j) => (y(), U(C, {
5416
- key: j.key,
5417
- modelValue: a.checkList,
5418
- "onUpdate:modelValue": e[2] || (e[2] = (te) => a.checkList = te),
5419
- value: j.key,
5420
- label: o.$t(`weather.${j.locale}`),
5421
- disabled: !a.autoActive,
5422
- color: "primary",
5423
- density: "compact",
5424
- style: { height: "36px" },
5425
- class: "flex-1-0-100 text-body-2",
5426
- "hide-details": ""
5427
- }, null, 8, ["modelValue", "value", "label", "disabled"]))), 128))
5428
- ])
5425
+ (y(!0), T(_e, null, Le(a.tagLayers.filter((H) => H.overlays), (H) => (y(), U(C, {
5426
+ key: H.key,
5427
+ modelValue: a.checkList,
5428
+ "onUpdate:modelValue": e[2] || (e[2] = (te) => a.checkList = te),
5429
+ value: H.key,
5430
+ label: o.$t(`weather.${H.locale}`),
5431
+ disabled: !a.autoActive,
5432
+ color: "primary",
5433
+ density: "compact",
5434
+ style: { height: "36px" },
5435
+ class: "flex-1-0-100 text-body-2",
5436
+ "hide-details": ""
5437
+ }, null, 8, ["modelValue", "value", "label", "disabled"]))), 128))
5429
5438
  ]),
5430
5439
  _: 1
5431
5440
  })
@@ -5444,102 +5453,103 @@ function Wr(o, e, t, i, a, r) {
5444
5453
  style: { "font-size": "16px !important" }
5445
5454
  }, {
5446
5455
  default: g(() => [
5447
- Z(x(o.$t("weather.renders")), 1)
5456
+ Z(w(o.$t("weather.renders")), 1)
5448
5457
  ]),
5449
5458
  _: 1
5450
5459
  })
5451
5460
  ]),
5452
5461
  _: 1
5453
5462
  }),
5454
- h(d, null, {
5463
+ h(d, { class: "py-2" }, {
5455
5464
  default: g(() => [
5456
- l("div", vr, [
5457
- (y(!0), T(ve, null, ze(a.tagLayers.filter((j) => !j.overlays && j.key !== "ice-thickness"), (j) => (y(), T(ve, {
5458
- key: j.key
5459
- }, [
5460
- h(C, {
5461
- modelValue: a.checkList,
5462
- "onUpdate:modelValue": e[3] || (e[3] = (te) => a.checkList = te),
5463
- value: j.key,
5464
- label: o.$t(`weather.${j.locale}`),
5465
- disabled: !a.autoActive,
5465
+ (y(!0), T(_e, null, Le(a.tagLayers.filter((H) => !H.overlays && H.key !== "ice-thickness"), (H) => (y(), T(_e, {
5466
+ key: H.key
5467
+ }, [
5468
+ h(B, {
5469
+ modelValue: a.renderKey,
5470
+ "onUpdate:modelValue": e[3] || (e[3] = (te) => a.renderKey = te),
5471
+ label: o.$t(`weather.${H.locale}`),
5472
+ value: H.key,
5473
+ disabled: !a.autoActive,
5474
+ color: "primary",
5475
+ density: "compact",
5476
+ style: { height: "36px" },
5477
+ class: "text-body-2 py-1",
5478
+ "hide-details": "",
5479
+ onClick: (te) => a.renderKey = H.key
5480
+ }, null, 8, ["modelValue", "label", "value", "disabled", "onClick"]),
5481
+ a.renderKey === "wind-particle" && H.key === "wind-particle" ? (y(), T("div", xr, [
5482
+ l("span", null, w(o.$t("weather.particle")), 1),
5483
+ h(_, {
5484
+ modelValue: a.showWindParticle,
5485
+ "onUpdate:modelValue": e[4] || (e[4] = (te) => a.showWindParticle = te),
5486
+ label: "",
5487
+ class: "small-switch",
5488
+ color: "primary",
5489
+ density: "compact",
5490
+ inset: "",
5491
+ style: { "font-size": "14px" },
5492
+ "hide-details": ""
5493
+ }, null, 8, ["modelValue"])
5494
+ ])) : F("", !0),
5495
+ a.renderKey === "current-particle" && H.key === "current-particle" ? (y(), T("div", vr, [
5496
+ e[13] || (e[13] = l("span", null, "Particle", -1)),
5497
+ h(_, {
5498
+ modelValue: a.showCurrentParticle,
5499
+ "onUpdate:modelValue": e[5] || (e[5] = (te) => a.showCurrentParticle = te),
5500
+ label: "",
5501
+ class: "small-switch",
5466
5502
  color: "primary",
5503
+ inset: "",
5467
5504
  density: "compact",
5468
- style: { height: "36px" },
5469
- class: "flex-1-0-100 text-body-2",
5505
+ height: "20",
5470
5506
  "hide-details": ""
5471
- }, null, 8, ["modelValue", "value", "label", "disabled"]),
5472
- a.checkList.includes("wind-particle") && j.key === "wind-particle" ? (y(), T("div", _r, [
5473
- e[13] || (e[13] = l("span", null, "Particle", -1)),
5474
- h(_, {
5475
- modelValue: a.showWindParticle,
5476
- "onUpdate:modelValue": e[4] || (e[4] = (te) => a.showWindParticle = te),
5477
- label: "",
5478
- class: "small-switch",
5479
- color: "primary",
5507
+ }, null, 8, ["modelValue"])
5508
+ ])) : F("", !0),
5509
+ a.renderKey === "ice-forecast" && H.key === "ice-forecast" ? (y(), U(M, {
5510
+ key: 2,
5511
+ modelValue: a.iceToggleValue,
5512
+ "onUpdate:modelValue": e[6] || (e[6] = (te) => a.iceToggleValue = te),
5513
+ class: "ml-7",
5514
+ rounded: "0",
5515
+ height: "30",
5516
+ density: "compact",
5517
+ group: "",
5518
+ disabled: !a.autoActive
5519
+ }, {
5520
+ default: g(() => [
5521
+ h(s, {
5480
5522
  density: "compact",
5481
- style: { "font-size": "14px" },
5482
- "hide-details": ""
5483
- }, null, 8, ["modelValue"])
5484
- ])) : N("", !0),
5485
- a.checkList.includes("current-particle") && j.key === "current-particle" ? (y(), T("div", kr, [
5486
- e[14] || (e[14] = l("span", null, "Particle", -1)),
5487
- h(_, {
5488
- modelValue: a.showCurrentParticle,
5489
- "onUpdate:modelValue": e[5] || (e[5] = (te) => a.showCurrentParticle = te),
5490
- label: "",
5491
- class: "small-switch",
5492
- color: "primary",
5523
+ height: "30",
5524
+ value: "ice-cover",
5525
+ class: "text-none px-2",
5526
+ color: a.iceToggleValue === "ice-cover" ? "primary" : "",
5527
+ "base-color": "grey-lighten-1",
5528
+ disabled: !a.autoActive
5529
+ }, {
5530
+ default: g(() => [
5531
+ Z(w(o.$t("weather.coverage")), 1)
5532
+ ]),
5533
+ _: 1
5534
+ }, 8, ["color", "disabled"]),
5535
+ h(s, {
5493
5536
  density: "compact",
5494
- height: "20",
5495
- "hide-details": ""
5496
- }, null, 8, ["modelValue"])
5497
- ])) : N("", !0),
5498
- a.checkList.includes("ice-forecast") && j.key === "ice-forecast" ? (y(), U(B, {
5499
- key: 2,
5500
- modelValue: a.iceToggleValue,
5501
- "onUpdate:modelValue": e[6] || (e[6] = (te) => a.iceToggleValue = te),
5502
- class: "ml-7",
5503
- rounded: "0",
5504
- height: "30",
5505
- density: "compact",
5506
- group: "",
5507
- disabled: !a.autoActive
5508
- }, {
5509
- default: g(() => [
5510
- h(s, {
5511
- density: "compact",
5512
- height: "30",
5513
- value: "ice-cover",
5514
- class: "text-none px-2",
5515
- color: a.iceToggleValue === "ice-cover" ? "primary" : "",
5516
- "base-color": "grey-lighten-1",
5517
- disabled: !a.autoActive
5518
- }, {
5519
- default: g(() => [
5520
- Z(x(o.$t("weather.coverage")), 1)
5521
- ]),
5522
- _: 1
5523
- }, 8, ["color", "disabled"]),
5524
- h(s, {
5525
- density: "compact",
5526
- height: "30",
5527
- class: "text-none px-2",
5528
- color: a.iceToggleValue === "ice-thickness" ? "primary" : "",
5529
- "base-color": "grey-lighten-1",
5530
- disabled: !a.autoActive,
5531
- value: "ice-thickness"
5532
- }, {
5533
- default: g(() => [
5534
- Z(x(o.$t("weather.thickness")), 1)
5535
- ]),
5536
- _: 1
5537
- }, 8, ["color", "disabled"])
5538
- ]),
5539
- _: 1
5540
- }, 8, ["modelValue", "disabled"])) : N("", !0)
5541
- ], 64))), 128))
5542
- ])
5537
+ height: "30",
5538
+ class: "text-none px-2",
5539
+ color: a.iceToggleValue === "ice-thickness" ? "primary" : "",
5540
+ "base-color": "grey-lighten-1",
5541
+ disabled: !a.autoActive,
5542
+ value: "ice-thickness"
5543
+ }, {
5544
+ default: g(() => [
5545
+ Z(w(o.$t("weather.thickness")), 1)
5546
+ ]),
5547
+ _: 1
5548
+ }, 8, ["color", "disabled"])
5549
+ ]),
5550
+ _: 1
5551
+ }, 8, ["modelValue", "disabled"])) : F("", !0)
5552
+ ], 64))), 128))
5543
5553
  ]),
5544
5554
  _: 1
5545
5555
  })
@@ -5558,7 +5568,7 @@ function Wr(o, e, t, i, a, r) {
5558
5568
  style: { "font-size": "16px !important" }
5559
5569
  }, {
5560
5570
  default: g(() => [
5561
- Z(x(o.$t("weather.forecastModel")), 1)
5571
+ Z(w(o.$t("weather.forecastModel")), 1)
5562
5572
  ]),
5563
5573
  _: 1
5564
5574
  })
@@ -5567,28 +5577,28 @@ function Wr(o, e, t, i, a, r) {
5567
5577
  }),
5568
5578
  h(d, { class: "" }, {
5569
5579
  default: g(() => {
5570
- var j, te, Le, Ee, Pe, he, pe, H, xe, J, ae, Ae, D, ue, Ce, De, Oe, A, G, He, We, Ge, ke, Ue, Ve, Ye, Ze, Xe, qe, Ke, Qe, Je, $e, et, tt, ot, at, it, rt, lt, st, nt, ct, mt, ht, dt, pt, ut, gt, ft, bt, yt, wt, xt, vt, _t, kt, zt, Lt, Pt, Ct, St, Mt, Tt, Rt, It, At, Dt, Ot, Bt, Et, jt, Ft, Nt, Ht, Wt, Gt, Ut, Vt, Yt, Zt, Xt;
5580
+ var H, te, Ee, Pe, me, pe, N, ve, J, ae, Ae, D, ue, Ce, De, Oe, A, G, He, We, Ge, ze, Ue, Ve, Ye, Ze, Xe, qe, Ke, Qe, Je, $e, et, tt, ot, at, it, rt, lt, st, nt, ct, mt, ht, dt, pt, ut, gt, ft, bt, yt, wt, xt, vt, _t, kt, zt, Lt, Pt, Ct, St, Mt, Tt, Rt, It, At, Dt, Ot, Bt, Et, jt, Ft, Nt, Ht, Wt, Gt, Ut, Vt, Yt, Zt, Xt, qt;
5571
5581
  return [
5572
- l("div", zr, x(o.$t("weather.atmospheric")), 1),
5573
- l("div", Lr, x((Le = (te = (j = a.models) == null ? void 0 : j.weather) == null ? void 0 : te.NOAA) == null ? void 0 : Le.source) + " " + x((he = (Pe = (Ee = a.models) == null ? void 0 : Ee.weather) == null ? void 0 : Pe.NOAA) == null ? void 0 : he.spatialResolution) + x(o.$t("units.km")) + " " + x((J = (xe = (H = (pe = a.models) == null ? void 0 : pe.weather) == null ? void 0 : H.NOAA) == null ? void 0 : xe.meta) == null ? void 0 : J.days) + x(o.$t("units.days")), 1),
5574
- l("div", Pr, x(o.$t("weather.source")) + ": NOAA", 1),
5575
- l("div", Cr, x(o.$t("weather.lastUpdate")) + ": " + x(r.computeDateZ((ue = (D = (Ae = (ae = a.models) == null ? void 0 : ae.weather) == null ? void 0 : Ae.NOAA) == null ? void 0 : D.meta) == null ? void 0 : ue.initialisationTime)), 1),
5576
- l("div", Sr, x((Oe = (De = (Ce = a.models) == null ? void 0 : Ce.weather) == null ? void 0 : De.ECMWF) == null ? void 0 : Oe.source) + " " + x((He = (G = (A = a.models) == null ? void 0 : A.weather) == null ? void 0 : G.ECMWF) == null ? void 0 : He.spatialResolution) + x(o.$t("units.km")) + " " + x((Ue = (ke = (Ge = (We = a.models) == null ? void 0 : We.weather) == null ? void 0 : Ge.ECMWF) == null ? void 0 : ke.meta) == null ? void 0 : Ue.days) + x(o.$t("units.days")), 1),
5577
- l("div", Mr, x(o.$t("weather.source")) + ": ECMWF", 1),
5578
- l("div", Tr, x(o.$t("weather.lastUpdate")) + ": " + x(r.computeDateZ((Xe = (Ze = (Ye = (Ve = a.models) == null ? void 0 : Ve.weather) == null ? void 0 : Ye.ECMWF) == null ? void 0 : Ze.meta) == null ? void 0 : Xe.initialisationTime)), 1),
5582
+ l("div", _r, w(o.$t("weather.atmospheric")), 1),
5583
+ l("div", kr, w((Ee = (te = (H = a.models) == null ? void 0 : H.weather) == null ? void 0 : te.NOAA) == null ? void 0 : Ee.source) + " " + w((pe = (me = (Pe = a.models) == null ? void 0 : Pe.weather) == null ? void 0 : me.NOAA) == null ? void 0 : pe.spatialResolution) + w(o.$t("units.km")) + " " + w((ae = (J = (ve = (N = a.models) == null ? void 0 : N.weather) == null ? void 0 : ve.NOAA) == null ? void 0 : J.meta) == null ? void 0 : ae.days) + w(o.$t("units.days")), 1),
5584
+ l("div", zr, w(o.$t("weather.source")) + ": NOAA", 1),
5585
+ l("div", Lr, w(o.$t("weather.lastUpdate")) + ": " + w(r.computeDateZ((Ce = (ue = (D = (Ae = a.models) == null ? void 0 : Ae.weather) == null ? void 0 : D.NOAA) == null ? void 0 : ue.meta) == null ? void 0 : Ce.initialisationTime)), 1),
5586
+ l("div", Pr, w((A = (Oe = (De = a.models) == null ? void 0 : De.weather) == null ? void 0 : Oe.ECMWF) == null ? void 0 : A.source) + " " + w((We = (He = (G = a.models) == null ? void 0 : G.weather) == null ? void 0 : He.ECMWF) == null ? void 0 : We.spatialResolution) + w(o.$t("units.km")) + " " + w((Ve = (Ue = (ze = (Ge = a.models) == null ? void 0 : Ge.weather) == null ? void 0 : ze.ECMWF) == null ? void 0 : Ue.meta) == null ? void 0 : Ve.days) + w(o.$t("units.days")), 1),
5587
+ l("div", Cr, w(o.$t("weather.source")) + ": ECMWF", 1),
5588
+ l("div", Sr, w(o.$t("weather.lastUpdate")) + ": " + w(r.computeDateZ((qe = (Xe = (Ze = (Ye = a.models) == null ? void 0 : Ye.weather) == null ? void 0 : Ze.ECMWF) == null ? void 0 : Xe.meta) == null ? void 0 : qe.initialisationTime)), 1),
5579
5589
  h(m),
5580
- l("div", Rr, x(o.$t("weather.wave")), 1),
5581
- l("div", Ir, x((Je = (Qe = (Ke = (qe = a.models) == null ? void 0 : qe.marine) == null ? void 0 : Ke.wave) == null ? void 0 : Qe.NOAA) == null ? void 0 : Je.source) + " " + x((ot = (tt = (et = ($e = a.models) == null ? void 0 : $e.marine) == null ? void 0 : et.wave) == null ? void 0 : tt.NOAA) == null ? void 0 : ot.spatialResolution) + x(o.$t("units.km")) + " " + x((st = (lt = (rt = (it = (at = a.models) == null ? void 0 : at.marine) == null ? void 0 : it.wave) == null ? void 0 : rt.NOAA) == null ? void 0 : lt.meta) == null ? void 0 : st.days) + x(o.$t("units.days")), 1),
5582
- l("div", Ar, x(o.$t("weather.source")) + ": NOAA", 1),
5583
- l("div", Dr, x(o.$t("weather.lastUpdate")) + ": " + x(r.computeDateZ((dt = (ht = (mt = (ct = (nt = a.models) == null ? void 0 : nt.marine) == null ? void 0 : ct.wave) == null ? void 0 : mt.NOAA) == null ? void 0 : ht.meta) == null ? void 0 : dt.initialisationTime)), 1),
5584
- l("div", Or, x((ft = (gt = (ut = (pt = a.models) == null ? void 0 : pt.marine) == null ? void 0 : ut.wave) == null ? void 0 : gt.ECMWF) == null ? void 0 : ft.source) + " " + x((xt = (wt = (yt = (bt = a.models) == null ? void 0 : bt.marine) == null ? void 0 : yt.wave) == null ? void 0 : wt.ECMWF) == null ? void 0 : xt.spatialResolution) + x(o.$t("units.km")) + " " + x((Lt = (zt = (kt = (_t = (vt = a.models) == null ? void 0 : vt.marine) == null ? void 0 : _t.wave) == null ? void 0 : kt.ECMWF) == null ? void 0 : zt.meta) == null ? void 0 : Lt.days) + x(o.$t("units.days")), 1),
5585
- l("div", Br, x(o.$t("weather.source")) + ": ECMWF", 1),
5586
- l("div", Er, x(o.$t("weather.lastUpdate")) + ": " + x(r.computeDateZ((Tt = (Mt = (St = (Ct = (Pt = a.models) == null ? void 0 : Pt.marine) == null ? void 0 : Ct.wave) == null ? void 0 : St.ECMWF) == null ? void 0 : Mt.meta) == null ? void 0 : Tt.initialisationTime)), 1),
5590
+ l("div", Mr, w(o.$t("weather.wave")), 1),
5591
+ l("div", Tr, w(($e = (Je = (Qe = (Ke = a.models) == null ? void 0 : Ke.marine) == null ? void 0 : Qe.wave) == null ? void 0 : Je.NOAA) == null ? void 0 : $e.source) + " " + w((at = (ot = (tt = (et = a.models) == null ? void 0 : et.marine) == null ? void 0 : tt.wave) == null ? void 0 : ot.NOAA) == null ? void 0 : at.spatialResolution) + w(o.$t("units.km")) + " " + w((nt = (st = (lt = (rt = (it = a.models) == null ? void 0 : it.marine) == null ? void 0 : rt.wave) == null ? void 0 : lt.NOAA) == null ? void 0 : st.meta) == null ? void 0 : nt.days) + w(o.$t("units.days")), 1),
5592
+ l("div", Rr, w(o.$t("weather.source")) + ": NOAA", 1),
5593
+ l("div", Ir, w(o.$t("weather.lastUpdate")) + ": " + w(r.computeDateZ((pt = (dt = (ht = (mt = (ct = a.models) == null ? void 0 : ct.marine) == null ? void 0 : mt.wave) == null ? void 0 : ht.NOAA) == null ? void 0 : dt.meta) == null ? void 0 : pt.initialisationTime)), 1),
5594
+ l("div", Ar, w((bt = (ft = (gt = (ut = a.models) == null ? void 0 : ut.marine) == null ? void 0 : gt.wave) == null ? void 0 : ft.ECMWF) == null ? void 0 : bt.source) + " " + w((vt = (xt = (wt = (yt = a.models) == null ? void 0 : yt.marine) == null ? void 0 : wt.wave) == null ? void 0 : xt.ECMWF) == null ? void 0 : vt.spatialResolution) + w(o.$t("units.km")) + " " + w((Pt = (Lt = (zt = (kt = (_t = a.models) == null ? void 0 : _t.marine) == null ? void 0 : kt.wave) == null ? void 0 : zt.ECMWF) == null ? void 0 : Lt.meta) == null ? void 0 : Pt.days) + w(o.$t("units.days")), 1),
5595
+ l("div", Dr, w(o.$t("weather.source")) + ": ECMWF", 1),
5596
+ l("div", Or, w(o.$t("weather.lastUpdate")) + ": " + w(r.computeDateZ((Rt = (Tt = (Mt = (St = (Ct = a.models) == null ? void 0 : Ct.marine) == null ? void 0 : St.wave) == null ? void 0 : Mt.ECMWF) == null ? void 0 : Tt.meta) == null ? void 0 : Rt.initialisationTime)), 1),
5587
5597
  h(m),
5588
- l("div", jr, x(o.$t("weather.currents")), 1),
5589
- l("div", Fr, x((Dt = (At = (It = (Rt = a.models) == null ? void 0 : Rt.marine) == null ? void 0 : It.current) == null ? void 0 : At.ECMWF) == null ? void 0 : Dt.source) + " " + x((jt = (Et = (Bt = (Ot = a.models) == null ? void 0 : Ot.marine) == null ? void 0 : Bt.current) == null ? void 0 : Et.ECMWF) == null ? void 0 : jt.spatialResolution) + x(o.$t("units.km")) + " " + x((Gt = (Wt = (Ht = (Nt = (Ft = a.models) == null ? void 0 : Ft.marine) == null ? void 0 : Nt.current) == null ? void 0 : Ht.ECMWF) == null ? void 0 : Wt.meta) == null ? void 0 : Gt.days) + x(o.$t("units.days")), 1),
5590
- l("div", Nr, x(o.$t("weather.source")) + ": ECMWF", 1),
5591
- l("div", Hr, x(o.$t("weather.lastUpdate")) + ": " + x(r.computeDateZ((Xt = (Zt = (Yt = (Vt = (Ut = a.models) == null ? void 0 : Ut.marine) == null ? void 0 : Vt.current) == null ? void 0 : Yt.ECMWF) == null ? void 0 : Zt.meta) == null ? void 0 : Xt.initialisationTime)), 1)
5598
+ l("div", Br, w(o.$t("weather.currents")), 1),
5599
+ l("div", Er, w((Ot = (Dt = (At = (It = a.models) == null ? void 0 : It.marine) == null ? void 0 : At.current) == null ? void 0 : Dt.ECMWF) == null ? void 0 : Ot.source) + " " + w((Ft = (jt = (Et = (Bt = a.models) == null ? void 0 : Bt.marine) == null ? void 0 : Et.current) == null ? void 0 : jt.ECMWF) == null ? void 0 : Ft.spatialResolution) + w(o.$t("units.km")) + " " + w((Ut = (Gt = (Wt = (Ht = (Nt = a.models) == null ? void 0 : Nt.marine) == null ? void 0 : Ht.current) == null ? void 0 : Wt.ECMWF) == null ? void 0 : Gt.meta) == null ? void 0 : Ut.days) + w(o.$t("units.days")), 1),
5600
+ l("div", jr, w(o.$t("weather.source")) + ": ECMWF", 1),
5601
+ l("div", Fr, w(o.$t("weather.lastUpdate")) + ": " + w(r.computeDateZ((qt = (Xt = (Zt = (Yt = (Vt = a.models) == null ? void 0 : Vt.marine) == null ? void 0 : Yt.current) == null ? void 0 : Zt.ECMWF) == null ? void 0 : Xt.meta) == null ? void 0 : qt.initialisationTime)), 1)
5592
5602
  ];
5593
5603
  }),
5594
5604
  _: 1
@@ -5598,109 +5608,109 @@ function Wr(o, e, t, i, a, r) {
5598
5608
  })
5599
5609
  ], 2)
5600
5610
  ], 6),
5601
- t.map ? (y(), U(M, E({
5611
+ t.map ? (y(), U(L, E({
5602
5612
  key: 1,
5603
5613
  ref: "windBarb",
5604
5614
  map: t.map,
5605
5615
  "map-feather": t.mapFeather,
5606
5616
  "before-layer": "empty-layer-2",
5607
- wind: (ce = a.weatherLayers) == null ? void 0 : ce.wind,
5617
+ wind: (de = a.weatherLayers) == null ? void 0 : de.wind,
5608
5618
  "menu-toggle": t.menuToggle
5609
- }, o.$attrs), null, 16, ["map", "map-feather", "wind", "menu-toggle"])) : N("", !0),
5610
- t.map ? (y(), U(L, E({
5619
+ }, o.$attrs), null, 16, ["map", "map-feather", "wind", "menu-toggle"])) : F("", !0),
5620
+ t.map ? (y(), U(v, E({
5611
5621
  key: 2,
5612
5622
  map: t.map,
5613
5623
  "before-layer": "empty-layer-2",
5614
- "sig-wave-height": (de = a.weatherLayers) == null ? void 0 : de["sig-wave-height"],
5624
+ "sig-wave-height": (ce = a.weatherLayers) == null ? void 0 : ce["sig-wave-height"],
5615
5625
  "menu-toggle": t.menuToggle,
5616
5626
  "active-weather-layers": a.activeWeatherLayers
5617
- }, o.$attrs), null, 16, ["map", "sig-wave-height", "menu-toggle", "active-weather-layers"])) : N("", !0),
5618
- t.map ? (y(), U(v, E({
5627
+ }, o.$attrs), null, 16, ["map", "sig-wave-height", "menu-toggle", "active-weather-layers"])) : F("", !0),
5628
+ t.map ? (y(), U(z, E({
5619
5629
  key: 3,
5620
5630
  map: t.map,
5621
5631
  "map-feather": t.mapFeather,
5622
5632
  "before-layer": "empty-layer-2",
5623
- current: (me = a.weatherLayers) == null ? void 0 : me.current,
5633
+ current: (K = a.weatherLayers) == null ? void 0 : K.current,
5624
5634
  "menu-toggle": t.menuToggle
5625
- }, o.$attrs), null, 16, ["map", "map-feather", "current", "menu-toggle"])) : N("", !0),
5626
- t.map ? (y(), U(z, E({
5635
+ }, o.$attrs), null, 16, ["map", "map-feather", "current", "menu-toggle"])) : F("", !0),
5636
+ t.map ? (y(), U(P, E({
5627
5637
  key: 4,
5628
5638
  map: t.map,
5629
5639
  "before-layer": "empty-layer-2",
5630
- prmsl: (K = a.weatherLayers) == null ? void 0 : K.prmsl,
5640
+ prmsl: (I = a.weatherLayers) == null ? void 0 : I.prmsl,
5631
5641
  "menu-toggle": t.menuToggle,
5632
5642
  "active-weather-layers": a.activeWeatherLayers
5633
- }, o.$attrs), null, 16, ["map", "prmsl", "menu-toggle", "active-weather-layers"])) : N("", !0),
5634
- t.map ? (y(), U(P, E({
5643
+ }, o.$attrs), null, 16, ["map", "prmsl", "menu-toggle", "active-weather-layers"])) : F("", !0),
5644
+ t.map ? (y(), U(x, E({
5635
5645
  key: 5,
5636
5646
  viewport: a.viewport,
5637
- factor: (I = a.weatherLayers) == null ? void 0 : I["wind-particle"],
5647
+ factor: (le = a.weatherLayers) == null ? void 0 : le["wind-particle"],
5638
5648
  "menu-toggle": t.menuToggle
5639
- }, o.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : N("", !0),
5640
- t.map ? (y(), U(w, E({
5649
+ }, o.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : F("", !0),
5650
+ t.map ? (y(), U(R, E({
5641
5651
  key: 6,
5642
5652
  viewport: a.viewport,
5643
- factor: (le = a.weatherLayers) == null ? void 0 : le["current-particle"],
5653
+ factor: (ge = a.weatherLayers) == null ? void 0 : ge["current-particle"],
5644
5654
  "menu-toggle": t.menuToggle
5645
- }, o.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : N("", !0),
5646
- t.map ? (y(), U(R, E({
5655
+ }, o.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : F("", !0),
5656
+ t.map ? (y(), U(W, E({
5647
5657
  key: 7,
5648
5658
  viewport: a.viewport,
5649
- factor: (ge = a.weatherLayers) == null ? void 0 : ge["sig-wave"],
5659
+ factor: (fe = a.weatherLayers) == null ? void 0 : fe["sig-wave"],
5650
5660
  "menu-toggle": t.menuToggle
5651
- }, o.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : N("", !0),
5652
- t.map ? (y(), U(W, E({
5661
+ }, o.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : F("", !0),
5662
+ t.map ? (y(), U(X, E({
5653
5663
  key: 8,
5654
5664
  map: t.map,
5655
- swell: (fe = a.weatherLayers) == null ? void 0 : fe.swell,
5665
+ swell: (we = a.weatherLayers) == null ? void 0 : we.swell,
5656
5666
  "menu-toggle": t.menuToggle,
5657
5667
  "active-weather-layers": a.activeWeatherLayers
5658
- }, o.$attrs), null, 16, ["map", "swell", "menu-toggle", "active-weather-layers"])) : N("", !0),
5659
- t.map ? (y(), U(X, E({
5668
+ }, o.$attrs), null, 16, ["map", "swell", "menu-toggle", "active-weather-layers"])) : F("", !0),
5669
+ t.map ? (y(), U(V, E({
5660
5670
  key: 9,
5661
5671
  viewport: a.viewport,
5662
- factor: (ye = a.weatherLayers) == null ? void 0 : ye["ice-edge"],
5672
+ factor: (xe = a.weatherLayers) == null ? void 0 : xe["ice-edge"],
5663
5673
  "menu-toggle": t.menuToggle
5664
- }, o.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : N("", !0),
5665
- t.map ? (y(), U(V, E({
5674
+ }, o.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : F("", !0),
5675
+ t.map ? (y(), U(Y, E({
5666
5676
  key: 10,
5667
5677
  viewport: a.viewport,
5668
- factor: (we = a.weatherLayers) == null ? void 0 : we["ice-cover"],
5678
+ factor: (Se = a.weatherLayers) == null ? void 0 : Se["ice-cover"],
5669
5679
  "menu-toggle": t.menuToggle
5670
- }, o.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : N("", !0),
5671
- t.map ? (y(), U(Y, E({
5680
+ }, o.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : F("", !0),
5681
+ t.map ? (y(), U($, E({
5672
5682
  key: 11,
5673
5683
  viewport: a.viewport,
5674
- factor: (Se = a.weatherLayers) == null ? void 0 : Se["ice-thickness"],
5684
+ factor: (Me = a.weatherLayers) == null ? void 0 : Me["ice-thickness"],
5675
5685
  "menu-toggle": t.menuToggle
5676
- }, o.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : N("", !0),
5677
- t.map ? (y(), U($, E({
5686
+ }, o.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : F("", !0),
5687
+ t.map ? (y(), U(ee, E({
5678
5688
  key: 12,
5679
5689
  viewport: a.viewport,
5680
- factor: (Me = a.weatherLayers) == null ? void 0 : Me.precip3h,
5690
+ factor: (Te = a.weatherLayers) == null ? void 0 : Te.precip3h,
5681
5691
  "menu-toggle": t.menuToggle
5682
- }, o.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : N("", !0),
5683
- t.map ? (y(), U(ee, E({
5692
+ }, o.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : F("", !0),
5693
+ t.map ? (y(), U(Q, E({
5684
5694
  key: 13,
5685
5695
  viewport: a.viewport,
5686
- factor: (Te = a.weatherLayers) == null ? void 0 : Te.visibility,
5696
+ factor: (Re = a.weatherLayers) == null ? void 0 : Re.visibility,
5687
5697
  "menu-toggle": t.menuToggle
5688
- }, o.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : N("", !0),
5689
- t.map ? (y(), U(Q, E({
5698
+ }, o.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : F("", !0),
5699
+ t.map ? (y(), U(ne, E({
5690
5700
  key: 14,
5691
5701
  viewport: a.viewport,
5692
- factor: (Re = a.weatherLayers) == null ? void 0 : Re["water-temp"],
5702
+ factor: (Ie = a.weatherLayers) == null ? void 0 : Ie["water-temp"],
5693
5703
  "menu-toggle": t.menuToggle
5694
- }, o.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : N("", !0),
5695
- t.map ? (y(), U(ne, E({
5704
+ }, o.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : F("", !0),
5705
+ t.map ? (y(), U(he, E({
5696
5706
  key: 15,
5697
5707
  viewport: a.viewport,
5698
- factor: (Ie = a.weatherLayers) == null ? void 0 : Ie.temp,
5708
+ factor: (be = a.weatherLayers) == null ? void 0 : be.temp,
5699
5709
  "menu-toggle": t.menuToggle
5700
- }, o.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : N("", !0)
5710
+ }, o.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : F("", !0)
5701
5711
  ]);
5702
5712
  }
5703
- const Gr = /* @__PURE__ */ q(lr, [["render", Wr]]), qt = [
5713
+ const Hr = /* @__PURE__ */ q(lr, [["render", Nr]]), Kt = [
5704
5714
  {
5705
5715
  rank: 0,
5706
5716
  name: "Best Match",
@@ -5859,7 +5869,7 @@ const Gr = /* @__PURE__ */ q(lr, [["render", Wr]]), qt = [
5859
5869
  categories: "bom_access_global",
5860
5870
  variables: "temperature_2m,relative_humidity_2m,dew_point_2m,apparent_temperature,precipitation_probability,precipitation,rain,showers,snowfall_water_equivalent,snowfall,frozen_precipitation_percent,pressure_msl,cloud_cover,visibility,wind_speed_10m,wind_u_component_10m,wind_v_component_10m,wind_direction_10m,wind_gusts_10m,cape,lifted_index,weather_code"
5861
5871
  }
5862
- ], Kt = [
5872
+ ], Qt = [
5863
5873
  {
5864
5874
  rank: 0,
5865
5875
  name: "Best Match",
@@ -5980,10 +5990,10 @@ const Gr = /* @__PURE__ */ q(lr, [["render", Wr]]), qt = [
5980
5990
  ];
5981
5991
  class Do {
5982
5992
  static standardWeatherModels() {
5983
- return qt.filter((e) => !e.disabled && e.alias);
5993
+ return Kt.filter((e) => !e.disabled && e.alias);
5984
5994
  }
5985
5995
  static standardMarineModels() {
5986
- return Kt.filter((e) => !e.disabled && e.alias);
5996
+ return Qt.filter((e) => !e.disabled && e.alias);
5987
5997
  }
5988
5998
  /**
5989
5999
  * 可视化图层模式
@@ -6017,20 +6027,20 @@ class Do {
6017
6027
  e = e == null ? void 0 : e.toLowerCase(), e = e === "ec" ? "ecmwf" : e;
6018
6028
  const a = e.toLowerCase().split(","), r = [], s = [];
6019
6029
  for (const c of a) {
6020
- let n = qt.find((d) => {
6030
+ let n = Kt.find((d) => {
6021
6031
  var m, f, _;
6022
6032
  return ((m = d.models) == null ? void 0 : m.includes(c)) || ((f = d.alias) == null ? void 0 : f.toLowerCase()) === c || ((_ = d.name) == null ? void 0 : _.toLowerCase()) === c;
6023
- }), p = Kt.find((d) => {
6033
+ }), p = Qt.find((d) => {
6024
6034
  var m, f, _;
6025
6035
  return ((m = d.models) == null ? void 0 : m.includes(c)) || ((f = d.alias) == null ? void 0 : f.toLowerCase()) === c || ((_ = d.name) == null ? void 0 : _.toLowerCase()) === c;
6026
6036
  });
6027
- n = n || qt.find((d) => {
6037
+ n = n || Kt.find((d) => {
6028
6038
  var m, f;
6029
6039
  return ((m = d.alias) == null ? void 0 : m.toLowerCase()) === ((f = p == null ? void 0 : p.alias) == null ? void 0 : f.toLowerCase());
6030
- }), p = p || Kt.find((d) => {
6040
+ }), p = p || Qt.find((d) => {
6031
6041
  var m, f;
6032
6042
  return ((m = d.alias) == null ? void 0 : m.toLowerCase()) === ((f = n == null ? void 0 : n.alias) == null ? void 0 : f.toLowerCase());
6033
- }), n = n || qt[0], p = p || Kt[0], r.push((t = n.models) != null && t.includes(c) ? c : n.model), s.push((i = p.models) != null && i.includes(c) ? c : p.model);
6043
+ }), n = n || Kt[0], p = p || Qt[0], r.push((t = n.models) != null && t.includes(c) ? c : n.model), s.push((i = p.models) != null && i.includes(c) ? c : p.model);
6034
6044
  }
6035
6045
  return {
6036
6046
  weatherModels: r.join(","),
@@ -6039,7 +6049,7 @@ class Do {
6039
6049
  }
6040
6050
  static autoPickSubCategories(e) {
6041
6051
  e = e.toUpperCase();
6042
- const t = qt.filter((r) => r.alias === e), i = Kt.filter((r) => r.alias === e), a = [];
6052
+ const t = Kt.filter((r) => r.alias === e), i = Qt.filter((r) => r.alias === e), a = [];
6043
6053
  return t.forEach((r) => {
6044
6054
  r.categories && a.push(...r.categories.split(","));
6045
6055
  }), i.forEach((r) => {
@@ -6047,19 +6057,19 @@ class Do {
6047
6057
  }), a;
6048
6058
  }
6049
6059
  static pickHourly(e, t) {
6050
- var i, a, r, s, c, n, p, d, m, f, _, b, S, C, B, M, L, v, z, P, w, R, W, X, V, Y, $, ee, Q, ne, ce, de, me, K, I, le, ge, fe, ye, we, Se, Me, Te, Re, Ie, j, te, Le, Ee, Pe;
6051
- const he = typeof t == "string" ? O(t) : t, pe = e == null ? void 0 : e.weather, H = e == null ? void 0 : e.marine, xe = O((a = (i = pe == null ? void 0 : pe[0]) == null ? void 0 : i.hourly) == null ? void 0 : a.date).utc(), J = xe.clone().add((c = (s = (r = pe == null ? void 0 : pe[0]) == null ? void 0 : r.hourly) == null ? void 0 : s.time) == null ? void 0 : c.at(0), "h"), ae = xe.clone().add((d = (p = (n = pe == null ? void 0 : pe[0]) == null ? void 0 : n.hourly) == null ? void 0 : p.time) == null ? void 0 : d.at(-1), "h"), Ae = [];
6052
- if (he.isBetween(J, ae, "millisecond", "[]")) {
6053
- const D = he.utc().diff(J, "h", !1);
6060
+ var i, a, r, s, c, n, p, d, m, f, _, b, S, C, B, M, L, v, z, P, x, R, W, X, V, Y, $, ee, Q, ne, he, de, ce, K, I, le, ge, fe, we, xe, Se, Me, Te, Re, Ie, be, H, te, Ee, Pe;
6061
+ const me = typeof t == "string" ? O(t) : t, pe = e == null ? void 0 : e.weather, N = e == null ? void 0 : e.marine, ve = O((a = (i = pe == null ? void 0 : pe[0]) == null ? void 0 : i.hourly) == null ? void 0 : a.date).utc(), J = ve.clone().add((c = (s = (r = pe == null ? void 0 : pe[0]) == null ? void 0 : r.hourly) == null ? void 0 : s.time) == null ? void 0 : c.at(0), "h"), ae = ve.clone().add((d = (p = (n = pe == null ? void 0 : pe[0]) == null ? void 0 : n.hourly) == null ? void 0 : p.time) == null ? void 0 : d.at(-1), "h"), Ae = [];
6062
+ if (me.isBetween(J, ae, "millisecond", "[]")) {
6063
+ const D = me.utc().diff(J, "h", !1);
6054
6064
  let ue, Ce;
6055
6065
  if (pe) {
6056
6066
  let De = 0, Oe = 0;
6057
6067
  for (const A of pe) {
6058
6068
  const G = A == null ? void 0 : A.hourly;
6059
- for (let ke = D - (D - 1) % 3; ke <= D; ke++)
6060
- De += (m = G == null ? void 0 : G.precipitation) == null ? void 0 : m.at(ke);
6061
- for (let ke = D - (D - 1) % 6; ke <= D; ke++)
6062
- Oe += (f = G == null ? void 0 : G.precipitation) == null ? void 0 : f.at(ke);
6069
+ for (let ze = D - (D - 1) % 3; ze <= D; ze++)
6070
+ De += (m = G == null ? void 0 : G.precipitation) == null ? void 0 : m.at(ze);
6071
+ for (let ze = D - (D - 1) % 6; ze <= D; ze++)
6072
+ Oe += (f = G == null ? void 0 : G.precipitation) == null ? void 0 : f.at(ze);
6063
6073
  ue = {
6064
6074
  temp: (_ = G == null ? void 0 : G.temperature_2m) == null ? void 0 : _.at(D),
6065
6075
  apparentTemp: (b = G == null ? void 0 : G.apparent_temperature) == null ? void 0 : b.at(D),
@@ -6076,7 +6086,7 @@ class Do {
6076
6086
  code: (z = G == null ? void 0 : G.weather_code) == null ? void 0 : z.at(D),
6077
6087
  visibility: this.m2nm((P = G == null ? void 0 : G.visibility) == null ? void 0 : P.at(D)),
6078
6088
  wind: {
6079
- speed: (w = G == null ? void 0 : G.wind_speed_10m) == null ? void 0 : w.at(D),
6089
+ speed: (x = G == null ? void 0 : G.wind_speed_10m) == null ? void 0 : x.at(D),
6080
6090
  kts: (R = G == null ? void 0 : G.wind_speed_10m) == null ? void 0 : R.at(D),
6081
6091
  degree: (W = G == null ? void 0 : G.wind_direction_10m) == null ? void 0 : W.at(D),
6082
6092
  bearing: ((X = G == null ? void 0 : G.wind_direction_10m) == null ? void 0 : X.at(D)) !== null ? (((V = G == null ? void 0 : G.wind_direction_10m) == null ? void 0 : V.at(D)) + 180) % 360 : null,
@@ -6092,28 +6102,28 @@ class Do {
6092
6102
  });
6093
6103
  }
6094
6104
  }
6095
- if (H) {
6105
+ if (N) {
6096
6106
  let De = 0;
6097
- for (const Oe of H) {
6107
+ for (const Oe of N) {
6098
6108
  const A = Oe == null ? void 0 : Oe.hourly;
6099
6109
  Ce = {
6100
6110
  wave: {
6101
6111
  sig: {
6102
6112
  height: (ee = A == null ? void 0 : A.wave_height) == null ? void 0 : ee.at(D),
6103
6113
  degree: (Q = A == null ? void 0 : A.wave_direction) == null ? void 0 : Q.at(D),
6104
- bearing: ((ne = A == null ? void 0 : A.wave_direction) == null ? void 0 : ne.at(D)) !== null ? (((ce = A == null ? void 0 : A.wave_direction) == null ? void 0 : ce.at(D)) + 180) % 360 : null,
6114
+ bearing: ((ne = A == null ? void 0 : A.wave_direction) == null ? void 0 : ne.at(D)) !== null ? (((he = A == null ? void 0 : A.wave_direction) == null ? void 0 : he.at(D)) + 180) % 360 : null,
6105
6115
  period: (de = A == null ? void 0 : A.wave_period) == null ? void 0 : de.at(D)
6106
6116
  },
6107
6117
  swell: {
6108
- height: (me = A == null ? void 0 : A.swell_wave_height) == null ? void 0 : me.at(D),
6118
+ height: (ce = A == null ? void 0 : A.swell_wave_height) == null ? void 0 : ce.at(D),
6109
6119
  degree: (K = A == null ? void 0 : A.swell_wave_direction) == null ? void 0 : K.at(D),
6110
6120
  bearing: ((I = A == null ? void 0 : A.swell_wave_direction) == null ? void 0 : I.at(D)) !== null ? (((le = A == null ? void 0 : A.swell_wave_direction) == null ? void 0 : le.at(D)) + 180) % 360 : null,
6111
6121
  period: (ge = A == null ? void 0 : A.swell_wave_period) == null ? void 0 : ge.at(D),
6112
6122
  peakPeriod: (fe = A == null ? void 0 : A.swell_wave_peak_period) == null ? void 0 : fe.at(D)
6113
6123
  },
6114
6124
  wd: {
6115
- height: (ye = A == null ? void 0 : A.wind_wave_height) == null ? void 0 : ye.at(D),
6116
- degree: (we = A == null ? void 0 : A.wind_wave_direction) == null ? void 0 : we.at(D),
6125
+ height: (we = A == null ? void 0 : A.wind_wave_height) == null ? void 0 : we.at(D),
6126
+ degree: (xe = A == null ? void 0 : A.wind_wave_direction) == null ? void 0 : xe.at(D),
6117
6127
  bearing: ((Se = A == null ? void 0 : A.wind_wave_direction) == null ? void 0 : Se.at(D)) !== null ? (((Me = A == null ? void 0 : A.wind_wave_direction) == null ? void 0 : Me.at(D)) + 180) % 360 : null,
6118
6128
  period: (Te = A == null ? void 0 : A.wind_wave_period) == null ? void 0 : Te.at(D),
6119
6129
  peakPeriod: (Re = A == null ? void 0 : A.wind_wave_peak_period) == null ? void 0 : Re.at(D)
@@ -6121,9 +6131,9 @@ class Do {
6121
6131
  },
6122
6132
  current: {
6123
6133
  speed: (Ie = A == null ? void 0 : A.ocean_current_velocity) == null ? void 0 : Ie.at(D),
6124
- kts: (j = A == null ? void 0 : A.ocean_current_velocity) == null ? void 0 : j.at(D),
6125
- degree: (te = A == null ? void 0 : A.ocean_current_direction) == null ? void 0 : te.at(D),
6126
- bearing: ((Le = A == null ? void 0 : A.ocean_current_direction) == null ? void 0 : Le.at(D)) ?? null
6134
+ kts: (be = A == null ? void 0 : A.ocean_current_velocity) == null ? void 0 : be.at(D),
6135
+ degree: (H = A == null ? void 0 : A.ocean_current_direction) == null ? void 0 : H.at(D),
6136
+ bearing: ((te = A == null ? void 0 : A.ocean_current_direction) == null ? void 0 : te.at(D)) ?? null
6127
6137
  },
6128
6138
  sst: (Ee = A == null ? void 0 : A.sea_surface_temperature) == null ? void 0 : Ee.at(D),
6129
6139
  height: (Pe = A == null ? void 0 : A.sea_level_height_msl) == null ? void 0 : Pe.at(D)
@@ -6156,82 +6166,82 @@ class Do {
6156
6166
  };
6157
6167
  }
6158
6168
  static pickDaily(e, t) {
6159
- var i, a, r, s, c, n, p, d, m, f, _, b, S, C, B, M, L, v, z, P, w, R, W, X, V, Y, $, ee, Q, ne, ce, de, me, K, I, le, ge, fe, ye, we, Se, Me, Te, Re;
6160
- const Ie = typeof t == "string" ? O(t) : t, j = e == null ? void 0 : e.weather, te = e == null ? void 0 : e.marine, Le = O((r = (a = (i = j == null ? void 0 : j[0]) == null ? void 0 : i.daily) == null ? void 0 : a.time) == null ? void 0 : r.at(0)), Ee = O((n = (c = (s = j == null ? void 0 : j[0]) == null ? void 0 : s.daily) == null ? void 0 : c.time) == null ? void 0 : n.at(-1)), Pe = [];
6161
- if (Ie.isBetween(Le, Ee, "millisecond", "[]")) {
6162
- let he, pe;
6163
- const H = Ie.diff(Le, "d", !1);
6164
- if (j)
6165
- for (const xe of j) {
6166
- const J = xe.daily;
6167
- he = {
6168
- code: (p = J.weather_code) == null ? void 0 : p.at(H),
6169
+ var i, a, r, s, c, n, p, d, m, f, _, b, S, C, B, M, L, v, z, P, x, R, W, X, V, Y, $, ee, Q, ne, he, de, ce, K, I, le, ge, fe, we, xe, Se, Me, Te, Re;
6170
+ const Ie = typeof t == "string" ? O(t) : t, be = e == null ? void 0 : e.weather, H = e == null ? void 0 : e.marine, te = O((r = (a = (i = be == null ? void 0 : be[0]) == null ? void 0 : i.daily) == null ? void 0 : a.time) == null ? void 0 : r.at(0)), Ee = O((n = (c = (s = be == null ? void 0 : be[0]) == null ? void 0 : s.daily) == null ? void 0 : c.time) == null ? void 0 : n.at(-1)), Pe = [];
6171
+ if (Ie.isBetween(te, Ee, "millisecond", "[]")) {
6172
+ let me, pe;
6173
+ const N = Ie.diff(te, "d", !1);
6174
+ if (be)
6175
+ for (const ve of be) {
6176
+ const J = ve.daily;
6177
+ me = {
6178
+ code: (p = J.weather_code) == null ? void 0 : p.at(N),
6169
6179
  temp: {
6170
- max: (d = J.temperature_2m_max) == null ? void 0 : d.at(H),
6171
- min: (m = J.temperature_2m_min) == null ? void 0 : m.at(H),
6172
- mean: (f = J.temperature_2m_mean) == null ? void 0 : f.at(H)
6180
+ max: (d = J.temperature_2m_max) == null ? void 0 : d.at(N),
6181
+ min: (m = J.temperature_2m_min) == null ? void 0 : m.at(N),
6182
+ mean: (f = J.temperature_2m_mean) == null ? void 0 : f.at(N)
6173
6183
  },
6174
6184
  apparentTemp: {
6175
- max: (_ = J.apparent_temperature_max) == null ? void 0 : _.at(H),
6176
- min: (b = J.apparent_temperature_min) == null ? void 0 : b.at(H)
6185
+ max: (_ = J.apparent_temperature_max) == null ? void 0 : _.at(N),
6186
+ min: (b = J.apparent_temperature_min) == null ? void 0 : b.at(N)
6177
6187
  },
6178
6188
  precip: {
6179
- sum: (S = J.precipitation_sum) == null ? void 0 : S.at(H),
6180
- rainSum: (C = J.rain_sum) == null ? void 0 : C.at(H),
6181
- snowfallSum: (B = J.snowfall_sum) == null ? void 0 : B.at(H),
6182
- showersSum: (M = J.showers_sum) == null ? void 0 : M.at(H),
6183
- hours: (L = J.precipitation_hours) == null ? void 0 : L.at(H),
6184
- probability: (v = J.precipitation_probability_max) == null ? void 0 : v.at(H)
6189
+ sum: (S = J.precipitation_sum) == null ? void 0 : S.at(N),
6190
+ rainSum: (C = J.rain_sum) == null ? void 0 : C.at(N),
6191
+ snowfallSum: (B = J.snowfall_sum) == null ? void 0 : B.at(N),
6192
+ showersSum: (M = J.showers_sum) == null ? void 0 : M.at(N),
6193
+ hours: (L = J.precipitation_hours) == null ? void 0 : L.at(N),
6194
+ probability: (v = J.precipitation_probability_max) == null ? void 0 : v.at(N)
6185
6195
  },
6186
6196
  rh: {
6187
- max: (z = J.relative_humidity_2m_max) == null ? void 0 : z.at(H),
6188
- min: (P = J.relative_humidity_2m_min) == null ? void 0 : P.at(H),
6189
- mean: (w = J.relative_humidity_2m_mean) == null ? void 0 : w.at(H)
6197
+ max: (z = J.relative_humidity_2m_max) == null ? void 0 : z.at(N),
6198
+ min: (P = J.relative_humidity_2m_min) == null ? void 0 : P.at(N),
6199
+ mean: (x = J.relative_humidity_2m_mean) == null ? void 0 : x.at(N)
6190
6200
  },
6191
6201
  wind: {
6192
- speed: (R = J.wind_speed_10m_max) == null ? void 0 : R.at(H),
6193
- kts: (W = J.wind_speed_10m_max) == null ? void 0 : W.at(H),
6194
- degree: (X = J.wind_direction_10m_dominant) == null ? void 0 : X.at(H),
6195
- gusts: (V = J.wind_gusts_10m_max) == null ? void 0 : V.at(H),
6196
- bearing: ((Y = J.wind_direction_10m_dominant) == null ? void 0 : Y.at(H)) !== null ? ((($ = J.wind_direction_10m_dominant) == null ? void 0 : $.at(H)) + 180) % 360 : null
6202
+ speed: (R = J.wind_speed_10m_max) == null ? void 0 : R.at(N),
6203
+ kts: (W = J.wind_speed_10m_max) == null ? void 0 : W.at(N),
6204
+ degree: (X = J.wind_direction_10m_dominant) == null ? void 0 : X.at(N),
6205
+ gusts: (V = J.wind_gusts_10m_max) == null ? void 0 : V.at(N),
6206
+ bearing: ((Y = J.wind_direction_10m_dominant) == null ? void 0 : Y.at(N)) !== null ? ((($ = J.wind_direction_10m_dominant) == null ? void 0 : $.at(N)) + 180) % 360 : null
6197
6207
  }
6198
6208
  };
6199
- const { name: ae, url: Ae, bg: D } = this.parseWeatherCode(he.code, !0);
6200
- he.name = ae, he.url = Ae, he.bg = D, he.wind.scale = this.beaufort(this.kts2ms(he.wind.kts)), he.wind.direction = this.degree2Direction(he.wind.degree), Pe.push({
6201
- utc: Le.add(H, "d").utc().format(),
6202
- model: xe.model,
6203
- weather: { ...he }
6209
+ const { name: ae, url: Ae, bg: D } = this.parseWeatherCode(me.code, !0);
6210
+ me.name = ae, me.url = Ae, me.bg = D, me.wind.scale = this.beaufort(this.kts2ms(me.wind.kts)), me.wind.direction = this.degree2Direction(me.wind.degree), Pe.push({
6211
+ utc: te.add(N, "d").utc().format(),
6212
+ model: ve.model,
6213
+ weather: { ...me }
6204
6214
  });
6205
6215
  }
6206
- if (te) {
6207
- let xe = 0;
6208
- for (const J of te) {
6216
+ if (H) {
6217
+ let ve = 0;
6218
+ for (const J of H) {
6209
6219
  const ae = J.daily;
6210
6220
  pe = {
6211
6221
  wave: {
6212
6222
  sig: {
6213
- height: (ee = ae.wave_height_max) == null ? void 0 : ee.at(H),
6214
- degree: (Q = ae.wave_direction_dominant) == null ? void 0 : Q.at(H),
6215
- period: (ne = ae.wave_period_max) == null ? void 0 : ne.at(H),
6216
- bearing: ((ce = ae.wave_direction_dominant) == null ? void 0 : ce.at(H)) !== null ? (((de = ae.wave_direction_dominant) == null ? void 0 : de.at(H)) + 180) % 360 : null
6223
+ height: (ee = ae.wave_height_max) == null ? void 0 : ee.at(N),
6224
+ degree: (Q = ae.wave_direction_dominant) == null ? void 0 : Q.at(N),
6225
+ period: (ne = ae.wave_period_max) == null ? void 0 : ne.at(N),
6226
+ bearing: ((he = ae.wave_direction_dominant) == null ? void 0 : he.at(N)) !== null ? (((de = ae.wave_direction_dominant) == null ? void 0 : de.at(N)) + 180) % 360 : null
6217
6227
  },
6218
6228
  swell: {
6219
- height: (me = ae.swell_wave_height_max) == null ? void 0 : me.at(H),
6220
- degree: (K = ae.swell_wave_direction_dominant) == null ? void 0 : K.at(H),
6221
- period: (I = ae.swell_wave_period_max) == null ? void 0 : I.at(H),
6222
- peakPeriod: (le = ae.swell_wave_peak_period_max) == null ? void 0 : le.at(H),
6229
+ height: (ce = ae.swell_wave_height_max) == null ? void 0 : ce.at(N),
6230
+ degree: (K = ae.swell_wave_direction_dominant) == null ? void 0 : K.at(N),
6231
+ period: (I = ae.swell_wave_period_max) == null ? void 0 : I.at(N),
6232
+ peakPeriod: (le = ae.swell_wave_peak_period_max) == null ? void 0 : le.at(N),
6223
6233
  // bearing: daily.swell_wave_direction_dominant?.at(day) !== null ? (daily.swell_wave_direction_dominant?.at(day) + 180) % 360 : null,
6224
- bearing: ((ge = ae.swell_wave_direction_dominant) == null ? void 0 : ge.at(H)) !== null ? ((fe = ae.swell_wave_direction_dominant) == null ? void 0 : fe.at(H)) % 360 : null
6234
+ bearing: ((ge = ae.swell_wave_direction_dominant) == null ? void 0 : ge.at(N)) !== null ? ((fe = ae.swell_wave_direction_dominant) == null ? void 0 : fe.at(N)) % 360 : null
6225
6235
  },
6226
6236
  wd: {
6227
- height: (ye = ae.wind_wave_height_max) == null ? void 0 : ye.at(H),
6228
- degree: (we = ae.wind_wave_direction_dominant) == null ? void 0 : we.at(H),
6229
- period: (Se = ae.wind_wave_period_max) == null ? void 0 : Se.at(H),
6230
- peakPeriod: (Me = ae.wind_wave_peak_period_max) == null ? void 0 : Me.at(H),
6231
- bearing: ((Te = ae.wind_wave_direction_dominant) == null ? void 0 : Te.at(H)) !== null ? (((Re = ae.wind_wave_direction_dominant) == null ? void 0 : Re.at(H)) + 180) % 360 : null
6237
+ height: (we = ae.wind_wave_height_max) == null ? void 0 : we.at(N),
6238
+ degree: (xe = ae.wind_wave_direction_dominant) == null ? void 0 : xe.at(N),
6239
+ period: (Se = ae.wind_wave_period_max) == null ? void 0 : Se.at(N),
6240
+ peakPeriod: (Me = ae.wind_wave_peak_period_max) == null ? void 0 : Me.at(N),
6241
+ bearing: ((Te = ae.wind_wave_direction_dominant) == null ? void 0 : Te.at(N)) !== null ? (((Re = ae.wind_wave_direction_dominant) == null ? void 0 : Re.at(N)) + 180) % 360 : null
6232
6242
  }
6233
6243
  }
6234
- }, pe.wave = this.parseWave(pe.wave, he == null ? void 0 : he.wind), Object.assign(Pe[xe], pe), xe++;
6244
+ }, pe.wave = this.parseWave(pe.wave, me == null ? void 0 : me.wind), Object.assign(Pe[ve], pe), ve++;
6235
6245
  }
6236
6246
  }
6237
6247
  }
@@ -6636,7 +6646,7 @@ class Do {
6636
6646
  return isNaN(e) || e <= 0.1 ? t = "Calm" : e <= 0.5 ? t = "Smooth" : e <= 1.25 ? t = "Slight" : e <= 2.5 ? t = "Moderate" : e <= 4 ? t = "Rough" : e <= 6 ? t = "VeryRough" : e <= 9 ? t = "High" : e <= 14 ? t = "VeryHigh" : t = "Precipitous", t;
6637
6647
  }
6638
6648
  }
6639
- const Ur = {
6649
+ const Wr = {
6640
6650
  name: "IdmTropicals",
6641
6651
  props: {
6642
6652
  map: {
@@ -6700,9 +6710,9 @@ const Ur = {
6700
6710
  showTropicalsInfo: !1,
6701
6711
  activeTropicals: void 0,
6702
6712
  activeTropicalsMarker: void 0,
6703
- empty: F.featureCollection([]),
6713
+ empty: j.featureCollection([]),
6704
6714
  circleSource: "circle-source",
6705
- circleSourceData: F.featureCollection([]),
6715
+ circleSourceData: j.featureCollection([]),
6706
6716
  circleLayer: "tropical-circle-layer"
6707
6717
  };
6708
6718
  },
@@ -6773,7 +6783,7 @@ const Ur = {
6773
6783
  async fetchTropicals() {
6774
6784
  var a, r, s;
6775
6785
  const o = (/* @__PURE__ */ new Date()).valueOf();
6776
- let e = 0, t = 0, i = (a = Qt.WEATHER_LAYERS.find((c) => c.key === "tropicals")) == null ? void 0 : a.weight;
6786
+ let e = 0, t = 0, i = (a = Jt.WEATHER_LAYERS.find((c) => c.key === "tropicals")) == null ? void 0 : a.weight;
6777
6787
  if (i > 0) {
6778
6788
  const c = this.assistGateway[Math.round(Math.random() * (this.assistGateway.length - 1))], n = await Be.get(`${c}/api/arc/weather/layers2/links?l=${i}&v=${this.forecastModel}&t=${this.realTime}`, {
6779
6789
  headers: {
@@ -7079,14 +7089,14 @@ const Ur = {
7079
7089
  ), this.showTropicalsInfo = !1, (t = this.activeTropicalsMarker) == null || t.remove(), this.activeTropicalsMarker = void 0;
7080
7090
  },
7081
7091
  handleDateChange() {
7082
- var o, e, t, i, a, r, s, c, n, p, d, m, f, _, b, S, C, B, M, L, v, z, P, w, R, W, X, V, Y, $, ee, Q;
7092
+ var o, e, t, i, a, r, s, c, n, p, d, m, f, _, b, S, C, B, M, L, v, z, P, x, R, W, X, V, Y, $, ee, Q;
7083
7093
  if ((o = this.interpolateMarkers) == null || o.forEach((ne) => ne == null ? void 0 : ne.remove()), this.circleSourceData.features = [], (e = this.interpolateData) != null && e.length && this.tropicals.active) {
7084
- const ne = O(this.realTime).utc().set({ minute: 0, second: 0, millisecond: 0 }), ce = this.interpolateData.filter((K) => K.properties.date === ne.format() && !K.properties.disabled), de = this.handleComputePolygons(ce), me = F.featureCollection([...ce]);
7094
+ const ne = O(this.realTime).utc().set({ minute: 0, second: 0, millisecond: 0 }), he = this.interpolateData.filter((K) => K.properties.date === ne.format() && !K.properties.disabled), de = this.handleComputePolygons(he), ce = j.featureCollection([...he]);
7085
7095
  de.forEach((K) => {
7086
- me.features.push(K);
7087
- }), (t = this.map) != null && t.getSource(this.interpolateSource) ? (i = this.map) == null || i.getSource(this.interpolateSource).setData(me) : ((a = this.map) == null || a.addSource(this.interpolateSource, {
7096
+ ce.features.push(K);
7097
+ }), (t = this.map) != null && t.getSource(this.interpolateSource) ? (i = this.map) == null || i.getSource(this.interpolateSource).setData(ce) : ((a = this.map) == null || a.addSource(this.interpolateSource, {
7088
7098
  type: "geojson",
7089
- data: me
7099
+ data: ce
7090
7100
  }), (r = this.map) == null || r.addLayer({
7091
7101
  id: this.interpolateLineLayer,
7092
7102
  type: "line",
@@ -7098,10 +7108,10 @@ const Ur = {
7098
7108
  "line-width": 1
7099
7109
  }
7100
7110
  })), this.interpolateMarkers = [];
7101
- for (const K of ce)
7111
+ for (const K of he)
7102
7112
  if (!K.properties.disabled) {
7103
7113
  let I = "#f44336";
7104
- ((c = (s = K.properties) == null ? void 0 : s.wind) == null ? void 0 : c.kts) < 32 || !((p = (n = K.properties) == null ? void 0 : n.wind) != null && p.kts) ? I = "#03f869" : ((m = (d = K.properties) == null ? void 0 : d.wind) == null ? void 0 : m.kts) >= 32 && ((_ = (f = K.properties) == null ? void 0 : f.wind) == null ? void 0 : _.kts) < 47 ? I = "#f2f202" : ((S = (b = K.properties) == null ? void 0 : b.wind) == null ? void 0 : S.kts) >= 47 && ((B = (C = K.properties) == null ? void 0 : C.wind) == null ? void 0 : B.kts) < 63 ? I = "#ff9100" : ((L = (M = K.properties) == null ? void 0 : M.wind) == null ? void 0 : L.kts) >= 63 && ((z = (v = K.properties) == null ? void 0 : v.wind) == null ? void 0 : z.kts) < 79 ? I = "#f44336" : ((w = (P = K.properties) == null ? void 0 : P.wind) == null ? void 0 : w.kts) >= 79 && ((W = (R = K.properties) == null ? void 0 : R.wind) == null ? void 0 : W.kts) < 94 ? I = "#f903d0" : ((V = (X = K.properties) == null ? void 0 : X.wind) == null ? void 0 : V.kts) >= 94 ? I = "#8702f9" : I = "#f44336";
7114
+ ((c = (s = K.properties) == null ? void 0 : s.wind) == null ? void 0 : c.kts) < 32 || !((p = (n = K.properties) == null ? void 0 : n.wind) != null && p.kts) ? I = "#03f869" : ((m = (d = K.properties) == null ? void 0 : d.wind) == null ? void 0 : m.kts) >= 32 && ((_ = (f = K.properties) == null ? void 0 : f.wind) == null ? void 0 : _.kts) < 47 ? I = "#f2f202" : ((S = (b = K.properties) == null ? void 0 : b.wind) == null ? void 0 : S.kts) >= 47 && ((B = (C = K.properties) == null ? void 0 : C.wind) == null ? void 0 : B.kts) < 63 ? I = "#ff9100" : ((L = (M = K.properties) == null ? void 0 : M.wind) == null ? void 0 : L.kts) >= 63 && ((z = (v = K.properties) == null ? void 0 : v.wind) == null ? void 0 : z.kts) < 79 ? I = "#f44336" : ((x = (P = K.properties) == null ? void 0 : P.wind) == null ? void 0 : x.kts) >= 79 && ((W = (R = K.properties) == null ? void 0 : R.wind) == null ? void 0 : W.kts) < 94 ? I = "#f903d0" : ((V = (X = K.properties) == null ? void 0 : X.wind) == null ? void 0 : V.kts) >= 94 ? I = "#8702f9" : I = "#f44336";
7105
7115
  const le = `<svg t="1719918955501"
7106
7116
  class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" p-id="18382"
7107
7117
  xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200">
@@ -7118,7 +7128,7 @@ const Ur = {
7118
7128
  fill="#ffffff" p-id="18386"></path>
7119
7129
  </svg>`, ge = document.createElement("div");
7120
7130
  ge.className = "idm-tropical-gl4-hourly-marker", ge.innerHTML = `<div class="${K.geometry.coordinates[1] >= 0 ? "center north" : "center south"}">${le}</div>`;
7121
- const fe = new _e.Marker(ge).setLngLat(K.geometry.coordinates).addTo(this.map);
7131
+ const fe = new ke.Marker(ge).setLngLat(K.geometry.coordinates).addTo(this.map);
7122
7132
  this.interpolateMarkers.push(fe), ($ = (Y = this.map) == null ? void 0 : Y.getSource(this.circleSource)) == null || $.setData(this.circleSourceData);
7123
7133
  }
7124
7134
  } else
@@ -7144,7 +7154,7 @@ const Ur = {
7144
7154
  showCircle: (f = (m = t[0]) == null ? void 0 : m.properties) == null ? void 0 : f.showCircle
7145
7155
  }, this.showTropicalsInfo = !0;
7146
7156
  const a = document.getElementById("idm-tropical-gl4-info");
7147
- this.activeTropicalsMarker ? this.activeTropicalsMarker.setLngLat([o.lngLat.lng, o.lngLat.lat]) : this.activeTropicalsMarker = new _e.Marker(a).setLngLat([o.lngLat.lng, o.lngLat.lat]).setOffset([220, 0]).addTo(this.map);
7157
+ this.activeTropicalsMarker ? this.activeTropicalsMarker.setLngLat([o.lngLat.lng, o.lngLat.lat]) : this.activeTropicalsMarker = new ke.Marker(a).setLngLat([o.lngLat.lng, o.lngLat.lat]).setOffset([220, 0]).addTo(this.map);
7148
7158
  },
7149
7159
  handleForecastToggle(o) {
7150
7160
  var i, a, r, s, c, n;
@@ -7154,7 +7164,7 @@ const Ur = {
7154
7164
  p.properties.category === e && (p.properties.disabled = o.disabled);
7155
7165
  }), this.interpolateData.forEach((p) => {
7156
7166
  p.properties.category === e && (p.properties.disabled = o.disabled);
7157
- }), (s = (r = this.map) == null ? void 0 : r.getSource(this.source)) == null || s.setData(F.featureCollection(t)), (n = (c = this.map) == null ? void 0 : c.getSource(this.clusterSource)) == null || n.setData(F.featureCollection(t)), this.handleDateChange();
7167
+ }), (s = (r = this.map) == null ? void 0 : r.getSource(this.source)) == null || s.setData(j.featureCollection(t)), (n = (c = this.map) == null ? void 0 : c.getSource(this.clusterSource)) == null || n.setData(j.featureCollection(t)), this.handleDateChange();
7158
7168
  },
7159
7169
  handleStrikeProbability(o) {
7160
7170
  this.$emit("tropicalProbability", index);
@@ -7211,28 +7221,28 @@ const Ur = {
7211
7221
  let n;
7212
7222
  switch (s) {
7213
7223
  case "ne":
7214
- n = F.lineArc(o, c, 0, 90, { steps: c > 0 ? 32 : 1, units: "nauticalmiles" });
7224
+ n = j.lineArc(o, c, 0, 90, { steps: c > 0 ? 32 : 1, units: "nauticalmiles" });
7215
7225
  break;
7216
7226
  case "se":
7217
- n = F.lineArc(o, c, 90, 180, { steps: c > 0 ? 32 : 1, units: "nauticalmiles" });
7227
+ n = j.lineArc(o, c, 90, 180, { steps: c > 0 ? 32 : 1, units: "nauticalmiles" });
7218
7228
  break;
7219
7229
  case "sw":
7220
- n = F.lineArc(o, c, 180, 270, { steps: c > 0 ? 32 : 1, units: "nauticalmiles" });
7230
+ n = j.lineArc(o, c, 180, 270, { steps: c > 0 ? 32 : 1, units: "nauticalmiles" });
7221
7231
  break;
7222
7232
  case "nw":
7223
- n = F.lineArc(o, c, 270, 360, { steps: c > 0 ? 32 : 1, units: "nauticalmiles" });
7233
+ n = j.lineArc(o, c, 270, 360, { steps: c > 0 ? 32 : 1, units: "nauticalmiles" });
7224
7234
  break;
7225
7235
  }
7226
7236
  i.push(...(r = n == null ? void 0 : n.geometry) == null ? void 0 : r.coordinates);
7227
7237
  }
7228
- const a = F.lineString(i);
7229
- return F.lineToPolygon(a, { properties: t });
7238
+ const a = j.lineString(i);
7239
+ return j.lineToPolygon(a, { properties: t });
7230
7240
  }
7231
7241
  }
7232
- }, Vr = { class: "idm-tropical-gl4" }, Yr = { key: 0 }, Zr = { class: "text-body-2 opacity-50" }, Xr = { class: "pa-1 d-flex justify-space-between align-center" }, qr = { class: "col col-left justify-start" }, Kr = { class: "col col-right justify-start" }, Qr = { class: "px-1 py-2 d-flex justify-space-between align-center" }, Jr = { class: "d-flex justify-space-between align-center col-left justify-start" }, $r = { class: "d-flex justify-space-between align-center col-right" }, el = { class: "pa-1 d-flex justify-space-between align-center" }, tl = { class: "d-flex justify-space-between align-center flex-1-1-100" }, ol = { class: "d-flex justify-end align-center flex-1-1-0 flex-wrap" }, al = ["onClick"];
7233
- function il(o, e, t, i, a, r) {
7242
+ }, Gr = { class: "idm-tropical-gl4" }, Ur = { key: 0 }, Vr = { class: "text-body-2 opacity-50" }, Yr = { class: "pa-1 d-flex justify-space-between align-center" }, Zr = { class: "col col-left justify-start" }, Xr = { class: "col col-right justify-start" }, qr = { class: "px-1 py-2 d-flex justify-space-between align-center" }, Kr = { class: "d-flex justify-space-between align-center col-left justify-start" }, Qr = { class: "d-flex justify-space-between align-center col-right" }, Jr = { class: "pa-1 d-flex justify-space-between align-center" }, $r = { class: "d-flex justify-space-between align-center flex-1-1-100" }, el = { class: "d-flex justify-end align-center flex-1-1-0 flex-wrap" }, tl = ["onClick"];
7243
+ function ol(o, e, t, i, a, r) {
7234
7244
  const s = k("VBtn"), c = k("VTooltip"), n = k("VCardTitle"), p = k("VCardSubtitle"), d = k("VCardItem"), m = k("VCardText"), f = k("VCard");
7235
- return y(), T("div", Vr, [
7245
+ return y(), T("div", Gr, [
7236
7246
  l("div", {
7237
7247
  class: "menu-bar-box transition pa-1",
7238
7248
  style: oe({ top: t.top + 134 + "px", right: a.right + "px" })
@@ -7259,7 +7269,7 @@ function il(o, e, t, i, a, r) {
7259
7269
  _: 1
7260
7270
  }, 8, ["text"])
7261
7271
  ], 4),
7262
- Jt(h(f, {
7272
+ eo(h(f, {
7263
7273
  id: "idm-tropical-gl4-info",
7264
7274
  class: "idm-tropical-gl4-info my-4",
7265
7275
  width: "400",
@@ -7276,8 +7286,8 @@ function il(o, e, t, i, a, r) {
7276
7286
  var _, b, S, C, B;
7277
7287
  return [
7278
7288
  l("div", null, [
7279
- (b = (_ = a.activeTropicals) == null ? void 0 : _.history) != null && b.level ? (y(), T("span", Yr, x((C = (S = a.activeTropicals) == null ? void 0 : S.history) == null ? void 0 : C.level) + " , ", 1)) : N("", !0),
7280
- Z(x((B = a.activeTropicals) == null ? void 0 : B.name), 1)
7289
+ (b = (_ = a.activeTropicals) == null ? void 0 : _.history) != null && b.level ? (y(), T("span", Ur, w((C = (S = a.activeTropicals) == null ? void 0 : S.history) == null ? void 0 : C.level) + " , ", 1)) : F("", !0),
7290
+ Z(w((B = a.activeTropicals) == null ? void 0 : B.name), 1)
7281
7291
  ]),
7282
7292
  h(s, {
7283
7293
  icon: "$close",
@@ -7294,7 +7304,7 @@ function il(o, e, t, i, a, r) {
7294
7304
  default: g(() => {
7295
7305
  var _, b, S, C, B;
7296
7306
  return [
7297
- l("span", Zr, " Last update: " + x(r.computeTime(((b = (_ = a.activeTropicals) == null ? void 0 : _.history) == null ? void 0 : b.updated) || ((B = (C = (S = a.activeTropicals) == null ? void 0 : S.forecasts) == null ? void 0 : C.filter((M) => !M.disabled)[0]) == null ? void 0 : B.date))), 1)
7307
+ l("span", Vr, " Last update: " + w(r.computeTime(((b = (_ = a.activeTropicals) == null ? void 0 : _.history) == null ? void 0 : b.updated) || ((B = (C = (S = a.activeTropicals) == null ? void 0 : S.forecasts) == null ? void 0 : C.filter((M) => !M.disabled)[0]) == null ? void 0 : B.date))), 1)
7298
7308
  ];
7299
7309
  }),
7300
7310
  _: 1
@@ -7306,46 +7316,46 @@ function il(o, e, t, i, a, r) {
7306
7316
  default: g(() => {
7307
7317
  var _, b, S, C, B, M, L, v, z;
7308
7318
  return [
7309
- l("div", Xr, [
7310
- l("div", qr, [
7319
+ l("div", Yr, [
7320
+ l("div", Zr, [
7311
7321
  e[2] || (e[2] = l("label", null, "Wind speed : ", -1)),
7312
- l("span", null, x(((b = (_ = a.activeTropicals) == null ? void 0 : _.history) == null ? void 0 : b.kts) || "-") + " [kts]", 1),
7313
- l("span", null, ", BF " + x(r.computeBF(((C = (S = a.activeTropicals) == null ? void 0 : S.history) == null ? void 0 : C.kts) || 0)), 1)
7322
+ l("span", null, w(((b = (_ = a.activeTropicals) == null ? void 0 : _.history) == null ? void 0 : b.kts) || "-") + " [kts]", 1),
7323
+ l("span", null, ", BF " + w(r.computeBF(((C = (S = a.activeTropicals) == null ? void 0 : S.history) == null ? void 0 : C.kts) || 0)), 1)
7314
7324
  ]),
7315
- l("div", Kr, [
7325
+ l("div", Xr, [
7316
7326
  e[3] || (e[3] = l("label", null, "Pressure : ", -1)),
7317
- l("span", null, x(((M = (B = a.activeTropicals) == null ? void 0 : B.history) == null ? void 0 : M.pressure) || "-") + " [hPa]", 1)
7327
+ l("span", null, w(((M = (B = a.activeTropicals) == null ? void 0 : B.history) == null ? void 0 : M.pressure) || "-") + " [hPa]", 1)
7318
7328
  ])
7319
7329
  ]),
7320
- l("div", Qr, [
7321
- l("div", Jr, [
7330
+ l("div", qr, [
7331
+ l("div", Kr, [
7322
7332
  e[4] || (e[4] = l("label", null, "Move Speed: ", -1)),
7323
- l("span", null, x((L = r.computeMovement(a.activeTropicals)) == null ? void 0 : L.kts) + " [kts]", 1)
7333
+ l("span", null, w((L = r.computeMovement(a.activeTropicals)) == null ? void 0 : L.kts) + " [kts]", 1)
7324
7334
  ]),
7325
- l("div", $r, [
7335
+ l("div", Qr, [
7326
7336
  e[5] || (e[5] = l("label", null, "Move Dir: ", -1)),
7327
- l("span", null, x((v = r.computeMovement(a.activeTropicals)) == null ? void 0 : v.deg) + " [°]", 1)
7337
+ l("span", null, w((v = r.computeMovement(a.activeTropicals)) == null ? void 0 : v.deg) + " [°]", 1)
7328
7338
  ])
7329
7339
  ]),
7330
- l("div", el, [
7331
- l("div", tl, [
7340
+ l("div", Jr, [
7341
+ l("div", $r, [
7332
7342
  e[6] || (e[6] = l("label", { style: { width: "max-content" } }, "Forecast Models : ", -1)),
7333
- l("div", ol, [
7334
- (y(!0), T(ve, null, ze((z = a.activeTropicals) == null ? void 0 : z.forecasts, (P, w) => {
7343
+ l("div", el, [
7344
+ (y(!0), T(_e, null, Le((z = a.activeTropicals) == null ? void 0 : z.forecasts, (P, x) => {
7335
7345
  var R, W, X, V;
7336
7346
  return y(), T("div", {
7337
- key: w,
7347
+ key: x,
7338
7348
  class: Ne([
7339
7349
  "model",
7340
7350
  P.disabled ? "" : "active",
7341
- w > 0 && w < ((W = (R = a.activeTropicals) == null ? void 0 : R.forecasts) == null ? void 0 : W.length) - 1 && ((V = (X = a.activeTropicals) == null ? void 0 : X.forecasts) == null ? void 0 : V.length) > 2 ? "center-child" : ""
7351
+ x > 0 && x < ((W = (R = a.activeTropicals) == null ? void 0 : R.forecasts) == null ? void 0 : W.length) - 1 && ((V = (X = a.activeTropicals) == null ? void 0 : X.forecasts) == null ? void 0 : V.length) > 2 ? "center-child" : ""
7342
7352
  ]),
7343
7353
  onClick: (Y) => r.handleForecastToggle(P)
7344
7354
  }, [
7345
7355
  l("span", {
7346
7356
  class: Ne(P.model)
7347
- }, x(P.model), 3)
7348
- ], 10, al);
7357
+ }, w(P.model), 3)
7358
+ ], 10, tl);
7349
7359
  }), 128))
7350
7360
  ])
7351
7361
  ])
@@ -7398,12 +7408,12 @@ function il(o, e, t, i, a, r) {
7398
7408
  ]),
7399
7409
  _: 1
7400
7410
  }, 512), [
7401
- [eo, a.showTropicalsInfo && !o.$attrs.hideTropicalsLegend]
7411
+ [to, a.showTropicalsInfo && !o.$attrs.hideTropicalsLegend]
7402
7412
  ])
7403
7413
  ]);
7404
7414
  }
7405
- const Bo = /* @__PURE__ */ q(Ur, [["render", il]]);
7406
- const rl = {
7415
+ const Bo = /* @__PURE__ */ q(Wr, [["render", ol]]);
7416
+ const al = {
7407
7417
  name: "DateTimePicker",
7408
7418
  props: {
7409
7419
  locale: {
@@ -7552,19 +7562,19 @@ const rl = {
7552
7562
  this.currentDate = o.clone().format("YYYY-MM-DD"), this.currentTime = o.clone().format("HH:00");
7553
7563
  }
7554
7564
  }
7555
- }, ll = { class: "idm-gl4-timepicker" }, sl = {
7565
+ }, il = { class: "idm-gl4-timepicker" }, rl = {
7556
7566
  class: "pa-0",
7557
7567
  style: { width: "250px" }
7558
- }, nl = {
7568
+ }, ll = {
7559
7569
  class: "h-100 pa-0 d-flex flex-column justify-start align-center",
7560
7570
  style: { width: "100px" }
7561
- }, cl = {
7571
+ }, sl = {
7562
7572
  class: "d-flex justify-center align-center text-body-2",
7563
7573
  style: { height: "56px" }
7564
7574
  };
7565
- function ml(o, e, t, i, a, r) {
7575
+ function nl(o, e, t, i, a, r) {
7566
7576
  const s = k("VBtn"), c = k("VDatePicker"), n = k("VDivider"), p = k("VListItemTitle"), d = k("VListItem"), m = k("VList"), f = k("VCardText"), _ = k("VCardActions"), b = k("VCard");
7567
- return y(), T("div", ll, [
7577
+ return y(), T("div", il, [
7568
7578
  h(s, {
7569
7579
  text: "",
7570
7580
  height: "30",
@@ -7572,7 +7582,7 @@ function ml(o, e, t, i, a, r) {
7572
7582
  onClick: r.handleOpenDatePicker
7573
7583
  }, {
7574
7584
  default: g(() => [
7575
- Z(x(a.currentDateTime) + " | UTC " + x(t.timeZone < 0 ? t.timeZone : "+" + t.timeZone), 1)
7585
+ Z(w(a.currentDateTime) + " | UTC " + w(t.timeZone < 0 ? t.timeZone : "+" + t.timeZone), 1)
7576
7586
  ]),
7577
7587
  _: 1
7578
7588
  }, 8, ["onClick"]),
@@ -7583,7 +7593,7 @@ function ml(o, e, t, i, a, r) {
7583
7593
  default: g(() => [
7584
7594
  h(f, { class: "w-100 flex-1-1-0 d-flex pa-0" }, {
7585
7595
  default: g(() => [
7586
- l("div", sl, [
7596
+ l("div", rl, [
7587
7597
  h(c, {
7588
7598
  modelValue: a.currentDate,
7589
7599
  "onUpdate:modelValue": e[0] || (e[0] = (S) => a.currentDate = S),
@@ -7602,11 +7612,11 @@ function ml(o, e, t, i, a, r) {
7602
7612
  class: "h-100",
7603
7613
  vertical: ""
7604
7614
  }),
7605
- l("div", nl, [
7606
- l("div", cl, x(a.currentTime), 1),
7615
+ l("div", ll, [
7616
+ l("div", sl, w(a.currentTime), 1),
7607
7617
  h(m, { class: "pa-0 flex-1-1-0" }, {
7608
7618
  default: g(() => [
7609
- (y(!0), T(ve, null, ze(r.hourOptions, (S, C) => (y(), U(d, {
7619
+ (y(!0), T(_e, null, Le(r.hourOptions, (S, C) => (y(), U(d, {
7610
7620
  key: C,
7611
7621
  value: S,
7612
7622
  color: "primary",
@@ -7621,7 +7631,7 @@ function ml(o, e, t, i, a, r) {
7621
7631
  onClick: (B) => a.currentTime = S
7622
7632
  }, {
7623
7633
  default: g(() => [
7624
- Z(x(S), 1)
7634
+ Z(w(S), 1)
7625
7635
  ]),
7626
7636
  _: 2
7627
7637
  }, 1032, ["onClick"])
@@ -7671,14 +7681,14 @@ function ml(o, e, t, i, a, r) {
7671
7681
  })
7672
7682
  ]),
7673
7683
  _: 1
7674
- })) : N("", !0)
7684
+ })) : F("", !0)
7675
7685
  ]);
7676
7686
  }
7677
- const ao = /* @__PURE__ */ q(rl, [["render", ml]]);
7678
- const hl = {
7687
+ const io = /* @__PURE__ */ q(al, [["render", nl]]);
7688
+ const cl = {
7679
7689
  name: "IdmPoint",
7680
7690
  components: {
7681
- DateTimePicker: ao
7691
+ DateTimePicker: io
7682
7692
  },
7683
7693
  props: {
7684
7694
  isLogin: {
@@ -7876,7 +7886,7 @@ const hl = {
7876
7886
  },
7877
7887
  async fetchMeteoData(o) {
7878
7888
  this.loading = !0, this.meteoData = [];
7879
- const { weatherModels: e, marineModels: t } = to.autoPickMeteoModel(o.forecastModel);
7889
+ const { weatherModels: e, marineModels: t } = oo.autoPickMeteoModel(o.forecastModel);
7880
7890
  let i = {
7881
7891
  lat: o.lat,
7882
7892
  lng: o.lng,
@@ -7893,7 +7903,7 @@ const hl = {
7893
7903
  },
7894
7904
  async fetchHistoryData(o) {
7895
7905
  this.loading = !0, this.meteoData = [];
7896
- const { weatherModels: e, marineModels: t } = to.autoPickMeteoModel(o.forecastModel), i = {
7906
+ const { weatherModels: e, marineModels: t } = oo.autoPickMeteoModel(o.forecastModel), i = {
7897
7907
  lat: o.lat,
7898
7908
  lng: o.lng,
7899
7909
  datetime: O(o.dateTime).utc().format(),
@@ -7909,10 +7919,10 @@ const hl = {
7909
7919
  (a == null ? void 0 : a.data.code) === 0 && (this.meteoData = a == null ? void 0 : a.data.data), this.loading = !1;
7910
7920
  },
7911
7921
  initTableData(o) {
7912
- var t, i, a, r, s, c, n, p, d, m, f, _, b, S, C, B, M, L, v, z, P, w, R, W, X, V, Y, $, ee, Q, ne, ce, de, me, K, I, le, ge, fe, ye, we;
7922
+ var t, i, a, r, s, c, n, p, d, m, f, _, b, S, C, B, M, L, v, z, P, x, R, W, X, V, Y, $, ee, Q, ne, he, de, ce, K, I, le, ge, fe, we, xe;
7913
7923
  this.currentHourData = {}, this.positionGmt = (i = (t = o == null ? void 0 : o.weather) == null ? void 0 : t[0]) == null ? void 0 : i.timezone, this.positionOffset = (r = (a = o == null ? void 0 : o.weather) == null ? void 0 : a[0]) == null ? void 0 : r.offset;
7914
- const e = ((s = to.pickHourly(o, O(this.form.dateTime))) == null ? void 0 : s[0]) || {};
7915
- this.currentHourData.utc = e.utc, this.currentHourData.lat = this.form.lat, this.currentHourData.lng = this.form.lng, this.currentHourData.temp = this.roundPrecision((c = e == null ? void 0 : e.weather) == null ? void 0 : c.temp, 0) ?? "-", this.currentHourData.precipProbability = this.roundPrecision((p = (n = e == null ? void 0 : e.weather) == null ? void 0 : n.precip) == null ? void 0 : p.probability, 0) ?? "-", this.currentHourData.precip1h = this.roundPrecision((m = (d = e == null ? void 0 : e.weather) == null ? void 0 : d.precip) == null ? void 0 : m.sum, 0) ?? "-", this.currentHourData.visibility = this.roundPrecision((f = e == null ? void 0 : e.weather) == null ? void 0 : f.visibility, 0) ?? "-", this.currentHourData.windSpeed = this.roundPrecision((b = (_ = e == null ? void 0 : e.weather) == null ? void 0 : _.wind) == null ? void 0 : b.kts, 1) ?? "-", this.currentHourData.windDir = (C = (S = e == null ? void 0 : e.weather) == null ? void 0 : S.wind) == null ? void 0 : C.direction, this.currentHourData.windLevel = this.roundPrecision((M = (B = e == null ? void 0 : e.weather) == null ? void 0 : B.wind) == null ? void 0 : M.scale, 0) ?? "-", this.currentHourData.windGust = this.roundPrecision((v = (L = e == null ? void 0 : e.weather) == null ? void 0 : L.wind) == null ? void 0 : v.gusts, 1) ?? "-", this.currentHourData.sigwaveHeight = this.roundPrecision((P = (z = e == null ? void 0 : e.wave) == null ? void 0 : z.sig) == null ? void 0 : P.height, 1) ?? "-", this.currentHourData.sigwaveDir = (R = (w = e == null ? void 0 : e.wave) == null ? void 0 : w.sig) == null ? void 0 : R.direction, this.currentHourData.sigwavePeriod = this.roundPrecision((X = (W = e == null ? void 0 : e.wave) == null ? void 0 : W.sig) == null ? void 0 : X.period, 1) ?? "-", this.currentHourData.windwaveHeight = this.roundPrecision((Y = (V = e == null ? void 0 : e.wave) == null ? void 0 : V.wd) == null ? void 0 : Y.height, 1) ?? "-", this.currentHourData.windwaveDir = (ee = ($ = e == null ? void 0 : e.wave) == null ? void 0 : $.wd) == null ? void 0 : ee.direction, this.currentHourData.windwavePeriod = this.roundPrecision((ne = (Q = e == null ? void 0 : e.wave) == null ? void 0 : Q.wd) == null ? void 0 : ne.period, 1) ?? "-", this.currentHourData.swellHeight = this.roundPrecision((de = (ce = e == null ? void 0 : e.wave) == null ? void 0 : ce.swell) == null ? void 0 : de.height, 1) ?? "-", this.currentHourData.swellDir = (K = (me = e == null ? void 0 : e.wave) == null ? void 0 : me.swell) == null ? void 0 : K.direction, this.currentHourData.swellPeriod = this.roundPrecision((le = (I = e == null ? void 0 : e.wave) == null ? void 0 : I.swell) == null ? void 0 : le.period, 1) ?? "-", this.currentHourData.currentSpeed = this.roundPrecision((ge = e == null ? void 0 : e.current) == null ? void 0 : ge.speed, 1) ?? "-", this.currentHourData.currentDir = (fe = e == null ? void 0 : e.current) == null ? void 0 : fe.direction, this.currentHourData.currentSpeed = this.roundPrecision((ye = e == null ? void 0 : e.current) == null ? void 0 : ye.speed, 1) ?? "-", this.currentHourData.seaLevel = this.roundPrecision(e == null ? void 0 : e.height, 1) ?? "-", this.currentHourData.seaTemp = this.roundPrecision(e == null ? void 0 : e.sst, 0) ?? "-", this.currentHourData.weatherUrls = (we = e == null ? void 0 : e.weather) == null ? void 0 : we.url;
7924
+ const e = ((s = oo.pickHourly(o, O(this.form.dateTime))) == null ? void 0 : s[0]) || {};
7925
+ this.currentHourData.utc = e.utc, this.currentHourData.lat = this.form.lat, this.currentHourData.lng = this.form.lng, this.currentHourData.temp = this.roundPrecision((c = e == null ? void 0 : e.weather) == null ? void 0 : c.temp, 0) ?? "-", this.currentHourData.precipProbability = this.roundPrecision((p = (n = e == null ? void 0 : e.weather) == null ? void 0 : n.precip) == null ? void 0 : p.probability, 0) ?? "-", this.currentHourData.precip1h = this.roundPrecision((m = (d = e == null ? void 0 : e.weather) == null ? void 0 : d.precip) == null ? void 0 : m.sum, 0) ?? "-", this.currentHourData.visibility = this.roundPrecision((f = e == null ? void 0 : e.weather) == null ? void 0 : f.visibility, 0) ?? "-", this.currentHourData.windSpeed = this.roundPrecision((b = (_ = e == null ? void 0 : e.weather) == null ? void 0 : _.wind) == null ? void 0 : b.kts, 1) ?? "-", this.currentHourData.windDir = (C = (S = e == null ? void 0 : e.weather) == null ? void 0 : S.wind) == null ? void 0 : C.direction, this.currentHourData.windLevel = this.roundPrecision((M = (B = e == null ? void 0 : e.weather) == null ? void 0 : B.wind) == null ? void 0 : M.scale, 0) ?? "-", this.currentHourData.windGust = this.roundPrecision((v = (L = e == null ? void 0 : e.weather) == null ? void 0 : L.wind) == null ? void 0 : v.gusts, 1) ?? "-", this.currentHourData.sigwaveHeight = this.roundPrecision((P = (z = e == null ? void 0 : e.wave) == null ? void 0 : z.sig) == null ? void 0 : P.height, 1) ?? "-", this.currentHourData.sigwaveDir = (R = (x = e == null ? void 0 : e.wave) == null ? void 0 : x.sig) == null ? void 0 : R.direction, this.currentHourData.sigwavePeriod = this.roundPrecision((X = (W = e == null ? void 0 : e.wave) == null ? void 0 : W.sig) == null ? void 0 : X.period, 1) ?? "-", this.currentHourData.windwaveHeight = this.roundPrecision((Y = (V = e == null ? void 0 : e.wave) == null ? void 0 : V.wd) == null ? void 0 : Y.height, 1) ?? "-", this.currentHourData.windwaveDir = (ee = ($ = e == null ? void 0 : e.wave) == null ? void 0 : $.wd) == null ? void 0 : ee.direction, this.currentHourData.windwavePeriod = this.roundPrecision((ne = (Q = e == null ? void 0 : e.wave) == null ? void 0 : Q.wd) == null ? void 0 : ne.period, 1) ?? "-", this.currentHourData.swellHeight = this.roundPrecision((de = (he = e == null ? void 0 : e.wave) == null ? void 0 : he.swell) == null ? void 0 : de.height, 1) ?? "-", this.currentHourData.swellDir = (K = (ce = e == null ? void 0 : e.wave) == null ? void 0 : ce.swell) == null ? void 0 : K.direction, this.currentHourData.swellPeriod = this.roundPrecision((le = (I = e == null ? void 0 : e.wave) == null ? void 0 : I.swell) == null ? void 0 : le.period, 1) ?? "-", this.currentHourData.currentSpeed = this.roundPrecision((ge = e == null ? void 0 : e.current) == null ? void 0 : ge.speed, 1) ?? "-", this.currentHourData.currentDir = (fe = e == null ? void 0 : e.current) == null ? void 0 : fe.direction, this.currentHourData.currentSpeed = this.roundPrecision((we = e == null ? void 0 : e.current) == null ? void 0 : we.speed, 1) ?? "-", this.currentHourData.seaLevel = this.roundPrecision(e == null ? void 0 : e.height, 1) ?? "-", this.currentHourData.seaTemp = this.roundPrecision(e == null ? void 0 : e.sst, 0) ?? "-", this.currentHourData.weatherUrls = (xe = e == null ? void 0 : e.weather) == null ? void 0 : xe.url;
7916
7926
  },
7917
7927
  handleBind() {
7918
7928
  var o, e;
@@ -7929,7 +7939,7 @@ const hl = {
7929
7939
  (t = this.positionMarker) == null || t.setLngLat([this.point.lng, this.point.lat]);
7930
7940
  else {
7931
7941
  const a = document.createElement("div");
7932
- a.innerHTML = '<svg t="1755510770354" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5552" width="200" height="200"><path d="M511.960615 827.234462s330.358154-215.906462 330.358154-465.526154C842.318769 183.650462 694.468923 39.384615 512 39.384615S181.563077 183.689846 181.563077 361.668923c0 249.659077 330.397538 465.565538 330.397538 465.565539z" fill="#FF8C00" p-id="5553"></path><path d="M511.921231 496.836923a127.054769 127.054769 0 1 0 0-254.148923 127.054769 127.054769 0 0 0 0 254.148923z" fill="#FFFFFF" p-id="5554"></path><path d="M354.461538 945.230769a157.538462 39.384615 0 1 0 315.076924 0 157.538462 39.384615 0 1 0-315.076924 0Z" fill="#494C4F" opacity=".4" p-id="5555"></path></svg>', a.firstChild.style.height = "28px", a.firstChild.style.width = "28px", this.positionMarker = new _e.Marker(a).setLngLat([this.point.lng, this.point.lat]).setOffset([0, -14]).addTo(this.map);
7942
+ a.innerHTML = '<svg t="1755510770354" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5552" width="200" height="200"><path d="M511.960615 827.234462s330.358154-215.906462 330.358154-465.526154C842.318769 183.650462 694.468923 39.384615 512 39.384615S181.563077 183.689846 181.563077 361.668923c0 249.659077 330.397538 465.565538 330.397538 465.565539z" fill="#FF8C00" p-id="5553"></path><path d="M511.921231 496.836923a127.054769 127.054769 0 1 0 0-254.148923 127.054769 127.054769 0 0 0 0 254.148923z" fill="#FFFFFF" p-id="5554"></path><path d="M354.461538 945.230769a157.538462 39.384615 0 1 0 315.076924 0 157.538462 39.384615 0 1 0-315.076924 0Z" fill="#494C4F" opacity=".4" p-id="5555"></path></svg>', a.firstChild.style.height = "28px", a.firstChild.style.width = "28px", this.positionMarker = new ke.Marker(a).setLngLat([this.point.lng, this.point.lat]).setOffset([0, -14]).addTo(this.map);
7933
7943
  }
7934
7944
  } else
7935
7945
  return !1;
@@ -7946,13 +7956,13 @@ const hl = {
7946
7956
  (e = this.meteoMarker) == null || e.setLngLat([this.point.lng, this.point.lat]);
7947
7957
  else {
7948
7958
  const i = document.createElement("div");
7949
- i.innerHTML = '<svg t="1755510770354" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5552" width="200" height="200"><path d="M511.960615 827.234462s330.358154-215.906462 330.358154-465.526154C842.318769 183.650462 694.468923 39.384615 512 39.384615S181.563077 183.689846 181.563077 361.668923c0 249.659077 330.397538 465.565538 330.397538 465.565539z" fill="#FF8C00" p-id="5553"></path><path d="M511.921231 496.836923a127.054769 127.054769 0 1 0 0-254.148923 127.054769 127.054769 0 0 0 0 254.148923z" fill="#FFFFFF" p-id="5554"></path><path d="M354.461538 945.230769a157.538462 39.384615 0 1 0 315.076924 0 157.538462 39.384615 0 1 0-315.076924 0Z" fill="#494C4F" opacity=".4" p-id="5555"></path></svg>', i.firstChild.style.height = "28px", i.firstChild.style.width = "28px", this.meteoMarker = new _e.Marker(i).setLngLat([this.point.lng, this.point.lat]).setOffset([0, -14]).addTo(this.map);
7959
+ i.innerHTML = '<svg t="1755510770354" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5552" width="200" height="200"><path d="M511.960615 827.234462s330.358154-215.906462 330.358154-465.526154C842.318769 183.650462 694.468923 39.384615 512 39.384615S181.563077 183.689846 181.563077 361.668923c0 249.659077 330.397538 465.565538 330.397538 465.565539z" fill="#FF8C00" p-id="5553"></path><path d="M511.921231 496.836923a127.054769 127.054769 0 1 0 0-254.148923 127.054769 127.054769 0 0 0 0 254.148923z" fill="#FFFFFF" p-id="5554"></path><path d="M354.461538 945.230769a157.538462 39.384615 0 1 0 315.076924 0 157.538462 39.384615 0 1 0-315.076924 0Z" fill="#494C4F" opacity=".4" p-id="5555"></path></svg>', i.firstChild.style.height = "28px", i.firstChild.style.width = "28px", this.meteoMarker = new ke.Marker(i).setLngLat([this.point.lng, this.point.lat]).setOffset([0, -14]).addTo(this.map);
7950
7960
  }
7951
7961
  if (this.meteoInfoMarker)
7952
7962
  (t = this.meteoInfoMarker) == null || t.setLngLat([this.point.lng, this.point.lat]);
7953
7963
  else {
7954
7964
  const i = document.getElementById("idm-gl4-spot-meteo");
7955
- this.meteoInfoMarker = new _e.Marker(i).setLngLat([this.point.lng, this.point.lat]).setOffset([0, -200]).addTo(this.map);
7965
+ this.meteoInfoMarker = new ke.Marker(i).setLngLat([this.point.lng, this.point.lat]).setOffset([0, -200]).addTo(this.map);
7956
7966
  }
7957
7967
  }
7958
7968
  });
@@ -7968,22 +7978,22 @@ const hl = {
7968
7978
  this.$emit("follow", "point", this.point);
7969
7979
  }
7970
7980
  }
7971
- }, dl = { class: "idm-gl4-spot" }, pl = { class: "d-flex justify-start align-center ga-1 mb-1" }, ul = {
7981
+ }, ml = { class: "idm-gl4-spot" }, hl = { class: "d-flex justify-start align-center ga-1 mb-1" }, dl = {
7972
7982
  class: "multi-color-icon",
7973
7983
  "aria-hidden": "true"
7974
- }, gl = ["xlink:href"], fl = { class: "d-flex justify-start align-center ga-1 mb-1" }, bl = {
7984
+ }, pl = ["xlink:href"], ul = { class: "d-flex justify-start align-center ga-1 mb-1" }, gl = {
7975
7985
  class: "multi-color-icon",
7976
7986
  "aria-hidden": "true"
7977
- }, yl = ["xlink:href"], wl = { class: "d-flex justify-start align-center ga-1 mb-1" }, xl = {
7987
+ }, fl = ["xlink:href"], bl = { class: "d-flex justify-start align-center ga-1 mb-1" }, yl = {
7978
7988
  class: "multi-color-icon",
7979
7989
  "aria-hidden": "true"
7980
- }, vl = ["xlink:href"], _l = { class: "d-flex justify-start align-center ga-1 mb-1" }, kl = {
7990
+ }, wl = ["xlink:href"], xl = { class: "d-flex justify-start align-center ga-1 mb-1" }, vl = {
7981
7991
  class: "multi-color-icon",
7982
7992
  "aria-hidden": "true"
7983
- }, zl = ["xlink:href"], Ll = { class: "d-flex justify-start align-center" }, Pl = { class: "mx-2" };
7984
- function Cl(o, e, t, i, a, r) {
7993
+ }, _l = ["xlink:href"], kl = { class: "d-flex justify-start align-center" }, zl = { class: "mx-2" };
7994
+ function Ll(o, e, t, i, a, r) {
7985
7995
  const s = k("VBtn"), c = k("VTooltip"), n = k("VCardTitle"), p = k("VDivider"), d = k("VTextField"), m = k("VCol"), f = k("VRow"), _ = k("DateTimePicker"), b = k("VBtnToggle"), S = k("VCardActions"), C = k("VForm"), B = k("VCardText"), M = k("VCard"), L = k("VIcon");
7986
- return y(), T("div", dl, [
7996
+ return y(), T("div", ml, [
7987
7997
  l("div", {
7988
7998
  class: "menu-bar-box transition pa-1",
7989
7999
  style: oe({ top: t.top + 174 + "px", right: a.right + "px" })
@@ -8051,11 +8061,11 @@ function Cl(o, e, t, i, a, r) {
8051
8061
  onSubmit: Fo(r.submitForm, ["prevent"])
8052
8062
  }, {
8053
8063
  default: g(() => [
8054
- l("div", pl, [
8055
- (y(), T("svg", ul, [
8064
+ l("div", hl, [
8065
+ (y(), T("svg", dl, [
8056
8066
  l("use", {
8057
8067
  "xlink:href": `#icon-lng-${t.theme}`
8058
- }, null, 8, gl)
8068
+ }, null, 8, pl)
8059
8069
  ])),
8060
8070
  e[11] || (e[11] = l("div", null, "Lng", -1))
8061
8071
  ]),
@@ -8116,7 +8126,7 @@ function Cl(o, e, t, i, a, r) {
8116
8126
  onClick: e[2] || (e[2] = (v) => a.form.lngDirection = a.form.lngDirection === "E" ? "W" : "E")
8117
8127
  }, {
8118
8128
  default: g(() => [
8119
- Z(x(a.form.lngDirection), 1)
8129
+ Z(w(a.form.lngDirection), 1)
8120
8130
  ]),
8121
8131
  _: 1
8122
8132
  })
@@ -8126,11 +8136,11 @@ function Cl(o, e, t, i, a, r) {
8126
8136
  ]),
8127
8137
  _: 1
8128
8138
  }),
8129
- l("div", fl, [
8130
- (y(), T("svg", bl, [
8139
+ l("div", ul, [
8140
+ (y(), T("svg", gl, [
8131
8141
  l("use", {
8132
8142
  "xlink:href": `#icon-lng-${t.theme}`
8133
- }, null, 8, yl)
8143
+ }, null, 8, fl)
8134
8144
  ])),
8135
8145
  e[14] || (e[14] = l("div", null, "Lat", -1))
8136
8146
  ]),
@@ -8194,7 +8204,7 @@ function Cl(o, e, t, i, a, r) {
8194
8204
  onClick: e[5] || (e[5] = (v) => a.form.latDirection = a.form.latDirection === "N" ? "S" : "N")
8195
8205
  }, {
8196
8206
  default: g(() => [
8197
- Z(x(a.form.latDirection), 1)
8207
+ Z(w(a.form.latDirection), 1)
8198
8208
  ]),
8199
8209
  _: 1
8200
8210
  })
@@ -8204,11 +8214,11 @@ function Cl(o, e, t, i, a, r) {
8204
8214
  ]),
8205
8215
  _: 1
8206
8216
  }),
8207
- l("div", wl, [
8208
- (y(), T("svg", xl, [
8217
+ l("div", bl, [
8218
+ (y(), T("svg", yl, [
8209
8219
  l("use", {
8210
8220
  "xlink:href": `#icon-a-DateTime-${t.theme}`
8211
- }, null, 8, vl)
8221
+ }, null, 8, wl)
8212
8222
  ])),
8213
8223
  e[17] || (e[17] = l("div", null, "Date Time", -1))
8214
8224
  ]),
@@ -8231,11 +8241,11 @@ function Cl(o, e, t, i, a, r) {
8231
8241
  ]),
8232
8242
  _: 1
8233
8243
  }),
8234
- l("div", _l, [
8235
- (y(), T("svg", kl, [
8244
+ l("div", xl, [
8245
+ (y(), T("svg", vl, [
8236
8246
  l("use", {
8237
8247
  "xlink:href": `#icon-a-ForecastModel-${t.theme}`
8238
- }, null, 8, zl)
8248
+ }, null, 8, _l)
8239
8249
  ])),
8240
8250
  e[18] || (e[18] = l("div", null, "Forecast Model", -1))
8241
8251
  ]),
@@ -8333,8 +8343,8 @@ function Cl(o, e, t, i, a, r) {
8333
8343
  })
8334
8344
  ]),
8335
8345
  _: 1
8336
- }, 8, ["style"])) : N("", !0),
8337
- Jt(h(M, {
8346
+ }, 8, ["style"])) : F("", !0),
8347
+ eo(h(M, {
8338
8348
  id: "idm-gl4-spot-meteo",
8339
8349
  class: "spot-meteo",
8340
8350
  style: { width: "490px", "z-index": "9" }
@@ -8344,9 +8354,9 @@ function Cl(o, e, t, i, a, r) {
8344
8354
  default: g(() => {
8345
8355
  var v, z;
8346
8356
  return [
8347
- l("div", Ll, [
8357
+ l("div", kl, [
8348
8358
  e[23] || (e[23] = l("i", { class: "iconfont icon-a-Spotweather text-h5 map-icon-aqua" }, null, -1)),
8349
- l("div", Pl, x(r.computeLat((v = a.currentHourData) == null ? void 0 : v.lat)) + "," + x(r.computeLng((z = a.currentHourData) == null ? void 0 : z.lng)), 1)
8359
+ l("div", zl, w(r.computeLat((v = a.currentHourData) == null ? void 0 : v.lat)) + "," + w(r.computeLng((z = a.currentHourData) == null ? void 0 : z.lng)), 1)
8350
8360
  ]),
8351
8361
  h(s, {
8352
8362
  icon: "",
@@ -8390,7 +8400,7 @@ function Cl(o, e, t, i, a, r) {
8390
8400
  default: g(() => {
8391
8401
  var v;
8392
8402
  return [
8393
- Z(x(r.computedTzTime((v = a.currentHourData) == null ? void 0 : v.utc)), 1)
8403
+ Z(w(r.computedTzTime((v = a.currentHourData) == null ? void 0 : v.utc)), 1)
8394
8404
  ];
8395
8405
  }),
8396
8406
  _: 1
@@ -8417,7 +8427,7 @@ function Cl(o, e, t, i, a, r) {
8417
8427
  default: g(() => {
8418
8428
  var v;
8419
8429
  return [
8420
- Z(x(r.computedLocalTime((v = a.currentHourData) == null ? void 0 : v.utc)), 1)
8430
+ Z(w(r.computedLocalTime((v = a.currentHourData) == null ? void 0 : v.utc)), 1)
8421
8431
  ];
8422
8432
  }),
8423
8433
  _: 1
@@ -8442,7 +8452,7 @@ function Cl(o, e, t, i, a, r) {
8442
8452
  class: "pa-2 px-0 text-left"
8443
8453
  }, {
8444
8454
  default: g(() => [
8445
- Z(x(a.currentHourData.windDir) + " / " + x(a.currentHourData.windSpeed) + "kts / BF" + x(a.currentHourData.windLevel), 1)
8455
+ Z(w(a.currentHourData.windDir) + " / " + w(a.currentHourData.windSpeed) + "kts / BF" + w(a.currentHourData.windLevel), 1)
8446
8456
  ]),
8447
8457
  _: 1
8448
8458
  }),
@@ -8461,7 +8471,7 @@ function Cl(o, e, t, i, a, r) {
8461
8471
  class: "pa-2 px-0 text-left"
8462
8472
  }, {
8463
8473
  default: g(() => [
8464
- Z(x(a.currentHourData.sigwaveDir) + " / " + x(a.currentHourData.sigwaveHeight) + "m / " + x(a.currentHourData.sigwavePeriod) + "s", 1)
8474
+ Z(w(a.currentHourData.sigwaveDir) + " / " + w(a.currentHourData.sigwaveHeight) + "m / " + w(a.currentHourData.sigwavePeriod) + "s", 1)
8465
8475
  ]),
8466
8476
  _: 1
8467
8477
  })
@@ -8485,7 +8495,7 @@ function Cl(o, e, t, i, a, r) {
8485
8495
  class: "pa-2 px-0 text-left"
8486
8496
  }, {
8487
8497
  default: g(() => [
8488
- Z(x(a.currentHourData.windwaveDir) + " / " + x(a.currentHourData.windwaveHeight) + "m / " + x(a.currentHourData.windwavePeriod) + "s", 1)
8498
+ Z(w(a.currentHourData.windwaveDir) + " / " + w(a.currentHourData.windwaveHeight) + "m / " + w(a.currentHourData.windwavePeriod) + "s", 1)
8489
8499
  ]),
8490
8500
  _: 1
8491
8501
  }),
@@ -8504,7 +8514,7 @@ function Cl(o, e, t, i, a, r) {
8504
8514
  class: "pa-2 px-0 text-left"
8505
8515
  }, {
8506
8516
  default: g(() => [
8507
- Z(x(a.currentHourData.swellDir) + " / " + x(a.currentHourData.swellHeight) + "m / " + x(a.currentHourData.swellPeriod) + "s", 1)
8517
+ Z(w(a.currentHourData.swellDir) + " / " + w(a.currentHourData.swellHeight) + "m / " + w(a.currentHourData.swellPeriod) + "s", 1)
8508
8518
  ]),
8509
8519
  _: 1
8510
8520
  })
@@ -8528,7 +8538,7 @@ function Cl(o, e, t, i, a, r) {
8528
8538
  class: "pa-2 px-0 text-left"
8529
8539
  }, {
8530
8540
  default: g(() => [
8531
- Z(x(a.currentHourData.currentDir) + " / " + x(a.currentHourData.currentSpeed) + "kts", 1)
8541
+ Z(w(a.currentHourData.currentDir) + " / " + w(a.currentHourData.currentSpeed) + "kts", 1)
8532
8542
  ]),
8533
8543
  _: 1
8534
8544
  }),
@@ -8547,7 +8557,7 @@ function Cl(o, e, t, i, a, r) {
8547
8557
  class: "pa-2 px-0 text-left"
8548
8558
  }, {
8549
8559
  default: g(() => [
8550
- Z(x(a.currentHourData.visibility) + " nm", 1)
8560
+ Z(w(a.currentHourData.visibility) + " nm", 1)
8551
8561
  ]),
8552
8562
  _: 1
8553
8563
  })
@@ -8593,12 +8603,12 @@ function Cl(o, e, t, i, a, r) {
8593
8603
  ]),
8594
8604
  _: 1
8595
8605
  }, 512), [
8596
- [eo, a.showMeteo]
8606
+ [to, a.showMeteo]
8597
8607
  ])
8598
8608
  ]);
8599
8609
  }
8600
- const Sl = /* @__PURE__ */ q(hl, [["render", Cl]]);
8601
- const Ml = {
8610
+ const Pl = /* @__PURE__ */ q(cl, [["render", Ll]]);
8611
+ const Cl = {
8602
8612
  name: "IdmMeasure",
8603
8613
  props: {
8604
8614
  map: {
@@ -8652,7 +8662,7 @@ const Ml = {
8652
8662
  else {
8653
8663
  (o = this.map) == null || o.getCanvas().removeEventListener("keydown", this.handleKeydown), (e = this.map) == null || e.off("mousemove", this.handleMove), (t = this.map) == null || t.off("dblclick", this.handleDblClick), this.map && (this.map.getCanvas().style.cursor = "grab");
8654
8664
  let i = this.geojson.find((a) => !a.closed);
8655
- i && this.handleClear(i, !0), this.geojson = this.geojson.filter((a) => !!a.closed), i = F.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(i);
8665
+ i && this.handleClear(i, !0), this.geojson = this.geojson.filter((a) => !!a.closed), i = j.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(i);
8656
8666
  }
8657
8667
  },
8658
8668
  immediate: !0
@@ -8731,7 +8741,7 @@ const Ml = {
8731
8741
  const c = this.geojson.filter((n) => n.id === e.split("-")[0])[0].features.filter((n) => n.geometry.type === "Point");
8732
8742
  if (c.length > 2 && c.filter((p) => p.properties.id === (e == null ? void 0 : e.split("-")[1]))[0]) {
8733
8743
  const p = document.createElement("div");
8734
- p.className = "idm-gl4-measure-contextmenu-marker", p.innerHTML = `<span id="del-${e}" class="del-point">${$t("actions.detele")}</span>`, this.contextmenu = new _e.Marker(p).setOffset([24, 0]).setLngLat([o.lngLat.lng, o.lngLat.lat]).addTo(this.map);
8744
+ p.className = "idm-gl4-measure-contextmenu-marker", p.innerHTML = `<span id="del-${e}" class="del-point">${$t("actions.detele")}</span>`, this.contextmenu = new ke.Marker(p).setOffset([24, 0]).setLngLat([o.lngLat.lng, o.lngLat.lat]).addTo(this.map);
8735
8745
  }
8736
8746
  }
8737
8747
  },
@@ -8747,8 +8757,8 @@ const Ml = {
8747
8757
  p.features = p.features.filter((d) => d.geometry.type === "Point" && d.properties.id !== n[1]), this.handlePointUpdate(p);
8748
8758
  } else if (e !== "marker-label" && this.toggle) {
8749
8759
  let n = this.geojson.at(-1);
8750
- n || (n = F.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(n)), n.features = n.features.filter((d) => d.geometry.type === "Point");
8751
- const p = F.feature(
8760
+ n || (n = j.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(n)), n.features = n.features.filter((d) => d.geometry.type === "Point");
8761
+ const p = j.feature(
8752
8762
  {
8753
8763
  type: "Point",
8754
8764
  coordinates: [o.lngLat.lng, o.lngLat.lat]
@@ -8771,7 +8781,7 @@ const Ml = {
8771
8781
  t = ie.roundPrecision(t + d, 2);
8772
8782
  let f;
8773
8783
  c.mode === "RL" ? f = ie.convertToMonotonicLng([n, p]) : f = ie.convertToMonotonicLng(Fe.interpolateCoordinates(n, p, 200));
8774
- const _ = F.lineString(f.map((b) => [b.lng, b.lat]));
8784
+ const _ = j.lineString(f.map((b) => [b.lng, b.lat]));
8775
8785
  _.properties.dist = d, _.properties.bearing = m, _.properties.total = t, i.push(_);
8776
8786
  }
8777
8787
  e.push(...i), o.total = t;
@@ -8779,14 +8789,14 @@ const Ml = {
8779
8789
  return this.handleRender(o), o;
8780
8790
  },
8781
8791
  handleTmpPointUpdate(o, e, t, i) {
8782
- const a = F.featureCollection([]);
8792
+ const a = j.featureCollection([]);
8783
8793
  let r, s;
8784
8794
  if (e) {
8785
8795
  const n = e.properties, p = { lng: e.geometry.coordinates[0], lat: e.geometry.coordinates[1] }, d = { lng: t.lng, lat: t.lat };
8786
8796
  r = Fe.calculateDistance(p, d, n.mode === "RL", 4), s = Fe.calculateBearing(p, d, n.mode === "RL", 2);
8787
8797
  let m;
8788
8798
  n.mode === "RL" ? m = ie.convertToMonotonicLng([p, d]) : m = ie.convertToMonotonicLng(Fe.interpolateCoordinates(p, d, 200));
8789
- const f = F.lineString(m.map((_) => [_.lng, _.lat]));
8799
+ const f = j.lineString(m.map((_) => [_.lng, _.lat]));
8790
8800
  f.properties.dist = r, f.properties.bearing = s, a.features.push(f);
8791
8801
  }
8792
8802
  if (i) {
@@ -8794,7 +8804,7 @@ const Ml = {
8794
8804
  r = Fe.calculateDistance(p, d, n.mode === "RL", 4), s = Fe.calculateBearing(p, d, n.mode === "RL", 2);
8795
8805
  let m;
8796
8806
  n.mode === "RL" ? m = ie.convertToMonotonicLng([p, d]) : m = ie.convertToMonotonicLng(Fe.interpolateCoordinates(p, d, 200));
8797
- const f = F.lineString(m.map((_) => [_.lng, _.lat]));
8807
+ const f = j.lineString(m.map((_) => [_.lng, _.lat]));
8798
8808
  f.properties.dist = r, f.properties.bearing = s, a.features.push(f);
8799
8809
  }
8800
8810
  this.map.getSource(this.tmpSource) ? this.map.getSource(this.tmpSource).setData(a) : this.map.addSource(this.tmpSource, {
@@ -8849,20 +8859,20 @@ const Ml = {
8849
8859
  this.tipMarker._element.innerHTML = c, this.tipMarker.setLngLat([t.lng, t.lat]);
8850
8860
  else {
8851
8861
  const n = document.createElement("div");
8852
- n.className = "idm-gl4-measure-tip-marker", n.innerHTML = c, this.tipMarker = new _e.Marker(n).setOffset([140, 0]).setLngLat([t.lng, t.lat]).addTo(this.map);
8862
+ n.className = "idm-gl4-measure-tip-marker", n.innerHTML = c, this.tipMarker = new ke.Marker(n).setOffset([140, 0]).setLngLat([t.lng, t.lat]).addTo(this.map);
8853
8863
  }
8854
8864
  },
8855
8865
  handleMove(o) {
8856
8866
  this.map.getCanvas().style.cursor = "crosshair";
8857
8867
  let e = this.geojson.at(-1);
8858
- e || (e = F.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(e));
8868
+ e || (e = j.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(e));
8859
8869
  const t = e.features.filter((i) => i.geometry.type === "Point");
8860
8870
  t != null && t.length && this.handleTmpPointUpdate(e, t.at(-1), { lng: o.lngLat.lng, lat: o.lngLat.lat });
8861
8871
  },
8862
8872
  handleDblClick(o) {
8863
8873
  o.preventDefault();
8864
8874
  let e = this.geojson.at(-1);
8865
- e.closed = !0, this.handleRender(e), e = F.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(e);
8875
+ e.closed = !0, this.handleRender(e), e = j.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(e);
8866
8876
  },
8867
8877
  handleRender(o) {
8868
8878
  var e;
@@ -8907,12 +8917,12 @@ const Ml = {
8907
8917
  for (const s of r) {
8908
8918
  const c = document.createElement("div");
8909
8919
  c.id = `${o.id}-${s.properties.id}`, c.className = `${o.closed ? "idm-gl4-measure-marker closed" : "idm-gl4-measure-marker"}`, c.innerHTML = '<div class="marker-circle"></div>';
8910
- const n = new _e.Marker({ element: c, draggable: !0, contextmenu: !0 }).setLngLat(s.geometry.coordinates).addTo(this.map);
8920
+ const n = new ke.Marker({ element: c, draggable: !0, contextmenu: !0 }).setLngLat(s.geometry.coordinates).addTo(this.map);
8911
8921
  n.on("drag", this.handleDrag), n.on("dragend", this.handleDragEnd), this.pointMarkers[o.id] ? this.pointMarkers[o.id].push(n) : this.pointMarkers[o.id] = [n];
8912
8922
  }
8913
8923
  if (o.closed) {
8914
8924
  const s = r.at(-1), n = o.features.filter((d) => d.geometry.type === "LineString").at(-1), p = document.createElement("div");
8915
- p.className = "idm-gl4-measure-summary-marker", p.innerHTML = `<div id="${o.id}" class="marker-close">×</div><div class="marker-label">${this.$t("measure.total")}: ${n.properties.total}${this.$t("units.nm")}</div>`, this.closeMarkers[o.id] = new _e.Marker(p).setOffset([60, 0]).setLngLat(s.geometry.coordinates).addTo(this.map);
8925
+ p.className = "idm-gl4-measure-summary-marker", p.innerHTML = `<div id="${o.id}" class="marker-close">×</div><div class="marker-label">${this.$t("measure.total")}: ${n.properties.total}${this.$t("units.nm")}</div>`, this.closeMarkers[o.id] = new ke.Marker(p).setOffset([60, 0]).setLngLat(s.geometry.coordinates).addTo(this.map);
8916
8926
  }
8917
8927
  }
8918
8928
  },
@@ -8924,10 +8934,10 @@ const Ml = {
8924
8934
  }), this.pointMarkers[o.id] = [], (m = this.tipMarker) == null || m.remove(), this.tipMarker = void 0, e && ((f = this.map) != null && f.getSource(t)) && this.map.removeSource(t), e && ((_ = this.map) != null && _.getSource(this.tmpSource)) && this.map.removeSource(this.tmpSource);
8925
8935
  }
8926
8936
  }
8927
- }, Tl = { class: "idm-gl4-measure" };
8928
- function Rl(o, e, t, i, a, r) {
8937
+ }, Sl = { class: "idm-gl4-measure" };
8938
+ function Ml(o, e, t, i, a, r) {
8929
8939
  const s = k("VBtn"), c = k("VTooltip");
8930
- return y(), T("div", Tl, [
8940
+ return y(), T("div", Sl, [
8931
8941
  l("div", {
8932
8942
  class: "menu-bar-box transition pa-1",
8933
8943
  style: oe({ top: t.top + 214 + "px", right: a.right + "px" })
@@ -8956,10 +8966,10 @@ function Rl(o, e, t, i, a, r) {
8956
8966
  ], 4)
8957
8967
  ]);
8958
8968
  }
8959
- const Il = /* @__PURE__ */ q(Ml, [["render", Rl]]);
8960
- const Al = {
8969
+ const Tl = /* @__PURE__ */ q(Cl, [["render", Ml]]);
8970
+ const Rl = {
8961
8971
  name: "IdmBottomBar",
8962
- components: { DateTimePicker: ao },
8972
+ components: { DateTimePicker: io },
8963
8973
  props: {
8964
8974
  menuToggle: {
8965
8975
  type: Object,
@@ -9070,19 +9080,19 @@ const Al = {
9070
9080
  this.$parent.$refs.idmWeatherLayers.handleMenuToggle();
9071
9081
  }
9072
9082
  }
9073
- }, Dl = { class: "idm-bottom-bar-gl4" }, Ol = { class: "date-box d-flex ga-2 mr-2" }, Bl = { class: "play-btns-box d-flex justify-center align-center cursor-pointer" }, El = { class: "fast-weathers-box d-flex justify-center align-center ga-2 cursor-pointer" }, jl = { class: "model-box d-flex justify-center align-center ga-2 my-2" }, Fl = {
9083
+ }, Il = { class: "idm-bottom-bar-gl4" }, Al = { class: "date-box d-flex ga-2 mr-2" }, Dl = { class: "play-btns-box d-flex justify-center align-center cursor-pointer" }, Ol = { class: "fast-weathers-box d-flex justify-center align-center ga-2 cursor-pointer" }, Bl = { class: "model-box d-flex justify-center align-center ga-2 my-2" }, El = {
9074
9084
  key: 0,
9075
9085
  class: "list d-flex flex-wrap pa-2 rounded ga-2"
9076
- }, Nl = ["onClick"], Hl = { class: "btn-box d-flex justify-start align-center rounded ga-2 py-1 px-3" }, Wl = { class: "text-body-2" };
9077
- function Gl(o, e, t, i, a, r) {
9086
+ }, jl = ["onClick"], Fl = { class: "btn-box d-flex justify-start align-center rounded ga-2 py-1 px-3" }, Nl = { class: "text-body-2" };
9087
+ function Hl(o, e, t, i, a, r) {
9078
9088
  const s = k("DateTimePicker"), c = k("VListItemTitle"), n = k("VListItem"), p = k("VList"), d = k("VMenu"), m = k("VBtn"), f = k("VDivider"), _ = k("VTooltip");
9079
- return y(), T("div", Dl, [
9089
+ return y(), T("div", Il, [
9080
9090
  a.show ? (y(), T("div", {
9081
9091
  key: 0,
9082
9092
  class: "timeline-box px-2 d-flex justify-start align-center rounded",
9083
9093
  style: oe({ right: a.right + 146 + "px" })
9084
9094
  }, [
9085
- l("div", Ol, [
9095
+ l("div", Al, [
9086
9096
  h(s, E({
9087
9097
  "date-time": a.currentDateTimeZ,
9088
9098
  "time-zone": a.timeZone,
@@ -9100,12 +9110,12 @@ function Gl(o, e, t, i, a, r) {
9100
9110
  "min-width": "30"
9101
9111
  }, {
9102
9112
  default: g(() => [
9103
- Z(x(a.intervalHour) + " h ", 1),
9113
+ Z(w(a.intervalHour) + " h ", 1),
9104
9114
  h(d, { activator: "parent" }, {
9105
9115
  default: g(() => [
9106
9116
  h(p, { class: "pa-1" }, {
9107
9117
  default: g(() => [
9108
- (y(!0), T(ve, null, ze(a.intervalOptions, (b, S) => (y(), U(n, {
9118
+ (y(!0), T(_e, null, Le(a.intervalOptions, (b, S) => (y(), U(n, {
9109
9119
  key: S,
9110
9120
  value: b,
9111
9121
  variant: a.intervalHour === b ? "tonal" : "text",
@@ -9122,7 +9132,7 @@ function Gl(o, e, t, i, a, r) {
9122
9132
  onClick: (C) => a.intervalHour = b
9123
9133
  }, {
9124
9134
  default: g(() => [
9125
- Z(x(b) + "h", 1)
9135
+ Z(w(b) + "h", 1)
9126
9136
  ]),
9127
9137
  _: 2
9128
9138
  }, 1032, ["onClick"])
@@ -9144,7 +9154,7 @@ function Gl(o, e, t, i, a, r) {
9144
9154
  class: "mx-2 my-3",
9145
9155
  style: { height: "16px" }
9146
9156
  }),
9147
- l("div", Bl, [
9157
+ l("div", Dl, [
9148
9158
  h(m, {
9149
9159
  icon: "",
9150
9160
  size: "small",
@@ -9152,11 +9162,11 @@ function Gl(o, e, t, i, a, r) {
9152
9162
  variant: "text",
9153
9163
  onClick: r.handleReset
9154
9164
  }, {
9155
- default: g(() => e[10] || (e[10] = [
9165
+ default: g(() => e[9] || (e[9] = [
9156
9166
  l("i", { class: "iconfont icon-Reset" }, null, -1)
9157
9167
  ])),
9158
9168
  _: 1,
9159
- __: [10]
9169
+ __: [9]
9160
9170
  }, 8, ["onClick"]),
9161
9171
  h(m, {
9162
9172
  icon: "",
@@ -9165,11 +9175,11 @@ function Gl(o, e, t, i, a, r) {
9165
9175
  variant: "text",
9166
9176
  onClick: r.handleBackward
9167
9177
  }, {
9168
- default: g(() => e[11] || (e[11] = [
9178
+ default: g(() => e[10] || (e[10] = [
9169
9179
  l("i", { class: "iconfont icon-Backward" }, null, -1)
9170
9180
  ])),
9171
9181
  _: 1,
9172
- __: [11]
9182
+ __: [10]
9173
9183
  }, 8, ["onClick"]),
9174
9184
  a.paused ? (y(), U(m, {
9175
9185
  key: 0,
@@ -9179,11 +9189,11 @@ function Gl(o, e, t, i, a, r) {
9179
9189
  variant: "text",
9180
9190
  onClick: r.handlePlay
9181
9191
  }, {
9182
- default: g(() => e[12] || (e[12] = [
9192
+ default: g(() => e[11] || (e[11] = [
9183
9193
  l("i", { class: "iconfont icon-Play" }, null, -1)
9184
9194
  ])),
9185
9195
  _: 1,
9186
- __: [12]
9196
+ __: [11]
9187
9197
  }, 8, ["onClick"])) : (y(), U(m, {
9188
9198
  key: 1,
9189
9199
  icon: "",
@@ -9192,11 +9202,11 @@ function Gl(o, e, t, i, a, r) {
9192
9202
  variant: "text",
9193
9203
  onClick: r.handlePause
9194
9204
  }, {
9195
- default: g(() => e[13] || (e[13] = [
9205
+ default: g(() => e[12] || (e[12] = [
9196
9206
  l("i", { class: "iconfont icon-Pause" }, null, -1)
9197
9207
  ])),
9198
9208
  _: 1,
9199
- __: [13]
9209
+ __: [12]
9200
9210
  }, 8, ["onClick"])),
9201
9211
  h(m, {
9202
9212
  icon: "",
@@ -9205,11 +9215,11 @@ function Gl(o, e, t, i, a, r) {
9205
9215
  variant: "text",
9206
9216
  onClick: r.handleForward
9207
9217
  }, {
9208
- default: g(() => e[14] || (e[14] = [
9218
+ default: g(() => e[13] || (e[13] = [
9209
9219
  l("i", { class: "iconfont icon-Forward" }, null, -1)
9210
9220
  ])),
9211
9221
  _: 1,
9212
- __: [14]
9222
+ __: [13]
9213
9223
  }, 8, ["onClick"])
9214
9224
  ]),
9215
9225
  h(f, {
@@ -9217,7 +9227,7 @@ function Gl(o, e, t, i, a, r) {
9217
9227
  class: "mx-2 my-3",
9218
9228
  style: { height: "16px" }
9219
9229
  }),
9220
- l("div", El, [
9230
+ l("div", Ol, [
9221
9231
  h(_, {
9222
9232
  text: o.$t("weather.windBarbs"),
9223
9233
  location: "top"
@@ -9234,11 +9244,11 @@ function Gl(o, e, t, i, a, r) {
9234
9244
  "min-width": "24",
9235
9245
  onClick: e[3] || (e[3] = (B) => r.handleClickFastWeather("wind"))
9236
9246
  }), {
9237
- default: g(() => e[15] || (e[15] = [
9247
+ default: g(() => e[14] || (e[14] = [
9238
9248
  l("i", { class: "iconfont icon-a-WindLevel" }, null, -1)
9239
9249
  ])),
9240
9250
  _: 2,
9241
- __: [15]
9251
+ __: [14]
9242
9252
  }, 1040, ["color", "variant"])
9243
9253
  ];
9244
9254
  }),
@@ -9321,7 +9331,7 @@ function Gl(o, e, t, i, a, r) {
9321
9331
  class: "mx-2 mr-3 my-3",
9322
9332
  style: { height: "16px" }
9323
9333
  }),
9324
- l("div", jl, [
9334
+ l("div", Bl, [
9325
9335
  h(m, {
9326
9336
  text: "",
9327
9337
  height: "30",
@@ -9329,11 +9339,11 @@ function Gl(o, e, t, i, a, r) {
9329
9339
  color: a.source === "GFS" ? "primary" : "",
9330
9340
  onClick: e[6] || (e[6] = (b) => a.source = "GFS")
9331
9341
  }, {
9332
- default: g(() => e[16] || (e[16] = [
9342
+ default: g(() => e[15] || (e[15] = [
9333
9343
  Z("NOAA", -1)
9334
9344
  ])),
9335
9345
  _: 1,
9336
- __: [16]
9346
+ __: [15]
9337
9347
  }, 8, ["color"]),
9338
9348
  h(m, {
9339
9349
  text: "",
@@ -9342,69 +9352,53 @@ function Gl(o, e, t, i, a, r) {
9342
9352
  color: a.source === "ECMWF" ? "primary" : "",
9343
9353
  onClick: e[7] || (e[7] = (b) => a.source = "ECMWF")
9344
9354
  }, {
9345
- default: g(() => e[17] || (e[17] = [
9355
+ default: g(() => e[16] || (e[16] = [
9346
9356
  Z("ECMWF", -1)
9347
9357
  ])),
9348
9358
  _: 1,
9349
- __: [17]
9350
- }, 8, ["color"]),
9351
- h(m, {
9352
- icon: "",
9353
- size: "x-small",
9354
- density: "comfortable",
9355
- variant: "plain",
9356
- onClick: e[8] || (e[8] = (b) => r.handleToggle(!1))
9357
- }, {
9358
- default: g(() => e[18] || (e[18] = [
9359
- l("i", {
9360
- class: "iconfont icon-close",
9361
- style: { "font-size": "16px" }
9362
- }, null, -1)
9363
- ])),
9364
- _: 1,
9365
- __: [18]
9366
- })
9359
+ __: [16]
9360
+ }, 8, ["color"])
9367
9361
  ])
9368
- ], 4)) : N("", !0),
9362
+ ], 4)) : F("", !0),
9369
9363
  l("div", {
9370
9364
  class: "timezone-box d-flex flex-column justify-space-between align-end",
9371
9365
  style: oe({ right: a.right + "px" })
9372
9366
  }, [
9373
- a.showTimezone ? (y(), T("div", Fl, [
9374
- (y(!0), T(ve, null, ze(a.offsets, (b) => (y(), T("div", {
9367
+ a.showTimezone ? (y(), T("div", El, [
9368
+ (y(!0), T(_e, null, Le(a.offsets, (b) => (y(), T("div", {
9375
9369
  key: b,
9376
- class: "item rounded text-body-2",
9370
+ class: "item rounded text-body-2 hover-active",
9377
9371
  onClick: (S) => a.timeZone = b
9378
- }, x(b < 0 ? b : "+" + b), 9, Nl))), 128))
9379
- ])) : N("", !0),
9380
- l("div", Hl, [
9372
+ }, w(b < 0 ? b : "+" + b), 9, jl))), 128))
9373
+ ])) : F("", !0),
9374
+ l("div", Fl, [
9381
9375
  h(m, {
9382
9376
  text: "",
9383
9377
  variant: "flat",
9384
9378
  height: "24",
9385
9379
  class: "pa-1",
9386
9380
  color: "primary",
9387
- onClick: e[9] || (e[9] = (b) => a.showTimezone = !a.showTimezone)
9381
+ onClick: e[8] || (e[8] = (b) => a.showTimezone = !a.showTimezone)
9388
9382
  }, {
9389
9383
  default: g(() => [
9390
- Z(" UTC " + x(a.timeZone < 0 ? a.timeZone : "+" + a.timeZone), 1)
9384
+ Z(" UTC " + w(a.timeZone < 0 ? a.timeZone : "+" + a.timeZone), 1)
9391
9385
  ]),
9392
9386
  _: 1
9393
9387
  }),
9394
- l("span", Wl, x(a.currentRealTime), 1)
9388
+ l("span", Nl, w(a.currentRealTime), 1)
9395
9389
  ])
9396
9390
  ], 4)
9397
9391
  ]);
9398
9392
  }
9399
- const Ul = /* @__PURE__ */ q(Al, [["render", Gl]]), Vl = {
9393
+ const Wl = /* @__PURE__ */ q(Rl, [["render", Hl]]), Gl = {
9400
9394
  name: "IdmGL4",
9401
9395
  components: {
9402
9396
  IdmOtherLayer: ai,
9403
- IdmWeatherLayer: Gr,
9397
+ IdmWeatherLayer: Hr,
9404
9398
  IdmTropicals: Bo,
9405
- IdmMeasure: Il,
9406
- IdmSpot: Sl,
9407
- IdmBottomBar: Ul
9399
+ IdmMeasure: Tl,
9400
+ IdmSpot: Pl,
9401
+ IdmBottomBar: Wl
9408
9402
  },
9409
9403
  props: {
9410
9404
  map: {
@@ -9436,13 +9430,13 @@ const Ul = /* @__PURE__ */ q(Al, [["render", Gl]]), Vl = {
9436
9430
  mounted() {
9437
9431
  },
9438
9432
  methods: {}
9439
- }, Yl = {
9433
+ }, Ul = {
9440
9434
  ref: "mapHomeGl4",
9441
9435
  class: "map-gl4-home"
9442
9436
  };
9443
- function Zl(o, e, t, i, a, r) {
9437
+ function Vl(o, e, t, i, a, r) {
9444
9438
  const s = k("IdmOtherLayer"), c = k("IdmWeatherLayer"), n = k("IdmTropicals"), p = k("IdmMeasure"), d = k("IdmSpot"), m = k("IdmBottomBar");
9445
- return y(), T("div", Yl, [
9439
+ return y(), T("div", Ul, [
9446
9440
  h(s, E({
9447
9441
  ref: "idmOtherLayers",
9448
9442
  token: t.token,
@@ -9494,8 +9488,8 @@ function Zl(o, e, t, i, a, r) {
9494
9488
  }, o.$attrs), null, 16, ["forecast-model", "weatherCheckList"])
9495
9489
  ], 512);
9496
9490
  }
9497
- const Xl = /* @__PURE__ */ q(Vl, [["render", Zl]]);
9498
- class ql {
9491
+ const Yl = /* @__PURE__ */ q(Gl, [["render", Vl]]);
9492
+ class Zl {
9499
9493
  constructor(e = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImNseTVudHJzYzAwNWUwbHBsZHkyaDRqczMiLCJyb2xlIjoxLCJuYW1lIjoiZmFrZUBvcm13eC5jb20iLCJwbGF0SWQiOiJnZDBtdDFkIiwiY29tcGFueSI6eyJpZCI6bnVsbCwiY2hpbGRyZW4iOltdfSwiaWF0IjoxNzIzMDI0MDI0LCJleHAiOjM5MzA1NDQwMjR9.RrKcdcMnq-FxBLJQ-i6lx2FscDE46y8EvHIemPW4HTg") {
9500
9494
  re(this, "originStyle");
9501
9495
  re(this, "mapboxStyle");
@@ -9503,7 +9497,7 @@ class ql {
9503
9497
  re(this, "hi");
9504
9498
  re(this, "td");
9505
9499
  re(this, "windy");
9506
- var t, i, a, r, s, c, n, p, d, m, f, _, b, S, C, B, M, L, v, z, P, w, R, W, X, V, Y, $, ee, Q, ne, ce, de, me, K, I, le, ge, fe, ye, we, Se, Me, Te, Re, Ie, j, te, Le, Ee, Pe, he, pe, H, xe, J, ae, Ae, D, ue, Ce, De, Oe, A, G, He, We, Ge, ke, Ue, Ve, Ye, Ze, Xe, qe, Ke, Qe, Je, $e, et, tt, ot, at, it, rt, lt, st, nt, ct, mt, ht, dt, pt, ut, gt, ft, bt, yt, wt, xt, vt, _t, kt, zt, Lt, Pt, Ct, St, Mt, Tt, Rt, It, At, Dt, Ot, Bt, Et, jt, Ft, Nt, Ht, Wt, Gt, Ut, Vt, Yt, Zt, Xt, io, ro, lo, so, no, co, mo, ho, po, uo, go, fo, bo, yo, wo, xo, vo, _o, ko, zo, Lo, Po, Co, So, Mo, To, Ro, Io;
9500
+ var t, i, a, r, s, c, n, p, d, m, f, _, b, S, C, B, M, L, v, z, P, x, R, W, X, V, Y, $, ee, Q, ne, he, de, ce, K, I, le, ge, fe, we, xe, Se, Me, Te, Re, Ie, be, H, te, Ee, Pe, me, pe, N, ve, J, ae, Ae, D, ue, Ce, De, Oe, A, G, He, We, Ge, ze, Ue, Ve, Ye, Ze, Xe, qe, Ke, Qe, Je, $e, et, tt, ot, at, it, rt, lt, st, nt, ct, mt, ht, dt, pt, ut, gt, ft, bt, yt, wt, xt, vt, _t, kt, zt, Lt, Pt, Ct, St, Mt, Tt, Rt, It, At, Dt, Ot, Bt, Et, jt, Ft, Nt, Ht, Wt, Gt, Ut, Vt, Yt, Zt, Xt, qt, ro, lo, so, no, co, mo, ho, po, uo, go, fo, bo, yo, wo, xo, vo, _o, ko, zo, Lo, Po, Co, So, Mo, To, Ro, Io;
9507
9501
  this.i4 = {
9508
9502
  source: {
9509
9503
  type: "raster",
@@ -71390,17 +71384,17 @@ class ql {
71390
71384
  (B = (C = this.originStyle) == null ? void 0 : C.light.layers) == null ? void 0 : B.find((u) => u.id === "empty-layer-3"),
71391
71385
  (L = (M = this.originStyle) == null ? void 0 : M.light.layers) == null ? void 0 : L.find((u) => u.id === "empty-layer-4"),
71392
71386
  (z = (v = this.originStyle) == null ? void 0 : v.light.layers) == null ? void 0 : z.find((u) => u.id === "water-line-label"),
71393
- (w = (P = this.originStyle) == null ? void 0 : P.light.layers) == null ? void 0 : w.find((u) => u.id === "water-point-label"),
71387
+ (x = (P = this.originStyle) == null ? void 0 : P.light.layers) == null ? void 0 : x.find((u) => u.id === "water-point-label"),
71394
71388
  (W = (R = this.originStyle) == null ? void 0 : R.light.layers) == null ? void 0 : W.find((u) => u.id === "world-12nm-v4-20231025"),
71395
71389
  (V = (X = this.originStyle) == null ? void 0 : X.light.layers) == null ? void 0 : V.find((u) => u.id === "ne-10m-outline"),
71396
71390
  ($ = (Y = this.originStyle) == null ? void 0 : Y.light.layers) == null ? void 0 : $.find((u) => u.id === "ne-10m-label"),
71397
71391
  (Q = (ee = this.originStyle) == null ? void 0 : ee.light.layers) == null ? void 0 : Q.find((u) => u.id === "china-route-line"),
71398
- (ce = (ne = this.originStyle) == null ? void 0 : ne.light.layers) == null ? void 0 : ce.find((u) => u.id === "china-route-fill"),
71399
- (me = (de = this.originStyle) == null ? void 0 : de.light.layers) == null ? void 0 : me.find((u) => u.id === "china-route-label"),
71392
+ (he = (ne = this.originStyle) == null ? void 0 : ne.light.layers) == null ? void 0 : he.find((u) => u.id === "china-route-fill"),
71393
+ (ce = (de = this.originStyle) == null ? void 0 : de.light.layers) == null ? void 0 : ce.find((u) => u.id === "china-route-label"),
71400
71394
  (I = (K = this.originStyle) == null ? void 0 : K.light.layers) == null ? void 0 : I.find((u) => u.id === "admin-0-boundary-bg"),
71401
71395
  (ge = (le = this.originStyle) == null ? void 0 : le.light.layers) == null ? void 0 : ge.find((u) => u.id === "admin-0-boundary"),
71402
- (ye = (fe = this.originStyle) == null ? void 0 : fe.light.layers) == null ? void 0 : ye.find((u) => u.id === "admin-0-boundary-disputed"),
71403
- (Se = (we = this.originStyle) == null ? void 0 : we.light.layers) == null ? void 0 : Se.find((u) => u.id === "country-label"),
71396
+ (we = (fe = this.originStyle) == null ? void 0 : fe.light.layers) == null ? void 0 : we.find((u) => u.id === "admin-0-boundary-disputed"),
71397
+ (Se = (xe = this.originStyle) == null ? void 0 : xe.light.layers) == null ? void 0 : Se.find((u) => u.id === "country-label"),
71404
71398
  (Te = (Me = this.originStyle) == null ? void 0 : Me.light.layers) == null ? void 0 : Te.find((u) => u.id === "continent-label")
71405
71399
  // this.originStyle?.light.layers?.find((l: { id: string }) => l.id === 'state-label'),
71406
71400
  ]
@@ -71533,18 +71527,18 @@ class ql {
71533
71527
  draft: !1,
71534
71528
  layers: [
71535
71529
  (Ie = (Re = this.originStyle) == null ? void 0 : Re.dark.layers) == null ? void 0 : Ie.find((u) => u.id === "land"),
71536
- (te = (j = this.originStyle) == null ? void 0 : j.dark.layers) == null ? void 0 : te.find((u) => u.id === "water"),
71537
- (Ee = (Le = this.originStyle) == null ? void 0 : Le.dark.layers) == null ? void 0 : Ee.find((u) => u.id === "empty-layer-1"),
71538
- (he = (Pe = this.originStyle) == null ? void 0 : Pe.dark.layers) == null ? void 0 : he.find((u) => u.id === "country-boundaries"),
71539
- (H = (pe = this.originStyle) == null ? void 0 : pe.dark.layers) == null ? void 0 : H.find((u) => u.id === "water-outline"),
71540
- (J = (xe = this.originStyle) == null ? void 0 : xe.dark.layers) == null ? void 0 : J.find((u) => u.id === "empty-layer-2"),
71530
+ (H = (be = this.originStyle) == null ? void 0 : be.dark.layers) == null ? void 0 : H.find((u) => u.id === "water"),
71531
+ (Ee = (te = this.originStyle) == null ? void 0 : te.dark.layers) == null ? void 0 : Ee.find((u) => u.id === "empty-layer-1"),
71532
+ (me = (Pe = this.originStyle) == null ? void 0 : Pe.dark.layers) == null ? void 0 : me.find((u) => u.id === "country-boundaries"),
71533
+ (N = (pe = this.originStyle) == null ? void 0 : pe.dark.layers) == null ? void 0 : N.find((u) => u.id === "water-outline"),
71534
+ (J = (ve = this.originStyle) == null ? void 0 : ve.dark.layers) == null ? void 0 : J.find((u) => u.id === "empty-layer-2"),
71541
71535
  (Ae = (ae = this.originStyle) == null ? void 0 : ae.dark.layers) == null ? void 0 : Ae.find((u) => u.id === "empty-layer-3"),
71542
71536
  (ue = (D = this.originStyle) == null ? void 0 : D.dark.layers) == null ? void 0 : ue.find((u) => u.id === "empty-layer-4"),
71543
71537
  (De = (Ce = this.originStyle) == null ? void 0 : Ce.dark.layers) == null ? void 0 : De.find((u) => u.id === "water-line-label"),
71544
71538
  (A = (Oe = this.originStyle) == null ? void 0 : Oe.dark.layers) == null ? void 0 : A.find((u) => u.id === "water-point-label"),
71545
71539
  (He = (G = this.originStyle) == null ? void 0 : G.dark.layers) == null ? void 0 : He.find((u) => u.id === "world-12nm-v4-20231025"),
71546
71540
  (Ge = (We = this.originStyle) == null ? void 0 : We.dark.layers) == null ? void 0 : Ge.find((u) => u.id === "ne-10m-outline"),
71547
- (Ue = (ke = this.originStyle) == null ? void 0 : ke.dark.layers) == null ? void 0 : Ue.find((u) => u.id === "ne-10m-label"),
71541
+ (Ue = (ze = this.originStyle) == null ? void 0 : ze.dark.layers) == null ? void 0 : Ue.find((u) => u.id === "ne-10m-label"),
71548
71542
  (Ye = (Ve = this.originStyle) == null ? void 0 : Ve.dark.layers) == null ? void 0 : Ye.find((u) => u.id === "china-route-line"),
71549
71543
  (Xe = (Ze = this.originStyle) == null ? void 0 : Ze.dark.layers) == null ? void 0 : Xe.find((u) => u.id === "china-route-fill"),
71550
71544
  (Ke = (qe = this.originStyle) == null ? void 0 : qe.dark.layers) == null ? void 0 : Ke.find((u) => u.id === "china-route-label"),
@@ -71735,7 +71729,7 @@ class ql {
71735
71729
  (Ut = (Gt = this.originStyle) == null ? void 0 : Gt.nautical.layers) == null ? void 0 : Ut.find((u) => u.id === "empty-layer-1"),
71736
71730
  (Yt = (Vt = this.originStyle) == null ? void 0 : Vt.nautical.layers) == null ? void 0 : Yt.find((u) => u.id === "country-boundaries"),
71737
71731
  (Xt = (Zt = this.originStyle) == null ? void 0 : Zt.nautical.layers) == null ? void 0 : Xt.find((u) => u.id === "water-outline"),
71738
- (ro = (io = this.originStyle) == null ? void 0 : io.nautical.layers) == null ? void 0 : ro.find((u) => u.id === "empty-layer-2"),
71732
+ (ro = (qt = this.originStyle) == null ? void 0 : qt.nautical.layers) == null ? void 0 : ro.find((u) => u.id === "empty-layer-2"),
71739
71733
  (so = (lo = this.originStyle) == null ? void 0 : lo.nautical.layers) == null ? void 0 : so.find((u) => u.id === "empty-layer-3"),
71740
71734
  (co = (no = this.originStyle) == null ? void 0 : no.nautical.layers) == null ? void 0 : co.find((u) => u.id === "empty-layer-4"),
71741
71735
  (ho = (mo = this.originStyle) == null ? void 0 : mo.nautical.layers) == null ? void 0 : ho.find((u) => u.id === "world-12nm-v4-20231025"),
@@ -71764,7 +71758,7 @@ class ql {
71764
71758
  };
71765
71759
  }
71766
71760
  }
71767
- const Kl = {
71761
+ const Xl = {
71768
71762
  name: "MapInitial",
71769
71763
  props: {
71770
71764
  token: {
@@ -71817,8 +71811,8 @@ const Kl = {
71817
71811
  methods: {
71818
71812
  async initOnlineMap() {
71819
71813
  var e;
71820
- (e = this.map) == null || e.remove(), this.map = void 0, this.helper = new ql(this.token), _e.accessToken = "pk.eyJ1IjoibmVhdGNoZW5oZW5nIiwiYSI6ImNsdXM3cnBmODBsemgycW1vaXc1bjV6bXMifQ.w6fqHGRbhNhLvm0LnX4ZVw";
71821
- const o = new _e.Map({
71814
+ (e = this.map) == null || e.remove(), this.map = void 0, this.helper = new Zl(this.token), ke.accessToken = "pk.eyJ1IjoibmVhdGNoZW5oZW5nIiwiYSI6ImNsdXM3cnBmODBsemgycW1vaXc1bjV6bXMifQ.w6fqHGRbhNhLvm0LnX4ZVw";
71815
+ const o = new ke.Map({
71822
71816
  container: "map",
71823
71817
  // style: 'mapbox://styles/neatchenheng/cmd894dwn036m01rf7anc0k0d', //light
71824
71818
  // style: 'mapbox://styles/neatchenheng/cmdqwez32005b01re2w0k3zk4', // dark
@@ -71844,7 +71838,7 @@ const Kl = {
71844
71838
  },
71845
71839
  addScaleControl() {
71846
71840
  var e;
71847
- this.map.addControl(new _e.ScaleControl({ maxWidth: 120, unit: "nautical" }), "bottom-left");
71841
+ this.map.addControl(new ke.ScaleControl({ maxWidth: 120, unit: "nautical" }), "bottom-left");
71848
71842
  const o = (e = document.getElementsByClassName("mapboxgl-ctrl-scale")) == null ? void 0 : e[0];
71849
71843
  o && (o.className = "mapboxgl-ctrl-scale " + this.mapFeather);
71850
71844
  },
@@ -71857,16 +71851,16 @@ const Kl = {
71857
71851
  this.zoom = this.zoom <= 2 ? 1 : this.zoom - 1, (o = this.map) == null || o.zoomOut(this.zoom);
71858
71852
  }
71859
71853
  }
71860
- }, Ql = { class: "mapbox-initial-gl4" }, Jl = { class: "v-btn--variant-elevated rounded" }, $l = { class: "zoom" };
71861
- function es(o, e, t, i, a, r) {
71854
+ }, ql = { class: "mapbox-initial-gl4" }, Kl = { class: "v-btn--variant-elevated rounded" }, Ql = { class: "zoom" };
71855
+ function Jl(o, e, t, i, a, r) {
71862
71856
  const s = k("VBtn");
71863
- return y(), T("div", Ql, [
71857
+ return y(), T("div", ql, [
71864
71858
  e[2] || (e[2] = l("div", { id: "map" }, null, -1)),
71865
71859
  l("div", {
71866
71860
  class: "menu-bar-box transition px-1 rounded d-flex flex-column",
71867
71861
  style: oe({ top: t.top + 268 + "px", right: a.right + "px" })
71868
71862
  }, [
71869
- l("div", Jl, [
71863
+ l("div", Kl, [
71870
71864
  h(s, {
71871
71865
  "min-width": "32",
71872
71866
  width: "32",
@@ -71880,7 +71874,7 @@ function es(o, e, t, i, a, r) {
71880
71874
  _: 1,
71881
71875
  __: [0]
71882
71876
  }, 8, ["onClick"]),
71883
- l("div", $l, x(a.zoom), 1),
71877
+ l("div", Ql, w(a.zoom), 1),
71884
71878
  h(s, {
71885
71879
  "min-width": "32",
71886
71880
  width: "32",
@@ -71898,20 +71892,20 @@ function es(o, e, t, i, a, r) {
71898
71892
  ], 4)
71899
71893
  ]);
71900
71894
  }
71901
- const ts = /* @__PURE__ */ q(Kl, [["render", es]]), ps = {
71895
+ const $l = /* @__PURE__ */ q(Xl, [["render", Jl]]), hs = {
71902
71896
  install(o) {
71903
- o.component("MapInitial", ts), o.component("MapboxGL", Xl), o.component("TropicalGL", Bo), o.component("LatLngGL", Oo), o.component("DateTimePicker", ao);
71897
+ o.component("MapInitial", $l), o.component("MapboxGL", Yl), o.component("TropicalGL", Bo), o.component("LatLngGL", Oo), o.component("DateTimePicker", io);
71904
71898
  }
71905
71899
  };
71906
71900
  export {
71907
- ao as DateTimePicker,
71901
+ io as DateTimePicker,
71908
71902
  Oo as LatLngGL,
71909
- ts as MapInitial,
71910
- Xl as MapboxGL,
71911
- ps as MapboxGLPlugin,
71912
- be as ParticleSchema,
71903
+ $l as MapInitial,
71904
+ Yl as MapboxGL,
71905
+ hs as MapboxGLPlugin,
71906
+ ye as ParticleSchema,
71913
71907
  Bo as TropicalGL,
71914
- oo as Viewport,
71908
+ ao as Viewport,
71915
71909
  je as WebGL,
71916
71910
  se as WebGLSchema
71917
71911
  };