@idmwx/idmui-gl3 3.6.6 → 3.6.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 CHANGED
@@ -530,8 +530,8 @@ class Ge {
530
530
  * @param [lb.x, lb.y, rt.x, rt.y]
531
531
  */
532
532
  getBoundPixel() {
533
- const e = this.map.getBounds(), a = this.map.getZoom() + 1, r = [e._ne.lng, e._ne.lat], i = [e._sw.lng, e._sw.lat], [o, n] = this.convertNLng(r[0]), [s, c] = this.convertNLng(i[0]), [h, d] = this.mercator.px([o, r[1]], a), [p, f] = this.mercator.px([s, i[1]], a), m = Math.round(this.mercator.size * Math.pow(2, a) * (n + c));
534
- return [p, f, h + m, d];
533
+ const e = this.map.getBounds(), a = this.map.getZoom() + 1, r = [e._ne.lng, e._ne.lat], i = [e._sw.lng, e._sw.lat], [o, n] = this.convertNLng(r[0]), [s, c] = this.convertNLng(i[0]), [h, d] = this.mercator.px([o, r[1]], a), [p, y] = this.mercator.px([s, i[1]], a), m = Math.round(this.mercator.size * Math.pow(2, a) * (n + c));
534
+ return [p, y, h + m, d];
535
535
  }
536
536
  /**
537
537
  * [视窗边界像素宽度]
@@ -702,14 +702,14 @@ class ve {
702
702
  if (a && r) {
703
703
  e.resize(), a == null || a.viewport(0, 0, (c = a == null ? void 0 : a.canvas) == null ? void 0 : c.width, (h = a == null ? void 0 : a.canvas) == null ? void 0 : h.height), a.clearColor(0, 0, 0, 0), a.clear(a.COLOR_BUFFER_BIT | a.DEPTH_BUFFER_BIT);
704
704
  try {
705
- const d = a.getUniformLocation(r, "u_resolution"), p = a.getUniformLocation(r, "u_image"), f = a.getUniformLocation(r, "u_color");
706
- if (a.useProgram(r), a.uniform2f(d, a.canvas.width * e.ratio, a.canvas.height * e.ratio), a.activeTexture(a.TEXTURE0), a.bindTexture(a.TEXTURE_2D, i), a.uniform1i(p, 0), a.activeTexture(a.TEXTURE1), a.bindTexture(a.TEXTURE_2D, o), a.uniform1i(f, 1), s != null && s.uvRange && (s != null && s.sRange)) {
705
+ const d = a.getUniformLocation(r, "u_resolution"), p = a.getUniformLocation(r, "u_image"), y = a.getUniformLocation(r, "u_color");
706
+ if (a.useProgram(r), a.uniform2f(d, a.canvas.width * e.ratio, a.canvas.height * e.ratio), a.activeTexture(a.TEXTURE0), a.bindTexture(a.TEXTURE_2D, i), a.uniform1i(p, 0), a.activeTexture(a.TEXTURE1), a.bindTexture(a.TEXTURE_2D, o), a.uniform1i(y, 1), s != null && s.uvRange && (s != null && s.sRange)) {
707
707
  const u = a.getUniformLocation(r, "u_range_u_v"), v = a.getUniformLocation(r, "u_range_s");
708
708
  a.uniform2f(u, s.uvRange[0], s.uvRange[1]), a.uniform2f(v, s.sRange[0], s.sRange[1]);
709
709
  }
710
- const m = e.getBoundPixel(), b = e.map.getZoom() + 1, y = e.getWorldCopy(m, b);
711
- for (const u of y) {
712
- const v = (u[0] - m[0]) * e.ratio, g = (u[1] - m[3]) * e.ratio, w = u[2] * e.ratio, [k, _, I, D] = [v, w + v, g, w + g], $ = new Float32Array([k, I, _, I, k, D, k, D, _, I, _, D]);
710
+ const m = e.getBoundPixel(), g = e.map.getZoom() + 1, f = e.getWorldCopy(m, g);
711
+ for (const u of f) {
712
+ const v = (u[0] - m[0]) * e.ratio, b = (u[1] - m[3]) * e.ratio, w = u[2] * e.ratio, [k, _, I, D] = [v, w + v, b, w + b], $ = new Float32Array([k, I, _, I, k, D, k, D, _, I, _, D]);
713
713
  a.bindBuffer(a.ARRAY_BUFFER, n), a.bufferData(a.ARRAY_BUFFER, $, a.STATIC_DRAW), a.drawArrays(a.TRIANGLES, 0, 6);
714
714
  }
715
715
  } catch (d) {
@@ -3651,19 +3651,19 @@ const Ua = {
3651
3651
  var h;
3652
3652
  let n = 0, s;
3653
3653
  const c = t.filter((d) => {
3654
- var p, f;
3655
- return ((f = (p = d.properties) == null ? void 0 : p.category) == null ? void 0 : f.split("-")[0]) === o;
3654
+ var p, y;
3655
+ return ((y = (p = d.properties) == null ? void 0 : p.category) == null ? void 0 : y.split("-")[0]) === o;
3656
3656
  });
3657
3657
  (h = c.filter((d) => {
3658
- var p, f;
3659
- return ((p = d.geometry) == null ? void 0 : p.type) === "LineString" && ((f = d.properties) == null ? void 0 : f.type) === "forecast";
3658
+ var p, y;
3659
+ return ((p = d.geometry) == null ? void 0 : p.type) === "LineString" && ((y = d.properties) == null ? void 0 : y.type) === "forecast";
3660
3660
  })[0]) == null || h.properties.model, c.forEach((d, p) => {
3661
- var f, m, b, y, u, v;
3662
- ((f = d.geometry) == null ? void 0 : f.type) === "Point" && ((m = d.properties) == null ? void 0 : m.type) === "history" && (n = p, s = s === void 0 ? p : s), ((b = d.geometry) == null ? void 0 : b.type) === "Point" && ((y = d.properties) == null ? void 0 : y.type) === "forecast" && s === void 0 && (s = p), ((u = d.geometry) == null ? void 0 : u.type) === "LineString" && ((v = d.properties) == null || v.type);
3661
+ var y, m, g, f, u, v;
3662
+ ((y = d.geometry) == null ? void 0 : y.type) === "Point" && ((m = d.properties) == null ? void 0 : m.type) === "history" && (n = p, s = s === void 0 ? p : s), ((g = d.geometry) == null ? void 0 : g.type) === "Point" && ((f = d.properties) == null ? void 0 : f.type) === "forecast" && s === void 0 && (s = p), ((u = d.geometry) == null ? void 0 : u.type) === "LineString" && ((v = d.properties) == null || v.type);
3663
3663
  }), c.map((d, p) => {
3664
- var f, m, b, y, u, v, g, w;
3665
- if (((f = d.geometry) == null ? void 0 : f.type) === "LineString" && ((m = d.properties) == null || m.type), ((b = d.geometry) == null ? void 0 : b.type) === "Point" && ((y = d.properties) == null ? void 0 : y.type) === "forecast" && (d.properties.name = o), ((u = d.geometry) == null ? void 0 : u.type) === "Point" && ((v = d.properties) == null ? void 0 : v.type) === "history") {
3666
- const k = ((w = (g = d.properties) == null ? void 0 : g.format) == null ? void 0 : w.slice(7, 12)) === ee().utc().hour(Math.floor(e / 6) * 6).minute("00").format("HHmm") + "Z";
3664
+ var y, m, g, f, u, v, b, w;
3665
+ if (((y = d.geometry) == null ? void 0 : y.type) === "LineString" && ((m = d.properties) == null || m.type), ((g = d.geometry) == null ? void 0 : g.type) === "Point" && ((f = d.properties) == null ? void 0 : f.type) === "forecast" && (d.properties.name = o), ((u = d.geometry) == null ? void 0 : u.type) === "Point" && ((v = d.properties) == null ? void 0 : v.type) === "history") {
3666
+ const k = ((w = (b = d.properties) == null ? void 0 : b.format) == null ? void 0 : w.slice(7, 12)) === ee().utc().hour(Math.floor(e / 6) * 6).minute("00").format("HHmm") + "Z";
3667
3667
  d.properties.showHistoryLabel = k || p === n, d.properties.showNameLabel = p === n, d.properties.name = o;
3668
3668
  }
3669
3669
  return d;
@@ -3712,8 +3712,8 @@ const Ua = {
3712
3712
  else {
3713
3713
  if (this.tropicals) {
3714
3714
  const p = (/* @__PURE__ */ new Date()).valueOf();
