@idmwx/idmui-gl4 2.6.7 → 2.6.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-3VYIPD3A-26fc1713.js → chunk-3VYIPD3A-2a6dc361.js} +1 -1
- package/dist/{chunk-ANSXOGKI-55f29878.js → chunk-ANSXOGKI-679aa1aa.js} +1 -1
- package/dist/{chunk-T4JIPPZO-a2731a88.js → chunk-T4JIPPZO-0add1adb.js} +1 -1
- package/dist/{download-677030a1.js → download-e8a87001.js} +3 -3
- package/dist/{index-9d3e6484.js → index-d36be901.js} +220 -207
- package/dist/index.js +1 -1
- package/dist/index.umd.cjs +9 -9
- package/dist/mapbox/src/components/timePicker/dateRange.vue.d.ts +9 -19
- package/dist/{rasterize-JS5G2XHH-fc12d224.js → rasterize-JS5G2XHH-0b762ed7.js} +3 -3
- package/dist/{toBlob-87e03c14.js → toBlob-063be1d2.js} +3 -3
- package/dist/{toCanvas-cf370407.js → toCanvas-79dd23e6.js} +2 -2
- package/dist/{toImg-498ed79c.js → toImg-b333764e.js} +3 -3
- package/package.json +1 -1
|
@@ -5,7 +5,7 @@ import je from "axios";
|
|
|
5
5
|
import { useTheme as Fe } from "vuetify";
|
|
6
6
|
import { openBlock as k, createElementBlock as D, resolveComponent as I, createBlock as Z, normalizeClass as _e, withCtx as L, createVNode as C, withModifiers as Se, createElementVNode as n, createCommentVNode as W, toDisplayString as b, createTextVNode as ee, Fragment as Ie, renderList as De, withDirectives as Qe, vShow as et, mergeProps as Y, normalizeStyle as ue } from "vue";
|
|
7
7
|
import Ae from "mapbox-gl";
|
|
8
|
-
import
|
|
8
|
+
import T from "moment";
|
|
9
9
|
import { LngLatHelper as me, TropicalHelper as Ii, LaneHelper as Je } from "@idm-plugin/geo";
|
|
10
10
|
import { Meteo2Assist as Ea, TidesAssist as er } from "@idm-plugin/meteo";
|
|
11
11
|
import * as $a from "echarts";
|
|
@@ -1389,13 +1389,13 @@ const Or = {
|
|
|
1389
1389
|
let c = {
|
|
1390
1390
|
index: l,
|
|
1391
1391
|
dateTimeList: [],
|
|
1392
|
-
label:
|
|
1393
|
-
startTime:
|
|
1394
|
-
dateTime:
|
|
1392
|
+
label: T().utcOffset(t).add(l, "days").format("MM-DD ddd"),
|
|
1393
|
+
startTime: T().utcOffset(t).add(l, "days").set({ hour: 0, minute: 0, second: 0, millisecond: 0 }).format(),
|
|
1394
|
+
dateTime: T().utcOffset(t).add(l, "days").format()
|
|
1395
1395
|
};
|
|
1396
1396
|
for (let s = 0; s < 4; s++)
|
|
1397
1397
|
c.dateTimeList.push(
|
|
1398
|
-
|
|
1398
|
+
T(c.startTime).utcOffset(t).add(s * this.interval, "hours").utc().format()
|
|
1399
1399
|
);
|
|
1400
1400
|
e.push(c);
|
|
1401
1401
|
}
|
|
@@ -1406,7 +1406,7 @@ const Or = {
|
|
|
1406
1406
|
if (!e || !t || t.lng === null || t.lng === void 0 || isNaN(t.lng) || t.lat === null || t.lat === void 0 || isNaN(t.lat))
|
|
1407
1407
|
return "-";
|
|
1408
1408
|
const i = t != null && t.lng && (t != null && t.lat) ? me.guessTimeZoneOffset(t == null ? void 0 : t.lng, t == null ? void 0 : t.lat) : 0;
|
|
1409
|
-
return
|
|
1409
|
+
return T(e).utcOffset(i).format(a);
|
|
1410
1410
|
};
|
|
1411
1411
|
},
|
|
1412
1412
|
computeTimeOffset() {
|
|
@@ -1513,10 +1513,10 @@ const Or = {
|
|
|
1513
1513
|
{ label: "Swell", key: "weather.swell", unit: "m" },
|
|
1514
1514
|
{ label: "Current", key: "weather.current", unit: "kts" }
|
|
1515
1515
|
], (a = (t = this.dateList) == null ? void 0 : t[this.currentIndex]) == null || a.dateTimeList.forEach((i, o) => {
|
|
1516
|
-
var c, s, h, m, p, g, y, f, d, u, x, v, w, _, S, z, M,
|
|
1516
|
+
var c, s, h, m, p, g, y, f, d, u, x, v, w, _, S, z, M, R, F, N, O, E, J, Q, te, he, A, H, U, ae, X, j, $, G, re, ge, xe, ke;
|
|
1517
1517
|
let r = {};
|
|
1518
|
-
const l = ((c = Ea.pickHourly(e,
|
|
1519
|
-
r.utc = l.utc, r.lat = e.lat, r.lng = e.lng, r.weatherUrl = (s = l.weather) == null ? void 0 : s.url, r.temp = this.computeRoundPrecision((h = l == null ? void 0 : l.weather) == null ? void 0 : h.temp, 0) ?? "-", r.precipProbability = this.computeRoundPrecision((p = (m = l == null ? void 0 : l.weather) == null ? void 0 : m.precip) == null ? void 0 : p.probability, 0) ?? "-", r.precip1h = this.computeRoundPrecision((y = (g = l == null ? void 0 : l.weather) == null ? void 0 : g.precip) == null ? void 0 : y.sum, 1) ?? "-", r.visibility = this.computeRoundPrecision((f = l == null ? void 0 : l.weather) == null ? void 0 : f.visibility, 0) ?? "-", r.windSpeed = this.computeRoundPrecision((u = (d = l == null ? void 0 : l.weather) == null ? void 0 : d.wind) == null ? void 0 : u.kts, 1) ?? "-", r.windDir = (v = (x = l == null ? void 0 : l.weather) == null ? void 0 : x.wind) == null ? void 0 : v.direction, r.windLevel = this.computeRoundPrecision((_ = (w = l == null ? void 0 : l.weather) == null ? void 0 : w.wind) == null ? void 0 : _.scale, 0) ?? "-", r.windGust = this.computeRoundPrecision((z = (S = l == null ? void 0 : l.weather) == null ? void 0 : S.wind) == null ? void 0 : z.gusts, 1) ?? "-", r.sigwaveHeight = this.computeRoundPrecision((
|
|
1518
|
+
const l = ((c = Ea.pickHourly(e, T(i))) == null ? void 0 : c[0]) || {};
|
|
1519
|
+
r.utc = l.utc, r.lat = e.lat, r.lng = e.lng, r.weatherUrl = (s = l.weather) == null ? void 0 : s.url, r.temp = this.computeRoundPrecision((h = l == null ? void 0 : l.weather) == null ? void 0 : h.temp, 0) ?? "-", r.precipProbability = this.computeRoundPrecision((p = (m = l == null ? void 0 : l.weather) == null ? void 0 : m.precip) == null ? void 0 : p.probability, 0) ?? "-", r.precip1h = this.computeRoundPrecision((y = (g = l == null ? void 0 : l.weather) == null ? void 0 : g.precip) == null ? void 0 : y.sum, 1) ?? "-", r.visibility = this.computeRoundPrecision((f = l == null ? void 0 : l.weather) == null ? void 0 : f.visibility, 0) ?? "-", r.windSpeed = this.computeRoundPrecision((u = (d = l == null ? void 0 : l.weather) == null ? void 0 : d.wind) == null ? void 0 : u.kts, 1) ?? "-", r.windDir = (v = (x = l == null ? void 0 : l.weather) == null ? void 0 : x.wind) == null ? void 0 : v.direction, r.windLevel = this.computeRoundPrecision((_ = (w = l == null ? void 0 : l.weather) == null ? void 0 : w.wind) == null ? void 0 : _.scale, 0) ?? "-", r.windGust = this.computeRoundPrecision((z = (S = l == null ? void 0 : l.weather) == null ? void 0 : S.wind) == null ? void 0 : z.gusts, 1) ?? "-", r.sigwaveHeight = this.computeRoundPrecision((R = (M = l == null ? void 0 : l.wave) == null ? void 0 : M.sig) == null ? void 0 : R.height, 1) ?? "-", r.sigwaveDir = (N = (F = l == null ? void 0 : l.wave) == null ? void 0 : F.sig) == null ? void 0 : N.direction, r.sigwavePeriod = this.computeRoundPrecision((E = (O = l == null ? void 0 : l.wave) == null ? void 0 : O.sig) == null ? void 0 : E.period, 1) ?? "-", r.windwaveHeight = this.computeRoundPrecision((Q = (J = l == null ? void 0 : l.wave) == null ? void 0 : J.wd) == null ? void 0 : Q.height, 1) ?? "-", r.windwaveDir = (he = (te = l == null ? void 0 : l.wave) == null ? void 0 : te.wd) == null ? void 0 : he.direction, r.windwavePeriod = this.computeRoundPrecision((H = (A = l == null ? void 0 : l.wave) == null ? void 0 : A.wd) == null ? void 0 : H.period, 1) ?? "-", r.swellHeight = this.computeRoundPrecision((ae = (U = l == null ? void 0 : l.wave) == null ? void 0 : U.swell) == null ? void 0 : ae.height, 1) ?? "-", r.swellDir = (j = (X = l == null ? void 0 : l.wave) == null ? void 0 : X.swell) == null ? void 0 : j.direction, r.swellPeriod = this.computeRoundPrecision((G = ($ = l == null ? void 0 : l.wave) == null ? void 0 : $.swell) == null ? void 0 : G.period, 1) ?? "-", r.currentSpeed = this.computeRoundPrecision((re = l == null ? void 0 : l.current) == null ? void 0 : re.speed, 1) ?? "-", r.currentDir = (ge = l == null ? void 0 : l.current) == null ? void 0 : ge.direction, r.currentSpeed = this.computeRoundPrecision((xe = l == null ? void 0 : l.current) == null ? void 0 : xe.speed, 1) ?? "-", r.seaLevel = this.computeRoundPrecision(l == null ? void 0 : l.height, 1) ?? "-", r.seaTemp = this.computeRoundPrecision(l == null ? void 0 : l.sst, 0) ?? "-", r.weatherUrls = (ke = l == null ? void 0 : l.weather) == null ? void 0 : ke.url, this.tableData[0][`value${o}`] = o * this.interval > 10 ? o * this.interval : "0" + o * this.interval, this.tableData[1][`value${o}`] = r.weatherUrl, this.tableData[2][`value${o}`] = r.temp, this.tableData[3][`value${o}`] = r.precip1h, this.tableData[4][`value${o}`] = r.visibility, this.tableData[5][`value${o}`] = r.windSpeed, this.tableData[6][`value${o}`] = r.sigwaveHeight, this.tableData[7][`value${o}`] = r.swellHeight, this.tableData[8][`value${o}`] = r.currentSpeed;
|
|
1520
1520
|
});
|
|
1521
1521
|
},
|
|
1522
1522
|
handleTide() {
|
|
@@ -2254,7 +2254,7 @@ const ql = /* @__PURE__ */ se(Kl, [["render", $l]]), Ql = {
|
|
|
2254
2254
|
timeZoneName() {
|
|
2255
2255
|
return (e) => {
|
|
2256
2256
|
var a;
|
|
2257
|
-
return (a =
|
|
2257
|
+
return (a = T.tz.names().filter((i) => T.tz(T(), i).utcOffset() === e * 60)) == null ? void 0 : a[0];
|
|
2258
2258
|
};
|
|
2259
2259
|
}
|
|
2260
2260
|
},
|
|
@@ -2421,7 +2421,7 @@ const ql = /* @__PURE__ */ se(Kl, [["render", $l]]), Ql = {
|
|
|
2421
2421
|
}), (i = this.map.getSource(this.source)) == null || i.setData(o);
|
|
2422
2422
|
const r = document.createElement("div");
|
|
2423
2423
|
r.className = "v-card--variant-elevated rounded px-2 py-1 text-body-1", r.innerHTML = `<div>UTC ${e.features[0].properties.offSet}:00</div>
|
|
2424
|
-
<div>${
|
|
2424
|
+
<div>${T.tz(T().format(), this.timeZoneName(e.features[0].properties.offSet)).format("MM-DD HH:mm")}`, this.marker = new Ae.Marker(r).setLngLat([e.lngLat.lng, e.lngLat.lat]).setOffset([0, -30]).addTo(this.map);
|
|
2425
2425
|
}
|
|
2426
2426
|
},
|
|
2427
2427
|
handleLeave() {
|
|
@@ -2873,12 +2873,12 @@ const vn = {
|
|
|
2873
2873
|
let c = {
|
|
2874
2874
|
index: l,
|
|
2875
2875
|
dateTimeList: [],
|
|
2876
|
-
label:
|
|
2877
|
-
startTime:
|
|
2878
|
-
dateTime:
|
|
2876
|
+
label: T().utcOffset(t).add(l, "days").format("MM-DD ddd"),
|
|
2877
|
+
startTime: T().utcOffset(t).add(l, "days").set({ hour: 0, minute: 0, second: 0, millisecond: 0 }).format(),
|
|
2878
|
+
dateTime: T().utcOffset(t).add(l, "days").format()
|
|
2879
2879
|
};
|
|
2880
2880
|
for (let s = 0; s < 4; s++)
|
|
2881
|
-
c.dateTimeList.push(
|
|
2881
|
+
c.dateTimeList.push(T(c.startTime).utcOffset(t).add(s * 3, "hours").utc().format());
|
|
2882
2882
|
e.push(c);
|
|
2883
2883
|
}
|
|
2884
2884
|
return e;
|
|
@@ -2888,7 +2888,7 @@ const vn = {
|
|
|
2888
2888
|
if (!e || !t || t.lng === null || t.lng === void 0 || isNaN(t.lng) || t.lat === null || t.lat === void 0 || isNaN(t.lat))
|
|
2889
2889
|
return "-";
|
|
2890
2890
|
const i = t != null && t.lng && (t != null && t.lat) ? me.guessTimeZoneOffset(t == null ? void 0 : t.lng, t == null ? void 0 : t.lat) : 0;
|
|
2891
|
-
return
|
|
2891
|
+
return T(e).utcOffset(i).format(a);
|
|
2892
2892
|
};
|
|
2893
2893
|
},
|
|
2894
2894
|
computeTimeOffset() {
|
|
@@ -5410,7 +5410,7 @@ const ws = {
|
|
|
5410
5410
|
if (t.properties) {
|
|
5411
5411
|
const p = t.properties;
|
|
5412
5412
|
p.lng = t.geometry.coordinates[0], p.lat = t.geometry.coordinates[1];
|
|
5413
|
-
const g =
|
|
5413
|
+
const g = T(), y = (a = T(this.realTime)) == null ? void 0 : a.diff(g, "d", !0), f = {
|
|
5414
5414
|
followId: p.id,
|
|
5415
5415
|
lat: p.lat,
|
|
5416
5416
|
lng: p.lng,
|
|
@@ -5694,7 +5694,7 @@ const Ls = {
|
|
|
5694
5694
|
}, Gs = { class: "text-body-2 text-center pt-2" };
|
|
5695
5695
|
function Ws(e, t, a, i, o, r) {
|
|
5696
5696
|
var te, he, A, H, U, ae, X, j, $;
|
|
5697
|
-
const l = I("VBtn"), c = I("VTooltip"), s = I("VCardTitle"), h = I("VCardItem"), m = I("VCheckbox"), p = I("VCardText"), g = I("VCard"), y = I("IdmLatLng"), f = I("IdmTerminator"), d = I("IdmTimezone"), u = I("IdmPort"), x = I("IdmAlertZone"), v = I("IdmTideStations"), w = I("IdmEcaZone"), _ = I("IdmWarZone"), S = I("IdmGmdssArea"), z = I("IdmLoadLine"), M = I("IdmWorldMarine"),
|
|
5697
|
+
const l = I("VBtn"), c = I("VTooltip"), s = I("VCardTitle"), h = I("VCardItem"), m = I("VCheckbox"), p = I("VCardText"), g = I("VCard"), y = I("IdmLatLng"), f = I("IdmTerminator"), d = I("IdmTimezone"), u = I("IdmPort"), x = I("IdmAlertZone"), v = I("IdmTideStations"), w = I("IdmEcaZone"), _ = I("IdmWarZone"), S = I("IdmGmdssArea"), z = I("IdmLoadLine"), M = I("IdmWorldMarine"), R = I("IdmVRA"), F = I("IdmSpecialArea"), N = I("IdmWorld12nm"), O = I("IdmChinaRoute"), E = I("IdmIceAreas"), J = I("IdmFollowPort"), Q = I("IdmFollowPosition");
|
|
5698
5698
|
return k(), D("div", Ps, [
|
|
5699
5699
|
n("div", {
|
|
5700
5700
|
class: _e(["menu-bar-box transition px-1 rounded", a.simple ? "simple" : ""]),
|
|
@@ -5998,7 +5998,7 @@ function Ws(e, t, a, i, o, r) {
|
|
|
5998
5998
|
token: a.token,
|
|
5999
5999
|
show: o.checkList.includes("worldMarine")
|
|
6000
6000
|
}, e.$attrs), null, 16, ["map", "token", "show"])) : W("", !0),
|
|
6001
|
-
a.map ? (k(), Z(
|
|
6001
|
+
a.map ? (k(), Z(R, Y({
|
|
6002
6002
|
key: 11,
|
|
6003
6003
|
map: a.map,
|
|
6004
6004
|
area: (j = o.otherLayers) == null ? void 0 : j["voluntary-reporting-area"]
|
|
@@ -8716,7 +8716,7 @@ const Oc = {
|
|
|
8716
8716
|
return function(e) {
|
|
8717
8717
|
var t;
|
|
8718
8718
|
if (e) {
|
|
8719
|
-
const a =
|
|
8719
|
+
const a = T(e);
|
|
8720
8720
|
return `${(t = a == null ? void 0 : a.utc()) == null ? void 0 : t.format("MMM-DD/HHmm")}Z`;
|
|
8721
8721
|
}
|
|
8722
8722
|
return "-";
|
|
@@ -8724,7 +8724,7 @@ const Oc = {
|
|
|
8724
8724
|
},
|
|
8725
8725
|
computeDateUpdate() {
|
|
8726
8726
|
return function(e) {
|
|
8727
|
-
return e ?
|
|
8727
|
+
return e ? T(e).fromNow() : "-";
|
|
8728
8728
|
};
|
|
8729
8729
|
},
|
|
8730
8730
|
overlaysKeys() {
|
|
@@ -8774,7 +8774,7 @@ const Oc = {
|
|
|
8774
8774
|
},
|
|
8775
8775
|
realTime: {
|
|
8776
8776
|
handler(e, t) {
|
|
8777
|
-
e && t &&
|
|
8777
|
+
e && t && T(e).utc().format("yyyy-MM-DD HH") !== T(t).utc().format("yyyy-MM-DD HH") && this.$nextTick(() => {
|
|
8778
8778
|
this.fetchWeatherLayers();
|
|
8779
8779
|
});
|
|
8780
8780
|
},
|
|
@@ -8909,8 +8909,8 @@ const Oc = {
|
|
|
8909
8909
|
this.weatherLayers = {}, S.map((z) => {
|
|
8910
8910
|
var F, N, O, E;
|
|
8911
8911
|
const M = ((F = z == null ? void 0 : z.data) == null ? void 0 : F.data) || (z == null ? void 0 : z.data);
|
|
8912
|
-
let
|
|
8913
|
-
|
|
8912
|
+
let R = (O = (N = z == null ? void 0 : z.config) == null ? void 0 : N.headers) == null ? void 0 : O.key;
|
|
8913
|
+
R && M && (this.weatherLayers[R] = {
|
|
8914
8914
|
raw: M,
|
|
8915
8915
|
type: ((E = z == null ? void 0 : z.config) == null ? void 0 : E.responseType) === "blob" ? "image" : "json",
|
|
8916
8916
|
etime: v.data.etime
|
|
@@ -9007,37 +9007,37 @@ const Oc = {
|
|
|
9007
9007
|
for (const S in w)
|
|
9008
9008
|
if (S > f && S < d && (!(o <= this.zoom) || S % (o < 2 ? 10 : o < 4 ? 5 : 3) === 0)) {
|
|
9009
9009
|
const z = w[S].lng;
|
|
9010
|
-
g > y ? z.forEach((M,
|
|
9010
|
+
g > y ? z.forEach((M, R) => {
|
|
9011
9011
|
var F, N, O, E, J, Q;
|
|
9012
9012
|
if (o < 2) {
|
|
9013
9013
|
if ((M >= 0 && M <= 360 || M >= -360 && M <= 0) && M % 10 === 0) {
|
|
9014
9014
|
const te = ie.point([M, S], {
|
|
9015
|
-
val: ((F = w[S].val) == null ? void 0 : F[
|
|
9016
|
-
spd: (O = w[S].spd) == null ? void 0 : O[
|
|
9015
|
+
val: ((F = w[S].val) == null ? void 0 : F[R]) || ((N = w[S].dir) == null ? void 0 : N[R]),
|
|
9016
|
+
spd: (O = w[S].spd) == null ? void 0 : O[R]
|
|
9017
9017
|
});
|
|
9018
9018
|
v.push(te);
|
|
9019
9019
|
}
|
|
9020
9020
|
} else if ((M >= g && M <= 180 || M >= -180 && M <= y) && (!(o <= this.zoom) || M % (o < 2 ? 10 : o < 4 ? 5 : 3) === 0)) {
|
|
9021
9021
|
const te = ie.point([M, S], {
|
|
9022
|
-
val: ((E = w[S].val) == null ? void 0 : E[
|
|
9023
|
-
spd: (Q = w[S].spd) == null ? void 0 : Q[
|
|
9022
|
+
val: ((E = w[S].val) == null ? void 0 : E[R]) || ((J = w[S].dir) == null ? void 0 : J[R]),
|
|
9023
|
+
spd: (Q = w[S].spd) == null ? void 0 : Q[R]
|
|
9024
9024
|
});
|
|
9025
9025
|
v.push(te);
|
|
9026
9026
|
}
|
|
9027
|
-
}) : z.forEach((M,
|
|
9027
|
+
}) : z.forEach((M, R) => {
|
|
9028
9028
|
var F, N, O, E, J, Q;
|
|
9029
9029
|
if (g < 2) {
|
|
9030
9030
|
if ((M >= 0 && M <= 360 || M >= -360 && M <= 0) && M % 10 === 0) {
|
|
9031
9031
|
const te = ie.point([M, S], {
|
|
9032
|
-
val: ((F = w[S].val) == null ? void 0 : F[
|
|
9033
|
-
spd: (O = w[S].spd) == null ? void 0 : O[
|
|
9032
|
+
val: ((F = w[S].val) == null ? void 0 : F[R]) || ((N = w[S].dir) == null ? void 0 : N[R]),
|
|
9033
|
+
spd: (O = w[S].spd) == null ? void 0 : O[R]
|
|
9034
9034
|
});
|
|
9035
9035
|
v.push(te);
|
|
9036
9036
|
}
|
|
9037
9037
|
} else if (M >= g && M <= y && (!(o <= this.zoom) || M % (o < 2 ? 10 : o < 4 ? 5 : 3) === 0)) {
|
|
9038
9038
|
const te = ie.point([M, S], {
|
|
9039
|
-
val: ((E = w[S].val) == null ? void 0 : E[
|
|
9040
|
-
spd: (Q = w[S].spd) == null ? void 0 : Q[
|
|
9039
|
+
val: ((E = w[S].val) == null ? void 0 : E[R]) || ((J = w[S].dir) == null ? void 0 : J[R]),
|
|
9040
|
+
spd: (Q = w[S].spd) == null ? void 0 : Q[R]
|
|
9041
9041
|
});
|
|
9042
9042
|
v.push(te);
|
|
9043
9043
|
}
|
|
@@ -9050,9 +9050,9 @@ const Oc = {
|
|
|
9050
9050
|
const S = [];
|
|
9051
9051
|
for (const z in (s = _.raw) == null ? void 0 : s.LineString) {
|
|
9052
9052
|
const M = _.raw.LineString[z];
|
|
9053
|
-
for (const
|
|
9053
|
+
for (const R of M)
|
|
9054
9054
|
S.push(
|
|
9055
|
-
ie.lineString(
|
|
9055
|
+
ie.lineString(R, {
|
|
9056
9056
|
val: Number(z)
|
|
9057
9057
|
})
|
|
9058
9058
|
);
|
|
@@ -9071,37 +9071,37 @@ const Oc = {
|
|
|
9071
9071
|
for (const S in w)
|
|
9072
9072
|
if (S > f && S < d && (!(o <= this.zoom) || S % (o < 2 ? 10 : o < 4 ? 5 : 3) === 0)) {
|
|
9073
9073
|
const z = w[S].lng;
|
|
9074
|
-
g > y ? z.forEach((M,
|
|
9074
|
+
g > y ? z.forEach((M, R) => {
|
|
9075
9075
|
var F, N, O, E, J, Q;
|
|
9076
9076
|
if (o < 2) {
|
|
9077
9077
|
if ((M >= 0 && M <= 360 || M >= -360 && M <= 0) && M % 10 === 0) {
|
|
9078
9078
|
const te = ie.point([M, S], {
|
|
9079
|
-
val: ((F = w[S].val) == null ? void 0 : F[
|
|
9080
|
-
spd: (O = w[S].spd) == null ? void 0 : O[
|
|
9079
|
+
val: ((F = w[S].val) == null ? void 0 : F[R]) || ((N = w[S].dir) == null ? void 0 : N[R]),
|
|
9080
|
+
spd: (O = w[S].spd) == null ? void 0 : O[R]
|
|
9081
9081
|
});
|
|
9082
9082
|
v.push(te);
|
|
9083
9083
|
}
|
|
9084
9084
|
} else if ((M >= g && M <= 180 || M >= -180 && M <= y) && (!(o <= this.zoom) || M % (o < 2 ? 10 : o < 4 ? 5 : 3) === 0)) {
|
|
9085
9085
|
const te = ie.point([M, S], {
|
|
9086
|
-
val: ((E = w[S].val) == null ? void 0 : E[
|
|
9087
|
-
spd: (Q = w[S].spd) == null ? void 0 : Q[
|
|
9086
|
+
val: ((E = w[S].val) == null ? void 0 : E[R]) || ((J = w[S].dir) == null ? void 0 : J[R]),
|
|
9087
|
+
spd: (Q = w[S].spd) == null ? void 0 : Q[R]
|
|
9088
9088
|
});
|
|
9089
9089
|
v.push(te);
|
|
9090
9090
|
}
|
|
9091
|
-
}) : z.forEach((M,
|
|
9091
|
+
}) : z.forEach((M, R) => {
|
|
9092
9092
|
var F, N, O, E, J, Q;
|
|
9093
9093
|
if (g < 2) {
|
|
9094
9094
|
if ((M >= 0 && M <= 360 || M >= -360 && M <= 0) && M % 10 === 0) {
|
|
9095
9095
|
const te = ie.point([M, S], {
|
|
9096
|
-
val: ((F = w[S].val) == null ? void 0 : F[
|
|
9097
|
-
spd: (O = w[S].spd) == null ? void 0 : O[
|
|
9096
|
+
val: ((F = w[S].val) == null ? void 0 : F[R]) || ((N = w[S].dir) == null ? void 0 : N[R]),
|
|
9097
|
+
spd: (O = w[S].spd) == null ? void 0 : O[R]
|
|
9098
9098
|
});
|
|
9099
9099
|
v.push(te);
|
|
9100
9100
|
}
|
|
9101
9101
|
} else if (M >= g && M <= y && (!(o <= this.zoom) || M % (o < this.zoom / 2 ? 5 : 3) === 0)) {
|
|
9102
9102
|
const te = ie.point([M, S], {
|
|
9103
|
-
val: ((E = w[S].val) == null ? void 0 : E[
|
|
9104
|
-
spd: (Q = w[S].spd) == null ? void 0 : Q[
|
|
9103
|
+
val: ((E = w[S].val) == null ? void 0 : E[R]) || ((J = w[S].dir) == null ? void 0 : J[R]),
|
|
9104
|
+
spd: (Q = w[S].spd) == null ? void 0 : Q[R]
|
|
9105
9105
|
});
|
|
9106
9106
|
v.push(te);
|
|
9107
9107
|
}
|
|
@@ -9113,8 +9113,8 @@ const Oc = {
|
|
|
9113
9113
|
if (!_.data) {
|
|
9114
9114
|
const z = [];
|
|
9115
9115
|
for (const M in (m = _.raw) == null ? void 0 : m.Polygon) {
|
|
9116
|
-
const
|
|
9117
|
-
for (const F of
|
|
9116
|
+
const R = _.raw.Polygon[M];
|
|
9117
|
+
for (const F of R)
|
|
9118
9118
|
z.push(
|
|
9119
9119
|
ie.polygon(F, {
|
|
9120
9120
|
val: Number(M)
|
|
@@ -9133,11 +9133,11 @@ const Oc = {
|
|
|
9133
9133
|
if (_ > f && _ < d && (!(o <= this.zoom) || _ % (o < 2 ? 10 : o < 4 ? 5 : 3) === 0)) {
|
|
9134
9134
|
const S = w[_].lng;
|
|
9135
9135
|
g > y ? S.forEach((z, M) => {
|
|
9136
|
-
var
|
|
9136
|
+
var R, F, N, O;
|
|
9137
9137
|
if (o < 2) {
|
|
9138
9138
|
if ((z >= 0 && z <= 360 || z >= -360 && z <= 0) && z % 10 === 0) {
|
|
9139
9139
|
const E = ie.point([z, _], {
|
|
9140
|
-
dir: ((
|
|
9140
|
+
dir: ((R = w[_].val) == null ? void 0 : R[M]) || ((F = w[_].dir) == null ? void 0 : F[M]),
|
|
9141
9141
|
spd: w[_].spd[M]
|
|
9142
9142
|
});
|
|
9143
9143
|
v.push(E);
|
|
@@ -9150,11 +9150,11 @@ const Oc = {
|
|
|
9150
9150
|
v.push(E);
|
|
9151
9151
|
}
|
|
9152
9152
|
}) : S.forEach((z, M) => {
|
|
9153
|
-
var
|
|
9153
|
+
var R, F, N, O;
|
|
9154
9154
|
if (o < 2) {
|
|
9155
9155
|
if ((z >= 0 && z <= 360 || z >= -360 && z <= 0) && z % 10 === 0) {
|
|
9156
9156
|
const E = ie.point([z, _], {
|
|
9157
|
-
dir: ((
|
|
9157
|
+
dir: ((R = w[_].val) == null ? void 0 : R[M]) || ((F = w[_].dir) == null ? void 0 : F[M]),
|
|
9158
9158
|
spd: w[_].spd[M]
|
|
9159
9159
|
});
|
|
9160
9160
|
v.push(E);
|
|
@@ -9286,7 +9286,7 @@ const Oc = {
|
|
|
9286
9286
|
}, om = { class: "text-body-1 py-2" }, im = { class: "text-body-1 font-weight-medium" }, rm = { class: "text-body-2 text-label" }, lm = { class: "text-body-2 text-label" }, nm = { class: "text-body-2 text-label mb-3" }, sm = { class: "text-body-1 font-weight-medium" }, cm = { class: "text-body-2 text-label" }, mm = { class: "text-body-2 text-label" }, dm = { class: "text-body-2 text-label mb-3" }, hm = { class: "text-body-1 py-2" }, um = { class: "text-body-1 font-weight-medium" }, pm = { class: "text-body-2 text-label" }, gm = { class: "text-body-2 text-label" }, fm = { class: "text-body-2 text-label mb-3" }, ym = { class: "text-body-1 font-weight-medium" }, bm = { class: "text-body-2 text-label" }, wm = { class: "text-body-2 text-label" }, xm = { class: "text-body-2 text-label mb-3" }, vm = { class: "text-body-1 py-2" }, km = { class: "text-body-1 font-weight-medium" }, _m = { class: "text-body-2 text-label" }, zm = { class: "text-body-2 text-label" }, Lm = { class: "text-body-2 text-label mb-3" };
|
|
9287
9287
|
function Pm(e, t, a, i, o, r) {
|
|
9288
9288
|
var H, U, ae, X, j, $, G, re, ge, xe, ke, ce, fe, ve, Me;
|
|
9289
|
-
const l = I("VBtn"), c = I("VTooltip"), s = I("VCol"), h = I("VRow"), m = I("VCardText"), p = I("VDivider"), g = I("VCard"), y = I("VSwitch"), f = I("VBtnToggle"), d = I("VCardTitle"), u = I("VCardItem"), x = I("VCheckbox"), v = I("VRadio"), w = I("IdmWindBarb"), _ = I("IdmSigWaveHeight"), S = I("IdmCurrentDirection"), z = I("IdmPrmsl"), M = I("IdmWindParticle"),
|
|
9289
|
+
const l = I("VBtn"), c = I("VTooltip"), s = I("VCol"), h = I("VRow"), m = I("VCardText"), p = I("VDivider"), g = I("VCard"), y = I("VSwitch"), f = I("VBtnToggle"), d = I("VCardTitle"), u = I("VCardItem"), x = I("VCheckbox"), v = I("VRadio"), w = I("IdmWindBarb"), _ = I("IdmSigWaveHeight"), S = I("IdmCurrentDirection"), z = I("IdmPrmsl"), M = I("IdmWindParticle"), R = I("IdmCurrentParticle"), F = I("IdmWave"), N = I("IdmSwell"), O = I("IdmIceEdge"), E = I("IdmIceCover"), J = I("IdmIceThickness"), Q = I("IdmPrecip3h"), te = I("IdmVisibility"), he = I("IdmWaterTemp"), A = I("IdmTemp");
|
|
9290
9290
|
return k(), D("div", Ec, [
|
|
9291
9291
|
n("div", {
|
|
9292
9292
|
class: "menu-bar-box transition pa-1",
|
|
@@ -9824,7 +9824,7 @@ function Pm(e, t, a, i, o, r) {
|
|
|
9824
9824
|
"menu-toggle": a.menuToggle,
|
|
9825
9825
|
simple: a.simple
|
|
9826
9826
|
}, e.$attrs), null, 16, ["viewport", "factor", "menu-toggle", "simple"])) : W("", !0),
|
|
9827
|
-
a.map ? (k(), Z(
|
|
9827
|
+
a.map ? (k(), Z(R, Y({
|
|
9828
9828
|
key: 6,
|
|
9829
9829
|
viewport: o.viewport,
|
|
9830
9830
|
factor: ($ = o.weatherLayers) == null ? void 0 : $["current-particle"],
|
|
@@ -10245,8 +10245,8 @@ let Di = class {
|
|
|
10245
10245
|
}), o;
|
|
10246
10246
|
}
|
|
10247
10247
|
static pickHourly(t, a) {
|
|
10248
|
-
var i, o, r, l, c, s, h, m, p, g, y, f, d, u, x, v, w, _, S, z, M,
|
|
10249
|
-
const oe = typeof a == "string" ?
|
|
10248
|
+
var i, o, r, l, c, s, h, m, p, g, y, f, d, u, x, v, w, _, S, z, M, R, F, N, O, E, J, Q, te, he, A, H, U, ae, X, j, $, G, re, ge, xe, ke, ce, fe, ve, Me, K, de, Xe, Ne, Le, Te;
|
|
10249
|
+
const oe = typeof a == "string" ? T(a) : a, Pe = t == null ? void 0 : t.weather, pe = t == null ? void 0 : t.marine, ye = T((o = (i = Pe == null ? void 0 : Pe[0]) == null ? void 0 : i.hourly) == null ? void 0 : o.date).utc(), Be = ye.clone().add((c = (l = (r = Pe == null ? void 0 : Pe[0]) == null ? void 0 : r.hourly) == null ? void 0 : l.time) == null ? void 0 : c.at(0), "h"), He = ye.clone().add((m = (h = (s = Pe == null ? void 0 : Pe[0]) == null ? void 0 : s.hourly) == null ? void 0 : h.time) == null ? void 0 : m.at(-1), "h"), Ve = [];
|
|
10250
10250
|
if (oe.isBetween(Be, He, "millisecond", "[]")) {
|
|
10251
10251
|
const V = oe.utc().diff(Be, "h", !1);
|
|
10252
10252
|
let be, Re;
|
|
@@ -10276,7 +10276,7 @@ let Di = class {
|
|
|
10276
10276
|
pmsl: (S = le == null ? void 0 : le.pressure_msl) == null ? void 0 : S.at(V),
|
|
10277
10277
|
psurf: (z = le == null ? void 0 : le.surface_pressure) == null ? void 0 : z.at(V),
|
|
10278
10278
|
code: (M = le == null ? void 0 : le.weather_code) == null ? void 0 : M.at(V),
|
|
10279
|
-
visibility: this.m2nm((
|
|
10279
|
+
visibility: this.m2nm((R = le == null ? void 0 : le.visibility) == null ? void 0 : R.at(V)),
|
|
10280
10280
|
wind: {
|
|
10281
10281
|
speed: (F = le == null ? void 0 : le.wind_speed_10m) == null ? void 0 : F.at(V),
|
|
10282
10282
|
kts: (N = le == null ? void 0 : le.wind_speed_10m) == null ? void 0 : N.at(V),
|
|
@@ -10358,8 +10358,8 @@ let Di = class {
|
|
|
10358
10358
|
};
|
|
10359
10359
|
}
|
|
10360
10360
|
static pickDaily(t, a) {
|
|
10361
|
-
var i, o, r, l, c, s, h, m, p, g, y, f, d, u, x, v, w, _, S, z, M,
|
|
10362
|
-
const ve = typeof a == "string" ?
|
|
10361
|
+
var i, o, r, l, c, s, h, m, p, g, y, f, d, u, x, v, w, _, S, z, M, R, F, N, O, E, J, Q, te, he, A, H, U, ae, X, j, $, G, re, ge, xe, ke, ce, fe;
|
|
10362
|
+
const ve = typeof a == "string" ? T(a) : a, Me = t == null ? void 0 : t.weather, K = t == null ? void 0 : t.marine, de = T((r = (o = (i = Me == null ? void 0 : Me[0]) == null ? void 0 : i.daily) == null ? void 0 : o.time) == null ? void 0 : r.at(0)), Xe = T((s = (c = (l = Me == null ? void 0 : Me[0]) == null ? void 0 : l.daily) == null ? void 0 : c.time) == null ? void 0 : s.at(-1)), Ne = [];
|
|
10363
10363
|
if (ve.isBetween(de, Xe, "millisecond", "[]")) {
|
|
10364
10364
|
let Le, Te;
|
|
10365
10365
|
const oe = ve.diff(de, "d", !1);
|
|
@@ -10391,7 +10391,7 @@ let Di = class {
|
|
|
10391
10391
|
mean: (M = pe.relative_humidity_2m_mean) == null ? void 0 : M.at(oe)
|
|
10392
10392
|
},
|
|
10393
10393
|
wind: {
|
|
10394
|
-
speed: (
|
|
10394
|
+
speed: (R = pe.wind_speed_10m_max) == null ? void 0 : R.at(oe),
|
|
10395
10395
|
kts: (F = pe.wind_speed_10m_max) == null ? void 0 : F.at(oe),
|
|
10396
10396
|
degree: (N = pe.wind_direction_10m_dominant) == null ? void 0 : N.at(oe),
|
|
10397
10397
|
gusts: (O = pe.wind_gusts_10m_max) == null ? void 0 : O.at(oe),
|
|
@@ -10950,7 +10950,7 @@ const Mm = {
|
|
|
10950
10950
|
computeTime() {
|
|
10951
10951
|
return (e, t) => {
|
|
10952
10952
|
if (e) {
|
|
10953
|
-
const a =
|
|
10953
|
+
const a = T(e).utcOffset(t), i = t < 0 ? t : "+" + t;
|
|
10954
10954
|
return `${a == null ? void 0 : a.format("MMM-DD/HHmm")} (UTC${i}) ${a == null ? void 0 : a.fromNow()} `;
|
|
10955
10955
|
}
|
|
10956
10956
|
return "-";
|
|
@@ -10960,7 +10960,7 @@ const Mm = {
|
|
|
10960
10960
|
return (e, t, a = "MM-DD HH:mm") => {
|
|
10961
10961
|
var i, o;
|
|
10962
10962
|
if (e) {
|
|
10963
|
-
const r = t || 0, l = (o = (i =
|
|
10963
|
+
const r = t || 0, l = (o = (i = T(e)) == null ? void 0 : i.utcOffset(r)) == null ? void 0 : o.format(a), c = `(UTC ${r >= 0 ? "+" : ""}${r})`;
|
|
10964
10964
|
return l + " " + c;
|
|
10965
10965
|
}
|
|
10966
10966
|
return "-";
|
|
@@ -11101,7 +11101,7 @@ const Mm = {
|
|
|
11101
11101
|
o = "superTy";
|
|
11102
11102
|
break;
|
|
11103
11103
|
}
|
|
11104
|
-
i.properties.levelI18n = o, ((x = i.geometry) == null ? void 0 : x.type) === "Point" && ((v = i.properties) != null && v.important) && (i.properties.format = (_ = (w =
|
|
11104
|
+
i.properties.levelI18n = o, ((x = i.geometry) == null ? void 0 : x.type) === "Point" && ((v = i.properties) != null && v.important) && (i.properties.format = (_ = (w = T(i.properties.date)) == null ? void 0 : w.utcOffset(this.timeZone)) == null ? void 0 : _.format(`MMM-DD/HHmm [(utc${this.computeTimezone})]`)), ((S = i.geometry) == null ? void 0 : S.type) === "Point" && (i.properties.Name = ((M = (z = i.properties.name) == null ? void 0 : z.trim()) == null ? void 0 : M.replace(/^./, (R) => R.toUpperCase())) || i.properties.nameCn, i.properties.nameCn = i.properties.nameCn || i.properties.Name || "-");
|
|
11105
11105
|
}), this.handleInit();
|
|
11106
11106
|
},
|
|
11107
11107
|
handleInit() {
|
|
@@ -11320,9 +11320,9 @@ const Mm = {
|
|
|
11320
11320
|
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), (e = this.interpolateMarkers) == null || e.forEach((o) => o == null ? void 0 : o.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)), (t = this.map) == null || t.off("click", this.clickLayers, this.handleClick), (a = this.map) == null || a.off("mousemove", this.hoverLayers, this.handleHover), (i = this.map) == null || i.off("mouseleave", this.hoverLayers, this.handleLeave), this.handleCloseInfoMarker();
|
|
11321
11321
|
},
|
|
11322
11322
|
handleDateChange() {
|
|
11323
|
-
var e, t, a, i, o, r, l, c, s, h, m, p, g, y, f, d, u, x, v, w, _, S, z, M,
|
|
11323
|
+
var e, t, a, i, o, r, l, c, s, h, m, p, g, y, f, d, u, x, v, w, _, S, z, M, R, F, N, O, E, J, Q, te, he, A, H;
|
|
11324
11324
|
if ((e = this.interpolateMarkers) == null || e.forEach((U) => U == null ? void 0 : U.remove()), (t = this.interpolateData) != null && t.length && this.tropicals.active) {
|
|
11325
|
-
const U =
|
|
11325
|
+
const U = T(this.realTime).utc().set({ minute: 0, second: 0, millisecond: 0 }), ae = this.interpolateData.filter((G) => G.properties.date === (U == null ? void 0 : U.format()) && !G.properties.disabled), X = this.handleComputePolygons(ae), j = ie.featureCollection([...ae]);
|
|
11326
11326
|
X.forEach((G) => {
|
|
11327
11327
|
j.features.push(G);
|
|
11328
11328
|
}), (a = this.map) != null && a.getSource(this.interpolateSource) ? (i = this.map) == null || i.getSource(this.interpolateSource).setData(j) : ((o = this.map) == null || o.addSource(this.interpolateSource, {
|
|
@@ -11361,7 +11361,7 @@ const Mm = {
|
|
|
11361
11361
|
G.properties.nameCn = ce, G.properties.Name = ((m = (h = G.properties.name) == null ? void 0 : h.trim()) == null ? void 0 : m.replace(/^./, (fe) => fe.toUpperCase())) || G.properties.nameCn, $.push(G);
|
|
11362
11362
|
}
|
|
11363
11363
|
let re = this.Theme.current.value.colors["tropicals-ty"];
|
|
11364
|
-
((g = (p = G.properties) == null ? void 0 : p.wind) == null ? void 0 : g.kts) < 32 || !((f = (y = G.properties) == null ? void 0 : y.wind) != null && f.kts) ? re = this.Theme.current.value.colors["tropicals-td"] : ((u = (d = G.properties) == null ? void 0 : d.wind) == null ? void 0 : u.kts) >= 32 && ((v = (x = G.properties) == null ? void 0 : x.wind) == null ? void 0 : v.kts) < 47 ? re = this.Theme.current.value.colors["tropicals-ts"] : ((_ = (w = G.properties) == null ? void 0 : w.wind) == null ? void 0 : _.kts) >= 47 && ((z = (S = G.properties) == null ? void 0 : S.wind) == null ? void 0 : z.kts) < 63 ? re = this.Theme.current.value.colors["tropicals-sts"] : ((
|
|
11364
|
+
((g = (p = G.properties) == null ? void 0 : p.wind) == null ? void 0 : g.kts) < 32 || !((f = (y = G.properties) == null ? void 0 : y.wind) != null && f.kts) ? re = this.Theme.current.value.colors["tropicals-td"] : ((u = (d = G.properties) == null ? void 0 : d.wind) == null ? void 0 : u.kts) >= 32 && ((v = (x = G.properties) == null ? void 0 : x.wind) == null ? void 0 : v.kts) < 47 ? re = this.Theme.current.value.colors["tropicals-ts"] : ((_ = (w = G.properties) == null ? void 0 : w.wind) == null ? void 0 : _.kts) >= 47 && ((z = (S = G.properties) == null ? void 0 : S.wind) == null ? void 0 : z.kts) < 63 ? re = this.Theme.current.value.colors["tropicals-sts"] : ((R = (M = G.properties) == null ? void 0 : M.wind) == null ? void 0 : R.kts) >= 63 && ((N = (F = G.properties) == null ? void 0 : F.wind) == null ? void 0 : N.kts) < 79 ? re = this.Theme.current.value.colors["tropicals-ty"] : ((E = (O = G.properties) == null ? void 0 : O.wind) == null ? void 0 : E.kts) >= 79 && ((Q = (J = G.properties) == null ? void 0 : J.wind) == null ? void 0 : Q.kts) < 94 ? re = this.Theme.current.value.colors["tropicals-sty"] : ((he = (te = G.properties) == null ? void 0 : te.wind) == null ? void 0 : he.kts) >= 94 ? re = this.Theme.current.value.colors["tropicals-super-ty"] : re = this.Theme.current.value.colors["tropicals-ty"];
|
|
11365
11365
|
const ge = `<svg t="1719918955501"
|
|
11366
11366
|
class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" p-id="18382"
|
|
11367
11367
|
xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200">
|
|
@@ -11602,7 +11602,7 @@ function ch(e, t, a, i, o, r) {
|
|
|
11602
11602
|
default: L(() => [
|
|
11603
11603
|
C(s, null, {
|
|
11604
11604
|
default: L(() => {
|
|
11605
|
-
var f, d, u, x, v, w, _, S, z, M,
|
|
11605
|
+
var f, d, u, x, v, w, _, S, z, M, R, F;
|
|
11606
11606
|
return [
|
|
11607
11607
|
n("div", Tm, [
|
|
11608
11608
|
n("span", Rm, b(a.locale === "en" ? (f = o.activeTropicals) == null ? void 0 : f.Name : ((d = o.activeTropicals) == null ? void 0 : d.nameCn) || ((u = o.activeTropicals) == null ? void 0 : u.Name) || "-"), 1),
|
|
@@ -11623,7 +11623,7 @@ function ch(e, t, a, i, o, r) {
|
|
|
11623
11623
|
}, 8, ["onClick"]),
|
|
11624
11624
|
n("div", Dm, [
|
|
11625
11625
|
n("span", Am, b(e.$t("actions.lastUpdate")) + ": ", 1),
|
|
11626
|
-
n("span", null, b(r.computeTime(((z = (S = o.activeTropicals) == null ? void 0 : S.history) == null ? void 0 : z.updated) || ((F = (
|
|
11626
|
+
n("span", null, b(r.computeTime(((z = (S = o.activeTropicals) == null ? void 0 : S.history) == null ? void 0 : z.updated) || ((F = (R = (M = o.activeTropicals) == null ? void 0 : M.forecasts) == null ? void 0 : R.filter((N) => !N.disabled)[0]) == null ? void 0 : F.date), a.timeZone)), 1)
|
|
11627
11627
|
])
|
|
11628
11628
|
];
|
|
11629
11629
|
}),
|
|
@@ -11658,8 +11658,8 @@ function ch(e, t, a, i, o, r) {
|
|
|
11658
11658
|
n("div", Vm, [
|
|
11659
11659
|
n("label", Hm, b(e.$t("tropical.models")) + " : ", 1),
|
|
11660
11660
|
n("div", Ym, [
|
|
11661
|
-
(k(!0), D(Ie, null, De((z = o.activeTropicals) == null ? void 0 : z.forecasts, (M,
|
|
11662
|
-
key:
|
|
11661
|
+
(k(!0), D(Ie, null, De((z = o.activeTropicals) == null ? void 0 : z.forecasts, (M, R) => (k(), Z(l, {
|
|
11662
|
+
key: R,
|
|
11663
11663
|
density: "compact",
|
|
11664
11664
|
variant: M.disabled ? "text" : "flat",
|
|
11665
11665
|
color: M.disabled ? "" : "primary",
|
|
@@ -11859,7 +11859,7 @@ function ch(e, t, a, i, o, r) {
|
|
|
11859
11859
|
C(y),
|
|
11860
11860
|
C(s, { class: "text-body-1" }, {
|
|
11861
11861
|
default: L(() => {
|
|
11862
|
-
var f, d, u, x, v, w, _, S, z, M,
|
|
11862
|
+
var f, d, u, x, v, w, _, S, z, M, R, F, N, O, E, J, Q, te, he, A;
|
|
11863
11863
|
return [
|
|
11864
11864
|
n("div", Ed, [
|
|
11865
11865
|
((f = o.hoverPoint) == null ? void 0 : f.type) === "forecast" ? (k(), D("div", jd, [
|
|
@@ -11880,7 +11880,7 @@ function ch(e, t, a, i, o, r) {
|
|
|
11880
11880
|
])) : W("", !0),
|
|
11881
11881
|
((z = o.hoverPoint) == null ? void 0 : z.type) === "forecast" ? (k(), D("div", $d, [
|
|
11882
11882
|
n("label", qd, b(e.$t("weather.wind")) + " : ", 1),
|
|
11883
|
-
n("span", null, b(((
|
|
11883
|
+
n("span", null, b(((R = JSON.parse((M = o.hoverPoint) == null ? void 0 : M.wind)) == null ? void 0 : R.kts) ?? "-") + " kts", 1)
|
|
11884
11884
|
])) : W("", !0),
|
|
11885
11885
|
((F = o.hoverPoint) == null ? void 0 : F.type) === "history" ? (k(), D("div", Qd, [
|
|
11886
11886
|
n("label", eh, b(e.$t("weather.wind")) + " : ", 1),
|
|
@@ -12004,7 +12004,7 @@ const mh = {
|
|
|
12004
12004
|
};
|
|
12005
12005
|
},
|
|
12006
12006
|
currentYear() {
|
|
12007
|
-
return
|
|
12007
|
+
return T(this.currentTimestamp).format("YYYY");
|
|
12008
12008
|
},
|
|
12009
12009
|
hourOptions() {
|
|
12010
12010
|
const e = [];
|
|
@@ -12013,11 +12013,11 @@ const mh = {
|
|
|
12013
12013
|
return e.filter((t, a) => (a - this.timeZone) % this.intervalHour === 0);
|
|
12014
12014
|
},
|
|
12015
12015
|
timeZoneNames() {
|
|
12016
|
-
return
|
|
12016
|
+
return T.tz.names();
|
|
12017
12017
|
},
|
|
12018
12018
|
timeZoneName() {
|
|
12019
12019
|
var e;
|
|
12020
|
-
return (e = this.timeZoneNames.filter((t) =>
|
|
12020
|
+
return (e = this.timeZoneNames.filter((t) => T.tz(T(), t).utcOffset() === this.timeZone * 60)) == null ? void 0 : e[0];
|
|
12021
12021
|
},
|
|
12022
12022
|
utcTimeZoneName() {
|
|
12023
12023
|
return "Africa/Abidjan";
|
|
@@ -12040,7 +12040,7 @@ const mh = {
|
|
|
12040
12040
|
},
|
|
12041
12041
|
currentTimestamp: {
|
|
12042
12042
|
handler() {
|
|
12043
|
-
this.currentDateTimeZ =
|
|
12043
|
+
this.currentDateTimeZ = T(this.currentTimestamp).utc().format("yyyy-MM-DD HH:00[Z]"), this.$emit("dateTime", this.currentDateTimeZ), this.$emit("currentTimestamp", this.currentTimestamp), this.currentDateTime = `${T.tz(this.currentTimestamp, this.timeZoneName).clone().format("yyyy-MM-DD : HH:00")}`;
|
|
12044
12044
|
},
|
|
12045
12045
|
immediate: !0
|
|
12046
12046
|
},
|
|
@@ -12052,7 +12052,7 @@ const mh = {
|
|
|
12052
12052
|
},
|
|
12053
12053
|
mounted() {
|
|
12054
12054
|
this.timer = setInterval(() => {
|
|
12055
|
-
this.currentRealTime = `${
|
|
12055
|
+
this.currentRealTime = `${T.tz(T().unix() * 1e3, this.timeZoneName).clone().format("HH:mm")}`;
|
|
12056
12056
|
}, 100), document.addEventListener("click", this.handleClickOutside);
|
|
12057
12057
|
},
|
|
12058
12058
|
unmounted() {
|
|
@@ -12064,35 +12064,35 @@ const mh = {
|
|
|
12064
12064
|
},
|
|
12065
12065
|
handleResetDateTime(e) {
|
|
12066
12066
|
var o;
|
|
12067
|
-
const t =
|
|
12068
|
-
this.currentTimestamp = ((o =
|
|
12069
|
-
const i =
|
|
12070
|
-
this.currentDate = i.clone().format("YYYY-MM-DD"), this.currentTime = i.clone().format("HH:00"), this.currentDateTime = `${
|
|
12067
|
+
const t = T(e).utc().date(), a = Math.ceil(T(e).utc().hour() / 3) * 3;
|
|
12068
|
+
this.currentTimestamp = ((o = T(e)) == null ? void 0 : o.utc().set({ date: t, hour: a, minute: 0, second: 0, millisecond: 0 }).unix()) * 1e3;
|
|
12069
|
+
const i = T.tz(this.currentTimestamp, this.timeZoneName).clone();
|
|
12070
|
+
this.currentDate = i.clone().format("YYYY-MM-DD"), this.currentTime = i.clone().format("HH:00"), this.currentDateTime = `${T.tz(this.currentTimestamp, this.timeZoneName).clone().format("yyyy-MM-DD : HH:00")}`, this.currentRealTime = `${T.tz(T().unix() * 1e3, this.timeZoneName).clone().format("HH:mm")}`;
|
|
12071
12071
|
},
|
|
12072
12072
|
handleResetMinMax() {
|
|
12073
12073
|
var o, r, l, c, s;
|
|
12074
12074
|
if (!this.dayAbout.h || !this.dayAbout.f)
|
|
12075
12075
|
return;
|
|
12076
|
-
const e =
|
|
12077
|
-
this.minDate = i.clone().add(this.dayAbout.h, "day").format("yyyy-MM-DD"), this.maxDate = i.clone().add(this.dayAbout.f, "day").format("yyyy-MM-DD"), this.minTimestamp = ((l = (r =
|
|
12076
|
+
const e = T().utc().date(), t = Math.ceil(T().utc().hour() / 3) * 3, a = ((o = T()) == null ? void 0 : o.utc().set({ date: e, hour: t, minute: 0, second: 0, millisecond: 0 }).unix()) * 1e3, i = T.tz(a, this.timeZoneName).clone();
|
|
12077
|
+
this.minDate = i.clone().add(this.dayAbout.h, "day").format("yyyy-MM-DD"), this.maxDate = i.clone().add(this.dayAbout.f, "day").format("yyyy-MM-DD"), this.minTimestamp = ((l = (r = T()) == null ? void 0 : r.utc()) == null ? void 0 : l.set({ date: e + this.dayAbout.h, hour: 0, minute: 0, second: 0, millisecond: 0 }).unix()) * 1e3, this.maxTimestamp = ((s = (c = T()) == null ? void 0 : c.utc()) == null ? void 0 : s.set({ date: e + this.dayAbout.f, hour: 0, minute: 0, second: 0, millisecond: 0 }).unix()) * 1e3, this.$emit("minTimestamp", this.minTimestamp), this.$emit("maxTimestamp", this.maxTimestamp);
|
|
12078
12078
|
},
|
|
12079
12079
|
handleOpenDatePicker() {
|
|
12080
12080
|
this.disabled || (this.showDatePicker = !this.showDatePicker, this.handleUpdateMonth());
|
|
12081
12081
|
},
|
|
12082
12082
|
handleUpdateMonth(e) {
|
|
12083
|
-
const t = e ||
|
|
12083
|
+
const t = e || T.tz(this.currentTimestamp, this.timeZoneName).clone().month(), a = this.locale === "en" ? T.tz(this.currentTimestamp, this.timeZoneName).set({ month: t }).clone().format("MMM") : T.tz(this.currentTimestamp, this.timeZoneName).set({ month: t }).clone().format("M月");
|
|
12084
12084
|
this.$nextTick(() => {
|
|
12085
12085
|
const i = document.querySelector(".v-date-picker-controls__month-btn");
|
|
12086
12086
|
i.innerText = a;
|
|
12087
12087
|
});
|
|
12088
12088
|
},
|
|
12089
12089
|
handleConfirmDate() {
|
|
12090
|
-
const e =
|
|
12090
|
+
const e = T(this.currentDate).format("yyyy-MM-DD"), t = this.currentTime, a = `${e} ${t}`, i = T.tz(a, "YYYY-MM-DD HH:00", this.timeZoneName).clone().tz(this.localTimeZoneName);
|
|
12091
12091
|
this.currentTimestamp = i.unix() * 1e3, this.showDatePicker = !1;
|
|
12092
12092
|
},
|
|
12093
12093
|
handleCancelDate() {
|
|
12094
12094
|
this.showDatePicker = !1;
|
|
12095
|
-
const e =
|
|
12095
|
+
const e = T.tz(this.currentTimestamp, this.timeZoneName).clone();
|
|
12096
12096
|
this.currentDate = e.clone().format("YYYY-MM-DD"), this.currentTime = e.clone().format("HH:00");
|
|
12097
12097
|
},
|
|
12098
12098
|
handleClickOutside(e) {
|
|
@@ -13106,20 +13106,20 @@ const fh = {
|
|
|
13106
13106
|
},
|
|
13107
13107
|
computed: {
|
|
13108
13108
|
timeZoneNames() {
|
|
13109
|
-
return
|
|
13109
|
+
return T.tz.names();
|
|
13110
13110
|
},
|
|
13111
13111
|
timeZoneName() {
|
|
13112
13112
|
var e;
|
|
13113
|
-
return (e = this.timeZoneNames.filter((t) =>
|
|
13113
|
+
return (e = this.timeZoneNames.filter((t) => T.tz(T(), t).utcOffset() === this.timeZone * 60)) == null ? void 0 : e[0];
|
|
13114
13114
|
},
|
|
13115
13115
|
computedTzTime() {
|
|
13116
|
-
return (e) =>
|
|
13116
|
+
return (e) => T.tz(T(e), this.timeZoneName).clone().format("YYYY-MM-DD HHmm") + " (UTC " + (this.timeZone >= 0 ? "+" : "") + this.timeZone + ")";
|
|
13117
13117
|
},
|
|
13118
13118
|
computedLocalTime() {
|
|
13119
13119
|
return (e) => {
|
|
13120
13120
|
var i, o, r;
|
|
13121
|
-
const t = Number((i = this.positionOffset) == null ? void 0 : i.slice(1, 3)) * (+(((o = this.positionOffset) == null ? void 0 : o.slice(1)) === "+") ? 1 : -1), a = (r = this.timeZoneNames.filter((l) =>
|
|
13122
|
-
return e ?
|
|
13121
|
+
const t = Number((i = this.positionOffset) == null ? void 0 : i.slice(1, 3)) * (+(((o = this.positionOffset) == null ? void 0 : o.slice(1)) === "+") ? 1 : -1), a = (r = this.timeZoneNames.filter((l) => T.tz(T(), l).utcOffset() === t * 60)) == null ? void 0 : r[0];
|
|
13122
|
+
return e ? T.tz(T(e), a).clone().format("YYYY-MM-DD HHmm") + " (UTC " + (t >= 0 ? "+" : "") + t + ")" : "-";
|
|
13123
13123
|
};
|
|
13124
13124
|
},
|
|
13125
13125
|
computePosition() {
|
|
@@ -13220,8 +13220,8 @@ const fh = {
|
|
|
13220
13220
|
if (isNaN(this.form.latDegree) || isNaN(this.form.latMinute) || isNaN(this.form.lngDegree) || isNaN(this.form.lngMinute))
|
|
13221
13221
|
return !1;
|
|
13222
13222
|
this.form.lat = (Number(this.form.latDegree ?? 0) + Number(this.form.latMinute ?? 0) / 60) * (this.form.latDirection === "N" ? 1 : -1), this.form.lng = (Number(this.form.lngDegree ?? 0) + Number(this.form.lngMinute ?? 0) / 60) * (this.form.lngDirection === "E" ? 1 : -1);
|
|
13223
|
-
const e =
|
|
13224
|
-
((a =
|
|
13223
|
+
const e = T();
|
|
13224
|
+
((a = T(this.realTime)) == null ? void 0 : a.diff(e, "d", !0)) >= 0 ? await this.fetchForecastData(this.form) : await this.fetchHistoryData(this.form);
|
|
13225
13225
|
},
|
|
13226
13226
|
async fetchForecastData(e) {
|
|
13227
13227
|
this.loading = !0, this.showMeteo = !0, this.form.lng = e.lng, this.form.lat = e.lat, this.form.followId = e.followId, this.handleDrawInfoMarker([e.lng, e.lat]), this.meteoData = [];
|
|
@@ -13229,7 +13229,7 @@ const fh = {
|
|
|
13229
13229
|
let i = {
|
|
13230
13230
|
lat: e.lat,
|
|
13231
13231
|
lng: e.lng,
|
|
13232
|
-
datetime:
|
|
13232
|
+
datetime: T(e.dateTime).utc().format(),
|
|
13233
13233
|
forecastDays: e.day ?? 3,
|
|
13234
13234
|
weatherModels: t,
|
|
13235
13235
|
marineModels: a
|
|
@@ -13249,7 +13249,7 @@ const fh = {
|
|
|
13249
13249
|
const { weatherModels: t, marineModels: a } = Ea.autoPickMeteoModel(e.forecastModel), i = {
|
|
13250
13250
|
lat: e.lat,
|
|
13251
13251
|
lng: e.lng,
|
|
13252
|
-
datetime:
|
|
13252
|
+
datetime: T(e.dateTime).utc().format(),
|
|
13253
13253
|
forecastDays: 2,
|
|
13254
13254
|
pastDays: 1,
|
|
13255
13255
|
weatherModels: t,
|
|
@@ -13266,10 +13266,10 @@ const fh = {
|
|
|
13266
13266
|
}), this.loading = !1;
|
|
13267
13267
|
},
|
|
13268
13268
|
initTableData(e) {
|
|
13269
|
-
var a, i, o, r, l, c, s, h, m, p, g, y, f, d, u, x, v, w, _, S, z, M,
|
|
13269
|
+
var a, i, o, r, l, c, s, h, m, p, g, y, f, d, u, x, v, w, _, S, z, M, R, F, N, O, E, J, Q, te, he, A, H, U, ae, X, j, $, G, re, ge;
|
|
13270
13270
|
this.currentHourData = {}, this.positionGmt = (i = (a = e == null ? void 0 : e.weather) == null ? void 0 : a[0]) == null ? void 0 : i.timezone, this.positionOffset = (r = (o = e == null ? void 0 : e.weather) == null ? void 0 : o[0]) == null ? void 0 : r.offset;
|
|
13271
|
-
const t = ((l = Ea.pickHourly(e,
|
|
13272
|
-
this.currentHourData.utc = t.utc, this.currentHourData.lat = e.lat, this.currentHourData.lng = e.lng, this.currentHourData.temp = this.computeRoundPrecision((c = t == null ? void 0 : t.weather) == null ? void 0 : c.temp, 0) ?? "-", this.currentHourData.precipProbability = this.computeRoundPrecision((h = (s = t == null ? void 0 : t.weather) == null ? void 0 : s.precip) == null ? void 0 : h.probability, 0) ?? "-", this.currentHourData.precip1h = this.computeRoundPrecision((p = (m = t == null ? void 0 : t.weather) == null ? void 0 : m.precip) == null ? void 0 : p.sum, 0) ?? "-", this.currentHourData.visibility = this.computeRoundPrecision((g = t == null ? void 0 : t.weather) == null ? void 0 : g.visibility, 0) ?? "-", this.currentHourData.windSpeed = this.computeRoundPrecision((f = (y = t == null ? void 0 : t.weather) == null ? void 0 : y.wind) == null ? void 0 : f.kts, 1) ?? "-", this.currentHourData.windDir = ((u = (d = t == null ? void 0 : t.weather) == null ? void 0 : d.wind) == null ? void 0 : u.direction) ?? "-", this.currentHourData.windLevel = this.computeRoundPrecision((v = (x = t == null ? void 0 : t.weather) == null ? void 0 : x.wind) == null ? void 0 : v.scale, 0) ?? "-", this.currentHourData.windGust = this.computeRoundPrecision((_ = (w = t == null ? void 0 : t.weather) == null ? void 0 : w.wind) == null ? void 0 : _.gusts, 1) ?? "-", this.currentHourData.sigwaveHeight = this.computeRoundPrecision((z = (S = t == null ? void 0 : t.wave) == null ? void 0 : S.sig) == null ? void 0 : z.height, 1) ?? "-", this.currentHourData.sigwaveDir = (
|
|
13271
|
+
const t = ((l = Ea.pickHourly(e, T(this.form.dateTime))) == null ? void 0 : l[0]) || {};
|
|
13272
|
+
this.currentHourData.utc = t.utc, this.currentHourData.lat = e.lat, this.currentHourData.lng = e.lng, this.currentHourData.temp = this.computeRoundPrecision((c = t == null ? void 0 : t.weather) == null ? void 0 : c.temp, 0) ?? "-", this.currentHourData.precipProbability = this.computeRoundPrecision((h = (s = t == null ? void 0 : t.weather) == null ? void 0 : s.precip) == null ? void 0 : h.probability, 0) ?? "-", this.currentHourData.precip1h = this.computeRoundPrecision((p = (m = t == null ? void 0 : t.weather) == null ? void 0 : m.precip) == null ? void 0 : p.sum, 0) ?? "-", this.currentHourData.visibility = this.computeRoundPrecision((g = t == null ? void 0 : t.weather) == null ? void 0 : g.visibility, 0) ?? "-", this.currentHourData.windSpeed = this.computeRoundPrecision((f = (y = t == null ? void 0 : t.weather) == null ? void 0 : y.wind) == null ? void 0 : f.kts, 1) ?? "-", this.currentHourData.windDir = ((u = (d = t == null ? void 0 : t.weather) == null ? void 0 : d.wind) == null ? void 0 : u.direction) ?? "-", this.currentHourData.windLevel = this.computeRoundPrecision((v = (x = t == null ? void 0 : t.weather) == null ? void 0 : x.wind) == null ? void 0 : v.scale, 0) ?? "-", this.currentHourData.windGust = this.computeRoundPrecision((_ = (w = t == null ? void 0 : t.weather) == null ? void 0 : w.wind) == null ? void 0 : _.gusts, 1) ?? "-", this.currentHourData.sigwaveHeight = this.computeRoundPrecision((z = (S = t == null ? void 0 : t.wave) == null ? void 0 : S.sig) == null ? void 0 : z.height, 1) ?? "-", this.currentHourData.sigwaveDir = (R = (M = t == null ? void 0 : t.wave) == null ? void 0 : M.sig) == null ? void 0 : R.direction, this.currentHourData.sigwavePeriod = this.computeRoundPrecision((N = (F = t == null ? void 0 : t.wave) == null ? void 0 : F.sig) == null ? void 0 : N.period, 1) ?? "-", this.currentHourData.windwaveHeight = this.computeRoundPrecision((E = (O = t == null ? void 0 : t.wave) == null ? void 0 : O.wd) == null ? void 0 : E.height, 1) ?? "-", this.currentHourData.windwaveDir = (Q = (J = t == null ? void 0 : t.wave) == null ? void 0 : J.wd) == null ? void 0 : Q.direction, this.currentHourData.windwavePeriod = this.computeRoundPrecision((he = (te = t == null ? void 0 : t.wave) == null ? void 0 : te.wd) == null ? void 0 : he.period, 1) ?? "-", this.currentHourData.swellHeight = this.computeRoundPrecision((H = (A = t == null ? void 0 : t.wave) == null ? void 0 : A.swell) == null ? void 0 : H.height, 1) ?? "-", this.currentHourData.swellDir = (ae = (U = t == null ? void 0 : t.wave) == null ? void 0 : U.swell) == null ? void 0 : ae.direction, this.currentHourData.swellPeriod = this.computeRoundPrecision((j = (X = t == null ? void 0 : t.wave) == null ? void 0 : X.swell) == null ? void 0 : j.period, 1) ?? "-", this.currentHourData.currentSpeed = this.computeRoundPrecision(($ = t == null ? void 0 : t.current) == null ? void 0 : $.speed, 1) ?? "-", this.currentHourData.currentDir = (G = t == null ? void 0 : t.current) == null ? void 0 : G.direction, this.currentHourData.currentSpeed = this.computeRoundPrecision((re = t == null ? void 0 : t.current) == null ? void 0 : re.speed, 1) ?? "-", this.currentHourData.seaLevel = this.computeRoundPrecision(t == null ? void 0 : t.height, 1) ?? "-", this.currentHourData.seaTemp = this.computeRoundPrecision(t == null ? void 0 : t.sst, 0) ?? "-", this.currentHourData.weatherUrls = (ge = t == null ? void 0 : t.weather) == null ? void 0 : ge.url;
|
|
13273
13273
|
},
|
|
13274
13274
|
handleBind() {
|
|
13275
13275
|
var e, t;
|
|
@@ -15125,7 +15125,7 @@ async function dr(e, t, a, i) {
|
|
|
15125
15125
|
}
|
|
15126
15126
|
}
|
|
15127
15127
|
async function dp({ required: e, usedCodepoints: t, exclude: a = void 0, localFonts: i = [], useProxy: o = "" } = {}) {
|
|
15128
|
-
var d, u, x, v, w, _, S, z, M,
|
|
15128
|
+
var d, u, x, v, w, _, S, z, M, R, F, N, O, E, J, Q, te, he;
|
|
15129
15129
|
e instanceof Set || (e = /* @__PURE__ */ new Set()), t instanceof Set || (t = /* @__PURE__ */ new Set());
|
|
15130
15130
|
let r = /* @__PURE__ */ new Map();
|
|
15131
15131
|
for (let A of e) {
|
|
@@ -15245,7 +15245,7 @@ async function dp({ required: e, usedCodepoints: t, exclude: a = void 0, localFo
|
|
|
15245
15245
|
if (!String(U).startsWith("data:")) {
|
|
15246
15246
|
if ((z = B.resource) != null && z.has(A._snapdomSrc))
|
|
15247
15247
|
U = B.resource.get(A._snapdomSrc), (M = B.font) == null || M.add(A._snapdomSrc);
|
|
15248
|
-
else if (!((
|
|
15248
|
+
else if (!((R = B.font) != null && R.has(A._snapdomSrc)))
|
|
15249
15249
|
try {
|
|
15250
15250
|
let ae = await Ue(A._snapdomSrc, { as: "dataURL", useProxy: o, silent: !0 });
|
|
15251
15251
|
if (ae.ok && typeof ae.data == "string")
|
|
@@ -16057,16 +16057,16 @@ async function Ka(e, t, a) {
|
|
|
16057
16057
|
try {
|
|
16058
16058
|
let d = e.getBoundingClientRect(), u = Math.round(d.width || 0), x = Math.round(d.height || 0);
|
|
16059
16059
|
if (!u || !x) {
|
|
16060
|
-
let v = window.getComputedStyle(e), w = parseFloat(v.width) || 0, _ = parseFloat(v.height) || 0, S = parseInt(e.getAttribute("width") || "", 10) || 0, z = parseInt(e.getAttribute("height") || "", 10) || 0, M = e.width || e.naturalWidth || 0,
|
|
16061
|
-
u = Math.round(u || w || S || M || 0), x = Math.round(x || _ || z ||
|
|
16060
|
+
let v = window.getComputedStyle(e), w = parseFloat(v.width) || 0, _ = parseFloat(v.height) || 0, S = parseInt(e.getAttribute("width") || "", 10) || 0, z = parseInt(e.getAttribute("height") || "", 10) || 0, M = e.width || e.naturalWidth || 0, R = e.height || e.naturalHeight || 0;
|
|
16061
|
+
u = Math.round(u || w || S || M || 0), x = Math.round(x || _ || z || R || 0);
|
|
16062
16062
|
}
|
|
16063
16063
|
u && (l.dataset.snapdomWidth = String(u)), x && (l.dataset.snapdomHeight = String(x));
|
|
16064
16064
|
} catch {
|
|
16065
16065
|
}
|
|
16066
16066
|
try {
|
|
16067
16067
|
let d = e.getAttribute("style") || "", u = window.getComputedStyle(e), x = (z) => {
|
|
16068
|
-
let M = d.match(new RegExp(`${z}\\s*:\\s*([^;]+)`, "i")),
|
|
16069
|
-
return /%|auto/i.test(String(
|
|
16068
|
+
let M = d.match(new RegExp(`${z}\\s*:\\s*([^;]+)`, "i")), R = M ? M[1].trim() : u.getPropertyValue(z);
|
|
16069
|
+
return /%|auto/i.test(String(R || ""));
|
|
16070
16070
|
}, v = parseInt(l.dataset.snapdomWidth || "0", 10), w = parseInt(l.dataset.snapdomHeight || "0", 10), _ = x("width") || !v, S = x("height") || !w;
|
|
16071
16071
|
_ && v && (l.style.width = `${v}px`), S && w && (l.style.height = `${w}px`), v && (l.style.minWidth = `${v}px`), w && (l.style.minHeight = `${w}px`);
|
|
16072
16072
|
} catch {
|
|
@@ -16080,18 +16080,18 @@ async function Ka(e, t, a) {
|
|
|
16080
16080
|
l.style.width = `${d.width}px`, l.style.height = `${d.height}px`;
|
|
16081
16081
|
}
|
|
16082
16082
|
if (e instanceof HTMLInputElement && (l.value = e.value, l.setAttribute("value", e.value), e.checked !== void 0 && (l.checked = e.checked, e.checked && l.setAttribute("checked", ""), e.indeterminate && (l.indeterminate = e.indeterminate))), e instanceof HTMLSelectElement && (o = e.value), e instanceof HTMLTextAreaElement && (r = e.value), nt(e, l, t, a), e.shadowRoot) {
|
|
16083
|
-
let d = function(
|
|
16084
|
-
if (
|
|
16083
|
+
let d = function(R, F) {
|
|
16084
|
+
if (R.nodeType === Node.ELEMENT_NODE && R.tagName === "STYLE")
|
|
16085
16085
|
return F(null);
|
|
16086
|
-
Ka(
|
|
16086
|
+
Ka(R, t, a).then((N) => {
|
|
16087
16087
|
F(N || null);
|
|
16088
16088
|
}).catch(() => {
|
|
16089
16089
|
F(null);
|
|
16090
16090
|
});
|
|
16091
16091
|
};
|
|
16092
16092
|
try {
|
|
16093
|
-
let
|
|
16094
|
-
for (let F of
|
|
16093
|
+
let R = e.shadowRoot.querySelectorAll("slot");
|
|
16094
|
+
for (let F of R) {
|
|
16095
16095
|
let N = [];
|
|
16096
16096
|
try {
|
|
16097
16097
|
N = ((p = F.assignedNodes) == null ? void 0 : p.call(F, { flatten: !0 })) || ((g = F.assignedNodes) == null ? void 0 : g.call(F)) || [];
|
|
@@ -16111,7 +16111,7 @@ async function Ka(e, t, a) {
|
|
|
16111
16111
|
let v = Wp(e.shadowRoot), w = Ap(v, x), _ = Zp(v), S = Op(e, _, x);
|
|
16112
16112
|
Fp(l, S + w, u);
|
|
16113
16113
|
let z = document.createDocumentFragment(), M = await oo(Array.from(e.shadowRoot.childNodes), d, a.fast);
|
|
16114
|
-
z.append(...M.filter((
|
|
16114
|
+
z.append(...M.filter((R) => !!R)), l.appendChild(z);
|
|
16115
16115
|
}
|
|
16116
16116
|
if (e.tagName === "SLOT") {
|
|
16117
16117
|
let d = function(_, S) {
|
|
@@ -16208,9 +16208,9 @@ function Qp(e) {
|
|
|
16208
16208
|
let S = _.trim().split(/\s+/), z = S[0], M = Number.isFinite(Number(S[1])) ? Number(S[1]) : 0;
|
|
16209
16209
|
if (!z)
|
|
16210
16210
|
continue;
|
|
16211
|
-
let
|
|
16212
|
-
if (
|
|
16213
|
-
let F =
|
|
16211
|
+
let R = y.get(z);
|
|
16212
|
+
if (R && R.length) {
|
|
16213
|
+
let F = R.slice();
|
|
16214
16214
|
F.push(M), d.set(z, F);
|
|
16215
16215
|
} else
|
|
16216
16216
|
d.set(z, [M]);
|
|
@@ -16225,15 +16225,15 @@ function Qp(e) {
|
|
|
16225
16225
|
let S = _.trim().split(/\s+/), z = S[0], M = Number.isFinite(Number(S[1])) ? Number(S[1]) : 1;
|
|
16226
16226
|
if (!z)
|
|
16227
16227
|
continue;
|
|
16228
|
-
let
|
|
16229
|
-
|
|
16228
|
+
let R = d.get(z) || [];
|
|
16229
|
+
R.length === 0 && R.push(0), R[R.length - 1] += M, d.set(z, R);
|
|
16230
16230
|
}
|
|
16231
16231
|
try {
|
|
16232
16232
|
if (getComputedStyle(f).display === "list-item" && r(f)) {
|
|
16233
16233
|
let _ = f.parentElement, S = 1;
|
|
16234
16234
|
if (_ && _.tagName === "OL") {
|
|
16235
|
-
let M = _.getAttribute("start"),
|
|
16236
|
-
S = Number.isFinite(Number(N)) ? Number(N) :
|
|
16235
|
+
let M = _.getAttribute("start"), R = Number.isFinite(Number(M)) ? Number(M) : 1, F = l(f), N = f.getAttribute("value");
|
|
16236
|
+
S = Number.isFinite(Number(N)) ? Number(N) : R + F;
|
|
16237
16237
|
} else
|
|
16238
16238
|
S = 1 + l(f);
|
|
16239
16239
|
let z = d.get("list-item") || [];
|
|
@@ -16496,7 +16496,7 @@ async function fr(e, t, a, i) {
|
|
|
16496
16496
|
t.replaceChild(ce, j), t.insertBefore(ge, ce);
|
|
16497
16497
|
continue;
|
|
16498
16498
|
}
|
|
16499
|
-
let f = y.content ?? "", d = f === "" || f === "none" || f === "normal", { text: u, incs: x } = ig(e, g, l), v = y.backgroundImage, w = y.backgroundColor, _ = y.fontFamily, S = parseInt(y.fontSize) || 32, z = parseInt(y.fontWeight) || !1, M = y.color || "#000",
|
|
16499
|
+
let f = y.content ?? "", d = f === "" || f === "none" || f === "normal", { text: u, incs: x } = ig(e, g, l), v = y.backgroundImage, w = y.backgroundColor, _ = y.fontFamily, S = parseInt(y.fontSize) || 32, z = parseInt(y.fontWeight) || !1, M = y.color || "#000", R = y.borderStyle, F = parseFloat(y.borderWidth), N = y.transform, O = Ke(_), E = !d && u !== "", J = v && v !== "none", Q = w && w !== "transparent" && w !== "rgba(0, 0, 0, 0)", te = R && R !== "none" && F > 0, he = N && N !== "none";
|
|
16500
16500
|
if (!(E || J || Q || te || he)) {
|
|
16501
16501
|
if (x && x.length && e.parentElement) {
|
|
16502
16502
|
let X = st.get(e.parentElement) || /* @__PURE__ */ new Map();
|
|
@@ -16574,11 +16574,11 @@ function rg(e, t) {
|
|
|
16574
16574
|
let M = z.getAttribute("href") || z.getAttribute("xlink:href") || (typeof z.getAttributeNS == "function" ? z.getAttributeNS(s, "href") : null);
|
|
16575
16575
|
if (M)
|
|
16576
16576
|
return M;
|
|
16577
|
-
let
|
|
16578
|
-
if (!
|
|
16577
|
+
let R = z.attributes;
|
|
16578
|
+
if (!R)
|
|
16579
16579
|
return null;
|
|
16580
|
-
for (let F = 0; F <
|
|
16581
|
-
let N =
|
|
16580
|
+
for (let F = 0; F < R.length; F++) {
|
|
16581
|
+
let N = R[F];
|
|
16582
16582
|
if (!N || !N.name)
|
|
16583
16583
|
continue;
|
|
16584
16584
|
if (N.name === "href")
|
|
@@ -16592,10 +16592,10 @@ function rg(e, t) {
|
|
|
16592
16592
|
if (!z)
|
|
16593
16593
|
return;
|
|
16594
16594
|
r.lastIndex = 0;
|
|
16595
|
-
let
|
|
16596
|
-
for (;
|
|
16595
|
+
let R;
|
|
16596
|
+
for (; R = r.exec(z); ) {
|
|
16597
16597
|
g = !0;
|
|
16598
|
-
let F = (
|
|
16598
|
+
let F = (R[1] || "").trim();
|
|
16599
16599
|
F && (m.has(F) || (p.add(F), M && !M.has(F) && M.add(F)));
|
|
16600
16600
|
}
|
|
16601
16601
|
}, f = (z) => {
|
|
@@ -16608,8 +16608,8 @@ function rg(e, t) {
|
|
|
16608
16608
|
let O = N.slice(1).trim();
|
|
16609
16609
|
O && !m.has(O) && p.add(O);
|
|
16610
16610
|
}
|
|
16611
|
-
let
|
|
16612
|
-
for (let F of
|
|
16611
|
+
let R = z.querySelectorAll('*[style*="url("],*[fill^="url("], *[stroke^="url("],*[filter^="url("],*[clip-path^="url("],*[mask^="url("],*[marker^="url("],*[marker-start^="url("],*[marker-mid^="url("],*[marker-end^="url("]');
|
|
16612
|
+
for (let F of R) {
|
|
16613
16613
|
y(F.getAttribute("style") || "");
|
|
16614
16614
|
for (let N of l)
|
|
16615
16615
|
y(F.getAttribute(N));
|
|
@@ -16624,11 +16624,11 @@ function rg(e, t) {
|
|
|
16624
16624
|
let u = d.querySelector("defs") || null, x = (z) => {
|
|
16625
16625
|
if (!z || m.has(z))
|
|
16626
16626
|
return null;
|
|
16627
|
-
let M = c(z),
|
|
16627
|
+
let M = c(z), R = (F) => {
|
|
16628
16628
|
let N = i.querySelector(F);
|
|
16629
16629
|
return N && !e.contains(N) ? N : null;
|
|
16630
16630
|
};
|
|
16631
|
-
return
|
|
16631
|
+
return R(`svg defs > *#${M}`) || R(`svg > symbol#${M}`) || R(`*#${M}`);
|
|
16632
16632
|
};
|
|
16633
16633
|
if (!p.size)
|
|
16634
16634
|
return;
|
|
@@ -16643,9 +16643,9 @@ function rg(e, t) {
|
|
|
16643
16643
|
continue;
|
|
16644
16644
|
}
|
|
16645
16645
|
u || (u = a.createElementNS("http://www.w3.org/2000/svg", "defs"), d.appendChild(u));
|
|
16646
|
-
let
|
|
16647
|
-
|
|
16648
|
-
let F = [
|
|
16646
|
+
let R = M.cloneNode(!0);
|
|
16647
|
+
R.id || R.setAttribute("id", z), u.appendChild(R), w.add(z), m.add(z);
|
|
16648
|
+
let F = [R, ...R.querySelectorAll("*")];
|
|
16649
16649
|
for (let N of F) {
|
|
16650
16650
|
let O = h(N);
|
|
16651
16651
|
if (O && O.startsWith("#")) {
|
|
@@ -16686,8 +16686,8 @@ function lg(e, t) {
|
|
|
16686
16686
|
let w = p != null ? p + a : a + (o - x - g);
|
|
16687
16687
|
if (!Number.isFinite(w))
|
|
16688
16688
|
continue;
|
|
16689
|
-
let _ = Number.parseInt(h.zIndex, 10), S = Number.isFinite(_), z = S ? Math.max(_, 1) + 1 : 2, M = S ? _ - 1 : 0,
|
|
16690
|
-
|
|
16689
|
+
let _ = Number.parseInt(h.zIndex, 10), S = Number.isFinite(_), z = S ? Math.max(_, 1) + 1 : 2, M = S ? _ - 1 : 0, R = f.cloneNode(!1);
|
|
16690
|
+
R.setAttribute(r, "1"), R.style.position = "sticky", R.style.left = `${v}px`, R.style.top = `${w}px`, R.style.width = `${u}px`, R.style.height = `${x}px`, R.style.visibility = "hidden", R.style.zIndex = String(M), R.style.overflow = "hidden", R.style.background = "transparent", R.style.boxShadow = "none", R.style.filter = "none", (c = f.parentElement) == null || c.insertBefore(R, f), f.style.position = "absolute", f.style.left = `${v}px`, f.style.top = `${w}px`, f.style.bottom = "auto", f.style.zIndex = String(z), f.style.pointerEvents = "none";
|
|
16691
16691
|
}
|
|
16692
16692
|
}
|
|
16693
16693
|
function qi(e) {
|
|
@@ -17216,10 +17216,10 @@ async function br(e, t) {
|
|
|
17216
17216
|
let V = Sg(r.element, r.options);
|
|
17217
17217
|
Number.isFinite(V) && V > 0 && (M = Math.max(1, Math.min(M, ne(V + 1))));
|
|
17218
17218
|
}
|
|
17219
|
-
let
|
|
17219
|
+
let R = (V, be = NaN) => {
|
|
17220
17220
|
let Re = typeof V == "string" ? parseFloat(V) : V;
|
|
17221
17221
|
return Number.isFinite(Re) ? Re : be;
|
|
17222
|
-
}, F =
|
|
17222
|
+
}, F = R(r.options.width), N = R(r.options.height), O = z, E = M, J = Number.isFinite(F), Q = Number.isFinite(N), te = M > 0 ? z / M : 1;
|
|
17223
17223
|
J && Q ? (O = Math.max(1, ne(F)), E = Math.max(1, ne(N))) : J ? (O = Math.max(1, ne(F)), E = Math.max(1, ne(O / (te || 1)))) : Q ? (E = Math.max(1, ne(N)), O = Math.max(1, ne(E * (te || 1)))) : (O = z, E = M);
|
|
17224
17224
|
let he = 0, A = 0, H = z, U = M;
|
|
17225
17225
|
if (!i && y && Number.isFinite(y.a)) {
|
|
@@ -17283,52 +17283,52 @@ Ce.capture = async (e, t, a) => {
|
|
|
17283
17283
|
if (a !== wr)
|
|
17284
17284
|
throw new Error("[snapdom.capture] is internal. Use snapdom(...) instead.");
|
|
17285
17285
|
let i = await br(e, t), o = { img: async (f, d) => {
|
|
17286
|
-
let { toImg: u } = await import("./toImg-
|
|
17286
|
+
let { toImg: u } = await import("./toImg-b333764e.js");
|
|
17287
17287
|
return u(i, { ...f, ...d || {} });
|
|
17288
17288
|
}, svg: async (f, d) => {
|
|
17289
|
-
let { toSvg: u } = await import("./toImg-
|
|
17289
|
+
let { toSvg: u } = await import("./toImg-b333764e.js");
|
|
17290
17290
|
return u(i, { ...f, ...d || {} });
|
|
17291
17291
|
}, canvas: async (f, d) => {
|
|
17292
|
-
let { toCanvas: u } = await import("./toCanvas-
|
|
17292
|
+
let { toCanvas: u } = await import("./toCanvas-79dd23e6.js");
|
|
17293
17293
|
return u(i, { ...f, ...d || {} });
|
|
17294
17294
|
}, blob: async (f, d) => {
|
|
17295
|
-
let { toBlob: u } = await import("./toBlob-
|
|
17295
|
+
let { toBlob: u } = await import("./toBlob-063be1d2.js");
|
|
17296
17296
|
return u(i, { ...f, ...d || {} });
|
|
17297
17297
|
}, png: async (f, d) => {
|
|
17298
|
-
let { rasterize: u } = await import("./rasterize-JS5G2XHH-
|
|
17298
|
+
let { rasterize: u } = await import("./rasterize-JS5G2XHH-0b762ed7.js");
|
|
17299
17299
|
return u(i, { ...f, ...d || {}, format: "png" });
|
|
17300
17300
|
}, jpeg: async (f, d) => {
|
|
17301
|
-
let { rasterize: u } = await import("./rasterize-JS5G2XHH-
|
|
17301
|
+
let { rasterize: u } = await import("./rasterize-JS5G2XHH-0b762ed7.js");
|
|
17302
17302
|
return u(i, { ...f, ...d || {}, format: "jpeg" });
|
|
17303
17303
|
}, webp: async (f, d) => {
|
|
17304
|
-
let { rasterize: u } = await import("./rasterize-JS5G2XHH-
|
|
17304
|
+
let { rasterize: u } = await import("./rasterize-JS5G2XHH-0b762ed7.js");
|
|
17305
17305
|
return u(i, { ...f, ...d || {}, format: "webp" });
|
|
17306
17306
|
}, download: async (f, d) => {
|
|
17307
|
-
let { download: u } = await import("./download-
|
|
17307
|
+
let { download: u } = await import("./download-e8a87001.js");
|
|
17308
17308
|
return u(i, { ...f, ...d || {} });
|
|
17309
17309
|
} }, r = { ...t, export: { url: i }, exports: { svg: async (f) => {
|
|
17310
|
-
let { toSvg: d } = await import("./toImg-
|
|
17310
|
+
let { toSvg: d } = await import("./toImg-b333764e.js");
|
|
17311
17311
|
return d(i, { ...t, ...f || {}, [$e]: !0 });
|
|
17312
17312
|
}, canvas: async (f) => {
|
|
17313
|
-
let { toCanvas: d } = await import("./toCanvas-
|
|
17313
|
+
let { toCanvas: d } = await import("./toCanvas-79dd23e6.js");
|
|
17314
17314
|
return d(i, { ...t, ...f || {}, [$e]: !0 });
|
|
17315
17315
|
}, png: async (f) => {
|
|
17316
|
-
let { rasterize: d } = await import("./rasterize-JS5G2XHH-
|
|
17316
|
+
let { rasterize: d } = await import("./rasterize-JS5G2XHH-0b762ed7.js");
|
|
17317
17317
|
return d(i, { ...t, ...f || {}, format: "png", [$e]: !0 });
|
|
17318
17318
|
}, jpeg: async (f) => {
|
|
17319
|
-
let { rasterize: d } = await import("./rasterize-JS5G2XHH-
|
|
17319
|
+
let { rasterize: d } = await import("./rasterize-JS5G2XHH-0b762ed7.js");
|
|
17320
17320
|
return d(i, { ...t, ...f || {}, format: "jpeg", [$e]: !0 });
|
|
17321
17321
|
}, jpg: async (f) => {
|
|
17322
|
-
let { rasterize: d } = await import("./rasterize-JS5G2XHH-
|
|
17322
|
+
let { rasterize: d } = await import("./rasterize-JS5G2XHH-0b762ed7.js");
|
|
17323
17323
|
return d(i, { ...t, ...f || {}, format: "jpeg", [$e]: !0 });
|
|
17324
17324
|
}, webp: async (f) => {
|
|
17325
|
-
let { rasterize: d } = await import("./rasterize-JS5G2XHH-
|
|
17325
|
+
let { rasterize: d } = await import("./rasterize-JS5G2XHH-0b762ed7.js");
|
|
17326
17326
|
return d(i, { ...t, ...f || {}, format: "webp", [$e]: !0 });
|
|
17327
17327
|
}, blob: async (f) => {
|
|
17328
|
-
let { toBlob: d } = await import("./toBlob-
|
|
17328
|
+
let { toBlob: d } = await import("./toBlob-063be1d2.js");
|
|
17329
17329
|
return d(i, { ...t, ...f || {}, [$e]: !0 });
|
|
17330
17330
|
}, img: async (f) => {
|
|
17331
|
-
let { toImg: d } = await import("./toImg-
|
|
17331
|
+
let { toImg: d } = await import("./toImg-b333764e.js");
|
|
17332
17332
|
return d(i, { ...t, ...f || {}, [$e]: !0 });
|
|
17333
17333
|
} } }, l = await yp("defineExports", r), c = Object.assign({}, ...l.filter((f) => f && typeof f == "object")), s = { ...o, ...c };
|
|
17334
17334
|
s.jpeg && !s.jpg && (s.jpg = (f, d) => s.jpeg(f, d));
|
|
@@ -17649,8 +17649,8 @@ var xr = { exports: {} };
|
|
|
17649
17649
|
this.renderNextFrame();
|
|
17650
17650
|
return m.call(this.imageParts, null) >= 0 ? this.renderNextFrame() : this.finishRendering();
|
|
17651
17651
|
}, d.prototype.finishRendering = function() {
|
|
17652
|
-
var u, x, v, w, _, S, z, M,
|
|
17653
|
-
for (M = 0, J = this.imageParts, _ = 0,
|
|
17652
|
+
var u, x, v, w, _, S, z, M, R, F, N, O, E, J, Q, te;
|
|
17653
|
+
for (M = 0, J = this.imageParts, _ = 0, R = J.length; _ < R; _++)
|
|
17654
17654
|
x = J[_], M += (x.data.length - 1) * x.pageSize + x.cursor;
|
|
17655
17655
|
for (M += x.pageSize - x.cursor, this.log("rendering finished - filesize " + Math.round(M / 1e3) + "kb"), u = new Uint8Array(M), O = 0, Q = this.imageParts, S = 0, F = Q.length; S < F; S++)
|
|
17656
17656
|
for (x = Q[S], te = x.data, v = z = 0, N = te.length; z < N; v = ++z)
|
|
@@ -17915,7 +17915,7 @@ const $g = {
|
|
|
17915
17915
|
};
|
|
17916
17916
|
},
|
|
17917
17917
|
computedUTCTime() {
|
|
17918
|
-
return (e) =>
|
|
17918
|
+
return (e) => T(e).utc().format("yyyy-MM-DD HH:mm[Z]");
|
|
17919
17919
|
}
|
|
17920
17920
|
},
|
|
17921
17921
|
watch: {
|
|
@@ -18009,7 +18009,7 @@ const $g = {
|
|
|
18009
18009
|
this.gifUrl = ((o = i == null ? void 0 : i[0]) == null ? void 0 : o.url) || "", console.log("[BottomBar] 上传成功"), this.actionStatus = 7;
|
|
18010
18010
|
},
|
|
18011
18011
|
handleDownload() {
|
|
18012
|
-
const t = `ORM-Record-${
|
|
18012
|
+
const t = `ORM-Record-${T().format("yyyyMMDD-HHmm")}.gif`;
|
|
18013
18013
|
this.recorder.download(this.blob, t);
|
|
18014
18014
|
}
|
|
18015
18015
|
}
|
|
@@ -18132,7 +18132,7 @@ const c0 = {
|
|
|
18132
18132
|
//hour
|
|
18133
18133
|
intervalOptions: [3, 6, 12, 24],
|
|
18134
18134
|
showTimezone: !1,
|
|
18135
|
-
timeZone: localStorage.getItem("idm-timeZone-gl4") ? Number(localStorage.getItem("idm-timeZone-gl4")) :
|
|
18135
|
+
timeZone: localStorage.getItem("idm-timeZone-gl4") ? Number(localStorage.getItem("idm-timeZone-gl4")) : T().utcOffset() / 60,
|
|
18136
18136
|
offsets: [-12, -11, -10, -9, -8, -7, -6, -5, -4, -3, -2, -1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12],
|
|
18137
18137
|
source: localStorage.getItem("forecastModelCacheGL4") === "undefined" ? "ECMWF" : localStorage.getItem("forecastModelCacheGL4"),
|
|
18138
18138
|
gifEnabled: !1
|
|
@@ -18165,7 +18165,7 @@ const c0 = {
|
|
|
18165
18165
|
},
|
|
18166
18166
|
currentTimestamp: {
|
|
18167
18167
|
handler() {
|
|
18168
|
-
this.currentDateTimeZ =
|
|
18168
|
+
this.currentDateTimeZ = T(this.currentTimestamp).utc().format("yyyy-MM-DD HH:00[Z]"), this.$emit("realTime", this.currentDateTimeZ), this.currentDateTime = `${T.tz(this.currentTimestamp, this.timeZoneName).clone().format("yyyy-MM-DD : HH:00")}`;
|
|
18169
18169
|
},
|
|
18170
18170
|
immediate: !0
|
|
18171
18171
|
},
|
|
@@ -18669,7 +18669,7 @@ const _0 = {
|
|
|
18669
18669
|
//hour
|
|
18670
18670
|
intervalOptions: [3, 6, 12, 24],
|
|
18671
18671
|
showTimezone: !1,
|
|
18672
|
-
timeZone:
|
|
18672
|
+
timeZone: T().utcOffset() / 60,
|
|
18673
18673
|
offsets: [-12, -11, -10, -9, -8, -7, -6, -5, -4, -3, -2, -1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]
|
|
18674
18674
|
};
|
|
18675
18675
|
},
|
|
@@ -18685,7 +18685,7 @@ const _0 = {
|
|
|
18685
18685
|
},
|
|
18686
18686
|
currentTimestamp: {
|
|
18687
18687
|
handler() {
|
|
18688
|
-
this.currentDateTimeZ =
|
|
18688
|
+
this.currentDateTimeZ = T(this.currentTimestamp).utc().format("yyyy-MM-DD HH:00[Z]"), this.$emit("realTime", this.currentDateTimeZ), this.currentDateTime = `${T.tz(this.currentTimestamp, this.timeZoneName).clone().format("yyyy-MM-DD : HH:00")}`;
|
|
18689
18689
|
},
|
|
18690
18690
|
immediate: !0
|
|
18691
18691
|
},
|
|
@@ -18999,7 +18999,7 @@ class T0 {
|
|
|
18999
18999
|
we(this, "hi");
|
|
19000
19000
|
we(this, "td");
|
|
19001
19001
|
we(this, "windy");
|
|
19002
|
-
var a, i, o, r, l, c, s, h, m, p, g, y, f, d, u, x, v, w, _, S, z, M,
|
|
19002
|
+
var a, i, o, r, l, c, s, h, m, p, g, y, f, d, u, x, v, w, _, S, z, M, R, F, N, O, E, J, Q, te, he, A, H, U, ae, X, j, $, G, re, ge, xe, ke, ce, fe, ve, Me, K, de, Xe, Ne, Le, Te, oe, Pe, pe, ye, Be, He, Ve, V, be, Re, Oe, Ee, q, Ze, le, tt, at, ot, Ge, ct, mt, dt, ht, ut, pt, gt, ft, yt, bt, wt, xt, vt, kt, _t, zt, Lt, Pt, Ct, Mt, St, Tt, Rt, It, Dt, At, Gt, Wt, Ft, Nt, Zt, Bt, Ot, Et, jt, Xt, Vt, Ht, Yt, Ut, Jt, Kt, qt, Qt, ea, ta, aa, oa, ia, ra, la, na, sa, ca, ma, da, ha, ua, pa, ga, fa, ya, ba, wa, xa, va, ka, _a, za, La, Pa, Ca, Ma, Sa, Ta, Ra, Ia, Da, Aa, Ga, xo, vo, ko, _o, zo, Lo, Po, Co, Mo, So, To, Ro, Io, Do, Ao, Go, Wo, Fo, No, Zo, Bo, Oo, Eo, jo, Xo, Vo, Ho, Yo, Uo, Jo, Ko, $o, qo, Qo, ei, ti, ai, oi, ii, ri, li, ni, si, ci, mi, di, hi, ui, pi, gi, fi, yi, bi, wi, xi, vi, ki, _i, zi, Li, Pi, Ci, Mi, Si, Ti, Ri;
|
|
19003
19003
|
this.i4 = {
|
|
19004
19004
|
source: {
|
|
19005
19005
|
type: "raster",
|
|
@@ -37651,7 +37651,7 @@ class T0 {
|
|
|
37651
37651
|
(w = (v = this.originStyle) == null ? void 0 : v.light.layers) == null ? void 0 : w.find((P) => P.id === "country-boundaries"),
|
|
37652
37652
|
(S = (_ = this.originStyle) == null ? void 0 : _.light.layers) == null ? void 0 : S.find((P) => P.id === "water-outline"),
|
|
37653
37653
|
(M = (z = this.originStyle) == null ? void 0 : z.light.layers) == null ? void 0 : M.find((P) => P.id === "water-outline2"),
|
|
37654
|
-
(F = (
|
|
37654
|
+
(F = (R = this.originStyle) == null ? void 0 : R.light.layers) == null ? void 0 : F.find((P) => P.id === "empty-layer-2"),
|
|
37655
37655
|
(O = (N = this.originStyle) == null ? void 0 : N.light.layers) == null ? void 0 : O.find((P) => P.id === "water-line-label"),
|
|
37656
37656
|
(J = (E = this.originStyle) == null ? void 0 : E.light.layers) == null ? void 0 : J.find((P) => P.id === "water-point-label"),
|
|
37657
37657
|
(te = (Q = this.originStyle) == null ? void 0 : Q.light.layers) == null ? void 0 : te.find((P) => P.id === "world-12nm-v4-20231025"),
|
|
@@ -38075,10 +38075,6 @@ const N0 = {
|
|
|
38075
38075
|
timeZone: {
|
|
38076
38076
|
type: Number
|
|
38077
38077
|
},
|
|
38078
|
-
defaultDays: {
|
|
38079
|
-
type: Number,
|
|
38080
|
-
default: 7
|
|
38081
|
-
},
|
|
38082
38078
|
defaultRange: {
|
|
38083
38079
|
type: Array,
|
|
38084
38080
|
default: () => []
|
|
@@ -38091,7 +38087,7 @@ const N0 = {
|
|
|
38091
38087
|
fastPick: {
|
|
38092
38088
|
type: Object,
|
|
38093
38089
|
default: () => ({
|
|
38094
|
-
show: !
|
|
38090
|
+
show: !0,
|
|
38095
38091
|
btns: [
|
|
38096
38092
|
"past7day",
|
|
38097
38093
|
"past14day",
|
|
@@ -38110,7 +38106,7 @@ const N0 = {
|
|
|
38110
38106
|
})
|
|
38111
38107
|
}
|
|
38112
38108
|
},
|
|
38113
|
-
emits: ["defaultRange"
|
|
38109
|
+
emits: ["defaultRange"],
|
|
38114
38110
|
data() {
|
|
38115
38111
|
return {
|
|
38116
38112
|
showDatePicker: !1,
|
|
@@ -38145,14 +38141,14 @@ const N0 = {
|
|
|
38145
38141
|
};
|
|
38146
38142
|
},
|
|
38147
38143
|
currentYear() {
|
|
38148
|
-
return console.log("currentYear", [
|
|
38144
|
+
return console.log("currentYear", [T(this.dateRange[0]).format("YYYY"), T(this.dateRange[1]).format("YYYY")]), [T(this.dateRange[0]).format("YYYY"), T(this.dateRange[1]).format("YYYY")];
|
|
38149
38145
|
},
|
|
38150
38146
|
timeZoneNames() {
|
|
38151
|
-
return
|
|
38147
|
+
return T.tz.names();
|
|
38152
38148
|
},
|
|
38153
38149
|
timeZoneName() {
|
|
38154
38150
|
var e;
|
|
38155
|
-
return (e = this.timeZoneNames.filter((t) =>
|
|
38151
|
+
return (e = this.timeZoneNames.filter((t) => T.tz(T(), t).utcOffset() === this.timeZone * 60)) == null ? void 0 : e[0];
|
|
38156
38152
|
},
|
|
38157
38153
|
utcTimeZoneName() {
|
|
38158
38154
|
return "Africa/Abidjan";
|
|
@@ -38165,7 +38161,7 @@ const N0 = {
|
|
|
38165
38161
|
var i, o;
|
|
38166
38162
|
if (e) {
|
|
38167
38163
|
const r = t || 0;
|
|
38168
|
-
return (o = (i =
|
|
38164
|
+
return (o = (i = T(e)) == null ? void 0 : i.utcOffset(r)) == null ? void 0 : o.format(a);
|
|
38169
38165
|
}
|
|
38170
38166
|
return "-";
|
|
38171
38167
|
};
|
|
@@ -38182,11 +38178,6 @@ const N0 = {
|
|
|
38182
38178
|
((e == null ? void 0 : e[0]) !== (t == null ? void 0 : t[0]) || (e == null ? void 0 : e[1]) !== (t == null ? void 0 : t[1])) && this.handleResetDateRange();
|
|
38183
38179
|
},
|
|
38184
38180
|
deep: !0
|
|
38185
|
-
},
|
|
38186
|
-
defaultDays: {
|
|
38187
|
-
handler(e, t) {
|
|
38188
|
-
e !== t && this.handleResetDateRange();
|
|
38189
|
-
}
|
|
38190
38181
|
}
|
|
38191
38182
|
},
|
|
38192
38183
|
mounted() {
|
|
@@ -38201,66 +38192,88 @@ const N0 = {
|
|
|
38201
38192
|
},
|
|
38202
38193
|
handleResetDateRange() {
|
|
38203
38194
|
var e;
|
|
38204
|
-
if (((e = this.defaultRange) == null ? void 0 : e.length) === 2)
|
|
38195
|
+
if (console.log(999444, this.defaultRange), ((e = this.defaultRange) == null ? void 0 : e.length) === 2)
|
|
38205
38196
|
this.dateRange = this.defaultRange;
|
|
38206
38197
|
else {
|
|
38207
|
-
const t =
|
|
38208
|
-
this.
|
|
38198
|
+
const t = T.tz(T().format(), this.timeZoneName).clone();
|
|
38199
|
+
this.dateRange = [t.clone().format(), t.clone().add(7, "days").format()];
|
|
38209
38200
|
}
|
|
38210
|
-
this.dateRangeStr = `${
|
|
38201
|
+
console.log(999555, this.dateRange), this.dateRangeStr = `${T.tz(this.dateRange[0], this.timeZoneName).format("yyyy-MM-DD")} ~ ${T.tz(this.dateRange[1], this.timeZoneName).format("yyyy-MM-DD")}`, this.$emit(
|
|
38211
38202
|
"defaultRange",
|
|
38212
38203
|
[
|
|
38213
|
-
|
|
38214
|
-
|
|
38204
|
+
T.tz(this.dateRange[0], this.timeZoneName).set({ hour: 0, minute: 0, second: 0, millisecond: 0 }).format(),
|
|
38205
|
+
T.tz(this.dateRange[1], this.timeZoneName).set({ hour: 23, minute: 59, second: 59, millisecond: 59 }).format()
|
|
38206
|
+
]
|
|
38207
|
+
), console.log(
|
|
38208
|
+
999666,
|
|
38209
|
+
[
|
|
38210
|
+
T.tz(this.dateRange[0], this.timeZoneName).set({ hour: 0, minute: 0, second: 0, millisecond: 0 }).format(),
|
|
38211
|
+
T.tz(this.dateRange[1], this.timeZoneName).set({ hour: 23, minute: 59, second: 59, millisecond: 59 }).format()
|
|
38215
38212
|
]
|
|
38216
|
-
), console.log(
|
|
38213
|
+
), console.log(999777, this.dateRange);
|
|
38217
38214
|
},
|
|
38218
38215
|
handleResetMinMax() {
|
|
38219
|
-
const e =
|
|
38216
|
+
const e = T.tz(T().format(), this.timeZoneName).clone(), { h: t, f: a } = this.dayAbout;
|
|
38220
38217
|
t != null && typeof Number(t) == "number" && !isNaN(t) && (this.minDate = e.clone().add(t, "day").format("yyyy-MM-DD")), a != null && typeof Number(a) == "number" && !isNaN(a) && (this.maxDate = e.clone().add(a, "day").format("yyyy-MM-DD"));
|
|
38221
38218
|
},
|
|
38222
38219
|
handleOpenDatePicker() {
|
|
38223
38220
|
this.showDatePicker = !this.showDatePicker;
|
|
38224
38221
|
},
|
|
38225
38222
|
handleFastPick(e) {
|
|
38226
|
-
if (e.
|
|
38227
|
-
this.$emit("defaultDays", Number(e.defaultDays));
|
|
38228
|
-
else if (e.dateRange) {
|
|
38223
|
+
if (e.dateRange) {
|
|
38229
38224
|
const t = [];
|
|
38230
38225
|
switch (e.dateRange) {
|
|
38226
|
+
case "past7day":
|
|
38227
|
+
t.push(T.tz(T(), this.timeZoneName).clone().subtract(7, "day").format()), t.push(T.tz(T(), this.timeZoneName).clone().format());
|
|
38228
|
+
break;
|
|
38229
|
+
case "past14day":
|
|
38230
|
+
t.push(T.tz(T(), this.timeZoneName).clone().subtract(14, "day").format()), t.push(T.tz(T(), this.timeZoneName).clone().format());
|
|
38231
|
+
break;
|
|
38231
38232
|
case "past1Month":
|
|
38232
|
-
t.push(
|
|
38233
|
+
t.push(T.tz(T(), this.timeZoneName).clone().add(-1, "month").format()), t.push(T.tz(T(), this.timeZoneName).clone().format());
|
|
38233
38234
|
break;
|
|
38234
38235
|
case "past3Month":
|
|
38235
|
-
t.push(
|
|
38236
|
+
t.push(T.tz(T(), this.timeZoneName).clone().add(-3, "month").format()), t.push(T.tz(T(), this.timeZoneName).clone().format());
|
|
38236
38237
|
break;
|
|
38237
38238
|
case "past6Month":
|
|
38238
|
-
t.push(
|
|
38239
|
+
t.push(T.tz(T(), this.timeZoneName).clone().add(-6, "month").format()), t.push(T.tz(T(), this.timeZoneName).clone().format());
|
|
38239
38240
|
break;
|
|
38240
38241
|
case "past1Year":
|
|
38241
|
-
t.push(
|
|
38242
|
+
t.push(T.tz(T(), this.timeZoneName).clone().add(-12, "month").format()), t.push(T.tz(T(), this.timeZoneName).clone().format());
|
|
38242
38243
|
break;
|
|
38243
38244
|
case "lastMonth":
|
|
38244
|
-
t.push(
|
|
38245
|
+
t.push(T.tz(T(), this.timeZoneName).clone().subtract(1, "month").startOf("month").format()), t.push(T.tz(T(), this.timeZoneName).clone().subtract(1, "month").endOf("month").format());
|
|
38245
38246
|
break;
|
|
38246
38247
|
case "lastSeason":
|
|
38247
|
-
t.push(
|
|
38248
|
+
t.push(T.tz(T(), this.timeZoneName).clone().startOf("quarter").subtract(3, "months").startOf("month").format()), t.push(T.tz(T(), this.timeZoneName).clone().startOf("quarter").subtract(1, "day").endOf("month").format());
|
|
38248
38249
|
break;
|
|
38249
38250
|
case "lastYear":
|
|
38250
|
-
t.push(
|
|
38251
|
+
t.push(T.tz(T(), this.timeZoneName).clone().subtract(1, "year").startOf("year").format()), t.push(T.tz(T(), this.timeZoneName).clone().subtract(1, "year").endOf("year").format());
|
|
38252
|
+
break;
|
|
38253
|
+
case "forward7day":
|
|
38254
|
+
t.push(T.tz(T(), this.timeZoneName).clone().format()), t.push(T.tz(T(), this.timeZoneName).clone().add(7, "day").format());
|
|
38255
|
+
break;
|
|
38256
|
+
case "forward14day":
|
|
38257
|
+
t.push(T.tz(T(), this.timeZoneName).clone().format()), t.push(T.tz(T(), this.timeZoneName).clone().add(14, "day").format());
|
|
38258
|
+
break;
|
|
38259
|
+
case "forward1Month":
|
|
38260
|
+
t.push(T.tz(T(), this.timeZoneName).clone().format()), t.push(T.tz(T(), this.timeZoneName).clone().add(1, "month").format());
|
|
38261
|
+
break;
|
|
38262
|
+
case "forward3Month":
|
|
38263
|
+
t.push(T.tz(T(), this.timeZoneName).clone().format()), t.push(T.tz(T(), this.timeZoneName).clone().add(3, "month").format());
|
|
38251
38264
|
break;
|
|
38252
38265
|
}
|
|
38253
|
-
this.$emit("defaultRange", t);
|
|
38266
|
+
console.log(9998, t), this.$emit("defaultRange", t);
|
|
38254
38267
|
}
|
|
38255
38268
|
},
|
|
38256
38269
|
handleConfirmDate() {
|
|
38257
38270
|
var t;
|
|
38258
38271
|
const e = [this.dateRange[0], this.dateRange[((t = this.dateRange) == null ? void 0 : t.length) - 1]];
|
|
38259
|
-
this.dateRangeStr = `${
|
|
38272
|
+
this.dateRangeStr = `${T(e[0]).format("yyyy-MM-DD")} ~ ${T(e[1]).format("yyyy-MM-DD")}`, this.$emit(
|
|
38260
38273
|
"defaultRange",
|
|
38261
38274
|
[
|
|
38262
|
-
|
|
38263
|
-
|
|
38275
|
+
T.tz(e[0], this.timeZoneName).set({ year: T(e[0]).year(), month: T(e[0]).month(), date: T(e[0]).date(), hour: 0, minute: 0, second: 0, millisecond: 0 }).format(),
|
|
38276
|
+
T.tz(e[1], this.timeZoneName).set({ year: T(e[1]).year(), month: T(e[1]).month(), date: T(e[1]).date(), hour: 23, minute: 59, second: 59, millisecond: 59 }).format()
|
|
38264
38277
|
]
|
|
38265
38278
|
), this.showDatePicker = !1;
|
|
38266
38279
|
},
|
|
@@ -38343,7 +38356,7 @@ function X0(e, t, a, i, o, r) {
|
|
|
38343
38356
|
style: { height: "50px" }
|
|
38344
38357
|
}, {
|
|
38345
38358
|
default: L(() => {
|
|
38346
|
-
var f, d, u, x, v, w, _, S, z, M,
|
|
38359
|
+
var f, d, u, x, v, w, _, S, z, M, R, F, N, O;
|
|
38347
38360
|
return [
|
|
38348
38361
|
(f = a.fastPick) != null && f.show ? (k(), D("div", E0, [
|
|
38349
38362
|
(d = a.fastPick) != null && d.btns.includes("past7day") ? (k(), Z(p, {
|
|
@@ -38351,7 +38364,7 @@ function X0(e, t, a, i, o, r) {
|
|
|
38351
38364
|
size: "small",
|
|
38352
38365
|
variant: "text",
|
|
38353
38366
|
class: "text-none text-body-2 justify-start",
|
|
38354
|
-
onClick: t[3] || (t[3] = (E) => r.handleFastPick({
|
|
38367
|
+
onClick: t[3] || (t[3] = (E) => r.handleFastPick({ dateRange: "past7day" }))
|
|
38355
38368
|
}, {
|
|
38356
38369
|
default: L(() => [
|
|
38357
38370
|
ee(b(e.$t("time.past7day")), 1)
|
|
@@ -38363,7 +38376,7 @@ function X0(e, t, a, i, o, r) {
|
|
|
38363
38376
|
size: "small",
|
|
38364
38377
|
variant: "text",
|
|
38365
38378
|
class: "text-none text-body-2 justify-start",
|
|
38366
|
-
onClick: t[4] || (t[4] = (E) => r.handleFastPick({
|
|
38379
|
+
onClick: t[4] || (t[4] = (E) => r.handleFastPick({ dateRange: "past14day" }))
|
|
38367
38380
|
}, {
|
|
38368
38381
|
default: L(() => [
|
|
38369
38382
|
ee(b(e.$t("time.past14day")), 1)
|
|
@@ -38454,12 +38467,12 @@ function X0(e, t, a, i, o, r) {
|
|
|
38454
38467
|
]),
|
|
38455
38468
|
_: 1
|
|
38456
38469
|
})) : W("", !0),
|
|
38457
|
-
(
|
|
38470
|
+
(R = a.fastPick) != null && R.btns.includes("7day") ? (k(), Z(p, {
|
|
38458
38471
|
key: 9,
|
|
38459
38472
|
size: "small",
|
|
38460
38473
|
variant: "text",
|
|
38461
38474
|
class: "text-none text-body-2 justify-start",
|
|
38462
|
-
onClick: t[12] || (t[12] = (E) => r.handleFastPick({
|
|
38475
|
+
onClick: t[12] || (t[12] = (E) => r.handleFastPick({ dateRange: "forward7day" }))
|
|
38463
38476
|
}, {
|
|
38464
38477
|
default: L(() => [
|
|
38465
38478
|
ee(b(e.$t("time.forward7day")), 1)
|
|
@@ -38471,7 +38484,7 @@ function X0(e, t, a, i, o, r) {
|
|
|
38471
38484
|
size: "small",
|
|
38472
38485
|
variant: "text",
|
|
38473
38486
|
class: "text-none text-body-2 justify-start",
|
|
38474
|
-
onClick: t[13] || (t[13] = (E) => r.handleFastPick({
|
|
38487
|
+
onClick: t[13] || (t[13] = (E) => r.handleFastPick({ dateRange: "forward14day" }))
|
|
38475
38488
|
}, {
|
|
38476
38489
|
default: L(() => [
|
|
38477
38490
|
ee(b(e.$t("time.forward14day")), 1)
|
|
@@ -38483,7 +38496,7 @@ function X0(e, t, a, i, o, r) {
|
|
|
38483
38496
|
size: "small",
|
|
38484
38497
|
variant: "text",
|
|
38485
38498
|
class: "text-none text-body-2 justify-start",
|
|
38486
|
-
onClick: t[14] || (t[14] = (E) => r.handleFastPick({
|
|
38499
|
+
onClick: t[14] || (t[14] = (E) => r.handleFastPick({ dateRange: "forward1Month" }))
|
|
38487
38500
|
}, {
|
|
38488
38501
|
default: L(() => [
|
|
38489
38502
|
ee(b(e.$t("time.forward1month")), 1)
|
|
@@ -38495,7 +38508,7 @@ function X0(e, t, a, i, o, r) {
|
|
|
38495
38508
|
size: "small",
|
|
38496
38509
|
variant: "text",
|
|
38497
38510
|
class: "text-none text-body-2 justify-start",
|
|
38498
|
-
onClick: t[15] || (t[15] = (E) => r.handleFastPick({
|
|
38511
|
+
onClick: t[15] || (t[15] = (E) => r.handleFastPick({ dateRange: "forward3Month" }))
|
|
38499
38512
|
}, {
|
|
38500
38513
|
default: L(() => [
|
|
38501
38514
|
ee(b(e.$t("time.forward3month")), 1)
|