@idmwx/idmui-gl3 4.3.9 → 4.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,14 +1,14 @@
1
- var Fe = Object.defineProperty;
2
- var $e = (a, e, t) => e in a ? Fe(a, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : a[e] = t;
3
- var I = (a, e, t) => ($e(a, typeof e != "symbol" ? e + "" : e, t), t);
1
+ var $e = Object.defineProperty;
2
+ var Fe = (a, e, t) => e in a ? $e(a, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : a[e] = t;
3
+ var I = (a, e, t) => (Fe(a, typeof e != "symbol" ? e + "" : e, t), t);
4
4
  import { LayerHelper as Pe, CompanyHelper as Ce, convertToStandardLng as we } from "@idmwx/idmwx-base";
5
- import { resolveComponent as z, openBlock as x, createElementBlock as _, createElementVNode as l, normalizeStyle as $, normalizeClass as M, Fragment as xe, renderList as _e, toDisplayString as S, createVNode as P, withCtx as Ue, createTextVNode as Oe, createCommentVNode as B, withDirectives as Se, createStaticVNode as Ve, vShow as ke, mergeProps as E } from "vue";
5
+ import { resolveComponent as z, openBlock as x, createElementBlock as _, createElementVNode as l, normalizeStyle as F, normalizeClass as M, Fragment as xe, renderList as _e, toDisplayString as S, createVNode as P, withCtx as Ve, createTextVNode as Oe, createCommentVNode as B, withDirectives as Se, createStaticVNode as Ue, vShow as ke, mergeProps as E } from "vue";
6
6
  import * as C from "@turf/turf";
7
7
  import Ze from "@mapbox/sphericalmercator";
8
8
  import Z from "moment";
9
- import K from "mapbox-gl";
10
- import { TropicalHelper as Ne, LngLatHelper as F, LaneHelper as Q } from "@idm-plugin/geo";
11
- import re from "axios";
9
+ import Q from "mapbox-gl";
10
+ import { TropicalHelper as Ne, LngLatHelper as $, LaneHelper as Y } from "@idm-plugin/geo";
11
+ import ie from "axios";
12
12
  const T = (a, e) => {
13
13
  const t = a.__vccOpts || a;
14
14
  for (const [r, i] of e)
@@ -39,7 +39,7 @@ const T = (a, e) => {
39
39
  default: void 0
40
40
  }
41
41
  },
42
- emits: ["weather", "other", "coordinate", "measure", "point", "3d", "toggleVersion", "menu", "showLayers"],
42
+ emits: ["weather", "other", "coordinate", "measure", "point", "3d", "handleToggleVersion", "menu", "showLayers"],
43
43
  data() {
44
44
  return {
45
45
  showLayers: !1,
@@ -80,16 +80,22 @@ const T = (a, e) => {
80
80
  showLayers: {
81
81
  handler() {
82
82
  this.$nextTick(() => {
83
- var a;
84
- this.$emit("menu", this.showLayers ? !1 : this.toggleMenu), this.$emit("toggleVersion", Math.random()), this.right = (((a = document.getElementsByClassName("right-bar")[0]) == null ? void 0 : a.clientWidth) || 0) + 10;
83
+ this.$emit("menu", this.showLayers ? !1 : this.toggleMenu), this.$emit("handleToggleVersion");
85
84
  });
86
85
  }
87
86
  },
88
87
  toggleMenu: {
88
+ handler() {
89
+ this.$nextTick(() => {
90
+ this.showLayers = this.toggleMenu ? !1 : this.showLayers, this.$emit("handleToggleVersion");
91
+ });
92
+ }
93
+ },
94
+ toggleVersion: {
89
95
  handler() {
90
96
  this.$nextTick(() => {
91
97
  var a;
92
- this.showLayers = this.toggleMenu ? !1 : this.showLayers, this.$emit("toggleVersion", Math.random()), this.right = (((a = document.getElementsByClassName("right-bar")[0]) == null ? void 0 : a.clientWidth) || 0) + 10;
98
+ this.right = (((a = document.getElementsByClassName("right-bar")[0]) == null ? void 0 : a.clientWidth) || 0) + 10;
93
99
  });
94
100
  }
95
101
  }
@@ -138,7 +144,7 @@ const T = (a, e) => {
138
144
  this.showCoord = !this.showCoord, this.$emit("coordinate", this.showCoord);
139
145
  },
140
146
  handlePointToggle() {
141
- this.isLogin ? (this.showPoint = !this.showPoint, this.$emit("point", this.showPoint)) : this.$emit("toggleVersion", Math.random());
147
+ this.isLogin ? (this.showPoint = !this.showPoint, this.$emit("point", this.showPoint)) : this.$emit("handleToggleVersion");
142
148
  },
143
149
  handleMeasureToggle() {
144
150
  this.showMeasure = !this.showMeasure, this.$emit("measure", this.showMeasure);
@@ -159,7 +165,7 @@ function nt(a, e, t, r, i, o) {
159
165
  return x(), _("div", Ge, [
160
166
  l("div", {
161
167
  class: "menu-bar-box",
162
- style: $({ top: t.top + 10 + "px", right: i.right + "px" })
168
+ style: F({ top: t.top + 10 + "px", right: i.right + "px" })
163
169
  }, [
164
170
  l("div", Je, [
165
171
  l("div", {
@@ -172,7 +178,7 @@ function nt(a, e, t, r, i, o) {
172
178
  ], 4),
173
179
  l("div", {
174
180
  class: "menu-bar-box",
175
- style: $({ top: t.top + 160 + "px", right: i.right + "px" })
181
+ style: F({ top: t.top + 160 + "px", right: i.right + "px" })
176
182
  }, [
177
183
  l("div", Xe, [
178
184
  l("div", {
@@ -203,7 +209,7 @@ function nt(a, e, t, r, i, o) {
203
209
  ], 4),
204
210
  l("div", {
205
211
  class: "active-layers",
206
- style: $({ right: i.right + "px", bottom: "100px" })
212
+ style: F({ right: i.right + "px", bottom: "100px" })
207
213
  }, [
208
214
  (x(!0), _(xe, null, _e(i.weatherLayers, (s) => (x(), _("div", {
209
215
  key: s.key,
@@ -216,11 +222,11 @@ function nt(a, e, t, r, i, o) {
216
222
  ], 4),
217
223
  l("div", {
218
224
  class: "available-layers flex-center",
219
- style: $({ top: t.top + "px", right: i.showLayers ? "0px" : "-240px" })
225
+ style: F({ top: t.top + "px", right: i.showLayers ? "0px" : "-240px" })
220
226
  }, [
221
227
  l("div", {
222
228
  class: "side-bar",
223
- style: $({ right: i.showLayers ? "0px" : "-240px" }),
229
+ style: F({ right: i.showLayers ? "0px" : "-240px" }),
224
230
  onClick: e[5] || (e[5] = (...s) => o.handleMenuToggle && o.handleMenuToggle(...s))
225
231
  }, e[14] || (e[14] = [
226
232
  l("i", { class: "iconfont" }, "", -1)
@@ -229,7 +235,7 @@ function nt(a, e, t, r, i, o) {
229
235
  class: M(["list-box", i.showLayers ? "right-bar" : ""])
230
236
  }, [
231
237
  P(n, { style: { flex: "1" } }, {
232
- default: Ue(() => [
238
+ default: Ve(() => [
233
239
  l("div", Ye, [
234
240
  l("div", Qe, [
235
241
  l("div", null, [
@@ -387,22 +393,22 @@ const ct = {
387
393
  else {
388
394
  this.map.addSource(this.source, { type: "geojson", data: s });
389
395
  for (let c = 0; c < (this.barbs ?? []).length - 1; c++) {
390
- const h = (this.barbs ?? [])[c] || 0, p = (this.barbs ?? [])[c + 1] || 0, d = h < 10 ? `00${h}kts` : h < 100 ? `0${h}kts` : `${h}kts`;
396
+ const h = (this.barbs ?? [])[c] || 0, d = (this.barbs ?? [])[c + 1] || 0, p = h < 10 ? `00${h}kts` : h < 100 ? `0${h}kts` : `${h}kts`;
391
397
  this.map.addLayer(
392
398
  {
393
- id: d,
399
+ id: p,
394
400
  type: "symbol",
395
401
  filter: [
396
402
  "all",
397
403
  // @ts-ignore
398
404
  [">=", "spd", h],
399
405
  // @ts-ignore
400
- ["<", "spd", p]
406
+ ["<", "spd", d]
401
407
  ],
402
408
  source: this.source,
403
409
  layout: {
404
410
  "symbol-placement": "point",
405
- "icon-image": d,
411
+ "icon-image": p,
406
412
  // mapbox sprite
407
413
  "icon-size": 0.14,
408
414
  "icon-offset": [0, -20],
@@ -445,10 +451,10 @@ const ct = {
445
451
  this.map.getSource(this.source) && this.map.removeSource(this.source), this.windBarbLoaded = !1;
446
452
  }
447
453
  }
448
- }, ht = { key: 0 }, pt = {
454
+ }, ht = { key: 0 }, dt = {
449
455
  key: 0,
450
456
  class: "iconfont active"
451
- }, dt = {
457
+ }, pt = {
452
458
  key: 1,
453
459
  class: "iconfont"
454
460
  }, mt = {
@@ -463,14 +469,14 @@ function yt(a, e, t, r, i, o) {
463
469
  return (n = t.wind) != null && n.active ? (x(), _("div", ht, [
464
470
  l("div", {
465
471
  class: "flex-center tool-bars",
466
- style: $([{ position: "absolute" }, { right: i.right + "px", bottom: i.bottom + "px" }])
472
+ style: F([{ position: "absolute" }, { right: i.right + "px", bottom: i.bottom + "px" }])
467
473
  }, [
468
474
  t.mapProjection === "mercator" ? (x(), _("div", {
469
475
  key: 0,
470
476
  class: "flex-start",
471
477
  onClick: e[0] || (e[0] = (...s) => o.handleParticle && o.handleParticle(...s))
472
478
  }, [
473
- t.showParticle ? (x(), _("i", pt, "")) : (x(), _("i", dt, "")),
479
+ t.showParticle ? (x(), _("i", dt, "")) : (x(), _("i", pt, "")),
474
480
  l("span", {
475
481
  class: M(t.showParticle ? "active" : "")
476
482
  }, "Wind Particles", 2)
@@ -535,8 +541,8 @@ class Te {
535
541
  * @param [lb.x, lb.y, rt.x, rt.y]
536
542
  */
537
543
  getBoundPixel() {
538
- const e = this.map.getBounds(), t = this.map.getZoom() + 1, r = [e._ne.lng, e._ne.lat], i = [e._sw.lng, e._sw.lat], [o, n] = this.convertNLng(r[0]), [s, c] = this.convertNLng(i[0]), [h, p] = this.mercator.px([o, r[1]], t), [d, g] = this.mercator.px([s, i[1]], t), u = Math.round(this.mercator.size * Math.pow(2, t) * (n + c));
539
- return [d, g, h + u, p];
544
+ const e = this.map.getBounds(), t = this.map.getZoom() + 1, r = [e._ne.lng, e._ne.lat], i = [e._sw.lng, e._sw.lat], [o, n] = this.convertNLng(r[0]), [s, c] = this.convertNLng(i[0]), [h, d] = this.mercator.px([o, r[1]], t), [p, g] = this.mercator.px([s, i[1]], t), u = Math.round(this.mercator.size * Math.pow(2, t) * (n + c));
545
+ return [p, g, h + u, d];
540
546
  }
541
547
  /**
542
548
  * [视窗边界像素宽度]
@@ -551,13 +557,13 @@ class Te {
551
557
  * @param zoom
552
558
  */
553
559
  getWorldCopy(e, t) {
554
- const r = 2 ** t, [i, o, n, s] = e.map((p) => ~~(p / (r * 256))), c = [];
555
- for (let p = s; p <= o; p++)
556
- for (let d = i; d <= n; d++)
557
- c.push([d, p]);
558
- return c.map((p) => {
559
- const d = 2 ** t * 256;
560
- return [p[0] * d, p[1] * d, d];
560
+ const r = 2 ** t, [i, o, n, s] = e.map((d) => ~~(d / (r * 256))), c = [];
561
+ for (let d = s; d <= o; d++)
562
+ for (let p = i; p <= n; p++)
563
+ c.push([p, d]);
564
+ return c.map((d) => {
565
+ const p = 2 ** t * 256;
566
+ return [d[0] * p, d[1] * p, p];
561
567
  });
562
568
  }
563
569
  resize() {
@@ -660,8 +666,8 @@ class ye {
660
666
  const s = n.getContext("2d");
661
667
  if (s && e) {
662
668
  const c = s == null ? void 0 : s.createLinearGradient(0, 0, 256, 0);
663
- return t.forEach(([h, p]) => {
664
- c.addColorStop(h, p);
669
+ return t.forEach(([h, d]) => {
670
+ c.addColorStop(h, d);
665
671
  }), s.fillStyle = c, s.fillRect(0, 0, 256, 1), {
666
672
  canvas: n,
667
673
  texture: this.createTexture(
@@ -678,11 +684,11 @@ class ye {
678
684
  }
679
685
  setupParticle(e, t = 1e3) {
680
686
  const r = Math.ceil(Math.sqrt(t)), i = r * r, o = new Uint8Array(i * 4);
681
- for (let p = 0; p < o.length; p++)
682
- o[p] = Math.floor(Math.random() * 256);
687
+ for (let d = 0; d < o.length; d++)
688
+ o[d] = Math.floor(Math.random() * 256);
683
689
  const n = this.createTexture(e, e.NEAREST, e.NEAREST, e.CLAMP_TO_EDGE, o, r, r), s = this.createTexture(e, e.NEAREST, e.NEAREST, e.CLAMP_TO_EDGE, o, r, r), c = new Float32Array(i);
684
- for (let p = 0; p < i; p++)
685
- c[p] = p;
690
+ for (let d = 0; d < i; d++)
691
+ c[d] = d;
686
692
  const h = this.createDataBuffer(e, "array", c);
687
693
  return { resolution: r, total: i, texture0: n, texture1: s, indexBuffer: h };
688
694
  }
@@ -699,16 +705,16 @@ class ye {
699
705
  return {};
700
706
  }
701
707
  bindParticle(e, t, r, i, o, n) {
702
- const s = this.createProgramWrapper(e, t, r), c = this.createProgramWrapper(e, i, o), h = this.createProgramWrapper(e, i, n), p = this.createDataBuffer(e, "array", new Float32Array([0, 0, 1, 0, 0, 1, 0, 1, 1, 0, 1, 1])), d = e.createFramebuffer();
703
- return { particle: s, screen: c, update: h, quadBuffer: p, frameBuffer: d };
708
+ const s = this.createProgramWrapper(e, t, r), c = this.createProgramWrapper(e, i, o), h = this.createProgramWrapper(e, i, n), d = this.createDataBuffer(e, "array", new Float32Array([0, 0, 1, 0, 0, 1, 0, 1, 1, 0, 1, 1])), p = e.createFramebuffer();
709
+ return { particle: s, screen: c, update: h, quadBuffer: d, frameBuffer: p };
704
710
  }
705
711
  draw(e, t, r, i, o, n, s) {
706
712
  var c, h;
707
713
  if (t && r) {
708
714
  e.resize(), t == null || t.viewport(0, 0, (c = t == null ? void 0 : t.canvas) == null ? void 0 : c.width, (h = t == null ? void 0 : t.canvas) == null ? void 0 : h.height), t.clearColor(0, 0, 0, 0), t.clear(t.COLOR_BUFFER_BIT | t.DEPTH_BUFFER_BIT);
709
715
  try {
710
- const p = t.getUniformLocation(r, "u_resolution"), d = t.getUniformLocation(r, "u_image"), g = t.getUniformLocation(r, "u_color");
711
- if (t.useProgram(r), t.uniform2f(p, t.canvas.width * e.ratio, t.canvas.height * e.ratio), t.activeTexture(t.TEXTURE0), t.bindTexture(t.TEXTURE_2D, i), t.uniform1i(d, 0), t.activeTexture(t.TEXTURE1), t.bindTexture(t.TEXTURE_2D, o), t.uniform1i(g, 1), s != null && s.uvRange && (s != null && s.sRange)) {
716
+ const d = t.getUniformLocation(r, "u_resolution"), p = t.getUniformLocation(r, "u_image"), g = t.getUniformLocation(r, "u_color");
717
+ if (t.useProgram(r), t.uniform2f(d, t.canvas.width * e.ratio, t.canvas.height * e.ratio), t.activeTexture(t.TEXTURE0), t.bindTexture(t.TEXTURE_2D, i), t.uniform1i(p, 0), t.activeTexture(t.TEXTURE1), t.bindTexture(t.TEXTURE_2D, o), t.uniform1i(g, 1), s != null && s.uvRange && (s != null && s.sRange)) {
712
718
  const m = t.getUniformLocation(r, "u_range_u_v"), v = t.getUniformLocation(r, "u_range_s");
713
719
  t.uniform2f(m, s.uvRange[0], s.uvRange[1]), t.uniform2f(v, s.sRange[0], s.sRange[1]);
714
720
  }
@@ -717,8 +723,8 @@ class ye {
717
723
  const v = (m[0] - u[0]) * e.ratio, b = (m[1] - u[3]) * e.ratio, w = m[2] * e.ratio, [k, L, D, A] = [v, w + v, b, w + b], O = new Float32Array([k, D, L, D, k, A, k, A, L, D, L, A]);
718
724
  t.bindBuffer(t.ARRAY_BUFFER, n), t.bufferData(t.ARRAY_BUFFER, O, t.STATIC_DRAW), t.drawArrays(t.TRIANGLES, 0, 6);
719
725
  }
720
- } catch (p) {
721
- console.log(`render failed...${p}`);
726
+ } catch (d) {
727
+ console.log(`render failed...${d}`);
722
728
  }
723
729
  }
724
730
  }
@@ -811,9 +817,9 @@ I(N, "fragmentSchema", `
811
817
  vec4 color = texture2D(u_color, vec2(rgba.r, 0));
812
818
  gl_FragColor = color;
813
819
  }`);
814
- class V {
820
+ class U {
815
821
  }
816
- I(V, "vertexSchema", `
822
+ I(U, "vertexSchema", `
817
823
  precision mediump float;
818
824
 
819
825
  attribute float a_index; // 索引
@@ -837,7 +843,7 @@ I(V, "vertexSchema", `
837
843
  gl_PointSize = 1.0;
838
844
  // gl_PointSize = u_point;
839
845
  gl_Position = vec4(2.0 * v_particle_pos.x - 1.0, 1.0 - 2.0 * v_particle_pos.y, 0, 1);
840
- }`), I(V, "fragmentSchema", `
846
+ }`), I(U, "fragmentSchema", `
841
847
  precision mediump float;
842
848
 
843
849
  uniform sampler2D u_factor;
@@ -859,7 +865,7 @@ I(V, "vertexSchema", `
859
865
 
860
866
  float f = 1.0 - uv.b;
861
867
  gl_FragColor = texture2D(u_color_ramp, ramp_pos) * f;
862
- }`), I(V, "quadVertSchema", `
868
+ }`), I(U, "quadVertSchema", `
863
869
  precision mediump float;
864
870
 
865
871
  attribute vec2 a_pos;
@@ -869,7 +875,7 @@ I(V, "vertexSchema", `
869
875
  void main() {
870
876
  v_tex_pos = a_pos;
871
877
  gl_Position = vec4(1.0 - 2.0 * a_pos, 0, 1);
872
- }`), I(V, "screenFragmentSchema", `
878
+ }`), I(U, "screenFragmentSchema", `
873
879
  precision mediump float;
874
880
 
875
881
  uniform sampler2D u_screen;
@@ -881,7 +887,7 @@ I(V, "vertexSchema", `
881
887
  vec4 color = texture2D(u_screen, 1.0 - v_tex_pos);
882
888
  // a hack to guarantee opacity fade out even with a value close to 1.0
883
889
  gl_FragColor = vec4(floor(255.0 * color * u_opacity) / 255.0);
884
- }`), I(V, "updateFragmentSchema", `
890
+ }`), I(U, "updateFragmentSchema", `
885
891
  precision mediump float;
886
892
 
887
893
  uniform sampler2D u_particles;
@@ -2692,11 +2698,11 @@ const bt = {
2692
2698
  ];
2693
2699
  this.wrapper = this.webgl.bindParticle(
2694
2700
  this.particleContext,
2695
- V.vertexSchema,
2696
- V.fragmentSchema,
2697
- V.quadVertSchema,
2698
- V.screenFragmentSchema,
2699
- V.updateFragmentSchema
2701
+ U.vertexSchema,
2702
+ U.fragmentSchema,
2703
+ U.quadVertSchema,
2704
+ U.screenFragmentSchema,
2705
+ U.updateFragmentSchema
2700
2706
  ), this.wrapper.color = this.webgl.setup(this.particleContext, a, !0, 16, 16), this.wrapper = { ...this.wrapper, ...this.webgl.setupParticle(this.particleContext, 9e3), ...this.webgl.resize(this.viewport, this.particleContext) }, this.viewport.map.on("resize", this.handleResize), this.viewport.map.on("movestart", this.handlePause), this.viewport.map.on("moveend", this.handlePlay);
2701
2707
  }
2702
2708
  },
@@ -2732,7 +2738,7 @@ function Lt(a, e, t, r, i, o) {
2732
2738
  return (n = t.factor) != null && n.active ? (x(), _("div", vt, [
2733
2739
  l("div", {
2734
2740
  class: "legend-bars flex-center",
2735
- style: $([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
2741
+ style: F([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
2736
2742
  }, e[0] || (e[0] = [
2737
2743
  l("span", null, "kts", -1),
2738
2744
  l("span", null, "0", -1),
@@ -2924,7 +2930,7 @@ function Pt(a, e, t, r, i, o) {
2924
2930
  return (n = t.current) != null && n.active ? (x(), _("div", _t, [
2925
2931
  l("div", {
2926
2932
  class: "flex-center tool-bars",
2927
- style: $([{ position: "absolute" }, { right: i.right + "px", bottom: i.bottom + "px" }])
2933
+ style: F([{ position: "absolute" }, { right: i.right + "px", bottom: i.bottom + "px" }])
2928
2934
  }, [
2929
2935
  t.mapProjection === "mercator" ? (x(), _("div", {
2930
2936
  key: 0,
@@ -3070,11 +3076,11 @@ const Rt = {
3070
3076
  ];
3071
3077
  this.wrapper = this.webgl.bindParticle(
3072
3078
  this.particleContext,
3073
- V.vertexSchema,
3074
- V.fragmentSchema,
3075
- V.quadVertSchema,
3076
- V.screenFragmentSchema,
3077
- V.updateFragmentSchema
3079
+ U.vertexSchema,
3080
+ U.fragmentSchema,
3081
+ U.quadVertSchema,
3082
+ U.screenFragmentSchema,
3083
+ U.updateFragmentSchema
3078
3084
  ), this.wrapper.color = this.webgl.setup(this.particleContext, a, !0, 16, 16), this.wrapper = {
3079
3085
  ...this.wrapper,
3080
3086
  ...this.webgl.setupParticle(this.particleContext, 12e3),
@@ -3114,7 +3120,7 @@ function It(a, e, t, r, i, o) {
3114
3120
  return (n = t.factor) != null && n.active ? (x(), _("div", Et, [
3115
3121
  l("div", {
3116
3122
  class: "legend-bars flex-center",
3117
- style: $([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
3123
+ style: F([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
3118
3124
  }, e[0] || (e[0] = [
3119
3125
  l("span", null, "kts", -1),
3120
3126
  l("span", null, "0", -1),
@@ -3506,10 +3512,10 @@ const jt = /* @__PURE__ */ T(Ot, [["render", Nt]]), Wt = {
3506
3512
  }
3507
3513
  }
3508
3514
  };
3509
- function Ft(a, e, t, r, i, o) {
3515
+ function $t(a, e, t, r, i, o) {
3510
3516
  return x(), _("div");
3511
3517
  }
3512
- const $t = /* @__PURE__ */ T(Wt, [["render", Ft]]), Ut = {
3518
+ const Ft = /* @__PURE__ */ T(Wt, [["render", $t]]), Vt = {
3513
3519
  name: "IdmIceberg",
3514
3520
  props: {
3515
3521
  map: {
@@ -3566,10 +3572,10 @@ const $t = /* @__PURE__ */ T(Wt, [["render", Ft]]), Ut = {
3566
3572
  }
3567
3573
  }
3568
3574
  };
3569
- function Vt(a, e, t, r, i, o) {
3575
+ function Ut(a, e, t, r, i, o) {
3570
3576
  return x(), _("div");
3571
3577
  }
3572
- const Zt = /* @__PURE__ */ T(Ut, [["render", Vt]]);
3578
+ const Zt = /* @__PURE__ */ T(Vt, [["render", Ut]]);
3573
3579
  const Ht = {
3574
3580
  name: "IdmTropicals",
3575
3581
  props: {
@@ -3662,24 +3668,24 @@ const Ht = {
3662
3668
  }), t.forEach((o) => {
3663
3669
  var h;
3664
3670
  let n = 0, s;
3665
- const c = a.filter((p) => {
3666
- var d, g;
3667
- return ((g = (d = p.properties) == null ? void 0 : d.category) == null ? void 0 : g.split("-")[0]) === o;
3671
+ const c = a.filter((d) => {
3672
+ var p, g;
3673
+ return ((g = (p = d.properties) == null ? void 0 : p.category) == null ? void 0 : g.split("-")[0]) === o;
3668
3674
  });
3669
- (h = c.filter((p) => {
3670
- var d, g;
3671
- return ((d = p.geometry) == null ? void 0 : d.type) === "LineString" && ((g = p.properties) == null ? void 0 : g.type) === "forecast";
3672
- })[0]) == null || h.properties.model, c.forEach((p, d) => {
3675
+ (h = c.filter((d) => {
3676
+ var p, g;
3677
+ return ((p = d.geometry) == null ? void 0 : p.type) === "LineString" && ((g = d.properties) == null ? void 0 : g.type) === "forecast";
3678
+ })[0]) == null || h.properties.model, c.forEach((d, p) => {
3673
3679
  var g, u, y, f, m, v;
3674
- ((g = p.geometry) == null ? void 0 : g.type) === "Point" && ((u = p.properties) == null ? void 0 : u.type) === "history" && (n = d, s = s === void 0 ? d : s), ((y = p.geometry) == null ? void 0 : y.type) === "Point" && ((f = p.properties) == null ? void 0 : f.type) === "forecast" && s === void 0 && (s = d), ((m = p.geometry) == null ? void 0 : m.type) === "LineString" && ((v = p.properties) == null || v.type);
3675
- }), c.map((p, d) => {
3680
+ ((g = d.geometry) == null ? void 0 : g.type) === "Point" && ((u = d.properties) == null ? void 0 : u.type) === "history" && (n = p, s = s === void 0 ? p : s), ((y = d.geometry) == null ? void 0 : y.type) === "Point" && ((f = d.properties) == null ? void 0 : f.type) === "forecast" && s === void 0 && (s = p), ((m = d.geometry) == null ? void 0 : m.type) === "LineString" && ((v = d.properties) == null || v.type);
3681
+ }), c.map((d, p) => {
3676
3682
  var g, u, y, f, m, v, b;
3677
- if (((g = p.geometry) == null ? void 0 : g.type) === "LineString" && ((u = p.properties) == null || u.type), ((y = p.geometry) == null ? void 0 : y.type) === "Point" && ((f = p.properties) == null ? void 0 : f.type) === "forecast" && (p.properties.name = o, p.properties.format = Z(p.properties.date).utcOffset(this.timeZone).format(`MMM-DD,HHmm [(utc ${this.computeTimezone})]`)), ((m = p.geometry) == null ? void 0 : m.type) === "Point" && ((v = p.properties) == null ? void 0 : v.type) === "history") {
3678
- p.properties.format = Z(p.properties.date).utcOffset(this.timeZone).format(`MMM-DD,HHmm [(utc ${this.computeTimezone})]`);
3679
- const w = Z((b = p.properties) == null ? void 0 : b.date).utc().format("HHmm") === Z().utc().hour(Math.floor(e / 6) * 6).minute("00").format("HHmm");
3680
- p.properties.showHistoryLabel = w || d === n, p.properties.showNameLabel = d === n, p.properties.name = o;
3683
+ if (((g = d.geometry) == null ? void 0 : g.type) === "LineString" && ((u = d.properties) == null || u.type), ((y = d.geometry) == null ? void 0 : y.type) === "Point" && ((f = d.properties) == null ? void 0 : f.type) === "forecast" && (d.properties.name = o, d.properties.format = Z(d.properties.date).utcOffset(this.timeZone).format(`MMM-DD,HHmm [(utc ${this.computeTimezone})]`)), ((m = d.geometry) == null ? void 0 : m.type) === "Point" && ((v = d.properties) == null ? void 0 : v.type) === "history") {
3684
+ d.properties.format = Z(d.properties.date).utcOffset(this.timeZone).format(`MMM-DD,HHmm [(utc ${this.computeTimezone})]`);
3685
+ const w = Z((b = d.properties) == null ? void 0 : b.date).utc().format("HHmm") === Z().utc().hour(Math.floor(e / 6) * 6).minute("00").format("HHmm");
3686
+ d.properties.showHistoryLabel = w || p === n, d.properties.showNameLabel = p === n, d.properties.name = o;
3681
3687
  }
3682
- return p;
3688
+ return d;
3683
3689
  });
3684
3690
  }), this.handleInit();
3685
3691
  },
@@ -3940,10 +3946,10 @@ const Ht = {
3940
3946
  }), y = (/* @__PURE__ */ new Date()).valueOf() - (g + u), console.log("[tropical] add elapsed: ", y, ", total: ", u += y));
3941
3947
  }
3942
3948
  this.handleDrawCircle();
3943
- const p = Ne.interpolate(this.tropicals, 1);
3944
- this.interpolateData = JSON.parse(JSON.stringify(p));
3945
- const d = this.interpolateData.filter((g) => g.properties.name === "kristy" && g.properties.model === "ecmwf");
3946
- console.log(d), this.handleDateChange();
3949
+ const d = Ne.interpolate(this.tropicals, 1);
3950
+ this.interpolateData = JSON.parse(JSON.stringify(d));
3951
+ const p = this.interpolateData.filter((g) => g.properties.name === "kristy" && g.properties.model === "ecmwf");
3952
+ console.log(p), this.handleDateChange();
3947
3953
  }
3948
3954
  },
3949
3955
  handleClear() {
@@ -3951,7 +3957,7 @@ const Ht = {
3951
3957
  this.map && (this.map.getLayer(this.historyLayer) && this.map.removeLayer(this.historyLayer), this.map.getLayer(this.forecastLayer) && this.map.removeLayer(this.forecastLayer), this.map.getLayer(this.forecastModelLayer) && this.map.removeLayer(this.forecastModelLayer), this.map.getLayer(this.forecastNameLayer) && this.map.removeLayer(this.forecastNameLayer), this.map.getLayer(this.pointCircleLayer) && this.map.removeLayer(this.pointCircleLayer), this.map.getLayer(this.pointCircleLayer + "-border") && this.map.removeLayer(this.pointCircleLayer + "-border"), this.map.getLayer(this.pointLabelLayer) && this.map.removeLayer(this.pointLabelLayer), this.map.getLayer(this.historyPointCircleLayer) && this.map.removeLayer(this.historyPointCircleLayer), this.map.getLayer(this.historyPointCircleLayer + "-border") && this.map.removeLayer(this.historyPointCircleLayer + "-border"), this.map.getLayer(this.historyPointCircleLayer + "-inner") && this.map.removeLayer(this.historyPointCircleLayer + "-inner"), this.map.getLayer(this.historyPointLabelLayer) && this.map.removeLayer(this.historyPointLabelLayer), this.map.getLayer(this.interpolateLineLayer) && this.map.removeLayer(this.interpolateLineLayer), (a = this.interpolateMarkers) == null || a.forEach((e) => e == null ? void 0 : e.remove()), this.map.getSource(this.source) && this.map.removeSource(this.source), this.map.getSource(this.clusterSource) && this.map.removeSource(this.clusterSource), this.map.getSource(this.interpolateSource) && this.map.removeSource(this.interpolateSource), this.map.getLayer(this.circleLayer) && this.map.removeLayer(this.circleLayer), this.map.getSource(this.circleSource) && this.map.removeSource(this.circleSource));
3952
3958
  },
3953
3959
  handleDateChange() {
3954
- var a, e, t, r, i, o, n, s, c, h, p, d, g, u, y, f, m, v, b, w, k, L, D, A, O, j, W, H, oe, se, ne, le, ce, he, pe, ee;
3960
+ var a, e, t, r, i, o, n, s, c, h, d, p, g, u, y, f, m, v, b, w, k, L, D, A, O, j, W, H, re, oe, se, ne, le, ce, he, K;
3955
3961
  if ((a = this.interpolateMarkers) == null || a.forEach((G) => G == null ? void 0 : G.remove()), this.circleSourceData.features = [], (e = this.interpolateData) != null && e.length && this.tropicals.active) {
3956
3962
  const G = Z(this.date).utc().set({ minute: 0, second: 0, millisecond: 0 }), J = this.interpolateData.filter((R) => R.properties.date === G.format() && !R.properties.disabled), de = this.handleComputePolygons(J), X = C.featureCollection([...J]);
3957
3963
  de.forEach((R) => {
@@ -3972,15 +3978,15 @@ const Ht = {
3972
3978
  })), this.interpolateMarkers = [];
3973
3979
  for (const R of J)
3974
3980
  if (!R.properties.disabled) {
3975
- let U = "#f44336";
3976
- ((s = (n = R.properties) == null ? void 0 : n.wind) == null ? void 0 : s.spd) < 17.2 || !((h = (c = R.properties) == null ? void 0 : c.wind) != null && h.spd) ? U = "#03f869" : ((d = (p = R.properties) == null ? void 0 : p.wind) == null ? void 0 : d.spd) >= 17.2 && ((u = (g = R.properties) == null ? void 0 : g.wind) == null ? void 0 : u.spd) < 24.5 ? U = "#f2f202" : ((f = (y = R.properties) == null ? void 0 : y.wind) == null ? void 0 : f.spd) >= 24.5 && ((v = (m = R.properties) == null ? void 0 : m.wind) == null ? void 0 : v.spd) < 32.7 ? U = "#ff9100" : ((w = (b = R.properties) == null ? void 0 : b.wind) == null ? void 0 : w.spd) >= 32.7 && ((L = (k = R.properties) == null ? void 0 : k.wind) == null ? void 0 : L.spd) < 41.5 ? U = "#f44336" : ((A = (D = R.properties) == null ? void 0 : D.wind) == null ? void 0 : A.spd) >= 41.5 && ((j = (O = R.properties) == null ? void 0 : O.wind) == null ? void 0 : j.spd) < 51 ? U = "#f903d0" : ((H = (W = R.properties) == null ? void 0 : W.wind) == null ? void 0 : H.spd) >= 51 ? U = "#8702f9" : U = "#f44336";
3977
- const me = `<svg t="1719918955501"
3981
+ let V = "#f44336";
3982
+ ((s = (n = R.properties) == null ? void 0 : n.wind) == null ? void 0 : s.spd) < 17.2 || !((h = (c = R.properties) == null ? void 0 : c.wind) != null && h.spd) ? V = "#03f869" : ((p = (d = R.properties) == null ? void 0 : d.wind) == null ? void 0 : p.spd) >= 17.2 && ((u = (g = R.properties) == null ? void 0 : g.wind) == null ? void 0 : u.spd) < 24.5 ? V = "#f2f202" : ((f = (y = R.properties) == null ? void 0 : y.wind) == null ? void 0 : f.spd) >= 24.5 && ((v = (m = R.properties) == null ? void 0 : m.wind) == null ? void 0 : v.spd) < 32.7 ? V = "#ff9100" : ((w = (b = R.properties) == null ? void 0 : b.wind) == null ? void 0 : w.spd) >= 32.7 && ((L = (k = R.properties) == null ? void 0 : k.wind) == null ? void 0 : L.spd) < 41.5 ? V = "#f44336" : ((A = (D = R.properties) == null ? void 0 : D.wind) == null ? void 0 : A.spd) >= 41.5 && ((j = (O = R.properties) == null ? void 0 : O.wind) == null ? void 0 : j.spd) < 51 ? V = "#f903d0" : ((H = (W = R.properties) == null ? void 0 : W.wind) == null ? void 0 : H.spd) >= 51 ? V = "#8702f9" : V = "#f44336";
3983
+ const pe = `<svg t="1719918955501"
3978
3984
  class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" p-id="18382"
3979
3985
  xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200">
3980
3986
  <path
3981
3987
  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"
3982
- fill="${U}" p-id="18383"></path>
3983
- <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="${U}"
3988
+ fill="${V}" p-id="18383"></path>
3989
+ <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="${V}"
3984
3990
  p-id="18384"></path>
3985
3991
  <path
3986
3992
  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"
@@ -3989,25 +3995,25 @@ const Ht = {
3989
3995
  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"
3990
3996
  fill="#ffffff" p-id="18386"></path>
3991
3997
  </svg>`, q = document.createElement("div");
3992
- q.className = "hurricane-hourly-marker", q.innerHTML = `<div class="${R.geometry.coordinates[1] >= 0 ? "center north" : "center south"}">${me}</div>`;
3993
- const ue = new K.Marker(q).setLngLat(R.geometry.coordinates).addTo(this.map);
3994
- if (this.interpolateMarkers.push(ue), (oe = R.properties) != null && oe.showCircle) {
3995
- const te = { radius: 100, coordinates: R.geometry.coordinates }, ae = { radius: 200, coordinates: R.geometry.coordinates }, ie = { radius: 500, coordinates: R.geometry.coordinates };
3996
- (se = this.circleSourceData) == null || se.features.push(
3998
+ q.className = "hurricane-hourly-marker", q.innerHTML = `<div class="${R.geometry.coordinates[1] >= 0 ? "center north" : "center south"}">${pe}</div>`;
3999
+ const me = new Q.Marker(q).setLngLat(R.geometry.coordinates).addTo(this.map);
4000
+ if (this.interpolateMarkers.push(me), (re = R.properties) != null && re.showCircle) {
4001
+ const ee = { radius: 100, coordinates: R.geometry.coordinates }, te = { radius: 200, coordinates: R.geometry.coordinates }, ae = { radius: 500, coordinates: R.geometry.coordinates };
4002
+ (oe = this.circleSourceData) == null || oe.features.push(
4003
+ C.circle(ee.coordinates, ee.radius, { steps: 100, units: "kilometers", properties: { type: "tropicalCircle" } })
4004
+ ), (se = this.circleSourceData) == null || se.features.push(
3997
4005
  C.circle(te.coordinates, te.radius, { steps: 100, units: "kilometers", properties: { type: "tropicalCircle" } })
3998
4006
  ), (ne = this.circleSourceData) == null || ne.features.push(
3999
4007
  C.circle(ae.coordinates, ae.radius, { steps: 100, units: "kilometers", properties: { type: "tropicalCircle" } })
4000
- ), (le = this.circleSourceData) == null || le.features.push(
4001
- C.circle(ie.coordinates, ie.radius, { steps: 100, units: "kilometers", properties: { type: "tropicalCircle" } })
4002
4008
  );
4003
4009
  }
4004
- (he = (ce = this.map) == null ? void 0 : ce.getSource(this.circleSource)) == null || he.setData(this.circleSourceData);
4010
+ (ce = (le = this.map) == null ? void 0 : le.getSource(this.circleSource)) == null || ce.setData(this.circleSourceData);
4005
4011
  }
4006
4012
  } else
4007
- (pe = this.map) != null && pe.getSource(this.interpolateSource) && ((ee = this.map) == null || ee.getSource(this.interpolateSource).setData(this.empty));
4013
+ (he = this.map) != null && he.getSource(this.interpolateSource) && ((K = this.map) == null || K.getSource(this.interpolateSource).setData(this.empty));
4008
4014
  },
4009
4015
  handleClick(a) {
4010
- var o, n, s, c, h, p, d, g;
4016
+ var o, n, s, c, h, d, p, g;
4011
4017
  const e = a.features[0], t = (n = (o = this.tropicals) == null ? void 0 : o.data) == null ? void 0 : n.features.filter(
4012
4018
  (u) => {
4013
4019
  var y;
@@ -4027,11 +4033,11 @@ const Ht = {
4027
4033
  this.activeTropicals = {
4028
4034
  name: (h = e == null ? void 0 : e.properties) == null ? void 0 : h.name,
4029
4035
  forecasts: t.map((u) => u.properties),
4030
- history: (p = r[0]) == null ? void 0 : p.properties,
4031
- showCircle: (g = (d = t[0]) == null ? void 0 : d.properties) == null ? void 0 : g.showCircle
4036
+ history: (d = r[0]) == null ? void 0 : d.properties,
4037
+ showCircle: (g = (p = t[0]) == null ? void 0 : p.properties) == null ? void 0 : g.showCircle
4032
4038
  }, this.showTropicals = !0;
4033
4039
  const i = document.getElementById("active-tropical");
4034
- this.activeTropicalsMarker ? this.activeTropicalsMarker.setLngLat([a.lngLat.lng, a.lngLat.lat]) : this.activeTropicalsMarker = new K.Marker(i).setLngLat([a.lngLat.lng, a.lngLat.lat]).setOffset([220, 0]).addTo(this.map);
4040
+ this.activeTropicalsMarker ? this.activeTropicalsMarker.setLngLat([a.lngLat.lng, a.lngLat.lat]) : this.activeTropicalsMarker = new Q.Marker(i).setLngLat([a.lngLat.lng, a.lngLat.lat]).setOffset([220, 0]).addTo(this.map);
4035
4041
  },
4036
4042
  handleForecastToggle(a) {
4037
4043
  var r, i, o, n, s, c;
@@ -4133,7 +4139,7 @@ const Ht = {
4133
4139
  style: { "justify-content": "flex-start" }
4134
4140
  }, oa = { class: "forecast-models" }, sa = ["onClick"], na = { class: "more" };
4135
4141
  function la(a, e, t, r, i, o) {
4136
- var n, s, c, h, p, d, g, u, y, f, m, v, b, w, k;
4142
+ var n, s, c, h, d, p, g, u, y, f, m, v, b, w, k;
4137
4143
  return Se((x(), _("div", Gt, [
4138
4144
  l("div", Jt, [
4139
4145
  l("div", {
@@ -4142,9 +4148,9 @@ function la(a, e, t, r, i, o) {
4142
4148
  }, ""),
4143
4149
  l("div", Xt, [
4144
4150
  (s = (n = i.activeTropicals) == null ? void 0 : n.history) != null && s.level ? (x(), _("span", qt, S((h = (c = i.activeTropicals) == null ? void 0 : c.history) == null ? void 0 : h.level) + " , ", 1)) : B("", !0),
4145
- Oe(S((p = i.activeTropicals) == null ? void 0 : p.name), 1)
4151
+ Oe(S((d = i.activeTropicals) == null ? void 0 : d.name), 1)
4146
4152
  ]),
4147
- l("div", Yt, " Last update: " + S(o.computeTime(((g = (d = i.activeTropicals) == null ? void 0 : d.history) == null ? void 0 : g.updated) || ((f = (y = (u = i.activeTropicals) == null ? void 0 : u.forecasts) == null ? void 0 : y.filter((L) => !L.disabled)[0]) == null ? void 0 : f.date))), 1)
4153
+ l("div", Yt, " Last update: " + S(o.computeTime(((g = (p = i.activeTropicals) == null ? void 0 : p.history) == null ? void 0 : g.updated) || ((f = (y = (u = i.activeTropicals) == null ? void 0 : u.forecasts) == null ? void 0 : y.filter((L) => !L.disabled)[0]) == null ? void 0 : f.date))), 1)
4148
4154
  ]),
4149
4155
  l("div", Qt, [
4150
4156
  l("div", Kt, [
@@ -4181,7 +4187,7 @@ function la(a, e, t, r, i, o) {
4181
4187
  ])
4182
4188
  ])
4183
4189
  ]),
4184
- e[5] || (e[5] = Ve('<div class="row" style="padding:0;height:1px;margin:10px 0;background:var(--idm-black-1);" data-v-b521de47></div><div class="row" style="padding:2px 10px;" data-v-b521de47><div class="legend" data-v-b521de47><div class="icon td" data-v-b521de47></div><div class="label" data-v-b521de47>TD</div></div><div class="legend" data-v-b521de47><div class="icon ts" data-v-b521de47></div><div class="label" data-v-b521de47>TS</div></div><div class="legend" data-v-b521de47><div class="icon sts" data-v-b521de47></div><div class="label" data-v-b521de47>STS</div></div><div class="legend" data-v-b521de47><div class="icon ty" data-v-b521de47></div><div class="label" data-v-b521de47>TY</div></div><div class="legend" data-v-b521de47><div class="icon sty" data-v-b521de47></div><div class="label" data-v-b521de47>STY</div></div><div class="legend" data-v-b521de47><div class="icon supper-ty" data-v-b521de47></div><div class="label" data-v-b521de47>Super TY</div></div></div><div class="row" style="padding:2px 10px;" data-v-b521de47><div class="legend" data-v-b521de47><div class="icon history" data-v-b521de47></div><div class="label" data-v-b521de47>History</div></div><div class="legend" data-v-b521de47><div class="icon r7" data-v-b521de47></div><div class="label" data-v-b521de47>35kts Radii</div></div><div class="legend" data-v-b521de47><div class="icon r10" data-v-b521de47></div><div class="label" data-v-b521de47>50kts Radii</div></div></div>', 3))
4190
+ e[5] || (e[5] = Ue('<div class="row" style="padding:0;height:1px;margin:10px 0;background:var(--idm-black-1);" data-v-b521de47></div><div class="row" style="padding:2px 10px;" data-v-b521de47><div class="legend" data-v-b521de47><div class="icon td" data-v-b521de47></div><div class="label" data-v-b521de47>TD</div></div><div class="legend" data-v-b521de47><div class="icon ts" data-v-b521de47></div><div class="label" data-v-b521de47>TS</div></div><div class="legend" data-v-b521de47><div class="icon sts" data-v-b521de47></div><div class="label" data-v-b521de47>STS</div></div><div class="legend" data-v-b521de47><div class="icon ty" data-v-b521de47></div><div class="label" data-v-b521de47>TY</div></div><div class="legend" data-v-b521de47><div class="icon sty" data-v-b521de47></div><div class="label" data-v-b521de47>STY</div></div><div class="legend" data-v-b521de47><div class="icon supper-ty" data-v-b521de47></div><div class="label" data-v-b521de47>Super TY</div></div></div><div class="row" style="padding:2px 10px;" data-v-b521de47><div class="legend" data-v-b521de47><div class="icon history" data-v-b521de47></div><div class="label" data-v-b521de47>History</div></div><div class="legend" data-v-b521de47><div class="icon r7" data-v-b521de47></div><div class="label" data-v-b521de47>35kts Radii</div></div><div class="legend" data-v-b521de47><div class="icon r10" data-v-b521de47></div><div class="label" data-v-b521de47>50kts Radii</div></div></div>', 3))
4185
4191
  ]),
4186
4192
  l("div", na, [
4187
4193
  l("div", {
@@ -4297,12 +4303,12 @@ const ca = {
4297
4303
  }
4298
4304
  }
4299
4305
  }, ha = { key: 0 };
4300
- function pa(a, e, t, r, i, o) {
4306
+ function da(a, e, t, r, i, o) {
4301
4307
  var n;
4302
4308
  return (n = t.factor) != null && n.active ? (x(), _("div", ha, [
4303
4309
  l("div", {
4304
4310
  class: "legend-bars flex-center",
4305
- style: $([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
4311
+ style: F([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
4306
4312
  }, e[0] || (e[0] = [
4307
4313
  l("span", null, "mm", -1),
4308
4314
  l("span", null, "1.5", -1),
@@ -4315,7 +4321,7 @@ function pa(a, e, t, r, i, o) {
4315
4321
  ]), 4)
4316
4322
  ])) : B("", !0);
4317
4323
  }
4318
- const da = /* @__PURE__ */ T(ca, [["render", pa], ["__scopeId", "data-v-39b1d5ab"]]);
4324
+ const pa = /* @__PURE__ */ T(ca, [["render", da], ["__scopeId", "data-v-39b1d5ab"]]);
4319
4325
  const ma = {
4320
4326
  name: "IdmVisibility",
4321
4327
  props: {
@@ -4416,7 +4422,7 @@ function ya(a, e, t, r, i, o) {
4416
4422
  return (n = t.factor) != null && n.active ? (x(), _("div", ua, [
4417
4423
  l("div", {
4418
4424
  class: "legend-bars flex-center",
4419
- style: $([{ position: "absolute" }, { right: a.right + "px", bottom: t.bottom }])
4425
+ style: F([{ position: "absolute" }, { right: a.right + "px", bottom: t.bottom }])
4420
4426
  }, e[0] || (e[0] = [
4421
4427
  l("span", null, "nm", -1),
4422
4428
  l("span", null, "0", -1),
@@ -4536,7 +4542,7 @@ function va(a, e, t, r, i, o) {
4536
4542
  return (n = t.factor) != null && n.active ? (x(), _("div", ba, [
4537
4543
  l("div", {
4538
4544
  class: "legend-bars flex-center",
4539
- style: $([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
4545
+ style: F([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
4540
4546
  }, e[0] || (e[0] = [
4541
4547
  l("span", null, "°C", -1),
4542
4548
  l("span", null, "0", -1),
@@ -4659,7 +4665,7 @@ function _a(a, e, t, r, i, o) {
4659
4665
  return (n = t.factor) != null && n.active ? (x(), _("div", xa, [
4660
4666
  l("div", {
4661
4667
  class: "legend-bars flex-center",
4662
- style: $([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
4668
+ style: F([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
4663
4669
  }, e[0] || (e[0] = [
4664
4670
  l("span", null, "°C", -1),
4665
4671
  l("span", null, "-20", -1),
@@ -4775,7 +4781,7 @@ function za(a, e, t, r, i, o) {
4775
4781
  return (n = t.factor) != null && n.active ? (x(), _("div", ka, [
4776
4782
  l("div", {
4777
4783
  class: "legend-bars flex-center",
4778
- style: $([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
4784
+ style: F([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
4779
4785
  }, e[0] || (e[0] = [
4780
4786
  l("span", null, "m", -1),
4781
4787
  l("span", null, "0", -1),
@@ -4842,17 +4848,17 @@ const Ta = {
4842
4848
  },
4843
4849
  computeLat() {
4844
4850
  return function(a, e = 4) {
4845
- return F.lat2pretty(a, e).pretty;
4851
+ return $.lat2pretty(a, e).pretty;
4846
4852
  };
4847
4853
  },
4848
4854
  computeLng() {
4849
4855
  return function(a, e = 4) {
4850
- return F.lng2pretty(a, e).pretty;
4856
+ return $.lng2pretty(a, e).pretty;
4851
4857
  };
4852
4858
  },
4853
4859
  roundPrecision() {
4854
4860
  return function(a, e = 4) {
4855
- return isNaN(a) ? "-" : F.roundPrecision(a, e);
4861
+ return isNaN(a) ? "-" : $.roundPrecision(a, e);
4856
4862
  };
4857
4863
  }
4858
4864
  },
@@ -4870,16 +4876,16 @@ const Ta = {
4870
4876
  var a;
4871
4877
  if (this.meteo) {
4872
4878
  const e = document.getElementById("point-meteo");
4873
- this.meteoMarker ? (a = this.meteoMarker) == null || a.setLngLat([this.meteo.lng, this.meteo.lat]) : this.meteoMarker = new K.Marker(e).setLngLat([this.meteo.lng, this.meteo.lat]).addTo(this.map);
4879
+ this.meteoMarker ? (a = this.meteoMarker) == null || a.setLngLat([this.meteo.lng, this.meteo.lat]) : this.meteoMarker = new Q.Marker(e).setLngLat([this.meteo.lng, this.meteo.lat]).addTo(this.map);
4874
4880
  }
4875
4881
  }
4876
4882
  }
4877
4883
  }, Ra = {
4878
4884
  id: "point-meteo",
4879
4885
  class: "point-meteo"
4880
- }, Ea = { class: "meteo-box" }, Ia = { class: "header-box" }, Da = { class: "main" }, Aa = { class: "sub" }, Ma = { class: "main-box" }, Ba = { class: "flex-space" }, Oa = { class: "flex-space" }, Na = { class: "flex-space" }, ja = { class: "flex-space" }, Wa = { class: "flex-space" }, Fa = { class: "flex-space" }, $a = { class: "flex-space" }, Ua = { class: "flex-space" }, Va = { class: "flex-space" };
4886
+ }, Ea = { class: "meteo-box" }, Ia = { class: "header-box" }, Da = { class: "main" }, Aa = { class: "sub" }, Ma = { class: "main-box" }, Ba = { class: "flex-space" }, Oa = { class: "flex-space" }, Na = { class: "flex-space" }, ja = { class: "flex-space" }, Wa = { class: "flex-space" }, $a = { class: "flex-space" }, Fa = { class: "flex-space" }, Va = { class: "flex-space" }, Ua = { class: "flex-space" };
4881
4887
  function Za(a, e, t, r, i, o) {
4882
- var n, s, c, h, p, d, g, u, y, f, m, v, b, w, k, L, D, A, O, j, W, H, oe, se, ne, le, ce, he, pe, ee, G, J, de, X, R, U, me, q, ue, te, ae, ie, fe, ge, be, ve, Le;
4888
+ var n, s, c, h, d, p, g, u, y, f, m, v, b, w, k, L, D, A, O, j, W, H, re, oe, se, ne, le, ce, he, K, G, J, de, X, R, V, pe, q, me, ee, te, ae, fe, ge, be, ve, Le;
4883
4889
  return Se((x(), _("div", Ra, [
4884
4890
  l("div", Ea, [
4885
4891
  l("div", Ia, [
@@ -4893,7 +4899,7 @@ function Za(a, e, t, r, i, o) {
4893
4899
  l("div", Ma, [
4894
4900
  l("div", Ba, [
4895
4901
  e[1] || (e[1] = l("label", null, "Wind", -1)),
4896
- l("span", null, S(((p = (h = t.meteo) == null ? void 0 : h.wind) == null ? void 0 : p.direction) || "-") + "/" + S(o.roundPrecision((g = (d = t.meteo) == null ? void 0 : d.wind) == null ? void 0 : g.kts, 1)) + "[kts]/" + S((y = (u = t.meteo) == null ? void 0 : u.wind) == null ? void 0 : y.scale) + "[BF]/" + S(o.roundPrecision((m = (f = t.meteo) == null ? void 0 : f.gusts) == null ? void 0 : m.kts, 1)) + "[kts]", 1)
4902
+ l("span", null, S(((d = (h = t.meteo) == null ? void 0 : h.wind) == null ? void 0 : d.direction) || "-") + "/" + S(o.roundPrecision((g = (p = t.meteo) == null ? void 0 : p.wind) == null ? void 0 : g.kts, 1)) + "[kts]/" + S((y = (u = t.meteo) == null ? void 0 : u.wind) == null ? void 0 : y.scale) + "[BF]/" + S(o.roundPrecision((m = (f = t.meteo) == null ? void 0 : f.gusts) == null ? void 0 : m.kts, 1)) + "[kts]", 1)
4897
4903
  ]),
4898
4904
  l("div", Oa, [
4899
4905
  e[2] || (e[2] = l("label", null, "Wind.Wave", -1)),
@@ -4901,29 +4907,29 @@ function Za(a, e, t, r, i, o) {
4901
4907
  ]),
4902
4908
  l("div", Na, [
4903
4909
  e[3] || (e[3] = l("label", null, "Swell", -1)),
4904
- l("span", null, S(((oe = (H = (W = t.meteo) == null ? void 0 : W.wave) == null ? void 0 : H.swell) == null ? void 0 : oe.direction) || "-") + "/" + S(o.roundPrecision((le = (ne = (se = t.meteo) == null ? void 0 : se.wave) == null ? void 0 : ne.swell) == null ? void 0 : le.height, 1)) + "[m]/" + S(o.roundPrecision((pe = (he = (ce = t.meteo) == null ? void 0 : ce.wave) == null ? void 0 : he.swell) == null ? void 0 : pe.period, 1)) + "[s]", 1)
4910
+ l("span", null, S(((re = (H = (W = t.meteo) == null ? void 0 : W.wave) == null ? void 0 : H.swell) == null ? void 0 : re.direction) || "-") + "/" + S(o.roundPrecision((ne = (se = (oe = t.meteo) == null ? void 0 : oe.wave) == null ? void 0 : se.swell) == null ? void 0 : ne.height, 1)) + "[m]/" + S(o.roundPrecision((he = (ce = (le = t.meteo) == null ? void 0 : le.wave) == null ? void 0 : ce.swell) == null ? void 0 : he.period, 1)) + "[s]", 1)
4905
4911
  ]),
4906
4912
  l("div", ja, [
4907
4913
  e[4] || (e[4] = l("label", null, "Sig.Wave", -1)),
4908
- l("span", null, S(((J = (G = (ee = t.meteo) == null ? void 0 : ee.wave) == null ? void 0 : G.sig) == null ? void 0 : J.direction) || "-") + "/" + S(o.roundPrecision((R = (X = (de = t.meteo) == null ? void 0 : de.wave) == null ? void 0 : X.sig) == null ? void 0 : R.height, 1)) + "[m]/" + S(o.roundPrecision((q = (me = (U = t.meteo) == null ? void 0 : U.wave) == null ? void 0 : me.sig) == null ? void 0 : q.period, 1)) + "[s]", 1)
4914
+ l("span", null, S(((J = (G = (K = t.meteo) == null ? void 0 : K.wave) == null ? void 0 : G.sig) == null ? void 0 : J.direction) || "-") + "/" + S(o.roundPrecision((R = (X = (de = t.meteo) == null ? void 0 : de.wave) == null ? void 0 : X.sig) == null ? void 0 : R.height, 1)) + "[m]/" + S(o.roundPrecision((q = (pe = (V = t.meteo) == null ? void 0 : V.wave) == null ? void 0 : pe.sig) == null ? void 0 : q.period, 1)) + "[s]", 1)
4909
4915
  ]),
4910
4916
  l("div", Wa, [
4911
4917
  e[5] || (e[5] = l("label", null, "Current", -1)),
4912
- l("span", null, S(((te = (ue = t.meteo) == null ? void 0 : ue.current) == null ? void 0 : te.direction) || "-") + "/" + S(o.roundPrecision((ie = (ae = t.meteo) == null ? void 0 : ae.current) == null ? void 0 : ie.kts, 2)) + "[kts]", 1)
4918
+ l("span", null, S(((ee = (me = t.meteo) == null ? void 0 : me.current) == null ? void 0 : ee.direction) || "-") + "/" + S(o.roundPrecision((ae = (te = t.meteo) == null ? void 0 : te.current) == null ? void 0 : ae.kts, 2)) + "[kts]", 1)
4913
4919
  ]),
4914
- l("div", Fa, [
4920
+ l("div", $a, [
4915
4921
  e[6] || (e[6] = l("label", null, "Precip", -1)),
4916
4922
  l("span", null, S(o.roundPrecision((ge = (fe = t.meteo) == null ? void 0 : fe.precip) == null ? void 0 : ge.inter6h, 2)) + "[mm]", 1)
4917
4923
  ]),
4918
- l("div", $a, [
4924
+ l("div", Fa, [
4919
4925
  e[7] || (e[7] = l("label", null, "Visibility", -1)),
4920
4926
  l("span", null, S(o.roundPrecision(((be = t.meteo) == null ? void 0 : be.visibility) / 1852, 0)) + "[nm]", 1)
4921
4927
  ]),
4922
- l("div", Ua, [
4928
+ l("div", Va, [
4923
4929
  e[8] || (e[8] = l("label", null, "Temp", -1)),
4924
4930
  l("span", null, S(o.roundPrecision((ve = t.meteo) == null ? void 0 : ve.temp, 0)) + "[°C]", 1)
4925
4931
  ]),
4926
- l("div", Va, [
4932
+ l("div", Ua, [
4927
4933
  e[9] || (e[9] = l("label", null, "Water Temp", -1)),
4928
4934
  l("span", null, S(o.roundPrecision((Le = t.meteo) == null ? void 0 : Le.waterTemp, 2)) + "[°C]", 1)
4929
4935
  ])
@@ -5285,7 +5291,7 @@ const ai = {
5285
5291
  if (t) {
5286
5292
  this.showZone = !0, this.form = { ...t.properties };
5287
5293
  const i = document.getElementById("idm-gl3-zone-info");
5288
- this.marker ? this.marker.setLngLat([a.lngLat.lng, a.lngLat.lat]) : this.marker = new K.Marker(i).setLngLat([a.lngLat.lng, a.lngLat.lat]).setOffset([0, 0]).addTo(this.map);
5294
+ this.marker ? this.marker.setLngLat([a.lngLat.lng, a.lngLat.lat]) : this.marker = new Q.Marker(i).setLngLat([a.lngLat.lng, a.lngLat.lat]).setOffset([0, 0]).addTo(this.map);
5289
5295
  }
5290
5296
  },
5291
5297
  handleRender() {
@@ -5415,12 +5421,12 @@ const ni = {
5415
5421
  computed: {
5416
5422
  computeLat() {
5417
5423
  return function(a) {
5418
- return F.lat2pretty(a, 4).pretty;
5424
+ return $.lat2pretty(a, 4).pretty;
5419
5425
  };
5420
5426
  },
5421
5427
  computeLng() {
5422
5428
  return function(a) {
5423
- return F.lng2pretty(a, 4).pretty;
5429
+ return $.lng2pretty(a, 4).pretty;
5424
5430
  };
5425
5431
  }
5426
5432
  },
@@ -5442,7 +5448,7 @@ const ni = {
5442
5448
  if (t) {
5443
5449
  this.showPort = !0, this.form = { ...t.properties }, this.form.lng = t.geometry.coordinates[0], this.form.lat = t.geometry.coordinates[1];
5444
5450
  const i = document.getElementById("port-info");
5445
- this.marker ? this.marker.setLngLat([a.lngLat.lng, a.lngLat.lat]) : this.marker = new K.Marker(i).setLngLat([a.lngLat.lng, a.lngLat.lat]).setOffset([0, -85]).addTo(this.map);
5451
+ this.marker ? this.marker.setLngLat([a.lngLat.lng, a.lngLat.lat]) : this.marker = new Q.Marker(i).setLngLat([a.lngLat.lng, a.lngLat.lat]).setOffset([0, -85]).addTo(this.map);
5446
5452
  }
5447
5453
  },
5448
5454
  handleEmit() {
@@ -5481,7 +5487,7 @@ const ni = {
5481
5487
  this.showPort = !1, this.map.getLayer(this.layer) && this.map.removeLayer(this.layer), this.map.getSource(this.source) && this.map.removeSource(this.source);
5482
5488
  }
5483
5489
  }
5484
- }, li = { id: "port-info" }, ci = { class: "port-box" }, hi = { class: "flex-start" }, pi = { class: "flex-start" }, di = { class: "flex-start" }, mi = {
5490
+ }, li = { id: "port-info" }, ci = { class: "port-box" }, hi = { class: "flex-start" }, di = { class: "flex-start" }, pi = { class: "flex-start" }, mi = {
5485
5491
  class: "flex-start",
5486
5492
  style: { "align-items": "flex-start" }
5487
5493
  };
@@ -5498,11 +5504,11 @@ function ui(a, e, t, r, i, o) {
5498
5504
  onClick: e[1] || (e[1] = (...n) => o.handleEmit && o.handleEmit(...n))
5499
5505
  }, S(i.form.name), 1)
5500
5506
  ]),
5501
- l("div", pi, [
5507
+ l("div", di, [
5502
5508
  e[3] || (e[3] = l("label", null, "Position : ", -1)),
5503
5509
  l("span", null, S(o.computeLat(i.form.lat)) + ", " + S(o.computeLng(i.form.lng)), 1)
5504
5510
  ]),
5505
- l("div", di, [
5511
+ l("div", pi, [
5506
5512
  e[4] || (e[4] = l("label", null, "LoCode : ", -1)),
5507
5513
  l("span", null, S(i.form.loCode || "-"), 1)
5508
5514
  ]),
@@ -5877,7 +5883,7 @@ const Ci = /* @__PURE__ */ T(xi, [["render", _i]]), Si = {
5877
5883
  methods: {
5878
5884
  handleRender() {
5879
5885
  this.map ? (this.handleClear(), this.area && (this.area.features.forEach((a) => {
5880
- a.geometry.type === "Polygon" && a.geometry.coordinates.forEach((e) => F.convertToMonotonicLng2(e));
5886
+ a.geometry.type === "Polygon" && a.geometry.coordinates.forEach((e) => $.convertToMonotonicLng2(e));
5881
5887
  }), this.map.addSource(this.source, {
5882
5888
  type: "geojson",
5883
5889
  data: this.area
@@ -6051,7 +6057,7 @@ const Ei = {
6051
6057
  this.show ? ((a = this.map) == null || a.on("zoomend", this.handleZoomEnd), this.handleRender()) : (this.handleClear(), (e = this.map) == null || e.off("zoomend", this.handleZoomEnd));
6052
6058
  },
6053
6059
  handleMouseMove(a) {
6054
- const e = a.lngLat, t = F.lng2pretty(e.lng, 2), r = F.lat2pretty(e.lat, 2);
6060
+ const e = a.lngLat, t = $.lng2pretty(e.lng, 2), r = $.lat2pretty(e.lat, 2);
6055
6061
  this.lngLat = { lng: t, lat: r };
6056
6062
  },
6057
6063
  handleComputeLatLngs() {
@@ -6153,7 +6159,7 @@ function Ii(a, e, t, r, i, o) {
6153
6159
  return i.lngLat ? (x(), _("div", {
6154
6160
  key: 0,
6155
6161
  class: "lat-lng-tip",
6156
- style: $({ right: i.right + "px", bottom: t.bottom })
6162
+ style: F({ right: i.right + "px", bottom: t.bottom })
6157
6163
  }, [
6158
6164
  l("span", null, S(i.lngLat.lat.pretty), 1),
6159
6165
  e[0] || (e[0] = l("span", null, ", ", -1)),
@@ -6206,8 +6212,8 @@ const We = /* @__PURE__ */ T(Ei, [["render", Ii], ["__scopeId", "data-v-b0d1ad79
6206
6212
  (a = this.map) == null || a.getCanvas().addEventListener("keydown", this.handleKeydown), (e = this.map) == null || e.on("mousemove", this.handleMove), (t = this.map) == null || t.on("dblclick", this.handleDblClick), (r = this.map) == null || r.on("click", this.handleClick), (i = this.map) == null || i.on("contextmenu", this.handleContextmenu), this.map && (this.map.getCanvas().style.cursor = "crosshair");
6207
6213
  else {
6208
6214
  (o = this.map) == null || o.getCanvas().removeEventListener("keydown", this.handleKeydown), (n = this.map) == null || n.off("mousemove", this.handleMove), (s = this.map) == null || s.off("dblclick", this.handleDblClick), (c = this.map) == null || c.off("click", this.handleClick), (h = this.map) == null || h.off("contextmenu", this.handleContextmenu);
6209
- for (const p of this.geojson)
6210
- this.handleClear(p, !0);
6215
+ for (const d of this.geojson)
6216
+ this.handleClear(d, !0);
6211
6217
  this.geojson = [], this.map && (this.map.getCanvas().style.cursor = "grab");
6212
6218
  }
6213
6219
  },
@@ -6219,7 +6225,7 @@ const We = /* @__PURE__ */ T(Ei, [["render", Ii], ["__scopeId", "data-v-b0d1ad79
6219
6225
  }
6220
6226
  },
6221
6227
  handleDrag(a) {
6222
- var t, r, i, o, n, s, c, h, p, d;
6228
+ var t, r, i, o, n, s, c, h, d, p;
6223
6229
  const e = (r = (t = a.target) == null ? void 0 : t._element) == null ? void 0 : r.id;
6224
6230
  if ((e == null ? void 0 : e.split("-").length) === 2) {
6225
6231
  const g = this.geojson.filter((m) => m.id === e.split("-")[0])[0];
@@ -6238,13 +6244,13 @@ const We = /* @__PURE__ */ T(Ei, [["render", Ii], ["__scopeId", "data-v-b0d1ad79
6238
6244
  this.handleTmpPointUpdate(
6239
6245
  g,
6240
6246
  f[y - 1],
6241
- { lng: (h = (c = a.target) == null ? void 0 : c._lngLat) == null ? void 0 : h.lng, lat: (d = (p = a.target) == null ? void 0 : p._lngLat) == null ? void 0 : d.lat, properties: f[y].properties },
6247
+ { lng: (h = (c = a.target) == null ? void 0 : c._lngLat) == null ? void 0 : h.lng, lat: (p = (d = a.target) == null ? void 0 : d._lngLat) == null ? void 0 : p.lat, properties: f[y].properties },
6242
6248
  y === f.length - 1 ? void 0 : f[y + 1]
6243
6249
  );
6244
6250
  }
6245
6251
  },
6246
6252
  handleDragEnd(a) {
6247
- var t, r, i, o, n, s, c, h, p, d;
6253
+ var t, r, i, o, n, s, c, h, d, p;
6248
6254
  const e = (r = (t = a.target) == null ? void 0 : t._element) == null ? void 0 : r.id;
6249
6255
  if ((e == null ? void 0 : e.split("-").length) === 2) {
6250
6256
  const g = this.geojson.filter((f) => f.id === e.split("-")[0])[0];
@@ -6253,7 +6259,7 @@ const We = /* @__PURE__ */ T(Ei, [["render", Ii], ["__scopeId", "data-v-b0d1ad79
6253
6259
  return ((m = f._element) == null ? void 0 : m.id) === e;
6254
6260
  })[0].setLngLat([(o = (i = a.target) == null ? void 0 : i._lngLat) == null ? void 0 : o.lng, (s = (n = a.target) == null ? void 0 : n._lngLat) == null ? void 0 : s.lat]);
6255
6261
  const y = g.features.filter((f) => f.geometry.type === "Point" && f.properties.id == e.split("-")[1])[0];
6256
- y.geometry.coordinates = [(h = (c = a.target) == null ? void 0 : c._lngLat) == null ? void 0 : h.lng, (d = (p = a.target) == null ? void 0 : p._lngLat) == null ? void 0 : d.lat], g.features = g.features.filter((f) => f.geometry.type === "Point"), this.handlePointUpdate(g);
6262
+ y.geometry.coordinates = [(h = (c = a.target) == null ? void 0 : c._lngLat) == null ? void 0 : h.lng, (p = (d = a.target) == null ? void 0 : d._lngLat) == null ? void 0 : p.lat], g.features = g.features.filter((f) => f.geometry.type === "Point"), this.handlePointUpdate(g);
6257
6263
  }
6258
6264
  },
6259
6265
  handleContextmenu(a) {
@@ -6264,7 +6270,7 @@ const We = /* @__PURE__ */ T(Ei, [["render", Ii], ["__scopeId", "data-v-b0d1ad79
6264
6270
  const s = this.geojson.filter((c) => c.id === e.split("-")[0])[0].features.filter((c) => c.geometry.type === "Point");
6265
6271
  if (s.length > 2 && s.filter((h) => h.properties.id === (e == null ? void 0 : e.split("-")[1]))[0]) {
6266
6272
  const h = document.createElement("div");
6267
- h.className = "point-contextmenu-marker", h.innerHTML = `<span id="del-${e}" class="del-point">Del</span>`, this.contextmenu = new K.Marker(h).setOffset([24, 0]).setLngLat([a.lngLat.lng, a.lngLat.lat]).addTo(this.map);
6273
+ h.className = "point-contextmenu-marker", h.innerHTML = `<span id="del-${e}" class="del-point">Del</span>`, this.contextmenu = new Q.Marker(h).setOffset([24, 0]).setLngLat([a.lngLat.lng, a.lngLat.lat]).addTo(this.map);
6268
6274
  }
6269
6275
  }
6270
6276
  },
@@ -6300,12 +6306,12 @@ const We = /* @__PURE__ */ T(Ei, [["render", Ii], ["__scopeId", "data-v-b0d1ad79
6300
6306
  let t = 0;
6301
6307
  const r = [];
6302
6308
  for (let i = 1; i < e.length; i++) {
6303
- const o = e[i - 1], n = e[i], s = o.properties, c = { lng: o.geometry.coordinates[0], lat: o.geometry.coordinates[1] }, h = { lng: n.geometry.coordinates[0], lat: n.geometry.coordinates[1] }, p = Q.calculateDistance(c, h, s.mode === "RL", 2), d = Q.calculateBearing(c, h, s.mode === "RL", 2);
6304
- t = F.roundPrecision(t + p, 2);
6309
+ const o = e[i - 1], n = e[i], s = o.properties, c = { lng: o.geometry.coordinates[0], lat: o.geometry.coordinates[1] }, h = { lng: n.geometry.coordinates[0], lat: n.geometry.coordinates[1] }, d = Y.calculateDistance(c, h, s.mode === "RL", 2), p = Y.calculateBearing(c, h, s.mode === "RL", 2);
6310
+ t = $.roundPrecision(t + d, 2);
6305
6311
  let g;
6306
- s.mode === "RL" ? g = F.convertToMonotonicLng([c, h]) : g = F.convertToMonotonicLng(Q.interpolateCoordinates(c, h, 200));
6312
+ s.mode === "RL" ? g = $.convertToMonotonicLng([c, h]) : g = $.convertToMonotonicLng(Y.interpolateCoordinates(c, h, 200));
6307
6313
  const u = C.lineString(g.map((y) => [y.lng, y.lat]));
6308
- u.properties.dist = p, u.properties.bearing = d, u.properties.total = t, r.push(u);
6314
+ u.properties.dist = d, u.properties.bearing = p, u.properties.total = t, r.push(u);
6309
6315
  }
6310
6316
  e.push(...r), a.total = t;
6311
6317
  }
@@ -6315,19 +6321,19 @@ const We = /* @__PURE__ */ T(Ei, [["render", Ii], ["__scopeId", "data-v-b0d1ad79
6315
6321
  const i = C.featureCollection([]);
6316
6322
  let o, n;
6317
6323
  if (e) {
6318
- const c = e.properties, h = { lng: e.geometry.coordinates[0], lat: e.geometry.coordinates[1] }, p = { lng: t.lng, lat: t.lat };
6319
- o = Q.calculateDistance(h, p, c.mode === "RL", 2), n = Q.calculateBearing(h, p, c.mode === "RL", 2);
6320
- let d;
6321
- c.mode === "RL" ? d = F.convertToMonotonicLng([h, p]) : d = F.convertToMonotonicLng(Q.interpolateCoordinates(h, p, 200));
6322
- const g = C.lineString(d.map((u) => [u.lng, u.lat]));
6324
+ const c = e.properties, h = { lng: e.geometry.coordinates[0], lat: e.geometry.coordinates[1] }, d = { lng: t.lng, lat: t.lat };
6325
+ o = Y.calculateDistance(h, d, c.mode === "RL", 2), n = Y.calculateBearing(h, d, c.mode === "RL", 2);
6326
+ let p;
6327
+ c.mode === "RL" ? p = $.convertToMonotonicLng([h, d]) : p = $.convertToMonotonicLng(Y.interpolateCoordinates(h, d, 200));
6328
+ const g = C.lineString(p.map((u) => [u.lng, u.lat]));
6323
6329
  g.properties.dist = o, g.properties.bearing = n, i.features.push(g);
6324
6330
  }
6325
6331
  if (r) {
6326
- const c = t.properties, h = t, p = { lng: r.geometry.coordinates[0], lat: r.geometry.coordinates[1] };
6327
- o = Q.calculateDistance(h, p, c.mode === "RL", 2), n = Q.calculateBearing(h, p, c.mode === "RL", 2);
6328
- let d;
6329
- c.mode === "RL" ? d = F.convertToMonotonicLng([h, p]) : d = F.convertToMonotonicLng(Q.interpolateCoordinates(h, p, 200));
6330
- const g = C.lineString(d.map((u) => [u.lng, u.lat]));
6332
+ const c = t.properties, h = t, d = { lng: r.geometry.coordinates[0], lat: r.geometry.coordinates[1] };
6333
+ o = Y.calculateDistance(h, d, c.mode === "RL", 2), n = Y.calculateBearing(h, d, c.mode === "RL", 2);
6334
+ let p;
6335
+ c.mode === "RL" ? p = $.convertToMonotonicLng([h, d]) : p = $.convertToMonotonicLng(Y.interpolateCoordinates(h, d, 200));
6336
+ const g = C.lineString(p.map((u) => [u.lng, u.lat]));
6331
6337
  g.properties.dist = o, g.properties.bearing = n, i.features.push(g);
6332
6338
  }
6333
6339
  this.map.getSource(this.tmpSource) ? this.map.getSource(this.tmpSource).setData(i) : this.map.addSource(this.tmpSource, {
@@ -6368,11 +6374,11 @@ const We = /* @__PURE__ */ T(Ei, [["render", Ii], ["__scopeId", "data-v-b0d1ad79
6368
6374
  }
6369
6375
  });
6370
6376
  let s;
6371
- if (r ? s = '<div class="marker-label">Drag and drop</div>' : s = `<div class="marker-label">Tol distance: <b>${F.roundPrecision((a.total ?? 0) + o, 2)}</b>nm, bearing: <b>${n}</b>°</div><div class="marker-label">${this.navigation === "RL" ? "RL" : "GC"} mode, using 'Shift' to switch</div><div class="marker-label">Double click to end</div>`, this.tipMarker)
6377
+ if (r ? s = '<div class="marker-label">Drag and drop</div>' : s = `<div class="marker-label">Tol distance: <b>${$.roundPrecision((a.total ?? 0) + o, 2)}</b>nm, bearing: <b>${n}</b>°</div><div class="marker-label">${this.navigation === "RL" ? "RL" : "GC"} mode, using 'Shift' to switch</div><div class="marker-label">Double click to end</div>`, this.tipMarker)
6372
6378
  this.tipMarker._element.innerHTML = s, this.tipMarker.setLngLat([t.lng, t.lat]);
6373
6379
  else {
6374
6380
  const c = document.createElement("div");
6375
- c.className = "tip-marker", c.innerHTML = s, this.tipMarker = new K.Marker(c).setOffset([140, 0]).setLngLat([t.lng, t.lat]).addTo(this.map);
6381
+ c.className = "tip-marker", c.innerHTML = s, this.tipMarker = new Q.Marker(c).setOffset([140, 0]).setLngLat([t.lng, t.lat]).addTo(this.map);
6376
6382
  }
6377
6383
  },
6378
6384
  handleMove(a) {
@@ -6430,21 +6436,21 @@ const We = /* @__PURE__ */ T(Ei, [["render", Ii], ["__scopeId", "data-v-b0d1ad79
6430
6436
  for (const n of o) {
6431
6437
  const s = document.createElement("div");
6432
6438
  s.id = `${a.id}-${n.properties.id}`, s.className = `${a.closed ? "point-marker closed" : "point-marker"}`, s.innerHTML = '<div class="marker-circle"></div>';
6433
- const c = new K.Marker({ element: s, draggable: !0, contextmenu: !0 }).setLngLat(n.geometry.coordinates).addTo(this.map);
6439
+ const c = new Q.Marker({ element: s, draggable: !0, contextmenu: !0 }).setLngLat(n.geometry.coordinates).addTo(this.map);
6434
6440
  c.on("drag", this.handleDrag), c.on("dragend", this.handleDragEnd), this.pointMarkers[a.id] ? this.pointMarkers[a.id].push(c) : this.pointMarkers[a.id] = [c];
6435
6441
  }
6436
6442
  if (a.closed) {
6437
- const n = o.at(-1), c = a.features.filter((p) => p.geometry.type === "LineString").at(-1), h = document.createElement("div");
6438
- h.className = "point-summary-marker", h.innerHTML = `<div id="${a.id}" class="marker-close">×</div><div class="marker-label">Tol: ${c.properties.total}nm</div>`, this.closeMarkers[a.id] = new K.Marker(h).setOffset([60, 0]).setLngLat(n.geometry.coordinates).addTo(this.map);
6443
+ const n = o.at(-1), c = a.features.filter((d) => d.geometry.type === "LineString").at(-1), h = document.createElement("div");
6444
+ h.className = "point-summary-marker", h.innerHTML = `<div id="${a.id}" class="marker-close">×</div><div class="marker-label">Tol: ${c.properties.total}nm</div>`, this.closeMarkers[a.id] = new Q.Marker(h).setOffset([60, 0]).setLngLat(n.geometry.coordinates).addTo(this.map);
6439
6445
  }
6440
6446
  }
6441
6447
  },
6442
6448
  handleClear(a, e = !0) {
6443
- var o, n, s, c, h, p, d, g, u;
6449
+ var o, n, s, c, h, d, p, g, u;
6444
6450
  const t = `${a.id}-${this.source}`, r = `${a.id}-${this.layer}`, i = `${a.id}-${this.labelLayer}`;
6445
- (o = this.map) != null && o.getLayer(r) && this.map.removeLayer(r), (n = this.map) != null && n.getLayer(i) && this.map.removeLayer(i), (s = this.map) != null && s.getLayer(this.tmpLayer) && this.map.removeLayer(this.tmpLayer), (c = this.map) != null && c.getLayer(this.tmpLabelLayer) && this.map.removeLayer(this.tmpLabelLayer), (h = this.closeMarkers[a.id]) == null || h.remove(), this.closeMarkers[a.id] = void 0, (p = this.pointMarkers[a.id]) == null || p.forEach((y) => {
6451
+ (o = this.map) != null && o.getLayer(r) && this.map.removeLayer(r), (n = this.map) != null && n.getLayer(i) && this.map.removeLayer(i), (s = this.map) != null && s.getLayer(this.tmpLayer) && this.map.removeLayer(this.tmpLayer), (c = this.map) != null && c.getLayer(this.tmpLabelLayer) && this.map.removeLayer(this.tmpLabelLayer), (h = this.closeMarkers[a.id]) == null || h.remove(), this.closeMarkers[a.id] = void 0, (d = this.pointMarkers[a.id]) == null || d.forEach((y) => {
6446
6452
  y == null || y.remove();
6447
- }), this.pointMarkers[a.id] = [], (d = this.tipMarker) == null || d.remove(), this.tipMarker = void 0, e && ((g = this.map) != null && g.getSource(t)) && this.map.removeSource(t), e && ((u = this.map) != null && u.getSource(this.tmpSource)) && this.map.removeSource(this.tmpSource);
6453
+ }), this.pointMarkers[a.id] = [], (p = this.tipMarker) == null || p.remove(), this.tipMarker = void 0, e && ((g = this.map) != null && g.getSource(t)) && this.map.removeSource(t), e && ((u = this.map) != null && u.getSource(this.tmpSource)) && this.map.removeSource(this.tmpSource);
6448
6454
  }
6449
6455
  }
6450
6456
  };
@@ -6509,7 +6515,7 @@ function ji(a, e, t, r, i, o) {
6509
6515
  return t.enabled && t.permission & i.helper.LEVEL.Supper ? (x(), _("div", Oi, [
6510
6516
  l("div", {
6511
6517
  class: "menu-bar-box",
6512
- style: $({ position: "absolute", right: i.right + "px", bottom: t.bottom })
6518
+ style: F({ position: "absolute", right: i.right + "px", bottom: t.bottom })
6513
6519
  }, [
6514
6520
  l("div", Ni, [
6515
6521
  l("div", {
@@ -6529,7 +6535,7 @@ function ji(a, e, t, r, i, o) {
6529
6535
  ])) : B("", !0);
6530
6536
  }
6531
6537
  const Wi = /* @__PURE__ */ T(Bi, [["render", ji], ["__scopeId", "data-v-505264e4"]]);
6532
- const Fi = {
6538
+ const $i = {
6533
6539
  name: "IdmGLV2",
6534
6540
  components: {
6535
6541
  IdmGlLayer: lt,
@@ -6539,11 +6545,11 @@ const Fi = {
6539
6545
  IdmCurrentParticle: Dt,
6540
6546
  IdmSigWave: Bt,
6541
6547
  IdmSwell: jt,
6542
- IdmPrmsl: $t,
6548
+ IdmPrmsl: Ft,
6543
6549
  // IdmIceEdge,
6544
6550
  IdmIceberg: Zt,
6545
6551
  IdmTropicals: je,
6546
- IdmPrecip3h: da,
6552
+ IdmPrecip3h: pa,
6547
6553
  IdmVisibility: fa,
6548
6554
  IdmWaterTemp: La,
6549
6555
  IdmTemp: Ca,
@@ -6577,8 +6583,12 @@ const Fi = {
6577
6583
  beforeLayer: {
6578
6584
  type: String,
6579
6585
  default: ""
6586
+ },
6587
+ toggleVersion: {
6588
+ type: Number
6580
6589
  }
6581
6590
  },
6591
+ emits: ["toggleVersion"],
6582
6592
  data() {
6583
6593
  return {
6584
6594
  weatherLayers: {},
@@ -6601,7 +6611,6 @@ const Fi = {
6601
6611
  activeWindLayer: !1,
6602
6612
  showWindParticle: !1,
6603
6613
  showCurrentParticle: !1,
6604
- toggleVersion: 0,
6605
6614
  enc: "",
6606
6615
  // enc: 'i4',
6607
6616
  defaultMeteoToken: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImNseTVudHJzYzAwNWUwbHBsZHkyaDRqczMiLCJyb2xlIjoxLCJuYW1lIjoiZmFrZUBvcm13eC5jb20iLCJwbGF0SWQiOiJnZDBtdDFkIiwiY29tcGFueSI6eyJpZCI6bnVsbCwiY2hpbGRyZW4iOltdfSwiaWF0IjoxNzIzMDI0MDI0LCJleHAiOjM5MzA1NDQwMjR9.RrKcdcMnq-FxBLJQ-i6lx2FscDE46y8EvHIemPW4HTg",
@@ -6631,10 +6640,10 @@ const Fi = {
6631
6640
  },
6632
6641
  activeWeatherLayers: {
6633
6642
  handler() {
6634
- var a, e, t, r, i, o, n, s, c, h, p, d, g, u, y, f, m, v;
6643
+ var a, e, t, r, i, o, n, s, c, h, d, p, g, u, y, f, m, v;
6635
6644
  if (!this.map)
6636
6645
  return !1;
6637
- this.activeWeatherLayers.length > 0 ? ((e = (a = this.map) == null ? void 0 : a.getLayer(this.enc)) == null || e.setLayoutProperty("visibility", "none"), (r = (t = this.map) == null ? void 0 : t.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) == null || r.setLayoutProperty("visibility", "visible"), (o = this.map) != null && o.getLayer((i = this.viewport) == null ? void 0 : i.rampColorLayer) && ((n = this.map) != null && n.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && this.mapProjection === "mercator" && ((c = this.map) == null || c.moveLayer((s = this.viewport) == null ? void 0 : s.rampColorLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)), (p = this.map) != null && p.getLayer((h = this.viewport) == null ? void 0 : h.particleLayer) && ((d = this.map) != null && d.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && this.mapProjection === "mercator" && ((u = this.map) == null || u.moveLayer((g = this.viewport) == null ? void 0 : g.particleLayer, this.helper.mapboxCustomer.layers.countryBoundary.id))) : ((f = (y = this.map) == null ? void 0 : y.getLayer(this.enc)) == null || f.setLayoutProperty("visibility", "visible"), (v = (m = this.map) == null ? void 0 : m.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) == null || v.setLayoutProperty("visibility", "none"));
6646
+ this.activeWeatherLayers.length > 0 ? ((e = (a = this.map) == null ? void 0 : a.getLayer(this.enc)) == null || e.setLayoutProperty("visibility", "none"), (r = (t = this.map) == null ? void 0 : t.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) == null || r.setLayoutProperty("visibility", "visible"), (o = this.map) != null && o.getLayer((i = this.viewport) == null ? void 0 : i.rampColorLayer) && ((n = this.map) != null && n.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && this.mapProjection === "mercator" && ((c = this.map) == null || c.moveLayer((s = this.viewport) == null ? void 0 : s.rampColorLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)), (d = this.map) != null && d.getLayer((h = this.viewport) == null ? void 0 : h.particleLayer) && ((p = this.map) != null && p.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && this.mapProjection === "mercator" && ((u = this.map) == null || u.moveLayer((g = this.viewport) == null ? void 0 : g.particleLayer, this.helper.mapboxCustomer.layers.countryBoundary.id))) : ((f = (y = this.map) == null ? void 0 : y.getLayer(this.enc)) == null || f.setLayoutProperty("visibility", "visible"), (v = (m = this.map) == null ? void 0 : m.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) == null || v.setLayoutProperty("visibility", "none"));
6638
6647
  },
6639
6648
  immediate: !0
6640
6649
  }
@@ -6681,7 +6690,7 @@ const Fi = {
6681
6690
  },
6682
6691
  methods: {
6683
6692
  async fetchWeatherLayers(a = { tropicals: !1 }) {
6684
- var i, o, n, s, c, h, p, d;
6693
+ var i, o, n, s, c, h, d, p;
6685
6694
  const e = (/* @__PURE__ */ new Date()).valueOf();
6686
6695
  let t = 0, r = 0;
6687
6696
  if (this.map) {
@@ -6696,7 +6705,7 @@ const Fi = {
6696
6705
  if (this.weatherWeight > 0) {
6697
6706
  let f = this.weatherWeight, m;
6698
6707
  if (a.tropicals || this.weatherWeight & 256 && (m = this.weatherLayers.tropicals, m && (f -= 256, m.version = Math.random() + 1)), f > 0) {
6699
- const v = await re.get(`${this.gateway}/api/arc/weather/layers/links?l=${f}&v=${this.source}&z=${g}&bbox=${y}&t=${this.ts}`, {
6708
+ const v = await ie.get(`${this.gateway}/api/arc/weather/layers/links?l=${f}&v=${this.source}&z=${g}&bbox=${y}&t=${this.ts}`, {
6700
6709
  headers: {
6701
6710
  Authorization: this.token || this.defaultMeteoToken
6702
6711
  }
@@ -6705,7 +6714,7 @@ const Fi = {
6705
6714
  const b = (s = v == null ? void 0 : v.data) == null ? void 0 : s.data, w = [];
6706
6715
  for (const L in b)
6707
6716
  L === "ice-edge" && (b[L] = "https://idm-hz.oss-cn-hangzhou.aliyuncs.com/test/sea_ice_contours.geojson"), L !== "tropicals" && w.push(
6708
- re.get(b[L], {
6717
+ ie.get(b[L], {
6709
6718
  headers: {
6710
6719
  Authorization: this.token || this.defaultMeteoToken,
6711
6720
  key: L
@@ -6724,7 +6733,7 @@ const Fi = {
6724
6733
  type: ((H = L == null ? void 0 : L.config) == null ? void 0 : H.responseType) === "blob" ? "image" : "json",
6725
6734
  etime: this.ts
6726
6735
  });
6727
- }), b.tropicals && re.get(b.tropicals, {
6736
+ }), b.tropicals && ie.get(b.tropicals, {
6728
6737
  headers: {
6729
6738
  Authorization: this.token || this.defaultMeteoToken,
6730
6739
  key: "tropicals"
@@ -6752,7 +6761,7 @@ const Fi = {
6752
6761
  };
6753
6762
  }
6754
6763
  if (this.weatherLayers["current-direction"] || this.weatherLayers["current-speed"]) {
6755
- const b = (p = this.weatherLayers["current-direction"]) == null ? void 0 : p.raw, w = (d = this.weatherLayers["current-speed"]) == null ? void 0 : d.raw;
6764
+ const b = (d = this.weatherLayers["current-direction"]) == null ? void 0 : d.raw, w = (p = this.weatherLayers["current-speed"]) == null ? void 0 : p.raw;
6756
6765
  delete this.weatherLayers["current-direction"], delete this.weatherLayers["current-speed"], this.weatherLayers.current = {
6757
6766
  type: "json",
6758
6767
  direction: b,
@@ -6765,7 +6774,7 @@ const Fi = {
6765
6774
  }
6766
6775
  this.handleWeatherLayerToggle(), this.handleDragEndWithZoom4Json();
6767
6776
  }
6768
- this.toggleVersion = Math.random();
6777
+ this.$emit("toggleVersion", Math.random());
6769
6778
  },
6770
6779
  async fetchOtherLayers(a = { all: !1, dayNight: !1, enc: !1 }) {
6771
6780
  var e, t, r, i;
@@ -6775,49 +6784,49 @@ const Fi = {
6775
6784
  let n = !1;
6776
6785
  if (this.otherWeight & 2048 && (o = this.otherWeight - 2048, n = !0), o) {
6777
6786
  if (a.all) {
6778
- const s = await re.get(`${this.gateway}/api/arc/other/layers/links?l=${o}&t=${this.ts}`, {
6787
+ const s = await ie.get(`${this.gateway}/api/arc/other/layers/links?l=${o}&t=${this.ts}`, {
6779
6788
  headers: {
6780
6789
  Authorization: this.token || this.defaultMeteoToken
6781
6790
  }
6782
6791
  });
6783
6792
  if (((e = s == null ? void 0 : s.data) == null ? void 0 : e.code) === 0) {
6784
6793
  const c = (t = s == null ? void 0 : s.data) == null ? void 0 : t.data, h = [];
6785
- for (const d in c)
6794
+ for (const p in c)
6786
6795
  h.push(
6787
- re.get(c[d], {
6796
+ ie.get(c[p], {
6788
6797
  headers: {
6789
6798
  Authorization: this.token || this.defaultMeteoToken,
6790
- key: d
6799
+ key: p
6791
6800
  }
6792
6801
  })
6793
6802
  );
6794
- const p = await Promise.all(h);
6795
- this.otherLayers = { enc: n }, p.map((d) => {
6803
+ const d = await Promise.all(h);
6804
+ this.otherLayers = { enc: n }, d.map((p) => {
6796
6805
  var y, f, m;
6797
- const g = ((y = d == null ? void 0 : d.data) == null ? void 0 : y.data) || (d == null ? void 0 : d.data), u = (m = (f = d == null ? void 0 : d.config) == null ? void 0 : f.headers) == null ? void 0 : m.key;
6806
+ const g = ((y = p == null ? void 0 : p.data) == null ? void 0 : y.data) || (p == null ? void 0 : p.data), u = (m = (f = p == null ? void 0 : p.config) == null ? void 0 : f.headers) == null ? void 0 : m.key;
6798
6807
  this.otherLayers[u] = g;
6799
6808
  });
6800
6809
  }
6801
6810
  } else if (a.dayNight && o & 1024) {
6802
- const s = await re.get(`${this.gateway}/api/arc/other/layers/links?l=1024&t=${this.ts}`, {
6811
+ const s = await ie.get(`${this.gateway}/api/arc/other/layers/links?l=1024&t=${this.ts}`, {
6803
6812
  headers: {
6804
6813
  Authorization: this.token || this.defaultMeteoToken
6805
6814
  }
6806
6815
  });
6807
6816
  if (((r = s == null ? void 0 : s.data) == null ? void 0 : r.code) === 0) {
6808
6817
  const c = (i = s == null ? void 0 : s.data) == null ? void 0 : i.data, h = [];
6809
- for (const d in c)
6818
+ for (const p in c)
6810
6819
  h.push(
6811
- re.get(c[d], {
6820
+ ie.get(c[p], {
6812
6821
  headers: {
6813
6822
  Authorization: this.token || this.defaultMeteoToken,
6814
- key: d
6823
+ key: p
6815
6824
  }
6816
6825
  })
6817
6826
  );
6818
- (await Promise.all(h)).map((d) => {
6827
+ (await Promise.all(h)).map((p) => {
6819
6828
  var y, f, m;
6820
- const g = ((y = d == null ? void 0 : d.data) == null ? void 0 : y.data) || (d == null ? void 0 : d.data), u = (m = (f = d == null ? void 0 : d.config) == null ? void 0 : f.headers) == null ? void 0 : m.key;
6829
+ const g = ((y = p == null ? void 0 : p.data) == null ? void 0 : y.data) || (p == null ? void 0 : p.data), u = (m = (f = p == null ? void 0 : p.config) == null ? void 0 : f.headers) == null ? void 0 : m.key;
6821
6830
  this.otherLayers[u] = g;
6822
6831
  });
6823
6832
  }
@@ -6839,7 +6848,7 @@ const Fi = {
6839
6848
  this.activeWindLayer = !!this.activeWeatherLayers.find((e) => e.key === "wind"), this.$refs.layer && (this.$refs.layer.activeWeatherLayers = this.activeWeatherLayers);
6840
6849
  },
6841
6850
  handleRampColorInitial() {
6842
- var a, e, t, r, i, o, n, s, c, h, p, d;
6851
+ var a, e, t, r, i, o, n, s, c, h, d, p;
6843
6852
  this.viewport.map.getSource((a = this.viewport) == null ? void 0 : a.rampColorSource) || this.viewport.map.addSource((e = this.viewport) == null ? void 0 : e.rampColorSource, {
6844
6853
  type: "canvas",
6845
6854
  canvas: (t = this.viewport) == null ? void 0 : t.rampColorCanvas,
@@ -6863,8 +6872,8 @@ const Fi = {
6863
6872
  }), this.viewport.map.getLayer((h = this.viewport) == null ? void 0 : h.particleLayer) || this.viewport.map.addLayer(
6864
6873
  {
6865
6874
  type: "raster",
6866
- id: (p = this.viewport) == null ? void 0 : p.particleLayer,
6867
- source: (d = this.viewport) == null ? void 0 : d.particleSource,
6875
+ id: (d = this.viewport) == null ? void 0 : d.particleLayer,
6876
+ source: (p = this.viewport) == null ? void 0 : p.particleSource,
6868
6877
  layout: {
6869
6878
  visibility: "none"
6870
6879
  }
@@ -6873,7 +6882,7 @@ const Fi = {
6873
6882
  );
6874
6883
  },
6875
6884
  handleDragEndWithZoom4Json() {
6876
- var h, p, d, g;
6885
+ var h, d, p, g;
6877
6886
  const a = (/* @__PURE__ */ new Date()).valueOf();
6878
6887
  let e = 0, t = 0;
6879
6888
  const r = (h = this.map) == null ? void 0 : h.getBounds(), i = this.map.getZoom(), o = we(r._sw.lng), n = we(r._ne.lng), s = Math.floor(r._sw.lat), c = Math.ceil(r._ne.lat);
@@ -6882,7 +6891,7 @@ const Fi = {
6882
6891
  this.weatherLayers[u].active = !1, this.weatherLayers[u].version = Math.random() + 1;
6883
6892
  let y = [];
6884
6893
  if (["swell", "current"].includes(u)) {
6885
- const f = ((p = this.weatherLayers[u]) == null ? void 0 : p.direction) || {};
6894
+ const f = ((d = this.weatherLayers[u]) == null ? void 0 : d.direction) || {};
6886
6895
  for (const m in f)
6887
6896
  if (m > s && m < c && (!(i <= this.zoom) || m % (i < this.zoom / 2 ? 5 : 3) === 0)) {
6888
6897
  const v = f[m].lng;
@@ -6911,7 +6920,7 @@ const Fi = {
6911
6920
  if (m) {
6912
6921
  if (!m.data) {
6913
6922
  const v = [];
6914
- for (const b in (d = m.raw) == null ? void 0 : d.LineString) {
6923
+ for (const b in (p = m.raw) == null ? void 0 : p.LineString) {
6915
6924
  const w = m.raw.LineString[b];
6916
6925
  for (const k of w)
6917
6926
  v.push(
@@ -7085,8 +7094,8 @@ const Fi = {
7085
7094
  this.handleBeforeLayerToggle();
7086
7095
  },
7087
7096
  handleBeforeLayerToggle() {
7088
- var a, e, t, r, i, o, n, s, c, h, p, d, g;
7089
- (a = this.map) != null && a.getLayer(this.beforeLayer) && ((e = this.activeWeatherLayers) != null && e.length || (t = this.otherLayers) != null && t["war-zones"] || (r = this.otherLayers) != null && r["gmdss-areas"] || (i = this.otherLayers) != null && i["load-lines"] || (o = this.otherLayers) != null && o["high-risk-area"] || (n = this.otherLayers) != null && n["time-zones"] || (s = this.otherLayers) != null && s.pirates || (c = this.otherLayers) != null && c.ports || (h = this.otherLayers) != null && h.enc || (p = this.otherLayers) != null && p["voluntary-reporting-area"] || (d = this.otherLayers) != null && d["eca-zones"] || (g = this.otherLayers) != null && g["special-area"]) && this.map.setLayoutProperty(this.beforeLayer, "visibility", "visible");
7097
+ var a, e, t, r, i, o, n, s, c, h, d, p, g;
7098
+ (a = this.map) != null && a.getLayer(this.beforeLayer) && ((e = this.activeWeatherLayers) != null && e.length || (t = this.otherLayers) != null && t["war-zones"] || (r = this.otherLayers) != null && r["gmdss-areas"] || (i = this.otherLayers) != null && i["load-lines"] || (o = this.otherLayers) != null && o["high-risk-area"] || (n = this.otherLayers) != null && n["time-zones"] || (s = this.otherLayers) != null && s.pirates || (c = this.otherLayers) != null && c.ports || (h = this.otherLayers) != null && h.enc || (d = this.otherLayers) != null && d["voluntary-reporting-area"] || (p = this.otherLayers) != null && p["eca-zones"] || (g = this.otherLayers) != null && g["special-area"]) && this.map.setLayoutProperty(this.beforeLayer, "visibility", "visible");
7090
7099
  },
7091
7100
  handleDateChange(a = { tropicals: !1 }) {
7092
7101
  this.fetchWeatherLayers(a), this.fetchOtherLayers({ dayNight: !0 });
@@ -7121,7 +7130,7 @@ const Fi = {
7121
7130
  ts: e.utc().format(),
7122
7131
  wt: !0,
7123
7132
  src: this.source
7124
- }, r = await re.get(`${this.gateway}/api/arc/meteo/query`, {
7133
+ }, r = await ie.get(`${this.gateway}/api/arc/meteo/query`, {
7125
7134
  params: t,
7126
7135
  headers: {
7127
7136
  Authorization: this.token || this.defaultMeteoToken
@@ -7133,42 +7142,45 @@ const Fi = {
7133
7142
  });
7134
7143
  },
7135
7144
  handle3dToggle(a) {
7136
- var e, t, r, i, o, n, s, c, h, p, d, g, u, y, f, m, v, b, w, k;
7137
- a ? (this.map.setProjection("globe"), this.mapProjection = "globe", (t = this.map) != null && t.getLayer((e = this.viewport) == null ? void 0 : e.rampColorLayer) && ((r = this.map) != null && r.getLayer(this.helper.mapboxCustomer.layers.water.id)) && ((o = this.map) == null || o.moveLayer((i = this.viewport) == null ? void 0 : i.rampColorLayer, this.helper.mapboxCustomer.layers.water.id)), (s = this.map) != null && s.getLayer((n = this.viewport) == null ? void 0 : n.particleLayer) && ((c = this.map) != null && c.getLayer(this.helper.mapboxCustomer.layers.water.id)) && ((p = this.map) == null || p.moveLayer((h = this.viewport) == null ? void 0 : h.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(), (g = this.map) != null && g.getLayer((d = this.viewport) == null ? void 0 : d.rampColorLayer) && ((u = this.map) != null && u.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && ((f = this.map) == null || f.moveLayer((y = this.viewport) == null ? void 0 : y.rampColorLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)), (v = this.map) != null && v.getLayer((m = this.viewport) == null ? void 0 : m.particleLayer) && ((b = this.map) != null && b.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && ((k = this.map) == null || k.moveLayer((w = this.viewport) == null ? void 0 : w.particleLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)));
7145
+ var e, t, r, i, o, n, s, c, h, d, p, g, u, y, f, m, v, b, w, k;
7146
+ a ? (this.map.setProjection("globe"), this.mapProjection = "globe", (t = this.map) != null && t.getLayer((e = this.viewport) == null ? void 0 : e.rampColorLayer) && ((r = this.map) != null && r.getLayer(this.helper.mapboxCustomer.layers.water.id)) && ((o = this.map) == null || o.moveLayer((i = this.viewport) == null ? void 0 : i.rampColorLayer, this.helper.mapboxCustomer.layers.water.id)), (s = this.map) != null && s.getLayer((n = this.viewport) == null ? void 0 : n.particleLayer) && ((c = this.map) != null && c.getLayer(this.helper.mapboxCustomer.layers.water.id)) && ((d = this.map) == null || d.moveLayer((h = this.viewport) == null ? void 0 : h.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(), (g = this.map) != null && g.getLayer((p = this.viewport) == null ? void 0 : p.rampColorLayer) && ((u = this.map) != null && u.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && ((f = this.map) == null || f.moveLayer((y = this.viewport) == null ? void 0 : y.rampColorLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)), (v = this.map) != null && v.getLayer((m = this.viewport) == null ? void 0 : m.particleLayer) && ((b = this.map) != null && b.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && ((k = this.map) == null || k.moveLayer((w = this.viewport) == null ? void 0 : w.particleLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)));
7138
7147
  },
7139
7148
  handleParticle(a) {
7140
7149
  this.particleFactor = a, this.fetchWeatherLayers({ tropicals: !1 });
7150
+ },
7151
+ handleToggleVersion() {
7152
+ this.$emit("toggleVersion", Math.random());
7141
7153
  }
7142
7154
  }
7143
- }, $i = {
7155
+ }, Fi = {
7144
7156
  key: 0,
7145
7157
  className: "map-gl-home"
7146
7158
  };
7147
- function Ui(a, e, t, r, i, o) {
7148
- var ee, G, J, de, X, R, U, me, q, ue, te, ae, ie, fe, ge, be, ve, Le, ze, Re, Ee, Ie, De, Ae, Me, Be;
7149
- const n = z("IdmGlLayer"), s = z("IdmENC"), c = z("IdmSigWave"), h = z("IdmSwell"), p = z("IdmPrmsl"), d = z("IdmIceberg"), g = z("IdmTropicals"), u = z("IdmCurrents"), y = z("IdmCurrentParticle"), f = z("IdmWindBarb"), m = z("IdmWindParticle"), v = z("IdmPrecip3h"), b = z("IdmVisibility"), w = z("IdmWaterTemp"), k = z("IdmTemp"), L = z("IdmArctic"), D = z("IdmWarZone"), A = z("IdmGmdssArea"), O = z("IdmEcaZone"), j = z("IdmAlertZone"), W = z("IdmPort"), H = z("IdmLoadLine"), oe = z("IdmTimezone"), se = z("IdmVRA"), ne = z("IdmSpecialArea"), le = z("IdmTerminator"), ce = z("IdmLatLng"), he = z("IdmMeasure"), pe = z("IdmPoint");
7150
- return t.map ? (x(), _("div", $i, [
7159
+ function Vi(a, e, t, r, i, o) {
7160
+ var K, G, J, de, X, R, V, pe, q, me, ee, te, ae, fe, ge, be, ve, Le, ze, Re, Ee, Ie, De, Ae, Me, Be;
7161
+ const n = z("IdmGlLayer"), s = z("IdmENC"), c = z("IdmSigWave"), h = z("IdmSwell"), d = z("IdmPrmsl"), p = z("IdmIceberg"), g = z("IdmTropicals"), u = z("IdmCurrents"), y = z("IdmCurrentParticle"), f = z("IdmWindBarb"), m = z("IdmWindParticle"), v = z("IdmPrecip3h"), b = z("IdmVisibility"), w = z("IdmWaterTemp"), k = z("IdmTemp"), L = z("IdmArctic"), D = z("IdmWarZone"), A = z("IdmGmdssArea"), O = z("IdmEcaZone"), j = z("IdmAlertZone"), W = z("IdmPort"), H = z("IdmLoadLine"), re = z("IdmTimezone"), oe = z("IdmVRA"), se = z("IdmSpecialArea"), ne = z("IdmTerminator"), le = z("IdmLatLng"), ce = z("IdmMeasure"), he = z("IdmPoint");
7162
+ return t.map ? (x(), _("div", Fi, [
7151
7163
  P(n, E({
7152
7164
  ref: "layer",
7153
7165
  map: t.map,
7154
- "toggle-version": i.toggleVersion,
7166
+ "toggle-version": t.toggleVersion,
7155
7167
  "map-projection": i.mapProjection
7156
7168
  }, a.$attrs, {
7157
7169
  onWeather: o.handleWeatherLayerChange,
7158
7170
  onOther: o.handleOtherLayerChange,
7159
- onCoordinate: e[0] || (e[0] = (Y) => i.showCoord = Y),
7160
- onMeasure: e[1] || (e[1] = (Y) => i.showMeasure = Y),
7161
- onPoint: e[2] || (e[2] = (Y) => i.showPoint = Y),
7171
+ onCoordinate: e[0] || (e[0] = (ue) => i.showCoord = ue),
7172
+ onMeasure: e[1] || (e[1] = (ue) => i.showMeasure = ue),
7173
+ onPoint: e[2] || (e[2] = (ue) => i.showPoint = ue),
7162
7174
  on3d: o.handle3dToggle,
7163
- onToggleVersion: e[3] || (e[3] = (Y) => i.toggleVersion = Y)
7164
- }), null, 16, ["map", "toggle-version", "map-projection", "onWeather", "onOther", "on3d"]),
7175
+ onHandleToggleVersion: o.handleToggleVersion
7176
+ }), null, 16, ["map", "toggle-version", "map-projection", "onWeather", "onOther", "on3d", "onHandleToggleVersion"]),
7165
7177
  P(s, E({
7166
7178
  map: t.map,
7167
7179
  token: t.token,
7168
- enabled: (ee = i.otherLayers) == null ? void 0 : ee.enc,
7169
- "toggle-version": i.toggleVersion
7180
+ enabled: (K = i.otherLayers) == null ? void 0 : K.enc,
7181
+ "toggle-version": t.toggleVersion
7170
7182
  }, a.$attrs, {
7171
- onEnc: e[4] || (e[4] = (Y) => i.enc = Y)
7183
+ onEnc: e[3] || (e[3] = (ue) => i.enc = ue)
7172
7184
  }), null, 16, ["map", "token", "enabled", "toggle-version"]),
7173
7185
  P(c, E({
7174
7186
  map: t.map,
@@ -7180,13 +7192,13 @@ function Ui(a, e, t, r, i, o) {
7180
7192
  swell: (J = i.weatherLayers) == null ? void 0 : J.swell,
7181
7193
  "before-layer": t.beforeLayer
7182
7194
  }, a.$attrs), null, 16, ["map", "swell", "before-layer"]),
7183
- P(p, E({
7195
+ P(d, E({
7184
7196
  map: t.map,
7185
7197
  prmsl: (de = i.weatherLayers) == null ? void 0 : de.prmsl,
7186
7198
  "before-layer": t.beforeLayer,
7187
7199
  "active-weather-layers": i.activeWeatherLayers
7188
7200
  }, a.$attrs), null, 16, ["map", "prmsl", "before-layer", "active-weather-layers"]),
7189
- P(d, E({
7201
+ P(p, E({
7190
7202
  map: t.map,
7191
7203
  iceberg: (X = i.weatherLayers) == null ? void 0 : X.iceberg,
7192
7204
  "before-layer": t.beforeLayer
@@ -7200,68 +7212,68 @@ function Ui(a, e, t, r, i, o) {
7200
7212
  P(u, E({
7201
7213
  map: t.map,
7202
7214
  "map-projection": i.mapProjection,
7203
- current: (U = i.weatherLayers) == null ? void 0 : U.current,
7215
+ current: (V = i.weatherLayers) == null ? void 0 : V.current,
7204
7216
  "before-layer": t.beforeLayer,
7205
7217
  "show-particle": i.showCurrentParticle,
7206
7218
  "margin-bottom": i.activeWindLayer ? i.showRampColor ? "84px" : "56px" : i.showRampColor ? "56px" : "30px",
7207
- "toggle-version": i.toggleVersion,
7219
+ "toggle-version": t.toggleVersion,
7208
7220
  "weather-layers": i.weatherLayers
7209
7221
  }, a.$attrs, { onParticle: o.handleParticle }), null, 16, ["map", "map-projection", "current", "before-layer", "show-particle", "margin-bottom", "toggle-version", "weather-layers", "onParticle"]),
7210
7222
  P(y, E({
7211
7223
  viewport: i.viewport,
7212
- factor: (me = i.weatherLayers) == null ? void 0 : me["current-particle"],
7224
+ factor: (pe = i.weatherLayers) == null ? void 0 : pe["current-particle"],
7213
7225
  "before-layer": t.beforeLayer,
7214
- "toggle-version": i.toggleVersion
7226
+ "toggle-version": t.toggleVersion
7215
7227
  }, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
7216
7228
  P(f, E({
7217
7229
  ref: "windBarb",
7218
7230
  map: t.map,
7219
7231
  "map-projection": i.mapProjection,
7220
7232
  wind: (q = i.weatherLayers) == null ? void 0 : q.wind,
7221
- current: (ue = i.weatherLayers) == null ? void 0 : ue.current,
7233
+ current: (me = i.weatherLayers) == null ? void 0 : me.current,
7222
7234
  "before-layer": t.beforeLayer,
7223
7235
  "margin-bottom": i.showRampColor ? "56px" : "30px",
7224
7236
  "show-particle": i.showWindParticle
7225
7237
  }, a.$attrs, {
7226
- "toggle-version": i.toggleVersion,
7238
+ "toggle-version": t.toggleVersion,
7227
7239
  "weather-layers": i.weatherLayers,
7228
7240
  onParticle: o.handleParticle
7229
7241
  }), null, 16, ["map", "map-projection", "wind", "current", "before-layer", "margin-bottom", "show-particle", "toggle-version", "weather-layers", "onParticle"]),
7230
7242
  P(m, E({
7231
7243
  viewport: i.viewport,
7232
- factor: (te = i.weatherLayers) == null ? void 0 : te["wind-particle"],
7244
+ factor: (ee = i.weatherLayers) == null ? void 0 : ee["wind-particle"],
7233
7245
  "before-layer": t.beforeLayer,
7234
- "toggle-version": i.toggleVersion
7246
+ "toggle-version": t.toggleVersion
7235
7247
  }, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
7236
7248
  P(v, E({
7237
7249
  viewport: i.viewport,
7238
- factor: (ae = i.weatherLayers) == null ? void 0 : ae.precip3h,
7250
+ factor: (te = i.weatherLayers) == null ? void 0 : te.precip3h,
7239
7251
  "before-layer": t.beforeLayer,
7240
- "toggle-version": i.toggleVersion
7252
+ "toggle-version": t.toggleVersion
7241
7253
  }, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
7242
7254
  P(b, E({
7243
7255
  viewport: i.viewport,
7244
- factor: (ie = i.weatherLayers) == null ? void 0 : ie.visibility,
7256
+ factor: (ae = i.weatherLayers) == null ? void 0 : ae.visibility,
7245
7257
  "before-layer": t.beforeLayer,
7246
- "toggle-version": i.toggleVersion
7258
+ "toggle-version": t.toggleVersion
7247
7259
  }, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
7248
7260
  P(w, E({
7249
7261
  viewport: i.viewport,
7250
7262
  factor: (fe = i.weatherLayers) == null ? void 0 : fe["water-temp"],
7251
7263
  "before-layer": t.beforeLayer,
7252
- "toggle-version": i.toggleVersion
7264
+ "toggle-version": t.toggleVersion
7253
7265
  }, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
7254
7266
  P(k, E({
7255
7267
  viewport: i.viewport,
7256
7268
  factor: (ge = i.weatherLayers) == null ? void 0 : ge.temp,
7257
7269
  "before-layer": t.beforeLayer,
7258
- "toggle-version": i.toggleVersion
7270
+ "toggle-version": t.toggleVersion
7259
7271
  }, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
7260
7272
  P(L, E({
7261
7273
  viewport: i.viewport,
7262
7274
  factor: (be = i.weatherLayers) == null ? void 0 : be.arctic,
7263
7275
  "before-layer": t.beforeLayer,
7264
- "toggle-version": i.toggleVersion
7276
+ "toggle-version": t.toggleVersion
7265
7277
  }, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
7266
7278
  P(D, E({
7267
7279
  map: t.map,
@@ -7293,52 +7305,52 @@ function Ui(a, e, t, r, i, o) {
7293
7305
  line: (Ie = i.otherLayers) == null ? void 0 : Ie["load-lines"],
7294
7306
  "before-layer": t.beforeLayer
7295
7307
  }, a.$attrs), null, 16, ["map", "line", "before-layer"]),
7296
- P(oe, E({
7308
+ P(re, E({
7297
7309
  map: t.map,
7298
7310
  zone: (De = i.otherLayers) == null ? void 0 : De["time-zones"],
7299
7311
  "before-layer": t.beforeLayer
7300
7312
  }, a.$attrs), null, 16, ["map", "zone", "before-layer"]),
7301
- P(se, E({
7313
+ P(oe, E({
7302
7314
  map: t.map,
7303
7315
  area: (Ae = i.otherLayers) == null ? void 0 : Ae["voluntary-reporting-area"],
7304
7316
  "before-layer": t.beforeLayer
7305
7317
  }, a.$attrs), null, 16, ["map", "area", "before-layer"]),
7306
- P(ne, E({
7318
+ P(se, E({
7307
7319
  map: t.map,
7308
7320
  area: (Me = i.otherLayers) == null ? void 0 : Me["special-area"],
7309
7321
  "before-layer": t.beforeLayer
7310
7322
  }, a.$attrs), null, 16, ["map", "area", "before-layer"]),
7311
- P(le, E({
7323
+ P(ne, E({
7312
7324
  map: t.map,
7313
7325
  area: (Be = i.otherLayers) == null ? void 0 : Be["day-night"]
7314
7326
  }, a.$attrs), null, 16, ["map", "area"]),
7315
- P(ce, E({
7327
+ P(le, E({
7316
7328
  map: t.map,
7317
7329
  show: i.showCoord,
7318
- "toggle-version": i.toggleVersion
7330
+ "toggle-version": t.toggleVersion
7319
7331
  }, a.$attrs), null, 16, ["map", "show", "toggle-version"]),
7320
- P(he, E({
7332
+ P(ce, E({
7321
7333
  map: t.map,
7322
7334
  show: i.showMeasure
7323
7335
  }, a.$attrs), null, 16, ["map", "show"]),
7324
- P(pe, E({
7336
+ P(he, E({
7325
7337
  map: t.map,
7326
7338
  show: i.showPoint,
7327
7339
  meteo: i.meteo
7328
7340
  }, a.$attrs, { onPoint: o.handlePointChange }), null, 16, ["map", "show", "meteo", "onPoint"])
7329
7341
  ])) : B("", !0);
7330
7342
  }
7331
- const Vi = /* @__PURE__ */ T(Fi, [["render", Ui]]), Ki = {
7343
+ const Ui = /* @__PURE__ */ T($i, [["render", Vi]]), Ki = {
7332
7344
  install(a) {
7333
- a.component("MapboxGL", Vi), a.component("TropicalGL", je), a.component("LatLngGL", We);
7345
+ a.component("MapboxGL", Ui), a.component("TropicalGL", je), a.component("LatLngGL", We);
7334
7346
  }
7335
7347
  };
7336
7348
  export {
7337
7349
  We as LatLngGL,
7338
- Vi as MapboxGL,
7350
+ Ui as MapboxGL,
7339
7351
  Ki as MapboxGLPlugin,
7340
7352
  gt as MapboxHelper,
7341
- V as ParticleSchema,
7353
+ U as ParticleSchema,
7342
7354
  je as TropicalGL,
7343
7355
  Te as Viewport,
7344
7356
  ye as WebGL,