@idmwx/idmui-gl3 6.3.5 → 6.3.7
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 +815 -809
- package/dist/index.umd.cjs +19 -19
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
var mt = Object.defineProperty;
|
|
2
2
|
var ut = (a, e, t) => e in a ? mt(a, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : a[e] = t;
|
|
3
|
-
var
|
|
3
|
+
var se = (a, e, t) => (ut(a, typeof e != "symbol" ? e + "" : e, t), t);
|
|
4
4
|
import { LayerHelper as Ze, CompanyHelper as qe } from "@idm-plugin/tag";
|
|
5
|
-
import
|
|
6
|
-
import
|
|
5
|
+
import ae from "moment";
|
|
6
|
+
import He from "axios";
|
|
7
7
|
import Ye from "moment-timezone";
|
|
8
|
-
import { resolveComponent as R, openBlock as
|
|
9
|
-
import * as
|
|
8
|
+
import { resolveComponent as R, openBlock as g, createElementBlock as y, createElementVNode as o, normalizeStyle as ge, createVNode as F, withCtx as Pe, normalizeClass as ee, Fragment as $, renderList as te, toDisplayString as k, createCommentVNode as q, createBlock as gt, createTextVNode as ue, withDirectives as Fe, createStaticVNode as yt, vShow as Oe, defineComponent as ft, withModifiers as Ve, mergeProps as X } from "vue";
|
|
9
|
+
import * as Q from "@turf/turf";
|
|
10
10
|
import At from "@mapbox/sphericalmercator";
|
|
11
11
|
import Re from "mapbox-gl";
|
|
12
|
-
import { TropicalHelper as ct, LngLatHelper as
|
|
12
|
+
import { TropicalHelper as ct, LngLatHelper as le, LaneHelper as je } from "@idm-plugin/geo";
|
|
13
13
|
import { TidesAssist as $e, Meteo2Assist as Ke } from "@idm-plugin/meteo";
|
|
14
|
-
const
|
|
14
|
+
const Y = (a, e) => {
|
|
15
15
|
const t = a.__vccOpts || a;
|
|
16
16
|
for (const [r, i] of e)
|
|
17
17
|
t[r] = i;
|
|
@@ -120,7 +120,7 @@ const U = (a, e) => {
|
|
|
120
120
|
return function(a) {
|
|
121
121
|
var e;
|
|
122
122
|
if (a) {
|
|
123
|
-
const t =
|
|
123
|
+
const t = ae(a);
|
|
124
124
|
return `${(e = t == null ? void 0 : t.utc()) == null ? void 0 : e.format("MMM-DD/HHmm")}Z`;
|
|
125
125
|
}
|
|
126
126
|
return "-";
|
|
@@ -178,7 +178,7 @@ const U = (a, e) => {
|
|
|
178
178
|
async fetchMeteoSource() {
|
|
179
179
|
var e;
|
|
180
180
|
this.sourceList = [];
|
|
181
|
-
let a = await
|
|
181
|
+
let a = await He.get(`${this.gateway}/api/arc/meteo2/models`, {
|
|
182
182
|
headers: {
|
|
183
183
|
Authorization: this.token
|
|
184
184
|
}
|
|
@@ -302,10 +302,10 @@ const U = (a, e) => {
|
|
|
302
302
|
};
|
|
303
303
|
function aa(a, e, t, r, i, s) {
|
|
304
304
|
const n = R("ElTooltip"), l = R("ElRadio"), c = R("ElRadioGroup"), d = R("ElScrollbar");
|
|
305
|
-
return
|
|
305
|
+
return g(), y("div", vt, [
|
|
306
306
|
o("div", {
|
|
307
307
|
class: "menu-bar-box",
|
|
308
|
-
style:
|
|
308
|
+
style: ge({ top: t.top + 10 + "px", right: i.right + "px" })
|
|
309
309
|
}, [
|
|
310
310
|
o("div", bt, [
|
|
311
311
|
F(n, {
|
|
@@ -314,9 +314,9 @@ function aa(a, e, t, r, i, s) {
|
|
|
314
314
|
content: "Menu",
|
|
315
315
|
"show-after": 1e3
|
|
316
316
|
}, {
|
|
317
|
-
default:
|
|
317
|
+
default: Pe(() => [
|
|
318
318
|
o("div", {
|
|
319
|
-
class:
|
|
319
|
+
class: ee(t.layerToggle ? "menu-icon active" : "menu-icon"),
|
|
320
320
|
onClick: e[0] || (e[0] = (...h) => s.handleMenuToggle && s.handleMenuToggle(...h))
|
|
321
321
|
}, e[17] || (e[17] = [
|
|
322
322
|
o("span", { class: "iconfont" }, "", -1)
|
|
@@ -328,7 +328,7 @@ function aa(a, e, t, r, i, s) {
|
|
|
328
328
|
], 4),
|
|
329
329
|
o("div", {
|
|
330
330
|
class: "menu-bar-box",
|
|
331
|
-
style:
|
|
331
|
+
style: ge({ top: t.top + 160 + "px", right: i.right + "px" })
|
|
332
332
|
}, [
|
|
333
333
|
o("div", Lt, [
|
|
334
334
|
F(n, {
|
|
@@ -337,9 +337,9 @@ function aa(a, e, t, r, i, s) {
|
|
|
337
337
|
content: "Measure",
|
|
338
338
|
"show-after": 1e3
|
|
339
339
|
}, {
|
|
340
|
-
default:
|
|
340
|
+
default: Pe(() => [
|
|
341
341
|
o("div", {
|
|
342
|
-
class:
|
|
342
|
+
class: ee(i.showMeasure ? "menu-icon active" : "menu-icon"),
|
|
343
343
|
onClick: e[1] || (e[1] = (...h) => s.handleMeasureToggle && s.handleMeasureToggle(...h))
|
|
344
344
|
}, e[18] || (e[18] = [
|
|
345
345
|
o("span", { class: "iconfont" }, "", -1)
|
|
@@ -353,9 +353,9 @@ function aa(a, e, t, r, i, s) {
|
|
|
353
353
|
content: "Point Meteo",
|
|
354
354
|
"show-after": 1e3
|
|
355
355
|
}, {
|
|
356
|
-
default:
|
|
356
|
+
default: Pe(() => [
|
|
357
357
|
o("div", {
|
|
358
|
-
class:
|
|
358
|
+
class: ee(i.showPoint ? "menu-icon active" : "menu-icon"),
|
|
359
359
|
onClick: e[2] || (e[2] = (...h) => s.handlePointToggle && s.handlePointToggle(...h))
|
|
360
360
|
}, e[19] || (e[19] = [
|
|
361
361
|
o("span", { class: "iconfont" }, "", -1)
|
|
@@ -369,9 +369,9 @@ function aa(a, e, t, r, i, s) {
|
|
|
369
369
|
content: "Grid",
|
|
370
370
|
"show-after": 1e3
|
|
371
371
|
}, {
|
|
372
|
-
default:
|
|
372
|
+
default: Pe(() => [
|
|
373
373
|
o("div", {
|
|
374
|
-
class:
|
|
374
|
+
class: ee(i.showCoord ? "menu-icon active" : "menu-icon"),
|
|
375
375
|
onClick: e[3] || (e[3] = (...h) => s.handleCoordToggle && s.handleCoordToggle(...h))
|
|
376
376
|
}, e[20] || (e[20] = [
|
|
377
377
|
o("span", { class: "iconfont" }, "", -1)
|
|
@@ -385,9 +385,9 @@ function aa(a, e, t, r, i, s) {
|
|
|
385
385
|
content: "3D",
|
|
386
386
|
"show-after": 1e3
|
|
387
387
|
}, {
|
|
388
|
-
default:
|
|
388
|
+
default: Pe(() => [
|
|
389
389
|
o("div", {
|
|
390
|
-
class:
|
|
390
|
+
class: ee(i.show3d ? "menu-icon active" : "menu-icon"),
|
|
391
391
|
onClick: e[4] || (e[4] = (...h) => s.handle3DToggle && s.handle3DToggle(...h))
|
|
392
392
|
}, e[21] || (e[21] = [
|
|
393
393
|
o("span", { class: "iconfont" }, "", -1)
|
|
@@ -397,10 +397,10 @@ function aa(a, e, t, r, i, s) {
|
|
|
397
397
|
})
|
|
398
398
|
])
|
|
399
399
|
], 4),
|
|
400
|
-
s.hasCollectedLayers ? (
|
|
400
|
+
s.hasCollectedLayers ? (g(), y("div", {
|
|
401
401
|
key: 0,
|
|
402
402
|
class: "active-layers",
|
|
403
|
-
style:
|
|
403
|
+
style: ge({ right: i.right + "px", bottom: "100px" })
|
|
404
404
|
}, [
|
|
405
405
|
o("div", Ct, [
|
|
406
406
|
e[22] || (e[22] = o("div", { style: { margin: "2px 5px" } }, "Weather Layers", -1)),
|
|
@@ -409,12 +409,12 @@ function aa(a, e, t, r, i, s) {
|
|
|
409
409
|
style: { "font-size": "28px", "margin-right": "0" },
|
|
410
410
|
onClick: e[5] || (e[5] = (...h) => s.toggleAutoActive && s.toggleAutoActive(...h))
|
|
411
411
|
}, [
|
|
412
|
-
i.autoActive ? (
|
|
412
|
+
i.autoActive ? (g(), y("i", xt, "")) : (g(), y("i", _t, ""))
|
|
413
413
|
])
|
|
414
414
|
]),
|
|
415
|
-
(
|
|
415
|
+
(g(!0), y($, null, te(i.layers.weather.filter((h) => h.collected), (h) => (g(), y("div", {
|
|
416
416
|
key: h.key,
|
|
417
|
-
class:
|
|
417
|
+
class: ee(s.computeLayerClass(h, i.activeWeatherLayersCollected))
|
|
418
418
|
}, [
|
|
419
419
|
o("div", {
|
|
420
420
|
class: "checkbox",
|
|
@@ -424,34 +424,34 @@ function aa(a, e, t, r, i, s) {
|
|
|
424
424
|
class: "name",
|
|
425
425
|
onClick: (p) => s.handleWeatherLayerPick(h)
|
|
426
426
|
}, k(h.name), 9, It),
|
|
427
|
-
h.key === "wind" && i.activeWeatherLayersCollected.some((p) => p.key === h.key) ? (
|
|
427
|
+
h.key === "wind" && i.activeWeatherLayersCollected.some((p) => p.key === h.key) ? (g(), y("div", Et, [
|
|
428
428
|
o("i", {
|
|
429
|
-
class:
|
|
429
|
+
class: ee(["iconfont sub-layer-icon", i.showWindParticleCollected ? "active" : ""]),
|
|
430
430
|
onClick: e[6] || (e[6] = (p) => s.handleToggleWindParticle())
|
|
431
431
|
}, "", 2),
|
|
432
432
|
o("i", {
|
|
433
|
-
class:
|
|
433
|
+
class: ee(["iconfont sub-layer-icon", i.showWindFeatherCollected ? "active" : ""]),
|
|
434
434
|
onClick: e[7] || (e[7] = (p) => s.handleToggleWindFeather())
|
|
435
435
|
}, "", 2)
|
|
436
|
-
])) :
|
|
437
|
-
h.key === "current" && i.activeWeatherLayersCollected.some((p) => p.key === h.key) ? (
|
|
436
|
+
])) : q("", !0),
|
|
437
|
+
h.key === "current" && i.activeWeatherLayersCollected.some((p) => p.key === h.key) ? (g(), y("div", kt, [
|
|
438
438
|
o("i", {
|
|
439
|
-
class:
|
|
439
|
+
class: ee(["iconfont sub-layer-icon", i.showCurrentParticleCollected ? "active" : ""]),
|
|
440
440
|
onClick: e[8] || (e[8] = (p) => s.handleToggleCurrentParticle())
|
|
441
441
|
}, "", 2),
|
|
442
442
|
o("i", {
|
|
443
|
-
class:
|
|
443
|
+
class: ee(["iconfont sub-layer-icon", i.showCurrentIsobandCollected ? "active" : ""]),
|
|
444
444
|
onClick: e[9] || (e[9] = (p) => s.handleToggleCurrentIsoband())
|
|
445
445
|
}, "", 2)
|
|
446
|
-
])) :
|
|
446
|
+
])) : q("", !0)
|
|
447
447
|
], 2))), 128))
|
|
448
|
-
], 4)) :
|
|
448
|
+
], 4)) : q("", !0),
|
|
449
449
|
o("div", {
|
|
450
450
|
class: "available-layers flex-center",
|
|
451
|
-
style:
|
|
451
|
+
style: ge({ top: t.top + "px", right: t.layerToggle ? "0px" : "-240px" })
|
|
452
452
|
}, [
|
|
453
453
|
o("div", {
|
|
454
|
-
class:
|
|
454
|
+
class: ee(["list-box", t.layerToggle ? "right-bar" : ""])
|
|
455
455
|
}, [
|
|
456
456
|
o("div", Dt, [
|
|
457
457
|
e[23] || (e[23] = o("div", null, "Layers", -1)),
|
|
@@ -461,7 +461,7 @@ function aa(a, e, t, r, i, s) {
|
|
|
461
461
|
}, "")
|
|
462
462
|
]),
|
|
463
463
|
F(d, { style: { flex: "1" } }, {
|
|
464
|
-
default:
|
|
464
|
+
default: Pe(() => [
|
|
465
465
|
o("div", zt, [
|
|
466
466
|
o("div", Pt, [
|
|
467
467
|
e[24] || (e[24] = o("div", null, "Weather Layers", -1)),
|
|
@@ -470,16 +470,16 @@ function aa(a, e, t, r, i, s) {
|
|
|
470
470
|
style: { "margin-right": "0" },
|
|
471
471
|
onClick: e[11] || (e[11] = (...h) => s.toggleAutoActive && s.toggleAutoActive(...h))
|
|
472
472
|
}, [
|
|
473
|
-
i.autoActive ? (
|
|
473
|
+
i.autoActive ? (g(), y("i", Mt, "")) : (g(), y("i", St, ""))
|
|
474
474
|
])
|
|
475
475
|
]),
|
|
476
476
|
o("div", Tt, [
|
|
477
|
-
(
|
|
477
|
+
(g(!0), y($, null, te(i.layers.weather, (h) => (g(), y($, {
|
|
478
478
|
key: h.key
|
|
479
479
|
}, [
|
|
480
|
-
h.hide ?
|
|
480
|
+
h.hide ? q("", !0) : (g(), y("div", {
|
|
481
481
|
key: 0,
|
|
482
|
-
class:
|
|
482
|
+
class: ee(s.computeLayerClass(h, i.activeWeatherLayersCollected))
|
|
483
483
|
}, [
|
|
484
484
|
o("div", Qt, [
|
|
485
485
|
o("div", {
|
|
@@ -490,31 +490,31 @@ function aa(a, e, t, r, i, s) {
|
|
|
490
490
|
class: "name",
|
|
491
491
|
onClick: (p) => s.handleWeatherLayerPick(h)
|
|
492
492
|
}, k(h.name), 9, Nt),
|
|
493
|
-
h.key === "wind" && i.activeWeatherLayersCollected.some((p) => p.key === h.key) ? (
|
|
493
|
+
h.key === "wind" && i.activeWeatherLayersCollected.some((p) => p.key === h.key) ? (g(), y("div", Ft, [
|
|
494
494
|
o("i", {
|
|
495
|
-
class:
|
|
495
|
+
class: ee(["iconfont sub-layer-icon", i.showWindParticleCollected ? "active" : ""]),
|
|
496
496
|
onClick: e[12] || (e[12] = (p) => s.handleToggleWindParticle())
|
|
497
497
|
}, "", 2),
|
|
498
498
|
o("i", {
|
|
499
|
-
class:
|
|
499
|
+
class: ee(["iconfont sub-layer-icon", i.showWindFeatherCollected ? "active" : ""]),
|
|
500
500
|
onClick: e[13] || (e[13] = (p) => s.handleToggleWindFeather())
|
|
501
501
|
}, "", 2)
|
|
502
|
-
])) :
|
|
503
|
-
h.key === "current" && i.activeWeatherLayersCollected.some((p) => p.key === h.key) ? (
|
|
502
|
+
])) : q("", !0),
|
|
503
|
+
h.key === "current" && i.activeWeatherLayersCollected.some((p) => p.key === h.key) ? (g(), y("div", Ot, [
|
|
504
504
|
o("i", {
|
|
505
|
-
class:
|
|
505
|
+
class: ee(["iconfont sub-layer-icon", i.showCurrentParticleCollected ? "active" : ""]),
|
|
506
506
|
onClick: e[14] || (e[14] = (p) => s.handleToggleCurrentParticle())
|
|
507
507
|
}, "", 2),
|
|
508
508
|
o("i", {
|
|
509
|
-
class:
|
|
509
|
+
class: ee(["iconfont sub-layer-icon", i.showCurrentIsobandCollected ? "active" : ""]),
|
|
510
510
|
onClick: e[15] || (e[15] = (p) => s.handleToggleCurrentIsoband())
|
|
511
511
|
}, "", 2)
|
|
512
|
-
])) :
|
|
512
|
+
])) : q("", !0)
|
|
513
513
|
]),
|
|
514
514
|
o("div", {
|
|
515
515
|
onClick: (p) => s.handleWeatherLayerCollect(h)
|
|
516
516
|
}, [
|
|
517
|
-
h.collected ? (
|
|
517
|
+
h.collected ? (g(), y("i", jt, "")) : (g(), y("i", Wt, ""))
|
|
518
518
|
], 8, Rt)
|
|
519
519
|
], 2))
|
|
520
520
|
], 64))), 128)),
|
|
@@ -530,16 +530,16 @@ function aa(a, e, t, r, i, s) {
|
|
|
530
530
|
o("div", Gt, [
|
|
531
531
|
e[26] || (e[26] = o("div", { class: "layers-title" }, "Other Layers", -1)),
|
|
532
532
|
o("div", Ut, [
|
|
533
|
-
(
|
|
533
|
+
(g(!0), y($, null, te(i.layers.other, (h) => {
|
|
534
534
|
var p;
|
|
535
|
-
return
|
|
535
|
+
return g(), y("div", {
|
|
536
536
|
key: h.key,
|
|
537
|
-
class:
|
|
537
|
+
class: ee(["layer flex-between", s.computeLayerClass(h, i.activeOtherLayers)]),
|
|
538
538
|
onClick: (b) => s.handleOtherLayerPick(h)
|
|
539
539
|
}, [
|
|
540
540
|
o("div", Kt, [
|
|
541
541
|
o("div", Xt, [
|
|
542
|
-
(p = s.computeLayerClass(h, i.activeOtherLayers)) != null && p.includes("active") ? (
|
|
542
|
+
(p = s.computeLayerClass(h, i.activeOtherLayers)) != null && p.includes("active") ? (g(), y("i", Jt, "")) : (g(), y("i", qt, ""))
|
|
543
543
|
]),
|
|
544
544
|
o("span", null, k(h.name), 1)
|
|
545
545
|
])
|
|
@@ -556,17 +556,17 @@ function aa(a, e, t, r, i, s) {
|
|
|
556
556
|
class: "layer-radio flex-col-start-start",
|
|
557
557
|
style: { width: "180px", "align-items": "flex-start" }
|
|
558
558
|
}, {
|
|
559
|
-
default:
|
|
560
|
-
(
|
|
559
|
+
default: Pe(() => [
|
|
560
|
+
(g(!0), y($, null, te(i.sourceList, (h, p) => (g(), gt(l, {
|
|
561
561
|
key: `source${h.name}`,
|
|
562
562
|
value: h.name
|
|
563
563
|
}, {
|
|
564
|
-
default:
|
|
565
|
-
var b, x, E,
|
|
564
|
+
default: Pe(() => {
|
|
565
|
+
var b, x, E, f, I, _;
|
|
566
566
|
return [
|
|
567
|
-
|
|
568
|
-
p !== 0 ? (
|
|
569
|
-
p === 0 ? (
|
|
567
|
+
ue(k(h.name) + " ", 1),
|
|
568
|
+
p !== 0 ? (g(), y("span", $t, k(h.resolution) + "km " + k(h.length) + "days", 1)) : q("", !0),
|
|
569
|
+
p === 0 ? (g(), y("div", ea, "Provides the best forecast")) : (E = (x = (b = h == null ? void 0 : h.update) == null ? void 0 : b.default) == null ? void 0 : x.meta) != null && E.initialisationTime ? (g(), y("div", ta, "Update: " + k(s.computeDateZ((_ = (I = (f = h == null ? void 0 : h.update) == null ? void 0 : f.default) == null ? void 0 : I.meta) == null ? void 0 : _.initialisationTime)), 1)) : q("", !0)
|
|
570
570
|
];
|
|
571
571
|
}),
|
|
572
572
|
_: 2
|
|
@@ -583,7 +583,7 @@ function aa(a, e, t, r, i, s) {
|
|
|
583
583
|
], 4)
|
|
584
584
|
]);
|
|
585
585
|
}
|
|
586
|
-
const ia = /* @__PURE__ */
|
|
586
|
+
const ia = /* @__PURE__ */ Y(wt, [["render", aa]]);
|
|
587
587
|
const ra = {
|
|
588
588
|
name: "IdmWindBarb",
|
|
589
589
|
props: {
|
|
@@ -622,7 +622,7 @@ const ra = {
|
|
|
622
622
|
return {
|
|
623
623
|
source: "wind-barb-source",
|
|
624
624
|
barbs: [0, 2, 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60, 65, 70, 75, 80, 85, 90, 95, 100, 105],
|
|
625
|
-
empty:
|
|
625
|
+
empty: Q.featureCollection([]),
|
|
626
626
|
right: 10,
|
|
627
627
|
bottom: 125,
|
|
628
628
|
windBarbLoaded: !1
|
|
@@ -729,18 +729,18 @@ const ra = {
|
|
|
729
729
|
function sa(a, e, t, r, i, s) {
|
|
730
730
|
return null;
|
|
731
731
|
}
|
|
732
|
-
const oa = /* @__PURE__ */
|
|
732
|
+
const oa = /* @__PURE__ */ Y(ra, [["render", sa]]);
|
|
733
733
|
class et {
|
|
734
734
|
constructor(e) {
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
735
|
+
se(this, "map");
|
|
736
|
+
se(this, "mercator");
|
|
737
|
+
se(this, "rampColorLayer");
|
|
738
|
+
se(this, "rampColorSource");
|
|
739
|
+
se(this, "particleLayer");
|
|
740
|
+
se(this, "particleSource");
|
|
741
|
+
se(this, "rampColorCanvas");
|
|
742
|
+
se(this, "particleCanvas");
|
|
743
|
+
se(this, "ratio");
|
|
744
744
|
this.map = e, this.mercator = new At(), this.rampColorLayer = "ramp-color-layer", this.rampColorSource = "ramp-color-source", this.particleLayer = "particle-layer", this.particleSource = "particle-source", this.rampColorCanvas = document.createElement("canvas"), this.particleCanvas = document.createElement("canvas"), this.ratio = window.devicePixelRatio;
|
|
745
745
|
}
|
|
746
746
|
/**
|
|
@@ -959,8 +959,8 @@ class We {
|
|
|
959
959
|
h.resolution && t.uniform2f(h.resolution, t.canvas.width * e.ratio, t.canvas.height * e.ratio), t.activeTexture(t.TEXTURE0), t.bindTexture(t.TEXTURE_2D, i), h.image && t.uniform1i(h.image, 0), t.activeTexture(t.TEXTURE1), t.bindTexture(t.TEXTURE_2D, s), h.color && t.uniform1i(h.color, 1), l != null && l.uvRange && (l != null && l.sRange) && (h.uvRange && t.uniform2f(h.uvRange, l.uvRange[0], l.uvRange[1]), h.sRange && t.uniform2f(h.sRange, l.sRange[0], l.sRange[1])), h.scale && t.uniform1f(h.scale, (l == null ? void 0 : l.scale) || 1);
|
|
960
960
|
const p = e.getBoundPixel(), b = e.map.getZoom() + 1, x = e.getWorldCopy(p, b);
|
|
961
961
|
for (const E of x) {
|
|
962
|
-
const
|
|
963
|
-
t.bindBuffer(t.ARRAY_BUFFER, n), t.bufferData(t.ARRAY_BUFFER,
|
|
962
|
+
const f = (E[0] - p[0]) * e.ratio, I = (E[1] - p[3]) * e.ratio, _ = E[2] * e.ratio, [A, w, m, L] = [f, _ + f, I, _ + I], u = new Float32Array([A, m, w, m, A, L, A, L, w, m, w, L]);
|
|
963
|
+
t.bindBuffer(t.ARRAY_BUFFER, n), t.bufferData(t.ARRAY_BUFFER, u, t.STATIC_DRAW), t.drawArrays(t.TRIANGLES, 0, 6);
|
|
964
964
|
}
|
|
965
965
|
} catch (h) {
|
|
966
966
|
console.log(`render failed...${h}`);
|
|
@@ -1008,10 +1008,10 @@ class We {
|
|
|
1008
1008
|
});
|
|
1009
1009
|
}
|
|
1010
1010
|
}
|
|
1011
|
-
class
|
|
1011
|
+
class he {
|
|
1012
1012
|
}
|
|
1013
1013
|
// 顶点渲染
|
|
1014
|
-
|
|
1014
|
+
se(he, "vertexSchema", `
|
|
1015
1015
|
//canvas 坐标系上的坐标 (x, y)
|
|
1016
1016
|
attribute vec2 a_position; //像素坐标
|
|
1017
1017
|
attribute vec2 a_texCoord; //纹理坐标
|
|
@@ -1026,7 +1026,7 @@ ie(le, "vertexSchema", `
|
|
|
1026
1026
|
gl_Position = vec4(position * vec2(1, -1), 0.0, 1.0);
|
|
1027
1027
|
v_texCoord = a_texCoord;
|
|
1028
1028
|
}`), // 类如风、流等u v双变量片元渲染
|
|
1029
|
-
|
|
1029
|
+
se(he, "uvFragmentSchema", `
|
|
1030
1030
|
precision mediump float;
|
|
1031
1031
|
uniform sampler2D u_image;
|
|
1032
1032
|
uniform vec2 u_range_u_v;
|
|
@@ -1046,7 +1046,7 @@ ie(le, "uvFragmentSchema", `
|
|
|
1046
1046
|
|
|
1047
1047
|
gl_FragColor = color;
|
|
1048
1048
|
}`), // 类如浪、气压等单变量片元渲染
|
|
1049
|
-
|
|
1049
|
+
se(he, "fragmentSchema", `
|
|
1050
1050
|
precision mediump float;
|
|
1051
1051
|
uniform sampler2D u_image; // 灰度
|
|
1052
1052
|
uniform sampler2D u_color; // 色值映射
|
|
@@ -1057,9 +1057,9 @@ ie(le, "fragmentSchema", `
|
|
|
1057
1057
|
vec4 color = texture2D(u_color, vec2(rgba.r, 0));
|
|
1058
1058
|
gl_FragColor = color;
|
|
1059
1059
|
}`);
|
|
1060
|
-
class
|
|
1060
|
+
class Ee {
|
|
1061
1061
|
}
|
|
1062
|
-
|
|
1062
|
+
se(Ee, "vertexSchema", `
|
|
1063
1063
|
precision mediump float;
|
|
1064
1064
|
|
|
1065
1065
|
attribute float a_index; // 索引
|
|
@@ -1083,7 +1083,7 @@ ie(Ce, "vertexSchema", `
|
|
|
1083
1083
|
gl_PointSize = 1.0;
|
|
1084
1084
|
// gl_PointSize = u_point;
|
|
1085
1085
|
gl_Position = vec4(2.0 * v_particle_pos.x - 1.0, 1.0 - 2.0 * v_particle_pos.y, 0, 1);
|
|
1086
|
-
}`),
|
|
1086
|
+
}`), se(Ee, "fragmentSchema", `
|
|
1087
1087
|
precision mediump float;
|
|
1088
1088
|
|
|
1089
1089
|
uniform sampler2D u_factor;
|
|
@@ -1105,7 +1105,7 @@ ie(Ce, "vertexSchema", `
|
|
|
1105
1105
|
|
|
1106
1106
|
float f = 1.0 - uv.b;
|
|
1107
1107
|
gl_FragColor = texture2D(u_color_ramp, ramp_pos) * f;
|
|
1108
|
-
}`),
|
|
1108
|
+
}`), se(Ee, "quadVertSchema", `
|
|
1109
1109
|
precision mediump float;
|
|
1110
1110
|
|
|
1111
1111
|
attribute vec2 a_pos;
|
|
@@ -1115,7 +1115,7 @@ ie(Ce, "vertexSchema", `
|
|
|
1115
1115
|
void main() {
|
|
1116
1116
|
v_tex_pos = a_pos;
|
|
1117
1117
|
gl_Position = vec4(1.0 - 2.0 * a_pos, 0, 1);
|
|
1118
|
-
}`),
|
|
1118
|
+
}`), se(Ee, "screenFragmentSchema", `
|
|
1119
1119
|
precision mediump float;
|
|
1120
1120
|
|
|
1121
1121
|
uniform sampler2D u_screen;
|
|
@@ -1127,7 +1127,7 @@ ie(Ce, "vertexSchema", `
|
|
|
1127
1127
|
vec4 color = texture2D(u_screen, 1.0 - v_tex_pos);
|
|
1128
1128
|
// a hack to guarantee opacity fade out even with a value close to 1.0
|
|
1129
1129
|
gl_FragColor = vec4(floor(255.0 * color * u_opacity) / 255.0);
|
|
1130
|
-
}`),
|
|
1130
|
+
}`), se(Ee, "updateFragmentSchema", `
|
|
1131
1131
|
precision mediump float;
|
|
1132
1132
|
|
|
1133
1133
|
uniform sampler2D u_particles;
|
|
@@ -1208,12 +1208,12 @@ ie(Ce, "vertexSchema", `
|
|
|
1208
1208
|
}`);
|
|
1209
1209
|
class na {
|
|
1210
1210
|
constructor(e = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImNseTVudHJzYzAwNWUwbHBsZHkyaDRqczMiLCJyb2xlIjoxLCJuYW1lIjoiZmFrZUBvcm13eC5jb20iLCJwbGF0SWQiOiJnZDBtdDFkIiwiY29tcGFueSI6eyJpZCI6bnVsbCwiY2hpbGRyZW4iOltdfSwiaWF0IjoxNzIzMDI0MDI0LCJleHAiOjM5MzA1NDQwMjR9.RrKcdcMnq-FxBLJQ-i6lx2FscDE46y8EvHIemPW4HTg") {
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1211
|
+
se(this, "token");
|
|
1212
|
+
se(this, "mapboxCustomer");
|
|
1213
|
+
se(this, "i4");
|
|
1214
|
+
se(this, "hi");
|
|
1215
|
+
se(this, "td");
|
|
1216
|
+
se(this, "windy");
|
|
1217
1217
|
this.token = e, this.mapboxCustomer = {
|
|
1218
1218
|
source: this.initialOnlineStyle().sources.composite,
|
|
1219
1219
|
layers: {
|
|
@@ -3210,7 +3210,7 @@ const la = {
|
|
|
3210
3210
|
[1, "rgb(91, 136, 161)"]
|
|
3211
3211
|
];
|
|
3212
3212
|
this.rampColor = this.webgl.setup(this.context, a);
|
|
3213
|
-
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context,
|
|
3213
|
+
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, he.vertexSchema, he.uvFragmentSchema);
|
|
3214
3214
|
this.program = e, this.aPositionBuffer = t;
|
|
3215
3215
|
}
|
|
3216
3216
|
this.handleParticleSetup();
|
|
@@ -3224,11 +3224,11 @@ const la = {
|
|
|
3224
3224
|
];
|
|
3225
3225
|
this.wrapper = this.webgl.bindParticle(
|
|
3226
3226
|
this.particleContext,
|
|
3227
|
-
|
|
3228
|
-
|
|
3229
|
-
|
|
3230
|
-
|
|
3231
|
-
|
|
3227
|
+
Ee.vertexSchema,
|
|
3228
|
+
Ee.fragmentSchema,
|
|
3229
|
+
Ee.quadVertSchema,
|
|
3230
|
+
Ee.screenFragmentSchema,
|
|
3231
|
+
Ee.updateFragmentSchema
|
|
3232
3232
|
), this.wrapper.color = this.webgl.setup(this.particleContext, a, !0, 16, 16), this.wrapper = { ...this.wrapper, ...this.webgl.setupParticle(this.particleContext, 9e3), ...this.webgl.resize(this.viewport, this.particleContext) }, this.viewport.map.on("resize", this.handleResize), this.viewport.map.on("movestart", this.handlePause), this.viewport.map.on("moveend", this.handlePlay);
|
|
3233
3233
|
}
|
|
3234
3234
|
},
|
|
@@ -3261,10 +3261,10 @@ const la = {
|
|
|
3261
3261
|
}, ha = { key: 0 };
|
|
3262
3262
|
function ca(a, e, t, r, i, s) {
|
|
3263
3263
|
var n;
|
|
3264
|
-
return (n = t.factor) != null && n.active ? (
|
|
3264
|
+
return (n = t.factor) != null && n.active ? (g(), y("div", ha, [
|
|
3265
3265
|
o("div", {
|
|
3266
3266
|
class: "legend-bars flex-center",
|
|
3267
|
-
style:
|
|
3267
|
+
style: ge([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
|
|
3268
3268
|
}, e[0] || (e[0] = [
|
|
3269
3269
|
o("span", null, "kts", -1),
|
|
3270
3270
|
o("span", null, "0", -1),
|
|
@@ -3275,9 +3275,9 @@ function ca(a, e, t, r, i, s) {
|
|
|
3275
3275
|
o("span", null, "40", -1),
|
|
3276
3276
|
o("span", null, "60", -1)
|
|
3277
3277
|
]), 4)
|
|
3278
|
-
])) :
|
|
3278
|
+
])) : q("", !0);
|
|
3279
3279
|
}
|
|
3280
|
-
const da = /* @__PURE__ */
|
|
3280
|
+
const da = /* @__PURE__ */ Y(la, [["render", ca], ["__scopeId", "data-v-e5910f11"]]);
|
|
3281
3281
|
const pa = {
|
|
3282
3282
|
name: "IdmCurrent",
|
|
3283
3283
|
props: {
|
|
@@ -3319,7 +3319,7 @@ const pa = {
|
|
|
3319
3319
|
directionLayer: "current-direction-layer",
|
|
3320
3320
|
speedLayer: "current-speed-layer",
|
|
3321
3321
|
speedLabelLayer: "current-speed-label-layer",
|
|
3322
|
-
empty:
|
|
3322
|
+
empty: Q.featureCollection([]),
|
|
3323
3323
|
right: 10,
|
|
3324
3324
|
bottom: 95
|
|
3325
3325
|
};
|
|
@@ -3431,7 +3431,7 @@ const pa = {
|
|
|
3431
3431
|
function ma(a, e, t, r, i, s) {
|
|
3432
3432
|
return null;
|
|
3433
3433
|
}
|
|
3434
|
-
const ua = /* @__PURE__ */
|
|
3434
|
+
const ua = /* @__PURE__ */ Y(pa, [["render", ma]]);
|
|
3435
3435
|
const ga = {
|
|
3436
3436
|
name: "IdmCurrentParticle",
|
|
3437
3437
|
props: {
|
|
@@ -3538,7 +3538,7 @@ const ga = {
|
|
|
3538
3538
|
[1, "rgb(195,194,194)"]
|
|
3539
3539
|
];
|
|
3540
3540
|
this.rampColor = this.webgl.setup(this.context, a);
|
|
3541
|
-
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context,
|
|
3541
|
+
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, he.vertexSchema, he.uvFragmentSchema);
|
|
3542
3542
|
this.program = e, this.aPositionBuffer = t;
|
|
3543
3543
|
}
|
|
3544
3544
|
this.handleParticleSetup();
|
|
@@ -3553,11 +3553,11 @@ const ga = {
|
|
|
3553
3553
|
];
|
|
3554
3554
|
this.wrapper = this.webgl.bindParticle(
|
|
3555
3555
|
this.particleContext,
|
|
3556
|
-
|
|
3557
|
-
|
|
3558
|
-
|
|
3559
|
-
|
|
3560
|
-
|
|
3556
|
+
Ee.vertexSchema,
|
|
3557
|
+
Ee.fragmentSchema,
|
|
3558
|
+
Ee.quadVertSchema,
|
|
3559
|
+
Ee.screenFragmentSchema,
|
|
3560
|
+
Ee.updateFragmentSchema
|
|
3561
3561
|
), this.wrapper.color = this.webgl.setup(this.particleContext, a, !0, 16, 16), this.wrapper = {
|
|
3562
3562
|
...this.wrapper,
|
|
3563
3563
|
...this.webgl.setupParticle(this.particleContext, 9e3),
|
|
@@ -3594,10 +3594,10 @@ const ga = {
|
|
|
3594
3594
|
}, ya = { key: 0 };
|
|
3595
3595
|
function fa(a, e, t, r, i, s) {
|
|
3596
3596
|
var n;
|
|
3597
|
-
return (n = t.factor) != null && n.active ? (
|
|
3597
|
+
return (n = t.factor) != null && n.active ? (g(), y("div", ya, [
|
|
3598
3598
|
o("div", {
|
|
3599
3599
|
class: "legend-bars flex-center",
|
|
3600
|
-
style:
|
|
3600
|
+
style: ge([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
|
|
3601
3601
|
}, e[0] || (e[0] = [
|
|
3602
3602
|
o("span", null, "kts", -1),
|
|
3603
3603
|
o("span", null, "0", -1),
|
|
@@ -3607,9 +3607,9 @@ function fa(a, e, t, r, i, s) {
|
|
|
3607
3607
|
o("span", null, "2", -1),
|
|
3608
3608
|
o("span", null, "3.2", -1)
|
|
3609
3609
|
]), 4)
|
|
3610
|
-
])) :
|
|
3610
|
+
])) : q("", !0);
|
|
3611
3611
|
}
|
|
3612
|
-
const Aa = /* @__PURE__ */
|
|
3612
|
+
const Aa = /* @__PURE__ */ Y(ga, [["render", fa], ["__scopeId", "data-v-c2962e63"]]), wa = {
|
|
3613
3613
|
name: "IdmSigWave",
|
|
3614
3614
|
props: {
|
|
3615
3615
|
map: {
|
|
@@ -3630,7 +3630,7 @@ const Aa = /* @__PURE__ */ U(ga, [["render", fa], ["__scopeId", "data-v-c2962e63
|
|
|
3630
3630
|
source: "sig-wave-source",
|
|
3631
3631
|
heightLayer: "sig-wave-height-layer",
|
|
3632
3632
|
heightLabelLayer: "sig-wave-height-label-layer",
|
|
3633
|
-
empty:
|
|
3633
|
+
empty: Q.featureCollection([])
|
|
3634
3634
|
};
|
|
3635
3635
|
},
|
|
3636
3636
|
watch: {
|
|
@@ -3738,9 +3738,9 @@ const Aa = /* @__PURE__ */ U(ga, [["render", fa], ["__scopeId", "data-v-c2962e63
|
|
|
3738
3738
|
}
|
|
3739
3739
|
};
|
|
3740
3740
|
function va(a, e, t, r, i, s) {
|
|
3741
|
-
return
|
|
3741
|
+
return g(), y("div");
|
|
3742
3742
|
}
|
|
3743
|
-
const ba = /* @__PURE__ */
|
|
3743
|
+
const ba = /* @__PURE__ */ Y(wa, [["render", va]]), La = {
|
|
3744
3744
|
name: "IdmSwell",
|
|
3745
3745
|
props: {
|
|
3746
3746
|
map: {
|
|
@@ -3762,7 +3762,7 @@ const ba = /* @__PURE__ */ U(wa, [["render", va]]), La = {
|
|
|
3762
3762
|
directionLayer: "swell-direction-layer",
|
|
3763
3763
|
heightLayer: "swell-height-layer",
|
|
3764
3764
|
heightLabelLayer: "swell-height-label-layer",
|
|
3765
|
-
empty:
|
|
3765
|
+
empty: Q.featureCollection([])
|
|
3766
3766
|
};
|
|
3767
3767
|
},
|
|
3768
3768
|
watch: {
|
|
@@ -3896,9 +3896,9 @@ const ba = /* @__PURE__ */ U(wa, [["render", va]]), La = {
|
|
|
3896
3896
|
}
|
|
3897
3897
|
};
|
|
3898
3898
|
function Ca(a, e, t, r, i, s) {
|
|
3899
|
-
return
|
|
3899
|
+
return g(), y("div");
|
|
3900
3900
|
}
|
|
3901
|
-
const xa = /* @__PURE__ */
|
|
3901
|
+
const xa = /* @__PURE__ */ Y(La, [["render", Ca]]), _a = {
|
|
3902
3902
|
name: "IdmPrmsl",
|
|
3903
3903
|
props: {
|
|
3904
3904
|
map: {
|
|
@@ -3923,7 +3923,7 @@ const xa = /* @__PURE__ */ U(La, [["render", Ca]]), _a = {
|
|
|
3923
3923
|
layer: "prmsl-layer",
|
|
3924
3924
|
labelLayer: "prmsl-label-layer",
|
|
3925
3925
|
pointLabelLayer: "prmsl-point-label-layer",
|
|
3926
|
-
empty:
|
|
3926
|
+
empty: Q.featureCollection([])
|
|
3927
3927
|
};
|
|
3928
3928
|
},
|
|
3929
3929
|
watch: {
|
|
@@ -4034,9 +4034,9 @@ const xa = /* @__PURE__ */ U(La, [["render", Ca]]), _a = {
|
|
|
4034
4034
|
}
|
|
4035
4035
|
};
|
|
4036
4036
|
function Ba(a, e, t, r, i, s) {
|
|
4037
|
-
return
|
|
4037
|
+
return g(), y("div");
|
|
4038
4038
|
}
|
|
4039
|
-
const Ia = /* @__PURE__ */
|
|
4039
|
+
const Ia = /* @__PURE__ */ Y(_a, [["render", Ba]]);
|
|
4040
4040
|
const Ea = {
|
|
4041
4041
|
name: "IdmIceEdge",
|
|
4042
4042
|
props: {
|
|
@@ -4125,7 +4125,7 @@ const Ea = {
|
|
|
4125
4125
|
// 100%
|
|
4126
4126
|
];
|
|
4127
4127
|
this.rampColor = this.webgl.setup(this.context, a);
|
|
4128
|
-
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context,
|
|
4128
|
+
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, he.vertexSchema, he.fragmentSchema);
|
|
4129
4129
|
this.program = e, this.aPositionBuffer = t;
|
|
4130
4130
|
}
|
|
4131
4131
|
},
|
|
@@ -4141,10 +4141,10 @@ const Ea = {
|
|
|
4141
4141
|
}, ka = { key: 0 };
|
|
4142
4142
|
function Da(a, e, t, r, i, s) {
|
|
4143
4143
|
var n;
|
|
4144
|
-
return (n = t.factor) != null && n.active ? (
|
|
4144
|
+
return (n = t.factor) != null && n.active ? (g(), y("div", ka, [
|
|
4145
4145
|
o("div", {
|
|
4146
4146
|
class: "legend-bars flex-center",
|
|
4147
|
-
style:
|
|
4147
|
+
style: ge([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
|
|
4148
4148
|
}, e[0] || (e[0] = [
|
|
4149
4149
|
o("span", null, null, -1),
|
|
4150
4150
|
o("span", { style: { display: "inline-block", position: "relative", left: "-10px" } }, "%", -1),
|
|
@@ -4159,9 +4159,9 @@ function Da(a, e, t, r, i, s) {
|
|
|
4159
4159
|
o("span", null, "90", -1),
|
|
4160
4160
|
o("span", null, null, -1)
|
|
4161
4161
|
]), 4)
|
|
4162
|
-
])) :
|
|
4162
|
+
])) : q("", !0);
|
|
4163
4163
|
}
|
|
4164
|
-
const za = /* @__PURE__ */
|
|
4164
|
+
const za = /* @__PURE__ */ Y(Ea, [["render", Da], ["__scopeId", "data-v-14ae1a6c"]]);
|
|
4165
4165
|
const Pa = {
|
|
4166
4166
|
name: "IdmCover",
|
|
4167
4167
|
props: {
|
|
@@ -4241,7 +4241,7 @@ const Pa = {
|
|
|
4241
4241
|
// 100%
|
|
4242
4242
|
];
|
|
4243
4243
|
this.rampColor = this.webgl.setup(this.context, a);
|
|
4244
|
-
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context,
|
|
4244
|
+
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, he.vertexSchema, he.fragmentSchema);
|
|
4245
4245
|
this.program = e, this.aPositionBuffer = t;
|
|
4246
4246
|
}
|
|
4247
4247
|
},
|
|
@@ -4257,10 +4257,10 @@ const Pa = {
|
|
|
4257
4257
|
}, Ma = { key: 0 };
|
|
4258
4258
|
function Sa(a, e, t, r, i, s) {
|
|
4259
4259
|
var n;
|
|
4260
|
-
return (n = t.factor) != null && n.active ? (
|
|
4260
|
+
return (n = t.factor) != null && n.active ? (g(), y("div", Ma, [
|
|
4261
4261
|
o("div", {
|
|
4262
4262
|
class: "legend-bars flex-center",
|
|
4263
|
-
style:
|
|
4263
|
+
style: ge([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
|
|
4264
4264
|
}, e[0] || (e[0] = [
|
|
4265
4265
|
o("span", null, "%", -1),
|
|
4266
4266
|
o("span", null, "20", -1),
|
|
@@ -4269,9 +4269,9 @@ function Sa(a, e, t, r, i, s) {
|
|
|
4269
4269
|
o("span", null, "80", -1),
|
|
4270
4270
|
o("span", null, "100", -1)
|
|
4271
4271
|
]), 4)
|
|
4272
|
-
])) :
|
|
4272
|
+
])) : q("", !0);
|
|
4273
4273
|
}
|
|
4274
|
-
const Ta = /* @__PURE__ */
|
|
4274
|
+
const Ta = /* @__PURE__ */ Y(Pa, [["render", Sa], ["__scopeId", "data-v-f21edb81"]]);
|
|
4275
4275
|
const Qa = {
|
|
4276
4276
|
name: "IdmThickness",
|
|
4277
4277
|
props: {
|
|
@@ -4359,7 +4359,7 @@ const Qa = {
|
|
|
4359
4359
|
// 4m
|
|
4360
4360
|
];
|
|
4361
4361
|
this.rampColor = this.webgl.setup(this.context, a);
|
|
4362
|
-
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context,
|
|
4362
|
+
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, he.vertexSchema, he.fragmentSchema);
|
|
4363
4363
|
this.program = e, this.aPositionBuffer = t;
|
|
4364
4364
|
}
|
|
4365
4365
|
},
|
|
@@ -4375,10 +4375,10 @@ const Qa = {
|
|
|
4375
4375
|
}, Ha = { key: 0 };
|
|
4376
4376
|
function Na(a, e, t, r, i, s) {
|
|
4377
4377
|
var n;
|
|
4378
|
-
return (n = t.factor) != null && n.active ? (
|
|
4378
|
+
return (n = t.factor) != null && n.active ? (g(), y("div", Ha, [
|
|
4379
4379
|
o("div", {
|
|
4380
4380
|
class: "legend-bars flex-center",
|
|
4381
|
-
style:
|
|
4381
|
+
style: ge([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
|
|
4382
4382
|
}, e[0] || (e[0] = [
|
|
4383
4383
|
o("span", null, "m", -1),
|
|
4384
4384
|
o("span", null, "0", -1),
|
|
@@ -4388,9 +4388,9 @@ function Na(a, e, t, r, i, s) {
|
|
|
4388
4388
|
o("span", null, "2", -1),
|
|
4389
4389
|
o("span", null, "3", -1)
|
|
4390
4390
|
]), 4)
|
|
4391
|
-
])) :
|
|
4391
|
+
])) : q("", !0);
|
|
4392
4392
|
}
|
|
4393
|
-
const Fa = /* @__PURE__ */
|
|
4393
|
+
const Fa = /* @__PURE__ */ Y(Qa, [["render", Na], ["__scopeId", "data-v-a4c3d2ed"]]), Xe = [
|
|
4394
4394
|
{
|
|
4395
4395
|
rank: 0,
|
|
4396
4396
|
name: "Best Match",
|
|
@@ -4737,91 +4737,91 @@ class ht {
|
|
|
4737
4737
|
}), i;
|
|
4738
4738
|
}
|
|
4739
4739
|
static pickHourly(e, t) {
|
|
4740
|
-
var r, i, s, n, l, c, d, h, p, b, x, E,
|
|
4741
|
-
const
|
|
4742
|
-
if (
|
|
4743
|
-
const
|
|
4744
|
-
let
|
|
4745
|
-
if (
|
|
4746
|
-
let
|
|
4747
|
-
for (const
|
|
4748
|
-
const O =
|
|
4749
|
-
for (let Ne =
|
|
4750
|
-
|
|
4751
|
-
for (let Ne =
|
|
4752
|
-
|
|
4753
|
-
|
|
4754
|
-
temp: (x = O == null ? void 0 : O.temperature_2m) == null ? void 0 : x.at(
|
|
4755
|
-
apparentTemp: (E = O == null ? void 0 : O.apparent_temperature) == null ? void 0 : E.at(
|
|
4756
|
-
rh: (
|
|
4757
|
-
dp: (
|
|
4740
|
+
var r, i, s, n, l, c, d, h, p, b, x, E, f, I, _, A, w, m, L, u, v, z, D, N, H, j, G, W, ce, re, de, we, pe, ve, me, U, V, ye, ne, fe, xe, be, _e, B, ke, Le, De, Be, ze, Ie;
|
|
4741
|
+
const ie = typeof t == "string" ? ae(t) : t, J = e == null ? void 0 : e.weather, P = e == null ? void 0 : e.marine, Ce = ae((i = (r = J == null ? void 0 : J[0]) == null ? void 0 : r.hourly) == null ? void 0 : i.date).utc(), K = Ce.clone().add((l = (n = (s = J == null ? void 0 : J[0]) == null ? void 0 : s.hourly) == null ? void 0 : n.time) == null ? void 0 : l.at(0), "h"), Z = Ce.clone().add((h = (d = (c = J == null ? void 0 : J[0]) == null ? void 0 : c.hourly) == null ? void 0 : d.time) == null ? void 0 : h.at(-1), "h"), Se = [];
|
|
4742
|
+
if (ie.isBetween(K, Z, "millisecond", "[]")) {
|
|
4743
|
+
const S = ie.utc().diff(K, "h", !1);
|
|
4744
|
+
let Ae, Me;
|
|
4745
|
+
if (J) {
|
|
4746
|
+
let Te = 0, Qe = 0;
|
|
4747
|
+
for (const M of J) {
|
|
4748
|
+
const O = M == null ? void 0 : M.hourly;
|
|
4749
|
+
for (let Ne = S - (S - 1) % 3; Ne <= S; Ne++)
|
|
4750
|
+
Te += (p = O == null ? void 0 : O.precipitation) == null ? void 0 : p.at(Ne);
|
|
4751
|
+
for (let Ne = S - (S - 1) % 6; Ne <= S; Ne++)
|
|
4752
|
+
Qe += (b = O == null ? void 0 : O.precipitation) == null ? void 0 : b.at(Ne);
|
|
4753
|
+
Ae = {
|
|
4754
|
+
temp: (x = O == null ? void 0 : O.temperature_2m) == null ? void 0 : x.at(S),
|
|
4755
|
+
apparentTemp: (E = O == null ? void 0 : O.apparent_temperature) == null ? void 0 : E.at(S),
|
|
4756
|
+
rh: (f = O == null ? void 0 : O.relative_humidity_2m) == null ? void 0 : f.at(S),
|
|
4757
|
+
dp: (I = O == null ? void 0 : O.dew_point_2m) == null ? void 0 : I.at(S),
|
|
4758
4758
|
precip: {
|
|
4759
|
-
probability: (_ = O == null ? void 0 : O.precipitation_probability) == null ? void 0 : _.at(
|
|
4760
|
-
sum: (
|
|
4761
|
-
sum3Hours: Math.round(
|
|
4762
|
-
sum6Hours: Math.round(
|
|
4759
|
+
probability: (_ = O == null ? void 0 : O.precipitation_probability) == null ? void 0 : _.at(S),
|
|
4760
|
+
sum: (A = O == null ? void 0 : O.precipitation) == null ? void 0 : A.at(S),
|
|
4761
|
+
sum3Hours: Math.round(Te * 100) / 100,
|
|
4762
|
+
sum6Hours: Math.round(Qe * 100) / 100
|
|
4763
4763
|
},
|
|
4764
|
-
pmsl: (
|
|
4765
|
-
psurf: (m = O == null ? void 0 : O.surface_pressure) == null ? void 0 : m.at(
|
|
4766
|
-
code: (L = O == null ? void 0 : O.weather_code) == null ? void 0 : L.at(
|
|
4767
|
-
visibility: this.m2nm((
|
|
4764
|
+
pmsl: (w = O == null ? void 0 : O.pressure_msl) == null ? void 0 : w.at(S),
|
|
4765
|
+
psurf: (m = O == null ? void 0 : O.surface_pressure) == null ? void 0 : m.at(S),
|
|
4766
|
+
code: (L = O == null ? void 0 : O.weather_code) == null ? void 0 : L.at(S),
|
|
4767
|
+
visibility: this.m2nm((u = O == null ? void 0 : O.visibility) == null ? void 0 : u.at(S)),
|
|
4768
4768
|
wind: {
|
|
4769
|
-
speed: (
|
|
4770
|
-
kts: (
|
|
4771
|
-
degree: (D = O == null ? void 0 : O.wind_direction_10m) == null ? void 0 : D.at(
|
|
4772
|
-
bearing: ((N = O == null ? void 0 : O.wind_direction_10m) == null ? void 0 : N.at(
|
|
4773
|
-
gusts: (j = O == null ? void 0 : O.wind_gusts_10m) == null ? void 0 : j.at(
|
|
4769
|
+
speed: (v = O == null ? void 0 : O.wind_speed_10m) == null ? void 0 : v.at(S),
|
|
4770
|
+
kts: (z = O == null ? void 0 : O.wind_speed_10m) == null ? void 0 : z.at(S),
|
|
4771
|
+
degree: (D = O == null ? void 0 : O.wind_direction_10m) == null ? void 0 : D.at(S),
|
|
4772
|
+
bearing: ((N = O == null ? void 0 : O.wind_direction_10m) == null ? void 0 : N.at(S)) !== null ? (((H = O == null ? void 0 : O.wind_direction_10m) == null ? void 0 : H.at(S)) + 180) % 360 : null,
|
|
4773
|
+
gusts: (j = O == null ? void 0 : O.wind_gusts_10m) == null ? void 0 : j.at(S)
|
|
4774
4774
|
},
|
|
4775
|
-
isDay: (G = O == null ? void 0 : O.is_day) == null ? void 0 : G.at(
|
|
4775
|
+
isDay: (G = O == null ? void 0 : O.is_day) == null ? void 0 : G.at(S)
|
|
4776
4776
|
};
|
|
4777
|
-
const { name: Ge, url: Ue, bg:
|
|
4778
|
-
|
|
4779
|
-
utc: K.add(
|
|
4780
|
-
model:
|
|
4781
|
-
weather: { ...
|
|
4777
|
+
const { name: Ge, url: Ue, bg: oe } = this.parseWeatherCode(Ae.code, Ae.isDay);
|
|
4778
|
+
Ae.name = Ge, Ae.url = Ue, Ae.bg = oe, Ae.wind.scale = this.beaufort(this.kts2ms(Ae.wind.kts)), Ae.wind.direction = this.degree2Direction(Ae.wind.degree), Se.push({
|
|
4779
|
+
utc: K.add(S, "h").format(),
|
|
4780
|
+
model: M.model,
|
|
4781
|
+
weather: { ...Ae }
|
|
4782
4782
|
});
|
|
4783
4783
|
}
|
|
4784
4784
|
}
|
|
4785
|
-
if (
|
|
4786
|
-
let
|
|
4787
|
-
for (const
|
|
4788
|
-
const
|
|
4789
|
-
|
|
4785
|
+
if (P) {
|
|
4786
|
+
let Te = 0;
|
|
4787
|
+
for (const Qe of P) {
|
|
4788
|
+
const M = Qe == null ? void 0 : Qe.hourly;
|
|
4789
|
+
Me = {
|
|
4790
4790
|
wave: {
|
|
4791
4791
|
sig: {
|
|
4792
|
-
height: (W =
|
|
4793
|
-
degree: (
|
|
4794
|
-
bearing: ((
|
|
4795
|
-
period: (
|
|
4792
|
+
height: (W = M == null ? void 0 : M.wave_height) == null ? void 0 : W.at(S),
|
|
4793
|
+
degree: (ce = M == null ? void 0 : M.wave_direction) == null ? void 0 : ce.at(S),
|
|
4794
|
+
bearing: ((re = M == null ? void 0 : M.wave_direction) == null ? void 0 : re.at(S)) !== null ? (((de = M == null ? void 0 : M.wave_direction) == null ? void 0 : de.at(S)) + 180) % 360 : null,
|
|
4795
|
+
period: (we = M == null ? void 0 : M.wave_period) == null ? void 0 : we.at(S)
|
|
4796
4796
|
},
|
|
4797
4797
|
swell: {
|
|
4798
|
-
height: (
|
|
4799
|
-
degree: (ve =
|
|
4800
|
-
bearing: ((
|
|
4801
|
-
period: (
|
|
4802
|
-
peakPeriod: (
|
|
4798
|
+
height: (pe = M == null ? void 0 : M.swell_wave_height) == null ? void 0 : pe.at(S),
|
|
4799
|
+
degree: (ve = M == null ? void 0 : M.swell_wave_direction) == null ? void 0 : ve.at(S),
|
|
4800
|
+
bearing: ((me = M == null ? void 0 : M.swell_wave_direction) == null ? void 0 : me.at(S)) !== null ? (((U = M == null ? void 0 : M.swell_wave_direction) == null ? void 0 : U.at(S)) + 180) % 360 : null,
|
|
4801
|
+
period: (V = M == null ? void 0 : M.swell_wave_period) == null ? void 0 : V.at(S),
|
|
4802
|
+
peakPeriod: (ye = M == null ? void 0 : M.swell_wave_peak_period) == null ? void 0 : ye.at(S)
|
|
4803
4803
|
},
|
|
4804
4804
|
wd: {
|
|
4805
|
-
height: (
|
|
4806
|
-
degree: (
|
|
4807
|
-
bearing: ((xe =
|
|
4808
|
-
period: (_e =
|
|
4809
|
-
peakPeriod: (
|
|
4805
|
+
height: (ne = M == null ? void 0 : M.wind_wave_height) == null ? void 0 : ne.at(S),
|
|
4806
|
+
degree: (fe = M == null ? void 0 : M.wind_wave_direction) == null ? void 0 : fe.at(S),
|
|
4807
|
+
bearing: ((xe = M == null ? void 0 : M.wind_wave_direction) == null ? void 0 : xe.at(S)) !== null ? (((be = M == null ? void 0 : M.wind_wave_direction) == null ? void 0 : be.at(S)) + 180) % 360 : null,
|
|
4808
|
+
period: (_e = M == null ? void 0 : M.wind_wave_period) == null ? void 0 : _e.at(S),
|
|
4809
|
+
peakPeriod: (B = M == null ? void 0 : M.wind_wave_peak_period) == null ? void 0 : B.at(S)
|
|
4810
4810
|
}
|
|
4811
4811
|
},
|
|
4812
4812
|
current: {
|
|
4813
|
-
speed: (
|
|
4814
|
-
kts: (Le =
|
|
4815
|
-
degree: (
|
|
4816
|
-
bearing: ((
|
|
4813
|
+
speed: (ke = M == null ? void 0 : M.ocean_current_velocity) == null ? void 0 : ke.at(S),
|
|
4814
|
+
kts: (Le = M == null ? void 0 : M.ocean_current_velocity) == null ? void 0 : Le.at(S),
|
|
4815
|
+
degree: (De = M == null ? void 0 : M.ocean_current_direction) == null ? void 0 : De.at(S),
|
|
4816
|
+
bearing: ((Be = M == null ? void 0 : M.ocean_current_direction) == null ? void 0 : Be.at(S)) ?? null
|
|
4817
4817
|
},
|
|
4818
|
-
sst: (
|
|
4819
|
-
height: (
|
|
4820
|
-
},
|
|
4818
|
+
sst: (ze = M == null ? void 0 : M.sea_surface_temperature) == null ? void 0 : ze.at(S),
|
|
4819
|
+
height: (Ie = M == null ? void 0 : M.sea_level_height_msl) == null ? void 0 : Ie.at(S)
|
|
4820
|
+
}, Me.wave = this.parseWave(Me.wave, Ae == null ? void 0 : Ae.wind), Me.current.direction = this.degree2Direction(Me.current.degree), Object.assign(Se[Te], Me), Te++;
|
|
4821
4821
|
}
|
|
4822
4822
|
}
|
|
4823
4823
|
}
|
|
4824
|
-
return
|
|
4824
|
+
return Se;
|
|
4825
4825
|
}
|
|
4826
4826
|
static toLegacy(e) {
|
|
4827
4827
|
var t, r, i, s, n, l, c, d, h, p;
|
|
@@ -4846,86 +4846,86 @@ class ht {
|
|
|
4846
4846
|
};
|
|
4847
4847
|
}
|
|
4848
4848
|
static pickDaily(e, t) {
|
|
4849
|
-
var r, i, s, n, l, c, d, h, p, b, x, E,
|
|
4850
|
-
const
|
|
4851
|
-
if (
|
|
4852
|
-
let
|
|
4853
|
-
const
|
|
4849
|
+
var r, i, s, n, l, c, d, h, p, b, x, E, f, I, _, A, w, m, L, u, v, z, D, N, H, j, G, W, ce, re, de, we, pe, ve, me, U, V, ye, ne, fe, xe, be, _e, B;
|
|
4850
|
+
const ke = typeof t == "string" ? ae(t) : t, Le = e == null ? void 0 : e.weather, De = e == null ? void 0 : e.marine, Be = ae((s = (i = (r = Le == null ? void 0 : Le[0]) == null ? void 0 : r.daily) == null ? void 0 : i.time) == null ? void 0 : s.at(0)), ze = ae((c = (l = (n = Le == null ? void 0 : Le[0]) == null ? void 0 : n.daily) == null ? void 0 : l.time) == null ? void 0 : c.at(-1)), Ie = [];
|
|
4851
|
+
if (ke.isBetween(Be, ze, "millisecond", "[]")) {
|
|
4852
|
+
let ie, J;
|
|
4853
|
+
const P = ke.diff(Be, "d", !1);
|
|
4854
4854
|
if (Le)
|
|
4855
|
-
for (const
|
|
4856
|
-
const K =
|
|
4857
|
-
|
|
4858
|
-
code: (d = K.weather_code) == null ? void 0 : d.at(
|
|
4855
|
+
for (const Ce of Le) {
|
|
4856
|
+
const K = Ce.daily;
|
|
4857
|
+
ie = {
|
|
4858
|
+
code: (d = K.weather_code) == null ? void 0 : d.at(P),
|
|
4859
4859
|
temp: {
|
|
4860
|
-
max: (h = K.temperature_2m_max) == null ? void 0 : h.at(
|
|
4861
|
-
min: (p = K.temperature_2m_min) == null ? void 0 : p.at(
|
|
4862
|
-
mean: (b = K.temperature_2m_mean) == null ? void 0 : b.at(
|
|
4860
|
+
max: (h = K.temperature_2m_max) == null ? void 0 : h.at(P),
|
|
4861
|
+
min: (p = K.temperature_2m_min) == null ? void 0 : p.at(P),
|
|
4862
|
+
mean: (b = K.temperature_2m_mean) == null ? void 0 : b.at(P)
|
|
4863
4863
|
},
|
|
4864
4864
|
apparentTemp: {
|
|
4865
|
-
max: (x = K.apparent_temperature_max) == null ? void 0 : x.at(
|
|
4866
|
-
min: (E = K.apparent_temperature_min) == null ? void 0 : E.at(
|
|
4865
|
+
max: (x = K.apparent_temperature_max) == null ? void 0 : x.at(P),
|
|
4866
|
+
min: (E = K.apparent_temperature_min) == null ? void 0 : E.at(P)
|
|
4867
4867
|
},
|
|
4868
4868
|
precip: {
|
|
4869
|
-
sum: (
|
|
4870
|
-
rainSum: (
|
|
4871
|
-
snowfallSum: (_ = K.snowfall_sum) == null ? void 0 : _.at(
|
|
4872
|
-
showersSum: (
|
|
4873
|
-
hours: (
|
|
4874
|
-
probability: (m = K.precipitation_probability_max) == null ? void 0 : m.at(
|
|
4869
|
+
sum: (f = K.precipitation_sum) == null ? void 0 : f.at(P),
|
|
4870
|
+
rainSum: (I = K.rain_sum) == null ? void 0 : I.at(P),
|
|
4871
|
+
snowfallSum: (_ = K.snowfall_sum) == null ? void 0 : _.at(P),
|
|
4872
|
+
showersSum: (A = K.showers_sum) == null ? void 0 : A.at(P),
|
|
4873
|
+
hours: (w = K.precipitation_hours) == null ? void 0 : w.at(P),
|
|
4874
|
+
probability: (m = K.precipitation_probability_max) == null ? void 0 : m.at(P)
|
|
4875
4875
|
},
|
|
4876
4876
|
rh: {
|
|
4877
|
-
max: (L = K.relative_humidity_2m_max) == null ? void 0 : L.at(
|
|
4878
|
-
min: (
|
|
4879
|
-
mean: (
|
|
4877
|
+
max: (L = K.relative_humidity_2m_max) == null ? void 0 : L.at(P),
|
|
4878
|
+
min: (u = K.relative_humidity_2m_min) == null ? void 0 : u.at(P),
|
|
4879
|
+
mean: (v = K.relative_humidity_2m_mean) == null ? void 0 : v.at(P)
|
|
4880
4880
|
},
|
|
4881
4881
|
wind: {
|
|
4882
|
-
speed: (
|
|
4883
|
-
kts: (D = K.wind_speed_10m_max) == null ? void 0 : D.at(
|
|
4884
|
-
degree: (N = K.wind_direction_10m_dominant) == null ? void 0 : N.at(
|
|
4885
|
-
gusts: (
|
|
4886
|
-
bearing: ((j = K.wind_direction_10m_dominant) == null ? void 0 : j.at(
|
|
4882
|
+
speed: (z = K.wind_speed_10m_max) == null ? void 0 : z.at(P),
|
|
4883
|
+
kts: (D = K.wind_speed_10m_max) == null ? void 0 : D.at(P),
|
|
4884
|
+
degree: (N = K.wind_direction_10m_dominant) == null ? void 0 : N.at(P),
|
|
4885
|
+
gusts: (H = K.wind_gusts_10m_max) == null ? void 0 : H.at(P),
|
|
4886
|
+
bearing: ((j = K.wind_direction_10m_dominant) == null ? void 0 : j.at(P)) !== null ? (((G = K.wind_direction_10m_dominant) == null ? void 0 : G.at(P)) + 180) % 360 : null
|
|
4887
4887
|
}
|
|
4888
4888
|
};
|
|
4889
|
-
const { name:
|
|
4890
|
-
|
|
4891
|
-
utc:
|
|
4892
|
-
model:
|
|
4893
|
-
weather: { ...
|
|
4889
|
+
const { name: Z, url: Se, bg: S } = this.parseWeatherCode(ie.code, !0);
|
|
4890
|
+
ie.name = Z, ie.url = Se, ie.bg = S, ie.wind.scale = this.beaufort(this.kts2ms(ie.wind.kts)), ie.wind.direction = this.degree2Direction(ie.wind.degree), Ie.push({
|
|
4891
|
+
utc: Be.add(P, "d").utc().format(),
|
|
4892
|
+
model: Ce.model,
|
|
4893
|
+
weather: { ...ie }
|
|
4894
4894
|
});
|
|
4895
4895
|
}
|
|
4896
|
-
if (
|
|
4897
|
-
let
|
|
4898
|
-
for (const K of
|
|
4899
|
-
const
|
|
4900
|
-
|
|
4896
|
+
if (De) {
|
|
4897
|
+
let Ce = 0;
|
|
4898
|
+
for (const K of De) {
|
|
4899
|
+
const Z = K.daily;
|
|
4900
|
+
J = {
|
|
4901
4901
|
wave: {
|
|
4902
4902
|
sig: {
|
|
4903
|
-
height: (W =
|
|
4904
|
-
degree: (
|
|
4905
|
-
period: (
|
|
4906
|
-
bearing: ((
|
|
4903
|
+
height: (W = Z.wave_height_max) == null ? void 0 : W.at(P),
|
|
4904
|
+
degree: (ce = Z.wave_direction_dominant) == null ? void 0 : ce.at(P),
|
|
4905
|
+
period: (re = Z.wave_period_max) == null ? void 0 : re.at(P),
|
|
4906
|
+
bearing: ((de = Z.wave_direction_dominant) == null ? void 0 : de.at(P)) !== null ? (((we = Z.wave_direction_dominant) == null ? void 0 : we.at(P)) + 180) % 360 : null
|
|
4907
4907
|
},
|
|
4908
4908
|
swell: {
|
|
4909
|
-
height: (
|
|
4910
|
-
degree: (ve =
|
|
4911
|
-
period: (
|
|
4912
|
-
peakPeriod: (
|
|
4909
|
+
height: (pe = Z.swell_wave_height_max) == null ? void 0 : pe.at(P),
|
|
4910
|
+
degree: (ve = Z.swell_wave_direction_dominant) == null ? void 0 : ve.at(P),
|
|
4911
|
+
period: (me = Z.swell_wave_period_max) == null ? void 0 : me.at(P),
|
|
4912
|
+
peakPeriod: (U = Z.swell_wave_peak_period_max) == null ? void 0 : U.at(P),
|
|
4913
4913
|
// bearing: daily.swell_wave_direction_dominant?.at(day) !== null ? (daily.swell_wave_direction_dominant?.at(day) + 180) % 360 : null,
|
|
4914
|
-
bearing: ((
|
|
4914
|
+
bearing: ((V = Z.swell_wave_direction_dominant) == null ? void 0 : V.at(P)) !== null ? ((ye = Z.swell_wave_direction_dominant) == null ? void 0 : ye.at(P)) % 360 : null
|
|
4915
4915
|
},
|
|
4916
4916
|
wd: {
|
|
4917
|
-
height: (
|
|
4918
|
-
degree: (
|
|
4919
|
-
period: (xe =
|
|
4920
|
-
peakPeriod: (be =
|
|
4921
|
-
bearing: ((_e =
|
|
4917
|
+
height: (ne = Z.wind_wave_height_max) == null ? void 0 : ne.at(P),
|
|
4918
|
+
degree: (fe = Z.wind_wave_direction_dominant) == null ? void 0 : fe.at(P),
|
|
4919
|
+
period: (xe = Z.wind_wave_period_max) == null ? void 0 : xe.at(P),
|
|
4920
|
+
peakPeriod: (be = Z.wind_wave_peak_period_max) == null ? void 0 : be.at(P),
|
|
4921
|
+
bearing: ((_e = Z.wind_wave_direction_dominant) == null ? void 0 : _e.at(P)) !== null ? (((B = Z.wind_wave_direction_dominant) == null ? void 0 : B.at(P)) + 180) % 360 : null
|
|
4922
4922
|
}
|
|
4923
4923
|
}
|
|
4924
|
-
},
|
|
4924
|
+
}, J.wave = this.parseWave(J.wave, ie == null ? void 0 : ie.wind), Object.assign(Ie[Ce], J), Ce++;
|
|
4925
4925
|
}
|
|
4926
4926
|
}
|
|
4927
4927
|
}
|
|
4928
|
-
return
|
|
4928
|
+
return Ie;
|
|
4929
4929
|
}
|
|
4930
4930
|
static parseWave(e, t) {
|
|
4931
4931
|
if (e.sig.direction = this.degree2Direction(e.sig.degree), e.swell.direction = this.degree2Direction(e.swell.degree), e.wd.direction = this.degree2Direction(e.wd.degree), e.sig.scale = this.douglas(e.sig.height), e.swell.scale = this.douglas(e.swell.height), e.wd.scale = this.douglas(e.wd.height), e.sig.height === 0) {
|
|
@@ -5371,9 +5371,9 @@ const Oa = {
|
|
|
5371
5371
|
showTropicals: !1,
|
|
5372
5372
|
activeTropicals: void 0,
|
|
5373
5373
|
activeTropicalsMarker: void 0,
|
|
5374
|
-
empty:
|
|
5374
|
+
empty: Q.featureCollection([]),
|
|
5375
5375
|
circleSource: "circle-source",
|
|
5376
|
-
circleSourceData:
|
|
5376
|
+
circleSourceData: Q.featureCollection([]),
|
|
5377
5377
|
circleLayer: "tropical-circle-layer",
|
|
5378
5378
|
labelMarkers: []
|
|
5379
5379
|
};
|
|
@@ -5382,7 +5382,7 @@ const Oa = {
|
|
|
5382
5382
|
computeTime() {
|
|
5383
5383
|
return function(a) {
|
|
5384
5384
|
if (a) {
|
|
5385
|
-
const e =
|
|
5385
|
+
const e = ae(a).utcOffset(this.timeZone), t = this.timeZone < 0 ? this.timeZone : "+" + this.timeZone;
|
|
5386
5386
|
return `${e.format("MMM-DD/HHmm")} [ UTC${t} ] ( ${e == null ? void 0 : e.fromNow()} )`;
|
|
5387
5387
|
}
|
|
5388
5388
|
return "-";
|
|
@@ -5433,7 +5433,7 @@ const Oa = {
|
|
|
5433
5433
|
var e, t;
|
|
5434
5434
|
(((t = (e = this.tropicals) == null ? void 0 : e.data) == null ? void 0 : t.features) || []).forEach((r) => {
|
|
5435
5435
|
var i, s;
|
|
5436
|
-
((i = r.geometry) == null ? void 0 : i.type) === "Point" && ((s = r.properties) != null && s.important) && (r.properties.format =
|
|
5436
|
+
((i = r.geometry) == null ? void 0 : i.type) === "Point" && ((s = r.properties) != null && s.important) && (r.properties.format = ae(r.properties.date).utcOffset(this.timeZone).format(`MMM-DD/HHmm [(utc${this.computeTimezone})]`));
|
|
5437
5437
|
}), this.handleInit();
|
|
5438
5438
|
},
|
|
5439
5439
|
handleInit() {
|
|
@@ -5475,8 +5475,8 @@ const Oa = {
|
|
|
5475
5475
|
else {
|
|
5476
5476
|
if (this.tropicals) {
|
|
5477
5477
|
const E = (/* @__PURE__ */ new Date()).valueOf();
|
|
5478
|
-
let
|
|
5479
|
-
if ((a = this.map) != null && a.getSource(this.source) ? ((t = this.map) == null || t.getSource(this.source).setData((e = this.tropicals) != null && e.active ? this.tropicals.data : this.empty),
|
|
5478
|
+
let f = 0, I = 0;
|
|
5479
|
+
if ((a = this.map) != null && a.getSource(this.source) ? ((t = this.map) == null || t.getSource(this.source).setData((e = this.tropicals) != null && e.active ? this.tropicals.data : this.empty), I = (/* @__PURE__ */ new Date()).valueOf() - (E + f), console.log("[tropicals] update elapsed: ", I, ", total: ", f += I)) : (this.map.addSource(this.source, {
|
|
5480
5480
|
type: "geojson",
|
|
5481
5481
|
data: (r = this.tropicals) != null && r.active ? (i = this.tropicals) == null ? void 0 : i.data : this.empty
|
|
5482
5482
|
}), this.map.addLayer({
|
|
@@ -5573,8 +5573,8 @@ const Oa = {
|
|
|
5573
5573
|
],
|
|
5574
5574
|
"text-halo-width": 4
|
|
5575
5575
|
}
|
|
5576
|
-
}),
|
|
5577
|
-
(l = this.map) == null || l.getSource(this.clusterSource).setData((n = this.tropicals) != null && n.active ? this.tropicals.data : this.empty),
|
|
5576
|
+
}), I = (/* @__PURE__ */ new Date()).valueOf() - (E + f), console.log("[tropical] add elapsed: ", I, ", total: ", f += I)), (s = this.map) != null && s.getSource(this.clusterSource))
|
|
5577
|
+
(l = this.map) == null || l.getSource(this.clusterSource).setData((n = this.tropicals) != null && n.active ? this.tropicals.data : this.empty), I = (/* @__PURE__ */ new Date()).valueOf() - (E + f), console.log("[tropical] update elapsed: ", I, ", total: ", f += I);
|
|
5578
5578
|
else {
|
|
5579
5579
|
if (this.map.addSource(this.clusterSource, {
|
|
5580
5580
|
type: "geojson",
|
|
@@ -5616,29 +5616,7 @@ const Oa = {
|
|
|
5616
5616
|
"#fff"
|
|
5617
5617
|
]
|
|
5618
5618
|
}
|
|
5619
|
-
}), this.fromTropicalReport)
|
|
5620
|
-
const _ = (h = this.tropicals.data.features) == null ? void 0 : h.filter((m) => m.geometry.type === "Point" && m.properties.type === "forecast" && m.properties.name === "fengshen" && m.properties.model === "jma");
|
|
5621
|
-
let f = 0, v = (b = (p = this.findClosestToNumber(_, "hour", 12)) == null ? void 0 : p.properties) == null ? void 0 : b.hour;
|
|
5622
|
-
_.forEach((m, L) => {
|
|
5623
|
-
var M, D, N, Q, j, G, W, he, te;
|
|
5624
|
-
let y;
|
|
5625
|
-
const w = this.findClosestToNumber(_, "hour", v + f * 24);
|
|
5626
|
-
if (w && ((M = w == null ? void 0 : w.properties) == null ? void 0 : M.hour) === ((D = m.properties) == null ? void 0 : D.hour) && (y = w), y) {
|
|
5627
|
-
const pe = f % 2 === 0 ? [-60, -40] : [60, 40], ye = f % 2 === 0 ? "position: absolute;width: 20px;margin-left: 98px;margin-top: 12px;height: 2px;transform: rotate(45deg);background-color: rgba(0, 0, 0, 0.3);" : "position: absolute;width: 20px;margin-left: -8px;margin-top: -54px;height: 2px;transform: rotate(45deg);background-color: rgba(0, 0, 0, 0.3);", se = document.createElement("div");
|
|
5628
|
-
se.style.cssText = "width: 130px;font-size: 12px; color: #000; background-color: rgba(255, 255, 255, 0.8); border: 2px solid rgba(0, 0, 0, 0.3); padding: 4px 8px; border-radius: 6px;", se.innerHTML = `
|
|
5629
|
-
<div style="">
|
|
5630
|
-
<span>${((N = m.properties) == null ? void 0 : N.format) || "-"}</span>
|
|
5631
|
-
<span> [${((G = (j = (Q = m.properties) == null ? void 0 : Q.wind) == null ? void 0 : j.en) == null ? void 0 : G.toUpperCase()) || "-"}]</span>
|
|
5632
|
-
</div>
|
|
5633
|
-
<div>
|
|
5634
|
-
<span>BF${((he = (W = m.properties) == null ? void 0 : W.wind) == null ? void 0 : he.bf) || "-"}</span> /
|
|
5635
|
-
<span>${((te = m.properties) == null ? void 0 : te.pressure) || "-"} kPa</span>
|
|
5636
|
-
</div>
|
|
5637
|
-
<div style="${ye}"></div>
|
|
5638
|
-
`, this.labelMarkers.push(new Re.Marker(se).setLngLat(m.geometry.coordinates).setOffset(pe).addTo(this.map)), f = f + 1;
|
|
5639
|
-
}
|
|
5640
|
-
});
|
|
5641
|
-
} else
|
|
5619
|
+
}), this.fromTropicalReport)
|
|
5642
5620
|
this.map.addLayer({
|
|
5643
5621
|
id: this.pointLabelLayer,
|
|
5644
5622
|
type: "symbol",
|
|
@@ -5656,6 +5634,34 @@ const Oa = {
|
|
|
5656
5634
|
"text-halo-width": 1
|
|
5657
5635
|
}
|
|
5658
5636
|
});
|
|
5637
|
+
else {
|
|
5638
|
+
const _ = (h = this.tropicals.data.features) == null ? void 0 : h.filter((u) => {
|
|
5639
|
+
var v;
|
|
5640
|
+
return u.geometry.type === "Point" && u.properties.type === "forecast" && ((v = u.properties) == null ? void 0 : v.model) === "ecmwf" && u.properties.name === "melissa";
|
|
5641
|
+
});
|
|
5642
|
+
let A = 0, w = 0, m = 0, L = (b = (p = this.findClosestToNumber(_, "hour", 12)) == null ? void 0 : p.properties) == null ? void 0 : b.hour;
|
|
5643
|
+
_.forEach((u, v) => {
|
|
5644
|
+
var N, H, j, G, W, ce, re, de, we, pe, ve, me, U, V, ye, ne, fe, xe, be, _e, B, ke, Le, De, Be, ze, Ie;
|
|
5645
|
+
let z;
|
|
5646
|
+
const D = this.findClosestToNumber(_, "hour", L + A * 24);
|
|
5647
|
+
if (D && ((N = D == null ? void 0 : D.properties) == null ? void 0 : N.hour) === ((H = u.properties) == null ? void 0 : H.hour) && (z = D), z) {
|
|
5648
|
+
let ie = 0, J = "tropical-marker-box", P = "tropical-marker-line";
|
|
5649
|
+
J = ((W = (G = (j = z.properties) == null ? void 0 : j.wind) == null ? void 0 : G.en) == null ? void 0 : W.toUpperCase()) === "SUPER TY" ? J + " supper" : J + " normal", P = ((de = (re = (ce = z.properties) == null ? void 0 : ce.wind) == null ? void 0 : re.en) == null ? void 0 : de.toUpperCase()) === "SUPER TY" ? P + " supper" : P + " normal", ((pe = (we = z.properties) == null ? void 0 : we.movement) == null ? void 0 : pe.deg) >= 0 && ((me = (ve = z.properties) == null ? void 0 : ve.movement) == null ? void 0 : me.deg) <= 45 || ((V = (U = z.properties) == null ? void 0 : U.movement) == null ? void 0 : V.deg) >= 135 && ((ne = (ye = z.properties) == null ? void 0 : ye.movement) == null ? void 0 : ne.deg) <= 215 || ((xe = (fe = z.properties) == null ? void 0 : fe.movement) == null ? void 0 : xe.deg) >= 315 && ((_e = (be = z.properties) == null ? void 0 : be.movement) == null ? void 0 : _e.deg) <= 360 ? (ie = m % 2 === 0 ? [100, 0] : [-100, 0], J = m % 2 === 0 ? J + " right" : J + " left", P = m % 2 === 0 ? P + " vertical right" : P + " vertical left", m = m + 1) : (ie = w % 2 === 0 ? [60, 40] : [60, -40], J = w % 2 === 0 ? J + " right" : J + " left", P = w % 2 === 0 ? P + " align bottom" : P + " align top", w = w + 1);
|
|
5650
|
+
const Ce = document.createElement("div");
|
|
5651
|
+
Ce.className = J, Ce.innerHTML = `
|
|
5652
|
+
<div style="">
|
|
5653
|
+
<span>${((B = u.properties) == null ? void 0 : B.format) || "-"}</span>
|
|
5654
|
+
<span> [${((De = (Le = (ke = u.properties) == null ? void 0 : ke.wind) == null ? void 0 : Le.en) == null ? void 0 : De.toUpperCase()) || "-"}]</span>
|
|
5655
|
+
</div>
|
|
5656
|
+
<div>
|
|
5657
|
+
<span>BF${((ze = (Be = u.properties) == null ? void 0 : Be.wind) == null ? void 0 : ze.bf) || "-"}</span> /
|
|
5658
|
+
<span>${((Ie = u.properties) == null ? void 0 : Ie.pressure) || "-"} kPa</span>
|
|
5659
|
+
</div>
|
|
5660
|
+
<div class="${P}"></div>
|
|
5661
|
+
`, this.labelMarkers.push(new Re.Marker(Ce).setLngLat(u.geometry.coordinates).setOffset(ie).addTo(this.map)), A = A + 1;
|
|
5662
|
+
}
|
|
5663
|
+
});
|
|
5664
|
+
}
|
|
5659
5665
|
this.map.addLayer({
|
|
5660
5666
|
id: this.historyPointCircleLayer + "-border",
|
|
5661
5667
|
type: "circle",
|
|
@@ -5717,7 +5723,7 @@ const Oa = {
|
|
|
5717
5723
|
"text-halo-color": "#0033ff",
|
|
5718
5724
|
"text-halo-width": 4
|
|
5719
5725
|
}
|
|
5720
|
-
}),
|
|
5726
|
+
}), I = (/* @__PURE__ */ new Date()).valueOf() - (E + f), console.log("[tropical] add elapsed: ", I, ", total: ", f += I);
|
|
5721
5727
|
}
|
|
5722
5728
|
}
|
|
5723
5729
|
this.handleDrawCircle();
|
|
@@ -5741,14 +5747,14 @@ const Oa = {
|
|
|
5741
5747
|
this.map && (this.map.getLayer(this.historyLayer) && this.map.removeLayer(this.historyLayer), this.map.getLayer(this.forecastLayer) && this.map.removeLayer(this.forecastLayer), this.map.getLayer(this.forecastModelLayer) && this.map.removeLayer(this.forecastModelLayer), this.map.getLayer(this.forecastNameLayer) && this.map.removeLayer(this.forecastNameLayer), this.map.getLayer(this.pointCircleLayer) && this.map.removeLayer(this.pointCircleLayer), this.map.getLayer(this.pointCircleLayer + "-border") && this.map.removeLayer(this.pointCircleLayer + "-border"), this.map.getLayer(this.pointLabelLayer) && this.map.removeLayer(this.pointLabelLayer), this.map.getLayer(this.historyPointCircleLayer) && this.map.removeLayer(this.historyPointCircleLayer), this.map.getLayer(this.historyPointCircleLayer + "-border") && this.map.removeLayer(this.historyPointCircleLayer + "-border"), this.map.getLayer(this.historyPointCircleLayer + "-inner") && this.map.removeLayer(this.historyPointCircleLayer + "-inner"), this.map.getLayer(this.historyPointLabelLayer) && this.map.removeLayer(this.historyPointLabelLayer), this.map.getLayer(this.interpolateLineLayer) && this.map.removeLayer(this.interpolateLineLayer), (a = this.interpolateMarkers) == null || a.forEach((e) => e == null ? void 0 : e.remove()), this.map.getSource(this.source) && this.map.removeSource(this.source), this.map.getSource(this.clusterSource) && this.map.removeSource(this.clusterSource), this.map.getSource(this.interpolateSource) && this.map.removeSource(this.interpolateSource), this.map.getLayer(this.circleLayer) && this.map.removeLayer(this.circleLayer), this.map.getSource(this.circleSource) && this.map.removeSource(this.circleSource), this.labelMarkers.forEach((e) => e == null ? void 0 : e.remove()), this.labelMarkers = []);
|
|
5742
5748
|
},
|
|
5743
5749
|
handleDateChange() {
|
|
5744
|
-
var a, e, t, r, i, s, n, l, c, d, h, p, b, x, E,
|
|
5745
|
-
if ((a = this.interpolateMarkers) == null || a.forEach((
|
|
5746
|
-
const
|
|
5747
|
-
ve.forEach((
|
|
5748
|
-
|
|
5749
|
-
}), (t = this.map) != null && t.getSource(this.interpolateSource) ? (r = this.map) == null || r.getSource(this.interpolateSource).setData(
|
|
5750
|
+
var a, e, t, r, i, s, n, l, c, d, h, p, b, x, E, f, I, _, A, w, m, L, u, v, z, D, N, H, j, G, W, ce;
|
|
5751
|
+
if ((a = this.interpolateMarkers) == null || a.forEach((re) => re == null ? void 0 : re.remove()), this.circleSourceData.features = [], (e = this.interpolateData) != null && e.length && this.tropicals.active) {
|
|
5752
|
+
const re = ae(this.date).utc().set({ minute: 0, second: 0, millisecond: 0 }), de = ae.utc().add(1, "hour").set({ minute: 0, second: 0, millisecond: 0 }), we = re.isBefore(de) && de.diff(re, "h") < 2 ? de.format() : re.format(), pe = this.interpolateData.filter((U) => U.properties.date === we && !U.properties.disabled), ve = this.handleComputePolygons(pe), me = Q.featureCollection([...pe]);
|
|
5753
|
+
ve.forEach((U) => {
|
|
5754
|
+
me.features.push(U);
|
|
5755
|
+
}), (t = this.map) != null && t.getSource(this.interpolateSource) ? (r = this.map) == null || r.getSource(this.interpolateSource).setData(me) : ((i = this.map) == null || i.addSource(this.interpolateSource, {
|
|
5750
5756
|
type: "geojson",
|
|
5751
|
-
data:
|
|
5757
|
+
data: me
|
|
5752
5758
|
}), (s = this.map) == null || s.addLayer({
|
|
5753
5759
|
id: this.interpolateLineLayer,
|
|
5754
5760
|
type: "line",
|
|
@@ -5760,17 +5766,17 @@ const Oa = {
|
|
|
5760
5766
|
"line-width": 1
|
|
5761
5767
|
}
|
|
5762
5768
|
})), this.interpolateMarkers = [];
|
|
5763
|
-
for (const
|
|
5764
|
-
if (!
|
|
5765
|
-
let
|
|
5766
|
-
((l = (n =
|
|
5767
|
-
const
|
|
5769
|
+
for (const U of pe)
|
|
5770
|
+
if (!U.properties.disabled) {
|
|
5771
|
+
let V = "#f44336";
|
|
5772
|
+
((l = (n = U.properties) == null ? void 0 : n.wind) == null ? void 0 : l.kts) < 32 || !((d = (c = U.properties) == null ? void 0 : c.wind) != null && d.kts) ? V = "#03f869" : ((p = (h = U.properties) == null ? void 0 : h.wind) == null ? void 0 : p.kts) >= 32 && ((x = (b = U.properties) == null ? void 0 : b.wind) == null ? void 0 : x.kts) < 47 ? V = "#f2f202" : ((f = (E = U.properties) == null ? void 0 : E.wind) == null ? void 0 : f.kts) >= 47 && ((_ = (I = U.properties) == null ? void 0 : I.wind) == null ? void 0 : _.kts) < 63 ? V = "#ff9100" : ((w = (A = U.properties) == null ? void 0 : A.wind) == null ? void 0 : w.kts) >= 63 && ((L = (m = U.properties) == null ? void 0 : m.wind) == null ? void 0 : L.kts) < 79 ? V = "#f44336" : ((v = (u = U.properties) == null ? void 0 : u.wind) == null ? void 0 : v.kts) >= 79 && ((D = (z = U.properties) == null ? void 0 : z.wind) == null ? void 0 : D.kts) < 94 ? V = "#f903d0" : ((H = (N = U.properties) == null ? void 0 : N.wind) == null ? void 0 : H.kts) >= 94 ? V = "#8702f9" : V = "#f44336";
|
|
5773
|
+
const ye = `<svg t="1719918955501"
|
|
5768
5774
|
class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" p-id="18382"
|
|
5769
5775
|
xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200">
|
|
5770
5776
|
<path
|
|
5771
5777
|
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"
|
|
5772
|
-
fill="${
|
|
5773
|
-
<path d="M514.50000001 507.83666667m-129.5 0a129.5 129.5 0 1 0 259 0 129.5 129.5 0 1 0-259 0Z" fill="${
|
|
5778
|
+
fill="${V}" p-id="18383"></path>
|
|
5779
|
+
<path d="M514.50000001 507.83666667m-129.5 0a129.5 129.5 0 1 0 259 0 129.5 129.5 0 1 0-259 0Z" fill="${V}"
|
|
5774
5780
|
p-id="18384"></path>
|
|
5775
5781
|
<path
|
|
5776
5782
|
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"
|
|
@@ -5778,13 +5784,13 @@ const Oa = {
|
|
|
5778
5784
|
<path
|
|
5779
5785
|
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"
|
|
5780
5786
|
fill="#ffffff" p-id="18386"></path>
|
|
5781
|
-
</svg>`,
|
|
5782
|
-
|
|
5783
|
-
const
|
|
5784
|
-
this.interpolateMarkers.push(
|
|
5787
|
+
</svg>`, ne = document.createElement("div");
|
|
5788
|
+
ne.className = "hurricane-hourly-marker", ne.innerHTML = `<div class="${U.geometry.coordinates[1] >= 0 ? "center north" : "center south"}">${ye}</div>`;
|
|
5789
|
+
const fe = new Re.Marker(ne).setLngLat(U.geometry.coordinates).addTo(this.map);
|
|
5790
|
+
this.interpolateMarkers.push(fe), (G = (j = this.map) == null ? void 0 : j.getSource(this.circleSource)) == null || G.setData(this.circleSourceData);
|
|
5785
5791
|
}
|
|
5786
5792
|
} else
|
|
5787
|
-
(W = this.map) != null && W.getSource(this.interpolateSource) && ((
|
|
5793
|
+
(W = this.map) != null && W.getSource(this.interpolateSource) && ((ce = this.map) == null || ce.getSource(this.interpolateSource).setData(this.empty));
|
|
5788
5794
|
},
|
|
5789
5795
|
handleClick(a) {
|
|
5790
5796
|
var s, n, l, c, d, h, p, b;
|
|
@@ -5816,7 +5822,7 @@ const Oa = {
|
|
|
5816
5822
|
d.properties.category === e && (d.properties.disabled = a.disabled);
|
|
5817
5823
|
}), this.interpolateData.forEach((d) => {
|
|
5818
5824
|
d.properties.category === e && (d.properties.disabled = a.disabled);
|
|
5819
|
-
}), (n = (s = this.map) == null ? void 0 : s.getSource(this.source)) == null || n.setData(
|
|
5825
|
+
}), (n = (s = this.map) == null ? void 0 : s.getSource(this.source)) == null || n.setData(Q.featureCollection(t)), (c = (l = this.map) == null ? void 0 : l.getSource(this.clusterSource)) == null || c.setData(Q.featureCollection(t)), this.handleDateChange();
|
|
5820
5826
|
},
|
|
5821
5827
|
handleStrikeProbability(a) {
|
|
5822
5828
|
this.$emit("tropicalProbability", a);
|
|
@@ -5876,22 +5882,22 @@ const Oa = {
|
|
|
5876
5882
|
let c;
|
|
5877
5883
|
switch (n) {
|
|
5878
5884
|
case "ne":
|
|
5879
|
-
c =
|
|
5885
|
+
c = Q.lineArc(a, l, 0, 90, { steps: l > 0 ? 32 : 1, units: "nauticalmiles" });
|
|
5880
5886
|
break;
|
|
5881
5887
|
case "se":
|
|
5882
|
-
c =
|
|
5888
|
+
c = Q.lineArc(a, l, 90, 180, { steps: l > 0 ? 32 : 1, units: "nauticalmiles" });
|
|
5883
5889
|
break;
|
|
5884
5890
|
case "sw":
|
|
5885
|
-
c =
|
|
5891
|
+
c = Q.lineArc(a, l, 180, 270, { steps: l > 0 ? 32 : 1, units: "nauticalmiles" });
|
|
5886
5892
|
break;
|
|
5887
5893
|
case "nw":
|
|
5888
|
-
c =
|
|
5894
|
+
c = Q.lineArc(a, l, 270, 360, { steps: l > 0 ? 32 : 1, units: "nauticalmiles" });
|
|
5889
5895
|
break;
|
|
5890
5896
|
}
|
|
5891
5897
|
r.push(...(s = c == null ? void 0 : c.geometry) == null ? void 0 : s.coordinates);
|
|
5892
5898
|
}
|
|
5893
|
-
const i =
|
|
5894
|
-
return
|
|
5899
|
+
const i = Q.lineString(r);
|
|
5900
|
+
return Q.lineToPolygon(i, { properties: t });
|
|
5895
5901
|
}
|
|
5896
5902
|
}
|
|
5897
5903
|
}, Ra = {
|
|
@@ -5917,26 +5923,26 @@ const Oa = {
|
|
|
5917
5923
|
style: { "justify-content": "flex-start" }
|
|
5918
5924
|
}, ai = { class: "forecast-models" }, ii = ["onClick"], ri = { class: "more" };
|
|
5919
5925
|
function si(a, e, t, r, i, s) {
|
|
5920
|
-
var n, l, c, d, h, p, b, x, E,
|
|
5921
|
-
return Fe((
|
|
5926
|
+
var n, l, c, d, h, p, b, x, E, f, I, _, A, w, m, L, u, v, z;
|
|
5927
|
+
return Fe((g(), y("div", Ra, [
|
|
5922
5928
|
o("div", ja, [
|
|
5923
5929
|
o("div", {
|
|
5924
5930
|
class: "iconfont close-btn",
|
|
5925
5931
|
onClick: e[0] || (e[0] = (D) => i.showTropicals = !1)
|
|
5926
5932
|
}, ""),
|
|
5927
5933
|
o("div", Wa, [
|
|
5928
|
-
(l = (n = i.activeTropicals) == null ? void 0 : n.history) != null && l.level ? (
|
|
5929
|
-
|
|
5934
|
+
(l = (n = i.activeTropicals) == null ? void 0 : n.history) != null && l.level ? (g(), y("span", Ga, k((d = (c = i.activeTropicals) == null ? void 0 : c.history) == null ? void 0 : d.level) + " , ", 1)) : q("", !0),
|
|
5935
|
+
ue(k((h = i.activeTropicals) == null ? void 0 : h.name), 1)
|
|
5930
5936
|
]),
|
|
5931
|
-
o("div", Ua, " Last update: " + k(s.computeTime(((b = (p = i.activeTropicals) == null ? void 0 : p.history) == null ? void 0 : b.updated) || ((
|
|
5937
|
+
o("div", Ua, " Last update: " + k(s.computeTime(((b = (p = i.activeTropicals) == null ? void 0 : p.history) == null ? void 0 : b.updated) || ((f = (E = (x = i.activeTropicals) == null ? void 0 : x.forecasts) == null ? void 0 : E.filter((D) => !D.disabled)[0]) == null ? void 0 : f.date))), 1)
|
|
5932
5938
|
]),
|
|
5933
5939
|
o("div", Ya, [
|
|
5934
5940
|
o("div", Ka, [
|
|
5935
5941
|
o("div", Xa, [
|
|
5936
5942
|
o("div", Ja, [
|
|
5937
5943
|
e[3] || (e[3] = o("label", null, "Wind speed : ", -1)),
|
|
5938
|
-
o("span", null, k(((_ = (
|
|
5939
|
-
o("span", null, ", BF " + k(s.computeBF(((
|
|
5944
|
+
o("span", null, k(((_ = (I = i.activeTropicals) == null ? void 0 : I.history) == null ? void 0 : _.kts) || "-") + " [kts]", 1),
|
|
5945
|
+
o("span", null, ", BF " + k(s.computeBF(((w = (A = i.activeTropicals) == null ? void 0 : A.history) == null ? void 0 : w.kts) || 0)), 1)
|
|
5940
5946
|
]),
|
|
5941
5947
|
o("div", qa, [
|
|
5942
5948
|
e[4] || (e[4] = o("label", null, "Pressure : ", -1)),
|
|
@@ -5946,30 +5952,30 @@ function si(a, e, t, r, i, s) {
|
|
|
5946
5952
|
o("div", Va, [
|
|
5947
5953
|
o("div", Za, [
|
|
5948
5954
|
e[5] || (e[5] = o("label", null, "Move Speed: ", -1)),
|
|
5949
|
-
o("span", null, k((
|
|
5955
|
+
o("span", null, k((u = s.computeMovement(i.activeTropicals)) == null ? void 0 : u.kts) + " [kts]", 1)
|
|
5950
5956
|
]),
|
|
5951
5957
|
o("div", $a, [
|
|
5952
5958
|
e[6] || (e[6] = o("label", null, "Move Dir: ", -1)),
|
|
5953
|
-
o("span", null, k((
|
|
5959
|
+
o("span", null, k((v = s.computeMovement(i.activeTropicals)) == null ? void 0 : v.deg) + " [°]", 1)
|
|
5954
5960
|
])
|
|
5955
5961
|
]),
|
|
5956
5962
|
o("div", ei, [
|
|
5957
5963
|
o("div", ti, [
|
|
5958
5964
|
e[7] || (e[7] = o("label", { style: { width: "max-content" } }, "Forecast Models : ", -1)),
|
|
5959
5965
|
o("div", ai, [
|
|
5960
|
-
(
|
|
5961
|
-
var
|
|
5962
|
-
return
|
|
5966
|
+
(g(!0), y($, null, te((z = i.activeTropicals) == null ? void 0 : z.forecasts, (D, N) => {
|
|
5967
|
+
var H, j, G, W;
|
|
5968
|
+
return g(), y("div", {
|
|
5963
5969
|
key: N,
|
|
5964
|
-
class:
|
|
5970
|
+
class: ee([
|
|
5965
5971
|
"model",
|
|
5966
5972
|
D.disabled ? "" : "active",
|
|
5967
|
-
N > 0 && N < ((j = (
|
|
5973
|
+
N > 0 && N < ((j = (H = i.activeTropicals) == null ? void 0 : H.forecasts) == null ? void 0 : j.length) - 1 && ((W = (G = i.activeTropicals) == null ? void 0 : G.forecasts) == null ? void 0 : W.length) > 2 ? "center-child" : ""
|
|
5968
5974
|
]),
|
|
5969
|
-
onClick: (
|
|
5975
|
+
onClick: (ce) => s.handleForecastToggle(D)
|
|
5970
5976
|
}, [
|
|
5971
5977
|
o("span", {
|
|
5972
|
-
class:
|
|
5978
|
+
class: ee(D.model)
|
|
5973
5979
|
}, k(D.model), 3)
|
|
5974
5980
|
], 10, ii);
|
|
5975
5981
|
}), 128))
|
|
@@ -5979,12 +5985,12 @@ function si(a, e, t, r, i, s) {
|
|
|
5979
5985
|
e[8] || (e[8] = yt('<div class="row" style="padding:0;height:1px;margin:10px 0;background:var(--idm-black-1);"></div><div class="row" style="padding:2px 10px;"><div class="legend"><div class="icon td"></div><div class="label">TD</div></div><div class="legend"><div class="icon ts"></div><div class="label">TS</div></div><div class="legend"><div class="icon sts"></div><div class="label">STS</div></div><div class="legend"><div class="icon ty"></div><div class="label">TY</div></div><div class="legend"><div class="icon sty"></div><div class="label">STY</div></div><div class="legend"><div class="icon supper-ty"></div><div class="label">Super TY</div></div></div><div class="row" style="padding:2px 10px;"><div class="legend"><div class="icon history"></div><div class="label">History</div></div><div class="legend"><div class="icon r7"></div><div class="label">35kts Radii</div></div><div class="legend"><div class="icon r10"></div><div class="label">50kts Radii</div></div></div>', 3))
|
|
5980
5986
|
]),
|
|
5981
5987
|
o("div", ri, [
|
|
5982
|
-
t.permission & i.helper.LEVEL.Supper ? (
|
|
5988
|
+
t.permission & i.helper.LEVEL.Supper ? (g(), y("div", {
|
|
5983
5989
|
key: 0,
|
|
5984
5990
|
class: "button",
|
|
5985
5991
|
style: { "margin-right": "10px" },
|
|
5986
5992
|
onClick: e[1] || (e[1] = (D) => s.handleNotification(i.activeTropicals))
|
|
5987
|
-
}, "Notify")) :
|
|
5993
|
+
}, "Notify")) : q("", !0),
|
|
5988
5994
|
o("div", {
|
|
5989
5995
|
class: "button",
|
|
5990
5996
|
onClick: e[2] || (e[2] = (D) => s.handleStrikeProbability(i.activeTropicals))
|
|
@@ -5995,7 +6001,7 @@ function si(a, e, t, r, i, s) {
|
|
|
5995
6001
|
[Oe, i.showTropicals && !a.$attrs.hideTropicalsLegend]
|
|
5996
6002
|
]);
|
|
5997
6003
|
}
|
|
5998
|
-
const dt = /* @__PURE__ */
|
|
6004
|
+
const dt = /* @__PURE__ */ Y(Oa, [["render", si]]);
|
|
5999
6005
|
const oi = {
|
|
6000
6006
|
name: "IdmPrecip3h",
|
|
6001
6007
|
props: {
|
|
@@ -6084,7 +6090,7 @@ const oi = {
|
|
|
6084
6090
|
[1, "rgba(197,5,58,0.8)"]
|
|
6085
6091
|
];
|
|
6086
6092
|
this.rampColor = this.webgl.setup(this.context, a);
|
|
6087
|
-
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context,
|
|
6093
|
+
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, he.vertexSchema, he.fragmentSchema);
|
|
6088
6094
|
this.program = e, this.aPositionBuffer = t;
|
|
6089
6095
|
}
|
|
6090
6096
|
},
|
|
@@ -6100,10 +6106,10 @@ const oi = {
|
|
|
6100
6106
|
}, ni = { key: 0 };
|
|
6101
6107
|
function li(a, e, t, r, i, s) {
|
|
6102
6108
|
var n;
|
|
6103
|
-
return (n = t.factor) != null && n.active ? (
|
|
6109
|
+
return (n = t.factor) != null && n.active ? (g(), y("div", ni, [
|
|
6104
6110
|
o("div", {
|
|
6105
6111
|
class: "legend-bars flex-center",
|
|
6106
|
-
style:
|
|
6112
|
+
style: ge([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
|
|
6107
6113
|
}, e[0] || (e[0] = [
|
|
6108
6114
|
o("span", null, "mm", -1),
|
|
6109
6115
|
o("span", null, "1.5", -1),
|
|
@@ -6114,9 +6120,9 @@ function li(a, e, t, r, i, s) {
|
|
|
6114
6120
|
o("span", null, "20", -1),
|
|
6115
6121
|
o("span", null, "30", -1)
|
|
6116
6122
|
]), 4)
|
|
6117
|
-
])) :
|
|
6123
|
+
])) : q("", !0);
|
|
6118
6124
|
}
|
|
6119
|
-
const hi = /* @__PURE__ */
|
|
6125
|
+
const hi = /* @__PURE__ */ Y(oi, [["render", li], ["__scopeId", "data-v-9708a7a3"]]);
|
|
6120
6126
|
const ci = {
|
|
6121
6127
|
name: "IdmVisibility",
|
|
6122
6128
|
props: {
|
|
@@ -6198,7 +6204,7 @@ const ci = {
|
|
|
6198
6204
|
[1, "rgba(144,144,144,0)"]
|
|
6199
6205
|
];
|
|
6200
6206
|
this.rampColor = this.webgl.setup(this.context, a);
|
|
6201
|
-
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context,
|
|
6207
|
+
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, he.vertexSchema, he.fragmentSchema);
|
|
6202
6208
|
this.program = e, this.aPositionBuffer = t;
|
|
6203
6209
|
}
|
|
6204
6210
|
},
|
|
@@ -6214,10 +6220,10 @@ const ci = {
|
|
|
6214
6220
|
}, di = { key: 0 };
|
|
6215
6221
|
function pi(a, e, t, r, i, s) {
|
|
6216
6222
|
var n;
|
|
6217
|
-
return (n = t.factor) != null && n.active ? (
|
|
6223
|
+
return (n = t.factor) != null && n.active ? (g(), y("div", di, [
|
|
6218
6224
|
o("div", {
|
|
6219
6225
|
class: "legend-bars flex-center",
|
|
6220
|
-
style:
|
|
6226
|
+
style: ge([{ position: "absolute" }, { right: a.right + "px", bottom: t.bottom }])
|
|
6221
6227
|
}, e[0] || (e[0] = [
|
|
6222
6228
|
o("span", null, "nm", -1),
|
|
6223
6229
|
o("span", null, "0", -1),
|
|
@@ -6226,9 +6232,9 @@ function pi(a, e, t, r, i, s) {
|
|
|
6226
6232
|
o("span", null, "3", -1),
|
|
6227
6233
|
o("span", null, "9", -1)
|
|
6228
6234
|
]), 4)
|
|
6229
|
-
])) :
|
|
6235
|
+
])) : q("", !0);
|
|
6230
6236
|
}
|
|
6231
|
-
const mi = /* @__PURE__ */
|
|
6237
|
+
const mi = /* @__PURE__ */ Y(ci, [["render", pi], ["__scopeId", "data-v-f7b2fb08"]]);
|
|
6232
6238
|
const ui = {
|
|
6233
6239
|
name: "IdmWaterTemp",
|
|
6234
6240
|
props: {
|
|
@@ -6318,7 +6324,7 @@ const ui = {
|
|
|
6318
6324
|
//
|
|
6319
6325
|
];
|
|
6320
6326
|
this.rampColor = this.webgl.setup(this.context, a);
|
|
6321
|
-
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context,
|
|
6327
|
+
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, he.vertexSchema, he.fragmentSchema);
|
|
6322
6328
|
this.program = e, this.aPositionBuffer = t;
|
|
6323
6329
|
}
|
|
6324
6330
|
},
|
|
@@ -6334,10 +6340,10 @@ const ui = {
|
|
|
6334
6340
|
}, gi = { key: 0 };
|
|
6335
6341
|
function yi(a, e, t, r, i, s) {
|
|
6336
6342
|
var n;
|
|
6337
|
-
return (n = t.factor) != null && n.active ? (
|
|
6343
|
+
return (n = t.factor) != null && n.active ? (g(), y("div", gi, [
|
|
6338
6344
|
o("div", {
|
|
6339
6345
|
class: "legend-bars flex-center",
|
|
6340
|
-
style:
|
|
6346
|
+
style: ge([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
|
|
6341
6347
|
}, e[0] || (e[0] = [
|
|
6342
6348
|
o("span", null, "°C", -1),
|
|
6343
6349
|
o("span", null, "0", -1),
|
|
@@ -6346,9 +6352,9 @@ function yi(a, e, t, r, i, s) {
|
|
|
6346
6352
|
o("span", null, "30", -1),
|
|
6347
6353
|
o("span", null, "40", -1)
|
|
6348
6354
|
]), 4)
|
|
6349
|
-
])) :
|
|
6355
|
+
])) : q("", !0);
|
|
6350
6356
|
}
|
|
6351
|
-
const fi = /* @__PURE__ */
|
|
6357
|
+
const fi = /* @__PURE__ */ Y(ui, [["render", yi], ["__scopeId", "data-v-7521f582"]]);
|
|
6352
6358
|
const Ai = {
|
|
6353
6359
|
name: "IdmTemp",
|
|
6354
6360
|
props: {
|
|
@@ -6441,7 +6447,7 @@ const Ai = {
|
|
|
6441
6447
|
[1, "rgb(138, 43, 10)"]
|
|
6442
6448
|
];
|
|
6443
6449
|
this.rampColor = this.webgl.setup(this.context, a);
|
|
6444
|
-
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context,
|
|
6450
|
+
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, he.vertexSchema, he.fragmentSchema);
|
|
6445
6451
|
this.program = e, this.aPositionBuffer = t;
|
|
6446
6452
|
}
|
|
6447
6453
|
},
|
|
@@ -6457,10 +6463,10 @@ const Ai = {
|
|
|
6457
6463
|
}, wi = { key: 0 };
|
|
6458
6464
|
function vi(a, e, t, r, i, s) {
|
|
6459
6465
|
var n;
|
|
6460
|
-
return (n = t.factor) != null && n.active ? (
|
|
6466
|
+
return (n = t.factor) != null && n.active ? (g(), y("div", wi, [
|
|
6461
6467
|
o("div", {
|
|
6462
6468
|
class: "legend-bars flex-center",
|
|
6463
|
-
style:
|
|
6469
|
+
style: ge([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
|
|
6464
6470
|
}, e[0] || (e[0] = [
|
|
6465
6471
|
o("span", null, "°C", -1),
|
|
6466
6472
|
o("span", null, "-20", -1),
|
|
@@ -6471,15 +6477,15 @@ function vi(a, e, t, r, i, s) {
|
|
|
6471
6477
|
o("span", null, "30", -1),
|
|
6472
6478
|
o("span", null, "40", -1)
|
|
6473
6479
|
]), 4)
|
|
6474
|
-
])) :
|
|
6480
|
+
])) : q("", !0);
|
|
6475
6481
|
}
|
|
6476
|
-
const bi = /* @__PURE__ */
|
|
6482
|
+
const bi = /* @__PURE__ */ Y(Ai, [["render", vi], ["__scopeId", "data-v-25daaa82"]]);
|
|
6477
6483
|
/*! Element Plus Icons Vue v2.3.1 */
|
|
6478
6484
|
var Li = /* @__PURE__ */ ft({
|
|
6479
6485
|
name: "LocationFilled",
|
|
6480
6486
|
__name: "location-filled",
|
|
6481
6487
|
setup(a) {
|
|
6482
|
-
return (e, t) => (
|
|
6488
|
+
return (e, t) => (g(), y("svg", {
|
|
6483
6489
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6484
6490
|
viewBox: "0 0 1024 1024"
|
|
6485
6491
|
}, [
|
|
@@ -6583,8 +6589,8 @@ const _i = {
|
|
|
6583
6589
|
var a;
|
|
6584
6590
|
if (this.showMeteo && this.ts) {
|
|
6585
6591
|
this.handleRender();
|
|
6586
|
-
const e =
|
|
6587
|
-
((a =
|
|
6592
|
+
const e = ae();
|
|
6593
|
+
((a = ae(this.ts)) == null ? void 0 : a.diff(e, "d", !0)) >= 0 ? await this.fetchMeteoData(this.point, this.ts, 7) : await this.fetchHistoryData(this.point, this.ts), this.initTableData(this.meteoData);
|
|
6588
6594
|
}
|
|
6589
6595
|
}
|
|
6590
6596
|
},
|
|
@@ -6593,8 +6599,8 @@ const _i = {
|
|
|
6593
6599
|
var a;
|
|
6594
6600
|
if (this.showMeteo = !0, this.tideData = {}, this.meteoData = {}, this.showMeteo && this.ts) {
|
|
6595
6601
|
this.handleRender();
|
|
6596
|
-
const e =
|
|
6597
|
-
if (((a =
|
|
6602
|
+
const e = ae();
|
|
6603
|
+
if (((a = ae(this.ts)) == null ? void 0 : a.diff(e, "d", !0)) >= 0 ? await this.fetchMeteoData(this.point, this.ts, 7) : await this.fetchHistoryData(this.point, this.ts), this.initTableData(this.meteoData), this.activeIndex === 4) {
|
|
6598
6604
|
const r = $e.pickDailyExtremes(this.tideData, this.ts);
|
|
6599
6605
|
(r == null ? void 0 : r.length) > 0 ? this.tideTableData = r : await this.fetchTidesData(this.point, this.ts, 7);
|
|
6600
6606
|
}
|
|
@@ -6605,7 +6611,7 @@ const _i = {
|
|
|
6605
6611
|
async handler() {
|
|
6606
6612
|
var a;
|
|
6607
6613
|
if (this.showMeteo && this.ts) {
|
|
6608
|
-
const e =
|
|
6614
|
+
const e = ae(), t = (a = ae(this.ts)) == null ? void 0 : a.diff(e, "d", !0), i = [0, 1, 2, 3, 4, 5, 6, 7].every((s) => {
|
|
6609
6615
|
var l;
|
|
6610
6616
|
const n = Ye(this.ts).tz(this.positionGmt).add(3 * s, "h").format();
|
|
6611
6617
|
return (l = Ke.pickHourly(this.meteoData, n)) == null ? void 0 : l[0];
|
|
@@ -6626,7 +6632,7 @@ const _i = {
|
|
|
6626
6632
|
},
|
|
6627
6633
|
computeHourZ() {
|
|
6628
6634
|
return function(a) {
|
|
6629
|
-
return a ? `${
|
|
6635
|
+
return a ? `${ae(a).utc().format("HH")}Z` : "-";
|
|
6630
6636
|
};
|
|
6631
6637
|
},
|
|
6632
6638
|
computeHourHmmLT() {
|
|
@@ -6636,24 +6642,24 @@ const _i = {
|
|
|
6636
6642
|
},
|
|
6637
6643
|
computeLat() {
|
|
6638
6644
|
return function(a, e = 4) {
|
|
6639
|
-
return
|
|
6645
|
+
return le.lat2pretty(a, e).pretty;
|
|
6640
6646
|
};
|
|
6641
6647
|
},
|
|
6642
6648
|
computeLng() {
|
|
6643
6649
|
return function(a, e = 4) {
|
|
6644
|
-
return
|
|
6650
|
+
return le.lng2pretty(a, e).pretty;
|
|
6645
6651
|
};
|
|
6646
6652
|
},
|
|
6647
6653
|
roundPrecision() {
|
|
6648
6654
|
return function(a, e = 4) {
|
|
6649
|
-
return isNaN(a) ? "-" :
|
|
6655
|
+
return isNaN(a) ? "-" : le.roundPrecision(a, e);
|
|
6650
6656
|
};
|
|
6651
6657
|
}
|
|
6652
6658
|
},
|
|
6653
6659
|
methods: {
|
|
6654
6660
|
async fetchMeteoData(a, e, t) {
|
|
6655
6661
|
this.loading = !0, this.meteoData = [];
|
|
6656
|
-
let r = e ?
|
|
6662
|
+
let r = e ? ae(e).utc().format() : ae().utc().format();
|
|
6657
6663
|
const { weatherModels: i, marineModels: s } = Ke.autoPickMeteoModel(this.forecastModel);
|
|
6658
6664
|
let n = {
|
|
6659
6665
|
lat: a.lat,
|
|
@@ -6662,7 +6668,7 @@ const _i = {
|
|
|
6662
6668
|
forecastDays: t ?? 7,
|
|
6663
6669
|
weatherModels: i,
|
|
6664
6670
|
marineModels: s
|
|
6665
|
-
}, l = await
|
|
6671
|
+
}, l = await He.post(`${this.gateway}/api/arc/meteo2/spot/forecast`, n, {
|
|
6666
6672
|
headers: {
|
|
6667
6673
|
Authorization: this.token || this.defaultMeteoToken
|
|
6668
6674
|
}
|
|
@@ -6671,7 +6677,7 @@ const _i = {
|
|
|
6671
6677
|
},
|
|
6672
6678
|
async fetchHistoryData(a, e) {
|
|
6673
6679
|
this.loading = !0, this.meteoData = [];
|
|
6674
|
-
const t = e ?
|
|
6680
|
+
const t = e ? ae(e).utc().format() : ae().utc().format(), { weatherModels: r, marineModels: i } = Ke.autoPickMeteoModel(this.forecastModel), s = {
|
|
6675
6681
|
lat: a.lat,
|
|
6676
6682
|
lng: a.lng,
|
|
6677
6683
|
datetime: t,
|
|
@@ -6679,7 +6685,7 @@ const _i = {
|
|
|
6679
6685
|
pastDays: 1,
|
|
6680
6686
|
weatherModels: r,
|
|
6681
6687
|
marineModels: i
|
|
6682
|
-
}, n = await
|
|
6688
|
+
}, n = await He.post(`${this.gateway}/api/arc/meteo2/spot/forecast`, s, {
|
|
6683
6689
|
headers: {
|
|
6684
6690
|
Authorization: this.token || this.defaultMeteoToken
|
|
6685
6691
|
}
|
|
@@ -6688,8 +6694,8 @@ const _i = {
|
|
|
6688
6694
|
},
|
|
6689
6695
|
initTableData(a) {
|
|
6690
6696
|
var e, t, r, i, s, n, l, c, d;
|
|
6691
|
-
this.clearTable(), this.positionGmt = (t = (e = a == null ? void 0 : a.weather) == null ? void 0 : e[0]) == null ? void 0 : t.timezone, this.positionOffset = (i = (r = a == null ? void 0 : a.weather) == null ? void 0 : r[0]) == null ? void 0 : i.offset, this.localDate = (n = (s = Ye(this.ts)) == null ? void 0 : s.tz(this.positionGmt)) == null ? void 0 : n.format("MMM-DD/HHmm[LT]"), this.currentHourData = (l = Ke.pickHourly(a,
|
|
6692
|
-
var p, b, x, E,
|
|
6697
|
+
this.clearTable(), this.positionGmt = (t = (e = a == null ? void 0 : a.weather) == null ? void 0 : e[0]) == null ? void 0 : t.timezone, this.positionOffset = (i = (r = a == null ? void 0 : a.weather) == null ? void 0 : r[0]) == null ? void 0 : i.offset, this.localDate = (n = (s = Ye(this.ts)) == null ? void 0 : s.tz(this.positionGmt)) == null ? void 0 : n.format("MMM-DD/HHmm[LT]"), this.currentHourData = (l = Ke.pickHourly(a, ae(this.ts))) == null ? void 0 : l[0], ((d = (c = this.currentHourData) == null ? void 0 : c.weather) == null ? void 0 : d.isDay) === 0 ? this.isDay = !1 : this.isDay = !0, this.$nextTick(() => {
|
|
6698
|
+
var p, b, x, E, f, I, _, A, w, m, L, u, v, z, D, N, H, j, G, W, ce, re, de, we, pe, ve, me, U, V, ye, ne, fe, xe;
|
|
6693
6699
|
if (!document.getElementById("meteoMainBox"))
|
|
6694
6700
|
return !1;
|
|
6695
6701
|
if (!this.currentHourData)
|
|
@@ -6697,8 +6703,8 @@ const _i = {
|
|
|
6697
6703
|
for (let be = 0; be < 8; be++) {
|
|
6698
6704
|
const _e = Ye(this.ts).tz(this.positionGmt).add(3 * be, "h").format();
|
|
6699
6705
|
this.tableData.hours.push(_e);
|
|
6700
|
-
const
|
|
6701
|
-
this.tableData.temp.push(this.roundPrecision((b =
|
|
6706
|
+
const B = ((p = Ke.pickHourly(a, _e)) == null ? void 0 : p[0]) || {};
|
|
6707
|
+
this.tableData.temp.push(this.roundPrecision((b = B == null ? void 0 : B.weather) == null ? void 0 : b.temp, 0) ?? "-"), this.tableData.precipProbability.push(this.roundPrecision((E = (x = B == null ? void 0 : B.weather) == null ? void 0 : x.precip) == null ? void 0 : E.probability, 0) ?? "-"), this.tableData.precip1h.push(this.roundPrecision((I = (f = B == null ? void 0 : B.weather) == null ? void 0 : f.precip) == null ? void 0 : I.sum, 0) ?? "-"), this.tableData.visibility.push(this.roundPrecision((_ = B == null ? void 0 : B.weather) == null ? void 0 : _.visibility, 0) ?? "-"), this.tableData.windSpeed.push(this.roundPrecision((w = (A = B == null ? void 0 : B.weather) == null ? void 0 : A.wind) == null ? void 0 : w.kts, 1) ?? "-"), this.tableData.windDir.push((L = (m = B == null ? void 0 : B.weather) == null ? void 0 : m.wind) == null ? void 0 : L.bearing), this.tableData.windGust.push(this.roundPrecision((v = (u = B == null ? void 0 : B.weather) == null ? void 0 : u.wind) == null ? void 0 : v.gusts, 1) ?? "-"), this.tableData.sigwaveHeight.push(this.roundPrecision((D = (z = B == null ? void 0 : B.wave) == null ? void 0 : z.sig) == null ? void 0 : D.height, 1) ?? "-"), this.tableData.sigwaveDir.push((H = (N = B == null ? void 0 : B.wave) == null ? void 0 : N.sig) == null ? void 0 : H.bearing), this.tableData.windwaveHeight.push(this.roundPrecision((G = (j = B == null ? void 0 : B.wave) == null ? void 0 : j.wd) == null ? void 0 : G.height, 1) ?? "-"), this.tableData.windwaveDir.push((ce = (W = B == null ? void 0 : B.wave) == null ? void 0 : W.wd) == null ? void 0 : ce.bearing), this.tableData.windwavePeriod.push(this.roundPrecision((de = (re = B == null ? void 0 : B.wave) == null ? void 0 : re.wd) == null ? void 0 : de.period, 1) ?? "-"), this.tableData.swellHeight.push(this.roundPrecision((pe = (we = B == null ? void 0 : B.wave) == null ? void 0 : we.swell) == null ? void 0 : pe.height, 1) ?? "-"), this.tableData.swellDir.push((me = (ve = B == null ? void 0 : B.wave) == null ? void 0 : ve.swell) == null ? void 0 : me.bearing), this.tableData.swellPeriod.push(this.roundPrecision((V = (U = B == null ? void 0 : B.wave) == null ? void 0 : U.swell) == null ? void 0 : V.period, 1) ?? "-"), this.tableData.currentSpeed.push(this.roundPrecision((ye = B == null ? void 0 : B.current) == null ? void 0 : ye.speed, 1) ?? "-"), this.tableData.currentDir.push((ne = B == null ? void 0 : B.current) == null ? void 0 : ne.bearing), this.tableData.seaLevel.push(this.roundPrecision(B == null ? void 0 : B.height, 1) ?? "-"), this.tableData.seaTemp.push(this.roundPrecision(B == null ? void 0 : B.sst, 0) ?? "-"), this.tableData.weatherUrls.push((fe = B == null ? void 0 : B.weather) == null ? void 0 : fe.url), this.tableData.weatherNames.push(((xe = B == null ? void 0 : B.weather) == null ? void 0 : xe.name) ?? "-");
|
|
6702
6708
|
}
|
|
6703
6709
|
});
|
|
6704
6710
|
},
|
|
@@ -6734,14 +6740,14 @@ const _i = {
|
|
|
6734
6740
|
},
|
|
6735
6741
|
async fetchTidesData(a, e, t) {
|
|
6736
6742
|
this.tideLoading = !0, this.tideData = {};
|
|
6737
|
-
let r = e ?
|
|
6743
|
+
let r = e ? ae(e).utc().format() : ae().utc().format(), i = {
|
|
6738
6744
|
lat: a.lat,
|
|
6739
6745
|
lng: a.lng,
|
|
6740
6746
|
date: r,
|
|
6741
6747
|
forecastDays: t ?? 7,
|
|
6742
6748
|
extremes: !0,
|
|
6743
6749
|
heights: !1
|
|
6744
|
-
}, s = await
|
|
6750
|
+
}, s = await He.post(`${this.gateway}/api/arc/meteo2/spot/tides/forecast`, i, {
|
|
6745
6751
|
headers: {
|
|
6746
6752
|
Authorization: this.token || this.defaultMeteoToken
|
|
6747
6753
|
}
|
|
@@ -6824,14 +6830,14 @@ const _i = {
|
|
|
6824
6830
|
class: "main-box flex-center"
|
|
6825
6831
|
};
|
|
6826
6832
|
function Qr(a, e, t, r, i, s) {
|
|
6827
|
-
var d, h, p, b, x, E,
|
|
6833
|
+
var d, h, p, b, x, E, f, I, _, A, w, m, L, u, v, z, D, N, H, j, G, W, ce, re, de, we, pe, ve, me, U, V, ye, ne, fe, xe, be, _e, B, ke, Le, De, Be, ze, Ie, ie, J, P, Ce, K, Z, Se, S, Ae, Me, Te, Qe, M, O, Ge, Ue, oe, Ne, tt, at, it, rt, st, ot;
|
|
6828
6834
|
const n = R("LocationFilled"), l = R("ElIcon"), c = R("ElTooltip");
|
|
6829
|
-
return Fe((
|
|
6835
|
+
return Fe((g(), y("div", Bi, [
|
|
6830
6836
|
o("div", Ii, [
|
|
6831
6837
|
o("div", Ei, [
|
|
6832
6838
|
o("div", ki, [
|
|
6833
6839
|
F(l, { size: "22" }, {
|
|
6834
|
-
default:
|
|
6840
|
+
default: Pe(() => [
|
|
6835
6841
|
F(n)
|
|
6836
6842
|
]),
|
|
6837
6843
|
_: 1
|
|
@@ -6839,11 +6845,11 @@ function Qr(a, e, t, r, i, s) {
|
|
|
6839
6845
|
o("div", Di, k(s.computeLat((d = i.point) == null ? void 0 : d.lat)) + "," + k(s.computeLng((h = i.point) == null ? void 0 : h.lng)), 1)
|
|
6840
6846
|
]),
|
|
6841
6847
|
o("div", zi, [
|
|
6842
|
-
i.showTables ? (
|
|
6848
|
+
i.showTables ? (g(), y("div", {
|
|
6843
6849
|
key: 0,
|
|
6844
6850
|
class: "iconfont toggle",
|
|
6845
6851
|
onClick: e[0] || (e[0] = (C) => i.showTables = !i.showTables)
|
|
6846
|
-
}, "")) : (
|
|
6852
|
+
}, "")) : (g(), y("div", {
|
|
6847
6853
|
key: 1,
|
|
6848
6854
|
class: "iconfont toggle",
|
|
6849
6855
|
onClick: e[1] || (e[1] = (C) => i.showTables = !i.showTables)
|
|
@@ -6854,14 +6860,14 @@ function Qr(a, e, t, r, i, s) {
|
|
|
6854
6860
|
}, "")
|
|
6855
6861
|
])
|
|
6856
6862
|
]),
|
|
6857
|
-
i.loading ? (
|
|
6863
|
+
i.loading ? (g(), y("div", Tr, e[43] || (e[43] = [
|
|
6858
6864
|
o("img", {
|
|
6859
6865
|
src: xi,
|
|
6860
6866
|
alt: ""
|
|
6861
6867
|
}, null, -1)
|
|
6862
|
-
]))) : (
|
|
6868
|
+
]))) : (g(), y("div", {
|
|
6863
6869
|
key: 0,
|
|
6864
|
-
class:
|
|
6870
|
+
class: ee(["main-box", i.isDay ? "day-bg" : "night-bg"]),
|
|
6865
6871
|
id: "meteoMainBox"
|
|
6866
6872
|
}, [
|
|
6867
6873
|
o("div", Pi, [
|
|
@@ -6872,37 +6878,37 @@ function Qr(a, e, t, r, i, s) {
|
|
|
6872
6878
|
content: (b = (p = i.currentHourData) == null ? void 0 : p.weather) == null ? void 0 : b.name,
|
|
6873
6879
|
"show-after": 1e3
|
|
6874
6880
|
}, {
|
|
6875
|
-
default:
|
|
6876
|
-
var C,
|
|
6881
|
+
default: Pe(() => {
|
|
6882
|
+
var C, T, nt, lt;
|
|
6877
6883
|
return [
|
|
6878
|
-
(
|
|
6884
|
+
(T = (C = i.currentHourData) == null ? void 0 : C.weather) != null && T.url ? (g(), y("img", {
|
|
6879
6885
|
key: 0,
|
|
6880
6886
|
class: "iconfont icon",
|
|
6881
6887
|
style: { "margin-right": "5px" },
|
|
6882
6888
|
src: (lt = (nt = i.currentHourData) == null ? void 0 : nt.weather) == null ? void 0 : lt.url
|
|
6883
|
-
}, null, 8, Si)) : (
|
|
6889
|
+
}, null, 8, Si)) : (g(), y("span", Ti))
|
|
6884
6890
|
];
|
|
6885
6891
|
}),
|
|
6886
6892
|
_: 1
|
|
6887
6893
|
}, 8, ["content"]),
|
|
6888
6894
|
o("div", Qi, [
|
|
6889
6895
|
o("div", null, [
|
|
6890
|
-
|
|
6896
|
+
ue(k(s.roundPrecision((E = (x = i.currentHourData) == null ? void 0 : x.weather) == null ? void 0 : E.temp, 0)), 1),
|
|
6891
6897
|
e[9] || (e[9] = o("span", { style: { "font-size": "14px" } }, "°C", -1))
|
|
6892
6898
|
])
|
|
6893
6899
|
]),
|
|
6894
6900
|
o("div", Hi, [
|
|
6895
6901
|
o("div", Ni, [
|
|
6896
6902
|
e[10] || (e[10] = o("label", null, "Precip : ", -1)),
|
|
6897
|
-
o("span", null, k(s.roundPrecision((_ = (
|
|
6903
|
+
o("span", null, k(s.roundPrecision((_ = (I = (f = i.currentHourData) == null ? void 0 : f.weather) == null ? void 0 : I.precip) == null ? void 0 : _.sum, 0)) + " mm", 1)
|
|
6898
6904
|
]),
|
|
6899
6905
|
o("div", Fi, [
|
|
6900
6906
|
e[11] || (e[11] = o("label", null, "Visibility : ", -1)),
|
|
6901
|
-
o("span", null, k(s.roundPrecision((
|
|
6907
|
+
o("span", null, k(s.roundPrecision((w = (A = i.currentHourData) == null ? void 0 : A.weather) == null ? void 0 : w.visibility, 0)) + " nm", 1)
|
|
6902
6908
|
]),
|
|
6903
6909
|
o("div", Oi, [
|
|
6904
6910
|
e[12] || (e[12] = o("label", null, "Wind : ", -1)),
|
|
6905
|
-
o("span", null, k(s.roundPrecision((
|
|
6911
|
+
o("span", null, k(s.roundPrecision((u = (L = (m = i.currentHourData) == null ? void 0 : m.weather) == null ? void 0 : L.wind) == null ? void 0 : u.kts, 1)) + " kts", 1)
|
|
6906
6912
|
])
|
|
6907
6913
|
])
|
|
6908
6914
|
]),
|
|
@@ -6914,19 +6920,19 @@ function Qr(a, e, t, r, i, s) {
|
|
|
6914
6920
|
Fe(o("div", Gi, [
|
|
6915
6921
|
o("div", Ui, [
|
|
6916
6922
|
o("div", {
|
|
6917
|
-
class:
|
|
6923
|
+
class: ee(["menu-item", i.activeIndex === 1 ? "active" : ""]),
|
|
6918
6924
|
onClick: e[3] || (e[3] = Ve((C) => s.handleSelectTab(1), ["prevent"]))
|
|
6919
6925
|
}, "Basis", 2),
|
|
6920
6926
|
o("div", {
|
|
6921
|
-
class:
|
|
6927
|
+
class: ee(["menu-item", i.activeIndex === 2 ? "active" : ""]),
|
|
6922
6928
|
onClick: e[4] || (e[4] = Ve((C) => s.handleSelectTab(2), ["prevent"]))
|
|
6923
6929
|
}, "Wave & Current", 2),
|
|
6924
6930
|
o("div", {
|
|
6925
|
-
class:
|
|
6931
|
+
class: ee(["menu-item", i.activeIndex === 3 ? "active" : ""]),
|
|
6926
6932
|
onClick: e[5] || (e[5] = Ve((C) => s.handleSelectTab(3), ["prevent"]))
|
|
6927
6933
|
}, "Sea Surface", 2),
|
|
6928
6934
|
o("div", {
|
|
6929
|
-
class:
|
|
6935
|
+
class: ee(["menu-item", i.activeIndex === 4 ? "active" : ""]),
|
|
6930
6936
|
onClick: e[6] || (e[6] = Ve((C) => s.handleSelectTab(4), ["prevent"]))
|
|
6931
6937
|
}, "Tides", 2)
|
|
6932
6938
|
]),
|
|
@@ -6937,10 +6943,10 @@ function Qr(a, e, t, r, i, s) {
|
|
|
6937
6943
|
colspan: "1",
|
|
6938
6944
|
class: "tr-title"
|
|
6939
6945
|
}, [
|
|
6940
|
-
|
|
6946
|
+
ue("Hours"),
|
|
6941
6947
|
o("span", { class: "unit" }, "(LT)")
|
|
6942
6948
|
], -1)),
|
|
6943
|
-
(
|
|
6949
|
+
(g(!0), y($, null, te(i.tableData.hours, (C) => (g(), y("th", {
|
|
6944
6950
|
rowspan: "1",
|
|
6945
6951
|
colspan: "1",
|
|
6946
6952
|
key: `HourL${C}`
|
|
@@ -6952,10 +6958,10 @@ function Qr(a, e, t, r, i, s) {
|
|
|
6952
6958
|
colspan: "1",
|
|
6953
6959
|
class: "tr-title"
|
|
6954
6960
|
}, [
|
|
6955
|
-
|
|
6961
|
+
ue("UTC"),
|
|
6956
6962
|
o("span", { class: "unit" })
|
|
6957
6963
|
], -1)),
|
|
6958
|
-
(
|
|
6964
|
+
(g(!0), y($, null, te(i.tableData.hours, (C) => (g(), y("th", {
|
|
6959
6965
|
rowspan: "1",
|
|
6960
6966
|
colspan: "1",
|
|
6961
6967
|
key: `HourZ${C}`
|
|
@@ -6967,24 +6973,24 @@ function Qr(a, e, t, r, i, s) {
|
|
|
6967
6973
|
colspan: "1",
|
|
6968
6974
|
class: "tr-title"
|
|
6969
6975
|
}, null, -1)),
|
|
6970
|
-
(
|
|
6976
|
+
(g(!0), y($, null, te(i.tableData.weatherUrls, (C, T) => (g(), y("th", {
|
|
6971
6977
|
rowspan: "1",
|
|
6972
6978
|
colspan: "1",
|
|
6973
|
-
key: `weatherUrls${
|
|
6979
|
+
key: `weatherUrls${T}${C}`
|
|
6974
6980
|
}, [
|
|
6975
6981
|
F(c, {
|
|
6976
6982
|
placement: "top",
|
|
6977
6983
|
effect: "light",
|
|
6978
|
-
content: i.tableData.weatherNames[
|
|
6984
|
+
content: i.tableData.weatherNames[T],
|
|
6979
6985
|
"show-after": 500
|
|
6980
6986
|
}, {
|
|
6981
|
-
default:
|
|
6982
|
-
C ? (
|
|
6987
|
+
default: Pe(() => [
|
|
6988
|
+
C ? (g(), y("img", {
|
|
6983
6989
|
key: 0,
|
|
6984
6990
|
class: "iconfont weather-icon",
|
|
6985
6991
|
src: C,
|
|
6986
6992
|
alt: ""
|
|
6987
|
-
}, null, 8, qi)) :
|
|
6993
|
+
}, null, 8, qi)) : q("", !0)
|
|
6988
6994
|
]),
|
|
6989
6995
|
_: 2
|
|
6990
6996
|
}, 1032, ["content"])
|
|
@@ -6996,13 +7002,13 @@ function Qr(a, e, t, r, i, s) {
|
|
|
6996
7002
|
colspan: "1",
|
|
6997
7003
|
class: "tr-title"
|
|
6998
7004
|
}, [
|
|
6999
|
-
|
|
7005
|
+
ue("Temp"),
|
|
7000
7006
|
o("span", { class: "unit" }, "°C")
|
|
7001
7007
|
], -1)),
|
|
7002
|
-
(
|
|
7008
|
+
(g(!0), y($, null, te(i.tableData.temp, (C, T) => (g(), y("td", {
|
|
7003
7009
|
rowspan: "1",
|
|
7004
7010
|
colspan: "1",
|
|
7005
|
-
key: `weatherUrls${
|
|
7011
|
+
key: `weatherUrls${T}${C}`
|
|
7006
7012
|
}, k(C), 1))), 128))
|
|
7007
7013
|
]),
|
|
7008
7014
|
o("tr", Zi, [
|
|
@@ -7011,13 +7017,13 @@ function Qr(a, e, t, r, i, s) {
|
|
|
7011
7017
|
colspan: "1",
|
|
7012
7018
|
class: "tr-title"
|
|
7013
7019
|
}, [
|
|
7014
|
-
|
|
7020
|
+
ue("Precip"),
|
|
7015
7021
|
o("span", { class: "unit" }, "mm")
|
|
7016
7022
|
], -1)),
|
|
7017
|
-
(
|
|
7023
|
+
(g(!0), y($, null, te(i.tableData.precip1h, (C, T) => (g(), y("td", {
|
|
7018
7024
|
rowspan: "1",
|
|
7019
7025
|
colspan: "1",
|
|
7020
|
-
key: `precip1h${
|
|
7026
|
+
key: `precip1h${T}${C}`
|
|
7021
7027
|
}, k(C), 1))), 128))
|
|
7022
7028
|
]),
|
|
7023
7029
|
o("tr", $i, [
|
|
@@ -7026,13 +7032,13 @@ function Qr(a, e, t, r, i, s) {
|
|
|
7026
7032
|
colspan: "1",
|
|
7027
7033
|
class: "tr-title"
|
|
7028
7034
|
}, [
|
|
7029
|
-
|
|
7035
|
+
ue("Visibility"),
|
|
7030
7036
|
o("span", { class: "unit" }, "nm")
|
|
7031
7037
|
], -1)),
|
|
7032
|
-
(
|
|
7038
|
+
(g(!0), y($, null, te(i.tableData.visibility, (C, T) => (g(), y("td", {
|
|
7033
7039
|
rowspan: "1",
|
|
7034
7040
|
colspan: "1",
|
|
7035
|
-
key: `visibility${
|
|
7041
|
+
key: `visibility${T}${C}`
|
|
7036
7042
|
}, k(C), 1))), 128))
|
|
7037
7043
|
]),
|
|
7038
7044
|
o("tr", er, [
|
|
@@ -7041,13 +7047,13 @@ function Qr(a, e, t, r, i, s) {
|
|
|
7041
7047
|
colspan: "1",
|
|
7042
7048
|
class: "tr-title"
|
|
7043
7049
|
}, [
|
|
7044
|
-
|
|
7050
|
+
ue("Wind gust"),
|
|
7045
7051
|
o("span", { class: "unit" }, "kts")
|
|
7046
7052
|
], -1)),
|
|
7047
|
-
(
|
|
7053
|
+
(g(!0), y($, null, te(i.tableData.windGust, (C, T) => (g(), y("td", {
|
|
7048
7054
|
rowspan: "1",
|
|
7049
7055
|
colspan: "1",
|
|
7050
|
-
key: `windGust${
|
|
7056
|
+
key: `windGust${T}${C}`
|
|
7051
7057
|
}, [
|
|
7052
7058
|
o("span", null, k(C), 1)
|
|
7053
7059
|
]))), 128))
|
|
@@ -7062,13 +7068,13 @@ function Qr(a, e, t, r, i, s) {
|
|
|
7062
7068
|
colspan: "1",
|
|
7063
7069
|
class: "tr-title"
|
|
7064
7070
|
}, [
|
|
7065
|
-
|
|
7071
|
+
ue("Hours"),
|
|
7066
7072
|
o("span", { class: "unit" }, "(LT)")
|
|
7067
7073
|
], -1)),
|
|
7068
|
-
(
|
|
7074
|
+
(g(!0), y($, null, te(i.tableData.hours, (C, T) => (g(), y("th", {
|
|
7069
7075
|
rowspan: "1",
|
|
7070
7076
|
colspan: "1",
|
|
7071
|
-
key: `currenthoursL${
|
|
7077
|
+
key: `currenthoursL${T}${C}`
|
|
7072
7078
|
}, k(s.computeHourL(C)), 1))), 128))
|
|
7073
7079
|
]),
|
|
7074
7080
|
o("tr", ir, [
|
|
@@ -7077,13 +7083,13 @@ function Qr(a, e, t, r, i, s) {
|
|
|
7077
7083
|
colspan: "1",
|
|
7078
7084
|
class: "tr-title"
|
|
7079
7085
|
}, [
|
|
7080
|
-
|
|
7086
|
+
ue("UTC"),
|
|
7081
7087
|
o("span", { class: "unit" })
|
|
7082
7088
|
], -1)),
|
|
7083
|
-
(
|
|
7089
|
+
(g(!0), y($, null, te(i.tableData.hours, (C, T) => (g(), y("th", {
|
|
7084
7090
|
rowspan: "1",
|
|
7085
7091
|
colspan: "1",
|
|
7086
|
-
key: `currenthoursZ${
|
|
7092
|
+
key: `currenthoursZ${T}${C}`
|
|
7087
7093
|
}, k(s.computeHourZ(C)), 1))), 128))
|
|
7088
7094
|
]),
|
|
7089
7095
|
o("tr", rr, [
|
|
@@ -7092,18 +7098,18 @@ function Qr(a, e, t, r, i, s) {
|
|
|
7092
7098
|
colspan: "1",
|
|
7093
7099
|
class: "tr-title"
|
|
7094
7100
|
}, [
|
|
7095
|
-
|
|
7101
|
+
ue("Wind"),
|
|
7096
7102
|
o("span", { class: "unit" }, "kts")
|
|
7097
7103
|
], -1)),
|
|
7098
|
-
(
|
|
7104
|
+
(g(!0), y($, null, te(i.tableData.windSpeed, (C, T) => (g(), y("td", {
|
|
7099
7105
|
rowspan: "1",
|
|
7100
7106
|
colspan: "1",
|
|
7101
|
-
key: `windSpeed${
|
|
7107
|
+
key: `windSpeed${T}${C}`
|
|
7102
7108
|
}, [
|
|
7103
|
-
isNaN(i.tableData.windDir[
|
|
7109
|
+
isNaN(i.tableData.windDir[T]) ? q("", !0) : (g(), y("span", {
|
|
7104
7110
|
key: 0,
|
|
7105
7111
|
class: "iconfont icon wind",
|
|
7106
|
-
style:
|
|
7112
|
+
style: ge({ display: "inline-block", transform: `rotate(${i.tableData.windDir[T]}deg)` })
|
|
7107
7113
|
}, "", 4)),
|
|
7108
7114
|
o("span", null, k(C), 1)
|
|
7109
7115
|
]))), 128))
|
|
@@ -7114,18 +7120,18 @@ function Qr(a, e, t, r, i, s) {
|
|
|
7114
7120
|
colspan: "1",
|
|
7115
7121
|
class: "tr-title"
|
|
7116
7122
|
}, [
|
|
7117
|
-
|
|
7123
|
+
ue("Sig Wave"),
|
|
7118
7124
|
o("span", { class: "unit" }, "m")
|
|
7119
7125
|
], -1)),
|
|
7120
|
-
(
|
|
7126
|
+
(g(!0), y($, null, te(i.tableData.sigwaveHeight, (C, T) => (g(), y("td", {
|
|
7121
7127
|
rowspan: "1",
|
|
7122
7128
|
colspan: "1",
|
|
7123
|
-
key: `sigwaveHeight${
|
|
7129
|
+
key: `sigwaveHeight${T}${C}`
|
|
7124
7130
|
}, [
|
|
7125
|
-
isNaN(i.tableData.sigwaveDir[
|
|
7131
|
+
isNaN(i.tableData.sigwaveDir[T]) ? q("", !0) : (g(), y("span", {
|
|
7126
7132
|
key: 0,
|
|
7127
7133
|
class: "iconfont icon sigwave",
|
|
7128
|
-
style:
|
|
7134
|
+
style: ge({ display: "inline-block", transform: `rotate(${i.tableData.sigwaveDir[T]}deg)` })
|
|
7129
7135
|
}, "", 4)),
|
|
7130
7136
|
o("span", null, k(C), 1)
|
|
7131
7137
|
]))), 128))
|
|
@@ -7136,18 +7142,18 @@ function Qr(a, e, t, r, i, s) {
|
|
|
7136
7142
|
colspan: "1",
|
|
7137
7143
|
class: "tr-title"
|
|
7138
7144
|
}, [
|
|
7139
|
-
|
|
7145
|
+
ue("Wind Wave"),
|
|
7140
7146
|
o("span", { class: "unit" }, "m")
|
|
7141
7147
|
], -1)),
|
|
7142
|
-
(
|
|
7148
|
+
(g(!0), y($, null, te(i.tableData.windwaveHeight, (C, T) => (g(), y("td", {
|
|
7143
7149
|
rowspan: "1",
|
|
7144
7150
|
colspan: "1",
|
|
7145
|
-
key: `windwaveHeight${
|
|
7151
|
+
key: `windwaveHeight${T}${C}`
|
|
7146
7152
|
}, [
|
|
7147
|
-
isNaN(i.tableData.sigwaveDir[
|
|
7153
|
+
isNaN(i.tableData.sigwaveDir[T]) ? q("", !0) : (g(), y("span", {
|
|
7148
7154
|
key: 0,
|
|
7149
7155
|
class: "iconfont icon windwave",
|
|
7150
|
-
style:
|
|
7156
|
+
style: ge({ display: "inline-block", transform: `rotate(${i.tableData.windwaveDir[T]}deg)` })
|
|
7151
7157
|
}, "", 4)),
|
|
7152
7158
|
o("span", null, k(C), 1)
|
|
7153
7159
|
]))), 128))
|
|
@@ -7158,18 +7164,18 @@ function Qr(a, e, t, r, i, s) {
|
|
|
7158
7164
|
colspan: "1",
|
|
7159
7165
|
class: "tr-title"
|
|
7160
7166
|
}, [
|
|
7161
|
-
|
|
7167
|
+
ue("Swell"),
|
|
7162
7168
|
o("span", { class: "unit" }, "m")
|
|
7163
7169
|
], -1)),
|
|
7164
|
-
(
|
|
7170
|
+
(g(!0), y($, null, te(i.tableData.swellHeight, (C, T) => (g(), y("td", {
|
|
7165
7171
|
rowspan: "1",
|
|
7166
7172
|
colspan: "1",
|
|
7167
|
-
key: `swellHeight${
|
|
7173
|
+
key: `swellHeight${T}${C}`
|
|
7168
7174
|
}, [
|
|
7169
|
-
isNaN(i.tableData.swellDir[
|
|
7175
|
+
isNaN(i.tableData.swellDir[T]) ? q("", !0) : (g(), y("span", {
|
|
7170
7176
|
key: 0,
|
|
7171
7177
|
class: "iconfont icon swell",
|
|
7172
|
-
style:
|
|
7178
|
+
style: ge({ display: "inline-block", transform: `rotate(${i.tableData.swellDir[T]}deg)` })
|
|
7173
7179
|
}, "", 4)),
|
|
7174
7180
|
o("span", null, k(C), 1)
|
|
7175
7181
|
]))), 128))
|
|
@@ -7180,19 +7186,19 @@ function Qr(a, e, t, r, i, s) {
|
|
|
7180
7186
|
colspan: "1",
|
|
7181
7187
|
class: "tr-title"
|
|
7182
7188
|
}, [
|
|
7183
|
-
|
|
7189
|
+
ue("Current"),
|
|
7184
7190
|
o("span", { class: "unit" }, "kts")
|
|
7185
7191
|
], -1)),
|
|
7186
|
-
(
|
|
7192
|
+
(g(!0), y($, null, te(i.tableData.currentSpeed, (C, T) => (g(), y("td", {
|
|
7187
7193
|
rowspan: "1",
|
|
7188
7194
|
colspan: "1",
|
|
7189
|
-
key: `currentSpeed${
|
|
7195
|
+
key: `currentSpeed${T}${C}`
|
|
7190
7196
|
}, [
|
|
7191
|
-
isNaN(i.tableData.currentDir[
|
|
7197
|
+
isNaN(i.tableData.currentDir[T]) ? q("", !0) : (g(), y("span", {
|
|
7192
7198
|
key: 0,
|
|
7193
7199
|
class: "iconfont icon current",
|
|
7194
7200
|
id: "meteoGrayIcon",
|
|
7195
|
-
style:
|
|
7201
|
+
style: ge({ display: "inline-block", transform: `rotate(${i.tableData.currentDir[T]}deg)` })
|
|
7196
7202
|
}, "", 4)),
|
|
7197
7203
|
o("span", null, k(C), 1)
|
|
7198
7204
|
]))), 128))
|
|
@@ -7207,13 +7213,13 @@ function Qr(a, e, t, r, i, s) {
|
|
|
7207
7213
|
colspan: "1",
|
|
7208
7214
|
class: "tr-title"
|
|
7209
7215
|
}, [
|
|
7210
|
-
|
|
7216
|
+
ue("Hours"),
|
|
7211
7217
|
o("span", { class: "unit" }, "(LT)")
|
|
7212
7218
|
], -1)),
|
|
7213
|
-
(
|
|
7219
|
+
(g(!0), y($, null, te(i.tableData.hours, (C, T) => (g(), y("th", {
|
|
7214
7220
|
rowspan: "1",
|
|
7215
7221
|
colspan: "1",
|
|
7216
|
-
key: `seahoursL${
|
|
7222
|
+
key: `seahoursL${T}${C}`
|
|
7217
7223
|
}, k(s.computeHourL(C)), 1))), 128))
|
|
7218
7224
|
]),
|
|
7219
7225
|
o("tr", dr, [
|
|
@@ -7222,13 +7228,13 @@ function Qr(a, e, t, r, i, s) {
|
|
|
7222
7228
|
colspan: "1",
|
|
7223
7229
|
class: "tr-title"
|
|
7224
7230
|
}, [
|
|
7225
|
-
|
|
7231
|
+
ue("UTC"),
|
|
7226
7232
|
o("span", { class: "unit" })
|
|
7227
7233
|
], -1)),
|
|
7228
|
-
(
|
|
7234
|
+
(g(!0), y($, null, te(i.tableData.hours, (C, T) => (g(), y("th", {
|
|
7229
7235
|
rowspan: "1",
|
|
7230
7236
|
colspan: "1",
|
|
7231
|
-
key: `seahoursZ${
|
|
7237
|
+
key: `seahoursZ${T}${C}`
|
|
7232
7238
|
}, k(s.computeHourZ(C)), 1))), 128))
|
|
7233
7239
|
]),
|
|
7234
7240
|
o("tr", pr, [
|
|
@@ -7237,13 +7243,13 @@ function Qr(a, e, t, r, i, s) {
|
|
|
7237
7243
|
colspan: "1",
|
|
7238
7244
|
class: "tr-title"
|
|
7239
7245
|
}, [
|
|
7240
|
-
|
|
7246
|
+
ue("SeaLevel"),
|
|
7241
7247
|
o("span", { class: "unit" }, "m")
|
|
7242
7248
|
], -1)),
|
|
7243
|
-
(
|
|
7249
|
+
(g(!0), y($, null, te(i.tableData.seaLevel, (C, T) => (g(), y("td", {
|
|
7244
7250
|
rowspan: "1",
|
|
7245
7251
|
colspan: "1",
|
|
7246
|
-
key: `SeaLevel${
|
|
7252
|
+
key: `SeaLevel${T}${C}`
|
|
7247
7253
|
}, k(C), 1))), 128))
|
|
7248
7254
|
]),
|
|
7249
7255
|
o("tr", mr, [
|
|
@@ -7252,41 +7258,41 @@ function Qr(a, e, t, r, i, s) {
|
|
|
7252
7258
|
colspan: "1",
|
|
7253
7259
|
class: "tr-title"
|
|
7254
7260
|
}, [
|
|
7255
|
-
|
|
7261
|
+
ue("SeaTemp"),
|
|
7256
7262
|
o("span", { class: "unit" }, "°C")
|
|
7257
7263
|
], -1)),
|
|
7258
|
-
(
|
|
7264
|
+
(g(!0), y($, null, te(i.tableData.seaTemp, (C, T) => (g(), y("td", {
|
|
7259
7265
|
rowspan: "1",
|
|
7260
7266
|
colspan: "1",
|
|
7261
|
-
key: `SeaTemp${
|
|
7267
|
+
key: `SeaTemp${T}${C}`
|
|
7262
7268
|
}, k(C), 1))), 128))
|
|
7263
7269
|
])
|
|
7264
7270
|
], 512), [
|
|
7265
7271
|
[Oe, i.activeIndex === 3]
|
|
7266
7272
|
]),
|
|
7267
|
-
i.activeIndex === 3 ? (
|
|
7273
|
+
i.activeIndex === 3 ? (g(), y("div", ur, e[31] || (e[31] = [
|
|
7268
7274
|
o("p", { style: { "font-size": "12px", padding: "12px 20px 0 20px", "line-height": "16px" } }, "*Sea level height accounts for tides, barometer effects, and global variations. Based on mean sea level, accuracy is limited in coastal areas. For coastal navigation, use data from Tides Tab.", -1)
|
|
7269
|
-
]))) :
|
|
7275
|
+
]))) : q("", !0),
|
|
7270
7276
|
Fe(o("table", gr, [
|
|
7271
7277
|
o("tr", yr, [
|
|
7272
|
-
(
|
|
7278
|
+
(g(!0), y($, null, te(i.tideTableData, (C, T) => (g(), y("th", {
|
|
7273
7279
|
rowspan: "1",
|
|
7274
7280
|
colspan: "1",
|
|
7275
|
-
key: `Tide-tr-${
|
|
7281
|
+
key: `Tide-tr-${T}${C}`
|
|
7276
7282
|
}, k(C.type) + " Tide", 1))), 128))
|
|
7277
7283
|
]),
|
|
7278
7284
|
o("tr", fr, [
|
|
7279
|
-
(
|
|
7285
|
+
(g(!0), y($, null, te(i.tideTableData, (C, T) => (g(), y("td", {
|
|
7280
7286
|
rowspan: "1",
|
|
7281
7287
|
colspan: "1",
|
|
7282
|
-
key: `Tide-date-${
|
|
7288
|
+
key: `Tide-date-${T}${C}`
|
|
7283
7289
|
}, k(s.computeHourHmmLT(C == null ? void 0 : C.date)), 1))), 128))
|
|
7284
7290
|
]),
|
|
7285
7291
|
o("tr", Ar, [
|
|
7286
|
-
(
|
|
7292
|
+
(g(!0), y($, null, te(i.tideTableData, (C, T) => (g(), y("td", {
|
|
7287
7293
|
rowspan: "1",
|
|
7288
7294
|
colspan: "1",
|
|
7289
|
-
key: `Tide-height-${
|
|
7295
|
+
key: `Tide-height-${T}${C}`
|
|
7290
7296
|
}, k(s.roundPrecision(C == null ? void 0 : C.height, 2)) + " m", 1))), 128))
|
|
7291
7297
|
]),
|
|
7292
7298
|
e[32] || (e[32] = o("tr", { class: "tr-tide flex-center info" }, [
|
|
@@ -7298,33 +7304,33 @@ function Qr(a, e, t, r, i, s) {
|
|
|
7298
7304
|
[Oe, i.activeIndex === 4]
|
|
7299
7305
|
])
|
|
7300
7306
|
], 512), [
|
|
7301
|
-
[Oe, ((
|
|
7307
|
+
[Oe, ((z = (v = i.tableData) == null ? void 0 : v.hours) == null ? void 0 : z.length) > 0 && i.showTables]
|
|
7302
7308
|
]),
|
|
7303
7309
|
Fe(o("div", wr, [
|
|
7304
7310
|
o("div", vr, [
|
|
7305
7311
|
o("div", br, [
|
|
7306
7312
|
e[33] || (e[33] = o("div", null, "Wind", -1)),
|
|
7307
|
-
o("div", null, k((
|
|
7313
|
+
o("div", null, k((H = (N = (D = i.currentHourData) == null ? void 0 : D.weather) == null ? void 0 : N.wind) == null ? void 0 : H.direction) + "/" + k(s.roundPrecision((W = (G = (j = i.currentHourData) == null ? void 0 : j.weather) == null ? void 0 : G.wind) == null ? void 0 : W.kts, 1)) + "kts/BF" + k((de = (re = (ce = i.currentHourData) == null ? void 0 : ce.weather) == null ? void 0 : re.wind) == null ? void 0 : de.scale) + "/" + k(s.roundPrecision((ve = (pe = (we = i.currentHourData) == null ? void 0 : we.weather) == null ? void 0 : pe.wind) == null ? void 0 : ve.gusts, 1)) + " kts", 1)
|
|
7308
7314
|
]),
|
|
7309
7315
|
o("div", Lr, [
|
|
7310
7316
|
e[34] || (e[34] = o("div", null, "Sig wave", -1)),
|
|
7311
|
-
o("div", null, k((
|
|
7317
|
+
o("div", null, k((V = (U = (me = i.currentHourData) == null ? void 0 : me.wave) == null ? void 0 : U.sig) == null ? void 0 : V.direction) + "/" + k(s.roundPrecision((fe = (ne = (ye = i.currentHourData) == null ? void 0 : ye.wave) == null ? void 0 : ne.sig) == null ? void 0 : fe.height, 1)) + "m/" + k(s.roundPrecision((_e = (be = (xe = i.currentHourData) == null ? void 0 : xe.wave) == null ? void 0 : be.sig) == null ? void 0 : _e.period, 1)) + "s", 1)
|
|
7312
7318
|
])
|
|
7313
7319
|
]),
|
|
7314
7320
|
o("div", Cr, [
|
|
7315
7321
|
o("div", xr, [
|
|
7316
7322
|
e[35] || (e[35] = o("div", null, "Wind wave", -1)),
|
|
7317
|
-
o("div", null, k((Le = (
|
|
7323
|
+
o("div", null, k((Le = (ke = (B = i.currentHourData) == null ? void 0 : B.wave) == null ? void 0 : ke.wd) == null ? void 0 : Le.direction) + "/" + k(s.roundPrecision((ze = (Be = (De = i.currentHourData) == null ? void 0 : De.wave) == null ? void 0 : Be.wd) == null ? void 0 : ze.height, 1)) + "m/" + k(s.roundPrecision((J = (ie = (Ie = i.currentHourData) == null ? void 0 : Ie.wave) == null ? void 0 : ie.wd) == null ? void 0 : J.period, 1)) + "s", 1)
|
|
7318
7324
|
]),
|
|
7319
7325
|
o("div", _r, [
|
|
7320
7326
|
e[36] || (e[36] = o("div", null, "Swell", -1)),
|
|
7321
|
-
o("div", null, k((K = (
|
|
7327
|
+
o("div", null, k((K = (Ce = (P = i.currentHourData) == null ? void 0 : P.wave) == null ? void 0 : Ce.swell) == null ? void 0 : K.direction) + "/" + k(s.roundPrecision((S = (Se = (Z = i.currentHourData) == null ? void 0 : Z.wave) == null ? void 0 : Se.swell) == null ? void 0 : S.height, 1)) + "m/" + k(s.roundPrecision((Te = (Me = (Ae = i.currentHourData) == null ? void 0 : Ae.wave) == null ? void 0 : Me.swell) == null ? void 0 : Te.period, 1)) + "s", 1)
|
|
7322
7328
|
])
|
|
7323
7329
|
]),
|
|
7324
7330
|
o("div", Br, [
|
|
7325
7331
|
o("div", Ir, [
|
|
7326
7332
|
e[37] || (e[37] = o("div", null, "Current", -1)),
|
|
7327
|
-
o("div", null, k((
|
|
7333
|
+
o("div", null, k((M = (Qe = i.currentHourData) == null ? void 0 : Qe.current) == null ? void 0 : M.direction) + "/" + k(s.roundPrecision((Ge = (O = i.currentHourData) == null ? void 0 : O.current) == null ? void 0 : Ge.kts, 2)) + "kts", 1)
|
|
7328
7334
|
]),
|
|
7329
7335
|
o("div", Er, [
|
|
7330
7336
|
e[38] || (e[38] = o("div", null, "Sea level", -1)),
|
|
@@ -7334,7 +7340,7 @@ function Qr(a, e, t, r, i, s) {
|
|
|
7334
7340
|
o("div", kr, [
|
|
7335
7341
|
o("div", Dr, [
|
|
7336
7342
|
e[39] || (e[39] = o("div", null, "Sea Temp", -1)),
|
|
7337
|
-
o("div", null, k(s.roundPrecision((
|
|
7343
|
+
o("div", null, k(s.roundPrecision((oe = i.currentHourData) == null ? void 0 : oe.sst, 1)) + "°C", 1)
|
|
7338
7344
|
]),
|
|
7339
7345
|
o("div", zr, [
|
|
7340
7346
|
e[40] || (e[40] = o("div", null, "Visibility", -1)),
|
|
@@ -7355,14 +7361,14 @@ function Qr(a, e, t, r, i, s) {
|
|
|
7355
7361
|
[Oe, !i.showTables]
|
|
7356
7362
|
]),
|
|
7357
7363
|
o("div", {
|
|
7358
|
-
class:
|
|
7364
|
+
class: ee(["action", i.isDay ? "day" : "night"])
|
|
7359
7365
|
}, [
|
|
7360
|
-
t.permission & i.helper.LEVEL.Supper ? (
|
|
7366
|
+
t.permission & i.helper.LEVEL.Supper ? (g(), y("div", {
|
|
7361
7367
|
key: 0,
|
|
7362
7368
|
class: "button",
|
|
7363
7369
|
style: { "margin-right": "10px" },
|
|
7364
7370
|
onClick: e[7] || (e[7] = (...C) => s.handleNotify && s.handleNotify(...C))
|
|
7365
|
-
}, "Notify")) :
|
|
7371
|
+
}, "Notify")) : q("", !0),
|
|
7366
7372
|
o("div", {
|
|
7367
7373
|
onClick: e[8] || (e[8] = (...C) => s.handleMeteoMore && s.handleMeteoMore(...C))
|
|
7368
7374
|
}, "More >>")
|
|
@@ -7373,7 +7379,7 @@ function Qr(a, e, t, r, i, s) {
|
|
|
7373
7379
|
[Oe, i.showMeteo]
|
|
7374
7380
|
]);
|
|
7375
7381
|
}
|
|
7376
|
-
const Hr = /* @__PURE__ */
|
|
7382
|
+
const Hr = /* @__PURE__ */ Y(_i, [["render", Qr], ["__scopeId", "data-v-3afdcf26"]]), Nr = {
|
|
7377
7383
|
name: "IdmWarZone",
|
|
7378
7384
|
props: {
|
|
7379
7385
|
map: {
|
|
@@ -7467,9 +7473,9 @@ const Hr = /* @__PURE__ */ U(_i, [["render", Qr], ["__scopeId", "data-v-3afdcf26
|
|
|
7467
7473
|
}
|
|
7468
7474
|
};
|
|
7469
7475
|
function Fr(a, e, t, r, i, s) {
|
|
7470
|
-
return
|
|
7476
|
+
return g(), y("div");
|
|
7471
7477
|
}
|
|
7472
|
-
const Or = /* @__PURE__ */
|
|
7478
|
+
const Or = /* @__PURE__ */ Y(Nr, [["render", Fr]]), Rr = {
|
|
7473
7479
|
name: "IdmGmdssArea",
|
|
7474
7480
|
props: {
|
|
7475
7481
|
map: {
|
|
@@ -7593,9 +7599,9 @@ const Or = /* @__PURE__ */ U(Nr, [["render", Fr]]), Rr = {
|
|
|
7593
7599
|
}
|
|
7594
7600
|
};
|
|
7595
7601
|
function jr(a, e, t, r, i, s) {
|
|
7596
|
-
return
|
|
7602
|
+
return g(), y("div");
|
|
7597
7603
|
}
|
|
7598
|
-
const Wr = /* @__PURE__ */
|
|
7604
|
+
const Wr = /* @__PURE__ */ Y(Rr, [["render", jr]]), Gr = {
|
|
7599
7605
|
name: "IdmEcaZone",
|
|
7600
7606
|
props: {
|
|
7601
7607
|
map: {
|
|
@@ -7690,9 +7696,9 @@ const Wr = /* @__PURE__ */ U(Rr, [["render", jr]]), Gr = {
|
|
|
7690
7696
|
}
|
|
7691
7697
|
};
|
|
7692
7698
|
function Ur(a, e, t, r, i, s) {
|
|
7693
|
-
return
|
|
7699
|
+
return g(), y("div");
|
|
7694
7700
|
}
|
|
7695
|
-
const Yr = /* @__PURE__ */
|
|
7701
|
+
const Yr = /* @__PURE__ */ Y(Gr, [["render", Ur]]);
|
|
7696
7702
|
const Kr = {
|
|
7697
7703
|
name: "IdmAlertZone",
|
|
7698
7704
|
props: {
|
|
@@ -7829,7 +7835,7 @@ const Kr = {
|
|
|
7829
7835
|
}, Xr = { id: "idm-gl3-zone-info" }, Jr = ["innerHTML"];
|
|
7830
7836
|
function qr(a, e, t, r, i, s) {
|
|
7831
7837
|
var n;
|
|
7832
|
-
return Fe((
|
|
7838
|
+
return Fe((g(), y("div", Xr, [
|
|
7833
7839
|
o("div", {
|
|
7834
7840
|
class: "iconfont close",
|
|
7835
7841
|
onClick: e[0] || (e[0] = (l) => i.showZone = !1)
|
|
@@ -7842,7 +7848,7 @@ function qr(a, e, t, r, i, s) {
|
|
|
7842
7848
|
[Oe, i.showZone]
|
|
7843
7849
|
]);
|
|
7844
7850
|
}
|
|
7845
|
-
const Vr = /* @__PURE__ */
|
|
7851
|
+
const Vr = /* @__PURE__ */ Y(Kr, [["render", qr]]);
|
|
7846
7852
|
const Zr = {
|
|
7847
7853
|
name: "IdmPort",
|
|
7848
7854
|
props: {
|
|
@@ -7872,12 +7878,12 @@ const Zr = {
|
|
|
7872
7878
|
computed: {
|
|
7873
7879
|
computeLat() {
|
|
7874
7880
|
return function(a) {
|
|
7875
|
-
return
|
|
7881
|
+
return le.lat2pretty(a, 4).pretty;
|
|
7876
7882
|
};
|
|
7877
7883
|
},
|
|
7878
7884
|
computeLng() {
|
|
7879
7885
|
return function(a) {
|
|
7880
|
-
return
|
|
7886
|
+
return le.lng2pretty(a, 4).pretty;
|
|
7881
7887
|
};
|
|
7882
7888
|
}
|
|
7883
7889
|
},
|
|
@@ -7946,7 +7952,7 @@ const Zr = {
|
|
|
7946
7952
|
style: { "align-items": "flex-start" }
|
|
7947
7953
|
}, ss = { class: "meteo-forecast flex-end" };
|
|
7948
7954
|
function os(a, e, t, r, i, s) {
|
|
7949
|
-
return Fe((
|
|
7955
|
+
return Fe((g(), y("div", $r, [
|
|
7950
7956
|
o("div", {
|
|
7951
7957
|
class: "close iconfont",
|
|
7952
7958
|
onClick: e[0] || (e[0] = (n) => i.showPort = !1)
|
|
@@ -7978,7 +7984,7 @@ function os(a, e, t, r, i, s) {
|
|
|
7978
7984
|
[Oe, i.showPort]
|
|
7979
7985
|
]);
|
|
7980
7986
|
}
|
|
7981
|
-
const ns = /* @__PURE__ */
|
|
7987
|
+
const ns = /* @__PURE__ */ Y(Zr, [["render", os], ["__scopeId", "data-v-39da1804"]]), ls = {
|
|
7982
7988
|
name: "IdmLoadLine",
|
|
7983
7989
|
props: {
|
|
7984
7990
|
map: {
|
|
@@ -8052,9 +8058,9 @@ const ns = /* @__PURE__ */ U(Zr, [["render", os], ["__scopeId", "data-v-39da1804
|
|
|
8052
8058
|
}
|
|
8053
8059
|
};
|
|
8054
8060
|
function hs(a, e, t, r, i, s) {
|
|
8055
|
-
return
|
|
8061
|
+
return g(), y("div");
|
|
8056
8062
|
}
|
|
8057
|
-
const cs = /* @__PURE__ */
|
|
8063
|
+
const cs = /* @__PURE__ */ Y(ls, [["render", hs]]), ds = {
|
|
8058
8064
|
name: "IdmTimezone",
|
|
8059
8065
|
props: {
|
|
8060
8066
|
map: {
|
|
@@ -8223,9 +8229,9 @@ const cs = /* @__PURE__ */ U(ls, [["render", hs]]), ds = {
|
|
|
8223
8229
|
}
|
|
8224
8230
|
};
|
|
8225
8231
|
function ps(a, e, t, r, i, s) {
|
|
8226
|
-
return
|
|
8232
|
+
return g(), y("div");
|
|
8227
8233
|
}
|
|
8228
|
-
const ms = /* @__PURE__ */
|
|
8234
|
+
const ms = /* @__PURE__ */ Y(ds, [["render", ps]]), us = {
|
|
8229
8235
|
name: "IdmVoluntaryReportingArea",
|
|
8230
8236
|
props: {
|
|
8231
8237
|
map: {
|
|
@@ -8317,9 +8323,9 @@ const ms = /* @__PURE__ */ U(ds, [["render", ps]]), us = {
|
|
|
8317
8323
|
}
|
|
8318
8324
|
};
|
|
8319
8325
|
function gs(a, e, t, r, i, s) {
|
|
8320
|
-
return
|
|
8326
|
+
return g(), y("div");
|
|
8321
8327
|
}
|
|
8322
|
-
const ys = /* @__PURE__ */
|
|
8328
|
+
const ys = /* @__PURE__ */ Y(us, [["render", gs]]), fs = {
|
|
8323
8329
|
name: "IdmSpecialArea",
|
|
8324
8330
|
props: {
|
|
8325
8331
|
map: {
|
|
@@ -8349,7 +8355,7 @@ const ys = /* @__PURE__ */ U(us, [["render", gs]]), fs = {
|
|
|
8349
8355
|
methods: {
|
|
8350
8356
|
handleRender() {
|
|
8351
8357
|
this.map ? (this.handleClear(), this.area && (this.area.features.forEach((a) => {
|
|
8352
|
-
a.geometry.type === "Polygon" && a.geometry.coordinates.forEach((e) =>
|
|
8358
|
+
a.geometry.type === "Polygon" && a.geometry.coordinates.forEach((e) => le.convertToMonotonicLng2(e));
|
|
8353
8359
|
}), this.map.addSource(this.source, {
|
|
8354
8360
|
type: "geojson",
|
|
8355
8361
|
data: this.area
|
|
@@ -8413,9 +8419,9 @@ const ys = /* @__PURE__ */ U(us, [["render", gs]]), fs = {
|
|
|
8413
8419
|
}
|
|
8414
8420
|
};
|
|
8415
8421
|
function As(a, e, t, r, i, s) {
|
|
8416
|
-
return
|
|
8422
|
+
return g(), y("div");
|
|
8417
8423
|
}
|
|
8418
|
-
const ws = /* @__PURE__ */
|
|
8424
|
+
const ws = /* @__PURE__ */ Y(fs, [["render", As]]), vs = {
|
|
8419
8425
|
name: "IdmTerminator",
|
|
8420
8426
|
props: {
|
|
8421
8427
|
map: {
|
|
@@ -8468,9 +8474,9 @@ const ws = /* @__PURE__ */ U(fs, [["render", As]]), vs = {
|
|
|
8468
8474
|
}
|
|
8469
8475
|
};
|
|
8470
8476
|
function bs(a, e, t, r, i, s) {
|
|
8471
|
-
return
|
|
8477
|
+
return g(), y("div");
|
|
8472
8478
|
}
|
|
8473
|
-
const Ls = /* @__PURE__ */
|
|
8479
|
+
const Ls = /* @__PURE__ */ Y(vs, [["render", bs]]);
|
|
8474
8480
|
const Cs = {
|
|
8475
8481
|
name: "IdmLatLng",
|
|
8476
8482
|
props: {
|
|
@@ -8529,7 +8535,7 @@ const Cs = {
|
|
|
8529
8535
|
this.show ? ((a = this.map) == null || a.on("zoomend", this.handleZoomEnd), this.handleRender()) : (this.handleClear(), (e = this.map) == null || e.off("zoomend", this.handleZoomEnd));
|
|
8530
8536
|
},
|
|
8531
8537
|
handleMouseMove(a) {
|
|
8532
|
-
const e = a.lngLat, t =
|
|
8538
|
+
const e = a.lngLat, t = le.lng2pretty(e.lng, 2), r = le.lat2pretty(e.lat, 2);
|
|
8533
8539
|
this.lngLat = { lng: t, lat: r };
|
|
8534
8540
|
},
|
|
8535
8541
|
handleComputeLatLngs() {
|
|
@@ -8577,7 +8583,7 @@ const Cs = {
|
|
|
8577
8583
|
handleZoomEnd() {
|
|
8578
8584
|
var e;
|
|
8579
8585
|
const a = this.handleComputeLatLngs();
|
|
8580
|
-
(e = this.map) == null || e.getSource(this.source).setData(
|
|
8586
|
+
(e = this.map) == null || e.getSource(this.source).setData(Q.featureCollection(a));
|
|
8581
8587
|
},
|
|
8582
8588
|
handleRender() {
|
|
8583
8589
|
if (this.map) {
|
|
@@ -8627,17 +8633,17 @@ const Cs = {
|
|
|
8627
8633
|
}
|
|
8628
8634
|
};
|
|
8629
8635
|
function xs(a, e, t, r, i, s) {
|
|
8630
|
-
return i.lngLat ? (
|
|
8636
|
+
return i.lngLat ? (g(), y("div", {
|
|
8631
8637
|
key: 0,
|
|
8632
8638
|
class: "lat-lng-tip",
|
|
8633
|
-
style:
|
|
8639
|
+
style: ge({ right: i.right + "px", bottom: t.bottom })
|
|
8634
8640
|
}, [
|
|
8635
8641
|
o("span", null, k(i.lngLat.lat.pretty), 1),
|
|
8636
8642
|
e[0] || (e[0] = o("span", null, ", ", -1)),
|
|
8637
8643
|
o("span", null, k(i.lngLat.lng.pretty), 1)
|
|
8638
|
-
], 4)) :
|
|
8644
|
+
], 4)) : q("", !0);
|
|
8639
8645
|
}
|
|
8640
|
-
const pt = /* @__PURE__ */
|
|
8646
|
+
const pt = /* @__PURE__ */ Y(Cs, [["render", xs], ["__scopeId", "data-v-747fb3c8"]]), _s = {
|
|
8641
8647
|
name: "IdmMeasure",
|
|
8642
8648
|
props: {
|
|
8643
8649
|
map: {
|
|
@@ -8672,7 +8678,7 @@ const pt = /* @__PURE__ */ U(Cs, [["render", xs], ["__scopeId", "data-v-747fb3c8
|
|
|
8672
8678
|
else {
|
|
8673
8679
|
(a = this.map) == null || a.getCanvas().removeEventListener("keydown", this.handleKeydown), (e = this.map) == null || e.off("mousemove", this.handleMove), (t = this.map) == null || t.off("dblclick", this.handleDblClick), this.map && (this.map.getCanvas().style.cursor = "grab");
|
|
8674
8680
|
let r = this.geojson.find((i) => !i.closed);
|
|
8675
|
-
r && this.handleClear(r, !0), this.geojson = this.geojson.filter((i) => !!i.closed), r =
|
|
8681
|
+
r && this.handleClear(r, !0), this.geojson = this.geojson.filter((i) => !!i.closed), r = Q.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(r);
|
|
8676
8682
|
}
|
|
8677
8683
|
},
|
|
8678
8684
|
immediate: !0
|
|
@@ -8706,24 +8712,24 @@ const pt = /* @__PURE__ */ U(Cs, [["render", xs], ["__scopeId", "data-v-747fb3c8
|
|
|
8706
8712
|
var t, r, i, s, n, l, c, d, h, p;
|
|
8707
8713
|
const e = (r = (t = a.target) == null ? void 0 : t._element) == null ? void 0 : r.id;
|
|
8708
8714
|
if ((e == null ? void 0 : e.split("-").length) === 2) {
|
|
8709
|
-
const b = this.geojson.filter((
|
|
8710
|
-
this.pointMarkers[b.id].filter((
|
|
8715
|
+
const b = this.geojson.filter((I) => I.id === e.split("-")[0])[0];
|
|
8716
|
+
this.pointMarkers[b.id].filter((I) => {
|
|
8711
8717
|
var _;
|
|
8712
|
-
return ((_ =
|
|
8718
|
+
return ((_ = I._element) == null ? void 0 : _.id) === e;
|
|
8713
8719
|
})[0].setLngLat([(s = (i = a.target) == null ? void 0 : i._lngLat) == null ? void 0 : s.lng, (l = (n = a.target) == null ? void 0 : n._lngLat) == null ? void 0 : l.lat]);
|
|
8714
8720
|
let E;
|
|
8715
|
-
b.features.forEach((
|
|
8716
|
-
if (
|
|
8721
|
+
b.features.forEach((I, _) => {
|
|
8722
|
+
if (I.geometry.type === "Point" && I.properties.id == e.split("-")[1]) {
|
|
8717
8723
|
E = _;
|
|
8718
8724
|
return;
|
|
8719
8725
|
}
|
|
8720
8726
|
});
|
|
8721
|
-
const
|
|
8727
|
+
const f = b.features.filter((I) => I.geometry.type === "Point");
|
|
8722
8728
|
this.handleTmpPointUpdate(
|
|
8723
8729
|
b,
|
|
8724
|
-
|
|
8725
|
-
{ lng: (d = (c = a.target) == null ? void 0 : c._lngLat) == null ? void 0 : d.lng, lat: (p = (h = a.target) == null ? void 0 : h._lngLat) == null ? void 0 : p.lat, properties:
|
|
8726
|
-
E ===
|
|
8730
|
+
f[E - 1],
|
|
8731
|
+
{ lng: (d = (c = a.target) == null ? void 0 : c._lngLat) == null ? void 0 : d.lng, lat: (p = (h = a.target) == null ? void 0 : h._lngLat) == null ? void 0 : p.lat, properties: f[E].properties },
|
|
8732
|
+
E === f.length - 1 ? void 0 : f[E + 1]
|
|
8727
8733
|
);
|
|
8728
8734
|
}
|
|
8729
8735
|
},
|
|
@@ -8731,13 +8737,13 @@ const pt = /* @__PURE__ */ U(Cs, [["render", xs], ["__scopeId", "data-v-747fb3c8
|
|
|
8731
8737
|
var t, r, i, s, n, l, c, d, h, p;
|
|
8732
8738
|
const e = (r = (t = a.target) == null ? void 0 : t._element) == null ? void 0 : r.id;
|
|
8733
8739
|
if ((e == null ? void 0 : e.split("-").length) === 2) {
|
|
8734
|
-
const b = this.geojson.filter((
|
|
8735
|
-
this.pointMarkers[b.id].filter((
|
|
8736
|
-
var
|
|
8737
|
-
return ((
|
|
8740
|
+
const b = this.geojson.filter((f) => f.id === e.split("-")[0])[0];
|
|
8741
|
+
this.pointMarkers[b.id].filter((f) => {
|
|
8742
|
+
var I;
|
|
8743
|
+
return ((I = f._element) == null ? void 0 : I.id) === e;
|
|
8738
8744
|
})[0].setLngLat([(s = (i = a.target) == null ? void 0 : i._lngLat) == null ? void 0 : s.lng, (l = (n = a.target) == null ? void 0 : n._lngLat) == null ? void 0 : l.lat]);
|
|
8739
|
-
const E = b.features.filter((
|
|
8740
|
-
E.geometry.coordinates = [(d = (c = a.target) == null ? void 0 : c._lngLat) == null ? void 0 : d.lng, (p = (h = a.target) == null ? void 0 : h._lngLat) == null ? void 0 : p.lat], b.features = b.features.filter((
|
|
8745
|
+
const E = b.features.filter((f) => f.geometry.type === "Point" && f.properties.id == e.split("-")[1])[0];
|
|
8746
|
+
E.geometry.coordinates = [(d = (c = a.target) == null ? void 0 : c._lngLat) == null ? void 0 : d.lng, (p = (h = a.target) == null ? void 0 : h._lngLat) == null ? void 0 : p.lat], b.features = b.features.filter((f) => f.geometry.type === "Point"), this.handlePointUpdate(b);
|
|
8741
8747
|
}
|
|
8742
8748
|
},
|
|
8743
8749
|
handleContextmenu(a) {
|
|
@@ -8764,8 +8770,8 @@ const pt = /* @__PURE__ */ U(Cs, [["render", xs], ["__scopeId", "data-v-747fb3c8
|
|
|
8764
8770
|
d.features = d.features.filter((h) => h.geometry.type === "Point" && h.properties.id !== c[1]), this.handlePointUpdate(d);
|
|
8765
8771
|
} else if (e !== "marker-label" && this.show) {
|
|
8766
8772
|
let c = this.geojson.at(-1);
|
|
8767
|
-
c || (c =
|
|
8768
|
-
const d =
|
|
8773
|
+
c || (c = Q.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(c)), c.features = c.features.filter((h) => h.geometry.type === "Point");
|
|
8774
|
+
const d = Q.feature(
|
|
8769
8775
|
{
|
|
8770
8776
|
type: "Point",
|
|
8771
8777
|
coordinates: [a.lngLat.lng, a.lngLat.lat]
|
|
@@ -8785,10 +8791,10 @@ const pt = /* @__PURE__ */ U(Cs, [["render", xs], ["__scopeId", "data-v-747fb3c8
|
|
|
8785
8791
|
const r = [];
|
|
8786
8792
|
for (let i = 1; i < e.length; i++) {
|
|
8787
8793
|
const s = e[i - 1], n = e[i], l = s.properties, c = { lng: s.geometry.coordinates[0], lat: s.geometry.coordinates[1] }, d = { lng: n.geometry.coordinates[0], lat: n.geometry.coordinates[1] }, h = je.calculateDistance(c, d, l.mode === "RL", 4), p = je.calculateBearing(c, d, l.mode === "RL", 2);
|
|
8788
|
-
t =
|
|
8794
|
+
t = le.roundPrecision(t + h, 2);
|
|
8789
8795
|
let b;
|
|
8790
|
-
l.mode === "RL" ? b =
|
|
8791
|
-
const x =
|
|
8796
|
+
l.mode === "RL" ? b = le.convertToMonotonicLng([c, d]) : b = le.convertToMonotonicLng(je.interpolateCoordinates(c, d, 200));
|
|
8797
|
+
const x = Q.lineString(b.map((E) => [E.lng, E.lat]));
|
|
8792
8798
|
x.properties.dist = h, x.properties.bearing = p, x.properties.total = t, r.push(x);
|
|
8793
8799
|
}
|
|
8794
8800
|
e.push(...r), a.total = t;
|
|
@@ -8796,22 +8802,22 @@ const pt = /* @__PURE__ */ U(Cs, [["render", xs], ["__scopeId", "data-v-747fb3c8
|
|
|
8796
8802
|
return this.handleRender(a), a;
|
|
8797
8803
|
},
|
|
8798
8804
|
handleTmpPointUpdate(a, e, t, r) {
|
|
8799
|
-
const i =
|
|
8805
|
+
const i = Q.featureCollection([]);
|
|
8800
8806
|
let s, n;
|
|
8801
8807
|
if (e) {
|
|
8802
8808
|
const c = e.properties, d = { lng: e.geometry.coordinates[0], lat: e.geometry.coordinates[1] }, h = { lng: t.lng, lat: t.lat };
|
|
8803
8809
|
s = je.calculateDistance(d, h, c.mode === "RL", 4), n = je.calculateBearing(d, h, c.mode === "RL", 2);
|
|
8804
8810
|
let p;
|
|
8805
|
-
c.mode === "RL" ? p =
|
|
8806
|
-
const b =
|
|
8811
|
+
c.mode === "RL" ? p = le.convertToMonotonicLng([d, h]) : p = le.convertToMonotonicLng(je.interpolateCoordinates(d, h, 200));
|
|
8812
|
+
const b = Q.lineString(p.map((x) => [x.lng, x.lat]));
|
|
8807
8813
|
b.properties.dist = s, b.properties.bearing = n, i.features.push(b);
|
|
8808
8814
|
}
|
|
8809
8815
|
if (r) {
|
|
8810
8816
|
const c = t.properties, d = t, h = { lng: r.geometry.coordinates[0], lat: r.geometry.coordinates[1] };
|
|
8811
8817
|
s = je.calculateDistance(d, h, c.mode === "RL", 4), n = je.calculateBearing(d, h, c.mode === "RL", 2);
|
|
8812
8818
|
let p;
|
|
8813
|
-
c.mode === "RL" ? p =
|
|
8814
|
-
const b =
|
|
8819
|
+
c.mode === "RL" ? p = le.convertToMonotonicLng([d, h]) : p = le.convertToMonotonicLng(je.interpolateCoordinates(d, h, 200));
|
|
8820
|
+
const b = Q.lineString(p.map((x) => [x.lng, x.lat]));
|
|
8815
8821
|
b.properties.dist = s, b.properties.bearing = n, i.features.push(b);
|
|
8816
8822
|
}
|
|
8817
8823
|
this.map.getSource(this.tmpSource) ? this.map.getSource(this.tmpSource).setData(i) : this.map.addSource(this.tmpSource, {
|
|
@@ -8852,7 +8858,7 @@ const pt = /* @__PURE__ */ U(Cs, [["render", xs], ["__scopeId", "data-v-747fb3c8
|
|
|
8852
8858
|
}
|
|
8853
8859
|
});
|
|
8854
8860
|
let l;
|
|
8855
|
-
if (r ? l = '<div class="marker-label">Drag and drop</div>' : l = `<div class="marker-label">Total distance: <b>${
|
|
8861
|
+
if (r ? l = '<div class="marker-label">Drag and drop</div>' : l = `<div class="marker-label">Total distance: <b>${le.roundPrecision((a.total ?? 0) + s, 1)}</b>nm, bearing: <b>${n}</b>°</div><div class="marker-label">${this.navigation === "RL" ? "RL" : "GC"} mode, using 'Shift' to switch</div><div class="marker-label">Double click to end</div>`, this.tipMarker)
|
|
8856
8862
|
this.tipMarker._element.innerHTML = l, this.tipMarker.setLngLat([t.lng, t.lat]);
|
|
8857
8863
|
else {
|
|
8858
8864
|
const c = document.createElement("div");
|
|
@@ -8862,14 +8868,14 @@ const pt = /* @__PURE__ */ U(Cs, [["render", xs], ["__scopeId", "data-v-747fb3c8
|
|
|
8862
8868
|
handleMove(a) {
|
|
8863
8869
|
this.map.getCanvas().style.cursor = "crosshair";
|
|
8864
8870
|
let e = this.geojson.at(-1);
|
|
8865
|
-
e || (e =
|
|
8871
|
+
e || (e = Q.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(e));
|
|
8866
8872
|
const t = e.features.filter((r) => r.geometry.type === "Point");
|
|
8867
8873
|
t != null && t.length && this.handleTmpPointUpdate(e, t.at(-1), { lng: a.lngLat.lng, lat: a.lngLat.lat });
|
|
8868
8874
|
},
|
|
8869
8875
|
handleDblClick(a) {
|
|
8870
8876
|
a.preventDefault();
|
|
8871
8877
|
let e = this.geojson.at(-1);
|
|
8872
|
-
e.closed = !0, this.handleRender(e), e =
|
|
8878
|
+
e.closed = !0, this.handleRender(e), e = Q.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(e);
|
|
8873
8879
|
},
|
|
8874
8880
|
handleRender(a) {
|
|
8875
8881
|
var e;
|
|
@@ -8933,9 +8939,9 @@ const pt = /* @__PURE__ */ U(Cs, [["render", xs], ["__scopeId", "data-v-747fb3c8
|
|
|
8933
8939
|
}
|
|
8934
8940
|
};
|
|
8935
8941
|
function Bs(a, e, t, r, i, s) {
|
|
8936
|
-
return
|
|
8942
|
+
return g(), y("div");
|
|
8937
8943
|
}
|
|
8938
|
-
const Is = /* @__PURE__ */
|
|
8944
|
+
const Is = /* @__PURE__ */ Y(_s, [["render", Bs]]);
|
|
8939
8945
|
const Es = {
|
|
8940
8946
|
name: "IdmENC",
|
|
8941
8947
|
props: {
|
|
@@ -8994,10 +9000,10 @@ const Es = {
|
|
|
8994
9000
|
}, ks = { key: 0 }, Ds = { class: "bar-item" };
|
|
8995
9001
|
function zs(a, e, t, r, i, s) {
|
|
8996
9002
|
const n = R("ElTooltip");
|
|
8997
|
-
return t.enabled && t.permission & i.helper.LEVEL.Supper ? (
|
|
9003
|
+
return t.enabled && t.permission & i.helper.LEVEL.Supper ? (g(), y("div", ks, [
|
|
8998
9004
|
o("div", {
|
|
8999
9005
|
class: "menu-bar-box",
|
|
9000
|
-
style:
|
|
9006
|
+
style: ge({ position: "absolute", right: i.right + "px", bottom: t.bottom })
|
|
9001
9007
|
}, [
|
|
9002
9008
|
o("div", Ds, [
|
|
9003
9009
|
F(n, {
|
|
@@ -9006,9 +9012,9 @@ function zs(a, e, t, r, i, s) {
|
|
|
9006
9012
|
content: "Hifleet",
|
|
9007
9013
|
"show-after": 1e3
|
|
9008
9014
|
}, {
|
|
9009
|
-
default:
|
|
9015
|
+
default: Pe(() => [
|
|
9010
9016
|
o("div", {
|
|
9011
|
-
class:
|
|
9017
|
+
class: ee(i.vendor === "hi" ? "menu-icon active" : "menu-icon"),
|
|
9012
9018
|
onClick: e[0] || (e[0] = (l) => i.vendor = "hi")
|
|
9013
9019
|
}, e[2] || (e[2] = [
|
|
9014
9020
|
o("span", { class: "iconfont" }, "HI", -1)
|
|
@@ -9022,9 +9028,9 @@ function zs(a, e, t, r, i, s) {
|
|
|
9022
9028
|
content: "I4insight",
|
|
9023
9029
|
"show-after": 1e3
|
|
9024
9030
|
}, {
|
|
9025
|
-
default:
|
|
9031
|
+
default: Pe(() => [
|
|
9026
9032
|
o("div", {
|
|
9027
|
-
class:
|
|
9033
|
+
class: ee(i.vendor === "i4" ? "menu-icon active" : "menu-icon"),
|
|
9028
9034
|
onClick: e[1] || (e[1] = (l) => i.vendor = "i4")
|
|
9029
9035
|
}, e[3] || (e[3] = [
|
|
9030
9036
|
o("span", { class: "iconfont" }, "I4", -1)
|
|
@@ -9034,9 +9040,9 @@ function zs(a, e, t, r, i, s) {
|
|
|
9034
9040
|
})
|
|
9035
9041
|
])
|
|
9036
9042
|
], 4)
|
|
9037
|
-
])) :
|
|
9043
|
+
])) : q("", !0);
|
|
9038
9044
|
}
|
|
9039
|
-
const Ps = /* @__PURE__ */
|
|
9045
|
+
const Ps = /* @__PURE__ */ Y(Es, [["render", zs], ["__scopeId", "data-v-8eecd76d"]]), Ms = {
|
|
9040
9046
|
name: "IdmWorld12nm",
|
|
9041
9047
|
props: {
|
|
9042
9048
|
map: {
|
|
@@ -9098,7 +9104,7 @@ const Ps = /* @__PURE__ */ U(Es, [["render", zs], ["__scopeId", "data-v-8eecd76d
|
|
|
9098
9104
|
function Ss(a, e, t, r, i, s) {
|
|
9099
9105
|
return null;
|
|
9100
9106
|
}
|
|
9101
|
-
const Ts = /* @__PURE__ */
|
|
9107
|
+
const Ts = /* @__PURE__ */ Y(Ms, [["render", Ss]]);
|
|
9102
9108
|
const Qs = {
|
|
9103
9109
|
name: "IdmWorldMarine",
|
|
9104
9110
|
props: {
|
|
@@ -9142,7 +9148,7 @@ const Qs = {
|
|
|
9142
9148
|
function Hs(a, e, t, r, i, s) {
|
|
9143
9149
|
return null;
|
|
9144
9150
|
}
|
|
9145
|
-
const Ns = /* @__PURE__ */
|
|
9151
|
+
const Ns = /* @__PURE__ */ Y(Qs, [["render", Hs]]), Fs = {
|
|
9146
9152
|
name: "IdmChinaRoute",
|
|
9147
9153
|
props: {
|
|
9148
9154
|
map: {
|
|
@@ -9183,7 +9189,7 @@ const Ns = /* @__PURE__ */ U(Qs, [["render", Hs]]), Fs = {
|
|
|
9183
9189
|
function Os(a, e, t, r, i, s) {
|
|
9184
9190
|
return null;
|
|
9185
9191
|
}
|
|
9186
|
-
const Rs = /* @__PURE__ */
|
|
9192
|
+
const Rs = /* @__PURE__ */ Y(Fs, [["render", Os]]);
|
|
9187
9193
|
const js = {
|
|
9188
9194
|
name: "IdmGLV2",
|
|
9189
9195
|
components: {
|
|
@@ -9279,7 +9285,7 @@ const js = {
|
|
|
9279
9285
|
watch: {
|
|
9280
9286
|
ts: {
|
|
9281
9287
|
handler(a, e) {
|
|
9282
|
-
a && e &&
|
|
9288
|
+
a && e && ae(a).utc().format("yyyy-MM-DD HH") !== ae(e).utc().format("yyyy-MM-DD HH") && this.$nextTick(() => {
|
|
9283
9289
|
this.handleDateChange({ tropicals: !1 });
|
|
9284
9290
|
});
|
|
9285
9291
|
},
|
|
@@ -9299,11 +9305,11 @@ const js = {
|
|
|
9299
9305
|
},
|
|
9300
9306
|
activeWeatherLayers: {
|
|
9301
9307
|
handler() {
|
|
9302
|
-
var t, r, i, s, n, l, c, d, h, p, b, x, E,
|
|
9308
|
+
var t, r, i, s, n, l, c, d, h, p, b, x, E, f, I, _, A, w, m, L, u, v, z;
|
|
9303
9309
|
if (!this.map)
|
|
9304
9310
|
return !1;
|
|
9305
9311
|
const a = this.activeWeatherLayers.some((D) => D.key === "wind" && D.particle === !0 || D.key === "current" && D.particle === !0 || D.key === "ice-edge" || D.key === "ice-thickness" || D.key === "ice-cover" || D.key === "temp" || D.key === "water-temp"), e = this.activeWeatherLayers.some((D) => D.key === "visibility" || D.key === "precip3h");
|
|
9306
|
-
this.activeWeatherLayers.length > 0 ? (!a && this.map.getZoom() > 3 && this.enc ? (r = (t = this.map) == null ? void 0 : t.getLayer(this.enc)) == null || r.setLayoutProperty("visibility", "visible") : ((s = (i = this.map) == null ? void 0 : i.getLayer("i4")) == null || s.setLayoutProperty("visibility", "none"), (l = (n = this.map) == null ? void 0 : n.getLayer("hi")) == null || l.setLayoutProperty("visibility", "none")), (d = (c = this.map) == null ? void 0 : c.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) == null || d.setLayoutProperty("visibility", "visible"), (p = this.map) != null && p.getLayer((h = this.viewport) == null ? void 0 : h.rampColorLayer) && ((b = this.map) != null && b.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && this.mapProjection === "mercator" && ((E = this.map) == null || E.moveLayer((x = this.viewport) == null ? void 0 : x.rampColorLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)), e && ((
|
|
9312
|
+
this.activeWeatherLayers.length > 0 ? (!a && this.map.getZoom() > 3 && this.enc ? (r = (t = this.map) == null ? void 0 : t.getLayer(this.enc)) == null || r.setLayoutProperty("visibility", "visible") : ((s = (i = this.map) == null ? void 0 : i.getLayer("i4")) == null || s.setLayoutProperty("visibility", "none"), (l = (n = this.map) == null ? void 0 : n.getLayer("hi")) == null || l.setLayoutProperty("visibility", "none")), (d = (c = this.map) == null ? void 0 : c.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) == null || d.setLayoutProperty("visibility", "visible"), (p = this.map) != null && p.getLayer((h = this.viewport) == null ? void 0 : h.rampColorLayer) && ((b = this.map) != null && b.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && this.mapProjection === "mercator" && ((E = this.map) == null || E.moveLayer((x = this.viewport) == null ? void 0 : x.rampColorLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)), e && ((I = this.map) == null || I.moveLayer(this.helper.mapboxCustomer.layers.countryBoundary.id, (f = this.viewport) == null ? void 0 : f.rampColorLayer))) : ((A = (_ = this.map) == null ? void 0 : _.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) == null || A.setLayoutProperty("visibility", "none"), this.enc && this.map.getZoom() > 3 ? (m = (w = this.map) == null ? void 0 : w.getLayer(this.enc)) == null || m.setLayoutProperty("visibility", "visible") : ((u = (L = this.map) == null ? void 0 : L.getLayer("i4")) == null || u.setLayoutProperty("visibility", "none"), (z = (v = this.map) == null ? void 0 : v.getLayer("hi")) == null || z.setLayoutProperty("visibility", "none"))), this.$emit("activeWeatherLayers", this.activeWeatherLayers);
|
|
9307
9313
|
},
|
|
9308
9314
|
immediate: !0
|
|
9309
9315
|
},
|
|
@@ -9359,59 +9365,59 @@ const js = {
|
|
|
9359
9365
|
const e = (/* @__PURE__ */ new Date()).valueOf();
|
|
9360
9366
|
let t = 0, r = 0;
|
|
9361
9367
|
if (this.map) {
|
|
9362
|
-
const x = ((i = this.map) == null ? void 0 : i.getZoom()) + 1, E = (s = this.map) == null ? void 0 : s.getBounds(),
|
|
9368
|
+
const x = ((i = this.map) == null ? void 0 : i.getZoom()) + 1, E = (s = this.map) == null ? void 0 : s.getBounds(), f = `${E._sw.lng},${E._sw.lat},${E._ne.lng},${E._ne.lat}`;
|
|
9363
9369
|
if (this.particleFactor && ((n = this.$refs.layer) != null && n.autoActive)) {
|
|
9364
|
-
const
|
|
9365
|
-
var
|
|
9366
|
-
return ((
|
|
9370
|
+
const I = Ze.WEATHER_LAYERS.find((_) => {
|
|
9371
|
+
var A;
|
|
9372
|
+
return ((A = _.peer) == null ? void 0 : A.weight) === this.particleFactor.weight;
|
|
9367
9373
|
});
|
|
9368
|
-
this.particleFactor.particle && (this.showWindParticle || this.showCurrentParticle) ? this.weatherWeight = this.weatherWeight &
|
|
9374
|
+
this.particleFactor.particle && (this.showWindParticle || this.showCurrentParticle) ? this.weatherWeight = this.weatherWeight & I.weight ? this.weatherWeight : this.weatherWeight + I.weight : this.weatherWeight = this.weatherWeight & I.weight ? this.weatherWeight - I.weight : this.weatherWeight;
|
|
9369
9375
|
}
|
|
9370
9376
|
if (this.weatherWeight > 0) {
|
|
9371
|
-
let
|
|
9372
|
-
if (a.tropicals || this.weatherWeight & 256 && (_ = this.weatherLayers.tropicals, _ && (
|
|
9373
|
-
const
|
|
9377
|
+
let I = this.weatherWeight, _;
|
|
9378
|
+
if (a.tropicals || this.weatherWeight & 256 && (_ = this.weatherLayers.tropicals, _ && (I -= 256, _.version = Math.random() + 1)), I > 0) {
|
|
9379
|
+
const A = this.assistGateway[Math.round(Math.random() * (this.assistGateway.length - 1))], w = await He.get(`${A}/api/arc/weather/layers2/links?l=${I}&v=${this.source}&z=${x}&bbox=${f}&t=${this.ts}`, {
|
|
9374
9380
|
headers: {
|
|
9375
9381
|
Authorization: this.token || this.defaultMeteoToken
|
|
9376
9382
|
}
|
|
9377
9383
|
});
|
|
9378
|
-
if (r = (/* @__PURE__ */ new Date()).valueOf() - (e + t), console.log("weather links elapsed: ", r, ", total: ", t += r), ((l =
|
|
9379
|
-
const m = (c =
|
|
9380
|
-
for (const
|
|
9381
|
-
|
|
9382
|
-
|
|
9384
|
+
if (r = (/* @__PURE__ */ new Date()).valueOf() - (e + t), console.log("weather links elapsed: ", r, ", total: ", t += r), ((l = w == null ? void 0 : w.data) == null ? void 0 : l.code) === 0) {
|
|
9385
|
+
const m = (c = w == null ? void 0 : w.data) == null ? void 0 : c.data, L = [];
|
|
9386
|
+
for (const v in m)
|
|
9387
|
+
v !== "tropicals" && L.push(
|
|
9388
|
+
He.get(m[v], {
|
|
9383
9389
|
headers: {
|
|
9384
9390
|
Authorization: this.token || this.defaultMeteoToken,
|
|
9385
|
-
key:
|
|
9391
|
+
key: v
|
|
9386
9392
|
},
|
|
9387
|
-
responseType: /\.(jpg|png)$/.test(m[
|
|
9388
|
-
}).catch((
|
|
9389
|
-
console.log(`[${
|
|
9393
|
+
responseType: /\.(jpg|png)$/.test(m[v]) ? "blob" : "json"
|
|
9394
|
+
}).catch((z) => {
|
|
9395
|
+
console.log(`[${v}] fetch layer error: ${z}`);
|
|
9390
9396
|
})
|
|
9391
9397
|
);
|
|
9392
|
-
const
|
|
9393
|
-
this.weatherLayers = {},
|
|
9394
|
-
var N,
|
|
9395
|
-
const
|
|
9396
|
-
D &&
|
|
9397
|
-
raw:
|
|
9398
|
-
type: ((G =
|
|
9399
|
-
etime:
|
|
9398
|
+
const u = await Promise.all(L);
|
|
9399
|
+
this.weatherLayers = {}, u.map((v) => {
|
|
9400
|
+
var N, H, j, G;
|
|
9401
|
+
const z = ((N = v == null ? void 0 : v.data) == null ? void 0 : N.data) || (v == null ? void 0 : v.data), D = (j = (H = v == null ? void 0 : v.config) == null ? void 0 : H.headers) == null ? void 0 : j.key;
|
|
9402
|
+
D && z && (this.weatherLayers[D] = {
|
|
9403
|
+
raw: z,
|
|
9404
|
+
type: ((G = v == null ? void 0 : v.config) == null ? void 0 : G.responseType) === "blob" ? "image" : "json",
|
|
9405
|
+
etime: w.data.etime
|
|
9400
9406
|
});
|
|
9401
|
-
}), m.tropicals &&
|
|
9407
|
+
}), m.tropicals && He.get(m.tropicals, {
|
|
9402
9408
|
headers: {
|
|
9403
9409
|
Authorization: this.token || this.defaultMeteoToken,
|
|
9404
9410
|
key: "tropicals"
|
|
9405
9411
|
}
|
|
9406
|
-
}).then((
|
|
9407
|
-
var N,
|
|
9408
|
-
const
|
|
9412
|
+
}).then((v) => {
|
|
9413
|
+
var N, H, j;
|
|
9414
|
+
const z = ct.convert2Geojson(((N = v == null ? void 0 : v.data) == null ? void 0 : N.data) || (v == null ? void 0 : v.data)), D = (j = (H = v == null ? void 0 : v.config) == null ? void 0 : H.headers) == null ? void 0 : j.key;
|
|
9409
9415
|
this.weatherLayers[D] = {
|
|
9410
|
-
data:
|
|
9416
|
+
data: z,
|
|
9411
9417
|
active: !0,
|
|
9412
9418
|
cached: !1,
|
|
9413
9419
|
type: "json",
|
|
9414
|
-
etime:
|
|
9420
|
+
etime: w.data.etime,
|
|
9415
9421
|
version: Math.random() + 1
|
|
9416
9422
|
};
|
|
9417
9423
|
});
|
|
@@ -9422,7 +9428,7 @@ const js = {
|
|
|
9422
9428
|
type: "json",
|
|
9423
9429
|
direction: m,
|
|
9424
9430
|
height: { raw: L },
|
|
9425
|
-
etime:
|
|
9431
|
+
etime: w.data.etime
|
|
9426
9432
|
};
|
|
9427
9433
|
}
|
|
9428
9434
|
if (this.weatherLayers["current-direction"] || this.weatherLayers["current-speed"]) {
|
|
@@ -9431,7 +9437,7 @@ const js = {
|
|
|
9431
9437
|
type: "json",
|
|
9432
9438
|
direction: m,
|
|
9433
9439
|
speed: { raw: L },
|
|
9434
|
-
etime:
|
|
9440
|
+
etime: w.data.etime
|
|
9435
9441
|
};
|
|
9436
9442
|
}
|
|
9437
9443
|
}
|
|
@@ -9449,50 +9455,50 @@ const js = {
|
|
|
9449
9455
|
let n = !1, l = !1, c = !1, d = !1;
|
|
9450
9456
|
if (this.otherWeight & 2048 && (s = this.otherWeight - 2048, n = !0), this.otherWeight & 8192 && (s = s - 8192, l = !0), this.otherWeight & 16384 && (s = s - 16384, c = !0), this.otherWeight & 32768 && (s = s - 32768, d = !0), s) {
|
|
9451
9457
|
if (a.all) {
|
|
9452
|
-
const h = this.assistGateway[Math.round(Math.random() * (this.assistGateway.length - 1))], p = await
|
|
9458
|
+
const h = this.assistGateway[Math.round(Math.random() * (this.assistGateway.length - 1))], p = await He.get(`${h}/api/arc/other/layers/links?l=${s}&t=${this.ts}`, {
|
|
9453
9459
|
headers: {
|
|
9454
9460
|
Authorization: this.token || this.defaultMeteoToken
|
|
9455
9461
|
}
|
|
9456
9462
|
});
|
|
9457
9463
|
if (((e = p == null ? void 0 : p.data) == null ? void 0 : e.code) === 0) {
|
|
9458
9464
|
const b = (t = p == null ? void 0 : p.data) == null ? void 0 : t.data, x = [];
|
|
9459
|
-
for (const
|
|
9465
|
+
for (const f in b)
|
|
9460
9466
|
x.push(
|
|
9461
|
-
|
|
9467
|
+
He.get(b[f], {
|
|
9462
9468
|
headers: {
|
|
9463
9469
|
Authorization: this.token || this.defaultMeteoToken,
|
|
9464
|
-
key:
|
|
9470
|
+
key: f
|
|
9465
9471
|
}
|
|
9466
9472
|
})
|
|
9467
9473
|
);
|
|
9468
9474
|
const E = await Promise.all(x);
|
|
9469
|
-
this.otherLayers = { enc: n, world12nm: l, worldMarine: c, chinaRoute: d }, E.map((
|
|
9470
|
-
var
|
|
9471
|
-
const
|
|
9472
|
-
this.otherLayers[_] =
|
|
9475
|
+
this.otherLayers = { enc: n, world12nm: l, worldMarine: c, chinaRoute: d }, E.map((f) => {
|
|
9476
|
+
var A, w, m;
|
|
9477
|
+
const I = ((A = f == null ? void 0 : f.data) == null ? void 0 : A.data) || (f == null ? void 0 : f.data), _ = (m = (w = f == null ? void 0 : f.config) == null ? void 0 : w.headers) == null ? void 0 : m.key;
|
|
9478
|
+
this.otherLayers[_] = I;
|
|
9473
9479
|
});
|
|
9474
9480
|
}
|
|
9475
9481
|
} else if (a.dayNight && s & 1024) {
|
|
9476
|
-
const h = this.assistGateway[Math.round(Math.random() * (this.assistGateway.length - 1))], p = await
|
|
9482
|
+
const h = this.assistGateway[Math.round(Math.random() * (this.assistGateway.length - 1))], p = await He.get(`${h}/api/arc/other/layers/links?l=1024&t=${this.ts}`, {
|
|
9477
9483
|
headers: {
|
|
9478
9484
|
Authorization: this.token || this.defaultMeteoToken
|
|
9479
9485
|
}
|
|
9480
9486
|
});
|
|
9481
9487
|
if (((r = p == null ? void 0 : p.data) == null ? void 0 : r.code) === 0) {
|
|
9482
9488
|
const b = (i = p == null ? void 0 : p.data) == null ? void 0 : i.data, x = [];
|
|
9483
|
-
for (const
|
|
9489
|
+
for (const f in b)
|
|
9484
9490
|
x.push(
|
|
9485
|
-
|
|
9491
|
+
He.get(b[f], {
|
|
9486
9492
|
headers: {
|
|
9487
9493
|
Authorization: this.token || this.defaultMeteoToken,
|
|
9488
|
-
key:
|
|
9494
|
+
key: f
|
|
9489
9495
|
}
|
|
9490
9496
|
})
|
|
9491
9497
|
);
|
|
9492
|
-
(await Promise.all(x)).map((
|
|
9493
|
-
var
|
|
9494
|
-
const
|
|
9495
|
-
this.otherLayers[_] =
|
|
9498
|
+
(await Promise.all(x)).map((f) => {
|
|
9499
|
+
var A, w, m;
|
|
9500
|
+
const I = ((A = f == null ? void 0 : f.data) == null ? void 0 : A.data) || (f == null ? void 0 : f.data), _ = (m = (w = f == null ? void 0 : f.config) == null ? void 0 : w.headers) == null ? void 0 : m.key;
|
|
9501
|
+
this.otherLayers[_] = I;
|
|
9496
9502
|
});
|
|
9497
9503
|
}
|
|
9498
9504
|
}
|
|
@@ -9550,250 +9556,250 @@ const js = {
|
|
|
9550
9556
|
var d, h, p, b, x, E;
|
|
9551
9557
|
const a = (/* @__PURE__ */ new Date()).valueOf();
|
|
9552
9558
|
let e = 0, t = 0;
|
|
9553
|
-
const r = (d = this.map) == null ? void 0 : d.getBounds(), i = this.map.getZoom(), s =
|
|
9554
|
-
for (const
|
|
9555
|
-
let
|
|
9556
|
-
if (this.weatherLayers[
|
|
9559
|
+
const r = (d = this.map) == null ? void 0 : d.getBounds(), i = this.map.getZoom(), s = le.convertToStdLng(r._sw.lng), n = le.convertToStdLng(r._ne.lng), l = Math.floor(r._sw.lat), c = Math.ceil(r._ne.lat);
|
|
9560
|
+
for (const f in this.weatherLayers) {
|
|
9561
|
+
let I = !1;
|
|
9562
|
+
if (this.weatherLayers[f].active && this.weatherLayers[f].type === "json") {
|
|
9557
9563
|
let _ = [];
|
|
9558
|
-
if (
|
|
9559
|
-
|
|
9560
|
-
const
|
|
9561
|
-
for (const m in
|
|
9564
|
+
if (f === "swell") {
|
|
9565
|
+
I = !0;
|
|
9566
|
+
const A = ((h = this.weatherLayers[f]) == null ? void 0 : h.direction) || {};
|
|
9567
|
+
for (const m in A)
|
|
9562
9568
|
if (m > l && m < c && (!(i <= this.zoom) || m % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
|
|
9563
|
-
const L =
|
|
9564
|
-
s > n ? L.forEach((
|
|
9565
|
-
var
|
|
9569
|
+
const L = A[m].lng;
|
|
9570
|
+
s > n ? L.forEach((u, v) => {
|
|
9571
|
+
var z, D, N, H, j, G;
|
|
9566
9572
|
if (i < 2) {
|
|
9567
|
-
if ((
|
|
9568
|
-
const W =
|
|
9569
|
-
val: ((
|
|
9570
|
-
spd: (N =
|
|
9573
|
+
if ((u >= 0 && u <= 360 || u >= -360 && u <= 0) && u % 10 === 0) {
|
|
9574
|
+
const W = Q.point([u, m], {
|
|
9575
|
+
val: ((z = A[m].val) == null ? void 0 : z[v]) || ((D = A[m].dir) == null ? void 0 : D[v]),
|
|
9576
|
+
spd: (N = A[m].spd) == null ? void 0 : N[v]
|
|
9571
9577
|
});
|
|
9572
9578
|
_.push(W);
|
|
9573
9579
|
}
|
|
9574
|
-
} else if ((
|
|
9575
|
-
const W =
|
|
9576
|
-
val: ((
|
|
9577
|
-
spd: (G =
|
|
9580
|
+
} else if ((u >= s && u <= 180 || u >= -180 && u <= n) && (!(i <= this.zoom) || u % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
|
|
9581
|
+
const W = Q.point([u, m], {
|
|
9582
|
+
val: ((H = A[m].val) == null ? void 0 : H[v]) || ((j = A[m].dir) == null ? void 0 : j[v]),
|
|
9583
|
+
spd: (G = A[m].spd) == null ? void 0 : G[v]
|
|
9578
9584
|
});
|
|
9579
9585
|
_.push(W);
|
|
9580
9586
|
}
|
|
9581
|
-
}) : L.forEach((
|
|
9582
|
-
var
|
|
9587
|
+
}) : L.forEach((u, v) => {
|
|
9588
|
+
var z, D, N, H, j, G;
|
|
9583
9589
|
if (s < 2) {
|
|
9584
|
-
if ((
|
|
9585
|
-
const W =
|
|
9586
|
-
val: ((
|
|
9587
|
-
spd: (N =
|
|
9590
|
+
if ((u >= 0 && u <= 360 || u >= -360 && u <= 0) && u % 10 === 0) {
|
|
9591
|
+
const W = Q.point([u, m], {
|
|
9592
|
+
val: ((z = A[m].val) == null ? void 0 : z[v]) || ((D = A[m].dir) == null ? void 0 : D[v]),
|
|
9593
|
+
spd: (N = A[m].spd) == null ? void 0 : N[v]
|
|
9588
9594
|
});
|
|
9589
9595
|
_.push(W);
|
|
9590
9596
|
}
|
|
9591
|
-
} else if (
|
|
9592
|
-
const W =
|
|
9593
|
-
val: ((
|
|
9594
|
-
spd: (G =
|
|
9597
|
+
} else if (u >= s && u <= n && (!(i <= this.zoom) || u % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
|
|
9598
|
+
const W = Q.point([u, m], {
|
|
9599
|
+
val: ((H = A[m].val) == null ? void 0 : H[v]) || ((j = A[m].dir) == null ? void 0 : j[v]),
|
|
9600
|
+
spd: (G = A[m].spd) == null ? void 0 : G[v]
|
|
9595
9601
|
});
|
|
9596
9602
|
_.push(W);
|
|
9597
9603
|
}
|
|
9598
9604
|
});
|
|
9599
9605
|
}
|
|
9600
9606
|
t = (/* @__PURE__ */ new Date()).valueOf() - (a + e), console.log("swell direction elapsed: ", t, ", total: ", e += t);
|
|
9601
|
-
const
|
|
9602
|
-
if (
|
|
9603
|
-
if (!
|
|
9607
|
+
const w = this.weatherLayers[f].height;
|
|
9608
|
+
if (w) {
|
|
9609
|
+
if (!w.data) {
|
|
9604
9610
|
const m = [];
|
|
9605
|
-
for (const L in (p =
|
|
9606
|
-
const
|
|
9607
|
-
for (const
|
|
9611
|
+
for (const L in (p = w.raw) == null ? void 0 : p.LineString) {
|
|
9612
|
+
const u = w.raw.LineString[L];
|
|
9613
|
+
for (const v of u)
|
|
9608
9614
|
m.push(
|
|
9609
|
-
|
|
9615
|
+
Q.lineString(v, {
|
|
9610
9616
|
val: Number(L)
|
|
9611
9617
|
})
|
|
9612
9618
|
);
|
|
9613
|
-
|
|
9619
|
+
w.data = Q.featureCollection(m);
|
|
9614
9620
|
}
|
|
9615
9621
|
}
|
|
9616
|
-
if (
|
|
9617
|
-
const m = this.handleBboxClip(
|
|
9622
|
+
if (w.data) {
|
|
9623
|
+
const m = this.handleBboxClip(w.data, r);
|
|
9618
9624
|
_ = _.concat(m);
|
|
9619
9625
|
}
|
|
9620
9626
|
t = (/* @__PURE__ */ new Date()).valueOf() - (a + e), console.log("swell height elapsed: ", t, ", total: ", e += t);
|
|
9621
9627
|
}
|
|
9622
|
-
} else if (
|
|
9623
|
-
|
|
9624
|
-
const
|
|
9625
|
-
for (const m in
|
|
9628
|
+
} else if (f === "current" && this.showCurrentIsoband) {
|
|
9629
|
+
I = !0;
|
|
9630
|
+
const A = ((b = this.weatherLayers[f]) == null ? void 0 : b.direction) || {};
|
|
9631
|
+
for (const m in A)
|
|
9626
9632
|
if (m > l && m < c && (!(i <= this.zoom) || m % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
|
|
9627
|
-
const L =
|
|
9628
|
-
s > n ? L.forEach((
|
|
9629
|
-
var
|
|
9633
|
+
const L = A[m].lng;
|
|
9634
|
+
s > n ? L.forEach((u, v) => {
|
|
9635
|
+
var z, D, N, H, j, G;
|
|
9630
9636
|
if (i < 2) {
|
|
9631
|
-
if ((
|
|
9632
|
-
const W =
|
|
9633
|
-
val: ((
|
|
9634
|
-
spd: (N =
|
|
9637
|
+
if ((u >= 0 && u <= 360 || u >= -360 && u <= 0) && u % 10 === 0) {
|
|
9638
|
+
const W = Q.point([u, m], {
|
|
9639
|
+
val: ((z = A[m].val) == null ? void 0 : z[v]) || ((D = A[m].dir) == null ? void 0 : D[v]),
|
|
9640
|
+
spd: (N = A[m].spd) == null ? void 0 : N[v]
|
|
9635
9641
|
});
|
|
9636
9642
|
_.push(W);
|
|
9637
9643
|
}
|
|
9638
|
-
} else if ((
|
|
9639
|
-
const W =
|
|
9640
|
-
val: ((
|
|
9641
|
-
spd: (G =
|
|
9644
|
+
} else if ((u >= s && u <= 180 || u >= -180 && u <= n) && (!(i <= this.zoom) || u % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
|
|
9645
|
+
const W = Q.point([u, m], {
|
|
9646
|
+
val: ((H = A[m].val) == null ? void 0 : H[v]) || ((j = A[m].dir) == null ? void 0 : j[v]),
|
|
9647
|
+
spd: (G = A[m].spd) == null ? void 0 : G[v]
|
|
9642
9648
|
});
|
|
9643
9649
|
_.push(W);
|
|
9644
9650
|
}
|
|
9645
|
-
}) : L.forEach((
|
|
9646
|
-
var
|
|
9651
|
+
}) : L.forEach((u, v) => {
|
|
9652
|
+
var z, D, N, H, j, G;
|
|
9647
9653
|
if (s < 2) {
|
|
9648
|
-
if ((
|
|
9649
|
-
const W =
|
|
9650
|
-
val: ((
|
|
9651
|
-
spd: (N =
|
|
9654
|
+
if ((u >= 0 && u <= 360 || u >= -360 && u <= 0) && u % 10 === 0) {
|
|
9655
|
+
const W = Q.point([u, m], {
|
|
9656
|
+
val: ((z = A[m].val) == null ? void 0 : z[v]) || ((D = A[m].dir) == null ? void 0 : D[v]),
|
|
9657
|
+
spd: (N = A[m].spd) == null ? void 0 : N[v]
|
|
9652
9658
|
});
|
|
9653
9659
|
_.push(W);
|
|
9654
9660
|
}
|
|
9655
|
-
} else if (
|
|
9656
|
-
const W =
|
|
9657
|
-
val: ((
|
|
9658
|
-
spd: (G =
|
|
9661
|
+
} else if (u >= s && u <= n && (!(i <= this.zoom) || u % (i < this.zoom / 2 ? 5 : 3) === 0)) {
|
|
9662
|
+
const W = Q.point([u, m], {
|
|
9663
|
+
val: ((H = A[m].val) == null ? void 0 : H[v]) || ((j = A[m].dir) == null ? void 0 : j[v]),
|
|
9664
|
+
spd: (G = A[m].spd) == null ? void 0 : G[v]
|
|
9659
9665
|
});
|
|
9660
9666
|
_.push(W);
|
|
9661
9667
|
}
|
|
9662
9668
|
});
|
|
9663
9669
|
}
|
|
9664
9670
|
t = (/* @__PURE__ */ new Date()).valueOf() - (a + e), console.log("current direction elapsed: ", t, ", total: ", e += t);
|
|
9665
|
-
const
|
|
9666
|
-
if (
|
|
9667
|
-
if (!
|
|
9671
|
+
const w = this.weatherLayers[f].speed;
|
|
9672
|
+
if (w) {
|
|
9673
|
+
if (!w.data) {
|
|
9668
9674
|
const L = [];
|
|
9669
|
-
for (const
|
|
9670
|
-
const
|
|
9671
|
-
for (const
|
|
9675
|
+
for (const u in (x = w.raw) == null ? void 0 : x.Polygon) {
|
|
9676
|
+
const v = w.raw.Polygon[u];
|
|
9677
|
+
for (const z of v)
|
|
9672
9678
|
L.push(
|
|
9673
|
-
|
|
9674
|
-
val: Number(
|
|
9679
|
+
Q.polygon(z, {
|
|
9680
|
+
val: Number(u)
|
|
9675
9681
|
})
|
|
9676
9682
|
);
|
|
9677
9683
|
}
|
|
9678
|
-
|
|
9684
|
+
w.data = Q.featureCollection(L);
|
|
9679
9685
|
}
|
|
9680
|
-
const m = i < this.zoom ?
|
|
9686
|
+
const m = i < this.zoom ? w.data.features.filter((L) => L.properties.val > 0.5) : w.data.features;
|
|
9681
9687
|
_ = _.concat(m), t = (/* @__PURE__ */ new Date()).valueOf() - (a + e), console.log("current speed elapsed: ", t, ", total: ", e += t);
|
|
9682
9688
|
}
|
|
9683
|
-
} else if (
|
|
9684
|
-
|
|
9685
|
-
const
|
|
9686
|
-
for (const
|
|
9687
|
-
if (
|
|
9688
|
-
const m =
|
|
9689
|
-
s > n ? m.forEach((L,
|
|
9690
|
-
var
|
|
9689
|
+
} else if (f === "wind" && this.showWindFeather) {
|
|
9690
|
+
I = !0;
|
|
9691
|
+
const A = this.weatherLayers.wind.raw;
|
|
9692
|
+
for (const w in A)
|
|
9693
|
+
if (w > l && w < c && (!(i <= this.zoom) || w % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
|
|
9694
|
+
const m = A[w].lng;
|
|
9695
|
+
s > n ? m.forEach((L, u) => {
|
|
9696
|
+
var v, z, D, N;
|
|
9691
9697
|
if (i < 2) {
|
|
9692
9698
|
if ((L >= 0 && L <= 360 || L >= -360 && L <= 0) && L % 10 === 0) {
|
|
9693
|
-
const
|
|
9694
|
-
dir: ((
|
|
9695
|
-
spd:
|
|
9699
|
+
const H = Q.point([L, w], {
|
|
9700
|
+
dir: ((v = A[w].val) == null ? void 0 : v[u]) || ((z = A[w].dir) == null ? void 0 : z[u]),
|
|
9701
|
+
spd: A[w].spd[u]
|
|
9696
9702
|
});
|
|
9697
|
-
_.push(
|
|
9703
|
+
_.push(H);
|
|
9698
9704
|
}
|
|
9699
9705
|
} else if ((L >= s && L <= 180 || L >= -180 && L <= n) && (!(i <= this.zoom) || L % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
|
|
9700
|
-
const
|
|
9701
|
-
dir: ((D =
|
|
9702
|
-
spd:
|
|
9706
|
+
const H = Q.point([L, w], {
|
|
9707
|
+
dir: ((D = A[w].val) == null ? void 0 : D[u]) || ((N = A[w].dir) == null ? void 0 : N[u]),
|
|
9708
|
+
spd: A[w].spd[u]
|
|
9703
9709
|
});
|
|
9704
|
-
_.push(
|
|
9710
|
+
_.push(H);
|
|
9705
9711
|
}
|
|
9706
|
-
}) : m.forEach((L,
|
|
9707
|
-
var
|
|
9712
|
+
}) : m.forEach((L, u) => {
|
|
9713
|
+
var v, z, D, N;
|
|
9708
9714
|
if (i < 2) {
|
|
9709
9715
|
if ((L >= 0 && L <= 360 || L >= -360 && L <= 0) && L % 10 === 0) {
|
|
9710
|
-
const
|
|
9711
|
-
dir: ((
|
|
9712
|
-
spd:
|
|
9716
|
+
const H = Q.point([L, w], {
|
|
9717
|
+
dir: ((v = A[w].val) == null ? void 0 : v[u]) || ((z = A[w].dir) == null ? void 0 : z[u]),
|
|
9718
|
+
spd: A[w].spd[u]
|
|
9713
9719
|
});
|
|
9714
|
-
_.push(
|
|
9720
|
+
_.push(H);
|
|
9715
9721
|
}
|
|
9716
9722
|
} else if (L >= s && L <= n && (!(i <= this.zoom) || L % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
|
|
9717
|
-
const
|
|
9718
|
-
dir: ((D =
|
|
9719
|
-
spd:
|
|
9723
|
+
const H = Q.point([L, w], {
|
|
9724
|
+
dir: ((D = A[w].val) == null ? void 0 : D[u]) || ((N = A[w].dir) == null ? void 0 : N[u]),
|
|
9725
|
+
spd: A[w].spd[u]
|
|
9720
9726
|
});
|
|
9721
|
-
_.push(
|
|
9727
|
+
_.push(H);
|
|
9722
9728
|
}
|
|
9723
9729
|
});
|
|
9724
9730
|
}
|
|
9725
9731
|
t = (/* @__PURE__ */ new Date()).valueOf() - (a + e), console.log("wind barb elapsed: ", t, ", total: ", e += t);
|
|
9726
|
-
} else if (
|
|
9727
|
-
if (this.weatherLayers[
|
|
9728
|
-
_ = this.weatherLayers[
|
|
9732
|
+
} else if (f === "sig-wave-height") {
|
|
9733
|
+
if (this.weatherLayers[f].data)
|
|
9734
|
+
_ = this.weatherLayers[f].data;
|
|
9729
9735
|
else {
|
|
9730
|
-
|
|
9731
|
-
const
|
|
9732
|
-
if (
|
|
9733
|
-
const
|
|
9734
|
-
for (const m in
|
|
9735
|
-
const L =
|
|
9736
|
-
for (const
|
|
9737
|
-
|
|
9738
|
-
|
|
9736
|
+
I = !0;
|
|
9737
|
+
const A = this.weatherLayers[f].raw;
|
|
9738
|
+
if (A) {
|
|
9739
|
+
const w = [];
|
|
9740
|
+
for (const m in A.Polygon) {
|
|
9741
|
+
const L = A.Polygon[m];
|
|
9742
|
+
for (const u of L)
|
|
9743
|
+
w.push(
|
|
9744
|
+
Q.polygon(u, {
|
|
9739
9745
|
val: Number(m)
|
|
9740
9746
|
})
|
|
9741
9747
|
);
|
|
9742
9748
|
}
|
|
9743
|
-
for (const m in
|
|
9744
|
-
const L =
|
|
9745
|
-
for (const
|
|
9746
|
-
|
|
9747
|
-
|
|
9749
|
+
for (const m in A.MultiPolygon) {
|
|
9750
|
+
const L = A.MultiPolygon[m];
|
|
9751
|
+
for (const u of L)
|
|
9752
|
+
w.push(
|
|
9753
|
+
Q.multiPolygon(u, {
|
|
9748
9754
|
val: Number(m)
|
|
9749
9755
|
})
|
|
9750
9756
|
);
|
|
9751
9757
|
}
|
|
9752
|
-
for (const m in
|
|
9753
|
-
const L =
|
|
9754
|
-
for (let
|
|
9755
|
-
|
|
9756
|
-
|
|
9757
|
-
val: Number(L.val[
|
|
9758
|
+
for (const m in A.Point) {
|
|
9759
|
+
const L = A.Point[m];
|
|
9760
|
+
for (let u = 0; u < ((E = L.lng) == null ? void 0 : E.length); u++)
|
|
9761
|
+
w.push(
|
|
9762
|
+
Q.point([L.lng[u], m], {
|
|
9763
|
+
val: Number(L.val[u])
|
|
9758
9764
|
})
|
|
9759
9765
|
);
|
|
9760
9766
|
}
|
|
9761
|
-
_ = _.concat(
|
|
9767
|
+
_ = _.concat(w);
|
|
9762
9768
|
}
|
|
9763
9769
|
}
|
|
9764
9770
|
t = (/* @__PURE__ */ new Date()).valueOf() - (a + e), console.log("sigWave elapsed: ", t, ", total: ", e += t);
|
|
9765
|
-
} else if (
|
|
9766
|
-
if (this.weatherLayers[
|
|
9767
|
-
_ = this.weatherLayers[
|
|
9771
|
+
} else if (f === "prmsl") {
|
|
9772
|
+
if (this.weatherLayers[f].data)
|
|
9773
|
+
_ = this.weatherLayers[f].data;
|
|
9768
9774
|
else {
|
|
9769
|
-
|
|
9770
|
-
const
|
|
9771
|
-
if (
|
|
9772
|
-
const
|
|
9773
|
-
for (const m in
|
|
9774
|
-
const L =
|
|
9775
|
-
for (const
|
|
9776
|
-
|
|
9777
|
-
|
|
9775
|
+
I = !0;
|
|
9776
|
+
const A = this.weatherLayers[f].raw;
|
|
9777
|
+
if (A) {
|
|
9778
|
+
const w = [];
|
|
9779
|
+
for (const m in A.LineString) {
|
|
9780
|
+
const L = A.LineString[m];
|
|
9781
|
+
for (const u of L)
|
|
9782
|
+
w.push(
|
|
9783
|
+
Q.lineString(u, {
|
|
9778
9784
|
val: Number(m)
|
|
9779
9785
|
})
|
|
9780
9786
|
);
|
|
9781
9787
|
}
|
|
9782
|
-
for (const m in
|
|
9783
|
-
|
|
9784
|
-
L =
|
|
9785
|
-
|
|
9786
|
-
val:
|
|
9787
|
-
type:
|
|
9788
|
+
for (const m in A.Point)
|
|
9789
|
+
A.Point[m].lng.forEach((L, u) => {
|
|
9790
|
+
L = le.convertToStdLng(L), w.push(
|
|
9791
|
+
Q.point([L, m], {
|
|
9792
|
+
val: A.Point[m].val[u],
|
|
9793
|
+
type: A.Point[m].type[u]
|
|
9788
9794
|
})
|
|
9789
9795
|
);
|
|
9790
9796
|
});
|
|
9791
|
-
_ = _.concat(
|
|
9797
|
+
_ = _.concat(w);
|
|
9792
9798
|
}
|
|
9793
9799
|
}
|
|
9794
9800
|
t = (/* @__PURE__ */ new Date()).valueOf() - (a + e), console.log("prmsl elapsed: ", t, ", total: ", e += t);
|
|
9795
9801
|
}
|
|
9796
|
-
_.length && (this.weatherLayers[
|
|
9802
|
+
_.length && (this.weatherLayers[f].data = Q.featureCollection(_)), I && (this.weatherLayers[f].version = Math.random() + 1);
|
|
9797
9803
|
}
|
|
9798
9804
|
}
|
|
9799
9805
|
},
|
|
@@ -9804,14 +9810,14 @@ const js = {
|
|
|
9804
9810
|
this.handleDrawWeather4Json(), !this.activeWeatherLayers.some((l) => l.key === "wind" && l.particle === !0 || l.key === "current" && l.particle === !0 || l.key === "ice-edge" || l.key === "ice-thickness" || l.key === "ice-cover" || l.key === "temp" || l.key === "water-temp") && this.map.getZoom() > 3 && this.enc ? (t = (e = this.map) == null ? void 0 : e.getLayer(this.enc)) == null || t.setLayoutProperty("visibility", "visible") : ((i = (r = this.map) == null ? void 0 : r.getLayer("i4")) == null || i.setLayoutProperty("visibility", "none"), (n = (s = this.map) == null ? void 0 : s.getLayer("hi")) == null || n.setLayoutProperty("visibility", "none"));
|
|
9805
9811
|
},
|
|
9806
9812
|
handleBboxClip(a, e) {
|
|
9807
|
-
const t = [], r =
|
|
9813
|
+
const t = [], r = le.convertToStdLng(e._sw.lng), i = le.convertToStdLng(e._ne.lng);
|
|
9808
9814
|
return a.features.forEach((s) => {
|
|
9809
9815
|
if (s.geometry.type !== "Point")
|
|
9810
9816
|
if (r > i) {
|
|
9811
|
-
let n = [r, e._sw.lat, 180, e._ne.lat], l =
|
|
9812
|
-
l.geometry.coordinates.length && t.push(l), n = [-180, e._sw.lat, i, e._ne.lat], l =
|
|
9817
|
+
let n = [r, e._sw.lat, 180, e._ne.lat], l = Q.bboxClip(s, n);
|
|
9818
|
+
l.geometry.coordinates.length && t.push(l), n = [-180, e._sw.lat, i, e._ne.lat], l = Q.bboxClip(s, n), l.geometry.coordinates.length && t.push(l);
|
|
9813
9819
|
} else {
|
|
9814
|
-
const n = [r, e._sw.lat, i, e._ne.lat], l =
|
|
9820
|
+
const n = [r, e._sw.lat, i, e._ne.lat], l = Q.bboxClip(s, n);
|
|
9815
9821
|
l.geometry.coordinates.length && t.push(l);
|
|
9816
9822
|
}
|
|
9817
9823
|
else
|
|
@@ -9829,8 +9835,8 @@ const js = {
|
|
|
9829
9835
|
this.handleBeforeLayerToggle();
|
|
9830
9836
|
},
|
|
9831
9837
|
handleBeforeLayerToggle() {
|
|
9832
|
-
var a, e, t, r, i, s, n, l, c, d, h, p, b, x, E,
|
|
9833
|
-
(a = this.map) != null && a.getLayer(this.beforeLayer) && ((e = this.activeWeatherLayers) != null && e.length || (t = this.otherLayers) != null && t["war-zones"] || (r = this.otherLayers) != null && r["gmdss-areas"] || (i = this.otherLayers) != null && i["load-lines"] || (s = this.otherLayers) != null && s["high-risk-area"] || (n = this.otherLayers) != null && n["time-zones"] || (l = this.otherLayers) != null && l.pirates || (c = this.otherLayers) != null && c.ports || (d = this.otherLayers) != null && d.enc || (h = this.otherLayers) != null && h.world12nm || (p = this.otherLayers) != null && p.worldMarine || (b = this.otherLayers) != null && b.chinaRoute || (x = this.otherLayers) != null && x["voluntary-reporting-area"] || (E = this.otherLayers) != null && E["eca-zones"] || (
|
|
9838
|
+
var a, e, t, r, i, s, n, l, c, d, h, p, b, x, E, f;
|
|
9839
|
+
(a = this.map) != null && a.getLayer(this.beforeLayer) && ((e = this.activeWeatherLayers) != null && e.length || (t = this.otherLayers) != null && t["war-zones"] || (r = this.otherLayers) != null && r["gmdss-areas"] || (i = this.otherLayers) != null && i["load-lines"] || (s = this.otherLayers) != null && s["high-risk-area"] || (n = this.otherLayers) != null && n["time-zones"] || (l = this.otherLayers) != null && l.pirates || (c = this.otherLayers) != null && c.ports || (d = this.otherLayers) != null && d.enc || (h = this.otherLayers) != null && h.world12nm || (p = this.otherLayers) != null && p.worldMarine || (b = this.otherLayers) != null && b.chinaRoute || (x = this.otherLayers) != null && x["voluntary-reporting-area"] || (E = this.otherLayers) != null && E["eca-zones"] || (f = this.otherLayers) != null && f["special-area"]) && this.map.setLayoutProperty(this.beforeLayer, "visibility", "visible");
|
|
9834
9840
|
},
|
|
9835
9841
|
handleDateChange(a = { tropicals: !1 }) {
|
|
9836
9842
|
this.fetchWeatherLayers(a), this.fetchOtherLayers({ dayNight: !0 });
|
|
@@ -9864,8 +9870,8 @@ const js = {
|
|
|
9864
9870
|
}
|
|
9865
9871
|
},
|
|
9866
9872
|
handle3dToggle(a) {
|
|
9867
|
-
var e, t, r, i, s, n, l, c, d, h, p, b, x, E,
|
|
9868
|
-
a ? (this.map.setProjection("globe"), this.mapProjection = "globe", (t = this.map) != null && t.getLayer((e = this.viewport) == null ? void 0 : e.rampColorLayer) && ((r = this.map) != null && r.getLayer(this.helper.mapboxCustomer.layers.water.id)) && ((s = this.map) == null || s.moveLayer((i = this.viewport) == null ? void 0 : i.rampColorLayer, this.helper.mapboxCustomer.layers.water.id)), (l = this.map) != null && l.getLayer((n = this.viewport) == null ? void 0 : n.particleLayer) && ((c = this.map) != null && c.getLayer(this.helper.mapboxCustomer.layers.water.id)) && ((h = this.map) == null || h.moveLayer((d = this.viewport) == null ? void 0 : d.particleLayer, this.helper.mapboxCustomer.layers.water.id))) : (this.map.setProjection("mercator"), this.mapProjection = "mercator", (b = this.map) != null && b.getLayer((p = this.viewport) == null ? void 0 : p.rampColorLayer) && ((x = this.map) != null && x.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && ((
|
|
9873
|
+
var e, t, r, i, s, n, l, c, d, h, p, b, x, E, f, I, _, A, w, m;
|
|
9874
|
+
a ? (this.map.setProjection("globe"), this.mapProjection = "globe", (t = this.map) != null && t.getLayer((e = this.viewport) == null ? void 0 : e.rampColorLayer) && ((r = this.map) != null && r.getLayer(this.helper.mapboxCustomer.layers.water.id)) && ((s = this.map) == null || s.moveLayer((i = this.viewport) == null ? void 0 : i.rampColorLayer, this.helper.mapboxCustomer.layers.water.id)), (l = this.map) != null && l.getLayer((n = this.viewport) == null ? void 0 : n.particleLayer) && ((c = this.map) != null && c.getLayer(this.helper.mapboxCustomer.layers.water.id)) && ((h = this.map) == null || h.moveLayer((d = this.viewport) == null ? void 0 : d.particleLayer, this.helper.mapboxCustomer.layers.water.id))) : (this.map.setProjection("mercator"), this.mapProjection = "mercator", (b = this.map) != null && b.getLayer((p = this.viewport) == null ? void 0 : p.rampColorLayer) && ((x = this.map) != null && x.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && ((f = this.map) == null || f.moveLayer((E = this.viewport) == null ? void 0 : E.rampColorLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)), (_ = this.map) != null && _.getLayer((I = this.viewport) == null ? void 0 : I.particleLayer) && ((A = this.map) != null && A.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && ((m = this.map) == null || m.moveLayer((w = this.viewport) == null ? void 0 : w.particleLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)));
|
|
9869
9875
|
},
|
|
9870
9876
|
handleParticle(a) {
|
|
9871
9877
|
this.particleFactor = a, this.weatherLayers[a.key] && (this.weatherLayers[a.key].particle = a.particle), this.activeWeatherLayers.map((r) => {
|
|
@@ -9889,9 +9895,9 @@ const js = {
|
|
|
9889
9895
|
class: "map-gl-home"
|
|
9890
9896
|
};
|
|
9891
9897
|
function Gs(a, e, t, r, i, s) {
|
|
9892
|
-
var
|
|
9893
|
-
const n = R("IdmGlLayer"), l = R("IdmENC"), c = R("IdmWorld12nm"), d = R("IdmWorldMarine"), h = R("IdmChinaRoute"), p = R("IdmSigWave"), b = R("IdmSwell"), x = R("IdmPrmsl"), E = R("IdmIceEdge"),
|
|
9894
|
-
return t.map ? (
|
|
9898
|
+
var V, ye, ne, fe, xe, be, _e, B, ke, Le, De, Be, ze, Ie, ie, J, P, Ce, K, Z, Se, S, Ae, Me, Te, Qe, M, O, Ge, Ue;
|
|
9899
|
+
const n = R("IdmGlLayer"), l = R("IdmENC"), c = R("IdmWorld12nm"), d = R("IdmWorldMarine"), h = R("IdmChinaRoute"), p = R("IdmSigWave"), b = R("IdmSwell"), x = R("IdmPrmsl"), E = R("IdmIceEdge"), f = R("IdmIceCover"), I = R("IdmIceThickness"), _ = R("IdmTropicals"), A = R("IdmCurrents"), w = R("IdmCurrentParticle"), m = R("IdmWindBarb"), L = R("IdmWindParticle"), u = R("IdmPrecip3h"), v = R("IdmVisibility"), z = R("IdmWaterTemp"), D = R("IdmTemp"), N = R("IdmWarZone"), H = R("IdmGmdssArea"), j = R("IdmEcaZone"), G = R("IdmAlertZone"), W = R("IdmPort"), ce = R("IdmLoadLine"), re = R("IdmTimezone"), de = R("IdmVRA"), we = R("IdmSpecialArea"), pe = R("IdmTerminator"), ve = R("IdmLatLng"), me = R("IdmMeasure"), U = R("IdmPoint");
|
|
9900
|
+
return t.map ? (g(), y("div", Ws, [
|
|
9895
9901
|
F(n, X({
|
|
9896
9902
|
ref: "layer",
|
|
9897
9903
|
map: t.map,
|
|
@@ -9907,47 +9913,47 @@ function Gs(a, e, t, r, i, s) {
|
|
|
9907
9913
|
"forecast-model": t.forecastModel,
|
|
9908
9914
|
onWeather: s.handleWeatherLayerChange,
|
|
9909
9915
|
onOther: s.handleOtherLayerChange,
|
|
9910
|
-
onToggleWindParticle: e[0] || (e[0] = (
|
|
9911
|
-
onToggleWindFeather: e[1] || (e[1] = (
|
|
9912
|
-
(i.showWindFeather =
|
|
9916
|
+
onToggleWindParticle: e[0] || (e[0] = (oe) => i.showWindParticle = oe),
|
|
9917
|
+
onToggleWindFeather: e[1] || (e[1] = (oe) => {
|
|
9918
|
+
(i.showWindFeather = oe) && s.handleDrawWeather4Json();
|
|
9913
9919
|
}),
|
|
9914
|
-
onToggleCurrentParticle: e[2] || (e[2] = (
|
|
9915
|
-
onToggleCurrentIsoband: e[3] || (e[3] = (
|
|
9916
|
-
(i.showCurrentIsoband =
|
|
9920
|
+
onToggleCurrentParticle: e[2] || (e[2] = (oe) => i.showCurrentParticle = oe),
|
|
9921
|
+
onToggleCurrentIsoband: e[3] || (e[3] = (oe) => {
|
|
9922
|
+
(i.showCurrentIsoband = oe) && s.handleDrawWeather4Json();
|
|
9917
9923
|
}),
|
|
9918
|
-
onToggleWindParticeVersion: e[4] || (e[4] = (
|
|
9919
|
-
onToggleCurrentParticeVersion: e[5] || (e[5] = (
|
|
9920
|
-
onCoordinate: e[6] || (e[6] = (
|
|
9921
|
-
onMeasure: e[7] || (e[7] = (
|
|
9922
|
-
onPoint: e[8] || (e[8] = (
|
|
9924
|
+
onToggleWindParticeVersion: e[4] || (e[4] = (oe) => i.toggleWindParticeVersion = Math.random()),
|
|
9925
|
+
onToggleCurrentParticeVersion: e[5] || (e[5] = (oe) => i.toggleCurrentParticeVersion = Math.random()),
|
|
9926
|
+
onCoordinate: e[6] || (e[6] = (oe) => i.showCoord = oe),
|
|
9927
|
+
onMeasure: e[7] || (e[7] = (oe) => i.showMeasure = oe),
|
|
9928
|
+
onPoint: e[8] || (e[8] = (oe) => i.showPoint = oe),
|
|
9923
9929
|
on3d: s.handle3dToggle,
|
|
9924
9930
|
onHandleToggleVersion: s.handleToggleVersion
|
|
9925
9931
|
}), null, 16, ["map", "toggle-version", "map-projection", "show-wind-feather", "show-wind-particle", "show-current-isoband", "show-current-particle", "token", "gateway", "forecast-model", "onWeather", "onOther", "on3d", "onHandleToggleVersion"]),
|
|
9926
9932
|
F(l, X({
|
|
9927
9933
|
map: t.map,
|
|
9928
9934
|
token: t.token,
|
|
9929
|
-
enabled: (
|
|
9935
|
+
enabled: (V = i.otherLayers) == null ? void 0 : V.enc,
|
|
9930
9936
|
"toggle-version": t.toggleVersion
|
|
9931
9937
|
}, a.$attrs, {
|
|
9932
|
-
onEnc: e[9] || (e[9] = (
|
|
9938
|
+
onEnc: e[9] || (e[9] = (oe) => i.enc = oe)
|
|
9933
9939
|
}), null, 16, ["map", "token", "enabled", "toggle-version"]),
|
|
9934
9940
|
F(c, X({
|
|
9935
9941
|
map: t.map,
|
|
9936
9942
|
token: t.token,
|
|
9937
9943
|
"weather-layers": i.weatherLayers,
|
|
9938
|
-
enabled: (
|
|
9944
|
+
enabled: (ye = i.otherLayers) == null ? void 0 : ye.world12nm
|
|
9939
9945
|
}, a.$attrs), null, 16, ["map", "token", "weather-layers", "enabled"]),
|
|
9940
9946
|
F(d, X({
|
|
9941
9947
|
map: t.map,
|
|
9942
9948
|
token: t.token,
|
|
9943
9949
|
"weather-layers": i.weatherLayers,
|
|
9944
|
-
enabled: (
|
|
9950
|
+
enabled: (ne = i.otherLayers) == null ? void 0 : ne.worldMarine
|
|
9945
9951
|
}, a.$attrs), null, 16, ["map", "token", "weather-layers", "enabled"]),
|
|
9946
9952
|
F(h, X({
|
|
9947
9953
|
map: t.map,
|
|
9948
9954
|
token: t.token,
|
|
9949
9955
|
"weather-layers": i.weatherLayers,
|
|
9950
|
-
enabled: (
|
|
9956
|
+
enabled: (fe = i.otherLayers) == null ? void 0 : fe.chinaRoute
|
|
9951
9957
|
}, a.$attrs), null, 16, ["map", "token", "weather-layers", "enabled"]),
|
|
9952
9958
|
F(p, X({
|
|
9953
9959
|
map: t.map,
|
|
@@ -9969,17 +9975,17 @@ function Gs(a, e, t, r, i, s) {
|
|
|
9969
9975
|
}, a.$attrs), null, 16, ["map", "prmsl", "before-layer", "active-weather-layers"]),
|
|
9970
9976
|
F(E, X({
|
|
9971
9977
|
viewport: i.viewport,
|
|
9972
|
-
factor: (
|
|
9978
|
+
factor: (B = i.weatherLayers) == null ? void 0 : B["ice-edge"],
|
|
9973
9979
|
"toggle-version": t.toggleVersion,
|
|
9974
9980
|
"before-layer": t.beforeLayer
|
|
9975
9981
|
}, a.$attrs), null, 16, ["viewport", "factor", "toggle-version", "before-layer"]),
|
|
9976
|
-
F(
|
|
9982
|
+
F(f, X({
|
|
9977
9983
|
viewport: i.viewport,
|
|
9978
|
-
factor: (
|
|
9984
|
+
factor: (ke = i.weatherLayers) == null ? void 0 : ke["ice-cover"],
|
|
9979
9985
|
"toggle-version": t.toggleVersion,
|
|
9980
9986
|
"before-layer": t.beforeLayer
|
|
9981
9987
|
}, a.$attrs), null, 16, ["viewport", "factor", "toggle-version", "before-layer"]),
|
|
9982
|
-
F(
|
|
9988
|
+
F(I, X({
|
|
9983
9989
|
viewport: i.viewport,
|
|
9984
9990
|
factor: (Le = i.weatherLayers) == null ? void 0 : Le["ice-thickness"],
|
|
9985
9991
|
"toggle-version": t.toggleVersion,
|
|
@@ -9988,13 +9994,13 @@ function Gs(a, e, t, r, i, s) {
|
|
|
9988
9994
|
F(_, X({
|
|
9989
9995
|
map: t.map,
|
|
9990
9996
|
date: t.ts,
|
|
9991
|
-
tropicals: (
|
|
9997
|
+
tropicals: (De = i.weatherLayers) == null ? void 0 : De.tropicals,
|
|
9992
9998
|
"before-layer": t.beforeLayer
|
|
9993
9999
|
}, a.$attrs), null, 16, ["map", "date", "tropicals", "before-layer"]),
|
|
9994
|
-
F(
|
|
10000
|
+
F(A, X({
|
|
9995
10001
|
map: t.map,
|
|
9996
10002
|
"map-projection": i.mapProjection,
|
|
9997
|
-
current: (
|
|
10003
|
+
current: (Be = i.weatherLayers) == null ? void 0 : Be.current,
|
|
9998
10004
|
"before-layer": t.beforeLayer,
|
|
9999
10005
|
"show-current-isoband": i.showCurrentIsoband,
|
|
10000
10006
|
"show-current-particle": i.showCurrentParticle,
|
|
@@ -10006,9 +10012,9 @@ function Gs(a, e, t, r, i, s) {
|
|
|
10006
10012
|
onParticle: s.handleParticle,
|
|
10007
10013
|
onHandleToggleVersion: s.handleToggleVersion
|
|
10008
10014
|
}), null, 16, ["map", "map-projection", "current", "before-layer", "show-current-isoband", "show-current-particle", "toggle-partice-version", "margin-bottom", "toggle-version", "weather-layers", "onParticle", "onHandleToggleVersion"]),
|
|
10009
|
-
F(
|
|
10015
|
+
F(w, X({
|
|
10010
10016
|
viewport: i.viewport,
|
|
10011
|
-
factor: (
|
|
10017
|
+
factor: (ze = i.weatherLayers) == null ? void 0 : ze["current-particle"],
|
|
10012
10018
|
"before-layer": t.beforeLayer,
|
|
10013
10019
|
"toggle-version": t.toggleVersion
|
|
10014
10020
|
}, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
@@ -10016,8 +10022,8 @@ function Gs(a, e, t, r, i, s) {
|
|
|
10016
10022
|
ref: "windBarb",
|
|
10017
10023
|
map: t.map,
|
|
10018
10024
|
"map-projection": i.mapProjection,
|
|
10019
|
-
wind: (
|
|
10020
|
-
current: (
|
|
10025
|
+
wind: (Ie = i.weatherLayers) == null ? void 0 : Ie.wind,
|
|
10026
|
+
current: (ie = i.weatherLayers) == null ? void 0 : ie.current,
|
|
10021
10027
|
"before-layer": t.beforeLayer,
|
|
10022
10028
|
"margin-bottom": i.showRampColor ? "56px" : "30px",
|
|
10023
10029
|
"show-wind-feather": i.showWindFeather,
|
|
@@ -10030,23 +10036,23 @@ function Gs(a, e, t, r, i, s) {
|
|
|
10030
10036
|
}), null, 16, ["map", "map-projection", "wind", "current", "before-layer", "margin-bottom", "show-wind-feather", "show-wind-particle", "toggle-partice-version", "toggle-version", "weather-layers", "onParticle"]),
|
|
10031
10037
|
F(L, X({
|
|
10032
10038
|
viewport: i.viewport,
|
|
10033
|
-
factor: (
|
|
10039
|
+
factor: (J = i.weatherLayers) == null ? void 0 : J["wind-particle"],
|
|
10034
10040
|
"before-layer": t.beforeLayer,
|
|
10035
10041
|
"toggle-version": t.toggleVersion
|
|
10036
10042
|
}, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
10037
|
-
F(
|
|
10043
|
+
F(u, X({
|
|
10038
10044
|
viewport: i.viewport,
|
|
10039
|
-
factor: (
|
|
10045
|
+
factor: (P = i.weatherLayers) == null ? void 0 : P.precip3h,
|
|
10040
10046
|
"before-layer": t.beforeLayer,
|
|
10041
10047
|
"toggle-version": t.toggleVersion
|
|
10042
10048
|
}, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
10043
|
-
F(
|
|
10049
|
+
F(v, X({
|
|
10044
10050
|
viewport: i.viewport,
|
|
10045
|
-
factor: (
|
|
10051
|
+
factor: (Ce = i.weatherLayers) == null ? void 0 : Ce.visibility,
|
|
10046
10052
|
"before-layer": t.beforeLayer,
|
|
10047
10053
|
"toggle-version": t.toggleVersion
|
|
10048
10054
|
}, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
10049
|
-
F(
|
|
10055
|
+
F(z, X({
|
|
10050
10056
|
viewport: i.viewport,
|
|
10051
10057
|
factor: (K = i.weatherLayers) == null ? void 0 : K["water-temp"],
|
|
10052
10058
|
"before-layer": t.beforeLayer,
|
|
@@ -10054,57 +10060,57 @@ function Gs(a, e, t, r, i, s) {
|
|
|
10054
10060
|
}, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
10055
10061
|
F(D, X({
|
|
10056
10062
|
viewport: i.viewport,
|
|
10057
|
-
factor: (
|
|
10063
|
+
factor: (Z = i.weatherLayers) == null ? void 0 : Z.temp,
|
|
10058
10064
|
"before-layer": t.beforeLayer,
|
|
10059
10065
|
"toggle-version": t.toggleVersion
|
|
10060
10066
|
}, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
10061
10067
|
F(N, X({
|
|
10062
10068
|
map: t.map,
|
|
10063
|
-
zone: (
|
|
10069
|
+
zone: (Se = i.otherLayers) == null ? void 0 : Se["war-zones"],
|
|
10064
10070
|
"before-layer": t.beforeLayer
|
|
10065
10071
|
}, a.$attrs), null, 16, ["map", "zone", "before-layer"]),
|
|
10066
|
-
F(
|
|
10072
|
+
F(H, X({
|
|
10067
10073
|
map: t.map,
|
|
10068
|
-
area: (
|
|
10074
|
+
area: (S = i.otherLayers) == null ? void 0 : S["gmdss-areas"],
|
|
10069
10075
|
"before-layer": t.beforeLayer
|
|
10070
10076
|
}, a.$attrs), null, 16, ["map", "area", "before-layer"]),
|
|
10071
10077
|
F(j, X({
|
|
10072
10078
|
map: t.map,
|
|
10073
|
-
zone: (
|
|
10079
|
+
zone: (Ae = i.otherLayers) == null ? void 0 : Ae["eca-zones"],
|
|
10074
10080
|
"before-layer": t.beforeLayer
|
|
10075
10081
|
}, a.$attrs), null, 16, ["map", "zone", "before-layer"]),
|
|
10076
10082
|
F(G, X({
|
|
10077
10083
|
map: t.map,
|
|
10078
|
-
zone: (
|
|
10084
|
+
zone: (Me = i.otherLayers) == null ? void 0 : Me["alert-zones"],
|
|
10079
10085
|
"before-layer": t.beforeLayer
|
|
10080
10086
|
}, a.$attrs), null, 16, ["map", "zone", "before-layer"]),
|
|
10081
10087
|
F(W, X({
|
|
10082
10088
|
map: t.map,
|
|
10083
|
-
port: (
|
|
10089
|
+
port: (Te = i.otherLayers) == null ? void 0 : Te.ports,
|
|
10084
10090
|
"before-layer": t.beforeLayer,
|
|
10085
10091
|
"forecast-model": t.forecastModel
|
|
10086
10092
|
}, a.$attrs), null, 16, ["map", "port", "before-layer", "forecast-model"]),
|
|
10087
|
-
F(
|
|
10093
|
+
F(ce, X({
|
|
10088
10094
|
map: t.map,
|
|
10089
|
-
line: (
|
|
10095
|
+
line: (Qe = i.otherLayers) == null ? void 0 : Qe["load-lines"],
|
|
10090
10096
|
"before-layer": t.beforeLayer
|
|
10091
10097
|
}, a.$attrs), null, 16, ["map", "line", "before-layer"]),
|
|
10092
|
-
F(
|
|
10098
|
+
F(re, X({
|
|
10093
10099
|
map: t.map,
|
|
10094
|
-
zone: (
|
|
10100
|
+
zone: (M = i.otherLayers) == null ? void 0 : M["time-zones"],
|
|
10095
10101
|
"before-layer": t.beforeLayer
|
|
10096
10102
|
}, a.$attrs), null, 16, ["map", "zone", "before-layer"]),
|
|
10097
|
-
F(
|
|
10103
|
+
F(de, X({
|
|
10098
10104
|
map: t.map,
|
|
10099
10105
|
area: (O = i.otherLayers) == null ? void 0 : O["voluntary-reporting-area"],
|
|
10100
10106
|
"before-layer": t.beforeLayer
|
|
10101
10107
|
}, a.$attrs), null, 16, ["map", "area", "before-layer"]),
|
|
10102
|
-
F(
|
|
10108
|
+
F(we, X({
|
|
10103
10109
|
map: t.map,
|
|
10104
10110
|
area: (Ge = i.otherLayers) == null ? void 0 : Ge["special-area"],
|
|
10105
10111
|
"before-layer": t.beforeLayer
|
|
10106
10112
|
}, a.$attrs), null, 16, ["map", "area", "before-layer"]),
|
|
10107
|
-
F(
|
|
10113
|
+
F(pe, X({
|
|
10108
10114
|
map: t.map,
|
|
10109
10115
|
area: (Ue = i.otherLayers) == null ? void 0 : Ue["day-night"]
|
|
10110
10116
|
}, a.$attrs), null, 16, ["map", "area"]),
|
|
@@ -10113,11 +10119,11 @@ function Gs(a, e, t, r, i, s) {
|
|
|
10113
10119
|
show: i.showCoord,
|
|
10114
10120
|
"toggle-version": t.toggleVersion
|
|
10115
10121
|
}, a.$attrs), null, 16, ["map", "show", "toggle-version"]),
|
|
10116
|
-
F(
|
|
10122
|
+
F(me, X({
|
|
10117
10123
|
map: t.map,
|
|
10118
10124
|
show: i.showMeasure
|
|
10119
10125
|
}, a.$attrs), null, 16, ["map", "show"]),
|
|
10120
|
-
F(
|
|
10126
|
+
F(U, X({
|
|
10121
10127
|
ref: "idmPoint",
|
|
10122
10128
|
map: t.map,
|
|
10123
10129
|
show: i.showPoint,
|
|
@@ -10127,9 +10133,9 @@ function Gs(a, e, t, r, i, s) {
|
|
|
10127
10133
|
gateway: i.gateway,
|
|
10128
10134
|
"forecast-model": t.forecastModel
|
|
10129
10135
|
}, a.$attrs), null, 16, ["map", "show", "meteo", "ts", "token", "gateway", "forecast-model"])
|
|
10130
|
-
], 512)) :
|
|
10136
|
+
], 512)) : q("", !0);
|
|
10131
10137
|
}
|
|
10132
|
-
const Us = /* @__PURE__ */
|
|
10138
|
+
const Us = /* @__PURE__ */ Y(js, [["render", Gs]]), ao = {
|
|
10133
10139
|
install(a) {
|
|
10134
10140
|
a.component("MapboxGL", Us), a.component("TropicalGL", dt), a.component("LatLngGL", pt);
|
|
10135
10141
|
}
|
|
@@ -10139,9 +10145,9 @@ export {
|
|
|
10139
10145
|
Us as MapboxGL,
|
|
10140
10146
|
ao as MapboxGLPlugin,
|
|
10141
10147
|
na as MapboxHelper,
|
|
10142
|
-
|
|
10148
|
+
Ee as ParticleSchema,
|
|
10143
10149
|
dt as TropicalGL,
|
|
10144
10150
|
et as Viewport,
|
|
10145
10151
|
We as WebGL,
|
|
10146
|
-
|
|
10152
|
+
he as WebGLSchema
|
|
10147
10153
|
};
|