@idmwx/idmui-gl3 4.6.3 → 4.6.5

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 G0 = Object.defineProperty;
2
2
  var V0 = (z, M, b) => M in z ? G0(z, M, { enumerable: !0, configurable: !0, writable: !0, value: b }) : z[M] = b;
3
- var G = (z, M, b) => (V0(z, typeof M != "symbol" ? M + "" : M, b), b);
3
+ var V = (z, M, b) => (V0(z, typeof M != "symbol" ? M + "" : M, b), b);
4
4
  import { LayerHelper as x0, CompanyHelper as S0 } from "@idm-plugin/tag";
5
- import { resolveComponent as x, openBlock as l, createElementBlock as f, createElementVNode as c, normalizeStyle as z0, createVNode as v, withCtx as c0, normalizeClass as K, Fragment as V, renderList as Q, toDisplayString as C, createCommentVNode as D, createTextVNode as Z, withDirectives as T0, createStaticVNode as K0, vShow as w0, defineComponent as J0, withModifiers as v0, mergeProps as j } from "vue";
5
+ import { resolveComponent as x, openBlock as l, createElementBlock as f, createElementVNode as c, normalizeStyle as p0, createVNode as v, withCtx as e0, normalizeClass as J, Fragment as K, renderList as $, toDisplayString as C, createCommentVNode as U, createTextVNode as b0, withDirectives as X0, createStaticVNode as K0, vShow as v0, defineComponent as J0, withModifiers as C0, mergeProps as j } from "vue";
6
6
  import * as T from "@turf/turf";
7
7
  import Q0 from "@mapbox/sphericalmercator";
8
- import A0 from "moment";
9
- import R0 from "mapbox-gl";
10
- import { TropicalHelper as I0, LngLatHelper as $, LaneHelper as L0 } from "@idm-plugin/geo";
8
+ import H from "moment";
9
+ import m0 from "mapbox-gl";
10
+ import { TropicalHelper as I0, LngLatHelper as M0, LaneHelper as R0 } from "@idm-plugin/geo";
11
11
  import { Meteo2Assist as D0 } from "@idm-plugin/meteo";
