@idmwx/idmui-gl4 3.0.8 → 3.1.0

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.
@@ -3,8 +3,8 @@ var kr = (t, e, a) => e in t ? vr(t, e, { enumerable: !0, configurable: !0, writ
3
3
  var ve = (t, e, a) => (kr(t, typeof e != "symbol" ? e + "" : e, a), a);
4
4
  import Ie from "axios";
5
5
  import { useTheme as Fe } from "vuetify";
6
- import { openBlock as k, createElementBlock as I, resolveComponent as P, createBlock as W, normalizeClass as ge, withCtx as x, createVNode as b, withModifiers as Le, createElementVNode as n, createCommentVNode as N, toDisplayString as y, createTextVNode as Z, Fragment as Te, renderList as De, withDirectives as et, vShow as tt, mergeProps as $, normalizeStyle as he } from "vue";
7
- import be from "mapbox-gl";
6
+ import { openBlock as k, createElementBlock as A, resolveComponent as P, createBlock as W, normalizeClass as ge, withCtx as x, createVNode as b, withModifiers as Le, createElementVNode as n, createCommentVNode as N, toDisplayString as y, createTextVNode as Z, Fragment as Te, renderList as De, withDirectives as et, vShow as tt, mergeProps as $, normalizeStyle as he } from "vue";
7
+ import ye from "mapbox-gl";
8
8
  import R from "moment";
9
9
  import { LngLatHelper as j, TropicalHelper as Di, LaneHelper as Xe, GeoJsonHelper as je } from "@idm-plugin/geo";
10
10
  import { Meteo2Assist as Va, TidesAssist as er } from "@idm-plugin/meteo";
@@ -116,7 +116,7 @@ const ie = (t, e) => {
116
116
  }
117
117
  };
118
118
  function Sr(t, e, a, i, o, r) {
119
- return k(), I("div");
119
+ return k(), A("div");
120
120
  }
121
121
  const Tr = /* @__PURE__ */ ie(Pr, [["render", Sr]]), Rr = {
122
122
  name: "IdmGmdssArea",
@@ -243,7 +243,7 @@ const Tr = /* @__PURE__ */ ie(Pr, [["render", Sr]]), Rr = {
243
243
  }
244
244
  };
245
245
  function Dr(t, e, a, i, o, r) {
246
- return k(), I("div");
246
+ return k(), A("div");
247
247
  }
248
248
  const Ir = /* @__PURE__ */ ie(Rr, [["render", Dr]]), Ar = {
249
249
  name: "IdmEcaZone",
@@ -339,7 +339,7 @@ const Ir = /* @__PURE__ */ ie(Rr, [["render", Dr]]), Ar = {
339
339
  }
340
340
  };
341
341
  function Gr(t, e, a, i, o, r) {
342
- return k(), I("div");
342
+ return k(), A("div");
343
343
  }
344
344
  const Fr = /* @__PURE__ */ ie(Ar, [["render", Gr]]);
345
345
  const Nr = {
@@ -490,7 +490,7 @@ const Nr = {
490
490
  const a = (o = document.getElementById("idm-gl4-zone-info")) == null ? void 0 : o.cloneNode(!0), i = (r = a == null ? void 0 : a.children[1]) == null ? void 0 : r.children[0];
491
491
  i && (i.onclick = () => {
492
492
  this.handleRemoveMarker();
493
- }), this.marker = new be.Marker(a).setLngLat(t).setOffset([230, 0]).addTo(this.map);
493
+ }), this.marker = new ye.Marker(a).setLngLat(t).setOffset([230, 0]).addTo(this.map);
494
494
  });
495
495
  },
496
496
  handleRemoveMarker() {
@@ -1515,10 +1515,10 @@ const Zr = {
1515
1515
  { label: "Swell", key: "weather.swell", unit: "m" },
1516
1516
  { label: "Current", key: "weather.current", unit: "kts" }
1517
1517
  ], (a = (e = this.dateList) == null ? void 0 : e[this.currentIndex]) == null || a.dateTimeList.forEach((i, o) => {
1518
- var c, s, d, m, p, f, w, u, h, g, _, T, v, M, L, z, S, D, A, E, X, O, q, ae, re, pe, G, J, K, oe, Y, H, ee, F, ne, fe, ke, ze;
1518
+ var c, s, d, m, p, f, w, u, h, g, _, T, v, M, L, z, S, D, I, E, X, O, q, ae, re, pe, G, J, K, oe, Y, H, ee, F, ne, fe, ke, ze;
1519
1519
  let r = {};
1520
1520
  const l = ((c = Va.pickHourly(t, R(i))) == null ? void 0 : c[0]) || {};
1521
- r.utc = l.utc, r.lat = t.lat, r.lng = t.lng, r.weatherUrl = (s = l.weather) == null ? void 0 : s.url, r.temp = this.computeRoundPrecision((d = l == null ? void 0 : l.weather) == null ? void 0 : d.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((w = (f = l == null ? void 0 : l.weather) == null ? void 0 : f.precip) == null ? void 0 : w.sum, 1) ?? "-", r.visibility = this.computeRoundPrecision((u = l == null ? void 0 : l.weather) == null ? void 0 : u.visibility, 0) ?? "-", r.windSpeed = this.computeRoundPrecision((g = (h = l == null ? void 0 : l.weather) == null ? void 0 : h.wind) == null ? void 0 : g.kts, 1) ?? "-", r.windDir = (T = (_ = l == null ? void 0 : l.weather) == null ? void 0 : _.wind) == null ? void 0 : T.direction, r.windLevel = this.computeRoundPrecision((M = (v = l == null ? void 0 : l.weather) == null ? void 0 : v.wind) == null ? void 0 : M.scale, 0) ?? "-", r.windGust = this.computeRoundPrecision((z = (L = l == null ? void 0 : l.weather) == null ? void 0 : L.wind) == null ? void 0 : z.gusts, 1) ?? "-", r.sigwaveHeight = this.computeRoundPrecision((D = (S = l == null ? void 0 : l.wave) == null ? void 0 : S.sig) == null ? void 0 : D.height, 1) ?? "-", r.sigwaveDir = (E = (A = l == null ? void 0 : l.wave) == null ? void 0 : A.sig) == null ? void 0 : E.direction, r.sigwavePeriod = this.computeRoundPrecision((O = (X = l == null ? void 0 : l.wave) == null ? void 0 : X.sig) == null ? void 0 : O.period, 1) ?? "-", r.windwaveHeight = this.computeRoundPrecision((ae = (q = l == null ? void 0 : l.wave) == null ? void 0 : q.wd) == null ? void 0 : ae.height, 1) ?? "-", r.windwaveDir = (pe = (re = l == null ? void 0 : l.wave) == null ? void 0 : re.wd) == null ? void 0 : pe.direction, r.windwavePeriod = this.computeRoundPrecision((J = (G = l == null ? void 0 : l.wave) == null ? void 0 : G.wd) == null ? void 0 : J.period, 1) ?? "-", r.swellHeight = this.computeRoundPrecision((oe = (K = l == null ? void 0 : l.wave) == null ? void 0 : K.swell) == null ? void 0 : oe.height, 1) ?? "-", r.swellDir = (H = (Y = l == null ? void 0 : l.wave) == null ? void 0 : Y.swell) == null ? void 0 : H.direction, r.swellPeriod = this.computeRoundPrecision((F = (ee = l == null ? void 0 : l.wave) == null ? void 0 : ee.swell) == null ? void 0 : F.period, 1) ?? "-", r.currentSpeed = this.computeRoundPrecision((ne = l == null ? void 0 : l.current) == null ? void 0 : ne.speed, 1) ?? "-", r.currentDir = (fe = l == null ? void 0 : l.current) == null ? void 0 : fe.direction, r.currentSpeed = this.computeRoundPrecision((ke = l == null ? void 0 : l.current) == null ? void 0 : ke.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 = (ze = l == null ? void 0 : l.weather) == null ? void 0 : ze.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;
1521
+ r.utc = l.utc, r.lat = t.lat, r.lng = t.lng, r.weatherUrl = (s = l.weather) == null ? void 0 : s.url, r.temp = this.computeRoundPrecision((d = l == null ? void 0 : l.weather) == null ? void 0 : d.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((w = (f = l == null ? void 0 : l.weather) == null ? void 0 : f.precip) == null ? void 0 : w.sum, 1) ?? "-", r.visibility = this.computeRoundPrecision((u = l == null ? void 0 : l.weather) == null ? void 0 : u.visibility, 0) ?? "-", r.windSpeed = this.computeRoundPrecision((g = (h = l == null ? void 0 : l.weather) == null ? void 0 : h.wind) == null ? void 0 : g.kts, 1) ?? "-", r.windDir = (T = (_ = l == null ? void 0 : l.weather) == null ? void 0 : _.wind) == null ? void 0 : T.direction, r.windLevel = this.computeRoundPrecision((M = (v = l == null ? void 0 : l.weather) == null ? void 0 : v.wind) == null ? void 0 : M.scale, 0) ?? "-", r.windGust = this.computeRoundPrecision((z = (L = l == null ? void 0 : l.weather) == null ? void 0 : L.wind) == null ? void 0 : z.gusts, 1) ?? "-", r.sigwaveHeight = this.computeRoundPrecision((D = (S = l == null ? void 0 : l.wave) == null ? void 0 : S.sig) == null ? void 0 : D.height, 1) ?? "-", r.sigwaveDir = (E = (I = l == null ? void 0 : l.wave) == null ? void 0 : I.sig) == null ? void 0 : E.direction, r.sigwavePeriod = this.computeRoundPrecision((O = (X = l == null ? void 0 : l.wave) == null ? void 0 : X.sig) == null ? void 0 : O.period, 1) ?? "-", r.windwaveHeight = this.computeRoundPrecision((ae = (q = l == null ? void 0 : l.wave) == null ? void 0 : q.wd) == null ? void 0 : ae.height, 1) ?? "-", r.windwaveDir = (pe = (re = l == null ? void 0 : l.wave) == null ? void 0 : re.wd) == null ? void 0 : pe.direction, r.windwavePeriod = this.computeRoundPrecision((J = (G = l == null ? void 0 : l.wave) == null ? void 0 : G.wd) == null ? void 0 : J.period, 1) ?? "-", r.swellHeight = this.computeRoundPrecision((oe = (K = l == null ? void 0 : l.wave) == null ? void 0 : K.swell) == null ? void 0 : oe.height, 1) ?? "-", r.swellDir = (H = (Y = l == null ? void 0 : l.wave) == null ? void 0 : Y.swell) == null ? void 0 : H.direction, r.swellPeriod = this.computeRoundPrecision((F = (ee = l == null ? void 0 : l.wave) == null ? void 0 : ee.swell) == null ? void 0 : F.period, 1) ?? "-", r.currentSpeed = this.computeRoundPrecision((ne = l == null ? void 0 : l.current) == null ? void 0 : ne.speed, 1) ?? "-", r.currentDir = (fe = l == null ? void 0 : l.current) == null ? void 0 : fe.direction, r.currentSpeed = this.computeRoundPrecision((ke = l == null ? void 0 : l.current) == null ? void 0 : ke.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 = (ze = l == null ? void 0 : l.weather) == null ? void 0 : ze.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;
1522
1522
  });
1523
1523
  },
1524
1524
  handleTide() {
@@ -1741,7 +1741,7 @@ function Vl(t, e, a, i, o, r) {
1741
1741
  }, null, 2),
1742
1742
  n("div", null, y((_ = a.port) == null ? void 0 : _.name), 1)
1743
1743
  ]),
1744
- a.simple ? (k(), I("div", jr, [
1744
+ a.simple ? (k(), A("div", jr, [
1745
1745
  (T = a.followList) != null && T.some((M) => {
1746
1746
  var L;
1747
1747
  return ((L = M.port) == null ? void 0 : L.id) === a.portId;
@@ -1789,7 +1789,7 @@ function Vl(t, e, a, i, o, r) {
1789
1789
  _: 1,
1790
1790
  __: [4]
1791
1791
  }, 8, ["onClick"])
1792
- ])) : (k(), I("div", Xr, [
1792
+ ])) : (k(), A("div", Xr, [
1793
1793
  b(l, {
1794
1794
  icon: "",
1795
1795
  density: "compact",
@@ -1817,7 +1817,7 @@ function Vl(t, e, a, i, o, r) {
1817
1817
  _: 1
1818
1818
  }),
1819
1819
  b(s, { class: "w-100" }),
1820
- a.simple ? N("", !0) : (k(), I("div", Yr, [
1820
+ a.simple ? N("", !0) : (k(), A("div", Yr, [
1821
1821
  (p = a.followList) != null && p.some((u) => {
1822
1822
  var h;
1823
1823
  return ((h = u.port) == null ? void 0 : h.id) === a.portId;
@@ -1872,7 +1872,7 @@ function Vl(t, e, a, i, o, r) {
1872
1872
  n("div", Ur, [
1873
1873
  n("div", $r, [
1874
1874
  n("div", Jr, [
1875
- (k(), I("svg", Kr, [
1875
+ (k(), A("svg", Kr, [
1876
1876
  n("use", {
1877
1877
  "xlink:href": `#icon-title-${a.theme}`
1878
1878
  }, null, 8, qr)
@@ -1899,7 +1899,7 @@ function Vl(t, e, a, i, o, r) {
1899
1899
  n("div", cl, [
1900
1900
  n("div", ml, [
1901
1901
  n("div", dl, [
1902
- (k(), I("svg", hl, [
1902
+ (k(), A("svg", hl, [
1903
1903
  n("use", {
1904
1904
  "xlink:href": `#icon-title-${a.theme}`
1905
1905
  }, null, 8, pl)
@@ -1922,7 +1922,7 @@ function Vl(t, e, a, i, o, r) {
1922
1922
  rounded: "1"
1923
1923
  }, {
1924
1924
  default: x(() => [
1925
- (k(!0), I(Te, null, De(r.dateList, (u) => (k(), W(l, {
1925
+ (k(!0), A(Te, null, De(r.dateList, (u) => (k(), W(l, {
1926
1926
  class: "text-none text-body-1 rounded bg-none flex-1-1-0",
1927
1927
  density: "compact",
1928
1928
  color: "primary",
@@ -1939,40 +1939,40 @@ function Vl(t, e, a, i, o, r) {
1939
1939
  }, 8, ["modelValue"]),
1940
1940
  n("table", ul, [
1941
1941
  n("tbody", null, [
1942
- (k(!0), I(Te, null, De(o.tableData, (u) => (k(), I("tr", {
1942
+ (k(!0), A(Te, null, De(o.tableData, (u) => (k(), A("tr", {
1943
1943
  key: u.id
1944
1944
  }, [
1945
1945
  n("th", gl, [
1946
1946
  Z(y(t.$t(`${u.key}`)) + " ", 1),
1947
- u.unit ? (k(), I("span", fl, " ( " + y(u.unit) + " )", 1)) : N("", !0)
1947
+ u.unit ? (k(), A("span", fl, " ( " + y(u.unit) + " )", 1)) : N("", !0)
1948
1948
  ]),
1949
1949
  n("td", yl, [
1950
- u.img ? (k(), I("img", {
1950
+ u.img ? (k(), A("img", {
1951
1951
  key: 0,
1952
1952
  src: u == null ? void 0 : u.value0,
1953
1953
  style: { height: "30px" }
1954
- }, null, 8, bl)) : (k(), I("span", wl, y((u == null ? void 0 : u.value0) ?? "-"), 1))
1954
+ }, null, 8, bl)) : (k(), A("span", wl, y((u == null ? void 0 : u.value0) ?? "-"), 1))
1955
1955
  ]),
1956
1956
  n("td", xl, [
1957
- u.img ? (k(), I("img", {
1957
+ u.img ? (k(), A("img", {
1958
1958
  key: 0,
1959
1959
  src: u == null ? void 0 : u.value1,
1960
1960
  style: { height: "30px" }
1961
- }, null, 8, vl)) : (k(), I("span", kl, y((u == null ? void 0 : u.value1) ?? "-"), 1))
1961
+ }, null, 8, vl)) : (k(), A("span", kl, y((u == null ? void 0 : u.value1) ?? "-"), 1))
1962
1962
  ]),
1963
1963
  n("td", _l, [
1964
- u.img ? (k(), I("img", {
1964
+ u.img ? (k(), A("img", {
1965
1965
  key: 0,
1966
1966
  src: u == null ? void 0 : u.value2,
1967
1967
  style: { height: "30px" }
1968
- }, null, 8, Ll)) : (k(), I("span", zl, y((u == null ? void 0 : u.value2) ?? "-"), 1))
1968
+ }, null, 8, Ll)) : (k(), A("span", zl, y((u == null ? void 0 : u.value2) ?? "-"), 1))
1969
1969
  ]),
1970
1970
  n("td", Cl, [
1971
- u.img ? (k(), I("img", {
1971
+ u.img ? (k(), A("img", {
1972
1972
  key: 0,
1973
1973
  src: u == null ? void 0 : u.value3,
1974
1974
  style: { height: "30px" }
1975
- }, null, 8, Ml)) : (k(), I("span", Pl, y((u == null ? void 0 : u.value3) ?? "-"), 1))
1975
+ }, null, 8, Ml)) : (k(), A("span", Pl, y((u == null ? void 0 : u.value3) ?? "-"), 1))
1976
1976
  ])
1977
1977
  ]))), 128))
1978
1978
  ])
@@ -1982,7 +1982,7 @@ function Vl(t, e, a, i, o, r) {
1982
1982
  n("div", Sl, [
1983
1983
  n("div", Tl, [
1984
1984
  n("div", Rl, [
1985
- (k(), I("svg", Dl, [
1985
+ (k(), A("svg", Dl, [
1986
1986
  n("use", {
1987
1987
  "xlink:href": `#icon-title-${a.theme}`
1988
1988
  }, null, 8, Il)
@@ -2007,7 +2007,7 @@ function Vl(t, e, a, i, o, r) {
2007
2007
  }, null, 8, ["onClick"]))
2008
2008
  ])
2009
2009
  ]),
2010
- o.showTideDetail ? (k(), I("div", {
2010
+ o.showTideDetail ? (k(), A("div", {
2011
2011
  key: 0,
2012
2012
  class: ge(["w-100 gray-bg-2 rounded", a.simple ? "pa-2" : "pa-4"])
2013
2013
  }, [
@@ -2019,9 +2019,9 @@ function Vl(t, e, a, i, o, r) {
2019
2019
  n("th", Wl, y(t.$t("time.time")) + " ( LT ) ", 1),
2020
2020
  n("th", El, y(t.$t("tide.height")) + " ( m )", 1)
2021
2021
  ]),
2022
- (k(!0), I(Te, null, De(o.tideTableData, (u, h) => {
2022
+ (k(!0), A(Te, null, De(o.tideTableData, (u, h) => {
2023
2023
  var g;
2024
- return k(), I("tr", { key: h }, [
2024
+ return k(), A("tr", { key: h }, [
2025
2025
  n("td", Bl, y(t.$t(`tide.${(g = u == null ? void 0 : u.type) == null ? void 0 : g.toLowerCase()}`)) + " " + y(t.$t("tide.tide")), 1),
2026
2026
  n("td", Zl, y(r.computeLocalTime(u == null ? void 0 : u.date, a.port, "MM-DD HH:mm")), 1),
2027
2027
  n("td", Ol, y((u == null ? void 0 : u.height) ?? "-") + " m", 1)
@@ -2133,7 +2133,7 @@ const jl = {
2133
2133
  if (e.properties.id) {
2134
2134
  this.showInfo = !0, this.hoverPort = e.properties, (i = this.marker) == null || i.remove();
2135
2135
  const r = (o = document.getElementById("idmPortInfo")) == null ? void 0 : o.cloneNode(!0);
2136
- this.marker = new be.Marker(r).setLngLat([t.lngLat.lng, t.lngLat.lat]).setOffset([0, -70]).addTo(this.map);
2136
+ this.marker = new ye.Marker(r).setLngLat([t.lngLat.lng, t.lngLat.lat]).setOffset([0, -70]).addTo(this.map);
2137
2137
  }
2138
2138
  },
2139
2139
  handleLeave() {
@@ -2147,7 +2147,7 @@ const jl = {
2147
2147
  }, Xl = { class: "port-box d-flex flex-column justify-center align-start ga-1" }, Hl = { class: "d-flex justify-start align-center text-label" }, Yl = { class: "d-flex justify-start align-center text-label" };
2148
2148
  function Ul(t, e, a, i, o, r) {
2149
2149
  const l = P("VCardText"), c = P("VCard"), s = P("PortDetail");
2150
- return k(), I("div", null, [
2150
+ return k(), A("div", null, [
2151
2151
  et(b(c, {
2152
2152
  id: "idmPortInfo",
2153
2153
  ref: "idmPortInfo"
@@ -2225,7 +2225,7 @@ const $l = /* @__PURE__ */ ie(jl, [["render", Ul], ["__scopeId", "data-v-0c0f27d
2225
2225
  }
2226
2226
  };
2227
2227
  function Kl(t, e, a, i, o, r) {
2228
- return k(), I("div");
2228
+ return k(), A("div");
2229
2229
  }
2230
2230
  const ql = /* @__PURE__ */ ie(Jl, [["render", Kl]]), Ql = {
2231
2231
  name: "IdmTimezone",
@@ -2423,7 +2423,7 @@ const ql = /* @__PURE__ */ ie(Jl, [["render", Kl]]), Ql = {
2423
2423
  }), (i = this.map.getSource(this.source)) == null || i.setData(o);
2424
2424
  const r = document.createElement("div");
2425
2425
  r.className = "v-card--variant-elevated rounded px-2 py-1 text-body-1", r.innerHTML = `<div>UTC ${t.features[0].properties.offSet}:00</div>
2426
- <div>${R.tz(R().format(), this.timeZoneName(t.features[0].properties.offSet)).format("MM-DD HH:mm")}`, this.marker = new be.Marker(r).setLngLat([t.lngLat.lng, t.lngLat.lat]).setOffset([0, -30]).addTo(this.map);
2426
+ <div>${R.tz(R().format(), this.timeZoneName(t.features[0].properties.offSet)).format("MM-DD HH:mm")}`, this.marker = new ye.Marker(r).setLngLat([t.lngLat.lng, t.lngLat.lat]).setOffset([0, -30]).addTo(this.map);
2427
2427
  }
2428
2428
  },
2429
2429
  handleLeave() {
@@ -2431,7 +2431,7 @@ const ql = /* @__PURE__ */ ie(Jl, [["render", Kl]]), Ql = {
2431
2431
  }
2432
2432
  };
2433
2433
  function en(t, e, a, i, o, r) {
2434
- return k(), I("div");
2434
+ return k(), A("div");
2435
2435
  }
2436
2436
  const tn = /* @__PURE__ */ ie(Ql, [["render", en]]), an = {
2437
2437
  name: "IdmVoluntaryReportingArea",
@@ -2526,7 +2526,7 @@ const tn = /* @__PURE__ */ ie(Ql, [["render", en]]), an = {
2526
2526
  }
2527
2527
  };
2528
2528
  function on(t, e, a, i, o, r) {
2529
- return k(), I("div");
2529
+ return k(), A("div");
2530
2530
  }
2531
2531
  const rn = /* @__PURE__ */ ie(an, [["render", on]]), ln = {
2532
2532
  name: "IdmSpecialArea",
@@ -2621,7 +2621,7 @@ const rn = /* @__PURE__ */ ie(an, [["render", on]]), ln = {
2621
2621
  }
2622
2622
  };
2623
2623
  function nn(t, e, a, i, o, r) {
2624
- return k(), I("div");
2624
+ return k(), A("div");
2625
2625
  }
2626
2626
  const sn = /* @__PURE__ */ ie(ln, [["render", nn]]), cn = {
2627
2627
  name: "IdmTerminator",
@@ -2675,7 +2675,7 @@ const sn = /* @__PURE__ */ ie(ln, [["render", nn]]), cn = {
2675
2675
  }
2676
2676
  };
2677
2677
  function mn(t, e, a, i, o, r) {
2678
- return k(), I("div");
2678
+ return k(), A("div");
2679
2679
  }
2680
2680
  const dn = /* @__PURE__ */ ie(cn, [["render", mn]]), hn = {
2681
2681
  name: "IdmWorld12nm",
@@ -3149,7 +3149,7 @@ function Qn(t, e, a, i, o, r) {
3149
3149
  n("div", zn, [
3150
3150
  n("div", Cn, [
3151
3151
  n("div", Mn, [
3152
- (k(), I("svg", Pn, [
3152
+ (k(), A("svg", Pn, [
3153
3153
  n("use", {
3154
3154
  "xlink:href": `#icon-title-${a.theme}`
3155
3155
  }, null, 8, Sn)
@@ -3175,7 +3175,7 @@ function Qn(t, e, a, i, o, r) {
3175
3175
  n("div", Bn, [
3176
3176
  n("div", Zn, [
3177
3177
  n("div", On, [
3178
- (k(), I("svg", Vn, [
3178
+ (k(), A("svg", Vn, [
3179
3179
  n("use", {
3180
3180
  "xlink:href": `#icon-title-${a.theme}`
3181
3181
  }, null, 8, jn)
@@ -3198,7 +3198,7 @@ function Qn(t, e, a, i, o, r) {
3198
3198
  rounded: "1"
3199
3199
  }, {
3200
3200
  default: x(() => [
3201
- (k(!0), I(Te, null, De(r.dateList, (w) => (k(), W(l, {
3201
+ (k(!0), A(Te, null, De(r.dateList, (w) => (k(), W(l, {
3202
3202
  class: "text-none text-body-1 rounded bg-none flex-1-1-0",
3203
3203
  density: "compact",
3204
3204
  color: "primary",
@@ -3221,9 +3221,9 @@ function Qn(t, e, a, i, o, r) {
3221
3221
  n("th", Un, y(t.$t("time.time")) + " ( LT ) ", 1),
3222
3222
  n("th", $n, y(t.$t("tide.height")) + " ( m )", 1)
3223
3223
  ]),
3224
- (k(!0), I(Te, null, De(o.tideTableData, (w, u) => {
3224
+ (k(!0), A(Te, null, De(o.tideTableData, (w, u) => {
3225
3225
  var h;
3226
- return k(), I("tr", { key: u }, [
3226
+ return k(), A("tr", { key: u }, [
3227
3227
  n("td", Jn, y(t.$t(`tide.${(h = w == null ? void 0 : w.type) == null ? void 0 : h.toLowerCase()}`)) + " " + y(t.$t("tide.tide")), 1),
3228
3228
  n("td", Kn, y(r.computeLocalTime(w == null ? void 0 : w.date, a.station, "MM-DD HH:mm")), 1),
3229
3229
  n("td", qn, y((w == null ? void 0 : w.height) ?? "-") + " m", 1)
@@ -3304,7 +3304,7 @@ const ts = {
3304
3304
  if (e.properties) {
3305
3305
  this.showInfo = !0, this.hoverStation = e.properties, this.hoverStation.name = this.locale === "en" ? e.properties.Location_EN : e.properties.Location_CN, this.hoverStation.lng = e.geometry.coordinates[0], this.hoverStation.lat = e.geometry.coordinates[1], (a = this.marker) == null || a.remove();
3306
3306
  const o = (i = document.getElementById("idmTidalInfo")) == null ? void 0 : i.cloneNode(!0);
3307
- this.marker = new be.Marker(o).setLngLat([t.lngLat.lng, t.lngLat.lat]).setOffset([0, -60]).addTo(this.map);
3307
+ this.marker = new ye.Marker(o).setLngLat([t.lngLat.lng, t.lngLat.lat]).setOffset([0, -60]).addTo(this.map);
3308
3308
  }
3309
3309
  },
3310
3310
  handleLeave() {
@@ -3318,7 +3318,7 @@ const ts = {
3318
3318
  }, as = { class: "station-box d-flex flex-column justify-center align-start ga-1" }, os = { class: "d-flex justify-start align-center" }, is = { class: "d-flex justify-start align-center" }, rs = { class: "text-label" };
3319
3319
  function ls(t, e, a, i, o, r) {
3320
3320
  const l = P("v-card-text"), c = P("v-card"), s = P("TideDetail");
3321
- return k(), I("div", null, [
3321
+ return k(), A("div", null, [
3322
3322
  et(b(c, { id: "idmTidalInfo" }, {
3323
3323
  default: x(() => [
3324
3324
  b(l, { class: "pr-8 text-body-1" }, {
@@ -3565,7 +3565,7 @@ const ds = {
3565
3565
  };
3566
3566
  function hs(t, e, a, i, o, r) {
3567
3567
  var l, c, s;
3568
- return a.simple ? N("", !0) : (k(), I("div", {
3568
+ return a.simple ? N("", !0) : (k(), A("div", {
3569
3569
  key: 0,
3570
3570
  class: "idm-lat-lng-tip-gl4 pa-2 text-caption text-right rounded",
3571
3571
  style: he({ right: o.right + "px" })
@@ -4474,7 +4474,7 @@ const ps = {
4474
4474
  if (e.properties.id) {
4475
4475
  this.showInfo = !0, this.hoverPort = e.properties, (i = this.marker) == null || i.remove();
4476
4476
  const r = (o = document.getElementById("idmFollowPortInfo")) == null ? void 0 : o.cloneNode(!0);
4477
- this.marker = new be.Marker(r).setLngLat([t.lngLat.lng, t.lngLat.lat]).setOffset([0, -70]).addTo(this.map);
4477
+ this.marker = new ye.Marker(r).setLngLat([t.lngLat.lng, t.lngLat.lat]).setOffset([0, -70]).addTo(this.map);
4478
4478
  }
4479
4479
  },
4480
4480
  handleLeave() {
@@ -4488,7 +4488,7 @@ const ps = {
4488
4488
  }, us = { class: "port-box d-flex flex-column justify-center align-start ga-1" }, gs = { class: "d-flex justify-start align-center text-label" }, fs = { class: "d-flex justify-start align-center text-label" };
4489
4489
  function ys(t, e, a, i, o, r) {
4490
4490
  const l = P("v-card-text"), c = P("v-card"), s = P("PortDetail");
4491
- return k(), I("div", null, [
4491
+ return k(), A("div", null, [
4492
4492
  et(b(c, {
4493
4493
  id: "idmFollowPortInfo",
4494
4494
  ref: "idmFollowPortInfo"
@@ -5433,7 +5433,7 @@ const ws = {
5433
5433
  if (e.properties.id) {
5434
5434
  this.showInfo = !0, this.position = e.properties, (a = this.marker) == null || a.remove();
5435
5435
  const i = document.getElementById("idmFollowPositionInfo").cloneNode(!0);
5436
- this.marker = new be.Marker(i).setLngLat([t.lngLat.lng, t.lngLat.lat]).setOffset([0, -70]).addTo(this.map);
5436
+ this.marker = new ye.Marker(i).setLngLat([t.lngLat.lng, t.lngLat.lat]).setOffset([0, -70]).addTo(this.map);
5437
5437
  }
5438
5438
  },
5439
5439
  handleLeave() {
@@ -5459,7 +5459,7 @@ function _s(t, e, a, i, o, r) {
5459
5459
  n("div", vs, [
5460
5460
  n("span", null, y(r.computePosition(o.position)), 1)
5461
5461
  ]),
5462
- o.position.remark ? (k(), I("div", ks, [
5462
+ o.position.remark ? (k(), A("div", ks, [
5463
5463
  n("span", null, y(o.position.remark ?? "-"), 1)
5464
5464
  ])) : N("", !0)
5465
5465
  ])
@@ -5700,8 +5700,8 @@ const zs = {
5700
5700
  }, Gs = { class: "text-body-2 text-center pt-2" };
5701
5701
  function Fs(t, e, a, i, o, r) {
5702
5702
  var re, pe, G, J, K, oe, Y, H, ee;
5703
- const l = P("VBtn"), c = P("VTooltip"), s = P("VCardTitle"), d = P("VCardItem"), m = P("VCheckbox"), p = P("VCardText"), f = P("VCard"), w = P("IdmPort"), u = P("IdmTideStations"), h = P("IdmLatLng"), g = P("IdmTerminator"), _ = P("IdmTimezone"), T = P("IdmAlertZone"), v = P("IdmEcaZone"), M = P("IdmWarZone"), L = P("IdmGmdssArea"), z = P("IdmLoadLine"), S = P("IdmWorldMarine"), D = P("IdmVRA"), A = P("IdmSpecialArea"), E = P("IdmWorld12nm"), X = P("IdmChinaRoute"), O = P("IdmIceAreas"), q = P("IdmFollowPort"), ae = P("IdmFollowPosition");
5704
- return k(), I("div", Cs, [
5703
+ const l = P("VBtn"), c = P("VTooltip"), s = P("VCardTitle"), d = P("VCardItem"), m = P("VCheckbox"), p = P("VCardText"), f = P("VCard"), w = P("IdmPort"), u = P("IdmTideStations"), h = P("IdmLatLng"), g = P("IdmTerminator"), _ = P("IdmTimezone"), T = P("IdmAlertZone"), v = P("IdmEcaZone"), M = P("IdmWarZone"), L = P("IdmGmdssArea"), z = P("IdmLoadLine"), S = P("IdmWorldMarine"), D = P("IdmVRA"), I = P("IdmSpecialArea"), E = P("IdmWorld12nm"), X = P("IdmChinaRoute"), O = P("IdmIceAreas"), q = P("IdmFollowPort"), ae = P("IdmFollowPosition");
5704
+ return k(), A("div", Cs, [
5705
5705
  n("div", {
5706
5706
  class: ge(["menu-bar-box transition px-1 rounded", a.simple ? "simple" : ""]),
5707
5707
  style: he({ top: a.top + 10 + "px", right: o.right + "px", paddingTop: a.paddingTop + "px", height: a.menuHeight + "px" })
@@ -5774,7 +5774,7 @@ function Fs(t, e, a, i, o, r) {
5774
5774
  b(p, { class: "pb-2" }, {
5775
5775
  default: x(() => [
5776
5776
  n("div", Ss, [
5777
- (k(!0), I(Te, null, De(o.mapFeathers, (F) => (k(), I("div", {
5777
+ (k(!0), A(Te, null, De(o.mapFeathers, (F) => (k(), A("div", {
5778
5778
  key: F.value,
5779
5779
  class: "mb-4 feather-item",
5780
5780
  onClick: (ne) => r.handleToggleMapFeather(F)
@@ -5782,12 +5782,12 @@ function Fs(t, e, a, i, o, r) {
5782
5782
  n("div", {
5783
5783
  class: ge([o.mapFeather === F.value ? "active" : "", "img-box"])
5784
5784
  }, [
5785
- F.value === "dark" ? (k(), I("img", Rs)) : F.value === "nautical" ? (k(), I("img", Ds)) : F.value === "satellite" ? (k(), I("img", Is)) : (k(), I("img", As))
5785
+ F.value === "dark" ? (k(), A("img", Rs)) : F.value === "nautical" ? (k(), A("img", Ds)) : F.value === "satellite" ? (k(), A("img", Is)) : (k(), A("img", As))
5786
5786
  ], 2),
5787
5787
  n("div", Gs, y(t.$t(`layer.${F.locale}`)), 1)
5788
5788
  ], 8, Ts))), 128))
5789
5789
  ]),
5790
- (k(!0), I(Te, null, De(o.tagLayers.filter((F) => ["graticule", "day-night", "time-zones"].includes(F.key)), (F) => (k(), W(m, {
5790
+ (k(!0), A(Te, null, De(o.tagLayers.filter((F) => ["graticule", "day-night", "time-zones"].includes(F.key)), (F) => (k(), W(m, {
5791
5791
  key: F.key,
5792
5792
  modelValue: o.checkList,
5793
5793
  "onUpdate:modelValue": e[0] || (e[0] = (ne) => o.checkList = ne),
@@ -5823,7 +5823,7 @@ function Fs(t, e, a, i, o, r) {
5823
5823
  }),
5824
5824
  b(p, { class: "py-2 mx-n1" }, {
5825
5825
  default: x(() => [
5826
- (k(!0), I(Te, null, De(o.tagLayers.filter((F) => ["ports", "alert-zones", "tidal-stations"].includes(F.key)), (F) => (k(), W(m, {
5826
+ (k(!0), A(Te, null, De(o.tagLayers.filter((F) => ["ports", "alert-zones", "tidal-stations"].includes(F.key)), (F) => (k(), W(m, {
5827
5827
  key: F.key,
5828
5828
  modelValue: o.checkList,
5829
5829
  "onUpdate:modelValue": e[1] || (e[1] = (ne) => o.checkList = ne),
@@ -5859,7 +5859,7 @@ function Fs(t, e, a, i, o, r) {
5859
5859
  }),
5860
5860
  b(p, { class: "py-2 mx-n1" }, {
5861
5861
  default: x(() => [
5862
- (k(!0), I(Te, null, De(o.tagLayers.filter((F) => !["graticule", "day-night", "time-zones", "ports", "alert-zones", "tidal-stations"].includes(F.key)), (F) => (k(), W(m, {
5862
+ (k(!0), A(Te, null, De(o.tagLayers.filter((F) => !["graticule", "day-night", "time-zones", "ports", "alert-zones", "tidal-stations"].includes(F.key)), (F) => (k(), W(m, {
5863
5863
  key: F.key,
5864
5864
  modelValue: o.checkList,
5865
5865
  "onUpdate:modelValue": e[2] || (e[2] = (ne) => o.checkList = ne),
@@ -6009,7 +6009,7 @@ function Fs(t, e, a, i, o, r) {
6009
6009
  map: a.map,
6010
6010
  area: (H = o.otherLayers) == null ? void 0 : H["voluntary-reporting-area"]
6011
6011
  }, t.$attrs), null, 16, ["map", "area"])) : N("", !0),
6012
- a.map ? (k(), W(A, $({
6012
+ a.map ? (k(), W(I, $({
6013
6013
  key: 12,
6014
6014
  map: a.map,
6015
6015
  area: (ee = o.otherLayers) == null ? void 0 : ee["special-area"]
@@ -6869,7 +6869,7 @@ const Os = {
6869
6869
  }, Vs = { key: 0 };
6870
6870
  function js(t, e, a, i, o, r) {
6871
6871
  var l;
6872
- return (l = a.factor) != null && l.active ? (k(), I("div", Vs, [
6872
+ return (l = a.factor) != null && l.active ? (k(), A("div", Vs, [
6873
6873
  n("div", {
6874
6874
  class: "legend-bars-gl4 wind",
6875
6875
  style: he({ right: o.right + "px" })
@@ -7211,7 +7211,7 @@ const $s = {
7211
7211
  }, Js = { key: 0 };
7212
7212
  function Ks(t, e, a, i, o, r) {
7213
7213
  var l;
7214
- return (l = a.factor) != null && l.active ? (k(), I("div", Js, [
7214
+ return (l = a.factor) != null && l.active ? (k(), A("div", Js, [
7215
7215
  n("div", {
7216
7216
  class: "legend-bars-gl4 current",
7217
7217
  style: he({ right: o.right + "px" })
@@ -7339,7 +7339,7 @@ const Qs = {
7339
7339
  }, ec = { key: 0 };
7340
7340
  function tc(t, e, a, i, o, r) {
7341
7341
  var l;
7342
- return (l = a.factor) != null && l.active ? (k(), I("div", ec, [
7342
+ return (l = a.factor) != null && l.active ? (k(), A("div", ec, [
7343
7343
  n("div", {
7344
7344
  class: "legend-bars-gl4 sig-wave",
7345
7345
  style: he({ right: o.right + "px" })
@@ -7606,7 +7606,7 @@ const lc = {
7606
7606
  }, nc = { key: 0 };
7607
7607
  function sc(t, e, a, i, o, r) {
7608
7608
  var l;
7609
- return (l = a.factor) != null && l.active ? (k(), I("div", nc, [
7609
+ return (l = a.factor) != null && l.active ? (k(), A("div", nc, [
7610
7610
  n("div", {
7611
7611
  class: "legend-bars-gl4 swell",
7612
7612
  style: he({ right: o.right + "px" })
@@ -7866,7 +7866,7 @@ const pc = {
7866
7866
  }, uc = { key: 0 };
7867
7867
  function gc(t, e, a, i, o, r) {
7868
7868
  var l;
7869
- return (l = a.factor) != null && l.active ? (k(), I("div", uc, [
7869
+ return (l = a.factor) != null && l.active ? (k(), A("div", uc, [
7870
7870
  n("div", {
7871
7871
  class: "legend-bars-gl4 ice-edge",
7872
7872
  style: he({ right: o.right + "px" })
@@ -7983,7 +7983,7 @@ const yc = {
7983
7983
  }, bc = { key: 0 };
7984
7984
  function wc(t, e, a, i, o, r) {
7985
7985
  var l;
7986
- return (l = a.factor) != null && l.active ? (k(), I("div", bc, [
7986
+ return (l = a.factor) != null && l.active ? (k(), A("div", bc, [
7987
7987
  n("div", {
7988
7988
  class: "legend-bars-gl4 ice-cover",
7989
7989
  style: he({ right: o.right + "px" })
@@ -8101,7 +8101,7 @@ const vc = {
8101
8101
  }, kc = { key: 0 };
8102
8102
  function _c(t, e, a, i, o, r) {
8103
8103
  var l;
8104
- return (l = a.factor) != null && l.active ? (k(), I("div", kc, [
8104
+ return (l = a.factor) != null && l.active ? (k(), A("div", kc, [
8105
8105
  n("div", {
8106
8106
  class: "legend-bars-gl4 ice-thickness",
8107
8107
  style: he({ right: o.right + "px" })
@@ -8221,7 +8221,7 @@ const zc = {
8221
8221
  }, Cc = { key: 0 };
8222
8222
  function Mc(t, e, a, i, o, r) {
8223
8223
  var l;
8224
- return (l = a.factor) != null && l.active ? (k(), I("div", Cc, [
8224
+ return (l = a.factor) != null && l.active ? (k(), A("div", Cc, [
8225
8225
  n("div", {
8226
8226
  class: "legend-bars-gl4 precip3h",
8227
8227
  style: he({ right: o.right + "px" })
@@ -8332,7 +8332,7 @@ const Sc = {
8332
8332
  }, Tc = { key: 0 };
8333
8333
  function Rc(t, e, a, i, o, r) {
8334
8334
  var l;
8335
- return (l = a.factor) != null && l.active ? (k(), I("div", Tc, [
8335
+ return (l = a.factor) != null && l.active ? (k(), A("div", Tc, [
8336
8336
  n("div", {
8337
8337
  class: "legend-bars-gl4 visibility",
8338
8338
  style: he({ right: o.right + "px" })
@@ -8444,7 +8444,7 @@ const Ic = {
8444
8444
  }, Ac = { key: 0 };
8445
8445
  function Gc(t, e, a, i, o, r) {
8446
8446
  var l;
8447
- return (l = a.factor) != null && l.active ? (k(), I("div", Ac, [
8447
+ return (l = a.factor) != null && l.active ? (k(), A("div", Ac, [
8448
8448
  n("div", {
8449
8449
  class: "legend-bars-gl4 water-temp",
8450
8450
  style: he({ right: o.right + "px" })
@@ -8567,7 +8567,7 @@ const Nc = {
8567
8567
  }, Wc = { key: 0 };
8568
8568
  function Ec(t, e, a, i, o, r) {
8569
8569
  var l;
8570
- return (l = a.factor) != null && l.active ? (k(), I("div", Wc, [
8570
+ return (l = a.factor) != null && l.active ? (k(), A("div", Wc, [
8571
8571
  n("div", {
8572
8572
  class: "legend-bars-gl4 temp",
8573
8573
  style: he({ right: o.right + "px" })
@@ -8917,8 +8917,8 @@ const Zc = {
8917
8917
  );
8918
8918
  const L = await Promise.all(M);
8919
8919
  this.weatherLayers = {}, L.map((z) => {
8920
- var A, E, X, O;
8921
- const S = ((A = z == null ? void 0 : z.data) == null ? void 0 : A.data) || (z == null ? void 0 : z.data);
8920
+ var I, E, X, O;
8921
+ const S = ((I = z == null ? void 0 : z.data) == null ? void 0 : I.data) || (z == null ? void 0 : z.data);
8922
8922
  let D = (X = (E = z == null ? void 0 : z.config) == null ? void 0 : E.headers) == null ? void 0 : X.key;
8923
8923
  D && S && (this.weatherLayers[D] = {
8924
8924
  raw: S,
@@ -9018,11 +9018,11 @@ const Zc = {
9018
9018
  if (L > u && L < h && (!(o <= this.zoom) || L % (o < 2 ? 10 : o < 4 ? 5 : 3) === 0)) {
9019
9019
  const z = v[L].lng;
9020
9020
  f > w ? z.forEach((S, D) => {
9021
- var A, E, X, O, q, ae;
9021
+ var I, E, X, O, q, ae;
9022
9022
  if (o < 2) {
9023
9023
  if ((S >= 0 && S <= 360 || S >= -360 && S <= 0) && S % 10 === 0) {
9024
9024
  const re = B.point([S, L], {
9025
- val: ((A = v[L].val) == null ? void 0 : A[D]) || ((E = v[L].dir) == null ? void 0 : E[D]),
9025
+ val: ((I = v[L].val) == null ? void 0 : I[D]) || ((E = v[L].dir) == null ? void 0 : E[D]),
9026
9026
  spd: (X = v[L].spd) == null ? void 0 : X[D]
9027
9027
  });
9028
9028
  T.push(re);
@@ -9035,11 +9035,11 @@ const Zc = {
9035
9035
  T.push(re);
9036
9036
  }
9037
9037
  }) : z.forEach((S, D) => {
9038
- var A, E, X, O, q, ae;
9038
+ var I, E, X, O, q, ae;
9039
9039
  if (f < 2) {
9040
9040
  if ((S >= 0 && S <= 360 || S >= -360 && S <= 0) && S % 10 === 0) {
9041
9041
  const re = B.point([S, L], {
9042
- val: ((A = v[L].val) == null ? void 0 : A[D]) || ((E = v[L].dir) == null ? void 0 : E[D]),
9042
+ val: ((I = v[L].val) == null ? void 0 : I[D]) || ((E = v[L].dir) == null ? void 0 : E[D]),
9043
9043
  spd: (X = v[L].spd) == null ? void 0 : X[D]
9044
9044
  });
9045
9045
  T.push(re);
@@ -9082,11 +9082,11 @@ const Zc = {
9082
9082
  if (L > u && L < h && (!(o <= this.zoom) || L % (o < 2 ? 10 : o < 4 ? 5 : 3) === 0)) {
9083
9083
  const z = v[L].lng;
9084
9084
  f > w ? z.forEach((S, D) => {
9085
- var A, E, X, O, q, ae;
9085
+ var I, E, X, O, q, ae;
9086
9086
  if (o < 2) {
9087
9087
  if ((S >= 0 && S <= 360 || S >= -360 && S <= 0) && S % 10 === 0) {
9088
9088
  const re = B.point([S, L], {
9089
- val: ((A = v[L].val) == null ? void 0 : A[D]) || ((E = v[L].dir) == null ? void 0 : E[D]),
9089
+ val: ((I = v[L].val) == null ? void 0 : I[D]) || ((E = v[L].dir) == null ? void 0 : E[D]),
9090
9090
  spd: (X = v[L].spd) == null ? void 0 : X[D]
9091
9091
  });
9092
9092
  T.push(re);
@@ -9099,11 +9099,11 @@ const Zc = {
9099
9099
  T.push(re);
9100
9100
  }
9101
9101
  }) : z.forEach((S, D) => {
9102
- var A, E, X, O, q, ae;
9102
+ var I, E, X, O, q, ae;
9103
9103
  if (f < 2) {
9104
9104
  if ((S >= 0 && S <= 360 || S >= -360 && S <= 0) && S % 10 === 0) {
9105
9105
  const re = B.point([S, L], {
9106
- val: ((A = v[L].val) == null ? void 0 : A[D]) || ((E = v[L].dir) == null ? void 0 : E[D]),
9106
+ val: ((I = v[L].val) == null ? void 0 : I[D]) || ((E = v[L].dir) == null ? void 0 : E[D]),
9107
9107
  spd: (X = v[L].spd) == null ? void 0 : X[D]
9108
9108
  });
9109
9109
  T.push(re);
@@ -9124,9 +9124,9 @@ const Zc = {
9124
9124
  const z = [];
9125
9125
  for (const S in (m = M.raw) == null ? void 0 : m.Polygon) {
9126
9126
  const D = M.raw.Polygon[S];
9127
- for (const A of D)
9127
+ for (const I of D)
9128
9128
  z.push(
9129
- B.polygon(A, {
9129
+ B.polygon(I, {
9130
9130
  val: Number(S)
9131
9131
  })
9132
9132
  );
@@ -9143,11 +9143,11 @@ const Zc = {
9143
9143
  if (M > u && M < h && (!(o <= this.zoom) || M % (o < 2 ? 10 : o < 4 ? 5 : 3) === 0)) {
9144
9144
  const L = v[M].lng;
9145
9145
  f > w ? L.forEach((z, S) => {
9146
- var D, A, E, X;
9146
+ var D, I, E, X;
9147
9147
  if (o < 2) {
9148
9148
  if ((z >= 0 && z <= 360 || z >= -360 && z <= 0) && z % 10 === 0) {
9149
9149
  const O = B.point([z, M], {
9150
- dir: ((D = v[M].val) == null ? void 0 : D[S]) || ((A = v[M].dir) == null ? void 0 : A[S]),
9150
+ dir: ((D = v[M].val) == null ? void 0 : D[S]) || ((I = v[M].dir) == null ? void 0 : I[S]),
9151
9151
  spd: v[M].spd[S]
9152
9152
  });
9153
9153
  T.push(O);
@@ -9160,11 +9160,11 @@ const Zc = {
9160
9160
  T.push(O);
9161
9161
  }
9162
9162
  }) : L.forEach((z, S) => {
9163
- var D, A, E, X;
9163
+ var D, I, E, X;
9164
9164
  if (o < 2) {
9165
9165
  if ((z >= 0 && z <= 360 || z >= -360 && z <= 0) && z % 10 === 0) {
9166
9166
  const O = B.point([z, M], {
9167
- dir: ((D = v[M].val) == null ? void 0 : D[S]) || ((A = v[M].dir) == null ? void 0 : A[S]),
9167
+ dir: ((D = v[M].val) == null ? void 0 : D[S]) || ((I = v[M].dir) == null ? void 0 : I[S]),
9168
9168
  spd: v[M].spd[S]
9169
9169
  });
9170
9170
  T.push(O);
@@ -9295,9 +9295,9 @@ const Zc = {
9295
9295
  class: "d-flex justify-start align-center ga-4 pl-6"
9296
9296
  }, 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" }, pm = { class: "text-body-1 font-weight-medium" }, um = { 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" }, Lm = { class: "text-body-2 text-label" }, zm = { class: "text-body-2 text-label mb-3" };
9297
9297
  function Cm(t, e, a, i, o, r) {
9298
- var J, K, oe, Y, H, ee, F, ne, fe, ke, ze, me, ye, _e, Re;
9299
- const l = P("VBtn"), c = P("VTooltip"), s = P("VCol"), d = P("VRow"), m = P("VCardText"), p = P("VDivider"), f = P("VCard"), w = P("VSwitch"), u = P("VBtnToggle"), h = P("VCardTitle"), g = P("VCardItem"), _ = P("VCheckbox"), T = P("VRadio"), v = P("IdmWindBarb"), M = P("IdmSigWaveHeight"), L = P("IdmCurrentDirection"), z = P("IdmPrmsl"), S = P("IdmWindParticle"), D = P("IdmCurrentParticle"), A = P("IdmWave"), E = P("IdmSwell"), X = P("IdmIceEdge"), O = P("IdmIceCover"), q = P("IdmIceThickness"), ae = P("IdmPrecip3h"), re = P("IdmVisibility"), pe = P("IdmWaterTemp"), G = P("IdmTemp");
9300
- return k(), I("div", Oc, [
9298
+ var J, K, oe, Y, H, ee, F, ne, fe, ke, ze, me, be, _e, Re;
9299
+ const l = P("VBtn"), c = P("VTooltip"), s = P("VCol"), d = P("VRow"), m = P("VCardText"), p = P("VDivider"), f = P("VCard"), w = P("VSwitch"), u = P("VBtnToggle"), h = P("VCardTitle"), g = P("VCardItem"), _ = P("VCheckbox"), T = P("VRadio"), v = P("IdmWindBarb"), M = P("IdmSigWaveHeight"), L = P("IdmCurrentDirection"), z = P("IdmPrmsl"), S = P("IdmWindParticle"), D = P("IdmCurrentParticle"), I = P("IdmWave"), E = P("IdmSwell"), X = P("IdmIceEdge"), O = P("IdmIceCover"), q = P("IdmIceThickness"), ae = P("IdmPrecip3h"), re = P("IdmVisibility"), pe = P("IdmWaterTemp"), G = P("IdmTemp");
9300
+ return k(), A("div", Oc, [
9301
9301
  n("div", {
9302
9302
  class: "menu-bar-box transition pa-1",
9303
9303
  style: he({ top: a.top + a.paddingTop + 46 + "px", right: o.right + "px" })
@@ -9328,7 +9328,7 @@ function Cm(t, e, a, i, o, r) {
9328
9328
  _: 1
9329
9329
  }, 8, ["text", "open-on-focus", "open-on-hover"])
9330
9330
  ], 4),
9331
- r.showTipMenu ? (k(), I("div", Vc, [
9331
+ r.showTipMenu ? (k(), A("div", Vc, [
9332
9332
  n("div", {
9333
9333
  class: ge(["menu-bar-box pa-1 rounded", a.simple ? "simple" : ""]),
9334
9334
  style: he({ right: o.right + "px", top: a.simple ? "394px" : "490px" })
@@ -9374,7 +9374,7 @@ function Cm(t, e, a, i, o, r) {
9374
9374
  e[11] || (e[11] = n("div", { class: "text-body-2 font-weight-600 mb-2" }, "Wind Level", -1)),
9375
9375
  b(d, { class: "ma-0 ml-n1 text-body-2" }, {
9376
9376
  default: x(() => [
9377
- (k(!0), I(Te, null, De(o.legend.barbs, (Q, de) => (k(), W(s, {
9377
+ (k(!0), A(Te, null, De(o.legend.barbs, (Q, de) => (k(), W(s, {
9378
9378
  key: Q,
9379
9379
  cols: "6",
9380
9380
  class: "d-flex flex-row justify-start align-center py-1 px-0 ma-0"
@@ -9406,14 +9406,14 @@ function Cm(t, e, a, i, o, r) {
9406
9406
  e[12] || (e[12] = n("div", { class: "text-body-2 font-weight-600 mb-2" }, "Wave Height", -1)),
9407
9407
  b(d, { class: "ma-0" }, {
9408
9408
  default: x(() => [
9409
- (k(!0), I(Te, null, De(o.legend.sigWaveHeight, (Q, de) => (k(), W(s, {
9409
+ (k(!0), A(Te, null, De(o.legend.sigWaveHeight, (Q, de) => (k(), W(s, {
9410
9410
  key: de,
9411
9411
  cols: "12",
9412
9412
  class: "d-flex flex-row justify-start align-center py-1 px-0 ma-0"
9413
9413
  }, {
9414
9414
  default: x(() => [
9415
9415
  n("div", Hc, [
9416
- de === 0 ? (k(), I("div", Yc)) : (k(), I("div", {
9416
+ de === 0 ? (k(), A("div", Yc)) : (k(), A("div", {
9417
9417
  key: 1,
9418
9418
  style: he({ width: "24px", height: "12px", background: Q.color })
9419
9419
  }, null, 4)),
@@ -9438,7 +9438,7 @@ function Cm(t, e, a, i, o, r) {
9438
9438
  e[13] || (e[13] = n("div", { class: "text-body-2 font-weight-600 mb-2" }, "Current", -1)),
9439
9439
  b(d, { class: "ma-0 ml-n4" }, {
9440
9440
  default: x(() => [
9441
- (k(!0), I(Te, null, De(o.legend.current, (Q, de) => (k(), W(s, {
9441
+ (k(!0), A(Te, null, De(o.legend.current, (Q, de) => (k(), W(s, {
9442
9442
  key: de,
9443
9443
  cols: "12",
9444
9444
  class: "d-flex flex-row justify-center align-center py-1 px-0 ma-0"
@@ -9500,7 +9500,7 @@ function Cm(t, e, a, i, o, r) {
9500
9500
  __: [14]
9501
9501
  }, 8, ["onClick"])
9502
9502
  ], 2),
9503
- a.simple ? (k(), I("div", em, [
9503
+ a.simple ? (k(), A("div", em, [
9504
9504
  n("div", null, y(t.$t("weather.forecastModel")), 1),
9505
9505
  b(u, {
9506
9506
  modelValue: o.currentModel,
@@ -9564,7 +9564,7 @@ function Cm(t, e, a, i, o, r) {
9564
9564
  }),
9565
9565
  b(m, { class: "py-2 mx-n1" }, {
9566
9566
  default: x(() => [
9567
- (k(!0), I(Te, null, De(o.tagLayers.filter((Q) => Q.overlays), (Q) => (k(), W(_, {
9567
+ (k(!0), A(Te, null, De(o.tagLayers.filter((Q) => Q.overlays), (Q) => (k(), W(_, {
9568
9568
  key: Q.key,
9569
9569
  modelValue: o.checkList,
9570
9570
  "onUpdate:modelValue": e[3] || (e[3] = (de) => o.checkList = de),
@@ -9601,7 +9601,7 @@ function Cm(t, e, a, i, o, r) {
9601
9601
  }),
9602
9602
  b(m, { class: "py-2 mx-n1" }, {
9603
9603
  default: x(() => [
9604
- (k(!0), I(Te, null, De(o.tagLayers.filter((Q) => !Q.overlays), (Q) => (k(), I(Te, {
9604
+ (k(!0), A(Te, null, De(o.tagLayers.filter((Q) => !Q.overlays), (Q) => (k(), A(Te, {
9605
9605
  key: Q.key
9606
9606
  }, [
9607
9607
  b(T, {
@@ -9617,7 +9617,7 @@ function Cm(t, e, a, i, o, r) {
9617
9617
  "hide-details": "",
9618
9618
  onClick: (de) => o.renderKey = o.renderKey === Q.key ? "" : Q.key
9619
9619
  }, null, 8, ["modelValue", "label", "value", "disabled", "onClick"]),
9620
- o.renderKey === "wind-particle" && Q.key === "wind-particle" ? (k(), I("div", tm, [
9620
+ o.renderKey === "wind-particle" && Q.key === "wind-particle" ? (k(), A("div", tm, [
9621
9621
  n("span", null, y(t.$t("weather.particleAnimatiom")), 1),
9622
9622
  b(w, {
9623
9623
  modelValue: o.showWindParticle,
@@ -9632,7 +9632,7 @@ function Cm(t, e, a, i, o, r) {
9632
9632
  "hide-details": ""
9633
9633
  }, null, 8, ["modelValue"])
9634
9634
  ])) : N("", !0),
9635
- o.renderKey === "current-particle" && Q.key === "current-particle" ? (k(), I("div", am, [
9635
+ o.renderKey === "current-particle" && Q.key === "current-particle" ? (k(), A("div", am, [
9636
9636
  n("span", null, y(t.$t("weather.particleAnimatiom")), 1),
9637
9637
  b(w, {
9638
9638
  modelValue: o.showCurrentParticle,
@@ -9841,7 +9841,7 @@ function Cm(t, e, a, i, o, r) {
9841
9841
  "menu-toggle": a.menuToggle,
9842
9842
  simple: a.simple
9843
9843
  }, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle", "simple"])) : N("", !0),
9844
- a.map ? (k(), W(A, $({
9844
+ a.map ? (k(), W(I, $({
9845
9845
  key: 7,
9846
9846
  viewport: o.viewport,
9847
9847
  factor: (F = o.weatherLayers) == null ? void 0 : F["sig-wave"],
@@ -9888,7 +9888,7 @@ function Cm(t, e, a, i, o, r) {
9888
9888
  a.map ? (k(), W(re, $({
9889
9889
  key: 13,
9890
9890
  viewport: o.viewport,
9891
- factor: (ye = o.weatherLayers) == null ? void 0 : ye.visibility,
9891
+ factor: (be = o.weatherLayers) == null ? void 0 : be.visibility,
9892
9892
  "menu-toggle": a.menuToggle,
9893
9893
  simple: a.simple
9894
9894
  }, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle", "simple"])) : N("", !0),
@@ -10255,7 +10255,7 @@ let Ii = class {
10255
10255
  }), o;
10256
10256
  }
10257
10257
  static pickHourly(e, a) {
10258
- var i, o, r, l, c, s, d, m, p, f, w, u, h, g, _, T, v, M, L, z, S, D, A, E, X, O, q, ae, re, pe, G, J, K, oe, Y, H, ee, F, ne, fe, ke, ze, me, ye, _e, Re, Q, de, He, Ee, Me, Ae;
10258
+ var i, o, r, l, c, s, d, m, p, f, w, u, h, g, _, T, v, M, L, z, S, D, I, E, X, O, q, ae, re, pe, G, J, K, oe, Y, H, ee, F, ne, fe, ke, ze, me, be, _e, Re, Q, de, He, Ee, Me, Ae;
10259
10259
  const le = typeof a == "string" ? R(a) : a, Pe = e == null ? void 0 : e.weather, ue = e == null ? void 0 : e.marine, we = R((o = (i = Pe == null ? void 0 : Pe[0]) == null ? void 0 : i.hourly) == null ? void 0 : o.date).utc(), Ze = we.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"), Ue = we.clone().add((m = (d = (s = Pe == null ? void 0 : Pe[0]) == null ? void 0 : s.hourly) == null ? void 0 : d.time) == null ? void 0 : m.at(-1), "h"), Ye = [];
10260
10260
  if (le.isBetween(Ze, Ue, "millisecond", "[]")) {
10261
10261
  const U = le.utc().diff(Ze, "h", !1);
@@ -10288,7 +10288,7 @@ let Ii = class {
10288
10288
  code: (S = se == null ? void 0 : se.weather_code) == null ? void 0 : S.at(U),
10289
10289
  visibility: this.m2nm((D = se == null ? void 0 : se.visibility) == null ? void 0 : D.at(U)),
10290
10290
  wind: {
10291
- speed: (A = se == null ? void 0 : se.wind_speed_10m) == null ? void 0 : A.at(U),
10291
+ speed: (I = se == null ? void 0 : se.wind_speed_10m) == null ? void 0 : I.at(U),
10292
10292
  kts: (E = se == null ? void 0 : se.wind_speed_10m) == null ? void 0 : E.at(U),
10293
10293
  degree: (X = se == null ? void 0 : se.wind_direction_10m) == null ? void 0 : X.at(U),
10294
10294
  bearing: ((O = se == null ? void 0 : se.wind_direction_10m) == null ? void 0 : O.at(U)) !== null ? (((q = se == null ? void 0 : se.wind_direction_10m) == null ? void 0 : q.at(U)) + 180) % 360 : null,
@@ -10326,7 +10326,7 @@ let Ii = class {
10326
10326
  wd: {
10327
10327
  height: (ke = te == null ? void 0 : te.wind_wave_height) == null ? void 0 : ke.at(U),
10328
10328
  degree: (ze = te == null ? void 0 : te.wind_wave_direction) == null ? void 0 : ze.at(U),
10329
- bearing: ((me = te == null ? void 0 : te.wind_wave_direction) == null ? void 0 : me.at(U)) !== null ? (((ye = te == null ? void 0 : te.wind_wave_direction) == null ? void 0 : ye.at(U)) + 180) % 360 : null,
10329
+ bearing: ((me = te == null ? void 0 : te.wind_wave_direction) == null ? void 0 : me.at(U)) !== null ? (((be = te == null ? void 0 : te.wind_wave_direction) == null ? void 0 : be.at(U)) + 180) % 360 : null,
10330
10330
  period: (_e = te == null ? void 0 : te.wind_wave_period) == null ? void 0 : _e.at(U),
10331
10331
  peakPeriod: (Re = te == null ? void 0 : te.wind_wave_peak_period) == null ? void 0 : Re.at(U)
10332
10332
  }
@@ -10368,7 +10368,7 @@ let Ii = class {
10368
10368
  };
10369
10369
  }
10370
10370
  static pickDaily(e, a) {
10371
- var i, o, r, l, c, s, d, m, p, f, w, u, h, g, _, T, v, M, L, z, S, D, A, E, X, O, q, ae, re, pe, G, J, K, oe, Y, H, ee, F, ne, fe, ke, ze, me, ye;
10371
+ var i, o, r, l, c, s, d, m, p, f, w, u, h, g, _, T, v, M, L, z, S, D, I, E, X, O, q, ae, re, pe, G, J, K, oe, Y, H, ee, F, ne, fe, ke, ze, me, be;
10372
10372
  const _e = typeof a == "string" ? R(a) : a, Re = e == null ? void 0 : e.weather, Q = e == null ? void 0 : e.marine, de = R((r = (o = (i = Re == null ? void 0 : Re[0]) == null ? void 0 : i.daily) == null ? void 0 : o.time) == null ? void 0 : r.at(0)), He = R((s = (c = (l = Re == null ? void 0 : Re[0]) == null ? void 0 : l.daily) == null ? void 0 : c.time) == null ? void 0 : s.at(-1)), Ee = [];
10373
10373
  if (_e.isBetween(de, He, "millisecond", "[]")) {
10374
10374
  let Me, Ae;
@@ -10402,7 +10402,7 @@ let Ii = class {
10402
10402
  },
10403
10403
  wind: {
10404
10404
  speed: (D = ue.wind_speed_10m_max) == null ? void 0 : D.at(le),
10405
- kts: (A = ue.wind_speed_10m_max) == null ? void 0 : A.at(le),
10405
+ kts: (I = ue.wind_speed_10m_max) == null ? void 0 : I.at(le),
10406
10406
  degree: (E = ue.wind_direction_10m_dominant) == null ? void 0 : E.at(le),
10407
10407
  gusts: (X = ue.wind_gusts_10m_max) == null ? void 0 : X.at(le),
10408
10408
  bearing: ((O = ue.wind_direction_10m_dominant) == null ? void 0 : O.at(le)) !== null ? (((q = ue.wind_direction_10m_dominant) == null ? void 0 : q.at(le)) + 180) % 360 : null
@@ -10440,7 +10440,7 @@ let Ii = class {
10440
10440
  degree: (fe = we.wind_wave_direction_dominant) == null ? void 0 : fe.at(le),
10441
10441
  period: (ke = we.wind_wave_period_max) == null ? void 0 : ke.at(le),
10442
10442
  peakPeriod: (ze = we.wind_wave_peak_period_max) == null ? void 0 : ze.at(le),
10443
- bearing: ((me = we.wind_wave_direction_dominant) == null ? void 0 : me.at(le)) !== null ? (((ye = we.wind_wave_direction_dominant) == null ? void 0 : ye.at(le)) + 180) % 360 : null
10443
+ bearing: ((me = we.wind_wave_direction_dominant) == null ? void 0 : me.at(le)) !== null ? (((be = we.wind_wave_direction_dominant) == null ? void 0 : be.at(le)) + 180) % 360 : null
10444
10444
  }
10445
10445
  }
10446
10446
  }, Ae.wave = this.parseWave(Ae.wave, Me == null ? void 0 : Me.wind), Object.assign(Ee[Pe], Ae), Pe++;
@@ -11330,7 +11330,7 @@ const Pm = {
11330
11330
  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((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)), (e = this.map) == null || e.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();
11331
11331
  },
11332
11332
  handleDateChange() {
11333
- var t, e, a, i, o, r, l, c, s, d, m, p, f, w, u, h, g, _, T, v, M, L, z, S, D, A, E, X, O, q, ae, re, pe, G, J;
11333
+ var t, e, a, i, o, r, l, c, s, d, m, p, f, w, u, h, g, _, T, v, M, L, z, S, D, I, E, X, O, q, ae, re, pe, G, J;
11334
11334
  if ((t = this.interpolateMarkers) == null || t.forEach((K) => K == null ? void 0 : K.remove()), (e = this.interpolateData) != null && e.length && this.tropicals.active) {
11335
11335
  const K = R(this.realTime).utc().set({ minute: 0, second: 0, millisecond: 0 }), oe = this.interpolateData.filter((F) => F.properties.date === (K == null ? void 0 : K.format()) && !F.properties.disabled), Y = this.handleComputePolygons(oe), H = B.featureCollection([...oe]);
11336
11336
  Y.forEach((F) => {
@@ -11361,17 +11361,17 @@ const Pm = {
11361
11361
  for (const F of oe)
11362
11362
  if (!F.properties.disabled) {
11363
11363
  if (!ee.some((me) => {
11364
- var ye;
11365
- return me.properties.name === ((ye = F.properties) == null ? void 0 : ye.name);
11364
+ var be;
11365
+ return me.properties.name === ((be = F.properties) == null ? void 0 : be.name);
11366
11366
  })) {
11367
- const me = ((c = (l = this.tropicals.data.features.find((ye) => {
11367
+ const me = ((c = (l = this.tropicals.data.features.find((be) => {
11368
11368
  var _e;
11369
- return ye.properties.name === ((_e = F.properties) == null ? void 0 : _e.name);
11369
+ return be.properties.name === ((_e = F.properties) == null ? void 0 : _e.name);
11370
11370
  })) == null ? void 0 : l.properties) == null ? void 0 : c.nameCn) || ((s = F.properties) == null ? void 0 : s.Name) || "-";
11371
- F.properties.nameCn = me, F.properties.Name = ((m = (d = F.properties.name) == null ? void 0 : d.trim()) == null ? void 0 : m.replace(/^./, (ye) => ye.toUpperCase())) || F.properties.nameCn, ee.push(F);
11371
+ F.properties.nameCn = me, F.properties.Name = ((m = (d = F.properties.name) == null ? void 0 : d.trim()) == null ? void 0 : m.replace(/^./, (be) => be.toUpperCase())) || F.properties.nameCn, ee.push(F);
11372
11372
  }
11373
11373
  let ne = this.Theme.current.value.colors["tropicals-ty"];
11374
- ((f = (p = F.properties) == null ? void 0 : p.wind) == null ? void 0 : f.kts) < 32 || !((u = (w = F.properties) == null ? void 0 : w.wind) != null && u.kts) ? ne = this.Theme.current.value.colors["tropicals-td"] : ((g = (h = F.properties) == null ? void 0 : h.wind) == null ? void 0 : g.kts) >= 32 && ((T = (_ = F.properties) == null ? void 0 : _.wind) == null ? void 0 : T.kts) < 47 ? ne = this.Theme.current.value.colors["tropicals-ts"] : ((M = (v = F.properties) == null ? void 0 : v.wind) == null ? void 0 : M.kts) >= 47 && ((z = (L = F.properties) == null ? void 0 : L.wind) == null ? void 0 : z.kts) < 63 ? ne = this.Theme.current.value.colors["tropicals-sts"] : ((D = (S = F.properties) == null ? void 0 : S.wind) == null ? void 0 : D.kts) >= 63 && ((E = (A = F.properties) == null ? void 0 : A.wind) == null ? void 0 : E.kts) < 79 ? ne = this.Theme.current.value.colors["tropicals-ty"] : ((O = (X = F.properties) == null ? void 0 : X.wind) == null ? void 0 : O.kts) >= 79 && ((ae = (q = F.properties) == null ? void 0 : q.wind) == null ? void 0 : ae.kts) < 94 ? ne = this.Theme.current.value.colors["tropicals-sty"] : ((pe = (re = F.properties) == null ? void 0 : re.wind) == null ? void 0 : pe.kts) >= 94 ? ne = this.Theme.current.value.colors["tropicals-super-ty"] : ne = this.Theme.current.value.colors["tropicals-ty"];
11374
+ ((f = (p = F.properties) == null ? void 0 : p.wind) == null ? void 0 : f.kts) < 32 || !((u = (w = F.properties) == null ? void 0 : w.wind) != null && u.kts) ? ne = this.Theme.current.value.colors["tropicals-td"] : ((g = (h = F.properties) == null ? void 0 : h.wind) == null ? void 0 : g.kts) >= 32 && ((T = (_ = F.properties) == null ? void 0 : _.wind) == null ? void 0 : T.kts) < 47 ? ne = this.Theme.current.value.colors["tropicals-ts"] : ((M = (v = F.properties) == null ? void 0 : v.wind) == null ? void 0 : M.kts) >= 47 && ((z = (L = F.properties) == null ? void 0 : L.wind) == null ? void 0 : z.kts) < 63 ? ne = this.Theme.current.value.colors["tropicals-sts"] : ((D = (S = F.properties) == null ? void 0 : S.wind) == null ? void 0 : D.kts) >= 63 && ((E = (I = F.properties) == null ? void 0 : I.wind) == null ? void 0 : E.kts) < 79 ? ne = this.Theme.current.value.colors["tropicals-ty"] : ((O = (X = F.properties) == null ? void 0 : X.wind) == null ? void 0 : O.kts) >= 79 && ((ae = (q = F.properties) == null ? void 0 : q.wind) == null ? void 0 : ae.kts) < 94 ? ne = this.Theme.current.value.colors["tropicals-sty"] : ((pe = (re = F.properties) == null ? void 0 : re.wind) == null ? void 0 : pe.kts) >= 94 ? ne = this.Theme.current.value.colors["tropicals-super-ty"] : ne = this.Theme.current.value.colors["tropicals-ty"];
11375
11375
  const fe = `<svg t="1719918955501"
11376
11376
  class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" p-id="18382"
11377
11377
  xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200">
@@ -11388,7 +11388,7 @@ const Pm = {
11388
11388
  fill="#ffffff" p-id="18386"></path>
11389
11389
  </svg>`, ke = document.createElement("div");
11390
11390
  ke.className = "idm-tropical-gl4-hourly-marker", ke.innerHTML = `<div class="${F.geometry.coordinates[1] >= 0 ? "center north" : "center south"}">${fe}</div>`;
11391
- const ze = new be.Marker(ke).setLngLat(F.geometry.coordinates).addTo(this.map);
11391
+ const ze = new ye.Marker(ke).setLngLat(F.geometry.coordinates).addTo(this.map);
11392
11392
  this.interpolateMarkers.push(ze);
11393
11393
  }
11394
11394
  this.$emit("tropicalCenterPoints", ee);
@@ -11420,7 +11420,7 @@ const Pm = {
11420
11420
  drawTropicalsInfoMaker(t) {
11421
11421
  this.$nextTick(() => {
11422
11422
  const e = document.getElementById("idm-tropical-gl4-info");
11423
- this.activeTropicalsMarker ? this.activeTropicalsMarker.setLngLat(t).setOffset([220, 0]) : this.activeTropicalsMarker = new be.Marker(e).setLngLat(t).setOffset([220, 0]).addTo(this.map);
11423
+ this.activeTropicalsMarker ? this.activeTropicalsMarker.setLngLat(t).setOffset([220, 0]) : this.activeTropicalsMarker = new ye.Marker(e).setLngLat(t).setOffset([220, 0]).addTo(this.map);
11424
11424
  });
11425
11425
  },
11426
11426
  handleCloseInfoMarker() {
@@ -11520,7 +11520,7 @@ const Pm = {
11520
11520
  );
11521
11521
  this.hoverPoint && (this.hoverPoint.lng = a.geometry.coordinates[0], this.hoverPoint.lat = a.geometry.coordinates[1], this.hoverPoint.update = (c = (l = i == null ? void 0 : i[0]) == null ? void 0 : l.properties) == null ? void 0 : c.date, (s = this.hoverMarker) == null || s.remove(), this.showHoverPoint = !0, this.$nextTick(() => {
11522
11522
  const d = document.getElementById("tropicalHoverMarkerInfo").cloneNode(!0);
11523
- this.hoverMarker = new be.Marker(d).setLngLat(a.geometry.coordinates).setOffset([160, 0]).addTo(this.map);
11523
+ this.hoverMarker = new ye.Marker(d).setLngLat(a.geometry.coordinates).setOffset([160, 0]).addTo(this.map);
11524
11524
  }));
11525
11525
  },
11526
11526
  handleLeave() {
@@ -11568,7 +11568,7 @@ const Pm = {
11568
11568
  }, lh = { class: "text-label pr-1" }, nh = { class: "d-flex justify-start align-center" }, sh = { class: "text-label pr-1" };
11569
11569
  function ch(t, e, a, i, o, r) {
11570
11570
  const l = P("VBtn"), c = P("VTooltip"), s = P("VCardText"), d = P("VDivider"), m = P("VCardActions"), p = P("VCard"), f = P("v-card-title"), w = P("v-divider");
11571
- return k(), I("div", Sm, [
11571
+ return k(), A("div", Sm, [
11572
11572
  n("div", {
11573
11573
  class: "menu-bar-box transition pa-1",
11574
11574
  style: he({ top: a.top + a.paddingTop + 86 + "px", right: o.right + "px" })
@@ -11599,7 +11599,7 @@ function ch(t, e, a, i, o, r) {
11599
11599
  _: 1
11600
11600
  }, 8, ["text", "open-on-focus", "open-on-hover"])
11601
11601
  ], 4),
11602
- o.showTropicalsInfo && !t.$attrs.hideTropicalsLegend ? (k(), I("div", {
11602
+ o.showTropicalsInfo && !t.$attrs.hideTropicalsLegend ? (k(), A("div", {
11603
11603
  key: 0,
11604
11604
  ref: "tropicalsInfo",
11605
11605
  id: "idm-tropical-gl4-info",
@@ -11612,11 +11612,11 @@ function ch(t, e, a, i, o, r) {
11612
11612
  default: x(() => [
11613
11613
  b(s, null, {
11614
11614
  default: x(() => {
11615
- var u, h, g, _, T, v, M, L, z, S, D, A;
11615
+ var u, h, g, _, T, v, M, L, z, S, D, I;
11616
11616
  return [
11617
11617
  n("div", Tm, [
11618
11618
  n("span", Rm, y(a.locale === "en" ? (u = o.activeTropicals) == null ? void 0 : u.Name : ((h = o.activeTropicals) == null ? void 0 : h.nameCn) || ((g = o.activeTropicals) == null ? void 0 : g.Name) || "-"), 1),
11619
- (T = (_ = o.activeTropicals) == null ? void 0 : _.history) != null && T.levelI18n ? (k(), I("span", Dm, " , " + y(t.$t("tropical." + ((M = (v = o.activeTropicals) == null ? void 0 : v.history) == null ? void 0 : M.levelI18n))), 1)) : N("", !0)
11619
+ (T = (_ = o.activeTropicals) == null ? void 0 : _.history) != null && T.levelI18n ? (k(), A("span", Dm, " , " + y(t.$t("tropical." + ((M = (v = o.activeTropicals) == null ? void 0 : v.history) == null ? void 0 : M.levelI18n))), 1)) : N("", !0)
11620
11620
  ]),
11621
11621
  b(l, {
11622
11622
  icon: "",
@@ -11633,7 +11633,7 @@ function ch(t, e, a, i, o, r) {
11633
11633
  }, 8, ["onClick"]),
11634
11634
  n("div", Im, [
11635
11635
  n("span", Am, y(t.$t("actions.lastUpdate")) + ": ", 1),
11636
- n("span", null, y(r.computeTime(((z = (L = o.activeTropicals) == null ? void 0 : L.history) == null ? void 0 : z.updated) || ((A = (D = (S = o.activeTropicals) == null ? void 0 : S.forecasts) == null ? void 0 : D.filter((E) => !E.disabled)[0]) == null ? void 0 : A.date), a.timeZone)), 1)
11636
+ n("span", null, y(r.computeTime(((z = (L = o.activeTropicals) == null ? void 0 : L.history) == null ? void 0 : z.updated) || ((I = (D = (S = o.activeTropicals) == null ? void 0 : S.forecasts) == null ? void 0 : D.filter((E) => !E.disabled)[0]) == null ? void 0 : I.date), a.timeZone)), 1)
11637
11637
  ])
11638
11638
  ];
11639
11639
  }),
@@ -11668,14 +11668,14 @@ function ch(t, e, a, i, o, r) {
11668
11668
  n("div", Xm, [
11669
11669
  n("label", Hm, y(t.$t("tropical.models")) + " : ", 1),
11670
11670
  n("div", Ym, [
11671
- (k(!0), I(Te, null, De((z = o.activeTropicals) == null ? void 0 : z.forecasts, (S, D) => (k(), W(l, {
11671
+ (k(!0), A(Te, null, De((z = o.activeTropicals) == null ? void 0 : z.forecasts, (S, D) => (k(), W(l, {
11672
11672
  key: D,
11673
11673
  density: "compact",
11674
11674
  variant: S.disabled ? "text" : "flat",
11675
11675
  color: S.disabled ? "" : "primary",
11676
11676
  "min-width": 30,
11677
11677
  class: ge(["model text-none text-body-1 px-1", S.disabled ? "btn-border-1 btn-bg-1" : ""]),
11678
- onClick: Le((A) => r.handleForecastToggle(S), ["stop"])
11678
+ onClick: Le((I) => r.handleForecastToggle(S), ["stop"])
11679
11679
  }, {
11680
11680
  default: x(() => [
11681
11681
  Z(y(S.model), 1)
@@ -11730,7 +11730,7 @@ function ch(t, e, a, i, o, r) {
11730
11730
  ]),
11731
11731
  _: 1
11732
11732
  }, 8, ["class", "elevation"]),
11733
- a.simple ? (k(), I("div", $m, [
11733
+ a.simple ? (k(), A("div", $m, [
11734
11734
  n("div", Jm, [
11735
11735
  n("div", Km, [
11736
11736
  e[5] || (e[5] = n("div", { class: "icon td" }, null, -1)),
@@ -11775,7 +11775,7 @@ function ch(t, e, a, i, o, r) {
11775
11775
  n("div", yd, "50kts " + y(t.$t("tropical.radii")), 1)
11776
11776
  ])
11777
11777
  ])
11778
- ])) : (k(), I("div", bd, [
11778
+ ])) : (k(), A("div", bd, [
11779
11779
  et(b(p, { elevation: "16" }, {
11780
11780
  default: x(() => [
11781
11781
  b(s, null, {
@@ -11857,30 +11857,30 @@ function ch(t, e, a, i, o, r) {
11857
11857
  b(w),
11858
11858
  b(s, { class: "text-body-1" }, {
11859
11859
  default: x(() => {
11860
- var u, h, g, _, T, v, M, L, z, S, D, A, E, X, O, q, ae, re, pe, G;
11860
+ var u, h, g, _, T, v, M, L, z, S, D, I, E, X, O, q, ae, re, pe, G;
11861
11861
  return [
11862
11862
  n("div", Od, [
11863
- ((u = o.hoverPoint) == null ? void 0 : u.type) === "forecast" ? (k(), I("div", Vd, [
11863
+ ((u = o.hoverPoint) == null ? void 0 : u.type) === "forecast" ? (k(), A("div", Vd, [
11864
11864
  n("label", jd, y(t.$t("tropical.updated")) + " : ", 1),
11865
11865
  n("span", null, y(r.computeTzTime((h = o.hoverPoint) == null ? void 0 : h.update, a.timeZone)), 1)
11866
11866
  ])) : N("", !0),
11867
- ((g = o.hoverPoint) == null ? void 0 : g.type) === "forecast" ? (k(), I("div", Xd, [
11867
+ ((g = o.hoverPoint) == null ? void 0 : g.type) === "forecast" ? (k(), A("div", Xd, [
11868
11868
  n("label", Hd, y(t.$t("tropical.forecast")) + " : ", 1),
11869
11869
  n("span", null, y(r.computeTzTime((_ = o.hoverPoint) == null ? void 0 : _.date, a.timeZone)), 1)
11870
11870
  ])) : N("", !0),
11871
- ((T = o.hoverPoint) == null ? void 0 : T.type) === "history" ? (k(), I("div", Yd, [
11871
+ ((T = o.hoverPoint) == null ? void 0 : T.type) === "history" ? (k(), A("div", Yd, [
11872
11872
  n("label", Ud, y(t.$t("tropical.forecast")) + " : ", 1),
11873
11873
  n("span", null, y(r.computeTzTime((v = o.hoverPoint) == null ? void 0 : v.date, a.timeZone)), 1)
11874
11874
  ])) : N("", !0),
11875
- ((M = o.hoverPoint) == null ? void 0 : M.type) === "forecast" ? (k(), I("div", $d, [
11875
+ ((M = o.hoverPoint) == null ? void 0 : M.type) === "forecast" ? (k(), A("div", $d, [
11876
11876
  n("label", Jd, y(t.$t("tropical.model")) + " : ", 1),
11877
11877
  n("span", null, y(((L = o.hoverPoint) == null ? void 0 : L.model) ?? "-"), 1)
11878
11878
  ])) : N("", !0),
11879
- ((z = o.hoverPoint) == null ? void 0 : z.type) === "forecast" ? (k(), I("div", Kd, [
11879
+ ((z = o.hoverPoint) == null ? void 0 : z.type) === "forecast" ? (k(), A("div", Kd, [
11880
11880
  n("label", qd, y(t.$t("weather.wind")) + " : ", 1),
11881
11881
  n("span", null, y(((D = JSON.parse((S = o.hoverPoint) == null ? void 0 : S.wind)) == null ? void 0 : D.kts) ?? "-") + " kts", 1)
11882
11882
  ])) : N("", !0),
11883
- ((A = o.hoverPoint) == null ? void 0 : A.type) === "history" ? (k(), I("div", Qd, [
11883
+ ((I = o.hoverPoint) == null ? void 0 : I.type) === "history" ? (k(), A("div", Qd, [
11884
11884
  n("label", eh, y(t.$t("weather.wind")) + " : ", 1),
11885
11885
  n("span", null, y(((E = o.hoverPoint) == null ? void 0 : E.kts) ?? "-") + " kts", 1)
11886
11886
  ])) : N("", !0),
@@ -11888,11 +11888,11 @@ function ch(t, e, a, i, o, r) {
11888
11888
  n("label", ah, y(t.$t("weather.pressure")) + " : ", 1),
11889
11889
  n("span", null, y(((X = o.hoverPoint) == null ? void 0 : X.pressure) ?? "-") + " hPa", 1)
11890
11890
  ]),
11891
- ((O = o.hoverPoint) == null ? void 0 : O.type) === "history" ? (k(), I("div", oh, [
11891
+ ((O = o.hoverPoint) == null ? void 0 : O.type) === "history" ? (k(), A("div", oh, [
11892
11892
  n("label", ih, y(t.$t("tropical.moveSpeed")) + " : ", 1),
11893
11893
  n("span", null, y(((ae = JSON.parse((q = o.hoverPoint) == null ? void 0 : q.movement)) == null ? void 0 : ae.kts) ?? "-") + " kts", 1)
11894
11894
  ])) : N("", !0),
11895
- ((re = o.hoverPoint) == null ? void 0 : re.type) === "history" ? (k(), I("div", rh, [
11895
+ ((re = o.hoverPoint) == null ? void 0 : re.type) === "history" ? (k(), A("div", rh, [
11896
11896
  n("label", lh, y(t.$t("tropical.moveDir")) + " : ", 1),
11897
11897
  n("span", null, y(((G = JSON.parse((pe = o.hoverPoint) == null ? void 0 : pe.movement)) == null ? void 0 : G.deg) ?? "-") + " °", 1)
11898
11898
  ])) : N("", !0),
@@ -12110,7 +12110,7 @@ const mh = {
12110
12110
  };
12111
12111
  function gh(t, e, a, i, o, r) {
12112
12112
  const l = P("VDatePicker"), c = P("VDivider"), s = P("VListItemTitle"), d = P("VListItem"), m = P("VList"), p = P("VCardText"), f = P("VBtn"), w = P("VCardActions"), u = P("VCard");
12113
- return k(), I("div", dh, [
12113
+ return k(), A("div", dh, [
12114
12114
  n("div", {
12115
12115
  style: he({ height: a.height + "px", width: a.width ? a.width + "px" : "auto" }),
12116
12116
  class: ge([[a.bgClass, { "cursor-pointer": !a.disabled }], "rounded text-body-1 btn-border-1 btn-bg-1 d-flex align-center justify-center px-2"]),
@@ -12145,7 +12145,7 @@ function gh(t, e, a, i, o, r) {
12145
12145
  n("div", uh, y(t.$t("time.time")), 1),
12146
12146
  b(m, { class: "pa-0 flex-1-1-0 scroll" }, {
12147
12147
  default: x(() => [
12148
- (k(!0), I(Te, null, De(r.hourOptions, (h, g) => (k(), W(d, {
12148
+ (k(!0), A(Te, null, De(r.hourOptions, (h, g) => (k(), W(d, {
12149
12149
  key: g,
12150
12150
  value: h,
12151
12151
  color: "primary",
@@ -13261,10 +13261,10 @@ const fh = {
13261
13261
  }), this.loading = !1;
13262
13262
  },
13263
13263
  initTableData(t) {
13264
- var a, i, o, r, l, c, s, d, m, p, f, w, u, h, g, _, T, v, M, L, z, S, D, A, E, X, O, q, ae, re, pe, G, J, K, oe, Y, H, ee, F, ne, fe;
13264
+ var a, i, o, r, l, c, s, d, m, p, f, w, u, h, g, _, T, v, M, L, z, S, D, I, E, X, O, q, ae, re, pe, G, J, K, oe, Y, H, ee, F, ne, fe;
13265
13265
  this.currentHourData = {}, this.positionGmt = (i = (a = t == null ? void 0 : t.weather) == null ? void 0 : a[0]) == null ? void 0 : i.timezone, this.positionOffset = (r = (o = t == null ? void 0 : t.weather) == null ? void 0 : o[0]) == null ? void 0 : r.offset;
13266
13266
  const e = ((l = Va.pickHourly(t, R(this.form.dateTime))) == null ? void 0 : l[0]) || {};
13267
- this.currentHourData.utc = e.utc, this.currentHourData.lat = t.lat, this.currentHourData.lng = t.lng, this.currentHourData.temp = this.computeRoundPrecision((c = e == null ? void 0 : e.weather) == null ? void 0 : c.temp, 0) ?? "-", this.currentHourData.precipProbability = this.computeRoundPrecision((d = (s = e == null ? void 0 : e.weather) == null ? void 0 : s.precip) == null ? void 0 : d.probability, 0) ?? "-", this.currentHourData.precip1h = this.computeRoundPrecision((p = (m = e == null ? void 0 : e.weather) == null ? void 0 : m.precip) == null ? void 0 : p.sum, 0) ?? "-", this.currentHourData.visibility = this.computeRoundPrecision((f = e == null ? void 0 : e.weather) == null ? void 0 : f.visibility, 0) ?? "-", this.currentHourData.windSpeed = this.computeRoundPrecision((u = (w = e == null ? void 0 : e.weather) == null ? void 0 : w.wind) == null ? void 0 : u.kts, 1) ?? "-", this.currentHourData.windDir = ((g = (h = e == null ? void 0 : e.weather) == null ? void 0 : h.wind) == null ? void 0 : g.direction) ?? "-", this.currentHourData.windLevel = this.computeRoundPrecision((T = (_ = e == null ? void 0 : e.weather) == null ? void 0 : _.wind) == null ? void 0 : T.scale, 0) ?? "-", this.currentHourData.windGust = this.computeRoundPrecision((M = (v = e == null ? void 0 : e.weather) == null ? void 0 : v.wind) == null ? void 0 : M.gusts, 1) ?? "-", this.currentHourData.sigwaveHeight = this.computeRoundPrecision((z = (L = e == null ? void 0 : e.wave) == null ? void 0 : L.sig) == null ? void 0 : z.height, 1) ?? "-", this.currentHourData.sigwaveDir = (D = (S = e == null ? void 0 : e.wave) == null ? void 0 : S.sig) == null ? void 0 : D.direction, this.currentHourData.sigwavePeriod = this.computeRoundPrecision((E = (A = e == null ? void 0 : e.wave) == null ? void 0 : A.sig) == null ? void 0 : E.period, 1) ?? "-", this.currentHourData.windwaveHeight = this.computeRoundPrecision((O = (X = e == null ? void 0 : e.wave) == null ? void 0 : X.wd) == null ? void 0 : O.height, 1) ?? "-", this.currentHourData.windwaveDir = (ae = (q = e == null ? void 0 : e.wave) == null ? void 0 : q.wd) == null ? void 0 : ae.direction, this.currentHourData.windwavePeriod = this.computeRoundPrecision((pe = (re = e == null ? void 0 : e.wave) == null ? void 0 : re.wd) == null ? void 0 : pe.period, 1) ?? "-", this.currentHourData.swellHeight = this.computeRoundPrecision((J = (G = e == null ? void 0 : e.wave) == null ? void 0 : G.swell) == null ? void 0 : J.height, 1) ?? "-", this.currentHourData.swellDir = (oe = (K = e == null ? void 0 : e.wave) == null ? void 0 : K.swell) == null ? void 0 : oe.direction, this.currentHourData.swellPeriod = this.computeRoundPrecision((H = (Y = e == null ? void 0 : e.wave) == null ? void 0 : Y.swell) == null ? void 0 : H.period, 1) ?? "-", this.currentHourData.currentSpeed = this.computeRoundPrecision((ee = e == null ? void 0 : e.current) == null ? void 0 : ee.speed, 1) ?? "-", this.currentHourData.currentDir = (F = e == null ? void 0 : e.current) == null ? void 0 : F.direction, this.currentHourData.currentSpeed = this.computeRoundPrecision((ne = e == null ? void 0 : e.current) == null ? void 0 : ne.speed, 1) ?? "-", this.currentHourData.seaLevel = this.computeRoundPrecision(e == null ? void 0 : e.height, 1) ?? "-", this.currentHourData.seaTemp = this.computeRoundPrecision(e == null ? void 0 : e.sst, 0) ?? "-", this.currentHourData.weatherUrls = (fe = e == null ? void 0 : e.weather) == null ? void 0 : fe.url;
13267
+ this.currentHourData.utc = e.utc, this.currentHourData.lat = t.lat, this.currentHourData.lng = t.lng, this.currentHourData.temp = this.computeRoundPrecision((c = e == null ? void 0 : e.weather) == null ? void 0 : c.temp, 0) ?? "-", this.currentHourData.precipProbability = this.computeRoundPrecision((d = (s = e == null ? void 0 : e.weather) == null ? void 0 : s.precip) == null ? void 0 : d.probability, 0) ?? "-", this.currentHourData.precip1h = this.computeRoundPrecision((p = (m = e == null ? void 0 : e.weather) == null ? void 0 : m.precip) == null ? void 0 : p.sum, 0) ?? "-", this.currentHourData.visibility = this.computeRoundPrecision((f = e == null ? void 0 : e.weather) == null ? void 0 : f.visibility, 0) ?? "-", this.currentHourData.windSpeed = this.computeRoundPrecision((u = (w = e == null ? void 0 : e.weather) == null ? void 0 : w.wind) == null ? void 0 : u.kts, 1) ?? "-", this.currentHourData.windDir = ((g = (h = e == null ? void 0 : e.weather) == null ? void 0 : h.wind) == null ? void 0 : g.direction) ?? "-", this.currentHourData.windLevel = this.computeRoundPrecision((T = (_ = e == null ? void 0 : e.weather) == null ? void 0 : _.wind) == null ? void 0 : T.scale, 0) ?? "-", this.currentHourData.windGust = this.computeRoundPrecision((M = (v = e == null ? void 0 : e.weather) == null ? void 0 : v.wind) == null ? void 0 : M.gusts, 1) ?? "-", this.currentHourData.sigwaveHeight = this.computeRoundPrecision((z = (L = e == null ? void 0 : e.wave) == null ? void 0 : L.sig) == null ? void 0 : z.height, 1) ?? "-", this.currentHourData.sigwaveDir = (D = (S = e == null ? void 0 : e.wave) == null ? void 0 : S.sig) == null ? void 0 : D.direction, this.currentHourData.sigwavePeriod = this.computeRoundPrecision((E = (I = e == null ? void 0 : e.wave) == null ? void 0 : I.sig) == null ? void 0 : E.period, 1) ?? "-", this.currentHourData.windwaveHeight = this.computeRoundPrecision((O = (X = e == null ? void 0 : e.wave) == null ? void 0 : X.wd) == null ? void 0 : O.height, 1) ?? "-", this.currentHourData.windwaveDir = (ae = (q = e == null ? void 0 : e.wave) == null ? void 0 : q.wd) == null ? void 0 : ae.direction, this.currentHourData.windwavePeriod = this.computeRoundPrecision((pe = (re = e == null ? void 0 : e.wave) == null ? void 0 : re.wd) == null ? void 0 : pe.period, 1) ?? "-", this.currentHourData.swellHeight = this.computeRoundPrecision((J = (G = e == null ? void 0 : e.wave) == null ? void 0 : G.swell) == null ? void 0 : J.height, 1) ?? "-", this.currentHourData.swellDir = (oe = (K = e == null ? void 0 : e.wave) == null ? void 0 : K.swell) == null ? void 0 : oe.direction, this.currentHourData.swellPeriod = this.computeRoundPrecision((H = (Y = e == null ? void 0 : e.wave) == null ? void 0 : Y.swell) == null ? void 0 : H.period, 1) ?? "-", this.currentHourData.currentSpeed = this.computeRoundPrecision((ee = e == null ? void 0 : e.current) == null ? void 0 : ee.speed, 1) ?? "-", this.currentHourData.currentDir = (F = e == null ? void 0 : e.current) == null ? void 0 : F.direction, this.currentHourData.currentSpeed = this.computeRoundPrecision((ne = e == null ? void 0 : e.current) == null ? void 0 : ne.speed, 1) ?? "-", this.currentHourData.seaLevel = this.computeRoundPrecision(e == null ? void 0 : e.height, 1) ?? "-", this.currentHourData.seaTemp = this.computeRoundPrecision(e == null ? void 0 : e.sst, 0) ?? "-", this.currentHourData.weatherUrls = (fe = e == null ? void 0 : e.weather) == null ? void 0 : fe.url;
13268
13268
  },
13269
13269
  handleBind() {
13270
13270
  var t, e;
@@ -13294,14 +13294,14 @@ const fh = {
13294
13294
  var a, i;
13295
13295
  (a = this.positionMarker) == null || a.remove();
13296
13296
  const e = (i = document.getElementById("idm-position-icon")) == null ? void 0 : i.cloneNode(!0);
13297
- this.positionMarker = new be.Marker(e).setLngLat(t).setOffset([0, -15]).addTo(this.map);
13297
+ this.positionMarker = new ye.Marker(e).setLngLat(t).setOffset([0, -15]).addTo(this.map);
13298
13298
  }));
13299
13299
  },
13300
13300
  drawMeteoInfoMarker(t) {
13301
13301
  this.$nextTick(() => {
13302
13302
  var a;
13303
13303
  const e = document.getElementById("idm-gl4-spot-meteo");
13304
- this.meteoInfoMarker ? (a = this.meteoInfoMarker) == null || a.setLngLat(t) : this.meteoInfoMarker = new be.Marker(e).setLngLat(t).setOffset([0, -190]).addTo(this.map);
13304
+ this.meteoInfoMarker ? (a = this.meteoInfoMarker) == null || a.setLngLat(t) : this.meteoInfoMarker = new ye.Marker(e).setLngLat(t).setOffset([0, -190]).addTo(this.map);
13305
13305
  });
13306
13306
  },
13307
13307
  handleMeteoMore() {
@@ -13374,7 +13374,7 @@ const fh = {
13374
13374
  }, fp = ["xlink:href"];
13375
13375
  function yp(t, e, a, i, o, r) {
13376
13376
  const l = P("VBtn"), c = P("VTooltip"), s = P("VCardTitle"), d = P("VDivider"), m = P("VTextField"), p = P("VCol"), f = P("VRow"), w = P("DateTimePicker"), u = P("VBtnToggle"), h = P("VCardText"), g = P("VCardActions"), _ = P("VForm"), T = P("VCard");
13377
- return k(), I("div", yh, [
13377
+ return k(), A("div", yh, [
13378
13378
  n("div", {
13379
13379
  class: "menu-bar-box transition pa-1",
13380
13380
  style: he({ top: a.top + a.paddingTop + 126 + "px", right: o.right + "px" })
@@ -13974,7 +13974,7 @@ function yp(t, e, a, i, o, r) {
13974
13974
  _: 1
13975
13975
  }, 512)) : N("", !0),
13976
13976
  et(n("div", up, [
13977
- (k(), I("svg", gp, [
13977
+ (k(), A("svg", gp, [
13978
13978
  n("use", {
13979
13979
  "xlink:href": `#icon-spot-${a.theme}`
13980
13980
  }, null, 8, fp)
@@ -14128,7 +14128,7 @@ const wp = {
14128
14128
  const c = this.geojson.filter((s) => s.id === e.split("-")[0])[0].features.filter((s) => s.geometry.type === "Point");
14129
14129
  if (c.length > 2 && c.filter((d) => d.properties.id === (e == null ? void 0 : e.split("-")[1]))[0]) {
14130
14130
  const d = document.createElement("div");
14131
- d.className = "idm-gl4-measure-contextmenu-marker", d.innerHTML = `<span id="del-${e}" class="del-point">${$t("actions.detele")}</span>`, this.contextmenu = new be.Marker(d).setOffset([24, 0]).setLngLat([t.lngLat.lng, t.lngLat.lat]).addTo(this.map);
14131
+ d.className = "idm-gl4-measure-contextmenu-marker", d.innerHTML = `<span id="del-${e}" class="del-point">${$t("actions.detele")}</span>`, this.contextmenu = new ye.Marker(d).setOffset([24, 0]).setLngLat([t.lngLat.lng, t.lngLat.lat]).addTo(this.map);
14132
14132
  }
14133
14133
  }
14134
14134
  },
@@ -14250,7 +14250,7 @@ const wp = {
14250
14250
  this.tipMarker._element.innerHTML = c, this.tipMarker.setLngLat([a.lng, a.lat]);
14251
14251
  else {
14252
14252
  const s = document.createElement("div");
14253
- s.className = "idm-gl4-measure-tip-marker", s.innerHTML = c, this.tipMarker = new be.Marker(s).setOffset([140, 0]).setLngLat([a.lng, a.lat]).addTo(this.map);
14253
+ s.className = "idm-gl4-measure-tip-marker", s.innerHTML = c, this.tipMarker = new ye.Marker(s).setOffset([140, 0]).setLngLat([a.lng, a.lat]).addTo(this.map);
14254
14254
  }
14255
14255
  },
14256
14256
  handleMove(t) {
@@ -14326,12 +14326,12 @@ const wp = {
14326
14326
  for (const c of l) {
14327
14327
  const s = document.createElement("div");
14328
14328
  s.id = `${t.id}-${c.properties.id}`, s.className = `${t.closed ? "idm-gl4-measure-marker closed" : "idm-gl4-measure-marker"}`, s.innerHTML = '<div class="marker-circle"></div>';
14329
- const d = new be.Marker({ element: s, draggable: !0, contextmenu: !0 }).setLngLat(c.geometry.coordinates).addTo(this.map);
14329
+ const d = new ye.Marker({ element: s, draggable: !0, contextmenu: !0 }).setLngLat(c.geometry.coordinates).addTo(this.map);
14330
14330
  d.on("drag", this.handleDrag), d.on("dragend", this.handleDragEnd), this.pointMarkers[t.id] ? this.pointMarkers[t.id].push(d) : this.pointMarkers[t.id] = [d];
14331
14331
  }
14332
14332
  if (t.closed) {
14333
14333
  const c = l.at(-1), d = t.features.filter((p) => p.geometry.type === "LineString").at(-1), m = document.createElement("div");
14334
- m.className = "idm-gl4-measure-summary-marker", m.innerHTML = `<div class="marker-label">${d.properties.name}</div><div id="${t.id}" class="marker-close">X</div>`, this.closeMarkers[t.id] = new be.Marker(m).setOffset([0, -30]).setLngLat(c.geometry.coordinates).addTo(this.map);
14334
+ m.className = "idm-gl4-measure-summary-marker", m.innerHTML = `<div class="marker-label">${d.properties.name}</div><div id="${t.id}" class="marker-close">X</div>`, this.closeMarkers[t.id] = new ye.Marker(m).setOffset([0, -30]).setLngLat(c.geometry.coordinates).addTo(this.map);
14335
14335
  }
14336
14336
  }
14337
14337
  },
@@ -14346,7 +14346,7 @@ const wp = {
14346
14346
  }, xp = { class: "idm-gl4-measure" };
14347
14347
  function vp(t, e, a, i, o, r) {
14348
14348
  const l = P("VBtn"), c = P("VTooltip");
14349
- return k(), I("div", xp, [
14349
+ return k(), A("div", xp, [
14350
14350
  n("div", {
14351
14351
  class: "menu-bar-box transition pa-1",
14352
14352
  style: he({ top: a.top + a.paddingTop + 166 + "px", right: o.right + "px" })
@@ -14475,6 +14475,7 @@ const _p = {
14475
14475
  drawRadiusLayer: "draw-marker-radius-layer",
14476
14476
  tipMarker: null,
14477
14477
  pointMarker: null,
14478
+ pointHighlightMarker: null,
14478
14479
  editMarkers: [],
14479
14480
  deleteBtn: null,
14480
14481
  originalProperties: {}
@@ -14550,7 +14551,17 @@ const _p = {
14550
14551
  this.$emit("hideLayer", this.editLayer.id);
14551
14552
  },
14552
14553
  setupPointEdit() {
14553
- this.pointMarker && (this.pointMarker.setDraggable(!0), this.pointMarker.off("drag", this.handlePointDrag), this.pointMarker.on("drag", this.handlePointDrag), this.pointMarker.off("dragend", this.handlePointDrag), this.pointMarker.on("dragend", this.handlePointDrag));
14554
+ var a;
14555
+ if (!this.pointMarker)
14556
+ return;
14557
+ this.pointMarker.setDraggable(!0), this.pointMarker.off("drag", this.handlePointDrag), this.pointMarker.on("drag", this.handlePointDrag), this.pointMarker.off("dragend", this.handlePointDrag), this.pointMarker.on("dragend", this.handlePointDrag), (a = this.pointHighlightMarker) == null || a.remove();
14558
+ const t = document.createElement("div");
14559
+ t.className = "idm-gl4-point-center-ring";
14560
+ const e = this.pointMarker.getLngLat();
14561
+ this.pointHighlightMarker = new ye.Marker({ element: t, anchor: "center", offset: [0, 0] }).setLngLat(e).addTo(this.map), this.pointMarker.on("drag", () => {
14562
+ var i;
14563
+ (i = this.pointHighlightMarker) == null || i.setLngLat(this.pointMarker.getLngLat());
14564
+ });
14554
14565
  },
14555
14566
  handlePointDrag() {
14556
14567
  const { lng: t, lat: e } = this.pointMarker.getLngLat();
@@ -14580,7 +14591,7 @@ const _p = {
14580
14591
  this.clearEditMarkers(), this.drawCoords.forEach((e, a) => {
14581
14592
  const i = document.createElement("div");
14582
14593
  i.className = "idm-gl4-edit-vertex", i.style.backgroundColor = this.form.color;
14583
- const o = new be.Marker({ element: i, draggable: !0 }).setLngLat(e).addTo(this.map);
14594
+ const o = new ye.Marker({ element: i, draggable: !0 }).setLngLat(e).addTo(this.map);
14584
14595
  o.on("dragstart", () => {
14585
14596
  this.map.getCanvas().style.cursor = "pointer";
14586
14597
  const { lng: r, lat: l } = o.getLngLat();
@@ -14671,7 +14682,7 @@ const _p = {
14671
14682
  this.drawCoords = e.map((i) => [...i]), this.drawCoords.forEach((i, o) => {
14672
14683
  const r = document.createElement("div");
14673
14684
  r.className = "idm-gl4-edit-vertex", r.style.backgroundColor = this.form.color;
14674
- const l = new be.Marker({ element: r, draggable: !0 }).setLngLat(i).addTo(this.map);
14685
+ const l = new ye.Marker({ element: r, draggable: !0 }).setLngLat(i).addTo(this.map);
14675
14686
  l.on("dragstart", () => {
14676
14687
  this.map.getCanvas().style.cursor = "pointer";
14677
14688
  const { lng: c, lat: s } = l.getLngLat();
@@ -14726,7 +14737,7 @@ const _p = {
14726
14737
  if ((o = this.pointMarker) == null || o.remove(), !t || !t.length)
14727
14738
  return;
14728
14739
  const [a, i] = t[0];
14729
- this.pointMarker = new be.Marker({ color: e }).setLngLat([a, i]).addTo(this.map);
14740
+ this.pointMarker = new ye.Marker({ color: e }).setLngLat([a, i]).addTo(this.map);
14730
14741
  },
14731
14742
  // -------- Line drawing --------
14732
14743
  handleMapClickLine(t) {
@@ -14801,7 +14812,7 @@ const _p = {
14801
14812
  this.tipMarker._element.innerHTML = d, this.tipMarker.setLngLat([e[0], e[1]]);
14802
14813
  else {
14803
14814
  const m = document.createElement("div");
14804
- m.className = "idm-gl4-draw-tip-marker", m.innerHTML = d, this.tipMarker = new be.Marker(m).setOffset([140, 0]).setLngLat([e[0], e[1]]).addTo(this.map);
14815
+ m.className = "idm-gl4-draw-tip-marker", m.innerHTML = d, this.tipMarker = new ye.Marker(m).setOffset([140, 0]).setLngLat([e[0], e[1]]).addTo(this.map);
14805
14816
  }
14806
14817
  },
14807
14818
  handleRefreshLine() {
@@ -14870,7 +14881,7 @@ const _p = {
14870
14881
  this.handleClearVertexLabels();
14871
14882
  const a = j.lat2pretty(t[1], 4).pretty, i = j.lng2pretty(t[0], 4).pretty, o = document.createElement("div");
14872
14883
  o.className = "idm-gl4-draw-corner-label center", o.innerHTML = `<span class="corner-text">${a} <br/> ${i}</span>`;
14873
- const r = new be.Marker(o, { anchor: "bottom", offset: [0, e] }).setLngLat(t).addTo(this.map);
14884
+ const r = new ye.Marker(o, { anchor: "bottom", offset: [0, e] }).setLngLat(t).addTo(this.map);
14874
14885
  this.polygonVertexMarkers.push(r);
14875
14886
  },
14876
14887
  handleRenderAllVertexLabels(t) {
@@ -14882,7 +14893,7 @@ const _p = {
14882
14893
  o >= 0 && i >= 0 ? r = "bottom-left" : o >= 0 && i < 0 ? r = "bottom-right" : o < 0 && i >= 0 ? r = "top-left" : r = "top-right";
14883
14894
  const l = j.lat2pretty(a[1], 4).pretty, c = j.lng2pretty(a[0], 4).pretty, s = document.createElement("div");
14884
14895
  s.className = "idm-gl4-draw-corner-label " + r, s.innerHTML = `<span class="corner-text">${l} <br/> ${c}</span>`;
14885
- const d = new be.Marker(s, { anchor: r }).setLngLat(a).addTo(this.map);
14896
+ const d = new ye.Marker(s, { anchor: r }).setLngLat(a).addTo(this.map);
14886
14897
  this.polygonVertexMarkers.push(d);
14887
14898
  });
14888
14899
  },
@@ -14929,7 +14940,7 @@ const _p = {
14929
14940
  handleRenderCircleCenterLabel(t) {
14930
14941
  const e = j.lat2pretty(t[1], 4).pretty, a = j.lng2pretty(t[0], 4).pretty, i = document.createElement("div");
14931
14942
  i.className = "idm-gl4-draw-corner-label bottom-right", i.innerHTML = `<span class="corner-text">${e} <br/> ${a}</span>`;
14932
- const o = new be.Marker(i, { anchor: "bottom-right" }).setLngLat(t).addTo(this.map);
14943
+ const o = new ye.Marker(i, { anchor: "bottom-right" }).setLngLat(t).addTo(this.map);
14933
14944
  this.circleMarkers.push(o);
14934
14945
  },
14935
14946
  handleRenderRadiusLine(t, e, a) {
@@ -14952,7 +14963,7 @@ const _p = {
14952
14963
  this.circleMarkers.length > 1 && (this.circleMarkers[1].remove(), this.circleMarkers.splice(1, 1));
14953
14964
  const h = document.createElement("div"), g = document.createElement("span");
14954
14965
  g.className = "idm-gl4-draw-radius-label", g.style.transform = `rotate(${m}deg)`, g.style.transformOrigin = "center", g.style.display = "inline-block", g.textContent = `${i} nm`, h.appendChild(g);
14955
- const _ = new be.Marker(h, { anchor: "center", offset: [w, u] }).setLngLat(r).addTo(this.map);
14966
+ const _ = new ye.Marker(h, { anchor: "center", offset: [w, u] }).setLngLat(r).addTo(this.map);
14956
14967
  this.circleMarkers.push(_);
14957
14968
  },
14958
14969
  handleClearCircleLabels() {
@@ -15031,7 +15042,7 @@ const _p = {
15031
15042
  this.handleClearRectCorners(), l.forEach(({ coord: c, anchor: s }) => {
15032
15043
  const d = j.lat2pretty(c[1], 4).pretty, m = j.lng2pretty(c[0], 4).pretty, p = document.createElement("div");
15033
15044
  p.className = "idm-gl4-draw-corner-label " + s, p.innerHTML = `<span class="corner-text">${d} <br/> ${m}</span>`;
15034
- const f = new be.Marker(p, { anchor: s }).setLngLat(c).addTo(this.map);
15045
+ const f = new ye.Marker(p, { anchor: s }).setLngLat(c).addTo(this.map);
15035
15046
  this.rectCornerMarkers.push(f);
15036
15047
  });
15037
15048
  },
@@ -15082,25 +15093,28 @@ const _p = {
15082
15093
  },
15083
15094
  // -------- clear drawn layers --------
15084
15095
  handleClearDraw(t = !1) {
15085
- var a, i, o, r;
15096
+ var a, i, o, r, l;
15086
15097
  this.handleClearTmp(), this.hideDeleteButton();
15087
15098
  const e = [this.drawPointLayer, this.drawLineLayer, this.drawFillLayer];
15088
- for (const l of e)
15089
- (a = this.map) != null && a.getLayer(l) && ((i = this.map) == null || i.removeLayer(l));
15090
- (o = this.map) != null && o.getSource(this.drawSource) && this.map.removeSource(this.drawSource), this.drawCoords = [], this.originalProperties = {}, this.handleClearRectCorners(), this.handleClearVertexLabels(), this.handleClearCircleLabels(), (r = this.pointMarker) == null || r.remove(), this.pointMarker = null, this.clearEditMarkers(), this.handleRebindMap();
15099
+ for (const c of e)
15100
+ (a = this.map) != null && a.getLayer(c) && ((i = this.map) == null || i.removeLayer(c));
15101
+ (o = this.map) != null && o.getSource(this.drawSource) && this.map.removeSource(this.drawSource), this.drawCoords = [], this.originalProperties = {}, this.handleClearRectCorners(), this.handleClearVertexLabels(), this.handleClearCircleLabels(), (r = this.pointMarker) == null || r.remove(), this.pointMarker = null, (l = this.pointHighlightMarker) == null || l.remove(), this.pointHighlightMarker = null, this.clearEditMarkers(), this.handleRebindMap();
15091
15102
  },
15092
15103
  // -------- Save --------
15093
15104
  async handleSave() {
15094
15105
  var i, o;
15095
15106
  let t = null;
15096
15107
  if (this.markerType === "Point" ? await this.$refs.pointForm.validate().then((r) => {
15108
+ var l;
15097
15109
  if (r != null && r.valid) {
15098
15110
  if (!this.drawCoords.length)
15099
15111
  return;
15100
- const [l, c] = this.drawCoords[0];
15112
+ const [c, s] = this.drawCoords[0];
15101
15113
  t = B.featureCollection([
15102
- je.drawPoint(c, l, { ...this.originalProperties, color: this.form.color, name: this.form.name })
15103
- ]);
15114
+ je.drawPoint(s, c, { ...this.originalProperties, color: this.form.color, name: this.form.name })
15115
+ ]), (l = t.features) == null || l.forEach((d) => {
15116
+ d.properties.color = this.form.color, d.properties.name = this.form.name;
15117
+ });
15104
15118
  }
15105
15119
  }) : this.markerType === "Line" ? await this.$refs.lineForm.validate().then((r) => {
15106
15120
  if (r != null && r.valid) {
@@ -15629,7 +15643,7 @@ function Kp(t, e, a, i, o, r) {
15629
15643
  default: x(() => {
15630
15644
  var L, z;
15631
15645
  return [
15632
- (L = a.editLayer) != null && L.id ? N("", !0) : (k(), I("div", Vp, [
15646
+ (L = a.editLayer) != null && L.id ? N("", !0) : (k(), A("div", Vp, [
15633
15647
  n("div", jp, [
15634
15648
  Z(y(t.$t("marker.areaType")), 1),
15635
15649
  e[33] || (e[33] = n("span", { class: "text-danger" }, "*", -1))
@@ -15799,18 +15813,21 @@ const Qp = {
15799
15813
  },
15800
15814
  emits: ["close", "import"],
15801
15815
  data() {
15816
+ var t;
15802
15817
  return {
15803
15818
  form: {
15804
15819
  groupName: "",
15805
15820
  name: "",
15806
15821
  file: null,
15807
15822
  format: "",
15808
- extend: void 0
15823
+ extend: void 0,
15824
+ color: (t = this.Theme.current.value.colors) == null ? void 0 : t["map-green"]
15809
15825
  },
15810
15826
  formRules: {
15811
15827
  groupName: [
15812
- (t) => t != null && t !== "" || "required"
15813
- ]
15828
+ (e) => e != null && e !== "" || "required"
15829
+ ],
15830
+ color: [(e) => e != null && e !== "" || "required"]
15814
15831
  },
15815
15832
  isDragOver: !1,
15816
15833
  uploading: !1,
@@ -15819,6 +15836,17 @@ const Qp = {
15819
15836
  previewMarkers: []
15820
15837
  };
15821
15838
  },
15839
+ watch: {
15840
+ "form.color": {
15841
+ handler(t) {
15842
+ var e;
15843
+ (e = this.form.extend) != null && e.features && this.form.extend.features.forEach((a) => {
15844
+ a.properties.color = t;
15845
+ }), this.handleDrawLayers();
15846
+ },
15847
+ immediate: !0
15848
+ }
15849
+ },
15822
15850
  mounted() {
15823
15851
  var t;
15824
15852
  this.form.groupName = ((t = this.group) == null ? void 0 : t.name) || "Import layer 1";
@@ -15852,7 +15880,7 @@ const Qp = {
15852
15880
  e && this.onUpload(e);
15853
15881
  },
15854
15882
  async onUpload(t) {
15855
- var i, o;
15883
+ var i, o, r, l;
15856
15884
  if (t.size > 10485760) {
15857
15885
  this.$emit("error", this.$t("marker.fileTooLarge"));
15858
15886
  return;
@@ -15860,26 +15888,28 @@ const Qp = {
15860
15888
  this.form.file = t, this.fileError = "", this.form.name = (i = t.name.split(".")) == null ? void 0 : i[0];
15861
15889
  const a = (o = t.name.split(".").pop()) == null ? void 0 : o.toLowerCase();
15862
15890
  try {
15863
- let r;
15891
+ let c;
15864
15892
  if (a === "json" || a === "geojson") {
15865
- const l = await t.text();
15866
- r = JSON.parse(l);
15893
+ const s = await t.text();
15894
+ c = JSON.parse(s);
15867
15895
  } else if (a === "kml") {
15868
- const l = await t.text();
15869
- r = await je.convertKML2GeoJSON(l);
15896
+ const s = await t.text();
15897
+ c = await je.convertKML2GeoJSON(s);
15870
15898
  } else if (a === "kmz") {
15871
- const l = await t.arrayBuffer();
15872
- r = await je.convertKMZ2GeoJSON(l);
15899
+ const s = await t.arrayBuffer();
15900
+ c = await je.convertKMZ2GeoJSON(s);
15873
15901
  } else if (a === "zip" || a === "shp") {
15874
- const l = await t.arrayBuffer();
15875
- r = await je.convertZIP2GeoJSON(l);
15902
+ const s = await t.arrayBuffer();
15903
+ c = await je.convertZIP2GeoJSON(s);
15876
15904
  } else {
15877
15905
  this.$emit("error", "Unsupported format: " + a);
15878
15906
  return;
15879
15907
  }
15880
- this.form.extend = r, this.form.format = "geojson", this.handleDrawLayers();
15881
- } catch (r) {
15882
- console.error("File parse error", r), this.$emit("error", "Failed to parse file"), this.fileError = "Failed to parse file", this.form.file = null;
15908
+ this.form.extend = c, this.form.format = "geojson", (l = (r = this.form.extend) == null ? void 0 : r.features) == null || l.forEach((s) => {
15909
+ s.properties.color = this.form.color;
15910
+ }), this.handleDrawLayers();
15911
+ } catch (c) {
15912
+ console.error("File parse error", c), this.$emit("error", "Failed to parse file"), this.fileError = "Failed to parse file", this.form.file = null;
15883
15913
  }
15884
15914
  },
15885
15915
  handleRemoveFile() {
@@ -15926,14 +15956,13 @@ const Qp = {
15926
15956
  handleDrawLayers() {
15927
15957
  if (!this.map || !this.form.extend)
15928
15958
  return;
15929
- this.handleClearPreview();
15930
15959
  const t = this.form.extend, e = this.previewSourceId, a = t.features || (t.type === "Feature" ? [t] : []);
15931
15960
  a.forEach((o) => {
15932
15961
  var l, c, s;
15933
15962
  const r = ((l = o == null ? void 0 : o.properties) == null ? void 0 : l.color) || ((c = this.Theme.current.value.colors) == null ? void 0 : c["map-green"]);
15934
15963
  if (((s = o.geometry) == null ? void 0 : s.type) === "Point") {
15935
15964
  const [d, m] = o.geometry.coordinates;
15936
- this.previewMarkers.push(new be.Marker({ color: r }).setLngLat([d, m]).addTo(this.map));
15965
+ this.previewMarkers.push(new ye.Marker({ color: r }).setLngLat([d, m]).addTo(this.map));
15937
15966
  }
15938
15967
  o.properties.color || (o.properties.color = r);
15939
15968
  }), this.map.getSource(e) ? this.map.getSource(e).setData(t) : this.map.addSource(e, { type: "geojson", data: t });
@@ -15985,14 +16014,14 @@ const Qp = {
15985
16014
  }), this.map.getSource(t) && this.map.removeSource(t);
15986
16015
  }
15987
16016
  }
15988
- }, eu = { class: "text-h6 font-weight-600" }, tu = { class: "mb-4" }, au = { class: "text-label mb-1" }, ou = { class: "text-body-2 text-center text-label" }, iu = { class: "text-body-1 text-primary mt-2 cursor-pointer" }, ru = { class: "text-body-2 text-left text-label mt-1" }, lu = {
16017
+ }, eu = { class: "text-h6 font-weight-600" }, tu = { class: "mb-4" }, au = { class: "text-label mb-1" }, ou = { class: "mb-1" }, iu = { class: "text-label mb-1" }, ru = { class: "color-picker-row d-flex align-start ga-2" }, lu = ["value"], nu = { class: "text-body-2 text-center text-label" }, su = { class: "text-body-1 text-primary mt-2 cursor-pointer" }, cu = { class: "text-body-2 text-left text-label mt-1" }, mu = {
15989
16018
  key: 0,
15990
16019
  class: "text-body-2 text-left text-danger mt-1"
15991
- }, nu = {
16020
+ }, du = {
15992
16021
  key: 1,
15993
16022
  class: "file-item d-flex align-center justify-space-between mt-2 gray-bg-1 pa-1"
15994
- }, su = { class: "text-body-2 text-truncate" };
15995
- function cu(t, e, a, i, o, r) {
16023
+ }, hu = { class: "text-body-2 text-truncate" };
16024
+ function pu(t, e, a, i, o, r) {
15996
16025
  const l = P("VBtn"), c = P("v-card-title"), s = P("v-divider"), d = P("v-text-field"), m = P("v-icon"), p = P("v-card-text"), f = P("VDivider"), w = P("v-btn"), u = P("VCardActions"), h = P("VForm"), g = P("v-card");
15997
16026
  return k(), W(g, {
15998
16027
  class: "idm-gl4-import-dialog-card",
@@ -16009,11 +16038,11 @@ function cu(t, e, a, i, o, r) {
16009
16038
  class: "mr-n2",
16010
16039
  onClick: r.handleClose
16011
16040
  }, {
16012
- default: x(() => e[7] || (e[7] = [
16041
+ default: x(() => e[9] || (e[9] = [
16013
16042
  n("i", { class: "iconfont icon-close text-h4" }, null, -1)
16014
16043
  ])),
16015
16044
  _: 1,
16016
- __: [7]
16045
+ __: [9]
16017
16046
  }, 8, ["onClick"])
16018
16047
  ]),
16019
16048
  _: 1
@@ -16031,7 +16060,7 @@ function cu(t, e, a, i, o, r) {
16031
16060
  n("div", tu, [
16032
16061
  n("div", au, [
16033
16062
  Z(y(t.$t("marker.group")), 1),
16034
- e[8] || (e[8] = n("span", { class: "text-danger" }, "*", -1))
16063
+ e[10] || (e[10] = n("span", { class: "text-danger" }, "*", -1))
16035
16064
  ]),
16036
16065
  b(d, {
16037
16066
  modelValue: o.form.groupName,
@@ -16042,50 +16071,72 @@ function cu(t, e, a, i, o, r) {
16042
16071
  class: "input-btn-bg-1"
16043
16072
  }, null, 8, ["modelValue"])
16044
16073
  ]),
16074
+ n("div", ou, [
16075
+ n("div", iu, [
16076
+ Z(y(t.$t("marker.color")), 1),
16077
+ e[11] || (e[11] = n("span", { class: "text-danger" }, "*", -1))
16078
+ ]),
16079
+ n("div", ru, [
16080
+ n("input", {
16081
+ type: "color",
16082
+ value: o.form.color,
16083
+ class: "native-color-picker cursor-pointer",
16084
+ onInput: e[1] || (e[1] = (_) => o.form.color = _.target.value)
16085
+ }, null, 40, lu),
16086
+ b(d, {
16087
+ modelValue: o.form.color,
16088
+ "onUpdate:modelValue": e[2] || (e[2] = (_) => o.form.color = _),
16089
+ rules: o.formRules.color,
16090
+ density: "compact",
16091
+ variant: "outlined",
16092
+ class: "flex-1-1-0 input-btn-bg-1"
16093
+ }, null, 8, ["modelValue", "rules"])
16094
+ ])
16095
+ ]),
16045
16096
  n("div", {
16046
16097
  class: ge(["upload-area btn-bg-1 d-flex flex-column justify-center align-center pa-4", { "drag-over": o.isDragOver, "upload-error": o.fileError }]),
16047
- onDragenter: e[2] || (e[2] = Le((_) => o.isDragOver = !0, ["prevent"])),
16048
- onDragleave: e[3] || (e[3] = Le((_) => o.isDragOver = !1, ["prevent"])),
16049
- onDragover: e[4] || (e[4] = Le(() => {
16098
+ onDragenter: e[4] || (e[4] = Le((_) => o.isDragOver = !0, ["prevent"])),
16099
+ onDragleave: e[5] || (e[5] = Le((_) => o.isDragOver = !1, ["prevent"])),
16100
+ onDragover: e[6] || (e[6] = Le(() => {
16050
16101
  }, ["prevent"])),
16051
- onDrop: e[5] || (e[5] = Le((..._) => r.handleDrop && r.handleDrop(..._), ["prevent"])),
16052
- onClick: e[6] || (e[6] = (..._) => r.handleSelectFile && r.handleSelectFile(..._))
16102
+ onDrop: e[7] || (e[7] = Le((..._) => r.handleDrop && r.handleDrop(..._), ["prevent"])),
16103
+ onClick: e[8] || (e[8] = (..._) => r.handleSelectFile && r.handleSelectFile(..._))
16053
16104
  }, [
16054
16105
  b(m, {
16055
16106
  size: "36",
16056
16107
  color: "grey",
16057
16108
  class: "mb-2"
16058
16109
  }, {
16059
- default: x(() => e[9] || (e[9] = [
16110
+ default: x(() => e[12] || (e[12] = [
16060
16111
  Z("mdi-cloud-upload-outline", -1)
16061
16112
  ])),
16062
16113
  _: 1,
16063
- __: [9]
16114
+ __: [12]
16064
16115
  }),
16065
- n("div", ou, y(t.$t("marker.uploadHint")), 1),
16066
- n("div", iu, y(t.$t("marker.selectFile")), 1),
16116
+ n("div", nu, y(t.$t("marker.uploadHint")), 1),
16117
+ n("div", su, y(t.$t("marker.selectFile")), 1),
16067
16118
  n("input", {
16068
16119
  ref: "fileInput",
16069
16120
  type: "file",
16070
16121
  style: { display: "none" },
16071
16122
  accept: ".json,.geojson,.zip,.shp,.kml,.kmz",
16072
- onChange: e[1] || (e[1] = (..._) => r.handleFileChange && r.handleFileChange(..._))
16123
+ onChange: e[3] || (e[3] = (..._) => r.handleFileChange && r.handleFileChange(..._))
16073
16124
  }, null, 544)
16074
16125
  ], 34),
16075
- n("div", ru, y(t.$t("marker.uploadLimit")), 1),
16076
- o.fileError ? (k(), I("div", lu, y(o.fileError), 1)) : N("", !0),
16077
- o.form.file ? (k(), I("div", nu, [
16078
- n("span", su, [
16126
+ n("div", cu, y(t.$t("marker.uploadLimit")), 1),
16127
+ o.fileError ? (k(), A("div", mu, y(o.fileError), 1)) : N("", !0),
16128
+ o.form.file ? (k(), A("div", du, [
16129
+ n("span", hu, [
16079
16130
  b(m, {
16080
16131
  size: "16",
16081
16132
  color: "success",
16082
16133
  class: "mr-1"
16083
16134
  }, {
16084
- default: x(() => e[10] || (e[10] = [
16135
+ default: x(() => e[13] || (e[13] = [
16085
16136
  Z("mdi-check-circle", -1)
16086
16137
  ])),
16087
16138
  _: 1,
16088
- __: [10]
16139
+ __: [13]
16089
16140
  }),
16090
16141
  Z(" " + y(o.form.file.name), 1)
16091
16142
  ]),
@@ -16099,11 +16150,11 @@ function cu(t, e, a, i, o, r) {
16099
16150
  }, {
16100
16151
  default: x(() => [
16101
16152
  b(m, { size: "16" }, {
16102
- default: x(() => e[11] || (e[11] = [
16153
+ default: x(() => e[14] || (e[14] = [
16103
16154
  Z("mdi-close", -1)
16104
16155
  ])),
16105
16156
  _: 1,
16106
- __: [11]
16157
+ __: [14]
16107
16158
  })
16108
16159
  ]),
16109
16160
  _: 1
@@ -16149,8 +16200,8 @@ function cu(t, e, a, i, o, r) {
16149
16200
  _: 1
16150
16201
  });
16151
16202
  }
16152
- const mu = /* @__PURE__ */ ie(Qp, [["render", cu]]);
16153
- const du = {
16203
+ const uu = /* @__PURE__ */ ie(Qp, [["render", pu]]);
16204
+ const gu = {
16154
16205
  name: "IdmGroupDialog",
16155
16206
  props: {
16156
16207
  modelValue: {
@@ -16210,8 +16261,8 @@ const du = {
16210
16261
  }));
16211
16262
  }
16212
16263
  }
16213
- }, hu = { class: "text-h6 font-weight-600" }, pu = { class: "text-label mb-2" };
16214
- function uu(t, e, a, i, o, r) {
16264
+ }, fu = { class: "text-h6 font-weight-600" }, yu = { class: "text-label mb-2" };
16265
+ function bu(t, e, a, i, o, r) {
16215
16266
  const l = P("VBtn"), c = P("v-card-title"), s = P("v-divider"), d = P("v-text-field"), m = P("v-card-text"), p = P("VDivider"), f = P("v-btn"), w = P("VCardActions"), u = P("v-card"), h = P("v-dialog");
16216
16267
  return k(), W(h, {
16217
16268
  "model-value": a.modelValue,
@@ -16227,7 +16278,7 @@ function uu(t, e, a, i, o, r) {
16227
16278
  default: x(() => [
16228
16279
  b(c, { class: "d-flex justify-space-between align-center" }, {
16229
16280
  default: x(() => [
16230
- n("span", hu, y(t.$t("actions.editGroup")), 1),
16281
+ n("span", fu, y(t.$t("actions.editGroup")), 1),
16231
16282
  b(l, {
16232
16283
  icon: "",
16233
16284
  density: "compact",
@@ -16247,7 +16298,7 @@ function uu(t, e, a, i, o, r) {
16247
16298
  b(s),
16248
16299
  b(m, { class: "px-4 text-body-1" }, {
16249
16300
  default: x(() => [
16250
- n("div", pu, [
16301
+ n("div", yu, [
16251
16302
  Z(y(t.$t("marker.groupName")), 1),
16252
16303
  e[3] || (e[3] = n("span", { class: "text-danger" }, "*", -1))
16253
16304
  ]),
@@ -16302,7 +16353,7 @@ function uu(t, e, a, i, o, r) {
16302
16353
  _: 1
16303
16354
  }, 8, ["model-value"]);
16304
16355
  }
16305
- const gu = /* @__PURE__ */ ie(du, [["render", uu]]), fu = {
16356
+ const wu = /* @__PURE__ */ ie(gu, [["render", bu]]), xu = {
16306
16357
  name: "DeleteDialog",
16307
16358
  props: {
16308
16359
  title: {
@@ -16333,8 +16384,8 @@ const gu = /* @__PURE__ */ ie(du, [["render", uu]]), fu = {
16333
16384
  this.showDialog = !0;
16334
16385
  }
16335
16386
  }
16336
- }, yu = { class: "text-body-1 pb-1" }, bu = { class: "text-body-1" };
16337
- function wu(t, e, a, i, o, r) {
16387
+ }, vu = { class: "text-body-1 pb-1" }, ku = { class: "text-body-1" };
16388
+ function _u(t, e, a, i, o, r) {
16338
16389
  const l = P("v-icon"), c = P("VBtn"), s = P("v-card-title"), d = P("v-card-text"), m = P("v-card-actions"), p = P("v-card"), f = P("v-dialog");
16339
16390
  return k(), W(f, {
16340
16391
  modelValue: o.showDialog,
@@ -16373,8 +16424,8 @@ function wu(t, e, a, i, o, r) {
16373
16424
  }),
16374
16425
  b(d, { class: "py-4 text-center" }, {
16375
16426
  default: x(() => [
16376
- n("p", yu, y(a.tips), 1),
16377
- n("p", bu, y(t.$t("tips.doYouWantToContinue")), 1)
16427
+ n("p", vu, y(a.tips), 1),
16428
+ n("p", ku, y(t.$t("tips.doYouWantToContinue")), 1)
16378
16429
  ]),
16379
16430
  _: 1
16380
16431
  }),
@@ -16414,10 +16465,10 @@ function wu(t, e, a, i, o, r) {
16414
16465
  _: 1
16415
16466
  }, 8, ["modelValue"]);
16416
16467
  }
16417
- const xu = /* @__PURE__ */ ie(fu, [["render", wu]]);
16418
- const vu = {
16468
+ const Lu = /* @__PURE__ */ ie(xu, [["render", _u]]);
16469
+ const zu = {
16419
16470
  name: "IdmMarker",
16420
- components: { IdmDrawMarker: qp, IdmImportMarker: mu, IdmGroupDialog: gu, DeleteDialog: xu },
16471
+ components: { IdmDrawMarker: qp, IdmImportMarker: uu, IdmGroupDialog: wu, DeleteDialog: Lu },
16421
16472
  props: {
16422
16473
  simple: {
16423
16474
  type: Boolean,
@@ -16442,10 +16493,6 @@ const vu = {
16442
16493
  gateway: {
16443
16494
  type: String
16444
16495
  },
16445
- assistGateway: {
16446
- type: Array,
16447
- default: []
16448
- },
16449
16496
  top: {
16450
16497
  type: Number,
16451
16498
  default: 60
@@ -16628,7 +16675,7 @@ const vu = {
16628
16675
  const i = e.features || (e.type === "Feature" ? [e] : []);
16629
16676
  if (i.some((c) => {
16630
16677
  var s, d;
16631
- return (((s = c.geometry) == null ? void 0 : s.type) === "Point" || ((d = c.geometry) == null ? void 0 : d.type) === "MultiPoint") && c.properties.type === "point";
16678
+ return (((s = c.geometry) == null ? void 0 : s.type) === "Point" || ((d = c.geometry) == null ? void 0 : d.type) === "MultiPoint") && c.properties.shape === "point";
16632
16679
  })) {
16633
16680
  const c = [];
16634
16681
  i.forEach((s) => {
@@ -16638,26 +16685,26 @@ const vu = {
16638
16685
  const [g, _] = s.geometry.coordinates, T = `<div style="font-size:12px;line-height:1.5;">
16639
16686
  <div style="font-weight:600;">${m}</div>
16640
16687
  <div>${j.lat2pretty(_, 4).pretty}, ${j.lng2pretty(g, 4).pretty}</div>
16641
- </div>`, v = new be.Popup({
16688
+ </div>`, v = new ye.Popup({
16642
16689
  offset: 40,
16643
16690
  closeButton: !1,
16644
16691
  closeOnClick: !1,
16645
16692
  anchor: "bottom",
16646
16693
  className: "marker-popup-dark"
16647
- }).setHTML(T), M = new be.Marker({ color: p }).setLngLat([g, _]).addTo(this.map), L = M.getElement();
16694
+ }).setHTML(T), M = new ye.Marker({ color: p }).setLngLat([g, _]).addTo(this.map), L = M.getElement();
16648
16695
  L.addEventListener("mouseenter", () => v.setLngLat([g, _]).addTo(this.map)), L.addEventListener("mouseleave", () => v.remove()), c.push(M);
16649
16696
  } else
16650
16697
  d === "MultiPoint" && s.geometry.coordinates.forEach(([g, _]) => {
16651
16698
  const T = `<div style="font-size:12px;line-height:1.5;">
16652
16699
  <div style="font-weight:600;">${m}</div>
16653
16700
  <div>${j.lat2pretty(_, 4).pretty}, ${j.lng2pretty(g, 4).pretty}</div>
16654
- </div>`, v = new be.Popup({
16701
+ </div>`, v = new ye.Popup({
16655
16702
  offset: 40,
16656
16703
  closeButton: !1,
16657
16704
  closeOnClick: !1,
16658
16705
  anchor: "bottom",
16659
16706
  className: "marker-popup-dark"
16660
- }).setHTML(T), M = new be.Marker({ color: p }).setLngLat([g, _]).addTo(this.map), L = M.getElement();
16707
+ }).setHTML(T), M = new ye.Marker({ color: p }).setLngLat([g, _]).addTo(this.map), L = M.getElement();
16661
16708
  L.addEventListener("mouseenter", () => v.setLngLat([g, _]).addTo(this.map)), L.addEventListener("mouseleave", () => v.remove()), c.push(M);
16662
16709
  });
16663
16710
  }), this.layerMarkers[t.id] = c;
@@ -16785,34 +16832,34 @@ const vu = {
16785
16832
  });
16786
16833
  }
16787
16834
  }
16788
- }, ku = { class: "idm-gl4-marker" }, _u = { class: "w-100 px-4 d-flex flex-column justify-start align-start" }, Lu = { class: "w-100 header-box d-flex justify-space-between align-center pr-4" }, zu = { class: "d-flex justify-start align-center ga-3" }, Cu = { class: "text-h5 font-weight-medium" }, Mu = { class: "search-box w-100 mb-3" }, Pu = {
16835
+ }, Cu = { class: "idm-gl4-marker" }, Mu = { class: "w-100 px-4 d-flex flex-column justify-start align-start" }, Pu = { class: "w-100 header-box d-flex justify-space-between align-center pr-4" }, Su = { class: "d-flex justify-start align-center ga-3" }, Tu = { class: "text-h5 font-weight-medium" }, Ru = { class: "search-box w-100 mb-3" }, Du = {
16789
16836
  class: "multi-color-icon",
16790
16837
  style: { height: "20px", width: "20px" },
16791
16838
  "aria-hidden": "true"
16792
- }, Su = {
16839
+ }, Iu = {
16793
16840
  key: 0,
16794
16841
  class: "w-100 d-flex justify-space-between align-center ga-4"
16795
- }, Tu = {
16842
+ }, Au = {
16796
16843
  key: 0,
16797
16844
  class: "w-100 d-flex justify-center align-center",
16798
16845
  style: { height: "200px" }
16799
- }, Ru = {
16846
+ }, Gu = {
16800
16847
  key: 1,
16801
16848
  class: "w-100 d-flex justify-center align-center"
16802
- }, Du = { class: "text-body-1" }, Iu = {
16849
+ }, Fu = { class: "text-body-1" }, Nu = {
16803
16850
  key: 2,
16804
16851
  class: "list-box w-100 flex-1-1-0 px-4 pb-2 scroll overflow-y-auto"
16805
- }, Au = { class: "group-label text-body-1 d-flex justify-space-between align-center py-4" }, Gu = { class: "d-flex justify-start align-center pl-2 cursor-pointer" }, Fu = ["onClick"], Nu = { key: 0 }, Wu = {
16852
+ }, Wu = { class: "group-label text-body-1 d-flex justify-space-between align-center py-4" }, Eu = { class: "d-flex justify-start align-center pl-2 cursor-pointer" }, Bu = ["onClick"], Zu = { key: 0 }, Ou = {
16806
16853
  key: 0,
16807
16854
  class: "layer-list flex-1-1-0 overflow-y-hidden pb-2"
16808
- }, Eu = { class: "d-flex align-center justify-start ga-2" }, Bu = { class: "font-weight-600" }, Zu = {
16855
+ }, Vu = { class: "d-flex align-center justify-start ga-2" }, ju = { class: "font-weight-600 layer-name" }, Xu = {
16809
16856
  key: 0,
16810
- class: "layer-actions d-flex align-center justify-end ga-2"
16857
+ class: "layer-actions d-flex align-center justify-end ga-1"
16811
16858
  };
16812
- function Ou(t, e, a, i, o, r) {
16859
+ function Hu(t, e, a, i, o, r) {
16813
16860
  var D;
16814
16861
  const l = P("VBtn"), c = P("VTooltip"), s = P("VSwitch"), d = P("v-icon"), m = P("v-text-field"), p = P("v-progress-circular"), f = P("v-chip"), w = P("VListItemTitle"), u = P("VListItem"), h = P("VList"), g = P("v-card"), _ = P("VMenu"), T = P("v-btn"), v = P("v-divider"), M = P("IdmDrawMarker"), L = P("IdmImportMarker"), z = P("IdmGroupDialog"), S = P("DeleteDialog");
16815
- return k(), I("div", ku, [
16862
+ return k(), A("div", Cu, [
16816
16863
  n("div", {
16817
16864
  class: "menu-bar-box transition pa-1",
16818
16865
  style: he({ top: a.top + a.paddingTop + 206 + "px", right: o.right + "px" })
@@ -16825,8 +16872,8 @@ function Ou(t, e, a, i, o, r) {
16825
16872
  "open-on-focus": !a.simple,
16826
16873
  "open-on-hover": !a.simple
16827
16874
  }, {
16828
- activator: x(({ props: A }) => [
16829
- b(l, $(A, {
16875
+ activator: x(({ props: I }) => [
16876
+ b(l, $(I, {
16830
16877
  "min-width": "32",
16831
16878
  width: "32",
16832
16879
  height: "32",
@@ -16847,13 +16894,13 @@ function Ou(t, e, a, i, o, r) {
16847
16894
  class: ge(["main-box transition d-flex flex-column justify-start align-start", o.toggle ? "right-bar" : ""]),
16848
16895
  style: he(r.listStyle)
16849
16896
  }, [
16850
- n("div", _u, [
16851
- n("div", Lu, [
16852
- n("div", zu, [
16853
- n("div", Cu, y(t.$t("marker.markers")), 1),
16897
+ n("div", Mu, [
16898
+ n("div", Pu, [
16899
+ n("div", Su, [
16900
+ n("div", Tu, y(t.$t("marker.markers")), 1),
16854
16901
  b(s, {
16855
16902
  modelValue: o.autoActive,
16856
- "onUpdate:modelValue": e[0] || (e[0] = (A) => o.autoActive = A),
16903
+ "onUpdate:modelValue": e[0] || (e[0] = (I) => o.autoActive = I),
16857
16904
  class: "small-switch",
16858
16905
  inset: "",
16859
16906
  color: "primary",
@@ -16887,10 +16934,10 @@ function Ou(t, e, a, i, o, r) {
16887
16934
  __: [8]
16888
16935
  }, 8, ["onClick"])
16889
16936
  ]),
16890
- n("div", Mu, [
16937
+ n("div", Ru, [
16891
16938
  b(m, {
16892
16939
  modelValue: o.keyword,
16893
- "onUpdate:modelValue": e[1] || (e[1] = (A) => o.keyword = A),
16940
+ "onUpdate:modelValue": e[1] || (e[1] = (I) => o.keyword = I),
16894
16941
  "clear-icon": "mdi-close",
16895
16942
  clearable: "",
16896
16943
  density: "compact",
@@ -16900,14 +16947,14 @@ function Ou(t, e, a, i, o, r) {
16900
16947
  class: "input-btn-bg-1"
16901
16948
  }, {
16902
16949
  "prepend-inner": x(() => [
16903
- (k(), I("svg", Pu, e[9] || (e[9] = [
16950
+ (k(), A("svg", Du, e[9] || (e[9] = [
16904
16951
  n("use", { "xlink:href": "#icon-search" }, null, -1)
16905
16952
  ])))
16906
16953
  ]),
16907
16954
  _: 1
16908
16955
  }, 8, ["modelValue"])
16909
16956
  ]),
16910
- a.simple ? N("", !0) : (k(), I("div", Su, [
16957
+ a.simple ? N("", !0) : (k(), A("div", Iu, [
16911
16958
  b(l, {
16912
16959
  class: "flex-1-1-0 text-none mb-3 text-body-1 font-weight-600",
16913
16960
  color: "primary",
@@ -16916,7 +16963,7 @@ function Ou(t, e, a, i, o, r) {
16916
16963
  height: "32",
16917
16964
  "max-height": "32",
16918
16965
  "prepend-icon": "mdi-plus",
16919
- onClick: e[2] || (e[2] = (A) => r.handleOpenDrawMarkers())
16966
+ onClick: e[2] || (e[2] = (I) => r.handleOpenDrawMarkers())
16920
16967
  }, {
16921
16968
  default: x(() => [
16922
16969
  Z(y(t.$t("actions.add")), 1)
@@ -16940,32 +16987,32 @@ function Ou(t, e, a, i, o, r) {
16940
16987
  }, 8, ["onClick"])
16941
16988
  ]))
16942
16989
  ]),
16943
- o.loading ? (k(), I("div", Tu, [
16990
+ o.loading ? (k(), A("div", Au, [
16944
16991
  b(p, {
16945
16992
  color: "primary",
16946
16993
  indeterminate: "",
16947
16994
  size: "36",
16948
16995
  width: "4"
16949
16996
  })
16950
- ])) : o.layerGroup.length === 0 ? (k(), I("div", Ru, [
16951
- n("div", Du, y(t.$t("tips.noData")), 1)
16952
- ])) : (k(), I("div", Iu, [
16953
- (k(!0), I(Te, null, De(o.layerGroup, (A, E) => {
16997
+ ])) : o.layerGroup.length === 0 ? (k(), A("div", Gu, [
16998
+ n("div", Fu, y(t.$t("tips.noData")), 1)
16999
+ ])) : (k(), A("div", Nu, [
17000
+ (k(!0), A(Te, null, De(o.layerGroup, (I, E) => {
16954
17001
  var X;
16955
- return k(), I("div", {
16956
- key: A.name,
16957
- class: ge(["btn-bg-1", A.index === o.layerGroup.length ? "rounded-b" : A.index === 1 ? "rounded-t" : ""])
17002
+ return k(), A("div", {
17003
+ key: I.name,
17004
+ class: ge(["btn-bg-1", I.index === o.layerGroup.length ? "rounded-b" : I.index === 1 ? "rounded-t" : ""])
16958
17005
  }, [
16959
- n("div", Au, [
16960
- n("div", Gu, [
16961
- A.show ? (k(), W(d, {
17006
+ n("div", Wu, [
17007
+ n("div", Eu, [
17008
+ I.show ? (k(), W(d, {
16962
17009
  key: 0,
16963
17010
  icon: "mdi-chevron-down",
16964
- onClick: (O) => A.show = !1
17011
+ onClick: (O) => I.show = !1
16965
17012
  }, null, 8, ["onClick"])) : (k(), W(d, {
16966
17013
  key: 1,
16967
17014
  icon: "mdi-chevron-right",
16968
- onClick: (O) => A.show = !0
17015
+ onClick: (O) => I.show = !0
16969
17016
  }, null, 8, ["onClick"])),
16970
17017
  o.loading ? (k(), W(p, {
16971
17018
  key: 3,
@@ -16980,22 +17027,22 @@ function Ou(t, e, a, i, o, r) {
16980
17027
  variant: "tonal",
16981
17028
  class: "font-weight-600 mr-2",
16982
17029
  color: "primary",
16983
- onClick: (O) => A.show = !A.show
17030
+ onClick: (O) => I.show = !I.show
16984
17031
  }, {
16985
17032
  default: x(() => {
16986
17033
  var O;
16987
17034
  return [
16988
- Z(y((O = A.layers) == null ? void 0 : O.length), 1)
17035
+ Z(y((O = I.layers) == null ? void 0 : O.length), 1)
16989
17036
  ];
16990
17037
  }),
16991
17038
  _: 2
16992
17039
  }, 1032, ["onClick"])),
16993
17040
  n("div", {
16994
17041
  class: "",
16995
- onClick: (O) => A.show = !A.show
16996
- }, y(A.name), 9, Fu)
17042
+ onClick: (O) => I.show = !I.show
17043
+ }, y(I.name), 9, Bu)
16997
17044
  ]),
16998
- A.name !== "Custom Layers" && !a.simple ? (k(), I("div", Nu, [
17045
+ I.name !== "Custom Layers" && !a.simple ? (k(), A("div", Zu, [
16999
17046
  b(T, {
17000
17047
  icon: "",
17001
17048
  density: "compact",
@@ -17024,7 +17071,7 @@ function Ou(t, e, a, i, o, r) {
17024
17071
  default: x(() => [
17025
17072
  b(w, {
17026
17073
  class: "text-body-1 d-flex jusity-center align-center",
17027
- onClick: (O) => r.handleOpenDrawMarkers(A)
17074
+ onClick: (O) => r.handleOpenDrawMarkers(I)
17028
17075
  }, {
17029
17076
  default: x(() => [
17030
17077
  b(d, {
@@ -17048,7 +17095,7 @@ function Ou(t, e, a, i, o, r) {
17048
17095
  default: x(() => [
17049
17096
  b(w, {
17050
17097
  class: "text-body-1 d-flex jusity-center align-center",
17051
- onClick: (O) => r.handleEditGroup(A)
17098
+ onClick: (O) => r.handleEditGroup(I)
17052
17099
  }, {
17053
17100
  default: x(() => [
17054
17101
  b(d, {
@@ -17072,7 +17119,7 @@ function Ou(t, e, a, i, o, r) {
17072
17119
  default: x(() => [
17073
17120
  b(w, {
17074
17121
  class: "text-body-1 d-flex jusity-center align-center",
17075
- onClick: (O) => r.handleOpenDelete("group", A)
17122
+ onClick: (O) => r.handleOpenDelete("group", I)
17076
17123
  }, {
17077
17124
  default: x(() => [
17078
17125
  b(d, {
@@ -17101,26 +17148,26 @@ function Ou(t, e, a, i, o, r) {
17101
17148
  }, 1024)
17102
17149
  ])) : N("", !0)
17103
17150
  ]),
17104
- A.show ? (k(), I("div", Wu, [
17105
- (k(!0), I(Te, null, De((X = A.layers) == null ? void 0 : X.filter((O) => {
17151
+ I.show ? (k(), A("div", Ou, [
17152
+ (k(!0), A(Te, null, De((X = I.layers) == null ? void 0 : X.filter((O) => {
17106
17153
  var q;
17107
17154
  return ((q = O.name) == null ? void 0 : q.indexOf(o.keyword)) > -1;
17108
17155
  }), (O) => {
17109
17156
  var q;
17110
- return k(), I("div", {
17157
+ return k(), A("div", {
17111
17158
  key: O.id,
17112
- class: ge(["layer-item py-2 px-2 mx-2 rounded cursor-pointer d-flex align-center justify-space-between", ((q = o.currentLayer) == null ? void 0 : q.id) === O.id ? "active" : ""])
17159
+ class: ge(["layer-item py-3 px-2 mx-2 rounded cursor-pointer d-flex align-center justify-space-between ga-4", ((q = o.currentLayer) == null ? void 0 : q.id) === O.id ? "active" : ""])
17113
17160
  }, [
17114
- n("div", Eu, [
17115
- n("span", Bu, y(O == null ? void 0 : O.name), 1)
17161
+ n("div", Vu, [
17162
+ n("span", ju, y(O == null ? void 0 : O.name), 1)
17116
17163
  ]),
17117
- a.simple ? N("", !0) : (k(), I("div", Zu, [
17164
+ a.simple ? N("", !0) : (k(), A("div", Xu, [
17118
17165
  b(l, {
17119
17166
  class: "",
17120
17167
  density: "compact",
17121
17168
  icon: "",
17122
17169
  variant: "text",
17123
- onClick: (ae) => r.handleEditLayer(A, O)
17170
+ onClick: (ae) => r.handleEditLayer(I, O)
17124
17171
  }, {
17125
17172
  default: x(() => [
17126
17173
  b(d, {
@@ -17179,17 +17226,17 @@ function Ou(t, e, a, i, o, r) {
17179
17226
  defaultMeteoToken: a.defaultMeteoToken,
17180
17227
  layerGroup: o.layerGroup,
17181
17228
  group: o.currentGroup,
17182
- onClose: e[3] || (e[3] = (A) => (o.importDialog = !1, o.currentGroup = void 0)),
17229
+ onClose: e[3] || (e[3] = (I) => (o.importDialog = !1, o.currentGroup = void 0)),
17183
17230
  onImport: r.handleImportLayer
17184
17231
  }, null, 8, ["map", "gateway", "token", "defaultMeteoToken", "layerGroup", "group", "onImport"])) : N("", !0),
17185
17232
  b(z, {
17186
17233
  modelValue: o.groupDialog,
17187
- "onUpdate:modelValue": e[4] || (e[4] = (A) => o.groupDialog = A),
17234
+ "onUpdate:modelValue": e[4] || (e[4] = (I) => o.groupDialog = I),
17188
17235
  group: o.currentGroup,
17189
17236
  gateway: a.gateway,
17190
17237
  token: a.token,
17191
17238
  defaultMeteoToken: a.defaultMeteoToken,
17192
- onClose: e[5] || (e[5] = (A) => (o.groupDialog = !1, o.currentGroup = void 0)),
17239
+ onClose: e[5] || (e[5] = (I) => (o.groupDialog = !1, o.currentGroup = void 0)),
17193
17240
  onSaved: r.fetchAllLayers
17194
17241
  }, null, 8, ["modelValue", "group", "gateway", "token", "defaultMeteoToken", "onSaved"]),
17195
17242
  b(S, {
@@ -17197,13 +17244,13 @@ function Ou(t, e, a, i, o, r) {
17197
17244
  title: t.$t("actions.delete"),
17198
17245
  tips: t.$t("tips.deleteText"),
17199
17246
  loading: o.deleteLoading,
17200
- onDelete: e[6] || (e[6] = (A) => r.confirmDelete())
17247
+ onDelete: e[6] || (e[6] = (I) => r.confirmDelete())
17201
17248
  }, null, 8, ["title", "tips", "loading"])
17202
17249
  ]);
17203
17250
  }
17204
- const Vu = /* @__PURE__ */ ie(vu, [["render", Ou]]);
17251
+ const Yu = /* @__PURE__ */ ie(zu, [["render", Hu]]);
17205
17252
  var V = { image: /* @__PURE__ */ new Map(), background: /* @__PURE__ */ new Map(), resource: /* @__PURE__ */ new Map(), defaultStyle: /* @__PURE__ */ new Map(), baseStyle: /* @__PURE__ */ new Map(), computedStyle: /* @__PURE__ */ new WeakMap(), font: /* @__PURE__ */ new Set(), session: { styleMap: /* @__PURE__ */ new Map(), styleCache: /* @__PURE__ */ new WeakMap(), nodeMap: /* @__PURE__ */ new Map() } };
17206
- function ju(t = "soft") {
17253
+ function Uu(t = "soft") {
17207
17254
  switch (V.session.__counterEpoch = (V.session.__counterEpoch || 0) + 1, t) {
17208
17255
  case "auto": {
17209
17256
  V.session.styleMap = /* @__PURE__ */ new Map(), V.session.nodeMap = /* @__PURE__ */ new Map();
@@ -17232,7 +17279,7 @@ function yo(t) {
17232
17279
  let a = e[2].trim();
17233
17280
  return a.startsWith("#") ? null : a;
17234
17281
  }
17235
- function Xu(t) {
17282
+ function $u(t) {
17236
17283
  if (!t || t === "none")
17237
17284
  return "";
17238
17285
  let e = t.replace(/translate[XY]?\([^)]*\)/g, "");
@@ -17253,7 +17300,7 @@ function qa(t) {
17253
17300
  return t;
17254
17301
  }
17255
17302
  }
17256
- function Hu(t = "[snapDOM]", { ttlMs: e = 5 * 6e4, maxEntries: a = 12 } = {}) {
17303
+ function Ju(t = "[snapDOM]", { ttlMs: e = 5 * 6e4, maxEntries: a = 12 } = {}) {
17257
17304
  let i = /* @__PURE__ */ new Map(), o = 0;
17258
17305
  function r(l, c, s) {
17259
17306
  if (o >= a)
@@ -17269,11 +17316,11 @@ function Hu(t = "[snapDOM]", { ttlMs: e = 5 * 6e4, maxEntries: a = 12 } = {}) {
17269
17316
  i.clear(), o = 0;
17270
17317
  } };
17271
17318
  }
17272
- var Ai = Hu("[snapDOM]", { ttlMs: 3 * 6e4, maxEntries: 10 }), ao = /* @__PURE__ */ new Map(), Ha = /* @__PURE__ */ new Map();
17273
- function Yu(t) {
17319
+ var Ai = Ju("[snapDOM]", { ttlMs: 3 * 6e4, maxEntries: 10 }), ao = /* @__PURE__ */ new Map(), Ha = /* @__PURE__ */ new Map();
17320
+ function Ku(t) {
17274
17321
  return /^data:|^blob:|^about:blank$/i.test(t);
17275
17322
  }
17276
- function Uu(t, e) {
17323
+ function qu(t, e) {
17277
17324
  try {
17278
17325
  let a = typeof location < "u" && location.href ? location.href : "http://localhost/", i = e.includes("{url}") ? e.split("{url}")[0] : e, o = new URL(i || ".", a), r = new URL(t, a);
17279
17326
  if (r.origin === o.origin)
@@ -17285,8 +17332,8 @@ function Uu(t, e) {
17285
17332
  }
17286
17333
  return !1;
17287
17334
  }
17288
- function $u(t, e) {
17289
- if (!e || Yu(t) || Uu(t, e))
17335
+ function Qu(t, e) {
17336
+ if (!e || Ku(t) || qu(t, e))
17290
17337
  return !1;
17291
17338
  try {
17292
17339
  let a = typeof location < "u" && location.href ? location.href : "http://localhost/", i = new URL(t, a);
@@ -17295,7 +17342,7 @@ function $u(t, e) {
17295
17342
  return !!e;
17296
17343
  }
17297
17344
  }
17298
- function Ju(t, e) {
17345
+ function eg(t, e) {
17299
17346
  if (!e)
17300
17347
  return t;
17301
17348
  if (e.includes("{url}"))
@@ -17315,7 +17362,7 @@ function Gi(t) {
17315
17362
  i.onload = () => e(String(i.result || "")), i.onerror = () => a(new Error("read_failed")), i.readAsDataURL(t);
17316
17363
  });
17317
17364
  }
17318
- function Ku(t, e) {
17365
+ function tg(t, e) {
17319
17366
  return [e.as || "blob", e.timeout ?? 3e3, e.useProxy || "", e.errorTTL ?? 8e3, t].join("|");
17320
17367
  }
17321
17368
  async function Je(t, e = {}) {
@@ -17343,14 +17390,14 @@ async function Je(t, e = {}) {
17343
17390
  }
17344
17391
  if (/^about:blank$/i.test(t))
17345
17392
  return a === "dataURL" ? { ok: !0, data: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR4nGMAAQAABQABDQottAAAAABJRU5ErkJggg==", status: 200, url: t, fromCache: !1, mime: "image/png" } : { ok: !0, data: a === "text" ? "" : new Blob([]), status: 200, url: t, fromCache: !1 };
17346
- let s = Ku(t, { as: a, timeout: i, useProxy: o, errorTTL: r }), d = Ha.get(s);
17393
+ let s = tg(t, { as: a, timeout: i, useProxy: o, errorTTL: r }), d = Ha.get(s);
17347
17394
  if (d && d.until > Date.now())
17348
17395
  return { ...d.result, fromCache: !0 };
17349
17396
  d && Ha.delete(s);
17350
17397
  let m = ao.get(s);
17351
17398
  if (m)
17352
17399
  return m;
17353
- let p = $u(t, o) ? Ju(t, o) : t, f = e.credentials;
17400
+ let p = Qu(t, o) ? eg(t, o) : t, f = e.credentials;
17354
17401
  if (!f)
17355
17402
  try {
17356
17403
  let g = typeof location < "u" && location.href ? location.href : "http://localhost/", _ = new URL(t, g);
@@ -17404,8 +17451,8 @@ async function or(t, e = {}) {
17404
17451
  return V.background.set(i, null), "none";
17405
17452
  }
17406
17453
  }
17407
- var qu = /* @__PURE__ */ new Set(["meta", "script", "noscript", "title", "link", "template"]), bo = /* @__PURE__ */ new Set(["meta", "link", "style", "title", "noscript", "script", "template", "g", "defs", "use", "marker", "mask", "clipPath", "pattern", "path", "polygon", "polyline", "line", "circle", "ellipse", "rect", "filter", "lineargradient", "radialgradient", "stop"]);
17408
- function Qu(t) {
17454
+ var ag = /* @__PURE__ */ new Set(["meta", "script", "noscript", "title", "link", "template"]), bo = /* @__PURE__ */ new Set(["meta", "link", "style", "title", "noscript", "script", "template", "g", "defs", "use", "marker", "mask", "clipPath", "pattern", "path", "polygon", "polyline", "line", "circle", "ellipse", "rect", "filter", "lineargradient", "radialgradient", "stop"]);
17455
+ function og(t) {
17409
17456
  if (t = String(t).toLowerCase(), bo.has(t)) {
17410
17457
  let r = {};
17411
17458
  return V.defaultStyle.set(t, r), r;
@@ -17425,15 +17472,15 @@ function Qu(t) {
17425
17472
  }
17426
17473
  return e.removeChild(a), V.defaultStyle.set(t, o), o;
17427
17474
  }
17428
- var eg = /(?:^|-)(animation|transition)(?:-|$)/i, tg = /^(--|view-timeline|scroll-timeline|animation-trigger|offset-|position-try|app-region|interactivity|overlay|view-transition|-webkit-locale|-webkit-user-(?:drag|modify)|-webkit-tap-highlight-color|-webkit-text-security)$/i, ag = /* @__PURE__ */ new Set(["cursor", "pointer-events", "touch-action", "user-select", "print-color-adjust", "speak", "reading-flow", "reading-order", "anchor-name", "anchor-scope", "container-name", "container-type", "timeline-scope"]);
17475
+ var ig = /(?:^|-)(animation|transition)(?:-|$)/i, rg = /^(--|view-timeline|scroll-timeline|animation-trigger|offset-|position-try|app-region|interactivity|overlay|view-transition|-webkit-locale|-webkit-user-(?:drag|modify)|-webkit-tap-highlight-color|-webkit-text-security)$/i, lg = /* @__PURE__ */ new Set(["cursor", "pointer-events", "touch-action", "user-select", "print-color-adjust", "speak", "reading-flow", "reading-order", "anchor-name", "anchor-scope", "container-name", "container-type", "timeline-scope"]);
17429
17476
  function ir(t) {
17430
17477
  let e = String(t).toLowerCase();
17431
- return !!(ag.has(e) || tg.test(e) || eg.test(e));
17478
+ return !!(lg.has(e) || rg.test(e) || ig.test(e));
17432
17479
  }
17433
17480
  function ro(t, e) {
17434
17481
  if (e = String(e || "").toLowerCase(), bo.has(e))
17435
17482
  return "";
17436
- let a = [], i = Qu(e);
17483
+ let a = [], i = og(e);
17437
17484
  for (let [o, r] of Object.entries(t)) {
17438
17485
  if (ir(o))
17439
17486
  continue;
@@ -17442,11 +17489,11 @@ function ro(t, e) {
17442
17489
  }
17443
17490
  return a.sort(), a.join(";");
17444
17491
  }
17445
- function og(t) {
17492
+ function ng(t) {
17446
17493
  let e = /* @__PURE__ */ new Set();
17447
17494
  return t.nodeType !== Node.ELEMENT_NODE && t.nodeType !== Node.DOCUMENT_FRAGMENT_NODE ? [] : (t.tagName && e.add(t.tagName.toLowerCase()), typeof t.querySelectorAll == "function" && t.querySelectorAll("*").forEach((a) => e.add(a.tagName.toLowerCase())), Array.from(e));
17448
17495
  }
17449
- function ig(t) {
17496
+ function sg(t) {
17450
17497
  let e = /* @__PURE__ */ new Map();
17451
17498
  for (let i of t) {
17452
17499
  let o = V.defaultStyle.get(i);
@@ -17461,7 +17508,7 @@ function ig(t) {
17461
17508
  `;
17462
17509
  return a;
17463
17510
  }
17464
- function rg(t) {
17511
+ function cg(t) {
17465
17512
  let e = Array.from(new Set(t.values())).filter(Boolean).sort(), a = /* @__PURE__ */ new Map(), i = 1;
17466
17513
  for (let o of e)
17467
17514
  a.set(o, `c${i++}`);
@@ -17491,31 +17538,31 @@ function lr(t) {
17491
17538
  }
17492
17539
  return e.push(t.slice(i).trim()), e;
17493
17540
  }
17494
- var lg = [/font\s*awesome/i, /material\s*icons/i, /ionicons/i, /glyphicons/i, /feather/i, /bootstrap\s*icons/i, /remix\s*icons/i, /heroicons/i, /layui/i, /lucide/i], rt = Object.assign({ materialIconsFilled: "https://fonts.gstatic.com/s/materialicons/v48/flUhRq6tzZclQEJ-Vdg-IuiaDsNcIhQ8tQ.woff2", materialIconsOutlined: "https://fonts.gstatic.com/s/materialiconsoutlined/v110/gok-H7zzDkdnRel8-DQ6KAXJ69wP1tGnf4ZGhUcel5euIg.woff2", materialIconsRound: "https://fonts.gstatic.com/s/materialiconsround/v109/LDItaoyNOAY6Uewc665JcIzCKsKc_M9flwmPq_HTTw.woff2", materialIconsSharp: "https://fonts.gstatic.com/s/materialiconssharp/v110/oPWQ_lt5nv4pWNJpghLP75WiFR4kLh3kvmvRImcycg.woff2" }, typeof window < "u" && window.__SNAPDOM_ICON_FONTS__ || {}), lo = [];
17495
- function ng(t) {
17541
+ var mg = [/font\s*awesome/i, /material\s*icons/i, /ionicons/i, /glyphicons/i, /feather/i, /bootstrap\s*icons/i, /remix\s*icons/i, /heroicons/i, /layui/i, /lucide/i], rt = Object.assign({ materialIconsFilled: "https://fonts.gstatic.com/s/materialicons/v48/flUhRq6tzZclQEJ-Vdg-IuiaDsNcIhQ8tQ.woff2", materialIconsOutlined: "https://fonts.gstatic.com/s/materialiconsoutlined/v110/gok-H7zzDkdnRel8-DQ6KAXJ69wP1tGnf4ZGhUcel5euIg.woff2", materialIconsRound: "https://fonts.gstatic.com/s/materialiconsround/v109/LDItaoyNOAY6Uewc665JcIzCKsKc_M9flwmPq_HTTw.woff2", materialIconsSharp: "https://fonts.gstatic.com/s/materialiconssharp/v110/oPWQ_lt5nv4pWNJpghLP75WiFR4kLh3kvmvRImcycg.woff2" }, typeof window < "u" && window.__SNAPDOM_ICON_FONTS__ || {}), lo = [];
17542
+ function dg(t) {
17496
17543
  let e = Array.isArray(t) ? t : [t];
17497
17544
  for (let a of e)
17498
17545
  a instanceof RegExp ? lo.push(a) : typeof a == "string" ? lo.push(new RegExp(a, "i")) : console.warn("[snapdom] Ignored invalid iconFont value:", a);
17499
17546
  }
17500
17547
  function Ke(t) {
17501
- let e = typeof t == "string" ? t : "", a = [...lg, ...lo];
17548
+ let e = typeof t == "string" ? t : "", a = [...mg, ...lo];
17502
17549
  for (let i of a)
17503
17550
  if (i instanceof RegExp && i.test(e))
17504
17551
  return !0;
17505
17552
  return !!(/icon/i.test(e) || /glyph/i.test(e) || /symbols/i.test(e) || /feather/i.test(e) || /fontawesome/i.test(e));
17506
17553
  }
17507
- function sg(t = "") {
17554
+ function hg(t = "") {
17508
17555
  let e = String(t).toLowerCase();
17509
17556
  return /\bmaterial\s*icons\b/.test(e) || /\bmaterial\s*symbols\b/.test(e);
17510
17557
  }
17511
17558
  var Ni = /* @__PURE__ */ new Map();
17512
- function cg(t = "") {
17559
+ function pg(t = "") {
17513
17560
  let e = /* @__PURE__ */ Object.create(null), a = String(t || ""), i = /['"]?\s*([A-Za-z]{3,4})\s*['"]?\s*([+-]?\d+(?:\.\d+)?)\s*/g, o;
17514
17561
  for (; o = i.exec(a); )
17515
17562
  e[o[1].toUpperCase()] = Number(o[2]);
17516
17563
  return e;
17517
17564
  }
17518
- async function mg(t, e, a) {
17565
+ async function ug(t, e, a) {
17519
17566
  let i = String(t || ""), o = i.toLowerCase(), r = String(e || "").toLowerCase();
17520
17567
  if (/\bmaterial\s*icons\b/.test(o) && !/\bsymbols\b/.test(o))
17521
17568
  return { familyForMeasure: i, familyForCanvas: i };
@@ -17536,13 +17583,13 @@ async function mg(t, e, a) {
17536
17583
  let m = `"${d.alias}"`;
17537
17584
  return { familyForMeasure: m, familyForCanvas: m };
17538
17585
  }
17539
- async function dg(t = "Material Icons", e = 24) {
17586
+ async function gg(t = "Material Icons", e = 24) {
17540
17587
  try {
17541
17588
  await Promise.all([document.fonts.load(`400 ${e}px "${String(t).replace(/["']/g, "")}"`), document.fonts.ready]);
17542
17589
  } catch {
17543
17590
  }
17544
17591
  }
17545
- function hg(t) {
17592
+ function fg(t) {
17546
17593
  var o, r;
17547
17594
  let e = ((o = t.getPropertyValue("-webkit-text-fill-color")) == null ? void 0 : o.trim()) || "", a = /^transparent$/i.test(e) || /rgba?\(\s*0\s*,\s*0\s*,\s*0\s*,\s*0\s*\)/i.test(e);
17548
17595
  if (e && !a && e.toLowerCase() !== "currentcolor")
@@ -17550,9 +17597,9 @@ function hg(t) {
17550
17597
  let i = (r = t.color) == null ? void 0 : r.trim();
17551
17598
  return i && i !== "inherit" ? i : "#000";
17552
17599
  }
17553
- async function pg(t, { family: e = "Material Icons", weight: a = "normal", fontSize: i = 32, color: o = "#000", variation: r = "", className: l = "" } = {}) {
17554
- let c = String(e || "").replace(/^['"]+|['"]+$/g, ""), s = window.devicePixelRatio || 1, d = cg(r), { familyForMeasure: m, familyForCanvas: p } = await mg(c, l, d);
17555
- await dg(p.replace(/^["']+|["']+$/g, ""), i);
17600
+ async function yg(t, { family: e = "Material Icons", weight: a = "normal", fontSize: i = 32, color: o = "#000", variation: r = "", className: l = "" } = {}) {
17601
+ let c = String(e || "").replace(/^['"]+|['"]+$/g, ""), s = window.devicePixelRatio || 1, d = pg(r), { familyForMeasure: m, familyForCanvas: p } = await ug(c, l, d);
17602
+ await gg(p.replace(/^["']+|["']+$/g, ""), i);
17556
17603
  let f = document.createElement("span");
17557
17604
  f.textContent = t, f.style.position = "absolute", f.style.visibility = "hidden", f.style.left = "-99999px", f.style.whiteSpace = "nowrap", f.style.fontFamily = m, f.style.fontWeight = String(a || "normal"), f.style.fontSize = `${i}px`, f.style.lineHeight = "1", f.style.margin = "0", f.style.padding = "0", f.style.fontFeatureSettings = "'liga' 1", f.style.fontVariantLigatures = "normal", f.style.color = o, document.body.appendChild(f);
17558
17605
  let w = f.getBoundingClientRect(), u = Math.max(1, Math.ceil(w.width)), h = Math.max(1, Math.ceil(w.height));
@@ -17567,7 +17614,7 @@ async function pg(t, { family: e = "Material Icons", weight: a = "normal", fontS
17567
17614
  }
17568
17615
  return _.fillText(t, 0, 0), { dataUrl: g.toDataURL(), width: u, height: h };
17569
17616
  }
17570
- async function ug(t, e) {
17617
+ async function bg(t, e) {
17571
17618
  if (!(t instanceof Element))
17572
17619
  return 0;
17573
17620
  let a = '.material-icons, [class*="material-symbols"]', i = Array.from(t.querySelectorAll(a)).filter((l) => l && l.textContent && l.textContent.trim());
@@ -17578,12 +17625,12 @@ async function ug(t, e) {
17578
17625
  let c = i[l], s = o[l] || null;
17579
17626
  try {
17580
17627
  let d = getComputedStyle(s || c), m = d.fontFamily || "Material Icons";
17581
- if (!sg(m))
17628
+ if (!hg(m))
17582
17629
  continue;
17583
17630
  let p = (s || c).textContent.trim();
17584
17631
  if (!p)
17585
17632
  continue;
17586
- let f = parseInt(d.fontSize, 10) || 24, w = d.fontWeight && d.fontWeight !== "normal" ? d.fontWeight : "normal", u = hg(d), h = d.fontVariationSettings && d.fontVariationSettings !== "normal" ? d.fontVariationSettings : "", g = (s || c).className || "", { dataUrl: _, width: T, height: v } = await pg(p, { family: m, weight: w, fontSize: f, color: u, variation: h, className: g });
17633
+ let f = parseInt(d.fontSize, 10) || 24, w = d.fontWeight && d.fontWeight !== "normal" ? d.fontWeight : "normal", u = fg(d), h = d.fontVariationSettings && d.fontVariationSettings !== "normal" ? d.fontVariationSettings : "", g = (s || c).className || "", { dataUrl: _, width: T, height: v } = await yg(p, { family: m, weight: w, fontSize: f, color: u, variation: h, className: g });
17587
17634
  c.textContent = "";
17588
17635
  let M = c.ownerDocument.createElement("img");
17589
17636
  M.src = _, M.alt = p, M.style.height = `${f}px`, M.style.width = `${Math.max(1, Math.round(T / v * f))}px`, M.style.objectFit = "contain", M.style.verticalAlign = getComputedStyle(c).verticalAlign || "baseline", c.appendChild(M), r++;
@@ -17592,7 +17639,7 @@ async function ug(t, e) {
17592
17639
  }
17593
17640
  return r;
17594
17641
  }
17595
- async function gg(t, e, a, i = 32, o = "#000") {
17642
+ async function wg(t, e, a, i = 32, o = "#000") {
17596
17643
  e = e.replace(/^['"]+|['"]+$/g, "");
17597
17644
  let r = window.devicePixelRatio || 1;
17598
17645
  try {
@@ -17608,13 +17655,13 @@ async function gg(t, e, a, i = 32, o = "#000") {
17608
17655
  let p = m.getContext("2d");
17609
17656
  return p.scale(r, r), p.font = a ? `${a} ${i}px "${e}"` : `${i}px "${e}"`, p.textAlign = "left", p.textBaseline = "top", p.fillStyle = o, p.fillText(t, 0, 0), { dataUrl: m.toDataURL(), width: s, height: d };
17610
17657
  }
17611
- var fg = /* @__PURE__ */ new Set(["serif", "sans-serif", "monospace", "cursive", "fantasy", "system-ui", "emoji", "math", "fangsong", "ui-serif", "ui-sans-serif", "ui-monospace", "ui-rounded"]);
17658
+ var xg = /* @__PURE__ */ new Set(["serif", "sans-serif", "monospace", "cursive", "fantasy", "system-ui", "emoji", "math", "fangsong", "ui-serif", "ui-sans-serif", "ui-monospace", "ui-rounded"]);
17612
17659
  function to(t) {
17613
17660
  if (!t)
17614
17661
  return "";
17615
17662
  for (let e of t.split(",")) {
17616
17663
  let a = e.trim().replace(/^['"]+|['"]+$/g, "");
17617
- if (a && !fg.has(a.toLowerCase()))
17664
+ if (a && !xg.has(a.toLowerCase()))
17618
17665
  return a;
17619
17666
  }
17620
17667
  return "";
@@ -17632,11 +17679,11 @@ function $a(t) {
17632
17679
  let e = String(t ?? "normal").trim().toLowerCase();
17633
17680
  return e.startsWith("italic") ? "italic" : e.startsWith("oblique") ? "oblique" : "normal";
17634
17681
  }
17635
- function yg(t) {
17682
+ function vg(t) {
17636
17683
  let e = String(t ?? "100%").match(/(\d+(?:\.\d+)?)\s*%/);
17637
17684
  return e ? Math.max(50, Math.min(200, parseFloat(e[1]))) : 100;
17638
17685
  }
17639
- function bg(t) {
17686
+ function kg(t) {
17640
17687
  let e = String(t || "400").trim(), a = e.match(/^(\d{2,3})\s+(\d{2,3})$/);
17641
17688
  if (a) {
17642
17689
  let o = Ua(a[1]), r = Ua(a[2]);
@@ -17645,11 +17692,11 @@ function bg(t) {
17645
17692
  let i = Ua(e);
17646
17693
  return { min: i, max: i };
17647
17694
  }
17648
- function wg(t) {
17695
+ function _g(t) {
17649
17696
  let e = String(t || "normal").trim().toLowerCase();
17650
17697
  return e === "italic" ? { kind: "italic" } : e.startsWith("oblique") ? { kind: "oblique" } : { kind: "normal" };
17651
17698
  }
17652
- function xg(t) {
17699
+ function Lg(t) {
17653
17700
  let e = String(t || "100%").trim(), a = e.match(/(\d+(?:\.\d+)?)\s*%\s+(\d+(?:\.\d+)?)\s*%/);
17654
17701
  if (a) {
17655
17702
  let r = parseFloat(a[1]), l = parseFloat(a[2]);
@@ -17658,7 +17705,7 @@ function xg(t) {
17658
17705
  let i = e.match(/(\d+(?:\.\d+)?)\s*%/), o = i ? parseFloat(i[1]) : 100;
17659
17706
  return { min: o, max: o };
17660
17707
  }
17661
- function vg(t, e) {
17708
+ function zg(t, e) {
17662
17709
  if (!t)
17663
17710
  return !1;
17664
17711
  try {
@@ -17681,7 +17728,7 @@ function vg(t, e) {
17681
17728
  return !1;
17682
17729
  }
17683
17730
  }
17684
- function kg(t) {
17731
+ function Cg(t) {
17685
17732
  var a;
17686
17733
  let e = /* @__PURE__ */ new Set();
17687
17734
  for (let i of t || []) {
@@ -17704,7 +17751,7 @@ function Wi(t, e) {
17704
17751
  });
17705
17752
  }
17706
17753
  var no = /@import\s+(?:url\(\s*(['"]?)([^)"']+)\1\s*\)|(['"])([^"']+)\3)([^;]*);/g, Qa = 4;
17707
- async function _g(t, e, a) {
17754
+ async function Mg(t, e, a) {
17708
17755
  if (!t)
17709
17756
  return t;
17710
17757
  let i = /* @__PURE__ */ new Set();
@@ -17743,7 +17790,7 @@ ${h}
17743
17790
  let l = Wi(t, e || location.href);
17744
17791
  return l = await r(l, e || location.href, 0), l;
17745
17792
  }
17746
- var nr = /url\((["']?)([^"')]+)\1\)/g, Lg = /@font-face[^{}]*\{[^}]*\}/g;
17793
+ var nr = /url\((["']?)([^"')]+)\1\)/g, Pg = /@font-face[^{}]*\{[^}]*\}/g;
17747
17794
  function sr(t) {
17748
17795
  if (!t)
17749
17796
  return [];
@@ -17826,7 +17873,7 @@ async function mr(t, e, a = "") {
17826
17873
  }
17827
17874
  return i;
17828
17875
  }
17829
- function zg(t) {
17876
+ function Sg(t) {
17830
17877
  if (!t.length)
17831
17878
  return null;
17832
17879
  let e = (l, c) => t.some(([s, d]) => !(d < l || s > c)), a = e(0, 255) || e(305, 305), i = e(256, 591) || e(7680, 7935), o = e(880, 1023), r = e(1024, 1279);
@@ -17845,14 +17892,14 @@ function Ei(t = {}) {
17845
17892
  } catch {
17846
17893
  }
17847
17894
  if (i.size) {
17848
- let l = zg(r);
17895
+ let l = Sg(r);
17849
17896
  if (l && i.has(l))
17850
17897
  return !0;
17851
17898
  }
17852
17899
  return !1;
17853
17900
  };
17854
17901
  }
17855
- function Cg(t) {
17902
+ function Tg(t) {
17856
17903
  var r, l, c, s, d, m;
17857
17904
  if (!t)
17858
17905
  return t;
@@ -17866,7 +17913,7 @@ function Cg(t) {
17866
17913
  let o = 0;
17867
17914
  return t.replace(e, () => i[o++] || "");
17868
17915
  }
17869
- function Mg(t, e, a, i) {
17916
+ function Rg(t, e, a, i) {
17870
17917
  let o = Array.from(t || []).sort().join("|"), r = e ? JSON.stringify({ families: (e.families || []).map((c) => String(c).toLowerCase()).sort(), domains: (e.domains || []).map((c) => String(c).toLowerCase()).sort(), subsets: (e.subsets || []).map((c) => String(c).toLowerCase()).sort() }) : "", l = (a || []).map((c) => `${(c.family || "").toLowerCase()}::${c.weight || "normal"}::${c.style || "normal"}::${c.src || ""}`).sort().join("|");
17871
17918
  return `fonts-embed-css::req=${o}::ex=${r}::lf=${l}::px=${i || ""}`;
17872
17919
  }
@@ -17921,8 +17968,8 @@ async function dr(t, e, a, i) {
17921
17968
  }
17922
17969
  }
17923
17970
  }
17924
- async function Pg({ required: t, usedCodepoints: e, exclude: a = void 0, localFonts: i = [], useProxy: o = "" } = {}) {
17925
- var h, g, _, T, v, M, L, z, S, D, A, E, X, O, q, ae, re, pe;
17971
+ async function Dg({ required: t, usedCodepoints: e, exclude: a = void 0, localFonts: i = [], useProxy: o = "" } = {}) {
17972
+ var h, g, _, T, v, M, L, z, S, D, I, E, X, O, q, ae, re, pe;
17926
17973
  t instanceof Set || (t = /* @__PURE__ */ new Set()), e instanceof Set || (e = /* @__PURE__ */ new Set());
17927
17974
  let r = /* @__PURE__ */ new Map();
17928
17975
  for (let G of t) {
@@ -17935,10 +17982,10 @@ async function Pg({ required: t, usedCodepoints: e, exclude: a = void 0, localFo
17935
17982
  function l(G, J, K, oe) {
17936
17983
  if (!r.has(G))
17937
17984
  return !1;
17938
- let Y = r.get(G), H = bg(K), ee = wg(J), F = xg(oe), ne = H.min !== H.max, fe = H.min, ke = (me) => ee.kind === "normal" && me === "normal" || ee.kind !== "normal" && (me === "italic" || me === "oblique"), ze = !1;
17985
+ let Y = r.get(G), H = kg(K), ee = _g(J), F = Lg(oe), ne = H.min !== H.max, fe = H.min, ke = (me) => ee.kind === "normal" && me === "normal" || ee.kind !== "normal" && (me === "italic" || me === "oblique"), ze = !1;
17939
17986
  for (let me of Y) {
17940
- let ye = ne ? me.w >= H.min && me.w <= H.max : me.w === fe, _e = ke($a(me.s)), Re = me.st >= F.min && me.st <= F.max;
17941
- if (ye && _e && Re) {
17987
+ let be = ne ? me.w >= H.min && me.w <= H.max : me.w === fe, _e = ke($a(me.s)), Re = me.st >= F.min && me.st <= F.max;
17988
+ if (be && _e && Re) {
17942
17989
  ze = !0;
17943
17990
  break;
17944
17991
  }
@@ -17947,22 +17994,22 @@ async function Pg({ required: t, usedCodepoints: e, exclude: a = void 0, localFo
17947
17994
  return !0;
17948
17995
  if (!ne)
17949
17996
  for (let me of Y) {
17950
- let ye = ke($a(me.s)), _e = me.st >= F.min && me.st <= F.max;
17951
- if (Math.abs(fe - me.w) <= 300 && ye && _e)
17997
+ let be = ke($a(me.s)), _e = me.st >= F.min && me.st <= F.max;
17998
+ if (Math.abs(fe - me.w) <= 300 && be && _e)
17952
17999
  return !0;
17953
18000
  }
17954
18001
  if (!ne && ee.kind === "normal" && Y.some((me) => $a(me.s) !== "normal"))
17955
18002
  for (let me of Y) {
17956
- let ye = Math.abs(fe - me.w) <= 300, _e = me.st >= F.min && me.st <= F.max;
17957
- if (ye && _e)
18003
+ let be = Math.abs(fe - me.w) <= 300, _e = me.st >= F.min && me.st <= F.max;
18004
+ if (be && _e)
17958
18005
  return !0;
17959
18006
  }
17960
18007
  return !1;
17961
18008
  }
17962
- let c = Ei(a), s = Mg(t, a, i, o);
18009
+ let c = Ei(a), s = Rg(t, a, i, o);
17963
18010
  if ((h = V.resource) != null && h.has(s))
17964
18011
  return V.resource.get(s);
17965
- let d = kg(t), m = [], p = no;
18012
+ let d = Cg(t), m = [], p = no;
17966
18013
  for (let G of document.querySelectorAll("style")) {
17967
18014
  let J = G.textContent || "";
17968
18015
  for (let K of J.matchAll(p)) {
@@ -17986,7 +18033,7 @@ async function Pg({ required: t, usedCodepoints: e, exclude: a = void 0, localFo
17986
18033
  K = new URL(G.href, location.href).origin === location.origin;
17987
18034
  } catch {
17988
18035
  }
17989
- if (!K && !vg(G.href, d))
18036
+ if (!K && !zg(G.href, d))
17990
18037
  continue;
17991
18038
  if (K) {
17992
18039
  let Y = Array.from(document.styleSheets).find((H) => H.href === G.href);
@@ -17999,20 +18046,20 @@ async function Pg({ required: t, usedCodepoints: e, exclude: a = void 0, localFo
17999
18046
  }
18000
18047
  if (!J && (J = (await Je(G.href, { as: "text", useProxy: o })).data, Ke(G.href)))
18001
18048
  continue;
18002
- J = await _g(J, G.href, o);
18049
+ J = await Mg(J, G.href, o);
18003
18050
  let oe = "";
18004
- for (let Y of J.match(Lg) || []) {
18051
+ for (let Y of J.match(Pg) || []) {
18005
18052
  let H = (((g = Y.match(/font-family:\s*([^;]+);/i)) == null ? void 0 : g[1]) || "").trim(), ee = to(H);
18006
18053
  if (!ee || Ke(ee))
18007
18054
  continue;
18008
18055
  let F = (((_ = Y.match(/font-weight:\s*([^;]+);/i)) == null ? void 0 : _[1]) || "400").trim(), ne = (((T = Y.match(/font-style:\s*([^;]+);/i)) == null ? void 0 : T[1]) || "normal").trim(), fe = (((v = Y.match(/font-stretch:\s*([^;]+);/i)) == null ? void 0 : v[1]) || "100%").trim(), ke = (((M = Y.match(/unicode-range:\s*([^;]+);/i)) == null ? void 0 : M[1]) || "").trim(), ze = (((L = Y.match(/src\s*:\s*([^;}]+)[;}]/i)) == null ? void 0 : L[1]) || "").trim(), me = wo(ze, G.href);
18009
18056
  if (!l(ee, ne, F, fe))
18010
18057
  continue;
18011
- let ye = sr(ke);
18012
- if (!cr(e, ye))
18058
+ let be = sr(ke);
18059
+ if (!cr(e, be))
18013
18060
  continue;
18014
18061
  let _e = { family: ee, weightSpec: F, styleSpec: ne, stretchSpec: fe, unicodeRange: ke, srcRaw: ze, srcUrls: me, href: G.href };
18015
- if (a && c(_e, ye))
18062
+ if (a && c(_e, be))
18016
18063
  continue;
18017
18064
  let Re = /url\(/i.test(ze) ? await mr(Y, G.href, o) : Y;
18018
18065
  oe += Re;
@@ -18046,7 +18093,7 @@ async function Pg({ required: t, usedCodepoints: e, exclude: a = void 0, localFo
18046
18093
  try {
18047
18094
  let oe = await Je(G._snapdomSrc, { as: "dataURL", useProxy: o, silent: !0 });
18048
18095
  if (oe.ok && typeof oe.data == "string")
18049
- K = oe.data, (A = V.resource) == null || A.set(G._snapdomSrc, K), (E = V.font) == null || E.add(G._snapdomSrc);
18096
+ K = oe.data, (I = V.resource) == null || I.set(G._snapdomSrc, K), (E = V.font) == null || E.add(G._snapdomSrc);
18050
18097
  else
18051
18098
  continue;
18052
18099
  } catch {
@@ -18082,9 +18129,9 @@ async function Pg({ required: t, usedCodepoints: e, exclude: a = void 0, localFo
18082
18129
  }
18083
18130
  f += `@font-face{font-family:'${J}';src:url(${ee});font-style:${oe};font-weight:${K};font-stretch:${Y};}`;
18084
18131
  }
18085
- return f && (f = Cg(f), (pe = V.resource) == null || pe.set(s, f)), f;
18132
+ return f && (f = Tg(f), (pe = V.resource) == null || pe.set(s, f)), f;
18086
18133
  }
18087
- function Sg(t) {
18134
+ function Ig(t) {
18088
18135
  let e = /* @__PURE__ */ new Set();
18089
18136
  if (!t)
18090
18137
  return e;
@@ -18092,7 +18139,7 @@ function Sg(t) {
18092
18139
  let c = to(l.fontFamily);
18093
18140
  if (!c)
18094
18141
  return;
18095
- let s = (d, m, p) => `${c}__${Ua(d)}__${$a(m)}__${yg(p)}`;
18142
+ let s = (d, m, p) => `${c}__${Ua(d)}__${$a(m)}__${vg(p)}`;
18096
18143
  e.add(s(l.fontWeight, l.fontStyle, l.fontStretch));
18097
18144
  };
18098
18145
  i(getComputedStyle(t));
@@ -18109,7 +18156,7 @@ function Sg(t) {
18109
18156
  }
18110
18157
  return e;
18111
18158
  }
18112
- function Tg(t) {
18159
+ function Ag(t) {
18113
18160
  var o;
18114
18161
  let e = /* @__PURE__ */ new Set(), a = (r) => {
18115
18162
  if (r)
@@ -18141,7 +18188,7 @@ function Tg(t) {
18141
18188
  }
18142
18189
  return e;
18143
18190
  }
18144
- async function Rg(t, e = 2) {
18191
+ async function Gg(t, e = 2) {
18145
18192
  try {
18146
18193
  await document.fonts.ready;
18147
18194
  } catch {
@@ -18161,7 +18208,7 @@ async function Rg(t, e = 2) {
18161
18208
  for (let o = 0; o < Math.max(1, e); o++)
18162
18209
  i(), await new Promise((r) => requestAnimationFrame(() => requestAnimationFrame(r)));
18163
18210
  }
18164
- async function Dg(t, e, a, i = {}) {
18211
+ async function Fg(t, e, a, i = {}) {
18165
18212
  let o = [[t, e]], r = ["background-image", "mask", "mask-image", "-webkit-mask", "-webkit-mask-image", "mask-source", "mask-box-image-source", "mask-border-source", "-webkit-mask-box-image-source", "border-image", "border-image-source"], l = ["mask-position", "mask-size", "mask-repeat", "-webkit-mask-position", "-webkit-mask-size", "-webkit-mask-repeat", "mask-origin", "mask-clip", "-webkit-mask-origin", "-webkit-mask-clip", "-webkit-mask-position-x", "-webkit-mask-position-y"], c = ["background-position", "background-position-x", "background-position-y", "background-size", "background-repeat", "background-origin", "background-clip", "background-attachment", "background-blend-mode"], s = ["border-image-slice", "border-image-width", "border-image-outset", "border-image-repeat"];
18166
18213
  for (; o.length; ) {
18167
18214
  let [d, m] = o.shift(), p = a.get(d) || rr(d);
@@ -18220,7 +18267,7 @@ function hr(t) {
18220
18267
  }
18221
18268
  return typeof t == "function" ? t() : t;
18222
18269
  }
18223
- function Ig(...t) {
18270
+ function Ng(...t) {
18224
18271
  let e = t.flat();
18225
18272
  for (let a of e) {
18226
18273
  let i = hr(a);
@@ -18241,7 +18288,7 @@ async function Qe(t, e, a) {
18241
18288
  }
18242
18289
  return i;
18243
18290
  }
18244
- async function Ag(t, e, a) {
18291
+ async function Wg(t, e, a) {
18245
18292
  let i = [], o = pr(e);
18246
18293
  for (let r of o) {
18247
18294
  let l = r && typeof r[t] == "function" ? r[t] : null;
@@ -18252,7 +18299,7 @@ async function Ag(t, e, a) {
18252
18299
  }
18253
18300
  return i;
18254
18301
  }
18255
- function Gg(t) {
18302
+ function Eg(t) {
18256
18303
  let e = [];
18257
18304
  if (Array.isArray(t))
18258
18305
  for (let a of t) {
@@ -18266,15 +18313,15 @@ function Gg(t) {
18266
18313
  a && a.name && !e.some((i) => i.name === a.name) && e.push(a);
18267
18314
  return Object.freeze(e);
18268
18315
  }
18269
- function Fg(t, e, a = !1) {
18270
- return !t || t.plugins && !a || (t.plugins = Gg(e)), t;
18316
+ function Bg(t, e, a = !1) {
18317
+ return !t || t.plugins && !a || (t.plugins = Eg(e)), t;
18271
18318
  }
18272
18319
  var Bi = /* @__PURE__ */ new WeakMap(), so = /* @__PURE__ */ new Map(), co = 0;
18273
18320
  function Za() {
18274
18321
  co++;
18275
18322
  }
18276
18323
  var Zi = !1;
18277
- function Ng(t = document.documentElement) {
18324
+ function Zg(t = document.documentElement) {
18278
18325
  var e, a;
18279
18326
  if (!Zi) {
18280
18327
  Zi = !0;
@@ -18294,7 +18341,7 @@ function Ng(t = document.documentElement) {
18294
18341
  }
18295
18342
  }
18296
18343
  }
18297
- function Wg(t, e = {}) {
18344
+ function Og(t, e = {}) {
18298
18345
  let a = {}, i = t.getPropertyValue("visibility");
18299
18346
  for (let r = 0; r < t.length; r++) {
18300
18347
  let l = t[r], c = t.getPropertyValue(l);
@@ -18321,52 +18368,52 @@ function Wg(t, e = {}) {
18321
18368
  return i === "hidden" && (a.opacity = "0"), a;
18322
18369
  }
18323
18370
  var Oi = /* @__PURE__ */ new WeakMap();
18324
- function Eg(t) {
18371
+ function Vg(t) {
18325
18372
  let e = Oi.get(t);
18326
18373
  return e || (e = Object.entries(t).sort((a, i) => a[0] < i[0] ? -1 : a[0] > i[0] ? 1 : 0).map(([a, i]) => `${a}:${i}`).join(";"), Oi.set(t, e), e);
18327
18374
  }
18328
- function Bg(t, e = null, a = {}) {
18375
+ function jg(t, e = null, a = {}) {
18329
18376
  let i = Bi.get(t);
18330
18377
  if (i && i.epoch === co)
18331
18378
  return i.snapshot;
18332
- let o = e || getComputedStyle(t), r = Wg(o, a);
18333
- return Hg(t, o, r), Bi.set(t, { epoch: co, snapshot: r }), r;
18379
+ let o = e || getComputedStyle(t), r = Og(o, a);
18380
+ return Jg(t, o, r), Bi.set(t, { epoch: co, snapshot: r }), r;
18334
18381
  }
18335
- function Zg(t, e) {
18382
+ function Xg(t, e) {
18336
18383
  return t && t.session && t.persist ? t : t && (t.styleMap || t.styleCache || t.nodeMap) ? { session: t, persist: { snapshotKeyCache: so, defaultStyle: V.defaultStyle, baseStyle: V.baseStyle, image: V.image, resource: V.resource, background: V.background, font: V.font }, options: e || {} } : { session: V.session, persist: { snapshotKeyCache: so, defaultStyle: V.defaultStyle, baseStyle: V.baseStyle, image: V.image, resource: V.resource, background: V.background, font: V.font }, options: t || e || {} };
18337
18384
  }
18338
18385
  async function st(t, e, a, i) {
18339
18386
  var f, w, u;
18340
18387
  if (t.tagName === "STYLE")
18341
18388
  return;
18342
- let o = Zg(a, i), r = o.options && o.options.cache || "auto";
18343
- if (r !== "disabled" && Ng(document.documentElement), r === "disabled" && !o.session.__bumpedForDisabled && (Za(), so.clear(), o.session.__bumpedForDisabled = !0), bo.has((f = t.tagName) == null ? void 0 : f.toLowerCase())) {
18389
+ let o = Xg(a, i), r = o.options && o.options.cache || "auto";
18390
+ if (r !== "disabled" && Zg(document.documentElement), r === "disabled" && !o.session.__bumpedForDisabled && (Za(), so.clear(), o.session.__bumpedForDisabled = !0), bo.has((f = t.tagName) == null ? void 0 : f.toLowerCase())) {
18344
18391
  let h = (w = t.getAttribute) == null ? void 0 : w.call(t, "style");
18345
18392
  h && e.setAttribute("style", h);
18346
18393
  }
18347
18394
  let { session: l, persist: c } = o;
18348
18395
  l.styleCache.has(t) || l.styleCache.set(t, getComputedStyle(t));
18349
- let s = l.styleCache.get(t), d = Bg(t, s, o.options), m = Eg(d), p = c.snapshotKeyCache.get(m);
18396
+ let s = l.styleCache.get(t), d = jg(t, s, o.options), m = Vg(d), p = c.snapshotKeyCache.get(m);
18350
18397
  if (!p) {
18351
18398
  let h = ((u = t.tagName) == null ? void 0 : u.toLowerCase()) || "div";
18352
18399
  p = ro(d, h), c.snapshotKeyCache.set(m, p);
18353
18400
  }
18354
18401
  l.styleMap.set(e, p);
18355
18402
  }
18356
- function Og(t) {
18403
+ function Hg(t) {
18357
18404
  return t instanceof HTMLImageElement || t instanceof HTMLCanvasElement || t instanceof HTMLVideoElement || t instanceof HTMLIFrameElement || t instanceof SVGElement || t instanceof HTMLObjectElement || t instanceof HTMLEmbedElement;
18358
18405
  }
18359
- function Vg(t) {
18406
+ function Yg(t) {
18360
18407
  return t.backgroundImage && t.backgroundImage !== "none" || t.backgroundColor && t.backgroundColor !== "rgba(0, 0, 0, 0)" && t.backgroundColor !== "transparent" || (parseFloat(t.borderTopWidth) || 0) > 0 || (parseFloat(t.borderBottomWidth) || 0) > 0 || (parseFloat(t.paddingTop) || 0) > 0 || (parseFloat(t.paddingBottom) || 0) > 0 ? !0 : (t.overflowBlock || t.overflowY || "visible") !== "visible";
18361
18408
  }
18362
- function jg(t) {
18409
+ function Ug(t) {
18363
18410
  let e = t.parentElement;
18364
18411
  if (!e)
18365
18412
  return !1;
18366
18413
  let a = getComputedStyle(e).display || "";
18367
18414
  return a.includes("flex") || a.includes("grid");
18368
18415
  }
18369
- function Xg(t, e) {
18416
+ function $g(t, e) {
18370
18417
  if (t.textContent && /\S/.test(t.textContent))
18371
18418
  return !0;
18372
18419
  let a = t.firstElementChild, i = t.lastElementChild;
@@ -18378,26 +18425,26 @@ function Xg(t, e) {
18378
18425
  let r = parseFloat(e.paddingTop) || 0, l = parseFloat(e.paddingBottom) || 0;
18379
18426
  return o > r + l;
18380
18427
  }
18381
- function Hg(t, e, a) {
18428
+ function Jg(t, e, a) {
18382
18429
  if (t instanceof HTMLElement && t.style && t.style.height)
18383
18430
  return;
18384
18431
  let i = t.tagName && t.tagName.toLowerCase();
18385
18432
  if (!i || i !== "div" && i !== "section" && i !== "article" && i !== "main" && i !== "aside" && i !== "header" && i !== "footer" && i !== "nav" && i !== "ol" && i !== "ul" && i !== "li")
18386
18433
  return;
18387
18434
  let o = e.display || "";
18388
- if (o.includes("flex") || o.includes("grid") || Og(t))
18435
+ if (o.includes("flex") || o.includes("grid") || Hg(t))
18389
18436
  return;
18390
18437
  let r = e.position;
18391
- if (r === "absolute" || r === "fixed" || r === "sticky" || e.transform !== "none" || Vg(e) || jg(t))
18438
+ if (r === "absolute" || r === "fixed" || r === "sticky" || e.transform !== "none" || Yg(e) || Ug(t))
18392
18439
  return;
18393
18440
  let l = e.overflowX || e.overflow || "visible", c = e.overflowY || e.overflow || "visible";
18394
18441
  if (l !== "visible" || c !== "visible")
18395
18442
  return;
18396
18443
  let s = e.clip;
18397
- s && s !== "auto" && s !== "rect(auto, auto, auto, auto)" || e.visibility === "hidden" || e.opacity === "0" || Xg(t, e) && (delete a.height, delete a["block-size"]);
18444
+ s && s !== "auto" && s !== "rect(auto, auto, auto, auto)" || e.visibility === "hidden" || e.opacity === "0" || $g(t, e) && (delete a.height, delete a["block-size"]);
18398
18445
  }
18399
18446
  var ur = ["fill", "stroke", "color", "background-color", "stop-color"], Vi = /* @__PURE__ */ new Map();
18400
- function Yg(t, e) {
18447
+ function Kg(t, e) {
18401
18448
  let a = e + "::" + t.toLowerCase(), i = Vi.get(a);
18402
18449
  if (i)
18403
18450
  return i;
@@ -18408,7 +18455,7 @@ function Yg(t, e) {
18408
18455
  s[d] = c.getPropertyValue(d) || "";
18409
18456
  return l.remove(), Vi.set(a, s), s;
18410
18457
  }
18411
- function Ug(t, e) {
18458
+ function qg(t, e) {
18412
18459
  var r, l, c;
18413
18460
  if (!(t instanceof Element) || !(e instanceof Element))
18414
18461
  return;
@@ -18467,7 +18514,7 @@ function Ug(t, e) {
18467
18514
  }
18468
18515
  if (!o)
18469
18516
  return;
18470
- let s = t.namespaceURI || "html", d = Yg(t.tagName, s);
18517
+ let s = t.namespaceURI || "html", d = Kg(t.tagName, s);
18471
18518
  for (let m of ur) {
18472
18519
  let p = o.getPropertyValue(m) || "", f = d[m] || "";
18473
18520
  if (p && p !== f)
@@ -18488,27 +18535,27 @@ function oo(t, e, a) {
18488
18535
  r();
18489
18536
  })));
18490
18537
  }
18491
- function $g(t) {
18538
+ function Qg(t) {
18492
18539
  return t = t.trim(), !t || /:not\(\s*\[data-sd-slotted\]\s*\)\s*$/.test(t) ? t : `${t}:not([data-sd-slotted])`;
18493
18540
  }
18494
- function Jg(t, e, a = !0) {
18541
+ function e0(t, e, a = !0) {
18495
18542
  return t.split(",").map((i) => i.trim()).filter(Boolean).map((i) => {
18496
18543
  if (i.startsWith(":where(") || i.startsWith("@"))
18497
18544
  return i;
18498
- let o = a ? $g(i) : i;
18545
+ let o = a ? Qg(i) : i;
18499
18546
  return `:where(${e} ${o})`;
18500
18547
  }).join(", ");
18501
18548
  }
18502
- function Kg(t, e) {
18549
+ function t0(t, e) {
18503
18550
  return t ? (t = t.replace(/:host\(([^)]+)\)/g, (a, i) => `:where(${e}:is(${i.trim()}))`), t = t.replace(/:host\b/g, `:where(${e})`), t = t.replace(/:host-context\(([^)]+)\)/g, (a, i) => `:where(:where(${i.trim()}) ${e})`), t = t.replace(/::slotted\(([^)]+)\)/g, (a, i) => `:where(${e} ${i.trim()})`), t = t.replace(/(^|})(\s*)([^@}{]+){/g, (a, i, o, r) => {
18504
- let l = Jg(r, e, !0);
18551
+ let l = e0(r, e, !0);
18505
18552
  return `${i}${o}${l}{`;
18506
18553
  }), t) : "";
18507
18554
  }
18508
- function qg(t) {
18555
+ function a0(t) {
18509
18556
  return t.shadowScopeSeq = (t.shadowScopeSeq || 0) + 1, `s${t.shadowScopeSeq}`;
18510
18557
  }
18511
- function Qg(t) {
18558
+ function o0(t) {
18512
18559
  let e = "";
18513
18560
  try {
18514
18561
  t.querySelectorAll("style").forEach((i) => {
@@ -18528,13 +18575,13 @@ function Qg(t) {
18528
18575
  }
18529
18576
  return e;
18530
18577
  }
18531
- function e0(t, e, a) {
18578
+ function i0(t, e, a) {
18532
18579
  if (!e)
18533
18580
  return;
18534
18581
  let i = document.createElement("style");
18535
18582
  i.setAttribute("data-sd", a), i.textContent = e, t.insertBefore(i, t.firstChild || null);
18536
18583
  }
18537
- function t0(t, e) {
18584
+ function r0(t, e) {
18538
18585
  try {
18539
18586
  let a = t.currentSrc || t.src || "";
18540
18587
  if (!a)
@@ -18543,7 +18590,7 @@ function t0(t, e) {
18543
18590
  } catch {
18544
18591
  }
18545
18592
  }
18546
- function a0(t) {
18593
+ function l0(t) {
18547
18594
  let e = /* @__PURE__ */ new Set();
18548
18595
  if (!t)
18549
18596
  return e;
@@ -18552,7 +18599,7 @@ function a0(t) {
18552
18599
  e.add(i[1]);
18553
18600
  return e;
18554
18601
  }
18555
- function o0(t, e) {
18602
+ function n0(t, e) {
18556
18603
  try {
18557
18604
  let a = getComputedStyle(t).getPropertyValue(e).trim();
18558
18605
  if (a)
@@ -18567,19 +18614,19 @@ function o0(t, e) {
18567
18614
  }
18568
18615
  return "";
18569
18616
  }
18570
- function i0(t, e, a) {
18617
+ function s0(t, e, a) {
18571
18618
  let i = [];
18572
18619
  for (let o of e) {
18573
- let r = o0(t, o);
18620
+ let r = n0(t, o);
18574
18621
  r && i.push(`${o}: ${r};`);
18575
18622
  }
18576
18623
  return i.length ? `${a}{${i.join("")}}
18577
18624
  ` : "";
18578
18625
  }
18579
- function r0(t) {
18626
+ function c0(t) {
18580
18627
  t && (t.nodeType === Node.ELEMENT_NODE && t.setAttribute("data-sd-slotted", ""), t.querySelectorAll && t.querySelectorAll("*").forEach((e) => e.setAttribute("data-sd-slotted", "")));
18581
18628
  }
18582
- async function l0(t, e = 3) {
18629
+ async function m0(t, e = 3) {
18583
18630
  let a = () => {
18584
18631
  var r;
18585
18632
  try {
@@ -18592,7 +18639,7 @@ async function l0(t, e = 3) {
18592
18639
  await new Promise((r) => setTimeout(r, 0)), i = a(), o++;
18593
18640
  return i && (i.body || i.documentElement) ? i : null;
18594
18641
  }
18595
- function n0(t) {
18642
+ function d0(t) {
18596
18643
  let e = t.getBoundingClientRect(), a = 0, i = 0, o = 0, r = 0;
18597
18644
  try {
18598
18645
  let s = getComputedStyle(t);
@@ -18602,7 +18649,7 @@ function n0(t) {
18602
18649
  let l = Math.max(0, Math.round(e.width - (a + i))), c = Math.max(0, Math.round(e.height - (o + r)));
18603
18650
  return { contentWidth: l, contentHeight: c, rect: e };
18604
18651
  }
18605
- function s0(t, e, a) {
18652
+ function h0(t, e, a) {
18606
18653
  let i = t.createElement("style");
18607
18654
  return i.setAttribute("data-sd-iframe-pin", ""), i.textContent = `html, body {margin: 0 !important;padding: 0 !important;width: ${e}px !important;height: ${a}px !important;min-width: ${e}px !important;min-height: ${a}px !important;box-sizing: border-box !important;overflow: hidden !important;background-clip: border-box !important;}`, (t.head || t.documentElement).appendChild(i), () => {
18608
18655
  try {
@@ -18611,14 +18658,14 @@ function s0(t, e, a) {
18611
18658
  }
18612
18659
  };
18613
18660
  }
18614
- async function c0(t, e, a) {
18615
- let i = await l0(t, 3);
18661
+ async function p0(t, e, a) {
18662
+ let i = await m0(t, 3);
18616
18663
  if (!i)
18617
18664
  throw new Error("iframe document not accessible/ready");
18618
- let { contentWidth: o, contentHeight: r, rect: l } = n0(t), c = a == null ? void 0 : a.snap;
18665
+ let { contentWidth: o, contentHeight: r, rect: l } = d0(t), c = a == null ? void 0 : a.snap;
18619
18666
  if (!c || typeof c.toPng != "function")
18620
18667
  throw new Error("snapdom.toPng not available in iframe or window");
18621
- let s = { ...a, scale: 1 }, d = s0(i, o, r), m;
18668
+ let s = { ...a, scale: 1 }, d = h0(i, o, r), m;
18622
18669
  try {
18623
18670
  m = await c.toPng(i.documentElement, s);
18624
18671
  } finally {
@@ -18650,11 +18697,11 @@ async function Oa(t) {
18650
18697
  throw Ea.delete(t), i;
18651
18698
  }
18652
18699
  }
18653
- var m0 = /\bblob:[^)"'\s]+/g;
18700
+ var u0 = /\bblob:[^)"'\s]+/g;
18654
18701
  async function ji(t) {
18655
18702
  if (!t || t.indexOf("blob:") === -1)
18656
18703
  return t;
18657
- let e = Array.from(new Set(t.match(m0) || []));
18704
+ let e = Array.from(new Set(t.match(u0) || []));
18658
18705
  if (e.length === 0)
18659
18706
  return t;
18660
18707
  let a = t;
@@ -18669,16 +18716,16 @@ async function ji(t) {
18669
18716
  function Ya(t) {
18670
18717
  return typeof t == "string" && t.startsWith("blob:");
18671
18718
  }
18672
- function d0(t) {
18719
+ function g0(t) {
18673
18720
  return (t || "").split(",").map((e) => e.trim()).filter(Boolean).map((e) => {
18674
18721
  let a = e.match(/^(\S+)(\s+.+)?$/);
18675
18722
  return a ? { url: a[1], desc: a[2] || "" } : null;
18676
18723
  }).filter(Boolean);
18677
18724
  }
18678
- function h0(t) {
18725
+ function f0(t) {
18679
18726
  return t.map((e) => e.desc ? `${e.url} ${e.desc.trim()}` : e.url).join(", ");
18680
18727
  }
18681
- async function p0(t) {
18728
+ async function y0(t) {
18682
18729
  var l, c;
18683
18730
  if (!t)
18684
18731
  return;
@@ -18692,14 +18739,14 @@ async function p0(t) {
18692
18739
  }
18693
18740
  let m = s.getAttribute("srcset");
18694
18741
  if (m && m.includes("blob:")) {
18695
- let p = d0(m), f = !1;
18742
+ let p = g0(m), f = !1;
18696
18743
  for (let w of p)
18697
18744
  if (Ya(w.url))
18698
18745
  try {
18699
18746
  w.url = await Oa(w.url), f = !0;
18700
18747
  } catch {
18701
18748
  }
18702
- f && s.setAttribute("srcset", h0(p));
18749
+ f && s.setAttribute("srcset", f0(p));
18703
18750
  }
18704
18751
  } catch {
18705
18752
  }
@@ -18748,7 +18795,7 @@ async function Ja(t, e, a) {
18748
18795
  let i = /* @__PURE__ */ new Set(), o = null, r = null;
18749
18796
  if (t.nodeType === Node.ELEMENT_NODE) {
18750
18797
  let h = (t.localName || t.tagName || "").toLowerCase();
18751
- if (t.id === "snapdom-sandbox" || t.hasAttribute("data-snapdom-sandbox") || qu.has(h))
18798
+ if (t.id === "snapdom-sandbox" || t.hasAttribute("data-snapdom-sandbox") || ag.has(h))
18752
18799
  return null;
18753
18800
  }
18754
18801
  if (t.nodeType === Node.TEXT_NODE || t.nodeType !== Node.ELEMENT_NODE)
@@ -18794,7 +18841,7 @@ async function Ja(t, e, a) {
18794
18841
  }
18795
18842
  if (h)
18796
18843
  try {
18797
- return await c0(t, e, a);
18844
+ return await p0(t, e, a);
18798
18845
  } catch (g) {
18799
18846
  console.warn("[SnapDOM] iframe rasterization failed, fallback:", g);
18800
18847
  }
@@ -18849,8 +18896,8 @@ async function Ja(t, e, a) {
18849
18896
  }
18850
18897
  let l;
18851
18898
  try {
18852
- if (l = t.cloneNode(!1), Ug(t, l), e.nodeMap.set(l, t), t.tagName === "IMG") {
18853
- t0(t, l);
18899
+ if (l = t.cloneNode(!1), qg(t, l), e.nodeMap.set(l, t), t.tagName === "IMG") {
18900
+ r0(t, l);
18854
18901
  try {
18855
18902
  let h = t.getBoundingClientRect(), g = Math.round(h.width || 0), _ = Math.round(h.height || 0);
18856
18903
  if (!g || !_) {
@@ -18877,43 +18924,43 @@ async function Ja(t, e, a) {
18877
18924
  l.style.width = `${h.width}px`, l.style.height = `${h.height}px`;
18878
18925
  }
18879
18926
  if (t instanceof HTMLInputElement && (l.value = t.value, l.setAttribute("value", t.value), t.checked !== void 0 && (l.checked = t.checked, t.checked && l.setAttribute("checked", ""), t.indeterminate && (l.indeterminate = t.indeterminate))), t instanceof HTMLSelectElement && (o = t.value), t instanceof HTMLTextAreaElement && (r = t.value), st(t, l, e, a), t.shadowRoot) {
18880
- let h = function(D, A) {
18927
+ let h = function(D, I) {
18881
18928
  if (D.nodeType === Node.ELEMENT_NODE && D.tagName === "STYLE")
18882
- return A(null);
18929
+ return I(null);
18883
18930
  Ja(D, e, a).then((E) => {
18884
- A(E || null);
18931
+ I(E || null);
18885
18932
  }).catch(() => {
18886
- A(null);
18933
+ I(null);
18887
18934
  });
18888
18935
  };
18889
18936
  try {
18890
18937
  let D = t.shadowRoot.querySelectorAll("slot");
18891
- for (let A of D) {
18938
+ for (let I of D) {
18892
18939
  let E = [];
18893
18940
  try {
18894
- E = ((p = A.assignedNodes) == null ? void 0 : p.call(A, { flatten: !0 })) || ((f = A.assignedNodes) == null ? void 0 : f.call(A)) || [];
18941
+ E = ((p = I.assignedNodes) == null ? void 0 : p.call(I, { flatten: !0 })) || ((f = I.assignedNodes) == null ? void 0 : f.call(I)) || [];
18895
18942
  } catch {
18896
- E = ((w = A.assignedNodes) == null ? void 0 : w.call(A)) || [];
18943
+ E = ((w = I.assignedNodes) == null ? void 0 : w.call(I)) || [];
18897
18944
  }
18898
18945
  for (let X of E)
18899
18946
  i.add(X);
18900
18947
  }
18901
18948
  } catch {
18902
18949
  }
18903
- let g = qg(e), _ = `[data-sd="${g}"]`;
18950
+ let g = a0(e), _ = `[data-sd="${g}"]`;
18904
18951
  try {
18905
18952
  l.setAttribute("data-sd", g);
18906
18953
  } catch {
18907
18954
  }
18908
- let T = Qg(t.shadowRoot), v = Kg(T, _), M = a0(T), L = i0(t, M, _);
18909
- e0(l, L + v, g);
18955
+ let T = o0(t.shadowRoot), v = t0(T, _), M = l0(T), L = s0(t, M, _);
18956
+ i0(l, L + v, g);
18910
18957
  let z = document.createDocumentFragment(), S = await oo(Array.from(t.shadowRoot.childNodes), h, a.fast);
18911
18958
  z.append(...S.filter((D) => !!D)), l.appendChild(z);
18912
18959
  }
18913
18960
  if (t.tagName === "SLOT") {
18914
18961
  let h = function(M, L) {
18915
18962
  Ja(M, e, a).then((z) => {
18916
- z && r0(z), L(z || null);
18963
+ z && c0(z), L(z || null);
18917
18964
  }).catch(() => {
18918
18965
  L(null);
18919
18966
  });
@@ -18937,10 +18984,10 @@ async function Ja(t, e, a) {
18937
18984
  }
18938
18985
  return r !== null && l instanceof HTMLTextAreaElement && (l.textContent = r), l;
18939
18986
  }
18940
- function u0(t) {
18987
+ function b0(t) {
18941
18988
  return /\bcounter\s*\(|\bcounters\s*\(/.test(t || "");
18942
18989
  }
18943
- function g0(t) {
18990
+ function w0(t) {
18944
18991
  return (t || "").replace(/"([^"]*)"/g, "$1");
18945
18992
  }
18946
18993
  function Xi(t, e = !1) {
@@ -18974,7 +19021,7 @@ function Yi(t, e) {
18974
19021
  return String(Math.max(0, t));
18975
19022
  }
18976
19023
  }
18977
- function f0(t) {
19024
+ function x0(t) {
18978
19025
  let e = () => {
18979
19026
  var f;
18980
19027
  return ((f = V == null ? void 0 : V.session) == null ? void 0 : f.__counterEpoch) ?? 0;
@@ -19007,8 +19054,8 @@ function f0(t) {
19007
19054
  continue;
19008
19055
  let D = w.get(z);
19009
19056
  if (D && D.length) {
19010
- let A = D.slice();
19011
- A.push(S), h.set(z, A);
19057
+ let I = D.slice();
19058
+ I.push(S), h.set(z, I);
19012
19059
  } else
19013
19060
  h.set(z, [S]);
19014
19061
  }
@@ -19029,8 +19076,8 @@ function f0(t) {
19029
19076
  if (getComputedStyle(u).display === "list-item" && r(u)) {
19030
19077
  let M = u.parentElement, L = 1;
19031
19078
  if (M && M.tagName === "OL") {
19032
- let S = M.getAttribute("start"), D = Number.isFinite(Number(S)) ? Number(S) : 1, A = l(u), E = u.getAttribute("value");
19033
- L = Number.isFinite(Number(E)) ? Number(E) : D + A;
19079
+ let S = M.getAttribute("start"), D = Number.isFinite(Number(S)) ? Number(S) : 1, I = l(u), E = u.getAttribute("value");
19080
+ L = Number.isFinite(Number(E)) ? Number(E) : D + I;
19034
19081
  } else
19035
19082
  L = 1 + l(u);
19036
19083
  let z = h.get("list-item") || [];
@@ -19068,7 +19115,7 @@ function f0(t) {
19068
19115
  return u ? u.slice() : [];
19069
19116
  } };
19070
19117
  }
19071
- function y0(t, e, a) {
19118
+ function v0(t, e, a) {
19072
19119
  if (!t || t === "none")
19073
19120
  return t;
19074
19121
  try {
@@ -19083,13 +19130,13 @@ function y0(t, e, a) {
19083
19130
  return h.length ? h.map((g) => Yi(g, u)).join(w) : "";
19084
19131
  }
19085
19132
  });
19086
- return g0(o);
19133
+ return w0(o);
19087
19134
  } catch {
19088
19135
  return "- ";
19089
19136
  }
19090
19137
  }
19091
19138
  var lt = /* @__PURE__ */ new WeakMap(), Ui = 300;
19092
- function b0(t, e) {
19139
+ function k0(t, e) {
19093
19140
  let a = gr(t);
19094
19141
  return e ? (e.__pseudoPreflightFp !== a && (e.__pseudoPreflight = Ji(t), e.__pseudoPreflightFp = a), !!e.__pseudoPreflight) : Ji(t);
19095
19142
  }
@@ -19176,16 +19223,16 @@ function Ji(t = document) {
19176
19223
  return t.querySelector('[style*="counter("], [style*="counters("]') ? (lt.set(t, { fingerprint: e, result: !0 }), !0) : (lt.set(t, { fingerprint: e, result: !1 }), !1);
19177
19224
  }
19178
19225
  var ct = /* @__PURE__ */ new WeakMap(), Ki = -1;
19179
- function w0(t) {
19226
+ function _0(t) {
19180
19227
  return (t || "").replace(/"([^"]*)"/g, "$1");
19181
19228
  }
19182
- function x0(t) {
19229
+ function L0(t) {
19183
19230
  if (!t)
19184
19231
  return "";
19185
19232
  let e = [], a = /"([^"]*)"/g, i;
19186
19233
  for (; i = a.exec(t); )
19187
19234
  e.push(i[1]);
19188
- return e.length ? e.join("") : w0(t);
19235
+ return e.length ? e.join("") : _0(t);
19189
19236
  }
19190
19237
  function ho(t, e) {
19191
19238
  let a = t.parentElement, i = a ? ct.get(a) : null;
@@ -19241,7 +19288,7 @@ function po(t, e, a) {
19241
19288
  return c(d);
19242
19289
  }, __incs: l };
19243
19290
  }
19244
- function v0(t, e, a) {
19291
+ function z0(t, e, a) {
19245
19292
  let i;
19246
19293
  try {
19247
19294
  i = getComputedStyle(t, e);
@@ -19250,20 +19297,20 @@ function v0(t, e, a) {
19250
19297
  let o = i == null ? void 0 : i.content;
19251
19298
  if (!o || o === "none" || o === "normal")
19252
19299
  return { text: "", incs: [] };
19253
- let r = ho(t, a), l = po(t, i, r), c = u0(o) ? y0(o, t, l) : o;
19254
- return { text: x0(c), incs: l.__incs || [] };
19300
+ let r = ho(t, a), l = po(t, i, r), c = b0(o) ? v0(o, t, l) : o;
19301
+ return { text: L0(c), incs: l.__incs || [] };
19255
19302
  }
19256
19303
  async function fr(t, e, a, i) {
19257
19304
  var d, m, p;
19258
19305
  if (!(t instanceof Element) || !(e instanceof Element))
19259
19306
  return;
19260
19307
  let o = t.ownerDocument || document;
19261
- if (!b0(o, a))
19308
+ if (!k0(o, a))
19262
19309
  return;
19263
19310
  let r = ((d = V == null ? void 0 : V.session) == null ? void 0 : d.__counterEpoch) ?? 0;
19264
19311
  if (Ki !== r && (ct = /* @__PURE__ */ new WeakMap(), a && (a.__counterCtx = null), Ki = r), !a.__counterCtx)
19265
19312
  try {
19266
- a.__counterCtx = f0(t.ownerDocument || document);
19313
+ a.__counterCtx = x0(t.ownerDocument || document);
19267
19314
  } catch {
19268
19315
  }
19269
19316
  let l = a.__counterCtx;
@@ -19276,9 +19323,9 @@ async function fr(t, e, a, i) {
19276
19323
  let Y = getComputedStyle(t);
19277
19324
  if (!(w.color !== Y.color || w.fontSize !== Y.fontSize || w.fontWeight !== Y.fontWeight))
19278
19325
  continue;
19279
- let H = Array.from(e.childNodes).find((ye) => {
19326
+ let H = Array.from(e.childNodes).find((be) => {
19280
19327
  var _e;
19281
- return ye.nodeType === Node.TEXT_NODE && ((_e = ye.textContent) == null ? void 0 : _e.trim().length) > 0;
19328
+ return be.nodeType === Node.TEXT_NODE && ((_e = be.textContent) == null ? void 0 : _e.trim().length) > 0;
19282
19329
  });
19283
19330
  if (!H)
19284
19331
  continue;
@@ -19293,7 +19340,7 @@ async function fr(t, e, a, i) {
19293
19340
  e.replaceChild(me, H), e.insertBefore(fe, me);
19294
19341
  continue;
19295
19342
  }
19296
- let u = w.content ?? "", h = u === "" || u === "none" || u === "normal", { text: g, incs: _ } = v0(t, f, l), T = w.backgroundImage, v = w.backgroundColor, M = w.fontFamily, L = parseInt(w.fontSize) || 32, z = parseInt(w.fontWeight) || !1, S = w.color || "#000", D = w.borderStyle, A = parseFloat(w.borderWidth), E = w.transform, X = Ke(M), O = !h && g !== "", q = T && T !== "none", ae = v && v !== "transparent" && v !== "rgba(0, 0, 0, 0)", re = D && D !== "none" && A > 0, pe = E && E !== "none";
19343
+ let u = w.content ?? "", h = u === "" || u === "none" || u === "normal", { text: g, incs: _ } = z0(t, f, l), T = w.backgroundImage, v = w.backgroundColor, M = w.fontFamily, L = parseInt(w.fontSize) || 32, z = parseInt(w.fontWeight) || !1, S = w.color || "#000", D = w.borderStyle, I = parseFloat(w.borderWidth), E = w.transform, X = Ke(M), O = !h && g !== "", q = T && T !== "none", ae = v && v !== "transparent" && v !== "rgba(0, 0, 0, 0)", re = D && D !== "none" && I > 0, pe = E && E !== "none";
19297
19344
  if (!(O || q || ae || re || pe)) {
19298
19345
  if (_ && _.length && t.parentElement) {
19299
19346
  let Y = ct.get(t.parentElement) || /* @__PURE__ */ new Map();
@@ -19311,7 +19358,7 @@ async function fr(t, e, a, i) {
19311
19358
  G.dataset.snapdomPseudo = f, G.style.pointerEvents = "none";
19312
19359
  let J = Fi(w), K = ro(J, "span");
19313
19360
  if (a.styleMap.set(G, K), X && g && g.length === 1) {
19314
- let { dataUrl: Y, width: H, height: ee } = await gg(g, M, z, L, S), F = document.createElement("img");
19361
+ let { dataUrl: Y, width: H, height: ee } = await wg(g, M, z, L, S), F = document.createElement("img");
19315
19362
  F.src = Y, F.style = `height:${L}px;width:${H / ee * L}px;object-fit:contain;`, G.appendChild(F), e.dataset.snapdomHasIcon = "true";
19316
19363
  } else if (g && g.startsWith("url(")) {
19317
19364
  let Y = yo(g);
@@ -19358,7 +19405,7 @@ async function fr(t, e, a, i) {
19358
19405
  for (let f = 0; f < Math.min(c.length, s.length); f++)
19359
19406
  await fr(c[f], s[f], a, i);
19360
19407
  }
19361
- function k0(t, e) {
19408
+ function C0(t, e) {
19362
19409
  var M, L;
19363
19410
  if (!t || !(t instanceof Element))
19364
19411
  return;
@@ -19374,8 +19421,8 @@ function k0(t, e) {
19374
19421
  let D = z.attributes;
19375
19422
  if (!D)
19376
19423
  return null;
19377
- for (let A = 0; A < D.length; A++) {
19378
- let E = D[A];
19424
+ for (let I = 0; I < D.length; I++) {
19425
+ let E = D[I];
19379
19426
  if (!E || !E.name)
19380
19427
  continue;
19381
19428
  if (E.name === "href")
@@ -19392,13 +19439,13 @@ function k0(t, e) {
19392
19439
  let D;
19393
19440
  for (; D = r.exec(z); ) {
19394
19441
  f = !0;
19395
- let A = (D[1] || "").trim();
19396
- A && (m.has(A) || (p.add(A), S && !S.has(A) && S.add(A)));
19442
+ let I = (D[1] || "").trim();
19443
+ I && (m.has(I) || (p.add(I), S && !S.has(I) && S.add(I)));
19397
19444
  }
19398
19445
  }, u = (z) => {
19399
19446
  let S = z.querySelectorAll("use");
19400
- for (let A of S) {
19401
- let E = d(A);
19447
+ for (let I of S) {
19448
+ let E = d(I);
19402
19449
  if (!E || !E.startsWith("#"))
19403
19450
  continue;
19404
19451
  f = !0;
@@ -19406,10 +19453,10 @@ function k0(t, e) {
19406
19453
  X && !m.has(X) && p.add(X);
19407
19454
  }
19408
19455
  let D = 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("]');
19409
- for (let A of D) {
19410
- w(A.getAttribute("style") || "");
19456
+ for (let I of D) {
19457
+ w(I.getAttribute("style") || "");
19411
19458
  for (let E of l)
19412
- w(A.getAttribute(E));
19459
+ w(I.getAttribute(E));
19413
19460
  }
19414
19461
  };
19415
19462
  for (let z of o)
@@ -19421,8 +19468,8 @@ function k0(t, e) {
19421
19468
  let g = h.querySelector("defs") || null, _ = (z) => {
19422
19469
  if (!z || m.has(z))
19423
19470
  return null;
19424
- let S = c(z), D = (A) => {
19425
- let E = i.querySelector(A);
19471
+ let S = c(z), D = (I) => {
19472
+ let E = i.querySelector(I);
19426
19473
  return E && !t.contains(E) ? E : null;
19427
19474
  };
19428
19475
  return D(`svg defs > *#${S}`) || D(`svg > symbol#${S}`) || D(`*#${S}`);
@@ -19442,8 +19489,8 @@ function k0(t, e) {
19442
19489
  g || (g = a.createElementNS("http://www.w3.org/2000/svg", "defs"), h.appendChild(g));
19443
19490
  let D = S.cloneNode(!0);
19444
19491
  D.id || D.setAttribute("id", z), g.appendChild(D), v.add(z), m.add(z);
19445
- let A = [D, ...D.querySelectorAll("*")];
19446
- for (let E of A) {
19492
+ let I = [D, ...D.querySelectorAll("*")];
19493
+ for (let E of I) {
19447
19494
  let X = d(E);
19448
19495
  if (X && X.startsWith("#")) {
19449
19496
  let q = X.slice(1).trim();
@@ -19458,7 +19505,7 @@ function k0(t, e) {
19458
19505
  }
19459
19506
  }
19460
19507
  }
19461
- function _0(t, e) {
19508
+ function M0(t, e) {
19462
19509
  var c;
19463
19510
  if (!t || !e)
19464
19511
  return;
@@ -19474,7 +19521,7 @@ function _0(t, e) {
19474
19521
  let p = qi(d.top), f = qi(d.bottom);
19475
19522
  if (p == null && f == null)
19476
19523
  continue;
19477
- let w = L0(s, t), u = z0(e, w, r);
19524
+ let w = P0(s, t), u = S0(e, w, r);
19478
19525
  if (!u)
19479
19526
  continue;
19480
19527
  let h = s.getBoundingClientRect(), g = h.width, _ = h.height, T = h.left - i.left;
@@ -19493,7 +19540,7 @@ function qi(t) {
19493
19540
  let e = Number.parseFloat(t);
19494
19541
  return Number.isFinite(e) ? e : null;
19495
19542
  }
19496
- function L0(t, e) {
19543
+ function P0(t, e) {
19497
19544
  let a = [];
19498
19545
  for (let i = t; i && i !== e; ) {
19499
19546
  let o = i.parentElement;
@@ -19503,14 +19550,14 @@ function L0(t, e) {
19503
19550
  }
19504
19551
  return a.reverse();
19505
19552
  }
19506
- function z0(t, e, a) {
19553
+ function S0(t, e, a) {
19507
19554
  let i = t;
19508
19555
  for (let o = 0; o < e.length; o++)
19509
- if (i = C0(i, a)[e[o]], !i)
19556
+ if (i = T0(i, a)[e[o]], !i)
19510
19557
  return null;
19511
19558
  return i instanceof HTMLElement ? i : null;
19512
19559
  }
19513
- function C0(t, e) {
19560
+ function T0(t, e) {
19514
19561
  let a = [], i = t.children;
19515
19562
  for (let o = 0; o < i.length; o++) {
19516
19563
  let r = i[o];
@@ -19518,16 +19565,16 @@ function C0(t, e) {
19518
19565
  }
19519
19566
  return a;
19520
19567
  }
19521
- function M0(t) {
19568
+ function R0(t) {
19522
19569
  let e = getComputedStyle(t), a = e.outlineStyle, i = e.outlineWidth, o = e.borderStyle, r = e.borderWidth, l = a !== "none" && parseFloat(i) > 0, c = o === "none" || parseFloat(r) === 0;
19523
19570
  l && c && (t.style.border = `${i} solid transparent`);
19524
19571
  }
19525
- async function P0(t, e = {}) {
19572
+ async function D0(t, e = {}) {
19526
19573
  var s, d;
19527
19574
  let a = { styleMap: V.session.styleMap, styleCache: V.session.styleCache, nodeMap: V.session.nodeMap }, i, o = "", r = "";
19528
- M0(t);
19575
+ R0(t);
19529
19576
  try {
19530
- k0(t);
19577
+ C0(t);
19531
19578
  } catch (m) {
19532
19579
  console.warn("inlineExternal defs or symbol failed:", m);
19533
19580
  }
@@ -19541,14 +19588,14 @@ async function P0(t, e = {}) {
19541
19588
  } catch (m) {
19542
19589
  console.warn("inlinePseudoElements failed:", m);
19543
19590
  }
19544
- await p0(i);
19591
+ await y0(i);
19545
19592
  try {
19546
19593
  let m = i.querySelectorAll("style[data-sd]");
19547
19594
  for (let p of m)
19548
19595
  r += p.textContent || "", p.remove();
19549
19596
  } catch {
19550
19597
  }
19551
- let l = rg(a.styleMap);
19598
+ let l = cg(a.styleMap);
19552
19599
  o = Array.from(l.entries()).map(([m, p]) => `.${p}{${m}}`).join(""), o = r + o;
19553
19600
  for (let [m, p] of a.styleMap.entries()) {
19554
19601
  if (m.tagName === "STYLE")
@@ -19573,22 +19620,22 @@ async function P0(t, e = {}) {
19573
19620
  }
19574
19621
  }
19575
19622
  let c = i instanceof HTMLElement && i.firstElementChild instanceof HTMLElement ? i.firstElementChild : i;
19576
- if (_0(t, c), t === a.nodeMap.get(i)) {
19623
+ if (M0(t, c), t === a.nodeMap.get(i)) {
19577
19624
  let m = a.styleCache.get(t) || window.getComputedStyle(t);
19578
19625
  a.styleCache.set(t, m);
19579
- let p = Xu(m.transform);
19626
+ let p = $u(m.transform);
19580
19627
  i.style.margin = "0", i.style.top = "auto", i.style.left = "auto", i.style.right = "auto", i.style.bottom = "auto", i.style.animation = "none", i.style.transition = "none", i.style.willChange = "auto", i.style.float = "none", i.style.clear = "none", i.style.transform = p || "";
19581
19628
  }
19582
19629
  for (let [m, p] of a.nodeMap.entries())
19583
19630
  p.tagName === "PRE" && (m.style.marginTop = "0", m.style.marginBlockStart = "0");
19584
19631
  return { clone: i, classCSS: o, styleCache: a.styleCache };
19585
19632
  }
19586
- function S0(t) {
19633
+ function I0(t) {
19587
19634
  var d, m, p, f;
19588
19635
  let e = parseInt(((d = t.dataset) == null ? void 0 : d.snapdomWidth) || "", 10) || 0, a = parseInt(((m = t.dataset) == null ? void 0 : m.snapdomHeight) || "", 10) || 0, i = parseInt(t.getAttribute("width") || "", 10) || 0, o = parseInt(t.getAttribute("height") || "", 10) || 0, r = parseFloat(((p = t.style) == null ? void 0 : p.width) || "") || 0, l = parseFloat(((f = t.style) == null ? void 0 : f.height) || "") || 0, c = e || r || i || t.width || t.naturalWidth || 100, s = a || l || o || t.height || t.naturalHeight || 100;
19589
19636
  return { width: c, height: s };
19590
19637
  }
19591
- async function T0(t, e = {}) {
19638
+ async function A0(t, e = {}) {
19592
19639
  let a = Array.from(t.querySelectorAll("img")), i = async (o) => {
19593
19640
  if (!o.getAttribute("src")) {
19594
19641
  let m = o.currentSrc || o.src || "";
@@ -19603,7 +19650,7 @@ async function T0(t, e = {}) {
19603
19650
  o.src = l.data, o.width || (o.width = o.naturalWidth || 100), o.height || (o.height = o.naturalHeight || 100);
19604
19651
  return;
19605
19652
  }
19606
- let { width: c, height: s } = S0(o), { fallbackURL: d } = e || {};
19653
+ let { width: c, height: s } = I0(o), { fallbackURL: d } = e || {};
19607
19654
  if (d)
19608
19655
  try {
19609
19656
  let m = typeof d == "function" ? await d({ width: c, height: s, src: r, element: o }) : d;
@@ -19627,18 +19674,18 @@ async function T0(t, e = {}) {
19627
19674
  await Promise.allSettled(r);
19628
19675
  }
19629
19676
  }
19630
- function R0(t) {
19677
+ function G0(t) {
19631
19678
  if (!t)
19632
19679
  return () => {
19633
19680
  };
19634
- let e = D0(t);
19681
+ let e = F0(t);
19635
19682
  if (e <= 0)
19636
19683
  return () => {
19637
19684
  };
19638
- if (!G0(t))
19685
+ if (!E0(t))
19639
19686
  return () => {
19640
19687
  };
19641
- let a = getComputedStyle(t), i = Math.round(I0(a) * e + A0(a)), o = t.textContent ?? "", r = o;
19688
+ let a = getComputedStyle(t), i = Math.round(N0(a) * e + W0(a)), o = t.textContent ?? "", r = o;
19642
19689
  if (t.scrollHeight <= i + 0.5)
19643
19690
  return () => {
19644
19691
  };
@@ -19651,23 +19698,23 @@ function R0(t) {
19651
19698
  t.textContent = r;
19652
19699
  };
19653
19700
  }
19654
- function D0(t) {
19701
+ function F0(t) {
19655
19702
  let e = getComputedStyle(t), a = e.getPropertyValue("-webkit-line-clamp") || e.getPropertyValue("line-clamp");
19656
19703
  a = (a || "").trim();
19657
19704
  let i = parseInt(a, 10);
19658
19705
  return Number.isFinite(i) && i > 0 ? i : 0;
19659
19706
  }
19660
- function I0(t) {
19707
+ function N0(t) {
19661
19708
  let e = (t.lineHeight || "").trim(), a = parseFloat(t.fontSize) || 16;
19662
19709
  return !e || e === "normal" ? Math.round(a * 1.2) : e.endsWith("px") ? parseFloat(e) : /^\d+(\.\d+)?$/.test(e) ? Math.round(parseFloat(e) * a) : e.endsWith("%") ? Math.round(parseFloat(e) / 100 * a) : Math.round(a * 1.2);
19663
19710
  }
19664
- function A0(t) {
19711
+ function W0(t) {
19665
19712
  return (parseFloat(t.paddingTop) || 0) + (parseFloat(t.paddingBottom) || 0);
19666
19713
  }
19667
- function G0(t) {
19714
+ function E0(t) {
19668
19715
  return t.childElementCount > 0 ? !1 : Array.from(t.childNodes).some((e) => e.nodeType === Node.TEXT_NODE);
19669
19716
  }
19670
- function F0(t, e) {
19717
+ function B0(t, e) {
19671
19718
  if (!t || !e || !e.style)
19672
19719
  return;
19673
19720
  let a = getComputedStyle(t);
@@ -19689,14 +19736,14 @@ function F0(t, e) {
19689
19736
  } catch {
19690
19737
  }
19691
19738
  }
19692
- function N0(t) {
19739
+ function Z0(t) {
19693
19740
  let e = document.createTreeWalker(t, NodeFilter.SHOW_COMMENT), a = [];
19694
19741
  for (; e.nextNode(); )
19695
19742
  a.push(e.currentNode);
19696
19743
  for (let i of a)
19697
19744
  i.remove();
19698
19745
  }
19699
- function W0(t, e = {}) {
19746
+ function O0(t, e = {}) {
19700
19747
  let { stripFrameworkDirectives: a = !0 } = e, i = /* @__PURE__ */ new Set(["xml", "xlink"]), o = document.createTreeWalker(t, NodeFilter.SHOW_ELEMENT);
19701
19748
  for (; o.nextNode(); ) {
19702
19749
  let r = o.currentNode;
@@ -19720,10 +19767,10 @@ function W0(t, e = {}) {
19720
19767
  }
19721
19768
  }
19722
19769
  }
19723
- function E0(t, e = {}) {
19724
- t && (W0(t, e), N0(t));
19770
+ function V0(t, e = {}) {
19771
+ t && (O0(t, e), Z0(t));
19725
19772
  }
19726
- function B0(t) {
19773
+ function j0(t) {
19727
19774
  var e;
19728
19775
  try {
19729
19776
  let a = ((e = t.getAttribute) == null ? void 0 : e.call(t, "style")) || "";
@@ -19732,11 +19779,11 @@ function B0(t) {
19732
19779
  return !1;
19733
19780
  }
19734
19781
  }
19735
- function Z0(t) {
19782
+ function X0(t) {
19736
19783
  return t instanceof HTMLImageElement || t instanceof HTMLCanvasElement || t instanceof HTMLVideoElement || t instanceof HTMLIFrameElement || t instanceof SVGElement || t instanceof HTMLObjectElement || t instanceof HTMLEmbedElement;
19737
19784
  }
19738
- function O0(t, e) {
19739
- if (!(t instanceof Element) || B0(t) || Z0(t))
19785
+ function H0(t, e) {
19786
+ if (!(t instanceof Element) || j0(t) || X0(t))
19740
19787
  return !1;
19741
19788
  let a = e.position;
19742
19789
  if (a === "absolute" || a === "fixed" || a === "sticky")
@@ -19744,12 +19791,12 @@ function O0(t, e) {
19744
19791
  let i = e.display || "";
19745
19792
  return !(i.includes("flex") || i.includes("grid") || i.startsWith("table") || e.transform && e.transform !== "none");
19746
19793
  }
19747
- function V0(t, e, a = /* @__PURE__ */ new Map()) {
19794
+ function Y0(t, e, a = /* @__PURE__ */ new Map()) {
19748
19795
  function i(o, r) {
19749
19796
  if (!(o instanceof Element) || !(r instanceof Element))
19750
19797
  return;
19751
19798
  let l = o.childElementCount > r.childElementCount, c = a.get(o) || getComputedStyle(o);
19752
- if (a.has(o) || a.set(o, c), l && O0(o, c)) {
19799
+ if (a.has(o) || a.set(o, c), l && H0(o, c)) {
19753
19800
  r.style.height || (r.style.height = "auto"), r.style.width || (r.style.width = "auto"), r.style.removeProperty("block-size"), r.style.removeProperty("inline-size"), r.style.minHeight || (r.style.minHeight = "0"), r.style.minWidth || (r.style.minWidth = "0"), r.style.maxHeight || (r.style.maxHeight = "none"), r.style.maxWidth || (r.style.maxWidth = "none");
19754
19801
  let m = c.overflowY || c.overflowBlock || "visible", p = c.overflowX || c.overflowInline || "visible";
19755
19802
  (m !== "visible" || p !== "visible") && (r.style.overflow = "visible");
@@ -19760,11 +19807,11 @@ function V0(t, e, a = /* @__PURE__ */ new Map()) {
19760
19807
  }
19761
19808
  i(t, e);
19762
19809
  }
19763
- function j0(t) {
19810
+ function U0(t) {
19764
19811
  let e = getComputedStyle(t);
19765
19812
  return !(e.display === "none" || e.position === "absolute" || e.position === "fixed" || e.position === "sticky" || (e.cssFloat || e.float || "none") !== "none" || e.transform && e.transform !== "none");
19766
19813
  }
19767
- function X0(t, e) {
19814
+ function $0(t, e) {
19768
19815
  if (!(t instanceof Element))
19769
19816
  return !1;
19770
19817
  if (t.getAttribute("data-capture") === "exclude" && (e == null ? void 0 : e.excludeMode) === "remove")
@@ -19778,10 +19825,10 @@ function X0(t, e) {
19778
19825
  }
19779
19826
  return !1;
19780
19827
  }
19781
- function H0(t, e) {
19828
+ function J0(t, e) {
19782
19829
  let a = getComputedStyle(t), i = t.getBoundingClientRect(), o = 1 / 0, r = -1 / 0, l = !1, c = Array.from(t.children);
19783
19830
  for (let w of c) {
19784
- if (X0(w, e) || !j0(w))
19831
+ if ($0(w, e) || !U0(w))
19785
19832
  continue;
19786
19833
  let u = w.getBoundingClientRect(), h = u.top - i.top, g = u.bottom - i.top;
19787
19834
  g <= h || (h < o && (o = h), g > r && (r = g), l = !0);
@@ -19790,7 +19837,7 @@ function H0(t, e) {
19790
19837
  return d + m + p + f + s;
19791
19838
  }
19792
19839
  var ce = (t, e = 3) => Number.isFinite(t) ? Math.round(t * 10 ** e) / 10 ** e : t;
19793
- function Y0(t) {
19840
+ function K0(t) {
19794
19841
  var c;
19795
19842
  let e = t.boxShadow || "";
19796
19843
  if (!e || e === "none")
@@ -19805,17 +19852,17 @@ function Y0(t) {
19805
19852
  }
19806
19853
  return { top: Math.ceil(i), right: Math.ceil(o), bottom: Math.ceil(r), left: Math.ceil(l) };
19807
19854
  }
19808
- function U0(t) {
19855
+ function q0(t) {
19809
19856
  let e = (t.filter || "").match(/blur\(\s*([0-9.]+)px\s*\)/), a = e ? Math.ceil(parseFloat(e[1]) || 0) : 0;
19810
19857
  return { top: a, right: a, bottom: a, left: a };
19811
19858
  }
19812
- function $0(t) {
19859
+ function Q0(t) {
19813
19860
  if ((t.outlineStyle || "none") === "none")
19814
19861
  return { top: 0, right: 0, bottom: 0, left: 0 };
19815
19862
  let e = Math.ceil(parseFloat(t.outlineWidth || "0") || 0);
19816
19863
  return { top: e, right: e, bottom: e, left: e };
19817
19864
  }
19818
- function J0(t) {
19865
+ function ef(t) {
19819
19866
  var s;
19820
19867
  let e = `${t.filter || ""} ${t.webkitFilter || ""}`.trim();
19821
19868
  if (!e || e === "none")
@@ -19828,7 +19875,7 @@ function J0(t) {
19828
19875
  }
19829
19876
  return { bleed: { top: ce(i), right: ce(o), bottom: ce(r), left: ce(l) }, has: c };
19830
19877
  }
19831
- function K0(t, e) {
19878
+ function tf(t, e) {
19832
19879
  if (!t || !e || !e.style)
19833
19880
  return null;
19834
19881
  let a = getComputedStyle(t);
@@ -19880,14 +19927,14 @@ function Qi(t, e, a, i, o) {
19880
19927
  _ < w && (w = _), T < u && (u = T), _ > h && (h = _), T > g && (g = T);
19881
19928
  return { minX: w, minY: u, maxX: h, maxY: g, width: h - w, height: g - u };
19882
19929
  }
19883
- function q0(t, e, a) {
19930
+ function af(t, e, a) {
19884
19931
  let i = (t.transformOrigin || "0 0").trim().split(/\s+/), [o, r] = [i[0] || "0", i[1] || "0"], l = (c, s) => {
19885
19932
  let d = c.toLowerCase();
19886
19933
  return d === "left" || d === "top" ? 0 : d === "center" ? s / 2 : d === "right" || d === "bottom" ? s : d.endsWith("px") ? parseFloat(d) || 0 : d.endsWith("%") ? (parseFloat(d) || 0) * s / 100 : /^-?\d+(\.\d+)?$/.test(d) && parseFloat(d) || 0;
19887
19934
  };
19888
19935
  return { ox: l(o, e), oy: l(r, a) };
19889
19936
  }
19890
- function Q0(t) {
19937
+ function of(t) {
19891
19938
  var o, r, l, c, s, d, m, p;
19892
19939
  let e = { rotate: "0deg", scale: null, translate: null }, a = typeof t.computedStyleMap == "function" ? t.computedStyleMap() : null;
19893
19940
  if (a) {
@@ -19930,19 +19977,19 @@ function Q0(t) {
19930
19977
  return e.rotate = i.rotate && i.rotate !== "none" ? i.rotate : "0deg", e.scale = i.scale && i.scale !== "none" ? i.scale : null, e.translate = i.translate && i.translate !== "none" ? i.translate : null, e;
19931
19978
  }
19932
19979
  var io = null;
19933
- function ef() {
19980
+ function rf() {
19934
19981
  if (io)
19935
19982
  return io;
19936
19983
  let t = document.createElement("div");
19937
19984
  return t.id = "snapdom-measure-slot", t.setAttribute("aria-hidden", "true"), Object.assign(t.style, { position: "absolute", left: "-99999px", top: "0px", width: "0px", height: "0px", overflow: "hidden", opacity: "0", pointerEvents: "none", contain: "size layout style" }), document.documentElement.appendChild(t), io = t, t;
19938
19985
  }
19939
- function tf(t) {
19940
- let e = ef(), a = document.createElement("div");
19986
+ function lf(t) {
19987
+ let e = rf(), a = document.createElement("div");
19941
19988
  a.style.transformOrigin = "0 0", t.baseTransform && (a.style.transform = t.baseTransform), t.rotate && (a.style.rotate = t.rotate), t.scale && (a.style.scale = t.scale), t.translate && (a.style.translate = t.translate), e.appendChild(a);
19942
19989
  let i = yr(a);
19943
19990
  return e.removeChild(a), i;
19944
19991
  }
19945
- function af(t) {
19992
+ function nf(t) {
19946
19993
  let e = getComputedStyle(t), a = e.transform || "none";
19947
19994
  if (a !== "none" && !/^matrix\(\s*1\s*,\s*0\s*,\s*0\s*,\s*1\s*,\s*0\s*,\s*0\s*\)$/i.test(a))
19948
19995
  return !0;
@@ -19963,72 +20010,72 @@ async function br(t, e) {
19963
20010
  var T;
19964
20011
  if (!t)
19965
20012
  throw new Error("Element cannot be null or undefined");
19966
- ju(e.cache);
20013
+ Uu(e.cache);
19967
20014
  let a = e.fast, i = e.outerTransforms !== !1, o = !!e.outerShadows, r = { element: t, options: e, plugins: e.plugins }, l, c, s, d = "", m = "", p, f, w = null;
19968
20015
  await Qe("beforeSnap", r), await Qe("beforeClone", r);
19969
- let u = R0(r.element);
20016
+ let u = G0(r.element);
19970
20017
  try {
19971
- ({ clone: l, classCSS: c, styleCache: s } = await P0(r.element, r.options)), !i && l && (w = K0(r.element, l)), !o && l && F0(r.element, l);
20018
+ ({ clone: l, classCSS: c, styleCache: s } = await D0(r.element, r.options)), !i && l && (w = tf(r.element, l)), !o && l && B0(r.element, l);
19972
20019
  } finally {
19973
20020
  u();
19974
20021
  }
19975
- if (r = { clone: l, classCSS: c, styleCache: s, ...r }, await Qe("afterClone", r), E0(r.clone), ((T = r.options) == null ? void 0 : T.excludeMode) === "remove")
20022
+ if (r = { clone: l, classCSS: c, styleCache: s, ...r }, await Qe("afterClone", r), V0(r.clone), ((T = r.options) == null ? void 0 : T.excludeMode) === "remove")
19976
20023
  try {
19977
- V0(r.element, r.clone, r.styleCache);
20024
+ Y0(r.element, r.clone, r.styleCache);
19978
20025
  } catch (v) {
19979
20026
  console.warn("[snapdom] shrink pass failed:", v);
19980
20027
  }
19981
20028
  try {
19982
- await ug(r.clone, r.element);
20029
+ await bg(r.clone, r.element);
19983
20030
  } catch {
19984
20031
  }
19985
20032
  await new Promise((v) => {
19986
20033
  nt(async () => {
19987
- await T0(r.clone, r.options), v();
20034
+ await A0(r.clone, r.options), v();
19988
20035
  }, { fast: a });
19989
20036
  }), await new Promise((v) => {
19990
20037
  nt(async () => {
19991
- await Dg(r.element, r.clone, r.styleCache, r.options), v();
20038
+ await Fg(r.element, r.clone, r.styleCache, r.options), v();
19992
20039
  }, { fast: a });
19993
20040
  }), e.embedFonts && await new Promise((v) => {
19994
20041
  nt(async () => {
19995
- let M = Sg(r.element), L = Tg(r.element);
20042
+ let M = Ig(r.element), L = Ag(r.element);
19996
20043
  if (Ba()) {
19997
20044
  let z = new Set(Array.from(M).map((S) => String(S).split("__")[0]).filter(Boolean));
19998
- await Rg(z, 1);
20045
+ await Gg(z, 1);
19999
20046
  }
20000
- d = await Pg({ required: M, usedCodepoints: L, preCached: !1, exclude: r.options.excludeFonts, useProxy: r.options.useProxy }), v();
20047
+ d = await Dg({ required: M, usedCodepoints: L, preCached: !1, exclude: r.options.excludeFonts, useProxy: r.options.useProxy }), v();
20001
20048
  }, { fast: a });
20002
20049
  });
20003
- let h = og(r.clone).sort(), g = h.join(",");
20050
+ let h = ng(r.clone).sort(), g = h.join(",");
20004
20051
  V.baseStyle.has(g) ? m = V.baseStyle.get(g) : await new Promise((v) => {
20005
20052
  nt(() => {
20006
- m = ig(h), V.baseStyle.set(g, m), v();
20053
+ m = sg(h), V.baseStyle.set(g, m), v();
20007
20054
  }, { fast: a });
20008
20055
  }), r = { fontsCSS: d, baseCSS: m, ...r }, await Qe("beforeRender", r), await new Promise((v) => {
20009
20056
  nt(() => {
20010
20057
  var Ye;
20011
20058
  let M = getComputedStyle(r.element), L = r.element.getBoundingClientRect(), z = Math.max(1, ce(r.element.offsetWidth || parseFloat(M.width) || L.width || 1)), S = Math.max(1, ce(r.element.offsetHeight || parseFloat(M.height) || L.height || 1));
20012
20059
  if (((Ye = r.options) == null ? void 0 : Ye.excludeMode) === "remove") {
20013
- let U = H0(r.element, r.options);
20060
+ let U = J0(r.element, r.options);
20014
20061
  Number.isFinite(U) && U > 0 && (S = Math.max(1, Math.min(S, ce(U + 1))));
20015
20062
  }
20016
20063
  let D = (U, xe = NaN) => {
20017
20064
  let Ge = typeof U == "string" ? parseFloat(U) : U;
20018
20065
  return Number.isFinite(Ge) ? Ge : xe;
20019
- }, A = D(r.options.width), E = D(r.options.height), X = z, O = S, q = Number.isFinite(A), ae = Number.isFinite(E), re = S > 0 ? z / S : 1;
20020
- q && ae ? (X = Math.max(1, ce(A)), O = Math.max(1, ce(E))) : q ? (X = Math.max(1, ce(A)), O = Math.max(1, ce(X / (re || 1)))) : ae ? (O = Math.max(1, ce(E)), X = Math.max(1, ce(O * (re || 1)))) : (X = z, O = S);
20066
+ }, I = D(r.options.width), E = D(r.options.height), X = z, O = S, q = Number.isFinite(I), ae = Number.isFinite(E), re = S > 0 ? z / S : 1;
20067
+ q && ae ? (X = Math.max(1, ce(I)), O = Math.max(1, ce(E))) : q ? (X = Math.max(1, ce(I)), O = Math.max(1, ce(X / (re || 1)))) : ae ? (O = Math.max(1, ce(E)), X = Math.max(1, ce(O * (re || 1)))) : (X = z, O = S);
20021
20068
  let pe = 0, G = 0, J = z, K = S;
20022
20069
  if (!i && w && Number.isFinite(w.a)) {
20023
20070
  let U = { a: w.a, b: w.b || 0, c: w.c || 0, d: w.d || 1, e: 0, f: 0 }, xe = Qi(z, S, U, 0, 0);
20024
20071
  pe = ce(xe.minX), G = ce(xe.minY), J = ce(xe.maxX), K = ce(xe.maxY);
20025
- } else if (i && of(r.element)) {
20026
- let U = M.transform && M.transform !== "none" ? M.transform : "", xe = Q0(r.element), Ge = tf({ baseTransform: U, rotate: xe.rotate || "0deg", scale: xe.scale, translate: xe.translate }), { ox: Oe, oy: Ve } = q0(M, z, S), te = Ge.is2D ? Ge : new DOMMatrix(Ge.toString()), Be = Qi(z, S, te, Oe, Ve);
20072
+ } else if (i && sf(r.element)) {
20073
+ let U = M.transform && M.transform !== "none" ? M.transform : "", xe = of(r.element), Ge = lf({ baseTransform: U, rotate: xe.rotate || "0deg", scale: xe.scale, translate: xe.translate }), { ox: Oe, oy: Ve } = af(M, z, S), te = Ge.is2D ? Ge : new DOMMatrix(Ge.toString()), Be = Qi(z, S, te, Oe, Ve);
20027
20074
  pe = ce(Be.minX), G = ce(Be.minY), J = ce(Be.maxX), K = ce(Be.maxY);
20028
20075
  }
20029
- let oe = Y0(M), Y = U0(M), H = $0(M), ee = J0(M), F = o ? { top: ce(oe.top + Y.top + H.top + ee.bleed.top), right: ce(oe.right + Y.right + H.right + ee.bleed.right), bottom: ce(oe.bottom + Y.bottom + H.bottom + ee.bleed.bottom), left: ce(oe.left + Y.left + H.left + ee.bleed.left) } : { top: 0, right: 0, bottom: 0, left: 0 };
20076
+ let oe = K0(M), Y = q0(M), H = Q0(M), ee = ef(M), F = o ? { top: ce(oe.top + Y.top + H.top + ee.bleed.top), right: ce(oe.right + Y.right + H.right + ee.bleed.right), bottom: ce(oe.bottom + Y.bottom + H.bottom + ee.bleed.bottom), left: ce(oe.left + Y.left + H.left + ee.bleed.left) } : { top: 0, right: 0, bottom: 0, left: 0 };
20030
20077
  pe = ce(pe - F.left), G = ce(G - F.top), J = ce(J + F.right), K = ce(K + F.bottom);
20031
- let ne = Math.max(1, ce(J - pe)), fe = Math.max(1, ce(K - G)), ke = q || ae ? ce(X / z) : 1, ze = ae || q ? ce(O / S) : 1, me = Math.max(1, ce(ne * ke)), ye = Math.max(1, ce(fe * ze)), _e = "http://www.w3.org/2000/svg", Re = Ba() ? 1 : 0, Q = ce(Re + (i ? 0 : 1)), de = document.createElementNS(_e, "foreignObject"), He = ce(pe), Ee = ce(G);
20078
+ let ne = Math.max(1, ce(J - pe)), fe = Math.max(1, ce(K - G)), ke = q || ae ? ce(X / z) : 1, ze = ae || q ? ce(O / S) : 1, me = Math.max(1, ce(ne * ke)), be = Math.max(1, ce(fe * ze)), _e = "http://www.w3.org/2000/svg", Re = Ba() ? 1 : 0, Q = ce(Re + (i ? 0 : 1)), de = document.createElementNS(_e, "foreignObject"), He = ce(pe), Ee = ce(G);
20032
20079
  de.setAttribute("x", String(ce(-(He - Q)))), de.setAttribute("y", String(ce(-(Ee - Q)))), de.setAttribute("width", String(ce(z + Q * 2))), de.setAttribute("height", String(ce(S + Q * 2))), de.style.overflow = "visible";
20033
20080
  let Me = document.createElement("style");
20034
20081
  Me.textContent = r.baseCSS + r.fontsCSS + "svg{overflow:visible;} foreignObject{overflow:visible;}" + r.classCSS, de.appendChild(Me);
@@ -20036,17 +20083,17 @@ async function br(t, e) {
20036
20083
  Ae.setAttribute("xmlns", "http://www.w3.org/1999/xhtml"), Ae.style.width = `${ce(z)}px`, Ae.style.height = `${ce(S)}px`, Ae.style.overflow = "visible", r.clone.setAttribute("xmlns", "http://www.w3.org/1999/xhtml"), Ae.appendChild(r.clone), de.appendChild(Ae);
20037
20084
  let le = new XMLSerializer().serializeToString(de), Pe = ce(ne + Q * 2), ue = ce(fe + Q * 2), we = q || ae;
20038
20085
  e.meta = { w0: z, h0: S, vbW: Pe, vbH: ue, targetW: X, targetH: O };
20039
- let Ze = Ba() && we ? Pe : ce(me + Q * 2), Ue = Ba() && we ? ue : ce(ye + Q * 2);
20086
+ let Ze = Ba() && we ? Pe : ce(me + Q * 2), Ue = Ba() && we ? ue : ce(be + Q * 2);
20040
20087
  f = `<svg xmlns="${_e}" width="${Ze}" height="${Ue}" viewBox="0 0 ${Pe} ${ue}">` + le + "</svg>", p = `data:image/svg+xml;charset=utf-8,${encodeURIComponent(f)}`, r = { svgString: f, dataURL: p, ...r }, v();
20041
20088
  }, { fast: a });
20042
20089
  }), await Qe("afterRender", r);
20043
20090
  let _ = document.getElementById("snapdom-sandbox");
20044
20091
  return _ && _.style.position === "absolute" && _.remove(), r.dataURL;
20045
20092
  }
20046
- function of(t) {
20047
- return af(t);
20093
+ function sf(t) {
20094
+ return nf(t);
20048
20095
  }
20049
- function rf(t) {
20096
+ function cf(t) {
20050
20097
  if (typeof t == "string") {
20051
20098
  let e = t.toLowerCase().trim();
20052
20099
  if (e === "disabled" || e === "full" || e === "auto" || e === "soft")
@@ -20054,80 +20101,80 @@ function rf(t) {
20054
20101
  }
20055
20102
  return "soft";
20056
20103
  }
20057
- function lf(t = {}) {
20104
+ function mf(t = {}) {
20058
20105
  let e = t.format ?? "png";
20059
20106
  e === "jpg" && (e = "jpeg");
20060
- let a = rf(t.cache);
20107
+ let a = cf(t.cache);
20061
20108
  return { debug: t.debug ?? !1, fast: t.fast ?? !0, scale: t.scale ?? 1, exclude: t.exclude ?? [], excludeMode: t.excludeMode ?? "hide", filter: t.filter ?? null, filterMode: t.filterMode ?? "hide", placeholders: t.placeholders !== !1, embedFonts: t.embedFonts ?? !1, iconFonts: Array.isArray(t.iconFonts) ? t.iconFonts : t.iconFonts ? [t.iconFonts] : [], localFonts: Array.isArray(t.localFonts) ? t.localFonts : [], excludeFonts: t.excludeFonts ?? void 0, fallbackURL: t.fallbackURL ?? void 0, cache: a, useProxy: typeof t.useProxy == "string" ? t.useProxy : "", width: t.width ?? null, height: t.height ?? null, format: e, type: t.type ?? "svg", quality: t.quality ?? 0.92, dpr: t.dpr ?? (window.devicePixelRatio || 1), backgroundColor: t.backgroundColor ?? (["jpeg", "webp"].includes(e) ? "#ffffff" : null), filename: t.filename ?? "snapDOM", outerTransforms: t.outerTransforms ?? !0, outerShadows: t.outerShadows ?? !1 };
20062
20109
  }
20063
- function nf(...t) {
20064
- return Ig(...t), Se;
20110
+ function df(...t) {
20111
+ return Ng(...t), Se;
20065
20112
  }
20066
- var Se = Object.assign(sf, { plugins: nf }), wr = Symbol("snapdom.internal"), qe = Symbol("snapdom.internal.silent"), uo = !1;
20067
- async function sf(t, e) {
20113
+ var Se = Object.assign(hf, { plugins: df }), wr = Symbol("snapdom.internal"), qe = Symbol("snapdom.internal.silent"), uo = !1;
20114
+ async function hf(t, e) {
20068
20115
  if (!t)
20069
20116
  throw new Error("Element cannot be null or undefined");
20070
- let a = lf(e);
20071
- if (Fg(a, e && e.plugins), Ba() && (a.embedFonts === !0 || mf(t)))
20117
+ let a = mf(e);
20118
+ if (Bg(a, e && e.plugins), Ba() && (a.embedFonts === !0 || uf(t)))
20072
20119
  for (let i = 0; i < 3; i++)
20073
20120
  try {
20074
- await cf(t, e), uo = !1;
20121
+ await pf(t, e), uo = !1;
20075
20122
  } catch {
20076
20123
  }
20077
- return a.iconFonts && a.iconFonts.length > 0 && ng(a.iconFonts), a.snap || (a.snap = { toPng: (i, o) => Se.toPng(i, o), toSvg: (i, o) => Se.toSvg(i, o) }), Se.capture(t, a, wr);
20124
+ return a.iconFonts && a.iconFonts.length > 0 && dg(a.iconFonts), a.snap || (a.snap = { toPng: (i, o) => Se.toPng(i, o), toSvg: (i, o) => Se.toSvg(i, o) }), Se.capture(t, a, wr);
20078
20125
  }
20079
20126
  Se.capture = async (t, e, a) => {
20080
20127
  if (a !== wr)
20081
20128
  throw new Error("[snapdom.capture] is internal. Use snapdom(...) instead.");
20082
20129
  let i = await br(t, e), o = { img: async (u, h) => {
20083
- let { toImg: g } = await import("./toImg-ff2f53f4.js");
20130
+ let { toImg: g } = await import("./toImg-c806b31e.js");
20084
20131
  return g(i, { ...u, ...h || {} });
20085
20132
  }, svg: async (u, h) => {
20086
- let { toSvg: g } = await import("./toImg-ff2f53f4.js");
20133
+ let { toSvg: g } = await import("./toImg-c806b31e.js");
20087
20134
  return g(i, { ...u, ...h || {} });
20088
20135
  }, canvas: async (u, h) => {
20089
- let { toCanvas: g } = await import("./toCanvas-772d23ea.js");
20136
+ let { toCanvas: g } = await import("./toCanvas-357efd0a.js");
20090
20137
  return g(i, { ...u, ...h || {} });
20091
20138
  }, blob: async (u, h) => {
20092
- let { toBlob: g } = await import("./toBlob-44b3dad9.js");
20139
+ let { toBlob: g } = await import("./toBlob-0f9bc83e.js");
20093
20140
  return g(i, { ...u, ...h || {} });
20094
20141
  }, png: async (u, h) => {
20095
- let { rasterize: g } = await import("./rasterize-JS5G2XHH-219f71c4.js");
20142
+ let { rasterize: g } = await import("./rasterize-JS5G2XHH-1a01abec.js");
20096
20143
  return g(i, { ...u, ...h || {}, format: "png" });
20097
20144
  }, jpeg: async (u, h) => {
20098
- let { rasterize: g } = await import("./rasterize-JS5G2XHH-219f71c4.js");
20145
+ let { rasterize: g } = await import("./rasterize-JS5G2XHH-1a01abec.js");
20099
20146
  return g(i, { ...u, ...h || {}, format: "jpeg" });
20100
20147
  }, webp: async (u, h) => {
20101
- let { rasterize: g } = await import("./rasterize-JS5G2XHH-219f71c4.js");
20148
+ let { rasterize: g } = await import("./rasterize-JS5G2XHH-1a01abec.js");
20102
20149
  return g(i, { ...u, ...h || {}, format: "webp" });
20103
20150
  }, download: async (u, h) => {
20104
- let { download: g } = await import("./download-67c23049.js");
20151
+ let { download: g } = await import("./download-6900aee1.js");
20105
20152
  return g(i, { ...u, ...h || {} });
20106
20153
  } }, r = { ...e, export: { url: i }, exports: { svg: async (u) => {
20107
- let { toSvg: h } = await import("./toImg-ff2f53f4.js");
20154
+ let { toSvg: h } = await import("./toImg-c806b31e.js");
20108
20155
  return h(i, { ...e, ...u || {}, [qe]: !0 });
20109
20156
  }, canvas: async (u) => {
20110
- let { toCanvas: h } = await import("./toCanvas-772d23ea.js");
20157
+ let { toCanvas: h } = await import("./toCanvas-357efd0a.js");
20111
20158
  return h(i, { ...e, ...u || {}, [qe]: !0 });
20112
20159
  }, png: async (u) => {
20113
- let { rasterize: h } = await import("./rasterize-JS5G2XHH-219f71c4.js");
20160
+ let { rasterize: h } = await import("./rasterize-JS5G2XHH-1a01abec.js");
20114
20161
  return h(i, { ...e, ...u || {}, format: "png", [qe]: !0 });
20115
20162
  }, jpeg: async (u) => {
20116
- let { rasterize: h } = await import("./rasterize-JS5G2XHH-219f71c4.js");
20163
+ let { rasterize: h } = await import("./rasterize-JS5G2XHH-1a01abec.js");
20117
20164
  return h(i, { ...e, ...u || {}, format: "jpeg", [qe]: !0 });
20118
20165
  }, jpg: async (u) => {
20119
- let { rasterize: h } = await import("./rasterize-JS5G2XHH-219f71c4.js");
20166
+ let { rasterize: h } = await import("./rasterize-JS5G2XHH-1a01abec.js");
20120
20167
  return h(i, { ...e, ...u || {}, format: "jpeg", [qe]: !0 });
20121
20168
  }, webp: async (u) => {
20122
- let { rasterize: h } = await import("./rasterize-JS5G2XHH-219f71c4.js");
20169
+ let { rasterize: h } = await import("./rasterize-JS5G2XHH-1a01abec.js");
20123
20170
  return h(i, { ...e, ...u || {}, format: "webp", [qe]: !0 });
20124
20171
  }, blob: async (u) => {
20125
- let { toBlob: h } = await import("./toBlob-44b3dad9.js");
20172
+ let { toBlob: h } = await import("./toBlob-0f9bc83e.js");
20126
20173
  return h(i, { ...e, ...u || {}, [qe]: !0 });
20127
20174
  }, img: async (u) => {
20128
- let { toImg: h } = await import("./toImg-ff2f53f4.js");
20175
+ let { toImg: h } = await import("./toImg-c806b31e.js");
20129
20176
  return h(i, { ...e, ...u || {}, [qe]: !0 });
20130
- } } }, l = await Ag("defineExports", r), c = Object.assign({}, ...l.filter((u) => u && typeof u == "object")), s = { ...o, ...c };
20177
+ } } }, l = await Wg("defineExports", r), c = Object.assign({}, ...l.filter((u) => u && typeof u == "object")), s = { ...o, ...c };
20131
20178
  s.jpeg && !s.jpg && (s.jpg = (u, h) => s.jpeg(u, h));
20132
20179
  function d(u, h) {
20133
20180
  let g = { ...e, ...h || {} };
@@ -20162,7 +20209,7 @@ Se.toPng = (t, e) => Se(t, { ...e, format: "png" }).then((a) => a.toPng());
20162
20209
  Se.toJpg = (t, e) => Se(t, { ...e, format: "jpeg" }).then((a) => a.toJpg());
20163
20210
  Se.toWebp = (t, e) => Se(t, { ...e, format: "webp" }).then((a) => a.toWebp());
20164
20211
  Se.download = (t, e) => Se(t, e).then((a) => a.download());
20165
- async function cf(t, e) {
20212
+ async function pf(t, e) {
20166
20213
  if (uo)
20167
20214
  return;
20168
20215
  let a = { ...e, fast: !0, embedFonts: !0, scale: 0.2 }, i;
@@ -20199,7 +20246,7 @@ async function cf(t, e) {
20199
20246
  }
20200
20247
  }), uo = !0;
20201
20248
  }
20202
- function mf(t) {
20249
+ function uf(t) {
20203
20250
  let e = document.createTreeWalker(t, NodeFilter.SHOW_ELEMENT);
20204
20251
  for (; e.nextNode(); ) {
20205
20252
  let a = e.currentNode, i = getComputedStyle(a), o = i.backgroundImage && i.backgroundImage !== "none", r = i.maskImage && i.maskImage !== "none" || i.webkitMaskImage && i.webkitMaskImage !== "none";
@@ -20208,7 +20255,7 @@ function mf(t) {
20208
20255
  }
20209
20256
  return !1;
20210
20257
  }
20211
- class df {
20258
+ class gf {
20212
20259
  constructor() {
20213
20260
  ve(this, "frames", []);
20214
20261
  ve(this, "captureRect", null);
@@ -20381,7 +20428,7 @@ class df {
20381
20428
  return this._frameDelay;
20382
20429
  }
20383
20430
  }
20384
- const hf = {
20431
+ const ff = {
20385
20432
  name: "IdmCapture",
20386
20433
  props: {
20387
20434
  isPlaying: {
@@ -20405,7 +20452,7 @@ const hf = {
20405
20452
  default: ""
20406
20453
  }
20407
20454
  },
20408
- emits: ["closeRecord", "preview"],
20455
+ emits: ["closeRecord", "preview", "frameCount"],
20409
20456
  data() {
20410
20457
  return {
20411
20458
  recorder: null,
@@ -20438,8 +20485,9 @@ const hf = {
20438
20485
  }
20439
20486
  },
20440
20487
  watch: {
20441
- isPlaying: {
20488
+ frameCount: {
20442
20489
  handler(t) {
20490
+ t && this.$emit("frameCount", this.frameCount);
20443
20491
  }
20444
20492
  },
20445
20493
  enabled: {
@@ -20487,7 +20535,7 @@ const hf = {
20487
20535
  },
20488
20536
  startRecord() {
20489
20537
  var t, e, a;
20490
- this.frameCount = 0, this.recorder = new df(), (t = this.recorder) == null || t.setArea(this.selection), (e = this.recorder) == null || e.setFrameDelay(this.frequency), (a = this.recorder) == null || a.startRecording(), console.log("[BottomBar] 录制准备就绪");
20538
+ this.frameCount = 0, this.recorder = new gf(), (t = this.recorder) == null || t.setArea(this.selection), (e = this.recorder) == null || e.setFrameDelay(this.frequency), (a = this.recorder) == null || a.startRecording(), console.log("[BottomBar] 录制准备就绪");
20491
20539
  },
20492
20540
  async captureCurrentFrame() {
20493
20541
  var t, e, a;
@@ -20532,34 +20580,34 @@ const hf = {
20532
20580
  this.recorder.download(this.blob, e);
20533
20581
  }
20534
20582
  }
20535
- }, pf = { class: "capture-container" }, uf = {
20583
+ }, yf = { class: "capture-container" }, bf = {
20536
20584
  key: 0,
20537
20585
  class: "drag-tips text-h4"
20538
- }, gf = { class: "size-hint mt-2 ml-2 text-body-2 px-2 py-1 rounded font-weight-bold bg-background" }, ff = { class: "size-hint mt-2 ml-2 text-body-2 px-2 py-1 rounded font-weight-bold bg-background" }, yf = { class: "text-body-2" }, bf = {
20586
+ }, wf = { class: "size-hint mt-2 ml-2 text-body-2 px-2 py-1 rounded font-weight-bold bg-background" }, xf = { class: "size-hint mt-2 ml-2 text-body-2 px-2 py-1 rounded font-weight-bold bg-background" }, vf = { class: "text-body-2" }, kf = {
20539
20587
  key: 0,
20540
20588
  class: "py-1 px-2 d-flex align-center justify-center ga-2"
20541
- }, wf = { class: "text-body-2" }, xf = {
20589
+ }, _f = { class: "text-body-2" }, Lf = {
20542
20590
  key: 1,
20543
20591
  class: "py-1 px-2 d-flex align-center justify-center ga-2"
20544
- }, vf = { class: "text-body-2" };
20545
- function kf(t, e, a, i, o, r) {
20592
+ }, zf = { class: "text-body-2" };
20593
+ function Cf(t, e, a, i, o, r) {
20546
20594
  const l = P("VBtn");
20547
- return k(), I("div", pf, [
20548
- o.actionStatus > 0 && o.actionStatus < 4 ? (k(), I("div", {
20595
+ return k(), A("div", yf, [
20596
+ o.actionStatus > 0 && o.actionStatus < 4 ? (k(), A("div", {
20549
20597
  key: 0,
20550
20598
  class: "capture-selector",
20551
20599
  onMousedown: e[2] || (e[2] = (...c) => r.handleMouseDown && r.handleMouseDown(...c)),
20552
20600
  onMousemove: e[3] || (e[3] = (...c) => r.handleMouseMove && r.handleMouseMove(...c)),
20553
20601
  onMouseup: e[4] || (e[4] = (...c) => r.handleMouseUp && r.handleMouseUp(...c))
20554
20602
  }, [
20555
- o.actionStatus === 1 ? (k(), I("div", uf, y(t.$t("tips.crossHairText")), 1)) : N("", !0),
20556
- o.actionStatus >= 2 ? (k(), I("div", {
20603
+ o.actionStatus === 1 ? (k(), A("div", bf, y(t.$t("tips.crossHairText")), 1)) : N("", !0),
20604
+ o.actionStatus >= 2 ? (k(), A("div", {
20557
20605
  key: 1,
20558
20606
  class: "selection-box",
20559
20607
  style: he(r.selectionStyle)
20560
20608
  }, [
20561
- n("div", gf, y(Math.round(o.selection.width)) + " × " + y(Math.round(o.selection.height)), 1),
20562
- o.actionStatus === 3 ? (k(), I("div", {
20609
+ n("div", wf, y(Math.round(o.selection.width)) + " × " + y(Math.round(o.selection.height)), 1),
20610
+ o.actionStatus === 3 ? (k(), A("div", {
20563
20611
  key: 0,
20564
20612
  class: "action-buttons px-2 rounded font-weight-bold bg-background d-flex justify-end ga-4",
20565
20613
  onMousedown: e[0] || (e[0] = Le(() => {
@@ -20584,13 +20632,13 @@ function kf(t, e, a, i, o, r) {
20584
20632
  ], 32)) : N("", !0)
20585
20633
  ], 4)) : N("", !0)
20586
20634
  ], 32)) : N("", !0),
20587
- o.actionStatus >= 4 && o.actionStatus <= 6 ? (k(), I("div", {
20635
+ o.actionStatus >= 4 && o.actionStatus <= 6 ? (k(), A("div", {
20588
20636
  key: 1,
20589
20637
  class: ge(["capture-frame", { recording: o.actionStatus === 5 }]),
20590
20638
  style: he(r.selectionStyle)
20591
20639
  }, [
20592
- n("div", ff, [
20593
- n("div", yf, y(o.selection.width) + " × " + y(o.selection.height), 1)
20640
+ n("div", xf, [
20641
+ n("div", vf, y(o.selection.width) + " × " + y(o.selection.height), 1)
20594
20642
  ]),
20595
20643
  n("div", {
20596
20644
  class: "action-status mt-2 px-2 rounded font-weight-bold bg-background d-flex align-center justify-end ga-4",
@@ -20599,22 +20647,22 @@ function kf(t, e, a, i, o, r) {
20599
20647
  onMouseup: e[6] || (e[6] = Le(() => {
20600
20648
  }, ["stop"]))
20601
20649
  }, [
20602
- o.actionStatus === 4 ? (k(), I("div", bf, [
20650
+ o.actionStatus === 4 ? (k(), A("div", kf, [
20603
20651
  e[7] || (e[7] = n("div", { class: "dot bg-danger" }, null, -1)),
20604
- n("div", wf, y(t.$t("tips.recordingText")), 1)
20652
+ n("div", _f, y(t.$t("tips.recordingText")), 1)
20605
20653
  ])) : N("", !0),
20606
- o.actionStatus === 5 || o.actionStatus === 6 ? (k(), I("div", xf, [
20654
+ o.actionStatus === 5 || o.actionStatus === 6 ? (k(), A("div", Lf, [
20607
20655
  e[8] || (e[8] = n("div", { class: "dot bg-success" }, null, -1)),
20608
- n("div", vf, y(t.$t("tips.savingText")), 1)
20656
+ n("div", zf, y(t.$t("tips.savingText")), 1)
20609
20657
  ])) : N("", !0)
20610
20658
  ], 32)
20611
20659
  ], 6)) : N("", !0)
20612
20660
  ]);
20613
20661
  }
20614
- const _f = /* @__PURE__ */ ie(hf, [["render", kf], ["__scopeId", "data-v-b2dd8527"]]);
20615
- const Lf = {
20662
+ const Mf = /* @__PURE__ */ ie(ff, [["render", Cf], ["__scopeId", "data-v-a4f4a27b"]]);
20663
+ const Pf = {
20616
20664
  name: "IdmBottomBar",
20617
- components: { DateTimePicker: eo, IdmCapture: _f },
20665
+ components: { DateTimePicker: eo, IdmCapture: Mf },
20618
20666
  props: {
20619
20667
  menuToggle: {
20620
20668
  type: Object,
@@ -20654,7 +20702,8 @@ const Lf = {
20654
20702
  timeZone: localStorage.getItem("idm-timeZone-gl4") ? Number(localStorage.getItem("idm-timeZone-gl4")) : R().utcOffset() / 60,
20655
20703
  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],
20656
20704
  source: localStorage.getItem("forecastModelCacheGL4") === "undefined" ? "ECMWF" : localStorage.getItem("forecastModelCacheGL4"),
20657
- gifEnabled: !1
20705
+ gifEnabled: !1,
20706
+ frameCount: 0
20658
20707
  };
20659
20708
  },
20660
20709
  watch: {
@@ -20745,19 +20794,13 @@ const Lf = {
20745
20794
  this.$parent.$refs.idmWeatherLayers.handleMenuToggle();
20746
20795
  }
20747
20796
  }
20748
- }, zf = { class: "idm-bottom-bar-gl4" }, Cf = { class: "date-box d-flex ga-2 mr-2" }, Mf = { class: "play-btns-box d-flex justify-center align-center cursor-pointer ga-1" }, Pf = {
20749
- key: 0,
20750
- class: "iconfont icon-record"
20751
- }, Sf = {
20752
- key: 1,
20753
- class: "iconfont icon-stop-record text-danger"
20754
- }, Tf = { class: "fast-weathers-box d-flex justify-center align-center ga-2 cursor-pointer" }, Rf = { class: "model-box d-flex justify-center align-center ga-2 my-2" }, Df = {
20797
+ }, Sf = { class: "idm-bottom-bar-gl4" }, Tf = { class: "date-box d-flex ga-2 mr-2" }, Rf = { class: "play-btns-box d-flex justify-center align-center cursor-pointer ga-1" }, Df = { class: "fast-weathers-box d-flex justify-center align-center ga-2 cursor-pointer" }, If = { class: "model-box d-flex justify-center align-center ga-2 my-2" }, Af = {
20755
20798
  key: 0,
20756
20799
  class: "list d-flex flex-wrap pa-2 rounded ga-2"
20757
- }, If = ["onClick"], Af = { class: "btn-box d-flex justify-start align-center rounded ga-2 py-1 px-3" }, Gf = { class: "text-body-1" };
20758
- function Ff(t, e, a, i, o, r) {
20800
+ }, Gf = ["onClick"], Ff = { class: "btn-box d-flex justify-start align-center rounded ga-2 py-1 px-3" }, Nf = { class: "text-body-1" };
20801
+ function Wf(t, e, a, i, o, r) {
20759
20802
  const l = P("IdmCapture"), c = P("DateTimePicker"), s = P("VListItemTitle"), d = P("VListItem"), m = P("VList"), p = P("VMenu"), f = P("VBtn"), w = P("VDivider"), u = P("VTooltip");
20760
- return k(), I("div", zf, [
20803
+ return k(), A("div", Sf, [
20761
20804
  b(l, $({
20762
20805
  ref: "capture",
20763
20806
  isPlaying: !o.paused,
@@ -20766,13 +20809,14 @@ function Ff(t, e, a, i, o, r) {
20766
20809
  currentTimestamp: o.currentTimestamp,
20767
20810
  onCloseRecord: e[0] || (e[0] = (h) => {
20768
20811
  o.gifEnabled = !1, o.paused = !0;
20769
- })
20812
+ }),
20813
+ onFrameCount: e[1] || (e[1] = (h) => o.frameCount = h)
20770
20814
  }, t.$attrs), null, 16, ["isPlaying", "enabled", "frequency", "currentTimestamp"]),
20771
20815
  n("div", {
20772
20816
  class: "timeline-box px-2 d-flex justify-start align-center rounded",
20773
20817
  style: he({ right: o.right + 146 + "px", bottom: Object.values(o.show).includes(!0) ? "10px" : "-100px" })
20774
20818
  }, [
20775
- n("div", Cf, [
20819
+ n("div", Tf, [
20776
20820
  b(c, $({
20777
20821
  ref: "dateTimePicker",
20778
20822
  "date-time": o.currentDateTimeZ,
@@ -20781,10 +20825,10 @@ function Ff(t, e, a, i, o, r) {
20781
20825
  "interval-hour": o.intervalHour,
20782
20826
  width: 230
20783
20827
  }, t.$attrs, {
20784
- onCurrentTimestamp: e[1] || (e[1] = (h) => o.currentTimestamp = h),
20785
- onCurrentRealTime: e[2] || (e[2] = (h) => o.currentRealTime = h),
20786
- onMinTimestamp: e[3] || (e[3] = (h) => o.minTimestamp = h),
20787
- onMaxTimestamp: e[4] || (e[4] = (h) => o.maxTimestamp = h)
20828
+ onCurrentTimestamp: e[2] || (e[2] = (h) => o.currentTimestamp = h),
20829
+ onCurrentRealTime: e[3] || (e[3] = (h) => o.currentRealTime = h),
20830
+ onMinTimestamp: e[4] || (e[4] = (h) => o.minTimestamp = h),
20831
+ onMaxTimestamp: e[5] || (e[5] = (h) => o.maxTimestamp = h)
20788
20832
  }), null, 16, ["date-time", "time-zone", "day-about", "interval-hour"]),
20789
20833
  b(f, {
20790
20834
  text: "",
@@ -20798,7 +20842,7 @@ function Ff(t, e, a, i, o, r) {
20798
20842
  default: x(() => [
20799
20843
  b(m, { class: "pa-1" }, {
20800
20844
  default: x(() => [
20801
- (k(!0), I(Te, null, De(o.intervalOptions, (h, g) => (k(), W(d, {
20845
+ (k(!0), A(Te, null, De(o.intervalOptions, (h, g) => (k(), W(d, {
20802
20846
  key: g,
20803
20847
  value: h,
20804
20848
  variant: o.intervalHour === h ? "tonal" : "text",
@@ -20837,7 +20881,7 @@ function Ff(t, e, a, i, o, r) {
20837
20881
  class: "mx-2 my-3",
20838
20882
  style: { height: "16px" }
20839
20883
  }),
20840
- n("div", Mf, [
20884
+ n("div", Rf, [
20841
20885
  b(u, {
20842
20886
  text: t.$t("actions.record"),
20843
20887
  location: "top",
@@ -20845,18 +20889,34 @@ function Ff(t, e, a, i, o, r) {
20845
20889
  "open-on-click": !1
20846
20890
  }, {
20847
20891
  activator: x(({ props: h }) => [
20848
- b(f, $(h, {
20892
+ o.gifEnabled ? (k(), W(f, $({
20893
+ key: 1,
20894
+ disabled: o.frameCount < 1
20895
+ }, h, {
20849
20896
  icon: "",
20850
20897
  size: "small",
20851
20898
  density: "comfortable",
20852
20899
  variant: "text",
20853
- onClick: e[5] || (e[5] = (g) => o.gifEnabled = !o.gifEnabled)
20900
+ onClick: e[7] || (e[7] = (g) => o.gifEnabled = !o.gifEnabled)
20854
20901
  }), {
20855
- default: x(() => [
20856
- o.gifEnabled ? (k(), I("i", Sf)) : (k(), I("i", Pf))
20857
- ]),
20858
- _: 2
20859
- }, 1040)
20902
+ default: x(() => e[15] || (e[15] = [
20903
+ n("i", { class: "iconfont icon-stop-record text-danger" }, null, -1)
20904
+ ])),
20905
+ _: 2,
20906
+ __: [15]
20907
+ }, 1040, ["disabled"])) : (k(), W(f, $({ key: 0 }, h, {
20908
+ icon: "",
20909
+ size: "small",
20910
+ density: "comfortable",
20911
+ variant: "text",
20912
+ onClick: e[6] || (e[6] = (g) => o.gifEnabled = !o.gifEnabled)
20913
+ }), {
20914
+ default: x(() => e[14] || (e[14] = [
20915
+ n("i", { class: "iconfont icon-record" }, null, -1)
20916
+ ])),
20917
+ _: 2,
20918
+ __: [14]
20919
+ }, 1040))
20860
20920
  ]),
20861
20921
  _: 1
20862
20922
  }, 8, ["text"]),
@@ -20874,11 +20934,11 @@ function Ff(t, e, a, i, o, r) {
20874
20934
  variant: "text",
20875
20935
  onClick: r.handleReset
20876
20936
  }), {
20877
- default: x(() => e[12] || (e[12] = [
20937
+ default: x(() => e[16] || (e[16] = [
20878
20938
  n("i", { class: "iconfont icon-Reset" }, null, -1)
20879
20939
  ])),
20880
20940
  _: 2,
20881
- __: [12]
20941
+ __: [16]
20882
20942
  }, 1040, ["onClick"])
20883
20943
  ]),
20884
20944
  _: 1
@@ -20897,11 +20957,11 @@ function Ff(t, e, a, i, o, r) {
20897
20957
  variant: "text",
20898
20958
  onClick: r.handleBackward
20899
20959
  }), {
20900
- default: x(() => e[13] || (e[13] = [
20960
+ default: x(() => e[17] || (e[17] = [
20901
20961
  n("i", { class: "iconfont icon-Backward" }, null, -1)
20902
20962
  ])),
20903
20963
  _: 2,
20904
- __: [13]
20964
+ __: [17]
20905
20965
  }, 1040, ["onClick"])
20906
20966
  ]),
20907
20967
  _: 1
@@ -20920,11 +20980,11 @@ function Ff(t, e, a, i, o, r) {
20920
20980
  variant: "text",
20921
20981
  onClick: r.handlePlay
20922
20982
  }), {
20923
- default: x(() => e[14] || (e[14] = [
20983
+ default: x(() => e[18] || (e[18] = [
20924
20984
  n("i", { class: "iconfont icon-Play" }, null, -1)
20925
20985
  ])),
20926
20986
  _: 2,
20927
- __: [14]
20987
+ __: [18]
20928
20988
  }, 1040, ["onClick"])) : N("", !0)
20929
20989
  ]),
20930
20990
  _: 1
@@ -20943,11 +21003,11 @@ function Ff(t, e, a, i, o, r) {
20943
21003
  variant: "text",
20944
21004
  onClick: r.handlePause
20945
21005
  }), {
20946
- default: x(() => e[15] || (e[15] = [
21006
+ default: x(() => e[19] || (e[19] = [
20947
21007
  n("i", { class: "iconfont icon-Pause" }, null, -1)
20948
21008
  ])),
20949
21009
  _: 2,
20950
- __: [15]
21010
+ __: [19]
20951
21011
  }, 1040, ["onClick"]))
20952
21012
  ]),
20953
21013
  _: 1
@@ -20966,11 +21026,11 @@ function Ff(t, e, a, i, o, r) {
20966
21026
  variant: "text",
20967
21027
  onClick: r.handleForward
20968
21028
  }), {
20969
- default: x(() => e[16] || (e[16] = [
21029
+ default: x(() => e[20] || (e[20] = [
20970
21030
  n("i", { class: "iconfont icon-Forward" }, null, -1)
20971
21031
  ])),
20972
21032
  _: 2,
20973
- __: [16]
21033
+ __: [20]
20974
21034
  }, 1040, ["onClick"])
20975
21035
  ]),
20976
21036
  _: 1
@@ -20981,7 +21041,7 @@ function Ff(t, e, a, i, o, r) {
20981
21041
  class: "mx-2 my-3",
20982
21042
  style: { height: "16px" }
20983
21043
  }),
20984
- n("div", Tf, [
21044
+ n("div", Df, [
20985
21045
  b(u, {
20986
21046
  text: t.$t("weather.windBarbs"),
20987
21047
  location: "top"
@@ -20996,13 +21056,13 @@ function Ff(t, e, a, i, o, r) {
20996
21056
  height: "24",
20997
21057
  width: "24",
20998
21058
  "min-width": "24",
20999
- onClick: e[6] || (e[6] = (T) => r.handleClickFastWeather("wind"))
21059
+ onClick: e[8] || (e[8] = (T) => r.handleClickFastWeather("wind"))
21000
21060
  }), {
21001
- default: x(() => e[17] || (e[17] = [
21061
+ default: x(() => e[21] || (e[21] = [
21002
21062
  n("i", { class: "iconfont icon-a-WindLevel" }, null, -1)
21003
21063
  ])),
21004
21064
  _: 2,
21005
- __: [17]
21065
+ __: [21]
21006
21066
  }, 1040, ["color", "variant"])
21007
21067
  ];
21008
21068
  }),
@@ -21022,7 +21082,7 @@ function Ff(t, e, a, i, o, r) {
21022
21082
  height: "24",
21023
21083
  width: "24",
21024
21084
  "min-width": "24",
21025
- onClick: e[7] || (e[7] = (T) => r.handleClickFastWeather("sig-wave-height"))
21085
+ onClick: e[9] || (e[9] = (T) => r.handleClickFastWeather("sig-wave-height"))
21026
21086
  }), {
21027
21087
  default: x(() => [
21028
21088
  n("i", $(h, { class: "iconfont icon-a-WaveHeight" }), null, 16)
@@ -21047,7 +21107,7 @@ function Ff(t, e, a, i, o, r) {
21047
21107
  height: "24",
21048
21108
  width: "24",
21049
21109
  "min-width": "24",
21050
- onClick: e[8] || (e[8] = (T) => r.handleClickFastWeather("current-direction"))
21110
+ onClick: e[10] || (e[10] = (T) => r.handleClickFastWeather("current-direction"))
21051
21111
  }), {
21052
21112
  default: x(() => [
21053
21113
  n("i", $(h, { class: "iconfont icon-Current" }), null, 16)
@@ -21085,32 +21145,32 @@ function Ff(t, e, a, i, o, r) {
21085
21145
  class: "mx-2 mr-3 my-3",
21086
21146
  style: { height: "16px" }
21087
21147
  }),
21088
- n("div", Rf, [
21148
+ n("div", If, [
21089
21149
  b(f, {
21090
21150
  text: "",
21091
21151
  height: "30",
21092
21152
  class: "px-2 elevation-0 text-body-1 btn-border-2 btn-bg-2",
21093
21153
  color: o.source === "GFS" ? "primary" : "",
21094
- onClick: e[9] || (e[9] = (h) => o.source = "GFS")
21154
+ onClick: e[11] || (e[11] = (h) => o.source = "GFS")
21095
21155
  }, {
21096
- default: x(() => e[18] || (e[18] = [
21156
+ default: x(() => e[22] || (e[22] = [
21097
21157
  Z("NOAA", -1)
21098
21158
  ])),
21099
21159
  _: 1,
21100
- __: [18]
21160
+ __: [22]
21101
21161
  }, 8, ["color"]),
21102
21162
  b(f, {
21103
21163
  text: "",
21104
21164
  height: "30",
21105
21165
  class: "px-2 elevation-0 text-body-1 btn-border-2 btn-bg-2",
21106
21166
  color: o.source === "ECMWF" ? "primary" : "",
21107
- onClick: e[10] || (e[10] = (h) => o.source = "ECMWF")
21167
+ onClick: e[12] || (e[12] = (h) => o.source = "ECMWF")
21108
21168
  }, {
21109
- default: x(() => e[19] || (e[19] = [
21169
+ default: x(() => e[23] || (e[23] = [
21110
21170
  Z("ECMWF", -1)
21111
21171
  ])),
21112
21172
  _: 1,
21113
- __: [19]
21173
+ __: [23]
21114
21174
  }, 8, ["color"])
21115
21175
  ])
21116
21176
  ], 4),
@@ -21118,34 +21178,34 @@ function Ff(t, e, a, i, o, r) {
21118
21178
  class: "timezone-box d-flex flex-column justify-space-between align-end",
21119
21179
  style: he({ right: o.right + "px" })
21120
21180
  }, [
21121
- o.showTimezone ? (k(), I("div", Df, [
21122
- (k(!0), I(Te, null, De(o.offsets, (h) => (k(), I("div", {
21181
+ o.showTimezone ? (k(), A("div", Af, [
21182
+ (k(!0), A(Te, null, De(o.offsets, (h) => (k(), A("div", {
21123
21183
  key: h,
21124
21184
  class: "item rounded text-body-2 hover-active",
21125
21185
  onClick: (g) => o.timeZone = h
21126
- }, y(h < 0 ? h : "+" + h), 9, If))), 128))
21186
+ }, y(h < 0 ? h : "+" + h), 9, Gf))), 128))
21127
21187
  ])) : N("", !0),
21128
- n("div", Af, [
21188
+ n("div", Ff, [
21129
21189
  b(f, {
21130
21190
  text: "",
21131
21191
  variant: "flat",
21132
21192
  height: "28",
21133
21193
  class: "pa-1 text-body-1",
21134
21194
  color: "primary",
21135
- onClick: e[11] || (e[11] = (h) => o.showTimezone = !o.showTimezone)
21195
+ onClick: e[13] || (e[13] = (h) => o.showTimezone = !o.showTimezone)
21136
21196
  }, {
21137
21197
  default: x(() => [
21138
21198
  Z(" UTC " + y(o.timeZone < 0 ? o.timeZone : "+" + o.timeZone), 1)
21139
21199
  ]),
21140
21200
  _: 1
21141
21201
  }),
21142
- n("span", Gf, y(o.currentRealTime), 1)
21202
+ n("span", Nf, y(o.currentRealTime), 1)
21143
21203
  ])
21144
21204
  ], 4)
21145
21205
  ]);
21146
21206
  }
21147
- const Nf = /* @__PURE__ */ ie(Lf, [["render", Ff]]);
21148
- const Wf = {
21207
+ const Ef = /* @__PURE__ */ ie(Pf, [["render", Wf]]);
21208
+ const Bf = {
21149
21209
  name: "IdmTimePlayer",
21150
21210
  components: { DateTimePicker: eo },
21151
21211
  props: {
@@ -21253,14 +21313,14 @@ const Wf = {
21253
21313
  this.step = Math.floor(e / this.frequency), this.animation = requestAnimationFrame(this.animateSpeeds);
21254
21314
  }
21255
21315
  }
21256
- }, Ef = { class: "w-100 timeline-box d-flex justify-space-around align-center rounded px-2" };
21257
- function Bf(t, e, a, i, o, r) {
21316
+ }, Zf = { class: "w-100 timeline-box d-flex justify-space-around align-center rounded px-2" };
21317
+ function Of(t, e, a, i, o, r) {
21258
21318
  const l = P("VBtn"), c = P("DateTimePicker");
21259
- return k(), I("div", {
21319
+ return k(), A("div", {
21260
21320
  class: "idm-time-player-gl4 d-flex justify-center align-center",
21261
21321
  style: he({ bottom: Object.values(o.show).includes(!0) ? a.playerBottom + "px" : "-100px" })
21262
21322
  }, [
21263
- n("div", Ef, [
21323
+ n("div", Zf, [
21264
21324
  b(l, {
21265
21325
  size: "small",
21266
21326
  density: "compact",
@@ -21353,7 +21413,7 @@ function Bf(t, e, a, i, o, r) {
21353
21413
  ])
21354
21414
  ], 4);
21355
21415
  }
21356
- const xr = /* @__PURE__ */ ie(Wf, [["render", Bf]]), Zf = {
21416
+ const xr = /* @__PURE__ */ ie(Bf, [["render", Of]]), Vf = {
21357
21417
  name: "IdmGL4",
21358
21418
  components: {
21359
21419
  IdmOtherLayer: Ns,
@@ -21361,8 +21421,8 @@ const xr = /* @__PURE__ */ ie(Wf, [["render", Bf]]), Zf = {
21361
21421
  IdmTropicals: ar,
21362
21422
  IdmMeasure: kp,
21363
21423
  IdmSpot: bp,
21364
- IdmMarker: Vu,
21365
- IdmBottomBar: Nf,
21424
+ IdmMarker: Yu,
21425
+ IdmBottomBar: Ef,
21366
21426
  IdmTimePlayer: xr
21367
21427
  },
21368
21428
  props: {
@@ -21419,14 +21479,14 @@ const xr = /* @__PURE__ */ ie(Wf, [["render", Bf]]), Zf = {
21419
21479
  }
21420
21480
  },
21421
21481
  methods: {}
21422
- }, Of = {
21482
+ }, jf = {
21423
21483
  ref: "mapHomeGl4",
21424
21484
  class: "map-gl4-home",
21425
21485
  id: "map-gl4-home"
21426
21486
  };
21427
- function Vf(t, e, a, i, o, r) {
21487
+ function Xf(t, e, a, i, o, r) {
21428
21488
  const l = P("IdmOtherLayer"), c = P("IdmWeatherLayer"), s = P("IdmTropicals"), d = P("IdmSpot"), m = P("IdmMeasure"), p = P("IdmMarker"), f = P("IdmBottomBar"), w = P("IdmTimePlayer");
21429
- return k(), I("div", Of, [
21489
+ return k(), A("div", jf, [
21430
21490
  b(l, $({
21431
21491
  ref: "idmOtherLayers",
21432
21492
  simple: a.simple,
@@ -21519,8 +21579,8 @@ function Vf(t, e, a, i, o, r) {
21519
21579
  }, t.$attrs), null, 16, ["playerBottom", "bgClass", "weather-check-list", "map-feather"])) : N("", !0)
21520
21580
  ], 512);
21521
21581
  }
21522
- const jf = /* @__PURE__ */ ie(Zf, [["render", Vf]]);
21523
- class Xf {
21582
+ const Hf = /* @__PURE__ */ ie(Vf, [["render", Xf]]);
21583
+ class Yf {
21524
21584
  constructor(e = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImNseTVudHJzYzAwNWUwbHBsZHkyaDRqczMiLCJyb2xlIjoxLCJuYW1lIjoiZmFrZUBvcm13eC5jb20iLCJwbGF0SWQiOiJnZDBtdDFkIiwiY29tcGFueSI6eyJpZCI6bnVsbCwiY2hpbGRyZW4iOltdfSwiaWF0IjoxNzIzMDI0MDI0LCJleHAiOjM5MzA1NDQwMjR9.RrKcdcMnq-FxBLJQ-i6lx2FscDE46y8EvHIemPW4HTg") {
21525
21585
  ve(this, "originStyle");
21526
21586
  ve(this, "mapboxStyle");
@@ -21528,7 +21588,7 @@ class Xf {
21528
21588
  ve(this, "hi");
21529
21589
  ve(this, "td");
21530
21590
  ve(this, "windy");
21531
- var a, i, o, r, l, c, s, d, m, p, f, w, u, h, g, _, T, v, M, L, z, S, D, A, E, X, O, q, ae, re, pe, G, J, K, oe, Y, H, ee, F, ne, fe, ke, ze, me, ye, _e, Re, Q, de, He, Ee, Me, Ae, le, Pe, ue, we, Ze, Ue, Ye, U, xe, Ge, Oe, Ve, te, Be, se, at, ot, it, Ne, mt, dt, ht, pt, ut, gt, ft, yt, bt, wt, xt, vt, kt, _t, Lt, zt, Ct, Mt, Pt, St, Tt, Rt, Dt, It, At, Gt, Ft, Nt, Wt, Et, Bt, Zt, Ot, Vt, jt, Xt, Ht, Yt, Ut, Jt, Kt, qt, Qt, ea, ta, aa, oa, ia, ra, la, na, sa, ca, ma, da, ha, pa, ua, ga, fa, ya, ba, wa, xa, va, ka, _a, La, za, Ca, Ma, Pa, Sa, Ta, Ra, Da, Ia, Aa, Ga, Fa, xo, vo, ko, _o, Lo, zo, Co, Mo, Po, So, To, Ro, Do, Io, Ao, Go, Fo, No, Wo, Eo, Bo, Zo, Oo, Vo, jo, Xo, Ho, Yo, Uo, $o, Jo, Ko, qo, Qo, ei, ti, ai, oi, ii, ri, li, ni, si, ci, mi, di, hi, pi, ui, gi, fi, yi, bi, wi, xi, vi, ki, _i, Li, zi, Ci, Mi, Pi, Si, Ti, Ri;
21591
+ var a, i, o, r, l, c, s, d, m, p, f, w, u, h, g, _, T, v, M, L, z, S, D, I, E, X, O, q, ae, re, pe, G, J, K, oe, Y, H, ee, F, ne, fe, ke, ze, me, be, _e, Re, Q, de, He, Ee, Me, Ae, le, Pe, ue, we, Ze, Ue, Ye, U, xe, Ge, Oe, Ve, te, Be, se, at, ot, it, Ne, mt, dt, ht, pt, ut, gt, ft, yt, bt, wt, xt, vt, kt, _t, Lt, zt, Ct, Mt, Pt, St, Tt, Rt, Dt, It, At, Gt, Ft, Nt, Wt, Et, Bt, Zt, Ot, Vt, jt, Xt, Ht, Yt, Ut, Jt, Kt, qt, Qt, ea, ta, aa, oa, ia, ra, la, na, sa, ca, ma, da, ha, pa, ua, ga, fa, ya, ba, wa, xa, va, ka, _a, La, za, Ca, Ma, Pa, Sa, Ta, Ra, Da, Ia, Aa, Ga, Fa, xo, vo, ko, _o, Lo, zo, Co, Mo, Po, So, To, Ro, Do, Io, Ao, Go, Fo, No, Wo, Eo, Bo, Zo, Oo, Vo, jo, Xo, Ho, Yo, Uo, $o, Jo, Ko, qo, Qo, ei, ti, ai, oi, ii, ri, li, ni, si, ci, mi, di, hi, pi, ui, gi, fi, yi, bi, wi, xi, vi, ki, _i, Li, zi, Ci, Mi, Pi, Si, Ti, Ri;
21532
21592
  this.i4 = {
21533
21593
  source: {
21534
21594
  type: "raster",
@@ -40073,7 +40133,7 @@ class Xf {
40073
40133
  (v = (T = this.originStyle) == null ? void 0 : T.light.layers) == null ? void 0 : v.find((C) => C.id === "country-boundaries"),
40074
40134
  (L = (M = this.originStyle) == null ? void 0 : M.light.layers) == null ? void 0 : L.find((C) => C.id === "water-outline"),
40075
40135
  (S = (z = this.originStyle) == null ? void 0 : z.light.layers) == null ? void 0 : S.find((C) => C.id === "water-outline2"),
40076
- (A = (D = this.originStyle) == null ? void 0 : D.light.layers) == null ? void 0 : A.find((C) => C.id === "empty-layer-2"),
40136
+ (I = (D = this.originStyle) == null ? void 0 : D.light.layers) == null ? void 0 : I.find((C) => C.id === "empty-layer-2"),
40077
40137
  (X = (E = this.originStyle) == null ? void 0 : E.light.layers) == null ? void 0 : X.find((C) => C.id === "water-line-label"),
40078
40138
  (q = (O = this.originStyle) == null ? void 0 : O.light.layers) == null ? void 0 : q.find((C) => C.id === "water-point-label"),
40079
40139
  (re = (ae = this.originStyle) == null ? void 0 : ae.light.layers) == null ? void 0 : re.find((C) => C.id === "world-12nm-v4-20231025"),
@@ -40084,7 +40144,7 @@ class Xf {
40084
40144
  (ne = (F = this.originStyle) == null ? void 0 : F.light.layers) == null ? void 0 : ne.find((C) => C.id === "china-route-label"),
40085
40145
  (ke = (fe = this.originStyle) == null ? void 0 : fe.light.layers) == null ? void 0 : ke.find((C) => C.id === "admin-0-boundary-bg"),
40086
40146
  (me = (ze = this.originStyle) == null ? void 0 : ze.light.layers) == null ? void 0 : me.find((C) => C.id === "admin-0-boundary"),
40087
- (_e = (ye = this.originStyle) == null ? void 0 : ye.light.layers) == null ? void 0 : _e.find((C) => C.id === "admin-0-boundary-disputed"),
40147
+ (_e = (be = this.originStyle) == null ? void 0 : be.light.layers) == null ? void 0 : _e.find((C) => C.id === "admin-0-boundary-disputed"),
40088
40148
  (Q = (Re = this.originStyle) == null ? void 0 : Re.light.layers) == null ? void 0 : Q.find((C) => C.id === "country-label"),
40089
40149
  (He = (de = this.originStyle) == null ? void 0 : de.light.layers) == null ? void 0 : He.find((C) => C.id === "continent-label"),
40090
40150
  (Me = (Ee = this.originStyle) == null ? void 0 : Ee.light.layers) == null ? void 0 : Me.find((C) => C.id === "tide-stations"),
@@ -40278,7 +40338,7 @@ class Xf {
40278
40338
  };
40279
40339
  }
40280
40340
  }
40281
- const Hf = {
40341
+ const Uf = {
40282
40342
  name: "MapInitial",
40283
40343
  props: {
40284
40344
  token: {
@@ -40351,8 +40411,8 @@ const Hf = {
40351
40411
  },
40352
40412
  methods: {
40353
40413
  async initOnlineMap() {
40354
- this.helper = new Xf(this.token), be.accessToken = "pk.eyJ1IjoibmVhdGNoZW5oZW5nIiwiYSI6ImNsdXM3cnBmODBsemgycW1vaXc1bjV6bXMifQ.w6fqHGRbhNhLvm0LnX4ZVw";
40355
- const t = new be.Map({
40414
+ this.helper = new Yf(this.token), ye.accessToken = "pk.eyJ1IjoibmVhdGNoZW5oZW5nIiwiYSI6ImNsdXM3cnBmODBsemgycW1vaXc1bjV6bXMifQ.w6fqHGRbhNhLvm0LnX4ZVw";
40415
+ const t = new ye.Map({
40356
40416
  container: "map",
40357
40417
  // style: 'mapbox://styles/neatchenheng/cmd894dwn036m01rf7anc0k0d', //light
40358
40418
  // style: 'mapbox://styles/neatchenheng/cmdqwez32005b01re2w0k3zk4', // dark
@@ -40381,7 +40441,7 @@ const Hf = {
40381
40441
  },
40382
40442
  addScaleControl() {
40383
40443
  var e;
40384
- this.map.addControl(new be.ScaleControl({ maxWidth: 120, unit: "nautical" }), "bottom-left");
40444
+ this.map.addControl(new ye.ScaleControl({ maxWidth: 120, unit: "nautical" }), "bottom-left");
40385
40445
  const t = (e = document.getElementsByClassName("mapboxgl-ctrl-scale")) == null ? void 0 : e[0];
40386
40446
  t && (t.className = "mapboxgl-ctrl-scale " + this.mapFeather);
40387
40447
  },
@@ -40394,24 +40454,24 @@ const Hf = {
40394
40454
  this.zoom > 2 && (this.zoom = Math.floor(this.zoom) - 1, (t = this.map) == null || t.flyTo({ zoom: this.zoom, duration: 500 }));
40395
40455
  }
40396
40456
  }
40397
- }, Yf = { class: "v-btn--variant-elevated rounded" }, Uf = { class: "v-btn--variant-elevated rounded" }, $f = { class: "zoom" }, Jf = {
40457
+ }, $f = { class: "v-btn--variant-elevated rounded" }, Jf = { class: "v-btn--variant-elevated rounded" }, Kf = { class: "zoom" }, qf = {
40398
40458
  key: 2,
40399
40459
  class: "position-absolute left-0 bottom-0 ma-2 my-1 text-caption text-label opacity-70"
40400
40460
  };
40401
- function Kf(t, e, a, i, o, r) {
40461
+ function Qf(t, e, a, i, o, r) {
40402
40462
  const l = P("VBtn");
40403
- return k(), I("div", {
40463
+ return k(), A("div", {
40404
40464
  id: "mapbox-initial-gl4",
40405
40465
  class: "mapbox-initial-gl4 gif-container",
40406
40466
  style: he({ height: a.height, width: a.width })
40407
40467
  }, [
40408
40468
  e[6] || (e[6] = n("div", { id: "map" }, null, -1)),
40409
- a.simple ? (k(), I("div", {
40469
+ a.simple ? (k(), A("div", {
40410
40470
  key: 0,
40411
40471
  class: "menu-bar-box transition px-1 rounded d-flex flex-column pa-1 simple",
40412
40472
  style: he({ top: a.top + 294 + "px", right: o.right + "px", height: "40px" })
40413
40473
  }, [
40414
- n("div", Yf, [
40474
+ n("div", $f, [
40415
40475
  b(l, {
40416
40476
  "min-width": "32",
40417
40477
  width: "32",
@@ -40427,12 +40487,12 @@ function Kf(t, e, a, i, o, r) {
40427
40487
  }, 8, ["onClick"])
40428
40488
  ])
40429
40489
  ], 4)) : N("", !0),
40430
- a.simple ? N("", !0) : (k(), I("div", {
40490
+ a.simple ? N("", !0) : (k(), A("div", {
40431
40491
  key: 1,
40432
40492
  class: "menu-bar-box transition px-1 rounded d-flex flex-column",
40433
40493
  style: he({ top: a.top + 308 + "px", right: o.right + "px", height: "112px" })
40434
40494
  }, [
40435
- n("div", Uf, [
40495
+ n("div", Jf, [
40436
40496
  b(l, {
40437
40497
  "min-width": "32",
40438
40498
  width: "32",
@@ -40446,7 +40506,7 @@ function Kf(t, e, a, i, o, r) {
40446
40506
  _: 1,
40447
40507
  __: [1]
40448
40508
  }, 8, ["onClick"]),
40449
- n("div", $f, y(o.zoom ? Math.floor(o.zoom) : 0), 1),
40509
+ n("div", Kf, y(o.zoom ? Math.floor(o.zoom) : 0), 1),
40450
40510
  b(l, {
40451
40511
  "min-width": "32",
40452
40512
  width: "32",
@@ -40462,7 +40522,7 @@ function Kf(t, e, a, i, o, r) {
40462
40522
  }, 8, ["onClick"])
40463
40523
  ])
40464
40524
  ], 4)),
40465
- a.simple ? N("", !0) : (k(), I("div", Jf, [
40525
+ a.simple ? N("", !0) : (k(), A("div", qf, [
40466
40526
  e[3] || (e[3] = n("span", null, "© 2023", -1)),
40467
40527
  n("span", null, "-" + y(r.computeYear), 1),
40468
40528
  e[4] || (e[4] = n("span", { class: "text-uppercase ma-2" }, "ormwx.com", -1)),
@@ -40474,8 +40534,8 @@ function Kf(t, e, a, i, o, r) {
40474
40534
  ]))
40475
40535
  ], 4);
40476
40536
  }
40477
- const qf = /* @__PURE__ */ ie(Hf, [["render", Kf]]);
40478
- const Qf = {
40537
+ const e1 = /* @__PURE__ */ ie(Uf, [["render", Qf]]);
40538
+ const t1 = {
40479
40539
  name: "DateRangePicker",
40480
40540
  props: {
40481
40541
  width: {
@@ -40711,22 +40771,22 @@ const Qf = {
40711
40771
  this.dateRange = [], this.dateRangeStr = "", this.$emit("dateRange", []);
40712
40772
  }
40713
40773
  }
40714
- }, e1 = {
40774
+ }, a1 = {
40715
40775
  class: "idm-gl4-date-picker",
40716
40776
  ref: "idmGl4DatePicker"
40717
- }, t1 = { class: "flex-1-1-0" }, a1 = { class: "pa-0 w-100 d-flex justify-space-between align-center ga-4" }, o1 = {
40777
+ }, o1 = { class: "flex-1-1-0" }, i1 = { class: "pa-0 w-100 d-flex justify-space-between align-center ga-4" }, r1 = {
40718
40778
  key: 0,
40719
40779
  class: "d-flex justify-start align-center flex-wrap ga-3 ml-n2"
40720
- }, i1 = { class: "flex-1-1-0 d-flex justify-end align-center ga-4" };
40721
- function r1(t, e, a, i, o, r) {
40780
+ }, l1 = { class: "flex-1-1-0 d-flex justify-end align-center ga-4" };
40781
+ function n1(t, e, a, i, o, r) {
40722
40782
  const l = P("VIcon"), c = P("VDatePicker"), s = P("v-divider"), d = P("VCardText"), m = P("VDivider"), p = P("VBtn"), f = P("VCardActions"), w = P("VCard");
40723
- return k(), I("div", e1, [
40783
+ return k(), A("div", a1, [
40724
40784
  n("div", {
40725
40785
  style: he({ height: a.height + "px", width: a.width ? a.width + "px" : "auto" }),
40726
40786
  class: "rounded text-body-1 btn-border-1 btn-bg-1 d-flex align-center justify-space-between px-2 cursor-pointer",
40727
40787
  onClick: e[0] || (e[0] = (...u) => r.handleOpenDatePicker && r.handleOpenDatePicker(...u))
40728
40788
  }, [
40729
- n("span", t1, y(o.dateRangeStr), 1),
40789
+ n("span", o1, y(o.dateRangeStr), 1),
40730
40790
  o.dateRangeStr ? (k(), W(l, {
40731
40791
  key: 0,
40732
40792
  class: "text-h5",
@@ -40743,7 +40803,7 @@ function r1(t, e, a, i, o, r) {
40743
40803
  default: x(() => [
40744
40804
  b(d, { class: "w-100 flex-1-1-0 d-flex pa-0" }, {
40745
40805
  default: x(() => [
40746
- n("div", a1, [
40806
+ n("div", i1, [
40747
40807
  b(c, {
40748
40808
  modelValue: o.dateRange[0],
40749
40809
  "onUpdate:modelValue": [
@@ -40794,8 +40854,8 @@ function r1(t, e, a, i, o, r) {
40794
40854
  default: x(() => {
40795
40855
  var u, h;
40796
40856
  return [
40797
- (u = a.fastPick) != null && u.show ? (k(), I("div", o1, [
40798
- (k(!0), I(Te, null, De((h = o.fastPickOptions) == null ? void 0 : h.filter((g) => a.fastPick.allows.some((_) => _ === g)), (g) => (k(), W(p, {
40857
+ (u = a.fastPick) != null && u.show ? (k(), A("div", r1, [
40858
+ (k(!0), A(Te, null, De((h = o.fastPickOptions) == null ? void 0 : h.filter((g) => a.fastPick.allows.some((_) => _ === g)), (g) => (k(), W(p, {
40799
40859
  size: "small",
40800
40860
  color: o.activeFastPick === g ? "primary" : "",
40801
40861
  variant: o.activeFastPick === g ? "tonal" : "text",
@@ -40808,7 +40868,7 @@ function r1(t, e, a, i, o, r) {
40808
40868
  _: 2
40809
40869
  }, 1032, ["color", "variant", "onClick"]))), 256))
40810
40870
  ])) : N("", !0),
40811
- n("div", i1, [
40871
+ n("div", l1, [
40812
40872
  b(p, {
40813
40873
  size: "small",
40814
40874
  variant: "tonal",
@@ -40842,25 +40902,25 @@ function r1(t, e, a, i, o, r) {
40842
40902
  }, 8, ["style"])) : N("", !0)
40843
40903
  ], 512);
40844
40904
  }
40845
- const l1 = /* @__PURE__ */ ie(Qf, [["render", r1]]), k1 = {
40905
+ const s1 = /* @__PURE__ */ ie(t1, [["render", n1]]), L1 = {
40846
40906
  install(t) {
40847
- t.component("MapInitial", qf), t.component("MapboxGL", jf), t.component("TropicalGL", ar), t.component("LatLngGL", tr), t.component("DateTimePicker", eo), t.component("DateRangePicker", l1), t.component("PortDetail", go), t.component("TimePlayer", xr);
40907
+ t.component("MapInitial", e1), t.component("MapboxGL", Hf), t.component("TropicalGL", ar), t.component("LatLngGL", tr), t.component("DateTimePicker", eo), t.component("DateRangePicker", s1), t.component("PortDetail", go), t.component("TimePlayer", xr);
40848
40908
  }
40849
40909
  };
40850
40910
  export {
40851
40911
  eo as D,
40852
40912
  tr as L,
40853
- k1 as M,
40913
+ L1 as M,
40854
40914
  go as P,
40855
40915
  ar as T,
40856
40916
  fo as V,
40857
40917
  $e as W,
40858
- qf as a,
40859
- jf as b,
40860
- l1 as c,
40918
+ e1 as a,
40919
+ Hf as b,
40920
+ s1 as c,
40861
40921
  xr as d,
40862
40922
  Ce as e,
40863
40923
  We as f,
40864
- Xf as g,
40924
+ Yf as g,
40865
40925
  Ba as l
40866
40926
  };