@idmwx/idmui-gl3 4.0.5 → 4.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,19 +1,19 @@
1
1
  var et = Object.defineProperty;
2
- var tt = (t, e, a) => e in t ? et(t, e, { enumerable: !0, configurable: !0, writable: !0, value: a }) : t[e] = a;
3
- var R = (t, e, a) => (tt(t, typeof e != "symbol" ? e + "" : e, a), a);
2
+ var tt = (a, e, t) => e in a ? et(a, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : a[e] = t;
3
+ var R = (a, e, t) => (tt(a, typeof e != "symbol" ? e + "" : e, t), t);
4
4
  import { LayerHelper as We, CompanyHelper as Ae, convertToStandardLng as Ie } from "@idmwx/idmwx-base";
5
- import { resolveComponent as z, openBlock as L, createElementBlock as x, createElementVNode as l, normalizeStyle as F, normalizeClass as M, Fragment as Re, renderList as De, toDisplayString as S, createVNode as P, withCtx as at, createTextVNode as Xe, createCommentVNode as $, pushScopeId as G, popScopeId as H, withDirectives as Me, vShow as $e, createStaticVNode as it, mergeProps as I } from "vue";
5
+ import { resolveComponent as z, openBlock as L, createElementBlock as x, createElementVNode as l, normalizeStyle as F, normalizeClass as M, Fragment as Re, renderList as De, toDisplayString as S, createVNode as P, withCtx as at, createTextVNode as Xe, createCommentVNode as $, pushScopeId as H, popScopeId as G, withDirectives as Me, vShow as $e, createStaticVNode as it, mergeProps as I } from "vue";
6
6
  import * as C from "@turf/turf";
7
7
  import rt from "@mapbox/sphericalmercator";
8
- import te from "moment";
8
+ import Z from "moment";
9
9
  import ne from "mapbox-gl";
10
- import { TropicalHelper as qe, LngLatHelper as j, LaneHelper as ee } from "@idm-plugin/geo";
10
+ import { TropicalHelper as qe, LngLatHelper as j, LaneHelper as te } from "@idm-plugin/geo";
11
11
  import se from "axios";
12
- const T = (t, e) => {
13
- const a = t.__vccOpts || t;
12
+ const T = (a, e) => {
13
+ const t = a.__vccOpts || a;
14
14
  for (const [r, i] of e)
15
- a[r] = i;
16
- return a;
15
+ t[r] = i;
16
+ return t;
17
17
  }, ot = {
18
18
  name: "IdmGlLayer",
19
19
  props: {
@@ -70,9 +70,9 @@ const T = (t, e) => {
70
70
  },
71
71
  computed: {
72
72
  computeLayerClass() {
73
- return function(t, e) {
74
- let a = "layer";
75
- return e.some((r) => r.key === t.key) && (a = "layer active"), (!t.enabled || this.rampColorLayers.includes(t.key) && this.mapProjection === "globe") && (a = "layer disabled"), a;
73
+ return function(a, e) {
74
+ let t = "layer";
75
+ return e.some((r) => r.key === a.key) && (t = "layer active"), (!a.enabled || this.rampColorLayers.includes(a.key) && this.mapProjection === "globe") && (t = "layer disabled"), t;
76
76
  };
77
77
  }
78
78
  },
@@ -80,56 +80,56 @@ const T = (t, e) => {
80
80
  showLayers: {
81
81
  handler() {
82
82
  this.$nextTick(() => {
83
- var t, e;
84
- this.$emit("menu", this.showLayers ? !1 : this.toggleMenu), this.$emit("toggleVersion", Math.random()), this.right = (((t = document.getElementsByClassName("available-layers-show")[0]) == null ? void 0 : t.clientWidth) || 0) + (((e = document.getElementsByClassName("fleet-list-container")[0]) == null ? void 0 : e.clientWidth) || 0) + 10;
83
+ var a, e;
84
+ this.$emit("menu", this.showLayers ? !1 : this.toggleMenu), this.$emit("toggleVersion", Math.random()), this.right = (((a = document.getElementsByClassName("available-layers-show")[0]) == null ? void 0 : a.clientWidth) || 0) + (((e = document.getElementsByClassName("fleet-list-container")[0]) == null ? void 0 : e.clientWidth) || 0) + 10;
85
85
  });
86
86
  }
87
87
  },
88
88
  toggleMenu: {
89
89
  handler() {
90
90
  this.$nextTick(() => {
91
- var t, e;
92
- this.showLayers = this.toggleMenu ? !1 : this.showLayers, this.$emit("toggleVersion", Math.random()), this.right = (((t = document.getElementsByClassName("available-layers-show")[0]) == null ? void 0 : t.clientWidth) || 0) + (((e = document.getElementsByClassName("fleet-list-container")[0]) == null ? void 0 : e.clientWidth) || 0) + 10;
91
+ var a, e;
92
+ this.showLayers = this.toggleMenu ? !1 : this.showLayers, this.$emit("toggleVersion", Math.random()), this.right = (((a = document.getElementsByClassName("available-layers-show")[0]) == null ? void 0 : a.clientWidth) || 0) + (((e = document.getElementsByClassName("fleet-list-container")[0]) == null ? void 0 : e.clientWidth) || 0) + 10;
93
93
  });
94
94
  }
95
95
  }
96
96
  },
97
97
  mounted() {
98
- const t = localStorage.getItem(this.version.k);
99
- this.version.v !== t && (localStorage.removeItem(this.weatherLayersCache), localStorage.setItem(this.version.k, this.version.v));
98
+ const a = localStorage.getItem(this.version.k);
99
+ this.version.v !== a && (localStorage.removeItem(this.weatherLayersCache), localStorage.setItem(this.version.k, this.version.v));
100
100
  let e = localStorage.getItem(this.autoActiveCache);
101
101
  this.autoActive = e !== "false", e = localStorage.getItem(this.weatherLayersCache);
102
- let a = JSON.parse(
102
+ let t = JSON.parse(
103
103
  e || '[{"weight":1,"name":"Wind","key":"wind","enabled":true,"type":"json","particle":true},{"weight":4096,"name":"Pressure","key":"prmsl","enabled":true,"type":"json"},{"weight":256,"name":"Tropicals","key":"tropicals","enabled":true,"type":"json"}]'
104
104
  );
105
- this.weatherLayers = a, this.autoActive && (this.activeWeatherLayers = [...a]), e = localStorage.getItem(this.otherLayersCache), a = JSON.parse(
105
+ this.weatherLayers = t, this.autoActive && (this.activeWeatherLayers = [...t]), e = localStorage.getItem(this.otherLayersCache), t = JSON.parse(
106
106
  e || // '[{"weight":2048,"name":"ENC","key":"enc","enabled":true,"type":"json"},{"weight":4,"name":"ECA Zones","key":"eca-zones","enabled":true,"type":"json"}]',
107
107
  '[{"weight":4,"name":"ECA Zones","key":"eca-zones","enabled":true,"type":"json"}]'
108
- ), this.otherLayers = a, e = localStorage.getItem(this.sourceCache), this.source = e || "GFS", this.handleConfirm();
108
+ ), this.otherLayers = t, e = localStorage.getItem(this.sourceCache), this.source = e || "GFS", this.handleConfirm();
109
109
  },
110
110
  methods: {
111
111
  handleConfirm() {
112
112
  this.$emit("weather", this.weatherLayers, this.activeWeatherLayers, this.source), this.$emit("other", this.otherLayers), localStorage.setItem(this.autoActiveCache, this.autoActive), localStorage.setItem(this.sourceCache, this.source);
113
113
  },
114
- handleWeatherLayerPick(t) {
115
- if (this.rampColorLayers.includes(t.key) && this.mapProjection === "globe")
114
+ handleWeatherLayerPick(a) {
115
+ if (this.rampColorLayers.includes(a.key) && this.mapProjection === "globe")
116
116
  return !1;
117
- this.weatherLayers.some((e) => e.key === t.key) ? (this.weatherLayers = this.weatherLayers.filter((e) => e.key !== t.key), this.activeWeatherLayers = this.activeWeatherLayers.filter((e) => e.key !== t.key)) : this.weatherLayers.length < 12 && t.enabled && (["png", "jpg"].includes(t.type) && (this.weatherLayers = this.weatherLayers.filter((e) => e.type === "json"), this.activeWeatherLayers = this.activeWeatherLayers.filter((e) => e.type === "json")), this.weatherLayers.push(t), this.activeWeatherLayers.push(t)), localStorage.setItem(this.weatherLayersCache, JSON.stringify(this.weatherLayers)), this.$emit("weather", this.weatherLayers, this.activeWeatherLayers, this.source), localStorage.setItem(this.autoActiveCache, this.autoActive), localStorage.setItem(this.sourceCache, this.source);
117
+ this.weatherLayers.some((e) => e.key === a.key) ? (this.weatherLayers = this.weatherLayers.filter((e) => e.key !== a.key), this.activeWeatherLayers = this.activeWeatherLayers.filter((e) => e.key !== a.key)) : this.weatherLayers.length < 12 && a.enabled && (["png", "jpg"].includes(a.type) && (this.weatherLayers = this.weatherLayers.filter((e) => e.type === "json"), this.activeWeatherLayers = this.activeWeatherLayers.filter((e) => e.type === "json")), this.weatherLayers.push(a), this.activeWeatherLayers.push(a)), localStorage.setItem(this.weatherLayersCache, JSON.stringify(this.weatherLayers)), this.$emit("weather", this.weatherLayers, this.activeWeatherLayers, this.source), localStorage.setItem(this.autoActiveCache, this.autoActive), localStorage.setItem(this.sourceCache, this.source);
118
118
  },
119
- handleActiveWeatherLayerPick(t) {
120
- if (this.rampColorLayers.includes(t.key) && this.mapProjection === "globe")
119
+ handleActiveWeatherLayerPick(a) {
120
+ if (this.rampColorLayers.includes(a.key) && this.mapProjection === "globe")
121
121
  return !1;
122
- if (this.activeWeatherLayers.some((e) => e.key === t.key))
123
- this.activeWeatherLayers = this.activeWeatherLayers.filter((e) => e.key !== t.key);
124
- else if (t.enabled) {
125
- this.activeWeatherLayers.push(t);
122
+ if (this.activeWeatherLayers.some((e) => e.key === a.key))
123
+ this.activeWeatherLayers = this.activeWeatherLayers.filter((e) => e.key !== a.key);
124
+ else if (a.enabled) {
125
+ this.activeWeatherLayers.push(a);
126
126
  for (const e of this.weatherLayers)
127
- t.weight > e.weight && t.weight & e.weight && this.activeWeatherLayers.push(e);
127
+ a.weight > e.weight && a.weight & e.weight && this.activeWeatherLayers.push(e);
128
128
  }
129
129
  this.$emit("weather", this.weatherLayers, this.activeWeatherLayers, this.source);
130
130
  },
131
- handleOtherLayerPick(t) {
132
- this.otherLayers.some((e) => e.key === t.key) ? this.otherLayers = this.otherLayers.filter((e) => e.key !== t.key) : t.enabled && this.otherLayers.push(t), localStorage.setItem(this.otherLayersCache, JSON.stringify(this.otherLayers)), this.$emit("other", this.otherLayers);
131
+ handleOtherLayerPick(a) {
132
+ this.otherLayers.some((e) => e.key === a.key) ? this.otherLayers = this.otherLayers.filter((e) => e.key !== a.key) : a.enabled && this.otherLayers.push(a), localStorage.setItem(this.otherLayersCache, JSON.stringify(this.otherLayers)), this.$emit("other", this.otherLayers);
133
133
  },
134
134
  handleMenuToggle() {
135
135
  this.showLayers = !this.showLayers;
@@ -146,8 +146,8 @@ const T = (t, e) => {
146
146
  handle3DToggle() {
147
147
  this.show3d = !this.show3d, this.$emit("3d", this.show3d);
148
148
  },
149
- handleSourceToggle(t) {
150
- this.source = t, this.handleConfirm();
149
+ handleSourceToggle(a) {
150
+ this.source = a, this.handleConfirm();
151
151
  }
152
152
  }
153
153
  }, st = { class: "idm-gl3-layer" }, nt = { class: "bar-item layer-bars" }, lt = /* @__PURE__ */ l("span", { class: "iconfont" }, "", -1), ct = [
@@ -166,12 +166,12 @@ const T = (t, e) => {
166
166
  class: "layers-title",
167
167
  style: { display: "flex", "align-items": "center", "justify-content": "space-between" }
168
168
  }, St = { style: { "font-size": "12px" } }, kt = { class: "layers-body" }, zt = ["onClick"], Pt = /* @__PURE__ */ l("div", { class: "checkbox" }, null, -1), Tt = { class: "other-layers" }, Et = /* @__PURE__ */ l("div", { class: "layers-title" }, "Other Layers", -1), It = { class: "layers-body" }, Rt = ["onClick"], Dt = /* @__PURE__ */ l("div", { class: "checkbox" }, null, -1), At = { class: "source-layers" }, Mt = /* @__PURE__ */ l("span", { class: "layers-title" }, "Forecast Model", -1), $t = { class: "layers-body model-box" };
169
- function Bt(t, e, a, r, i, o) {
169
+ function Bt(a, e, t, r, i, o) {
170
170
  const n = z("ElScrollbar");
171
171
  return L(), x("div", st, [
172
172
  l("div", {
173
173
  class: "menu-bar-box",
174
- style: F({ top: a.top + 10 + "px", right: i.right + "px" })
174
+ style: F({ top: t.top + 10 + "px", right: i.right + "px" })
175
175
  }, [
176
176
  l("div", nt, [
177
177
  l("div", {
@@ -182,7 +182,7 @@ function Bt(t, e, a, r, i, o) {
182
182
  ], 4),
183
183
  l("div", {
184
184
  class: "menu-bar-box",
185
- style: F({ top: a.top + 160 + "px", right: i.right + "px" })
185
+ style: F({ top: t.top + 160 + "px", right: i.right + "px" })
186
186
  }, [
187
187
  l("div", ht, [
188
188
  l("div", {
@@ -218,7 +218,7 @@ function Bt(t, e, a, r, i, o) {
218
218
  ], 4),
219
219
  l("div", {
220
220
  class: "available-layers flex-center",
221
- style: F({ top: a.top + "px", right: i.showLayers ? "0px" : "-240px" })
221
+ style: F({ top: t.top + "px", right: i.showLayers ? "0px" : "-240px" })
222
222
  }, [
223
223
  l("div", {
224
224
  class: "side-bar",
@@ -330,8 +330,8 @@ const Wt = {
330
330
  watch: {
331
331
  "wind.version": {
332
332
  handler() {
333
- var t;
334
- (t = this.wind) != null && t.active && this.showFeather ? this.handleRender() : this.handleClear();
333
+ var a;
334
+ (a = this.wind) != null && a.active && this.showFeather ? this.handleRender() : this.handleClear();
335
335
  },
336
336
  deep: !0
337
337
  },
@@ -349,22 +349,22 @@ const Wt = {
349
349
  },
350
350
  toggleVersion: {
351
351
  handler() {
352
- var t, e;
353
- this.right = (((t = document.getElementsByClassName("available-layers-show")[0]) == null ? void 0 : t.clientWidth) || 0) + (((e = document.getElementsByClassName("fleet-list-container")[0]) == null ? void 0 : e.clientWidth) || 0) + 10;
352
+ var a, e;
353
+ this.right = (((a = document.getElementsByClassName("available-layers-show")[0]) == null ? void 0 : a.clientWidth) || 0) + (((e = document.getElementsByClassName("fleet-list-container")[0]) == null ? void 0 : e.clientWidth) || 0) + 10;
354
354
  },
355
355
  immediate: !0
356
356
  },
357
357
  "current.version": {
358
358
  handler() {
359
- var t, e, a;
360
- this.bottom = (t = this.current) != null && t.active ? (((e = document.getElementsByClassName("active-layers")[0]) == null ? void 0 : e.clientHeight) || 0) + 135 : (((a = document.getElementsByClassName("active-layers")[0]) == null ? void 0 : a.clientHeight) || 0) + 105;
359
+ var a, e, t;
360
+ this.bottom = (a = this.current) != null && a.active ? (((e = document.getElementsByClassName("active-layers")[0]) == null ? void 0 : e.clientHeight) || 0) + 135 : (((t = document.getElementsByClassName("active-layers")[0]) == null ? void 0 : t.clientHeight) || 0) + 105;
361
361
  },
362
362
  immediate: !0
363
363
  },
364
364
  weatherLayers: {
365
365
  handler() {
366
- var t, e, a;
367
- this.bottom = (t = this.current) != null && t.active ? (((e = document.getElementsByClassName("active-layers")[0]) == null ? void 0 : e.clientHeight) || 0) + 135 : (((a = document.getElementsByClassName("active-layers")[0]) == null ? void 0 : a.clientHeight) || 0) + 105;
366
+ var a, e, t;
367
+ this.bottom = (a = this.current) != null && a.active ? (((e = document.getElementsByClassName("active-layers")[0]) == null ? void 0 : e.clientHeight) || 0) + 135 : (((t = document.getElementsByClassName("active-layers")[0]) == null ? void 0 : t.clientHeight) || 0) + 105;
368
368
  },
369
369
  immediate: !0
370
370
  }
@@ -374,7 +374,7 @@ const Wt = {
374
374
  this.$emit("particle", { particle: !this.showParticle, key: "wind", weight: 1 });
375
375
  },
376
376
  handleRender() {
377
- var t, e, a, r;
377
+ var a, e, t, r;
378
378
  if (!this.map)
379
379
  setTimeout(() => {
380
380
  this.handleRender();
@@ -382,7 +382,7 @@ const Wt = {
382
382
  else if (this.wind) {
383
383
  const i = (/* @__PURE__ */ new Date()).valueOf();
384
384
  let o = 0, n = 0, s = this.empty;
385
- if ((t = this.wind) != null && t.active && (s = (e = this.wind) == null ? void 0 : e.data), (a = this.map) != null && a.getSource(this.source))
385
+ if ((a = this.wind) != null && a.active && (s = (e = this.wind) == null ? void 0 : e.data), (t = this.map) != null && t.getSource(this.source))
386
386
  (r = this.map) == null || r.getSource(this.source).setData(s), n = (/* @__PURE__ */ new Date()).valueOf() - (i + o), console.log("[wind] update elapsed: ", n, ", total: ", o += n);
387
387
  else {
388
388
  this.map.addSource(this.source, { type: "geojson", data: s });
@@ -432,14 +432,14 @@ const Wt = {
432
432
  if (!this.windBarbLoaded)
433
433
  this.handleRender();
434
434
  else
435
- for (const t of this.barbs ?? []) {
436
- const e = t < 10 ? `00${t}kts` : t < 100 ? `0${t}kts` : `${t}kts`;
435
+ for (const a of this.barbs ?? []) {
436
+ const e = a < 10 ? `00${a}kts` : a < 100 ? `0${a}kts` : `${a}kts`;
437
437
  this.map.getLayer(e) && this.map.setLayoutProperty(e, "visibility", this.showFeather ? "visible" : "none");
438
438
  }
439
439
  },
440
440
  handleClear() {
441
- for (const t of this.barbs ?? []) {
442
- const e = t < 10 ? `00${t}kts` : t < 100 ? `0${t}kts` : `${t}kts`;
441
+ for (const a of this.barbs ?? []) {
442
+ const e = a < 10 ? `00${a}kts` : a < 100 ? `0${a}kts` : `${a}kts`;
443
443
  this.map.getLayer(e) && this.map.removeLayer(e);
444
444
  }
445
445
  this.map.getSource(this.source) && this.map.removeSource(this.source), this.windBarbLoaded = !1;
@@ -458,24 +458,24 @@ const Wt = {
458
458
  key: 1,
459
459
  class: "iconfont"
460
460
  };
461
- function Gt(t, e, a, r, i, o) {
461
+ function Zt(a, e, t, r, i, o) {
462
462
  var n;
463
- return (n = a.wind) != null && n.active ? (L(), x("div", Ot, [
463
+ return (n = t.wind) != null && n.active ? (L(), x("div", Ot, [
464
464
  l("div", {
465
465
  class: "flex-center tool-bars",
466
466
  style: F([{ position: "absolute" }, { right: i.right + "px", bottom: i.bottom + "px" }])
467
467
  }, [
468
- a.mapProjection === "mercator" ? (L(), x("div", {
468
+ t.mapProjection === "mercator" ? (L(), x("div", {
469
469
  key: 0,
470
470
  class: "flex-start",
471
471
  onClick: e[0] || (e[0] = (...s) => o.handleParticle && o.handleParticle(...s))
472
472
  }, [
473
- a.showParticle ? (L(), x("i", jt, "")) : (L(), x("i", Ft, "")),
473
+ t.showParticle ? (L(), x("i", jt, "")) : (L(), x("i", Ft, "")),
474
474
  l("span", {
475
- class: M(a.showParticle ? "active" : "")
475
+ class: M(t.showParticle ? "active" : "")
476
476
  }, "Wind Particles", 2)
477
477
  ])) : $("", !0),
478
- a.showParticle ? (L(), x("div", {
478
+ t.showParticle ? (L(), x("div", {
479
479
  key: 1,
480
480
  class: "flex-start",
481
481
  style: { "margin-left": "16px" },
@@ -489,7 +489,7 @@ function Gt(t, e, a, r, i, o) {
489
489
  ], 4)
490
490
  ])) : $("", !0);
491
491
  }
492
- const Ht = /* @__PURE__ */ T(Wt, [["render", Gt], ["__scopeId", "data-v-b6fb74d9"]]);
492
+ const Ht = /* @__PURE__ */ T(Wt, [["render", Zt], ["__scopeId", "data-v-b6fb74d9"]]);
493
493
  class Oe {
494
494
  constructor(e) {
495
495
  R(this, "map");
@@ -508,8 +508,8 @@ class Oe {
508
508
  * @param lng
509
509
  * @param n
510
510
  */
511
- convertNLng(e, a = 0) {
512
- return e > 180 ? this.convertNLng(e - 360, a + 1) : e < -180 ? this.convertNLng(e + 360, a + 1) : [e, a];
511
+ convertNLng(e, t = 0) {
512
+ return e > 180 ? this.convertNLng(e - 360, t + 1) : e < -180 ? this.convertNLng(e + 360, t + 1) : [e, t];
513
513
  }
514
514
  /**
515
515
  * [4326坐标]
@@ -535,28 +535,28 @@ class Oe {
535
535
  * @param [lb.x, lb.y, rt.x, rt.y]
536
536
  */
537
537
  getBoundPixel() {
538
- const e = this.map.getBounds(), a = 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]], a), [p, f] = this.mercator.px([s, i[1]], a), m = Math.round(this.mercator.size * Math.pow(2, a) * (n + c));
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, d] = this.mercator.px([o, r[1]], t), [p, f] = this.mercator.px([s, i[1]], t), m = Math.round(this.mercator.size * Math.pow(2, t) * (n + c));
539
539
  return [p, f, h + m, d];
540
540
  }
541
541
  /**
542
542
  * [视窗边界像素宽度]
543
543
  */
544
544
  getBoundRange() {
545
- const e = this.map.getZoom() + 1, a = this.mercator.size * Math.pow(2, e), r = this.getBoundPixel();
546
- return [r[0] / a, r[2] / a, r[3] / a, r[1] / a];
545
+ const e = this.map.getZoom() + 1, t = this.mercator.size * Math.pow(2, e), r = this.getBoundPixel();
546
+ return [r[0] / t, r[2] / t, r[3] / t, r[1] / t];
547
547
  }
548
548
  /**
549
549
  * 获取视窗世界(多世界复本)
550
550
  * @param pixels
551
551
  * @param zoom
552
552
  */
553
- getWorldCopy(e, a) {
554
- const r = 2 ** a, [i, o, n, s] = e.map((d) => ~~(d / (r * 256))), c = [];
553
+ getWorldCopy(e, t) {
554
+ const r = 2 ** t, [i, o, n, s] = e.map((d) => ~~(d / (r * 256))), c = [];
555
555
  for (let d = s; d <= o; d++)
556
556
  for (let p = i; p <= n; p++)
557
557
  c.push([p, d]);
558
558
  return c.map((d) => {
559
- const p = 2 ** a * 256;
559
+ const p = 2 ** t * 256;
560
560
  return [d[0] * p, d[1] * p, p];
561
561
  });
562
562
  }
@@ -565,12 +565,12 @@ class Oe {
565
565
  e.setCoordinates(this.getBoundLngLat()), e = this.map.getSource(this.particleSource), e.setCoordinates(this.getBoundLngLat()), this.rampColorCanvas.width = this.map._canvas.clientWidth, this.rampColorCanvas.height = this.map._canvas.clientHeight, this.particleCanvas.width = this.map._canvas.clientWidth, this.particleCanvas.height = this.map._canvas.clientHeight;
566
566
  }
567
567
  toggle(e) {
568
- const a = this.map.getLayoutProperty(this.rampColorLayer, "visibility"), r = e ? "visible" : "none";
569
- a !== r && this.map.setLayoutProperty(this.rampColorLayer, "visibility", r);
568
+ const t = this.map.getLayoutProperty(this.rampColorLayer, "visibility"), r = e ? "visible" : "none";
569
+ t !== r && this.map.setLayoutProperty(this.rampColorLayer, "visibility", r);
570
570
  }
571
571
  toggleParticle(e) {
572
- const a = this.map.getLayoutProperty(this.particleLayer, "visibility"), r = e ? "visible" : "none";
573
- a !== r && this.map.setLayoutProperty(this.particleLayer, "visibility", r);
572
+ const t = this.map.getLayoutProperty(this.particleLayer, "visibility"), r = e ? "visible" : "none";
573
+ t !== r && this.map.setLayoutProperty(this.particleLayer, "visibility", r);
574
574
  }
575
575
  }
576
576
  class we {
@@ -581,8 +581,8 @@ class we {
581
581
  * @param type [VERTEX_SHADER, FRAGMENT_SHADER]
582
582
  * @param schema 着色器渲染代码[GLSL]
583
583
  */
584
- createShader(e, a, r) {
585
- const i = e.createShader(a);
584
+ createShader(e, t, r) {
585
+ const i = e.createShader(t);
586
586
  if (i && (e.shaderSource(i, r), e.compileShader(i), !e.getShaderParameter(i, e.COMPILE_STATUS)))
587
587
  throw new Error(e.getShaderInfoLog(i) || "error happened while create shader...");
588
588
  return i;
@@ -598,9 +598,9 @@ class we {
598
598
  * @param width??
599
599
  * @param height??
600
600
  */
601
- createTexture(e, a, r, i, o, n, s) {
601
+ createTexture(e, t, r, i, o, n, s) {
602
602
  const c = e.createTexture();
603
- return e.bindTexture(e.TEXTURE_2D, c), e.texParameteri(e.TEXTURE_2D, e.TEXTURE_MIN_FILTER, a), e.texParameteri(e.TEXTURE_2D, e.TEXTURE_MAG_FILTER, r), e.texParameteri(e.TEXTURE_2D, e.TEXTURE_WRAP_S, i), e.texParameteri(e.TEXTURE_2D, e.TEXTURE_WRAP_T, i), o instanceof Uint8Array ? e.texImage2D(e.TEXTURE_2D, 0, e.RGBA, n, s, 0, e.RGBA, e.UNSIGNED_BYTE, o) : e.texImage2D(e.TEXTURE_2D, 0, e.RGBA, e.RGBA, e.UNSIGNED_BYTE, o), e.bindTexture(e.TEXTURE_2D, null), c;
603
+ return e.bindTexture(e.TEXTURE_2D, c), e.texParameteri(e.TEXTURE_2D, e.TEXTURE_MIN_FILTER, t), e.texParameteri(e.TEXTURE_2D, e.TEXTURE_MAG_FILTER, r), e.texParameteri(e.TEXTURE_2D, e.TEXTURE_WRAP_S, i), e.texParameteri(e.TEXTURE_2D, e.TEXTURE_WRAP_T, i), o instanceof Uint8Array ? e.texImage2D(e.TEXTURE_2D, 0, e.RGBA, n, s, 0, e.RGBA, e.UNSIGNED_BYTE, o) : e.texImage2D(e.TEXTURE_2D, 0, e.RGBA, e.RGBA, e.UNSIGNED_BYTE, o), e.bindTexture(e.TEXTURE_2D, null), c;
604
604
  }
605
605
  /**
606
606
  * 创建数据资源
@@ -609,10 +609,10 @@ class we {
609
609
  * element: ELEMENT_ARRAY_BUFFER
610
610
  * @param resource 顶点数据
611
611
  */
612
- createDataBuffer(e, a, r) {
612
+ createDataBuffer(e, t, r) {
613
613
  if (e) {
614
614
  const i = e.createBuffer();
615
- return a === "array" ? (e.bindBuffer(e.ARRAY_BUFFER, i), r && e.bufferData(e.ARRAY_BUFFER, r, e.STATIC_DRAW)) : a === "element" && (e.bindBuffer(e.ELEMENT_ARRAY_BUFFER, i), r && e.bufferData(e.ELEMENT_ARRAY_BUFFER, r, e.STATIC_DRAW)), i;
615
+ return t === "array" ? (e.bindBuffer(e.ARRAY_BUFFER, i), r && e.bufferData(e.ARRAY_BUFFER, r, e.STATIC_DRAW)) : t === "element" && (e.bindBuffer(e.ELEMENT_ARRAY_BUFFER, i), r && e.bufferData(e.ELEMENT_ARRAY_BUFFER, r, e.STATIC_DRAW)), i;
616
616
  }
617
617
  return null;
618
618
  }
@@ -622,8 +622,8 @@ class we {
622
622
  * @param vertexSchema
623
623
  * @param fragmentSchema
624
624
  */
625
- createProgram(e, a, r) {
626
- const i = e.createProgram(), o = this.createShader(e, e.VERTEX_SHADER, a), n = this.createShader(e, e.FRAGMENT_SHADER, r);
625
+ createProgram(e, t, r) {
626
+ const i = e.createProgram(), o = this.createShader(e, e.VERTEX_SHADER, t), n = this.createShader(e, e.FRAGMENT_SHADER, r);
627
627
  if (i && o && n && (e.attachShader(i, o), e.attachShader(i, n), e.linkProgram(i), !e.getProgramParameter(i, e.LINK_STATUS)))
628
628
  throw new Error(e.getProgramInfoLog(i) || "error happened while creating ramp color program");
629
629
  return i;
@@ -634,8 +634,8 @@ class we {
634
634
  * @param vertexSchema
635
635
  * @param fragmentSchema
636
636
  */
637
- createProgramWrapper(e, a, r) {
638
- const i = this.createProgram(e, a, r);
637
+ createProgramWrapper(e, t, r) {
638
+ const i = this.createProgram(e, t, r);
639
639
  if (i) {
640
640
  const o = { program: i }, n = e.getProgramParameter(i, e.ACTIVE_ATTRIBUTES);
641
641
  for (let c = 0; c < n; c++) {
@@ -654,13 +654,13 @@ class we {
654
654
  * 初始化渐变色纹理
655
655
  * @param colors
656
656
  */
657
- setup(e, a, r = !1, i, o) {
657
+ setup(e, t, r = !1, i, o) {
658
658
  const n = document.createElement("canvas");
659
659
  n.width = 256, n.height = 1;
660
660
  const s = n.getContext("2d");
661
661
  if (s && e) {
662
662
  const c = s == null ? void 0 : s.createLinearGradient(0, 0, 256, 0);
663
- return a.forEach(([h, d]) => {
663
+ return t.forEach(([h, d]) => {
664
664
  c.addColorStop(h, d);
665
665
  }), s.fillStyle = c, s.fillRect(0, 0, 256, 1), {
666
666
  canvas: n,
@@ -676,8 +676,8 @@ class we {
676
676
  };
677
677
  }
678
678
  }
679
- setupParticle(e, a = 1e3) {
680
- const r = Math.ceil(Math.sqrt(a)), i = r * r, o = new Uint8Array(i * 4);
679
+ setupParticle(e, t = 1e3) {
680
+ const r = Math.ceil(Math.sqrt(t)), i = r * r, o = new Uint8Array(i * 4);
681
681
  for (let d = 0; d < o.length; d++)
682
682
  o[d] = Math.floor(Math.random() * 256);
683
683
  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);
@@ -686,8 +686,8 @@ class we {
686
686
  const h = this.createDataBuffer(e, "array", c);
687
687
  return { resolution: r, total: i, texture0: n, texture1: s, indexBuffer: h };
688
688
  }
689
- bind(e, a, r) {
690
- const i = this.createProgram(e, a, r);
689
+ bind(e, t, r) {
690
+ const i = this.createProgram(e, t, r);
691
691
  if (i) {
692
692
  const o = this.createDataBuffer(e, "array", void 0), n = e.getAttribLocation(i, "a_position");
693
693
  e.enableVertexAttribArray(n), e.vertexAttribPointer(n, 2, e.FLOAT, !1, 0, 0);
@@ -698,68 +698,68 @@ class we {
698
698
  }
699
699
  return {};
700
700
  }
701
- bindParticle(e, a, r, i, o, n) {
702
- const s = this.createProgramWrapper(e, a, 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();
701
+ 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), d = this.createDataBuffer(e, "array", new Float32Array([0, 0, 1, 0, 0, 1, 0, 1, 1, 0, 1, 1])), p = e.createFramebuffer();
703
703
  return { particle: s, screen: c, update: h, quadBuffer: d, frameBuffer: p };
704
704
  }
705
- draw(e, a, r, i, o, n, s) {
705
+ draw(e, t, r, i, o, n, s) {
706
706
  var c, h;
707
- if (a && r) {
708
- e.resize(), a == null || a.viewport(0, 0, (c = a == null ? void 0 : a.canvas) == null ? void 0 : c.width, (h = a == null ? void 0 : a.canvas) == null ? void 0 : h.height), a.clearColor(0, 0, 0, 0), a.clear(a.COLOR_BUFFER_BIT | a.DEPTH_BUFFER_BIT);
707
+ if (t && r) {
708
+ 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
709
  try {
710
- const d = a.getUniformLocation(r, "u_resolution"), p = a.getUniformLocation(r, "u_image"), f = a.getUniformLocation(r, "u_color");
711
- if (a.useProgram(r), a.uniform2f(d, a.canvas.width * e.ratio, a.canvas.height * e.ratio), a.activeTexture(a.TEXTURE0), a.bindTexture(a.TEXTURE_2D, i), a.uniform1i(p, 0), a.activeTexture(a.TEXTURE1), a.bindTexture(a.TEXTURE_2D, o), a.uniform1i(f, 1), s != null && s.uvRange && (s != null && s.sRange)) {
712
- const u = a.getUniformLocation(r, "u_range_u_v"), v = a.getUniformLocation(r, "u_range_s");
713
- a.uniform2f(u, s.uvRange[0], s.uvRange[1]), a.uniform2f(v, s.sRange[0], s.sRange[1]);
710
+ const d = t.getUniformLocation(r, "u_resolution"), p = t.getUniformLocation(r, "u_image"), f = t.getUniformLocation(r, "u_color");
711
+ 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(f, 1), s != null && s.uvRange && (s != null && s.sRange)) {
712
+ const u = t.getUniformLocation(r, "u_range_u_v"), v = t.getUniformLocation(r, "u_range_s");
713
+ t.uniform2f(u, s.uvRange[0], s.uvRange[1]), t.uniform2f(v, s.sRange[0], s.sRange[1]);
714
714
  }
715
715
  const m = e.getBoundPixel(), b = e.map.getZoom() + 1, y = e.getWorldCopy(m, b);
716
716
  for (const u of y) {
717
717
  const v = (u[0] - m[0]) * e.ratio, g = (u[1] - m[3]) * e.ratio, w = u[2] * e.ratio, [k, _, D, A] = [v, w + v, g, w + g], B = new Float32Array([k, D, _, D, k, A, k, A, _, D, _, A]);
718
- a.bindBuffer(a.ARRAY_BUFFER, n), a.bufferData(a.ARRAY_BUFFER, B, a.STATIC_DRAW), a.drawArrays(a.TRIANGLES, 0, 6);
718
+ t.bindBuffer(t.ARRAY_BUFFER, n), t.bufferData(t.ARRAY_BUFFER, B, t.STATIC_DRAW), t.drawArrays(t.TRIANGLES, 0, 6);
719
719
  }
720
720
  } catch (d) {
721
721
  console.log(`render failed...${d}`);
722
722
  }
723
723
  }
724
724
  }
725
- drawParticle(e, a, r, i, o) {
725
+ drawParticle(e, t, r, i, o) {
726
726
  var n, s;
727
- a && (a == null || a.viewport(0, 0, (n = a == null ? void 0 : a.canvas) == null ? void 0 : n.width, (s = a == null ? void 0 : a.canvas) == null ? void 0 : s.height), a.disable(a.DEPTH_TEST), a.disable(a.STENCIL_TEST), a.activeTexture(a.TEXTURE0), a.bindTexture(a.TEXTURE_2D, r), a.activeTexture(a.TEXTURE1), a.bindTexture(a.TEXTURE_2D, i.texture0), this.renderScreen(e, a, i, o), this.updateParticles(e, a, i, o));
727
+ t && (t == null || t.viewport(0, 0, (n = t == null ? void 0 : t.canvas) == null ? void 0 : n.width, (s = t == null ? void 0 : t.canvas) == null ? void 0 : s.height), t.disable(t.DEPTH_TEST), t.disable(t.STENCIL_TEST), t.activeTexture(t.TEXTURE0), t.bindTexture(t.TEXTURE_2D, r), t.activeTexture(t.TEXTURE1), t.bindTexture(t.TEXTURE_2D, i.texture0), this.renderScreen(e, t, i, o), this.updateParticles(e, t, i, o));
728
728
  }
729
- renderScreen(e, a, r, i) {
730
- a.bindFramebuffer(a.FRAMEBUFFER, r.frameBuffer), a.framebufferTexture2D(a.FRAMEBUFFER, a.COLOR_ATTACHMENT0, a.TEXTURE_2D, r.screenTexture, 0), a.viewport(0, 0, a.canvas.width, a.canvas.height), this.renderScreenTexture(a, r.backgroundTexture, r.screen, r.quadBuffer, 0.95), this.renderParticles(e, a, r, i), a.bindFramebuffer(a.FRAMEBUFFER, null), this.renderScreenTexture(a, r.screenTexture, r.screen, r.quadBuffer, 1);
729
+ renderScreen(e, t, r, i) {
730
+ t.bindFramebuffer(t.FRAMEBUFFER, r.frameBuffer), t.framebufferTexture2D(t.FRAMEBUFFER, t.COLOR_ATTACHMENT0, t.TEXTURE_2D, r.screenTexture, 0), t.viewport(0, 0, t.canvas.width, t.canvas.height), this.renderScreenTexture(t, r.backgroundTexture, r.screen, r.quadBuffer, 0.95), this.renderParticles(e, t, r, i), t.bindFramebuffer(t.FRAMEBUFFER, null), this.renderScreenTexture(t, r.screenTexture, r.screen, r.quadBuffer, 1);
731
731
  const o = r.backgroundTexture;
732
732
  r.backgroundTexture = r.screenTexture, r.screenTexture = o;
733
733
  }
734
- renderScreenTexture(e, a, r, i, o) {
735
- e && (e.useProgram(r.program), e.bindBuffer(e.ARRAY_BUFFER, i), e.enableVertexAttribArray(r.a_pos), e.vertexAttribPointer(r.a_pos, 2, e.FLOAT, !1, 0, 0), e.activeTexture(e.TEXTURE2), e.bindTexture(e.TEXTURE_2D, a), e.uniform1i(r.u_screen, 2), e.uniform1f(r.u_opacity, o), e.drawArrays(e.TRIANGLES, 0, 6));
734
+ renderScreenTexture(e, t, r, i, o) {
735
+ e && (e.useProgram(r.program), e.bindBuffer(e.ARRAY_BUFFER, i), e.enableVertexAttribArray(r.a_pos), e.vertexAttribPointer(r.a_pos, 2, e.FLOAT, !1, 0, 0), e.activeTexture(e.TEXTURE2), e.bindTexture(e.TEXTURE_2D, t), e.uniform1i(r.u_screen, 2), e.uniform1f(r.u_opacity, o), e.drawArrays(e.TRIANGLES, 0, 6));
736
736
  }
737
- renderParticles(e, a, r, i) {
738
- if (a) {
739
- a.useProgram(r.particle.program), a.bindBuffer(a.ARRAY_BUFFER, r.indexBuffer), a.enableVertexAttribArray(r.particle.a_index), a.vertexAttribPointer(r.particle.a_index, 1, a.FLOAT, !1, 0, 0), a.activeTexture(a.TEXTURE2), a.bindTexture(a.TEXTURE_2D, r.color.texture), a.uniform1i(r.particle.u_factor, 0), a.uniform1i(r.particle.u_particles, 1), a.uniform1i(r.particle.u_color_ramp, 2), a.uniform1f(r.particle.u_particles_resolution, r.resolution * e.ratio), a.uniform1f(r.particle.u_point, e.ratio);
737
+ renderParticles(e, t, r, i) {
738
+ if (t) {
739
+ t.useProgram(r.particle.program), t.bindBuffer(t.ARRAY_BUFFER, r.indexBuffer), t.enableVertexAttribArray(r.particle.a_index), t.vertexAttribPointer(r.particle.a_index, 1, t.FLOAT, !1, 0, 0), t.activeTexture(t.TEXTURE2), t.bindTexture(t.TEXTURE_2D, r.color.texture), t.uniform1i(r.particle.u_factor, 0), t.uniform1i(r.particle.u_particles, 1), t.uniform1i(r.particle.u_color_ramp, 2), t.uniform1f(r.particle.u_particles_resolution, r.resolution * e.ratio), t.uniform1f(r.particle.u_point, e.ratio);
740
740
  const o = e.getBoundRange();
741
- a.uniform4f(r.particle.u_viewport, o[0], o[1], o[2], o[3]), a.uniform2f(r.particle.u_factor_min, i.uvRange[0], i.uvRange[0]), a.uniform2f(r.particle.u_factor_max, i.uvRange[1], i.uvRange[1]), a.drawArrays(a.POINTS, 0, r.total);
741
+ t.uniform4f(r.particle.u_viewport, o[0], o[1], o[2], o[3]), t.uniform2f(r.particle.u_factor_min, i.uvRange[0], i.uvRange[0]), t.uniform2f(r.particle.u_factor_max, i.uvRange[1], i.uvRange[1]), t.drawArrays(t.POINTS, 0, r.total);
742
742
  }
743
743
  }
744
- updateParticles(e, a, r, i) {
744
+ updateParticles(e, t, r, i) {
745
745
  var n, s;
746
- if (a) {
747
- a.bindFramebuffer(a.FRAMEBUFFER, r.frameBuffer), a.framebufferTexture2D(a.FRAMEBUFFER, a.COLOR_ATTACHMENT0, a.TEXTURE_2D, r.texture1, 0), a.viewport(0, 0, r.resolution, r.resolution), a.useProgram(r.update.program), a.bindBuffer(a.ARRAY_BUFFER, r.quadBuffer), a.enableVertexAttribArray(r.update.a_pos), a.vertexAttribPointer(r.update.a_pos, 2, a.FLOAT, !1, 0, 0), a.uniform1i(r.update.u_factor, 0), a.uniform1i(r.update.u_particles, 1);
746
+ if (t) {
747
+ t.bindFramebuffer(t.FRAMEBUFFER, r.frameBuffer), t.framebufferTexture2D(t.FRAMEBUFFER, t.COLOR_ATTACHMENT0, t.TEXTURE_2D, r.texture1, 0), t.viewport(0, 0, r.resolution, r.resolution), t.useProgram(r.update.program), t.bindBuffer(t.ARRAY_BUFFER, r.quadBuffer), t.enableVertexAttribArray(r.update.a_pos), t.vertexAttribPointer(r.update.a_pos, 2, t.FLOAT, !1, 0, 0), t.uniform1i(r.update.u_factor, 0), t.uniform1i(r.update.u_particles, 1);
748
748
  const c = e.getBoundRange();
749
- a.uniform4f(r.update.u_viewport, c[0], c[1], c[2], c[3]), a.uniform1f(r.update.u_rand_seed, Math.random()), a.uniform2f(r.update.u_factor_res, (n = r == null ? void 0 : r.image) == null ? void 0 : n.width, (s = r == null ? void 0 : r.image) == null ? void 0 : s.height), a.uniform2f(r.update.u_factor_min, i.uvRange[0], i.uvRange[0]), a.uniform2f(r.update.u_factor_max, i.uvRange[1], i.uvRange[1]), a.uniform1f(r.update.u_speed_factor, i.speedFactor * e.ratio), a.uniform1f(r.update.u_drop_rate, i.dropRate), a.uniform1f(r.update.u_drop_rate_bump, i.dropRateBump), a.drawArrays(a.TRIANGLES, 0, 6);
749
+ t.uniform4f(r.update.u_viewport, c[0], c[1], c[2], c[3]), t.uniform1f(r.update.u_rand_seed, Math.random()), t.uniform2f(r.update.u_factor_res, (n = r == null ? void 0 : r.image) == null ? void 0 : n.width, (s = r == null ? void 0 : r.image) == null ? void 0 : s.height), t.uniform2f(r.update.u_factor_min, i.uvRange[0], i.uvRange[0]), t.uniform2f(r.update.u_factor_max, i.uvRange[1], i.uvRange[1]), t.uniform1f(r.update.u_speed_factor, i.speedFactor * e.ratio), t.uniform1f(r.update.u_drop_rate, i.dropRate), t.uniform1f(r.update.u_drop_rate_bump, i.dropRateBump), t.drawArrays(t.TRIANGLES, 0, 6);
750
750
  }
751
751
  const o = r.texture0;
752
752
  r.texture0 = r.texture1, r.texture1 = o;
753
753
  }
754
- resize(e, a) {
754
+ resize(e, t) {
755
755
  e.resize();
756
- const r = new Uint8Array(a.canvas.width * a.canvas.height * 4).fill(0, 0, a.canvas.width * a.canvas.height * 4), i = this.createTexture(a, a.NEAREST, a.NEAREST, a.CLAMP_TO_EDGE, r, a.canvas.width, a.canvas.height), o = this.createTexture(a, a.NEAREST, a.NEAREST, a.CLAMP_TO_EDGE, r, a.canvas.width, a.canvas.height);
756
+ const r = new Uint8Array(t.canvas.width * t.canvas.height * 4).fill(0, 0, t.canvas.width * t.canvas.height * 4), i = this.createTexture(t, t.NEAREST, t.NEAREST, t.CLAMP_TO_EDGE, r, t.canvas.width, t.canvas.height), o = this.createTexture(t, t.NEAREST, t.NEAREST, t.CLAMP_TO_EDGE, r, t.canvas.width, t.canvas.height);
757
757
  return { screenTexture: i, backgroundTexture: o };
758
758
  }
759
759
  async loadImg(e) {
760
- return new Promise((a) => {
760
+ return new Promise((t) => {
761
761
  const r = new Blob([e], { type: e.type }), i = URL.createObjectURL(r), o = new Image();
762
- o.crossOrigin = "anonymous", o.src = i, o.onload = () => a(o);
762
+ o.crossOrigin = "anonymous", o.src = i, o.onload = () => t(o);
763
763
  });
764
764
  }
765
765
  }
@@ -960,7 +960,7 @@ R(U, "vertexSchema", `
960
960
  fract(pos * 255.0),
961
961
  floor(pos * 255.0) / 255.0);
962
962
  }`);
963
- class Zt {
963
+ class Gt {
964
964
  constructor(e = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImNseTVudHJzYzAwNWUwbHBsZHkyaDRqczMiLCJyb2xlIjoxLCJuYW1lIjoiZmFrZUBvcm13eC5jb20iLCJwbGF0SWQiOiJnZDBtdDFkIiwiY29tcGFueSI6eyJpZCI6bnVsbCwiY2hpbGRyZW4iOltdfSwiaWF0IjoxNzIzMDI0MDI0LCJleHAiOjM5MzA1NDQwMjR9.RrKcdcMnq-FxBLJQ-i6lx2FscDE46y8EvHIemPW4HTg") {
965
965
  R(this, "token");
966
966
  R(this, "mapboxCustomer");
@@ -2616,15 +2616,15 @@ const Jt = {
2616
2616
  watch: {
2617
2617
  "factor.version": {
2618
2618
  handler() {
2619
- var t;
2620
- (t = this.factor) != null && t.active ? this.handleRender() : this.handleClear();
2619
+ var a;
2620
+ (a = this.factor) != null && a.active ? this.handleRender() : this.handleClear();
2621
2621
  },
2622
2622
  deep: !0
2623
2623
  },
2624
2624
  toggleVersion: {
2625
2625
  handler() {
2626
- var t, e;
2627
- this.right = (((t = document.getElementsByClassName("available-layers-show")[0]) == null ? void 0 : t.clientWidth) || 0) + (((e = document.getElementsByClassName("fleet-list-container")[0]) == null ? void 0 : e.clientWidth) || 0) + 10;
2626
+ var a, e;
2627
+ this.right = (((a = document.getElementsByClassName("available-layers-show")[0]) == null ? void 0 : a.clientWidth) || 0) + (((e = document.getElementsByClassName("fleet-list-container")[0]) == null ? void 0 : e.clientWidth) || 0) + 10;
2628
2628
  },
2629
2629
  immediate: !0
2630
2630
  }
@@ -2636,19 +2636,19 @@ const Jt = {
2636
2636
  this.handleRender();
2637
2637
  }, 500);
2638
2638
  else if (this.factor) {
2639
- const t = (/* @__PURE__ */ new Date()).valueOf();
2640
- let e = 0, a = 0;
2641
- this.handleDraw(), a = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("[wind-particle] add elapsed: ", a, ", total: ", e += a);
2639
+ const a = (/* @__PURE__ */ new Date()).valueOf();
2640
+ let e = 0, t = 0;
2641
+ this.handleDraw(), t = (/* @__PURE__ */ new Date()).valueOf() - (a + e), console.log("[wind-particle] add elapsed: ", t, ", total: ", e += t);
2642
2642
  }
2643
2643
  },
2644
2644
  handleClear() {
2645
- var t, e, a, r, i, o, n, s;
2646
- (t = this.viewport) == null || t.toggle(!1), (e = this.viewport) == null || e.toggleParticle(!1), this.context = void 0, this.particleContext = void 0, this.etime = void 0, this.initial = !0, (r = (a = this.viewport) == null ? void 0 : a.map) == null || r.off("resize", this.handleResize), (o = (i = this.viewport) == null ? void 0 : i.map) == null || o.off("movestart", this.handlePause), (s = (n = this.viewport) == null ? void 0 : n.map) == null || s.off("moveend", this.handlePlay), this.handlePause();
2645
+ var a, e, t, r, i, o, n, s;
2646
+ (a = this.viewport) == null || a.toggle(!1), (e = this.viewport) == null || e.toggleParticle(!1), this.context = void 0, this.particleContext = void 0, this.etime = void 0, this.initial = !0, (r = (t = this.viewport) == null ? void 0 : t.map) == null || r.off("resize", this.handleResize), (o = (i = this.viewport) == null ? void 0 : i.map) == null || o.off("movestart", this.handlePause), (s = (n = this.viewport) == null ? void 0 : n.map) == null || s.off("moveend", this.handlePlay), this.handlePause();
2647
2647
  },
2648
2648
  handleSetup() {
2649
2649
  if (!this.context) {
2650
2650
  this.context = this.viewport.rampColorCanvas.getContext("webgl");
2651
- const t = [
2651
+ const a = [
2652
2652
  [0, "rgb(98, 113, 184, 0.8)"],
2653
2653
  // 0
2654
2654
  [12 / 255, "rgb(98, 113, 184)"],
@@ -2677,16 +2677,16 @@ const Jt = {
2677
2677
  // 30m/s
2678
2678
  [1, "rgb(91, 136, 161)"]
2679
2679
  ];
2680
- this.rampColor = this.webgl.setup(this.context, t);
2681
- const { program: e, aPositionBuffer: a } = this.webgl.bind(this.context, N.vertexSchema, N.uvFragmentSchema);
2682
- this.program = e, this.aPositionBuffer = a;
2680
+ this.rampColor = this.webgl.setup(this.context, a);
2681
+ const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, N.vertexSchema, N.uvFragmentSchema);
2682
+ this.program = e, this.aPositionBuffer = t;
2683
2683
  }
2684
2684
  this.handleParticleSetup();
2685
2685
  },
2686
2686
  handleParticleSetup() {
2687
2687
  if (!this.particleContext) {
2688
2688
  this.particleContext = this.viewport.particleCanvas.getContext("webgl");
2689
- const t = [
2689
+ const a = [
2690
2690
  [0, "rgb(183,224,224)"],
2691
2691
  [1, "rgb(217,220,220)"]
2692
2692
  ];
@@ -2697,20 +2697,20 @@ const Jt = {
2697
2697
  U.quadVertSchema,
2698
2698
  U.screenFragmentSchema,
2699
2699
  U.updateFragmentSchema
2700
- ), this.wrapper.color = this.webgl.setup(this.particleContext, t, !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);
2700
+ ), 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
2701
  }
2702
2702
  },
2703
2703
  async handleDraw() {
2704
2704
  if (this.handleSetup(), this.etime !== this.factor.etime) {
2705
2705
  this.etime = this.factor.etime;
2706
- const t = await this.webgl.loadImg(this.factor.raw);
2707
- this.texture = this.webgl.createTexture(this.context, this.context.NEAREST, this.context.LINEAR, this.context.CLAMP_TO_EDGE, t), this.particleTexture = this.webgl.createTexture(
2706
+ const a = await this.webgl.loadImg(this.factor.raw);
2707
+ this.texture = this.webgl.createTexture(this.context, this.context.NEAREST, this.context.LINEAR, this.context.CLAMP_TO_EDGE, a), this.particleTexture = this.webgl.createTexture(
2708
2708
  this.particleContext,
2709
2709
  this.particleContext.NEAREST,
2710
2710
  this.particleContext.LINEAR,
2711
2711
  this.particleContext.CLAMP_TO_EDGE,
2712
- t
2713
- ), this.wrapper.image = t;
2712
+ a
2713
+ ), this.wrapper.image = a;
2714
2714
  }
2715
2715
  this.initial && (this.initial = !1, this.handlePlay()), this.webgl.draw(this.viewport, this.context, this.program, this.texture, this.rampColor.texture, this.aPositionBuffer, this.particleOptions), this.viewport.toggle(!0);
2716
2716
  },
@@ -2726,7 +2726,7 @@ const Jt = {
2726
2726
  });
2727
2727
  }
2728
2728
  }
2729
- }, le = (t) => (G("data-v-41a686d0"), t = t(), H(), t), Xt = { key: 0 }, qt = /* @__PURE__ */ le(() => /* @__PURE__ */ l("span", null, "kts", -1)), Yt = /* @__PURE__ */ le(() => /* @__PURE__ */ l("span", null, "0", -1)), Qt = /* @__PURE__ */ le(() => /* @__PURE__ */ l("span", null, "5", -1)), Kt = /* @__PURE__ */ le(() => /* @__PURE__ */ l("span", null, "10", -1)), ea = /* @__PURE__ */ le(() => /* @__PURE__ */ l("span", null, "20", -1)), ta = /* @__PURE__ */ le(() => /* @__PURE__ */ l("span", null, "30", -1)), aa = /* @__PURE__ */ le(() => /* @__PURE__ */ l("span", null, "40", -1)), ia = /* @__PURE__ */ le(() => /* @__PURE__ */ l("span", null, "60", -1)), ra = [
2729
+ }, le = (a) => (H("data-v-41a686d0"), a = a(), G(), a), Xt = { key: 0 }, qt = /* @__PURE__ */ le(() => /* @__PURE__ */ l("span", null, "kts", -1)), Yt = /* @__PURE__ */ le(() => /* @__PURE__ */ l("span", null, "0", -1)), Qt = /* @__PURE__ */ le(() => /* @__PURE__ */ l("span", null, "5", -1)), Kt = /* @__PURE__ */ le(() => /* @__PURE__ */ l("span", null, "10", -1)), ea = /* @__PURE__ */ le(() => /* @__PURE__ */ l("span", null, "20", -1)), ta = /* @__PURE__ */ le(() => /* @__PURE__ */ l("span", null, "30", -1)), aa = /* @__PURE__ */ le(() => /* @__PURE__ */ l("span", null, "40", -1)), ia = /* @__PURE__ */ le(() => /* @__PURE__ */ l("span", null, "60", -1)), ra = [
2730
2730
  qt,
2731
2731
  Yt,
2732
2732
  Qt,
@@ -2736,12 +2736,12 @@ const Jt = {
2736
2736
  aa,
2737
2737
  ia
2738
2738
  ];
2739
- function oa(t, e, a, r, i, o) {
2739
+ function oa(a, e, t, r, i, o) {
2740
2740
  var n;
2741
- return (n = a.factor) != null && n.active ? (L(), x("div", Xt, [
2741
+ return (n = t.factor) != null && n.active ? (L(), x("div", Xt, [
2742
2742
  l("div", {
2743
2743
  class: "legend-bars flex-center",
2744
- style: F([{ position: "absolute" }, { right: i.right + "px", bottom: a.bottom }])
2744
+ style: F([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
2745
2745
  }, ra, 4)
2746
2746
  ])) : $("", !0);
2747
2747
  }
@@ -2792,8 +2792,8 @@ const na = {
2792
2792
  watch: {
2793
2793
  "current.version": {
2794
2794
  handler() {
2795
- var t;
2796
- (t = this.current) != null && t.active ? this.handleRender() : this.handleClear();
2795
+ var a;
2796
+ (a = this.current) != null && a.active ? this.handleRender() : this.handleClear();
2797
2797
  },
2798
2798
  deep: !0
2799
2799
  },
@@ -2811,15 +2811,15 @@ const na = {
2811
2811
  },
2812
2812
  toggleVersion: {
2813
2813
  handler() {
2814
- var t, e;
2815
- this.right = (((t = document.getElementsByClassName("available-layers-show")[0]) == null ? void 0 : t.clientWidth) || 0) + (((e = document.getElementsByClassName("fleet-list-container")[0]) == null ? void 0 : e.clientWidth) || 0) + 10;
2814
+ var a, e;
2815
+ this.right = (((a = document.getElementsByClassName("available-layers-show")[0]) == null ? void 0 : a.clientWidth) || 0) + (((e = document.getElementsByClassName("fleet-list-container")[0]) == null ? void 0 : e.clientWidth) || 0) + 10;
2816
2816
  },
2817
2817
  immediate: !0
2818
2818
  },
2819
2819
  weatherLayers: {
2820
2820
  handler() {
2821
- var t;
2822
- this.bottom = (((t = document.getElementsByClassName("active-layers")[0]) == null ? void 0 : t.clientHeight) || 0) + 105;
2821
+ var a;
2822
+ this.bottom = (((a = document.getElementsByClassName("active-layers")[0]) == null ? void 0 : a.clientHeight) || 0) + 105;
2823
2823
  },
2824
2824
  immediate: !0
2825
2825
  }
@@ -2829,15 +2829,15 @@ const na = {
2829
2829
  this.$emit("particle", { particle: !this.showParticle, key: "current", weight: 96 });
2830
2830
  },
2831
2831
  handleRender() {
2832
- var t, e;
2832
+ var a, e;
2833
2833
  if (!this.map)
2834
2834
  setTimeout(() => {
2835
2835
  this.handleRender();
2836
2836
  }, 500);
2837
2837
  else if (this.current) {
2838
- const a = (/* @__PURE__ */ new Date()).valueOf();
2838
+ const t = (/* @__PURE__ */ new Date()).valueOf();
2839
2839
  let r = 0, i = 0, o = this.empty;
2840
- this.current.active && (o = this.current.data), (t = this.map) != null && t.getSource(this.source) ? ((e = this.map) == null || e.getSource(this.source).setData(o), i = (/* @__PURE__ */ new Date()).valueOf() - (a + r), console.log("[current] update elapsed: ", i, ", total: ", r += i)) : (this.map.addSource(this.source, { type: "geojson", data: o }), this.map.addLayer(
2840
+ this.current.active && (o = this.current.data), (a = this.map) != null && a.getSource(this.source) ? ((e = this.map) == null || e.getSource(this.source).setData(o), i = (/* @__PURE__ */ new Date()).valueOf() - (t + r), console.log("[current] update elapsed: ", i, ", total: ", r += i)) : (this.map.addSource(this.source, { type: "geojson", data: o }), this.map.addLayer(
2841
2841
  {
2842
2842
  id: this.speedLayer,
2843
2843
  type: "fill",
@@ -2896,7 +2896,7 @@ const na = {
2896
2896
  }
2897
2897
  },
2898
2898
  this.beforeLayer
2899
- ), i = (/* @__PURE__ */ new Date()).valueOf() - (a + r), console.log("[current] add elapsed: ", i, ", total: ", r += i)), this.handleToggle();
2899
+ ), i = (/* @__PURE__ */ new Date()).valueOf() - (t + r), console.log("[current] add elapsed: ", i, ", total: ", r += i)), this.handleToggle();
2900
2900
  }
2901
2901
  },
2902
2902
  handleToggle() {
@@ -2919,24 +2919,24 @@ const na = {
2919
2919
  key: 1,
2920
2920
  class: "iconfont"
2921
2921
  };
2922
- function ma(t, e, a, r, i, o) {
2922
+ function ma(a, e, t, r, i, o) {
2923
2923
  var n;
2924
- return (n = a.current) != null && n.active ? (L(), x("div", la, [
2924
+ return (n = t.current) != null && n.active ? (L(), x("div", la, [
2925
2925
  l("div", {
2926
2926
  class: "flex-center tool-bars",
2927
2927
  style: F([{ position: "absolute" }, { right: i.right + "px", bottom: i.bottom + "px" }])
2928
2928
  }, [
2929
- a.mapProjection === "mercator" ? (L(), x("div", {
2929
+ t.mapProjection === "mercator" ? (L(), x("div", {
2930
2930
  key: 0,
2931
2931
  class: "flex-start",
2932
2932
  onClick: e[0] || (e[0] = (...s) => o.handleParticle && o.handleParticle(...s))
2933
2933
  }, [
2934
- a.showParticle ? (L(), x("i", ca, "")) : (L(), x("i", ha, "")),
2934
+ t.showParticle ? (L(), x("i", ca, "")) : (L(), x("i", ha, "")),
2935
2935
  l("span", {
2936
- class: M(a.showParticle ? "active" : "")
2936
+ class: M(t.showParticle ? "active" : "")
2937
2937
  }, "Current Particles", 2)
2938
2938
  ])) : $("", !0),
2939
- a.showParticle ? (L(), x("div", {
2939
+ t.showParticle ? (L(), x("div", {
2940
2940
  key: 1,
2941
2941
  class: "flex-start",
2942
2942
  style: { "margin-left": "16px" },
@@ -3003,15 +3003,15 @@ const ya = {
3003
3003
  watch: {
3004
3004
  "factor.version": {
3005
3005
  handler() {
3006
- var t;
3007
- (t = this.factor) != null && t.active ? this.handleRender() : this.handleClear();
3006
+ var a;
3007
+ (a = this.factor) != null && a.active ? this.handleRender() : this.handleClear();
3008
3008
  },
3009
3009
  deep: !0
3010
3010
  },
3011
3011
  toggleVersion: {
3012
3012
  handler() {
3013
- var t, e;
3014
- this.right = (((t = document.getElementsByClassName("available-layers-show")[0]) == null ? void 0 : t.clientWidth) || 0) + (((e = document.getElementsByClassName("fleet-list-container")[0]) == null ? void 0 : e.clientWidth) || 0) + 10;
3013
+ var a, e;
3014
+ this.right = (((a = document.getElementsByClassName("available-layers-show")[0]) == null ? void 0 : a.clientWidth) || 0) + (((e = document.getElementsByClassName("fleet-list-container")[0]) == null ? void 0 : e.clientWidth) || 0) + 10;
3015
3015
  },
3016
3016
  immediate: !0
3017
3017
  }
@@ -3023,19 +3023,19 @@ const ya = {
3023
3023
  this.handleRender();
3024
3024
  }, 500);
3025
3025
  else if (this.factor) {
3026
- const t = (/* @__PURE__ */ new Date()).valueOf();
3027
- let e = 0, a = 0;
3028
- this.handleDraw(), a = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("[current-particle] add elapsed: ", a, ", total: ", e += a);
3026
+ const a = (/* @__PURE__ */ new Date()).valueOf();
3027
+ let e = 0, t = 0;
3028
+ this.handleDraw(), t = (/* @__PURE__ */ new Date()).valueOf() - (a + e), console.log("[current-particle] add elapsed: ", t, ", total: ", e += t);
3029
3029
  }
3030
3030
  },
3031
3031
  handleClear() {
3032
- var t, e, a, r, i, o, n, s;
3033
- (t = this.viewport) == null || t.toggle(!1), (e = this.viewport) == null || e.toggleParticle(!1), this.context = void 0, this.particleContext = void 0, this.etime = void 0, this.initial = !0, (r = (a = this.viewport) == null ? void 0 : a.map) == null || r.off("resize", this.handleResize), (o = (i = this.viewport) == null ? void 0 : i.map) == null || o.off("movestart", this.handlePause), (s = (n = this.viewport) == null ? void 0 : n.map) == null || s.off("moveend", this.handlePlay), this.handlePause();
3032
+ var a, e, t, r, i, o, n, s;
3033
+ (a = this.viewport) == null || a.toggle(!1), (e = this.viewport) == null || e.toggleParticle(!1), this.context = void 0, this.particleContext = void 0, this.etime = void 0, this.initial = !0, (r = (t = this.viewport) == null ? void 0 : t.map) == null || r.off("resize", this.handleResize), (o = (i = this.viewport) == null ? void 0 : i.map) == null || o.off("movestart", this.handlePause), (s = (n = this.viewport) == null ? void 0 : n.map) == null || s.off("moveend", this.handlePlay), this.handlePause();
3034
3034
  },
3035
3035
  handleSetup() {
3036
3036
  if (!this.context) {
3037
3037
  this.context = this.viewport.rampColorCanvas.getContext("webgl");
3038
- const t = [
3038
+ const a = [
3039
3039
  [0 / 255, "rgba(95, 143, 197,1)"],
3040
3040
  [5 / 255, "rgba(64,127,115,1)"],
3041
3041
  [10 / 255, "rgb(58,164,58)"],
@@ -3055,16 +3055,16 @@ const ya = {
3055
3055
  // 2.54
3056
3056
  [1, "rgb(195,194,194)"]
3057
3057
  ];
3058
- this.rampColor = this.webgl.setup(this.context, t);
3059
- const { program: e, aPositionBuffer: a } = this.webgl.bind(this.context, N.vertexSchema, N.uvFragmentSchema);
3060
- this.program = e, this.aPositionBuffer = a;
3058
+ this.rampColor = this.webgl.setup(this.context, a);
3059
+ const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, N.vertexSchema, N.uvFragmentSchema);
3060
+ this.program = e, this.aPositionBuffer = t;
3061
3061
  }
3062
3062
  this.handleParticleSetup();
3063
3063
  },
3064
3064
  handleParticleSetup() {
3065
3065
  if (!this.particleContext) {
3066
3066
  this.particleContext = this.viewport.particleCanvas.getContext("webgl");
3067
- const t = [
3067
+ const a = [
3068
3068
  [0, "rgb(183,224,224)"],
3069
3069
  [1, "rgb(199,202,202)"]
3070
3070
  ];
@@ -3075,7 +3075,7 @@ const ya = {
3075
3075
  U.quadVertSchema,
3076
3076
  U.screenFragmentSchema,
3077
3077
  U.updateFragmentSchema
3078
- ), this.wrapper.color = this.webgl.setup(this.particleContext, t, !0, 16, 16), this.wrapper = {
3078
+ ), this.wrapper.color = this.webgl.setup(this.particleContext, a, !0, 16, 16), this.wrapper = {
3079
3079
  ...this.wrapper,
3080
3080
  ...this.webgl.setupParticle(this.particleContext, 12e3),
3081
3081
  ...this.webgl.resize(this.viewport, this.particleContext)
@@ -3085,14 +3085,14 @@ const ya = {
3085
3085
  async handleDraw() {
3086
3086
  if (this.handleSetup(), this.etime !== this.factor.etime) {
3087
3087
  this.etime = this.factor.etime;
3088
- const t = await this.webgl.loadImg(this.factor.raw);
3089
- this.texture = this.webgl.createTexture(this.context, this.context.NEAREST, this.context.LINEAR, this.context.CLAMP_TO_EDGE, t), this.particleTexture = this.webgl.createTexture(
3088
+ const a = await this.webgl.loadImg(this.factor.raw);
3089
+ this.texture = this.webgl.createTexture(this.context, this.context.NEAREST, this.context.LINEAR, this.context.CLAMP_TO_EDGE, a), this.particleTexture = this.webgl.createTexture(
3090
3090
  this.particleContext,
3091
3091
  this.particleContext.NEAREST,
3092
3092
  this.particleContext.LINEAR,
3093
3093
  this.particleContext.CLAMP_TO_EDGE,
3094
- t
3095
- ), this.wrapper.image = t;
3094
+ a
3095
+ ), this.wrapper.image = a;
3096
3096
  }
3097
3097
  this.initial && (this.initial = !1, this.handlePlay()), this.webgl.draw(this.viewport, this.context, this.program, this.texture, this.rampColor.texture, this.aPositionBuffer, this.particleOptions), this.viewport.toggle(!0);
3098
3098
  },
@@ -3108,7 +3108,7 @@ const ya = {
3108
3108
  });
3109
3109
  }
3110
3110
  }
3111
- }, Le = (t) => (G("data-v-9115889b"), t = t(), H(), t), fa = { key: 0 }, ga = /* @__PURE__ */ Le(() => /* @__PURE__ */ l("span", null, "kts", -1)), ba = /* @__PURE__ */ Le(() => /* @__PURE__ */ l("span", null, "0", -1)), va = /* @__PURE__ */ Le(() => /* @__PURE__ */ l("span", null, "0.4", -1)), _a = /* @__PURE__ */ Le(() => /* @__PURE__ */ l("span", null, "0.8", -1)), wa = /* @__PURE__ */ Le(() => /* @__PURE__ */ l("span", null, "1.6", -1)), La = /* @__PURE__ */ Le(() => /* @__PURE__ */ l("span", null, "2", -1)), xa = /* @__PURE__ */ Le(() => /* @__PURE__ */ l("span", null, "3.2", -1)), Ca = [
3111
+ }, Le = (a) => (H("data-v-9115889b"), a = a(), G(), a), fa = { key: 0 }, ga = /* @__PURE__ */ Le(() => /* @__PURE__ */ l("span", null, "kts", -1)), ba = /* @__PURE__ */ Le(() => /* @__PURE__ */ l("span", null, "0", -1)), va = /* @__PURE__ */ Le(() => /* @__PURE__ */ l("span", null, "0.4", -1)), _a = /* @__PURE__ */ Le(() => /* @__PURE__ */ l("span", null, "0.8", -1)), wa = /* @__PURE__ */ Le(() => /* @__PURE__ */ l("span", null, "1.6", -1)), La = /* @__PURE__ */ Le(() => /* @__PURE__ */ l("span", null, "2", -1)), xa = /* @__PURE__ */ Le(() => /* @__PURE__ */ l("span", null, "3.2", -1)), Ca = [
3112
3112
  ga,
3113
3113
  ba,
3114
3114
  va,
@@ -3117,12 +3117,12 @@ const ya = {
3117
3117
  La,
3118
3118
  xa
3119
3119
  ];
3120
- function Sa(t, e, a, r, i, o) {
3120
+ function Sa(a, e, t, r, i, o) {
3121
3121
  var n;
3122
- return (n = a.factor) != null && n.active ? (L(), x("div", fa, [
3122
+ return (n = t.factor) != null && n.active ? (L(), x("div", fa, [
3123
3123
  l("div", {
3124
3124
  class: "legend-bars flex-center",
3125
- style: F([{ position: "absolute" }, { right: i.right + "px", bottom: a.bottom }])
3125
+ style: F([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
3126
3126
  }, Ca, 4)
3127
3127
  ])) : $("", !0);
3128
3128
  }
@@ -3150,23 +3150,23 @@ const ka = /* @__PURE__ */ T(ya, [["render", Sa], ["__scopeId", "data-v-9115889b
3150
3150
  watch: {
3151
3151
  "sigWave.version": {
3152
3152
  handler() {
3153
- var t;
3154
- (t = this.sigWave) != null && t.active ? this.handleRender() : this.handleClear();
3153
+ var a;
3154
+ (a = this.sigWave) != null && a.active ? this.handleRender() : this.handleClear();
3155
3155
  },
3156
3156
  deep: !0
3157
3157
  }
3158
3158
  },
3159
3159
  methods: {
3160
3160
  handleRender() {
3161
- var t, e;
3161
+ var a, e;
3162
3162
  if (!this.map)
3163
3163
  setTimeout(() => {
3164
3164
  this.handleRender();
3165
3165
  }, 500);
3166
3166
  else if (this.sigWave) {
3167
- const a = (/* @__PURE__ */ new Date()).valueOf();
3167
+ const t = (/* @__PURE__ */ new Date()).valueOf();
3168
3168
  let r = 0, i = 0, o = this.empty;
3169
- this.sigWave.active && (o = this.sigWave.data), (t = this.map) != null && t.getSource(this.source) ? ((e = this.map) == null || e.getSource(this.source).setData(o), i = (/* @__PURE__ */ new Date()).valueOf() - (a + r), console.log("[sig.wave] update elapsed: ", i, ", total: ", r += i)) : (this.map.addSource(this.source, { type: "geojson", data: o }), this.map.addLayer(
3169
+ this.sigWave.active && (o = this.sigWave.data), (a = this.map) != null && a.getSource(this.source) ? ((e = this.map) == null || e.getSource(this.source).setData(o), i = (/* @__PURE__ */ new Date()).valueOf() - (t + r), console.log("[sig.wave] update elapsed: ", i, ", total: ", r += i)) : (this.map.addSource(this.source, { type: "geojson", data: o }), this.map.addLayer(
3170
3170
  {
3171
3171
  id: this.heightLayer,
3172
3172
  type: "fill",
@@ -3229,7 +3229,7 @@ const ka = /* @__PURE__ */ T(ya, [["render", Sa], ["__scopeId", "data-v-9115889b
3229
3229
  }
3230
3230
  },
3231
3231
  this.beforeLayer
3232
- ), i = (/* @__PURE__ */ new Date()).valueOf() - (a + r), console.log("[sig.wave] add elapsed: ", i, ", total: ", r += i));
3232
+ ), i = (/* @__PURE__ */ new Date()).valueOf() - (t + r), console.log("[sig.wave] add elapsed: ", i, ", total: ", r += i));
3233
3233
  }
3234
3234
  },
3235
3235
  handleClear() {
@@ -3237,7 +3237,7 @@ const ka = /* @__PURE__ */ T(ya, [["render", Sa], ["__scopeId", "data-v-9115889b
3237
3237
  }
3238
3238
  }
3239
3239
  };
3240
- function Pa(t, e, a, r, i, o) {
3240
+ function Pa(a, e, t, r, i, o) {
3241
3241
  return L(), x("div");
3242
3242
  }
3243
3243
  const Ta = /* @__PURE__ */ T(za, [["render", Pa]]), Ea = {
@@ -3265,23 +3265,23 @@ const Ta = /* @__PURE__ */ T(za, [["render", Pa]]), Ea = {
3265
3265
  watch: {
3266
3266
  "swell.version": {
3267
3267
  handler() {
3268
- var t;
3269
- (t = this.swell) != null && t.active ? this.handleRender() : this.handleClear();
3268
+ var a;
3269
+ (a = this.swell) != null && a.active ? this.handleRender() : this.handleClear();
3270
3270
  },
3271
3271
  deep: !0
3272
3272
  }
3273
3273
  },
3274
3274
  methods: {
3275
3275
  handleRender() {
3276
- var t, e;
3276
+ var a, e;
3277
3277
  if (!this.map)
3278
3278
  setTimeout(() => {
3279
3279
  this.handleRender();
3280
3280
  }, 500);
3281
3281
  else if (this.swell) {
3282
- const a = (/* @__PURE__ */ new Date()).valueOf();
3282
+ const t = (/* @__PURE__ */ new Date()).valueOf();
3283
3283
  let r = 0, i = 0, o = this.empty;
3284
- this.swell.active && (o = this.swell.data), (t = this.map) != null && t.getSource(this.source) ? ((e = this.map) == null || e.getSource(this.source).setData(o), i = (/* @__PURE__ */ new Date()).valueOf() - (a + r), console.log("[swell] update elapsed: ", i, ", total: ", r += i)) : (this.map.addSource(this.source, { type: "geojson", data: o }), this.map.addLayer(
3284
+ this.swell.active && (o = this.swell.data), (a = this.map) != null && a.getSource(this.source) ? ((e = this.map) == null || e.getSource(this.source).setData(o), i = (/* @__PURE__ */ new Date()).valueOf() - (t + r), console.log("[swell] update elapsed: ", i, ", total: ", r += i)) : (this.map.addSource(this.source, { type: "geojson", data: o }), this.map.addLayer(
3285
3285
  {
3286
3286
  id: this.heightLayer,
3287
3287
  type: "line",
@@ -3370,7 +3370,7 @@ const Ta = /* @__PURE__ */ T(za, [["render", Pa]]), Ea = {
3370
3370
  }
3371
3371
  },
3372
3372
  this.beforeLayer
3373
- ), i = (/* @__PURE__ */ new Date()).valueOf() - (a + r), console.log("[swell] add elapsed: ", i, ", total: ", r += i));
3373
+ ), i = (/* @__PURE__ */ new Date()).valueOf() - (t + r), console.log("[swell] add elapsed: ", i, ", total: ", r += i));
3374
3374
  }
3375
3375
  },
3376
3376
  handleClear() {
@@ -3378,7 +3378,7 @@ const Ta = /* @__PURE__ */ T(za, [["render", Pa]]), Ea = {
3378
3378
  }
3379
3379
  }
3380
3380
  };
3381
- function Ia(t, e, a, r, i, o) {
3381
+ function Ia(a, e, t, r, i, o) {
3382
3382
  return L(), x("div");
3383
3383
  }
3384
3384
  const Ra = /* @__PURE__ */ T(Ea, [["render", Ia]]), Da = {
@@ -3409,15 +3409,15 @@ const Ra = /* @__PURE__ */ T(Ea, [["render", Ia]]), Da = {
3409
3409
  watch: {
3410
3410
  "prmsl.version": {
3411
3411
  handler() {
3412
- var t;
3413
- (t = this.prmsl) != null && t.active ? this.handleRender() : this.handleClear();
3412
+ var a;
3413
+ (a = this.prmsl) != null && a.active ? this.handleRender() : this.handleClear();
3414
3414
  },
3415
3415
  deep: !0
3416
3416
  }
3417
3417
  },
3418
3418
  methods: {
3419
3419
  handleRender() {
3420
- var t, e, a;
3420
+ var a, e, t;
3421
3421
  if (!this.map)
3422
3422
  setTimeout(() => {
3423
3423
  this.handleRender();
@@ -3425,7 +3425,7 @@ const Ra = /* @__PURE__ */ T(Ea, [["render", Ia]]), Da = {
3425
3425
  else if (this.prmsl) {
3426
3426
  const r = (/* @__PURE__ */ new Date()).valueOf();
3427
3427
  let i = 0, o = 0, n = this.empty;
3428
- this.prmsl.active && (n = this.prmsl.data), (t = this.map) != null && t.getSource(this.source) ? ((e = this.map) == null || e.getSource(this.source).setData(n), o = (/* @__PURE__ */ new Date()).valueOf() - (r + i), console.log("[prmsl] update elapsed: ", o, ", total: ", i += o)) : (this.map.addSource(this.source, { type: "geojson", data: n }), this.map.addLayer(
3428
+ this.prmsl.active && (n = this.prmsl.data), (a = this.map) != null && a.getSource(this.source) ? ((e = this.map) == null || e.getSource(this.source).setData(n), o = (/* @__PURE__ */ new Date()).valueOf() - (r + i), console.log("[prmsl] update elapsed: ", o, ", total: ", i += o)) : (this.map.addSource(this.source, { type: "geojson", data: n }), this.map.addLayer(
3429
3429
  {
3430
3430
  id: this.layer,
3431
3431
  type: "line",
@@ -3438,7 +3438,7 @@ const Ra = /* @__PURE__ */ T(Ea, [["render", Ia]]), Da = {
3438
3438
  }
3439
3439
  },
3440
3440
  this.beforeLayer
3441
- ), (a = this.map) == null || a.addLayer(
3441
+ ), (t = this.map) == null || t.addLayer(
3442
3442
  {
3443
3443
  id: this.labelLayer,
3444
3444
  type: "symbol",
@@ -3497,16 +3497,16 @@ const Ra = /* @__PURE__ */ T(Ea, [["render", Ia]]), Da = {
3497
3497
  }
3498
3498
  },
3499
3499
  handleMove() {
3500
- var t, e;
3501
- (e = (t = this.map) == null ? void 0 : t.getLayer("country-boundaries")) == null || e.setLayoutProperty("visibility", "visible"), this.map.getLayer(this.pointLabelLayer) && this.map.moveLayer(this.pointLabelLayer, "country-boundaries"), this.map.getLayer(this.labelLayer) && this.map.moveLayer(this.labelLayer, "country-boundaries"), this.map.getLayer(this.layer) && this.map.moveLayer(this.layer, "country-boundaries");
3500
+ var a, e;
3501
+ (e = (a = this.map) == null ? void 0 : a.getLayer("country-boundaries")) == null || e.setLayoutProperty("visibility", "visible"), this.map.getLayer(this.pointLabelLayer) && this.map.moveLayer(this.pointLabelLayer, "country-boundaries"), this.map.getLayer(this.labelLayer) && this.map.moveLayer(this.labelLayer, "country-boundaries"), this.map.getLayer(this.layer) && this.map.moveLayer(this.layer, "country-boundaries");
3502
3502
  },
3503
3503
  handleClear() {
3504
- var t, e;
3505
- this.activeWeatherLayers.length === 0 && ((e = (t = this.map) == null ? void 0 : t.getLayer("country-boundaries")) == null || e.setLayoutProperty("visibility", "none")), this.map.getLayer(this.pointLabelLayer) && this.map.removeLayer(this.pointLabelLayer), this.map.getLayer(this.labelLayer) && this.map.removeLayer(this.labelLayer), this.map.getLayer(this.layer) && this.map.removeLayer(this.layer), this.map.getSource(this.source) && this.map.removeSource(this.source);
3504
+ var a, e;
3505
+ this.activeWeatherLayers.length === 0 && ((e = (a = this.map) == null ? void 0 : a.getLayer("country-boundaries")) == null || e.setLayoutProperty("visibility", "none")), this.map.getLayer(this.pointLabelLayer) && this.map.removeLayer(this.pointLabelLayer), this.map.getLayer(this.labelLayer) && this.map.removeLayer(this.labelLayer), this.map.getLayer(this.layer) && this.map.removeLayer(this.layer), this.map.getSource(this.source) && this.map.removeSource(this.source);
3506
3506
  }
3507
3507
  }
3508
3508
  };
3509
- function Aa(t, e, a, r, i, o) {
3509
+ function Aa(a, e, t, r, i, o) {
3510
3510
  return L(), x("div");
3511
3511
  }
3512
3512
  const Ma = /* @__PURE__ */ T(Da, [["render", Aa]]), $a = {
@@ -3532,23 +3532,23 @@ const Ma = /* @__PURE__ */ T(Da, [["render", Aa]]), $a = {
3532
3532
  watch: {
3533
3533
  "iceberg.version": {
3534
3534
  handler() {
3535
- var t;
3536
- (t = this.iceberg) != null && t.active ? this.handleRender() : this.handleClear();
3535
+ var a;
3536
+ (a = this.iceberg) != null && a.active ? this.handleRender() : this.handleClear();
3537
3537
  },
3538
3538
  deep: !0
3539
3539
  }
3540
3540
  },
3541
3541
  methods: {
3542
3542
  handleRender() {
3543
- var t, e;
3543
+ var a, e;
3544
3544
  if (!this.map)
3545
3545
  setTimeout(() => {
3546
3546
  this.handleRender();
3547
3547
  }, 500);
3548
3548
  else if (this.iceberg) {
3549
- const a = (/* @__PURE__ */ new Date()).valueOf();
3549
+ const t = (/* @__PURE__ */ new Date()).valueOf();
3550
3550
  let r = 0, i = 0, o = this.empty;
3551
- this.iceberg.active && (o = this.iceberg.data), (t = this.map) != null && t.getSource(this.source) ? ((e = this.map) == null || e.getSource(this.source).setData(o), i = (/* @__PURE__ */ new Date()).valueOf() - (a + r), console.log("[iceberg] update elapsed: ", i, ", total: ", r += i)) : (this.map.addSource(this.source, { type: "geojson", data: o }), this.map.addLayer({
3551
+ this.iceberg.active && (o = this.iceberg.data), (a = this.map) != null && a.getSource(this.source) ? ((e = this.map) == null || e.getSource(this.source).setData(o), i = (/* @__PURE__ */ new Date()).valueOf() - (t + r), console.log("[iceberg] update elapsed: ", i, ", total: ", r += i)) : (this.map.addSource(this.source, { type: "geojson", data: o }), this.map.addLayer({
3552
3552
  id: this.layer,
3553
3553
  type: "line",
3554
3554
  source: this.source,
@@ -3558,7 +3558,7 @@ const Ma = /* @__PURE__ */ T(Da, [["render", Aa]]), $a = {
3558
3558
  "line-width": 2,
3559
3559
  "line-opacity": 1
3560
3560
  }
3561
- }), i = (/* @__PURE__ */ new Date()).valueOf() - (a + r), console.log("[iceberg] add elapsed: ", i, ", total: ", r += i));
3561
+ }), i = (/* @__PURE__ */ new Date()).valueOf() - (t + r), console.log("[iceberg] add elapsed: ", i, ", total: ", r += i));
3562
3562
  }
3563
3563
  },
3564
3564
  handleClear() {
@@ -3566,7 +3566,7 @@ const Ma = /* @__PURE__ */ T(Da, [["render", Aa]]), $a = {
3566
3566
  }
3567
3567
  }
3568
3568
  };
3569
- function Ba(t, e, a, r, i, o) {
3569
+ function Ba(a, e, t, r, i, o) {
3570
3570
  return L(), x("div");
3571
3571
  }
3572
3572
  const Na = /* @__PURE__ */ T($a, [["render", Ba]]);
@@ -3581,6 +3581,10 @@ const Wa = {
3581
3581
  },
3582
3582
  date: {
3583
3583
  type: String
3584
+ },
3585
+ timeZone: {
3586
+ type: Number,
3587
+ default: 0
3584
3588
  }
3585
3589
  },
3586
3590
  emits: ["tropical", "tropicalProbability"],
@@ -3612,13 +3616,16 @@ const Wa = {
3612
3616
  },
3613
3617
  computed: {
3614
3618
  computeTime() {
3615
- return function(t) {
3616
- if (t) {
3617
- const e = te(t).utc();
3618
- return `${e.format("MMM-DD,HHmm[Z]")} (${e == null ? void 0 : e.fromNow()})`;
3619
+ return function(a) {
3620
+ if (a) {
3621
+ const e = Z(a).utc().utcOffset(this.timeZone), t = this.timeZone < 0 ? this.timeZone : "+" + this.timeZone;
3622
+ return `${e.format("MMM-DD,HHmm")}[ UTC ${t} ] ( ${e == null ? void 0 : e.fromNow()} )`;
3619
3623
  }
3620
3624
  return "-";
3621
3625
  };
3626
+ },
3627
+ computeTimezone() {
3628
+ return this.timeZone < 0 ? this.timeZone : "+" + this.timeZone;
3622
3629
  }
3623
3630
  },
3624
3631
  watch: {
@@ -3636,40 +3643,49 @@ const Wa = {
3636
3643
  },
3637
3644
  "tropicals.version": {
3638
3645
  handler() {
3639
- var r, i;
3640
- const t = ((i = (r = this.tropicals) == null ? void 0 : r.data) == null ? void 0 : i.features) || [], e = te().utc().hour(), a = [];
3641
- t.forEach((o) => {
3642
- var n, s, c;
3643
- (n = o.properties) != null && n.name && !a.includes((s = o.properties) == null ? void 0 : s.name) && a.push((c = o.properties) == null ? void 0 : c.name);
3644
- }), a.forEach((o) => {
3645
- var h;
3646
- let n = 0, s;
3647
- const c = t.filter((d) => {
3648
- var p, f;
3649
- return ((f = (p = d.properties) == null ? void 0 : p.category) == null ? void 0 : f.split("-")[0]) === o;
3650
- });
3651
- (h = c.filter((d) => {
3652
- var p, f;
3653
- return ((p = d.geometry) == null ? void 0 : p.type) === "LineString" && ((f = d.properties) == null ? void 0 : f.type) === "forecast";
3654
- })[0]) == null || h.properties.model, c.forEach((d, p) => {
3655
- var f, m, b, y, u, v;
3656
- ((f = d.geometry) == null ? void 0 : f.type) === "Point" && ((m = d.properties) == null ? void 0 : m.type) === "history" && (n = p, s = s === void 0 ? p : s), ((b = d.geometry) == null ? void 0 : b.type) === "Point" && ((y = d.properties) == null ? void 0 : y.type) === "forecast" && s === void 0 && (s = p), ((u = d.geometry) == null ? void 0 : u.type) === "LineString" && ((v = d.properties) == null || v.type);
3657
- }), c.map((d, p) => {
3658
- var f, m, b, y, u, v, g, w;
3659
- if (((f = d.geometry) == null ? void 0 : f.type) === "LineString" && ((m = d.properties) == null || m.type), ((b = d.geometry) == null ? void 0 : b.type) === "Point" && ((y = d.properties) == null ? void 0 : y.type) === "forecast" && (d.properties.name = o), ((u = d.geometry) == null ? void 0 : u.type) === "Point" && ((v = d.properties) == null ? void 0 : v.type) === "history") {
3660
- const k = ((w = (g = d.properties) == null ? void 0 : g.format) == null ? void 0 : w.slice(7, 12)) === te().utc().hour(Math.floor(e / 6) * 6).minute("00").format("HHmm") + "Z";
3661
- d.properties.showHistoryLabel = k || p === n, d.properties.showNameLabel = p === n, d.properties.name = o;
3662
- }
3663
- return d;
3664
- });
3665
- }), this.handleInit();
3646
+ this.handleRefresh();
3647
+ }
3648
+ },
3649
+ timeZone: {
3650
+ handler() {
3651
+ this.handleRefresh();
3666
3652
  }
3667
3653
  }
3668
3654
  },
3669
3655
  methods: {
3656
+ handleRefresh() {
3657
+ var r, i;
3658
+ const a = ((i = (r = this.tropicals) == null ? void 0 : r.data) == null ? void 0 : i.features) || [], e = Z().utc().hour(), t = [];
3659
+ a.forEach((o) => {
3660
+ var n, s, c;
3661
+ (n = o.properties) != null && n.name && !t.includes((s = o.properties) == null ? void 0 : s.name) && t.push((c = o.properties) == null ? void 0 : c.name);
3662
+ }), t.forEach((o) => {
3663
+ var h;
3664
+ let n = 0, s;
3665
+ const c = a.filter((d) => {
3666
+ var p, f;
3667
+ return ((f = (p = d.properties) == null ? void 0 : p.category) == null ? void 0 : f.split("-")[0]) === o;
3668
+ });
3669
+ (h = c.filter((d) => {
3670
+ var p, f;
3671
+ return ((p = d.geometry) == null ? void 0 : p.type) === "LineString" && ((f = d.properties) == null ? void 0 : f.type) === "forecast";
3672
+ })[0]) == null || h.properties.model, c.forEach((d, p) => {
3673
+ var f, m, b, y, u, v;
3674
+ ((f = d.geometry) == null ? void 0 : f.type) === "Point" && ((m = d.properties) == null ? void 0 : m.type) === "history" && (n = p, s = s === void 0 ? p : s), ((b = d.geometry) == null ? void 0 : b.type) === "Point" && ((y = d.properties) == null ? void 0 : y.type) === "forecast" && s === void 0 && (s = p), ((u = d.geometry) == null ? void 0 : u.type) === "LineString" && ((v = d.properties) == null || v.type);
3675
+ }), c.map((d, p) => {
3676
+ var f, m, b, y, u, v, g;
3677
+ if (((f = d.geometry) == null ? void 0 : f.type) === "LineString" && ((m = d.properties) == null || m.type), ((b = d.geometry) == null ? void 0 : b.type) === "Point" && ((y = d.properties) == null ? void 0 : y.type) === "forecast" && (d.properties.name = o, d.properties.format = Z(d.properties.date).utcOffset(this.timeZone).format(`MMM-DD,HHmm [(utc ${this.computeTimezone})]`)), ((u = d.geometry) == null ? void 0 : u.type) === "Point" && ((v = d.properties) == null ? void 0 : v.type) === "history") {
3678
+ d.properties.format = Z(d.properties.date).utcOffset(this.timeZone).format(`MMM-DD,HHmm [(utc ${this.computeTimezone})]`);
3679
+ const w = Z((g = d.properties) == null ? void 0 : g.date).utc().format("HHmm") === Z().utc().hour(Math.floor(e / 6) * 6).minute("00").format("HHmm");
3680
+ d.properties.showHistoryLabel = w || p === n, d.properties.showNameLabel = p === n, d.properties.name = o;
3681
+ }
3682
+ return d;
3683
+ });
3684
+ }), this.handleInit();
3685
+ },
3670
3686
  handleInit() {
3671
- var t, e;
3672
- this.tropicals && this.tropicals.active ? (this.handleRender(), (t = this.map) == null || t.on(
3687
+ var a, e;
3688
+ this.tropicals && this.tropicals.active ? (this.handleRender(), (a = this.map) == null || a.on(
3673
3689
  "click",
3674
3690
  [
3675
3691
  this.forecastNameLayer,
@@ -3698,7 +3714,7 @@ const Wa = {
3698
3714
  ));
3699
3715
  },
3700
3716
  handleRender() {
3701
- var t, e, a, r, i, o, n, s, c, h;
3717
+ var a, e, t, r, i, o, n, s, c, h;
3702
3718
  if (!this.map)
3703
3719
  setTimeout(() => {
3704
3720
  this.handleRender();
@@ -3707,7 +3723,7 @@ const Wa = {
3707
3723
  if (this.tropicals) {
3708
3724
  const p = (/* @__PURE__ */ new Date()).valueOf();
3709
3725
  let f = 0, m = 0;
3710
- (t = this.map) != null && t.getSource(this.source) ? ((a = this.map) == null || a.getSource(this.source).setData((e = this.tropicals) != null && e.active ? this.tropicals.data : this.empty), m = (/* @__PURE__ */ new Date()).valueOf() - (p + f), console.log("[tropicals] update elapsed: ", m, ", total: ", f += m)) : (this.map.addSource(this.source, {
3726
+ (a = this.map) != null && a.getSource(this.source) ? ((t = this.map) == null || t.getSource(this.source).setData((e = this.tropicals) != null && e.active ? this.tropicals.data : this.empty), m = (/* @__PURE__ */ new Date()).valueOf() - (p + f), console.log("[tropicals] update elapsed: ", m, ", total: ", f += m)) : (this.map.addSource(this.source, {
3711
3727
  type: "geojson",
3712
3728
  data: (r = this.tropicals) != null && r.active ? (i = this.tropicals) == null ? void 0 : i.data : this.empty
3713
3729
  }), this.map.addLayer({
@@ -3929,18 +3945,18 @@ const Wa = {
3929
3945
  }
3930
3946
  },
3931
3947
  handleClear() {
3932
- var t;
3933
- 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), (t = this.interpolateMarkers) == null || t.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));
3948
+ var a;
3949
+ 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));
3934
3950
  },
3935
3951
  handleDateChange() {
3936
- var t, e, a, r, i, o, n, s, c, h, d, p, f, m, b, y, u, v, g, w, k, _, D, A, B, W, O, Z, de, pe, me, ue, ye, fe, ge, ae;
3937
- if ((t = this.interpolateMarkers) == null || t.forEach((J) => J == null ? void 0 : J.remove()), this.circleSourceData.features = [], (e = this.interpolateData) != null && e.length && this.tropicals.active) {
3938
- const J = te(this.date).utc().set({ minute: 0, second: 0, millisecond: 0 }), q = this.interpolateData.filter((E) => E.properties.date === J.format() && !E.properties.disabled), be = this.handleComputePolygons(q), Y = C.featureCollection([...q]);
3952
+ var a, e, t, r, i, o, n, s, c, h, d, p, f, m, b, y, u, v, g, w, k, _, D, A, B, W, O, J, de, pe, me, ue, ye, fe, ge, ae;
3953
+ if ((a = this.interpolateMarkers) == null || a.forEach((X) => X == null ? void 0 : X.remove()), this.circleSourceData.features = [], (e = this.interpolateData) != null && e.length && this.tropicals.active) {
3954
+ const X = Z(this.date).utc().set({ minute: 0, second: 0, millisecond: 0 }), Y = this.interpolateData.filter((E) => E.properties.date === X.format() && !E.properties.disabled), be = this.handleComputePolygons(Y), Q = C.featureCollection([...Y]);
3939
3955
  be.forEach((E) => {
3940
- Y.features.push(E);
3941
- }), (a = this.map) != null && a.getSource(this.interpolateSource) ? (r = this.map) == null || r.getSource(this.interpolateSource).setData(Y) : ((i = this.map) == null || i.addSource(this.interpolateSource, {
3956
+ Q.features.push(E);
3957
+ }), (t = this.map) != null && t.getSource(this.interpolateSource) ? (r = this.map) == null || r.getSource(this.interpolateSource).setData(Q) : ((i = this.map) == null || i.addSource(this.interpolateSource, {
3942
3958
  type: "geojson",
3943
- data: Y
3959
+ data: Q
3944
3960
  }), (o = this.map) == null || o.addLayer({
3945
3961
  id: this.interpolateLineLayer,
3946
3962
  type: "line",
@@ -3952,10 +3968,10 @@ const Wa = {
3952
3968
  "line-width": 1
3953
3969
  }
3954
3970
  })), this.interpolateMarkers = [];
3955
- for (const E of q)
3971
+ for (const E of Y)
3956
3972
  if (!E.properties.disabled) {
3957
3973
  let V = "#f44336";
3958
- ((s = (n = E.properties) == null ? void 0 : n.wind) == null ? void 0 : s.spd) < 17.2 || !((h = (c = E.properties) == null ? void 0 : c.wind) != null && h.spd) ? V = "#03f869" : ((p = (d = E.properties) == null ? void 0 : d.wind) == null ? void 0 : p.spd) >= 17.2 && ((m = (f = E.properties) == null ? void 0 : f.wind) == null ? void 0 : m.spd) < 24.5 ? V = "#f2f202" : ((y = (b = E.properties) == null ? void 0 : b.wind) == null ? void 0 : y.spd) >= 24.5 && ((v = (u = E.properties) == null ? void 0 : u.wind) == null ? void 0 : v.spd) < 32.7 ? V = "#ff9100" : ((w = (g = E.properties) == null ? void 0 : g.wind) == null ? void 0 : w.spd) >= 32.7 && ((_ = (k = E.properties) == null ? void 0 : k.wind) == null ? void 0 : _.spd) < 41.5 ? V = "#f44336" : ((A = (D = E.properties) == null ? void 0 : D.wind) == null ? void 0 : A.spd) >= 41.5 && ((W = (B = E.properties) == null ? void 0 : B.wind) == null ? void 0 : W.spd) < 51 ? V = "#f903d0" : ((Z = (O = E.properties) == null ? void 0 : O.wind) == null ? void 0 : Z.spd) >= 51 ? V = "#8702f9" : V = "#f44336";
3974
+ ((s = (n = E.properties) == null ? void 0 : n.wind) == null ? void 0 : s.spd) < 17.2 || !((h = (c = E.properties) == null ? void 0 : c.wind) != null && h.spd) ? V = "#03f869" : ((p = (d = E.properties) == null ? void 0 : d.wind) == null ? void 0 : p.spd) >= 17.2 && ((m = (f = E.properties) == null ? void 0 : f.wind) == null ? void 0 : m.spd) < 24.5 ? V = "#f2f202" : ((y = (b = E.properties) == null ? void 0 : b.wind) == null ? void 0 : y.spd) >= 24.5 && ((v = (u = E.properties) == null ? void 0 : u.wind) == null ? void 0 : v.spd) < 32.7 ? V = "#ff9100" : ((w = (g = E.properties) == null ? void 0 : g.wind) == null ? void 0 : w.spd) >= 32.7 && ((_ = (k = E.properties) == null ? void 0 : k.wind) == null ? void 0 : _.spd) < 41.5 ? V = "#f44336" : ((A = (D = E.properties) == null ? void 0 : D.wind) == null ? void 0 : A.spd) >= 41.5 && ((W = (B = E.properties) == null ? void 0 : B.wind) == null ? void 0 : W.spd) < 51 ? V = "#f903d0" : ((J = (O = E.properties) == null ? void 0 : O.wind) == null ? void 0 : J.spd) >= 51 ? V = "#8702f9" : V = "#f44336";
3959
3975
  const ve = `<svg t="1719918955501"
3960
3976
  class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" p-id="18382"
3961
3977
  xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200">
@@ -3970,9 +3986,9 @@ const Wa = {
3970
3986
  <path
3971
3987
  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"
3972
3988
  fill="#ffffff" p-id="18386"></path>
3973
- </svg>`, Q = document.createElement("div");
3974
- Q.className = "hurricane-hourly-marker", Q.innerHTML = `<div class="${E.geometry.coordinates[1] >= 0 ? "center north" : "center south"}">${ve}</div>`;
3975
- const _e = new ne.Marker(Q).setLngLat(E.geometry.coordinates).addTo(this.map);
3989
+ </svg>`, K = document.createElement("div");
3990
+ K.className = "hurricane-hourly-marker", K.innerHTML = `<div class="${E.geometry.coordinates[1] >= 0 ? "center north" : "center south"}">${ve}</div>`;
3991
+ const _e = new ne.Marker(K).setLngLat(E.geometry.coordinates).addTo(this.map);
3976
3992
  if (this.interpolateMarkers.push(_e), (de = E.properties) != null && de.showCircle) {
3977
3993
  const ie = { radius: 100, coordinates: E.geometry.coordinates }, re = { radius: 200, coordinates: E.geometry.coordinates }, oe = { radius: 500, coordinates: E.geometry.coordinates };
3978
3994
  (pe = this.circleSourceData) == null || pe.features.push(
@@ -3988,15 +4004,15 @@ const Wa = {
3988
4004
  } else
3989
4005
  (ge = this.map) != null && ge.getSource(this.interpolateSource) && ((ae = this.map) == null || ae.getSource(this.interpolateSource).setData(this.empty));
3990
4006
  },
3991
- handleClick(t) {
4007
+ handleClick(a) {
3992
4008
  var o, n, s, c, h, d, p, f;
3993
- const e = t.features[0], a = (n = (o = this.tropicals) == null ? void 0 : o.data) == null ? void 0 : n.features.filter(
4009
+ const e = a.features[0], t = (n = (o = this.tropicals) == null ? void 0 : o.data) == null ? void 0 : n.features.filter(
3994
4010
  (m) => {
3995
4011
  var b;
3996
4012
  return m.geometry.type === "LineString" && m.properties.type === "forecast" && m.properties.name === ((b = e == null ? void 0 : e.properties) == null ? void 0 : b.name);
3997
4013
  }
3998
4014
  );
3999
- a.sort((m, b) => {
4015
+ t.sort((m, b) => {
4000
4016
  var y, u, v, g;
4001
4017
  return ((y = m.properties) == null ? void 0 : y.model) === "cma" ? -1 : ((u = m.properties) == null ? void 0 : u.model) === "jma" ? ((v = b.properties) == null ? void 0 : v.model) === "cma" ? 1 : -1 : m.properties.model === "ecmwf" ? ["jma", "cma"].includes((g = b.properties) == null ? void 0 : g.model) ? 1 : -1 : 0;
4002
4018
  });
@@ -4008,35 +4024,35 @@ const Wa = {
4008
4024
  );
4009
4025
  this.activeTropicals = {
4010
4026
  name: (h = e == null ? void 0 : e.properties) == null ? void 0 : h.name,
4011
- forecasts: a.map((m) => m.properties),
4027
+ forecasts: t.map((m) => m.properties),
4012
4028
  history: (d = r[0]) == null ? void 0 : d.properties,
4013
- showCircle: (f = (p = a[0]) == null ? void 0 : p.properties) == null ? void 0 : f.showCircle
4029
+ showCircle: (f = (p = t[0]) == null ? void 0 : p.properties) == null ? void 0 : f.showCircle
4014
4030
  }, this.showTropicals = !0;
4015
4031
  const i = document.getElementById("active-tropical");
4016
- this.activeTropicalsMarker ? this.activeTropicalsMarker.setLngLat([t.lngLat.lng, t.lngLat.lat]) : this.activeTropicalsMarker = new ne.Marker(i).setLngLat([t.lngLat.lng, t.lngLat.lat]).setOffset([220, 0]).addTo(this.map);
4032
+ this.activeTropicalsMarker ? this.activeTropicalsMarker.setLngLat([a.lngLat.lng, a.lngLat.lat]) : this.activeTropicalsMarker = new ne.Marker(i).setLngLat([a.lngLat.lng, a.lngLat.lat]).setOffset([220, 0]).addTo(this.map);
4017
4033
  },
4018
- handleForecastToggle(t) {
4034
+ handleForecastToggle(a) {
4019
4035
  var r, i, o, n, s, c;
4020
- t.disabled = !t.disabled;
4021
- const e = `${t.name}-${t.model}`, a = (i = (r = this.map) == null ? void 0 : r.getSource(this.source)._data) == null ? void 0 : i.features;
4022
- a.forEach((h) => {
4023
- h.properties.category === e && (h.properties.disabled = t.disabled);
4036
+ a.disabled = !a.disabled;
4037
+ const e = `${a.name}-${a.model}`, t = (i = (r = this.map) == null ? void 0 : r.getSource(this.source)._data) == null ? void 0 : i.features;
4038
+ t.forEach((h) => {
4039
+ h.properties.category === e && (h.properties.disabled = a.disabled);
4024
4040
  }), this.interpolateData.forEach((h) => {
4025
- h.properties.category === e && (h.properties.disabled = t.disabled);
4026
- }), (n = (o = this.map) == null ? void 0 : o.getSource(this.source)) == null || n.setData(C.featureCollection(a)), (c = (s = this.map) == null ? void 0 : s.getSource(this.clusterSource)) == null || c.setData(C.featureCollection(a)), this.handleDateChange();
4041
+ h.properties.category === e && (h.properties.disabled = a.disabled);
4042
+ }), (n = (o = this.map) == null ? void 0 : o.getSource(this.source)) == null || n.setData(C.featureCollection(t)), (c = (s = this.map) == null ? void 0 : s.getSource(this.clusterSource)) == null || c.setData(C.featureCollection(t)), this.handleDateChange();
4027
4043
  },
4028
- handleStrikeProbability(t) {
4029
- this.$emit("tropicalProbability", t);
4044
+ handleStrikeProbability(a) {
4045
+ this.$emit("tropicalProbability", a);
4030
4046
  },
4031
- handleToggleCircles(t) {
4032
- var e, a;
4033
- t.showCircle = !t.showCircle, (a = (e = this.tropicals.data) == null ? void 0 : e.features) == null || a.forEach((r) => {
4034
- r.properties.name === t.name && (r.properties.showCircle = t.showCircle);
4047
+ handleToggleCircles(a) {
4048
+ var e, t;
4049
+ a.showCircle = !a.showCircle, (t = (e = this.tropicals.data) == null ? void 0 : e.features) == null || t.forEach((r) => {
4050
+ r.properties.name === a.name && (r.properties.showCircle = a.showCircle);
4035
4051
  }), this.handleRender();
4036
4052
  },
4037
4053
  handleDrawCircle() {
4038
- var t, e;
4039
- (t = this.map) != null && t.getSource(this.circleSource) ? (e = this.map) == null || e.getSource(this.circleSource).setData(this.circleSourceData) : (this.map.addSource(this.circleSource, {
4054
+ var a, e;
4055
+ (a = this.map) != null && a.getSource(this.circleSource) ? (e = this.map) == null || e.getSource(this.circleSource).setData(this.circleSourceData) : (this.map.addSource(this.circleSource, {
4040
4056
  type: "geojson",
4041
4057
  data: this.circleSourceData
4042
4058
  }), this.map.addLayer({
@@ -4052,27 +4068,27 @@ const Wa = {
4052
4068
  }
4053
4069
  }));
4054
4070
  },
4055
- handleComputePolygons(t) {
4071
+ handleComputePolygons(a) {
4056
4072
  const e = [];
4057
- for (const a of t) {
4058
- const r = a.properties.wind, i = {
4073
+ for (const t of a) {
4074
+ const r = t.properties.wind, i = {
4059
4075
  ne: r.r7ne >= 0 ? r.r7ne : void 0,
4060
4076
  se: r.r7se >= 0 ? r.r7se : void 0,
4061
4077
  sw: r.r7sw >= 0 ? r.r7sw : void 0,
4062
4078
  nw: r.r7nw >= 0 ? r.r7nw : void 0
4063
- }, o = this.handleComputeArc(a.geometry.coordinates, i, { ...a.properties, level: 7 });
4079
+ }, o = this.handleComputeArc(t.geometry.coordinates, i, { ...t.properties, level: 7 });
4064
4080
  e.push(o);
4065
4081
  const n = {
4066
4082
  ne: r.r10ne >= 0 ? r.r10ne : void 0,
4067
4083
  se: r.r10se >= 0 ? r.r10se : void 0,
4068
4084
  sw: r.r10sw >= 0 ? r.r10sw : void 0,
4069
4085
  nw: r.r10nw >= 0 ? r.r10nw : void 0
4070
- }, s = this.handleComputeArc(a.geometry.coordinates, n, { ...a.properties, level: 10 });
4086
+ }, s = this.handleComputeArc(t.geometry.coordinates, n, { ...t.properties, level: 10 });
4071
4087
  e.push(s);
4072
4088
  }
4073
4089
  return e;
4074
4090
  },
4075
- handleComputeArc(t, e, a) {
4091
+ handleComputeArc(a, e, t) {
4076
4092
  var o;
4077
4093
  const r = [];
4078
4094
  for (const n in e) {
@@ -4080,31 +4096,31 @@ const Wa = {
4080
4096
  let c;
4081
4097
  switch (n) {
4082
4098
  case "ne":
4083
- c = C.lineArc(t, s * 1.852, 0, 90, { steps: s > 0 ? 64 : 1 });
4099
+ c = C.lineArc(a, s * 1.852, 0, 90, { steps: s > 0 ? 64 : 1 });
4084
4100
  break;
4085
4101
  case "se":
4086
- c = C.lineArc(t, s * 1.852, 90, 180, { steps: s > 0 ? 64 : 1 });
4102
+ c = C.lineArc(a, s * 1.852, 90, 180, { steps: s > 0 ? 64 : 1 });
4087
4103
  break;
4088
4104
  case "sw":
4089
- c = C.lineArc(t, s * 1.852, 180, 270, { steps: s > 0 ? 64 : 1 });
4105
+ c = C.lineArc(a, s * 1.852, 180, 270, { steps: s > 0 ? 64 : 1 });
4090
4106
  break;
4091
4107
  case "nw":
4092
- c = C.lineArc(t, s * 1.852, 270, 360, { steps: s > 0 ? 64 : 1 });
4108
+ c = C.lineArc(a, s * 1.852, 270, 360, { steps: s > 0 ? 64 : 1 });
4093
4109
  break;
4094
4110
  }
4095
4111
  r.push(...(o = c == null ? void 0 : c.geometry) == null ? void 0 : o.coordinates);
4096
4112
  }
4097
4113
  const i = C.lineString(r);
4098
- return C.lineToPolygon(i, { properties: a });
4114
+ return C.lineToPolygon(i, { properties: t });
4099
4115
  }
4100
4116
  }
4101
- }, je = (t) => (G("data-v-b5b42393"), t = t(), H(), t), Oa = {
4117
+ }, je = (a) => (H("data-v-08ecb5a5"), a = a(), G(), a), Oa = {
4102
4118
  id: "active-tropical",
4103
4119
  class: "active-tropical"
4104
- }, ja = { class: "header-box" }, Fa = { class: "main" }, Va = { key: 0 }, Ua = { class: "sub" }, Ga = {
4120
+ }, ja = { class: "header-box" }, Fa = { class: "main" }, Va = { key: 0 }, Ua = { class: "sub" }, Za = {
4105
4121
  id: "meteoBox",
4106
4122
  class: "main-box"
4107
- }, Ha = { class: "content" }, Za = { class: "row" }, Ja = {
4123
+ }, Ha = { class: "content" }, Ga = { class: "row" }, Ja = {
4108
4124
  class: "col col-left",
4109
4125
  style: { "justify-content": "flex-start" }
4110
4126
  }, Xa = /* @__PURE__ */ je(() => /* @__PURE__ */ l("label", null, "Wind speed : ", -1)), qa = {
@@ -4113,8 +4129,8 @@ const Wa = {
4113
4129
  }, Ya = /* @__PURE__ */ je(() => /* @__PURE__ */ l("label", null, "Pressure : ", -1)), Qa = { class: "row" }, Ka = {
4114
4130
  class: "col col-24",
4115
4131
  style: { "justify-content": "flex-start" }
4116
- }, ei = /* @__PURE__ */ je(() => /* @__PURE__ */ l("label", { style: { width: "max-content" } }, "Forecast Models : ", -1)), ti = { class: "forecast-models" }, ai = ["onClick"], ii = /* @__PURE__ */ it('<div class="row" style="padding:0;height:1px;margin:10px 0;background:var(--idm-black-1);" data-v-b5b42393></div><div class="row" style="padding:2px 10px;" data-v-b5b42393><div class="legend" data-v-b5b42393><div class="icon td" data-v-b5b42393></div><div class="label" data-v-b5b42393>TD</div></div><div class="legend" data-v-b5b42393><div class="icon ts" data-v-b5b42393></div><div class="label" data-v-b5b42393>TS</div></div><div class="legend" data-v-b5b42393><div class="icon sts" data-v-b5b42393></div><div class="label" data-v-b5b42393>STS</div></div><div class="legend" data-v-b5b42393><div class="icon ty" data-v-b5b42393></div><div class="label" data-v-b5b42393>TY</div></div><div class="legend" data-v-b5b42393><div class="icon sty" data-v-b5b42393></div><div class="label" data-v-b5b42393>STY</div></div><div class="legend" data-v-b5b42393><div class="icon supper-ty" data-v-b5b42393></div><div class="label" data-v-b5b42393>Super TY</div></div></div><div class="row" style="padding:2px 10px;" data-v-b5b42393><div class="legend" data-v-b5b42393><div class="icon history" data-v-b5b42393></div><div class="label" data-v-b5b42393>History</div></div><div class="legend" data-v-b5b42393><div class="icon r7" data-v-b5b42393></div><div class="label" data-v-b5b42393>35kts Radii</div></div><div class="legend" data-v-b5b42393><div class="icon r10" data-v-b5b42393></div><div class="label" data-v-b5b42393>50kts Radii</div></div></div>', 3), ri = { class: "more" };
4117
- function oi(t, e, a, r, i, o) {
4132
+ }, ei = /* @__PURE__ */ je(() => /* @__PURE__ */ l("label", { style: { width: "max-content" } }, "Forecast Models : ", -1)), ti = { class: "forecast-models" }, ai = ["onClick"], ii = /* @__PURE__ */ it('<div class="row" style="padding:0;height:1px;margin:10px 0;background:var(--idm-black-1);" data-v-08ecb5a5></div><div class="row" style="padding:2px 10px;" data-v-08ecb5a5><div class="legend" data-v-08ecb5a5><div class="icon td" data-v-08ecb5a5></div><div class="label" data-v-08ecb5a5>TD</div></div><div class="legend" data-v-08ecb5a5><div class="icon ts" data-v-08ecb5a5></div><div class="label" data-v-08ecb5a5>TS</div></div><div class="legend" data-v-08ecb5a5><div class="icon sts" data-v-08ecb5a5></div><div class="label" data-v-08ecb5a5>STS</div></div><div class="legend" data-v-08ecb5a5><div class="icon ty" data-v-08ecb5a5></div><div class="label" data-v-08ecb5a5>TY</div></div><div class="legend" data-v-08ecb5a5><div class="icon sty" data-v-08ecb5a5></div><div class="label" data-v-08ecb5a5>STY</div></div><div class="legend" data-v-08ecb5a5><div class="icon supper-ty" data-v-08ecb5a5></div><div class="label" data-v-08ecb5a5>Super TY</div></div></div><div class="row" style="padding:2px 10px;" data-v-08ecb5a5><div class="legend" data-v-08ecb5a5><div class="icon history" data-v-08ecb5a5></div><div class="label" data-v-08ecb5a5>History</div></div><div class="legend" data-v-08ecb5a5><div class="icon r7" data-v-08ecb5a5></div><div class="label" data-v-08ecb5a5>35kts Radii</div></div><div class="legend" data-v-08ecb5a5><div class="icon r10" data-v-08ecb5a5></div><div class="label" data-v-08ecb5a5>50kts Radii</div></div></div>', 3), ri = { class: "more" };
4133
+ function oi(a, e, t, r, i, o) {
4118
4134
  var n, s, c, h, d, p, f, m, b, y, u, v, g, w, k;
4119
4135
  return Me((L(), x("div", Oa, [
4120
4136
  l("div", ja, [
@@ -4128,9 +4144,9 @@ function oi(t, e, a, r, i, o) {
4128
4144
  ]),
4129
4145
  l("div", Ua, " Last update: " + S(o.computeTime(((f = (p = i.activeTropicals) == null ? void 0 : p.history) == null ? void 0 : f.updated) || ((y = (b = (m = i.activeTropicals) == null ? void 0 : m.forecasts) == null ? void 0 : b.filter((_) => !_.disabled)[0]) == null ? void 0 : y.date))), 1)
4130
4146
  ]),
4131
- l("div", Ga, [
4147
+ l("div", Za, [
4132
4148
  l("div", Ha, [
4133
- l("div", Za, [
4149
+ l("div", Ga, [
4134
4150
  l("div", Ja, [
4135
4151
  Xa,
4136
4152
  l("span", null, S(((v = (u = i.activeTropicals) == null ? void 0 : u.history) == null ? void 0 : v.kts) || "-") + "[kts]", 1)
@@ -4153,7 +4169,7 @@ function oi(t, e, a, r, i, o) {
4153
4169
  _.disabled ? "" : "active",
4154
4170
  D > 0 && D < ((B = (A = i.activeTropicals) == null ? void 0 : A.forecasts) == null ? void 0 : B.length) - 1 && ((O = (W = i.activeTropicals) == null ? void 0 : W.forecasts) == null ? void 0 : O.length) > 2 ? "center-child" : ""
4155
4171
  ]),
4156
- onClick: (Z) => o.handleForecastToggle(_)
4172
+ onClick: (J) => o.handleForecastToggle(_)
4157
4173
  }, [
4158
4174
  l("span", {
4159
4175
  class: M(_.model)
@@ -4173,10 +4189,10 @@ function oi(t, e, a, r, i, o) {
4173
4189
  ])
4174
4190
  ])
4175
4191
  ], 512)), [
4176
- [$e, i.showTropicals && !t.$attrs.hideTropicalsLegend]
4192
+ [$e, i.showTropicals && !a.$attrs.hideTropicalsLegend]
4177
4193
  ]);
4178
4194
  }
4179
- const Ye = /* @__PURE__ */ T(Wa, [["render", oi], ["__scopeId", "data-v-b5b42393"]]);
4195
+ const Ye = /* @__PURE__ */ T(Wa, [["render", oi], ["__scopeId", "data-v-08ecb5a5"]]);
4180
4196
  const si = {
4181
4197
  name: "IdmPrecip3h",
4182
4198
  props: {
@@ -4213,15 +4229,15 @@ const si = {
4213
4229
  watch: {
4214
4230
  "factor.version": {
4215
4231
  handler() {
4216
- var t;
4217
- (t = this.factor) != null && t.active ? this.handleRender() : this.handleClear();
4232
+ var a;
4233
+ (a = this.factor) != null && a.active ? this.handleRender() : this.handleClear();
4218
4234
  },
4219
4235
  deep: !0
4220
4236
  },
4221
4237
  toggleVersion: {
4222
4238
  handler() {
4223
- var t, e;
4224
- this.right = (((t = document.getElementsByClassName("available-layers-show")[0]) == null ? void 0 : t.clientWidth) || 0) + (((e = document.getElementsByClassName("fleet-list-container")[0]) == null ? void 0 : e.clientWidth) || 0) + 10;
4239
+ var a, e;
4240
+ this.right = (((a = document.getElementsByClassName("available-layers-show")[0]) == null ? void 0 : a.clientWidth) || 0) + (((e = document.getElementsByClassName("fleet-list-container")[0]) == null ? void 0 : e.clientWidth) || 0) + 10;
4225
4241
  },
4226
4242
  immediate: !0
4227
4243
  }
@@ -4233,9 +4249,9 @@ const si = {
4233
4249
  this.handleRender();
4234
4250
  }, 500);
4235
4251
  else if (this.factor) {
4236
- const t = (/* @__PURE__ */ new Date()).valueOf();
4237
- let e = 0, a = 0;
4238
- this.handleDraw(), a = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("[precip3h] add elapsed: ", a, ", total: ", e += a);
4252
+ const a = (/* @__PURE__ */ new Date()).valueOf();
4253
+ let e = 0, t = 0;
4254
+ this.handleDraw(), t = (/* @__PURE__ */ new Date()).valueOf() - (a + e), console.log("[precip3h] add elapsed: ", t, ", total: ", e += t);
4239
4255
  }
4240
4256
  },
4241
4257
  handleClear() {
@@ -4244,7 +4260,7 @@ const si = {
4244
4260
  handleSetup() {
4245
4261
  if (!this.context) {
4246
4262
  this.context = this.viewport.rampColorCanvas.getContext("webgl");
4247
- const t = [
4263
+ const a = [
4248
4264
  [0, "rgba(59, 126, 162, 0)"],
4249
4265
  [14 / 255, "rgba(84,170,230, 0)"],
4250
4266
  //1.4mm
@@ -4264,21 +4280,21 @@ const si = {
4264
4280
  //30mm
4265
4281
  [1, "rgba(197,5,58,0.8)"]
4266
4282
  ];
4267
- this.rampColor = this.webgl.setup(this.context, t);
4268
- const { program: e, aPositionBuffer: a } = this.webgl.bind(this.context, N.vertexSchema, N.fragmentSchema);
4269
- this.program = e, this.aPositionBuffer = a;
4283
+ this.rampColor = this.webgl.setup(this.context, a);
4284
+ const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, N.vertexSchema, N.fragmentSchema);
4285
+ this.program = e, this.aPositionBuffer = t;
4270
4286
  }
4271
4287
  },
4272
4288
  async handleDraw() {
4273
4289
  if (this.handleSetup(), this.etime !== this.factor.etime) {
4274
4290
  this.etime = this.factor.etime;
4275
- const t = await this.webgl.loadImg(this.factor.raw);
4276
- this.texture = this.webgl.createTexture(this.context, this.context.NEAREST, this.context.LINEAR, this.context.CLAMP_TO_EDGE, t);
4291
+ const a = await this.webgl.loadImg(this.factor.raw);
4292
+ this.texture = this.webgl.createTexture(this.context, this.context.NEAREST, this.context.LINEAR, this.context.CLAMP_TO_EDGE, a);
4277
4293
  }
4278
4294
  this.webgl.draw(this.viewport, this.context, this.program, this.texture, this.rampColor.texture, this.aPositionBuffer), this.viewport.toggle(!0);
4279
4295
  }
4280
4296
  }
4281
- }, ce = (t) => (G("data-v-dec867b8"), t = t(), H(), t), ni = { key: 0 }, li = /* @__PURE__ */ ce(() => /* @__PURE__ */ l("span", null, "mm", -1)), ci = /* @__PURE__ */ ce(() => /* @__PURE__ */ l("span", null, "1.5", -1)), hi = /* @__PURE__ */ ce(() => /* @__PURE__ */ l("span", null, "2", -1)), di = /* @__PURE__ */ ce(() => /* @__PURE__ */ l("span", null, "3", -1)), pi = /* @__PURE__ */ ce(() => /* @__PURE__ */ l("span", null, "7", -1)), mi = /* @__PURE__ */ ce(() => /* @__PURE__ */ l("span", null, "10", -1)), ui = /* @__PURE__ */ ce(() => /* @__PURE__ */ l("span", null, "20", -1)), yi = /* @__PURE__ */ ce(() => /* @__PURE__ */ l("span", null, "30", -1)), fi = [
4297
+ }, ce = (a) => (H("data-v-dec867b8"), a = a(), G(), a), ni = { key: 0 }, li = /* @__PURE__ */ ce(() => /* @__PURE__ */ l("span", null, "mm", -1)), ci = /* @__PURE__ */ ce(() => /* @__PURE__ */ l("span", null, "1.5", -1)), hi = /* @__PURE__ */ ce(() => /* @__PURE__ */ l("span", null, "2", -1)), di = /* @__PURE__ */ ce(() => /* @__PURE__ */ l("span", null, "3", -1)), pi = /* @__PURE__ */ ce(() => /* @__PURE__ */ l("span", null, "7", -1)), mi = /* @__PURE__ */ ce(() => /* @__PURE__ */ l("span", null, "10", -1)), ui = /* @__PURE__ */ ce(() => /* @__PURE__ */ l("span", null, "20", -1)), yi = /* @__PURE__ */ ce(() => /* @__PURE__ */ l("span", null, "30", -1)), fi = [
4282
4298
  li,
4283
4299
  ci,
4284
4300
  hi,
@@ -4288,12 +4304,12 @@ const si = {
4288
4304
  ui,
4289
4305
  yi
4290
4306
  ];
4291
- function gi(t, e, a, r, i, o) {
4307
+ function gi(a, e, t, r, i, o) {
4292
4308
  var n;
4293
- return (n = a.factor) != null && n.active ? (L(), x("div", ni, [
4309
+ return (n = t.factor) != null && n.active ? (L(), x("div", ni, [
4294
4310
  l("div", {
4295
4311
  class: "legend-bars flex-center",
4296
- style: F([{ position: "absolute" }, { right: i.right + "px", bottom: a.bottom }])
4312
+ style: F([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
4297
4313
  }, fi, 4)
4298
4314
  ])) : $("", !0);
4299
4315
  }
@@ -4333,15 +4349,15 @@ const vi = {
4333
4349
  watch: {
4334
4350
  "factor.version": {
4335
4351
  handler() {
4336
- var t;
4337
- (t = this.factor) != null && t.active ? this.handleRender() : this.handleClear();
4352
+ var a;
4353
+ (a = this.factor) != null && a.active ? this.handleRender() : this.handleClear();
4338
4354
  },
4339
4355
  deep: !0
4340
4356
  },
4341
4357
  toggleVersion: {
4342
4358
  handler() {
4343
- var t, e;
4344
- this.right = (((t = document.getElementsByClassName("available-layers-show")[0]) == null ? void 0 : t.clientWidth) || 0) + (((e = document.getElementsByClassName("fleet-list-container")[0]) == null ? void 0 : e.clientWidth) || 0) + 10;
4359
+ var a, e;
4360
+ this.right = (((a = document.getElementsByClassName("available-layers-show")[0]) == null ? void 0 : a.clientWidth) || 0) + (((e = document.getElementsByClassName("fleet-list-container")[0]) == null ? void 0 : e.clientWidth) || 0) + 10;
4345
4361
  },
4346
4362
  immediate: !0
4347
4363
  }
@@ -4353,9 +4369,9 @@ const vi = {
4353
4369
  this.handleRender();
4354
4370
  }, 500);
4355
4371
  else if (this.factor) {
4356
- const t = (/* @__PURE__ */ new Date()).valueOf();
4357
- let e = 0, a = 0;
4358
- this.handleDraw(), a = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("[visibility] add elapsed: ", a, ", total: ", e += a);
4372
+ const a = (/* @__PURE__ */ new Date()).valueOf();
4373
+ let e = 0, t = 0;
4374
+ this.handleDraw(), t = (/* @__PURE__ */ new Date()).valueOf() - (a + e), console.log("[visibility] add elapsed: ", t, ", total: ", e += t);
4359
4375
  }
4360
4376
  },
4361
4377
  handleClear() {
@@ -4364,7 +4380,7 @@ const vi = {
4364
4380
  handleSetup() {
4365
4381
  if (!this.context) {
4366
4382
  this.context = this.viewport.rampColorCanvas.getContext("webgl");
4367
- const t = [
4383
+ const a = [
4368
4384
  [0, "rgba(189,50,160,0.8)"],
4369
4385
  [8 / 255, "rgba(208,56,56,0.8)"],
4370
4386
  //0.8km
@@ -4378,21 +4394,21 @@ const vi = {
4378
4394
  //16km
4379
4395
  [1, "rgba(144,144,144,0)"]
4380
4396
  ];
4381
- this.rampColor = this.webgl.setup(this.context, t);
4382
- const { program: e, aPositionBuffer: a } = this.webgl.bind(this.context, N.vertexSchema, N.fragmentSchema);
4383
- this.program = e, this.aPositionBuffer = a;
4397
+ this.rampColor = this.webgl.setup(this.context, a);
4398
+ const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, N.vertexSchema, N.fragmentSchema);
4399
+ this.program = e, this.aPositionBuffer = t;
4384
4400
  }
4385
4401
  },
4386
4402
  async handleDraw() {
4387
4403
  if (this.handleSetup(), this.etime !== this.factor.etime) {
4388
4404
  this.etime = this.factor.etime;
4389
- const t = await this.webgl.loadImg(this.factor.raw);
4390
- this.texture = this.webgl.createTexture(this.context, this.context.NEAREST, this.context.LINEAR, this.context.CLAMP_TO_EDGE, t);
4405
+ const a = await this.webgl.loadImg(this.factor.raw);
4406
+ this.texture = this.webgl.createTexture(this.context, this.context.NEAREST, this.context.LINEAR, this.context.CLAMP_TO_EDGE, a);
4391
4407
  }
4392
4408
  this.webgl.draw(this.viewport, this.context, this.program, this.texture, this.rampColor.texture, this.aPositionBuffer), this.viewport.toggle(!0);
4393
4409
  }
4394
4410
  }
4395
- }, xe = (t) => (G("data-v-952dee5c"), t = t(), H(), t), _i = { key: 0 }, wi = /* @__PURE__ */ xe(() => /* @__PURE__ */ l("span", null, "nm", -1)), Li = /* @__PURE__ */ xe(() => /* @__PURE__ */ l("span", null, "0", -1)), xi = /* @__PURE__ */ xe(() => /* @__PURE__ */ l("span", null, "0.5", -1)), Ci = /* @__PURE__ */ xe(() => /* @__PURE__ */ l("span", null, "1.5", -1)), Si = /* @__PURE__ */ xe(() => /* @__PURE__ */ l("span", null, "3", -1)), ki = /* @__PURE__ */ xe(() => /* @__PURE__ */ l("span", null, "9", -1)), zi = [
4411
+ }, xe = (a) => (H("data-v-952dee5c"), a = a(), G(), a), _i = { key: 0 }, wi = /* @__PURE__ */ xe(() => /* @__PURE__ */ l("span", null, "nm", -1)), Li = /* @__PURE__ */ xe(() => /* @__PURE__ */ l("span", null, "0", -1)), xi = /* @__PURE__ */ xe(() => /* @__PURE__ */ l("span", null, "0.5", -1)), Ci = /* @__PURE__ */ xe(() => /* @__PURE__ */ l("span", null, "1.5", -1)), Si = /* @__PURE__ */ xe(() => /* @__PURE__ */ l("span", null, "3", -1)), ki = /* @__PURE__ */ xe(() => /* @__PURE__ */ l("span", null, "9", -1)), zi = [
4396
4412
  wi,
4397
4413
  Li,
4398
4414
  xi,
@@ -4400,12 +4416,12 @@ const vi = {
4400
4416
  Si,
4401
4417
  ki
4402
4418
  ];
4403
- function Pi(t, e, a, r, i, o) {
4419
+ function Pi(a, e, t, r, i, o) {
4404
4420
  var n;
4405
- return (n = a.factor) != null && n.active ? (L(), x("div", _i, [
4421
+ return (n = t.factor) != null && n.active ? (L(), x("div", _i, [
4406
4422
  l("div", {
4407
4423
  class: "legend-bars flex-center",
4408
- style: F([{ position: "absolute" }, { right: t.right + "px", bottom: a.bottom }])
4424
+ style: F([{ position: "absolute" }, { right: a.right + "px", bottom: t.bottom }])
4409
4425
  }, zi, 4)
4410
4426
  ])) : $("", !0);
4411
4427
  }
@@ -4446,15 +4462,15 @@ const Ei = {
4446
4462
  watch: {
4447
4463
  "factor.version": {
4448
4464
  handler() {
4449
- var t;
4450
- (t = this.factor) != null && t.active ? this.handleRender() : this.handleClear();
4465
+ var a;
4466
+ (a = this.factor) != null && a.active ? this.handleRender() : this.handleClear();
4451
4467
  },
4452
4468
  deep: !0
4453
4469
  },
4454
4470
  toggleVersion: {
4455
4471
  handler() {
4456
- var t, e;
4457
- this.right = (((t = document.getElementsByClassName("available-layers-show")[0]) == null ? void 0 : t.clientWidth) || 0) + (((e = document.getElementsByClassName("fleet-list-container")[0]) == null ? void 0 : e.clientWidth) || 0) + 10;
4472
+ var a, e;
4473
+ this.right = (((a = document.getElementsByClassName("available-layers-show")[0]) == null ? void 0 : a.clientWidth) || 0) + (((e = document.getElementsByClassName("fleet-list-container")[0]) == null ? void 0 : e.clientWidth) || 0) + 10;
4458
4474
  },
4459
4475
  immediate: !0
4460
4476
  }
@@ -4466,9 +4482,9 @@ const Ei = {
4466
4482
  this.handleRender();
4467
4483
  }, 500);
4468
4484
  else if (this.factor) {
4469
- const t = (/* @__PURE__ */ new Date()).valueOf();
4470
- let e = 0, a = 0;
4471
- this.handleDraw(), a = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("[water-temp] add elapsed: ", a, ", total: ", e += a);
4485
+ const a = (/* @__PURE__ */ new Date()).valueOf();
4486
+ let e = 0, t = 0;
4487
+ this.handleDraw(), t = (/* @__PURE__ */ new Date()).valueOf() - (a + e), console.log("[water-temp] add elapsed: ", t, ", total: ", e += t);
4472
4488
  }
4473
4489
  },
4474
4490
  handleClear() {
@@ -4477,7 +4493,7 @@ const Ei = {
4477
4493
  handleSetup() {
4478
4494
  if (!this.context) {
4479
4495
  this.context = this.viewport.rampColorCanvas.getContext("webgl");
4480
- const t = [
4496
+ const a = [
4481
4497
  [0, "rgba(95, 143, 197)"],
4482
4498
  // -10°C
4483
4499
  [46 / 255, "rgba(95, 143, 197)"],
@@ -4498,21 +4514,21 @@ const Ei = {
4498
4514
  [1, "rgb(138, 43, 10)"]
4499
4515
  //
4500
4516
  ];
4501
- this.rampColor = this.webgl.setup(this.context, t);
4502
- const { program: e, aPositionBuffer: a } = this.webgl.bind(this.context, N.vertexSchema, N.fragmentSchema);
4503
- this.program = e, this.aPositionBuffer = a;
4517
+ this.rampColor = this.webgl.setup(this.context, a);
4518
+ const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, N.vertexSchema, N.fragmentSchema);
4519
+ this.program = e, this.aPositionBuffer = t;
4504
4520
  }
4505
4521
  },
4506
4522
  async handleDraw() {
4507
4523
  if (this.handleSetup(), this.etime !== this.factor.etime) {
4508
4524
  this.etime = this.factor.etime;
4509
- const t = await this.webgl.loadImg(this.factor.raw);
4510
- this.texture = this.webgl.createTexture(this.context, this.context.NEAREST, this.context.LINEAR, this.context.CLAMP_TO_EDGE, t);
4525
+ const a = await this.webgl.loadImg(this.factor.raw);
4526
+ this.texture = this.webgl.createTexture(this.context, this.context.NEAREST, this.context.LINEAR, this.context.CLAMP_TO_EDGE, a);
4511
4527
  }
4512
4528
  this.webgl.draw(this.viewport, this.context, this.program, this.texture, this.rampColor.texture, this.aPositionBuffer), this.viewport.toggle(!0);
4513
4529
  }
4514
4530
  }
4515
- }, Ce = (t) => (G("data-v-67e5094b"), t = t(), H(), t), Ii = { key: 0 }, Ri = /* @__PURE__ */ Ce(() => /* @__PURE__ */ l("span", null, "°C", -1)), Di = /* @__PURE__ */ Ce(() => /* @__PURE__ */ l("span", null, "0", -1)), Ai = /* @__PURE__ */ Ce(() => /* @__PURE__ */ l("span", null, "10", -1)), Mi = /* @__PURE__ */ Ce(() => /* @__PURE__ */ l("span", null, "20", -1)), $i = /* @__PURE__ */ Ce(() => /* @__PURE__ */ l("span", null, "30", -1)), Bi = /* @__PURE__ */ Ce(() => /* @__PURE__ */ l("span", null, "40", -1)), Ni = [
4531
+ }, Ce = (a) => (H("data-v-67e5094b"), a = a(), G(), a), Ii = { key: 0 }, Ri = /* @__PURE__ */ Ce(() => /* @__PURE__ */ l("span", null, "°C", -1)), Di = /* @__PURE__ */ Ce(() => /* @__PURE__ */ l("span", null, "0", -1)), Ai = /* @__PURE__ */ Ce(() => /* @__PURE__ */ l("span", null, "10", -1)), Mi = /* @__PURE__ */ Ce(() => /* @__PURE__ */ l("span", null, "20", -1)), $i = /* @__PURE__ */ Ce(() => /* @__PURE__ */ l("span", null, "30", -1)), Bi = /* @__PURE__ */ Ce(() => /* @__PURE__ */ l("span", null, "40", -1)), Ni = [
4516
4532
  Ri,
4517
4533
  Di,
4518
4534
  Ai,
@@ -4520,12 +4536,12 @@ const Ei = {
4520
4536
  $i,
4521
4537
  Bi
4522
4538
  ];
4523
- function Wi(t, e, a, r, i, o) {
4539
+ function Wi(a, e, t, r, i, o) {
4524
4540
  var n;
4525
- return (n = a.factor) != null && n.active ? (L(), x("div", Ii, [
4541
+ return (n = t.factor) != null && n.active ? (L(), x("div", Ii, [
4526
4542
  l("div", {
4527
4543
  class: "legend-bars flex-center",
4528
- style: F([{ position: "absolute" }, { right: i.right + "px", bottom: a.bottom }])
4544
+ style: F([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
4529
4545
  }, Ni, 4)
4530
4546
  ])) : $("", !0);
4531
4547
  }
@@ -4566,15 +4582,15 @@ const ji = {
4566
4582
  watch: {
4567
4583
  "factor.version": {
4568
4584
  handler() {
4569
- var t;
4570
- (t = this.factor) != null && t.active ? this.handleRender() : this.handleClear();
4585
+ var a;
4586
+ (a = this.factor) != null && a.active ? this.handleRender() : this.handleClear();
4571
4587
  },
4572
4588
  deep: !0
4573
4589
  },
4574
4590
  toggleVersion: {
4575
4591
  handler() {
4576
- var t, e;
4577
- this.right = (((t = document.getElementsByClassName("available-layers-show")[0]) == null ? void 0 : t.clientWidth) || 0) + (((e = document.getElementsByClassName("fleet-list-container")[0]) == null ? void 0 : e.clientWidth) || 0) + 10;
4592
+ var a, e;
4593
+ this.right = (((a = document.getElementsByClassName("available-layers-show")[0]) == null ? void 0 : a.clientWidth) || 0) + (((e = document.getElementsByClassName("fleet-list-container")[0]) == null ? void 0 : e.clientWidth) || 0) + 10;
4578
4594
  },
4579
4595
  immediate: !0
4580
4596
  }
@@ -4586,9 +4602,9 @@ const ji = {
4586
4602
  this.handleRender();
4587
4603
  }, 500);
4588
4604
  else if (this.factor) {
4589
- const t = (/* @__PURE__ */ new Date()).valueOf();
4590
- let e = 0, a = 0;
4591
- this.handleDraw(), a = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("[water-temp] add elapsed: ", a, ", total: ", e += a);
4605
+ const a = (/* @__PURE__ */ new Date()).valueOf();
4606
+ let e = 0, t = 0;
4607
+ this.handleDraw(), t = (/* @__PURE__ */ new Date()).valueOf() - (a + e), console.log("[water-temp] add elapsed: ", t, ", total: ", e += t);
4592
4608
  }
4593
4609
  },
4594
4610
  handleClear() {
@@ -4597,7 +4613,7 @@ const ji = {
4597
4613
  handleSetup() {
4598
4614
  if (!this.context) {
4599
4615
  this.context = this.viewport.rampColorCanvas.getContext("webgl");
4600
- const t = [
4616
+ const a = [
4601
4617
  [0, "rgb(149, 137, 211)"],
4602
4618
  [100 / 255, "rgb(149, 137, 211)"],
4603
4619
  // -20°C
@@ -4621,36 +4637,36 @@ const ji = {
4621
4637
  // 40
4622
4638
  [1, "rgb(138, 43, 10)"]
4623
4639
  ];
4624
- this.rampColor = this.webgl.setup(this.context, t);
4625
- const { program: e, aPositionBuffer: a } = this.webgl.bind(this.context, N.vertexSchema, N.fragmentSchema);
4626
- this.program = e, this.aPositionBuffer = a;
4640
+ this.rampColor = this.webgl.setup(this.context, a);
4641
+ const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, N.vertexSchema, N.fragmentSchema);
4642
+ this.program = e, this.aPositionBuffer = t;
4627
4643
  }
4628
4644
  },
4629
4645
  async handleDraw() {
4630
4646
  if (this.handleSetup(), this.etime !== this.factor.etime) {
4631
4647
  this.etime = this.factor.etime;
4632
- const t = await this.webgl.loadImg(this.factor.raw);
4633
- this.texture = this.webgl.createTexture(this.context, this.context.NEAREST, this.context.LINEAR, this.context.CLAMP_TO_EDGE, t);
4648
+ const a = await this.webgl.loadImg(this.factor.raw);
4649
+ this.texture = this.webgl.createTexture(this.context, this.context.NEAREST, this.context.LINEAR, this.context.CLAMP_TO_EDGE, a);
4634
4650
  }
4635
4651
  this.webgl.draw(this.viewport, this.context, this.program, this.texture, this.rampColor.texture, this.aPositionBuffer), this.viewport.toggle(!0);
4636
4652
  }
4637
4653
  }
4638
- }, he = (t) => (G("data-v-389ea886"), t = t(), H(), t), Fi = { key: 0 }, Vi = /* @__PURE__ */ he(() => /* @__PURE__ */ l("span", null, "°C", -1)), Ui = /* @__PURE__ */ he(() => /* @__PURE__ */ l("span", null, "-20", -1)), Gi = /* @__PURE__ */ he(() => /* @__PURE__ */ l("span", null, "-10", -1)), Hi = /* @__PURE__ */ he(() => /* @__PURE__ */ l("span", null, "0", -1)), Zi = /* @__PURE__ */ he(() => /* @__PURE__ */ l("span", null, "10", -1)), Ji = /* @__PURE__ */ he(() => /* @__PURE__ */ l("span", null, "20", -1)), Xi = /* @__PURE__ */ he(() => /* @__PURE__ */ l("span", null, "30", -1)), qi = /* @__PURE__ */ he(() => /* @__PURE__ */ l("span", null, "40", -1)), Yi = [
4654
+ }, he = (a) => (H("data-v-389ea886"), a = a(), G(), a), Fi = { key: 0 }, Vi = /* @__PURE__ */ he(() => /* @__PURE__ */ l("span", null, "°C", -1)), Ui = /* @__PURE__ */ he(() => /* @__PURE__ */ l("span", null, "-20", -1)), Zi = /* @__PURE__ */ he(() => /* @__PURE__ */ l("span", null, "-10", -1)), Hi = /* @__PURE__ */ he(() => /* @__PURE__ */ l("span", null, "0", -1)), Gi = /* @__PURE__ */ he(() => /* @__PURE__ */ l("span", null, "10", -1)), Ji = /* @__PURE__ */ he(() => /* @__PURE__ */ l("span", null, "20", -1)), Xi = /* @__PURE__ */ he(() => /* @__PURE__ */ l("span", null, "30", -1)), qi = /* @__PURE__ */ he(() => /* @__PURE__ */ l("span", null, "40", -1)), Yi = [
4639
4655
  Vi,
4640
4656
  Ui,
4641
- Gi,
4642
- Hi,
4643
4657
  Zi,
4658
+ Hi,
4659
+ Gi,
4644
4660
  Ji,
4645
4661
  Xi,
4646
4662
  qi
4647
4663
  ];
4648
- function Qi(t, e, a, r, i, o) {
4664
+ function Qi(a, e, t, r, i, o) {
4649
4665
  var n;
4650
- return (n = a.factor) != null && n.active ? (L(), x("div", Fi, [
4666
+ return (n = t.factor) != null && n.active ? (L(), x("div", Fi, [
4651
4667
  l("div", {
4652
4668
  class: "legend-bars flex-center",
4653
- style: F([{ position: "absolute" }, { right: i.right + "px", bottom: a.bottom }])
4669
+ style: F([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
4654
4670
  }, Yi, 4)
4655
4671
  ])) : $("", !0);
4656
4672
  }
@@ -4691,15 +4707,15 @@ const er = {
4691
4707
  watch: {
4692
4708
  "factor.version": {
4693
4709
  handler() {
4694
- var t;
4695
- (t = this.factor) != null && t.active ? this.handleRender() : this.handleClear();
4710
+ var a;
4711
+ (a = this.factor) != null && a.active ? this.handleRender() : this.handleClear();
4696
4712
  },
4697
4713
  deep: !0
4698
4714
  },
4699
4715
  toggleVersion: {
4700
4716
  handler() {
4701
- var t, e;
4702
- this.right = (((t = document.getElementsByClassName("available-layers-show")[0]) == null ? void 0 : t.clientWidth) || 0) + (((e = document.getElementsByClassName("fleet-list-container")[0]) == null ? void 0 : e.clientWidth) || 0) + 10;
4717
+ var a, e;
4718
+ this.right = (((a = document.getElementsByClassName("available-layers-show")[0]) == null ? void 0 : a.clientWidth) || 0) + (((e = document.getElementsByClassName("fleet-list-container")[0]) == null ? void 0 : e.clientWidth) || 0) + 10;
4703
4719
  },
4704
4720
  immediate: !0
4705
4721
  }
@@ -4711,9 +4727,9 @@ const er = {
4711
4727
  this.handleRender();
4712
4728
  }, 500);
4713
4729
  else if (this.factor) {
4714
- const t = (/* @__PURE__ */ new Date()).valueOf();
4715
- let e = 0, a = 0;
4716
- this.handleDraw(), a = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("[water-temp] add elapsed: ", a, ", total: ", e += a);
4730
+ const a = (/* @__PURE__ */ new Date()).valueOf();
4731
+ let e = 0, t = 0;
4732
+ this.handleDraw(), t = (/* @__PURE__ */ new Date()).valueOf() - (a + e), console.log("[water-temp] add elapsed: ", t, ", total: ", e += t);
4717
4733
  }
4718
4734
  },
4719
4735
  handleClear() {
@@ -4722,7 +4738,7 @@ const er = {
4722
4738
  handleSetup() {
4723
4739
  if (!this.context) {
4724
4740
  this.context = this.viewport.rampColorCanvas.getContext("webgl");
4725
- const t = [
4741
+ const a = [
4726
4742
  [0, "rgba(76, 165, 228, 0)"],
4727
4743
  [50 / 255, "rgba(76, 165, 228, 0)"],
4728
4744
  // 0m
@@ -4737,21 +4753,21 @@ const er = {
4737
4753
  [1, "rgb(180, 209, 216)"]
4738
4754
  // 2m
4739
4755
  ];
4740
- this.rampColor = this.webgl.setup(this.context, t);
4741
- const { program: e, aPositionBuffer: a } = this.webgl.bind(this.context, N.vertexSchema, N.fragmentSchema);
4742
- this.program = e, this.aPositionBuffer = a;
4756
+ this.rampColor = this.webgl.setup(this.context, a);
4757
+ const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, N.vertexSchema, N.fragmentSchema);
4758
+ this.program = e, this.aPositionBuffer = t;
4743
4759
  }
4744
4760
  },
4745
4761
  async handleDraw() {
4746
4762
  if (this.handleSetup(), this.etime !== this.factor.etime) {
4747
4763
  this.etime = this.factor.etime;
4748
- const t = await this.webgl.loadImg(this.factor.raw);
4749
- this.texture = this.webgl.createTexture(this.context, this.context.NEAREST, this.context.LINEAR, this.context.CLAMP_TO_EDGE, t);
4764
+ const a = await this.webgl.loadImg(this.factor.raw);
4765
+ this.texture = this.webgl.createTexture(this.context, this.context.NEAREST, this.context.LINEAR, this.context.CLAMP_TO_EDGE, a);
4750
4766
  }
4751
4767
  this.webgl.draw(this.viewport, this.context, this.program, this.texture, this.rampColor.texture, this.aPositionBuffer), this.viewport.toggle(!0);
4752
4768
  }
4753
4769
  }
4754
- }, Se = (t) => (G("data-v-db805141"), t = t(), H(), t), tr = { key: 0 }, ar = /* @__PURE__ */ Se(() => /* @__PURE__ */ l("span", null, "m", -1)), ir = /* @__PURE__ */ Se(() => /* @__PURE__ */ l("span", null, "0", -1)), rr = /* @__PURE__ */ Se(() => /* @__PURE__ */ l("span", null, "0.5", -1)), or = /* @__PURE__ */ Se(() => /* @__PURE__ */ l("span", null, "1", -1)), sr = /* @__PURE__ */ Se(() => /* @__PURE__ */ l("span", null, "1.5", -1)), nr = /* @__PURE__ */ Se(() => /* @__PURE__ */ l("span", null, "2", -1)), lr = [
4770
+ }, Se = (a) => (H("data-v-db805141"), a = a(), G(), a), tr = { key: 0 }, ar = /* @__PURE__ */ Se(() => /* @__PURE__ */ l("span", null, "m", -1)), ir = /* @__PURE__ */ Se(() => /* @__PURE__ */ l("span", null, "0", -1)), rr = /* @__PURE__ */ Se(() => /* @__PURE__ */ l("span", null, "0.5", -1)), or = /* @__PURE__ */ Se(() => /* @__PURE__ */ l("span", null, "1", -1)), sr = /* @__PURE__ */ Se(() => /* @__PURE__ */ l("span", null, "1.5", -1)), nr = /* @__PURE__ */ Se(() => /* @__PURE__ */ l("span", null, "2", -1)), lr = [
4755
4771
  ar,
4756
4772
  ir,
4757
4773
  rr,
@@ -4759,12 +4775,12 @@ const er = {
4759
4775
  sr,
4760
4776
  nr
4761
4777
  ];
4762
- function cr(t, e, a, r, i, o) {
4778
+ function cr(a, e, t, r, i, o) {
4763
4779
  var n;
4764
- return (n = a.factor) != null && n.active ? (L(), x("div", tr, [
4780
+ return (n = t.factor) != null && n.active ? (L(), x("div", tr, [
4765
4781
  l("div", {
4766
4782
  class: "legend-bars flex-center",
4767
- style: F([{ position: "absolute" }, { right: i.right + "px", bottom: a.bottom }])
4783
+ style: F([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
4768
4784
  }, lr, 4)
4769
4785
  ])) : $("", !0);
4770
4786
  }
@@ -4810,56 +4826,56 @@ const dr = {
4810
4826
  },
4811
4827
  computed: {
4812
4828
  computeTime() {
4813
- return function(t) {
4814
- return t ? `${te(t).utc().format("MMM-DD,HHmm[Z]")}` : "-";
4829
+ return function(a) {
4830
+ return a ? `${Z(a).utc().format("MMM-DD,HHmm[Z]")}` : "-";
4815
4831
  };
4816
4832
  },
4817
4833
  computeLat() {
4818
- return function(t, e = 4) {
4819
- return j.lat2pretty(t, e).pretty;
4834
+ return function(a, e = 4) {
4835
+ return j.lat2pretty(a, e).pretty;
4820
4836
  };
4821
4837
  },
4822
4838
  computeLng() {
4823
- return function(t, e = 4) {
4824
- return j.lng2pretty(t, e).pretty;
4839
+ return function(a, e = 4) {
4840
+ return j.lng2pretty(a, e).pretty;
4825
4841
  };
4826
4842
  },
4827
4843
  roundPrecision() {
4828
- return function(t, e = 4) {
4829
- return isNaN(t) ? "-" : j.roundPrecision(t, e);
4844
+ return function(a, e = 4) {
4845
+ return isNaN(a) ? "-" : j.roundPrecision(a, e);
4830
4846
  };
4831
4847
  }
4832
4848
  },
4833
4849
  methods: {
4834
4850
  handleBind() {
4835
- var t, e;
4836
- this.show ? (t = this.map) == null || t.on("click", this.handleClick) : ((e = this.map) == null || e.off("click", this.handleClick), this.showMeteo = !1);
4851
+ var a, e;
4852
+ this.show ? (a = this.map) == null || a.on("click", this.handleClick) : ((e = this.map) == null || e.off("click", this.handleClick), this.showMeteo = !1);
4837
4853
  },
4838
- handleClick(t) {
4839
- t.originalEvent.stopPropagation();
4840
- const e = t.originalEvent.target.className;
4841
- e.indexOf("close") > -1 ? this.showMeteo = !1 : e === "more" ? this.$emit("more", this.meteo) : this.$emit("point", t.lngLat);
4854
+ handleClick(a) {
4855
+ a.originalEvent.stopPropagation();
4856
+ const e = a.originalEvent.target.className;
4857
+ e.indexOf("close") > -1 ? this.showMeteo = !1 : e === "more" ? this.$emit("more", this.meteo) : this.$emit("point", a.lngLat);
4842
4858
  },
4843
4859
  handleRender() {
4844
- var t;
4860
+ var a;
4845
4861
  if (this.meteo) {
4846
4862
  const e = document.getElementById("point-meteo");
4847
- this.meteoMarker ? (t = this.meteoMarker) == null || t.setLngLat([this.meteo.lng, this.meteo.lat]) : this.meteoMarker = new ne.Marker(e).setLngLat([this.meteo.lng, this.meteo.lat]).addTo(this.map);
4863
+ this.meteoMarker ? (a = this.meteoMarker) == null || a.setLngLat([this.meteo.lng, this.meteo.lat]) : this.meteoMarker = new ne.Marker(e).setLngLat([this.meteo.lng, this.meteo.lat]).addTo(this.map);
4848
4864
  }
4849
4865
  }
4850
4866
  }
4851
- }, X = (t) => (G("data-v-ef7fa87d"), t = t(), H(), t), pr = {
4867
+ }, q = (a) => (H("data-v-ef7fa87d"), a = a(), G(), a), pr = {
4852
4868
  id: "point-meteo",
4853
4869
  class: "point-meteo"
4854
- }, mr = { class: "meteo-box" }, ur = { class: "header-box" }, yr = { class: "main" }, fr = { class: "sub" }, gr = { class: "main-box" }, br = { class: "flex-space" }, vr = /* @__PURE__ */ X(() => /* @__PURE__ */ l("label", null, "Wind", -1)), _r = { class: "flex-space" }, wr = /* @__PURE__ */ X(() => /* @__PURE__ */ l("label", null, "Wind.Wave", -1)), Lr = { class: "flex-space" }, xr = /* @__PURE__ */ X(() => /* @__PURE__ */ l("label", null, "Swell", -1)), Cr = { class: "flex-space" }, Sr = /* @__PURE__ */ X(() => /* @__PURE__ */ l("label", null, "Sig.Wave", -1)), kr = { class: "flex-space" }, zr = /* @__PURE__ */ X(() => /* @__PURE__ */ l("label", null, "Current", -1)), Pr = { class: "flex-space" }, Tr = /* @__PURE__ */ X(() => /* @__PURE__ */ l("label", null, "Precip", -1)), Er = { class: "flex-space" }, Ir = /* @__PURE__ */ X(() => /* @__PURE__ */ l("label", null, "Visibility", -1)), Rr = { class: "flex-space" }, Dr = /* @__PURE__ */ X(() => /* @__PURE__ */ l("label", null, "Temp", -1)), Ar = { class: "flex-space" }, Mr = /* @__PURE__ */ X(() => /* @__PURE__ */ l("label", null, "Water Temp", -1)), $r = {
4870
+ }, mr = { class: "meteo-box" }, ur = { class: "header-box" }, yr = { class: "main" }, fr = { class: "sub" }, gr = { class: "main-box" }, br = { class: "flex-space" }, vr = /* @__PURE__ */ q(() => /* @__PURE__ */ l("label", null, "Wind", -1)), _r = { class: "flex-space" }, wr = /* @__PURE__ */ q(() => /* @__PURE__ */ l("label", null, "Wind.Wave", -1)), Lr = { class: "flex-space" }, xr = /* @__PURE__ */ q(() => /* @__PURE__ */ l("label", null, "Swell", -1)), Cr = { class: "flex-space" }, Sr = /* @__PURE__ */ q(() => /* @__PURE__ */ l("label", null, "Sig.Wave", -1)), kr = { class: "flex-space" }, zr = /* @__PURE__ */ q(() => /* @__PURE__ */ l("label", null, "Current", -1)), Pr = { class: "flex-space" }, Tr = /* @__PURE__ */ q(() => /* @__PURE__ */ l("label", null, "Precip", -1)), Er = { class: "flex-space" }, Ir = /* @__PURE__ */ q(() => /* @__PURE__ */ l("label", null, "Visibility", -1)), Rr = { class: "flex-space" }, Dr = /* @__PURE__ */ q(() => /* @__PURE__ */ l("label", null, "Temp", -1)), Ar = { class: "flex-space" }, Mr = /* @__PURE__ */ q(() => /* @__PURE__ */ l("label", null, "Water Temp", -1)), $r = {
4855
4871
  key: 0,
4856
4872
  class: "flex-space",
4857
4873
  style: { "justify-content": "flex-end" }
4858
- }, Br = /* @__PURE__ */ X(() => /* @__PURE__ */ l("span", { class: "more" }, "More >>", -1)), Nr = [
4874
+ }, Br = /* @__PURE__ */ q(() => /* @__PURE__ */ l("span", { class: "more" }, "More >>", -1)), Nr = [
4859
4875
  Br
4860
4876
  ];
4861
- function Wr(t, e, a, r, i, o) {
4862
- var n, s, c, h, d, p, f, m, b, y, u, v, g, w, k, _, D, A, B, W, O, Z, de, pe, me, ue, ye, fe, ge, ae, J, q, be, Y, E, V, ve, Q, _e, ie, re, oe, ke, ze, Pe, Te, Ee;
4877
+ function Wr(a, e, t, r, i, o) {
4878
+ var n, s, c, h, d, p, f, m, b, y, u, v, g, w, k, _, D, A, B, W, O, J, de, pe, me, ue, ye, fe, ge, ae, X, Y, be, Q, E, V, ve, K, _e, ie, re, oe, ke, ze, Pe, Te, Ee;
4863
4879
  return Me((L(), x("div", pr, [
4864
4880
  l("div", mr, [
4865
4881
  l("div", ur, [
@@ -4867,48 +4883,48 @@ function Wr(t, e, a, r, i, o) {
4867
4883
  class: "iconfont close",
4868
4884
  onClick: e[0] || (e[0] = (Ne) => i.showMeteo = !1)
4869
4885
  }, ""),
4870
- l("div", yr, S(o.computeLat((n = a.meteo) == null ? void 0 : n.lat)) + "," + S(o.computeLng((s = a.meteo) == null ? void 0 : s.lng)), 1),
4871
- l("div", fr, S(o.computeTime((c = a.meteo) == null ? void 0 : c.utc)), 1)
4886
+ l("div", yr, S(o.computeLat((n = t.meteo) == null ? void 0 : n.lat)) + "," + S(o.computeLng((s = t.meteo) == null ? void 0 : s.lng)), 1),
4887
+ l("div", fr, S(o.computeTime((c = t.meteo) == null ? void 0 : c.utc)), 1)
4872
4888
  ]),
4873
4889
  l("div", gr, [
4874
4890
  l("div", br, [
4875
4891
  vr,
4876
- l("span", null, S(((d = (h = a.meteo) == null ? void 0 : h.wind) == null ? void 0 : d.direction) || "-") + "/" + S(o.roundPrecision((f = (p = a.meteo) == null ? void 0 : p.wind) == null ? void 0 : f.kts, 1)) + "[kts]/" + S((b = (m = a.meteo) == null ? void 0 : m.wind) == null ? void 0 : b.scale) + "[BF]/" + S(o.roundPrecision((u = (y = a.meteo) == null ? void 0 : y.gusts) == null ? void 0 : u.kts, 1)) + "[kts]", 1)
4892
+ l("span", null, S(((d = (h = t.meteo) == null ? void 0 : h.wind) == null ? void 0 : d.direction) || "-") + "/" + S(o.roundPrecision((f = (p = t.meteo) == null ? void 0 : p.wind) == null ? void 0 : f.kts, 1)) + "[kts]/" + S((b = (m = t.meteo) == null ? void 0 : m.wind) == null ? void 0 : b.scale) + "[BF]/" + S(o.roundPrecision((u = (y = t.meteo) == null ? void 0 : y.gusts) == null ? void 0 : u.kts, 1)) + "[kts]", 1)
4877
4893
  ]),
4878
4894
  l("div", _r, [
4879
4895
  wr,
4880
- l("span", null, S(((w = (g = (v = a.meteo) == null ? void 0 : v.wave) == null ? void 0 : g.wd) == null ? void 0 : w.direction) || "-") + "/" + S(o.roundPrecision((D = (_ = (k = a.meteo) == null ? void 0 : k.wave) == null ? void 0 : _.wd) == null ? void 0 : D.height, 1)) + "[m]/" + S(o.roundPrecision((W = (B = (A = a.meteo) == null ? void 0 : A.wave) == null ? void 0 : B.wd) == null ? void 0 : W.period, 1)) + "[s]", 1)
4896
+ l("span", null, S(((w = (g = (v = t.meteo) == null ? void 0 : v.wave) == null ? void 0 : g.wd) == null ? void 0 : w.direction) || "-") + "/" + S(o.roundPrecision((D = (_ = (k = t.meteo) == null ? void 0 : k.wave) == null ? void 0 : _.wd) == null ? void 0 : D.height, 1)) + "[m]/" + S(o.roundPrecision((W = (B = (A = t.meteo) == null ? void 0 : A.wave) == null ? void 0 : B.wd) == null ? void 0 : W.period, 1)) + "[s]", 1)
4881
4897
  ]),
4882
4898
  l("div", Lr, [
4883
4899
  xr,
4884
- l("span", null, S(((de = (Z = (O = a.meteo) == null ? void 0 : O.wave) == null ? void 0 : Z.swell) == null ? void 0 : de.direction) || "-") + "/" + S(o.roundPrecision((ue = (me = (pe = a.meteo) == null ? void 0 : pe.wave) == null ? void 0 : me.swell) == null ? void 0 : ue.height, 1)) + "[m]/" + S(o.roundPrecision((ge = (fe = (ye = a.meteo) == null ? void 0 : ye.wave) == null ? void 0 : fe.swell) == null ? void 0 : ge.period, 1)) + "[s]", 1)
4900
+ l("span", null, S(((de = (J = (O = t.meteo) == null ? void 0 : O.wave) == null ? void 0 : J.swell) == null ? void 0 : de.direction) || "-") + "/" + S(o.roundPrecision((ue = (me = (pe = t.meteo) == null ? void 0 : pe.wave) == null ? void 0 : me.swell) == null ? void 0 : ue.height, 1)) + "[m]/" + S(o.roundPrecision((ge = (fe = (ye = t.meteo) == null ? void 0 : ye.wave) == null ? void 0 : fe.swell) == null ? void 0 : ge.period, 1)) + "[s]", 1)
4885
4901
  ]),
4886
4902
  l("div", Cr, [
4887
4903
  Sr,
4888
- l("span", null, S(((q = (J = (ae = a.meteo) == null ? void 0 : ae.wave) == null ? void 0 : J.sig) == null ? void 0 : q.direction) || "-") + "/" + S(o.roundPrecision((E = (Y = (be = a.meteo) == null ? void 0 : be.wave) == null ? void 0 : Y.sig) == null ? void 0 : E.height, 1)) + "[m]/" + S(o.roundPrecision((Q = (ve = (V = a.meteo) == null ? void 0 : V.wave) == null ? void 0 : ve.sig) == null ? void 0 : Q.period, 1)) + "[s]", 1)
4904
+ l("span", null, S(((Y = (X = (ae = t.meteo) == null ? void 0 : ae.wave) == null ? void 0 : X.sig) == null ? void 0 : Y.direction) || "-") + "/" + S(o.roundPrecision((E = (Q = (be = t.meteo) == null ? void 0 : be.wave) == null ? void 0 : Q.sig) == null ? void 0 : E.height, 1)) + "[m]/" + S(o.roundPrecision((K = (ve = (V = t.meteo) == null ? void 0 : V.wave) == null ? void 0 : ve.sig) == null ? void 0 : K.period, 1)) + "[s]", 1)
4889
4905
  ]),
4890
4906
  l("div", kr, [
4891
4907
  zr,
4892
- l("span", null, S(((ie = (_e = a.meteo) == null ? void 0 : _e.current) == null ? void 0 : ie.direction) || "-") + "/" + S(o.roundPrecision((oe = (re = a.meteo) == null ? void 0 : re.current) == null ? void 0 : oe.kts, 2)) + "[kts]", 1)
4908
+ l("span", null, S(((ie = (_e = t.meteo) == null ? void 0 : _e.current) == null ? void 0 : ie.direction) || "-") + "/" + S(o.roundPrecision((oe = (re = t.meteo) == null ? void 0 : re.current) == null ? void 0 : oe.kts, 2)) + "[kts]", 1)
4893
4909
  ]),
4894
4910
  l("div", Pr, [
4895
4911
  Tr,
4896
- l("span", null, S(o.roundPrecision((ze = (ke = a.meteo) == null ? void 0 : ke.precip) == null ? void 0 : ze.inter6h, 2)) + "[mm]", 1)
4912
+ l("span", null, S(o.roundPrecision((ze = (ke = t.meteo) == null ? void 0 : ke.precip) == null ? void 0 : ze.inter6h, 2)) + "[mm]", 1)
4897
4913
  ]),
4898
4914
  l("div", Er, [
4899
4915
  Ir,
4900
- l("span", null, S(o.roundPrecision(((Pe = a.meteo) == null ? void 0 : Pe.visibility) / 1852, 0)) + "[nm]", 1)
4916
+ l("span", null, S(o.roundPrecision(((Pe = t.meteo) == null ? void 0 : Pe.visibility) / 1852, 0)) + "[nm]", 1)
4901
4917
  ]),
4902
4918
  l("div", Rr, [
4903
4919
  Dr,
4904
- l("span", null, S(o.roundPrecision((Te = a.meteo) == null ? void 0 : Te.temp, 0)) + "[°C]", 1)
4920
+ l("span", null, S(o.roundPrecision((Te = t.meteo) == null ? void 0 : Te.temp, 0)) + "[°C]", 1)
4905
4921
  ]),
4906
4922
  l("div", Ar, [
4907
4923
  Mr,
4908
- l("span", null, S(o.roundPrecision((Ee = a.meteo) == null ? void 0 : Ee.waterTemp, 2)) + "[°C]", 1)
4924
+ l("span", null, S(o.roundPrecision((Ee = t.meteo) == null ? void 0 : Ee.waterTemp, 2)) + "[°C]", 1)
4909
4925
  ])
4910
4926
  ]),
4911
- t.$attrs.permission & i.helper.LEVEL.Prime ? (L(), x("div", $r, Nr)) : $("", !0)
4927
+ a.$attrs.permission & i.helper.LEVEL.Prime ? (L(), x("div", $r, Nr)) : $("", !0)
4912
4928
  ])
4913
4929
  ], 512)), [
4914
4930
  [$e, i.showMeteo]
@@ -5004,7 +5020,7 @@ const Or = /* @__PURE__ */ T(dr, [["render", Wr], ["__scopeId", "data-v-ef7fa87d
5004
5020
  }
5005
5021
  }
5006
5022
  };
5007
- function Fr(t, e, a, r, i, o) {
5023
+ function Fr(a, e, t, r, i, o) {
5008
5024
  return L(), x("div");
5009
5025
  }
5010
5026
  const Vr = /* @__PURE__ */ T(jr, [["render", Fr]]), Ur = {
@@ -5127,10 +5143,10 @@ const Vr = /* @__PURE__ */ T(jr, [["render", Fr]]), Ur = {
5127
5143
  }
5128
5144
  }
5129
5145
  };
5130
- function Gr(t, e, a, r, i, o) {
5146
+ function Zr(a, e, t, r, i, o) {
5131
5147
  return L(), x("div");
5132
5148
  }
5133
- const Hr = /* @__PURE__ */ T(Ur, [["render", Gr]]), Zr = {
5149
+ const Hr = /* @__PURE__ */ T(Ur, [["render", Zr]]), Gr = {
5134
5150
  name: "IdmEcaZone",
5135
5151
  props: {
5136
5152
  map: {
@@ -5159,8 +5175,8 @@ const Hr = /* @__PURE__ */ T(Ur, [["render", Gr]]), Zr = {
5159
5175
  },
5160
5176
  methods: {
5161
5177
  handleRender() {
5162
- var t;
5163
- this.map ? (this.handleClear(), this.zone && (this.map.getSource(this.source) ? (t = this.map) == null || t.getSource(this.source).setData(this.zone) : (this.map.addSource(this.source, {
5178
+ var a;
5179
+ this.map ? (this.handleClear(), this.zone && (this.map.getSource(this.source) ? (a = this.map) == null || a.getSource(this.source).setData(this.zone) : (this.map.addSource(this.source, {
5164
5180
  type: "geojson",
5165
5181
  data: this.zone
5166
5182
  }), this.map.addLayer({
@@ -5218,10 +5234,10 @@ const Hr = /* @__PURE__ */ T(Ur, [["render", Gr]]), Zr = {
5218
5234
  }
5219
5235
  }
5220
5236
  };
5221
- function Jr(t, e, a, r, i, o) {
5237
+ function Jr(a, e, t, r, i, o) {
5222
5238
  return L(), x("div");
5223
5239
  }
5224
- const Xr = /* @__PURE__ */ T(Zr, [["render", Jr]]);
5240
+ const Xr = /* @__PURE__ */ T(Gr, [["render", Jr]]);
5225
5241
  const qr = {
5226
5242
  name: "IdmAlertZone",
5227
5243
  props: {
@@ -5250,23 +5266,23 @@ const qr = {
5250
5266
  watch: {
5251
5267
  zone: {
5252
5268
  handler() {
5253
- var t, e;
5254
- this.zone ? (this.handleRender(), (t = this.map) == null || t.on("click", [this.polygonLabelLayer, this.lineLabelLayer, this.pointLayer], this.handleClick)) : (this.handleClear(), (e = this.map) == null || e.off("click", [this.polygonLabelLayer, this.lineLabelLayer, this.pointLayer], this.handleClick));
5269
+ var a, e;
5270
+ this.zone ? (this.handleRender(), (a = this.map) == null || a.on("click", [this.polygonLabelLayer, this.lineLabelLayer, this.pointLayer], this.handleClick)) : (this.handleClear(), (e = this.map) == null || e.off("click", [this.polygonLabelLayer, this.lineLabelLayer, this.pointLayer], this.handleClick));
5255
5271
  }
5256
5272
  }
5257
5273
  },
5258
5274
  methods: {
5259
- handleClick(t) {
5275
+ handleClick(a) {
5260
5276
  var r;
5261
- const e = t.features[0], a = (r = this.zone) == null ? void 0 : r.features.filter((i) => {
5277
+ const e = a.features[0], t = (r = this.zone) == null ? void 0 : r.features.filter((i) => {
5262
5278
  var o;
5263
5279
  return i.properties.id === ((o = e == null ? void 0 : e.properties) == null ? void 0 : o.id);
5264
5280
  })[0];
5265
- a && (this.showZone = !0, this.form = { ...a.properties });
5281
+ t && (this.showZone = !0, this.form = { ...t.properties });
5266
5282
  },
5267
5283
  handleRender() {
5268
- var t;
5269
- this.map ? (this.handleClear(), this.zone && (this.map.getSource(this.source) ? (t = this.map) == null || t.getSource(this.source).setData(this.zone) : (this.map.addSource(this.source, {
5284
+ var a;
5285
+ this.map ? (this.handleClear(), this.zone && (this.map.getSource(this.source) ? (a = this.map) == null || a.getSource(this.source).setData(this.zone) : (this.map.addSource(this.source, {
5270
5286
  type: "geojson",
5271
5287
  data: this.zone
5272
5288
  }), this.map.addLayer({
@@ -5349,7 +5365,7 @@ const qr = {
5349
5365
  }
5350
5366
  }
5351
5367
  }, Yr = { id: "zone-info" }, Qr = ["innerHTML"];
5352
- function Kr(t, e, a, r, i, o) {
5368
+ function Kr(a, e, t, r, i, o) {
5353
5369
  var n;
5354
5370
  return Me((L(), x("div", Yr, [
5355
5371
  l("div", {
@@ -5390,43 +5406,43 @@ const to = {
5390
5406
  },
5391
5407
  computed: {
5392
5408
  computeLat() {
5393
- return function(t) {
5394
- return j.lat2pretty(t, 4).pretty;
5409
+ return function(a) {
5410
+ return j.lat2pretty(a, 4).pretty;
5395
5411
  };
5396
5412
  },
5397
5413
  computeLng() {
5398
- return function(t) {
5399
- return j.lng2pretty(t, 4).pretty;
5414
+ return function(a) {
5415
+ return j.lng2pretty(a, 4).pretty;
5400
5416
  };
5401
5417
  }
5402
5418
  },
5403
5419
  watch: {
5404
5420
  port: {
5405
5421
  handler() {
5406
- var t, e;
5407
- this.port ? (this.handleRender(), (t = this.map) == null || t.on("click", [this.layer], this.handleClick)) : (this.handleClear(), (e = this.map) == null || e.off("click", [this.layer], this.handleClick));
5422
+ var a, e;
5423
+ this.port ? (this.handleRender(), (a = this.map) == null || a.on("click", [this.layer], this.handleClick)) : (this.handleClear(), (e = this.map) == null || e.off("click", [this.layer], this.handleClick));
5408
5424
  }
5409
5425
  }
5410
5426
  },
5411
5427
  methods: {
5412
- handleClick(t) {
5428
+ handleClick(a) {
5413
5429
  var r;
5414
- const e = t.features[0], a = (r = this.port) == null ? void 0 : r.features.filter((i) => {
5430
+ const e = a.features[0], t = (r = this.port) == null ? void 0 : r.features.filter((i) => {
5415
5431
  var o;
5416
5432
  return i.properties.id === ((o = e == null ? void 0 : e.properties) == null ? void 0 : o.id);
5417
5433
  })[0];
5418
- if (a) {
5419
- this.showPort = !0, this.form = { ...a.properties }, this.form.lng = a.geometry.coordinates[0], this.form.lat = a.geometry.coordinates[1];
5434
+ if (t) {
5435
+ this.showPort = !0, this.form = { ...t.properties }, this.form.lng = t.geometry.coordinates[0], this.form.lat = t.geometry.coordinates[1];
5420
5436
  const i = document.getElementById("port-info");
5421
- this.marker ? this.marker.setLngLat([t.lngLat.lng, t.lngLat.lat]) : this.marker = new ne.Marker(i).setLngLat([t.lngLat.lng, t.lngLat.lat]).setOffset([0, -85]).addTo(this.map);
5437
+ this.marker ? this.marker.setLngLat([a.lngLat.lng, a.lngLat.lat]) : this.marker = new ne.Marker(i).setLngLat([a.lngLat.lng, a.lngLat.lat]).setOffset([0, -85]).addTo(this.map);
5422
5438
  }
5423
5439
  },
5424
5440
  handleEmit() {
5425
5441
  this.$emit("port", this.form);
5426
5442
  },
5427
5443
  handleRender() {
5428
- var t;
5429
- this.map ? this.port && (this.map.getSource(this.source) ? (t = this.map) == null || t.getSource(this.source).setData(this.port) : (this.map.addSource(this.source, {
5444
+ var a;
5445
+ this.map ? this.port && (this.map.getSource(this.source) ? (a = this.map) == null || a.getSource(this.source).setData(this.port) : (this.map.addSource(this.source, {
5430
5446
  type: "geojson",
5431
5447
  data: this.port
5432
5448
  }), this.map.addLayer({
@@ -5457,11 +5473,11 @@ const to = {
5457
5473
  this.showPort = !1, this.map.getLayer(this.layer) && this.map.removeLayer(this.layer), this.map.getSource(this.source) && this.map.removeSource(this.source);
5458
5474
  }
5459
5475
  }
5460
- }, Be = (t) => (G("data-v-4ab013cc"), t = t(), H(), t), ao = { id: "port-info" }, io = { class: "port-box" }, ro = { class: "flex-start" }, oo = /* @__PURE__ */ Be(() => /* @__PURE__ */ l("label", null, "Name : ", -1)), so = { class: "flex-start" }, no = /* @__PURE__ */ Be(() => /* @__PURE__ */ l("label", null, "Position : ", -1)), lo = { class: "flex-start" }, co = /* @__PURE__ */ Be(() => /* @__PURE__ */ l("label", null, "LoCode : ", -1)), ho = {
5476
+ }, Be = (a) => (H("data-v-4ab013cc"), a = a(), G(), a), ao = { id: "port-info" }, io = { class: "port-box" }, ro = { class: "flex-start" }, oo = /* @__PURE__ */ Be(() => /* @__PURE__ */ l("label", null, "Name : ", -1)), so = { class: "flex-start" }, no = /* @__PURE__ */ Be(() => /* @__PURE__ */ l("label", null, "Position : ", -1)), lo = { class: "flex-start" }, co = /* @__PURE__ */ Be(() => /* @__PURE__ */ l("label", null, "LoCode : ", -1)), ho = {
5461
5477
  class: "flex-start",
5462
5478
  style: { "align-items": "flex-start" }
5463
5479
  }, po = /* @__PURE__ */ Be(() => /* @__PURE__ */ l("label", null, "Region : ", -1));
5464
- function mo(t, e, a, r, i, o) {
5480
+ function mo(a, e, t, r, i, o) {
5465
5481
  return Me((L(), x("div", ao, [
5466
5482
  l("div", {
5467
5483
  class: "close iconfont",
@@ -5561,7 +5577,7 @@ const uo = /* @__PURE__ */ T(to, [["render", mo], ["__scopeId", "data-v-4ab013cc
5561
5577
  }
5562
5578
  }
5563
5579
  };
5564
- function fo(t, e, a, r, i, o) {
5580
+ function fo(a, e, t, r, i, o) {
5565
5581
  return L(), x("div");
5566
5582
  }
5567
5583
  const go = /* @__PURE__ */ T(yo, [["render", fo]]), bo = {
@@ -5729,7 +5745,7 @@ const go = /* @__PURE__ */ T(yo, [["render", fo]]), bo = {
5729
5745
  }
5730
5746
  }
5731
5747
  };
5732
- function vo(t, e, a, r, i, o) {
5748
+ function vo(a, e, t, r, i, o) {
5733
5749
  return L(), x("div");
5734
5750
  }
5735
5751
  const _o = /* @__PURE__ */ T(bo, [["render", vo]]), wo = {
@@ -5820,7 +5836,7 @@ const _o = /* @__PURE__ */ T(bo, [["render", vo]]), wo = {
5820
5836
  }
5821
5837
  }
5822
5838
  };
5823
- function Lo(t, e, a, r, i, o) {
5839
+ function Lo(a, e, t, r, i, o) {
5824
5840
  return L(), x("div");
5825
5841
  }
5826
5842
  const xo = /* @__PURE__ */ T(wo, [["render", Lo]]), Co = {
@@ -5852,8 +5868,8 @@ const xo = /* @__PURE__ */ T(wo, [["render", Lo]]), Co = {
5852
5868
  },
5853
5869
  methods: {
5854
5870
  handleRender() {
5855
- this.map ? (this.handleClear(), this.area && (this.area.features.forEach((t) => {
5856
- t.geometry.type === "Polygon" && t.geometry.coordinates.forEach((e) => j.convertToMonotonicLng2(e));
5871
+ this.map ? (this.handleClear(), this.area && (this.area.features.forEach((a) => {
5872
+ a.geometry.type === "Polygon" && a.geometry.coordinates.forEach((e) => j.convertToMonotonicLng2(e));
5857
5873
  }), this.map.addSource(this.source, {
5858
5874
  type: "geojson",
5859
5875
  data: this.area
@@ -5913,7 +5929,7 @@ const xo = /* @__PURE__ */ T(wo, [["render", Lo]]), Co = {
5913
5929
  }
5914
5930
  }
5915
5931
  };
5916
- function So(t, e, a, r, i, o) {
5932
+ function So(a, e, t, r, i, o) {
5917
5933
  return L(), x("div");
5918
5934
  }
5919
5935
  const ko = /* @__PURE__ */ T(Co, [["render", So]]), zo = {
@@ -5965,7 +5981,7 @@ const ko = /* @__PURE__ */ T(Co, [["render", So]]), zo = {
5965
5981
  }
5966
5982
  }
5967
5983
  };
5968
- function Po(t, e, a, r, i, o) {
5984
+ function Po(a, e, t, r, i, o) {
5969
5985
  return L(), x("div");
5970
5986
  }
5971
5987
  const To = /* @__PURE__ */ T(zo, [["render", Po]]);
@@ -6008,37 +6024,37 @@ const Eo = {
6008
6024
  },
6009
6025
  map: {
6010
6026
  handler() {
6011
- var t;
6012
- this.map && ((t = this.map) == null || t.on("mousemove", this.handleMouseMove));
6027
+ var a;
6028
+ this.map && ((a = this.map) == null || a.on("mousemove", this.handleMouseMove));
6013
6029
  },
6014
6030
  immediate: !0
6015
6031
  },
6016
6032
  toggleVersion: {
6017
6033
  handler() {
6018
- var t, e, a;
6019
- this.right = (((t = document.getElementsByClassName("legend-bars")[0]) == null ? void 0 : t.clientWidth) || -10) + (((e = document.getElementsByClassName("available-layers-show")[0]) == null ? void 0 : e.clientWidth) || 0) + (((a = document.getElementsByClassName("fleet-list-container")[0]) == null ? void 0 : a.clientWidth) || 0) + 20;
6034
+ var a, e, t;
6035
+ this.right = (((a = document.getElementsByClassName("legend-bars")[0]) == null ? void 0 : a.clientWidth) || -10) + (((e = document.getElementsByClassName("available-layers-show")[0]) == null ? void 0 : e.clientWidth) || 0) + (((t = document.getElementsByClassName("fleet-list-container")[0]) == null ? void 0 : t.clientWidth) || 0) + 20;
6020
6036
  },
6021
6037
  immediate: !0
6022
6038
  }
6023
6039
  },
6024
6040
  methods: {
6025
6041
  handleBind() {
6026
- var t, e;
6027
- this.show ? ((t = this.map) == null || t.on("zoomend", this.handleZoomEnd), this.handleRender()) : (this.handleClear(), (e = this.map) == null || e.off("zoomend", this.handleZoomEnd));
6042
+ var a, e;
6043
+ this.show ? ((a = this.map) == null || a.on("zoomend", this.handleZoomEnd), this.handleRender()) : (this.handleClear(), (e = this.map) == null || e.off("zoomend", this.handleZoomEnd));
6028
6044
  },
6029
- handleMouseMove(t) {
6030
- const e = t.lngLat, a = j.lng2pretty(e.lng, 2), r = j.lat2pretty(e.lat, 2);
6031
- this.lngLat = { lng: a, lat: r };
6045
+ handleMouseMove(a) {
6046
+ const e = a.lngLat, t = j.lng2pretty(e.lng, 2), r = j.lat2pretty(e.lat, 2);
6047
+ this.lngLat = { lng: t, lat: r };
6032
6048
  },
6033
6049
  handleComputeLatLngs() {
6034
6050
  var r;
6035
- const t = (r = this.map) == null ? void 0 : r.getZoom();
6036
- console.log(t);
6051
+ const a = (r = this.map) == null ? void 0 : r.getZoom();
6052
+ console.log(a);
6037
6053
  let e = 30;
6038
- t > 4 ? e = 10 : t > 3 && (e = 15);
6039
- const a = [];
6054
+ a > 4 ? e = 10 : a > 3 && (e = 15);
6055
+ const t = [];
6040
6056
  for (let i = -60; i < 90; i += e)
6041
- a.push({
6057
+ t.push({
6042
6058
  type: "Feature",
6043
6059
  geometry: {
6044
6060
  type: "LineString",
@@ -6049,7 +6065,7 @@ const Eo = {
6049
6065
  }
6050
6066
  });
6051
6067
  for (let i = -180; i < 180; i += e)
6052
- a.push({
6068
+ t.push({
6053
6069
  type: "Feature",
6054
6070
  geometry: {
6055
6071
  type: "LineString",
@@ -6061,7 +6077,7 @@ const Eo = {
6061
6077
  });
6062
6078
  for (let i = 180; i > -180; i -= e)
6063
6079
  for (let o = -60; o < 90; o += e)
6064
- a.push({
6080
+ t.push({
6065
6081
  type: "Feature",
6066
6082
  geometry: {
6067
6083
  type: "Point",
@@ -6071,21 +6087,21 @@ const Eo = {
6071
6087
  val: `${o > 0 ? o + " N" : o === 0 ? o : o * -1 + " S"}, ${i > 0 ? i + " E" : i * -1 + " W"}`
6072
6088
  }
6073
6089
  });
6074
- return a;
6090
+ return t;
6075
6091
  },
6076
6092
  handleZoomEnd() {
6077
6093
  var e;
6078
- const t = this.handleComputeLatLngs();
6079
- (e = this.map) == null || e.getSource(this.source).setData(C.featureCollection(t));
6094
+ const a = this.handleComputeLatLngs();
6095
+ (e = this.map) == null || e.getSource(this.source).setData(C.featureCollection(a));
6080
6096
  },
6081
6097
  handleRender() {
6082
6098
  if (this.map) {
6083
- const t = this.handleComputeLatLngs();
6099
+ const a = this.handleComputeLatLngs();
6084
6100
  this.map.addSource(this.source, {
6085
6101
  type: "geojson",
6086
6102
  data: {
6087
6103
  type: "FeatureCollection",
6088
- features: t
6104
+ features: a
6089
6105
  }
6090
6106
  }), this.map.addLayer({
6091
6107
  id: this.layer,
@@ -6120,16 +6136,16 @@ const Eo = {
6120
6136
  }
6121
6137
  },
6122
6138
  handleClear() {
6123
- var t, e, a, r, i, o;
6124
- (t = this.map) != null && t.getLayer(this.layer) && ((e = this.map) == null || e.removeLayer(this.layer)), (a = this.map) != null && a.getLayer(this.labelLayer) && ((r = this.map) == null || r.removeLayer(this.labelLayer)), (i = this.map) != null && i.getSource(this.source) && ((o = this.map) == null || o.removeSource(this.source));
6139
+ var a, e, t, r, i, o;
6140
+ (a = this.map) != null && a.getLayer(this.layer) && ((e = this.map) == null || e.removeLayer(this.layer)), (t = this.map) != null && t.getLayer(this.labelLayer) && ((r = this.map) == null || r.removeLayer(this.labelLayer)), (i = this.map) != null && i.getSource(this.source) && ((o = this.map) == null || o.removeSource(this.source));
6125
6141
  }
6126
6142
  }
6127
- }, Io = (t) => (G("data-v-7367f59b"), t = t(), H(), t), Ro = /* @__PURE__ */ Io(() => /* @__PURE__ */ l("span", null, ", ", -1));
6128
- function Do(t, e, a, r, i, o) {
6143
+ }, Io = (a) => (H("data-v-7367f59b"), a = a(), G(), a), Ro = /* @__PURE__ */ Io(() => /* @__PURE__ */ l("span", null, ", ", -1));
6144
+ function Do(a, e, t, r, i, o) {
6129
6145
  return i.lngLat ? (L(), x("div", {
6130
6146
  key: 0,
6131
6147
  class: "lat-lng-tip",
6132
- style: F({ right: i.right + "px", bottom: a.bottom })
6148
+ style: F({ right: i.right + "px", bottom: t.bottom })
6133
6149
  }, [
6134
6150
  l("span", null, S(i.lngLat.lat.pretty), 1),
6135
6151
  Ro,
@@ -6177,9 +6193,9 @@ const Qe = /* @__PURE__ */ T(Eo, [["render", Do], ["__scopeId", "data-v-7367f59b
6177
6193
  },
6178
6194
  methods: {
6179
6195
  handleBind() {
6180
- var t, e, a, r, i, o, n, s, c, h;
6196
+ var a, e, t, r, i, o, n, s, c, h;
6181
6197
  if (this.show)
6182
- (t = this.map) == null || t.getCanvas().addEventListener("keydown", this.handleKeydown), (e = this.map) == null || e.on("mousemove", this.handleMove), (a = this.map) == null || a.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");
6198
+ (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");
6183
6199
  else {
6184
6200
  (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);
6185
6201
  for (const d of this.geojson)
@@ -6187,22 +6203,22 @@ const Qe = /* @__PURE__ */ T(Eo, [["render", Do], ["__scopeId", "data-v-7367f59b
6187
6203
  this.geojson = [], this.map && (this.map.getCanvas().style.cursor = "grab");
6188
6204
  }
6189
6205
  },
6190
- handleKeydown(t) {
6191
- if (t.key === "Shift") {
6206
+ handleKeydown(a) {
6207
+ if (a.key === "Shift") {
6192
6208
  this.navigation = this.navigation === "RL" ? "GC" : "RL";
6193
- const a = this.geojson.at(-1).features.filter((r) => r.geometry.type === "Point");
6194
- a.length && (a.at(-1).properties.mode = this.navigation);
6209
+ const t = this.geojson.at(-1).features.filter((r) => r.geometry.type === "Point");
6210
+ t.length && (t.at(-1).properties.mode = this.navigation);
6195
6211
  }
6196
6212
  },
6197
- handleDrag(t) {
6198
- var a, r, i, o, n, s, c, h, d, p;
6199
- const e = (r = (a = t.target) == null ? void 0 : a._element) == null ? void 0 : r.id;
6213
+ handleDrag(a) {
6214
+ var t, r, i, o, n, s, c, h, d, p;
6215
+ const e = (r = (t = a.target) == null ? void 0 : t._element) == null ? void 0 : r.id;
6200
6216
  if ((e == null ? void 0 : e.split("-").length) === 2) {
6201
6217
  const f = this.geojson.filter((u) => u.id === e.split("-")[0])[0];
6202
6218
  this.pointMarkers[f.id].filter((u) => {
6203
6219
  var v;
6204
6220
  return ((v = u._element) == null ? void 0 : v.id) === e;
6205
- })[0].setLngLat([(o = (i = t.target) == null ? void 0 : i._lngLat) == null ? void 0 : o.lng, (s = (n = t.target) == null ? void 0 : n._lngLat) == null ? void 0 : s.lat]);
6221
+ })[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]);
6206
6222
  let b;
6207
6223
  f.features.forEach((u, v) => {
6208
6224
  if (u.geometry.type === "Point" && u.properties.id == e.split("-")[1]) {
@@ -6214,45 +6230,45 @@ const Qe = /* @__PURE__ */ T(Eo, [["render", Do], ["__scopeId", "data-v-7367f59b
6214
6230
  this.handleTmpPointUpdate(
6215
6231
  f,
6216
6232
  y[b - 1],
6217
- { lng: (h = (c = t.target) == null ? void 0 : c._lngLat) == null ? void 0 : h.lng, lat: (p = (d = t.target) == null ? void 0 : d._lngLat) == null ? void 0 : p.lat, properties: y[b].properties },
6233
+ { 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: y[b].properties },
6218
6234
  b === y.length - 1 ? void 0 : y[b + 1]
6219
6235
  );
6220
6236
  }
6221
6237
  },
6222
- handleDragEnd(t) {
6223
- var a, r, i, o, n, s, c, h, d, p;
6224
- const e = (r = (a = t.target) == null ? void 0 : a._element) == null ? void 0 : r.id;
6238
+ handleDragEnd(a) {
6239
+ var t, r, i, o, n, s, c, h, d, p;
6240
+ const e = (r = (t = a.target) == null ? void 0 : t._element) == null ? void 0 : r.id;
6225
6241
  if ((e == null ? void 0 : e.split("-").length) === 2) {
6226
6242
  const f = this.geojson.filter((y) => y.id === e.split("-")[0])[0];
6227
6243
  this.pointMarkers[f.id].filter((y) => {
6228
6244
  var u;
6229
6245
  return ((u = y._element) == null ? void 0 : u.id) === e;
6230
- })[0].setLngLat([(o = (i = t.target) == null ? void 0 : i._lngLat) == null ? void 0 : o.lng, (s = (n = t.target) == null ? void 0 : n._lngLat) == null ? void 0 : s.lat]);
6246
+ })[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]);
6231
6247
  const b = f.features.filter((y) => y.geometry.type === "Point" && y.properties.id == e.split("-")[1])[0];
6232
- b.geometry.coordinates = [(h = (c = t.target) == null ? void 0 : c._lngLat) == null ? void 0 : h.lng, (p = (d = t.target) == null ? void 0 : d._lngLat) == null ? void 0 : p.lat], f.features = f.features.filter((y) => y.geometry.type === "Point"), this.handlePointUpdate(f);
6248
+ b.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], f.features = f.features.filter((y) => y.geometry.type === "Point"), this.handlePointUpdate(f);
6233
6249
  }
6234
6250
  },
6235
- handleContextmenu(t) {
6236
- var a, r, i, o;
6237
- t.preventDefault(), (a = this.contextmenu) == null || a.remove();
6238
- const e = (o = (i = (r = t.originalEvent) == null ? void 0 : r.target) == null ? void 0 : i.parentElement) == null ? void 0 : o.id;
6251
+ handleContextmenu(a) {
6252
+ var t, r, i, o;
6253
+ a.preventDefault(), (t = this.contextmenu) == null || t.remove();
6254
+ const e = (o = (i = (r = a.originalEvent) == null ? void 0 : r.target) == null ? void 0 : i.parentElement) == null ? void 0 : o.id;
6239
6255
  if ((e == null ? void 0 : e.split("-").length) === 2) {
6240
6256
  const s = this.geojson.filter((c) => c.id === e.split("-")[0])[0].features.filter((c) => c.geometry.type === "Point");
6241
6257
  if (s.length > 2 && s.filter((h) => h.properties.id === (e == null ? void 0 : e.split("-")[1]))[0]) {
6242
6258
  const h = document.createElement("div");
6243
- h.className = "point-contextmenu-marker", h.innerHTML = `<span id="del-${e}" class="del-point">Del</span>`, this.contextmenu = new ne.Marker(h).setOffset([24, 0]).setLngLat([t.lngLat.lng, t.lngLat.lat]).addTo(this.map);
6259
+ h.className = "point-contextmenu-marker", h.innerHTML = `<span id="del-${e}" class="del-point">Del</span>`, this.contextmenu = new ne.Marker(h).setOffset([24, 0]).setLngLat([a.lngLat.lng, a.lngLat.lat]).addTo(this.map);
6244
6260
  }
6245
6261
  }
6246
6262
  },
6247
- handleClick(t) {
6248
- var a, r, i, o, n;
6249
- (a = this.contextmenu) == null || a.remove();
6250
- const e = t.originalEvent.target.className;
6263
+ handleClick(a) {
6264
+ var t, r, i, o, n;
6265
+ (t = this.contextmenu) == null || t.remove();
6266
+ const e = a.originalEvent.target.className;
6251
6267
  if (e === "marker-close") {
6252
- const s = (i = (r = t.originalEvent) == null ? void 0 : r.srcElement) == null ? void 0 : i.id, c = this.geojson.filter((h) => h.id === s)[0];
6268
+ const s = (i = (r = a.originalEvent) == null ? void 0 : r.srcElement) == null ? void 0 : i.id, c = this.geojson.filter((h) => h.id === s)[0];
6253
6269
  c && this.handleClear(c, !0), this.geojson = this.geojson.filter((h) => h.id !== s);
6254
6270
  } else if (e === "del-point") {
6255
- const s = (n = (o = t.originalEvent.target.id) == null ? void 0 : o.replace("del-", "")) == null ? void 0 : n.split("-"), c = this.geojson.filter((h) => h.id === s[0])[0];
6271
+ const s = (n = (o = a.originalEvent.target.id) == null ? void 0 : o.replace("del-", "")) == null ? void 0 : n.split("-"), c = this.geojson.filter((h) => h.id === s[0])[0];
6256
6272
  c.features = c.features.filter((h) => h.geometry.type === "Point" && h.properties.id !== s[1]), this.handlePointUpdate(c);
6257
6273
  } else if (e !== "marker-label") {
6258
6274
  let s = this.geojson.at(-1);
@@ -6260,7 +6276,7 @@ const Qe = /* @__PURE__ */ T(Eo, [["render", Do], ["__scopeId", "data-v-7367f59b
6260
6276
  const c = C.feature(
6261
6277
  {
6262
6278
  type: "Point",
6263
- coordinates: [t.lngLat.lng, t.lngLat.lat]
6279
+ coordinates: [a.lngLat.lng, a.lngLat.lat]
6264
6280
  },
6265
6281
  {
6266
6282
  id: (/* @__PURE__ */ new Date()).getTime().toString(),
@@ -6270,39 +6286,39 @@ const Qe = /* @__PURE__ */ T(Eo, [["render", Do], ["__scopeId", "data-v-7367f59b
6270
6286
  s.features.push(c), this.handlePointUpdate(s);
6271
6287
  }
6272
6288
  },
6273
- handlePointUpdate(t) {
6274
- const e = t.features;
6289
+ handlePointUpdate(a) {
6290
+ const e = a.features;
6275
6291
  if (e.length > 1) {
6276
- let a = 0;
6292
+ let t = 0;
6277
6293
  const r = [];
6278
6294
  for (let i = 1; i < e.length; i++) {
6279
- 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 = ee.calculateDistance(c, h, s.mode === "RL", 2), p = ee.calculateBearing(c, h, s.mode === "RL", 2);
6280
- a = j.roundPrecision(a + d, 2);
6295
+ 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 = te.calculateDistance(c, h, s.mode === "RL", 2), p = te.calculateBearing(c, h, s.mode === "RL", 2);
6296
+ t = j.roundPrecision(t + d, 2);
6281
6297
  let f;
6282
- s.mode === "RL" ? f = j.convertToMonotonicLng([c, h]) : f = j.convertToMonotonicLng(ee.interpolateCoordinates(c, h, 200));
6298
+ s.mode === "RL" ? f = j.convertToMonotonicLng([c, h]) : f = j.convertToMonotonicLng(te.interpolateCoordinates(c, h, 200));
6283
6299
  const m = C.lineString(f.map((b) => [b.lng, b.lat]));
6284
- m.properties.dist = d, m.properties.bearing = p, m.properties.total = a, r.push(m);
6300
+ m.properties.dist = d, m.properties.bearing = p, m.properties.total = t, r.push(m);
6285
6301
  }
6286
- e.push(...r), t.total = a;
6302
+ e.push(...r), a.total = t;
6287
6303
  }
6288
- return this.handleRender(t), t;
6304
+ return this.handleRender(a), a;
6289
6305
  },
6290
- handleTmpPointUpdate(t, e, a, r) {
6306
+ handleTmpPointUpdate(a, e, t, r) {
6291
6307
  const i = C.featureCollection([]);
6292
6308
  let o, n;
6293
6309
  if (e) {
6294
- const c = e.properties, h = { lng: e.geometry.coordinates[0], lat: e.geometry.coordinates[1] }, d = { lng: a.lng, lat: a.lat };
6295
- o = ee.calculateDistance(h, d, c.mode === "RL", 2), n = ee.calculateBearing(h, d, c.mode === "RL", 2);
6310
+ const c = e.properties, h = { lng: e.geometry.coordinates[0], lat: e.geometry.coordinates[1] }, d = { lng: t.lng, lat: t.lat };
6311
+ o = te.calculateDistance(h, d, c.mode === "RL", 2), n = te.calculateBearing(h, d, c.mode === "RL", 2);
6296
6312
  let p;
6297
- c.mode === "RL" ? p = j.convertToMonotonicLng([h, d]) : p = j.convertToMonotonicLng(ee.interpolateCoordinates(h, d, 200));
6313
+ c.mode === "RL" ? p = j.convertToMonotonicLng([h, d]) : p = j.convertToMonotonicLng(te.interpolateCoordinates(h, d, 200));
6298
6314
  const f = C.lineString(p.map((m) => [m.lng, m.lat]));
6299
6315
  f.properties.dist = o, f.properties.bearing = n, i.features.push(f);
6300
6316
  }
6301
6317
  if (r) {
6302
- const c = a.properties, h = a, d = { lng: r.geometry.coordinates[0], lat: r.geometry.coordinates[1] };
6303
- o = ee.calculateDistance(h, d, c.mode === "RL", 2), n = ee.calculateBearing(h, d, c.mode === "RL", 2);
6318
+ const c = t.properties, h = t, d = { lng: r.geometry.coordinates[0], lat: r.geometry.coordinates[1] };
6319
+ o = te.calculateDistance(h, d, c.mode === "RL", 2), n = te.calculateBearing(h, d, c.mode === "RL", 2);
6304
6320
  let p;
6305
- c.mode === "RL" ? p = j.convertToMonotonicLng([h, d]) : p = j.convertToMonotonicLng(ee.interpolateCoordinates(h, d, 200));
6321
+ c.mode === "RL" ? p = j.convertToMonotonicLng([h, d]) : p = j.convertToMonotonicLng(te.interpolateCoordinates(h, d, 200));
6306
6322
  const f = C.lineString(p.map((m) => [m.lng, m.lat]));
6307
6323
  f.properties.dist = o, f.properties.bearing = n, i.features.push(f);
6308
6324
  }
@@ -6344,36 +6360,36 @@ const Qe = /* @__PURE__ */ T(Eo, [["render", Do], ["__scopeId", "data-v-7367f59b
6344
6360
  }
6345
6361
  });
6346
6362
  let s;
6347
- if (r ? s = '<div class="marker-label">Drag and drop</div>' : s = `<div class="marker-label">Tol distance: <b>${j.roundPrecision((t.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)
6348
- this.tipMarker._element.innerHTML = s, this.tipMarker.setLngLat([a.lng, a.lat]);
6363
+ if (r ? s = '<div class="marker-label">Drag and drop</div>' : s = `<div class="marker-label">Tol distance: <b>${j.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)
6364
+ this.tipMarker._element.innerHTML = s, this.tipMarker.setLngLat([t.lng, t.lat]);
6349
6365
  else {
6350
6366
  const c = document.createElement("div");
6351
- c.className = "tip-marker", c.innerHTML = s, this.tipMarker = new ne.Marker(c).setOffset([140, 0]).setLngLat([a.lng, a.lat]).addTo(this.map);
6367
+ c.className = "tip-marker", c.innerHTML = s, this.tipMarker = new ne.Marker(c).setOffset([140, 0]).setLngLat([t.lng, t.lat]).addTo(this.map);
6352
6368
  }
6353
6369
  },
6354
- handleMove(t) {
6370
+ handleMove(a) {
6355
6371
  this.map.getCanvas().style.cursor = "crosshair";
6356
6372
  let e = this.geojson.at(-1);
6357
6373
  e || (e = C.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(e));
6358
- const a = e.features.filter((r) => r.geometry.type === "Point");
6359
- a != null && a.length && this.handleTmpPointUpdate(e, a.at(-1), { lng: t.lngLat.lng, lat: t.lngLat.lat });
6374
+ const t = e.features.filter((r) => r.geometry.type === "Point");
6375
+ t != null && t.length && this.handleTmpPointUpdate(e, t.at(-1), { lng: a.lngLat.lng, lat: a.lngLat.lat });
6360
6376
  },
6361
- handleDblClick(t) {
6362
- t.preventDefault();
6377
+ handleDblClick(a) {
6378
+ a.preventDefault();
6363
6379
  let e = this.geojson.at(-1);
6364
6380
  e.closed = !0, this.handleRender(e), e = C.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(e);
6365
6381
  },
6366
- handleRender(t) {
6382
+ handleRender(a) {
6367
6383
  var e;
6368
- if ((e = t == null ? void 0 : t.features) != null && e.length) {
6369
- const a = `${t.id}-${this.source}`, r = `${t.id}-${this.layer}`, i = `${t.id}-${this.labelLayer}`;
6370
- this.map.getSource(a) ? this.map.getSource(a).setData(t) : this.map.addSource(a, {
6384
+ if ((e = a == null ? void 0 : a.features) != null && e.length) {
6385
+ const t = `${a.id}-${this.source}`, r = `${a.id}-${this.layer}`, i = `${a.id}-${this.labelLayer}`;
6386
+ this.map.getSource(t) ? this.map.getSource(t).setData(a) : this.map.addSource(t, {
6371
6387
  type: "geojson",
6372
- data: t
6373
- }), this.handleClear(t, !1), this.map.addLayer({
6388
+ data: a
6389
+ }), this.handleClear(a, !1), this.map.addLayer({
6374
6390
  id: r,
6375
6391
  type: "line",
6376
- source: a,
6392
+ source: t,
6377
6393
  filter: ["==", "$type", "LineString"],
6378
6394
  layout: {
6379
6395
  "line-cap": "round",
@@ -6386,7 +6402,7 @@ const Qe = /* @__PURE__ */ T(Eo, [["render", Do], ["__scopeId", "data-v-7367f59b
6386
6402
  }), this.map.addLayer({
6387
6403
  id: i,
6388
6404
  type: "symbol",
6389
- source: a,
6405
+ source: t,
6390
6406
  filter: ["==", "$type", "LineString"],
6391
6407
  layout: {
6392
6408
  "symbol-placement": "line-center",
@@ -6402,29 +6418,29 @@ const Qe = /* @__PURE__ */ T(Eo, [["render", Do], ["__scopeId", "data-v-7367f59b
6402
6418
  "text-halo-blur": 0
6403
6419
  }
6404
6420
  });
6405
- const o = t.features.filter((n) => n.geometry.type === "Point");
6421
+ const o = a.features.filter((n) => n.geometry.type === "Point");
6406
6422
  for (const n of o) {
6407
6423
  const s = document.createElement("div");
6408
- s.id = `${t.id}-${n.properties.id}`, s.className = `${t.closed ? "point-marker closed" : "point-marker"}`, s.innerHTML = '<div class="marker-circle"></div>';
6424
+ s.id = `${a.id}-${n.properties.id}`, s.className = `${a.closed ? "point-marker closed" : "point-marker"}`, s.innerHTML = '<div class="marker-circle"></div>';
6409
6425
  const c = new ne.Marker({ element: s, draggable: !0, contextmenu: !0 }).setLngLat(n.geometry.coordinates).addTo(this.map);
6410
- c.on("drag", this.handleDrag), c.on("dragend", this.handleDragEnd), this.pointMarkers[t.id] ? this.pointMarkers[t.id].push(c) : this.pointMarkers[t.id] = [c];
6426
+ 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];
6411
6427
  }
6412
- if (t.closed) {
6413
- const n = o.at(-1), c = t.features.filter((d) => d.geometry.type === "LineString").at(-1), h = document.createElement("div");
6414
- h.className = "point-summary-marker", h.innerHTML = `<div id="${t.id}" class="marker-close">×</div><div class="marker-label">Tol: ${c.properties.total}nm</div>`, this.closeMarkers[t.id] = new ne.Marker(h).setOffset([60, 0]).setLngLat(n.geometry.coordinates).addTo(this.map);
6428
+ if (a.closed) {
6429
+ const n = o.at(-1), c = a.features.filter((d) => d.geometry.type === "LineString").at(-1), h = document.createElement("div");
6430
+ 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 ne.Marker(h).setOffset([60, 0]).setLngLat(n.geometry.coordinates).addTo(this.map);
6415
6431
  }
6416
6432
  }
6417
6433
  },
6418
- handleClear(t, e = !0) {
6434
+ handleClear(a, e = !0) {
6419
6435
  var o, n, s, c, h, d, p, f, m;
6420
- const a = `${t.id}-${this.source}`, r = `${t.id}-${this.layer}`, i = `${t.id}-${this.labelLayer}`;
6421
- (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[t.id]) == null || h.remove(), this.closeMarkers[t.id] = void 0, (d = this.pointMarkers[t.id]) == null || d.forEach((b) => {
6436
+ const t = `${a.id}-${this.source}`, r = `${a.id}-${this.layer}`, i = `${a.id}-${this.labelLayer}`;
6437
+ (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((b) => {
6422
6438
  b == null || b.remove();
6423
- }), this.pointMarkers[t.id] = [], (p = this.tipMarker) == null || p.remove(), this.tipMarker = void 0, e && ((f = this.map) != null && f.getSource(a)) && this.map.removeSource(a), e && ((m = this.map) != null && m.getSource(this.tmpSource)) && this.map.removeSource(this.tmpSource);
6439
+ }), this.pointMarkers[a.id] = [], (p = this.tipMarker) == null || p.remove(), this.tipMarker = void 0, e && ((f = this.map) != null && f.getSource(t)) && this.map.removeSource(t), e && ((m = this.map) != null && m.getSource(this.tmpSource)) && this.map.removeSource(this.tmpSource);
6424
6440
  }
6425
6441
  }
6426
6442
  };
6427
- function Mo(t, e, a, r, i, o) {
6443
+ function Mo(a, e, t, r, i, o) {
6428
6444
  return L(), x("div");
6429
6445
  }
6430
6446
  const $o = /* @__PURE__ */ T(Ao, [["render", Mo]]);
@@ -6473,23 +6489,23 @@ const Bo = {
6473
6489
  },
6474
6490
  toggleVersion: {
6475
6491
  handler() {
6476
- var t, e;
6477
- this.right = (((t = document.getElementsByClassName("available-layers-show")[0]) == null ? void 0 : t.clientWidth) || 0) + (((e = document.getElementsByClassName("fleet-list-container")[0]) == null ? void 0 : e.clientWidth) || 0) + 10;
6492
+ var a, e;
6493
+ this.right = (((a = document.getElementsByClassName("available-layers-show")[0]) == null ? void 0 : a.clientWidth) || 0) + (((e = document.getElementsByClassName("fleet-list-container")[0]) == null ? void 0 : e.clientWidth) || 0) + 10;
6478
6494
  },
6479
6495
  immediate: !0
6480
6496
  }
6481
6497
  },
6482
6498
  methods: {}
6483
- }, Ke = (t) => (G("data-v-ab627b83"), t = t(), H(), t), No = { key: 0 }, Wo = { class: "bar-item" }, Oo = /* @__PURE__ */ Ke(() => /* @__PURE__ */ l("span", { class: "iconfont" }, "HI", -1)), jo = [
6499
+ }, Ke = (a) => (H("data-v-ab627b83"), a = a(), G(), a), No = { key: 0 }, Wo = { class: "bar-item" }, Oo = /* @__PURE__ */ Ke(() => /* @__PURE__ */ l("span", { class: "iconfont" }, "HI", -1)), jo = [
6484
6500
  Oo
6485
6501
  ], Fo = /* @__PURE__ */ Ke(() => /* @__PURE__ */ l("span", { class: "iconfont" }, "I4", -1)), Vo = [
6486
6502
  Fo
6487
6503
  ];
6488
- function Uo(t, e, a, r, i, o) {
6489
- return a.enabled && a.permission & i.helper.LEVEL.Supper ? (L(), x("div", No, [
6504
+ function Uo(a, e, t, r, i, o) {
6505
+ return t.enabled && t.permission & i.helper.LEVEL.Supper ? (L(), x("div", No, [
6490
6506
  l("div", {
6491
6507
  class: "menu-bar-box",
6492
- style: F({ position: "absolute", right: i.right + "px", bottom: a.bottom })
6508
+ style: F({ position: "absolute", right: i.right + "px", bottom: t.bottom })
6493
6509
  }, [
6494
6510
  l("div", Wo, [
6495
6511
  l("div", {
@@ -6504,7 +6520,7 @@ function Uo(t, e, a, r, i, o) {
6504
6520
  ], 4)
6505
6521
  ])) : $("", !0);
6506
6522
  }
6507
- const Go = /* @__PURE__ */ T(Bo, [["render", Uo], ["__scopeId", "data-v-ab627b83"]]);
6523
+ const Zo = /* @__PURE__ */ T(Bo, [["render", Uo], ["__scopeId", "data-v-ab627b83"]]);
6508
6524
  const Ho = {
6509
6525
  name: "IdmGLV2",
6510
6526
  components: {
@@ -6537,7 +6553,7 @@ const Ho = {
6537
6553
  IdmLatLng: Qe,
6538
6554
  IdmMeasure: $o,
6539
6555
  IdmPoint: Or,
6540
- IdmENC: Go
6556
+ IdmENC: Zo
6541
6557
  },
6542
6558
  props: {
6543
6559
  map: {
@@ -6581,13 +6597,13 @@ const Ho = {
6581
6597
  enc: "",
6582
6598
  // enc: 'i4',
6583
6599
  defaultMeteoToken: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImNseTVudHJzYzAwNWUwbHBsZHkyaDRqczMiLCJyb2xlIjoxLCJuYW1lIjoiZmFrZUBvcm13eC5jb20iLCJwbGF0SWQiOiJnZDBtdDFkIiwiY29tcGFueSI6eyJpZCI6bnVsbCwiY2hpbGRyZW4iOltdfSwiaWF0IjoxNzIzMDI0MDI0LCJleHAiOjM5MzA1NDQwMjR9.RrKcdcMnq-FxBLJQ-i6lx2FscDE46y8EvHIemPW4HTg",
6584
- helper: new Zt()
6600
+ helper: new Gt()
6585
6601
  };
6586
6602
  },
6587
6603
  watch: {
6588
6604
  ts: {
6589
- handler(t, e) {
6590
- t && e && te(t).utc().format("yyyy-MM-DD HH") !== te(e).utc().format("yyyy-MM-DD HH") && this.$nextTick(() => {
6605
+ handler(a, e) {
6606
+ a && e && Z(a).utc().format("yyyy-MM-DD HH") !== Z(e).utc().format("yyyy-MM-DD HH") && this.$nextTick(() => {
6591
6607
  this.handleDateChange({ tropicals: !1 });
6592
6608
  });
6593
6609
  },
@@ -6600,17 +6616,17 @@ const Ho = {
6600
6616
  immediate: !0
6601
6617
  },
6602
6618
  enc: {
6603
- handler(t, e) {
6604
- var a, r, i, o, n, s, c, h;
6605
- t ? ((r = (a = this.map) == null ? void 0 : a.getLayer(t)) == null || r.setLayoutProperty("visibility", "visible"), (o = (i = this.map) == null ? void 0 : i.getLayer(e)) == null || o.setLayoutProperty("visibility", "none")) : ((s = (n = this.map) == null ? void 0 : n.getLayer("i4")) == null || s.setLayoutProperty("visibility", "none"), (h = (c = this.map) == null ? void 0 : c.getLayer("hi")) == null || h.setLayoutProperty("visibility", "none"));
6619
+ handler(a, e) {
6620
+ var t, r, i, o, n, s, c, h;
6621
+ a ? ((r = (t = this.map) == null ? void 0 : t.getLayer(a)) == null || r.setLayoutProperty("visibility", "visible"), (o = (i = this.map) == null ? void 0 : i.getLayer(e)) == null || o.setLayoutProperty("visibility", "none")) : ((s = (n = this.map) == null ? void 0 : n.getLayer("i4")) == null || s.setLayoutProperty("visibility", "none"), (h = (c = this.map) == null ? void 0 : c.getLayer("hi")) == null || h.setLayoutProperty("visibility", "none"));
6606
6622
  }
6607
6623
  },
6608
6624
  activeWeatherLayers: {
6609
6625
  handler() {
6610
- var t, e, a, r, i, o, n, s, c, h, d, p, f, m, b, y, u, v;
6626
+ var a, e, t, r, i, o, n, s, c, h, d, p, f, m, b, y, u, v;
6611
6627
  if (!this.map)
6612
6628
  return !1;
6613
- this.activeWeatherLayers.length > 0 ? ((e = (t = this.map) == null ? void 0 : t.getLayer(this.enc)) == null || e.setLayoutProperty("visibility", "none"), (r = (a = this.map) == null ? void 0 : a.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" && ((m = this.map) == null || m.moveLayer((f = this.viewport) == null ? void 0 : f.particleLayer, this.helper.mapboxCustomer.layers.countryBoundary.id))) : ((y = (b = this.map) == null ? void 0 : b.getLayer(this.enc)) == null || y.setLayoutProperty("visibility", "visible"), (v = (u = this.map) == null ? void 0 : u.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) == null || v.setLayoutProperty("visibility", "none"));
6629
+ 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" && ((m = this.map) == null || m.moveLayer((f = this.viewport) == null ? void 0 : f.particleLayer, this.helper.mapboxCustomer.layers.countryBoundary.id))) : ((y = (b = this.map) == null ? void 0 : b.getLayer(this.enc)) == null || y.setLayoutProperty("visibility", "visible"), (v = (u = this.map) == null ? void 0 : u.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) == null || v.setLayoutProperty("visibility", "none"));
6614
6630
  },
6615
6631
  immediate: !0
6616
6632
  }
@@ -6656,10 +6672,10 @@ const Ho = {
6656
6672
  // },
6657
6673
  },
6658
6674
  methods: {
6659
- async fetchWeatherLayers(t = { tropicals: !1 }) {
6675
+ async fetchWeatherLayers(a = { tropicals: !1 }) {
6660
6676
  var i, o, n, s, c, h, d, p;
6661
6677
  const e = (/* @__PURE__ */ new Date()).valueOf();
6662
- let a = 0, r = 0;
6678
+ let t = 0, r = 0;
6663
6679
  if (this.map) {
6664
6680
  const f = ((i = this.map) == null ? void 0 : i.getZoom()) + 1, m = (o = this.map) == null ? void 0 : o.getBounds(), b = `${m._sw.lng},${m._sw.lat},${m._ne.lng},${m._ne.lat}`;
6665
6681
  if (this.handleRampColorState(), this.particleFactor) {
@@ -6671,13 +6687,13 @@ const Ho = {
6671
6687
  }
6672
6688
  if (this.weatherWeight > 0) {
6673
6689
  let y = this.weatherWeight, u;
6674
- if (t.tropicals || this.weatherWeight & 256 && (u = this.weatherLayers.tropicals, u && (y -= 256, u.version = Math.random() + 1)), y > 0) {
6690
+ if (a.tropicals || this.weatherWeight & 256 && (u = this.weatherLayers.tropicals, u && (y -= 256, u.version = Math.random() + 1)), y > 0) {
6675
6691
  const v = await se.get(`${this.gateway}/api/arc/weather/layers/links?l=${y}&v=${this.source}&z=${f}&bbox=${b}&t=${this.ts}`, {
6676
6692
  headers: {
6677
6693
  Authorization: this.token || this.defaultMeteoToken
6678
6694
  }
6679
6695
  });
6680
- if (r = (/* @__PURE__ */ new Date()).valueOf() - (e + a), console.log("weather links elapsed: ", r, ", total: ", a += r), ((n = v == null ? void 0 : v.data) == null ? void 0 : n.code) === 0) {
6696
+ if (r = (/* @__PURE__ */ new Date()).valueOf() - (e + t), console.log("weather links elapsed: ", r, ", total: ", t += r), ((n = v == null ? void 0 : v.data) == null ? void 0 : n.code) === 0) {
6681
6697
  const g = (s = v == null ? void 0 : v.data) == null ? void 0 : s.data, w = [];
6682
6698
  for (const _ in g)
6683
6699
  _ === "ice-edge" && (g[_] = "https://idm-hz.oss-cn-hangzhou.aliyuncs.com/test/sea_ice_contours.geojson"), _ !== "tropicals" && w.push(
@@ -6693,11 +6709,11 @@ const Ho = {
6693
6709
  );
6694
6710
  const k = await Promise.all(w);
6695
6711
  this.weatherLayers = {}, k.map((_) => {
6696
- var B, W, O, Z;
6712
+ var B, W, O, J;
6697
6713
  const D = ((B = _ == null ? void 0 : _.data) == null ? void 0 : B.data) || (_ == null ? void 0 : _.data), A = (O = (W = _ == null ? void 0 : _.config) == null ? void 0 : W.headers) == null ? void 0 : O.key;
6698
6714
  A && D && (this.weatherLayers[A] = {
6699
6715
  raw: D,
6700
- type: ((Z = _ == null ? void 0 : _.config) == null ? void 0 : Z.responseType) === "blob" ? "image" : "json",
6716
+ type: ((J = _ == null ? void 0 : _.config) == null ? void 0 : J.responseType) === "blob" ? "image" : "json",
6701
6717
  etime: this.ts
6702
6718
  });
6703
6719
  }), g.tropicals && se.get(g.tropicals, {
@@ -6718,7 +6734,7 @@ const Ho = {
6718
6734
  };
6719
6735
  });
6720
6736
  }
6721
- if (r = (/* @__PURE__ */ new Date()).valueOf() - (e + a), console.log("weather layers elapsed: ", r, ", total: ", a += r), this.weatherLayers["swell-direction"] || this.weatherLayers["swell-height"]) {
6737
+ if (r = (/* @__PURE__ */ new Date()).valueOf() - (e + t), console.log("weather layers elapsed: ", r, ", total: ", t += r), this.weatherLayers["swell-direction"] || this.weatherLayers["swell-height"]) {
6722
6738
  const g = (c = this.weatherLayers["swell-direction"]) == null ? void 0 : c.raw, w = (h = this.weatherLayers["swell-height"]) == null ? void 0 : h.raw;
6723
6739
  delete this.weatherLayers["swell-direction"], delete this.weatherLayers["swell-height"], this.weatherLayers.swell = {
6724
6740
  type: "json",
@@ -6743,21 +6759,21 @@ const Ho = {
6743
6759
  }
6744
6760
  this.toggleVersion = Math.random();
6745
6761
  },
6746
- async fetchOtherLayers(t = { all: !1, dayNight: !1, enc: !1 }) {
6747
- var e, a, r, i;
6762
+ async fetchOtherLayers(a = { all: !1, dayNight: !1, enc: !1 }) {
6763
+ var e, t, r, i;
6748
6764
  if (this.map) {
6749
6765
  let o = this.otherWeight;
6750
6766
  if (o) {
6751
6767
  let n = !1;
6752
6768
  if (this.otherWeight & 2048 && (o = this.otherWeight - 2048, n = !0), o) {
6753
- if (t.all) {
6769
+ if (a.all) {
6754
6770
  const s = await se.get(`${this.gateway}/api/arc/other/layers/links?l=${o}&t=${this.ts}`, {
6755
6771
  headers: {
6756
6772
  Authorization: this.token || this.defaultMeteoToken
6757
6773
  }
6758
6774
  });
6759
6775
  if (((e = s == null ? void 0 : s.data) == null ? void 0 : e.code) === 0) {
6760
- const c = (a = s == null ? void 0 : s.data) == null ? void 0 : a.data, h = [];
6776
+ const c = (t = s == null ? void 0 : s.data) == null ? void 0 : t.data, h = [];
6761
6777
  for (const p in c)
6762
6778
  h.push(
6763
6779
  se.get(c[p], {
@@ -6774,7 +6790,7 @@ const Ho = {
6774
6790
  this.otherLayers[m] = f;
6775
6791
  });
6776
6792
  }
6777
- } else if (t.dayNight && o & 1024) {
6793
+ } else if (a.dayNight && o & 1024) {
6778
6794
  const s = await se.get(`${this.gateway}/api/arc/other/layers/links?l=1024&t=${this.ts}`, {
6779
6795
  headers: {
6780
6796
  Authorization: this.token || this.defaultMeteoToken
@@ -6806,8 +6822,8 @@ const Ho = {
6806
6822
  }
6807
6823
  },
6808
6824
  handleRampColorState() {
6809
- var t;
6810
- if (this.showRampColor = !1, this.showWindParticle = !1, this.showCurrentParticle = !1, (t = this.particleFactor) != null && t.particle)
6825
+ var a;
6826
+ if (this.showRampColor = !1, this.showWindParticle = !1, this.showCurrentParticle = !1, (a = this.particleFactor) != null && a.particle)
6811
6827
  this.showRampColor = !0, this.showWindParticle = this.particleFactor.key === "wind", this.showCurrentParticle = this.particleFactor.key === "current", this.activeWeatherLayers = this.activeWeatherLayers.filter((e) => e.type === "json");
6812
6828
  else
6813
6829
  for (const e of this.activeWeatherLayers)
@@ -6815,10 +6831,10 @@ const Ho = {
6815
6831
  this.activeWindLayer = !!this.activeWeatherLayers.find((e) => e.key === "wind"), this.$refs.layer && (this.$refs.layer.activeWeatherLayers = this.activeWeatherLayers);
6816
6832
  },
6817
6833
  handleRampColorInitial() {
6818
- var t, e, a, r, i, o, n, s, c, h, d, p;
6819
- this.viewport.map.getSource((t = this.viewport) == null ? void 0 : t.rampColorSource) || this.viewport.map.addSource((e = this.viewport) == null ? void 0 : e.rampColorSource, {
6834
+ var a, e, t, r, i, o, n, s, c, h, d, p;
6835
+ this.viewport.map.getSource((a = this.viewport) == null ? void 0 : a.rampColorSource) || this.viewport.map.addSource((e = this.viewport) == null ? void 0 : e.rampColorSource, {
6820
6836
  type: "canvas",
6821
- canvas: (a = this.viewport) == null ? void 0 : a.rampColorCanvas,
6837
+ canvas: (t = this.viewport) == null ? void 0 : t.rampColorCanvas,
6822
6838
  animate: !0,
6823
6839
  coordinates: this.viewport.getBoundLngLat()
6824
6840
  }), this.viewport.map.getLayer((r = this.viewport) == null ? void 0 : r.rampColorLayer) || this.viewport.map.addLayer(
@@ -6850,8 +6866,8 @@ const Ho = {
6850
6866
  },
6851
6867
  handleDragEndWithZoom4Json() {
6852
6868
  var h, d, p, f;
6853
- const t = (/* @__PURE__ */ new Date()).valueOf();
6854
- let e = 0, a = 0;
6869
+ const a = (/* @__PURE__ */ new Date()).valueOf();
6870
+ let e = 0, t = 0;
6855
6871
  const r = (h = this.map) == null ? void 0 : h.getBounds(), i = this.map.getZoom(), o = Ie(r._sw.lng), n = Ie(r._ne.lng), s = Math.floor(r._sw.lat), c = Math.ceil(r._ne.lat);
6856
6872
  for (const m in this.weatherLayers)
6857
6873
  if (this.weatherLayers[m].active && this.weatherLayers[m].type === "json") {
@@ -6882,7 +6898,7 @@ const Ho = {
6882
6898
  }
6883
6899
  });
6884
6900
  }
6885
- if (a = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("direction elapsed: ", a, ", total: ", e += a), m === "swell") {
6901
+ if (t = (/* @__PURE__ */ new Date()).valueOf() - (a + e), console.log("direction elapsed: ", t, ", total: ", e += t), m === "swell") {
6886
6902
  const u = this.weatherLayers[m].height;
6887
6903
  if (u) {
6888
6904
  if (!u.data) {
@@ -6902,7 +6918,7 @@ const Ho = {
6902
6918
  const v = this.handleBboxClip(u.data, r);
6903
6919
  b = b.concat(v);
6904
6920
  }
6905
- a = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("height elapsed: ", a, ", total: ", e += a);
6921
+ t = (/* @__PURE__ */ new Date()).valueOf() - (a + e), console.log("height elapsed: ", t, ", total: ", e += t);
6906
6922
  }
6907
6923
  }
6908
6924
  if (m === "current") {
@@ -6922,7 +6938,7 @@ const Ho = {
6922
6938
  u.data = C.featureCollection(g);
6923
6939
  }
6924
6940
  const v = i < this.zoom ? u.data.features.filter((g) => g.properties.val > 0.5) : u.data.features;
6925
- b = b.concat(v), a = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("speed elapsed: ", a, ", total: ", e += a);
6941
+ b = b.concat(v), t = (/* @__PURE__ */ new Date()).valueOf() - (a + e), console.log("speed elapsed: ", t, ", total: ", e += t);
6926
6942
  }
6927
6943
  }
6928
6944
  } else if (m === "wind") {
@@ -6948,7 +6964,7 @@ const Ho = {
6948
6964
  }
6949
6965
  });
6950
6966
  }
6951
- a = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("wind barb elapsed: ", a, ", total: ", e += a);
6967
+ t = (/* @__PURE__ */ new Date()).valueOf() - (a + e), console.log("wind barb elapsed: ", t, ", total: ", e += t);
6952
6968
  } else if (m === "sig-wave-height") {
6953
6969
  if (this.weatherLayers[m].data)
6954
6970
  b = this.weatherLayers[m].data;
@@ -6977,7 +6993,7 @@ const Ho = {
6977
6993
  b = b.concat(u);
6978
6994
  }
6979
6995
  }
6980
- a = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("sigWave elapsed: ", a, ", total: ", e += a);
6996
+ t = (/* @__PURE__ */ new Date()).valueOf() - (a + e), console.log("sigWave elapsed: ", t, ", total: ", e += t);
6981
6997
  } else if (m === "prmsl") {
6982
6998
  if (this.weatherLayers[m].data)
6983
6999
  b = this.weatherLayers[m].data;
@@ -7006,7 +7022,7 @@ const Ho = {
7006
7022
  b = b.concat(u);
7007
7023
  }
7008
7024
  }
7009
- a = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("prmsl elapsed: ", a, ", total: ", e += a);
7025
+ t = (/* @__PURE__ */ new Date()).valueOf() - (a + e), console.log("prmsl elapsed: ", t, ", total: ", e += t);
7010
7026
  } else if (m === "arctic" || m === "iceberg") {
7011
7027
  if (this.weatherLayers[m].data)
7012
7028
  b = this.weatherLayers[m].data;
@@ -7026,179 +7042,179 @@ const Ho = {
7026
7042
  b = b.concat(u);
7027
7043
  }
7028
7044
  }
7029
- a = (/* @__PURE__ */ new Date()).valueOf() - (t + e);
7045
+ t = (/* @__PURE__ */ new Date()).valueOf() - (a + e);
7030
7046
  }
7031
- console.log(m, " elapsed: ", a, ", total: ", e += a), b.length && (this.weatherLayers[m].data = C.featureCollection(b)), this.weatherLayers[m].active = !0, this.weatherLayers[m].version = Math.random() + 1;
7047
+ console.log(m, " elapsed: ", t, ", total: ", e += t), b.length && (this.weatherLayers[m].data = C.featureCollection(b)), this.weatherLayers[m].active = !0, this.weatherLayers[m].version = Math.random() + 1;
7032
7048
  }
7033
7049
  },
7034
7050
  handleDragEndWithZoom4Image() {
7035
- for (const t in this.weatherLayers)
7036
- this.weatherLayers[t].active && this.weatherLayers[t].type === "image" && (this.weatherLayers[t].active = !0, this.weatherLayers[t].version = Math.random() + 1);
7051
+ for (const a in this.weatherLayers)
7052
+ this.weatherLayers[a].active && this.weatherLayers[a].type === "image" && (this.weatherLayers[a].active = !0, this.weatherLayers[a].version = Math.random() + 1);
7037
7053
  },
7038
- handleBboxClip(t, e) {
7039
- const a = [], r = Ie(e._sw.lng), i = Ie(e._ne.lng);
7040
- return t.features.forEach((o) => {
7054
+ handleBboxClip(a, e) {
7055
+ const t = [], r = Ie(e._sw.lng), i = Ie(e._ne.lng);
7056
+ return a.features.forEach((o) => {
7041
7057
  if (o.geometry.type !== "Point")
7042
7058
  if (r > i) {
7043
7059
  let n = [r, e._sw.lat, 180, e._ne.lat], s = C.bboxClip(o, n);
7044
- s.geometry.coordinates.length && a.push(s), n = [-180, e._sw.lat, i, e._ne.lat], s = C.bboxClip(o, n), s.geometry.coordinates.length && a.push(s);
7060
+ s.geometry.coordinates.length && t.push(s), n = [-180, e._sw.lat, i, e._ne.lat], s = C.bboxClip(o, n), s.geometry.coordinates.length && t.push(s);
7045
7061
  } else {
7046
7062
  const n = [r, e._sw.lat, i, e._ne.lat], s = C.bboxClip(o, n);
7047
- s.geometry.coordinates.length && a.push(s);
7063
+ s.geometry.coordinates.length && t.push(s);
7048
7064
  }
7049
7065
  else
7050
- a.push(o);
7051
- }), a;
7066
+ t.push(o);
7067
+ }), t;
7052
7068
  },
7053
7069
  handleWeatherLayerToggle() {
7054
- var t;
7070
+ var a;
7055
7071
  for (const e in this.weatherLayers)
7056
7072
  this.weatherLayers[e].active = !1, this.weatherLayers[e].version = Math.random() + 1;
7057
7073
  for (const e of this.activeWeatherLayers) {
7058
- let a = e.key;
7059
- a.indexOf("swell") > -1 ? a = "swell" : a.indexOf("current") > -1 && (a = "current"), this.weatherLayers[a] && (this.weatherLayers[a].active = !0, this.weatherLayers[a].version = Math.random() + 1, ((t = this.particleFactor) == null ? void 0 : t.key) === a && this.weatherLayers[`${a}-particle`] && (this.weatherLayers[`${a}-particle`].active = this.particleFactor.particle));
7074
+ let t = e.key;
7075
+ t.indexOf("swell") > -1 ? t = "swell" : t.indexOf("current") > -1 && (t = "current"), this.weatherLayers[t] && (this.weatherLayers[t].active = !0, this.weatherLayers[t].version = Math.random() + 1, ((a = this.particleFactor) == null ? void 0 : a.key) === t && this.weatherLayers[`${t}-particle`] && (this.weatherLayers[`${t}-particle`].active = this.particleFactor.particle));
7060
7076
  }
7061
7077
  this.handleBeforeLayerToggle();
7062
7078
  },
7063
7079
  handleBeforeLayerToggle() {
7064
- var t, e, a, r, i, o, n, s, c, h, d, p, f;
7065
- (t = this.map) != null && t.getLayer(this.beforeLayer) && ((e = this.activeWeatherLayers) != null && e.length || (a = this.otherLayers) != null && a["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"] || (f = this.otherLayers) != null && f["special-area"]) && this.map.setLayoutProperty(this.beforeLayer, "visibility", "visible");
7080
+ var a, e, t, r, i, o, n, s, c, h, d, p, f;
7081
+ (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"] || (f = this.otherLayers) != null && f["special-area"]) && this.map.setLayoutProperty(this.beforeLayer, "visibility", "visible");
7066
7082
  },
7067
- handleDateChange(t = { tropicals: !1 }) {
7068
- this.fetchWeatherLayers(t), this.fetchOtherLayers({ dayNight: !0 });
7083
+ handleDateChange(a = { tropicals: !1 }) {
7084
+ this.fetchWeatherLayers(a), this.fetchOtherLayers({ dayNight: !0 });
7069
7085
  },
7070
- handleWeatherLayerChange(t, e, a) {
7086
+ handleWeatherLayerChange(a, e, t) {
7071
7087
  if (!this.map)
7072
7088
  setTimeout(() => {
7073
- this.handleWeatherLayerChange(t, e, a);
7089
+ this.handleWeatherLayerChange(a, e, t);
7074
7090
  }, 500);
7075
7091
  else {
7076
7092
  this.activeWeatherLayers = e;
7077
7093
  const r = this.activeWeatherLayers.some((n) => ["wind", "current"].includes(n.key)), i = this.activeWeatherLayers.some((n) => ["png", "jpg"].includes(n.type));
7078
7094
  r && !i ? (this.particleFactor = this.activeWeatherLayers.find((n) => ["wind", "current"].includes(n.key)), this.particleFactor.particle = !0) : i && this.particleFactor && (this.particleFactor.particle = !1);
7079
7095
  const o = e == null ? void 0 : e.reduce((n, s) => n + (n & (s == null ? void 0 : s.weight) ? 0 : s == null ? void 0 : s.weight), 0);
7080
- this.weatherWeight !== o || this.source !== a ? (this.source = a, this.weatherWeight = o, this.fetchWeatherLayers({ tropicals: !1 })) : this.handleWeatherLayerToggle();
7096
+ this.weatherWeight !== o || this.source !== t ? (this.source = t, this.weatherWeight = o, this.fetchWeatherLayers({ tropicals: !1 })) : this.handleWeatherLayerToggle();
7081
7097
  }
7082
7098
  },
7083
- handleOtherLayerChange(t) {
7099
+ handleOtherLayerChange(a) {
7084
7100
  if (!this.map)
7085
7101
  setTimeout(() => {
7086
- this.handleOtherLayerChange(t);
7102
+ this.handleOtherLayerChange(a);
7087
7103
  }, 500);
7088
7104
  else {
7089
- const e = t == null ? void 0 : t.reduce((a, r) => a + (r == null ? void 0 : r.weight), 0);
7090
- t.find((a) => a.key === "enc") ? this.enc = "i4" : this.enc = "", this.otherWeight != e && (this.otherWeight = e, this.fetchOtherLayers({ all: !0 }));
7105
+ const e = a == null ? void 0 : a.reduce((t, r) => t + (r == null ? void 0 : r.weight), 0);
7106
+ a.find((t) => t.key === "enc") ? this.enc = "i4" : this.enc = "", this.otherWeight != e && (this.otherWeight = e, this.fetchOtherLayers({ all: !0 }));
7091
7107
  }
7092
7108
  },
7093
- async handlePointChange(t) {
7094
- const e = this.ts ? te(this.ts) : te(), a = {
7095
- lat: t.lat,
7096
- lng: t.lng,
7109
+ async handlePointChange(a) {
7110
+ const e = this.ts ? Z(this.ts) : Z(), t = {
7111
+ lat: a.lat,
7112
+ lng: a.lng,
7097
7113
  ts: e.utc().format(),
7098
7114
  wt: !0,
7099
7115
  src: this.source
7100
7116
  }, r = await se.get(`${this.gateway}/api/arc/meteo/query`, {
7101
- params: a,
7117
+ params: t,
7102
7118
  headers: {
7103
7119
  Authorization: this.token || this.defaultMeteoToken
7104
7120
  }
7105
7121
  });
7106
7122
  (r == null ? void 0 : r.status) === 200 && (this.meteo = {
7107
7123
  ...r == null ? void 0 : r.data,
7108
- ...t
7124
+ ...a
7109
7125
  });
7110
7126
  },
7111
- handle3dToggle(t) {
7112
- var e, a, r, i, o, n, s, c, h, d, p, f, m, b, y, u, v, g, w, k;
7113
- t ? (this.map.setProjection("globe"), this.mapProjection = "globe", (a = this.map) != null && a.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(), (f = this.map) != null && f.getLayer((p = this.viewport) == null ? void 0 : p.rampColorLayer) && ((m = this.map) != null && m.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && ((y = this.map) == null || y.moveLayer((b = this.viewport) == null ? void 0 : b.rampColorLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)), (v = this.map) != null && v.getLayer((u = this.viewport) == null ? void 0 : u.particleLayer) && ((g = this.map) != null && g.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)));
7127
+ handle3dToggle(a) {
7128
+ var e, t, r, i, o, n, s, c, h, d, p, f, m, b, y, u, v, g, w, k;
7129
+ 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(), (f = this.map) != null && f.getLayer((p = this.viewport) == null ? void 0 : p.rampColorLayer) && ((m = this.map) != null && m.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && ((y = this.map) == null || y.moveLayer((b = this.viewport) == null ? void 0 : b.rampColorLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)), (v = this.map) != null && v.getLayer((u = this.viewport) == null ? void 0 : u.particleLayer) && ((g = this.map) != null && g.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)));
7114
7130
  },
7115
- handleParticle(t) {
7116
- this.particleFactor = t, this.fetchWeatherLayers({ tropicals: !1 });
7131
+ handleParticle(a) {
7132
+ this.particleFactor = a, this.fetchWeatherLayers({ tropicals: !1 });
7117
7133
  }
7118
7134
  }
7119
- }, Zo = {
7135
+ }, Go = {
7120
7136
  key: 0,
7121
7137
  className: "map-gl-home"
7122
7138
  };
7123
- function Jo(t, e, a, r, i, o) {
7124
- var ae, J, q, be, Y, E, V, ve, Q, _e, ie, re, oe, ke, ze, Pe, Te, Ee, Ne, Fe, Ve, Ue, Ge, He, Ze, Je;
7125
- const n = z("IdmGlLayer"), s = z("IdmENC"), c = z("IdmSigWave"), h = z("IdmSwell"), d = z("IdmPrmsl"), p = z("IdmIceberg"), f = z("IdmTropicals"), m = z("IdmCurrents"), b = z("IdmCurrentParticle"), y = z("IdmWindBarb"), u = z("IdmWindParticle"), v = z("IdmPrecip3h"), g = z("IdmVisibility"), w = z("IdmWaterTemp"), k = z("IdmTemp"), _ = z("IdmArctic"), D = z("IdmWarZone"), A = z("IdmGmdssArea"), B = z("IdmEcaZone"), W = z("IdmAlertZone"), O = z("IdmPort"), Z = z("IdmLoadLine"), de = z("IdmTimezone"), pe = z("IdmVRA"), me = z("IdmSpecialArea"), ue = z("IdmTerminator"), ye = z("IdmLatLng"), fe = z("IdmMeasure"), ge = z("IdmPoint");
7126
- return a.map ? (L(), x("div", Zo, [
7139
+ function Jo(a, e, t, r, i, o) {
7140
+ var ae, X, Y, be, Q, E, V, ve, K, _e, ie, re, oe, ke, ze, Pe, Te, Ee, Ne, Fe, Ve, Ue, Ze, He, Ge, Je;
7141
+ const n = z("IdmGlLayer"), s = z("IdmENC"), c = z("IdmSigWave"), h = z("IdmSwell"), d = z("IdmPrmsl"), p = z("IdmIceberg"), f = z("IdmTropicals"), m = z("IdmCurrents"), b = z("IdmCurrentParticle"), y = z("IdmWindBarb"), u = z("IdmWindParticle"), v = z("IdmPrecip3h"), g = z("IdmVisibility"), w = z("IdmWaterTemp"), k = z("IdmTemp"), _ = z("IdmArctic"), D = z("IdmWarZone"), A = z("IdmGmdssArea"), B = z("IdmEcaZone"), W = z("IdmAlertZone"), O = z("IdmPort"), J = z("IdmLoadLine"), de = z("IdmTimezone"), pe = z("IdmVRA"), me = z("IdmSpecialArea"), ue = z("IdmTerminator"), ye = z("IdmLatLng"), fe = z("IdmMeasure"), ge = z("IdmPoint");
7142
+ return t.map ? (L(), x("div", Go, [
7127
7143
  P(n, I({
7128
7144
  ref: "layer",
7129
- map: a.map,
7145
+ map: t.map,
7130
7146
  "toggle-version": i.toggleVersion,
7131
7147
  "map-projection": i.mapProjection
7132
- }, t.$attrs, {
7148
+ }, a.$attrs, {
7133
7149
  onWeather: o.handleWeatherLayerChange,
7134
7150
  onOther: o.handleOtherLayerChange,
7135
- onCoordinate: e[0] || (e[0] = (K) => i.showCoord = K),
7136
- onMeasure: e[1] || (e[1] = (K) => i.showMeasure = K),
7137
- onPoint: e[2] || (e[2] = (K) => i.showPoint = K),
7151
+ onCoordinate: e[0] || (e[0] = (ee) => i.showCoord = ee),
7152
+ onMeasure: e[1] || (e[1] = (ee) => i.showMeasure = ee),
7153
+ onPoint: e[2] || (e[2] = (ee) => i.showPoint = ee),
7138
7154
  on3d: o.handle3dToggle,
7139
- onToggleVersion: e[3] || (e[3] = (K) => i.toggleVersion = K)
7155
+ onToggleVersion: e[3] || (e[3] = (ee) => i.toggleVersion = ee)
7140
7156
  }), null, 16, ["map", "toggle-version", "map-projection", "onWeather", "onOther", "on3d"]),
7141
7157
  P(s, I({
7142
- map: a.map,
7143
- token: a.token,
7158
+ map: t.map,
7159
+ token: t.token,
7144
7160
  enabled: (ae = i.otherLayers) == null ? void 0 : ae.enc,
7145
7161
  "toggle-version": i.toggleVersion
7146
- }, t.$attrs, {
7147
- onEnc: e[4] || (e[4] = (K) => i.enc = K)
7162
+ }, a.$attrs, {
7163
+ onEnc: e[4] || (e[4] = (ee) => i.enc = ee)
7148
7164
  }), null, 16, ["map", "token", "enabled", "toggle-version"]),
7149
7165
  P(c, I({
7150
- map: a.map,
7151
- "sig-wave": (J = i.weatherLayers) == null ? void 0 : J["sig-wave-height"],
7152
- "before-layer": a.beforeLayer
7153
- }, t.$attrs), null, 16, ["map", "sig-wave", "before-layer"]),
7166
+ map: t.map,
7167
+ "sig-wave": (X = i.weatherLayers) == null ? void 0 : X["sig-wave-height"],
7168
+ "before-layer": t.beforeLayer
7169
+ }, a.$attrs), null, 16, ["map", "sig-wave", "before-layer"]),
7154
7170
  P(h, I({
7155
- map: a.map,
7156
- swell: (q = i.weatherLayers) == null ? void 0 : q.swell,
7157
- "before-layer": a.beforeLayer
7158
- }, t.$attrs), null, 16, ["map", "swell", "before-layer"]),
7171
+ map: t.map,
7172
+ swell: (Y = i.weatherLayers) == null ? void 0 : Y.swell,
7173
+ "before-layer": t.beforeLayer
7174
+ }, a.$attrs), null, 16, ["map", "swell", "before-layer"]),
7159
7175
  P(d, I({
7160
- map: a.map,
7176
+ map: t.map,
7161
7177
  prmsl: (be = i.weatherLayers) == null ? void 0 : be.prmsl,
7162
- "before-layer": a.beforeLayer,
7178
+ "before-layer": t.beforeLayer,
7163
7179
  "active-weather-layers": i.activeWeatherLayers
7164
- }, t.$attrs), null, 16, ["map", "prmsl", "before-layer", "active-weather-layers"]),
7180
+ }, a.$attrs), null, 16, ["map", "prmsl", "before-layer", "active-weather-layers"]),
7165
7181
  P(p, I({
7166
- map: a.map,
7167
- iceberg: (Y = i.weatherLayers) == null ? void 0 : Y.iceberg,
7168
- "before-layer": a.beforeLayer
7169
- }, t.$attrs), null, 16, ["map", "iceberg", "before-layer"]),
7182
+ map: t.map,
7183
+ iceberg: (Q = i.weatherLayers) == null ? void 0 : Q.iceberg,
7184
+ "before-layer": t.beforeLayer
7185
+ }, a.$attrs), null, 16, ["map", "iceberg", "before-layer"]),
7170
7186
  P(f, I({
7171
- map: a.map,
7172
- date: a.ts,
7187
+ map: t.map,
7188
+ date: t.ts,
7173
7189
  tropicals: (E = i.weatherLayers) == null ? void 0 : E.tropicals,
7174
- "before-layer": a.beforeLayer
7175
- }, t.$attrs), null, 16, ["map", "date", "tropicals", "before-layer"]),
7190
+ "before-layer": t.beforeLayer
7191
+ }, a.$attrs), null, 16, ["map", "date", "tropicals", "before-layer"]),
7176
7192
  P(m, I({
7177
- map: a.map,
7193
+ map: t.map,
7178
7194
  "map-projection": i.mapProjection,
7179
7195
  current: (V = i.weatherLayers) == null ? void 0 : V.current,
7180
- "before-layer": a.beforeLayer,
7196
+ "before-layer": t.beforeLayer,
7181
7197
  "show-particle": i.showCurrentParticle,
7182
7198
  "margin-bottom": i.activeWindLayer ? i.showRampColor ? "84px" : "56px" : i.showRampColor ? "56px" : "30px",
7183
7199
  "toggle-version": i.toggleVersion,
7184
7200
  "weather-layers": i.weatherLayers
7185
- }, t.$attrs, { onParticle: o.handleParticle }), null, 16, ["map", "map-projection", "current", "before-layer", "show-particle", "margin-bottom", "toggle-version", "weather-layers", "onParticle"]),
7201
+ }, a.$attrs, { onParticle: o.handleParticle }), null, 16, ["map", "map-projection", "current", "before-layer", "show-particle", "margin-bottom", "toggle-version", "weather-layers", "onParticle"]),
7186
7202
  P(b, I({
7187
7203
  viewport: i.viewport,
7188
7204
  factor: (ve = i.weatherLayers) == null ? void 0 : ve["current-particle"],
7189
- "before-layer": a.beforeLayer,
7205
+ "before-layer": t.beforeLayer,
7190
7206
  "toggle-version": i.toggleVersion
7191
- }, t.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
7207
+ }, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
7192
7208
  P(y, I({
7193
7209
  ref: "windBarb",
7194
- map: a.map,
7210
+ map: t.map,
7195
7211
  "map-projection": i.mapProjection,
7196
- wind: (Q = i.weatherLayers) == null ? void 0 : Q.wind,
7212
+ wind: (K = i.weatherLayers) == null ? void 0 : K.wind,
7197
7213
  current: (_e = i.weatherLayers) == null ? void 0 : _e.current,
7198
- "before-layer": a.beforeLayer,
7214
+ "before-layer": t.beforeLayer,
7199
7215
  "margin-bottom": i.showRampColor ? "56px" : "30px",
7200
7216
  "show-particle": i.showWindParticle
7201
- }, t.$attrs, {
7217
+ }, a.$attrs, {
7202
7218
  "toggle-version": i.toggleVersion,
7203
7219
  "weather-layers": i.weatherLayers,
7204
7220
  onParticle: o.handleParticle
@@ -7206,114 +7222,114 @@ function Jo(t, e, a, r, i, o) {
7206
7222
  P(u, I({
7207
7223
  viewport: i.viewport,
7208
7224
  factor: (ie = i.weatherLayers) == null ? void 0 : ie["wind-particle"],
7209
- "before-layer": a.beforeLayer,
7225
+ "before-layer": t.beforeLayer,
7210
7226
  "toggle-version": i.toggleVersion
7211
- }, t.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
7227
+ }, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
7212
7228
  P(v, I({
7213
7229
  viewport: i.viewport,
7214
7230
  factor: (re = i.weatherLayers) == null ? void 0 : re.precip3h,
7215
- "before-layer": a.beforeLayer,
7231
+ "before-layer": t.beforeLayer,
7216
7232
  "toggle-version": i.toggleVersion
7217
- }, t.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
7233
+ }, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
7218
7234
  P(g, I({
7219
7235
  viewport: i.viewport,
7220
7236
  factor: (oe = i.weatherLayers) == null ? void 0 : oe.visibility,
7221
- "before-layer": a.beforeLayer,
7237
+ "before-layer": t.beforeLayer,
7222
7238
  "toggle-version": i.toggleVersion
7223
- }, t.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
7239
+ }, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
7224
7240
  P(w, I({
7225
7241
  viewport: i.viewport,
7226
7242
  factor: (ke = i.weatherLayers) == null ? void 0 : ke["water-temp"],
7227
- "before-layer": a.beforeLayer,
7243
+ "before-layer": t.beforeLayer,
7228
7244
  "toggle-version": i.toggleVersion
7229
- }, t.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
7245
+ }, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
7230
7246
  P(k, I({
7231
7247
  viewport: i.viewport,
7232
7248
  factor: (ze = i.weatherLayers) == null ? void 0 : ze.temp,
7233
- "before-layer": a.beforeLayer,
7249
+ "before-layer": t.beforeLayer,
7234
7250
  "toggle-version": i.toggleVersion
7235
- }, t.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
7251
+ }, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
7236
7252
  P(_, I({
7237
7253
  viewport: i.viewport,
7238
7254
  factor: (Pe = i.weatherLayers) == null ? void 0 : Pe.arctic,
7239
- "before-layer": a.beforeLayer,
7255
+ "before-layer": t.beforeLayer,
7240
7256
  "toggle-version": i.toggleVersion
7241
- }, t.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
7257
+ }, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
7242
7258
  P(D, I({
7243
- map: a.map,
7259
+ map: t.map,
7244
7260
  zone: (Te = i.otherLayers) == null ? void 0 : Te["war-zones"],
7245
- "before-layer": a.beforeLayer
7246
- }, t.$attrs), null, 16, ["map", "zone", "before-layer"]),
7261
+ "before-layer": t.beforeLayer
7262
+ }, a.$attrs), null, 16, ["map", "zone", "before-layer"]),
7247
7263
  P(A, I({
7248
- map: a.map,
7264
+ map: t.map,
7249
7265
  area: (Ee = i.otherLayers) == null ? void 0 : Ee["gmdss-areas"],
7250
- "before-layer": a.beforeLayer
7251
- }, t.$attrs), null, 16, ["map", "area", "before-layer"]),
7266
+ "before-layer": t.beforeLayer
7267
+ }, a.$attrs), null, 16, ["map", "area", "before-layer"]),
7252
7268
  P(B, I({
7253
- map: a.map,
7269
+ map: t.map,
7254
7270
  zone: (Ne = i.otherLayers) == null ? void 0 : Ne["eca-zones"],
7255
- "before-layer": a.beforeLayer
7256
- }, t.$attrs), null, 16, ["map", "zone", "before-layer"]),
7271
+ "before-layer": t.beforeLayer
7272
+ }, a.$attrs), null, 16, ["map", "zone", "before-layer"]),
7257
7273
  P(W, I({
7258
- map: a.map,
7274
+ map: t.map,
7259
7275
  zone: (Fe = i.otherLayers) == null ? void 0 : Fe["alert-zones"],
7260
- "before-layer": a.beforeLayer
7261
- }, t.$attrs), null, 16, ["map", "zone", "before-layer"]),
7276
+ "before-layer": t.beforeLayer
7277
+ }, a.$attrs), null, 16, ["map", "zone", "before-layer"]),
7262
7278
  P(O, I({
7263
- map: a.map,
7279
+ map: t.map,
7264
7280
  port: (Ve = i.otherLayers) == null ? void 0 : Ve.ports,
7265
- "before-layer": a.beforeLayer
7266
- }, t.$attrs), null, 16, ["map", "port", "before-layer"]),
7267
- P(Z, I({
7268
- map: a.map,
7281
+ "before-layer": t.beforeLayer
7282
+ }, a.$attrs), null, 16, ["map", "port", "before-layer"]),
7283
+ P(J, I({
7284
+ map: t.map,
7269
7285
  line: (Ue = i.otherLayers) == null ? void 0 : Ue["load-lines"],
7270
- "before-layer": a.beforeLayer
7271
- }, t.$attrs), null, 16, ["map", "line", "before-layer"]),
7286
+ "before-layer": t.beforeLayer
7287
+ }, a.$attrs), null, 16, ["map", "line", "before-layer"]),
7272
7288
  P(de, I({
7273
- map: a.map,
7274
- zone: (Ge = i.otherLayers) == null ? void 0 : Ge["time-zones"],
7275
- "before-layer": a.beforeLayer
7276
- }, t.$attrs), null, 16, ["map", "zone", "before-layer"]),
7289
+ map: t.map,
7290
+ zone: (Ze = i.otherLayers) == null ? void 0 : Ze["time-zones"],
7291
+ "before-layer": t.beforeLayer
7292
+ }, a.$attrs), null, 16, ["map", "zone", "before-layer"]),
7277
7293
  P(pe, I({
7278
- map: a.map,
7294
+ map: t.map,
7279
7295
  area: (He = i.otherLayers) == null ? void 0 : He["voluntary-reporting-area"],
7280
- "before-layer": a.beforeLayer
7281
- }, t.$attrs), null, 16, ["map", "area", "before-layer"]),
7296
+ "before-layer": t.beforeLayer
7297
+ }, a.$attrs), null, 16, ["map", "area", "before-layer"]),
7282
7298
  P(me, I({
7283
- map: a.map,
7284
- area: (Ze = i.otherLayers) == null ? void 0 : Ze["special-area"],
7285
- "before-layer": a.beforeLayer
7286
- }, t.$attrs), null, 16, ["map", "area", "before-layer"]),
7299
+ map: t.map,
7300
+ area: (Ge = i.otherLayers) == null ? void 0 : Ge["special-area"],
7301
+ "before-layer": t.beforeLayer
7302
+ }, a.$attrs), null, 16, ["map", "area", "before-layer"]),
7287
7303
  P(ue, I({
7288
- map: a.map,
7304
+ map: t.map,
7289
7305
  area: (Je = i.otherLayers) == null ? void 0 : Je["day-night"]
7290
- }, t.$attrs), null, 16, ["map", "area"]),
7306
+ }, a.$attrs), null, 16, ["map", "area"]),
7291
7307
  P(ye, I({
7292
- map: a.map,
7308
+ map: t.map,
7293
7309
  show: i.showCoord,
7294
7310
  "toggle-version": i.toggleVersion
7295
- }, t.$attrs), null, 16, ["map", "show", "toggle-version"]),
7311
+ }, a.$attrs), null, 16, ["map", "show", "toggle-version"]),
7296
7312
  P(fe, I({
7297
- map: a.map,
7313
+ map: t.map,
7298
7314
  show: i.showMeasure
7299
- }, t.$attrs), null, 16, ["map", "show"]),
7315
+ }, a.$attrs), null, 16, ["map", "show"]),
7300
7316
  P(ge, I({
7301
- map: a.map,
7317
+ map: t.map,
7302
7318
  show: i.showPoint,
7303
7319
  meteo: i.meteo
7304
- }, t.$attrs, { onPoint: o.handlePointChange }), null, 16, ["map", "show", "meteo", "onPoint"])
7320
+ }, a.$attrs, { onPoint: o.handlePointChange }), null, 16, ["map", "show", "meteo", "onPoint"])
7305
7321
  ])) : $("", !0);
7306
7322
  }
7307
7323
  const Xo = /* @__PURE__ */ T(Ho, [["render", Jo]]), rs = {
7308
- install(t) {
7309
- t.component("MapboxGL", Xo), t.component("TropicalGL", Ye), t.component("LatLngGL", Qe);
7324
+ install(a) {
7325
+ a.component("MapboxGL", Xo), a.component("TropicalGL", Ye), a.component("LatLngGL", Qe);
7310
7326
  }
7311
7327
  };
7312
7328
  export {
7313
7329
  Qe as LatLngGL,
7314
7330
  Xo as MapboxGL,
7315
7331
  rs as MapboxGLPlugin,
7316
- Zt as MapboxHelper,
7332
+ Gt as MapboxHelper,
7317
7333
  U as ParticleSchema,
7318
7334
  Ye as TropicalGL,
7319
7335
  Oe as Viewport,