12
- import y0 from "axios";
12
+ import h0 from "axios";
13
13
  const I = (z, M) => {
14
14
  const b = z.__vccOpts || z;
15
15
  for (const [O, p] of M)
@@ -226,7 +226,7 @@ function T1(z, M, b, O, p, o) {
226
226
  return l(), f("div", Z0, [
227
227
  c("div", {
228
228
  class: "menu-bar-box",
229
- style: z0({ top: b.top + 10 + "px", right: p.right + "px" })
229
+ style: p0({ top: b.top + 10 + "px", right: p.right + "px" })
230
230
  }, [
231
231
  c("div", Y0, [
232
232
  v(e, {
@@ -235,9 +235,9 @@ function T1(z, M, b, O, p, o) {
235
235
  content: "Menu",
236
236
  "show-after": 1e3
237
237
  }, {
238
- default: c0(() => [
238
+ default: e0(() => [
239
239
  c("div", {
240
- class: K(b.layerToggle ? "menu-icon active" : "menu-icon"),
240
+ class: J(b.layerToggle ? "menu-icon active" : "menu-icon"),
241
241
  onClick: M[0] || (M[0] = (...a) => o.handleMenuToggle && o.handleMenuToggle(...a))
242
242
  }, M[17] || (M[17] = [
243
243
  c("span", { class: "iconfont" }, "", -1)
@@ -249,7 +249,7 @@ function T1(z, M, b, O, p, o) {
249
249
  ], 4),
250
250
  c("div", {
251
251
  class: "menu-bar-box",
252
- style: z0({ top: b.top + 160 + "px", right: p.right + "px" })
252
+ style: p0({ top: b.top + 160 + "px", right: p.right + "px" })
253
253
  }, [
254
254
  c("div", M1, [
255
255
  v(e, {
@@ -258,9 +258,9 @@ function T1(z, M, b, O, p, o) {
258
258
  content: "Measure",
259
259
  "show-after": 1e3
260
260
  }, {
261
- default: c0(() => [
261
+ default: e0(() => [
262
262
  c("div", {
263
- class: K(p.showMeasure ? "menu-icon active" : "menu-icon"),
263
+ class: J(p.showMeasure ? "menu-icon active" : "menu-icon"),
264
264
  onClick: M[1] || (M[1] = (...a) => o.handleMeasureToggle && o.handleMeasureToggle(...a))
265
265
  }, M[18] || (M[18] = [
266
266
  c("span", { class: "iconfont" }, "", -1)
@@ -274,9 +274,9 @@ function T1(z, M, b, O, p, o) {
274
274
  content: "Point Meteo",
275
275
  "show-after": 1e3
276
276
  }, {
277
- default: c0(() => [
277
+ default: e0(() => [
278
278
  c("div", {
279
- class: K(p.showPoint ? "menu-icon active" : "menu-icon"),
279
+ class: J(p.showPoint ? "menu-icon active" : "menu-icon"),
280
280
  onClick: M[2] || (M[2] = (...a) => o.handlePointToggle && o.handlePointToggle(...a))
281
281
  }, M[19] || (M[19] = [
282
282
  c("span", { class: "iconfont" }, "", -1)
@@ -290,9 +290,9 @@ function T1(z, M, b, O, p, o) {
290
290
  content: "Grid",
291
291
  "show-after": 1e3
292
292
  }, {
293
- default: c0(() => [
293
+ default: e0(() => [
294
294
  c("div", {
295
- class: K(p.showCoord ? "menu-icon active" : "menu-icon"),
295
+ class: J(p.showCoord ? "menu-icon active" : "menu-icon"),
296
296
  onClick: M[3] || (M[3] = (...a) => o.handleCoordToggle && o.handleCoordToggle(...a))
297
297
  }, M[20] || (M[20] = [
298
298
  c("span", { class: "iconfont" }, "", -1)
@@ -306,9 +306,9 @@ function T1(z, M, b, O, p, o) {
306
306
  content: "3D",
307
307
  "show-after": 1e3
308
308
  }, {
309
- default: c0(() => [
309
+ default: e0(() => [
310
310
  c("div", {
311
- class: K(p.show3d ? "menu-icon active" : "menu-icon"),
311
+ class: J(p.show3d ? "menu-icon active" : "menu-icon"),
312
312
  onClick: M[4] || (M[4] = (...a) => o.handle3DToggle && o.handle3DToggle(...a))
313
313
  }, M[21] || (M[21] = [
314
314
  c("span", { class: "iconfont" }, "", -1)
@@ -321,7 +321,7 @@ function T1(z, M, b, O, p, o) {
321
321
  o.hasCollectedLayers ? (l(), f("div", {
322
322
  key: 0,
323
323
  class: "active-layers",
324
- style: z0({ right: p.right + "px", bottom: "100px" })
324
+ style: p0({ right: p.right + "px", bottom: "100px" })
325
325
  }, [
326
326
  c("div", b1, [
327
327
  M[22] || (M[22] = c("div", { style: { margin: "2px 5px" } }, "My Favorites", -1)),
@@ -333,9 +333,9 @@ function T1(z, M, b, O, p, o) {
333
333
  p.autoActive ? (l(), f("i", z1, "")) : (l(), f("i", p1, ""))
334
334
  ])
335
335
  ]),
336
- (l(!0), f(V, null, Q(p.layers.weather.filter((a) => a.collected), (a) => (l(), f("div", {
336
+ (l(!0), f(K, null, $(p.layers.weather.filter((a) => a.collected), (a) => (l(), f("div", {
337
337
  key: a.key,
338
- class: K(o.computeLayerClass(a, p.activeWeatherLayers))
338
+ class: J(o.computeLayerClass(a, p.activeWeatherLayers))
339
339
  }, [
340
340
  c("div", {
341
341
  class: "checkbox",
@@ -347,32 +347,32 @@ function T1(z, M, b, O, p, o) {
347
347
  }, C(a.name), 9, o1),
348
348
  a.key === "wind" && p.activeWeatherLayers.some((i) => i.key === a.key) ? (l(), f("div", c1, [
349
349
  c("i", {
350
- class: K(["iconfont sub-layer-icon", b.showWindParticle ? "active" : ""]),
350
+ class: J(["iconfont sub-layer-icon", b.showWindParticle ? "active" : ""]),
351
351
  onClick: M[6] || (M[6] = (i) => o.handleToggleWindParticle())
352
352
  }, "", 2),
353
353
  c("i", {
354
- class: K(["iconfont sub-layer-icon", b.showWindFeather ? "active" : ""]),
354
+ class: J(["iconfont sub-layer-icon", b.showWindFeather ? "active" : ""]),
355
355
  onClick: M[7] || (M[7] = (i) => o.handleToggleWindFeather())
356
356
  }, "", 2)
357
- ])) : D("", !0),
357
+ ])) : U("", !0),
358
358
  a.key === "current" && p.activeWeatherLayers.some((i) => i.key === a.key) ? (l(), f("div", e1, [
359
359
  c("i", {
360
- class: K(["iconfont sub-layer-icon", b.showCurrentParticle ? "active" : ""]),
360
+ class: J(["iconfont sub-layer-icon", b.showCurrentParticle ? "active" : ""]),
361
361
  onClick: M[8] || (M[8] = (i) => o.handleToggleCurrentParticle())
362
362
  }, "", 2),
363
363
  c("i", {
364
- class: K(["iconfont sub-layer-icon", b.showCurrentIsoband ? "active" : ""]),
364
+ class: J(["iconfont sub-layer-icon", b.showCurrentIsoband ? "active" : ""]),
365
365
  onClick: M[9] || (M[9] = (i) => o.handleToggleCurrentIsoband())
366
366
  }, "", 2)
367
- ])) : D("", !0)
367
+ ])) : U("", !0)
368
368
  ], 2))), 128))
369
- ], 4)) : D("", !0),
369
+ ], 4)) : U("", !0),
370
370
  c("div", {
371
371
  class: "available-layers flex-center",
372
- style: z0({ top: b.top + "px", right: b.layerToggle ? "0px" : "-240px" })
372
+ style: p0({ top: b.top + "px", right: b.layerToggle ? "0px" : "-240px" })
373
373
  }, [
374
374
  c("div", {
375
- class: K(["list-box", b.layerToggle ? "right-bar" : ""])
375
+ class: J(["list-box", b.layerToggle ? "right-bar" : ""])
376
376
  }, [
377
377
  c("div", A1, [
378
378
  M[23] || (M[23] = c("div", null, "Layers", -1)),
@@ -382,7 +382,7 @@ function T1(z, M, b, O, p, o) {
382
382
  }, "")
383
383
  ]),
384
384
  v(r, { style: { flex: "1" } }, {
385
- default: c0(() => [
385
+ default: e0(() => [
386
386
  c("div", t1, [
387
387
  c("div", a1, [
388
388
  M[24] || (M[24] = c("div", null, "Weather Layers", -1)),
@@ -395,12 +395,12 @@ function T1(z, M, b, O, p, o) {
395
395
  ])
396
396
  ]),
397
397
  c("div", r1, [
398
- (l(!0), f(V, null, Q(p.layers.weather, (a) => (l(), f(V, {
398
+ (l(!0), f(K, null, $(p.layers.weather, (a) => (l(), f(K, {
399
399
  key: a.key
400
400
  }, [
401
- a.hide ? D("", !0) : (l(), f("div", {
401
+ a.hide ? U("", !0) : (l(), f("div", {
402
402
  key: 0,
403
- class: K(o.computeLayerClass(a, p.activeWeatherLayers))
403
+ class: J(o.computeLayerClass(a, p.activeWeatherLayers))
404
404
  }, [
405
405
  c("div", n1, [
406
406
  c("div", {
@@ -413,24 +413,24 @@ function T1(z, M, b, O, p, o) {
413
413
  }, C(a.name), 9, W1),
414
414
  a.key === "wind" && p.activeWeatherLayers.some((i) => i.key === a.key) ? (l(), f("div", s1, [
415
415
  c("i", {
416
- class: K(["iconfont sub-layer-icon", b.showWindParticle ? "active" : ""]),
416
+ class: J(["iconfont sub-layer-icon", b.showWindParticle ? "active" : ""]),
417
417
  onClick: M[12] || (M[12] = (i) => o.handleToggleWindParticle())
418
418
  }, "", 2),
419
419
  c("i", {
420
- class: K(["iconfont sub-layer-icon", b.showWindFeather ? "active" : ""]),
420
+ class: J(["iconfont sub-layer-icon", b.showWindFeather ? "active" : ""]),
421
421
  onClick: M[13] || (M[13] = (i) => o.handleToggleWindFeather())
422
422
  }, "", 2)
423
- ])) : D("", !0),
423
+ ])) : U("", !0),
424
424
  a.key === "current" && p.activeWeatherLayers.some((i) => i.key === a.key) ? (l(), f("div", l1, [
425
425
  c("i", {
426
- class: K(["iconfont sub-layer-icon", b.showCurrentParticle ? "active" : ""]),
426
+ class: J(["iconfont sub-layer-icon", b.showCurrentParticle ? "active" : ""]),
427
427
  onClick: M[14] || (M[14] = (i) => o.handleToggleCurrentParticle())
428
428
  }, "", 2),
429
429
  c("i", {
430
- class: K(["iconfont sub-layer-icon", b.showCurrentIsoband ? "active" : ""]),
430
+ class: J(["iconfont sub-layer-icon", b.showCurrentIsoband ? "active" : ""]),
431
431
  onClick: M[15] || (M[15] = (i) => o.handleToggleCurrentIsoband())
432
432
  }, "", 2)
433
- ])) : D("", !0)
433
+ ])) : U("", !0)
434
434
  ]),
435
435
  c("div", {
436
436
  onClick: (i) => o.handleWeatherLayerCollect(a)
@@ -451,11 +451,11 @@ function T1(z, M, b, O, p, o) {
451
451
  c("div", R1, [
452
452
  M[26] || (M[26] = c("div", { class: "layers-title" }, "Other Layers", -1)),
453
453
  c("div", h1, [
454
- (l(!0), f(V, null, Q(p.layers.other, (a) => {
454
+ (l(!0), f(K, null, $(p.layers.other, (a) => {
455
455
  var i;
456
456
  return l(), f("div", {
457
457
  key: a.key,
458
- class: K(["layer flex-between", o.computeLayerClass(a, p.activeOtherLayers)]),
458
+ class: J(["layer flex-between", o.computeLayerClass(a, p.activeOtherLayers)]),
459
459
  onClick: (L) => o.handleOtherLayerPick(a)
460
460
  }, [
461
461
  c("div", N1, [
@@ -476,16 +476,16 @@ function T1(z, M, b, O, p, o) {
476
476
  "onUpdate:modelValue": M[16] || (M[16] = (a) => p.source = a),
477
477
  class: "layer-radio flex-col-center-start"
478
478
  }, {
479
- default: c0(() => [
479
+ default: e0(() => [
480
480
  v(t, { value: "GFS" }, {
481
- default: c0(() => M[27] || (M[27] = [
482
- Z("GFS")
481
+ default: e0(() => M[27] || (M[27] = [
482
+ b0("GFS")
483
483
  ])),
484
484
  _: 1
485
485
  }),
486
486
  v(t, { value: "CMEMS" }, {
487
- default: c0(() => M[28] || (M[28] = [
488
- Z("CMEMS")
487
+ default: e0(() => M[28] || (M[28] = [
488
+ b0("CMEMS")
489
489
  ])),
490
490
  _: 1
491
491
  })
@@ -652,20 +652,20 @@ const C1 = {
652
652
  }, _1 = { key: 0 };
653
653
  function x1(z, M, b, O, p, o) {
654
654
  var e;
655
- return (e = b.wind) != null && e.active ? (l(), f("div", _1)) : D("", !0);
655
+ return (e = b.wind) != null && e.active ? (l(), f("div", _1)) : U("", !0);
656
656
  }
657
657
  const S1 = /* @__PURE__ */ I(C1, [["render", x1]]);
658
658
  class E0 {
659
659
  constructor(M) {
660
- G(this, "map");
661
- G(this, "mercator");
662
- G(this, "rampColorLayer");
663
- G(this, "rampColorSource");
664
- G(this, "particleLayer");
665
- G(this, "particleSource");
666
- G(this, "rampColorCanvas");
667
- G(this, "particleCanvas");
668
- G(this, "ratio");
660
+ V(this, "map");
661
+ V(this, "mercator");
662
+ V(this, "rampColorLayer");
663
+ V(this, "rampColorSource");
664
+ V(this, "particleLayer");
665
+ V(this, "particleSource");
666
+ V(this, "rampColorCanvas");
667
+ V(this, "particleCanvas");
668
+ V(this, "ratio");
669
669
  this.map = M, this.mercator = new Q0(), 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;
670
670
  }
671
671
  /**
@@ -738,7 +738,7 @@ class E0 {
738
738
  b !== O && this.map.setLayoutProperty(this.particleLayer, "visibility", O);
739
739
  }
740
740
  }
741
- class X0 {
741
+ class T0 {
742
742
  /**
743
743
  * 创建着色器
744
744
  * @see https://webglfundamentals.org/webgl/lessons/zh_cn/webgl-shaders-and-glsl.html
@@ -928,10 +928,10 @@ class X0 {
928
928
  });
929
929
  }
930
930
  }
931
- class p0 {
931
+ class O0 {
932
932
  }
933
933
  // 顶点渲染
934
- G(p0, "vertexSchema", `
934
+ V(O0, "vertexSchema", `
935
935
  //canvas 坐标系上的坐标 (x, y)
936
936
  attribute vec2 a_position; //像素坐标
937
937
  attribute vec2 a_texCoord; //纹理坐标
@@ -946,7 +946,7 @@ G(p0, "vertexSchema", `
946
946
  gl_Position = vec4(position * vec2(1, -1), 0.0, 1.0);
947
947
  v_texCoord = a_texCoord;
948
948
  }`), // 类如风、流等u v双变量片元渲染
949
- G(p0, "uvFragmentSchema", `
949
+ V(O0, "uvFragmentSchema", `
950
950
  precision mediump float;
951
951
  uniform sampler2D u_image;
952
952
  uniform vec2 u_range_u_v;
@@ -965,7 +965,7 @@ G(p0, "uvFragmentSchema", `
965
965
 
966
966
  gl_FragColor = color;
967
967
  }`), // 类如浪、气压等单变量片元渲染
968
- G(p0, "fragmentSchema", `
968
+ V(O0, "fragmentSchema", `
969
969
  precision mediump float;
970
970
  uniform sampler2D u_image; // 灰度
971
971
  uniform sampler2D u_color; // 色值映射
@@ -978,7 +978,7 @@ G(p0, "fragmentSchema", `
978
978
  }`);
979
979
  class t0 {
980
980
  }
981
- G(t0, "vertexSchema", `
981
+ V(t0, "vertexSchema", `
982
982
  precision mediump float;
983
983
 
984
984
  attribute float a_index; // 索引
@@ -1002,7 +1002,7 @@ G(t0, "vertexSchema", `
1002
1002
  gl_PointSize = 1.0;
1003
1003
  // gl_PointSize = u_point;
1004
1004
  gl_Position = vec4(2.0 * v_particle_pos.x - 1.0, 1.0 - 2.0 * v_particle_pos.y, 0, 1);
1005
- }`), G(t0, "fragmentSchema", `
1005
+ }`), V(t0, "fragmentSchema", `
1006
1006
  precision mediump float;
1007
1007
 
1008
1008
  uniform sampler2D u_factor;
@@ -1024,7 +1024,7 @@ G(t0, "vertexSchema", `
1024
1024
 
1025
1025
  float f = 1.0 - uv.b;
1026
1026
  gl_FragColor = texture2D(u_color_ramp, ramp_pos) * f;
1027
- }`), G(t0, "quadVertSchema", `
1027
+ }`), V(t0, "quadVertSchema", `
1028
1028
  precision mediump float;
1029
1029
 
1030
1030
  attribute vec2 a_pos;
@@ -1034,7 +1034,7 @@ G(t0, "vertexSchema", `
1034
1034
  void main() {
1035
1035
  v_tex_pos = a_pos;
1036
1036
  gl_Position = vec4(1.0 - 2.0 * a_pos, 0, 1);
1037
- }`), G(t0, "screenFragmentSchema", `
1037
+ }`), V(t0, "screenFragmentSchema", `
1038
1038
  precision mediump float;
1039
1039
 
1040
1040
  uniform sampler2D u_screen;
@@ -1046,7 +1046,7 @@ G(t0, "vertexSchema", `
1046
1046
  vec4 color = texture2D(u_screen, 1.0 - v_tex_pos);
1047
1047
  // a hack to guarantee opacity fade out even with a value close to 1.0
1048
1048
  gl_FragColor = vec4(floor(255.0 * color * u_opacity) / 255.0);
1049
- }`), G(t0, "updateFragmentSchema", `
1049
+ }`), V(t0, "updateFragmentSchema", `
1050
1050
  precision mediump float;
1051
1051
 
1052
1052
  uniform sampler2D u_particles;
@@ -1127,12 +1127,12 @@ G(t0, "vertexSchema", `
1127
1127
  }`);
1128
1128
  class E1 {
1129
1129
  constructor(M = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImNseTVudHJzYzAwNWUwbHBsZHkyaDRqczMiLCJyb2xlIjoxLCJuYW1lIjoiZmFrZUBvcm13eC5jb20iLCJwbGF0SWQiOiJnZDBtdDFkIiwiY29tcGFueSI6eyJpZCI6bnVsbCwiY2hpbGRyZW4iOltdfSwiaWF0IjoxNzIzMDI0MDI0LCJleHAiOjM5MzA1NDQwMjR9.RrKcdcMnq-FxBLJQ-i6lx2FscDE46y8EvHIemPW4HTg") {
1130
- G(this, "token");
1131
- G(this, "mapboxCustomer");
1132
- G(this, "i4");
1133
- G(this, "hi");
1134
- G(this, "td");
1135
- G(this, "windy");
1130
+ V(this, "token");
1131
+ V(this, "mapboxCustomer");
1132
+ V(this, "i4");
1133
+ V(this, "hi");
1134
+ V(this, "td");
1135
+ V(this, "windy");
1136
1136
  this.token = M, this.mapboxCustomer = {
1137
1137
  source: this.initialOnlineStyle().sources.composite,
1138
1138
  layers: {
@@ -2753,7 +2753,7 @@ const P1 = {
2753
2753
  texture: void 0,
2754
2754
  rampColor: void 0,
2755
2755
  aPositionBuffer: void 0,
2756
- webgl: new X0(),
2756
+ webgl: new T0(),
2757
2757
  etime: void 0,
2758
2758
  wrapper: void 0,
2759
2759
  animation: void 0,
@@ -2843,7 +2843,7 @@ const P1 = {
2843
2843
  [1, "rgb(91, 136, 161)"]
2844
2844
  ];
2845
2845
  this.rampColor = this.webgl.setup(this.context, z);
2846
- const { program: M, aPositionBuffer: b } = this.webgl.bind(this.context, p0.vertexSchema, p0.uvFragmentSchema);
2846
+ const { program: M, aPositionBuffer: b } = this.webgl.bind(this.context, O0.vertexSchema, O0.uvFragmentSchema);
2847
2847
  this.program = M, this.aPositionBuffer = b;
2848
2848
  }
2849
2849
  this.handleParticleSetup();
@@ -2897,7 +2897,7 @@ function D1(z, M, b, O, p, o) {
2897
2897
  return (e = b.factor) != null && e.active ? (l(), f("div", k1, [
2898
2898
  c("div", {
2899
2899
  class: "legend-bars flex-center",
2900
- style: z0([{ position: "absolute" }, { right: p.right + "px", bottom: b.bottom }])
2900
+ style: p0([{ position: "absolute" }, { right: p.right + "px", bottom: b.bottom }])
2901
2901
  }, M[0] || (M[0] = [
2902
2902
  c("span", null, "kts", -1),
2903
2903
  c("span", null, "0", -1),
@@ -2908,7 +2908,7 @@ function D1(z, M, b, O, p, o) {
2908
2908
  c("span", null, "40", -1),
2909
2909
  c("span", null, "60", -1)
2910
2910
  ]), 4)
2911
- ])) : D("", !0);
2911
+ ])) : U("", !0);
2912
2912
  }
2913
2913
  const I1 = /* @__PURE__ */ I(P1, [["render", D1], ["__scopeId", "data-v-24e5434b"]]);
2914
2914
  const j1 = {
@@ -3067,7 +3067,7 @@ const j1 = {
3067
3067
  }, F1 = { key: 0 };
3068
3068
  function U1(z, M, b, O, p, o) {
3069
3069
  var e;
3070
- return (e = b.current) != null && e.active ? (l(), f("div", F1)) : D("", !0);
3070
+ return (e = b.current) != null && e.active ? (l(), f("div", F1)) : U("", !0);
3071
3071
  }
3072
3072
  const H1 = /* @__PURE__ */ I(j1, [["render", U1]]);
3073
3073
  const G1 = {
@@ -3094,7 +3094,7 @@ const G1 = {
3094
3094
  texture: void 0,
3095
3095
  rampColor: void 0,
3096
3096
  aPositionBuffer: void 0,
3097
- webgl: new X0(),
3097
+ webgl: new T0(),
3098
3098
  etime: void 0,
3099
3099
  wrapper: void 0,
3100
3100
  animation: void 0,
@@ -3175,7 +3175,7 @@ const G1 = {
3175
3175
  [1, "rgb(195,194,194)"]
3176
3176
  ];
3177
3177
  this.rampColor = this.webgl.setup(this.context, z);
3178
- const { program: M, aPositionBuffer: b } = this.webgl.bind(this.context, p0.vertexSchema, p0.uvFragmentSchema);
3178
+ const { program: M, aPositionBuffer: b } = this.webgl.bind(this.context, O0.vertexSchema, O0.uvFragmentSchema);
3179
3179
  this.program = M, this.aPositionBuffer = b;
3180
3180
  }
3181
3181
  this.handleParticleSetup();
@@ -3233,7 +3233,7 @@ function K1(z, M, b, O, p, o) {
3233
3233
  return (e = b.factor) != null && e.active ? (l(), f("div", V1, [
3234
3234
  c("div", {
3235
3235
  class: "legend-bars flex-center",
3236
- style: z0([{ position: "absolute" }, { right: p.right + "px", bottom: b.bottom }])
3236
+ style: p0([{ position: "absolute" }, { right: p.right + "px", bottom: b.bottom }])
3237
3237
  }, M[0] || (M[0] = [
3238
3238
  c("span", null, "kts", -1),
3239
3239
  c("span", null, "0", -1),
@@ -3243,7 +3243,7 @@ function K1(z, M, b, O, p, o) {
3243
3243
  c("span", null, "2", -1),
3244
3244
  c("span", null, "3.2", -1)
3245
3245
  ]), 4)
3246
- ])) : D("", !0);
3246
+ ])) : U("", !0);
3247
3247
  }
3248
3248
  const J1 = /* @__PURE__ */ I(G1, [["render", K1], ["__scopeId", "data-v-6d4fd206"]]), Q1 = {
3249
3249
  name: "IdmSigWave",
@@ -3774,7 +3774,7 @@ const A2 = {
3774
3774
  computeTime() {
3775
3775
  return function(z) {
3776
3776
  if (z) {
3777
- const M = A0(z).utc().utcOffset(this.timeZone), b = this.timeZone < 0 ? this.timeZone : "+" + this.timeZone;
3777
+ const M = H(z).utc().utcOffset(this.timeZone), b = this.timeZone < 0 ? this.timeZone : "+" + this.timeZone;
3778
3778
  return `${M.format("MMM-DD,HHmm")}[ UTC ${b} ] ( ${M == null ? void 0 : M.fromNow()} )`;
3779
3779
  }
3780
3780
  return "-";
@@ -3811,7 +3811,7 @@ const A2 = {
3811
3811
  methods: {
3812
3812
  handleRefresh() {
3813
3813
  var O, p;
3814
- const z = ((p = (O = this.tropicals) == null ? void 0 : O.data) == null ? void 0 : p.features) || [], M = A0().utc().hour(), b = [];
3814
+ const z = ((p = (O = this.tropicals) == null ? void 0 : O.data) == null ? void 0 : p.features) || [], M = H().utc().hour(), b = [];
3815
3815
  z.forEach((o) => {
3816
3816
  var e, t, q;
3817
3817
  (e = o.properties) != null && e.name && !b.includes((t = o.properties) == null ? void 0 : t.name) && b.push((q = o.properties) == null ? void 0 : q.name);
@@ -3830,9 +3830,9 @@ const A2 = {
3830
3830
  ((L = a.geometry) == null ? void 0 : L.type) === "Point" && ((n = a.properties) == null ? void 0 : n.type) === "history" && (e = i, t = t === void 0 ? i : t), ((h = a.geometry) == null ? void 0 : h.type) === "Point" && ((u = a.properties) == null ? void 0 : u.type) === "forecast" && t === void 0 && (t = i), ((d = a.geometry) == null ? void 0 : d.type) === "LineString" && ((m = a.properties) == null || m.type);
3831
3831
  }), q.map((a, i) => {
3832
3832
  var L, n, h, u, d, m, R;
3833
- if (((L = a.geometry) == null ? void 0 : L.type) === "LineString" && ((n = a.properties) == null || n.type), ((h = a.geometry) == null ? void 0 : h.type) === "Point" && ((u = a.properties) == null ? void 0 : u.type) === "forecast" && (a.properties.name = o, a.properties.format = A0(a.properties.date).utcOffset(this.timeZone).format(`MMM-DD,HHmm [(utc ${this.computeTimezone})]`)), ((d = a.geometry) == null ? void 0 : d.type) === "Point" && ((m = a.properties) == null ? void 0 : m.type) === "history") {
3834
- a.properties.format = A0(a.properties.date).utcOffset(this.timeZone).format(`MMM-DD,HHmm [(utc ${this.computeTimezone})]`);
3835
- const g = A0((R = a.properties) == null ? void 0 : R.date).utc().format("HHmm") === A0().utc().hour(Math.floor(M / 6) * 6).minute("00").format("HHmm");
3833
+ if (((L = a.geometry) == null ? void 0 : L.type) === "LineString" && ((n = a.properties) == null || n.type), ((h = a.geometry) == null ? void 0 : h.type) === "Point" && ((u = a.properties) == null ? void 0 : u.type) === "forecast" && (a.properties.name = o, a.properties.format = H(a.properties.date).utcOffset(this.timeZone).format(`MMM-DD,HHmm [(utc ${this.computeTimezone})]`)), ((d = a.geometry) == null ? void 0 : d.type) === "Point" && ((m = a.properties) == null ? void 0 : m.type) === "history") {
3834
+ a.properties.format = H(a.properties.date).utcOffset(this.timeZone).format(`MMM-DD,HHmm [(utc ${this.computeTimezone})]`);
3835
+ const g = H((R = a.properties) == null ? void 0 : R.date).utc().format("HHmm") === H().utc().hour(Math.floor(M / 6) * 6).minute("00").format("HHmm");
3836
3836
  a.properties.showHistoryLabel = g || i === e, a.properties.showNameLabel = i === e, a.properties.name = o;
3837
3837
  }
3838
3838
  return a;
@@ -4105,14 +4105,14 @@ const A2 = {
4105
4105
  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), (z = this.interpolateMarkers) == null || z.forEach((M) => M == null ? void 0 : M.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));
4106
4106
  },
4107
4107
  handleDateChange() {
4108
- var z, M, b, O, p, o, e, t, q, r, a, i, L, n, h, u, d, m, R, g, _, y, F, B, w, Y, M0, q0, s0, l0, i0, W0, b0, f0, u0, n0;
4109
- if ((z = this.interpolateMarkers) == null || z.forEach((a0) => a0 == null ? void 0 : a0.remove()), this.circleSourceData.features = [], (M = this.interpolateData) != null && M.length && this.tropicals.active) {
4110
- const a0 = A0(this.date).utc().set({ minute: 0, second: 0, millisecond: 0 }), d0 = this.interpolateData.filter((k) => k.properties.date === a0.format() && !k.properties.disabled), U = this.handleComputePolygons(d0), h0 = T.featureCollection([...d0]);
4111
- U.forEach((k) => {
4112
- h0.features.push(k);
4113
- }), (b = this.map) != null && b.getSource(this.interpolateSource) ? (O = this.map) == null || O.getSource(this.interpolateSource).setData(h0) : ((p = this.map) == null || p.addSource(this.interpolateSource, {
4108
+ var z, M, b, O, p, o, e, t, q, r, a, i, L, n, h, u, d, m, R, g, _, y, F, B, w, Z, Y, a0, s0, l0, q0, W0, z0, f0, u0, d0;
4109
+ if ((z = this.interpolateMarkers) == null || z.forEach((i0) => i0 == null ? void 0 : i0.remove()), this.circleSourceData.features = [], (M = this.interpolateData) != null && M.length && this.tropicals.active) {
4110
+ const i0 = H(this.date).utc().set({ minute: 0, second: 0, millisecond: 0 }), r0 = this.interpolateData.filter((D) => D.properties.date === i0.format() && !D.properties.disabled), L0 = this.handleComputePolygons(r0), k = T.featureCollection([...r0]);
4111
+ L0.forEach((D) => {
4112
+ k.features.push(D);
4113
+ }), (b = this.map) != null && b.getSource(this.interpolateSource) ? (O = this.map) == null || O.getSource(this.interpolateSource).setData(k) : ((p = this.map) == null || p.addSource(this.interpolateSource, {
4114
4114
  type: "geojson",
4115
- data: h0
4115
+ data: k
4116
4116
  }), (o = this.map) == null || o.addLayer({
4117
4117
  id: this.interpolateLineLayer,
4118
4118
  type: "line",
@@ -4124,17 +4124,17 @@ const A2 = {
4124
4124
  "line-width": 1
4125
4125
  }
4126
4126
  })), this.interpolateMarkers = [];
4127
- for (const k of d0)
4128
- if (!k.properties.disabled) {
4129
- let O0 = "#f44336";
4130
- ((t = (e = k.properties) == null ? void 0 : e.wind) == null ? void 0 : t.spd) < 17.2 || !((r = (q = k.properties) == null ? void 0 : q.wind) != null && r.spd) ? O0 = "#03f869" : ((i = (a = k.properties) == null ? void 0 : a.wind) == null ? void 0 : i.spd) >= 17.2 && ((n = (L = k.properties) == null ? void 0 : L.wind) == null ? void 0 : n.spd) < 24.5 ? O0 = "#f2f202" : ((u = (h = k.properties) == null ? void 0 : h.wind) == null ? void 0 : u.spd) >= 24.5 && ((m = (d = k.properties) == null ? void 0 : d.wind) == null ? void 0 : m.spd) < 32.7 ? O0 = "#ff9100" : ((g = (R = k.properties) == null ? void 0 : R.wind) == null ? void 0 : g.spd) >= 32.7 && ((y = (_ = k.properties) == null ? void 0 : _.wind) == null ? void 0 : y.spd) < 41.5 ? O0 = "#f44336" : ((B = (F = k.properties) == null ? void 0 : F.wind) == null ? void 0 : B.spd) >= 41.5 && ((Y = (w = k.properties) == null ? void 0 : w.wind) == null ? void 0 : Y.spd) < 51 ? O0 = "#f903d0" : ((q0 = (M0 = k.properties) == null ? void 0 : M0.wind) == null ? void 0 : q0.spd) >= 51 ? O0 = "#8702f9" : O0 = "#f44336";
4131
- const r0 = `<svg t="1719918955501"
4127
+ for (const D of r0)
4128
+ if (!D.properties.disabled) {
4129
+ let o0 = "#f44336";
4130
+ ((t = (e = D.properties) == null ? void 0 : e.wind) == null ? void 0 : t.spd) < 17.2 || !((r = (q = D.properties) == null ? void 0 : q.wind) != null && r.spd) ? o0 = "#03f869" : ((i = (a = D.properties) == null ? void 0 : a.wind) == null ? void 0 : i.spd) >= 17.2 && ((n = (L = D.properties) == null ? void 0 : L.wind) == null ? void 0 : n.spd) < 24.5 ? o0 = "#f2f202" : ((u = (h = D.properties) == null ? void 0 : h.wind) == null ? void 0 : u.spd) >= 24.5 && ((m = (d = D.properties) == null ? void 0 : d.wind) == null ? void 0 : m.spd) < 32.7 ? o0 = "#ff9100" : ((g = (R = D.properties) == null ? void 0 : R.wind) == null ? void 0 : g.spd) >= 32.7 && ((y = (_ = D.properties) == null ? void 0 : _.wind) == null ? void 0 : y.spd) < 41.5 ? o0 = "#f44336" : ((B = (F = D.properties) == null ? void 0 : F.wind) == null ? void 0 : B.spd) >= 41.5 && ((Z = (w = D.properties) == null ? void 0 : w.wind) == null ? void 0 : Z.spd) < 51 ? o0 = "#f903d0" : ((a0 = (Y = D.properties) == null ? void 0 : Y.wind) == null ? void 0 : a0.spd) >= 51 ? o0 = "#8702f9" : o0 = "#f44336";
4131
+ const n0 = `<svg t="1719918955501"
4132
4132
  class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" p-id="18382"
4133
4133
  xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200">
4134
4134
  <path
4135
4135
  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"
4136
- fill="${O0}" p-id="18383"></path>
4137
- <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="${O0}"
4136
+ fill="${o0}" p-id="18383"></path>
4137
+ <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="${o0}"
4138
4138
  p-id="18384"></path>
4139
4139
  <path
4140
4140
  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"
@@ -4143,22 +4143,22 @@ const A2 = {
4143
4143
  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"
4144
4144
  fill="#ffffff" p-id="18386"></path>
4145
4145
  </svg>`, E = document.createElement("div");
4146
- E.className = "hurricane-hourly-marker", E.innerHTML = `<div class="${k.geometry.coordinates[1] >= 0 ? "center north" : "center south"}">${r0}</div>`;
4147
- const o0 = new R0.Marker(E).setLngLat(k.geometry.coordinates).addTo(this.map);
4148
- if (this.interpolateMarkers.push(o0), (s0 = k.properties) != null && s0.showCircle) {
4149
- const m0 = { radius: 100, coordinates: k.geometry.coordinates }, N0 = { radius: 200, coordinates: k.geometry.coordinates }, g0 = { radius: 500, coordinates: k.geometry.coordinates };
4146
+ E.className = "hurricane-hourly-marker", E.innerHTML = `<div class="${D.geometry.coordinates[1] >= 0 ? "center north" : "center south"}">${n0}</div>`;
4147
+ const c0 = new m0.Marker(E).setLngLat(D.geometry.coordinates).addTo(this.map);
4148
+ if (this.interpolateMarkers.push(c0), (s0 = D.properties) != null && s0.showCircle) {
4149
+ const N0 = { radius: 100, coordinates: D.geometry.coordinates }, B0 = { radius: 200, coordinates: D.geometry.coordinates }, g0 = { radius: 500, coordinates: D.geometry.coordinates };
4150
4150
  (l0 = this.circleSourceData) == null || l0.features.push(
4151
- T.circle(m0.coordinates, m0.radius, { steps: 100, units: "kilometers", properties: { type: "tropicalCircle" } })
4152
- ), (i0 = this.circleSourceData) == null || i0.features.push(
4153
4151
  T.circle(N0.coordinates, N0.radius, { steps: 100, units: "kilometers", properties: { type: "tropicalCircle" } })
4152
+ ), (q0 = this.circleSourceData) == null || q0.features.push(
4153
+ T.circle(B0.coordinates, B0.radius, { steps: 100, units: "kilometers", properties: { type: "tropicalCircle" } })
4154
4154
  ), (W0 = this.circleSourceData) == null || W0.features.push(
4155
4155
  T.circle(g0.coordinates, g0.radius, { steps: 100, units: "kilometers", properties: { type: "tropicalCircle" } })
4156
4156
  );
4157
4157
  }
4158
- (f0 = (b0 = this.map) == null ? void 0 : b0.getSource(this.circleSource)) == null || f0.setData(this.circleSourceData);
4158
+ (f0 = (z0 = this.map) == null ? void 0 : z0.getSource(this.circleSource)) == null || f0.setData(this.circleSourceData);
4159
4159
  }
4160
4160
  } else
4161
- (u0 = this.map) != null && u0.getSource(this.interpolateSource) && ((n0 = this.map) == null || n0.getSource(this.interpolateSource).setData(this.empty));
4161
+ (u0 = this.map) != null && u0.getSource(this.interpolateSource) && ((d0 = this.map) == null || d0.getSource(this.interpolateSource).setData(this.empty));
4162
4162
  },
4163
4163
  handleClick(z) {
4164
4164
  var o, e, t, q, r, a, i, L;
@@ -4185,7 +4185,7 @@ const A2 = {
4185
4185
  showCircle: (L = (i = b[0]) == null ? void 0 : i.properties) == null ? void 0 : L.showCircle
4186
4186
  }, this.showTropicals = !0;
4187
4187
  const p = document.getElementById("active-tropical");
4188
- this.activeTropicalsMarker ? this.activeTropicalsMarker.setLngLat([z.lngLat.lng, z.lngLat.lat]) : this.activeTropicalsMarker = new R0.Marker(p).setLngLat([z.lngLat.lng, z.lngLat.lat]).setOffset([220, 0]).addTo(this.map);
4188
+ this.activeTropicalsMarker ? this.activeTropicalsMarker.setLngLat([z.lngLat.lng, z.lngLat.lat]) : this.activeTropicalsMarker = new m0.Marker(p).setLngLat([z.lngLat.lng, z.lngLat.lat]).setOffset([220, 0]).addTo(this.map);
4189
4189
  },
4190
4190
  handleForecastToggle(z) {
4191
4191
  var O, p, o, e, t, q;
@@ -4288,15 +4288,15 @@ const A2 = {
4288
4288
  }, L2 = { class: "forecast-models" }, R2 = ["onClick"], h2 = { class: "more" };
4289
4289
  function m2(z, M, b, O, p, o) {
4290
4290
  var e, t, q, r, a, i, L, n, h, u, d, m, R, g, _;
4291
- return T0((l(), f("div", t2, [
4291
+ return X0((l(), f("div", t2, [
4292
4292
  c("div", a2, [
4293
4293
  c("div", {
4294
4294
  class: "iconfont close-btn",
4295
4295
  onClick: M[0] || (M[0] = (y) => p.showTropicals = !1)
4296
4296
  }, ""),
4297
4297
  c("div", q2, [
4298
- (t = (e = p.activeTropicals) == null ? void 0 : e.history) != null && t.level ? (l(), f("span", i2, C((r = (q = p.activeTropicals) == null ? void 0 : q.history) == null ? void 0 : r.level) + " , ", 1)) : D("", !0),
4299
- Z(C((a = p.activeTropicals) == null ? void 0 : a.name), 1)
4298
+ (t = (e = p.activeTropicals) == null ? void 0 : e.history) != null && t.level ? (l(), f("span", i2, C((r = (q = p.activeTropicals) == null ? void 0 : q.history) == null ? void 0 : r.level) + " , ", 1)) : U("", !0),
4299
+ b0(C((a = p.activeTropicals) == null ? void 0 : a.name), 1)
4300
4300
  ]),
4301
4301
  c("div", r2, " Last update: " + C(o.computeTime(((L = (i = p.activeTropicals) == null ? void 0 : i.history) == null ? void 0 : L.updated) || ((u = (h = (n = p.activeTropicals) == null ? void 0 : n.forecasts) == null ? void 0 : h.filter((y) => !y.disabled)[0]) == null ? void 0 : u.date))), 1)
4302
4302
  ]),
@@ -4316,19 +4316,19 @@ function m2(z, M, b, O, p, o) {
4316
4316
  c("div", u2, [
4317
4317
  M[4] || (M[4] = c("label", { style: { width: "max-content" } }, "Forecast Models : ", -1)),
4318
4318
  c("div", L2, [
4319
- (l(!0), f(V, null, Q((_ = p.activeTropicals) == null ? void 0 : _.forecasts, (y, F) => {
4320
- var B, w, Y, M0;
4319
+ (l(!0), f(K, null, $((_ = p.activeTropicals) == null ? void 0 : _.forecasts, (y, F) => {
4320
+ var B, w, Z, Y;
4321
4321
  return l(), f("div", {
4322
4322
  key: F,
4323
- class: K([
4323
+ class: J([
4324
4324
  "model",
4325
4325
  y.disabled ? "" : "active",
4326
- F > 0 && F < ((w = (B = p.activeTropicals) == null ? void 0 : B.forecasts) == null ? void 0 : w.length) - 1 && ((M0 = (Y = p.activeTropicals) == null ? void 0 : Y.forecasts) == null ? void 0 : M0.length) > 2 ? "center-child" : ""
4326
+ F > 0 && F < ((w = (B = p.activeTropicals) == null ? void 0 : B.forecasts) == null ? void 0 : w.length) - 1 && ((Y = (Z = p.activeTropicals) == null ? void 0 : Z.forecasts) == null ? void 0 : Y.length) > 2 ? "center-child" : ""
4327
4327
  ]),
4328
- onClick: (q0) => o.handleForecastToggle(y)
4328
+ onClick: (a0) => o.handleForecastToggle(y)
4329
4329
  }, [
4330
4330
  c("span", {
4331
- class: K(y.model)
4331
+ class: J(y.model)
4332
4332
  }, C(y.model), 3)
4333
4333
  ], 10, R2);
4334
4334
  }), 128))
@@ -4345,7 +4345,7 @@ function m2(z, M, b, O, p, o) {
4345
4345
  ])
4346
4346
  ])
4347
4347
  ], 512)), [
4348
- [w0, p.showTropicals && !z.$attrs.hideTropicalsLegend]
4348
+ [v0, p.showTropicals && !z.$attrs.hideTropicalsLegend]
4349
4349
  ]);
4350
4350
  }
4351
4351
  const j0 = /* @__PURE__ */ I(A2, [["render", m2], ["__scopeId", "data-v-726fd7f6"]]);
@@ -4377,7 +4377,7 @@ const N2 = {
4377
4377
  texture: void 0,
4378
4378
  rampColor: void 0,
4379
4379
  aPositionBuffer: void 0,
4380
- webgl: new X0(),
4380
+ webgl: new T0(),
4381
4381
  etime: void 0,
4382
4382
  right: 10
4383
4383
  };
@@ -4437,7 +4437,7 @@ const N2 = {
4437
4437
  [1, "rgba(197,5,58,0.8)"]
4438
4438
  ];
4439
4439
  this.rampColor = this.webgl.setup(this.context, z);
4440
- const { program: M, aPositionBuffer: b } = this.webgl.bind(this.context, p0.vertexSchema, p0.fragmentSchema);
4440
+ const { program: M, aPositionBuffer: b } = this.webgl.bind(this.context, O0.vertexSchema, O0.fragmentSchema);
4441
4441
  this.program = M, this.aPositionBuffer = b;
4442
4442
  }
4443
4443
  },
@@ -4456,7 +4456,7 @@ function y2(z, M, b, O, p, o) {
4456
4456
  return (e = b.factor) != null && e.active ? (l(), f("div", B2, [
4457
4457
  c("div", {
4458
4458
  class: "legend-bars flex-center",
4459
- style: z0([{ position: "absolute" }, { right: p.right + "px", bottom: b.bottom }])
4459
+ style: p0([{ position: "absolute" }, { right: p.right + "px", bottom: b.bottom }])
4460
4460
  }, M[0] || (M[0] = [
4461
4461
  c("span", null, "mm", -1),
4462
4462
  c("span", null, "1.5", -1),
@@ -4467,7 +4467,7 @@ function y2(z, M, b, O, p, o) {
4467
4467
  c("span", null, "20", -1),
4468
4468
  c("span", null, "30", -1)
4469
4469
  ]), 4)
4470
- ])) : D("", !0);
4470
+ ])) : U("", !0);
4471
4471
  }
4472
4472
  const g2 = /* @__PURE__ */ I(N2, [["render", y2], ["__scopeId", "data-v-9708a7a3"]]);
4473
4473
  const X2 = {
@@ -4498,7 +4498,7 @@ const X2 = {
4498
4498
  texture: void 0,
4499
4499
  rampColor: void 0,
4500
4500
  aPositionBuffer: void 0,
4501
- webgl: new X0(),
4501
+ webgl: new T0(),
4502
4502
  etime: void 0
4503
4503
  };
4504
4504
  },
@@ -4551,7 +4551,7 @@ const X2 = {
4551
4551
  [1, "rgba(144,144,144,0)"]
4552
4552
  ];
4553
4553
  this.rampColor = this.webgl.setup(this.context, z);
4554
- const { program: M, aPositionBuffer: b } = this.webgl.bind(this.context, p0.vertexSchema, p0.fragmentSchema);
4554
+ const { program: M, aPositionBuffer: b } = this.webgl.bind(this.context, O0.vertexSchema, O0.fragmentSchema);
4555
4555
  this.program = M, this.aPositionBuffer = b;
4556
4556
  }
4557
4557
  },
@@ -4570,7 +4570,7 @@ function T2(z, M, b, O, p, o) {
4570
4570
  return (e = b.factor) != null && e.active ? (l(), f("div", v2, [
4571
4571
  c("div", {
4572
4572
  class: "legend-bars flex-center",
4573
- style: z0([{ position: "absolute" }, { right: z.right + "px", bottom: b.bottom }])
4573
+ style: p0([{ position: "absolute" }, { right: z.right + "px", bottom: b.bottom }])
4574
4574
  }, M[0] || (M[0] = [
4575
4575
  c("span", null, "nm", -1),
4576
4576
  c("span", null, "0", -1),
@@ -4579,7 +4579,7 @@ function T2(z, M, b, O, p, o) {
4579
4579
  c("span", null, "3", -1),
4580
4580
  c("span", null, "9", -1)
4581
4581
  ]), 4)
4582
- ])) : D("", !0);
4582
+ ])) : U("", !0);
4583
4583
  }
4584
4584
  const w2 = /* @__PURE__ */ I(X2, [["render", T2], ["__scopeId", "data-v-f7b2fb08"]]);
4585
4585
  const C2 = {
@@ -4610,7 +4610,7 @@ const C2 = {
4610
4610
  texture: void 0,
4611
4611
  rampColor: void 0,
4612
4612
  aPositionBuffer: void 0,
4613
- webgl: new X0(),
4613
+ webgl: new T0(),
4614
4614
  etime: void 0,
4615
4615
  right: 10
4616
4616
  };
@@ -4671,7 +4671,7 @@ const C2 = {
4671
4671
  //
4672
4672
  ];
4673
4673
  this.rampColor = this.webgl.setup(this.context, z);
4674
- const { program: M, aPositionBuffer: b } = this.webgl.bind(this.context, p0.vertexSchema, p0.fragmentSchema);
4674
+ const { program: M, aPositionBuffer: b } = this.webgl.bind(this.context, O0.vertexSchema, O0.fragmentSchema);
4675
4675
  this.program = M, this.aPositionBuffer = b;
4676
4676
  }
4677
4677
  },
@@ -4690,7 +4690,7 @@ function x2(z, M, b, O, p, o) {
4690
4690
  return (e = b.factor) != null && e.active ? (l(), f("div", _2, [
4691
4691
  c("div", {
4692
4692
  class: "legend-bars flex-center",
4693
- style: z0([{ position: "absolute" }, { right: p.right + "px", bottom: b.bottom }])
4693
+ style: p0([{ position: "absolute" }, { right: p.right + "px", bottom: b.bottom }])
4694
4694
  }, M[0] || (M[0] = [
4695
4695
  c("span", null, "°C", -1),
4696
4696
  c("span", null, "0", -1),
@@ -4699,7 +4699,7 @@ function x2(z, M, b, O, p, o) {
4699
4699
  c("span", null, "30", -1),
4700
4700
  c("span", null, "40", -1)
4701
4701
  ]), 4)
4702
- ])) : D("", !0);
4702
+ ])) : U("", !0);
4703
4703
  }
4704
4704
  const S2 = /* @__PURE__ */ I(C2, [["render", x2], ["__scopeId", "data-v-7521f582"]]);
4705
4705
  const E2 = {
@@ -4730,7 +4730,7 @@ const E2 = {
4730
4730
  texture: void 0,
4731
4731
  rampColor: void 0,
4732
4732
  aPositionBuffer: void 0,
4733
- webgl: new X0(),
4733
+ webgl: new T0(),
4734
4734
  etime: void 0,
4735
4735
  right: 10
4736
4736
  };
@@ -4794,7 +4794,7 @@ const E2 = {
4794
4794
  [1, "rgb(138, 43, 10)"]
4795
4795
  ];
4796
4796
  this.rampColor = this.webgl.setup(this.context, z);
4797
- const { program: M, aPositionBuffer: b } = this.webgl.bind(this.context, p0.vertexSchema, p0.fragmentSchema);
4797
+ const { program: M, aPositionBuffer: b } = this.webgl.bind(this.context, O0.vertexSchema, O0.fragmentSchema);
4798
4798
  this.program = M, this.aPositionBuffer = b;
4799
4799
  }
4800
4800
  },
@@ -4813,7 +4813,7 @@ function k2(z, M, b, O, p, o) {
4813
4813
  return (e = b.factor) != null && e.active ? (l(), f("div", P2, [
4814
4814
  c("div", {
4815
4815
  class: "legend-bars flex-center",
4816
- style: z0([{ position: "absolute" }, { right: p.right + "px", bottom: b.bottom }])
4816
+ style: p0([{ position: "absolute" }, { right: p.right + "px", bottom: b.bottom }])
4817
4817
  }, M[0] || (M[0] = [
4818
4818
  c("span", null, "°C", -1),
4819
4819
  c("span", null, "-20", -1),
@@ -4824,7 +4824,7 @@ function k2(z, M, b, O, p, o) {
4824
4824
  c("span", null, "30", -1),
4825
4825
  c("span", null, "40", -1)
4826
4826
  ]), 4)
4827
- ])) : D("", !0);
4827
+ ])) : U("", !0);
4828
4828
  }
4829
4829
  const D2 = /* @__PURE__ */ I(E2, [["render", k2], ["__scopeId", "data-v-25daaa82"]]);
4830
4830
  const I2 = {
@@ -4855,7 +4855,7 @@ const I2 = {
4855
4855
  texture: void 0,
4856
4856
  rampColor: void 0,
4857
4857
  aPositionBuffer: void 0,
4858
- webgl: new X0(),
4858
+ webgl: new T0(),
4859
4859
  etime: void 0,
4860
4860
  right: 10
4861
4861
  };
@@ -4910,7 +4910,7 @@ const I2 = {
4910
4910
  // 2m
4911
4911
  ];
4912
4912
  this.rampColor = this.webgl.setup(this.context, z);
4913
- const { program: M, aPositionBuffer: b } = this.webgl.bind(this.context, p0.vertexSchema, p0.fragmentSchema);
4913
+ const { program: M, aPositionBuffer: b } = this.webgl.bind(this.context, O0.vertexSchema, O0.fragmentSchema);
4914
4914
  this.program = M, this.aPositionBuffer = b;
4915
4915
  }
4916
4916
  },
@@ -4929,7 +4929,7 @@ function F2(z, M, b, O, p, o) {
4929
4929
  return (e = b.factor) != null && e.active ? (l(), f("div", j2, [
4930
4930
  c("div", {
4931
4931
  class: "legend-bars flex-center",
4932
- style: z0([{ position: "absolute" }, { right: p.right + "px", bottom: b.bottom }])
4932
+ style: p0([{ position: "absolute" }, { right: p.right + "px", bottom: b.bottom }])
4933
4933
  }, M[0] || (M[0] = [
4934
4934
  c("span", null, "m", -1),
4935
4935
  c("span", null, "0", -1),
@@ -4938,7 +4938,7 @@ function F2(z, M, b, O, p, o) {
4938
4938
  c("span", null, "1.5", -1),
4939
4939
  c("span", null, "2", -1)
4940
4940
  ]), 4)
4941
- ])) : D("", !0);
4941
+ ])) : U("", !0);
4942
4942
  }
4943
4943
  const U2 = /* @__PURE__ */ I(I2, [["render", F2], ["__scopeId", "data-v-5bb73794"]]);
4944
4944
  /*! Element Plus Icons Vue v2.3.1 */
@@ -4968,23 +4968,23 @@ var F0 = { exports: {} }, U0 = { exports: {} };
4968
4968
  //! license : MIT
4969
4969
  //! github.com/moment/moment-timezone
4970
4970
  (function(M, b) {
4971
- z.exports ? z.exports = b(A0) : b(M.moment);
4971
+ z.exports ? z.exports = b(H) : b(M.moment);
4972
4972
  })(V2, function(M) {
4973
4973
  M.version === void 0 && M.default && (M = M.default);
4974
4974
  var b = "0.5.47", O = {}, p = {}, o = {}, e = {}, t = {}, q;
4975
- (!M || typeof M.version != "string") && r0("Moment Timezone requires Moment.js. See https://momentjs.com/timezone/docs/#/use-it/browser/");
4975
+ (!M || typeof M.version != "string") && n0("Moment Timezone requires Moment.js. See https://momentjs.com/timezone/docs/#/use-it/browser/");
4976
4976
  var r = M.version.split("."), a = +r[0], i = +r[1];
4977
- (a < 2 || a === 2 && i < 6) && r0("Moment Timezone requires Moment.js >= 2.6.0. You are using Moment.js " + M.version + ". See momentjs.com");
4977
+ (a < 2 || a === 2 && i < 6) && n0("Moment Timezone requires Moment.js >= 2.6.0. You are using Moment.js " + M.version + ". See momentjs.com");
4978
4978
  function L(A) {
4979
4979
  return A > 96 ? A - 87 : A > 64 ? A - 29 : A - 48;
4980
4980
  }
4981
4981
  function n(A) {
4982
- var W = 0, s = A.split("."), N = s[0], X = s[1] || "", S = 1, J, P = 0, H = 1;
4983
- for (A.charCodeAt(0) === 45 && (W = 1, H = -1), W; W < N.length; W++)
4984
- J = L(N.charCodeAt(W)), P = 60 * P + J;
4982
+ var W = 0, s = A.split("."), N = s[0], X = s[1] || "", S = 1, Q, P = 0, G = 1;
4983
+ for (A.charCodeAt(0) === 45 && (W = 1, G = -1), W; W < N.length; W++)
4984
+ Q = L(N.charCodeAt(W)), P = 60 * P + Q;
4985
4985
  for (W = 0; W < X.length; W++)
4986
- S = S / 60, J = L(X.charCodeAt(W)), P += J * S;
4987
- return P * H;
4986
+ S = S / 60, Q = L(X.charCodeAt(W)), P += Q * S;
4987
+ return P * G;
4988
4988
  }
4989
4989
  function h(A) {
4990
4990
  for (var W = 0; W < A.length; W++)
@@ -5042,17 +5042,17 @@ var F0 = { exports: {} }, U0 = { exports: {} };
5042
5042
  });
5043
5043
  },
5044
5044
  parse: function(A) {
5045
- var W = +A, s = this.offsets, N = this.untils, X = N.length - 1, S, J, P, H;
5046
- for (H = 0; H < X; H++)
5047
- if (S = s[H], J = s[H + 1], P = s[H && H - 1], S < J && E.moveAmbiguousForward ? S = J : S > P && E.moveInvalidForward && (S = P), W < N[H] - S * 6e4)
5048
- return s[H];
5045
+ var W = +A, s = this.offsets, N = this.untils, X = N.length - 1, S, Q, P, G;
5046
+ for (G = 0; G < X; G++)
5047
+ if (S = s[G], Q = s[G + 1], P = s[G && G - 1], S < Q && E.moveAmbiguousForward ? S = Q : S > P && E.moveInvalidForward && (S = P), W < N[G] - S * 6e4)
5048
+ return s[G];
5049
5049
  return s[X];
5050
5050
  },
5051
5051
  abbr: function(A) {
5052
5052
  return this.abbrs[this._index(A)];
5053
5053
  },
5054
5054
  offset: function(A) {
5055
- return r0("zone.offset has been deprecated in favor of zone.utcOffset"), this.offsets[this._index(A)];
5055
+ return n0("zone.offset has been deprecated in favor of zone.utcOffset"), this.offsets[this._index(A)];
5056
5056
  },
5057
5057
  utcOffset: function(A) {
5058
5058
  return this.offsets[this._index(A)];
@@ -5077,28 +5077,28 @@ var F0 = { exports: {} }, U0 = { exports: {} };
5077
5077
  return A;
5078
5078
  }
5079
5079
  function w() {
5080
- var A = (/* @__PURE__ */ new Date()).getFullYear() - 2, W = new y(new Date(A, 0, 1)), s = W.offset, N = [W], X, S, J, P;
5080
+ var A = (/* @__PURE__ */ new Date()).getFullYear() - 2, W = new y(new Date(A, 0, 1)), s = W.offset, N = [W], X, S, Q, P;
5081
5081
  for (P = 1; P < 48; P++)
5082
- J = new Date(A, P, 1).getTimezoneOffset(), J !== s && (S = new y(new Date(A, P, 1)), X = B(W, S), N.push(X), N.push(new y(new Date(X.at + 6e4))), W = S, s = J);
5082
+ Q = new Date(A, P, 1).getTimezoneOffset(), Q !== s && (S = new y(new Date(A, P, 1)), X = B(W, S), N.push(X), N.push(new y(new Date(X.at + 6e4))), W = S, s = Q);
5083
5083
  for (P = 0; P < 4; P++)
5084
5084
  N.push(new y(new Date(A + P, 0, 1))), N.push(new y(new Date(A + P, 6, 1)));
5085
5085
  return N;
5086
5086
  }
5087
- function Y(A, W) {
5087
+ function Z(A, W) {
5088
5088
  return A.offsetScore !== W.offsetScore ? A.offsetScore - W.offsetScore : A.abbrScore !== W.abbrScore ? A.abbrScore - W.abbrScore : A.zone.population !== W.zone.population ? W.zone.population - A.zone.population : W.zone.name.localeCompare(A.zone.name);
5089
5089
  }
5090
- function M0(A, W) {
5090
+ function Y(A, W) {
5091
5091
  var s, N;
5092
5092
  for (h(W), s = 0; s < W.length; s++)
5093
5093
  N = W[s], t[N] = t[N] || {}, t[N][A] = !0;
5094
5094
  }
5095
- function q0(A) {
5096
- var W = A.length, s = {}, N = [], X = {}, S, J, P, H;
5095
+ function a0(A) {
5096
+ var W = A.length, s = {}, N = [], X = {}, S, Q, P, G;
5097
5097
  for (S = 0; S < W; S++)
5098
5098
  if (P = A[S].offset, !X.hasOwnProperty(P)) {
5099
- H = t[P] || {};
5100
- for (J in H)
5101
- H.hasOwnProperty(J) && (s[J] = !0);
5099
+ G = t[P] || {};
5100
+ for (Q in G)
5101
+ G.hasOwnProperty(Q) && (s[Q] = !0);
5102
5102
  X[P] = !0;
5103
5103
  }
5104
5104
  for (S in s)
@@ -5109,36 +5109,36 @@ var F0 = { exports: {} }, U0 = { exports: {} };
5109
5109
  try {
5110
5110
  var A = Intl.DateTimeFormat().resolvedOptions().timeZone;
5111
5111
  if (A && A.length > 3) {
5112
- var W = e[i0(A)];
5112
+ var W = e[q0(A)];
5113
5113
  if (W)
5114
5114
  return W;
5115
- r0("Moment Timezone found " + A + " from the Intl api, but did not have that data loaded.");
5115
+ n0("Moment Timezone found " + A + " from the Intl api, but did not have that data loaded.");
5116
5116
  }
5117
5117
  } catch {
5118
5118
  }
5119
- var s = w(), N = s.length, X = q0(s), S = [], J, P, H;
5119
+ var s = w(), N = s.length, X = a0(s), S = [], Q, P, G;
5120
5120
  for (P = 0; P < X.length; P++) {
5121
- for (J = new F(b0(X[P])), H = 0; H < N; H++)
5122
- J.scoreOffsetAt(s[H]);
5123
- S.push(J);
5121
+ for (Q = new F(z0(X[P])), G = 0; G < N; G++)
5122
+ Q.scoreOffsetAt(s[G]);
5123
+ S.push(Q);
5124
5124
  }
5125
- return S.sort(Y), S.length > 0 ? S[0].zone.name : void 0;
5125
+ return S.sort(Z), S.length > 0 ? S[0].zone.name : void 0;
5126
5126
  }
5127
5127
  function l0(A) {
5128
5128
  return (!q || A) && (q = s0()), q;
5129
5129
  }
5130
- function i0(A) {
5130
+ function q0(A) {
5131
5131
  return (A || "").toLowerCase().replace(/\//g, "_");
5132
5132
  }
5133
5133
  function W0(A) {
5134
5134
  var W, s, N, X;
5135
5135
  for (typeof A == "string" && (A = [A]), W = 0; W < A.length; W++)
5136
- N = A[W].split("|"), s = N[0], X = i0(s), O[X] = A[W], e[X] = s, M0(X, N[2].split(" "));
5136
+ N = A[W].split("|"), s = N[0], X = q0(s), O[X] = A[W], e[X] = s, Y(X, N[2].split(" "));
5137
5137
  }
5138
- function b0(A, W) {
5139
- A = i0(A);
5138
+ function z0(A, W) {
5139
+ A = q0(A);
5140
5140
  var s = O[A], N;
5141
- return s instanceof R ? s : typeof s == "string" ? (s = new R(s), O[A] = s, s) : p[A] && W !== b0 && (N = b0(p[A], b0)) ? (s = O[A] = new R(), s._set(N), s.name = e[A], s) : null;
5141
+ return s instanceof R ? s : typeof s == "string" ? (s = new R(s), O[A] = s, s) : p[A] && W !== z0 && (N = z0(p[A], z0)) ? (s = O[A] = new R(), s._set(N), s.name = e[A], s) : null;
5142
5142
  }
5143
5143
  function f0() {
5144
5144
  var A, W = [];
@@ -5149,12 +5149,12 @@ var F0 = { exports: {} }, U0 = { exports: {} };
5149
5149
  function u0() {
5150
5150
  return Object.keys(o);
5151
5151
  }
5152
- function n0(A) {
5152
+ function d0(A) {
5153
5153
  var W, s, N, X;
5154
5154
  for (typeof A == "string" && (A = [A]), W = 0; W < A.length; W++)
5155
- s = A[W].split("|"), N = i0(s[0]), X = i0(s[1]), p[N] = X, e[N] = s[0], p[X] = N, e[X] = s[1];
5155
+ s = A[W].split("|"), N = q0(s[0]), X = q0(s[1]), p[N] = X, e[N] = s[0], p[X] = N, e[X] = s[1];
5156
5156
  }
5157
- function a0(A) {
5157
+ function i0(A) {
5158
5158
  var W, s, N, X;
5159
5159
  if (!(!A || !A.length))
5160
5160
  for (W = 0; W < A.length; W++)
@@ -5163,63 +5163,63 @@ var F0 = { exports: {} }, U0 = { exports: {} };
5163
5163
  N
5164
5164
  );
5165
5165
  }
5166
- function d0(A) {
5166
+ function r0(A) {
5167
5167
  return A = A.toUpperCase(), o[A] || null;
5168
5168
  }
5169
- function U(A, W) {
5170
- if (A = d0(A), !A)
5169
+ function L0(A, W) {
5170
+ if (A = r0(A), !A)
5171
5171
  return null;
5172
5172
  var s = A.zones.sort();
5173
5173
  return W ? s.map(function(N) {
5174
- var X = b0(N);
5174
+ var X = z0(N);
5175
5175
  return {
5176
5176
  name: N,
5177
5177
  offset: X.utcOffset(/* @__PURE__ */ new Date())
5178
5178
  };
5179
5179
  }) : s;
5180
5180
  }
5181
- function h0(A) {
5182
- W0(A.zones), n0(A.links), a0(A.countries), E.dataVersion = A.version;
5183
- }
5184
5181
  function k(A) {
5185
- return k.didShowError || (k.didShowError = !0, r0("moment.tz.zoneExists('" + A + "') has been deprecated in favor of !moment.tz.zone('" + A + "')")), !!b0(A);
5182
+ W0(A.zones), d0(A.links), i0(A.countries), E.dataVersion = A.version;
5186
5183
  }
5187
- function O0(A) {
5184
+ function D(A) {
5185
+ return D.didShowError || (D.didShowError = !0, n0("moment.tz.zoneExists('" + A + "') has been deprecated in favor of !moment.tz.zone('" + A + "')")), !!z0(A);
5186
+ }
5187
+ function o0(A) {
5188
5188
  var W = A._f === "X" || A._f === "x";
5189
5189
  return !!(A._a && A._tzm === void 0 && !W);
5190
5190
  }
5191
- function r0(A) {
5191
+ function n0(A) {
5192
5192
  typeof console < "u" && typeof console.error == "function" && console.error(A);
5193
5193
  }
5194
5194
  function E(A) {
5195
5195
  var W = Array.prototype.slice.call(arguments, 0, -1), s = arguments[arguments.length - 1], N = M.utc.apply(null, W), X;
5196
- return !M.isMoment(A) && O0(N) && (X = b0(s)) && N.add(X.parse(N), "minutes"), N.tz(s), N;
5196
+ return !M.isMoment(A) && o0(N) && (X = z0(s)) && N.add(X.parse(N), "minutes"), N.tz(s), N;
5197
5197
  }
5198
- E.version = b, E.dataVersion = "", E._zones = O, E._links = p, E._names = e, E._countries = o, E.add = W0, E.link = n0, E.load = h0, E.zone = b0, E.zoneExists = k, E.guess = l0, E.names = f0, E.Zone = R, E.unpack = m, E.unpackBase60 = n, E.needsOffset = O0, E.moveInvalidForward = !0, E.moveAmbiguousForward = !1, E.countries = u0, E.zonesForCountry = U;
5199
- var o0 = M.fn;
5198
+ E.version = b, E.dataVersion = "", E._zones = O, E._links = p, E._names = e, E._countries = o, E.add = W0, E.link = d0, E.load = k, E.zone = z0, E.zoneExists = D, E.guess = l0, E.names = f0, E.Zone = R, E.unpack = m, E.unpackBase60 = n, E.needsOffset = o0, E.moveInvalidForward = !0, E.moveAmbiguousForward = !1, E.countries = u0, E.zonesForCountry = L0;
5199
+ var c0 = M.fn;
5200
5200
  M.tz = E, M.defaultZone = null, M.updateOffset = function(A, W) {
5201
5201
  var s = M.defaultZone, N;
5202
- if (A._z === void 0 && (s && O0(A) && !A._isUTC && A.isValid() && (A._d = M.utc(A._a)._d, A.utc().add(s.parse(A), "minutes")), A._z = s), A._z)
5202
+ if (A._z === void 0 && (s && o0(A) && !A._isUTC && A.isValid() && (A._d = M.utc(A._a)._d, A.utc().add(s.parse(A), "minutes")), A._z = s), A._z)
5203
5203
  if (N = A._z.utcOffset(A), Math.abs(N) < 16 && (N = N / 60), A.utcOffset !== void 0) {
5204
5204
  var X = A._z;
5205
5205
  A.utcOffset(-N, W), A._z = X;
5206
5206
  } else
5207
5207
  A.zone(N, W);
5208
- }, o0.tz = function(A, W) {
5208
+ }, c0.tz = function(A, W) {
5209
5209
  if (A) {
5210
5210
  if (typeof A != "string")
5211
5211
  throw new Error("Time zone name must be a string, got " + A + " [" + typeof A + "]");
5212
- return this._z = b0(A), this._z ? M.updateOffset(this, W) : r0("Moment Timezone has no data for " + A + ". See http://momentjs.com/timezone/docs/#/data-loading/."), this;
5212
+ return this._z = z0(A), this._z ? M.updateOffset(this, W) : n0("Moment Timezone has no data for " + A + ". See http://momentjs.com/timezone/docs/#/data-loading/."), this;
5213
5213
  }
5214
5214
  if (this._z)
5215
5215
  return this._z.name;
5216
5216
  };
5217
- function m0(A) {
5217
+ function N0(A) {
5218
5218
  return function() {
5219
5219
  return this._z ? this._z.abbr(this) : A.call(this);
5220
5220
  };
5221
5221
  }
5222
- function N0(A) {
5222
+ function B0(A) {
5223
5223
  return function() {
5224
5224
  return this._z = null, A.apply(this, arguments);
5225
5225
  };
@@ -5229,11 +5229,11 @@ var F0 = { exports: {} }, U0 = { exports: {} };
5229
5229
  return arguments.length > 0 && (this._z = null), A.apply(this, arguments);
5230
5230
  };
5231
5231
  }
5232
- o0.zoneName = m0(o0.zoneName), o0.zoneAbbr = m0(o0.zoneAbbr), o0.utc = N0(o0.utc), o0.local = N0(o0.local), o0.utcOffset = g0(o0.utcOffset), M.tz.setDefault = function(A) {
5233
- return (a < 2 || a === 2 && i < 9) && r0("Moment Timezone setDefault() requires Moment.js >= 2.9.0. You are using Moment.js " + M.version + "."), M.defaultZone = A ? b0(A) : null, M;
5232
+ c0.zoneName = N0(c0.zoneName), c0.zoneAbbr = N0(c0.zoneAbbr), c0.utc = B0(c0.utc), c0.local = B0(c0.local), c0.utcOffset = g0(c0.utcOffset), M.tz.setDefault = function(A) {
5233
+ return (a < 2 || a === 2 && i < 9) && n0("Moment Timezone setDefault() requires Moment.js >= 2.9.0. You are using Moment.js " + M.version + "."), M.defaultZone = A ? z0(A) : null, M;
5234
5234
  };
5235
- var B0 = M.momentProperties;
5236
- return Object.prototype.toString.call(B0) === "[object Array]" ? (B0.push("_z"), B0.push("_a")) : B0 && (B0._z = null), M;
5235
+ var y0 = M.momentProperties;
5236
+ return Object.prototype.toString.call(y0) === "[object Array]" ? (y0.push("_z"), y0.push("_a")) : y0 && (y0._z = null), M;
5237
5237
  });
5238
5238
  })(U0);
5239
5239
  var J2 = U0.exports;
@@ -6109,20 +6109,45 @@ const pM = {
6109
6109
  ts: {
6110
6110
  type: String
6111
6111
  },
6112
- timeZone: {
6113
- type: Number,
6114
- default: 8
6112
+ gateway: {
6113
+ type: String
6115
6114
  },
6116
- meteo: {
6117
- type: Object
6115
+ startTs: {
6116
+ type: String
6118
6117
  }
6119
6118
  },
6120
- emits: ["point", "meteoMore"],
6119
+ emits: ["meteoMore"],
6121
6120
  data() {
6122
6121
  return {
6123
6122
  showMeteo: !1,
6123
+ point: {},
6124
+ meteoTime: H().utc().format(),
6124
6125
  meteoData: void 0,
6125
- tableData: {},
6126
+ tableData: {
6127
+ hours: [void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0],
6128
+ weatherUrls: [],
6129
+ weatherNames: [],
6130
+ temp: [],
6131
+ precipProbability: [],
6132
+ precip1h: [],
6133
+ visibility: [],
6134
+ humidity: [],
6135
+ windSpeed: [],
6136
+ windDir: [],
6137
+ windGust: [],
6138
+ sigwaveHeight: [],
6139
+ sigwaveDir: [],
6140
+ windwaveHeight: [],
6141
+ windwaveDir: [],
6142
+ windwavePeriod: [],
6143
+ swellHeight: [],
6144
+ swellDir: [],
6145
+ swellPeriod: [],
6146
+ currentSpeed: [],
6147
+ currentDir: [],
6148
+ seaLevel: [],
6149
+ seaTemp: []
6150
+ },
6126
6151
  currentHourData: void 0,
6127
6152
  positionGmt: void 0,
6128
6153
  localDate: void 0,
@@ -6142,14 +6167,32 @@ const pM = {
6142
6167
  this.map && this.show && this.handleBind();
6143
6168
  }
6144
6169
  },
6145
- ts: {
6170
+ point: {
6146
6171
  handler() {
6147
- this.showMeteo && this.initTableData();
6172
+ var z;
6173
+ if (this.showMeteo = !0, this.showMeteo && this.ts && this.meteoTime) {
6174
+ const M = Math.ceil((z = H(this.ts)) == null ? void 0 : z.diff(H(), "d", !0)), b = M > 0 ? 15 - M : 15;
6175
+ this.fetchMeteoData(this.point, this.ts, b);
6176
+ }
6148
6177
  }
6149
6178
  },
6150
- meteo: {
6179
+ ts: {
6151
6180
  handler() {
6152
- this.meteo ? (this.showMeteo = !0, this.meteoData = this.meteo, this.initTableData(), this.handleRender()) : this.showMeteo = !1;
6181
+ var z, M;
6182
+ if (this.showMeteo && this.ts && this.meteoTime) {
6183
+ const b = (z = H(this.ts)) == null ? void 0 : z.diff(H(this.meteoTime), "d", !0);
6184
+ if (b >= 0 && b <= 14)
6185
+ this.initTableData(this.meteoData);
6186
+ else if (b > 14) {
6187
+ const O = Math.ceil((M = H(this.ts)) == null ? void 0 : M.diff(H(), "d", !0));
6188
+ if (O <= 15) {
6189
+ const p = O > 0 ? 15 - O : 15;
6190
+ this.fetchMeteoData(this.point, this.ts, p);
6191
+ } else
6192
+ this.clearTable(), this.tableData.hours = [void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0], this.handleRender();
6193
+ } else
6194
+ b <= 0 && b >= -14 ? this.initTableData(this.historyMeteoData) : b < -14 && this.fetchMeteoData(this.point, this.ts, 15);
6195
+ }
6153
6196
  }
6154
6197
  }
6155
6198
  },
@@ -6161,33 +6204,65 @@ const pM = {
6161
6204
  },
6162
6205
  computeHourZ() {
6163
6206
  return function(z) {
6164
- return z ? `${A0(z).utc().format("HH")}Z` : "-";
6207
+ return z ? `${H(z).utc().format("HH")}Z` : "-";
6165
6208
  };
6166
6209
  },
6167
6210
  computeLat() {
6168
6211
  return function(z, M = 4) {
6169
- return $.lat2pretty(z, M).pretty;
6212
+ return M0.lat2pretty(z, M).pretty;
6170
6213
  };
6171
6214
  },
6172
6215
  computeLng() {
6173
6216
  return function(z, M = 4) {
6174
- return $.lng2pretty(z, M).pretty;
6217
+ return M0.lng2pretty(z, M).pretty;
6175
6218
  };
6176
6219
  },
6177
6220
  roundPrecision() {
6178
6221
  return function(z, M = 4) {
6179
- return isNaN(z) ? "-" : $.roundPrecision(z, M);
6222
+ return isNaN(z) ? "-" : M0.roundPrecision(z, M);
6180
6223
  };
6181
6224
  }
6182
6225
  },
6183
6226
  mounted() {
6184
6227
  },
6185
6228
  methods: {
6186
- initTableData() {
6187
- var z, M, b, O, p, o, e, t, q, r, a, i, L, n, h, u, d, m, R, g, _, y, F, B, w, Y, M0, q0, s0, l0, i0, W0, b0, f0, u0, n0;
6188
- this.currentHourData = (z = D0.pickHourly(this.meteoData, this.ts ? A0(this.ts) : A0())) == null ? void 0 : z[0], this.positionGmt = (b = (M = this.meteoData.weather) == null ? void 0 : M[0]) == null ? void 0 : b.timezone, this.localDate = _0(this.ts).tz(this.positionGmt).format("MMM-DD/HHmm[LT]"), this.tableData = {
6229
+ async fetchMeteoData(z, M, b) {
6230
+ this.point = z, this.clearTable(), this.tableData.hours = [void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0], this.handleRender();
6231
+ let O = M ? H(M).utc().format() : H().utc().format(), p = {
6232
+ lat: z.lat,
6233
+ lng: z.lng,
6234
+ datetime: O,
6235
+ forecastDays: b ?? 15
6236
+ // selfHosted: false
6237
+ }, o = await h0.post(`${this.gateway}/api/arc/meteo2/spot/forecast`, p, {
6238
+ headers: {
6239
+ Authorization: this.token || this.defaultMeteoToken
6240
+ }
6241
+ });
6242
+ (o == null ? void 0 : o.data.code) === 0 ? (this.meteoData = o == null ? void 0 : o.data.data, this.meteoTime = O, this.initTableData(this.meteoData)) : (this.clearTable(), this.tableData.hours = [void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0], this.handleRender()), H(this.startTs).diff(H(), "d", !0) < -1 && (O = M ? H(M).add(-14, "d").utc().format() : H().utc().format(), p = {
6243
+ lat: z.lat,
6244
+ lng: z.lng,
6245
+ datetime: O,
6246
+ forecastDays: b
6247
+ }, o = await h0.post(`${this.gateway}/api/arc/meteo2/spot/forecast`, p, {
6248
+ headers: {
6249
+ Authorization: this.token || this.defaultMeteoToken
6250
+ }
6251
+ }), (o == null ? void 0 : o.data.code) === 0 && (this.historyMeteoData = o == null ? void 0 : o.data.data));
6252
+ },
6253
+ initTableData(z) {
6254
+ var M, b, O, p, o, e, t, q, r, a, i, L, n, h, u, d, m, R, g, _, y, F, B, w, Z, Y, a0, s0, l0, q0, W0, z0, f0, u0, d0, i0;
6255
+ this.clearTable(), this.currentHourData = ((M = D0.pickHourly(z, this.ts ? H(this.ts) : H())) == null ? void 0 : M[0]) || {}, this.positionGmt = (O = (b = z.weather) == null ? void 0 : b[0]) == null ? void 0 : O.timezone, this.localDate = _0(this.ts).tz(this.positionGmt).format("MMM-DD/HHmm[LT]");
6256
+ for (let r0 = 0; r0 < 8; r0++) {
6257
+ const L0 = _0(this.ts).tz(this.positionGmt).add(3 * r0, "h").format();
6258
+ this.tableData.hours.push(L0);
6259
+ const k = ((p = D0.pickHourly(z, L0)) == null ? void 0 : p[0]) || {};
6260
+ this.tableData.weatherUrls.push((o = k.weather) == null ? void 0 : o.url), this.tableData.weatherNames.push(((e = k.weather) == null ? void 0 : e.name) ?? "-"), this.tableData.temp.push(this.roundPrecision((t = k.weather) == null ? void 0 : t.temp, 0) ?? "-"), this.tableData.precipProbability.push(this.roundPrecision((r = (q = k.weather) == null ? void 0 : q.precip) == null ? void 0 : r.probability, 0) ?? "-"), this.tableData.precip1h.push(this.roundPrecision((i = (a = k.weather) == null ? void 0 : a.precip) == null ? void 0 : i.sum, 0) ?? "-"), this.tableData.visibility.push(this.roundPrecision((L = k.weather) == null ? void 0 : L.visibility, 0) ?? "-"), this.tableData.windSpeed.push(this.roundPrecision((h = (n = k.weather) == null ? void 0 : n.wind) == null ? void 0 : h.kts, 1) ?? "-"), this.tableData.windDir.push((d = (u = k.weather) == null ? void 0 : u.wind) == null ? void 0 : d.bearing), this.tableData.windGust.push(this.roundPrecision((R = (m = k.weather) == null ? void 0 : m.wind) == null ? void 0 : R.gusts, 1) ?? "-"), this.tableData.sigwaveHeight.push(this.roundPrecision((_ = (g = k.wave) == null ? void 0 : g.sig) == null ? void 0 : _.height, 1) ?? "-"), this.tableData.sigwaveDir.push((F = (y = k.wave) == null ? void 0 : y.sig) == null ? void 0 : F.bearing), this.tableData.windwaveHeight.push(this.roundPrecision((w = (B = k.wave) == null ? void 0 : B.wd) == null ? void 0 : w.height, 1) ?? "-"), this.tableData.windwaveDir.push((Y = (Z = k.wave) == null ? void 0 : Z.wd) == null ? void 0 : Y.bearing), this.tableData.windwavePeriod.push(this.roundPrecision((s0 = (a0 = k.wave) == null ? void 0 : a0.wd) == null ? void 0 : s0.period, 1) ?? "-"), this.tableData.swellHeight.push(this.roundPrecision((q0 = (l0 = k.wave) == null ? void 0 : l0.swell) == null ? void 0 : q0.height, 1) ?? "-"), this.tableData.swellDir.push((z0 = (W0 = k.wave) == null ? void 0 : W0.swell) == null ? void 0 : z0.bearing), this.tableData.swellPeriod.push(this.roundPrecision((u0 = (f0 = k.wave) == null ? void 0 : f0.swell) == null ? void 0 : u0.period, 1) ?? "-"), this.tableData.currentSpeed.push(this.roundPrecision((d0 = k.current) == null ? void 0 : d0.speed, 1) ?? "-"), this.tableData.currentDir.push((i0 = k.current) == null ? void 0 : i0.bearing), this.tableData.seaLevel.push(this.roundPrecision(k.height, 1) ?? "-"), this.tableData.seaTemp.push(this.roundPrecision(k.sst, 0) ?? "-");
6261
+ }
6262
+ },
6263
+ clearTable() {
6264
+ this.currentHourData = {}, this.positionGmt = void 0, this.localDate = void 0, this.tableData = {
6189
6265
  hours: [],
6190
- utcHours: [],
6191
6266
  weatherUrls: [],
6192
6267
  weatherNames: [],
6193
6268
  temp: [],
@@ -6211,12 +6286,6 @@ const pM = {
6211
6286
  seaLevel: [],
6212
6287
  seaTemp: []
6213
6288
  };
6214
- for (let a0 = 0; a0 < 8; a0++) {
6215
- const d0 = _0(this.ts).tz(this.positionGmt).add(3 * a0, "h").format();
6216
- this.tableData.hours.push(d0);
6217
- const U = ((O = D0.pickHourly(this.meteoData, d0)) == null ? void 0 : O[0]) || {};
6218
- this.tableData.weatherUrls.push((p = U.weather) == null ? void 0 : p.url), this.tableData.weatherNames.push(((o = U.weather) == null ? void 0 : o.name) ?? "-"), this.tableData.temp.push(this.roundPrecision((e = U.weather) == null ? void 0 : e.temp, 0) ?? "-"), this.tableData.precipProbability.push(this.roundPrecision((q = (t = U.weather) == null ? void 0 : t.precip) == null ? void 0 : q.probability, 0) ?? "-"), this.tableData.precip1h.push(this.roundPrecision((a = (r = U.weather) == null ? void 0 : r.precip) == null ? void 0 : a.sum, 0) ?? "-"), this.tableData.visibility.push(this.roundPrecision((i = U.weather) == null ? void 0 : i.visibility, 0) ?? "-"), this.tableData.windSpeed.push(this.roundPrecision((n = (L = U.weather) == null ? void 0 : L.wind) == null ? void 0 : n.kts, 1) ?? "-"), this.tableData.windDir.push((u = (h = U.weather) == null ? void 0 : h.wind) == null ? void 0 : u.bearing), this.tableData.windGust.push(this.roundPrecision((m = (d = U.weather) == null ? void 0 : d.wind) == null ? void 0 : m.gusts, 1) ?? "-"), this.tableData.sigwaveHeight.push(this.roundPrecision((g = (R = U.wave) == null ? void 0 : R.sig) == null ? void 0 : g.height, 1) ?? "-"), this.tableData.sigwaveDir.push((y = (_ = U.wave) == null ? void 0 : _.sig) == null ? void 0 : y.bearing), this.tableData.windwaveHeight.push(this.roundPrecision((B = (F = U.wave) == null ? void 0 : F.wd) == null ? void 0 : B.height, 1) ?? "-"), this.tableData.windwaveDir.push((Y = (w = U.wave) == null ? void 0 : w.wd) == null ? void 0 : Y.bearing), this.tableData.windwavePeriod.push(this.roundPrecision((q0 = (M0 = U.wave) == null ? void 0 : M0.wd) == null ? void 0 : q0.period, 1) ?? "-"), this.tableData.swellHeight.push(this.roundPrecision((l0 = (s0 = U.wave) == null ? void 0 : s0.swell) == null ? void 0 : l0.height, 1) ?? "-"), this.tableData.swellDir.push((W0 = (i0 = U.wave) == null ? void 0 : i0.swell) == null ? void 0 : W0.bearing), this.tableData.swellPeriod.push(this.roundPrecision((f0 = (b0 = U.wave) == null ? void 0 : b0.swell) == null ? void 0 : f0.period, 1) ?? "-"), this.tableData.currentSpeed.push(this.roundPrecision((u0 = U.current) == null ? void 0 : u0.speed, 1) ?? "-"), this.tableData.currentDir.push((n0 = U.current) == null ? void 0 : n0.bearing), this.tableData.seaLevel.push(this.roundPrecision(U.height, 1) ?? "-"), this.tableData.seaTemp.push(this.roundPrecision(U.sst, 0) ?? "-");
6219
- }
6220
6289
  },
6221
6290
  handleSelectTab(z) {
6222
6291
  this.activeIndex = z;
@@ -6233,44 +6302,41 @@ const pM = {
6233
6302
  else if (M === "more")
6234
6303
  this.$emit("meteoMore", this.meteoData);
6235
6304
  else if (M === "mapboxgl-canvas")
6236
- this.$emit("point", z.lngLat);
6305
+ this.point = z.lngLat;
6237
6306
  else
6238
6307
  return !1;
6239
6308
  },
6240
6309
  handleRender() {
6241
- var M;
6242
- const z = document.getElementById("point-meteo");
6243
- this.meteoData && (this.meteoMarker ? (M = this.meteoMarker) == null || M.setLngLat([this.meteoData.lng, this.meteoData.lat]) : this.meteoMarker = new R0.Marker(z).setLngLat([this.meteoData.lng, this.meteoData.lat]).addTo(this.map));
6310
+ this.$nextTick(() => {
6311
+ var M;
6312
+ const z = document.getElementById("point-meteo");
6313
+ this.point && (this.meteoMarker ? (M = this.meteoMarker) == null || M.setLngLat([this.point.lng, this.point.lat]) : this.meteoMarker = new m0.Marker(z).setLngLat([this.point.lng, this.point.lat]).addTo(this.map));
6314
+ });
6244
6315
  }
6245
6316
  }
6246
6317
  }, OM = {
6247
6318
  id: "point-meteo",
6248
6319
  class: "point-meteo"
6249
- }, oM = { class: "meteo-box" }, cM = { class: "header-box flex-between" }, eM = { class: "flex-center" }, AM = { class: "lnglat" }, tM = { class: "main-box" }, aM = { class: "summary-row flex-between" }, qM = { class: "summary flex-center" }, iM = ["src"], rM = { class: "temp" }, nM = { class: "des info" }, dM = { class: "flex-start" }, WM = { class: "flex-start" }, sM = { class: "flex-start" }, lM = { class: "date flex-col-center-end" }, fM = { class: "" }, uM = { class: "" }, LM = { class: "detail-box" }, RM = { class: "menu-header flex-start" }, hM = {
6250
- key: 0,
6251
- class: "basic-table"
6252
- }, mM = { class: "hour" }, NM = { class: "hour" }, BM = { class: "icon" }, yM = ["src"], gM = { class: "text" }, XM = { class: "text" }, vM = { class: "text" }, TM = { class: "text" }, wM = {
6320
+ }, oM = { class: "meteo-box" }, cM = { class: "header-box flex-between" }, eM = { class: "flex-center" }, AM = { class: "lnglat" }, tM = { class: "main-box" }, aM = { class: "summary-row flex-between" }, qM = { class: "summary flex-center" }, iM = ["src"], rM = {
6253
6321
  key: 1,
6254
- class: "wave-current-table"
6255
- }, CM = { class: "hour" }, _M = { class: "hour" }, xM = { class: "icon" }, SM = ["src"], EM = { class: "text" }, PM = { class: "text" }, kM = { class: "text" }, DM = { class: "text" }, IM = {
6256
- key: 2,
6257
- class: "sea-table"
6258
- }, jM = { class: "hour" }, FM = { class: "hour" }, UM = { class: "icon" }, HM = ["src"], GM = { class: "text" }, VM = { class: "text" };
6259
- function KM(z, M, b, O, p, o) {
6322
+ class: "icon flex-center",
6323
+ style: { "margin-right": "5px" }
6324
+ }, nM = { class: "temp" }, dM = { class: "des info" }, WM = { class: "flex-start" }, sM = { class: "flex-start" }, lM = { class: "flex-start" }, fM = { class: "date flex-col-center-end" }, uM = { class: "" }, LM = { class: "" }, RM = { class: "detail-box" }, hM = { class: "menu-header flex-start" }, mM = { class: "basic-table" }, NM = { class: "hour" }, BM = { class: "hour" }, yM = { class: "icon" }, gM = ["src"], XM = { class: "text" }, vM = { class: "text" }, TM = { class: "text" }, wM = { class: "text" }, CM = { class: "wave-current-table" }, _M = { class: "hour" }, xM = { class: "hour" }, SM = { class: "icon" }, EM = ["src"], PM = { class: "text" }, kM = { class: "text" }, DM = { class: "text" }, IM = { class: "text" }, jM = { class: "sea-table" }, FM = { class: "hour" }, UM = { class: "hour" }, HM = { class: "icon" }, GM = ["src"], VM = { class: "text" }, KM = { class: "text" };
6325
+ function JM(z, M, b, O, p, o) {
6260
6326
  var r, a, i, L, n, h, u, d, m, R, g, _, y, F;
6261
6327
  const e = x("LocationFilled"), t = x("ElIcon"), q = x("ElTooltip");
6262
6328
  return l(), f("div", null, [
6263
- T0(c("div", OM, [
6329
+ X0(c("div", OM, [
6264
6330
  c("div", oM, [
6265
6331
  c("div", cM, [
6266
6332
  c("div", eM, [
6267
6333
  v(t, { size: "22" }, {
6268
- default: c0(() => [
6334
+ default: e0(() => [
6269
6335
  v(e)
6270
6336
  ]),
6271
6337
  _: 1
6272
6338
  }),
6273
- c("div", AM, C(o.computeLat((r = p.meteoData) == null ? void 0 : r.lat)) + "," + C(o.computeLng((a = p.meteoData) == null ? void 0 : a.lng)), 1)
6339
+ c("div", AM, C(o.computeLat((r = p.point) == null ? void 0 : r.lat)) + "," + C(o.computeLng((a = p.point) == null ? void 0 : a.lng)), 1)
6274
6340
  ]),
6275
6341
  c("div", {
6276
6342
  class: "iconfont close",
@@ -6286,97 +6352,98 @@ function KM(z, M, b, O, p, o) {
6286
6352
  content: (L = (i = p.currentHourData) == null ? void 0 : i.weather) == null ? void 0 : L.name,
6287
6353
  "show-after": 1e3
6288
6354
  }, {
6289
- default: c0(() => {
6290
- var B, w;
6355
+ default: e0(() => {
6356
+ var B, w, Z, Y;
6291
6357
  return [
6292
- c("img", {
6358
+ (w = (B = p.currentHourData) == null ? void 0 : B.weather) != null && w.url ? (l(), f("img", {
6359
+ key: 0,
6293
6360
  class: "iconfont icon",
6294
6361
  style: { "margin-right": "5px" },
6295
- src: (w = (B = p.currentHourData) == null ? void 0 : B.weather) == null ? void 0 : w.url
6296
- }, null, 8, iM)
6362
+ src: (Y = (Z = p.currentHourData) == null ? void 0 : Z.weather) == null ? void 0 : Y.url
6363
+ }, null, 8, iM)) : (l(), f("span", rM))
6297
6364
  ];
6298
6365
  }),
6299
6366
  _: 1
6300
6367
  }, 8, ["content"]),
6301
- c("div", rM, [
6368
+ c("div", nM, [
6302
6369
  c("span", null, [
6303
- Z(C(o.roundPrecision((h = (n = p.currentHourData) == null ? void 0 : n.weather) == null ? void 0 : h.temp, 0)), 1),
6304
- M[5] || (M[5] = c("span", { style: { "font-size": "14px" } }, "°C", -1))
6370
+ b0(C(o.roundPrecision((h = (n = p.currentHourData) == null ? void 0 : n.weather) == null ? void 0 : h.temp, 0)), 1),
6371
+ M[4] || (M[4] = c("span", { style: { "font-size": "14px" } }, "°C", -1))
6305
6372
  ])
6306
6373
  ]),
6307
- c("div", nM, [
6308
- c("div", dM, [
6309
- M[6] || (M[6] = c("label", null, "Precip : ", -1)),
6374
+ c("div", dM, [
6375
+ c("div", WM, [
6376
+ M[5] || (M[5] = c("label", null, "Precip : ", -1)),
6310
6377
  c("span", null, C(o.roundPrecision((m = (d = (u = p.currentHourData) == null ? void 0 : u.weather) == null ? void 0 : d.precip) == null ? void 0 : m.sum, 0)) + " mm", 1)
6311
6378
  ]),
6312
- c("div", WM, [
6313
- M[7] || (M[7] = c("label", null, "Visibility : ", -1)),
6379
+ c("div", sM, [
6380
+ M[6] || (M[6] = c("label", null, "Visibility : ", -1)),
6314
6381
  c("span", null, C(o.roundPrecision((g = (R = p.currentHourData) == null ? void 0 : R.weather) == null ? void 0 : g.visibility, 0)) + " nm", 1)
6315
6382
  ]),
6316
- c("div", sM, [
6317
- M[8] || (M[8] = c("label", null, "Wind : ", -1)),
6383
+ c("div", lM, [
6384
+ M[7] || (M[7] = c("label", null, "Wind : ", -1)),
6318
6385
  c("span", null, C(o.roundPrecision((F = (y = (_ = p.currentHourData) == null ? void 0 : _.weather) == null ? void 0 : y.wind) == null ? void 0 : F.kts, 1)) + " kts", 1)
6319
6386
  ])
6320
6387
  ])
6321
6388
  ]),
6322
- c("div", lM, [
6323
- c("div", fM, C(p.localDate), 1),
6324
- c("div", uM, C(p.positionGmt), 1)
6389
+ c("div", fM, [
6390
+ c("div", uM, C(p.localDate), 1),
6391
+ c("div", LM, C(p.positionGmt), 1)
6325
6392
  ])
6326
6393
  ]),
6327
- c("div", LM, [
6328
- c("div", RM, [
6394
+ c("div", RM, [
6395
+ c("div", hM, [
6329
6396
  c("div", {
6330
- class: K(["menu-item", p.activeIndex === 1 ? "active" : ""]),
6331
- onClick: M[1] || (M[1] = v0((B) => o.handleSelectTab(1), ["prevent"]))
6397
+ class: J(["menu-item", p.activeIndex === 1 ? "active" : ""]),
6398
+ onClick: M[1] || (M[1] = C0((B) => o.handleSelectTab(1), ["prevent"]))
6332
6399
  }, "Basis", 2),
6333
6400
  c("div", {
6334
- class: K(["menu-item", p.activeIndex === 2 ? "active" : ""]),
6335
- onClick: M[2] || (M[2] = v0((B) => o.handleSelectTab(2), ["prevent"]))
6401
+ class: J(["menu-item", p.activeIndex === 2 ? "active" : ""]),
6402
+ onClick: M[2] || (M[2] = C0((B) => o.handleSelectTab(2), ["prevent"]))
6336
6403
  }, "Wave & Current", 2),
6337
6404
  c("div", {
6338
- class: K(["menu-item", p.activeIndex === 3 ? "active" : ""]),
6339
- onClick: M[3] || (M[3] = v0((B) => o.handleSelectTab(3), ["prevent"]))
6405
+ class: J(["menu-item", p.activeIndex === 3 ? "active" : ""]),
6406
+ onClick: M[3] || (M[3] = C0((B) => o.handleSelectTab(3), ["prevent"]))
6340
6407
  }, "Sea Surface", 2)
6341
6408
  ]),
6342
- p.activeIndex === 1 ? (l(), f("table", hM, [
6343
- c("tr", mM, [
6344
- M[9] || (M[9] = c("th", {
6409
+ X0(c("table", mM, [
6410
+ c("tr", NM, [
6411
+ M[8] || (M[8] = c("th", {
6345
6412
  rowspan: "1",
6346
6413
  colspan: "1",
6347
6414
  class: "tr-title"
6348
6415
  }, [
6349
- Z("Hours"),
6416
+ b0("Hours"),
6350
6417
  c("span", { class: "unit" }, "(LT)")
6351
6418
  ], -1)),
6352
- (l(!0), f(V, null, Q(p.tableData.hours, (B) => (l(), f("th", {
6419
+ (l(!0), f(K, null, $(p.tableData.hours, (B) => (l(), f("th", {
6353
6420
  rowspan: "1",
6354
6421
  colspan: "1",
6355
6422
  key: Math.random()
6356
6423
  }, C(o.computeHourL(B)), 1))), 128))
6357
6424
  ]),
6358
- c("tr", NM, [
6359
- M[10] || (M[10] = c("th", {
6425
+ c("tr", BM, [
6426
+ M[9] || (M[9] = c("th", {
6360
6427
  rowspan: "1",
6361
6428
  colspan: "1",
6362
6429
  class: "tr-title"
6363
6430
  }, [
6364
- Z("UTC"),
6431
+ b0("UTC"),
6365
6432
  c("span", { class: "unit" })
6366
6433
  ], -1)),
6367
- (l(!0), f(V, null, Q(p.tableData.hours, (B) => (l(), f("th", {
6434
+ (l(!0), f(K, null, $(p.tableData.hours, (B) => (l(), f("th", {
6368
6435
  rowspan: "1",
6369
6436
  colspan: "1",
6370
6437
  key: Math.random()
6371
6438
  }, C(o.computeHourZ(B)), 1))), 128))
6372
6439
  ]),
6373
- c("tr", BM, [
6374
- M[11] || (M[11] = c("th", {
6440
+ c("tr", yM, [
6441
+ M[10] || (M[10] = c("th", {
6375
6442
  rowspan: "1",
6376
6443
  colspan: "1",
6377
6444
  class: "tr-title"
6378
6445
  }, null, -1)),
6379
- (l(!0), f(V, null, Q(p.tableData.weatherUrls, (B, w) => (l(), f("th", {
6446
+ (l(!0), f(K, null, $(p.tableData.weatherUrls, (B, w) => (l(), f("th", {
6380
6447
  rowspan: "1",
6381
6448
  colspan: "1",
6382
6449
  key: Math.random()
@@ -6387,122 +6454,124 @@ function KM(z, M, b, O, p, o) {
6387
6454
  content: p.tableData.weatherNames[w],
6388
6455
  "show-after": 500
6389
6456
  }, {
6390
- default: c0(() => [
6457
+ default: e0(() => [
6391
6458
  B ? (l(), f("img", {
6392
6459
  key: 0,
6393
6460
  class: "iconfont weather-icon",
6394
6461
  src: B
6395
- }, null, 8, yM)) : D("", !0)
6462
+ }, null, 8, gM)) : U("", !0)
6396
6463
  ]),
6397
6464
  _: 2
6398
6465
  }, 1032, ["content"])
6399
6466
  ]))), 128))
6400
6467
  ]),
6401
- c("tr", gM, [
6402
- M[12] || (M[12] = c("td", {
6468
+ c("tr", XM, [
6469
+ M[11] || (M[11] = c("td", {
6403
6470
  rowspan: "1",
6404
6471
  colspan: "1",
6405
6472
  class: "tr-title"
6406
6473
  }, [
6407
- Z("Temp"),
6474
+ b0("Temp"),
6408
6475
  c("span", { class: "unit" }, "°C")
6409
6476
  ], -1)),
6410
- (l(!0), f(V, null, Q(p.tableData.temp, (B) => (l(), f("td", {
6477
+ (l(!0), f(K, null, $(p.tableData.temp, (B) => (l(), f("td", {
6411
6478
  rowspan: "1",
6412
6479
  colspan: "1",
6413
6480
  key: Math.random()
6414
6481
  }, C(B), 1))), 128))
6415
6482
  ]),
6416
- c("tr", XM, [
6417
- M[13] || (M[13] = c("td", {
6483
+ c("tr", vM, [
6484
+ M[12] || (M[12] = c("td", {
6418
6485
  rowspan: "1",
6419
6486
  colspan: "1",
6420
6487
  class: "tr-title"
6421
6488
  }, [
6422
- Z("Precip"),
6489
+ b0("Precip"),
6423
6490
  c("span", { class: "unit" }, "mm")
6424
6491
  ], -1)),
6425
- (l(!0), f(V, null, Q(p.tableData.precip1h, (B) => (l(), f("td", {
6492
+ (l(!0), f(K, null, $(p.tableData.precip1h, (B) => (l(), f("td", {
6426
6493
  rowspan: "1",
6427
6494
  colspan: "1",
6428
6495
  key: Math.random()
6429
6496
  }, C(B), 1))), 128))
6430
6497
  ]),
6431
- c("tr", vM, [
6432
- M[14] || (M[14] = c("td", {
6498
+ c("tr", TM, [
6499
+ M[13] || (M[13] = c("td", {
6433
6500
  rowspan: "1",
6434
6501
  colspan: "1",
6435
6502
  class: "tr-title"
6436
6503
  }, [
6437
- Z("Visibility"),
6504
+ b0("Visibility"),
6438
6505
  c("span", { class: "unit" }, "nm")
6439
6506
  ], -1)),
6440
- (l(!0), f(V, null, Q(p.tableData.visibility, (B) => (l(), f("td", {
6507
+ (l(!0), f(K, null, $(p.tableData.visibility, (B) => (l(), f("td", {
6441
6508
  rowspan: "1",
6442
6509
  colspan: "1",
6443
6510
  key: Math.random()
6444
6511
  }, C(B), 1))), 128))
6445
6512
  ]),
6446
- c("tr", TM, [
6447
- M[15] || (M[15] = c("td", {
6513
+ c("tr", wM, [
6514
+ M[14] || (M[14] = c("td", {
6448
6515
  rowspan: "1",
6449
6516
  colspan: "1",
6450
6517
  class: "tr-title"
6451
6518
  }, [
6452
- Z("Wind"),
6519
+ b0("Wind"),
6453
6520
  c("span", { class: "unit" }, "kts")
6454
6521
  ], -1)),
6455
- (l(!0), f(V, null, Q(p.tableData.windSpeed, (B, w) => (l(), f("td", {
6522
+ (l(!0), f(K, null, $(p.tableData.windSpeed, (B, w) => (l(), f("td", {
6456
6523
  rowspan: "1",
6457
6524
  colspan: "1",
6458
6525
  key: Math.random()
6459
6526
  }, [
6460
- isNaN(p.tableData.windDir[w]) ? D("", !0) : (l(), f("span", {
6527
+ isNaN(p.tableData.windDir[w]) ? U("", !0) : (l(), f("span", {
6461
6528
  key: 0,
6462
6529
  class: "iconfont icon blue",
6463
- style: z0({ display: "inline-block", transform: `rotate(${p.tableData.windDir[w]}deg)` })
6530
+ style: p0({ display: "inline-block", transform: `rotate(${p.tableData.windDir[w]}deg)` })
6464
6531
  }, "", 4)),
6465
6532
  c("span", null, C(B), 1)
6466
6533
  ]))), 128))
6467
6534
  ])
6468
- ])) : D("", !0),
6469
- p.activeIndex === 2 ? (l(), f("table", wM, [
6470
- c("tr", CM, [
6471
- M[16] || (M[16] = c("th", {
6535
+ ], 512), [
6536
+ [v0, p.activeIndex === 1]
6537
+ ]),
6538
+ X0(c("table", CM, [
6539
+ c("tr", _M, [
6540
+ M[15] || (M[15] = c("th", {
6472
6541
  rowspan: "1",
6473
6542
  colspan: "1",
6474
6543
  class: "tr-title"
6475
6544
  }, [
6476
- Z("Hours"),
6545
+ b0("Hours"),
6477
6546
  c("span", { class: "unit" }, "(LT)")
6478
6547
  ], -1)),
6479
- (l(!0), f(V, null, Q(p.tableData.hours, (B) => (l(), f("th", {
6548
+ (l(!0), f(K, null, $(p.tableData.hours, (B) => (l(), f("th", {
6480
6549
  rowspan: "1",
6481
6550
  colspan: "1",
6482
6551
  key: Math.random()
6483
6552
  }, C(o.computeHourL(B)), 1))), 128))
6484
6553
  ]),
6485
- c("tr", _M, [
6486
- M[17] || (M[17] = c("th", {
6554
+ c("tr", xM, [
6555
+ M[16] || (M[16] = c("th", {
6487
6556
  rowspan: "1",
6488
6557
  colspan: "1",
6489
6558
  class: "tr-title"
6490
6559
  }, [
6491
- Z("UTC"),
6560
+ b0("UTC"),
6492
6561
  c("span", { class: "unit" })
6493
6562
  ], -1)),
6494
- (l(!0), f(V, null, Q(p.tableData.hours, (B) => (l(), f("th", {
6563
+ (l(!0), f(K, null, $(p.tableData.hours, (B) => (l(), f("th", {
6495
6564
  rowspan: "1",
6496
6565
  colspan: "1",
6497
6566
  key: Math.random()
6498
6567
  }, C(o.computeHourZ(B)), 1))), 128))
6499
6568
  ]),
6500
- c("tr", xM, [
6501
- M[18] || (M[18] = c("th", {
6569
+ c("tr", SM, [
6570
+ M[17] || (M[17] = c("th", {
6502
6571
  rowspan: "1",
6503
6572
  colspan: "1"
6504
6573
  }, null, -1)),
6505
- (l(!0), f(V, null, Q(p.tableData.weatherUrls, (B, w) => (l(), f("th", {
6574
+ (l(!0), f(K, null, $(p.tableData.weatherUrls, (B, w) => (l(), f("th", {
6506
6575
  rowspan: "1",
6507
6576
  colspan: "1",
6508
6577
  key: Math.random()
@@ -6513,144 +6582,146 @@ function KM(z, M, b, O, p, o) {
6513
6582
  content: p.tableData.weatherNames[w],
6514
6583
  "show-after": 500
6515
6584
  }, {
6516
- default: c0(() => [
6585
+ default: e0(() => [
6517
6586
  B ? (l(), f("img", {
6518
6587
  key: 0,
6519
6588
  class: "iconfont weather-icon",
6520
6589
  src: B
6521
- }, null, 8, SM)) : D("", !0)
6590
+ }, null, 8, EM)) : U("", !0)
6522
6591
  ]),
6523
6592
  _: 2
6524
6593
  }, 1032, ["content"])
6525
6594
  ]))), 128))
6526
6595
  ]),
6527
- c("tr", EM, [
6528
- M[19] || (M[19] = c("td", {
6596
+ c("tr", PM, [
6597
+ M[18] || (M[18] = c("td", {
6529
6598
  rowspan: "1",
6530
6599
  colspan: "1",
6531
6600
  class: "tr-title"
6532
6601
  }, [
6533
- Z("Sig Wave"),
6602
+ b0("Sig Wave"),
6534
6603
  c("span", { class: "unit" }, "m")
6535
6604
  ], -1)),
6536
- (l(!0), f(V, null, Q(p.tableData.sigwaveHeight, (B, w) => (l(), f("td", {
6605
+ (l(!0), f(K, null, $(p.tableData.sigwaveHeight, (B, w) => (l(), f("td", {
6537
6606
  rowspan: "1",
6538
6607
  colspan: "1",
6539
6608
  key: Math.random()
6540
6609
  }, [
6541
- isNaN(p.tableData.sigwaveDir[w]) ? D("", !0) : (l(), f("span", {
6610
+ isNaN(p.tableData.sigwaveDir[w]) ? U("", !0) : (l(), f("span", {
6542
6611
  key: 0,
6543
6612
  class: "iconfont icon blue",
6544
- style: z0({ display: "inline-block", transform: `rotate(${p.tableData.sigwaveDir[w]}deg)` })
6613
+ style: p0({ display: "inline-block", transform: `rotate(${p.tableData.sigwaveDir[w]}deg)` })
6545
6614
  }, "", 4)),
6546
6615
  c("span", null, C(B), 1)
6547
6616
  ]))), 128))
6548
6617
  ]),
6549
- c("tr", PM, [
6550
- M[20] || (M[20] = c("td", {
6618
+ c("tr", kM, [
6619
+ M[19] || (M[19] = c("td", {
6551
6620
  rowspan: "1",
6552
6621
  colspan: "1",
6553
6622
  class: "tr-title"
6554
6623
  }, [
6555
- Z("Wind Wave"),
6624
+ b0("Wind Wave"),
6556
6625
  c("span", { class: "unit" }, "m")
6557
6626
  ], -1)),
6558
- (l(!0), f(V, null, Q(p.tableData.windwaveHeight, (B, w) => (l(), f("td", {
6627
+ (l(!0), f(K, null, $(p.tableData.windwaveHeight, (B, w) => (l(), f("td", {
6559
6628
  rowspan: "1",
6560
6629
  colspan: "1",
6561
6630
  key: Math.random()
6562
6631
  }, [
6563
- isNaN(p.tableData.sigwaveDir[w]) ? D("", !0) : (l(), f("span", {
6632
+ isNaN(p.tableData.sigwaveDir[w]) ? U("", !0) : (l(), f("span", {
6564
6633
  key: 0,
6565
6634
  class: "iconfont icon orange",
6566
- style: z0({ display: "inline-block", transform: `rotate(${p.tableData.sigwaveDir[w]}deg)` })
6635
+ style: p0({ display: "inline-block", transform: `rotate(${p.tableData.sigwaveDir[w]}deg)` })
6567
6636
  }, "", 4)),
6568
6637
  c("span", null, C(B), 1)
6569
6638
  ]))), 128))
6570
6639
  ]),
6571
- c("tr", kM, [
6572
- M[21] || (M[21] = c("td", {
6640
+ c("tr", DM, [
6641
+ M[20] || (M[20] = c("td", {
6573
6642
  rowspan: "1",
6574
6643
  colspan: "1",
6575
6644
  class: "tr-title"
6576
6645
  }, [
6577
- Z("Swell"),
6646
+ b0("Swell"),
6578
6647
  c("span", { class: "unit" }, "m")
6579
6648
  ], -1)),
6580
- (l(!0), f(V, null, Q(p.tableData.swellHeight, (B, w) => (l(), f("td", {
6649
+ (l(!0), f(K, null, $(p.tableData.swellHeight, (B, w) => (l(), f("td", {
6581
6650
  rowspan: "1",
6582
6651
  colspan: "1",
6583
6652
  key: Math.random()
6584
6653
  }, [
6585
- isNaN(p.tableData.swellDir[w]) ? D("", !0) : (l(), f("span", {
6654
+ isNaN(p.tableData.swellDir[w]) ? U("", !0) : (l(), f("span", {
6586
6655
  key: 0,
6587
6656
  class: "iconfont icon orange",
6588
- style: z0({ display: "inline-block", transform: `rotate(${p.tableData.swellDir[w]}deg)` })
6657
+ style: p0({ display: "inline-block", transform: `rotate(${p.tableData.swellDir[w]}deg)` })
6589
6658
  }, "", 4)),
6590
6659
  c("span", null, C(B), 1)
6591
6660
  ]))), 128))
6592
6661
  ]),
6593
- c("tr", DM, [
6594
- M[22] || (M[22] = c("td", {
6662
+ c("tr", IM, [
6663
+ M[21] || (M[21] = c("td", {
6595
6664
  rowspan: "1",
6596
6665
  colspan: "1",
6597
6666
  class: "tr-title"
6598
6667
  }, [
6599
- Z("Current"),
6668
+ b0("Current"),
6600
6669
  c("span", { class: "unit" }, "kts")
6601
6670
  ], -1)),
6602
- (l(!0), f(V, null, Q(p.tableData.currentSpeed, (B, w) => (l(), f("td", {
6671
+ (l(!0), f(K, null, $(p.tableData.currentSpeed, (B, w) => (l(), f("td", {
6603
6672
  rowspan: "1",
6604
6673
  colspan: "1",
6605
6674
  key: Math.random()
6606
6675
  }, [
6607
- isNaN(p.tableData.currentDir[w]) ? D("", !0) : (l(), f("span", {
6676
+ isNaN(p.tableData.currentDir[w]) ? U("", !0) : (l(), f("span", {
6608
6677
  key: 0,
6609
6678
  class: "iconfont icon gray",
6610
- style: z0({ display: "inline-block", transform: `rotate(${p.tableData.currentDir[w]}deg)` })
6679
+ style: p0({ display: "inline-block", transform: `rotate(${p.tableData.currentDir[w]}deg)` })
6611
6680
  }, "", 4)),
6612
6681
  c("span", null, C(B), 1)
6613
6682
  ]))), 128))
6614
6683
  ])
6615
- ])) : D("", !0),
6616
- p.activeIndex === 3 ? (l(), f("table", IM, [
6617
- c("tr", jM, [
6618
- M[23] || (M[23] = c("th", {
6684
+ ], 512), [
6685
+ [v0, p.activeIndex === 2]
6686
+ ]),
6687
+ X0(c("table", jM, [
6688
+ c("tr", FM, [
6689
+ M[22] || (M[22] = c("th", {
6619
6690
  rowspan: "1",
6620
6691
  colspan: "1",
6621
6692
  class: "tr-title"
6622
6693
  }, [
6623
- Z("Hours"),
6694
+ b0("Hours"),
6624
6695
  c("span", { class: "unit" }, "(LT)")
6625
6696
  ], -1)),
6626
- (l(!0), f(V, null, Q(p.tableData.hours, (B) => (l(), f("th", {
6697
+ (l(!0), f(K, null, $(p.tableData.hours, (B) => (l(), f("th", {
6627
6698
  rowspan: "1",
6628
6699
  colspan: "1",
6629
6700
  key: Math.random()
6630
6701
  }, C(o.computeHourL(B)), 1))), 128))
6631
6702
  ]),
6632
- c("tr", FM, [
6633
- M[24] || (M[24] = c("th", {
6703
+ c("tr", UM, [
6704
+ M[23] || (M[23] = c("th", {
6634
6705
  rowspan: "1",
6635
6706
  colspan: "1",
6636
6707
  class: "tr-title"
6637
6708
  }, [
6638
- Z("UTC"),
6709
+ b0("UTC"),
6639
6710
  c("span", { class: "unit" })
6640
6711
  ], -1)),
6641
- (l(!0), f(V, null, Q(p.tableData.hours, (B) => (l(), f("th", {
6712
+ (l(!0), f(K, null, $(p.tableData.hours, (B) => (l(), f("th", {
6642
6713
  rowspan: "1",
6643
6714
  colspan: "1",
6644
6715
  key: Math.random()
6645
6716
  }, C(o.computeHourZ(B)), 1))), 128))
6646
6717
  ]),
6647
- c("tr", UM, [
6648
- M[25] || (M[25] = c("th", {
6718
+ c("tr", HM, [
6719
+ M[24] || (M[24] = c("th", {
6649
6720
  rowspan: "1",
6650
6721
  colspan: "1",
6651
6722
  class: "tr-title"
6652
6723
  }, null, -1)),
6653
- (l(!0), f(V, null, Q(p.tableData.weatherUrls, (B, w) => (l(), f("th", {
6724
+ (l(!0), f(K, null, $(p.tableData.weatherUrls, (B, w) => (l(), f("th", {
6654
6725
  rowspan: "1",
6655
6726
  colspan: "1",
6656
6727
  key: Math.random()
@@ -6661,63 +6732,62 @@ function KM(z, M, b, O, p, o) {
6661
6732
  content: p.tableData.weatherNames[w],
6662
6733
  "show-after": 500
6663
6734
  }, {
6664
- default: c0(() => [
6735
+ default: e0(() => [
6665
6736
  B ? (l(), f("img", {
6666
6737
  key: 0,
6667
6738
  class: "iconfont weather-icon",
6668
6739
  src: B
6669
- }, null, 8, HM)) : D("", !0)
6740
+ }, null, 8, GM)) : U("", !0)
6670
6741
  ]),
6671
6742
  _: 2
6672
6743
  }, 1032, ["content"])
6673
6744
  ]))), 128))
6674
6745
  ]),
6675
- c("tr", GM, [
6676
- M[26] || (M[26] = c("td", {
6746
+ c("tr", VM, [
6747
+ M[25] || (M[25] = c("td", {
6677
6748
  rowspan: "1",
6678
6749
  colspan: "1",
6679
6750
  class: "tr-title"
6680
6751
  }, [
6681
- Z("SeaLevel"),
6752
+ b0("SeaLevel"),
6682
6753
  c("span", { class: "unit" }, "m")
6683
6754
  ], -1)),
6684
- (l(!0), f(V, null, Q(p.tableData.seaLevel, (B) => (l(), f("td", {
6755
+ (l(!0), f(K, null, $(p.tableData.seaLevel, (B) => (l(), f("td", {
6685
6756
  rowspan: "1",
6686
6757
  colspan: "1",
6687
6758
  key: Math.random()
6688
6759
  }, C(B), 1))), 128))
6689
6760
  ]),
6690
- c("tr", VM, [
6691
- M[27] || (M[27] = c("td", {
6761
+ c("tr", KM, [
6762
+ M[26] || (M[26] = c("td", {
6692
6763
  rowspan: "1",
6693
6764
  colspan: "1",
6694
6765
  class: "tr-title"
6695
6766
  }, [
6696
- Z("SeaTemp"),
6767
+ b0("SeaTemp"),
6697
6768
  c("span", { class: "unit" }, "°C")
6698
6769
  ], -1)),
6699
- (l(!0), f(V, null, Q(p.tableData.seaTemp, (B) => (l(), f("td", {
6770
+ (l(!0), f(K, null, $(p.tableData.seaTemp, (B) => (l(), f("td", {
6700
6771
  rowspan: "1",
6701
6772
  colspan: "1",
6702
6773
  key: Math.random()
6703
6774
  }, C(B), 1))), 128))
6704
6775
  ])
6705
- ])) : D("", !0)
6776
+ ], 512), [
6777
+ [v0, p.activeIndex === 3]
6778
+ ])
6706
6779
  ])
6707
6780
  ]),
6708
- c("div", {
6709
- class: "more",
6710
- onClick: M[4] || (M[4] = v0((...B) => z.handleMore && z.handleMore(...B), ["prevent"]))
6711
- }, M[28] || (M[28] = [
6712
- c("span", { class: "more" }, "More >>", -1)
6713
- ]))
6781
+ M[27] || (M[27] = c("div", { class: "more" }, [
6782
+ c("span", { class: "more" }, "More >>")
6783
+ ], -1))
6714
6784
  ])
6715
6785
  ], 512), [
6716
- [w0, p.showMeteo]
6786
+ [v0, p.showMeteo]
6717
6787
  ])
6718
6788
  ]);
6719
6789
  }
6720
- const JM = /* @__PURE__ */ I(pM, [["render", KM], ["__scopeId", "data-v-7191d827"]]), QM = {
6790
+ const QM = /* @__PURE__ */ I(pM, [["render", JM], ["__scopeId", "data-v-12506580"]]), $M = {
6721
6791
  name: "IdmWarZone",
6722
6792
  props: {
6723
6793
  map: {
@@ -6807,10 +6877,10 @@ const JM = /* @__PURE__ */ I(pM, [["render", KM], ["__scopeId", "data-v-7191d827
6807
6877
  }
6808
6878
  }
6809
6879
  };
6810
- function $M(z, M, b, O, p, o) {
6880
+ function ZM(z, M, b, O, p, o) {
6811
6881
  return l(), f("div");
6812
6882
  }
6813
- const ZM = /* @__PURE__ */ I(QM, [["render", $M]]), YM = {
6883
+ const YM = /* @__PURE__ */ I($M, [["render", ZM]]), Mb = {
6814
6884
  name: "IdmGmdssArea",
6815
6885
  props: {
6816
6886
  map: {
@@ -6930,10 +7000,10 @@ const ZM = /* @__PURE__ */ I(QM, [["render", $M]]), YM = {
6930
7000
  }
6931
7001
  }
6932
7002
  };
6933
- function Mb(z, M, b, O, p, o) {
7003
+ function bb(z, M, b, O, p, o) {
6934
7004
  return l(), f("div");
6935
7005
  }
6936
- const bb = /* @__PURE__ */ I(YM, [["render", Mb]]), zb = {
7006
+ const zb = /* @__PURE__ */ I(Mb, [["render", bb]]), pb = {
6937
7007
  name: "IdmEcaZone",
6938
7008
  props: {
6939
7009
  map: {
@@ -7021,11 +7091,11 @@ const bb = /* @__PURE__ */ I(YM, [["render", Mb]]), zb = {
7021
7091
  }
7022
7092
  }
7023
7093
  };
7024
- function pb(z, M, b, O, p, o) {
7094
+ function Ob(z, M, b, O, p, o) {
7025
7095
  return l(), f("div");
7026
7096
  }
7027
- const Ob = /* @__PURE__ */ I(zb, [["render", pb]]);
7028
- const ob = {
7097
+ const ob = /* @__PURE__ */ I(pb, [["render", Ob]]);
7098
+ const cb = {
7029
7099
  name: "IdmAlertZone",
7030
7100
  props: {
7031
7101
  map: {
@@ -7068,7 +7138,7 @@ const ob = {
7068
7138
  if (b) {
7069
7139
  this.showZone = !0, this.form = { ...b.properties };
7070
7140
  const p = document.getElementById("idm-gl3-zone-info");
7071
- this.marker ? this.marker.setLngLat([z.lngLat.lng, z.lngLat.lat]) : this.marker = new R0.Marker(p).setLngLat([z.lngLat.lng, z.lngLat.lat]).setOffset([0, 0]).addTo(this.map);
7141
+ this.marker ? this.marker.setLngLat([z.lngLat.lng, z.lngLat.lat]) : this.marker = new m0.Marker(p).setLngLat([z.lngLat.lng, z.lngLat.lat]).setOffset([0, 0]).addTo(this.map);
7072
7142
  }
7073
7143
  },
7074
7144
  handleRender() {
@@ -7155,10 +7225,10 @@ const ob = {
7155
7225
  this.map.getLayer(this.polygonLayer) && this.map.removeLayer(this.polygonLayer), this.map.getLayer(this.polygonLayer + "-border") && this.map.removeLayer(this.polygonLayer + "-border"), this.map.getLayer(this.polygonLabelLayer) && this.map.removeLayer(this.polygonLabelLayer), this.map.getLayer(this.lineLayer) && this.map.removeLayer(this.lineLayer), this.map.getLayer(this.lineLabelLayer) && this.map.removeLayer(this.lineLabelLayer), this.map.getLayer(this.pointLayer) && this.map.removeLayer(this.pointLayer), this.map.getSource(this.source) && this.map.removeSource(this.source);
7156
7226
  }
7157
7227
  }
7158
- }, cb = { id: "idm-gl3-zone-info" }, eb = ["innerHTML"];
7159
- function Ab(z, M, b, O, p, o) {
7228
+ }, eb = { id: "idm-gl3-zone-info" }, Ab = ["innerHTML"];
7229
+ function tb(z, M, b, O, p, o) {
7160
7230
  var e;
7161
- return T0((l(), f("div", cb, [
7231
+ return X0((l(), f("div", eb, [
7162
7232
  c("div", {
7163
7233
  class: "iconfont close",
7164
7234
  onClick: M[0] || (M[0] = (t) => p.showZone = !1)
@@ -7166,13 +7236,13 @@ function Ab(z, M, b, O, p, o) {
7166
7236
  c("div", {
7167
7237
  class: "rich-context",
7168
7238
  innerHTML: (e = p.form) == null ? void 0 : e.name
7169
- }, null, 8, eb)
7239
+ }, null, 8, Ab)
7170
7240
  ], 512)), [
7171
- [w0, p.showZone]
7241
+ [v0, p.showZone]
7172
7242
  ]);
7173
7243
  }
7174
- const tb = /* @__PURE__ */ I(ob, [["render", Ab]]);
7175
- const ab = {
7244
+ const ab = /* @__PURE__ */ I(cb, [["render", tb]]);
7245
+ const qb = {
7176
7246
  name: "IdmPort",
7177
7247
  props: {
7178
7248
  map: {
@@ -7198,12 +7268,12 @@ const ab = {
7198
7268
  computed: {
7199
7269
  computeLat() {
7200
7270
  return function(z) {
7201
- return $.lat2pretty(z, 4).pretty;
7271
+ return M0.lat2pretty(z, 4).pretty;
7202
7272
  };
7203
7273
  },
7204
7274
  computeLng() {
7205
7275
  return function(z) {
7206
- return $.lng2pretty(z, 4).pretty;
7276
+ return M0.lng2pretty(z, 4).pretty;
7207
7277
  };
7208
7278
  }
7209
7279
  },
@@ -7225,7 +7295,7 @@ const ab = {
7225
7295
  if (b) {
7226
7296
  this.showPort = !0, this.form = { ...b.properties }, this.form.lng = b.geometry.coordinates[0], this.form.lat = b.geometry.coordinates[1];
7227
7297
  const p = document.getElementById("port-info");
7228
- this.marker ? this.marker.setLngLat([z.lngLat.lng, z.lngLat.lat]) : this.marker = new R0.Marker(p).setLngLat([z.lngLat.lng, z.lngLat.lat]).setOffset([0, -85]).addTo(this.map);
7298
+ this.marker ? this.marker.setLngLat([z.lngLat.lng, z.lngLat.lat]) : this.marker = new m0.Marker(p).setLngLat([z.lngLat.lng, z.lngLat.lat]).setOffset([0, -85]).addTo(this.map);
7229
7299
  }
7230
7300
  },
7231
7301
  handleEmit() {
@@ -7264,41 +7334,41 @@ const ab = {
7264
7334
  this.showPort = !1, this.map.getLayer(this.layer) && this.map.removeLayer(this.layer), this.map.getSource(this.source) && this.map.removeSource(this.source);
7265
7335
  }
7266
7336
  }
7267
- }, qb = { id: "port-info" }, ib = { class: "port-box" }, rb = { class: "flex-start" }, nb = { class: "flex-start" }, db = { class: "flex-start" }, Wb = {
7337
+ }, ib = { id: "port-info" }, rb = { class: "port-box" }, nb = { class: "flex-start" }, db = { class: "flex-start" }, Wb = { class: "flex-start" }, sb = {
7268
7338
  class: "flex-start",
7269
7339
  style: { "align-items": "flex-start" }
7270
7340
  };
7271
- function sb(z, M, b, O, p, o) {
7272
- return T0((l(), f("div", qb, [
7341
+ function lb(z, M, b, O, p, o) {
7342
+ return X0((l(), f("div", ib, [
7273
7343
  c("div", {
7274
7344
  class: "close iconfont",
7275
7345
  onClick: M[0] || (M[0] = (e) => p.showPort = !1)
7276
7346
  }, ""),
7277
- c("div", ib, [
7278
- c("div", rb, [
7347
+ c("div", rb, [
7348
+ c("div", nb, [
7279
7349
  M[2] || (M[2] = c("label", null, "Name : ", -1)),
7280
7350
  c("span", {
7281
7351
  onClick: M[1] || (M[1] = (...e) => o.handleEmit && o.handleEmit(...e))
7282
7352
  }, C(p.form.name), 1)
7283
7353
  ]),
7284
- c("div", nb, [
7354
+ c("div", db, [
7285
7355
  M[3] || (M[3] = c("label", null, "Position : ", -1)),
7286
7356
  c("span", null, C(o.computeLat(p.form.lat)) + ", " + C(o.computeLng(p.form.lng)), 1)
7287
7357
  ]),
7288
- c("div", db, [
7358
+ c("div", Wb, [
7289
7359
  M[4] || (M[4] = c("label", null, "LoCode : ", -1)),
7290
7360
  c("span", null, C(p.form.loCode || "-"), 1)
7291
7361
  ]),
7292
- c("div", Wb, [
7362
+ c("div", sb, [
7293
7363
  M[5] || (M[5] = c("label", null, "Region : ", -1)),
7294
7364
  c("span", null, C(p.form.zoneName || "-"), 1)
7295
7365
  ])
7296
7366
  ])
7297
7367
  ], 512)), [
7298
- [w0, p.showPort]
7368
+ [v0, p.showPort]
7299
7369
  ]);
7300
7370
  }
7301
- const lb = /* @__PURE__ */ I(ab, [["render", sb], ["__scopeId", "data-v-c07e4c45"]]), fb = {
7371
+ const fb = /* @__PURE__ */ I(qb, [["render", lb], ["__scopeId", "data-v-c07e4c45"]]), ub = {
7302
7372
  name: "IdmLoadLine",
7303
7373
  props: {
7304
7374
  map: {
@@ -7368,10 +7438,10 @@ const lb = /* @__PURE__ */ I(ab, [["render", sb], ["__scopeId", "data-v-c07e4c45
7368
7438
  }
7369
7439
  }
7370
7440
  };
7371
- function ub(z, M, b, O, p, o) {
7441
+ function Lb(z, M, b, O, p, o) {
7372
7442
  return l(), f("div");
7373
7443
  }
7374
- const Lb = /* @__PURE__ */ I(fb, [["render", ub]]), Rb = {
7444
+ const Rb = /* @__PURE__ */ I(ub, [["render", Lb]]), hb = {
7375
7445
  name: "IdmTimezone",
7376
7446
  props: {
7377
7447
  map: {
@@ -7536,10 +7606,10 @@ const Lb = /* @__PURE__ */ I(fb, [["render", ub]]), Rb = {
7536
7606
  }
7537
7607
  }
7538
7608
  };
7539
- function hb(z, M, b, O, p, o) {
7609
+ function mb(z, M, b, O, p, o) {
7540
7610
  return l(), f("div");
7541
7611
  }
7542
- const mb = /* @__PURE__ */ I(Rb, [["render", hb]]), Nb = {
7612
+ const Nb = /* @__PURE__ */ I(hb, [["render", mb]]), Bb = {
7543
7613
  name: "IdmVoluntaryReportingArea",
7544
7614
  props: {
7545
7615
  map: {
@@ -7627,10 +7697,10 @@ const mb = /* @__PURE__ */ I(Rb, [["render", hb]]), Nb = {
7627
7697
  }
7628
7698
  }
7629
7699
  };
7630
- function Bb(z, M, b, O, p, o) {
7700
+ function yb(z, M, b, O, p, o) {
7631
7701
  return l(), f("div");
7632
7702
  }
7633
- const yb = /* @__PURE__ */ I(Nb, [["render", Bb]]), gb = {
7703
+ const gb = /* @__PURE__ */ I(Bb, [["render", yb]]), Xb = {
7634
7704
  name: "IdmSpecialArea",
7635
7705
  props: {
7636
7706
  map: {
@@ -7660,7 +7730,7 @@ const yb = /* @__PURE__ */ I(Nb, [["render", Bb]]), gb = {
7660
7730
  methods: {
7661
7731
  handleRender() {
7662
7732
  this.map ? (this.handleClear(), this.area && (this.area.features.forEach((z) => {
7663
- z.geometry.type === "Polygon" && z.geometry.coordinates.forEach((M) => $.convertToMonotonicLng2(M));
7733
+ z.geometry.type === "Polygon" && z.geometry.coordinates.forEach((M) => M0.convertToMonotonicLng2(M));
7664
7734
  }), this.map.addSource(this.source, {
7665
7735
  type: "geojson",
7666
7736
  data: this.area
@@ -7720,10 +7790,10 @@ const yb = /* @__PURE__ */ I(Nb, [["render", Bb]]), gb = {
7720
7790
  }
7721
7791
  }
7722
7792
  };
7723
- function Xb(z, M, b, O, p, o) {
7793
+ function vb(z, M, b, O, p, o) {
7724
7794
  return l(), f("div");
7725
7795
  }
7726
- const vb = /* @__PURE__ */ I(gb, [["render", Xb]]), Tb = {
7796
+ const Tb = /* @__PURE__ */ I(Xb, [["render", vb]]), wb = {
7727
7797
  name: "IdmTerminator",
7728
7798
  props: {
7729
7799
  map: {
@@ -7772,11 +7842,11 @@ const vb = /* @__PURE__ */ I(gb, [["render", Xb]]), Tb = {
7772
7842
  }
7773
7843
  }
7774
7844
  };
7775
- function wb(z, M, b, O, p, o) {
7845
+ function Cb(z, M, b, O, p, o) {
7776
7846
  return l(), f("div");
7777
7847
  }
7778
- const Cb = /* @__PURE__ */ I(Tb, [["render", wb]]);
7779
- const _b = {
7848
+ const _b = /* @__PURE__ */ I(wb, [["render", Cb]]);
7849
+ const xb = {
7780
7850
  name: "IdmLatLng",
7781
7851
  props: {
7782
7852
  map: {
@@ -7834,7 +7904,7 @@ const _b = {
7834
7904
  this.show ? ((z = this.map) == null || z.on("zoomend", this.handleZoomEnd), this.handleRender()) : (this.handleClear(), (M = this.map) == null || M.off("zoomend", this.handleZoomEnd));
7835
7905
  },
7836
7906
  handleMouseMove(z) {
7837
- const M = z.lngLat, b = $.lng2pretty(M.lng, 2), O = $.lat2pretty(M.lat, 2);
7907
+ const M = z.lngLat, b = M0.lng2pretty(M.lng, 2), O = M0.lat2pretty(M.lat, 2);
7838
7908
  this.lngLat = { lng: b, lat: O };
7839
7909
  },
7840
7910
  handleComputeLatLngs() {
@@ -7932,18 +8002,18 @@ const _b = {
7932
8002
  }
7933
8003
  }
7934
8004
  };
7935
- function xb(z, M, b, O, p, o) {
8005
+ function Sb(z, M, b, O, p, o) {
7936
8006
  return p.lngLat ? (l(), f("div", {
7937
8007
  key: 0,
7938
8008
  class: "lat-lng-tip",
7939
- style: z0({ right: p.right + "px", bottom: b.bottom })
8009
+ style: p0({ right: p.right + "px", bottom: b.bottom })
7940
8010
  }, [
7941
8011
  c("span", null, C(p.lngLat.lat.pretty), 1),
7942
8012
  M[0] || (M[0] = c("span", null, ", ", -1)),
7943
8013
  c("span", null, C(p.lngLat.lng.pretty), 1)
7944
- ], 4)) : D("", !0);
8014
+ ], 4)) : U("", !0);
7945
8015
  }
7946
- const H0 = /* @__PURE__ */ I(_b, [["render", xb], ["__scopeId", "data-v-73241fe7"]]), Sb = {
8016
+ const H0 = /* @__PURE__ */ I(xb, [["render", Sb], ["__scopeId", "data-v-73241fe7"]]), Eb = {
7947
8017
  name: "IdmMeasure",
7948
8018
  props: {
7949
8019
  map: {
@@ -8047,7 +8117,7 @@ const H0 = /* @__PURE__ */ I(_b, [["render", xb], ["__scopeId", "data-v-73241fe7
8047
8117
  const t = this.geojson.filter((q) => q.id === M.split("-")[0])[0].features.filter((q) => q.geometry.type === "Point");
8048
8118
  if (t.length > 2 && t.filter((r) => r.properties.id === (M == null ? void 0 : M.split("-")[1]))[0]) {
8049
8119
  const r = document.createElement("div");
8050
- r.className = "point-contextmenu-marker", r.innerHTML = `<span id="del-${M}" class="del-point">Del</span>`, this.contextmenu = new R0.Marker(r).setOffset([24, 0]).setLngLat([z.lngLat.lng, z.lngLat.lat]).addTo(this.map);
8120
+ r.className = "point-contextmenu-marker", r.innerHTML = `<span id="del-${M}" class="del-point">Del</span>`, this.contextmenu = new m0.Marker(r).setOffset([24, 0]).setLngLat([z.lngLat.lng, z.lngLat.lat]).addTo(this.map);
8051
8121
  }
8052
8122
  }
8053
8123
  },
@@ -8083,10 +8153,10 @@ const H0 = /* @__PURE__ */ I(_b, [["render", xb], ["__scopeId", "data-v-73241fe7
8083
8153
  let b = 0;
8084
8154
  const O = [];
8085
8155
  for (let p = 1; p < M.length; p++) {
8086
- const o = M[p - 1], e = M[p], t = o.properties, q = { lng: o.geometry.coordinates[0], lat: o.geometry.coordinates[1] }, r = { lng: e.geometry.coordinates[0], lat: e.geometry.coordinates[1] }, a = L0.calculateDistance(q, r, t.mode === "RL", 2), i = L0.calculateBearing(q, r, t.mode === "RL", 2);
8087
- b = $.roundPrecision(b + a, 2);
8156
+ const o = M[p - 1], e = M[p], t = o.properties, q = { lng: o.geometry.coordinates[0], lat: o.geometry.coordinates[1] }, r = { lng: e.geometry.coordinates[0], lat: e.geometry.coordinates[1] }, a = R0.calculateDistance(q, r, t.mode === "RL", 2), i = R0.calculateBearing(q, r, t.mode === "RL", 2);
8157
+ b = M0.roundPrecision(b + a, 2);
8088
8158
  let L;
8089
- t.mode === "RL" ? L = $.convertToMonotonicLng([q, r]) : L = $.convertToMonotonicLng(L0.interpolateCoordinates(q, r, 200));
8159
+ t.mode === "RL" ? L = M0.convertToMonotonicLng([q, r]) : L = M0.convertToMonotonicLng(R0.interpolateCoordinates(q, r, 200));
8090
8160
  const n = T.lineString(L.map((h) => [h.lng, h.lat]));
8091
8161
  n.properties.dist = a, n.properties.bearing = i, n.properties.total = b, O.push(n);
8092
8162
  }
@@ -8099,17 +8169,17 @@ const H0 = /* @__PURE__ */ I(_b, [["render", xb], ["__scopeId", "data-v-73241fe7
8099
8169
  let o, e;
8100
8170
  if (M) {
8101
8171
  const q = M.properties, r = { lng: M.geometry.coordinates[0], lat: M.geometry.coordinates[1] }, a = { lng: b.lng, lat: b.lat };
8102
- o = L0.calculateDistance(r, a, q.mode === "RL", 2), e = L0.calculateBearing(r, a, q.mode === "RL", 2);
8172
+ o = R0.calculateDistance(r, a, q.mode === "RL", 2), e = R0.calculateBearing(r, a, q.mode === "RL", 2);
8103
8173
  let i;
8104
- q.mode === "RL" ? i = $.convertToMonotonicLng([r, a]) : i = $.convertToMonotonicLng(L0.interpolateCoordinates(r, a, 200));
8174
+ q.mode === "RL" ? i = M0.convertToMonotonicLng([r, a]) : i = M0.convertToMonotonicLng(R0.interpolateCoordinates(r, a, 200));
8105
8175
  const L = T.lineString(i.map((n) => [n.lng, n.lat]));
8106
8176
  L.properties.dist = o, L.properties.bearing = e, p.features.push(L);
8107
8177
  }
8108
8178
  if (O) {
8109
8179
  const q = b.properties, r = b, a = { lng: O.geometry.coordinates[0], lat: O.geometry.coordinates[1] };
8110
- o = L0.calculateDistance(r, a, q.mode === "RL", 2), e = L0.calculateBearing(r, a, q.mode === "RL", 2);
8180
+ o = R0.calculateDistance(r, a, q.mode === "RL", 2), e = R0.calculateBearing(r, a, q.mode === "RL", 2);
8111
8181
  let i;
8112
- q.mode === "RL" ? i = $.convertToMonotonicLng([r, a]) : i = $.convertToMonotonicLng(L0.interpolateCoordinates(r, a, 200));
8182
+ q.mode === "RL" ? i = M0.convertToMonotonicLng([r, a]) : i = M0.convertToMonotonicLng(R0.interpolateCoordinates(r, a, 200));
8113
8183
  const L = T.lineString(i.map((n) => [n.lng, n.lat]));
8114
8184
  L.properties.dist = o, L.properties.bearing = e, p.features.push(L);
8115
8185
  }
@@ -8151,11 +8221,11 @@ const H0 = /* @__PURE__ */ I(_b, [["render", xb], ["__scopeId", "data-v-73241fe7
8151
8221
  }
8152
8222
  });
8153
8223
  let t;
8154
- if (O ? t = '<div class="marker-label">Drag and drop</div>' : t = `<div class="marker-label">Tol distance: <b>${$.roundPrecision((z.total ?? 0) + o, 2)}</b>nm, bearing: <b>${e}</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)
8224
+ if (O ? t = '<div class="marker-label">Drag and drop</div>' : t = `<div class="marker-label">Tol distance: <b>${M0.roundPrecision((z.total ?? 0) + o, 2)}</b>nm, bearing: <b>${e}</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)
8155
8225
  this.tipMarker._element.innerHTML = t, this.tipMarker.setLngLat([b.lng, b.lat]);
8156
8226
  else {
8157
8227
  const q = document.createElement("div");
8158
- q.className = "tip-marker", q.innerHTML = t, this.tipMarker = new R0.Marker(q).setOffset([140, 0]).setLngLat([b.lng, b.lat]).addTo(this.map);
8228
+ q.className = "tip-marker", q.innerHTML = t, this.tipMarker = new m0.Marker(q).setOffset([140, 0]).setLngLat([b.lng, b.lat]).addTo(this.map);
8159
8229
  }
8160
8230
  },
8161
8231
  handleMove(z) {
@@ -8213,12 +8283,12 @@ const H0 = /* @__PURE__ */ I(_b, [["render", xb], ["__scopeId", "data-v-73241fe7
8213
8283
  for (const e of o) {
8214
8284
  const t = document.createElement("div");
8215
8285
  t.id = `${z.id}-${e.properties.id}`, t.className = `${z.closed ? "point-marker closed" : "point-marker"}`, t.innerHTML = '<div class="marker-circle"></div>';
8216
- const q = new R0.Marker({ element: t, draggable: !0, contextmenu: !0 }).setLngLat(e.geometry.coordinates).addTo(this.map);
8286
+ const q = new m0.Marker({ element: t, draggable: !0, contextmenu: !0 }).setLngLat(e.geometry.coordinates).addTo(this.map);
8217
8287
  q.on("drag", this.handleDrag), q.on("dragend", this.handleDragEnd), this.pointMarkers[z.id] ? this.pointMarkers[z.id].push(q) : this.pointMarkers[z.id] = [q];
8218
8288
  }
8219
8289
  if (z.closed) {
8220
8290
  const e = o.at(-1), q = z.features.filter((a) => a.geometry.type === "LineString").at(-1), r = document.createElement("div");
8221
- r.className = "point-summary-marker", r.innerHTML = `<div id="${z.id}" class="marker-close">×</div><div class="marker-label">Tol: ${q.properties.total}nm</div>`, this.closeMarkers[z.id] = new R0.Marker(r).setOffset([60, 0]).setLngLat(e.geometry.coordinates).addTo(this.map);
8291
+ r.className = "point-summary-marker", r.innerHTML = `<div id="${z.id}" class="marker-close">×</div><div class="marker-label">Tol: ${q.properties.total}nm</div>`, this.closeMarkers[z.id] = new m0.Marker(r).setOffset([60, 0]).setLngLat(e.geometry.coordinates).addTo(this.map);
8222
8292
  }
8223
8293
  }
8224
8294
  },
@@ -8231,11 +8301,11 @@ const H0 = /* @__PURE__ */ I(_b, [["render", xb], ["__scopeId", "data-v-73241fe7
8231
8301
  }
8232
8302
  }
8233
8303
  };
8234
- function Eb(z, M, b, O, p, o) {
8304
+ function Pb(z, M, b, O, p, o) {
8235
8305
  return l(), f("div");
8236
8306
  }
8237
- const Pb = /* @__PURE__ */ I(Sb, [["render", Eb]]);
8238
- const kb = {
8307
+ const kb = /* @__PURE__ */ I(Eb, [["render", Pb]]);
8308
+ const Db = {
8239
8309
  name: "IdmENC",
8240
8310
  props: {
8241
8311
  map: {
@@ -8287,24 +8357,24 @@ const kb = {
8287
8357
  }
8288
8358
  },
8289
8359
  methods: {}
8290
- }, Db = { key: 0 }, Ib = { class: "bar-item" };
8291
- function jb(z, M, b, O, p, o) {
8360
+ }, Ib = { key: 0 }, jb = { class: "bar-item" };
8361
+ function Fb(z, M, b, O, p, o) {
8292
8362
  const e = x("ElTooltip");
8293
- return b.enabled && b.permission & p.helper.LEVEL.Supper ? (l(), f("div", Db, [
8363
+ return b.enabled && b.permission & p.helper.LEVEL.Supper ? (l(), f("div", Ib, [
8294
8364
  c("div", {
8295
8365
  class: "menu-bar-box",
8296
- style: z0({ position: "absolute", right: p.right + "px", bottom: b.bottom })
8366
+ style: p0({ position: "absolute", right: p.right + "px", bottom: b.bottom })
8297
8367
  }, [
8298
- c("div", Ib, [
8368
+ c("div", jb, [
8299
8369
  v(e, {
8300
8370
  placement: "left",
8301
8371
  effect: "light",
8302
8372
  content: "Hifleet",
8303
8373
  "show-after": 1e3
8304
8374
  }, {
8305
- default: c0(() => [
8375
+ default: e0(() => [
8306
8376
  c("div", {
8307
- class: K(p.vendor === "hi" ? "menu-icon active" : "menu-icon"),
8377
+ class: J(p.vendor === "hi" ? "menu-icon active" : "menu-icon"),
8308
8378
  onClick: M[0] || (M[0] = (t) => p.vendor = "hi")
8309
8379
  }, M[2] || (M[2] = [
8310
8380
  c("span", { class: "iconfont" }, "HI", -1)
@@ -8318,9 +8388,9 @@ function jb(z, M, b, O, p, o) {
8318
8388
  content: "I4insight",
8319
8389
  "show-after": 1e3
8320
8390
  }, {
8321
- default: c0(() => [
8391
+ default: e0(() => [
8322
8392
  c("div", {
8323
- class: K(p.vendor === "i4" ? "menu-icon active" : "menu-icon"),
8393
+ class: J(p.vendor === "i4" ? "menu-icon active" : "menu-icon"),
8324
8394
  onClick: M[1] || (M[1] = (t) => p.vendor = "i4")
8325
8395
  }, M[3] || (M[3] = [
8326
8396
  c("span", { class: "iconfont" }, "I4", -1)
@@ -8330,10 +8400,10 @@ function jb(z, M, b, O, p, o) {
8330
8400
  })
8331
8401
  ])
8332
8402
  ], 4)
8333
- ])) : D("", !0);
8403
+ ])) : U("", !0);
8334
8404
  }
8335
- const Fb = /* @__PURE__ */ I(kb, [["render", jb], ["__scopeId", "data-v-150235f7"]]);
8336
- const Ub = {
8405
+ const Ub = /* @__PURE__ */ I(Db, [["render", Fb], ["__scopeId", "data-v-150235f7"]]);
8406
+ const Hb = {
8337
8407
  name: "IdmGLV2",
8338
8408
  components: {
8339
8409
  IdmGlLayer: w1,
@@ -8352,20 +8422,20 @@ const Ub = {
8352
8422
  IdmWaterTemp: S2,
8353
8423
  IdmTemp: D2,
8354
8424
  IdmArctic: U2,
8355
- IdmWarZone: ZM,
8356
- IdmGmdssArea: bb,
8357
- IdmEcaZone: Ob,
8358
- IdmAlertZone: tb,
8359
- IdmPort: lb,
8360
- IdmLoadLine: Lb,
8361
- IdmTimezone: mb,
8362
- IdmVRA: yb,
8363
- IdmSpecialArea: vb,
8364
- IdmTerminator: Cb,
8425
+ IdmWarZone: YM,
8426
+ IdmGmdssArea: zb,
8427
+ IdmEcaZone: ob,
8428
+ IdmAlertZone: ab,
8429
+ IdmPort: fb,
8430
+ IdmLoadLine: Rb,
8431
+ IdmTimezone: Nb,
8432
+ IdmVRA: gb,
8433
+ IdmSpecialArea: Tb,
8434
+ IdmTerminator: _b,
8365
8435
  IdmLatLng: H0,
8366
- IdmMeasure: Pb,
8367
- IdmPoint: JM,
8368
- IdmENC: Fb
8436
+ IdmMeasure: kb,
8437
+ IdmPoint: QM,
8438
+ IdmENC: Ub
8369
8439
  },
8370
8440
  props: {
8371
8441
  map: {
@@ -8419,7 +8489,7 @@ const Ub = {
8419
8489
  watch: {
8420
8490
  ts: {
8421
8491
  handler(z, M) {
8422
- z && M && A0(z).utc().format("yyyy-MM-DD HH") !== A0(M).utc().format("yyyy-MM-DD HH") && this.$nextTick(() => {
8492
+ z && M && H(z).utc().format("yyyy-MM-DD HH") !== H(M).utc().format("yyyy-MM-DD HH") && this.$nextTick(() => {
8423
8493
  this.handleDateChange({ tropicals: !1 });
8424
8494
  });
8425
8495
  },
@@ -8509,7 +8579,7 @@ const Ub = {
8509
8579
  if (this.weatherWeight > 0) {
8510
8580
  let u = this.weatherWeight, d;
8511
8581
  if (z.tropicals || this.weatherWeight & 256 && (d = this.weatherLayers.tropicals, d && (u -= 256, d.version = Math.random() + 1)), u > 0) {
8512
- const m = await y0.get(`${this.gateway}/api/arc/weather/layers/links?l=${u}&v=${this.source}&z=${L}&bbox=${h}&t=${this.ts}`, {
8582
+ const m = await h0.get(`${this.gateway}/api/arc/weather/layers/links?l=${u}&v=${this.source}&z=${L}&bbox=${h}&t=${this.ts}`, {
8513
8583
  headers: {
8514
8584
  Authorization: this.token || this.defaultMeteoToken
8515
8585
  }
@@ -8518,7 +8588,7 @@ const Ub = {
8518
8588
  const R = (t = m == null ? void 0 : m.data) == null ? void 0 : t.data, g = [];
8519
8589
  for (const y in R)
8520
8590
  y === "ice-edge" && (R[y] = "https://idm-hz.oss-cn-hangzhou.aliyuncs.com/test/sea_ice_contours.geojson"), y !== "tropicals" && g.push(
8521
- y0.get(R[y], {
8591
+ h0.get(R[y], {
8522
8592
  headers: {
8523
8593
  Authorization: this.token || this.defaultMeteoToken,
8524
8594
  key: y
@@ -8530,21 +8600,21 @@ const Ub = {
8530
8600
  );
8531
8601
  const _ = await Promise.all(g);
8532
8602
  this.weatherLayers = {}, _.map((y) => {
8533
- var w, Y, M0, q0;
8534
- const F = ((w = y == null ? void 0 : y.data) == null ? void 0 : w.data) || (y == null ? void 0 : y.data), B = (M0 = (Y = y == null ? void 0 : y.config) == null ? void 0 : Y.headers) == null ? void 0 : M0.key;
8603
+ var w, Z, Y, a0;
8604
+ const F = ((w = y == null ? void 0 : y.data) == null ? void 0 : w.data) || (y == null ? void 0 : y.data), B = (Y = (Z = y == null ? void 0 : y.config) == null ? void 0 : Z.headers) == null ? void 0 : Y.key;
8535
8605
  B && F && (this.weatherLayers[B] = {
8536
8606
  raw: F,
8537
- type: ((q0 = y == null ? void 0 : y.config) == null ? void 0 : q0.responseType) === "blob" ? "image" : "json",
8607
+ type: ((a0 = y == null ? void 0 : y.config) == null ? void 0 : a0.responseType) === "blob" ? "image" : "json",
8538
8608
  etime: this.ts
8539
8609
  });
8540
- }), R.tropicals && y0.get(R.tropicals, {
8610
+ }), R.tropicals && h0.get(R.tropicals, {
8541
8611
  headers: {
8542
8612
  Authorization: this.token || this.defaultMeteoToken,
8543
8613
  key: "tropicals"
8544
8614
  }
8545
8615
  }).then((y) => {
8546
- var w, Y, M0;
8547
- const F = I0.convert2Geojson(((w = y == null ? void 0 : y.data) == null ? void 0 : w.data) || (y == null ? void 0 : y.data)), B = (M0 = (Y = y == null ? void 0 : y.config) == null ? void 0 : Y.headers) == null ? void 0 : M0.key;
8616
+ var w, Z, Y;
8617
+ const F = I0.convert2Geojson(((w = y == null ? void 0 : y.data) == null ? void 0 : w.data) || (y == null ? void 0 : y.data)), B = (Y = (Z = y == null ? void 0 : y.config) == null ? void 0 : Z.headers) == null ? void 0 : Y.key;
8548
8618
  this.weatherLayers[B] = {
8549
8619
  data: F,
8550
8620
  active: !0,
@@ -8588,7 +8658,7 @@ const Ub = {
8588
8658
  let e = !1;
8589
8659
  if (this.otherWeight & 2048 && (o = this.otherWeight - 2048, e = !0), o) {
8590
8660
  if (z.all) {
8591
- const t = await y0.get(`${this.gateway}/api/arc/other/layers/links?l=${o}&t=${this.ts}`, {
8661
+ const t = await h0.get(`${this.gateway}/api/arc/other/layers/links?l=${o}&t=${this.ts}`, {
8592
8662
  headers: {
8593
8663
  Authorization: this.token || this.defaultMeteoToken
8594
8664
  }
@@ -8597,7 +8667,7 @@ const Ub = {
8597
8667
  const q = (b = t == null ? void 0 : t.data) == null ? void 0 : b.data, r = [];
8598
8668
  for (const i in q)
8599
8669
  r.push(
8600
- y0.get(q[i], {
8670
+ h0.get(q[i], {
8601
8671
  headers: {
8602
8672
  Authorization: this.token || this.defaultMeteoToken,
8603
8673
  key: i
@@ -8612,7 +8682,7 @@ const Ub = {
8612
8682
  });
8613
8683
  }
8614
8684
  } else if (z.dayNight && o & 1024) {
8615
- const t = await y0.get(`${this.gateway}/api/arc/other/layers/links?l=1024&t=${this.ts}`, {
8685
+ const t = await h0.get(`${this.gateway}/api/arc/other/layers/links?l=1024&t=${this.ts}`, {
8616
8686
  headers: {
8617
8687
  Authorization: this.token || this.defaultMeteoToken
8618
8688
  }
@@ -8621,7 +8691,7 @@ const Ub = {
8621
8691
  const q = (p = t == null ? void 0 : t.data) == null ? void 0 : p.data, r = [];
8622
8692
  for (const i in q)
8623
8693
  r.push(
8624
- y0.get(q[i], {
8694
+ h0.get(q[i], {
8625
8695
  headers: {
8626
8696
  Authorization: this.token || this.defaultMeteoToken,
8627
8697
  key: i
@@ -8689,7 +8759,7 @@ const Ub = {
8689
8759
  var r, a, i, L;
8690
8760
  const z = (/* @__PURE__ */ new Date()).valueOf();
8691
8761
  let M = 0, b = 0;
8692
- const O = (r = this.map) == null ? void 0 : r.getBounds(), p = this.map.getZoom(), o = $.convertToStdLng(O._sw.lng), e = $.convertToStdLng(O._ne.lng), t = Math.floor(O._sw.lat), q = Math.ceil(O._ne.lat);
8762
+ const O = (r = this.map) == null ? void 0 : r.getBounds(), p = this.map.getZoom(), o = M0.convertToStdLng(O._sw.lng), e = M0.convertToStdLng(O._ne.lng), t = Math.floor(O._sw.lat), q = Math.ceil(O._ne.lat);
8693
8763
  for (const n in this.weatherLayers)
8694
8764
  if (this.weatherLayers[n].active && this.weatherLayers[n].type === "json") {
8695
8765
  this.weatherLayers[n].active = !1, this.weatherLayers[n].version = Math.random() + 1;
@@ -8833,7 +8903,7 @@ const Ub = {
8833
8903
  }
8834
8904
  for (const m in u.Point)
8835
8905
  u.Point[m].lng.forEach((R, g) => {
8836
- R = $.convertToStdLng(R), d.push(
8906
+ R = M0.convertToStdLng(R), d.push(
8837
8907
  T.point([R, m], {
8838
8908
  val: u.Point[m].val[g],
8839
8909
  type: u.Point[m].type[g]
@@ -8873,7 +8943,7 @@ const Ub = {
8873
8943
  this.weatherLayers[z].active && this.weatherLayers[z].type === "image" && (this.weatherLayers[z].active = !0, this.weatherLayers[z].version = Math.random() + 1);
8874
8944
  },
8875
8945
  handleBboxClip(z, M) {
8876
- const b = [], O = $.convertToStdLng(M._sw.lng), p = $.convertToStdLng(M._ne.lng);
8946
+ const b = [], O = M0.convertToStdLng(M._sw.lng), p = M0.convertToStdLng(M._ne.lng);
8877
8947
  return z.features.forEach((o) => {
8878
8948
  if (o.geometry.type !== "Point")
8879
8949
  if (O > p) {
@@ -8932,23 +9002,6 @@ const Ub = {
8932
9002
  z.find((b) => b.key === "enc") ? this.enc = "i4" : this.enc = "", this.otherWeight != M && (this.otherWeight = M, this.fetchOtherLayers({ all: !0 }));
8933
9003
  }
8934
9004
  },
8935
- async handlePointChange(z) {
8936
- const M = this.ts ? A0(this.ts).utc().format() : A0().utc().format(), b = {
8937
- lat: z.lat,
8938
- lng: z.lng,
8939
- datetime: M,
8940
- forecastDays: 1,
8941
- selfHosted: !1
8942
- }, O = await y0.post(`${this.gateway}/api/arc/meteo2/spot/forecast`, b, {
8943
- headers: {
8944
- Authorization: this.token || this.defaultMeteoToken
8945
- }
8946
- });
8947
- (O == null ? void 0 : O.data.code) === 0 && (this.meteo = {
8948
- ...O == null ? void 0 : O.data.data,
8949
- ...z
8950
- });
8951
- },
8952
9005
  handle3dToggle(z) {
8953
9006
  var M, b, O, p, o, e, t, q, r, a, i, L, n, h, u, d, m, R, g, _;
8954
9007
  z ? (this.map.setProjection("globe"), this.mapProjection = "globe", (b = this.map) != null && b.getLayer((M = this.viewport) == null ? void 0 : M.rampColorLayer) && ((O = this.map) != null && O.getLayer(this.helper.mapboxCustomer.layers.water.id)) && ((o = this.map) == null || o.moveLayer((p = this.viewport) == null ? void 0 : p.rampColorLayer, this.helper.mapboxCustomer.layers.water.id)), (t = this.map) != null && t.getLayer((e = this.viewport) == null ? void 0 : e.particleLayer) && ((q = this.map) != null && q.getLayer(this.helper.mapboxCustomer.layers.water.id)) && ((a = this.map) == null || a.moveLayer((r = this.viewport) == null ? void 0 : r.particleLayer, this.helper.mapboxCustomer.layers.water.id)), this.map.off("zoomend", this.handleDragEndWithZoom4Json), this.map.off("dragend", this.handleDragEndWithZoom4Json), this.map.off("move", this.handleDragEndWithZoom4Image)) : (this.map.setProjection("mercator"), this.mapProjection = "mercator", this.map.on("zoomend", this.handleDragEndWithZoom4Json), this.map.on("dragend", this.handleDragEndWithZoom4Json), this.map.on("move", this.handleDragEndWithZoom4Image), this.handleDragEndWithZoom4Image(), this.handleDragEndWithZoom4Json(), (L = this.map) != null && L.getLayer((i = this.viewport) == null ? void 0 : i.rampColorLayer) && ((n = this.map) != null && n.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && ((u = this.map) == null || u.moveLayer((h = this.viewport) == null ? void 0 : h.rampColorLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)), (m = this.map) != null && m.getLayer((d = this.viewport) == null ? void 0 : d.particleLayer) && ((R = this.map) != null && R.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && ((_ = this.map) == null || _.moveLayer((g = this.viewport) == null ? void 0 : g.particleLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)));
@@ -8969,14 +9022,14 @@ const Ub = {
8969
9022
  this.$emit("toggleVersion", Math.random());
8970
9023
  }
8971
9024
  }
8972
- }, Hb = {
9025
+ }, Gb = {
8973
9026
  key: 0,
8974
9027
  className: "map-gl-home"
8975
9028
  };
8976
- function Gb(z, M, b, O, p, o) {
8977
- var n0, a0, d0, U, h0, k, O0, r0, E, o0, m0, N0, g0, B0, A, W, s, N, X, S, J, P, H, C0, P0, k0;
8978
- const e = x("IdmGlLayer"), t = x("IdmENC"), q = x("IdmSigWave"), r = x("IdmSwell"), a = x("IdmPrmsl"), i = x("IdmIceberg"), L = x("IdmTropicals"), n = x("IdmCurrents"), h = x("IdmCurrentParticle"), u = x("IdmWindBarb"), d = x("IdmWindParticle"), m = x("IdmPrecip3h"), R = x("IdmVisibility"), g = x("IdmWaterTemp"), _ = x("IdmTemp"), y = x("IdmArctic"), F = x("IdmWarZone"), B = x("IdmGmdssArea"), w = x("IdmEcaZone"), Y = x("IdmAlertZone"), M0 = x("IdmPort"), q0 = x("IdmLoadLine"), s0 = x("IdmTimezone"), l0 = x("IdmVRA"), i0 = x("IdmSpecialArea"), W0 = x("IdmTerminator"), b0 = x("IdmLatLng"), f0 = x("IdmMeasure"), u0 = x("IdmPoint");
8979
- return b.map ? (l(), f("div", Hb, [
9029
+ function Vb(z, M, b, O, p, o) {
9030
+ var d0, i0, r0, L0, k, D, o0, n0, E, c0, N0, B0, g0, y0, A, W, s, N, X, S, Q, P, G, w0, P0, k0;
9031
+ const e = x("IdmGlLayer"), t = x("IdmENC"), q = x("IdmSigWave"), r = x("IdmSwell"), a = x("IdmPrmsl"), i = x("IdmIceberg"), L = x("IdmTropicals"), n = x("IdmCurrents"), h = x("IdmCurrentParticle"), u = x("IdmWindBarb"), d = x("IdmWindParticle"), m = x("IdmPrecip3h"), R = x("IdmVisibility"), g = x("IdmWaterTemp"), _ = x("IdmTemp"), y = x("IdmArctic"), F = x("IdmWarZone"), B = x("IdmGmdssArea"), w = x("IdmEcaZone"), Z = x("IdmAlertZone"), Y = x("IdmPort"), a0 = x("IdmLoadLine"), s0 = x("IdmTimezone"), l0 = x("IdmVRA"), q0 = x("IdmSpecialArea"), W0 = x("IdmTerminator"), z0 = x("IdmLatLng"), f0 = x("IdmMeasure"), u0 = x("IdmPoint");
9032
+ return b.map ? (l(), f("div", Gb, [
8980
9033
  v(e, j({
8981
9034
  ref: "layer",
8982
9035
  map: b.map,
@@ -8989,57 +9042,57 @@ function Gb(z, M, b, O, p, o) {
8989
9042
  }, z.$attrs, {
8990
9043
  onWeather: o.handleWeatherLayerChange,
8991
9044
  onOther: o.handleOtherLayerChange,
8992
- onToggleWindParticle: M[0] || (M[0] = (e0) => p.showWindParticle = e0),
8993
- onToggleWindFeather: M[1] || (M[1] = (e0) => p.showWindFeather = e0),
8994
- onToggleCurrentParticle: M[2] || (M[2] = (e0) => p.showCurrentParticle = e0),
8995
- onToggleCurrentIsoband: M[3] || (M[3] = (e0) => p.showCurrentIsoband = e0),
8996
- onCoordinate: M[4] || (M[4] = (e0) => p.showCoord = e0),
8997
- onMeasure: M[5] || (M[5] = (e0) => p.showMeasure = e0),
8998
- onPoint: M[6] || (M[6] = (e0) => p.showPoint = e0),
9045
+ onToggleWindParticle: M[0] || (M[0] = (A0) => p.showWindParticle = A0),
9046
+ onToggleWindFeather: M[1] || (M[1] = (A0) => p.showWindFeather = A0),
9047
+ onToggleCurrentParticle: M[2] || (M[2] = (A0) => p.showCurrentParticle = A0),
9048
+ onToggleCurrentIsoband: M[3] || (M[3] = (A0) => p.showCurrentIsoband = A0),
9049
+ onCoordinate: M[4] || (M[4] = (A0) => p.showCoord = A0),
9050
+ onMeasure: M[5] || (M[5] = (A0) => p.showMeasure = A0),
9051
+ onPoint: M[6] || (M[6] = (A0) => p.showPoint = A0),
8999
9052
  on3d: o.handle3dToggle,
9000
9053
  onHandleToggleVersion: o.handleToggleVersion
9001
9054
  }), null, 16, ["map", "toggle-version", "map-projection", "showWindFeather", "showWindParticle", "showCurrentIsoband", "showCurrentParticle", "onWeather", "onOther", "on3d", "onHandleToggleVersion"]),
9002
9055
  v(t, j({
9003
9056
  map: b.map,
9004
9057
  token: b.token,
9005
- enabled: (n0 = p.otherLayers) == null ? void 0 : n0.enc,
9058
+ enabled: (d0 = p.otherLayers) == null ? void 0 : d0.enc,
9006
9059
  "toggle-version": b.toggleVersion
9007
9060
  }, z.$attrs, {
9008
- onEnc: M[7] || (M[7] = (e0) => p.enc = e0)
9061
+ onEnc: M[7] || (M[7] = (A0) => p.enc = A0)
9009
9062
  }), null, 16, ["map", "token", "enabled", "toggle-version"]),
9010
9063
  v(q, j({
9011
9064
  map: b.map,
9012
- "sig-wave": (a0 = p.weatherLayers) == null ? void 0 : a0["sig-wave-height"],
9065
+ "sig-wave": (i0 = p.weatherLayers) == null ? void 0 : i0["sig-wave-height"],
9013
9066
  "before-layer": b.beforeLayer,
9014
9067
  activeWeatherLayers: p.activeWeatherLayers
9015
9068
  }, z.$attrs), null, 16, ["map", "sig-wave", "before-layer", "activeWeatherLayers"]),
9016
9069
  v(r, j({
9017
9070
  map: b.map,
9018
- swell: (d0 = p.weatherLayers) == null ? void 0 : d0.swell,
9071
+ swell: (r0 = p.weatherLayers) == null ? void 0 : r0.swell,
9019
9072
  "before-layer": b.beforeLayer,
9020
9073
  activeWeatherLayers: p.activeWeatherLayers
9021
9074
  }, z.$attrs), null, 16, ["map", "swell", "before-layer", "activeWeatherLayers"]),
9022
9075
  v(a, j({
9023
9076
  map: b.map,
9024
- prmsl: (U = p.weatherLayers) == null ? void 0 : U.prmsl,
9077
+ prmsl: (L0 = p.weatherLayers) == null ? void 0 : L0.prmsl,
9025
9078
  "before-layer": b.beforeLayer,
9026
9079
  "active-weather-layers": p.activeWeatherLayers
9027
9080
  }, z.$attrs), null, 16, ["map", "prmsl", "before-layer", "active-weather-layers"]),
9028
9081
  v(i, j({
9029
9082
  map: b.map,
9030
- iceberg: (h0 = p.weatherLayers) == null ? void 0 : h0.iceberg,
9083
+ iceberg: (k = p.weatherLayers) == null ? void 0 : k.iceberg,
9031
9084
  "before-layer": b.beforeLayer
9032
9085
  }, z.$attrs), null, 16, ["map", "iceberg", "before-layer"]),
9033
9086
  v(L, j({
9034
9087
  map: b.map,
9035
9088
  date: b.ts,
9036
- tropicals: (k = p.weatherLayers) == null ? void 0 : k.tropicals,
9089
+ tropicals: (D = p.weatherLayers) == null ? void 0 : D.tropicals,
9037
9090
  "before-layer": b.beforeLayer
9038
9091
  }, z.$attrs), null, 16, ["map", "date", "tropicals", "before-layer"]),
9039
9092
  v(n, j({
9040
9093
  map: b.map,
9041
9094
  "map-projection": p.mapProjection,
9042
- current: (O0 = p.weatherLayers) == null ? void 0 : O0.current,
9095
+ current: (o0 = p.weatherLayers) == null ? void 0 : o0.current,
9043
9096
  "before-layer": b.beforeLayer,
9044
9097
  showCurrentIsoband: p.showCurrentIsoband,
9045
9098
  showCurrentParticle: p.showCurrentParticle,
@@ -9052,7 +9105,7 @@ function Gb(z, M, b, O, p, o) {
9052
9105
  }), null, 16, ["map", "map-projection", "current", "before-layer", "showCurrentIsoband", "showCurrentParticle", "margin-bottom", "toggle-version", "weather-layers", "onParticle", "onHandleToggleVersion"]),
9053
9106
  v(h, j({
9054
9107
  viewport: p.viewport,
9055
- factor: (r0 = p.weatherLayers) == null ? void 0 : r0["current-particle"],
9108
+ factor: (n0 = p.weatherLayers) == null ? void 0 : n0["current-particle"],
9056
9109
  "before-layer": b.beforeLayer,
9057
9110
  "toggle-version": b.toggleVersion
9058
9111
  }, z.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
@@ -9061,7 +9114,7 @@ function Gb(z, M, b, O, p, o) {
9061
9114
  map: b.map,
9062
9115
  "map-projection": p.mapProjection,
9063
9116
  wind: (E = p.weatherLayers) == null ? void 0 : E.wind,
9064
- current: (o0 = p.weatherLayers) == null ? void 0 : o0.current,
9117
+ current: (c0 = p.weatherLayers) == null ? void 0 : c0.current,
9065
9118
  "before-layer": b.beforeLayer,
9066
9119
  "margin-bottom": p.showRampColor ? "56px" : "30px",
9067
9120
  showWindFeather: p.showWindFeather,
@@ -9073,13 +9126,13 @@ function Gb(z, M, b, O, p, o) {
9073
9126
  }), null, 16, ["map", "map-projection", "wind", "current", "before-layer", "margin-bottom", "showWindFeather", "showWindParticle", "toggle-version", "weather-layers", "onParticle"]),
9074
9127
  v(d, j({
9075
9128
  viewport: p.viewport,
9076
- factor: (m0 = p.weatherLayers) == null ? void 0 : m0["wind-particle"],
9129
+ factor: (N0 = p.weatherLayers) == null ? void 0 : N0["wind-particle"],
9077
9130
  "before-layer": b.beforeLayer,
9078
9131
  "toggle-version": b.toggleVersion
9079
9132
  }, z.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
9080
9133
  v(m, j({
9081
9134
  viewport: p.viewport,
9082
- factor: (N0 = p.weatherLayers) == null ? void 0 : N0.precip3h,
9135
+ factor: (B0 = p.weatherLayers) == null ? void 0 : B0.precip3h,
9083
9136
  "before-layer": b.beforeLayer,
9084
9137
  "toggle-version": b.toggleVersion
9085
9138
  }, z.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
@@ -9091,7 +9144,7 @@ function Gb(z, M, b, O, p, o) {
9091
9144
  }, z.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
9092
9145
  v(g, j({
9093
9146
  viewport: p.viewport,
9094
- factor: (B0 = p.weatherLayers) == null ? void 0 : B0["water-temp"],
9147
+ factor: (y0 = p.weatherLayers) == null ? void 0 : y0["water-temp"],
9095
9148
  "before-layer": b.beforeLayer,
9096
9149
  "toggle-version": b.toggleVersion
9097
9150
  }, z.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
@@ -9122,32 +9175,32 @@ function Gb(z, M, b, O, p, o) {
9122
9175
  zone: (X = p.otherLayers) == null ? void 0 : X["eca-zones"],
9123
9176
  "before-layer": b.beforeLayer
9124
9177
  }, z.$attrs), null, 16, ["map", "zone", "before-layer"]),
9125
- v(Y, j({
9178
+ v(Z, j({
9126
9179
  map: b.map,
9127
9180
  zone: (S = p.otherLayers) == null ? void 0 : S["alert-zones"],
9128
9181
  "before-layer": b.beforeLayer
9129
9182
  }, z.$attrs), null, 16, ["map", "zone", "before-layer"]),
9130
- v(M0, j({
9183
+ v(Y, j({
9131
9184
  map: b.map,
9132
- port: (J = p.otherLayers) == null ? void 0 : J.ports,
9185
+ port: (Q = p.otherLayers) == null ? void 0 : Q.ports,
9133
9186
  "before-layer": b.beforeLayer
9134
9187
  }, z.$attrs), null, 16, ["map", "port", "before-layer"]),
9135
- v(q0, j({
9188
+ v(a0, j({
9136
9189
  map: b.map,
9137
9190
  line: (P = p.otherLayers) == null ? void 0 : P["load-lines"],
9138
9191
  "before-layer": b.beforeLayer
9139
9192
  }, z.$attrs), null, 16, ["map", "line", "before-layer"]),
9140
9193
  v(s0, j({
9141
9194
  map: b.map,
9142
- zone: (H = p.otherLayers) == null ? void 0 : H["time-zones"],
9195
+ zone: (G = p.otherLayers) == null ? void 0 : G["time-zones"],
9143
9196
  "before-layer": b.beforeLayer
9144
9197
  }, z.$attrs), null, 16, ["map", "zone", "before-layer"]),
9145
9198
  v(l0, j({
9146
9199
  map: b.map,
9147
- area: (C0 = p.otherLayers) == null ? void 0 : C0["voluntary-reporting-area"],
9200
+ area: (w0 = p.otherLayers) == null ? void 0 : w0["voluntary-reporting-area"],
9148
9201
  "before-layer": b.beforeLayer
9149
9202
  }, z.$attrs), null, 16, ["map", "area", "before-layer"]),
9150
- v(i0, j({
9203
+ v(q0, j({
9151
9204
  map: b.map,
9152
9205
  area: (P0 = p.otherLayers) == null ? void 0 : P0["special-area"],
9153
9206
  "before-layer": b.beforeLayer
@@ -9156,7 +9209,7 @@ function Gb(z, M, b, O, p, o) {
9156
9209
  map: b.map,
9157
9210
  area: (k0 = p.otherLayers) == null ? void 0 : k0["day-night"]
9158
9211
  }, z.$attrs), null, 16, ["map", "area"]),
9159
- v(b0, j({
9212
+ v(z0, j({
9160
9213
  map: b.map,
9161
9214
  show: p.showCoord,
9162
9215
  "toggle-version": b.toggleVersion
@@ -9166,27 +9219,29 @@ function Gb(z, M, b, O, p, o) {
9166
9219
  show: p.showMeasure
9167
9220
  }, z.$attrs), null, 16, ["map", "show"]),
9168
9221
  v(u0, j({
9222
+ ref: "idmPoint",
9169
9223
  map: b.map,
9170
9224
  show: p.showPoint,
9171
9225
  meteo: p.meteo,
9172
9226
  ts: b.ts,
9173
- token: b.token
9174
- }, z.$attrs, { onPoint: o.handlePointChange }), null, 16, ["map", "show", "meteo", "ts", "token", "onPoint"])
9175
- ])) : D("", !0);
9227
+ token: b.token,
9228
+ gateway: p.gateway
9229
+ }, z.$attrs), null, 16, ["map", "show", "meteo", "ts", "token", "gateway"])
9230
+ ])) : U("", !0);
9176
9231
  }
9177
- const Vb = /* @__PURE__ */ I(Ub, [["render", Gb]]), pz = {
9232
+ const Kb = /* @__PURE__ */ I(Hb, [["render", Vb]]), Oz = {
9178
9233
  install(z) {
9179
- z.component("MapboxGL", Vb), z.component("TropicalGL", j0), z.component("LatLngGL", H0);
9234
+ z.component("MapboxGL", Kb), z.component("TropicalGL", j0), z.component("LatLngGL", H0);
9180
9235
  }
9181
9236
  };
9182
9237
  export {
9183
9238
  H0 as LatLngGL,
9184
- Vb as MapboxGL,
9185
- pz as MapboxGLPlugin,
9239
+ Kb as MapboxGL,
9240
+ Oz as MapboxGLPlugin,
9186
9241
  E1 as MapboxHelper,
9187
9242
  t0 as ParticleSchema,
9188
9243
  j0 as TropicalGL,
9189
9244
  E0 as Viewport,
9190
- X0 as WebGL,
9191
- p0 as WebGLSchema
9245
+ T0 as WebGL,
9246
+ O0 as WebGLSchema
9192
9247
  };