@idmwx/idmui-gl4 0.9.8 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,17 +1,17 @@
1
- var Ya = Object.defineProperty;
2
- var Za = (t, e, o) => e in t ? Ya(t, e, { enumerable: !0, configurable: !0, writable: !0, value: o }) : t[e] = o;
3
- var ne = (t, e, o) => (Za(t, typeof e != "symbol" ? e + "" : e, o), o);
1
+ var Za = Object.defineProperty;
2
+ var Xa = (t, e, o) => e in t ? Za(t, e, { enumerable: !0, configurable: !0, writable: !0, value: o }) : t[e] = o;
3
+ var ne = (t, e, o) => (Xa(t, typeof e != "symbol" ? e + "" : e, o), o);
4
4
  import Be from "axios";
5
5
  import { useTheme as Ee } from "vuetify";
6
- import { openBlock as b, createElementBlock as T, resolveComponent as w, withDirectives as He, createBlock as j, withCtx as u, createVNode as h, createElementVNode as l, vShow as Ge, toDisplayString as y, createTextVNode as W, normalizeStyle as ae, mergeProps as O, normalizeClass as We, Fragment as ke, renderList as Le, createCommentVNode as B, withModifiers as Xa } from "vue";
6
+ import { openBlock as b, createElementBlock as T, resolveComponent as w, withDirectives as He, createBlock as j, withCtx as u, createVNode as h, withModifiers as ao, createElementVNode as l, vShow as Ge, toDisplayString as y, createTextVNode as W, normalizeStyle as ae, mergeProps as O, normalizeClass as We, Fragment as ke, renderList as Le, createCommentVNode as B } from "vue";
7
7
  import we from "mapbox-gl";
8
- import { LngLatHelper as oe, TropicalHelper as Ga, LaneHelper as Fe } from "@idm-plugin/geo";
8
+ import { LngLatHelper as oe, TropicalHelper as Wa, LaneHelper as Fe } from "@idm-plugin/geo";
9
9
  import * as E from "@turf/turf";
10
10
  import { LayerHelper as oo, CompanyHelper as qa } from "@idm-plugin/tag-nop";
11
11
  import D from "moment";
12
12
  import Ka from "@mapbox/sphericalmercator";
13
13
  import { LayerHelper as Qa } from "@idm-plugin/tag";
