@idmwx/idmui-gl4 1.1.7 → 1.1.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -3,9 +3,9 @@ var $a = (t, e, o) => e in t ? Xa(t, e, { enumerable: !0, configurable: !0, writ
3
3
  var me = (t, e, o) => ($a(t, typeof e != "symbol" ? e + "" : e, o), o);
4
4
  import Se from "axios";
5
5
  import { useTheme as ze } from "vuetify";
6
- import { openBlock as y, createElementBlock as S, resolveComponent as x, withDirectives as Ne, createBlock as A, withCtx as u, createVNode as d, withModifiers as ro, createElementVNode as l, vShow as Fe, normalizeClass as We, toDisplayString as h, createTextVNode as N, Fragment as be, renderList as we, createCommentVNode as O, mergeProps as B, normalizeStyle as ie } from "vue";
6
+ import { openBlock as y, createElementBlock as S, resolveComponent as x, createBlock as D, withCtx as u, createVNode as d, withModifiers as ro, createElementVNode as l, createCommentVNode as O, normalizeClass as We, toDisplayString as h, createTextVNode as N, Fragment as be, renderList as we, withDirectives as He, vShow as Ue, mergeProps as B, normalizeStyle as ie } from "vue";
7
7
  import ve from "mapbox-gl";
8
- import { LngLatHelper as G, TropicalHelper as Va, LaneHelper as Ue } from "@idm-plugin/geo";
8
+ import { LngLatHelper as G, TropicalHelper as Va, LaneHelper as Fe } from "@idm-plugin/geo";
9
9
  import M from "moment";
10
10
  import { Meteo2Assist as oo, TidesAssist as qa } from "@idm-plugin/meteo";
11
11
  import * as io from "echarts";
@@ -366,31 +366,34 @@ const mi = {
366
366
  lineLayer: "alert-zone-line-layer",
367
367
  lineLabelLayer: "alert-zone-line-label-layer",
368
368
  pointLayer: "alert-zone-point-layer",
369
- showZone: !1,
370
- form: {}
369
+ showMakerInfo: !1,
370
+ form: {},
371
+ marker: null
371
372
  };
372
373
  },
373
374
  watch: {
374
375
  zone: {
375
376
  handler() {
376
377
  var t, e, o, i, a, r;
377
- this.zone ? (this.handleRender(), (t = this.map) == null || t.on("click", [this.polygonLabelLayer, this.lineLabelLayer, this.pointLayer], this.handleClick), (e = this.map) == null || e.on("mousemove", [this.pointLayer], this.handleHover), (o = this.map) == null || o.on("mouseleave", [this.pointLayer], this.handleLeave)) : (this.handleClear(), (i = this.map) == null || i.off("click", [this.polygonLabelLayer, this.lineLabelLayer, this.pointLayer], this.handleClick), (a = this.map) == null || a.off("mousemove", [this.polygonLabelLayer, this.lineLabelLayer, this.pointLayer], this.handleHover), (r = this.map) == null || r.off("mouseleave", [this.polygonLabelLayer, this.lineLabelLayer, this.pointLayer], this.handleLeave));
378
+ this.zone ? (this.handleRender(), (t = this.map) == null || t.on("click", [this.polygonLabelLayer, this.lineLabelLayer, this.pointLayer], this.handleClick), (e = this.map) == null || e.on("mousemove", [this.polygonLabelLayer, this.lineLabelLayer, this.pointLayer], this.handleHover), (o = this.map) == null || o.on("mouseleave", [this.polygonLabelLayer, this.lineLabelLayer, this.pointLayer], this.handleLeave)) : (this.handleClear(), (i = this.map) == null || i.off("click", [this.polygonLabelLayer, this.lineLabelLayer, this.pointLayer], this.handleClick), (a = this.map) == null || a.off("mousemove", [this.polygonLabelLayer, this.lineLabelLayer, this.pointLayer], this.handleHover), (r = this.map) == null || r.off("mouseleave", [this.polygonLabelLayer, this.lineLabelLayer, this.pointLayer], this.handleLeave));
378
379
  },
379
380
  immediate: !0
380
381
  }
381
382
  },
382
383
  methods: {
383
384
  handleClick(t) {
384
- var i;
385
- const e = t.features[0], o = (i = this.zone) == null ? void 0 : i.features.filter((a) => {
386
- var r;
387
- return a.properties.id === ((r = e == null ? void 0 : e.properties) == null ? void 0 : r.id);
385
+ var i, a, r;
386
+ const e = t.features[0], o = (a = (i = this.zone) == null ? void 0 : i.features) == null ? void 0 : a.filter((s) => {
387
+ var c, n;
388
+ return ((c = s.properties) == null ? void 0 : c.id) === ((n = e == null ? void 0 : e.properties) == null ? void 0 : n.id);
388
389
  })[0];
389
- if (o) {
390
- this.showZone = !0, this.form = { ...o.properties };
391
- const a = document.getElementById("idm-gl4-zone-info");
392
- this.marker ? this.marker.setLngLat([t.lngLat.lng, t.lngLat.lat]) : this.marker = new ve.Marker(a).setLngLat([t.lngLat.lng, t.lngLat.lat]).setOffset([0, 0]).addTo(this.map);
393
- }
390
+ o && (this.showMakerInfo = !0, this.form = { ...o.properties }, (r = this.marker) == null || r.remove(), this.$nextTick(() => {
391
+ var n, g;
392
+ const s = (n = document.getElementById("idm-gl4-zone-info")) == null ? void 0 : n.cloneNode(!0), c = (g = s == null ? void 0 : s.children[1]) == null ? void 0 : g.children[0];
393
+ c && (c.onclick = () => {
394
+ this.handleRemoveMarker();
395
+ }), this.marker = new ve.Marker(s).setLngLat([t.lngLat.lng, t.lngLat.lat]).setOffset([230, 0]).addTo(this.map);
396
+ }));
394
397
  },
395
398
  handleRender() {
396
399
  var t;
@@ -481,12 +484,17 @@ const mi = {
481
484
  },
482
485
  handleLeave() {
483
486
  this.map.getCanvas().style.cursor = "grab";
487
+ },
488
+ handleRemoveMarker() {
489
+ var t;
490
+ this.showMakerInfo = !1, (t = this.marker) == null || t.remove();
484
491
  }
485
492
  }
486
493
  }, di = ["innerHTML"];
487
494
  function hi(t, e, o, i, a, r) {
488
495
  const s = x("VBtn"), c = x("v-card-text"), n = x("v-card");
489
- return Ne((y(), A(n, {
496
+ return a.showMakerInfo ? (y(), D(n, {
497
+ key: 0,
490
498
  class: "scroll",
491
499
  id: "idm-gl4-zone-info"
492
500
  }, {
@@ -500,14 +508,14 @@ function hi(t, e, o, i, a, r) {
500
508
  density: "compact",
501
509
  variant: "plain",
502
510
  class: "close",
503
- onClick: e[0] || (e[0] = ro((p) => a.showZone = !1, ["stop"]))
511
+ onClick: ro(r.handleRemoveMarker, ["stop"])
504
512
  }, {
505
- default: u(() => e[1] || (e[1] = [
513
+ default: u(() => e[0] || (e[0] = [
506
514
  l("i", { class: "iconfont icon-close text-label text-h4" }, null, -1)
507
515
  ])),
508
516
  _: 1,
509
- __: [1]
510
- }),
517
+ __: [0]
518
+ }, 8, ["onClick"]),
511
519
  l("div", {
512
520
  class: "rich-context",
513
521
  innerHTML: (g = a.form) == null ? void 0 : g.name
@@ -518,9 +526,7 @@ function hi(t, e, o, i, a, r) {
518
526
  })
519
527
  ]),
520
528
  _: 1
521
- }, 512)), [
522
- [Fe, a.showZone]
523
- ]);
529
+ })) : O("", !0);
524
530
  }
525
531
  const pi = /* @__PURE__ */ Y(mi, [["render", hi]]);
526
532
  const ui = {
@@ -1349,8 +1355,6 @@ const ui = {
1349
1355
  { label: "Swell", key: "weather.swell", unit: "m" },
1350
1356
  { label: "Current", key: "weather.current", unit: "kts" }
1351
1357
  ],
1352
- tideData: {},
1353
- tideTableData: [],
1354
1358
  currentIndex: 0,
1355
1359
  loading: !1,
1356
1360
  interval: 6,
@@ -1419,13 +1423,13 @@ const ui = {
1419
1423
  portId: {
1420
1424
  handler() {
1421
1425
  var t, e, o;
1422
- this.portId && (this.$emit("closeAllDetail", { ports: !0 }), (o = (e = (t = this.$parent) == null ? void 0 : t.$parent) == null ? void 0 : e.$refs.idmIideStation) == null || o.handleCloseDetail(), this.fetchMeteoData());
1426
+ this.portId && (this.$emit("closeAllDetail"), (o = (e = (t = this.$parent) == null ? void 0 : t.$parent) == null ? void 0 : e.$refs.idmIideStation) == null || o.handleCloseDetail(), this.fetchMeteoData());
1423
1427
  },
1424
1428
  immediate: !0
1425
1429
  },
1426
1430
  currentIndex: {
1427
1431
  handler() {
1428
- this.initTableData(this.meteoData), this.initTideTableData();
1432
+ this.initTableData(this.meteoData), this.showTideDetail && this.initTideTableData(this.tideData);
1429
1433
  }
1430
1434
  },
1431
1435
  theme: {
@@ -1488,14 +1492,21 @@ const ui = {
1488
1492
  { label: "Swell", key: "weather.swell", unit: "m" },
1489
1493
  { label: "Current", key: "weather.current", unit: "kts" }
1490
1494
  ], (o = (e = this.dateList) == null ? void 0 : e[this.currentIndex]) == null || o.dateTimeList.forEach((i, a) => {
1491
- var c, n, g, p, f, w, L, _, P, b, D, I, C, v, k, T, z, R, V, K, X, Z, J, ee, Q, re, de, pe, se, $, ae, ue, ne, F, ce, xe, Le, Pe;
1495
+ var c, n, g, p, f, w, P, z, L, b, A, I, C, v, _, T, k, R, V, K, X, Z, J, ee, Q, re, de, pe, se, $, ae, ue, ne, F, ce, xe, Le, Pe;
1492
1496
  let r = {};
1493
1497
  const s = ((c = oo.pickHourly(t, M(i))) == null ? void 0 : c[0]) || {};
1494
- r.utc = s.utc, r.lat = t.lat, r.lng = t.lng, r.weatherUrl = (n = s.weather) == null ? void 0 : n.url, r.temp = this.computeRoundPrecision((g = s == null ? void 0 : s.weather) == null ? void 0 : g.temp, 0) ?? "-", r.precipProbability = this.computeRoundPrecision((f = (p = s == null ? void 0 : s.weather) == null ? void 0 : p.precip) == null ? void 0 : f.probability, 0) ?? "-", r.precip1h = this.computeRoundPrecision((L = (w = s == null ? void 0 : s.weather) == null ? void 0 : w.precip) == null ? void 0 : L.sum, 0) ?? "-", r.visibility = this.computeRoundPrecision((_ = s == null ? void 0 : s.weather) == null ? void 0 : _.visibility, 0) ?? "-", r.windSpeed = this.computeRoundPrecision((b = (P = s == null ? void 0 : s.weather) == null ? void 0 : P.wind) == null ? void 0 : b.kts, 1) ?? "-", r.windDir = (I = (D = s == null ? void 0 : s.weather) == null ? void 0 : D.wind) == null ? void 0 : I.direction, r.windLevel = this.computeRoundPrecision((v = (C = s == null ? void 0 : s.weather) == null ? void 0 : C.wind) == null ? void 0 : v.scale, 0) ?? "-", r.windGust = this.computeRoundPrecision((T = (k = s == null ? void 0 : s.weather) == null ? void 0 : k.wind) == null ? void 0 : T.gusts, 1) ?? "-", r.sigwaveHeight = this.computeRoundPrecision((R = (z = s == null ? void 0 : s.wave) == null ? void 0 : z.sig) == null ? void 0 : R.height, 1) ?? "-", r.sigwaveDir = (K = (V = s == null ? void 0 : s.wave) == null ? void 0 : V.sig) == null ? void 0 : K.direction, r.sigwavePeriod = this.computeRoundPrecision((Z = (X = s == null ? void 0 : s.wave) == null ? void 0 : X.sig) == null ? void 0 : Z.period, 1) ?? "-", r.windwaveHeight = this.computeRoundPrecision((ee = (J = s == null ? void 0 : s.wave) == null ? void 0 : J.wd) == null ? void 0 : ee.height, 1) ?? "-", r.windwaveDir = (re = (Q = s == null ? void 0 : s.wave) == null ? void 0 : Q.wd) == null ? void 0 : re.direction, r.windwavePeriod = this.computeRoundPrecision((pe = (de = s == null ? void 0 : s.wave) == null ? void 0 : de.wd) == null ? void 0 : pe.period, 1) ?? "-", r.swellHeight = this.computeRoundPrecision(($ = (se = s == null ? void 0 : s.wave) == null ? void 0 : se.swell) == null ? void 0 : $.height, 1) ?? "-", r.swellDir = (ue = (ae = s == null ? void 0 : s.wave) == null ? void 0 : ae.swell) == null ? void 0 : ue.direction, r.swellPeriod = this.computeRoundPrecision((F = (ne = s == null ? void 0 : s.wave) == null ? void 0 : ne.swell) == null ? void 0 : F.period, 1) ?? "-", r.currentSpeed = this.computeRoundPrecision((ce = s == null ? void 0 : s.current) == null ? void 0 : ce.speed, 1) ?? "-", r.currentDir = (xe = s == null ? void 0 : s.current) == null ? void 0 : xe.direction, r.currentSpeed = this.computeRoundPrecision((Le = s == null ? void 0 : s.current) == null ? void 0 : Le.speed, 1) ?? "-", r.seaLevel = this.computeRoundPrecision(s == null ? void 0 : s.height, 1) ?? "-", r.seaTemp = this.computeRoundPrecision(s == null ? void 0 : s.sst, 0) ?? "-", r.weatherUrls = (Pe = s == null ? void 0 : s.weather) == null ? void 0 : Pe.url, this.tableData[0][`value${a}`] = a * this.interval > 10 ? a * this.interval : "0" + a * this.interval, this.tableData[1][`value${a}`] = r.weatherUrl, this.tableData[2][`value${a}`] = r.temp, this.tableData[3][`value${a}`] = r.precip1h, this.tableData[4][`value${a}`] = r.visibility, this.tableData[5][`value${a}`] = r.windSpeed, this.tableData[6][`value${a}`] = r.sigwaveHeight, this.tableData[7][`value${a}`] = r.swellHeight, this.tableData[8][`value${a}`] = r.currentSpeed;
1498
+ r.utc = s.utc, r.lat = t.lat, r.lng = t.lng, r.weatherUrl = (n = s.weather) == null ? void 0 : n.url, r.temp = this.computeRoundPrecision((g = s == null ? void 0 : s.weather) == null ? void 0 : g.temp, 0) ?? "-", r.precipProbability = this.computeRoundPrecision((f = (p = s == null ? void 0 : s.weather) == null ? void 0 : p.precip) == null ? void 0 : f.probability, 0) ?? "-", r.precip1h = this.computeRoundPrecision((P = (w = s == null ? void 0 : s.weather) == null ? void 0 : w.precip) == null ? void 0 : P.sum, 0) ?? "-", r.visibility = this.computeRoundPrecision((z = s == null ? void 0 : s.weather) == null ? void 0 : z.visibility, 0) ?? "-", r.windSpeed = this.computeRoundPrecision((b = (L = s == null ? void 0 : s.weather) == null ? void 0 : L.wind) == null ? void 0 : b.kts, 1) ?? "-", r.windDir = (I = (A = s == null ? void 0 : s.weather) == null ? void 0 : A.wind) == null ? void 0 : I.direction, r.windLevel = this.computeRoundPrecision((v = (C = s == null ? void 0 : s.weather) == null ? void 0 : C.wind) == null ? void 0 : v.scale, 0) ?? "-", r.windGust = this.computeRoundPrecision((T = (_ = s == null ? void 0 : s.weather) == null ? void 0 : _.wind) == null ? void 0 : T.gusts, 1) ?? "-", r.sigwaveHeight = this.computeRoundPrecision((R = (k = s == null ? void 0 : s.wave) == null ? void 0 : k.sig) == null ? void 0 : R.height, 1) ?? "-", r.sigwaveDir = (K = (V = s == null ? void 0 : s.wave) == null ? void 0 : V.sig) == null ? void 0 : K.direction, r.sigwavePeriod = this.computeRoundPrecision((Z = (X = s == null ? void 0 : s.wave) == null ? void 0 : X.sig) == null ? void 0 : Z.period, 1) ?? "-", r.windwaveHeight = this.computeRoundPrecision((ee = (J = s == null ? void 0 : s.wave) == null ? void 0 : J.wd) == null ? void 0 : ee.height, 1) ?? "-", r.windwaveDir = (re = (Q = s == null ? void 0 : s.wave) == null ? void 0 : Q.wd) == null ? void 0 : re.direction, r.windwavePeriod = this.computeRoundPrecision((pe = (de = s == null ? void 0 : s.wave) == null ? void 0 : de.wd) == null ? void 0 : pe.period, 1) ?? "-", r.swellHeight = this.computeRoundPrecision(($ = (se = s == null ? void 0 : s.wave) == null ? void 0 : se.swell) == null ? void 0 : $.height, 1) ?? "-", r.swellDir = (ue = (ae = s == null ? void 0 : s.wave) == null ? void 0 : ae.swell) == null ? void 0 : ue.direction, r.swellPeriod = this.computeRoundPrecision((F = (ne = s == null ? void 0 : s.wave) == null ? void 0 : ne.swell) == null ? void 0 : F.period, 1) ?? "-", r.currentSpeed = this.computeRoundPrecision((ce = s == null ? void 0 : s.current) == null ? void 0 : ce.speed, 1) ?? "-", r.currentDir = (xe = s == null ? void 0 : s.current) == null ? void 0 : xe.direction, r.currentSpeed = this.computeRoundPrecision((Le = s == null ? void 0 : s.current) == null ? void 0 : Le.speed, 1) ?? "-", r.seaLevel = this.computeRoundPrecision(s == null ? void 0 : s.height, 1) ?? "-", r.seaTemp = this.computeRoundPrecision(s == null ? void 0 : s.sst, 0) ?? "-", r.weatherUrls = (Pe = s == null ? void 0 : s.weather) == null ? void 0 : Pe.url, this.tableData[0][`value${a}`] = a * this.interval > 10 ? a * this.interval : "0" + a * this.interval, this.tableData[1][`value${a}`] = r.weatherUrl, this.tableData[2][`value${a}`] = r.temp, this.tableData[3][`value${a}`] = r.precip1h, this.tableData[4][`value${a}`] = r.visibility, this.tableData[5][`value${a}`] = r.windSpeed, this.tableData[6][`value${a}`] = r.sigwaveHeight, this.tableData[7][`value${a}`] = r.swellHeight, this.tableData[8][`value${a}`] = r.currentSpeed;
1495
1499
  });
1496
1500
  },
1497
1501
  handleTide() {
1498
- this.showTideDetail = !0, this.showPortDetail = !1, this.fetchTidesData();
1502
+ this.showTideDetail = !0, this.showPortDetail = !1, this.$nextTick(() => {
1503
+ Object.keys(this.tideData).length === 0 && this.fetchTidesData();
1504
+ const t = this.$refs.scrollDom;
1505
+ t && t.scrollTo({
1506
+ top: t.scrollHeight - t.clientHeight
1507
+ // behavior: 'smooth'
1508
+ });
1509
+ });
1499
1510
  },
1500
1511
  async fetchTidesData() {
1501
1512
  var o, i, a, r;
@@ -1525,14 +1536,7 @@ const ui = {
1525
1536
  height: []
1526
1537
  }, (t = this.tideTableData) == null || t.forEach((e) => {
1527
1538
  this.xDate.push(this.computeHourLT(e.date, this.port)), this.echartData.height.push([this.computeHourLT(e.date, this.port), e.height ?? void 0, "m"]);
1528
- }), this.$nextTick(() => {
1529
- this.initEchart();
1530
- const e = this.$refs.scrollDom;
1531
- e && e.scrollTo({
1532
- top: e.scrollHeight - e.clientHeight
1533
- // behavior: 'smooth'
1534
- });
1535
- });
1539
+ }), this.initEchart();
1536
1540
  },
1537
1541
  initEchart() {
1538
1542
  io.dispose(this.$refs.tideEchart.style);
@@ -1677,18 +1681,18 @@ const ui = {
1677
1681
  }, ur = { class: "px-1 text-center" }, gr = { class: "px-1 text-center" }, fr = { class: "px-1 text-center" };
1678
1682
  function yr(t, e, o, i, a, r) {
1679
1683
  const s = x("VBtn"), c = x("VCardTitle"), n = x("VDivider"), g = x("VIcon"), p = x("VBtnToggle"), f = x("VCard");
1680
- return y(), A(f, { class: "port-detail-container d-flex flex-column justify-start align-center" }, {
1684
+ return y(), D(f, { class: "port-detail-container d-flex flex-column justify-start align-center" }, {
1681
1685
  default: u(() => {
1682
- var w, L, _, P;
1686
+ var w, P, z, L;
1683
1687
  return [
1684
1688
  d(c, { class: "w-100" }, {
1685
1689
  default: u(() => {
1686
- var b, D, I, C, v;
1690
+ var b, A, I, C, v;
1687
1691
  return [
1688
1692
  l("div", gi, [
1689
1693
  l("div", fi, [
1690
1694
  l("div", {
1691
- class: We(["fi mr-2 rounded elevation-4", `fi-${(b = o.port) != null && b.cntLoCode ? (I = (D = o.port) == null ? void 0 : D.cntLoCode) == null ? void 0 : I.toLowerCase() : "xx"}`]),
1695
+ class: We(["fi mr-2 rounded elevation-4", `fi-${(b = o.port) != null && b.cntLoCode ? (I = (A = o.port) == null ? void 0 : A.cntLoCode) == null ? void 0 : I.toLowerCase() : "xx"}`]),
1692
1696
  style: { width: "36px", height: "24px" }
1693
1697
  }, null, 2),
1694
1698
  l("div", null, h((C = o.port) == null ? void 0 : C.name), 1)
@@ -1721,9 +1725,9 @@ function yr(t, e, o, i, a, r) {
1721
1725
  d(n, { class: "w-100" }),
1722
1726
  l("div", bi, [
1723
1727
  o.followList.some((b) => {
1724
- var D;
1725
- return ((D = b.port) == null ? void 0 : D.id) === o.portId;
1726
- }) ? (y(), A(s, {
1728
+ var A;
1729
+ return ((A = b.port) == null ? void 0 : A.id) === o.portId;
1730
+ }) ? (y(), D(s, {
1727
1731
  key: 0,
1728
1732
  class: "text-none text-body-1 rounded flex-1-1-0",
1729
1733
  variant: "tonal",
@@ -1739,7 +1743,7 @@ function yr(t, e, o, i, a, r) {
1739
1743
  N(" " + h(t.$t("actions.unfollow")), 1)
1740
1744
  ]),
1741
1745
  _: 1
1742
- }, 8, ["onClick"])) : (y(), A(s, {
1746
+ }, 8, ["onClick"])) : (y(), D(s, {
1743
1747
  key: 1,
1744
1748
  class: "text-none text-body-1 rounded flex-1-1-0",
1745
1749
  variant: "tonal",
@@ -1782,11 +1786,11 @@ function yr(t, e, o, i, a, r) {
1782
1786
  l("div", Li, [
1783
1787
  l("div", Pi, [
1784
1788
  l("div", Ci, h(t.$t("port.region")), 1),
1785
- l("div", Ti, h(((w = o.port) == null ? void 0 : w.region) ?? ((L = o.port) == null ? void 0 : L.city) ?? "-"), 1)
1789
+ l("div", Ti, h(((w = o.port) == null ? void 0 : w.region) ?? ((P = o.port) == null ? void 0 : P.city) ?? "-"), 1)
1786
1790
  ]),
1787
1791
  l("div", Si, [
1788
1792
  l("div", Ii, h(t.$t("port.position")), 1),
1789
- l("div", Mi, h(r.computeLng((_ = o.port) == null ? void 0 : _.lng) ?? "-") + " , " + h(r.computeLat((P = o.port) == null ? void 0 : P.lat) ?? "-"), 1)
1793
+ l("div", Mi, h(r.computeLng((z = o.port) == null ? void 0 : z.lng) ?? "-") + " , " + h(r.computeLat((L = o.port) == null ? void 0 : L.lat) ?? "-"), 1)
1790
1794
  ]),
1791
1795
  l("div", Ai, [
1792
1796
  l("div", Di, h(t.$t("time.localTime")), 1),
@@ -1818,7 +1822,7 @@ function yr(t, e, o, i, a, r) {
1818
1822
  rounded: "1"
1819
1823
  }, {
1820
1824
  default: u(() => [
1821
- (y(!0), S(be, null, we(r.dateList, (b) => (y(), A(s, {
1825
+ (y(!0), S(be, null, we(r.dateList, (b) => (y(), D(s, {
1822
1826
  class: "text-none text-body-1 rounded bg-none flex-1-1-0",
1823
1827
  density: "compact",
1824
1828
  color: "primary",
@@ -1886,14 +1890,14 @@ function yr(t, e, o, i, a, r) {
1886
1890
  l("div", null, h(t.$t("tide.tideTimes")), 1)
1887
1891
  ]),
1888
1892
  l("div", sr, [
1889
- a.showTideDetail ? (y(), A(s, {
1893
+ a.showTideDetail ? (y(), D(s, {
1890
1894
  key: 0,
1891
1895
  icon: "mdi-eye-off-outline",
1892
1896
  density: "compact",
1893
1897
  variant: "plain",
1894
1898
  size: "small",
1895
1899
  onClick: e[1] || (e[1] = (b) => a.showTideDetail = !1)
1896
- })) : (y(), A(s, {
1900
+ })) : (y(), D(s, {
1897
1901
  key: 1,
1898
1902
  icon: "mdi-eye-outline",
1899
1903
  density: "compact",
@@ -1912,9 +1916,9 @@ function yr(t, e, o, i, a, r) {
1912
1916
  l("th", hr, h(t.$t("time.time")) + " ( LT ) ", 1),
1913
1917
  l("th", pr, h(t.$t("tide.height")) + " ( m )", 1)
1914
1918
  ]),
1915
- (y(!0), S(be, null, we(a.tideTableData, (b, D) => {
1919
+ (y(!0), S(be, null, we(a.tideTableData, (b, A) => {
1916
1920
  var I;
1917
- return y(), S("tr", { key: D }, [
1921
+ return y(), S("tr", { key: A }, [
1918
1922
  l("td", ur, h(t.$t(`tide.${(I = b == null ? void 0 : b.type) == null ? void 0 : I.toLowerCase()}`)) + " " + h(t.$t("tide.tide")), 1),
1919
1923
  l("td", gr, h(r.computeHourLT(b == null ? void 0 : b.date, o.port)), 1),
1920
1924
  l("td", fr, h((b == null ? void 0 : b.height) ?? "-") + " m", 1)
@@ -1930,7 +1934,7 @@ function yr(t, e, o, i, a, r) {
1930
1934
  _: 1
1931
1935
  });
1932
1936
  }
1933
- const lo = /* @__PURE__ */ Y(ui, [["render", yr], ["__scopeId", "data-v-07898ee1"]]);
1937
+ const lo = /* @__PURE__ */ Y(ui, [["render", yr], ["__scopeId", "data-v-6662019c"]]);
1934
1938
  const br = {
1935
1939
  name: "IdmPort",
1936
1940
  components: {
@@ -1953,6 +1957,7 @@ const br = {
1953
1957
  setup() {
1954
1958
  return { Theme: ze() };
1955
1959
  },
1960
+ emits: ["closeAllDetail"],
1956
1961
  data() {
1957
1962
  return {
1958
1963
  source: "port-source",
@@ -2031,16 +2036,18 @@ const br = {
2031
2036
  this.portId = e.properties.id, e.properties.id && (this.port = e.properties, this.port.lng = e.geometry.coordinates[0], this.port.lat = e.geometry.coordinates[1], this.port.forecastModel = this.forecastModel, this.showDetail = !0);
2032
2037
  },
2033
2038
  handleHover(t) {
2039
+ var i, a;
2034
2040
  this.map.getCanvas().style.cursor = "pointer";
2035
2041
  const e = t.features[0];
2036
2042
  if (e.properties.id) {
2037
- this.showInfo = !0, this.hoverPort = e.properties;
2038
- const i = document.getElementById("idmPortInfo");
2039
- this.marker ? this.marker.setLngLat([t.lngLat.lng, t.lngLat.lat]) : this.marker = new ve.Marker(i).setLngLat([t.lngLat.lng, t.lngLat.lat]).setOffset([0, -70]).addTo(this.map);
2043
+ this.showInfo = !0, this.hoverPort = e.properties, (i = this.marker) == null || i.remove();
2044
+ const r = (a = document.getElementById("idmPortInfo")) == null ? void 0 : a.cloneNode(!0);
2045
+ this.marker = new ve.Marker(r).setLngLat([t.lngLat.lng, t.lngLat.lat]).setOffset([0, -70]).addTo(this.map);
2040
2046
  }
2041
2047
  },
2042
2048
  handleLeave() {
2043
- this.showInfo = !1, this.hoverPort = {}, this.map.getCanvas().style.cursor = "grab";
2049
+ var t;
2050
+ this.showInfo = !1, this.hoverPort = {}, (t = this.marker) == null || t.remove(), this.map.getCanvas().style.cursor = "grab";
2044
2051
  },
2045
2052
  handleCloseDetail() {
2046
2053
  this.showDetail = !1;
@@ -2050,7 +2057,7 @@ const br = {
2050
2057
  function _r(t, e, o, i, a, r) {
2051
2058
  const s = x("VCardText"), c = x("VCard"), n = x("PortDetail");
2052
2059
  return y(), S("div", null, [
2053
- Ne(d(c, {
2060
+ He(d(c, {
2054
2061
  id: "idmPortInfo",
2055
2062
  ref: "idmPortInfo"
2056
2063
  }, {
@@ -2063,7 +2070,7 @@ function _r(t, e, o, i, a, r) {
2063
2070
  l("span", null, h(a.hoverPort.name ?? "-"), 1)
2064
2071
  ]),
2065
2072
  l("div", vr, [
2066
- e[0] || (e[0] = l("label", { class: "pr-1" }, "LoCode : ", -1)),
2073
+ e[1] || (e[1] = l("label", { class: "pr-1" }, "LoCode : ", -1)),
2067
2074
  l("span", null, h(a.hoverPort.loCode ?? "-"), 1)
2068
2075
  ])
2069
2076
  ])
@@ -2073,18 +2080,19 @@ function _r(t, e, o, i, a, r) {
2073
2080
  ]),
2074
2081
  _: 1
2075
2082
  }, 512), [
2076
- [Fe, a.showInfo]
2083
+ [Ue, a.showInfo]
2077
2084
  ]),
2078
- a.showDetail ? (y(), A(n, B({
2085
+ a.showDetail ? (y(), D(n, B({
2079
2086
  key: 0,
2080
2087
  portId: a.portId,
2081
2088
  port: a.port,
2082
2089
  forecastModel: o.forecastModel,
2083
- onClose: r.handleCloseDetail
2090
+ onClose: r.handleCloseDetail,
2091
+ onCloseAllDetail: e[0] || (e[0] = (g) => t.$emit("closeAllDetail", { ports: !0 }))
2084
2092
  }, t.$attrs), null, 16, ["portId", "port", "forecastModel", "onClose"])) : O("", !0)
2085
2093
  ]);
2086
2094
  }
2087
- const kr = /* @__PURE__ */ Y(br, [["render", _r], ["__scopeId", "data-v-483cb63d"]]), zr = {
2095
+ const kr = /* @__PURE__ */ Y(br, [["render", _r], ["__scopeId", "data-v-c99525a1"]]), zr = {
2088
2096
  name: "IdmLoadLine",
2089
2097
  props: {
2090
2098
  map: {
@@ -2968,17 +2976,17 @@ const Yr = {
2968
2976
  }, Ll = { class: "px-1 text-center" }, Pl = { class: "px-1 text-center" }, Cl = { class: "px-1 text-center" };
2969
2977
  function Tl(t, e, o, i, a, r) {
2970
2978
  const s = x("VBtn"), c = x("v-card-title"), n = x("v-divider"), g = x("VBtnToggle"), p = x("v-card");
2971
- return y(), A(p, { class: "tide-detail-container d-flex flex-column justify-start align-center" }, {
2979
+ return y(), D(p, { class: "tide-detail-container d-flex flex-column justify-start align-center" }, {
2972
2980
  default: u(() => {
2973
- var f, w, L, _;
2981
+ var f, w, P, z;
2974
2982
  return [
2975
2983
  d(c, { class: "w-100" }, {
2976
2984
  default: u(() => {
2977
- var P;
2985
+ var L;
2978
2986
  return [
2979
2987
  l("div", Kr, [
2980
2988
  l("div", Xr, [
2981
- l("div", null, h((P = o.station) == null ? void 0 : P.name), 1)
2989
+ l("div", null, h((L = o.station) == null ? void 0 : L.name), 1)
2982
2990
  ]),
2983
2991
  d(s, {
2984
2992
  icon: "",
@@ -3022,7 +3030,7 @@ function Tl(t, e, o, i, a, r) {
3022
3030
  ]),
3023
3031
  l("div", nl, [
3024
3032
  l("div", cl, h(t.$t("tide.position")), 1),
3025
- l("div", ml, h(r.computeLng((L = o.station) == null ? void 0 : L.lng) ?? "-") + " , " + h(r.computeLat((_ = o.station) == null ? void 0 : _.lat) ?? "-"), 1)
3033
+ l("div", ml, h(r.computeLng((P = o.station) == null ? void 0 : P.lng) ?? "-") + " , " + h(r.computeLat((z = o.station) == null ? void 0 : z.lat) ?? "-"), 1)
3026
3034
  ]),
3027
3035
  l("div", dl, [
3028
3036
  l("div", hl, h(t.$t("time.localTime")), 1),
@@ -3045,7 +3053,7 @@ function Tl(t, e, o, i, a, r) {
3045
3053
  l("div", wl, [
3046
3054
  d(g, {
3047
3055
  modelValue: a.currentIndex,
3048
- "onUpdate:modelValue": e[0] || (e[0] = (P) => a.currentIndex = P),
3056
+ "onUpdate:modelValue": e[0] || (e[0] = (L) => a.currentIndex = L),
3049
3057
  class: "w-100 gray-card rounded d-flex justify-space-around align-center ga-0 px-1 mb-4",
3050
3058
  density: "compact",
3051
3059
  group: "",
@@ -3054,15 +3062,15 @@ function Tl(t, e, o, i, a, r) {
3054
3062
  rounded: "1"
3055
3063
  }, {
3056
3064
  default: u(() => [
3057
- (y(!0), S(be, null, we(r.dateList, (P) => (y(), A(s, {
3065
+ (y(!0), S(be, null, we(r.dateList, (L) => (y(), D(s, {
3058
3066
  class: "text-none text-body-1 rounded bg-none flex-1-1-0",
3059
3067
  density: "compact",
3060
3068
  color: "primary",
3061
3069
  height: "26",
3062
- value: P.index
3070
+ value: L.index
3063
3071
  }, {
3064
3072
  default: u(() => [
3065
- N(h(P.label), 1)
3073
+ N(h(L.label), 1)
3066
3074
  ]),
3067
3075
  _: 2
3068
3076
  }, 1032, ["value"]))), 256))
@@ -3077,12 +3085,12 @@ function Tl(t, e, o, i, a, r) {
3077
3085
  l("th", kl, h(t.$t("time.time")) + " ( LT )", 1),
3078
3086
  l("th", zl, h(t.$t("tide.height")) + " ( m )", 1)
3079
3087
  ]),
3080
- (y(!0), S(be, null, we(a.tideTableData, (P, b) => {
3081
- var D;
3088
+ (y(!0), S(be, null, we(a.tideTableData, (L, b) => {
3089
+ var A;
3082
3090
  return y(), S("tr", { key: b }, [
3083
- l("td", Ll, h(t.$t(`tide.${(D = P == null ? void 0 : P.type) == null ? void 0 : D.toLowerCase()}`)) + " " + h(t.$t("tide.tide")), 1),
3084
- l("td", Pl, h(r.computeHourLT(P == null ? void 0 : P.date, o.station)), 1),
3085
- l("td", Cl, h((P == null ? void 0 : P.height) ?? "-") + " m", 1)
3091
+ l("td", Ll, h(t.$t(`tide.${(A = L == null ? void 0 : L.type) == null ? void 0 : A.toLowerCase()}`)) + " " + h(t.$t("tide.tide")), 1),
3092
+ l("td", Pl, h(r.computeHourLT(L == null ? void 0 : L.date, o.station)), 1),
3093
+ l("td", Cl, h((L == null ? void 0 : L.height) ?? "-") + " m", 1)
3086
3094
  ]);
3087
3095
  }), 128))
3088
3096
  ])
@@ -3166,16 +3174,18 @@ const Il = {
3166
3174
  e.properties && (this.station = e.properties, this.station.name = this.locale === "en" ? e.properties.Location_EN : e.properties.Location_CN, this.station.lng = e.geometry.coordinates[0], this.station.lat = e.geometry.coordinates[1], this.showDetail = !0);
3167
3175
  },
3168
3176
  handleHover(t) {
3177
+ var o, i;
3169
3178
  this.map.getCanvas().style.cursor = "pointer";
3170
3179
  const e = t.features[0];
3171
3180
  if (e.properties) {
3172
- this.showInfo = !0, this.hoverStation = e.properties, this.hoverStation.name = this.locale === "en" ? e.properties.Location_EN : e.properties.Location_CN, this.hoverStation.lng = e.geometry.coordinates[0], this.hoverStation.lat = e.geometry.coordinates[1];
3173
- const o = document.getElementById("idmTidalInfo");
3174
- this.marker ? this.marker.setLngLat([t.lngLat.lng, t.lngLat.lat]) : this.marker = new ve.Marker(o).setLngLat([t.lngLat.lng, t.lngLat.lat]).setOffset([0, -60]).addTo(this.map);
3181
+ this.showInfo = !0, this.hoverStation = e.properties, this.hoverStation.name = this.locale === "en" ? e.properties.Location_EN : e.properties.Location_CN, this.hoverStation.lng = e.geometry.coordinates[0], this.hoverStation.lat = e.geometry.coordinates[1], (o = this.marker) == null || o.remove();
3182
+ const a = (i = document.getElementById("idmTidalInfo")) == null ? void 0 : i.cloneNode(!0);
3183
+ this.marker = new ve.Marker(a).setLngLat([t.lngLat.lng, t.lngLat.lat]).setOffset([0, -60]).addTo(this.map);
3175
3184
  }
3176
3185
  },
3177
3186
  handleLeave() {
3178
- this.showInfo = !1, this.hoverStation = {}, this.map.getCanvas().style.cursor = "grab";
3187
+ var t;
3188
+ this.showInfo = !1, this.hoverStation = {}, (t = this.marker) == null || t.remove(), this.map.getCanvas().style.cursor = "grab";
3179
3189
  },
3180
3190
  handleCloseDetail() {
3181
3191
  this.showDetail = !1;
@@ -3185,7 +3195,7 @@ const Il = {
3185
3195
  function Ol(t, e, o, i, a, r) {
3186
3196
  const s = x("v-card-text"), c = x("v-card"), n = x("TideDetail");
3187
3197
  return y(), S("div", null, [
3188
- Ne(d(c, { id: "idmTidalInfo" }, {
3198
+ He(d(c, { id: "idmTidalInfo" }, {
3189
3199
  default: u(() => [
3190
3200
  d(s, { class: "pr-8 text-body-1" }, {
3191
3201
  default: u(() => {
@@ -3204,16 +3214,16 @@ function Ol(t, e, o, i, a, r) {
3204
3214
  ]),
3205
3215
  _: 1
3206
3216
  }, 512), [
3207
- [Fe, a.showInfo]
3217
+ [Ue, a.showInfo]
3208
3218
  ]),
3209
- a.showDetail ? (y(), A(n, B({
3219
+ a.showDetail ? (y(), D(n, B({
3210
3220
  key: 0,
3211
3221
  station: a.station,
3212
3222
  onClose: r.handleCloseDetail
3213
3223
  }, t.$attrs), null, 16, ["station", "onClose"])) : O("", !0)
3214
3224
  ]);
3215
3225
  }
3216
- const Bl = /* @__PURE__ */ Y(Il, [["render", Ol], ["__scopeId", "data-v-697976e5"]]), El = {
3226
+ const Bl = /* @__PURE__ */ Y(Il, [["render", Ol], ["__scopeId", "data-v-0d88b6ab"]]), El = {
3217
3227
  name: "IdmIceAreas",
3218
3228
  props: {
3219
3229
  map: {
@@ -4239,6 +4249,7 @@ const Ul = {
4239
4249
  setup() {
4240
4250
  return { Theme: ze() };
4241
4251
  },
4252
+ emits: ["closeAllDetail"],
4242
4253
  data() {
4243
4254
  return {
4244
4255
  source: "follow-port-source",
@@ -4335,16 +4346,18 @@ const Ul = {
4335
4346
  this.portId = e.properties.id, e.properties.id && (this.port = e.properties, this.port.lng = e.geometry.coordinates[0], this.port.lat = e.geometry.coordinates[1], this.port.forecastModel = this.forecastModel, this.showDetail = !0);
4336
4347
  },
4337
4348
  handleHover(t) {
4349
+ var i, a;
4338
4350
  this.map.getCanvas().style.cursor = "pointer";
4339
4351
  const e = t.features[0];
4340
4352
  if (e.properties.id) {
4341
- this.showInfo = !0, this.hoverPort = e.properties;
4342
- const i = document.getElementById("idmFollowPortInfo");
4343
- this.marker ? this.marker.setLngLat([t.lngLat.lng, t.lngLat.lat]) : this.marker = new ve.Marker(i).setLngLat([t.lngLat.lng, t.lngLat.lat]).setOffset([0, -70]).addTo(this.map);
4353
+ this.showInfo = !0, this.hoverPort = e.properties, (i = this.marker) == null || i.remove();
4354
+ const r = (a = document.getElementById("idmFollowPortInfo")) == null ? void 0 : a.cloneNode(!0);
4355
+ this.marker = new ve.Marker(r).setLngLat([t.lngLat.lng, t.lngLat.lat]).setOffset([0, -70]).addTo(this.map);
4344
4356
  }
4345
4357
  },
4346
4358
  handleLeave() {
4347
- this.showInfo = !1, this.hoverPort = {}, this.map.getCanvas().style.cursor = "grab";
4359
+ var t;
4360
+ this.showInfo = !1, this.hoverPort = {}, (t = this.marker) == null || t.remove(), this.map.getCanvas().style.cursor = "grab";
4348
4361
  },
4349
4362
  handleCloseDetail() {
4350
4363
  this.showDetail = !1;
@@ -4354,7 +4367,7 @@ const Ul = {
4354
4367
  function Zl(t, e, o, i, a, r) {
4355
4368
  const s = x("v-card-text"), c = x("v-card"), n = x("PortDetail");
4356
4369
  return y(), S("div", null, [
4357
- Ne(d(c, {
4370
+ He(d(c, {
4358
4371
  id: "idmFollowPortInfo",
4359
4372
  ref: "idmFollowPortInfo"
4360
4373
  }, {
@@ -4367,7 +4380,7 @@ function Zl(t, e, o, i, a, r) {
4367
4380
  l("span", null, h(a.hoverPort.name ?? "-"), 1)
4368
4381
  ]),
4369
4382
  l("div", Vl, [
4370
- e[0] || (e[0] = l("label", { class: "pr-1" }, "LoCode : ", -1)),
4383
+ e[1] || (e[1] = l("label", { class: "pr-1" }, "LoCode : ", -1)),
4371
4384
  l("span", null, h(a.hoverPort.loCode ?? "-"), 1)
4372
4385
  ])
4373
4386
  ])
@@ -4377,19 +4390,20 @@ function Zl(t, e, o, i, a, r) {
4377
4390
  ]),
4378
4391
  _: 1
4379
4392
  }, 512), [
4380
- [Fe, a.showInfo]
4393
+ [Ue, a.showInfo]
4381
4394
  ]),
4382
- a.showDetail ? (y(), A(n, B({
4395
+ a.showDetail ? (y(), D(n, B({
4383
4396
  key: 0,
4384
4397
  portId: a.portId,
4385
4398
  port: a.port,
4386
4399
  forecastModel: o.forecastModel,
4387
4400
  followList: o.followList,
4388
- onClose: r.handleCloseDetail
4401
+ onClose: r.handleCloseDetail,
4402
+ onCloseAllDetail: e[0] || (e[0] = (g) => t.$emit("closeAllDetail", { followPort: !0 }))
4389
4403
  }, t.$attrs), null, 16, ["portId", "port", "forecastModel", "followList", "onClose"])) : O("", !0)
4390
4404
  ]);
4391
4405
  }
4392
- const ql = /* @__PURE__ */ Y(Ul, [["render", Zl], ["__scopeId", "data-v-7e6d5241"]]);
4406
+ const ql = /* @__PURE__ */ Y(Ul, [["render", Zl], ["__scopeId", "data-v-3bd34216"]]);
4393
4407
  const Yl = {
4394
4408
  name: "IdmFollowPosition",
4395
4409
  props: {
@@ -5283,26 +5297,28 @@ const Yl = {
5283
5297
  if (e.properties) {
5284
5298
  const f = e.properties;
5285
5299
  f.lng = e.geometry.coordinates[0], f.lat = e.geometry.coordinates[1], console.log("point", f);
5286
- const w = M(), L = (o = M(this.realTime)) == null ? void 0 : o.diff(w, "d", !0), _ = {
5300
+ const w = M(), P = (o = M(this.realTime)) == null ? void 0 : o.diff(w, "d", !0), z = {
5287
5301
  lat: f.lat,
5288
5302
  lng: f.lng,
5289
5303
  datetime: this.realTime,
5290
5304
  forecastModel: this.forecastModel
5291
5305
  };
5292
- L >= 0 ? (s = (r = (a = (i = this.$parent) == null ? void 0 : i.$parent) == null ? void 0 : a.$refs) == null ? void 0 : r.idmSpot) == null || s.fetchMeteoData(_) : (p = (g = (n = (c = this.$parent) == null ? void 0 : c.$parent) == null ? void 0 : n.$refs) == null ? void 0 : g.idmSpot) == null || p.fetchHistoryData(_);
5306
+ P >= 0 ? (s = (r = (a = (i = this.$parent) == null ? void 0 : i.$parent) == null ? void 0 : a.$refs) == null ? void 0 : r.idmSpot) == null || s.fetchMeteoData(z) : (p = (g = (n = (c = this.$parent) == null ? void 0 : c.$parent) == null ? void 0 : n.$refs) == null ? void 0 : g.idmSpot) == null || p.fetchHistoryData(z);
5293
5307
  }
5294
5308
  },
5295
5309
  handleHover(t) {
5310
+ var o;
5296
5311
  this.map.getCanvas().style.cursor = "pointer";
5297
5312
  const e = t.features[0];
5298
5313
  if (e.properties.id) {
5299
- this.showInfo = !0, this.position = e.properties;
5300
- const o = document.getElementById("idmFollowPositionInfo");
5301
- this.marker ? this.marker.setLngLat([t.lngLat.lng, t.lngLat.lat]) : this.marker = new ve.Marker(o).setLngLat([t.lngLat.lng, t.lngLat.lat]).setOffset([0, -70]).addTo(this.map);
5314
+ this.showInfo = !0, this.position = e.properties, (o = this.marker) == null || o.remove();
5315
+ const i = document.getElementById("idmFollowPositionInfo").cloneNode(!0);
5316
+ this.marker = new ve.Marker(i).setLngLat([t.lngLat.lng, t.lngLat.lat]).setOffset([0, -70]).addTo(this.map);
5302
5317
  }
5303
5318
  },
5304
5319
  handleLeave() {
5305
- this.map.getCanvas().style.cursor = "grab", this.showInfo = !1;
5320
+ var t;
5321
+ this.showInfo = !1, (t = this.marker) == null || t.remove(), this.map.getCanvas().style.cursor = "grab";
5306
5322
  }
5307
5323
  }
5308
5324
  }, Kl = { class: "position-box d-flex flex-column justify-center align-start ga-1" }, Xl = { class: "d-flex justify-start align-center text-label" }, $l = {
@@ -5311,7 +5327,7 @@ const Yl = {
5311
5327
  };
5312
5328
  function Ql(t, e, o, i, a, r) {
5313
5329
  const s = x("v-card-text"), c = x("v-card");
5314
- return Ne((y(), A(c, {
5330
+ return He((y(), D(c, {
5315
5331
  id: "idmFollowPositionInfo",
5316
5332
  ref: "idmFollowPositionInfo"
5317
5333
  }, {
@@ -5333,10 +5349,10 @@ function Ql(t, e, o, i, a, r) {
5333
5349
  ]),
5334
5350
  _: 1
5335
5351
  }, 512)), [
5336
- [Fe, a.showInfo]
5352
+ [Ue, a.showInfo]
5337
5353
  ]);
5338
5354
  }
5339
- const Jl = /* @__PURE__ */ Y(Yl, [["render", Ql], ["__scopeId", "data-v-f1715bad"]]);
5355
+ const Jl = /* @__PURE__ */ Y(Yl, [["render", Ql], ["__scopeId", "data-v-5d4ac543"]]);
5340
5356
  const es = {
5341
5357
  name: "IdmOtherLayerr",
5342
5358
  components: {
@@ -5515,8 +5531,8 @@ const es = {
5515
5531
  })
5516
5532
  );
5517
5533
  (await Promise.all(s)).map((n) => {
5518
- var f, w, L;
5519
- const g = ((f = n == null ? void 0 : n.data) == null ? void 0 : f.data) || (n == null ? void 0 : n.data), p = (L = (w = n == null ? void 0 : n.config) == null ? void 0 : w.headers) == null ? void 0 : L.key;
5534
+ var f, w, P;
5535
+ const g = ((f = n == null ? void 0 : n.data) == null ? void 0 : f.data) || (n == null ? void 0 : n.data), p = (P = (w = n == null ? void 0 : n.config) == null ? void 0 : w.headers) == null ? void 0 : P.key;
5520
5536
  this.otherLayers[p] = g;
5521
5537
  });
5522
5538
  }
@@ -5555,7 +5571,7 @@ const es = {
5555
5571
  }, ds = { class: "text-body-2 text-center pt-1" };
5556
5572
  function hs(t, e, o, i, a, r) {
5557
5573
  var Q, re, de, pe, se, $, ae, ue, ne;
5558
- const s = x("VBtn"), c = x("VTooltip"), n = x("VCardTitle"), g = x("VCardItem"), p = x("VCheckbox"), f = x("VCardText"), w = x("VCard"), L = x("IdmLatLng"), _ = x("IdmTerminator"), P = x("IdmTimezone"), b = x("IdmPort"), D = x("IdmAlertZone"), I = x("IdmTideStations"), C = x("IdmEcaZone"), v = x("IdmWarZone"), k = x("IdmGmdssArea"), T = x("IdmLoadLine"), z = x("IdmWorldMarine"), R = x("IdmVRA"), V = x("IdmSpecialArea"), K = x("IdmWorld12nm"), X = x("IdmChinaRoute"), Z = x("IdmIceAreas"), J = x("IdmFollowPort"), ee = x("IdmFollowPosition");
5574
+ const s = x("VBtn"), c = x("VTooltip"), n = x("VCardTitle"), g = x("VCardItem"), p = x("VCheckbox"), f = x("VCardText"), w = x("VCard"), P = x("IdmLatLng"), z = x("IdmTerminator"), L = x("IdmTimezone"), b = x("IdmPort"), A = x("IdmAlertZone"), I = x("IdmTideStations"), C = x("IdmEcaZone"), v = x("IdmWarZone"), _ = x("IdmGmdssArea"), T = x("IdmLoadLine"), k = x("IdmWorldMarine"), R = x("IdmVRA"), V = x("IdmSpecialArea"), K = x("IdmWorld12nm"), X = x("IdmChinaRoute"), Z = x("IdmIceAreas"), J = x("IdmFollowPort"), ee = x("IdmFollowPosition");
5559
5575
  return y(), S("div", ts, [
5560
5576
  l("div", {
5561
5577
  class: "menu-bar-box transition px-1 rounded",
@@ -5639,7 +5655,7 @@ function hs(t, e, o, i, a, r) {
5639
5655
  l("div", ds, h(t.$t(`layer.${F.locale}`)), 1)
5640
5656
  ], 8, ls))), 128))
5641
5657
  ]),
5642
- (y(!0), S(be, null, we(a.tagLayers.filter((F) => ["graticule", "day-night", "time-zones"].includes(F.key)), (F) => (y(), A(p, {
5658
+ (y(!0), S(be, null, we(a.tagLayers.filter((F) => ["graticule", "day-night", "time-zones"].includes(F.key)), (F) => (y(), D(p, {
5643
5659
  key: F.key,
5644
5660
  modelValue: a.checkList,
5645
5661
  "onUpdate:modelValue": e[0] || (e[0] = (ce) => a.checkList = ce),
@@ -5678,7 +5694,7 @@ function hs(t, e, o, i, a, r) {
5678
5694
  }),
5679
5695
  d(f, { class: "py-2" }, {
5680
5696
  default: u(() => [
5681
- (y(!0), S(be, null, we(a.tagLayers.filter((F) => ["ports", "alert-zones", "tidal-stations"].includes(F.key)), (F) => (y(), A(p, {
5697
+ (y(!0), S(be, null, we(a.tagLayers.filter((F) => ["ports", "alert-zones", "tidal-stations"].includes(F.key)), (F) => (y(), D(p, {
5682
5698
  key: F.key,
5683
5699
  modelValue: a.checkList,
5684
5700
  "onUpdate:modelValue": e[1] || (e[1] = (ce) => a.checkList = ce),
@@ -5717,7 +5733,7 @@ function hs(t, e, o, i, a, r) {
5717
5733
  }),
5718
5734
  d(f, { class: "py-2" }, {
5719
5735
  default: u(() => [
5720
- (y(!0), S(be, null, we(a.tagLayers.filter((F) => !["graticule", "day-night", "time-zones", "ports", "alert-zones", "tidal-stations"].includes(F.key)), (F) => (y(), A(p, {
5736
+ (y(!0), S(be, null, we(a.tagLayers.filter((F) => !["graticule", "day-night", "time-zones", "ports", "alert-zones", "tidal-stations"].includes(F.key)), (F) => (y(), D(p, {
5721
5737
  key: F.key,
5722
5738
  modelValue: a.checkList,
5723
5739
  "onUpdate:modelValue": e[2] || (e[2] = (ce) => a.checkList = ce),
@@ -5786,23 +5802,23 @@ function hs(t, e, o, i, a, r) {
5786
5802
  })
5787
5803
  ])
5788
5804
  ], 6),
5789
- o.map ? (y(), A(L, B({
5805
+ o.map ? (y(), D(P, B({
5790
5806
  key: 0,
5791
5807
  map: o.map,
5792
5808
  "menu-toggle": o.menuToggle,
5793
5809
  show: a.checkList.includes("graticule")
5794
5810
  }, t.$attrs), null, 16, ["map", "menu-toggle", "show"])) : O("", !0),
5795
- o.map ? (y(), A(_, B({
5811
+ o.map ? (y(), D(z, B({
5796
5812
  key: 1,
5797
5813
  map: o.map,
5798
5814
  area: (Q = a.otherLayers) == null ? void 0 : Q["day-night"]
5799
5815
  }, t.$attrs), null, 16, ["map", "area"])) : O("", !0),
5800
- o.map ? (y(), A(P, B({
5816
+ o.map ? (y(), D(L, B({
5801
5817
  key: 2,
5802
5818
  map: o.map,
5803
5819
  zone: (re = a.otherLayers) == null ? void 0 : re["time-zones"]
5804
5820
  }, t.$attrs), null, 16, ["map", "zone"])) : O("", !0),
5805
- o.map ? (y(), A(b, B({
5821
+ o.map ? (y(), D(b, B({
5806
5822
  key: 3,
5807
5823
  ref: "idmPorts",
5808
5824
  map: o.map,
@@ -5812,7 +5828,7 @@ function hs(t, e, o, i, a, r) {
5812
5828
  "forecast-model": o.forecastModel,
5813
5829
  realTime: o.realTime
5814
5830
  }, t.$attrs, { "before-layer": "empty-layer-3" }), null, 16, ["map", "ports", "gateway", "token", "forecast-model", "realTime"])) : O("", !0),
5815
- o.map ? (y(), A(D, B({
5831
+ o.map ? (y(), D(A, B({
5816
5832
  key: 4,
5817
5833
  map: o.map,
5818
5834
  zone: (pe = a.otherLayers) == null ? void 0 : pe["alert-zones"]
@@ -5820,7 +5836,7 @@ function hs(t, e, o, i, a, r) {
5820
5836
  "before-layer": "empty-layer-3",
5821
5837
  theme: o.theme
5822
5838
  }), null, 16, ["map", "zone", "theme"])) : O("", !0),
5823
- o.map ? (y(), A(I, B({
5839
+ o.map ? (y(), D(I, B({
5824
5840
  key: 5,
5825
5841
  ref: "idmIideStation",
5826
5842
  map: o.map,
@@ -5832,60 +5848,60 @@ function hs(t, e, o, i, a, r) {
5832
5848
  forecastModel: o.forecastModel,
5833
5849
  "before-layer": "empty-layer-3"
5834
5850
  }, t.$attrs), null, 16, ["map", "gateway", "token", "show", "theme", "realTime", "forecastModel"])) : O("", !0),
5835
- o.map ? (y(), A(C, B({
5851
+ o.map ? (y(), D(C, B({
5836
5852
  key: 6,
5837
5853
  map: o.map,
5838
5854
  zone: (se = a.otherLayers) == null ? void 0 : se["eca-zones"]
5839
5855
  }, t.$attrs), null, 16, ["map", "zone"])) : O("", !0),
5840
- o.map ? (y(), A(v, B({
5856
+ o.map ? (y(), D(v, B({
5841
5857
  key: 7,
5842
5858
  map: o.map,
5843
5859
  zone: ($ = a.otherLayers) == null ? void 0 : $["war-zones"]
5844
5860
  }, t.$attrs), null, 16, ["map", "zone"])) : O("", !0),
5845
- o.map ? (y(), A(k, B({
5861
+ o.map ? (y(), D(_, B({
5846
5862
  key: 8,
5847
5863
  map: o.map,
5848
5864
  area: (ae = a.otherLayers) == null ? void 0 : ae["gmdss-areas"]
5849
5865
  }, t.$attrs), null, 16, ["map", "area"])) : O("", !0),
5850
- o.map ? (y(), A(T, B({
5866
+ o.map ? (y(), D(T, B({
5851
5867
  key: 9,
5852
5868
  map: o.map,
5853
5869
  show: a.checkList.includes("load-lines")
5854
5870
  }, t.$attrs), null, 16, ["map", "show"])) : O("", !0),
5855
- o.map ? (y(), A(z, B({
5871
+ o.map ? (y(), D(k, B({
5856
5872
  key: 10,
5857
5873
  map: o.map,
5858
5874
  token: o.token,
5859
5875
  show: a.checkList.includes("worldMarine")
5860
5876
  }, t.$attrs), null, 16, ["map", "token", "show"])) : O("", !0),
5861
- o.map ? (y(), A(R, B({
5877
+ o.map ? (y(), D(R, B({
5862
5878
  key: 11,
5863
5879
  map: o.map,
5864
5880
  area: (ue = a.otherLayers) == null ? void 0 : ue["voluntary-reporting-area"]
5865
5881
  }, t.$attrs), null, 16, ["map", "area"])) : O("", !0),
5866
- o.map ? (y(), A(V, B({
5882
+ o.map ? (y(), D(V, B({
5867
5883
  key: 12,
5868
5884
  map: o.map,
5869
5885
  area: (ne = a.otherLayers) == null ? void 0 : ne["special-area"]
5870
5886
  }, t.$attrs), null, 16, ["map", "area"])) : O("", !0),
5871
- o.map ? (y(), A(K, B({
5887
+ o.map ? (y(), D(K, B({
5872
5888
  key: 13,
5873
5889
  map: o.map,
5874
5890
  token: o.token,
5875
5891
  show: a.checkList.includes("world12nm")
5876
5892
  }, t.$attrs), null, 16, ["map", "token", "show"])) : O("", !0),
5877
- o.map ? (y(), A(X, B({
5893
+ o.map ? (y(), D(X, B({
5878
5894
  key: 14,
5879
5895
  map: o.map,
5880
5896
  token: o.token,
5881
5897
  show: a.checkList.includes("chinaRoute")
5882
5898
  }, t.$attrs), null, 16, ["map", "token", "show"])) : O("", !0),
5883
- o.map ? (y(), A(Z, B({
5899
+ o.map ? (y(), D(Z, B({
5884
5900
  key: 15,
5885
5901
  map: o.map,
5886
5902
  show: a.checkList.includes("ice-areas")
5887
5903
  }, t.$attrs), null, 16, ["map", "show"])) : O("", !0),
5888
- o.map ? (y(), A(J, B({
5904
+ o.map ? (y(), D(J, B({
5889
5905
  key: 16,
5890
5906
  ref: "idmFollowPort",
5891
5907
  map: o.map,
@@ -5895,7 +5911,7 @@ function hs(t, e, o, i, a, r) {
5895
5911
  "forecast-model": o.forecastModel,
5896
5912
  realTime: o.realTime
5897
5913
  }, t.$attrs, { "before-layer": "empty-layer-3" }), null, 16, ["map", "show", "gateway", "token", "forecast-model", "realTime"])) : O("", !0),
5898
- o.map ? (y(), A(ee, B({
5914
+ o.map ? (y(), D(ee, B({
5899
5915
  key: 17,
5900
5916
  ref: "idmFollowPosition",
5901
5917
  map: o.map,
@@ -5952,12 +5968,12 @@ class so {
5952
5968
  * @param [lb.x, lb.y, rt.x, rt.y]
5953
5969
  */
5954
5970
  getBoundPixel() {
5955
- var _, P;
5956
- const e = (_ = this.map) == null ? void 0 : _.getBounds();
5971
+ var z, L;
5972
+ const e = (z = this.map) == null ? void 0 : z.getBounds();
5957
5973
  if (!e)
5958
5974
  return [];
5959
- const o = ((P = this.map) == null ? void 0 : P.getZoom()) + 1, i = [e._ne.lng, e._ne.lat], a = [e._sw.lng, e._sw.lat], [r, s] = this.convertNLng(i[0]), [c, n] = this.convertNLng(a[0]), [g, p] = this.mercator.px([r, i[1]], o), [f, w] = this.mercator.px([c, a[1]], o), L = Math.round(this.mercator.size * Math.pow(2, o) * (s + n));
5960
- return [f, w, g + L, p];
5975
+ const o = ((L = this.map) == null ? void 0 : L.getZoom()) + 1, i = [e._ne.lng, e._ne.lat], a = [e._sw.lng, e._sw.lat], [r, s] = this.convertNLng(i[0]), [c, n] = this.convertNLng(a[0]), [g, p] = this.mercator.px([r, i[1]], o), [f, w] = this.mercator.px([c, a[1]], o), P = Math.round(this.mercator.size * Math.pow(2, o) * (s + n));
5976
+ return [f, w, g + P, p];
5961
5977
  }
5962
5978
  /**
5963
5979
  * [视窗边界像素宽度]
@@ -5996,7 +6012,7 @@ class so {
5996
6012
  o !== i && this.map.setLayoutProperty(this.particleLayer, "visibility", i);
5997
6013
  }
5998
6014
  }
5999
- class He {
6015
+ class Ne {
6000
6016
  /**
6001
6017
  * 创建着色器
6002
6018
  * @see https://webglfundamentals.org/webgl/lessons/zh_cn/webgl-shaders-and-glsl.html
@@ -6140,9 +6156,9 @@ class He {
6140
6156
  sRange: o.getUniformLocation(i, "u_range_s")
6141
6157
  };
6142
6158
  p.resolution && o.uniform2f(p.resolution, o.canvas.width * e.ratio, o.canvas.height * e.ratio), o.activeTexture(o.TEXTURE0), o.bindTexture(o.TEXTURE_2D, a), p.image && o.uniform1i(p.image, 0), o.activeTexture(o.TEXTURE1), o.bindTexture(o.TEXTURE_2D, r), p.color && o.uniform1i(p.color, 1), c != null && c.uvRange && (c != null && c.sRange) && (p.uvRange && o.uniform2f(p.uvRange, c.uvRange[0], c.uvRange[1]), p.sRange && o.uniform2f(p.sRange, c.sRange[0], c.sRange[1])), p.scale && o.uniform1f(p.scale, (c == null ? void 0 : c.scale) || 1);
6143
- const f = e.getBoundPixel(), w = e.map.getZoom() + 1, L = e.getWorldCopy(f, w);
6144
- for (const _ of L) {
6145
- const P = (_[0] - f[0]) * e.ratio, b = (_[1] - f[3]) * e.ratio, D = _[2] * e.ratio, [I, C, v, k] = [P, D + P, b, D + b], T = new Float32Array([I, v, C, v, I, k, I, k, C, v, C, k]);
6159
+ const f = e.getBoundPixel(), w = e.map.getZoom() + 1, P = e.getWorldCopy(f, w);
6160
+ for (const z of P) {
6161
+ const L = (z[0] - f[0]) * e.ratio, b = (z[1] - f[3]) * e.ratio, A = z[2] * e.ratio, [I, C, v, _] = [L, A + L, b, A + b], T = new Float32Array([I, v, C, v, I, _, I, _, C, v, C, _]);
6146
6162
  o.bindBuffer(o.ARRAY_BUFFER, s), o.bufferData(o.ARRAY_BUFFER, T, o.STATIC_DRAW), o.drawArrays(o.TRIANGLES, 0, 6);
6147
6163
  }
6148
6164
  } catch (p) {
@@ -6571,7 +6587,7 @@ const bs = {
6571
6587
  texture: void 0,
6572
6588
  rampColor: void 0,
6573
6589
  aPositionBuffer: void 0,
6574
- webgl: new He(),
6590
+ webgl: new Ne(),
6575
6591
  etime: void 0,
6576
6592
  wrapper: void 0,
6577
6593
  animation: void 0,
@@ -6911,7 +6927,7 @@ const Ls = {
6911
6927
  texture: void 0,
6912
6928
  rampColor: void 0,
6913
6929
  aPositionBuffer: void 0,
6914
- webgl: new He(),
6930
+ webgl: new Ne(),
6915
6931
  etime: void 0,
6916
6932
  wrapper: void 0,
6917
6933
  animation: void 0,
@@ -7093,7 +7109,7 @@ const Ss = {
7093
7109
  texture: void 0,
7094
7110
  rampColor: void 0,
7095
7111
  aPositionBuffer: void 0,
7096
- webgl: new He(),
7112
+ webgl: new Ne(),
7097
7113
  etime: void 0,
7098
7114
  right: 10
7099
7115
  };
@@ -7697,7 +7713,7 @@ const Ws = {
7697
7713
  texture: void 0,
7698
7714
  rampColor: void 0,
7699
7715
  aPositionBuffer: void 0,
7700
- webgl: new He(),
7716
+ webgl: new Ne(),
7701
7717
  etime: void 0,
7702
7718
  right: 10
7703
7719
  };
@@ -7818,7 +7834,7 @@ const qs = {
7818
7834
  texture: void 0,
7819
7835
  rampColor: void 0,
7820
7836
  aPositionBuffer: void 0,
7821
- webgl: new He(),
7837
+ webgl: new Ne(),
7822
7838
  etime: void 0,
7823
7839
  right: 10
7824
7840
  };
@@ -7924,7 +7940,7 @@ const $s = {
7924
7940
  texture: void 0,
7925
7941
  rampColor: void 0,
7926
7942
  aPositionBuffer: void 0,
7927
- webgl: new He(),
7943
+ webgl: new Ne(),
7928
7944
  etime: void 0,
7929
7945
  right: 10
7930
7946
  };
@@ -8043,7 +8059,7 @@ const tn = {
8043
8059
  texture: void 0,
8044
8060
  rampColor: void 0,
8045
8061
  aPositionBuffer: void 0,
8046
- webgl: new He(),
8062
+ webgl: new Ne(),
8047
8063
  etime: void 0,
8048
8064
  right: 10
8049
8065
  };
@@ -8157,7 +8173,7 @@ const ln = {
8157
8173
  texture: void 0,
8158
8174
  rampColor: void 0,
8159
8175
  aPositionBuffer: void 0,
8160
- webgl: new He(),
8176
+ webgl: new Ne(),
8161
8177
  etime: void 0
8162
8178
  };
8163
8179
  },
@@ -8257,7 +8273,7 @@ const mn = {
8257
8273
  texture: void 0,
8258
8274
  rampColor: void 0,
8259
8275
  aPositionBuffer: void 0,
8260
- webgl: new He(),
8276
+ webgl: new Ne(),
8261
8277
  etime: void 0,
8262
8278
  right: 10
8263
8279
  };
@@ -8373,7 +8389,7 @@ const un = {
8373
8389
  texture: void 0,
8374
8390
  rampColor: void 0,
8375
8391
  aPositionBuffer: void 0,
8376
- webgl: new He(),
8392
+ webgl: new Ne(),
8377
8393
  etime: void 0,
8378
8394
  right: 10
8379
8395
  };
@@ -8726,19 +8742,19 @@ const bn = {
8726
8742
  const e = (/* @__PURE__ */ new Date()).valueOf();
8727
8743
  let o = 0, i = 0;
8728
8744
  if (this.map) {
8729
- const L = ((a = this.map) == null ? void 0 : a.getZoom()) + 1, _ = (r = this.map) == null ? void 0 : r.getBounds(), P = `${_._sw.lng},${_._sw.lat},${_._ne.lng},${_._ne.lat}`;
8745
+ const P = ((a = this.map) == null ? void 0 : a.getZoom()) + 1, z = (r = this.map) == null ? void 0 : r.getBounds(), L = `${z._sw.lng},${z._sw.lat},${z._ne.lng},${z._ne.lat}`;
8730
8746
  if (this.particleFactor && ((s = this.$refs.layer) != null && s.autoActive)) {
8731
- const b = ao.WEATHER_LAYERS.find((D) => {
8747
+ const b = ao.WEATHER_LAYERS.find((A) => {
8732
8748
  var I;
8733
- return ((I = D.peer) == null ? void 0 : I.weight) === this.particleFactor.weight;
8749
+ return ((I = A.peer) == null ? void 0 : I.weight) === this.particleFactor.weight;
8734
8750
  });
8735
8751
  this.particleFactor.particle && (this.showWindParticle || this.showCurrentParticle) ? this.weatherWeight = this.weatherWeight & b.weight ? this.weatherWeight : this.weatherWeight + b.weight : this.weatherWeight = this.weatherWeight & b.weight ? this.weatherWeight - b.weight : this.weatherWeight;
8736
8752
  }
8737
8753
  if (this.weatherWeight > 0) {
8738
8754
  let b = this.weatherWeight;
8739
8755
  if (b > 0) {
8740
- const D = this.assistGateway[Math.round(Math.random() * (this.assistGateway.length - 1))], I = await Se.get(
8741
- `${D}/api/arc/weather/layers2/links?l=${b}&v=${this.forecastModel}&z=${L}&bbox=${P}&t=${this.realTime}`,
8756
+ const A = this.assistGateway[Math.round(Math.random() * (this.assistGateway.length - 1))], I = await Se.get(
8757
+ `${A}/api/arc/weather/layers2/links?l=${b}&v=${this.forecastModel}&z=${P}&bbox=${L}&t=${this.realTime}`,
8742
8758
  {
8743
8759
  headers: {
8744
8760
  Authorization: this.token || this.defaultMeteoToken
@@ -8755,17 +8771,17 @@ const bn = {
8755
8771
  key: T
8756
8772
  },
8757
8773
  responseType: /\.(jpg|png)$/.test(C[T]) ? "blob" : "json"
8758
- }).catch((z) => {
8759
- console.log(`[${T}] fetch layer error: ${z}`);
8774
+ }).catch((k) => {
8775
+ console.log(`[${T}] fetch layer error: ${k}`);
8760
8776
  })
8761
8777
  );
8762
- const k = await Promise.all(v);
8763
- this.weatherLayers = {}, k.map((T) => {
8778
+ const _ = await Promise.all(v);
8779
+ this.weatherLayers = {}, _.map((T) => {
8764
8780
  var V, K, X, Z;
8765
- const z = ((V = T == null ? void 0 : T.data) == null ? void 0 : V.data) || (T == null ? void 0 : T.data);
8781
+ const k = ((V = T == null ? void 0 : T.data) == null ? void 0 : V.data) || (T == null ? void 0 : T.data);
8766
8782
  let R = (X = (K = T == null ? void 0 : T.config) == null ? void 0 : K.headers) == null ? void 0 : X.key;
8767
- R && z && (this.weatherLayers[R] = {
8768
- raw: z,
8783
+ R && k && (this.weatherLayers[R] = {
8784
+ raw: k,
8769
8785
  type: ((Z = T == null ? void 0 : T.config) == null ? void 0 : Z.responseType) === "blob" ? "image" : "json",
8770
8786
  etime: I.data.etime
8771
8787
  });
@@ -8842,51 +8858,51 @@ const bn = {
8842
8858
  );
8843
8859
  },
8844
8860
  handleDrawWeather4Json() {
8845
- var g, p, f, w, L, _, P;
8861
+ var g, p, f, w, P, z, L;
8846
8862
  const t = (/* @__PURE__ */ new Date()).valueOf();
8847
8863
  let e = 0, o = 0;
8848
8864
  const i = (g = this.map) == null ? void 0 : g.getBounds(), a = (p = this.map) == null ? void 0 : p.getZoom(), r = G.convertToStdLng(i._sw.lng), s = G.convertToStdLng(i._ne.lng), c = Math.floor(i._sw.lat), n = Math.ceil(i._ne.lat);
8849
8865
  for (const b in this.weatherLayers) {
8850
- let D = !1;
8866
+ let A = !1;
8851
8867
  if (this.weatherLayers[b].active && this.weatherLayers[b].type === "json") {
8852
8868
  let I = [];
8853
8869
  if (b === "swell") {
8854
- D = !0;
8870
+ A = !0;
8855
8871
  const C = ((f = this.weatherLayers[b]) == null ? void 0 : f.direction) || {};
8856
- for (const k in C)
8857
- if (k > c && k < n && (!(a <= this.zoom) || k % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
8858
- const T = C[k].lng;
8859
- r > s ? T.forEach((z, R) => {
8872
+ for (const _ in C)
8873
+ if (_ > c && _ < n && (!(a <= this.zoom) || _ % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
8874
+ const T = C[_].lng;
8875
+ r > s ? T.forEach((k, R) => {
8860
8876
  var V, K, X, Z, J, ee;
8861
8877
  if (a < 2) {
8862
- if ((z >= 0 && z <= 360 || z >= -360 && z <= 0) && z % 10 === 0) {
8863
- const Q = H.point([z, k], {
8864
- val: ((V = C[k].val) == null ? void 0 : V[R]) || ((K = C[k].dir) == null ? void 0 : K[R]),
8865
- spd: (X = C[k].spd) == null ? void 0 : X[R]
8878
+ if ((k >= 0 && k <= 360 || k >= -360 && k <= 0) && k % 10 === 0) {
8879
+ const Q = H.point([k, _], {
8880
+ val: ((V = C[_].val) == null ? void 0 : V[R]) || ((K = C[_].dir) == null ? void 0 : K[R]),
8881
+ spd: (X = C[_].spd) == null ? void 0 : X[R]
8866
8882
  });
8867
8883
  I.push(Q);
8868
8884
  }
8869
- } else if ((z >= r && z <= 180 || z >= -180 && z <= s) && (!(a <= this.zoom) || z % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
8870
- const Q = H.point([z, k], {
8871
- val: ((Z = C[k].val) == null ? void 0 : Z[R]) || ((J = C[k].dir) == null ? void 0 : J[R]),
8872
- spd: (ee = C[k].spd) == null ? void 0 : ee[R]
8885
+ } else if ((k >= r && k <= 180 || k >= -180 && k <= s) && (!(a <= this.zoom) || k % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
8886
+ const Q = H.point([k, _], {
8887
+ val: ((Z = C[_].val) == null ? void 0 : Z[R]) || ((J = C[_].dir) == null ? void 0 : J[R]),
8888
+ spd: (ee = C[_].spd) == null ? void 0 : ee[R]
8873
8889
  });
8874
8890
  I.push(Q);
8875
8891
  }
8876
- }) : T.forEach((z, R) => {
8892
+ }) : T.forEach((k, R) => {
8877
8893
  var V, K, X, Z, J, ee;
8878
8894
  if (r < 2) {
8879
- if ((z >= 0 && z <= 360 || z >= -360 && z <= 0) && z % 10 === 0) {
8880
- const Q = H.point([z, k], {
8881
- val: ((V = C[k].val) == null ? void 0 : V[R]) || ((K = C[k].dir) == null ? void 0 : K[R]),
8882
- spd: (X = C[k].spd) == null ? void 0 : X[R]
8895
+ if ((k >= 0 && k <= 360 || k >= -360 && k <= 0) && k % 10 === 0) {
8896
+ const Q = H.point([k, _], {
8897
+ val: ((V = C[_].val) == null ? void 0 : V[R]) || ((K = C[_].dir) == null ? void 0 : K[R]),
8898
+ spd: (X = C[_].spd) == null ? void 0 : X[R]
8883
8899
  });
8884
8900
  I.push(Q);
8885
8901
  }
8886
- } else if (z >= r && z <= s && (!(a <= this.zoom) || z % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
8887
- const Q = H.point([z, k], {
8888
- val: ((Z = C[k].val) == null ? void 0 : Z[R]) || ((J = C[k].dir) == null ? void 0 : J[R]),
8889
- spd: (ee = C[k].spd) == null ? void 0 : ee[R]
8902
+ } else if (k >= r && k <= s && (!(a <= this.zoom) || k % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
8903
+ const Q = H.point([k, _], {
8904
+ val: ((Z = C[_].val) == null ? void 0 : Z[R]) || ((J = C[_].dir) == null ? void 0 : J[R]),
8905
+ spd: (ee = C[_].spd) == null ? void 0 : ee[R]
8890
8906
  });
8891
8907
  I.push(Q);
8892
8908
  }
@@ -8896,61 +8912,61 @@ const bn = {
8896
8912
  const v = this.weatherLayers[b].height;
8897
8913
  if (v) {
8898
8914
  if (!v.data) {
8899
- const k = [];
8915
+ const _ = [];
8900
8916
  for (const T in (w = v.raw) == null ? void 0 : w.LineString) {
8901
- const z = v.raw.LineString[T];
8902
- for (const R of z)
8903
- k.push(
8917
+ const k = v.raw.LineString[T];
8918
+ for (const R of k)
8919
+ _.push(
8904
8920
  H.lineString(R, {
8905
8921
  val: Number(T)
8906
8922
  })
8907
8923
  );
8908
- v.data = H.featureCollection(k);
8924
+ v.data = H.featureCollection(_);
8909
8925
  }
8910
8926
  }
8911
8927
  if (v.data) {
8912
- const k = this.handleBboxClip(v.data, i);
8913
- I = I.concat(k);
8928
+ const _ = this.handleBboxClip(v.data, i);
8929
+ I = I.concat(_);
8914
8930
  }
8915
8931
  o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("swell height elapsed: ", o, ", total: ", e += o);
8916
8932
  }
8917
8933
  } else if (b === "current") {
8918
- D = !0;
8919
- const C = ((L = this.weatherLayers[b]) == null ? void 0 : L.direction) || {};
8920
- for (const k in C)
8921
- if (k > c && k < n && (!(a <= this.zoom) || k % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
8922
- const T = C[k].lng;
8923
- r > s ? T.forEach((z, R) => {
8934
+ A = !0;
8935
+ const C = ((P = this.weatherLayers[b]) == null ? void 0 : P.direction) || {};
8936
+ for (const _ in C)
8937
+ if (_ > c && _ < n && (!(a <= this.zoom) || _ % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
8938
+ const T = C[_].lng;
8939
+ r > s ? T.forEach((k, R) => {
8924
8940
  var V, K, X, Z, J, ee;
8925
8941
  if (a < 2) {
8926
- if ((z >= 0 && z <= 360 || z >= -360 && z <= 0) && z % 10 === 0) {
8927
- const Q = H.point([z, k], {
8928
- val: ((V = C[k].val) == null ? void 0 : V[R]) || ((K = C[k].dir) == null ? void 0 : K[R]),
8929
- spd: (X = C[k].spd) == null ? void 0 : X[R]
8942
+ if ((k >= 0 && k <= 360 || k >= -360 && k <= 0) && k % 10 === 0) {
8943
+ const Q = H.point([k, _], {
8944
+ val: ((V = C[_].val) == null ? void 0 : V[R]) || ((K = C[_].dir) == null ? void 0 : K[R]),
8945
+ spd: (X = C[_].spd) == null ? void 0 : X[R]
8930
8946
  });
8931
8947
  I.push(Q);
8932
8948
  }
8933
- } else if ((z >= r && z <= 180 || z >= -180 && z <= s) && (!(a <= this.zoom) || z % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
8934
- const Q = H.point([z, k], {
8935
- val: ((Z = C[k].val) == null ? void 0 : Z[R]) || ((J = C[k].dir) == null ? void 0 : J[R]),
8936
- spd: (ee = C[k].spd) == null ? void 0 : ee[R]
8949
+ } else if ((k >= r && k <= 180 || k >= -180 && k <= s) && (!(a <= this.zoom) || k % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
8950
+ const Q = H.point([k, _], {
8951
+ val: ((Z = C[_].val) == null ? void 0 : Z[R]) || ((J = C[_].dir) == null ? void 0 : J[R]),
8952
+ spd: (ee = C[_].spd) == null ? void 0 : ee[R]
8937
8953
  });
8938
8954
  I.push(Q);
8939
8955
  }
8940
- }) : T.forEach((z, R) => {
8956
+ }) : T.forEach((k, R) => {
8941
8957
  var V, K, X, Z, J, ee;
8942
8958
  if (r < 2) {
8943
- if ((z >= 0 && z <= 360 || z >= -360 && z <= 0) && z % 10 === 0) {
8944
- const Q = H.point([z, k], {
8945
- val: ((V = C[k].val) == null ? void 0 : V[R]) || ((K = C[k].dir) == null ? void 0 : K[R]),
8946
- spd: (X = C[k].spd) == null ? void 0 : X[R]
8959
+ if ((k >= 0 && k <= 360 || k >= -360 && k <= 0) && k % 10 === 0) {
8960
+ const Q = H.point([k, _], {
8961
+ val: ((V = C[_].val) == null ? void 0 : V[R]) || ((K = C[_].dir) == null ? void 0 : K[R]),
8962
+ spd: (X = C[_].spd) == null ? void 0 : X[R]
8947
8963
  });
8948
8964
  I.push(Q);
8949
8965
  }
8950
- } else if (z >= r && z <= s && (!(a <= this.zoom) || z % (a < this.zoom / 2 ? 5 : 3) === 0)) {
8951
- const Q = H.point([z, k], {
8952
- val: ((Z = C[k].val) == null ? void 0 : Z[R]) || ((J = C[k].dir) == null ? void 0 : J[R]),
8953
- spd: (ee = C[k].spd) == null ? void 0 : ee[R]
8966
+ } else if (k >= r && k <= s && (!(a <= this.zoom) || k % (a < this.zoom / 2 ? 5 : 3) === 0)) {
8967
+ const Q = H.point([k, _], {
8968
+ val: ((Z = C[_].val) == null ? void 0 : Z[R]) || ((J = C[_].dir) == null ? void 0 : J[R]),
8969
+ spd: (ee = C[_].spd) == null ? void 0 : ee[R]
8954
8970
  });
8955
8971
  I.push(Q);
8956
8972
  }
@@ -8961,57 +8977,57 @@ const bn = {
8961
8977
  if (v) {
8962
8978
  if (!v.data) {
8963
8979
  const T = [];
8964
- for (const z in (_ = v.raw) == null ? void 0 : _.Polygon) {
8965
- const R = v.raw.Polygon[z];
8980
+ for (const k in (z = v.raw) == null ? void 0 : z.Polygon) {
8981
+ const R = v.raw.Polygon[k];
8966
8982
  for (const V of R)
8967
8983
  T.push(
8968
8984
  H.polygon(V, {
8969
- val: Number(z)
8985
+ val: Number(k)
8970
8986
  })
8971
8987
  );
8972
8988
  }
8973
8989
  v.data = H.featureCollection(T);
8974
8990
  }
8975
- const k = a < this.zoom ? v.data.features.filter((T) => T.properties.val > 0.5) : v.data.features;
8976
- I = I.concat(k), o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("current speed elapsed: ", o, ", total: ", e += o);
8991
+ const _ = a < this.zoom ? v.data.features.filter((T) => T.properties.val > 0.5) : v.data.features;
8992
+ I = I.concat(_), o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("current speed elapsed: ", o, ", total: ", e += o);
8977
8993
  }
8978
8994
  } else if (b === "wind") {
8979
- D = !0;
8995
+ A = !0;
8980
8996
  const C = this.weatherLayers.wind.raw;
8981
8997
  for (const v in C)
8982
8998
  if (v > c && v < n && (!(a <= this.zoom) || v % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
8983
- const k = C[v].lng;
8984
- r > s ? k.forEach((T, z) => {
8999
+ const _ = C[v].lng;
9000
+ r > s ? _.forEach((T, k) => {
8985
9001
  var R, V, K, X;
8986
9002
  if (a < 2) {
8987
9003
  if ((T >= 0 && T <= 360 || T >= -360 && T <= 0) && T % 10 === 0) {
8988
9004
  const Z = H.point([T, v], {
8989
- dir: ((R = C[v].val) == null ? void 0 : R[z]) || ((V = C[v].dir) == null ? void 0 : V[z]),
8990
- spd: C[v].spd[z]
9005
+ dir: ((R = C[v].val) == null ? void 0 : R[k]) || ((V = C[v].dir) == null ? void 0 : V[k]),
9006
+ spd: C[v].spd[k]
8991
9007
  });
8992
9008
  I.push(Z);
8993
9009
  }
8994
9010
  } else if ((T >= r && T <= 180 || T >= -180 && T <= s) && (!(a <= this.zoom) || T % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
8995
9011
  const Z = H.point([T, v], {
8996
- dir: ((K = C[v].val) == null ? void 0 : K[z]) || ((X = C[v].dir) == null ? void 0 : X[z]),
8997
- spd: C[v].spd[z]
9012
+ dir: ((K = C[v].val) == null ? void 0 : K[k]) || ((X = C[v].dir) == null ? void 0 : X[k]),
9013
+ spd: C[v].spd[k]
8998
9014
  });
8999
9015
  I.push(Z);
9000
9016
  }
9001
- }) : k.forEach((T, z) => {
9017
+ }) : _.forEach((T, k) => {
9002
9018
  var R, V, K, X;
9003
9019
  if (a < 2) {
9004
9020
  if ((T >= 0 && T <= 360 || T >= -360 && T <= 0) && T % 10 === 0) {
9005
9021
  const Z = H.point([T, v], {
9006
- dir: ((R = C[v].val) == null ? void 0 : R[z]) || ((V = C[v].dir) == null ? void 0 : V[z]),
9007
- spd: C[v].spd[z]
9022
+ dir: ((R = C[v].val) == null ? void 0 : R[k]) || ((V = C[v].dir) == null ? void 0 : V[k]),
9023
+ spd: C[v].spd[k]
9008
9024
  });
9009
9025
  I.push(Z);
9010
9026
  }
9011
9027
  } else if (T >= r && T <= s && (!(a <= this.zoom) || T % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
9012
9028
  const Z = H.point([T, v], {
9013
- dir: ((K = C[v].val) == null ? void 0 : K[z]) || ((X = C[v].dir) == null ? void 0 : X[z]),
9014
- spd: C[v].spd[z]
9029
+ dir: ((K = C[v].val) == null ? void 0 : K[k]) || ((X = C[v].dir) == null ? void 0 : X[k]),
9030
+ spd: C[v].spd[k]
9015
9031
  });
9016
9032
  I.push(Z);
9017
9033
  }
@@ -9022,34 +9038,34 @@ const bn = {
9022
9038
  if (this.weatherLayers[b].data)
9023
9039
  I = this.weatherLayers[b].data;
9024
9040
  else {
9025
- D = !0;
9041
+ A = !0;
9026
9042
  const C = this.weatherLayers[b].raw;
9027
9043
  if (C) {
9028
9044
  const v = [];
9029
- for (const k in C.Polygon) {
9030
- const T = C.Polygon[k];
9031
- for (const z of T)
9045
+ for (const _ in C.Polygon) {
9046
+ const T = C.Polygon[_];
9047
+ for (const k of T)
9032
9048
  v.push(
9033
- H.polygon(z, {
9034
- val: Number(k)
9049
+ H.polygon(k, {
9050
+ val: Number(_)
9035
9051
  })
9036
9052
  );
9037
9053
  }
9038
- for (const k in C.MultiPolygon) {
9039
- const T = C.MultiPolygon[k];
9040
- for (const z of T)
9054
+ for (const _ in C.MultiPolygon) {
9055
+ const T = C.MultiPolygon[_];
9056
+ for (const k of T)
9041
9057
  v.push(
9042
- H.multiPolygon(z, {
9043
- val: Number(k)
9058
+ H.multiPolygon(k, {
9059
+ val: Number(_)
9044
9060
  })
9045
9061
  );
9046
9062
  }
9047
- for (const k in C.Point) {
9048
- const T = C.Point[k];
9049
- for (let z = 0; z < ((P = T.lng) == null ? void 0 : P.length); z++)
9063
+ for (const _ in C.Point) {
9064
+ const T = C.Point[_];
9065
+ for (let k = 0; k < ((L = T.lng) == null ? void 0 : L.length); k++)
9050
9066
  v.push(
9051
- H.point([T.lng[z], k], {
9052
- val: Number(T.val[z])
9067
+ H.point([T.lng[k], _], {
9068
+ val: Number(T.val[k])
9053
9069
  })
9054
9070
  );
9055
9071
  }
@@ -9061,25 +9077,25 @@ const bn = {
9061
9077
  if (this.weatherLayers[b].data)
9062
9078
  I = this.weatherLayers[b].data;
9063
9079
  else {
9064
- D = !0;
9080
+ A = !0;
9065
9081
  const C = this.weatherLayers[b].raw;
9066
9082
  if (C) {
9067
9083
  const v = [];
9068
- for (const k in C.LineString) {
9069
- const T = C.LineString[k];
9070
- for (const z of T)
9084
+ for (const _ in C.LineString) {
9085
+ const T = C.LineString[_];
9086
+ for (const k of T)
9071
9087
  v.push(
9072
- H.lineString(z, {
9073
- val: Number(k)
9088
+ H.lineString(k, {
9089
+ val: Number(_)
9074
9090
  })
9075
9091
  );
9076
9092
  }
9077
- for (const k in C.Point)
9078
- C.Point[k].lng.forEach((T, z) => {
9093
+ for (const _ in C.Point)
9094
+ C.Point[_].lng.forEach((T, k) => {
9079
9095
  T = G.convertToStdLng(T), v.push(
9080
- H.point([T, k], {
9081
- val: C.Point[k].val[z],
9082
- type: C.Point[k].type[z]
9096
+ H.point([T, _], {
9097
+ val: C.Point[_].val[k],
9098
+ type: C.Point[_].type[k]
9083
9099
  })
9084
9100
  );
9085
9101
  });
@@ -9088,7 +9104,7 @@ const bn = {
9088
9104
  }
9089
9105
  o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("prmsl elapsed: ", o, ", total: ", e += o);
9090
9106
  }
9091
- I.length && (this.weatherLayers[b].data = H.featureCollection(I)), D && (this.weatherLayers[b].version = Math.random() + 1);
9107
+ I.length && (this.weatherLayers[b].data = H.featureCollection(I)), A && (this.weatherLayers[b].version = Math.random() + 1);
9092
9108
  }
9093
9109
  }
9094
9110
  },
@@ -9131,7 +9147,7 @@ const bn = {
9131
9147
  }, Rn = { class: "text-body-1 py-2" }, On = { class: "text-body-1 font-weight-medium" }, Bn = { class: "text-body-2 text-label" }, En = { class: "text-body-2 text-label mb-3" }, jn = { class: "text-body-1 font-weight-medium" }, Nn = { class: "text-body-2 text-label" }, Fn = { class: "text-body-2 text-label mb-3" }, Hn = { class: "text-body-1 py-2" }, Un = { class: "text-body-1 font-weight-medium" }, Wn = { class: "text-body-2 text-label" }, Gn = { class: "text-body-2 text-label mb-3" }, Vn = { class: "text-body-1 font-weight-medium" }, Zn = { class: "text-body-2 text-label" }, qn = { class: "text-body-2 text-label mb-3" }, Yn = { class: "text-body-1 py-2" }, Kn = { class: "text-body-1 font-weight-medium" }, Xn = { class: "text-body-2 text-label" }, $n = { class: "text-body-2 text-label mb-3" };
9132
9148
  function Qn(t, e, o, i, a, r) {
9133
9149
  var pe, se, $, ae, ue, ne, F, ce, xe, Le, Pe, Ae, De, Re, _e;
9134
- const s = x("VBtn"), c = x("VTooltip"), n = x("VCol"), g = x("VRow"), p = x("VCardText"), f = x("VDivider"), w = x("VCard"), L = x("VSwitch"), _ = x("VCardTitle"), P = x("VCardItem"), b = x("VCheckbox"), D = x("VRadio"), I = x("VBtnToggle"), C = x("IdmWindBarb"), v = x("IdmSigWaveHeight"), k = x("IdmCurrentDirection"), T = x("IdmPrmsl"), z = x("IdmWindParticle"), R = x("IdmCurrentParticle"), V = x("IdmWave"), K = x("IdmSwell"), X = x("IdmIceEdge"), Z = x("IdmIceCover"), J = x("IdmIceThickness"), ee = x("IdmPrecip3h"), Q = x("IdmVisibility"), re = x("IdmWaterTemp"), de = x("IdmTemp");
9150
+ const s = x("VBtn"), c = x("VTooltip"), n = x("VCol"), g = x("VRow"), p = x("VCardText"), f = x("VDivider"), w = x("VCard"), P = x("VSwitch"), z = x("VCardTitle"), L = x("VCardItem"), b = x("VCheckbox"), A = x("VRadio"), I = x("VBtnToggle"), C = x("IdmWindBarb"), v = x("IdmSigWaveHeight"), _ = x("IdmCurrentDirection"), T = x("IdmPrmsl"), k = x("IdmWindParticle"), R = x("IdmCurrentParticle"), V = x("IdmWave"), K = x("IdmSwell"), X = x("IdmIceEdge"), Z = x("IdmIceCover"), J = x("IdmIceThickness"), ee = x("IdmPrecip3h"), Q = x("IdmVisibility"), re = x("IdmWaterTemp"), de = x("IdmTemp");
9135
9151
  return y(), S("div", wn, [
9136
9152
  l("div", {
9137
9153
  class: "menu-bar-box transition pa-1",
@@ -9186,7 +9202,7 @@ function Qn(t, e, o, i, a, r) {
9186
9202
  _: 1
9187
9203
  })
9188
9204
  ], 4),
9189
- a.legendToggle ? (y(), A(w, {
9205
+ a.legendToggle ? (y(), D(w, {
9190
9206
  key: 0,
9191
9207
  width: "435",
9192
9208
  elevation: "16",
@@ -9199,7 +9215,7 @@ function Qn(t, e, o, i, a, r) {
9199
9215
  e[9] || (e[9] = l("div", { class: "text-body-1 font-weight-600 mb-2" }, "Wind Level", -1)),
9200
9216
  d(g, { class: "ma-0 ml-n1 text-body-2" }, {
9201
9217
  default: u(() => [
9202
- (y(!0), S(be, null, we(a.legend.barbs, (U, oe) => (y(), A(n, {
9218
+ (y(!0), S(be, null, we(a.legend.barbs, (U, oe) => (y(), D(n, {
9203
9219
  key: U,
9204
9220
  cols: "6",
9205
9221
  class: "d-flex flex-row justify-start align-center py-1 px-0 ma-0"
@@ -9231,7 +9247,7 @@ function Qn(t, e, o, i, a, r) {
9231
9247
  style: { width: "100px" }
9232
9248
  }, {
9233
9249
  default: u(() => [
9234
- (y(!0), S(be, null, we(a.legend.sigWaveHeight, (U, oe) => (y(), A(n, {
9250
+ (y(!0), S(be, null, we(a.legend.sigWaveHeight, (U, oe) => (y(), D(n, {
9235
9251
  key: oe,
9236
9252
  cols: "12",
9237
9253
  class: "d-flex flex-row justify-start align-center py-1 px-0 ma-0"
@@ -9263,7 +9279,7 @@ function Qn(t, e, o, i, a, r) {
9263
9279
  style: { width: "110px" }
9264
9280
  }, {
9265
9281
  default: u(() => [
9266
- (y(!0), S(be, null, we(a.legend.current, (U, oe) => (y(), A(n, {
9282
+ (y(!0), S(be, null, we(a.legend.current, (U, oe) => (y(), D(n, {
9267
9283
  key: oe,
9268
9284
  cols: "12",
9269
9285
  class: "d-flex flex-row justify-center align-center py-1 px-0 ma-0"
@@ -9299,7 +9315,7 @@ function Qn(t, e, o, i, a, r) {
9299
9315
  l("div", Sn, [
9300
9316
  l("div", In, [
9301
9317
  l("div", Mn, h(t.$t("weather.weather")), 1),
9302
- d(L, {
9318
+ d(P, {
9303
9319
  modelValue: a.autoActive,
9304
9320
  "onUpdate:modelValue": e[1] || (e[1] = (U) => a.autoActive = U),
9305
9321
  class: "small-switch",
@@ -9330,9 +9346,9 @@ function Qn(t, e, o, i, a, r) {
9330
9346
  elevation: "0"
9331
9347
  }, {
9332
9348
  default: u(() => [
9333
- d(P, { class: "border-b-thin" }, {
9349
+ d(L, { class: "border-b-thin" }, {
9334
9350
  default: u(() => [
9335
- d(_, {
9351
+ d(z, {
9336
9352
  class: "text-subtitle-1 font-weight-medium",
9337
9353
  style: { "font-size": "16px !important" }
9338
9354
  }, {
@@ -9346,7 +9362,7 @@ function Qn(t, e, o, i, a, r) {
9346
9362
  }),
9347
9363
  d(p, { class: "py-2" }, {
9348
9364
  default: u(() => [
9349
- (y(!0), S(be, null, we(a.tagLayers.filter((U) => U.overlays), (U) => (y(), A(b, {
9365
+ (y(!0), S(be, null, we(a.tagLayers.filter((U) => U.overlays), (U) => (y(), D(b, {
9350
9366
  key: U.key,
9351
9367
  modelValue: a.checkList,
9352
9368
  "onUpdate:modelValue": e[2] || (e[2] = (oe) => a.checkList = oe),
@@ -9370,9 +9386,9 @@ function Qn(t, e, o, i, a, r) {
9370
9386
  elevation: "0"
9371
9387
  }, {
9372
9388
  default: u(() => [
9373
- d(P, { class: "border-b-thin" }, {
9389
+ d(L, { class: "border-b-thin" }, {
9374
9390
  default: u(() => [
9375
- d(_, {
9391
+ d(z, {
9376
9392
  class: "text-subtitle-1 font-weight-medium",
9377
9393
  style: { "font-size": "16px !important" }
9378
9394
  }, {
@@ -9389,7 +9405,7 @@ function Qn(t, e, o, i, a, r) {
9389
9405
  (y(!0), S(be, null, we(a.tagLayers.filter((U) => !U.overlays && U.key !== "ice-thickness"), (U) => (y(), S(be, {
9390
9406
  key: U.key
9391
9407
  }, [
9392
- d(D, {
9408
+ d(A, {
9393
9409
  modelValue: a.renderKey,
9394
9410
  "onUpdate:modelValue": e[3] || (e[3] = (oe) => a.renderKey = oe),
9395
9411
  label: t.$t(`weather.${U.locale}`),
@@ -9404,7 +9420,7 @@ function Qn(t, e, o, i, a, r) {
9404
9420
  }, null, 8, ["modelValue", "label", "value", "disabled", "onClick"]),
9405
9421
  a.renderKey === "wind-particle" && U.key === "wind-particle" ? (y(), S("div", An, [
9406
9422
  l("span", null, h(t.$t("weather.particleAnimatiom")), 1),
9407
- d(L, {
9423
+ d(P, {
9408
9424
  modelValue: a.showWindParticle,
9409
9425
  "onUpdate:modelValue": e[4] || (e[4] = (oe) => a.showWindParticle = oe),
9410
9426
  label: "",
@@ -9418,7 +9434,7 @@ function Qn(t, e, o, i, a, r) {
9418
9434
  ])) : O("", !0),
9419
9435
  a.renderKey === "current-particle" && U.key === "current-particle" ? (y(), S("div", Dn, [
9420
9436
  l("span", null, h(t.$t("weather.particleAnimatiom")), 1),
9421
- d(L, {
9437
+ d(P, {
9422
9438
  modelValue: a.showCurrentParticle,
9423
9439
  "onUpdate:modelValue": e[5] || (e[5] = (oe) => a.showCurrentParticle = oe),
9424
9440
  label: "",
@@ -9430,7 +9446,7 @@ function Qn(t, e, o, i, a, r) {
9430
9446
  "hide-details": ""
9431
9447
  }, null, 8, ["modelValue"])
9432
9448
  ])) : O("", !0),
9433
- a.renderKey === "ice-forecast" && U.key === "ice-forecast" ? (y(), A(I, {
9449
+ a.renderKey === "ice-forecast" && U.key === "ice-forecast" ? (y(), D(I, {
9434
9450
  key: 2,
9435
9451
  modelValue: a.iceToggleValue,
9436
9452
  "onUpdate:modelValue": e[6] || (e[6] = (oe) => a.iceToggleValue = oe),
@@ -9485,9 +9501,9 @@ function Qn(t, e, o, i, a, r) {
9485
9501
  elevation: "0"
9486
9502
  }, {
9487
9503
  default: u(() => [
9488
- d(P, { class: "border-b-thin" }, {
9504
+ d(L, { class: "border-b-thin" }, {
9489
9505
  default: u(() => [
9490
- d(_, {
9506
+ d(z, {
9491
9507
  class: "text-subtitle-1 font-weight-medium",
9492
9508
  style: { "font-size": "16px !important" }
9493
9509
  }, {
@@ -9532,7 +9548,7 @@ function Qn(t, e, o, i, a, r) {
9532
9548
  })
9533
9549
  ], 2)
9534
9550
  ], 6),
9535
- o.map ? (y(), A(C, B({
9551
+ o.map ? (y(), D(C, B({
9536
9552
  key: 1,
9537
9553
  ref: "windBarb",
9538
9554
  map: o.map,
@@ -9541,7 +9557,7 @@ function Qn(t, e, o, i, a, r) {
9541
9557
  wind: (pe = a.weatherLayers) == null ? void 0 : pe.wind,
9542
9558
  "menu-toggle": o.menuToggle
9543
9559
  }, t.$attrs), null, 16, ["map", "map-feather", "wind", "menu-toggle"])) : O("", !0),
9544
- o.map ? (y(), A(v, B({
9560
+ o.map ? (y(), D(v, B({
9545
9561
  key: 2,
9546
9562
  map: o.map,
9547
9563
  "before-layer": "empty-layer-2",
@@ -9549,7 +9565,7 @@ function Qn(t, e, o, i, a, r) {
9549
9565
  "menu-toggle": o.menuToggle,
9550
9566
  "active-weather-layers": a.activeWeatherLayers
9551
9567
  }, t.$attrs), null, 16, ["map", "sig-wave-height", "menu-toggle", "active-weather-layers"])) : O("", !0),
9552
- o.map ? (y(), A(k, B({
9568
+ o.map ? (y(), D(_, B({
9553
9569
  key: 3,
9554
9570
  map: o.map,
9555
9571
  "map-feather": o.mapFeather,
@@ -9557,7 +9573,7 @@ function Qn(t, e, o, i, a, r) {
9557
9573
  current: ($ = a.weatherLayers) == null ? void 0 : $.current,
9558
9574
  "menu-toggle": o.menuToggle
9559
9575
  }, t.$attrs), null, 16, ["map", "map-feather", "current", "menu-toggle"])) : O("", !0),
9560
- o.map ? (y(), A(T, B({
9576
+ o.map ? (y(), D(T, B({
9561
9577
  key: 4,
9562
9578
  map: o.map,
9563
9579
  "before-layer": "empty-layer-2",
@@ -9565,68 +9581,68 @@ function Qn(t, e, o, i, a, r) {
9565
9581
  "menu-toggle": o.menuToggle,
9566
9582
  "active-weather-layers": a.activeWeatherLayers
9567
9583
  }, t.$attrs, { theme: o.theme }), null, 16, ["map", "prmsl", "menu-toggle", "active-weather-layers", "theme"])) : O("", !0),
9568
- o.map ? (y(), A(z, B({
9584
+ o.map ? (y(), D(k, B({
9569
9585
  key: 5,
9570
9586
  viewport: a.viewport,
9571
9587
  factor: (ue = a.weatherLayers) == null ? void 0 : ue["wind-particle"],
9572
9588
  "menu-toggle": o.menuToggle
9573
9589
  }, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : O("", !0),
9574
- o.map ? (y(), A(R, B({
9590
+ o.map ? (y(), D(R, B({
9575
9591
  key: 6,
9576
9592
  viewport: a.viewport,
9577
9593
  factor: (ne = a.weatherLayers) == null ? void 0 : ne["current-particle"],
9578
9594
  "menu-toggle": o.menuToggle
9579
9595
  }, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : O("", !0),
9580
- o.map ? (y(), A(V, B({
9596
+ o.map ? (y(), D(V, B({
9581
9597
  key: 7,
9582
9598
  viewport: a.viewport,
9583
9599
  factor: (F = a.weatherLayers) == null ? void 0 : F["sig-wave"],
9584
9600
  "menu-toggle": o.menuToggle
9585
9601
  }, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : O("", !0),
9586
- o.map ? (y(), A(K, B({
9602
+ o.map ? (y(), D(K, B({
9587
9603
  key: 8,
9588
9604
  map: o.map,
9589
9605
  swell: (ce = a.weatherLayers) == null ? void 0 : ce.swell,
9590
9606
  "menu-toggle": o.menuToggle,
9591
9607
  "active-weather-layers": a.activeWeatherLayers
9592
9608
  }, t.$attrs), null, 16, ["map", "swell", "menu-toggle", "active-weather-layers"])) : O("", !0),
9593
- o.map ? (y(), A(X, B({
9609
+ o.map ? (y(), D(X, B({
9594
9610
  key: 9,
9595
9611
  viewport: a.viewport,
9596
9612
  factor: (xe = a.weatherLayers) == null ? void 0 : xe["ice-edge"],
9597
9613
  "menu-toggle": o.menuToggle
9598
9614
  }, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : O("", !0),
9599
- o.map ? (y(), A(Z, B({
9615
+ o.map ? (y(), D(Z, B({
9600
9616
  key: 10,
9601
9617
  viewport: a.viewport,
9602
9618
  factor: (Le = a.weatherLayers) == null ? void 0 : Le["ice-cover"],
9603
9619
  "menu-toggle": o.menuToggle
9604
9620
  }, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : O("", !0),
9605
- o.map ? (y(), A(J, B({
9621
+ o.map ? (y(), D(J, B({
9606
9622
  key: 11,
9607
9623
  viewport: a.viewport,
9608
9624
  factor: (Pe = a.weatherLayers) == null ? void 0 : Pe["ice-thickness"],
9609
9625
  "menu-toggle": o.menuToggle
9610
9626
  }, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : O("", !0),
9611
- o.map ? (y(), A(ee, B({
9627
+ o.map ? (y(), D(ee, B({
9612
9628
  key: 12,
9613
9629
  viewport: a.viewport,
9614
9630
  factor: (Ae = a.weatherLayers) == null ? void 0 : Ae.precip3h,
9615
9631
  "menu-toggle": o.menuToggle
9616
9632
  }, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : O("", !0),
9617
- o.map ? (y(), A(Q, B({
9633
+ o.map ? (y(), D(Q, B({
9618
9634
  key: 13,
9619
9635
  viewport: a.viewport,
9620
9636
  factor: (De = a.weatherLayers) == null ? void 0 : De.visibility,
9621
9637
  "menu-toggle": o.menuToggle
9622
9638
  }, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : O("", !0),
9623
- o.map ? (y(), A(re, B({
9639
+ o.map ? (y(), D(re, B({
9624
9640
  key: 14,
9625
9641
  viewport: a.viewport,
9626
9642
  factor: (Re = a.weatherLayers) == null ? void 0 : Re["water-temp"],
9627
9643
  "menu-toggle": o.menuToggle
9628
9644
  }, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : O("", !0),
9629
- o.map ? (y(), A(de, B({
9645
+ o.map ? (y(), D(de, B({
9630
9646
  key: 15,
9631
9647
  viewport: a.viewport,
9632
9648
  factor: (_e = a.weatherLayers) == null ? void 0 : _e.temp,
@@ -9952,11 +9968,11 @@ class Za {
9952
9968
  const a = e.toLowerCase().split(","), r = [], s = [];
9953
9969
  for (const c of a) {
9954
9970
  let n = eo.find((p) => {
9955
- var f, w, L;
9956
- return ((f = p.models) == null ? void 0 : f.includes(c)) || ((w = p.alias) == null ? void 0 : w.toLowerCase()) === c || ((L = p.name) == null ? void 0 : L.toLowerCase()) === c;
9971
+ var f, w, P;
9972
+ return ((f = p.models) == null ? void 0 : f.includes(c)) || ((w = p.alias) == null ? void 0 : w.toLowerCase()) === c || ((P = p.name) == null ? void 0 : P.toLowerCase()) === c;
9957
9973
  }), g = to.find((p) => {
9958
- var f, w, L;
9959
- return ((f = p.models) == null ? void 0 : f.includes(c)) || ((w = p.alias) == null ? void 0 : w.toLowerCase()) === c || ((L = p.name) == null ? void 0 : L.toLowerCase()) === c;
9974
+ var f, w, P;
9975
+ return ((f = p.models) == null ? void 0 : f.includes(c)) || ((w = p.alias) == null ? void 0 : w.toLowerCase()) === c || ((P = p.name) == null ? void 0 : P.toLowerCase()) === c;
9960
9976
  });
9961
9977
  n = n || eo.find((p) => {
9962
9978
  var f, w;
@@ -9981,7 +9997,7 @@ class Za {
9981
9997
  }), a;
9982
9998
  }
9983
9999
  static pickHourly(e, o) {
9984
- var i, a, r, s, c, n, g, p, f, w, L, _, P, b, D, I, C, v, k, T, z, R, V, K, X, Z, J, ee, Q, re, de, pe, se, $, ae, ue, ne, F, ce, xe, Le, Pe, Ae, De, Re, _e, U, oe, je, Ie;
10000
+ var i, a, r, s, c, n, g, p, f, w, P, z, L, b, A, I, C, v, _, T, k, R, V, K, X, Z, J, ee, Q, re, de, pe, se, $, ae, ue, ne, F, ce, xe, Le, Pe, Ae, De, Re, _e, U, oe, je, Ie;
9985
10001
  const ge = typeof o == "string" ? M(o) : o, fe = e == null ? void 0 : e.weather, W = e == null ? void 0 : e.marine, Ce = M((a = (i = fe == null ? void 0 : fe[0]) == null ? void 0 : i.hourly) == null ? void 0 : a.date).utc(), te = Ce.clone().add((c = (s = (r = fe == null ? void 0 : fe[0]) == null ? void 0 : r.hourly) == null ? void 0 : s.time) == null ? void 0 : c.at(0), "h"), le = Ce.clone().add((p = (g = (n = fe == null ? void 0 : fe[0]) == null ? void 0 : n.hourly) == null ? void 0 : g.time) == null ? void 0 : p.at(-1), "h"), Oe = [];
9986
10002
  if (ge.isBetween(te, le, "millisecond", "[]")) {
9987
10003
  const j = ge.utc().diff(te, "h", !1);
@@ -9995,22 +10011,22 @@ class Za {
9995
10011
  for (let Te = j - (j - 1) % 6; Te <= j; Te++)
9996
10012
  Ee += (w = q == null ? void 0 : q.precipitation) == null ? void 0 : w.at(Te);
9997
10013
  ye = {
9998
- temp: (L = q == null ? void 0 : q.temperature_2m) == null ? void 0 : L.at(j),
9999
- apparentTemp: (_ = q == null ? void 0 : q.apparent_temperature) == null ? void 0 : _.at(j),
10000
- rh: (P = q == null ? void 0 : q.relative_humidity_2m) == null ? void 0 : P.at(j),
10014
+ temp: (P = q == null ? void 0 : q.temperature_2m) == null ? void 0 : P.at(j),
10015
+ apparentTemp: (z = q == null ? void 0 : q.apparent_temperature) == null ? void 0 : z.at(j),
10016
+ rh: (L = q == null ? void 0 : q.relative_humidity_2m) == null ? void 0 : L.at(j),
10001
10017
  dp: (b = q == null ? void 0 : q.dew_point_2m) == null ? void 0 : b.at(j),
10002
10018
  precip: {
10003
- probability: (D = q == null ? void 0 : q.precipitation_probability) == null ? void 0 : D.at(j),
10019
+ probability: (A = q == null ? void 0 : q.precipitation_probability) == null ? void 0 : A.at(j),
10004
10020
  sum: (I = q == null ? void 0 : q.precipitation) == null ? void 0 : I.at(j),
10005
10021
  sum3Hours: Math.round(Be * 100) / 100,
10006
10022
  sum6Hours: Math.round(Ee * 100) / 100
10007
10023
  },
10008
10024
  pmsl: (C = q == null ? void 0 : q.pressure_msl) == null ? void 0 : C.at(j),
10009
10025
  psurf: (v = q == null ? void 0 : q.surface_pressure) == null ? void 0 : v.at(j),
10010
- code: (k = q == null ? void 0 : q.weather_code) == null ? void 0 : k.at(j),
10026
+ code: (_ = q == null ? void 0 : q.weather_code) == null ? void 0 : _.at(j),
10011
10027
  visibility: this.m2nm((T = q == null ? void 0 : q.visibility) == null ? void 0 : T.at(j)),
10012
10028
  wind: {
10013
- speed: (z = q == null ? void 0 : q.wind_speed_10m) == null ? void 0 : z.at(j),
10029
+ speed: (k = q == null ? void 0 : q.wind_speed_10m) == null ? void 0 : k.at(j),
10014
10030
  kts: (R = q == null ? void 0 : q.wind_speed_10m) == null ? void 0 : R.at(j),
10015
10031
  degree: (V = q == null ? void 0 : q.wind_direction_10m) == null ? void 0 : V.at(j),
10016
10032
  bearing: ((K = q == null ? void 0 : q.wind_direction_10m) == null ? void 0 : K.at(j)) !== null ? (((X = q == null ? void 0 : q.wind_direction_10m) == null ? void 0 : X.at(j)) + 180) % 360 : null,
@@ -10090,7 +10106,7 @@ class Za {
10090
10106
  };
10091
10107
  }
10092
10108
  static pickDaily(e, o) {
10093
- var i, a, r, s, c, n, g, p, f, w, L, _, P, b, D, I, C, v, k, T, z, R, V, K, X, Z, J, ee, Q, re, de, pe, se, $, ae, ue, ne, F, ce, xe, Le, Pe, Ae, De;
10109
+ var i, a, r, s, c, n, g, p, f, w, P, z, L, b, A, I, C, v, _, T, k, R, V, K, X, Z, J, ee, Q, re, de, pe, se, $, ae, ue, ne, F, ce, xe, Le, Pe, Ae, De;
10094
10110
  const Re = typeof o == "string" ? M(o) : o, _e = e == null ? void 0 : e.weather, U = e == null ? void 0 : e.marine, oe = M((r = (a = (i = _e == null ? void 0 : _e[0]) == null ? void 0 : i.daily) == null ? void 0 : a.time) == null ? void 0 : r.at(0)), je = M((n = (c = (s = _e == null ? void 0 : _e[0]) == null ? void 0 : s.daily) == null ? void 0 : c.time) == null ? void 0 : n.at(-1)), Ie = [];
10095
10111
  if (Re.isBetween(oe, je, "millisecond", "[]")) {
10096
10112
  let ge, fe;
@@ -10106,21 +10122,21 @@ class Za {
10106
10122
  mean: (w = te.temperature_2m_mean) == null ? void 0 : w.at(W)
10107
10123
  },
10108
10124
  apparentTemp: {
10109
- max: (L = te.apparent_temperature_max) == null ? void 0 : L.at(W),
10110
- min: (_ = te.apparent_temperature_min) == null ? void 0 : _.at(W)
10125
+ max: (P = te.apparent_temperature_max) == null ? void 0 : P.at(W),
10126
+ min: (z = te.apparent_temperature_min) == null ? void 0 : z.at(W)
10111
10127
  },
10112
10128
  precip: {
10113
- sum: (P = te.precipitation_sum) == null ? void 0 : P.at(W),
10129
+ sum: (L = te.precipitation_sum) == null ? void 0 : L.at(W),
10114
10130
  rainSum: (b = te.rain_sum) == null ? void 0 : b.at(W),
10115
- snowfallSum: (D = te.snowfall_sum) == null ? void 0 : D.at(W),
10131
+ snowfallSum: (A = te.snowfall_sum) == null ? void 0 : A.at(W),
10116
10132
  showersSum: (I = te.showers_sum) == null ? void 0 : I.at(W),
10117
10133
  hours: (C = te.precipitation_hours) == null ? void 0 : C.at(W),
10118
10134
  probability: (v = te.precipitation_probability_max) == null ? void 0 : v.at(W)
10119
10135
  },
10120
10136
  rh: {
10121
- max: (k = te.relative_humidity_2m_max) == null ? void 0 : k.at(W),
10137
+ max: (_ = te.relative_humidity_2m_max) == null ? void 0 : _.at(W),
10122
10138
  min: (T = te.relative_humidity_2m_min) == null ? void 0 : T.at(W),
10123
- mean: (z = te.relative_humidity_2m_mean) == null ? void 0 : z.at(W)
10139
+ mean: (k = te.relative_humidity_2m_mean) == null ? void 0 : k.at(W)
10124
10140
  },
10125
10141
  wind: {
10126
10142
  speed: (R = te.wind_speed_10m_max) == null ? void 0 : R.at(W),
@@ -10647,11 +10663,23 @@ const ec = {
10647
10663
  };
10648
10664
  },
10649
10665
  computed: {
10666
+ hoverLayers() {
10667
+ return [
10668
+ this.forecastNameLayer,
10669
+ this.forecastLayer,
10670
+ this.historyLayer,
10671
+ this.forecastModelLayer,
10672
+ this.pointCircleLayer,
10673
+ this.pointLabelLayer,
10674
+ this.historyPointCircleLayer,
10675
+ this.historyPointLabelLayer
10676
+ ];
10677
+ },
10650
10678
  computeTime() {
10651
10679
  return (t) => {
10652
10680
  if (t) {
10653
10681
  const e = M(t).utcOffset(this.timeZone), o = this.timeZone < 0 ? this.timeZone : "+" + this.timeZone;
10654
- return console.log("timeZone changed 111", this.timeZone), `${e == null ? void 0 : e.format("MMM-DD/HHmm")} ( UTC${o} ) ${e == null ? void 0 : e.fromNow()} `;
10682
+ return `${e == null ? void 0 : e.format("MMM-DD/HHmm")} ( UTC${o} ) ${e == null ? void 0 : e.fromNow()} `;
10655
10683
  }
10656
10684
  return "-";
10657
10685
  };
@@ -10699,8 +10727,8 @@ const ec = {
10699
10727
  }
10700
10728
  },
10701
10729
  timeZone: {
10702
- handler() {
10703
- this.handleRefresh();
10730
+ handler(t, e) {
10731
+ t !== e && this.handleRefresh();
10704
10732
  }
10705
10733
  }
10706
10734
  },
@@ -10730,16 +10758,16 @@ const ec = {
10730
10758
  },
10731
10759
  responseType: /\.(jpg|png)$/.test(g.tropicals) ? "blob" : "json"
10732
10760
  }).then((p) => {
10733
- var L, _, P;
10734
- const f = Va.convert2Geojson(((L = p == null ? void 0 : p.data) == null ? void 0 : L.data) || (p == null ? void 0 : p.data));
10735
- ((P = (_ = p == null ? void 0 : p.config) == null ? void 0 : _.headers) == null ? void 0 : P.key) && f && (this.tropicals = {
10761
+ var P, z, L;
10762
+ const f = Va.convert2Geojson(((P = p == null ? void 0 : p.data) == null ? void 0 : P.data) || (p == null ? void 0 : p.data));
10763
+ ((L = (z = p == null ? void 0 : p.config) == null ? void 0 : z.headers) == null ? void 0 : L.key) && f && (this.tropicals = {
10736
10764
  data: f,
10737
10765
  active: !0,
10738
10766
  cached: !0,
10739
10767
  type: "json",
10740
10768
  etime: n.data.etime,
10741
10769
  version: Math.random() + 1
10742
- }, this.handleInit());
10770
+ });
10743
10771
  }).catch((p) => {
10744
10772
  console.log(`[${key}] fetch layer error: ${p}`);
10745
10773
  });
@@ -10755,28 +10783,15 @@ const ec = {
10755
10783
  }), this.handleInit();
10756
10784
  },
10757
10785
  handleInit() {
10758
- var t, e, o, i, a, r, s, c, n, g;
10759
- this.tropicals && (this.handleRender(), (t = this.map) == null || t.on(
10760
- "click",
10761
- [
10762
- this.forecastNameLayer,
10763
- this.forecastLayer,
10764
- this.historyLayer,
10765
- this.forecastModelLayer,
10766
- this.pointCircleLayer,
10767
- this.pointLabelLayer,
10768
- this.historyPointCircleLayer,
10769
- this.historyPointLabelLayer
10770
- ],
10771
- this.handleClick
10772
- )), ((i = (o = (e = this.tropicals) == null ? void 0 : e.data) == null ? void 0 : o.features) == null ? void 0 : i.length) > 0 ? (s = (r = (a = this.$parent) == null ? void 0 : a.$refs) == null ? void 0 : r.idmBottomBar) == null || s.handleToggle("tropical", !0) : (g = (n = (c = this.$parent) == null ? void 0 : c.$refs) == null ? void 0 : n.idmBottomBar) == null || g.handleToggle("tropical", !1);
10786
+ var t, e, o, i, a, r, s, c, n, g, p, f;
10787
+ this.handleClear(), this.tropicals && this.map && (this.handleRender(), (t = this.map) == null || t.on("click", this.hoverLayers, this.handleClick), (e = this.map) == null || e.on("mousemove", this.hoverLayers, this.handleHover), (o = this.map) == null || o.on("mouseleave", this.hoverLayers, this.handleLeave)), ((r = (a = (i = this.tropicals) == null ? void 0 : i.data) == null ? void 0 : a.features) == null ? void 0 : r.length) > 0 ? (n = (c = (s = this.$parent) == null ? void 0 : s.$refs) == null ? void 0 : c.idmBottomBar) == null || n.handleToggle("tropical", !0) : (f = (p = (g = this.$parent) == null ? void 0 : g.$refs) == null ? void 0 : p.idmBottomBar) == null || f.handleToggle("tropical", !1);
10773
10788
  },
10774
10789
  handleRender() {
10775
10790
  var e, o, i, a, r, s, c, n, g, p;
10776
- if (this.tropicals) {
10791
+ if (this.tropicals && this.map) {
10777
10792
  const f = (/* @__PURE__ */ new Date()).valueOf();
10778
- let w = 0, L = 0;
10779
- (e = this.map) != null && e.getSource(this.source) ? ((i = this.map) == null || i.getSource(this.source).setData((o = this.tropicals) != null && o.active ? this.tropicals.data : this.empty), L = (/* @__PURE__ */ new Date()).valueOf() - (f + w), console.log("[tropicals] update elapsed: ", L, ", total: ", w += L)) : (this.map.addSource(this.source, {
10793
+ let w = 0, P = 0;
10794
+ (e = this.map) != null && e.getSource(this.source) ? ((i = this.map) == null || i.getSource(this.source).setData((o = this.tropicals) != null && o.active ? this.tropicals.data : this.empty), P = (/* @__PURE__ */ new Date()).valueOf() - (f + w), console.log("[tropicals] update elapsed: ", P, ", total: ", w += P)) : (this.map.addSource(this.source, {
10780
10795
  type: "geojson",
10781
10796
  data: (a = this.tropicals) != null && a.active ? (r = this.tropicals) == null ? void 0 : r.data : this.empty
10782
10797
  }), this.map.addLayer({
@@ -10873,7 +10888,7 @@ const ec = {
10873
10888
  ],
10874
10889
  "text-halo-width": 4
10875
10890
  }
10876
- }), L = (/* @__PURE__ */ new Date()).valueOf() - (f + w), console.log("[tropical] add elapsed: ", L, ", total: ", w += L)), (s = this.map) != null && s.getSource(this.clusterSource) ? ((n = this.map) == null || n.getSource(this.clusterSource).setData((c = this.tropicals) != null && c.active ? this.tropicals.data : this.empty), L = (/* @__PURE__ */ new Date()).valueOf() - (f + w), console.log("[tropical] update elapsed: ", L, ", total: ", w += L)) : (this.map.addSource(this.clusterSource, {
10891
+ }), P = (/* @__PURE__ */ new Date()).valueOf() - (f + w), console.log("[tropical] add elapsed: ", P, ", total: ", w += P)), (s = this.map) != null && s.getSource(this.clusterSource) ? ((n = this.map) == null || n.getSource(this.clusterSource).setData((c = this.tropicals) != null && c.active ? this.tropicals.data : this.empty), P = (/* @__PURE__ */ new Date()).valueOf() - (f + w), console.log("[tropical] update elapsed: ", P, ", total: ", w += P)) : (this.map.addSource(this.clusterSource, {
10877
10892
  type: "geojson",
10878
10893
  data: (g = this.tropicals) != null && g.active ? (p = this.tropicals) == null ? void 0 : p.data : this.empty
10879
10894
  // cluster: true,
@@ -10989,31 +11004,18 @@ const ec = {
10989
11004
  "text-halo-color": "#ffffff",
10990
11005
  "text-halo-width": 1
10991
11006
  }
10992
- }), L = (/* @__PURE__ */ new Date()).valueOf() - (f + w), console.log("[tropical] add elapsed: ", L, ", total: ", w += L));
11007
+ }), P = (/* @__PURE__ */ new Date()).valueOf() - (f + w), console.log("[tropical] add elapsed: ", P, ", total: ", w += P));
10993
11008
  }
10994
11009
  this.handleDrawCircle();
10995
11010
  const t = Va.interpolate(this.tropicals, 1);
10996
11011
  this.interpolateData = JSON.parse(JSON.stringify(t)), this.handleDateChange();
10997
11012
  },
10998
11013
  handleClear() {
10999
- var t, e;
11000
- this.map && (this.map.getLayer(this.historyLayer) && this.map.removeLayer(this.historyLayer), this.map.getLayer(this.forecastLayer) && this.map.removeLayer(this.forecastLayer), this.map.getLayer(this.forecastModelLayer) && this.map.removeLayer(this.forecastModelLayer), this.map.getLayer(this.forecastNameLayer) && this.map.removeLayer(this.forecastNameLayer), this.map.getLayer(this.pointCircleLayer) && this.map.removeLayer(this.pointCircleLayer), this.map.getLayer(this.pointCircleLayer + "-border") && this.map.removeLayer(this.pointCircleLayer + "-border"), this.map.getLayer(this.pointLabelLayer) && this.map.removeLayer(this.pointLabelLayer), this.map.getLayer(this.historyPointCircleLayer) && this.map.removeLayer(this.historyPointCircleLayer), this.map.getLayer(this.historyPointCircleLayer + "-border") && this.map.removeLayer(this.historyPointCircleLayer + "-border"), this.map.getLayer(this.historyPointCircleLayer + "-inner") && this.map.removeLayer(this.historyPointCircleLayer + "-inner"), this.map.getLayer(this.historyPointLabelLayer) && this.map.removeLayer(this.historyPointLabelLayer), this.map.getLayer(this.interpolateLineLayer) && this.map.removeLayer(this.interpolateLineLayer), (t = this.interpolateMarkers) == null || t.forEach((o) => o == null ? void 0 : o.remove()), this.map.getSource(this.source) && this.map.removeSource(this.source), this.map.getSource(this.clusterSource) && this.map.removeSource(this.clusterSource), this.map.getSource(this.interpolateSource) && this.map.removeSource(this.interpolateSource), this.map.getLayer(this.circleLayer) && this.map.removeLayer(this.circleLayer), this.map.getSource(this.circleSource) && this.map.removeSource(this.circleSource)), (e = this.map) == null || e.off(
11001
- "click",
11002
- [
11003
- this.forecastNameLayer,
11004
- this.forecastLayer,
11005
- this.historyLayer,
11006
- this.forecastModelLayer,
11007
- this.pointCircleLayer,
11008
- this.pointLabelLayer,
11009
- this.historyPointCircleLayer,
11010
- this.historyPointLabelLayer
11011
- ],
11012
- this.handleClick
11013
- ), this.showTropicalsInfo = !1;
11014
+ var t, e, o, i, a;
11015
+ this.map && (this.map.getLayer(this.historyLayer) && this.map.removeLayer(this.historyLayer), this.map.getLayer(this.forecastLayer) && this.map.removeLayer(this.forecastLayer), this.map.getLayer(this.forecastModelLayer) && this.map.removeLayer(this.forecastModelLayer), this.map.getLayer(this.forecastNameLayer) && this.map.removeLayer(this.forecastNameLayer), this.map.getLayer(this.pointCircleLayer) && this.map.removeLayer(this.pointCircleLayer), this.map.getLayer(this.pointCircleLayer + "-border") && this.map.removeLayer(this.pointCircleLayer + "-border"), this.map.getLayer(this.pointLabelLayer) && this.map.removeLayer(this.pointLabelLayer), this.map.getLayer(this.historyPointCircleLayer) && this.map.removeLayer(this.historyPointCircleLayer), this.map.getLayer(this.historyPointCircleLayer + "-border") && this.map.removeLayer(this.historyPointCircleLayer + "-border"), this.map.getLayer(this.historyPointCircleLayer + "-inner") && this.map.removeLayer(this.historyPointCircleLayer + "-inner"), this.map.getLayer(this.historyPointLabelLayer) && this.map.removeLayer(this.historyPointLabelLayer), this.map.getLayer(this.interpolateLineLayer) && this.map.removeLayer(this.interpolateLineLayer), (t = this.interpolateMarkers) == null || t.forEach((r) => r == null ? void 0 : r.remove()), this.map.getSource(this.source) && this.map.removeSource(this.source), this.map.getSource(this.clusterSource) && this.map.removeSource(this.clusterSource), this.map.getSource(this.interpolateSource) && this.map.removeSource(this.interpolateSource), this.map.getLayer(this.circleLayer) && this.map.removeLayer(this.circleLayer), this.map.getSource(this.circleSource) && this.map.removeSource(this.circleSource)), (e = this.map) == null || e.off("click", this.hoverLayers, this.handleClick), (o = this.map) == null || o.off("mousemove", this.hoverLayers, this.handleHover), (i = this.map) == null || i.off("mouseleave", this.hoverLayers, this.handleLeave), this.showTropicalsInfo = !1, (a = this.activeTropicalsMarker) == null || a.remove(), this.activeTropicalsMarker = void 0;
11014
11016
  },
11015
11017
  handleDateChange() {
11016
- var t, e, o, i, a, r, s, c, n, g, p, f, w, L, _, P, b, D, I, C, v, k, T, z, R, V, K, X, Z, J, ee, Q;
11018
+ var t, e, o, i, a, r, s, c, n, g, p, f, w, P, z, L, b, A, I, C, v, _, T, k, R, V, K, X, Z, J, ee, Q;
11017
11019
  if ((t = this.interpolateMarkers) == null || t.forEach((re) => re == null ? void 0 : re.remove()), this.circleSourceData.features = [], (e = this.interpolateData) != null && e.length && this.tropicals.active) {
11018
11020
  const re = M(this.realTime).utc().set({ minute: 0, second: 0, millisecond: 0 }), de = this.interpolateData.filter(($) => $.properties.date === (re == null ? void 0 : re.format()) && !$.properties.disabled), pe = this.handleComputePolygons(de), se = H.featureCollection([...de]);
11019
11021
  pe.forEach(($) => {
@@ -11035,7 +11037,7 @@ const ec = {
11035
11037
  for (const $ of de)
11036
11038
  if (!$.properties.disabled) {
11037
11039
  let ae = "#f44336";
11038
- ((c = (s = $.properties) == null ? void 0 : s.wind) == null ? void 0 : c.kts) < 32 || !((g = (n = $.properties) == null ? void 0 : n.wind) != null && g.kts) ? ae = "#03f869" : ((f = (p = $.properties) == null ? void 0 : p.wind) == null ? void 0 : f.kts) >= 32 && ((L = (w = $.properties) == null ? void 0 : w.wind) == null ? void 0 : L.kts) < 47 ? ae = "#f2f202" : ((P = (_ = $.properties) == null ? void 0 : _.wind) == null ? void 0 : P.kts) >= 47 && ((D = (b = $.properties) == null ? void 0 : b.wind) == null ? void 0 : D.kts) < 63 ? ae = "#ff9100" : ((C = (I = $.properties) == null ? void 0 : I.wind) == null ? void 0 : C.kts) >= 63 && ((k = (v = $.properties) == null ? void 0 : v.wind) == null ? void 0 : k.kts) < 79 ? ae = "#f44336" : ((z = (T = $.properties) == null ? void 0 : T.wind) == null ? void 0 : z.kts) >= 79 && ((V = (R = $.properties) == null ? void 0 : R.wind) == null ? void 0 : V.kts) < 94 ? ae = "#f903d0" : ((X = (K = $.properties) == null ? void 0 : K.wind) == null ? void 0 : X.kts) >= 94 ? ae = "#8702f9" : ae = "#f44336";
11040
+ ((c = (s = $.properties) == null ? void 0 : s.wind) == null ? void 0 : c.kts) < 32 || !((g = (n = $.properties) == null ? void 0 : n.wind) != null && g.kts) ? ae = "#03f869" : ((f = (p = $.properties) == null ? void 0 : p.wind) == null ? void 0 : f.kts) >= 32 && ((P = (w = $.properties) == null ? void 0 : w.wind) == null ? void 0 : P.kts) < 47 ? ae = "#f2f202" : ((L = (z = $.properties) == null ? void 0 : z.wind) == null ? void 0 : L.kts) >= 47 && ((A = (b = $.properties) == null ? void 0 : b.wind) == null ? void 0 : A.kts) < 63 ? ae = "#ff9100" : ((C = (I = $.properties) == null ? void 0 : I.wind) == null ? void 0 : C.kts) >= 63 && ((_ = (v = $.properties) == null ? void 0 : v.wind) == null ? void 0 : _.kts) < 79 ? ae = "#f44336" : ((k = (T = $.properties) == null ? void 0 : T.wind) == null ? void 0 : k.kts) >= 79 && ((V = (R = $.properties) == null ? void 0 : R.wind) == null ? void 0 : V.kts) < 94 ? ae = "#f903d0" : ((X = (K = $.properties) == null ? void 0 : K.wind) == null ? void 0 : X.kts) >= 94 ? ae = "#8702f9" : ae = "#f44336";
11039
11041
  const ue = `<svg t="1719918955501"
11040
11042
  class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" p-id="18382"
11041
11043
  xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200">
@@ -11059,26 +11061,32 @@ const ec = {
11059
11061
  (ee = this.map) != null && ee.getSource(this.interpolateSource) && ((Q = this.map) == null || Q.getSource(this.interpolateSource).setData(this.empty));
11060
11062
  },
11061
11063
  handleClick(t) {
11062
- var r, s, c, n, g, p, f, w;
11063
- const e = t.features[0], o = (s = (r = this.tropicals) == null ? void 0 : r.data) == null ? void 0 : s.features.filter(
11064
- (L) => {
11065
- var _;
11066
- return L.geometry.type === "LineString" && L.properties.type === "forecast" && L.properties.name === ((_ = e == null ? void 0 : e.properties) == null ? void 0 : _.name);
11064
+ var a, r, s, c, n, g, p, f;
11065
+ const e = t.features[0], o = (r = (a = this.tropicals) == null ? void 0 : a.data) == null ? void 0 : r.features.filter(
11066
+ (w) => {
11067
+ var P;
11068
+ return w.geometry.type === "LineString" && w.properties.type === "forecast" && w.properties.name === ((P = e == null ? void 0 : e.properties) == null ? void 0 : P.name);
11067
11069
  }
11068
- ), i = (n = (c = this.tropicals) == null ? void 0 : c.data) == null ? void 0 : n.features.filter(
11069
- (L) => {
11070
- var _;
11071
- return L.geometry.type === "LineString" && L.properties.type === "history" && L.properties.name === ((_ = e == null ? void 0 : e.properties) == null ? void 0 : _.name);
11070
+ ), i = (c = (s = this.tropicals) == null ? void 0 : s.data) == null ? void 0 : c.features.filter(
11071
+ (w) => {
11072
+ var P;
11073
+ return w.geometry.type === "LineString" && w.properties.type === "history" && w.properties.name === ((P = e == null ? void 0 : e.properties) == null ? void 0 : P.name);
11072
11074
  }
11073
11075
  );
11074
11076
  this.activeTropicals = {
11075
- name: (g = e == null ? void 0 : e.properties) == null ? void 0 : g.name,
11076
- forecasts: o.map((L) => L.properties),
11077
- history: (p = i[0]) == null ? void 0 : p.properties,
11078
- showCircle: (w = (f = o[0]) == null ? void 0 : f.properties) == null ? void 0 : w.showCircle
11079
- }, this.showTropicalsInfo = !0;
11080
- const a = document.getElementById("idm-tropical-gl4-info");
11081
- this.activeTropicalsMarker ? this.activeTropicalsMarker.setLngLat([t.lngLat.lng, t.lngLat.lat]) : this.activeTropicalsMarker = new ve.Marker(a).setLngLat([t.lngLat.lng, t.lngLat.lat]).setOffset([220, 0]).addTo(this.map);
11077
+ name: (n = e == null ? void 0 : e.properties) == null ? void 0 : n.name,
11078
+ forecasts: o.map((w) => w.properties),
11079
+ history: (g = i[0]) == null ? void 0 : g.properties,
11080
+ showCircle: (f = (p = o[0]) == null ? void 0 : p.properties) == null ? void 0 : f.showCircle
11081
+ }, console.log(document.getElementById("idm-tropical-gl4-info").cloneNode(!0)), this.showTropicalsInfo = !0, this.$nextTick(() => {
11082
+ var z, L, b;
11083
+ (z = this.activeTropicalsMarker) == null || z.remove();
11084
+ const w = document.getElementById("idm-tropical-gl4-info").cloneNode(!0), P = (b = (L = w == null ? void 0 : w.children[0]) == null ? void 0 : L.children[1]) == null ? void 0 : b.children[1];
11085
+ P && (P.onclick = () => {
11086
+ var A;
11087
+ this.showTropicalsInfo = !1, (A = this.activeTropicalsMarker) == null || A.remove();
11088
+ }), this.activeTropicalsMarker = new ve.Marker(w).setLngLat([t.lngLat.lng, t.lngLat.lat]).setOffset([220, 0]).addTo(this.map);
11089
+ });
11082
11090
  },
11083
11091
  handleForecastToggle(t) {
11084
11092
  var i, a, r, s, c, n;
@@ -11164,6 +11172,12 @@ const ec = {
11164
11172
  },
11165
11173
  handleNotification(t) {
11166
11174
  this.$emit("tropicalNotification", t);
11175
+ },
11176
+ handleHover() {
11177
+ this.map.getCanvas().style.cursor = "pointer";
11178
+ },
11179
+ handleLeave() {
11180
+ this.map.getCanvas().style.cursor = "grab";
11167
11181
  }
11168
11182
  }
11169
11183
  }, tc = { class: "idm-tropical-gl4" }, oc = {
@@ -11208,7 +11222,7 @@ function Lc(t, e, o, i, a, r) {
11208
11222
  _: 1
11209
11223
  }, 8, ["text"])
11210
11224
  ], 4),
11211
- Ne(l("div", oc, [
11225
+ He(l("div", oc, [
11212
11226
  d(f, {
11213
11227
  width: "400",
11214
11228
  elevation: "16"
@@ -11216,11 +11230,11 @@ function Lc(t, e, o, i, a, r) {
11216
11230
  default: u(() => [
11217
11231
  d(n, null, {
11218
11232
  default: u(() => {
11219
- var w, L, _, P, b, D, I, C, v, k;
11233
+ var w, P, z, L, b, A, I, C, v, _;
11220
11234
  return [
11221
11235
  l("div", ac, [
11222
11236
  l("span", ic, h((w = a.activeTropicals) == null ? void 0 : w.name), 1),
11223
- (_ = (L = a.activeTropicals) == null ? void 0 : L.history) != null && _.level ? (y(), S("span", rc, ", " + h((b = (P = a.activeTropicals) == null ? void 0 : P.history) == null ? void 0 : b.level), 1)) : O("", !0)
11237
+ (z = (P = a.activeTropicals) == null ? void 0 : P.history) != null && z.level ? (y(), S("span", rc, ", " + h((b = (L = a.activeTropicals) == null ? void 0 : L.history) == null ? void 0 : b.level), 1)) : O("", !0)
11224
11238
  ]),
11225
11239
  d(s, {
11226
11240
  icon: "",
@@ -11237,7 +11251,7 @@ function Lc(t, e, o, i, a, r) {
11237
11251
  }),
11238
11252
  l("div", lc, [
11239
11253
  l("span", sc, h(t.$t("actions.lastUpdate")) + ": ", 1),
11240
- l("span", null, h(r.computeTime(((I = (D = a.activeTropicals) == null ? void 0 : D.history) == null ? void 0 : I.updated) || ((k = (v = (C = a.activeTropicals) == null ? void 0 : C.forecasts) == null ? void 0 : v.filter((T) => !T.disabled)[0]) == null ? void 0 : k.date))), 1)
11254
+ l("span", null, h(r.computeTime(((I = (A = a.activeTropicals) == null ? void 0 : A.history) == null ? void 0 : I.updated) || ((_ = (v = (C = a.activeTropicals) == null ? void 0 : C.forecasts) == null ? void 0 : v.filter((T) => !T.disabled)[0]) == null ? void 0 : _.date))), 1)
11241
11255
  ])
11242
11256
  ];
11243
11257
  }),
@@ -11246,17 +11260,17 @@ function Lc(t, e, o, i, a, r) {
11246
11260
  d(g),
11247
11261
  d(n, { class: "text-body-1" }, {
11248
11262
  default: u(() => {
11249
- var w, L, _, P, b, D, I, C, v;
11263
+ var w, P, z, L, b, A, I, C, v;
11250
11264
  return [
11251
11265
  l("div", nc, [
11252
11266
  l("div", cc, [
11253
11267
  l("label", mc, h(t.$t("weather.windSpeed")) + " : ", 1),
11254
- l("span", null, h(((L = (w = a.activeTropicals) == null ? void 0 : w.history) == null ? void 0 : L.kts) || "-") + " kts", 1),
11255
- l("span", null, ", BF " + h(r.computeBF(((P = (_ = a.activeTropicals) == null ? void 0 : _.history) == null ? void 0 : P.kts) || "-")), 1)
11268
+ l("span", null, h(((P = (w = a.activeTropicals) == null ? void 0 : w.history) == null ? void 0 : P.kts) || "-") + " kts", 1),
11269
+ l("span", null, ", BF " + h(r.computeBF(((L = (z = a.activeTropicals) == null ? void 0 : z.history) == null ? void 0 : L.kts) || "-")), 1)
11256
11270
  ]),
11257
11271
  l("div", dc, [
11258
11272
  l("label", hc, h(t.$t("tropical.pressure")) + " : ", 1),
11259
- l("span", null, h(((D = (b = a.activeTropicals) == null ? void 0 : b.history) == null ? void 0 : D.pressure) || "-") + " hPa", 1)
11273
+ l("span", null, h(((A = (b = a.activeTropicals) == null ? void 0 : b.history) == null ? void 0 : A.pressure) || "-") + " hPa", 1)
11260
11274
  ])
11261
11275
  ]),
11262
11276
  l("div", pc, [
@@ -11272,16 +11286,16 @@ function Lc(t, e, o, i, a, r) {
11272
11286
  l("div", bc, [
11273
11287
  l("label", wc, h(t.$t("weather.forecastModels")) + " : ", 1),
11274
11288
  l("div", xc, [
11275
- (y(!0), S(be, null, we((v = a.activeTropicals) == null ? void 0 : v.forecasts, (k, T) => (y(), A(s, {
11289
+ (y(!0), S(be, null, we((v = a.activeTropicals) == null ? void 0 : v.forecasts, (_, T) => (y(), D(s, {
11276
11290
  key: T,
11277
11291
  density: "compact",
11278
- variant: k.disabled ? "outlined" : "flat",
11279
- color: k.disabled ? "" : "primary",
11280
- class: We(["model text-none text-body-1", k.disabled ? "" : "btn-border-2"]),
11281
- onClick: (z) => r.handleForecastToggle(k)
11292
+ variant: _.disabled ? "outlined" : "flat",
11293
+ color: _.disabled ? "" : "primary",
11294
+ class: We(["model text-none text-body-1", _.disabled ? "" : "btn-border-2"]),
11295
+ onClick: (k) => r.handleForecastToggle(_)
11282
11296
  }, {
11283
11297
  default: u(() => [
11284
- N(h(k.model), 1)
11298
+ N(h(_.model), 1)
11285
11299
  ]),
11286
11300
  _: 2
11287
11301
  }, 1032, ["variant", "color", "class", "onClick"]))), 128))
@@ -11311,7 +11325,7 @@ function Lc(t, e, o, i, a, r) {
11311
11325
  _: 1
11312
11326
  }, 8, ["color"]),
11313
11327
  l("div", vc, [
11314
- o.permission & a.helper.LEVEL.Supper ? (y(), A(s, {
11328
+ o.permission & a.helper.LEVEL.Supper ? (y(), D(s, {
11315
11329
  key: 0,
11316
11330
  variant: "text",
11317
11331
  density: "compact",
@@ -11343,14 +11357,14 @@ function Lc(t, e, o, i, a, r) {
11343
11357
  _: 1
11344
11358
  }),
11345
11359
  l("div", _c, [
11346
- Ne(d(f, {
11360
+ He(d(f, {
11347
11361
  width: "400",
11348
11362
  elevation: "16"
11349
11363
  }, {
11350
11364
  default: u(() => [
11351
11365
  d(n, null, {
11352
11366
  default: u(() => [
11353
- Ne(l("div", kc, e[7] || (e[7] = [
11367
+ He(l("div", kc, e[7] || (e[7] = [
11354
11368
  l("div", { class: "legend d-flex justify-start align-center" }, [
11355
11369
  l("div", { class: "icon td" }),
11356
11370
  l("div", { class: "label" }, "TD")
@@ -11376,9 +11390,9 @@ function Lc(t, e, o, i, a, r) {
11376
11390
  l("div", { class: "label" }, "Super TY")
11377
11391
  ], -1)
11378
11392
  ]), 512), [
11379
- [Fe, a.showLegend]
11393
+ [Ue, a.showLegend]
11380
11394
  ]),
11381
- Ne(l("div", zc, e[8] || (e[8] = [
11395
+ He(l("div", zc, e[8] || (e[8] = [
11382
11396
  l("div", { class: "legend d-flex justify-start align-center" }, [
11383
11397
  l("div", { class: "icon history" }),
11384
11398
  l("div", { class: "label" }, "History")
@@ -11396,7 +11410,7 @@ function Lc(t, e, o, i, a, r) {
11396
11410
  l("div", { class: "label" }, "50kts Radii")
11397
11411
  ], -1)
11398
11412
  ]), 512), [
11399
- [Fe, a.showLegend]
11413
+ [Ue, a.showLegend]
11400
11414
  ])
11401
11415
  ]),
11402
11416
  _: 1
@@ -11404,11 +11418,11 @@ function Lc(t, e, o, i, a, r) {
11404
11418
  ]),
11405
11419
  _: 1
11406
11420
  }, 512), [
11407
- [Fe, a.showLegend]
11421
+ [Ue, a.showLegend]
11408
11422
  ])
11409
11423
  ])
11410
11424
  ], 512), [
11411
- [Fe, a.showTropicalsInfo && !t.$attrs.hideTropicalsLegend]
11425
+ [Ue, a.showTropicalsInfo && !t.$attrs.hideTropicalsLegend]
11412
11426
  ])
11413
11427
  ]);
11414
11428
  }
@@ -11565,7 +11579,7 @@ const Pc = {
11565
11579
  style: { height: "56px" }
11566
11580
  };
11567
11581
  function Mc(t, e, o, i, a, r) {
11568
- const s = x("VBtn"), c = x("VDatePicker"), n = x("VDivider"), g = x("VListItemTitle"), p = x("VListItem"), f = x("VList"), w = x("VCardText"), L = x("VCardActions"), _ = x("VCard");
11582
+ const s = x("VBtn"), c = x("VDatePicker"), n = x("VDivider"), g = x("VListItemTitle"), p = x("VListItem"), f = x("VList"), w = x("VCardText"), P = x("VCardActions"), z = x("VCard");
11569
11583
  return y(), S("div", Cc, [
11570
11584
  d(s, {
11571
11585
  text: "",
@@ -11578,7 +11592,7 @@ function Mc(t, e, o, i, a, r) {
11578
11592
  ]),
11579
11593
  _: 1
11580
11594
  }, 8, ["onClick"]),
11581
- a.showDatePicker ? (y(), A(_, {
11595
+ a.showDatePicker ? (y(), D(z, {
11582
11596
  key: 0,
11583
11597
  class: "card-box d-flex flex-column"
11584
11598
  }, {
@@ -11588,7 +11602,7 @@ function Mc(t, e, o, i, a, r) {
11588
11602
  l("div", Tc, [
11589
11603
  d(c, {
11590
11604
  modelValue: a.currentDate,
11591
- "onUpdate:modelValue": e[0] || (e[0] = (P) => a.currentDate = P),
11605
+ "onUpdate:modelValue": e[0] || (e[0] = (L) => a.currentDate = L),
11592
11606
  min: a.dateRange[0],
11593
11607
  max: a.dateRange[1],
11594
11608
  "mode-icon": () => r.currentYear,
@@ -11608,11 +11622,11 @@ function Mc(t, e, o, i, a, r) {
11608
11622
  l("div", Ic, h(a.currentTime), 1),
11609
11623
  d(f, { class: "pa-0 flex-1-1-0" }, {
11610
11624
  default: u(() => [
11611
- (y(!0), S(be, null, we(r.hourOptions, (P, b) => (y(), A(p, {
11625
+ (y(!0), S(be, null, we(r.hourOptions, (L, b) => (y(), D(p, {
11612
11626
  key: b,
11613
- value: P,
11627
+ value: L,
11614
11628
  color: "primary",
11615
- active: a.currentTime === P,
11629
+ active: a.currentTime === L,
11616
11630
  rounded: "",
11617
11631
  height: "26",
11618
11632
  "min-height": "26"
@@ -11620,10 +11634,10 @@ function Mc(t, e, o, i, a, r) {
11620
11634
  default: u(() => [
11621
11635
  d(g, {
11622
11636
  class: "text-body-2 text-center",
11623
- onClick: (D) => a.currentTime = P
11637
+ onClick: (A) => a.currentTime = L
11624
11638
  }, {
11625
11639
  default: u(() => [
11626
- N(h(P), 1)
11640
+ N(h(L), 1)
11627
11641
  ]),
11628
11642
  _: 2
11629
11643
  }, 1032, ["onClick"])
@@ -11638,7 +11652,7 @@ function Mc(t, e, o, i, a, r) {
11638
11652
  _: 1
11639
11653
  }),
11640
11654
  d(n),
11641
- d(L, {
11655
+ d(P, {
11642
11656
  class: "justify-end pa-0 pr-4",
11643
11657
  style: { height: "50px" }
11644
11658
  }, {
@@ -11925,10 +11939,10 @@ const Ac = {
11925
11939
  (a == null ? void 0 : a.data.code) === 0 && (this.meteoData = a == null ? void 0 : a.data.data, this.meteoData.lng = t.lng, this.meteoData.lat = t.lat, this.initTableData(this.meteoData)), this.loading = !1;
11926
11940
  },
11927
11941
  initTableData(t) {
11928
- var o, i, a, r, s, c, n, g, p, f, w, L, _, P, b, D, I, C, v, k, T, z, R, V, K, X, Z, J, ee, Q, re, de, pe, se, $, ae, ue, ne, F, ce, xe;
11942
+ var o, i, a, r, s, c, n, g, p, f, w, P, z, L, b, A, I, C, v, _, T, k, R, V, K, X, Z, J, ee, Q, re, de, pe, se, $, ae, ue, ne, F, ce, xe;
11929
11943
  this.currentHourData = {}, this.positionGmt = (i = (o = t == null ? void 0 : t.weather) == null ? void 0 : o[0]) == null ? void 0 : i.timezone, this.positionOffset = (r = (a = t == null ? void 0 : t.weather) == null ? void 0 : a[0]) == null ? void 0 : r.offset;
11930
11944
  const e = ((s = oo.pickHourly(t, M(this.form.dateTime))) == null ? void 0 : s[0]) || {};
11931
- this.currentHourData.utc = e.utc, this.currentHourData.lat = t.lat, this.currentHourData.lng = t.lng, this.currentHourData.temp = this.roundPrecision((c = e == null ? void 0 : e.weather) == null ? void 0 : c.temp, 0) ?? "-", this.currentHourData.precipProbability = this.roundPrecision((g = (n = e == null ? void 0 : e.weather) == null ? void 0 : n.precip) == null ? void 0 : g.probability, 0) ?? "-", this.currentHourData.precip1h = this.roundPrecision((f = (p = e == null ? void 0 : e.weather) == null ? void 0 : p.precip) == null ? void 0 : f.sum, 0) ?? "-", this.currentHourData.visibility = this.roundPrecision((w = e == null ? void 0 : e.weather) == null ? void 0 : w.visibility, 0) ?? "-", this.currentHourData.windSpeed = this.roundPrecision((_ = (L = e == null ? void 0 : e.weather) == null ? void 0 : L.wind) == null ? void 0 : _.kts, 1) ?? "-", this.currentHourData.windDir = (b = (P = e == null ? void 0 : e.weather) == null ? void 0 : P.wind) == null ? void 0 : b.direction, this.currentHourData.windLevel = this.roundPrecision((I = (D = e == null ? void 0 : e.weather) == null ? void 0 : D.wind) == null ? void 0 : I.scale, 0) ?? "-", this.currentHourData.windGust = this.roundPrecision((v = (C = e == null ? void 0 : e.weather) == null ? void 0 : C.wind) == null ? void 0 : v.gusts, 1) ?? "-", this.currentHourData.sigwaveHeight = this.roundPrecision((T = (k = e == null ? void 0 : e.wave) == null ? void 0 : k.sig) == null ? void 0 : T.height, 1) ?? "-", this.currentHourData.sigwaveDir = (R = (z = e == null ? void 0 : e.wave) == null ? void 0 : z.sig) == null ? void 0 : R.direction, this.currentHourData.sigwavePeriod = this.roundPrecision((K = (V = e == null ? void 0 : e.wave) == null ? void 0 : V.sig) == null ? void 0 : K.period, 1) ?? "-", this.currentHourData.windwaveHeight = this.roundPrecision((Z = (X = e == null ? void 0 : e.wave) == null ? void 0 : X.wd) == null ? void 0 : Z.height, 1) ?? "-", this.currentHourData.windwaveDir = (ee = (J = e == null ? void 0 : e.wave) == null ? void 0 : J.wd) == null ? void 0 : ee.direction, this.currentHourData.windwavePeriod = this.roundPrecision((re = (Q = e == null ? void 0 : e.wave) == null ? void 0 : Q.wd) == null ? void 0 : re.period, 1) ?? "-", this.currentHourData.swellHeight = this.roundPrecision((pe = (de = e == null ? void 0 : e.wave) == null ? void 0 : de.swell) == null ? void 0 : pe.height, 1) ?? "-", this.currentHourData.swellDir = ($ = (se = e == null ? void 0 : e.wave) == null ? void 0 : se.swell) == null ? void 0 : $.direction, this.currentHourData.swellPeriod = this.roundPrecision((ue = (ae = e == null ? void 0 : e.wave) == null ? void 0 : ae.swell) == null ? void 0 : ue.period, 1) ?? "-", this.currentHourData.currentSpeed = this.roundPrecision((ne = e == null ? void 0 : e.current) == null ? void 0 : ne.speed, 1) ?? "-", this.currentHourData.currentDir = (F = e == null ? void 0 : e.current) == null ? void 0 : F.direction, this.currentHourData.currentSpeed = this.roundPrecision((ce = e == null ? void 0 : e.current) == null ? void 0 : ce.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;
11945
+ this.currentHourData.utc = e.utc, this.currentHourData.lat = t.lat, this.currentHourData.lng = t.lng, this.currentHourData.temp = this.roundPrecision((c = e == null ? void 0 : e.weather) == null ? void 0 : c.temp, 0) ?? "-", this.currentHourData.precipProbability = this.roundPrecision((g = (n = e == null ? void 0 : e.weather) == null ? void 0 : n.precip) == null ? void 0 : g.probability, 0) ?? "-", this.currentHourData.precip1h = this.roundPrecision((f = (p = e == null ? void 0 : e.weather) == null ? void 0 : p.precip) == null ? void 0 : f.sum, 0) ?? "-", this.currentHourData.visibility = this.roundPrecision((w = e == null ? void 0 : e.weather) == null ? void 0 : w.visibility, 0) ?? "-", this.currentHourData.windSpeed = this.roundPrecision((z = (P = e == null ? void 0 : e.weather) == null ? void 0 : P.wind) == null ? void 0 : z.kts, 1) ?? "-", this.currentHourData.windDir = (b = (L = e == null ? void 0 : e.weather) == null ? void 0 : L.wind) == null ? void 0 : b.direction, this.currentHourData.windLevel = this.roundPrecision((I = (A = e == null ? void 0 : e.weather) == null ? void 0 : A.wind) == null ? void 0 : I.scale, 0) ?? "-", this.currentHourData.windGust = this.roundPrecision((v = (C = e == null ? void 0 : e.weather) == null ? void 0 : C.wind) == null ? void 0 : v.gusts, 1) ?? "-", this.currentHourData.sigwaveHeight = this.roundPrecision((T = (_ = e == null ? void 0 : e.wave) == null ? void 0 : _.sig) == null ? void 0 : T.height, 1) ?? "-", this.currentHourData.sigwaveDir = (R = (k = e == null ? void 0 : e.wave) == null ? void 0 : k.sig) == null ? void 0 : R.direction, this.currentHourData.sigwavePeriod = this.roundPrecision((K = (V = e == null ? void 0 : e.wave) == null ? void 0 : V.sig) == null ? void 0 : K.period, 1) ?? "-", this.currentHourData.windwaveHeight = this.roundPrecision((Z = (X = e == null ? void 0 : e.wave) == null ? void 0 : X.wd) == null ? void 0 : Z.height, 1) ?? "-", this.currentHourData.windwaveDir = (ee = (J = e == null ? void 0 : e.wave) == null ? void 0 : J.wd) == null ? void 0 : ee.direction, this.currentHourData.windwavePeriod = this.roundPrecision((re = (Q = e == null ? void 0 : e.wave) == null ? void 0 : Q.wd) == null ? void 0 : re.period, 1) ?? "-", this.currentHourData.swellHeight = this.roundPrecision((pe = (de = e == null ? void 0 : e.wave) == null ? void 0 : de.swell) == null ? void 0 : pe.height, 1) ?? "-", this.currentHourData.swellDir = ($ = (se = e == null ? void 0 : e.wave) == null ? void 0 : se.swell) == null ? void 0 : $.direction, this.currentHourData.swellPeriod = this.roundPrecision((ue = (ae = e == null ? void 0 : e.wave) == null ? void 0 : ae.swell) == null ? void 0 : ue.period, 1) ?? "-", this.currentHourData.currentSpeed = this.roundPrecision((ne = e == null ? void 0 : e.current) == null ? void 0 : ne.speed, 1) ?? "-", this.currentHourData.currentDir = (F = e == null ? void 0 : e.current) == null ? void 0 : F.direction, this.currentHourData.currentSpeed = this.roundPrecision((ce = e == null ? void 0 : e.current) == null ? void 0 : ce.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;
11932
11946
  },
11933
11947
  handleBind() {
11934
11948
  var t, e;
@@ -12011,7 +12025,7 @@ const Ac = {
12011
12025
  "aria-hidden": "true"
12012
12026
  }, qc = ["xlink:href"], Yc = { class: "d-flex justify-start align-center" }, Kc = { class: "mx-2" };
12013
12027
  function Xc(t, e, o, i, a, r) {
12014
- const s = x("VBtn"), c = x("VTooltip"), n = x("VCardTitle"), g = x("VDivider"), p = x("VTextField"), f = x("VCol"), w = x("VRow"), L = x("DateTimePicker"), _ = x("VBtnToggle"), P = x("VCardActions"), b = x("VForm"), D = x("VCardText"), I = x("VCard"), C = x("VIcon");
12028
+ const s = x("VBtn"), c = x("VTooltip"), n = x("VCardTitle"), g = x("VDivider"), p = x("VTextField"), f = x("VCol"), w = x("VRow"), P = x("DateTimePicker"), z = x("VBtnToggle"), L = x("VCardActions"), b = x("VForm"), A = x("VCardText"), I = x("VCard"), C = x("VIcon");
12015
12029
  return y(), S("div", Dc, [
12016
12030
  l("div", {
12017
12031
  class: "menu-bar-box transition pa-1",
@@ -12039,7 +12053,7 @@ function Xc(t, e, o, i, a, r) {
12039
12053
  _: 1
12040
12054
  }, 8, ["text"])
12041
12055
  ], 4),
12042
- a.showForm ? (y(), A(I, {
12056
+ a.showForm ? (y(), D(I, {
12043
12057
  key: 0,
12044
12058
  class: "spot-form-card",
12045
12059
  style: ie({ top: o.top + 174 + "px", right: a.right + 50 + "px" })
@@ -12067,7 +12081,7 @@ function Xc(t, e, o, i, a, r) {
12067
12081
  _: 1
12068
12082
  }),
12069
12083
  d(g),
12070
- d(D, { class: "text-body-1 py-1" }, {
12084
+ d(A, { class: "text-body-1 py-1" }, {
12071
12085
  default: u(() => [
12072
12086
  d(b, {
12073
12087
  ref: "spotForm",
@@ -12244,7 +12258,7 @@ function Xc(t, e, o, i, a, r) {
12244
12258
  class: "pa-0"
12245
12259
  }, {
12246
12260
  default: u(() => [
12247
- d(L, B({
12261
+ d(P, B({
12248
12262
  "date-time": a.form.dateTime,
12249
12263
  "time-zone": o.timeZone
12250
12264
  }, t.$attrs, {
@@ -12271,7 +12285,7 @@ function Xc(t, e, o, i, a, r) {
12271
12285
  class: "pa-0"
12272
12286
  }, {
12273
12287
  default: u(() => [
12274
- d(_, {
12288
+ d(z, {
12275
12289
  modelValue: a.form.forecastModel,
12276
12290
  "onUpdate:modelValue": e[7] || (e[7] = (v) => a.form.forecastModel = v),
12277
12291
  class: "w-100",
@@ -12319,7 +12333,7 @@ function Xc(t, e, o, i, a, r) {
12319
12333
  _: 1
12320
12334
  }),
12321
12335
  d(g),
12322
- d(P, { class: "d-flex justify-end align-center ga-4" }, {
12336
+ d(L, { class: "d-flex justify-end align-center ga-4" }, {
12323
12337
  default: u(() => [
12324
12338
  d(s, {
12325
12339
  size: "small",
@@ -12358,7 +12372,7 @@ function Xc(t, e, o, i, a, r) {
12358
12372
  ]),
12359
12373
  _: 1
12360
12374
  }, 8, ["style"])) : O("", !0),
12361
- Ne(d(I, {
12375
+ He(d(I, {
12362
12376
  id: "idm-gl4-spot-meteo",
12363
12377
  class: "spot-meteo",
12364
12378
  style: { width: "490px", "z-index": "9" }
@@ -12366,11 +12380,11 @@ function Xc(t, e, o, i, a, r) {
12366
12380
  default: u(() => [
12367
12381
  d(n, { class: "d-flex justify-space-between align-center" }, {
12368
12382
  default: u(() => {
12369
- var v, k, T, z;
12383
+ var v, _, T, k;
12370
12384
  return [
12371
12385
  l("div", Yc, [
12372
12386
  e[16] || (e[16] = l("i", { class: "iconfont icon-a-Spotweather text-h5 map-icon-aqua" }, null, -1)),
12373
- l("div", Kc, h(r.computeLat(((v = a.form) == null ? void 0 : v.lat) || ((k = a.currentHourData) == null ? void 0 : k.lat))) + "," + h(r.computeLng(((T = a.form) == null ? void 0 : T.lng) || ((z = a.currentHourData) == null ? void 0 : z.lng))), 1)
12387
+ l("div", Kc, h(r.computeLat(((v = a.form) == null ? void 0 : v.lat) || ((_ = a.currentHourData) == null ? void 0 : _.lat))) + "," + h(r.computeLng(((T = a.form) == null ? void 0 : T.lng) || ((k = a.currentHourData) == null ? void 0 : k.lng))), 1)
12374
12388
  ]),
12375
12389
  d(s, {
12376
12390
  class: "mr-n2",
@@ -12393,7 +12407,7 @@ function Xc(t, e, o, i, a, r) {
12393
12407
  _: 1
12394
12408
  }),
12395
12409
  d(g),
12396
- d(D, { class: "text-body-1 ml-n8" }, {
12410
+ d(A, { class: "text-body-1 ml-n8" }, {
12397
12411
  default: u(() => [
12398
12412
  d(w, null, {
12399
12413
  default: u(() => [
@@ -12575,12 +12589,12 @@ function Xc(t, e, o, i, a, r) {
12575
12589
  _: 1
12576
12590
  }),
12577
12591
  d(g),
12578
- d(P, { class: "d-flex justify-space-between align-center" }, {
12592
+ d(L, { class: "d-flex justify-space-between align-center" }, {
12579
12593
  default: u(() => [
12580
12594
  o.followList.some((v) => {
12581
- var k, T;
12582
- return ((k = v == null ? void 0 : v.coordinate) == null ? void 0 : k.lng) === a.point.lng && ((T = v == null ? void 0 : v.coordinate) == null ? void 0 : T.lat) === a.point.lat;
12583
- }) ? (y(), A(s, {
12595
+ var _, T;
12596
+ return ((_ = v == null ? void 0 : v.coordinate) == null ? void 0 : _.lng) === a.point.lng && ((T = v == null ? void 0 : v.coordinate) == null ? void 0 : T.lat) === a.point.lat;
12597
+ }) ? (y(), D(s, {
12584
12598
  key: 0,
12585
12599
  class: "text-none text-body-1",
12586
12600
  variant: "text",
@@ -12596,7 +12610,7 @@ function Xc(t, e, o, i, a, r) {
12596
12610
  N(" " + h(t.$t("actions.unfollow")), 1)
12597
12611
  ]),
12598
12612
  _: 1
12599
- }, 8, ["onClick"])) : (y(), A(s, {
12613
+ }, 8, ["onClick"])) : (y(), D(s, {
12600
12614
  key: 1,
12601
12615
  class: "text-none text-body-1",
12602
12616
  variant: "text",
@@ -12629,7 +12643,7 @@ function Xc(t, e, o, i, a, r) {
12629
12643
  ]),
12630
12644
  _: 1
12631
12645
  }, 512), [
12632
- [Fe, a.showMeteo]
12646
+ [Ue, a.showMeteo]
12633
12647
  ])
12634
12648
  ]);
12635
12649
  }
@@ -12729,22 +12743,22 @@ const Qc = {
12729
12743
  if ((e == null ? void 0 : e.split("-").length) === 2) {
12730
12744
  const w = this.geojson.filter((b) => b.id === e.split("-")[0])[0];
12731
12745
  this.pointMarkers[w.id].filter((b) => {
12732
- var D;
12733
- return ((D = b._element) == null ? void 0 : D.id) === e;
12746
+ var A;
12747
+ return ((A = b._element) == null ? void 0 : A.id) === e;
12734
12748
  })[0].setLngLat([(r = (a = t.target) == null ? void 0 : a._lngLat) == null ? void 0 : r.lng, (c = (s = t.target) == null ? void 0 : s._lngLat) == null ? void 0 : c.lat]);
12735
- let _;
12736
- w.features.forEach((b, D) => {
12749
+ let z;
12750
+ w.features.forEach((b, A) => {
12737
12751
  if (b.geometry.type === "Point" && b.properties.id === e.split("-")[1]) {
12738
- _ = D;
12752
+ z = A;
12739
12753
  return;
12740
12754
  }
12741
12755
  });
12742
- const P = w.features.filter((b) => b.geometry.type === "Point");
12756
+ const L = w.features.filter((b) => b.geometry.type === "Point");
12743
12757
  this.handleTmpPointUpdate(
12744
12758
  w,
12745
- P[_ - 1],
12746
- { lng: (g = (n = t.target) == null ? void 0 : n._lngLat) == null ? void 0 : g.lng, lat: (f = (p = t.target) == null ? void 0 : p._lngLat) == null ? void 0 : f.lat, properties: P[_].properties },
12747
- _ === P.length - 1 ? void 0 : P[_ + 1]
12759
+ L[z - 1],
12760
+ { lng: (g = (n = t.target) == null ? void 0 : n._lngLat) == null ? void 0 : g.lng, lat: (f = (p = t.target) == null ? void 0 : p._lngLat) == null ? void 0 : f.lat, properties: L[z].properties },
12761
+ z === L.length - 1 ? void 0 : L[z + 1]
12748
12762
  );
12749
12763
  }
12750
12764
  },
@@ -12752,13 +12766,13 @@ const Qc = {
12752
12766
  var o, i, a, r, s, c, n, g, p, f;
12753
12767
  const e = (i = (o = t.target) == null ? void 0 : o._element) == null ? void 0 : i.id;
12754
12768
  if ((e == null ? void 0 : e.split("-").length) === 2) {
12755
- const w = this.geojson.filter((P) => P.id === e.split("-")[0])[0];
12756
- this.pointMarkers[w.id].filter((P) => {
12769
+ const w = this.geojson.filter((L) => L.id === e.split("-")[0])[0];
12770
+ this.pointMarkers[w.id].filter((L) => {
12757
12771
  var b;
12758
- return ((b = P._element) == null ? void 0 : b.id) === e;
12772
+ return ((b = L._element) == null ? void 0 : b.id) === e;
12759
12773
  })[0].setLngLat([(r = (a = t.target) == null ? void 0 : a._lngLat) == null ? void 0 : r.lng, (c = (s = t.target) == null ? void 0 : s._lngLat) == null ? void 0 : c.lat]);
12760
- const _ = w.features.filter((P) => P.geometry.type === "Point" && P.properties.id === e.split("-")[1])[0];
12761
- _.geometry.coordinates = [(g = (n = t.target) == null ? void 0 : n._lngLat) == null ? void 0 : g.lng, (f = (p = t.target) == null ? void 0 : p._lngLat) == null ? void 0 : f.lat], w.features = w.features.filter((P) => P.geometry.type === "Point"), this.handlePointUpdate(w);
12774
+ const z = w.features.filter((L) => L.geometry.type === "Point" && L.properties.id === e.split("-")[1])[0];
12775
+ z.geometry.coordinates = [(g = (n = t.target) == null ? void 0 : n._lngLat) == null ? void 0 : g.lng, (f = (p = t.target) == null ? void 0 : p._lngLat) == null ? void 0 : f.lat], w.features = w.features.filter((L) => L.geometry.type === "Point"), this.handlePointUpdate(w);
12762
12776
  }
12763
12777
  },
12764
12778
  handleContextmenu(t) {
@@ -12806,14 +12820,14 @@ const Qc = {
12806
12820
  let o = 0;
12807
12821
  const i = [];
12808
12822
  for (let a = 1; a < e.length; a++) {
12809
- const r = e[a - 1], s = e[a], c = r.properties, n = { lng: r.geometry.coordinates[0], lat: r.geometry.coordinates[1] }, g = { lng: s.geometry.coordinates[0], lat: s.geometry.coordinates[1] }, p = Ue.calculateDistance(n, g, c.mode === "RL", 4), f = Ue.calculateBearing(n, g, c.mode === "RL", 2);
12823
+ const r = e[a - 1], s = e[a], c = r.properties, n = { lng: r.geometry.coordinates[0], lat: r.geometry.coordinates[1] }, g = { lng: s.geometry.coordinates[0], lat: s.geometry.coordinates[1] }, p = Fe.calculateDistance(n, g, c.mode === "RL", 4), f = Fe.calculateBearing(n, g, c.mode === "RL", 2);
12810
12824
  o = G.roundPrecision(o + p, 4);
12811
12825
  let w;
12812
- c.mode === "RL" ? w = G.convertToMonotonicLng([n, g]) : w = G.convertToMonotonicLng(Ue.interpolateCoordinates(n, g, 200));
12813
- const L = H.lineString(w.map((P) => [P.lng, P.lat]));
12814
- L.properties.dist = p, L.properties.bearing = f, L.properties.total = o, L.properties.name = "Line " + this.currentLineIndex, i.push(L);
12815
- const _ = e[a];
12816
- _.properties.totalDist = G.roundPrecision((c.totalDist ? c.totalDist : 0) + p, 4), _.properties.sumLabel = _.properties.totalDist + " nm";
12826
+ c.mode === "RL" ? w = G.convertToMonotonicLng([n, g]) : w = G.convertToMonotonicLng(Fe.interpolateCoordinates(n, g, 200));
12827
+ const P = H.lineString(w.map((L) => [L.lng, L.lat]));
12828
+ P.properties.dist = p, P.properties.bearing = f, P.properties.total = o, P.properties.name = "Line " + this.currentLineIndex, i.push(P);
12829
+ const z = e[a];
12830
+ z.properties.totalDist = G.roundPrecision((c.totalDist ? c.totalDist : 0) + p, 4), z.properties.sumLabel = z.properties.totalDist + " nm";
12817
12831
  }
12818
12832
  e.push(...i), t.total = o;
12819
12833
  }
@@ -12824,18 +12838,18 @@ const Qc = {
12824
12838
  let r, s;
12825
12839
  if (e) {
12826
12840
  const n = e.properties, g = { lng: e.geometry.coordinates[0], lat: e.geometry.coordinates[1] }, p = { lng: o.lng, lat: o.lat };
12827
- r = Ue.calculateDistance(g, p, n.mode === "RL", 4), s = Ue.calculateBearing(g, p, n.mode === "RL", 2);
12841
+ r = Fe.calculateDistance(g, p, n.mode === "RL", 4), s = Fe.calculateBearing(g, p, n.mode === "RL", 2);
12828
12842
  let f;
12829
- n.mode === "RL" ? f = G.convertToMonotonicLng([g, p]) : f = G.convertToMonotonicLng(Ue.interpolateCoordinates(g, p, 200));
12830
- const w = H.lineString(f.map((L) => [L.lng, L.lat]));
12843
+ n.mode === "RL" ? f = G.convertToMonotonicLng([g, p]) : f = G.convertToMonotonicLng(Fe.interpolateCoordinates(g, p, 200));
12844
+ const w = H.lineString(f.map((P) => [P.lng, P.lat]));
12831
12845
  w.properties.dist = r, w.properties.bearing = s, a.features.push(w);
12832
12846
  }
12833
12847
  if (i) {
12834
12848
  const n = o.properties, g = o, p = { lng: i.geometry.coordinates[0], lat: i.geometry.coordinates[1] };
12835
- r = Ue.calculateDistance(g, p, n.mode === "RL", 4), s = Ue.calculateBearing(g, p, n.mode === "RL", 2);
12849
+ r = Fe.calculateDistance(g, p, n.mode === "RL", 4), s = Fe.calculateBearing(g, p, n.mode === "RL", 2);
12836
12850
  let f;
12837
- n.mode === "RL" ? f = G.convertToMonotonicLng([g, p]) : f = G.convertToMonotonicLng(Ue.interpolateCoordinates(g, p, 200));
12838
- const w = H.lineString(f.map((L) => [L.lng, L.lat]));
12851
+ n.mode === "RL" ? f = G.convertToMonotonicLng([g, p]) : f = G.convertToMonotonicLng(Fe.interpolateCoordinates(g, p, 200));
12852
+ const w = H.lineString(f.map((P) => [P.lng, P.lat]));
12839
12853
  w.properties.dist = r, w.properties.bearing = s, a.features.push(w);
12840
12854
  }
12841
12855
  this.map.getSource(this.tmpSource) ? this.map.getSource(this.tmpSource).setData(a) : this.map.addSource(this.tmpSource, {
@@ -12977,11 +12991,11 @@ const Qc = {
12977
12991
  }
12978
12992
  },
12979
12993
  handleClear(t, e = !0) {
12980
- var s, c, n, g, p, f, w, L, _, P;
12994
+ var s, c, n, g, p, f, w, P, z, L;
12981
12995
  const o = `${t.id}-${this.source}`, i = `${t.id}-${this.layer}`, a = `${t.id}-${this.labelLayer}`, r = `${t.id}-${this.sumLayer}`;
12982
12996
  (s = this.map) != null && s.getLayer(i) && this.map.removeLayer(i), (c = this.map) != null && c.getLayer(a) && this.map.removeLayer(a), (n = this.map) != null && n.getLayer(r) && this.map.removeLayer(r), (g = this.map) != null && g.getLayer(this.tmpLayer) && this.map.removeLayer(this.tmpLayer), (p = this.map) != null && p.getLayer(this.tmpLabelLayer) && this.map.removeLayer(this.tmpLabelLayer), (f = this.closeMarkers[t.id]) == null || f.remove(), this.closeMarkers[t.id] = void 0, (w = this.pointMarkers[t.id]) == null || w.forEach((b) => {
12983
12997
  b == null || b.remove();
12984
- }), this.pointMarkers[t.id] = [], (L = this.tipMarker) == null || L.remove(), this.tipMarker = void 0, e && ((_ = this.map) != null && _.getSource(o)) && this.map.removeSource(o), e && ((P = this.map) != null && P.getSource(this.tmpSource)) && this.map.removeSource(this.tmpSource);
12998
+ }), this.pointMarkers[t.id] = [], (P = this.tipMarker) == null || P.remove(), this.tipMarker = void 0, e && ((z = this.map) != null && z.getSource(o)) && this.map.removeSource(o), e && ((L = this.map) != null && L.getSource(this.tmpSource)) && this.map.removeSource(this.tmpSource);
12985
12999
  }
12986
13000
  }
12987
13001
  }, Jc = { class: "idm-gl4-measure" };
@@ -13140,7 +13154,7 @@ const om = {
13140
13154
  class: "list d-flex flex-wrap pa-2 rounded ga-2"
13141
13155
  }, cm = ["onClick"], mm = { class: "btn-box d-flex justify-start align-center rounded ga-2 py-1 px-3" }, dm = { class: "text-body-1" };
13142
13156
  function hm(t, e, o, i, a, r) {
13143
- const s = x("DateTimePicker"), c = x("VListItemTitle"), n = x("VListItem"), g = x("VList"), p = x("VMenu"), f = x("VBtn"), w = x("VDivider"), L = x("VTooltip");
13157
+ const s = x("DateTimePicker"), c = x("VListItemTitle"), n = x("VListItem"), g = x("VList"), p = x("VMenu"), f = x("VBtn"), w = x("VDivider"), P = x("VTooltip");
13144
13158
  return y(), S("div", am, [
13145
13159
  l("div", {
13146
13160
  class: "timeline-box px-2 d-flex justify-start align-center rounded",
@@ -13154,9 +13168,9 @@ function hm(t, e, o, i, a, r) {
13154
13168
  "day-about": a.dayAbout,
13155
13169
  "interval-hour": a.intervalHour
13156
13170
  }, t.$attrs, {
13157
- onCurrentTimestamp: e[0] || (e[0] = (_) => a.currentTimestamp = _),
13158
- onCurrentRealTime: e[1] || (e[1] = (_) => a.currentRealTime = _),
13159
- onTimestampRange: e[2] || (e[2] = (_) => a.timestampRange = _)
13171
+ onCurrentTimestamp: e[0] || (e[0] = (z) => a.currentTimestamp = z),
13172
+ onCurrentRealTime: e[1] || (e[1] = (z) => a.currentRealTime = z),
13173
+ onTimestampRange: e[2] || (e[2] = (z) => a.timestampRange = z)
13160
13174
  }), null, 16, ["date-time", "time-zone", "day-about", "interval-hour"]),
13161
13175
  d(f, {
13162
13176
  text: "",
@@ -13170,13 +13184,13 @@ function hm(t, e, o, i, a, r) {
13170
13184
  default: u(() => [
13171
13185
  d(g, { class: "pa-1" }, {
13172
13186
  default: u(() => [
13173
- (y(!0), S(be, null, we(a.intervalOptions, (_, P) => (y(), A(n, {
13174
- key: P,
13175
- value: _,
13176
- variant: a.intervalHour === _ ? "tonal" : "text",
13187
+ (y(!0), S(be, null, we(a.intervalOptions, (z, L) => (y(), D(n, {
13188
+ key: L,
13189
+ value: z,
13190
+ variant: a.intervalHour === z ? "tonal" : "text",
13177
13191
  color: "primary",
13178
13192
  rounded: "",
13179
- active: a.intervalHour === _,
13193
+ active: a.intervalHour === z,
13180
13194
  height: "30",
13181
13195
  "min-height": "30",
13182
13196
  "min-width": "30",
@@ -13184,10 +13198,10 @@ function hm(t, e, o, i, a, r) {
13184
13198
  }, {
13185
13199
  default: u(() => [
13186
13200
  d(c, {
13187
- onClick: (b) => a.intervalHour = _
13201
+ onClick: (b) => a.intervalHour = z
13188
13202
  }, {
13189
13203
  default: u(() => [
13190
- N(h(_) + "h", 1)
13204
+ N(h(z) + "h", 1)
13191
13205
  ]),
13192
13206
  _: 2
13193
13207
  }, 1032, ["onClick"])
@@ -13236,7 +13250,7 @@ function hm(t, e, o, i, a, r) {
13236
13250
  _: 1,
13237
13251
  __: [10]
13238
13252
  }, 8, ["onClick"]),
13239
- a.paused ? (y(), A(f, {
13253
+ a.paused ? (y(), D(f, {
13240
13254
  key: 0,
13241
13255
  icon: "",
13242
13256
  size: "small",
@@ -13249,7 +13263,7 @@ function hm(t, e, o, i, a, r) {
13249
13263
  ])),
13250
13264
  _: 1,
13251
13265
  __: [11]
13252
- }, 8, ["onClick"])) : (y(), A(f, {
13266
+ }, 8, ["onClick"])) : (y(), D(f, {
13253
13267
  key: 1,
13254
13268
  icon: "",
13255
13269
  size: "small",
@@ -13283,21 +13297,21 @@ function hm(t, e, o, i, a, r) {
13283
13297
  style: { height: "16px" }
13284
13298
  }),
13285
13299
  l("div", lm, [
13286
- d(L, {
13300
+ d(P, {
13287
13301
  text: t.$t("weather.windBarbs"),
13288
13302
  location: "top"
13289
13303
  }, {
13290
- activator: u(({ props: _ }) => {
13291
- var P, b;
13304
+ activator: u(({ props: z }) => {
13305
+ var L, b;
13292
13306
  return [
13293
- d(f, B(_, {
13307
+ d(f, B(z, {
13294
13308
  class: "pa-1 d-flex",
13295
- color: (P = o.weatherCheckList) != null && P.includes("wind") ? "primary" : "",
13309
+ color: (L = o.weatherCheckList) != null && L.includes("wind") ? "primary" : "",
13296
13310
  variant: (b = o.weatherCheckList) != null && b.includes("wind") ? "elevated" : "text",
13297
13311
  height: "24",
13298
13312
  width: "24",
13299
13313
  "min-width": "24",
13300
- onClick: e[3] || (e[3] = (D) => r.handleClickFastWeather("wind"))
13314
+ onClick: e[3] || (e[3] = (A) => r.handleClickFastWeather("wind"))
13301
13315
  }), {
13302
13316
  default: u(() => e[14] || (e[14] = [
13303
13317
  l("i", { class: "iconfont icon-a-WindLevel" }, null, -1)
@@ -13309,24 +13323,24 @@ function hm(t, e, o, i, a, r) {
13309
13323
  }),
13310
13324
  _: 1
13311
13325
  }, 8, ["text"]),
13312
- d(L, {
13326
+ d(P, {
13313
13327
  text: t.$t("weather.sigWaveHeight"),
13314
13328
  location: "top"
13315
13329
  }, {
13316
- activator: u(({ props: _ }) => {
13317
- var P, b;
13330
+ activator: u(({ props: z }) => {
13331
+ var L, b;
13318
13332
  return [
13319
- d(f, B(_, {
13333
+ d(f, B(z, {
13320
13334
  class: "pa-1 d-flex",
13321
- color: (P = o.weatherCheckList) != null && P.includes("sig-wave-height") ? "primary" : "",
13335
+ color: (L = o.weatherCheckList) != null && L.includes("sig-wave-height") ? "primary" : "",
13322
13336
  variant: (b = o.weatherCheckList) != null && b.includes("sig-wave-height") ? "elevated" : "text",
13323
13337
  height: "24",
13324
13338
  width: "24",
13325
13339
  "min-width": "24",
13326
- onClick: e[4] || (e[4] = (D) => r.handleClickFastWeather("sig-wave-height"))
13340
+ onClick: e[4] || (e[4] = (A) => r.handleClickFastWeather("sig-wave-height"))
13327
13341
  }), {
13328
13342
  default: u(() => [
13329
- l("i", B(_, { class: "iconfont icon-a-WaveHeight" }), null, 16)
13343
+ l("i", B(z, { class: "iconfont icon-a-WaveHeight" }), null, 16)
13330
13344
  ]),
13331
13345
  _: 2
13332
13346
  }, 1040, ["color", "variant"])
@@ -13334,24 +13348,24 @@ function hm(t, e, o, i, a, r) {
13334
13348
  }),
13335
13349
  _: 1
13336
13350
  }, 8, ["text"]),
13337
- d(L, {
13351
+ d(P, {
13338
13352
  text: t.$t("weather.currentDirection"),
13339
13353
  location: "top"
13340
13354
  }, {
13341
- activator: u(({ props: _ }) => {
13342
- var P, b;
13355
+ activator: u(({ props: z }) => {
13356
+ var L, b;
13343
13357
  return [
13344
- d(f, B(_, {
13358
+ d(f, B(z, {
13345
13359
  class: "pa-1 d-flex",
13346
- color: (P = o.weatherCheckList) != null && P.includes("current-direction") ? "primary" : "",
13360
+ color: (L = o.weatherCheckList) != null && L.includes("current-direction") ? "primary" : "",
13347
13361
  variant: (b = o.weatherCheckList) != null && b.includes("current-direction") ? "elevated" : "text",
13348
13362
  height: "24",
13349
13363
  width: "24",
13350
13364
  "min-width": "24",
13351
- onClick: e[5] || (e[5] = (D) => r.handleClickFastWeather("current-direction"))
13365
+ onClick: e[5] || (e[5] = (A) => r.handleClickFastWeather("current-direction"))
13352
13366
  }), {
13353
13367
  default: u(() => [
13354
- l("i", B(_, { class: "iconfont icon-Current" }), null, 16)
13368
+ l("i", B(z, { class: "iconfont icon-Current" }), null, 16)
13355
13369
  ]),
13356
13370
  _: 2
13357
13371
  }, 1040, ["color", "variant"])
@@ -13359,12 +13373,12 @@ function hm(t, e, o, i, a, r) {
13359
13373
  }),
13360
13374
  _: 1
13361
13375
  }, 8, ["text"]),
13362
- d(L, {
13376
+ d(P, {
13363
13377
  text: t.$t("weather.weatherLayers"),
13364
13378
  location: "top"
13365
13379
  }, {
13366
- activator: u(({ props: _ }) => [
13367
- d(f, B(_, {
13380
+ activator: u(({ props: z }) => [
13381
+ d(f, B(z, {
13368
13382
  class: "pa-1 d-flex",
13369
13383
  variant: "text",
13370
13384
  height: "24",
@@ -13373,7 +13387,7 @@ function hm(t, e, o, i, a, r) {
13373
13387
  onClick: r.handleClickFastMore
13374
13388
  }), {
13375
13389
  default: u(() => [
13376
- l("i", B(_, { class: "iconfont icon-dots-align" }), null, 16)
13390
+ l("i", B(z, { class: "iconfont icon-dots-align" }), null, 16)
13377
13391
  ]),
13378
13392
  _: 2
13379
13393
  }, 1040, ["onClick"])
@@ -13392,7 +13406,7 @@ function hm(t, e, o, i, a, r) {
13392
13406
  height: "30",
13393
13407
  class: "px-2 elevation-0 text-body-1 btn-border-2",
13394
13408
  color: a.source === "GFS" ? "primary" : "",
13395
- onClick: e[6] || (e[6] = (_) => a.source = "GFS")
13409
+ onClick: e[6] || (e[6] = (z) => a.source = "GFS")
13396
13410
  }, {
13397
13411
  default: u(() => e[15] || (e[15] = [
13398
13412
  N("NOAA", -1)
@@ -13405,7 +13419,7 @@ function hm(t, e, o, i, a, r) {
13405
13419
  height: "30",
13406
13420
  class: "px-2 elevation-0 text-body-1 btn-border-2",
13407
13421
  color: a.source === "ECMWF" ? "primary" : "",
13408
- onClick: e[7] || (e[7] = (_) => a.source = "ECMWF")
13422
+ onClick: e[7] || (e[7] = (z) => a.source = "ECMWF")
13409
13423
  }, {
13410
13424
  default: u(() => e[16] || (e[16] = [
13411
13425
  N("ECMWF", -1)
@@ -13420,11 +13434,11 @@ function hm(t, e, o, i, a, r) {
13420
13434
  style: ie({ right: a.right + "px" })
13421
13435
  }, [
13422
13436
  a.showTimezone ? (y(), S("div", nm, [
13423
- (y(!0), S(be, null, we(a.offsets, (_) => (y(), S("div", {
13424
- key: _,
13437
+ (y(!0), S(be, null, we(a.offsets, (z) => (y(), S("div", {
13438
+ key: z,
13425
13439
  class: "item rounded text-body-2 hover-active",
13426
- onClick: (P) => a.timeZone = _
13427
- }, h(_ < 0 ? _ : "+" + _), 9, cm))), 128))
13440
+ onClick: (L) => a.timeZone = z
13441
+ }, h(z < 0 ? z : "+" + z), 9, cm))), 128))
13428
13442
  ])) : O("", !0),
13429
13443
  l("div", mm, [
13430
13444
  d(f, {
@@ -13433,7 +13447,7 @@ function hm(t, e, o, i, a, r) {
13433
13447
  height: "28",
13434
13448
  class: "pa-1 text-body-1",
13435
13449
  color: "primary",
13436
- onClick: e[8] || (e[8] = (_) => a.showTimezone = !a.showTimezone)
13450
+ onClick: e[8] || (e[8] = (z) => a.showTimezone = !a.showTimezone)
13437
13451
  }, {
13438
13452
  default: u(() => [
13439
13453
  N(" UTC " + h(a.timeZone < 0 ? a.timeZone : "+" + a.timeZone), 1)
@@ -13585,7 +13599,7 @@ class bm {
13585
13599
  me(this, "hi");
13586
13600
  me(this, "td");
13587
13601
  me(this, "windy");
13588
- var o, i, a, r, s, c, n, g, p, f, w, L, _, P, b, D, I, C, v, k, T, z, R, V, K, X, Z, J, ee, Q, re, de, pe, se, $, ae, ue, ne, F, ce, xe, Le, Pe, Ae, De, Re, _e, U, oe, je, Ie, ge, fe, W, Ce, te, le, Oe, j, ye, Me, Be, Ee, E, q, Ge, Ve, Ze, Te, qe, Ye, Ke, Xe, $e, Qe, Je, et, tt, ot, at, it, rt, lt, st, nt, ct, mt, dt, ht, pt, ut, gt, ft, yt, bt, wt, xt, vt, _t, kt, zt, Lt, Pt, Ct, Tt, St, It, Mt, At, Dt, Rt, Ot, Bt, Et, jt, Nt, Ft, Ht, Ut, Wt, Gt, Vt, Zt, qt, Yt, Kt, Xt, Qt, Jt, co, mo, ho, po, uo, go, fo, yo, bo, wo, xo, vo, _o, ko, zo, Lo, Po, Co, To, So, Io, Mo, Ao, Do, Ro, Oo, Bo, Eo, jo, No, Fo, Ho, Uo, Wo, Go, Vo, Zo, qo, Yo, Ko, Xo, $o, Qo, Jo, ea, ta, oa, aa, ia, ra, la, sa, na, ca, ma, da, ha, pa, ua, ga, fa, ya, ba, wa, xa, va, _a, ka, za, La, Pa, Ca, Ta, Sa, Ia, Ma, Aa, Da, Ra, Oa, Ba, Ea, ja, Na, Fa, Ha, Ua, Wa, Ga;
13602
+ var o, i, a, r, s, c, n, g, p, f, w, P, z, L, b, A, I, C, v, _, T, k, R, V, K, X, Z, J, ee, Q, re, de, pe, se, $, ae, ue, ne, F, ce, xe, Le, Pe, Ae, De, Re, _e, U, oe, je, Ie, ge, fe, W, Ce, te, le, Oe, j, ye, Me, Be, Ee, E, q, Ge, Ve, Ze, Te, qe, Ye, Ke, Xe, $e, Qe, Je, et, tt, ot, at, it, rt, lt, st, nt, ct, mt, dt, ht, pt, ut, gt, ft, yt, bt, wt, xt, vt, _t, kt, zt, Lt, Pt, Ct, Tt, St, It, Mt, At, Dt, Rt, Ot, Bt, Et, jt, Nt, Ft, Ht, Ut, Wt, Gt, Vt, Zt, qt, Yt, Kt, Xt, Qt, Jt, co, mo, ho, po, uo, go, fo, yo, bo, wo, xo, vo, _o, ko, zo, Lo, Po, Co, To, So, Io, Mo, Ao, Do, Ro, Oo, Bo, Eo, jo, No, Fo, Ho, Uo, Wo, Go, Vo, Zo, qo, Yo, Ko, Xo, $o, Qo, Jo, ea, ta, oa, aa, ia, ra, la, sa, na, ca, ma, da, ha, pa, ua, ga, fa, ya, ba, wa, xa, va, _a, ka, za, La, Pa, Ca, Ta, Sa, Ia, Ma, Aa, Da, Ra, Oa, Ba, Ea, ja, Na, Fa, Ha, Ua, Wa, Ga;
13589
13603
  this.i4 = {
13590
13604
  source: {
13591
13605
  type: "raster",
@@ -32166,12 +32180,12 @@ class bm {
32166
32180
  (c = (s = this.originStyle) == null ? void 0 : s.light.layers) == null ? void 0 : c.find((m) => m.id === "ice-area-fill"),
32167
32181
  (g = (n = this.originStyle) == null ? void 0 : n.light.layers) == null ? void 0 : g.find((m) => m.id === "ice-area-line"),
32168
32182
  (f = (p = this.originStyle) == null ? void 0 : p.light.layers) == null ? void 0 : f.find((m) => m.id === "loadlines-label"),
32169
- (L = (w = this.originStyle) == null ? void 0 : w.light.layers) == null ? void 0 : L.find((m) => m.id === "loadlines-fill"),
32170
- (P = (_ = this.originStyle) == null ? void 0 : _.light.layers) == null ? void 0 : P.find((m) => m.id === "empty-layer-0"),
32171
- (D = (b = this.originStyle) == null ? void 0 : b.light.layers) == null ? void 0 : D.find((m) => m.id === "empty-layer-1"),
32183
+ (P = (w = this.originStyle) == null ? void 0 : w.light.layers) == null ? void 0 : P.find((m) => m.id === "loadlines-fill"),
32184
+ (L = (z = this.originStyle) == null ? void 0 : z.light.layers) == null ? void 0 : L.find((m) => m.id === "empty-layer-0"),
32185
+ (A = (b = this.originStyle) == null ? void 0 : b.light.layers) == null ? void 0 : A.find((m) => m.id === "empty-layer-1"),
32172
32186
  (C = (I = this.originStyle) == null ? void 0 : I.light.layers) == null ? void 0 : C.find((m) => m.id === "country-boundaries"),
32173
- (k = (v = this.originStyle) == null ? void 0 : v.light.layers) == null ? void 0 : k.find((m) => m.id === "water-outline"),
32174
- (z = (T = this.originStyle) == null ? void 0 : T.light.layers) == null ? void 0 : z.find((m) => m.id === "water-outline2"),
32187
+ (_ = (v = this.originStyle) == null ? void 0 : v.light.layers) == null ? void 0 : _.find((m) => m.id === "water-outline"),
32188
+ (k = (T = this.originStyle) == null ? void 0 : T.light.layers) == null ? void 0 : k.find((m) => m.id === "water-outline2"),
32175
32189
  (V = (R = this.originStyle) == null ? void 0 : R.light.layers) == null ? void 0 : V.find((m) => m.id === "empty-layer-2"),
32176
32190
  (X = (K = this.originStyle) == null ? void 0 : K.light.layers) == null ? void 0 : X.find((m) => m.id === "water-line-label"),
32177
32191
  (J = (Z = this.originStyle) == null ? void 0 : Z.light.layers) == null ? void 0 : J.find((m) => m.id === "water-point-label"),
@@ -32498,6 +32512,6 @@ export {
32498
32512
  lo as PortDetail,
32499
32513
  Ka as TropicalGL,
32500
32514
  so as Viewport,
32501
- He as WebGL,
32515
+ Ne as WebGL,
32502
32516
  he as WebGLSchema
32503
32517
  };