@idmwx/idmui-gl3 4.4.6 → 4.4.8

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,24 +1,24 @@
1
- var at = Object.defineProperty;
2
- var it = (a, e, t) => e in a ? at(a, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : a[e] = t;
3
- var R = (a, e, t) => (it(a, typeof e != "symbol" ? e + "" : e, t), t);
4
- import { resolveComponent as z, openBlock as x, createElementBlock as C, createElementVNode as l, normalizeStyle as U, createVNode as k, withCtx as Y, normalizeClass as N, Fragment as Ae, renderList as $e, toDisplayString as S, createCommentVNode as j, createTextVNode as Fe, pushScopeId as H, popScopeId as G, withDirectives as je, vShow as Ne, createStaticVNode as rt, mergeProps as E } from "vue";
5
- import * as L from "@turf/turf";
6
- import ot from "@mapbox/sphericalmercator";
1
+ var Ve = Object.defineProperty;
2
+ var Ue = (a, e, t) => e in a ? Ve(a, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : a[e] = t;
3
+ var R = (a, e, t) => (Ue(a, typeof e != "symbol" ? e + "" : e, t), t);
4
+ import { resolveComponent as P, openBlock as _, createElementBlock as C, createElementVNode as n, normalizeStyle as U, createVNode as k, withCtx as X, normalizeClass as j, Fragment as _e, renderList as Se, toDisplayString as S, createCommentVNode as B, createTextVNode as Ie, withDirectives as Pe, createStaticVNode as Ze, vShow as ze, mergeProps as I } from "vue";
5
+ import * as x from "@turf/turf";
6
+ import He from "@mapbox/sphericalmercator";
7
7
  import Z from "moment";
8
- import te from "mapbox-gl";
9
- import { TropicalHelper as Qe, LngLatHelper as D, LaneHelper as ee } from "@idm-plugin/geo";
10
- import ne from "axios";
11
- var st = Object.defineProperty, nt = (a, e, t) => e in a ? st(a, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : a[e] = t, Ce = (a, e, t) => (nt(a, typeof e != "symbol" ? e + "" : e, t), t);
12
- class De {
8
+ import ee from "mapbox-gl";
9
+ import { TropicalHelper as Oe, LngLatHelper as D, LaneHelper as K } from "@idm-plugin/geo";
10
+ import oe from "axios";
11
+ var Ge = Object.defineProperty, Je = (a, e, t) => e in a ? Ge(a, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : a[e] = t, ge = (a, e, t) => (Je(a, typeof e != "symbol" ? e + "" : e, t), t);
12
+ class Ce {
13
13
  }
14
- Ce(De, "LEVEL", {
14
+ ge(Ce, "LEVEL", {
15
15
  Basic: 1,
16
16
  Prime: 2,
17
17
  Supper: 1024
18
18
  });
19
- class Me {
19
+ class ke {
20
20
  }
21
- Ce(Me, "WEATHER_LAYERS", [
21
+ ge(ke, "WEATHER_LAYERS", [
22
22
  {
23
23
  weight: 1,
24
24
  name: "Wind",
@@ -243,7 +243,7 @@ Ce(Me, "WEATHER_LAYERS", [
243
243
  type: "jpg"
244
244
  }
245
245
  ]), // 其它图层
246
- Ce(Me, "OTHER_LAYERS", [
246
+ ge(ke, "OTHER_LAYERS", [
247
247
  {
248
248
  weight: 1,
249
249
  name: "War Zones",
@@ -355,9 +355,9 @@ Ce(Me, "OTHER_LAYERS", [
355
355
  type: "origin"
356
356
  }
357
357
  ]);
358
- class Oe {
358
+ class Ee {
359
359
  }
360
- Ce(Oe, "WEATHER_TAG", [
360
+ ge(Ee, "WEATHER_TAG", [
361
361
  {
362
362
  weight: 4,
363
363
  // 2^2
@@ -383,7 +383,7 @@ Ce(Oe, "WEATHER_TAG", [
383
383
  positive: !0
384
384
  }
385
385
  ]), // 航行相关标签, 2^11 <= weight <= 2^20
386
- Ce(Oe, "SAILING_TAG", [
386
+ ge(Ee, "SAILING_TAG", [
387
387
  {
388
388
  weight: 2048,
389
389
  // 2^11
@@ -425,7 +425,7 @@ Ce(Oe, "SAILING_TAG", [
425
425
  positive: !0
426
426
  }
427
427
  ]), // 其他标签, 2^21 <= weight <= 2^31
428
- Ce(Oe, "OTHER_TAG", [
428
+ ge(Ee, "OTHER_TAG", [
429
429
  {
430
430
  weight: 2097152,
431
431
  // 2^21
@@ -480,7 +480,7 @@ const T = (a, e) => {
480
480
  for (const [r, i] of e)
481
481
  t[r] = i;
482
482
  return t;
483
- }, lt = {
483
+ }, Xe = {
484
484
  name: "IdmGlLayer",
485
485
  props: {
486
486
  map: {
@@ -503,22 +503,36 @@ const T = (a, e) => {
503
503
  isLogin: {
504
504
  type: Boolean,
505
505
  default: void 0
506
+ },
507
+ showWindFeather: {
508
+ type: Boolean,
509
+ default: void 0
510
+ },
511
+ showWindParticle: {
512
+ type: Boolean,
513
+ default: void 0
514
+ },
515
+ showCurrentIsoband: {
516
+ type: Boolean,
517
+ default: void 0
518
+ },
519
+ showCurrentParticle: {
520
+ type: Boolean,
521
+ default: void 0
506
522
  }
507
523
  },
508
524
  emits: ["weather", "other", "coordinate", "measure", "point", "3d", "layerToggle", "handleToggleVersion"],
509
525
  data() {
510
526
  return {
511
- source: "",
512
- weatherLayers: [],
513
- activeWeatherLayers: [],
514
527
  autoActive: !0,
515
- otherLayers: [],
516
528
  layers: {
517
529
  weather: [
518
- ...Me.WEATHER_LAYERS.filter((a) => !["swell-height", "swell-direction", "current-direction", "current-speed"].includes(a.key))
530
+ ...ke.WEATHER_LAYERS.filter((a) => !["swell-height", "swell-direction", "current-direction", "current-speed"].includes(a.key))
519
531
  ],
520
- other: [...Me.OTHER_LAYERS.filter((a) => a.key !== "world12nm" && a.enabled)]
532
+ other: [...ke.OTHER_LAYERS.filter((a) => a.key !== "world12nm" && a.enabled)]
521
533
  },
534
+ weatherLayers: [],
535
+ otherLayers: [],
522
536
  weatherLayersCache: "weatherLayersCache",
523
537
  autoActiveCache: "autoActiveCache",
524
538
  otherLayersCache: "otherLayersCache",
@@ -532,6 +546,7 @@ const T = (a, e) => {
532
546
  v: "0.0.7",
533
547
  k: "glCacheVersion"
534
548
  },
549
+ source: "",
535
550
  right: 10,
536
551
  rampColorLayers: ["visibility", "precip3h", "temp", "water-temp", "arctic"]
537
552
  };
@@ -539,9 +554,14 @@ const T = (a, e) => {
539
554
  computed: {
540
555
  computeLayerClass() {
541
556
  return function(a, e) {
557
+ var r;
542
558
  let t = "layer flex-between";
543
- return e.some((r) => r.key === a.key) && (t = "layer flex-between active"), (!a.enabled || this.rampColorLayers.includes(a.key) && this.mapProjection === "globe") && (t = "layer flex-between disabled"), t;
559
+ return e.some((i) => i.key === a.key) && (t = t + " active"), (!a.enabled || (r = this.layers.weather) != null && r.some((i) => i.key === a.key) && !this.autoActive || this.rampColorLayers.includes(a.key) && this.mapProjection === "globe") && (t = t + " disabled"), t;
544
560
  };
561
+ },
562
+ hasCollectedLayers() {
563
+ var a;
564
+ return ((a = this.layers.weather.filter((e) => e.collected)) == null ? void 0 : a.length) > 0;
545
565
  }
546
566
  },
547
567
  watch: {
@@ -557,46 +577,54 @@ const T = (a, e) => {
557
577
  handler(a, e) {
558
578
  a && e && a !== e && this.handleConfirm();
559
579
  }
580
+ },
581
+ showWindFeather: {
582
+ handler() {
583
+ !this.showWindFeather && !this.showWindParticle && this.handleWeatherLayerPick({ weight: 1, name: "Wind", key: "wind", enabled: !0, type: "json", particle: !0 });
584
+ }
585
+ },
586
+ showWindParticle: {
587
+ handler() {
588
+ !this.showWindFeather && !this.showWindParticle && this.handleWeatherLayerPick({ weight: 1, name: "Wind", key: "wind", enabled: !0, type: "json", particle: !0 });
589
+ }
590
+ },
591
+ showCurrentIsoband: {
592
+ handler() {
593
+ !this.showCurrentIsoband && !this.showCurrentParticle && this.handleWeatherLayerPick({ weight: 96, name: "Current", key: "current", vendor: "cmems", merge: !0, h5: !0, enabled: !0 });
594
+ }
595
+ },
596
+ showCurrentParticle: {
597
+ handler() {
598
+ !this.showCurrentIsoband && !this.showCurrentParticle && this.handleWeatherLayerPick({ weight: 96, name: "Current", key: "current", vendor: "cmems", merge: !0, h5: !0, enabled: !0 });
599
+ }
560
600
  }
561
601
  },
562
602
  mounted() {
563
603
  const a = localStorage.getItem(this.version.k);
564
604
  this.version.v !== a && (localStorage.removeItem(this.weatherLayersCache), localStorage.removeItem(this.collectedLayerCache), localStorage.removeItem(this.otherLayersCache), localStorage.removeItem("windFeatherCache"), localStorage.removeItem("currentJsonCache"), localStorage.setItem(this.version.k, this.version.v));
565
- let e = localStorage.getItem(this.collectedLayerCache), t = JSON.parse(
566
- e || '[{"weight":1,"name":"Wind","key":"wind","collected":true},{"weight":4096,"name":"Pressure","key":"prmsl","collected":true},{"weight":256,"name":"Tropicals","key":"tropicals","collected":true}]'
605
+ let e = localStorage.getItem(this.autoActiveCache);
606
+ this.autoActive = e !== "false", e = localStorage.getItem(this.collectedLayerCache);
607
+ let t = JSON.parse(
608
+ e || '[{"weight": 16, "name": "Sig Waves", "key": "sig-wave-height", "collected": true},{"weight": 1, "name": "Wind", "key": "wind", "h5": true, "collected": true},{"weight": 96, "name": "Current", "key": "current", "collected": true},{"weight": 256, "name": "Tropicals", "key": "tropicals", "collected": true},{"weight": 4096, "name": "Pressure", "h5": true, "key": "prmsl", "collected": true},{"weight": 6, "name": "Swell", "key": "swell", "collected": true}]'
567
609
  );
568
610
  this.layers.weather.forEach((r) => {
569
611
  r.collected = !!t.some((i) => i.key === r.key && i.collected);
570
- }), e = localStorage.getItem(this.autoActiveCache), this.autoActive = e !== "false", e = localStorage.getItem(this.weatherLayersCache), t = JSON.parse(
612
+ }), e = localStorage.getItem(this.weatherLayersCache), t = JSON.parse(
571
613
  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"}]'
572
- ), this.weatherLayers = t, this.autoActive && (this.activeWeatherLayers = [...t]), e = localStorage.getItem(this.otherLayersCache), t = JSON.parse(e || '[{"weight":4,"name":"ECA Zones","key":"eca-zones","enabled":true,"type":"json"}]'), this.otherLayers = t, e = localStorage.getItem(this.sourceCache), this.source = e || "GFS", this.handleConfirm();
614
+ ), this.autoActive && (this.weatherLayers = [...t]), e = localStorage.getItem(this.otherLayersCache), t = JSON.parse(e || '[{"weight":4,"name":"ECA Zones","key":"eca-zones","enabled":true,"type":"json"}]'), this.otherLayers = t, e = localStorage.getItem(this.sourceCache), this.source = e || "GFS", this.handleConfirm();
573
615
  },
574
616
  methods: {
575
617
  handleConfirm() {
576
- 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);
618
+ this.$emit("weather", this.weatherLayers, this.source), this.$emit("other", this.otherLayers), localStorage.setItem(this.autoActiveCache, this.autoActive), localStorage.setItem(this.sourceCache, this.source);
577
619
  },
578
620
  handleWeatherLayerPick(a) {
579
- if (this.rampColorLayers.includes(a.key) && this.mapProjection === "globe")
621
+ if (this.rampColorLayers.includes(a.key) && this.mapProjection === "globe" || !this.autoActive)
580
622
  return !1;
581
- 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);
623
+ this.weatherLayers.some((e) => e.key === a.key) ? this.weatherLayers = this.weatherLayers.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.weatherLayers.push(a)), this.$emit("weather", this.weatherLayers, this.source), localStorage.setItem(this.weatherLayersCache, JSON.stringify(this.weatherLayers)), localStorage.setItem(this.sourceCache, this.source);
582
624
  },
583
625
  handleWeatherLayerCollect(a) {
584
626
  var e;
585
- if (!a.collected && ((e = this.layers.weather.filter((t) => t.collected)) == null ? void 0 : e.length) >= 6)
586
- return !1;
587
- a.collected = !a.collected, localStorage.setItem(this.collectedLayerCache, JSON.stringify(this.layers.weather)), this.$emit("handleToggleVersion");
588
- },
589
- handleActiveWeatherLayerPick(a) {
590
- if (this.rampColorLayers.includes(a.key) && this.mapProjection === "globe")
591
- return !1;
592
- if (this.activeWeatherLayers.some((e) => e.key === a.key))
593
- this.activeWeatherLayers = this.activeWeatherLayers.filter((e) => e.key !== a.key);
594
- else if (a.enabled) {
595
- this.activeWeatherLayers.push(a);
596
- for (const e of this.weatherLayers)
597
- a.weight > e.weight && a.weight & e.weight && this.activeWeatherLayers.push(e);
598
- }
599
- this.handleWeatherLayerPick(a);
627
+ a.collected = !a.collected, a.collected && ((e = this.layers.weather.filter((t) => t.collected)) == null ? void 0 : e.length) >= 6 && (this.layers.weather.filter((t) => t.collected)[0].collected = !1), localStorage.setItem(this.collectedLayerCache, JSON.stringify(this.layers.weather)), this.$emit("handleToggleVersion");
600
628
  },
601
629
  handleOtherLayerPick(a) {
602
630
  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);
@@ -604,6 +632,9 @@ const T = (a, e) => {
604
632
  handleMenuToggle() {
605
633
  this.$emit("layerToggle", !this.layerToggle);
606
634
  },
635
+ toggleAutoActive() {
636
+ this.autoActive = !this.autoActive, localStorage.setItem(this.autoActiveCache, this.autoActive), this.autoActive ? this.$emit("weather", this.weatherLayers, this.source) : this.$emit("weather", [], this.source);
637
+ },
607
638
  handleCoordToggle() {
608
639
  this.showCoord = !this.showCoord, this.$emit("coordinate", this.showCoord);
609
640
  },
@@ -617,75 +648,57 @@ const T = (a, e) => {
617
648
  this.show3d = !this.show3d, this.$emit("3d", this.show3d);
618
649
  }
619
650
  }
620
- }, ct = { class: "idm-gl3-layer" }, ht = { class: "bar-item layer-bars" }, dt = /* @__PURE__ */ l("span", { class: "iconfont" }, "", -1), pt = [
621
- dt
622
- ], mt = { class: "bar-item tool-bars" }, ut = /* @__PURE__ */ l("span", { class: "iconfont" }, "", -1), yt = [
623
- ut
624
- ], ft = /* @__PURE__ */ l("span", { class: "iconfont" }, "", -1), gt = [
625
- ft
626
- ], bt = /* @__PURE__ */ l("span", { class: "iconfont" }, "", -1), vt = [
627
- bt
628
- ], wt = /* @__PURE__ */ l("span", { class: "iconfont" }, "", -1), _t = [
629
- wt
630
- ], Lt = ["onClick"], xt = /* @__PURE__ */ l("div", { class: "checkbox" }, null, -1), Ct = { class: "header-box flex-between" }, kt = /* @__PURE__ */ l("div", null, "Layers", -1), St = { class: "weather-layers card-bg" }, zt = /* @__PURE__ */ l("div", { class: "layers-title flex-between" }, [
631
- /* @__PURE__ */ l("div", null, "Weather Layers")
632
- ], -1), Pt = { class: "layers-body" }, Tt = ["onClick"], It = /* @__PURE__ */ l("div", { class: "checkbox" }, null, -1), Et = ["onClick"], Rt = {
651
+ }, Ye = { class: "idm-gl3-layer" }, qe = { class: "bar-item layer-bars" }, Qe = { class: "bar-item tool-bars" }, Ke = ["onClick"], et = { class: "header-box flex-between" }, tt = { class: "weather-layers card-bg" }, at = { class: "layers-body" }, it = ["onClick"], rt = ["onClick"], ot = {
633
652
  key: 0,
634
653
  class: "iconfont bookmark active"
635
- }, At = {
654
+ }, st = {
636
655
  key: 1,
637
656
  class: "iconfont bookmark inactive"
638
- }, Dt = /* @__PURE__ */ l("div", { class: "tip flex-start" }, [
639
- /* @__PURE__ */ l("i", {
640
- class: "iconfont bookmark",
641
- style: { "align-self": "flex-start", padding: "5px 5px 0 0" }
642
- }, ""),
643
- /* @__PURE__ */ l("div", null, "Bookmark your favorite layer to homepage(Max 6)")
644
- ], -1), Mt = { class: "other-layers card-bg" }, $t = /* @__PURE__ */ l("div", { class: "layers-title" }, "Other Layers", -1), jt = { class: "layers-body" }, Nt = ["onClick"], Bt = { class: "flex-start" }, Wt = /* @__PURE__ */ l("div", { class: "switch flex-center" }, [
645
- /* @__PURE__ */ l("i", { class: "iconfont open" }, ""),
646
- /* @__PURE__ */ l("i", { class: "iconfont close" }, "")
647
- ], -1), Ot = { class: "source-layers card-bg" }, Ft = /* @__PURE__ */ l("span", { class: "layers-title" }, "Forecast Model", -1), Vt = { class: "layers-body" };
648
- function Ut(a, e, t, r, i, o) {
649
- var p;
650
- const s = z("ElTooltip"), n = z("ElRadio"), c = z("ElRadioGroup"), d = z("ElScrollbar");
651
- return x(), C("div", ct, [
652
- l("div", {
657
+ }, nt = { class: "other-layers card-bg" }, lt = { class: "layers-body" }, ct = ["onClick"], ht = { class: "flex-start" }, dt = { class: "source-layers card-bg" }, pt = { class: "layers-body" };
658
+ function mt(a, e, t, r, i, o) {
659
+ const s = P("ElTooltip"), l = P("ElRadio"), h = P("ElRadioGroup"), d = P("ElScrollbar");
660
+ return _(), C("div", Ye, [
661
+ n("div", {
653
662
  class: "menu-bar-box",
654
663
  style: U({ top: t.top + 10 + "px", right: i.right + "px" })
655
664
  }, [
656
- l("div", ht, [
665
+ n("div", qe, [
657
666
  k(s, {
658
667
  placement: "left",
659
668
  effect: "light",
660
669
  content: "Menu",
661
- "show-after": 2e3
670
+ "show-after": 1e3
662
671
  }, {
663
- default: Y(() => [
664
- l("div", {
665
- class: N(t.layerToggle ? "menu-icon active" : "menu-icon"),
666
- onClick: e[0] || (e[0] = (...h) => o.handleMenuToggle && o.handleMenuToggle(...h))
667
- }, pt, 2)
672
+ default: X(() => [
673
+ n("div", {
674
+ class: j(t.layerToggle ? "menu-icon active" : "menu-icon"),
675
+ onClick: e[0] || (e[0] = (...c) => o.handleMenuToggle && o.handleMenuToggle(...c))
676
+ }, e[9] || (e[9] = [
677
+ n("span", { class: "iconfont" }, "", -1)
678
+ ]), 2)
668
679
  ]),
669
680
  _: 1
670
681
  })
671
682
  ])
672
683
  ], 4),
673
- l("div", {
684
+ n("div", {
674
685
  class: "menu-bar-box",
675
686
  style: U({ top: t.top + 160 + "px", right: i.right + "px" })
676
687
  }, [
677
- l("div", mt, [
688
+ n("div", Qe, [
678
689
  k(s, {
679
690
  placement: "left",
680
691
  effect: "light",
681
692
  content: "Measure",
682
- "show-after": 2e3
693
+ "show-after": 1e3
683
694
  }, {
684
- default: Y(() => [
685
- l("div", {
686
- class: N(i.showMeasure ? "menu-icon active" : "menu-icon"),
687
- onClick: e[1] || (e[1] = (...h) => o.handleMeasureToggle && o.handleMeasureToggle(...h))
688
- }, yt, 2)
695
+ default: X(() => [
696
+ n("div", {
697
+ class: j(i.showMeasure ? "menu-icon active" : "menu-icon"),
698
+ onClick: e[1] || (e[1] = (...c) => o.handleMeasureToggle && o.handleMeasureToggle(...c))
699
+ }, e[10] || (e[10] = [
700
+ n("span", { class: "iconfont" }, "", -1)
701
+ ]), 2)
689
702
  ]),
690
703
  _: 1
691
704
  }),
@@ -693,13 +706,15 @@ function Ut(a, e, t, r, i, o) {
693
706
  placement: "left",
694
707
  effect: "light",
695
708
  content: "Point Meteo",
696
- "show-after": 2e3
709
+ "show-after": 1e3
697
710
  }, {
698
- default: Y(() => [
699
- l("div", {
700
- class: N(i.showPoint ? "menu-icon active" : "menu-icon"),
701
- onClick: e[2] || (e[2] = (...h) => o.handlePointToggle && o.handlePointToggle(...h))
702
- }, gt, 2)
711
+ default: X(() => [
712
+ n("div", {
713
+ class: j(i.showPoint ? "menu-icon active" : "menu-icon"),
714
+ onClick: e[2] || (e[2] = (...c) => o.handlePointToggle && o.handlePointToggle(...c))
715
+ }, e[11] || (e[11] = [
716
+ n("span", { class: "iconfont" }, "", -1)
717
+ ]), 2)
703
718
  ]),
704
719
  _: 1
705
720
  }),
@@ -707,13 +722,15 @@ function Ut(a, e, t, r, i, o) {
707
722
  placement: "left",
708
723
  effect: "light",
709
724
  content: "Grid",
710
- "show-after": 2e3
725
+ "show-after": 1e3
711
726
  }, {
712
- default: Y(() => [
713
- l("div", {
714
- class: N(i.showCoord ? "menu-icon active" : "menu-icon"),
715
- onClick: e[3] || (e[3] = (...h) => o.handleCoordToggle && o.handleCoordToggle(...h))
716
- }, vt, 2)
727
+ default: X(() => [
728
+ n("div", {
729
+ class: j(i.showCoord ? "menu-icon active" : "menu-icon"),
730
+ onClick: e[3] || (e[3] = (...c) => o.handleCoordToggle && o.handleCoordToggle(...c))
731
+ }, e[12] || (e[12] = [
732
+ n("span", { class: "iconfont" }, "", -1)
733
+ ]), 2)
717
734
  ]),
718
735
  _: 1
719
736
  }),
@@ -721,109 +738,142 @@ function Ut(a, e, t, r, i, o) {
721
738
  placement: "left",
722
739
  effect: "light",
723
740
  content: "3D",
724
- "show-after": 2e3
741
+ "show-after": 1e3
725
742
  }, {
726
- default: Y(() => [
727
- l("div", {
728
- class: N(i.show3d ? "menu-icon active" : "menu-icon"),
729
- onClick: e[4] || (e[4] = (...h) => o.handle3DToggle && o.handle3DToggle(...h))
730
- }, _t, 2)
743
+ default: X(() => [
744
+ n("div", {
745
+ class: j(i.show3d ? "menu-icon active" : "menu-icon"),
746
+ onClick: e[4] || (e[4] = (...c) => o.handle3DToggle && o.handle3DToggle(...c))
747
+ }, e[13] || (e[13] = [
748
+ n("span", { class: "iconfont" }, "", -1)
749
+ ]), 2)
731
750
  ]),
732
751
  _: 1
733
752
  })
734
753
  ])
735
754
  ], 4),
736
- ((p = i.layers.weather.filter((h) => h.collected)) == null ? void 0 : p.length) > 0 ? (x(), C("div", {
755
+ o.hasCollectedLayers ? (_(), C("div", {
737
756
  key: 0,
738
- class: "active-layers",
757
+ class: j(["active-layers flex-between", i.autoActive ? "active" : ""]),
739
758
  style: U({ right: i.right + "px", bottom: "100px" })
740
759
  }, [
741
- (x(!0), C(Ae, null, $e(i.layers.weather.filter((h) => h.collected), (h) => (x(), C("div", {
742
- key: h.key,
743
- class: N(o.computeLayerClass(h, i.activeWeatherLayers)),
744
- onClick: (g) => o.handleActiveWeatherLayerPick(h)
745
- }, [
746
- xt,
747
- l("span", null, S(h.name), 1)
748
- ], 10, Lt))), 128))
749
- ], 4)) : j("", !0),
750
- l("div", {
760
+ n("div", null, [
761
+ (_(!0), C(_e, null, Se(i.layers.weather.filter((c) => c.collected), (c) => (_(), C("div", {
762
+ key: c.key,
763
+ class: j(o.computeLayerClass(c, i.weatherLayers)),
764
+ onClick: (p) => o.handleWeatherLayerPick(c)
765
+ }, [
766
+ e[14] || (e[14] = n("div", { class: "checkbox" }, null, -1)),
767
+ n("span", null, S(c.name), 1)
768
+ ], 10, Ke))), 128))
769
+ ]),
770
+ n("div", {
771
+ class: "switch flex-center",
772
+ style: { "margin-top": "4px", "align-self": "flex-start" },
773
+ onClick: e[5] || (e[5] = (...c) => o.toggleAutoActive && o.toggleAutoActive(...c))
774
+ }, e[15] || (e[15] = [
775
+ n("i", { class: "iconfont open" }, "", -1),
776
+ n("i", { class: "iconfont close" }, "", -1)
777
+ ]))
778
+ ], 6)) : B("", !0),
779
+ n("div", {
751
780
  class: "available-layers flex-center",
752
781
  style: U({ top: t.top + "px", right: t.layerToggle ? "0px" : "-240px" })
753
782
  }, [
754
- l("div", {
755
- class: N(["list-box", t.layerToggle ? "right-bar" : ""])
783
+ n("div", {
784
+ class: j(["list-box", t.layerToggle ? "right-bar" : ""])
756
785
  }, [
757
- l("div", Ct, [
758
- kt,
759
- l("div", {
786
+ n("div", et, [
787
+ e[16] || (e[16] = n("div", null, "Layers", -1)),
788
+ n("div", {
760
789
  class: "iconfont close-btn",
761
- onClick: e[5] || (e[5] = (...h) => o.handleMenuToggle && o.handleMenuToggle(...h))
790
+ onClick: e[6] || (e[6] = (...c) => o.handleMenuToggle && o.handleMenuToggle(...c))
762
791
  }, "")
763
792
  ]),
764
793
  k(d, { style: { flex: "1" } }, {
765
- default: Y(() => [
766
- l("div", St, [
767
- zt,
768
- l("div", Pt, [
769
- (x(!0), C(Ae, null, $e(i.layers.weather, (h) => (x(), C(Ae, {
770
- key: h.key
794
+ default: X(() => [
795
+ n("div", tt, [
796
+ n("div", {
797
+ class: j(["layers-title flex-between", i.autoActive ? "active" : ""])
798
+ }, [
799
+ e[18] || (e[18] = n("div", null, "Weather Layers", -1)),
800
+ n("div", {
801
+ class: "switch flex-center",
802
+ style: { "margin-right": "0" },
803
+ onClick: e[7] || (e[7] = (...c) => o.toggleAutoActive && o.toggleAutoActive(...c))
804
+ }, e[17] || (e[17] = [
805
+ n("i", { class: "iconfont open" }, "", -1),
806
+ n("i", { class: "iconfont close" }, "", -1)
807
+ ]))
808
+ ], 2),
809
+ n("div", at, [
810
+ (_(!0), C(_e, null, Se(i.layers.weather, (c) => (_(), C(_e, {
811
+ key: c.key
771
812
  }, [
772
- h.hide ? j("", !0) : (x(), C("div", {
813
+ c.hide ? B("", !0) : (_(), C("div", {
773
814
  key: 0,
774
- class: N(o.computeLayerClass(h, i.weatherLayers))
815
+ class: j(o.computeLayerClass(c, i.weatherLayers))
775
816
  }, [
776
- l("div", {
817
+ n("div", {
777
818
  class: "flex-start",
778
- onClick: (g) => o.handleWeatherLayerPick(h)
819
+ onClick: (p) => o.handleWeatherLayerPick(c)
779
820
  }, [
780
- It,
781
- l("span", null, S(h.name), 1)
782
- ], 8, Tt),
783
- l("div", {
784
- onClick: (g) => o.handleWeatherLayerCollect(h)
821
+ e[19] || (e[19] = n("div", { class: "checkbox" }, null, -1)),
822
+ n("span", null, S(c.name), 1)
823
+ ], 8, it),
824
+ n("div", {
825
+ onClick: (p) => o.handleWeatherLayerCollect(c)
785
826
  }, [
786
- h.collected ? (x(), C("i", Rt, "")) : (x(), C("i", At, ""))
787
- ], 8, Et)
827
+ c.collected ? (_(), C("i", ot, "")) : (_(), C("i", st, ""))
828
+ ], 8, rt)
788
829
  ], 2))
789
830
  ], 64))), 128)),
790
- Dt
831
+ e[20] || (e[20] = n("div", { class: "tip flex-start" }, [
832
+ n("i", {
833
+ class: "iconfont bookmark",
834
+ style: { "align-self": "flex-start", padding: "5px 5px 0 0" }
835
+ }, ""),
836
+ n("div", null, "Bookmark your favorite layer to homepage(Max 6)")
837
+ ], -1))
791
838
  ])
792
839
  ]),
793
- l("div", Mt, [
794
- $t,
795
- l("div", jt, [
796
- (x(!0), C(Ae, null, $e(i.layers.other, (h) => (x(), C("div", {
797
- key: h.key,
798
- class: N(o.computeLayerClass(h, i.otherLayers)),
799
- onClick: (g) => o.handleOtherLayerPick(h)
840
+ n("div", nt, [
841
+ e[22] || (e[22] = n("div", { class: "layers-title" }, "Other Layers", -1)),
842
+ n("div", lt, [
843
+ (_(!0), C(_e, null, Se(i.layers.other, (c) => (_(), C("div", {
844
+ key: c.key,
845
+ class: j(o.computeLayerClass(c, i.otherLayers)),
846
+ onClick: (p) => o.handleOtherLayerPick(c)
800
847
  }, [
801
- l("div", Bt, [
802
- Wt,
803
- l("span", null, S(h.name), 1)
848
+ n("div", ht, [
849
+ e[21] || (e[21] = n("div", { class: "switch flex-center" }, [
850
+ n("i", { class: "iconfont open" }, ""),
851
+ n("i", { class: "iconfont close" }, "")
852
+ ], -1)),
853
+ n("span", null, S(c.name), 1)
804
854
  ])
805
- ], 10, Nt))), 128))
855
+ ], 10, ct))), 128))
806
856
  ])
807
857
  ]),
808
- l("div", Ot, [
809
- Ft,
810
- l("div", Vt, [
811
- k(c, {
858
+ n("div", dt, [
859
+ e[25] || (e[25] = n("span", { class: "layers-title" }, "Forecast Model", -1)),
860
+ n("div", pt, [
861
+ k(h, {
812
862
  modelValue: i.source,
813
- "onUpdate:modelValue": e[6] || (e[6] = (h) => i.source = h),
863
+ "onUpdate:modelValue": e[8] || (e[8] = (c) => i.source = c),
814
864
  class: "layer-radio flex-col-center-start"
815
865
  }, {
816
- default: Y(() => [
817
- k(n, { value: "GFS" }, {
818
- default: Y(() => [
819
- Fe("GFS")
820
- ]),
866
+ default: X(() => [
867
+ k(l, { value: "GFS" }, {
868
+ default: X(() => e[23] || (e[23] = [
869
+ Ie("GFS")
870
+ ])),
821
871
  _: 1
822
872
  }),
823
- k(n, { value: "CMEMS" }, {
824
- default: Y(() => [
825
- Fe("CMEMS")
826
- ]),
873
+ k(l, { value: "CMEMS" }, {
874
+ default: X(() => e[24] || (e[24] = [
875
+ Ie("CMEMS")
876
+ ])),
827
877
  _: 1
828
878
  })
829
879
  ]),
@@ -838,8 +888,8 @@ function Ut(a, e, t, r, i, o) {
838
888
  ], 4)
839
889
  ]);
840
890
  }
841
- const Zt = /* @__PURE__ */ T(lt, [["render", Ut]]);
842
- const Ht = {
891
+ const ut = /* @__PURE__ */ T(Xe, [["render", mt]]);
892
+ const yt = {
843
893
  name: "IdmWindBarb",
844
894
  props: {
845
895
  map: {
@@ -865,12 +915,12 @@ const Ht = {
865
915
  type: Number
866
916
  }
867
917
  },
868
- emits: ["particle"],
918
+ emits: ["particle", "showWindFeather"],
869
919
  data() {
870
920
  return {
871
921
  source: "wind-barb-source",
872
922
  barbs: [0, 2, 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60, 65, 70, 75, 80, 85, 90, 95, 100, 105],
873
- empty: L.featureCollection([]),
923
+ empty: x.featureCollection([]),
874
924
  showFeather: localStorage.getItem("windFeatherCache") === "true" || !1,
875
925
  windFeatherCache: "windFeatherCache",
876
926
  right: 10,
@@ -893,7 +943,7 @@ const Ht = {
893
943
  },
894
944
  showFeather: {
895
945
  handler() {
896
- localStorage.setItem(this.windFeatherCache, this.showFeather), this.handleToggle();
946
+ localStorage.setItem(this.windFeatherCache, this.showFeather), this.handleToggle(), this.$emit("showWindFeather", this.showFeather);
897
947
  },
898
948
  immediate: !0
899
949
  },
@@ -917,28 +967,28 @@ const Ht = {
917
967
  }, 500);
918
968
  else if (this.wind) {
919
969
  const i = (/* @__PURE__ */ new Date()).valueOf();
920
- let o = 0, s = 0, n = this.empty;
921
- if ((a = this.wind) != null && a.active && (n = (e = this.wind) == null ? void 0 : e.data), (t = this.map) != null && t.getSource(this.source))
922
- (r = this.map) == null || r.getSource(this.source).setData(n), s = (/* @__PURE__ */ new Date()).valueOf() - (i + o), console.log("[wind] update elapsed: ", s, ", total: ", o += s);
970
+ let o = 0, s = 0, l = this.empty;
971
+ if ((a = this.wind) != null && a.active && (l = (e = this.wind) == null ? void 0 : e.data), (t = this.map) != null && t.getSource(this.source))
972
+ (r = this.map) == null || r.getSource(this.source).setData(l), s = (/* @__PURE__ */ new Date()).valueOf() - (i + o), console.log("[wind] update elapsed: ", s, ", total: ", o += s);
923
973
  else {
924
- this.map.addSource(this.source, { type: "geojson", data: n });
925
- for (let c = 0; c < (this.barbs ?? []).length - 1; c++) {
926
- const d = (this.barbs ?? [])[c] || 0, p = (this.barbs ?? [])[c + 1] || 0, h = d < 10 ? `00${d}kts` : d < 100 ? `0${d}kts` : `${d}kts`;
974
+ this.map.addSource(this.source, { type: "geojson", data: l });
975
+ for (let h = 0; h < (this.barbs ?? []).length - 1; h++) {
976
+ const d = (this.barbs ?? [])[h] || 0, c = (this.barbs ?? [])[h + 1] || 0, p = d < 10 ? `00${d}kts` : d < 100 ? `0${d}kts` : `${d}kts`;
927
977
  this.map.addLayer(
928
978
  {
929
- id: h,
979
+ id: p,
930
980
  type: "symbol",
931
981
  filter: [
932
982
  "all",
933
983
  // @ts-ignore
934
984
  [">=", "spd", d],
935
985
  // @ts-ignore
936
- ["<", "spd", p]
986
+ ["<", "spd", c]
937
987
  ],
938
988
  source: this.source,
939
989
  layout: {
940
990
  "symbol-placement": "point",
941
- "icon-image": h,
991
+ "icon-image": p,
942
992
  // mapbox sprite
943
993
  "icon-size": 0.14,
944
994
  "icon-offset": [0, -20],
@@ -981,34 +1031,34 @@ const Ht = {
981
1031
  this.map.getSource(this.source) && this.map.removeSource(this.source), this.windBarbLoaded = !1;
982
1032
  }
983
1033
  }
984
- }, Gt = { key: 0 }, Jt = /* @__PURE__ */ l("div", { class: "checkbox" }, null, -1), Xt = /* @__PURE__ */ l("span", null, "Wind Particles", -1), Yt = [
985
- Jt,
986
- Xt
987
- ], qt = /* @__PURE__ */ l("div", { class: "checkbox" }, null, -1), Qt = /* @__PURE__ */ l("span", null, "Wind Feather", -1), Kt = [
988
- qt,
989
- Qt
990
- ];
991
- function ea(a, e, t, r, i, o) {
1034
+ }, ft = { key: 0 };
1035
+ function gt(a, e, t, r, i, o) {
992
1036
  var s;
993
- return (s = t.wind) != null && s.active ? (x(), C("div", Gt, [
994
- l("div", {
1037
+ return (s = t.wind) != null && s.active ? (_(), C("div", ft, [
1038
+ n("div", {
995
1039
  class: "flex-center wind-tool-bars",
996
1040
  style: U([{ position: "absolute" }, { right: i.right + "px", bottom: i.bottom + "px" }])
997
1041
  }, [
998
- t.mapProjection === "mercator" ? (x(), C("div", {
1042
+ t.mapProjection === "mercator" ? (_(), C("div", {
999
1043
  key: 0,
1000
- class: N(["item-bar flex-start", t.showParticle ? "active" : "inactive"]),
1001
- onClick: e[0] || (e[0] = (...n) => o.handleParticle && o.handleParticle(...n))
1002
- }, Yt, 2)) : j("", !0),
1003
- l("div", {
1004
- class: N(["item-bar flex-start", i.showFeather ? "active" : "inactive"]),
1005
- onClick: e[1] || (e[1] = (n) => i.showFeather = !i.showFeather)
1006
- }, Kt, 2)
1044
+ class: j(["item-bar flex-start", t.showParticle ? "active" : "inactive"]),
1045
+ onClick: e[0] || (e[0] = (...l) => o.handleParticle && o.handleParticle(...l))
1046
+ }, e[2] || (e[2] = [
1047
+ n("div", { class: "checkbox" }, null, -1),
1048
+ n("span", null, "Wind Particles", -1)
1049
+ ]), 2)) : B("", !0),
1050
+ n("div", {
1051
+ class: j(["item-bar flex-start", i.showFeather ? "active" : "inactive"]),
1052
+ onClick: e[1] || (e[1] = (l) => i.showFeather = !i.showFeather)
1053
+ }, e[3] || (e[3] = [
1054
+ n("div", { class: "checkbox" }, null, -1),
1055
+ n("span", null, "Wind Feather", -1)
1056
+ ]), 2)
1007
1057
  ], 4)
1008
- ])) : j("", !0);
1058
+ ])) : B("", !0);
1009
1059
  }
1010
- const ta = /* @__PURE__ */ T(Ht, [["render", ea]]);
1011
- class Ve {
1060
+ const bt = /* @__PURE__ */ T(yt, [["render", gt]]);
1061
+ class Re {
1012
1062
  constructor(e) {
1013
1063
  R(this, "map");
1014
1064
  R(this, "mercator");
@@ -1019,7 +1069,7 @@ class Ve {
1019
1069
  R(this, "rampColorCanvas");
1020
1070
  R(this, "particleCanvas");
1021
1071
  R(this, "ratio");
1022
- this.map = e, this.mercator = new ot(), this.rampColorLayer = "ramp-color-layer", this.rampColorSource = "ramp-color-source", this.particleLayer = "particle-layer", this.particleSource = "particle-source", this.rampColorCanvas = document.createElement("canvas"), this.particleCanvas = document.createElement("canvas"), this.ratio = window.devicePixelRatio;
1072
+ this.map = e, this.mercator = new He(), this.rampColorLayer = "ramp-color-layer", this.rampColorSource = "ramp-color-source", this.particleLayer = "particle-layer", this.particleSource = "particle-source", this.rampColorCanvas = document.createElement("canvas"), this.particleCanvas = document.createElement("canvas"), this.ratio = window.devicePixelRatio;
1023
1073
  }
1024
1074
  /**
1025
1075
  * 转换为[-180, 180]的经度,且包含转换次数
@@ -1053,8 +1103,8 @@ class Ve {
1053
1103
  * @param [lb.x, lb.y, rt.x, rt.y]
1054
1104
  */
1055
1105
  getBoundPixel() {
1056
- 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, s] = this.convertNLng(r[0]), [n, c] = this.convertNLng(i[0]), [d, p] = this.mercator.px([o, r[1]], t), [h, g] = this.mercator.px([n, i[1]], t), u = Math.round(this.mercator.size * Math.pow(2, t) * (s + c));
1057
- return [h, g, d + u, p];
1106
+ 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, s] = this.convertNLng(r[0]), [l, h] = this.convertNLng(i[0]), [d, c] = this.mercator.px([o, r[1]], t), [p, f] = this.mercator.px([l, i[1]], t), m = Math.round(this.mercator.size * Math.pow(2, t) * (s + h));
1107
+ return [p, f, d + m, c];
1058
1108
  }
1059
1109
  /**
1060
1110
  * [视窗边界像素宽度]
@@ -1069,13 +1119,13 @@ class Ve {
1069
1119
  * @param zoom
1070
1120
  */
1071
1121
  getWorldCopy(e, t) {
1072
- const r = 2 ** t, [i, o, s, n] = e.map((p) => ~~(p / (r * 256))), c = [];
1073
- for (let p = n; p <= o; p++)
1074
- for (let h = i; h <= s; h++)
1075
- c.push([h, p]);
1076
- return c.map((p) => {
1077
- const h = 2 ** t * 256;
1078
- return [p[0] * h, p[1] * h, h];
1122
+ const r = 2 ** t, [i, o, s, l] = e.map((c) => ~~(c / (r * 256))), h = [];
1123
+ for (let c = l; c <= o; c++)
1124
+ for (let p = i; p <= s; p++)
1125
+ h.push([p, c]);
1126
+ return h.map((c) => {
1127
+ const p = 2 ** t * 256;
1128
+ return [c[0] * p, c[1] * p, p];
1079
1129
  });
1080
1130
  }
1081
1131
  resize() {
@@ -1091,7 +1141,7 @@ class Ve {
1091
1141
  t !== r && this.map.setLayoutProperty(this.particleLayer, "visibility", r);
1092
1142
  }
1093
1143
  }
1094
- class Le {
1144
+ class fe {
1095
1145
  /**
1096
1146
  * 创建着色器
1097
1147
  * @see https://webglfundamentals.org/webgl/lessons/zh_cn/webgl-shaders-and-glsl.html
@@ -1116,9 +1166,9 @@ class Le {
1116
1166
  * @param width??
1117
1167
  * @param height??
1118
1168
  */
1119
- createTexture(e, t, r, i, o, s, n) {
1120
- const c = e.createTexture();
1121
- 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, s, n, 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;
1169
+ createTexture(e, t, r, i, o, s, l) {
1170
+ const h = e.createTexture();
1171
+ return e.bindTexture(e.TEXTURE_2D, h), 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, s, l, 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), h;
1122
1172
  }
1123
1173
  /**
1124
1174
  * 创建数据资源
@@ -1156,13 +1206,13 @@ class Le {
1156
1206
  const i = this.createProgram(e, t, r);
1157
1207
  if (i) {
1158
1208
  const o = { program: i }, s = e.getProgramParameter(i, e.ACTIVE_ATTRIBUTES);
1159
- for (let c = 0; c < s; c++) {
1160
- const d = e.getActiveAttrib(i, c);
1209
+ for (let h = 0; h < s; h++) {
1210
+ const d = e.getActiveAttrib(i, h);
1161
1211
  o[d.name] = e.getAttribLocation(i, d.name);
1162
1212
  }
1163
- const n = e.getProgramParameter(i, e.ACTIVE_UNIFORMS);
1164
- for (let c = 0; c < n; c++) {
1165
- const d = e.getActiveUniform(i, c);
1213
+ const l = e.getProgramParameter(i, e.ACTIVE_UNIFORMS);
1214
+ for (let h = 0; h < l; h++) {
1215
+ const d = e.getActiveUniform(i, h);
1166
1216
  o[d.name] = e.getUniformLocation(i, d.name);
1167
1217
  }
1168
1218
  return o;
@@ -1175,19 +1225,19 @@ class Le {
1175
1225
  setup(e, t, r = !1, i, o) {
1176
1226
  const s = document.createElement("canvas");
1177
1227
  s.width = 256, s.height = 1;
1178
- const n = s.getContext("2d");
1179
- if (n && e) {
1180
- const c = n == null ? void 0 : n.createLinearGradient(0, 0, 256, 0);
1181
- return t.forEach(([d, p]) => {
1182
- c.addColorStop(d, p);
1183
- }), n.fillStyle = c, n.fillRect(0, 0, 256, 1), {
1228
+ const l = s.getContext("2d");
1229
+ if (l && e) {
1230
+ const h = l == null ? void 0 : l.createLinearGradient(0, 0, 256, 0);
1231
+ return t.forEach(([d, c]) => {
1232
+ h.addColorStop(d, c);
1233
+ }), l.fillStyle = h, l.fillRect(0, 0, 256, 1), {
1184
1234
  canvas: s,
1185
1235
  texture: this.createTexture(
1186
1236
  e,
1187
1237
  e.LINEAR,
1188
1238
  e.LINEAR,
1189
1239
  e.CLAMP_TO_EDGE,
1190
- r ? new Uint8Array(n.getImageData(0, 0, 256, 1).data) : s,
1240
+ r ? new Uint8Array(l.getImageData(0, 0, 256, 1).data) : s,
1191
1241
  i,
1192
1242
  o
1193
1243
  )
@@ -1196,53 +1246,53 @@ class Le {
1196
1246
  }
1197
1247
  setupParticle(e, t = 1e3) {
1198
1248
  const r = Math.ceil(Math.sqrt(t)), i = r * r, o = new Uint8Array(i * 4);
1199
- for (let p = 0; p < o.length; p++)
1200
- o[p] = Math.floor(Math.random() * 256);
1201
- const s = this.createTexture(e, e.NEAREST, e.NEAREST, e.CLAMP_TO_EDGE, o, r, r), n = this.createTexture(e, e.NEAREST, e.NEAREST, e.CLAMP_TO_EDGE, o, r, r), c = new Float32Array(i);
1202
- for (let p = 0; p < i; p++)
1203
- c[p] = p;
1204
- const d = this.createDataBuffer(e, "array", c);
1205
- return { resolution: r, total: i, texture0: s, texture1: n, indexBuffer: d };
1249
+ for (let c = 0; c < o.length; c++)
1250
+ o[c] = Math.floor(Math.random() * 256);
1251
+ const s = this.createTexture(e, e.NEAREST, e.NEAREST, e.CLAMP_TO_EDGE, o, r, r), l = this.createTexture(e, e.NEAREST, e.NEAREST, e.CLAMP_TO_EDGE, o, r, r), h = new Float32Array(i);
1252
+ for (let c = 0; c < i; c++)
1253
+ h[c] = c;
1254
+ const d = this.createDataBuffer(e, "array", h);
1255
+ return { resolution: r, total: i, texture0: s, texture1: l, indexBuffer: d };
1206
1256
  }
1207
1257
  bind(e, t, r) {
1208
1258
  const i = this.createProgram(e, t, r);
1209
1259
  if (i) {
1210
1260
  const o = this.createDataBuffer(e, "array", void 0), s = e.getAttribLocation(i, "a_position");
1211
1261
  e.enableVertexAttribArray(s), e.vertexAttribPointer(s, 2, e.FLOAT, !1, 0, 0);
1212
- const n = new Float32Array([0, 0, 1, 0, 0, 1, 0, 1, 1, 0, 1, 1]);
1213
- this.createDataBuffer(e, "array", n);
1214
- const c = e.getAttribLocation(i, "a_texCoord");
1215
- return e.enableVertexAttribArray(c), e.vertexAttribPointer(c, 2, e.FLOAT, !1, 0, 0), { program: i, aPositionBuffer: o };
1262
+ const l = new Float32Array([0, 0, 1, 0, 0, 1, 0, 1, 1, 0, 1, 1]);
1263
+ this.createDataBuffer(e, "array", l);
1264
+ const h = e.getAttribLocation(i, "a_texCoord");
1265
+ return e.enableVertexAttribArray(h), e.vertexAttribPointer(h, 2, e.FLOAT, !1, 0, 0), { program: i, aPositionBuffer: o };
1216
1266
  }
1217
1267
  return {};
1218
1268
  }
1219
1269
  bindParticle(e, t, r, i, o, s) {
1220
- const n = this.createProgramWrapper(e, t, r), c = this.createProgramWrapper(e, i, o), d = this.createProgramWrapper(e, i, s), p = this.createDataBuffer(e, "array", new Float32Array([0, 0, 1, 0, 0, 1, 0, 1, 1, 0, 1, 1])), h = e.createFramebuffer();
1221
- return { particle: n, screen: c, update: d, quadBuffer: p, frameBuffer: h };
1270
+ const l = this.createProgramWrapper(e, t, r), h = this.createProgramWrapper(e, i, o), d = this.createProgramWrapper(e, i, s), c = this.createDataBuffer(e, "array", new Float32Array([0, 0, 1, 0, 0, 1, 0, 1, 1, 0, 1, 1])), p = e.createFramebuffer();
1271
+ return { particle: l, screen: h, update: d, quadBuffer: c, frameBuffer: p };
1222
1272
  }
1223
- draw(e, t, r, i, o, s, n) {
1224
- var c, d;
1273
+ draw(e, t, r, i, o, s, l) {
1274
+ var h, d;
1225
1275
  if (t && r) {
1226
- e.resize(), t == null || t.viewport(0, 0, (c = t == null ? void 0 : t.canvas) == null ? void 0 : c.width, (d = t == null ? void 0 : t.canvas) == null ? void 0 : d.height), t.clearColor(0, 0, 0, 0), t.clear(t.COLOR_BUFFER_BIT | t.DEPTH_BUFFER_BIT);
1276
+ e.resize(), t == null || t.viewport(0, 0, (h = t == null ? void 0 : t.canvas) == null ? void 0 : h.width, (d = t == null ? void 0 : t.canvas) == null ? void 0 : d.height), t.clearColor(0, 0, 0, 0), t.clear(t.COLOR_BUFFER_BIT | t.DEPTH_BUFFER_BIT);
1227
1277
  try {
1228
- const p = t.getUniformLocation(r, "u_resolution"), h = t.getUniformLocation(r, "u_image"), g = t.getUniformLocation(r, "u_color");
1229
- if (t.useProgram(r), t.uniform2f(p, t.canvas.width * e.ratio, t.canvas.height * e.ratio), t.activeTexture(t.TEXTURE0), t.bindTexture(t.TEXTURE_2D, i), t.uniform1i(h, 0), t.activeTexture(t.TEXTURE1), t.bindTexture(t.TEXTURE_2D, o), t.uniform1i(g, 1), n != null && n.uvRange && (n != null && n.sRange)) {
1230
- const m = t.getUniformLocation(r, "u_range_u_v"), v = t.getUniformLocation(r, "u_range_s");
1231
- t.uniform2f(m, n.uvRange[0], n.uvRange[1]), t.uniform2f(v, n.sRange[0], n.sRange[1]);
1278
+ const c = t.getUniformLocation(r, "u_resolution"), p = t.getUniformLocation(r, "u_image"), f = t.getUniformLocation(r, "u_color");
1279
+ if (t.useProgram(r), t.uniform2f(c, 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), l != null && l.uvRange && (l != null && l.sRange)) {
1280
+ const u = t.getUniformLocation(r, "u_range_u_v"), v = t.getUniformLocation(r, "u_range_s");
1281
+ t.uniform2f(u, l.uvRange[0], l.uvRange[1]), t.uniform2f(v, l.sRange[0], l.sRange[1]);
1232
1282
  }
1233
- const u = e.getBoundPixel(), y = e.map.getZoom() + 1, f = e.getWorldCopy(u, y);
1234
- for (const m of f) {
1235
- const v = (m[0] - u[0]) * e.ratio, b = (m[1] - u[3]) * e.ratio, _ = m[2] * e.ratio, [P, w, A, M] = [v, _ + v, b, _ + b], $ = new Float32Array([P, A, w, A, P, M, P, M, w, A, w, M]);
1236
- t.bindBuffer(t.ARRAY_BUFFER, s), t.bufferData(t.ARRAY_BUFFER, $, t.STATIC_DRAW), t.drawArrays(t.TRIANGLES, 0, 6);
1283
+ const m = e.getBoundPixel(), b = e.map.getZoom() + 1, y = e.getWorldCopy(m, b);
1284
+ for (const u of y) {
1285
+ const v = (u[0] - m[0]) * e.ratio, g = (u[1] - m[3]) * e.ratio, L = u[2] * e.ratio, [z, w, A, M] = [v, L + v, g, L + g], W = new Float32Array([z, A, w, A, z, M, z, M, w, A, w, M]);
1286
+ t.bindBuffer(t.ARRAY_BUFFER, s), t.bufferData(t.ARRAY_BUFFER, W, t.STATIC_DRAW), t.drawArrays(t.TRIANGLES, 0, 6);
1237
1287
  }
1238
- } catch (p) {
1239
- console.log(`render failed...${p}`);
1288
+ } catch (c) {
1289
+ console.log(`render failed...${c}`);
1240
1290
  }
1241
1291
  }
1242
1292
  }
1243
1293
  drawParticle(e, t, r, i, o) {
1244
- var s, n;
1245
- t && (t == null || t.viewport(0, 0, (s = t == null ? void 0 : t.canvas) == null ? void 0 : s.width, (n = t == null ? void 0 : t.canvas) == null ? void 0 : n.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));
1294
+ var s, l;
1295
+ t && (t == null || t.viewport(0, 0, (s = t == null ? void 0 : t.canvas) == null ? void 0 : s.width, (l = t == null ? void 0 : t.canvas) == null ? void 0 : l.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));
1246
1296
  }
1247
1297
  renderScreen(e, t, r, i) {
1248
1298
  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);
@@ -1260,11 +1310,11 @@ class Le {
1260
1310
  }
1261
1311
  }
1262
1312
  updateParticles(e, t, r, i) {
1263
- var s, n;
1313
+ var s, l;
1264
1314
  if (t) {
1265
1315
  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);
1266
- const c = e.getBoundRange();
1267
- 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, (s = r == null ? void 0 : r.image) == null ? void 0 : s.width, (n = r == null ? void 0 : r.image) == null ? void 0 : n.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);
1316
+ const h = e.getBoundRange();
1317
+ t.uniform4f(r.update.u_viewport, h[0], h[1], h[2], h[3]), t.uniform1f(r.update.u_rand_seed, Math.random()), t.uniform2f(r.update.u_factor_res, (s = r == null ? void 0 : r.image) == null ? void 0 : s.width, (l = r == null ? void 0 : r.image) == null ? void 0 : l.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);
1268
1318
  }
1269
1319
  const o = r.texture0;
1270
1320
  r.texture0 = r.texture1, r.texture1 = o;
@@ -1281,10 +1331,10 @@ class Le {
1281
1331
  });
1282
1332
  }
1283
1333
  }
1284
- class B {
1334
+ class N {
1285
1335
  }
1286
1336
  // 顶点渲染
1287
- R(B, "vertexSchema", `
1337
+ R(N, "vertexSchema", `
1288
1338
  //canvas 坐标系上的坐标 (x, y)
1289
1339
  attribute vec2 a_position; //像素坐标
1290
1340
  attribute vec2 a_texCoord; //纹理坐标
@@ -1299,7 +1349,7 @@ R(B, "vertexSchema", `
1299
1349
  gl_Position = vec4(position * vec2(1, -1), 0.0, 1.0);
1300
1350
  v_texCoord = a_texCoord;
1301
1351
  }`), // 类如风、流等u v双变量片元渲染
1302
- R(B, "uvFragmentSchema", `
1352
+ R(N, "uvFragmentSchema", `
1303
1353
  precision mediump float;
1304
1354
  uniform sampler2D u_image;
1305
1355
  uniform vec2 u_range_u_v;
@@ -1318,7 +1368,7 @@ R(B, "uvFragmentSchema", `
1318
1368
 
1319
1369
  gl_FragColor = color;
1320
1370
  }`), // 类如浪、气压等单变量片元渲染
1321
- R(B, "fragmentSchema", `
1371
+ R(N, "fragmentSchema", `
1322
1372
  precision mediump float;
1323
1373
  uniform sampler2D u_image; // 灰度
1324
1374
  uniform sampler2D u_color; // 色值映射
@@ -1478,7 +1528,7 @@ R(V, "vertexSchema", `
1478
1528
  fract(pos * 255.0),
1479
1529
  floor(pos * 255.0) / 255.0);
1480
1530
  }`);
1481
- class aa {
1531
+ class vt {
1482
1532
  constructor(e = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImNseTVudHJzYzAwNWUwbHBsZHkyaDRqczMiLCJyb2xlIjoxLCJuYW1lIjoiZmFrZUBvcm13eC5jb20iLCJwbGF0SWQiOiJnZDBtdDFkIiwiY29tcGFueSI6eyJpZCI6bnVsbCwiY2hpbGRyZW4iOltdfSwiaWF0IjoxNzIzMDI0MDI0LCJleHAiOjM5MzA1NDQwMjR9.RrKcdcMnq-FxBLJQ-i6lx2FscDE46y8EvHIemPW4HTg") {
1483
1533
  R(this, "token");
1484
1534
  R(this, "mapboxCustomer");
@@ -3082,14 +3132,14 @@ class aa {
3082
3132
  };
3083
3133
  }
3084
3134
  }
3085
- const ia = {
3135
+ const wt = {
3086
3136
  name: "IdmWindParticle",
3087
3137
  props: {
3088
3138
  factor: {
3089
3139
  type: Object
3090
3140
  },
3091
3141
  viewport: {
3092
- type: Ve
3142
+ type: Re
3093
3143
  },
3094
3144
  bottom: {
3095
3145
  type: String,
@@ -3106,7 +3156,7 @@ const ia = {
3106
3156
  texture: void 0,
3107
3157
  rampColor: void 0,
3108
3158
  aPositionBuffer: void 0,
3109
- webgl: new Le(),
3159
+ webgl: new fe(),
3110
3160
  etime: void 0,
3111
3161
  wrapper: void 0,
3112
3162
  animation: void 0,
@@ -3160,8 +3210,8 @@ const ia = {
3160
3210
  }
3161
3211
  },
3162
3212
  handleClear() {
3163
- var a, e, t, r, i, o, s, n;
3164
- (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), (n = (s = this.viewport) == null ? void 0 : s.map) == null || n.off("moveend", this.handlePlay), this.handlePause();
3213
+ var a, e, t, r, i, o, s, l;
3214
+ (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), (l = (s = this.viewport) == null ? void 0 : s.map) == null || l.off("moveend", this.handlePlay), this.handlePause();
3165
3215
  },
3166
3216
  handleSetup() {
3167
3217
  if (!this.context) {
@@ -3196,7 +3246,7 @@ const ia = {
3196
3246
  [1, "rgb(91, 136, 161)"]
3197
3247
  ];
3198
3248
  this.rampColor = this.webgl.setup(this.context, a);
3199
- const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, B.vertexSchema, B.uvFragmentSchema);
3249
+ const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, N.vertexSchema, N.uvFragmentSchema);
3200
3250
  this.program = e, this.aPositionBuffer = t;
3201
3251
  }
3202
3252
  this.handleParticleSetup();
@@ -3244,27 +3294,27 @@ const ia = {
3244
3294
  });
3245
3295
  }
3246
3296
  }
3247
- }, le = (a) => (H("data-v-64887571"), a = a(), G(), a), ra = { key: 0 }, oa = /* @__PURE__ */ le(() => /* @__PURE__ */ l("span", null, "kts", -1)), sa = /* @__PURE__ */ le(() => /* @__PURE__ */ l("span", null, "0", -1)), na = /* @__PURE__ */ le(() => /* @__PURE__ */ l("span", null, "5", -1)), la = /* @__PURE__ */ le(() => /* @__PURE__ */ l("span", null, "10", -1)), ca = /* @__PURE__ */ le(() => /* @__PURE__ */ l("span", null, "20", -1)), ha = /* @__PURE__ */ le(() => /* @__PURE__ */ l("span", null, "30", -1)), da = /* @__PURE__ */ le(() => /* @__PURE__ */ l("span", null, "40", -1)), pa = /* @__PURE__ */ le(() => /* @__PURE__ */ l("span", null, "60", -1)), ma = [
3248
- oa,
3249
- sa,
3250
- na,
3251
- la,
3252
- ca,
3253
- ha,
3254
- da,
3255
- pa
3256
- ];
3257
- function ua(a, e, t, r, i, o) {
3297
+ }, Lt = { key: 0 };
3298
+ function xt(a, e, t, r, i, o) {
3258
3299
  var s;
3259
- return (s = t.factor) != null && s.active ? (x(), C("div", ra, [
3260
- l("div", {
3300
+ return (s = t.factor) != null && s.active ? (_(), C("div", Lt, [
3301
+ n("div", {
3261
3302
  class: "legend-bars flex-center",
3262
3303
  style: U([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
3263
- }, ma, 4)
3264
- ])) : j("", !0);
3304
+ }, e[0] || (e[0] = [
3305
+ n("span", null, "kts", -1),
3306
+ n("span", null, "0", -1),
3307
+ n("span", null, "5", -1),
3308
+ n("span", null, "10", -1),
3309
+ n("span", null, "20", -1),
3310
+ n("span", null, "30", -1),
3311
+ n("span", null, "40", -1),
3312
+ n("span", null, "60", -1)
3313
+ ]), 4)
3314
+ ])) : B("", !0);
3265
3315
  }
3266
- const ya = /* @__PURE__ */ T(ia, [["render", ua], ["__scopeId", "data-v-64887571"]]);
3267
- const fa = {
3316
+ const _t = /* @__PURE__ */ T(wt, [["render", xt], ["__scopeId", "data-v-64887571"]]);
3317
+ const Ct = {
3268
3318
  name: "IdmCurrent",
3269
3319
  props: {
3270
3320
  map: {
@@ -3291,14 +3341,14 @@ const fa = {
3291
3341
  type: Number
3292
3342
  }
3293
3343
  },
3294
- emits: ["particle", "handleToggleVersion"],
3344
+ emits: ["particle", "showCurrentIsoband", "handleToggleVersion"],
3295
3345
  data() {
3296
3346
  return {
3297
3347
  source: "current-source",
3298
3348
  directionLayer: "current-direction-layer",
3299
3349
  speedLayer: "current-speed-layer",
3300
3350
  speedLabelLayer: "current-speed-label-layer",
3301
- empty: L.featureCollection([]),
3351
+ empty: x.featureCollection([]),
3302
3352
  showJson: localStorage.getItem("currentJsonCache") === "true" || !1,
3303
3353
  currentJsonCache: "currentJsonCache",
3304
3354
  right: 10,
@@ -3320,7 +3370,7 @@ const fa = {
3320
3370
  },
3321
3371
  showJson: {
3322
3372
  handler() {
3323
- this.showJson, localStorage.setItem(this.currentJsonCache, this.showJson), this.handleToggle();
3373
+ this.showJson, localStorage.setItem(this.currentJsonCache, this.showJson), this.handleToggle(), this.$emit("showCurrentIsoband", this.showJson);
3324
3374
  },
3325
3375
  immediate: !0
3326
3376
  },
@@ -3414,41 +3464,41 @@ const fa = {
3414
3464
  this.map.getLayer(this.speedLayer) && this.map.removeLayer(this.speedLayer), this.map.getLayer(this.speedLabelLayer) && this.map.removeLayer(this.speedLabelLayer), this.map.getLayer(this.directionLayer) && this.map.removeLayer(this.directionLayer), this.map.getSource(this.source) && this.map.removeSource(this.source);
3415
3465
  }
3416
3466
  }
3417
- }, ga = { key: 0 }, ba = /* @__PURE__ */ l("div", { class: "checkbox" }, null, -1), va = /* @__PURE__ */ l("span", null, "Current Particles", -1), wa = [
3418
- ba,
3419
- va
3420
- ], _a = /* @__PURE__ */ l("div", { class: "checkbox" }, null, -1), La = /* @__PURE__ */ l("span", null, "Current Isoband", -1), xa = [
3421
- _a,
3422
- La
3423
- ];
3424
- function Ca(a, e, t, r, i, o) {
3467
+ }, kt = { key: 0 };
3468
+ function St(a, e, t, r, i, o) {
3425
3469
  var s;
3426
- return (s = t.current) != null && s.active ? (x(), C("div", ga, [
3427
- l("div", {
3470
+ return (s = t.current) != null && s.active ? (_(), C("div", kt, [
3471
+ n("div", {
3428
3472
  class: "flex-center current-tool-bars",
3429
3473
  style: U([{ position: "absolute" }, { right: i.right + "px", bottom: i.bottom + "px" }])
3430
3474
  }, [
3431
- t.mapProjection === "mercator" ? (x(), C("div", {
3475
+ t.mapProjection === "mercator" ? (_(), C("div", {
3432
3476
  key: 0,
3433
- class: N(["flex-start item-bar", t.showParticle ? "active" : "inactive"]),
3434
- onClick: e[0] || (e[0] = (n) => o.handleParticle(!t.showParticle))
3435
- }, wa, 2)) : j("", !0),
3436
- l("div", {
3437
- class: N(["flex-start item-bar", i.showJson ? "active" : "inactive"]),
3438
- onClick: e[1] || (e[1] = (n) => i.showJson = !i.showJson)
3439
- }, xa, 2)
3477
+ class: j(["flex-start item-bar", t.showParticle ? "active" : "inactive"]),
3478
+ onClick: e[0] || (e[0] = (l) => o.handleParticle(!t.showParticle))
3479
+ }, e[2] || (e[2] = [
3480
+ n("div", { class: "checkbox" }, null, -1),
3481
+ n("span", null, "Current Particles", -1)
3482
+ ]), 2)) : B("", !0),
3483
+ n("div", {
3484
+ class: j(["flex-start item-bar", i.showJson ? "active" : "inactive"]),
3485
+ onClick: e[1] || (e[1] = (l) => i.showJson = !i.showJson)
3486
+ }, e[3] || (e[3] = [
3487
+ n("div", { class: "checkbox" }, null, -1),
3488
+ n("span", null, "Current Isoband", -1)
3489
+ ]), 2)
3440
3490
  ], 4)
3441
- ])) : j("", !0);
3491
+ ])) : B("", !0);
3442
3492
  }
3443
- const ka = /* @__PURE__ */ T(fa, [["render", Ca]]);
3444
- const Sa = {
3493
+ const Pt = /* @__PURE__ */ T(Ct, [["render", St]]);
3494
+ const zt = {
3445
3495
  name: "IdmCurrentParticle",
3446
3496
  props: {
3447
3497
  factor: {
3448
3498
  type: Object
3449
3499
  },
3450
3500
  viewport: {
3451
- type: Ve
3501
+ type: Re
3452
3502
  },
3453
3503
  bottom: {
3454
3504
  type: String,
@@ -3465,7 +3515,7 @@ const Sa = {
3465
3515
  texture: void 0,
3466
3516
  rampColor: void 0,
3467
3517
  aPositionBuffer: void 0,
3468
- webgl: new Le(),
3518
+ webgl: new fe(),
3469
3519
  etime: void 0,
3470
3520
  wrapper: void 0,
3471
3521
  animation: void 0,
@@ -3519,8 +3569,8 @@ const Sa = {
3519
3569
  }
3520
3570
  },
3521
3571
  handleClear() {
3522
- var a, e, t, r, i, o, s, n;
3523
- (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), (n = (s = this.viewport) == null ? void 0 : s.map) == null || n.off("moveend", this.handlePlay), this.handlePause();
3572
+ var a, e, t, r, i, o, s, l;
3573
+ (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), (l = (s = this.viewport) == null ? void 0 : s.map) == null || l.off("moveend", this.handlePlay), this.handlePause();
3524
3574
  },
3525
3575
  handleSetup() {
3526
3576
  if (!this.context) {
@@ -3546,7 +3596,7 @@ const Sa = {
3546
3596
  [1, "rgb(195,194,194)"]
3547
3597
  ];
3548
3598
  this.rampColor = this.webgl.setup(this.context, a);
3549
- const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, B.vertexSchema, B.uvFragmentSchema);
3599
+ const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, N.vertexSchema, N.uvFragmentSchema);
3550
3600
  this.program = e, this.aPositionBuffer = t;
3551
3601
  }
3552
3602
  this.handleParticleSetup();
@@ -3598,25 +3648,25 @@ const Sa = {
3598
3648
  });
3599
3649
  }
3600
3650
  }
3601
- }, xe = (a) => (H("data-v-6d4fd206"), a = a(), G(), a), za = { key: 0 }, Pa = /* @__PURE__ */ xe(() => /* @__PURE__ */ l("span", null, "kts", -1)), Ta = /* @__PURE__ */ xe(() => /* @__PURE__ */ l("span", null, "0", -1)), Ia = /* @__PURE__ */ xe(() => /* @__PURE__ */ l("span", null, "0.4", -1)), Ea = /* @__PURE__ */ xe(() => /* @__PURE__ */ l("span", null, "0.8", -1)), Ra = /* @__PURE__ */ xe(() => /* @__PURE__ */ l("span", null, "1.6", -1)), Aa = /* @__PURE__ */ xe(() => /* @__PURE__ */ l("span", null, "2", -1)), Da = /* @__PURE__ */ xe(() => /* @__PURE__ */ l("span", null, "3.2", -1)), Ma = [
3602
- Pa,
3603
- Ta,
3604
- Ia,
3605
- Ea,
3606
- Ra,
3607
- Aa,
3608
- Da
3609
- ];
3610
- function $a(a, e, t, r, i, o) {
3651
+ }, Tt = { key: 0 };
3652
+ function Et(a, e, t, r, i, o) {
3611
3653
  var s;
3612
- return (s = t.factor) != null && s.active ? (x(), C("div", za, [
3613
- l("div", {
3654
+ return (s = t.factor) != null && s.active ? (_(), C("div", Tt, [
3655
+ n("div", {
3614
3656
  class: "legend-bars flex-center",
3615
3657
  style: U([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
3616
- }, Ma, 4)
3617
- ])) : j("", !0);
3658
+ }, e[0] || (e[0] = [
3659
+ n("span", null, "kts", -1),
3660
+ n("span", null, "0", -1),
3661
+ n("span", null, "0.4", -1),
3662
+ n("span", null, "0.8", -1),
3663
+ n("span", null, "1.6", -1),
3664
+ n("span", null, "2", -1),
3665
+ n("span", null, "3.2", -1)
3666
+ ]), 4)
3667
+ ])) : B("", !0);
3618
3668
  }
3619
- const ja = /* @__PURE__ */ T(Sa, [["render", $a], ["__scopeId", "data-v-6d4fd206"]]), Na = {
3669
+ const It = /* @__PURE__ */ T(zt, [["render", Et], ["__scopeId", "data-v-6d4fd206"]]), Rt = {
3620
3670
  name: "IdmSigWave",
3621
3671
  props: {
3622
3672
  map: {
@@ -3634,7 +3684,7 @@ const ja = /* @__PURE__ */ T(Sa, [["render", $a], ["__scopeId", "data-v-6d4fd206
3634
3684
  source: "sig-wave-source",
3635
3685
  heightLayer: "sig-wave-height-layer",
3636
3686
  heightLabelLayer: "sig-wave-height-label-layer",
3637
- empty: L.featureCollection([])
3687
+ empty: x.featureCollection([])
3638
3688
  };
3639
3689
  },
3640
3690
  watch: {
@@ -3672,13 +3722,13 @@ const ja = /* @__PURE__ */ T(Sa, [["render", $a], ["__scopeId", "data-v-6d4fd206
3672
3722
  "fill-color": [
3673
3723
  "step",
3674
3724
  ["get", "val"],
3675
- "rgba(111,248,201,0.6)",
3725
+ "rgba(186,247,237,0.5)",
3676
3726
  3,
3677
- "#6ff8c9",
3727
+ "rgba(93,235,185,0.8)",
3678
3728
  4,
3679
- "#36cd9a",
3729
+ "rgba(101,252,149,0.9)",
3680
3730
  5,
3681
- "#6bff6b",
3731
+ "#b3ff6b",
3682
3732
  6,
3683
3733
  "#fee600",
3684
3734
  7,
@@ -3727,10 +3777,10 @@ const ja = /* @__PURE__ */ T(Sa, [["render", $a], ["__scopeId", "data-v-6d4fd206
3727
3777
  }
3728
3778
  }
3729
3779
  };
3730
- function Ba(a, e, t, r, i, o) {
3731
- return x(), C("div");
3780
+ function At(a, e, t, r, i, o) {
3781
+ return _(), C("div");
3732
3782
  }
3733
- const Wa = /* @__PURE__ */ T(Na, [["render", Ba]]), Oa = {
3783
+ const Dt = /* @__PURE__ */ T(Rt, [["render", At]]), Mt = {
3734
3784
  name: "IdmSwell",
3735
3785
  props: {
3736
3786
  map: {
@@ -3749,7 +3799,7 @@ const Wa = /* @__PURE__ */ T(Na, [["render", Ba]]), Oa = {
3749
3799
  directionLayer: "swell-direction-layer",
3750
3800
  heightLayer: "swell-height-layer",
3751
3801
  heightLabelLayer: "swell-height-label-layer",
3752
- empty: L.featureCollection([])
3802
+ empty: x.featureCollection([])
3753
3803
  };
3754
3804
  },
3755
3805
  watch: {
@@ -3828,7 +3878,7 @@ const Wa = /* @__PURE__ */ T(Na, [["render", Ba]]), Oa = {
3828
3878
  ],
3829
3879
  "text-halo-width": 4
3830
3880
  }
3831
- }), this.map.addLayer(
3881
+ }, this.beforeLayer), this.map.addLayer(
3832
3882
  {
3833
3883
  id: this.directionLayer,
3834
3884
  type: "symbol",
@@ -3860,7 +3910,9 @@ const Wa = /* @__PURE__ */ T(Na, [["render", Ba]]), Oa = {
3860
3910
  }
3861
3911
  },
3862
3912
  this.beforeLayer
3863
- ), i = (/* @__PURE__ */ new Date()).valueOf() - (t + r), console.log("[swell] add elapsed: ", i, ", total: ", r += i));
3913
+ ), i = (/* @__PURE__ */ new Date()).valueOf() - (t + r), console.log("[swell] add elapsed: ", i, ", total: ", r += i), setTimeout(() => {
3914
+ this.map.moveLayer("country-boundaries", null);
3915
+ }, 100));
3864
3916
  }
3865
3917
  },
3866
3918
  handleClear() {
@@ -3868,10 +3920,10 @@ const Wa = /* @__PURE__ */ T(Na, [["render", Ba]]), Oa = {
3868
3920
  }
3869
3921
  }
3870
3922
  };
3871
- function Fa(a, e, t, r, i, o) {
3872
- return x(), C("div");
3923
+ function jt(a, e, t, r, i, o) {
3924
+ return _(), C("div");
3873
3925
  }
3874
- const Va = /* @__PURE__ */ T(Oa, [["render", Fa]]), Ua = {
3926
+ const Wt = /* @__PURE__ */ T(Mt, [["render", jt]]), Bt = {
3875
3927
  name: "IdmPrmsl",
3876
3928
  props: {
3877
3929
  map: {
@@ -3893,7 +3945,7 @@ const Va = /* @__PURE__ */ T(Oa, [["render", Fa]]), Ua = {
3893
3945
  layer: "prmsl-layer",
3894
3946
  labelLayer: "prmsl-label-layer",
3895
3947
  pointLabelLayer: "prmsl-point-label-layer",
3896
- empty: L.featureCollection([])
3948
+ empty: x.featureCollection([])
3897
3949
  };
3898
3950
  },
3899
3951
  watch: {
@@ -3996,10 +4048,10 @@ const Va = /* @__PURE__ */ T(Oa, [["render", Fa]]), Ua = {
3996
4048
  }
3997
4049
  }
3998
4050
  };
3999
- function Za(a, e, t, r, i, o) {
4000
- return x(), C("div");
4051
+ function Nt(a, e, t, r, i, o) {
4052
+ return _(), C("div");
4001
4053
  }
4002
- const Ha = /* @__PURE__ */ T(Ua, [["render", Za]]), Ga = {
4054
+ const Ot = /* @__PURE__ */ T(Bt, [["render", Nt]]), Ft = {
4003
4055
  name: "IdmIceberg",
4004
4056
  props: {
4005
4057
  map: {
@@ -4016,7 +4068,7 @@ const Ha = /* @__PURE__ */ T(Ua, [["render", Za]]), Ga = {
4016
4068
  return {
4017
4069
  source: "iceberg-source",
4018
4070
  layer: "iceberg-layer",
4019
- empty: L.featureCollection([])
4071
+ empty: x.featureCollection([])
4020
4072
  };
4021
4073
  },
4022
4074
  watch: {
@@ -4056,11 +4108,11 @@ const Ha = /* @__PURE__ */ T(Ua, [["render", Za]]), Ga = {
4056
4108
  }
4057
4109
  }
4058
4110
  };
4059
- function Ja(a, e, t, r, i, o) {
4060
- return x(), C("div");
4111
+ function $t(a, e, t, r, i, o) {
4112
+ return _(), C("div");
4061
4113
  }
4062
- const Xa = /* @__PURE__ */ T(Ga, [["render", Ja]]);
4063
- const Ya = {
4114
+ const Vt = /* @__PURE__ */ T(Ft, [["render", $t]]);
4115
+ const Ut = {
4064
4116
  name: "IdmTropicals",
4065
4117
  props: {
4066
4118
  map: {
@@ -4080,7 +4132,7 @@ const Ya = {
4080
4132
  emits: ["tropical", "tropicalProbability"],
4081
4133
  data() {
4082
4134
  return {
4083
- helper: De,
4135
+ helper: Ce,
4084
4136
  source: "tropicals-source",
4085
4137
  clusterSource: "tropicals-cluster-source",
4086
4138
  historyLayer: "tropicals-history-layer",
@@ -4098,9 +4150,9 @@ const Ya = {
4098
4150
  showTropicals: !1,
4099
4151
  activeTropicals: void 0,
4100
4152
  activeTropicalsMarker: void 0,
4101
- empty: L.featureCollection([]),
4153
+ empty: x.featureCollection([]),
4102
4154
  circleSource: "circle-source",
4103
- circleSourceData: L.featureCollection([]),
4155
+ circleSourceData: x.featureCollection([]),
4104
4156
  circleLayer: "tropical-circle-layer"
4105
4157
  };
4106
4158
  },
@@ -4147,29 +4199,29 @@ const Ya = {
4147
4199
  var r, i;
4148
4200
  const a = ((i = (r = this.tropicals) == null ? void 0 : r.data) == null ? void 0 : i.features) || [], e = Z().utc().hour(), t = [];
4149
4201
  a.forEach((o) => {
4150
- var s, n, c;
4151
- (s = o.properties) != null && s.name && !t.includes((n = o.properties) == null ? void 0 : n.name) && t.push((c = o.properties) == null ? void 0 : c.name);
4202
+ var s, l, h;
4203
+ (s = o.properties) != null && s.name && !t.includes((l = o.properties) == null ? void 0 : l.name) && t.push((h = o.properties) == null ? void 0 : h.name);
4152
4204
  }), t.forEach((o) => {
4153
4205
  var d;
4154
- let s = 0, n;
4155
- const c = a.filter((p) => {
4156
- var h, g;
4157
- return ((g = (h = p.properties) == null ? void 0 : h.category) == null ? void 0 : g.split("-")[0]) === o;
4206
+ let s = 0, l;
4207
+ const h = a.filter((c) => {
4208
+ var p, f;
4209
+ return ((f = (p = c.properties) == null ? void 0 : p.category) == null ? void 0 : f.split("-")[0]) === o;
4158
4210
  });
4159
- (d = c.filter((p) => {
4160
- var h, g;
4161
- return ((h = p.geometry) == null ? void 0 : h.type) === "LineString" && ((g = p.properties) == null ? void 0 : g.type) === "forecast";
4162
- })[0]) == null || d.properties.model, c.forEach((p, h) => {
4163
- var g, u, y, f, m, v;
4164
- ((g = p.geometry) == null ? void 0 : g.type) === "Point" && ((u = p.properties) == null ? void 0 : u.type) === "history" && (s = h, n = n === void 0 ? h : n), ((y = p.geometry) == null ? void 0 : y.type) === "Point" && ((f = p.properties) == null ? void 0 : f.type) === "forecast" && n === void 0 && (n = h), ((m = p.geometry) == null ? void 0 : m.type) === "LineString" && ((v = p.properties) == null || v.type);
4165
- }), c.map((p, h) => {
4166
- var g, u, y, f, m, v, b;
4167
- if (((g = p.geometry) == null ? void 0 : g.type) === "LineString" && ((u = p.properties) == null || u.type), ((y = p.geometry) == null ? void 0 : y.type) === "Point" && ((f = p.properties) == null ? void 0 : f.type) === "forecast" && (p.properties.name = o, p.properties.format = Z(p.properties.date).utcOffset(this.timeZone).format(`MMM-DD,HHmm [(utc ${this.computeTimezone})]`)), ((m = p.geometry) == null ? void 0 : m.type) === "Point" && ((v = p.properties) == null ? void 0 : v.type) === "history") {
4168
- p.properties.format = Z(p.properties.date).utcOffset(this.timeZone).format(`MMM-DD,HHmm [(utc ${this.computeTimezone})]`);
4169
- const _ = Z((b = p.properties) == null ? void 0 : b.date).utc().format("HHmm") === Z().utc().hour(Math.floor(e / 6) * 6).minute("00").format("HHmm");
4170
- p.properties.showHistoryLabel = _ || h === s, p.properties.showNameLabel = h === s, p.properties.name = o;
4211
+ (d = h.filter((c) => {
4212
+ var p, f;
4213
+ return ((p = c.geometry) == null ? void 0 : p.type) === "LineString" && ((f = c.properties) == null ? void 0 : f.type) === "forecast";
4214
+ })[0]) == null || d.properties.model, h.forEach((c, p) => {
4215
+ var f, m, b, y, u, v;
4216
+ ((f = c.geometry) == null ? void 0 : f.type) === "Point" && ((m = c.properties) == null ? void 0 : m.type) === "history" && (s = p, l = l === void 0 ? p : l), ((b = c.geometry) == null ? void 0 : b.type) === "Point" && ((y = c.properties) == null ? void 0 : y.type) === "forecast" && l === void 0 && (l = p), ((u = c.geometry) == null ? void 0 : u.type) === "LineString" && ((v = c.properties) == null || v.type);
4217
+ }), h.map((c, p) => {
4218
+ var f, m, b, y, u, v, g;
4219
+ if (((f = c.geometry) == null ? void 0 : f.type) === "LineString" && ((m = c.properties) == null || m.type), ((b = c.geometry) == null ? void 0 : b.type) === "Point" && ((y = c.properties) == null ? void 0 : y.type) === "forecast" && (c.properties.name = o, c.properties.format = Z(c.properties.date).utcOffset(this.timeZone).format(`MMM-DD,HHmm [(utc ${this.computeTimezone})]`)), ((u = c.geometry) == null ? void 0 : u.type) === "Point" && ((v = c.properties) == null ? void 0 : v.type) === "history") {
4220
+ c.properties.format = Z(c.properties.date).utcOffset(this.timeZone).format(`MMM-DD,HHmm [(utc ${this.computeTimezone})]`);
4221
+ const L = Z((g = c.properties) == null ? void 0 : g.date).utc().format("HHmm") === Z().utc().hour(Math.floor(e / 6) * 6).minute("00").format("HHmm");
4222
+ c.properties.showHistoryLabel = L || p === s, c.properties.showNameLabel = p === s, c.properties.name = o;
4171
4223
  }
4172
- return p;
4224
+ return c;
4173
4225
  });
4174
4226
  }), this.handleInit();
4175
4227
  },
@@ -4204,16 +4256,16 @@ const Ya = {
4204
4256
  ));
4205
4257
  },
4206
4258
  handleRender() {
4207
- var a, e, t, r, i, o, s, n, c, d;
4259
+ var a, e, t, r, i, o, s, l, h, d;
4208
4260
  if (!this.map)
4209
4261
  setTimeout(() => {
4210
4262
  this.handleRender();
4211
4263
  }, 500);
4212
4264
  else {
4213
4265
  if (this.tropicals) {
4214
- const g = (/* @__PURE__ */ new Date()).valueOf();
4215
- let u = 0, y = 0;
4216
- (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), y = (/* @__PURE__ */ new Date()).valueOf() - (g + u), console.log("[tropicals] update elapsed: ", y, ", total: ", u += y)) : (this.map.addSource(this.source, {
4266
+ const p = (/* @__PURE__ */ new Date()).valueOf();
4267
+ let f = 0, m = 0;
4268
+ (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, {
4217
4269
  type: "geojson",
4218
4270
  data: (r = this.tropicals) != null && r.active ? (i = this.tropicals) == null ? void 0 : i.data : this.empty
4219
4271
  }), this.map.addLayer({
@@ -4310,9 +4362,9 @@ const Ya = {
4310
4362
  ],
4311
4363
  "text-halo-width": 4
4312
4364
  }
4313
- }), y = (/* @__PURE__ */ new Date()).valueOf() - (g + u), console.log("[tropical] add elapsed: ", y, ", total: ", u += y)), (o = this.map) != null && o.getSource(this.clusterSource) ? ((n = this.map) == null || n.getSource(this.clusterSource).setData((s = this.tropicals) != null && s.active ? this.tropicals.data : this.empty), y = (/* @__PURE__ */ new Date()).valueOf() - (g + u), console.log("[tropical] update elapsed: ", y, ", total: ", u += y)) : (this.map.addSource(this.clusterSource, {
4365
+ }), m = (/* @__PURE__ */ new Date()).valueOf() - (p + f), console.log("[tropical] add elapsed: ", m, ", total: ", f += m)), (o = this.map) != null && o.getSource(this.clusterSource) ? ((l = this.map) == null || l.getSource(this.clusterSource).setData((s = this.tropicals) != null && s.active ? this.tropicals.data : this.empty), m = (/* @__PURE__ */ new Date()).valueOf() - (p + f), console.log("[tropical] update elapsed: ", m, ", total: ", f += m)) : (this.map.addSource(this.clusterSource, {
4314
4366
  type: "geojson",
4315
- data: (c = this.tropicals) != null && c.active ? (d = this.tropicals) == null ? void 0 : d.data : this.empty
4367
+ data: (h = this.tropicals) != null && h.active ? (d = this.tropicals) == null ? void 0 : d.data : this.empty
4316
4368
  // cluster: true,
4317
4369
  // clusterRadius: 10, // 聚合半径
4318
4370
  }), this.map.addLayer({
@@ -4427,13 +4479,11 @@ const Ya = {
4427
4479
  "text-halo-color": "#0033ff",
4428
4480
  "text-halo-width": 4
4429
4481
  }
4430
- }), y = (/* @__PURE__ */ new Date()).valueOf() - (g + u), console.log("[tropical] add elapsed: ", y, ", total: ", u += y));
4482
+ }), m = (/* @__PURE__ */ new Date()).valueOf() - (p + f), console.log("[tropical] add elapsed: ", m, ", total: ", f += m));
4431
4483
  }
4432
4484
  this.handleDrawCircle();
4433
- const p = Qe.interpolate(this.tropicals, 1);
4434
- this.interpolateData = JSON.parse(JSON.stringify(p));
4435
- const h = this.interpolateData.filter((g) => g.properties.name === "kristy" && g.properties.model === "ecmwf");
4436
- console.log(h), this.handleDateChange();
4485
+ const c = Oe.interpolate(this.tropicals, 1);
4486
+ this.interpolateData = JSON.parse(JSON.stringify(c)), this.interpolateData.filter((p) => p.properties.name === "kristy" && p.properties.model === "ecmwf"), this.handleDateChange();
4437
4487
  }
4438
4488
  },
4439
4489
  handleClear() {
@@ -4441,14 +4491,14 @@ const Ya = {
4441
4491
  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));
4442
4492
  },
4443
4493
  handleDateChange() {
4444
- var a, e, t, r, i, o, s, n, c, d, p, h, g, u, y, f, m, v, b, _, P, w, A, M, $, W, O, J, de, pe, me, ue, ye, fe, ge, ie;
4445
- 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) {
4446
- const X = Z(this.date).utc().set({ minute: 0, second: 0, millisecond: 0 }), q = this.interpolateData.filter((I) => I.properties.date === X.format() && !I.properties.disabled), be = this.handleComputePolygons(q), Q = L.featureCollection([...q]);
4447
- be.forEach((I) => {
4448
- Q.features.push(I);
4449
- }), (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, {
4494
+ var a, e, t, r, i, o, s, l, h, d, c, p, f, m, b, y, u, v, g, L, z, w, A, M, W, O, F, H, se, ne, le, ce, he, de, pe, te;
4495
+ if ((a = this.interpolateMarkers) == null || a.forEach((G) => G == null ? void 0 : G.remove()), this.circleSourceData.features = [], (e = this.interpolateData) != null && e.length && this.tropicals.active) {
4496
+ const G = Z(this.date).utc().set({ minute: 0, second: 0, millisecond: 0 }), Y = this.interpolateData.filter((E) => E.properties.date === G.format() && !E.properties.disabled), me = this.handleComputePolygons(Y), q = x.featureCollection([...Y]);
4497
+ me.forEach((E) => {
4498
+ q.features.push(E);
4499
+ }), (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, {
4450
4500
  type: "geojson",
4451
- data: Q
4501
+ data: q
4452
4502
  }), (o = this.map) == null || o.addLayer({
4453
4503
  id: this.interpolateLineLayer,
4454
4504
  type: "line",
@@ -4460,17 +4510,17 @@ const Ya = {
4460
4510
  "line-width": 1
4461
4511
  }
4462
4512
  })), this.interpolateMarkers = [];
4463
- for (const I of q)
4464
- if (!I.properties.disabled) {
4465
- let F = "#f44336";
4466
- ((n = (s = I.properties) == null ? void 0 : s.wind) == null ? void 0 : n.spd) < 17.2 || !((d = (c = I.properties) == null ? void 0 : c.wind) != null && d.spd) ? F = "#03f869" : ((h = (p = I.properties) == null ? void 0 : p.wind) == null ? void 0 : h.spd) >= 17.2 && ((u = (g = I.properties) == null ? void 0 : g.wind) == null ? void 0 : u.spd) < 24.5 ? F = "#f2f202" : ((f = (y = I.properties) == null ? void 0 : y.wind) == null ? void 0 : f.spd) >= 24.5 && ((v = (m = I.properties) == null ? void 0 : m.wind) == null ? void 0 : v.spd) < 32.7 ? F = "#ff9100" : ((_ = (b = I.properties) == null ? void 0 : b.wind) == null ? void 0 : _.spd) >= 32.7 && ((w = (P = I.properties) == null ? void 0 : P.wind) == null ? void 0 : w.spd) < 41.5 ? F = "#f44336" : ((M = (A = I.properties) == null ? void 0 : A.wind) == null ? void 0 : M.spd) >= 41.5 && ((W = ($ = I.properties) == null ? void 0 : $.wind) == null ? void 0 : W.spd) < 51 ? F = "#f903d0" : ((J = (O = I.properties) == null ? void 0 : O.wind) == null ? void 0 : J.spd) >= 51 ? F = "#8702f9" : F = "#f44336";
4467
- const ve = `<svg t="1719918955501"
4513
+ for (const E of Y)
4514
+ if (!E.properties.disabled) {
4515
+ let $ = "#f44336";
4516
+ ((l = (s = E.properties) == null ? void 0 : s.wind) == null ? void 0 : l.spd) < 17.2 || !((d = (h = E.properties) == null ? void 0 : h.wind) != null && d.spd) ? $ = "#03f869" : ((p = (c = E.properties) == null ? void 0 : c.wind) == null ? void 0 : p.spd) >= 17.2 && ((m = (f = E.properties) == null ? void 0 : f.wind) == null ? void 0 : m.spd) < 24.5 ? $ = "#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 ? $ = "#ff9100" : ((L = (g = E.properties) == null ? void 0 : g.wind) == null ? void 0 : L.spd) >= 32.7 && ((w = (z = E.properties) == null ? void 0 : z.wind) == null ? void 0 : w.spd) < 41.5 ? $ = "#f44336" : ((M = (A = E.properties) == null ? void 0 : A.wind) == null ? void 0 : M.spd) >= 41.5 && ((O = (W = E.properties) == null ? void 0 : W.wind) == null ? void 0 : O.spd) < 51 ? $ = "#f903d0" : ((H = (F = E.properties) == null ? void 0 : F.wind) == null ? void 0 : H.spd) >= 51 ? $ = "#8702f9" : $ = "#f44336";
4517
+ const ue = `<svg t="1719918955501"
4468
4518
  class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" p-id="18382"
4469
4519
  xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200">
4470
4520
  <path
4471
4521
  d="M515.17000001 169.34666667c41-77.73 95.33-96 95.33-96-240 0-434.5 194.53-434.5 434.5 0 186.47 150.78 337.7 337.06 338.48C472.11000001 923.66666667 418.00000001 941.83666667 418.00000001 941.83666667c240 0 434.5-194.54 434.5-434.5l0.5 0.5C853.00000001 321.10666667 701.81000001 169.66666667 515.17000001 169.34666667z m-0.67 468A129.5 129.5 0 1 1 644.00000001 507.83666667a129.5 129.5 0 0 1-129.5 129.5z"
4472
- fill="${F}" p-id="18383"></path>
4473
- <path d="M514.50000001 507.83666667m-129.5 0a129.5 129.5 0 1 0 259 0 129.5 129.5 0 1 0-259 0Z" fill="${F}"
4522
+ fill="${$}" p-id="18383"></path>
4523
+ <path d="M514.50000001 507.83666667m-129.5 0a129.5 129.5 0 1 0 259 0 129.5 129.5 0 1 0-259 0Z" fill="${$}"
4474
4524
  p-id="18384"></path>
4475
4525
  <path
4476
4526
  d="M517.16666667 654.67c-80.23 0-145.5-65.27-145.5-145.5s65.27-145.5 145.5-145.5S662.66666667 428.94 662.66666667 509.17s-65.27 145.5-145.5 145.5z m0-259A113.5 113.5 0 1 0 630.66666667 509.17a113.63 113.63 0 0 0-113.5-113.5z"
@@ -4478,60 +4528,60 @@ const Ya = {
4478
4528
  <path
4479
4529
  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"
4480
4530
  fill="#ffffff" p-id="18386"></path>
4481
- </svg>`, K = document.createElement("div");
4482
- K.className = "hurricane-hourly-marker", K.innerHTML = `<div class="${I.geometry.coordinates[1] >= 0 ? "center north" : "center south"}">${ve}</div>`;
4483
- const we = new te.Marker(K).setLngLat(I.geometry.coordinates).addTo(this.map);
4484
- if (this.interpolateMarkers.push(we), (de = I.properties) != null && de.showCircle) {
4485
- const re = { radius: 100, coordinates: I.geometry.coordinates }, oe = { radius: 200, coordinates: I.geometry.coordinates }, se = { radius: 500, coordinates: I.geometry.coordinates };
4486
- (pe = this.circleSourceData) == null || pe.features.push(
4487
- L.circle(re.coordinates, re.radius, { steps: 100, units: "kilometers", properties: { type: "tropicalCircle" } })
4488
- ), (me = this.circleSourceData) == null || me.features.push(
4489
- L.circle(oe.coordinates, oe.radius, { steps: 100, units: "kilometers", properties: { type: "tropicalCircle" } })
4490
- ), (ue = this.circleSourceData) == null || ue.features.push(
4491
- L.circle(se.coordinates, se.radius, { steps: 100, units: "kilometers", properties: { type: "tropicalCircle" } })
4531
+ </svg>`, Q = document.createElement("div");
4532
+ Q.className = "hurricane-hourly-marker", Q.innerHTML = `<div class="${E.geometry.coordinates[1] >= 0 ? "center north" : "center south"}">${ue}</div>`;
4533
+ const ye = new ee.Marker(Q).setLngLat(E.geometry.coordinates).addTo(this.map);
4534
+ if (this.interpolateMarkers.push(ye), (se = E.properties) != null && se.showCircle) {
4535
+ const ae = { radius: 100, coordinates: E.geometry.coordinates }, ie = { radius: 200, coordinates: E.geometry.coordinates }, re = { radius: 500, coordinates: E.geometry.coordinates };
4536
+ (ne = this.circleSourceData) == null || ne.features.push(
4537
+ x.circle(ae.coordinates, ae.radius, { steps: 100, units: "kilometers", properties: { type: "tropicalCircle" } })
4538
+ ), (le = this.circleSourceData) == null || le.features.push(
4539
+ x.circle(ie.coordinates, ie.radius, { steps: 100, units: "kilometers", properties: { type: "tropicalCircle" } })
4540
+ ), (ce = this.circleSourceData) == null || ce.features.push(
4541
+ x.circle(re.coordinates, re.radius, { steps: 100, units: "kilometers", properties: { type: "tropicalCircle" } })
4492
4542
  );
4493
4543
  }
4494
- (fe = (ye = this.map) == null ? void 0 : ye.getSource(this.circleSource)) == null || fe.setData(this.circleSourceData);
4544
+ (de = (he = this.map) == null ? void 0 : he.getSource(this.circleSource)) == null || de.setData(this.circleSourceData);
4495
4545
  }
4496
4546
  } else
4497
- (ge = this.map) != null && ge.getSource(this.interpolateSource) && ((ie = this.map) == null || ie.getSource(this.interpolateSource).setData(this.empty));
4547
+ (pe = this.map) != null && pe.getSource(this.interpolateSource) && ((te = this.map) == null || te.getSource(this.interpolateSource).setData(this.empty));
4498
4548
  },
4499
4549
  handleClick(a) {
4500
- var o, s, n, c, d, p, h, g;
4550
+ var o, s, l, h, d, c, p, f;
4501
4551
  const e = a.features[0], t = (s = (o = this.tropicals) == null ? void 0 : o.data) == null ? void 0 : s.features.filter(
4502
- (u) => {
4503
- var y;
4504
- return u.geometry.type === "LineString" && u.properties.type === "forecast" && u.properties.name === ((y = e == null ? void 0 : e.properties) == null ? void 0 : y.name);
4552
+ (m) => {
4553
+ var b;
4554
+ return m.geometry.type === "LineString" && m.properties.type === "forecast" && m.properties.name === ((b = e == null ? void 0 : e.properties) == null ? void 0 : b.name);
4505
4555
  }
4506
4556
  );
4507
- t.sort((u, y) => {
4508
- var f, m, v, b;
4509
- return ((f = u.properties) == null ? void 0 : f.model) === "cma" ? -1 : ((m = u.properties) == null ? void 0 : m.model) === "jma" ? ((v = y.properties) == null ? void 0 : v.model) === "cma" ? 1 : -1 : u.properties.model === "ecmwf" ? ["jma", "cma"].includes((b = y.properties) == null ? void 0 : b.model) ? 1 : -1 : 0;
4557
+ t.sort((m, b) => {
4558
+ var y, u, v, g;
4559
+ 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;
4510
4560
  });
4511
- const r = (c = (n = this.tropicals) == null ? void 0 : n.data) == null ? void 0 : c.features.filter(
4512
- (u) => {
4513
- var y;
4514
- return u.geometry.type === "LineString" && u.properties.type === "history" && u.properties.name === ((y = e == null ? void 0 : e.properties) == null ? void 0 : y.name);
4561
+ const r = (h = (l = this.tropicals) == null ? void 0 : l.data) == null ? void 0 : h.features.filter(
4562
+ (m) => {
4563
+ var b;
4564
+ return m.geometry.type === "LineString" && m.properties.type === "history" && m.properties.name === ((b = e == null ? void 0 : e.properties) == null ? void 0 : b.name);
4515
4565
  }
4516
4566
  );
4517
4567
  this.activeTropicals = {
4518
4568
  name: (d = e == null ? void 0 : e.properties) == null ? void 0 : d.name,
4519
- forecasts: t.map((u) => u.properties),
4520
- history: (p = r[0]) == null ? void 0 : p.properties,
4521
- showCircle: (g = (h = t[0]) == null ? void 0 : h.properties) == null ? void 0 : g.showCircle
4569
+ forecasts: t.map((m) => m.properties),
4570
+ history: (c = r[0]) == null ? void 0 : c.properties,
4571
+ showCircle: (f = (p = t[0]) == null ? void 0 : p.properties) == null ? void 0 : f.showCircle
4522
4572
  }, this.showTropicals = !0;
4523
4573
  const i = document.getElementById("active-tropical");
4524
- this.activeTropicalsMarker ? this.activeTropicalsMarker.setLngLat([a.lngLat.lng, a.lngLat.lat]) : this.activeTropicalsMarker = new te.Marker(i).setLngLat([a.lngLat.lng, a.lngLat.lat]).setOffset([220, 0]).addTo(this.map);
4574
+ this.activeTropicalsMarker ? this.activeTropicalsMarker.setLngLat([a.lngLat.lng, a.lngLat.lat]) : this.activeTropicalsMarker = new ee.Marker(i).setLngLat([a.lngLat.lng, a.lngLat.lat]).setOffset([220, 0]).addTo(this.map);
4525
4575
  },
4526
4576
  handleForecastToggle(a) {
4527
- var r, i, o, s, n, c;
4577
+ var r, i, o, s, l, h;
4528
4578
  a.disabled = !a.disabled;
4529
4579
  const e = `${a.name}-${a.model}`, t = (i = (r = this.map) == null ? void 0 : r.getSource(this.source)._data) == null ? void 0 : i.features;
4530
4580
  t.forEach((d) => {
4531
4581
  d.properties.category === e && (d.properties.disabled = a.disabled);
4532
4582
  }), this.interpolateData.forEach((d) => {
4533
4583
  d.properties.category === e && (d.properties.disabled = a.disabled);
4534
- }), (s = (o = this.map) == null ? void 0 : o.getSource(this.source)) == null || s.setData(L.featureCollection(t)), (c = (n = this.map) == null ? void 0 : n.getSource(this.clusterSource)) == null || c.setData(L.featureCollection(t)), this.handleDateChange();
4584
+ }), (s = (o = this.map) == null ? void 0 : o.getSource(this.source)) == null || s.setData(x.featureCollection(t)), (h = (l = this.map) == null ? void 0 : l.getSource(this.clusterSource)) == null || h.setData(x.featureCollection(t)), this.handleDateChange();
4535
4585
  },
4536
4586
  handleStrikeProbability(a) {
4537
4587
  this.$emit("tropicalProbability", a);
@@ -4575,8 +4625,8 @@ const Ya = {
4575
4625
  se: r.r10se >= 0 ? r.r10se : void 0,
4576
4626
  sw: r.r10sw >= 0 ? r.r10sw : void 0,
4577
4627
  nw: r.r10nw >= 0 ? r.r10nw : void 0
4578
- }, n = this.handleComputeArc(t.geometry.coordinates, s, { ...t.properties, level: 10 });
4579
- e.push(n);
4628
+ }, l = this.handleComputeArc(t.geometry.coordinates, s, { ...t.properties, level: 10 });
4629
+ e.push(l);
4580
4630
  }
4581
4631
  return e;
4582
4632
  },
@@ -4584,108 +4634,108 @@ const Ya = {
4584
4634
  var o;
4585
4635
  const r = [];
4586
4636
  for (const s in e) {
4587
- const n = e[s] ?? 0;
4588
- let c;
4637
+ const l = e[s] ?? 0;
4638
+ let h;
4589
4639
  switch (s) {
4590
4640
  case "ne":
4591
- c = L.lineArc(a, n * 1.852, 0, 90, { steps: n > 0 ? 64 : 1 });
4641
+ h = x.lineArc(a, l * 1.852, 0, 90, { steps: l > 0 ? 64 : 1 });
4592
4642
  break;
4593
4643
  case "se":
4594
- c = L.lineArc(a, n * 1.852, 90, 180, { steps: n > 0 ? 64 : 1 });
4644
+ h = x.lineArc(a, l * 1.852, 90, 180, { steps: l > 0 ? 64 : 1 });
4595
4645
  break;
4596
4646
  case "sw":
4597
- c = L.lineArc(a, n * 1.852, 180, 270, { steps: n > 0 ? 64 : 1 });
4647
+ h = x.lineArc(a, l * 1.852, 180, 270, { steps: l > 0 ? 64 : 1 });
4598
4648
  break;
4599
4649
  case "nw":
4600
- c = L.lineArc(a, n * 1.852, 270, 360, { steps: n > 0 ? 64 : 1 });
4650
+ h = x.lineArc(a, l * 1.852, 270, 360, { steps: l > 0 ? 64 : 1 });
4601
4651
  break;
4602
4652
  }
4603
- r.push(...(o = c == null ? void 0 : c.geometry) == null ? void 0 : o.coordinates);
4653
+ r.push(...(o = h == null ? void 0 : h.geometry) == null ? void 0 : o.coordinates);
4604
4654
  }
4605
- const i = L.lineString(r);
4606
- return L.lineToPolygon(i, { properties: t });
4655
+ const i = x.lineString(r);
4656
+ return x.lineToPolygon(i, { properties: t });
4607
4657
  }
4608
4658
  }
4609
- }, Ue = (a) => (H("data-v-f0e05b29"), a = a(), G(), a), qa = {
4659
+ }, Zt = {
4610
4660
  id: "active-tropical",
4611
4661
  class: "active-tropical"
4612
- }, Qa = { class: "header-box" }, Ka = { class: "main" }, ei = { key: 0 }, ti = { class: "sub" }, ai = {
4662
+ }, Ht = { class: "header-box" }, Gt = { class: "main" }, Jt = { key: 0 }, Xt = { class: "sub" }, Yt = {
4613
4663
  id: "meteoBox",
4614
4664
  class: "main-box"
4615
- }, ii = { class: "content" }, ri = { class: "row" }, oi = {
4665
+ }, qt = { class: "content" }, Qt = { class: "row" }, Kt = {
4616
4666
  class: "col col-left",
4617
4667
  style: { "justify-content": "flex-start" }
4618
- }, si = /* @__PURE__ */ Ue(() => /* @__PURE__ */ l("label", null, "Wind speed : ", -1)), ni = {
4668
+ }, ea = {
4619
4669
  class: "col col-right",
4620
4670
  style: { "justify-content": "flex-start" }
4621
- }, li = /* @__PURE__ */ Ue(() => /* @__PURE__ */ l("label", null, "Pressure : ", -1)), ci = { class: "row" }, hi = {
4671
+ }, ta = { class: "row" }, aa = {
4622
4672
  class: "col col-24",
4623
4673
  style: { "justify-content": "flex-start" }
4624
- }, di = /* @__PURE__ */ Ue(() => /* @__PURE__ */ l("label", { style: { width: "max-content" } }, "Forecast Models : ", -1)), pi = { class: "forecast-models" }, mi = ["onClick"], ui = /* @__PURE__ */ rt('<div class="row" style="padding:0;height:1px;margin:10px 0;background:var(--idm-black-1);" data-v-f0e05b29></div><div class="row" style="padding:2px 10px;" data-v-f0e05b29><div class="legend" data-v-f0e05b29><div class="icon td" data-v-f0e05b29></div><div class="label" data-v-f0e05b29>TD</div></div><div class="legend" data-v-f0e05b29><div class="icon ts" data-v-f0e05b29></div><div class="label" data-v-f0e05b29>TS</div></div><div class="legend" data-v-f0e05b29><div class="icon sts" data-v-f0e05b29></div><div class="label" data-v-f0e05b29>STS</div></div><div class="legend" data-v-f0e05b29><div class="icon ty" data-v-f0e05b29></div><div class="label" data-v-f0e05b29>TY</div></div><div class="legend" data-v-f0e05b29><div class="icon sty" data-v-f0e05b29></div><div class="label" data-v-f0e05b29>STY</div></div><div class="legend" data-v-f0e05b29><div class="icon supper-ty" data-v-f0e05b29></div><div class="label" data-v-f0e05b29>Super TY</div></div></div><div class="row" style="padding:2px 10px;" data-v-f0e05b29><div class="legend" data-v-f0e05b29><div class="icon history" data-v-f0e05b29></div><div class="label" data-v-f0e05b29>History</div></div><div class="legend" data-v-f0e05b29><div class="icon r7" data-v-f0e05b29></div><div class="label" data-v-f0e05b29>35kts Radii</div></div><div class="legend" data-v-f0e05b29><div class="icon r10" data-v-f0e05b29></div><div class="label" data-v-f0e05b29>50kts Radii</div></div></div>', 3), yi = { class: "more" };
4625
- function fi(a, e, t, r, i, o) {
4626
- var s, n, c, d, p, h, g, u, y, f, m, v, b, _, P;
4627
- return je((x(), C("div", qa, [
4628
- l("div", Qa, [
4629
- l("div", {
4674
+ }, ia = { class: "forecast-models" }, ra = ["onClick"], oa = { class: "more" };
4675
+ function sa(a, e, t, r, i, o) {
4676
+ var s, l, h, d, c, p, f, m, b, y, u, v, g, L, z;
4677
+ return Pe((_(), C("div", Zt, [
4678
+ n("div", Ht, [
4679
+ n("div", {
4630
4680
  class: "iconfont close-btn",
4631
4681
  onClick: e[0] || (e[0] = (w) => i.showTropicals = !1)
4632
4682
  }, ""),
4633
- l("div", Ka, [
4634
- (n = (s = i.activeTropicals) == null ? void 0 : s.history) != null && n.level ? (x(), C("span", ei, S((d = (c = i.activeTropicals) == null ? void 0 : c.history) == null ? void 0 : d.level) + " , ", 1)) : j("", !0),
4635
- Fe(S((p = i.activeTropicals) == null ? void 0 : p.name), 1)
4683
+ n("div", Gt, [
4684
+ (l = (s = i.activeTropicals) == null ? void 0 : s.history) != null && l.level ? (_(), C("span", Jt, S((d = (h = i.activeTropicals) == null ? void 0 : h.history) == null ? void 0 : d.level) + " , ", 1)) : B("", !0),
4685
+ Ie(S((c = i.activeTropicals) == null ? void 0 : c.name), 1)
4636
4686
  ]),
4637
- l("div", ti, " Last update: " + S(o.computeTime(((g = (h = i.activeTropicals) == null ? void 0 : h.history) == null ? void 0 : g.updated) || ((f = (y = (u = i.activeTropicals) == null ? void 0 : u.forecasts) == null ? void 0 : y.filter((w) => !w.disabled)[0]) == null ? void 0 : f.date))), 1)
4687
+ n("div", Xt, " 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((w) => !w.disabled)[0]) == null ? void 0 : y.date))), 1)
4638
4688
  ]),
4639
- l("div", ai, [
4640
- l("div", ii, [
4641
- l("div", ri, [
4642
- l("div", oi, [
4643
- si,
4644
- l("span", null, S(((v = (m = i.activeTropicals) == null ? void 0 : m.history) == null ? void 0 : v.kts) || "-") + "[kts]", 1)
4689
+ n("div", Yt, [
4690
+ n("div", qt, [
4691
+ n("div", Qt, [
4692
+ n("div", Kt, [
4693
+ e[2] || (e[2] = n("label", null, "Wind speed : ", -1)),
4694
+ n("span", null, S(((v = (u = i.activeTropicals) == null ? void 0 : u.history) == null ? void 0 : v.kts) || "-") + "[kts]", 1)
4645
4695
  ]),
4646
- l("div", ni, [
4647
- li,
4648
- l("span", null, S(((_ = (b = i.activeTropicals) == null ? void 0 : b.history) == null ? void 0 : _.pressure) || "-") + "[hPa]", 1)
4696
+ n("div", ea, [
4697
+ e[3] || (e[3] = n("label", null, "Pressure : ", -1)),
4698
+ n("span", null, S(((L = (g = i.activeTropicals) == null ? void 0 : g.history) == null ? void 0 : L.pressure) || "-") + "[hPa]", 1)
4649
4699
  ])
4650
4700
  ]),
4651
- l("div", ci, [
4652
- l("div", hi, [
4653
- di,
4654
- l("div", pi, [
4655
- (x(!0), C(Ae, null, $e((P = i.activeTropicals) == null ? void 0 : P.forecasts, (w, A) => {
4656
- var M, $, W, O;
4657
- return x(), C("div", {
4701
+ n("div", ta, [
4702
+ n("div", aa, [
4703
+ e[4] || (e[4] = n("label", { style: { width: "max-content" } }, "Forecast Models : ", -1)),
4704
+ n("div", ia, [
4705
+ (_(!0), C(_e, null, Se((z = i.activeTropicals) == null ? void 0 : z.forecasts, (w, A) => {
4706
+ var M, W, O, F;
4707
+ return _(), C("div", {
4658
4708
  key: A,
4659
- class: N([
4709
+ class: j([
4660
4710
  "model",
4661
4711
  w.disabled ? "" : "active",
4662
- A > 0 && A < (($ = (M = i.activeTropicals) == null ? void 0 : M.forecasts) == null ? void 0 : $.length) - 1 && ((O = (W = i.activeTropicals) == null ? void 0 : W.forecasts) == null ? void 0 : O.length) > 2 ? "center-child" : ""
4712
+ A > 0 && A < ((W = (M = i.activeTropicals) == null ? void 0 : M.forecasts) == null ? void 0 : W.length) - 1 && ((F = (O = i.activeTropicals) == null ? void 0 : O.forecasts) == null ? void 0 : F.length) > 2 ? "center-child" : ""
4663
4713
  ]),
4664
- onClick: (J) => o.handleForecastToggle(w)
4714
+ onClick: (H) => o.handleForecastToggle(w)
4665
4715
  }, [
4666
- l("span", {
4667
- class: N(w.model)
4716
+ n("span", {
4717
+ class: j(w.model)
4668
4718
  }, S(w.model), 3)
4669
- ], 10, mi);
4719
+ ], 10, ra);
4670
4720
  }), 128))
4671
4721
  ])
4672
4722
  ])
4673
4723
  ]),
4674
- ui
4724
+ e[5] || (e[5] = Ze('<div class="row" style="padding:0;height:1px;margin:10px 0;background:var(--idm-black-1);" data-v-f122450c></div><div class="row" style="padding:2px 10px;" data-v-f122450c><div class="legend" data-v-f122450c><div class="icon td" data-v-f122450c></div><div class="label" data-v-f122450c>TD</div></div><div class="legend" data-v-f122450c><div class="icon ts" data-v-f122450c></div><div class="label" data-v-f122450c>TS</div></div><div class="legend" data-v-f122450c><div class="icon sts" data-v-f122450c></div><div class="label" data-v-f122450c>STS</div></div><div class="legend" data-v-f122450c><div class="icon ty" data-v-f122450c></div><div class="label" data-v-f122450c>TY</div></div><div class="legend" data-v-f122450c><div class="icon sty" data-v-f122450c></div><div class="label" data-v-f122450c>STY</div></div><div class="legend" data-v-f122450c><div class="icon supper-ty" data-v-f122450c></div><div class="label" data-v-f122450c>Super TY</div></div></div><div class="row" style="padding:2px 10px;" data-v-f122450c><div class="legend" data-v-f122450c><div class="icon history" data-v-f122450c></div><div class="label" data-v-f122450c>History</div></div><div class="legend" data-v-f122450c><div class="icon r7" data-v-f122450c></div><div class="label" data-v-f122450c>35kts Radii</div></div><div class="legend" data-v-f122450c><div class="icon r10" data-v-f122450c></div><div class="label" data-v-f122450c>50kts Radii</div></div></div>', 3))
4675
4725
  ]),
4676
- l("div", yi, [
4677
- l("div", {
4726
+ n("div", oa, [
4727
+ n("div", {
4678
4728
  class: "button",
4679
4729
  onClick: e[1] || (e[1] = (w) => o.handleStrikeProbability(i.activeTropicals))
4680
4730
  }, "Strike Probability >>")
4681
4731
  ])
4682
4732
  ])
4683
4733
  ], 512)), [
4684
- [Ne, i.showTropicals && !a.$attrs.hideTropicalsLegend]
4734
+ [ze, i.showTropicals && !a.$attrs.hideTropicalsLegend]
4685
4735
  ]);
4686
4736
  }
4687
- const Ke = /* @__PURE__ */ T(Ya, [["render", fi], ["__scopeId", "data-v-f0e05b29"]]);
4688
- const gi = {
4737
+ const Fe = /* @__PURE__ */ T(Ut, [["render", sa], ["__scopeId", "data-v-f122450c"]]);
4738
+ const na = {
4689
4739
  name: "IdmPrecip3h",
4690
4740
  props: {
4691
4741
  factor: {
@@ -4713,7 +4763,7 @@ const gi = {
4713
4763
  texture: void 0,
4714
4764
  rampColor: void 0,
4715
4765
  aPositionBuffer: void 0,
4716
- webgl: new Le(),
4766
+ webgl: new fe(),
4717
4767
  etime: void 0,
4718
4768
  right: 10
4719
4769
  };
@@ -4773,7 +4823,7 @@ const gi = {
4773
4823
  [1, "rgba(197,5,58,0.8)"]
4774
4824
  ];
4775
4825
  this.rampColor = this.webgl.setup(this.context, a);
4776
- const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, B.vertexSchema, B.fragmentSchema);
4826
+ const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, N.vertexSchema, N.fragmentSchema);
4777
4827
  this.program = e, this.aPositionBuffer = t;
4778
4828
  }
4779
4829
  },
@@ -4786,27 +4836,27 @@ const gi = {
4786
4836
  this.webgl.draw(this.viewport, this.context, this.program, this.texture, this.rampColor.texture, this.aPositionBuffer), this.viewport.toggle(!0);
4787
4837
  }
4788
4838
  }
4789
- }, ce = (a) => (H("data-v-9708a7a3"), a = a(), G(), a), bi = { key: 0 }, vi = /* @__PURE__ */ ce(() => /* @__PURE__ */ l("span", null, "mm", -1)), wi = /* @__PURE__ */ ce(() => /* @__PURE__ */ l("span", null, "1.5", -1)), _i = /* @__PURE__ */ ce(() => /* @__PURE__ */ l("span", null, "2", -1)), Li = /* @__PURE__ */ ce(() => /* @__PURE__ */ l("span", null, "3", -1)), xi = /* @__PURE__ */ ce(() => /* @__PURE__ */ l("span", null, "7", -1)), Ci = /* @__PURE__ */ ce(() => /* @__PURE__ */ l("span", null, "10", -1)), ki = /* @__PURE__ */ ce(() => /* @__PURE__ */ l("span", null, "20", -1)), Si = /* @__PURE__ */ ce(() => /* @__PURE__ */ l("span", null, "30", -1)), zi = [
4790
- vi,
4791
- wi,
4792
- _i,
4793
- Li,
4794
- xi,
4795
- Ci,
4796
- ki,
4797
- Si
4798
- ];
4799
- function Pi(a, e, t, r, i, o) {
4839
+ }, la = { key: 0 };
4840
+ function ca(a, e, t, r, i, o) {
4800
4841
  var s;
4801
- return (s = t.factor) != null && s.active ? (x(), C("div", bi, [
4802
- l("div", {
4842
+ return (s = t.factor) != null && s.active ? (_(), C("div", la, [
4843
+ n("div", {
4803
4844
  class: "legend-bars flex-center",
4804
4845
  style: U([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
4805
- }, zi, 4)
4806
- ])) : j("", !0);
4846
+ }, e[0] || (e[0] = [
4847
+ n("span", null, "mm", -1),
4848
+ n("span", null, "1.5", -1),
4849
+ n("span", null, "2", -1),
4850
+ n("span", null, "3", -1),
4851
+ n("span", null, "7", -1),
4852
+ n("span", null, "10", -1),
4853
+ n("span", null, "20", -1),
4854
+ n("span", null, "30", -1)
4855
+ ]), 4)
4856
+ ])) : B("", !0);
4807
4857
  }
4808
- const Ti = /* @__PURE__ */ T(gi, [["render", Pi], ["__scopeId", "data-v-9708a7a3"]]);
4809
- const Ii = {
4858
+ const ha = /* @__PURE__ */ T(na, [["render", ca], ["__scopeId", "data-v-9708a7a3"]]);
4859
+ const da = {
4810
4860
  name: "IdmVisibility",
4811
4861
  props: {
4812
4862
  factor: {
@@ -4834,7 +4884,7 @@ const Ii = {
4834
4884
  texture: void 0,
4835
4885
  rampColor: void 0,
4836
4886
  aPositionBuffer: void 0,
4837
- webgl: new Le(),
4887
+ webgl: new fe(),
4838
4888
  etime: void 0
4839
4889
  };
4840
4890
  },
@@ -4887,7 +4937,7 @@ const Ii = {
4887
4937
  [1, "rgba(144,144,144,0)"]
4888
4938
  ];
4889
4939
  this.rampColor = this.webgl.setup(this.context, a);
4890
- const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, B.vertexSchema, B.fragmentSchema);
4940
+ const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, N.vertexSchema, N.fragmentSchema);
4891
4941
  this.program = e, this.aPositionBuffer = t;
4892
4942
  }
4893
4943
  },
@@ -4900,25 +4950,25 @@ const Ii = {
4900
4950
  this.webgl.draw(this.viewport, this.context, this.program, this.texture, this.rampColor.texture, this.aPositionBuffer), this.viewport.toggle(!0);
4901
4951
  }
4902
4952
  }
4903
- }, ke = (a) => (H("data-v-f7b2fb08"), a = a(), G(), a), Ei = { key: 0 }, Ri = /* @__PURE__ */ ke(() => /* @__PURE__ */ l("span", null, "nm", -1)), Ai = /* @__PURE__ */ ke(() => /* @__PURE__ */ l("span", null, "0", -1)), Di = /* @__PURE__ */ ke(() => /* @__PURE__ */ l("span", null, "0.5", -1)), Mi = /* @__PURE__ */ ke(() => /* @__PURE__ */ l("span", null, "1.5", -1)), $i = /* @__PURE__ */ ke(() => /* @__PURE__ */ l("span", null, "3", -1)), ji = /* @__PURE__ */ ke(() => /* @__PURE__ */ l("span", null, "9", -1)), Ni = [
4904
- Ri,
4905
- Ai,
4906
- Di,
4907
- Mi,
4908
- $i,
4909
- ji
4910
- ];
4911
- function Bi(a, e, t, r, i, o) {
4953
+ }, pa = { key: 0 };
4954
+ function ma(a, e, t, r, i, o) {
4912
4955
  var s;
4913
- return (s = t.factor) != null && s.active ? (x(), C("div", Ei, [
4914
- l("div", {
4956
+ return (s = t.factor) != null && s.active ? (_(), C("div", pa, [
4957
+ n("div", {
4915
4958
  class: "legend-bars flex-center",
4916
4959
  style: U([{ position: "absolute" }, { right: a.right + "px", bottom: t.bottom }])
4917
- }, Ni, 4)
4918
- ])) : j("", !0);
4960
+ }, e[0] || (e[0] = [
4961
+ n("span", null, "nm", -1),
4962
+ n("span", null, "0", -1),
4963
+ n("span", null, "0.5", -1),
4964
+ n("span", null, "1.5", -1),
4965
+ n("span", null, "3", -1),
4966
+ n("span", null, "9", -1)
4967
+ ]), 4)
4968
+ ])) : B("", !0);
4919
4969
  }
4920
- const Wi = /* @__PURE__ */ T(Ii, [["render", Bi], ["__scopeId", "data-v-f7b2fb08"]]);
4921
- const Oi = {
4970
+ const ua = /* @__PURE__ */ T(da, [["render", ma], ["__scopeId", "data-v-f7b2fb08"]]);
4971
+ const ya = {
4922
4972
  name: "IdmWaterTemp",
4923
4973
  props: {
4924
4974
  factor: {
@@ -4946,7 +4996,7 @@ const Oi = {
4946
4996
  texture: void 0,
4947
4997
  rampColor: void 0,
4948
4998
  aPositionBuffer: void 0,
4949
- webgl: new Le(),
4999
+ webgl: new fe(),
4950
5000
  etime: void 0,
4951
5001
  right: 10
4952
5002
  };
@@ -5007,7 +5057,7 @@ const Oi = {
5007
5057
  //
5008
5058
  ];
5009
5059
  this.rampColor = this.webgl.setup(this.context, a);
5010
- const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, B.vertexSchema, B.fragmentSchema);
5060
+ const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, N.vertexSchema, N.fragmentSchema);
5011
5061
  this.program = e, this.aPositionBuffer = t;
5012
5062
  }
5013
5063
  },
@@ -5020,25 +5070,25 @@ const Oi = {
5020
5070
  this.webgl.draw(this.viewport, this.context, this.program, this.texture, this.rampColor.texture, this.aPositionBuffer), this.viewport.toggle(!0);
5021
5071
  }
5022
5072
  }
5023
- }, Se = (a) => (H("data-v-7521f582"), a = a(), G(), a), Fi = { key: 0 }, Vi = /* @__PURE__ */ Se(() => /* @__PURE__ */ l("span", null, "°C", -1)), Ui = /* @__PURE__ */ Se(() => /* @__PURE__ */ l("span", null, "0", -1)), Zi = /* @__PURE__ */ Se(() => /* @__PURE__ */ l("span", null, "10", -1)), Hi = /* @__PURE__ */ Se(() => /* @__PURE__ */ l("span", null, "20", -1)), Gi = /* @__PURE__ */ Se(() => /* @__PURE__ */ l("span", null, "30", -1)), Ji = /* @__PURE__ */ Se(() => /* @__PURE__ */ l("span", null, "40", -1)), Xi = [
5024
- Vi,
5025
- Ui,
5026
- Zi,
5027
- Hi,
5028
- Gi,
5029
- Ji
5030
- ];
5031
- function Yi(a, e, t, r, i, o) {
5073
+ }, fa = { key: 0 };
5074
+ function ga(a, e, t, r, i, o) {
5032
5075
  var s;
5033
- return (s = t.factor) != null && s.active ? (x(), C("div", Fi, [
5034
- l("div", {
5076
+ return (s = t.factor) != null && s.active ? (_(), C("div", fa, [
5077
+ n("div", {
5035
5078
  class: "legend-bars flex-center",
5036
5079
  style: U([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
5037
- }, Xi, 4)
5038
- ])) : j("", !0);
5080
+ }, e[0] || (e[0] = [
5081
+ n("span", null, "°C", -1),
5082
+ n("span", null, "0", -1),
5083
+ n("span", null, "10", -1),
5084
+ n("span", null, "20", -1),
5085
+ n("span", null, "30", -1),
5086
+ n("span", null, "40", -1)
5087
+ ]), 4)
5088
+ ])) : B("", !0);
5039
5089
  }
5040
- const qi = /* @__PURE__ */ T(Oi, [["render", Yi], ["__scopeId", "data-v-7521f582"]]);
5041
- const Qi = {
5090
+ const ba = /* @__PURE__ */ T(ya, [["render", ga], ["__scopeId", "data-v-7521f582"]]);
5091
+ const va = {
5042
5092
  name: "IdmTemp",
5043
5093
  props: {
5044
5094
  factor: {
@@ -5066,7 +5116,7 @@ const Qi = {
5066
5116
  texture: void 0,
5067
5117
  rampColor: void 0,
5068
5118
  aPositionBuffer: void 0,
5069
- webgl: new Le(),
5119
+ webgl: new fe(),
5070
5120
  etime: void 0,
5071
5121
  right: 10
5072
5122
  };
@@ -5130,7 +5180,7 @@ const Qi = {
5130
5180
  [1, "rgb(138, 43, 10)"]
5131
5181
  ];
5132
5182
  this.rampColor = this.webgl.setup(this.context, a);
5133
- const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, B.vertexSchema, B.fragmentSchema);
5183
+ const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, N.vertexSchema, N.fragmentSchema);
5134
5184
  this.program = e, this.aPositionBuffer = t;
5135
5185
  }
5136
5186
  },
@@ -5143,27 +5193,27 @@ const Qi = {
5143
5193
  this.webgl.draw(this.viewport, this.context, this.program, this.texture, this.rampColor.texture, this.aPositionBuffer), this.viewport.toggle(!0);
5144
5194
  }
5145
5195
  }
5146
- }, he = (a) => (H("data-v-25daaa82"), a = a(), G(), a), Ki = { key: 0 }, er = /* @__PURE__ */ he(() => /* @__PURE__ */ l("span", null, "°C", -1)), tr = /* @__PURE__ */ he(() => /* @__PURE__ */ l("span", null, "-20", -1)), ar = /* @__PURE__ */ he(() => /* @__PURE__ */ l("span", null, "-10", -1)), ir = /* @__PURE__ */ he(() => /* @__PURE__ */ l("span", null, "0", -1)), rr = /* @__PURE__ */ he(() => /* @__PURE__ */ l("span", null, "10", -1)), or = /* @__PURE__ */ he(() => /* @__PURE__ */ l("span", null, "20", -1)), sr = /* @__PURE__ */ he(() => /* @__PURE__ */ l("span", null, "30", -1)), nr = /* @__PURE__ */ he(() => /* @__PURE__ */ l("span", null, "40", -1)), lr = [
5147
- er,
5148
- tr,
5149
- ar,
5150
- ir,
5151
- rr,
5152
- or,
5153
- sr,
5154
- nr
5155
- ];
5156
- function cr(a, e, t, r, i, o) {
5196
+ }, wa = { key: 0 };
5197
+ function La(a, e, t, r, i, o) {
5157
5198
  var s;
5158
- return (s = t.factor) != null && s.active ? (x(), C("div", Ki, [
5159
- l("div", {
5199
+ return (s = t.factor) != null && s.active ? (_(), C("div", wa, [
5200
+ n("div", {
5160
5201
  class: "legend-bars flex-center",
5161
5202
  style: U([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
5162
- }, lr, 4)
5163
- ])) : j("", !0);
5203
+ }, e[0] || (e[0] = [
5204
+ n("span", null, "°C", -1),
5205
+ n("span", null, "-20", -1),
5206
+ n("span", null, "-10", -1),
5207
+ n("span", null, "0", -1),
5208
+ n("span", null, "10", -1),
5209
+ n("span", null, "20", -1),
5210
+ n("span", null, "30", -1),
5211
+ n("span", null, "40", -1)
5212
+ ]), 4)
5213
+ ])) : B("", !0);
5164
5214
  }
5165
- const hr = /* @__PURE__ */ T(Qi, [["render", cr], ["__scopeId", "data-v-25daaa82"]]);
5166
- const dr = {
5215
+ const xa = /* @__PURE__ */ T(va, [["render", La], ["__scopeId", "data-v-25daaa82"]]);
5216
+ const _a = {
5167
5217
  name: "IdmArctic",
5168
5218
  props: {
5169
5219
  factor: {
@@ -5191,7 +5241,7 @@ const dr = {
5191
5241
  texture: void 0,
5192
5242
  rampColor: void 0,
5193
5243
  aPositionBuffer: void 0,
5194
- webgl: new Le(),
5244
+ webgl: new fe(),
5195
5245
  etime: void 0,
5196
5246
  right: 10
5197
5247
  };
@@ -5246,7 +5296,7 @@ const dr = {
5246
5296
  // 2m
5247
5297
  ];
5248
5298
  this.rampColor = this.webgl.setup(this.context, a);
5249
- const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, B.vertexSchema, B.fragmentSchema);
5299
+ const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, N.vertexSchema, N.fragmentSchema);
5250
5300
  this.program = e, this.aPositionBuffer = t;
5251
5301
  }
5252
5302
  },
@@ -5259,25 +5309,25 @@ const dr = {
5259
5309
  this.webgl.draw(this.viewport, this.context, this.program, this.texture, this.rampColor.texture, this.aPositionBuffer), this.viewport.toggle(!0);
5260
5310
  }
5261
5311
  }
5262
- }, ze = (a) => (H("data-v-5bb73794"), a = a(), G(), a), pr = { key: 0 }, mr = /* @__PURE__ */ ze(() => /* @__PURE__ */ l("span", null, "m", -1)), ur = /* @__PURE__ */ ze(() => /* @__PURE__ */ l("span", null, "0", -1)), yr = /* @__PURE__ */ ze(() => /* @__PURE__ */ l("span", null, "0.5", -1)), fr = /* @__PURE__ */ ze(() => /* @__PURE__ */ l("span", null, "1", -1)), gr = /* @__PURE__ */ ze(() => /* @__PURE__ */ l("span", null, "1.5", -1)), br = /* @__PURE__ */ ze(() => /* @__PURE__ */ l("span", null, "2", -1)), vr = [
5263
- mr,
5264
- ur,
5265
- yr,
5266
- fr,
5267
- gr,
5268
- br
5269
- ];
5270
- function wr(a, e, t, r, i, o) {
5312
+ }, Ca = { key: 0 };
5313
+ function ka(a, e, t, r, i, o) {
5271
5314
  var s;
5272
- return (s = t.factor) != null && s.active ? (x(), C("div", pr, [
5273
- l("div", {
5315
+ return (s = t.factor) != null && s.active ? (_(), C("div", Ca, [
5316
+ n("div", {
5274
5317
  class: "legend-bars flex-center",
5275
5318
  style: U([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
5276
- }, vr, 4)
5277
- ])) : j("", !0);
5319
+ }, e[0] || (e[0] = [
5320
+ n("span", null, "m", -1),
5321
+ n("span", null, "0", -1),
5322
+ n("span", null, "0.5", -1),
5323
+ n("span", null, "1", -1),
5324
+ n("span", null, "1.5", -1),
5325
+ n("span", null, "2", -1)
5326
+ ]), 4)
5327
+ ])) : B("", !0);
5278
5328
  }
5279
- const _r = /* @__PURE__ */ T(dr, [["render", wr], ["__scopeId", "data-v-5bb73794"]]);
5280
- const Lr = {
5329
+ const Sa = /* @__PURE__ */ T(_a, [["render", ka], ["__scopeId", "data-v-5bb73794"]]);
5330
+ const Pa = {
5281
5331
  name: "IdmPoint",
5282
5332
  emits: ["point", "more"],
5283
5333
  props: {
@@ -5299,7 +5349,7 @@ const Lr = {
5299
5349
  return {
5300
5350
  showMeteo: !1,
5301
5351
  meteoMarker: void 0,
5302
- helper: De
5352
+ helper: Ce
5303
5353
  };
5304
5354
  },
5305
5355
  watch: {
@@ -5360,71 +5410,71 @@ const Lr = {
5360
5410
  var a;
5361
5411
  if (this.meteo) {
5362
5412
  const e = document.getElementById("point-meteo");
5363
- this.meteoMarker ? (a = this.meteoMarker) == null || a.setLngLat([this.meteo.lng, this.meteo.lat]) : this.meteoMarker = new te.Marker(e).setLngLat([this.meteo.lng, this.meteo.lat]).addTo(this.map);
5413
+ this.meteoMarker ? (a = this.meteoMarker) == null || a.setLngLat([this.meteo.lng, this.meteo.lat]) : this.meteoMarker = new ee.Marker(e).setLngLat([this.meteo.lng, this.meteo.lat]).addTo(this.map);
5364
5414
  }
5365
5415
  }
5366
5416
  }
5367
- }, ae = (a) => (H("data-v-efcf572f"), a = a(), G(), a), xr = {
5417
+ }, za = {
5368
5418
  id: "point-meteo",
5369
5419
  class: "point-meteo"
5370
- }, Cr = { class: "meteo-box" }, kr = { class: "header-box" }, Sr = { class: "main" }, zr = { class: "sub" }, Pr = { class: "main-box" }, Tr = { class: "flex-space" }, Ir = /* @__PURE__ */ ae(() => /* @__PURE__ */ l("label", null, "Wind", -1)), Er = { class: "flex-space" }, Rr = /* @__PURE__ */ ae(() => /* @__PURE__ */ l("label", null, "Wind.Wave", -1)), Ar = { class: "flex-space" }, Dr = /* @__PURE__ */ ae(() => /* @__PURE__ */ l("label", null, "Swell", -1)), Mr = { class: "flex-space" }, $r = /* @__PURE__ */ ae(() => /* @__PURE__ */ l("label", null, "Sig.Wave", -1)), jr = { class: "flex-space" }, Nr = /* @__PURE__ */ ae(() => /* @__PURE__ */ l("label", null, "Current", -1)), Br = { class: "flex-space" }, Wr = /* @__PURE__ */ ae(() => /* @__PURE__ */ l("label", null, "Precip", -1)), Or = { class: "flex-space" }, Fr = /* @__PURE__ */ ae(() => /* @__PURE__ */ l("label", null, "Visibility", -1)), Vr = { class: "flex-space" }, Ur = /* @__PURE__ */ ae(() => /* @__PURE__ */ l("label", null, "Temp", -1)), Zr = { class: "flex-space" }, Hr = /* @__PURE__ */ ae(() => /* @__PURE__ */ l("label", null, "Water Temp", -1));
5371
- function Gr(a, e, t, r, i, o) {
5372
- var s, n, c, d, p, h, g, u, y, f, m, v, b, _, P, w, A, M, $, W, O, J, de, pe, me, ue, ye, fe, ge, ie, X, q, be, Q, I, F, ve, K, we, re, oe, se, Pe, Te, Ie, Ee, Re;
5373
- return je((x(), C("div", xr, [
5374
- l("div", Cr, [
5375
- l("div", kr, [
5376
- l("div", {
5420
+ }, Ta = { class: "meteo-box" }, Ea = { class: "header-box" }, Ia = { class: "main" }, Ra = { class: "sub" }, Aa = { class: "main-box" }, Da = { class: "flex-space" }, Ma = { class: "flex-space" }, ja = { class: "flex-space" }, Wa = { class: "flex-space" }, Ba = { class: "flex-space" }, Na = { class: "flex-space" }, Oa = { class: "flex-space" }, Fa = { class: "flex-space" }, $a = { class: "flex-space" };
5421
+ function Va(a, e, t, r, i, o) {
5422
+ var s, l, h, d, c, p, f, m, b, y, u, v, g, L, z, w, A, M, W, O, F, H, se, ne, le, ce, he, de, pe, te, G, Y, me, q, E, $, ue, Q, ye, ae, ie, re, be, ve, we, Le, xe;
5423
+ return Pe((_(), C("div", za, [
5424
+ n("div", Ta, [
5425
+ n("div", Ea, [
5426
+ n("div", {
5377
5427
  class: "iconfont close",
5378
- onClick: e[0] || (e[0] = (We) => i.showMeteo = !1)
5428
+ onClick: e[0] || (e[0] = (Te) => i.showMeteo = !1)
5379
5429
  }, ""),
5380
- l("div", Sr, S(o.computeLat((s = t.meteo) == null ? void 0 : s.lat)) + "," + S(o.computeLng((n = t.meteo) == null ? void 0 : n.lng)), 1),
5381
- l("div", zr, S(o.computeTime((c = t.meteo) == null ? void 0 : c.utc)), 1)
5430
+ n("div", Ia, S(o.computeLat((s = t.meteo) == null ? void 0 : s.lat)) + "," + S(o.computeLng((l = t.meteo) == null ? void 0 : l.lng)), 1),
5431
+ n("div", Ra, S(o.computeTime((h = t.meteo) == null ? void 0 : h.utc)), 1)
5382
5432
  ]),
5383
- l("div", Pr, [
5384
- l("div", Tr, [
5385
- Ir,
5386
- l("span", null, S(((p = (d = t.meteo) == null ? void 0 : d.wind) == null ? void 0 : p.direction) || "-") + "/" + S(o.roundPrecision((g = (h = t.meteo) == null ? void 0 : h.wind) == null ? void 0 : g.kts, 1)) + "[kts]/" + S((y = (u = t.meteo) == null ? void 0 : u.wind) == null ? void 0 : y.scale) + "[BF]/" + S(o.roundPrecision((m = (f = t.meteo) == null ? void 0 : f.gusts) == null ? void 0 : m.kts, 1)) + "[kts]", 1)
5433
+ n("div", Aa, [
5434
+ n("div", Da, [
5435
+ e[1] || (e[1] = n("label", null, "Wind", -1)),
5436
+ n("span", null, S(((c = (d = t.meteo) == null ? void 0 : d.wind) == null ? void 0 : c.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)
5387
5437
  ]),
5388
- l("div", Er, [
5389
- Rr,
5390
- l("span", null, S(((_ = (b = (v = t.meteo) == null ? void 0 : v.wave) == null ? void 0 : b.wd) == null ? void 0 : _.direction) || "-") + "/" + S(o.roundPrecision((A = (w = (P = t.meteo) == null ? void 0 : P.wave) == null ? void 0 : w.wd) == null ? void 0 : A.height, 1)) + "[m]/" + S(o.roundPrecision((W = ($ = (M = t.meteo) == null ? void 0 : M.wave) == null ? void 0 : $.wd) == null ? void 0 : W.period, 1)) + "[s]", 1)
5438
+ n("div", Ma, [
5439
+ e[2] || (e[2] = n("label", null, "Wind.Wave", -1)),
5440
+ n("span", null, S(((L = (g = (v = t.meteo) == null ? void 0 : v.wave) == null ? void 0 : g.wd) == null ? void 0 : L.direction) || "-") + "/" + S(o.roundPrecision((A = (w = (z = t.meteo) == null ? void 0 : z.wave) == null ? void 0 : w.wd) == null ? void 0 : A.height, 1)) + "[m]/" + S(o.roundPrecision((O = (W = (M = t.meteo) == null ? void 0 : M.wave) == null ? void 0 : W.wd) == null ? void 0 : O.period, 1)) + "[s]", 1)
5391
5441
  ]),
5392
- l("div", Ar, [
5393
- Dr,
5394
- 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)
5442
+ n("div", ja, [
5443
+ e[3] || (e[3] = n("label", null, "Swell", -1)),
5444
+ n("span", null, S(((se = (H = (F = t.meteo) == null ? void 0 : F.wave) == null ? void 0 : H.swell) == null ? void 0 : se.direction) || "-") + "/" + S(o.roundPrecision((ce = (le = (ne = t.meteo) == null ? void 0 : ne.wave) == null ? void 0 : le.swell) == null ? void 0 : ce.height, 1)) + "[m]/" + S(o.roundPrecision((pe = (de = (he = t.meteo) == null ? void 0 : he.wave) == null ? void 0 : de.swell) == null ? void 0 : pe.period, 1)) + "[s]", 1)
5395
5445
  ]),
5396
- l("div", Mr, [
5397
- $r,
5398
- l("span", null, S(((q = (X = (ie = t.meteo) == null ? void 0 : ie.wave) == null ? void 0 : X.sig) == null ? void 0 : q.direction) || "-") + "/" + S(o.roundPrecision((I = (Q = (be = t.meteo) == null ? void 0 : be.wave) == null ? void 0 : Q.sig) == null ? void 0 : I.height, 1)) + "[m]/" + S(o.roundPrecision((K = (ve = (F = t.meteo) == null ? void 0 : F.wave) == null ? void 0 : ve.sig) == null ? void 0 : K.period, 1)) + "[s]", 1)
5446
+ n("div", Wa, [
5447
+ e[4] || (e[4] = n("label", null, "Sig.Wave", -1)),
5448
+ n("span", null, S(((Y = (G = (te = t.meteo) == null ? void 0 : te.wave) == null ? void 0 : G.sig) == null ? void 0 : Y.direction) || "-") + "/" + S(o.roundPrecision((E = (q = (me = t.meteo) == null ? void 0 : me.wave) == null ? void 0 : q.sig) == null ? void 0 : E.height, 1)) + "[m]/" + S(o.roundPrecision((Q = (ue = ($ = t.meteo) == null ? void 0 : $.wave) == null ? void 0 : ue.sig) == null ? void 0 : Q.period, 1)) + "[s]", 1)
5399
5449
  ]),
5400
- l("div", jr, [
5401
- Nr,
5402
- l("span", null, S(((re = (we = t.meteo) == null ? void 0 : we.current) == null ? void 0 : re.direction) || "-") + "/" + S(o.roundPrecision((se = (oe = t.meteo) == null ? void 0 : oe.current) == null ? void 0 : se.kts, 2)) + "[kts]", 1)
5450
+ n("div", Ba, [
5451
+ e[5] || (e[5] = n("label", null, "Current", -1)),
5452
+ n("span", null, S(((ae = (ye = t.meteo) == null ? void 0 : ye.current) == null ? void 0 : ae.direction) || "-") + "/" + S(o.roundPrecision((re = (ie = t.meteo) == null ? void 0 : ie.current) == null ? void 0 : re.kts, 2)) + "[kts]", 1)
5403
5453
  ]),
5404
- l("div", Br, [
5405
- Wr,
5406
- l("span", null, S(o.roundPrecision((Te = (Pe = t.meteo) == null ? void 0 : Pe.precip) == null ? void 0 : Te.inter6h, 2)) + "[mm]", 1)
5454
+ n("div", Na, [
5455
+ e[6] || (e[6] = n("label", null, "Precip", -1)),
5456
+ n("span", null, S(o.roundPrecision((ve = (be = t.meteo) == null ? void 0 : be.precip) == null ? void 0 : ve.inter6h, 2)) + "[mm]", 1)
5407
5457
  ]),
5408
- l("div", Or, [
5409
- Fr,
5410
- l("span", null, S(o.roundPrecision(((Ie = t.meteo) == null ? void 0 : Ie.visibility) / 1852, 0)) + "[nm]", 1)
5458
+ n("div", Oa, [
5459
+ e[7] || (e[7] = n("label", null, "Visibility", -1)),
5460
+ n("span", null, S(o.roundPrecision(((we = t.meteo) == null ? void 0 : we.visibility) / 1852, 0)) + "[nm]", 1)
5411
5461
  ]),
5412
- l("div", Vr, [
5413
- Ur,
5414
- l("span", null, S(o.roundPrecision((Ee = t.meteo) == null ? void 0 : Ee.temp, 0)) + "[°C]", 1)
5462
+ n("div", Fa, [
5463
+ e[8] || (e[8] = n("label", null, "Temp", -1)),
5464
+ n("span", null, S(o.roundPrecision((Le = t.meteo) == null ? void 0 : Le.temp, 0)) + "[°C]", 1)
5415
5465
  ]),
5416
- l("div", Zr, [
5417
- Hr,
5418
- l("span", null, S(o.roundPrecision((Re = t.meteo) == null ? void 0 : Re.waterTemp, 2)) + "[°C]", 1)
5466
+ n("div", $a, [
5467
+ e[9] || (e[9] = n("label", null, "Water Temp", -1)),
5468
+ n("span", null, S(o.roundPrecision((xe = t.meteo) == null ? void 0 : xe.waterTemp, 2)) + "[°C]", 1)
5419
5469
  ])
5420
5470
  ]),
5421
- j("", !0)
5471
+ B("", !0)
5422
5472
  ])
5423
5473
  ], 512)), [
5424
- [Ne, i.showMeteo]
5474
+ [ze, i.showMeteo]
5425
5475
  ]);
5426
5476
  }
5427
- const Jr = /* @__PURE__ */ T(Lr, [["render", Gr], ["__scopeId", "data-v-efcf572f"]]), Xr = {
5477
+ const Ua = /* @__PURE__ */ T(Pa, [["render", Va], ["__scopeId", "data-v-efcf572f"]]), Za = {
5428
5478
  name: "IdmWarZone",
5429
5479
  props: {
5430
5480
  map: {
@@ -5514,10 +5564,10 @@ const Jr = /* @__PURE__ */ T(Lr, [["render", Gr], ["__scopeId", "data-v-efcf572f
5514
5564
  }
5515
5565
  }
5516
5566
  };
5517
- function Yr(a, e, t, r, i, o) {
5518
- return x(), C("div");
5567
+ function Ha(a, e, t, r, i, o) {
5568
+ return _(), C("div");
5519
5569
  }
5520
- const qr = /* @__PURE__ */ T(Xr, [["render", Yr]]), Qr = {
5570
+ const Ga = /* @__PURE__ */ T(Za, [["render", Ha]]), Ja = {
5521
5571
  name: "IdmGmdssArea",
5522
5572
  props: {
5523
5573
  map: {
@@ -5637,10 +5687,10 @@ const qr = /* @__PURE__ */ T(Xr, [["render", Yr]]), Qr = {
5637
5687
  }
5638
5688
  }
5639
5689
  };
5640
- function Kr(a, e, t, r, i, o) {
5641
- return x(), C("div");
5690
+ function Xa(a, e, t, r, i, o) {
5691
+ return _(), C("div");
5642
5692
  }
5643
- const eo = /* @__PURE__ */ T(Qr, [["render", Kr]]), to = {
5693
+ const Ya = /* @__PURE__ */ T(Ja, [["render", Xa]]), qa = {
5644
5694
  name: "IdmEcaZone",
5645
5695
  props: {
5646
5696
  map: {
@@ -5728,11 +5778,11 @@ const eo = /* @__PURE__ */ T(Qr, [["render", Kr]]), to = {
5728
5778
  }
5729
5779
  }
5730
5780
  };
5731
- function ao(a, e, t, r, i, o) {
5732
- return x(), C("div");
5781
+ function Qa(a, e, t, r, i, o) {
5782
+ return _(), C("div");
5733
5783
  }
5734
- const io = /* @__PURE__ */ T(to, [["render", ao]]);
5735
- const ro = {
5784
+ const Ka = /* @__PURE__ */ T(qa, [["render", Qa]]);
5785
+ const ei = {
5736
5786
  name: "IdmAlertZone",
5737
5787
  props: {
5738
5788
  map: {
@@ -5775,7 +5825,7 @@ const ro = {
5775
5825
  if (t) {
5776
5826
  this.showZone = !0, this.form = { ...t.properties };
5777
5827
  const i = document.getElementById("idm-gl3-zone-info");
5778
- this.marker ? this.marker.setLngLat([a.lngLat.lng, a.lngLat.lat]) : this.marker = new te.Marker(i).setLngLat([a.lngLat.lng, a.lngLat.lat]).setOffset([0, 0]).addTo(this.map);
5828
+ this.marker ? this.marker.setLngLat([a.lngLat.lng, a.lngLat.lat]) : this.marker = new ee.Marker(i).setLngLat([a.lngLat.lng, a.lngLat.lat]).setOffset([0, 0]).addTo(this.map);
5779
5829
  }
5780
5830
  },
5781
5831
  handleRender() {
@@ -5862,24 +5912,24 @@ const ro = {
5862
5912
  this.map.getLayer(this.polygonLayer) && this.map.removeLayer(this.polygonLayer), this.map.getLayer(this.polygonLayer + "-border") && this.map.removeLayer(this.polygonLayer + "-border"), this.map.getLayer(this.polygonLabelLayer) && this.map.removeLayer(this.polygonLabelLayer), this.map.getLayer(this.lineLayer) && this.map.removeLayer(this.lineLayer), this.map.getLayer(this.lineLabelLayer) && this.map.removeLayer(this.lineLabelLayer), this.map.getLayer(this.pointLayer) && this.map.removeLayer(this.pointLayer), this.map.getSource(this.source) && this.map.removeSource(this.source);
5863
5913
  }
5864
5914
  }
5865
- }, oo = { id: "idm-gl3-zone-info" }, so = ["innerHTML"];
5866
- function no(a, e, t, r, i, o) {
5915
+ }, ti = { id: "idm-gl3-zone-info" }, ai = ["innerHTML"];
5916
+ function ii(a, e, t, r, i, o) {
5867
5917
  var s;
5868
- return je((x(), C("div", oo, [
5869
- l("div", {
5918
+ return Pe((_(), C("div", ti, [
5919
+ n("div", {
5870
5920
  class: "iconfont close",
5871
- onClick: e[0] || (e[0] = (n) => i.showZone = !1)
5921
+ onClick: e[0] || (e[0] = (l) => i.showZone = !1)
5872
5922
  }, ""),
5873
- l("div", {
5923
+ n("div", {
5874
5924
  class: "rich-context",
5875
5925
  innerHTML: (s = i.form) == null ? void 0 : s.name
5876
- }, null, 8, so)
5926
+ }, null, 8, ai)
5877
5927
  ], 512)), [
5878
- [Ne, i.showZone]
5928
+ [ze, i.showZone]
5879
5929
  ]);
5880
5930
  }
5881
- const lo = /* @__PURE__ */ T(ro, [["render", no]]);
5882
- const co = {
5931
+ const ri = /* @__PURE__ */ T(ei, [["render", ii]]);
5932
+ const oi = {
5883
5933
  name: "IdmPort",
5884
5934
  props: {
5885
5935
  map: {
@@ -5932,7 +5982,7 @@ const co = {
5932
5982
  if (t) {
5933
5983
  this.showPort = !0, this.form = { ...t.properties }, this.form.lng = t.geometry.coordinates[0], this.form.lat = t.geometry.coordinates[1];
5934
5984
  const i = document.getElementById("port-info");
5935
- this.marker ? this.marker.setLngLat([a.lngLat.lng, a.lngLat.lat]) : this.marker = new te.Marker(i).setLngLat([a.lngLat.lng, a.lngLat.lat]).setOffset([0, -85]).addTo(this.map);
5985
+ this.marker ? this.marker.setLngLat([a.lngLat.lng, a.lngLat.lat]) : this.marker = new ee.Marker(i).setLngLat([a.lngLat.lng, a.lngLat.lat]).setOffset([0, -85]).addTo(this.map);
5936
5986
  }
5937
5987
  },
5938
5988
  handleEmit() {
@@ -5971,41 +6021,41 @@ const co = {
5971
6021
  this.showPort = !1, this.map.getLayer(this.layer) && this.map.removeLayer(this.layer), this.map.getSource(this.source) && this.map.removeSource(this.source);
5972
6022
  }
5973
6023
  }
5974
- }, Be = (a) => (H("data-v-c07e4c45"), a = a(), G(), a), ho = { id: "port-info" }, po = { class: "port-box" }, mo = { class: "flex-start" }, uo = /* @__PURE__ */ Be(() => /* @__PURE__ */ l("label", null, "Name : ", -1)), yo = { class: "flex-start" }, fo = /* @__PURE__ */ Be(() => /* @__PURE__ */ l("label", null, "Position : ", -1)), go = { class: "flex-start" }, bo = /* @__PURE__ */ Be(() => /* @__PURE__ */ l("label", null, "LoCode : ", -1)), vo = {
6024
+ }, si = { id: "port-info" }, ni = { class: "port-box" }, li = { class: "flex-start" }, ci = { class: "flex-start" }, hi = { class: "flex-start" }, di = {
5975
6025
  class: "flex-start",
5976
6026
  style: { "align-items": "flex-start" }
5977
- }, wo = /* @__PURE__ */ Be(() => /* @__PURE__ */ l("label", null, "Region : ", -1));
5978
- function _o(a, e, t, r, i, o) {
5979
- return je((x(), C("div", ho, [
5980
- l("div", {
6027
+ };
6028
+ function pi(a, e, t, r, i, o) {
6029
+ return Pe((_(), C("div", si, [
6030
+ n("div", {
5981
6031
  class: "close iconfont",
5982
6032
  onClick: e[0] || (e[0] = (s) => i.showPort = !1)
5983
6033
  }, ""),
5984
- l("div", po, [
5985
- l("div", mo, [
5986
- uo,
5987
- l("span", {
6034
+ n("div", ni, [
6035
+ n("div", li, [
6036
+ e[2] || (e[2] = n("label", null, "Name : ", -1)),
6037
+ n("span", {
5988
6038
  onClick: e[1] || (e[1] = (...s) => o.handleEmit && o.handleEmit(...s))
5989
6039
  }, S(i.form.name), 1)
5990
6040
  ]),
5991
- l("div", yo, [
5992
- fo,
5993
- l("span", null, S(o.computeLat(i.form.lat)) + ", " + S(o.computeLng(i.form.lng)), 1)
6041
+ n("div", ci, [
6042
+ e[3] || (e[3] = n("label", null, "Position : ", -1)),
6043
+ n("span", null, S(o.computeLat(i.form.lat)) + ", " + S(o.computeLng(i.form.lng)), 1)
5994
6044
  ]),
5995
- l("div", go, [
5996
- bo,
5997
- l("span", null, S(i.form.loCode || "-"), 1)
6045
+ n("div", hi, [
6046
+ e[4] || (e[4] = n("label", null, "LoCode : ", -1)),
6047
+ n("span", null, S(i.form.loCode || "-"), 1)
5998
6048
  ]),
5999
- l("div", vo, [
6000
- wo,
6001
- l("span", null, S(i.form.zoneName || "-"), 1)
6049
+ n("div", di, [
6050
+ e[5] || (e[5] = n("label", null, "Region : ", -1)),
6051
+ n("span", null, S(i.form.zoneName || "-"), 1)
6002
6052
  ])
6003
6053
  ])
6004
6054
  ], 512)), [
6005
- [Ne, i.showPort]
6055
+ [ze, i.showPort]
6006
6056
  ]);
6007
6057
  }
6008
- const Lo = /* @__PURE__ */ T(co, [["render", _o], ["__scopeId", "data-v-c07e4c45"]]), xo = {
6058
+ const mi = /* @__PURE__ */ T(oi, [["render", pi], ["__scopeId", "data-v-c07e4c45"]]), ui = {
6009
6059
  name: "IdmLoadLine",
6010
6060
  props: {
6011
6061
  map: {
@@ -6075,10 +6125,10 @@ const Lo = /* @__PURE__ */ T(co, [["render", _o], ["__scopeId", "data-v-c07e4c45
6075
6125
  }
6076
6126
  }
6077
6127
  };
6078
- function Co(a, e, t, r, i, o) {
6079
- return x(), C("div");
6128
+ function yi(a, e, t, r, i, o) {
6129
+ return _(), C("div");
6080
6130
  }
6081
- const ko = /* @__PURE__ */ T(xo, [["render", Co]]), So = {
6131
+ const fi = /* @__PURE__ */ T(ui, [["render", yi]]), gi = {
6082
6132
  name: "IdmTimezone",
6083
6133
  props: {
6084
6134
  map: {
@@ -6243,10 +6293,10 @@ const ko = /* @__PURE__ */ T(xo, [["render", Co]]), So = {
6243
6293
  }
6244
6294
  }
6245
6295
  };
6246
- function zo(a, e, t, r, i, o) {
6247
- return x(), C("div");
6296
+ function bi(a, e, t, r, i, o) {
6297
+ return _(), C("div");
6248
6298
  }
6249
- const Po = /* @__PURE__ */ T(So, [["render", zo]]), To = {
6299
+ const vi = /* @__PURE__ */ T(gi, [["render", bi]]), wi = {
6250
6300
  name: "IdmVoluntaryReportingArea",
6251
6301
  props: {
6252
6302
  map: {
@@ -6334,10 +6384,10 @@ const Po = /* @__PURE__ */ T(So, [["render", zo]]), To = {
6334
6384
  }
6335
6385
  }
6336
6386
  };
6337
- function Io(a, e, t, r, i, o) {
6338
- return x(), C("div");
6387
+ function Li(a, e, t, r, i, o) {
6388
+ return _(), C("div");
6339
6389
  }
6340
- const Eo = /* @__PURE__ */ T(To, [["render", Io]]), Ro = {
6390
+ const xi = /* @__PURE__ */ T(wi, [["render", Li]]), _i = {
6341
6391
  name: "IdmSpecialArea",
6342
6392
  props: {
6343
6393
  map: {
@@ -6427,10 +6477,10 @@ const Eo = /* @__PURE__ */ T(To, [["render", Io]]), Ro = {
6427
6477
  }
6428
6478
  }
6429
6479
  };
6430
- function Ao(a, e, t, r, i, o) {
6431
- return x(), C("div");
6480
+ function Ci(a, e, t, r, i, o) {
6481
+ return _(), C("div");
6432
6482
  }
6433
- const Do = /* @__PURE__ */ T(Ro, [["render", Ao]]), Mo = {
6483
+ const ki = /* @__PURE__ */ T(_i, [["render", Ci]]), Si = {
6434
6484
  name: "IdmTerminator",
6435
6485
  props: {
6436
6486
  map: {
@@ -6479,11 +6529,11 @@ const Do = /* @__PURE__ */ T(Ro, [["render", Ao]]), Mo = {
6479
6529
  }
6480
6530
  }
6481
6531
  };
6482
- function $o(a, e, t, r, i, o) {
6483
- return x(), C("div");
6532
+ function Pi(a, e, t, r, i, o) {
6533
+ return _(), C("div");
6484
6534
  }
6485
- const jo = /* @__PURE__ */ T(Mo, [["render", $o]]);
6486
- const No = {
6535
+ const zi = /* @__PURE__ */ T(Si, [["render", Pi]]);
6536
+ const Ti = {
6487
6537
  name: "IdmLatLng",
6488
6538
  props: {
6489
6539
  map: {
@@ -6590,7 +6640,7 @@ const No = {
6590
6640
  handleZoomEnd() {
6591
6641
  var e;
6592
6642
  const a = this.handleComputeLatLngs();
6593
- (e = this.map) == null || e.getSource(this.source).setData(L.featureCollection(a));
6643
+ (e = this.map) == null || e.getSource(this.source).setData(x.featureCollection(a));
6594
6644
  },
6595
6645
  handleRender() {
6596
6646
  if (this.map) {
@@ -6638,19 +6688,19 @@ const No = {
6638
6688
  (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));
6639
6689
  }
6640
6690
  }
6641
- }, Bo = (a) => (H("data-v-73241fe7"), a = a(), G(), a), Wo = /* @__PURE__ */ Bo(() => /* @__PURE__ */ l("span", null, ", ", -1));
6642
- function Oo(a, e, t, r, i, o) {
6643
- return i.lngLat ? (x(), C("div", {
6691
+ };
6692
+ function Ei(a, e, t, r, i, o) {
6693
+ return i.lngLat ? (_(), C("div", {
6644
6694
  key: 0,
6645
6695
  class: "lat-lng-tip",
6646
6696
  style: U({ right: i.right + "px", bottom: t.bottom })
6647
6697
  }, [
6648
- l("span", null, S(i.lngLat.lat.pretty), 1),
6649
- Wo,
6650
- l("span", null, S(i.lngLat.lng.pretty), 1)
6651
- ], 4)) : j("", !0);
6698
+ n("span", null, S(i.lngLat.lat.pretty), 1),
6699
+ e[0] || (e[0] = n("span", null, ", ", -1)),
6700
+ n("span", null, S(i.lngLat.lng.pretty), 1)
6701
+ ], 4)) : B("", !0);
6652
6702
  }
6653
- const et = /* @__PURE__ */ T(No, [["render", Oo], ["__scopeId", "data-v-73241fe7"]]), Fo = {
6703
+ const $e = /* @__PURE__ */ T(Ti, [["render", Ei], ["__scopeId", "data-v-73241fe7"]]), Ii = {
6654
6704
  name: "IdmMeasure",
6655
6705
  props: {
6656
6706
  map: {
@@ -6691,13 +6741,13 @@ const et = /* @__PURE__ */ T(No, [["render", Oo], ["__scopeId", "data-v-73241fe7
6691
6741
  },
6692
6742
  methods: {
6693
6743
  handleBind() {
6694
- var a, e, t, r, i, o, s, n, c, d;
6744
+ var a, e, t, r, i, o, s, l, h, d;
6695
6745
  if (this.show)
6696
6746
  (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");
6697
6747
  else {
6698
- (o = this.map) == null || o.getCanvas().removeEventListener("keydown", this.handleKeydown), (s = this.map) == null || s.off("mousemove", this.handleMove), (n = this.map) == null || n.off("dblclick", this.handleDblClick), (c = this.map) == null || c.off("click", this.handleClick), (d = this.map) == null || d.off("contextmenu", this.handleContextmenu);
6699
- for (const p of this.geojson)
6700
- this.handleClear(p, !0);
6748
+ (o = this.map) == null || o.getCanvas().removeEventListener("keydown", this.handleKeydown), (s = this.map) == null || s.off("mousemove", this.handleMove), (l = this.map) == null || l.off("dblclick", this.handleDblClick), (h = this.map) == null || h.off("click", this.handleClick), (d = this.map) == null || d.off("contextmenu", this.handleContextmenu);
6749
+ for (const c of this.geojson)
6750
+ this.handleClear(c, !0);
6701
6751
  this.geojson = [], this.map && (this.map.getCanvas().style.cursor = "grab");
6702
6752
  }
6703
6753
  },
@@ -6709,41 +6759,41 @@ const et = /* @__PURE__ */ T(No, [["render", Oo], ["__scopeId", "data-v-73241fe7
6709
6759
  }
6710
6760
  },
6711
6761
  handleDrag(a) {
6712
- var t, r, i, o, s, n, c, d, p, h;
6762
+ var t, r, i, o, s, l, h, d, c, p;
6713
6763
  const e = (r = (t = a.target) == null ? void 0 : t._element) == null ? void 0 : r.id;
6714
6764
  if ((e == null ? void 0 : e.split("-").length) === 2) {
6715
- const g = this.geojson.filter((m) => m.id === e.split("-")[0])[0];
6716
- this.pointMarkers[g.id].filter((m) => {
6765
+ const f = this.geojson.filter((u) => u.id === e.split("-")[0])[0];
6766
+ this.pointMarkers[f.id].filter((u) => {
6717
6767
  var v;
6718
- return ((v = m._element) == null ? void 0 : v.id) === e;
6719
- })[0].setLngLat([(o = (i = a.target) == null ? void 0 : i._lngLat) == null ? void 0 : o.lng, (n = (s = a.target) == null ? void 0 : s._lngLat) == null ? void 0 : n.lat]);
6720
- let y;
6721
- g.features.forEach((m, v) => {
6722
- if (m.geometry.type === "Point" && m.properties.id == e.split("-")[1]) {
6723
- y = v;
6768
+ return ((v = u._element) == null ? void 0 : v.id) === e;
6769
+ })[0].setLngLat([(o = (i = a.target) == null ? void 0 : i._lngLat) == null ? void 0 : o.lng, (l = (s = a.target) == null ? void 0 : s._lngLat) == null ? void 0 : l.lat]);
6770
+ let b;
6771
+ f.features.forEach((u, v) => {
6772
+ if (u.geometry.type === "Point" && u.properties.id == e.split("-")[1]) {
6773
+ b = v;
6724
6774
  return;
6725
6775
  }
6726
6776
  });
6727
- const f = g.features.filter((m) => m.geometry.type === "Point");
6777
+ const y = f.features.filter((u) => u.geometry.type === "Point");
6728
6778
  this.handleTmpPointUpdate(
6729
- g,
6730
- f[y - 1],
6731
- { lng: (d = (c = a.target) == null ? void 0 : c._lngLat) == null ? void 0 : d.lng, lat: (h = (p = a.target) == null ? void 0 : p._lngLat) == null ? void 0 : h.lat, properties: f[y].properties },
6732
- y === f.length - 1 ? void 0 : f[y + 1]
6779
+ f,
6780
+ y[b - 1],
6781
+ { lng: (d = (h = a.target) == null ? void 0 : h._lngLat) == null ? void 0 : d.lng, lat: (p = (c = a.target) == null ? void 0 : c._lngLat) == null ? void 0 : p.lat, properties: y[b].properties },
6782
+ b === y.length - 1 ? void 0 : y[b + 1]
6733
6783
  );
6734
6784
  }
6735
6785
  },
6736
6786
  handleDragEnd(a) {
6737
- var t, r, i, o, s, n, c, d, p, h;
6787
+ var t, r, i, o, s, l, h, d, c, p;
6738
6788
  const e = (r = (t = a.target) == null ? void 0 : t._element) == null ? void 0 : r.id;
6739
6789
  if ((e == null ? void 0 : e.split("-").length) === 2) {
6740
- const g = this.geojson.filter((f) => f.id === e.split("-")[0])[0];
6741
- this.pointMarkers[g.id].filter((f) => {
6742
- var m;
6743
- return ((m = f._element) == null ? void 0 : m.id) === e;
6744
- })[0].setLngLat([(o = (i = a.target) == null ? void 0 : i._lngLat) == null ? void 0 : o.lng, (n = (s = a.target) == null ? void 0 : s._lngLat) == null ? void 0 : n.lat]);
6745
- const y = g.features.filter((f) => f.geometry.type === "Point" && f.properties.id == e.split("-")[1])[0];
6746
- y.geometry.coordinates = [(d = (c = a.target) == null ? void 0 : c._lngLat) == null ? void 0 : d.lng, (h = (p = a.target) == null ? void 0 : p._lngLat) == null ? void 0 : h.lat], g.features = g.features.filter((f) => f.geometry.type === "Point"), this.handlePointUpdate(g);
6790
+ const f = this.geojson.filter((y) => y.id === e.split("-")[0])[0];
6791
+ this.pointMarkers[f.id].filter((y) => {
6792
+ var u;
6793
+ return ((u = y._element) == null ? void 0 : u.id) === e;
6794
+ })[0].setLngLat([(o = (i = a.target) == null ? void 0 : i._lngLat) == null ? void 0 : o.lng, (l = (s = a.target) == null ? void 0 : s._lngLat) == null ? void 0 : l.lat]);
6795
+ const b = f.features.filter((y) => y.geometry.type === "Point" && y.properties.id == e.split("-")[1])[0];
6796
+ b.geometry.coordinates = [(d = (h = a.target) == null ? void 0 : h._lngLat) == null ? void 0 : d.lng, (p = (c = a.target) == null ? void 0 : c._lngLat) == null ? void 0 : p.lat], f.features = f.features.filter((y) => y.geometry.type === "Point"), this.handlePointUpdate(f);
6747
6797
  }
6748
6798
  },
6749
6799
  handleContextmenu(a) {
@@ -6751,10 +6801,10 @@ const et = /* @__PURE__ */ T(No, [["render", Oo], ["__scopeId", "data-v-73241fe7
6751
6801
  a.preventDefault(), (t = this.contextmenu) == null || t.remove();
6752
6802
  const e = (o = (i = (r = a.originalEvent) == null ? void 0 : r.target) == null ? void 0 : i.parentElement) == null ? void 0 : o.id;
6753
6803
  if ((e == null ? void 0 : e.split("-").length) === 2) {
6754
- const n = this.geojson.filter((c) => c.id === e.split("-")[0])[0].features.filter((c) => c.geometry.type === "Point");
6755
- if (n.length > 2 && n.filter((d) => d.properties.id === (e == null ? void 0 : e.split("-")[1]))[0]) {
6804
+ const l = this.geojson.filter((h) => h.id === e.split("-")[0])[0].features.filter((h) => h.geometry.type === "Point");
6805
+ if (l.length > 2 && l.filter((d) => d.properties.id === (e == null ? void 0 : e.split("-")[1]))[0]) {
6756
6806
  const d = document.createElement("div");
6757
- d.className = "point-contextmenu-marker", d.innerHTML = `<span id="del-${e}" class="del-point">Del</span>`, this.contextmenu = new te.Marker(d).setOffset([24, 0]).setLngLat([a.lngLat.lng, a.lngLat.lat]).addTo(this.map);
6807
+ d.className = "point-contextmenu-marker", d.innerHTML = `<span id="del-${e}" class="del-point">Del</span>`, this.contextmenu = new ee.Marker(d).setOffset([24, 0]).setLngLat([a.lngLat.lng, a.lngLat.lat]).addTo(this.map);
6758
6808
  }
6759
6809
  }
6760
6810
  },
@@ -6763,15 +6813,15 @@ const et = /* @__PURE__ */ T(No, [["render", Oo], ["__scopeId", "data-v-73241fe7
6763
6813
  (t = this.contextmenu) == null || t.remove();
6764
6814
  const e = a.originalEvent.target.className;
6765
6815
  if (e === "marker-close") {
6766
- const n = (i = (r = a.originalEvent) == null ? void 0 : r.srcElement) == null ? void 0 : i.id, c = this.geojson.filter((d) => d.id === n)[0];
6767
- c && this.handleClear(c, !0), this.geojson = this.geojson.filter((d) => d.id !== n);
6816
+ const l = (i = (r = a.originalEvent) == null ? void 0 : r.srcElement) == null ? void 0 : i.id, h = this.geojson.filter((d) => d.id === l)[0];
6817
+ h && this.handleClear(h, !0), this.geojson = this.geojson.filter((d) => d.id !== l);
6768
6818
  } else if (e === "del-point") {
6769
- const n = (s = (o = a.originalEvent.target.id) == null ? void 0 : o.replace("del-", "")) == null ? void 0 : s.split("-"), c = this.geojson.filter((d) => d.id === n[0])[0];
6770
- c.features = c.features.filter((d) => d.geometry.type === "Point" && d.properties.id !== n[1]), this.handlePointUpdate(c);
6819
+ const l = (s = (o = a.originalEvent.target.id) == null ? void 0 : o.replace("del-", "")) == null ? void 0 : s.split("-"), h = this.geojson.filter((d) => d.id === l[0])[0];
6820
+ h.features = h.features.filter((d) => d.geometry.type === "Point" && d.properties.id !== l[1]), this.handlePointUpdate(h);
6771
6821
  } else if (e !== "marker-label") {
6772
- let n = this.geojson.at(-1);
6773
- n || (n = L.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(n)), n.features = n.features.filter((d) => d.geometry.type === "Point");
6774
- const c = L.feature(
6822
+ let l = this.geojson.at(-1);
6823
+ l || (l = x.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(l)), l.features = l.features.filter((d) => d.geometry.type === "Point");
6824
+ const h = x.feature(
6775
6825
  {
6776
6826
  type: "Point",
6777
6827
  coordinates: [a.lngLat.lng, a.lngLat.lat]
@@ -6781,7 +6831,7 @@ const et = /* @__PURE__ */ T(No, [["render", Oo], ["__scopeId", "data-v-73241fe7
6781
6831
  mode: this.navigation
6782
6832
  }
6783
6833
  );
6784
- n.features.push(c), this.handlePointUpdate(n);
6834
+ l.features.push(h), this.handlePointUpdate(l);
6785
6835
  }
6786
6836
  },
6787
6837
  handlePointUpdate(a) {
@@ -6790,35 +6840,35 @@ const et = /* @__PURE__ */ T(No, [["render", Oo], ["__scopeId", "data-v-73241fe7
6790
6840
  let t = 0;
6791
6841
  const r = [];
6792
6842
  for (let i = 1; i < e.length; i++) {
6793
- const o = e[i - 1], s = e[i], n = o.properties, c = { lng: o.geometry.coordinates[0], lat: o.geometry.coordinates[1] }, d = { lng: s.geometry.coordinates[0], lat: s.geometry.coordinates[1] }, p = ee.calculateDistance(c, d, n.mode === "RL", 2), h = ee.calculateBearing(c, d, n.mode === "RL", 2);
6794
- t = D.roundPrecision(t + p, 2);
6795
- let g;
6796
- n.mode === "RL" ? g = D.convertToMonotonicLng([c, d]) : g = D.convertToMonotonicLng(ee.interpolateCoordinates(c, d, 200));
6797
- const u = L.lineString(g.map((y) => [y.lng, y.lat]));
6798
- u.properties.dist = p, u.properties.bearing = h, u.properties.total = t, r.push(u);
6843
+ const o = e[i - 1], s = e[i], l = o.properties, h = { lng: o.geometry.coordinates[0], lat: o.geometry.coordinates[1] }, d = { lng: s.geometry.coordinates[0], lat: s.geometry.coordinates[1] }, c = K.calculateDistance(h, d, l.mode === "RL", 2), p = K.calculateBearing(h, d, l.mode === "RL", 2);
6844
+ t = D.roundPrecision(t + c, 2);
6845
+ let f;
6846
+ l.mode === "RL" ? f = D.convertToMonotonicLng([h, d]) : f = D.convertToMonotonicLng(K.interpolateCoordinates(h, d, 200));
6847
+ const m = x.lineString(f.map((b) => [b.lng, b.lat]));
6848
+ m.properties.dist = c, m.properties.bearing = p, m.properties.total = t, r.push(m);
6799
6849
  }
6800
6850
  e.push(...r), a.total = t;
6801
6851
  }
6802
6852
  return this.handleRender(a), a;
6803
6853
  },
6804
6854
  handleTmpPointUpdate(a, e, t, r) {
6805
- const i = L.featureCollection([]);
6855
+ const i = x.featureCollection([]);
6806
6856
  let o, s;
6807
6857
  if (e) {
6808
- const c = e.properties, d = { lng: e.geometry.coordinates[0], lat: e.geometry.coordinates[1] }, p = { lng: t.lng, lat: t.lat };
6809
- o = ee.calculateDistance(d, p, c.mode === "RL", 2), s = ee.calculateBearing(d, p, c.mode === "RL", 2);
6810
- let h;
6811
- c.mode === "RL" ? h = D.convertToMonotonicLng([d, p]) : h = D.convertToMonotonicLng(ee.interpolateCoordinates(d, p, 200));
6812
- const g = L.lineString(h.map((u) => [u.lng, u.lat]));
6813
- g.properties.dist = o, g.properties.bearing = s, i.features.push(g);
6858
+ const h = e.properties, d = { lng: e.geometry.coordinates[0], lat: e.geometry.coordinates[1] }, c = { lng: t.lng, lat: t.lat };
6859
+ o = K.calculateDistance(d, c, h.mode === "RL", 2), s = K.calculateBearing(d, c, h.mode === "RL", 2);
6860
+ let p;
6861
+ h.mode === "RL" ? p = D.convertToMonotonicLng([d, c]) : p = D.convertToMonotonicLng(K.interpolateCoordinates(d, c, 200));
6862
+ const f = x.lineString(p.map((m) => [m.lng, m.lat]));
6863
+ f.properties.dist = o, f.properties.bearing = s, i.features.push(f);
6814
6864
  }
6815
6865
  if (r) {
6816
- const c = t.properties, d = t, p = { lng: r.geometry.coordinates[0], lat: r.geometry.coordinates[1] };
6817
- o = ee.calculateDistance(d, p, c.mode === "RL", 2), s = ee.calculateBearing(d, p, c.mode === "RL", 2);
6818
- let h;
6819
- c.mode === "RL" ? h = D.convertToMonotonicLng([d, p]) : h = D.convertToMonotonicLng(ee.interpolateCoordinates(d, p, 200));
6820
- const g = L.lineString(h.map((u) => [u.lng, u.lat]));
6821
- g.properties.dist = o, g.properties.bearing = s, i.features.push(g);
6866
+ const h = t.properties, d = t, c = { lng: r.geometry.coordinates[0], lat: r.geometry.coordinates[1] };
6867
+ o = K.calculateDistance(d, c, h.mode === "RL", 2), s = K.calculateBearing(d, c, h.mode === "RL", 2);
6868
+ let p;
6869
+ h.mode === "RL" ? p = D.convertToMonotonicLng([d, c]) : p = D.convertToMonotonicLng(K.interpolateCoordinates(d, c, 200));
6870
+ const f = x.lineString(p.map((m) => [m.lng, m.lat]));
6871
+ f.properties.dist = o, f.properties.bearing = s, i.features.push(f);
6822
6872
  }
6823
6873
  this.map.getSource(this.tmpSource) ? this.map.getSource(this.tmpSource).setData(i) : this.map.addSource(this.tmpSource, {
6824
6874
  type: "geojson",
@@ -6857,25 +6907,25 @@ const et = /* @__PURE__ */ T(No, [["render", Oo], ["__scopeId", "data-v-73241fe7
6857
6907
  "text-halo-blur": 0
6858
6908
  }
6859
6909
  });
6860
- let n;
6861
- if (r ? n = '<div class="marker-label">Drag and drop</div>' : n = `<div class="marker-label">Tol distance: <b>${D.roundPrecision((a.total ?? 0) + o, 2)}</b>nm, bearing: <b>${s}</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)
6862
- this.tipMarker._element.innerHTML = n, this.tipMarker.setLngLat([t.lng, t.lat]);
6910
+ let l;
6911
+ if (r ? l = '<div class="marker-label">Drag and drop</div>' : l = `<div class="marker-label">Tol distance: <b>${D.roundPrecision((a.total ?? 0) + o, 2)}</b>nm, bearing: <b>${s}</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)
6912
+ this.tipMarker._element.innerHTML = l, this.tipMarker.setLngLat([t.lng, t.lat]);
6863
6913
  else {
6864
- const c = document.createElement("div");
6865
- c.className = "tip-marker", c.innerHTML = n, this.tipMarker = new te.Marker(c).setOffset([140, 0]).setLngLat([t.lng, t.lat]).addTo(this.map);
6914
+ const h = document.createElement("div");
6915
+ h.className = "tip-marker", h.innerHTML = l, this.tipMarker = new ee.Marker(h).setOffset([140, 0]).setLngLat([t.lng, t.lat]).addTo(this.map);
6866
6916
  }
6867
6917
  },
6868
6918
  handleMove(a) {
6869
6919
  this.map.getCanvas().style.cursor = "crosshair";
6870
6920
  let e = this.geojson.at(-1);
6871
- e || (e = L.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(e));
6921
+ e || (e = x.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(e));
6872
6922
  const t = e.features.filter((r) => r.geometry.type === "Point");
6873
6923
  t != null && t.length && this.handleTmpPointUpdate(e, t.at(-1), { lng: a.lngLat.lng, lat: a.lngLat.lat });
6874
6924
  },
6875
6925
  handleDblClick(a) {
6876
6926
  a.preventDefault();
6877
6927
  let e = this.geojson.at(-1);
6878
- e.closed = !0, this.handleRender(e), e = L.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(e);
6928
+ e.closed = !0, this.handleRender(e), e = x.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(e);
6879
6929
  },
6880
6930
  handleRender(a) {
6881
6931
  var e;
@@ -6918,31 +6968,31 @@ const et = /* @__PURE__ */ T(No, [["render", Oo], ["__scopeId", "data-v-73241fe7
6918
6968
  });
6919
6969
  const o = a.features.filter((s) => s.geometry.type === "Point");
6920
6970
  for (const s of o) {
6921
- const n = document.createElement("div");
6922
- n.id = `${a.id}-${s.properties.id}`, n.className = `${a.closed ? "point-marker closed" : "point-marker"}`, n.innerHTML = '<div class="marker-circle"></div>';
6923
- const c = new te.Marker({ element: n, draggable: !0, contextmenu: !0 }).setLngLat(s.geometry.coordinates).addTo(this.map);
6924
- 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];
6971
+ const l = document.createElement("div");
6972
+ l.id = `${a.id}-${s.properties.id}`, l.className = `${a.closed ? "point-marker closed" : "point-marker"}`, l.innerHTML = '<div class="marker-circle"></div>';
6973
+ const h = new ee.Marker({ element: l, draggable: !0, contextmenu: !0 }).setLngLat(s.geometry.coordinates).addTo(this.map);
6974
+ h.on("drag", this.handleDrag), h.on("dragend", this.handleDragEnd), this.pointMarkers[a.id] ? this.pointMarkers[a.id].push(h) : this.pointMarkers[a.id] = [h];
6925
6975
  }
6926
6976
  if (a.closed) {
6927
- const s = o.at(-1), c = a.features.filter((p) => p.geometry.type === "LineString").at(-1), d = document.createElement("div");
6928
- d.className = "point-summary-marker", d.innerHTML = `<div id="${a.id}" class="marker-close">×</div><div class="marker-label">Tol: ${c.properties.total}nm</div>`, this.closeMarkers[a.id] = new te.Marker(d).setOffset([60, 0]).setLngLat(s.geometry.coordinates).addTo(this.map);
6977
+ const s = o.at(-1), h = a.features.filter((c) => c.geometry.type === "LineString").at(-1), d = document.createElement("div");
6978
+ d.className = "point-summary-marker", d.innerHTML = `<div id="${a.id}" class="marker-close">×</div><div class="marker-label">Tol: ${h.properties.total}nm</div>`, this.closeMarkers[a.id] = new ee.Marker(d).setOffset([60, 0]).setLngLat(s.geometry.coordinates).addTo(this.map);
6929
6979
  }
6930
6980
  }
6931
6981
  },
6932
6982
  handleClear(a, e = !0) {
6933
- var o, s, n, c, d, p, h, g, u;
6983
+ var o, s, l, h, d, c, p, f, m;
6934
6984
  const t = `${a.id}-${this.source}`, r = `${a.id}-${this.layer}`, i = `${a.id}-${this.labelLayer}`;
6935
- (o = this.map) != null && o.getLayer(r) && this.map.removeLayer(r), (s = this.map) != null && s.getLayer(i) && this.map.removeLayer(i), (n = this.map) != null && n.getLayer(this.tmpLayer) && this.map.removeLayer(this.tmpLayer), (c = this.map) != null && c.getLayer(this.tmpLabelLayer) && this.map.removeLayer(this.tmpLabelLayer), (d = this.closeMarkers[a.id]) == null || d.remove(), this.closeMarkers[a.id] = void 0, (p = this.pointMarkers[a.id]) == null || p.forEach((y) => {
6936
- y == null || y.remove();
6937
- }), this.pointMarkers[a.id] = [], (h = this.tipMarker) == null || h.remove(), this.tipMarker = void 0, e && ((g = this.map) != null && g.getSource(t)) && this.map.removeSource(t), e && ((u = this.map) != null && u.getSource(this.tmpSource)) && this.map.removeSource(this.tmpSource);
6985
+ (o = this.map) != null && o.getLayer(r) && this.map.removeLayer(r), (s = this.map) != null && s.getLayer(i) && this.map.removeLayer(i), (l = this.map) != null && l.getLayer(this.tmpLayer) && this.map.removeLayer(this.tmpLayer), (h = this.map) != null && h.getLayer(this.tmpLabelLayer) && this.map.removeLayer(this.tmpLabelLayer), (d = this.closeMarkers[a.id]) == null || d.remove(), this.closeMarkers[a.id] = void 0, (c = this.pointMarkers[a.id]) == null || c.forEach((b) => {
6986
+ b == null || b.remove();
6987
+ }), 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);
6938
6988
  }
6939
6989
  }
6940
6990
  };
6941
- function Vo(a, e, t, r, i, o) {
6942
- return x(), C("div");
6991
+ function Ri(a, e, t, r, i, o) {
6992
+ return _(), C("div");
6943
6993
  }
6944
- const Uo = /* @__PURE__ */ T(Fo, [["render", Vo]]);
6945
- const Zo = {
6994
+ const Ai = /* @__PURE__ */ T(Ii, [["render", Ri]]);
6995
+ const Di = {
6946
6996
  name: "IdmENC",
6947
6997
  props: {
6948
6998
  map: {
@@ -6973,8 +7023,8 @@ const Zo = {
6973
7023
  emits: ["enc"],
6974
7024
  data() {
6975
7025
  return {
6976
- helper: De,
6977
- vendor: this.$attrs.permission & De.LEVEL.Supper ? "hi" : "i4",
7026
+ helper: Ce,
7027
+ vendor: this.$attrs.permission & Ce.LEVEL.Supper ? "hi" : "i4",
6978
7028
  right: 10
6979
7029
  };
6980
7030
  },
@@ -6994,30 +7044,28 @@ const Zo = {
6994
7044
  }
6995
7045
  },
6996
7046
  methods: {}
6997
- }, tt = (a) => (H("data-v-8928221f"), a = a(), G(), a), Ho = { key: 0 }, Go = { class: "bar-item" }, Jo = /* @__PURE__ */ tt(() => /* @__PURE__ */ l("span", { class: "iconfont" }, "HI", -1)), Xo = [
6998
- Jo
6999
- ], Yo = /* @__PURE__ */ tt(() => /* @__PURE__ */ l("span", { class: "iconfont" }, "I4", -1)), qo = [
7000
- Yo
7001
- ];
7002
- function Qo(a, e, t, r, i, o) {
7003
- const s = z("ElTooltip");
7004
- return t.enabled && t.permission & i.helper.LEVEL.Supper ? (x(), C("div", Ho, [
7005
- l("div", {
7047
+ }, Mi = { key: 0 }, ji = { class: "bar-item" };
7048
+ function Wi(a, e, t, r, i, o) {
7049
+ const s = P("ElTooltip");
7050
+ return t.enabled && t.permission & i.helper.LEVEL.Supper ? (_(), C("div", Mi, [
7051
+ n("div", {
7006
7052
  class: "menu-bar-box",
7007
7053
  style: U({ position: "absolute", right: i.right + "px", bottom: t.bottom })
7008
7054
  }, [
7009
- l("div", Go, [
7055
+ n("div", ji, [
7010
7056
  k(s, {
7011
7057
  placement: "left",
7012
7058
  effect: "light",
7013
7059
  content: "Hifleet",
7014
- "show-after": 2e3
7060
+ "show-after": 1e3
7015
7061
  }, {
7016
- default: Y(() => [
7017
- l("div", {
7018
- class: N(i.vendor === "hi" ? "menu-icon active" : "menu-icon"),
7019
- onClick: e[0] || (e[0] = (n) => i.vendor = "hi")
7020
- }, Xo, 2)
7062
+ default: X(() => [
7063
+ n("div", {
7064
+ class: j(i.vendor === "hi" ? "menu-icon active" : "menu-icon"),
7065
+ onClick: e[0] || (e[0] = (l) => i.vendor = "hi")
7066
+ }, e[2] || (e[2] = [
7067
+ n("span", { class: "iconfont" }, "HI", -1)
7068
+ ]), 2)
7021
7069
  ]),
7022
7070
  _: 1
7023
7071
  }),
@@ -7025,54 +7073,56 @@ function Qo(a, e, t, r, i, o) {
7025
7073
  placement: "left",
7026
7074
  effect: "light",
7027
7075
  content: "I4insight",
7028
- "show-after": 2e3
7076
+ "show-after": 1e3
7029
7077
  }, {
7030
- default: Y(() => [
7031
- l("div", {
7032
- class: N(i.vendor === "i4" ? "menu-icon active" : "menu-icon"),
7033
- onClick: e[1] || (e[1] = (n) => i.vendor = "i4")
7034
- }, qo, 2)
7078
+ default: X(() => [
7079
+ n("div", {
7080
+ class: j(i.vendor === "i4" ? "menu-icon active" : "menu-icon"),
7081
+ onClick: e[1] || (e[1] = (l) => i.vendor = "i4")
7082
+ }, e[3] || (e[3] = [
7083
+ n("span", { class: "iconfont" }, "I4", -1)
7084
+ ]), 2)
7035
7085
  ]),
7036
7086
  _: 1
7037
7087
  })
7038
7088
  ])
7039
7089
  ], 4)
7040
- ])) : j("", !0);
7090
+ ])) : B("", !0);
7041
7091
  }
7042
- const Ko = /* @__PURE__ */ T(Zo, [["render", Qo], ["__scopeId", "data-v-8928221f"]]);
7043
- const es = {
7092
+ const Bi = /* @__PURE__ */ T(Di, [["render", Wi], ["__scopeId", "data-v-5873cc66"]]);
7093
+ const Ni = {
7044
7094
  name: "IdmGLV2",
7045
7095
  components: {
7046
- IdmGlLayer: Zt,
7047
- IdmWindBarb: ta,
7048
- IdmWindParticle: ya,
7049
- IdmCurrents: ka,
7050
- IdmCurrentParticle: ja,
7051
- IdmSigWave: Wa,
7052
- IdmSwell: Va,
7053
- IdmPrmsl: Ha,
7096
+ IdmGlLayer: ut,
7097
+ IdmWindBarb: bt,
7098
+ IdmWindParticle: _t,
7099
+ IdmCurrents: Pt,
7100
+ IdmCurrentParticle: It,
7101
+ IdmSigWave: Dt,
7102
+ IdmSwell: Wt,
7103
+ IdmPrmsl: Ot,
7054
7104
  // IdmIceEdge,
7055
- IdmIceberg: Xa,
7056
- IdmTropicals: Ke,
7057
- IdmPrecip3h: Ti,
7058
- IdmVisibility: Wi,
7059
- IdmWaterTemp: qi,
7060
- IdmTemp: hr,
7061
- IdmArctic: _r,
7062
- IdmWarZone: qr,
7063
- IdmGmdssArea: eo,
7064
- IdmEcaZone: io,
7065
- IdmAlertZone: lo,
7066
- IdmPort: Lo,
7067
- IdmLoadLine: ko,
7068
- IdmTimezone: Po,
7069
- IdmVRA: Eo,
7070
- IdmSpecialArea: Do,
7071
- IdmTerminator: jo,
7072
- IdmLatLng: et,
7073
- IdmMeasure: Uo,
7074
- IdmPoint: Jr,
7075
- IdmENC: Ko
7105
+ IdmIceberg: Vt,
7106
+ IdmTropicals: Fe,
7107
+ IdmPrecip3h: ha,
7108
+ IdmVisibility: ua,
7109
+ IdmWaterTemp: ba,
7110
+ IdmTemp: xa,
7111
+ IdmArctic: Sa,
7112
+ IdmWarZone: Ga,
7113
+ IdmGmdssArea: Ya,
7114
+ IdmEcaZone: Ka,
7115
+ IdmAlertZone: ri,
7116
+ IdmPort: mi,
7117
+ IdmLoadLine: fi,
7118
+ IdmTimezone: vi,
7119
+ IdmVRA: xi,
7120
+ IdmSpecialArea: ki,
7121
+ IdmTerminator: zi,
7122
+ IdmLatLng: $e,
7123
+ IdmMeasure: Ai,
7124
+ IdmPoint: Ua,
7125
+ IdmENC: Bi
7076
7126
  },
7077
7127
  props: {
7078
7128
  map: {
@@ -7093,7 +7143,7 @@ const es = {
7093
7143
  type: Number
7094
7144
  }
7095
7145
  },
7096
- emits: ["toggleVersion"],
7146
+ emits: ["toggleVersion", "activeWeatherLayers"],
7097
7147
  data() {
7098
7148
  return {
7099
7149
  weatherLayers: {},
@@ -7114,12 +7164,14 @@ const es = {
7114
7164
  particleFactor: void 0,
7115
7165
  showRampColor: !1,
7116
7166
  activeWindLayer: !1,
7167
+ showWindFeather: !1,
7117
7168
  showWindParticle: !1,
7169
+ showCurrentIsoband: !1,
7118
7170
  showCurrentParticle: !1,
7119
7171
  enc: "",
7120
7172
  // enc: 'i4',
7121
7173
  defaultMeteoToken: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImNseTVudHJzYzAwNWUwbHBsZHkyaDRqczMiLCJyb2xlIjoxLCJuYW1lIjoiZmFrZUBvcm13eC5jb20iLCJwbGF0SWQiOiJnZDBtdDFkIiwiY29tcGFueSI6eyJpZCI6bnVsbCwiY2hpbGRyZW4iOltdfSwiaWF0IjoxNzIzMDI0MDI0LCJleHAiOjM5MzA1NDQwMjR9.RrKcdcMnq-FxBLJQ-i6lx2FscDE46y8EvHIemPW4HTg",
7122
- helper: new aa()
7174
+ helper: new vt()
7123
7175
  };
7124
7176
  },
7125
7177
  watch: {
@@ -7133,22 +7185,22 @@ const es = {
7133
7185
  },
7134
7186
  map: {
7135
7187
  handler() {
7136
- this.map && (this.map.on("zoomend", this.handleDragEndWithZoom4Json), this.map.on("dragend", this.handleDragEndWithZoom4Json), this.map.on("move", this.handleDragEndWithZoom4Image), this.viewport = new Ve(this.map), this.handleRampColorInitial());
7188
+ this.map && (this.map.on("zoomend", this.handleDragEndWithZoom4Json), this.map.on("dragend", this.handleDragEndWithZoom4Json), this.map.on("move", this.handleDragEndWithZoom4Image), this.viewport = new Re(this.map), this.handleRampColorInitial());
7137
7189
  },
7138
7190
  immediate: !0
7139
7191
  },
7140
7192
  enc: {
7141
7193
  handler(a, e) {
7142
- var t, r, i, o, s, n, c, d;
7143
- 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")) : ((n = (s = this.map) == null ? void 0 : s.getLayer("i4")) == null || n.setLayoutProperty("visibility", "none"), (d = (c = this.map) == null ? void 0 : c.getLayer("hi")) == null || d.setLayoutProperty("visibility", "none"));
7194
+ var t, r, i, o, s, l, h, d;
7195
+ 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")) : ((l = (s = this.map) == null ? void 0 : s.getLayer("i4")) == null || l.setLayoutProperty("visibility", "none"), (d = (h = this.map) == null ? void 0 : h.getLayer("hi")) == null || d.setLayoutProperty("visibility", "none"));
7144
7196
  }
7145
7197
  },
7146
7198
  activeWeatherLayers: {
7147
7199
  handler() {
7148
- var a, e, t, r, i, o, s, n, c, d, p, h, g, u, y, f, m, v;
7200
+ var a, e, t, r, i, o, s, l, h, d, c, p, f, m, b, y, u, v;
7149
7201
  if (!this.map)
7150
7202
  return !1;
7151
- 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) && ((s = this.map) != null && s.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && this.mapProjection === "mercator" && ((c = this.map) == null || c.moveLayer((n = this.viewport) == null ? void 0 : n.rampColorLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)), (p = this.map) != null && p.getLayer((d = this.viewport) == null ? void 0 : d.particleLayer) && ((h = this.map) != null && h.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && this.mapProjection === "mercator" && ((u = this.map) == null || u.moveLayer((g = this.viewport) == null ? void 0 : g.particleLayer, this.helper.mapboxCustomer.layers.countryBoundary.id))) : ((f = (y = this.map) == null ? void 0 : y.getLayer(this.enc)) == null || f.setLayoutProperty("visibility", "visible"), (v = (m = this.map) == null ? void 0 : m.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) == null || v.setLayoutProperty("visibility", "none"));
7203
+ 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) && ((s = this.map) != null && s.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && this.mapProjection === "mercator" && ((h = this.map) == null || h.moveLayer((l = this.viewport) == null ? void 0 : l.rampColorLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)), (c = this.map) != null && c.getLayer((d = this.viewport) == null ? void 0 : d.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")), this.$emit("activeWeatherLayers", this.activeWeatherLayers);
7152
7204
  },
7153
7205
  immediate: !0
7154
7206
  }
@@ -7195,57 +7247,57 @@ const es = {
7195
7247
  },
7196
7248
  methods: {
7197
7249
  async fetchWeatherLayers(a = { tropicals: !1 }) {
7198
- var i, o, s, n, c, d, p, h;
7250
+ var i, o, s, l, h, d, c, p;
7199
7251
  const e = (/* @__PURE__ */ new Date()).valueOf();
7200
7252
  let t = 0, r = 0;
7201
7253
  if (this.map) {
7202
- const g = ((i = this.map) == null ? void 0 : i.getZoom()) + 1, u = (o = this.map) == null ? void 0 : o.getBounds(), y = `${u._sw.lng},${u._sw.lat},${u._ne.lng},${u._ne.lat}`;
7254
+ 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}`;
7203
7255
  if (this.handleRampColorState(), this.particleFactor) {
7204
- const f = Me.WEATHER_LAYERS.find((m) => {
7256
+ const y = ke.WEATHER_LAYERS.find((u) => {
7205
7257
  var v;
7206
- return ((v = m.peer) == null ? void 0 : v.weight) === this.particleFactor.weight;
7258
+ return ((v = u.peer) == null ? void 0 : v.weight) === this.particleFactor.weight;
7207
7259
  });
7208
- this.particleFactor.particle ? this.weatherWeight = this.weatherWeight & f.weight ? this.weatherWeight : this.weatherWeight + f.weight : this.weatherWeight = this.weatherWeight & f.weight ? this.weatherWeight - f.weight : this.weatherWeight;
7260
+ this.particleFactor.particle ? this.weatherWeight = this.weatherWeight & y.weight ? this.weatherWeight : this.weatherWeight + y.weight : this.weatherWeight = this.weatherWeight & y.weight ? this.weatherWeight - y.weight : this.weatherWeight;
7209
7261
  }
7210
7262
  if (this.weatherWeight > 0) {
7211
- let f = this.weatherWeight, m;
7212
- if (a.tropicals || this.weatherWeight & 256 && (m = this.weatherLayers.tropicals, m && (f -= 256, m.version = Math.random() + 1)), f > 0) {
7213
- const v = await ne.get(`${this.gateway}/api/arc/weather/layers/links?l=${f}&v=${this.source}&z=${g}&bbox=${y}&t=${this.ts}`, {
7263
+ let y = this.weatherWeight, u;
7264
+ if (a.tropicals || this.weatherWeight & 256 && (u = this.weatherLayers.tropicals, u && (y -= 256, u.version = Math.random() + 1)), y > 0) {
7265
+ const v = await oe.get(`${this.gateway}/api/arc/weather/layers/links?l=${y}&v=${this.source}&z=${f}&bbox=${b}&t=${this.ts}`, {
7214
7266
  headers: {
7215
7267
  Authorization: this.token || this.defaultMeteoToken
7216
7268
  }
7217
7269
  });
7218
7270
  if (r = (/* @__PURE__ */ new Date()).valueOf() - (e + t), console.log("weather links elapsed: ", r, ", total: ", t += r), ((s = v == null ? void 0 : v.data) == null ? void 0 : s.code) === 0) {
7219
- const b = (n = v == null ? void 0 : v.data) == null ? void 0 : n.data, _ = [];
7220
- for (const w in b)
7221
- w === "ice-edge" && (b[w] = "https://idm-hz.oss-cn-hangzhou.aliyuncs.com/test/sea_ice_contours.geojson"), w !== "tropicals" && _.push(
7222
- ne.get(b[w], {
7271
+ const g = (l = v == null ? void 0 : v.data) == null ? void 0 : l.data, L = [];
7272
+ for (const w in g)
7273
+ w === "ice-edge" && (g[w] = "https://idm-hz.oss-cn-hangzhou.aliyuncs.com/test/sea_ice_contours.geojson"), w !== "tropicals" && L.push(
7274
+ oe.get(g[w], {
7223
7275
  headers: {
7224
7276
  Authorization: this.token || this.defaultMeteoToken,
7225
7277
  key: w
7226
7278
  },
7227
- responseType: /\.(jpg|png)$/.test(b[w]) ? "blob" : "json"
7279
+ responseType: /\.(jpg|png)$/.test(g[w]) ? "blob" : "json"
7228
7280
  }).catch((A) => {
7229
7281
  console.log(`[${w}] fetch layer error: ${A}`);
7230
7282
  })
7231
7283
  );
7232
- const P = await Promise.all(_);
7233
- this.weatherLayers = {}, P.map((w) => {
7234
- var $, W, O, J;
7235
- const A = (($ = w == null ? void 0 : w.data) == null ? void 0 : $.data) || (w == null ? void 0 : w.data), M = (O = (W = w == null ? void 0 : w.config) == null ? void 0 : W.headers) == null ? void 0 : O.key;
7284
+ const z = await Promise.all(L);
7285
+ this.weatherLayers = {}, z.map((w) => {
7286
+ var W, O, F, H;
7287
+ const A = ((W = w == null ? void 0 : w.data) == null ? void 0 : W.data) || (w == null ? void 0 : w.data), M = (F = (O = w == null ? void 0 : w.config) == null ? void 0 : O.headers) == null ? void 0 : F.key;
7236
7288
  M && A && (this.weatherLayers[M] = {
7237
7289
  raw: A,
7238
- type: ((J = w == null ? void 0 : w.config) == null ? void 0 : J.responseType) === "blob" ? "image" : "json",
7290
+ type: ((H = w == null ? void 0 : w.config) == null ? void 0 : H.responseType) === "blob" ? "image" : "json",
7239
7291
  etime: this.ts
7240
7292
  });
7241
- }), b.tropicals && ne.get(b.tropicals, {
7293
+ }), g.tropicals && oe.get(g.tropicals, {
7242
7294
  headers: {
7243
7295
  Authorization: this.token || this.defaultMeteoToken,
7244
7296
  key: "tropicals"
7245
7297
  }
7246
7298
  }).then((w) => {
7247
- var $, W, O;
7248
- const A = Qe.convert2Geojson((($ = w == null ? void 0 : w.data) == null ? void 0 : $.data) || (w == null ? void 0 : w.data)), M = (O = (W = w == null ? void 0 : w.config) == null ? void 0 : W.headers) == null ? void 0 : O.key;
7299
+ var W, O, F;
7300
+ const A = Oe.convert2Geojson(((W = w == null ? void 0 : w.data) == null ? void 0 : W.data) || (w == null ? void 0 : w.data)), M = (F = (O = w == null ? void 0 : w.config) == null ? void 0 : O.headers) == null ? void 0 : F.key;
7249
7301
  this.weatherLayers[M] = {
7250
7302
  data: A,
7251
7303
  active: !0,
@@ -7257,25 +7309,25 @@ const es = {
7257
7309
  });
7258
7310
  }
7259
7311
  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"]) {
7260
- const b = (c = this.weatherLayers["swell-direction"]) == null ? void 0 : c.raw, _ = (d = this.weatherLayers["swell-height"]) == null ? void 0 : d.raw;
7312
+ const g = (h = this.weatherLayers["swell-direction"]) == null ? void 0 : h.raw, L = (d = this.weatherLayers["swell-height"]) == null ? void 0 : d.raw;
7261
7313
  delete this.weatherLayers["swell-direction"], delete this.weatherLayers["swell-height"], this.weatherLayers.swell = {
7262
7314
  type: "json",
7263
- direction: b,
7264
- height: { raw: _ },
7315
+ direction: g,
7316
+ height: { raw: L },
7265
7317
  etime: this.ts
7266
7318
  };
7267
7319
  }
7268
7320
  if (this.weatherLayers["current-direction"] || this.weatherLayers["current-speed"]) {
7269
- const b = (p = this.weatherLayers["current-direction"]) == null ? void 0 : p.raw, _ = (h = this.weatherLayers["current-speed"]) == null ? void 0 : h.raw;
7321
+ const g = (c = this.weatherLayers["current-direction"]) == null ? void 0 : c.raw, L = (p = this.weatherLayers["current-speed"]) == null ? void 0 : p.raw;
7270
7322
  delete this.weatherLayers["current-direction"], delete this.weatherLayers["current-speed"], this.weatherLayers.current = {
7271
7323
  type: "json",
7272
- direction: b,
7273
- speed: { raw: _ },
7324
+ direction: g,
7325
+ speed: { raw: L },
7274
7326
  etime: this.ts
7275
7327
  };
7276
7328
  }
7277
7329
  }
7278
- m && (m.etime = this.ts, m.cached = !0, this.weatherLayers.tropicals = m);
7330
+ u && (u.etime = this.ts, u.cached = !0, this.weatherLayers.tropicals = u);
7279
7331
  }
7280
7332
  this.handleWeatherLayerToggle(), this.handleDragEndWithZoom4Json();
7281
7333
  }
@@ -7289,50 +7341,50 @@ const es = {
7289
7341
  let s = !1;
7290
7342
  if (this.otherWeight & 2048 && (o = this.otherWeight - 2048, s = !0), o) {
7291
7343
  if (a.all) {
7292
- const n = await ne.get(`${this.gateway}/api/arc/other/layers/links?l=${o}&t=${this.ts}`, {
7344
+ const l = await oe.get(`${this.gateway}/api/arc/other/layers/links?l=${o}&t=${this.ts}`, {
7293
7345
  headers: {
7294
7346
  Authorization: this.token || this.defaultMeteoToken
7295
7347
  }
7296
7348
  });
7297
- if (((e = n == null ? void 0 : n.data) == null ? void 0 : e.code) === 0) {
7298
- const c = (t = n == null ? void 0 : n.data) == null ? void 0 : t.data, d = [];
7299
- for (const h in c)
7349
+ if (((e = l == null ? void 0 : l.data) == null ? void 0 : e.code) === 0) {
7350
+ const h = (t = l == null ? void 0 : l.data) == null ? void 0 : t.data, d = [];
7351
+ for (const p in h)
7300
7352
  d.push(
7301
- ne.get(c[h], {
7353
+ oe.get(h[p], {
7302
7354
  headers: {
7303
7355
  Authorization: this.token || this.defaultMeteoToken,
7304
- key: h
7356
+ key: p
7305
7357
  }
7306
7358
  })
7307
7359
  );
7308
- const p = await Promise.all(d);
7309
- this.otherLayers = { enc: s }, p.map((h) => {
7310
- var y, f, m;
7311
- const g = ((y = h == null ? void 0 : h.data) == null ? void 0 : y.data) || (h == null ? void 0 : h.data), u = (m = (f = h == null ? void 0 : h.config) == null ? void 0 : f.headers) == null ? void 0 : m.key;
7312
- this.otherLayers[u] = g;
7360
+ const c = await Promise.all(d);
7361
+ this.otherLayers = { enc: s }, c.map((p) => {
7362
+ var b, y, u;
7363
+ const f = ((b = p == null ? void 0 : p.data) == null ? void 0 : b.data) || (p == null ? void 0 : p.data), m = (u = (y = p == null ? void 0 : p.config) == null ? void 0 : y.headers) == null ? void 0 : u.key;
7364
+ this.otherLayers[m] = f;
7313
7365
  });
7314
7366
  }
7315
7367
  } else if (a.dayNight && o & 1024) {
7316
- const n = await ne.get(`${this.gateway}/api/arc/other/layers/links?l=1024&t=${this.ts}`, {
7368
+ const l = await oe.get(`${this.gateway}/api/arc/other/layers/links?l=1024&t=${this.ts}`, {
7317
7369
  headers: {
7318
7370
  Authorization: this.token || this.defaultMeteoToken
7319
7371
  }
7320
7372
  });
7321
- if (((r = n == null ? void 0 : n.data) == null ? void 0 : r.code) === 0) {
7322
- const c = (i = n == null ? void 0 : n.data) == null ? void 0 : i.data, d = [];
7323
- for (const h in c)
7373
+ if (((r = l == null ? void 0 : l.data) == null ? void 0 : r.code) === 0) {
7374
+ const h = (i = l == null ? void 0 : l.data) == null ? void 0 : i.data, d = [];
7375
+ for (const p in h)
7324
7376
  d.push(
7325
- ne.get(c[h], {
7377
+ oe.get(h[p], {
7326
7378
  headers: {
7327
7379
  Authorization: this.token || this.defaultMeteoToken,
7328
- key: h
7380
+ key: p
7329
7381
  }
7330
7382
  })
7331
7383
  );
7332
- (await Promise.all(d)).map((h) => {
7333
- var y, f, m;
7334
- const g = ((y = h == null ? void 0 : h.data) == null ? void 0 : y.data) || (h == null ? void 0 : h.data), u = (m = (f = h == null ? void 0 : h.config) == null ? void 0 : f.headers) == null ? void 0 : m.key;
7335
- this.otherLayers[u] = g;
7384
+ (await Promise.all(d)).map((p) => {
7385
+ var b, y, u;
7386
+ const f = ((b = p == null ? void 0 : p.data) == null ? void 0 : b.data) || (p == null ? void 0 : p.data), m = (u = (y = p == null ? void 0 : p.config) == null ? void 0 : y.headers) == null ? void 0 : u.key;
7387
+ this.otherLayers[m] = f;
7336
7388
  });
7337
7389
  }
7338
7390
  }
@@ -7353,7 +7405,7 @@ const es = {
7353
7405
  this.activeWindLayer = !!this.activeWeatherLayers.find((e) => e.key === "wind"), this.$refs.layer && (this.$refs.layer.activeWeatherLayers = this.activeWeatherLayers);
7354
7406
  },
7355
7407
  handleRampColorInitial() {
7356
- var a, e, t, r, i, o, s, n, c, d, p, h;
7408
+ var a, e, t, r, i, o, s, l, h, d, c, p;
7357
7409
  this.viewport.map.getSource((a = this.viewport) == null ? void 0 : a.rampColorSource) || this.viewport.map.addSource((e = this.viewport) == null ? void 0 : e.rampColorSource, {
7358
7410
  type: "canvas",
7359
7411
  canvas: (t = this.viewport) == null ? void 0 : t.rampColorCanvas,
@@ -7369,16 +7421,16 @@ const es = {
7369
7421
  }
7370
7422
  },
7371
7423
  this.beforeLayer
7372
- ), this.viewport.map.getSource((s = this.viewport) == null ? void 0 : s.particleSource) || this.viewport.map.addSource((n = this.viewport) == null ? void 0 : n.particleSource, {
7424
+ ), this.viewport.map.getSource((s = this.viewport) == null ? void 0 : s.particleSource) || this.viewport.map.addSource((l = this.viewport) == null ? void 0 : l.particleSource, {
7373
7425
  type: "canvas",
7374
- canvas: (c = this.viewport) == null ? void 0 : c.particleCanvas,
7426
+ canvas: (h = this.viewport) == null ? void 0 : h.particleCanvas,
7375
7427
  animate: !0,
7376
7428
  coordinates: this.viewport.getBoundLngLat()
7377
7429
  }), this.viewport.map.getLayer((d = this.viewport) == null ? void 0 : d.particleLayer) || this.viewport.map.addLayer(
7378
7430
  {
7379
7431
  type: "raster",
7380
- id: (p = this.viewport) == null ? void 0 : p.particleLayer,
7381
- source: (h = this.viewport) == null ? void 0 : h.particleSource,
7432
+ id: (c = this.viewport) == null ? void 0 : c.particleLayer,
7433
+ source: (p = this.viewport) == null ? void 0 : p.particleSource,
7382
7434
  layout: {
7383
7435
  visibility: "none"
7384
7436
  }
@@ -7387,186 +7439,186 @@ const es = {
7387
7439
  );
7388
7440
  },
7389
7441
  handleDragEndWithZoom4Json() {
7390
- var d, p, h, g;
7442
+ var d, c, p, f;
7391
7443
  const a = (/* @__PURE__ */ new Date()).valueOf();
7392
7444
  let e = 0, t = 0;
7393
- const r = (d = this.map) == null ? void 0 : d.getBounds(), i = this.map.getZoom(), o = D.convertToStdLng(r._sw.lng), s = D.convertToStdLng(r._ne.lng), n = Math.floor(r._sw.lat), c = Math.ceil(r._ne.lat);
7394
- for (const u in this.weatherLayers)
7395
- if (this.weatherLayers[u].active && this.weatherLayers[u].type === "json") {
7396
- this.weatherLayers[u].active = !1, this.weatherLayers[u].version = Math.random() + 1;
7397
- let y = [];
7398
- if (["swell", "current"].includes(u)) {
7399
- const f = ((p = this.weatherLayers[u]) == null ? void 0 : p.direction) || {};
7400
- for (const m in f)
7401
- if (m > n && m < c && (!(i <= this.zoom) || m % (i < this.zoom / 2 ? 5 : 3) === 0)) {
7402
- const v = f[m].lng;
7403
- o > s ? v.forEach((b, _) => {
7404
- var P;
7405
- if ((b >= o && b <= 180 || b >= -180 && b <= s) && (!(i <= this.zoom) || b % (i < this.zoom / 2 ? 5 : 3) === 0)) {
7406
- const w = L.point([b, m], {
7407
- val: f[m].val[_],
7408
- spd: (P = f[m].spd) == null ? void 0 : P[_]
7445
+ const r = (d = this.map) == null ? void 0 : d.getBounds(), i = this.map.getZoom(), o = D.convertToStdLng(r._sw.lng), s = D.convertToStdLng(r._ne.lng), l = Math.floor(r._sw.lat), h = Math.ceil(r._ne.lat);
7446
+ for (const m in this.weatherLayers)
7447
+ if (this.weatherLayers[m].active && this.weatherLayers[m].type === "json") {
7448
+ this.weatherLayers[m].active = !1, this.weatherLayers[m].version = Math.random() + 1;
7449
+ let b = [];
7450
+ if (["swell", "current"].includes(m)) {
7451
+ const y = ((c = this.weatherLayers[m]) == null ? void 0 : c.direction) || {};
7452
+ for (const u in y)
7453
+ if (u > l && u < h && (!(i <= this.zoom) || u % (i < this.zoom / 2 ? 5 : 3) === 0)) {
7454
+ const v = y[u].lng;
7455
+ o > s ? v.forEach((g, L) => {
7456
+ var z;
7457
+ if ((g >= o && g <= 180 || g >= -180 && g <= s) && (!(i <= this.zoom) || g % (i < this.zoom / 2 ? 5 : 3) === 0)) {
7458
+ const w = x.point([g, u], {
7459
+ val: y[u].val[L],
7460
+ spd: (z = y[u].spd) == null ? void 0 : z[L]
7409
7461
  });
7410
- y.push(w);
7462
+ b.push(w);
7411
7463
  }
7412
- }) : v.forEach((b, _) => {
7413
- var P;
7414
- if (b >= o && b <= s && (!(i <= this.zoom) || b % (i < this.zoom / 2 ? 5 : 3) === 0)) {
7415
- const w = L.point([b, m], {
7416
- val: f[m].val[_],
7417
- spd: (P = f[m].spd) == null ? void 0 : P[_]
7464
+ }) : v.forEach((g, L) => {
7465
+ var z;
7466
+ if (g >= o && g <= s && (!(i <= this.zoom) || g % (i < this.zoom / 2 ? 5 : 3) === 0)) {
7467
+ const w = x.point([g, u], {
7468
+ val: y[u].val[L],
7469
+ spd: (z = y[u].spd) == null ? void 0 : z[L]
7418
7470
  });
7419
- y.push(w);
7471
+ b.push(w);
7420
7472
  }
7421
7473
  });
7422
7474
  }
7423
- if (t = (/* @__PURE__ */ new Date()).valueOf() - (a + e), console.log("direction elapsed: ", t, ", total: ", e += t), u === "swell") {
7424
- const m = this.weatherLayers[u].height;
7425
- if (m) {
7426
- if (!m.data) {
7475
+ if (t = (/* @__PURE__ */ new Date()).valueOf() - (a + e), console.log("direction elapsed: ", t, ", total: ", e += t), m === "swell") {
7476
+ const u = this.weatherLayers[m].height;
7477
+ if (u) {
7478
+ if (!u.data) {
7427
7479
  const v = [];
7428
- for (const b in (h = m.raw) == null ? void 0 : h.LineString) {
7429
- const _ = m.raw.LineString[b];
7430
- for (const P of _)
7480
+ for (const g in (p = u.raw) == null ? void 0 : p.LineString) {
7481
+ const L = u.raw.LineString[g];
7482
+ for (const z of L)
7431
7483
  v.push(
7432
- L.lineString(P, {
7433
- val: Number(b)
7484
+ x.lineString(z, {
7485
+ val: Number(g)
7434
7486
  })
7435
7487
  );
7436
- m.data = L.featureCollection(v);
7488
+ u.data = x.featureCollection(v);
7437
7489
  }
7438
7490
  }
7439
- if (m.data) {
7440
- const v = this.handleBboxClip(m.data, r);
7441
- y = y.concat(v);
7491
+ if (u.data) {
7492
+ const v = this.handleBboxClip(u.data, r);
7493
+ b = b.concat(v);
7442
7494
  }
7443
7495
  t = (/* @__PURE__ */ new Date()).valueOf() - (a + e), console.log("height elapsed: ", t, ", total: ", e += t);
7444
7496
  }
7445
7497
  }
7446
- if (u === "current") {
7447
- const m = this.weatherLayers[u].speed;
7448
- if (m) {
7449
- if (!m.data) {
7450
- const b = [];
7451
- for (const _ in (g = m.raw) == null ? void 0 : g.Polygon) {
7452
- const P = m.raw.Polygon[_];
7453
- for (const w of P)
7454
- b.push(
7455
- L.polygon(w, {
7456
- val: Number(_)
7498
+ if (m === "current") {
7499
+ const u = this.weatherLayers[m].speed;
7500
+ if (u) {
7501
+ if (!u.data) {
7502
+ const g = [];
7503
+ for (const L in (f = u.raw) == null ? void 0 : f.Polygon) {
7504
+ const z = u.raw.Polygon[L];
7505
+ for (const w of z)
7506
+ g.push(
7507
+ x.polygon(w, {
7508
+ val: Number(L)
7457
7509
  })
7458
7510
  );
7459
7511
  }
7460
- m.data = L.featureCollection(b);
7512
+ u.data = x.featureCollection(g);
7461
7513
  }
7462
- const v = i < this.zoom ? m.data.features.filter((b) => b.properties.val > 0.5) : m.data.features;
7463
- y = y.concat(v), t = (/* @__PURE__ */ new Date()).valueOf() - (a + e), console.log("speed elapsed: ", t, ", total: ", e += t);
7514
+ const v = i < this.zoom ? u.data.features.filter((g) => g.properties.val > 0.5) : u.data.features;
7515
+ b = b.concat(v), t = (/* @__PURE__ */ new Date()).valueOf() - (a + e), console.log("speed elapsed: ", t, ", total: ", e += t);
7464
7516
  }
7465
7517
  }
7466
- } else if (u === "wind") {
7467
- const f = this.weatherLayers.wind.raw;
7468
- for (const m in f)
7469
- if (m > n && m < c && (!(i <= this.zoom) || m % (i < this.zoom / 2 ? 5 : 3) === 0)) {
7470
- const v = f[m].lng;
7471
- o > s ? v.forEach((b, _) => {
7472
- if ((b >= o && b <= 180 || b >= -180 && b <= s) && (!(i <= this.zoom) || b % (i < this.zoom / 2 ? 5 : 3) === 0)) {
7473
- const P = L.point([b, m], {
7474
- val: f[m].val[_],
7475
- spd: f[m].spd[_]
7518
+ } else if (m === "wind") {
7519
+ const y = this.weatherLayers.wind.raw;
7520
+ for (const u in y)
7521
+ if (u > l && u < h && (!(i <= this.zoom) || u % (i < this.zoom / 2 ? 5 : 3) === 0)) {
7522
+ const v = y[u].lng;
7523
+ o > s ? v.forEach((g, L) => {
7524
+ if ((g >= o && g <= 180 || g >= -180 && g <= s) && (!(i <= this.zoom) || g % (i < this.zoom / 2 ? 5 : 3) === 0)) {
7525
+ const z = x.point([g, u], {
7526
+ val: y[u].val[L],
7527
+ spd: y[u].spd[L]
7476
7528
  });
7477
- y.push(P);
7529
+ b.push(z);
7478
7530
  }
7479
- }) : v.forEach((b, _) => {
7480
- if (b >= o && b <= s && (!(i <= this.zoom) || b % (i < this.zoom / 2 ? 5 : 3) === 0)) {
7481
- const P = L.point([b, m], {
7482
- val: f[m].val[_],
7483
- spd: f[m].spd[_]
7531
+ }) : v.forEach((g, L) => {
7532
+ if (g >= o && g <= s && (!(i <= this.zoom) || g % (i < this.zoom / 2 ? 5 : 3) === 0)) {
7533
+ const z = x.point([g, u], {
7534
+ val: y[u].val[L],
7535
+ spd: y[u].spd[L]
7484
7536
  });
7485
- y.push(P);
7537
+ b.push(z);
7486
7538
  }
7487
7539
  });
7488
7540
  }
7489
7541
  t = (/* @__PURE__ */ new Date()).valueOf() - (a + e), console.log("wind barb elapsed: ", t, ", total: ", e += t);
7490
- } else if (u === "sig-wave-height") {
7491
- if (this.weatherLayers[u].data)
7492
- y = this.weatherLayers[u].data;
7542
+ } else if (m === "sig-wave-height") {
7543
+ if (this.weatherLayers[m].data)
7544
+ b = this.weatherLayers[m].data;
7493
7545
  else {
7494
- const f = this.weatherLayers[u].raw;
7495
- if (f) {
7496
- const m = [];
7497
- for (const v in f.Polygon) {
7498
- const b = f.Polygon[v];
7499
- for (const _ of b)
7500
- m.push(
7501
- L.polygon(_, {
7546
+ const y = this.weatherLayers[m].raw;
7547
+ if (y) {
7548
+ const u = [];
7549
+ for (const v in y.Polygon) {
7550
+ const g = y.Polygon[v];
7551
+ for (const L of g)
7552
+ u.push(
7553
+ x.polygon(L, {
7502
7554
  val: Number(v)
7503
7555
  })
7504
7556
  );
7505
7557
  }
7506
- for (const v in f.Point) {
7507
- const b = f.Point[v];
7508
- for (const _ of b)
7509
- m.push(
7510
- ...L.points(_, {
7558
+ for (const v in y.Point) {
7559
+ const g = y.Point[v];
7560
+ for (const L of g)
7561
+ u.push(
7562
+ ...x.points(L, {
7511
7563
  val: Number(v)
7512
7564
  }).features
7513
7565
  );
7514
7566
  }
7515
- y = y.concat(m);
7567
+ b = b.concat(u);
7516
7568
  }
7517
7569
  }
7518
7570
  t = (/* @__PURE__ */ new Date()).valueOf() - (a + e), console.log("sigWave elapsed: ", t, ", total: ", e += t);
7519
- } else if (u === "prmsl") {
7520
- if (this.weatherLayers[u].data)
7521
- y = this.weatherLayers[u].data;
7571
+ } else if (m === "prmsl") {
7572
+ if (this.weatherLayers[m].data)
7573
+ b = this.weatherLayers[m].data;
7522
7574
  else {
7523
- const f = this.weatherLayers[u].raw;
7524
- if (f) {
7525
- const m = [];
7526
- for (const v in f.LineString) {
7527
- const b = f.LineString[v];
7528
- for (const _ of b)
7529
- m.push(
7530
- L.lineString(_, {
7575
+ const y = this.weatherLayers[m].raw;
7576
+ if (y) {
7577
+ const u = [];
7578
+ for (const v in y.LineString) {
7579
+ const g = y.LineString[v];
7580
+ for (const L of g)
7581
+ u.push(
7582
+ x.lineString(L, {
7531
7583
  val: Number(v)
7532
7584
  })
7533
7585
  );
7534
7586
  }
7535
- for (const v in f.Point)
7536
- f.Point[v].lng.forEach((b, _) => {
7537
- b = D.convertToStdLng(b), m.push(
7538
- L.point([b, v], {
7539
- val: f.Point[v].val[_],
7540
- type: f.Point[v].type[_]
7587
+ for (const v in y.Point)
7588
+ y.Point[v].lng.forEach((g, L) => {
7589
+ g = D.convertToStdLng(g), u.push(
7590
+ x.point([g, v], {
7591
+ val: y.Point[v].val[L],
7592
+ type: y.Point[v].type[L]
7541
7593
  })
7542
7594
  );
7543
7595
  });
7544
- y = y.concat(m);
7596
+ b = b.concat(u);
7545
7597
  }
7546
7598
  }
7547
7599
  t = (/* @__PURE__ */ new Date()).valueOf() - (a + e), console.log("prmsl elapsed: ", t, ", total: ", e += t);
7548
- } else if (u === "arctic" || u === "iceberg") {
7549
- if (this.weatherLayers[u].data)
7550
- y = this.weatherLayers[u].data;
7600
+ } else if (m === "arctic" || m === "iceberg") {
7601
+ if (this.weatherLayers[m].data)
7602
+ b = this.weatherLayers[m].data;
7551
7603
  else {
7552
- const f = this.weatherLayers[u].raw;
7553
- if (f) {
7554
- const m = [];
7555
- for (const v in f.LineString) {
7556
- const b = f.LineString[v];
7557
- for (const _ of b)
7558
- m.push(
7559
- L.lineString(_, {
7604
+ const y = this.weatherLayers[m].raw;
7605
+ if (y) {
7606
+ const u = [];
7607
+ for (const v in y.LineString) {
7608
+ const g = y.LineString[v];
7609
+ for (const L of g)
7610
+ u.push(
7611
+ x.lineString(L, {
7560
7612
  val: Number(v)
7561
7613
  })
7562
7614
  );
7563
7615
  }
7564
- y = y.concat(m);
7616
+ b = b.concat(u);
7565
7617
  }
7566
7618
  }
7567
7619
  t = (/* @__PURE__ */ new Date()).valueOf() - (a + e);
7568
7620
  }
7569
- console.log(u, " elapsed: ", t, ", total: ", e += t), y.length && (this.weatherLayers[u].data = L.featureCollection(y)), this.weatherLayers[u].active = !0, this.weatherLayers[u].version = Math.random() + 1;
7621
+ console.log(m, " elapsed: ", t, ", total: ", e += t), b.length && (this.weatherLayers[m].data = x.featureCollection(b)), this.weatherLayers[m].active = !0, this.weatherLayers[m].version = Math.random() + 1;
7570
7622
  }
7571
7623
  },
7572
7624
  handleDragEndWithZoom4Image() {
@@ -7578,11 +7630,11 @@ const es = {
7578
7630
  return a.features.forEach((o) => {
7579
7631
  if (o.geometry.type !== "Point")
7580
7632
  if (r > i) {
7581
- let s = [r, e._sw.lat, 180, e._ne.lat], n = L.bboxClip(o, s);
7582
- n.geometry.coordinates.length && t.push(n), s = [-180, e._sw.lat, i, e._ne.lat], n = L.bboxClip(o, s), n.geometry.coordinates.length && t.push(n);
7633
+ let s = [r, e._sw.lat, 180, e._ne.lat], l = x.bboxClip(o, s);
7634
+ l.geometry.coordinates.length && t.push(l), s = [-180, e._sw.lat, i, e._ne.lat], l = x.bboxClip(o, s), l.geometry.coordinates.length && t.push(l);
7583
7635
  } else {
7584
- const s = [r, e._sw.lat, i, e._ne.lat], n = L.bboxClip(o, s);
7585
- n.geometry.coordinates.length && t.push(n);
7636
+ const s = [r, e._sw.lat, i, e._ne.lat], l = x.bboxClip(o, s);
7637
+ l.geometry.coordinates.length && t.push(l);
7586
7638
  }
7587
7639
  else
7588
7640
  t.push(o);
@@ -7599,30 +7651,30 @@ const es = {
7599
7651
  this.handleBeforeLayerToggle();
7600
7652
  },
7601
7653
  handleBeforeLayerToggle() {
7602
- var a, e, t, r, i, o, s, n, c, d, p, h, g;
7603
- (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"] || (s = this.otherLayers) != null && s["time-zones"] || (n = this.otherLayers) != null && n.pirates || (c = this.otherLayers) != null && c.ports || (d = this.otherLayers) != null && d.enc || (p = this.otherLayers) != null && p["voluntary-reporting-area"] || (h = this.otherLayers) != null && h["eca-zones"] || (g = this.otherLayers) != null && g["special-area"]) && this.map.setLayoutProperty(this.beforeLayer, "visibility", "visible");
7654
+ var a, e, t, r, i, o, s, l, h, d, c, p, f;
7655
+ (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"] || (s = this.otherLayers) != null && s["time-zones"] || (l = this.otherLayers) != null && l.pirates || (h = this.otherLayers) != null && h.ports || (d = this.otherLayers) != null && d.enc || (c = this.otherLayers) != null && c["voluntary-reporting-area"] || (p = this.otherLayers) != null && p["eca-zones"] || (f = this.otherLayers) != null && f["special-area"]) && this.map.setLayoutProperty(this.beforeLayer, "visibility", "visible");
7604
7656
  },
7605
7657
  handleDateChange(a = { tropicals: !1 }) {
7606
7658
  this.fetchWeatherLayers(a), this.fetchOtherLayers({ dayNight: !0 });
7607
7659
  },
7608
- handleWeatherLayerChange(a, e, t) {
7660
+ handleWeatherLayerChange(a, e) {
7609
7661
  if (!this.map)
7610
7662
  setTimeout(() => {
7611
- this.handleWeatherLayerChange(a, e, t);
7663
+ this.handleWeatherLayerChange(a, e);
7612
7664
  }, 500);
7613
7665
  else {
7614
- this.activeWeatherLayers = e;
7615
- const r = this.activeWeatherLayers.some(
7616
- (s) => {
7617
- var n;
7618
- return ["wind", "current"].includes(s.key) && (!((n = Object.keys(s)) != null && n.some((c) => c === "particle")) || !!s.particle);
7666
+ this.activeWeatherLayers = a;
7667
+ const t = this.activeWeatherLayers.some(
7668
+ (o) => {
7669
+ var s;
7670
+ return ["wind", "current"].includes(o.key) && (!((s = Object.keys(o)) != null && s.some((l) => l === "particle")) || !!o.particle);
7619
7671
  }
7620
- ), i = this.activeWeatherLayers.some((s) => ["png", "jpg"].includes(s.type));
7621
- r && !i ? (this.activeWeatherLayers.forEach((s) => {
7622
- ["wind", "current"].includes(s.key) && (this.particleFactor = s);
7623
- }), this.particleFactor.particle = !0) : i && this.particleFactor && (this.particleFactor.particle = !1);
7624
- const o = e == null ? void 0 : e.reduce((s, n) => s + (s & (n == null ? void 0 : n.weight) ? 0 : n == null ? void 0 : n.weight), 0);
7625
- this.weatherWeight !== o || this.source !== t ? (this.source = t, this.weatherWeight = o, this.fetchWeatherLayers({ tropicals: !1 })) : this.handleWeatherLayerToggle();
7672
+ ), r = this.activeWeatherLayers.some((o) => ["png", "jpg"].includes(o.type));
7673
+ t && !r ? (this.activeWeatherLayers.forEach((o) => {
7674
+ ["wind", "current"].includes(o.key) && (this.particleFactor = o);
7675
+ }), this.particleFactor.particle = !0) : r && this.particleFactor && (this.particleFactor.particle = !1);
7676
+ const i = a == null ? void 0 : a.reduce((o, s) => o + (o & (s == null ? void 0 : s.weight) ? 0 : s == null ? void 0 : s.weight), 0);
7677
+ this.weatherWeight !== i || this.source !== e ? (this.source = e, this.weatherWeight = i, this.fetchWeatherLayers({ tropicals: !1 })) : this.handleWeatherLayerToggle();
7626
7678
  }
7627
7679
  },
7628
7680
  handleOtherLayerChange(a) {
@@ -7642,7 +7694,7 @@ const es = {
7642
7694
  ts: e.utc().format(),
7643
7695
  wt: !0,
7644
7696
  src: this.source
7645
- }, r = await ne.get(`${this.gateway}/api/arc/meteo/query`, {
7697
+ }, r = await oe.get(`${this.gateway}/api/arc/meteo/query`, {
7646
7698
  params: t,
7647
7699
  headers: {
7648
7700
  Authorization: this.token || this.defaultMeteoToken
@@ -7654,8 +7706,8 @@ const es = {
7654
7706
  });
7655
7707
  },
7656
7708
  handle3dToggle(a) {
7657
- var e, t, r, i, o, s, n, c, d, p, h, g, u, y, f, m, v, b, _, P;
7658
- 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)), (n = this.map) != null && n.getLayer((s = this.viewport) == null ? void 0 : s.particleLayer) && ((c = this.map) != null && c.getLayer(this.helper.mapboxCustomer.layers.water.id)) && ((p = this.map) == null || p.moveLayer((d = this.viewport) == null ? void 0 : d.particleLayer, this.helper.mapboxCustomer.layers.water.id)), this.map.off("zoomend", this.handleDragEndWithZoom4Json), this.map.off("dragend", this.handleDragEndWithZoom4Json), this.map.off("move", this.handleDragEndWithZoom4Image)) : (this.map.setProjection("mercator"), this.mapProjection = "mercator", this.map.on("zoomend", this.handleDragEndWithZoom4Json), this.map.on("dragend", this.handleDragEndWithZoom4Json), this.map.on("move", this.handleDragEndWithZoom4Image), this.handleDragEndWithZoom4Image(), this.handleDragEndWithZoom4Json(), (g = this.map) != null && g.getLayer((h = this.viewport) == null ? void 0 : h.rampColorLayer) && ((u = this.map) != null && u.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && ((f = this.map) == null || f.moveLayer((y = this.viewport) == null ? void 0 : y.rampColorLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)), (v = this.map) != null && v.getLayer((m = this.viewport) == null ? void 0 : m.particleLayer) && ((b = this.map) != null && b.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && ((P = this.map) == null || P.moveLayer((_ = this.viewport) == null ? void 0 : _.particleLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)));
7709
+ var e, t, r, i, o, s, l, h, d, c, p, f, m, b, y, u, v, g, L, z;
7710
+ 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)), (l = this.map) != null && l.getLayer((s = this.viewport) == null ? void 0 : s.particleLayer) && ((h = this.map) != null && h.getLayer(this.helper.mapboxCustomer.layers.water.id)) && ((c = this.map) == null || c.moveLayer((d = this.viewport) == null ? void 0 : d.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)) && ((z = this.map) == null || z.moveLayer((L = this.viewport) == null ? void 0 : L.particleLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)));
7659
7711
  },
7660
7712
  handleParticle(a) {
7661
7713
  this.particleFactor = a, this.weatherLayers[a.key] && (this.weatherLayers[a.key].particle = a.particle), this.activeWeatherLayers.forEach((r) => {
@@ -7671,210 +7723,216 @@ const es = {
7671
7723
  this.$emit("toggleVersion", Math.random());
7672
7724
  }
7673
7725
  }
7674
- }, ts = {
7726
+ }, Oi = {
7675
7727
  key: 0,
7676
7728
  className: "map-gl-home"
7677
7729
  };
7678
- function as(a, e, t, r, i, o) {
7679
- var ie, X, q, be, Q, I, F, ve, K, we, re, oe, se, Pe, Te, Ie, Ee, Re, We, Ze, He, Ge, Je, Xe, Ye, qe;
7680
- const s = z("IdmGlLayer"), n = z("IdmENC"), c = z("IdmSigWave"), d = z("IdmSwell"), p = z("IdmPrmsl"), h = z("IdmIceberg"), g = z("IdmTropicals"), u = z("IdmCurrents"), y = z("IdmCurrentParticle"), f = z("IdmWindBarb"), m = z("IdmWindParticle"), v = z("IdmPrecip3h"), b = z("IdmVisibility"), _ = z("IdmWaterTemp"), P = z("IdmTemp"), w = z("IdmArctic"), A = z("IdmWarZone"), M = z("IdmGmdssArea"), $ = 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");
7681
- return t.map ? (x(), C("div", ts, [
7682
- k(s, E({
7730
+ function Fi(a, e, t, r, i, o) {
7731
+ var te, G, Y, me, q, E, $, ue, Q, ye, ae, ie, re, be, ve, we, Le, xe, Te, Ae, De, Me, je, We, Be, Ne;
7732
+ const s = P("IdmGlLayer"), l = P("IdmENC"), h = P("IdmSigWave"), d = P("IdmSwell"), c = P("IdmPrmsl"), p = P("IdmIceberg"), f = P("IdmTropicals"), m = P("IdmCurrents"), b = P("IdmCurrentParticle"), y = P("IdmWindBarb"), u = P("IdmWindParticle"), v = P("IdmPrecip3h"), g = P("IdmVisibility"), L = P("IdmWaterTemp"), z = P("IdmTemp"), w = P("IdmArctic"), A = P("IdmWarZone"), M = P("IdmGmdssArea"), W = P("IdmEcaZone"), O = P("IdmAlertZone"), F = P("IdmPort"), H = P("IdmLoadLine"), se = P("IdmTimezone"), ne = P("IdmVRA"), le = P("IdmSpecialArea"), ce = P("IdmTerminator"), he = P("IdmLatLng"), de = P("IdmMeasure"), pe = P("IdmPoint");
7733
+ return t.map ? (_(), C("div", Oi, [
7734
+ k(s, I({
7683
7735
  ref: "layer",
7684
7736
  map: t.map,
7685
7737
  "toggle-version": t.toggleVersion,
7686
- "map-projection": i.mapProjection
7738
+ "map-projection": i.mapProjection,
7739
+ showWindFeather: i.showWindFeather,
7740
+ showWindParticle: i.showWindParticle,
7741
+ showCurrentIsoband: i.showCurrentIsoband,
7742
+ showCurrentParticle: i.showCurrentParticle
7687
7743
  }, a.$attrs, {
7688
7744
  onWeather: o.handleWeatherLayerChange,
7689
7745
  onOther: o.handleOtherLayerChange,
7690
- onCoordinate: e[0] || (e[0] = (_e) => i.showCoord = _e),
7691
- onMeasure: e[1] || (e[1] = (_e) => i.showMeasure = _e),
7692
- onPoint: e[2] || (e[2] = (_e) => i.showPoint = _e),
7746
+ onCoordinate: e[0] || (e[0] = (J) => i.showCoord = J),
7747
+ onMeasure: e[1] || (e[1] = (J) => i.showMeasure = J),
7748
+ onPoint: e[2] || (e[2] = (J) => i.showPoint = J),
7693
7749
  on3d: o.handle3dToggle,
7694
7750
  onHandleToggleVersion: o.handleToggleVersion
7695
- }), null, 16, ["map", "toggle-version", "map-projection", "onWeather", "onOther", "on3d", "onHandleToggleVersion"]),
7696
- k(n, E({
7751
+ }), null, 16, ["map", "toggle-version", "map-projection", "showWindFeather", "showWindParticle", "showCurrentIsoband", "showCurrentParticle", "onWeather", "onOther", "on3d", "onHandleToggleVersion"]),
7752
+ k(l, I({
7697
7753
  map: t.map,
7698
7754
  token: t.token,
7699
- enabled: (ie = i.otherLayers) == null ? void 0 : ie.enc,
7755
+ enabled: (te = i.otherLayers) == null ? void 0 : te.enc,
7700
7756
  "toggle-version": t.toggleVersion
7701
7757
  }, a.$attrs, {
7702
- onEnc: e[3] || (e[3] = (_e) => i.enc = _e)
7758
+ onEnc: e[3] || (e[3] = (J) => i.enc = J)
7703
7759
  }), null, 16, ["map", "token", "enabled", "toggle-version"]),
7704
- k(c, E({
7760
+ k(h, I({
7705
7761
  map: t.map,
7706
- "sig-wave": (X = i.weatherLayers) == null ? void 0 : X["sig-wave-height"],
7762
+ "sig-wave": (G = i.weatherLayers) == null ? void 0 : G["sig-wave-height"],
7707
7763
  "before-layer": t.beforeLayer
7708
7764
  }, a.$attrs), null, 16, ["map", "sig-wave", "before-layer"]),
7709
- k(d, E({
7765
+ k(d, I({
7710
7766
  map: t.map,
7711
- swell: (q = i.weatherLayers) == null ? void 0 : q.swell,
7767
+ swell: (Y = i.weatherLayers) == null ? void 0 : Y.swell,
7712
7768
  "before-layer": t.beforeLayer
7713
7769
  }, a.$attrs), null, 16, ["map", "swell", "before-layer"]),
7714
- k(p, E({
7770
+ k(c, I({
7715
7771
  map: t.map,
7716
- prmsl: (be = i.weatherLayers) == null ? void 0 : be.prmsl,
7772
+ prmsl: (me = i.weatherLayers) == null ? void 0 : me.prmsl,
7717
7773
  "before-layer": t.beforeLayer,
7718
7774
  "active-weather-layers": i.activeWeatherLayers
7719
7775
  }, a.$attrs), null, 16, ["map", "prmsl", "before-layer", "active-weather-layers"]),
7720
- k(h, E({
7776
+ k(p, I({
7721
7777
  map: t.map,
7722
- iceberg: (Q = i.weatherLayers) == null ? void 0 : Q.iceberg,
7778
+ iceberg: (q = i.weatherLayers) == null ? void 0 : q.iceberg,
7723
7779
  "before-layer": t.beforeLayer
7724
7780
  }, a.$attrs), null, 16, ["map", "iceberg", "before-layer"]),
7725
- k(g, E({
7781
+ k(f, I({
7726
7782
  map: t.map,
7727
7783
  date: t.ts,
7728
- tropicals: (I = i.weatherLayers) == null ? void 0 : I.tropicals,
7784
+ tropicals: (E = i.weatherLayers) == null ? void 0 : E.tropicals,
7729
7785
  "before-layer": t.beforeLayer
7730
7786
  }, a.$attrs), null, 16, ["map", "date", "tropicals", "before-layer"]),
7731
- k(u, E({
7787
+ k(m, I({
7732
7788
  map: t.map,
7733
7789
  "map-projection": i.mapProjection,
7734
- current: (F = i.weatherLayers) == null ? void 0 : F.current,
7790
+ current: ($ = i.weatherLayers) == null ? void 0 : $.current,
7735
7791
  "before-layer": t.beforeLayer,
7736
7792
  "show-particle": i.showCurrentParticle,
7737
7793
  "margin-bottom": i.activeWindLayer ? i.showRampColor ? "84px" : "56px" : i.showRampColor ? "56px" : "30px",
7738
7794
  "toggle-version": t.toggleVersion,
7739
7795
  "weather-layers": i.weatherLayers
7740
7796
  }, a.$attrs, {
7797
+ onShowCurrentIsoband: e[4] || (e[4] = (J) => i.showCurrentIsoband = J),
7741
7798
  onParticle: o.handleParticle,
7742
7799
  onHandleToggleVersion: o.handleToggleVersion
7743
7800
  }), null, 16, ["map", "map-projection", "current", "before-layer", "show-particle", "margin-bottom", "toggle-version", "weather-layers", "onParticle", "onHandleToggleVersion"]),
7744
- k(y, E({
7801
+ k(b, I({
7745
7802
  viewport: i.viewport,
7746
- factor: (ve = i.weatherLayers) == null ? void 0 : ve["current-particle"],
7803
+ factor: (ue = i.weatherLayers) == null ? void 0 : ue["current-particle"],
7747
7804
  "before-layer": t.beforeLayer,
7748
7805
  "toggle-version": t.toggleVersion
7749
7806
  }, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
7750
- k(f, E({
7807
+ k(y, I({
7751
7808
  ref: "windBarb",
7752
7809
  map: t.map,
7753
7810
  "map-projection": i.mapProjection,
7754
- wind: (K = i.weatherLayers) == null ? void 0 : K.wind,
7755
- current: (we = i.weatherLayers) == null ? void 0 : we.current,
7811
+ wind: (Q = i.weatherLayers) == null ? void 0 : Q.wind,
7812
+ current: (ye = i.weatherLayers) == null ? void 0 : ye.current,
7756
7813
  "before-layer": t.beforeLayer,
7757
7814
  "margin-bottom": i.showRampColor ? "56px" : "30px",
7758
7815
  "show-particle": i.showWindParticle
7759
7816
  }, a.$attrs, {
7760
7817
  "toggle-version": t.toggleVersion,
7761
7818
  "weather-layers": i.weatherLayers,
7762
- onParticle: o.handleParticle
7819
+ onParticle: o.handleParticle,
7820
+ onShowWindFeather: e[5] || (e[5] = (J) => i.showWindFeather = J)
7763
7821
  }), null, 16, ["map", "map-projection", "wind", "current", "before-layer", "margin-bottom", "show-particle", "toggle-version", "weather-layers", "onParticle"]),
7764
- k(m, E({
7822
+ k(u, I({
7765
7823
  viewport: i.viewport,
7766
- factor: (re = i.weatherLayers) == null ? void 0 : re["wind-particle"],
7824
+ factor: (ae = i.weatherLayers) == null ? void 0 : ae["wind-particle"],
7767
7825
  "before-layer": t.beforeLayer,
7768
7826
  "toggle-version": t.toggleVersion
7769
7827
  }, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
7770
- k(v, E({
7828
+ k(v, I({
7771
7829
  viewport: i.viewport,
7772
- factor: (oe = i.weatherLayers) == null ? void 0 : oe.precip3h,
7830
+ factor: (ie = i.weatherLayers) == null ? void 0 : ie.precip3h,
7773
7831
  "before-layer": t.beforeLayer,
7774
7832
  "toggle-version": t.toggleVersion
7775
7833
  }, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
7776
- k(b, E({
7834
+ k(g, I({
7777
7835
  viewport: i.viewport,
7778
- factor: (se = i.weatherLayers) == null ? void 0 : se.visibility,
7836
+ factor: (re = i.weatherLayers) == null ? void 0 : re.visibility,
7779
7837
  "before-layer": t.beforeLayer,
7780
7838
  "toggle-version": t.toggleVersion
7781
7839
  }, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
7782
- k(_, E({
7840
+ k(L, I({
7783
7841
  viewport: i.viewport,
7784
- factor: (Pe = i.weatherLayers) == null ? void 0 : Pe["water-temp"],
7842
+ factor: (be = i.weatherLayers) == null ? void 0 : be["water-temp"],
7785
7843
  "before-layer": t.beforeLayer,
7786
7844
  "toggle-version": t.toggleVersion
7787
7845
  }, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
7788
- k(P, E({
7846
+ k(z, I({
7789
7847
  viewport: i.viewport,
7790
- factor: (Te = i.weatherLayers) == null ? void 0 : Te.temp,
7848
+ factor: (ve = i.weatherLayers) == null ? void 0 : ve.temp,
7791
7849
  "before-layer": t.beforeLayer,
7792
7850
  "toggle-version": t.toggleVersion
7793
7851
  }, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
7794
- k(w, E({
7852
+ k(w, I({
7795
7853
  viewport: i.viewport,
7796
- factor: (Ie = i.weatherLayers) == null ? void 0 : Ie.arctic,
7854
+ factor: (we = i.weatherLayers) == null ? void 0 : we.arctic,
7797
7855
  "before-layer": t.beforeLayer,
7798
7856
  "toggle-version": t.toggleVersion
7799
7857
  }, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
7800
- k(A, E({
7858
+ k(A, I({
7801
7859
  map: t.map,
7802
- zone: (Ee = i.otherLayers) == null ? void 0 : Ee["war-zones"],
7860
+ zone: (Le = i.otherLayers) == null ? void 0 : Le["war-zones"],
7803
7861
  "before-layer": t.beforeLayer
7804
7862
  }, a.$attrs), null, 16, ["map", "zone", "before-layer"]),
7805
- k(M, E({
7863
+ k(M, I({
7806
7864
  map: t.map,
7807
- area: (Re = i.otherLayers) == null ? void 0 : Re["gmdss-areas"],
7865
+ area: (xe = i.otherLayers) == null ? void 0 : xe["gmdss-areas"],
7808
7866
  "before-layer": t.beforeLayer
7809
7867
  }, a.$attrs), null, 16, ["map", "area", "before-layer"]),
7810
- k($, E({
7868
+ k(W, I({
7811
7869
  map: t.map,
7812
- zone: (We = i.otherLayers) == null ? void 0 : We["eca-zones"],
7870
+ zone: (Te = i.otherLayers) == null ? void 0 : Te["eca-zones"],
7813
7871
  "before-layer": t.beforeLayer
7814
7872
  }, a.$attrs), null, 16, ["map", "zone", "before-layer"]),
7815
- k(W, E({
7873
+ k(O, I({
7816
7874
  map: t.map,
7817
- zone: (Ze = i.otherLayers) == null ? void 0 : Ze["alert-zones"],
7875
+ zone: (Ae = i.otherLayers) == null ? void 0 : Ae["alert-zones"],
7818
7876
  "before-layer": t.beforeLayer
7819
7877
  }, a.$attrs), null, 16, ["map", "zone", "before-layer"]),
7820
- k(O, E({
7878
+ k(F, I({
7821
7879
  map: t.map,
7822
- port: (He = i.otherLayers) == null ? void 0 : He.ports,
7880
+ port: (De = i.otherLayers) == null ? void 0 : De.ports,
7823
7881
  "before-layer": t.beforeLayer
7824
7882
  }, a.$attrs), null, 16, ["map", "port", "before-layer"]),
7825
- k(J, E({
7883
+ k(H, I({
7826
7884
  map: t.map,
7827
- line: (Ge = i.otherLayers) == null ? void 0 : Ge["load-lines"],
7885
+ line: (Me = i.otherLayers) == null ? void 0 : Me["load-lines"],
7828
7886
  "before-layer": t.beforeLayer
7829
7887
  }, a.$attrs), null, 16, ["map", "line", "before-layer"]),
7830
- k(de, E({
7888
+ k(se, I({
7831
7889
  map: t.map,
7832
- zone: (Je = i.otherLayers) == null ? void 0 : Je["time-zones"],
7890
+ zone: (je = i.otherLayers) == null ? void 0 : je["time-zones"],
7833
7891
  "before-layer": t.beforeLayer
7834
7892
  }, a.$attrs), null, 16, ["map", "zone", "before-layer"]),
7835
- k(pe, E({
7893
+ k(ne, I({
7836
7894
  map: t.map,
7837
- area: (Xe = i.otherLayers) == null ? void 0 : Xe["voluntary-reporting-area"],
7895
+ area: (We = i.otherLayers) == null ? void 0 : We["voluntary-reporting-area"],
7838
7896
  "before-layer": t.beforeLayer
7839
7897
  }, a.$attrs), null, 16, ["map", "area", "before-layer"]),
7840
- k(me, E({
7898
+ k(le, I({
7841
7899
  map: t.map,
7842
- area: (Ye = i.otherLayers) == null ? void 0 : Ye["special-area"],
7900
+ area: (Be = i.otherLayers) == null ? void 0 : Be["special-area"],
7843
7901
  "before-layer": t.beforeLayer
7844
7902
  }, a.$attrs), null, 16, ["map", "area", "before-layer"]),
7845
- k(ue, E({
7903
+ k(ce, I({
7846
7904
  map: t.map,
7847
- area: (qe = i.otherLayers) == null ? void 0 : qe["day-night"]
7905
+ area: (Ne = i.otherLayers) == null ? void 0 : Ne["day-night"]
7848
7906
  }, a.$attrs), null, 16, ["map", "area"]),
7849
- k(ye, E({
7907
+ k(he, I({
7850
7908
  map: t.map,
7851
7909
  show: i.showCoord,
7852
7910
  "toggle-version": t.toggleVersion
7853
7911
  }, a.$attrs), null, 16, ["map", "show", "toggle-version"]),
7854
- k(fe, E({
7912
+ k(de, I({
7855
7913
  map: t.map,
7856
7914
  show: i.showMeasure
7857
7915
  }, a.$attrs), null, 16, ["map", "show"]),
7858
- k(ge, E({
7916
+ k(pe, I({
7859
7917
  map: t.map,
7860
7918
  show: i.showPoint,
7861
7919
  meteo: i.meteo
7862
7920
  }, a.$attrs, { onPoint: o.handlePointChange }), null, 16, ["map", "show", "meteo", "onPoint"])
7863
- ])) : j("", !0);
7921
+ ])) : B("", !0);
7864
7922
  }
7865
- const is = /* @__PURE__ */ T(es, [["render", as]]), ds = {
7923
+ const $i = /* @__PURE__ */ T(Ni, [["render", Fi]]), Yi = {
7866
7924
  install(a) {
7867
- a.component("MapboxGL", is), a.component("TropicalGL", Ke), a.component("LatLngGL", et);
7925
+ a.component("MapboxGL", $i), a.component("TropicalGL", Fe), a.component("LatLngGL", $e);
7868
7926
  }
7869
7927
  };
7870
7928
  export {
7871
- et as LatLngGL,
7872
- is as MapboxGL,
7873
- ds as MapboxGLPlugin,
7874
- aa as MapboxHelper,
7929
+ $e as LatLngGL,
7930
+ $i as MapboxGL,
7931
+ Yi as MapboxGLPlugin,
7932
+ vt as MapboxHelper,
7875
7933
  V as ParticleSchema,
7876
- Ke as TropicalGL,
7877
- Ve as Viewport,
7878
- Le as WebGL,
7879
- B as WebGLSchema
7934
+ Fe as TropicalGL,
7935
+ Re as Viewport,
7936
+ fe as WebGL,
7937
+ N as WebGLSchema
7880
7938
  };