@abi-software/flatmap-viewer 2.8.8 → 2.8.9

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.
Files changed (3) hide show
  1. package/README.rst +1 -1
  2. package/dist/index.js +660 -658
  3. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -5,7 +5,7 @@ var Ql = (e, t, r) => (fD(e, typeof t != "symbol" ? t + "" : t, r), r), RT = (e,
5
5
  if (!t.has(e))
6
6
  throw TypeError("Cannot " + r);
7
7
  };
8
- var Pt = (e, t, r) => (RT(e, t, "read from private field"), r ? r.call(e) : t.get(e)), a1 = (e, t, r) => {
8
+ var It = (e, t, r) => (RT(e, t, "read from private field"), r ? r.call(e) : t.get(e)), a1 = (e, t, r) => {
9
9
  if (t.has(e))
10
10
  throw TypeError("Cannot add the same private member more than once");
11
11
  t instanceof WeakSet ? t.add(e) : t.set(e, r);
@@ -1418,8 +1418,8 @@ var SM = { exports: {} };
1418
1418
  throw new Error(`Unrecognized format ${H}`);
1419
1419
  const P = H.startsWith("BGR"), k = new Uint8ClampedArray(g * x * 4);
1420
1420
  if (yield A.copyTo(k, function(j, q, X, et, it) {
1421
- const st = 4 * Math.max(-q, 0), Tt = (Math.max(0, X) - X) * et * 4 + st, gt = 4 * et, Lt = Math.max(0, q), It = Math.max(0, X);
1422
- return { rect: { x: Lt, y: It, width: Math.min(j.width, q + et) - Lt, height: Math.min(j.height, X + it) - It }, layout: [{ offset: Tt, stride: gt }] };
1421
+ const st = 4 * Math.max(-q, 0), Tt = (Math.max(0, X) - X) * et * 4 + st, gt = 4 * et, Lt = Math.max(0, q), Vt = Math.max(0, X);
1422
+ return { rect: { x: Lt, y: Vt, width: Math.min(j.width, q + et) - Lt, height: Math.min(j.height, X + it) - Vt }, layout: [{ offset: Tt, stride: gt }] };
1423
1423
  }(c, l, h, g, x)), P)
1424
1424
  for (let j = 0; j < k.length; j += 4) {
1425
1425
  const q = k[j];
@@ -1634,7 +1634,7 @@ var SM = { exports: {} };
1634
1634
  this.message = (l ? `${l}: ` : "") + g, x && (this.identifier = x), h != null && h.__line__ && (this.line = h.__line__);
1635
1635
  }
1636
1636
  }
1637
- function G2(c, ...l) {
1637
+ function U2(c, ...l) {
1638
1638
  for (const h of l)
1639
1639
  for (const g in h)
1640
1640
  c[g] = h[g];
@@ -1665,7 +1665,7 @@ var SM = { exports: {} };
1665
1665
  return !!this.bindings[l] || !!this.parent && this.parent.has(l);
1666
1666
  }
1667
1667
  }
1668
- const ln = { kind: "null" }, he = { kind: "number" }, Q1 = { kind: "string" }, n1 = { kind: "boolean" }, J2 = { kind: "color" }, tr = { kind: "object" }, s1 = { kind: "value" }, Hn = { kind: "collator" }, Cr = { kind: "formatted" }, Qt = { kind: "padding" }, tt = { kind: "resolvedImage" }, rt = { kind: "variableAnchorOffsetCollection" };
1668
+ const ln = { kind: "null" }, he = { kind: "number" }, Q1 = { kind: "string" }, n1 = { kind: "boolean" }, Y2 = { kind: "color" }, J2 = { kind: "object" }, s1 = { kind: "value" }, Hn = { kind: "collator" }, Cr = { kind: "formatted" }, Qt = { kind: "padding" }, tt = { kind: "resolvedImage" }, rt = { kind: "variableAnchorOffsetCollection" };
1669
1669
  function ct(c, l) {
1670
1670
  return { kind: "array", itemType: c, N: l };
1671
1671
  }
@@ -1676,7 +1676,7 @@ var SM = { exports: {} };
1676
1676
  }
1677
1677
  return c.kind;
1678
1678
  }
1679
- const At = [ln, he, Q1, n1, J2, Cr, tr, ct(s1), Qt, tt, rt];
1679
+ const At = [ln, he, Q1, n1, Y2, Cr, J2, ct(s1), Qt, tt, rt];
1680
1680
  function Ht(c, l) {
1681
1681
  if (l.kind === "error")
1682
1682
  return null;
@@ -1700,7 +1700,7 @@ var SM = { exports: {} };
1700
1700
  function bt(c, l) {
1701
1701
  return l.some((h) => h === "null" ? c === null : h === "array" ? Array.isArray(c) : h === "object" ? c && !Array.isArray(c) && typeof c == "object" : h === typeof c);
1702
1702
  }
1703
- function Vt(c, l) {
1703
+ function Pt(c, l) {
1704
1704
  return c.kind === "array" && l.kind === "array" ? c.itemType.kind === l.itemType.kind && typeof c.N == "number" : c.kind === l.kind;
1705
1705
  }
1706
1706
  const te = 0.96422, Ut = 0.82521, Xt = 4 / 29, Oe = 6 / 29, Je = 3 * Oe * Oe, ze = Oe * Oe * Oe, w1 = Math.PI / 180, e1 = 180 / Math.PI;
@@ -1722,18 +1722,18 @@ var SM = { exports: {} };
1722
1722
  }
1723
1723
  function $1([c, l, h, g]) {
1724
1724
  let x = (c + 16) / 116, A = isNaN(l) ? x : x + l / 500, H = isNaN(h) ? x : x - h / 200;
1725
- return x = 1 * $2(x), A = te * $2(A), H = Ut * $2(H), [T2(3.1338561 * A - 1.6168667 * x - 0.4906146 * H), T2(-0.9787684 * A + 1.9161415 * x + 0.033454 * H), T2(0.0719453 * A - 0.2289914 * x + 1.4052427 * H), g];
1725
+ return x = 1 * G2(x), A = te * G2(A), H = Ut * G2(H), [T2(3.1338561 * A - 1.6168667 * x - 0.4906146 * H), T2(-0.9787684 * A + 1.9161415 * x + 0.033454 * H), T2(0.0719453 * A - 0.2289914 * x + 1.4052427 * H), g];
1726
1726
  }
1727
1727
  function T2(c) {
1728
1728
  return (c = c <= 304e-5 ? 12.92 * c : 1.055 * Math.pow(c, 1 / 2.4) - 0.055) < 0 ? 0 : c > 1 ? 1 : c;
1729
1729
  }
1730
- function $2(c) {
1730
+ function G2(c) {
1731
1731
  return c > Oe ? c * c * c : Je * (c - Xt);
1732
1732
  }
1733
1733
  function D2(c) {
1734
1734
  return parseInt(c.padEnd(2, c), 16) / 255;
1735
1735
  }
1736
- function er(c, l) {
1736
+ function tr(c, l) {
1737
1737
  return Tr(l ? c / 100 : c, 0, 1);
1738
1738
  }
1739
1739
  function Tr(c, l, h) {
@@ -1768,11 +1768,11 @@ var SM = { exports: {} };
1768
1768
  if (g.startsWith("rgb")) {
1769
1769
  const H = g.match(/^rgba?\(\s*([\de.+-]+)(%)?(?:\s+|\s*(,)\s*)([\de.+-]+)(%)?(?:\s+|\s*(,)\s*)([\de.+-]+)(%)?(?:\s*([,\/])\s*([\de.+-]+)(%)?)?\s*\)$/);
1770
1770
  if (H) {
1771
- const [P, k, j, q, X, et, it, st, Tt, gt, Lt, It] = H, wt = [q || " ", it || " ", gt].join("");
1771
+ const [P, k, j, q, X, et, it, st, Tt, gt, Lt, Vt] = H, wt = [q || " ", it || " ", gt].join("");
1772
1772
  if (wt === " " || wt === " /" || wt === ",," || wt === ",,,") {
1773
1773
  const St = [j, et, Tt].join(""), Wt = St === "%%%" ? 100 : St === "" ? 255 : 0;
1774
1774
  if (Wt) {
1775
- const Jt = [Tr(+k / Wt, 0, 1), Tr(+X / Wt, 0, 1), Tr(+st / Wt, 0, 1), Lt ? er(+Lt, It) : 1];
1775
+ const Jt = [Tr(+k / Wt, 0, 1), Tr(+X / Wt, 0, 1), Tr(+st / Wt, 0, 1), Lt ? tr(+Lt, Vt) : 1];
1776
1776
  if (ia(Jt))
1777
1777
  return Jt;
1778
1778
  }
@@ -1784,14 +1784,14 @@ var SM = { exports: {} };
1784
1784
  if (A) {
1785
1785
  const [H, P, k, j, q, X, et, it, st] = A, Tt = [k || " ", q || " ", et].join("");
1786
1786
  if (Tt === " " || Tt === " /" || Tt === ",," || Tt === ",,,") {
1787
- const gt = [+P, Tr(+j, 0, 100), Tr(+X, 0, 100), it ? er(+it, st) : 1];
1787
+ const gt = [+P, Tr(+j, 0, 100), Tr(+X, 0, 100), it ? tr(+it, st) : 1];
1788
1788
  if (ia(gt))
1789
- return function([Lt, It, wt, St]) {
1789
+ return function([Lt, Vt, wt, St]) {
1790
1790
  function Wt(Jt) {
1791
- const we = (Jt + Lt / 30) % 12, ke = It * Math.min(wt, 1 - wt);
1791
+ const we = (Jt + Lt / 30) % 12, ke = Vt * Math.min(wt, 1 - wt);
1792
1792
  return wt - ke * Math.max(-1, Math.min(we - 3, 9 - we, 1));
1793
1793
  }
1794
- return Lt = z1(Lt), It /= 100, wt /= 100, [Wt(0), Wt(8), Wt(4), St];
1794
+ return Lt = z1(Lt), Vt /= 100, wt /= 100, [Wt(0), Wt(8), Wt(4), St];
1795
1795
  }(gt);
1796
1796
  }
1797
1797
  }
@@ -1853,15 +1853,15 @@ var SM = { exports: {} };
1853
1853
  return this.sections.length === 0 ? "" : this.sections.map((l) => l.text).join("");
1854
1854
  }
1855
1855
  }
1856
- class Z2 {
1856
+ class $2 {
1857
1857
  constructor(l) {
1858
1858
  this.values = l.slice();
1859
1859
  }
1860
1860
  static parse(l) {
1861
- if (l instanceof Z2)
1861
+ if (l instanceof $2)
1862
1862
  return l;
1863
1863
  if (typeof l == "number")
1864
- return new Z2([l, l, l, l]);
1864
+ return new $2([l, l, l, l]);
1865
1865
  if (Array.isArray(l) && !(l.length < 1 || l.length > 4)) {
1866
1866
  for (const h of l)
1867
1867
  if (typeof h != "number")
@@ -1876,14 +1876,14 @@ var SM = { exports: {} };
1876
1876
  case 3:
1877
1877
  l = [l[0], l[1], l[2], l[1]];
1878
1878
  }
1879
- return new Z2(l);
1879
+ return new $2(l);
1880
1880
  }
1881
1881
  }
1882
1882
  toString() {
1883
1883
  return JSON.stringify(this.values);
1884
1884
  }
1885
1885
  }
1886
- const q2 = /* @__PURE__ */ new Set(["center", "left", "right", "top", "bottom", "top-left", "top-right", "bottom-left", "bottom-right"]);
1886
+ const Z2 = /* @__PURE__ */ new Set(["center", "left", "right", "top", "bottom", "top-left", "top-right", "bottom-left", "bottom-right"]);
1887
1887
  class R1 {
1888
1888
  constructor(l) {
1889
1889
  this.values = l.slice();
@@ -1894,7 +1894,7 @@ var SM = { exports: {} };
1894
1894
  if (Array.isArray(l) && !(l.length < 1) && l.length % 2 == 0) {
1895
1895
  for (let h = 0; h < l.length; h += 2) {
1896
1896
  const g = l[h], x = l[h + 1];
1897
- if (typeof g != "string" || !q2.has(g) || !Array.isArray(x) || x.length !== 2 || typeof x[0] != "number" || typeof x[1] != "number")
1897
+ if (typeof g != "string" || !Z2.has(g) || !Array.isArray(x) || x.length !== 2 || typeof x[0] != "number" || typeof x[1] != "number")
1898
1898
  return;
1899
1899
  }
1900
1900
  return new R1(l);
@@ -1918,18 +1918,18 @@ var SM = { exports: {} };
1918
1918
  function Sn(c, l, h, g) {
1919
1919
  return typeof c == "number" && c >= 0 && c <= 255 && typeof l == "number" && l >= 0 && l <= 255 && typeof h == "number" && h >= 0 && h <= 255 ? g === void 0 || typeof g == "number" && g >= 0 && g <= 1 ? null : `Invalid rgba value [${[c, l, h, g].join(", ")}]: 'a' must be between 0 and 1.` : `Invalid rgba value [${(typeof g == "number" ? [c, l, h, g] : [c, l, h]).join(", ")}]: 'r', 'g', and 'b' must be between 0 and 255.`;
1920
1920
  }
1921
- function rr(c) {
1922
- if (c === null || typeof c == "string" || typeof c == "boolean" || typeof c == "number" || c instanceof f1 || c instanceof un || c instanceof Q2 || c instanceof Z2 || c instanceof R1 || c instanceof lr)
1921
+ function er(c) {
1922
+ if (c === null || typeof c == "string" || typeof c == "boolean" || typeof c == "number" || c instanceof f1 || c instanceof un || c instanceof Q2 || c instanceof $2 || c instanceof R1 || c instanceof lr)
1923
1923
  return !0;
1924
1924
  if (Array.isArray(c)) {
1925
1925
  for (const l of c)
1926
- if (!rr(l))
1926
+ if (!er(l))
1927
1927
  return !1;
1928
1928
  return !0;
1929
1929
  }
1930
1930
  if (typeof c == "object") {
1931
1931
  for (const l in c)
1932
- if (!rr(c[l]))
1932
+ if (!er(c[l]))
1933
1933
  return !1;
1934
1934
  return !0;
1935
1935
  }
@@ -1945,12 +1945,12 @@ var SM = { exports: {} };
1945
1945
  if (typeof c == "number")
1946
1946
  return he;
1947
1947
  if (c instanceof f1)
1948
- return J2;
1948
+ return Y2;
1949
1949
  if (c instanceof un)
1950
1950
  return Hn;
1951
1951
  if (c instanceof Q2)
1952
1952
  return Cr;
1953
- if (c instanceof Z2)
1953
+ if (c instanceof $2)
1954
1954
  return Qt;
1955
1955
  if (c instanceof R1)
1956
1956
  return rt;
@@ -1971,11 +1971,11 @@ var SM = { exports: {} };
1971
1971
  }
1972
1972
  return ct(h || s1, l);
1973
1973
  }
1974
- return tr;
1974
+ return J2;
1975
1975
  }
1976
1976
  function Gn(c) {
1977
1977
  const l = typeof c;
1978
- return c === null ? "" : l === "string" || l === "number" || l === "boolean" ? String(c) : c instanceof f1 || c instanceof Q2 || c instanceof Z2 || c instanceof R1 || c instanceof lr ? c.toString() : JSON.stringify(c);
1978
+ return c === null ? "" : l === "string" || l === "number" || l === "boolean" ? String(c) : c instanceof f1 || c instanceof Q2 || c instanceof $2 || c instanceof R1 || c instanceof lr ? c.toString() : JSON.stringify(c);
1979
1979
  }
1980
1980
  class Cn {
1981
1981
  constructor(l, h) {
@@ -1984,7 +1984,7 @@ var SM = { exports: {} };
1984
1984
  static parse(l, h) {
1985
1985
  if (l.length !== 2)
1986
1986
  return h.error(`'literal' expression requires exactly one argument, but found ${l.length - 1} instead.`);
1987
- if (!rr(l[1]))
1987
+ if (!er(l[1]))
1988
1988
  return h.error("invalid value");
1989
1989
  const g = l[1];
1990
1990
  let x = j1(g);
@@ -2008,7 +2008,7 @@ var SM = { exports: {} };
2008
2008
  return this.message;
2009
2009
  }
2010
2010
  }
2011
- const cn = { string: Q1, number: he, boolean: n1, object: tr };
2011
+ const cn = { string: Q1, number: he, boolean: n1, object: J2 };
2012
2012
  class Qr {
2013
2013
  constructor(l, h) {
2014
2014
  this.type = l, this.args = h;
@@ -2064,7 +2064,7 @@ var SM = { exports: {} };
2064
2064
  return this.args.every((l) => l.outputDefined());
2065
2065
  }
2066
2066
  }
2067
- const $n = { "to-boolean": n1, "to-color": J2, "to-number": he, "to-string": Q1 };
2067
+ const $n = { "to-boolean": n1, "to-color": Y2, "to-number": he, "to-string": Q1 };
2068
2068
  class k2 {
2069
2069
  constructor(l, h) {
2070
2070
  this.type = l, this.args = h;
@@ -2108,7 +2108,7 @@ var SM = { exports: {} };
2108
2108
  let h;
2109
2109
  for (const g of this.args) {
2110
2110
  h = g.evaluate(l);
2111
- const x = Z2.parse(h);
2111
+ const x = $2.parse(h);
2112
2112
  if (x)
2113
2113
  return x;
2114
2114
  }
@@ -2394,7 +2394,7 @@ var SM = { exports: {} };
2394
2394
  static parse(l, h) {
2395
2395
  if (l.length !== 2)
2396
2396
  return h.error(`'within' expression requires exactly one argument, but found ${l.length - 1} instead.`);
2397
- if (rr(l[1])) {
2397
+ if (er(l[1])) {
2398
2398
  const g = l[1];
2399
2399
  if (g.type === "FeatureCollection") {
2400
2400
  const x = [];
@@ -2703,11 +2703,11 @@ var SM = { exports: {} };
2703
2703
  if (isNaN(x) || isNaN(k))
2704
2704
  isNaN(x) ? isNaN(k) ? et = NaN : (et = k, H !== 1 && H !== 0 || (it = j)) : (et = x, q !== 1 && q !== 0 || (it = A));
2705
2705
  else {
2706
- let It = k - x;
2707
- k > x && It > 180 ? It -= 360 : k < x && x - k > 180 && (It += 360), et = x + h * It;
2706
+ let Vt = k - x;
2707
+ k > x && Vt > 180 ? Vt -= 360 : k < x && x - k > 180 && (Vt += 360), et = x + h * Vt;
2708
2708
  }
2709
- const [st, Tt, gt, Lt] = function([It, wt, St, Wt]) {
2710
- return It = isNaN(It) ? 0 : It * w1, $1([St, Math.cos(It) * wt, Math.sin(It) * wt, Wt]);
2709
+ const [st, Tt, gt, Lt] = function([Vt, wt, St, Wt]) {
2710
+ return Vt = isNaN(Vt) ? 0 : Vt * w1, $1([St, Math.cos(Vt) * wt, Math.sin(Vt) * wt, Wt]);
2711
2711
  }([et, it ?? Pi(A, j, h), Pi(H, q, h), Pi(P, X, h)]);
2712
2712
  return new f1(st, Tt, gt, Lt, !1);
2713
2713
  }
@@ -2717,7 +2717,7 @@ var SM = { exports: {} };
2717
2717
  }
2718
2718
  }
2719
2719
  }, array: H3, padding: function(c, l, h) {
2720
- return new Z2(H3(c.values, l.values, h));
2720
+ return new $2(H3(c.values, l.values, h));
2721
2721
  }, variableAnchorOffsetCollection: function(c, l, h) {
2722
2722
  const g = c.values, x = l.values;
2723
2723
  if (g.length !== x.length)
@@ -2779,7 +2779,7 @@ var SM = { exports: {} };
2779
2779
  return null;
2780
2780
  const P = [];
2781
2781
  let k = null;
2782
- g === "interpolate-hcl" || g === "interpolate-lab" ? k = J2 : h.expectedType && h.expectedType.kind !== "value" && (k = h.expectedType);
2782
+ g === "interpolate-hcl" || g === "interpolate-lab" ? k = Y2 : h.expectedType && h.expectedType.kind !== "value" && (k = h.expectedType);
2783
2783
  for (let j = 0; j < H.length; j += 2) {
2784
2784
  const q = H[j], X = H[j + 1], et = j + 3, it = j + 4;
2785
2785
  if (typeof q != "number")
@@ -2791,7 +2791,7 @@ var SM = { exports: {} };
2791
2791
  return null;
2792
2792
  k = k || st.type, P.push([q, st]);
2793
2793
  }
2794
- return Vt(k, he) || Vt(k, J2) || Vt(k, Qt) || Vt(k, rt) || Vt(k, ct(he)) ? new br(k, g, x, A, P) : h.error(`Type ${dt(k)} is not interpolatable.`);
2794
+ return Pt(k, he) || Pt(k, Y2) || Pt(k, Qt) || Pt(k, rt) || Pt(k, ct(he)) ? new br(k, g, x, A, P) : h.error(`Type ${dt(k)} is not interpolatable.`);
2795
2795
  }
2796
2796
  evaluate(l) {
2797
2797
  const h = this.labels, g = this.outputs;
@@ -3263,7 +3263,7 @@ var SM = { exports: {} };
3263
3263
  if (P["text-font"] && (j = h.parse(P["text-font"], 1, ct(Q1)), !j))
3264
3264
  return null;
3265
3265
  let q = null;
3266
- if (P["text-color"] && (q = h.parse(P["text-color"], 1, J2), !q))
3266
+ if (P["text-color"] && (q = h.parse(P["text-color"], 1, Y2), !q))
3267
3267
  return null;
3268
3268
  const X = x[x.length - 1];
3269
3269
  X.scale = k, X.font = j, X.textColor = q;
@@ -3382,8 +3382,8 @@ var SM = { exports: {} };
3382
3382
  function h6(c, l) {
3383
3383
  const h = l.type === "color", g = c.stops && typeof c.stops[0][0] == "object", x = g || !(g || c.property !== void 0), A = c.type || (c6(l) ? "exponential" : "interval");
3384
3384
  if (h || l.type === "padding") {
3385
- const q = h ? f1.parse : Z2.parse;
3386
- (c = G2({}, c)).stops && (c.stops = c.stops.map((X) => [X[0], q(X[1])])), c.default = q(c.default ? c.default : l.default);
3385
+ const q = h ? f1.parse : $2.parse;
3386
+ (c = U2({}, c)).stops && (c.stops = c.stops.map((X) => [X[0], q(X[1])])), c.default = q(c.default ? c.default : l.default);
3387
3387
  }
3388
3388
  if (c.colorSpace && (H = c.colorSpace) !== "rgb" && H !== "hcl" && H !== "lab")
3389
3389
  throw new Error(`Unknown color space: "${c.colorSpace}"`);
@@ -3472,7 +3472,7 @@ var SM = { exports: {} };
3472
3472
  h = lr.fromString(h.toString());
3473
3473
  break;
3474
3474
  case "padding":
3475
- h = Z2.parse(h);
3475
+ h = $2.parse(h);
3476
3476
  break;
3477
3477
  default:
3478
3478
  B1(h) === l.type || l.type === "enum" && l.values[h] || (h = void 0);
@@ -3481,10 +3481,10 @@ var SM = { exports: {} };
3481
3481
  }
3482
3482
  E1.register(C3, { error: [{ kind: "error" }, [Q1], (c, [l]) => {
3483
3483
  throw new a2(l.evaluate(c));
3484
- }], typeof: [Q1, [s1], (c, [l]) => dt(j1(l.evaluate(c)))], "to-rgba": [ct(he, 4), [J2], (c, [l]) => {
3484
+ }], typeof: [Q1, [s1], (c, [l]) => dt(j1(l.evaluate(c)))], "to-rgba": [ct(he, 4), [Y2], (c, [l]) => {
3485
3485
  const [h, g, x, A] = l.evaluate(c).rgb;
3486
3486
  return [255 * h, 255 * g, 255 * x, A];
3487
- }], rgb: [J2, [he, he, he], So], rgba: [J2, [he, he, he, he], So], has: { type: n1, overloads: [[[Q1], (c, [l]) => da(l.evaluate(c), c.properties())], [[Q1, tr], (c, [l, h]) => da(l.evaluate(c), h.evaluate(c))]] }, get: { type: s1, overloads: [[[Q1], (c, [l]) => n3(l.evaluate(c), c.properties())], [[Q1, tr], (c, [l, h]) => n3(l.evaluate(c), h.evaluate(c))]] }, "feature-state": [s1, [Q1], (c, [l]) => n3(l.evaluate(c), c.featureState || {})], properties: [tr, [], (c) => c.properties()], "geometry-type": [Q1, [], (c) => c.geometryType()], id: [s1, [], (c) => c.id()], zoom: [he, [], (c) => c.globals.zoom], "heatmap-density": [he, [], (c) => c.globals.heatmapDensity || 0], "line-progress": [he, [], (c) => c.globals.lineProgress || 0], accumulated: [s1, [], (c) => c.globals.accumulated === void 0 ? null : c.globals.accumulated], "+": [he, Qi(he), (c, l) => {
3487
+ }], rgb: [Y2, [he, he, he], So], rgba: [Y2, [he, he, he, he], So], has: { type: n1, overloads: [[[Q1], (c, [l]) => da(l.evaluate(c), c.properties())], [[Q1, J2], (c, [l, h]) => da(l.evaluate(c), h.evaluate(c))]] }, get: { type: s1, overloads: [[[Q1], (c, [l]) => n3(l.evaluate(c), c.properties())], [[Q1, J2], (c, [l, h]) => n3(l.evaluate(c), h.evaluate(c))]] }, "feature-state": [s1, [Q1], (c, [l]) => n3(l.evaluate(c), c.featureState || {})], properties: [J2, [], (c) => c.properties()], "geometry-type": [Q1, [], (c) => c.geometryType()], id: [s1, [], (c) => c.id()], zoom: [he, [], (c) => c.globals.zoom], "heatmap-density": [he, [], (c) => c.globals.heatmapDensity || 0], "line-progress": [he, [], (c) => c.globals.lineProgress || 0], accumulated: [s1, [], (c) => c.globals.accumulated === void 0 ? null : c.globals.accumulated], "+": [he, Qi(he), (c, l) => {
3488
3488
  let h = 0;
3489
3489
  for (const g of l)
3490
3490
  h += g.evaluate(c);
@@ -3546,7 +3546,7 @@ var SM = { exports: {} };
3546
3546
  class hn {
3547
3547
  constructor(l, h) {
3548
3548
  var g;
3549
- this.expression = l, this._warningHistory = {}, this._evaluator = new ci(), this._defaultValue = h ? (g = h).type === "color" && O3(g.default) ? new f1(0, 0, 0, 0) : g.type === "color" ? f1.parse(g.default) || null : g.type === "padding" ? Z2.parse(g.default) || null : g.type === "variableAnchorOffsetCollection" ? R1.parse(g.default) || null : g.default === void 0 ? null : g.default : null, this._enumValues = h && h.type === "enum" ? h.values : null;
3549
+ this.expression = l, this._warningHistory = {}, this._evaluator = new ci(), this._defaultValue = h ? (g = h).type === "color" && O3(g.default) ? new f1(0, 0, 0, 0) : g.type === "color" ? f1.parse(g.default) || null : g.type === "padding" ? $2.parse(g.default) || null : g.type === "variableAnchorOffsetCollection" ? R1.parse(g.default) || null : g.default === void 0 ? null : g.default : null, this._enumValues = h && h.type === "enum" ? h.values : null;
3550
3550
  }
3551
3551
  evaluateWithoutErrorHandling(l, h, g, x, A, H) {
3552
3552
  return this._evaluator.globals = l, this._evaluator.feature = h, this._evaluator.featureState = g, this._evaluator.canonical = x, this._evaluator.availableImages = A || null, this._evaluator.formattedSection = H, this.expression.evaluate(this._evaluator);
@@ -3570,7 +3570,7 @@ var SM = { exports: {} };
3570
3570
  }
3571
3571
  function Z1(c, l) {
3572
3572
  const h = new I1(C3, P2, [], l ? function(x) {
3573
- const A = { color: J2, string: Q1, number: he, enum: Q1, boolean: n1, formatted: Cr, padding: Qt, resolvedImage: tt, variableAnchorOffsetCollection: rt };
3573
+ const A = { color: Y2, string: Q1, number: he, enum: Q1, boolean: n1, formatted: Cr, padding: Qt, resolvedImage: tt, variableAnchorOffsetCollection: rt };
3574
3574
  return x.type === "array" ? ct(A[x.value] || s1, x.length) : A[x.type];
3575
3575
  }(l) : void 0), g = h.parse(c, void 0, void 0, void 0, l && l.type === "string" ? { typeAnnotation: "coerce" } : void 0);
3576
3576
  return g ? fa(new hn(g, l)) : Vi(h.errors);
@@ -3615,7 +3615,7 @@ var SM = { exports: {} };
3615
3615
  }
3616
3616
  class pa {
3617
3617
  constructor(l, h) {
3618
- this._parameters = l, this._specification = h, G2(this, h6(this._parameters, this._specification));
3618
+ this._parameters = l, this._specification = h, U2(this, h6(this._parameters, this._specification));
3619
3619
  }
3620
3620
  static deserialize(l) {
3621
3621
  return new pa(l._parameters, l._specification);
@@ -3867,8 +3867,8 @@ var SM = { exports: {} };
3867
3867
  if (Tt !== "number" && Tt !== "string" && Tt !== "boolean")
3868
3868
  return [new ce(it.key, Lt, "stop domain value must be a number, string, or boolean")];
3869
3869
  if (Tt !== "number" && h !== "categorical") {
3870
- let It = `number expected, ${Tt} found`;
3871
- return qn(l) && h === void 0 && (It += '\nIf you intended to use a categorical function, specify `"type": "categorical"`.'), [new ce(it.key, Lt, It)];
3870
+ let Vt = `number expected, ${Tt} found`;
3871
+ return qn(l) && h === void 0 && (Vt += '\nIf you intended to use a categorical function, specify `"type": "categorical"`.'), [new ce(it.key, Lt, Vt)];
3872
3872
  }
3873
3873
  return h !== "categorical" || Tt !== "number" || isFinite(gt) && Math.floor(gt) === gt ? h !== "categorical" && Tt === "number" && x !== void 0 && gt < x ? [new ce(it.key, Lt, "stop domain values must appear in ascending order")] : (x = gt, h === "categorical" && gt in H ? [new ce(it.key, Lt, "stop domain values must be unique")] : (H[gt] = !0, [])) : [new ce(it.key, Lt, `integer expected, found ${gt}`)];
3874
3874
  }
@@ -3897,7 +3897,7 @@ var SM = { exports: {} };
3897
3897
  return Array.isArray(g.values) ? g.values.indexOf(x2(h)) === -1 && x.push(new ce(l, h, `expected one of [${g.values.join(", ")}], ${JSON.stringify(h)} found`)) : Object.keys(g.values).indexOf(x2(h)) === -1 && x.push(new ce(l, h, `expected one of [${Object.keys(g.values).join(", ")}], ${JSON.stringify(h)} found`)), x;
3898
3898
  }
3899
3899
  function Ze(c) {
3900
- return ga(di(c.value)) ? Gt(G2({}, c, { expressionContext: "filter", valueSpec: { value: "boolean" } })) : J1(c);
3900
+ return ga(di(c.value)) ? Gt(U2({}, c, { expressionContext: "filter", valueSpec: { value: "boolean" } })) : J1(c);
3901
3901
  }
3902
3902
  function J1(c) {
3903
3903
  const l = c.value, h = c.key;
@@ -3986,13 +3986,13 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
3986
3986
  k ? j === "vector" && H === "raster" ? l.push(new ce(g, h.source, `layer "${h.id}" requires a raster source`)) : j !== "raster-dem" && H === "hillshade" ? l.push(new ce(g, h.source, `layer "${h.id}" requires a raster-dem source`)) : j === "raster" && H !== "raster" ? l.push(new ce(g, h.source, `layer "${h.id}" requires a vector source`)) : j !== "vector" || h["source-layer"] ? j === "raster-dem" && H !== "hillshade" ? l.push(new ce(g, h.source, "raster-dem source can only be used with layer type 'hillshade'.")) : H !== "line" || !h.paint || !h.paint["line-gradient"] || j === "geojson" && k.lineMetrics || l.push(new ce(g, h, `layer "${h.id}" specifies a line-gradient, which requires a GeoJSON source with \`lineMetrics\` enabled.`)) : l.push(new ce(g, h, `layer "${h.id}" must specify a "source-layer"`)) : l.push(new ce(g, h.source, `source "${h.source}" not found`));
3987
3987
  } else
3988
3988
  l.push(new ce(g, h, 'missing required property "source"'));
3989
- return l = l.concat(dr({ key: g, value: h, valueSpec: A.layer, style: c.style, styleSpec: c.styleSpec, validateSpec: c.validateSpec, objectElementValidators: { "*": () => [], type: () => c.validateSpec({ key: `${g}.type`, value: h.type, valueSpec: A.layer.type, style: c.style, styleSpec: c.styleSpec, validateSpec: c.validateSpec, object: h, objectKey: "type" }), filter: Ze, layout: (k) => dr({ layer: h, key: k.key, value: k.value, style: k.style, styleSpec: k.styleSpec, validateSpec: k.validateSpec, objectElementValidators: { "*": (j) => V2(G2({ layerType: H }, j)) } }), paint: (k) => dr({ layer: h, key: k.key, value: k.value, style: k.style, styleSpec: k.styleSpec, validateSpec: k.validateSpec, objectElementValidators: { "*": (j) => s2(G2({ layerType: H }, j)) } }) } })), l;
3989
+ return l = l.concat(dr({ key: g, value: h, valueSpec: A.layer, style: c.style, styleSpec: c.styleSpec, validateSpec: c.validateSpec, objectElementValidators: { "*": () => [], type: () => c.validateSpec({ key: `${g}.type`, value: h.type, valueSpec: A.layer.type, style: c.style, styleSpec: c.styleSpec, validateSpec: c.validateSpec, object: h, objectKey: "type" }), filter: Ze, layout: (k) => dr({ layer: h, key: k.key, value: k.value, style: k.style, styleSpec: k.styleSpec, validateSpec: k.validateSpec, objectElementValidators: { "*": (j) => V2(U2({ layerType: H }, j)) } }), paint: (k) => dr({ layer: h, key: k.key, value: k.value, style: k.style, styleSpec: k.styleSpec, validateSpec: k.validateSpec, objectElementValidators: { "*": (j) => s2(U2({ layerType: H }, j)) } }) } })), l;
3990
3990
  }
3991
3991
  function t2(c) {
3992
3992
  const l = c.value, h = c.key, g = B1(l);
3993
3993
  return g !== "string" ? [new ce(h, l, `string expected, ${g} found`)] : [];
3994
3994
  }
3995
- const W2 = { promoteId: function({ key: c, value: l }) {
3995
+ const q2 = { promoteId: function({ key: c, value: l }) {
3996
3996
  if (B1(l) === "string")
3997
3997
  return t2({ key: c, value: l });
3998
3998
  {
@@ -4011,7 +4011,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
4011
4011
  switch (H) {
4012
4012
  case "vector":
4013
4013
  case "raster":
4014
- return P = dr({ key: h, value: l, valueSpec: g[`source_${H.replace("-", "_")}`], style: c.style, styleSpec: g, objectElementValidators: W2, validateSpec: A }), P;
4014
+ return P = dr({ key: h, value: l, valueSpec: g[`source_${H.replace("-", "_")}`], style: c.style, styleSpec: g, objectElementValidators: q2, validateSpec: A }), P;
4015
4015
  case "raster-dem":
4016
4016
  return P = function(k) {
4017
4017
  var j;
@@ -4022,13 +4022,13 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
4022
4022
  return Tt;
4023
4023
  if (gt !== "object")
4024
4024
  return Tt.push(new ce("source_raster_dem", X, `object expected, ${gt} found`)), Tt;
4025
- const Lt = x2(X.encoding) === "custom", It = ["redFactor", "greenFactor", "blueFactor", "baseShift"], wt = k.value.encoding ? `"${k.value.encoding}"` : "Default";
4025
+ const Lt = x2(X.encoding) === "custom", Vt = ["redFactor", "greenFactor", "blueFactor", "baseShift"], wt = k.value.encoding ? `"${k.value.encoding}"` : "Default";
4026
4026
  for (const St in X)
4027
- !Lt && It.includes(St) ? Tt.push(new ce(St, X[St], `In "${q}": "${St}" is only valid when "encoding" is set to "custom". ${wt} encoding found`)) : it[St] ? Tt = Tt.concat(k.validateSpec({ key: St, value: X[St], valueSpec: it[St], validateSpec: k.validateSpec, style: st, styleSpec: et })) : Tt.push(new ce(St, X[St], `unknown property "${St}"`));
4027
+ !Lt && Vt.includes(St) ? Tt.push(new ce(St, X[St], `In "${q}": "${St}" is only valid when "encoding" is set to "custom". ${wt} encoding found`)) : it[St] ? Tt = Tt.concat(k.validateSpec({ key: St, value: X[St], valueSpec: it[St], validateSpec: k.validateSpec, style: st, styleSpec: et })) : Tt.push(new ce(St, X[St], `unknown property "${St}"`));
4028
4028
  return Tt;
4029
4029
  }({ sourceName: h, value: l, style: c.style, styleSpec: g, validateSpec: A }), P;
4030
4030
  case "geojson":
4031
- if (P = dr({ key: h, value: l, valueSpec: g.source_geojson, style: x, styleSpec: g, validateSpec: A, objectElementValidators: W2 }), l.cluster)
4031
+ if (P = dr({ key: h, value: l, valueSpec: g.source_geojson, style: x, styleSpec: g, validateSpec: A, objectElementValidators: q2 }), l.cluster)
4032
4032
  for (const k in l.clusterProperties) {
4033
4033
  const [j, q] = l.clusterProperties[k], X = typeof j == "string" ? [j, ["accumulated"], ["get", k]] : j;
4034
4034
  P.push(...Gt({ key: `${h}.${k}.map`, value: q, validateSpec: A, expressionContext: "cluster-map" })), P.push(...Gt({ key: `${h}.${k}.reduce`, value: X, validateSpec: A, expressionContext: "cluster-reduce" }));
@@ -4125,7 +4125,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
4125
4125
  }, sprite: Yn };
4126
4126
  function L2(c) {
4127
4127
  const l = c.value, h = c.valueSpec, g = c.styleSpec;
4128
- return c.validateSpec = L2, h.expression && O3(x2(l)) ? Dt(c) : h.expression && n2(di(l)) ? Gt(c) : h.type && ki[h.type] ? ki[h.type](c) : dr(G2({}, c, { valueSpec: h.type ? g[h.type] : h }));
4128
+ return c.validateSpec = L2, h.expression && O3(x2(l)) ? Dt(c) : h.expression && n2(di(l)) ? Gt(c) : h.type && ki[h.type] ? ki[h.type](c) : dr(U2({}, c, { valueSpec: h.type ? g[h.type] : h }));
4129
4129
  }
4130
4130
  function Jn(c) {
4131
4131
  const l = c.value, h = c.key, g = t2(c);
@@ -4430,7 +4430,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
4430
4430
  }
4431
4431
  {
4432
4432
  let A = g;
4433
- return x.type === "color" && typeof g == "string" ? A = f1.parse(g) : x.type !== "padding" || typeof g != "number" && !Array.isArray(g) ? x.type === "variableAnchorOffsetCollection" && Array.isArray(g) && (A = R1.parse(g)) : A = Z2.parse(g), { kind: "constant", evaluate: () => A };
4433
+ return x.type === "color" && typeof g == "string" ? A = f1.parse(g) : x.type !== "padding" || typeof g != "number" && !Array.isArray(g) ? x.type === "variableAnchorOffsetCollection" && Array.isArray(g) && (A = R1.parse(g)) : A = $2.parse(g), { kind: "constant", evaluate: () => A };
4434
4434
  }
4435
4435
  }(h === void 0 ? l.specification.default : h, l.specification);
4436
4436
  }
@@ -4811,7 +4811,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
4811
4811
  throw new Error("_refreshViews() must be implemented by each concrete StructArray layout");
4812
4812
  }
4813
4813
  }
4814
- function nr(c, l = 1) {
4814
+ function rr(c, l = 1) {
4815
4815
  let h = 0, g = 0;
4816
4816
  return { members: c.map((x) => {
4817
4817
  const A = F8[x.type].BYTES_PER_ELEMENT, H = h = N8(h, Math.max(l, A)), P = x.components || 1;
@@ -5035,12 +5035,12 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
5035
5035
  this.uint8 = new Uint8Array(this.arrayBuffer), this.int16 = new Int16Array(this.arrayBuffer), this.uint16 = new Uint16Array(this.arrayBuffer), this.uint32 = new Uint32Array(this.arrayBuffer), this.float32 = new Float32Array(this.arrayBuffer);
5036
5036
  }
5037
5037
  emplaceBack(l, h, g, x, A, H, P, k, j, q, X, et, it, st, Tt, gt, Lt) {
5038
- const It = this.length;
5039
- return this.resize(It + 1), this.emplace(It, l, h, g, x, A, H, P, k, j, q, X, et, it, st, Tt, gt, Lt);
5038
+ const Vt = this.length;
5039
+ return this.resize(Vt + 1), this.emplace(Vt, l, h, g, x, A, H, P, k, j, q, X, et, it, st, Tt, gt, Lt);
5040
5040
  }
5041
- emplace(l, h, g, x, A, H, P, k, j, q, X, et, it, st, Tt, gt, Lt, It) {
5041
+ emplace(l, h, g, x, A, H, P, k, j, q, X, et, it, st, Tt, gt, Lt, Vt) {
5042
5042
  const wt = 24 * l, St = 12 * l, Wt = 48 * l;
5043
- return this.int16[wt + 0] = h, this.int16[wt + 1] = g, this.uint16[wt + 2] = x, this.uint16[wt + 3] = A, this.uint32[St + 2] = H, this.uint32[St + 3] = P, this.uint32[St + 4] = k, this.uint16[wt + 10] = j, this.uint16[wt + 11] = q, this.uint16[wt + 12] = X, this.float32[St + 7] = et, this.float32[St + 8] = it, this.uint8[Wt + 36] = st, this.uint8[Wt + 37] = Tt, this.uint8[Wt + 38] = gt, this.uint32[St + 10] = Lt, this.int16[wt + 22] = It, l;
5043
+ return this.int16[wt + 0] = h, this.int16[wt + 1] = g, this.uint16[wt + 2] = x, this.uint16[wt + 3] = A, this.uint32[St + 2] = H, this.uint32[St + 3] = P, this.uint32[St + 4] = k, this.uint16[wt + 10] = j, this.uint16[wt + 11] = q, this.uint16[wt + 12] = X, this.float32[St + 7] = et, this.float32[St + 8] = it, this.uint8[Wt + 36] = st, this.uint8[Wt + 37] = Tt, this.uint8[Wt + 38] = gt, this.uint32[St + 10] = Lt, this.int16[wt + 22] = Vt, l;
5044
5044
  }
5045
5045
  }
5046
5046
  A5.prototype.bytesPerElement = 48, Le("StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48", A5);
@@ -5048,13 +5048,13 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
5048
5048
  _refreshViews() {
5049
5049
  this.uint8 = new Uint8Array(this.arrayBuffer), this.int16 = new Int16Array(this.arrayBuffer), this.uint16 = new Uint16Array(this.arrayBuffer), this.uint32 = new Uint32Array(this.arrayBuffer), this.float32 = new Float32Array(this.arrayBuffer);
5050
5050
  }
5051
- emplaceBack(l, h, g, x, A, H, P, k, j, q, X, et, it, st, Tt, gt, Lt, It, wt, St, Wt, Jt, we, ke, be, _e, fe, De) {
5051
+ emplaceBack(l, h, g, x, A, H, P, k, j, q, X, et, it, st, Tt, gt, Lt, Vt, wt, St, Wt, Jt, we, ke, be, _e, fe, De) {
5052
5052
  const ye = this.length;
5053
- return this.resize(ye + 1), this.emplace(ye, l, h, g, x, A, H, P, k, j, q, X, et, it, st, Tt, gt, Lt, It, wt, St, Wt, Jt, we, ke, be, _e, fe, De);
5053
+ return this.resize(ye + 1), this.emplace(ye, l, h, g, x, A, H, P, k, j, q, X, et, it, st, Tt, gt, Lt, Vt, wt, St, Wt, Jt, we, ke, be, _e, fe, De);
5054
5054
  }
5055
- emplace(l, h, g, x, A, H, P, k, j, q, X, et, it, st, Tt, gt, Lt, It, wt, St, Wt, Jt, we, ke, be, _e, fe, De, ye) {
5055
+ emplace(l, h, g, x, A, H, P, k, j, q, X, et, it, st, Tt, gt, Lt, Vt, wt, St, Wt, Jt, we, ke, be, _e, fe, De, ye) {
5056
5056
  const le = 32 * l, Ke = 16 * l;
5057
- return this.int16[le + 0] = h, this.int16[le + 1] = g, this.int16[le + 2] = x, this.int16[le + 3] = A, this.int16[le + 4] = H, this.int16[le + 5] = P, this.int16[le + 6] = k, this.int16[le + 7] = j, this.uint16[le + 8] = q, this.uint16[le + 9] = X, this.uint16[le + 10] = et, this.uint16[le + 11] = it, this.uint16[le + 12] = st, this.uint16[le + 13] = Tt, this.uint16[le + 14] = gt, this.uint16[le + 15] = Lt, this.uint16[le + 16] = It, this.uint16[le + 17] = wt, this.uint16[le + 18] = St, this.uint16[le + 19] = Wt, this.uint16[le + 20] = Jt, this.uint16[le + 21] = we, this.uint16[le + 22] = ke, this.uint32[Ke + 12] = be, this.float32[Ke + 13] = _e, this.float32[Ke + 14] = fe, this.uint16[le + 30] = De, this.uint16[le + 31] = ye, l;
5057
+ return this.int16[le + 0] = h, this.int16[le + 1] = g, this.int16[le + 2] = x, this.int16[le + 3] = A, this.int16[le + 4] = H, this.int16[le + 5] = P, this.int16[le + 6] = k, this.int16[le + 7] = j, this.uint16[le + 8] = q, this.uint16[le + 9] = X, this.uint16[le + 10] = et, this.uint16[le + 11] = it, this.uint16[le + 12] = st, this.uint16[le + 13] = Tt, this.uint16[le + 14] = gt, this.uint16[le + 15] = Lt, this.uint16[le + 16] = Vt, this.uint16[le + 17] = wt, this.uint16[le + 18] = St, this.uint16[le + 19] = Wt, this.uint16[le + 20] = Jt, this.uint16[le + 21] = we, this.uint16[le + 22] = ke, this.uint32[Ke + 12] = be, this.float32[Ke + 13] = _e, this.float32[Ke + 14] = fe, this.uint16[le + 30] = De, this.uint16[le + 31] = ye, l;
5058
5058
  }
5059
5059
  }
5060
5060
  La.prototype.bytesPerElement = 64, Le("StructArrayLayout8i15ui1ul2f2ui64", La);
@@ -5426,7 +5426,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
5426
5426
  }
5427
5427
  class $t extends v4 {
5428
5428
  }
5429
- const ae = nr([{ name: "a_pos", components: 2, type: "Int16" }], 4), { members: re } = ae;
5429
+ const ae = rr([{ name: "a_pos", components: 2, type: "Int16" }], 4), { members: re } = ae;
5430
5430
  class ie {
5431
5431
  constructor(l = []) {
5432
5432
  this.segments = l;
@@ -5451,7 +5451,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
5451
5451
  return 256 * (c = z(Math.floor(c), 0, 255)) + z(Math.floor(l), 0, 255);
5452
5452
  }
5453
5453
  ie.MAX_VERTEX_ARRAY_LENGTH = Math.pow(2, 16) - 1, Le("SegmentVector", ie);
5454
- const d1 = nr([{ name: "a_pattern_from", components: 4, type: "Uint16" }, { name: "a_pattern_to", components: 4, type: "Uint16" }, { name: "a_pixel_ratio_from", components: 1, type: "Uint16" }, { name: "a_pixel_ratio_to", components: 1, type: "Uint16" }]);
5454
+ const d1 = rr([{ name: "a_pattern_from", components: 4, type: "Uint16" }, { name: "a_pattern_to", components: 4, type: "Uint16" }, { name: "a_pixel_ratio_from", components: 1, type: "Uint16" }, { name: "a_pixel_ratio_to", components: 1, type: "Uint16" }]);
5455
5455
  var ge = { exports: {} }, i1 = { exports: {} };
5456
5456
  i1.exports = function(c, l) {
5457
5457
  var h, g, x, A, H, P, k, j;
@@ -5667,7 +5667,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
5667
5667
  return new Fr(l, h);
5668
5668
  }
5669
5669
  }
5670
- class X2 {
5670
+ class W2 {
5671
5671
  constructor(l, h, g, x, A, H) {
5672
5672
  this.expression = l, this.type = h, this.useIntegerZoom = g, this.zoom = x, this.layerId = H, this.zoomInPaintVertexArray = new A(), this.zoomOutPaintVertexArray = new A();
5673
5673
  }
@@ -5708,7 +5708,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
5708
5708
  this.binders[A] = et ? new gi(k.value, P) : new Ni(k.value, P, j), x.push(`/u_${A}`);
5709
5709
  else if (k.kind === "source" || et) {
5710
5710
  const it = Dn(A, j, "source");
5711
- this.binders[A] = et ? new X2(k, j, q, h, it, l.id) : new F2(k, P, j, it), x.push(`/a_${A}`);
5711
+ this.binders[A] = et ? new W2(k, j, q, h, it, l.id) : new F2(k, P, j, it), x.push(`/a_${A}`);
5712
5712
  } else {
5713
5713
  const it = Dn(A, j, "composite");
5714
5714
  this.binders[A] = new m2(k, P, j, q, h, it), x.push(`/z_${A}`);
@@ -5723,7 +5723,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
5723
5723
  populatePaintArrays(l, h, g, x, A) {
5724
5724
  for (const H in this.binders) {
5725
5725
  const P = this.binders[H];
5726
- (P instanceof F2 || P instanceof m2 || P instanceof X2) && P.populatePaintArray(l, h, g, x, A);
5726
+ (P instanceof F2 || P instanceof m2 || P instanceof W2) && P.populatePaintArray(l, h, g, x, A);
5727
5727
  }
5728
5728
  }
5729
5729
  setConstantPatternPositions(l, h) {
@@ -5740,7 +5740,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
5740
5740
  const q = g.feature(j.index);
5741
5741
  for (const X in this.binders) {
5742
5742
  const et = this.binders[X];
5743
- if ((et instanceof F2 || et instanceof m2 || et instanceof X2) && et.expression.isStateDependent === !0) {
5743
+ if ((et instanceof F2 || et instanceof m2 || et instanceof W2) && et.expression.isStateDependent === !0) {
5744
5744
  const it = x.paint.get(X);
5745
5745
  et.expression = it.value, et.updatePaintArray(j.start, j.end, q, l[P], A), H = !0;
5746
5746
  }
@@ -5764,7 +5764,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
5764
5764
  if (g instanceof F2 || g instanceof m2)
5765
5765
  for (let x = 0; x < g.paintVertexAttributes.length; x++)
5766
5766
  l.push(g.paintVertexAttributes[x].name);
5767
- else if (g instanceof X2)
5767
+ else if (g instanceof W2)
5768
5768
  for (let x = 0; x < d1.members.length; x++)
5769
5769
  l.push(d1.members[x].name);
5770
5770
  }
@@ -5805,7 +5805,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
5805
5805
  this._buffers = [];
5806
5806
  for (const h in this.binders) {
5807
5807
  const g = this.binders[h];
5808
- if (l && g instanceof X2) {
5808
+ if (l && g instanceof W2) {
5809
5809
  const x = l.fromScale === 2 ? g.zoomInPaintVertexBuffer : g.zoomOutPaintVertexBuffer;
5810
5810
  x && this._buffers.push(x);
5811
5811
  } else
@@ -5815,14 +5815,14 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
5815
5815
  upload(l) {
5816
5816
  for (const h in this.binders) {
5817
5817
  const g = this.binders[h];
5818
- (g instanceof F2 || g instanceof m2 || g instanceof X2) && g.upload(l);
5818
+ (g instanceof F2 || g instanceof m2 || g instanceof W2) && g.upload(l);
5819
5819
  }
5820
5820
  this.updatePaintBuffers();
5821
5821
  }
5822
5822
  destroy() {
5823
5823
  for (const l in this.binders) {
5824
5824
  const h = this.binders[l];
5825
- (h instanceof F2 || h instanceof m2 || h instanceof X2) && h.destroy();
5825
+ (h instanceof F2 || h instanceof m2 || h instanceof W2) && h.destroy();
5826
5826
  }
5827
5827
  }
5828
5828
  }
@@ -5866,7 +5866,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
5866
5866
  }(c);
5867
5867
  return x && x[h] || g[l][h];
5868
5868
  }
5869
- Le("ConstantBinder", Ni), Le("CrossFadedConstantBinder", gi), Le("SourceExpressionBinder", F2), Le("CrossFadedCompositeBinder", X2), Le("CompositeExpressionBinder", m2), Le("ProgramConfiguration", ba, { omit: ["_buffers"] }), Le("ProgramConfigurationSet", b2);
5869
+ Le("ConstantBinder", Ni), Le("CrossFadedConstantBinder", gi), Le("SourceExpressionBinder", F2), Le("CrossFadedCompositeBinder", W2), Le("CompositeExpressionBinder", m2), Le("ProgramConfiguration", ba, { omit: ["_buffers"] }), Le("ProgramConfigurationSet", b2);
5870
5870
  const O1 = 8192, D5 = Math.pow(2, 14) - 1, z8 = -D5 - 1;
5871
5871
  function b4(c) {
5872
5872
  const l = O1 / c.extent, h = c.loadGeometry();
@@ -6057,8 +6057,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
6057
6057
  return c[0] = 1, c[1] = 0, c[2] = 0, c[3] = 0, c[4] = 0, c[5] = 1, c[6] = 0, c[7] = 0, c[8] = 0, c[9] = 0, c[10] = 1, c[11] = 0, c[12] = 0, c[13] = 0, c[14] = 0, c[15] = 1, c;
6058
6058
  }
6059
6059
  function Vg(c, l, h) {
6060
- var g = l[0], x = l[1], A = l[2], H = l[3], P = l[4], k = l[5], j = l[6], q = l[7], X = l[8], et = l[9], it = l[10], st = l[11], Tt = l[12], gt = l[13], Lt = l[14], It = l[15], wt = h[0], St = h[1], Wt = h[2], Jt = h[3];
6061
- return c[0] = wt * g + St * P + Wt * X + Jt * Tt, c[1] = wt * x + St * k + Wt * et + Jt * gt, c[2] = wt * A + St * j + Wt * it + Jt * Lt, c[3] = wt * H + St * q + Wt * st + Jt * It, c[4] = (wt = h[4]) * g + (St = h[5]) * P + (Wt = h[6]) * X + (Jt = h[7]) * Tt, c[5] = wt * x + St * k + Wt * et + Jt * gt, c[6] = wt * A + St * j + Wt * it + Jt * Lt, c[7] = wt * H + St * q + Wt * st + Jt * It, c[8] = (wt = h[8]) * g + (St = h[9]) * P + (Wt = h[10]) * X + (Jt = h[11]) * Tt, c[9] = wt * x + St * k + Wt * et + Jt * gt, c[10] = wt * A + St * j + Wt * it + Jt * Lt, c[11] = wt * H + St * q + Wt * st + Jt * It, c[12] = (wt = h[12]) * g + (St = h[13]) * P + (Wt = h[14]) * X + (Jt = h[15]) * Tt, c[13] = wt * x + St * k + Wt * et + Jt * gt, c[14] = wt * A + St * j + Wt * it + Jt * Lt, c[15] = wt * H + St * q + Wt * st + Jt * It, c;
6060
+ var g = l[0], x = l[1], A = l[2], H = l[3], P = l[4], k = l[5], j = l[6], q = l[7], X = l[8], et = l[9], it = l[10], st = l[11], Tt = l[12], gt = l[13], Lt = l[14], Vt = l[15], wt = h[0], St = h[1], Wt = h[2], Jt = h[3];
6061
+ return c[0] = wt * g + St * P + Wt * X + Jt * Tt, c[1] = wt * x + St * k + Wt * et + Jt * gt, c[2] = wt * A + St * j + Wt * it + Jt * Lt, c[3] = wt * H + St * q + Wt * st + Jt * Vt, c[4] = (wt = h[4]) * g + (St = h[5]) * P + (Wt = h[6]) * X + (Jt = h[7]) * Tt, c[5] = wt * x + St * k + Wt * et + Jt * gt, c[6] = wt * A + St * j + Wt * it + Jt * Lt, c[7] = wt * H + St * q + Wt * st + Jt * Vt, c[8] = (wt = h[8]) * g + (St = h[9]) * P + (Wt = h[10]) * X + (Jt = h[11]) * Tt, c[9] = wt * x + St * k + Wt * et + Jt * gt, c[10] = wt * A + St * j + Wt * it + Jt * Lt, c[11] = wt * H + St * q + Wt * st + Jt * Vt, c[12] = (wt = h[12]) * g + (St = h[13]) * P + (Wt = h[14]) * X + (Jt = h[15]) * Tt, c[13] = wt * x + St * k + Wt * et + Jt * gt, c[14] = wt * A + St * j + Wt * it + Jt * Lt, c[15] = wt * H + St * q + Wt * st + Jt * Vt, c;
6062
6062
  }
6063
6063
  Math.hypot || (Math.hypot = function() {
6064
6064
  for (var c = 0, l = arguments.length; l--; )
@@ -6090,8 +6090,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
6090
6090
  for (const Tt of st) {
6091
6091
  const gt = X ? Tt : Ig(Tt, k);
6092
6092
  let Lt = it;
6093
- const It = W8([], [Tt.x, Tt.y, 0, 1], k);
6094
- if (this.paint.get("circle-pitch-scale") === "viewport" && this.paint.get("circle-pitch-alignment") === "map" ? Lt *= It[3] / H.cameraToCenterDistance : this.paint.get("circle-pitch-scale") === "map" && this.paint.get("circle-pitch-alignment") === "viewport" && (Lt *= H.cameraToCenterDistance / It[3]), U8(et, gt, Lt))
6093
+ const Vt = W8([], [Tt.x, Tt.y, 0, 1], k);
6094
+ if (this.paint.get("circle-pitch-scale") === "viewport" && this.paint.get("circle-pitch-alignment") === "map" ? Lt *= Vt[3] / H.cameraToCenterDistance : this.paint.get("circle-pitch-scale") === "map" && this.paint.get("circle-pitch-alignment") === "viewport" && (Lt *= H.cameraToCenterDistance / Vt[3]), U8(et, gt, Lt))
6095
6095
  return !0;
6096
6096
  }
6097
6097
  return !1;
@@ -6231,17 +6231,17 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
6231
6231
  return this.paint.get("hillshade-exaggeration") !== 0 && this.visibility !== "none";
6232
6232
  }
6233
6233
  }
6234
- const OC = nr([{ name: "a_pos", components: 2, type: "Int16" }], 4), { members: DC } = OC;
6234
+ const OC = rr([{ name: "a_pos", components: 2, type: "Int16" }], 4), { members: DC } = OC;
6235
6235
  var eT = { exports: {} };
6236
6236
  function X8(c, l, h) {
6237
6237
  h = h || 2;
6238
6238
  var g, x, A, H, P, k, j, q = l && l.length, X = q ? l[0] * h : c.length, et = jg(c, 0, X, h, !0), it = [];
6239
6239
  if (!et || et.next === et.prev)
6240
6240
  return it;
6241
- if (q && (et = function(Tt, gt, Lt, It) {
6241
+ if (q && (et = function(Tt, gt, Lt, Vt) {
6242
6242
  var wt, St, Wt, Jt = [];
6243
6243
  for (wt = 0, St = gt.length; wt < St; wt++)
6244
- (Wt = jg(Tt, gt[wt] * It, wt < St - 1 ? gt[wt + 1] * It : Tt.length, It, !1)) === Wt.next && (Wt.steiner = !0), Jt.push(NC(Wt));
6244
+ (Wt = jg(Tt, gt[wt] * Vt, wt < St - 1 ? gt[wt + 1] * Vt : Tt.length, Vt, !1)) === Wt.next && (Wt.steiner = !0), Jt.push(NC(Wt));
6245
6245
  for (Jt.sort(kC), wt = 0; wt < Jt.length; wt++)
6246
6246
  Lt = BC(Jt[wt], Lt);
6247
6247
  return Lt;
@@ -6269,7 +6269,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
6269
6269
  l || (l = c);
6270
6270
  var h, g = c;
6271
6271
  do
6272
- if (h = !1, g.steiner || !K8(g, g.next) && ir(g.prev, g, g.next) !== 0)
6272
+ if (h = !1, g.steiner || !K8(g, g.next) && nr(g.prev, g, g.next) !== 0)
6273
6273
  g = g.next;
6274
6274
  else {
6275
6275
  if (N5(g), (g = l = g.prev) === g.next)
@@ -6287,14 +6287,14 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
6287
6287
  st.z === 0 && (st.z = rT(st.x, st.y, X, et, it)), st.prevZ = st.prev, st.nextZ = st.next, st = st.next;
6288
6288
  while (st !== q);
6289
6289
  st.prevZ.nextZ = null, st.prevZ = null, function(Tt) {
6290
- var gt, Lt, It, wt, St, Wt, Jt, we, ke = 1;
6290
+ var gt, Lt, Vt, wt, St, Wt, Jt, we, ke = 1;
6291
6291
  do {
6292
6292
  for (Lt = Tt, Tt = null, St = null, Wt = 0; Lt; ) {
6293
- for (Wt++, It = Lt, Jt = 0, gt = 0; gt < ke && (Jt++, It = It.nextZ); gt++)
6293
+ for (Wt++, Vt = Lt, Jt = 0, gt = 0; gt < ke && (Jt++, Vt = Vt.nextZ); gt++)
6294
6294
  ;
6295
- for (we = ke; Jt > 0 || we > 0 && It; )
6296
- Jt !== 0 && (we === 0 || !It || Lt.z <= It.z) ? (wt = Lt, Lt = Lt.nextZ, Jt--) : (wt = It, It = It.nextZ, we--), St ? St.nextZ = wt : Tt = wt, wt.prevZ = St, St = wt;
6297
- Lt = It;
6295
+ for (we = ke; Jt > 0 || we > 0 && Vt; )
6296
+ Jt !== 0 && (we === 0 || !Vt || Lt.z <= Vt.z) ? (wt = Lt, Lt = Lt.nextZ, Jt--) : (wt = Vt, Vt = Vt.nextZ, we--), St ? St.nextZ = wt : Tt = wt, wt.prevZ = St, St = wt;
6297
+ Lt = Vt;
6298
6298
  }
6299
6299
  St.nextZ = null, ke *= 2;
6300
6300
  } while (Wt > 1);
@@ -6311,10 +6311,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
6311
6311
  }
6312
6312
  function PC(c) {
6313
6313
  var l = c.prev, h = c, g = c.next;
6314
- if (ir(l, h, g) >= 0)
6314
+ if (nr(l, h, g) >= 0)
6315
6315
  return !1;
6316
6316
  for (var x = l.x, A = h.x, H = g.x, P = l.y, k = h.y, j = g.y, q = x < A ? x < H ? x : H : A < H ? A : H, X = P < k ? P < j ? P : j : k < j ? k : j, et = x > A ? x > H ? x : H : A > H ? A : H, it = P > k ? P > j ? P : j : k > j ? k : j, st = g.next; st !== l; ) {
6317
- if (st.x >= q && st.x <= et && st.y >= X && st.y <= it && zo(x, P, A, k, H, j, st.x, st.y) && ir(st.prev, st, st.next) >= 0)
6317
+ if (st.x >= q && st.x <= et && st.y >= X && st.y <= it && zo(x, P, A, k, H, j, st.x, st.y) && nr(st.prev, st, st.next) >= 0)
6318
6318
  return !1;
6319
6319
  st = st.next;
6320
6320
  }
@@ -6322,20 +6322,20 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
6322
6322
  }
6323
6323
  function VC(c, l, h, g) {
6324
6324
  var x = c.prev, A = c, H = c.next;
6325
- if (ir(x, A, H) >= 0)
6325
+ if (nr(x, A, H) >= 0)
6326
6326
  return !1;
6327
- for (var P = x.x, k = A.x, j = H.x, q = x.y, X = A.y, et = H.y, it = P < k ? P < j ? P : j : k < j ? k : j, st = q < X ? q < et ? q : et : X < et ? X : et, Tt = P > k ? P > j ? P : j : k > j ? k : j, gt = q > X ? q > et ? q : et : X > et ? X : et, Lt = rT(it, st, l, h, g), It = rT(Tt, gt, l, h, g), wt = c.prevZ, St = c.nextZ; wt && wt.z >= Lt && St && St.z <= It; ) {
6328
- if (wt.x >= it && wt.x <= Tt && wt.y >= st && wt.y <= gt && wt !== x && wt !== H && zo(P, q, k, X, j, et, wt.x, wt.y) && ir(wt.prev, wt, wt.next) >= 0 || (wt = wt.prevZ, St.x >= it && St.x <= Tt && St.y >= st && St.y <= gt && St !== x && St !== H && zo(P, q, k, X, j, et, St.x, St.y) && ir(St.prev, St, St.next) >= 0))
6327
+ for (var P = x.x, k = A.x, j = H.x, q = x.y, X = A.y, et = H.y, it = P < k ? P < j ? P : j : k < j ? k : j, st = q < X ? q < et ? q : et : X < et ? X : et, Tt = P > k ? P > j ? P : j : k > j ? k : j, gt = q > X ? q > et ? q : et : X > et ? X : et, Lt = rT(it, st, l, h, g), Vt = rT(Tt, gt, l, h, g), wt = c.prevZ, St = c.nextZ; wt && wt.z >= Lt && St && St.z <= Vt; ) {
6328
+ if (wt.x >= it && wt.x <= Tt && wt.y >= st && wt.y <= gt && wt !== x && wt !== H && zo(P, q, k, X, j, et, wt.x, wt.y) && nr(wt.prev, wt, wt.next) >= 0 || (wt = wt.prevZ, St.x >= it && St.x <= Tt && St.y >= st && St.y <= gt && St !== x && St !== H && zo(P, q, k, X, j, et, St.x, St.y) && nr(St.prev, St, St.next) >= 0))
6329
6329
  return !1;
6330
6330
  St = St.nextZ;
6331
6331
  }
6332
6332
  for (; wt && wt.z >= Lt; ) {
6333
- if (wt.x >= it && wt.x <= Tt && wt.y >= st && wt.y <= gt && wt !== x && wt !== H && zo(P, q, k, X, j, et, wt.x, wt.y) && ir(wt.prev, wt, wt.next) >= 0)
6333
+ if (wt.x >= it && wt.x <= Tt && wt.y >= st && wt.y <= gt && wt !== x && wt !== H && zo(P, q, k, X, j, et, wt.x, wt.y) && nr(wt.prev, wt, wt.next) >= 0)
6334
6334
  return !1;
6335
6335
  wt = wt.prevZ;
6336
6336
  }
6337
- for (; St && St.z <= It; ) {
6338
- if (St.x >= it && St.x <= Tt && St.y >= st && St.y <= gt && St !== x && St !== H && zo(P, q, k, X, j, et, St.x, St.y) && ir(St.prev, St, St.next) >= 0)
6337
+ for (; St && St.z <= Vt; ) {
6338
+ if (St.x >= it && St.x <= Tt && St.y >= st && St.y <= gt && St !== x && St !== H && zo(P, q, k, X, j, et, St.x, St.y) && nr(St.prev, St, St.next) >= 0)
6339
6339
  return !1;
6340
6340
  St = St.nextZ;
6341
6341
  }
@@ -6391,7 +6391,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
6391
6391
  return M6(g, g.next), M6(h, h.next);
6392
6392
  }
6393
6393
  function FC(c, l) {
6394
- return ir(c.prev, c, l.prev) < 0 && ir(l.next, c, c.next) < 0;
6394
+ return nr(c.prev, c, l.prev) < 0 && nr(l.next, c, c.next) < 0;
6395
6395
  }
6396
6396
  function rT(c, l, h, g, x) {
6397
6397
  return (c = 1431655765 & ((c = 858993459 & ((c = 252645135 & ((c = 16711935 & ((c = (c - h) * x | 0) | c << 8)) | c << 4)) | c << 2)) | c << 1)) | (l = 1431655765 & ((l = 858993459 & ((l = 252645135 & ((l = 16711935 & ((l = (l - g) * x | 0) | l << 8)) | l << 4)) | l << 2)) | l << 1)) << 1;
@@ -6421,16 +6421,16 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
6421
6421
  x.y > P != x.next.y > P && x.next.y !== x.y && H < (x.next.x - x.x) * (P - x.y) / (x.next.y - x.y) + x.x && (A = !A), x = x.next;
6422
6422
  while (x !== h);
6423
6423
  return A;
6424
- }(c, l) && (ir(c.prev, c, l.prev) || ir(c, l.prev, l)) || K8(c, l) && ir(c.prev, c, c.next) > 0 && ir(l.prev, l, l.next) > 0);
6424
+ }(c, l) && (nr(c.prev, c, l.prev) || nr(c, l.prev, l)) || K8(c, l) && nr(c.prev, c, c.next) > 0 && nr(l.prev, l, l.next) > 0);
6425
6425
  }
6426
- function ir(c, l, h) {
6426
+ function nr(c, l, h) {
6427
6427
  return (l.y - c.y) * (h.x - l.x) - (l.x - c.x) * (h.y - l.y);
6428
6428
  }
6429
6429
  function K8(c, l) {
6430
6430
  return c.x === l.x && c.y === l.y;
6431
6431
  }
6432
6432
  function zg(c, l, h, g) {
6433
- var x = J8(ir(c, l, h)), A = J8(ir(c, l, g)), H = J8(ir(h, g, c)), P = J8(ir(h, g, l));
6433
+ var x = J8(nr(c, l, h)), A = J8(nr(c, l, g)), H = J8(nr(h, g, c)), P = J8(nr(h, g, l));
6434
6434
  return x !== A && H !== P || !(x !== 0 || !Y8(c, h, l)) || !(A !== 0 || !Y8(c, g, l)) || !(H !== 0 || !Y8(h, c, g)) || !(P !== 0 || !Y8(h, l, g));
6435
6435
  }
6436
6436
  function Y8(c, l, h) {
@@ -6440,7 +6440,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
6440
6440
  return c > 0 ? 1 : c < 0 ? -1 : 0;
6441
6441
  }
6442
6442
  function F5(c, l) {
6443
- return ir(c.prev, c, c.next) < 0 ? ir(c, l, c.next) >= 0 && ir(c, c.prev, l) >= 0 : ir(c, l, c.prev) < 0 || ir(c, c.next, l) < 0;
6443
+ return nr(c.prev, c, c.next) < 0 ? nr(c, l, c.next) >= 0 && nr(c, c.prev, l) >= 0 : nr(c, l, c.prev) < 0 || nr(c, c.next, l) < 0;
6444
6444
  }
6445
6445
  function Ug(c, l) {
6446
6446
  var h = new nT(c.i, c.x, c.y), g = new nT(l.i, l.x, l.y), x = c.next, A = l.prev;
@@ -6645,7 +6645,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
6645
6645
  return !0;
6646
6646
  }
6647
6647
  }
6648
- const qC = nr([{ name: "a_pos", components: 2, type: "Int16" }, { name: "a_normal_ed", components: 4, type: "Int16" }], 4), WC = nr([{ name: "a_centroid", components: 2, type: "Int16" }], 4), { members: XC } = qC;
6648
+ const qC = rr([{ name: "a_pos", components: 2, type: "Int16" }, { name: "a_normal_ed", components: 4, type: "Int16" }], 4), WC = rr([{ name: "a_centroid", components: 2, type: "Int16" }], 4), { members: XC } = qC;
6649
6649
  var wa = {}, KC = d, Xg = Uo;
6650
6650
  function Uo(c, l, h, g, x) {
6651
6651
  this.properties = {}, this.extent = h, this.type = 0, this._pbf = c, this._geometry = -1, this._keys = g, this._values = x, c.readFields(YC, this, l);
@@ -6718,9 +6718,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
6718
6718
  var st = it.length;
6719
6719
  if (st <= 1)
6720
6720
  return [it];
6721
- for (var Tt, gt, Lt = [], It = 0; It < st; It++) {
6722
- var wt = JC(it[It]);
6723
- wt !== 0 && (gt === void 0 && (gt = wt < 0), gt === wt < 0 ? (Tt && Lt.push(Tt), Tt = [it[It]]) : Tt.push(it[It]));
6721
+ for (var Tt, gt, Lt = [], Vt = 0; Vt < st; Vt++) {
6722
+ var wt = JC(it[Vt]);
6723
+ wt !== 0 && (gt === void 0 && (gt = wt < 0), gt === wt < 0 ? (Tt && Lt.push(Tt), Tt = [it[Vt]]) : Tt.push(it[Vt]));
6724
6724
  }
6725
6725
  return Tt && Lt.push(Tt), Lt;
6726
6726
  }(k), g = 0; g < k.length; g++)
@@ -6814,11 +6814,11 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
6814
6814
  for (let gt = 0; gt < st.length; gt++) {
6815
6815
  const Lt = st[gt];
6816
6816
  if (gt >= 1) {
6817
- const It = st[gt - 1];
6818
- if (!aO(Lt, It)) {
6817
+ const Vt = st[gt - 1];
6818
+ if (!aO(Lt, Vt)) {
6819
6819
  j.vertexLength + 4 > ie.MAX_VERTEX_ARRAY_LENGTH && (j = this.segments.prepareSegment(4, this.layoutVertexArray, this.indexArray));
6820
- const wt = Lt.sub(It)._perp()._unit(), St = It.dist(Lt);
6821
- Tt + St > 32768 && (Tt = 0), z5(this.layoutVertexArray, Lt.x, Lt.y, wt.x, wt.y, 0, 0, Tt), z5(this.layoutVertexArray, Lt.x, Lt.y, wt.x, wt.y, 0, 1, Tt), H.x += 2 * Lt.x, H.y += 2 * Lt.y, H.vertexCount += 2, Tt += St, z5(this.layoutVertexArray, It.x, It.y, wt.x, wt.y, 0, 0, Tt), z5(this.layoutVertexArray, It.x, It.y, wt.x, wt.y, 0, 1, Tt), H.x += 2 * It.x, H.y += 2 * It.y, H.vertexCount += 2;
6820
+ const wt = Lt.sub(Vt)._perp()._unit(), St = Vt.dist(Lt);
6821
+ Tt + St > 32768 && (Tt = 0), z5(this.layoutVertexArray, Lt.x, Lt.y, wt.x, wt.y, 0, 0, Tt), z5(this.layoutVertexArray, Lt.x, Lt.y, wt.x, wt.y, 0, 1, Tt), H.x += 2 * Lt.x, H.y += 2 * Lt.y, H.vertexCount += 2, Tt += St, z5(this.layoutVertexArray, Vt.x, Vt.y, wt.x, wt.y, 0, 0, Tt), z5(this.layoutVertexArray, Vt.x, Vt.y, wt.x, wt.y, 0, 1, Tt), H.x += 2 * Vt.x, H.y += 2 * Vt.y, H.vertexCount += 2;
6822
6822
  const Wt = j.vertexLength;
6823
6823
  this.indexArray.emplaceBack(Wt, Wt + 2, Wt + 1), this.indexArray.emplaceBack(Wt + 1, Wt + 2, Wt + 3), j.vertexLength += 4, j.primitiveLength += 2;
6824
6824
  }
@@ -6872,14 +6872,14 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
6872
6872
  }
6873
6873
  queryIntersectsFeature(l, h, g, x, A, H, P, k) {
6874
6874
  const j = q8(l, this.paint.get("fill-extrusion-translate"), this.paint.get("fill-extrusion-translate-anchor"), H.angle, P), q = this.paint.get("fill-extrusion-height").evaluate(h, g), X = this.paint.get("fill-extrusion-base").evaluate(h, g), et = function(st, Tt, gt, Lt) {
6875
- const It = [];
6875
+ const Vt = [];
6876
6876
  for (const wt of st) {
6877
6877
  const St = [wt.x, wt.y, 0, 1];
6878
- W8(St, St, Tt), It.push(new p(St[0] / St[3], St[1] / St[3]));
6878
+ W8(St, St, Tt), Vt.push(new p(St[0] / St[3], St[1] / St[3]));
6879
6879
  }
6880
- return It;
6880
+ return Vt;
6881
6881
  }(j, k), it = function(st, Tt, gt, Lt) {
6882
- const It = [], wt = [], St = Lt[8] * Tt, Wt = Lt[9] * Tt, Jt = Lt[10] * Tt, we = Lt[11] * Tt, ke = Lt[8] * gt, be = Lt[9] * gt, _e = Lt[10] * gt, fe = Lt[11] * gt;
6882
+ const Vt = [], wt = [], St = Lt[8] * Tt, Wt = Lt[9] * Tt, Jt = Lt[10] * Tt, we = Lt[11] * Tt, ke = Lt[8] * gt, be = Lt[9] * gt, _e = Lt[10] * gt, fe = Lt[11] * gt;
6883
6883
  for (const De of st) {
6884
6884
  const ye = [], le = [];
6885
6885
  for (const Ke of De) {
@@ -6888,15 +6888,15 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
6888
6888
  const yr = new p(Pr / yn, jr / yn);
6889
6889
  yr.z = gn / yn, le.push(yr);
6890
6890
  }
6891
- It.push(ye), wt.push(le);
6891
+ Vt.push(ye), wt.push(le);
6892
6892
  }
6893
- return [It, wt];
6893
+ return [Vt, wt];
6894
6894
  }(x, X, q, k);
6895
6895
  return function(st, Tt, gt) {
6896
6896
  let Lt = 1 / 0;
6897
6897
  V5(gt, Tt) && (Lt = ty(gt, Tt[0]));
6898
- for (let It = 0; It < Tt.length; It++) {
6899
- const wt = Tt[It], St = st[It];
6898
+ for (let Vt = 0; Vt < Tt.length; Vt++) {
6899
+ const wt = Tt[Vt], St = st[Vt];
6900
6900
  for (let Wt = 0; Wt < wt.length - 1; Wt++) {
6901
6901
  const Jt = wt[Wt], we = [Jt, wt[Wt + 1], St[Wt + 1], St[Wt], Jt];
6902
6902
  E4(gt, we) && (Lt = Math.min(Lt, ty(gt, we)));
@@ -6918,9 +6918,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
6918
6918
  if (x = l[h++], !x)
6919
6919
  return 1 / 0;
6920
6920
  for (; h < l.length; h++) {
6921
- const A = l[h], H = c[0], P = x.sub(g), k = A.sub(g), j = H.sub(g), q = U5(P, P), X = U5(P, k), et = U5(k, k), it = U5(j, P), st = U5(j, k), Tt = q * et - X * X, gt = (et * it - X * st) / Tt, Lt = (q * st - X * it) / Tt, It = g.z * (1 - gt - Lt) + x.z * gt + A.z * Lt;
6922
- if (isFinite(It))
6923
- return It;
6921
+ const A = l[h], H = c[0], P = x.sub(g), k = A.sub(g), j = H.sub(g), q = U5(P, P), X = U5(P, k), et = U5(k, k), it = U5(j, P), st = U5(j, k), Tt = q * et - X * X, gt = (et * it - X * st) / Tt, Lt = (q * st - X * it) / Tt, Vt = g.z * (1 - gt - Lt) + x.z * gt + A.z * Lt;
6922
+ if (isFinite(Vt))
6923
+ return Vt;
6924
6924
  }
6925
6925
  return 1 / 0;
6926
6926
  }
@@ -6931,7 +6931,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
6931
6931
  return h;
6932
6932
  }
6933
6933
  }
6934
- const uO = nr([{ name: "a_pos_normal", components: 2, type: "Int16" }, { name: "a_data", components: 4, type: "Uint8" }], 4), { members: cO } = uO, hO = nr([{ name: "a_uv_x", components: 1, type: "Float32" }, { name: "a_split_index", components: 1, type: "Float32" }]), { members: TO } = hO, QO = wa.VectorTileFeature.types, dO = Math.cos(Math.PI / 180 * 37.5), ey = Math.pow(2, 14) / 0.5;
6934
+ const uO = rr([{ name: "a_pos_normal", components: 2, type: "Int16" }, { name: "a_data", components: 4, type: "Uint8" }], 4), { members: cO } = uO, hO = rr([{ name: "a_uv_x", components: 1, type: "Float32" }, { name: "a_split_index", components: 1, type: "Float32" }]), { members: TO } = hO, QO = wa.VectorTileFeature.types, dO = Math.cos(Math.PI / 180 * 37.5), ey = Math.pow(2, 14) / 0.5;
6935
6935
  class hT {
6936
6936
  constructor(l) {
6937
6937
  this.zoom = l.zoom, this.overscaling = l.overscaling, this.layers = l.layers, this.layerIds = this.layers.map((h) => h.id), this.index = l.index, this.hasPattern = !1, this.patternFeatures = [], this.lineClipsArray = [], this.gradients = {}, this.layers.forEach((h) => {
@@ -7013,9 +7013,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7013
7013
  if (st = Lt === k - 1 ? P ? l[j + 1] : void 0 : l[Lt + 1], st && l[Lt].equals(st))
7014
7014
  continue;
7015
7015
  gt && (Tt = gt), et && (it = et), et = l[Lt], gt = st ? st.sub(et)._unit()._perp() : Tt, Tt = Tt || gt;
7016
- let It = Tt.add(gt);
7017
- It.x === 0 && It.y === 0 || It._unit();
7018
- const wt = Tt.x * gt.x + Tt.y * gt.y, St = It.x * gt.x + It.y * gt.y, Wt = St !== 0 ? 1 / St : 1 / 0, Jt = 2 * Math.sqrt(2 - 2 * St), we = St < dO && it && st, ke = Tt.x * gt.y - Tt.y * gt.x > 0;
7016
+ let Vt = Tt.add(gt);
7017
+ Vt.x === 0 && Vt.y === 0 || Vt._unit();
7018
+ const wt = Tt.x * gt.x + Tt.y * gt.y, St = Vt.x * gt.x + Vt.y * gt.y, Wt = St !== 0 ? 1 / St : 1 / 0, Jt = 2 * Math.sqrt(2 - 2 * St), we = St < dO && it && st, ke = Tt.x * gt.y - Tt.y * gt.x > 0;
7019
7019
  if (we && Lt > j) {
7020
7020
  const fe = et.dist(it);
7021
7021
  if (fe > 2 * q) {
@@ -7026,15 +7026,15 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7026
7026
  const be = it && st;
7027
7027
  let _e = be ? g : P ? "butt" : x;
7028
7028
  if (be && _e === "round" && (Wt < H ? _e = "miter" : Wt <= 2 && (_e = "fakeround")), _e === "miter" && Wt > A && (_e = "bevel"), _e === "bevel" && (Wt > 2 && (_e = "flipbevel"), Wt < A && (_e = "miter")), it && this.updateDistance(it, et), _e === "miter")
7029
- It._mult(Wt), this.addCurrentVertex(et, It, 0, 0, X);
7029
+ Vt._mult(Wt), this.addCurrentVertex(et, Vt, 0, 0, X);
7030
7030
  else if (_e === "flipbevel") {
7031
7031
  if (Wt > 100)
7032
- It = gt.mult(-1);
7032
+ Vt = gt.mult(-1);
7033
7033
  else {
7034
7034
  const fe = Wt * Tt.add(gt).mag() / Tt.sub(gt).mag();
7035
- It._perp()._mult(fe * (ke ? -1 : 1));
7035
+ Vt._perp()._mult(fe * (ke ? -1 : 1));
7036
7036
  }
7037
- this.addCurrentVertex(et, It, 0, 0, X), this.addCurrentVertex(et, It.mult(-1), 0, 0, X);
7037
+ this.addCurrentVertex(et, Vt, 0, 0, X), this.addCurrentVertex(et, Vt.mult(-1), 0, 0, X);
7038
7038
  } else if (_e === "bevel" || _e === "fakeround") {
7039
7039
  const fe = -Math.sqrt(Wt * Wt - 1), De = ke ? fe : 0, ye = ke ? 0 : fe;
7040
7040
  if (it && this.addCurrentVertex(et, Tt, De, ye, X), _e === "fakeround") {
@@ -7051,10 +7051,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7051
7051
  }
7052
7052
  st && this.addCurrentVertex(et, gt, -De, -ye, X);
7053
7053
  } else if (_e === "butt")
7054
- this.addCurrentVertex(et, It, 0, 0, X);
7054
+ this.addCurrentVertex(et, Vt, 0, 0, X);
7055
7055
  else if (_e === "square") {
7056
7056
  const fe = it ? 1 : -1;
7057
- this.addCurrentVertex(et, It, fe, fe, X);
7057
+ this.addCurrentVertex(et, Vt, fe, fe, X);
7058
7058
  } else
7059
7059
  _e === "round" && (it && (this.addCurrentVertex(et, Tt, 0, 0, X), this.addCurrentVertex(et, Tt, 1, 1, X, !0)), st && (this.addCurrentVertex(et, gt, -1, -1, X, !0), this.addCurrentVertex(et, gt, 0, 0, X)));
7060
7060
  if (we && Lt < k - 1) {
@@ -7131,7 +7131,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7131
7131
  for (let st = 0; st < X.length; st++) {
7132
7132
  const Tt = X[st], gt = [];
7133
7133
  for (let Lt = 0; Lt < Tt.length; Lt++) {
7134
- const It = Tt[Lt - 1], wt = Tt[Lt], St = Tt[Lt + 1], Wt = Lt === 0 ? new p(0, 0) : wt.sub(It)._unit()._perp(), Jt = Lt === Tt.length - 1 ? new p(0, 0) : St.sub(wt)._unit()._perp(), we = Wt._add(Jt)._unit(), ke = we.x * Jt.x + we.y * Jt.y;
7134
+ const Vt = Tt[Lt - 1], wt = Tt[Lt], St = Tt[Lt + 1], Wt = Lt === 0 ? new p(0, 0) : wt.sub(Vt)._unit()._perp(), Jt = Lt === Tt.length - 1 ? new p(0, 0) : St.sub(wt)._unit()._perp(), we = Wt._add(Jt)._unit(), ke = we.x * Jt.x + we.y * Jt.y;
7135
7135
  ke !== 0 && we._mult(1 / ke), gt.push(we._mult(et)._add(wt));
7136
7136
  }
7137
7137
  it.push(gt);
@@ -7158,11 +7158,11 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7158
7158
  function ay(c, l) {
7159
7159
  return l > 0 ? l + 2 * c : c;
7160
7160
  }
7161
- const mO = nr([{ name: "a_pos_offset", components: 4, type: "Int16" }, { name: "a_data", components: 4, type: "Uint16" }, { name: "a_pixeloffset", components: 4, type: "Int16" }], 4), gO = nr([{ name: "a_projected_pos", components: 3, type: "Float32" }], 4);
7162
- nr([{ name: "a_fade_opacity", components: 1, type: "Uint32" }], 4);
7163
- const yO = nr([{ name: "a_placed", components: 2, type: "Uint8" }, { name: "a_shift", components: 2, type: "Float32" }]);
7164
- nr([{ type: "Int16", name: "anchorPointX" }, { type: "Int16", name: "anchorPointY" }, { type: "Int16", name: "x1" }, { type: "Int16", name: "y1" }, { type: "Int16", name: "x2" }, { type: "Int16", name: "y2" }, { type: "Uint32", name: "featureIndex" }, { type: "Uint16", name: "sourceLayerIndex" }, { type: "Uint16", name: "bucketIndex" }]);
7165
- const oy = nr([{ name: "a_pos", components: 2, type: "Int16" }, { name: "a_anchor_pos", components: 2, type: "Int16" }, { name: "a_extrude", components: 2, type: "Int16" }], 4), _O = nr([{ name: "a_pos", components: 2, type: "Float32" }, { name: "a_radius", components: 1, type: "Float32" }, { name: "a_flags", components: 2, type: "Int16" }], 4);
7161
+ const mO = rr([{ name: "a_pos_offset", components: 4, type: "Int16" }, { name: "a_data", components: 4, type: "Uint16" }, { name: "a_pixeloffset", components: 4, type: "Int16" }], 4), gO = rr([{ name: "a_projected_pos", components: 3, type: "Float32" }], 4);
7162
+ rr([{ name: "a_fade_opacity", components: 1, type: "Uint32" }], 4);
7163
+ const yO = rr([{ name: "a_placed", components: 2, type: "Uint8" }, { name: "a_shift", components: 2, type: "Float32" }]);
7164
+ rr([{ type: "Int16", name: "anchorPointX" }, { type: "Int16", name: "anchorPointY" }, { type: "Int16", name: "x1" }, { type: "Int16", name: "y1" }, { type: "Int16", name: "x2" }, { type: "Int16", name: "y2" }, { type: "Uint32", name: "featureIndex" }, { type: "Uint16", name: "sourceLayerIndex" }, { type: "Uint16", name: "bucketIndex" }]);
7165
+ const oy = rr([{ name: "a_pos", components: 2, type: "Int16" }, { name: "a_anchor_pos", components: 2, type: "Int16" }, { name: "a_extrude", components: 2, type: "Int16" }], 4), _O = rr([{ name: "a_pos", components: 2, type: "Float32" }, { name: "a_radius", components: 1, type: "Float32" }, { name: "a_flags", components: 2, type: "Int16" }], 4);
7166
7166
  function vO(c, l, h) {
7167
7167
  return c.sections.forEach((g) => {
7168
7168
  g.text = function(x, A, H) {
@@ -7171,7 +7171,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7171
7171
  }(g.text, l, h);
7172
7172
  }), c;
7173
7173
  }
7174
- nr([{ name: "triangle", components: 3, type: "Uint16" }]), nr([{ type: "Int16", name: "anchorX" }, { type: "Int16", name: "anchorY" }, { type: "Uint16", name: "glyphStartIndex" }, { type: "Uint16", name: "numGlyphs" }, { type: "Uint32", name: "vertexStartIndex" }, { type: "Uint32", name: "lineStartIndex" }, { type: "Uint32", name: "lineLength" }, { type: "Uint16", name: "segment" }, { type: "Uint16", name: "lowerSize" }, { type: "Uint16", name: "upperSize" }, { type: "Float32", name: "lineOffsetX" }, { type: "Float32", name: "lineOffsetY" }, { type: "Uint8", name: "writingMode" }, { type: "Uint8", name: "placedOrientation" }, { type: "Uint8", name: "hidden" }, { type: "Uint32", name: "crossTileID" }, { type: "Int16", name: "associatedIconIndex" }]), nr([{ type: "Int16", name: "anchorX" }, { type: "Int16", name: "anchorY" }, { type: "Int16", name: "rightJustifiedTextSymbolIndex" }, { type: "Int16", name: "centerJustifiedTextSymbolIndex" }, { type: "Int16", name: "leftJustifiedTextSymbolIndex" }, { type: "Int16", name: "verticalPlacedTextSymbolIndex" }, { type: "Int16", name: "placedIconSymbolIndex" }, { type: "Int16", name: "verticalPlacedIconSymbolIndex" }, { type: "Uint16", name: "key" }, { type: "Uint16", name: "textBoxStartIndex" }, { type: "Uint16", name: "textBoxEndIndex" }, { type: "Uint16", name: "verticalTextBoxStartIndex" }, { type: "Uint16", name: "verticalTextBoxEndIndex" }, { type: "Uint16", name: "iconBoxStartIndex" }, { type: "Uint16", name: "iconBoxEndIndex" }, { type: "Uint16", name: "verticalIconBoxStartIndex" }, { type: "Uint16", name: "verticalIconBoxEndIndex" }, { type: "Uint16", name: "featureIndex" }, { type: "Uint16", name: "numHorizontalGlyphVertices" }, { type: "Uint16", name: "numVerticalGlyphVertices" }, { type: "Uint16", name: "numIconVertices" }, { type: "Uint16", name: "numVerticalIconVertices" }, { type: "Uint16", name: "useRuntimeCollisionCircles" }, { type: "Uint32", name: "crossTileID" }, { type: "Float32", name: "textBoxScale" }, { type: "Float32", name: "collisionCircleDiameter" }, { type: "Uint16", name: "textAnchorOffsetStartIndex" }, { type: "Uint16", name: "textAnchorOffsetEndIndex" }]), nr([{ type: "Float32", name: "offsetX" }]), nr([{ type: "Int16", name: "x" }, { type: "Int16", name: "y" }, { type: "Int16", name: "tileUnitDistanceFromAnchor" }]), nr([{ type: "Uint16", name: "textAnchor" }, { type: "Float32", components: 2, name: "textOffset" }]);
7174
+ rr([{ name: "triangle", components: 3, type: "Uint16" }]), rr([{ type: "Int16", name: "anchorX" }, { type: "Int16", name: "anchorY" }, { type: "Uint16", name: "glyphStartIndex" }, { type: "Uint16", name: "numGlyphs" }, { type: "Uint32", name: "vertexStartIndex" }, { type: "Uint32", name: "lineStartIndex" }, { type: "Uint32", name: "lineLength" }, { type: "Uint16", name: "segment" }, { type: "Uint16", name: "lowerSize" }, { type: "Uint16", name: "upperSize" }, { type: "Float32", name: "lineOffsetX" }, { type: "Float32", name: "lineOffsetY" }, { type: "Uint8", name: "writingMode" }, { type: "Uint8", name: "placedOrientation" }, { type: "Uint8", name: "hidden" }, { type: "Uint32", name: "crossTileID" }, { type: "Int16", name: "associatedIconIndex" }]), rr([{ type: "Int16", name: "anchorX" }, { type: "Int16", name: "anchorY" }, { type: "Int16", name: "rightJustifiedTextSymbolIndex" }, { type: "Int16", name: "centerJustifiedTextSymbolIndex" }, { type: "Int16", name: "leftJustifiedTextSymbolIndex" }, { type: "Int16", name: "verticalPlacedTextSymbolIndex" }, { type: "Int16", name: "placedIconSymbolIndex" }, { type: "Int16", name: "verticalPlacedIconSymbolIndex" }, { type: "Uint16", name: "key" }, { type: "Uint16", name: "textBoxStartIndex" }, { type: "Uint16", name: "textBoxEndIndex" }, { type: "Uint16", name: "verticalTextBoxStartIndex" }, { type: "Uint16", name: "verticalTextBoxEndIndex" }, { type: "Uint16", name: "iconBoxStartIndex" }, { type: "Uint16", name: "iconBoxEndIndex" }, { type: "Uint16", name: "verticalIconBoxStartIndex" }, { type: "Uint16", name: "verticalIconBoxEndIndex" }, { type: "Uint16", name: "featureIndex" }, { type: "Uint16", name: "numHorizontalGlyphVertices" }, { type: "Uint16", name: "numVerticalGlyphVertices" }, { type: "Uint16", name: "numIconVertices" }, { type: "Uint16", name: "numVerticalIconVertices" }, { type: "Uint16", name: "useRuntimeCollisionCircles" }, { type: "Uint32", name: "crossTileID" }, { type: "Float32", name: "textBoxScale" }, { type: "Float32", name: "collisionCircleDiameter" }, { type: "Uint16", name: "textAnchorOffsetStartIndex" }, { type: "Uint16", name: "textAnchorOffsetEndIndex" }]), rr([{ type: "Float32", name: "offsetX" }]), rr([{ type: "Int16", name: "x" }, { type: "Int16", name: "y" }, { type: "Int16", name: "tileUnitDistanceFromAnchor" }]), rr([{ type: "Uint16", name: "textAnchor" }, { type: "Float32", components: 2, name: "textOffset" }]);
7175
7175
  const G5 = { "!": "︕", "#": "#", $: "$", "%": "%", "&": "&", "(": "︵", ")": "︶", "*": "*", "+": "+", ",": "︐", "-": "︲", ".": "・", "/": "/", ":": "︓", ";": "︔", "<": "︿", "=": "=", ">": "﹀", "?": "︖", "@": "@", "[": "﹇", "\\": "\", "]": "﹈", "^": "^", _: "︳", "`": "`", "{": "︷", "|": "―", "}": "︸", "~": "~", "¢": "¢", "£": "£", "¥": "¥", "¦": "¦", "¬": "¬", "¯": " ̄", "–": "︲", "—": "︱", "‘": "﹃", "’": "﹄", "“": "﹁", "”": "﹂", "…": "︙", "‧": "・", "₩": "₩", "、": "︑", "。": "︒", "〈": "︿", "〉": "﹀", "《": "︽", "》": "︾", "「": "﹁", "」": "﹂", "『": "﹃", "』": "﹄", "【": "︻", "】": "︼", "〔": "︹", "〕": "︺", "〖": "︗", "〗": "︘", "!": "︕", "(": "︵", ")": "︶", ",": "︐", "-": "︲", ".": "・", ":": "︓", ";": "︔", "<": "︿", ">": "﹀", "?": "︖", "[": "﹇", "]": "﹈", "_": "︳", "{": "︷", "|": "―", "}": "︸", "⦅": "︵", "⦆": "︶", "。": "︒", "「": "﹁", "」": "﹂" };
7176
7176
  var pr = 24, sy = i2, ly = function(c, l, h, g, x) {
7177
7177
  var A, H, P = 8 * x - g - 1, k = (1 << P) - 1, j = k >> 1, q = -7, X = h ? x - 1 : 0, et = h ? -1 : 1, it = c[l + X];
@@ -7689,10 +7689,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7689
7689
  const gt = Zo.fromFeature(c, x);
7690
7690
  let Lt;
7691
7691
  X === s.ah.vertical && gt.verticalizePunctuation();
7692
- const { processBidirectionalText: It, processStyledBidirectionalText: wt } = y4;
7693
- if (It && gt.sections.length === 1) {
7692
+ const { processBidirectionalText: Vt, processStyledBidirectionalText: wt } = y4;
7693
+ if (Vt && gt.sections.length === 1) {
7694
7694
  Lt = [];
7695
- const Jt = It(gt.toString(), pT(gt, j, A, l, g, it, st));
7695
+ const Jt = Vt(gt.toString(), pT(gt, j, A, l, g, it, st));
7696
7696
  for (const we of Jt) {
7697
7697
  const ke = new Zo();
7698
7698
  ke.text = we, ke.sections = gt.sections;
@@ -7814,12 +7814,12 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7814
7814
  if (!c)
7815
7815
  return [];
7816
7816
  const P = [], k = function(et, it, st, Tt, gt, Lt) {
7817
- let It = 0;
7817
+ let Vt = 0;
7818
7818
  for (let wt = 0; wt < et.length(); wt++) {
7819
7819
  const St = et.getSection(wt);
7820
- It += my(et.getCharCode(wt), St, Tt, gt, it, Lt);
7820
+ Vt += my(et.getCharCode(wt), St, Tt, gt, it, Lt);
7821
7821
  }
7822
- return It / Math.max(1, Math.ceil(It / st));
7822
+ return Vt / Math.max(1, Math.ceil(Vt / st));
7823
7823
  }(c, l, h, g, x, H), j = c.text.indexOf("​") >= 0;
7824
7824
  let q = 0;
7825
7825
  for (let et = 0; et < c.length(); et++) {
@@ -7972,7 +7972,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7972
7972
  if (this.features = [], !j && !q)
7973
7973
  return;
7974
7974
  const et = h.iconDependencies, it = h.glyphDependencies, st = h.availableImages, Tt = new p2(this.zoom);
7975
- for (const { feature: gt, id: Lt, index: It, sourceLayerIndex: wt } of l) {
7975
+ for (const { feature: gt, id: Lt, index: Vt, sourceLayerIndex: wt } of l) {
7976
7976
  const St = x._featureFilter.needGeometry, Wt = w4(gt, St);
7977
7977
  if (!x._featureFilter.filter(Tt, Wt, g))
7978
7978
  continue;
@@ -7988,7 +7988,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7988
7988
  if (!Jt && !we)
7989
7989
  continue;
7990
7990
  const ke = this.sortFeaturesByKey ? X.evaluate(Wt, {}, g) : void 0;
7991
- if (this.features.push({ id: Lt, text: Jt, icon: we, index: It, sourceLayerIndex: wt, geometry: Wt.geometry, properties: gt.properties, type: kO[gt.type], sortKey: ke }), we && (et[we.name] = !0), Jt) {
7991
+ if (this.features.push({ id: Lt, text: Jt, icon: we, index: Vt, sourceLayerIndex: wt, geometry: Wt.geometry, properties: gt.properties, type: kO[gt.type], sortKey: ke }), we && (et[we.name] = !0), Jt) {
7992
7992
  const be = H.evaluate(Wt, {}, g).join(","), _e = A.get("text-rotation-alignment") !== "viewport" && A.get("symbol-placement") !== "point";
7993
7993
  this.allowVerticalPlacement = this.writingModes && this.writingModes.indexOf(s.ah.vertical) >= 0;
7994
7994
  for (const fe of Jt.sections)
@@ -8001,14 +8001,14 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
8001
8001
  }
8002
8002
  }
8003
8003
  A.get("symbol-placement") === "line" && (this.features = function(gt) {
8004
- const Lt = {}, It = {}, wt = [];
8004
+ const Lt = {}, Vt = {}, wt = [];
8005
8005
  let St = 0;
8006
8006
  function Wt(be) {
8007
8007
  wt.push(gt[be]), St++;
8008
8008
  }
8009
8009
  function Jt(be, _e, fe) {
8010
- const De = It[be];
8011
- return delete It[be], It[_e] = De, wt[De].geometry[0].pop(), wt[De].geometry[0] = wt[De].geometry[0].concat(fe[0]), De;
8010
+ const De = Vt[be];
8011
+ return delete Vt[be], Vt[_e] = De, wt[De].geometry[0].pop(), wt[De].geometry[0] = wt[De].geometry[0].concat(fe[0]), De;
8012
8012
  }
8013
8013
  function we(be, _e, fe) {
8014
8014
  const De = Lt[_e];
@@ -8025,11 +8025,11 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
8025
8025
  continue;
8026
8026
  }
8027
8027
  const ye = ke(De, fe), le = ke(De, fe, !0);
8028
- if (ye in It && le in Lt && It[ye] !== Lt[le]) {
8028
+ if (ye in Vt && le in Lt && Vt[ye] !== Lt[le]) {
8029
8029
  const Ke = we(ye, le, fe), je = Jt(ye, le, wt[Ke].geometry);
8030
- delete Lt[ye], delete It[le], It[ke(De, wt[je].geometry, !0)] = je, wt[Ke].geometry = null;
8030
+ delete Lt[ye], delete Vt[le], Vt[ke(De, wt[je].geometry, !0)] = je, wt[Ke].geometry = null;
8031
8031
  } else
8032
- ye in It ? Jt(ye, le, fe) : le in Lt ? we(ye, le, fe) : (Wt(be), Lt[ye] = St - 1, It[le] = St - 1);
8032
+ ye in Vt ? Jt(ye, le, fe) : le in Lt ? we(ye, le, fe) : (Wt(be), Lt[ye] = St - 1, Vt[le] = St - 1);
8033
8033
  }
8034
8034
  return wt.filter((be) => be.geometry);
8035
8035
  }(this.features)), this.sortFeaturesByKey && this.features.sort((gt, Lt) => gt.sortKey - Lt.sortKey);
@@ -8069,10 +8069,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
8069
8069
  return { lineStartIndex: g, lineLength: this.lineVertexArray.length - g };
8070
8070
  }
8071
8071
  addSymbols(l, h, g, x, A, H, P, k, j, q, X, et) {
8072
- const it = l.indexArray, st = l.layoutVertexArray, Tt = l.segments.prepareSegment(4 * h.length, st, it, this.canOverlap ? H.sortKey : void 0), gt = this.glyphOffsetArray.length, Lt = Tt.vertexLength, It = this.allowVerticalPlacement && P === s.ah.vertical ? Math.PI / 2 : 0, wt = H.text && H.text.sections;
8072
+ const it = l.indexArray, st = l.layoutVertexArray, Tt = l.segments.prepareSegment(4 * h.length, st, it, this.canOverlap ? H.sortKey : void 0), gt = this.glyphOffsetArray.length, Lt = Tt.vertexLength, Vt = this.allowVerticalPlacement && P === s.ah.vertical ? Math.PI / 2 : 0, wt = H.text && H.text.sections;
8073
8073
  for (let St = 0; St < h.length; St++) {
8074
8074
  const { tl: Wt, tr: Jt, bl: we, br: ke, tex: be, pixelOffsetTL: _e, pixelOffsetBR: fe, minFontScaleX: De, minFontScaleY: ye, glyphOffset: le, isSDF: Ke, sectionIndex: je } = h[St], H1 = Tt.vertexLength, g2 = le[1];
8075
- il(st, k.x, k.y, Wt.x, g2 + Wt.y, be.x, be.y, g, Ke, _e.x, _e.y, De, ye), il(st, k.x, k.y, Jt.x, g2 + Jt.y, be.x + be.w, be.y, g, Ke, fe.x, _e.y, De, ye), il(st, k.x, k.y, we.x, g2 + we.y, be.x, be.y + be.h, g, Ke, _e.x, fe.y, De, ye), il(st, k.x, k.y, ke.x, g2 + ke.y, be.x + be.w, be.y + be.h, g, Ke, fe.x, fe.y, De, ye), yT(l.dynamicLayoutVertexArray, k, It), it.emplaceBack(H1, H1 + 1, H1 + 2), it.emplaceBack(H1 + 1, H1 + 2, H1 + 3), Tt.vertexLength += 4, Tt.primitiveLength += 2, this.glyphOffsetArray.emplaceBack(le[0]), St !== h.length - 1 && je === h[St + 1].sectionIndex || l.programConfigurations.populatePaintArrays(st.length, H, H.index, {}, et, wt && wt[je]);
8075
+ il(st, k.x, k.y, Wt.x, g2 + Wt.y, be.x, be.y, g, Ke, _e.x, _e.y, De, ye), il(st, k.x, k.y, Jt.x, g2 + Jt.y, be.x + be.w, be.y, g, Ke, fe.x, _e.y, De, ye), il(st, k.x, k.y, we.x, g2 + we.y, be.x, be.y + be.h, g, Ke, _e.x, fe.y, De, ye), il(st, k.x, k.y, ke.x, g2 + ke.y, be.x + be.w, be.y + be.h, g, Ke, fe.x, fe.y, De, ye), yT(l.dynamicLayoutVertexArray, k, Vt), it.emplaceBack(H1, H1 + 1, H1 + 2), it.emplaceBack(H1 + 1, H1 + 2, H1 + 3), Tt.vertexLength += 4, Tt.primitiveLength += 2, this.glyphOffsetArray.emplaceBack(le[0]), St !== h.length - 1 && je === h[St + 1].sectionIndex || l.programConfigurations.populatePaintArrays(st.length, H, H.index, {}, et, wt && wt[je]);
8076
8076
  }
8077
8077
  l.placedSymbolArray.emplaceBack(k.x, k.y, gt, this.glyphOffsetArray.length - gt, Lt, j, q, k.segment, g ? g[0] : 0, g ? g[1] : 0, x[0], x[1], P, 0, !1, 0, X);
8078
8078
  }
@@ -8180,7 +8180,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
8180
8180
  let Ly, by;
8181
8181
  Le("SymbolBucket", qo, { omit: ["layers", "collisionBoxArray", "features", "compareText"] }), qo.MAX_GLYPHS = 65535, qo.addDynamicAttributes = yT;
8182
8182
  var xT = { get paint() {
8183
- return by = by || new dn({ "icon-opacity": new t1(Nt.paint_symbol["icon-opacity"]), "icon-color": new t1(Nt.paint_symbol["icon-color"]), "icon-halo-color": new t1(Nt.paint_symbol["icon-halo-color"]), "icon-halo-width": new t1(Nt.paint_symbol["icon-halo-width"]), "icon-halo-blur": new t1(Nt.paint_symbol["icon-halo-blur"]), "icon-translate": new Ge(Nt.paint_symbol["icon-translate"]), "icon-translate-anchor": new Ge(Nt.paint_symbol["icon-translate-anchor"]), "text-opacity": new t1(Nt.paint_symbol["text-opacity"]), "text-color": new t1(Nt.paint_symbol["text-color"], { runtimeType: J2, getOverride: (c) => c.textColor, hasOverride: (c) => !!c.textColor }), "text-halo-color": new t1(Nt.paint_symbol["text-halo-color"]), "text-halo-width": new t1(Nt.paint_symbol["text-halo-width"]), "text-halo-blur": new t1(Nt.paint_symbol["text-halo-blur"]), "text-translate": new Ge(Nt.paint_symbol["text-translate"]), "text-translate-anchor": new Ge(Nt.paint_symbol["text-translate-anchor"]) });
8183
+ return by = by || new dn({ "icon-opacity": new t1(Nt.paint_symbol["icon-opacity"]), "icon-color": new t1(Nt.paint_symbol["icon-color"]), "icon-halo-color": new t1(Nt.paint_symbol["icon-halo-color"]), "icon-halo-width": new t1(Nt.paint_symbol["icon-halo-width"]), "icon-halo-blur": new t1(Nt.paint_symbol["icon-halo-blur"]), "icon-translate": new Ge(Nt.paint_symbol["icon-translate"]), "icon-translate-anchor": new Ge(Nt.paint_symbol["icon-translate-anchor"]), "text-opacity": new t1(Nt.paint_symbol["text-opacity"]), "text-color": new t1(Nt.paint_symbol["text-color"], { runtimeType: Y2, getOverride: (c) => c.textColor, hasOverride: (c) => !!c.textColor }), "text-halo-color": new t1(Nt.paint_symbol["text-halo-color"]), "text-halo-width": new t1(Nt.paint_symbol["text-halo-width"]), "text-halo-blur": new t1(Nt.paint_symbol["text-halo-blur"]), "text-translate": new Ge(Nt.paint_symbol["text-translate"]), "text-translate-anchor": new Ge(Nt.paint_symbol["text-translate-anchor"]) });
8184
8184
  }, get layout() {
8185
8185
  return Ly = Ly || new dn({ "symbol-placement": new Ge(Nt.layout_symbol["symbol-placement"]), "symbol-spacing": new Ge(Nt.layout_symbol["symbol-spacing"]), "symbol-avoid-edges": new Ge(Nt.layout_symbol["symbol-avoid-edges"]), "symbol-sort-key": new t1(Nt.layout_symbol["symbol-sort-key"]), "symbol-z-order": new Ge(Nt.layout_symbol["symbol-z-order"]), "icon-allow-overlap": new Ge(Nt.layout_symbol["icon-allow-overlap"]), "icon-overlap": new Ge(Nt.layout_symbol["icon-overlap"]), "icon-ignore-placement": new Ge(Nt.layout_symbol["icon-ignore-placement"]), "icon-optional": new Ge(Nt.layout_symbol["icon-optional"]), "icon-rotation-alignment": new Ge(Nt.layout_symbol["icon-rotation-alignment"]), "icon-size": new t1(Nt.layout_symbol["icon-size"]), "icon-text-fit": new Ge(Nt.layout_symbol["icon-text-fit"]), "icon-text-fit-padding": new Ge(Nt.layout_symbol["icon-text-fit-padding"]), "icon-image": new t1(Nt.layout_symbol["icon-image"]), "icon-rotate": new t1(Nt.layout_symbol["icon-rotate"]), "icon-padding": new t1(Nt.layout_symbol["icon-padding"]), "icon-keep-upright": new Ge(Nt.layout_symbol["icon-keep-upright"]), "icon-offset": new t1(Nt.layout_symbol["icon-offset"]), "icon-anchor": new t1(Nt.layout_symbol["icon-anchor"]), "icon-pitch-alignment": new Ge(Nt.layout_symbol["icon-pitch-alignment"]), "text-pitch-alignment": new Ge(Nt.layout_symbol["text-pitch-alignment"]), "text-rotation-alignment": new Ge(Nt.layout_symbol["text-rotation-alignment"]), "text-field": new t1(Nt.layout_symbol["text-field"]), "text-font": new t1(Nt.layout_symbol["text-font"]), "text-size": new t1(Nt.layout_symbol["text-size"]), "text-max-width": new t1(Nt.layout_symbol["text-max-width"]), "text-line-height": new Ge(Nt.layout_symbol["text-line-height"]), "text-letter-spacing": new t1(Nt.layout_symbol["text-letter-spacing"]), "text-justify": new t1(Nt.layout_symbol["text-justify"]), "text-radial-offset": new t1(Nt.layout_symbol["text-radial-offset"]), "text-variable-anchor": new Ge(Nt.layout_symbol["text-variable-anchor"]), "text-variable-anchor-offset": new t1(Nt.layout_symbol["text-variable-anchor-offset"]), "text-anchor": new t1(Nt.layout_symbol["text-anchor"]), "text-max-angle": new Ge(Nt.layout_symbol["text-max-angle"]), "text-writing-mode": new Ge(Nt.layout_symbol["text-writing-mode"]), "text-rotate": new t1(Nt.layout_symbol["text-rotate"]), "text-padding": new Ge(Nt.layout_symbol["text-padding"]), "text-keep-upright": new Ge(Nt.layout_symbol["text-keep-upright"]), "text-transform": new t1(Nt.layout_symbol["text-transform"]), "text-offset": new t1(Nt.layout_symbol["text-offset"]), "text-allow-overlap": new Ge(Nt.layout_symbol["text-allow-overlap"]), "text-overlap": new Ge(Nt.layout_symbol["text-overlap"]), "text-ignore-placement": new Ge(Nt.layout_symbol["text-ignore-placement"]), "text-optional": new Ge(Nt.layout_symbol["text-optional"]) });
8186
8186
  } };
@@ -8628,7 +8628,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
8628
8628
  }
8629
8629
  query(l, h, g, x) {
8630
8630
  this.loadVTLayers();
8631
- const A = l.params || {}, H = O1 / l.tileSize / l.scale, P = o3(A.filter), k = l.queryGeometry, j = l.queryPadding * H, q = Fy(k), X = this.grid.query(q.minX - j, q.minY - j, q.maxX + j, q.maxY + j), et = Fy(l.cameraQueryGeometry), it = this.grid3D.query(et.minX - j, et.minY - j, et.maxX + j, et.maxY + j, (gt, Lt, It, wt) => function(St, Wt, Jt, we, ke) {
8631
+ const A = l.params || {}, H = O1 / l.tileSize / l.scale, P = o3(A.filter), k = l.queryGeometry, j = l.queryPadding * H, q = Fy(k), X = this.grid.query(q.minX - j, q.minY - j, q.maxX + j, q.maxY + j), et = Fy(l.cameraQueryGeometry), it = this.grid3D.query(et.minX - j, et.minY - j, et.maxX + j, et.maxY + j, (gt, Lt, Vt, wt) => function(St, Wt, Jt, we, ke) {
8632
8632
  for (const _e of St)
8633
8633
  if (Wt <= _e.x && Jt <= _e.y && we >= _e.x && ke >= _e.y)
8634
8634
  return !0;
@@ -8642,7 +8642,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
8642
8642
  if (bC(St[_e], St[_e + 1], be))
8643
8643
  return !0;
8644
8644
  return !1;
8645
- }(l.cameraQueryGeometry, gt - j, Lt - j, It + j, wt + j));
8645
+ }(l.cameraQueryGeometry, gt - j, Lt - j, Vt + j, wt + j));
8646
8646
  for (const gt of it)
8647
8647
  X.push(gt);
8648
8648
  X.sort(ZO);
@@ -8653,17 +8653,17 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
8653
8653
  if (Lt === Tt)
8654
8654
  continue;
8655
8655
  Tt = Lt;
8656
- const It = this.featureIndexArray.get(Lt);
8656
+ const Vt = this.featureIndexArray.get(Lt);
8657
8657
  let wt = null;
8658
- this.loadMatchingFeature(st, It.bucketIndex, It.sourceLayerIndex, It.featureIndex, P, A.layers, A.availableImages, h, g, x, (St, Wt, Jt) => (wt || (wt = b4(St)), Wt.queryIntersectsFeature(k, St, Jt, wt, this.z, l.transform, H, l.pixelPosMatrix)));
8658
+ this.loadMatchingFeature(st, Vt.bucketIndex, Vt.sourceLayerIndex, Vt.featureIndex, P, A.layers, A.availableImages, h, g, x, (St, Wt, Jt) => (wt || (wt = b4(St)), Wt.queryIntersectsFeature(k, St, Jt, wt, this.z, l.transform, H, l.pixelPosMatrix)));
8659
8659
  }
8660
8660
  return st;
8661
8661
  }
8662
8662
  loadMatchingFeature(l, h, g, x, A, H, P, k, j, q, X) {
8663
8663
  const et = this.bucketLayerIDs[h];
8664
8664
  if (H && !function(gt, Lt) {
8665
- for (let It = 0; It < gt.length; It++)
8666
- if (Lt.indexOf(gt[It]) >= 0)
8665
+ for (let Vt = 0; Vt < gt.length; Vt++)
8666
+ if (Lt.indexOf(gt[Vt]) >= 0)
8667
8667
  return !0;
8668
8668
  return !1;
8669
8669
  }(H, et))
@@ -8680,14 +8680,14 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
8680
8680
  const Lt = et[gt];
8681
8681
  if (H && H.indexOf(Lt) < 0)
8682
8682
  continue;
8683
- const It = k[Lt];
8684
- if (!It)
8683
+ const Vt = k[Lt];
8684
+ if (!Vt)
8685
8685
  continue;
8686
8686
  let wt = {};
8687
- Tt && q && (wt = q.getState(It.sourceLayer || "_geojsonTileLayer", Tt));
8687
+ Tt && q && (wt = q.getState(Vt.sourceLayer || "_geojsonTileLayer", Tt));
8688
8688
  const St = W({}, j[Lt]);
8689
- St.paint = By(St.paint, It.paint, st, wt, P), St.layout = By(St.layout, It.layout, st, wt, P);
8690
- const Wt = !X || X(st, It, wt);
8689
+ St.paint = By(St.paint, Vt.paint, st, wt, P), St.layout = By(St.layout, Vt.layout, st, wt, P);
8690
+ const Wt = !X || X(st, Vt, wt);
8691
8691
  if (!Wt)
8692
8692
  continue;
8693
8693
  const Jt = new Ry(st, this.z, this.x, this.y, Tt);
@@ -8810,12 +8810,12 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
8810
8810
  const j = A / 2, q = zy(c);
8811
8811
  let X = 0, et = l - h, it = [];
8812
8812
  for (let st = 0; st < c.length - 1; st++) {
8813
- const Tt = c[st], gt = c[st + 1], Lt = Tt.dist(gt), It = gt.angleTo(Tt);
8813
+ const Tt = c[st], gt = c[st + 1], Lt = Tt.dist(gt), Vt = gt.angleTo(Tt);
8814
8814
  for (; et + h < X + Lt; ) {
8815
8815
  et += h;
8816
8816
  const wt = (et - X) / Lt, St = Br.number(Tt.x, gt.x, wt), Wt = Br.number(Tt.y, gt.y, wt);
8817
8817
  if (St >= 0 && St < k && Wt >= 0 && Wt < k && et - j >= 0 && et + j <= q) {
8818
- const Jt = new Ha(St, Wt, It, st);
8818
+ const Jt = new Ha(St, Wt, Vt, st);
8819
8819
  Jt._round(), g && !jy(c, Jt, A, g, x) || it.push(Jt);
8820
8820
  }
8821
8821
  }
@@ -8827,13 +8827,13 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
8827
8827
  const Wo = Pn;
8828
8828
  function Zy(c, l, h, g) {
8829
8829
  const x = [], A = c.image, H = A.pixelRatio, P = A.paddedRect.w - 2 * Wo, k = A.paddedRect.h - 2 * Wo, j = c.right - c.left, q = c.bottom - c.top, X = A.stretchX || [[0, P]], et = A.stretchY || [[0, k]], it = (fe, De) => fe + De[1] - De[0], st = X.reduce(it, 0), Tt = et.reduce(it, 0), gt = P - st, Lt = k - Tt;
8830
- let It = 0, wt = st, St = 0, Wt = Tt, Jt = 0, we = gt, ke = 0, be = Lt;
8830
+ let Vt = 0, wt = st, St = 0, Wt = Tt, Jt = 0, we = gt, ke = 0, be = Lt;
8831
8831
  if (A.content && g) {
8832
8832
  const fe = A.content;
8833
- It = sl(X, 0, fe[0]), St = sl(et, 0, fe[1]), wt = sl(X, fe[0], fe[2]), Wt = sl(et, fe[1], fe[3]), Jt = fe[0] - It, ke = fe[1] - St, we = fe[2] - fe[0] - wt, be = fe[3] - fe[1] - Wt;
8833
+ Vt = sl(X, 0, fe[0]), St = sl(et, 0, fe[1]), wt = sl(X, fe[0], fe[2]), Wt = sl(et, fe[1], fe[3]), Jt = fe[0] - Vt, ke = fe[1] - St, we = fe[2] - fe[0] - wt, be = fe[3] - fe[1] - Wt;
8834
8834
  }
8835
8835
  const _e = (fe, De, ye, le) => {
8836
- const Ke = ll(fe.stretch - It, wt, j, c.left), je = ul(fe.fixed - Jt, we, fe.stretch, st), H1 = ll(De.stretch - St, Wt, q, c.top), g2 = ul(De.fixed - ke, be, De.stretch, Tt), w2 = ll(ye.stretch - It, wt, j, c.left), mr = ul(ye.fixed - Jt, we, ye.stretch, st), ei = ll(le.stretch - St, Wt, q, c.top), mn = ul(le.fixed - ke, be, le.stretch, Tt), cr = new p(Ke, H1), Pr = new p(w2, H1), jr = new p(w2, ei), gn = new p(Ke, ei), yn = new p(je / H, g2 / H), gr = new p(mr / H, mn / H), yr = l * Math.PI / 180;
8836
+ const Ke = ll(fe.stretch - Vt, wt, j, c.left), je = ul(fe.fixed - Jt, we, fe.stretch, st), H1 = ll(De.stretch - St, Wt, q, c.top), g2 = ul(De.fixed - ke, be, De.stretch, Tt), w2 = ll(ye.stretch - Vt, wt, j, c.left), mr = ul(ye.fixed - Jt, we, ye.stretch, st), ei = ll(le.stretch - St, Wt, q, c.top), mn = ul(le.fixed - ke, be, le.stretch, Tt), cr = new p(Ke, H1), Pr = new p(w2, H1), jr = new p(w2, ei), gn = new p(Ke, ei), yn = new p(je / H, g2 / H), gr = new p(mr / H, mn / H), yr = l * Math.PI / 180;
8837
8837
  if (yr) {
8838
8838
  const Jr = Math.sin(yr), Vn = Math.cos(yr), In = [Vn, -Jr, Jr, Vn];
8839
8839
  cr._matMult(In), Pr._matMult(In), gn._matMult(In), jr._matMult(In);
@@ -8884,8 +8884,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
8884
8884
  let X = H.top * P - k[0], et = H.bottom * P + k[2], it = H.left * P - k[3], st = H.right * P + k[1];
8885
8885
  const Tt = H.collisionPadding;
8886
8886
  if (Tt && (it -= Tt[0] * P, X -= Tt[1] * P, st += Tt[2] * P, et += Tt[3] * P), q) {
8887
- const gt = new p(it, X), Lt = new p(st, X), It = new p(it, et), wt = new p(st, et), St = q * Math.PI / 180;
8888
- gt._rotate(St), Lt._rotate(St), It._rotate(St), wt._rotate(St), it = Math.min(gt.x, Lt.x, It.x, wt.x), st = Math.max(gt.x, Lt.x, It.x, wt.x), X = Math.min(gt.y, Lt.y, It.y, wt.y), et = Math.max(gt.y, Lt.y, It.y, wt.y);
8887
+ const gt = new p(it, X), Lt = new p(st, X), Vt = new p(it, et), wt = new p(st, et), St = q * Math.PI / 180;
8888
+ gt._rotate(St), Lt._rotate(St), Vt._rotate(St), wt._rotate(St), it = Math.min(gt.x, Lt.x, Vt.x, wt.x), st = Math.max(gt.x, Lt.x, Vt.x, wt.x), X = Math.min(gt.y, Lt.y, Vt.y, wt.y), et = Math.max(gt.y, Lt.y, Vt.y, wt.y);
8889
8889
  }
8890
8890
  l.emplaceBack(h.x, h.y, it, X, st, et, g, x, A);
8891
8891
  }
@@ -8953,8 +8953,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
8953
8953
  let X = function(it) {
8954
8954
  let st = 0, Tt = 0, gt = 0;
8955
8955
  const Lt = it[0];
8956
- for (let It = 0, wt = Lt.length, St = wt - 1; It < wt; St = It++) {
8957
- const Wt = Lt[It], Jt = Lt[St], we = Wt.x * Jt.y - Jt.x * Wt.y;
8956
+ for (let Vt = 0, wt = Lt.length, St = wt - 1; Vt < wt; St = Vt++) {
8957
+ const Wt = Lt[Vt], Jt = Lt[St], we = Wt.x * Jt.y - Jt.x * Wt.y;
8958
8958
  Tt += (Wt.x + Jt.x) * we, gt += (Wt.y + Jt.y) * we, st += 3 * we;
8959
8959
  }
8960
8960
  return new Xo(Tt / st, gt / st, 0, it);
@@ -9085,7 +9085,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
9085
9085
  function tD(c, l, h, g, x, A, H, P, k, j, q) {
9086
9086
  let X = A.textMaxSize.evaluate(l, {});
9087
9087
  X === void 0 && (X = H);
9088
- const et = c.layers[0].layout, it = et.get("icon-offset").evaluate(l, {}, q), st = Yy(h.horizontal), Tt = H / 24, gt = c.tilePixelRatio * Tt, Lt = c.tilePixelRatio * X / 24, It = c.tilePixelRatio * P, wt = c.tilePixelRatio * et.get("symbol-spacing"), St = et.get("text-padding") * c.tilePixelRatio, Wt = function(le, Ke, je, H1 = 1) {
9088
+ const et = c.layers[0].layout, it = et.get("icon-offset").evaluate(l, {}, q), st = Yy(h.horizontal), Tt = H / 24, gt = c.tilePixelRatio * Tt, Lt = c.tilePixelRatio * X / 24, Vt = c.tilePixelRatio * P, wt = c.tilePixelRatio * et.get("symbol-spacing"), St = et.get("text-padding") * c.tilePixelRatio, Wt = function(le, Ke, je, H1 = 1) {
9089
9089
  const g2 = le.get("icon-padding").evaluate(Ke, {}, je), w2 = g2 && g2.values;
9090
9090
  return [w2[0] * H1, w2[1] * H1, w2[2] * H1, w2[3] * H1];
9091
9091
  }(et, l, q, c.tilePixelRatio), Jt = et.get("text-max-angle") / 180 * Math.PI, we = et.get("text-rotation-alignment") !== "viewport" && et.get("symbol-placement") !== "point", ke = et.get("icon-rotation-alignment") === "map" && et.get("symbol-placement") !== "point", be = et.get("symbol-placement"), _e = wt / 2, fe = et.get("icon-text-fit");
@@ -9137,7 +9137,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
9137
9137
  return [A6, en.length];
9138
9138
  }(je.textAnchorOffsets, hD);
9139
9139
  je.symbolInstances.emplaceBack(H1.x, H1.y, S4.right >= 0 ? S4.right : -1, S4.center >= 0 ? S4.center : -1, S4.left >= 0 ? S4.left : -1, S4.vertical || -1, VT, IT, n_, nD, iD, aD, oD, sD, lD, uD, cD, jr, Y5, r_, Rn, H4, a_, 0, gr, d3, TD, QD);
9140
- }(c, Ke, le, h, g, x, De, c.layers[0], c.collisionBoxArray, l.index, l.sourceLayerIndex, c.index, gt, [St, St, St, St], we, k, It, Wt, ke, it, l, A, j, q, H);
9140
+ }(c, Ke, le, h, g, x, De, c.layers[0], c.collisionBoxArray, l.index, l.sourceLayerIndex, c.index, gt, [St, St, St, St], we, k, Vt, Wt, ke, it, l, A, j, q, H);
9141
9141
  };
9142
9142
  if (be === "line")
9143
9143
  for (const le of Ny(l.geometry, 0, 0, O1, O1)) {
@@ -9165,7 +9165,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
9165
9165
  ye([Ke], new Ha(Ke.x, Ke.y, 0));
9166
9166
  }
9167
9167
  function Ky(c, l, h, g, x, A, H, P, k, j, q, X, et, it, st) {
9168
- const Tt = function(It, wt, St, Wt, Jt, we, ke, be) {
9168
+ const Tt = function(Vt, wt, St, Wt, Jt, we, ke, be) {
9169
9169
  const _e = Wt.layout.get("text-rotate").evaluate(we, {}) * Math.PI / 180, fe = [];
9170
9170
  for (const De of wt.positionedLines)
9171
9171
  for (const ye of De.positionedGlyphs) {
@@ -9197,8 +9197,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
9197
9197
  }(0, h, P, x, A, H, g, c.allowVerticalPlacement), gt = c.textSizeData;
9198
9198
  let Lt = null;
9199
9199
  gt.kind === "source" ? (Lt = [F3 * x.layout.get("text-size").evaluate(H, {})], Lt[0] > Ma && Ft(`${c.layerIds[0]}: Value for "text-size" is >= ${q5}. Reduce your "text-size".`)) : gt.kind === "composite" && (Lt = [F3 * it.compositeTextSizes[0].evaluate(H, {}, st), F3 * it.compositeTextSizes[1].evaluate(H, {}, st)], (Lt[0] > Ma || Lt[1] > Ma) && Ft(`${c.layerIds[0]}: Value for "text-size" is >= ${q5}. Reduce your "text-size".`)), c.addSymbols(c.text, Tt, Lt, P, A, H, j, l, k.lineStartIndex, k.lineLength, et, st);
9200
- for (const It of q)
9201
- X[It] = c.text.placedSymbolArray.length - 1;
9200
+ for (const Vt of q)
9201
+ X[Vt] = c.text.placedSymbolArray.length - 1;
9202
9202
  return 4 * Tt.length;
9203
9203
  }
9204
9204
  function Yy(c) {
@@ -9261,8 +9261,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
9261
9261
  const q = k.pop() || 0, X = k.pop() || 0, et = k.pop() || 0;
9262
9262
  if (X - et <= P) {
9263
9263
  for (let gt = et; gt <= X; gt++) {
9264
- const Lt = H[2 * gt], It = H[2 * gt + 1];
9265
- Lt >= l && Lt <= g && It >= h && It <= x && j.push(A[gt]);
9264
+ const Lt = H[2 * gt], Vt = H[2 * gt + 1];
9265
+ Lt >= l && Lt <= g && Vt >= h && Vt <= x && j.push(A[gt]);
9266
9266
  }
9267
9267
  continue;
9268
9268
  }
@@ -9430,7 +9430,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
9430
9430
  x in c && (h[x] = c[x]);
9431
9431
  }
9432
9432
  return h;
9433
- }, s.M = Aa, s.N = Sy, s.O = Cy, s.P = p, s.Q = _i, s.R = yi, s.S = M, s.T = _5, s.U = C, s.V = ee, s.W = O1, s.X = nr, s.Y = ol, s.Z = class extends k3 {
9433
+ }, s.M = Aa, s.N = Sy, s.O = Cy, s.P = p, s.Q = _i, s.R = yi, s.S = M, s.T = _5, s.U = C, s.V = ee, s.W = O1, s.X = rr, s.Y = ol, s.Z = class extends k3 {
9434
9434
  }, s._ = o, s.a = Ye, s.a$ = function(c, l, h) {
9435
9435
  return c[0] = l[0] * h[0], c[1] = l[1] * h[1], c[2] = l[2] * h[2], c[3] = l[3] * h[3], c;
9436
9436
  }, s.a0 = wT, s.a1 = ce, s.a2 = (c) => {
@@ -9468,11 +9468,11 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
9468
9468
  }), h = h.concat(x), function(H, P, k) {
9469
9469
  P = P || [];
9470
9470
  const j = (H = H || []).map(Mn), q = P.map(Mn), X = H.reduce(An, {}), et = P.reduce(An, {}), it = j.slice(), st = /* @__PURE__ */ Object.create(null);
9471
- let Tt, gt, Lt, It, wt;
9471
+ let Tt, gt, Lt, Vt, wt;
9472
9472
  for (let St = 0, Wt = 0; St < j.length; St++)
9473
9473
  Tt = j[St], Object.prototype.hasOwnProperty.call(et, Tt) ? Wt++ : (D1(k, { command: "removeLayer", args: [Tt] }), it.splice(it.indexOf(Tt, Wt), 1));
9474
9474
  for (let St = 0, Wt = 0; St < q.length; St++)
9475
- Tt = q[q.length - 1 - St], it[it.length - 1 - St] !== Tt && (Object.prototype.hasOwnProperty.call(X, Tt) ? (D1(k, { command: "removeLayer", args: [Tt] }), it.splice(it.lastIndexOf(Tt, it.length - Wt), 1)) : Wt++, It = it[it.length - St], D1(k, { command: "addLayer", args: [et[Tt], It] }), it.splice(it.length - St, 0, Tt), st[Tt] = !0);
9475
+ Tt = q[q.length - 1 - St], it[it.length - 1 - St] !== Tt && (Object.prototype.hasOwnProperty.call(X, Tt) ? (D1(k, { command: "removeLayer", args: [Tt] }), it.splice(it.lastIndexOf(Tt, it.length - Wt), 1)) : Wt++, Vt = it[it.length - St], D1(k, { command: "addLayer", args: [et[Tt], Vt] }), it.splice(it.length - St, 0, Tt), st[Tt] = !0);
9476
9476
  for (let St = 0; St < q.length; St++)
9477
9477
  if (Tt = q[St], gt = X[Tt], Lt = et[Tt], !st[Tt] && !r1(gt, Lt))
9478
9478
  if (r1(gt.source, Lt.source) && r1(gt["source-layer"], Lt["source-layer"]) && r1(gt.type, Lt.type)) {
@@ -9481,7 +9481,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
9481
9481
  for (wt in Lt)
9482
9482
  Object.prototype.hasOwnProperty.call(Lt, wt) && !Object.prototype.hasOwnProperty.call(gt, wt) && wt !== "layout" && wt !== "paint" && wt !== "filter" && wt !== "metadata" && wt !== "minzoom" && wt !== "maxzoom" && (wt.indexOf("paint.") === 0 ? Sr(gt[wt], Lt[wt], k, Tt, wt.slice(6), "setPaintProperty") : r1(gt[wt], Lt[wt]) || D1(k, { command: "setLayerProperty", args: [Tt, wt, Lt[wt]] }));
9483
9483
  } else
9484
- D1(k, { command: "removeLayer", args: [Tt] }), It = it[it.lastIndexOf(Tt) + 1], D1(k, { command: "addLayer", args: [Lt, It] });
9484
+ D1(k, { command: "removeLayer", args: [Tt] }), Vt = it[it.lastIndexOf(Tt) + 1], D1(k, { command: "addLayer", args: [Lt, Vt] });
9485
9485
  }(A, l.layers, h);
9486
9486
  } catch (g) {
9487
9487
  console.warn("Unable to compute style diff:", g), h = [{ command: "setStyle", args: [l] }];
@@ -9553,8 +9553,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
9553
9553
  }, s.aX = zt, s.aY = function(c, l) {
9554
9554
  return c[0] === l[0] && c[1] === l[1] && c[2] === l[2] && c[3] === l[3] && c[4] === l[4] && c[5] === l[5] && c[6] === l[6] && c[7] === l[7] && c[8] === l[8] && c[9] === l[9] && c[10] === l[10] && c[11] === l[11] && c[12] === l[12] && c[13] === l[13] && c[14] === l[14] && c[15] === l[15];
9555
9555
  }, s.aZ = function(c, l) {
9556
- var h = c[0], g = c[1], x = c[2], A = c[3], H = c[4], P = c[5], k = c[6], j = c[7], q = c[8], X = c[9], et = c[10], it = c[11], st = c[12], Tt = c[13], gt = c[14], Lt = c[15], It = l[0], wt = l[1], St = l[2], Wt = l[3], Jt = l[4], we = l[5], ke = l[6], be = l[7], _e = l[8], fe = l[9], De = l[10], ye = l[11], le = l[12], Ke = l[13], je = l[14], H1 = l[15];
9557
- return Math.abs(h - It) <= pn * Math.max(1, Math.abs(h), Math.abs(It)) && Math.abs(g - wt) <= pn * Math.max(1, Math.abs(g), Math.abs(wt)) && Math.abs(x - St) <= pn * Math.max(1, Math.abs(x), Math.abs(St)) && Math.abs(A - Wt) <= pn * Math.max(1, Math.abs(A), Math.abs(Wt)) && Math.abs(H - Jt) <= pn * Math.max(1, Math.abs(H), Math.abs(Jt)) && Math.abs(P - we) <= pn * Math.max(1, Math.abs(P), Math.abs(we)) && Math.abs(k - ke) <= pn * Math.max(1, Math.abs(k), Math.abs(ke)) && Math.abs(j - be) <= pn * Math.max(1, Math.abs(j), Math.abs(be)) && Math.abs(q - _e) <= pn * Math.max(1, Math.abs(q), Math.abs(_e)) && Math.abs(X - fe) <= pn * Math.max(1, Math.abs(X), Math.abs(fe)) && Math.abs(et - De) <= pn * Math.max(1, Math.abs(et), Math.abs(De)) && Math.abs(it - ye) <= pn * Math.max(1, Math.abs(it), Math.abs(ye)) && Math.abs(st - le) <= pn * Math.max(1, Math.abs(st), Math.abs(le)) && Math.abs(Tt - Ke) <= pn * Math.max(1, Math.abs(Tt), Math.abs(Ke)) && Math.abs(gt - je) <= pn * Math.max(1, Math.abs(gt), Math.abs(je)) && Math.abs(Lt - H1) <= pn * Math.max(1, Math.abs(Lt), Math.abs(H1));
9556
+ var h = c[0], g = c[1], x = c[2], A = c[3], H = c[4], P = c[5], k = c[6], j = c[7], q = c[8], X = c[9], et = c[10], it = c[11], st = c[12], Tt = c[13], gt = c[14], Lt = c[15], Vt = l[0], wt = l[1], St = l[2], Wt = l[3], Jt = l[4], we = l[5], ke = l[6], be = l[7], _e = l[8], fe = l[9], De = l[10], ye = l[11], le = l[12], Ke = l[13], je = l[14], H1 = l[15];
9557
+ return Math.abs(h - Vt) <= pn * Math.max(1, Math.abs(h), Math.abs(Vt)) && Math.abs(g - wt) <= pn * Math.max(1, Math.abs(g), Math.abs(wt)) && Math.abs(x - St) <= pn * Math.max(1, Math.abs(x), Math.abs(St)) && Math.abs(A - Wt) <= pn * Math.max(1, Math.abs(A), Math.abs(Wt)) && Math.abs(H - Jt) <= pn * Math.max(1, Math.abs(H), Math.abs(Jt)) && Math.abs(P - we) <= pn * Math.max(1, Math.abs(P), Math.abs(we)) && Math.abs(k - ke) <= pn * Math.max(1, Math.abs(k), Math.abs(ke)) && Math.abs(j - be) <= pn * Math.max(1, Math.abs(j), Math.abs(be)) && Math.abs(q - _e) <= pn * Math.max(1, Math.abs(q), Math.abs(_e)) && Math.abs(X - fe) <= pn * Math.max(1, Math.abs(X), Math.abs(fe)) && Math.abs(et - De) <= pn * Math.max(1, Math.abs(et), Math.abs(De)) && Math.abs(it - ye) <= pn * Math.max(1, Math.abs(it), Math.abs(ye)) && Math.abs(st - le) <= pn * Math.max(1, Math.abs(st), Math.abs(le)) && Math.abs(Tt - Ke) <= pn * Math.max(1, Math.abs(Tt), Math.abs(Ke)) && Math.abs(gt - je) <= pn * Math.max(1, Math.abs(gt), Math.abs(je)) && Math.abs(Lt - H1) <= pn * Math.max(1, Math.abs(Lt), Math.abs(H1));
9558
9558
  }, s.a_ = function(c, l) {
9559
9559
  return c[0] = l[0], c[1] = l[1], c[2] = l[2], c[3] = l[3], c[4] = l[4], c[5] = l[5], c[6] = l[6], c[7] = l[7], c[8] = l[8], c[9] = l[9], c[10] = l[10], c[11] = l[11], c[12] = l[12], c[13] = l[13], c[14] = l[14], c[15] = l[15], c;
9560
9560
  }, s.aa = function(c) {
@@ -9596,8 +9596,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
9596
9596
  const j = (P * (c.y - h.y) - H * (c.x - h.x)) / k;
9597
9597
  return new p(c.x + j * A, c.y + j * x);
9598
9598
  }, s.al = Ny, s.am = E4, s.an = Yh, s.ao = pr, s.aq = gT, s.ar = function(c, l) {
9599
- var h = l[0], g = l[1], x = l[2], A = l[3], H = l[4], P = l[5], k = l[6], j = l[7], q = l[8], X = l[9], et = l[10], it = l[11], st = l[12], Tt = l[13], gt = l[14], Lt = l[15], It = h * P - g * H, wt = h * k - x * H, St = h * j - A * H, Wt = g * k - x * P, Jt = g * j - A * P, we = x * j - A * k, ke = q * Tt - X * st, be = q * gt - et * st, _e = q * Lt - it * st, fe = X * gt - et * Tt, De = X * Lt - it * Tt, ye = et * Lt - it * gt, le = It * ye - wt * De + St * fe + Wt * _e - Jt * be + we * ke;
9600
- return le ? (c[0] = (P * ye - k * De + j * fe) * (le = 1 / le), c[1] = (x * De - g * ye - A * fe) * le, c[2] = (Tt * we - gt * Jt + Lt * Wt) * le, c[3] = (et * Jt - X * we - it * Wt) * le, c[4] = (k * _e - H * ye - j * be) * le, c[5] = (h * ye - x * _e + A * be) * le, c[6] = (gt * St - st * we - Lt * wt) * le, c[7] = (q * we - et * St + it * wt) * le, c[8] = (H * De - P * _e + j * ke) * le, c[9] = (g * _e - h * De - A * ke) * le, c[10] = (st * Jt - Tt * St + Lt * It) * le, c[11] = (X * St - q * Jt - it * It) * le, c[12] = (P * be - H * fe - k * ke) * le, c[13] = (h * fe - g * be + x * ke) * le, c[14] = (Tt * wt - st * Wt - gt * It) * le, c[15] = (q * Wt - X * wt + et * It) * le, c) : null;
9599
+ var h = l[0], g = l[1], x = l[2], A = l[3], H = l[4], P = l[5], k = l[6], j = l[7], q = l[8], X = l[9], et = l[10], it = l[11], st = l[12], Tt = l[13], gt = l[14], Lt = l[15], Vt = h * P - g * H, wt = h * k - x * H, St = h * j - A * H, Wt = g * k - x * P, Jt = g * j - A * P, we = x * j - A * k, ke = q * Tt - X * st, be = q * gt - et * st, _e = q * Lt - it * st, fe = X * gt - et * Tt, De = X * Lt - it * Tt, ye = et * Lt - it * gt, le = Vt * ye - wt * De + St * fe + Wt * _e - Jt * be + we * ke;
9600
+ return le ? (c[0] = (P * ye - k * De + j * fe) * (le = 1 / le), c[1] = (x * De - g * ye - A * fe) * le, c[2] = (Tt * we - gt * Jt + Lt * Wt) * le, c[3] = (et * Jt - X * we - it * Wt) * le, c[4] = (k * _e - H * ye - j * be) * le, c[5] = (h * ye - x * _e + A * be) * le, c[6] = (gt * St - st * we - Lt * wt) * le, c[7] = (q * we - et * St + it * wt) * le, c[8] = (H * De - P * _e + j * ke) * le, c[9] = (g * _e - h * De - A * ke) * le, c[10] = (st * Jt - Tt * St + Lt * Vt) * le, c[11] = (X * St - q * Jt - it * Vt) * le, c[12] = (P * be - H * fe - k * ke) * le, c[13] = (h * fe - g * be + x * ke) * le, c[14] = (Tt * wt - st * Wt - gt * Vt) * le, c[15] = (q * Wt - X * wt + et * Vt) * le, c) : null;
9601
9601
  }, s.as = MT, s.at = mT, s.au = AT, s.av = function() {
9602
9602
  const c = {}, l = Nt.$version;
9603
9603
  for (const h in Nt.$root) {
@@ -9716,13 +9716,13 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
9716
9716
  ye && (st.horizontal[be] = ye), De(), u3(St) && H && P && (st.vertical = rl(Tt, c.glyphMap, c.glyphPositions, c.imagePositions, q, fe, A, we, be, Jt, Lt, s.ah.vertical, !1, _e, et, X));
9717
9717
  }
9718
9718
  }
9719
- let It = !1;
9719
+ let Vt = !1;
9720
9720
  if (j.icon && j.icon.name) {
9721
9721
  const St = c.imageMap[j.icon.name];
9722
- St && (gt = RO(c.imagePositions[j.icon.name], h.get("icon-offset").evaluate(j, {}, c.canonical), h.get("icon-anchor").evaluate(j, {}, c.canonical)), It = !!St.sdf, c.bucket.sdfIcons === void 0 ? c.bucket.sdfIcons = It : c.bucket.sdfIcons !== It && Ft("Style sheet warning: Cannot mix SDF and non-SDF icons in one buffer"), (St.pixelRatio !== c.bucket.pixelRatio || h.get("icon-rotate").constantOr(1) !== 0) && (c.bucket.iconsNeedLinear = !0));
9722
+ St && (gt = RO(c.imagePositions[j.icon.name], h.get("icon-offset").evaluate(j, {}, c.canonical), h.get("icon-anchor").evaluate(j, {}, c.canonical)), Vt = !!St.sdf, c.bucket.sdfIcons === void 0 ? c.bucket.sdfIcons = Vt : c.bucket.sdfIcons !== Vt && Ft("Style sheet warning: Cannot mix SDF and non-SDF icons in one buffer"), (St.pixelRatio !== c.bucket.pixelRatio || h.get("icon-rotate").constantOr(1) !== 0) && (c.bucket.iconsNeedLinear = !0));
9723
9723
  }
9724
9724
  const wt = Yy(st.horizontal) || st.vertical;
9725
- c.bucket.iconsInText = !!wt && wt.iconsInText, (wt || gt) && tD(c.bucket, j, st, gt, c.imageMap, x, et, it, Lt, It, c.canonical);
9725
+ c.bucket.iconsInText = !!wt && wt.iconsInText, (wt || gt) && tD(c.bucket, j, st, gt, c.imageMap, x, et, it, Lt, Vt, c.canonical);
9726
9726
  }
9727
9727
  c.showCollisionBoxes && c.bucket.generateCollisionDebugBuffers();
9728
9728
  }, s.bn = hT, s.bo = lT, s.bp = cT, s.bq = wa, s.br = QT, s.bs = class {
@@ -9798,9 +9798,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
9798
9798
  const Ot = Ht.source || "";
9799
9799
  let bt = this.familiesBySource[Ot];
9800
9800
  bt || (bt = this.familiesBySource[Ot] = {});
9801
- const Vt = Ht.sourceLayer || "_geojsonTileLayer";
9802
- let te = bt[Vt];
9803
- te || (te = bt[Vt] = []), te.push(At);
9801
+ const Pt = Ht.sourceLayer || "_geojsonTileLayer";
9802
+ let te = bt[Pt];
9803
+ te || (te = bt[Pt] = []), te.push(At);
9804
9804
  }
9805
9805
  }
9806
9806
  }
@@ -9808,23 +9808,23 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
9808
9808
  constructor(tt) {
9809
9809
  const rt = {}, ct = [];
9810
9810
  for (const Ot in tt) {
9811
- const bt = tt[Ot], Vt = rt[Ot] = {};
9811
+ const bt = tt[Ot], Pt = rt[Ot] = {};
9812
9812
  for (const te in bt) {
9813
9813
  const Ut = bt[+te];
9814
9814
  if (!Ut || Ut.bitmap.width === 0 || Ut.bitmap.height === 0)
9815
9815
  continue;
9816
9816
  const Xt = { x: 0, y: 0, w: Ut.bitmap.width + 2, h: Ut.bitmap.height + 2 };
9817
- ct.push(Xt), Vt[te] = { rect: Xt, metrics: Ut.metrics };
9817
+ ct.push(Xt), Pt[te] = { rect: Xt, metrics: Ut.metrics };
9818
9818
  }
9819
9819
  }
9820
9820
  const { w: dt, h: At } = s.p(ct), Ht = new s.o({ width: dt || 1, height: At || 1 });
9821
9821
  for (const Ot in tt) {
9822
9822
  const bt = tt[Ot];
9823
- for (const Vt in bt) {
9824
- const te = bt[+Vt];
9823
+ for (const Pt in bt) {
9824
+ const te = bt[+Pt];
9825
9825
  if (!te || te.bitmap.width === 0 || te.bitmap.height === 0)
9826
9826
  continue;
9827
- const Ut = rt[Ot][Vt].rect;
9827
+ const Ut = rt[Ot][Pt].rect;
9828
9828
  s.o.copy(te.bitmap, Ht, { x: 0, y: 0 }, { x: Ut.x + 1, y: Ut.y + 1 }, te.bitmap);
9829
9829
  }
9830
9830
  }
@@ -9841,20 +9841,20 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
9841
9841
  this.status = "parsing", this.data = tt, this.collisionBoxArray = new s.a4();
9842
9842
  const At = new s.bj(Object.keys(tt.layers).sort()), Ht = new s.bk(this.tileID, this.promoteId);
9843
9843
  Ht.bucketLayerIDs = [];
9844
- const Ot = {}, bt = { featureIndex: Ht, iconDependencies: {}, patternDependencies: {}, glyphDependencies: {}, availableImages: ct }, Vt = rt.familiesBySource[this.source];
9845
- for (const Ue in Vt) {
9844
+ const Ot = {}, bt = { featureIndex: Ht, iconDependencies: {}, patternDependencies: {}, glyphDependencies: {}, availableImages: ct }, Pt = rt.familiesBySource[this.source];
9845
+ for (const Ue in Pt) {
9846
9846
  const $1 = tt.layers[Ue];
9847
9847
  if (!$1)
9848
9848
  continue;
9849
9849
  $1.version === 1 && s.w(`Vector tile source "${this.source}" layer "${Ue}" does not use vector tile spec v2 and therefore may have some rendering errors.`);
9850
- const T2 = At.encode(Ue), $2 = [];
9850
+ const T2 = At.encode(Ue), G2 = [];
9851
9851
  for (let D2 = 0; D2 < $1.length; D2++) {
9852
- const er = $1.feature(D2), Tr = Ht.getId(er, Ue);
9853
- $2.push({ feature: er, id: Tr, index: D2, sourceLayerIndex: T2 });
9852
+ const tr = $1.feature(D2), Tr = Ht.getId(tr, Ue);
9853
+ G2.push({ feature: tr, id: Tr, index: D2, sourceLayerIndex: T2 });
9854
9854
  }
9855
- for (const D2 of Vt[Ue]) {
9856
- const er = D2[0];
9857
- er.source !== this.source && s.w(`layer.source = ${er.source} does not equal this.source = ${this.source}`), er.minzoom && this.zoom < Math.floor(er.minzoom) || er.maxzoom && this.zoom >= er.maxzoom || er.visibility !== "none" && (f(D2, this.zoom, ct), (Ot[er.id] = er.createBucket({ index: Ht.bucketLayerIDs.length, layers: D2, zoom: this.zoom, pixelRatio: this.pixelRatio, overscaling: this.overscaling, collisionBoxArray: this.collisionBoxArray, sourceLayerIndex: T2, sourceID: this.source })).populate($2, bt, this.tileID.canonical), Ht.bucketLayerIDs.push(D2.map((Tr) => Tr.id)));
9855
+ for (const D2 of Pt[Ue]) {
9856
+ const tr = D2[0];
9857
+ tr.source !== this.source && s.w(`layer.source = ${tr.source} does not equal this.source = ${this.source}`), tr.minzoom && this.zoom < Math.floor(tr.minzoom) || tr.maxzoom && this.zoom >= tr.maxzoom || tr.visibility !== "none" && (f(D2, this.zoom, ct), (Ot[tr.id] = tr.createBucket({ index: Ht.bucketLayerIDs.length, layers: D2, zoom: this.zoom, pixelRatio: this.pixelRatio, overscaling: this.overscaling, collisionBoxArray: this.collisionBoxArray, sourceLayerIndex: T2, sourceID: this.source })).populate(G2, bt, this.tileID.canonical), Ht.bucketLayerIDs.push(D2.map((Tr) => Tr.id)));
9858
9858
  }
9859
9859
  }
9860
9860
  const te = s.aE(bt.glyphDependencies, (Ue) => Object.keys(Ue).map(Number));
@@ -9918,17 +9918,17 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
9918
9918
  return null;
9919
9919
  const Ot = Ht.rawData, bt = {};
9920
9920
  Ht.expires && (bt.expires = Ht.expires), Ht.cacheControl && (bt.cacheControl = Ht.cacheControl);
9921
- const Vt = {};
9921
+ const Pt = {};
9922
9922
  if (ct) {
9923
9923
  const Ut = ct.finish();
9924
- Ut && (Vt.resourceTiming = JSON.parse(JSON.stringify(Ut)));
9924
+ Ut && (Pt.resourceTiming = JSON.parse(JSON.stringify(Ut)));
9925
9925
  }
9926
9926
  dt.vectorTile = Ht.vectorTile;
9927
9927
  const te = dt.parse(Ht.vectorTile, this.layerIndex, this.availableImages, this.actor);
9928
- this.loaded[rt] = dt, this.fetching[rt] = { rawTileData: Ot, cacheControl: bt, resourceTiming: Vt };
9928
+ this.loaded[rt] = dt, this.fetching[rt] = { rawTileData: Ot, cacheControl: bt, resourceTiming: Pt };
9929
9929
  try {
9930
9930
  const Ut = yield te;
9931
- return s.e({ rawTileData: Ot.slice(0) }, Ut, bt, Vt);
9931
+ return s.e({ rawTileData: Ot.slice(0) }, Ut, bt, Pt);
9932
9932
  } finally {
9933
9933
  delete this.fetching[rt];
9934
9934
  }
@@ -9975,7 +9975,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
9975
9975
  }
9976
9976
  loadTile(tt) {
9977
9977
  return s._(this, void 0, void 0, function* () {
9978
- const { uid: rt, encoding: ct, rawImageData: dt, redFactor: At, greenFactor: Ht, blueFactor: Ot, baseShift: bt } = tt, Vt = dt.width + 2, te = dt.height + 2, Ut = s.b(dt) ? new s.R({ width: Vt, height: te }, yield s.bt(dt, -1, -1, Vt, te)) : dt, Xt = new s.bu(rt, Ut, ct, At, Ht, Ot, bt);
9978
+ const { uid: rt, encoding: ct, rawImageData: dt, redFactor: At, greenFactor: Ht, blueFactor: Ot, baseShift: bt } = tt, Pt = dt.width + 2, te = dt.height + 2, Ut = s.b(dt) ? new s.R({ width: Pt, height: te }, yield s.bt(dt, -1, -1, Pt, te)) : dt, Xt = new s.bu(rt, Ut, ct, At, Ht, Ot, bt);
9979
9979
  return this.loaded = this.loaded || {}, this.loaded[rt] = Xt, Xt;
9980
9980
  });
9981
9981
  }
@@ -10071,9 +10071,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
10071
10071
  function Et(Qt, tt) {
10072
10072
  var rt = Qt.feature, ct = Qt.keys, dt = Qt.values, At = Qt.keycache, Ht = Qt.valuecache;
10073
10073
  for (var Ot in rt.properties) {
10074
- var bt = rt.properties[Ot], Vt = At[Ot];
10074
+ var bt = rt.properties[Ot], Pt = At[Ot];
10075
10075
  if (bt !== null) {
10076
- Vt === void 0 && (ct.push(Ot), At[Ot] = Vt = ct.length - 1), tt.writeVarint(Vt);
10076
+ Pt === void 0 && (ct.push(Ot), At[Ot] = Pt = ct.length - 1), tt.writeVarint(Pt);
10077
10077
  var te = typeof bt;
10078
10078
  te !== "string" && te !== "boolean" && te !== "number" && (bt = JSON.stringify(bt));
10079
10079
  var Ut = te + ":" + bt, Xt = Ht[Ut];
@@ -10089,8 +10089,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
10089
10089
  }
10090
10090
  function pe(Qt, tt) {
10091
10091
  for (var rt = Qt.loadGeometry(), ct = Qt.type, dt = 0, At = 0, Ht = rt.length, Ot = 0; Ot < Ht; Ot++) {
10092
- var bt = rt[Ot], Vt = 1;
10093
- ct === 1 && (Vt = bt.length), tt.writeVarint(Ft(1, Vt));
10092
+ var bt = rt[Ot], Pt = 1;
10093
+ ct === 1 && (Pt = bt.length), tt.writeVarint(Ft(1, Pt));
10094
10094
  for (var te = ct === 3 ? bt.length - 1 : bt.length, Ut = 0; Ut < te; Ut++) {
10095
10095
  Ut === 1 && ct !== 1 && tt.writeVarint(Ft(2, te - 1));
10096
10096
  var Xt = bt[Ut].x - dt, Oe = bt[Ut].y - At;
@@ -10125,17 +10125,17 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
10125
10125
  rt && console.time(At), this.points = tt;
10126
10126
  const Ht = [];
10127
10127
  for (let bt = 0; bt < tt.length; bt++) {
10128
- const Vt = tt[bt];
10129
- if (!Vt.geometry)
10128
+ const Pt = tt[bt];
10129
+ if (!Pt.geometry)
10130
10130
  continue;
10131
- const [te, Ut] = Vt.geometry.coordinates, Xt = C2(kt(te)), Oe = C2(Zt(Ut));
10131
+ const [te, Ut] = Pt.geometry.coordinates, Xt = C2(kt(te)), Oe = C2(Zt(Ut));
10132
10132
  Ht.push(Xt, Oe, 1 / 0, bt, -1, 1), this.options.reduce && Ht.push(0);
10133
10133
  }
10134
10134
  let Ot = this.trees[dt + 1] = this._createTree(Ht);
10135
10135
  rt && console.timeEnd(At);
10136
10136
  for (let bt = dt; bt >= ct; bt--) {
10137
- const Vt = +Date.now();
10138
- Ot = this.trees[bt] = this._createTree(this._cluster(Ot, bt)), rt && console.log("z%d: %d clusters in %dms", bt, Ot.numItems, +Date.now() - Vt);
10137
+ const Pt = +Date.now();
10138
+ Ot = this.trees[bt] = this._createTree(this._cluster(Ot, bt)), rt && console.log("z%d: %d clusters in %dms", bt, Ot.numItems, +Date.now() - Pt);
10139
10139
  }
10140
10140
  return rt && console.timeEnd("total time"), this;
10141
10141
  }
@@ -10150,10 +10150,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
10150
10150
  const Ut = this.getClusters([ct, dt, 180, Ht], rt), Xt = this.getClusters([-180, dt, At, Ht], rt);
10151
10151
  return Ut.concat(Xt);
10152
10152
  }
10153
- const Ot = this.trees[this._limitZoom(rt)], bt = Ot.range(kt(ct), Zt(Ht), kt(At), Zt(dt)), Vt = Ot.data, te = [];
10153
+ const Ot = this.trees[this._limitZoom(rt)], bt = Ot.range(kt(ct), Zt(Ht), kt(At), Zt(dt)), Pt = Ot.data, te = [];
10154
10154
  for (const Ut of bt) {
10155
10155
  const Xt = this.stride * Ut;
10156
- te.push(Vt[Xt + Ie] > 1 ? Ye(Vt, Xt, this.clusterProps) : this.points[Vt[Xt + Qe]]);
10156
+ te.push(Pt[Xt + Ie] > 1 ? Ye(Pt, Xt, this.clusterProps) : this.points[Pt[Xt + Qe]]);
10157
10157
  }
10158
10158
  return te;
10159
10159
  }
@@ -10164,22 +10164,22 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
10164
10164
  const Ht = At.data;
10165
10165
  if (rt * this.stride >= Ht.length)
10166
10166
  throw new Error(dt);
10167
- const Ot = this.options.radius / (this.options.extent * Math.pow(2, ct - 1)), bt = At.within(Ht[rt * this.stride], Ht[rt * this.stride + 1], Ot), Vt = [];
10167
+ const Ot = this.options.radius / (this.options.extent * Math.pow(2, ct - 1)), bt = At.within(Ht[rt * this.stride], Ht[rt * this.stride + 1], Ot), Pt = [];
10168
10168
  for (const te of bt) {
10169
10169
  const Ut = te * this.stride;
10170
- Ht[Ut + 4] === tt && Vt.push(Ht[Ut + Ie] > 1 ? Ye(Ht, Ut, this.clusterProps) : this.points[Ht[Ut + Qe]]);
10170
+ Ht[Ut + 4] === tt && Pt.push(Ht[Ut + Ie] > 1 ? Ye(Ht, Ut, this.clusterProps) : this.points[Ht[Ut + Qe]]);
10171
10171
  }
10172
- if (Vt.length === 0)
10172
+ if (Pt.length === 0)
10173
10173
  throw new Error(dt);
10174
- return Vt;
10174
+ return Pt;
10175
10175
  }
10176
10176
  getLeaves(tt, rt, ct) {
10177
10177
  const dt = [];
10178
10178
  return this._appendLeaves(dt, tt, rt = rt || 10, ct = ct || 0, 0), dt;
10179
10179
  }
10180
10180
  getTile(tt, rt, ct) {
10181
- const dt = this.trees[this._limitZoom(tt)], At = Math.pow(2, tt), { extent: Ht, radius: Ot } = this.options, bt = Ot / Ht, Vt = (ct - bt) / At, te = (ct + 1 + bt) / At, Ut = { features: [] };
10182
- return this._addTileFeatures(dt.range((rt - bt) / At, Vt, (rt + 1 + bt) / At, te), dt.data, rt, ct, At, Ut), rt === 0 && this._addTileFeatures(dt.range(1 - bt / At, Vt, 1, te), dt.data, At, ct, At, Ut), rt === At - 1 && this._addTileFeatures(dt.range(0, Vt, bt / At, te), dt.data, -1, ct, At, Ut), Ut.features.length ? Ut : null;
10181
+ const dt = this.trees[this._limitZoom(tt)], At = Math.pow(2, tt), { extent: Ht, radius: Ot } = this.options, bt = Ot / Ht, Pt = (ct - bt) / At, te = (ct + 1 + bt) / At, Ut = { features: [] };
10182
+ return this._addTileFeatures(dt.range((rt - bt) / At, Pt, (rt + 1 + bt) / At, te), dt.data, rt, ct, At, Ut), rt === 0 && this._addTileFeatures(dt.range(1 - bt / At, Pt, 1, te), dt.data, At, ct, At, Ut), rt === At - 1 && this._addTileFeatures(dt.range(0, Pt, bt / At, te), dt.data, -1, ct, At, Ut), Ut.features.length ? Ut : null;
10183
10183
  }
10184
10184
  getClusterExpansionZoom(tt) {
10185
10185
  let rt = this._getOriginZoom(tt) - 1;
@@ -10208,9 +10208,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
10208
10208
  }
10209
10209
  _addTileFeatures(tt, rt, ct, dt, At, Ht) {
10210
10210
  for (const Ot of tt) {
10211
- const bt = Ot * this.stride, Vt = rt[bt + Ie] > 1;
10211
+ const bt = Ot * this.stride, Pt = rt[bt + Ie] > 1;
10212
10212
  let te, Ut, Xt;
10213
- if (Vt)
10213
+ if (Pt)
10214
10214
  te = Be(rt, bt, this.clusterProps), Ut = rt[bt], Xt = rt[bt + 1];
10215
10215
  else {
10216
10216
  const ze = this.points[rt[bt + Qe]];
@@ -10220,14 +10220,14 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
10220
10220
  }
10221
10221
  const Oe = { type: 1, geometry: [[Math.round(this.options.extent * (Ut * At - ct)), Math.round(this.options.extent * (Xt * At - dt))]], tags: te };
10222
10222
  let Je;
10223
- Je = Vt || this.options.generateId ? rt[bt + Qe] : this.points[rt[bt + Qe]].id, Je !== void 0 && (Oe.id = Je), Ht.features.push(Oe);
10223
+ Je = Pt || this.options.generateId ? rt[bt + Qe] : this.points[rt[bt + Qe]].id, Je !== void 0 && (Oe.id = Je), Ht.features.push(Oe);
10224
10224
  }
10225
10225
  }
10226
10226
  _limitZoom(tt) {
10227
10227
  return Math.max(this.options.minZoom, Math.min(Math.floor(+tt), this.options.maxZoom + 1));
10228
10228
  }
10229
10229
  _cluster(tt, rt) {
10230
- const { radius: ct, extent: dt, reduce: At, minPoints: Ht } = this.options, Ot = ct / (dt * Math.pow(2, rt)), bt = tt.data, Vt = [], te = this.stride;
10230
+ const { radius: ct, extent: dt, reduce: At, minPoints: Ht } = this.options, Ot = ct / (dt * Math.pow(2, rt)), bt = tt.data, Pt = [], te = this.stride;
10231
10231
  for (let Ut = 0; Ut < bt.length; Ut += te) {
10232
10232
  if (bt[Ut + 2] <= rt)
10233
10233
  continue;
@@ -10246,25 +10246,25 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
10246
10246
  if (bt[T2 + 2] <= rt)
10247
10247
  continue;
10248
10248
  bt[T2 + 2] = rt;
10249
- const $2 = bt[T2 + Ie];
10250
- z1 += bt[T2] * $2, G1 += bt[T2 + 1] * $2, bt[T2 + 4] = Ue, At && (e1 || (e1 = this._map(bt, Ut, !0), h2 = this.clusterProps.length, this.clusterProps.push(e1)), At(e1, this._map(bt, T2)));
10249
+ const G2 = bt[T2 + Ie];
10250
+ z1 += bt[T2] * G2, G1 += bt[T2 + 1] * G2, bt[T2 + 4] = Ue, At && (e1 || (e1 = this._map(bt, Ut, !0), h2 = this.clusterProps.length, this.clusterProps.push(e1)), At(e1, this._map(bt, T2)));
10251
10251
  }
10252
- bt[Ut + 4] = Ue, Vt.push(z1 / w1, G1 / w1, 1 / 0, Ue, -1, w1), At && Vt.push(h2);
10252
+ bt[Ut + 4] = Ue, Pt.push(z1 / w1, G1 / w1, 1 / 0, Ue, -1, w1), At && Pt.push(h2);
10253
10253
  } else {
10254
10254
  for (let e1 = 0; e1 < te; e1++)
10255
- Vt.push(bt[Ut + e1]);
10255
+ Pt.push(bt[Ut + e1]);
10256
10256
  if (w1 > 1)
10257
10257
  for (const e1 of Je) {
10258
10258
  const z1 = e1 * te;
10259
10259
  if (!(bt[z1 + 2] <= rt)) {
10260
10260
  bt[z1 + 2] = rt;
10261
10261
  for (let G1 = 0; G1 < te; G1++)
10262
- Vt.push(bt[z1 + G1]);
10262
+ Pt.push(bt[z1 + G1]);
10263
10263
  }
10264
10264
  }
10265
10265
  }
10266
10266
  }
10267
- return Vt;
10267
+ return Pt;
10268
10268
  }
10269
10269
  _getOriginId(tt) {
10270
10270
  return tt - this.points.length >> 5;
@@ -10301,8 +10301,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
10301
10301
  return 360 * Math.atan(Math.exp(tt)) / Math.PI - 90;
10302
10302
  }
10303
10303
  function ne(Qt, tt, rt, ct) {
10304
- for (var dt, At = ct, Ht = rt - tt >> 1, Ot = rt - tt, bt = Qt[tt], Vt = Qt[tt + 1], te = Qt[rt], Ut = Qt[rt + 1], Xt = tt + 3; Xt < rt; Xt += 3) {
10305
- var Oe = Ce(Qt[Xt], Qt[Xt + 1], bt, Vt, te, Ut);
10304
+ for (var dt, At = ct, Ht = rt - tt >> 1, Ot = rt - tt, bt = Qt[tt], Pt = Qt[tt + 1], te = Qt[rt], Ut = Qt[rt + 1], Xt = tt + 3; Xt < rt; Xt += 3) {
10305
+ var Oe = Ce(Qt[Xt], Qt[Xt + 1], bt, Pt, te, Ut);
10306
10306
  if (Oe > At)
10307
10307
  dt = Xt, At = Oe;
10308
10308
  else if (Oe === At) {
@@ -10331,8 +10331,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
10331
10331
  Se(At, Ht[bt]);
10332
10332
  else if (Ot === "MultiPolygon")
10333
10333
  for (bt = 0; bt < Ht.length; bt++)
10334
- for (var Vt = 0; Vt < Ht[bt].length; Vt++)
10335
- Se(At, Ht[bt][Vt]);
10334
+ for (var Pt = 0; Pt < Ht[bt].length; Pt++)
10335
+ Se(At, Ht[bt][Pt]);
10336
10336
  }(dt), dt;
10337
10337
  }
10338
10338
  function Se(Qt, tt) {
@@ -10345,14 +10345,14 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
10345
10345
  if (rt.promoteId ? bt = tt.properties[rt.promoteId] : rt.generateId && (bt = ct || 0), At === "Point")
10346
10346
  Me(dt, Ot);
10347
10347
  else if (At === "MultiPoint")
10348
- for (var Vt = 0; Vt < dt.length; Vt++)
10349
- Me(dt[Vt], Ot);
10348
+ for (var Pt = 0; Pt < dt.length; Pt++)
10349
+ Me(dt[Pt], Ot);
10350
10350
  else if (At === "LineString")
10351
10351
  Ve(dt, Ot, Ht, !1);
10352
10352
  else if (At === "MultiLineString") {
10353
10353
  if (rt.lineMetrics) {
10354
- for (Vt = 0; Vt < dt.length; Vt++)
10355
- Ve(dt[Vt], Ot = [], Ht, !1), Qt.push(Xe(bt, "LineString", Ot, tt.properties));
10354
+ for (Pt = 0; Pt < dt.length; Pt++)
10355
+ Ve(dt[Pt], Ot = [], Ht, !1), Qt.push(Xe(bt, "LineString", Ot, tt.properties));
10356
10356
  return;
10357
10357
  }
10358
10358
  Nt(dt, Ot, Ht, !1);
@@ -10361,15 +10361,15 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
10361
10361
  else {
10362
10362
  if (At !== "MultiPolygon") {
10363
10363
  if (At === "GeometryCollection") {
10364
- for (Vt = 0; Vt < tt.geometry.geometries.length; Vt++)
10365
- He(Qt, { id: bt, geometry: tt.geometry.geometries[Vt], properties: tt.properties }, rt, ct);
10364
+ for (Pt = 0; Pt < tt.geometry.geometries.length; Pt++)
10365
+ He(Qt, { id: bt, geometry: tt.geometry.geometries[Pt], properties: tt.properties }, rt, ct);
10366
10366
  return;
10367
10367
  }
10368
10368
  throw new Error("Input data is not a valid GeoJSON object.");
10369
10369
  }
10370
- for (Vt = 0; Vt < dt.length; Vt++) {
10370
+ for (Pt = 0; Pt < dt.length; Pt++) {
10371
10371
  var te = [];
10372
- Nt(dt[Vt], te, Ht, !0), Ot.push(te);
10372
+ Nt(dt[Pt], te, Ht, !0), Ot.push(te);
10373
10373
  }
10374
10374
  }
10375
10375
  Qt.push(Xe(bt, At, Ot, tt.properties));
@@ -10380,8 +10380,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
10380
10380
  }
10381
10381
  function Ve(Qt, tt, rt, ct) {
10382
10382
  for (var dt, At, Ht = 0, Ot = 0; Ot < Qt.length; Ot++) {
10383
- var bt = N1(Qt[Ot][0]), Vt = sr(Qt[Ot][1]);
10384
- tt.push(bt), tt.push(Vt), tt.push(0), Ot > 0 && (Ht += ct ? (dt * Vt - bt * At) / 2 : Math.sqrt(Math.pow(bt - dt, 2) + Math.pow(Vt - At, 2))), dt = bt, At = Vt;
10383
+ var bt = N1(Qt[Ot][0]), Pt = sr(Qt[Ot][1]);
10384
+ tt.push(bt), tt.push(Pt), tt.push(0), Ot > 0 && (Ht += ct ? (dt * Pt - bt * At) / 2 : Math.sqrt(Math.pow(bt - dt, 2) + Math.pow(Pt - At, 2))), dt = bt, At = Pt;
10385
10385
  }
10386
10386
  var te = tt.length - 3;
10387
10387
  tt[2] = 1, ne(tt, 0, te, rt), tt[te + 2] = 1, tt.size = Math.abs(Ht), tt.start = 0, tt.end = tt.size;
@@ -10404,8 +10404,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
10404
10404
  return Qt;
10405
10405
  if (Ht < rt || At >= ct)
10406
10406
  return null;
10407
- for (var bt = [], Vt = 0; Vt < Qt.length; Vt++) {
10408
- var te = Qt[Vt], Ut = te.geometry, Xt = te.type, Oe = dt === 0 ? te.minX : te.minY, Je = dt === 0 ? te.maxX : te.maxY;
10407
+ for (var bt = [], Pt = 0; Pt < Qt.length; Pt++) {
10408
+ var te = Qt[Pt], Ut = te.geometry, Xt = te.type, Oe = dt === 0 ? te.minX : te.minY, Je = dt === 0 ? te.maxX : te.maxY;
10409
10409
  if (Oe >= rt && Je < ct)
10410
10410
  bt.push(te);
10411
10411
  else if (!(Je < rt || Oe >= ct)) {
@@ -10442,12 +10442,12 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
10442
10442
  }
10443
10443
  }
10444
10444
  function kr(Qt, tt, rt, ct, dt, At, Ht) {
10445
- for (var Ot, bt, Vt = si(Qt), te = dt === 0 ? Sr : Mn, Ut = Qt.start, Xt = 0; Xt < Qt.length - 3; Xt += 3) {
10445
+ for (var Ot, bt, Pt = si(Qt), te = dt === 0 ? Sr : Mn, Ut = Qt.start, Xt = 0; Xt < Qt.length - 3; Xt += 3) {
10446
10446
  var Oe = Qt[Xt], Je = Qt[Xt + 1], ze = Qt[Xt + 2], w1 = Qt[Xt + 3], e1 = Qt[Xt + 4], z1 = dt === 0 ? Oe : Je, G1 = dt === 0 ? w1 : e1, h2 = !1;
10447
- Ht && (Ot = Math.sqrt(Math.pow(Oe - w1, 2) + Math.pow(Je - e1, 2))), z1 < rt ? G1 > rt && (bt = te(Vt, Oe, Je, w1, e1, rt), Ht && (Vt.start = Ut + Ot * bt)) : z1 > ct ? G1 < ct && (bt = te(Vt, Oe, Je, w1, e1, ct), Ht && (Vt.start = Ut + Ot * bt)) : li(Vt, Oe, Je, ze), G1 < rt && z1 >= rt && (bt = te(Vt, Oe, Je, w1, e1, rt), h2 = !0), G1 > ct && z1 <= ct && (bt = te(Vt, Oe, Je, w1, e1, ct), h2 = !0), !At && h2 && (Ht && (Vt.end = Ut + Ot * bt), tt.push(Vt), Vt = si(Qt)), Ht && (Ut += Ot);
10447
+ Ht && (Ot = Math.sqrt(Math.pow(Oe - w1, 2) + Math.pow(Je - e1, 2))), z1 < rt ? G1 > rt && (bt = te(Pt, Oe, Je, w1, e1, rt), Ht && (Pt.start = Ut + Ot * bt)) : z1 > ct ? G1 < ct && (bt = te(Pt, Oe, Je, w1, e1, ct), Ht && (Pt.start = Ut + Ot * bt)) : li(Pt, Oe, Je, ze), G1 < rt && z1 >= rt && (bt = te(Pt, Oe, Je, w1, e1, rt), h2 = !0), G1 > ct && z1 <= ct && (bt = te(Pt, Oe, Je, w1, e1, ct), h2 = !0), !At && h2 && (Ht && (Pt.end = Ut + Ot * bt), tt.push(Pt), Pt = si(Qt)), Ht && (Ut += Ot);
10448
10448
  }
10449
10449
  var Ue = Qt.length - 3;
10450
- Oe = Qt[Ue], Je = Qt[Ue + 1], ze = Qt[Ue + 2], (z1 = dt === 0 ? Oe : Je) >= rt && z1 <= ct && li(Vt, Oe, Je, ze), Ue = Vt.length - 3, At && Ue >= 3 && (Vt[Ue] !== Vt[0] || Vt[Ue + 1] !== Vt[1]) && li(Vt, Vt[0], Vt[1], Vt[2]), Vt.length && tt.push(Vt);
10450
+ Oe = Qt[Ue], Je = Qt[Ue + 1], ze = Qt[Ue + 2], (z1 = dt === 0 ? Oe : Je) >= rt && z1 <= ct && li(Pt, Oe, Je, ze), Ue = Pt.length - 3, At && Ue >= 3 && (Pt[Ue] !== Pt[0] || Pt[Ue + 1] !== Pt[1]) && li(Pt, Pt[0], Pt[1], Pt[2]), Pt.length && tt.push(Pt);
10451
10451
  }
10452
10452
  function si(Qt) {
10453
10453
  var tt = [];
@@ -10479,8 +10479,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
10479
10479
  dt.push(ce(At.geometry[Ot], tt));
10480
10480
  } else if (Ht === "MultiPolygon")
10481
10481
  for (dt = [], Ot = 0; Ot < At.geometry.length; Ot++) {
10482
- for (var bt = [], Vt = 0; Vt < At.geometry[Ot].length; Vt++)
10483
- bt.push(ce(At.geometry[Ot][Vt], tt));
10482
+ for (var bt = [], Pt = 0; Pt < At.geometry[Ot].length; Pt++)
10483
+ bt.push(ce(At.geometry[Ot][Pt], tt));
10484
10484
  dt.push(bt);
10485
10485
  }
10486
10486
  rt.push(Xe(At.id, Ht, dt, At.tags));
@@ -10494,20 +10494,20 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
10494
10494
  rt.push(Qt[ct] + tt, Qt[ct + 1], Qt[ct + 2]);
10495
10495
  return rt;
10496
10496
  }
10497
- function G2(Qt, tt) {
10497
+ function U2(Qt, tt) {
10498
10498
  if (Qt.transformed)
10499
10499
  return Qt;
10500
10500
  var rt, ct, dt, At = 1 << Qt.z, Ht = Qt.x, Ot = Qt.y;
10501
10501
  for (rt = 0; rt < Qt.features.length; rt++) {
10502
- var bt = Qt.features[rt], Vt = bt.geometry, te = bt.type;
10502
+ var bt = Qt.features[rt], Pt = bt.geometry, te = bt.type;
10503
10503
  if (bt.geometry = [], te === 1)
10504
- for (ct = 0; ct < Vt.length; ct += 2)
10505
- bt.geometry.push(O2(Vt[ct], Vt[ct + 1], tt, At, Ht, Ot));
10504
+ for (ct = 0; ct < Pt.length; ct += 2)
10505
+ bt.geometry.push(O2(Pt[ct], Pt[ct + 1], tt, At, Ht, Ot));
10506
10506
  else
10507
- for (ct = 0; ct < Vt.length; ct++) {
10507
+ for (ct = 0; ct < Pt.length; ct++) {
10508
10508
  var Ut = [];
10509
- for (dt = 0; dt < Vt[ct].length; dt += 2)
10510
- Ut.push(O2(Vt[ct][dt], Vt[ct][dt + 1], tt, At, Ht, Ot));
10509
+ for (dt = 0; dt < Pt[ct].length; dt += 2)
10510
+ Ut.push(O2(Pt[ct][dt], Pt[ct][dt + 1], tt, At, Ht, Ot));
10511
10511
  bt.geometry.push(Ut);
10512
10512
  }
10513
10513
  }
@@ -10519,8 +10519,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
10519
10519
  function sn(Qt, tt, rt, ct, dt) {
10520
10520
  for (var At = tt === dt.maxZoom ? 0 : dt.tolerance / ((1 << tt) * dt.extent), Ht = { features: [], numPoints: 0, numSimplified: 0, numFeatures: 0, source: null, x: rt, y: ct, z: tt, transformed: !1, minX: 2, minY: 1, maxX: -1, maxY: 0 }, Ot = 0; Ot < Qt.length; Ot++) {
10521
10521
  Ht.numFeatures++, ln(Ht, Qt[Ot], At, dt);
10522
- var bt = Qt[Ot].minX, Vt = Qt[Ot].minY, te = Qt[Ot].maxX, Ut = Qt[Ot].maxY;
10523
- bt < Ht.minX && (Ht.minX = bt), Vt < Ht.minY && (Ht.minY = Vt), te > Ht.maxX && (Ht.maxX = te), Ut > Ht.maxY && (Ht.maxY = Ut);
10522
+ var bt = Qt[Ot].minX, Pt = Qt[Ot].minY, te = Qt[Ot].maxX, Ut = Qt[Ot].maxY;
10523
+ bt < Ht.minX && (Ht.minX = bt), Pt < Ht.minY && (Ht.minY = Pt), te > Ht.maxX && (Ht.maxX = te), Ut > Ht.maxY && (Ht.maxY = Ut);
10524
10524
  }
10525
10525
  return Ht;
10526
10526
  }
@@ -10536,9 +10536,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
10536
10536
  he(Ht, dt[Ot], Qt, rt, At === "Polygon", Ot === 0);
10537
10537
  else if (At === "MultiPolygon")
10538
10538
  for (var bt = 0; bt < dt.length; bt++) {
10539
- var Vt = dt[bt];
10540
- for (Ot = 0; Ot < Vt.length; Ot++)
10541
- he(Ht, Vt[Ot], Qt, rt, !0, Ot === 0);
10539
+ var Pt = dt[bt];
10540
+ for (Ot = 0; Ot < Pt.length; Ot++)
10541
+ he(Ht, Pt[Ot], Qt, rt, !0, Ot === 0);
10542
10542
  }
10543
10543
  if (Ht.length) {
10544
10544
  var te = tt.tags || null;
@@ -10558,13 +10558,13 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
10558
10558
  else {
10559
10559
  for (var Ot = [], bt = 0; bt < tt.length; bt += 3)
10560
10560
  (ct === 0 || tt[bt + 2] > Ht) && (rt.numSimplified++, Ot.push(tt[bt]), Ot.push(tt[bt + 1])), rt.numPoints++;
10561
- dt && function(Vt, te) {
10562
- for (var Ut = 0, Xt = 0, Oe = Vt.length, Je = Oe - 2; Xt < Oe; Je = Xt, Xt += 2)
10563
- Ut += (Vt[Xt] - Vt[Je]) * (Vt[Xt + 1] + Vt[Je + 1]);
10561
+ dt && function(Pt, te) {
10562
+ for (var Ut = 0, Xt = 0, Oe = Pt.length, Je = Oe - 2; Xt < Oe; Je = Xt, Xt += 2)
10563
+ Ut += (Pt[Xt] - Pt[Je]) * (Pt[Xt + 1] + Pt[Je + 1]);
10564
10564
  if (Ut > 0 === te)
10565
- for (Xt = 0, Oe = Vt.length; Xt < Oe / 2; Xt += 2) {
10566
- var ze = Vt[Xt], w1 = Vt[Xt + 1];
10567
- Vt[Xt] = Vt[Oe - 2 - Xt], Vt[Xt + 1] = Vt[Oe - 1 - Xt], Vt[Oe - 2 - Xt] = ze, Vt[Oe - 1 - Xt] = w1;
10565
+ for (Xt = 0, Oe = Pt.length; Xt < Oe / 2; Xt += 2) {
10566
+ var ze = Pt[Xt], w1 = Pt[Xt + 1];
10567
+ Pt[Xt] = Pt[Oe - 2 - Xt], Pt[Xt + 1] = Pt[Oe - 1 - Xt], Pt[Oe - 2 - Xt] = ze, Pt[Oe - 1 - Xt] = w1;
10568
10568
  }
10569
10569
  }(Ot, At), Qt.push(Ot);
10570
10570
  }
@@ -10589,25 +10589,25 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
10589
10589
  return Ht;
10590
10590
  }(Qt, tt);
10591
10591
  this.tiles = {}, this.tileCoords = [], rt && (console.timeEnd("preprocess data"), console.log("index: maxZoom: %d, maxPoints: %d", tt.indexMaxZoom, tt.indexMaxPoints), console.time("generate tiles"), this.stats = {}, this.total = 0), ct = function(dt, At) {
10592
- var Ht = At.buffer / At.extent, Ot = dt, bt = r1(dt, 1, -1 - Ht, Ht, 0, -1, 2, At), Vt = r1(dt, 1, 1 - Ht, 2 + Ht, 0, -1, 2, At);
10593
- return (bt || Vt) && (Ot = r1(dt, 1, -Ht, 1 + Ht, 0, -1, 2, At) || [], bt && (Ot = An(bt, 1).concat(Ot)), Vt && (Ot = Ot.concat(An(Vt, -1)))), Ot;
10592
+ var Ht = At.buffer / At.extent, Ot = dt, bt = r1(dt, 1, -1 - Ht, Ht, 0, -1, 2, At), Pt = r1(dt, 1, 1 - Ht, 2 + Ht, 0, -1, 2, At);
10593
+ return (bt || Pt) && (Ot = r1(dt, 1, -Ht, 1 + Ht, 0, -1, 2, At) || [], bt && (Ot = An(bt, 1).concat(Ot)), Pt && (Ot = Ot.concat(An(Pt, -1)))), Ot;
10594
10594
  }(ct, tt), ct.length && this.splitTile(ct, 0, 0, 0), rt && (ct.length && console.log("features: %d, points: %d", this.tiles[0].numFeatures, this.tiles[0].numPoints), console.timeEnd("generate tiles"), console.log("tiles generated:", this.total, JSON.stringify(this.stats)));
10595
10595
  }
10596
10596
  function n1(Qt, tt, rt) {
10597
10597
  return 32 * ((1 << Qt) * rt + tt) + Qt;
10598
10598
  }
10599
- function J2(Qt, tt) {
10599
+ function Y2(Qt, tt) {
10600
10600
  return tt ? Qt.properties[tt] : Qt.id;
10601
10601
  }
10602
- function tr(Qt, tt) {
10602
+ function J2(Qt, tt) {
10603
10603
  if (Qt == null)
10604
10604
  return !0;
10605
10605
  if (Qt.type === "Feature")
10606
- return J2(Qt, tt) != null;
10606
+ return Y2(Qt, tt) != null;
10607
10607
  if (Qt.type === "FeatureCollection") {
10608
10608
  const rt = /* @__PURE__ */ new Set();
10609
10609
  for (const ct of Qt.features) {
10610
- const dt = J2(ct, tt);
10610
+ const dt = Y2(ct, tt);
10611
10611
  if (dt == null || rt.has(dt))
10612
10612
  return !1;
10613
10613
  rt.add(dt);
@@ -10620,18 +10620,18 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
10620
10620
  const rt = /* @__PURE__ */ new Map();
10621
10621
  if (Qt != null)
10622
10622
  if (Qt.type === "Feature")
10623
- rt.set(J2(Qt, tt), Qt);
10623
+ rt.set(Y2(Qt, tt), Qt);
10624
10624
  else
10625
10625
  for (const ct of Qt.features)
10626
- rt.set(J2(ct, tt), ct);
10626
+ rt.set(Y2(ct, tt), ct);
10627
10627
  return rt;
10628
10628
  }
10629
10629
  Q1.prototype.options = { maxZoom: 14, indexMaxZoom: 5, indexMaxPoints: 1e5, tolerance: 3, extent: 4096, buffer: 64, lineMetrics: !1, promoteId: null, generateId: !1, debug: 0 }, Q1.prototype.splitTile = function(Qt, tt, rt, ct, dt, At, Ht) {
10630
- for (var Ot = [Qt, tt, rt, ct], bt = this.options, Vt = bt.debug; Ot.length; ) {
10630
+ for (var Ot = [Qt, tt, rt, ct], bt = this.options, Pt = bt.debug; Ot.length; ) {
10631
10631
  ct = Ot.pop(), rt = Ot.pop(), tt = Ot.pop(), Qt = Ot.pop();
10632
10632
  var te = 1 << tt, Ut = n1(tt, rt, ct), Xt = this.tiles[Ut];
10633
- if (!Xt && (Vt > 1 && console.time("creation"), Xt = this.tiles[Ut] = sn(Qt, tt, rt, ct, bt), this.tileCoords.push({ z: tt, x: rt, y: ct }), Vt)) {
10634
- Vt > 1 && (console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)", tt, rt, ct, Xt.numFeatures, Xt.numPoints, Xt.numSimplified), console.timeEnd("creation"));
10633
+ if (!Xt && (Pt > 1 && console.time("creation"), Xt = this.tiles[Ut] = sn(Qt, tt, rt, ct, bt), this.tileCoords.push({ z: tt, x: rt, y: ct }), Pt)) {
10634
+ Pt > 1 && (console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)", tt, rt, ct, Xt.numFeatures, Xt.numPoints, Xt.numSimplified), console.timeEnd("creation"));
10635
10635
  var Oe = "z" + tt;
10636
10636
  this.stats[Oe] = (this.stats[Oe] || 0) + 1, this.total++;
10637
10637
  }
@@ -10644,9 +10644,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
10644
10644
  } else if (tt === bt.indexMaxZoom || Xt.numPoints <= bt.indexMaxPoints)
10645
10645
  continue;
10646
10646
  if (Xt.source = null, Qt.length !== 0) {
10647
- Vt > 1 && console.time("clipping");
10648
- var ze, w1, e1, z1, G1, h2, Ue = 0.5 * bt.buffer / bt.extent, $1 = 0.5 - Ue, T2 = 0.5 + Ue, $2 = 1 + Ue;
10649
- ze = w1 = e1 = z1 = null, G1 = r1(Qt, te, rt - Ue, rt + T2, 0, Xt.minX, Xt.maxX, bt), h2 = r1(Qt, te, rt + $1, rt + $2, 0, Xt.minX, Xt.maxX, bt), Qt = null, G1 && (ze = r1(G1, te, ct - Ue, ct + T2, 1, Xt.minY, Xt.maxY, bt), w1 = r1(G1, te, ct + $1, ct + $2, 1, Xt.minY, Xt.maxY, bt), G1 = null), h2 && (e1 = r1(h2, te, ct - Ue, ct + T2, 1, Xt.minY, Xt.maxY, bt), z1 = r1(h2, te, ct + $1, ct + $2, 1, Xt.minY, Xt.maxY, bt), h2 = null), Vt > 1 && console.timeEnd("clipping"), Ot.push(ze || [], tt + 1, 2 * rt, 2 * ct), Ot.push(w1 || [], tt + 1, 2 * rt, 2 * ct + 1), Ot.push(e1 || [], tt + 1, 2 * rt + 1, 2 * ct), Ot.push(z1 || [], tt + 1, 2 * rt + 1, 2 * ct + 1);
10647
+ Pt > 1 && console.time("clipping");
10648
+ var ze, w1, e1, z1, G1, h2, Ue = 0.5 * bt.buffer / bt.extent, $1 = 0.5 - Ue, T2 = 0.5 + Ue, G2 = 1 + Ue;
10649
+ ze = w1 = e1 = z1 = null, G1 = r1(Qt, te, rt - Ue, rt + T2, 0, Xt.minX, Xt.maxX, bt), h2 = r1(Qt, te, rt + $1, rt + G2, 0, Xt.minX, Xt.maxX, bt), Qt = null, G1 && (ze = r1(G1, te, ct - Ue, ct + T2, 1, Xt.minY, Xt.maxY, bt), w1 = r1(G1, te, ct + $1, ct + G2, 1, Xt.minY, Xt.maxY, bt), G1 = null), h2 && (e1 = r1(h2, te, ct - Ue, ct + T2, 1, Xt.minY, Xt.maxY, bt), z1 = r1(h2, te, ct + $1, ct + G2, 1, Xt.minY, Xt.maxY, bt), h2 = null), Pt > 1 && console.timeEnd("clipping"), Ot.push(ze || [], tt + 1, 2 * rt, 2 * ct), Ot.push(w1 || [], tt + 1, 2 * rt, 2 * ct + 1), Ot.push(e1 || [], tt + 1, 2 * rt + 1, 2 * ct), Ot.push(z1 || [], tt + 1, 2 * rt + 1, 2 * ct + 1);
10650
10650
  }
10651
10651
  }
10652
10652
  }, Q1.prototype.getTile = function(Qt, tt, rt) {
@@ -10655,11 +10655,11 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
10655
10655
  return null;
10656
10656
  var Ht = 1 << Qt, Ot = n1(Qt, tt = (tt % Ht + Ht) % Ht, rt);
10657
10657
  if (this.tiles[Ot])
10658
- return G2(this.tiles[Ot], dt);
10658
+ return U2(this.tiles[Ot], dt);
10659
10659
  At > 1 && console.log("drilling down to z%d-%d-%d", Qt, tt, rt);
10660
- for (var bt, Vt = Qt, te = tt, Ut = rt; !bt && Vt > 0; )
10661
- Vt--, te = Math.floor(te / 2), Ut = Math.floor(Ut / 2), bt = this.tiles[n1(Vt, te, Ut)];
10662
- return bt && bt.source ? (At > 1 && console.log("found parent tile z%d-%d-%d", Vt, te, Ut), At > 1 && console.time("drilling down"), this.splitTile(bt.source, Vt, te, Ut, Qt, tt, rt), At > 1 && console.timeEnd("drilling down"), this.tiles[Ot] ? G2(this.tiles[Ot], dt) : null) : null;
10660
+ for (var bt, Pt = Qt, te = tt, Ut = rt; !bt && Pt > 0; )
10661
+ Pt--, te = Math.floor(te / 2), Ut = Math.floor(Ut / 2), bt = this.tiles[n1(Pt, te, Ut)];
10662
+ return bt && bt.source ? (At > 1 && console.log("found parent tile z%d-%d-%d", Pt, te, Ut), At > 1 && console.time("drilling down"), this.splitTile(bt.source, Pt, te, Ut, Qt, tt, rt), At > 1 && console.timeEnd("drilling down"), this.tiles[Ot] ? U2(this.tiles[Ot], dt) : null) : null;
10663
10663
  };
10664
10664
  class Hn extends p {
10665
10665
  constructor() {
@@ -10685,23 +10685,23 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
10685
10685
  loadGeometry() {
10686
10686
  if (this._feature.type === 1) {
10687
10687
  const bt = [];
10688
- for (const Vt of this._feature.geometry)
10689
- bt.push([new s.P(Vt[0], Vt[1])]);
10688
+ for (const Pt of this._feature.geometry)
10689
+ bt.push([new s.P(Pt[0], Pt[1])]);
10690
10690
  return bt;
10691
10691
  }
10692
10692
  {
10693
10693
  const bt = [];
10694
- for (const Vt of this._feature.geometry) {
10694
+ for (const Pt of this._feature.geometry) {
10695
10695
  const te = [];
10696
- for (const Ut of Vt)
10696
+ for (const Ut of Pt)
10697
10697
  te.push(new s.P(Ut[0], Ut[1]));
10698
10698
  bt.push(te);
10699
10699
  }
10700
10700
  return bt;
10701
10701
  }
10702
10702
  }
10703
- toGeoJSON(bt, Vt, te) {
10704
- return S.call(this, bt, Vt, te);
10703
+ toGeoJSON(bt, Pt, te) {
10704
+ return S.call(this, bt, Pt, te);
10705
10705
  }
10706
10706
  }(this._features[Ot]);
10707
10707
  }
@@ -10729,10 +10729,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
10729
10729
  this._geoJSONIndex = tt.cluster ? new Ne(function({ superclusterOptions: Ht, clusterProperties: Ot }) {
10730
10730
  if (!Ot || !Ht)
10731
10731
  return Ht;
10732
- const bt = {}, Vt = {}, te = { accumulated: null, zoom: 0 }, Ut = { properties: null }, Xt = Object.keys(Ot);
10732
+ const bt = {}, Pt = {}, te = { accumulated: null, zoom: 0 }, Ut = { properties: null }, Xt = Object.keys(Ot);
10733
10733
  for (const Oe of Xt) {
10734
10734
  const [Je, ze] = Ot[Oe], w1 = s.by(ze), e1 = s.by(typeof Je == "string" ? [Je, ["accumulated"], ["get", Oe]] : Je);
10735
- bt[Oe] = w1.value, Vt[Oe] = e1.value;
10735
+ bt[Oe] = w1.value, Pt[Oe] = e1.value;
10736
10736
  }
10737
10737
  return Ht.map = (Oe) => {
10738
10738
  Ut.properties = Oe;
@@ -10743,7 +10743,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
10743
10743
  }, Ht.reduce = (Oe, Je) => {
10744
10744
  Ut.properties = Je;
10745
10745
  for (const ze of Xt)
10746
- te.accumulated = Oe[ze], Oe[ze] = Vt[ze].evaluate(te, Ut);
10746
+ te.accumulated = Oe[ze], Oe[ze] = Pt[ze].evaluate(te, Ut);
10747
10747
  }, Ht;
10748
10748
  }(tt)).load(dt.features) : function(Ht, Ot) {
10749
10749
  return new Q1(Ht, Ot);
@@ -10770,12 +10770,12 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
10770
10770
  const { promoteId: ct } = tt;
10771
10771
  if (tt.request) {
10772
10772
  const dt = yield s.h(tt.request, rt);
10773
- return this._dataUpdateable = tr(dt.data, ct) ? s1(dt.data, ct) : void 0, dt.data;
10773
+ return this._dataUpdateable = J2(dt.data, ct) ? s1(dt.data, ct) : void 0, dt.data;
10774
10774
  }
10775
10775
  if (typeof tt.data == "string")
10776
10776
  try {
10777
10777
  const dt = JSON.parse(tt.data);
10778
- return this._dataUpdateable = tr(dt, ct) ? s1(dt, ct) : void 0, dt;
10778
+ return this._dataUpdateable = J2(dt, ct) ? s1(dt, ct) : void 0, dt;
10779
10779
  } catch {
10780
10780
  throw new Error(`Input data given to '${tt.source}' is not a valid GeoJSON object.`);
10781
10781
  }
@@ -10784,13 +10784,13 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
10784
10784
  if (!this._dataUpdateable)
10785
10785
  throw new Error(`Cannot update existing geojson data in ${tt.source}`);
10786
10786
  return function(dt, At, Ht) {
10787
- var Ot, bt, Vt, te;
10787
+ var Ot, bt, Pt, te;
10788
10788
  if (At.removeAll && dt.clear(), At.remove)
10789
10789
  for (const Ut of At.remove)
10790
10790
  dt.delete(Ut);
10791
10791
  if (At.add)
10792
10792
  for (const Ut of At.add) {
10793
- const Xt = J2(Ut, Ht);
10793
+ const Xt = Y2(Ut, Ht);
10794
10794
  Xt != null && dt.set(Xt, Ut);
10795
10795
  }
10796
10796
  if (At.update)
@@ -10801,7 +10801,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
10801
10801
  const Oe = !Ut.removeAllProperties && (((Ot = Ut.removeProperties) === null || Ot === void 0 ? void 0 : Ot.length) > 0 || ((bt = Ut.addOrUpdateProperties) === null || bt === void 0 ? void 0 : bt.length) > 0);
10802
10802
  if ((Ut.newGeometry || Ut.removeAllProperties || Oe) && (Xt = Object.assign({}, Xt), dt.set(Ut.id, Xt), Oe && (Xt.properties = Object.assign({}, Xt.properties))), Ut.newGeometry && (Xt.geometry = Ut.newGeometry), Ut.removeAllProperties)
10803
10803
  Xt.properties = {};
10804
- else if (((Vt = Ut.removeProperties) === null || Vt === void 0 ? void 0 : Vt.length) > 0)
10804
+ else if (((Pt = Ut.removeProperties) === null || Pt === void 0 ? void 0 : Pt.length) > 0)
10805
10805
  for (const Je of Ut.removeProperties)
10806
10806
  Object.prototype.hasOwnProperty.call(Xt.properties, Je) && delete Xt.properties[Je];
10807
10807
  if (((te = Ut.addOrUpdateProperties) === null || te === void 0 ? void 0 : te.length) > 0)
@@ -12273,7 +12273,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
12273
12273
  }
12274
12274
  }
12275
12275
  let ce = null;
12276
- function G2() {
12276
+ function U2() {
12277
12277
  return ce || (ce = new An()), ce;
12278
12278
  }
12279
12279
  class O2 {
@@ -12318,7 +12318,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
12318
12318
  for (const v in this.buckets) {
12319
12319
  const E = this.buckets[v];
12320
12320
  if (E instanceof o.a5 && E.hasRTLText) {
12321
- this.hasRTLText = !0, G2().lazyLoad();
12321
+ this.hasRTLText = !0, U2().lazyLoad();
12322
12322
  break;
12323
12323
  }
12324
12324
  }
@@ -12988,7 +12988,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
12988
12988
  return L === "raster" || L === "image" || L === "video";
12989
12989
  }
12990
12990
  he.maxOverzooming = 10, he.maxUnderzooming = 3;
12991
- class J2 {
12991
+ class Y2 {
12992
12992
  constructor(u, Q) {
12993
12993
  this.reset(u, Q);
12994
12994
  }
@@ -13010,7 +13010,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
13010
13010
  return this.points[E].mult(1 - N).add(this.points[Q].mult(N));
13011
13011
  }
13012
13012
  }
13013
- function tr(L, u) {
13013
+ function J2(L, u) {
13014
13014
  let Q = !0;
13015
13015
  return L === "always" || L !== "never" && u !== "never" || (Q = !1), Q;
13016
13016
  }
@@ -13075,7 +13075,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
13075
13075
  if (!Z.box[_t]) {
13076
13076
  Z.box[_t] = !0;
13077
13077
  const ht = 4 * _t, Mt = this.boxKeys[_t];
13078
- if (u <= pt[ht + 2] && Q <= pt[ht + 3] && y >= pt[ht + 0] && v >= pt[ht + 1] && (!N || N(Mt)) && (!K || !tr(Y, Mt.overlapMode)) && (V.push({ key: Mt, x1: pt[ht], y1: pt[ht + 1], x2: pt[ht + 2], y2: pt[ht + 3] }), K))
13078
+ if (u <= pt[ht + 2] && Q <= pt[ht + 3] && y >= pt[ht + 0] && v >= pt[ht + 1] && (!N || N(Mt)) && (!K || !J2(Y, Mt.overlapMode)) && (V.push({ key: Mt, x1: pt[ht], y1: pt[ht + 1], x2: pt[ht + 2], y2: pt[ht + 3] }), K))
13079
13079
  return !0;
13080
13080
  }
13081
13081
  }
@@ -13086,7 +13086,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
13086
13086
  if (!Z.circle[_t]) {
13087
13087
  Z.circle[_t] = !0;
13088
13088
  const ht = 3 * _t, Mt = this.circleKeys[_t];
13089
- if (this._circleAndRectCollide(pt[ht], pt[ht + 1], pt[ht + 2], u, Q, y, v) && (!N || N(Mt)) && (!K || !tr(Y, Mt.overlapMode))) {
13089
+ if (this._circleAndRectCollide(pt[ht], pt[ht + 1], pt[ht + 2], u, Q, y, v) && (!N || N(Mt)) && (!K || !J2(Y, Mt.overlapMode))) {
13090
13090
  const Bt = pt[ht], vt = pt[ht + 1], Ct = pt[ht + 2];
13091
13091
  if (V.push({ key: Mt, x1: Bt - Ct, y1: vt - Ct, x2: Bt + Ct, y2: vt + Ct }), K)
13092
13092
  return !0;
@@ -13103,7 +13103,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
13103
13103
  if (!K.box[_t]) {
13104
13104
  K.box[_t] = !0;
13105
13105
  const ht = 4 * _t, Mt = this.boxKeys[_t];
13106
- if (this._circleAndRectCollide(Z.x, Z.y, Z.radius, pt[ht + 0], pt[ht + 1], pt[ht + 2], pt[ht + 3]) && (!N || N(Mt)) && !tr(Y, Mt.overlapMode))
13106
+ if (this._circleAndRectCollide(Z.x, Z.y, Z.radius, pt[ht + 0], pt[ht + 1], pt[ht + 2], pt[ht + 3]) && (!N || N(Mt)) && !J2(Y, Mt.overlapMode))
13107
13107
  return V.push(!0), !0;
13108
13108
  }
13109
13109
  }
@@ -13114,7 +13114,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
13114
13114
  if (!K.circle[_t]) {
13115
13115
  K.circle[_t] = !0;
13116
13116
  const ht = 3 * _t, Mt = this.circleKeys[_t];
13117
- if (this._circlesCollide(pt[ht], pt[ht + 1], pt[ht + 2], Z.x, Z.y, Z.radius) && (!N || N(Mt)) && !tr(Y, Mt.overlapMode))
13117
+ if (this._circlesCollide(pt[ht], pt[ht + 1], pt[ht + 2], Z.x, Z.y, Z.radius) && (!N || N(Mt)) && !J2(Y, Mt.overlapMode))
13118
13118
  return V.push(!0), !0;
13119
13119
  }
13120
13120
  }
@@ -13250,7 +13250,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
13250
13250
  const mt = L - Z;
13251
13251
  return Ot(V === 0 ? E : new o.P(y.getx(mt), y.gety(mt)), Y, N, K - V + 1, v, R);
13252
13252
  }
13253
- function Vt(L, u, Q) {
13253
+ function Pt(L, u, Q) {
13254
13254
  return L._unit()._perp()._mult(u * Q);
13255
13255
  }
13256
13256
  function te(L, u, Q, y, v, E, V, R) {
@@ -13260,7 +13260,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
13260
13260
  const K = Q.add(u);
13261
13261
  if (L + Z < y || L + Z >= v)
13262
13262
  return N.offsets[L] = K, K;
13263
- const Y = bt(L + Z, R), at = Vt(Y.sub(Q), V, Z), mt = Q.add(at), pt = Y.add(at);
13263
+ const Y = bt(L + Z, R), at = Pt(Y.sub(Q), V, Z), mt = Q.add(at), pt = Y.add(at);
13264
13264
  return N.offsets[L] = o.ak(E, K, mt, pt) || K, N.offsets[L];
13265
13265
  }
13266
13266
  function Ut(L, u, Q, y, v, E, V, R, N, Z, K, Y, at, mt) {
@@ -13280,7 +13280,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
13280
13280
  else {
13281
13281
  let i1;
13282
13282
  const _1 = Ct.sub(jt);
13283
- i1 = _1.mag() === 0 ? Vt(bt(vt + _t, ge).sub(Ct), Q, _t) : Vt(_1, Q, _t), Bt || (Bt = jt.add(i1)), Mt = te(vt, i1, Ct, R, N, Bt, Q, ge), re.push(Bt), ie = Mt.sub(Bt);
13283
+ i1 = _1.mag() === 0 ? Pt(bt(vt + _t, ge).sub(Ct), Q, _t) : Pt(_1, Q, _t), Bt || (Bt = jt.add(i1)), Mt = te(vt, i1, Ct, R, N, Bt, Q, ge), re.push(Bt), ie = Mt.sub(Bt);
13284
13284
  }
13285
13285
  $t = ie.mag();
13286
13286
  }
@@ -13311,7 +13311,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
13311
13311
  const _t = [], ht = new o.P(Q.anchorX, Q.anchorY), Mt = Qt(ht, V, pt), Bt = tt(this.transform.cameraToCenterDistance, Mt.signedDistanceFromCamera), vt = (K ? E / Bt : E * Bt) / o.ao, Ct = Qt(ht, R, pt).point, jt = dt(vt, v, Q.lineOffsetX * vt, Q.lineOffsetY * vt, !1, Ct, ht, Q, y, R, { projections: {}, offsets: {} }, !1, pt);
13312
13312
  let zt = !1, $t = !1, ae = !0;
13313
13313
  if (jt) {
13314
- const re = 0.5 * at * Bt + mt, ie = new o.P(-100, -100), Ae = new o.P(this.screenRightBoundary, this.screenBottomBoundary), d1 = new J2(), ge = jt.first, i1 = jt.last;
13314
+ const re = 0.5 * at * Bt + mt, ie = new o.P(-100, -100), Ae = new o.P(this.screenRightBoundary, this.screenBottomBoundary), d1 = new Y2(), ge = jt.first, i1 = jt.last;
13315
13315
  let _1 = [];
13316
13316
  for (let v1 = ge.path.length - 1; v1 >= 1; v1--)
13317
13317
  _1.push(ge.path[v1]);
@@ -13434,7 +13434,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
13434
13434
  return this.collisionGroups[u];
13435
13435
  }
13436
13436
  }
13437
- function $2(L, u, Q, y, v) {
13437
+ function G2(L, u, Q, y, v) {
13438
13438
  const { horizontalAlign: E, verticalAlign: V } = o.at(L);
13439
13439
  return new o.P(-(E - 0.5) * u + y[0] * v, -(V - 0.5) * Q + y[1] * v);
13440
13440
  }
@@ -13442,7 +13442,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
13442
13442
  const { x1: V, x2: R, y1: N, y2: Z, anchorPointX: K, anchorPointY: Y } = L, at = new o.P(u, Q);
13443
13443
  return y && at._rotate(v ? E : -E), { x1: V + at.x, y1: N + at.y, x2: R + at.x, y2: Z + at.y, anchorPointX: K, anchorPointY: Y };
13444
13444
  }
13445
- class er {
13445
+ class tr {
13446
13446
  constructor(u, Q, y, v, E) {
13447
13447
  this.transform = u.clone(), this.terrain = Q, this.collisionIndex = new w1(this.transform), this.placements = {}, this.opacities = {}, this.variableOffsets = {}, this.stale = !1, this.commitTime = 0, this.fadeDuration = y, this.retainedQueryData = {}, this.collisionGroups = new T2(v), this.collisionCircleArrays = {}, this.prevPlacement = E, E && (E.prevPlacement = void 0), this.placedOrientations = {};
13448
13448
  }
@@ -13467,7 +13467,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
13467
13467
  u.push({ symbolInstanceStart: 0, symbolInstanceEnd: E.symbolInstances.length, parameters: Mt });
13468
13468
  }
13469
13469
  attemptAnchorPlacement(u, Q, y, v, E, V, R, N, Z, K, Y, at, mt, pt, _t, ht) {
13470
- const Mt = o.ap[u.textAnchor], Bt = [u.textOffset0, u.textOffset1], vt = $2(Mt, y, v, Bt, E), Ct = this.collisionIndex.placeCollisionBox(D2(Q, vt.x, vt.y, V, R, this.transform.angle), Y, N, Z, K.predicate, ht);
13470
+ const Mt = o.ap[u.textAnchor], Bt = [u.textOffset0, u.textOffset1], vt = G2(Mt, y, v, Bt, E), Ct = this.collisionIndex.placeCollisionBox(D2(Q, vt.x, vt.y, V, R, this.transform.angle), Y, N, Z, K.predicate, ht);
13471
13471
  if ((!_t || this.collisionIndex.placeCollisionBox(D2(_t, vt.x, vt.y, V, R, this.transform.angle), Y, N, Z, K.predicate, ht).box.length !== 0) && Ct.box.length > 0) {
13472
13472
  let jt;
13473
13473
  if (this.prevPlacement && this.prevPlacement.variableOffsets[at.crossTileID] && this.prevPlacement.placements[at.crossTileID] && this.prevPlacement.placements[at.crossTileID].text && (jt = this.prevPlacement.variableOffsets[at.crossTileID].anchor), at.crossTileID === 0)
@@ -13502,8 +13502,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
13502
13502
  break;
13503
13503
  } else
13504
13504
  o2 = b2();
13505
- }, X2 = ge.textAnchorOffsetStartIndex, ba = ge.textAnchorOffsetEndIndex;
13506
- if (ba === X2) {
13505
+ }, W2 = ge.textAnchorOffsetStartIndex, ba = ge.textAnchorOffsetEndIndex;
13506
+ if (ba === W2) {
13507
13507
  const b2 = (Er, Dn) => {
13508
13508
  const O1 = this.collisionIndex.placeCollisionBox(Er, ht, Z, V, mt.predicate, Ae);
13509
13509
  return O1 && O1.box && O1.box.length && (this.markUsedOrientation(v, Dn, ge), this.placedOrientations[ge.crossTileID] = Dn), O1;
@@ -13519,7 +13519,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
13519
13519
  let E4 = { box: [], offscreen: !1 }, U8 = ht === "never" ? 1 : 2, V5 = "never";
13520
13520
  b2 && U8++;
13521
13521
  for (let G8 = 0; G8 < U8; G8++) {
13522
- for (let w6 = X2; w6 < ba; w6++) {
13522
+ for (let w6 = W2; w6 < ba; w6++) {
13523
13523
  const $8 = v.textAnchorOffsets.get(w6);
13524
13524
  if (b2 && $8.textAnchor !== b2)
13525
13525
  continue;
@@ -13543,13 +13543,13 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
13543
13543
  }
13544
13544
  }
13545
13545
  if (ur = o2, u1 = ur && ur.box && ur.box.length > 0, x1 = ur && ur.offscreen, ge.useRuntimeCollisionCircles) {
13546
- const F2 = v.text.placedSymbolArray.get(ge.centerJustifiedTextSymbolIndex), m2 = o.ai(v.textSizeData, at, F2), X2 = E.get("text-padding");
13547
- l2 = this.collisionIndex.placeCollisionCircles(ht, F2, v.lineVertexArray, v.glyphOffsetArray, m2, V, R, N, y, jt, mt.predicate, ge.collisionCircleDiameter, X2, Ae), l2.circles.length && l2.collisionDetected && !y && o.w("Collisions detected, but collision boxes are not shown"), u1 = Mt || l2.circles.length > 0 && !l2.collisionDetected, x1 = x1 && l2.offscreen;
13546
+ const F2 = v.text.placedSymbolArray.get(ge.centerJustifiedTextSymbolIndex), m2 = o.ai(v.textSizeData, at, F2), W2 = E.get("text-padding");
13547
+ l2 = this.collisionIndex.placeCollisionCircles(ht, F2, v.lineVertexArray, v.glyphOffsetArray, m2, V, R, N, y, jt, mt.predicate, ge.collisionCircleDiameter, W2, Ae), l2.circles.length && l2.collisionDetected && !y && o.w("Collisions detected, but collision boxes are not shown"), u1 = Mt || l2.circles.length > 0 && !l2.collisionDetected, x1 = x1 && l2.offscreen;
13548
13548
  }
13549
13549
  if (i1.iconFeatureIndex && (x4 = i1.iconFeatureIndex), i1.iconBox) {
13550
13550
  const F2 = (m2) => {
13551
- const X2 = zt && I2 ? D2(m2, I2.x, I2.y, Ct, jt, this.transform.angle) : m2;
13552
- return this.collisionIndex.placeCollisionBox(X2, Bt, Z, V, mt.predicate, Ae);
13551
+ const W2 = zt && I2 ? D2(m2, I2.x, I2.y, Ct, jt, this.transform.angle) : m2;
13552
+ return this.collisionIndex.placeCollisionBox(W2, Bt, Z, V, mt.predicate, Ae);
13553
13553
  };
13554
13554
  fn && fn.box && fn.box.length && i1.verticalIconBox ? (Fr = F2(i1.verticalIconBox), v1 = Fr.box.length > 0) : (Fr = F2(i1.iconBox), v1 = Fr.box.length > 0), x1 = x1 && Fr.offscreen;
13555
13555
  }
@@ -13558,8 +13558,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
13558
13558
  const F2 = v.bucketInstanceId;
13559
13559
  let m2 = this.collisionCircleArrays[F2];
13560
13560
  m2 === void 0 && (m2 = this.collisionCircleArrays[F2] = new Ue());
13561
- for (let X2 = 0; X2 < l2.circles.length; X2 += 4)
13562
- m2.circles.push(l2.circles[X2 + 0]), m2.circles.push(l2.circles[X2 + 1]), m2.circles.push(l2.circles[X2 + 2]), m2.circles.push(l2.collisionDetected ? 1 : 0);
13561
+ for (let W2 = 0; W2 < l2.circles.length; W2 += 4)
13562
+ m2.circles.push(l2.circles[W2 + 0]), m2.circles.push(l2.circles[W2 + 1]), m2.circles.push(l2.circles[W2 + 2]), m2.circles.push(l2.collisionDetected ? 1 : 0);
13563
13563
  }
13564
13564
  if (ge.crossTileID === 0)
13565
13565
  throw new Error("symbolInstance.crossTileID can't be 0");
@@ -13644,7 +13644,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
13644
13644
  Q[vt] ? Ct = V : Ct || (Ct = mt, this.opacities[vt] = Ct), Q[vt] = !0;
13645
13645
  const jt = ht.numIconVertices > 0, zt = this.placedOrientations[ht.crossTileID], $t = zt === o.ah.vertical, ae = zt === o.ah.horizontal || zt === o.ah.horizontalOnly;
13646
13646
  if (Mt > 0 || Bt > 0) {
13647
- const re = q2(Ct.text);
13647
+ const re = Z2(Ct.text);
13648
13648
  pt(u.text, Mt, $t ? R1 : re), pt(u.text, Bt, ae ? R1 : re);
13649
13649
  const ie = Ct.text.isHidden();
13650
13650
  [ht.rightJustifiedTextSymbolIndex, ht.centerJustifiedTextSymbolIndex, ht.leftJustifiedTextSymbolIndex].forEach((ge) => {
@@ -13656,7 +13656,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
13656
13656
  d1 && (this.markUsedJustification(u, "left", ht, d1), this.markUsedOrientation(u, d1, ht));
13657
13657
  }
13658
13658
  if (jt) {
13659
- const re = q2(Ct.icon), ie = !(at && ht.verticalPlacedIconSymbolIndex && $t);
13659
+ const re = Z2(Ct.icon), ie = !(at && ht.verticalPlacedIconSymbolIndex && $t);
13660
13660
  ht.placedIconSymbolIndex >= 0 && (pt(u.icon, ht.numIconVertices, ie ? re : R1), u.icon.placedSymbolArray.get(ht.placedIconSymbolIndex).hidden = Ct.icon.isHidden()), ht.verticalPlacedIconSymbolIndex >= 0 && (pt(u.icon, ht.numVerticalIconVertices, ie ? R1 : re), u.icon.placedSymbolArray.get(ht.verticalPlacedIconSymbolIndex).hidden = Ct.icon.isHidden());
13661
13661
  }
13662
13662
  if (u.hasIconCollisionBoxData() || u.hasTextCollisionBoxData()) {
@@ -13667,7 +13667,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
13667
13667
  let d1 = !0;
13668
13668
  if (Z) {
13669
13669
  const ge = this.variableOffsets[vt];
13670
- ge ? (ie = $2(ge.anchor, ge.width, ge.height, ge.textOffset, ge.textBoxScale), K && ie._rotate(Y ? this.transform.angle : -this.transform.angle)) : d1 = !1;
13670
+ ge ? (ie = G2(ge.anchor, ge.width, ge.height, ge.textOffset, ge.textBoxScale), K && ie._rotate(Y ? this.transform.angle : -this.transform.angle)) : d1 = !1;
13671
13671
  }
13672
13672
  re.textBox && Tr(u.textCollisionBox.collisionVertexArray, Ct.text.placed, !d1 || $t, ie.x, ie.y), re.verticalTextBox && Tr(u.textCollisionBox.collisionVertexArray, Ct.text.placed, !d1 || ae, ie.x, ie.y);
13673
13673
  }
@@ -13705,14 +13705,14 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
13705
13705
  function Tr(L, u, Q, y, v) {
13706
13706
  L.emplaceBack(u ? 1 : 0, Q ? 1 : 0, y || 0, v || 0), L.emplaceBack(u ? 1 : 0, Q ? 1 : 0, y || 0, v || 0), L.emplaceBack(u ? 1 : 0, Q ? 1 : 0, y || 0, v || 0), L.emplaceBack(u ? 1 : 0, Q ? 1 : 0, y || 0, v || 0);
13707
13707
  }
13708
- const ia = Math.pow(2, 25), ui = Math.pow(2, 24), f1 = Math.pow(2, 17), un = Math.pow(2, 16), W1 = Math.pow(2, 9), Q2 = Math.pow(2, 8), Z2 = Math.pow(2, 1);
13709
- function q2(L) {
13708
+ const ia = Math.pow(2, 25), ui = Math.pow(2, 24), f1 = Math.pow(2, 17), un = Math.pow(2, 16), W1 = Math.pow(2, 9), Q2 = Math.pow(2, 8), $2 = Math.pow(2, 1);
13709
+ function Z2(L) {
13710
13710
  if (L.opacity === 0 && !L.placed)
13711
13711
  return 0;
13712
13712
  if (L.opacity === 1 && L.placed)
13713
13713
  return 4294967295;
13714
13714
  const u = L.placed ? 1 : 0, Q = Math.floor(127 * L.opacity);
13715
- return Q * ia + u * ui + Q * f1 + u * un + Q * W1 + u * Q2 + Q * Z2 + u;
13715
+ return Q * ia + u * ui + Q * f1 + u * un + Q * W1 + u * Q2 + Q * $2 + u;
13716
13716
  }
13717
13717
  const R1 = 0;
13718
13718
  class lr {
@@ -13732,7 +13732,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
13732
13732
  }
13733
13733
  class Sn {
13734
13734
  constructor(u, Q, y, v, E, V, R, N) {
13735
- this.placement = new er(u, Q, V, R, N), this._currentPlacementIndex = y.length - 1, this._forceFullPlacement = v, this._showCollisionBoxes = E, this._done = !1;
13735
+ this.placement = new tr(u, Q, V, R, N), this._currentPlacementIndex = y.length - 1, this._forceFullPlacement = v, this._showCollisionBoxes = E, this._done = !1;
13736
13736
  }
13737
13737
  isDone() {
13738
13738
  return this._done;
@@ -13754,7 +13754,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
13754
13754
  return this.placement.commit(u), this.placement;
13755
13755
  }
13756
13756
  }
13757
- const rr = 512 / o.W / 2;
13757
+ const er = 512 / o.W / 2;
13758
13758
  class j1 {
13759
13759
  constructor(u, Q, y) {
13760
13760
  this.tileID = u, this.bucketInstanceId = y, this._symbolsByKey = {};
@@ -13764,7 +13764,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
13764
13764
  N ? N.push(V) : v.set(R, [V]);
13765
13765
  }
13766
13766
  for (const [E, V] of v) {
13767
- const R = { positions: V.map((N) => ({ x: Math.floor(N.anchorX * rr), y: Math.floor(N.anchorY * rr) })), crossTileIDs: V.map((N) => N.crossTileID) };
13767
+ const R = { positions: V.map((N) => ({ x: Math.floor(N.anchorX * er), y: Math.floor(N.anchorY * er) })), crossTileIDs: V.map((N) => N.crossTileID) };
13768
13768
  if (R.positions.length > 128) {
13769
13769
  const N = new o.au(R.positions.length, 16, Uint16Array);
13770
13770
  for (const { x: Z, y: K } of R.positions)
@@ -13775,8 +13775,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
13775
13775
  }
13776
13776
  }
13777
13777
  getScaledCoordinates(u, Q) {
13778
- const { x: y, y: v, z: E } = this.tileID.canonical, { x: V, y: R, z: N } = Q.canonical, Z = rr / Math.pow(2, N - E), K = (R * o.W + u.anchorY) * Z, Y = v * o.W * rr;
13779
- return { x: Math.floor((V * o.W + u.anchorX) * Z - y * o.W * rr), y: Math.floor(K - Y) };
13778
+ const { x: y, y: v, z: E } = this.tileID.canonical, { x: V, y: R, z: N } = Q.canonical, Z = er / Math.pow(2, N - E), K = (R * o.W + u.anchorY) * Z, Y = v * o.W * er;
13779
+ return { x: Math.floor((V * o.W + u.anchorX) * Z - y * o.W * er), y: Math.floor(K - Y) };
13780
13780
  }
13781
13781
  findMatches(u, Q, y) {
13782
13782
  const v = this.tileID.canonical.z < Q.canonical.z ? 1 : Math.pow(2, this.tileID.canonical.z - Q.canonical.z);
@@ -13912,7 +13912,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
13912
13912
  const v = this.sourceCaches[y].getSource().type;
13913
13913
  v !== "vector" && v !== "geojson" || this.sourceCaches[y].reload();
13914
13914
  }
13915
- }, this.map = u, this.dispatcher = new se(Zt(), u._getMapId()), this.dispatcher.registerMessageHandler("getGlyphs", (y, v) => this.getGlyphs(y, v)), this.dispatcher.registerMessageHandler("getImages", (y, v) => this.getImages(y, v)), this.imageManager = new Kt(), this.imageManager.setEventedParent(this), this.glyphManager = new L1(u._requestManager, Q.localIdeographFontFamily), this.lineAtlas = new Ie(256, 512), this.crossTileSymbolIndex = new a2(), this._spritesImagesIds = {}, this._layers = {}, this._order = [], this.sourceCaches = {}, this.zoomHistory = new o.aw(), this._loaded = !1, this._availableImages = [], this._resetUpdates(), this.dispatcher.broadcast("setReferrer", o.ax()), G2().on(Mn, this._rtlPluginLoaded), this.on("data", (y) => {
13915
+ }, this.map = u, this.dispatcher = new se(Zt(), u._getMapId()), this.dispatcher.registerMessageHandler("getGlyphs", (y, v) => this.getGlyphs(y, v)), this.dispatcher.registerMessageHandler("getImages", (y, v) => this.getImages(y, v)), this.imageManager = new Kt(), this.imageManager.setEventedParent(this), this.glyphManager = new L1(u._requestManager, Q.localIdeographFontFamily), this.lineAtlas = new Ie(256, 512), this.crossTileSymbolIndex = new a2(), this._spritesImagesIds = {}, this._layers = {}, this._order = [], this.sourceCaches = {}, this.zoomHistory = new o.aw(), this._loaded = !1, this._availableImages = [], this._resetUpdates(), this.dispatcher.broadcast("setReferrer", o.ax()), U2().on(Mn, this._rtlPluginLoaded), this.on("data", (y) => {
13916
13916
  if (y.dataType !== "source" || y.sourceDataType !== "metadata")
13917
13917
  return;
13918
13918
  const v = this.sourceCaches[y.sourceId];
@@ -14489,7 +14489,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
14489
14489
  return (!E || E.validate !== !1) && cn(this, u.call(o.x, o.e({ key: Q, style: this.serialize(), value: y, styleSpec: o.v }, v)));
14490
14490
  }
14491
14491
  _remove(u = !0) {
14492
- this._frameRequest && (this._frameRequest.abort(), this._frameRequest = null), this._loadStyleRequest && (this._loadStyleRequest.abort(), this._loadStyleRequest = null), this._spriteRequest && (this._spriteRequest.abort(), this._spriteRequest = null), G2().off(Mn, this._rtlPluginLoaded);
14492
+ this._frameRequest && (this._frameRequest.abort(), this._frameRequest = null), this._loadStyleRequest && (this._loadStyleRequest.abort(), this._loadStyleRequest = null), this._spriteRequest && (this._spriteRequest.abort(), this._spriteRequest = null), U2().off(Mn, this._rtlPluginLoaded);
14493
14493
  for (const Q in this._layers)
14494
14494
  this._layers[Q].setEventedParent(null);
14495
14495
  for (const Q in this.sourceCaches) {
@@ -15966,9 +15966,9 @@ uniform ${K} ${Y} u_${at};
15966
15966
  ct(ie, ae.posMatrix, L, v, mi, Fi, ht, Z, Er, b2);
15967
15967
  }
15968
15968
  const Ni = L.translatePosMatrix(ae.posMatrix, re, E, V), gi = Mt || v && zt || L4 ? T6 : mi, F2 = L.translatePosMatrix(Fi, re, E, V, !0), m2 = ge && Q.paint.get(v ? "text-halo-width" : "icon-halo-width").constantOr(1) !== 0;
15969
- let X2;
15970
- X2 = ge ? ie.iconsInText ? p5(i1.kind, u1, Bt, ht, L, Ni, gi, F2, x1, ur) : e3(i1.kind, u1, Bt, ht, L, Ni, gi, F2, v, x1, !0) : K1(i1.kind, u1, Bt, ht, L, Ni, gi, F2, v, x1);
15971
- const ba = { program: P1, buffers: Ae, uniformValues: X2, atlasTexture: I2, atlasTextureIcon: l2, atlasInterpolation: o2, atlasInterpolationIcon: fn, isSDF: ge, hasHalo: m2 };
15969
+ let W2;
15970
+ W2 = ge ? ie.iconsInText ? p5(i1.kind, u1, Bt, ht, L, Ni, gi, F2, x1, ur) : e3(i1.kind, u1, Bt, ht, L, Ni, gi, F2, v, x1, !0) : K1(i1.kind, u1, Bt, ht, L, Ni, gi, F2, v, x1);
15971
+ const ba = { program: P1, buffers: Ae, uniformValues: W2, atlasTexture: I2, atlasTextureIcon: l2, atlasInterpolation: o2, atlasInterpolationIcon: fn, isSDF: ge, hasHalo: m2 };
15972
15972
  if (vt && ie.canOverlap) {
15973
15973
  Ct = !0;
15974
15974
  const b2 = Ae.segments.get();
@@ -17034,7 +17034,7 @@ uniform ${K} ${Y} u_${at};
17034
17034
  return `#${K}`;
17035
17035
  }
17036
17036
  }
17037
- const t2 = { linearity: 0.3, easing: o.b6(0, 0, 0.3, 1) }, W2 = o.e({ deceleration: 2500, maxSpeed: 1400 }, t2), On = o.e({ deceleration: 20, maxSpeed: 1400 }, t2), Xn = o.e({ deceleration: 1e3, maxSpeed: 360 }, t2), wr = o.e({ deceleration: 1e3, maxSpeed: 90 }, t2);
17037
+ const t2 = { linearity: 0.3, easing: o.b6(0, 0, 0.3, 1) }, q2 = o.e({ deceleration: 2500, maxSpeed: 1400 }, t2), On = o.e({ deceleration: 20, maxSpeed: 1400 }, t2), Xn = o.e({ deceleration: 1e3, maxSpeed: 360 }, t2), wr = o.e({ deceleration: 1e3, maxSpeed: 90 }, t2);
17038
17038
  class Kn {
17039
17039
  constructor(u) {
17040
17040
  this._map = u, this.clear();
@@ -17058,7 +17058,7 @@ uniform ${K} ${Y} u_${at};
17058
17058
  Q.zoom += E.zoomDelta || 0, Q.bearing += E.bearingDelta || 0, Q.pitch += E.pitchDelta || 0, E.panDelta && Q.pan._add(E.panDelta), E.around && (Q.around = E.around), E.pinchAround && (Q.pinchAround = E.pinchAround);
17059
17059
  const y = this._inertiaBuffer[this._inertiaBuffer.length - 1].time - this._inertiaBuffer[0].time, v = {};
17060
17060
  if (Q.pan.mag()) {
17061
- const E = ki(Q.pan.mag(), y, o.e({}, W2, u || {}));
17061
+ const E = ki(Q.pan.mag(), y, o.e({}, q2, u || {}));
17062
17062
  v.offset = Q.pan.mult(E.amount / Q.pan.mag()), v.center = this._map.transform.center, Yn(v, E);
17063
17063
  }
17064
17064
  if (Q.zoom) {
@@ -18511,7 +18511,7 @@ uniform ${K} ${Y} u_${at};
18511
18511
  this._currentlyRunning && (this._cleared = !0), this._queue = [];
18512
18512
  }
18513
18513
  }
18514
- var nr = o.X([{ name: "a_pos3d", type: "Int16", components: 3 }]);
18514
+ var rr = o.X([{ name: "a_pos3d", type: "Int16", components: 3 }]);
18515
18515
  class N8 extends o.E {
18516
18516
  constructor(u) {
18517
18517
  super(), this.sourceCache = u, this._tiles = {}, this._renderableTilesKeys = [], this._sourceTileCache = {}, this.minzoom = 0, this.maxzoom = 22, this.tileSize = 512, this.deltaZoom = 1, u.usedForTerrain = !0, u.tileSize = this.tileSize * 2 ** this.deltaZoom;
@@ -18673,7 +18673,7 @@ uniform ${K} ${Y} u_${at};
18673
18673
  Q.emplaceBack(Y * o.W, at * E, mt);
18674
18674
  for (let Y = 0; Y < 2 * v; Y += 2)
18675
18675
  y.emplaceBack(Z + Y, Z + Y + 1, Z + Y + 3), y.emplaceBack(Z + Y, Z + Y + 3, Z + Y + 2), y.emplaceBack(K + Y, K + Y + 3, K + Y + 1), y.emplaceBack(K + Y, K + Y + 2, K + Y + 3);
18676
- return this._mesh = { indexBuffer: u.createIndexBuffer(y), vertexBuffer: u.createVertexBuffer(Q, nr.members), segments: o.$.simpleSegment(0, 0, Q.length, y.length) }, this._mesh;
18676
+ return this._mesh = { indexBuffer: u.createIndexBuffer(y), vertexBuffer: u.createVertexBuffer(Q, rr.members), segments: o.$.simpleSegment(0, 0, Q.length, y.length) }, this._mesh;
18677
18677
  }
18678
18678
  getMeshFrameDelta(u) {
18679
18679
  return 2 * Math.PI * o.bb / Math.pow(2, u) / 5;
@@ -20030,7 +20030,7 @@ uniform ${K} ${Y} u_${at};
20030
20030
  }, s.getMaxParallelImageRequests = function() {
20031
20031
  return o.a.MAX_PARALLEL_IMAGE_REQUESTS;
20032
20032
  }, s.getRTLTextPluginStatus = function() {
20033
- return G2().getRTLTextPluginStatus();
20033
+ return U2().getRTLTextPluginStatus();
20034
20034
  }, s.getVersion = function() {
20035
20035
  return j8;
20036
20036
  }, s.getWorkerCount = function() {
@@ -20044,7 +20044,7 @@ uniform ${K} ${Y} u_${at};
20044
20044
  }, s.setMaxParallelImageRequests = function(L) {
20045
20045
  o.a.MAX_PARALLEL_IMAGE_REQUESTS = L;
20046
20046
  }, s.setRTLTextPlugin = function(L, u) {
20047
- return G2().setRTLTextPlugin(L, u);
20047
+ return U2().setRTLTextPlugin(L, u);
20048
20048
  }, s.setWorkerCount = function(L) {
20049
20049
  Ne.workerCount = L;
20050
20050
  }, s.setWorkerUrl = function(L) {
@@ -21636,14 +21636,14 @@ class Sz {
21636
21636
  return r;
21637
21637
  }
21638
21638
  addWatcher(t) {
21639
- return m1(this, ws, Pt(this, ws) + 1), Pt(this, Es).set(Pt(this, ws), t), Pt(this, ws);
21639
+ return m1(this, ws, It(this, ws) + 1), It(this, Es).set(It(this, ws), t), It(this, ws);
21640
21640
  }
21641
21641
  removeWatcher(t) {
21642
- Pt(this, Es).delete(t);
21642
+ It(this, Es).delete(t);
21643
21643
  }
21644
21644
  }
21645
21645
  ws = new WeakMap(), Es = new WeakMap(), E7 = new WeakSet(), of = function(t = {}) {
21646
- for (const r of Pt(this, Es).values())
21646
+ for (const r of It(this, Es).values())
21647
21647
  r(t);
21648
21648
  };
21649
21649
  const za = class za {
@@ -21905,16 +21905,16 @@ class Vz {
21905
21905
  features: []
21906
21906
  });
21907
21907
  a1(this, M7, void 0);
21908
- m1(this, bu, t), m1(this, M7, r), m1(this, xr, t.map), Pt(this, xr).addSource("markers", {
21908
+ m1(this, bu, t), m1(this, M7, r), m1(this, xr, t.map), It(this, xr).addSource("markers", {
21909
21909
  type: "geojson",
21910
- data: Pt(this, Ga),
21910
+ data: It(this, Ga),
21911
21911
  cluster: !0,
21912
21912
  // Adds the ``point_count`` property to source data
21913
21913
  clusterMaxZoom: 9,
21914
21914
  // Max zoom to cluster points on
21915
21915
  clusterRadius: 50
21916
21916
  // Radius of each cluster when clustering points (defaults to 50)
21917
- }), Pt(this, xr).addLayer({
21917
+ }), It(this, xr).addLayer({
21918
21918
  id: "clustered-markers",
21919
21919
  type: "symbol",
21920
21920
  source: "markers",
@@ -21929,7 +21929,7 @@ class Vz {
21929
21929
  "text-size": 10,
21930
21930
  "text-offset": [0, -1.93]
21931
21931
  }
21932
- }), Pt(this, xr).addLayer({
21932
+ }), It(this, xr).addLayer({
21933
21933
  id: "single-points",
21934
21934
  type: "symbol",
21935
21935
  source: "markers",
@@ -21941,32 +21941,32 @@ class Vz {
21941
21941
  "icon-offset": [0, -17],
21942
21942
  "icon-size": 0.6
21943
21943
  }
21944
- }), Pt(this, xr).on("click", "clustered-markers", async (n) => {
21945
- const i = Pt(this, xr).queryRenderedFeatures(n.point, {
21944
+ }), It(this, xr).on("click", "clustered-markers", async (n) => {
21945
+ const i = It(this, xr).queryRenderedFeatures(n.point, {
21946
21946
  layers: ["clustered-markers"]
21947
- }), a = i[0].properties.cluster_id, s = await Pt(this, xr).getSource("markers").getClusterExpansionZoom(a);
21948
- Pt(this, xr).easeTo({
21947
+ }), a = i[0].properties.cluster_id, s = await It(this, xr).getSource("markers").getClusterExpansionZoom(a);
21948
+ It(this, xr).easeTo({
21949
21949
  center: i[0].geometry.coordinates,
21950
21950
  zoom: s
21951
21951
  });
21952
- }), Pt(this, xr).on("click", "single-points", this.singleMarkerEvent.bind(this)), Pt(this, xr).on("mouseenter", "single-points", this.singleMarkerEvent.bind(this)), Pt(this, xr).on("mousemove", "single-points", this.singleMarkerEvent.bind(this)), Pt(this, xr).on("mouseenter", "clustered-markers", () => {
21953
- Pt(this, xr).getCanvas().style.cursor = "pointer";
21954
- }), Pt(this, xr).on("mouseleave", "clustered-markers", () => {
21955
- Pt(this, xr).getCanvas().style.cursor = "";
21952
+ }), It(this, xr).on("click", "single-points", this.singleMarkerEvent.bind(this)), It(this, xr).on("mouseenter", "single-points", this.singleMarkerEvent.bind(this)), It(this, xr).on("mousemove", "single-points", this.singleMarkerEvent.bind(this)), It(this, xr).on("mouseenter", "clustered-markers", () => {
21953
+ It(this, xr).getCanvas().style.cursor = "pointer";
21954
+ }), It(this, xr).on("mouseleave", "clustered-markers", () => {
21955
+ It(this, xr).getCanvas().style.cursor = "";
21956
21956
  });
21957
21957
  }
21958
21958
  singleMarkerEvent(t) {
21959
- const r = Pt(this, xr).queryRenderedFeatures(t.point, {
21959
+ const r = It(this, xr).queryRenderedFeatures(t.point, {
21960
21960
  layers: ["single-points"]
21961
21961
  });
21962
21962
  for (const n of r) {
21963
21963
  const i = n.properties, a = i.markerPosition.slice(1, -1).split(",").map((s) => +s);
21964
- Pt(this, M7).markerEvent_(t, n.id, a, i.models, i);
21964
+ It(this, M7).markerEvent_(t, n.id, a, i.models, i);
21965
21965
  }
21966
21966
  t.originalEvent.stopPropagation();
21967
21967
  }
21968
21968
  addMarker(t, r, n = {}) {
21969
- Pt(this, Ga).features.push({
21969
+ It(this, Ga).features.push({
21970
21970
  type: "Feature",
21971
21971
  id: t,
21972
21972
  properties: n,
@@ -21974,10 +21974,10 @@ class Vz {
21974
21974
  type: "Point",
21975
21975
  coordinates: r
21976
21976
  }
21977
- }), Pt(this, xr).getSource("markers").setData(Pt(this, Ga));
21977
+ }), It(this, xr).getSource("markers").setData(It(this, Ga));
21978
21978
  }
21979
21979
  clearMarkers() {
21980
- Pt(this, Ga).features = [], Pt(this, xr).getSource("markers").setData(Pt(this, Ga));
21980
+ It(this, Ga).features = [], It(this, xr).getSource("markers").setData(It(this, Ga));
21981
21981
  }
21982
21982
  }
21983
21983
  bu = new WeakMap(), xr = new WeakMap(), Ga = new WeakMap(), M7 = new WeakMap();
@@ -22395,11 +22395,11 @@ class Bu extends Di {
22395
22395
  [
22396
22396
  "case",
22397
22397
  ["boolean", ["feature-state", "active"], !1],
22398
- 1.2,
22398
+ 2,
22399
22399
  0.9
22400
22400
  ],
22401
22401
  ["boolean", ["feature-state", "active"], !1],
22402
- 0.9,
22402
+ 1.8,
22403
22403
  0
22404
22404
  ] : [
22405
22405
  "case",
@@ -27392,7 +27392,7 @@ function FZ(e, t, r, n, i) {
27392
27392
  }), s = kZ(r);
27393
27393
  return new a(n * i * s);
27394
27394
  }
27395
- const K2 = {
27395
+ const X2 = {
27396
27396
  WEBGL2: "WEBGL2",
27397
27397
  VERTEX_ARRAY_OBJECT: "VERTEX_ARRAY_OBJECT",
27398
27398
  TIMER_QUERY: "TIMER_QUERY",
@@ -27431,28 +27431,28 @@ function NZ(e) {
27431
27431
  return t.delete(), r.delete(), n === 36053;
27432
27432
  }
27433
27433
  const kA = {
27434
- [K2.WEBGL2]: [!1, !0],
27435
- [K2.VERTEX_ARRAY_OBJECT]: ["OES_vertex_array_object", !0],
27436
- [K2.TIMER_QUERY]: ["EXT_disjoint_timer_query", "EXT_disjoint_timer_query_webgl2"],
27437
- [K2.INSTANCED_RENDERING]: ["ANGLE_instanced_arrays", !0],
27438
- [K2.MULTIPLE_RENDER_TARGETS]: ["WEBGL_draw_buffers", !0],
27439
- [K2.ELEMENT_INDEX_UINT32]: ["OES_element_index_uint", !0],
27440
- [K2.BLEND_EQUATION_MINMAX]: ["EXT_blend_minmax", !0],
27441
- [K2.FLOAT_BLEND]: ["EXT_float_blend"],
27442
- [K2.COLOR_ENCODING_SRGB]: ["EXT_sRGB", !0],
27443
- [K2.TEXTURE_DEPTH]: ["WEBGL_depth_texture", !0],
27444
- [K2.TEXTURE_FLOAT]: ["OES_texture_float", !0],
27445
- [K2.TEXTURE_HALF_FLOAT]: ["OES_texture_half_float", !0],
27446
- [K2.TEXTURE_FILTER_LINEAR_FLOAT]: ["OES_texture_float_linear"],
27447
- [K2.TEXTURE_FILTER_LINEAR_HALF_FLOAT]: ["OES_texture_half_float_linear"],
27448
- [K2.TEXTURE_FILTER_ANISOTROPIC]: ["EXT_texture_filter_anisotropic"],
27449
- [K2.COLOR_ATTACHMENT_RGBA32F]: [NZ, "EXT_color_buffer_float"],
27450
- [K2.COLOR_ATTACHMENT_FLOAT]: [!1, "EXT_color_buffer_float"],
27451
- [K2.COLOR_ATTACHMENT_HALF_FLOAT]: ["EXT_color_buffer_half_float"],
27452
- [K2.GLSL_FRAG_DATA]: ["WEBGL_draw_buffers", !0],
27453
- [K2.GLSL_FRAG_DEPTH]: ["EXT_frag_depth", !0],
27454
- [K2.GLSL_DERIVATIVES]: ["OES_standard_derivatives", !0],
27455
- [K2.GLSL_TEXTURE_LOD]: ["EXT_shader_texture_lod", !0]
27434
+ [X2.WEBGL2]: [!1, !0],
27435
+ [X2.VERTEX_ARRAY_OBJECT]: ["OES_vertex_array_object", !0],
27436
+ [X2.TIMER_QUERY]: ["EXT_disjoint_timer_query", "EXT_disjoint_timer_query_webgl2"],
27437
+ [X2.INSTANCED_RENDERING]: ["ANGLE_instanced_arrays", !0],
27438
+ [X2.MULTIPLE_RENDER_TARGETS]: ["WEBGL_draw_buffers", !0],
27439
+ [X2.ELEMENT_INDEX_UINT32]: ["OES_element_index_uint", !0],
27440
+ [X2.BLEND_EQUATION_MINMAX]: ["EXT_blend_minmax", !0],
27441
+ [X2.FLOAT_BLEND]: ["EXT_float_blend"],
27442
+ [X2.COLOR_ENCODING_SRGB]: ["EXT_sRGB", !0],
27443
+ [X2.TEXTURE_DEPTH]: ["WEBGL_depth_texture", !0],
27444
+ [X2.TEXTURE_FLOAT]: ["OES_texture_float", !0],
27445
+ [X2.TEXTURE_HALF_FLOAT]: ["OES_texture_half_float", !0],
27446
+ [X2.TEXTURE_FILTER_LINEAR_FLOAT]: ["OES_texture_float_linear"],
27447
+ [X2.TEXTURE_FILTER_LINEAR_HALF_FLOAT]: ["OES_texture_half_float_linear"],
27448
+ [X2.TEXTURE_FILTER_ANISOTROPIC]: ["EXT_texture_filter_anisotropic"],
27449
+ [X2.COLOR_ATTACHMENT_RGBA32F]: [NZ, "EXT_color_buffer_float"],
27450
+ [X2.COLOR_ATTACHMENT_FLOAT]: [!1, "EXT_color_buffer_float"],
27451
+ [X2.COLOR_ATTACHMENT_HALF_FLOAT]: ["EXT_color_buffer_half_float"],
27452
+ [X2.GLSL_FRAG_DATA]: ["WEBGL_draw_buffers", !0],
27453
+ [X2.GLSL_FRAG_DEPTH]: ["EXT_frag_depth", !0],
27454
+ [X2.GLSL_DERIVATIVES]: ["OES_standard_derivatives", !0],
27455
+ [X2.GLSL_TEXTURE_LOD]: ["EXT_shader_texture_lod", !0]
27456
27456
  }, jZ = 2;
27457
27457
  function zZ(e, t) {
27458
27458
  return BA(e, t);
@@ -28587,7 +28587,7 @@ class F9 extends ta {
28587
28587
  }
28588
28588
  static isSupported(t) {
28589
28589
  let r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
28590
- const n = U1(t), i = BA(t, K2.TIMER_QUERY);
28590
+ const n = U1(t), i = BA(t, X2.TIMER_QUERY);
28591
28591
  let a = n || i;
28592
28592
  for (const s of r)
28593
28593
  switch (s) {
@@ -36737,7 +36737,7 @@ var bH = { exports: {} };
36737
36737
  };
36738
36738
  function kr(F) {
36739
36739
  var G, J = F.options.inputClass;
36740
- return J ? G = J : ee ? G = tt : Qe ? G = Vt : C2 ? G = Oe : G = tr, new G(F, si);
36740
+ return J ? G = J : ee ? G = tt : Qe ? G = Pt : C2 ? G = Oe : G = J2, new G(F, si);
36741
36741
  }
36742
36742
  function si(F, G, J) {
36743
36743
  var ot = J.pointers.length, ft = J.changedPointers.length, Rt = G & kt && ot - ft === 0, qt = G & (se | ne) && ot - ft === 0;
@@ -36747,7 +36747,7 @@ var bH = { exports: {} };
36747
36747
  var J = F.session, ot = G.pointers, ft = ot.length;
36748
36748
  J.firstInput || (J.firstInput = Mn(G)), ft > 1 && !J.firstMultiple ? J.firstMultiple = Mn(G) : ft === 1 && (J.firstMultiple = !1);
36749
36749
  var Rt = J.firstInput, qt = J.firstMultiple, ue = qt ? qt.center : Rt.center, Te = G.center = An(ot);
36750
- G.timeStamp = f(), G.deltaTime = G.timeStamp - Rt.timeStamp, G.angle = sn(ue, Te), G.distance = O2(ue, Te), li(J, G), G.offsetDirection = G2(G.deltaX, G.deltaY);
36750
+ G.timeStamp = f(), G.deltaTime = G.timeStamp - Rt.timeStamp, G.angle = sn(ue, Te), G.distance = O2(ue, Te), li(J, G), G.offsetDirection = U2(G.deltaX, G.deltaY);
36751
36751
  var oe = ce(G.deltaTime, G.deltaX, G.deltaY);
36752
36752
  G.overallVelocityX = oe.x, G.overallVelocityY = oe.y, G.overallVelocity = d(oe.x) > d(oe.y) ? oe.x : oe.y, G.scale = qt ? he(qt.pointers, ot) : 1, G.rotation = qt ? ln(qt.pointers, ot) : 0, G.maxPointers = J.prevInput ? G.pointers.length > J.prevInput.maxPointers ? G.pointers.length : J.prevInput.maxPointers : G.pointers.length, Sr(J, G);
36753
36753
  var qe = F.element;
@@ -36767,7 +36767,7 @@ var bH = { exports: {} };
36767
36767
  var J = F.lastInterval || G, ot = G.timeStamp - J.timeStamp, ft, Rt, qt, ue;
36768
36768
  if (G.eventType != ne && (ot > Be || J.velocity === i)) {
36769
36769
  var Te = G.deltaX - J.deltaX, oe = G.deltaY - J.deltaY, qe = ce(ot, Te, oe);
36770
- Rt = qe.x, qt = qe.y, ft = d(qe.x) > d(qe.y) ? qe.x : qe.y, ue = G2(Te, oe), F.lastInterval = G;
36770
+ Rt = qe.x, qt = qe.y, ft = d(qe.x) > d(qe.y) ? qe.x : qe.y, ue = U2(Te, oe), F.lastInterval = G;
36771
36771
  } else
36772
36772
  ft = J.velocity, Rt = J.velocityX, qt = J.velocityY, ue = J.direction;
36773
36773
  G.velocity = ft, G.velocityX = Rt, G.velocityY = qt, G.direction = ue;
@@ -36806,7 +36806,7 @@ var bH = { exports: {} };
36806
36806
  y: J / F || 0
36807
36807
  };
36808
36808
  }
36809
- function G2(F, G) {
36809
+ function U2(F, G) {
36810
36810
  return F === G ? Ce : d(F) >= d(G) ? F < 0 ? Xe : Se : G < 0 ? He : Me;
36811
36811
  }
36812
36812
  function O2(F, G, J) {
@@ -36829,11 +36829,11 @@ var bH = { exports: {} };
36829
36829
  mousedown: kt,
36830
36830
  mousemove: Zt,
36831
36831
  mouseup: se
36832
- }, n1 = "mousedown", J2 = "mousemove mouseup";
36833
- function tr() {
36834
- this.evEl = n1, this.evWin = J2, this.pressed = !1, D1.apply(this, arguments);
36832
+ }, n1 = "mousedown", Y2 = "mousemove mouseup";
36833
+ function J2() {
36834
+ this.evEl = n1, this.evWin = Y2, this.pressed = !1, D1.apply(this, arguments);
36835
36835
  }
36836
- C(tr, D1, {
36836
+ C(J2, D1, {
36837
36837
  /**
36838
36838
  * handle mouse events
36839
36839
  * @param {Object} ev
@@ -36913,10 +36913,10 @@ var bH = { exports: {} };
36913
36913
  touchend: se,
36914
36914
  touchcancel: ne
36915
36915
  }, bt = "touchstart touchmove touchend touchcancel";
36916
- function Vt() {
36916
+ function Pt() {
36917
36917
  this.evTarget = bt, this.targetIds = {}, D1.apply(this, arguments);
36918
36918
  }
36919
- C(Vt, D1, {
36919
+ C(Pt, D1, {
36920
36920
  handler: function(G) {
36921
36921
  var J = Ot[G.type], ot = te.call(this, G, J);
36922
36922
  ot && this.callback(this.manager, J, {
@@ -36950,7 +36950,7 @@ var bH = { exports: {} };
36950
36950
  function Oe() {
36951
36951
  D1.apply(this, arguments);
36952
36952
  var F = I(this.handler, this);
36953
- this.touch = new Vt(this.manager, F), this.mouse = new tr(this.manager, F), this.primaryTouch = null, this.lastTouches = [];
36953
+ this.touch = new Pt(this.manager, F), this.mouse = new J2(this.manager, F), this.primaryTouch = null, this.lastTouches = [];
36954
36954
  }
36955
36955
  C(Oe, D1, {
36956
36956
  /**
@@ -36999,11 +36999,11 @@ var bH = { exports: {} };
36999
36999
  }
37000
37000
  return !1;
37001
37001
  }
37002
- var e1 = Kt(s.style, "touchAction"), z1 = e1 !== i, G1 = "compute", h2 = "auto", Ue = "manipulation", $1 = "none", T2 = "pan-x", $2 = "pan-y", D2 = ia();
37003
- function er(F, G) {
37002
+ var e1 = Kt(s.style, "touchAction"), z1 = e1 !== i, G1 = "compute", h2 = "auto", Ue = "manipulation", $1 = "none", T2 = "pan-x", G2 = "pan-y", D2 = ia();
37003
+ function tr(F, G) {
37004
37004
  this.manager = F, this.set(G);
37005
37005
  }
37006
- er.prototype = {
37006
+ tr.prototype = {
37007
37007
  /**
37008
37008
  * set the touchAction value on the element or enable the polyfill
37009
37009
  * @param {String} value
@@ -37037,7 +37037,7 @@ var bH = { exports: {} };
37037
37037
  G.preventDefault();
37038
37038
  return;
37039
37039
  }
37040
- var ot = this.actions, ft = lt(ot, $1) && !D2[$1], Rt = lt(ot, $2) && !D2[$2], qt = lt(ot, T2) && !D2[T2];
37040
+ var ot = this.actions, ft = lt(ot, $1) && !D2[$1], Rt = lt(ot, G2) && !D2[G2], qt = lt(ot, T2) && !D2[T2];
37041
37041
  if (ft) {
37042
37042
  var ue = F.pointers.length === 1, Te = F.distance < 2, oe = F.deltaTime < 250;
37043
37043
  if (ue && Te && oe)
@@ -37057,8 +37057,8 @@ var bH = { exports: {} };
37057
37057
  function Tr(F) {
37058
37058
  if (lt(F, $1))
37059
37059
  return $1;
37060
- var G = lt(F, T2), J = lt(F, $2);
37061
- return G && J ? $1 : G || J ? G ? T2 : $2 : lt(F, Ue) ? Ue : h2;
37060
+ var G = lt(F, T2), J = lt(F, G2);
37061
+ return G && J ? $1 : G || J ? G ? T2 : G2 : lt(F, Ue) ? Ue : h2;
37062
37062
  }
37063
37063
  function ia() {
37064
37064
  if (!z1)
@@ -37068,7 +37068,7 @@ var bH = { exports: {} };
37068
37068
  F[J] = G ? t.CSS.supports("touch-action", J) : !0;
37069
37069
  }), F;
37070
37070
  }
37071
- var ui = 1, f1 = 2, un = 4, W1 = 8, Q2 = W1, Z2 = 16, q2 = 32;
37071
+ var ui = 1, f1 = 2, un = 4, W1 = 8, Q2 = W1, $2 = 16, Z2 = 32;
37072
37072
  function R1(F) {
37073
37073
  this.options = w({}, this.defaults, F || {}), this.id = $e(), this.manager = null, this.options.enable = z(this.options.enable, !0), this.state = ui, this.simultaneous = {}, this.requireFail = [];
37074
37074
  }
@@ -37095,7 +37095,7 @@ var bH = { exports: {} };
37095
37095
  if (m(F, "recognizeWith", this))
37096
37096
  return this;
37097
37097
  var G = this.simultaneous;
37098
- return F = rr(F, this), G[F.id] || (G[F.id] = F, F.recognizeWith(this)), this;
37098
+ return F = er(F, this), G[F.id] || (G[F.id] = F, F.recognizeWith(this)), this;
37099
37099
  },
37100
37100
  /**
37101
37101
  * drop the simultaneous link. it doesnt remove the link on the other recognizer.
@@ -37103,7 +37103,7 @@ var bH = { exports: {} };
37103
37103
  * @returns {Recognizer} this
37104
37104
  */
37105
37105
  dropRecognizeWith: function(F) {
37106
- return m(F, "dropRecognizeWith", this) ? this : (F = rr(F, this), delete this.simultaneous[F.id], this);
37106
+ return m(F, "dropRecognizeWith", this) ? this : (F = er(F, this), delete this.simultaneous[F.id], this);
37107
37107
  },
37108
37108
  /**
37109
37109
  * recognizer can only run when an other is failing
@@ -37114,7 +37114,7 @@ var bH = { exports: {} };
37114
37114
  if (m(F, "requireFailure", this))
37115
37115
  return this;
37116
37116
  var G = this.requireFail;
37117
- return F = rr(F, this), xt(G, F) === -1 && (G.push(F), F.requireFailure(this)), this;
37117
+ return F = er(F, this), xt(G, F) === -1 && (G.push(F), F.requireFailure(this)), this;
37118
37118
  },
37119
37119
  /**
37120
37120
  * drop the requireFailure link. it does not remove the link on the other recognizer.
@@ -37124,7 +37124,7 @@ var bH = { exports: {} };
37124
37124
  dropRequireFailure: function(F) {
37125
37125
  if (m(F, "dropRequireFailure", this))
37126
37126
  return this;
37127
- F = rr(F, this);
37127
+ F = er(F, this);
37128
37128
  var G = xt(this.requireFail, F);
37129
37129
  return G > -1 && this.requireFail.splice(G, 1), this;
37130
37130
  },
@@ -37164,7 +37164,7 @@ var bH = { exports: {} };
37164
37164
  tryEmit: function(F) {
37165
37165
  if (this.canEmit())
37166
37166
  return this.emit(F);
37167
- this.state = q2;
37167
+ this.state = Z2;
37168
37168
  },
37169
37169
  /**
37170
37170
  * can we emit?
@@ -37172,7 +37172,7 @@ var bH = { exports: {} };
37172
37172
  */
37173
37173
  canEmit: function() {
37174
37174
  for (var F = 0; F < this.requireFail.length; ) {
37175
- if (!(this.requireFail[F].state & (q2 | ui)))
37175
+ if (!(this.requireFail[F].state & (Z2 | ui)))
37176
37176
  return !1;
37177
37177
  F++;
37178
37178
  }
@@ -37185,10 +37185,10 @@ var bH = { exports: {} };
37185
37185
  recognize: function(F) {
37186
37186
  var G = w({}, F);
37187
37187
  if (!B(this.options.enable, [this, G])) {
37188
- this.reset(), this.state = q2;
37188
+ this.reset(), this.state = Z2;
37189
37189
  return;
37190
37190
  }
37191
- this.state & (Q2 | Z2 | q2) && (this.state = ui), this.state = this.process(G), this.state & (f1 | un | W1 | Z2) && this.tryEmit(G);
37191
+ this.state & (Q2 | $2 | Z2) && (this.state = ui), this.state = this.process(G), this.state & (f1 | un | W1 | $2) && this.tryEmit(G);
37192
37192
  },
37193
37193
  /**
37194
37194
  * return the state of the recognizer
@@ -37216,12 +37216,12 @@ var bH = { exports: {} };
37216
37216
  }
37217
37217
  };
37218
37218
  function lr(F) {
37219
- return F & Z2 ? "cancel" : F & W1 ? "end" : F & un ? "move" : F & f1 ? "start" : "";
37219
+ return F & $2 ? "cancel" : F & W1 ? "end" : F & un ? "move" : F & f1 ? "start" : "";
37220
37220
  }
37221
37221
  function Sn(F) {
37222
37222
  return F == Me ? "down" : F == He ? "up" : F == Xe ? "left" : F == Se ? "right" : "";
37223
37223
  }
37224
- function rr(F, G) {
37224
+ function er(F, G) {
37225
37225
  var J = G.manager;
37226
37226
  return J ? J.get(F) : F;
37227
37227
  }
@@ -37258,7 +37258,7 @@ var bH = { exports: {} };
37258
37258
  */
37259
37259
  process: function(F) {
37260
37260
  var G = this.state, J = F.eventType, ot = G & (f1 | un), ft = this.attrTest(F);
37261
- return ot && (J & ne || !ft) ? G | Z2 : ot || ft ? J & se ? G | W1 : G & f1 ? G | un : f1 : q2;
37261
+ return ot && (J & ne || !ft) ? G | $2 : ot || ft ? J & se ? G | W1 : G & f1 ? G | un : f1 : Z2;
37262
37262
  }
37263
37263
  });
37264
37264
  function Gn() {
@@ -37277,7 +37277,7 @@ var bH = { exports: {} };
37277
37277
  },
37278
37278
  getTouchAction: function() {
37279
37279
  var F = this.options.direction, G = [];
37280
- return F & Ve && G.push($2), F & Nt && G.push(T2), G;
37280
+ return F & Ve && G.push(G2), F & Nt && G.push(T2), G;
37281
37281
  },
37282
37282
  directionTest: function(F) {
37283
37283
  var G = this.options, J = !0, ot = F.distance, ft = F.direction, Rt = F.deltaX, qt = F.deltaY;
@@ -37348,7 +37348,7 @@ var bH = { exports: {} };
37348
37348
  }, G.time, this);
37349
37349
  else if (F.eventType & se)
37350
37350
  return Q2;
37351
- return q2;
37351
+ return Z2;
37352
37352
  },
37353
37353
  reset: function() {
37354
37354
  clearTimeout(this._timer);
@@ -37443,12 +37443,12 @@ var bH = { exports: {} };
37443
37443
  this.state = Q2, this.tryEmit();
37444
37444
  }, G.interval, this), f1) : Q2;
37445
37445
  }
37446
- return q2;
37446
+ return Z2;
37447
37447
  },
37448
37448
  failTimeout: function() {
37449
37449
  return this._timer = p(function() {
37450
- this.state = q2;
37451
- }, this.options.interval, this), q2;
37450
+ this.state = Z2;
37451
+ }, this.options.interval, this), Z2;
37452
37452
  },
37453
37453
  reset: function() {
37454
37454
  clearTimeout(this._timer);
@@ -37558,7 +37558,7 @@ var bH = { exports: {} };
37558
37558
  };
37559
37559
  var Q4 = 1, ci = 2;
37560
37560
  function I1(F, G) {
37561
- this.options = w({}, k2.defaults, G || {}), this.options.inputTarget = this.options.inputTarget || F, this.handlers = {}, this.session = {}, this.recognizers = [], this.oldCssProps = {}, this.element = F, this.input = kr(this), this.touchAction = new er(this, this.options.touchAction), Zn(this, !0), _(this.options.recognizers, function(J) {
37561
+ this.options = w({}, k2.defaults, G || {}), this.options.inputTarget = this.options.inputTarget || F, this.handlers = {}, this.session = {}, this.recognizers = [], this.oldCssProps = {}, this.element = F, this.input = kr(this), this.touchAction = new tr(this, this.options.touchAction), Zn(this, !0), _(this.options.recognizers, function(J) {
37562
37562
  var ot = this.add(new J[0](J[1]));
37563
37563
  J[2] && ot.recognizeWith(J[2]), J[3] && ot.requireFailure(J[3]);
37564
37564
  }, this);
@@ -37713,8 +37713,8 @@ var bH = { exports: {} };
37713
37713
  STATE_CHANGED: un,
37714
37714
  STATE_ENDED: W1,
37715
37715
  STATE_RECOGNIZED: Q2,
37716
- STATE_CANCELLED: Z2,
37717
- STATE_FAILED: q2,
37716
+ STATE_CANCELLED: $2,
37717
+ STATE_FAILED: Z2,
37718
37718
  DIRECTION_NONE: Ce,
37719
37719
  DIRECTION_LEFT: Xe,
37720
37720
  DIRECTION_RIGHT: Se,
@@ -37725,9 +37725,9 @@ var bH = { exports: {} };
37725
37725
  DIRECTION_ALL: N1,
37726
37726
  Manager: I1,
37727
37727
  Input: D1,
37728
- TouchAction: er,
37729
- TouchInput: Vt,
37730
- MouseInput: tr,
37728
+ TouchAction: tr,
37729
+ TouchInput: Pt,
37730
+ MouseInput: J2,
37731
37731
  PointerEventInput: tt,
37732
37732
  TouchMouseInput: Oe,
37733
37733
  SingleTouchInput: At,
@@ -38815,7 +38815,7 @@ class ltt {
38815
38815
  } = r;
38816
38816
  s = Number.isFinite(s) ? [s] : s || new Array(this.size).fill(0);
38817
38817
  let o;
38818
- a ? o = 5126 : !i && r.isIndexed ? o = t && zZ(t, K2.ELEMENT_INDEX_UINT32) ? 5125 : 5123 : o = i || 5126;
38818
+ a ? o = 5126 : !i && r.isIndexed ? o = t && zZ(t, X2.ELEMENT_INDEX_UINT32) ? 5125 : 5123 : o = i || 5126;
38819
38819
  let T = ott(i || o || 5126);
38820
38820
  this.doublePrecision = a, a && r.fp64 === !1 && (T = Float32Array), this.value = null, this.settings = {
38821
38821
  ...r,
@@ -42842,38 +42842,38 @@ class i7 {
42842
42842
  t.constructor !== Object ? m1(this, M2, t) : m1(this, M2, Object.assign({}, t));
42843
42843
  }
42844
42844
  clear() {
42845
- Pt(this, M2) !== !0 && m1(this, M2, !0);
42845
+ It(this, M2) !== !0 && m1(this, M2, !0);
42846
42846
  }
42847
42847
  expand(t) {
42848
- if (Pt(this, M2) === !1)
42848
+ if (It(this, M2) === !1)
42849
42849
  m1(this, M2, t);
42850
- else if (Pt(this, M2) !== !0) {
42850
+ else if (It(this, M2) !== !0) {
42851
42851
  const r = Object.assign({}, t);
42852
- m1(this, M2, { OR: [Pt(this, M2), r] });
42852
+ m1(this, M2, { OR: [It(this, M2), r] });
42853
42853
  }
42854
42854
  }
42855
42855
  invert() {
42856
- if (Pt(this, M2) === !1)
42856
+ if (It(this, M2) === !1)
42857
42857
  m1(this, M2, !0);
42858
- else if (Pt(this, M2) === !0)
42858
+ else if (It(this, M2) === !0)
42859
42859
  m1(this, M2, !1);
42860
42860
  else {
42861
- const t = Object.assign({}, Pt(this, M2));
42861
+ const t = Object.assign({}, It(this, M2));
42862
42862
  m1(this, M2, { NOT: t });
42863
42863
  }
42864
42864
  }
42865
42865
  getStyleFilter() {
42866
- return T1(this, Ms, A9).call(this, Pt(this, M2));
42866
+ return T1(this, Ms, A9).call(this, It(this, M2));
42867
42867
  }
42868
42868
  match(t) {
42869
- return T1(this, As, H9).call(this, t, Pt(this, M2));
42869
+ return T1(this, As, H9).call(this, t, It(this, M2));
42870
42870
  }
42871
42871
  narrow(t) {
42872
- if (Pt(this, M2) === !0)
42872
+ if (It(this, M2) === !0)
42873
42873
  m1(this, M2, t);
42874
- else if (Pt(this, M2) !== !1) {
42874
+ else if (It(this, M2) !== !1) {
42875
42875
  const r = Object.assign({}, t);
42876
- m1(this, M2, { AND: [Pt(this, M2), r] });
42876
+ m1(this, M2, { AND: [It(this, M2), r] });
42877
42877
  }
42878
42878
  }
42879
42879
  setFilter(t) {
@@ -42929,10 +42929,10 @@ class K9 extends Mm {
42929
42929
  super(...r);
42930
42930
  a1(this, Hs, !1);
42931
42931
  a1(this, Z6, void 0);
42932
- m1(this, Z6, new Map([...this.props.data].map((n) => [+n.featureId, n]))), Pt(this, Z6).forEach((n) => delete n.hidden);
42932
+ m1(this, Z6, new Map([...this.props.data].map((n) => [+n.featureId, n]))), It(this, Z6).forEach((n) => delete n.hidden);
42933
42933
  }
42934
42934
  get featureIds() {
42935
- return [...Pt(this, Z6).keys()];
42935
+ return [...It(this, Z6).keys()];
42936
42936
  }
42937
42937
  getShaders() {
42938
42938
  const r = super.getShaders();
@@ -42941,11 +42941,11 @@ ${r.fs}`.replace("isValid == 0.0", `isValid == 0.0 ${Vet}`), r.vs = `#version 30
42941
42941
  ${r.vs}`, r;
42942
42942
  }
42943
42943
  setDataProperty(r, n, i) {
42944
- const a = Pt(this, Z6).get(+r);
42944
+ const a = It(this, Z6).get(+r);
42945
42945
  a && (!(n in a) || a[n] !== i) && (a[n] = i, m1(this, Hs, !0));
42946
42946
  }
42947
42947
  redraw(r = !1) {
42948
- (r || Pt(this, Hs)) && (this.internalState && (this.internalState.changeFlags.dataChanged = !0), this.setNeedsUpdate(), m1(this, Hs, !1));
42948
+ (r || It(this, Hs)) && (this.internalState && (this.internalState.changeFlags.dataChanged = !0), this.setNeedsUpdate(), m1(this, Hs, !1));
42949
42949
  }
42950
42950
  }
42951
42951
  Hs = new WeakMap(), Z6 = new WeakMap(), Ql(K9, "layerName", "ArcMapLayer");
@@ -43023,10 +43023,10 @@ class Ret {
43023
43023
  a1(this, $a, void 0);
43024
43024
  a1(this, R4, void 0);
43025
43025
  a1(this, wu, void 0);
43026
- m1(this, wu, r), m1(this, Os, t.map), m1(this, $a, r.pathManager), Pt(this, $a).addWatcher(T1(this, Mu, jH).bind(this)), m1(this, H7, new Map([...t.annotations.values()].filter((i) => i["tile-layer"] === "pathways" && i.geometry === "LineString" && "type" in i && i.type.startsWith("line") && "kind" in i && "pathStartPosition" in i && "pathEndPosition" in i).map((i) => [i.featureId, i]))), m1(this, R4, new Map(Pt(this, $a).pathStyles().map((i) => [i.type, i])));
43027
- const n = [...Pt(this, R4).keys()].filter((i) => i !== "other");
43026
+ m1(this, wu, r), m1(this, Os, t.map), m1(this, $a, r.pathManager), It(this, $a).addWatcher(T1(this, Mu, jH).bind(this)), m1(this, H7, new Map([...t.annotations.values()].filter((i) => i["tile-layer"] === "pathways" && i.geometry === "LineString" && "type" in i && i.type.startsWith("line") && "kind" in i && "pathStartPosition" in i && "pathEndPosition" in i).map((i) => [i.featureId, i]))), m1(this, R4, new Map(It(this, $a).pathStyles().map((i) => [i.type, i])));
43027
+ const n = [...It(this, R4).keys()].filter((i) => i !== "other");
43028
43028
  m1(this, S7, new Map(
43029
- [...Pt(this, R4).keys()].map((i) => [
43029
+ [...It(this, R4).keys()].map((i) => [
43030
43030
  i,
43031
43031
  new i7({
43032
43032
  OR: [
@@ -43050,21 +43050,21 @@ class Ret {
43050
43050
  ));
43051
43051
  }
43052
43052
  enable(t = !0) {
43053
- t && !Pt(this, Cs) ? (T1(this, Hu, UH).call(this), Pt(this, Os).addControl(Pt(this, kn))) : !t && Pt(this, Cs) && (Pt(this, kn) && (Pt(this, Os).removeControl(Pt(this, kn)), Pt(this, kn).finalize(), m1(this, kn, null)), m1(this, X3, /* @__PURE__ */ new Map())), m1(this, Cs, t);
43053
+ t && !It(this, Cs) ? (T1(this, Hu, UH).call(this), It(this, Os).addControl(It(this, kn))) : !t && It(this, Cs) && (It(this, kn) && (It(this, Os).removeControl(It(this, kn)), It(this, kn).finalize(), m1(this, kn, null)), m1(this, X3, /* @__PURE__ */ new Map())), m1(this, Cs, t);
43054
43054
  }
43055
43055
  queryFeaturesAtPoint(t) {
43056
- return Pt(this, kn) ? Pt(this, kn).pickMultipleObjects(t).map((r) => T1(this, Au, zH).call(this, r.object)) : [];
43056
+ return It(this, kn) ? It(this, kn).pickMultipleObjects(t).map((r) => T1(this, Au, zH).call(this, r.object)) : [];
43057
43057
  }
43058
43058
  redraw(t = !1) {
43059
- for (const r of Pt(this, ii).values())
43059
+ for (const r of It(this, ii).values())
43060
43060
  r.redraw(t);
43061
43061
  }
43062
43062
  removeFeatureState(t, r) {
43063
- const n = Pt(this, X3).get(+t);
43063
+ const n = It(this, X3).get(+t);
43064
43064
  n && (n.setDataProperty(t, r, !1), n.redraw());
43065
43065
  }
43066
43066
  setFeatureState(t, r) {
43067
- const n = Pt(this, X3).get(+t);
43067
+ const n = It(this, X3).get(+t);
43068
43068
  if (n) {
43069
43069
  for (const [i, a] of Object.entries(r))
43070
43070
  n.setDataProperty(t, i, a);
@@ -43075,49 +43075,49 @@ class Ret {
43075
43075
  this.setVisibilityFilter(new i7(!0));
43076
43076
  }
43077
43077
  setVisibilityFilter(t) {
43078
- if (m1(this, A7, t), Pt(this, kn)) {
43078
+ if (m1(this, A7, t), It(this, kn)) {
43079
43079
  const r = /* @__PURE__ */ new Map();
43080
- for (const [n, i] of Pt(this, ii).entries()) {
43081
- i.featureIds.forEach((s) => Pt(this, X3).delete(+s));
43082
- const a = Pt(this, R4).get(n);
43080
+ for (const [n, i] of It(this, ii).entries()) {
43081
+ i.featureIds.forEach((s) => It(this, X3).delete(+s));
43082
+ const a = It(this, R4).get(n);
43083
43083
  if (a) {
43084
43084
  const s = a.dashed ? new If(T1(this, q6, Z0).call(this, n)) : new K9(T1(this, q6, Z0).call(this, n));
43085
- s.featureIds.forEach((o) => Pt(this, X3).set(+o, i)), r.set(n, s);
43085
+ s.featureIds.forEach((o) => It(this, X3).set(+o, i)), r.set(n, s);
43086
43086
  }
43087
43087
  }
43088
- m1(this, ii, r), Pt(this, kn).setProps({
43089
- layers: [...Pt(this, ii).values()]
43088
+ m1(this, ii, r), It(this, kn).setProps({
43089
+ layers: [...It(this, ii).values()]
43090
43090
  });
43091
43091
  }
43092
43092
  }
43093
43093
  setPaint(t) {
43094
43094
  const r = t.dimmed || !1;
43095
- Pt(this, Ss) !== r && (m1(this, Ss, r), this.redraw(!0));
43095
+ It(this, Ss) !== r && (m1(this, Ss, r), this.redraw(!0));
43096
43096
  }
43097
43097
  }
43098
43098
  ii = new WeakMap(), kn = new WeakMap(), Ss = new WeakMap(), Cs = new WeakMap(), A7 = new WeakMap(), X3 = new WeakMap(), yp = new WeakMap(), Os = new WeakMap(), H7 = new WeakMap(), S7 = new WeakMap(), $a = new WeakMap(), R4 = new WeakMap(), wu = new WeakMap(), C7 = new WeakSet(), Rf = function(t) {
43099
- const r = Pt(this, R4).get(t);
43099
+ const r = It(this, R4).get(t);
43100
43100
  if (r) {
43101
43101
  const n = r.dashed ? new If(T1(this, q6, Z0).call(this, t)) : new K9(T1(this, q6, Z0).call(this, t));
43102
- n.featureIds.forEach((i) => Pt(this, X3).set(+i, n)), Pt(this, ii).set(t, n);
43102
+ n.featureIds.forEach((i) => It(this, X3).set(+i, n)), It(this, ii).set(t, n);
43103
43103
  }
43104
43104
  }, Eu = new WeakSet(), NH = function(t) {
43105
- const r = Pt(this, ii).get(t);
43106
- r && (r.featureIds.forEach((n) => Pt(this, X3).delete(+n)), Pt(this, ii).delete(t));
43105
+ const r = It(this, ii).get(t);
43106
+ r && (r.featureIds.forEach((n) => It(this, X3).delete(+n)), It(this, ii).delete(t));
43107
43107
  }, O7 = new WeakSet(), kf = function(t) {
43108
43108
  return t.hidden ? [0, 0, 0, 0] : Hz(
43109
43109
  t.kind,
43110
- t.active || t.selected ? 255 : Pt(this, Ss) ? 20 : 160
43110
+ t.active || t.selected ? 255 : It(this, Ss) ? 20 : 160
43111
43111
  );
43112
43112
  }, Mu = new WeakSet(), jH = function(t = {}) {
43113
- if (Pt(this, kn) && "pathType" in t) {
43114
- const r = t.pathType, n = Pt(this, $a).pathTypeEnabled(r);
43115
- n && !Pt(this, ii).has(r) ? T1(this, C7, Rf).call(this, r) : !n && Pt(this, ii).has(r) && T1(this, Eu, NH).call(this, r), Pt(this, kn).setProps({
43116
- layers: [...Pt(this, ii).values()]
43113
+ if (It(this, kn) && "pathType" in t) {
43114
+ const r = t.pathType, n = It(this, $a).pathTypeEnabled(r);
43115
+ n && !It(this, ii).has(r) ? T1(this, C7, Rf).call(this, r) : !n && It(this, ii).has(r) && T1(this, Eu, NH).call(this, r), It(this, kn).setProps({
43116
+ layers: [...It(this, ii).values()]
43117
43117
  });
43118
43118
  }
43119
43119
  }, q6 = new WeakSet(), Z0 = function(t) {
43120
- const r = Pt(this, S7).get(t), n = (r ? [...Pt(this, H7).values()].filter((i) => r.match(i)) : []).filter((i) => Pt(this, A7).match(i));
43120
+ const r = It(this, S7).get(t), n = (r ? [...It(this, H7).values()].filter((i) => r.match(i)) : []).filter((i) => It(this, A7).match(i));
43121
43121
  return {
43122
43122
  id: `arc-${t}`,
43123
43123
  data: n,
@@ -43140,8 +43140,8 @@ ii = new WeakMap(), kn = new WeakMap(), Ss = new WeakMap(), Cs = new WeakMap(),
43140
43140
  flightPath: !0
43141
43141
  };
43142
43142
  }, Hu = new WeakSet(), UH = function() {
43143
- [...Pt(this, R4).values()].filter((t) => Pt(this, $a).pathTypeEnabled(t.type)).forEach((t) => T1(this, C7, Rf).call(this, t.type)), m1(this, kn, new Det({
43144
- layers: [...Pt(this, ii).values()]
43143
+ [...It(this, R4).values()].filter((t) => It(this, $a).pathTypeEnabled(t.type)).forEach((t) => T1(this, C7, Rf).call(this, t.type)), m1(this, kn, new Det({
43144
+ layers: [...It(this, ii).values()]
43145
43145
  }));
43146
43146
  };
43147
43147
  const Y9 = "features", ket = "Background image layer", GH = "background-image-layer";
@@ -43197,14 +43197,14 @@ class Bet extends $H {
43197
43197
  `${this.__id}_${n}`,
43198
43198
  this.vectorSourceId(n)
43199
43199
  );
43200
- this.addLayer(a, this.__layerOptions), i && Pt(this, D7).push(a);
43200
+ this.addLayer(a, this.__layerOptions), i && It(this, D7).push(a);
43201
43201
  }
43202
43202
  __addPathwayStyleLayers() {
43203
43203
  const r = this.vectorSourceId(Gi);
43204
43204
  this.__map.getSource("vector-tiles").vectorLayerIds.includes(r) && (this.__addStyleLayer(zz, Gi, !0), this.__addStyleLayer(Zz, Gi), this.__addStyleLayer(qz, Gi), this.__addStyleLayer(Bu, Gi, !0), this.__addStyleLayer(Uz, Gi, !0), this.__addStyleLayer(Kz, Gi, !0), this.__addStyleLayer(Yz, Gi, !0), this.__addStyleLayer(Xz, Gi, !0), this.__addStyleLayer(Gz, Gi, !0), this.__addStyleLayer($z, Gi, !0));
43205
43205
  }
43206
43206
  setFlatPathMode(r) {
43207
- for (const n of Pt(this, D7))
43207
+ for (const n of It(this, D7))
43208
43208
  this.map.setLayoutProperty(n.id, "visibility", r ? "visible" : "none");
43209
43209
  }
43210
43210
  setPaint(r) {
@@ -43285,11 +43285,11 @@ class Net {
43285
43285
  i.id
43286
43286
  ));
43287
43287
  for (const a of t.layers)
43288
- Pt(this, wi).addLayer(a);
43288
+ It(this, wi).addLayer(a);
43289
43289
  } else
43290
43290
  this.__layerOptions.activeRasterLayer = !1;
43291
43291
  for (const i of t.layers)
43292
- Pt(this, Zi).set(i.id, new Bet(
43292
+ It(this, Zi).set(i.id, new Bet(
43293
43293
  this.__flatmap,
43294
43294
  i,
43295
43295
  this.__layerOptions
@@ -43298,12 +43298,12 @@ class Net {
43298
43298
  }
43299
43299
  get layers() {
43300
43300
  const t = [];
43301
- Pt(this, wi) && t.push({
43302
- id: Pt(this, wi).id,
43303
- description: Pt(this, wi).description,
43304
- enabled: Pt(this, wi).active
43301
+ It(this, wi) && t.push({
43302
+ id: It(this, wi).id,
43303
+ description: It(this, wi).description,
43304
+ enabled: It(this, wi).active
43305
43305
  });
43306
- for (const r of Pt(this, Zi).values())
43306
+ for (const r of It(this, Zi).values())
43307
43307
  t.push({
43308
43308
  id: r.id,
43309
43309
  description: r.description,
@@ -43316,62 +43316,62 @@ class Net {
43316
43316
  }
43317
43317
  activate(t, r = !0) {
43318
43318
  if (t === GH) {
43319
- if (Pt(this, wi)) {
43320
- Pt(this, wi).activate(r), this.__layerOptions.activeRasterLayer = r;
43321
- for (const n of Pt(this, Zi).values())
43319
+ if (It(this, wi)) {
43320
+ It(this, wi).activate(r), this.__layerOptions.activeRasterLayer = r;
43321
+ for (const n of It(this, Zi).values())
43322
43322
  n.setPaint(this.__layerOptions);
43323
43323
  }
43324
43324
  } else {
43325
- const n = Pt(this, Zi).get(t);
43325
+ const n = It(this, Zi).get(t);
43326
43326
  n && n.activate(r);
43327
43327
  }
43328
43328
  }
43329
43329
  addMarker(t, r, n = {}) {
43330
- Pt(this, Ds).addMarker(t, r, n);
43330
+ It(this, Ds).addMarker(t, r, n);
43331
43331
  }
43332
43332
  clearMarkers() {
43333
- Pt(this, Ds).clearMarkers();
43333
+ It(this, Ds).clearMarkers();
43334
43334
  }
43335
43335
  featuresAtPoint(t) {
43336
43336
  let r = [];
43337
- return Pt(this, Mr) && (r = Pt(this, Mr).queryFeaturesAtPoint(t)), r.length === 0 && (r = this.__map.queryRenderedFeatures(t)), r;
43337
+ return It(this, Mr) && (r = It(this, Mr).queryFeaturesAtPoint(t)), r.length === 0 && (r = this.__map.queryRenderedFeatures(t)), r;
43338
43338
  }
43339
43339
  removeFeatureState(t, r) {
43340
- Pt(this, Mr) && Pt(this, Mr).removeFeatureState(t.id, r);
43340
+ It(this, Mr) && It(this, Mr).removeFeatureState(t.id, r);
43341
43341
  }
43342
43342
  setFeatureState(t, r) {
43343
- Pt(this, Mr) && Pt(this, Mr).setFeatureState(t.id, r);
43343
+ It(this, Mr) && It(this, Mr).setFeatureState(t.id, r);
43344
43344
  }
43345
43345
  setPaint(t = {}) {
43346
- this.__layerOptions = eo(t, this.__layerOptions), Pt(this, wi) && Pt(this, wi).setPaint(this.__layerOptions);
43347
- for (const r of Pt(this, Zi).values())
43346
+ this.__layerOptions = eo(t, this.__layerOptions), It(this, wi) && It(this, wi).setPaint(this.__layerOptions);
43347
+ for (const r of It(this, Zi).values())
43348
43348
  r.setPaint(this.__layerOptions);
43349
- Pt(this, Mr) && Pt(this, Mr).setPaint(t);
43349
+ It(this, Mr) && It(this, Mr).setPaint(t);
43350
43350
  }
43351
43351
  setFilter(t = {}) {
43352
43352
  this.__layerOptions = eo(t, this.__layerOptions);
43353
- for (const r of Pt(this, Zi).values())
43353
+ for (const r of It(this, Zi).values())
43354
43354
  r.setFilter(this.__layerOptions);
43355
- if (Pt(this, Mr)) {
43355
+ if (It(this, Mr)) {
43356
43356
  const r = t.sckan || "valid", n = r == "none" ? { NOT: { HAS: "sckan" } } : r == "valid" ? { sckan: !0 } : r == "invalid" ? { NOT: { sckan: !0 } } : !0, i = new i7(n);
43357
- "taxons" in t && i.narrow({ taxons: t.taxons }), Pt(this, Mr).setVisibilityFilter(i);
43357
+ "taxons" in t && i.narrow({ taxons: t.taxons }), It(this, Mr).setVisibilityFilter(i);
43358
43358
  }
43359
43359
  }
43360
43360
  clearVisibilityFilter() {
43361
- for (const t of Pt(this, Zi).values())
43361
+ for (const t of It(this, Zi).values())
43362
43362
  t.clearVisibilityFilter();
43363
- Pt(this, Mr) && Pt(this, Mr).clearVisibilityFilter();
43363
+ It(this, Mr) && It(this, Mr).clearVisibilityFilter();
43364
43364
  }
43365
43365
  setVisibilityFilter(t) {
43366
43366
  const r = t.getStyleFilter();
43367
- for (const n of Pt(this, Zi).values())
43367
+ for (const n of It(this, Zi).values())
43368
43368
  n.setVisibilityFilter(r);
43369
- Pt(this, Mr) && Pt(this, Mr).setVisibilityFilter(t);
43369
+ It(this, Mr) && It(this, Mr).setVisibilityFilter(t);
43370
43370
  }
43371
43371
  setFlightPathMode(t = !0) {
43372
- if (Pt(this, Mr)) {
43373
- Pt(this, Mr).enable(t);
43374
- for (const r of Pt(this, Zi).values())
43372
+ if (It(this, Mr)) {
43373
+ It(this, Mr).enable(t);
43374
+ for (const r of It(this, Zi).values())
43375
43375
  r.setFlatPathMode(!t);
43376
43376
  }
43377
43377
  }
@@ -43765,13 +43765,13 @@ class Wet {
43765
43765
  return this.__map = t, this.__container = document.createElement("div"), this.__container.className = "maplibregl-ctrl", this.__button = document.createElement("button"), this.__button.id = "map-annotated-button", this.__button.className = "control-button text-button", this.__button.setAttribute("type", "button"), this.__button.setAttribute("aria-label", "Draw on map for annotation"), this.__button.textContent = "DRAW", this.__button.title = "Draw on map for annotation", this.__container.appendChild(this.__button), this.__container.addEventListener("click", this.onClick_.bind(this)), this.__setBackground(), this.__container;
43766
43766
  }
43767
43767
  __setBackground() {
43768
- Pt(this, W6) ? this.__button.setAttribute("style", "background: red") : this.__button.removeAttribute("style");
43768
+ It(this, W6) ? this.__button.setAttribute("style", "background: red") : this.__button.removeAttribute("style");
43769
43769
  }
43770
43770
  onRemove() {
43771
43771
  this.__container.parentNode.removeChild(this.__container), this.__map = null;
43772
43772
  }
43773
43773
  onClick_(t) {
43774
- t.target.id === "map-annotated-button" && (m1(this, W6, !Pt(this, W6)), this.__setBackground(), this.__flatmap.showAnnotator(Pt(this, W6))), t.stopPropagation();
43774
+ t.target.id === "map-annotated-button" && (m1(this, W6, !It(this, W6)), this.__setBackground(), this.__flatmap.showAnnotator(It(this, W6))), t.stopPropagation();
43775
43775
  }
43776
43776
  }
43777
43777
  W6 = new WeakMap();
@@ -44630,7 +44630,7 @@ var qH = { exports: {} };
44630
44630
  function ce(O) {
44631
44631
  return !!O.featureTarget && !!O.featureTarget.properties && O.featureTarget.properties.meta === I.FEATURE;
44632
44632
  }
44633
- function G2(O) {
44633
+ function U2(O) {
44634
44634
  var U = O.featureTarget;
44635
44635
  return !!U && !!U.properties && U.properties.meta === I.VERTEX;
44636
44636
  }
@@ -44643,7 +44643,7 @@ var qH = { exports: {} };
44643
44643
  function ln(O) {
44644
44644
  return O.keyCode === 13;
44645
44645
  }
44646
- var he = Object.freeze({ __proto__: null, isOfMetaType: En, isShiftMousedown: li, isActiveFeature: Sr, isInactiveFeature: Mn, noTarget: An, isFeature: ce, isVertex: G2, isShiftDown: O2, isEscapeKey: sn, isEnterKey: ln, isTrue: function() {
44646
+ var he = Object.freeze({ __proto__: null, isOfMetaType: En, isShiftMousedown: li, isActiveFeature: Sr, isInactiveFeature: Mn, noTarget: An, isFeature: ce, isVertex: U2, isShiftDown: O2, isEscapeKey: sn, isEnterKey: ln, isTrue: function() {
44647
44647
  return !0;
44648
44648
  } }), Q1 = n1;
44649
44649
  function n1(O, U) {
@@ -44723,10 +44723,10 @@ var qH = { exports: {} };
44723
44723
  } }, n1.convert = function(O) {
44724
44724
  return O instanceof n1 ? O : Array.isArray(O) ? new n1(O[0], O[1]) : O;
44725
44725
  };
44726
- var J2 = n(Q1);
44727
- function tr(O, U) {
44726
+ var Y2 = n(Q1);
44727
+ function J2(O, U) {
44728
44728
  var F = U.getBoundingClientRect();
44729
- return new J2(O.clientX - F.left - (U.clientLeft || 0), O.clientY - F.top - (U.clientTop || 0));
44729
+ return new Y2(O.clientX - F.left - (U.clientLeft || 0), O.clientY - F.top - (U.clientTop || 0));
44730
44730
  }
44731
44731
  function s1(O, U, F, G) {
44732
44732
  return { type: w.FEATURE, properties: { meta: I.VERTEX, parent: O, coord_path: F, active: G ? B.ACTIVE : B.INACTIVE }, geometry: { type: w.POINT, coordinates: U } };
@@ -44824,7 +44824,7 @@ var qH = { exports: {} };
44824
44824
  }(O);
44825
44825
  };
44826
44826
  Ot instanceof Function || (Ot = Ot.default);
44827
- var Vt = { exports: {} }, te = Vt.exports = function(O) {
44827
+ var Pt = { exports: {} }, te = Pt.exports = function(O) {
44828
44828
  return new Ut(O);
44829
44829
  };
44830
44830
  function Ut(O) {
@@ -45000,7 +45000,7 @@ var qH = { exports: {} };
45000
45000
  });
45001
45001
  var z1 = Object.hasOwnProperty || function(O, U) {
45002
45002
  return U in O;
45003
- }, G1 = Vt.exports, h2 = Ue;
45003
+ }, G1 = Pt.exports, h2 = Ue;
45004
45004
  function Ue(O) {
45005
45005
  if (!(this instanceof Ue))
45006
45006
  return new Ue(O);
@@ -45043,9 +45043,9 @@ var qH = { exports: {} };
45043
45043
  return U.features.forEach(function(G) {
45044
45044
  G.geometry && (F = F.concat(bt(G.geometry.coordinates)));
45045
45045
  }), F;
45046
- }, T2 = G1, $2 = h2, D2 = { features: ["FeatureCollection"], coordinates: ["Point", "MultiPoint", "LineString", "MultiLineString", "Polygon", "MultiPolygon"], geometry: ["Feature"], geometries: ["GeometryCollection"] }, er = Object.keys(D2);
45046
+ }, T2 = G1, G2 = h2, D2 = { features: ["FeatureCollection"], coordinates: ["Point", "MultiPoint", "LineString", "MultiLineString", "Polygon", "MultiPolygon"], geometry: ["Feature"], geometries: ["GeometryCollection"] }, tr = Object.keys(D2);
45047
45047
  function Tr(O) {
45048
- for (var U = $2(), F = $1(O), G = 0; G < F.length; G++)
45048
+ for (var U = G2(), F = $1(O), G = 0; G < F.length; G++)
45049
45049
  U.include(F[G]);
45050
45050
  return U;
45051
45051
  }
@@ -45055,7 +45055,7 @@ var qH = { exports: {} };
45055
45055
  return Tr(O).polygon();
45056
45056
  }, tt.exports.bboxify = function(O) {
45057
45057
  return T2(O).map(function(U) {
45058
- U && er.some(function(F) {
45058
+ U && tr.some(function(F) {
45059
45059
  return !!U[F] && D2[F].indexOf(U.type) !== -1;
45060
45060
  }) && (U.bbox = Tr(U).bbox(), this.update(U));
45061
45061
  });
@@ -45152,7 +45152,7 @@ var qH = { exports: {} };
45152
45152
  }, W1.onMouseDown = function(O, U) {
45153
45153
  return Sr(U) ? this.startOnActiveFeature(O, U) : this.drawConfig.boxSelect && li(U) ? this.startBoxSelect(O, U) : void 0;
45154
45154
  }, W1.startBoxSelect = function(O, U) {
45155
- this.stopExtendedInteractions(O), this.map.dragPan.disable(), O.boxSelectStartLocation = tr(U.originalEvent, this.map.getContainer()), O.canBoxSelect = !0;
45155
+ this.stopExtendedInteractions(O), this.map.dragPan.disable(), O.boxSelectStartLocation = J2(U.originalEvent, this.map.getContainer()), O.canBoxSelect = !0;
45156
45156
  }, W1.onTouchStart = function(O, U) {
45157
45157
  if (Sr(U))
45158
45158
  return this.startOnActiveFeature(O, U);
@@ -45160,7 +45160,7 @@ var qH = { exports: {} };
45160
45160
  return O.canDragMove ? this.dragMove(O, U) : this.drawConfig.boxSelect && O.canBoxSelect ? this.whileBoxSelect(O, U) : void 0;
45161
45161
  }, W1.whileBoxSelect = function(O, U) {
45162
45162
  O.boxSelecting = !0, this.updateUIClasses({ mouse: _.ADD }), O.boxSelectElement || (O.boxSelectElement = document.createElement("div"), O.boxSelectElement.classList.add(p.BOX_SELECT), this.map.getContainer().appendChild(O.boxSelectElement));
45163
- var F = tr(U.originalEvent, this.map.getContainer()), G = Math.min(O.boxSelectStartLocation.x, F.x), J = Math.max(O.boxSelectStartLocation.x, F.x), ot = Math.min(O.boxSelectStartLocation.y, F.y), ft = Math.max(O.boxSelectStartLocation.y, F.y), Rt = "translate(" + G + "px, " + ot + "px)";
45163
+ var F = J2(U.originalEvent, this.map.getContainer()), G = Math.min(O.boxSelectStartLocation.x, F.x), J = Math.max(O.boxSelectStartLocation.x, F.x), ot = Math.min(O.boxSelectStartLocation.y, F.y), ft = Math.max(O.boxSelectStartLocation.y, F.y), Rt = "translate(" + G + "px, " + ot + "px)";
45164
45164
  O.boxSelectElement.style.transform = Rt, O.boxSelectElement.style.WebkitTransform = Rt, O.boxSelectElement.style.width = J - G + "px", O.boxSelectElement.style.height = ft - ot + "px";
45165
45165
  }, W1.dragMove = function(O, U) {
45166
45166
  O.dragMoving = !0, U.originalEvent.stopPropagation();
@@ -45171,7 +45171,7 @@ var qH = { exports: {} };
45171
45171
  if (O.dragMoving)
45172
45172
  this.fireUpdate();
45173
45173
  else if (O.boxSelecting) {
45174
- var G = [O.boxSelectStartLocation, tr(U.originalEvent, this.map.getContainer())], J = this.featuresAt(null, G, "click"), ot = this.getUniqueIds(J).filter(function(ft) {
45174
+ var G = [O.boxSelectStartLocation, J2(U.originalEvent, this.map.getContainer())], J = this.featuresAt(null, G, "click"), ot = this.getUniqueIds(J).filter(function(ft) {
45175
45175
  return !F.isSelected(ft);
45176
45176
  });
45177
45177
  ot.length && (this.select(ot), ot.forEach(function(ft) {
@@ -45213,7 +45213,7 @@ var qH = { exports: {} };
45213
45213
  F.length > 1 && this.map.fire(M.UNCOMBINE_FEATURES, { createdFeatures: F, deletedFeatures: G }), this.fireActionable();
45214
45214
  }
45215
45215
  };
45216
- var Q2 = En(I.VERTEX), Z2 = En(I.MIDPOINT), q2 = { fireUpdate: function() {
45216
+ var Q2 = En(I.VERTEX), $2 = En(I.MIDPOINT), Z2 = { fireUpdate: function() {
45217
45217
  this.map.fire(M.UPDATE, { action: C.CHANGE_COORDINATES, features: this.getSelected().map(function(O) {
45218
45218
  return O.toGeoJSON();
45219
45219
  }) });
@@ -45275,24 +45275,24 @@ var qH = { exports: {} };
45275
45275
  return O.feature.removeCoordinate(U);
45276
45276
  }), this.fireUpdate(), O.selectedCoordPaths = [], this.clearSelectedCoordinates(), this.fireActionable(O), O.feature.isValid() === !1 && (this.deleteFeature([O.featureId]), this.changeMode(S.SIMPLE_SELECT, {}));
45277
45277
  }, onMouseMove: function(O, U) {
45278
- var F = Sr(U), G = Q2(U), J = Z2(U), ot = O.selectedCoordPaths.length === 0;
45278
+ var F = Sr(U), G = Q2(U), J = $2(U), ot = O.selectedCoordPaths.length === 0;
45279
45279
  return F && ot || G && !ot ? this.updateUIClasses({ mouse: _.MOVE }) : this.updateUIClasses({ mouse: _.NONE }), (G || F || J) && O.dragMoving && this.fireUpdate(), this.stopDragging(O), !0;
45280
45280
  }, onMouseOut: function(O) {
45281
45281
  return O.dragMoving && this.fireUpdate(), !0;
45282
45282
  } };
45283
- q2.onTouchStart = q2.onMouseDown = function(O, U) {
45284
- return Q2(U) ? this.onVertex(O, U) : Sr(U) ? this.onFeature(O, U) : Z2(U) ? this.onMidpoint(O, U) : void 0;
45285
- }, q2.onDrag = function(O, U) {
45283
+ Z2.onTouchStart = Z2.onMouseDown = function(O, U) {
45284
+ return Q2(U) ? this.onVertex(O, U) : Sr(U) ? this.onFeature(O, U) : $2(U) ? this.onMidpoint(O, U) : void 0;
45285
+ }, Z2.onDrag = function(O, U) {
45286
45286
  if (O.canDragMove === !0) {
45287
45287
  O.dragMoving = !0, U.originalEvent.stopPropagation();
45288
45288
  var F = { lng: U.lngLat.lng - O.dragMoveLocation.lng, lat: U.lngLat.lat - O.dragMoveLocation.lat };
45289
45289
  O.selectedCoordPaths.length > 0 ? this.dragVertex(O, U, F) : this.dragFeature(O, U, F), O.dragMoveLocation = U.lngLat;
45290
45290
  }
45291
- }, q2.onClick = function(O, U) {
45291
+ }, Z2.onClick = function(O, U) {
45292
45292
  return An(U) ? this.clickNoTarget(O, U) : Sr(U) ? this.clickActiveFeature(O, U) : Mn(U) ? this.clickInactive(O, U) : void this.stopDragging(O);
45293
- }, q2.onTap = function(O, U) {
45293
+ }, Z2.onTap = function(O, U) {
45294
45294
  return An(U) ? this.clickNoTarget(O, U) : Sr(U) ? this.clickActiveFeature(O, U) : Mn(U) ? this.clickInactive(O, U) : void 0;
45295
- }, q2.onTouchEnd = q2.onMouseUp = function(O) {
45295
+ }, Z2.onTouchEnd = Z2.onMouseUp = function(O) {
45296
45296
  O.dragMoving && this.fireUpdate(), this.stopDragging(O);
45297
45297
  };
45298
45298
  var R1 = {};
@@ -45326,10 +45326,10 @@ var qH = { exports: {} };
45326
45326
  }, clickOnVertex: function(O) {
45327
45327
  return this.changeMode(S.SIMPLE_SELECT, { featureIds: [O.polygon.id] });
45328
45328
  }, onMouseMove: function(O, U) {
45329
- O.polygon.updateCoordinate("0." + O.currentVertexPosition, U.lngLat.lng, U.lngLat.lat), G2(U) && this.updateUIClasses({ mouse: _.POINTER });
45329
+ O.polygon.updateCoordinate("0." + O.currentVertexPosition, U.lngLat.lng, U.lngLat.lat), U2(U) && this.updateUIClasses({ mouse: _.POINTER });
45330
45330
  } };
45331
45331
  Sn.onTap = Sn.onClick = function(O, U) {
45332
- return G2(U) ? this.clickOnVertex(O, U) : this.clickAnywhere(O, U);
45332
+ return U2(U) ? this.clickOnVertex(O, U) : this.clickAnywhere(O, U);
45333
45333
  }, Sn.onKeyUp = function(O, U) {
45334
45334
  sn(U) ? (this.deleteFeature([O.polygon.id], { silent: !0 }), this.changeMode(S.SIMPLE_SELECT)) : ln(U) && this.changeMode(S.SIMPLE_SELECT, { featureIds: [O.polygon.id] });
45335
45335
  }, Sn.onStop = function(O) {
@@ -45356,7 +45356,7 @@ var qH = { exports: {} };
45356
45356
  }, Sn.onTrash = function(O) {
45357
45357
  this.deleteFeature([O.polygon.id], { silent: !0 }), this.changeMode(S.SIMPLE_SELECT);
45358
45358
  };
45359
- var rr = { onSetup: function(O) {
45359
+ var er = { onSetup: function(O) {
45360
45360
  var U, F, G = (O = O || {}).featureId, J = "forward";
45361
45361
  if (G) {
45362
45362
  if (!(U = this.getFeature(G)))
@@ -45382,25 +45382,25 @@ var qH = { exports: {} };
45382
45382
  }, clickOnVertex: function(O) {
45383
45383
  return this.changeMode(S.SIMPLE_SELECT, { featureIds: [O.line.id] });
45384
45384
  }, onMouseMove: function(O, U) {
45385
- O.line.updateCoordinate(O.currentVertexPosition, U.lngLat.lng, U.lngLat.lat), G2(U) && this.updateUIClasses({ mouse: _.POINTER });
45385
+ O.line.updateCoordinate(O.currentVertexPosition, U.lngLat.lng, U.lngLat.lat), U2(U) && this.updateUIClasses({ mouse: _.POINTER });
45386
45386
  } };
45387
- rr.onTap = rr.onClick = function(O, U) {
45388
- if (G2(U))
45387
+ er.onTap = er.onClick = function(O, U) {
45388
+ if (U2(U))
45389
45389
  return this.clickOnVertex(O, U);
45390
45390
  this.clickAnywhere(O, U);
45391
- }, rr.onKeyUp = function(O, U) {
45391
+ }, er.onKeyUp = function(O, U) {
45392
45392
  ln(U) ? this.changeMode(S.SIMPLE_SELECT, { featureIds: [O.line.id] }) : sn(U) && (this.deleteFeature([O.line.id], { silent: !0 }), this.changeMode(S.SIMPLE_SELECT));
45393
- }, rr.onStop = function(O) {
45393
+ }, er.onStop = function(O) {
45394
45394
  Qt.enable(this), this.activateUIButton(), this.getFeature(O.line.id) !== void 0 && (O.line.removeCoordinate("" + O.currentVertexPosition), O.line.isValid() ? this.map.fire(M.CREATE, { features: [O.line.toGeoJSON()] }) : (this.deleteFeature([O.line.id], { silent: !0 }), this.changeMode(S.SIMPLE_SELECT, {}, { silent: !0 })));
45395
- }, rr.onTrash = function(O) {
45395
+ }, er.onTrash = function(O) {
45396
45396
  this.deleteFeature([O.line.id], { silent: !0 }), this.changeMode(S.SIMPLE_SELECT);
45397
- }, rr.toDisplayFeatures = function(O, U, F) {
45397
+ }, er.toDisplayFeatures = function(O, U, F) {
45398
45398
  var G = U.properties.id === O.line.id;
45399
45399
  if (U.properties.active = G ? B.ACTIVE : B.INACTIVE, !G)
45400
45400
  return F(U);
45401
45401
  U.geometry.coordinates.length < 2 || (U.properties.meta = I.FEATURE, F(s1(O.line.id, U.geometry.coordinates[O.direction === "forward" ? U.geometry.coordinates.length - 2 : 1], "" + (O.direction === "forward" ? U.geometry.coordinates.length - 2 : 1), !1)), F(U));
45402
45402
  };
45403
- var j1 = { simple_select: W1, direct_select: q2, draw_point: R1, draw_polygon: Sn, draw_line_string: rr }, Gn = { defaultMode: S.SIMPLE_SELECT, keybindings: !0, touchEnabled: !0, clickBuffer: 2, touchBuffer: 25, boxSelect: !0, displayControlsDefault: !0, styles: si, modes: j1, controls: {}, userProperties: !1 }, Cn = { point: !0, line_string: !0, polygon: !0, trash: !0, combine_features: !0, uncombine_features: !0 }, a2 = { point: !1, line_string: !1, polygon: !1, trash: !1, combine_features: !1, uncombine_features: !1 };
45403
+ var j1 = { simple_select: W1, direct_select: Z2, draw_point: R1, draw_polygon: Sn, draw_line_string: er }, Gn = { defaultMode: S.SIMPLE_SELECT, keybindings: !0, touchEnabled: !0, clickBuffer: 2, touchBuffer: 25, boxSelect: !0, displayControlsDefault: !0, styles: si, modes: j1, controls: {}, userProperties: !1 }, Cn = { point: !0, line_string: !0, polygon: !0, trash: !0, combine_features: !0, uncombine_features: !0 }, a2 = { point: !1, line_string: !1, polygon: !1, trash: !1, combine_features: !1, uncombine_features: !1 };
45404
45404
  function cn(O, U) {
45405
45405
  return O.map(function(F) {
45406
45406
  return F.source ? F : r1(F, { id: F.id + "." + U, source: U === "hot" ? m.HOT : m.COLD });
@@ -45468,8 +45468,8 @@ var qH = { exports: {} };
45468
45468
  this.size = Gt.size;
45469
45469
  }
45470
45470
  function n2(Dt, Gt) {
45471
- var me = D3(Dt), Ze = !me && ya(Dt), J1 = !me && !Ze && m6(Dt), C1 = !me && !Ze && !J1 && l3(Dt), s2 = me || Ze || J1 || C1, V2 = s2 ? function(W2, On) {
45472
- for (var Xn = -1, wr = Array(W2); ++Xn < W2; )
45471
+ var me = D3(Dt), Ze = !me && ya(Dt), J1 = !me && !Ze && m6(Dt), C1 = !me && !Ze && !J1 && l3(Dt), s2 = me || Ze || J1 || C1, V2 = s2 ? function(q2, On) {
45472
+ for (var Xn = -1, wr = Array(q2); ++Xn < q2; )
45473
45473
  wr[Xn] = On(Xn);
45474
45474
  return wr;
45475
45475
  }(Dt.length, String) : [], Wr = V2.length;
@@ -45501,7 +45501,7 @@ var qH = { exports: {} };
45501
45501
  return dr(Dt) && Wn(Dt) == J;
45502
45502
  }
45503
45503
  function T6(Dt, Gt, me, Ze, J1) {
45504
- return Dt === Gt || (Dt == null || Gt == null || !dr(Dt) && !dr(Gt) ? Dt != Dt && Gt != Gt : function(C1, s2, V2, Wr, t2, W2) {
45504
+ return Dt === Gt || (Dt == null || Gt == null || !dr(Dt) && !dr(Gt) ? Dt != Dt && Gt != Gt : function(C1, s2, V2, Wr, t2, q2) {
45505
45505
  var On = D3(C1), Xn = D3(s2), wr = On ? ot : qr(C1), Kn = Xn ? ot : qr(s2), Yn = (wr = wr == J ? qe : wr) == qe, ki = (Kn = Kn == J ? qe : Kn) == qe, L2 = wr == Kn;
45506
45506
  if (L2 && m6(C1)) {
45507
45507
  if (!m6(s2))
@@ -45509,7 +45509,7 @@ var qH = { exports: {} };
45509
45509
  On = !0, Yn = !1;
45510
45510
  }
45511
45511
  if (L2 && !Yn)
45512
- return W2 || (W2 = new hn()), On || l3(C1) ? ga(C1, s2, V2, Wr, t2, W2) : function(A1, F1, P3, Bi, p4, Kr, fr) {
45512
+ return q2 || (q2 = new hn()), On || l3(C1) ? ga(C1, s2, V2, Wr, t2, q2) : function(A1, F1, P3, Bi, p4, Kr, fr) {
45513
45513
  switch (P3) {
45514
45514
  case f2:
45515
45515
  if (A1.byteLength != F1.byteLength || A1.byteOffset != F1.byteOffset)
@@ -45543,15 +45543,15 @@ var qH = { exports: {} };
45543
45543
  return i3.call(A1) == i3.call(F1);
45544
45544
  }
45545
45545
  return !1;
45546
- }(C1, s2, wr, V2, Wr, t2, W2);
45546
+ }(C1, s2, wr, V2, Wr, t2, q2);
45547
45547
  if (!(1 & V2)) {
45548
45548
  var Jn = Yn && Or.call(C1, "__wrapped__"), Xr = ki && Or.call(s2, "__wrapped__");
45549
45549
  if (Jn || Xr) {
45550
45550
  var ti = Jn ? C1.value() : C1, Oo = Xr ? s2.value() : s2;
45551
- return W2 || (W2 = new hn()), t2(ti, Oo, V2, Wr, W2);
45551
+ return q2 || (q2 = new hn()), t2(ti, Oo, V2, Wr, q2);
45552
45552
  }
45553
45553
  }
45554
- return L2 ? (W2 || (W2 = new hn()), function(A1, F1, P3, Bi, p4, Kr) {
45554
+ return L2 ? (q2 || (q2 = new hn()), function(A1, F1, P3, Bi, p4, Kr) {
45555
45555
  var fr = 1 & P3, Dr = Q6(A1), Le = Dr.length, V3 = Q6(F1).length;
45556
45556
  if (Le != V3 && !fr)
45557
45557
  return !1;
@@ -45580,7 +45580,7 @@ var qH = { exports: {} };
45580
45580
  I3 == R3 || !("constructor" in A1) || !("constructor" in F1) || typeof I3 == "function" && I3 instanceof I3 && typeof R3 == "function" && R3 instanceof R3 || (ve = !1);
45581
45581
  }
45582
45582
  return Kr.delete(A1), Kr.delete(F1), ve;
45583
- }(C1, s2, V2, Wr, t2, W2)) : !1;
45583
+ }(C1, s2, V2, Wr, t2, q2)) : !1;
45584
45584
  }(Dt, Gt, me, Ze, T6, J1));
45585
45585
  }
45586
45586
  function pa(Dt) {
@@ -45603,11 +45603,11 @@ var qH = { exports: {} };
45603
45603
  var t2 = C1.get(Dt);
45604
45604
  if (t2 && C1.get(Gt))
45605
45605
  return t2 == Gt;
45606
- var W2 = -1, On = !0, Xn = 2 & me ? new M1() : void 0;
45607
- for (C1.set(Dt, Gt), C1.set(Gt, Dt); ++W2 < V2; ) {
45608
- var wr = Dt[W2], Kn = Gt[W2];
45606
+ var q2 = -1, On = !0, Xn = 2 & me ? new M1() : void 0;
45607
+ for (C1.set(Dt, Gt), C1.set(Gt, Dt); ++q2 < V2; ) {
45608
+ var wr = Dt[q2], Kn = Gt[q2];
45609
45609
  if (Ze)
45610
- var Yn = s2 ? Ze(Kn, wr, W2, Gt, Dt, C1) : Ze(wr, Kn, W2, Dt, Gt, C1);
45610
+ var Yn = s2 ? Ze(Kn, wr, q2, Gt, Dt, C1) : Ze(wr, Kn, q2, Dt, Gt, C1);
45611
45611
  if (Yn !== void 0) {
45612
45612
  if (Yn)
45613
45613
  continue;
@@ -45913,7 +45913,7 @@ class Yet {
45913
45913
  },
45914
45914
  userProperties: !0,
45915
45915
  keybindings: !0
45916
- }), this.__map = null, this.__inDrawing = !1;
45916
+ }), this.__map = null;
45917
45917
  }
45918
45918
  onAdd(t) {
45919
45919
  return this.__map = t, this.__container = this.__draw.onAdd(t), this.__draw.options.controls.trash = !0, window.addEventListener("keyup", function(r) {
@@ -45950,14 +45950,11 @@ class Yet {
45950
45950
  r && (r.action = t.action, this.__uncommittedFeatureIds.has(r.id) || T1(this, k4, U6).call(this, "updated", r));
45951
45951
  }
45952
45952
  modeChangedEvent(t) {
45953
- this.__inDrawing = t.mode.startsWith("draw"), T1(this, k4, U6).call(this, "modeChanged", t);
45953
+ T1(this, k4, U6).call(this, "modeChanged", t);
45954
45954
  }
45955
45955
  selectionChangedEvent(t) {
45956
45956
  T1(this, k4, U6).call(this, "selectionChanged", t);
45957
45957
  }
45958
- inDrawingMode() {
45959
- return this.__inDrawing;
45960
- }
45961
45958
  commitEvent(t) {
45962
45959
  const r = t.feature;
45963
45960
  t.type === "deleted" ? this.__committedFeatures.delete(r.id) : this.__committedFeatures.set(r.id, r), this.__uncommittedFeatureIds.delete(r.id);
@@ -46066,16 +46063,16 @@ class t1t {
46066
46063
  return "top-right";
46067
46064
  }
46068
46065
  onAdd(t) {
46069
- return m1(this, P7, t), m1(this, K3, document.createElement("div")), Pt(this, K3).className = "maplibregl-ctrl", m1(this, Ln, document.createElement("button")), Pt(this, Ln).className = "control-button text-button", Pt(this, Ln).setAttribute("type", "button"), Pt(this, Ln).setAttribute("aria-label", "Show flight paths"), Pt(this, Ln).textContent = "3D", Pt(this, Ln).title = "Show/hide flight paths", Pt(this, K3).appendChild(Pt(this, Ln)), Pt(this, K3).addEventListener("click", this.onClick.bind(this)), Pt(this, Za) && (Pt(this, Ln).classList.add("control-active"), this.__setBackground()), Pt(this, K3);
46066
+ return m1(this, P7, t), m1(this, K3, document.createElement("div")), It(this, K3).className = "maplibregl-ctrl", m1(this, Ln, document.createElement("button")), It(this, Ln).className = "control-button text-button", It(this, Ln).setAttribute("type", "button"), It(this, Ln).setAttribute("aria-label", "Show flight paths"), It(this, Ln).textContent = "3D", It(this, Ln).title = "Show/hide flight paths", It(this, K3).appendChild(It(this, Ln)), It(this, K3).addEventListener("click", this.onClick.bind(this)), It(this, Za) && (It(this, Ln).classList.add("control-active"), this.__setBackground()), It(this, K3);
46070
46067
  }
46071
46068
  onRemove() {
46072
- Pt(this, K3).parentNode.removeChild(Pt(this, K3)), m1(this, P7, void 0);
46069
+ It(this, K3).parentNode.removeChild(It(this, K3)), m1(this, P7, void 0);
46073
46070
  }
46074
46071
  __setBackground() {
46075
- Pt(this, Za) ? Pt(this, Ln).setAttribute("style", "background: red") : Pt(this, Ln).removeAttribute("style");
46072
+ It(this, Za) ? It(this, Ln).setAttribute("style", "background: red") : It(this, Ln).removeAttribute("style");
46076
46073
  }
46077
46074
  onClick(t) {
46078
- Pt(this, Ln).classList.contains("control-active") ? (Pt(this, Vs).enableFlightPaths(!1), Pt(this, Ln).classList.remove("control-active"), m1(this, Za, !1)) : (Pt(this, Vs).enableFlightPaths(!0), Pt(this, Ln).classList.add("control-active"), m1(this, Za, !0)), this.__setBackground();
46075
+ It(this, Ln).classList.contains("control-active") ? (It(this, Vs).enableFlightPaths(!1), It(this, Ln).classList.remove("control-active"), m1(this, Za, !1)) : (It(this, Vs).enableFlightPaths(!0), It(this, Ln).classList.add("control-active"), m1(this, Za, !0)), this.__setBackground();
46079
46076
  }
46080
46077
  }
46081
46078
  Ln = new WeakMap(), K3 = new WeakMap(), Za = new WeakMap(), P7 = new WeakMap(), Vs = new WeakMap();
@@ -46301,11 +46298,11 @@ class a1t extends ZH {
46301
46298
  super(r, "taxon", "taxons");
46302
46299
  a1(this, X6, /* @__PURE__ */ new Map());
46303
46300
  for (const n of r.taxonIdentifiers)
46304
- Pt(this, X6).set(n, this.__flatmap.taxonName(n));
46301
+ It(this, X6).set(n, this.__flatmap.taxonName(n));
46305
46302
  }
46306
46303
  _addControlDetails() {
46307
46304
  let r = 0, n = 0;
46308
- const i = new Map([...Pt(this, X6)].sort((a, s) => Intl.Collator().compare(a[1], s[1])));
46305
+ const i = new Map([...It(this, X6)].sort((a, s) => Intl.Collator().compare(a[1], s[1])));
46309
46306
  for (const [a, s] of i) {
46310
46307
  const o = this._addControlLine(`${this.__prefix}${a}`, `${s}`);
46311
46308
  o.checked = !0, n += 1, r += 1;
@@ -46316,13 +46313,13 @@ class a1t extends ZH {
46316
46313
  };
46317
46314
  }
46318
46315
  _enableAll(r) {
46319
- for (const n of Pt(this, X6).keys()) {
46316
+ for (const n of It(this, X6).keys()) {
46320
46317
  const i = document.getElementById(`${this.__prefix}${n}`);
46321
46318
  i && (i.checked = r, this.__flatmap.enableConnectivityByTaxonIds(n, r));
46322
46319
  }
46323
46320
  }
46324
46321
  __enableControl(r, n) {
46325
- for (const i of Pt(this, X6).keys())
46322
+ for (const i of It(this, X6).keys())
46326
46323
  r === i && this.__flatmap.enableConnectivityByTaxonIds(i, n);
46327
46324
  }
46328
46325
  }
@@ -46821,7 +46818,7 @@ var VL = Zr, g1t = function() {
46821
46818
  return e.OPTIONS = {}, e;
46822
46819
  }();
46823
46820
  Wu.AbstractFindMath = g1t;
46824
- var Y2 = {}, y1t = D && D.__read || function(e, t) {
46821
+ var K2 = {}, y1t = D && D.__read || function(e, t) {
46825
46822
  var r = typeof Symbol == "function" && e[Symbol.iterator];
46826
46823
  if (!r)
46827
46824
  return e;
@@ -46846,34 +46843,34 @@ var Y2 = {}, y1t = D && D.__read || function(e, t) {
46846
46843
  (a || !(n in t)) && (a || (a = Array.prototype.slice.call(t, 0, n)), a[n] = t[n]);
46847
46844
  return e.concat(a || Array.prototype.slice.call(t));
46848
46845
  };
46849
- Object.defineProperty(Y2, "__esModule", { value: !0 });
46850
- Y2.split = Y2.isPercent = Y2.unicodeString = Y2.unicodeChars = Y2.quotePattern = Y2.sortLength = void 0;
46846
+ Object.defineProperty(K2, "__esModule", { value: !0 });
46847
+ K2.split = K2.isPercent = K2.unicodeString = K2.unicodeChars = K2.quotePattern = K2.sortLength = void 0;
46851
46848
  function v1t(e, t) {
46852
46849
  return e.length !== t.length ? t.length - e.length : e === t ? 0 : e < t ? -1 : 1;
46853
46850
  }
46854
- Y2.sortLength = v1t;
46851
+ K2.sortLength = v1t;
46855
46852
  function x1t(e) {
46856
46853
  return e.replace(/([\^$(){}+*?\-|\[\]\:\\])/g, "\\$1");
46857
46854
  }
46858
- Y2.quotePattern = x1t;
46855
+ K2.quotePattern = x1t;
46859
46856
  function L1t(e) {
46860
46857
  return Array.from(e).map(function(t) {
46861
46858
  return t.codePointAt(0);
46862
46859
  });
46863
46860
  }
46864
- Y2.unicodeChars = L1t;
46861
+ K2.unicodeChars = L1t;
46865
46862
  function b1t(e) {
46866
46863
  return String.fromCodePoint.apply(String, _1t([], y1t(e), !1));
46867
46864
  }
46868
- Y2.unicodeString = b1t;
46865
+ K2.unicodeString = b1t;
46869
46866
  function w1t(e) {
46870
46867
  return !!e.match(/%\s*$/);
46871
46868
  }
46872
- Y2.isPercent = w1t;
46869
+ K2.isPercent = w1t;
46873
46870
  function E1t(e) {
46874
46871
  return e.trim().split(/\s+/);
46875
46872
  }
46876
- Y2.split = E1t;
46873
+ K2.split = E1t;
46877
46874
  var s5 = {};
46878
46875
  (function(e) {
46879
46876
  Object.defineProperty(e, "__esModule", { value: !0 }), e.newState = e.STATE = e.AbstractMathItem = e.protoItem = void 0;
@@ -46985,7 +46982,7 @@ var M1t = D && D.__extends || /* @__PURE__ */ function() {
46985
46982
  };
46986
46983
  Object.defineProperty(qu, "__esModule", { value: !0 });
46987
46984
  qu.FindTeX = void 0;
46988
- var A1t = Wu, Bl = Y2, td = s5, H1t = function(e) {
46985
+ var A1t = Wu, Bl = K2, td = s5, H1t = function(e) {
46989
46986
  M1t(t, e);
46990
46987
  function t(r) {
46991
46988
  var n = e.call(this, r) || this;
@@ -49393,7 +49390,7 @@ var O1t = D && D.__extends || /* @__PURE__ */ function() {
49393
49390
  };
49394
49391
  Object.defineProperty(Lo, "__esModule", { value: !0 });
49395
49392
  Lo.MmlMo = void 0;
49396
- var y2 = c1, ed = Cm, kL = Y2, P1t = function(e) {
49393
+ var y2 = c1, ed = Cm, kL = K2, P1t = function(e) {
49397
49394
  O1t(t, e);
49398
49395
  function t() {
49399
49396
  var r = e !== null && e.apply(this, arguments) || this;
@@ -56464,7 +56461,7 @@ var Wrt = D && D.__extends || /* @__PURE__ */ function() {
56464
56461
  };
56465
56462
  Object.defineProperty(ac, "__esModule", { value: !0 });
56466
56463
  ac.CommonWrapper = void 0;
56467
- var tnt = oc, hb = c1, ent = Y2, f0 = Yrt(h4), Tb = h8, p0 = M3, Qb = ai, db = 2 / 18;
56464
+ var tnt = oc, hb = c1, ent = K2, f0 = Yrt(h4), Tb = h8, p0 = M3, Qb = ai, db = 2 / 18;
56468
56465
  function fb(e, t) {
56469
56466
  return e ? t < db ? 0 : db : t;
56470
56467
  }
@@ -56768,7 +56765,7 @@ var rnt = function(e) {
56768
56765
  }(tnt.AbstractWrapper);
56769
56766
  ac.CommonWrapper = rnt;
56770
56767
  var pb;
56771
- function U2() {
56768
+ function z2() {
56772
56769
  if (pb)
56773
56770
  return d0;
56774
56771
  pb = 1;
@@ -57225,7 +57222,7 @@ function snt() {
57225
57222
  throw new TypeError(d ? "Object is not iterable." : "Symbol.iterator is not defined.");
57226
57223
  };
57227
57224
  Object.defineProperty(m0, "__esModule", { value: !0 }), m0.SVGmath = void 0;
57228
- var n = U2(), i = sc, a = T8, s = M3, o = function(T) {
57225
+ var n = z2(), i = sc, a = T8, s = M3, o = function(T) {
57229
57226
  e(d, T);
57230
57227
  function d() {
57231
57228
  return T !== null && T.apply(this, arguments) || this;
@@ -57697,7 +57694,7 @@ function dnt() {
57697
57694
  };
57698
57695
  }();
57699
57696
  Object.defineProperty(P6, "__esModule", { value: !0 }), P6.SVGinferredMrow = P6.SVGmrow = void 0;
57700
- var t = U2(), r = lo, n = lo, i = uo, a = function(o) {
57697
+ var t = z2(), r = lo, n = lo, i = uo, a = function(o) {
57701
57698
  e(T, o);
57702
57699
  function T() {
57703
57700
  return o !== null && o.apply(this, arguments) || this;
@@ -57828,7 +57825,7 @@ function ynt() {
57828
57825
  };
57829
57826
  }();
57830
57827
  Object.defineProperty(g0, "__esModule", { value: !0 }), g0.SVGmi = void 0;
57831
- var t = U2(), r = lc, n = Q8, i = function(a) {
57828
+ var t = z2(), r = lc, n = Q8, i = function(a) {
57832
57829
  e(s, a);
57833
57830
  function s() {
57834
57831
  return a !== null && a.apply(this, arguments) || this;
@@ -57902,7 +57899,7 @@ var y0 = {}, Ws = {}, _nt = D && D.__extends || /* @__PURE__ */ function() {
57902
57899
  }, Kl;
57903
57900
  Object.defineProperty(Ws, "__esModule", { value: !0 });
57904
57901
  Ws.CommonMoMixin = Ws.DirectionVH = void 0;
57905
- var vb = M3, Lnt = Y2, bnt = ai;
57902
+ var vb = M3, Lnt = K2, bnt = ai;
57906
57903
  Ws.DirectionVH = (Kl = {}, Kl[1] = "v", Kl[2] = "h", Kl);
57907
57904
  function wnt(e) {
57908
57905
  return function(t) {
@@ -58077,7 +58074,7 @@ function Ent() {
58077
58074
  return b;
58078
58075
  };
58079
58076
  Object.defineProperty(y0, "__esModule", { value: !0 }), y0.SVGmo = void 0;
58080
- var n = U2(), i = Ws, a = Lo, s = 0.1, o = 0.1, T = function(d) {
58077
+ var n = z2(), i = Ws, a = Lo, s = 0.1, o = 0.1, T = function(d) {
58081
58078
  e(f, d);
58082
58079
  function f() {
58083
58080
  return d !== null && d.apply(this, arguments) || this;
@@ -58313,7 +58310,7 @@ function Cnt() {
58313
58310
  };
58314
58311
  }();
58315
58312
  Object.defineProperty(_0, "__esModule", { value: !0 }), _0.SVGmn = void 0;
58316
- var t = U2(), r = uc, n = d8, i = function(a) {
58313
+ var t = z2(), r = uc, n = d8, i = function(a) {
58317
58314
  e(s, a);
58318
58315
  function s() {
58319
58316
  return a !== null && a.apply(this, arguments) || this;
@@ -58453,7 +58450,7 @@ function knt() {
58453
58450
  };
58454
58451
  }();
58455
58452
  Object.defineProperty(v0, "__esModule", { value: !0 }), v0.SVGms = void 0;
58456
- var t = U2(), r = cc, n = f8, i = function(a) {
58453
+ var t = z2(), r = cc, n = f8, i = function(a) {
58457
58454
  e(s, a);
58458
58455
  function s() {
58459
58456
  return a !== null && a.apply(this, arguments) || this;
@@ -58583,7 +58580,7 @@ function znt() {
58583
58580
  };
58584
58581
  }();
58585
58582
  Object.defineProperty(x0, "__esModule", { value: !0 }), x0.SVGmtext = void 0;
58586
- var t = U2(), r = hc, n = p8, i = function(a) {
58583
+ var t = z2(), r = hc, n = p8, i = function(a) {
58587
58584
  e(s, a);
58588
58585
  function s() {
58589
58586
  return a !== null && a.apply(this, arguments) || this;
@@ -58674,7 +58671,7 @@ function $nt() {
58674
58671
  };
58675
58672
  }();
58676
58673
  Object.defineProperty(L0, "__esModule", { value: !0 }), L0.SVGmerror = void 0;
58677
- var t = U2(), r = m8, n = function(i) {
58674
+ var t = z2(), r = m8, n = function(i) {
58678
58675
  e(a, i);
58679
58676
  function a() {
58680
58677
  return i !== null && i.apply(this, arguments) || this;
@@ -58828,7 +58825,7 @@ function Knt() {
58828
58825
  };
58829
58826
  }();
58830
58827
  Object.defineProperty(b0, "__esModule", { value: !0 }), b0.SVGmspace = void 0;
58831
- var t = U2(), r = Tc, n = g8, i = function(a) {
58828
+ var t = z2(), r = Tc, n = g8, i = function(a) {
58832
58829
  e(s, a);
58833
58830
  function s() {
58834
58831
  return a !== null && a.apply(this, arguments) || this;
@@ -58992,7 +58989,7 @@ function nit() {
58992
58989
  return p;
58993
58990
  };
58994
58991
  Object.defineProperty(w0, "__esModule", { value: !0 }), w0.SVGmpadded = void 0;
58995
- var r = U2(), n = Qc, i = y8, a = function(s) {
58992
+ var r = z2(), n = Qc, i = y8, a = function(s) {
58996
58993
  e(o, s);
58997
58994
  function o() {
58998
58995
  return s !== null && s.apply(this, arguments) || this;
@@ -59074,7 +59071,7 @@ function oit() {
59074
59071
  };
59075
59072
  }();
59076
59073
  Object.defineProperty(E0, "__esModule", { value: !0 }), E0.SVGmphantom = void 0;
59077
- var t = U2(), r = _8, n = function(i) {
59074
+ var t = z2(), r = _8, n = function(i) {
59078
59075
  e(a, i);
59079
59076
  function a() {
59080
59077
  return i !== null && i.apply(this, arguments) || this;
@@ -59325,7 +59322,7 @@ function Qit() {
59325
59322
  return p;
59326
59323
  };
59327
59324
  Object.defineProperty(M0, "__esModule", { value: !0 }), M0.SVGmfrac = void 0;
59328
- var r = U2(), n = dc, i = v8, a = function(s) {
59325
+ var r = z2(), n = dc, i = v8, a = function(s) {
59329
59326
  e(o, s);
59330
59327
  function o() {
59331
59328
  return s !== null && s.apply(this, arguments) || this;
@@ -59535,7 +59532,7 @@ function fS() {
59535
59532
  };
59536
59533
  }();
59537
59534
  Object.defineProperty(A0, "__esModule", { value: !0 }), A0.SVGmsqrt = void 0;
59538
- var t = U2(), r = fc, n = x8, i = function(a) {
59535
+ var t = z2(), r = fc, n = x8, i = function(a) {
59539
59536
  e(s, a);
59540
59537
  function s() {
59541
59538
  var o = a !== null && a.apply(this, arguments) || this;
@@ -59960,7 +59957,7 @@ function Oit() {
59960
59957
  throw new TypeError(o ? "Object is not iterable." : "Symbol.iterator is not defined.");
59961
59958
  };
59962
59959
  Object.defineProperty(S0, "__esModule", { value: !0 }), S0.SVGmfenced = void 0;
59963
- var r = U2(), n = mc, i = b8, a = function(s) {
59960
+ var r = z2(), n = mc, i = b8, a = function(s) {
59964
59961
  e(o, s);
59965
59962
  function o() {
59966
59963
  return s !== null && s.apply(this, arguments) || this;
@@ -60304,7 +60301,7 @@ function Iit() {
60304
60301
  return f;
60305
60302
  };
60306
60303
  Object.defineProperty(O0, "__esModule", { value: !0 }), O0.SVGscriptbase = void 0;
60307
- var r = U2(), n = gc, i = function(a) {
60304
+ var r = z2(), n = gc, i = function(a) {
60308
60305
  e(s, a);
60309
60306
  function s() {
60310
60307
  return a !== null && a.apply(this, arguments) || this;
@@ -61317,7 +61314,7 @@ function Kit() {
61317
61314
  return _;
61318
61315
  };
61319
61316
  Object.defineProperty(V6, "__esModule", { value: !0 }), V6.SVGmmultiscripts = V6.AlignX = void 0;
61320
- var r = $m(), n = pS, i = G4, a = Y2;
61317
+ var r = $m(), n = pS, i = G4, a = K2;
61321
61318
  function s(T) {
61322
61319
  return {
61323
61320
  left: function(d, f) {
@@ -61427,7 +61424,7 @@ var t3t = D && D.__extends || /* @__PURE__ */ function() {
61427
61424
  };
61428
61425
  Object.defineProperty(yc, "__esModule", { value: !0 });
61429
61426
  yc.CommonMtableMixin = void 0;
61430
- var r3t = M3, V4 = Y2, I4 = Js;
61427
+ var r3t = M3, V4 = K2, I4 = Js;
61431
61428
  function n3t(e) {
61432
61429
  return function(t) {
61433
61430
  t3t(r, t);
@@ -61790,7 +61787,7 @@ var w8 = {}, i3t = D && D.__extends || /* @__PURE__ */ function() {
61790
61787
  };
61791
61788
  Object.defineProperty(w8, "__esModule", { value: !0 });
61792
61789
  w8.MmlMtable = void 0;
61793
- var t9 = c1, a3t = Y2, o3t = function(e) {
61790
+ var t9 = c1, a3t = K2, o3t = function(e) {
61794
61791
  i3t(t, e);
61795
61792
  function t() {
61796
61793
  var r = e !== null && e.apply(this, arguments) || this;
@@ -61951,7 +61948,7 @@ function s3t() {
61951
61948
  return T.concat(_ || Array.prototype.slice.call(d));
61952
61949
  };
61953
61950
  Object.defineProperty(D0, "__esModule", { value: !0 }), D0.SVGmtable = void 0;
61954
- var n = U2(), i = yc, a = w8, s = "mjx-", o = function(T) {
61951
+ var n = z2(), i = yc, a = w8, s = "mjx-", o = function(T) {
61955
61952
  e(d, T);
61956
61953
  function d(f, p, m) {
61957
61954
  m === void 0 && (m = null);
@@ -62297,7 +62294,7 @@ var ho = {}, gS = D && D.__extends || /* @__PURE__ */ function() {
62297
62294
  };
62298
62295
  Object.defineProperty(ho, "__esModule", { value: !0 });
62299
62296
  ho.MmlMlabeledtr = ho.MmlMtr = void 0;
62300
- var qb = c1, vd = l5, c3t = Y2, yS = function(e) {
62297
+ var qb = c1, vd = l5, c3t = K2, yS = function(e) {
62301
62298
  gS(t, e);
62302
62299
  function t() {
62303
62300
  return e !== null && e.apply(this, arguments) || this;
@@ -62467,7 +62464,7 @@ function T3t() {
62467
62464
  return d.concat(b || Array.prototype.slice.call(f));
62468
62465
  };
62469
62466
  Object.defineProperty(I6, "__esModule", { value: !0 }), I6.SVGmlabeledtr = I6.SVGmtr = void 0;
62470
- var n = U2(), i = co, a = co, s = ho, o = function(d) {
62467
+ var n = z2(), i = co, a = co, s = ho, o = function(d) {
62471
62468
  e(f, d);
62472
62469
  function f() {
62473
62470
  return d !== null && d.apply(this, arguments) || this;
@@ -62646,7 +62643,7 @@ function m3t() {
62646
62643
  };
62647
62644
  }();
62648
62645
  Object.defineProperty(P0, "__esModule", { value: !0 }), P0.SVGmtd = void 0;
62649
- var t = U2(), r = _c, n = E8, i = function(a) {
62646
+ var t = z2(), r = _c, n = E8, i = function(a) {
62650
62647
  e(s, a);
62651
62648
  function s() {
62652
62649
  return a !== null && a.apply(this, arguments) || this;
@@ -62707,7 +62704,7 @@ var V0 = {}, np = {};
62707
62704
  return s.concat(p || Array.prototype.slice.call(o));
62708
62705
  };
62709
62706
  Object.defineProperty(e, "__esModule", { value: !0 }), e.CommonMactionMixin = e.TooltipData = void 0;
62710
- var i = Y2;
62707
+ var i = K2;
62711
62708
  e.TooltipData = {
62712
62709
  dx: ".2em",
62713
62710
  dy: ".1em",
@@ -62856,7 +62853,7 @@ function _3t() {
62856
62853
  };
62857
62854
  }();
62858
62855
  Object.defineProperty(V0, "__esModule", { value: !0 }), V0.SVGmaction = void 0;
62859
- var t = U2(), r = np, n = np, i = M8, a = function(s) {
62856
+ var t = z2(), r = np, n = np, i = M8, a = function(s) {
62860
62857
  e(o, s);
62861
62858
  function o() {
62862
62859
  return s !== null && s.apply(this, arguments) || this;
@@ -63200,7 +63197,7 @@ var v3t = D && D.__extends || /* @__PURE__ */ function() {
63200
63197
  };
63201
63198
  Object.defineProperty(vc, "__esModule", { value: !0 });
63202
63199
  vc.CommonMencloseMixin = void 0;
63203
- var Z3 = b3t(pu), tw = Y2;
63200
+ var Z3 = b3t(pu), tw = K2;
63204
63201
  function E3t(e) {
63205
63202
  return function(t) {
63206
63203
  v3t(r, t);
@@ -63604,7 +63601,7 @@ function H3t() {
63604
63601
  return S;
63605
63602
  };
63606
63603
  Object.defineProperty(I0, "__esModule", { value: !0 }), I0.SVGmenclose = void 0;
63607
- var s = U2(), o = vc, T = n(_S), d = A8, f = function(p) {
63604
+ var s = z2(), o = vc, T = n(_S), d = A8, f = function(p) {
63608
63605
  e(m, p);
63609
63606
  function m() {
63610
63607
  return p !== null && p.apply(this, arguments) || this;
@@ -63935,7 +63932,7 @@ function P3t() {
63935
63932
  };
63936
63933
  }();
63937
63934
  Object.defineProperty(p3, "__esModule", { value: !0 }), p3.SVGxml = p3.SVGannotationXML = p3.SVGannotation = p3.SVGsemantics = void 0;
63938
- var t = U2(), r = xc, n = $4, i = c1, a = function(d) {
63935
+ var t = z2(), r = xc, n = $4, i = c1, a = function(d) {
63939
63936
  e(f, d);
63940
63937
  function f() {
63941
63938
  return d !== null && d.apply(this, arguments) || this;
@@ -64137,7 +64134,7 @@ function N3t() {
64137
64134
  };
64138
64135
  }();
64139
64136
  Object.defineProperty(R0, "__esModule", { value: !0 }), R0.SVGmglyph = void 0;
64140
- var t = U2(), r = Lc, n = H8, i = function(a) {
64137
+ var t = z2(), r = Lc, n = H8, i = function(a) {
64141
64138
  e(s, a);
64142
64139
  function s() {
64143
64140
  return a !== null && a.apply(this, arguments) || this;
@@ -64285,7 +64282,7 @@ function Z3t() {
64285
64282
  };
64286
64283
  }();
64287
64284
  Object.defineProperty(k0, "__esModule", { value: !0 }), k0.SVGTeXAtom = void 0;
64288
- var t = U2(), r = bc, n = S8, i = c1, a = function(s) {
64285
+ var t = z2(), r = bc, n = S8, i = c1, a = function(s) {
64289
64286
  e(o, s);
64290
64287
  function o() {
64291
64288
  return s !== null && s.apply(this, arguments) || this;
@@ -64432,7 +64429,7 @@ function Y3t() {
64432
64429
  throw new TypeError(o ? "Object is not iterable." : "Symbol.iterator is not defined.");
64433
64430
  };
64434
64431
  Object.defineProperty(B0, "__esModule", { value: !0 }), B0.SVGTextNode = void 0;
64435
- var r = c1, n = U2(), i = wc, a = function(s) {
64432
+ var r = c1, n = z2(), i = wc, a = function(s) {
64436
64433
  e(o, s);
64437
64434
  function o() {
64438
64435
  return s !== null && s.apply(this, arguments) || this;
@@ -64477,7 +64474,7 @@ function J3t() {
64477
64474
  ow = 1;
64478
64475
  var e;
64479
64476
  Object.defineProperty(Q0, "__esModule", { value: !0 }), Q0.SVGWrappers = void 0;
64480
- var t = U2(), r = snt(), n = dnt(), i = ynt(), a = Ent(), s = Cnt(), o = knt(), T = znt(), d = $nt(), f = Knt(), p = nit(), m = oit(), _ = Qit(), b = fS(), w = bit(), S = Oit(), M = $m(), C = Zit(), I = Kit(), B = s3t(), z = T3t(), $ = m3t(), W = _3t(), nt = H3t(), lt = P3t(), yt = N3t(), xt = Z3t(), Et = Y3t();
64477
+ var t = z2(), r = snt(), n = dnt(), i = ynt(), a = Ent(), s = Cnt(), o = knt(), T = znt(), d = $nt(), f = Knt(), p = nit(), m = oit(), _ = Qit(), b = fS(), w = bit(), S = Oit(), M = $m(), C = Zit(), I = Kit(), B = s3t(), z = T3t(), $ = m3t(), W = _3t(), nt = H3t(), lt = P3t(), yt = N3t(), xt = Z3t(), Et = Y3t();
64481
64478
  return Q0.SVGWrappers = (e = {}, e[r.SVGmath.kind] = r.SVGmath, e[n.SVGmrow.kind] = n.SVGmrow, e[n.SVGinferredMrow.kind] = n.SVGinferredMrow, e[i.SVGmi.kind] = i.SVGmi, e[a.SVGmo.kind] = a.SVGmo, e[s.SVGmn.kind] = s.SVGmn, e[o.SVGms.kind] = o.SVGms, e[T.SVGmtext.kind] = T.SVGmtext, e[d.SVGmerror.kind] = d.SVGmerror, e[f.SVGmspace.kind] = f.SVGmspace, e[p.SVGmpadded.kind] = p.SVGmpadded, e[m.SVGmphantom.kind] = m.SVGmphantom, e[_.SVGmfrac.kind] = _.SVGmfrac, e[b.SVGmsqrt.kind] = b.SVGmsqrt, e[w.SVGmroot.kind] = w.SVGmroot, e[S.SVGmfenced.kind] = S.SVGmfenced, e[M.SVGmsub.kind] = M.SVGmsub, e[M.SVGmsup.kind] = M.SVGmsup, e[M.SVGmsubsup.kind] = M.SVGmsubsup, e[C.SVGmunder.kind] = C.SVGmunder, e[C.SVGmover.kind] = C.SVGmover, e[C.SVGmunderover.kind] = C.SVGmunderover, e[I.SVGmmultiscripts.kind] = I.SVGmmultiscripts, e[B.SVGmtable.kind] = B.SVGmtable, e[z.SVGmtr.kind] = z.SVGmtr, e[z.SVGmlabeledtr.kind] = z.SVGmlabeledtr, e[$.SVGmtd.kind] = $.SVGmtd, e[W.SVGmaction.kind] = W.SVGmaction, e[nt.SVGmenclose.kind] = nt.SVGmenclose, e[lt.SVGsemantics.kind] = lt.SVGsemantics, e[lt.SVGannotation.kind] = lt.SVGannotation, e[lt.SVGannotationXML.kind] = lt.SVGannotationXML, e[lt.SVGxml.kind] = lt.SVGxml, e[yt.SVGmglyph.kind] = yt.SVGmglyph, e[xt.SVGTeXAtom.kind] = xt.SVGTeXAtom, e[Et.SVGTextNode.kind] = Et.SVGTextNode, e[t.SVGWrapper.kind] = t.SVGWrapper, e), Q0;
64482
64479
  }
64483
64480
  var sw;
@@ -70013,7 +70010,7 @@ function ES() {
70013
70010
  return S;
70014
70011
  };
70015
70012
  Object.defineProperty(e, "__esModule", { value: !0 }), e.SVG = e.XLINKNS = e.SVGNS = void 0;
70016
- var i = ec, a = t4t(), s = Ec, o = yh, T = Y2, d = h4;
70013
+ var i = ec, a = t4t(), s = Ec, o = yh, T = K2, d = h4;
70017
70014
  e.SVGNS = "http://www.w3.org/2000/svg", e.XLINKNS = "http://www.w3.org/1999/xlink";
70018
70015
  var f = function(p) {
70019
70016
  t(m, p);
@@ -78976,7 +78973,7 @@ function M5t(e) {
78976
78973
  }
78977
78974
  return e.renderedLabel;
78978
78975
  }
78979
- var z2, Is, B4, G6, K6, X0, Y6, K0, J6, Y0, V7, mp;
78976
+ var ir, Is, B4, G6, K6, X0, Y6, K0, J6, Y0, V7, mp;
78980
78977
  class A5t {
78981
78978
  constructor(t) {
78982
78979
  a1(this, B4);
@@ -78984,7 +78981,7 @@ class A5t {
78984
78981
  a1(this, Y6);
78985
78982
  a1(this, J6);
78986
78983
  a1(this, V7);
78987
- a1(this, z2, null);
78984
+ a1(this, ir, null);
78988
78985
  a1(this, Is, null);
78989
78986
  this._flatmap = t, this._map = t.map, this._activeFeatures = /* @__PURE__ */ new Set(), this._selectedFeatureIds = /* @__PURE__ */ new Map(), this._currentPopup = null, this._infoControl = null, this._tooltip = null, this._inQuery = !1, this._modal = !1, this.__colourOptions = { colour: !0, outline: !0 }, this.__activeMarker = null, this.__lastMarkerId = 9e5, this.__markerIdByMarker = /* @__PURE__ */ new Map(), this.__markerIdByFeatureId = /* @__PURE__ */ new Map(), this.__annotationByMarkerId = /* @__PURE__ */ new Map(), this.__markerPositions = /* @__PURE__ */ new Map(), t.setInitialPosition(), this.__featureEnabledCount = new Map(Array.from(this._flatmap.annotations.keys()).map((i) => [+i, 0]));
78990
78987
  const r = t.options.style !== "functional";
@@ -78993,14 +78990,14 @@ class A5t {
78993
78990
  this._layerManager = new Net(t, this), this.__pathManager.enablePathLines(!0, !0);
78994
78991
  for (const i of n)
78995
78992
  this.__pathManager.enablePathsByType(i.type, i.enabled, !0);
78996
- if (this.__pathManager.haveCentrelines && this.enableCentrelines(this.__pathManager.enabledCentrelines, !0), this.__systemsManager = new jet(this._flatmap, this, r), this.__enabledConnectivityTaxons = new Set(this._flatmap.taxonIdentifiers), t.options.minimap && (m1(this, Is, new n1t(t, t.options.minimap)), this._map.addControl(Pt(this, Is))), t.options.fullscreenControl === !0 && this._map.addControl(new Bn.FullscreenControl(), "top-right"), t.options.navigationControl) {
78993
+ if (this.__pathManager.haveCentrelines && this.enableCentrelines(this.__pathManager.enabledCentrelines, !0), this.__systemsManager = new jet(this._flatmap, this, r), this.__enabledConnectivityTaxons = new Set(this._flatmap.taxonIdentifiers), t.options.minimap && (m1(this, Is, new n1t(t, t.options.minimap)), this._map.addControl(It(this, Is))), t.options.fullscreenControl === !0 && this._map.addControl(new Bn.FullscreenControl(), "top-right"), t.options.navigationControl) {
78997
78994
  const i = t.options.navigationControl, a = typeof i == "string" && ["top-left", "top-right", "bottom-right", "bottom-left"].includes(i) ? i : "bottom-right";
78998
78995
  this._map.addControl(new NavigationControl(t), a);
78999
78996
  }
79000
- t.options.standalone && (this._map.addControl(new e1t(t)), this._infoControl = new Uet(t), this._map.addControl(this._infoControl), this._map.addControl(new Xet(t)), this._map.addControl(new Jet(t, n)), this._map.addControl(new $et(t, this._layerManager)), this.__pathManager.haveCentrelines && this._map.addControl(new qet(t, this._layerManager, { showCentrelines: !1 })), t.options.style === "functional" ? (this._map.addControl(new i1t(t, this.__systemsManager.systems)), this._map.addControl(new Zet(t, t.options.layerOptions))) : this._map.addControl(new a1t(t)), t.has_flightpaths && this._map.addControl(new t1t(this, t.options.flightPaths)), t.options.annotator && this._map.addControl(new Wet(t))), this.__setupAnnotation(), m1(this, z2, new Yet(t, !1)), this._map.addControl(Pt(this, z2)), t.options.flightPaths === !0 && this._layerManager.setFlightPathMode(!0), this._map.on("click", this.clickEvent_.bind(this)), this._map.on("touchend", this.clickEvent_.bind(this)), this._map.on("mousemove", this.mouseMoveEvent_.bind(this)), this._lastFeatureMouseEntered = null, this._lastFeatureModelsMouse = null, this.__lastClickLngLat = null, this._map.on("move", this.panZoomEvent_.bind(this, "pan")), this._map.on("zoom", this.panZoomEvent_.bind(this, "zoom")), this.__pan_zoom_enabled = !1;
78997
+ t.options.standalone && (this._map.addControl(new e1t(t)), this._infoControl = new Uet(t), this._map.addControl(this._infoControl), this._map.addControl(new Xet(t)), this._map.addControl(new Jet(t, n)), this._map.addControl(new $et(t, this._layerManager)), this.__pathManager.haveCentrelines && this._map.addControl(new qet(t, this._layerManager, { showCentrelines: !1 })), t.options.style === "functional" ? (this._map.addControl(new i1t(t, this.__systemsManager.systems)), this._map.addControl(new Zet(t, t.options.layerOptions))) : this._map.addControl(new a1t(t)), t.has_flightpaths && this._map.addControl(new t1t(this, t.options.flightPaths)), t.options.annotator && this._map.addControl(new Wet(t))), this.__setupAnnotation(), m1(this, ir, new Yet(t, !1)), this._map.addControl(It(this, ir)), t.options.flightPaths === !0 && this._layerManager.setFlightPathMode(!0), this._map.on("click", this.clickEvent_.bind(this)), this._map.on("touchend", this.clickEvent_.bind(this)), this._map.on("mousemove", this.mouseMoveEvent_.bind(this)), this._lastFeatureMouseEntered = null, this._lastFeatureModelsMouse = null, this.__lastClickLngLat = null, this._map.on("move", this.panZoomEvent_.bind(this, "pan")), this._map.on("zoom", this.panZoomEvent_.bind(this, "zoom")), this.__pan_zoom_enabled = !1;
79001
78998
  }
79002
78999
  get minimap() {
79003
- return Pt(this, Is);
79000
+ return It(this, Is);
79004
79001
  }
79005
79002
  get pathManager() {
79006
79003
  return this.__pathManager;
@@ -79018,36 +79015,32 @@ class A5t {
79018
79015
  "zoom" in r && ("center" in r ? r.around = r.center : r.around = [0, 0]), Object.keys(r).length > 0 && this._map.jumpTo(r);
79019
79016
  }
79020
79017
  showAnnotator(t = !0) {
79021
- Pt(this, z2) && Pt(this, z2).show(t);
79022
- }
79023
- inDrawingAnnotationMode() {
79024
- if (Pt(this, z2))
79025
- return Pt(this, z2).inDrawingMode();
79018
+ It(this, ir) && It(this, ir).show(t);
79026
79019
  }
79027
79020
  commitAnnotationEvent(t) {
79028
- Pt(this, z2) && Pt(this, z2).commitEvent(t);
79021
+ It(this, ir) && It(this, ir).commitEvent(t);
79029
79022
  }
79030
79023
  abortAnnotationEvent(t) {
79031
- Pt(this, z2) && Pt(this, z2).abortEvent(t);
79024
+ It(this, ir) && It(this, ir).abortEvent(t);
79032
79025
  }
79033
79026
  rollbackAnnotationEvent(t) {
79034
- Pt(this, z2) && Pt(this, z2).rollbackEvent(t);
79027
+ It(this, ir) && It(this, ir).rollbackEvent(t);
79035
79028
  }
79036
79029
  clearAnnotationFeatures() {
79037
- Pt(this, z2) && Pt(this, z2).clearFeatures();
79030
+ It(this, ir) && It(this, ir).clearFeatures();
79038
79031
  }
79039
79032
  removeAnnotationFeature() {
79040
- Pt(this, z2) && Pt(this, z2).removeFeature();
79033
+ It(this, ir) && It(this, ir).removeFeature();
79041
79034
  }
79042
79035
  addAnnotationFeature(t) {
79043
- Pt(this, z2) && Pt(this, z2).addFeature(t);
79036
+ It(this, ir) && It(this, ir).addFeature(t);
79044
79037
  }
79045
79038
  refreshAnnotationFeatureGeometry(t) {
79046
- if (Pt(this, z2))
79047
- return Pt(this, z2).refreshGeometry(t);
79039
+ if (It(this, ir))
79040
+ return It(this, ir).refreshGeometry(t);
79048
79041
  }
79049
79042
  changeAnnotationDrawMode(t) {
79050
- Pt(this, z2) && Pt(this, z2).changeMode(t);
79043
+ It(this, ir) && It(this, ir).changeMode(t);
79051
79044
  }
79052
79045
  __setupAnnotation() {
79053
79046
  this.__featureIdToMapId = new Map([...this._flatmap.annotations.entries()].map((t) => [t[1].id, t[0]]));
@@ -79391,8 +79384,17 @@ class A5t {
79391
79384
  this.unselectFeatures();
79392
79385
  return;
79393
79386
  }
79394
- const n = this.inDrawingAnnotationMode(), i = r.filter((s) => !s.id)[0], a = r.filter((s) => s.id)[0];
79395
- this.selectionEvent_(t.originalEvent, a), this._modal ? (this.__resetFeatureDisplay(), this.unselectFeatures(), this.__clearModal()) : i && !n ? this.__featureEvent("click", i) : a && (this.__lastClickLngLat = t.lngLat, this.__featureEvent("click", a), "properties" in a && "hyperlink" in a.properties && window.open(a.properties.hyperlink, "_blank"));
79387
+ const n = r.filter((a) => !a.id), i = r.filter((a) => a.id)[0];
79388
+ if (this.selectionEvent_(t.originalEvent, i), this._modal)
79389
+ this.__resetFeatureDisplay(), this.unselectFeatures(), this.__clearModal();
79390
+ else if (n.length > 0) {
79391
+ const a = n.filter((o) => o.source === "mapbox-gl-draw-cold")[0], s = n.filter((o) => o.source === "mapbox-gl-draw-hot")[0];
79392
+ this.__featureEvent(
79393
+ "click",
79394
+ a || i || s
79395
+ );
79396
+ } else
79397
+ i && (this.__lastClickLngLat = t.lngLat, this.__featureEvent("click", i), "properties" in i && "hyperlink" in i.properties && window.open(i.properties.hyperlink, "_blank"));
79396
79398
  }
79397
79399
  __activateRelatedFeatures(t) {
79398
79400
  if ("nerveId" in t.properties) {
@@ -79565,7 +79567,7 @@ class A5t {
79565
79567
  this.__pan_zoom_enabled && this._flatmap.panZoomEvent(t);
79566
79568
  }
79567
79569
  }
79568
- z2 = new WeakMap(), Is = new WeakMap(), B4 = new WeakSet(), G6 = function(t) {
79570
+ ir = new WeakMap(), Is = new WeakMap(), B4 = new WeakSet(), G6 = function(t) {
79569
79571
  this._layerManager.setPaint(t);
79570
79572
  }, K6 = new WeakSet(), X0 = function(t) {
79571
79573
  return this._map.getFeatureState(t);
@@ -79816,7 +79818,7 @@ class P5t {
79816
79818
  }
79817
79819
  }
79818
79820
  makeServerUrl(t, r = "flatmap/") {
79819
- return t.startsWith("http://") || t.startsWith("https://") ? t : t.startsWith("/") ? `${Pt(this, Rs)}${r}${this.__uuid}${t}` : `${Pt(this, Rs)}${r}${this.__uuid}/${t}`;
79821
+ return t.startsWith("http://") || t.startsWith("https://") ? t : t.startsWith("/") ? `${It(this, Rs)}${r}${this.__uuid}${t}` : `${It(this, Rs)}${r}${this.__uuid}/${t}`;
79820
79822
  }
79821
79823
  /**
79822
79824
  * The taxon identifier of the species described by the map.
@@ -79981,7 +79983,7 @@ class P5t {
79981
79983
  return [...new J0(r || [])];
79982
79984
  }
79983
79985
  taxonName(t) {
79984
- return Pt(this, to).has(t) ? Pt(this, to).get(t) : t;
79986
+ return It(this, to).has(t) ? It(this, to).get(t) : t;
79985
79987
  }
79986
79988
  get layers() {
79987
79989
  return this._layers;
@@ -80529,10 +80531,10 @@ class P5t {
80529
80531
  }
80530
80532
  }
80531
80533
  Rs = new WeakMap(), I7 = new WeakMap(), to = new WeakMap(), R7 = new WeakSet(), gp = async function(t) {
80532
- if (!Pt(this, to).has(t)) {
80533
- const r = await Pt(this, I7).loadJSON(`knowledge/label/${t}`);
80534
+ if (!It(this, to).has(t)) {
80535
+ const r = await It(this, I7).loadJSON(`knowledge/label/${t}`);
80534
80536
  if ("label" in r)
80535
- return Pt(this, to).set(t, r.label);
80537
+ return It(this, to).set(t, r.label);
80536
80538
  }
80537
80539
  };
80538
80540
  class LC {