14
- import { Meteo2Assist as ao } from "@idm-plugin/meteo";
14
+ import { Meteo2Assist as io } from "@idm-plugin/meteo";
15
15
  const Z = (t, e) => {
16
16
  const o = t.__vccOpts || t;
17
17
  for (const [i, a] of e)
@@ -507,7 +507,7 @@ function ci(t, e, o, i, a, r) {
507
507
  density: "compact",
508
508
  variant: "plain",
509
509
  class: "close",
510
- onClick: e[0] || (e[0] = (p) => a.showZone = !1)
510
+ onClick: e[0] || (e[0] = ao((p) => a.showZone = !1, ["stop"]))
511
511
  }, {
512
512
  default: u(() => e[1] || (e[1] = [
513
513
  l("i", { class: "iconfont icon-close opacity-70 text-h4" }, null, -1)
@@ -652,14 +652,17 @@ function yi(t, e, o, i, a, r) {
652
652
  h(n, { class: "pr-8" }, {
653
653
  default: u(() => [
654
654
  h(s, {
655
+ class: "mr-n2 close",
656
+ density: "comfortable",
655
657
  icon: "",
656
- density: "compact",
657
658
  variant: "plain",
658
- class: "mr-n2 close",
659
- onClick: e[0] || (e[0] = (f) => a.showInfo = !1)
659
+ onClick: e[0] || (e[0] = ao((f) => a.showInfo = !1, ["stop"]))
660
660
  }, {
661
661
  default: u(() => e[2] || (e[2] = [
662
- l("i", { class: "iconfont icon-close opacity-70 text-h4" }, null, -1)
662
+ l("i", {
663
+ class: "iconfont icon-close",
664
+ style: { "font-size": "20px" }
665
+ }, null, -1)
663
666
  ])),
664
667
  _: 1,
665
668
  __: [2]
@@ -710,7 +713,7 @@ function yi(t, e, o, i, a, r) {
710
713
  [Ge, a.showInfo]
711
714
  ]);
712
715
  }
713
- const bi = /* @__PURE__ */ Z(hi, [["render", yi], ["__scopeId", "data-v-6139e809"]]), wi = {
716
+ const bi = /* @__PURE__ */ Z(hi, [["render", yi], ["__scopeId", "data-v-7c98eafc"]]), wi = {
714
717
  name: "IdmLoadLine",
715
718
  props: {
716
719
  map: {
@@ -1412,10 +1415,10 @@ function qi(t, e, o, i, a, r) {
1412
1415
  density: "compact",
1413
1416
  variant: "plain",
1414
1417
  class: "mr-n2 close",
1415
- onClick: e[0] || (e[0] = (g) => a.showInfo = !1)
1418
+ onClick: e[0] || (e[0] = ao((g) => a.showInfo = !1, ["stop"]))
1416
1419
  }, {
1417
1420
  default: u(() => e[1] || (e[1] = [
1418
- l("i", { class: "iconfont icon-close opacity-70 text-h4" }, null, -1)
1421
+ l("i", { class: "iconfont icon-close text-h4" }, null, -1)
1419
1422
  ])),
1420
1423
  _: 1,
1421
1424
  __: [1]
@@ -1447,7 +1450,7 @@ function qi(t, e, o, i, a, r) {
1447
1450
  [Ge, a.showInfo]
1448
1451
  ]);
1449
1452
  }
1450
- const Ki = /* @__PURE__ */ Z(Wi, [["render", qi], ["__scopeId", "data-v-a1d66213"]]), Qi = {
1453
+ const Ki = /* @__PURE__ */ Z(Wi, [["render", qi], ["__scopeId", "data-v-205719b9"]]), Qi = {
1451
1454
  name: "IdmIceAreas",
1452
1455
  props: {
1453
1456
  map: {
@@ -1669,7 +1672,7 @@ function tr(t, e, o, i, a, r) {
1669
1672
  l("div", null, y((c = a.lngLat) == null ? void 0 : c.str), 1)
1670
1673
  ], 4);
1671
1674
  }
1672
- const Ua = /* @__PURE__ */ Z(er, [["render", tr]]);
1675
+ const Va = /* @__PURE__ */ Z(er, [["render", tr]]);
1673
1676
  const or = {
1674
1677
  name: "IdmOtherLayerr",
1675
1678
  components: {
@@ -1688,7 +1691,7 @@ const or = {
1688
1691
  IdmChinaRoute: Gi,
1689
1692
  IdmTideStations: Ki,
1690
1693
  IdmIceAreas: $i,
1691
- IdmLatLng: Ua
1694
+ IdmLatLng: Va
1692
1695
  },
1693
1696
  props: {
1694
1697
  map: {
@@ -1854,8 +1857,8 @@ const or = {
1854
1857
  })
1855
1858
  );
1856
1859
  (await Promise.all(g)).map((d) => {
1857
- var x, S, C;
1858
- const f = ((x = d == null ? void 0 : d.data) == null ? void 0 : x.data) || (d == null ? void 0 : d.data), z = (C = (S = d == null ? void 0 : d.config) == null ? void 0 : S.headers) == null ? void 0 : C.key;
1860
+ var v, S, C;
1861
+ const f = ((v = d == null ? void 0 : d.data) == null ? void 0 : v.data) || (d == null ? void 0 : d.data), z = (C = (S = d == null ? void 0 : d.config) == null ? void 0 : S.headers) == null ? void 0 : C.key;
1859
1862
  this.otherLayers[z] = f;
1860
1863
  });
1861
1864
  }
@@ -1877,8 +1880,8 @@ const or = {
1877
1880
  })
1878
1881
  );
1879
1882
  (await Promise.all(g)).map((d) => {
1880
- var x, S, C;
1881
- const f = ((x = d == null ? void 0 : d.data) == null ? void 0 : x.data) || (d == null ? void 0 : d.data), z = (C = (S = d == null ? void 0 : d.config) == null ? void 0 : S.headers) == null ? void 0 : C.key;
1883
+ var v, S, C;
1884
+ const f = ((v = d == null ? void 0 : d.data) == null ? void 0 : v.data) || (d == null ? void 0 : d.data), z = (C = (S = d == null ? void 0 : d.config) == null ? void 0 : S.headers) == null ? void 0 : C.key;
1882
1885
  this.otherLayers[z] = f;
1883
1886
  });
1884
1887
  }
@@ -1909,7 +1912,7 @@ const or = {
1909
1912
  }, pr = { class: "text-body-2 text-center pt-1" };
1910
1913
  function ur(t, e, o, i, a, r) {
1911
1914
  var $, ee, Q, se, de, pe, me, K, ie;
1912
- const s = w("VBtn"), n = w("VTooltip"), c = w("VCardTitle"), g = w("VCardItem"), p = w("VCheckbox"), d = w("VCardText"), f = w("VCard"), z = w("IdmTideStations"), x = w("IdmIceAreas"), S = w("IdmWorld12nm"), C = w("IdmWorldMarine"), N = w("IdmChinaRoute"), M = w("IdmWarZone"), L = w("IdmGmdssArea"), v = w("IdmEcaZone"), _ = w("IdmAlertZone"), P = w("IdmPort"), k = w("IdmLoadLine"), R = w("IdmTimezone"), V = w("IdmVRA"), X = w("IdmSpecialArea"), q = w("IdmTerminator"), Y = w("IdmLatLng");
1915
+ const s = w("VBtn"), n = w("VTooltip"), c = w("VCardTitle"), g = w("VCardItem"), p = w("VCheckbox"), d = w("VCardText"), f = w("VCard"), z = w("IdmTideStations"), v = w("IdmIceAreas"), S = w("IdmWorld12nm"), C = w("IdmWorldMarine"), N = w("IdmChinaRoute"), M = w("IdmWarZone"), L = w("IdmGmdssArea"), _ = w("IdmEcaZone"), k = w("IdmAlertZone"), P = w("IdmPort"), x = w("IdmLoadLine"), R = w("IdmTimezone"), V = w("IdmVRA"), X = w("IdmSpecialArea"), q = w("IdmTerminator"), Y = w("IdmLatLng");
1913
1916
  return b(), T("div", ar, [
1914
1917
  l("div", {
1915
1918
  class: "menu-bar-box transition px-1 rounded",
@@ -2145,7 +2148,7 @@ function ur(t, e, o, i, a, r) {
2145
2148
  map: o.map,
2146
2149
  show: a.checkList.includes("tidal-stations")
2147
2150
  }, t.$attrs), null, 16, ["map", "show"])) : B("", !0),
2148
- o.map ? (b(), j(x, O({
2151
+ o.map ? (b(), j(v, O({
2149
2152
  key: 1,
2150
2153
  map: o.map,
2151
2154
  show: a.checkList.includes("ice-areas")
@@ -2178,12 +2181,12 @@ function ur(t, e, o, i, a, r) {
2178
2181
  map: o.map,
2179
2182
  area: (ee = a.otherLayers) == null ? void 0 : ee["gmdss-areas"]
2180
2183
  }, t.$attrs), null, 16, ["map", "area"])) : B("", !0),
2181
- o.map ? (b(), j(v, O({
2184
+ o.map ? (b(), j(_, O({
2182
2185
  key: 7,
2183
2186
  map: o.map,
2184
2187
  zone: (Q = a.otherLayers) == null ? void 0 : Q["eca-zones"]
2185
2188
  }, t.$attrs), null, 16, ["map", "zone"])) : B("", !0),
2186
- o.map ? (b(), j(_, O({
2189
+ o.map ? (b(), j(k, O({
2187
2190
  key: 8,
2188
2191
  map: o.map,
2189
2192
  zone: (se = a.otherLayers) == null ? void 0 : se["alert-zones"]
@@ -2197,7 +2200,7 @@ function ur(t, e, o, i, a, r) {
2197
2200
  port: (de = a.otherLayers) == null ? void 0 : de.ports,
2198
2201
  "forecast-model": o.forecastModel
2199
2202
  }, t.$attrs, { "before-layer": "empty-layer-3" }), null, 16, ["map", "port", "forecast-model"])) : B("", !0),
2200
- o.map ? (b(), j(k, O({
2203
+ o.map ? (b(), j(x, O({
2201
2204
  key: 10,
2202
2205
  map: o.map,
2203
2206
  show: a.checkList.includes("load-lines")
@@ -2231,7 +2234,7 @@ function ur(t, e, o, i, a, r) {
2231
2234
  ]);
2232
2235
  }
2233
2236
  const gr = /* @__PURE__ */ Z(or, [["render", ur]]);
2234
- class io {
2237
+ class ro {
2235
2238
  constructor(e) {
2236
2239
  ne(this, "map");
2237
2240
  ne(this, "mercator");
@@ -2277,8 +2280,8 @@ class io {
2277
2280
  * @param [lb.x, lb.y, rt.x, rt.y]
2278
2281
  */
2279
2282
  getBoundPixel() {
2280
- var x, S;
2281
- const e = (x = this.map) == null ? void 0 : x.getBounds();
2283
+ var v, S;
2284
+ const e = (v = this.map) == null ? void 0 : v.getBounds();
2282
2285
  if (!e)
2283
2286
  return [];
2284
2287
  const o = ((S = this.map) == null ? void 0 : S.getZoom()) + 1, i = [e._ne.lng, e._ne.lat], a = [e._sw.lng, e._sw.lat], [r, s] = this.convertNLng(i[0]), [n, c] = this.convertNLng(a[0]), [g, p] = this.mercator.px([r, i[1]], o), [d, f] = this.mercator.px([n, a[1]], o), z = Math.round(this.mercator.size * Math.pow(2, o) * (s + c));
@@ -2466,8 +2469,8 @@ class Ne {
2466
2469
  };
2467
2470
  p.resolution && o.uniform2f(p.resolution, o.canvas.width * e.ratio, o.canvas.height * e.ratio), o.activeTexture(o.TEXTURE0), o.bindTexture(o.TEXTURE_2D, a), p.image && o.uniform1i(p.image, 0), o.activeTexture(o.TEXTURE1), o.bindTexture(o.TEXTURE_2D, r), p.color && o.uniform1i(p.color, 1), n != null && n.uvRange && (n != null && n.sRange) && (p.uvRange && o.uniform2f(p.uvRange, n.uvRange[0], n.uvRange[1]), p.sRange && o.uniform2f(p.sRange, n.sRange[0], n.sRange[1])), p.scale && o.uniform1f(p.scale, (n == null ? void 0 : n.scale) || 1);
2468
2471
  const d = e.getBoundPixel(), f = e.map.getZoom() + 1, z = e.getWorldCopy(d, f);
2469
- for (const x of z) {
2470
- const S = (x[0] - d[0]) * e.ratio, C = (x[1] - d[3]) * e.ratio, N = x[2] * e.ratio, [M, L, v, _] = [S, N + S, C, N + C], P = new Float32Array([M, v, L, v, M, _, M, _, L, v, L, _]);
2472
+ for (const v of z) {
2473
+ const S = (v[0] - d[0]) * e.ratio, C = (v[1] - d[3]) * e.ratio, N = v[2] * e.ratio, [M, L, _, k] = [S, N + S, C, N + C], P = new Float32Array([M, _, L, _, M, k, M, k, L, _, L, k]);
2471
2474
  o.bindBuffer(o.ARRAY_BUFFER, s), o.bufferData(o.ARRAY_BUFFER, P, o.STATIC_DRAW), o.drawArrays(o.TRIANGLES, 0, 6);
2472
2475
  }
2473
2476
  } catch (p) {
@@ -2892,7 +2895,7 @@ const xr = {
2892
2895
  type: Object
2893
2896
  },
2894
2897
  viewport: {
2895
- type: io
2898
+ type: ro
2896
2899
  },
2897
2900
  menuToggle: {
2898
2901
  type: Object
@@ -3239,7 +3242,7 @@ const Cr = {
3239
3242
  type: Object
3240
3243
  },
3241
3244
  viewport: {
3242
- type: io
3245
+ type: ro
3243
3246
  },
3244
3247
  menuToggle: {
3245
3248
  type: Object
@@ -5019,7 +5022,7 @@ const wl = {
5019
5022
  },
5020
5023
  map: {
5021
5024
  handler() {
5022
- this.map && (this.map.on("move", this.handleMove4Weather), this.viewport = new io(this.map), this.handleRampColorInitial(), this.handleWeatherLayerChange(), this.$emit("weatherCheckList", this.checkList));
5025
+ this.map && (this.map.on("move", this.handleMove4Weather), this.viewport = new ro(this.map), this.handleRampColorInitial(), this.handleWeatherLayerChange(), this.$emit("weatherCheckList", this.checkList));
5023
5026
  },
5024
5027
  immediate: !0
5025
5028
  },
@@ -5117,7 +5120,7 @@ const wl = {
5117
5120
  const e = (/* @__PURE__ */ new Date()).valueOf();
5118
5121
  let o = 0, i = 0;
5119
5122
  if (this.map) {
5120
- const z = ((a = this.map) == null ? void 0 : a.getZoom()) + 1, x = (r = this.map) == null ? void 0 : r.getBounds(), S = `${x._sw.lng},${x._sw.lat},${x._ne.lng},${x._ne.lat}`;
5123
+ const z = ((a = this.map) == null ? void 0 : a.getZoom()) + 1, v = (r = this.map) == null ? void 0 : r.getBounds(), S = `${v._sw.lng},${v._sw.lat},${v._ne.lng},${v._ne.lat}`;
5121
5124
  if (this.particleFactor && ((s = this.$refs.layer) != null && s.autoActive)) {
5122
5125
  const C = oo.WEATHER_LAYERS.find((N) => {
5123
5126
  var M;
@@ -5137,46 +5140,46 @@ const wl = {
5137
5140
  }
5138
5141
  );
5139
5142
  if (i = (/* @__PURE__ */ new Date()).valueOf() - (e + o), console.log("weather links elapsed: ", i, ", total: ", o += i), ((n = M == null ? void 0 : M.data) == null ? void 0 : n.code) === 0) {
5140
- const L = (c = M == null ? void 0 : M.data) == null ? void 0 : c.data, v = [];
5143
+ const L = (c = M == null ? void 0 : M.data) == null ? void 0 : c.data, _ = [];
5141
5144
  for (const P in L)
5142
- v.push(
5145
+ _.push(
5143
5146
  Be.get(L[P], {
5144
5147
  headers: {
5145
5148
  Authorization: this.token || this.defaultMeteoToken,
5146
5149
  key: P
5147
5150
  },
5148
5151
  responseType: /\.(jpg|png)$/.test(L[P]) ? "blob" : "json"
5149
- }).catch((k) => {
5150
- console.log(`[${P}] fetch layer error: ${k}`);
5152
+ }).catch((x) => {
5153
+ console.log(`[${P}] fetch layer error: ${x}`);
5151
5154
  })
5152
5155
  );
5153
- const _ = await Promise.all(v);
5154
- this.weatherLayers = {}, _.map((P) => {
5156
+ const k = await Promise.all(_);
5157
+ this.weatherLayers = {}, k.map((P) => {
5155
5158
  var V, X, q, Y;
5156
- const k = ((V = P == null ? void 0 : P.data) == null ? void 0 : V.data) || (P == null ? void 0 : P.data);
5159
+ const x = ((V = P == null ? void 0 : P.data) == null ? void 0 : V.data) || (P == null ? void 0 : P.data);
5157
5160
  let R = (q = (X = P == null ? void 0 : P.config) == null ? void 0 : X.headers) == null ? void 0 : q.key;
5158
- R && k && (this.weatherLayers[R] = {
5159
- raw: k,
5161
+ R && x && (this.weatherLayers[R] = {
5162
+ raw: x,
5160
5163
  type: ((Y = P == null ? void 0 : P.config) == null ? void 0 : Y.responseType) === "blob" ? "image" : "json",
5161
5164
  etime: M.data.etime
5162
5165
  });
5163
5166
  });
5164
5167
  }
5165
5168
  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"]) {
5166
- const L = (g = this.weatherLayers["swell-direction"]) == null ? void 0 : g.raw, v = (p = this.weatherLayers["swell-height"]) == null ? void 0 : p.raw;
5169
+ const L = (g = this.weatherLayers["swell-direction"]) == null ? void 0 : g.raw, _ = (p = this.weatherLayers["swell-height"]) == null ? void 0 : p.raw;
5167
5170
  delete this.weatherLayers["swell-direction"], delete this.weatherLayers["swell-height"], this.weatherLayers.swell = {
5168
5171
  type: "json",
5169
5172
  direction: L,
5170
- height: { raw: v },
5173
+ height: { raw: _ },
5171
5174
  etime: M.data.etime
5172
5175
  };
5173
5176
  }
5174
5177
  if (this.weatherLayers["current-direction"] || this.weatherLayers["current-speed"]) {
5175
- const L = (d = this.weatherLayers["current-direction"]) == null ? void 0 : d.raw, v = (f = this.weatherLayers["current-speed"]) == null ? void 0 : f.raw;
5178
+ const L = (d = this.weatherLayers["current-direction"]) == null ? void 0 : d.raw, _ = (f = this.weatherLayers["current-speed"]) == null ? void 0 : f.raw;
5176
5179
  delete this.weatherLayers["current-direction"], delete this.weatherLayers["current-speed"], this.weatherLayers.current = {
5177
5180
  type: "json",
5178
5181
  direction: L,
5179
- speed: { raw: v },
5182
+ speed: { raw: _ },
5180
5183
  etime: M.data.etime
5181
5184
  };
5182
5185
  }
@@ -5237,7 +5240,7 @@ const wl = {
5237
5240
  );
5238
5241
  },
5239
5242
  handleDrawWeather4Json() {
5240
- var g, p, d, f, z, x, S;
5243
+ var g, p, d, f, z, v, S;
5241
5244
  const t = (/* @__PURE__ */ new Date()).valueOf();
5242
5245
  let e = 0, o = 0;
5243
5246
  const i = (g = this.map) == null ? void 0 : g.getBounds(), a = (p = this.map) == null ? void 0 : p.getZoom(), r = oe.convertToStdLng(i._sw.lng), s = oe.convertToStdLng(i._ne.lng), n = Math.floor(i._sw.lat), c = Math.ceil(i._ne.lat);
@@ -5248,165 +5251,165 @@ const wl = {
5248
5251
  if (C === "swell") {
5249
5252
  N = !0;
5250
5253
  const L = ((d = this.weatherLayers[C]) == null ? void 0 : d.direction) || {};
5251
- for (const _ in L)
5252
- if (_ > n && _ < c && (!(a <= this.zoom) || _ % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
5253
- const P = L[_].lng;
5254
- r > s ? P.forEach((k, R) => {
5254
+ for (const k in L)
5255
+ if (k > n && k < c && (!(a <= this.zoom) || k % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
5256
+ const P = L[k].lng;
5257
+ r > s ? P.forEach((x, R) => {
5255
5258
  var V, X, q, Y, $, ee;
5256
5259
  if (a < 2) {
5257
- if ((k >= 0 && k <= 360 || k >= -360 && k <= 0) && k % 10 === 0) {
5258
- const Q = E.point([k, _], {
5259
- val: ((V = L[_].val) == null ? void 0 : V[R]) || ((X = L[_].dir) == null ? void 0 : X[R]),
5260
- spd: (q = L[_].spd) == null ? void 0 : q[R]
5260
+ if ((x >= 0 && x <= 360 || x >= -360 && x <= 0) && x % 10 === 0) {
5261
+ const Q = E.point([x, k], {
5262
+ val: ((V = L[k].val) == null ? void 0 : V[R]) || ((X = L[k].dir) == null ? void 0 : X[R]),
5263
+ spd: (q = L[k].spd) == null ? void 0 : q[R]
5261
5264
  });
5262
5265
  M.push(Q);
5263
5266
  }
5264
- } else if ((k >= r && k <= 180 || k >= -180 && k <= s) && (!(a <= this.zoom) || k % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
5265
- const Q = E.point([k, _], {
5266
- val: ((Y = L[_].val) == null ? void 0 : Y[R]) || (($ = L[_].dir) == null ? void 0 : $[R]),
5267
- spd: (ee = L[_].spd) == null ? void 0 : ee[R]
5267
+ } else if ((x >= r && x <= 180 || x >= -180 && x <= s) && (!(a <= this.zoom) || x % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
5268
+ const Q = E.point([x, k], {
5269
+ val: ((Y = L[k].val) == null ? void 0 : Y[R]) || (($ = L[k].dir) == null ? void 0 : $[R]),
5270
+ spd: (ee = L[k].spd) == null ? void 0 : ee[R]
5268
5271
  });
5269
5272
  M.push(Q);
5270
5273
  }
5271
- }) : P.forEach((k, R) => {
5274
+ }) : P.forEach((x, R) => {
5272
5275
  var V, X, q, Y, $, ee;
5273
5276
  if (r < 2) {
5274
- if ((k >= 0 && k <= 360 || k >= -360 && k <= 0) && k % 10 === 0) {
5275
- const Q = E.point([k, _], {
5276
- val: ((V = L[_].val) == null ? void 0 : V[R]) || ((X = L[_].dir) == null ? void 0 : X[R]),
5277
- spd: (q = L[_].spd) == null ? void 0 : q[R]
5277
+ if ((x >= 0 && x <= 360 || x >= -360 && x <= 0) && x % 10 === 0) {
5278
+ const Q = E.point([x, k], {
5279
+ val: ((V = L[k].val) == null ? void 0 : V[R]) || ((X = L[k].dir) == null ? void 0 : X[R]),
5280
+ spd: (q = L[k].spd) == null ? void 0 : q[R]
5278
5281
  });
5279
5282
  M.push(Q);
5280
5283
  }
5281
- } else if (k >= r && k <= s && (!(a <= this.zoom) || k % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
5282
- const Q = E.point([k, _], {
5283
- val: ((Y = L[_].val) == null ? void 0 : Y[R]) || (($ = L[_].dir) == null ? void 0 : $[R]),
5284
- spd: (ee = L[_].spd) == null ? void 0 : ee[R]
5284
+ } else if (x >= r && x <= s && (!(a <= this.zoom) || x % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
5285
+ const Q = E.point([x, k], {
5286
+ val: ((Y = L[k].val) == null ? void 0 : Y[R]) || (($ = L[k].dir) == null ? void 0 : $[R]),
5287
+ spd: (ee = L[k].spd) == null ? void 0 : ee[R]
5285
5288
  });
5286
5289
  M.push(Q);
5287
5290
  }
5288
5291
  });
5289
5292
  }
5290
5293
  o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("swell direction elapsed: ", o, ", total: ", e += o);
5291
- const v = this.weatherLayers[C].height;
5292
- if (v) {
5293
- if (!v.data) {
5294
- const _ = [];
5295
- for (const P in (f = v.raw) == null ? void 0 : f.LineString) {
5296
- const k = v.raw.LineString[P];
5297
- for (const R of k)
5298
- _.push(
5294
+ const _ = this.weatherLayers[C].height;
5295
+ if (_) {
5296
+ if (!_.data) {
5297
+ const k = [];
5298
+ for (const P in (f = _.raw) == null ? void 0 : f.LineString) {
5299
+ const x = _.raw.LineString[P];
5300
+ for (const R of x)
5301
+ k.push(
5299
5302
  E.lineString(R, {
5300
5303
  val: Number(P)
5301
5304
  })
5302
5305
  );
5303
- v.data = E.featureCollection(_);
5306
+ _.data = E.featureCollection(k);
5304
5307
  }
5305
5308
  }
5306
- if (v.data) {
5307
- const _ = this.handleBboxClip(v.data, i);
5308
- M = M.concat(_);
5309
+ if (_.data) {
5310
+ const k = this.handleBboxClip(_.data, i);
5311
+ M = M.concat(k);
5309
5312
  }
5310
5313
  o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("swell height elapsed: ", o, ", total: ", e += o);
5311
5314
  }
5312
5315
  } else if (C === "current") {
5313
5316
  N = !0;
5314
5317
  const L = ((z = this.weatherLayers[C]) == null ? void 0 : z.direction) || {};
5315
- for (const _ in L)
5316
- if (_ > n && _ < c && (!(a <= this.zoom) || _ % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
5317
- const P = L[_].lng;
5318
- r > s ? P.forEach((k, R) => {
5318
+ for (const k in L)
5319
+ if (k > n && k < c && (!(a <= this.zoom) || k % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
5320
+ const P = L[k].lng;
5321
+ r > s ? P.forEach((x, R) => {
5319
5322
  var V, X, q, Y, $, ee;
5320
5323
  if (a < 2) {
5321
- if ((k >= 0 && k <= 360 || k >= -360 && k <= 0) && k % 10 === 0) {
5322
- const Q = E.point([k, _], {
5323
- val: ((V = L[_].val) == null ? void 0 : V[R]) || ((X = L[_].dir) == null ? void 0 : X[R]),
5324
- spd: (q = L[_].spd) == null ? void 0 : q[R]
5324
+ if ((x >= 0 && x <= 360 || x >= -360 && x <= 0) && x % 10 === 0) {
5325
+ const Q = E.point([x, k], {
5326
+ val: ((V = L[k].val) == null ? void 0 : V[R]) || ((X = L[k].dir) == null ? void 0 : X[R]),
5327
+ spd: (q = L[k].spd) == null ? void 0 : q[R]
5325
5328
  });
5326
5329
  M.push(Q);
5327
5330
  }
5328
- } else if ((k >= r && k <= 180 || k >= -180 && k <= s) && (!(a <= this.zoom) || k % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
5329
- const Q = E.point([k, _], {
5330
- val: ((Y = L[_].val) == null ? void 0 : Y[R]) || (($ = L[_].dir) == null ? void 0 : $[R]),
5331
- spd: (ee = L[_].spd) == null ? void 0 : ee[R]
5331
+ } else if ((x >= r && x <= 180 || x >= -180 && x <= s) && (!(a <= this.zoom) || x % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
5332
+ const Q = E.point([x, k], {
5333
+ val: ((Y = L[k].val) == null ? void 0 : Y[R]) || (($ = L[k].dir) == null ? void 0 : $[R]),
5334
+ spd: (ee = L[k].spd) == null ? void 0 : ee[R]
5332
5335
  });
5333
5336
  M.push(Q);
5334
5337
  }
5335
- }) : P.forEach((k, R) => {
5338
+ }) : P.forEach((x, R) => {
5336
5339
  var V, X, q, Y, $, ee;
5337
5340
  if (r < 2) {
5338
- if ((k >= 0 && k <= 360 || k >= -360 && k <= 0) && k % 10 === 0) {
5339
- const Q = E.point([k, _], {
5340
- val: ((V = L[_].val) == null ? void 0 : V[R]) || ((X = L[_].dir) == null ? void 0 : X[R]),
5341
- spd: (q = L[_].spd) == null ? void 0 : q[R]
5341
+ if ((x >= 0 && x <= 360 || x >= -360 && x <= 0) && x % 10 === 0) {
5342
+ const Q = E.point([x, k], {
5343
+ val: ((V = L[k].val) == null ? void 0 : V[R]) || ((X = L[k].dir) == null ? void 0 : X[R]),
5344
+ spd: (q = L[k].spd) == null ? void 0 : q[R]
5342
5345
  });
5343
5346
  M.push(Q);
5344
5347
  }
5345
- } else if (k >= r && k <= s && (!(a <= this.zoom) || k % (a < this.zoom / 2 ? 5 : 3) === 0)) {
5346
- const Q = E.point([k, _], {
5347
- val: ((Y = L[_].val) == null ? void 0 : Y[R]) || (($ = L[_].dir) == null ? void 0 : $[R]),
5348
- spd: (ee = L[_].spd) == null ? void 0 : ee[R]
5348
+ } else if (x >= r && x <= s && (!(a <= this.zoom) || x % (a < this.zoom / 2 ? 5 : 3) === 0)) {
5349
+ const Q = E.point([x, k], {
5350
+ val: ((Y = L[k].val) == null ? void 0 : Y[R]) || (($ = L[k].dir) == null ? void 0 : $[R]),
5351
+ spd: (ee = L[k].spd) == null ? void 0 : ee[R]
5349
5352
  });
5350
5353
  M.push(Q);
5351
5354
  }
5352
5355
  });
5353
5356
  }
5354
5357
  o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("current direction elapsed: ", o, ", total: ", e += o);
5355
- const v = this.weatherLayers[C].speed;
5356
- if (v) {
5357
- if (!v.data) {
5358
+ const _ = this.weatherLayers[C].speed;
5359
+ if (_) {
5360
+ if (!_.data) {
5358
5361
  const P = [];
5359
- for (const k in (x = v.raw) == null ? void 0 : x.Polygon) {
5360
- const R = v.raw.Polygon[k];
5362
+ for (const x in (v = _.raw) == null ? void 0 : v.Polygon) {
5363
+ const R = _.raw.Polygon[x];
5361
5364
  for (const V of R)
5362
5365
  P.push(
5363
5366
  E.polygon(V, {
5364
- val: Number(k)
5367
+ val: Number(x)
5365
5368
  })
5366
5369
  );
5367
5370
  }
5368
- v.data = E.featureCollection(P);
5371
+ _.data = E.featureCollection(P);
5369
5372
  }
5370
- const _ = a < this.zoom ? v.data.features.filter((P) => P.properties.val > 0.5) : v.data.features;
5371
- M = M.concat(_), o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("current speed elapsed: ", o, ", total: ", e += o);
5373
+ const k = a < this.zoom ? _.data.features.filter((P) => P.properties.val > 0.5) : _.data.features;
5374
+ M = M.concat(k), o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("current speed elapsed: ", o, ", total: ", e += o);
5372
5375
  }
5373
5376
  } else if (C === "wind") {
5374
5377
  N = !0;
5375
5378
  const L = this.weatherLayers.wind.raw;
5376
- for (const v in L)
5377
- if (v > n && v < c && (!(a <= this.zoom) || v % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
5378
- const _ = L[v].lng;
5379
- r > s ? _.forEach((P, k) => {
5379
+ for (const _ in L)
5380
+ if (_ > n && _ < c && (!(a <= this.zoom) || _ % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
5381
+ const k = L[_].lng;
5382
+ r > s ? k.forEach((P, x) => {
5380
5383
  var R, V, X, q;
5381
5384
  if (a < 2) {
5382
5385
  if ((P >= 0 && P <= 360 || P >= -360 && P <= 0) && P % 10 === 0) {
5383
- const Y = E.point([P, v], {
5384
- dir: ((R = L[v].val) == null ? void 0 : R[k]) || ((V = L[v].dir) == null ? void 0 : V[k]),
5385
- spd: L[v].spd[k]
5386
+ const Y = E.point([P, _], {
5387
+ dir: ((R = L[_].val) == null ? void 0 : R[x]) || ((V = L[_].dir) == null ? void 0 : V[x]),
5388
+ spd: L[_].spd[x]
5386
5389
  });
5387
5390
  M.push(Y);
5388
5391
  }
5389
5392
  } else if ((P >= r && P <= 180 || P >= -180 && P <= s) && (!(a <= this.zoom) || P % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
5390
- const Y = E.point([P, v], {
5391
- dir: ((X = L[v].val) == null ? void 0 : X[k]) || ((q = L[v].dir) == null ? void 0 : q[k]),
5392
- spd: L[v].spd[k]
5393
+ const Y = E.point([P, _], {
5394
+ dir: ((X = L[_].val) == null ? void 0 : X[x]) || ((q = L[_].dir) == null ? void 0 : q[x]),
5395
+ spd: L[_].spd[x]
5393
5396
  });
5394
5397
  M.push(Y);
5395
5398
  }
5396
- }) : _.forEach((P, k) => {
5399
+ }) : k.forEach((P, x) => {
5397
5400
  var R, V, X, q;
5398
5401
  if (a < 2) {
5399
5402
  if ((P >= 0 && P <= 360 || P >= -360 && P <= 0) && P % 10 === 0) {
5400
- const Y = E.point([P, v], {
5401
- dir: ((R = L[v].val) == null ? void 0 : R[k]) || ((V = L[v].dir) == null ? void 0 : V[k]),
5402
- spd: L[v].spd[k]
5403
+ const Y = E.point([P, _], {
5404
+ dir: ((R = L[_].val) == null ? void 0 : R[x]) || ((V = L[_].dir) == null ? void 0 : V[x]),
5405
+ spd: L[_].spd[x]
5403
5406
  });
5404
5407
  M.push(Y);
5405
5408
  }
5406
5409
  } else if (P >= r && P <= s && (!(a <= this.zoom) || P % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
5407
- const Y = E.point([P, v], {
5408
- dir: ((X = L[v].val) == null ? void 0 : X[k]) || ((q = L[v].dir) == null ? void 0 : q[k]),
5409
- spd: L[v].spd[k]
5410
+ const Y = E.point([P, _], {
5411
+ dir: ((X = L[_].val) == null ? void 0 : X[x]) || ((q = L[_].dir) == null ? void 0 : q[x]),
5412
+ spd: L[_].spd[x]
5410
5413
  });
5411
5414
  M.push(Y);
5412
5415
  }
@@ -5420,35 +5423,35 @@ const wl = {
5420
5423
  N = !0;
5421
5424
  const L = this.weatherLayers[C].raw;
5422
5425
  if (L) {
5423
- const v = [];
5424
- for (const _ in L.Polygon) {
5425
- const P = L.Polygon[_];
5426
- for (const k of P)
5427
- v.push(
5428
- E.polygon(k, {
5429
- val: Number(_)
5426
+ const _ = [];
5427
+ for (const k in L.Polygon) {
5428
+ const P = L.Polygon[k];
5429
+ for (const x of P)
5430
+ _.push(
5431
+ E.polygon(x, {
5432
+ val: Number(k)
5430
5433
  })
5431
5434
  );
5432
5435
  }
5433
- for (const _ in L.MultiPolygon) {
5434
- const P = L.MultiPolygon[_];
5435
- for (const k of P)
5436
- v.push(
5437
- E.multiPolygon(k, {
5438
- val: Number(_)
5436
+ for (const k in L.MultiPolygon) {
5437
+ const P = L.MultiPolygon[k];
5438
+ for (const x of P)
5439
+ _.push(
5440
+ E.multiPolygon(x, {
5441
+ val: Number(k)
5439
5442
  })
5440
5443
  );
5441
5444
  }
5442
- for (const _ in L.Point) {
5443
- const P = L.Point[_];
5444
- for (let k = 0; k < ((S = P.lng) == null ? void 0 : S.length); k++)
5445
- v.push(
5446
- E.point([P.lng[k], _], {
5447
- val: Number(P.val[k])
5445
+ for (const k in L.Point) {
5446
+ const P = L.Point[k];
5447
+ for (let x = 0; x < ((S = P.lng) == null ? void 0 : S.length); x++)
5448
+ _.push(
5449
+ E.point([P.lng[x], k], {
5450
+ val: Number(P.val[x])
5448
5451
  })
5449
5452
  );
5450
5453
  }
5451
- M = M.concat(v);
5454
+ M = M.concat(_);
5452
5455
  }
5453
5456
  }
5454
5457
  o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("sig-wave-height elapsed: ", o, ", total: ", e += o);
@@ -5459,26 +5462,26 @@ const wl = {
5459
5462
  N = !0;
5460
5463
  const L = this.weatherLayers[C].raw;
5461
5464
  if (L) {
5462
- const v = [];
5463
- for (const _ in L.LineString) {
5464
- const P = L.LineString[_];
5465
- for (const k of P)
5466
- v.push(
5467
- E.lineString(k, {
5468
- val: Number(_)
5465
+ const _ = [];
5466
+ for (const k in L.LineString) {
5467
+ const P = L.LineString[k];
5468
+ for (const x of P)
5469
+ _.push(
5470
+ E.lineString(x, {
5471
+ val: Number(k)
5469
5472
  })
5470
5473
  );
5471
5474
  }
5472
- for (const _ in L.Point)
5473
- L.Point[_].lng.forEach((P, k) => {
5474
- P = oe.convertToStdLng(P), v.push(
5475
- E.point([P, _], {
5476
- val: L.Point[_].val[k],
5477
- type: L.Point[_].type[k]
5475
+ for (const k in L.Point)
5476
+ L.Point[k].lng.forEach((P, x) => {
5477
+ P = oe.convertToStdLng(P), _.push(
5478
+ E.point([P, k], {
5479
+ val: L.Point[k].val[x],
5480
+ type: L.Point[k].type[x]
5478
5481
  })
5479
5482
  );
5480
5483
  });
5481
- M = M.concat(v);
5484
+ M = M.concat(_);
5482
5485
  }
5483
5486
  }
5484
5487
  o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("prmsl elapsed: ", o, ", total: ", e += o);
@@ -5526,7 +5529,7 @@ const wl = {
5526
5529
  }, Ol = { class: "text-body-1 py-2" }, Bl = { class: "text-body-1 font-weight-medium" }, El = { class: "text-body-2 opacity-70" }, jl = { class: "text-body-2 opacity-70 mb-3" }, Nl = { class: "text-body-1 font-weight-medium" }, Fl = { class: "text-body-2 opacity-70" }, Hl = { class: "text-body-2 opacity-70 mb-3" }, Gl = { class: "text-body-1 py-2" }, Wl = { class: "text-body-1 font-weight-medium" }, Ul = { class: "text-body-2 opacity-70" }, Vl = { class: "text-body-2 opacity-70 mb-3" }, Yl = { class: "text-body-1 font-weight-medium" }, Zl = { class: "text-body-2 opacity-70" }, Xl = { class: "text-body-2 opacity-70 mb-3" }, ql = { class: "text-body-1 py-2" }, Kl = { class: "text-body-1 font-weight-medium" }, Ql = { class: "text-body-2 opacity-70" }, Jl = { class: "text-body-2 opacity-70 mb-3" };
5527
5530
  function $l(t, e, o, i, a, r) {
5528
5531
  var pe, me, K, ie, F, le, fe, xe, ve, Se, Me, Te, Re, Ie, ye;
5529
- const s = w("VBtn"), n = w("VTooltip"), c = w("VCol"), g = w("VRow"), p = w("VCardText"), d = w("VDivider"), f = w("VCard"), z = w("VSwitch"), x = w("VCardTitle"), S = w("VCardItem"), C = w("VCheckbox"), N = w("VRadio"), M = w("VBtnToggle"), L = w("IdmWindBarb"), v = w("IdmSigWaveHeight"), _ = w("IdmCurrentDirection"), P = w("IdmPrmsl"), k = w("IdmWindParticle"), R = w("IdmCurrentParticle"), V = w("IdmWave"), X = w("IdmSwell"), q = w("IdmIceEdge"), Y = w("IdmIceCover"), $ = w("IdmIceThickness"), ee = w("IdmPrecip3h"), Q = w("IdmVisibility"), se = w("IdmWaterTemp"), de = w("IdmTemp");
5532
+ const s = w("VBtn"), n = w("VTooltip"), c = w("VCol"), g = w("VRow"), p = w("VCardText"), d = w("VDivider"), f = w("VCard"), z = w("VSwitch"), v = w("VCardTitle"), S = w("VCardItem"), C = w("VCheckbox"), N = w("VRadio"), M = w("VBtnToggle"), L = w("IdmWindBarb"), _ = w("IdmSigWaveHeight"), k = w("IdmCurrentDirection"), P = w("IdmPrmsl"), x = w("IdmWindParticle"), R = w("IdmCurrentParticle"), V = w("IdmWave"), X = w("IdmSwell"), q = w("IdmIceEdge"), Y = w("IdmIceCover"), $ = w("IdmIceThickness"), ee = w("IdmPrecip3h"), Q = w("IdmVisibility"), se = w("IdmWaterTemp"), de = w("IdmTemp");
5530
5533
  return b(), T("div", xl, [
5531
5534
  l("div", {
5532
5535
  class: "menu-bar-box transition pa-1",
@@ -5727,7 +5730,7 @@ function $l(t, e, o, i, a, r) {
5727
5730
  default: u(() => [
5728
5731
  h(S, { class: "border-b-thin" }, {
5729
5732
  default: u(() => [
5730
- h(x, {
5733
+ h(v, {
5731
5734
  class: "text-subtitle-1 font-weight-medium",
5732
5735
  style: { "font-size": "16px !important" }
5733
5736
  }, {
@@ -5767,7 +5770,7 @@ function $l(t, e, o, i, a, r) {
5767
5770
  default: u(() => [
5768
5771
  h(S, { class: "border-b-thin" }, {
5769
5772
  default: u(() => [
5770
- h(x, {
5773
+ h(v, {
5771
5774
  class: "text-subtitle-1 font-weight-medium",
5772
5775
  style: { "font-size": "16px !important" }
5773
5776
  }, {
@@ -5882,7 +5885,7 @@ function $l(t, e, o, i, a, r) {
5882
5885
  default: u(() => [
5883
5886
  h(S, { class: "border-b-thin" }, {
5884
5887
  default: u(() => [
5885
- h(x, {
5888
+ h(v, {
5886
5889
  class: "text-subtitle-1 font-weight-medium",
5887
5890
  style: { "font-size": "16px !important" }
5888
5891
  }, {
@@ -5936,7 +5939,7 @@ function $l(t, e, o, i, a, r) {
5936
5939
  wind: (pe = a.weatherLayers) == null ? void 0 : pe.wind,
5937
5940
  "menu-toggle": o.menuToggle
5938
5941
  }, t.$attrs), null, 16, ["map", "map-feather", "wind", "menu-toggle"])) : B("", !0),
5939
- o.map ? (b(), j(v, O({
5942
+ o.map ? (b(), j(_, O({
5940
5943
  key: 2,
5941
5944
  map: o.map,
5942
5945
  "before-layer": "empty-layer-2",
@@ -5944,7 +5947,7 @@ function $l(t, e, o, i, a, r) {
5944
5947
  "menu-toggle": o.menuToggle,
5945
5948
  "active-weather-layers": a.activeWeatherLayers
5946
5949
  }, t.$attrs), null, 16, ["map", "sig-wave-height", "menu-toggle", "active-weather-layers"])) : B("", !0),
5947
- o.map ? (b(), j(_, O({
5950
+ o.map ? (b(), j(k, O({
5948
5951
  key: 3,
5949
5952
  map: o.map,
5950
5953
  "map-feather": o.mapFeather,
@@ -5960,7 +5963,7 @@ function $l(t, e, o, i, a, r) {
5960
5963
  "menu-toggle": o.menuToggle,
5961
5964
  "active-weather-layers": a.activeWeatherLayers
5962
5965
  }, t.$attrs, { theme: o.theme }), null, 16, ["map", "prmsl", "menu-toggle", "active-weather-layers", "theme"])) : B("", !0),
5963
- o.map ? (b(), j(k, O({
5966
+ o.map ? (b(), j(x, O({
5964
5967
  key: 5,
5965
5968
  viewport: a.viewport,
5966
5969
  factor: (F = a.weatherLayers) == null ? void 0 : F["wind-particle"],
@@ -6307,7 +6310,7 @@ const es = /* @__PURE__ */ Z(wl, [["render", $l]]), eo = [
6307
6310
  variables: "swell_wave_direction,swell_wave_height,swell_wave_period,swell_wave_peak_period,wave_direction,wave_height,wave_period,wind_wave_direction,wind_wave_height,wind_wave_period,wind_wave_peak_period"
6308
6311
  }
6309
6312
  ];
6310
- class Wa {
6313
+ class Ua {
6311
6314
  static standardWeatherModels() {
6312
6315
  return eo.filter((e) => !e.disabled && e.alias);
6313
6316
  }
@@ -6376,7 +6379,7 @@ class Wa {
6376
6379
  }), a;
6377
6380
  }
6378
6381
  static pickHourly(e, o) {
6379
- var i, a, r, s, n, c, g, p, d, f, z, x, S, C, N, M, L, v, _, P, k, R, V, X, q, Y, $, ee, Q, se, de, pe, me, K, ie, F, le, fe, xe, ve, Se, Me, Te, Re, Ie, ye, H, te, je, Pe;
6382
+ var i, a, r, s, n, c, g, p, d, f, z, v, S, C, N, M, L, _, k, P, x, R, V, X, q, Y, $, ee, Q, se, de, pe, me, K, ie, F, le, fe, xe, ve, Se, Me, Te, Re, Ie, ye, H, te, je, Pe;
6380
6383
  const he = typeof o == "string" ? D(o) : o, ue = e == null ? void 0 : e.weather, G = e == null ? void 0 : e.marine, _e = D((a = (i = ue == null ? void 0 : ue[0]) == null ? void 0 : i.hourly) == null ? void 0 : a.date).utc(), J = _e.clone().add((n = (s = (r = ue == null ? void 0 : ue[0]) == null ? void 0 : r.hourly) == null ? void 0 : s.time) == null ? void 0 : n.at(0), "h"), re = _e.clone().add((p = (g = (c = ue == null ? void 0 : ue[0]) == null ? void 0 : c.hourly) == null ? void 0 : g.time) == null ? void 0 : p.at(-1), "h"), Ae = [];
6381
6384
  if (he.isBetween(J, re, "millisecond", "[]")) {
6382
6385
  const A = he.utc().diff(J, "h", !1);
@@ -6391,7 +6394,7 @@ class Wa {
6391
6394
  Oe += (f = U == null ? void 0 : U.precipitation) == null ? void 0 : f.at(ze);
6392
6395
  ge = {
6393
6396
  temp: (z = U == null ? void 0 : U.temperature_2m) == null ? void 0 : z.at(A),
6394
- apparentTemp: (x = U == null ? void 0 : U.apparent_temperature) == null ? void 0 : x.at(A),
6397
+ apparentTemp: (v = U == null ? void 0 : U.apparent_temperature) == null ? void 0 : v.at(A),
6395
6398
  rh: (S = U == null ? void 0 : U.relative_humidity_2m) == null ? void 0 : S.at(A),
6396
6399
  dp: (C = U == null ? void 0 : U.dew_point_2m) == null ? void 0 : C.at(A),
6397
6400
  precip: {
@@ -6401,11 +6404,11 @@ class Wa {
6401
6404
  sum6Hours: Math.round(Oe * 100) / 100
6402
6405
  },
6403
6406
  pmsl: (L = U == null ? void 0 : U.pressure_msl) == null ? void 0 : L.at(A),
6404
- psurf: (v = U == null ? void 0 : U.surface_pressure) == null ? void 0 : v.at(A),
6405
- code: (_ = U == null ? void 0 : U.weather_code) == null ? void 0 : _.at(A),
6407
+ psurf: (_ = U == null ? void 0 : U.surface_pressure) == null ? void 0 : _.at(A),
6408
+ code: (k = U == null ? void 0 : U.weather_code) == null ? void 0 : k.at(A),
6406
6409
  visibility: this.m2nm((P = U == null ? void 0 : U.visibility) == null ? void 0 : P.at(A)),
6407
6410
  wind: {
6408
- speed: (k = U == null ? void 0 : U.wind_speed_10m) == null ? void 0 : k.at(A),
6411
+ speed: (x = U == null ? void 0 : U.wind_speed_10m) == null ? void 0 : x.at(A),
6409
6412
  kts: (R = U == null ? void 0 : U.wind_speed_10m) == null ? void 0 : R.at(A),
6410
6413
  degree: (V = U == null ? void 0 : U.wind_direction_10m) == null ? void 0 : V.at(A),
6411
6414
  bearing: ((X = U == null ? void 0 : U.wind_direction_10m) == null ? void 0 : X.at(A)) !== null ? (((q = U == null ? void 0 : U.wind_direction_10m) == null ? void 0 : q.at(A)) + 180) % 360 : null,
@@ -6485,7 +6488,7 @@ class Wa {
6485
6488
  };
6486
6489
  }
6487
6490
  static pickDaily(e, o) {
6488
- var i, a, r, s, n, c, g, p, d, f, z, x, S, C, N, M, L, v, _, P, k, R, V, X, q, Y, $, ee, Q, se, de, pe, me, K, ie, F, le, fe, xe, ve, Se, Me, Te, Re;
6491
+ var i, a, r, s, n, c, g, p, d, f, z, v, S, C, N, M, L, _, k, P, x, R, V, X, q, Y, $, ee, Q, se, de, pe, me, K, ie, F, le, fe, xe, ve, Se, Me, Te, Re;
6489
6492
  const Ie = typeof o == "string" ? D(o) : o, ye = e == null ? void 0 : e.weather, H = e == null ? void 0 : e.marine, te = D((r = (a = (i = ye == null ? void 0 : ye[0]) == null ? void 0 : i.daily) == null ? void 0 : a.time) == null ? void 0 : r.at(0)), je = D((c = (n = (s = ye == null ? void 0 : ye[0]) == null ? void 0 : s.daily) == null ? void 0 : n.time) == null ? void 0 : c.at(-1)), Pe = [];
6490
6493
  if (Ie.isBetween(te, je, "millisecond", "[]")) {
6491
6494
  let he, ue;
@@ -6502,7 +6505,7 @@ class Wa {
6502
6505
  },
6503
6506
  apparentTemp: {
6504
6507
  max: (z = J.apparent_temperature_max) == null ? void 0 : z.at(G),
6505
- min: (x = J.apparent_temperature_min) == null ? void 0 : x.at(G)
6508
+ min: (v = J.apparent_temperature_min) == null ? void 0 : v.at(G)
6506
6509
  },
6507
6510
  precip: {
6508
6511
  sum: (S = J.precipitation_sum) == null ? void 0 : S.at(G),
@@ -6510,12 +6513,12 @@ class Wa {
6510
6513
  snowfallSum: (N = J.snowfall_sum) == null ? void 0 : N.at(G),
6511
6514
  showersSum: (M = J.showers_sum) == null ? void 0 : M.at(G),
6512
6515
  hours: (L = J.precipitation_hours) == null ? void 0 : L.at(G),
6513
- probability: (v = J.precipitation_probability_max) == null ? void 0 : v.at(G)
6516
+ probability: (_ = J.precipitation_probability_max) == null ? void 0 : _.at(G)
6514
6517
  },
6515
6518
  rh: {
6516
- max: (_ = J.relative_humidity_2m_max) == null ? void 0 : _.at(G),
6519
+ max: (k = J.relative_humidity_2m_max) == null ? void 0 : k.at(G),
6517
6520
  min: (P = J.relative_humidity_2m_min) == null ? void 0 : P.at(G),
6518
- mean: (k = J.relative_humidity_2m_mean) == null ? void 0 : k.at(G)
6521
+ mean: (x = J.relative_humidity_2m_mean) == null ? void 0 : x.at(G)
6519
6522
  },
6520
6523
  wind: {
6521
6524
  speed: (R = J.wind_speed_10m_max) == null ? void 0 : R.at(G),
@@ -7056,8 +7059,8 @@ const ts = {
7056
7059
  },
7057
7060
  computeBF() {
7058
7061
  return function(t) {
7059
- const e = Wa.kts2ms(t);
7060
- return Wa.beaufort(e);
7062
+ const e = Ua.kts2ms(t);
7063
+ return Ua.beaufort(e);
7061
7064
  };
7062
7065
  },
7063
7066
  computeMovement() {
@@ -7125,9 +7128,9 @@ const ts = {
7125
7128
  },
7126
7129
  responseType: /\.(jpg|png)$/.test(g.tropicals) ? "blob" : "json"
7127
7130
  }).then((p) => {
7128
- var z, x, S;
7129
- const d = Ga.convert2Geojson(((z = p == null ? void 0 : p.data) == null ? void 0 : z.data) || (p == null ? void 0 : p.data));
7130
- ((S = (x = p == null ? void 0 : p.config) == null ? void 0 : x.headers) == null ? void 0 : S.key) && d && (this.tropicals = {
7131
+ var z, v, S;
7132
+ const d = Wa.convert2Geojson(((z = p == null ? void 0 : p.data) == null ? void 0 : z.data) || (p == null ? void 0 : p.data));
7133
+ ((S = (v = p == null ? void 0 : p.config) == null ? void 0 : v.headers) == null ? void 0 : S.key) && d && (this.tropicals = {
7131
7134
  data: d,
7132
7135
  active: !0,
7133
7136
  cached: !0,
@@ -7392,7 +7395,7 @@ const ts = {
7392
7395
  }), z = (/* @__PURE__ */ new Date()).valueOf() - (d + f), console.log("[tropical] add elapsed: ", z, ", total: ", f += z));
7393
7396
  }
7394
7397
  this.handleDrawCircle();
7395
- const p = Ga.interpolate(this.tropicals, 1);
7398
+ const p = Wa.interpolate(this.tropicals, 1);
7396
7399
  this.interpolateData = JSON.parse(JSON.stringify(p)), this.handleDateChange();
7397
7400
  }
7398
7401
  },
@@ -7414,7 +7417,7 @@ const ts = {
7414
7417
  ), this.showTropicalsInfo = !1;
7415
7418
  },
7416
7419
  handleDateChange() {
7417
- var t, e, o, i, a, r, s, n, c, g, p, d, f, z, x, S, C, N, M, L, v, _, P, k, R, V, X, q, Y, $, ee, Q;
7420
+ var t, e, o, i, a, r, s, n, c, g, p, d, f, z, v, S, C, N, M, L, _, k, P, x, R, V, X, q, Y, $, ee, Q;
7418
7421
  if ((t = this.interpolateMarkers) == null || t.forEach((se) => se == null ? void 0 : se.remove()), this.circleSourceData.features = [], (e = this.interpolateData) != null && e.length && this.tropicals.active) {
7419
7422
  const se = D(this.realTime).utc().set({ minute: 0, second: 0, millisecond: 0 }), de = this.interpolateData.filter((K) => K.properties.date === (se == null ? void 0 : se.format()) && !K.properties.disabled), pe = this.handleComputePolygons(de), me = E.featureCollection([...de]);
7420
7423
  pe.forEach((K) => {
@@ -7436,7 +7439,7 @@ const ts = {
7436
7439
  for (const K of de)
7437
7440
  if (!K.properties.disabled) {
7438
7441
  let ie = "#f44336";
7439
- ((n = (s = K.properties) == null ? void 0 : s.wind) == null ? void 0 : n.kts) < 32 || !((g = (c = K.properties) == null ? void 0 : c.wind) != null && g.kts) ? ie = "#03f869" : ((d = (p = K.properties) == null ? void 0 : p.wind) == null ? void 0 : d.kts) >= 32 && ((z = (f = K.properties) == null ? void 0 : f.wind) == null ? void 0 : z.kts) < 47 ? ie = "#f2f202" : ((S = (x = K.properties) == null ? void 0 : x.wind) == null ? void 0 : S.kts) >= 47 && ((N = (C = K.properties) == null ? void 0 : C.wind) == null ? void 0 : N.kts) < 63 ? ie = "#ff9100" : ((L = (M = K.properties) == null ? void 0 : M.wind) == null ? void 0 : L.kts) >= 63 && ((_ = (v = K.properties) == null ? void 0 : v.wind) == null ? void 0 : _.kts) < 79 ? ie = "#f44336" : ((k = (P = K.properties) == null ? void 0 : P.wind) == null ? void 0 : k.kts) >= 79 && ((V = (R = K.properties) == null ? void 0 : R.wind) == null ? void 0 : V.kts) < 94 ? ie = "#f903d0" : ((q = (X = K.properties) == null ? void 0 : X.wind) == null ? void 0 : q.kts) >= 94 ? ie = "#8702f9" : ie = "#f44336";
7442
+ ((n = (s = K.properties) == null ? void 0 : s.wind) == null ? void 0 : n.kts) < 32 || !((g = (c = K.properties) == null ? void 0 : c.wind) != null && g.kts) ? ie = "#03f869" : ((d = (p = K.properties) == null ? void 0 : p.wind) == null ? void 0 : d.kts) >= 32 && ((z = (f = K.properties) == null ? void 0 : f.wind) == null ? void 0 : z.kts) < 47 ? ie = "#f2f202" : ((S = (v = K.properties) == null ? void 0 : v.wind) == null ? void 0 : S.kts) >= 47 && ((N = (C = K.properties) == null ? void 0 : C.wind) == null ? void 0 : N.kts) < 63 ? ie = "#ff9100" : ((L = (M = K.properties) == null ? void 0 : M.wind) == null ? void 0 : L.kts) >= 63 && ((k = (_ = K.properties) == null ? void 0 : _.wind) == null ? void 0 : k.kts) < 79 ? ie = "#f44336" : ((x = (P = K.properties) == null ? void 0 : P.wind) == null ? void 0 : x.kts) >= 79 && ((V = (R = K.properties) == null ? void 0 : R.wind) == null ? void 0 : V.kts) < 94 ? ie = "#f903d0" : ((q = (X = K.properties) == null ? void 0 : X.wind) == null ? void 0 : q.kts) >= 94 ? ie = "#8702f9" : ie = "#f44336";
7440
7443
  const F = `<svg t="1719918955501"
7441
7444
  class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" p-id="18382"
7442
7445
  xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200">
@@ -7463,13 +7466,13 @@ const ts = {
7463
7466
  var r, s, n, c, g, p, d, f;
7464
7467
  const e = t.features[0], o = (s = (r = this.tropicals) == null ? void 0 : r.data) == null ? void 0 : s.features.filter(
7465
7468
  (z) => {
7466
- var x;
7467
- return z.geometry.type === "LineString" && z.properties.type === "forecast" && z.properties.name === ((x = e == null ? void 0 : e.properties) == null ? void 0 : x.name);
7469
+ var v;
7470
+ return z.geometry.type === "LineString" && z.properties.type === "forecast" && z.properties.name === ((v = e == null ? void 0 : e.properties) == null ? void 0 : v.name);
7468
7471
  }
7469
7472
  ), i = (c = (n = this.tropicals) == null ? void 0 : n.data) == null ? void 0 : c.features.filter(
7470
7473
  (z) => {
7471
- var x;
7472
- return z.geometry.type === "LineString" && z.properties.type === "history" && z.properties.name === ((x = e == null ? void 0 : e.properties) == null ? void 0 : x.name);
7474
+ var v;
7475
+ return z.geometry.type === "LineString" && z.properties.type === "history" && z.properties.name === ((v = e == null ? void 0 : e.properties) == null ? void 0 : v.name);
7473
7476
  }
7474
7477
  );
7475
7478
  this.activeTropicals = {
@@ -7614,11 +7617,11 @@ function xs(t, e, o, i, a, r) {
7614
7617
  default: u(() => [
7615
7618
  h(c, null, {
7616
7619
  default: u(() => {
7617
- var f, z, x, S, C, N, M, L, v, _;
7620
+ var f, z, v, S, C, N, M, L, _, k;
7618
7621
  return [
7619
7622
  l("div", is, [
7620
7623
  l("span", rs, y((f = a.activeTropicals) == null ? void 0 : f.name), 1),
7621
- (x = (z = a.activeTropicals) == null ? void 0 : z.history) != null && x.level ? (b(), T("span", ls, ", " + y((C = (S = a.activeTropicals) == null ? void 0 : S.history) == null ? void 0 : C.level), 1)) : B("", !0)
7624
+ (v = (z = a.activeTropicals) == null ? void 0 : z.history) != null && v.level ? (b(), T("span", ls, ", " + y((C = (S = a.activeTropicals) == null ? void 0 : S.history) == null ? void 0 : C.level), 1)) : B("", !0)
7622
7625
  ]),
7623
7626
  h(s, {
7624
7627
  icon: "",
@@ -7635,7 +7638,7 @@ function xs(t, e, o, i, a, r) {
7635
7638
  }),
7636
7639
  l("div", ss, [
7637
7640
  e[6] || (e[6] = l("span", { class: "opacity-70" }, "Last update: ", -1)),
7638
- l("span", null, y(r.computeTime(((M = (N = a.activeTropicals) == null ? void 0 : N.history) == null ? void 0 : M.updated) || ((_ = (v = (L = a.activeTropicals) == null ? void 0 : L.forecasts) == null ? void 0 : v.filter((P) => !P.disabled)[0]) == null ? void 0 : _.date))), 1)
7641
+ l("span", null, y(r.computeTime(((M = (N = a.activeTropicals) == null ? void 0 : N.history) == null ? void 0 : M.updated) || ((k = (_ = (L = a.activeTropicals) == null ? void 0 : L.forecasts) == null ? void 0 : _.filter((P) => !P.disabled)[0]) == null ? void 0 : k.date))), 1)
7639
7642
  ])
7640
7643
  ];
7641
7644
  }),
@@ -7644,13 +7647,13 @@ function xs(t, e, o, i, a, r) {
7644
7647
  h(g),
7645
7648
  h(c, { class: "text-body-1" }, {
7646
7649
  default: u(() => {
7647
- var f, z, x, S, C, N, M, L, v;
7650
+ var f, z, v, S, C, N, M, L, _;
7648
7651
  return [
7649
7652
  l("div", ns, [
7650
7653
  l("div", cs, [
7651
7654
  e[7] || (e[7] = l("label", { class: "opacity-70 pr-1" }, "Wind speed : ", -1)),
7652
7655
  l("span", null, y(((z = (f = a.activeTropicals) == null ? void 0 : f.history) == null ? void 0 : z.kts) || "-") + " kts", 1),
7653
- l("span", null, ", BF " + y(r.computeBF(((S = (x = a.activeTropicals) == null ? void 0 : x.history) == null ? void 0 : S.kts) || "-")), 1)
7656
+ l("span", null, ", BF " + y(r.computeBF(((S = (v = a.activeTropicals) == null ? void 0 : v.history) == null ? void 0 : S.kts) || "-")), 1)
7654
7657
  ]),
7655
7658
  l("div", ms, [
7656
7659
  e[8] || (e[8] = l("label", { class: "opacity-70 pr-1" }, "Pressure : ", -1)),
@@ -7673,16 +7676,16 @@ function xs(t, e, o, i, a, r) {
7673
7676
  style: { width: "max-content" }
7674
7677
  }, "Forecast Models : ", -1)),
7675
7678
  l("div", gs, [
7676
- (b(!0), T(ke, null, Le((v = a.activeTropicals) == null ? void 0 : v.forecasts, (_, P) => (b(), j(s, {
7679
+ (b(!0), T(ke, null, Le((_ = a.activeTropicals) == null ? void 0 : _.forecasts, (k, P) => (b(), j(s, {
7677
7680
  key: P,
7678
7681
  density: "compact",
7679
- variant: _.disabled ? "outlined" : "flat",
7680
- color: _.disabled ? "" : "primary",
7681
- class: We(["model text-none text-body-1", _.disabled ? "" : "btn-border-2"]),
7682
- onClick: (k) => r.handleForecastToggle(_)
7682
+ variant: k.disabled ? "outlined" : "flat",
7683
+ color: k.disabled ? "" : "primary",
7684
+ class: We(["model text-none text-body-1", k.disabled ? "" : "btn-border-2"]),
7685
+ onClick: (x) => r.handleForecastToggle(k)
7683
7686
  }, {
7684
7687
  default: u(() => [
7685
- W(y(_.model), 1)
7688
+ W(y(k.model), 1)
7686
7689
  ]),
7687
7690
  _: 2
7688
7691
  }, 1032, ["variant", "color", "class", "onClick"]))), 128))
@@ -7816,7 +7819,7 @@ function xs(t, e, o, i, a, r) {
7816
7819
  ])
7817
7820
  ]);
7818
7821
  }
7819
- const Va = /* @__PURE__ */ Z(ts, [["render", xs]]);
7822
+ const Ya = /* @__PURE__ */ Z(ts, [["render", xs]]);
7820
7823
  const vs = {
7821
7824
  name: "DateTimePicker",
7822
7825
  props: {
@@ -7969,7 +7972,7 @@ const vs = {
7969
7972
  style: { height: "56px" }
7970
7973
  };
7971
7974
  function Ps(t, e, o, i, a, r) {
7972
- const s = w("VBtn"), n = w("VDatePicker"), c = w("VDivider"), g = w("VListItemTitle"), p = w("VListItem"), d = w("VList"), f = w("VCardText"), z = w("VCardActions"), x = w("VCard");
7975
+ const s = w("VBtn"), n = w("VDatePicker"), c = w("VDivider"), g = w("VListItemTitle"), p = w("VListItem"), d = w("VList"), f = w("VCardText"), z = w("VCardActions"), v = w("VCard");
7973
7976
  return b(), T("div", _s, [
7974
7977
  h(s, {
7975
7978
  text: "",
@@ -7982,7 +7985,7 @@ function Ps(t, e, o, i, a, r) {
7982
7985
  ]),
7983
7986
  _: 1
7984
7987
  }, 8, ["onClick"]),
7985
- a.showDatePicker ? (b(), j(x, {
7988
+ a.showDatePicker ? (b(), j(v, {
7986
7989
  key: 0,
7987
7990
  class: "card-box d-flex flex-column"
7988
7991
  }, {
@@ -8080,11 +8083,11 @@ function Ps(t, e, o, i, a, r) {
8080
8083
  })) : B("", !0)
8081
8084
  ]);
8082
8085
  }
8083
- const ro = /* @__PURE__ */ Z(vs, [["render", Ps]]);
8086
+ const lo = /* @__PURE__ */ Z(vs, [["render", Ps]]);
8084
8087
  const Cs = {
8085
8088
  name: "IdmPoint",
8086
8089
  components: {
8087
- DateTimePicker: ro
8090
+ DateTimePicker: lo
8088
8091
  },
8089
8092
  props: {
8090
8093
  isLogin: {
@@ -8218,7 +8221,7 @@ const Cs = {
8218
8221
  },
8219
8222
  toggle: {
8220
8223
  handler() {
8221
- this.showForm = !!this.toggle, this.handleBind();
8224
+ this.showForm = !!this.toggle, this.map && this.handleBind();
8222
8225
  },
8223
8226
  immediate: !0
8224
8227
  },
@@ -8252,18 +8255,17 @@ const Cs = {
8252
8255
  }
8253
8256
  },
8254
8257
  mounted() {
8255
- console.log(this.form.dateTime);
8256
8258
  },
8257
8259
  methods: {
8258
8260
  handleMenuToggle() {
8259
8261
  this.isLogin ? this.toggle = !this.toggle : this.$emit("login");
8260
8262
  },
8261
- clickForm() {
8263
+ submitForm() {
8262
8264
  var t;
8263
8265
  this.showMeteo = !1, (t = this.meteoMarker) == null || t.remove(), this.meteoMarker = void 0, this.$refs.spotForm.validate().then(async (e) => {
8264
8266
  var o;
8265
8267
  if (e != null && e.valid) {
8266
- this.form.lat = (Number(this.form.latDegree ?? 0) + Number(this.form.latMinute ?? 0) / 60) * (this.form.latDirection === "N" ? 1 : -1), this.form.lng = (Number(this.form.lngDegree ?? 0) + Number(this.form.lngMinute ?? 0) / 60) * (this.form.lngDirection === "E" ? 1 : -1), this.point = {
8268
+ this.showMeteo = !0, this.form.lat = (Number(this.form.latDegree ?? 0) + Number(this.form.latMinute ?? 0) / 60) * (this.form.latDirection === "N" ? 1 : -1), this.form.lng = (Number(this.form.lngDegree ?? 0) + Number(this.form.lngMinute ?? 0) / 60) * (this.form.lngDirection === "E" ? 1 : -1), this.point = {
8267
8269
  lat: this.form.lat,
8268
8270
  lng: this.form.lng
8269
8271
  };
@@ -8292,8 +8294,8 @@ const Cs = {
8292
8294
  this.showForm = !1, this.cancelForm(), !this.showForm && !this.showMeteo && (this.toggle = !1), (t = this.positionMarker) == null || t.remove(), this.positionMarker = void 0;
8293
8295
  },
8294
8296
  async fetchMeteoData(t) {
8295
- this.loading = !0, this.meteoData = [];
8296
- const { weatherModels: e, marineModels: o } = ao.autoPickMeteoModel(t.forecastModel);
8297
+ this.loading = !0, this.handleRender([t.lng, t.lat]), this.meteoData = [];
8298
+ const { weatherModels: e, marineModels: o } = io.autoPickMeteoModel(t.forecastModel);
8297
8299
  let i = {
8298
8300
  lat: t.lat,
8299
8301
  lng: t.lng,
@@ -8306,11 +8308,11 @@ const Cs = {
8306
8308
  Authorization: this.token || this.defaultMeteoToken
8307
8309
  }
8308
8310
  });
8309
- (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.handleRender([t.lng, t.lat])), this.loading = !1;
8311
+ (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;
8310
8312
  },
8311
8313
  async fetchHistoryData(t) {
8312
- this.loading = !0, this.meteoData = [];
8313
- const { weatherModels: e, marineModels: o } = ao.autoPickMeteoModel(t.forecastModel), i = {
8314
+ this.loading = !0, this.handleRender([t.lng, t.lat]), this.meteoData = [];
8315
+ const { weatherModels: e, marineModels: o } = io.autoPickMeteoModel(t.forecastModel), i = {
8314
8316
  lat: t.lat,
8315
8317
  lng: t.lng,
8316
8318
  datetime: D(t.dateTime).utc().format(),
@@ -8323,17 +8325,17 @@ const Cs = {
8323
8325
  Authorization: this.token || this.defaultMeteoToken
8324
8326
  }
8325
8327
  });
8326
- (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.handleRender([t.lng, t.lat])), this.loading = !1;
8328
+ (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;
8327
8329
  },
8328
8330
  initTableData(t) {
8329
- var o, i, a, r, s, n, c, g, p, d, f, z, x, S, C, N, M, L, v, _, P, k, R, V, X, q, Y, $, ee, Q, se, de, pe, me, K, ie, F, le, fe, xe, ve;
8331
+ var o, i, a, r, s, n, c, g, p, d, f, z, v, S, C, N, M, L, _, k, P, x, R, V, X, q, Y, $, ee, Q, se, de, pe, me, K, ie, F, le, fe, xe, ve;
8330
8332
  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;
8331
- const e = ((s = ao.pickHourly(t, D(this.form.dateTime))) == null ? void 0 : s[0]) || {};
8332
- this.currentHourData.utc = e.utc, this.currentHourData.lat = t.lat, this.currentHourData.lng = t.lng, this.currentHourData.temp = this.roundPrecision((n = e == null ? void 0 : e.weather) == null ? void 0 : n.temp, 0) ?? "-", this.currentHourData.precipProbability = this.roundPrecision((g = (c = e == null ? void 0 : e.weather) == null ? void 0 : c.precip) == null ? void 0 : g.probability, 0) ?? "-", this.currentHourData.precip1h = this.roundPrecision((d = (p = e == null ? void 0 : e.weather) == null ? void 0 : p.precip) == null ? void 0 : d.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((x = (z = e == null ? void 0 : e.weather) == null ? void 0 : z.wind) == null ? void 0 : x.kts, 1) ?? "-", this.currentHourData.windDir = (C = (S = e == null ? void 0 : e.weather) == null ? void 0 : S.wind) == null ? void 0 : C.direction, this.currentHourData.windLevel = this.roundPrecision((M = (N = e == null ? void 0 : e.weather) == null ? void 0 : N.wind) == null ? void 0 : M.scale, 0) ?? "-", this.currentHourData.windGust = this.roundPrecision((v = (L = e == null ? void 0 : e.weather) == null ? void 0 : L.wind) == null ? void 0 : v.gusts, 1) ?? "-", this.currentHourData.sigwaveHeight = this.roundPrecision((P = (_ = e == null ? void 0 : e.wave) == null ? void 0 : _.sig) == null ? void 0 : P.height, 1) ?? "-", this.currentHourData.sigwaveDir = (R = (k = e == null ? void 0 : e.wave) == null ? void 0 : k.sig) == null ? void 0 : R.direction, this.currentHourData.sigwavePeriod = this.roundPrecision((X = (V = e == null ? void 0 : e.wave) == null ? void 0 : V.sig) == null ? void 0 : X.period, 1) ?? "-", this.currentHourData.windwaveHeight = this.roundPrecision((Y = (q = e == null ? void 0 : e.wave) == null ? void 0 : q.wd) == null ? void 0 : Y.height, 1) ?? "-", this.currentHourData.windwaveDir = (ee = ($ = e == null ? void 0 : e.wave) == null ? void 0 : $.wd) == null ? void 0 : ee.direction, this.currentHourData.windwavePeriod = this.roundPrecision((se = (Q = e == null ? void 0 : e.wave) == null ? void 0 : Q.wd) == null ? void 0 : se.period, 1) ?? "-", this.currentHourData.swellHeight = this.roundPrecision((pe = (de = e == null ? void 0 : e.wave) == null ? void 0 : de.swell) == null ? void 0 : pe.height, 1) ?? "-", this.currentHourData.swellDir = (K = (me = e == null ? void 0 : e.wave) == null ? void 0 : me.swell) == null ? void 0 : K.direction, this.currentHourData.swellPeriod = this.roundPrecision((F = (ie = e == null ? void 0 : e.wave) == null ? void 0 : ie.swell) == null ? void 0 : F.period, 1) ?? "-", this.currentHourData.currentSpeed = this.roundPrecision((le = e == null ? void 0 : e.current) == null ? void 0 : le.speed, 1) ?? "-", this.currentHourData.currentDir = (fe = e == null ? void 0 : e.current) == null ? void 0 : fe.direction, this.currentHourData.currentSpeed = this.roundPrecision((xe = e == null ? void 0 : e.current) == null ? void 0 : xe.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 = (ve = e == null ? void 0 : e.weather) == null ? void 0 : ve.url;
8333
+ const e = ((s = io.pickHourly(t, D(this.form.dateTime))) == null ? void 0 : s[0]) || {};
8334
+ this.currentHourData.utc = e.utc, this.currentHourData.lat = t.lat, this.currentHourData.lng = t.lng, this.currentHourData.temp = this.roundPrecision((n = e == null ? void 0 : e.weather) == null ? void 0 : n.temp, 0) ?? "-", this.currentHourData.precipProbability = this.roundPrecision((g = (c = e == null ? void 0 : e.weather) == null ? void 0 : c.precip) == null ? void 0 : g.probability, 0) ?? "-", this.currentHourData.precip1h = this.roundPrecision((d = (p = e == null ? void 0 : e.weather) == null ? void 0 : p.precip) == null ? void 0 : d.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((v = (z = e == null ? void 0 : e.weather) == null ? void 0 : z.wind) == null ? void 0 : v.kts, 1) ?? "-", this.currentHourData.windDir = (C = (S = e == null ? void 0 : e.weather) == null ? void 0 : S.wind) == null ? void 0 : C.direction, this.currentHourData.windLevel = this.roundPrecision((M = (N = e == null ? void 0 : e.weather) == null ? void 0 : N.wind) == null ? void 0 : M.scale, 0) ?? "-", this.currentHourData.windGust = this.roundPrecision((_ = (L = e == null ? void 0 : e.weather) == null ? void 0 : L.wind) == null ? void 0 : _.gusts, 1) ?? "-", this.currentHourData.sigwaveHeight = this.roundPrecision((P = (k = e == null ? void 0 : e.wave) == null ? void 0 : k.sig) == null ? void 0 : P.height, 1) ?? "-", this.currentHourData.sigwaveDir = (R = (x = e == null ? void 0 : e.wave) == null ? void 0 : x.sig) == null ? void 0 : R.direction, this.currentHourData.sigwavePeriod = this.roundPrecision((X = (V = e == null ? void 0 : e.wave) == null ? void 0 : V.sig) == null ? void 0 : X.period, 1) ?? "-", this.currentHourData.windwaveHeight = this.roundPrecision((Y = (q = e == null ? void 0 : e.wave) == null ? void 0 : q.wd) == null ? void 0 : Y.height, 1) ?? "-", this.currentHourData.windwaveDir = (ee = ($ = e == null ? void 0 : e.wave) == null ? void 0 : $.wd) == null ? void 0 : ee.direction, this.currentHourData.windwavePeriod = this.roundPrecision((se = (Q = e == null ? void 0 : e.wave) == null ? void 0 : Q.wd) == null ? void 0 : se.period, 1) ?? "-", this.currentHourData.swellHeight = this.roundPrecision((pe = (de = e == null ? void 0 : e.wave) == null ? void 0 : de.swell) == null ? void 0 : pe.height, 1) ?? "-", this.currentHourData.swellDir = (K = (me = e == null ? void 0 : e.wave) == null ? void 0 : me.swell) == null ? void 0 : K.direction, this.currentHourData.swellPeriod = this.roundPrecision((F = (ie = e == null ? void 0 : e.wave) == null ? void 0 : ie.swell) == null ? void 0 : F.period, 1) ?? "-", this.currentHourData.currentSpeed = this.roundPrecision((le = e == null ? void 0 : e.current) == null ? void 0 : le.speed, 1) ?? "-", this.currentHourData.currentDir = (fe = e == null ? void 0 : e.current) == null ? void 0 : fe.direction, this.currentHourData.currentSpeed = this.roundPrecision((xe = e == null ? void 0 : e.current) == null ? void 0 : xe.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 = (ve = e == null ? void 0 : e.weather) == null ? void 0 : ve.url;
8333
8335
  },
8334
8336
  handleBind() {
8335
8337
  var t, e;
8336
- this.toggle ? ((t = this.map) == null || t.on("click", this.handleClick), this.map.getCanvas().style.cursor = "pointer") : ((e = this.map) == null || e.off("click", this.handleClick), this.handleCloseMeteo());
8338
+ this.toggle ? ((t = this.map) == null || t.on("click", this.handleClick), this.map.getCanvas().style.cursor = "crosshair") : ((e = this.map) == null || e.off("click", this.handleClick), this.handleCloseMeteo(), this.map.getCanvas().style.cursor = "grab");
8337
8339
  },
8338
8340
  handleClick(t) {
8339
8341
  if (t.originalEvent.stopPropagation(), t.originalEvent.target.className === "mapboxgl-canvas")
@@ -8353,30 +8355,28 @@ const Cs = {
8353
8355
  (o = this.positionMarker) == null || o.setLngLat([this.point.lng, this.point.lat]);
8354
8356
  else {
8355
8357
  const i = document.createElement("div");
8356
- i.innerHTML = '<svg t="1755510770354" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5552" width="200" height="200"><path d="M511.960615 827.234462s330.358154-215.906462 330.358154-465.526154C842.318769 183.650462 694.468923 39.384615 512 39.384615S181.563077 183.689846 181.563077 361.668923c0 249.659077 330.397538 465.565538 330.397538 465.565539z" fill="#FF8C00" p-id="5553"></path><path d="M511.921231 496.836923a127.054769 127.054769 0 1 0 0-254.148923 127.054769 127.054769 0 0 0 0 254.148923z" fill="#FFFFFF" p-id="5554"></path><path d="M354.461538 945.230769a157.538462 39.384615 0 1 0 315.076924 0 157.538462 39.384615 0 1 0-315.076924 0Z" fill="#494C4F" opacity=".4" p-id="5555"></path></svg>', i.firstChild.style.height = "28px", i.firstChild.style.width = "28px", this.positionMarker = new we.Marker(i).setLngLat([this.point.lng, this.point.lat]).setOffset([0, -14]).addTo(this.map);
8358
+ i.innerHTML = '<svg t="1755510770354" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5552" width="200" height="200"><path d="M511.960615 827.234462s330.358154-215.906462 330.358154-465.526154C842.318769 183.650462 694.468923 39.384615 512 39.384615S181.563077 183.689846 181.563077 361.668923c0 249.659077 330.397538 465.565538 330.397538 465.565539z" fill="#FF8C00" p-id="5553"></path><path d="M511.921231 496.836923a127.054769 127.054769 0 1 0 0-254.148923 127.054769 127.054769 0 0 0 0 254.148923z" fill="#FFFFFF" p-id="5554"></path><path d="M354.461538 945.230769a157.538462 39.384615 0 1 0 315.076924 0 157.538462 39.384615 0 1 0-315.076924 0Z" fill="#494C4F" opacity=".4" p-id="5555"></path></svg>', i.firstChild.style.height = "32px", i.firstChild.style.width = "32px", this.positionMarker = new we.Marker(i).setLngLat([this.point.lng, this.point.lat]).setOffset([0, -16]).addTo(this.map);
8357
8359
  }
8358
8360
  },
8359
8361
  handleRender(t) {
8360
8362
  t && (this.map.flyTo({
8361
8363
  center: t,
8362
- duration: 800
8363
- }), setTimeout(() => {
8364
- this.showMeteo = !0, this.$nextTick(() => {
8365
- var e, o, i;
8366
- if ((e = this.positionMarker) == null || e.remove(), this.positionMarker = void 0, this.meteoMarker)
8367
- (o = this.meteoMarker) == null || o.setLngLat(t);
8368
- else {
8369
- const a = document.createElement("div");
8370
- a.innerHTML = '<svg t="1755510770354" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5552" width="200" height="200"><path d="M511.960615 827.234462s330.358154-215.906462 330.358154-465.526154C842.318769 183.650462 694.468923 39.384615 512 39.384615S181.563077 183.689846 181.563077 361.668923c0 249.659077 330.397538 465.565538 330.397538 465.565539z" fill="#FF8C00" p-id="5553"></path><path d="M511.921231 496.836923a127.054769 127.054769 0 1 0 0-254.148923 127.054769 127.054769 0 0 0 0 254.148923z" fill="#FFFFFF" p-id="5554"></path><path d="M354.461538 945.230769a157.538462 39.384615 0 1 0 315.076924 0 157.538462 39.384615 0 1 0-315.076924 0Z" fill="#494C4F" opacity=".4" p-id="5555"></path></svg>', a.firstChild.style.height = "28px", a.firstChild.style.width = "28px", this.meteoMarker = new we.Marker(a).setLngLat(t).setOffset([0, -14]).addTo(this.map);
8371
- }
8372
- if (this.meteoInfoMarker)
8373
- (i = this.meteoInfoMarker) == null || i.setLngLat(t);
8374
- else {
8375
- const a = document.getElementById("idm-gl4-spot-meteo");
8376
- this.meteoInfoMarker = new we.Marker(a).setLngLat(t).setOffset([0, -200]).addTo(this.map);
8377
- }
8378
- });
8379
- }, 1e3));
8364
+ duration: 500
8365
+ }), this.$nextTick(() => {
8366
+ var e, o, i;
8367
+ if ((e = this.positionMarker) == null || e.remove(), this.positionMarker = void 0, this.meteoMarker)
8368
+ (o = this.meteoMarker) == null || o.setLngLat(t);
8369
+ else {
8370
+ const a = document.createElement("div");
8371
+ a.innerHTML = '<svg t="1755510770354" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5552" width="200" height="200"><path d="M511.960615 827.234462s330.358154-215.906462 330.358154-465.526154C842.318769 183.650462 694.468923 39.384615 512 39.384615S181.563077 183.689846 181.563077 361.668923c0 249.659077 330.397538 465.565538 330.397538 465.565539z" fill="#FF8C00" p-id="5553"></path><path d="M511.921231 496.836923a127.054769 127.054769 0 1 0 0-254.148923 127.054769 127.054769 0 0 0 0 254.148923z" fill="#FFFFFF" p-id="5554"></path><path d="M354.461538 945.230769a157.538462 39.384615 0 1 0 315.076924 0 157.538462 39.384615 0 1 0-315.076924 0Z" fill="#494C4F" opacity=".4" p-id="5555"></path></svg>', a.firstChild.style.height = "32px", a.firstChild.style.width = "32px", this.meteoMarker = new we.Marker(a).setLngLat(t).setOffset([0, -16]).addTo(this.map);
8372
+ }
8373
+ if (this.meteoInfoMarker)
8374
+ (i = this.meteoInfoMarker) == null || i.setLngLat(t);
8375
+ else {
8376
+ const a = document.getElementById("idm-gl4-spot-meteo");
8377
+ this.meteoInfoMarker = new we.Marker(a).setLngLat(t).setOffset([0, -190]).addTo(this.map);
8378
+ }
8379
+ }));
8380
8380
  },
8381
8381
  handleMeteoMore() {
8382
8382
  this.point.forecastModel = this.forecastModel, this.$emit("meteoMore", this.point);
@@ -8403,7 +8403,7 @@ const Cs = {
8403
8403
  "aria-hidden": "true"
8404
8404
  }, Fs = ["xlink:href"], Hs = { class: "d-flex justify-start align-center" }, Gs = { class: "mx-2" };
8405
8405
  function Ws(t, e, o, i, a, r) {
8406
- const s = w("VBtn"), n = w("VTooltip"), c = w("VCardTitle"), g = w("VDivider"), p = w("VTextField"), d = w("VCol"), f = w("VRow"), z = w("DateTimePicker"), x = w("VBtnToggle"), S = w("VCardActions"), C = w("VForm"), N = w("VCardText"), M = w("VCard"), L = w("VIcon");
8406
+ const s = w("VBtn"), n = w("VTooltip"), c = w("VCardTitle"), g = w("VDivider"), p = w("VTextField"), d = w("VCol"), f = w("VRow"), z = w("DateTimePicker"), v = w("VBtnToggle"), S = w("VCardActions"), C = w("VForm"), N = w("VCardText"), M = w("VCard"), L = w("VIcon");
8407
8407
  return b(), T("div", Ss, [
8408
8408
  l("div", {
8409
8409
  class: "menu-bar-box transition pa-1",
@@ -8413,8 +8413,8 @@ function Ws(t, e, o, i, a, r) {
8413
8413
  text: t.$t("spot.spotsMeteo"),
8414
8414
  location: "left"
8415
8415
  }, {
8416
- activator: u(({ props: v }) => [
8417
- h(s, O(v, {
8416
+ activator: u(({ props: _ }) => [
8417
+ h(s, O(_, {
8418
8418
  "min-width": "32",
8419
8419
  width: "32",
8420
8420
  height: "32",
@@ -8466,7 +8466,7 @@ function Ws(t, e, o, i, a, r) {
8466
8466
  ref: "spotForm",
8467
8467
  autocomplete: "off",
8468
8468
  class: "form-box",
8469
- onSubmit: Xa(r.clickForm, ["prevent"])
8469
+ onSubmit: ao(r.submitForm, ["prevent"])
8470
8470
  }, {
8471
8471
  default: u(() => [
8472
8472
  l("div", Ms, [
@@ -8486,7 +8486,7 @@ function Ws(t, e, o, i, a, r) {
8486
8486
  default: u(() => [
8487
8487
  h(p, {
8488
8488
  modelValue: a.form.lngDegree,
8489
- "onUpdate:modelValue": e[0] || (e[0] = (v) => a.form.lngDegree = v),
8489
+ "onUpdate:modelValue": e[0] || (e[0] = (_) => a.form.lngDegree = _),
8490
8490
  rules: a.formRules.lngDegree,
8491
8491
  density: "compact",
8492
8492
  variant: "outlined",
@@ -8505,7 +8505,7 @@ function Ws(t, e, o, i, a, r) {
8505
8505
  default: u(() => [
8506
8506
  h(p, {
8507
8507
  modelValue: a.form.lngMinute,
8508
- "onUpdate:modelValue": e[1] || (e[1] = (v) => a.form.lngMinute = v),
8508
+ "onUpdate:modelValue": e[1] || (e[1] = (_) => a.form.lngMinute = _),
8509
8509
  rules: a.formRules.lngMinute,
8510
8510
  label: "",
8511
8511
  density: "compact",
@@ -8531,7 +8531,7 @@ function Ws(t, e, o, i, a, r) {
8531
8531
  height: "32",
8532
8532
  class: "",
8533
8533
  style: { border: "1px solid rgba(var(--v-theme-on-surface), 0.38)" },
8534
- onClick: e[2] || (e[2] = (v) => a.form.lngDirection = a.form.lngDirection === "E" ? "W" : "E")
8534
+ onClick: e[2] || (e[2] = (_) => a.form.lngDirection = a.form.lngDirection === "E" ? "W" : "E")
8535
8535
  }, {
8536
8536
  default: u(() => [
8537
8537
  W(y(a.form.lngDirection), 1)
@@ -8561,7 +8561,7 @@ function Ws(t, e, o, i, a, r) {
8561
8561
  default: u(() => [
8562
8562
  h(p, {
8563
8563
  modelValue: a.form.latDegree,
8564
- "onUpdate:modelValue": e[3] || (e[3] = (v) => a.form.latDegree = v),
8564
+ "onUpdate:modelValue": e[3] || (e[3] = (_) => a.form.latDegree = _),
8565
8565
  rules: a.formRules.latDegree,
8566
8566
  label: "",
8567
8567
  density: "compact",
@@ -8583,7 +8583,7 @@ function Ws(t, e, o, i, a, r) {
8583
8583
  default: u(() => [
8584
8584
  h(p, {
8585
8585
  modelValue: a.form.latMinute,
8586
- "onUpdate:modelValue": e[4] || (e[4] = (v) => a.form.latMinute = v),
8586
+ "onUpdate:modelValue": e[4] || (e[4] = (_) => a.form.latMinute = _),
8587
8587
  rules: a.formRules.latMinute,
8588
8588
  label: "",
8589
8589
  density: "compact",
@@ -8609,7 +8609,7 @@ function Ws(t, e, o, i, a, r) {
8609
8609
  height: "32",
8610
8610
  class: "text-body-1",
8611
8611
  style: { border: "1px solid rgba(var(--v-theme-on-surface), 0.38)" },
8612
- onClick: e[5] || (e[5] = (v) => a.form.latDirection = a.form.latDirection === "N" ? "S" : "N")
8612
+ onClick: e[5] || (e[5] = (_) => a.form.latDirection = a.form.latDirection === "N" ? "S" : "N")
8613
8613
  }, {
8614
8614
  default: u(() => [
8615
8615
  W(y(a.form.latDirection), 1)
@@ -8641,7 +8641,7 @@ function Ws(t, e, o, i, a, r) {
8641
8641
  "date-time": a.form.dateTime,
8642
8642
  "time-zone": o.timeZone
8643
8643
  }, t.$attrs, {
8644
- onDateTime: e[6] || (e[6] = (v) => a.form.dateTime = v)
8644
+ onDateTime: e[6] || (e[6] = (_) => a.form.dateTime = _)
8645
8645
  }), null, 16, ["date-time", "time-zone"])
8646
8646
  ]),
8647
8647
  _: 1
@@ -8664,9 +8664,9 @@ function Ws(t, e, o, i, a, r) {
8664
8664
  class: "pa-0"
8665
8665
  }, {
8666
8666
  default: u(() => [
8667
- h(x, {
8667
+ h(v, {
8668
8668
  modelValue: a.form.forecastModel,
8669
- "onUpdate:modelValue": e[7] || (e[7] = (v) => a.form.forecastModel = v),
8669
+ "onUpdate:modelValue": e[7] || (e[7] = (_) => a.form.forecastModel = _),
8670
8670
  class: "w-100",
8671
8671
  rounded: "",
8672
8672
  height: "30",
@@ -8761,21 +8761,24 @@ function Ws(t, e, o, i, a, r) {
8761
8761
  default: u(() => [
8762
8762
  h(c, { class: "d-flex justify-space-between align-center" }, {
8763
8763
  default: u(() => {
8764
- var v, _;
8764
+ var _, k, P, x;
8765
8765
  return [
8766
8766
  l("div", Hs, [
8767
8767
  e[23] || (e[23] = l("i", { class: "iconfont icon-a-Spotweather text-h5 map-icon-aqua" }, null, -1)),
8768
- l("div", Gs, y(r.computeLat((v = a.currentHourData) == null ? void 0 : v.lat)) + "," + y(r.computeLng((_ = a.currentHourData) == null ? void 0 : _.lng)), 1)
8768
+ l("div", Gs, y(r.computeLat(((_ = a.form) == null ? void 0 : _.lat) || ((k = a.currentHourData) == null ? void 0 : k.lat))) + "," + y(r.computeLng(((P = a.form) == null ? void 0 : P.lng) || ((x = a.currentHourData) == null ? void 0 : x.lng))), 1)
8769
8769
  ]),
8770
8770
  h(s, {
8771
+ class: "mr-n2",
8772
+ density: "comfortable",
8771
8773
  icon: "",
8772
- density: "compact",
8773
8774
  variant: "plain",
8774
- class: "mr-n2",
8775
- onClick: r.handleCloseMeteo
8775
+ onClick: ao(r.handleCloseMeteo, ["stop"])
8776
8776
  }, {
8777
8777
  default: u(() => e[24] || (e[24] = [
8778
- l("i", { class: "iconfont icon-close opacity-70 text-h4" }, null, -1)
8778
+ l("i", {
8779
+ class: "iconfont icon-close",
8780
+ style: { "font-size": "20px" }
8781
+ }, null, -1)
8779
8782
  ])),
8780
8783
  _: 1,
8781
8784
  __: [24]
@@ -8804,9 +8807,9 @@ function Ws(t, e, o, i, a, r) {
8804
8807
  class: "pa-2 px-0"
8805
8808
  }, {
8806
8809
  default: u(() => {
8807
- var v;
8810
+ var _;
8808
8811
  return [
8809
- W(y(r.computedTzTime((v = a.currentHourData) == null ? void 0 : v.utc)), 1)
8812
+ W(y(r.computedTzTime((_ = a.currentHourData) == null ? void 0 : _.utc)), 1)
8810
8813
  ];
8811
8814
  }),
8812
8815
  _: 1
@@ -8831,9 +8834,9 @@ function Ws(t, e, o, i, a, r) {
8831
8834
  class: "pa-2 px-0"
8832
8835
  }, {
8833
8836
  default: u(() => {
8834
- var v;
8837
+ var _;
8835
8838
  return [
8836
- W(y(r.computedLocalTime((v = a.currentHourData) == null ? void 0 : v.utc)), 1)
8839
+ W(y(r.computedLocalTime((_ = a.currentHourData) == null ? void 0 : _.utc)), 1)
8837
8840
  ];
8838
8841
  }),
8839
8842
  _: 1
@@ -9114,19 +9117,19 @@ const Vs = {
9114
9117
  var N;
9115
9118
  return ((N = C._element) == null ? void 0 : N.id) === e;
9116
9119
  })[0].setLngLat([(r = (a = t.target) == null ? void 0 : a._lngLat) == null ? void 0 : r.lng, (n = (s = t.target) == null ? void 0 : s._lngLat) == null ? void 0 : n.lat]);
9117
- let x;
9120
+ let v;
9118
9121
  f.features.forEach((C, N) => {
9119
9122
  if (C.geometry.type === "Point" && C.properties.id === e.split("-")[1]) {
9120
- x = N;
9123
+ v = N;
9121
9124
  return;
9122
9125
  }
9123
9126
  });
9124
9127
  const S = f.features.filter((C) => C.geometry.type === "Point");
9125
9128
  this.handleTmpPointUpdate(
9126
9129
  f,
9127
- S[x - 1],
9128
- { lng: (g = (c = t.target) == null ? void 0 : c._lngLat) == null ? void 0 : g.lng, lat: (d = (p = t.target) == null ? void 0 : p._lngLat) == null ? void 0 : d.lat, properties: S[x].properties },
9129
- x === S.length - 1 ? void 0 : S[x + 1]
9130
+ S[v - 1],
9131
+ { lng: (g = (c = t.target) == null ? void 0 : c._lngLat) == null ? void 0 : g.lng, lat: (d = (p = t.target) == null ? void 0 : p._lngLat) == null ? void 0 : d.lat, properties: S[v].properties },
9132
+ v === S.length - 1 ? void 0 : S[v + 1]
9130
9133
  );
9131
9134
  }
9132
9135
  },
@@ -9139,8 +9142,8 @@ const Vs = {
9139
9142
  var C;
9140
9143
  return ((C = S._element) == null ? void 0 : C.id) === e;
9141
9144
  })[0].setLngLat([(r = (a = t.target) == null ? void 0 : a._lngLat) == null ? void 0 : r.lng, (n = (s = t.target) == null ? void 0 : s._lngLat) == null ? void 0 : n.lat]);
9142
- const x = f.features.filter((S) => S.geometry.type === "Point" && S.properties.id === e.split("-")[1])[0];
9143
- x.geometry.coordinates = [(g = (c = t.target) == null ? void 0 : c._lngLat) == null ? void 0 : g.lng, (d = (p = t.target) == null ? void 0 : p._lngLat) == null ? void 0 : d.lat], f.features = f.features.filter((S) => S.geometry.type === "Point"), this.handlePointUpdate(f);
9145
+ const v = f.features.filter((S) => S.geometry.type === "Point" && S.properties.id === e.split("-")[1])[0];
9146
+ v.geometry.coordinates = [(g = (c = t.target) == null ? void 0 : c._lngLat) == null ? void 0 : g.lng, (d = (p = t.target) == null ? void 0 : p._lngLat) == null ? void 0 : d.lat], f.features = f.features.filter((S) => S.geometry.type === "Point"), this.handlePointUpdate(f);
9144
9147
  }
9145
9148
  },
9146
9149
  handleContextmenu(t) {
@@ -9194,8 +9197,8 @@ const Vs = {
9194
9197
  n.mode === "RL" ? f = oe.convertToMonotonicLng([c, g]) : f = oe.convertToMonotonicLng(Fe.interpolateCoordinates(c, g, 200));
9195
9198
  const z = E.lineString(f.map((S) => [S.lng, S.lat]));
9196
9199
  z.properties.dist = p, z.properties.bearing = d, z.properties.total = o, z.properties.name = "Line " + this.currentLineIndex, i.push(z);
9197
- const x = e[a];
9198
- x.properties.totalDist = oe.roundPrecision((n.totalDist ? n.totalDist : 0) + p, 4), x.properties.sumLabel = x.properties.totalDist + " nm";
9200
+ const v = e[a];
9201
+ v.properties.totalDist = oe.roundPrecision((n.totalDist ? n.totalDist : 0) + p, 4), v.properties.sumLabel = v.properties.totalDist + " nm";
9199
9202
  }
9200
9203
  e.push(...i), t.total = o;
9201
9204
  }
@@ -9359,11 +9362,11 @@ const Vs = {
9359
9362
  }
9360
9363
  },
9361
9364
  handleClear(t, e = !0) {
9362
- var s, n, c, g, p, d, f, z, x, S;
9365
+ var s, n, c, g, p, d, f, z, v, S;
9363
9366
  const o = `${t.id}-${this.source}`, i = `${t.id}-${this.layer}`, a = `${t.id}-${this.labelLayer}`, r = `${t.id}-${this.sumLayer}`;
9364
9367
  (s = this.map) != null && s.getLayer(i) && this.map.removeLayer(i), (n = this.map) != null && n.getLayer(a) && this.map.removeLayer(a), (c = this.map) != null && c.getLayer(r) && this.map.removeLayer(r), (g = this.map) != null && g.getLayer(this.tmpLayer) && this.map.removeLayer(this.tmpLayer), (p = this.map) != null && p.getLayer(this.tmpLabelLayer) && this.map.removeLayer(this.tmpLabelLayer), (d = this.closeMarkers[t.id]) == null || d.remove(), this.closeMarkers[t.id] = void 0, (f = this.pointMarkers[t.id]) == null || f.forEach((C) => {
9365
9368
  C == null || C.remove();
9366
- }), this.pointMarkers[t.id] = [], (z = this.tipMarker) == null || z.remove(), this.tipMarker = void 0, e && ((x = this.map) != null && x.getSource(o)) && this.map.removeSource(o), e && ((S = this.map) != null && S.getSource(this.tmpSource)) && this.map.removeSource(this.tmpSource);
9369
+ }), this.pointMarkers[t.id] = [], (z = this.tipMarker) == null || z.remove(), this.tipMarker = void 0, e && ((v = this.map) != null && v.getSource(o)) && this.map.removeSource(o), e && ((S = this.map) != null && S.getSource(this.tmpSource)) && this.map.removeSource(this.tmpSource);
9367
9370
  }
9368
9371
  }
9369
9372
  }, Ys = { class: "idm-gl4-measure" };
@@ -9401,7 +9404,7 @@ function Zs(t, e, o, i, a, r) {
9401
9404
  const Xs = /* @__PURE__ */ Z(Vs, [["render", Zs]]);
9402
9405
  const qs = {
9403
9406
  name: "IdmBottomBar",
9404
- components: { DateTimePicker: ro },
9407
+ components: { DateTimePicker: lo },
9405
9408
  props: {
9406
9409
  menuToggle: {
9407
9410
  type: Object,
@@ -9480,7 +9483,7 @@ const qs = {
9480
9483
  }
9481
9484
  },
9482
9485
  mounted() {
9483
- console.log(this.show), this.handleReset();
9486
+ this.handleReset();
9484
9487
  },
9485
9488
  methods: {
9486
9489
  handleReset() {
@@ -9536,9 +9539,9 @@ function ln(t, e, o, i, a, r) {
9536
9539
  "day-about": a.dayAbout,
9537
9540
  "interval-hour": a.intervalHour
9538
9541
  }, t.$attrs, {
9539
- onCurrentTimestamp: e[0] || (e[0] = (x) => a.currentTimestamp = x),
9540
- onCurrentRealTime: e[1] || (e[1] = (x) => a.currentRealTime = x),
9541
- onTimestampRange: e[2] || (e[2] = (x) => a.timestampRange = x)
9542
+ onCurrentTimestamp: e[0] || (e[0] = (v) => a.currentTimestamp = v),
9543
+ onCurrentRealTime: e[1] || (e[1] = (v) => a.currentRealTime = v),
9544
+ onTimestampRange: e[2] || (e[2] = (v) => a.timestampRange = v)
9542
9545
  }), null, 16, ["date-time", "time-zone", "day-about", "interval-hour"]),
9543
9546
  h(d, {
9544
9547
  text: "",
@@ -9552,13 +9555,13 @@ function ln(t, e, o, i, a, r) {
9552
9555
  default: u(() => [
9553
9556
  h(g, { class: "pa-1" }, {
9554
9557
  default: u(() => [
9555
- (b(!0), T(ke, null, Le(a.intervalOptions, (x, S) => (b(), j(c, {
9558
+ (b(!0), T(ke, null, Le(a.intervalOptions, (v, S) => (b(), j(c, {
9556
9559
  key: S,
9557
- value: x,
9558
- variant: a.intervalHour === x ? "tonal" : "text",
9560
+ value: v,
9561
+ variant: a.intervalHour === v ? "tonal" : "text",
9559
9562
  color: "primary",
9560
9563
  rounded: "",
9561
- active: a.intervalHour === x,
9564
+ active: a.intervalHour === v,
9562
9565
  height: "30",
9563
9566
  "min-height": "30",
9564
9567
  "min-width": "30",
@@ -9566,10 +9569,10 @@ function ln(t, e, o, i, a, r) {
9566
9569
  }, {
9567
9570
  default: u(() => [
9568
9571
  h(n, {
9569
- onClick: (C) => a.intervalHour = x
9572
+ onClick: (C) => a.intervalHour = v
9570
9573
  }, {
9571
9574
  default: u(() => [
9572
- W(y(x) + "h", 1)
9575
+ W(y(v) + "h", 1)
9573
9576
  ]),
9574
9577
  _: 2
9575
9578
  }, 1032, ["onClick"])
@@ -9669,10 +9672,10 @@ function ln(t, e, o, i, a, r) {
9669
9672
  text: t.$t("weather.windBarbs"),
9670
9673
  location: "top"
9671
9674
  }, {
9672
- activator: u(({ props: x }) => {
9675
+ activator: u(({ props: v }) => {
9673
9676
  var S, C;
9674
9677
  return [
9675
- h(d, O(x, {
9678
+ h(d, O(v, {
9676
9679
  class: "pa-1 d-flex",
9677
9680
  color: (S = o.weatherCheckList) != null && S.includes("wind") ? "primary" : "",
9678
9681
  variant: (C = o.weatherCheckList) != null && C.includes("wind") ? "elevated" : "text",
@@ -9695,10 +9698,10 @@ function ln(t, e, o, i, a, r) {
9695
9698
  text: t.$t("weather.sigWaveHeight"),
9696
9699
  location: "top"
9697
9700
  }, {
9698
- activator: u(({ props: x }) => {
9701
+ activator: u(({ props: v }) => {
9699
9702
  var S, C;
9700
9703
  return [
9701
- h(d, O(x, {
9704
+ h(d, O(v, {
9702
9705
  class: "pa-1 d-flex",
9703
9706
  color: (S = o.weatherCheckList) != null && S.includes("sig-wave-height") ? "primary" : "",
9704
9707
  variant: (C = o.weatherCheckList) != null && C.includes("sig-wave-height") ? "elevated" : "text",
@@ -9708,7 +9711,7 @@ function ln(t, e, o, i, a, r) {
9708
9711
  onClick: e[4] || (e[4] = (N) => r.handleClickFastWeather("sig-wave-height"))
9709
9712
  }), {
9710
9713
  default: u(() => [
9711
- l("i", O(x, { class: "iconfont icon-a-WaveHeight" }), null, 16)
9714
+ l("i", O(v, { class: "iconfont icon-a-WaveHeight" }), null, 16)
9712
9715
  ]),
9713
9716
  _: 2
9714
9717
  }, 1040, ["color", "variant"])
@@ -9720,10 +9723,10 @@ function ln(t, e, o, i, a, r) {
9720
9723
  text: t.$t("weather.currentDirection"),
9721
9724
  location: "top"
9722
9725
  }, {
9723
- activator: u(({ props: x }) => {
9726
+ activator: u(({ props: v }) => {
9724
9727
  var S, C;
9725
9728
  return [
9726
- h(d, O(x, {
9729
+ h(d, O(v, {
9727
9730
  class: "pa-1 d-flex",
9728
9731
  color: (S = o.weatherCheckList) != null && S.includes("current-direction") ? "primary" : "",
9729
9732
  variant: (C = o.weatherCheckList) != null && C.includes("current-direction") ? "elevated" : "text",
@@ -9733,7 +9736,7 @@ function ln(t, e, o, i, a, r) {
9733
9736
  onClick: e[5] || (e[5] = (N) => r.handleClickFastWeather("current-direction"))
9734
9737
  }), {
9735
9738
  default: u(() => [
9736
- l("i", O(x, { class: "iconfont icon-Current" }), null, 16)
9739
+ l("i", O(v, { class: "iconfont icon-Current" }), null, 16)
9737
9740
  ]),
9738
9741
  _: 2
9739
9742
  }, 1040, ["color", "variant"])
@@ -9745,8 +9748,8 @@ function ln(t, e, o, i, a, r) {
9745
9748
  text: t.$t("weather.weatherLayers"),
9746
9749
  location: "top"
9747
9750
  }, {
9748
- activator: u(({ props: x }) => [
9749
- h(d, O(x, {
9751
+ activator: u(({ props: v }) => [
9752
+ h(d, O(v, {
9750
9753
  class: "pa-1 d-flex",
9751
9754
  variant: "text",
9752
9755
  height: "24",
@@ -9755,7 +9758,7 @@ function ln(t, e, o, i, a, r) {
9755
9758
  onClick: r.handleClickFastMore
9756
9759
  }), {
9757
9760
  default: u(() => [
9758
- l("i", O(x, { class: "iconfont icon-dots-align" }), null, 16)
9761
+ l("i", O(v, { class: "iconfont icon-dots-align" }), null, 16)
9759
9762
  ]),
9760
9763
  _: 2
9761
9764
  }, 1040, ["onClick"])
@@ -9774,7 +9777,7 @@ function ln(t, e, o, i, a, r) {
9774
9777
  height: "30",
9775
9778
  class: "px-2 elevation-0 text-body-1 btn-border-2",
9776
9779
  color: a.source === "GFS" ? "primary" : "",
9777
- onClick: e[6] || (e[6] = (x) => a.source = "GFS")
9780
+ onClick: e[6] || (e[6] = (v) => a.source = "GFS")
9778
9781
  }, {
9779
9782
  default: u(() => e[15] || (e[15] = [
9780
9783
  W("NOAA", -1)
@@ -9787,7 +9790,7 @@ function ln(t, e, o, i, a, r) {
9787
9790
  height: "30",
9788
9791
  class: "px-2 elevation-0 text-body-1 btn-border-2",
9789
9792
  color: a.source === "ECMWF" ? "primary" : "",
9790
- onClick: e[7] || (e[7] = (x) => a.source = "ECMWF")
9793
+ onClick: e[7] || (e[7] = (v) => a.source = "ECMWF")
9791
9794
  }, {
9792
9795
  default: u(() => e[16] || (e[16] = [
9793
9796
  W("ECMWF", -1)
@@ -9802,11 +9805,11 @@ function ln(t, e, o, i, a, r) {
9802
9805
  style: ae({ right: a.right + "px" })
9803
9806
  }, [
9804
9807
  a.showTimezone ? (b(), T("div", tn, [
9805
- (b(!0), T(ke, null, Le(a.offsets, (x) => (b(), T("div", {
9806
- key: x,
9808
+ (b(!0), T(ke, null, Le(a.offsets, (v) => (b(), T("div", {
9809
+ key: v,
9807
9810
  class: "item rounded text-body-2 hover-active",
9808
- onClick: (S) => a.timeZone = x
9809
- }, y(x < 0 ? x : "+" + x), 9, on))), 128))
9811
+ onClick: (S) => a.timeZone = v
9812
+ }, y(v < 0 ? v : "+" + v), 9, on))), 128))
9810
9813
  ])) : B("", !0),
9811
9814
  l("div", an, [
9812
9815
  h(d, {
@@ -9815,7 +9818,7 @@ function ln(t, e, o, i, a, r) {
9815
9818
  height: "28",
9816
9819
  class: "pa-1 text-body-1",
9817
9820
  color: "primary",
9818
- onClick: e[8] || (e[8] = (x) => a.showTimezone = !a.showTimezone)
9821
+ onClick: e[8] || (e[8] = (v) => a.showTimezone = !a.showTimezone)
9819
9822
  }, {
9820
9823
  default: u(() => [
9821
9824
  W(" UTC " + y(a.timeZone < 0 ? a.timeZone : "+" + a.timeZone), 1)
@@ -9832,7 +9835,7 @@ const sn = /* @__PURE__ */ Z(qs, [["render", ln]]), nn = {
9832
9835
  components: {
9833
9836
  IdmOtherLayer: gr,
9834
9837
  IdmWeatherLayer: es,
9835
- IdmTropicals: Va,
9838
+ IdmTropicals: Ya,
9836
9839
  IdmMeasure: Xs,
9837
9840
  IdmSpot: Us,
9838
9841
  IdmBottomBar: sn
@@ -9967,7 +9970,7 @@ class dn {
9967
9970
  ne(this, "hi");
9968
9971
  ne(this, "td");
9969
9972
  ne(this, "windy");
9970
- var o, i, a, r, s, n, c, g, p, d, f, z, x, S, C, N, M, L, v, _, P, k, R, V, X, q, Y, $, ee, Q, se, de, pe, me, K, ie, F, le, fe, xe, ve, Se, Me, Te, Re, Ie, ye, H, te, je, Pe, he, ue, G, _e, J, re, Ae, A, ge, Ce, De, Oe, I, U, Ue, Ve, Ye, ze, Ze, Xe, qe, Ke, Qe, Je, $e, et, tt, ot, at, it, rt, lt, st, nt, ct, mt, ht, dt, pt, ut, gt, ft, yt, bt, wt, xt, vt, _t, kt, zt, Lt, Pt, Ct, St, Mt, Tt, Rt, It, At, Dt, Ot, Bt, Et, jt, Nt, Ft, Ht, Gt, Wt, Ut, Vt, Yt, Zt, Xt, qt, Kt, Qt, Jt, lo, so, no, co, mo, ho, po, uo, go, fo, yo, bo, wo, xo, vo, _o, ko, zo, Lo, Po, Co, So, Mo, To, Ro, Io, Ao, Do, Oo, Bo, Eo, jo, No, Fo, Ho, Go, Wo, Uo, Vo, Yo, Zo, Xo, qo, Ko, Qo, Jo, $o, ea, ta, oa, aa, ia, ra, la, sa, na, ca, ma, ha, da, pa, ua, ga, fa, ya, ba, wa, xa, va, _a, ka, za, La, Pa, Ca, Sa, Ma, Ta, Ra, Ia, Aa, Da, Oa, Ba, Ea, ja, Na, Fa, Ha;
9973
+ var o, i, a, r, s, n, c, g, p, d, f, z, v, S, C, N, M, L, _, k, P, x, R, V, X, q, Y, $, ee, Q, se, de, pe, me, K, ie, F, le, fe, xe, ve, Se, Me, Te, Re, Ie, ye, H, te, je, Pe, he, ue, G, _e, J, re, Ae, A, ge, Ce, De, Oe, I, U, Ue, Ve, Ye, ze, Ze, Xe, qe, Ke, Qe, Je, $e, et, tt, ot, at, it, rt, lt, st, nt, ct, mt, ht, dt, pt, ut, gt, ft, yt, bt, wt, xt, vt, _t, kt, zt, Lt, Pt, Ct, St, Mt, Tt, Rt, It, At, Dt, Ot, Bt, Et, jt, Nt, Ft, Ht, Gt, Wt, Ut, Vt, Yt, Zt, Xt, qt, Kt, Qt, Jt, so, no, co, mo, ho, po, uo, go, fo, yo, bo, wo, xo, vo, _o, ko, zo, Lo, Po, Co, So, Mo, To, Ro, Io, Ao, Do, Oo, Bo, Eo, jo, No, Fo, Ho, Go, Wo, Uo, Vo, Yo, Zo, Xo, qo, Ko, Qo, Jo, $o, ea, ta, oa, aa, ia, ra, la, sa, na, ca, ma, ha, da, pa, ua, ga, fa, ya, ba, wa, xa, va, _a, ka, za, La, Pa, Ca, Sa, Ma, Ta, Ra, Ia, Aa, Da, Oa, Ba, Ea, ja, Na, Fa, Ha, Ga;
9971
9974
  this.i4 = {
9972
9975
  source: {
9973
9976
  type: "raster",
@@ -28549,11 +28552,11 @@ class dn {
28549
28552
  (g = (c = this.originStyle) == null ? void 0 : c.light.layers) == null ? void 0 : g.find((m) => m.id === "ice-area-line"),
28550
28553
  (d = (p = this.originStyle) == null ? void 0 : p.light.layers) == null ? void 0 : d.find((m) => m.id === "loadlines-label"),
28551
28554
  (z = (f = this.originStyle) == null ? void 0 : f.light.layers) == null ? void 0 : z.find((m) => m.id === "loadlines-fill"),
28552
- (S = (x = this.originStyle) == null ? void 0 : x.light.layers) == null ? void 0 : S.find((m) => m.id === "empty-layer-0"),
28555
+ (S = (v = this.originStyle) == null ? void 0 : v.light.layers) == null ? void 0 : S.find((m) => m.id === "empty-layer-0"),
28553
28556
  (N = (C = this.originStyle) == null ? void 0 : C.light.layers) == null ? void 0 : N.find((m) => m.id === "empty-layer-1"),
28554
28557
  (L = (M = this.originStyle) == null ? void 0 : M.light.layers) == null ? void 0 : L.find((m) => m.id === "country-boundaries"),
28555
- (_ = (v = this.originStyle) == null ? void 0 : v.light.layers) == null ? void 0 : _.find((m) => m.id === "water-outline"),
28556
- (k = (P = this.originStyle) == null ? void 0 : P.light.layers) == null ? void 0 : k.find((m) => m.id === "water-outline2"),
28558
+ (k = (_ = this.originStyle) == null ? void 0 : _.light.layers) == null ? void 0 : k.find((m) => m.id === "water-outline"),
28559
+ (x = (P = this.originStyle) == null ? void 0 : P.light.layers) == null ? void 0 : x.find((m) => m.id === "water-outline2"),
28557
28560
  (V = (R = this.originStyle) == null ? void 0 : R.light.layers) == null ? void 0 : V.find((m) => m.id === "empty-layer-2"),
28558
28561
  (q = (X = this.originStyle) == null ? void 0 : X.light.layers) == null ? void 0 : q.find((m) => m.id === "water-line-label"),
28559
28562
  ($ = (Y = this.originStyle) == null ? void 0 : Y.light.layers) == null ? void 0 : $.find((m) => m.id === "water-point-label"),
@@ -28647,65 +28650,65 @@ class dn {
28647
28650
  (Zt = (Yt = this.originStyle) == null ? void 0 : Yt.satellite.layers) == null ? void 0 : Zt.find((m) => m.id === "background"),
28648
28651
  (qt = (Xt = this.originStyle) == null ? void 0 : Xt.satellite.layers) == null ? void 0 : qt.find((m) => m.id === "satellite"),
28649
28652
  (Qt = (Kt = this.originStyle) == null ? void 0 : Kt.satellite.layers) == null ? void 0 : Qt.find((m) => m.id === "loadlines-label"),
28650
- (lo = (Jt = this.originStyle) == null ? void 0 : Jt.satellite.layers) == null ? void 0 : lo.find((m) => m.id === "loadlines-fill"),
28651
- (no = (so = this.originStyle) == null ? void 0 : so.satellite.layers) == null ? void 0 : no.find((m) => m.id === "empty-layer-0"),
28652
- (mo = (co = this.originStyle) == null ? void 0 : co.satellite.layers) == null ? void 0 : mo.find((m) => m.id === "empty-layer-1"),
28653
- (po = (ho = this.originStyle) == null ? void 0 : ho.satellite.layers) == null ? void 0 : po.find((m) => m.id === "country-boundaries"),
28654
- (go = (uo = this.originStyle) == null ? void 0 : uo.satellite.layers) == null ? void 0 : go.find((m) => m.id === "water-outline"),
28655
- (yo = (fo = this.originStyle) == null ? void 0 : fo.satellite.layers) == null ? void 0 : yo.find((m) => m.id === "empty-layer-2"),
28656
- (wo = (bo = this.originStyle) == null ? void 0 : bo.satellite.layers) == null ? void 0 : wo.find((m) => m.id === "world-12nm-v4-20231025"),
28657
- (vo = (xo = this.originStyle) == null ? void 0 : xo.satellite.layers) == null ? void 0 : vo.find((m) => m.id === "ne-10m-outline"),
28658
- (ko = (_o = this.originStyle) == null ? void 0 : _o.satellite.layers) == null ? void 0 : ko.find((m) => m.id === "ne-10m-label"),
28659
- (Lo = (zo = this.originStyle) == null ? void 0 : zo.satellite.layers) == null ? void 0 : Lo.find((m) => m.id === "china-route-line"),
28660
- (Co = (Po = this.originStyle) == null ? void 0 : Po.satellite.layers) == null ? void 0 : Co.find((m) => m.id === "china-route-fill"),
28661
- (Mo = (So = this.originStyle) == null ? void 0 : So.satellite.layers) == null ? void 0 : Mo.find((m) => m.id === "china-route-label"),
28662
- (Ro = (To = this.originStyle) == null ? void 0 : To.satellite.layers) == null ? void 0 : Ro.find((m) => m.id === "country-label"),
28663
- (Ao = (Io = this.originStyle) == null ? void 0 : Io.satellite.layers) == null ? void 0 : Ao.find((m) => m.id === "continent-label"),
28664
- (Oo = (Do = this.originStyle) == null ? void 0 : Do.satellite.layers) == null ? void 0 : Oo.find((m) => m.id === "tide-stations"),
28665
- (Eo = (Bo = this.originStyle) == null ? void 0 : Bo.satellite.layers) == null ? void 0 : Eo.find((m) => m.id === "ice-area-fill"),
28666
- (No = (jo = this.originStyle) == null ? void 0 : jo.satellite.layers) == null ? void 0 : No.find((m) => m.id === "ice-area-line"),
28667
- (Ho = (Fo = this.originStyle) == null ? void 0 : Fo.satellite.layers) == null ? void 0 : Ho.find((m) => m.id === "empty-layer-3"),
28668
- (Wo = (Go = this.originStyle) == null ? void 0 : Go.satellite.layers) == null ? void 0 : Wo.find((m) => m.id === "empty-layer-4")
28653
+ (so = (Jt = this.originStyle) == null ? void 0 : Jt.satellite.layers) == null ? void 0 : so.find((m) => m.id === "loadlines-fill"),
28654
+ (co = (no = this.originStyle) == null ? void 0 : no.satellite.layers) == null ? void 0 : co.find((m) => m.id === "empty-layer-0"),
28655
+ (ho = (mo = this.originStyle) == null ? void 0 : mo.satellite.layers) == null ? void 0 : ho.find((m) => m.id === "empty-layer-1"),
28656
+ (uo = (po = this.originStyle) == null ? void 0 : po.satellite.layers) == null ? void 0 : uo.find((m) => m.id === "country-boundaries"),
28657
+ (fo = (go = this.originStyle) == null ? void 0 : go.satellite.layers) == null ? void 0 : fo.find((m) => m.id === "water-outline"),
28658
+ (bo = (yo = this.originStyle) == null ? void 0 : yo.satellite.layers) == null ? void 0 : bo.find((m) => m.id === "empty-layer-2"),
28659
+ (xo = (wo = this.originStyle) == null ? void 0 : wo.satellite.layers) == null ? void 0 : xo.find((m) => m.id === "world-12nm-v4-20231025"),
28660
+ (_o = (vo = this.originStyle) == null ? void 0 : vo.satellite.layers) == null ? void 0 : _o.find((m) => m.id === "ne-10m-outline"),
28661
+ (zo = (ko = this.originStyle) == null ? void 0 : ko.satellite.layers) == null ? void 0 : zo.find((m) => m.id === "ne-10m-label"),
28662
+ (Po = (Lo = this.originStyle) == null ? void 0 : Lo.satellite.layers) == null ? void 0 : Po.find((m) => m.id === "china-route-line"),
28663
+ (So = (Co = this.originStyle) == null ? void 0 : Co.satellite.layers) == null ? void 0 : So.find((m) => m.id === "china-route-fill"),
28664
+ (To = (Mo = this.originStyle) == null ? void 0 : Mo.satellite.layers) == null ? void 0 : To.find((m) => m.id === "china-route-label"),
28665
+ (Io = (Ro = this.originStyle) == null ? void 0 : Ro.satellite.layers) == null ? void 0 : Io.find((m) => m.id === "country-label"),
28666
+ (Do = (Ao = this.originStyle) == null ? void 0 : Ao.satellite.layers) == null ? void 0 : Do.find((m) => m.id === "continent-label"),
28667
+ (Bo = (Oo = this.originStyle) == null ? void 0 : Oo.satellite.layers) == null ? void 0 : Bo.find((m) => m.id === "tide-stations"),
28668
+ (jo = (Eo = this.originStyle) == null ? void 0 : Eo.satellite.layers) == null ? void 0 : jo.find((m) => m.id === "ice-area-fill"),
28669
+ (Fo = (No = this.originStyle) == null ? void 0 : No.satellite.layers) == null ? void 0 : Fo.find((m) => m.id === "ice-area-line"),
28670
+ (Go = (Ho = this.originStyle) == null ? void 0 : Ho.satellite.layers) == null ? void 0 : Go.find((m) => m.id === "empty-layer-3"),
28671
+ (Uo = (Wo = this.originStyle) == null ? void 0 : Wo.satellite.layers) == null ? void 0 : Uo.find((m) => m.id === "empty-layer-4")
28669
28672
  ]
28670
28673
  },
28671
28674
  nautical: {
28672
28675
  version: 8,
28673
28676
  name: "nautical",
28674
- metadata: (Uo = this.originStyle) == null ? void 0 : Uo.nautical.metadata,
28677
+ metadata: (Vo = this.originStyle) == null ? void 0 : Vo.nautical.metadata,
28675
28678
  center: [-34, 38],
28676
28679
  zoom: 2,
28677
28680
  terrain: null,
28678
- imports: (Vo = this.originStyle) == null ? void 0 : Vo.nautical.imports,
28679
- sources: (Yo = this.originStyle) == null ? void 0 : Yo.nautical.sources,
28680
- sprite: (Zo = this.originStyle) == null ? void 0 : Zo.nautical.sprite,
28681
- glyphs: (Xo = this.originStyle) == null ? void 0 : Xo.nautical.glyphs,
28682
- projection: (qo = this.originStyle) == null ? void 0 : qo.nautical.projection,
28681
+ imports: (Yo = this.originStyle) == null ? void 0 : Yo.nautical.imports,
28682
+ sources: (Zo = this.originStyle) == null ? void 0 : Zo.nautical.sources,
28683
+ sprite: (Xo = this.originStyle) == null ? void 0 : Xo.nautical.sprite,
28684
+ glyphs: (qo = this.originStyle) == null ? void 0 : qo.nautical.glyphs,
28685
+ projection: (Ko = this.originStyle) == null ? void 0 : Ko.nautical.projection,
28683
28686
  layers: [
28684
28687
  this.i4.layer,
28685
28688
  // this.hi.layer,
28686
- (Qo = (Ko = this.originStyle) == null ? void 0 : Ko.nautical.layers) == null ? void 0 : Qo.find((m) => m.id === "ice-area-fill"),
28687
- ($o = (Jo = this.originStyle) == null ? void 0 : Jo.nautical.layers) == null ? void 0 : $o.find((m) => m.id === "ice-area-line"),
28688
- (ta = (ea = this.originStyle) == null ? void 0 : ea.nautical.layers) == null ? void 0 : ta.find((m) => m.id === "loadlines-label"),
28689
- (aa = (oa = this.originStyle) == null ? void 0 : oa.nautical.layers) == null ? void 0 : aa.find((m) => m.id === "loadlines-fill"),
28690
- (ra = (ia = this.originStyle) == null ? void 0 : ia.nautical.layers) == null ? void 0 : ra.find((m) => m.id === "empty-layer-0"),
28691
- (sa = (la = this.originStyle) == null ? void 0 : la.nautical.layers) == null ? void 0 : sa.find((m) => m.id === "empty-layer-1"),
28692
- (ca = (na = this.originStyle) == null ? void 0 : na.nautical.layers) == null ? void 0 : ca.find((m) => m.id === "empty-layer-2"),
28693
- (ha = (ma = this.originStyle) == null ? void 0 : ma.nautical.layers) == null ? void 0 : ha.find((m) => m.id === "country-boundaries"),
28694
- (pa = (da = this.originStyle) == null ? void 0 : da.nautical.layers) == null ? void 0 : pa.find((m) => m.id === "water-outline"),
28695
- (ga = (ua = this.originStyle) == null ? void 0 : ua.nautical.layers) == null ? void 0 : ga.find((m) => m.id === "world-12nm-v4-20231025"),
28696
- (ya = (fa = this.originStyle) == null ? void 0 : fa.nautical.layers) == null ? void 0 : ya.find((m) => m.id === "ne-10m-outline"),
28697
- (wa = (ba = this.originStyle) == null ? void 0 : ba.nautical.layers) == null ? void 0 : wa.find((m) => m.id === "ne-10m-label"),
28698
- (va = (xa = this.originStyle) == null ? void 0 : xa.nautical.layers) == null ? void 0 : va.find((m) => m.id === "china-route-line"),
28699
- (ka = (_a = this.originStyle) == null ? void 0 : _a.nautical.layers) == null ? void 0 : ka.find((m) => m.id === "china-route-fill"),
28700
- (La = (za = this.originStyle) == null ? void 0 : za.nautical.layers) == null ? void 0 : La.find((m) => m.id === "china-route-label"),
28701
- (Ca = (Pa = this.originStyle) == null ? void 0 : Pa.light.layers) == null ? void 0 : Ca.find((m) => m.id === "admin-0-boundary-bg"),
28702
- (Ma = (Sa = this.originStyle) == null ? void 0 : Sa.light.layers) == null ? void 0 : Ma.find((m) => m.id === "admin-0-boundary"),
28703
- (Ra = (Ta = this.originStyle) == null ? void 0 : Ta.light.layers) == null ? void 0 : Ra.find((m) => m.id === "admin-0-boundary-disputed"),
28704
- (Aa = (Ia = this.originStyle) == null ? void 0 : Ia.light.layers) == null ? void 0 : Aa.find((m) => m.id === "country-label"),
28705
- (Oa = (Da = this.originStyle) == null ? void 0 : Da.light.layers) == null ? void 0 : Oa.find((m) => m.id === "continent-label"),
28706
- (Ea = (Ba = this.originStyle) == null ? void 0 : Ba.nautical.layers) == null ? void 0 : Ea.find((m) => m.id === "tide-stations"),
28707
- (Na = (ja = this.originStyle) == null ? void 0 : ja.nautical.layers) == null ? void 0 : Na.find((m) => m.id === "empty-layer-3"),
28708
- (Ha = (Fa = this.originStyle) == null ? void 0 : Fa.nautical.layers) == null ? void 0 : Ha.find((m) => m.id === "empty-layer-4")
28689
+ (Jo = (Qo = this.originStyle) == null ? void 0 : Qo.nautical.layers) == null ? void 0 : Jo.find((m) => m.id === "ice-area-fill"),
28690
+ (ea = ($o = this.originStyle) == null ? void 0 : $o.nautical.layers) == null ? void 0 : ea.find((m) => m.id === "ice-area-line"),
28691
+ (oa = (ta = this.originStyle) == null ? void 0 : ta.nautical.layers) == null ? void 0 : oa.find((m) => m.id === "loadlines-label"),
28692
+ (ia = (aa = this.originStyle) == null ? void 0 : aa.nautical.layers) == null ? void 0 : ia.find((m) => m.id === "loadlines-fill"),
28693
+ (la = (ra = this.originStyle) == null ? void 0 : ra.nautical.layers) == null ? void 0 : la.find((m) => m.id === "empty-layer-0"),
28694
+ (na = (sa = this.originStyle) == null ? void 0 : sa.nautical.layers) == null ? void 0 : na.find((m) => m.id === "empty-layer-1"),
28695
+ (ma = (ca = this.originStyle) == null ? void 0 : ca.nautical.layers) == null ? void 0 : ma.find((m) => m.id === "empty-layer-2"),
28696
+ (da = (ha = this.originStyle) == null ? void 0 : ha.nautical.layers) == null ? void 0 : da.find((m) => m.id === "country-boundaries"),
28697
+ (ua = (pa = this.originStyle) == null ? void 0 : pa.nautical.layers) == null ? void 0 : ua.find((m) => m.id === "water-outline"),
28698
+ (fa = (ga = this.originStyle) == null ? void 0 : ga.nautical.layers) == null ? void 0 : fa.find((m) => m.id === "world-12nm-v4-20231025"),
28699
+ (ba = (ya = this.originStyle) == null ? void 0 : ya.nautical.layers) == null ? void 0 : ba.find((m) => m.id === "ne-10m-outline"),
28700
+ (xa = (wa = this.originStyle) == null ? void 0 : wa.nautical.layers) == null ? void 0 : xa.find((m) => m.id === "ne-10m-label"),
28701
+ (_a = (va = this.originStyle) == null ? void 0 : va.nautical.layers) == null ? void 0 : _a.find((m) => m.id === "china-route-line"),
28702
+ (za = (ka = this.originStyle) == null ? void 0 : ka.nautical.layers) == null ? void 0 : za.find((m) => m.id === "china-route-fill"),
28703
+ (Pa = (La = this.originStyle) == null ? void 0 : La.nautical.layers) == null ? void 0 : Pa.find((m) => m.id === "china-route-label"),
28704
+ (Sa = (Ca = this.originStyle) == null ? void 0 : Ca.light.layers) == null ? void 0 : Sa.find((m) => m.id === "admin-0-boundary-bg"),
28705
+ (Ta = (Ma = this.originStyle) == null ? void 0 : Ma.light.layers) == null ? void 0 : Ta.find((m) => m.id === "admin-0-boundary"),
28706
+ (Ia = (Ra = this.originStyle) == null ? void 0 : Ra.light.layers) == null ? void 0 : Ia.find((m) => m.id === "admin-0-boundary-disputed"),
28707
+ (Da = (Aa = this.originStyle) == null ? void 0 : Aa.light.layers) == null ? void 0 : Da.find((m) => m.id === "country-label"),
28708
+ (Ba = (Oa = this.originStyle) == null ? void 0 : Oa.light.layers) == null ? void 0 : Ba.find((m) => m.id === "continent-label"),
28709
+ (ja = (Ea = this.originStyle) == null ? void 0 : Ea.nautical.layers) == null ? void 0 : ja.find((m) => m.id === "tide-stations"),
28710
+ (Fa = (Na = this.originStyle) == null ? void 0 : Na.nautical.layers) == null ? void 0 : Fa.find((m) => m.id === "empty-layer-3"),
28711
+ (Ga = (Ha = this.originStyle) == null ? void 0 : Ha.nautical.layers) == null ? void 0 : Ga.find((m) => m.id === "empty-layer-4")
28709
28712
  ],
28710
28713
  created: "2025-07-22T02:15:53.587Z",
28711
28714
  modified: "2025-08-07T10:15:43.870Z",
@@ -28850,23 +28853,26 @@ function yn(t, e, o, i, a, r) {
28850
28853
  }, 8, ["onClick"])
28851
28854
  ])
28852
28855
  ], 4),
28853
- e[3] || (e[3] = l("div", { class: "position-absolute left-0 bottom-0 ma-2" }, "Copyright: Ocean right marine", -1))
28856
+ e[3] || (e[3] = l("div", { class: "position-absolute left-0 bottom-0 ma-2 my-1 text-body-2 text-label" }, [
28857
+ W(" Copyright: © 2023-2025 ormwx.com "),
28858
+ l("span", { class: "text-decoration-underline" }, "沪ICP备18039043号-6")
28859
+ ], -1))
28854
28860
  ]);
28855
28861
  }
28856
28862
  const bn = /* @__PURE__ */ Z(pn, [["render", yn]]), Tn = {
28857
28863
  install(t) {
28858
- t.component("MapInitial", bn), t.component("MapboxGL", hn), t.component("TropicalGL", Va), t.component("LatLngGL", Ua), t.component("DateTimePicker", ro);
28864
+ t.component("MapInitial", bn), t.component("MapboxGL", hn), t.component("TropicalGL", Ya), t.component("LatLngGL", Va), t.component("DateTimePicker", lo);
28859
28865
  }
28860
28866
  };
28861
28867
  export {
28862
- ro as DateTimePicker,
28863
- Ua as LatLngGL,
28868
+ lo as DateTimePicker,
28869
+ Va as LatLngGL,
28864
28870
  bn as MapInitial,
28865
28871
  hn as MapboxGL,
28866
28872
  Tn as MapboxGLPlugin,
28867
28873
  be as ParticleSchema,
28868
- Va as TropicalGL,
28869
- io as Viewport,
28874
+ Ya as TropicalGL,
28875
+ ro as Viewport,
28870
28876
  Ne as WebGL,
28871
28877
  ce as WebGLSchema
28872
28878
  };