3715
- let f = 0, m = 0;
3716
- (t = this.map) != null && t.getSource(this.source) ? ((a = this.map) == null || a.getSource(this.source).setData((e = this.tropicals) != null && e.active ? this.tropicals.data : this.empty), m = (/* @__PURE__ */ new Date()).valueOf() - (p + f), console.log("[tropicals] update elapsed: ", m, ", total: ", f += m)) : (this.map.addSource(this.source, {
3715
+ let y = 0, m = 0;
3716
+ (t = this.map) != null && t.getSource(this.source) ? ((a = this.map) == null || a.getSource(this.source).setData((e = this.tropicals) != null && e.active ? this.tropicals.data : this.empty), m = (/* @__PURE__ */ new Date()).valueOf() - (p + y), console.log("[tropicals] update elapsed: ", m, ", total: ", y += m)) : (this.map.addSource(this.source, {
3717
3717
  type: "geojson",
3718
3718
  data: (r = this.tropicals) != null && r.active ? (i = this.tropicals) == null ? void 0 : i.data : this.empty
3719
3719
  }), this.map.addLayer({
@@ -3810,7 +3810,7 @@ const Ua = {
3810
3810
  ],
3811
3811
  "text-halo-width": 4
3812
3812
  }
3813
- }), m = (/* @__PURE__ */ new Date()).valueOf() - (p + f), console.log("[tropical] add elapsed: ", m, ", total: ", f += m)), (o = this.map) != null && o.getSource(this.clusterSource) ? ((s = this.map) == null || s.getSource(this.clusterSource).setData((n = this.tropicals) != null && n.active ? this.tropicals.data : this.empty), m = (/* @__PURE__ */ new Date()).valueOf() - (p + f), console.log("[tropical] update elapsed: ", m, ", total: ", f += m)) : (this.map.addSource(this.clusterSource, {
3813
+ }), m = (/* @__PURE__ */ new Date()).valueOf() - (p + y), console.log("[tropical] add elapsed: ", m, ", total: ", y += m)), (o = this.map) != null && o.getSource(this.clusterSource) ? ((s = this.map) == null || s.getSource(this.clusterSource).setData((n = this.tropicals) != null && n.active ? this.tropicals.data : this.empty), m = (/* @__PURE__ */ new Date()).valueOf() - (p + y), console.log("[tropical] update elapsed: ", m, ", total: ", y += m)) : (this.map.addSource(this.clusterSource, {
3814
3814
  type: "geojson",
3815
3815
  data: (c = this.tropicals) != null && c.active ? (h = this.tropicals) == null ? void 0 : h.data : this.empty
3816
3816
  // cluster: true,
@@ -3925,24 +3925,24 @@ const Ua = {
3925
3925
  "text-halo-color": "#146bf5",
3926
3926
  "text-halo-width": 4
3927
3927
  }
3928
- }), m = (/* @__PURE__ */ new Date()).valueOf() - (p + f), console.log("[tropical] add elapsed: ", m, ", total: ", f += m));
3928
+ }), m = (/* @__PURE__ */ new Date()).valueOf() - (p + y), console.log("[tropical] add elapsed: ", m, ", total: ", y += m));
3929
3929
  }
