@idmwx/idmui-gl3 6.3.0 → 6.3.6

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,15 +1,15 @@
1
1
  var mt = Object.defineProperty;
2
2
  var ut = (a, e, t) => e in a ? mt(a, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : a[e] = t;
3
- var ae = (a, e, t) => (ut(a, typeof e != "symbol" ? e + "" : e, t), t);
3
+ var ie = (a, e, t) => (ut(a, typeof e != "symbol" ? e + "" : e, t), t);
4
4
  import { LayerHelper as Ze, CompanyHelper as qe } from "@idm-plugin/tag";
5
5
  import ee from "moment";
6
6
  import Qe from "axios";
7
7
  import Ye from "moment-timezone";
8
- import { resolveComponent as R, openBlock as u, createElementBlock as g, createElementVNode as o, normalizeStyle as he, createVNode as H, withCtx as Ie, normalizeClass as Z, Fragment as V, renderList as $, toDisplayString as E, createCommentVNode as J, createBlock as gt, createTextVNode as le, withDirectives as Fe, createStaticVNode as yt, vShow as Oe, defineComponent as ft, withModifiers as Ve, mergeProps as X } from "vue";
9
- import * as S from "@turf/turf";
8
+ import { resolveComponent as R, openBlock as u, createElementBlock as g, createElementVNode as o, normalizeStyle as de, createVNode as F, withCtx as Ie, normalizeClass as Z, Fragment as V, renderList as $, toDisplayString as k, createCommentVNode as J, createBlock as gt, createTextVNode as ce, withDirectives as Fe, createStaticVNode as yt, vShow as Oe, defineComponent as ft, withModifiers as Ve, mergeProps as X } from "vue";
9
+ import * as T from "@turf/turf";
10
10
  import At from "@mapbox/sphericalmercator";
11
11
  import Re from "mapbox-gl";
12
- import { TropicalHelper as ct, LngLatHelper as oe, LaneHelper as je } from "@idm-plugin/geo";
12
+ import { TropicalHelper as ct, LngLatHelper as ne, LaneHelper as je } from "@idm-plugin/geo";
13
13
  import { TidesAssist as $e, Meteo2Assist as Ke } from "@idm-plugin/meteo";
14
14
  const U = (a, e) => {
15
15
  const t = a.__vccOpts || a;
@@ -305,10 +305,10 @@ function aa(a, e, t, r, i, s) {
305
305
  return u(), g("div", vt, [
306
306
  o("div", {
307
307
  class: "menu-bar-box",
308
- style: he({ top: t.top + 10 + "px", right: i.right + "px" })
308
+ style: de({ top: t.top + 10 + "px", right: i.right + "px" })
309
309
  }, [
310
310
  o("div", bt, [
311
- H(n, {
311
+ F(n, {
312
312
  placement: "left",
313
313
  effect: "light",
314
314
  content: "Menu",
@@ -328,10 +328,10 @@ function aa(a, e, t, r, i, s) {
328
328
  ], 4),
329
329
  o("div", {
330
330
  class: "menu-bar-box",
331
- style: he({ top: t.top + 160 + "px", right: i.right + "px" })
331
+ style: de({ top: t.top + 160 + "px", right: i.right + "px" })
332
332
  }, [
333
333
  o("div", Lt, [
334
- H(n, {
334
+ F(n, {
335
335
  placement: "left",
336
336
  effect: "light",
337
337
  content: "Measure",
@@ -347,7 +347,7 @@ function aa(a, e, t, r, i, s) {
347
347
  ]),
348
348
  _: 1
349
349
  }),
350
- H(n, {
350
+ F(n, {
351
351
  placement: "left",
352
352
  effect: "light",
353
353
  content: "Point Meteo",
@@ -363,7 +363,7 @@ function aa(a, e, t, r, i, s) {
363
363
  ]),
364
364
  _: 1
365
365
  }),
366
- H(n, {
366
+ F(n, {
367
367
  placement: "left",
368
368
  effect: "light",
369
369
  content: "Grid",
@@ -379,7 +379,7 @@ function aa(a, e, t, r, i, s) {
379
379
  ]),
380
380
  _: 1
381
381
  }),
382
- H(n, {
382
+ F(n, {
383
383
  placement: "left",
384
384
  effect: "light",
385
385
  content: "3D",
@@ -400,7 +400,7 @@ function aa(a, e, t, r, i, s) {
400
400
  s.hasCollectedLayers ? (u(), g("div", {
401
401
  key: 0,
402
402
  class: "active-layers",
403
- style: he({ right: i.right + "px", bottom: "100px" })
403
+ style: de({ right: i.right + "px", bottom: "100px" })
404
404
  }, [
405
405
  o("div", Ct, [
406
406
  e[22] || (e[22] = o("div", { style: { margin: "2px 5px" } }, "Weather Layers", -1)),
@@ -423,7 +423,7 @@ function aa(a, e, t, r, i, s) {
423
423
  o("span", {
424
424
  class: "name",
425
425
  onClick: (p) => s.handleWeatherLayerPick(h)
426
- }, E(h.name), 9, It),
426
+ }, k(h.name), 9, It),
427
427
  h.key === "wind" && i.activeWeatherLayersCollected.some((p) => p.key === h.key) ? (u(), g("div", Et, [
428
428
  o("i", {
429
429
  class: Z(["iconfont sub-layer-icon", i.showWindParticleCollected ? "active" : ""]),
@@ -448,7 +448,7 @@ function aa(a, e, t, r, i, s) {
448
448
  ], 4)) : J("", !0),
449
449
  o("div", {
450
450
  class: "available-layers flex-center",
451
- style: he({ top: t.top + "px", right: t.layerToggle ? "0px" : "-240px" })
451
+ style: de({ top: t.top + "px", right: t.layerToggle ? "0px" : "-240px" })
452
452
  }, [
453
453
  o("div", {
454
454
  class: Z(["list-box", t.layerToggle ? "right-bar" : ""])
@@ -460,7 +460,7 @@ function aa(a, e, t, r, i, s) {
460
460
  onClick: e[10] || (e[10] = (...h) => s.handleMenuToggle && s.handleMenuToggle(...h))
461
461
  }, "")
462
462
  ]),
463
- H(d, { style: { flex: "1" } }, {
463
+ F(d, { style: { flex: "1" } }, {
464
464
  default: Ie(() => [
465
465
  o("div", zt, [
466
466
  o("div", Pt, [
@@ -489,7 +489,7 @@ function aa(a, e, t, r, i, s) {
489
489
  o("span", {
490
490
  class: "name",
491
491
  onClick: (p) => s.handleWeatherLayerPick(h)
492
- }, E(h.name), 9, Nt),
492
+ }, k(h.name), 9, Nt),
493
493
  h.key === "wind" && i.activeWeatherLayersCollected.some((p) => p.key === h.key) ? (u(), g("div", Ft, [
494
494
  o("i", {
495
495
  class: Z(["iconfont sub-layer-icon", i.showWindParticleCollected ? "active" : ""]),
@@ -535,13 +535,13 @@ function aa(a, e, t, r, i, s) {
535
535
  return u(), g("div", {
536
536
  key: h.key,
537
537
  class: Z(["layer flex-between", s.computeLayerClass(h, i.activeOtherLayers)]),
538
- onClick: (v) => s.handleOtherLayerPick(h)
538
+ onClick: (b) => s.handleOtherLayerPick(h)
539
539
  }, [
540
540
  o("div", Kt, [
541
541
  o("div", Xt, [
542
542
  (p = s.computeLayerClass(h, i.activeOtherLayers)) != null && p.includes("active") ? (u(), g("i", Jt, "")) : (u(), g("i", qt, ""))
543
543
  ]),
544
- o("span", null, E(h.name), 1)
544
+ o("span", null, k(h.name), 1)
545
545
  ])
546
546
  ], 10, Yt);
547
547
  }), 128))
@@ -550,7 +550,7 @@ function aa(a, e, t, r, i, s) {
550
550
  o("div", Vt, [
551
551
  e[27] || (e[27] = o("span", { class: "layers-title" }, "Forecast Model", -1)),
552
552
  o("div", Zt, [
553
- H(c, {
553
+ F(c, {
554
554
  modelValue: i.source,
555
555
  "onUpdate:modelValue": e[16] || (e[16] = (h) => i.source = h),
556
556
  class: "layer-radio flex-col-start-start",
@@ -562,11 +562,11 @@ function aa(a, e, t, r, i, s) {
562
562
  value: h.name
563
563
  }, {
564
564
  default: Ie(() => {
565
- var v, C, _, f, k, B;
565
+ var b, x, E, A, B, _;
566
566
  return [
567
- le(E(h.name) + " ", 1),
568
- p !== 0 ? (u(), g("span", $t, E(h.resolution) + "km " + E(h.length) + "days", 1)) : J("", !0),
569
- p === 0 ? (u(), g("div", ea, "Provides the best forecast")) : (_ = (C = (v = h == null ? void 0 : h.update) == null ? void 0 : v.default) == null ? void 0 : C.meta) != null && _.initialisationTime ? (u(), g("div", ta, "Update: " + E(s.computeDateZ((B = (k = (f = h == null ? void 0 : h.update) == null ? void 0 : f.default) == null ? void 0 : k.meta) == null ? void 0 : B.initialisationTime)), 1)) : J("", !0)
567
+ ce(k(h.name) + " ", 1),
568
+ p !== 0 ? (u(), g("span", $t, k(h.resolution) + "km " + k(h.length) + "days", 1)) : J("", !0),
569
+ p === 0 ? (u(), g("div", ea, "Provides the best forecast")) : (E = (x = (b = h == null ? void 0 : h.update) == null ? void 0 : b.default) == null ? void 0 : x.meta) != null && E.initialisationTime ? (u(), g("div", ta, "Update: " + k(s.computeDateZ((_ = (B = (A = h == null ? void 0 : h.update) == null ? void 0 : A.default) == null ? void 0 : B.meta) == null ? void 0 : _.initialisationTime)), 1)) : J("", !0)
570
570
  ];
571
571
  }),
572
572
  _: 2
@@ -622,7 +622,7 @@ const ra = {
622
622
  return {
623
623
  source: "wind-barb-source",
624
624
  barbs: [0, 2, 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60, 65, 70, 75, 80, 85, 90, 95, 100, 105],
625
- empty: S.featureCollection([]),
625
+ empty: T.featureCollection([]),
626
626
  right: 10,
627
627
  bottom: 125,
628
628
  windBarbLoaded: !1
@@ -732,15 +732,15 @@ function sa(a, e, t, r, i, s) {
732
732
  const oa = /* @__PURE__ */ U(ra, [["render", sa]]);
733
733
  class et {
734
734
  constructor(e) {
735
- ae(this, "map");
736
- ae(this, "mercator");
737
- ae(this, "rampColorLayer");
738
- ae(this, "rampColorSource");
739
- ae(this, "particleLayer");
740
- ae(this, "particleSource");
741
- ae(this, "rampColorCanvas");
742
- ae(this, "particleCanvas");
743
- ae(this, "ratio");
735
+ ie(this, "map");
736
+ ie(this, "mercator");
737
+ ie(this, "rampColorLayer");
738
+ ie(this, "rampColorSource");
739
+ ie(this, "particleLayer");
740
+ ie(this, "particleSource");
741
+ ie(this, "rampColorCanvas");
742
+ ie(this, "particleCanvas");
743
+ ie(this, "ratio");
744
744
  this.map = e, this.mercator = new At(), this.rampColorLayer = "ramp-color-layer", this.rampColorSource = "ramp-color-source", this.particleLayer = "particle-layer", this.particleSource = "particle-source", this.rampColorCanvas = document.createElement("canvas"), this.particleCanvas = document.createElement("canvas"), this.ratio = window.devicePixelRatio;
745
745
  }
746
746
  /**
@@ -775,8 +775,8 @@ class et {
775
775
  * @param [lb.x, lb.y, rt.x, rt.y]
776
776
  */
777
777
  getBoundPixel() {
778
- const e = this.map.getBounds(), t = this.map.getZoom() + 1, r = [e._ne.lng, e._ne.lat], i = [e._sw.lng, e._sw.lat], [s, n] = this.convertNLng(r[0]), [l, c] = this.convertNLng(i[0]), [d, h] = this.mercator.px([s, r[1]], t), [p, v] = this.mercator.px([l, i[1]], t), C = Math.round(this.mercator.size * Math.pow(2, t) * (n + c));
779
- return [p, v, d + C, h];
778
+ const e = this.map.getBounds(), t = this.map.getZoom() + 1, r = [e._ne.lng, e._ne.lat], i = [e._sw.lng, e._sw.lat], [s, n] = this.convertNLng(r[0]), [l, c] = this.convertNLng(i[0]), [d, h] = this.mercator.px([s, r[1]], t), [p, b] = this.mercator.px([l, i[1]], t), x = Math.round(this.mercator.size * Math.pow(2, t) * (n + c));
779
+ return [p, b, d + x, h];
780
780
  }
781
781
  /**
782
782
  * [视窗边界像素宽度]
@@ -957,9 +957,9 @@ class We {
957
957
  sRange: t.getUniformLocation(r, "u_range_s")
958
958
  };
959
959
  h.resolution && t.uniform2f(h.resolution, t.canvas.width * e.ratio, t.canvas.height * e.ratio), t.activeTexture(t.TEXTURE0), t.bindTexture(t.TEXTURE_2D, i), h.image && t.uniform1i(h.image, 0), t.activeTexture(t.TEXTURE1), t.bindTexture(t.TEXTURE_2D, s), h.color && t.uniform1i(h.color, 1), l != null && l.uvRange && (l != null && l.sRange) && (h.uvRange && t.uniform2f(h.uvRange, l.uvRange[0], l.uvRange[1]), h.sRange && t.uniform2f(h.sRange, l.sRange[0], l.sRange[1])), h.scale && t.uniform1f(h.scale, (l == null ? void 0 : l.scale) || 1);
960
- const p = e.getBoundPixel(), v = e.map.getZoom() + 1, C = e.getWorldCopy(p, v);
961
- for (const _ of C) {
962
- const f = (_[0] - p[0]) * e.ratio, k = (_[1] - p[3]) * e.ratio, B = _[2] * e.ratio, [A, w, m, L] = [f, B + f, k, B + k], y = new Float32Array([A, m, w, m, A, L, A, L, w, m, w, L]);
960
+ const p = e.getBoundPixel(), b = e.map.getZoom() + 1, x = e.getWorldCopy(p, b);
961
+ for (const E of x) {
962
+ const A = (E[0] - p[0]) * e.ratio, B = (E[1] - p[3]) * e.ratio, _ = E[2] * e.ratio, [f, v, m, L] = [A, _ + A, B, _ + B], y = new Float32Array([f, m, v, m, f, L, f, L, v, m, v, L]);
963
963
  t.bindBuffer(t.ARRAY_BUFFER, n), t.bufferData(t.ARRAY_BUFFER, y, t.STATIC_DRAW), t.drawArrays(t.TRIANGLES, 0, 6);
964
964
  }
965
965
  } catch (h) {
@@ -1008,10 +1008,10 @@ class We {
1008
1008
  });
1009
1009
  }
1010
1010
  }
1011
- class ne {
1011
+ class le {
1012
1012
  }
1013
1013
  // 顶点渲染
1014
- ae(ne, "vertexSchema", `
1014
+ ie(le, "vertexSchema", `
1015
1015
  //canvas 坐标系上的坐标 (x, y)
1016
1016
  attribute vec2 a_position; //像素坐标
1017
1017
  attribute vec2 a_texCoord; //纹理坐标
@@ -1026,7 +1026,7 @@ ae(ne, "vertexSchema", `
1026
1026
  gl_Position = vec4(position * vec2(1, -1), 0.0, 1.0);
1027
1027
  v_texCoord = a_texCoord;
1028
1028
  }`), // 类如风、流等u v双变量片元渲染
1029
- ae(ne, "uvFragmentSchema", `
1029
+ ie(le, "uvFragmentSchema", `
1030
1030
  precision mediump float;
1031
1031
  uniform sampler2D u_image;
1032
1032
  uniform vec2 u_range_u_v;
@@ -1046,7 +1046,7 @@ ae(ne, "uvFragmentSchema", `
1046
1046
 
1047
1047
  gl_FragColor = color;
1048
1048
  }`), // 类如浪、气压等单变量片元渲染
1049
- ae(ne, "fragmentSchema", `
1049
+ ie(le, "fragmentSchema", `
1050
1050
  precision mediump float;
1051
1051
  uniform sampler2D u_image; // 灰度
1052
1052
  uniform sampler2D u_color; // 色值映射
@@ -1059,7 +1059,7 @@ ae(ne, "fragmentSchema", `
1059
1059
  }`);
1060
1060
  class Ce {
1061
1061
  }
1062
- ae(Ce, "vertexSchema", `
1062
+ ie(Ce, "vertexSchema", `
1063
1063
  precision mediump float;
1064
1064
 
1065
1065
  attribute float a_index; // 索引
@@ -1083,7 +1083,7 @@ ae(Ce, "vertexSchema", `
1083
1083
  gl_PointSize = 1.0;
1084
1084
  // gl_PointSize = u_point;
1085
1085
  gl_Position = vec4(2.0 * v_particle_pos.x - 1.0, 1.0 - 2.0 * v_particle_pos.y, 0, 1);
1086
- }`), ae(Ce, "fragmentSchema", `
1086
+ }`), ie(Ce, "fragmentSchema", `
1087
1087
  precision mediump float;
1088
1088
 
1089
1089
  uniform sampler2D u_factor;
@@ -1105,7 +1105,7 @@ ae(Ce, "vertexSchema", `
1105
1105
 
1106
1106
  float f = 1.0 - uv.b;
1107
1107
  gl_FragColor = texture2D(u_color_ramp, ramp_pos) * f;
1108
- }`), ae(Ce, "quadVertSchema", `
1108
+ }`), ie(Ce, "quadVertSchema", `
1109
1109
  precision mediump float;
1110
1110
 
1111
1111
  attribute vec2 a_pos;
@@ -1115,7 +1115,7 @@ ae(Ce, "vertexSchema", `
1115
1115
  void main() {
1116
1116
  v_tex_pos = a_pos;
1117
1117
  gl_Position = vec4(1.0 - 2.0 * a_pos, 0, 1);
1118
- }`), ae(Ce, "screenFragmentSchema", `
1118
+ }`), ie(Ce, "screenFragmentSchema", `
1119
1119
  precision mediump float;
1120
1120
 
1121
1121
  uniform sampler2D u_screen;
@@ -1127,7 +1127,7 @@ ae(Ce, "vertexSchema", `
1127
1127
  vec4 color = texture2D(u_screen, 1.0 - v_tex_pos);
1128
1128
  // a hack to guarantee opacity fade out even with a value close to 1.0
1129
1129
  gl_FragColor = vec4(floor(255.0 * color * u_opacity) / 255.0);
1130
- }`), ae(Ce, "updateFragmentSchema", `
1130
+ }`), ie(Ce, "updateFragmentSchema", `
1131
1131
  precision mediump float;
1132
1132
 
1133
1133
  uniform sampler2D u_particles;
@@ -1208,12 +1208,12 @@ ae(Ce, "vertexSchema", `
1208
1208
  }`);
1209
1209
  class na {
1210
1210
  constructor(e = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImNseTVudHJzYzAwNWUwbHBsZHkyaDRqczMiLCJyb2xlIjoxLCJuYW1lIjoiZmFrZUBvcm13eC5jb20iLCJwbGF0SWQiOiJnZDBtdDFkIiwiY29tcGFueSI6eyJpZCI6bnVsbCwiY2hpbGRyZW4iOltdfSwiaWF0IjoxNzIzMDI0MDI0LCJleHAiOjM5MzA1NDQwMjR9.RrKcdcMnq-FxBLJQ-i6lx2FscDE46y8EvHIemPW4HTg") {
1211
- ae(this, "token");
1212
- ae(this, "mapboxCustomer");
1213
- ae(this, "i4");
1214
- ae(this, "hi");
1215
- ae(this, "td");
1216
- ae(this, "windy");
1211
+ ie(this, "token");
1212
+ ie(this, "mapboxCustomer");
1213
+ ie(this, "i4");
1214
+ ie(this, "hi");
1215
+ ie(this, "td");
1216
+ ie(this, "windy");
1217
1217
  this.token = e, this.mapboxCustomer = {
1218
1218
  source: this.initialOnlineStyle().sources.composite,
1219
1219
  layers: {
@@ -3210,7 +3210,7 @@ const la = {
3210
3210
  [1, "rgb(91, 136, 161)"]
3211
3211
  ];
3212
3212
  this.rampColor = this.webgl.setup(this.context, a);
3213
- const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, ne.vertexSchema, ne.uvFragmentSchema);
3213
+ const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, le.vertexSchema, le.uvFragmentSchema);
3214
3214
  this.program = e, this.aPositionBuffer = t;
3215
3215
  }
3216
3216
  this.handleParticleSetup();
@@ -3264,7 +3264,7 @@ function ca(a, e, t, r, i, s) {
3264
3264
  return (n = t.factor) != null && n.active ? (u(), g("div", ha, [
3265
3265
  o("div", {
3266
3266
  class: "legend-bars flex-center",
3267
- style: he([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
3267
+ style: de([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
3268
3268
  }, e[0] || (e[0] = [
3269
3269
  o("span", null, "kts", -1),
3270
3270
  o("span", null, "0", -1),
@@ -3319,7 +3319,7 @@ const pa = {
3319
3319
  directionLayer: "current-direction-layer",
3320
3320
  speedLayer: "current-speed-layer",
3321
3321
  speedLabelLayer: "current-speed-label-layer",
3322
- empty: S.featureCollection([]),
3322
+ empty: T.featureCollection([]),
3323
3323
  right: 10,
3324
3324
  bottom: 95
3325
3325
  };
@@ -3538,7 +3538,7 @@ const ga = {
3538
3538
  [1, "rgb(195,194,194)"]
3539
3539
  ];
3540
3540
  this.rampColor = this.webgl.setup(this.context, a);
3541
- const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, ne.vertexSchema, ne.uvFragmentSchema);
3541
+ const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, le.vertexSchema, le.uvFragmentSchema);
3542
3542
  this.program = e, this.aPositionBuffer = t;
3543
3543
  }
3544
3544
  this.handleParticleSetup();
@@ -3597,7 +3597,7 @@ function fa(a, e, t, r, i, s) {
3597
3597
  return (n = t.factor) != null && n.active ? (u(), g("div", ya, [
3598
3598
  o("div", {
3599
3599
  class: "legend-bars flex-center",
3600
- style: he([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
3600
+ style: de([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
3601
3601
  }, e[0] || (e[0] = [
3602
3602
  o("span", null, "kts", -1),
3603
3603
  o("span", null, "0", -1),
@@ -3630,7 +3630,7 @@ const Aa = /* @__PURE__ */ U(ga, [["render", fa], ["__scopeId", "data-v-c2962e63
3630
3630
  source: "sig-wave-source",
3631
3631
  heightLayer: "sig-wave-height-layer",
3632
3632
  heightLabelLayer: "sig-wave-height-label-layer",
3633
- empty: S.featureCollection([])
3633
+ empty: T.featureCollection([])
3634
3634
  };
3635
3635
  },
3636
3636
  watch: {
@@ -3762,7 +3762,7 @@ const ba = /* @__PURE__ */ U(wa, [["render", va]]), La = {
3762
3762
  directionLayer: "swell-direction-layer",
3763
3763
  heightLayer: "swell-height-layer",
3764
3764
  heightLabelLayer: "swell-height-label-layer",
3765
- empty: S.featureCollection([])
3765
+ empty: T.featureCollection([])
3766
3766
  };
3767
3767
  },
3768
3768
  watch: {
@@ -3923,7 +3923,7 @@ const xa = /* @__PURE__ */ U(La, [["render", Ca]]), _a = {
3923
3923
  layer: "prmsl-layer",
3924
3924
  labelLayer: "prmsl-label-layer",
3925
3925
  pointLabelLayer: "prmsl-point-label-layer",
3926
- empty: S.featureCollection([])
3926
+ empty: T.featureCollection([])
3927
3927
  };
3928
3928
  },
3929
3929
  watch: {
@@ -4125,7 +4125,7 @@ const Ea = {
4125
4125
  // 100%
4126
4126
  ];
4127
4127
  this.rampColor = this.webgl.setup(this.context, a);
4128
- const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, ne.vertexSchema, ne.fragmentSchema);
4128
+ const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, le.vertexSchema, le.fragmentSchema);
4129
4129
  this.program = e, this.aPositionBuffer = t;
4130
4130
  }
4131
4131
  },
@@ -4144,7 +4144,7 @@ function Da(a, e, t, r, i, s) {
4144
4144
  return (n = t.factor) != null && n.active ? (u(), g("div", ka, [
4145
4145
  o("div", {
4146
4146
  class: "legend-bars flex-center",
4147
- style: he([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
4147
+ style: de([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
4148
4148
  }, e[0] || (e[0] = [
4149
4149
  o("span", null, null, -1),
4150
4150
  o("span", { style: { display: "inline-block", position: "relative", left: "-10px" } }, "%", -1),
@@ -4241,7 +4241,7 @@ const Pa = {
4241
4241
  // 100%
4242
4242
  ];
4243
4243
  this.rampColor = this.webgl.setup(this.context, a);
4244
- const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, ne.vertexSchema, ne.fragmentSchema);
4244
+ const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, le.vertexSchema, le.fragmentSchema);
4245
4245
  this.program = e, this.aPositionBuffer = t;
4246
4246
  }
4247
4247
  },
@@ -4260,7 +4260,7 @@ function Sa(a, e, t, r, i, s) {
4260
4260
  return (n = t.factor) != null && n.active ? (u(), g("div", Ma, [
4261
4261
  o("div", {
4262
4262
  class: "legend-bars flex-center",
4263
- style: he([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
4263
+ style: de([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
4264
4264
  }, e[0] || (e[0] = [
4265
4265
  o("span", null, "%", -1),
4266
4266
  o("span", null, "20", -1),
@@ -4359,7 +4359,7 @@ const Qa = {
4359
4359
  // 4m
4360
4360
  ];
4361
4361
  this.rampColor = this.webgl.setup(this.context, a);
4362
- const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, ne.vertexSchema, ne.fragmentSchema);
4362
+ const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, le.vertexSchema, le.fragmentSchema);
4363
4363
  this.program = e, this.aPositionBuffer = t;
4364
4364
  }
4365
4365
  },
@@ -4378,7 +4378,7 @@ function Na(a, e, t, r, i, s) {
4378
4378
  return (n = t.factor) != null && n.active ? (u(), g("div", Ha, [
4379
4379
  o("div", {
4380
4380
  class: "legend-bars flex-center",
4381
- style: he([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
4381
+ style: de([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
4382
4382
  }, e[0] || (e[0] = [
4383
4383
  o("span", null, "m", -1),
4384
4384
  o("span", null, "0", -1),
@@ -4708,18 +4708,18 @@ class ht {
4708
4708
  const i = e.toLowerCase().split(","), s = [], n = [];
4709
4709
  for (const l of i) {
4710
4710
  let c = Xe.find((h) => {
4711
- var p, v, C;
4712
- return ((p = h.models) == null ? void 0 : p.includes(l)) || ((v = h.alias) == null ? void 0 : v.toLowerCase()) === l || ((C = h.name) == null ? void 0 : C.toLowerCase()) === l;
4711
+ var p, b, x;
4712
+ return ((p = h.models) == null ? void 0 : p.includes(l)) || ((b = h.alias) == null ? void 0 : b.toLowerCase()) === l || ((x = h.name) == null ? void 0 : x.toLowerCase()) === l;
4713
4713
  }), d = Je.find((h) => {
4714
- var p, v, C;
4715
- return ((p = h.models) == null ? void 0 : p.includes(l)) || ((v = h.alias) == null ? void 0 : v.toLowerCase()) === l || ((C = h.name) == null ? void 0 : C.toLowerCase()) === l;
4714
+ var p, b, x;
4715
+ return ((p = h.models) == null ? void 0 : p.includes(l)) || ((b = h.alias) == null ? void 0 : b.toLowerCase()) === l || ((x = h.name) == null ? void 0 : x.toLowerCase()) === l;
4716
4716
  });
4717
4717
  c = c || Xe.find((h) => {
4718
- var p, v;
4719
- return ((p = h.alias) == null ? void 0 : p.toLowerCase()) === ((v = d == null ? void 0 : d.alias) == null ? void 0 : v.toLowerCase());
4718
+ var p, b;
4719
+ return ((p = h.alias) == null ? void 0 : p.toLowerCase()) === ((b = d == null ? void 0 : d.alias) == null ? void 0 : b.toLowerCase());
4720
4720
  }), d = d || Je.find((h) => {
4721
- var p, v;
4722
- return ((p = h.alias) == null ? void 0 : p.toLowerCase()) === ((v = c == null ? void 0 : c.alias) == null ? void 0 : v.toLowerCase());
4721
+ var p, b;
4722
+ return ((p = h.alias) == null ? void 0 : p.toLowerCase()) === ((b = c == null ? void 0 : c.alias) == null ? void 0 : b.toLowerCase());
4723
4723
  }), c = c || Xe[0], d = d || Je[0], s.push((t = c.models) != null && t.includes(l) ? l : c.model), n.push((r = d.models) != null && r.includes(l) ? l : d.model);
4724
4724
  }
4725
4725
  return {
@@ -4737,73 +4737,73 @@ class ht {
4737
4737
  }), i;
4738
4738
  }
4739
4739
  static pickHourly(e, t) {
4740
- var r, i, s, n, l, c, d, h, p, v, C, _, f, k, B, A, w, m, L, y, b, T, D, F, N, j, G, W, me, re, ue, we, ge, ve, ye, Y, te, fe, pe, Ae, xe, be, _e, I, ze, Le, Pe, Ee, He, ke;
4741
- const se = typeof t == "string" ? ee(t) : t, ce = e == null ? void 0 : e.weather, Q = e == null ? void 0 : e.marine, Be = ee((i = (r = ce == null ? void 0 : ce[0]) == null ? void 0 : r.hourly) == null ? void 0 : i.date).utc(), K = Be.clone().add((l = (n = (s = ce == null ? void 0 : ce[0]) == null ? void 0 : s.hourly) == null ? void 0 : n.time) == null ? void 0 : l.at(0), "h"), q = Be.clone().add((h = (d = (c = ce == null ? void 0 : ce[0]) == null ? void 0 : c.hourly) == null ? void 0 : d.time) == null ? void 0 : h.at(-1), "h"), Me = [];
4742
- if (se.isBetween(K, q, "millisecond", "[]")) {
4743
- const P = se.utc().diff(K, "h", !1);
4744
- let de, De;
4745
- if (ce) {
4740
+ var r, i, s, n, l, c, d, h, p, b, x, E, A, B, _, f, v, m, L, y, w, M, D, N, Q, j, G, W, he, te, pe, ye, se, ve, fe, Y, ae, Ae, ge, we, xe, be, _e, I, ze, Le, Pe, Ee, He, ke;
4741
+ const oe = typeof t == "string" ? ee(t) : t, me = e == null ? void 0 : e.weather, H = e == null ? void 0 : e.marine, Be = ee((i = (r = me == null ? void 0 : me[0]) == null ? void 0 : r.hourly) == null ? void 0 : i.date).utc(), K = Be.clone().add((l = (n = (s = me == null ? void 0 : me[0]) == null ? void 0 : s.hourly) == null ? void 0 : n.time) == null ? void 0 : l.at(0), "h"), q = Be.clone().add((h = (d = (c = me == null ? void 0 : me[0]) == null ? void 0 : c.hourly) == null ? void 0 : d.time) == null ? void 0 : h.at(-1), "h"), Me = [];
4742
+ if (oe.isBetween(K, q, "millisecond", "[]")) {
4743
+ const P = oe.utc().diff(K, "h", !1);
4744
+ let ue, De;
4745
+ if (me) {
4746
4746
  let Se = 0, Te = 0;
4747
- for (const z of ce) {
4747
+ for (const z of me) {
4748
4748
  const O = z == null ? void 0 : z.hourly;
4749
4749
  for (let Ne = P - (P - 1) % 3; Ne <= P; Ne++)
4750
4750
  Se += (p = O == null ? void 0 : O.precipitation) == null ? void 0 : p.at(Ne);
4751
4751
  for (let Ne = P - (P - 1) % 6; Ne <= P; Ne++)
4752
- Te += (v = O == null ? void 0 : O.precipitation) == null ? void 0 : v.at(Ne);
4753
- de = {
4754
- temp: (C = O == null ? void 0 : O.temperature_2m) == null ? void 0 : C.at(P),
4755
- apparentTemp: (_ = O == null ? void 0 : O.apparent_temperature) == null ? void 0 : _.at(P),
4756
- rh: (f = O == null ? void 0 : O.relative_humidity_2m) == null ? void 0 : f.at(P),
4757
- dp: (k = O == null ? void 0 : O.dew_point_2m) == null ? void 0 : k.at(P),
4752
+ Te += (b = O == null ? void 0 : O.precipitation) == null ? void 0 : b.at(Ne);
4753
+ ue = {
4754
+ temp: (x = O == null ? void 0 : O.temperature_2m) == null ? void 0 : x.at(P),
4755
+ apparentTemp: (E = O == null ? void 0 : O.apparent_temperature) == null ? void 0 : E.at(P),
4756
+ rh: (A = O == null ? void 0 : O.relative_humidity_2m) == null ? void 0 : A.at(P),
4757
+ dp: (B = O == null ? void 0 : O.dew_point_2m) == null ? void 0 : B.at(P),
4758
4758
  precip: {
4759
- probability: (B = O == null ? void 0 : O.precipitation_probability) == null ? void 0 : B.at(P),
4760
- sum: (A = O == null ? void 0 : O.precipitation) == null ? void 0 : A.at(P),
4759
+ probability: (_ = O == null ? void 0 : O.precipitation_probability) == null ? void 0 : _.at(P),
4760
+ sum: (f = O == null ? void 0 : O.precipitation) == null ? void 0 : f.at(P),
4761
4761
  sum3Hours: Math.round(Se * 100) / 100,
4762
4762
  sum6Hours: Math.round(Te * 100) / 100
4763
4763
  },
4764
- pmsl: (w = O == null ? void 0 : O.pressure_msl) == null ? void 0 : w.at(P),
4764
+ pmsl: (v = O == null ? void 0 : O.pressure_msl) == null ? void 0 : v.at(P),
4765
4765
  psurf: (m = O == null ? void 0 : O.surface_pressure) == null ? void 0 : m.at(P),
4766
4766
  code: (L = O == null ? void 0 : O.weather_code) == null ? void 0 : L.at(P),
4767
4767
  visibility: this.m2nm((y = O == null ? void 0 : O.visibility) == null ? void 0 : y.at(P)),
4768
4768
  wind: {
4769
- speed: (b = O == null ? void 0 : O.wind_speed_10m) == null ? void 0 : b.at(P),
4770
- kts: (T = O == null ? void 0 : O.wind_speed_10m) == null ? void 0 : T.at(P),
4769
+ speed: (w = O == null ? void 0 : O.wind_speed_10m) == null ? void 0 : w.at(P),
4770
+ kts: (M = O == null ? void 0 : O.wind_speed_10m) == null ? void 0 : M.at(P),
4771
4771
  degree: (D = O == null ? void 0 : O.wind_direction_10m) == null ? void 0 : D.at(P),
4772
- bearing: ((F = O == null ? void 0 : O.wind_direction_10m) == null ? void 0 : F.at(P)) !== null ? (((N = O == null ? void 0 : O.wind_direction_10m) == null ? void 0 : N.at(P)) + 180) % 360 : null,
4772
+ bearing: ((N = O == null ? void 0 : O.wind_direction_10m) == null ? void 0 : N.at(P)) !== null ? (((Q = O == null ? void 0 : O.wind_direction_10m) == null ? void 0 : Q.at(P)) + 180) % 360 : null,
4773
4773
  gusts: (j = O == null ? void 0 : O.wind_gusts_10m) == null ? void 0 : j.at(P)
4774
4774
  },
4775
4775
  isDay: (G = O == null ? void 0 : O.is_day) == null ? void 0 : G.at(P)
4776
4776
  };
4777
- const { name: Ge, url: Ue, bg: ie } = this.parseWeatherCode(de.code, de.isDay);
4778
- de.name = Ge, de.url = Ue, de.bg = ie, de.wind.scale = this.beaufort(this.kts2ms(de.wind.kts)), de.wind.direction = this.degree2Direction(de.wind.degree), Me.push({
4777
+ const { name: Ge, url: Ue, bg: re } = this.parseWeatherCode(ue.code, ue.isDay);
4778
+ ue.name = Ge, ue.url = Ue, ue.bg = re, ue.wind.scale = this.beaufort(this.kts2ms(ue.wind.kts)), ue.wind.direction = this.degree2Direction(ue.wind.degree), Me.push({
4779
4779
  utc: K.add(P, "h").format(),
4780
4780
  model: z.model,
4781
- weather: { ...de }
4781
+ weather: { ...ue }
4782
4782
  });
4783
4783
  }
4784
4784
  }
4785
- if (Q) {
4785
+ if (H) {
4786
4786
  let Se = 0;
4787
- for (const Te of Q) {
4787
+ for (const Te of H) {
4788
4788
  const z = Te == null ? void 0 : Te.hourly;
4789
4789
  De = {
4790
4790
  wave: {
4791
4791
  sig: {
4792
4792
  height: (W = z == null ? void 0 : z.wave_height) == null ? void 0 : W.at(P),
4793
- degree: (me = z == null ? void 0 : z.wave_direction) == null ? void 0 : me.at(P),
4794
- bearing: ((re = z == null ? void 0 : z.wave_direction) == null ? void 0 : re.at(P)) !== null ? (((ue = z == null ? void 0 : z.wave_direction) == null ? void 0 : ue.at(P)) + 180) % 360 : null,
4795
- period: (we = z == null ? void 0 : z.wave_period) == null ? void 0 : we.at(P)
4793
+ degree: (he = z == null ? void 0 : z.wave_direction) == null ? void 0 : he.at(P),
4794
+ bearing: ((te = z == null ? void 0 : z.wave_direction) == null ? void 0 : te.at(P)) !== null ? (((pe = z == null ? void 0 : z.wave_direction) == null ? void 0 : pe.at(P)) + 180) % 360 : null,
4795
+ period: (ye = z == null ? void 0 : z.wave_period) == null ? void 0 : ye.at(P)
4796
4796
  },
4797
4797
  swell: {
4798
- height: (ge = z == null ? void 0 : z.swell_wave_height) == null ? void 0 : ge.at(P),
4798
+ height: (se = z == null ? void 0 : z.swell_wave_height) == null ? void 0 : se.at(P),
4799
4799
  degree: (ve = z == null ? void 0 : z.swell_wave_direction) == null ? void 0 : ve.at(P),
4800
- bearing: ((ye = z == null ? void 0 : z.swell_wave_direction) == null ? void 0 : ye.at(P)) !== null ? (((Y = z == null ? void 0 : z.swell_wave_direction) == null ? void 0 : Y.at(P)) + 180) % 360 : null,
4801
- period: (te = z == null ? void 0 : z.swell_wave_period) == null ? void 0 : te.at(P),
4802
- peakPeriod: (fe = z == null ? void 0 : z.swell_wave_peak_period) == null ? void 0 : fe.at(P)
4800
+ bearing: ((fe = z == null ? void 0 : z.swell_wave_direction) == null ? void 0 : fe.at(P)) !== null ? (((Y = z == null ? void 0 : z.swell_wave_direction) == null ? void 0 : Y.at(P)) + 180) % 360 : null,
4801
+ period: (ae = z == null ? void 0 : z.swell_wave_period) == null ? void 0 : ae.at(P),
4802
+ peakPeriod: (Ae = z == null ? void 0 : z.swell_wave_peak_period) == null ? void 0 : Ae.at(P)
4803
4803
  },
4804
4804
  wd: {
4805
- height: (pe = z == null ? void 0 : z.wind_wave_height) == null ? void 0 : pe.at(P),
4806
- degree: (Ae = z == null ? void 0 : z.wind_wave_direction) == null ? void 0 : Ae.at(P),
4805
+ height: (ge = z == null ? void 0 : z.wind_wave_height) == null ? void 0 : ge.at(P),
4806
+ degree: (we = z == null ? void 0 : z.wind_wave_direction) == null ? void 0 : we.at(P),
4807
4807
  bearing: ((xe = z == null ? void 0 : z.wind_wave_direction) == null ? void 0 : xe.at(P)) !== null ? (((be = z == null ? void 0 : z.wind_wave_direction) == null ? void 0 : be.at(P)) + 180) % 360 : null,
4808
4808
  period: (_e = z == null ? void 0 : z.wind_wave_period) == null ? void 0 : _e.at(P),
4809
4809
  peakPeriod: (I = z == null ? void 0 : z.wind_wave_peak_period) == null ? void 0 : I.at(P)
@@ -4817,7 +4817,7 @@ class ht {
4817
4817
  },
4818
4818
  sst: (He = z == null ? void 0 : z.sea_surface_temperature) == null ? void 0 : He.at(P),
4819
4819
  height: (ke = z == null ? void 0 : z.sea_level_height_msl) == null ? void 0 : ke.at(P)
4820
- }, De.wave = this.parseWave(De.wave, de == null ? void 0 : de.wind), De.current.direction = this.degree2Direction(De.current.degree), Object.assign(Me[Se], De), Se++;
4820
+ }, De.wave = this.parseWave(De.wave, ue == null ? void 0 : ue.wind), De.current.direction = this.degree2Direction(De.current.degree), Object.assign(Me[Se], De), Se++;
4821
4821
  }
4822
4822
  }
4823
4823
  }
@@ -4846,82 +4846,82 @@ class ht {
4846
4846
  };
4847
4847
  }
4848
4848
  static pickDaily(e, t) {
4849
- var r, i, s, n, l, c, d, h, p, v, C, _, f, k, B, A, w, m, L, y, b, T, D, F, N, j, G, W, me, re, ue, we, ge, ve, ye, Y, te, fe, pe, Ae, xe, be, _e, I;
4849
+ var r, i, s, n, l, c, d, h, p, b, x, E, A, B, _, f, v, m, L, y, w, M, D, N, Q, j, G, W, he, te, pe, ye, se, ve, fe, Y, ae, Ae, ge, we, xe, be, _e, I;
4850
4850
  const ze = typeof t == "string" ? ee(t) : t, Le = e == null ? void 0 : e.weather, Pe = e == null ? void 0 : e.marine, Ee = ee((s = (i = (r = Le == null ? void 0 : Le[0]) == null ? void 0 : r.daily) == null ? void 0 : i.time) == null ? void 0 : s.at(0)), He = ee((c = (l = (n = Le == null ? void 0 : Le[0]) == null ? void 0 : n.daily) == null ? void 0 : l.time) == null ? void 0 : c.at(-1)), ke = [];
4851
4851
  if (ze.isBetween(Ee, He, "millisecond", "[]")) {
4852
- let se, ce;
4853
- const Q = ze.diff(Ee, "d", !1);
4852
+ let oe, me;
4853
+ const H = ze.diff(Ee, "d", !1);
4854
4854
  if (Le)
4855
4855
  for (const Be of Le) {
4856
4856
  const K = Be.daily;
4857
- se = {
4858
- code: (d = K.weather_code) == null ? void 0 : d.at(Q),
4857
+ oe = {
4858
+ code: (d = K.weather_code) == null ? void 0 : d.at(H),
4859
4859
  temp: {
4860
- max: (h = K.temperature_2m_max) == null ? void 0 : h.at(Q),
4861
- min: (p = K.temperature_2m_min) == null ? void 0 : p.at(Q),
4862
- mean: (v = K.temperature_2m_mean) == null ? void 0 : v.at(Q)
4860
+ max: (h = K.temperature_2m_max) == null ? void 0 : h.at(H),
4861
+ min: (p = K.temperature_2m_min) == null ? void 0 : p.at(H),
4862
+ mean: (b = K.temperature_2m_mean) == null ? void 0 : b.at(H)
4863
4863
  },
4864
4864
  apparentTemp: {
4865
- max: (C = K.apparent_temperature_max) == null ? void 0 : C.at(Q),
4866
- min: (_ = K.apparent_temperature_min) == null ? void 0 : _.at(Q)
4865
+ max: (x = K.apparent_temperature_max) == null ? void 0 : x.at(H),
4866
+ min: (E = K.apparent_temperature_min) == null ? void 0 : E.at(H)
4867
4867
  },
4868
4868
  precip: {
4869
- sum: (f = K.precipitation_sum) == null ? void 0 : f.at(Q),
4870
- rainSum: (k = K.rain_sum) == null ? void 0 : k.at(Q),
4871
- snowfallSum: (B = K.snowfall_sum) == null ? void 0 : B.at(Q),
4872
- showersSum: (A = K.showers_sum) == null ? void 0 : A.at(Q),
4873
- hours: (w = K.precipitation_hours) == null ? void 0 : w.at(Q),
4874
- probability: (m = K.precipitation_probability_max) == null ? void 0 : m.at(Q)
4869
+ sum: (A = K.precipitation_sum) == null ? void 0 : A.at(H),
4870
+ rainSum: (B = K.rain_sum) == null ? void 0 : B.at(H),
4871
+ snowfallSum: (_ = K.snowfall_sum) == null ? void 0 : _.at(H),
4872
+ showersSum: (f = K.showers_sum) == null ? void 0 : f.at(H),
4873
+ hours: (v = K.precipitation_hours) == null ? void 0 : v.at(H),
4874
+ probability: (m = K.precipitation_probability_max) == null ? void 0 : m.at(H)
4875
4875
  },
4876
4876
  rh: {
4877
- max: (L = K.relative_humidity_2m_max) == null ? void 0 : L.at(Q),
4878
- min: (y = K.relative_humidity_2m_min) == null ? void 0 : y.at(Q),
4879
- mean: (b = K.relative_humidity_2m_mean) == null ? void 0 : b.at(Q)
4877
+ max: (L = K.relative_humidity_2m_max) == null ? void 0 : L.at(H),
4878
+ min: (y = K.relative_humidity_2m_min) == null ? void 0 : y.at(H),
4879
+ mean: (w = K.relative_humidity_2m_mean) == null ? void 0 : w.at(H)
4880
4880
  },
4881
4881
  wind: {
4882
- speed: (T = K.wind_speed_10m_max) == null ? void 0 : T.at(Q),
4883
- kts: (D = K.wind_speed_10m_max) == null ? void 0 : D.at(Q),
4884
- degree: (F = K.wind_direction_10m_dominant) == null ? void 0 : F.at(Q),
4885
- gusts: (N = K.wind_gusts_10m_max) == null ? void 0 : N.at(Q),
4886
- bearing: ((j = K.wind_direction_10m_dominant) == null ? void 0 : j.at(Q)) !== null ? (((G = K.wind_direction_10m_dominant) == null ? void 0 : G.at(Q)) + 180) % 360 : null
4882
+ speed: (M = K.wind_speed_10m_max) == null ? void 0 : M.at(H),
4883
+ kts: (D = K.wind_speed_10m_max) == null ? void 0 : D.at(H),
4884
+ degree: (N = K.wind_direction_10m_dominant) == null ? void 0 : N.at(H),
4885
+ gusts: (Q = K.wind_gusts_10m_max) == null ? void 0 : Q.at(H),
4886
+ bearing: ((j = K.wind_direction_10m_dominant) == null ? void 0 : j.at(H)) !== null ? (((G = K.wind_direction_10m_dominant) == null ? void 0 : G.at(H)) + 180) % 360 : null
4887
4887
  }
4888
4888
  };
4889
- const { name: q, url: Me, bg: P } = this.parseWeatherCode(se.code, !0);
4890
- se.name = q, se.url = Me, se.bg = P, se.wind.scale = this.beaufort(this.kts2ms(se.wind.kts)), se.wind.direction = this.degree2Direction(se.wind.degree), ke.push({
4891
- utc: Ee.add(Q, "d").utc().format(),
4889
+ const { name: q, url: Me, bg: P } = this.parseWeatherCode(oe.code, !0);
4890
+ oe.name = q, oe.url = Me, oe.bg = P, oe.wind.scale = this.beaufort(this.kts2ms(oe.wind.kts)), oe.wind.direction = this.degree2Direction(oe.wind.degree), ke.push({
4891
+ utc: Ee.add(H, "d").utc().format(),
4892
4892
  model: Be.model,
4893
- weather: { ...se }
4893
+ weather: { ...oe }
4894
4894
  });
4895
4895
  }
4896
4896
  if (Pe) {
4897
4897
  let Be = 0;
4898
4898
  for (const K of Pe) {
4899
4899
  const q = K.daily;
4900
- ce = {
4900
+ me = {
4901
4901
  wave: {
4902
4902
  sig: {
4903
- height: (W = q.wave_height_max) == null ? void 0 : W.at(Q),
4904
- degree: (me = q.wave_direction_dominant) == null ? void 0 : me.at(Q),
4905
- period: (re = q.wave_period_max) == null ? void 0 : re.at(Q),
4906
- bearing: ((ue = q.wave_direction_dominant) == null ? void 0 : ue.at(Q)) !== null ? (((we = q.wave_direction_dominant) == null ? void 0 : we.at(Q)) + 180) % 360 : null
4903
+ height: (W = q.wave_height_max) == null ? void 0 : W.at(H),
4904
+ degree: (he = q.wave_direction_dominant) == null ? void 0 : he.at(H),
4905
+ period: (te = q.wave_period_max) == null ? void 0 : te.at(H),
4906
+ bearing: ((pe = q.wave_direction_dominant) == null ? void 0 : pe.at(H)) !== null ? (((ye = q.wave_direction_dominant) == null ? void 0 : ye.at(H)) + 180) % 360 : null
4907
4907
  },
4908
4908
  swell: {
4909
- height: (ge = q.swell_wave_height_max) == null ? void 0 : ge.at(Q),
4910
- degree: (ve = q.swell_wave_direction_dominant) == null ? void 0 : ve.at(Q),
4911
- period: (ye = q.swell_wave_period_max) == null ? void 0 : ye.at(Q),
4912
- peakPeriod: (Y = q.swell_wave_peak_period_max) == null ? void 0 : Y.at(Q),
4909
+ height: (se = q.swell_wave_height_max) == null ? void 0 : se.at(H),
4910
+ degree: (ve = q.swell_wave_direction_dominant) == null ? void 0 : ve.at(H),
4911
+ period: (fe = q.swell_wave_period_max) == null ? void 0 : fe.at(H),
4912
+ peakPeriod: (Y = q.swell_wave_peak_period_max) == null ? void 0 : Y.at(H),
4913
4913
  // bearing: daily.swell_wave_direction_dominant?.at(day) !== null ? (daily.swell_wave_direction_dominant?.at(day) + 180) % 360 : null,
4914
- bearing: ((te = q.swell_wave_direction_dominant) == null ? void 0 : te.at(Q)) !== null ? ((fe = q.swell_wave_direction_dominant) == null ? void 0 : fe.at(Q)) % 360 : null
4914
+ bearing: ((ae = q.swell_wave_direction_dominant) == null ? void 0 : ae.at(H)) !== null ? ((Ae = q.swell_wave_direction_dominant) == null ? void 0 : Ae.at(H)) % 360 : null
4915
4915
  },
4916
4916
  wd: {
4917
- height: (pe = q.wind_wave_height_max) == null ? void 0 : pe.at(Q),
4918
- degree: (Ae = q.wind_wave_direction_dominant) == null ? void 0 : Ae.at(Q),
4919
- period: (xe = q.wind_wave_period_max) == null ? void 0 : xe.at(Q),
4920
- peakPeriod: (be = q.wind_wave_peak_period_max) == null ? void 0 : be.at(Q),
4921
- bearing: ((_e = q.wind_wave_direction_dominant) == null ? void 0 : _e.at(Q)) !== null ? (((I = q.wind_wave_direction_dominant) == null ? void 0 : I.at(Q)) + 180) % 360 : null
4917
+ height: (ge = q.wind_wave_height_max) == null ? void 0 : ge.at(H),
4918
+ degree: (we = q.wind_wave_direction_dominant) == null ? void 0 : we.at(H),
4919
+ period: (xe = q.wind_wave_period_max) == null ? void 0 : xe.at(H),
4920
+ peakPeriod: (be = q.wind_wave_peak_period_max) == null ? void 0 : be.at(H),
4921
+ bearing: ((_e = q.wind_wave_direction_dominant) == null ? void 0 : _e.at(H)) !== null ? (((I = q.wind_wave_direction_dominant) == null ? void 0 : I.at(H)) + 180) % 360 : null
4922
4922
  }
4923
4923
  }
4924
- }, ce.wave = this.parseWave(ce.wave, se == null ? void 0 : se.wind), Object.assign(ke[Be], ce), Be++;
4924
+ }, me.wave = this.parseWave(me.wave, oe == null ? void 0 : oe.wind), Object.assign(ke[Be], me), Be++;
4925
4925
  }
4926
4926
  }
4927
4927
  }
@@ -5371,9 +5371,9 @@ const Oa = {
5371
5371
  showTropicals: !1,
5372
5372
  activeTropicals: void 0,
5373
5373
  activeTropicalsMarker: void 0,
5374
- empty: S.featureCollection([]),
5374
+ empty: T.featureCollection([]),
5375
5375
  circleSource: "circle-source",
5376
- circleSourceData: S.featureCollection([]),
5376
+ circleSourceData: T.featureCollection([]),
5377
5377
  circleLayer: "tropical-circle-layer",
5378
5378
  labelMarkers: []
5379
5379
  };
@@ -5467,16 +5467,16 @@ const Oa = {
5467
5467
  ));
5468
5468
  },
5469
5469
  handleRender() {
5470
- var a, e, t, r, i, s, n, l, c, d, h;
5470
+ var a, e, t, r, i, s, n, l, c, d, h, p, b;
5471
5471
  if (!this.map)
5472
5472
  setTimeout(() => {
5473
5473
  this.handleRender();
5474
5474
  }, 500);
5475
5475
  else {
5476
5476
  if (this.tropicals) {
5477
- const v = (/* @__PURE__ */ new Date()).valueOf();
5478
- let C = 0, _ = 0;
5479
- (a = this.map) != null && a.getSource(this.source) ? ((t = this.map) == null || t.getSource(this.source).setData((e = this.tropicals) != null && e.active ? this.tropicals.data : this.empty), _ = (/* @__PURE__ */ new Date()).valueOf() - (v + C), console.log("[tropicals] update elapsed: ", _, ", total: ", C += _)) : (this.map.addSource(this.source, {
5477
+ const E = (/* @__PURE__ */ new Date()).valueOf();
5478
+ let A = 0, B = 0;
5479
+ if ((a = this.map) != null && a.getSource(this.source) ? ((t = this.map) == null || t.getSource(this.source).setData((e = this.tropicals) != null && e.active ? this.tropicals.data : this.empty), B = (/* @__PURE__ */ new Date()).valueOf() - (E + A), console.log("[tropicals] update elapsed: ", B, ", total: ", A += B)) : (this.map.addSource(this.source, {
5480
5480
  type: "geojson",
5481
5481
  data: (r = this.tropicals) != null && r.active ? (i = this.tropicals) == null ? void 0 : i.data : this.empty
5482
5482
  }), this.map.addLayer({
@@ -5573,157 +5573,182 @@ const Oa = {
5573
5573
  ],
5574
5574
  "text-halo-width": 4
5575
5575
  }
5576
- }), _ = (/* @__PURE__ */ new Date()).valueOf() - (v + C), console.log("[tropical] add elapsed: ", _, ", total: ", C += _)), (s = this.map) != null && s.getSource(this.clusterSource) ? ((l = this.map) == null || l.getSource(this.clusterSource).setData((n = this.tropicals) != null && n.active ? this.tropicals.data : this.empty), _ = (/* @__PURE__ */ new Date()).valueOf() - (v + C), console.log("[tropical] update elapsed: ", _, ", total: ", C += _)) : (this.map.addSource(this.clusterSource, {
5577
- type: "geojson",
5578
- data: (c = this.tropicals) != null && c.active ? (d = this.tropicals) == null ? void 0 : d.data : this.empty
5579
- // cluster: true,
5580
- // clusterRadius: 10, // 聚合半径
5581
- }), this.map.addLayer({
5582
- id: this.pointCircleLayer + "-border",
5583
- type: "circle",
5584
- source: this.clusterSource,
5585
- filter: ["all", ["==", "$type", "Point"], ["==", "type", "forecast"], ["!=", "disabled", !0]],
5586
- paint: {
5587
- "circle-radius": 6,
5588
- "circle-color": "#fff"
5589
- }
5590
- }), this.map.addLayer({
5591
- id: this.pointCircleLayer,
5592
- type: "circle",
5593
- source: this.clusterSource,
5594
- filter: ["all", ["==", "$type", "Point"], ["==", "type", "forecast"], ["!=", "disabled", !0]],
5595
- paint: {
5596
- "circle-radius": 4,
5597
- "circle-color": [
5598
- "case",
5599
- ["boolean", ["==", ["get", "kts", ["get", "wind"]], null]],
5600
- "#03f869",
5601
- ["boolean", ["<", ["get", "kts", ["get", "wind"]], 32]],
5602
- "#03f869",
5603
- ["boolean", ["<", ["get", "kts", ["get", "wind"]], 47]],
5604
- "#f2f202",
5605
- ["boolean", ["<", ["get", "kts", ["get", "wind"]], 63]],
5606
- "#ff9100",
5607
- ["boolean", ["<", ["get", "kts", ["get", "wind"]], 79]],
5608
- "#f44336",
5609
- ["boolean", ["<", ["get", "kts", ["get", "wind"]], 94]],
5610
- "#f903d0",
5611
- ["boolean", [">=", ["get", "kts", ["get", "wind"]], 94]],
5612
- "#8702f9",
5613
- "#fff"
5614
- ]
5615
- }
5616
- }), this.fromTropicalReport ? (h = this.tropicals.data.features) == null || h.filter((f) => f.geometry.type === "Point" && f.properties.type === "forecast").forEach((f) => {
5617
- var B, A, w, m, L;
5618
- const k = document.createElement("div");
5619
- k.style.cssText = "font-size: 12px; color: #000; background-color: rgba(255, 255, 255, 0.8); border: 2px solid rgba(0, 0, 0, 0.3); padding: 4px 8px; border-radius: 6px;", k.innerHTML = `
5620
- <div style="">
5621
- <span>${f.properties.format}</span>
5622
- <span> [${(B = f.properties.model) == null ? void 0 : B.toUpperCase()}]</span>
5623
- </div>
5624
- <div>
5625
- <span>${((m = (w = (A = f.properties) == null ? void 0 : A.movement) == null ? void 0 : w.kts) == null ? void 0 : m.toFixed(0)) || "-"} bft</span> /
5626
- <span>${((L = f.properties) == null ? void 0 : L.pressure) || "-"} kPa</span>
5627
- </div>
5628
- <div style="position: absolute;width: 24px;margin-left: 96px;margin-top: 12px;height: 2px;transform: rotate(45deg);background-color: rgba(0, 0, 0, 0.3);"></div>
5629
- `, this.labelMarkers.push(new Re.Marker(k).setLngLat(f.geometry.coordinates).setOffset([-60, -40]).addTo(this.map));
5630
- }) : this.map.addLayer({
5631
- id: this.pointLabelLayer,
5632
- type: "symbol",
5633
- source: this.clusterSource,
5634
- filter: ["all", ["==", "$type", "Point"], ["==", "type", "forecast"], ["!=", "disabled", !0]],
5635
- layout: {
5636
- "text-field": ["get", "format"],
5637
- "text-offset": [0, -0.5],
5638
- "text-anchor": "bottom-left",
5639
- "text-size": 12
5640
- },
5641
- paint: {
5642
- "text-color": "rgba(0, 0, 0, 1)",
5643
- "text-halo-color": "#fff",
5644
- "text-halo-width": 1
5645
- }
5646
- }), this.map.addLayer({
5647
- id: this.historyPointCircleLayer + "-border",
5648
- type: "circle",
5649
- source: this.clusterSource,
5650
- filter: ["all", ["==", "$type", "Point"], ["==", "type", "history"], ["==", "important", !0], ["!=", "disabled", !0]],
5651
- paint: {
5652
- "circle-radius": 7,
5653
- "circle-color": "#fff"
5654
- }
5655
- }), this.map.addLayer({
5656
- id: this.historyPointCircleLayer,
5657
- type: "circle",
5658
- source: this.clusterSource,
5659
- filter: ["all", ["==", "$type", "Point"], ["==", "type", "history"], ["==", "important", !0], ["!=", "disabled", !0]],
5660
- paint: {
5661
- "circle-radius": 5,
5662
- "circle-color": "rgba(0,0,0,0.7)"
5663
- }
5664
- }), this.map.addLayer({
5665
- id: this.historyPointCircleLayer + "-inner",
5666
- type: "circle",
5667
- source: this.clusterSource,
5668
- filter: ["all", ["==", "$type", "Point"], ["==", "type", "history"], ["==", "important", !0], ["!=", "disabled", !0]],
5669
- paint: {
5670
- "circle-radius": 3,
5671
- "circle-color": "#fff"
5672
- }
5673
- }), this.map.addLayer({
5674
- id: this.historyPointLabelLayer,
5675
- type: "symbol",
5676
- source: this.clusterSource,
5677
- filter: ["all", ["==", "$type", "Point"], ["==", "type", "history"], ["==", "important", !0], ["!=", "disabled", !0]],
5678
- layout: {
5679
- "text-field": ["get", "format"],
5680
- "text-offset": [0, -0.5],
5681
- "text-anchor": "bottom-left",
5682
- "text-size": 14
5683
- },
5684
- paint: {
5685
- "text-color": "rgba(0, 0, 0, 1)",
5686
- "text-halo-color": "#fff",
5687
- "text-halo-width": 1
5688
- }
5689
- }), this.map.addLayer({
5690
- id: this.forecastNameLayer,
5691
- type: "symbol",
5692
- source: this.clusterSource,
5693
- filter: ["all", ["==", "$type", "Point"], ["==", "type", "forecast"], ["==", "important", !0]],
5694
- layout: {
5695
- "text-field": ["get", "name"],
5696
- "text-offset": [0, 1.5],
5697
- "text-anchor": "bottom",
5698
- "text-size": 16,
5699
- "text-allow-overlap": !0,
5700
- "text-ignore-placement": !0
5701
- },
5702
- paint: {
5703
- "text-color": "#fff",
5704
- "text-halo-color": "#0033ff",
5705
- "text-halo-width": 4
5706
- }
5707
- }), _ = (/* @__PURE__ */ new Date()).valueOf() - (v + C), console.log("[tropical] add elapsed: ", _, ", total: ", C += _));
5576
+ }), B = (/* @__PURE__ */ new Date()).valueOf() - (E + A), console.log("[tropical] add elapsed: ", B, ", total: ", A += B)), (s = this.map) != null && s.getSource(this.clusterSource))
5577
+ (l = this.map) == null || l.getSource(this.clusterSource).setData((n = this.tropicals) != null && n.active ? this.tropicals.data : this.empty), B = (/* @__PURE__ */ new Date()).valueOf() - (E + A), console.log("[tropical] update elapsed: ", B, ", total: ", A += B);
5578
+ else {
5579
+ if (this.map.addSource(this.clusterSource, {
5580
+ type: "geojson",
5581
+ data: (c = this.tropicals) != null && c.active ? (d = this.tropicals) == null ? void 0 : d.data : this.empty
5582
+ // cluster: true,
5583
+ // clusterRadius: 10, // 聚合半径
5584
+ }), this.map.addLayer({
5585
+ id: this.pointCircleLayer + "-border",
5586
+ type: "circle",
5587
+ source: this.clusterSource,
5588
+ filter: ["all", ["==", "$type", "Point"], ["==", "type", "forecast"], ["!=", "disabled", !0]],
5589
+ paint: {
5590
+ "circle-radius": 6,
5591
+ "circle-color": "#fff"
5592
+ }
5593
+ }), this.map.addLayer({
5594
+ id: this.pointCircleLayer,
5595
+ type: "circle",
5596
+ source: this.clusterSource,
5597
+ filter: ["all", ["==", "$type", "Point"], ["==", "type", "forecast"], ["!=", "disabled", !0]],
5598
+ paint: {
5599
+ "circle-radius": 4,
5600
+ "circle-color": [
5601
+ "case",
5602
+ ["boolean", ["==", ["get", "kts", ["get", "wind"]], null]],
5603
+ "#03f869",
5604
+ ["boolean", ["<", ["get", "kts", ["get", "wind"]], 32]],
5605
+ "#03f869",
5606
+ ["boolean", ["<", ["get", "kts", ["get", "wind"]], 47]],
5607
+ "#f2f202",
5608
+ ["boolean", ["<", ["get", "kts", ["get", "wind"]], 63]],
5609
+ "#ff9100",
5610
+ ["boolean", ["<", ["get", "kts", ["get", "wind"]], 79]],
5611
+ "#f44336",
5612
+ ["boolean", ["<", ["get", "kts", ["get", "wind"]], 94]],
5613
+ "#f903d0",
5614
+ ["boolean", [">=", ["get", "kts", ["get", "wind"]], 94]],
5615
+ "#8702f9",
5616
+ "#fff"
5617
+ ]
5618
+ }
5619
+ }), this.fromTropicalReport) {
5620
+ const _ = (h = this.tropicals.data.features) == null ? void 0 : h.filter((m) => m.geometry.type === "Point" && m.properties.type === "forecast");
5621
+ let f = 0, v = (b = (p = this.findClosestToNumber(_, "hour", 12)) == null ? void 0 : p.properties) == null ? void 0 : b.hour;
5622
+ _.forEach((m, L) => {
5623
+ var M, D, N, Q, j, G, W, he, te;
5624
+ let y;
5625
+ const w = this.findClosestToNumber(_, "hour", v + f * 24);
5626
+ if (w && ((M = w == null ? void 0 : w.properties) == null ? void 0 : M.hour) === ((D = m.properties) == null ? void 0 : D.hour) && (y = w), y) {
5627
+ const pe = f % 2 === 0 ? [-60, -40] : [60, 40], ye = f % 2 === 0 ? "position: absolute;width: 20px;margin-left: 98px;margin-top: 12px;height: 2px;transform: rotate(45deg);background-color: rgba(0, 0, 0, 0.3);" : "position: absolute;width: 20px;margin-left: -8px;margin-top: -54px;height: 2px;transform: rotate(45deg);background-color: rgba(0, 0, 0, 0.3);", se = document.createElement("div");
5628
+ se.style.cssText = "width: 130px;font-size: 12px; color: #000; background-color: rgba(255, 255, 255, 0.8); border: 2px solid rgba(0, 0, 0, 0.3); padding: 4px 8px; border-radius: 6px;", se.innerHTML = `
5629
+ <div style="">
5630
+ <span>${((N = m.properties) == null ? void 0 : N.format) || "-"}</span>
5631
+ <span> [${((G = (j = (Q = m.properties) == null ? void 0 : Q.wind) == null ? void 0 : j.en) == null ? void 0 : G.toUpperCase()) || "-"}]</span>
5632
+ </div>
5633
+ <div>
5634
+ <span>BF${((he = (W = m.properties) == null ? void 0 : W.wind) == null ? void 0 : he.bf) || "-"}</span> /
5635
+ <span>${((te = m.properties) == null ? void 0 : te.pressure) || "-"} kPa</span>
5636
+ </div>
5637
+ <div style="${ye}"></div>
5638
+ `, this.labelMarkers.push(new Re.Marker(se).setLngLat(m.geometry.coordinates).setOffset(pe).addTo(this.map)), f = f + 1;
5639
+ }
5640
+ });
5641
+ } else
5642
+ this.map.addLayer({
5643
+ id: this.pointLabelLayer,
5644
+ type: "symbol",
5645
+ source: this.clusterSource,
5646
+ filter: ["all", ["==", "$type", "Point"], ["==", "type", "forecast"], ["!=", "disabled", !0]],
5647
+ layout: {
5648
+ "text-field": ["get", "format"],
5649
+ "text-offset": [0, -0.5],
5650
+ "text-anchor": "bottom-left",
5651
+ "text-size": 12
5652
+ },
5653
+ paint: {
5654
+ "text-color": "rgba(0, 0, 0, 1)",
5655
+ "text-halo-color": "#fff",
5656
+ "text-halo-width": 1
5657
+ }
5658
+ });
5659
+ this.map.addLayer({
5660
+ id: this.historyPointCircleLayer + "-border",
5661
+ type: "circle",
5662
+ source: this.clusterSource,
5663
+ filter: ["all", ["==", "$type", "Point"], ["==", "type", "history"], ["==", "important", !0], ["!=", "disabled", !0]],
5664
+ paint: {
5665
+ "circle-radius": 7,
5666
+ "circle-color": "#fff"
5667
+ }
5668
+ }), this.map.addLayer({
5669
+ id: this.historyPointCircleLayer,
5670
+ type: "circle",
5671
+ source: this.clusterSource,
5672
+ filter: ["all", ["==", "$type", "Point"], ["==", "type", "history"], ["==", "important", !0], ["!=", "disabled", !0]],
5673
+ paint: {
5674
+ "circle-radius": 5,
5675
+ "circle-color": "rgba(0,0,0,0.7)"
5676
+ }
5677
+ }), this.map.addLayer({
5678
+ id: this.historyPointCircleLayer + "-inner",
5679
+ type: "circle",
5680
+ source: this.clusterSource,
5681
+ filter: ["all", ["==", "$type", "Point"], ["==", "type", "history"], ["==", "important", !0], ["!=", "disabled", !0]],
5682
+ paint: {
5683
+ "circle-radius": 3,
5684
+ "circle-color": "#fff"
5685
+ }
5686
+ }), this.map.addLayer({
5687
+ id: this.historyPointLabelLayer,
5688
+ type: "symbol",
5689
+ source: this.clusterSource,
5690
+ filter: ["all", ["==", "$type", "Point"], ["==", "type", "history"], ["==", "important", !0], ["!=", "disabled", !0]],
5691
+ layout: {
5692
+ "text-field": ["get", "format"],
5693
+ "text-offset": [0, -0.5],
5694
+ "text-anchor": "bottom-left",
5695
+ "text-size": 14
5696
+ },
5697
+ paint: {
5698
+ "text-color": "rgba(0, 0, 0, 1)",
5699
+ "text-halo-color": "#fff",
5700
+ "text-halo-width": 1
5701
+ }
5702
+ }), this.map.addLayer({
5703
+ id: this.forecastNameLayer,
5704
+ type: "symbol",
5705
+ source: this.clusterSource,
5706
+ filter: ["all", ["==", "$type", "Point"], ["==", "type", "forecast"], ["==", "important", !0]],
5707
+ layout: {
5708
+ "text-field": ["get", "name"],
5709
+ "text-offset": [0, 1.5],
5710
+ "text-anchor": "bottom",
5711
+ "text-size": 16,
5712
+ "text-allow-overlap": !0,
5713
+ "text-ignore-placement": !0
5714
+ },
5715
+ paint: {
5716
+ "text-color": "#fff",
5717
+ "text-halo-color": "#0033ff",
5718
+ "text-halo-width": 4
5719
+ }
5720
+ }), B = (/* @__PURE__ */ new Date()).valueOf() - (E + A), console.log("[tropical] add elapsed: ", B, ", total: ", A += B);
5721
+ }
5708
5722
  }
5709
5723
  this.handleDrawCircle();
5710
- const p = ct.interpolate(this.tropicals, 1);
5711
- this.interpolateData = JSON.parse(JSON.stringify(p)), this.handleDateChange();
5724
+ const x = ct.interpolate(this.tropicals, 1);
5725
+ this.interpolateData = JSON.parse(JSON.stringify(x)), this.handleDateChange();
5712
5726
  }
5713
5727
  },
5728
+ findClosestToNumber(a, e, t) {
5729
+ var s, n;
5730
+ if (!a.length)
5731
+ return null;
5732
+ let r = a[0], i = Math.abs(((s = r == null ? void 0 : r.properties) == null ? void 0 : s[e]) - t);
5733
+ for (let l = 1; l < a.length; l++) {
5734
+ const c = a[l], d = Math.abs(Number((n = c == null ? void 0 : c.properties) == null ? void 0 : n.hour) - t);
5735
+ d < i && (i = d, r = c);
5736
+ }
5737
+ return r;
5738
+ },
5714
5739
  handleClear() {
5715
5740
  var a;
5716
5741
  this.map && (this.map.getLayer(this.historyLayer) && this.map.removeLayer(this.historyLayer), this.map.getLayer(this.forecastLayer) && this.map.removeLayer(this.forecastLayer), this.map.getLayer(this.forecastModelLayer) && this.map.removeLayer(this.forecastModelLayer), this.map.getLayer(this.forecastNameLayer) && this.map.removeLayer(this.forecastNameLayer), this.map.getLayer(this.pointCircleLayer) && this.map.removeLayer(this.pointCircleLayer), this.map.getLayer(this.pointCircleLayer + "-border") && this.map.removeLayer(this.pointCircleLayer + "-border"), this.map.getLayer(this.pointLabelLayer) && this.map.removeLayer(this.pointLabelLayer), this.map.getLayer(this.historyPointCircleLayer) && this.map.removeLayer(this.historyPointCircleLayer), this.map.getLayer(this.historyPointCircleLayer + "-border") && this.map.removeLayer(this.historyPointCircleLayer + "-border"), this.map.getLayer(this.historyPointCircleLayer + "-inner") && this.map.removeLayer(this.historyPointCircleLayer + "-inner"), this.map.getLayer(this.historyPointLabelLayer) && this.map.removeLayer(this.historyPointLabelLayer), this.map.getLayer(this.interpolateLineLayer) && this.map.removeLayer(this.interpolateLineLayer), (a = this.interpolateMarkers) == null || a.forEach((e) => e == null ? void 0 : e.remove()), this.map.getSource(this.source) && this.map.removeSource(this.source), this.map.getSource(this.clusterSource) && this.map.removeSource(this.clusterSource), this.map.getSource(this.interpolateSource) && this.map.removeSource(this.interpolateSource), this.map.getLayer(this.circleLayer) && this.map.removeLayer(this.circleLayer), this.map.getSource(this.circleSource) && this.map.removeSource(this.circleSource), this.labelMarkers.forEach((e) => e == null ? void 0 : e.remove()), this.labelMarkers = []);
5717
5742
  },
5718
5743
  handleDateChange() {
5719
- var a, e, t, r, i, s, n, l, c, d, h, p, v, C, _, f, k, B, A, w, m, L, y, b, T, D, F, N, j, G, W, me;
5720
- if ((a = this.interpolateMarkers) == null || a.forEach((re) => re == null ? void 0 : re.remove()), this.circleSourceData.features = [], (e = this.interpolateData) != null && e.length && this.tropicals.active) {
5721
- const re = ee(this.date).utc().set({ minute: 0, second: 0, millisecond: 0 }), ue = ee.utc().add(1, "hour").set({ minute: 0, second: 0, millisecond: 0 }), we = re.isBefore(ue) && ue.diff(re, "h") < 2 ? ue.format() : re.format(), ge = this.interpolateData.filter((Y) => Y.properties.date === we && !Y.properties.disabled), ve = this.handleComputePolygons(ge), ye = S.featureCollection([...ge]);
5744
+ var a, e, t, r, i, s, n, l, c, d, h, p, b, x, E, A, B, _, f, v, m, L, y, w, M, D, N, Q, j, G, W, he;
5745
+ if ((a = this.interpolateMarkers) == null || a.forEach((te) => te == null ? void 0 : te.remove()), this.circleSourceData.features = [], (e = this.interpolateData) != null && e.length && this.tropicals.active) {
5746
+ const te = ee(this.date).utc().set({ minute: 0, second: 0, millisecond: 0 }), pe = ee.utc().add(1, "hour").set({ minute: 0, second: 0, millisecond: 0 }), ye = te.isBefore(pe) && pe.diff(te, "h") < 2 ? pe.format() : te.format(), se = this.interpolateData.filter((Y) => Y.properties.date === ye && !Y.properties.disabled), ve = this.handleComputePolygons(se), fe = T.featureCollection([...se]);
5722
5747
  ve.forEach((Y) => {
5723
- ye.features.push(Y);
5724
- }), (t = this.map) != null && t.getSource(this.interpolateSource) ? (r = this.map) == null || r.getSource(this.interpolateSource).setData(ye) : ((i = this.map) == null || i.addSource(this.interpolateSource, {
5748
+ fe.features.push(Y);
5749
+ }), (t = this.map) != null && t.getSource(this.interpolateSource) ? (r = this.map) == null || r.getSource(this.interpolateSource).setData(fe) : ((i = this.map) == null || i.addSource(this.interpolateSource, {
5725
5750
  type: "geojson",
5726
- data: ye
5751
+ data: fe
5727
5752
  }), (s = this.map) == null || s.addLayer({
5728
5753
  id: this.interpolateLineLayer,
5729
5754
  type: "line",
@@ -5735,17 +5760,17 @@ const Oa = {
5735
5760
  "line-width": 1
5736
5761
  }
5737
5762
  })), this.interpolateMarkers = [];
5738
- for (const Y of ge)
5763
+ for (const Y of se)
5739
5764
  if (!Y.properties.disabled) {
5740
- let te = "#f44336";
5741
- ((l = (n = Y.properties) == null ? void 0 : n.wind) == null ? void 0 : l.kts) < 32 || !((d = (c = Y.properties) == null ? void 0 : c.wind) != null && d.kts) ? te = "#03f869" : ((p = (h = Y.properties) == null ? void 0 : h.wind) == null ? void 0 : p.kts) >= 32 && ((C = (v = Y.properties) == null ? void 0 : v.wind) == null ? void 0 : C.kts) < 47 ? te = "#f2f202" : ((f = (_ = Y.properties) == null ? void 0 : _.wind) == null ? void 0 : f.kts) >= 47 && ((B = (k = Y.properties) == null ? void 0 : k.wind) == null ? void 0 : B.kts) < 63 ? te = "#ff9100" : ((w = (A = Y.properties) == null ? void 0 : A.wind) == null ? void 0 : w.kts) >= 63 && ((L = (m = Y.properties) == null ? void 0 : m.wind) == null ? void 0 : L.kts) < 79 ? te = "#f44336" : ((b = (y = Y.properties) == null ? void 0 : y.wind) == null ? void 0 : b.kts) >= 79 && ((D = (T = Y.properties) == null ? void 0 : T.wind) == null ? void 0 : D.kts) < 94 ? te = "#f903d0" : ((N = (F = Y.properties) == null ? void 0 : F.wind) == null ? void 0 : N.kts) >= 94 ? te = "#8702f9" : te = "#f44336";
5742
- const fe = `<svg t="1719918955501"
5765
+ let ae = "#f44336";
5766
+ ((l = (n = Y.properties) == null ? void 0 : n.wind) == null ? void 0 : l.kts) < 32 || !((d = (c = Y.properties) == null ? void 0 : c.wind) != null && d.kts) ? ae = "#03f869" : ((p = (h = Y.properties) == null ? void 0 : h.wind) == null ? void 0 : p.kts) >= 32 && ((x = (b = Y.properties) == null ? void 0 : b.wind) == null ? void 0 : x.kts) < 47 ? ae = "#f2f202" : ((A = (E = Y.properties) == null ? void 0 : E.wind) == null ? void 0 : A.kts) >= 47 && ((_ = (B = Y.properties) == null ? void 0 : B.wind) == null ? void 0 : _.kts) < 63 ? ae = "#ff9100" : ((v = (f = Y.properties) == null ? void 0 : f.wind) == null ? void 0 : v.kts) >= 63 && ((L = (m = Y.properties) == null ? void 0 : m.wind) == null ? void 0 : L.kts) < 79 ? ae = "#f44336" : ((w = (y = Y.properties) == null ? void 0 : y.wind) == null ? void 0 : w.kts) >= 79 && ((D = (M = Y.properties) == null ? void 0 : M.wind) == null ? void 0 : D.kts) < 94 ? ae = "#f903d0" : ((Q = (N = Y.properties) == null ? void 0 : N.wind) == null ? void 0 : Q.kts) >= 94 ? ae = "#8702f9" : ae = "#f44336";
5767
+ const Ae = `<svg t="1719918955501"
5743
5768
  class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" p-id="18382"
5744
5769
  xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200">
5745
5770
  <path
5746
5771
  d="M515.17000001 169.34666667c41-77.73 95.33-96 95.33-96-240 0-434.5 194.53-434.5 434.5 0 186.47 150.78 337.7 337.06 338.48C472.11000001 923.66666667 418.00000001 941.83666667 418.00000001 941.83666667c240 0 434.5-194.54 434.5-434.5l0.5 0.5C853.00000001 321.10666667 701.81000001 169.66666667 515.17000001 169.34666667z m-0.67 468A129.5 129.5 0 1 1 644.00000001 507.83666667a129.5 129.5 0 0 1-129.5 129.5z"
5747
- fill="${te}" p-id="18383"></path>
5748
- <path d="M514.50000001 507.83666667m-129.5 0a129.5 129.5 0 1 0 259 0 129.5 129.5 0 1 0-259 0Z" fill="${te}"
5772
+ fill="${ae}" p-id="18383"></path>
5773
+ <path d="M514.50000001 507.83666667m-129.5 0a129.5 129.5 0 1 0 259 0 129.5 129.5 0 1 0-259 0Z" fill="${ae}"
5749
5774
  p-id="18384"></path>
5750
5775
  <path
5751
5776
  d="M517.16666667 654.67c-80.23 0-145.5-65.27-145.5-145.5s65.27-145.5 145.5-145.5S662.66666667 428.94 662.66666667 509.17s-65.27 145.5-145.5 145.5z m0-259A113.5 113.5 0 1 0 630.66666667 509.17a113.63 113.63 0 0 0-113.5-113.5z"
@@ -5753,32 +5778,32 @@ const Oa = {
5753
5778
  <path
5754
5779
  d="M420.66666667 959.17a16.08 16.08 0 0 1-15.91-13.49A15.89 15.89 0 0 1 415.50666667 928c1.49-0.55 38.88-14.76 72.79-65.52A354.55 354.55 0 0 1 162.66666667 509.17a450.14 450.14 0 0 1 450.5-450.5 16.07 16.07 0 0 1 15.91 13.48 15.88 15.88 0 0 1-10.75 17.66c-1.58 0.58-39.13 14.9-73.07 65.95A354.22 354.22 0 0 1 871.66666667 509.17a16 16 0 0 1-0.52 4.05A450.14 450.14 0 0 1 420.66666667 959.17zM554.80666667 94.72C351.57666667 123.2 194.66666667 298.21 194.66666667 509.17c0 177.08 144.06 321.74 321.13 322.48a16 16 0 0 1 14.07 23.49c-16.11 30.42-34.27 52.37-50.85 68C682.25666667 894.63 839.16666667 719.63 839.16666667 508.67a15.94 15.94 0 0 1 0.47-3.86C837.30666667 329.33 693.82666667 187 517.80666667 186.67A16 16 0 0 1 503.66666667 163.21c16.21-30.69 34.47-52.79 51.14-68.49z"
5755
5780
  fill="#ffffff" p-id="18386"></path>
5756
- </svg>`, pe = document.createElement("div");
5757
- pe.className = "hurricane-hourly-marker", pe.innerHTML = `<div class="${Y.geometry.coordinates[1] >= 0 ? "center north" : "center south"}">${fe}</div>`;
5758
- const Ae = new Re.Marker(pe).setLngLat(Y.geometry.coordinates).addTo(this.map);
5759
- this.interpolateMarkers.push(Ae), (G = (j = this.map) == null ? void 0 : j.getSource(this.circleSource)) == null || G.setData(this.circleSourceData);
5781
+ </svg>`, ge = document.createElement("div");
5782
+ ge.className = "hurricane-hourly-marker", ge.innerHTML = `<div class="${Y.geometry.coordinates[1] >= 0 ? "center north" : "center south"}">${Ae}</div>`;
5783
+ const we = new Re.Marker(ge).setLngLat(Y.geometry.coordinates).addTo(this.map);
5784
+ this.interpolateMarkers.push(we), (G = (j = this.map) == null ? void 0 : j.getSource(this.circleSource)) == null || G.setData(this.circleSourceData);
5760
5785
  }
5761
5786
  } else
5762
- (W = this.map) != null && W.getSource(this.interpolateSource) && ((me = this.map) == null || me.getSource(this.interpolateSource).setData(this.empty));
5787
+ (W = this.map) != null && W.getSource(this.interpolateSource) && ((he = this.map) == null || he.getSource(this.interpolateSource).setData(this.empty));
5763
5788
  },
5764
5789
  handleClick(a) {
5765
- var s, n, l, c, d, h, p, v;
5790
+ var s, n, l, c, d, h, p, b;
5766
5791
  const e = a.features[0], t = (n = (s = this.tropicals) == null ? void 0 : s.data) == null ? void 0 : n.features.filter(
5767
- (C) => {
5768
- var _;
5769
- return C.geometry.type === "LineString" && C.properties.type === "forecast" && C.properties.name === ((_ = e == null ? void 0 : e.properties) == null ? void 0 : _.name);
5792
+ (x) => {
5793
+ var E;
5794
+ return x.geometry.type === "LineString" && x.properties.type === "forecast" && x.properties.name === ((E = e == null ? void 0 : e.properties) == null ? void 0 : E.name);
5770
5795
  }
5771
5796
  ), r = (c = (l = this.tropicals) == null ? void 0 : l.data) == null ? void 0 : c.features.filter(
5772
- (C) => {
5773
- var _;
5774
- return C.geometry.type === "LineString" && C.properties.type === "history" && C.properties.name === ((_ = e == null ? void 0 : e.properties) == null ? void 0 : _.name);
5797
+ (x) => {
5798
+ var E;
5799
+ return x.geometry.type === "LineString" && x.properties.type === "history" && x.properties.name === ((E = e == null ? void 0 : e.properties) == null ? void 0 : E.name);
5775
5800
  }
5776
5801
  );
5777
5802
  this.activeTropicals = {
5778
5803
  name: (d = e == null ? void 0 : e.properties) == null ? void 0 : d.name,
5779
- forecasts: t.map((C) => C.properties),
5804
+ forecasts: t.map((x) => x.properties),
5780
5805
  history: (h = r[0]) == null ? void 0 : h.properties,
5781
- showCircle: (v = (p = t[0]) == null ? void 0 : p.properties) == null ? void 0 : v.showCircle
5806
+ showCircle: (b = (p = t[0]) == null ? void 0 : p.properties) == null ? void 0 : b.showCircle
5782
5807
  }, this.showTropicals = !0;
5783
5808
  const i = document.getElementById("idm-tropical-gl3");
5784
5809
  this.activeTropicalsMarker ? this.activeTropicalsMarker.setLngLat([a.lngLat.lng, a.lngLat.lat]) : this.activeTropicalsMarker = new Re.Marker(i).setLngLat([a.lngLat.lng, a.lngLat.lat]).setOffset([220, 0]).addTo(this.map);
@@ -5791,7 +5816,7 @@ const Oa = {
5791
5816
  d.properties.category === e && (d.properties.disabled = a.disabled);
5792
5817
  }), this.interpolateData.forEach((d) => {
5793
5818
  d.properties.category === e && (d.properties.disabled = a.disabled);
5794
- }), (n = (s = this.map) == null ? void 0 : s.getSource(this.source)) == null || n.setData(S.featureCollection(t)), (c = (l = this.map) == null ? void 0 : l.getSource(this.clusterSource)) == null || c.setData(S.featureCollection(t)), this.handleDateChange();
5819
+ }), (n = (s = this.map) == null ? void 0 : s.getSource(this.source)) == null || n.setData(T.featureCollection(t)), (c = (l = this.map) == null ? void 0 : l.getSource(this.clusterSource)) == null || c.setData(T.featureCollection(t)), this.handleDateChange();
5795
5820
  },
5796
5821
  handleStrikeProbability(a) {
5797
5822
  this.$emit("tropicalProbability", a);
@@ -5851,22 +5876,22 @@ const Oa = {
5851
5876
  let c;
5852
5877
  switch (n) {
5853
5878
  case "ne":
5854
- c = S.lineArc(a, l, 0, 90, { steps: l > 0 ? 32 : 1, units: "nauticalmiles" });
5879
+ c = T.lineArc(a, l, 0, 90, { steps: l > 0 ? 32 : 1, units: "nauticalmiles" });
5855
5880
  break;
5856
5881
  case "se":
5857
- c = S.lineArc(a, l, 90, 180, { steps: l > 0 ? 32 : 1, units: "nauticalmiles" });
5882
+ c = T.lineArc(a, l, 90, 180, { steps: l > 0 ? 32 : 1, units: "nauticalmiles" });
5858
5883
  break;
5859
5884
  case "sw":
5860
- c = S.lineArc(a, l, 180, 270, { steps: l > 0 ? 32 : 1, units: "nauticalmiles" });
5885
+ c = T.lineArc(a, l, 180, 270, { steps: l > 0 ? 32 : 1, units: "nauticalmiles" });
5861
5886
  break;
5862
5887
  case "nw":
5863
- c = S.lineArc(a, l, 270, 360, { steps: l > 0 ? 32 : 1, units: "nauticalmiles" });
5888
+ c = T.lineArc(a, l, 270, 360, { steps: l > 0 ? 32 : 1, units: "nauticalmiles" });
5864
5889
  break;
5865
5890
  }
5866
5891
  r.push(...(s = c == null ? void 0 : c.geometry) == null ? void 0 : s.coordinates);
5867
5892
  }
5868
- const i = S.lineString(r);
5869
- return S.lineToPolygon(i, { properties: t });
5893
+ const i = T.lineString(r);
5894
+ return T.lineToPolygon(i, { properties: t });
5870
5895
  }
5871
5896
  }
5872
5897
  }, Ra = {
@@ -5892,7 +5917,7 @@ const Oa = {
5892
5917
  style: { "justify-content": "flex-start" }
5893
5918
  }, ai = { class: "forecast-models" }, ii = ["onClick"], ri = { class: "more" };
5894
5919
  function si(a, e, t, r, i, s) {
5895
- var n, l, c, d, h, p, v, C, _, f, k, B, A, w, m, L, y, b, T;
5920
+ var n, l, c, d, h, p, b, x, E, A, B, _, f, v, m, L, y, w, M;
5896
5921
  return Fe((u(), g("div", Ra, [
5897
5922
  o("div", ja, [
5898
5923
  o("div", {
@@ -5900,52 +5925,52 @@ function si(a, e, t, r, i, s) {
5900
5925
  onClick: e[0] || (e[0] = (D) => i.showTropicals = !1)
5901
5926
  }, ""),
5902
5927
  o("div", Wa, [
5903
- (l = (n = i.activeTropicals) == null ? void 0 : n.history) != null && l.level ? (u(), g("span", Ga, E((d = (c = i.activeTropicals) == null ? void 0 : c.history) == null ? void 0 : d.level) + " , ", 1)) : J("", !0),
5904
- le(E((h = i.activeTropicals) == null ? void 0 : h.name), 1)
5928
+ (l = (n = i.activeTropicals) == null ? void 0 : n.history) != null && l.level ? (u(), g("span", Ga, k((d = (c = i.activeTropicals) == null ? void 0 : c.history) == null ? void 0 : d.level) + " , ", 1)) : J("", !0),
5929
+ ce(k((h = i.activeTropicals) == null ? void 0 : h.name), 1)
5905
5930
  ]),
5906
- o("div", Ua, " Last update: " + E(s.computeTime(((v = (p = i.activeTropicals) == null ? void 0 : p.history) == null ? void 0 : v.updated) || ((f = (_ = (C = i.activeTropicals) == null ? void 0 : C.forecasts) == null ? void 0 : _.filter((D) => !D.disabled)[0]) == null ? void 0 : f.date))), 1)
5931
+ o("div", Ua, " Last update: " + k(s.computeTime(((b = (p = i.activeTropicals) == null ? void 0 : p.history) == null ? void 0 : b.updated) || ((A = (E = (x = i.activeTropicals) == null ? void 0 : x.forecasts) == null ? void 0 : E.filter((D) => !D.disabled)[0]) == null ? void 0 : A.date))), 1)
5907
5932
  ]),
5908
5933
  o("div", Ya, [
5909
5934
  o("div", Ka, [
5910
5935
  o("div", Xa, [
5911
5936
  o("div", Ja, [
5912
5937
  e[3] || (e[3] = o("label", null, "Wind speed : ", -1)),
5913
- o("span", null, E(((B = (k = i.activeTropicals) == null ? void 0 : k.history) == null ? void 0 : B.kts) || "-") + " [kts]", 1),
5914
- o("span", null, ", BF " + E(s.computeBF(((w = (A = i.activeTropicals) == null ? void 0 : A.history) == null ? void 0 : w.kts) || 0)), 1)
5938
+ o("span", null, k(((_ = (B = i.activeTropicals) == null ? void 0 : B.history) == null ? void 0 : _.kts) || "-") + " [kts]", 1),
5939
+ o("span", null, ", BF " + k(s.computeBF(((v = (f = i.activeTropicals) == null ? void 0 : f.history) == null ? void 0 : v.kts) || 0)), 1)
5915
5940
  ]),
5916
5941
  o("div", qa, [
5917
5942
  e[4] || (e[4] = o("label", null, "Pressure : ", -1)),
5918
- o("span", null, E(((L = (m = i.activeTropicals) == null ? void 0 : m.history) == null ? void 0 : L.pressure) || "-") + " [hPa]", 1)
5943
+ o("span", null, k(((L = (m = i.activeTropicals) == null ? void 0 : m.history) == null ? void 0 : L.pressure) || "-") + " [hPa]", 1)
5919
5944
  ])
5920
5945
  ]),
5921
5946
  o("div", Va, [
5922
5947
  o("div", Za, [
5923
5948
  e[5] || (e[5] = o("label", null, "Move Speed: ", -1)),
5924
- o("span", null, E((y = s.computeMovement(i.activeTropicals)) == null ? void 0 : y.kts) + " [kts]", 1)
5949
+ o("span", null, k((y = s.computeMovement(i.activeTropicals)) == null ? void 0 : y.kts) + " [kts]", 1)
5925
5950
  ]),
5926
5951
  o("div", $a, [
5927
5952
  e[6] || (e[6] = o("label", null, "Move Dir: ", -1)),
5928
- o("span", null, E((b = s.computeMovement(i.activeTropicals)) == null ? void 0 : b.deg) + " [°]", 1)
5953
+ o("span", null, k((w = s.computeMovement(i.activeTropicals)) == null ? void 0 : w.deg) + " [°]", 1)
5929
5954
  ])
5930
5955
  ]),
5931
5956
  o("div", ei, [
5932
5957
  o("div", ti, [
5933
5958
  e[7] || (e[7] = o("label", { style: { width: "max-content" } }, "Forecast Models : ", -1)),
5934
5959
  o("div", ai, [
5935
- (u(!0), g(V, null, $((T = i.activeTropicals) == null ? void 0 : T.forecasts, (D, F) => {
5936
- var N, j, G, W;
5960
+ (u(!0), g(V, null, $((M = i.activeTropicals) == null ? void 0 : M.forecasts, (D, N) => {
5961
+ var Q, j, G, W;
5937
5962
  return u(), g("div", {
5938
- key: F,
5963
+ key: N,
5939
5964
  class: Z([
5940
5965
  "model",
5941
5966
  D.disabled ? "" : "active",
5942
- F > 0 && F < ((j = (N = i.activeTropicals) == null ? void 0 : N.forecasts) == null ? void 0 : j.length) - 1 && ((W = (G = i.activeTropicals) == null ? void 0 : G.forecasts) == null ? void 0 : W.length) > 2 ? "center-child" : ""
5967
+ N > 0 && N < ((j = (Q = i.activeTropicals) == null ? void 0 : Q.forecasts) == null ? void 0 : j.length) - 1 && ((W = (G = i.activeTropicals) == null ? void 0 : G.forecasts) == null ? void 0 : W.length) > 2 ? "center-child" : ""
5943
5968
  ]),
5944
- onClick: (me) => s.handleForecastToggle(D)
5969
+ onClick: (he) => s.handleForecastToggle(D)
5945
5970
  }, [
5946
5971
  o("span", {
5947
5972
  class: Z(D.model)
5948
- }, E(D.model), 3)
5973
+ }, k(D.model), 3)
5949
5974
  ], 10, ii);
5950
5975
  }), 128))
5951
5976
  ])
@@ -6059,7 +6084,7 @@ const oi = {
6059
6084
  [1, "rgba(197,5,58,0.8)"]
6060
6085
  ];
6061
6086
  this.rampColor = this.webgl.setup(this.context, a);
6062
- const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, ne.vertexSchema, ne.fragmentSchema);
6087
+ const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, le.vertexSchema, le.fragmentSchema);
6063
6088
  this.program = e, this.aPositionBuffer = t;
6064
6089
  }
6065
6090
  },
@@ -6078,7 +6103,7 @@ function li(a, e, t, r, i, s) {
6078
6103
  return (n = t.factor) != null && n.active ? (u(), g("div", ni, [
6079
6104
  o("div", {
6080
6105
  class: "legend-bars flex-center",
6081
- style: he([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
6106
+ style: de([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
6082
6107
  }, e[0] || (e[0] = [
6083
6108
  o("span", null, "mm", -1),
6084
6109
  o("span", null, "1.5", -1),
@@ -6173,7 +6198,7 @@ const ci = {
6173
6198
  [1, "rgba(144,144,144,0)"]
6174
6199
  ];
6175
6200
  this.rampColor = this.webgl.setup(this.context, a);
6176
- const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, ne.vertexSchema, ne.fragmentSchema);
6201
+ const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, le.vertexSchema, le.fragmentSchema);
6177
6202
  this.program = e, this.aPositionBuffer = t;
6178
6203
  }
6179
6204
  },
@@ -6192,7 +6217,7 @@ function pi(a, e, t, r, i, s) {
6192
6217
  return (n = t.factor) != null && n.active ? (u(), g("div", di, [
6193
6218
  o("div", {
6194
6219
  class: "legend-bars flex-center",
6195
- style: he([{ position: "absolute" }, { right: a.right + "px", bottom: t.bottom }])
6220
+ style: de([{ position: "absolute" }, { right: a.right + "px", bottom: t.bottom }])
6196
6221
  }, e[0] || (e[0] = [
6197
6222
  o("span", null, "nm", -1),
6198
6223
  o("span", null, "0", -1),
@@ -6293,7 +6318,7 @@ const ui = {
6293
6318
  //
6294
6319
  ];
6295
6320
  this.rampColor = this.webgl.setup(this.context, a);
6296
- const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, ne.vertexSchema, ne.fragmentSchema);
6321
+ const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, le.vertexSchema, le.fragmentSchema);
6297
6322
  this.program = e, this.aPositionBuffer = t;
6298
6323
  }
6299
6324
  },
@@ -6312,7 +6337,7 @@ function yi(a, e, t, r, i, s) {
6312
6337
  return (n = t.factor) != null && n.active ? (u(), g("div", gi, [
6313
6338
  o("div", {
6314
6339
  class: "legend-bars flex-center",
6315
- style: he([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
6340
+ style: de([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
6316
6341
  }, e[0] || (e[0] = [
6317
6342
  o("span", null, "°C", -1),
6318
6343
  o("span", null, "0", -1),
@@ -6416,7 +6441,7 @@ const Ai = {
6416
6441
  [1, "rgb(138, 43, 10)"]
6417
6442
  ];
6418
6443
  this.rampColor = this.webgl.setup(this.context, a);
6419
- const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, ne.vertexSchema, ne.fragmentSchema);
6444
+ const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, le.vertexSchema, le.fragmentSchema);
6420
6445
  this.program = e, this.aPositionBuffer = t;
6421
6446
  }
6422
6447
  },
@@ -6435,7 +6460,7 @@ function vi(a, e, t, r, i, s) {
6435
6460
  return (n = t.factor) != null && n.active ? (u(), g("div", wi, [
6436
6461
  o("div", {
6437
6462
  class: "legend-bars flex-center",
6438
- style: he([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
6463
+ style: de([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
6439
6464
  }, e[0] || (e[0] = [
6440
6465
  o("span", null, "°C", -1),
6441
6466
  o("span", null, "-20", -1),
@@ -6611,17 +6636,17 @@ const _i = {
6611
6636
  },
6612
6637
  computeLat() {
6613
6638
  return function(a, e = 4) {
6614
- return oe.lat2pretty(a, e).pretty;
6639
+ return ne.lat2pretty(a, e).pretty;
6615
6640
  };
6616
6641
  },
6617
6642
  computeLng() {
6618
6643
  return function(a, e = 4) {
6619
- return oe.lng2pretty(a, e).pretty;
6644
+ return ne.lng2pretty(a, e).pretty;
6620
6645
  };
6621
6646
  },
6622
6647
  roundPrecision() {
6623
6648
  return function(a, e = 4) {
6624
- return isNaN(a) ? "-" : oe.roundPrecision(a, e);
6649
+ return isNaN(a) ? "-" : ne.roundPrecision(a, e);
6625
6650
  };
6626
6651
  }
6627
6652
  },
@@ -6664,7 +6689,7 @@ const _i = {
6664
6689
  initTableData(a) {
6665
6690
  var e, t, r, i, s, n, l, c, d;
6666
6691
  this.clearTable(), this.positionGmt = (t = (e = a == null ? void 0 : a.weather) == null ? void 0 : e[0]) == null ? void 0 : t.timezone, this.positionOffset = (i = (r = a == null ? void 0 : a.weather) == null ? void 0 : r[0]) == null ? void 0 : i.offset, this.localDate = (n = (s = Ye(this.ts)) == null ? void 0 : s.tz(this.positionGmt)) == null ? void 0 : n.format("MMM-DD/HHmm[LT]"), this.currentHourData = (l = Ke.pickHourly(a, ee(this.ts))) == null ? void 0 : l[0], ((d = (c = this.currentHourData) == null ? void 0 : c.weather) == null ? void 0 : d.isDay) === 0 ? this.isDay = !1 : this.isDay = !0, this.$nextTick(() => {
6667
- var p, v, C, _, f, k, B, A, w, m, L, y, b, T, D, F, N, j, G, W, me, re, ue, we, ge, ve, ye, Y, te, fe, pe, Ae, xe;
6692
+ var p, b, x, E, A, B, _, f, v, m, L, y, w, M, D, N, Q, j, G, W, he, te, pe, ye, se, ve, fe, Y, ae, Ae, ge, we, xe;
6668
6693
  if (!document.getElementById("meteoMainBox"))
6669
6694
  return !1;
6670
6695
  if (!this.currentHourData)
@@ -6673,7 +6698,7 @@ const _i = {
6673
6698
  const _e = Ye(this.ts).tz(this.positionGmt).add(3 * be, "h").format();
6674
6699
  this.tableData.hours.push(_e);
6675
6700
  const I = ((p = Ke.pickHourly(a, _e)) == null ? void 0 : p[0]) || {};
6676
- this.tableData.temp.push(this.roundPrecision((v = I == null ? void 0 : I.weather) == null ? void 0 : v.temp, 0) ?? "-"), this.tableData.precipProbability.push(this.roundPrecision((_ = (C = I == null ? void 0 : I.weather) == null ? void 0 : C.precip) == null ? void 0 : _.probability, 0) ?? "-"), this.tableData.precip1h.push(this.roundPrecision((k = (f = I == null ? void 0 : I.weather) == null ? void 0 : f.precip) == null ? void 0 : k.sum, 0) ?? "-"), this.tableData.visibility.push(this.roundPrecision((B = I == null ? void 0 : I.weather) == null ? void 0 : B.visibility, 0) ?? "-"), this.tableData.windSpeed.push(this.roundPrecision((w = (A = I == null ? void 0 : I.weather) == null ? void 0 : A.wind) == null ? void 0 : w.kts, 1) ?? "-"), this.tableData.windDir.push((L = (m = I == null ? void 0 : I.weather) == null ? void 0 : m.wind) == null ? void 0 : L.bearing), this.tableData.windGust.push(this.roundPrecision((b = (y = I == null ? void 0 : I.weather) == null ? void 0 : y.wind) == null ? void 0 : b.gusts, 1) ?? "-"), this.tableData.sigwaveHeight.push(this.roundPrecision((D = (T = I == null ? void 0 : I.wave) == null ? void 0 : T.sig) == null ? void 0 : D.height, 1) ?? "-"), this.tableData.sigwaveDir.push((N = (F = I == null ? void 0 : I.wave) == null ? void 0 : F.sig) == null ? void 0 : N.bearing), this.tableData.windwaveHeight.push(this.roundPrecision((G = (j = I == null ? void 0 : I.wave) == null ? void 0 : j.wd) == null ? void 0 : G.height, 1) ?? "-"), this.tableData.windwaveDir.push((me = (W = I == null ? void 0 : I.wave) == null ? void 0 : W.wd) == null ? void 0 : me.bearing), this.tableData.windwavePeriod.push(this.roundPrecision((ue = (re = I == null ? void 0 : I.wave) == null ? void 0 : re.wd) == null ? void 0 : ue.period, 1) ?? "-"), this.tableData.swellHeight.push(this.roundPrecision((ge = (we = I == null ? void 0 : I.wave) == null ? void 0 : we.swell) == null ? void 0 : ge.height, 1) ?? "-"), this.tableData.swellDir.push((ye = (ve = I == null ? void 0 : I.wave) == null ? void 0 : ve.swell) == null ? void 0 : ye.bearing), this.tableData.swellPeriod.push(this.roundPrecision((te = (Y = I == null ? void 0 : I.wave) == null ? void 0 : Y.swell) == null ? void 0 : te.period, 1) ?? "-"), this.tableData.currentSpeed.push(this.roundPrecision((fe = I == null ? void 0 : I.current) == null ? void 0 : fe.speed, 1) ?? "-"), this.tableData.currentDir.push((pe = I == null ? void 0 : I.current) == null ? void 0 : pe.bearing), this.tableData.seaLevel.push(this.roundPrecision(I == null ? void 0 : I.height, 1) ?? "-"), this.tableData.seaTemp.push(this.roundPrecision(I == null ? void 0 : I.sst, 0) ?? "-"), this.tableData.weatherUrls.push((Ae = I == null ? void 0 : I.weather) == null ? void 0 : Ae.url), this.tableData.weatherNames.push(((xe = I == null ? void 0 : I.weather) == null ? void 0 : xe.name) ?? "-");
6701
+ this.tableData.temp.push(this.roundPrecision((b = I == null ? void 0 : I.weather) == null ? void 0 : b.temp, 0) ?? "-"), this.tableData.precipProbability.push(this.roundPrecision((E = (x = I == null ? void 0 : I.weather) == null ? void 0 : x.precip) == null ? void 0 : E.probability, 0) ?? "-"), this.tableData.precip1h.push(this.roundPrecision((B = (A = I == null ? void 0 : I.weather) == null ? void 0 : A.precip) == null ? void 0 : B.sum, 0) ?? "-"), this.tableData.visibility.push(this.roundPrecision((_ = I == null ? void 0 : I.weather) == null ? void 0 : _.visibility, 0) ?? "-"), this.tableData.windSpeed.push(this.roundPrecision((v = (f = I == null ? void 0 : I.weather) == null ? void 0 : f.wind) == null ? void 0 : v.kts, 1) ?? "-"), this.tableData.windDir.push((L = (m = I == null ? void 0 : I.weather) == null ? void 0 : m.wind) == null ? void 0 : L.bearing), this.tableData.windGust.push(this.roundPrecision((w = (y = I == null ? void 0 : I.weather) == null ? void 0 : y.wind) == null ? void 0 : w.gusts, 1) ?? "-"), this.tableData.sigwaveHeight.push(this.roundPrecision((D = (M = I == null ? void 0 : I.wave) == null ? void 0 : M.sig) == null ? void 0 : D.height, 1) ?? "-"), this.tableData.sigwaveDir.push((Q = (N = I == null ? void 0 : I.wave) == null ? void 0 : N.sig) == null ? void 0 : Q.bearing), this.tableData.windwaveHeight.push(this.roundPrecision((G = (j = I == null ? void 0 : I.wave) == null ? void 0 : j.wd) == null ? void 0 : G.height, 1) ?? "-"), this.tableData.windwaveDir.push((he = (W = I == null ? void 0 : I.wave) == null ? void 0 : W.wd) == null ? void 0 : he.bearing), this.tableData.windwavePeriod.push(this.roundPrecision((pe = (te = I == null ? void 0 : I.wave) == null ? void 0 : te.wd) == null ? void 0 : pe.period, 1) ?? "-"), this.tableData.swellHeight.push(this.roundPrecision((se = (ye = I == null ? void 0 : I.wave) == null ? void 0 : ye.swell) == null ? void 0 : se.height, 1) ?? "-"), this.tableData.swellDir.push((fe = (ve = I == null ? void 0 : I.wave) == null ? void 0 : ve.swell) == null ? void 0 : fe.bearing), this.tableData.swellPeriod.push(this.roundPrecision((ae = (Y = I == null ? void 0 : I.wave) == null ? void 0 : Y.swell) == null ? void 0 : ae.period, 1) ?? "-"), this.tableData.currentSpeed.push(this.roundPrecision((Ae = I == null ? void 0 : I.current) == null ? void 0 : Ae.speed, 1) ?? "-"), this.tableData.currentDir.push((ge = I == null ? void 0 : I.current) == null ? void 0 : ge.bearing), this.tableData.seaLevel.push(this.roundPrecision(I == null ? void 0 : I.height, 1) ?? "-"), this.tableData.seaTemp.push(this.roundPrecision(I == null ? void 0 : I.sst, 0) ?? "-"), this.tableData.weatherUrls.push((we = I == null ? void 0 : I.weather) == null ? void 0 : we.url), this.tableData.weatherNames.push(((xe = I == null ? void 0 : I.weather) == null ? void 0 : xe.name) ?? "-");
6677
6702
  }
6678
6703
  });
6679
6704
  },
@@ -6799,33 +6824,33 @@ const _i = {
6799
6824
  class: "main-box flex-center"
6800
6825
  };
6801
6826
  function Qr(a, e, t, r, i, s) {
6802
- var d, h, p, v, C, _, f, k, B, A, w, m, L, y, b, T, D, F, N, j, G, W, me, re, ue, we, ge, ve, ye, Y, te, fe, pe, Ae, xe, be, _e, I, ze, Le, Pe, Ee, He, ke, se, ce, Q, Be, K, q, Me, P, de, De, Se, Te, z, O, Ge, Ue, ie, Ne, tt, at, it, rt, st, ot;
6827
+ var d, h, p, b, x, E, A, B, _, f, v, m, L, y, w, M, D, N, Q, j, G, W, he, te, pe, ye, se, ve, fe, Y, ae, Ae, ge, we, xe, be, _e, I, ze, Le, Pe, Ee, He, ke, oe, me, H, Be, K, q, Me, P, ue, De, Se, Te, z, O, Ge, Ue, re, Ne, tt, at, it, rt, st, ot;
6803
6828
  const n = R("LocationFilled"), l = R("ElIcon"), c = R("ElTooltip");
6804
6829
  return Fe((u(), g("div", Bi, [
6805
6830
  o("div", Ii, [
6806
6831
  o("div", Ei, [
6807
6832
  o("div", ki, [
6808
- H(l, { size: "22" }, {
6833
+ F(l, { size: "22" }, {
6809
6834
  default: Ie(() => [
6810
- H(n)
6835
+ F(n)
6811
6836
  ]),
6812
6837
  _: 1
6813
6838
  }),
6814
- o("div", Di, E(s.computeLat((d = i.point) == null ? void 0 : d.lat)) + "," + E(s.computeLng((h = i.point) == null ? void 0 : h.lng)), 1)
6839
+ o("div", Di, k(s.computeLat((d = i.point) == null ? void 0 : d.lat)) + "," + k(s.computeLng((h = i.point) == null ? void 0 : h.lng)), 1)
6815
6840
  ]),
6816
6841
  o("div", zi, [
6817
6842
  i.showTables ? (u(), g("div", {
6818
6843
  key: 0,
6819
6844
  class: "iconfont toggle",
6820
- onClick: e[0] || (e[0] = (x) => i.showTables = !i.showTables)
6845
+ onClick: e[0] || (e[0] = (C) => i.showTables = !i.showTables)
6821
6846
  }, "")) : (u(), g("div", {
6822
6847
  key: 1,
6823
6848
  class: "iconfont toggle",
6824
- onClick: e[1] || (e[1] = (x) => i.showTables = !i.showTables)
6849
+ onClick: e[1] || (e[1] = (C) => i.showTables = !i.showTables)
6825
6850
  }, "")),
6826
6851
  o("div", {
6827
6852
  class: "iconfont close",
6828
- onClick: e[2] || (e[2] = (...x) => s.handleCloseMeteo && s.handleCloseMeteo(...x))
6853
+ onClick: e[2] || (e[2] = (...C) => s.handleCloseMeteo && s.handleCloseMeteo(...C))
6829
6854
  }, "")
6830
6855
  ])
6831
6856
  ]),
@@ -6841,16 +6866,16 @@ function Qr(a, e, t, r, i, s) {
6841
6866
  }, [
6842
6867
  o("div", Pi, [
6843
6868
  o("div", Mi, [
6844
- H(c, {
6869
+ F(c, {
6845
6870
  placement: "top",
6846
6871
  effect: "light",
6847
- content: (v = (p = i.currentHourData) == null ? void 0 : p.weather) == null ? void 0 : v.name,
6872
+ content: (b = (p = i.currentHourData) == null ? void 0 : p.weather) == null ? void 0 : b.name,
6848
6873
  "show-after": 1e3
6849
6874
  }, {
6850
6875
  default: Ie(() => {
6851
- var x, M, nt, lt;
6876
+ var C, S, nt, lt;
6852
6877
  return [
6853
- (M = (x = i.currentHourData) == null ? void 0 : x.weather) != null && M.url ? (u(), g("img", {
6878
+ (S = (C = i.currentHourData) == null ? void 0 : C.weather) != null && S.url ? (u(), g("img", {
6854
6879
  key: 0,
6855
6880
  class: "iconfont icon",
6856
6881
  style: { "margin-right": "5px" },
@@ -6862,47 +6887,47 @@ function Qr(a, e, t, r, i, s) {
6862
6887
  }, 8, ["content"]),
6863
6888
  o("div", Qi, [
6864
6889
  o("div", null, [
6865
- le(E(s.roundPrecision((_ = (C = i.currentHourData) == null ? void 0 : C.weather) == null ? void 0 : _.temp, 0)), 1),
6890
+ ce(k(s.roundPrecision((E = (x = i.currentHourData) == null ? void 0 : x.weather) == null ? void 0 : E.temp, 0)), 1),
6866
6891
  e[9] || (e[9] = o("span", { style: { "font-size": "14px" } }, "°C", -1))
6867
6892
  ])
6868
6893
  ]),
6869
6894
  o("div", Hi, [
6870
6895
  o("div", Ni, [
6871
6896
  e[10] || (e[10] = o("label", null, "Precip : ", -1)),
6872
- o("span", null, E(s.roundPrecision((B = (k = (f = i.currentHourData) == null ? void 0 : f.weather) == null ? void 0 : k.precip) == null ? void 0 : B.sum, 0)) + " mm", 1)
6897
+ o("span", null, k(s.roundPrecision((_ = (B = (A = i.currentHourData) == null ? void 0 : A.weather) == null ? void 0 : B.precip) == null ? void 0 : _.sum, 0)) + " mm", 1)
6873
6898
  ]),
6874
6899
  o("div", Fi, [
6875
6900
  e[11] || (e[11] = o("label", null, "Visibility : ", -1)),
6876
- o("span", null, E(s.roundPrecision((w = (A = i.currentHourData) == null ? void 0 : A.weather) == null ? void 0 : w.visibility, 0)) + " nm", 1)
6901
+ o("span", null, k(s.roundPrecision((v = (f = i.currentHourData) == null ? void 0 : f.weather) == null ? void 0 : v.visibility, 0)) + " nm", 1)
6877
6902
  ]),
6878
6903
  o("div", Oi, [
6879
6904
  e[12] || (e[12] = o("label", null, "Wind : ", -1)),
6880
- o("span", null, E(s.roundPrecision((y = (L = (m = i.currentHourData) == null ? void 0 : m.weather) == null ? void 0 : L.wind) == null ? void 0 : y.kts, 1)) + " kts", 1)
6905
+ o("span", null, k(s.roundPrecision((y = (L = (m = i.currentHourData) == null ? void 0 : m.weather) == null ? void 0 : L.wind) == null ? void 0 : y.kts, 1)) + " kts", 1)
6881
6906
  ])
6882
6907
  ])
6883
6908
  ]),
6884
6909
  o("div", Ri, [
6885
- o("div", ji, E(i.localDate), 1),
6886
- o("div", Wi, "( UTC " + E(i.positionOffset) + " )", 1)
6910
+ o("div", ji, k(i.localDate), 1),
6911
+ o("div", Wi, "( UTC " + k(i.positionOffset) + " )", 1)
6887
6912
  ])
6888
6913
  ]),
6889
6914
  Fe(o("div", Gi, [
6890
6915
  o("div", Ui, [
6891
6916
  o("div", {
6892
6917
  class: Z(["menu-item", i.activeIndex === 1 ? "active" : ""]),
6893
- onClick: e[3] || (e[3] = Ve((x) => s.handleSelectTab(1), ["prevent"]))
6918
+ onClick: e[3] || (e[3] = Ve((C) => s.handleSelectTab(1), ["prevent"]))
6894
6919
  }, "Basis", 2),
6895
6920
  o("div", {
6896
6921
  class: Z(["menu-item", i.activeIndex === 2 ? "active" : ""]),
6897
- onClick: e[4] || (e[4] = Ve((x) => s.handleSelectTab(2), ["prevent"]))
6922
+ onClick: e[4] || (e[4] = Ve((C) => s.handleSelectTab(2), ["prevent"]))
6898
6923
  }, "Wave & Current", 2),
6899
6924
  o("div", {
6900
6925
  class: Z(["menu-item", i.activeIndex === 3 ? "active" : ""]),
6901
- onClick: e[5] || (e[5] = Ve((x) => s.handleSelectTab(3), ["prevent"]))
6926
+ onClick: e[5] || (e[5] = Ve((C) => s.handleSelectTab(3), ["prevent"]))
6902
6927
  }, "Sea Surface", 2),
6903
6928
  o("div", {
6904
6929
  class: Z(["menu-item", i.activeIndex === 4 ? "active" : ""]),
6905
- onClick: e[6] || (e[6] = Ve((x) => s.handleSelectTab(4), ["prevent"]))
6930
+ onClick: e[6] || (e[6] = Ve((C) => s.handleSelectTab(4), ["prevent"]))
6906
6931
  }, "Tides", 2)
6907
6932
  ]),
6908
6933
  Fe(o("table", Yi, [
@@ -6912,14 +6937,14 @@ function Qr(a, e, t, r, i, s) {
6912
6937
  colspan: "1",
6913
6938
  class: "tr-title"
6914
6939
  }, [
6915
- le("Hours"),
6940
+ ce("Hours"),
6916
6941
  o("span", { class: "unit" }, "(LT)")
6917
6942
  ], -1)),
6918
- (u(!0), g(V, null, $(i.tableData.hours, (x) => (u(), g("th", {
6943
+ (u(!0), g(V, null, $(i.tableData.hours, (C) => (u(), g("th", {
6919
6944
  rowspan: "1",
6920
6945
  colspan: "1",
6921
- key: `HourL${x}`
6922
- }, E(s.computeHourL(x)), 1))), 128))
6946
+ key: `HourL${C}`
6947
+ }, k(s.computeHourL(C)), 1))), 128))
6923
6948
  ]),
6924
6949
  o("tr", Xi, [
6925
6950
  e[14] || (e[14] = o("th", {
@@ -6927,14 +6952,14 @@ function Qr(a, e, t, r, i, s) {
6927
6952
  colspan: "1",
6928
6953
  class: "tr-title"
6929
6954
  }, [
6930
- le("UTC"),
6955
+ ce("UTC"),
6931
6956
  o("span", { class: "unit" })
6932
6957
  ], -1)),
6933
- (u(!0), g(V, null, $(i.tableData.hours, (x) => (u(), g("th", {
6958
+ (u(!0), g(V, null, $(i.tableData.hours, (C) => (u(), g("th", {
6934
6959
  rowspan: "1",
6935
6960
  colspan: "1",
6936
- key: `HourZ${x}`
6937
- }, E(s.computeHourZ(x)), 1))), 128))
6961
+ key: `HourZ${C}`
6962
+ }, k(s.computeHourZ(C)), 1))), 128))
6938
6963
  ]),
6939
6964
  o("tr", Ji, [
6940
6965
  e[15] || (e[15] = o("th", {
@@ -6942,22 +6967,22 @@ function Qr(a, e, t, r, i, s) {
6942
6967
  colspan: "1",
6943
6968
  class: "tr-title"
6944
6969
  }, null, -1)),
6945
- (u(!0), g(V, null, $(i.tableData.weatherUrls, (x, M) => (u(), g("th", {
6970
+ (u(!0), g(V, null, $(i.tableData.weatherUrls, (C, S) => (u(), g("th", {
6946
6971
  rowspan: "1",
6947
6972
  colspan: "1",
6948
- key: `weatherUrls${M}${x}`
6973
+ key: `weatherUrls${S}${C}`
6949
6974
  }, [
6950
- H(c, {
6975
+ F(c, {
6951
6976
  placement: "top",
6952
6977
  effect: "light",
6953
- content: i.tableData.weatherNames[M],
6978
+ content: i.tableData.weatherNames[S],
6954
6979
  "show-after": 500
6955
6980
  }, {
6956
6981
  default: Ie(() => [
6957
- x ? (u(), g("img", {
6982
+ C ? (u(), g("img", {
6958
6983
  key: 0,
6959
6984
  class: "iconfont weather-icon",
6960
- src: x,
6985
+ src: C,
6961
6986
  alt: ""
6962
6987
  }, null, 8, qi)) : J("", !0)
6963
6988
  ]),
@@ -6971,14 +6996,14 @@ function Qr(a, e, t, r, i, s) {
6971
6996
  colspan: "1",
6972
6997
  class: "tr-title"
6973
6998
  }, [
6974
- le("Temp"),
6999
+ ce("Temp"),
6975
7000
  o("span", { class: "unit" }, "°C")
6976
7001
  ], -1)),
6977
- (u(!0), g(V, null, $(i.tableData.temp, (x, M) => (u(), g("td", {
7002
+ (u(!0), g(V, null, $(i.tableData.temp, (C, S) => (u(), g("td", {
6978
7003
  rowspan: "1",
6979
7004
  colspan: "1",
6980
- key: `weatherUrls${M}${x}`
6981
- }, E(x), 1))), 128))
7005
+ key: `weatherUrls${S}${C}`
7006
+ }, k(C), 1))), 128))
6982
7007
  ]),
6983
7008
  o("tr", Zi, [
6984
7009
  e[17] || (e[17] = o("td", {
@@ -6986,14 +7011,14 @@ function Qr(a, e, t, r, i, s) {
6986
7011
  colspan: "1",
6987
7012
  class: "tr-title"
6988
7013
  }, [
6989
- le("Precip"),
7014
+ ce("Precip"),
6990
7015
  o("span", { class: "unit" }, "mm")
6991
7016
  ], -1)),
6992
- (u(!0), g(V, null, $(i.tableData.precip1h, (x, M) => (u(), g("td", {
7017
+ (u(!0), g(V, null, $(i.tableData.precip1h, (C, S) => (u(), g("td", {
6993
7018
  rowspan: "1",
6994
7019
  colspan: "1",
6995
- key: `precip1h${M}${x}`
6996
- }, E(x), 1))), 128))
7020
+ key: `precip1h${S}${C}`
7021
+ }, k(C), 1))), 128))
6997
7022
  ]),
6998
7023
  o("tr", $i, [
6999
7024
  e[18] || (e[18] = o("td", {
@@ -7001,14 +7026,14 @@ function Qr(a, e, t, r, i, s) {
7001
7026
  colspan: "1",
7002
7027
  class: "tr-title"
7003
7028
  }, [
7004
- le("Visibility"),
7029
+ ce("Visibility"),
7005
7030
  o("span", { class: "unit" }, "nm")
7006
7031
  ], -1)),
7007
- (u(!0), g(V, null, $(i.tableData.visibility, (x, M) => (u(), g("td", {
7032
+ (u(!0), g(V, null, $(i.tableData.visibility, (C, S) => (u(), g("td", {
7008
7033
  rowspan: "1",
7009
7034
  colspan: "1",
7010
- key: `visibility${M}${x}`
7011
- }, E(x), 1))), 128))
7035
+ key: `visibility${S}${C}`
7036
+ }, k(C), 1))), 128))
7012
7037
  ]),
7013
7038
  o("tr", er, [
7014
7039
  e[19] || (e[19] = o("td", {
@@ -7016,15 +7041,15 @@ function Qr(a, e, t, r, i, s) {
7016
7041
  colspan: "1",
7017
7042
  class: "tr-title"
7018
7043
  }, [
7019
- le("Wind gust"),
7044
+ ce("Wind gust"),
7020
7045
  o("span", { class: "unit" }, "kts")
7021
7046
  ], -1)),
7022
- (u(!0), g(V, null, $(i.tableData.windGust, (x, M) => (u(), g("td", {
7047
+ (u(!0), g(V, null, $(i.tableData.windGust, (C, S) => (u(), g("td", {
7023
7048
  rowspan: "1",
7024
7049
  colspan: "1",
7025
- key: `windGust${M}${x}`
7050
+ key: `windGust${S}${C}`
7026
7051
  }, [
7027
- o("span", null, E(x), 1)
7052
+ o("span", null, k(C), 1)
7028
7053
  ]))), 128))
7029
7054
  ])
7030
7055
  ], 512), [
@@ -7037,14 +7062,14 @@ function Qr(a, e, t, r, i, s) {
7037
7062
  colspan: "1",
7038
7063
  class: "tr-title"
7039
7064
  }, [
7040
- le("Hours"),
7065
+ ce("Hours"),
7041
7066
  o("span", { class: "unit" }, "(LT)")
7042
7067
  ], -1)),
7043
- (u(!0), g(V, null, $(i.tableData.hours, (x, M) => (u(), g("th", {
7068
+ (u(!0), g(V, null, $(i.tableData.hours, (C, S) => (u(), g("th", {
7044
7069
  rowspan: "1",
7045
7070
  colspan: "1",
7046
- key: `currenthoursL${M}${x}`
7047
- }, E(s.computeHourL(x)), 1))), 128))
7071
+ key: `currenthoursL${S}${C}`
7072
+ }, k(s.computeHourL(C)), 1))), 128))
7048
7073
  ]),
7049
7074
  o("tr", ir, [
7050
7075
  e[21] || (e[21] = o("th", {
@@ -7052,14 +7077,14 @@ function Qr(a, e, t, r, i, s) {
7052
7077
  colspan: "1",
7053
7078
  class: "tr-title"
7054
7079
  }, [
7055
- le("UTC"),
7080
+ ce("UTC"),
7056
7081
  o("span", { class: "unit" })
7057
7082
  ], -1)),
7058
- (u(!0), g(V, null, $(i.tableData.hours, (x, M) => (u(), g("th", {
7083
+ (u(!0), g(V, null, $(i.tableData.hours, (C, S) => (u(), g("th", {
7059
7084
  rowspan: "1",
7060
7085
  colspan: "1",
7061
- key: `currenthoursZ${M}${x}`
7062
- }, E(s.computeHourZ(x)), 1))), 128))
7086
+ key: `currenthoursZ${S}${C}`
7087
+ }, k(s.computeHourZ(C)), 1))), 128))
7063
7088
  ]),
7064
7089
  o("tr", rr, [
7065
7090
  e[22] || (e[22] = o("td", {
@@ -7067,20 +7092,20 @@ function Qr(a, e, t, r, i, s) {
7067
7092
  colspan: "1",
7068
7093
  class: "tr-title"
7069
7094
  }, [
7070
- le("Wind"),
7095
+ ce("Wind"),
7071
7096
  o("span", { class: "unit" }, "kts")
7072
7097
  ], -1)),
7073
- (u(!0), g(V, null, $(i.tableData.windSpeed, (x, M) => (u(), g("td", {
7098
+ (u(!0), g(V, null, $(i.tableData.windSpeed, (C, S) => (u(), g("td", {
7074
7099
  rowspan: "1",
7075
7100
  colspan: "1",
7076
- key: `windSpeed${M}${x}`
7101
+ key: `windSpeed${S}${C}`
7077
7102
  }, [
7078
- isNaN(i.tableData.windDir[M]) ? J("", !0) : (u(), g("span", {
7103
+ isNaN(i.tableData.windDir[S]) ? J("", !0) : (u(), g("span", {
7079
7104
  key: 0,
7080
7105
  class: "iconfont icon wind",
7081
- style: he({ display: "inline-block", transform: `rotate(${i.tableData.windDir[M]}deg)` })
7106
+ style: de({ display: "inline-block", transform: `rotate(${i.tableData.windDir[S]}deg)` })
7082
7107
  }, "", 4)),
7083
- o("span", null, E(x), 1)
7108
+ o("span", null, k(C), 1)
7084
7109
  ]))), 128))
7085
7110
  ]),
7086
7111
  o("tr", sr, [
@@ -7089,20 +7114,20 @@ function Qr(a, e, t, r, i, s) {
7089
7114
  colspan: "1",
7090
7115
  class: "tr-title"
7091
7116
  }, [
7092
- le("Sig Wave"),
7117
+ ce("Sig Wave"),
7093
7118
  o("span", { class: "unit" }, "m")
7094
7119
  ], -1)),
7095
- (u(!0), g(V, null, $(i.tableData.sigwaveHeight, (x, M) => (u(), g("td", {
7120
+ (u(!0), g(V, null, $(i.tableData.sigwaveHeight, (C, S) => (u(), g("td", {
7096
7121
  rowspan: "1",
7097
7122
  colspan: "1",
7098
- key: `sigwaveHeight${M}${x}`
7123
+ key: `sigwaveHeight${S}${C}`
7099
7124
  }, [
7100
- isNaN(i.tableData.sigwaveDir[M]) ? J("", !0) : (u(), g("span", {
7125
+ isNaN(i.tableData.sigwaveDir[S]) ? J("", !0) : (u(), g("span", {
7101
7126
  key: 0,
7102
7127
  class: "iconfont icon sigwave",
7103
- style: he({ display: "inline-block", transform: `rotate(${i.tableData.sigwaveDir[M]}deg)` })
7128
+ style: de({ display: "inline-block", transform: `rotate(${i.tableData.sigwaveDir[S]}deg)` })
7104
7129
  }, "", 4)),
7105
- o("span", null, E(x), 1)
7130
+ o("span", null, k(C), 1)
7106
7131
  ]))), 128))
7107
7132
  ]),
7108
7133
  o("tr", or, [
@@ -7111,20 +7136,20 @@ function Qr(a, e, t, r, i, s) {
7111
7136
  colspan: "1",
7112
7137
  class: "tr-title"
7113
7138
  }, [
7114
- le("Wind Wave"),
7139
+ ce("Wind Wave"),
7115
7140
  o("span", { class: "unit" }, "m")
7116
7141
  ], -1)),
7117
- (u(!0), g(V, null, $(i.tableData.windwaveHeight, (x, M) => (u(), g("td", {
7142
+ (u(!0), g(V, null, $(i.tableData.windwaveHeight, (C, S) => (u(), g("td", {
7118
7143
  rowspan: "1",
7119
7144
  colspan: "1",
7120
- key: `windwaveHeight${M}${x}`
7145
+ key: `windwaveHeight${S}${C}`
7121
7146
  }, [
7122
- isNaN(i.tableData.sigwaveDir[M]) ? J("", !0) : (u(), g("span", {
7147
+ isNaN(i.tableData.sigwaveDir[S]) ? J("", !0) : (u(), g("span", {
7123
7148
  key: 0,
7124
7149
  class: "iconfont icon windwave",
7125
- style: he({ display: "inline-block", transform: `rotate(${i.tableData.windwaveDir[M]}deg)` })
7150
+ style: de({ display: "inline-block", transform: `rotate(${i.tableData.windwaveDir[S]}deg)` })
7126
7151
  }, "", 4)),
7127
- o("span", null, E(x), 1)
7152
+ o("span", null, k(C), 1)
7128
7153
  ]))), 128))
7129
7154
  ]),
7130
7155
  o("tr", nr, [
@@ -7133,20 +7158,20 @@ function Qr(a, e, t, r, i, s) {
7133
7158
  colspan: "1",
7134
7159
  class: "tr-title"
7135
7160
  }, [
7136
- le("Swell"),
7161
+ ce("Swell"),
7137
7162
  o("span", { class: "unit" }, "m")
7138
7163
  ], -1)),
7139
- (u(!0), g(V, null, $(i.tableData.swellHeight, (x, M) => (u(), g("td", {
7164
+ (u(!0), g(V, null, $(i.tableData.swellHeight, (C, S) => (u(), g("td", {
7140
7165
  rowspan: "1",
7141
7166
  colspan: "1",
7142
- key: `swellHeight${M}${x}`
7167
+ key: `swellHeight${S}${C}`
7143
7168
  }, [
7144
- isNaN(i.tableData.swellDir[M]) ? J("", !0) : (u(), g("span", {
7169
+ isNaN(i.tableData.swellDir[S]) ? J("", !0) : (u(), g("span", {
7145
7170
  key: 0,
7146
7171
  class: "iconfont icon swell",
7147
- style: he({ display: "inline-block", transform: `rotate(${i.tableData.swellDir[M]}deg)` })
7172
+ style: de({ display: "inline-block", transform: `rotate(${i.tableData.swellDir[S]}deg)` })
7148
7173
  }, "", 4)),
7149
- o("span", null, E(x), 1)
7174
+ o("span", null, k(C), 1)
7150
7175
  ]))), 128))
7151
7176
  ]),
7152
7177
  o("tr", lr, [
@@ -7155,21 +7180,21 @@ function Qr(a, e, t, r, i, s) {
7155
7180
  colspan: "1",
7156
7181
  class: "tr-title"
7157
7182
  }, [
7158
- le("Current"),
7183
+ ce("Current"),
7159
7184
  o("span", { class: "unit" }, "kts")
7160
7185
  ], -1)),
7161
- (u(!0), g(V, null, $(i.tableData.currentSpeed, (x, M) => (u(), g("td", {
7186
+ (u(!0), g(V, null, $(i.tableData.currentSpeed, (C, S) => (u(), g("td", {
7162
7187
  rowspan: "1",
7163
7188
  colspan: "1",
7164
- key: `currentSpeed${M}${x}`
7189
+ key: `currentSpeed${S}${C}`
7165
7190
  }, [
7166
- isNaN(i.tableData.currentDir[M]) ? J("", !0) : (u(), g("span", {
7191
+ isNaN(i.tableData.currentDir[S]) ? J("", !0) : (u(), g("span", {
7167
7192
  key: 0,
7168
7193
  class: "iconfont icon current",
7169
7194
  id: "meteoGrayIcon",
7170
- style: he({ display: "inline-block", transform: `rotate(${i.tableData.currentDir[M]}deg)` })
7195
+ style: de({ display: "inline-block", transform: `rotate(${i.tableData.currentDir[S]}deg)` })
7171
7196
  }, "", 4)),
7172
- o("span", null, E(x), 1)
7197
+ o("span", null, k(C), 1)
7173
7198
  ]))), 128))
7174
7199
  ])
7175
7200
  ], 512), [
@@ -7182,14 +7207,14 @@ function Qr(a, e, t, r, i, s) {
7182
7207
  colspan: "1",
7183
7208
  class: "tr-title"
7184
7209
  }, [
7185
- le("Hours"),
7210
+ ce("Hours"),
7186
7211
  o("span", { class: "unit" }, "(LT)")
7187
7212
  ], -1)),
7188
- (u(!0), g(V, null, $(i.tableData.hours, (x, M) => (u(), g("th", {
7213
+ (u(!0), g(V, null, $(i.tableData.hours, (C, S) => (u(), g("th", {
7189
7214
  rowspan: "1",
7190
7215
  colspan: "1",
7191
- key: `seahoursL${M}${x}`
7192
- }, E(s.computeHourL(x)), 1))), 128))
7216
+ key: `seahoursL${S}${C}`
7217
+ }, k(s.computeHourL(C)), 1))), 128))
7193
7218
  ]),
7194
7219
  o("tr", dr, [
7195
7220
  e[28] || (e[28] = o("th", {
@@ -7197,14 +7222,14 @@ function Qr(a, e, t, r, i, s) {
7197
7222
  colspan: "1",
7198
7223
  class: "tr-title"
7199
7224
  }, [
7200
- le("UTC"),
7225
+ ce("UTC"),
7201
7226
  o("span", { class: "unit" })
7202
7227
  ], -1)),
7203
- (u(!0), g(V, null, $(i.tableData.hours, (x, M) => (u(), g("th", {
7228
+ (u(!0), g(V, null, $(i.tableData.hours, (C, S) => (u(), g("th", {
7204
7229
  rowspan: "1",
7205
7230
  colspan: "1",
7206
- key: `seahoursZ${M}${x}`
7207
- }, E(s.computeHourZ(x)), 1))), 128))
7231
+ key: `seahoursZ${S}${C}`
7232
+ }, k(s.computeHourZ(C)), 1))), 128))
7208
7233
  ]),
7209
7234
  o("tr", pr, [
7210
7235
  e[29] || (e[29] = o("td", {
@@ -7212,14 +7237,14 @@ function Qr(a, e, t, r, i, s) {
7212
7237
  colspan: "1",
7213
7238
  class: "tr-title"
7214
7239
  }, [
7215
- le("SeaLevel"),
7240
+ ce("SeaLevel"),
7216
7241
  o("span", { class: "unit" }, "m")
7217
7242
  ], -1)),
7218
- (u(!0), g(V, null, $(i.tableData.seaLevel, (x, M) => (u(), g("td", {
7243
+ (u(!0), g(V, null, $(i.tableData.seaLevel, (C, S) => (u(), g("td", {
7219
7244
  rowspan: "1",
7220
7245
  colspan: "1",
7221
- key: `SeaLevel${M}${x}`
7222
- }, E(x), 1))), 128))
7246
+ key: `SeaLevel${S}${C}`
7247
+ }, k(C), 1))), 128))
7223
7248
  ]),
7224
7249
  o("tr", mr, [
7225
7250
  e[30] || (e[30] = o("td", {
@@ -7227,14 +7252,14 @@ function Qr(a, e, t, r, i, s) {
7227
7252
  colspan: "1",
7228
7253
  class: "tr-title"
7229
7254
  }, [
7230
- le("SeaTemp"),
7255
+ ce("SeaTemp"),
7231
7256
  o("span", { class: "unit" }, "°C")
7232
7257
  ], -1)),
7233
- (u(!0), g(V, null, $(i.tableData.seaTemp, (x, M) => (u(), g("td", {
7258
+ (u(!0), g(V, null, $(i.tableData.seaTemp, (C, S) => (u(), g("td", {
7234
7259
  rowspan: "1",
7235
7260
  colspan: "1",
7236
- key: `SeaTemp${M}${x}`
7237
- }, E(x), 1))), 128))
7261
+ key: `SeaTemp${S}${C}`
7262
+ }, k(C), 1))), 128))
7238
7263
  ])
7239
7264
  ], 512), [
7240
7265
  [Oe, i.activeIndex === 3]
@@ -7244,25 +7269,25 @@ function Qr(a, e, t, r, i, s) {
7244
7269
  ]))) : J("", !0),
7245
7270
  Fe(o("table", gr, [
7246
7271
  o("tr", yr, [
7247
- (u(!0), g(V, null, $(i.tideTableData, (x, M) => (u(), g("th", {
7272
+ (u(!0), g(V, null, $(i.tideTableData, (C, S) => (u(), g("th", {
7248
7273
  rowspan: "1",
7249
7274
  colspan: "1",
7250
- key: `Tide-tr-${M}${x}`
7251
- }, E(x.type) + " Tide", 1))), 128))
7275
+ key: `Tide-tr-${S}${C}`
7276
+ }, k(C.type) + " Tide", 1))), 128))
7252
7277
  ]),
7253
7278
  o("tr", fr, [
7254
- (u(!0), g(V, null, $(i.tideTableData, (x, M) => (u(), g("td", {
7279
+ (u(!0), g(V, null, $(i.tideTableData, (C, S) => (u(), g("td", {
7255
7280
  rowspan: "1",
7256
7281
  colspan: "1",
7257
- key: `Tide-date-${M}${x}`
7258
- }, E(s.computeHourHmmLT(x == null ? void 0 : x.date)), 1))), 128))
7282
+ key: `Tide-date-${S}${C}`
7283
+ }, k(s.computeHourHmmLT(C == null ? void 0 : C.date)), 1))), 128))
7259
7284
  ]),
7260
7285
  o("tr", Ar, [
7261
- (u(!0), g(V, null, $(i.tideTableData, (x, M) => (u(), g("td", {
7286
+ (u(!0), g(V, null, $(i.tideTableData, (C, S) => (u(), g("td", {
7262
7287
  rowspan: "1",
7263
7288
  colspan: "1",
7264
- key: `Tide-height-${M}${x}`
7265
- }, E(s.roundPrecision(x == null ? void 0 : x.height, 2)) + " m", 1))), 128))
7289
+ key: `Tide-height-${S}${C}`
7290
+ }, k(s.roundPrecision(C == null ? void 0 : C.height, 2)) + " m", 1))), 128))
7266
7291
  ]),
7267
7292
  e[32] || (e[32] = o("tr", { class: "tr-tide flex-center info" }, [
7268
7293
  o("td", null, [
@@ -7273,57 +7298,57 @@ function Qr(a, e, t, r, i, s) {
7273
7298
  [Oe, i.activeIndex === 4]
7274
7299
  ])
7275
7300
  ], 512), [
7276
- [Oe, ((T = (b = i.tableData) == null ? void 0 : b.hours) == null ? void 0 : T.length) > 0 && i.showTables]
7301
+ [Oe, ((M = (w = i.tableData) == null ? void 0 : w.hours) == null ? void 0 : M.length) > 0 && i.showTables]
7277
7302
  ]),
7278
7303
  Fe(o("div", wr, [
7279
7304
  o("div", vr, [
7280
7305
  o("div", br, [
7281
7306
  e[33] || (e[33] = o("div", null, "Wind", -1)),
7282
- o("div", null, E((N = (F = (D = i.currentHourData) == null ? void 0 : D.weather) == null ? void 0 : F.wind) == null ? void 0 : N.direction) + "/" + E(s.roundPrecision((W = (G = (j = i.currentHourData) == null ? void 0 : j.weather) == null ? void 0 : G.wind) == null ? void 0 : W.kts, 1)) + "kts/BF" + E((ue = (re = (me = i.currentHourData) == null ? void 0 : me.weather) == null ? void 0 : re.wind) == null ? void 0 : ue.scale) + "/" + E(s.roundPrecision((ve = (ge = (we = i.currentHourData) == null ? void 0 : we.weather) == null ? void 0 : ge.wind) == null ? void 0 : ve.gusts, 1)) + " kts", 1)
7307
+ o("div", null, k((Q = (N = (D = i.currentHourData) == null ? void 0 : D.weather) == null ? void 0 : N.wind) == null ? void 0 : Q.direction) + "/" + k(s.roundPrecision((W = (G = (j = i.currentHourData) == null ? void 0 : j.weather) == null ? void 0 : G.wind) == null ? void 0 : W.kts, 1)) + "kts/BF" + k((pe = (te = (he = i.currentHourData) == null ? void 0 : he.weather) == null ? void 0 : te.wind) == null ? void 0 : pe.scale) + "/" + k(s.roundPrecision((ve = (se = (ye = i.currentHourData) == null ? void 0 : ye.weather) == null ? void 0 : se.wind) == null ? void 0 : ve.gusts, 1)) + " kts", 1)
7283
7308
  ]),
7284
7309
  o("div", Lr, [
7285
7310
  e[34] || (e[34] = o("div", null, "Sig wave", -1)),
7286
- o("div", null, E((te = (Y = (ye = i.currentHourData) == null ? void 0 : ye.wave) == null ? void 0 : Y.sig) == null ? void 0 : te.direction) + "/" + E(s.roundPrecision((Ae = (pe = (fe = i.currentHourData) == null ? void 0 : fe.wave) == null ? void 0 : pe.sig) == null ? void 0 : Ae.height, 1)) + "m/" + E(s.roundPrecision((_e = (be = (xe = i.currentHourData) == null ? void 0 : xe.wave) == null ? void 0 : be.sig) == null ? void 0 : _e.period, 1)) + "s", 1)
7311
+ o("div", null, k((ae = (Y = (fe = i.currentHourData) == null ? void 0 : fe.wave) == null ? void 0 : Y.sig) == null ? void 0 : ae.direction) + "/" + k(s.roundPrecision((we = (ge = (Ae = i.currentHourData) == null ? void 0 : Ae.wave) == null ? void 0 : ge.sig) == null ? void 0 : we.height, 1)) + "m/" + k(s.roundPrecision((_e = (be = (xe = i.currentHourData) == null ? void 0 : xe.wave) == null ? void 0 : be.sig) == null ? void 0 : _e.period, 1)) + "s", 1)
7287
7312
  ])
7288
7313
  ]),
7289
7314
  o("div", Cr, [
7290
7315
  o("div", xr, [
7291
7316
  e[35] || (e[35] = o("div", null, "Wind wave", -1)),
7292
- o("div", null, E((Le = (ze = (I = i.currentHourData) == null ? void 0 : I.wave) == null ? void 0 : ze.wd) == null ? void 0 : Le.direction) + "/" + E(s.roundPrecision((He = (Ee = (Pe = i.currentHourData) == null ? void 0 : Pe.wave) == null ? void 0 : Ee.wd) == null ? void 0 : He.height, 1)) + "m/" + E(s.roundPrecision((ce = (se = (ke = i.currentHourData) == null ? void 0 : ke.wave) == null ? void 0 : se.wd) == null ? void 0 : ce.period, 1)) + "s", 1)
7317
+ o("div", null, k((Le = (ze = (I = i.currentHourData) == null ? void 0 : I.wave) == null ? void 0 : ze.wd) == null ? void 0 : Le.direction) + "/" + k(s.roundPrecision((He = (Ee = (Pe = i.currentHourData) == null ? void 0 : Pe.wave) == null ? void 0 : Ee.wd) == null ? void 0 : He.height, 1)) + "m/" + k(s.roundPrecision((me = (oe = (ke = i.currentHourData) == null ? void 0 : ke.wave) == null ? void 0 : oe.wd) == null ? void 0 : me.period, 1)) + "s", 1)
7293
7318
  ]),
7294
7319
  o("div", _r, [
7295
7320
  e[36] || (e[36] = o("div", null, "Swell", -1)),
7296
- o("div", null, E((K = (Be = (Q = i.currentHourData) == null ? void 0 : Q.wave) == null ? void 0 : Be.swell) == null ? void 0 : K.direction) + "/" + E(s.roundPrecision((P = (Me = (q = i.currentHourData) == null ? void 0 : q.wave) == null ? void 0 : Me.swell) == null ? void 0 : P.height, 1)) + "m/" + E(s.roundPrecision((Se = (De = (de = i.currentHourData) == null ? void 0 : de.wave) == null ? void 0 : De.swell) == null ? void 0 : Se.period, 1)) + "s", 1)
7321
+ o("div", null, k((K = (Be = (H = i.currentHourData) == null ? void 0 : H.wave) == null ? void 0 : Be.swell) == null ? void 0 : K.direction) + "/" + k(s.roundPrecision((P = (Me = (q = i.currentHourData) == null ? void 0 : q.wave) == null ? void 0 : Me.swell) == null ? void 0 : P.height, 1)) + "m/" + k(s.roundPrecision((Se = (De = (ue = i.currentHourData) == null ? void 0 : ue.wave) == null ? void 0 : De.swell) == null ? void 0 : Se.period, 1)) + "s", 1)
7297
7322
  ])
7298
7323
  ]),
7299
7324
  o("div", Br, [
7300
7325
  o("div", Ir, [
7301
7326
  e[37] || (e[37] = o("div", null, "Current", -1)),
7302
- o("div", null, E((z = (Te = i.currentHourData) == null ? void 0 : Te.current) == null ? void 0 : z.direction) + "/" + E(s.roundPrecision((Ge = (O = i.currentHourData) == null ? void 0 : O.current) == null ? void 0 : Ge.kts, 2)) + "kts", 1)
7327
+ o("div", null, k((z = (Te = i.currentHourData) == null ? void 0 : Te.current) == null ? void 0 : z.direction) + "/" + k(s.roundPrecision((Ge = (O = i.currentHourData) == null ? void 0 : O.current) == null ? void 0 : Ge.kts, 2)) + "kts", 1)
7303
7328
  ]),
7304
7329
  o("div", Er, [
7305
7330
  e[38] || (e[38] = o("div", null, "Sea level", -1)),
7306
- o("div", null, E(s.roundPrecision((Ue = i.currentHourData) == null ? void 0 : Ue.height, 1)) + "m", 1)
7331
+ o("div", null, k(s.roundPrecision((Ue = i.currentHourData) == null ? void 0 : Ue.height, 1)) + "m", 1)
7307
7332
  ])
7308
7333
  ]),
7309
7334
  o("div", kr, [
7310
7335
  o("div", Dr, [
7311
7336
  e[39] || (e[39] = o("div", null, "Sea Temp", -1)),
7312
- o("div", null, E(s.roundPrecision((ie = i.currentHourData) == null ? void 0 : ie.sst, 1)) + "°C", 1)
7337
+ o("div", null, k(s.roundPrecision((re = i.currentHourData) == null ? void 0 : re.sst, 1)) + "°C", 1)
7313
7338
  ]),
7314
7339
  o("div", zr, [
7315
7340
  e[40] || (e[40] = o("div", null, "Visibility", -1)),
7316
- o("div", null, E(s.roundPrecision((tt = (Ne = i.currentHourData) == null ? void 0 : Ne.weather) == null ? void 0 : tt.visibility, 1)) + "nm", 1)
7341
+ o("div", null, k(s.roundPrecision((tt = (Ne = i.currentHourData) == null ? void 0 : Ne.weather) == null ? void 0 : tt.visibility, 1)) + "nm", 1)
7317
7342
  ])
7318
7343
  ]),
7319
7344
  o("div", Pr, [
7320
7345
  o("div", Mr, [
7321
7346
  e[41] || (e[41] = o("div", null, "Temp", -1)),
7322
- o("div", null, E(s.roundPrecision((it = (at = i.currentHourData) == null ? void 0 : at.weather) == null ? void 0 : it.temp, 1)) + "°C", 1)
7347
+ o("div", null, k(s.roundPrecision((it = (at = i.currentHourData) == null ? void 0 : at.weather) == null ? void 0 : it.temp, 1)) + "°C", 1)
7323
7348
  ]),
7324
7349
  o("div", Sr, [
7325
7350
  e[42] || (e[42] = o("div", null, "Precip", -1)),
7326
- o("div", null, E(s.roundPrecision((ot = (st = (rt = i.currentHourData) == null ? void 0 : rt.weather) == null ? void 0 : st.precip) == null ? void 0 : ot.sum3Hours, 1)) + "mm", 1)
7351
+ o("div", null, k(s.roundPrecision((ot = (st = (rt = i.currentHourData) == null ? void 0 : rt.weather) == null ? void 0 : st.precip) == null ? void 0 : ot.sum3Hours, 1)) + "mm", 1)
7327
7352
  ])
7328
7353
  ])
7329
7354
  ], 512), [
@@ -7336,10 +7361,10 @@ function Qr(a, e, t, r, i, s) {
7336
7361
  key: 0,
7337
7362
  class: "button",
7338
7363
  style: { "margin-right": "10px" },
7339
- onClick: e[7] || (e[7] = (...x) => s.handleNotify && s.handleNotify(...x))
7364
+ onClick: e[7] || (e[7] = (...C) => s.handleNotify && s.handleNotify(...C))
7340
7365
  }, "Notify")) : J("", !0),
7341
7366
  o("div", {
7342
- onClick: e[8] || (e[8] = (...x) => s.handleMeteoMore && s.handleMeteoMore(...x))
7367
+ onClick: e[8] || (e[8] = (...C) => s.handleMeteoMore && s.handleMeteoMore(...C))
7343
7368
  }, "More >>")
7344
7369
  ], 2)
7345
7370
  ], 2))
@@ -7847,12 +7872,12 @@ const Zr = {
7847
7872
  computed: {
7848
7873
  computeLat() {
7849
7874
  return function(a) {
7850
- return oe.lat2pretty(a, 4).pretty;
7875
+ return ne.lat2pretty(a, 4).pretty;
7851
7876
  };
7852
7877
  },
7853
7878
  computeLng() {
7854
7879
  return function(a) {
7855
- return oe.lng2pretty(a, 4).pretty;
7880
+ return ne.lng2pretty(a, 4).pretty;
7856
7881
  };
7857
7882
  }
7858
7883
  },
@@ -7929,19 +7954,19 @@ function os(a, e, t, r, i, s) {
7929
7954
  o("div", es, [
7930
7955
  o("div", ts, [
7931
7956
  e[2] || (e[2] = o("label", null, "Name : ", -1)),
7932
- o("span", null, E(i.form.name), 1)
7957
+ o("span", null, k(i.form.name), 1)
7933
7958
  ]),
7934
7959
  o("div", as, [
7935
7960
  e[3] || (e[3] = o("label", null, "Position : ", -1)),
7936
- o("span", null, E(s.computeLat(i.form.lat)) + ", " + E(s.computeLng(i.form.lng)), 1)
7961
+ o("span", null, k(s.computeLat(i.form.lat)) + ", " + k(s.computeLng(i.form.lng)), 1)
7937
7962
  ]),
7938
7963
  o("div", is, [
7939
7964
  e[4] || (e[4] = o("label", null, "LoCode : ", -1)),
7940
- o("span", null, E(i.form.loCode || "-"), 1)
7965
+ o("span", null, k(i.form.loCode || "-"), 1)
7941
7966
  ]),
7942
7967
  o("div", rs, [
7943
7968
  e[5] || (e[5] = o("label", null, "Region : ", -1)),
7944
- o("span", null, E(i.form.zoneName || "-"), 1)
7969
+ o("span", null, k(i.form.zoneName || "-"), 1)
7945
7970
  ]),
7946
7971
  o("div", ss, [
7947
7972
  o("span", {
@@ -8324,7 +8349,7 @@ const ys = /* @__PURE__ */ U(us, [["render", gs]]), fs = {
8324
8349
  methods: {
8325
8350
  handleRender() {
8326
8351
  this.map ? (this.handleClear(), this.area && (this.area.features.forEach((a) => {
8327
- a.geometry.type === "Polygon" && a.geometry.coordinates.forEach((e) => oe.convertToMonotonicLng2(e));
8352
+ a.geometry.type === "Polygon" && a.geometry.coordinates.forEach((e) => ne.convertToMonotonicLng2(e));
8328
8353
  }), this.map.addSource(this.source, {
8329
8354
  type: "geojson",
8330
8355
  data: this.area
@@ -8504,13 +8529,12 @@ const Cs = {
8504
8529
  this.show ? ((a = this.map) == null || a.on("zoomend", this.handleZoomEnd), this.handleRender()) : (this.handleClear(), (e = this.map) == null || e.off("zoomend", this.handleZoomEnd));
8505
8530
  },
8506
8531
  handleMouseMove(a) {
8507
- const e = a.lngLat, t = oe.lng2pretty(e.lng, 2), r = oe.lat2pretty(e.lat, 2);
8532
+ const e = a.lngLat, t = ne.lng2pretty(e.lng, 2), r = ne.lat2pretty(e.lat, 2);
8508
8533
  this.lngLat = { lng: t, lat: r };
8509
8534
  },
8510
8535
  handleComputeLatLngs() {
8511
8536
  var r;
8512
8537
  const a = (r = this.map) == null ? void 0 : r.getZoom();
8513
- console.log(a);
8514
8538
  let e = 30;
8515
8539
  a > 4 ? e = 10 : a > 3 && (e = 15);
8516
8540
  const t = [];
@@ -8553,7 +8577,7 @@ const Cs = {
8553
8577
  handleZoomEnd() {
8554
8578
  var e;
8555
8579
  const a = this.handleComputeLatLngs();
8556
- (e = this.map) == null || e.getSource(this.source).setData(S.featureCollection(a));
8580
+ (e = this.map) == null || e.getSource(this.source).setData(T.featureCollection(a));
8557
8581
  },
8558
8582
  handleRender() {
8559
8583
  if (this.map) {
@@ -8606,14 +8630,14 @@ function xs(a, e, t, r, i, s) {
8606
8630
  return i.lngLat ? (u(), g("div", {
8607
8631
  key: 0,
8608
8632
  class: "lat-lng-tip",
8609
- style: he({ right: i.right + "px", bottom: t.bottom })
8633
+ style: de({ right: i.right + "px", bottom: t.bottom })
8610
8634
  }, [
8611
- o("span", null, E(i.lngLat.lat.pretty), 1),
8635
+ o("span", null, k(i.lngLat.lat.pretty), 1),
8612
8636
  e[0] || (e[0] = o("span", null, ", ", -1)),
8613
- o("span", null, E(i.lngLat.lng.pretty), 1)
8637
+ o("span", null, k(i.lngLat.lng.pretty), 1)
8614
8638
  ], 4)) : J("", !0);
8615
8639
  }
8616
- const pt = /* @__PURE__ */ U(Cs, [["render", xs], ["__scopeId", "data-v-73241fe7"]]), _s = {
8640
+ const pt = /* @__PURE__ */ U(Cs, [["render", xs], ["__scopeId", "data-v-747fb3c8"]]), _s = {
8617
8641
  name: "IdmMeasure",
8618
8642
  props: {
8619
8643
  map: {
@@ -8648,7 +8672,7 @@ const pt = /* @__PURE__ */ U(Cs, [["render", xs], ["__scopeId", "data-v-73241fe7
8648
8672
  else {
8649
8673
  (a = this.map) == null || a.getCanvas().removeEventListener("keydown", this.handleKeydown), (e = this.map) == null || e.off("mousemove", this.handleMove), (t = this.map) == null || t.off("dblclick", this.handleDblClick), this.map && (this.map.getCanvas().style.cursor = "grab");
8650
8674
  let r = this.geojson.find((i) => !i.closed);
8651
- r && this.handleClear(r, !0), this.geojson = this.geojson.filter((i) => !!i.closed), r = S.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(r);
8675
+ r && this.handleClear(r, !0), this.geojson = this.geojson.filter((i) => !!i.closed), r = T.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(r);
8652
8676
  }
8653
8677
  },
8654
8678
  immediate: !0
@@ -8682,24 +8706,24 @@ const pt = /* @__PURE__ */ U(Cs, [["render", xs], ["__scopeId", "data-v-73241fe7
8682
8706
  var t, r, i, s, n, l, c, d, h, p;
8683
8707
  const e = (r = (t = a.target) == null ? void 0 : t._element) == null ? void 0 : r.id;
8684
8708
  if ((e == null ? void 0 : e.split("-").length) === 2) {
8685
- const v = this.geojson.filter((k) => k.id === e.split("-")[0])[0];
8686
- this.pointMarkers[v.id].filter((k) => {
8687
- var B;
8688
- return ((B = k._element) == null ? void 0 : B.id) === e;
8709
+ const b = this.geojson.filter((B) => B.id === e.split("-")[0])[0];
8710
+ this.pointMarkers[b.id].filter((B) => {
8711
+ var _;
8712
+ return ((_ = B._element) == null ? void 0 : _.id) === e;
8689
8713
  })[0].setLngLat([(s = (i = a.target) == null ? void 0 : i._lngLat) == null ? void 0 : s.lng, (l = (n = a.target) == null ? void 0 : n._lngLat) == null ? void 0 : l.lat]);
8690
- let _;
8691
- v.features.forEach((k, B) => {
8692
- if (k.geometry.type === "Point" && k.properties.id == e.split("-")[1]) {
8693
- _ = B;
8714
+ let E;
8715
+ b.features.forEach((B, _) => {
8716
+ if (B.geometry.type === "Point" && B.properties.id == e.split("-")[1]) {
8717
+ E = _;
8694
8718
  return;
8695
8719
  }
8696
8720
  });
8697
- const f = v.features.filter((k) => k.geometry.type === "Point");
8721
+ const A = b.features.filter((B) => B.geometry.type === "Point");
8698
8722
  this.handleTmpPointUpdate(
8699
- v,
8700
- f[_ - 1],
8701
- { lng: (d = (c = a.target) == null ? void 0 : c._lngLat) == null ? void 0 : d.lng, lat: (p = (h = a.target) == null ? void 0 : h._lngLat) == null ? void 0 : p.lat, properties: f[_].properties },
8702
- _ === f.length - 1 ? void 0 : f[_ + 1]
8723
+ b,
8724
+ A[E - 1],
8725
+ { lng: (d = (c = a.target) == null ? void 0 : c._lngLat) == null ? void 0 : d.lng, lat: (p = (h = a.target) == null ? void 0 : h._lngLat) == null ? void 0 : p.lat, properties: A[E].properties },
8726
+ E === A.length - 1 ? void 0 : A[E + 1]
8703
8727
  );
8704
8728
  }
8705
8729
  },
@@ -8707,13 +8731,13 @@ const pt = /* @__PURE__ */ U(Cs, [["render", xs], ["__scopeId", "data-v-73241fe7
8707
8731
  var t, r, i, s, n, l, c, d, h, p;
8708
8732
  const e = (r = (t = a.target) == null ? void 0 : t._element) == null ? void 0 : r.id;
8709
8733
  if ((e == null ? void 0 : e.split("-").length) === 2) {
8710
- const v = this.geojson.filter((f) => f.id === e.split("-")[0])[0];
8711
- this.pointMarkers[v.id].filter((f) => {
8712
- var k;
8713
- return ((k = f._element) == null ? void 0 : k.id) === e;
8734
+ const b = this.geojson.filter((A) => A.id === e.split("-")[0])[0];
8735
+ this.pointMarkers[b.id].filter((A) => {
8736
+ var B;
8737
+ return ((B = A._element) == null ? void 0 : B.id) === e;
8714
8738
  })[0].setLngLat([(s = (i = a.target) == null ? void 0 : i._lngLat) == null ? void 0 : s.lng, (l = (n = a.target) == null ? void 0 : n._lngLat) == null ? void 0 : l.lat]);
8715
- const _ = v.features.filter((f) => f.geometry.type === "Point" && f.properties.id == e.split("-")[1])[0];
8716
- _.geometry.coordinates = [(d = (c = a.target) == null ? void 0 : c._lngLat) == null ? void 0 : d.lng, (p = (h = a.target) == null ? void 0 : h._lngLat) == null ? void 0 : p.lat], v.features = v.features.filter((f) => f.geometry.type === "Point"), this.handlePointUpdate(v);
8739
+ const E = b.features.filter((A) => A.geometry.type === "Point" && A.properties.id == e.split("-")[1])[0];
8740
+ E.geometry.coordinates = [(d = (c = a.target) == null ? void 0 : c._lngLat) == null ? void 0 : d.lng, (p = (h = a.target) == null ? void 0 : h._lngLat) == null ? void 0 : p.lat], b.features = b.features.filter((A) => A.geometry.type === "Point"), this.handlePointUpdate(b);
8717
8741
  }
8718
8742
  },
8719
8743
  handleContextmenu(a) {
@@ -8740,8 +8764,8 @@ const pt = /* @__PURE__ */ U(Cs, [["render", xs], ["__scopeId", "data-v-73241fe7
8740
8764
  d.features = d.features.filter((h) => h.geometry.type === "Point" && h.properties.id !== c[1]), this.handlePointUpdate(d);
8741
8765
  } else if (e !== "marker-label" && this.show) {
8742
8766
  let c = this.geojson.at(-1);
8743
- c || (c = S.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(c)), c.features = c.features.filter((h) => h.geometry.type === "Point");
8744
- const d = S.feature(
8767
+ c || (c = T.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(c)), c.features = c.features.filter((h) => h.geometry.type === "Point");
8768
+ const d = T.feature(
8745
8769
  {
8746
8770
  type: "Point",
8747
8771
  coordinates: [a.lngLat.lng, a.lngLat.lat]
@@ -8761,34 +8785,34 @@ const pt = /* @__PURE__ */ U(Cs, [["render", xs], ["__scopeId", "data-v-73241fe7
8761
8785
  const r = [];
8762
8786
  for (let i = 1; i < e.length; i++) {
8763
8787
  const s = e[i - 1], n = e[i], l = s.properties, c = { lng: s.geometry.coordinates[0], lat: s.geometry.coordinates[1] }, d = { lng: n.geometry.coordinates[0], lat: n.geometry.coordinates[1] }, h = je.calculateDistance(c, d, l.mode === "RL", 4), p = je.calculateBearing(c, d, l.mode === "RL", 2);
8764
- t = oe.roundPrecision(t + h, 2);
8765
- let v;
8766
- l.mode === "RL" ? v = oe.convertToMonotonicLng([c, d]) : v = oe.convertToMonotonicLng(je.interpolateCoordinates(c, d, 200));
8767
- const C = S.lineString(v.map((_) => [_.lng, _.lat]));
8768
- C.properties.dist = h, C.properties.bearing = p, C.properties.total = t, r.push(C);
8788
+ t = ne.roundPrecision(t + h, 2);
8789
+ let b;
8790
+ l.mode === "RL" ? b = ne.convertToMonotonicLng([c, d]) : b = ne.convertToMonotonicLng(je.interpolateCoordinates(c, d, 200));
8791
+ const x = T.lineString(b.map((E) => [E.lng, E.lat]));
8792
+ x.properties.dist = h, x.properties.bearing = p, x.properties.total = t, r.push(x);
8769
8793
  }
8770
8794
  e.push(...r), a.total = t;
8771
8795
  }
8772
8796
  return this.handleRender(a), a;
8773
8797
  },
8774
8798
  handleTmpPointUpdate(a, e, t, r) {
8775
- const i = S.featureCollection([]);
8799
+ const i = T.featureCollection([]);
8776
8800
  let s, n;
8777
8801
  if (e) {
8778
8802
  const c = e.properties, d = { lng: e.geometry.coordinates[0], lat: e.geometry.coordinates[1] }, h = { lng: t.lng, lat: t.lat };
8779
8803
  s = je.calculateDistance(d, h, c.mode === "RL", 4), n = je.calculateBearing(d, h, c.mode === "RL", 2);
8780
8804
  let p;
8781
- c.mode === "RL" ? p = oe.convertToMonotonicLng([d, h]) : p = oe.convertToMonotonicLng(je.interpolateCoordinates(d, h, 200));
8782
- const v = S.lineString(p.map((C) => [C.lng, C.lat]));
8783
- v.properties.dist = s, v.properties.bearing = n, i.features.push(v);
8805
+ c.mode === "RL" ? p = ne.convertToMonotonicLng([d, h]) : p = ne.convertToMonotonicLng(je.interpolateCoordinates(d, h, 200));
8806
+ const b = T.lineString(p.map((x) => [x.lng, x.lat]));
8807
+ b.properties.dist = s, b.properties.bearing = n, i.features.push(b);
8784
8808
  }
8785
8809
  if (r) {
8786
8810
  const c = t.properties, d = t, h = { lng: r.geometry.coordinates[0], lat: r.geometry.coordinates[1] };
8787
8811
  s = je.calculateDistance(d, h, c.mode === "RL", 4), n = je.calculateBearing(d, h, c.mode === "RL", 2);
8788
8812
  let p;
8789
- c.mode === "RL" ? p = oe.convertToMonotonicLng([d, h]) : p = oe.convertToMonotonicLng(je.interpolateCoordinates(d, h, 200));
8790
- const v = S.lineString(p.map((C) => [C.lng, C.lat]));
8791
- v.properties.dist = s, v.properties.bearing = n, i.features.push(v);
8813
+ c.mode === "RL" ? p = ne.convertToMonotonicLng([d, h]) : p = ne.convertToMonotonicLng(je.interpolateCoordinates(d, h, 200));
8814
+ const b = T.lineString(p.map((x) => [x.lng, x.lat]));
8815
+ b.properties.dist = s, b.properties.bearing = n, i.features.push(b);
8792
8816
  }
8793
8817
  this.map.getSource(this.tmpSource) ? this.map.getSource(this.tmpSource).setData(i) : this.map.addSource(this.tmpSource, {
8794
8818
  type: "geojson",
@@ -8828,7 +8852,7 @@ const pt = /* @__PURE__ */ U(Cs, [["render", xs], ["__scopeId", "data-v-73241fe7
8828
8852
  }
8829
8853
  });
8830
8854
  let l;
8831
- if (r ? l = '<div class="marker-label">Drag and drop</div>' : l = `<div class="marker-label">Total distance: <b>${oe.roundPrecision((a.total ?? 0) + s, 1)}</b>nm, bearing: <b>${n}</b>°</div><div class="marker-label">${this.navigation === "RL" ? "RL" : "GC"} mode, using 'Shift' to switch</div><div class="marker-label">Double click to end</div>`, this.tipMarker)
8855
+ if (r ? l = '<div class="marker-label">Drag and drop</div>' : l = `<div class="marker-label">Total distance: <b>${ne.roundPrecision((a.total ?? 0) + s, 1)}</b>nm, bearing: <b>${n}</b>°</div><div class="marker-label">${this.navigation === "RL" ? "RL" : "GC"} mode, using 'Shift' to switch</div><div class="marker-label">Double click to end</div>`, this.tipMarker)
8832
8856
  this.tipMarker._element.innerHTML = l, this.tipMarker.setLngLat([t.lng, t.lat]);
8833
8857
  else {
8834
8858
  const c = document.createElement("div");
@@ -8838,14 +8862,14 @@ const pt = /* @__PURE__ */ U(Cs, [["render", xs], ["__scopeId", "data-v-73241fe7
8838
8862
  handleMove(a) {
8839
8863
  this.map.getCanvas().style.cursor = "crosshair";
8840
8864
  let e = this.geojson.at(-1);
8841
- e || (e = S.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(e));
8865
+ e || (e = T.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(e));
8842
8866
  const t = e.features.filter((r) => r.geometry.type === "Point");
8843
8867
  t != null && t.length && this.handleTmpPointUpdate(e, t.at(-1), { lng: a.lngLat.lng, lat: a.lngLat.lat });
8844
8868
  },
8845
8869
  handleDblClick(a) {
8846
8870
  a.preventDefault();
8847
8871
  let e = this.geojson.at(-1);
8848
- e.closed = !0, this.handleRender(e), e = S.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(e);
8872
+ e.closed = !0, this.handleRender(e), e = T.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(e);
8849
8873
  },
8850
8874
  handleRender(a) {
8851
8875
  var e;
@@ -8900,11 +8924,11 @@ const pt = /* @__PURE__ */ U(Cs, [["render", xs], ["__scopeId", "data-v-73241fe7
8900
8924
  }
8901
8925
  },
8902
8926
  handleClear(a, e = !0) {
8903
- var s, n, l, c, d, h, p, v, C;
8927
+ var s, n, l, c, d, h, p, b, x;
8904
8928
  const t = `${a.id}-${this.source}`, r = `${a.id}-${this.layer}`, i = `${a.id}-${this.labelLayer}`;
8905
- (s = this.map) != null && s.getLayer(r) && this.map.removeLayer(r), (n = this.map) != null && n.getLayer(i) && this.map.removeLayer(i), (l = this.map) != null && l.getLayer(this.tmpLayer) && this.map.removeLayer(this.tmpLayer), (c = this.map) != null && c.getLayer(this.tmpLabelLayer) && this.map.removeLayer(this.tmpLabelLayer), (d = this.closeMarkers[a.id]) == null || d.remove(), this.closeMarkers[a.id] = void 0, (h = this.pointMarkers[a.id]) == null || h.forEach((_) => {
8906
- _ == null || _.remove();
8907
- }), this.pointMarkers[a.id] = [], (p = this.tipMarker) == null || p.remove(), this.tipMarker = void 0, e && ((v = this.map) != null && v.getSource(t)) && this.map.removeSource(t), e && ((C = this.map) != null && C.getSource(this.tmpSource)) && this.map.removeSource(this.tmpSource);
8929
+ (s = this.map) != null && s.getLayer(r) && this.map.removeLayer(r), (n = this.map) != null && n.getLayer(i) && this.map.removeLayer(i), (l = this.map) != null && l.getLayer(this.tmpLayer) && this.map.removeLayer(this.tmpLayer), (c = this.map) != null && c.getLayer(this.tmpLabelLayer) && this.map.removeLayer(this.tmpLabelLayer), (d = this.closeMarkers[a.id]) == null || d.remove(), this.closeMarkers[a.id] = void 0, (h = this.pointMarkers[a.id]) == null || h.forEach((E) => {
8930
+ E == null || E.remove();
8931
+ }), this.pointMarkers[a.id] = [], (p = this.tipMarker) == null || p.remove(), this.tipMarker = void 0, e && ((b = this.map) != null && b.getSource(t)) && this.map.removeSource(t), e && ((x = this.map) != null && x.getSource(this.tmpSource)) && this.map.removeSource(this.tmpSource);
8908
8932
  }
8909
8933
  }
8910
8934
  };
@@ -8973,10 +8997,10 @@ function zs(a, e, t, r, i, s) {
8973
8997
  return t.enabled && t.permission & i.helper.LEVEL.Supper ? (u(), g("div", ks, [
8974
8998
  o("div", {
8975
8999
  class: "menu-bar-box",
8976
- style: he({ position: "absolute", right: i.right + "px", bottom: t.bottom })
9000
+ style: de({ position: "absolute", right: i.right + "px", bottom: t.bottom })
8977
9001
  }, [
8978
9002
  o("div", Ds, [
8979
- H(n, {
9003
+ F(n, {
8980
9004
  placement: "left",
8981
9005
  effect: "light",
8982
9006
  content: "Hifleet",
@@ -8992,7 +9016,7 @@ function zs(a, e, t, r, i, s) {
8992
9016
  ]),
8993
9017
  _: 1
8994
9018
  }),
8995
- H(n, {
9019
+ F(n, {
8996
9020
  placement: "left",
8997
9021
  effect: "light",
8998
9022
  content: "I4insight",
@@ -9275,11 +9299,11 @@ const js = {
9275
9299
  },
9276
9300
  activeWeatherLayers: {
9277
9301
  handler() {
9278
- var t, r, i, s, n, l, c, d, h, p, v, C, _, f, k, B, A, w, m, L, y, b, T;
9302
+ var t, r, i, s, n, l, c, d, h, p, b, x, E, A, B, _, f, v, m, L, y, w, M;
9279
9303
  if (!this.map)
9280
9304
  return !1;
9281
9305
  const a = this.activeWeatherLayers.some((D) => D.key === "wind" && D.particle === !0 || D.key === "current" && D.particle === !0 || D.key === "ice-edge" || D.key === "ice-thickness" || D.key === "ice-cover" || D.key === "temp" || D.key === "water-temp"), e = this.activeWeatherLayers.some((D) => D.key === "visibility" || D.key === "precip3h");
9282
- this.activeWeatherLayers.length > 0 ? (!a && this.map.getZoom() > 3 && this.enc ? (r = (t = this.map) == null ? void 0 : t.getLayer(this.enc)) == null || r.setLayoutProperty("visibility", "visible") : ((s = (i = this.map) == null ? void 0 : i.getLayer("i4")) == null || s.setLayoutProperty("visibility", "none"), (l = (n = this.map) == null ? void 0 : n.getLayer("hi")) == null || l.setLayoutProperty("visibility", "none")), (d = (c = this.map) == null ? void 0 : c.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) == null || d.setLayoutProperty("visibility", "visible"), (p = this.map) != null && p.getLayer((h = this.viewport) == null ? void 0 : h.rampColorLayer) && ((v = this.map) != null && v.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && this.mapProjection === "mercator" && ((_ = this.map) == null || _.moveLayer((C = this.viewport) == null ? void 0 : C.rampColorLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)), e && ((k = this.map) == null || k.moveLayer(this.helper.mapboxCustomer.layers.countryBoundary.id, (f = this.viewport) == null ? void 0 : f.rampColorLayer))) : ((A = (B = this.map) == null ? void 0 : B.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) == null || A.setLayoutProperty("visibility", "none"), this.enc && this.map.getZoom() > 3 ? (m = (w = this.map) == null ? void 0 : w.getLayer(this.enc)) == null || m.setLayoutProperty("visibility", "visible") : ((y = (L = this.map) == null ? void 0 : L.getLayer("i4")) == null || y.setLayoutProperty("visibility", "none"), (T = (b = this.map) == null ? void 0 : b.getLayer("hi")) == null || T.setLayoutProperty("visibility", "none"))), this.$emit("activeWeatherLayers", this.activeWeatherLayers);
9306
+ this.activeWeatherLayers.length > 0 ? (!a && this.map.getZoom() > 3 && this.enc ? (r = (t = this.map) == null ? void 0 : t.getLayer(this.enc)) == null || r.setLayoutProperty("visibility", "visible") : ((s = (i = this.map) == null ? void 0 : i.getLayer("i4")) == null || s.setLayoutProperty("visibility", "none"), (l = (n = this.map) == null ? void 0 : n.getLayer("hi")) == null || l.setLayoutProperty("visibility", "none")), (d = (c = this.map) == null ? void 0 : c.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) == null || d.setLayoutProperty("visibility", "visible"), (p = this.map) != null && p.getLayer((h = this.viewport) == null ? void 0 : h.rampColorLayer) && ((b = this.map) != null && b.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && this.mapProjection === "mercator" && ((E = this.map) == null || E.moveLayer((x = this.viewport) == null ? void 0 : x.rampColorLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)), e && ((B = this.map) == null || B.moveLayer(this.helper.mapboxCustomer.layers.countryBoundary.id, (A = this.viewport) == null ? void 0 : A.rampColorLayer))) : ((f = (_ = this.map) == null ? void 0 : _.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) == null || f.setLayoutProperty("visibility", "none"), this.enc && this.map.getZoom() > 3 ? (m = (v = this.map) == null ? void 0 : v.getLayer(this.enc)) == null || m.setLayoutProperty("visibility", "visible") : ((y = (L = this.map) == null ? void 0 : L.getLayer("i4")) == null || y.setLayoutProperty("visibility", "none"), (M = (w = this.map) == null ? void 0 : w.getLayer("hi")) == null || M.setLayoutProperty("visibility", "none"))), this.$emit("activeWeatherLayers", this.activeWeatherLayers);
9283
9307
  },
9284
9308
  immediate: !0
9285
9309
  },
@@ -9331,63 +9355,63 @@ const js = {
9331
9355
  },
9332
9356
  methods: {
9333
9357
  async fetchWeatherLayers(a = { tropicals: !1 }) {
9334
- var i, s, n, l, c, d, h, p, v;
9358
+ var i, s, n, l, c, d, h, p, b;
9335
9359
  const e = (/* @__PURE__ */ new Date()).valueOf();
9336
9360
  let t = 0, r = 0;
9337
9361
  if (this.map) {
9338
- const C = ((i = this.map) == null ? void 0 : i.getZoom()) + 1, _ = (s = this.map) == null ? void 0 : s.getBounds(), f = `${_._sw.lng},${_._sw.lat},${_._ne.lng},${_._ne.lat}`;
9362
+ const x = ((i = this.map) == null ? void 0 : i.getZoom()) + 1, E = (s = this.map) == null ? void 0 : s.getBounds(), A = `${E._sw.lng},${E._sw.lat},${E._ne.lng},${E._ne.lat}`;
9339
9363
  if (this.particleFactor && ((n = this.$refs.layer) != null && n.autoActive)) {
9340
- const k = Ze.WEATHER_LAYERS.find((B) => {
9341
- var A;
9342
- return ((A = B.peer) == null ? void 0 : A.weight) === this.particleFactor.weight;
9364
+ const B = Ze.WEATHER_LAYERS.find((_) => {
9365
+ var f;
9366
+ return ((f = _.peer) == null ? void 0 : f.weight) === this.particleFactor.weight;
9343
9367
  });
9344
- this.particleFactor.particle && (this.showWindParticle || this.showCurrentParticle) ? this.weatherWeight = this.weatherWeight & k.weight ? this.weatherWeight : this.weatherWeight + k.weight : this.weatherWeight = this.weatherWeight & k.weight ? this.weatherWeight - k.weight : this.weatherWeight;
9368
+ this.particleFactor.particle && (this.showWindParticle || this.showCurrentParticle) ? this.weatherWeight = this.weatherWeight & B.weight ? this.weatherWeight : this.weatherWeight + B.weight : this.weatherWeight = this.weatherWeight & B.weight ? this.weatherWeight - B.weight : this.weatherWeight;
9345
9369
  }
9346
9370
  if (this.weatherWeight > 0) {
9347
- let k = this.weatherWeight, B;
9348
- if (a.tropicals || this.weatherWeight & 256 && (B = this.weatherLayers.tropicals, B && (k -= 256, B.version = Math.random() + 1)), k > 0) {
9349
- const A = this.assistGateway[Math.round(Math.random() * (this.assistGateway.length - 1))], w = await Qe.get(`${A}/api/arc/weather/layers2/links?l=${k}&v=${this.source}&z=${C}&bbox=${f}&t=${this.ts}`, {
9371
+ let B = this.weatherWeight, _;
9372
+ if (a.tropicals || this.weatherWeight & 256 && (_ = this.weatherLayers.tropicals, _ && (B -= 256, _.version = Math.random() + 1)), B > 0) {
9373
+ const f = this.assistGateway[Math.round(Math.random() * (this.assistGateway.length - 1))], v = await Qe.get(`${f}/api/arc/weather/layers2/links?l=${B}&v=${this.source}&z=${x}&bbox=${A}&t=${this.ts}`, {
9350
9374
  headers: {
9351
9375
  Authorization: this.token || this.defaultMeteoToken
9352
9376
  }
9353
9377
  });
9354
- if (r = (/* @__PURE__ */ new Date()).valueOf() - (e + t), console.log("weather links elapsed: ", r, ", total: ", t += r), ((l = w == null ? void 0 : w.data) == null ? void 0 : l.code) === 0) {
9355
- const m = (c = w == null ? void 0 : w.data) == null ? void 0 : c.data, L = [];
9356
- for (const b in m)
9357
- b !== "tropicals" && L.push(
9358
- Qe.get(m[b], {
9378
+ if (r = (/* @__PURE__ */ new Date()).valueOf() - (e + t), console.log("weather links elapsed: ", r, ", total: ", t += r), ((l = v == null ? void 0 : v.data) == null ? void 0 : l.code) === 0) {
9379
+ const m = (c = v == null ? void 0 : v.data) == null ? void 0 : c.data, L = [];
9380
+ for (const w in m)
9381
+ w !== "tropicals" && L.push(
9382
+ Qe.get(m[w], {
9359
9383
  headers: {
9360
9384
  Authorization: this.token || this.defaultMeteoToken,
9361
- key: b
9385
+ key: w
9362
9386
  },
9363
- responseType: /\.(jpg|png)$/.test(m[b]) ? "blob" : "json"
9364
- }).catch((T) => {
9365
- console.log(`[${b}] fetch layer error: ${T}`);
9387
+ responseType: /\.(jpg|png)$/.test(m[w]) ? "blob" : "json"
9388
+ }).catch((M) => {
9389
+ console.log(`[${w}] fetch layer error: ${M}`);
9366
9390
  })
9367
9391
  );
9368
9392
  const y = await Promise.all(L);
9369
- this.weatherLayers = {}, y.map((b) => {
9370
- var F, N, j, G;
9371
- const T = ((F = b == null ? void 0 : b.data) == null ? void 0 : F.data) || (b == null ? void 0 : b.data), D = (j = (N = b == null ? void 0 : b.config) == null ? void 0 : N.headers) == null ? void 0 : j.key;
9372
- D && T && (this.weatherLayers[D] = {
9373
- raw: T,
9374
- type: ((G = b == null ? void 0 : b.config) == null ? void 0 : G.responseType) === "blob" ? "image" : "json",
9375
- etime: w.data.etime
9393
+ this.weatherLayers = {}, y.map((w) => {
9394
+ var N, Q, j, G;
9395
+ const M = ((N = w == null ? void 0 : w.data) == null ? void 0 : N.data) || (w == null ? void 0 : w.data), D = (j = (Q = w == null ? void 0 : w.config) == null ? void 0 : Q.headers) == null ? void 0 : j.key;
9396
+ D && M && (this.weatherLayers[D] = {
9397
+ raw: M,
9398
+ type: ((G = w == null ? void 0 : w.config) == null ? void 0 : G.responseType) === "blob" ? "image" : "json",
9399
+ etime: v.data.etime
9376
9400
  });
9377
9401
  }), m.tropicals && Qe.get(m.tropicals, {
9378
9402
  headers: {
9379
9403
  Authorization: this.token || this.defaultMeteoToken,
9380
9404
  key: "tropicals"
9381
9405
  }
9382
- }).then((b) => {
9383
- var F, N, j;
9384
- const T = ct.convert2Geojson(((F = b == null ? void 0 : b.data) == null ? void 0 : F.data) || (b == null ? void 0 : b.data)), D = (j = (N = b == null ? void 0 : b.config) == null ? void 0 : N.headers) == null ? void 0 : j.key;
9406
+ }).then((w) => {
9407
+ var N, Q, j;
9408
+ const M = ct.convert2Geojson(((N = w == null ? void 0 : w.data) == null ? void 0 : N.data) || (w == null ? void 0 : w.data)), D = (j = (Q = w == null ? void 0 : w.config) == null ? void 0 : Q.headers) == null ? void 0 : j.key;
9385
9409
  this.weatherLayers[D] = {
9386
- data: T,
9410
+ data: M,
9387
9411
  active: !0,
9388
9412
  cached: !1,
9389
9413
  type: "json",
9390
- etime: w.data.etime,
9414
+ etime: v.data.etime,
9391
9415
  version: Math.random() + 1
9392
9416
  };
9393
9417
  });
@@ -9398,20 +9422,20 @@ const js = {
9398
9422
  type: "json",
9399
9423
  direction: m,
9400
9424
  height: { raw: L },
9401
- etime: w.data.etime
9425
+ etime: v.data.etime
9402
9426
  };
9403
9427
  }
9404
9428
  if (this.weatherLayers["current-direction"] || this.weatherLayers["current-speed"]) {
9405
- const m = (p = this.weatherLayers["current-direction"]) == null ? void 0 : p.raw, L = (v = this.weatherLayers["current-speed"]) == null ? void 0 : v.raw;
9429
+ const m = (p = this.weatherLayers["current-direction"]) == null ? void 0 : p.raw, L = (b = this.weatherLayers["current-speed"]) == null ? void 0 : b.raw;
9406
9430
  delete this.weatherLayers["current-direction"], delete this.weatherLayers["current-speed"], this.weatherLayers.current = {
9407
9431
  type: "json",
9408
9432
  direction: m,
9409
9433
  speed: { raw: L },
9410
- etime: w.data.etime
9434
+ etime: v.data.etime
9411
9435
  };
9412
9436
  }
9413
9437
  }
9414
- B && (B.etime = this.ts, B.cached = !0, this.weatherLayers.tropicals = B);
9438
+ _ && (_.etime = this.ts, _.cached = !0, this.weatherLayers.tropicals = _);
9415
9439
  }
9416
9440
  this.handleWeatherLayerToggle(), this.handleDrawWeather4Json();
9417
9441
  }
@@ -9431,21 +9455,21 @@ const js = {
9431
9455
  }
9432
9456
  });
9433
9457
  if (((e = p == null ? void 0 : p.data) == null ? void 0 : e.code) === 0) {
9434
- const v = (t = p == null ? void 0 : p.data) == null ? void 0 : t.data, C = [];
9435
- for (const f in v)
9436
- C.push(
9437
- Qe.get(v[f], {
9458
+ const b = (t = p == null ? void 0 : p.data) == null ? void 0 : t.data, x = [];
9459
+ for (const A in b)
9460
+ x.push(
9461
+ Qe.get(b[A], {
9438
9462
  headers: {
9439
9463
  Authorization: this.token || this.defaultMeteoToken,
9440
- key: f
9464
+ key: A
9441
9465
  }
9442
9466
  })
9443
9467
  );
9444
- const _ = await Promise.all(C);
9445
- this.otherLayers = { enc: n, world12nm: l, worldMarine: c, chinaRoute: d }, _.map((f) => {
9446
- var A, w, m;
9447
- const k = ((A = f == null ? void 0 : f.data) == null ? void 0 : A.data) || (f == null ? void 0 : f.data), B = (m = (w = f == null ? void 0 : f.config) == null ? void 0 : w.headers) == null ? void 0 : m.key;
9448
- this.otherLayers[B] = k;
9468
+ const E = await Promise.all(x);
9469
+ this.otherLayers = { enc: n, world12nm: l, worldMarine: c, chinaRoute: d }, E.map((A) => {
9470
+ var f, v, m;
9471
+ const B = ((f = A == null ? void 0 : A.data) == null ? void 0 : f.data) || (A == null ? void 0 : A.data), _ = (m = (v = A == null ? void 0 : A.config) == null ? void 0 : v.headers) == null ? void 0 : m.key;
9472
+ this.otherLayers[_] = B;
9449
9473
  });
9450
9474
  }
9451
9475
  } else if (a.dayNight && s & 1024) {
@@ -9455,20 +9479,20 @@ const js = {
9455
9479
  }
9456
9480
  });
9457
9481
  if (((r = p == null ? void 0 : p.data) == null ? void 0 : r.code) === 0) {
9458
- const v = (i = p == null ? void 0 : p.data) == null ? void 0 : i.data, C = [];
9459
- for (const f in v)
9460
- C.push(
9461
- Qe.get(v[f], {
9482
+ const b = (i = p == null ? void 0 : p.data) == null ? void 0 : i.data, x = [];
9483
+ for (const A in b)
9484
+ x.push(
9485
+ Qe.get(b[A], {
9462
9486
  headers: {
9463
9487
  Authorization: this.token || this.defaultMeteoToken,
9464
- key: f
9488
+ key: A
9465
9489
  }
9466
9490
  })
9467
9491
  );
9468
- (await Promise.all(C)).map((f) => {
9469
- var A, w, m;
9470
- const k = ((A = f == null ? void 0 : f.data) == null ? void 0 : A.data) || (f == null ? void 0 : f.data), B = (m = (w = f == null ? void 0 : f.config) == null ? void 0 : w.headers) == null ? void 0 : m.key;
9471
- this.otherLayers[B] = k;
9492
+ (await Promise.all(x)).map((A) => {
9493
+ var f, v, m;
9494
+ const B = ((f = A == null ? void 0 : A.data) == null ? void 0 : f.data) || (A == null ? void 0 : A.data), _ = (m = (v = A == null ? void 0 : A.config) == null ? void 0 : v.headers) == null ? void 0 : m.key;
9495
+ this.otherLayers[_] = B;
9472
9496
  });
9473
9497
  }
9474
9498
  }
@@ -9523,253 +9547,253 @@ const js = {
9523
9547
  );
9524
9548
  },
9525
9549
  handleDrawWeather4Json() {
9526
- var d, h, p, v, C, _;
9550
+ var d, h, p, b, x, E;
9527
9551
  const a = (/* @__PURE__ */ new Date()).valueOf();
9528
9552
  let e = 0, t = 0;
9529
- const r = (d = this.map) == null ? void 0 : d.getBounds(), i = this.map.getZoom(), s = oe.convertToStdLng(r._sw.lng), n = oe.convertToStdLng(r._ne.lng), l = Math.floor(r._sw.lat), c = Math.ceil(r._ne.lat);
9530
- for (const f in this.weatherLayers) {
9531
- let k = !1;
9532
- if (this.weatherLayers[f].active && this.weatherLayers[f].type === "json") {
9533
- let B = [];
9534
- if (f === "swell") {
9535
- k = !0;
9536
- const A = ((h = this.weatherLayers[f]) == null ? void 0 : h.direction) || {};
9537
- for (const m in A)
9553
+ const r = (d = this.map) == null ? void 0 : d.getBounds(), i = this.map.getZoom(), s = ne.convertToStdLng(r._sw.lng), n = ne.convertToStdLng(r._ne.lng), l = Math.floor(r._sw.lat), c = Math.ceil(r._ne.lat);
9554
+ for (const A in this.weatherLayers) {
9555
+ let B = !1;
9556
+ if (this.weatherLayers[A].active && this.weatherLayers[A].type === "json") {
9557
+ let _ = [];
9558
+ if (A === "swell") {
9559
+ B = !0;
9560
+ const f = ((h = this.weatherLayers[A]) == null ? void 0 : h.direction) || {};
9561
+ for (const m in f)
9538
9562
  if (m > l && m < c && (!(i <= this.zoom) || m % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
9539
- const L = A[m].lng;
9540
- s > n ? L.forEach((y, b) => {
9541
- var T, D, F, N, j, G;
9563
+ const L = f[m].lng;
9564
+ s > n ? L.forEach((y, w) => {
9565
+ var M, D, N, Q, j, G;
9542
9566
  if (i < 2) {
9543
9567
  if ((y >= 0 && y <= 360 || y >= -360 && y <= 0) && y % 10 === 0) {
9544
- const W = S.point([y, m], {
9545
- val: ((T = A[m].val) == null ? void 0 : T[b]) || ((D = A[m].dir) == null ? void 0 : D[b]),
9546
- spd: (F = A[m].spd) == null ? void 0 : F[b]
9568
+ const W = T.point([y, m], {
9569
+ val: ((M = f[m].val) == null ? void 0 : M[w]) || ((D = f[m].dir) == null ? void 0 : D[w]),
9570
+ spd: (N = f[m].spd) == null ? void 0 : N[w]
9547
9571
  });
9548
- B.push(W);
9572
+ _.push(W);
9549
9573
  }
9550
9574
  } else if ((y >= s && y <= 180 || y >= -180 && y <= n) && (!(i <= this.zoom) || y % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
9551
- const W = S.point([y, m], {
9552
- val: ((N = A[m].val) == null ? void 0 : N[b]) || ((j = A[m].dir) == null ? void 0 : j[b]),
9553
- spd: (G = A[m].spd) == null ? void 0 : G[b]
9575
+ const W = T.point([y, m], {
9576
+ val: ((Q = f[m].val) == null ? void 0 : Q[w]) || ((j = f[m].dir) == null ? void 0 : j[w]),
9577
+ spd: (G = f[m].spd) == null ? void 0 : G[w]
9554
9578
  });
9555
- B.push(W);
9579
+ _.push(W);
9556
9580
  }
9557
- }) : L.forEach((y, b) => {
9558
- var T, D, F, N, j, G;
9581
+ }) : L.forEach((y, w) => {
9582
+ var M, D, N, Q, j, G;
9559
9583
  if (s < 2) {
9560
9584
  if ((y >= 0 && y <= 360 || y >= -360 && y <= 0) && y % 10 === 0) {
9561
- const W = S.point([y, m], {
9562
- val: ((T = A[m].val) == null ? void 0 : T[b]) || ((D = A[m].dir) == null ? void 0 : D[b]),
9563
- spd: (F = A[m].spd) == null ? void 0 : F[b]
9585
+ const W = T.point([y, m], {
9586
+ val: ((M = f[m].val) == null ? void 0 : M[w]) || ((D = f[m].dir) == null ? void 0 : D[w]),
9587
+ spd: (N = f[m].spd) == null ? void 0 : N[w]
9564
9588
  });
9565
- B.push(W);
9589
+ _.push(W);
9566
9590
  }
9567
9591
  } else if (y >= s && y <= n && (!(i <= this.zoom) || y % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
9568
- const W = S.point([y, m], {
9569
- val: ((N = A[m].val) == null ? void 0 : N[b]) || ((j = A[m].dir) == null ? void 0 : j[b]),
9570
- spd: (G = A[m].spd) == null ? void 0 : G[b]
9592
+ const W = T.point([y, m], {
9593
+ val: ((Q = f[m].val) == null ? void 0 : Q[w]) || ((j = f[m].dir) == null ? void 0 : j[w]),
9594
+ spd: (G = f[m].spd) == null ? void 0 : G[w]
9571
9595
  });
9572
- B.push(W);
9596
+ _.push(W);
9573
9597
  }
9574
9598
  });
9575
9599
  }
9576
9600
  t = (/* @__PURE__ */ new Date()).valueOf() - (a + e), console.log("swell direction elapsed: ", t, ", total: ", e += t);
9577
- const w = this.weatherLayers[f].height;
9578
- if (w) {
9579
- if (!w.data) {
9601
+ const v = this.weatherLayers[A].height;
9602
+ if (v) {
9603
+ if (!v.data) {
9580
9604
  const m = [];
9581
- for (const L in (p = w.raw) == null ? void 0 : p.LineString) {
9582
- const y = w.raw.LineString[L];
9583
- for (const b of y)
9605
+ for (const L in (p = v.raw) == null ? void 0 : p.LineString) {
9606
+ const y = v.raw.LineString[L];
9607
+ for (const w of y)
9584
9608
  m.push(
9585
- S.lineString(b, {
9609
+ T.lineString(w, {
9586
9610
  val: Number(L)
9587
9611
  })
9588
9612
  );
9589
- w.data = S.featureCollection(m);
9613
+ v.data = T.featureCollection(m);
9590
9614
  }
9591
9615
  }
9592
- if (w.data) {
9593
- const m = this.handleBboxClip(w.data, r);
9594
- B = B.concat(m);
9616
+ if (v.data) {
9617
+ const m = this.handleBboxClip(v.data, r);
9618
+ _ = _.concat(m);
9595
9619
  }
9596
9620
  t = (/* @__PURE__ */ new Date()).valueOf() - (a + e), console.log("swell height elapsed: ", t, ", total: ", e += t);
9597
9621
  }
9598
- } else if (f === "current" && this.showCurrentIsoband) {
9599
- k = !0;
9600
- const A = ((v = this.weatherLayers[f]) == null ? void 0 : v.direction) || {};
9601
- for (const m in A)
9622
+ } else if (A === "current" && this.showCurrentIsoband) {
9623
+ B = !0;
9624
+ const f = ((b = this.weatherLayers[A]) == null ? void 0 : b.direction) || {};
9625
+ for (const m in f)
9602
9626
  if (m > l && m < c && (!(i <= this.zoom) || m % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
9603
- const L = A[m].lng;
9604
- s > n ? L.forEach((y, b) => {
9605
- var T, D, F, N, j, G;
9627
+ const L = f[m].lng;
9628
+ s > n ? L.forEach((y, w) => {
9629
+ var M, D, N, Q, j, G;
9606
9630
  if (i < 2) {
9607
9631
  if ((y >= 0 && y <= 360 || y >= -360 && y <= 0) && y % 10 === 0) {
9608
- const W = S.point([y, m], {
9609
- val: ((T = A[m].val) == null ? void 0 : T[b]) || ((D = A[m].dir) == null ? void 0 : D[b]),
9610
- spd: (F = A[m].spd) == null ? void 0 : F[b]
9632
+ const W = T.point([y, m], {
9633
+ val: ((M = f[m].val) == null ? void 0 : M[w]) || ((D = f[m].dir) == null ? void 0 : D[w]),
9634
+ spd: (N = f[m].spd) == null ? void 0 : N[w]
9611
9635
  });
9612
- B.push(W);
9636
+ _.push(W);
9613
9637
  }
9614
9638
  } else if ((y >= s && y <= 180 || y >= -180 && y <= n) && (!(i <= this.zoom) || y % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
9615
- const W = S.point([y, m], {
9616
- val: ((N = A[m].val) == null ? void 0 : N[b]) || ((j = A[m].dir) == null ? void 0 : j[b]),
9617
- spd: (G = A[m].spd) == null ? void 0 : G[b]
9639
+ const W = T.point([y, m], {
9640
+ val: ((Q = f[m].val) == null ? void 0 : Q[w]) || ((j = f[m].dir) == null ? void 0 : j[w]),
9641
+ spd: (G = f[m].spd) == null ? void 0 : G[w]
9618
9642
  });
9619
- B.push(W);
9643
+ _.push(W);
9620
9644
  }
9621
- }) : L.forEach((y, b) => {
9622
- var T, D, F, N, j, G;
9645
+ }) : L.forEach((y, w) => {
9646
+ var M, D, N, Q, j, G;
9623
9647
  if (s < 2) {
9624
9648
  if ((y >= 0 && y <= 360 || y >= -360 && y <= 0) && y % 10 === 0) {
9625
- const W = S.point([y, m], {
9626
- val: ((T = A[m].val) == null ? void 0 : T[b]) || ((D = A[m].dir) == null ? void 0 : D[b]),
9627
- spd: (F = A[m].spd) == null ? void 0 : F[b]
9649
+ const W = T.point([y, m], {
9650
+ val: ((M = f[m].val) == null ? void 0 : M[w]) || ((D = f[m].dir) == null ? void 0 : D[w]),
9651
+ spd: (N = f[m].spd) == null ? void 0 : N[w]
9628
9652
  });
9629
- B.push(W);
9653
+ _.push(W);
9630
9654
  }
9631
9655
  } else if (y >= s && y <= n && (!(i <= this.zoom) || y % (i < this.zoom / 2 ? 5 : 3) === 0)) {
9632
- const W = S.point([y, m], {
9633
- val: ((N = A[m].val) == null ? void 0 : N[b]) || ((j = A[m].dir) == null ? void 0 : j[b]),
9634
- spd: (G = A[m].spd) == null ? void 0 : G[b]
9656
+ const W = T.point([y, m], {
9657
+ val: ((Q = f[m].val) == null ? void 0 : Q[w]) || ((j = f[m].dir) == null ? void 0 : j[w]),
9658
+ spd: (G = f[m].spd) == null ? void 0 : G[w]
9635
9659
  });
9636
- B.push(W);
9660
+ _.push(W);
9637
9661
  }
9638
9662
  });
9639
9663
  }
9640
9664
  t = (/* @__PURE__ */ new Date()).valueOf() - (a + e), console.log("current direction elapsed: ", t, ", total: ", e += t);
9641
- const w = this.weatherLayers[f].speed;
9642
- if (w) {
9643
- if (!w.data) {
9665
+ const v = this.weatherLayers[A].speed;
9666
+ if (v) {
9667
+ if (!v.data) {
9644
9668
  const L = [];
9645
- for (const y in (C = w.raw) == null ? void 0 : C.Polygon) {
9646
- const b = w.raw.Polygon[y];
9647
- for (const T of b)
9669
+ for (const y in (x = v.raw) == null ? void 0 : x.Polygon) {
9670
+ const w = v.raw.Polygon[y];
9671
+ for (const M of w)
9648
9672
  L.push(
9649
- S.polygon(T, {
9673
+ T.polygon(M, {
9650
9674
  val: Number(y)
9651
9675
  })
9652
9676
  );
9653
9677
  }
9654
- w.data = S.featureCollection(L);
9678
+ v.data = T.featureCollection(L);
9655
9679
  }
9656
- const m = i < this.zoom ? w.data.features.filter((L) => L.properties.val > 0.5) : w.data.features;
9657
- B = B.concat(m), t = (/* @__PURE__ */ new Date()).valueOf() - (a + e), console.log("current speed elapsed: ", t, ", total: ", e += t);
9680
+ const m = i < this.zoom ? v.data.features.filter((L) => L.properties.val > 0.5) : v.data.features;
9681
+ _ = _.concat(m), t = (/* @__PURE__ */ new Date()).valueOf() - (a + e), console.log("current speed elapsed: ", t, ", total: ", e += t);
9658
9682
  }
9659
- } else if (f === "wind" && this.showWindFeather) {
9660
- k = !0;
9661
- const A = this.weatherLayers.wind.raw;
9662
- for (const w in A)
9663
- if (w > l && w < c && (!(i <= this.zoom) || w % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
9664
- const m = A[w].lng;
9683
+ } else if (A === "wind" && this.showWindFeather) {
9684
+ B = !0;
9685
+ const f = this.weatherLayers.wind.raw;
9686
+ for (const v in f)
9687
+ if (v > l && v < c && (!(i <= this.zoom) || v % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
9688
+ const m = f[v].lng;
9665
9689
  s > n ? m.forEach((L, y) => {
9666
- var b, T, D, F;
9690
+ var w, M, D, N;
9667
9691
  if (i < 2) {
9668
9692
  if ((L >= 0 && L <= 360 || L >= -360 && L <= 0) && L % 10 === 0) {
9669
- const N = S.point([L, w], {
9670
- dir: ((b = A[w].val) == null ? void 0 : b[y]) || ((T = A[w].dir) == null ? void 0 : T[y]),
9671
- spd: A[w].spd[y]
9693
+ const Q = T.point([L, v], {
9694
+ dir: ((w = f[v].val) == null ? void 0 : w[y]) || ((M = f[v].dir) == null ? void 0 : M[y]),
9695
+ spd: f[v].spd[y]
9672
9696
  });
9673
- B.push(N);
9697
+ _.push(Q);
9674
9698
  }
9675
9699
  } else if ((L >= s && L <= 180 || L >= -180 && L <= n) && (!(i <= this.zoom) || L % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
9676
- const N = S.point([L, w], {
9677
- dir: ((D = A[w].val) == null ? void 0 : D[y]) || ((F = A[w].dir) == null ? void 0 : F[y]),
9678
- spd: A[w].spd[y]
9700
+ const Q = T.point([L, v], {
9701
+ dir: ((D = f[v].val) == null ? void 0 : D[y]) || ((N = f[v].dir) == null ? void 0 : N[y]),
9702
+ spd: f[v].spd[y]
9679
9703
  });
9680
- B.push(N);
9704
+ _.push(Q);
9681
9705
  }
9682
9706
  }) : m.forEach((L, y) => {
9683
- var b, T, D, F;
9707
+ var w, M, D, N;
9684
9708
  if (i < 2) {
9685
9709
  if ((L >= 0 && L <= 360 || L >= -360 && L <= 0) && L % 10 === 0) {
9686
- const N = S.point([L, w], {
9687
- dir: ((b = A[w].val) == null ? void 0 : b[y]) || ((T = A[w].dir) == null ? void 0 : T[y]),
9688
- spd: A[w].spd[y]
9710
+ const Q = T.point([L, v], {
9711
+ dir: ((w = f[v].val) == null ? void 0 : w[y]) || ((M = f[v].dir) == null ? void 0 : M[y]),
9712
+ spd: f[v].spd[y]
9689
9713
  });
9690
- B.push(N);
9714
+ _.push(Q);
9691
9715
  }
9692
9716
  } else if (L >= s && L <= n && (!(i <= this.zoom) || L % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
9693
- const N = S.point([L, w], {
9694
- dir: ((D = A[w].val) == null ? void 0 : D[y]) || ((F = A[w].dir) == null ? void 0 : F[y]),
9695
- spd: A[w].spd[y]
9717
+ const Q = T.point([L, v], {
9718
+ dir: ((D = f[v].val) == null ? void 0 : D[y]) || ((N = f[v].dir) == null ? void 0 : N[y]),
9719
+ spd: f[v].spd[y]
9696
9720
  });
9697
- B.push(N);
9721
+ _.push(Q);
9698
9722
  }
9699
9723
  });
9700
9724
  }
9701
9725
  t = (/* @__PURE__ */ new Date()).valueOf() - (a + e), console.log("wind barb elapsed: ", t, ", total: ", e += t);
9702
- } else if (f === "sig-wave-height") {
9703
- if (this.weatherLayers[f].data)
9704
- B = this.weatherLayers[f].data;
9726
+ } else if (A === "sig-wave-height") {
9727
+ if (this.weatherLayers[A].data)
9728
+ _ = this.weatherLayers[A].data;
9705
9729
  else {
9706
- k = !0;
9707
- const A = this.weatherLayers[f].raw;
9708
- if (A) {
9709
- const w = [];
9710
- for (const m in A.Polygon) {
9711
- const L = A.Polygon[m];
9730
+ B = !0;
9731
+ const f = this.weatherLayers[A].raw;
9732
+ if (f) {
9733
+ const v = [];
9734
+ for (const m in f.Polygon) {
9735
+ const L = f.Polygon[m];
9712
9736
  for (const y of L)
9713
- w.push(
9714
- S.polygon(y, {
9737
+ v.push(
9738
+ T.polygon(y, {
9715
9739
  val: Number(m)
9716
9740
  })
9717
9741
  );
9718
9742
  }
9719
- for (const m in A.MultiPolygon) {
9720
- const L = A.MultiPolygon[m];
9743
+ for (const m in f.MultiPolygon) {
9744
+ const L = f.MultiPolygon[m];
9721
9745
  for (const y of L)
9722
- w.push(
9723
- S.multiPolygon(y, {
9746
+ v.push(
9747
+ T.multiPolygon(y, {
9724
9748
  val: Number(m)
9725
9749
  })
9726
9750
  );
9727
9751
  }
9728
- for (const m in A.Point) {
9729
- const L = A.Point[m];
9730
- for (let y = 0; y < ((_ = L.lng) == null ? void 0 : _.length); y++)
9731
- w.push(
9732
- S.point([L.lng[y], m], {
9752
+ for (const m in f.Point) {
9753
+ const L = f.Point[m];
9754
+ for (let y = 0; y < ((E = L.lng) == null ? void 0 : E.length); y++)
9755
+ v.push(
9756
+ T.point([L.lng[y], m], {
9733
9757
  val: Number(L.val[y])
9734
9758
  })
9735
9759
  );
9736
9760
  }
9737
- B = B.concat(w);
9761
+ _ = _.concat(v);
9738
9762
  }
9739
9763
  }
9740
9764
  t = (/* @__PURE__ */ new Date()).valueOf() - (a + e), console.log("sigWave elapsed: ", t, ", total: ", e += t);
9741
- } else if (f === "prmsl") {
9742
- if (this.weatherLayers[f].data)
9743
- B = this.weatherLayers[f].data;
9765
+ } else if (A === "prmsl") {
9766
+ if (this.weatherLayers[A].data)
9767
+ _ = this.weatherLayers[A].data;
9744
9768
  else {
9745
- k = !0;
9746
- const A = this.weatherLayers[f].raw;
9747
- if (A) {
9748
- const w = [];
9749
- for (const m in A.LineString) {
9750
- const L = A.LineString[m];
9769
+ B = !0;
9770
+ const f = this.weatherLayers[A].raw;
9771
+ if (f) {
9772
+ const v = [];
9773
+ for (const m in f.LineString) {
9774
+ const L = f.LineString[m];
9751
9775
  for (const y of L)
9752
- w.push(
9753
- S.lineString(y, {
9776
+ v.push(
9777
+ T.lineString(y, {
9754
9778
  val: Number(m)
9755
9779
  })
9756
9780
  );
9757
9781
  }
9758
- for (const m in A.Point)
9759
- A.Point[m].lng.forEach((L, y) => {
9760
- L = oe.convertToStdLng(L), w.push(
9761
- S.point([L, m], {
9762
- val: A.Point[m].val[y],
9763
- type: A.Point[m].type[y]
9782
+ for (const m in f.Point)
9783
+ f.Point[m].lng.forEach((L, y) => {
9784
+ L = ne.convertToStdLng(L), v.push(
9785
+ T.point([L, m], {
9786
+ val: f.Point[m].val[y],
9787
+ type: f.Point[m].type[y]
9764
9788
  })
9765
9789
  );
9766
9790
  });
9767
- B = B.concat(w);
9791
+ _ = _.concat(v);
9768
9792
  }
9769
9793
  }
9770
9794
  t = (/* @__PURE__ */ new Date()).valueOf() - (a + e), console.log("prmsl elapsed: ", t, ", total: ", e += t);
9771
9795
  }
9772
- B.length && (this.weatherLayers[f].data = S.featureCollection(B)), k && (this.weatherLayers[f].version = Math.random() + 1);
9796
+ _.length && (this.weatherLayers[A].data = T.featureCollection(_)), B && (this.weatherLayers[A].version = Math.random() + 1);
9773
9797
  }
9774
9798
  }
9775
9799
  },
@@ -9780,14 +9804,14 @@ const js = {
9780
9804
  this.handleDrawWeather4Json(), !this.activeWeatherLayers.some((l) => l.key === "wind" && l.particle === !0 || l.key === "current" && l.particle === !0 || l.key === "ice-edge" || l.key === "ice-thickness" || l.key === "ice-cover" || l.key === "temp" || l.key === "water-temp") && this.map.getZoom() > 3 && this.enc ? (t = (e = this.map) == null ? void 0 : e.getLayer(this.enc)) == null || t.setLayoutProperty("visibility", "visible") : ((i = (r = this.map) == null ? void 0 : r.getLayer("i4")) == null || i.setLayoutProperty("visibility", "none"), (n = (s = this.map) == null ? void 0 : s.getLayer("hi")) == null || n.setLayoutProperty("visibility", "none"));
9781
9805
  },
9782
9806
  handleBboxClip(a, e) {
9783
- const t = [], r = oe.convertToStdLng(e._sw.lng), i = oe.convertToStdLng(e._ne.lng);
9807
+ const t = [], r = ne.convertToStdLng(e._sw.lng), i = ne.convertToStdLng(e._ne.lng);
9784
9808
  return a.features.forEach((s) => {
9785
9809
  if (s.geometry.type !== "Point")
9786
9810
  if (r > i) {
9787
- let n = [r, e._sw.lat, 180, e._ne.lat], l = S.bboxClip(s, n);
9788
- l.geometry.coordinates.length && t.push(l), n = [-180, e._sw.lat, i, e._ne.lat], l = S.bboxClip(s, n), l.geometry.coordinates.length && t.push(l);
9811
+ let n = [r, e._sw.lat, 180, e._ne.lat], l = T.bboxClip(s, n);
9812
+ l.geometry.coordinates.length && t.push(l), n = [-180, e._sw.lat, i, e._ne.lat], l = T.bboxClip(s, n), l.geometry.coordinates.length && t.push(l);
9789
9813
  } else {
9790
- const n = [r, e._sw.lat, i, e._ne.lat], l = S.bboxClip(s, n);
9814
+ const n = [r, e._sw.lat, i, e._ne.lat], l = T.bboxClip(s, n);
9791
9815
  l.geometry.coordinates.length && t.push(l);
9792
9816
  }
9793
9817
  else
@@ -9805,8 +9829,8 @@ const js = {
9805
9829
  this.handleBeforeLayerToggle();
9806
9830
  },
9807
9831
  handleBeforeLayerToggle() {
9808
- var a, e, t, r, i, s, n, l, c, d, h, p, v, C, _, f;
9809
- (a = this.map) != null && a.getLayer(this.beforeLayer) && ((e = this.activeWeatherLayers) != null && e.length || (t = this.otherLayers) != null && t["war-zones"] || (r = this.otherLayers) != null && r["gmdss-areas"] || (i = this.otherLayers) != null && i["load-lines"] || (s = this.otherLayers) != null && s["high-risk-area"] || (n = this.otherLayers) != null && n["time-zones"] || (l = this.otherLayers) != null && l.pirates || (c = this.otherLayers) != null && c.ports || (d = this.otherLayers) != null && d.enc || (h = this.otherLayers) != null && h.world12nm || (p = this.otherLayers) != null && p.worldMarine || (v = this.otherLayers) != null && v.chinaRoute || (C = this.otherLayers) != null && C["voluntary-reporting-area"] || (_ = this.otherLayers) != null && _["eca-zones"] || (f = this.otherLayers) != null && f["special-area"]) && this.map.setLayoutProperty(this.beforeLayer, "visibility", "visible");
9832
+ var a, e, t, r, i, s, n, l, c, d, h, p, b, x, E, A;
9833
+ (a = this.map) != null && a.getLayer(this.beforeLayer) && ((e = this.activeWeatherLayers) != null && e.length || (t = this.otherLayers) != null && t["war-zones"] || (r = this.otherLayers) != null && r["gmdss-areas"] || (i = this.otherLayers) != null && i["load-lines"] || (s = this.otherLayers) != null && s["high-risk-area"] || (n = this.otherLayers) != null && n["time-zones"] || (l = this.otherLayers) != null && l.pirates || (c = this.otherLayers) != null && c.ports || (d = this.otherLayers) != null && d.enc || (h = this.otherLayers) != null && h.world12nm || (p = this.otherLayers) != null && p.worldMarine || (b = this.otherLayers) != null && b.chinaRoute || (x = this.otherLayers) != null && x["voluntary-reporting-area"] || (E = this.otherLayers) != null && E["eca-zones"] || (A = this.otherLayers) != null && A["special-area"]) && this.map.setLayoutProperty(this.beforeLayer, "visibility", "visible");
9810
9834
  },
9811
9835
  handleDateChange(a = { tropicals: !1 }) {
9812
9836
  this.fetchWeatherLayers(a), this.fetchOtherLayers({ dayNight: !0 });
@@ -9840,8 +9864,8 @@ const js = {
9840
9864
  }
9841
9865
  },
9842
9866
  handle3dToggle(a) {
9843
- var e, t, r, i, s, n, l, c, d, h, p, v, C, _, f, k, B, A, w, m;
9844
- a ? (this.map.setProjection("globe"), this.mapProjection = "globe", (t = this.map) != null && t.getLayer((e = this.viewport) == null ? void 0 : e.rampColorLayer) && ((r = this.map) != null && r.getLayer(this.helper.mapboxCustomer.layers.water.id)) && ((s = this.map) == null || s.moveLayer((i = this.viewport) == null ? void 0 : i.rampColorLayer, this.helper.mapboxCustomer.layers.water.id)), (l = this.map) != null && l.getLayer((n = this.viewport) == null ? void 0 : n.particleLayer) && ((c = this.map) != null && c.getLayer(this.helper.mapboxCustomer.layers.water.id)) && ((h = this.map) == null || h.moveLayer((d = this.viewport) == null ? void 0 : d.particleLayer, this.helper.mapboxCustomer.layers.water.id))) : (this.map.setProjection("mercator"), this.mapProjection = "mercator", (v = this.map) != null && v.getLayer((p = this.viewport) == null ? void 0 : p.rampColorLayer) && ((C = this.map) != null && C.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && ((f = this.map) == null || f.moveLayer((_ = this.viewport) == null ? void 0 : _.rampColorLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)), (B = this.map) != null && B.getLayer((k = this.viewport) == null ? void 0 : k.particleLayer) && ((A = this.map) != null && A.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && ((m = this.map) == null || m.moveLayer((w = this.viewport) == null ? void 0 : w.particleLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)));
9867
+ var e, t, r, i, s, n, l, c, d, h, p, b, x, E, A, B, _, f, v, m;
9868
+ a ? (this.map.setProjection("globe"), this.mapProjection = "globe", (t = this.map) != null && t.getLayer((e = this.viewport) == null ? void 0 : e.rampColorLayer) && ((r = this.map) != null && r.getLayer(this.helper.mapboxCustomer.layers.water.id)) && ((s = this.map) == null || s.moveLayer((i = this.viewport) == null ? void 0 : i.rampColorLayer, this.helper.mapboxCustomer.layers.water.id)), (l = this.map) != null && l.getLayer((n = this.viewport) == null ? void 0 : n.particleLayer) && ((c = this.map) != null && c.getLayer(this.helper.mapboxCustomer.layers.water.id)) && ((h = this.map) == null || h.moveLayer((d = this.viewport) == null ? void 0 : d.particleLayer, this.helper.mapboxCustomer.layers.water.id))) : (this.map.setProjection("mercator"), this.mapProjection = "mercator", (b = this.map) != null && b.getLayer((p = this.viewport) == null ? void 0 : p.rampColorLayer) && ((x = this.map) != null && x.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && ((A = this.map) == null || A.moveLayer((E = this.viewport) == null ? void 0 : E.rampColorLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)), (_ = this.map) != null && _.getLayer((B = this.viewport) == null ? void 0 : B.particleLayer) && ((f = this.map) != null && f.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && ((m = this.map) == null || m.moveLayer((v = this.viewport) == null ? void 0 : v.particleLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)));
9845
9869
  },
9846
9870
  handleParticle(a) {
9847
9871
  this.particleFactor = a, this.weatherLayers[a.key] && (this.weatherLayers[a.key].particle = a.particle), this.activeWeatherLayers.map((r) => {
@@ -9865,10 +9889,10 @@ const js = {
9865
9889
  class: "map-gl-home"
9866
9890
  };
9867
9891
  function Gs(a, e, t, r, i, s) {
9868
- var te, fe, pe, Ae, xe, be, _e, I, ze, Le, Pe, Ee, He, ke, se, ce, Q, Be, K, q, Me, P, de, De, Se, Te, z, O, Ge, Ue;
9869
- const n = R("IdmGlLayer"), l = R("IdmENC"), c = R("IdmWorld12nm"), d = R("IdmWorldMarine"), h = R("IdmChinaRoute"), p = R("IdmSigWave"), v = R("IdmSwell"), C = R("IdmPrmsl"), _ = R("IdmIceEdge"), f = R("IdmIceCover"), k = R("IdmIceThickness"), B = R("IdmTropicals"), A = R("IdmCurrents"), w = R("IdmCurrentParticle"), m = R("IdmWindBarb"), L = R("IdmWindParticle"), y = R("IdmPrecip3h"), b = R("IdmVisibility"), T = R("IdmWaterTemp"), D = R("IdmTemp"), F = R("IdmWarZone"), N = R("IdmGmdssArea"), j = R("IdmEcaZone"), G = R("IdmAlertZone"), W = R("IdmPort"), me = R("IdmLoadLine"), re = R("IdmTimezone"), ue = R("IdmVRA"), we = R("IdmSpecialArea"), ge = R("IdmTerminator"), ve = R("IdmLatLng"), ye = R("IdmMeasure"), Y = R("IdmPoint");
9892
+ var ae, Ae, ge, we, xe, be, _e, I, ze, Le, Pe, Ee, He, ke, oe, me, H, Be, K, q, Me, P, ue, De, Se, Te, z, O, Ge, Ue;
9893
+ const n = R("IdmGlLayer"), l = R("IdmENC"), c = R("IdmWorld12nm"), d = R("IdmWorldMarine"), h = R("IdmChinaRoute"), p = R("IdmSigWave"), b = R("IdmSwell"), x = R("IdmPrmsl"), E = R("IdmIceEdge"), A = R("IdmIceCover"), B = R("IdmIceThickness"), _ = R("IdmTropicals"), f = R("IdmCurrents"), v = R("IdmCurrentParticle"), m = R("IdmWindBarb"), L = R("IdmWindParticle"), y = R("IdmPrecip3h"), w = R("IdmVisibility"), M = R("IdmWaterTemp"), D = R("IdmTemp"), N = R("IdmWarZone"), Q = R("IdmGmdssArea"), j = R("IdmEcaZone"), G = R("IdmAlertZone"), W = R("IdmPort"), he = R("IdmLoadLine"), te = R("IdmTimezone"), pe = R("IdmVRA"), ye = R("IdmSpecialArea"), se = R("IdmTerminator"), ve = R("IdmLatLng"), fe = R("IdmMeasure"), Y = R("IdmPoint");
9870
9894
  return t.map ? (u(), g("div", Ws, [
9871
- H(n, X({
9895
+ F(n, X({
9872
9896
  ref: "layer",
9873
9897
  map: t.map,
9874
9898
  "toggle-version": t.toggleVersion,
@@ -9883,91 +9907,91 @@ function Gs(a, e, t, r, i, s) {
9883
9907
  "forecast-model": t.forecastModel,
9884
9908
  onWeather: s.handleWeatherLayerChange,
9885
9909
  onOther: s.handleOtherLayerChange,
9886
- onToggleWindParticle: e[0] || (e[0] = (ie) => i.showWindParticle = ie),
9887
- onToggleWindFeather: e[1] || (e[1] = (ie) => {
9888
- (i.showWindFeather = ie) && s.handleDrawWeather4Json();
9910
+ onToggleWindParticle: e[0] || (e[0] = (re) => i.showWindParticle = re),
9911
+ onToggleWindFeather: e[1] || (e[1] = (re) => {
9912
+ (i.showWindFeather = re) && s.handleDrawWeather4Json();
9889
9913
  }),
9890
- onToggleCurrentParticle: e[2] || (e[2] = (ie) => i.showCurrentParticle = ie),
9891
- onToggleCurrentIsoband: e[3] || (e[3] = (ie) => {
9892
- (i.showCurrentIsoband = ie) && s.handleDrawWeather4Json();
9914
+ onToggleCurrentParticle: e[2] || (e[2] = (re) => i.showCurrentParticle = re),
9915
+ onToggleCurrentIsoband: e[3] || (e[3] = (re) => {
9916
+ (i.showCurrentIsoband = re) && s.handleDrawWeather4Json();
9893
9917
  }),
9894
- onToggleWindParticeVersion: e[4] || (e[4] = (ie) => i.toggleWindParticeVersion = Math.random()),
9895
- onToggleCurrentParticeVersion: e[5] || (e[5] = (ie) => i.toggleCurrentParticeVersion = Math.random()),
9896
- onCoordinate: e[6] || (e[6] = (ie) => i.showCoord = ie),
9897
- onMeasure: e[7] || (e[7] = (ie) => i.showMeasure = ie),
9898
- onPoint: e[8] || (e[8] = (ie) => i.showPoint = ie),
9918
+ onToggleWindParticeVersion: e[4] || (e[4] = (re) => i.toggleWindParticeVersion = Math.random()),
9919
+ onToggleCurrentParticeVersion: e[5] || (e[5] = (re) => i.toggleCurrentParticeVersion = Math.random()),
9920
+ onCoordinate: e[6] || (e[6] = (re) => i.showCoord = re),
9921
+ onMeasure: e[7] || (e[7] = (re) => i.showMeasure = re),
9922
+ onPoint: e[8] || (e[8] = (re) => i.showPoint = re),
9899
9923
  on3d: s.handle3dToggle,
9900
9924
  onHandleToggleVersion: s.handleToggleVersion
9901
9925
  }), null, 16, ["map", "toggle-version", "map-projection", "show-wind-feather", "show-wind-particle", "show-current-isoband", "show-current-particle", "token", "gateway", "forecast-model", "onWeather", "onOther", "on3d", "onHandleToggleVersion"]),
9902
- H(l, X({
9926
+ F(l, X({
9903
9927
  map: t.map,
9904
9928
  token: t.token,
9905
- enabled: (te = i.otherLayers) == null ? void 0 : te.enc,
9929
+ enabled: (ae = i.otherLayers) == null ? void 0 : ae.enc,
9906
9930
  "toggle-version": t.toggleVersion
9907
9931
  }, a.$attrs, {
9908
- onEnc: e[9] || (e[9] = (ie) => i.enc = ie)
9932
+ onEnc: e[9] || (e[9] = (re) => i.enc = re)
9909
9933
  }), null, 16, ["map", "token", "enabled", "toggle-version"]),
9910
- H(c, X({
9934
+ F(c, X({
9911
9935
  map: t.map,
9912
9936
  token: t.token,
9913
9937
  "weather-layers": i.weatherLayers,
9914
- enabled: (fe = i.otherLayers) == null ? void 0 : fe.world12nm
9938
+ enabled: (Ae = i.otherLayers) == null ? void 0 : Ae.world12nm
9915
9939
  }, a.$attrs), null, 16, ["map", "token", "weather-layers", "enabled"]),
9916
- H(d, X({
9940
+ F(d, X({
9917
9941
  map: t.map,
9918
9942
  token: t.token,
9919
9943
  "weather-layers": i.weatherLayers,
9920
- enabled: (pe = i.otherLayers) == null ? void 0 : pe.worldMarine
9944
+ enabled: (ge = i.otherLayers) == null ? void 0 : ge.worldMarine
9921
9945
  }, a.$attrs), null, 16, ["map", "token", "weather-layers", "enabled"]),
9922
- H(h, X({
9946
+ F(h, X({
9923
9947
  map: t.map,
9924
9948
  token: t.token,
9925
9949
  "weather-layers": i.weatherLayers,
9926
- enabled: (Ae = i.otherLayers) == null ? void 0 : Ae.chinaRoute
9950
+ enabled: (we = i.otherLayers) == null ? void 0 : we.chinaRoute
9927
9951
  }, a.$attrs), null, 16, ["map", "token", "weather-layers", "enabled"]),
9928
- H(p, X({
9952
+ F(p, X({
9929
9953
  map: t.map,
9930
9954
  "sig-wave": (xe = i.weatherLayers) == null ? void 0 : xe["sig-wave-height"],
9931
9955
  "before-layer": t.beforeLayer,
9932
9956
  "active-weather-layers": i.activeWeatherLayers
9933
9957
  }, a.$attrs), null, 16, ["map", "sig-wave", "before-layer", "active-weather-layers"]),
9934
- H(v, X({
9958
+ F(b, X({
9935
9959
  map: t.map,
9936
9960
  swell: (be = i.weatherLayers) == null ? void 0 : be.swell,
9937
9961
  "before-layer": t.beforeLayer,
9938
9962
  "active-weather-layers": i.activeWeatherLayers
9939
9963
  }, a.$attrs), null, 16, ["map", "swell", "before-layer", "active-weather-layers"]),
9940
- H(C, X({
9964
+ F(x, X({
9941
9965
  map: t.map,
9942
9966
  prmsl: (_e = i.weatherLayers) == null ? void 0 : _e.prmsl,
9943
9967
  "before-layer": t.beforeLayer,
9944
9968
  "active-weather-layers": i.activeWeatherLayers
9945
9969
  }, a.$attrs), null, 16, ["map", "prmsl", "before-layer", "active-weather-layers"]),
9946
- H(_, X({
9970
+ F(E, X({
9947
9971
  viewport: i.viewport,
9948
9972
  factor: (I = i.weatherLayers) == null ? void 0 : I["ice-edge"],
9949
9973
  "toggle-version": t.toggleVersion,
9950
9974
  "before-layer": t.beforeLayer
9951
9975
  }, a.$attrs), null, 16, ["viewport", "factor", "toggle-version", "before-layer"]),
9952
- H(f, X({
9976
+ F(A, X({
9953
9977
  viewport: i.viewport,
9954
9978
  factor: (ze = i.weatherLayers) == null ? void 0 : ze["ice-cover"],
9955
9979
  "toggle-version": t.toggleVersion,
9956
9980
  "before-layer": t.beforeLayer
9957
9981
  }, a.$attrs), null, 16, ["viewport", "factor", "toggle-version", "before-layer"]),
9958
- H(k, X({
9982
+ F(B, X({
9959
9983
  viewport: i.viewport,
9960
9984
  factor: (Le = i.weatherLayers) == null ? void 0 : Le["ice-thickness"],
9961
9985
  "toggle-version": t.toggleVersion,
9962
9986
  "before-layer": t.beforeLayer
9963
9987
  }, a.$attrs), null, 16, ["viewport", "factor", "toggle-version", "before-layer"]),
9964
- H(B, X({
9988
+ F(_, X({
9965
9989
  map: t.map,
9966
9990
  date: t.ts,
9967
9991
  tropicals: (Pe = i.weatherLayers) == null ? void 0 : Pe.tropicals,
9968
9992
  "before-layer": t.beforeLayer
9969
9993
  }, a.$attrs), null, 16, ["map", "date", "tropicals", "before-layer"]),
9970
- H(A, X({
9994
+ F(f, X({
9971
9995
  map: t.map,
9972
9996
  "map-projection": i.mapProjection,
9973
9997
  current: (Ee = i.weatherLayers) == null ? void 0 : Ee.current,
@@ -9982,18 +10006,18 @@ function Gs(a, e, t, r, i, s) {
9982
10006
  onParticle: s.handleParticle,
9983
10007
  onHandleToggleVersion: s.handleToggleVersion
9984
10008
  }), null, 16, ["map", "map-projection", "current", "before-layer", "show-current-isoband", "show-current-particle", "toggle-partice-version", "margin-bottom", "toggle-version", "weather-layers", "onParticle", "onHandleToggleVersion"]),
9985
- H(w, X({
10009
+ F(v, X({
9986
10010
  viewport: i.viewport,
9987
10011
  factor: (He = i.weatherLayers) == null ? void 0 : He["current-particle"],
9988
10012
  "before-layer": t.beforeLayer,
9989
10013
  "toggle-version": t.toggleVersion
9990
10014
  }, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
9991
- H(m, X({
10015
+ F(m, X({
9992
10016
  ref: "windBarb",
9993
10017
  map: t.map,
9994
10018
  "map-projection": i.mapProjection,
9995
10019
  wind: (ke = i.weatherLayers) == null ? void 0 : ke.wind,
9996
- current: (se = i.weatherLayers) == null ? void 0 : se.current,
10020
+ current: (oe = i.weatherLayers) == null ? void 0 : oe.current,
9997
10021
  "before-layer": t.beforeLayer,
9998
10022
  "margin-bottom": i.showRampColor ? "56px" : "30px",
9999
10023
  "show-wind-feather": i.showWindFeather,
@@ -10004,96 +10028,96 @@ function Gs(a, e, t, r, i, s) {
10004
10028
  "weather-layers": i.weatherLayers,
10005
10029
  onParticle: s.handleParticle
10006
10030
  }), null, 16, ["map", "map-projection", "wind", "current", "before-layer", "margin-bottom", "show-wind-feather", "show-wind-particle", "toggle-partice-version", "toggle-version", "weather-layers", "onParticle"]),
10007
- H(L, X({
10031
+ F(L, X({
10008
10032
  viewport: i.viewport,
10009
- factor: (ce = i.weatherLayers) == null ? void 0 : ce["wind-particle"],
10033
+ factor: (me = i.weatherLayers) == null ? void 0 : me["wind-particle"],
10010
10034
  "before-layer": t.beforeLayer,
10011
10035
  "toggle-version": t.toggleVersion
10012
10036
  }, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
10013
- H(y, X({
10037
+ F(y, X({
10014
10038
  viewport: i.viewport,
10015
- factor: (Q = i.weatherLayers) == null ? void 0 : Q.precip3h,
10039
+ factor: (H = i.weatherLayers) == null ? void 0 : H.precip3h,
10016
10040
  "before-layer": t.beforeLayer,
10017
10041
  "toggle-version": t.toggleVersion
10018
10042
  }, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
10019
- H(b, X({
10043
+ F(w, X({
10020
10044
  viewport: i.viewport,
10021
10045
  factor: (Be = i.weatherLayers) == null ? void 0 : Be.visibility,
10022
10046
  "before-layer": t.beforeLayer,
10023
10047
  "toggle-version": t.toggleVersion
10024
10048
  }, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
10025
- H(T, X({
10049
+ F(M, X({
10026
10050
  viewport: i.viewport,
10027
10051
  factor: (K = i.weatherLayers) == null ? void 0 : K["water-temp"],
10028
10052
  "before-layer": t.beforeLayer,
10029
10053
  "toggle-version": t.toggleVersion
10030
10054
  }, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
10031
- H(D, X({
10055
+ F(D, X({
10032
10056
  viewport: i.viewport,
10033
10057
  factor: (q = i.weatherLayers) == null ? void 0 : q.temp,
10034
10058
  "before-layer": t.beforeLayer,
10035
10059
  "toggle-version": t.toggleVersion
10036
10060
  }, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
10037
- H(F, X({
10061
+ F(N, X({
10038
10062
  map: t.map,
10039
10063
  zone: (Me = i.otherLayers) == null ? void 0 : Me["war-zones"],
10040
10064
  "before-layer": t.beforeLayer
10041
10065
  }, a.$attrs), null, 16, ["map", "zone", "before-layer"]),
10042
- H(N, X({
10066
+ F(Q, X({
10043
10067
  map: t.map,
10044
10068
  area: (P = i.otherLayers) == null ? void 0 : P["gmdss-areas"],
10045
10069
  "before-layer": t.beforeLayer
10046
10070
  }, a.$attrs), null, 16, ["map", "area", "before-layer"]),
10047
- H(j, X({
10071
+ F(j, X({
10048
10072
  map: t.map,
10049
- zone: (de = i.otherLayers) == null ? void 0 : de["eca-zones"],
10073
+ zone: (ue = i.otherLayers) == null ? void 0 : ue["eca-zones"],
10050
10074
  "before-layer": t.beforeLayer
10051
10075
  }, a.$attrs), null, 16, ["map", "zone", "before-layer"]),
10052
- H(G, X({
10076
+ F(G, X({
10053
10077
  map: t.map,
10054
10078
  zone: (De = i.otherLayers) == null ? void 0 : De["alert-zones"],
10055
10079
  "before-layer": t.beforeLayer
10056
10080
  }, a.$attrs), null, 16, ["map", "zone", "before-layer"]),
10057
- H(W, X({
10081
+ F(W, X({
10058
10082
  map: t.map,
10059
10083
  port: (Se = i.otherLayers) == null ? void 0 : Se.ports,
10060
10084
  "before-layer": t.beforeLayer,
10061
10085
  "forecast-model": t.forecastModel
10062
10086
  }, a.$attrs), null, 16, ["map", "port", "before-layer", "forecast-model"]),
10063
- H(me, X({
10087
+ F(he, X({
10064
10088
  map: t.map,
10065
10089
  line: (Te = i.otherLayers) == null ? void 0 : Te["load-lines"],
10066
10090
  "before-layer": t.beforeLayer
10067
10091
  }, a.$attrs), null, 16, ["map", "line", "before-layer"]),
10068
- H(re, X({
10092
+ F(te, X({
10069
10093
  map: t.map,
10070
10094
  zone: (z = i.otherLayers) == null ? void 0 : z["time-zones"],
10071
10095
  "before-layer": t.beforeLayer
10072
10096
  }, a.$attrs), null, 16, ["map", "zone", "before-layer"]),
10073
- H(ue, X({
10097
+ F(pe, X({
10074
10098
  map: t.map,
10075
10099
  area: (O = i.otherLayers) == null ? void 0 : O["voluntary-reporting-area"],
10076
10100
  "before-layer": t.beforeLayer
10077
10101
  }, a.$attrs), null, 16, ["map", "area", "before-layer"]),
10078
- H(we, X({
10102
+ F(ye, X({
10079
10103
  map: t.map,
10080
10104
  area: (Ge = i.otherLayers) == null ? void 0 : Ge["special-area"],
10081
10105
  "before-layer": t.beforeLayer
10082
10106
  }, a.$attrs), null, 16, ["map", "area", "before-layer"]),
10083
- H(ge, X({
10107
+ F(se, X({
10084
10108
  map: t.map,
10085
10109
  area: (Ue = i.otherLayers) == null ? void 0 : Ue["day-night"]
10086
10110
  }, a.$attrs), null, 16, ["map", "area"]),
10087
- H(ve, X({
10111
+ F(ve, X({
10088
10112
  map: t.map,
10089
10113
  show: i.showCoord,
10090
10114
  "toggle-version": t.toggleVersion
10091
10115
  }, a.$attrs), null, 16, ["map", "show", "toggle-version"]),
10092
- H(ye, X({
10116
+ F(fe, X({
10093
10117
  map: t.map,
10094
10118
  show: i.showMeasure
10095
10119
  }, a.$attrs), null, 16, ["map", "show"]),
10096
- H(Y, X({
10120
+ F(Y, X({
10097
10121
  ref: "idmPoint",
10098
10122
  map: t.map,
10099
10123
  show: i.showPoint,
@@ -10119,5 +10143,5 @@ export {
10119
10143
  dt as TropicalGL,
10120
10144
  et as Viewport,
10121
10145
  We as WebGL,
10122
- ne as WebGLSchema
10146
+ le as WebGLSchema
10123
10147
  };