@idmwx/idmui-gl4 1.1.2 → 1.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -3,7 +3,7 @@ var Xa = (t, e, o) => e in t ? qa(t, e, { enumerable: !0, configurable: !0, writ
3
3
  var se = (t, e, o) => (Xa(t, typeof e != "symbol" ? e + "" : e, o), o);
4
4
  import Ee from "axios";
5
5
  import { useTheme as Le } from "vuetify";
6
- import { openBlock as b, createElementBlock as M, resolveComponent as w, withDirectives as Ne, createBlock as O, withCtx as p, createVNode as d, withModifiers as io, createElementVNode as l, vShow as Fe, toDisplayString as y, Fragment as be, renderList as we, createTextVNode as U, createCommentVNode as B, normalizeStyle as ae, mergeProps as j, normalizeClass as Ue } from "vue";
6
+ import { openBlock as b, createElementBlock as M, resolveComponent as w, withDirectives as Ne, createBlock as D, withCtx as p, createVNode as d, withModifiers as io, createElementVNode as l, vShow as Fe, toDisplayString as y, Fragment as be, renderList as we, createTextVNode as U, createCommentVNode as B, normalizeStyle as ae, mergeProps as j, normalizeClass as Ue } from "vue";
7
7
  import xe from "mapbox-gl";
8
8
  import { LngLatHelper as K, TropicalHelper as Ua, LaneHelper as We } from "@idm-plugin/geo";
9
9
  import I from "moment";
@@ -486,7 +486,7 @@ const ci = {
486
486
  }, mi = ["innerHTML"];
487
487
  function di(t, e, o, i, a, r) {
488
488
  const s = w("VBtn"), c = w("v-card-text"), n = w("v-card");
489
- return Ne((b(), O(n, {
489
+ return Ne((b(), D(n, {
490
490
  class: "scroll",
491
491
  id: "idm-gl4-zone-info"
492
492
  }, {
@@ -636,7 +636,7 @@ const pi = {
636
636
  }, ui = { class: "port-box d-flex flex-column justify-center align-start ga-1" }, gi = { class: "d-flex justify-start align-center text-label" }, fi = { class: "d-flex justify-start align-center text-label" };
637
637
  function yi(t, e, o, i, a, r) {
638
638
  const s = w("VCardText"), c = w("VCard");
639
- return Ne((b(), O(c, {
639
+ return Ne((b(), D(c, {
640
640
  id: "idmPortInfo",
641
641
  ref: "idmPortInfo"
642
642
  }, {
@@ -1605,27 +1605,27 @@ function _r(t, e, o, i, a, r) {
1605
1605
  }, 512), [
1606
1606
  [Fe, a.showInfo]
1607
1607
  ]),
1608
- a.showDetail ? (b(), O(c, {
1608
+ a.showDetail ? (b(), D(c, {
1609
1609
  key: 0,
1610
1610
  class: "tide-detail-container d-flex flex-column justify-start align-center"
1611
1611
  }, {
1612
1612
  default: p(() => {
1613
- var f, L, _, T;
1613
+ var f, L, z, T;
1614
1614
  return [
1615
1615
  d(u, { class: "w-100" }, {
1616
1616
  default: p(() => {
1617
- var x;
1617
+ var v;
1618
1618
  return [
1619
1619
  l("div", Yi, [
1620
1620
  l("div", qi, [
1621
- l("div", null, y((x = a.station) == null ? void 0 : x.name), 1)
1621
+ l("div", null, y((v = a.station) == null ? void 0 : v.name), 1)
1622
1622
  ]),
1623
1623
  d(n, {
1624
1624
  icon: "",
1625
1625
  density: "compact",
1626
1626
  variant: "plain",
1627
1627
  class: "mr-n2",
1628
- onClick: e[0] || (e[0] = (D) => a.showDetail = !1)
1628
+ onClick: e[0] || (e[0] = (R) => a.showDetail = !1)
1629
1629
  }, {
1630
1630
  default: p(() => e[3] || (e[3] = [
1631
1631
  l("i", { class: "iconfont icon-close opacity-70 text-h4" }, null, -1)
@@ -1663,7 +1663,7 @@ function _r(t, e, o, i, a, r) {
1663
1663
  ]),
1664
1664
  l("div", rr, [
1665
1665
  l("div", lr, y(t.$t("tide.position")), 1),
1666
- l("div", sr, y(r.computeLng((_ = a.station) == null ? void 0 : _.lng) ?? "-") + " , " + y(r.computeLat((T = a.station) == null ? void 0 : T.lat) ?? "-"), 1)
1666
+ l("div", sr, y(r.computeLng((z = a.station) == null ? void 0 : z.lng) ?? "-") + " , " + y(r.computeLat((T = a.station) == null ? void 0 : T.lat) ?? "-"), 1)
1667
1667
  ]),
1668
1668
  l("div", nr, [
1669
1669
  l("div", cr, y(t.$t("time.localTime")), 1),
@@ -1686,7 +1686,7 @@ function _r(t, e, o, i, a, r) {
1686
1686
  l("div", fr, [
1687
1687
  d(g, {
1688
1688
  modelValue: a.currentIndex,
1689
- "onUpdate:modelValue": e[1] || (e[1] = (x) => a.currentIndex = x),
1689
+ "onUpdate:modelValue": e[1] || (e[1] = (v) => a.currentIndex = v),
1690
1690
  class: "w-100 gray-card rounded d-flex justify-space-around align-center ga-0 px-1 mb-4",
1691
1691
  density: "compact",
1692
1692
  group: "",
@@ -1695,15 +1695,15 @@ function _r(t, e, o, i, a, r) {
1695
1695
  rounded: "1"
1696
1696
  }, {
1697
1697
  default: p(() => [
1698
- (b(!0), M(be, null, we(r.dateList, (x) => (b(), O(n, {
1698
+ (b(!0), M(be, null, we(r.dateList, (v) => (b(), D(n, {
1699
1699
  class: "text-none text-body-1 rounded bg-none flex-1-1-0",
1700
1700
  density: "compact",
1701
1701
  color: "primary",
1702
1702
  height: "26",
1703
- value: x.index
1703
+ value: v.index
1704
1704
  }, {
1705
1705
  default: p(() => [
1706
- U(y(x.label), 1)
1706
+ U(y(v.label), 1)
1707
1707
  ]),
1708
1708
  _: 2
1709
1709
  }, 1032, ["value"]))), 256))
@@ -1715,27 +1715,27 @@ function _r(t, e, o, i, a, r) {
1715
1715
  l("tbody", null, [
1716
1716
  l("tr", null, [
1717
1717
  l("th", wr, y(t.$t("tide.tide")) + " ( m )", 1),
1718
- (b(!0), M(be, null, we(a.tideTableData, (x, D) => {
1718
+ (b(!0), M(be, null, we(a.tideTableData, (v, R) => {
1719
1719
  var S;
1720
1720
  return b(), M("td", {
1721
- key: x.type + "-" + D,
1721
+ key: v.type + "-" + R,
1722
1722
  class: "px-1 text-center"
1723
- }, y(t.$t(`tide.${(S = x == null ? void 0 : x.type) == null ? void 0 : S.toLowerCase()}`)), 1);
1723
+ }, y(t.$t(`tide.${(S = v == null ? void 0 : v.type) == null ? void 0 : S.toLowerCase()}`)), 1);
1724
1724
  }), 128))
1725
1725
  ]),
1726
1726
  l("tr", null, [
1727
1727
  l("th", xr, y(t.$t("tide.datum")), 1),
1728
- (b(!0), M(be, null, we(a.tideTableData, (x, D) => (b(), M("td", {
1729
- key: x.date + "-" + D,
1728
+ (b(!0), M(be, null, we(a.tideTableData, (v, R) => (b(), M("td", {
1729
+ key: v.date + "-" + R,
1730
1730
  class: "px-1 text-center"
1731
- }, y(r.computeHourLT(x == null ? void 0 : x.date, a.station)) + " LT", 1))), 128))
1731
+ }, y(r.computeHourLT(v == null ? void 0 : v.date, a.station)) + " LT", 1))), 128))
1732
1732
  ]),
1733
1733
  l("tr", null, [
1734
1734
  l("th", vr, y(t.$t("tide.chartDatum")), 1),
1735
- (b(!0), M(be, null, we(a.tideTableData, (x, D) => (b(), M("td", {
1736
- key: x.height + "-" + D,
1735
+ (b(!0), M(be, null, we(a.tideTableData, (v, R) => (b(), M("td", {
1736
+ key: v.height + "-" + R,
1737
1737
  class: "px-1 text-center"
1738
- }, y((x == null ? void 0 : x.height) ?? "-") + " m", 1))), 128))
1738
+ }, y((v == null ? void 0 : v.height) ?? "-") + " m", 1))), 128))
1739
1739
  ])
1740
1740
  ])
1741
1741
  ])
@@ -2883,7 +2883,7 @@ const Sr = {
2883
2883
  }, Mr = { class: "port-box d-flex flex-column justify-center align-start ga-1" }, Ir = { class: "d-flex justify-start align-center text-label" }, Ar = { class: "d-flex justify-start align-center text-label" };
2884
2884
  function Dr(t, e, o, i, a, r) {
2885
2885
  const s = w("v-card-text"), c = w("v-card");
2886
- return Ne((b(), O(c, {
2886
+ return Ne((b(), D(c, {
2887
2887
  id: "idmFollowPortInfo",
2888
2888
  ref: "idmFollowPortInfo"
2889
2889
  }, {
@@ -3804,20 +3804,20 @@ const Or = {
3804
3804
  if (e.properties) {
3805
3805
  const g = e.properties;
3806
3806
  g.lng = e.geometry.coordinates[0], g.lat = e.geometry.coordinates[1], console.log("point", g);
3807
- const f = I(), L = (o = I(this.realTime)) == null ? void 0 : o.diff(f, "d", !0), _ = {
3807
+ const f = I(), L = (o = I(this.realTime)) == null ? void 0 : o.diff(f, "d", !0), z = {
3808
3808
  lat: g.lat,
3809
3809
  lng: g.lng,
3810
3810
  datetime: this.realTime,
3811
3811
  forecastModel: this.forecastModel
3812
3812
  };
3813
- 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(_) : (h = (u = (n = (c = this.$parent) == null ? void 0 : c.$parent) == null ? void 0 : n.$refs) == null ? void 0 : u.idmSpot) == null || h.fetchHistoryData(_);
3813
+ 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(z) : (h = (u = (n = (c = this.$parent) == null ? void 0 : c.$parent) == null ? void 0 : n.$refs) == null ? void 0 : u.idmSpot) == null || h.fetchHistoryData(z);
3814
3814
  }
3815
3815
  },
3816
3816
  handleHover(t) {
3817
3817
  this.map.getCanvas().style.cursor = "pointer";
3818
3818
  const e = t.features[0];
3819
3819
  if (e.properties.id) {
3820
- this.showInfo = !0, this.position = e.properties, console.log("positionId", this.position);
3820
+ this.showInfo = !0, this.position = e.properties;
3821
3821
  const o = document.getElementById("idmFollowPositionInfo");
3822
3822
  this.marker ? this.marker.setLngLat([t.lngLat.lng, t.lngLat.lat]) : this.marker = new xe.Marker(o).setLngLat([t.lngLat.lng, t.lngLat.lat]).setOffset([0, -70]).addTo(this.map);
3823
3823
  }
@@ -3832,7 +3832,7 @@ const Or = {
3832
3832
  };
3833
3833
  function Nr(t, e, o, i, a, r) {
3834
3834
  const s = w("v-card-text"), c = w("v-card");
3835
- return Ne((b(), O(c, {
3835
+ return Ne((b(), D(c, {
3836
3836
  id: "idmFollowPositionInfo",
3837
3837
  ref: "idmFollowPositionInfo"
3838
3838
  }, {
@@ -3857,7 +3857,7 @@ function Nr(t, e, o, i, a, r) {
3857
3857
  [Fe, a.showInfo]
3858
3858
  ]);
3859
3859
  }
3860
- const Fr = /* @__PURE__ */ V(Or, [["render", Nr], ["__scopeId", "data-v-e7fba3a0"]]);
3860
+ const Fr = /* @__PURE__ */ V(Or, [["render", Nr], ["__scopeId", "data-v-d7c3b0b2"]]);
3861
3861
  const Hr = {
3862
3862
  name: "IdmOtherLayerr",
3863
3863
  components: {
@@ -4076,7 +4076,7 @@ const Hr = {
4076
4076
  }, Jr = { class: "text-body-2 text-center pt-1" };
4077
4077
  function $r(t, e, o, i, a, r) {
4078
4078
  var J, le, pe, ue, ce, Q, ie, ge, me;
4079
- const s = w("VBtn"), c = w("VTooltip"), n = w("VCardTitle"), u = w("VCardItem"), h = w("VCheckbox"), g = w("VCardText"), f = w("VCard"), L = w("IdmLatLng"), _ = w("IdmTerminator"), T = w("IdmTimezone"), x = w("IdmPort"), D = w("IdmAlertZone"), S = w("IdmTideStations"), P = w("IdmEcaZone"), k = w("IdmWarZone"), z = w("IdmGmdssArea"), C = w("IdmLoadLine"), v = w("IdmWorldMarine"), A = w("IdmVRA"), Z = w("IdmSpecialArea"), q = w("IdmWorld12nm"), X = w("IdmChinaRoute"), Y = w("IdmIceAreas"), te = w("IdmFollowPort"), oe = w("IdmFollowPosition");
4079
+ const s = w("VBtn"), c = w("VTooltip"), n = w("VCardTitle"), u = w("VCardItem"), h = w("VCheckbox"), g = w("VCardText"), f = w("VCard"), L = w("IdmLatLng"), z = w("IdmTerminator"), T = w("IdmTimezone"), v = w("IdmPort"), R = w("IdmAlertZone"), S = w("IdmTideStations"), C = w("IdmEcaZone"), x = w("IdmWarZone"), _ = w("IdmGmdssArea"), P = w("IdmLoadLine"), k = w("IdmWorldMarine"), A = w("IdmVRA"), Z = w("IdmSpecialArea"), q = w("IdmWorld12nm"), X = w("IdmChinaRoute"), Y = w("IdmIceAreas"), te = w("IdmFollowPort"), oe = w("IdmFollowPosition");
4080
4080
  return b(), M("div", Wr, [
4081
4081
  l("div", {
4082
4082
  class: "menu-bar-box transition px-1 rounded",
@@ -4160,7 +4160,7 @@ function $r(t, e, o, i, a, r) {
4160
4160
  l("div", Jr, y(t.$t(`layer.${F.locale}`)), 1)
4161
4161
  ], 8, Yr))), 128))
4162
4162
  ]),
4163
- (b(!0), M(be, null, we(a.tagLayers.filter((F) => ["graticule", "day-night", "time-zones"].includes(F.key)), (F) => (b(), O(h, {
4163
+ (b(!0), M(be, null, we(a.tagLayers.filter((F) => ["graticule", "day-night", "time-zones"].includes(F.key)), (F) => (b(), D(h, {
4164
4164
  key: F.key,
4165
4165
  modelValue: a.checkList,
4166
4166
  "onUpdate:modelValue": e[0] || (e[0] = (de) => a.checkList = de),
@@ -4199,7 +4199,7 @@ function $r(t, e, o, i, a, r) {
4199
4199
  }),
4200
4200
  d(g, { class: "py-2" }, {
4201
4201
  default: p(() => [
4202
- (b(!0), M(be, null, we(a.tagLayers.filter((F) => ["ports", "alert-zones", "tidal-stations"].includes(F.key)), (F) => (b(), O(h, {
4202
+ (b(!0), M(be, null, we(a.tagLayers.filter((F) => ["ports", "alert-zones", "tidal-stations"].includes(F.key)), (F) => (b(), D(h, {
4203
4203
  key: F.key,
4204
4204
  modelValue: a.checkList,
4205
4205
  "onUpdate:modelValue": e[1] || (e[1] = (de) => a.checkList = de),
@@ -4238,7 +4238,7 @@ function $r(t, e, o, i, a, r) {
4238
4238
  }),
4239
4239
  d(g, { class: "py-2" }, {
4240
4240
  default: p(() => [
4241
- (b(!0), M(be, null, we(a.tagLayers.filter((F) => !["graticule", "day-night", "time-zones", "ports", "alert-zones", "tidal-stations"].includes(F.key)), (F) => (b(), O(h, {
4241
+ (b(!0), M(be, null, we(a.tagLayers.filter((F) => !["graticule", "day-night", "time-zones", "ports", "alert-zones", "tidal-stations"].includes(F.key)), (F) => (b(), D(h, {
4242
4242
  key: F.key,
4243
4243
  modelValue: a.checkList,
4244
4244
  "onUpdate:modelValue": e[2] || (e[2] = (de) => a.checkList = de),
@@ -4307,29 +4307,29 @@ function $r(t, e, o, i, a, r) {
4307
4307
  })
4308
4308
  ])
4309
4309
  ], 6),
4310
- o.map ? (b(), O(L, j({
4310
+ o.map ? (b(), D(L, j({
4311
4311
  key: 0,
4312
4312
  map: o.map,
4313
4313
  "menu-toggle": o.menuToggle,
4314
4314
  show: a.checkList.includes("graticule")
4315
4315
  }, t.$attrs), null, 16, ["map", "menu-toggle", "show"])) : B("", !0),
4316
- o.map ? (b(), O(_, j({
4316
+ o.map ? (b(), D(z, j({
4317
4317
  key: 1,
4318
4318
  map: o.map,
4319
4319
  area: (J = a.otherLayers) == null ? void 0 : J["day-night"]
4320
4320
  }, t.$attrs), null, 16, ["map", "area"])) : B("", !0),
4321
- o.map ? (b(), O(T, j({
4321
+ o.map ? (b(), D(T, j({
4322
4322
  key: 2,
4323
4323
  map: o.map,
4324
4324
  zone: (le = a.otherLayers) == null ? void 0 : le["time-zones"]
4325
4325
  }, t.$attrs), null, 16, ["map", "zone"])) : B("", !0),
4326
- o.map ? (b(), O(x, j({
4326
+ o.map ? (b(), D(v, j({
4327
4327
  key: 3,
4328
4328
  map: o.map,
4329
4329
  ports: (pe = a.otherLayers) == null ? void 0 : pe.ports,
4330
4330
  "forecast-model": o.forecastModel
4331
4331
  }, t.$attrs, { "before-layer": "empty-layer-3" }), null, 16, ["map", "ports", "forecast-model"])) : B("", !0),
4332
- o.map ? (b(), O(D, j({
4332
+ o.map ? (b(), D(R, j({
4333
4333
  key: 4,
4334
4334
  map: o.map,
4335
4335
  zone: (ue = a.otherLayers) == null ? void 0 : ue["alert-zones"]
@@ -4337,7 +4337,7 @@ function $r(t, e, o, i, a, r) {
4337
4337
  "before-layer": "empty-layer-3",
4338
4338
  theme: o.theme
4339
4339
  }), null, 16, ["map", "zone", "theme"])) : B("", !0),
4340
- o.map ? (b(), O(S, j({
4340
+ o.map ? (b(), D(S, j({
4341
4341
  key: 5,
4342
4342
  ref: "idmIideStation",
4343
4343
  map: o.map,
@@ -4348,66 +4348,66 @@ function $r(t, e, o, i, a, r) {
4348
4348
  realTime: o.realTime,
4349
4349
  forecastModel: o.forecastModel
4350
4350
  }, t.$attrs), null, 16, ["map", "gateway", "token", "show", "theme", "realTime", "forecastModel"])) : B("", !0),
4351
- o.map ? (b(), O(P, j({
4351
+ o.map ? (b(), D(C, j({
4352
4352
  key: 6,
4353
4353
  map: o.map,
4354
4354
  zone: (ce = a.otherLayers) == null ? void 0 : ce["eca-zones"]
4355
4355
  }, t.$attrs), null, 16, ["map", "zone"])) : B("", !0),
4356
- o.map ? (b(), O(k, j({
4356
+ o.map ? (b(), D(x, j({
4357
4357
  key: 7,
4358
4358
  map: o.map,
4359
4359
  zone: (Q = a.otherLayers) == null ? void 0 : Q["war-zones"]
4360
4360
  }, t.$attrs), null, 16, ["map", "zone"])) : B("", !0),
4361
- o.map ? (b(), O(z, j({
4361
+ o.map ? (b(), D(_, j({
4362
4362
  key: 8,
4363
4363
  map: o.map,
4364
4364
  area: (ie = a.otherLayers) == null ? void 0 : ie["gmdss-areas"]
4365
4365
  }, t.$attrs), null, 16, ["map", "area"])) : B("", !0),
4366
- o.map ? (b(), O(C, j({
4366
+ o.map ? (b(), D(P, j({
4367
4367
  key: 9,
4368
4368
  map: o.map,
4369
4369
  show: a.checkList.includes("load-lines")
4370
4370
  }, t.$attrs), null, 16, ["map", "show"])) : B("", !0),
4371
- o.map ? (b(), O(v, j({
4371
+ o.map ? (b(), D(k, j({
4372
4372
  key: 10,
4373
4373
  map: o.map,
4374
4374
  token: o.token,
4375
4375
  show: a.checkList.includes("worldMarine")
4376
4376
  }, t.$attrs), null, 16, ["map", "token", "show"])) : B("", !0),
4377
- o.map ? (b(), O(A, j({
4377
+ o.map ? (b(), D(A, j({
4378
4378
  key: 11,
4379
4379
  map: o.map,
4380
4380
  area: (ge = a.otherLayers) == null ? void 0 : ge["voluntary-reporting-area"]
4381
4381
  }, t.$attrs), null, 16, ["map", "area"])) : B("", !0),
4382
- o.map ? (b(), O(Z, j({
4382
+ o.map ? (b(), D(Z, j({
4383
4383
  key: 12,
4384
4384
  map: o.map,
4385
4385
  area: (me = a.otherLayers) == null ? void 0 : me["special-area"]
4386
4386
  }, t.$attrs), null, 16, ["map", "area"])) : B("", !0),
4387
- o.map ? (b(), O(q, j({
4387
+ o.map ? (b(), D(q, j({
4388
4388
  key: 13,
4389
4389
  map: o.map,
4390
4390
  token: o.token,
4391
4391
  show: a.checkList.includes("world12nm")
4392
4392
  }, t.$attrs), null, 16, ["map", "token", "show"])) : B("", !0),
4393
- o.map ? (b(), O(X, j({
4393
+ o.map ? (b(), D(X, j({
4394
4394
  key: 14,
4395
4395
  map: o.map,
4396
4396
  token: o.token,
4397
4397
  show: a.checkList.includes("chinaRoute")
4398
4398
  }, t.$attrs), null, 16, ["map", "token", "show"])) : B("", !0),
4399
- o.map ? (b(), O(Y, j({
4399
+ o.map ? (b(), D(Y, j({
4400
4400
  key: 15,
4401
4401
  map: o.map,
4402
4402
  show: a.checkList.includes("ice-areas")
4403
4403
  }, t.$attrs), null, 16, ["map", "show"])) : B("", !0),
4404
- o.map ? (b(), O(te, j({
4404
+ o.map ? (b(), D(te, j({
4405
4405
  key: 16,
4406
4406
  map: o.map,
4407
4407
  show: a.checkList.includes("follow-ports"),
4408
4408
  "forecast-model": o.forecastModel
4409
4409
  }, t.$attrs, { "before-layer": "empty-layer-3" }), null, 16, ["map", "show", "forecast-model"])) : B("", !0),
4410
- o.map ? (b(), O(oe, j({
4410
+ o.map ? (b(), D(oe, j({
4411
4411
  key: 17,
4412
4412
  map: o.map,
4413
4413
  show: a.checkList.includes("follow-positions"),
@@ -4463,8 +4463,8 @@ class ro {
4463
4463
  * @param [lb.x, lb.y, rt.x, rt.y]
4464
4464
  */
4465
4465
  getBoundPixel() {
4466
- var _, T;
4467
- const e = (_ = this.map) == null ? void 0 : _.getBounds();
4466
+ var z, T;
4467
+ const e = (z = this.map) == null ? void 0 : z.getBounds();
4468
4468
  if (!e)
4469
4469
  return [];
4470
4470
  const o = ((T = this.map) == null ? void 0 : T.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]), [u, h] = this.mercator.px([r, i[1]], o), [g, f] = this.mercator.px([c, a[1]], o), L = Math.round(this.mercator.size * Math.pow(2, o) * (s + n));
@@ -4652,9 +4652,9 @@ class He {
4652
4652
  };
4653
4653
  h.resolution && o.uniform2f(h.resolution, o.canvas.width * e.ratio, o.canvas.height * e.ratio), o.activeTexture(o.TEXTURE0), o.bindTexture(o.TEXTURE_2D, a), h.image && o.uniform1i(h.image, 0), o.activeTexture(o.TEXTURE1), o.bindTexture(o.TEXTURE_2D, r), h.color && o.uniform1i(h.color, 1), c != null && c.uvRange && (c != null && c.sRange) && (h.uvRange && o.uniform2f(h.uvRange, c.uvRange[0], c.uvRange[1]), h.sRange && o.uniform2f(h.sRange, c.sRange[0], c.sRange[1])), h.scale && o.uniform1f(h.scale, (c == null ? void 0 : c.scale) || 1);
4654
4654
  const g = e.getBoundPixel(), f = e.map.getZoom() + 1, L = e.getWorldCopy(g, f);
4655
- for (const _ of L) {
4656
- const T = (_[0] - g[0]) * e.ratio, x = (_[1] - g[3]) * e.ratio, D = _[2] * e.ratio, [S, P, k, z] = [T, D + T, x, D + x], C = new Float32Array([S, k, P, k, S, z, S, z, P, k, P, z]);
4657
- o.bindBuffer(o.ARRAY_BUFFER, s), o.bufferData(o.ARRAY_BUFFER, C, o.STATIC_DRAW), o.drawArrays(o.TRIANGLES, 0, 6);
4655
+ for (const z of L) {
4656
+ const T = (z[0] - g[0]) * e.ratio, v = (z[1] - g[3]) * e.ratio, R = z[2] * e.ratio, [S, C, x, _] = [T, R + T, v, R + v], P = new Float32Array([S, x, C, x, S, _, S, _, C, x, C, _]);
4657
+ o.bindBuffer(o.ARRAY_BUFFER, s), o.bufferData(o.ARRAY_BUFFER, P, o.STATIC_DRAW), o.drawArrays(o.TRIANGLES, 0, 6);
4658
4658
  }
4659
4659
  } catch (h) {
4660
4660
  console.log(`render failed...${h}`);
@@ -7237,19 +7237,19 @@ const is = {
7237
7237
  const e = (/* @__PURE__ */ new Date()).valueOf();
7238
7238
  let o = 0, i = 0;
7239
7239
  if (this.map) {
7240
- const L = ((a = this.map) == null ? void 0 : a.getZoom()) + 1, _ = (r = this.map) == null ? void 0 : r.getBounds(), T = `${_._sw.lng},${_._sw.lat},${_._ne.lng},${_._ne.lat}`;
7240
+ const L = ((a = this.map) == null ? void 0 : a.getZoom()) + 1, z = (r = this.map) == null ? void 0 : r.getBounds(), T = `${z._sw.lng},${z._sw.lat},${z._ne.lng},${z._ne.lat}`;
7241
7241
  if (this.particleFactor && ((s = this.$refs.layer) != null && s.autoActive)) {
7242
- const x = oo.WEATHER_LAYERS.find((D) => {
7242
+ const v = oo.WEATHER_LAYERS.find((R) => {
7243
7243
  var S;
7244
- return ((S = D.peer) == null ? void 0 : S.weight) === this.particleFactor.weight;
7244
+ return ((S = R.peer) == null ? void 0 : S.weight) === this.particleFactor.weight;
7245
7245
  });
7246
- this.particleFactor.particle && (this.showWindParticle || this.showCurrentParticle) ? this.weatherWeight = this.weatherWeight & x.weight ? this.weatherWeight : this.weatherWeight + x.weight : this.weatherWeight = this.weatherWeight & x.weight ? this.weatherWeight - x.weight : this.weatherWeight;
7246
+ this.particleFactor.particle && (this.showWindParticle || this.showCurrentParticle) ? this.weatherWeight = this.weatherWeight & v.weight ? this.weatherWeight : this.weatherWeight + v.weight : this.weatherWeight = this.weatherWeight & v.weight ? this.weatherWeight - v.weight : this.weatherWeight;
7247
7247
  }
7248
7248
  if (this.weatherWeight > 0) {
7249
- let x = this.weatherWeight;
7250
- if (x > 0) {
7251
- const D = this.assistGateway[Math.round(Math.random() * (this.assistGateway.length - 1))], S = await Ee.get(
7252
- `${D}/api/arc/weather/layers2/links?l=${x}&v=${this.forecastModel}&z=${L}&bbox=${T}&t=${this.realTime}`,
7249
+ let v = this.weatherWeight;
7250
+ if (v > 0) {
7251
+ const R = this.assistGateway[Math.round(Math.random() * (this.assistGateway.length - 1))], S = await Ee.get(
7252
+ `${R}/api/arc/weather/layers2/links?l=${v}&v=${this.forecastModel}&z=${L}&bbox=${T}&t=${this.realTime}`,
7253
7253
  {
7254
7254
  headers: {
7255
7255
  Authorization: this.token || this.defaultMeteoToken
@@ -7257,46 +7257,46 @@ const is = {
7257
7257
  }
7258
7258
  );
7259
7259
  if (i = (/* @__PURE__ */ new Date()).valueOf() - (e + o), console.log("weather links elapsed: ", i, ", total: ", o += i), ((c = S == null ? void 0 : S.data) == null ? void 0 : c.code) === 0) {
7260
- const P = (n = S == null ? void 0 : S.data) == null ? void 0 : n.data, k = [];
7261
- for (const C in P)
7262
- k.push(
7263
- Ee.get(P[C], {
7260
+ const C = (n = S == null ? void 0 : S.data) == null ? void 0 : n.data, x = [];
7261
+ for (const P in C)
7262
+ x.push(
7263
+ Ee.get(C[P], {
7264
7264
  headers: {
7265
7265
  Authorization: this.token || this.defaultMeteoToken,
7266
- key: C
7266
+ key: P
7267
7267
  },
7268
- responseType: /\.(jpg|png)$/.test(P[C]) ? "blob" : "json"
7269
- }).catch((v) => {
7270
- console.log(`[${C}] fetch layer error: ${v}`);
7268
+ responseType: /\.(jpg|png)$/.test(C[P]) ? "blob" : "json"
7269
+ }).catch((k) => {
7270
+ console.log(`[${P}] fetch layer error: ${k}`);
7271
7271
  })
7272
7272
  );
7273
- const z = await Promise.all(k);
7274
- this.weatherLayers = {}, z.map((C) => {
7273
+ const _ = await Promise.all(x);
7274
+ this.weatherLayers = {}, _.map((P) => {
7275
7275
  var Z, q, X, Y;
7276
- const v = ((Z = C == null ? void 0 : C.data) == null ? void 0 : Z.data) || (C == null ? void 0 : C.data);
7277
- let A = (X = (q = C == null ? void 0 : C.config) == null ? void 0 : q.headers) == null ? void 0 : X.key;
7278
- A && v && (this.weatherLayers[A] = {
7279
- raw: v,
7280
- type: ((Y = C == null ? void 0 : C.config) == null ? void 0 : Y.responseType) === "blob" ? "image" : "json",
7276
+ const k = ((Z = P == null ? void 0 : P.data) == null ? void 0 : Z.data) || (P == null ? void 0 : P.data);
7277
+ let A = (X = (q = P == null ? void 0 : P.config) == null ? void 0 : q.headers) == null ? void 0 : X.key;
7278
+ A && k && (this.weatherLayers[A] = {
7279
+ raw: k,
7280
+ type: ((Y = P == null ? void 0 : P.config) == null ? void 0 : Y.responseType) === "blob" ? "image" : "json",
7281
7281
  etime: S.data.etime
7282
7282
  });
7283
7283
  });
7284
7284
  }
7285
7285
  if (i = (/* @__PURE__ */ new Date()).valueOf() - (e + o), console.log("weather layers elapsed: ", i, ", total: ", o += i), this.weatherLayers["swell-direction"] || this.weatherLayers["swell-height"]) {
7286
- const P = (u = this.weatherLayers["swell-direction"]) == null ? void 0 : u.raw, k = (h = this.weatherLayers["swell-height"]) == null ? void 0 : h.raw;
7286
+ const C = (u = this.weatherLayers["swell-direction"]) == null ? void 0 : u.raw, x = (h = this.weatherLayers["swell-height"]) == null ? void 0 : h.raw;
7287
7287
  delete this.weatherLayers["swell-direction"], delete this.weatherLayers["swell-height"], this.weatherLayers.swell = {
7288
7288
  type: "json",
7289
- direction: P,
7290
- height: { raw: k },
7289
+ direction: C,
7290
+ height: { raw: x },
7291
7291
  etime: S.data.etime
7292
7292
  };
7293
7293
  }
7294
7294
  if (this.weatherLayers["current-direction"] || this.weatherLayers["current-speed"]) {
7295
- const P = (g = this.weatherLayers["current-direction"]) == null ? void 0 : g.raw, k = (f = this.weatherLayers["current-speed"]) == null ? void 0 : f.raw;
7295
+ const C = (g = this.weatherLayers["current-direction"]) == null ? void 0 : g.raw, x = (f = this.weatherLayers["current-speed"]) == null ? void 0 : f.raw;
7296
7296
  delete this.weatherLayers["current-direction"], delete this.weatherLayers["current-speed"], this.weatherLayers.current = {
7297
7297
  type: "json",
7298
- direction: P,
7299
- speed: { raw: k },
7298
+ direction: C,
7299
+ speed: { raw: x },
7300
7300
  etime: S.data.etime
7301
7301
  };
7302
7302
  }
@@ -7353,253 +7353,253 @@ const is = {
7353
7353
  );
7354
7354
  },
7355
7355
  handleDrawWeather4Json() {
7356
- var u, h, g, f, L, _, T;
7356
+ var u, h, g, f, L, z, T;
7357
7357
  const t = (/* @__PURE__ */ new Date()).valueOf();
7358
7358
  let e = 0, o = 0;
7359
7359
  const i = (u = this.map) == null ? void 0 : u.getBounds(), a = (h = this.map) == null ? void 0 : h.getZoom(), r = K.convertToStdLng(i._sw.lng), s = K.convertToStdLng(i._ne.lng), c = Math.floor(i._sw.lat), n = Math.ceil(i._ne.lat);
7360
- for (const x in this.weatherLayers) {
7361
- let D = !1;
7362
- if (this.weatherLayers[x].active && this.weatherLayers[x].type === "json") {
7360
+ for (const v in this.weatherLayers) {
7361
+ let R = !1;
7362
+ if (this.weatherLayers[v].active && this.weatherLayers[v].type === "json") {
7363
7363
  let S = [];
7364
- if (x === "swell") {
7365
- D = !0;
7366
- const P = ((g = this.weatherLayers[x]) == null ? void 0 : g.direction) || {};
7367
- for (const z in P)
7368
- if (z > c && z < n && (!(a <= this.zoom) || z % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
7369
- const C = P[z].lng;
7370
- r > s ? C.forEach((v, A) => {
7364
+ if (v === "swell") {
7365
+ R = !0;
7366
+ const C = ((g = this.weatherLayers[v]) == null ? void 0 : g.direction) || {};
7367
+ for (const _ in C)
7368
+ if (_ > c && _ < n && (!(a <= this.zoom) || _ % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
7369
+ const P = C[_].lng;
7370
+ r > s ? P.forEach((k, A) => {
7371
7371
  var Z, q, X, Y, te, oe;
7372
7372
  if (a < 2) {
7373
- if ((v >= 0 && v <= 360 || v >= -360 && v <= 0) && v % 10 === 0) {
7374
- const J = N.point([v, z], {
7375
- val: ((Z = P[z].val) == null ? void 0 : Z[A]) || ((q = P[z].dir) == null ? void 0 : q[A]),
7376
- spd: (X = P[z].spd) == null ? void 0 : X[A]
7373
+ if ((k >= 0 && k <= 360 || k >= -360 && k <= 0) && k % 10 === 0) {
7374
+ const J = N.point([k, _], {
7375
+ val: ((Z = C[_].val) == null ? void 0 : Z[A]) || ((q = C[_].dir) == null ? void 0 : q[A]),
7376
+ spd: (X = C[_].spd) == null ? void 0 : X[A]
7377
7377
  });
7378
7378
  S.push(J);
7379
7379
  }
7380
- } else if ((v >= r && v <= 180 || v >= -180 && v <= s) && (!(a <= this.zoom) || v % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
7381
- const J = N.point([v, z], {
7382
- val: ((Y = P[z].val) == null ? void 0 : Y[A]) || ((te = P[z].dir) == null ? void 0 : te[A]),
7383
- spd: (oe = P[z].spd) == null ? void 0 : oe[A]
7380
+ } else if ((k >= r && k <= 180 || k >= -180 && k <= s) && (!(a <= this.zoom) || k % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
7381
+ const J = N.point([k, _], {
7382
+ val: ((Y = C[_].val) == null ? void 0 : Y[A]) || ((te = C[_].dir) == null ? void 0 : te[A]),
7383
+ spd: (oe = C[_].spd) == null ? void 0 : oe[A]
7384
7384
  });
7385
7385
  S.push(J);
7386
7386
  }
7387
- }) : C.forEach((v, A) => {
7387
+ }) : P.forEach((k, A) => {
7388
7388
  var Z, q, X, Y, te, oe;
7389
7389
  if (r < 2) {
7390
- if ((v >= 0 && v <= 360 || v >= -360 && v <= 0) && v % 10 === 0) {
7391
- const J = N.point([v, z], {
7392
- val: ((Z = P[z].val) == null ? void 0 : Z[A]) || ((q = P[z].dir) == null ? void 0 : q[A]),
7393
- spd: (X = P[z].spd) == null ? void 0 : X[A]
7390
+ if ((k >= 0 && k <= 360 || k >= -360 && k <= 0) && k % 10 === 0) {
7391
+ const J = N.point([k, _], {
7392
+ val: ((Z = C[_].val) == null ? void 0 : Z[A]) || ((q = C[_].dir) == null ? void 0 : q[A]),
7393
+ spd: (X = C[_].spd) == null ? void 0 : X[A]
7394
7394
  });
7395
7395
  S.push(J);
7396
7396
  }
7397
- } else if (v >= r && v <= s && (!(a <= this.zoom) || v % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
7398
- const J = N.point([v, z], {
7399
- val: ((Y = P[z].val) == null ? void 0 : Y[A]) || ((te = P[z].dir) == null ? void 0 : te[A]),
7400
- spd: (oe = P[z].spd) == null ? void 0 : oe[A]
7397
+ } else if (k >= r && k <= s && (!(a <= this.zoom) || k % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
7398
+ const J = N.point([k, _], {
7399
+ val: ((Y = C[_].val) == null ? void 0 : Y[A]) || ((te = C[_].dir) == null ? void 0 : te[A]),
7400
+ spd: (oe = C[_].spd) == null ? void 0 : oe[A]
7401
7401
  });
7402
7402
  S.push(J);
7403
7403
  }
7404
7404
  });
7405
7405
  }
7406
7406
  o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("swell direction elapsed: ", o, ", total: ", e += o);
7407
- const k = this.weatherLayers[x].height;
7408
- if (k) {
7409
- if (!k.data) {
7410
- const z = [];
7411
- for (const C in (f = k.raw) == null ? void 0 : f.LineString) {
7412
- const v = k.raw.LineString[C];
7413
- for (const A of v)
7414
- z.push(
7407
+ const x = this.weatherLayers[v].height;
7408
+ if (x) {
7409
+ if (!x.data) {
7410
+ const _ = [];
7411
+ for (const P in (f = x.raw) == null ? void 0 : f.LineString) {
7412
+ const k = x.raw.LineString[P];
7413
+ for (const A of k)
7414
+ _.push(
7415
7415
  N.lineString(A, {
7416
- val: Number(C)
7416
+ val: Number(P)
7417
7417
  })
7418
7418
  );
7419
- k.data = N.featureCollection(z);
7419
+ x.data = N.featureCollection(_);
7420
7420
  }
7421
7421
  }
7422
- if (k.data) {
7423
- const z = this.handleBboxClip(k.data, i);
7424
- S = S.concat(z);
7422
+ if (x.data) {
7423
+ const _ = this.handleBboxClip(x.data, i);
7424
+ S = S.concat(_);
7425
7425
  }
7426
7426
  o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("swell height elapsed: ", o, ", total: ", e += o);
7427
7427
  }
7428
- } else if (x === "current") {
7429
- D = !0;
7430
- const P = ((L = this.weatherLayers[x]) == null ? void 0 : L.direction) || {};
7431
- for (const z in P)
7432
- if (z > c && z < n && (!(a <= this.zoom) || z % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
7433
- const C = P[z].lng;
7434
- r > s ? C.forEach((v, A) => {
7428
+ } else if (v === "current") {
7429
+ R = !0;
7430
+ const C = ((L = this.weatherLayers[v]) == null ? void 0 : L.direction) || {};
7431
+ for (const _ in C)
7432
+ if (_ > c && _ < n && (!(a <= this.zoom) || _ % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
7433
+ const P = C[_].lng;
7434
+ r > s ? P.forEach((k, A) => {
7435
7435
  var Z, q, X, Y, te, oe;
7436
7436
  if (a < 2) {
7437
- if ((v >= 0 && v <= 360 || v >= -360 && v <= 0) && v % 10 === 0) {
7438
- const J = N.point([v, z], {
7439
- val: ((Z = P[z].val) == null ? void 0 : Z[A]) || ((q = P[z].dir) == null ? void 0 : q[A]),
7440
- spd: (X = P[z].spd) == null ? void 0 : X[A]
7437
+ if ((k >= 0 && k <= 360 || k >= -360 && k <= 0) && k % 10 === 0) {
7438
+ const J = N.point([k, _], {
7439
+ val: ((Z = C[_].val) == null ? void 0 : Z[A]) || ((q = C[_].dir) == null ? void 0 : q[A]),
7440
+ spd: (X = C[_].spd) == null ? void 0 : X[A]
7441
7441
  });
7442
7442
  S.push(J);
7443
7443
  }
7444
- } else if ((v >= r && v <= 180 || v >= -180 && v <= s) && (!(a <= this.zoom) || v % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
7445
- const J = N.point([v, z], {
7446
- val: ((Y = P[z].val) == null ? void 0 : Y[A]) || ((te = P[z].dir) == null ? void 0 : te[A]),
7447
- spd: (oe = P[z].spd) == null ? void 0 : oe[A]
7444
+ } else if ((k >= r && k <= 180 || k >= -180 && k <= s) && (!(a <= this.zoom) || k % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
7445
+ const J = N.point([k, _], {
7446
+ val: ((Y = C[_].val) == null ? void 0 : Y[A]) || ((te = C[_].dir) == null ? void 0 : te[A]),
7447
+ spd: (oe = C[_].spd) == null ? void 0 : oe[A]
7448
7448
  });
7449
7449
  S.push(J);
7450
7450
  }
7451
- }) : C.forEach((v, A) => {
7451
+ }) : P.forEach((k, A) => {
7452
7452
  var Z, q, X, Y, te, oe;
7453
7453
  if (r < 2) {
7454
- if ((v >= 0 && v <= 360 || v >= -360 && v <= 0) && v % 10 === 0) {
7455
- const J = N.point([v, z], {
7456
- val: ((Z = P[z].val) == null ? void 0 : Z[A]) || ((q = P[z].dir) == null ? void 0 : q[A]),
7457
- spd: (X = P[z].spd) == null ? void 0 : X[A]
7454
+ if ((k >= 0 && k <= 360 || k >= -360 && k <= 0) && k % 10 === 0) {
7455
+ const J = N.point([k, _], {
7456
+ val: ((Z = C[_].val) == null ? void 0 : Z[A]) || ((q = C[_].dir) == null ? void 0 : q[A]),
7457
+ spd: (X = C[_].spd) == null ? void 0 : X[A]
7458
7458
  });
7459
7459
  S.push(J);
7460
7460
  }
7461
- } else if (v >= r && v <= s && (!(a <= this.zoom) || v % (a < this.zoom / 2 ? 5 : 3) === 0)) {
7462
- const J = N.point([v, z], {
7463
- val: ((Y = P[z].val) == null ? void 0 : Y[A]) || ((te = P[z].dir) == null ? void 0 : te[A]),
7464
- spd: (oe = P[z].spd) == null ? void 0 : oe[A]
7461
+ } else if (k >= r && k <= s && (!(a <= this.zoom) || k % (a < this.zoom / 2 ? 5 : 3) === 0)) {
7462
+ const J = N.point([k, _], {
7463
+ val: ((Y = C[_].val) == null ? void 0 : Y[A]) || ((te = C[_].dir) == null ? void 0 : te[A]),
7464
+ spd: (oe = C[_].spd) == null ? void 0 : oe[A]
7465
7465
  });
7466
7466
  S.push(J);
7467
7467
  }
7468
7468
  });
7469
7469
  }
7470
7470
  o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("current direction elapsed: ", o, ", total: ", e += o);
7471
- const k = this.weatherLayers[x].speed;
7472
- if (k) {
7473
- if (!k.data) {
7474
- const C = [];
7475
- for (const v in (_ = k.raw) == null ? void 0 : _.Polygon) {
7476
- const A = k.raw.Polygon[v];
7471
+ const x = this.weatherLayers[v].speed;
7472
+ if (x) {
7473
+ if (!x.data) {
7474
+ const P = [];
7475
+ for (const k in (z = x.raw) == null ? void 0 : z.Polygon) {
7476
+ const A = x.raw.Polygon[k];
7477
7477
  for (const Z of A)
7478
- C.push(
7478
+ P.push(
7479
7479
  N.polygon(Z, {
7480
- val: Number(v)
7480
+ val: Number(k)
7481
7481
  })
7482
7482
  );
7483
7483
  }
7484
- k.data = N.featureCollection(C);
7484
+ x.data = N.featureCollection(P);
7485
7485
  }
7486
- const z = a < this.zoom ? k.data.features.filter((C) => C.properties.val > 0.5) : k.data.features;
7487
- S = S.concat(z), o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("current speed elapsed: ", o, ", total: ", e += o);
7486
+ const _ = a < this.zoom ? x.data.features.filter((P) => P.properties.val > 0.5) : x.data.features;
7487
+ S = S.concat(_), o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("current speed elapsed: ", o, ", total: ", e += o);
7488
7488
  }
7489
- } else if (x === "wind") {
7490
- D = !0;
7491
- const P = this.weatherLayers.wind.raw;
7492
- for (const k in P)
7493
- if (k > c && k < n && (!(a <= this.zoom) || k % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
7494
- const z = P[k].lng;
7495
- r > s ? z.forEach((C, v) => {
7489
+ } else if (v === "wind") {
7490
+ R = !0;
7491
+ const C = this.weatherLayers.wind.raw;
7492
+ for (const x in C)
7493
+ if (x > c && x < n && (!(a <= this.zoom) || x % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
7494
+ const _ = C[x].lng;
7495
+ r > s ? _.forEach((P, k) => {
7496
7496
  var A, Z, q, X;
7497
7497
  if (a < 2) {
7498
- if ((C >= 0 && C <= 360 || C >= -360 && C <= 0) && C % 10 === 0) {
7499
- const Y = N.point([C, k], {
7500
- dir: ((A = P[k].val) == null ? void 0 : A[v]) || ((Z = P[k].dir) == null ? void 0 : Z[v]),
7501
- spd: P[k].spd[v]
7498
+ if ((P >= 0 && P <= 360 || P >= -360 && P <= 0) && P % 10 === 0) {
7499
+ const Y = N.point([P, x], {
7500
+ dir: ((A = C[x].val) == null ? void 0 : A[k]) || ((Z = C[x].dir) == null ? void 0 : Z[k]),
7501
+ spd: C[x].spd[k]
7502
7502
  });
7503
7503
  S.push(Y);
7504
7504
  }
7505
- } else if ((C >= r && C <= 180 || C >= -180 && C <= s) && (!(a <= this.zoom) || C % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
7506
- const Y = N.point([C, k], {
7507
- dir: ((q = P[k].val) == null ? void 0 : q[v]) || ((X = P[k].dir) == null ? void 0 : X[v]),
7508
- spd: P[k].spd[v]
7505
+ } else if ((P >= r && P <= 180 || P >= -180 && P <= s) && (!(a <= this.zoom) || P % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
7506
+ const Y = N.point([P, x], {
7507
+ dir: ((q = C[x].val) == null ? void 0 : q[k]) || ((X = C[x].dir) == null ? void 0 : X[k]),
7508
+ spd: C[x].spd[k]
7509
7509
  });
7510
7510
  S.push(Y);
7511
7511
  }
7512
- }) : z.forEach((C, v) => {
7512
+ }) : _.forEach((P, k) => {
7513
7513
  var A, Z, q, X;
7514
7514
  if (a < 2) {
7515
- if ((C >= 0 && C <= 360 || C >= -360 && C <= 0) && C % 10 === 0) {
7516
- const Y = N.point([C, k], {
7517
- dir: ((A = P[k].val) == null ? void 0 : A[v]) || ((Z = P[k].dir) == null ? void 0 : Z[v]),
7518
- spd: P[k].spd[v]
7515
+ if ((P >= 0 && P <= 360 || P >= -360 && P <= 0) && P % 10 === 0) {
7516
+ const Y = N.point([P, x], {
7517
+ dir: ((A = C[x].val) == null ? void 0 : A[k]) || ((Z = C[x].dir) == null ? void 0 : Z[k]),
7518
+ spd: C[x].spd[k]
7519
7519
  });
7520
7520
  S.push(Y);
7521
7521
  }
7522
- } else if (C >= r && C <= s && (!(a <= this.zoom) || C % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
7523
- const Y = N.point([C, k], {
7524
- dir: ((q = P[k].val) == null ? void 0 : q[v]) || ((X = P[k].dir) == null ? void 0 : X[v]),
7525
- spd: P[k].spd[v]
7522
+ } else if (P >= r && P <= s && (!(a <= this.zoom) || P % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
7523
+ const Y = N.point([P, x], {
7524
+ dir: ((q = C[x].val) == null ? void 0 : q[k]) || ((X = C[x].dir) == null ? void 0 : X[k]),
7525
+ spd: C[x].spd[k]
7526
7526
  });
7527
7527
  S.push(Y);
7528
7528
  }
7529
7529
  });
7530
7530
  }
7531
7531
  o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("wind barb elapsed: ", o, ", total: ", e += o);
7532
- } else if (x === "sig-wave-height") {
7533
- if (this.weatherLayers[x].data)
7534
- S = this.weatherLayers[x].data;
7532
+ } else if (v === "sig-wave-height") {
7533
+ if (this.weatherLayers[v].data)
7534
+ S = this.weatherLayers[v].data;
7535
7535
  else {
7536
- D = !0;
7537
- const P = this.weatherLayers[x].raw;
7538
- if (P) {
7539
- const k = [];
7540
- for (const z in P.Polygon) {
7541
- const C = P.Polygon[z];
7542
- for (const v of C)
7543
- k.push(
7544
- N.polygon(v, {
7545
- val: Number(z)
7536
+ R = !0;
7537
+ const C = this.weatherLayers[v].raw;
7538
+ if (C) {
7539
+ const x = [];
7540
+ for (const _ in C.Polygon) {
7541
+ const P = C.Polygon[_];
7542
+ for (const k of P)
7543
+ x.push(
7544
+ N.polygon(k, {
7545
+ val: Number(_)
7546
7546
  })
7547
7547
  );
7548
7548
  }
7549
- for (const z in P.MultiPolygon) {
7550
- const C = P.MultiPolygon[z];
7551
- for (const v of C)
7552
- k.push(
7553
- N.multiPolygon(v, {
7554
- val: Number(z)
7549
+ for (const _ in C.MultiPolygon) {
7550
+ const P = C.MultiPolygon[_];
7551
+ for (const k of P)
7552
+ x.push(
7553
+ N.multiPolygon(k, {
7554
+ val: Number(_)
7555
7555
  })
7556
7556
  );
7557
7557
  }
7558
- for (const z in P.Point) {
7559
- const C = P.Point[z];
7560
- for (let v = 0; v < ((T = C.lng) == null ? void 0 : T.length); v++)
7561
- k.push(
7562
- N.point([C.lng[v], z], {
7563
- val: Number(C.val[v])
7558
+ for (const _ in C.Point) {
7559
+ const P = C.Point[_];
7560
+ for (let k = 0; k < ((T = P.lng) == null ? void 0 : T.length); k++)
7561
+ x.push(
7562
+ N.point([P.lng[k], _], {
7563
+ val: Number(P.val[k])
7564
7564
  })
7565
7565
  );
7566
7566
  }
7567
- S = S.concat(k);
7567
+ S = S.concat(x);
7568
7568
  }
7569
7569
  }
7570
7570
  o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("sig-wave-height elapsed: ", o, ", total: ", e += o);
7571
- } else if (x === "prmsl") {
7572
- if (this.weatherLayers[x].data)
7573
- S = this.weatherLayers[x].data;
7571
+ } else if (v === "prmsl") {
7572
+ if (this.weatherLayers[v].data)
7573
+ S = this.weatherLayers[v].data;
7574
7574
  else {
7575
- D = !0;
7576
- const P = this.weatherLayers[x].raw;
7577
- if (P) {
7578
- const k = [];
7579
- for (const z in P.LineString) {
7580
- const C = P.LineString[z];
7581
- for (const v of C)
7582
- k.push(
7583
- N.lineString(v, {
7584
- val: Number(z)
7575
+ R = !0;
7576
+ const C = this.weatherLayers[v].raw;
7577
+ if (C) {
7578
+ const x = [];
7579
+ for (const _ in C.LineString) {
7580
+ const P = C.LineString[_];
7581
+ for (const k of P)
7582
+ x.push(
7583
+ N.lineString(k, {
7584
+ val: Number(_)
7585
7585
  })
7586
7586
  );
7587
7587
  }
7588
- for (const z in P.Point)
7589
- P.Point[z].lng.forEach((C, v) => {
7590
- C = K.convertToStdLng(C), k.push(
7591
- N.point([C, z], {
7592
- val: P.Point[z].val[v],
7593
- type: P.Point[z].type[v]
7588
+ for (const _ in C.Point)
7589
+ C.Point[_].lng.forEach((P, k) => {
7590
+ P = K.convertToStdLng(P), x.push(
7591
+ N.point([P, _], {
7592
+ val: C.Point[_].val[k],
7593
+ type: C.Point[_].type[k]
7594
7594
  })
7595
7595
  );
7596
7596
  });
7597
- S = S.concat(k);
7597
+ S = S.concat(x);
7598
7598
  }
7599
7599
  }
7600
7600
  o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("prmsl elapsed: ", o, ", total: ", e += o);
7601
7601
  }
7602
- S.length && (this.weatherLayers[x].data = N.featureCollection(S)), D && (this.weatherLayers[x].version = Math.random() + 1);
7602
+ S.length && (this.weatherLayers[v].data = N.featureCollection(S)), R && (this.weatherLayers[v].version = Math.random() + 1);
7603
7603
  }
7604
7604
  }
7605
7605
  },
@@ -7642,7 +7642,7 @@ const is = {
7642
7642
  }, xs = { class: "text-body-1 py-2" }, vs = { class: "text-body-1 font-weight-medium" }, _s = { class: "text-body-2 opacity-70" }, ks = { class: "text-body-2 opacity-70 mb-3" }, zs = { class: "text-body-1 font-weight-medium" }, Ls = { class: "text-body-2 opacity-70" }, Ps = { class: "text-body-2 opacity-70 mb-3" }, Cs = { class: "text-body-1 py-2" }, Ts = { class: "text-body-1 font-weight-medium" }, Ss = { class: "text-body-2 opacity-70" }, Ms = { class: "text-body-2 opacity-70 mb-3" }, Is = { class: "text-body-1 font-weight-medium" }, As = { class: "text-body-2 opacity-70" }, Ds = { class: "text-body-2 opacity-70 mb-3" }, Rs = { class: "text-body-1 py-2" }, Os = { class: "text-body-1 font-weight-medium" }, Bs = { class: "text-body-2 opacity-70" }, Es = { class: "text-body-2 opacity-70 mb-3" };
7643
7643
  function js(t, e, o, i, a, r) {
7644
7644
  var ue, ce, Q, ie, ge, me, F, de, ke, Se, Me, Ie, Ae, De, ve;
7645
- const s = w("VBtn"), c = w("VTooltip"), n = w("VCol"), u = w("VRow"), h = w("VCardText"), g = w("VDivider"), f = w("VCard"), L = w("VSwitch"), _ = w("VCardTitle"), T = w("VCardItem"), x = w("VCheckbox"), D = w("VRadio"), S = w("VBtnToggle"), P = w("IdmWindBarb"), k = w("IdmSigWaveHeight"), z = w("IdmCurrentDirection"), C = w("IdmPrmsl"), v = w("IdmWindParticle"), A = w("IdmCurrentParticle"), Z = w("IdmWave"), q = w("IdmSwell"), X = w("IdmIceEdge"), Y = w("IdmIceCover"), te = w("IdmIceThickness"), oe = w("IdmPrecip3h"), J = w("IdmVisibility"), le = w("IdmWaterTemp"), pe = w("IdmTemp");
7645
+ const s = w("VBtn"), c = w("VTooltip"), n = w("VCol"), u = w("VRow"), h = w("VCardText"), g = w("VDivider"), f = w("VCard"), L = w("VSwitch"), z = w("VCardTitle"), T = w("VCardItem"), v = w("VCheckbox"), R = w("VRadio"), S = w("VBtnToggle"), C = w("IdmWindBarb"), x = w("IdmSigWaveHeight"), _ = w("IdmCurrentDirection"), P = w("IdmPrmsl"), k = w("IdmWindParticle"), A = w("IdmCurrentParticle"), Z = w("IdmWave"), q = w("IdmSwell"), X = w("IdmIceEdge"), Y = w("IdmIceCover"), te = w("IdmIceThickness"), oe = w("IdmPrecip3h"), J = w("IdmVisibility"), le = w("IdmWaterTemp"), pe = w("IdmTemp");
7646
7646
  return b(), M("div", rs, [
7647
7647
  l("div", {
7648
7648
  class: "menu-bar-box transition pa-1",
@@ -7697,7 +7697,7 @@ function js(t, e, o, i, a, r) {
7697
7697
  _: 1
7698
7698
  })
7699
7699
  ], 4),
7700
- a.legendToggle ? (b(), O(f, {
7700
+ a.legendToggle ? (b(), D(f, {
7701
7701
  key: 0,
7702
7702
  width: "435",
7703
7703
  elevation: "16",
@@ -7710,7 +7710,7 @@ function js(t, e, o, i, a, r) {
7710
7710
  e[9] || (e[9] = l("div", { class: "text-body-1 font-weight-600 mb-2" }, "Wind Level", -1)),
7711
7711
  d(u, { class: "ma-0 ml-n1 text-body-2" }, {
7712
7712
  default: p(() => [
7713
- (b(!0), M(be, null, we(a.legend.barbs, (H, ee) => (b(), O(n, {
7713
+ (b(!0), M(be, null, we(a.legend.barbs, (H, ee) => (b(), D(n, {
7714
7714
  key: H,
7715
7715
  cols: "6",
7716
7716
  class: "d-flex flex-row justify-start align-center py-1 px-0 ma-0"
@@ -7742,7 +7742,7 @@ function js(t, e, o, i, a, r) {
7742
7742
  style: { width: "100px" }
7743
7743
  }, {
7744
7744
  default: p(() => [
7745
- (b(!0), M(be, null, we(a.legend.sigWaveHeight, (H, ee) => (b(), O(n, {
7745
+ (b(!0), M(be, null, we(a.legend.sigWaveHeight, (H, ee) => (b(), D(n, {
7746
7746
  key: ee,
7747
7747
  cols: "12",
7748
7748
  class: "d-flex flex-row justify-start align-center py-1 px-0 ma-0"
@@ -7774,7 +7774,7 @@ function js(t, e, o, i, a, r) {
7774
7774
  style: { width: "110px" }
7775
7775
  }, {
7776
7776
  default: p(() => [
7777
- (b(!0), M(be, null, we(a.legend.current, (H, ee) => (b(), O(n, {
7777
+ (b(!0), M(be, null, we(a.legend.current, (H, ee) => (b(), D(n, {
7778
7778
  key: ee,
7779
7779
  cols: "12",
7780
7780
  class: "d-flex flex-row justify-center align-center py-1 px-0 ma-0"
@@ -7843,7 +7843,7 @@ function js(t, e, o, i, a, r) {
7843
7843
  default: p(() => [
7844
7844
  d(T, { class: "border-b-thin" }, {
7845
7845
  default: p(() => [
7846
- d(_, {
7846
+ d(z, {
7847
7847
  class: "text-subtitle-1 font-weight-medium",
7848
7848
  style: { "font-size": "16px !important" }
7849
7849
  }, {
@@ -7857,7 +7857,7 @@ function js(t, e, o, i, a, r) {
7857
7857
  }),
7858
7858
  d(h, { class: "py-2" }, {
7859
7859
  default: p(() => [
7860
- (b(!0), M(be, null, we(a.tagLayers.filter((H) => H.overlays), (H) => (b(), O(x, {
7860
+ (b(!0), M(be, null, we(a.tagLayers.filter((H) => H.overlays), (H) => (b(), D(v, {
7861
7861
  key: H.key,
7862
7862
  modelValue: a.checkList,
7863
7863
  "onUpdate:modelValue": e[2] || (e[2] = (ee) => a.checkList = ee),
@@ -7883,7 +7883,7 @@ function js(t, e, o, i, a, r) {
7883
7883
  default: p(() => [
7884
7884
  d(T, { class: "border-b-thin" }, {
7885
7885
  default: p(() => [
7886
- d(_, {
7886
+ d(z, {
7887
7887
  class: "text-subtitle-1 font-weight-medium",
7888
7888
  style: { "font-size": "16px !important" }
7889
7889
  }, {
@@ -7900,7 +7900,7 @@ function js(t, e, o, i, a, r) {
7900
7900
  (b(!0), M(be, null, we(a.tagLayers.filter((H) => !H.overlays && H.key !== "ice-thickness"), (H) => (b(), M(be, {
7901
7901
  key: H.key
7902
7902
  }, [
7903
- d(D, {
7903
+ d(R, {
7904
7904
  modelValue: a.renderKey,
7905
7905
  "onUpdate:modelValue": e[3] || (e[3] = (ee) => a.renderKey = ee),
7906
7906
  label: t.$t(`weather.${H.locale}`),
@@ -7941,7 +7941,7 @@ function js(t, e, o, i, a, r) {
7941
7941
  "hide-details": ""
7942
7942
  }, null, 8, ["modelValue"])
7943
7943
  ])) : B("", !0),
7944
- a.renderKey === "ice-forecast" && H.key === "ice-forecast" ? (b(), O(S, {
7944
+ a.renderKey === "ice-forecast" && H.key === "ice-forecast" ? (b(), D(S, {
7945
7945
  key: 2,
7946
7946
  modelValue: a.iceToggleValue,
7947
7947
  "onUpdate:modelValue": e[6] || (e[6] = (ee) => a.iceToggleValue = ee),
@@ -7998,7 +7998,7 @@ function js(t, e, o, i, a, r) {
7998
7998
  default: p(() => [
7999
7999
  d(T, { class: "border-b-thin" }, {
8000
8000
  default: p(() => [
8001
- d(_, {
8001
+ d(z, {
8002
8002
  class: "text-subtitle-1 font-weight-medium",
8003
8003
  style: { "font-size": "16px !important" }
8004
8004
  }, {
@@ -8012,13 +8012,13 @@ function js(t, e, o, i, a, r) {
8012
8012
  }),
8013
8013
  d(h, { class: "" }, {
8014
8014
  default: p(() => {
8015
- var H, ee, je, Ce, he, fe, W, ze, $, re, Re, E, ye, Te, Oe, Be, R, G, Ge, Ve, Ze, Pe, Ye, qe, Xe, Ke, Qe, Je, $e, 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, Mt, It, At, Dt, Rt, Ot, Bt, Et, jt, Nt, Ft, Ht, Wt, Ut, Gt, Vt, Zt, Yt, qt, Xt, Kt, Qt, Jt;
8015
+ var H, ee, je, Ce, he, fe, W, ze, $, re, Re, E, ye, Te, Oe, Be, O, G, Ge, Ve, Ze, Pe, Ye, qe, Xe, Ke, Qe, Je, $e, 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, Mt, It, At, Dt, Rt, Ot, Bt, Et, jt, Nt, Ft, Ht, Wt, Ut, Gt, Vt, Zt, Yt, qt, Xt, Kt, Qt, Jt;
8016
8016
  return [
8017
8017
  l("div", xs, y(t.$t("weather.atmospheric")), 1),
8018
8018
  l("div", vs, y((je = (ee = (H = a.models) == null ? void 0 : H.weather) == null ? void 0 : ee.NOAA) == null ? void 0 : je.source) + " " + y((fe = (he = (Ce = a.models) == null ? void 0 : Ce.weather) == null ? void 0 : he.NOAA) == null ? void 0 : fe.spatialResolution) + y(t.$t("units.km")) + " " + y((re = ($ = (ze = (W = a.models) == null ? void 0 : W.weather) == null ? void 0 : ze.NOAA) == null ? void 0 : $.meta) == null ? void 0 : re.days) + y(t.$t("units.days")), 1),
8019
8019
  l("div", _s, y(t.$t("weather.source")) + ": NOAA", 1),
8020
8020
  l("div", ks, y(t.$t("weather.lastUpdate")) + ": " + y(r.computeDateZ((Te = (ye = (E = (Re = a.models) == null ? void 0 : Re.weather) == null ? void 0 : E.NOAA) == null ? void 0 : ye.meta) == null ? void 0 : Te.initialisationTime)), 1),
8021
- l("div", zs, y((R = (Be = (Oe = a.models) == null ? void 0 : Oe.weather) == null ? void 0 : Be.ECMWF) == null ? void 0 : R.source) + " " + y((Ve = (Ge = (G = a.models) == null ? void 0 : G.weather) == null ? void 0 : Ge.ECMWF) == null ? void 0 : Ve.spatialResolution) + y(t.$t("units.km")) + " " + y((qe = (Ye = (Pe = (Ze = a.models) == null ? void 0 : Ze.weather) == null ? void 0 : Pe.ECMWF) == null ? void 0 : Ye.meta) == null ? void 0 : qe.days) + y(t.$t("units.days")), 1),
8021
+ l("div", zs, y((O = (Be = (Oe = a.models) == null ? void 0 : Oe.weather) == null ? void 0 : Be.ECMWF) == null ? void 0 : O.source) + " " + y((Ve = (Ge = (G = a.models) == null ? void 0 : G.weather) == null ? void 0 : Ge.ECMWF) == null ? void 0 : Ve.spatialResolution) + y(t.$t("units.km")) + " " + y((qe = (Ye = (Pe = (Ze = a.models) == null ? void 0 : Ze.weather) == null ? void 0 : Pe.ECMWF) == null ? void 0 : Ye.meta) == null ? void 0 : qe.days) + y(t.$t("units.days")), 1),
8022
8022
  l("div", Ls, y(t.$t("weather.source")) + ": ECMWF", 1),
8023
8023
  l("div", Ps, y(t.$t("weather.lastUpdate")) + ": " + y(r.computeDateZ((Je = (Qe = (Ke = (Xe = a.models) == null ? void 0 : Xe.weather) == null ? void 0 : Ke.ECMWF) == null ? void 0 : Qe.meta) == null ? void 0 : Je.initialisationTime)), 1),
8024
8024
  d(g),
@@ -8043,7 +8043,7 @@ function js(t, e, o, i, a, r) {
8043
8043
  })
8044
8044
  ], 2)
8045
8045
  ], 6),
8046
- o.map ? (b(), O(P, j({
8046
+ o.map ? (b(), D(C, j({
8047
8047
  key: 1,
8048
8048
  ref: "windBarb",
8049
8049
  map: o.map,
@@ -8052,7 +8052,7 @@ function js(t, e, o, i, a, r) {
8052
8052
  wind: (ue = a.weatherLayers) == null ? void 0 : ue.wind,
8053
8053
  "menu-toggle": o.menuToggle
8054
8054
  }, t.$attrs), null, 16, ["map", "map-feather", "wind", "menu-toggle"])) : B("", !0),
8055
- o.map ? (b(), O(k, j({
8055
+ o.map ? (b(), D(x, j({
8056
8056
  key: 2,
8057
8057
  map: o.map,
8058
8058
  "before-layer": "empty-layer-2",
@@ -8060,7 +8060,7 @@ function js(t, e, o, i, a, r) {
8060
8060
  "menu-toggle": o.menuToggle,
8061
8061
  "active-weather-layers": a.activeWeatherLayers
8062
8062
  }, t.$attrs), null, 16, ["map", "sig-wave-height", "menu-toggle", "active-weather-layers"])) : B("", !0),
8063
- o.map ? (b(), O(z, j({
8063
+ o.map ? (b(), D(_, j({
8064
8064
  key: 3,
8065
8065
  map: o.map,
8066
8066
  "map-feather": o.mapFeather,
@@ -8068,7 +8068,7 @@ function js(t, e, o, i, a, r) {
8068
8068
  current: (Q = a.weatherLayers) == null ? void 0 : Q.current,
8069
8069
  "menu-toggle": o.menuToggle
8070
8070
  }, t.$attrs), null, 16, ["map", "map-feather", "current", "menu-toggle"])) : B("", !0),
8071
- o.map ? (b(), O(C, j({
8071
+ o.map ? (b(), D(P, j({
8072
8072
  key: 4,
8073
8073
  map: o.map,
8074
8074
  "before-layer": "empty-layer-2",
@@ -8076,68 +8076,68 @@ function js(t, e, o, i, a, r) {
8076
8076
  "menu-toggle": o.menuToggle,
8077
8077
  "active-weather-layers": a.activeWeatherLayers
8078
8078
  }, t.$attrs, { theme: o.theme }), null, 16, ["map", "prmsl", "menu-toggle", "active-weather-layers", "theme"])) : B("", !0),
8079
- o.map ? (b(), O(v, j({
8079
+ o.map ? (b(), D(k, j({
8080
8080
  key: 5,
8081
8081
  viewport: a.viewport,
8082
8082
  factor: (ge = a.weatherLayers) == null ? void 0 : ge["wind-particle"],
8083
8083
  "menu-toggle": o.menuToggle
8084
8084
  }, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : B("", !0),
8085
- o.map ? (b(), O(A, j({
8085
+ o.map ? (b(), D(A, j({
8086
8086
  key: 6,
8087
8087
  viewport: a.viewport,
8088
8088
  factor: (me = a.weatherLayers) == null ? void 0 : me["current-particle"],
8089
8089
  "menu-toggle": o.menuToggle
8090
8090
  }, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : B("", !0),
8091
- o.map ? (b(), O(Z, j({
8091
+ o.map ? (b(), D(Z, j({
8092
8092
  key: 7,
8093
8093
  viewport: a.viewport,
8094
8094
  factor: (F = a.weatherLayers) == null ? void 0 : F["sig-wave"],
8095
8095
  "menu-toggle": o.menuToggle
8096
8096
  }, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : B("", !0),
8097
- o.map ? (b(), O(q, j({
8097
+ o.map ? (b(), D(q, j({
8098
8098
  key: 8,
8099
8099
  map: o.map,
8100
8100
  swell: (de = a.weatherLayers) == null ? void 0 : de.swell,
8101
8101
  "menu-toggle": o.menuToggle,
8102
8102
  "active-weather-layers": a.activeWeatherLayers
8103
8103
  }, t.$attrs), null, 16, ["map", "swell", "menu-toggle", "active-weather-layers"])) : B("", !0),
8104
- o.map ? (b(), O(X, j({
8104
+ o.map ? (b(), D(X, j({
8105
8105
  key: 9,
8106
8106
  viewport: a.viewport,
8107
8107
  factor: (ke = a.weatherLayers) == null ? void 0 : ke["ice-edge"],
8108
8108
  "menu-toggle": o.menuToggle
8109
8109
  }, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : B("", !0),
8110
- o.map ? (b(), O(Y, j({
8110
+ o.map ? (b(), D(Y, j({
8111
8111
  key: 10,
8112
8112
  viewport: a.viewport,
8113
8113
  factor: (Se = a.weatherLayers) == null ? void 0 : Se["ice-cover"],
8114
8114
  "menu-toggle": o.menuToggle
8115
8115
  }, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : B("", !0),
8116
- o.map ? (b(), O(te, j({
8116
+ o.map ? (b(), D(te, j({
8117
8117
  key: 11,
8118
8118
  viewport: a.viewport,
8119
8119
  factor: (Me = a.weatherLayers) == null ? void 0 : Me["ice-thickness"],
8120
8120
  "menu-toggle": o.menuToggle
8121
8121
  }, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : B("", !0),
8122
- o.map ? (b(), O(oe, j({
8122
+ o.map ? (b(), D(oe, j({
8123
8123
  key: 12,
8124
8124
  viewport: a.viewport,
8125
8125
  factor: (Ie = a.weatherLayers) == null ? void 0 : Ie.precip3h,
8126
8126
  "menu-toggle": o.menuToggle
8127
8127
  }, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : B("", !0),
8128
- o.map ? (b(), O(J, j({
8128
+ o.map ? (b(), D(J, j({
8129
8129
  key: 13,
8130
8130
  viewport: a.viewport,
8131
8131
  factor: (Ae = a.weatherLayers) == null ? void 0 : Ae.visibility,
8132
8132
  "menu-toggle": o.menuToggle
8133
8133
  }, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : B("", !0),
8134
- o.map ? (b(), O(le, j({
8134
+ o.map ? (b(), D(le, j({
8135
8135
  key: 14,
8136
8136
  viewport: a.viewport,
8137
8137
  factor: (De = a.weatherLayers) == null ? void 0 : De["water-temp"],
8138
8138
  "menu-toggle": o.menuToggle
8139
8139
  }, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : B("", !0),
8140
- o.map ? (b(), O(pe, j({
8140
+ o.map ? (b(), D(pe, j({
8141
8141
  key: 15,
8142
8142
  viewport: a.viewport,
8143
8143
  factor: (ve = a.weatherLayers) == null ? void 0 : ve.temp,
@@ -8492,36 +8492,36 @@ class Va {
8492
8492
  }), a;
8493
8493
  }
8494
8494
  static pickHourly(e, o) {
8495
- var i, a, r, s, c, n, u, h, g, f, L, _, T, x, D, S, P, k, z, C, v, A, Z, q, X, Y, te, oe, J, le, pe, ue, ce, Q, ie, ge, me, F, de, ke, Se, Me, Ie, Ae, De, ve, H, ee, je, Ce;
8495
+ var i, a, r, s, c, n, u, h, g, f, L, z, T, v, R, S, C, x, _, P, k, A, Z, q, X, Y, te, oe, J, le, pe, ue, ce, Q, ie, ge, me, F, de, ke, Se, Me, Ie, Ae, De, ve, H, ee, je, Ce;
8496
8496
  const he = typeof o == "string" ? I(o) : o, fe = e == null ? void 0 : e.weather, W = e == null ? void 0 : e.marine, ze = I((a = (i = fe == null ? void 0 : fe[0]) == null ? void 0 : i.hourly) == null ? void 0 : a.date).utc(), $ = ze.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"), re = ze.clone().add((h = (u = (n = fe == null ? void 0 : fe[0]) == null ? void 0 : n.hourly) == null ? void 0 : u.time) == null ? void 0 : h.at(-1), "h"), Re = [];
8497
8497
  if (he.isBetween($, re, "millisecond", "[]")) {
8498
8498
  const E = he.utc().diff($, "h", !1);
8499
8499
  let ye, Te;
8500
8500
  if (fe) {
8501
8501
  let Oe = 0, Be = 0;
8502
- for (const R of fe) {
8503
- const G = R == null ? void 0 : R.hourly;
8502
+ for (const O of fe) {
8503
+ const G = O == null ? void 0 : O.hourly;
8504
8504
  for (let Pe = E - (E - 1) % 3; Pe <= E; Pe++)
8505
8505
  Oe += (g = G == null ? void 0 : G.precipitation) == null ? void 0 : g.at(Pe);
8506
8506
  for (let Pe = E - (E - 1) % 6; Pe <= E; Pe++)
8507
8507
  Be += (f = G == null ? void 0 : G.precipitation) == null ? void 0 : f.at(Pe);
8508
8508
  ye = {
8509
8509
  temp: (L = G == null ? void 0 : G.temperature_2m) == null ? void 0 : L.at(E),
8510
- apparentTemp: (_ = G == null ? void 0 : G.apparent_temperature) == null ? void 0 : _.at(E),
8510
+ apparentTemp: (z = G == null ? void 0 : G.apparent_temperature) == null ? void 0 : z.at(E),
8511
8511
  rh: (T = G == null ? void 0 : G.relative_humidity_2m) == null ? void 0 : T.at(E),
8512
- dp: (x = G == null ? void 0 : G.dew_point_2m) == null ? void 0 : x.at(E),
8512
+ dp: (v = G == null ? void 0 : G.dew_point_2m) == null ? void 0 : v.at(E),
8513
8513
  precip: {
8514
- probability: (D = G == null ? void 0 : G.precipitation_probability) == null ? void 0 : D.at(E),
8514
+ probability: (R = G == null ? void 0 : G.precipitation_probability) == null ? void 0 : R.at(E),
8515
8515
  sum: (S = G == null ? void 0 : G.precipitation) == null ? void 0 : S.at(E),
8516
8516
  sum3Hours: Math.round(Oe * 100) / 100,
8517
8517
  sum6Hours: Math.round(Be * 100) / 100
8518
8518
  },
8519
- pmsl: (P = G == null ? void 0 : G.pressure_msl) == null ? void 0 : P.at(E),
8520
- psurf: (k = G == null ? void 0 : G.surface_pressure) == null ? void 0 : k.at(E),
8521
- code: (z = G == null ? void 0 : G.weather_code) == null ? void 0 : z.at(E),
8522
- visibility: this.m2nm((C = G == null ? void 0 : G.visibility) == null ? void 0 : C.at(E)),
8519
+ pmsl: (C = G == null ? void 0 : G.pressure_msl) == null ? void 0 : C.at(E),
8520
+ psurf: (x = G == null ? void 0 : G.surface_pressure) == null ? void 0 : x.at(E),
8521
+ code: (_ = G == null ? void 0 : G.weather_code) == null ? void 0 : _.at(E),
8522
+ visibility: this.m2nm((P = G == null ? void 0 : G.visibility) == null ? void 0 : P.at(E)),
8523
8523
  wind: {
8524
- speed: (v = G == null ? void 0 : G.wind_speed_10m) == null ? void 0 : v.at(E),
8524
+ speed: (k = G == null ? void 0 : G.wind_speed_10m) == null ? void 0 : k.at(E),
8525
8525
  kts: (A = G == null ? void 0 : G.wind_speed_10m) == null ? void 0 : A.at(E),
8526
8526
  degree: (Z = G == null ? void 0 : G.wind_direction_10m) == null ? void 0 : Z.at(E),
8527
8527
  bearing: ((q = G == null ? void 0 : G.wind_direction_10m) == null ? void 0 : q.at(E)) !== null ? (((X = G == null ? void 0 : G.wind_direction_10m) == null ? void 0 : X.at(E)) + 180) % 360 : null,
@@ -8532,7 +8532,7 @@ class Va {
8532
8532
  const { name: Ge, url: Ve, bg: Ze } = this.parseWeatherCode(ye.code, ye.isDay);
8533
8533
  ye.name = Ge, ye.url = Ve, ye.bg = Ze, ye.wind.scale = this.beaufort(this.kts2ms(ye.wind.kts)), ye.wind.direction = this.degree2Direction(ye.wind.degree), Re.push({
8534
8534
  utc: $.add(E, "h").format(),
8535
- model: R.model,
8535
+ model: O.model,
8536
8536
  weather: { ...ye }
8537
8537
  });
8538
8538
  }
@@ -8540,38 +8540,38 @@ class Va {
8540
8540
  if (W) {
8541
8541
  let Oe = 0;
8542
8542
  for (const Be of W) {
8543
- const R = Be == null ? void 0 : Be.hourly;
8543
+ const O = Be == null ? void 0 : Be.hourly;
8544
8544
  Te = {
8545
8545
  wave: {
8546
8546
  sig: {
8547
- height: (oe = R == null ? void 0 : R.wave_height) == null ? void 0 : oe.at(E),
8548
- degree: (J = R == null ? void 0 : R.wave_direction) == null ? void 0 : J.at(E),
8549
- bearing: ((le = R == null ? void 0 : R.wave_direction) == null ? void 0 : le.at(E)) !== null ? (((pe = R == null ? void 0 : R.wave_direction) == null ? void 0 : pe.at(E)) + 180) % 360 : null,
8550
- period: (ue = R == null ? void 0 : R.wave_period) == null ? void 0 : ue.at(E)
8547
+ height: (oe = O == null ? void 0 : O.wave_height) == null ? void 0 : oe.at(E),
8548
+ degree: (J = O == null ? void 0 : O.wave_direction) == null ? void 0 : J.at(E),
8549
+ bearing: ((le = O == null ? void 0 : O.wave_direction) == null ? void 0 : le.at(E)) !== null ? (((pe = O == null ? void 0 : O.wave_direction) == null ? void 0 : pe.at(E)) + 180) % 360 : null,
8550
+ period: (ue = O == null ? void 0 : O.wave_period) == null ? void 0 : ue.at(E)
8551
8551
  },
8552
8552
  swell: {
8553
- height: (ce = R == null ? void 0 : R.swell_wave_height) == null ? void 0 : ce.at(E),
8554
- degree: (Q = R == null ? void 0 : R.swell_wave_direction) == null ? void 0 : Q.at(E),
8555
- bearing: ((ie = R == null ? void 0 : R.swell_wave_direction) == null ? void 0 : ie.at(E)) !== null ? (((ge = R == null ? void 0 : R.swell_wave_direction) == null ? void 0 : ge.at(E)) + 180) % 360 : null,
8556
- period: (me = R == null ? void 0 : R.swell_wave_period) == null ? void 0 : me.at(E),
8557
- peakPeriod: (F = R == null ? void 0 : R.swell_wave_peak_period) == null ? void 0 : F.at(E)
8553
+ height: (ce = O == null ? void 0 : O.swell_wave_height) == null ? void 0 : ce.at(E),
8554
+ degree: (Q = O == null ? void 0 : O.swell_wave_direction) == null ? void 0 : Q.at(E),
8555
+ bearing: ((ie = O == null ? void 0 : O.swell_wave_direction) == null ? void 0 : ie.at(E)) !== null ? (((ge = O == null ? void 0 : O.swell_wave_direction) == null ? void 0 : ge.at(E)) + 180) % 360 : null,
8556
+ period: (me = O == null ? void 0 : O.swell_wave_period) == null ? void 0 : me.at(E),
8557
+ peakPeriod: (F = O == null ? void 0 : O.swell_wave_peak_period) == null ? void 0 : F.at(E)
8558
8558
  },
8559
8559
  wd: {
8560
- height: (de = R == null ? void 0 : R.wind_wave_height) == null ? void 0 : de.at(E),
8561
- degree: (ke = R == null ? void 0 : R.wind_wave_direction) == null ? void 0 : ke.at(E),
8562
- bearing: ((Se = R == null ? void 0 : R.wind_wave_direction) == null ? void 0 : Se.at(E)) !== null ? (((Me = R == null ? void 0 : R.wind_wave_direction) == null ? void 0 : Me.at(E)) + 180) % 360 : null,
8563
- period: (Ie = R == null ? void 0 : R.wind_wave_period) == null ? void 0 : Ie.at(E),
8564
- peakPeriod: (Ae = R == null ? void 0 : R.wind_wave_peak_period) == null ? void 0 : Ae.at(E)
8560
+ height: (de = O == null ? void 0 : O.wind_wave_height) == null ? void 0 : de.at(E),
8561
+ degree: (ke = O == null ? void 0 : O.wind_wave_direction) == null ? void 0 : ke.at(E),
8562
+ bearing: ((Se = O == null ? void 0 : O.wind_wave_direction) == null ? void 0 : Se.at(E)) !== null ? (((Me = O == null ? void 0 : O.wind_wave_direction) == null ? void 0 : Me.at(E)) + 180) % 360 : null,
8563
+ period: (Ie = O == null ? void 0 : O.wind_wave_period) == null ? void 0 : Ie.at(E),
8564
+ peakPeriod: (Ae = O == null ? void 0 : O.wind_wave_peak_period) == null ? void 0 : Ae.at(E)
8565
8565
  }
8566
8566
  },
8567
8567
  current: {
8568
- speed: (De = R == null ? void 0 : R.ocean_current_velocity) == null ? void 0 : De.at(E),
8569
- kts: (ve = R == null ? void 0 : R.ocean_current_velocity) == null ? void 0 : ve.at(E),
8570
- degree: (H = R == null ? void 0 : R.ocean_current_direction) == null ? void 0 : H.at(E),
8571
- bearing: ((ee = R == null ? void 0 : R.ocean_current_direction) == null ? void 0 : ee.at(E)) ?? null
8568
+ speed: (De = O == null ? void 0 : O.ocean_current_velocity) == null ? void 0 : De.at(E),
8569
+ kts: (ve = O == null ? void 0 : O.ocean_current_velocity) == null ? void 0 : ve.at(E),
8570
+ degree: (H = O == null ? void 0 : O.ocean_current_direction) == null ? void 0 : H.at(E),
8571
+ bearing: ((ee = O == null ? void 0 : O.ocean_current_direction) == null ? void 0 : ee.at(E)) ?? null
8572
8572
  },
8573
- sst: (je = R == null ? void 0 : R.sea_surface_temperature) == null ? void 0 : je.at(E),
8574
- height: (Ce = R == null ? void 0 : R.sea_level_height_msl) == null ? void 0 : Ce.at(E)
8573
+ sst: (je = O == null ? void 0 : O.sea_surface_temperature) == null ? void 0 : je.at(E),
8574
+ height: (Ce = O == null ? void 0 : O.sea_level_height_msl) == null ? void 0 : Ce.at(E)
8575
8575
  }, Te.wave = this.parseWave(Te.wave, ye == null ? void 0 : ye.wind), Te.current.direction = this.degree2Direction(Te.current.degree), Object.assign(Re[Oe], Te), Oe++;
8576
8576
  }
8577
8577
  }
@@ -8601,7 +8601,7 @@ class Va {
8601
8601
  };
8602
8602
  }
8603
8603
  static pickDaily(e, o) {
8604
- var i, a, r, s, c, n, u, h, g, f, L, _, T, x, D, S, P, k, z, C, v, A, Z, q, X, Y, te, oe, J, le, pe, ue, ce, Q, ie, ge, me, F, de, ke, Se, Me, Ie, Ae;
8604
+ var i, a, r, s, c, n, u, h, g, f, L, z, T, v, R, S, C, x, _, P, k, A, Z, q, X, Y, te, oe, J, le, pe, ue, ce, Q, ie, ge, me, F, de, ke, Se, Me, Ie, Ae;
8605
8605
  const De = typeof o == "string" ? I(o) : o, ve = e == null ? void 0 : e.weather, H = e == null ? void 0 : e.marine, ee = I((r = (a = (i = ve == null ? void 0 : ve[0]) == null ? void 0 : i.daily) == null ? void 0 : a.time) == null ? void 0 : r.at(0)), je = I((n = (c = (s = ve == null ? void 0 : ve[0]) == null ? void 0 : s.daily) == null ? void 0 : c.time) == null ? void 0 : n.at(-1)), Ce = [];
8606
8606
  if (De.isBetween(ee, je, "millisecond", "[]")) {
8607
8607
  let he, fe;
@@ -8618,20 +8618,20 @@ class Va {
8618
8618
  },
8619
8619
  apparentTemp: {
8620
8620
  max: (L = $.apparent_temperature_max) == null ? void 0 : L.at(W),
8621
- min: (_ = $.apparent_temperature_min) == null ? void 0 : _.at(W)
8621
+ min: (z = $.apparent_temperature_min) == null ? void 0 : z.at(W)
8622
8622
  },
8623
8623
  precip: {
8624
8624
  sum: (T = $.precipitation_sum) == null ? void 0 : T.at(W),
8625
- rainSum: (x = $.rain_sum) == null ? void 0 : x.at(W),
8626
- snowfallSum: (D = $.snowfall_sum) == null ? void 0 : D.at(W),
8625
+ rainSum: (v = $.rain_sum) == null ? void 0 : v.at(W),
8626
+ snowfallSum: (R = $.snowfall_sum) == null ? void 0 : R.at(W),
8627
8627
  showersSum: (S = $.showers_sum) == null ? void 0 : S.at(W),
8628
- hours: (P = $.precipitation_hours) == null ? void 0 : P.at(W),
8629
- probability: (k = $.precipitation_probability_max) == null ? void 0 : k.at(W)
8628
+ hours: (C = $.precipitation_hours) == null ? void 0 : C.at(W),
8629
+ probability: (x = $.precipitation_probability_max) == null ? void 0 : x.at(W)
8630
8630
  },
8631
8631
  rh: {
8632
- max: (z = $.relative_humidity_2m_max) == null ? void 0 : z.at(W),
8633
- min: (C = $.relative_humidity_2m_min) == null ? void 0 : C.at(W),
8634
- mean: (v = $.relative_humidity_2m_mean) == null ? void 0 : v.at(W)
8632
+ max: (_ = $.relative_humidity_2m_max) == null ? void 0 : _.at(W),
8633
+ min: (P = $.relative_humidity_2m_min) == null ? void 0 : P.at(W),
8634
+ mean: (k = $.relative_humidity_2m_mean) == null ? void 0 : k.at(W)
8635
8635
  },
8636
8636
  wind: {
8637
8637
  speed: (A = $.wind_speed_10m_max) == null ? void 0 : A.at(W),
@@ -9241,9 +9241,9 @@ const Fs = {
9241
9241
  },
9242
9242
  responseType: /\.(jpg|png)$/.test(u.tropicals) ? "blob" : "json"
9243
9243
  }).then((h) => {
9244
- var L, _, T;
9244
+ var L, z, T;
9245
9245
  const g = Ua.convert2Geojson(((L = h == null ? void 0 : h.data) == null ? void 0 : L.data) || (h == null ? void 0 : h.data));
9246
- ((T = (_ = h == null ? void 0 : h.config) == null ? void 0 : _.headers) == null ? void 0 : T.key) && g && (this.tropicals = {
9246
+ ((T = (z = h == null ? void 0 : h.config) == null ? void 0 : z.headers) == null ? void 0 : T.key) && g && (this.tropicals = {
9247
9247
  data: g,
9248
9248
  active: !0,
9249
9249
  cached: !0,
@@ -9524,7 +9524,7 @@ const Fs = {
9524
9524
  ), this.showTropicalsInfo = !1;
9525
9525
  },
9526
9526
  handleDateChange() {
9527
- var t, e, o, i, a, r, s, c, n, u, h, g, f, L, _, T, x, D, S, P, k, z, C, v, A, Z, q, X, Y, te, oe, J;
9527
+ var t, e, o, i, a, r, s, c, n, u, h, g, f, L, z, T, v, R, S, C, x, _, P, k, A, Z, q, X, Y, te, oe, J;
9528
9528
  if ((t = this.interpolateMarkers) == null || t.forEach((le) => le == null ? void 0 : le.remove()), this.circleSourceData.features = [], (e = this.interpolateData) != null && e.length && this.tropicals.active) {
9529
9529
  const le = I(this.realTime).utc().set({ minute: 0, second: 0, millisecond: 0 }), pe = this.interpolateData.filter((Q) => Q.properties.date === (le == null ? void 0 : le.format()) && !Q.properties.disabled), ue = this.handleComputePolygons(pe), ce = N.featureCollection([...pe]);
9530
9530
  ue.forEach((Q) => {
@@ -9546,7 +9546,7 @@ const Fs = {
9546
9546
  for (const Q of pe)
9547
9547
  if (!Q.properties.disabled) {
9548
9548
  let ie = "#f44336";
9549
- ((c = (s = Q.properties) == null ? void 0 : s.wind) == null ? void 0 : c.kts) < 32 || !((u = (n = Q.properties) == null ? void 0 : n.wind) != null && u.kts) ? ie = "#03f869" : ((g = (h = Q.properties) == null ? void 0 : h.wind) == null ? void 0 : g.kts) >= 32 && ((L = (f = Q.properties) == null ? void 0 : f.wind) == null ? void 0 : L.kts) < 47 ? ie = "#f2f202" : ((T = (_ = Q.properties) == null ? void 0 : _.wind) == null ? void 0 : T.kts) >= 47 && ((D = (x = Q.properties) == null ? void 0 : x.wind) == null ? void 0 : D.kts) < 63 ? ie = "#ff9100" : ((P = (S = Q.properties) == null ? void 0 : S.wind) == null ? void 0 : P.kts) >= 63 && ((z = (k = Q.properties) == null ? void 0 : k.wind) == null ? void 0 : z.kts) < 79 ? ie = "#f44336" : ((v = (C = Q.properties) == null ? void 0 : C.wind) == null ? void 0 : v.kts) >= 79 && ((Z = (A = Q.properties) == null ? void 0 : A.wind) == null ? void 0 : Z.kts) < 94 ? ie = "#f903d0" : ((X = (q = Q.properties) == null ? void 0 : q.wind) == null ? void 0 : X.kts) >= 94 ? ie = "#8702f9" : ie = "#f44336";
9549
+ ((c = (s = Q.properties) == null ? void 0 : s.wind) == null ? void 0 : c.kts) < 32 || !((u = (n = Q.properties) == null ? void 0 : n.wind) != null && u.kts) ? ie = "#03f869" : ((g = (h = Q.properties) == null ? void 0 : h.wind) == null ? void 0 : g.kts) >= 32 && ((L = (f = Q.properties) == null ? void 0 : f.wind) == null ? void 0 : L.kts) < 47 ? ie = "#f2f202" : ((T = (z = Q.properties) == null ? void 0 : z.wind) == null ? void 0 : T.kts) >= 47 && ((R = (v = Q.properties) == null ? void 0 : v.wind) == null ? void 0 : R.kts) < 63 ? ie = "#ff9100" : ((C = (S = Q.properties) == null ? void 0 : S.wind) == null ? void 0 : C.kts) >= 63 && ((_ = (x = Q.properties) == null ? void 0 : x.wind) == null ? void 0 : _.kts) < 79 ? ie = "#f44336" : ((k = (P = Q.properties) == null ? void 0 : P.wind) == null ? void 0 : k.kts) >= 79 && ((Z = (A = Q.properties) == null ? void 0 : A.wind) == null ? void 0 : Z.kts) < 94 ? ie = "#f903d0" : ((X = (q = Q.properties) == null ? void 0 : q.wind) == null ? void 0 : X.kts) >= 94 ? ie = "#8702f9" : ie = "#f44336";
9550
9550
  const ge = `<svg t="1719918955501"
9551
9551
  class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" p-id="18382"
9552
9552
  xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200">
@@ -9573,13 +9573,13 @@ const Fs = {
9573
9573
  var r, s, c, n, u, h, g, f;
9574
9574
  const e = t.features[0], o = (s = (r = this.tropicals) == null ? void 0 : r.data) == null ? void 0 : s.features.filter(
9575
9575
  (L) => {
9576
- var _;
9577
- return L.geometry.type === "LineString" && L.properties.type === "forecast" && L.properties.name === ((_ = e == null ? void 0 : e.properties) == null ? void 0 : _.name);
9576
+ var z;
9577
+ return L.geometry.type === "LineString" && L.properties.type === "forecast" && L.properties.name === ((z = e == null ? void 0 : e.properties) == null ? void 0 : z.name);
9578
9578
  }
9579
9579
  ), i = (n = (c = this.tropicals) == null ? void 0 : c.data) == null ? void 0 : n.features.filter(
9580
9580
  (L) => {
9581
- var _;
9582
- return L.geometry.type === "LineString" && L.properties.type === "history" && L.properties.name === ((_ = e == null ? void 0 : e.properties) == null ? void 0 : _.name);
9581
+ var z;
9582
+ return L.geometry.type === "LineString" && L.properties.type === "history" && L.properties.name === ((z = e == null ? void 0 : e.properties) == null ? void 0 : z.name);
9583
9583
  }
9584
9584
  );
9585
9585
  this.activeTropicals = {
@@ -9724,18 +9724,18 @@ function ln(t, e, o, i, a, r) {
9724
9724
  default: p(() => [
9725
9725
  d(n, null, {
9726
9726
  default: p(() => {
9727
- var f, L, _, T, x, D, S, P, k, z;
9727
+ var f, L, z, T, v, R, S, C, x, _;
9728
9728
  return [
9729
9729
  l("div", Us, [
9730
9730
  l("span", Gs, y((f = a.activeTropicals) == null ? void 0 : f.name), 1),
9731
- (_ = (L = a.activeTropicals) == null ? void 0 : L.history) != null && _.level ? (b(), M("span", Vs, ", " + y((x = (T = a.activeTropicals) == null ? void 0 : T.history) == null ? void 0 : x.level), 1)) : B("", !0)
9731
+ (z = (L = a.activeTropicals) == null ? void 0 : L.history) != null && z.level ? (b(), M("span", Vs, ", " + y((v = (T = a.activeTropicals) == null ? void 0 : T.history) == null ? void 0 : v.level), 1)) : B("", !0)
9732
9732
  ]),
9733
9733
  d(s, {
9734
9734
  icon: "",
9735
9735
  density: "compact",
9736
9736
  variant: "plain",
9737
9737
  class: "close",
9738
- onClick: e[0] || (e[0] = (C) => a.showTropicalsInfo = !1)
9738
+ onClick: e[0] || (e[0] = (P) => a.showTropicalsInfo = !1)
9739
9739
  }, {
9740
9740
  default: p(() => e[5] || (e[5] = [
9741
9741
  l("i", { class: "iconfont icon-close opacity-70 text-h4" }, null, -1)
@@ -9745,7 +9745,7 @@ function ln(t, e, o, i, a, r) {
9745
9745
  }),
9746
9746
  l("div", Zs, [
9747
9747
  e[6] || (e[6] = l("span", { class: "opacity-70" }, "Last update: ", -1)),
9748
- l("span", null, y(r.computeTime(((S = (D = a.activeTropicals) == null ? void 0 : D.history) == null ? void 0 : S.updated) || ((z = (k = (P = a.activeTropicals) == null ? void 0 : P.forecasts) == null ? void 0 : k.filter((C) => !C.disabled)[0]) == null ? void 0 : z.date))), 1)
9748
+ l("span", null, y(r.computeTime(((S = (R = a.activeTropicals) == null ? void 0 : R.history) == null ? void 0 : S.updated) || ((_ = (x = (C = a.activeTropicals) == null ? void 0 : C.forecasts) == null ? void 0 : x.filter((P) => !P.disabled)[0]) == null ? void 0 : _.date))), 1)
9749
9749
  ])
9750
9750
  ];
9751
9751
  }),
@@ -9754,17 +9754,17 @@ function ln(t, e, o, i, a, r) {
9754
9754
  d(u),
9755
9755
  d(n, { class: "text-body-1" }, {
9756
9756
  default: p(() => {
9757
- var f, L, _, T, x, D, S, P, k;
9757
+ var f, L, z, T, v, R, S, C, x;
9758
9758
  return [
9759
9759
  l("div", Ys, [
9760
9760
  l("div", qs, [
9761
9761
  e[7] || (e[7] = l("label", { class: "opacity-70 pr-1" }, "Wind speed : ", -1)),
9762
9762
  l("span", null, y(((L = (f = a.activeTropicals) == null ? void 0 : f.history) == null ? void 0 : L.kts) || "-") + " kts", 1),
9763
- l("span", null, ", BF " + y(r.computeBF(((T = (_ = a.activeTropicals) == null ? void 0 : _.history) == null ? void 0 : T.kts) || "-")), 1)
9763
+ l("span", null, ", BF " + y(r.computeBF(((T = (z = a.activeTropicals) == null ? void 0 : z.history) == null ? void 0 : T.kts) || "-")), 1)
9764
9764
  ]),
9765
9765
  l("div", Xs, [
9766
9766
  e[8] || (e[8] = l("label", { class: "opacity-70 pr-1" }, "Pressure : ", -1)),
9767
- l("span", null, y(((D = (x = a.activeTropicals) == null ? void 0 : x.history) == null ? void 0 : D.pressure) || "-") + " hPa", 1)
9767
+ l("span", null, y(((R = (v = a.activeTropicals) == null ? void 0 : v.history) == null ? void 0 : R.pressure) || "-") + " hPa", 1)
9768
9768
  ])
9769
9769
  ]),
9770
9770
  l("div", Ks, [
@@ -9774,7 +9774,7 @@ function ln(t, e, o, i, a, r) {
9774
9774
  ]),
9775
9775
  l("div", Js, [
9776
9776
  e[10] || (e[10] = l("label", { class: "opacity-70 pr-1" }, "Move Dir : ", -1)),
9777
- l("span", null, y(((P = r.computeMovement(a.activeTropicals)) == null ? void 0 : P.deg) || "-") + "°", 1)
9777
+ l("span", null, y(((C = r.computeMovement(a.activeTropicals)) == null ? void 0 : C.deg) || "-") + "°", 1)
9778
9778
  ])
9779
9779
  ]),
9780
9780
  l("div", $s, [
@@ -9783,16 +9783,16 @@ function ln(t, e, o, i, a, r) {
9783
9783
  style: { width: "max-content" }
9784
9784
  }, "Forecast Models : ", -1)),
9785
9785
  l("div", en, [
9786
- (b(!0), M(be, null, we((k = a.activeTropicals) == null ? void 0 : k.forecasts, (z, C) => (b(), O(s, {
9787
- key: C,
9786
+ (b(!0), M(be, null, we((x = a.activeTropicals) == null ? void 0 : x.forecasts, (_, P) => (b(), D(s, {
9787
+ key: P,
9788
9788
  density: "compact",
9789
- variant: z.disabled ? "outlined" : "flat",
9790
- color: z.disabled ? "" : "primary",
9791
- class: Ue(["model text-none text-body-1", z.disabled ? "" : "btn-border-2"]),
9792
- onClick: (v) => r.handleForecastToggle(z)
9789
+ variant: _.disabled ? "outlined" : "flat",
9790
+ color: _.disabled ? "" : "primary",
9791
+ class: Ue(["model text-none text-body-1", _.disabled ? "" : "btn-border-2"]),
9792
+ onClick: (k) => r.handleForecastToggle(_)
9793
9793
  }, {
9794
9794
  default: p(() => [
9795
- U(y(z.model), 1)
9795
+ U(y(_.model), 1)
9796
9796
  ]),
9797
9797
  _: 2
9798
9798
  }, 1032, ["variant", "color", "class", "onClick"]))), 128))
@@ -9823,7 +9823,7 @@ function ln(t, e, o, i, a, r) {
9823
9823
  __: [13]
9824
9824
  }, 8, ["color"]),
9825
9825
  l("div", tn, [
9826
- o.permission & a.helper.LEVEL.Supper ? (b(), O(s, {
9826
+ o.permission & a.helper.LEVEL.Supper ? (b(), D(s, {
9827
9827
  key: 0,
9828
9828
  variant: "text",
9829
9829
  density: "compact",
@@ -10079,7 +10079,7 @@ const sn = {
10079
10079
  style: { height: "56px" }
10080
10080
  };
10081
10081
  function hn(t, e, o, i, a, r) {
10082
- const s = w("VBtn"), c = w("VDatePicker"), n = w("VDivider"), u = w("VListItemTitle"), h = w("VListItem"), g = w("VList"), f = w("VCardText"), L = w("VCardActions"), _ = w("VCard");
10082
+ const s = w("VBtn"), c = w("VDatePicker"), n = w("VDivider"), u = w("VListItemTitle"), h = w("VListItem"), g = w("VList"), f = w("VCardText"), L = w("VCardActions"), z = w("VCard");
10083
10083
  return b(), M("div", nn, [
10084
10084
  d(s, {
10085
10085
  text: "",
@@ -10092,7 +10092,7 @@ function hn(t, e, o, i, a, r) {
10092
10092
  ]),
10093
10093
  _: 1
10094
10094
  }, 8, ["onClick"]),
10095
- a.showDatePicker ? (b(), O(_, {
10095
+ a.showDatePicker ? (b(), D(z, {
10096
10096
  key: 0,
10097
10097
  class: "card-box d-flex flex-column"
10098
10098
  }, {
@@ -10122,8 +10122,8 @@ function hn(t, e, o, i, a, r) {
10122
10122
  l("div", dn, y(a.currentTime), 1),
10123
10123
  d(g, { class: "pa-0 flex-1-1-0" }, {
10124
10124
  default: p(() => [
10125
- (b(!0), M(be, null, we(r.hourOptions, (T, x) => (b(), O(h, {
10126
- key: x,
10125
+ (b(!0), M(be, null, we(r.hourOptions, (T, v) => (b(), D(h, {
10126
+ key: v,
10127
10127
  value: T,
10128
10128
  color: "primary",
10129
10129
  active: a.currentTime === T,
@@ -10134,7 +10134,7 @@ function hn(t, e, o, i, a, r) {
10134
10134
  default: p(() => [
10135
10135
  d(u, {
10136
10136
  class: "text-body-2 text-center",
10137
- onClick: (D) => a.currentTime = T
10137
+ onClick: (R) => a.currentTime = T
10138
10138
  }, {
10139
10139
  default: p(() => [
10140
10140
  U(y(T), 1)
@@ -10230,9 +10230,13 @@ const pn = {
10230
10230
  },
10231
10231
  realTime: {
10232
10232
  type: String
10233
+ },
10234
+ followList: {
10235
+ type: Array,
10236
+ default: []
10233
10237
  }
10234
10238
  },
10235
- emits: ["meteoMore", "follow", "login"],
10239
+ emits: ["meteoMore", "follow", "cancelFollow", "login"],
10236
10240
  data() {
10237
10241
  return {
10238
10242
  right: 10,
@@ -10435,10 +10439,10 @@ const pn = {
10435
10439
  (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;
10436
10440
  },
10437
10441
  initTableData(t) {
10438
- var o, i, a, r, s, c, n, u, h, g, f, L, _, T, x, D, S, P, k, z, C, v, A, Z, q, X, Y, te, oe, J, le, pe, ue, ce, Q, ie, ge, me, F, de, ke;
10442
+ var o, i, a, r, s, c, n, u, h, g, f, L, z, T, v, R, S, C, x, _, P, k, A, Z, q, X, Y, te, oe, J, le, pe, ue, ce, Q, ie, ge, me, F, de, ke;
10439
10443
  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;
10440
10444
  const e = ((s = ao.pickHourly(t, I(this.form.dateTime))) == null ? void 0 : s[0]) || {};
10441
- 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((u = (n = e == null ? void 0 : e.weather) == null ? void 0 : n.precip) == null ? void 0 : u.probability, 0) ?? "-", this.currentHourData.precip1h = this.roundPrecision((g = (h = e == null ? void 0 : e.weather) == null ? void 0 : h.precip) == null ? void 0 : g.sum, 0) ?? "-", this.currentHourData.visibility = this.roundPrecision((f = e == null ? void 0 : e.weather) == null ? void 0 : f.visibility, 0) ?? "-", this.currentHourData.windSpeed = this.roundPrecision((_ = (L = e == null ? void 0 : e.weather) == null ? void 0 : L.wind) == null ? void 0 : _.kts, 1) ?? "-", this.currentHourData.windDir = (x = (T = e == null ? void 0 : e.weather) == null ? void 0 : T.wind) == null ? void 0 : x.direction, this.currentHourData.windLevel = this.roundPrecision((S = (D = e == null ? void 0 : e.weather) == null ? void 0 : D.wind) == null ? void 0 : S.scale, 0) ?? "-", this.currentHourData.windGust = this.roundPrecision((k = (P = e == null ? void 0 : e.weather) == null ? void 0 : P.wind) == null ? void 0 : k.gusts, 1) ?? "-", this.currentHourData.sigwaveHeight = this.roundPrecision((C = (z = e == null ? void 0 : e.wave) == null ? void 0 : z.sig) == null ? void 0 : C.height, 1) ?? "-", this.currentHourData.sigwaveDir = (A = (v = e == null ? void 0 : e.wave) == null ? void 0 : v.sig) == null ? void 0 : A.direction, this.currentHourData.sigwavePeriod = this.roundPrecision((q = (Z = e == null ? void 0 : e.wave) == null ? void 0 : Z.sig) == null ? void 0 : q.period, 1) ?? "-", this.currentHourData.windwaveHeight = this.roundPrecision((Y = (X = e == null ? void 0 : e.wave) == null ? void 0 : X.wd) == null ? void 0 : Y.height, 1) ?? "-", this.currentHourData.windwaveDir = (oe = (te = e == null ? void 0 : e.wave) == null ? void 0 : te.wd) == null ? void 0 : oe.direction, this.currentHourData.windwavePeriod = this.roundPrecision((le = (J = e == null ? void 0 : e.wave) == null ? void 0 : J.wd) == null ? void 0 : le.period, 1) ?? "-", this.currentHourData.swellHeight = this.roundPrecision((ue = (pe = e == null ? void 0 : e.wave) == null ? void 0 : pe.swell) == null ? void 0 : ue.height, 1) ?? "-", this.currentHourData.swellDir = (Q = (ce = e == null ? void 0 : e.wave) == null ? void 0 : ce.swell) == null ? void 0 : Q.direction, this.currentHourData.swellPeriod = this.roundPrecision((ge = (ie = e == null ? void 0 : e.wave) == null ? void 0 : ie.swell) == null ? void 0 : ge.period, 1) ?? "-", this.currentHourData.currentSpeed = this.roundPrecision((me = e == null ? void 0 : e.current) == null ? void 0 : me.speed, 1) ?? "-", this.currentHourData.currentDir = (F = e == null ? void 0 : e.current) == null ? void 0 : F.direction, this.currentHourData.currentSpeed = this.roundPrecision((de = e == null ? void 0 : e.current) == null ? void 0 : de.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 = (ke = e == null ? void 0 : e.weather) == null ? void 0 : ke.url;
10445
+ 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((u = (n = e == null ? void 0 : e.weather) == null ? void 0 : n.precip) == null ? void 0 : u.probability, 0) ?? "-", this.currentHourData.precip1h = this.roundPrecision((g = (h = e == null ? void 0 : e.weather) == null ? void 0 : h.precip) == null ? void 0 : g.sum, 0) ?? "-", this.currentHourData.visibility = this.roundPrecision((f = e == null ? void 0 : e.weather) == null ? void 0 : f.visibility, 0) ?? "-", this.currentHourData.windSpeed = this.roundPrecision((z = (L = e == null ? void 0 : e.weather) == null ? void 0 : L.wind) == null ? void 0 : z.kts, 1) ?? "-", this.currentHourData.windDir = (v = (T = e == null ? void 0 : e.weather) == null ? void 0 : T.wind) == null ? void 0 : v.direction, this.currentHourData.windLevel = this.roundPrecision((S = (R = e == null ? void 0 : e.weather) == null ? void 0 : R.wind) == null ? void 0 : S.scale, 0) ?? "-", this.currentHourData.windGust = this.roundPrecision((x = (C = e == null ? void 0 : e.weather) == null ? void 0 : C.wind) == null ? void 0 : x.gusts, 1) ?? "-", this.currentHourData.sigwaveHeight = this.roundPrecision((P = (_ = e == null ? void 0 : e.wave) == null ? void 0 : _.sig) == null ? void 0 : P.height, 1) ?? "-", this.currentHourData.sigwaveDir = (A = (k = e == null ? void 0 : e.wave) == null ? void 0 : k.sig) == null ? void 0 : A.direction, this.currentHourData.sigwavePeriod = this.roundPrecision((q = (Z = e == null ? void 0 : e.wave) == null ? void 0 : Z.sig) == null ? void 0 : q.period, 1) ?? "-", this.currentHourData.windwaveHeight = this.roundPrecision((Y = (X = e == null ? void 0 : e.wave) == null ? void 0 : X.wd) == null ? void 0 : Y.height, 1) ?? "-", this.currentHourData.windwaveDir = (oe = (te = e == null ? void 0 : e.wave) == null ? void 0 : te.wd) == null ? void 0 : oe.direction, this.currentHourData.windwavePeriod = this.roundPrecision((le = (J = e == null ? void 0 : e.wave) == null ? void 0 : J.wd) == null ? void 0 : le.period, 1) ?? "-", this.currentHourData.swellHeight = this.roundPrecision((ue = (pe = e == null ? void 0 : e.wave) == null ? void 0 : pe.swell) == null ? void 0 : ue.height, 1) ?? "-", this.currentHourData.swellDir = (Q = (ce = e == null ? void 0 : e.wave) == null ? void 0 : ce.swell) == null ? void 0 : Q.direction, this.currentHourData.swellPeriod = this.roundPrecision((ge = (ie = e == null ? void 0 : e.wave) == null ? void 0 : ie.swell) == null ? void 0 : ge.period, 1) ?? "-", this.currentHourData.currentSpeed = this.roundPrecision((me = e == null ? void 0 : e.current) == null ? void 0 : me.speed, 1) ?? "-", this.currentHourData.currentDir = (F = e == null ? void 0 : e.current) == null ? void 0 : F.direction, this.currentHourData.currentSpeed = this.roundPrecision((de = e == null ? void 0 : e.current) == null ? void 0 : de.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 = (ke = e == null ? void 0 : e.weather) == null ? void 0 : ke.url;
10442
10446
  },
10443
10447
  handleBind() {
10444
10448
  var t, e;
@@ -10497,6 +10501,11 @@ const pn = {
10497
10501
  },
10498
10502
  handleFollow() {
10499
10503
  this.$emit("follow", this.point);
10504
+ },
10505
+ handleCancelFollow() {
10506
+ var e;
10507
+ const t = (e = this.followList.findIndex((o) => o.coordinate.lng === this.point.lng && o.coordinate.lat === this.point.lat)) == null ? void 0 : e.id;
10508
+ this.$emit("cancelFollow", t);
10500
10509
  }
10501
10510
  }
10502
10511
  }, un = { class: "idm-gl4-spot" }, gn = { class: "d-flex justify-start align-center ga-1 mb-1" }, fn = {
@@ -10513,7 +10522,7 @@ const pn = {
10513
10522
  "aria-hidden": "true"
10514
10523
  }, Pn = ["xlink:href"], Cn = { class: "d-flex justify-start align-center" }, Tn = { class: "mx-2" };
10515
10524
  function Sn(t, e, o, i, a, r) {
10516
- const s = w("VBtn"), c = w("VTooltip"), n = w("VCardTitle"), u = w("VDivider"), h = w("VTextField"), g = w("VCol"), f = w("VRow"), L = w("DateTimePicker"), _ = w("VBtnToggle"), T = w("VCardActions"), x = w("VForm"), D = w("VCardText"), S = w("VCard"), P = w("VIcon");
10525
+ const s = w("VBtn"), c = w("VTooltip"), n = w("VCardTitle"), u = w("VDivider"), h = w("VTextField"), g = w("VCol"), f = w("VRow"), L = w("DateTimePicker"), z = w("VBtnToggle"), T = w("VCardActions"), v = w("VForm"), R = w("VCardText"), S = w("VCard"), C = w("VIcon");
10517
10526
  return b(), M("div", un, [
10518
10527
  l("div", {
10519
10528
  class: "menu-bar-box transition pa-1",
@@ -10523,8 +10532,8 @@ function Sn(t, e, o, i, a, r) {
10523
10532
  text: t.$t("spot.spotsMeteo"),
10524
10533
  location: "left"
10525
10534
  }, {
10526
- activator: p(({ props: k }) => [
10527
- d(s, j(k, {
10535
+ activator: p(({ props: x }) => [
10536
+ d(s, j(x, {
10528
10537
  "min-width": "32",
10529
10538
  width: "32",
10530
10539
  height: "32",
@@ -10541,7 +10550,7 @@ function Sn(t, e, o, i, a, r) {
10541
10550
  _: 1
10542
10551
  }, 8, ["text"])
10543
10552
  ], 4),
10544
- a.showForm ? (b(), O(S, {
10553
+ a.showForm ? (b(), D(S, {
10545
10554
  key: 0,
10546
10555
  class: "spot-form-card",
10547
10556
  style: ae({ top: o.top + 174 + "px", right: a.right + 50 + "px" })
@@ -10570,9 +10579,9 @@ function Sn(t, e, o, i, a, r) {
10570
10579
  __: [10]
10571
10580
  }),
10572
10581
  d(u),
10573
- d(D, { class: "text-body-1 py-1" }, {
10582
+ d(R, { class: "text-body-1 py-1" }, {
10574
10583
  default: p(() => [
10575
- d(x, {
10584
+ d(v, {
10576
10585
  ref: "spotForm",
10577
10586
  autocomplete: "off",
10578
10587
  class: "form-box",
@@ -10596,7 +10605,7 @@ function Sn(t, e, o, i, a, r) {
10596
10605
  default: p(() => [
10597
10606
  d(h, {
10598
10607
  modelValue: a.form.lngDegree,
10599
- "onUpdate:modelValue": e[0] || (e[0] = (k) => a.form.lngDegree = k),
10608
+ "onUpdate:modelValue": e[0] || (e[0] = (x) => a.form.lngDegree = x),
10600
10609
  rules: a.formRules.lngDegree,
10601
10610
  density: "compact",
10602
10611
  variant: "outlined",
@@ -10615,7 +10624,7 @@ function Sn(t, e, o, i, a, r) {
10615
10624
  default: p(() => [
10616
10625
  d(h, {
10617
10626
  modelValue: a.form.lngMinute,
10618
- "onUpdate:modelValue": e[1] || (e[1] = (k) => a.form.lngMinute = k),
10627
+ "onUpdate:modelValue": e[1] || (e[1] = (x) => a.form.lngMinute = x),
10619
10628
  rules: a.formRules.lngMinute,
10620
10629
  label: "",
10621
10630
  density: "compact",
@@ -10641,7 +10650,7 @@ function Sn(t, e, o, i, a, r) {
10641
10650
  height: "32",
10642
10651
  class: "",
10643
10652
  style: { border: "1px solid rgba(var(--v-theme-on-surface), 0.38)" },
10644
- onClick: e[2] || (e[2] = (k) => a.form.lngDirection = a.form.lngDirection === "E" ? "W" : "E")
10653
+ onClick: e[2] || (e[2] = (x) => a.form.lngDirection = a.form.lngDirection === "E" ? "W" : "E")
10645
10654
  }, {
10646
10655
  default: p(() => [
10647
10656
  U(y(a.form.lngDirection), 1)
@@ -10671,7 +10680,7 @@ function Sn(t, e, o, i, a, r) {
10671
10680
  default: p(() => [
10672
10681
  d(h, {
10673
10682
  modelValue: a.form.latDegree,
10674
- "onUpdate:modelValue": e[3] || (e[3] = (k) => a.form.latDegree = k),
10683
+ "onUpdate:modelValue": e[3] || (e[3] = (x) => a.form.latDegree = x),
10675
10684
  rules: a.formRules.latDegree,
10676
10685
  label: "",
10677
10686
  density: "compact",
@@ -10693,7 +10702,7 @@ function Sn(t, e, o, i, a, r) {
10693
10702
  default: p(() => [
10694
10703
  d(h, {
10695
10704
  modelValue: a.form.latMinute,
10696
- "onUpdate:modelValue": e[4] || (e[4] = (k) => a.form.latMinute = k),
10705
+ "onUpdate:modelValue": e[4] || (e[4] = (x) => a.form.latMinute = x),
10697
10706
  rules: a.formRules.latMinute,
10698
10707
  label: "",
10699
10708
  density: "compact",
@@ -10719,7 +10728,7 @@ function Sn(t, e, o, i, a, r) {
10719
10728
  height: "32",
10720
10729
  class: "text-body-1",
10721
10730
  style: { border: "1px solid rgba(var(--v-theme-on-surface), 0.38)" },
10722
- onClick: e[5] || (e[5] = (k) => a.form.latDirection = a.form.latDirection === "N" ? "S" : "N")
10731
+ onClick: e[5] || (e[5] = (x) => a.form.latDirection = a.form.latDirection === "N" ? "S" : "N")
10723
10732
  }, {
10724
10733
  default: p(() => [
10725
10734
  U(y(a.form.latDirection), 1)
@@ -10751,7 +10760,7 @@ function Sn(t, e, o, i, a, r) {
10751
10760
  "date-time": a.form.dateTime,
10752
10761
  "time-zone": o.timeZone
10753
10762
  }, t.$attrs, {
10754
- onDateTime: e[6] || (e[6] = (k) => a.form.dateTime = k)
10763
+ onDateTime: e[6] || (e[6] = (x) => a.form.dateTime = x)
10755
10764
  }), null, 16, ["date-time", "time-zone"])
10756
10765
  ]),
10757
10766
  _: 1
@@ -10774,9 +10783,9 @@ function Sn(t, e, o, i, a, r) {
10774
10783
  class: "pa-0"
10775
10784
  }, {
10776
10785
  default: p(() => [
10777
- d(_, {
10786
+ d(z, {
10778
10787
  modelValue: a.form.forecastModel,
10779
- "onUpdate:modelValue": e[7] || (e[7] = (k) => a.form.forecastModel = k),
10788
+ "onUpdate:modelValue": e[7] || (e[7] = (x) => a.form.forecastModel = x),
10780
10789
  class: "w-100",
10781
10790
  rounded: "",
10782
10791
  height: "30",
@@ -10871,11 +10880,11 @@ function Sn(t, e, o, i, a, r) {
10871
10880
  default: p(() => [
10872
10881
  d(n, { class: "d-flex justify-space-between align-center" }, {
10873
10882
  default: p(() => {
10874
- var k, z, C, v;
10883
+ var x, _, P, k;
10875
10884
  return [
10876
10885
  l("div", Cn, [
10877
10886
  e[23] || (e[23] = l("i", { class: "iconfont icon-a-Spotweather text-h5 map-icon-aqua" }, null, -1)),
10878
- l("div", Tn, y(r.computeLat(((k = a.form) == null ? void 0 : k.lat) || ((z = a.currentHourData) == null ? void 0 : z.lat))) + "," + y(r.computeLng(((C = a.form) == null ? void 0 : C.lng) || ((v = a.currentHourData) == null ? void 0 : v.lng))), 1)
10887
+ l("div", Tn, y(r.computeLat(((x = a.form) == null ? void 0 : x.lat) || ((_ = a.currentHourData) == null ? void 0 : _.lat))) + "," + y(r.computeLng(((P = a.form) == null ? void 0 : P.lng) || ((k = a.currentHourData) == null ? void 0 : k.lng))), 1)
10879
10888
  ]),
10880
10889
  d(s, {
10881
10890
  class: "mr-n2",
@@ -10898,7 +10907,7 @@ function Sn(t, e, o, i, a, r) {
10898
10907
  _: 1
10899
10908
  }),
10900
10909
  d(u),
10901
- d(D, { class: "text-body-1 ml-n8" }, {
10910
+ d(R, { class: "text-body-1 ml-n8" }, {
10902
10911
  default: p(() => [
10903
10912
  d(f, null, {
10904
10913
  default: p(() => [
@@ -10917,9 +10926,9 @@ function Sn(t, e, o, i, a, r) {
10917
10926
  class: "pa-2 px-0"
10918
10927
  }, {
10919
10928
  default: p(() => {
10920
- var k;
10929
+ var x;
10921
10930
  return [
10922
- U(y(r.computedTzTime((k = a.currentHourData) == null ? void 0 : k.utc)), 1)
10931
+ U(y(r.computedTzTime((x = a.currentHourData) == null ? void 0 : x.utc)), 1)
10923
10932
  ];
10924
10933
  }),
10925
10934
  _: 1
@@ -10944,9 +10953,9 @@ function Sn(t, e, o, i, a, r) {
10944
10953
  class: "pa-2 px-0"
10945
10954
  }, {
10946
10955
  default: p(() => {
10947
- var k;
10956
+ var x;
10948
10957
  return [
10949
- U(y(r.computedLocalTime((k = a.currentHourData) == null ? void 0 : k.utc)), 1)
10958
+ U(y(r.computedLocalTime((x = a.currentHourData) == null ? void 0 : x.utc)), 1)
10950
10959
  ];
10951
10960
  }),
10952
10961
  _: 1
@@ -11089,22 +11098,39 @@ function Sn(t, e, o, i, a, r) {
11089
11098
  d(u),
11090
11099
  d(T, { class: "d-flex justify-space-between align-center" }, {
11091
11100
  default: p(() => [
11092
- d(s, {
11093
- vvariant: "text",
11101
+ o.followList.some((x) => {
11102
+ var _, P;
11103
+ return ((_ = x == null ? void 0 : x.coordinate) == null ? void 0 : _.lng) === a.point.lng && ((P = x == null ? void 0 : x.coordinate) == null ? void 0 : P.lat) === a.point.lat;
11104
+ }) ? (b(), D(s, {
11105
+ key: 0,
11106
+ class: "text-none text-body-1",
11107
+ variant: "text",
11094
11108
  density: "compact",
11109
+ height: "32",
11095
11110
  "prepend-icon": "mdi-star",
11096
- class: "text-none text-body-1",
11097
- onClick: r.handleFollow
11111
+ onClick: r.handleCancelFollow
11098
11112
  }, {
11099
11113
  prepend: p(() => [
11100
- d(P, { color: "warning" })
11114
+ d(C, { color: "warning" })
11101
11115
  ]),
11102
11116
  default: p(() => [
11103
- e[33] || (e[33] = U(" Follow", -1))
11117
+ U(" " + y(t.$t("actions.unfollow")), 1)
11104
11118
  ]),
11105
- _: 1,
11106
- __: [33]
11107
- }, 8, ["onClick"]),
11119
+ _: 1
11120
+ }, 8, ["onClick"])) : (b(), D(s, {
11121
+ key: 1,
11122
+ class: "text-none text-body-1",
11123
+ variant: "text",
11124
+ density: "compact",
11125
+ height: "32",
11126
+ "prepend-icon": "mdi-star-outline",
11127
+ onClick: r.handleFollow
11128
+ }, {
11129
+ default: p(() => [
11130
+ U(y(t.$t("actions.follow")), 1)
11131
+ ]),
11132
+ _: 1
11133
+ }, 8, ["onClick"])),
11108
11134
  d(s, {
11109
11135
  variant: "text",
11110
11136
  density: "compact",
@@ -11112,11 +11138,11 @@ function Sn(t, e, o, i, a, r) {
11112
11138
  class: "text-none text-body-1",
11113
11139
  onClick: r.handleMeteoMore
11114
11140
  }, {
11115
- default: p(() => e[34] || (e[34] = [
11141
+ default: p(() => e[33] || (e[33] = [
11116
11142
  U("Forecast", -1)
11117
11143
  ])),
11118
11144
  _: 1,
11119
- __: [34]
11145
+ __: [33]
11120
11146
  }, 8, ["onClick"])
11121
11147
  ]),
11122
11148
  _: 1
@@ -11222,24 +11248,24 @@ const In = {
11222
11248
  var o, i, a, r, s, c, n, u, h, g;
11223
11249
  const e = (i = (o = t.target) == null ? void 0 : o._element) == null ? void 0 : i.id;
11224
11250
  if ((e == null ? void 0 : e.split("-").length) === 2) {
11225
- const f = this.geojson.filter((x) => x.id === e.split("-")[0])[0];
11226
- this.pointMarkers[f.id].filter((x) => {
11227
- var D;
11228
- return ((D = x._element) == null ? void 0 : D.id) === e;
11251
+ const f = this.geojson.filter((v) => v.id === e.split("-")[0])[0];
11252
+ this.pointMarkers[f.id].filter((v) => {
11253
+ var R;
11254
+ return ((R = v._element) == null ? void 0 : R.id) === e;
11229
11255
  })[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]);
11230
- let _;
11231
- f.features.forEach((x, D) => {
11232
- if (x.geometry.type === "Point" && x.properties.id === e.split("-")[1]) {
11233
- _ = D;
11256
+ let z;
11257
+ f.features.forEach((v, R) => {
11258
+ if (v.geometry.type === "Point" && v.properties.id === e.split("-")[1]) {
11259
+ z = R;
11234
11260
  return;
11235
11261
  }
11236
11262
  });
11237
- const T = f.features.filter((x) => x.geometry.type === "Point");
11263
+ const T = f.features.filter((v) => v.geometry.type === "Point");
11238
11264
  this.handleTmpPointUpdate(
11239
11265
  f,
11240
- T[_ - 1],
11241
- { lng: (u = (n = t.target) == null ? void 0 : n._lngLat) == null ? void 0 : u.lng, lat: (g = (h = t.target) == null ? void 0 : h._lngLat) == null ? void 0 : g.lat, properties: T[_].properties },
11242
- _ === T.length - 1 ? void 0 : T[_ + 1]
11266
+ T[z - 1],
11267
+ { lng: (u = (n = t.target) == null ? void 0 : n._lngLat) == null ? void 0 : u.lng, lat: (g = (h = t.target) == null ? void 0 : h._lngLat) == null ? void 0 : g.lat, properties: T[z].properties },
11268
+ z === T.length - 1 ? void 0 : T[z + 1]
11243
11269
  );
11244
11270
  }
11245
11271
  },
@@ -11249,11 +11275,11 @@ const In = {
11249
11275
  if ((e == null ? void 0 : e.split("-").length) === 2) {
11250
11276
  const f = this.geojson.filter((T) => T.id === e.split("-")[0])[0];
11251
11277
  this.pointMarkers[f.id].filter((T) => {
11252
- var x;
11253
- return ((x = T._element) == null ? void 0 : x.id) === e;
11278
+ var v;
11279
+ return ((v = T._element) == null ? void 0 : v.id) === e;
11254
11280
  })[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]);
11255
- const _ = f.features.filter((T) => T.geometry.type === "Point" && T.properties.id === e.split("-")[1])[0];
11256
- _.geometry.coordinates = [(u = (n = t.target) == null ? void 0 : n._lngLat) == null ? void 0 : u.lng, (g = (h = t.target) == null ? void 0 : h._lngLat) == null ? void 0 : g.lat], f.features = f.features.filter((T) => T.geometry.type === "Point"), this.handlePointUpdate(f);
11281
+ const z = f.features.filter((T) => T.geometry.type === "Point" && T.properties.id === e.split("-")[1])[0];
11282
+ z.geometry.coordinates = [(u = (n = t.target) == null ? void 0 : n._lngLat) == null ? void 0 : u.lng, (g = (h = t.target) == null ? void 0 : h._lngLat) == null ? void 0 : g.lat], f.features = f.features.filter((T) => T.geometry.type === "Point"), this.handlePointUpdate(f);
11257
11283
  }
11258
11284
  },
11259
11285
  handleContextmenu(t) {
@@ -11307,8 +11333,8 @@ const In = {
11307
11333
  c.mode === "RL" ? f = K.convertToMonotonicLng([n, u]) : f = K.convertToMonotonicLng(We.interpolateCoordinates(n, u, 200));
11308
11334
  const L = N.lineString(f.map((T) => [T.lng, T.lat]));
11309
11335
  L.properties.dist = h, L.properties.bearing = g, L.properties.total = o, L.properties.name = "Line " + this.currentLineIndex, i.push(L);
11310
- const _ = e[a];
11311
- _.properties.totalDist = K.roundPrecision((c.totalDist ? c.totalDist : 0) + h, 4), _.properties.sumLabel = _.properties.totalDist + " nm";
11336
+ const z = e[a];
11337
+ z.properties.totalDist = K.roundPrecision((c.totalDist ? c.totalDist : 0) + h, 4), z.properties.sumLabel = z.properties.totalDist + " nm";
11312
11338
  }
11313
11339
  e.push(...i), t.total = o;
11314
11340
  }
@@ -11472,11 +11498,11 @@ const In = {
11472
11498
  }
11473
11499
  },
11474
11500
  handleClear(t, e = !0) {
11475
- var s, c, n, u, h, g, f, L, _, T;
11501
+ var s, c, n, u, h, g, f, L, z, T;
11476
11502
  const o = `${t.id}-${this.source}`, i = `${t.id}-${this.layer}`, a = `${t.id}-${this.labelLayer}`, r = `${t.id}-${this.sumLayer}`;
11477
- (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), (u = this.map) != null && u.getLayer(this.tmpLayer) && this.map.removeLayer(this.tmpLayer), (h = this.map) != null && h.getLayer(this.tmpLabelLayer) && this.map.removeLayer(this.tmpLabelLayer), (g = this.closeMarkers[t.id]) == null || g.remove(), this.closeMarkers[t.id] = void 0, (f = this.pointMarkers[t.id]) == null || f.forEach((x) => {
11478
- x == null || x.remove();
11479
- }), 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 && ((T = this.map) != null && T.getSource(this.tmpSource)) && this.map.removeSource(this.tmpSource);
11503
+ (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), (u = this.map) != null && u.getLayer(this.tmpLayer) && this.map.removeLayer(this.tmpLayer), (h = this.map) != null && h.getLayer(this.tmpLabelLayer) && this.map.removeLayer(this.tmpLabelLayer), (g = this.closeMarkers[t.id]) == null || g.remove(), this.closeMarkers[t.id] = void 0, (f = this.pointMarkers[t.id]) == null || f.forEach((v) => {
11504
+ v == null || v.remove();
11505
+ }), this.pointMarkers[t.id] = [], (L = this.tipMarker) == null || L.remove(), this.tipMarker = void 0, e && ((z = this.map) != null && z.getSource(o)) && this.map.removeSource(o), e && ((T = this.map) != null && T.getSource(this.tmpSource)) && this.map.removeSource(this.tmpSource);
11480
11506
  }
11481
11507
  }
11482
11508
  }, An = { class: "idm-gl4-measure" };
@@ -11649,9 +11675,9 @@ function Vn(t, e, o, i, a, r) {
11649
11675
  "day-about": a.dayAbout,
11650
11676
  "interval-hour": a.intervalHour
11651
11677
  }, t.$attrs, {
11652
- onCurrentTimestamp: e[0] || (e[0] = (_) => a.currentTimestamp = _),
11653
- onCurrentRealTime: e[1] || (e[1] = (_) => a.currentRealTime = _),
11654
- onTimestampRange: e[2] || (e[2] = (_) => a.timestampRange = _)
11678
+ onCurrentTimestamp: e[0] || (e[0] = (z) => a.currentTimestamp = z),
11679
+ onCurrentRealTime: e[1] || (e[1] = (z) => a.currentRealTime = z),
11680
+ onTimestampRange: e[2] || (e[2] = (z) => a.timestampRange = z)
11655
11681
  }), null, 16, ["date-time", "time-zone", "day-about", "interval-hour"]),
11656
11682
  d(g, {
11657
11683
  text: "",
@@ -11665,13 +11691,13 @@ function Vn(t, e, o, i, a, r) {
11665
11691
  default: p(() => [
11666
11692
  d(u, { class: "pa-1" }, {
11667
11693
  default: p(() => [
11668
- (b(!0), M(be, null, we(a.intervalOptions, (_, T) => (b(), O(n, {
11694
+ (b(!0), M(be, null, we(a.intervalOptions, (z, T) => (b(), D(n, {
11669
11695
  key: T,
11670
- value: _,
11671
- variant: a.intervalHour === _ ? "tonal" : "text",
11696
+ value: z,
11697
+ variant: a.intervalHour === z ? "tonal" : "text",
11672
11698
  color: "primary",
11673
11699
  rounded: "",
11674
- active: a.intervalHour === _,
11700
+ active: a.intervalHour === z,
11675
11701
  height: "30",
11676
11702
  "min-height": "30",
11677
11703
  "min-width": "30",
@@ -11679,10 +11705,10 @@ function Vn(t, e, o, i, a, r) {
11679
11705
  }, {
11680
11706
  default: p(() => [
11681
11707
  d(c, {
11682
- onClick: (x) => a.intervalHour = _
11708
+ onClick: (v) => a.intervalHour = z
11683
11709
  }, {
11684
11710
  default: p(() => [
11685
- U(y(_) + "h", 1)
11711
+ U(y(z) + "h", 1)
11686
11712
  ]),
11687
11713
  _: 2
11688
11714
  }, 1032, ["onClick"])
@@ -11731,7 +11757,7 @@ function Vn(t, e, o, i, a, r) {
11731
11757
  _: 1,
11732
11758
  __: [10]
11733
11759
  }, 8, ["onClick"]),
11734
- a.paused ? (b(), O(g, {
11760
+ a.paused ? (b(), D(g, {
11735
11761
  key: 0,
11736
11762
  icon: "",
11737
11763
  size: "small",
@@ -11744,7 +11770,7 @@ function Vn(t, e, o, i, a, r) {
11744
11770
  ])),
11745
11771
  _: 1,
11746
11772
  __: [11]
11747
- }, 8, ["onClick"])) : (b(), O(g, {
11773
+ }, 8, ["onClick"])) : (b(), D(g, {
11748
11774
  key: 1,
11749
11775
  icon: "",
11750
11776
  size: "small",
@@ -11782,17 +11808,17 @@ function Vn(t, e, o, i, a, r) {
11782
11808
  text: t.$t("weather.windBarbs"),
11783
11809
  location: "top"
11784
11810
  }, {
11785
- activator: p(({ props: _ }) => {
11786
- var T, x;
11811
+ activator: p(({ props: z }) => {
11812
+ var T, v;
11787
11813
  return [
11788
- d(g, j(_, {
11814
+ d(g, j(z, {
11789
11815
  class: "pa-1 d-flex",
11790
11816
  color: (T = o.weatherCheckList) != null && T.includes("wind") ? "primary" : "",
11791
- variant: (x = o.weatherCheckList) != null && x.includes("wind") ? "elevated" : "text",
11817
+ variant: (v = o.weatherCheckList) != null && v.includes("wind") ? "elevated" : "text",
11792
11818
  height: "24",
11793
11819
  width: "24",
11794
11820
  "min-width": "24",
11795
- onClick: e[3] || (e[3] = (D) => r.handleClickFastWeather("wind"))
11821
+ onClick: e[3] || (e[3] = (R) => r.handleClickFastWeather("wind"))
11796
11822
  }), {
11797
11823
  default: p(() => e[14] || (e[14] = [
11798
11824
  l("i", { class: "iconfont icon-a-WindLevel" }, null, -1)
@@ -11808,20 +11834,20 @@ function Vn(t, e, o, i, a, r) {
11808
11834
  text: t.$t("weather.sigWaveHeight"),
11809
11835
  location: "top"
11810
11836
  }, {
11811
- activator: p(({ props: _ }) => {
11812
- var T, x;
11837
+ activator: p(({ props: z }) => {
11838
+ var T, v;
11813
11839
  return [
11814
- d(g, j(_, {
11840
+ d(g, j(z, {
11815
11841
  class: "pa-1 d-flex",
11816
11842
  color: (T = o.weatherCheckList) != null && T.includes("sig-wave-height") ? "primary" : "",
11817
- variant: (x = o.weatherCheckList) != null && x.includes("sig-wave-height") ? "elevated" : "text",
11843
+ variant: (v = o.weatherCheckList) != null && v.includes("sig-wave-height") ? "elevated" : "text",
11818
11844
  height: "24",
11819
11845
  width: "24",
11820
11846
  "min-width": "24",
11821
- onClick: e[4] || (e[4] = (D) => r.handleClickFastWeather("sig-wave-height"))
11847
+ onClick: e[4] || (e[4] = (R) => r.handleClickFastWeather("sig-wave-height"))
11822
11848
  }), {
11823
11849
  default: p(() => [
11824
- l("i", j(_, { class: "iconfont icon-a-WaveHeight" }), null, 16)
11850
+ l("i", j(z, { class: "iconfont icon-a-WaveHeight" }), null, 16)
11825
11851
  ]),
11826
11852
  _: 2
11827
11853
  }, 1040, ["color", "variant"])
@@ -11833,20 +11859,20 @@ function Vn(t, e, o, i, a, r) {
11833
11859
  text: t.$t("weather.currentDirection"),
11834
11860
  location: "top"
11835
11861
  }, {
11836
- activator: p(({ props: _ }) => {
11837
- var T, x;
11862
+ activator: p(({ props: z }) => {
11863
+ var T, v;
11838
11864
  return [
11839
- d(g, j(_, {
11865
+ d(g, j(z, {
11840
11866
  class: "pa-1 d-flex",
11841
11867
  color: (T = o.weatherCheckList) != null && T.includes("current-direction") ? "primary" : "",
11842
- variant: (x = o.weatherCheckList) != null && x.includes("current-direction") ? "elevated" : "text",
11868
+ variant: (v = o.weatherCheckList) != null && v.includes("current-direction") ? "elevated" : "text",
11843
11869
  height: "24",
11844
11870
  width: "24",
11845
11871
  "min-width": "24",
11846
- onClick: e[5] || (e[5] = (D) => r.handleClickFastWeather("current-direction"))
11872
+ onClick: e[5] || (e[5] = (R) => r.handleClickFastWeather("current-direction"))
11847
11873
  }), {
11848
11874
  default: p(() => [
11849
- l("i", j(_, { class: "iconfont icon-Current" }), null, 16)
11875
+ l("i", j(z, { class: "iconfont icon-Current" }), null, 16)
11850
11876
  ]),
11851
11877
  _: 2
11852
11878
  }, 1040, ["color", "variant"])
@@ -11858,8 +11884,8 @@ function Vn(t, e, o, i, a, r) {
11858
11884
  text: t.$t("weather.weatherLayers"),
11859
11885
  location: "top"
11860
11886
  }, {
11861
- activator: p(({ props: _ }) => [
11862
- d(g, j(_, {
11887
+ activator: p(({ props: z }) => [
11888
+ d(g, j(z, {
11863
11889
  class: "pa-1 d-flex",
11864
11890
  variant: "text",
11865
11891
  height: "24",
@@ -11868,7 +11894,7 @@ function Vn(t, e, o, i, a, r) {
11868
11894
  onClick: r.handleClickFastMore
11869
11895
  }), {
11870
11896
  default: p(() => [
11871
- l("i", j(_, { class: "iconfont icon-dots-align" }), null, 16)
11897
+ l("i", j(z, { class: "iconfont icon-dots-align" }), null, 16)
11872
11898
  ]),
11873
11899
  _: 2
11874
11900
  }, 1040, ["onClick"])
@@ -11887,7 +11913,7 @@ function Vn(t, e, o, i, a, r) {
11887
11913
  height: "30",
11888
11914
  class: "px-2 elevation-0 text-body-1 btn-border-2",
11889
11915
  color: a.source === "GFS" ? "primary" : "",
11890
- onClick: e[6] || (e[6] = (_) => a.source = "GFS")
11916
+ onClick: e[6] || (e[6] = (z) => a.source = "GFS")
11891
11917
  }, {
11892
11918
  default: p(() => e[15] || (e[15] = [
11893
11919
  U("NOAA", -1)
@@ -11900,7 +11926,7 @@ function Vn(t, e, o, i, a, r) {
11900
11926
  height: "30",
11901
11927
  class: "px-2 elevation-0 text-body-1 btn-border-2",
11902
11928
  color: a.source === "ECMWF" ? "primary" : "",
11903
- onClick: e[7] || (e[7] = (_) => a.source = "ECMWF")
11929
+ onClick: e[7] || (e[7] = (z) => a.source = "ECMWF")
11904
11930
  }, {
11905
11931
  default: p(() => e[16] || (e[16] = [
11906
11932
  U("ECMWF", -1)
@@ -11915,11 +11941,11 @@ function Vn(t, e, o, i, a, r) {
11915
11941
  style: ae({ right: a.right + "px" })
11916
11942
  }, [
11917
11943
  a.showTimezone ? (b(), M("div", Hn, [
11918
- (b(!0), M(be, null, we(a.offsets, (_) => (b(), M("div", {
11919
- key: _,
11944
+ (b(!0), M(be, null, we(a.offsets, (z) => (b(), M("div", {
11945
+ key: z,
11920
11946
  class: "item rounded text-body-2 hover-active",
11921
- onClick: (T) => a.timeZone = _
11922
- }, y(_ < 0 ? _ : "+" + _), 9, Wn))), 128))
11947
+ onClick: (T) => a.timeZone = z
11948
+ }, y(z < 0 ? z : "+" + z), 9, Wn))), 128))
11923
11949
  ])) : B("", !0),
11924
11950
  l("div", Un, [
11925
11951
  d(g, {
@@ -11928,7 +11954,7 @@ function Vn(t, e, o, i, a, r) {
11928
11954
  height: "28",
11929
11955
  class: "pa-1 text-body-1",
11930
11956
  color: "primary",
11931
- onClick: e[8] || (e[8] = (_) => a.showTimezone = !a.showTimezone)
11957
+ onClick: e[8] || (e[8] = (z) => a.showTimezone = !a.showTimezone)
11932
11958
  }, {
11933
11959
  default: p(() => [
11934
11960
  U(" UTC " + y(a.timeZone < 0 ? a.timeZone : "+" + a.timeZone), 1)
@@ -12080,7 +12106,7 @@ class Qn {
12080
12106
  se(this, "hi");
12081
12107
  se(this, "td");
12082
12108
  se(this, "windy");
12083
- var o, i, a, r, s, c, n, u, h, g, f, L, _, T, x, D, S, P, k, z, C, v, A, Z, q, X, Y, te, oe, J, le, pe, ue, ce, Q, ie, ge, me, F, de, ke, Se, Me, Ie, Ae, De, ve, H, ee, je, Ce, he, fe, W, ze, $, re, Re, E, ye, Te, Oe, Be, R, G, Ge, Ve, Ze, Pe, Ye, qe, Xe, Ke, Qe, Je, $e, 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, Mt, It, At, Dt, Rt, Ot, Bt, Et, jt, Nt, Ft, Ht, Wt, Ut, Gt, Vt, Zt, Yt, qt, Xt, Kt, Qt, Jt, so, no, co, mo, ho, po, uo, go, fo, yo, bo, wo, xo, vo, _o, ko, zo, Lo, Po, Co, To, So, Mo, Io, Ao, Do, Ro, Oo, Bo, Eo, jo, No, Fo, Ho, Wo, Uo, Go, Vo, Zo, Yo, qo, Xo, Ko, Qo, Jo, $o, 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, Ma, Ia, Aa, Da, Ra, Oa, Ba, Ea, ja, Na, Fa, Ha, Wa;
12109
+ var o, i, a, r, s, c, n, u, h, g, f, L, z, T, v, R, S, C, x, _, P, k, A, Z, q, X, Y, te, oe, J, le, pe, ue, ce, Q, ie, ge, me, F, de, ke, Se, Me, Ie, Ae, De, ve, H, ee, je, Ce, he, fe, W, ze, $, re, Re, E, ye, Te, Oe, Be, O, G, Ge, Ve, Ze, Pe, Ye, qe, Xe, Ke, Qe, Je, $e, 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, Mt, It, At, Dt, Rt, Ot, Bt, Et, jt, Nt, Ft, Ht, Wt, Ut, Gt, Vt, Zt, Yt, qt, Xt, Kt, Qt, Jt, so, no, co, mo, ho, po, uo, go, fo, yo, bo, wo, xo, vo, _o, ko, zo, Lo, Po, Co, To, So, Mo, Io, Ao, Do, Ro, Oo, Bo, Eo, jo, No, Fo, Ho, Wo, Uo, Go, Vo, Zo, Yo, qo, Xo, Ko, Qo, Jo, $o, 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, Ma, Ia, Aa, Da, Ra, Oa, Ba, Ea, ja, Na, Fa, Ha, Wa;
12084
12110
  this.i4 = {
12085
12111
  source: {
12086
12112
  type: "raster",
@@ -30662,11 +30688,11 @@ class Qn {
30662
30688
  (u = (n = this.originStyle) == null ? void 0 : n.light.layers) == null ? void 0 : u.find((m) => m.id === "ice-area-line"),
30663
30689
  (g = (h = this.originStyle) == null ? void 0 : h.light.layers) == null ? void 0 : g.find((m) => m.id === "loadlines-label"),
30664
30690
  (L = (f = this.originStyle) == null ? void 0 : f.light.layers) == null ? void 0 : L.find((m) => m.id === "loadlines-fill"),
30665
- (T = (_ = this.originStyle) == null ? void 0 : _.light.layers) == null ? void 0 : T.find((m) => m.id === "empty-layer-0"),
30666
- (D = (x = this.originStyle) == null ? void 0 : x.light.layers) == null ? void 0 : D.find((m) => m.id === "empty-layer-1"),
30667
- (P = (S = this.originStyle) == null ? void 0 : S.light.layers) == null ? void 0 : P.find((m) => m.id === "country-boundaries"),
30668
- (z = (k = this.originStyle) == null ? void 0 : k.light.layers) == null ? void 0 : z.find((m) => m.id === "water-outline"),
30669
- (v = (C = this.originStyle) == null ? void 0 : C.light.layers) == null ? void 0 : v.find((m) => m.id === "water-outline2"),
30691
+ (T = (z = this.originStyle) == null ? void 0 : z.light.layers) == null ? void 0 : T.find((m) => m.id === "empty-layer-0"),
30692
+ (R = (v = this.originStyle) == null ? void 0 : v.light.layers) == null ? void 0 : R.find((m) => m.id === "empty-layer-1"),
30693
+ (C = (S = this.originStyle) == null ? void 0 : S.light.layers) == null ? void 0 : C.find((m) => m.id === "country-boundaries"),
30694
+ (_ = (x = this.originStyle) == null ? void 0 : x.light.layers) == null ? void 0 : _.find((m) => m.id === "water-outline"),
30695
+ (k = (P = this.originStyle) == null ? void 0 : P.light.layers) == null ? void 0 : k.find((m) => m.id === "water-outline2"),
30670
30696
  (Z = (A = this.originStyle) == null ? void 0 : A.light.layers) == null ? void 0 : Z.find((m) => m.id === "empty-layer-2"),
30671
30697
  (X = (q = this.originStyle) == null ? void 0 : q.light.layers) == null ? void 0 : X.find((m) => m.id === "water-line-label"),
30672
30698
  (te = (Y = this.originStyle) == null ? void 0 : Y.light.layers) == null ? void 0 : te.find((m) => m.id === "water-point-label"),
@@ -30709,7 +30735,7 @@ class Qn {
30709
30735
  draft: !1,
30710
30736
  layers: [
30711
30737
  (Be = (Oe = this.originStyle) == null ? void 0 : Oe.dark.layers) == null ? void 0 : Be.find((m) => m.id === "land"),
30712
- (G = (R = this.originStyle) == null ? void 0 : R.dark.layers) == null ? void 0 : G.find((m) => m.id === "water"),
30738
+ (G = (O = this.originStyle) == null ? void 0 : O.dark.layers) == null ? void 0 : G.find((m) => m.id === "water"),
30713
30739
  (Ve = (Ge = this.originStyle) == null ? void 0 : Ge.dark.layers) == null ? void 0 : Ve.find((m) => m.id === "ice-area-fill"),
30714
30740
  (Pe = (Ze = this.originStyle) == null ? void 0 : Ze.dark.layers) == null ? void 0 : Pe.find((m) => m.id === "ice-area-line"),
30715
30741
  (qe = (Ye = this.originStyle) == null ? void 0 : Ye.dark.layers) == null ? void 0 : qe.find((m) => m.id === "loadlines-label"),