3930
3930
  if (this.handleDrawCircle(), !((d = this.tropicals) != null && d.cached)) {
3931
- const p = et.interpolate(this.tropicals, 1), f = JSON.parse(JSON.stringify(p)), m = [];
3932
- f.forEach((b) => {
3933
- var y, u, v;
3934
- (y = b.properties) != null && y.name && !m.includes((u = b.properties) == null ? void 0 : u.name) && m.push((v = b.properties) == null ? void 0 : v.name);
3935
- }), m.forEach((b) => {
3931
+ const p = et.interpolate(this.tropicals, 1), y = JSON.parse(JSON.stringify(p)), m = [];
3932
+ y.forEach((g) => {
3933
+ var f, u, v;
3934
+ (f = g.properties) != null && f.name && !m.includes((u = g.properties) == null ? void 0 : u.name) && m.push((v = g.properties) == null ? void 0 : v.name);
3935
+ }), m.forEach((g) => {
3936
3936
  var v;
3937
- const u = (v = f.filter((g) => {
3937
+ const u = (v = y.filter((b) => {
3938
3938
  var w;
3939
- return ((w = g.properties) == null ? void 0 : w.name) === b;
3939
+ return ((w = b.properties) == null ? void 0 : w.name) === g;
3940
3940
  })[0]) == null ? void 0 : v.properties.model;
3941
- f.map((g, w) => {
3941
+ y.map((b, w) => {
3942
3942
  var k, _;
3943
- return ((k = g.properties) == null ? void 0 : k.name) === b && (g.properties.disabled = ((_ = g.properties) == null ? void 0 : _.model) !== u), g;
3943
+ return ((k = b.properties) == null ? void 0 : k.name) === g && (b.properties.disabled = ((_ = b.properties) == null ? void 0 : _.model) !== u), b;
3944
3944
  });
3945
- }), this.interpolateData = JSON.parse(JSON.stringify(f));
3945
+ }), this.interpolateData = JSON.parse(JSON.stringify(y));
3946
3946
  }
3947
3947
  this.handleDateChange();
3948
3948
  }
@@ -3952,7 +3952,7 @@ const Ua = {
3952
3952
  this.map && (this.map.getLayer(this.historyLayer) && this.map.removeLayer(this.historyLayer), this.map.getLayer(this.forecastLayer) && this.map.removeLayer(this.forecastLayer), this.map.getLayer(this.forecastModelLayer) && this.map.removeLayer(this.forecastModelLayer), this.map.getLayer(this.forecastNameLayer) && this.map.removeLayer(this.forecastNameLayer), this.map.getLayer(this.pointCircleLayer) && this.map.removeLayer(this.pointCircleLayer), this.map.getLayer(this.pointCircleLayer + "-border") && this.map.removeLayer(this.pointCircleLayer + "-border"), this.map.getLayer(this.pointLabelLayer) && this.map.removeLayer(this.pointLabelLayer), this.map.getLayer(this.historyPointCircleLayer) && this.map.removeLayer(this.historyPointCircleLayer), this.map.getLayer(this.historyPointCircleLayer + "-border") && this.map.removeLayer(this.historyPointCircleLayer + "-border"), this.map.getLayer(this.historyPointCircleLayer + "-inner") && this.map.removeLayer(this.historyPointCircleLayer + "-inner"), this.map.getLayer(this.historyPointLabelLayer) && this.map.removeLayer(this.historyPointLabelLayer), this.map.getLayer(this.interpolateLineLayer) && this.map.removeLayer(this.interpolateLineLayer), (t = this.interpolateMarkers) == null || t.forEach((e) => e == null ? void 0 : e.remove()), this.map.getSource(this.source) && this.map.removeSource(this.source), this.map.getSource(this.clusterSource) && this.map.removeSource(this.clusterSource), this.map.getSource(this.interpolateSource) && this.map.removeSource(this.interpolateSource), this.map.getLayer(this.circleLayer) && this.map.removeLayer(this.circleLayer), this.map.getSource(this.circleSource) && this.map.removeSource(this.circleSource));
3953
3953
  },
3954
3954
  handleDateChange() {
3955
- var t, e, a, r, i, o, n, s, c, h, d, p, f, m, b, y, u, v, g, w, k, _, I, D, $, W, O, U, ae, de, pe, me, ue, ye;
3955
+ var t, e, a, r, i, o, n, s, c, h, d, p, y, m, g, f, u, v, b, w, k, _, I, D, $, W, O, U, ae, de, pe, me, ue, ye;
3956
3956
  if ((t = this.interpolateMarkers) == null || t.forEach((X) => X == null ? void 0 : X.remove()), this.circleSourceData.features = [], (e = this.interpolateData) != null && e.length && this.tropicals.active) {
3957
3957
  const X = ee(this.date).utc().set({ minute: 0, second: 0, millisecond: 0 }), q = this.interpolateData.filter((R) => R.properties.date === X.format() && !R.properties.disabled), fe = this.handleComputePolygons(q), Y = C.featureCollection([...q]);
3958
3958
  fe.forEach((R) => {
@@ -3974,7 +3974,7 @@ const Ua = {
3974
3974
  for (const R of q)
3975
3975
  if (!R.properties.disabled) {
3976
3976
  let F = "#f44336";
3977
- ((s = (n = R.properties) == null ? void 0 : n.wind) == null ? void 0 : s.spd) < 17.2 ? F = "#03f869" : ((h = (c = R.properties) == null ? void 0 : c.wind) == null ? void 0 : h.spd) >= 17.2 && ((p = (d = R.properties) == null ? void 0 : d.wind) == null ? void 0 : p.spd) < 24.5 ? F = "#f2f202" : ((m = (f = R.properties) == null ? void 0 : f.wind) == null ? void 0 : m.spd) >= 24.5 && ((y = (b = R.properties) == null ? void 0 : b.wind) == null ? void 0 : y.spd) < 32.7 ? F = "#ff9100" : ((v = (u = R.properties) == null ? void 0 : u.wind) == null ? void 0 : v.spd) >= 32.7 && ((w = (g = R.properties) == null ? void 0 : g.wind) == null ? void 0 : w.spd) < 41.5 ? F = "#f44336" : ((_ = (k = R.properties) == null ? void 0 : k.wind) == null ? void 0 : _.spd) >= 41.5 && ((D = (I = R.properties) == null ? void 0 : I.wind) == null ? void 0 : D.spd) < 51 ? F = "#c604a4" : ((W = ($ = R.properties) == null ? void 0 : $.wind) == null ? void 0 : W.spd) >= 51 ? F = "#6b05bb" : F = "#f44336";
3977
+ ((s = (n = R.properties) == null ? void 0 : n.wind) == null ? void 0 : s.spd) < 17.2 ? F = "#03f869" : ((h = (c = R.properties) == null ? void 0 : c.wind) == null ? void 0 : h.spd) >= 17.2 && ((p = (d = R.properties) == null ? void 0 : d.wind) == null ? void 0 : p.spd) < 24.5 ? F = "#f2f202" : ((m = (y = R.properties) == null ? void 0 : y.wind) == null ? void 0 : m.spd) >= 24.5 && ((f = (g = R.properties) == null ? void 0 : g.wind) == null ? void 0 : f.spd) < 32.7 ? F = "#ff9100" : ((v = (u = R.properties) == null ? void 0 : u.wind) == null ? void 0 : v.spd) >= 32.7 && ((w = (b = R.properties) == null ? void 0 : b.wind) == null ? void 0 : w.spd) < 41.5 ? F = "#f44336" : ((_ = (k = R.properties) == null ? void 0 : k.wind) == null ? void 0 : _.spd) >= 41.5 && ((D = (I = R.properties) == null ? void 0 : I.wind) == null ? void 0 : D.spd) < 51 ? F = "#c604a4" : ((W = ($ = R.properties) == null ? void 0 : $.wind) == null ? void 0 : W.spd) >= 51 ? F = "#6b05bb" : F = "#f44336";
3978
3978
  const ge = `<svg t="1719918955501"
3979
3979
  class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" p-id="18382"
3980
3980
  xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200">
@@ -4008,28 +4008,28 @@ const Ua = {
4008
4008
  (ue = this.map) != null && ue.getSource(this.interpolateSource) && ((ye = this.map) == null || ye.getSource(this.interpolateSource).setData(this.empty));
4009
4009
  },
4010
4010
  handleClick(t) {
4011
- var o, n, s, c, h, d, p, f;
4011
+ var o, n, s, c, h, d, p, y;
4012
4012
  const e = t.features[0], a = (n = (o = this.tropicals) == null ? void 0 : o.data) == null ? void 0 : n.features.filter(
4013
4013
  (m) => {
4014
- var b;
4015
- return m.geometry.type === "LineString" && m.properties.type === "forecast" && m.properties.name === ((b = e == null ? void 0 : e.properties) == null ? void 0 : b.name);
4014
+ var g;
4015
+ return m.geometry.type === "LineString" && m.properties.type === "forecast" && m.properties.name === ((g = e == null ? void 0 : e.properties) == null ? void 0 : g.name);
4016
4016
  }
4017
4017
  );
4018
- a.sort((m, b) => {
4019
- var y, u, v, g;
4020
- return ((y = m.properties) == null ? void 0 : y.model) === "cma" ? -1 : ((u = m.properties) == null ? void 0 : u.model) === "jma" ? ((v = b.properties) == null ? void 0 : v.model) === "cma" ? 1 : -1 : m.properties.model === "ecmwf" ? ["jma", "cma"].includes((g = b.properties) == null ? void 0 : g.model) ? 1 : -1 : 0;
4018
+ a.sort((m, g) => {
4019
+ var f, u, v, b;
4020
+ return ((f = m.properties) == null ? void 0 : f.model) === "cma" ? -1 : ((u = m.properties) == null ? void 0 : u.model) === "jma" ? ((v = g.properties) == null ? void 0 : v.model) === "cma" ? 1 : -1 : m.properties.model === "ecmwf" ? ["jma", "cma"].includes((b = g.properties) == null ? void 0 : b.model) ? 1 : -1 : 0;
4021
4021
  });
4022
4022
  const r = (c = (s = this.tropicals) == null ? void 0 : s.data) == null ? void 0 : c.features.filter(
4023
4023
  (m) => {
4024
- var b;
4025
- return m.geometry.type === "LineString" && m.properties.type === "history" && m.properties.name === ((b = e == null ? void 0 : e.properties) == null ? void 0 : b.name);
4024
+ var g;
4025
+ return m.geometry.type === "LineString" && m.properties.type === "history" && m.properties.name === ((g = e == null ? void 0 : e.properties) == null ? void 0 : g.name);
4026
4026
  }
4027
4027
  );
4028
4028
  this.activeTropicals = {
4029
4029
  name: (h = e == null ? void 0 : e.properties) == null ? void 0 : h.name,
4030
4030
  forecasts: a.map((m) => m.properties),
4031
4031
  history: (d = r[0]) == null ? void 0 : d.properties,
4032
- showCircle: (f = (p = a[0]) == null ? void 0 : p.properties) == null ? void 0 : f.showCircle
4032
+ showCircle: (y = (p = a[0]) == null ? void 0 : p.properties) == null ? void 0 : y.showCircle
4033
4033
  }, this.showTropicals = !0;
4034
4034
  const i = document.getElementById("active-tropical");
4035
4035
  this.activeTropicalsMarker ? this.activeTropicalsMarker.setLngLat([t.lngLat.lng, t.lngLat.lat]) : this.activeTropicalsMarker = new ne.Marker(i).setLngLat([t.lngLat.lng, t.lngLat.lat]).setOffset([220, 0]).addTo(this.map);
@@ -4137,7 +4137,7 @@ const Ua = {
4137
4137
  style: { "justify-content": "flex-start" }
4138
4138
  }, hi = /* @__PURE__ */ Ne(() => /* @__PURE__ */ l("label", { style: { width: "max-content" } }, "showCircles : ", -1)), di = /* @__PURE__ */ lt('<div class="row" style="padding:0;height:1px;margin:10px 0;background:var(--idm-black-1);" data-v-6751acd3></div><div class="row" style="padding:2px 10px;" data-v-6751acd3><div class="legend" data-v-6751acd3><div class="icon td" data-v-6751acd3></div><div class="label" data-v-6751acd3>TD</div></div><div class="legend" data-v-6751acd3><div class="icon ts" data-v-6751acd3></div><div class="label" data-v-6751acd3>TS</div></div><div class="legend" data-v-6751acd3><div class="icon sts" data-v-6751acd3></div><div class="label" data-v-6751acd3>STS</div></div><div class="legend" data-v-6751acd3><div class="icon ty" data-v-6751acd3></div><div class="label" data-v-6751acd3>TY</div></div><div class="legend" data-v-6751acd3><div class="icon sty" data-v-6751acd3></div><div class="label" data-v-6751acd3>STY</div></div><div class="legend" data-v-6751acd3><div class="icon supper-ty" data-v-6751acd3></div><div class="label" data-v-6751acd3>Super TY</div></div></div><div class="row" style="padding:2px 10px;" data-v-6751acd3><div class="legend" data-v-6751acd3><div class="icon history" data-v-6751acd3></div><div class="label" data-v-6751acd3>History</div></div><div class="legend" data-v-6751acd3><div class="icon r7" data-v-6751acd3></div><div class="label" data-v-6751acd3>35kts Radii</div></div><div class="legend" data-v-6751acd3><div class="icon r10" data-v-6751acd3></div><div class="label" data-v-6751acd3>50kts Radii</div></div></div>', 3), pi = { class: "more" };
4139
4139
  function mi(t, e, a, r, i, o) {
4140
- var n, s, c, h, d, p, f, m, b, y, u, v, g, w, k, _;
4140
+ var n, s, c, h, d, p, y, m, g, f, u, v, b, w, k, _;
4141
4141
  return $e((L(), x("div", Ga, [
4142
4142
  l("div", Ha, [
4143
4143
  l("div", {
@@ -4148,7 +4148,7 @@ function mi(t, e, a, r, i, o) {
4148
4148
  (s = (n = i.activeTropicals) == null ? void 0 : n.history) != null && s.level ? (L(), x("span", Xa, S((h = (c = i.activeTropicals) == null ? void 0 : c.history) == null ? void 0 : h.level) + " , ", 1)) : N("", !0),
4149
4149
  Ke(S((d = i.activeTropicals) == null ? void 0 : d.name), 1)
4150
4150
  ]),
4151
- l("div", Ja, " Last update: " + S(o.computeTime(((f = (p = i.activeTropicals) == null ? void 0 : p.history) == null ? void 0 : f.updated) || ((y = (b = (m = i.activeTropicals) == null ? void 0 : m.forecasts) == null ? void 0 : b.filter((I) => !I.disabled)[0]) == null ? void 0 : y.date))), 1)
4151
+ l("div", Ja, " Last update: " + S(o.computeTime(((y = (p = i.activeTropicals) == null ? void 0 : p.history) == null ? void 0 : y.updated) || ((f = (g = (m = i.activeTropicals) == null ? void 0 : m.forecasts) == null ? void 0 : g.filter((I) => !I.disabled)[0]) == null ? void 0 : f.date))), 1)
4152
4152
  ]),
4153
4153
  l("div", qa, [
4154
4154
  l("div", Ya, [
@@ -4159,7 +4159,7 @@ function mi(t, e, a, r, i, o) {
4159
4159
  ]),
4160
4160
  l("div", ti, [
4161
4161
  ai,
4162
- l("span", null, S(((w = (g = i.activeTropicals) == null ? void 0 : g.history) == null ? void 0 : w.pressure) || "-") + "[hPa]", 1)
4162
+ l("span", null, S(((w = (b = i.activeTropicals) == null ? void 0 : b.history) == null ? void 0 : w.pressure) || "-") + "[hPa]", 1)
4163
4163
  ])
4164
4164
  ]),
4165
4165
  l("div", ii, [
@@ -4895,7 +4895,7 @@ const vr = {
4895
4895
  Gr
4896
4896
  ];
4897
4897
  function Zr(t, e, a, r, i, o) {
4898
- var n, s, c, h, d, p, f, m, b, y, u, v, g, w, k, _, I, D, $, W, O, U, ae, de, pe, me, ue, ye, X, q, fe, Y, R, F, ge, Q, be, ie, re, oe, Se, ke, ze, Pe, Te, Ie, Ee;
4898
+ var n, s, c, h, d, p, y, m, g, f, u, v, b, w, k, _, I, D, $, W, O, U, ae, de, pe, me, ue, ye, X, q, fe, Y, R, F, ge, Q, be, ie, re, oe, Se, ke, ze, Pe, Te, Ie, Ee;
4899
4899
  return $e((L(), x("div", _r, [
4900
4900
  l("div", wr, [
4901
4901
  l("div", Lr, [
@@ -4909,11 +4909,11 @@ function Zr(t, e, a, r, i, o) {
4909
4909
  l("div", Sr, [
4910
4910
  l("div", kr, [
4911
4911
  zr,
4912
- l("span", null, S(((d = (h = a.meteo) == null ? void 0 : h.wind) == null ? void 0 : d.direction) || "-") + "/" + S(o.roundPrecision((f = (p = a.meteo) == null ? void 0 : p.wind) == null ? void 0 : f.kts, 1)) + "[kts]/" + S((b = (m = a.meteo) == null ? void 0 : m.wind) == null ? void 0 : b.scale) + "[BF]/" + S(o.roundPrecision((u = (y = a.meteo) == null ? void 0 : y.gusts) == null ? void 0 : u.kts, 1)) + "[kts]", 1)
4912
+ l("span", null, S(((d = (h = a.meteo) == null ? void 0 : h.wind) == null ? void 0 : d.direction) || "-") + "/" + S(o.roundPrecision((y = (p = a.meteo) == null ? void 0 : p.wind) == null ? void 0 : y.kts, 1)) + "[kts]/" + S((g = (m = a.meteo) == null ? void 0 : m.wind) == null ? void 0 : g.scale) + "[BF]/" + S(o.roundPrecision((u = (f = a.meteo) == null ? void 0 : f.gusts) == null ? void 0 : u.kts, 1)) + "[kts]", 1)
4913
4913
  ]),
4914
4914
  l("div", Pr, [
4915
4915
  Tr,
4916
- l("span", null, S(((w = (g = (v = a.meteo) == null ? void 0 : v.wave) == null ? void 0 : g.wd) == null ? void 0 : w.direction) || "-") + "/" + S(o.roundPrecision((I = (_ = (k = a.meteo) == null ? void 0 : k.wave) == null ? void 0 : _.wd) == null ? void 0 : I.height, 1)) + "[m]/" + S(o.roundPrecision((W = ($ = (D = a.meteo) == null ? void 0 : D.wave) == null ? void 0 : $.wd) == null ? void 0 : W.period, 1)) + "[s]", 1)
4916
+ l("span", null, S(((w = (b = (v = a.meteo) == null ? void 0 : v.wave) == null ? void 0 : b.wd) == null ? void 0 : w.direction) || "-") + "/" + S(o.roundPrecision((I = (_ = (k = a.meteo) == null ? void 0 : k.wave) == null ? void 0 : _.wd) == null ? void 0 : I.height, 1)) + "[m]/" + S(o.roundPrecision((W = ($ = (D = a.meteo) == null ? void 0 : D.wave) == null ? void 0 : $.wd) == null ? void 0 : W.period, 1)) + "[s]", 1)
4917
4917
  ]),
4918
4918
  l("div", Ir, [
4919
4919
  Er,
@@ -6234,24 +6234,24 @@ const at = /* @__PURE__ */ T(No, [["render", jo], ["__scopeId", "data-v-51cc4052
6234
6234
  var a, r, i, o, n, s, c, h, d, p;
6235
6235
  const e = (r = (a = t.target) == null ? void 0 : a._element) == null ? void 0 : r.id;
6236
6236
  if ((e == null ? void 0 : e.split("-").length) === 2) {
6237
- const f = this.geojson.filter((u) => u.id === e.split("-")[0])[0];
6238
- this.pointMarkers[f.id].filter((u) => {
6237
+ const y = this.geojson.filter((u) => u.id === e.split("-")[0])[0];
6238
+ this.pointMarkers[y.id].filter((u) => {
6239
6239
  var v;
6240
6240
  return ((v = u._element) == null ? void 0 : v.id) === e;
6241
6241
  })[0].setLngLat([(o = (i = t.target) == null ? void 0 : i._lngLat) == null ? void 0 : o.lng, (s = (n = t.target) == null ? void 0 : n._lngLat) == null ? void 0 : s.lat]);
6242
- let b;
6243
- f.features.forEach((u, v) => {
6242
+ let g;
6243
+ y.features.forEach((u, v) => {
6244
6244
  if (u.geometry.type === "Point" && u.properties.id == e.split("-")[1]) {
6245
- b = v;
6245
+ g = v;
6246
6246
  return;
6247
6247
  }
6248
6248
  });
6249
- const y = f.features.filter((u) => u.geometry.type === "Point");
6249
+ const f = y.features.filter((u) => u.geometry.type === "Point");
6250
6250
  this.handleTmpPointUpdate(
6251
- f,
6252
- y[b - 1],
6253
- { lng: (h = (c = t.target) == null ? void 0 : c._lngLat) == null ? void 0 : h.lng, lat: (p = (d = t.target) == null ? void 0 : d._lngLat) == null ? void 0 : p.lat, properties: y[b].properties },
6254
- b === y.length - 1 ? void 0 : y[b + 1]
6251
+ y,
6252
+ f[g - 1],
6253
+ { lng: (h = (c = t.target) == null ? void 0 : c._lngLat) == null ? void 0 : h.lng, lat: (p = (d = t.target) == null ? void 0 : d._lngLat) == null ? void 0 : p.lat, properties: f[g].properties },
6254
+ g === f.length - 1 ? void 0 : f[g + 1]
6255
6255
  );
6256
6256
  }
6257
6257
  },
@@ -6259,13 +6259,13 @@ const at = /* @__PURE__ */ T(No, [["render", jo], ["__scopeId", "data-v-51cc4052
6259
6259
  var a, r, i, o, n, s, c, h, d, p;
6260
6260
  const e = (r = (a = t.target) == null ? void 0 : a._element) == null ? void 0 : r.id;
6261
6261
  if ((e == null ? void 0 : e.split("-").length) === 2) {
6262
- const f = this.geojson.filter((y) => y.id === e.split("-")[0])[0];
6263
- this.pointMarkers[f.id].filter((y) => {
6262
+ const y = this.geojson.filter((f) => f.id === e.split("-")[0])[0];
6263
+ this.pointMarkers[y.id].filter((f) => {
6264
6264
  var u;
6265
- return ((u = y._element) == null ? void 0 : u.id) === e;
6265
+ return ((u = f._element) == null ? void 0 : u.id) === e;
6266
6266
  })[0].setLngLat([(o = (i = t.target) == null ? void 0 : i._lngLat) == null ? void 0 : o.lng, (s = (n = t.target) == null ? void 0 : n._lngLat) == null ? void 0 : s.lat]);
6267
- const b = f.features.filter((y) => y.geometry.type === "Point" && y.properties.id == e.split("-")[1])[0];
6268
- b.geometry.coordinates = [(h = (c = t.target) == null ? void 0 : c._lngLat) == null ? void 0 : h.lng, (p = (d = t.target) == null ? void 0 : d._lngLat) == null ? void 0 : p.lat], f.features = f.features.filter((y) => y.geometry.type === "Point"), this.handlePointUpdate(f);
6267
+ const g = y.features.filter((f) => f.geometry.type === "Point" && f.properties.id == e.split("-")[1])[0];
6268
+ g.geometry.coordinates = [(h = (c = t.target) == null ? void 0 : c._lngLat) == null ? void 0 : h.lng, (p = (d = t.target) == null ? void 0 : d._lngLat) == null ? void 0 : p.lat], y.features = y.features.filter((f) => f.geometry.type === "Point"), this.handlePointUpdate(y);
6269
6269
  }
6270
6270
  },
6271
6271
  handleContextmenu(t) {
@@ -6314,9 +6314,9 @@ const at = /* @__PURE__ */ T(No, [["render", jo], ["__scopeId", "data-v-51cc4052
6314
6314
  for (let i = 1; i < e.length; i++) {
6315
6315
  const o = e[i - 1], n = e[i], s = o.properties, c = { lng: o.geometry.coordinates[0], lat: o.geometry.coordinates[1] }, h = { lng: n.geometry.coordinates[0], lat: n.geometry.coordinates[1] }, d = je(c, h, s.mode === "RL", 2), p = Fe(c, h, s.mode === "RL", 2);
6316
6316
  a = te.roundPrecision(a + d, 2);
6317
- let f;
6318
- s.mode === "RL" ? f = we([c, h]) : f = we(Ve(c, h, 200));
6319
- const m = C.lineString(f.map((b) => [b.lng, b.lat]));
6317
+ let y;
6318
+ s.mode === "RL" ? y = we([c, h]) : y = we(Ve(c, h, 200));
6319
+ const m = C.lineString(y.map((g) => [g.lng, g.lat]));
6320
6320
  m.properties.dist = d, m.properties.bearing = p, m.properties.total = a, r.push(m);
6321
6321
  }
6322
6322
  e.push(...r), t.total = a;
@@ -6331,16 +6331,16 @@ const at = /* @__PURE__ */ T(No, [["render", jo], ["__scopeId", "data-v-51cc4052
6331
6331
  o = je(h, d, c.mode === "RL", 2), n = Fe(h, d, c.mode === "RL", 2);
6332
6332
  let p;
6333
6333
  c.mode === "RL" ? p = we([h, d]) : p = we(Ve(h, d, 200));
6334
- const f = C.lineString(p.map((m) => [m.lng, m.lat]));
6335
- f.properties.dist = o, f.properties.bearing = n, i.features.push(f);
6334
+ const y = C.lineString(p.map((m) => [m.lng, m.lat]));
6335
+ y.properties.dist = o, y.properties.bearing = n, i.features.push(y);
6336
6336
  }
6337
6337
  if (r) {
6338
6338
  const c = a.properties, h = a, d = { lng: r.geometry.coordinates[0], lat: r.geometry.coordinates[1] };
6339
6339
  o = je(h, d, c.mode === "RL", 2), n = Fe(h, d, c.mode === "RL", 2);
6340
6340
  let p;
6341
6341
  c.mode === "RL" ? p = we([h, d]) : p = we(Ve(h, d, 200));
6342
- const f = C.lineString(p.map((m) => [m.lng, m.lat]));
6343
- f.properties.dist = o, f.properties.bearing = n, i.features.push(f);
6342
+ const y = C.lineString(p.map((m) => [m.lng, m.lat]));
6343
+ y.properties.dist = o, y.properties.bearing = n, i.features.push(y);
6344
6344
  }
6345
6345
  this.map.getSource(this.tmpSource) ? this.map.getSource(this.tmpSource).setData(i) : this.map.addSource(this.tmpSource, {
6346
6346
  type: "geojson",
@@ -6452,11 +6452,11 @@ const at = /* @__PURE__ */ T(No, [["render", jo], ["__scopeId", "data-v-51cc4052
6452
6452
  }
6453
6453
  },
6454
6454
  handleClear(t, e = !0) {
6455
- var o, n, s, c, h, d, p, f, m;
6455
+ var o, n, s, c, h, d, p, y, m;
6456
6456
  const a = `${t.id}-${this.source}`, r = `${t.id}-${this.layer}`, i = `${t.id}-${this.labelLayer}`;
6457
- (o = this.map) != null && o.getLayer(r) && this.map.removeLayer(r), (n = this.map) != null && n.getLayer(i) && this.map.removeLayer(i), (s = this.map) != null && s.getLayer(this.tmpLayer) && this.map.removeLayer(this.tmpLayer), (c = this.map) != null && c.getLayer(this.tmpLabelLayer) && this.map.removeLayer(this.tmpLabelLayer), (h = this.closeMarkers[t.id]) == null || h.remove(), this.closeMarkers[t.id] = void 0, (d = this.pointMarkers[t.id]) == null || d.forEach((b) => {
6458
- b == null || b.remove();
6459
- }), this.pointMarkers[t.id] = [], (p = this.tipMarker) == null || p.remove(), this.tipMarker = void 0, e && ((f = this.map) != null && f.getSource(a)) && this.map.removeSource(a), e && ((m = this.map) != null && m.getSource(this.tmpSource)) && this.map.removeSource(this.tmpSource);
6457
+ (o = this.map) != null && o.getLayer(r) && this.map.removeLayer(r), (n = this.map) != null && n.getLayer(i) && this.map.removeLayer(i), (s = this.map) != null && s.getLayer(this.tmpLayer) && this.map.removeLayer(this.tmpLayer), (c = this.map) != null && c.getLayer(this.tmpLabelLayer) && this.map.removeLayer(this.tmpLabelLayer), (h = this.closeMarkers[t.id]) == null || h.remove(), this.closeMarkers[t.id] = void 0, (d = this.pointMarkers[t.id]) == null || d.forEach((g) => {
6458
+ g == null || g.remove();
6459
+ }), this.pointMarkers[t.id] = [], (p = this.tipMarker) == null || p.remove(), this.tipMarker = void 0, e && ((y = this.map) != null && y.getSource(a)) && this.map.removeSource(a), e && ((m = this.map) != null && m.getSource(this.tmpSource)) && this.map.removeSource(this.tmpSource);
6460
6460
  }
6461
6461
  }
6462
6462
  };
@@ -6630,10 +6630,7 @@ const es = {
6630
6630
  },
6631
6631
  map: {
6632
6632
  handler() {
6633
- this.map && (this.map.on("zoomend", this.handleDragEndWithZoom4Json), this.map.on("dragend", this.handleDragEndWithZoom4Json), this.map.on("move", this.handleDragEndWithZoom4Image), this.viewport = new Ge(this.map), this.handleRampColorInitial(), setTimeout(() => {
6634
- var t, e, a, r, i, o, n, s, c, h, d, p, f, m, b, y, u, v, g;
6635
- this.activeWeatherLayers.length > 0 ? (console.log(1111, this.activeWeatherLayers.length, (e = this.map) == null ? void 0 : e.getLayer((t = this.viewport) == null ? void 0 : t.rampColorLayer)), (r = (a = this.map) == null ? void 0 : a.getLayer(this.enc)) == null || r.setLayoutProperty("visibility", "none"), (o = (i = this.map) == null ? void 0 : i.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) == null || o.setLayoutProperty("visibility", "visible"), (n = this.map) != null && n.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id) && ((c = this.map) == null || c.moveLayer((s = this.viewport) == null ? void 0 : s.rampColorLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)), (d = this.map) != null && d.getLayer((h = this.viewport) == null ? void 0 : h.particleLayer) && ((f = this.map) == null || f.moveLayer((p = this.viewport) == null ? void 0 : p.particleLayer, this.helper.mapboxCustomer.layers.countryBoundary.id))) : (console.log(2222, this.activeWeatherLayers.length, (b = this.map) == null ? void 0 : b.getLayer((m = this.viewport) == null ? void 0 : m.rampColorLayer)), (u = (y = this.map) == null ? void 0 : y.getLayer(this.enc)) == null || u.setLayoutProperty("visibility", "visible"), (g = (v = this.map) == null ? void 0 : v.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) == null || g.setLayoutProperty("visibility", "none"));
6636
- }, 500));
6633
+ this.map && (this.map.on("zoomend", this.handleDragEndWithZoom4Json), this.map.on("dragend", this.handleDragEndWithZoom4Json), this.map.on("move", this.handleDragEndWithZoom4Image), this.viewport = new Ge(this.map), this.handleRampColorInitial(), console.log(1111, "gl3-map-watch"));
6637
6634
  },
6638
6635
  immediate: !0
6639
6636
  },
@@ -6645,10 +6642,10 @@ const es = {
6645
6642
  },
6646
6643
  activeWeatherLayers: {
6647
6644
  handler() {
6648
- var t, e, a, r, i, o, n, s, c, h, d, p, f, m, b, y, u, v, g;
6645
+ var t, e, a, r, i, o, n, s, c, h, d, p, y, m, g;
6649
6646
  if (!this.map)
6650
6647
  return !1;
6651
- this.activeWeatherLayers.length > 0 ? (console.log(3333, this.activeWeatherLayers.length, (e = this.map) == null ? void 0 : e.getLayer((t = this.viewport) == null ? void 0 : t.rampColorLayer)), (r = (a = this.map) == null ? void 0 : a.getLayer(this.enc)) == null || r.setLayoutProperty("visibility", "none"), (o = (i = this.map) == null ? void 0 : i.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) == null || o.setLayoutProperty("visibility", "visible"), (n = this.map) != null && n.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id) && ((c = this.map) == null || c.moveLayer((s = this.viewport) == null ? void 0 : s.rampColorLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)), (d = this.map) != null && d.getLayer((h = this.viewport) == null ? void 0 : h.particleLayer) && ((f = this.map) == null || f.moveLayer((p = this.viewport) == null ? void 0 : p.particleLayer, this.helper.mapboxCustomer.layers.countryBoundary.id))) : (console.log(444, this.activeWeatherLayers.length, (b = this.map) == null ? void 0 : b.getLayer((m = this.viewport) == null ? void 0 : m.rampColorLayer)), (u = (y = this.map) == null ? void 0 : y.getLayer(this.enc)) == null || u.setLayoutProperty("visibility", "visible"), (g = (v = this.map) == null ? void 0 : v.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) == null || g.setLayoutProperty("visibility", "none"));
6648
+ this.activeWeatherLayers.length > 0 ? (console.log(3333, this.activeWeatherLayers.length), (e = (t = this.map) == null ? void 0 : t.getLayer(this.enc)) == null || e.setLayoutProperty("visibility", "none"), (r = (a = this.map) == null ? void 0 : a.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) == null || r.setLayoutProperty("visibility", "visible"), (i = this.map) != null && i.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id) && ((n = this.map) == null || n.moveLayer((o = this.viewport) == null ? void 0 : o.rampColorLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)), (c = this.map) != null && c.getLayer((s = this.viewport) == null ? void 0 : s.particleLayer) && ((d = this.map) == null || d.moveLayer((h = this.viewport) == null ? void 0 : h.particleLayer, this.helper.mapboxCustomer.layers.countryBoundary.id))) : (console.log(444, this.activeWeatherLayers.length), (y = (p = this.map) == null ? void 0 : p.getLayer(this.enc)) == null || y.setLayoutProperty("visibility", "visible"), (g = (m = this.map) == null ? void 0 : m.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) == null || g.setLayoutProperty("visibility", "none"));
6652
6649
  },
6653
6650
  immediate: !0
6654
6651
  }
@@ -6699,32 +6696,32 @@ const es = {
6699
6696
  const e = (/* @__PURE__ */ new Date()).valueOf();
6700
6697
  let a = 0, r = 0;
6701
6698
  if (this.map) {
6702
- const f = ((i = this.map) == null ? void 0 : i.getZoom()) + 1, m = (o = this.map) == null ? void 0 : o.getBounds(), b = `${m._sw.lng},${m._sw.lat},${m._ne.lng},${m._ne.lat}`;
6699
+ const y = ((i = this.map) == null ? void 0 : i.getZoom()) + 1, m = (o = this.map) == null ? void 0 : o.getBounds(), g = `${m._sw.lng},${m._sw.lat},${m._ne.lng},${m._ne.lat}`;
6703
6700
  if (this.handleRampColorState(), this.particleFactor) {
6704
- const y = Ue.WEATHER_LAYERS.find((u) => {
6701
+ const f = Ue.WEATHER_LAYERS.find((u) => {
6705
6702
  var v;
6706
6703
  return ((v = u.peer) == null ? void 0 : v.weight) === this.particleFactor.weight;
6707
6704
  });
6708
- this.particleFactor.particle ? this.weatherWeight = this.weatherWeight & y.weight ? this.weatherWeight : this.weatherWeight + y.weight : this.weatherWeight = this.weatherWeight & y.weight ? this.weatherWeight - y.weight : this.weatherWeight;
6705
+ this.particleFactor.particle ? this.weatherWeight = this.weatherWeight & f.weight ? this.weatherWeight : this.weatherWeight + f.weight : this.weatherWeight = this.weatherWeight & f.weight ? this.weatherWeight - f.weight : this.weatherWeight;
6709
6706
  }
6710
6707
  if (this.weatherWeight > 0) {
6711
- let y = this.weatherWeight, u;
6712
- if (t.tropicals || this.weatherWeight & 256 && (u = this.weatherLayers.tropicals, u && (y -= 256, u.version = Math.random() + 1)), y > 0) {
6713
- const v = await se.get(`${this.gateway}/api/arc/weather/layers/links?l=${y}&v=${this.source}&z=${f}&bbox=${b}&t=${this.ts}`, {
6708
+ let f = this.weatherWeight, u;
6709
+ if (t.tropicals || this.weatherWeight & 256 && (u = this.weatherLayers.tropicals, u && (f -= 256, u.version = Math.random() + 1)), f > 0) {
6710
+ const v = await se.get(`${this.gateway}/api/arc/weather/layers/links?l=${f}&v=${this.source}&z=${y}&bbox=${g}&t=${this.ts}`, {
6714
6711
  headers: {
6715
6712
  Authorization: this.token || this.defaultMeteoToken
6716
6713
  }
6717
6714
  });
6718
6715
  if (r = (/* @__PURE__ */ new Date()).valueOf() - (e + a), console.log("weather links elapsed: ", r, ", total: ", a += r), ((n = v == null ? void 0 : v.data) == null ? void 0 : n.code) === 0) {
6719
- const g = (s = v == null ? void 0 : v.data) == null ? void 0 : s.data, w = [];
6720
- for (const _ in g)
6721
- _ === "ice-edge" && (g[_] = "https://idm-hz.oss-cn-hangzhou.aliyuncs.com/test/sea_ice_contours.geojson"), _ !== "tropicals" && w.push(
6722
- se.get(g[_], {
6716
+ const b = (s = v == null ? void 0 : v.data) == null ? void 0 : s.data, w = [];
6717
+ for (const _ in b)
6718
+ _ === "ice-edge" && (b[_] = "https://idm-hz.oss-cn-hangzhou.aliyuncs.com/test/sea_ice_contours.geojson"), _ !== "tropicals" && w.push(
6719
+ se.get(b[_], {
6723
6720
  headers: {
6724
6721
  Authorization: this.token || this.defaultMeteoToken,
6725
6722
  key: _
6726
6723
  },
6727
- responseType: /\.(jpg|png)$/.test(g[_]) ? "blob" : "json"
6724
+ responseType: /\.(jpg|png)$/.test(b[_]) ? "blob" : "json"
6728
6725
  }).catch((I) => {
6729
6726
  console.log(`[${_}] fetch layer error: ${I}`);
6730
6727
  })
@@ -6738,7 +6735,7 @@ const es = {
6738
6735
  type: ((U = _ == null ? void 0 : _.config) == null ? void 0 : U.responseType) === "blob" ? "image" : "json",
6739
6736
  etime: this.ts
6740
6737
  });
6741
- }), g.tropicals && se.get(g.tropicals, {
6738
+ }), b.tropicals && se.get(b.tropicals, {
6742
6739
  headers: {
6743
6740
  Authorization: this.token || this.defaultMeteoToken,
6744
6741
  key: "tropicals"
@@ -6757,19 +6754,19 @@ const es = {
6757
6754
  });
6758
6755
  }
6759
6756
  if (r = (/* @__PURE__ */ new Date()).valueOf() - (e + a), console.log("weather layers elapsed: ", r, ", total: ", a += r), this.weatherLayers["swell-direction"] || this.weatherLayers["swell-height"]) {
6760
- const g = (c = this.weatherLayers["swell-direction"]) == null ? void 0 : c.raw, w = (h = this.weatherLayers["swell-height"]) == null ? void 0 : h.raw;
6757
+ const b = (c = this.weatherLayers["swell-direction"]) == null ? void 0 : c.raw, w = (h = this.weatherLayers["swell-height"]) == null ? void 0 : h.raw;
6761
6758
  delete this.weatherLayers["swell-direction"], delete this.weatherLayers["swell-height"], this.weatherLayers.swell = {
6762
6759
  type: "json",
6763
- direction: g,
6760
+ direction: b,
6764
6761
  height: { raw: w },
6765
6762
  etime: this.ts
6766
6763
  };
6767
6764
  }
6768
6765
  if (this.weatherLayers["current-direction"] || this.weatherLayers["current-speed"]) {
6769
- const g = (d = this.weatherLayers["current-direction"]) == null ? void 0 : d.raw, w = (p = this.weatherLayers["current-speed"]) == null ? void 0 : p.raw;
6766
+ const b = (d = this.weatherLayers["current-direction"]) == null ? void 0 : d.raw, w = (p = this.weatherLayers["current-speed"]) == null ? void 0 : p.raw;
6770
6767
  delete this.weatherLayers["current-direction"], delete this.weatherLayers["current-speed"], this.weatherLayers.current = {
6771
6768
  type: "json",
6772
- direction: g,
6769
+ direction: b,
6773
6770
  speed: { raw: w },
6774
6771
  etime: this.ts
6775
6772
  };
@@ -6807,9 +6804,9 @@ const es = {
6807
6804
  );
6808
6805
  const d = await Promise.all(h);
6809
6806
  this.otherLayers = { enc: n }, d.map((p) => {
6810
- var b, y, u;
6811
- const f = ((b = p == null ? void 0 : p.data) == null ? void 0 : b.data) || (p == null ? void 0 : p.data), m = (u = (y = p == null ? void 0 : p.config) == null ? void 0 : y.headers) == null ? void 0 : u.key;
6812
- this.otherLayers[m] = f;
6807
+ var g, f, u;
6808
+ const y = ((g = p == null ? void 0 : p.data) == null ? void 0 : g.data) || (p == null ? void 0 : p.data), m = (u = (f = p == null ? void 0 : p.config) == null ? void 0 : f.headers) == null ? void 0 : u.key;
6809
+ this.otherLayers[m] = y;
6813
6810
  });
6814
6811
  }
6815
6812
  } else if (t.dayNight && o & 1024) {
@@ -6830,9 +6827,9 @@ const es = {
6830
6827
  })
6831
6828
  );
6832
6829
  (await Promise.all(h)).map((p) => {
6833
- var b, y, u;
6834
- const f = ((b = p == null ? void 0 : p.data) == null ? void 0 : b.data) || (p == null ? void 0 : p.data), m = (u = (y = p == null ? void 0 : p.config) == null ? void 0 : y.headers) == null ? void 0 : u.key;
6835
- this.otherLayers[m] = f;
6830
+ var g, f, u;
6831
+ const y = ((g = p == null ? void 0 : p.data) == null ? void 0 : g.data) || (p == null ? void 0 : p.data), m = (u = (f = p == null ? void 0 : p.config) == null ? void 0 : f.headers) == null ? void 0 : u.key;
6832
+ this.otherLayers[m] = y;
6836
6833
  });
6837
6834
  }
6838
6835
  }
@@ -6887,36 +6884,36 @@ const es = {
6887
6884
  );
6888
6885
  },
6889
6886
  handleDragEndWithZoom4Json() {
6890
- var h, d, p, f;
6887
+ var h, d, p, y;
6891
6888
  const t = (/* @__PURE__ */ new Date()).valueOf();
6892
6889
  let e = 0, a = 0;
6893
6890
  const r = (h = this.map) == null ? void 0 : h.getBounds(), i = this.map.getZoom(), o = Re(r._sw.lng), n = Re(r._ne.lng), s = Math.floor(r._sw.lat), c = Math.ceil(r._ne.lat);
6894
6891
  for (const m in this.weatherLayers)
6895
6892
  if (this.weatherLayers[m].active && this.weatherLayers[m].type === "json") {
6896
6893
  this.weatherLayers[m].active = !1, this.weatherLayers[m].version = Math.random() + 1;
6897
- let b = [];
6894
+ let g = [];
6898
6895
  if (["swell", "current"].includes(m)) {
6899
- const y = ((d = this.weatherLayers[m]) == null ? void 0 : d.direction) || {};
6900
- for (const u in y)
6896
+ const f = ((d = this.weatherLayers[m]) == null ? void 0 : d.direction) || {};
6897
+ for (const u in f)
6901
6898
  if (u > s && u < c && (!(i <= this.zoom) || u % (i < this.zoom / 2 ? 5 : 3) === 0)) {
6902
- const v = y[u].lng;
6903
- o > n ? v.forEach((g, w) => {
6899
+ const v = f[u].lng;
6900
+ o > n ? v.forEach((b, w) => {
6904
6901
  var k;
6905
- if ((g >= o && g <= 180 || g >= -180 && g <= n) && (!(i <= this.zoom) || g % (i < this.zoom / 2 ? 5 : 3) === 0)) {
6906
- const _ = C.point([g, u], {
6907
- val: y[u].val[w],
6908
- spd: (k = y[u].spd) == null ? void 0 : k[w]
6902
+ if ((b >= o && b <= 180 || b >= -180 && b <= n) && (!(i <= this.zoom) || b % (i < this.zoom / 2 ? 5 : 3) === 0)) {
6903
+ const _ = C.point([b, u], {
6904
+ val: f[u].val[w],
6905
+ spd: (k = f[u].spd) == null ? void 0 : k[w]
6909
6906
  });
6910
- b.push(_);
6907
+ g.push(_);
6911
6908
  }
6912
- }) : v.forEach((g, w) => {
6909
+ }) : v.forEach((b, w) => {
6913
6910
  var k;
6914
- if (g >= o && g <= n && (!(i <= this.zoom) || g % (i < this.zoom / 2 ? 5 : 3) === 0)) {
6915
- const _ = C.point([g, u], {
6916
- val: y[u].val[w],
6917
- spd: (k = y[u].spd) == null ? void 0 : k[w]
6911
+ if (b >= o && b <= n && (!(i <= this.zoom) || b % (i < this.zoom / 2 ? 5 : 3) === 0)) {
6912
+ const _ = C.point([b, u], {
6913
+ val: f[u].val[w],
6914
+ spd: (k = f[u].spd) == null ? void 0 : k[w]
6918
6915
  });
6919
- b.push(_);
6916
+ g.push(_);
6920
6917
  }
6921
6918
  });
6922
6919
  }
@@ -6925,12 +6922,12 @@ const es = {
6925
6922
  if (u) {
6926
6923
  if (!u.data) {
6927
6924
  const v = [];
6928
- for (const g in (p = u.raw) == null ? void 0 : p.LineString) {
6929
- const w = u.raw.LineString[g];
6925
+ for (const b in (p = u.raw) == null ? void 0 : p.LineString) {
6926
+ const w = u.raw.LineString[b];
6930
6927
  for (const k of w)
6931
6928
  v.push(
6932
6929
  C.lineString(k, {
6933
- val: Number(g)
6930
+ val: Number(b)
6934
6931
  })
6935
6932
  );
6936
6933
  u.data = C.featureCollection(v);
@@ -6938,7 +6935,7 @@ const es = {
6938
6935
  }
6939
6936
  if (u.data) {
6940
6937
  const v = this.handleBboxClip(u.data, r);
6941
- b = b.concat(v);
6938
+ g = g.concat(v);
6942
6939
  }
6943
6940
  a = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("height elapsed: ", a, ", total: ", e += a);
6944
6941
  }
@@ -6947,117 +6944,117 @@ const es = {
6947
6944
  const u = this.weatherLayers[m].speed;
6948
6945
  if (u) {
6949
6946
  if (!u.data) {
6950
- const g = [];
6951
- for (const w in (f = u.raw) == null ? void 0 : f.Polygon) {
6947
+ const b = [];
6948
+ for (const w in (y = u.raw) == null ? void 0 : y.Polygon) {
6952
6949
  const k = u.raw.Polygon[w];
6953
6950
  for (const _ of k)
6954
- g.push(
6951
+ b.push(
6955
6952
  C.polygon(_, {
6956
6953
  val: Number(w)
6957
6954
  })
6958
6955
  );
6959
6956
  }
6960
- u.data = C.featureCollection(g);
6957
+ u.data = C.featureCollection(b);
6961
6958
  }
6962
- const v = i < this.zoom ? u.data.features.filter((g) => g.properties.val > 0.5) : u.data.features;
6963
- b = b.concat(v), a = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("speed elapsed: ", a, ", total: ", e += a);
6959
+ const v = i < this.zoom ? u.data.features.filter((b) => b.properties.val > 0.5) : u.data.features;
6960
+ g = g.concat(v), a = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("speed elapsed: ", a, ", total: ", e += a);
6964
6961
  }
6965
6962
  }
6966
6963
  } else if (m === "wind") {
6967
- const y = this.weatherLayers.wind.raw;
6968
- for (const u in y)
6964
+ const f = this.weatherLayers.wind.raw;
6965
+ for (const u in f)
6969
6966
  if (u > s && u < c && (!(i <= this.zoom) || u % (i < this.zoom / 2 ? 5 : 3) === 0)) {
6970
- const v = y[u].lng;
6971
- o > n ? v.forEach((g, w) => {
6972
- if ((g >= o && g <= 180 || g >= -180 && g <= n) && (!(i <= this.zoom) || g % (i < this.zoom / 2 ? 5 : 3) === 0)) {
6973
- const k = C.point([g, u], {
6974
- val: y[u].val[w],
6975
- spd: y[u].spd[w]
6967
+ const v = f[u].lng;
6968
+ o > n ? v.forEach((b, w) => {
6969
+ if ((b >= o && b <= 180 || b >= -180 && b <= n) && (!(i <= this.zoom) || b % (i < this.zoom / 2 ? 5 : 3) === 0)) {
6970
+ const k = C.point([b, u], {
6971
+ val: f[u].val[w],
6972
+ spd: f[u].spd[w]
6976
6973
  });
6977
- b.push(k);
6974
+ g.push(k);
6978
6975
  }
6979
- }) : v.forEach((g, w) => {
6980
- if (g >= o && g <= n && (!(i <= this.zoom) || g % (i < this.zoom / 2 ? 5 : 3) === 0)) {
6981
- const k = C.point([g, u], {
6982
- val: y[u].val[w],
6983
- spd: y[u].spd[w]
6976
+ }) : v.forEach((b, w) => {
6977
+ if (b >= o && b <= n && (!(i <= this.zoom) || b % (i < this.zoom / 2 ? 5 : 3) === 0)) {
6978
+ const k = C.point([b, u], {
6979
+ val: f[u].val[w],
6980
+ spd: f[u].spd[w]
6984
6981
  });
6985
- b.push(k);
6982
+ g.push(k);
6986
6983
  }
6987
6984
  });
6988
6985
  }
6989
6986
  a = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("wind barb elapsed: ", a, ", total: ", e += a);
6990
6987
  } else if (m === "sig-wave-height") {
6991
6988
  if (this.weatherLayers[m].data)
6992
- b = this.weatherLayers[m].data;
6989
+ g = this.weatherLayers[m].data;
6993
6990
  else {
6994
- const y = this.weatherLayers[m].raw;
6995
- if (y) {
6991
+ const f = this.weatherLayers[m].raw;
6992
+ if (f) {
6996
6993
  const u = [];
6997
- for (const v in y.Polygon) {
6998
- const g = y.Polygon[v];
6999
- for (const w of g)
6994
+ for (const v in f.Polygon) {
6995
+ const b = f.Polygon[v];
6996
+ for (const w of b)
7000
6997
  u.push(
7001
6998
  C.polygon(w, {
7002
6999
  val: Number(v)
7003
7000
  })
7004
7001
  );
7005
7002
  }
7006
- b = b.concat(u);
7003
+ g = g.concat(u);
7007
7004
  }
7008
7005
  }
7009
7006
  a = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("sigWave elapsed: ", a, ", total: ", e += a);
7010
7007
  } else if (m === "prmsl") {
7011
7008
  if (this.weatherLayers[m].data)
7012
- b = this.weatherLayers[m].data;
7009
+ g = this.weatherLayers[m].data;
7013
7010
  else {
7014
- const y = this.weatherLayers[m].raw;
7015
- if (y) {
7011
+ const f = this.weatherLayers[m].raw;
7012
+ if (f) {
7016
7013
  const u = [];
7017
- for (const v in y.LineString) {
7018
- const g = y.LineString[v];
7019
- for (const w of g)
7014
+ for (const v in f.LineString) {
7015
+ const b = f.LineString[v];
7016
+ for (const w of b)
7020
7017
  u.push(
7021
7018
  C.lineString(w, {
7022
7019
  val: Number(v)
7023
7020
  })
7024
7021
  );
7025
7022
  }
7026
- for (const v in y.Point)
7027
- y.Point[v].lng.forEach((g, w) => {
7028
- g = Re(g), u.push(
7029
- C.point([g, v], {
7030
- val: y.Point[v].val[w],
7031
- type: y.Point[v].type[w]
7023
+ for (const v in f.Point)
7024
+ f.Point[v].lng.forEach((b, w) => {
7025
+ b = Re(b), u.push(
7026
+ C.point([b, v], {
7027
+ val: f.Point[v].val[w],
7028
+ type: f.Point[v].type[w]
7032
7029
  })
7033
7030
  );
7034
7031
  });
7035
- b = b.concat(u);
7032
+ g = g.concat(u);
7036
7033
  }
7037
7034
  }
7038
7035
  a = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("prmsl elapsed: ", a, ", total: ", e += a);
7039
7036
  } else if (m === "arctic" || m === "iceberg") {
7040
7037
  if (this.weatherLayers[m].data)
7041
- b = this.weatherLayers[m].data;
7038
+ g = this.weatherLayers[m].data;
7042
7039
  else {
7043
- const y = this.weatherLayers[m].raw;
7044
- if (y) {
7040
+ const f = this.weatherLayers[m].raw;
7041
+ if (f) {
7045
7042
  const u = [];
7046
- for (const v in y.LineString) {
7047
- const g = y.LineString[v];
7048
- for (const w of g)
7043
+ for (const v in f.LineString) {
7044
+ const b = f.LineString[v];
7045
+ for (const w of b)
7049
7046
  u.push(
7050
7047
  C.lineString(w, {
7051
7048
  val: Number(v)
7052
7049
  })
7053
7050
  );
7054
7051
  }
7055
- b = b.concat(u);
7052
+ g = g.concat(u);
7056
7053
  }
7057
7054
  }
7058
7055
  a = (/* @__PURE__ */ new Date()).valueOf() - (t + e);
7059
7056
  }
7060
- console.log(m, " elapsed: ", a, ", total: ", e += a), b.length && (this.weatherLayers[m].data = C.featureCollection(b)), this.weatherLayers[m].active = !0, this.weatherLayers[m].version = Math.random() + 1;
7057
+ console.log(m, " elapsed: ", a, ", total: ", e += a), g.length && (this.weatherLayers[m].data = C.featureCollection(g)), this.weatherLayers[m].active = !0, this.weatherLayers[m].version = Math.random() + 1;
7061
7058
  }
7062
7059
  },
7063
7060
  handleDragEndWithZoom4Image() {
@@ -7090,8 +7087,8 @@ const es = {
7090
7087
  this.handleBeforeLayerToggle();
7091
7088
  },
7092
7089
  handleBeforeLayerToggle() {
7093
- var t, e, a, r, i, o, n, s, c, h, d, p, f;
7094
- (t = this.map) != null && t.getLayer(this.beforeLayer) && ((e = this.activeWeatherLayers) != null && e.length || (a = this.otherLayers) != null && a["war-zones"] || (r = this.otherLayers) != null && r["gmdss-areas"] || (i = this.otherLayers) != null && i["load-lines"] || (o = this.otherLayers) != null && o["high-risk-area"] || (n = this.otherLayers) != null && n["time-zones"] || (s = this.otherLayers) != null && s.pirates || (c = this.otherLayers) != null && c.ports || (h = this.otherLayers) != null && h.enc || (d = this.otherLayers) != null && d["voluntary-reporting-area"] || (p = this.otherLayers) != null && p["eca-zones"] || (f = this.otherLayers) != null && f["special-area"]) && this.map.setLayoutProperty(this.beforeLayer, "visibility", "visible");
7090
+ var t, e, a, r, i, o, n, s, c, h, d, p, y;
7091
+ (t = this.map) != null && t.getLayer(this.beforeLayer) && ((e = this.activeWeatherLayers) != null && e.length || (a = this.otherLayers) != null && a["war-zones"] || (r = this.otherLayers) != null && r["gmdss-areas"] || (i = this.otherLayers) != null && i["load-lines"] || (o = this.otherLayers) != null && o["high-risk-area"] || (n = this.otherLayers) != null && n["time-zones"] || (s = this.otherLayers) != null && s.pirates || (c = this.otherLayers) != null && c.ports || (h = this.otherLayers) != null && h.enc || (d = this.otherLayers) != null && d["voluntary-reporting-area"] || (p = this.otherLayers) != null && p["eca-zones"] || (y = this.otherLayers) != null && y["special-area"]) && this.map.setLayoutProperty(this.beforeLayer, "visibility", "visible");
7095
7092
  },
7096
7093
  handleDateChange(t = { tropicals: !1 }) {
7097
7094
  this.fetchWeatherLayers(t), this.fetchOtherLayers({ dayNight: !0 });
@@ -7150,7 +7147,7 @@ const es = {
7150
7147
  };
7151
7148
  function as(t, e, a, r, i, o) {
7152
7149
  var q, fe, Y, R, F, ge, Q, be, ie, re, oe, Se, ke, ze, Pe, Te, Ie, Ee, Oe, He, Ze, Xe, Je, qe, Ye, Qe;
7153
- const n = z("IdmGlLayer"), s = z("IdmENC"), c = z("IdmSigWave"), h = z("IdmSwell"), d = z("IdmPrmsl"), p = z("IdmIceberg"), f = z("IdmTropicals"), m = z("IdmCurrents"), b = z("IdmCurrentParticle"), y = z("IdmWindBarb"), u = z("IdmWindParticle"), v = z("IdmPrecip3h"), g = z("IdmVisibility"), w = z("IdmWaterTemp"), k = z("IdmTemp"), _ = z("IdmArctic"), I = z("IdmWarZone"), D = z("IdmGmdssArea"), $ = z("IdmEcaZone"), W = z("IdmAlertZone"), O = z("IdmPort"), U = z("IdmLoadLine"), ae = z("IdmTimezone"), de = z("IdmVRA"), pe = z("IdmSpecialArea"), me = z("IdmTerminator"), ue = z("IdmLatLng"), ye = z("IdmMeasure"), X = z("IdmPoint");
7150
+ const n = z("IdmGlLayer"), s = z("IdmENC"), c = z("IdmSigWave"), h = z("IdmSwell"), d = z("IdmPrmsl"), p = z("IdmIceberg"), y = z("IdmTropicals"), m = z("IdmCurrents"), g = z("IdmCurrentParticle"), f = z("IdmWindBarb"), u = z("IdmWindParticle"), v = z("IdmPrecip3h"), b = z("IdmVisibility"), w = z("IdmWaterTemp"), k = z("IdmTemp"), _ = z("IdmArctic"), I = z("IdmWarZone"), D = z("IdmGmdssArea"), $ = z("IdmEcaZone"), W = z("IdmAlertZone"), O = z("IdmPort"), U = z("IdmLoadLine"), ae = z("IdmTimezone"), de = z("IdmVRA"), pe = z("IdmSpecialArea"), me = z("IdmTerminator"), ue = z("IdmLatLng"), ye = z("IdmMeasure"), X = z("IdmPoint");
7154
7151
  return a.map ? (L(), x("div", ts, [
7155
7152
  P(n, E({
7156
7153
  ref: "layer",
@@ -7194,7 +7191,7 @@ function as(t, e, a, r, i, o) {
7194
7191
  iceberg: (F = i.weatherLayers) == null ? void 0 : F.iceberg,
7195
7192
  "before-layer": a.beforeLayer
7196
7193
  }, t.$attrs), null, 16, ["map", "iceberg", "before-layer"]),
7197
- P(f, E({
7194
+ P(y, E({
7198
7195
  map: a.map,
7199
7196
  date: a.ts,
7200
7197
  tropicals: (ge = i.weatherLayers) == null ? void 0 : ge.tropicals,
@@ -7209,13 +7206,13 @@ function as(t, e, a, r, i, o) {
7209
7206
  "toggle-version": i.toggleVersion,
7210
7207
  "weather-layers": i.weatherLayers
7211
7208
  }, t.$attrs, { onParticle: o.handleParticle }), null, 16, ["map", "current", "before-layer", "show-particle", "margin-bottom", "toggle-version", "weather-layers", "onParticle"]),
7212
- P(b, E({
7209
+ P(g, E({
7213
7210
  viewport: i.viewport,
7214
7211
  factor: (be = i.weatherLayers) == null ? void 0 : be["current-particle"],
7215
7212
  "before-layer": a.beforeLayer,
7216
7213
  "toggle-version": i.toggleVersion
7217
7214
  }, t.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
7218
- P(y, E({
7215
+ P(f, E({
7219
7216
  ref: "windBarb",
7220
7217
  map: a.map,
7221
7218
  wind: (ie = i.weatherLayers) == null ? void 0 : ie.wind,
@@ -7240,7 +7237,7 @@ function as(t, e, a, r, i, o) {
7240
7237
  "before-layer": a.beforeLayer,
7241
7238
  "toggle-version": i.toggleVersion
7242
7239
  }, t.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
7243
- P(g, E({
7240
+ P(b, E({
7244
7241
  viewport: i.viewport,
7245
7242
  factor: (ke = i.weatherLayers) == null ? void 0 : ke.visibility,
7246
7243
  "before-layer": a.beforeLayer,