@opengis/partsmap 0.0.7 → 0.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/PartsMap.js CHANGED
@@ -3,8 +3,8 @@ var $s = {};
3
3
  function Vd(y) {
4
4
  return Math.floor(Math.abs(y) + 0.5) * (y >= 0 ? 1 : -1);
5
5
  }
6
- function mc(y, T, z) {
7
- y = Vd(y * z), T = Vd(T * z);
6
+ function mc(y, T, M) {
7
+ y = Vd(y * M), T = Vd(T * M);
8
8
  var D = (y - T) * 2;
9
9
  D < 0 && (D = -D - 1);
10
10
  for (var N = ""; D >= 32; )
@@ -12,14 +12,14 @@ function mc(y, T, z) {
12
12
  return N += String.fromCharCode((D | 0) + 63), N;
13
13
  }
14
14
  $s.decode = function(y, T) {
15
- for (var z = 0, D = 0, N = 0, J = [], S = 0, c = 0, ye = null, _e, ve, ae = Math.pow(10, Number.isInteger(T) ? T : 5); z < y.length; ) {
15
+ for (var M = 0, D = 0, N = 0, J = [], S = 0, c = 0, ye = null, _e, ve, ae = Math.pow(10, Number.isInteger(T) ? T : 5); M < y.length; ) {
16
16
  ye = null, S = 1, c = 0;
17
17
  do
18
- ye = y.charCodeAt(z++) - 63, c += (ye & 31) * S, S *= 32;
18
+ ye = y.charCodeAt(M++) - 63, c += (ye & 31) * S, S *= 32;
19
19
  while (ye >= 32);
20
20
  _e = c & 1 ? (-c - 1) / 2 : c / 2, S = 1, c = 0;
21
21
  do
22
- ye = y.charCodeAt(z++) - 63, c += (ye & 31) * S, S *= 32;
22
+ ye = y.charCodeAt(M++) - 63, c += (ye & 31) * S, S *= 32;
23
23
  while (ye >= 32);
24
24
  ve = c & 1 ? (-c - 1) / 2 : c / 2, D += _e, N += ve, J.push([D / ae, N / ae]);
25
25
  }
@@ -28,15 +28,15 @@ $s.decode = function(y, T) {
28
28
  $s.encode = function(y, T) {
29
29
  if (!y.length)
30
30
  return "";
31
- for (var z = Math.pow(10, Number.isInteger(T) ? T : 5), D = mc(y[0][0], 0, z) + mc(y[0][1], 0, z), N = 1; N < y.length; N++) {
31
+ for (var M = Math.pow(10, Number.isInteger(T) ? T : 5), D = mc(y[0][0], 0, M) + mc(y[0][1], 0, M), N = 1; N < y.length; N++) {
32
32
  var J = y[N], S = y[N - 1];
33
- D += mc(J[0], S[0], z), D += mc(J[1], S[1], z);
33
+ D += mc(J[0], S[0], M), D += mc(J[1], S[1], M);
34
34
  }
35
35
  return D;
36
36
  };
37
37
  function rp(y) {
38
- for (var T = [], z = 0; z < y.length; z++) {
39
- var D = y[z].slice();
38
+ for (var T = [], M = 0; M < y.length; M++) {
39
+ var D = y[M].slice();
40
40
  T.push([D[1], D[0]]);
41
41
  }
42
42
  return T;
@@ -47,10 +47,10 @@ $s.fromGeoJSON = function(y, T) {
47
47
  return $s.encode(rp(y.coordinates), T);
48
48
  };
49
49
  $s.toGeoJSON = function(y, T) {
50
- var z = $s.decode(y, T);
50
+ var M = $s.decode(y, T);
51
51
  return {
52
52
  type: "LineString",
53
- coordinates: rp(z)
53
+ coordinates: rp(M)
54
54
  };
55
55
  };
56
56
  var Dm = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
@@ -63,14 +63,14 @@ var np = { exports: {} };
63
63
  * @license 3-Clause BSD. Full text of license: https://github.com/maplibre/maplibre-gl-js/blob/v4.5.2/LICENSE.txt
64
64
  */
65
65
  (function(y, T) {
66
- (function(z, D) {
66
+ (function(M, D) {
67
67
  y.exports = D();
68
68
  })(Dm, function() {
69
- var z = {}, D = {};
69
+ var M = {}, D = {};
70
70
  function N(S, c, ye) {
71
71
  if (D[S] = ye, S === "index") {
72
72
  var _e = "var sharedModule = {}; (" + D.shared + ")(sharedModule); (" + D.worker + ")(sharedModule);", ve = {};
73
- return D.shared(ve), D.index(z, ve), typeof window < "u" && z.setWorkerUrl(window.URL.createObjectURL(new Blob([_e], { type: "text/javascript" }))), z;
73
+ return D.shared(ve), D.index(M, ve), typeof window < "u" && M.setWorkerUrl(window.URL.createObjectURL(new Blob([_e], { type: "text/javascript" }))), M;
74
74
  }
75
75
  }
76
76
  N("shared", ["exports"], function(S) {
@@ -282,9 +282,9 @@ var np = { exports: {} };
282
282
  const p = d == null ? void 0 : d.format;
283
283
  if (!p || !p.startsWith("BGR") && !p.startsWith("RGB")) throw new Error(`Unrecognized format ${p}`);
284
284
  const f = p.startsWith("BGR"), g = new Uint8ClampedArray(s * l * 4);
285
- if (yield d.copyTo(g, function(x, w, I, C, M) {
285
+ if (yield d.copyTo(g, function(x, w, I, C, z) {
286
286
  const R = 4 * Math.max(-w, 0), B = (Math.max(0, I) - I) * C * 4 + R, $ = 4 * C, W = Math.max(0, w), se = Math.max(0, I);
287
- return { rect: { x: W, y: se, width: Math.min(x.width, w + C) - W, height: Math.min(x.height, I + M) - se }, layout: [{ offset: B, stride: $ }] };
287
+ return { rect: { x: W, y: se, width: Math.min(x.width, w + C) - W, height: Math.min(x.height, I + z) - se }, layout: [{ offset: B, stride: $ }] };
288
288
  }(i, e, r, s, l)), f) for (let x = 0; x < g.length; x += 4) {
289
289
  const w = g[x];
290
290
  g[x] = g[x + 2], g[x + 2] = w;
@@ -595,7 +595,7 @@ var np = { exports: {} };
595
595
  if (s.startsWith("rgb")) {
596
596
  const p = s.match(/^rgba?\(\s*([\de.+-]+)(%)?(?:\s+|\s*(,)\s*)([\de.+-]+)(%)?(?:\s+|\s*(,)\s*)([\de.+-]+)(%)?(?:\s*([,\/])\s*([\de.+-]+)(%)?)?\s*\)$/);
597
597
  if (p) {
598
- const [f, g, x, w, I, C, M, R, B, $, W, se] = p, Y = [w || " ", M || " ", $].join("");
598
+ const [f, g, x, w, I, C, z, R, B, $, W, se] = p, Y = [w || " ", z || " ", $].join("");
599
599
  if (Y === " " || Y === " /" || Y === ",," || Y === ",,,") {
600
600
  const ie = [x, C, B].join(""), ue = ie === "%%%" ? 100 : ie === "" ? 255 : 0;
601
601
  if (ue) {
@@ -608,9 +608,9 @@ var np = { exports: {} };
608
608
  }
609
609
  const d = s.match(/^hsla?\(\s*([\de.+-]+)(?:deg)?(?:\s+|\s*(,)\s*)([\de.+-]+)%(?:\s+|\s*(,)\s*)([\de.+-]+)%(?:\s*([,\/])\s*([\de.+-]+)(%)?)?\s*\)$/);
610
610
  if (d) {
611
- const [p, f, g, x, w, I, C, M, R] = d, B = [g || " ", w || " ", C].join("");
611
+ const [p, f, g, x, w, I, C, z, R] = d, B = [g || " ", w || " ", C].join("");
612
612
  if (B === " " || B === " /" || B === ",," || B === ",,,") {
613
- const $ = [+f, di(+x, 0, 100), di(+I, 0, 100), M ? ii(+M, R) : 1];
613
+ const $ = [+f, di(+x, 0, 100), di(+I, 0, 100), z ? ii(+z, R) : 1];
614
614
  if (pi($)) return function([W, se, Y, ie]) {
615
615
  function ue(xe) {
616
616
  const De = (xe + W / 30) % 12, We = se * Math.min(Y, 1 - Y);
@@ -801,7 +801,7 @@ var np = { exports: {} };
801
801
  return !0;
802
802
  }
803
803
  }
804
- class Jt {
804
+ class Kt {
805
805
  constructor(e) {
806
806
  this.name = "ExpressionEvaluationError", this.message = e;
807
807
  }
@@ -846,7 +846,7 @@ var np = { exports: {} };
846
846
  for (let r = 0; r < this.args.length; r++) {
847
847
  const s = this.args[r].evaluate(e);
848
848
  if (!q(this.type, ei(s))) return s;
849
- if (r === this.args.length - 1) throw new Jt(`Expected value to be of type ${k(this.type)}, but found ${k(ei(s))} instead.`);
849
+ if (r === this.args.length - 1) throw new Kt(`Expected value to be of type ${k(this.type)}, but found ${k(ei(s))} instead.`);
850
850
  }
851
851
  throw new Error();
852
852
  }
@@ -888,7 +888,7 @@ var np = { exports: {} };
888
888
  if (d) return d;
889
889
  } else if (Array.isArray(r) && (s = r.length < 3 || r.length > 4 ? `Invalid rbga value ${JSON.stringify(r)}: expected an array containing either three or four numeric values.` : Gs(r[0], r[1], r[2], r[3]), !s)) return new Tt(r[0] / 255, r[1] / 255, r[2] / 255, r[3]);
890
890
  }
891
- throw new Jt(s || `Could not parse color from value '${typeof r == "string" ? r : JSON.stringify(r)}'`);
891
+ throw new Kt(s || `Could not parse color from value '${typeof r == "string" ? r : JSON.stringify(r)}'`);
892
892
  }
893
893
  case "padding": {
894
894
  let r;
@@ -897,7 +897,7 @@ var np = { exports: {} };
897
897
  const l = ji.parse(r);
898
898
  if (l) return l;
899
899
  }
900
- throw new Jt(`Could not parse padding from value '${typeof r == "string" ? r : JSON.stringify(r)}'`);
900
+ throw new Kt(`Could not parse padding from value '${typeof r == "string" ? r : JSON.stringify(r)}'`);
901
901
  }
902
902
  case "variableAnchorOffsetCollection": {
903
903
  let r;
@@ -906,7 +906,7 @@ var np = { exports: {} };
906
906
  const l = Ui.parse(r);
907
907
  if (l) return l;
908
908
  }
909
- throw new Jt(`Could not parse variableAnchorOffsetCollection from value '${typeof r == "string" ? r : JSON.stringify(r)}'`);
909
+ throw new Kt(`Could not parse variableAnchorOffsetCollection from value '${typeof r == "string" ? r : JSON.stringify(r)}'`);
910
910
  }
911
911
  case "number": {
912
912
  let r = null;
@@ -915,7 +915,7 @@ var np = { exports: {} };
915
915
  const l = Number(r);
916
916
  if (!isNaN(l)) return l;
917
917
  }
918
- throw new Jt(`Could not convert ${JSON.stringify(r)} to number.`);
918
+ throw new Kt(`Could not convert ${JSON.stringify(r)} to number.`);
919
919
  }
920
920
  case "formatted":
921
921
  return Ni.fromString(Lr(this.args[0].evaluate(e)));
@@ -1070,9 +1070,9 @@ var np = { exports: {} };
1070
1070
  }
1071
1071
  evaluate(e) {
1072
1072
  const r = this.index.evaluate(e), s = this.input.evaluate(e);
1073
- if (r < 0) throw new Jt(`Array index out of bounds: ${r} < 0.`);
1074
- if (r >= s.length) throw new Jt(`Array index out of bounds: ${r} > ${s.length - 1}.`);
1075
- if (r !== Math.floor(r)) throw new Jt(`Array index must be an integer, but found ${r} instead.`);
1073
+ if (r < 0) throw new Kt(`Array index out of bounds: ${r} < 0.`);
1074
+ if (r >= s.length) throw new Kt(`Array index out of bounds: ${r} > ${s.length - 1}.`);
1075
+ if (r !== Math.floor(r)) throw new Kt(`Array index must be an integer, but found ${r} instead.`);
1076
1076
  return s[r];
1077
1077
  }
1078
1078
  eachChild(e) {
@@ -1094,8 +1094,8 @@ var np = { exports: {} };
1094
1094
  evaluate(e) {
1095
1095
  const r = this.needle.evaluate(e), s = this.haystack.evaluate(e);
1096
1096
  if (!s) return !1;
1097
- if (!te(r, ["boolean", "string", "number", "null"])) throw new Jt(`Expected first argument to be of type boolean, string, number or null, but found ${k(ei(r))} instead.`);
1098
- if (!te(s, ["string", "array"])) throw new Jt(`Expected second argument to be of type array or string, but found ${k(ei(s))} instead.`);
1097
+ if (!te(r, ["boolean", "string", "number", "null"])) throw new Kt(`Expected first argument to be of type boolean, string, number or null, but found ${k(ei(r))} instead.`);
1098
+ if (!te(s, ["string", "array"])) throw new Kt(`Expected second argument to be of type array or string, but found ${k(ei(s))} instead.`);
1099
1099
  return s.indexOf(r) >= 0;
1100
1100
  }
1101
1101
  eachChild(e) {
@@ -1122,8 +1122,8 @@ var np = { exports: {} };
1122
1122
  }
1123
1123
  evaluate(e) {
1124
1124
  const r = this.needle.evaluate(e), s = this.haystack.evaluate(e);
1125
- if (!te(r, ["boolean", "string", "number", "null"])) throw new Jt(`Expected first argument to be of type boolean, string, number or null, but found ${k(ei(r))} instead.`);
1126
- if (!te(s, ["string", "array"])) throw new Jt(`Expected second argument to be of type array or string, but found ${k(ei(s))} instead.`);
1125
+ if (!te(r, ["boolean", "string", "number", "null"])) throw new Kt(`Expected first argument to be of type boolean, string, number or null, but found ${k(ei(r))} instead.`);
1126
+ if (!te(s, ["string", "array"])) throw new Kt(`Expected second argument to be of type array or string, but found ${k(ei(s))} instead.`);
1127
1127
  if (this.fromIndex) {
1128
1128
  const l = this.fromIndex.evaluate(e);
1129
1129
  return s.indexOf(r, l);
@@ -1163,9 +1163,9 @@ var np = { exports: {} };
1163
1163
  if (d[String(R)] !== void 0) return C.error("Branch labels must be unique.");
1164
1164
  d[String(R)] = p.length;
1165
1165
  }
1166
- const M = r.parse(I, x, l);
1167
- if (!M) return null;
1168
- l = l || M.type, p.push(M);
1166
+ const z = r.parse(I, x, l);
1167
+ if (!z) return null;
1168
+ l = l || z.type, p.push(z);
1169
1169
  }
1170
1170
  const f = r.parse(e[1], 1, rt);
1171
1171
  if (!f) return null;
@@ -1234,7 +1234,7 @@ var np = { exports: {} };
1234
1234
  }
1235
1235
  evaluate(e) {
1236
1236
  const r = this.input.evaluate(e), s = this.beginIndex.evaluate(e);
1237
- if (!te(r, ["string", "array"])) throw new Jt(`Expected first argument to be of type array or string, but found ${k(ei(r))} instead.`);
1237
+ if (!te(r, ["string", "array"])) throw new Kt(`Expected first argument to be of type array or string, but found ${k(ei(r))} instead.`);
1238
1238
  if (this.endIndex) {
1239
1239
  const l = this.endIndex.evaluate(e);
1240
1240
  return r.slice(s, l);
@@ -1255,7 +1255,7 @@ var np = { exports: {} };
1255
1255
  if (f === r || e < l) return f;
1256
1256
  d = f + 1;
1257
1257
  } else {
1258
- if (!(s > e)) throw new Jt("Input is not a number.");
1258
+ if (!(s > e)) throw new Kt("Input is not a number.");
1259
1259
  p = f - 1;
1260
1260
  }
1261
1261
  return 0;
@@ -1343,15 +1343,15 @@ var np = { exports: {} };
1343
1343
  }
1344
1344
  case "hcl": {
1345
1345
  const [l, d, p, f] = i.hcl, [g, x, w, I] = e.hcl;
1346
- let C, M;
1347
- if (isNaN(l) || isNaN(g)) isNaN(l) ? isNaN(g) ? C = NaN : (C = g, p !== 1 && p !== 0 || (M = x)) : (C = l, w !== 1 && w !== 0 || (M = d));
1346
+ let C, z;
1347
+ if (isNaN(l) || isNaN(g)) isNaN(l) ? isNaN(g) ? C = NaN : (C = g, p !== 1 && p !== 0 || (z = x)) : (C = l, w !== 1 && w !== 0 || (z = d));
1348
1348
  else {
1349
1349
  let se = g - l;
1350
1350
  g > l && se > 180 ? se -= 360 : g < l && l - g > 180 && (se += 360), C = l + r * se;
1351
1351
  }
1352
1352
  const [R, B, $, W] = function([se, Y, ie, ue]) {
1353
1353
  return se = isNaN(se) ? 0 : se * He, Qt([ie, Math.cos(se) * Y, Math.sin(se) * Y, ue]);
1354
- }([C, M ?? Yr(d, x, r), Yr(p, w, r), Yr(f, I, r)]);
1354
+ }([C, z ?? Yr(d, x, r), Yr(p, w, r), Yr(f, I, r)]);
1355
1355
  return new Tt(R, B, $, W, !1);
1356
1356
  }
1357
1357
  case "lab": {
@@ -1363,10 +1363,10 @@ var np = { exports: {} };
1363
1363
  return new ji(gs(i.values, e.values, r));
1364
1364
  }, variableAnchorOffsetCollection: function(i, e, r) {
1365
1365
  const s = i.values, l = e.values;
1366
- if (s.length !== l.length) throw new Jt(`Cannot interpolate values of different length. from: ${i.toString()}, to: ${e.toString()}`);
1366
+ if (s.length !== l.length) throw new Kt(`Cannot interpolate values of different length. from: ${i.toString()}, to: ${e.toString()}`);
1367
1367
  const d = [];
1368
1368
  for (let p = 0; p < s.length; p += 2) {
1369
- if (s[p] !== l[p]) throw new Jt(`Cannot interpolate values containing mismatched anchors. from[${p}]: ${s[p]}, to[${p}]: ${l[p]}`);
1369
+ if (s[p] !== l[p]) throw new Kt(`Cannot interpolate values containing mismatched anchors. from[${p}]: ${s[p]}, to[${p}]: ${l[p]}`);
1370
1370
  d.push(s[p]);
1371
1371
  const [f, g] = s[p + 1], [x, w] = l[p + 1];
1372
1372
  d.push([Yr(f, x, r), Yr(g, w, r)]);
@@ -1411,10 +1411,10 @@ var np = { exports: {} };
1411
1411
  let g = null;
1412
1412
  s === "interpolate-hcl" || s === "interpolate-lab" ? g = Mi : r.expectedType && r.expectedType.kind !== "value" && (g = r.expectedType);
1413
1413
  for (let x = 0; x < p.length; x += 2) {
1414
- const w = p[x], I = p[x + 1], C = x + 3, M = x + 4;
1414
+ const w = p[x], I = p[x + 1], C = x + 3, z = x + 4;
1415
1415
  if (typeof w != "number") return r.error('Input/output pairs for "interpolate" expressions must be defined using literal numeric values (not computed expressions) for the input values.', C);
1416
1416
  if (f.length && f[f.length - 1][0] >= w) return r.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.', C);
1417
- const R = r.parse(I, M, g);
1417
+ const R = r.parse(I, z, g);
1418
1418
  if (!R) return null;
1419
1419
  g = g || R.type, f.push([w, R]);
1420
1420
  }
@@ -1514,7 +1514,7 @@ var np = { exports: {} };
1514
1514
  const p = this.lhs.evaluate(d), f = this.rhs.evaluate(d);
1515
1515
  if (s && this.hasUntypedArgument) {
1516
1516
  const g = ei(p), x = ei(f);
1517
- if (g.kind !== x.kind || g.kind !== "string" && g.kind !== "number") throw new Jt(`Expected arguments for "${i}" to be (string, string) or (number, number), but found (${g.kind}, ${x.kind}) instead.`);
1517
+ if (g.kind !== x.kind || g.kind !== "string" && g.kind !== "number") throw new Kt(`Expected arguments for "${i}" to be (string, string) or (number, number), but found (${g.kind}, ${x.kind}) instead.`);
1518
1518
  }
1519
1519
  if (this.collator && !s && this.hasUntypedArgument) {
1520
1520
  const g = ei(p), x = ei(f);
@@ -1684,7 +1684,7 @@ var np = { exports: {} };
1684
1684
  evaluate(e) {
1685
1685
  const r = this.input.evaluate(e);
1686
1686
  if (typeof r == "string" || Array.isArray(r)) return r.length;
1687
- throw new Jt(`Expected value to be of type string or array, but found ${k(ei(r))} instead.`);
1687
+ throw new Kt(`Expected value to be of type string or array, but found ${k(ei(r))} instead.`);
1688
1688
  }
1689
1689
  eachChild(e) {
1690
1690
  e(this.input);
@@ -1955,10 +1955,10 @@ var np = { exports: {} };
1955
1955
  pointOnLine(e, r) {
1956
1956
  let s, l, d, p, f = 1 / 0;
1957
1957
  for (let g = 0; g < e.length - 1; g++) {
1958
- let x = e[g][0], w = e[g][1], I = this.wrap(e[g + 1][0] - x) * this.kx, C = (e[g + 1][1] - w) * this.ky, M = 0;
1959
- I === 0 && C === 0 || (M = (this.wrap(r[0] - x) * this.kx * I + (r[1] - w) * this.ky * C) / (I * I + C * C), M > 1 ? (x = e[g + 1][0], w = e[g + 1][1]) : M > 0 && (x += I / this.kx * M, w += C / this.ky * M)), I = this.wrap(r[0] - x) * this.kx, C = (r[1] - w) * this.ky;
1958
+ let x = e[g][0], w = e[g][1], I = this.wrap(e[g + 1][0] - x) * this.kx, C = (e[g + 1][1] - w) * this.ky, z = 0;
1959
+ I === 0 && C === 0 || (z = (this.wrap(r[0] - x) * this.kx * I + (r[1] - w) * this.ky * C) / (I * I + C * C), z > 1 ? (x = e[g + 1][0], w = e[g + 1][1]) : z > 0 && (x += I / this.kx * z, w += C / this.ky * z)), I = this.wrap(r[0] - x) * this.kx, C = (r[1] - w) * this.ky;
1960
1960
  const R = I * I + C * C;
1961
- R < f && (f = R, s = x, l = w, d = g, p = M);
1961
+ R < f && (f = R, s = x, l = w, d = g, p = z);
1962
1962
  }
1963
1963
  return { point: [s, l], index: d, t: Math.max(0, Math.min(1, p)) };
1964
1964
  }
@@ -2053,9 +2053,9 @@ var np = { exports: {} };
2053
2053
  for (let d = e[0]; d < e[1]; ++d) {
2054
2054
  const p = i[d], f = i[d + 1];
2055
2055
  for (const g of r) for (let x = 0, w = g.length, I = w - 1; x < w; I = x++) {
2056
- const C = g[I], M = g[x];
2057
- if (io(p, f, C, M)) return 0;
2058
- l = Math.min(l, ia(p, f, C, M, s));
2056
+ const C = g[I], z = g[x];
2057
+ if (io(p, f, C, z)) return 0;
2058
+ l = Math.min(l, ia(p, f, C, z, s));
2059
2059
  }
2060
2060
  }
2061
2061
  return l;
@@ -2073,8 +2073,8 @@ var np = { exports: {} };
2073
2073
  let p = 1 / 0;
2074
2074
  for (const f of i) for (let g = 0, x = f.length, w = x - 1; g < x; w = g++) {
2075
2075
  const I = f[w], C = f[g];
2076
- for (const M of e) for (let R = 0, B = M.length, $ = B - 1; R < B; $ = R++) {
2077
- const W = M[$], se = M[R];
2076
+ for (const z of e) for (let R = 0, B = z.length, $ = B - 1; R < B; $ = R++) {
2077
+ const W = z[$], se = z[R];
2078
2078
  if (io(I, C, W, se)) return 0;
2079
2079
  p = Math.min(p, ia(I, C, W, se, r));
2080
2080
  }
@@ -2126,18 +2126,18 @@ var np = { exports: {} };
2126
2126
  const x = g[1], w = g[2], I = e ? 50 : 100, C = s ? 50 : 100;
2127
2127
  if (no(x) <= I && no(w) <= C) {
2128
2128
  if (!Rr(x, i.length) && Rr(w, r.length)) return NaN;
2129
- let M;
2130
- if (e && s) M = dt(i, x, r, w, l), p = Math.min(p, M);
2129
+ let z;
2130
+ if (e && s) z = dt(i, x, r, w, l), p = Math.min(p, z);
2131
2131
  else if (e && !s) {
2132
2132
  const R = i.slice(x[0], x[1] + 1);
2133
- for (let B = w[0]; B <= w[1]; ++B) if (M = zt(r[B], R, l), p = Math.min(p, M), p === 0) return p;
2133
+ for (let B = w[0]; B <= w[1]; ++B) if (z = zt(r[B], R, l), p = Math.min(p, z), p === 0) return p;
2134
2134
  } else if (!e && s) {
2135
2135
  const R = r.slice(w[0], w[1] + 1);
2136
- for (let B = x[0]; B <= x[1]; ++B) if (M = zt(i[B], R, l), p = Math.min(p, M), p === 0) return p;
2137
- } else M = ra(i, x, r, w, l), p = Math.min(p, M);
2136
+ for (let B = x[0]; B <= x[1]; ++B) if (z = zt(i[B], R, l), p = Math.min(p, z), p === 0) return p;
2137
+ } else z = ra(i, x, r, w, l), p = Math.min(p, z);
2138
2138
  } else {
2139
- const M = vs(x, e), R = vs(w, s);
2140
- so(f, p, l, i, r, M[0], R[0]), so(f, p, l, i, r, M[0], R[1]), so(f, p, l, i, r, M[1], R[0]), so(f, p, l, i, r, M[1], R[1]);
2139
+ const z = vs(x, e), R = vs(w, s);
2140
+ so(f, p, l, i, r, z[0], R[0]), so(f, p, l, i, r, z[0], R[1]), so(f, p, l, i, r, z[1], R[0]), so(f, p, l, i, r, z[1], R[1]);
2141
2141
  }
2142
2142
  }
2143
2143
  return p;
@@ -2253,8 +2253,8 @@ var np = { exports: {} };
2253
2253
  g = new Kr(r.registry, co, r.path, null, r.scope);
2254
2254
  const I = [];
2255
2255
  let C = !1;
2256
- for (let M = 1; M < e.length; M++) {
2257
- const R = e[M], B = Array.isArray(x) ? x[M - 1] : x.type, $ = g.parse(R, 1 + I.length, B);
2256
+ for (let z = 1; z < e.length; z++) {
2257
+ const R = e[z], B = Array.isArray(x) ? x[z - 1] : x.type, $ = g.parse(R, 1 + I.length, B);
2258
2258
  if (!$) {
2259
2259
  C = !0;
2260
2260
  break;
@@ -2263,9 +2263,9 @@ var np = { exports: {} };
2263
2263
  }
2264
2264
  if (!C) if (Array.isArray(x) && x.length !== I.length) g.error(`Expected ${x.length} arguments, but found ${I.length} instead.`);
2265
2265
  else {
2266
- for (let M = 0; M < I.length; M++) {
2267
- const R = Array.isArray(x) ? x[M] : x.type, B = I[M];
2268
- g.concat(M + 1).checkSubtype(R, B.type);
2266
+ for (let z = 0; z < I.length; z++) {
2267
+ const R = Array.isArray(x) ? x[z] : x.type, B = I[z];
2268
+ g.concat(z + 1).checkSubtype(R, B.type);
2269
2269
  }
2270
2270
  if (g.errors.length === 0) return new Zi(s, d, w, I);
2271
2271
  }
@@ -2293,7 +2293,7 @@ var np = { exports: {} };
2293
2293
  function oa(i, [e, r, s, l]) {
2294
2294
  e = e.evaluate(i), r = r.evaluate(i), s = s.evaluate(i);
2295
2295
  const d = l ? l.evaluate(i) : 1, p = Gs(e, r, s, d);
2296
- if (p) throw new Jt(p);
2296
+ if (p) throw new Kt(p);
2297
2297
  return new Tt(e / 255, r / 255, s / 255, d, !1);
2298
2298
  }
2299
2299
  function lo(i, e) {
@@ -2387,8 +2387,8 @@ var np = { exports: {} };
2387
2387
  }
2388
2388
  const C = [];
2389
2389
  for (const R of I) C.push([w[R].zoom, zl(w[R], e)]);
2390
- const M = { name: "linear" };
2391
- return { kind: "composite", interpolationType: M, interpolationFactor: qi.interpolationFactor.bind(void 0, M), zoomStops: C.map((R) => R[0]), evaluate: ({ zoom: R }, B) => ca({ stops: C, base: i.base }, e, R).evaluate(R, B) };
2390
+ const z = { name: "linear" };
2391
+ return { kind: "composite", interpolationType: z, interpolationFactor: qi.interpolationFactor.bind(void 0, z), zoomStops: C.map((R) => R[0]), evaluate: ({ zoom: R }, B) => ca({ stops: C, base: i.base }, e, R).evaluate(R, B) };
2392
2392
  }
2393
2393
  if (l) {
2394
2394
  const w = d === "exponential" ? { name: "exponential", base: i.base !== void 0 ? i.base : 1 } : null;
@@ -2419,8 +2419,8 @@ var np = { exports: {} };
2419
2419
  const l = i.stops.length;
2420
2420
  if (l === 1 || r <= i.stops[0][0]) return i.stops[0][1];
2421
2421
  if (r >= i.stops[l - 1][0]) return i.stops[l - 1][1];
2422
- const d = ms(i.stops.map((w) => w[0]), r), p = function(w, I, C, M) {
2423
- const R = M - C, B = w - C;
2422
+ const d = ms(i.stops.map((w) => w[0]), r), p = function(w, I, C, z) {
2423
+ const R = z - C, B = w - C;
2424
2424
  return R === 0 ? 0 : I === 1 ? B / R : (Math.pow(I, B) - 1) / (Math.pow(I, R) - 1);
2425
2425
  }(r, s, i.stops[d][0], i.stops[d + 1][0]), f = i.stops[d][1], g = i.stops[d + 1][1], x = $i[e.type] || Ml;
2426
2426
  return typeof f.evaluate == "function" ? { evaluate(...w) {
@@ -2448,7 +2448,7 @@ var np = { exports: {} };
2448
2448
  return vn(r, i.default, e.default);
2449
2449
  }
2450
2450
  Zi.register(_n, { error: [{ kind: "error" }, [at], (i, [e]) => {
2451
- throw new Jt(e.evaluate(i));
2451
+ throw new Kt(e.evaluate(i));
2452
2452
  }], typeof: [at, [rt], (i, [e]) => k(ei(e.evaluate(i)))], "to-rgba": [E(Ae, 4), [Mi], (i, [e]) => {
2453
2453
  const [r, s, l, d] = e.evaluate(i).rgb;
2454
2454
  return [255 * r, 255 * s, 255 * l, d];
@@ -2517,7 +2517,7 @@ var np = { exports: {} };
2517
2517
  try {
2518
2518
  const f = this.expression.evaluate(this._evaluator);
2519
2519
  if (f == null || typeof f == "number" && f != f) return this._defaultValue;
2520
- if (this._enumValues && !(f in this._enumValues)) throw new Jt(`Expected value to be one of ${Object.keys(this._enumValues).map((g) => JSON.stringify(g)).join(", ")}, but found ${JSON.stringify(f)} instead.`);
2520
+ if (this._enumValues && !(f in this._enumValues)) throw new Kt(`Expected value to be one of ${Object.keys(this._enumValues).map((g) => JSON.stringify(g)).join(", ")}, but found ${JSON.stringify(f)} instead.`);
2521
2521
  return f;
2522
2522
  } catch (f) {
2523
2523
  return this._warningHistory[f.message] || (this._warningHistory[f.message] = !0, typeof console < "u" && console.warn(f.message)), this._defaultValue;
@@ -2716,18 +2716,18 @@ var np = { exports: {} };
2716
2716
  if (x !== "object") return [new Te(e, r, `object expected, ${x} found`)];
2717
2717
  for (const w in r) {
2718
2718
  const I = w.split(".")[0], C = s[I] || s["*"];
2719
- let M;
2720
- if (l[I]) M = l[I];
2721
- else if (s[I]) M = f;
2722
- else if (l["*"]) M = l["*"];
2719
+ let z;
2720
+ if (l[I]) z = l[I];
2721
+ else if (s[I]) z = f;
2722
+ else if (l["*"]) z = l["*"];
2723
2723
  else {
2724
2724
  if (!s["*"]) {
2725
2725
  g.push(new Te(e, r[w], `unknown property "${w}"`));
2726
2726
  continue;
2727
2727
  }
2728
- M = f;
2728
+ z = f;
2729
2729
  }
2730
- g = g.concat(M({ key: (e && `${e}.`) + w, value: r[w], valueSpec: C, style: d, styleSpec: p, object: r, objectKey: w, validateSpec: f }, r));
2730
+ g = g.concat(z({ key: (e && `${e}.`) + w, value: r[w], valueSpec: C, style: d, styleSpec: p, object: r, objectKey: w, validateSpec: f }, r));
2731
2731
  }
2732
2732
  for (const w in s) l[w] || s[w].required && s[w].default === void 0 && r[w] === void 0 && g.push(new Te(e, r, `missing required property "${w}"`));
2733
2733
  return g;
@@ -2751,18 +2751,18 @@ var np = { exports: {} };
2751
2751
  function ya(i) {
2752
2752
  const e = i.valueSpec, r = Ft(i.value.type);
2753
2753
  let s, l, d, p = {};
2754
- const f = r !== "categorical" && i.value.property === void 0, g = !f, x = gt(i.value.stops) === "array" && gt(i.value.stops[0]) === "array" && gt(i.value.stops[0][0]) === "object", w = zi({ key: i.key, value: i.value, valueSpec: i.styleSpec.function, validateSpec: i.validateSpec, style: i.style, styleSpec: i.styleSpec, objectElementValidators: { stops: function(M) {
2755
- if (r === "identity") return [new Te(M.key, M.value, 'identity function may not have a "stops" property')];
2754
+ const f = r !== "categorical" && i.value.property === void 0, g = !f, x = gt(i.value.stops) === "array" && gt(i.value.stops[0]) === "array" && gt(i.value.stops[0][0]) === "object", w = zi({ key: i.key, value: i.value, valueSpec: i.styleSpec.function, validateSpec: i.validateSpec, style: i.style, styleSpec: i.styleSpec, objectElementValidators: { stops: function(z) {
2755
+ if (r === "identity") return [new Te(z.key, z.value, 'identity function may not have a "stops" property')];
2756
2756
  let R = [];
2757
- const B = M.value;
2758
- return R = R.concat(vo({ key: M.key, value: B, valueSpec: M.valueSpec, validateSpec: M.validateSpec, style: M.style, styleSpec: M.styleSpec, arrayElementValidator: I })), gt(B) === "array" && B.length === 0 && R.push(new Te(M.key, B, "array must have at least one stop")), R;
2759
- }, default: function(M) {
2760
- return M.validateSpec({ key: M.key, value: M.value, valueSpec: e, validateSpec: M.validateSpec, style: M.style, styleSpec: M.styleSpec });
2757
+ const B = z.value;
2758
+ return R = R.concat(vo({ key: z.key, value: B, valueSpec: z.valueSpec, validateSpec: z.validateSpec, style: z.style, styleSpec: z.styleSpec, arrayElementValidator: I })), gt(B) === "array" && B.length === 0 && R.push(new Te(z.key, B, "array must have at least one stop")), R;
2759
+ }, default: function(z) {
2760
+ return z.validateSpec({ key: z.key, value: z.value, valueSpec: e, validateSpec: z.validateSpec, style: z.style, styleSpec: z.styleSpec });
2761
2761
  } } });
2762
2762
  return r === "identity" && f && w.push(new Te(i.key, i.value, 'missing required property "property"')), r === "identity" || i.value.stops || w.push(new Te(i.key, i.value, 'missing required property "stops"')), r === "exponential" && i.valueSpec.expression && !Nn(i.valueSpec) && w.push(new Te(i.key, i.value, "exponential functions not supported")), i.styleSpec.$version >= 8 && (g && !xn(i.valueSpec) ? w.push(new Te(i.key, i.value, "property functions not supported")) : f && !la(i.valueSpec) && w.push(new Te(i.key, i.value, "zoom functions not supported"))), r !== "categorical" && !x || i.value.property !== void 0 || w.push(new Te(i.key, i.value, '"property" property is required')), w;
2763
- function I(M) {
2763
+ function I(z) {
2764
2764
  let R = [];
2765
- const B = M.value, $ = M.key;
2765
+ const B = z.value, $ = z.key;
2766
2766
  if (gt(B) !== "array") return [new Te($, B, `array expected, ${gt(B)} found`)];
2767
2767
  if (B.length !== 2) return [new Te($, B, `array length 2 expected, length ${B.length} found`)];
2768
2768
  if (x) {
@@ -2770,21 +2770,21 @@ var np = { exports: {} };
2770
2770
  if (B[0].zoom === void 0) return [new Te($, B, "object stop key must have zoom")];
2771
2771
  if (B[0].value === void 0) return [new Te($, B, "object stop key must have value")];
2772
2772
  if (d && d > Ft(B[0].zoom)) return [new Te($, B[0].zoom, "stop zoom values must appear in ascending order")];
2773
- Ft(B[0].zoom) !== d && (d = Ft(B[0].zoom), l = void 0, p = {}), R = R.concat(zi({ key: `${$}[0]`, value: B[0], valueSpec: { zoom: {} }, validateSpec: M.validateSpec, style: M.style, styleSpec: M.styleSpec, objectElementValidators: { zoom: Ps, value: C } }));
2774
- } else R = R.concat(C({ key: `${$}[0]`, value: B[0], valueSpec: {}, validateSpec: M.validateSpec, style: M.style, styleSpec: M.styleSpec }, B));
2775
- return Ts(wn(B[1])) ? R.concat([new Te(`${$}[1]`, B[1], "expressions are not allowed in function stops.")]) : R.concat(M.validateSpec({ key: `${$}[1]`, value: B[1], valueSpec: e, validateSpec: M.validateSpec, style: M.style, styleSpec: M.styleSpec }));
2773
+ Ft(B[0].zoom) !== d && (d = Ft(B[0].zoom), l = void 0, p = {}), R = R.concat(zi({ key: `${$}[0]`, value: B[0], valueSpec: { zoom: {} }, validateSpec: z.validateSpec, style: z.style, styleSpec: z.styleSpec, objectElementValidators: { zoom: Ps, value: C } }));
2774
+ } else R = R.concat(C({ key: `${$}[0]`, value: B[0], valueSpec: {}, validateSpec: z.validateSpec, style: z.style, styleSpec: z.styleSpec }, B));
2775
+ return Ts(wn(B[1])) ? R.concat([new Te(`${$}[1]`, B[1], "expressions are not allowed in function stops.")]) : R.concat(z.validateSpec({ key: `${$}[1]`, value: B[1], valueSpec: e, validateSpec: z.validateSpec, style: z.style, styleSpec: z.styleSpec }));
2776
2776
  }
2777
- function C(M, R) {
2778
- const B = gt(M.value), $ = Ft(M.value), W = M.value !== null ? M.value : R;
2777
+ function C(z, R) {
2778
+ const B = gt(z.value), $ = Ft(z.value), W = z.value !== null ? z.value : R;
2779
2779
  if (s) {
2780
- if (B !== s) return [new Te(M.key, W, `${B} stop domain type must match previous stop domain type ${s}`)];
2780
+ if (B !== s) return [new Te(z.key, W, `${B} stop domain type must match previous stop domain type ${s}`)];
2781
2781
  } else s = B;
2782
- if (B !== "number" && B !== "string" && B !== "boolean") return [new Te(M.key, W, "stop domain value must be a number, string, or boolean")];
2782
+ if (B !== "number" && B !== "string" && B !== "boolean") return [new Te(z.key, W, "stop domain value must be a number, string, or boolean")];
2783
2783
  if (B !== "number" && r !== "categorical") {
2784
2784
  let se = `number expected, ${B} found`;
2785
- return xn(e) && r === void 0 && (se += '\nIf you intended to use a categorical function, specify `"type": "categorical"`.'), [new Te(M.key, W, se)];
2785
+ return xn(e) && r === void 0 && (se += '\nIf you intended to use a categorical function, specify `"type": "categorical"`.'), [new Te(z.key, W, se)];
2786
2786
  }
2787
- return r !== "categorical" || B !== "number" || isFinite($) && Math.floor($) === $ ? r !== "categorical" && B === "number" && l !== void 0 && $ < l ? [new Te(M.key, W, "stop domain values must appear in ascending order")] : (l = $, r === "categorical" && $ in p ? [new Te(M.key, W, "stop domain values must be unique")] : (p[$] = !0, [])) : [new Te(M.key, W, `integer expected, found ${$}`)];
2787
+ return r !== "categorical" || B !== "number" || isFinite($) && Math.floor($) === $ ? r !== "categorical" && B === "number" && l !== void 0 && $ < l ? [new Te(z.key, W, "stop domain values must appear in ascending order")] : (l = $, r === "categorical" && $ in p ? [new Te(z.key, W, "stop domain values must be unique")] : (p[$] = !0, [])) : [new Te(z.key, W, `integer expected, found ${$}`)];
2788
2788
  }
2789
2789
  }
2790
2790
  function Sn(i) {
@@ -2907,13 +2907,13 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
2907
2907
  case "raster-dem":
2908
2908
  return f = function(g) {
2909
2909
  var x;
2910
- const w = (x = g.sourceName) !== null && x !== void 0 ? x : "", I = g.value, C = g.styleSpec, M = C.source_raster_dem, R = g.style;
2910
+ const w = (x = g.sourceName) !== null && x !== void 0 ? x : "", I = g.value, C = g.styleSpec, z = C.source_raster_dem, R = g.style;
2911
2911
  let B = [];
2912
2912
  const $ = gt(I);
2913
2913
  if (I === void 0) return B;
2914
2914
  if ($ !== "object") return B.push(new Te("source_raster_dem", I, `object expected, ${$} found`)), B;
2915
2915
  const W = Ft(I.encoding) === "custom", se = ["redFactor", "greenFactor", "blueFactor", "baseShift"], Y = g.value.encoding ? `"${g.value.encoding}"` : "Default";
2916
- for (const ie in I) !W && se.includes(ie) ? B.push(new Te(ie, I[ie], `In "${w}": "${ie}" is only valid when "encoding" is set to "custom". ${Y} encoding found`)) : M[ie] ? B = B.concat(g.validateSpec({ key: ie, value: I[ie], valueSpec: M[ie], validateSpec: g.validateSpec, style: R, styleSpec: C })) : B.push(new Te(ie, I[ie], `unknown property "${ie}"`));
2916
+ for (const ie in I) !W && se.includes(ie) ? B.push(new Te(ie, I[ie], `In "${w}": "${ie}" is only valid when "encoding" is set to "custom". ${Y} encoding found`)) : z[ie] ? B = B.concat(g.validateSpec({ key: ie, value: I[ie], valueSpec: z[ie], validateSpec: g.validateSpec, style: R, styleSpec: C })) : B.push(new Te(ie, I[ie], `unknown property "${ie}"`));
2917
2917
  return B;
2918
2918
  }({ sourceName: r, value: e, style: i.style, styleSpec: s, validateSpec: d }), f;
2919
2919
  case "geojson":
@@ -3081,19 +3081,19 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
3081
3081
  if (x !== null) {
3082
3082
  const w = this.keys, I = this.bboxes;
3083
3083
  for (let C = 0; C < x.length; C++) {
3084
- const M = x[C];
3085
- if (f[M] === void 0) {
3086
- const R = 4 * M;
3087
- (g ? g(I[R + 0], I[R + 1], I[R + 2], I[R + 3]) : e <= I[R + 2] && r <= I[R + 3] && s >= I[R + 0] && l >= I[R + 1]) ? (f[M] = !0, p.push(w[M])) : f[M] = !1;
3084
+ const z = x[C];
3085
+ if (f[z] === void 0) {
3086
+ const R = 4 * z;
3087
+ (g ? g(I[R + 0], I[R + 1], I[R + 2], I[R + 3]) : e <= I[R + 2] && r <= I[R + 3] && s >= I[R + 0] && l >= I[R + 1]) ? (f[z] = !0, p.push(w[z])) : f[z] = !1;
3088
3088
  }
3089
3089
  }
3090
3090
  }
3091
3091
  }
3092
3092
  _forEachCell(e, r, s, l, d, p, f, g) {
3093
3093
  const x = this._convertToCellCoord(e), w = this._convertToCellCoord(r), I = this._convertToCellCoord(s), C = this._convertToCellCoord(l);
3094
- for (let M = x; M <= I; M++) for (let R = w; R <= C; R++) {
3095
- const B = this.d * R + M;
3096
- if ((!g || g(this._convertFromCellCoord(M), this._convertFromCellCoord(R), this._convertFromCellCoord(M + 1), this._convertFromCellCoord(R + 1))) && d.call(this, e, r, s, l, B, p, f, g)) return;
3094
+ for (let z = x; z <= I; z++) for (let R = w; R <= C; R++) {
3095
+ const B = this.d * R + z;
3096
+ if ((!g || g(this._convertFromCellCoord(z), this._convertFromCellCoord(R), this._convertFromCellCoord(z + 1), this._convertFromCellCoord(R + 1))) && d.call(this, e, r, s, l, B, p, f, g)) return;
3097
3097
  }
3098
3098
  }
3099
3099
  _convertFromCellCoord(e) {
@@ -3751,12 +3751,12 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
3751
3751
  this.uint8 = new Uint8Array(this.arrayBuffer), this.int16 = new Int16Array(this.arrayBuffer), this.uint16 = new Uint16Array(this.arrayBuffer);
3752
3752
  }
3753
3753
  emplaceBack(e, r, s, l, d, p, f, g, x, w, I, C) {
3754
- const M = this.length;
3755
- return this.resize(M + 1), this.emplace(M, e, r, s, l, d, p, f, g, x, w, I, C);
3754
+ const z = this.length;
3755
+ return this.resize(z + 1), this.emplace(z, e, r, s, l, d, p, f, g, x, w, I, C);
3756
3756
  }
3757
- emplace(e, r, s, l, d, p, f, g, x, w, I, C, M) {
3757
+ emplace(e, r, s, l, d, p, f, g, x, w, I, C, z) {
3758
3758
  const R = 12 * e;
3759
- return this.int16[R + 0] = r, this.int16[R + 1] = s, this.int16[R + 2] = l, this.int16[R + 3] = d, this.uint16[R + 4] = p, this.uint16[R + 5] = f, this.uint16[R + 6] = g, this.uint16[R + 7] = x, this.int16[R + 8] = w, this.int16[R + 9] = I, this.int16[R + 10] = C, this.int16[R + 11] = M, e;
3759
+ return this.int16[R + 0] = r, this.int16[R + 1] = s, this.int16[R + 2] = l, this.int16[R + 3] = d, this.uint16[R + 4] = p, this.uint16[R + 5] = f, this.uint16[R + 6] = g, this.uint16[R + 7] = x, this.int16[R + 8] = w, this.int16[R + 9] = I, this.int16[R + 10] = C, this.int16[R + 11] = z, e;
3760
3760
  }
3761
3761
  }
3762
3762
  K.prototype.bytesPerElement = 24, Be("StructArrayLayout4i4ui4i24", K);
@@ -3861,13 +3861,13 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
3861
3861
  _refreshViews() {
3862
3862
  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);
3863
3863
  }
3864
- emplaceBack(e, r, s, l, d, p, f, g, x, w, I, C, M, R, B, $, W) {
3864
+ emplaceBack(e, r, s, l, d, p, f, g, x, w, I, C, z, R, B, $, W) {
3865
3865
  const se = this.length;
3866
- return this.resize(se + 1), this.emplace(se, e, r, s, l, d, p, f, g, x, w, I, C, M, R, B, $, W);
3866
+ return this.resize(se + 1), this.emplace(se, e, r, s, l, d, p, f, g, x, w, I, C, z, R, B, $, W);
3867
3867
  }
3868
- emplace(e, r, s, l, d, p, f, g, x, w, I, C, M, R, B, $, W, se) {
3868
+ emplace(e, r, s, l, d, p, f, g, x, w, I, C, z, R, B, $, W, se) {
3869
3869
  const Y = 24 * e, ie = 12 * e, ue = 48 * e;
3870
- return this.int16[Y + 0] = r, this.int16[Y + 1] = s, this.uint16[Y + 2] = l, this.uint16[Y + 3] = d, this.uint32[ie + 2] = p, this.uint32[ie + 3] = f, this.uint32[ie + 4] = g, this.uint16[Y + 10] = x, this.uint16[Y + 11] = w, this.uint16[Y + 12] = I, this.float32[ie + 7] = C, this.float32[ie + 8] = M, this.uint8[ue + 36] = R, this.uint8[ue + 37] = B, this.uint8[ue + 38] = $, this.uint32[ie + 10] = W, this.int16[Y + 22] = se, e;
3870
+ return this.int16[Y + 0] = r, this.int16[Y + 1] = s, this.uint16[Y + 2] = l, this.uint16[Y + 3] = d, this.uint32[ie + 2] = p, this.uint32[ie + 3] = f, this.uint32[ie + 4] = g, this.uint16[Y + 10] = x, this.uint16[Y + 11] = w, this.uint16[Y + 12] = I, this.float32[ie + 7] = C, this.float32[ie + 8] = z, this.uint8[ue + 36] = R, this.uint8[ue + 37] = B, this.uint8[ue + 38] = $, this.uint32[ie + 10] = W, this.int16[Y + 22] = se, e;
3871
3871
  }
3872
3872
  }
3873
3873
  Le.prototype.bytesPerElement = 48, Be("StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48", Le);
@@ -3875,13 +3875,13 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
3875
3875
  _refreshViews() {
3876
3876
  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);
3877
3877
  }
3878
- emplaceBack(e, r, s, l, d, p, f, g, x, w, I, C, M, R, B, $, W, se, Y, ie, ue, xe, De, We, Ee, Ce, $e, Oe) {
3878
+ emplaceBack(e, r, s, l, d, p, f, g, x, w, I, C, z, R, B, $, W, se, Y, ie, ue, xe, De, We, Ee, Ce, $e, Oe) {
3879
3879
  const Re = this.length;
3880
- return this.resize(Re + 1), this.emplace(Re, e, r, s, l, d, p, f, g, x, w, I, C, M, R, B, $, W, se, Y, ie, ue, xe, De, We, Ee, Ce, $e, Oe);
3880
+ return this.resize(Re + 1), this.emplace(Re, e, r, s, l, d, p, f, g, x, w, I, C, z, R, B, $, W, se, Y, ie, ue, xe, De, We, Ee, Ce, $e, Oe);
3881
3881
  }
3882
- emplace(e, r, s, l, d, p, f, g, x, w, I, C, M, R, B, $, W, se, Y, ie, ue, xe, De, We, Ee, Ce, $e, Oe, Re) {
3882
+ emplace(e, r, s, l, d, p, f, g, x, w, I, C, z, R, B, $, W, se, Y, ie, ue, xe, De, We, Ee, Ce, $e, Oe, Re) {
3883
3883
  const fe = 32 * e, Ze = 16 * e;
3884
- return this.int16[fe + 0] = r, this.int16[fe + 1] = s, this.int16[fe + 2] = l, this.int16[fe + 3] = d, this.int16[fe + 4] = p, this.int16[fe + 5] = f, this.int16[fe + 6] = g, this.int16[fe + 7] = x, this.uint16[fe + 8] = w, this.uint16[fe + 9] = I, this.uint16[fe + 10] = C, this.uint16[fe + 11] = M, this.uint16[fe + 12] = R, this.uint16[fe + 13] = B, this.uint16[fe + 14] = $, this.uint16[fe + 15] = W, this.uint16[fe + 16] = se, this.uint16[fe + 17] = Y, this.uint16[fe + 18] = ie, this.uint16[fe + 19] = ue, this.uint16[fe + 20] = xe, this.uint16[fe + 21] = De, this.uint16[fe + 22] = We, this.uint32[Ze + 12] = Ee, this.float32[Ze + 13] = Ce, this.float32[Ze + 14] = $e, this.uint16[fe + 30] = Oe, this.uint16[fe + 31] = Re, e;
3884
+ return this.int16[fe + 0] = r, this.int16[fe + 1] = s, this.int16[fe + 2] = l, this.int16[fe + 3] = d, this.int16[fe + 4] = p, this.int16[fe + 5] = f, this.int16[fe + 6] = g, this.int16[fe + 7] = x, this.uint16[fe + 8] = w, this.uint16[fe + 9] = I, this.uint16[fe + 10] = C, this.uint16[fe + 11] = z, this.uint16[fe + 12] = R, this.uint16[fe + 13] = B, this.uint16[fe + 14] = $, this.uint16[fe + 15] = W, this.uint16[fe + 16] = se, this.uint16[fe + 17] = Y, this.uint16[fe + 18] = ie, this.uint16[fe + 19] = ue, this.uint16[fe + 20] = xe, this.uint16[fe + 21] = De, this.uint16[fe + 22] = We, this.uint32[Ze + 12] = Ee, this.float32[Ze + 13] = Ce, this.float32[Ze + 14] = $e, this.uint16[fe + 30] = Oe, this.uint16[fe + 31] = Re, e;
3885
3885
  }
3886
3886
  }
3887
3887
  we.prototype.bytesPerElement = 64, Be("StructArrayLayout8i15ui1ul2f2ui64", we);
@@ -4517,11 +4517,11 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
4517
4517
  const f = Lp(d, e.type), g = p.value, x = p.property.specification.type, w = p.property.useIntegerZoom, I = p.property.specification["property-type"], C = I === "cross-faded" || I === "cross-faded-data-driven";
4518
4518
  if (g.kind === "constant") this.binders[d] = C ? new Co(g.value, f) : new ja(g.value, f, x), l.push(`/u_${d}`);
4519
4519
  else if (g.kind === "source" || C) {
4520
- const M = nu(d, x, "source");
4521
- this.binders[d] = C ? new Kn(g, x, w, r, M, e.id) : new Pn(g, f, x, M), l.push(`/a_${d}`);
4520
+ const z = nu(d, x, "source");
4521
+ this.binders[d] = C ? new Kn(g, x, w, r, z, e.id) : new Pn(g, f, x, z), l.push(`/a_${d}`);
4522
4522
  } else {
4523
- const M = nu(d, x, "composite");
4524
- this.binders[d] = new Or(g, f, x, w, r, M), l.push(`/z_${d}`);
4523
+ const z = nu(d, x, "composite");
4524
+ this.binders[d] = new Or(g, f, x, w, r, z), l.push(`/z_${d}`);
4525
4525
  }
4526
4526
  }
4527
4527
  this.cacheKey = l.sort().join("");
@@ -4551,8 +4551,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
4551
4551
  for (const I in this.binders) {
4552
4552
  const C = this.binders[I];
4553
4553
  if ((C instanceof Pn || C instanceof Or || C instanceof Kn) && C.expression.isStateDependent === !0) {
4554
- const M = l.paint.get(I);
4555
- C.expression = M.value, C.updatePaintArray(x.start, x.end, w, e[f], d), p = !0;
4554
+ const z = l.paint.get(I);
4555
+ C.expression = z.value, C.updatePaintArray(x.start, x.end, w, e[f], d), p = !0;
4556
4556
  }
4557
4557
  }
4558
4558
  }
@@ -4690,9 +4690,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
4690
4690
  let p = null, f = !1;
4691
4691
  l.type === "circle" && (p = l.layout.get("circle-sort-key"), f = !p.isConstant());
4692
4692
  for (const { feature: g, id: x, index: w, sourceLayerIndex: I } of e) {
4693
- const C = this.layers[0]._featureFilter.needGeometry, M = Fs(g, C);
4694
- if (!this.layers[0]._featureFilter.filter(new Dt(this.zoom), M, s)) continue;
4695
- const R = f ? p.evaluate(M, {}, s) : void 0, B = { id: x, properties: g.properties, type: g.type, sourceLayerIndex: I, index: w, geometry: C ? M.geometry : Rs(g), patterns: {}, sortKey: R };
4693
+ const C = this.layers[0]._featureFilter.needGeometry, z = Fs(g, C);
4694
+ if (!this.layers[0]._featureFilter.filter(new Dt(this.zoom), z, s)) continue;
4695
+ const R = f ? p.evaluate(z, {}, s) : void 0, B = { id: x, properties: g.properties, type: g.type, sourceLayerIndex: I, index: w, geometry: C ? z.geometry : Rs(g), patterns: {}, sortKey: R };
4696
4696
  d.push(B);
4697
4697
  }
4698
4698
  f && d.sort((g, x) => g.sortKey - x.sortKey);
@@ -4823,8 +4823,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
4823
4823
  return i[0] = 1, i[1] = 0, i[2] = 0, i[3] = 0, i[4] = 0, i[5] = 1, i[6] = 0, i[7] = 0, i[8] = 0, i[9] = 0, i[10] = 1, i[11] = 0, i[12] = 0, i[13] = 0, i[14] = 0, i[15] = 1, i;
4824
4824
  }
4825
4825
  function du(i, e, r) {
4826
- var s = e[0], l = e[1], d = e[2], p = e[3], f = e[4], g = e[5], x = e[6], w = e[7], I = e[8], C = e[9], M = e[10], R = e[11], B = e[12], $ = e[13], W = e[14], se = e[15], Y = r[0], ie = r[1], ue = r[2], xe = r[3];
4827
- return i[0] = Y * s + ie * f + ue * I + xe * B, i[1] = Y * l + ie * g + ue * C + xe * $, i[2] = Y * d + ie * x + ue * M + xe * W, i[3] = Y * p + ie * w + ue * R + xe * se, i[4] = (Y = r[4]) * s + (ie = r[5]) * f + (ue = r[6]) * I + (xe = r[7]) * B, i[5] = Y * l + ie * g + ue * C + xe * $, i[6] = Y * d + ie * x + ue * M + xe * W, i[7] = Y * p + ie * w + ue * R + xe * se, i[8] = (Y = r[8]) * s + (ie = r[9]) * f + (ue = r[10]) * I + (xe = r[11]) * B, i[9] = Y * l + ie * g + ue * C + xe * $, i[10] = Y * d + ie * x + ue * M + xe * W, i[11] = Y * p + ie * w + ue * R + xe * se, i[12] = (Y = r[12]) * s + (ie = r[13]) * f + (ue = r[14]) * I + (xe = r[15]) * B, i[13] = Y * l + ie * g + ue * C + xe * $, i[14] = Y * d + ie * x + ue * M + xe * W, i[15] = Y * p + ie * w + ue * R + xe * se, i;
4826
+ var s = e[0], l = e[1], d = e[2], p = e[3], f = e[4], g = e[5], x = e[6], w = e[7], I = e[8], C = e[9], z = e[10], R = e[11], B = e[12], $ = e[13], W = e[14], se = e[15], Y = r[0], ie = r[1], ue = r[2], xe = r[3];
4827
+ return i[0] = Y * s + ie * f + ue * I + xe * B, i[1] = Y * l + ie * g + ue * C + xe * $, i[2] = Y * d + ie * x + ue * z + xe * W, i[3] = Y * p + ie * w + ue * R + xe * se, i[4] = (Y = r[4]) * s + (ie = r[5]) * f + (ue = r[6]) * I + (xe = r[7]) * B, i[5] = Y * l + ie * g + ue * C + xe * $, i[6] = Y * d + ie * x + ue * z + xe * W, i[7] = Y * p + ie * w + ue * R + xe * se, i[8] = (Y = r[8]) * s + (ie = r[9]) * f + (ue = r[10]) * I + (xe = r[11]) * B, i[9] = Y * l + ie * g + ue * C + xe * $, i[10] = Y * d + ie * x + ue * z + xe * W, i[11] = Y * p + ie * w + ue * R + xe * se, i[12] = (Y = r[12]) * s + (ie = r[13]) * f + (ue = r[14]) * I + (xe = r[15]) * B, i[13] = Y * l + ie * g + ue * C + xe * $, i[14] = Y * d + ie * x + ue * z + xe * W, i[15] = Y * p + ie * w + ue * R + xe * se, i;
4828
4828
  }
4829
4829
  Math.hypot || (Math.hypot = function() {
4830
4830
  for (var i = 0, e = arguments.length; e--; ) i += arguments[e] * arguments[e];
@@ -4850,10 +4850,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
4850
4850
  queryIntersectsFeature(e, r, s, l, d, p, f, g) {
4851
4851
  const x = Kl(e, this.paint.get("circle-translate"), this.paint.get("circle-translate-anchor"), p.angle, f), w = this.paint.get("circle-radius").evaluate(r, s) + this.paint.get("circle-stroke-width").evaluate(r, s), I = this.paint.get("circle-pitch-alignment") === "map", C = I ? x : function(R, B) {
4852
4852
  return R.map(($) => pu($, B));
4853
- }(x, g), M = I ? w * f : w;
4853
+ }(x, g), z = I ? w * f : w;
4854
4854
  for (const R of l) for (const B of R) {
4855
4855
  const $ = I ? B : pu(B, g);
4856
- let W = M;
4856
+ let W = z;
4857
4857
  const se = Yl([], [B.x, B.y, 0, 1], g);
4858
4858
  if (this.paint.get("circle-pitch-scale") === "viewport" && this.paint.get("circle-pitch-alignment") === "map" ? W *= se[3] / p.cameraToCenterDistance : this.paint.get("circle-pitch-scale") === "map" && this.paint.get("circle-pitch-alignment") === "viewport" && (W *= p.cameraToCenterDistance / se[3]), Rp(C, $, W)) return !0;
4859
4859
  }
@@ -4987,10 +4987,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
4987
4987
  const p = [];
4988
4988
  if (!d || d.next === d.prev) return p;
4989
4989
  let f, g, x;
4990
- if (s && (d = function(w, I, C, M) {
4990
+ if (s && (d = function(w, I, C, z) {
4991
4991
  const R = [];
4992
4992
  for (let B = 0, $ = I.length; B < $; B++) {
4993
- const W = vu(w, I[B] * M, B < $ - 1 ? I[B + 1] * M : w.length, M, !1);
4993
+ const W = vu(w, I[B] * z, B < $ - 1 ? I[B + 1] * z : w.length, z, !1);
4994
4994
  W === W.next && (W.steiner = !0), R.push(tf(W));
4995
4995
  }
4996
4996
  R.sort(Yp);
@@ -5000,8 +5000,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
5000
5000
  f = 1 / 0, g = 1 / 0;
5001
5001
  let w = -1 / 0, I = -1 / 0;
5002
5002
  for (let C = r; C < l; C += r) {
5003
- const M = i[C], R = i[C + 1];
5004
- M < f && (f = M), R < g && (g = R), M > w && (w = M), R > I && (I = R);
5003
+ const z = i[C], R = i[C + 1];
5004
+ z < f && (f = z), R < g && (g = R), z > w && (w = z), R > I && (I = R);
5005
5005
  }
5006
5006
  x = Math.max(w - f, I - g), x = x !== 0 ? 32767 / x : 0;
5007
5007
  }
@@ -5022,7 +5022,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
5022
5022
  e || (e = i);
5023
5023
  let r, s = i;
5024
5024
  do
5025
- if (r = !1, s.steiner || !Ql(s, s.next) && Kt(s.prev, s, s.next) !== 0) s = s.next;
5025
+ if (r = !1, s.steiner || !Ql(s, s.next) && Yt(s.prev, s, s.next) !== 0) s = s.next;
5026
5026
  else {
5027
5027
  if (Ha(s), s = e = s.prev, s === s.next) break;
5028
5028
  r = !0;
@@ -5037,18 +5037,18 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
5037
5037
  do
5038
5038
  C.z === 0 && (C.z = rh(C.x, C.y, x, w, I)), C.prevZ = C.prev, C.nextZ = C.next, C = C.next;
5039
5039
  while (C !== g);
5040
- C.prevZ.nextZ = null, C.prevZ = null, function(M) {
5040
+ C.prevZ.nextZ = null, C.prevZ = null, function(z) {
5041
5041
  let R, B = 1;
5042
5042
  do {
5043
- let $, W = M;
5044
- M = null;
5043
+ let $, W = z;
5044
+ z = null;
5045
5045
  let se = null;
5046
5046
  for (R = 0; W; ) {
5047
5047
  R++;
5048
5048
  let Y = W, ie = 0;
5049
5049
  for (let xe = 0; xe < B && (ie++, Y = Y.nextZ, Y); xe++) ;
5050
5050
  let ue = B;
5051
- for (; ie > 0 || ue > 0 && Y; ) ie !== 0 && (ue === 0 || !Y || W.z <= Y.z) ? ($ = W, W = W.nextZ, ie--) : ($ = Y, Y = Y.nextZ, ue--), se ? se.nextZ = $ : M = $, $.prevZ = se, se = $;
5051
+ for (; ie > 0 || ue > 0 && Y; ) ie !== 0 && (ue === 0 || !Y || W.z <= Y.z) ? ($ = W, W = W.nextZ, ie--) : ($ = Y, Y = Y.nextZ, ue--), se ? se.nextZ = $ : z = $, $.prevZ = se, se = $;
5052
5052
  W = Y;
5053
5053
  }
5054
5054
  se.nextZ = null, B *= 2;
@@ -5067,30 +5067,30 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
5067
5067
  }
5068
5068
  function Wp(i) {
5069
5069
  const e = i.prev, r = i, s = i.next;
5070
- if (Kt(e, r, s) >= 0) return !1;
5071
- const l = e.x, d = r.x, p = s.x, f = e.y, g = r.y, x = s.y, w = l < d ? l < p ? l : p : d < p ? d : p, I = f < g ? f < x ? f : x : g < x ? g : x, C = l > d ? l > p ? l : p : d > p ? d : p, M = f > g ? f > x ? f : x : g > x ? g : x;
5070
+ if (Yt(e, r, s) >= 0) return !1;
5071
+ const l = e.x, d = r.x, p = s.x, f = e.y, g = r.y, x = s.y, w = l < d ? l < p ? l : p : d < p ? d : p, I = f < g ? f < x ? f : x : g < x ? g : x, C = l > d ? l > p ? l : p : d > p ? d : p, z = f > g ? f > x ? f : x : g > x ? g : x;
5072
5072
  let R = s.next;
5073
5073
  for (; R !== e; ) {
5074
- if (R.x >= w && R.x <= C && R.y >= I && R.y <= M && Mo(l, f, d, g, p, x, R.x, R.y) && Kt(R.prev, R, R.next) >= 0) return !1;
5074
+ if (R.x >= w && R.x <= C && R.y >= I && R.y <= z && Mo(l, f, d, g, p, x, R.x, R.y) && Yt(R.prev, R, R.next) >= 0) return !1;
5075
5075
  R = R.next;
5076
5076
  }
5077
5077
  return !0;
5078
5078
  }
5079
5079
  function Xp(i, e, r, s) {
5080
5080
  const l = i.prev, d = i, p = i.next;
5081
- if (Kt(l, d, p) >= 0) return !1;
5082
- const f = l.x, g = d.x, x = p.x, w = l.y, I = d.y, C = p.y, M = f < g ? f < x ? f : x : g < x ? g : x, R = w < I ? w < C ? w : C : I < C ? I : C, B = f > g ? f > x ? f : x : g > x ? g : x, $ = w > I ? w > C ? w : C : I > C ? I : C, W = rh(M, R, e, r, s), se = rh(B, $, e, r, s);
5081
+ if (Yt(l, d, p) >= 0) return !1;
5082
+ const f = l.x, g = d.x, x = p.x, w = l.y, I = d.y, C = p.y, z = f < g ? f < x ? f : x : g < x ? g : x, R = w < I ? w < C ? w : C : I < C ? I : C, B = f > g ? f > x ? f : x : g > x ? g : x, $ = w > I ? w > C ? w : C : I > C ? I : C, W = rh(z, R, e, r, s), se = rh(B, $, e, r, s);
5083
5083
  let Y = i.prevZ, ie = i.nextZ;
5084
5084
  for (; Y && Y.z >= W && ie && ie.z <= se; ) {
5085
- if (Y.x >= M && Y.x <= B && Y.y >= R && Y.y <= $ && Y !== l && Y !== p && Mo(f, w, g, I, x, C, Y.x, Y.y) && Kt(Y.prev, Y, Y.next) >= 0 || (Y = Y.prevZ, ie.x >= M && ie.x <= B && ie.y >= R && ie.y <= $ && ie !== l && ie !== p && Mo(f, w, g, I, x, C, ie.x, ie.y) && Kt(ie.prev, ie, ie.next) >= 0)) return !1;
5085
+ if (Y.x >= z && Y.x <= B && Y.y >= R && Y.y <= $ && Y !== l && Y !== p && Mo(f, w, g, I, x, C, Y.x, Y.y) && Yt(Y.prev, Y, Y.next) >= 0 || (Y = Y.prevZ, ie.x >= z && ie.x <= B && ie.y >= R && ie.y <= $ && ie !== l && ie !== p && Mo(f, w, g, I, x, C, ie.x, ie.y) && Yt(ie.prev, ie, ie.next) >= 0)) return !1;
5086
5086
  ie = ie.nextZ;
5087
5087
  }
5088
5088
  for (; Y && Y.z >= W; ) {
5089
- if (Y.x >= M && Y.x <= B && Y.y >= R && Y.y <= $ && Y !== l && Y !== p && Mo(f, w, g, I, x, C, Y.x, Y.y) && Kt(Y.prev, Y, Y.next) >= 0) return !1;
5089
+ if (Y.x >= z && Y.x <= B && Y.y >= R && Y.y <= $ && Y !== l && Y !== p && Mo(f, w, g, I, x, C, Y.x, Y.y) && Yt(Y.prev, Y, Y.next) >= 0) return !1;
5090
5090
  Y = Y.prevZ;
5091
5091
  }
5092
5092
  for (; ie && ie.z <= se; ) {
5093
- if (ie.x >= M && ie.x <= B && ie.y >= R && ie.y <= $ && ie !== l && ie !== p && Mo(f, w, g, I, x, C, ie.x, ie.y) && Kt(ie.prev, ie, ie.next) >= 0) return !1;
5093
+ if (ie.x >= z && ie.x <= B && ie.y >= R && ie.y <= $ && ie !== l && ie !== p && Mo(f, w, g, I, x, C, ie.x, ie.y) && Yt(ie.prev, ie, ie.next) >= 0) return !1;
5094
5094
  ie = ie.nextZ;
5095
5095
  }
5096
5096
  return !0;
@@ -5133,11 +5133,11 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
5133
5133
  p = p.next;
5134
5134
  } while (p !== d);
5135
5135
  if (!x) return null;
5136
- const I = x, C = x.x, M = x.y;
5136
+ const I = x, C = x.x, z = x.y;
5137
5137
  let R = 1 / 0;
5138
5138
  p = x;
5139
5139
  do {
5140
- if (f >= p.x && p.x >= C && f !== p.x && Mo(g < M ? f : w, g, C, M, g < M ? w : f, g, p.x, p.y)) {
5140
+ if (f >= p.x && p.x >= C && f !== p.x && Mo(g < z ? f : w, g, C, z, g < z ? w : f, g, p.x, p.y)) {
5141
5141
  const B = Math.abs(g - p.y) / (f - p.x);
5142
5142
  Ga(p, l) && (B < R || B === R && (p.x > x.x || p.x === x.x && ef(x, p))) && (x = p, R = B);
5143
5143
  }
@@ -5150,7 +5150,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
5150
5150
  return Bs(s, s.next), Bs(r, r.next);
5151
5151
  }
5152
5152
  function ef(i, e) {
5153
- return Kt(i.prev, i, e.prev) < 0 && Kt(e.next, i, i.next) < 0;
5153
+ return Yt(i.prev, i, e.prev) < 0 && Yt(e.next, i, i.next) < 0;
5154
5154
  }
5155
5155
  function rh(i, e, r, s, l) {
5156
5156
  return (i = 1431655765 & ((i = 858993459 & ((i = 252645135 & ((i = 16711935 & ((i = (i - r) * l | 0) | i << 8)) | i << 4)) | i << 2)) | i << 1)) | (e = 1431655765 & ((e = 858993459 & ((e = 252645135 & ((e = 16711935 & ((e = (e - s) * l | 0) | e << 8)) | e << 4)) | e << 2)) | e << 1)) << 1;
@@ -5180,16 +5180,16 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
5180
5180
  l.y > f != l.next.y > f && l.next.y !== l.y && p < (l.next.x - l.x) * (f - l.y) / (l.next.y - l.y) + l.x && (d = !d), l = l.next;
5181
5181
  while (l !== r);
5182
5182
  return d;
5183
- }(i, e) && (Kt(i.prev, i, e.prev) || Kt(i, e.prev, e)) || Ql(i, e) && Kt(i.prev, i, i.next) > 0 && Kt(e.prev, e, e.next) > 0);
5183
+ }(i, e) && (Yt(i.prev, i, e.prev) || Yt(i, e.prev, e)) || Ql(i, e) && Yt(i.prev, i, i.next) > 0 && Yt(e.prev, e, e.next) > 0);
5184
5184
  }
5185
- function Kt(i, e, r) {
5185
+ function Yt(i, e, r) {
5186
5186
  return (e.y - i.y) * (r.x - e.x) - (e.x - i.x) * (r.y - e.y);
5187
5187
  }
5188
5188
  function Ql(i, e) {
5189
5189
  return i.x === e.x && i.y === e.y;
5190
5190
  }
5191
5191
  function bu(i, e, r, s) {
5192
- const l = tc(Kt(i, e, r)), d = tc(Kt(i, e, s)), p = tc(Kt(r, s, i)), f = tc(Kt(r, s, e));
5192
+ const l = tc(Yt(i, e, r)), d = tc(Yt(i, e, s)), p = tc(Yt(r, s, i)), f = tc(Yt(r, s, e));
5193
5193
  return l !== d && p !== f || !(l !== 0 || !ec(i, r, e)) || !(d !== 0 || !ec(i, s, e)) || !(p !== 0 || !ec(r, i, s)) || !(f !== 0 || !ec(r, e, s));
5194
5194
  }
5195
5195
  function ec(i, e, r) {
@@ -5199,7 +5199,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
5199
5199
  return i > 0 ? 1 : i < 0 ? -1 : 0;
5200
5200
  }
5201
5201
  function Ga(i, e) {
5202
- return Kt(i.prev, i, i.next) < 0 ? Kt(i, e, i.next) >= 0 && Kt(i, i.prev, e) >= 0 : Kt(i, e, i.prev) < 0 || Kt(i, i.next, e) < 0;
5202
+ return Yt(i.prev, i, i.next) < 0 ? Yt(i, e, i.next) >= 0 && Yt(i, i.prev, e) >= 0 : Yt(i, e, i.prev) < 0 || Yt(i, i.next, e) < 0;
5203
5203
  }
5204
5204
  function wu(i, e) {
5205
5205
  const r = nh(i.i, i.x, i.y), s = nh(e.i, e.x, e.y), l = i.next, d = e.prev;
@@ -5247,7 +5247,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
5247
5247
  for (const { feature: f, id: g, index: x, sourceLayerIndex: w } of e) {
5248
5248
  const I = this.layers[0]._featureFilter.needGeometry, C = Fs(f, I);
5249
5249
  if (!this.layers[0]._featureFilter.filter(new Dt(this.zoom), C, s)) continue;
5250
- const M = d ? l.evaluate(C, {}, s, r.availableImages) : void 0, R = { id: g, properties: f.properties, type: f.type, sourceLayerIndex: w, index: x, geometry: I ? C.geometry : Rs(f), patterns: {}, sortKey: M };
5250
+ const z = d ? l.evaluate(C, {}, s, r.availableImages) : void 0, R = { id: g, properties: f.properties, type: f.type, sourceLayerIndex: w, index: x, geometry: I ? C.geometry : Rs(f), patterns: {}, sortKey: z };
5251
5251
  p.push(R);
5252
5252
  }
5253
5253
  d && p.sort((f, g) => f.sortKey - g.sortKey);
@@ -5281,18 +5281,18 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
5281
5281
  addFeature(e, r, s, l, d) {
5282
5282
  for (const p of ro(r, 500)) {
5283
5283
  let f = 0;
5284
- for (const M of p) f += M.length;
5284
+ for (const z of p) f += z.length;
5285
5285
  const g = this.segments.prepareSegment(f, this.layoutVertexArray, this.indexArray), x = g.vertexLength, w = [], I = [];
5286
- for (const M of p) {
5287
- if (M.length === 0) continue;
5288
- M !== p[0] && I.push(w.length / 2);
5289
- const R = this.segments2.prepareSegment(M.length, this.layoutVertexArray, this.indexArray2), B = R.vertexLength;
5290
- this.layoutVertexArray.emplaceBack(M[0].x, M[0].y), this.indexArray2.emplaceBack(B + M.length - 1, B), w.push(M[0].x), w.push(M[0].y);
5291
- for (let $ = 1; $ < M.length; $++) this.layoutVertexArray.emplaceBack(M[$].x, M[$].y), this.indexArray2.emplaceBack(B + $ - 1, B + $), w.push(M[$].x), w.push(M[$].y);
5292
- R.vertexLength += M.length, R.primitiveLength += M.length;
5286
+ for (const z of p) {
5287
+ if (z.length === 0) continue;
5288
+ z !== p[0] && I.push(w.length / 2);
5289
+ const R = this.segments2.prepareSegment(z.length, this.layoutVertexArray, this.indexArray2), B = R.vertexLength;
5290
+ this.layoutVertexArray.emplaceBack(z[0].x, z[0].y), this.indexArray2.emplaceBack(B + z.length - 1, B), w.push(z[0].x), w.push(z[0].y);
5291
+ for (let $ = 1; $ < z.length; $++) this.layoutVertexArray.emplaceBack(z[$].x, z[$].y), this.indexArray2.emplaceBack(B + $ - 1, B + $), w.push(z[$].x), w.push(z[$].y);
5292
+ R.vertexLength += z.length, R.primitiveLength += z.length;
5293
5293
  }
5294
5294
  const C = xu(w, I);
5295
- for (let M = 0; M < C.length; M += 3) this.indexArray.emplaceBack(x + C[M], x + C[M + 1], x + C[M + 2]);
5295
+ for (let z = 0; z < C.length; z += 3) this.indexArray.emplaceBack(x + C[z], x + C[z + 1], x + C[z + 2]);
5296
5296
  g.vertexLength += f, g.primitiveLength += C.length / 3;
5297
5297
  }
5298
5298
  this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length, e, s, d, l);
@@ -5373,10 +5373,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
5373
5373
  return [p, g, f, x];
5374
5374
  }, zo.prototype.toGeoJSON = function(i, e, r) {
5375
5375
  var s, l, d = this.extent * Math.pow(2, r), p = this.extent * i, f = this.extent * e, g = this.loadGeometry(), x = zo.types[this.type];
5376
- function w(M) {
5377
- for (var R = 0; R < M.length; R++) {
5378
- var B = M[R];
5379
- M[R] = [360 * (B.x + p) / d - 180, 360 / Math.PI * Math.atan(Math.exp((180 - 360 * (B.y + f) / d) * Math.PI / 180)) - 90];
5376
+ function w(z) {
5377
+ for (var R = 0; R < z.length; R++) {
5378
+ var B = z[R];
5379
+ z[R] = [360 * (B.x + p) / d - 180, 360 / Math.PI * Math.atan(Math.exp((180 - 360 * (B.y + f) / d) * Math.PI / 180)) - 90];
5380
5380
  }
5381
5381
  }
5382
5382
  switch (this.type) {
@@ -5389,12 +5389,12 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
5389
5389
  for (s = 0; s < g.length; s++) w(g[s]);
5390
5390
  break;
5391
5391
  case 3:
5392
- for (g = function(M) {
5393
- var R = M.length;
5394
- if (R <= 1) return [M];
5392
+ for (g = function(z) {
5393
+ var R = z.length;
5394
+ if (R <= 1) return [z];
5395
5395
  for (var B, $, W = [], se = 0; se < R; se++) {
5396
- var Y = uf(M[se]);
5397
- Y !== 0 && ($ === void 0 && ($ = Y < 0), $ === Y < 0 ? (B && W.push(B), B = [M[se]]) : B.push(M[se]));
5396
+ var Y = uf(z[se]);
5397
+ Y !== 0 && ($ === void 0 && ($ = Y < 0), $ === Y < 0 ? (B && W.push(B), B = [z[se]]) : B.push(z[se]));
5398
5398
  }
5399
5399
  return B && W.push(B), W;
5400
5400
  }(g), s = 0; s < g.length; s++) for (l = 0; l < g[s].length; l++) w(g[s][l]);
@@ -5502,9 +5502,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
5502
5502
  Wa(this.layoutVertexArray, $.x, $.y, 0, 0, 1, 1, 0), f.x += $.x, f.y += $.y, f.vertexCount += 1, w.push($.x), w.push($.y);
5503
5503
  }
5504
5504
  }
5505
- const M = xu(w, I);
5506
- for (let R = 0; R < M.length; R += 3) this.indexArray.emplaceBack(C + M[R], C + M[R + 2], C + M[R + 1]);
5507
- x.primitiveLength += M.length / 3, x.vertexLength += g;
5505
+ const z = xu(w, I);
5506
+ for (let R = 0; R < z.length; R += 3) this.indexArray.emplaceBack(C + z[R], C + z[R + 2], C + z[R + 1]);
5507
+ x.primitiveLength += z.length / 3, x.vertexLength += g;
5508
5508
  for (let R = 0; R < f.vertexCount; R++) {
5509
5509
  const B = Math.floor(f.x / f.vertexCount), $ = Math.floor(f.y / f.vertexCount);
5510
5510
  this.centroidVertexArray.emplaceBack(B, $);
@@ -5545,7 +5545,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
5545
5545
  Yl(ie, ie, B), se.push(new ae(ie[0] / ie[3], ie[1] / ie[3]));
5546
5546
  }
5547
5547
  return se;
5548
- }(x, g), M = function(R, B, $, W) {
5548
+ }(x, g), z = function(R, B, $, W) {
5549
5549
  const se = [], Y = [], ie = W[8] * B, ue = W[9] * B, xe = W[10] * B, De = W[11] * B, We = W[8] * $, Ee = W[9] * $, Ce = W[10] * $, $e = W[11] * $;
5550
5550
  for (const Oe of R) {
5551
5551
  const Re = [], fe = [];
@@ -5570,7 +5570,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
5570
5570
  }
5571
5571
  }
5572
5572
  return W !== 1 / 0 && W;
5573
- }(M[0], M[1], C);
5573
+ }(z[0], z[1], C);
5574
5574
  }
5575
5575
  }
5576
5576
  function Xa(i, e) {
@@ -5583,7 +5583,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
5583
5583
  let l;
5584
5584
  for (; !l || s.equals(l); ) if (l = e[r++], !l) return 1 / 0;
5585
5585
  for (; r < e.length; r++) {
5586
- const d = e[r], p = i[0], f = l.sub(s), g = d.sub(s), x = p.sub(s), w = Xa(f, f), I = Xa(f, g), C = Xa(g, g), M = Xa(x, f), R = Xa(x, g), B = w * C - I * I, $ = (C * M - I * R) / B, W = (w * R - I * M) / B, se = s.z * (1 - $ - W) + l.z * $ + d.z * W;
5586
+ const d = e[r], p = i[0], f = l.sub(s), g = d.sub(s), x = p.sub(s), w = Xa(f, f), I = Xa(f, g), C = Xa(g, g), z = Xa(x, f), R = Xa(x, g), B = w * C - I * I, $ = (C * z - I * R) / B, W = (w * R - I * z) / B, se = s.z * (1 - $ - W) + l.z * $ + d.z * W;
5587
5587
  if (isFinite(se)) return se;
5588
5588
  }
5589
5589
  return 1 / 0;
@@ -5607,7 +5607,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
5607
5607
  for (const { feature: f, id: g, index: x, sourceLayerIndex: w } of e) {
5608
5608
  const I = this.layers[0]._featureFilter.needGeometry, C = Fs(f, I);
5609
5609
  if (!this.layers[0]._featureFilter.filter(new Dt(this.zoom), C, s)) continue;
5610
- const M = d ? l.evaluate(C, {}, s) : void 0, R = { id: g, properties: f.properties, type: f.type, sourceLayerIndex: w, index: x, geometry: I ? C.geometry : Rs(f), patterns: {}, sortKey: M };
5610
+ const z = d ? l.evaluate(C, {}, s) : void 0, R = { id: g, properties: f.properties, type: f.type, sourceLayerIndex: w, index: x, geometry: I ? C.geometry : Rs(f), patterns: {}, sortKey: z };
5611
5611
  p.push(R);
5612
5612
  }
5613
5613
  d && p.sort((f, g) => f.sortKey - g.sortKey);
@@ -5661,24 +5661,24 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
5661
5661
  if (g < (f ? 3 : 2)) return;
5662
5662
  s === "bevel" && (d = 1.05);
5663
5663
  const w = this.overscaling <= 16 ? 15 * ti / (512 * this.overscaling) : 0, I = this.segments.prepareSegment(10 * g, this.layoutVertexArray, this.indexArray);
5664
- let C, M, R, B, $;
5664
+ let C, z, R, B, $;
5665
5665
  this.e1 = this.e2 = -1, f && (C = e[g - 2], $ = e[x].sub(C)._unit()._perp());
5666
5666
  for (let W = x; W < g; W++) {
5667
5667
  if (R = W === g - 1 ? f ? e[x + 1] : void 0 : e[W + 1], R && e[W].equals(R)) continue;
5668
- $ && (B = $), C && (M = C), C = e[W], $ = R ? R.sub(C)._unit()._perp() : B, B = B || $;
5668
+ $ && (B = $), C && (z = C), C = e[W], $ = R ? R.sub(C)._unit()._perp() : B, B = B || $;
5669
5669
  let se = B.add($);
5670
5670
  se.x === 0 && se.y === 0 || se._unit();
5671
- const Y = B.x * $.x + B.y * $.y, ie = se.x * $.x + se.y * $.y, ue = ie !== 0 ? 1 / ie : 1 / 0, xe = 2 * Math.sqrt(2 - 2 * ie), De = ie < Pf && M && R, We = B.x * $.y - B.y * $.x > 0;
5671
+ const Y = B.x * $.x + B.y * $.y, ie = se.x * $.x + se.y * $.y, ue = ie !== 0 ? 1 / ie : 1 / 0, xe = 2 * Math.sqrt(2 - 2 * ie), De = ie < Pf && z && R, We = B.x * $.y - B.y * $.x > 0;
5672
5672
  if (De && W > x) {
5673
- const $e = C.dist(M);
5673
+ const $e = C.dist(z);
5674
5674
  if ($e > 2 * w) {
5675
- const Oe = C.sub(C.sub(M)._mult(w / $e)._round());
5676
- this.updateDistance(M, Oe), this.addCurrentVertex(Oe, B, 0, 0, I), M = Oe;
5675
+ const Oe = C.sub(C.sub(z)._mult(w / $e)._round());
5676
+ this.updateDistance(z, Oe), this.addCurrentVertex(Oe, B, 0, 0, I), z = Oe;
5677
5677
  }
5678
5678
  }
5679
- const Ee = M && R;
5679
+ const Ee = z && R;
5680
5680
  let Ce = Ee ? s : f ? "butt" : l;
5681
- if (Ee && Ce === "round" && (ue < p ? Ce = "miter" : ue <= 2 && (Ce = "fakeround")), Ce === "miter" && ue > d && (Ce = "bevel"), Ce === "bevel" && (ue > 2 && (Ce = "flipbevel"), ue < d && (Ce = "miter")), M && this.updateDistance(M, C), Ce === "miter") se._mult(ue), this.addCurrentVertex(C, se, 0, 0, I);
5681
+ if (Ee && Ce === "round" && (ue < p ? Ce = "miter" : ue <= 2 && (Ce = "fakeround")), Ce === "miter" && ue > d && (Ce = "bevel"), Ce === "bevel" && (ue > 2 && (Ce = "flipbevel"), ue < d && (Ce = "miter")), z && this.updateDistance(z, C), Ce === "miter") se._mult(ue), this.addCurrentVertex(C, se, 0, 0, I);
5682
5682
  else if (Ce === "flipbevel") {
5683
5683
  if (ue > 100) se = $.mult(-1);
5684
5684
  else {
@@ -5688,7 +5688,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
5688
5688
  this.addCurrentVertex(C, se, 0, 0, I), this.addCurrentVertex(C, se.mult(-1), 0, 0, I);
5689
5689
  } else if (Ce === "bevel" || Ce === "fakeround") {
5690
5690
  const $e = -Math.sqrt(ue * ue - 1), Oe = We ? $e : 0, Re = We ? 0 : $e;
5691
- if (M && this.addCurrentVertex(C, B, Oe, Re, I), Ce === "fakeround") {
5691
+ if (z && this.addCurrentVertex(C, B, Oe, Re, I), Ce === "fakeround") {
5692
5692
  const fe = Math.round(180 * xe / Math.PI / 20);
5693
5693
  for (let Ze = 1; Ze < fe; Ze++) {
5694
5694
  let Ue = Ze / fe;
@@ -5703,9 +5703,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
5703
5703
  R && this.addCurrentVertex(C, $, -Oe, -Re, I);
5704
5704
  } else if (Ce === "butt") this.addCurrentVertex(C, se, 0, 0, I);
5705
5705
  else if (Ce === "square") {
5706
- const $e = M ? 1 : -1;
5706
+ const $e = z ? 1 : -1;
5707
5707
  this.addCurrentVertex(C, se, $e, $e, I);
5708
- } else Ce === "round" && (M && (this.addCurrentVertex(C, B, 0, 0, I), this.addCurrentVertex(C, B, 1, 1, I, !0)), R && (this.addCurrentVertex(C, $, -1, -1, I, !0), this.addCurrentVertex(C, $, 0, 0, I)));
5708
+ } else Ce === "round" && (z && (this.addCurrentVertex(C, B, 0, 0, I), this.addCurrentVertex(C, B, 1, 1, I, !0)), R && (this.addCurrentVertex(C, $, -1, -1, I, !0), this.addCurrentVertex(C, $, 0, 0, I)));
5709
5709
  if (De && W < g - 1) {
5710
5710
  const $e = C.dist(R);
5711
5711
  if ($e > 2 * w) {
@@ -5776,23 +5776,23 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
5776
5776
  queryIntersectsFeature(e, r, s, l, d, p, f) {
5777
5777
  const g = Kl(e, this.paint.get("line-translate"), this.paint.get("line-translate-anchor"), p.angle, f), x = f / 2 * Ru(this.paint.get("line-width").evaluate(r, s), this.paint.get("line-gap-width").evaluate(r, s)), w = this.paint.get("line-offset").evaluate(r, s);
5778
5778
  return w && (l = function(I, C) {
5779
- const M = [];
5779
+ const z = [];
5780
5780
  for (let R = 0; R < I.length; R++) {
5781
5781
  const B = I[R], $ = [];
5782
5782
  for (let W = 0; W < B.length; W++) {
5783
5783
  const se = B[W - 1], Y = B[W], ie = B[W + 1], ue = W === 0 ? new ae(0, 0) : Y.sub(se)._unit()._perp(), xe = W === B.length - 1 ? new ae(0, 0) : ie.sub(Y)._unit()._perp(), De = ue._add(xe)._unit(), We = De.x * xe.x + De.y * xe.y;
5784
5784
  We !== 0 && De._mult(1 / We), $.push(De._mult(C)._add(Y));
5785
5785
  }
5786
- M.push($);
5786
+ z.push($);
5787
5787
  }
5788
- return M;
5789
- }(l, w * f)), function(I, C, M) {
5788
+ return z;
5789
+ }(l, w * f)), function(I, C, z) {
5790
5790
  for (let R = 0; R < C.length; R++) {
5791
5791
  const B = C[R];
5792
5792
  if (I.length >= 3) {
5793
5793
  for (let $ = 0; $ < B.length; $++) if (ko(I, B[$])) return !0;
5794
5794
  }
5795
- if (Fp(I, B, M)) return !0;
5795
+ if (Fp(I, B, z)) return !0;
5796
5796
  }
5797
5797
  return !1;
5798
5798
  }(g, l, x);
@@ -5820,20 +5820,20 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
5820
5820
  b([{ name: "triangle", components: 3, type: "Uint16" }]), b([{ 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" }]), b([{ 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" }]), b([{ type: "Float32", name: "offsetX" }]), b([{ type: "Int16", name: "x" }, { type: "Int16", name: "y" }, { type: "Int16", name: "tileUnitDistanceFromAnchor" }]), b([{ type: "Uint16", name: "textAnchor" }, { type: "Float32", components: 2, name: "textOffset" }]);
5821
5821
  const Ja = { "!": "︕", "#": "#", $: "$", "%": "%", "&": "&", "(": "︵", ")": "︶", "*": "*", "+": "+", ",": "︐", "-": "︲", ".": "・", "/": "/", ":": "︓", ";": "︔", "<": "︿", "=": "=", ">": "﹀", "?": "︖", "@": "@", "[": "﹇", "\\": "\", "]": "﹈", "^": "^", _: "︳", "`": "`", "{": "︷", "|": "―", "}": "︸", "~": "~", "¢": "¢", "£": "£", "¥": "¥", "¦": "¦", "¬": "¬", "¯": " ̄", "–": "︲", "—": "︱", "‘": "﹃", "’": "﹄", "“": "﹁", "”": "﹂", "…": "︙", "‧": "・", "₩": "₩", "、": "︑", "。": "︒", "〈": "︿", "〉": "﹀", "《": "︽", "》": "︾", "「": "﹁", "」": "﹂", "『": "﹃", "』": "﹄", "【": "︻", "】": "︼", "〔": "︹", "〕": "︺", "〖": "︗", "〗": "︘", "!": "︕", "(": "︵", ")": "︶", ",": "︐", "-": "︲", ".": "・", ":": "︓", ";": "︔", "<": "︿", ">": "﹀", "?": "︖", "[": "﹇", "]": "﹈", "_": "︳", "{": "︷", "|": "―", "}": "︸", "⦅": "︵", "⦆": "︶", "。": "︒", "「": "﹁", "」": "﹂" };
5822
5822
  var ni = 24, Bu = At, Ou = function(i, e, r, s, l) {
5823
- var d, p, f = 8 * l - s - 1, g = (1 << f) - 1, x = g >> 1, w = -7, I = l - 1, C = -1, M = i[e + I];
5824
- for (I += C, d = M & (1 << -w) - 1, M >>= -w, w += f; w > 0; d = 256 * d + i[e + I], I += C, w -= 8) ;
5823
+ var d, p, f = 8 * l - s - 1, g = (1 << f) - 1, x = g >> 1, w = -7, I = l - 1, C = -1, z = i[e + I];
5824
+ for (I += C, d = z & (1 << -w) - 1, z >>= -w, w += f; w > 0; d = 256 * d + i[e + I], I += C, w -= 8) ;
5825
5825
  for (p = d & (1 << -w) - 1, d >>= -w, w += s; w > 0; p = 256 * p + i[e + I], I += C, w -= 8) ;
5826
5826
  if (d === 0) d = 1 - x;
5827
5827
  else {
5828
- if (d === g) return p ? NaN : 1 / 0 * (M ? -1 : 1);
5828
+ if (d === g) return p ? NaN : 1 / 0 * (z ? -1 : 1);
5829
5829
  p += Math.pow(2, s), d -= x;
5830
5830
  }
5831
- return (M ? -1 : 1) * p * Math.pow(2, d - s);
5831
+ return (z ? -1 : 1) * p * Math.pow(2, d - s);
5832
5832
  }, Vu = function(i, e, r, s, l, d) {
5833
- var p, f, g, x = 8 * d - l - 1, w = (1 << x) - 1, I = w >> 1, C = l === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, M = 0, R = 1, B = e < 0 || e === 0 && 1 / e < 0 ? 1 : 0;
5834
- for (e = Math.abs(e), isNaN(e) || e === 1 / 0 ? (f = isNaN(e) ? 1 : 0, p = w) : (p = Math.floor(Math.log(e) / Math.LN2), e * (g = Math.pow(2, -p)) < 1 && (p--, g *= 2), (e += p + I >= 1 ? C / g : C * Math.pow(2, 1 - I)) * g >= 2 && (p++, g /= 2), p + I >= w ? (f = 0, p = w) : p + I >= 1 ? (f = (e * g - 1) * Math.pow(2, l), p += I) : (f = e * Math.pow(2, I - 1) * Math.pow(2, l), p = 0)); l >= 8; i[r + M] = 255 & f, M += R, f /= 256, l -= 8) ;
5835
- for (p = p << l | f, x += l; x > 0; i[r + M] = 255 & p, M += R, p /= 256, x -= 8) ;
5836
- i[r + M - R] |= 128 * B;
5833
+ var p, f, g, x = 8 * d - l - 1, w = (1 << x) - 1, I = w >> 1, C = l === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, z = 0, R = 1, B = e < 0 || e === 0 && 1 / e < 0 ? 1 : 0;
5834
+ for (e = Math.abs(e), isNaN(e) || e === 1 / 0 ? (f = isNaN(e) ? 1 : 0, p = w) : (p = Math.floor(Math.log(e) / Math.LN2), e * (g = Math.pow(2, -p)) < 1 && (p--, g *= 2), (e += p + I >= 1 ? C / g : C * Math.pow(2, 1 - I)) * g >= 2 && (p++, g /= 2), p + I >= w ? (f = 0, p = w) : p + I >= 1 ? (f = (e * g - 1) * Math.pow(2, l), p += I) : (f = e * Math.pow(2, I - 1) * Math.pow(2, l), p = 0)); l >= 8; i[r + z] = 255 & f, z += R, f /= 256, l -= 8) ;
5835
+ for (p = p << l | f, x += l; x > 0; i[r + z] = 255 & p, z += R, p /= 256, x -= 8) ;
5836
+ i[r + z - R] |= 128 * B;
5837
5837
  };
5838
5838
  function At(i) {
5839
5839
  this.buf = ArrayBuffer.isView && ArrayBuffer.isView(i) ? i : new Uint8Array(i || 0), this.pos = 0, this.type = 0, this.length = this.buf.length;
@@ -6173,8 +6173,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
6173
6173
  hr.copy(w.data, g, { x: 0, y: 0 }, { x: I.x + Gi, y: I.y + Gi }, w.data);
6174
6174
  }
6175
6175
  for (const x in r) {
6176
- const w = r[x], I = l[x].paddedRect, C = I.x + Gi, M = I.y + Gi, R = w.data.width, B = w.data.height;
6177
- hr.copy(w.data, g, { x: 0, y: 0 }, { x: C, y: M }, w.data), hr.copy(w.data, g, { x: 0, y: B - 1 }, { x: C, y: M - 1 }, { width: R, height: 1 }), hr.copy(w.data, g, { x: 0, y: 0 }, { x: C, y: M + B }, { width: R, height: 1 }), hr.copy(w.data, g, { x: R - 1, y: 0 }, { x: C - 1, y: M }, { width: 1, height: B }), hr.copy(w.data, g, { x: 0, y: 0 }, { x: C + R, y: M }, { width: 1, height: B });
6176
+ const w = r[x], I = l[x].paddedRect, C = I.x + Gi, z = I.y + Gi, R = w.data.width, B = w.data.height;
6177
+ hr.copy(w.data, g, { x: 0, y: 0 }, { x: C, y: z }, w.data), hr.copy(w.data, g, { x: 0, y: B - 1 }, { x: C, y: z - 1 }, { width: R, height: 1 }), hr.copy(w.data, g, { x: 0, y: 0 }, { x: C, y: z + B }, { width: R, height: 1 }), hr.copy(w.data, g, { x: R - 1, y: 0 }, { x: C - 1, y: z }, { width: 1, height: B }), hr.copy(w.data, g, { x: 0, y: 0 }, { x: C + R, y: z }, { width: 1, height: B });
6178
6178
  }
6179
6179
  this.image = g, this.iconPositions = s, this.patternPositions = l;
6180
6180
  }
@@ -6277,14 +6277,14 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
6277
6277
  return this.imageSectionID ? this.imageSectionID >= 63743 ? null : ++this.imageSectionID : (this.imageSectionID = 57344, this.imageSectionID);
6278
6278
  }
6279
6279
  }
6280
- function nc(i, e, r, s, l, d, p, f, g, x, w, I, C, M, R) {
6280
+ function nc(i, e, r, s, l, d, p, f, g, x, w, I, C, z, R) {
6281
6281
  const B = Ro.fromFeature(i, l);
6282
6282
  let $;
6283
6283
  I === S.ai.vertical && B.verticalizePunctuation();
6284
6284
  const { processBidirectionalText: W, processStyledBidirectionalText: se } = tn;
6285
6285
  if (W && B.sections.length === 1) {
6286
6286
  $ = [];
6287
- const ue = W(B.toString(), mh(B, x, d, e, s, M));
6287
+ const ue = W(B.toString(), mh(B, x, d, e, s, z));
6288
6288
  for (const xe of ue) {
6289
6289
  const De = new Ro();
6290
6290
  De.text = xe, De.sections = B.sections;
@@ -6293,7 +6293,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
6293
6293
  }
6294
6294
  } else if (se) {
6295
6295
  $ = [];
6296
- const ue = se(B.text, B.sectionIndex, mh(B, x, d, e, s, M));
6296
+ const ue = se(B.text, B.sectionIndex, mh(B, x, d, e, s, z));
6297
6297
  for (const xe of ue) {
6298
6298
  const De = new Ro();
6299
6299
  De.text = xe[0], De.sectionIndex = xe[1], De.sections = B.sections, $.push(De);
@@ -6303,7 +6303,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
6303
6303
  let Ee = 0;
6304
6304
  for (const Ce of xe) De.push(ue.substring(Ee, Ce)), Ee = Ce;
6305
6305
  return Ee < We.length && De.push(ue.substring(Ee, We.length)), De;
6306
- }(B, mh(B, x, d, e, s, M));
6306
+ }(B, mh(B, x, d, e, s, z));
6307
6307
  const Y = [], ie = { positionedLines: Y, text: B.toString(), top: w[1], bottom: w[1], left: w[0], right: w[0], writingMode: I, iconsInText: !1, verticalizable: !1 };
6308
6308
  return function(ue, xe, De, We, Ee, Ce, $e, Oe, Re, fe, Ze, Ue) {
6309
6309
  let et = 0, kt = Ka, Ct = 0, ai = 0;
@@ -6392,20 +6392,20 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
6392
6392
  }
6393
6393
  function mh(i, e, r, s, l, d) {
6394
6394
  if (!i) return [];
6395
- const p = [], f = function(I, C, M, R, B, $) {
6395
+ const p = [], f = function(I, C, z, R, B, $) {
6396
6396
  let W = 0;
6397
6397
  for (let se = 0; se < I.length(); se++) {
6398
6398
  const Y = I.getSection(se);
6399
6399
  W += Hu(I.getCharCode(se), Y, R, B, C, $);
6400
6400
  }
6401
- return W / Math.max(1, Math.ceil(W / M));
6401
+ return W / Math.max(1, Math.ceil(W / z));
6402
6402
  }(i, e, r, s, l, d), g = i.text.indexOf("​") >= 0;
6403
6403
  let x = 0;
6404
6404
  for (let I = 0; I < i.length(); I++) {
6405
- const C = i.getSection(I), M = i.getCharCode(I);
6406
- if (sc[M] || (x += Hu(M, C, s, l, e, d)), I < i.length() - 1) {
6407
- const R = !((w = M) < 11904 || !(Me["Bopomofo Extended"](w) || Me.Bopomofo(w) || Me["CJK Compatibility Forms"](w) || Me["CJK Compatibility Ideographs"](w) || Me["CJK Compatibility"](w) || Me["CJK Radicals Supplement"](w) || Me["CJK Strokes"](w) || Me["CJK Symbols and Punctuation"](w) || Me["CJK Unified Ideographs Extension A"](w) || Me["CJK Unified Ideographs"](w) || Me["Enclosed CJK Letters and Months"](w) || Me["Halfwidth and Fullwidth Forms"](w) || Me.Hiragana(w) || Me["Ideographic Description Characters"](w) || Me["Kangxi Radicals"](w) || Me["Katakana Phonetic Extensions"](w) || Me.Katakana(w) || Me["Vertical Forms"](w) || Me["Yi Radicals"](w) || Me["Yi Syllables"](w)));
6408
- (Gf[M] || R || C.imageName || I !== i.length() - 2 && Hf[i.getCharCode(I + 1)]) && p.push(Xu(I + 1, x, f, p, Wf(M, i.getCharCode(I + 1), R && g), !1));
6405
+ const C = i.getSection(I), z = i.getCharCode(I);
6406
+ if (sc[z] || (x += Hu(z, C, s, l, e, d)), I < i.length() - 1) {
6407
+ const R = !((w = z) < 11904 || !(Me["Bopomofo Extended"](w) || Me.Bopomofo(w) || Me["CJK Compatibility Forms"](w) || Me["CJK Compatibility Ideographs"](w) || Me["CJK Compatibility"](w) || Me["CJK Radicals Supplement"](w) || Me["CJK Strokes"](w) || Me["CJK Symbols and Punctuation"](w) || Me["CJK Unified Ideographs Extension A"](w) || Me["CJK Unified Ideographs"](w) || Me["Enclosed CJK Letters and Months"](w) || Me["Halfwidth and Fullwidth Forms"](w) || Me.Hiragana(w) || Me["Ideographic Description Characters"](w) || Me["Kangxi Radicals"](w) || Me["Katakana Phonetic Extensions"](w) || Me.Katakana(w) || Me["Vertical Forms"](w) || Me["Yi Radicals"](w) || Me["Yi Syllables"](w)));
6408
+ (Gf[z] || R || C.imageName || I !== i.length() - 2 && Hf[i.getCharCode(I + 1)]) && p.push(Xu(I + 1, x, f, p, Wf(z, i.getCharCode(I + 1), R && g), !1));
6409
6409
  }
6410
6410
  }
6411
6411
  var w;
@@ -6469,10 +6469,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
6469
6469
  f = [$[0] / W, $[1] / W, p.displaySize[0] - $[2] / W, p.displaySize[1] - $[3] / W];
6470
6470
  }
6471
6471
  const g = e.left * d, x = e.right * d;
6472
- let w, I, C, M;
6473
- r === "width" || r === "both" ? (M = l[0] + g - s[3], I = l[0] + x + s[1]) : (M = l[0] + (g + x - p.displaySize[0]) / 2, I = M + p.displaySize[0]);
6472
+ let w, I, C, z;
6473
+ r === "width" || r === "both" ? (z = l[0] + g - s[3], I = l[0] + x + s[1]) : (z = l[0] + (g + x - p.displaySize[0]) / 2, I = z + p.displaySize[0]);
6474
6474
  const R = e.top * d, B = e.bottom * d;
6475
- return r === "height" || r === "both" ? (w = l[1] + R - s[0], C = l[1] + B + s[2]) : (w = l[1] + (R + B - p.displaySize[1]) / 2, C = w + p.displaySize[1]), { image: p, top: w, right: I, bottom: C, left: M, collisionPadding: f };
6475
+ return r === "height" || r === "both" ? (w = l[1] + R - s[0], C = l[1] + B + s[2]) : (w = l[1] + (R + B - p.displaySize[1]) / 2, C = w + p.displaySize[1]), { image: p, top: w, right: I, bottom: C, left: z, collisionPadding: f };
6476
6476
  }
6477
6477
  const Qa = 255, sn = 128, es = Qa * sn;
6478
6478
  function Qu(i, e) {
@@ -6498,8 +6498,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
6498
6498
  }
6499
6499
  const Kf = Yn.VectorTileFeature.types, Yf = [{ name: "a_fade_opacity", components: 1, type: "Uint8", offset: 0 }];
6500
6500
  function oc(i, e, r, s, l, d, p, f, g, x, w, I, C) {
6501
- const M = f ? Math.min(es, Math.round(f[0])) : 0, R = f ? Math.min(es, Math.round(f[1])) : 0;
6502
- i.emplaceBack(e, r, Math.round(32 * s), Math.round(32 * l), d, p, (M << 1) + (g ? 1 : 0), R, 16 * x, 16 * w, 256 * I, 256 * C);
6501
+ const z = f ? Math.min(es, Math.round(f[0])) : 0, R = f ? Math.min(es, Math.round(f[1])) : 0;
6502
+ i.emplaceBack(e, r, Math.round(32 * s), Math.round(32 * l), d, p, (z << 1) + (g ? 1 : 0), R, 16 * x, 16 * w, 256 * I, 256 * C);
6503
6503
  }
6504
6504
  function yh(i, e, r) {
6505
6505
  i.emplaceBack(e.x, e.y, r), i.emplaceBack(e.x, e.y, r), i.emplaceBack(e.x, e.y, r), i.emplaceBack(e.x, e.y, r);
@@ -6555,7 +6555,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
6555
6555
  populate(e, r, s) {
6556
6556
  const l = this.layers[0], d = l.layout, p = d.get("text-font"), f = d.get("text-field"), g = d.get("icon-image"), x = (f.value.kind !== "constant" || f.value.value instanceof Ni && !f.value.value.isEmpty() || f.value.value.toString().length > 0) && (p.value.kind !== "constant" || p.value.value.length > 0), w = g.value.kind !== "constant" || !!g.value.value || Object.keys(g.parameters).length > 0, I = d.get("symbol-sort-key");
6557
6557
  if (this.features = [], !x && !w) return;
6558
- const C = r.iconDependencies, M = r.glyphDependencies, R = r.availableImages, B = new Dt(this.zoom);
6558
+ const C = r.iconDependencies, z = r.glyphDependencies, R = r.availableImages, B = new Dt(this.zoom);
6559
6559
  for (const { feature: $, id: W, index: se, sourceLayerIndex: Y } of e) {
6560
6560
  const ie = l._featureFilter.needGeometry, ue = Fs($, ie);
6561
6561
  if (!l._featureFilter.filter(B, ue, s)) continue;
@@ -6575,7 +6575,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
6575
6575
  this.allowVerticalPlacement = this.writingModes && this.writingModes.indexOf(S.ai.vertical) >= 0;
6576
6576
  for (const $e of xe.sections) if ($e.image) C[$e.image.name] = !0;
6577
6577
  else {
6578
- const Oe = za(xe.toString()), Re = $e.fontStack || Ee, fe = M[Re] = M[Re] || {};
6578
+ const Oe = za(xe.toString()), Re = $e.fontStack || Ee, fe = z[Re] = z[Re] || {};
6579
6579
  this.calculateGlyphDependencies($e.text, fe, Ce, this.allowVerticalPlacement, Oe);
6580
6580
  }
6581
6581
  }
@@ -6646,10 +6646,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
6646
6646
  return { lineStartIndex: s, lineLength: this.lineVertexArray.length - s };
6647
6647
  }
6648
6648
  addSymbols(e, r, s, l, d, p, f, g, x, w, I, C) {
6649
- const M = e.indexArray, R = e.layoutVertexArray, B = e.segments.prepareSegment(4 * r.length, R, M, this.canOverlap ? p.sortKey : void 0), $ = this.glyphOffsetArray.length, W = B.vertexLength, se = this.allowVerticalPlacement && f === S.ai.vertical ? Math.PI / 2 : 0, Y = p.text && p.text.sections;
6649
+ const z = e.indexArray, R = e.layoutVertexArray, B = e.segments.prepareSegment(4 * r.length, R, z, this.canOverlap ? p.sortKey : void 0), $ = this.glyphOffsetArray.length, W = B.vertexLength, se = this.allowVerticalPlacement && f === S.ai.vertical ? Math.PI / 2 : 0, Y = p.text && p.text.sections;
6650
6650
  for (let ie = 0; ie < r.length; ie++) {
6651
6651
  const { tl: ue, tr: xe, bl: De, br: We, tex: Ee, pixelOffsetTL: Ce, pixelOffsetBR: $e, minFontScaleX: Oe, minFontScaleY: Re, glyphOffset: fe, isSDF: Ze, sectionIndex: Ue } = r[ie], et = B.vertexLength, kt = fe[1];
6652
- oc(R, g.x, g.y, ue.x, kt + ue.y, Ee.x, Ee.y, s, Ze, Ce.x, Ce.y, Oe, Re), oc(R, g.x, g.y, xe.x, kt + xe.y, Ee.x + Ee.w, Ee.y, s, Ze, $e.x, Ce.y, Oe, Re), oc(R, g.x, g.y, De.x, kt + De.y, Ee.x, Ee.y + Ee.h, s, Ze, Ce.x, $e.y, Oe, Re), oc(R, g.x, g.y, We.x, kt + We.y, Ee.x + Ee.w, Ee.y + Ee.h, s, Ze, $e.x, $e.y, Oe, Re), yh(e.dynamicLayoutVertexArray, g, se), M.emplaceBack(et, et + 1, et + 2), M.emplaceBack(et + 1, et + 2, et + 3), B.vertexLength += 4, B.primitiveLength += 2, this.glyphOffsetArray.emplaceBack(fe[0]), ie !== r.length - 1 && Ue === r[ie + 1].sectionIndex || e.programConfigurations.populatePaintArrays(R.length, p, p.index, {}, C, Y && Y[Ue]);
6652
+ oc(R, g.x, g.y, ue.x, kt + ue.y, Ee.x, Ee.y, s, Ze, Ce.x, Ce.y, Oe, Re), oc(R, g.x, g.y, xe.x, kt + xe.y, Ee.x + Ee.w, Ee.y, s, Ze, $e.x, Ce.y, Oe, Re), oc(R, g.x, g.y, De.x, kt + De.y, Ee.x, Ee.y + Ee.h, s, Ze, Ce.x, $e.y, Oe, Re), oc(R, g.x, g.y, We.x, kt + We.y, Ee.x + Ee.w, Ee.y + Ee.h, s, Ze, $e.x, $e.y, Oe, Re), yh(e.dynamicLayoutVertexArray, g, se), z.emplaceBack(et, et + 1, et + 2), z.emplaceBack(et + 1, et + 2, et + 3), B.vertexLength += 4, B.primitiveLength += 2, this.glyphOffsetArray.emplaceBack(fe[0]), ie !== r.length - 1 && Ue === r[ie + 1].sectionIndex || e.programConfigurations.populatePaintArrays(R.length, p, p.index, {}, C, Y && Y[Ue]);
6653
6653
  }
6654
6654
  e.placedSymbolArray.emplaceBack(g.x, g.y, $, this.glyphOffsetArray.length - $, W, x, w, g.segment, s ? s[0] : 0, s ? s[1] : 0, l[0], l[1], f, 0, !1, 0, I);
6655
6655
  }
@@ -6657,8 +6657,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
6657
6657
  return r.emplaceBack(0, 0), e.emplaceBack(s.x, s.y, l, d, Math.round(p.x), Math.round(p.y));
6658
6658
  }
6659
6659
  addCollisionDebugVertices(e, r, s, l, d, p, f) {
6660
- const g = d.segments.prepareSegment(4, d.layoutVertexArray, d.indexArray), x = g.vertexLength, w = d.layoutVertexArray, I = d.collisionVertexArray, C = f.anchorX, M = f.anchorY;
6661
- this._addCollisionDebugVertex(w, I, p, C, M, new ae(e, r)), this._addCollisionDebugVertex(w, I, p, C, M, new ae(s, r)), this._addCollisionDebugVertex(w, I, p, C, M, new ae(s, l)), this._addCollisionDebugVertex(w, I, p, C, M, new ae(e, l)), g.vertexLength += 4;
6660
+ const g = d.segments.prepareSegment(4, d.layoutVertexArray, d.indexArray), x = g.vertexLength, w = d.layoutVertexArray, I = d.collisionVertexArray, C = f.anchorX, z = f.anchorY;
6661
+ this._addCollisionDebugVertex(w, I, p, C, z, new ae(e, r)), this._addCollisionDebugVertex(w, I, p, C, z, new ae(s, r)), this._addCollisionDebugVertex(w, I, p, C, z, new ae(s, l)), this._addCollisionDebugVertex(w, I, p, C, z, new ae(e, l)), g.vertexLength += 4;
6662
6662
  const R = d.indexArray;
6663
6663
  R.emplaceBack(x, x + 1), R.emplaceBack(x + 1, x + 2), R.emplaceBack(x + 2, x + 3), R.emplaceBack(x + 3, x), g.primitiveLength += 4;
6664
6664
  }
@@ -6974,9 +6974,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
6974
6974
  url(e, r, s) {
6975
6975
  const l = (p = this.y, f = this.z, g = hd(256 * (d = this.x), 256 * (p = Math.pow(2, f) - p - 1), f), x = hd(256 * (d + 1), 256 * (p + 1), f), g[0] + "," + g[1] + "," + x[0] + "," + x[1]);
6976
6976
  var d, p, f, g, x;
6977
- const w = function(I, C, M) {
6977
+ const w = function(I, C, z) {
6978
6978
  let R, B = "";
6979
- for (let $ = I; $ > 0; $--) R = 1 << $ - 1, B += (C & R ? 1 : 0) + (M & R ? 2 : 0);
6979
+ for (let $ = I; $ > 0; $--) R = 1 << $ - 1, B += (C & R ? 1 : 0) + (z & R ? 2 : 0);
6980
6980
  return B;
6981
6981
  }(this.z, this.x, this.y);
6982
6982
  return e[(this.x + this.y) % e.length].replace(/{prefix}/g, (this.x % 16).toString(16) + (this.y % 16).toString(16)).replace(/{z}/g, String(this.z)).replace(/{x}/g, String(this.x)).replace(/{y}/g, String(s === "tms" ? Math.pow(2, this.z) - this.y - 1 : this.y)).replace(/{ratio}/g, r > 1 ? "@2x" : "").replace(/{quadkey}/g, w).replace(/{bbox-epsg-3857}/g, l);
@@ -7162,8 +7162,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7162
7162
  for (let x = 0; x < r.length; x++) {
7163
7163
  const w = r[x], I = [1 / 0, 1 / 0, -1 / 0, -1 / 0];
7164
7164
  for (let C = 0; C < w.length; C++) {
7165
- const M = w[C];
7166
- I[0] = Math.min(I[0], M.x), I[1] = Math.min(I[1], M.y), I[2] = Math.max(I[2], M.x), I[3] = Math.max(I[3], M.y);
7165
+ const z = w[C];
7166
+ I[0] = Math.min(I[0], z.x), I[1] = Math.min(I[1], z.y), I[2] = Math.max(I[2], z.x), I[3] = Math.max(I[3], z.y);
7167
7167
  }
7168
7168
  I[0] < ti && I[1] < ti && I[2] >= 0 && I[3] >= 0 && g.insert(f, I[0], I[1], I[2], I[3]);
7169
7169
  }
@@ -7173,7 +7173,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7173
7173
  }
7174
7174
  query(e, r, s, l) {
7175
7175
  this.loadVTLayers();
7176
- const d = e.params || {}, p = ti / e.tileSize / e.scale, f = Pi(d.filter), g = e.queryGeometry, x = e.queryPadding * p, w = _d(g), I = this.grid.query(w.minX - x, w.minY - x, w.maxX + x, w.maxY + x), C = _d(e.cameraQueryGeometry), M = this.grid3D.query(C.minX - x, C.minY - x, C.maxX + x, C.maxY + x, ($, W, se, Y) => function(ie, ue, xe, De, We) {
7176
+ const d = e.params || {}, p = ti / e.tileSize / e.scale, f = Pi(d.filter), g = e.queryGeometry, x = e.queryPadding * p, w = _d(g), I = this.grid.query(w.minX - x, w.minY - x, w.maxX + x, w.maxY + x), C = _d(e.cameraQueryGeometry), z = this.grid3D.query(C.minX - x, C.minY - x, C.maxX + x, C.maxY + x, ($, W, se, Y) => function(ie, ue, xe, De, We) {
7177
7177
  for (const Ce of ie) if (ue <= Ce.x && xe <= Ce.y && De >= Ce.x && We >= Ce.y) return !0;
7178
7178
  const Ee = [new ae(ue, xe), new ae(ue, We), new ae(De, We), new ae(De, xe)];
7179
7179
  if (ie.length > 2) {
@@ -7182,7 +7182,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7182
7182
  for (let Ce = 0; Ce < ie.length - 1; Ce++) if (Op(ie[Ce], ie[Ce + 1], Ee)) return !0;
7183
7183
  return !1;
7184
7184
  }(e.cameraQueryGeometry, $ - x, W - x, se + x, Y + x));
7185
- for (const $ of M) I.push($);
7185
+ for (const $ of z) I.push($);
7186
7186
  I.sort(om);
7187
7187
  const R = {};
7188
7188
  let B;
@@ -7202,12 +7202,12 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7202
7202
  for (let se = 0; se < $.length; se++) if (W.indexOf($[se]) >= 0) return !0;
7203
7203
  return !1;
7204
7204
  }(p, C)) return;
7205
- const M = this.sourceLayerCoder.decode(s), R = this.vtLayers[M].feature(l);
7205
+ const z = this.sourceLayerCoder.decode(s), R = this.vtLayers[z].feature(l);
7206
7206
  if (d.needGeometry) {
7207
7207
  const $ = Fs(R, !0);
7208
7208
  if (!d.filter(new Dt(this.tileID.overscaledZ), $, this.tileID.canonical)) return;
7209
7209
  } else if (!d.filter(new Dt(this.tileID.overscaledZ), R)) return;
7210
- const B = this.getId(R, M);
7210
+ const B = this.getId(R, z);
7211
7211
  for (let $ = 0; $ < C.length; $++) {
7212
7212
  const W = C[$];
7213
7213
  if (p && p.indexOf(W) < 0) continue;
@@ -7312,12 +7312,12 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7312
7312
  let g = 0;
7313
7313
  const x = vd(i) / 2;
7314
7314
  for (let w = 0; w < i.length - 1; w++) {
7315
- const I = i[w], C = i[w + 1], M = I.dist(C);
7316
- if (g + M > x) {
7317
- const R = (x - g) / M, B = $i.number(I.x, C.x, R), $ = $i.number(I.y, C.y, R), W = new is(B, $, C.angleTo(I), w);
7315
+ const I = i[w], C = i[w + 1], z = I.dist(C);
7316
+ if (g + z > x) {
7317
+ const R = (x - g) / z, B = $i.number(I.x, C.x, R), $ = $i.number(I.y, C.y, R), W = new is(B, $, C.angleTo(I), w);
7318
7318
  return W._round(), !p || xd(i, W, f, p, e) ? W : void 0;
7319
7319
  }
7320
- g += M;
7320
+ g += z;
7321
7321
  }
7322
7322
  }
7323
7323
  function lm(i, e, r, s, l, d, p, f, g) {
@@ -7326,7 +7326,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7326
7326
  }
7327
7327
  function Sd(i, e, r, s, l, d, p, f, g) {
7328
7328
  const x = d / 2, w = vd(i);
7329
- let I = 0, C = e - r, M = [];
7329
+ let I = 0, C = e - r, z = [];
7330
7330
  for (let R = 0; R < i.length - 1; R++) {
7331
7331
  const B = i[R], $ = i[R + 1], W = B.dist($), se = $.angleTo(B);
7332
7332
  for (; C + r < I + W; ) {
@@ -7334,26 +7334,26 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7334
7334
  const Y = (C - I) / W, ie = $i.number(B.x, $.x, Y), ue = $i.number(B.y, $.y, Y);
7335
7335
  if (ie >= 0 && ie < g && ue >= 0 && ue < g && C - x >= 0 && C + x <= w) {
7336
7336
  const xe = new is(ie, ue, se, R);
7337
- xe._round(), s && !xd(i, xe, d, s, l) || M.push(xe);
7337
+ xe._round(), s && !xd(i, xe, d, s, l) || z.push(xe);
7338
7338
  }
7339
7339
  }
7340
7340
  I += W;
7341
7341
  }
7342
- return f || M.length || p || (M = Sd(i, I / 2, r, s, l, d, p, !0, g)), M;
7342
+ return f || z.length || p || (z = Sd(i, I / 2, r, s, l, d, p, !0, g)), z;
7343
7343
  }
7344
7344
  Be("Anchor", is);
7345
7345
  const Bo = Gi;
7346
7346
  function Td(i, e, r, s) {
7347
7347
  const l = [], d = i.image, p = d.pixelRatio, f = d.paddedRect.w - 2 * Bo, g = d.paddedRect.h - 2 * Bo;
7348
7348
  let x = { x1: i.left, y1: i.top, x2: i.right, y2: i.bottom };
7349
- const w = d.stretchX || [[0, f]], I = d.stretchY || [[0, g]], C = (fe, Ze) => fe + Ze[1] - Ze[0], M = w.reduce(C, 0), R = I.reduce(C, 0), B = f - M, $ = g - R;
7350
- let W = 0, se = M, Y = 0, ie = R, ue = 0, xe = B, De = 0, We = $;
7349
+ const w = d.stretchX || [[0, f]], I = d.stretchY || [[0, g]], C = (fe, Ze) => fe + Ze[1] - Ze[0], z = w.reduce(C, 0), R = I.reduce(C, 0), B = f - z, $ = g - R;
7350
+ let W = 0, se = z, Y = 0, ie = R, ue = 0, xe = B, De = 0, We = $;
7351
7351
  if (d.content && s) {
7352
7352
  const fe = d.content, Ze = fe[2] - fe[0], Ue = fe[3] - fe[1];
7353
7353
  (d.textFitWidth || d.textFitHeight) && (x = Ku(i)), W = cc(w, 0, fe[0]), Y = cc(I, 0, fe[1]), se = cc(w, fe[0], fe[2]), ie = cc(I, fe[1], fe[3]), ue = fe[0] - W, De = fe[1] - Y, xe = Ze - se, We = Ue - ie;
7354
7354
  }
7355
7355
  const Ee = x.x1, Ce = x.y1, $e = x.x2 - Ee, Oe = x.y2 - Ce, Re = (fe, Ze, Ue, et) => {
7356
- const kt = hc(fe.stretch - W, se, $e, Ee), Ct = uc(fe.fixed - ue, xe, fe.stretch, M), ai = hc(Ze.stretch - Y, ie, Oe, Ce), Pr = uc(Ze.fixed - De, We, Ze.stretch, R), bi = hc(Ue.stretch - W, se, $e, Ee), Wt = uc(Ue.fixed - ue, xe, Ue.stretch, M), Ri = hc(et.stretch - Y, ie, Oe, Ce), Fi = uc(et.fixed - De, We, et.stretch, R), Bi = new ae(kt, ai), Xt = new ae(bi, ai), li = new ae(bi, Ri), Ci = new ae(kt, Ri), wi = new ae(Ct / p, Pr / p), Oi = new ae(Wt / p, Fi / p), Si = e * Math.PI / 180;
7356
+ const kt = hc(fe.stretch - W, se, $e, Ee), Ct = uc(fe.fixed - ue, xe, fe.stretch, z), ai = hc(Ze.stretch - Y, ie, Oe, Ce), Pr = uc(Ze.fixed - De, We, Ze.stretch, R), bi = hc(Ue.stretch - W, se, $e, Ee), Wt = uc(Ue.fixed - ue, xe, Ue.stretch, z), Ri = hc(et.stretch - Y, ie, Oe, Ce), Fi = uc(et.fixed - De, We, et.stretch, R), Bi = new ae(kt, ai), Xt = new ae(bi, ai), li = new ae(bi, Ri), Ci = new ae(kt, Ri), wi = new ae(Ct / p, Pr / p), Oi = new ae(Wt / p, Fi / p), Si = e * Math.PI / 180;
7357
7357
  if (Si) {
7358
7358
  const _t = Math.sin(Si), Lt = Math.cos(Si), Nt = [Lt, -_t, _t, Lt];
7359
7359
  Bi._matMult(Nt), Xt._matMult(Nt), Ci._matMult(Nt), li._matMult(Nt);
@@ -7362,7 +7362,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7362
7362
  return { tl: Bi, tr: Xt, bl: Ci, br: li, tex: { x: d.paddedRect.x + Bo + dr, y: d.paddedRect.y + Bo + Hi, w: Ue.stretch + Ue.fixed - dr, h: et.stretch + et.fixed - Hi }, writingMode: void 0, glyphOffset: [0, 0], sectionIndex: 0, pixelOffsetTL: wi, pixelOffsetBR: Oi, minFontScaleX: xe / p / $e, minFontScaleY: We / p / Oe, isSDF: r };
7363
7363
  };
7364
7364
  if (s && (d.stretchX || d.stretchY)) {
7365
- const fe = Id(w, B, M), Ze = Id(I, $, R);
7365
+ const fe = Id(w, B, z), Ze = Id(I, $, R);
7366
7366
  for (let Ue = 0; Ue < fe.length - 1; Ue++) {
7367
7367
  const et = fe[Ue], kt = fe[Ue + 1];
7368
7368
  for (let Ct = 0; Ct < Ze.length - 1; Ct++) l.push(Re(et, Ze[Ct], kt, Ze[Ct + 1]));
@@ -7393,16 +7393,16 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7393
7393
  constructor(e, r, s, l, d, p, f, g, x, w) {
7394
7394
  var I;
7395
7395
  if (this.boxStartIndex = e.length, x) {
7396
- let C = p.top, M = p.bottom;
7396
+ let C = p.top, z = p.bottom;
7397
7397
  const R = p.collisionPadding;
7398
- R && (C -= R[1], M += R[3]);
7399
- let B = M - C;
7398
+ R && (C -= R[1], z += R[3]);
7399
+ let B = z - C;
7400
7400
  B > 0 && (B = Math.max(10, B), this.circleDiameter = B);
7401
7401
  } else {
7402
7402
  const C = !((I = p.image) === null || I === void 0) && I.content && (p.image.textFitWidth || p.image.textFitHeight) ? Ku(p) : { x1: p.left, y1: p.top, x2: p.right, y2: p.bottom };
7403
7403
  C.y1 = C.y1 * f - g[0], C.y2 = C.y2 * f + g[2], C.x1 = C.x1 * f - g[3], C.x2 = C.x2 * f + g[1];
7404
- const M = p.collisionPadding;
7405
- if (M && (C.x1 -= M[0] * f, C.y1 -= M[1] * f, C.x2 += M[2] * f, C.y2 += M[3] * f), w) {
7404
+ const z = p.collisionPadding;
7405
+ if (z && (C.x1 -= z[0] * f, C.y1 -= z[1] * f, C.x2 += z[2] * f, C.y2 += z[3] * f), w) {
7406
7406
  const R = new ae(C.x1, C.y1), B = new ae(C.x2, C.y1), $ = new ae(C.x1, C.y2), W = new ae(C.x2, C.y2), se = w * Math.PI / 180;
7407
7407
  R._rotate(se), B._rotate(se), $._rotate(se), W._rotate(se), C.x1 = Math.min(R.x, B.x, $.x, W.x), C.x2 = Math.max(R.x, B.x, $.x, W.x), C.y1 = Math.min(R.y, B.y, $.y, W.y), C.y2 = Math.max(R.y, B.y, $.y, W.y);
7408
7408
  }
@@ -7449,27 +7449,27 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7449
7449
  function hm(i, e = 1, r = !1) {
7450
7450
  let s = 1 / 0, l = 1 / 0, d = -1 / 0, p = -1 / 0;
7451
7451
  const f = i[0];
7452
- for (let M = 0; M < f.length; M++) {
7453
- const R = f[M];
7454
- (!M || R.x < s) && (s = R.x), (!M || R.y < l) && (l = R.y), (!M || R.x > d) && (d = R.x), (!M || R.y > p) && (p = R.y);
7452
+ for (let z = 0; z < f.length; z++) {
7453
+ const R = f[z];
7454
+ (!z || R.x < s) && (s = R.x), (!z || R.y < l) && (l = R.y), (!z || R.x > d) && (d = R.x), (!z || R.y > p) && (p = R.y);
7455
7455
  }
7456
7456
  const g = Math.min(d - s, p - l);
7457
7457
  let x = g / 2;
7458
7458
  const w = new cm([], um);
7459
7459
  if (g === 0) return new ae(s, l);
7460
- for (let M = s; M < d; M += g) for (let R = l; R < p; R += g) w.push(new Oo(M + x, R + x, x, i));
7461
- let I = function(M) {
7460
+ for (let z = s; z < d; z += g) for (let R = l; R < p; R += g) w.push(new Oo(z + x, R + x, x, i));
7461
+ let I = function(z) {
7462
7462
  let R = 0, B = 0, $ = 0;
7463
- const W = M[0];
7463
+ const W = z[0];
7464
7464
  for (let se = 0, Y = W.length, ie = Y - 1; se < Y; ie = se++) {
7465
7465
  const ue = W[se], xe = W[ie], De = ue.x * xe.y - xe.x * ue.y;
7466
7466
  B += (ue.x + xe.x) * De, $ += (ue.y + xe.y) * De, R += 3 * De;
7467
7467
  }
7468
- return new Oo(B / R, $ / R, 0, M);
7468
+ return new Oo(B / R, $ / R, 0, z);
7469
7469
  }(i), C = w.length;
7470
7470
  for (; w.length; ) {
7471
- const M = w.pop();
7472
- (M.d > I.d || !I.d) && (I = M, r && console.log("found best %d after %d probes", Math.round(1e4 * M.d) / 1e4, C)), M.max - I.d <= e || (x = M.h / 2, w.push(new Oo(M.p.x - x, M.p.y - x, x, i)), w.push(new Oo(M.p.x + x, M.p.y - x, x, i)), w.push(new Oo(M.p.x - x, M.p.y + x, x, i)), w.push(new Oo(M.p.x + x, M.p.y + x, x, i)), C += 4);
7471
+ const z = w.pop();
7472
+ (z.d > I.d || !I.d) && (I = z, r && console.log("found best %d after %d probes", Math.round(1e4 * z.d) / 1e4, C)), z.max - I.d <= e || (x = z.h / 2, w.push(new Oo(z.p.x - x, z.p.y - x, x, i)), w.push(new Oo(z.p.x + x, z.p.y - x, x, i)), w.push(new Oo(z.p.x - x, z.p.y + x, x, i)), w.push(new Oo(z.p.x + x, z.p.y + x, x, i)), C += 4);
7473
7473
  }
7474
7474
  return r && (console.log(`num probes: ${C}`), console.log(`best distance: ${I.d}`)), I.p;
7475
7475
  }
@@ -7482,8 +7482,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7482
7482
  for (let g = 0; g < d.length; g++) {
7483
7483
  const x = d[g];
7484
7484
  for (let w = 0, I = x.length, C = I - 1; w < I; C = w++) {
7485
- const M = x[w], R = x[C];
7486
- M.y > l.y != R.y > l.y && l.x < (R.x - M.x) * (l.y - M.y) / (R.y - M.y) + M.x && (p = !p), f = Math.min(f, lu(l, M, R));
7485
+ const z = x[w], R = x[C];
7486
+ z.y > l.y != R.y > l.y && l.x < (R.x - z.x) * (l.y - z.y) / (R.y - z.y) + z.x && (p = !p), f = Math.min(f, lu(l, z, R));
7487
7487
  }
7488
7488
  }
7489
7489
  return (p ? 1 : -1) * Math.sqrt(f);
@@ -7592,12 +7592,12 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7592
7592
  function dm(i, e, r, s, l, d, p, f, g, x, w) {
7593
7593
  let I = d.textMaxSize.evaluate(e, {});
7594
7594
  I === void 0 && (I = p);
7595
- const C = i.layers[0].layout, M = C.get("icon-offset").evaluate(e, {}, w), R = kd(r.horizontal), B = p / 24, $ = i.tilePixelRatio * B, W = i.tilePixelRatio * I / 24, se = i.tilePixelRatio * f, Y = i.tilePixelRatio * C.get("symbol-spacing"), ie = C.get("text-padding") * i.tilePixelRatio, ue = function(fe, Ze, Ue, et = 1) {
7595
+ const C = i.layers[0].layout, z = C.get("icon-offset").evaluate(e, {}, w), R = kd(r.horizontal), B = p / 24, $ = i.tilePixelRatio * B, W = i.tilePixelRatio * I / 24, se = i.tilePixelRatio * f, Y = i.tilePixelRatio * C.get("symbol-spacing"), ie = C.get("text-padding") * i.tilePixelRatio, ue = function(fe, Ze, Ue, et = 1) {
7596
7596
  const kt = fe.get("icon-padding").evaluate(Ze, {}, Ue), Ct = kt && kt.values;
7597
7597
  return [Ct[0] * et, Ct[1] * et, Ct[2] * et, Ct[3] * et];
7598
7598
  }(C, e, w, i.tilePixelRatio), xe = C.get("text-max-angle") / 180 * Math.PI, De = C.get("text-rotation-alignment") !== "viewport" && C.get("symbol-placement") !== "point", We = C.get("icon-rotation-alignment") === "map" && C.get("symbol-placement") !== "point", Ee = C.get("symbol-placement"), Ce = Y / 2, $e = C.get("icon-text-fit");
7599
7599
  let Oe;
7600
- s && $e !== "none" && (i.allowVerticalPlacement && r.vertical && (Oe = Yu(s, r.vertical, $e, C.get("icon-text-fit-padding"), M, B)), R && (s = Yu(s, R, $e, C.get("icon-text-fit-padding"), M, B)));
7600
+ s && $e !== "none" && (i.allowVerticalPlacement && r.vertical && (Oe = Yu(s, r.vertical, $e, C.get("icon-text-fit-padding"), z, B)), R && (s = Yu(s, R, $e, C.get("icon-text-fit-padding"), z, B)));
7601
7601
  const Re = (fe, Ze) => {
7602
7602
  Ze.x < 0 || Ze.x >= ti || Ze.y < 0 || Ze.y >= ti || function(Ue, et, kt, Ct, ai, Pr, bi, Wt, Ri, Fi, Bi, Xt, li, Ci, wi, Oi, Si, dr, Hi, _t, Lt, Nt, Ki, Ht, Vo) {
7603
7603
  const on = Ue.addToLineVertexArray(et, kt);
@@ -7642,7 +7642,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7642
7642
  return [Os, ki.length];
7643
7643
  }(Ue.textAnchorOffsets, Sm);
7644
7644
  Ue.symbolInstances.emplaceBack(et.x, et.y, kn.right >= 0 ? kn.right : -1, kn.center >= 0 ? kn.center : -1, kn.left >= 0 ? kn.left : -1, kn.vertical || -1, Lh, Rh, Rd, mm, gm, _m, ym, xm, vm, bm, wm, Fi, Dd, Ld, Cn, rl, Bd, 0, li, Vr, Tm, Im);
7645
- }(i, Ze, fe, r, s, l, Oe, i.layers[0], i.collisionBoxArray, e.index, e.sourceLayerIndex, i.index, $, [ie, ie, ie, ie], De, g, se, ue, We, M, e, d, x, w, p);
7645
+ }(i, Ze, fe, r, s, l, Oe, i.layers[0], i.collisionBoxArray, e.index, e.sourceLayerIndex, i.index, $, [ie, ie, ie, ie], De, g, se, ue, We, z, e, d, x, w, p);
7646
7646
  };
7647
7647
  if (Ee === "line") for (const fe of yd(e.geometry, 0, 0, ti, ti)) {
7648
7648
  const Ze = lm(fe, Y, xe, r.vertical || R, s, 24, W, i.overscaling, ti);
@@ -7660,7 +7660,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7660
7660
  else if (e.type === "LineString") for (const fe of e.geometry) Re(fe, new is(fe[0].x, fe[0].y, 0));
7661
7661
  else if (e.type === "Point") for (const fe of e.geometry) for (const Ze of fe) Re([Ze], new is(Ze.x, Ze.y, 0));
7662
7662
  }
7663
- function Cd(i, e, r, s, l, d, p, f, g, x, w, I, C, M, R) {
7663
+ function Cd(i, e, r, s, l, d, p, f, g, x, w, I, C, z, R) {
7664
7664
  const B = function(se, Y, ie, ue, xe, De, We, Ee) {
7665
7665
  const Ce = ue.layout.get("text-rotate").evaluate(De, {}) * Math.PI / 180, $e = [];
7666
7666
  for (const Oe of Y.positionedLines) for (const Re of Oe.positionedGlyphs) {
@@ -7690,7 +7690,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7690
7690
  return $e;
7691
7691
  }(0, r, f, l, d, p, s, i.allowVerticalPlacement), $ = i.textSizeData;
7692
7692
  let W = null;
7693
- $.kind === "source" ? (W = [sn * l.layout.get("text-size").evaluate(p, {})], W[0] > es && ui(`${i.layerIds[0]}: Value for "text-size" is >= ${Qa}. Reduce your "text-size".`)) : $.kind === "composite" && (W = [sn * M.compositeTextSizes[0].evaluate(p, {}, R), sn * M.compositeTextSizes[1].evaluate(p, {}, R)], (W[0] > es || W[1] > es) && ui(`${i.layerIds[0]}: Value for "text-size" is >= ${Qa}. Reduce your "text-size".`)), i.addSymbols(i.text, B, W, f, d, p, x, e, g.lineStartIndex, g.lineLength, C, R);
7693
+ $.kind === "source" ? (W = [sn * l.layout.get("text-size").evaluate(p, {})], W[0] > es && ui(`${i.layerIds[0]}: Value for "text-size" is >= ${Qa}. Reduce your "text-size".`)) : $.kind === "composite" && (W = [sn * z.compositeTextSizes[0].evaluate(p, {}, R), sn * z.compositeTextSizes[1].evaluate(p, {}, R)], (W[0] > es || W[1] > es) && ui(`${i.layerIds[0]}: Value for "text-size" is >= ${Qa}. Reduce your "text-size".`)), i.addSymbols(i.text, B, W, f, d, p, x, e, g.lineStartIndex, g.lineLength, C, R);
7694
7694
  for (const se of w) I[se] = i.text.placedSymbolArray.length - 1;
7695
7695
  return 4 * B.length;
7696
7696
  }
@@ -7747,8 +7747,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7747
7747
  }
7748
7748
  continue;
7749
7749
  }
7750
- const M = C + I >> 1, R = p[2 * M], B = p[2 * M + 1];
7751
- R >= e && R <= s && B >= r && B <= l && x.push(d[M]), (w === 0 ? e <= R : r <= B) && (g.push(C), g.push(M - 1), g.push(1 - w)), (w === 0 ? s >= R : l >= B) && (g.push(M + 1), g.push(I), g.push(1 - w));
7750
+ const z = C + I >> 1, R = p[2 * z], B = p[2 * z + 1];
7751
+ R >= e && R <= s && B >= r && B <= l && x.push(d[z]), (w === 0 ? e <= R : r <= B) && (g.push(C), g.push(z - 1), g.push(1 - w)), (w === 0 ? s >= R : l >= B) && (g.push(z + 1), g.push(I), g.push(1 - w));
7752
7752
  }
7753
7753
  return x;
7754
7754
  }
@@ -7761,8 +7761,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7761
7761
  for (let $ = C; $ <= I; $++) zd(d[2 * $], d[2 * $ + 1], e, r) <= x && g.push(l[$]);
7762
7762
  continue;
7763
7763
  }
7764
- const M = C + I >> 1, R = d[2 * M], B = d[2 * M + 1];
7765
- zd(R, B, e, r) <= x && g.push(l[M]), (w === 0 ? e - s <= R : r - s <= B) && (f.push(C), f.push(M - 1), f.push(1 - w)), (w === 0 ? e + s >= R : r + s >= B) && (f.push(M + 1), f.push(I), f.push(1 - w));
7764
+ const z = C + I >> 1, R = d[2 * z], B = d[2 * z + 1];
7765
+ zd(R, B, e, r) <= x && g.push(l[z]), (w === 0 ? e - s <= R : r - s <= B) && (f.push(C), f.push(z - 1), f.push(1 - w)), (w === 0 ? e + s >= R : r + s >= B) && (f.push(z + 1), f.push(I), f.push(1 - w));
7766
7766
  }
7767
7767
  return g;
7768
7768
  }
@@ -7775,8 +7775,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7775
7775
  function Md(i, e, r, s, l, d) {
7776
7776
  for (; l > s; ) {
7777
7777
  if (l - s > 600) {
7778
- const x = l - s + 1, w = r - s + 1, I = Math.log(x), C = 0.5 * Math.exp(2 * I / 3), M = 0.5 * Math.sqrt(I * C * (x - C) / x) * (w - x / 2 < 0 ? -1 : 1);
7779
- Md(i, e, r, Math.max(s, Math.floor(r - w * C / x + M)), Math.min(l, Math.floor(r + (x - w) * C / x + M)), d);
7778
+ const x = l - s + 1, w = r - s + 1, I = Math.log(x), C = 0.5 * Math.exp(2 * I / 3), z = 0.5 * Math.sqrt(I * C * (x - C) / x) * (w - x / 2 < 0 ? -1 : 1);
7779
+ Md(i, e, r, Math.max(s, Math.floor(r - w * C / x + z)), Math.min(l, Math.floor(r + (x - w) * C / x + z)), d);
7780
7780
  }
7781
7781
  const p = e[2 * r + d];
7782
7782
  let f = s, g = l;
@@ -7891,8 +7891,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7891
7891
  var i = new Eo(16);
7892
7892
  return Eo != Float32Array && (i[1] = 0, i[2] = 0, i[3] = 0, i[4] = 0, i[6] = 0, i[7] = 0, i[8] = 0, i[9] = 0, i[11] = 0, i[12] = 0, i[13] = 0, i[14] = 0), i[0] = 1, i[5] = 1, i[10] = 1, i[15] = 1, i;
7893
7893
  }, S.I = fh, S.J = function(i, e, r) {
7894
- var s, l, d, p, f, g, x, w, I, C, M, R, B = r[0], $ = r[1], W = r[2];
7895
- return e === i ? (i[12] = e[0] * B + e[4] * $ + e[8] * W + e[12], i[13] = e[1] * B + e[5] * $ + e[9] * W + e[13], i[14] = e[2] * B + e[6] * $ + e[10] * W + e[14], i[15] = e[3] * B + e[7] * $ + e[11] * W + e[15]) : (l = e[1], d = e[2], p = e[3], f = e[4], g = e[5], x = e[6], w = e[7], I = e[8], C = e[9], M = e[10], R = e[11], i[0] = s = e[0], i[1] = l, i[2] = d, i[3] = p, i[4] = f, i[5] = g, i[6] = x, i[7] = w, i[8] = I, i[9] = C, i[10] = M, i[11] = R, i[12] = s * B + f * $ + I * W + e[12], i[13] = l * B + g * $ + C * W + e[13], i[14] = d * B + x * $ + M * W + e[14], i[15] = p * B + w * $ + R * W + e[15]), i;
7894
+ var s, l, d, p, f, g, x, w, I, C, z, R, B = r[0], $ = r[1], W = r[2];
7895
+ return e === i ? (i[12] = e[0] * B + e[4] * $ + e[8] * W + e[12], i[13] = e[1] * B + e[5] * $ + e[9] * W + e[13], i[14] = e[2] * B + e[6] * $ + e[10] * W + e[14], i[15] = e[3] * B + e[7] * $ + e[11] * W + e[15]) : (l = e[1], d = e[2], p = e[3], f = e[4], g = e[5], x = e[6], w = e[7], I = e[8], C = e[9], z = e[10], R = e[11], i[0] = s = e[0], i[1] = l, i[2] = d, i[3] = p, i[4] = f, i[5] = g, i[6] = x, i[7] = w, i[8] = I, i[9] = C, i[10] = z, i[11] = R, i[12] = s * B + f * $ + I * W + e[12], i[13] = l * B + g * $ + C * W + e[13], i[14] = d * B + x * $ + z * W + e[14], i[15] = p * B + w * $ + R * W + e[15]), i;
7896
7896
  }, S.K = function(i, e, r) {
7897
7897
  var s = r[0], l = r[1], d = r[2];
7898
7898
  return i[0] = e[0] * s, i[1] = e[1] * s, i[2] = e[2] * s, i[3] = e[3] * s, i[4] = e[4] * l, i[5] = e[5] * l, i[6] = e[6] * l, i[7] = e[7] * l, i[8] = e[8] * d, i[9] = e[9] * d, i[10] = e[10] * d, i[11] = e[11] * d, i[12] = e[12], i[13] = e[13], i[14] = e[14], i[15] = e[15], i;
@@ -7904,8 +7904,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7904
7904
  }
7905
7905
  return r;
7906
7906
  }, S.N = ts, S.O = ad, S.P = ae, S.Q = ld, S.R = hr, S.S = ur, S.T = Gn, S.U = ct, S.V = Ke, S.W = hn, S.X = ti, S.Y = b, S.Z = lc, S._ = c, S.a = qr, S.a$ = function(i, e) {
7907
- var r = i[0], s = i[1], l = i[2], d = i[3], p = i[4], f = i[5], g = i[6], x = i[7], w = i[8], I = i[9], C = i[10], M = i[11], R = i[12], B = i[13], $ = i[14], W = i[15], se = e[0], Y = e[1], ie = e[2], ue = e[3], xe = e[4], De = e[5], We = e[6], Ee = e[7], Ce = e[8], $e = e[9], Oe = e[10], Re = e[11], fe = e[12], Ze = e[13], Ue = e[14], et = e[15];
7908
- return Math.abs(r - se) <= Li * Math.max(1, Math.abs(r), Math.abs(se)) && Math.abs(s - Y) <= Li * Math.max(1, Math.abs(s), Math.abs(Y)) && Math.abs(l - ie) <= Li * Math.max(1, Math.abs(l), Math.abs(ie)) && Math.abs(d - ue) <= Li * Math.max(1, Math.abs(d), Math.abs(ue)) && Math.abs(p - xe) <= Li * Math.max(1, Math.abs(p), Math.abs(xe)) && Math.abs(f - De) <= Li * Math.max(1, Math.abs(f), Math.abs(De)) && Math.abs(g - We) <= Li * Math.max(1, Math.abs(g), Math.abs(We)) && Math.abs(x - Ee) <= Li * Math.max(1, Math.abs(x), Math.abs(Ee)) && Math.abs(w - Ce) <= Li * Math.max(1, Math.abs(w), Math.abs(Ce)) && Math.abs(I - $e) <= Li * Math.max(1, Math.abs(I), Math.abs($e)) && Math.abs(C - Oe) <= Li * Math.max(1, Math.abs(C), Math.abs(Oe)) && Math.abs(M - Re) <= Li * Math.max(1, Math.abs(M), Math.abs(Re)) && Math.abs(R - fe) <= Li * Math.max(1, Math.abs(R), Math.abs(fe)) && Math.abs(B - Ze) <= Li * Math.max(1, Math.abs(B), Math.abs(Ze)) && Math.abs($ - Ue) <= Li * Math.max(1, Math.abs($), Math.abs(Ue)) && Math.abs(W - et) <= Li * Math.max(1, Math.abs(W), Math.abs(et));
7907
+ var r = i[0], s = i[1], l = i[2], d = i[3], p = i[4], f = i[5], g = i[6], x = i[7], w = i[8], I = i[9], C = i[10], z = i[11], R = i[12], B = i[13], $ = i[14], W = i[15], se = e[0], Y = e[1], ie = e[2], ue = e[3], xe = e[4], De = e[5], We = e[6], Ee = e[7], Ce = e[8], $e = e[9], Oe = e[10], Re = e[11], fe = e[12], Ze = e[13], Ue = e[14], et = e[15];
7908
+ return Math.abs(r - se) <= Li * Math.max(1, Math.abs(r), Math.abs(se)) && Math.abs(s - Y) <= Li * Math.max(1, Math.abs(s), Math.abs(Y)) && Math.abs(l - ie) <= Li * Math.max(1, Math.abs(l), Math.abs(ie)) && Math.abs(d - ue) <= Li * Math.max(1, Math.abs(d), Math.abs(ue)) && Math.abs(p - xe) <= Li * Math.max(1, Math.abs(p), Math.abs(xe)) && Math.abs(f - De) <= Li * Math.max(1, Math.abs(f), Math.abs(De)) && Math.abs(g - We) <= Li * Math.max(1, Math.abs(g), Math.abs(We)) && Math.abs(x - Ee) <= Li * Math.max(1, Math.abs(x), Math.abs(Ee)) && Math.abs(w - Ce) <= Li * Math.max(1, Math.abs(w), Math.abs(Ce)) && Math.abs(I - $e) <= Li * Math.max(1, Math.abs(I), Math.abs($e)) && Math.abs(C - Oe) <= Li * Math.max(1, Math.abs(C), Math.abs(Oe)) && Math.abs(z - Re) <= Li * Math.max(1, Math.abs(z), Math.abs(Re)) && Math.abs(R - fe) <= Li * Math.max(1, Math.abs(R), Math.abs(fe)) && Math.abs(B - Ze) <= Li * Math.max(1, Math.abs(B), Math.abs(Ze)) && Math.abs($ - Ue) <= Li * Math.max(1, Math.abs($), Math.abs(Ue)) && Math.abs(W - et) <= Li * Math.max(1, Math.abs(W), Math.abs(et));
7909
7909
  }, S.a0 = ri, S.a1 = Th, S.a2 = Te, S.a3 = (i) => {
7910
7910
  const e = window.document.createElement("video");
7911
7911
  return e.muted = !0, new Promise((r) => {
@@ -7964,14 +7964,14 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7964
7964
  "source" in p && s[p.source] ? r.push({ command: "removeLayer", args: [p.id] }) : d.push(p);
7965
7965
  }), r = r.concat(l), function(p, f, g) {
7966
7966
  f = f || [];
7967
- const x = (p = p || []).map(ls), w = f.map(ls), I = p.reduce(cs, {}), C = f.reduce(cs, {}), M = x.slice(), R = /* @__PURE__ */ Object.create(null);
7967
+ const x = (p = p || []).map(ls), w = f.map(ls), I = p.reduce(cs, {}), C = f.reduce(cs, {}), z = x.slice(), R = /* @__PURE__ */ Object.create(null);
7968
7968
  let B, $, W, se, Y;
7969
- for (let ie = 0, ue = 0; ie < x.length; ie++) B = x[ie], Object.prototype.hasOwnProperty.call(C, B) ? ue++ : (Zt(g, { command: "removeLayer", args: [B] }), M.splice(M.indexOf(B, ue), 1));
7970
- for (let ie = 0, ue = 0; ie < w.length; ie++) B = w[w.length - 1 - ie], M[M.length - 1 - ie] !== B && (Object.prototype.hasOwnProperty.call(I, B) ? (Zt(g, { command: "removeLayer", args: [B] }), M.splice(M.lastIndexOf(B, M.length - ue), 1)) : ue++, se = M[M.length - ie], Zt(g, { command: "addLayer", args: [C[B], se] }), M.splice(M.length - ie, 0, B), R[B] = !0);
7969
+ for (let ie = 0, ue = 0; ie < x.length; ie++) B = x[ie], Object.prototype.hasOwnProperty.call(C, B) ? ue++ : (Zt(g, { command: "removeLayer", args: [B] }), z.splice(z.indexOf(B, ue), 1));
7970
+ for (let ie = 0, ue = 0; ie < w.length; ie++) B = w[w.length - 1 - ie], z[z.length - 1 - ie] !== B && (Object.prototype.hasOwnProperty.call(I, B) ? (Zt(g, { command: "removeLayer", args: [B] }), z.splice(z.lastIndexOf(B, z.length - ue), 1)) : ue++, se = z[z.length - ie], Zt(g, { command: "addLayer", args: [C[B], se] }), z.splice(z.length - ie, 0, B), R[B] = !0);
7971
7971
  for (let ie = 0; ie < w.length; ie++) if (B = w[ie], $ = I[B], W = C[B], !R[B] && !xt($, W)) if (xt($.source, W.source) && xt($["source-layer"], W["source-layer"]) && xt($.type, W.type)) {
7972
7972
  for (Y in Wi($.layout, W.layout, g, B, null, "setLayoutProperty"), Wi($.paint, W.paint, g, B, null, "setPaintProperty"), xt($.filter, W.filter) || Zt(g, { command: "setFilter", args: [B, W.filter] }), xt($.minzoom, W.minzoom) && xt($.maxzoom, W.maxzoom) || Zt(g, { command: "setLayerZoomRange", args: [B, W.minzoom, W.maxzoom] }), $) Object.prototype.hasOwnProperty.call($, Y) && Y !== "layout" && Y !== "paint" && Y !== "filter" && Y !== "metadata" && Y !== "minzoom" && Y !== "maxzoom" && (Y.indexOf("paint.") === 0 ? Wi($[Y], W[Y], g, B, Y.slice(6), "setPaintProperty") : xt($[Y], W[Y]) || Zt(g, { command: "setLayerProperty", args: [B, Y, W[Y]] }));
7973
7973
  for (Y in W) Object.prototype.hasOwnProperty.call(W, Y) && !Object.prototype.hasOwnProperty.call($, Y) && Y !== "layout" && Y !== "paint" && Y !== "filter" && Y !== "metadata" && Y !== "minzoom" && Y !== "maxzoom" && (Y.indexOf("paint.") === 0 ? Wi($[Y], W[Y], g, B, Y.slice(6), "setPaintProperty") : xt($[Y], W[Y]) || Zt(g, { command: "setLayerProperty", args: [B, Y, W[Y]] }));
7974
- } else Zt(g, { command: "removeLayer", args: [B] }), se = M[M.lastIndexOf(B) + 1], Zt(g, { command: "addLayer", args: [W, se] });
7974
+ } else Zt(g, { command: "removeLayer", args: [B] }), se = z[z.lastIndexOf(B) + 1], Zt(g, { command: "addLayer", args: [W, se] });
7975
7975
  }(d, e.layers, r);
7976
7976
  } catch (s) {
7977
7977
  console.warn("Unable to compute style diff:", s), r = [{ command: "setStyle", args: [e] }];
@@ -8074,8 +8074,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
8074
8074
  for (const d of i) e = Math.min(e, d.x), r = Math.min(r, d.y), s = Math.max(s, d.x), l = Math.max(l, d.y);
8075
8075
  return [e, r, s, l];
8076
8076
  }, S.aq = ni, S.as = _h, S.at = function(i, e) {
8077
- var r = e[0], s = e[1], l = e[2], d = e[3], p = e[4], f = e[5], g = e[6], x = e[7], w = e[8], I = e[9], C = e[10], M = e[11], R = e[12], B = e[13], $ = e[14], W = e[15], se = r * f - s * p, Y = r * g - l * p, ie = r * x - d * p, ue = s * g - l * f, xe = s * x - d * f, De = l * x - d * g, We = w * B - I * R, Ee = w * $ - C * R, Ce = w * W - M * R, $e = I * $ - C * B, Oe = I * W - M * B, Re = C * W - M * $, fe = se * Re - Y * Oe + ie * $e + ue * Ce - xe * Ee + De * We;
8078
- return fe ? (i[0] = (f * Re - g * Oe + x * $e) * (fe = 1 / fe), i[1] = (l * Oe - s * Re - d * $e) * fe, i[2] = (B * De - $ * xe + W * ue) * fe, i[3] = (C * xe - I * De - M * ue) * fe, i[4] = (g * Ce - p * Re - x * Ee) * fe, i[5] = (r * Re - l * Ce + d * Ee) * fe, i[6] = ($ * ie - R * De - W * Y) * fe, i[7] = (w * De - C * ie + M * Y) * fe, i[8] = (p * Oe - f * Ce + x * We) * fe, i[9] = (s * Ce - r * Oe - d * We) * fe, i[10] = (R * xe - B * ie + W * se) * fe, i[11] = (I * ie - w * xe - M * se) * fe, i[12] = (f * Ee - p * $e - g * We) * fe, i[13] = (r * $e - s * Ee + l * We) * fe, i[14] = (B * Y - R * ue - $ * se) * fe, i[15] = (w * ue - I * Y + C * se) * fe, i) : null;
8077
+ var r = e[0], s = e[1], l = e[2], d = e[3], p = e[4], f = e[5], g = e[6], x = e[7], w = e[8], I = e[9], C = e[10], z = e[11], R = e[12], B = e[13], $ = e[14], W = e[15], se = r * f - s * p, Y = r * g - l * p, ie = r * x - d * p, ue = s * g - l * f, xe = s * x - d * f, De = l * x - d * g, We = w * B - I * R, Ee = w * $ - C * R, Ce = w * W - z * R, $e = I * $ - C * B, Oe = I * W - z * B, Re = C * W - z * $, fe = se * Re - Y * Oe + ie * $e + ue * Ce - xe * Ee + De * We;
8078
+ return fe ? (i[0] = (f * Re - g * Oe + x * $e) * (fe = 1 / fe), i[1] = (l * Oe - s * Re - d * $e) * fe, i[2] = (B * De - $ * xe + W * ue) * fe, i[3] = (C * xe - I * De - z * ue) * fe, i[4] = (g * Ce - p * Re - x * Ee) * fe, i[5] = (r * Re - l * Ce + d * Ee) * fe, i[6] = ($ * ie - R * De - W * Y) * fe, i[7] = (w * De - C * ie + z * Y) * fe, i[8] = (p * Oe - f * Ce + x * We) * fe, i[9] = (s * Ce - r * Oe - d * We) * fe, i[10] = (R * xe - B * ie + W * se) * fe, i[11] = (I * ie - w * xe - z * se) * fe, i[12] = (f * Ee - p * $e - g * We) * fe, i[13] = (r * $e - s * Ee + l * We) * fe, i[14] = (B * Y - R * ue - $ * se) * fe, i[15] = (w * ue - I * Y + C * se) * fe, i) : null;
8079
8079
  }, S.au = Ph, S.av = gh, S.aw = Ah, S.ax = function() {
8080
8080
  const i = {}, e = he.$version;
8081
8081
  for (const r in he.$root) {
@@ -8133,7 +8133,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
8133
8133
  }
8134
8134
  const d = r.get("text-line-height") * ni, p = r.get("text-rotation-alignment") !== "viewport" && r.get("symbol-placement") !== "point", f = r.get("text-keep-upright"), g = r.get("text-size");
8135
8135
  for (const x of i.bucket.features) {
8136
- const w = r.get("text-font").evaluate(x, {}, i.canonical).join(","), I = g.evaluate(x, {}, i.canonical), C = l.layoutTextSize.evaluate(x, {}, i.canonical), M = l.layoutIconSize.evaluate(x, {}, i.canonical), R = { horizontal: {}, vertical: void 0 }, B = x.text;
8136
+ const w = r.get("text-font").evaluate(x, {}, i.canonical).join(","), I = g.evaluate(x, {}, i.canonical), C = l.layoutTextSize.evaluate(x, {}, i.canonical), z = l.layoutIconSize.evaluate(x, {}, i.canonical), R = { horizontal: {}, vertical: void 0 }, B = x.text;
8137
8137
  let $, W = [0, 0];
8138
8138
  if (B) {
8139
8139
  const ie = B.toString(), ue = r.get("text-letter-spacing").evaluate(x, {}, i.canonical) * ni, xe = Hc(ie) ? ue : 0, De = r.get("text-anchor").evaluate(x, {}, i.canonical), We = Ad(e, x, i.canonical);
@@ -8168,7 +8168,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
8168
8168
  ie && ($ = Jf(i.imagePositions[x.icon.name], r.get("icon-offset").evaluate(x, {}, i.canonical), r.get("icon-anchor").evaluate(x, {}, i.canonical)), se = !!ie.sdf, i.bucket.sdfIcons === void 0 ? i.bucket.sdfIcons = se : i.bucket.sdfIcons !== se && ui("Style sheet warning: Cannot mix SDF and non-SDF icons in one buffer"), (ie.pixelRatio !== i.bucket.pixelRatio || r.get("icon-rotate").constantOr(1) !== 0) && (i.bucket.iconsNeedLinear = !0));
8169
8169
  }
8170
8170
  const Y = kd(R.horizontal) || R.vertical;
8171
- i.bucket.iconsInText = !!Y && Y.iconsInText, (Y || $) && dm(i.bucket, x, R, $, i.imageMap, l, C, M, W, se, i.canonical);
8171
+ i.bucket.iconsInText = !!Y && Y.iconsInText, (Y || $) && dm(i.bucket, x, R, $, i.imageMap, l, C, z, W, se, i.canonical);
8172
8172
  }
8173
8173
  i.showCollisionBoxes && i.bucket.generateCollisionDebugBuffers();
8174
8174
  }, S.bp = hh, S.bq = ah, S.br = ch, S.bs = Yn, S.bt = dh, S.bu = class {
@@ -12012,7 +12012,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
12012
12012
  return Object.values(this._symbolsByKey).map(({ crossTileIDs: t }) => t);
12013
12013
  }
12014
12014
  }
12015
- class Jt {
12015
+ class Kt {
12016
12016
  constructor() {
12017
12017
  this.maxCrossTileID = 0;
12018
12018
  }
@@ -12075,7 +12075,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
12075
12075
  }
12076
12076
  class Xi {
12077
12077
  constructor() {
12078
- this.layerIndexes = {}, this.crossTileIDs = new Jt(), this.maxBucketInstanceId = 0, this.bucketsInCurrentPlacement = {};
12078
+ this.layerIndexes = {}, this.crossTileIDs = new Kt(), this.maxBucketInstanceId = 0, this.bucketsInCurrentPlacement = {};
12079
12079
  }
12080
12080
  addLayer(t, n, o) {
12081
12081
  let a = this.layerIndexes[t.id];
@@ -17959,7 +17959,7 @@ uniform ${P} ${A} u_${L};
17959
17959
  c.a.WORKER_URL = u;
17960
17960
  };
17961
17961
  });
17962
- var J = z;
17962
+ var J = M;
17963
17963
  return J;
17964
17964
  });
17965
17965
  })(np);
@@ -18020,37 +18020,37 @@ const Wh = {
18020
18020
  },
18021
18021
  methods: {
18022
18022
  moveLayer(y, T = this.map) {
18023
- T.getStyle().layers.forEach((z) => {
18024
- z.id.match(y) && T.moveLayer(z.id);
18023
+ T.getStyle().layers.forEach((M) => {
18024
+ M.id.match(y) && T.moveLayer(M.id);
18025
18025
  });
18026
18026
  },
18027
- async setVisible(y, T = !0, z = this.map) {
18027
+ async setVisible(y, T = !0, M = this.map) {
18028
18028
  if (!y) return;
18029
18029
  const D = (y == null ? void 0 : y.id) || y, N = this.layerList.find((S) => S.id === y) || y;
18030
18030
  if (!(N != null && N.id)) throw new Error("MixinError: Layer has no id");
18031
- const J = z.getStyle().layers.filter((S) => S.id.match(D));
18031
+ const J = M.getStyle().layers.filter((S) => S.id.match(D));
18032
18032
  J.forEach((S) => {
18033
- z.setLayoutProperty(
18033
+ M.setLayoutProperty(
18034
18034
  S.id,
18035
18035
  "visibility",
18036
18036
  T ? "visible" : "none"
18037
18037
  );
18038
18038
  }), !J.length && T && await this.addLayer(N);
18039
18039
  },
18040
- async addLayer(y, T = {}, z = this == null ? void 0 : this.map) {
18040
+ async addLayer(y, T = {}, M = this == null ? void 0 : this.map) {
18041
18041
  var J, S;
18042
18042
  const D = this.layerList.find((c) => c.id === y) || y;
18043
- this.map.getStyle().layers.find((c) => c.id === D.id) || (this.layerList.find((c) => c.id === D.id) || this.layerList.push(D), (D.service === "vtile" || D.service === "vector" || (J = D.url) != null && J.includes(".vmt")) && this.addVtileLayer(D, z), D.service === "geojson" && this.addGeoJsonLayer(D, z), ((S = D.url) != null && S.includes(".png") || ["tms", "raster"].includes(D.service)) && await this.addRasterLayer(D, T, z));
18043
+ this.map.getStyle().layers.find((c) => c.id === D.id) || (this.layerList.find((c) => c.id === D.id) || this.layerList.push(D), (D.service === "vtile" || D.service === "vector" || (J = D.url) != null && J.includes(".vmt")) && this.addVtileLayer(D, M), D.service === "geojson" && this.addGeoJsonLayer(D, M), ((S = D.url) != null && S.includes(".png") || ["tms", "raster"].includes(D.service)) && await this.addRasterLayer(D, T, M));
18044
18044
  },
18045
- async addRasterLayer(y, T, z = this == null ? void 0 : this.map) {
18046
- await z.addSource(y.id, {
18045
+ async addRasterLayer(y, T, M = this == null ? void 0 : this.map) {
18046
+ await M.addSource(y.id, {
18047
18047
  type: "raster",
18048
18048
  tiles: [y == null ? void 0 : y.url],
18049
18049
  tileSize: 256,
18050
18050
  ...y != null && y.scheme ? { scheme: y == null ? void 0 : y.scheme } : {}
18051
18051
  });
18052
18052
  const D = T.order === 0 ? this.getOrder(T.order) : null;
18053
- await z.addLayer({
18053
+ await M.addLayer({
18054
18054
  id: y.id,
18055
18055
  type: "raster",
18056
18056
  source: y.id,
@@ -18060,9 +18060,9 @@ const Wh = {
18060
18060
  },
18061
18061
  async addVtileLayer(y, T = this == null ? void 0 : this.map) {
18062
18062
  var J;
18063
- const z = ["props", "pointZoom"].filter((S) => y[S]).map((S) => `&${S}=${y[S]}`), D = {
18063
+ const M = ["props", "pointZoom"].filter((S) => y[S]).map((S) => `&${S}=${y[S]}`), D = {
18064
18064
  type: "vector",
18065
- tiles: [`${(J = y == null ? void 0 : y.url) != null && J.startsWith("http") ? "" : window.location.origin}${y == null ? void 0 : y.url}${z}`],
18065
+ tiles: [`${(J = y == null ? void 0 : y.url) != null && J.startsWith("http") ? "" : window.location.origin}${y == null ? void 0 : y.url}${M}`],
18066
18066
  minzoom: y.minzoom || 5,
18067
18067
  maxzoom: y.maxzoom || 24
18068
18068
  };
@@ -18080,8 +18080,8 @@ const Wh = {
18080
18080
  },
18081
18081
  async addGeoJsonLayer(y, T = this.map) {
18082
18082
  var N;
18083
- const z = y.data || ((N = y == null ? void 0 : y.url) != null && N.startsWith("http") ? "" : window.location.origin) + y.url;
18084
- T.addSource(y.id, { type: "geojson", data: z }), (Nd(y.style) || y.layers || []).forEach((J) => {
18083
+ const M = y.data || ((N = y == null ? void 0 : y.url) != null && N.startsWith("http") ? "" : window.location.origin) + y.url;
18084
+ T.addSource(y.id, { type: "geojson", data: M }), (Nd(y.style) || y.layers || []).forEach((J) => {
18085
18085
  const S = {
18086
18086
  ...J,
18087
18087
  source: y.id,
@@ -18094,17 +18094,17 @@ const Wh = {
18094
18094
  });
18095
18095
  },
18096
18096
  setLayerData(y, T) {
18097
- this.layerList = this.layerList.map((z) => z.id === y ? { ...z, ...T } : z);
18097
+ this.layerList = this.layerList.map((M) => M.id === y ? { ...M, ...T } : M);
18098
18098
  },
18099
18099
  async removeLayer(y, T = this.map) {
18100
- await T.getStyle().layers.forEach(async (z) => {
18101
- z.source === y && await T.removeLayer(z.id);
18100
+ await T.getStyle().layers.forEach(async (M) => {
18101
+ M.source === y && await T.removeLayer(M.id);
18102
18102
  }), T.getSource(y) && await T.removeSource(y);
18103
18103
  },
18104
18104
  async setFilter(y, T) {
18105
- const z = this.layerList.find((N) => N.id === y);
18105
+ const M = this.layerList.find((N) => N.id === y);
18106
18106
  await (await this.map.getSource(y)).setTiles([
18107
- `${window.location.origin}${z.url}${z.url.includes("?") ? "&" : "?"}filter=${T}${z.props ? `&props=${z.props}` : ""}`
18107
+ `${window.location.origin}${M.url}${M.url.includes("?") ? "&" : "?"}filter=${T}${M.props ? `&props=${M.props}` : ""}`
18108
18108
  ]);
18109
18109
  },
18110
18110
  getOrder(y) {
@@ -18115,16 +18115,16 @@ const Wh = {
18115
18115
  y !== this.activeLayer && (this.activeLayer && this.map.setLayoutProperty(this.activeLayer, "visibility", "none"), await this.addLayer(y, { order: 0 }), this.map.setLayoutProperty(y, "visibility", "visible"), this.activeLayer = y);
18116
18116
  },
18117
18117
  async refreshLayer(y, T = this.map) {
18118
- await T.getStyle().layers.forEach((z) => {
18119
- z.source === y && T.removeLayer(z.id);
18118
+ await T.getStyle().layers.forEach((M) => {
18119
+ M.source === y && T.removeLayer(M.id);
18120
18120
  }), await T.removeSource(y), this.setVisible(y);
18121
18121
  }
18122
18122
  }
18123
18123
  }, cn = (y, T) => {
18124
- const z = y.__vccOpts || y;
18124
+ const M = y.__vccOpts || y;
18125
18125
  for (const [D, N] of T)
18126
- z[D] = N;
18127
- return z;
18126
+ M[D] = N;
18127
+ return M;
18128
18128
  }, Vm = {}, Nm = {
18129
18129
  class: "w-48 mx-auto mb-4",
18130
18130
  width: "178",
@@ -18145,8 +18145,8 @@ function op(y, T) {
18145
18145
  };
18146
18146
  }
18147
18147
  const { toString: Zm } = Object.prototype, { getPrototypeOf: Xh } = Object, Sc = /* @__PURE__ */ ((y) => (T) => {
18148
- const z = Zm.call(T);
18149
- return y[z] || (y[z] = z.slice(8, -1).toLowerCase());
18148
+ const M = Zm.call(T);
18149
+ return y[M] || (y[M] = M.slice(8, -1).toLowerCase());
18150
18150
  })(/* @__PURE__ */ Object.create(null)), $r = (y) => (y = y.toLowerCase(), (T) => Sc(T) === y), Tc = (y) => (T) => typeof T === y, { isArray: jo } = Array, al = Tc("undefined");
18151
18151
  function Gm(y) {
18152
18152
  return y !== null && !al(y) && y.constructor !== null && !al(y.constructor) && mr(y.constructor.isBuffer) && y.constructor.isBuffer(y);
@@ -18166,7 +18166,7 @@ const Wm = Tc("string"), mr = Tc("function"), lp = Tc("number"), Ic = (y) => y !
18166
18166
  return y && (typeof FormData == "function" && y instanceof FormData || mr(y.append) && ((T = Sc(y)) === "formdata" || // detect form-data instance
18167
18167
  T === "object" && mr(y.toString) && y.toString() === "[object FormData]"));
18168
18168
  }, ig = $r("URLSearchParams"), [rg, ng, sg, og] = ["ReadableStream", "Request", "Response", "Headers"].map($r), ag = (y) => y.trim ? y.trim() : y.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
18169
- function ll(y, T, { allOwnKeys: z = !1 } = {}) {
18169
+ function ll(y, T, { allOwnKeys: M = !1 } = {}) {
18170
18170
  if (y === null || typeof y > "u")
18171
18171
  return;
18172
18172
  let D, N;
@@ -18174,7 +18174,7 @@ function ll(y, T, { allOwnKeys: z = !1 } = {}) {
18174
18174
  for (D = 0, N = y.length; D < N; D++)
18175
18175
  T.call(null, y[D], D, y);
18176
18176
  else {
18177
- const J = z ? Object.getOwnPropertyNames(y) : Object.keys(y), S = J.length;
18177
+ const J = M ? Object.getOwnPropertyNames(y) : Object.keys(y), S = J.length;
18178
18178
  let c;
18179
18179
  for (D = 0; D < S; D++)
18180
18180
  c = J[D], T.call(null, y[c], c, y);
@@ -18182,52 +18182,52 @@ function ll(y, T, { allOwnKeys: z = !1 } = {}) {
18182
18182
  }
18183
18183
  function cp(y, T) {
18184
18184
  T = T.toLowerCase();
18185
- const z = Object.keys(y);
18186
- let D = z.length, N;
18185
+ const M = Object.keys(y);
18186
+ let D = M.length, N;
18187
18187
  for (; D-- > 0; )
18188
- if (N = z[D], T === N.toLowerCase())
18188
+ if (N = M[D], T === N.toLowerCase())
18189
18189
  return N;
18190
18190
  return null;
18191
18191
  }
18192
18192
  const js = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, hp = (y) => !al(y) && y !== js;
18193
18193
  function jh() {
18194
- const { caseless: y } = hp(this) && this || {}, T = {}, z = (D, N) => {
18194
+ const { caseless: y } = hp(this) && this || {}, T = {}, M = (D, N) => {
18195
18195
  const J = y && cp(T, N) || N;
18196
18196
  gc(T[J]) && gc(D) ? T[J] = jh(T[J], D) : gc(D) ? T[J] = jh({}, D) : jo(D) ? T[J] = D.slice() : T[J] = D;
18197
18197
  };
18198
18198
  for (let D = 0, N = arguments.length; D < N; D++)
18199
- arguments[D] && ll(arguments[D], z);
18199
+ arguments[D] && ll(arguments[D], M);
18200
18200
  return T;
18201
18201
  }
18202
- const lg = (y, T, z, { allOwnKeys: D } = {}) => (ll(T, (N, J) => {
18203
- z && mr(N) ? y[J] = op(N, z) : y[J] = N;
18204
- }, { allOwnKeys: D }), y), cg = (y) => (y.charCodeAt(0) === 65279 && (y = y.slice(1)), y), hg = (y, T, z, D) => {
18202
+ const lg = (y, T, M, { allOwnKeys: D } = {}) => (ll(T, (N, J) => {
18203
+ M && mr(N) ? y[J] = op(N, M) : y[J] = N;
18204
+ }, { allOwnKeys: D }), y), cg = (y) => (y.charCodeAt(0) === 65279 && (y = y.slice(1)), y), hg = (y, T, M, D) => {
18205
18205
  y.prototype = Object.create(T.prototype, D), y.prototype.constructor = y, Object.defineProperty(y, "super", {
18206
18206
  value: T.prototype
18207
- }), z && Object.assign(y.prototype, z);
18208
- }, ug = (y, T, z, D) => {
18207
+ }), M && Object.assign(y.prototype, M);
18208
+ }, ug = (y, T, M, D) => {
18209
18209
  let N, J, S;
18210
18210
  const c = {};
18211
18211
  if (T = T || {}, y == null) return T;
18212
18212
  do {
18213
18213
  for (N = Object.getOwnPropertyNames(y), J = N.length; J-- > 0; )
18214
18214
  S = N[J], (!D || D(S, y, T)) && !c[S] && (T[S] = y[S], c[S] = !0);
18215
- y = z !== !1 && Xh(y);
18216
- } while (y && (!z || z(y, T)) && y !== Object.prototype);
18215
+ y = M !== !1 && Xh(y);
18216
+ } while (y && (!M || M(y, T)) && y !== Object.prototype);
18217
18217
  return T;
18218
- }, dg = (y, T, z) => {
18219
- y = String(y), (z === void 0 || z > y.length) && (z = y.length), z -= T.length;
18220
- const D = y.indexOf(T, z);
18221
- return D !== -1 && D === z;
18218
+ }, dg = (y, T, M) => {
18219
+ y = String(y), (M === void 0 || M > y.length) && (M = y.length), M -= T.length;
18220
+ const D = y.indexOf(T, M);
18221
+ return D !== -1 && D === M;
18222
18222
  }, pg = (y) => {
18223
18223
  if (!y) return null;
18224
18224
  if (jo(y)) return y;
18225
18225
  let T = y.length;
18226
18226
  if (!lp(T)) return null;
18227
- const z = new Array(T);
18227
+ const M = new Array(T);
18228
18228
  for (; T-- > 0; )
18229
- z[T] = y[T];
18230
- return z;
18229
+ M[T] = y[T];
18230
+ return M;
18231
18231
  }, fg = /* @__PURE__ */ ((y) => (T) => y && T instanceof y)(typeof Uint8Array < "u" && Xh(Uint8Array)), mg = (y, T) => {
18232
18232
  const D = (y && y[Symbol.iterator]).call(y);
18233
18233
  let N;
@@ -18236,61 +18236,61 @@ const lg = (y, T, z, { allOwnKeys: D } = {}) => (ll(T, (N, J) => {
18236
18236
  T.call(y, J[0], J[1]);
18237
18237
  }
18238
18238
  }, gg = (y, T) => {
18239
- let z;
18239
+ let M;
18240
18240
  const D = [];
18241
- for (; (z = y.exec(T)) !== null; )
18242
- D.push(z);
18241
+ for (; (M = y.exec(T)) !== null; )
18242
+ D.push(M);
18243
18243
  return D;
18244
18244
  }, _g = $r("HTMLFormElement"), yg = (y) => y.toLowerCase().replace(
18245
18245
  /[-_\s]([a-z\d])(\w*)/g,
18246
- function(z, D, N) {
18246
+ function(M, D, N) {
18247
18247
  return D.toUpperCase() + N;
18248
18248
  }
18249
- ), jd = (({ hasOwnProperty: y }) => (T, z) => y.call(T, z))(Object.prototype), xg = $r("RegExp"), up = (y, T) => {
18250
- const z = Object.getOwnPropertyDescriptors(y), D = {};
18251
- ll(z, (N, J) => {
18249
+ ), jd = (({ hasOwnProperty: y }) => (T, M) => y.call(T, M))(Object.prototype), xg = $r("RegExp"), up = (y, T) => {
18250
+ const M = Object.getOwnPropertyDescriptors(y), D = {};
18251
+ ll(M, (N, J) => {
18252
18252
  let S;
18253
18253
  (S = T(N, J, y)) !== !1 && (D[J] = S || N);
18254
18254
  }), Object.defineProperties(y, D);
18255
18255
  }, vg = (y) => {
18256
- up(y, (T, z) => {
18257
- if (mr(y) && ["arguments", "caller", "callee"].indexOf(z) !== -1)
18256
+ up(y, (T, M) => {
18257
+ if (mr(y) && ["arguments", "caller", "callee"].indexOf(M) !== -1)
18258
18258
  return !1;
18259
- const D = y[z];
18259
+ const D = y[M];
18260
18260
  if (mr(D)) {
18261
18261
  if (T.enumerable = !1, "writable" in T) {
18262
18262
  T.writable = !1;
18263
18263
  return;
18264
18264
  }
18265
18265
  T.set || (T.set = () => {
18266
- throw Error("Can not rewrite read-only method '" + z + "'");
18266
+ throw Error("Can not rewrite read-only method '" + M + "'");
18267
18267
  });
18268
18268
  }
18269
18269
  });
18270
18270
  }, bg = (y, T) => {
18271
- const z = {}, D = (N) => {
18271
+ const M = {}, D = (N) => {
18272
18272
  N.forEach((J) => {
18273
- z[J] = !0;
18273
+ M[J] = !0;
18274
18274
  });
18275
18275
  };
18276
- return jo(y) ? D(y) : D(String(y).split(T)), z;
18276
+ return jo(y) ? D(y) : D(String(y).split(T)), M;
18277
18277
  }, wg = () => {
18278
18278
  }, Sg = (y, T) => y != null && Number.isFinite(y = +y) ? y : T, Fh = "abcdefghijklmnopqrstuvwxyz", Ud = "0123456789", dp = {
18279
18279
  DIGIT: Ud,
18280
18280
  ALPHA: Fh,
18281
18281
  ALPHA_DIGIT: Fh + Fh.toUpperCase() + Ud
18282
18282
  }, Tg = (y = 16, T = dp.ALPHA_DIGIT) => {
18283
- let z = "";
18283
+ let M = "";
18284
18284
  const { length: D } = T;
18285
18285
  for (; y--; )
18286
- z += T[Math.random() * D | 0];
18287
- return z;
18286
+ M += T[Math.random() * D | 0];
18287
+ return M;
18288
18288
  };
18289
18289
  function Ig(y) {
18290
18290
  return !!(y && mr(y.append) && y[Symbol.toStringTag] === "FormData" && y[Symbol.iterator]);
18291
18291
  }
18292
18292
  const Pg = (y) => {
18293
- const T = new Array(10), z = (D, N) => {
18293
+ const T = new Array(10), M = (D, N) => {
18294
18294
  if (Ic(D)) {
18295
18295
  if (T.indexOf(D) >= 0)
18296
18296
  return;
@@ -18298,19 +18298,19 @@ const Pg = (y) => {
18298
18298
  T[N] = D;
18299
18299
  const J = jo(D) ? [] : {};
18300
18300
  return ll(D, (S, c) => {
18301
- const ye = z(S, N + 1);
18301
+ const ye = M(S, N + 1);
18302
18302
  !al(ye) && (J[c] = ye);
18303
18303
  }), T[N] = void 0, J;
18304
18304
  }
18305
18305
  }
18306
18306
  return D;
18307
18307
  };
18308
- return z(y, 0);
18309
- }, Ag = $r("AsyncFunction"), Cg = (y) => y && (Ic(y) || mr(y)) && mr(y.then) && mr(y.catch), pp = ((y, T) => y ? setImmediate : T ? ((z, D) => (js.addEventListener("message", ({ source: N, data: J }) => {
18310
- N === js && J === z && D.length && D.shift()();
18308
+ return M(y, 0);
18309
+ }, Ag = $r("AsyncFunction"), Cg = (y) => y && (Ic(y) || mr(y)) && mr(y.then) && mr(y.catch), pp = ((y, T) => y ? setImmediate : T ? ((M, D) => (js.addEventListener("message", ({ source: N, data: J }) => {
18310
+ N === js && J === M && D.length && D.shift()();
18311
18311
  }, !1), (N) => {
18312
- D.push(N), js.postMessage(z, "*");
18313
- }))(`axios@${Math.random()}`, []) : (z) => setTimeout(z))(
18312
+ D.push(N), js.postMessage(M, "*");
18313
+ }))(`axios@${Math.random()}`, []) : (M) => setTimeout(M))(
18314
18314
  typeof setImmediate == "function",
18315
18315
  mr(js.postMessage)
18316
18316
  ), kg = typeof queueMicrotask < "u" ? queueMicrotask.bind(js) : typeof process < "u" && process.nextTick || pp, pe = {
@@ -18373,8 +18373,8 @@ const Pg = (y) => {
18373
18373
  setImmediate: pp,
18374
18374
  asap: kg
18375
18375
  };
18376
- function ht(y, T, z, D, N) {
18377
- Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = y, this.name = "AxiosError", T && (this.code = T), z && (this.config = z), D && (this.request = D), N && (this.response = N);
18376
+ function ht(y, T, M, D, N) {
18377
+ Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = y, this.name = "AxiosError", T && (this.code = T), M && (this.config = M), D && (this.request = D), N && (this.response = N);
18378
18378
  }
18379
18379
  pe.inherits(ht, Error, {
18380
18380
  toJSON: function() {
@@ -18417,11 +18417,11 @@ const fp = ht.prototype, mp = {};
18417
18417
  });
18418
18418
  Object.defineProperties(ht, mp);
18419
18419
  Object.defineProperty(fp, "isAxiosError", { value: !0 });
18420
- ht.from = (y, T, z, D, N, J) => {
18420
+ ht.from = (y, T, M, D, N, J) => {
18421
18421
  const S = Object.create(fp);
18422
18422
  return pe.toFlatObject(y, S, function(ye) {
18423
18423
  return ye !== Error.prototype;
18424
- }, (c) => c !== "isAxiosError"), ht.call(S, y.message, T, z, D, N), S.cause = y, S.name = y.name, J && Object.assign(S, J), S;
18424
+ }, (c) => c !== "isAxiosError"), ht.call(S, y.message, T, M, D, N), S.cause = y, S.name = y.name, J && Object.assign(S, J), S;
18425
18425
  };
18426
18426
  const Eg = null;
18427
18427
  function Uh(y) {
@@ -18430,10 +18430,10 @@ function Uh(y) {
18430
18430
  function gp(y) {
18431
18431
  return pe.endsWith(y, "[]") ? y.slice(0, -2) : y;
18432
18432
  }
18433
- function $d(y, T, z) {
18433
+ function $d(y, T, M) {
18434
18434
  return y ? y.concat(T).map(function(N, J) {
18435
- return N = gp(N), !z && J ? "[" + N + "]" : N;
18436
- }).join(z ? "." : "") : T;
18435
+ return N = gp(N), !M && J ? "[" + N + "]" : N;
18436
+ }).join(M ? "." : "") : T;
18437
18437
  }
18438
18438
  function Mg(y) {
18439
18439
  return pe.isArray(y) && !y.some(Uh);
@@ -18441,17 +18441,17 @@ function Mg(y) {
18441
18441
  const zg = pe.toFlatObject(pe, {}, null, function(T) {
18442
18442
  return /^is[A-Z]/.test(T);
18443
18443
  });
18444
- function Pc(y, T, z) {
18444
+ function Pc(y, T, M) {
18445
18445
  if (!pe.isObject(y))
18446
18446
  throw new TypeError("target must be an object");
18447
- T = T || new FormData(), z = pe.toFlatObject(z, {
18447
+ T = T || new FormData(), M = pe.toFlatObject(M, {
18448
18448
  metaTokens: !0,
18449
18449
  dots: !1,
18450
18450
  indexes: !1
18451
18451
  }, !1, function(Je, Fe) {
18452
18452
  return !pe.isUndefined(Fe[Je]);
18453
18453
  });
18454
- const D = z.metaTokens, N = z.visitor || ve, J = z.dots, S = z.indexes, ye = (z.Blob || typeof Blob < "u" && Blob) && pe.isSpecCompliantForm(T);
18454
+ const D = M.metaTokens, N = M.visitor || ve, J = M.dots, S = M.indexes, ye = (M.Blob || typeof Blob < "u" && Blob) && pe.isSpecCompliantForm(T);
18455
18455
  if (!pe.isFunction(N))
18456
18456
  throw new TypeError("visitor must be a function");
18457
18457
  function _e(Ne) {
@@ -18520,26 +18520,26 @@ function Jh(y, T) {
18520
18520
  this._pairs = [], y && Pc(y, this, T);
18521
18521
  }
18522
18522
  const _p = Jh.prototype;
18523
- _p.append = function(T, z) {
18524
- this._pairs.push([T, z]);
18523
+ _p.append = function(T, M) {
18524
+ this._pairs.push([T, M]);
18525
18525
  };
18526
18526
  _p.toString = function(T) {
18527
- const z = T ? function(D) {
18527
+ const M = T ? function(D) {
18528
18528
  return T.call(this, D, qd);
18529
18529
  } : qd;
18530
18530
  return this._pairs.map(function(N) {
18531
- return z(N[0]) + "=" + z(N[1]);
18531
+ return M(N[0]) + "=" + M(N[1]);
18532
18532
  }, "").join("&");
18533
18533
  };
18534
18534
  function Dg(y) {
18535
18535
  return encodeURIComponent(y).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
18536
18536
  }
18537
- function yp(y, T, z) {
18537
+ function yp(y, T, M) {
18538
18538
  if (!T)
18539
18539
  return y;
18540
- const D = z && z.encode || Dg, N = z && z.serialize;
18540
+ const D = M && M.encode || Dg, N = M && M.serialize;
18541
18541
  let J;
18542
- if (N ? J = N(T, z) : J = pe.isURLSearchParams(T) ? T.toString() : new Jh(T, z).toString(D), J) {
18542
+ if (N ? J = N(T, M) : J = pe.isURLSearchParams(T) ? T.toString() : new Jh(T, M).toString(D), J) {
18543
18543
  const S = y.indexOf("#");
18544
18544
  S !== -1 && (y = y.slice(0, S)), y += (y.indexOf("?") === -1 ? "?" : "&") + J;
18545
18545
  }
@@ -18557,10 +18557,10 @@ class Zd {
18557
18557
  *
18558
18558
  * @return {Number} An ID used to remove interceptor later
18559
18559
  */
18560
- use(T, z, D) {
18560
+ use(T, M, D) {
18561
18561
  return this.handlers.push({
18562
18562
  fulfilled: T,
18563
- rejected: z,
18563
+ rejected: M,
18564
18564
  synchronous: D ? D.synchronous : !1,
18565
18565
  runWhen: D ? D.runWhen : null
18566
18566
  }), this.handlers.length - 1;
@@ -18624,8 +18624,8 @@ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Ng
18624
18624
  };
18625
18625
  function Ug(y, T) {
18626
18626
  return Pc(y, new Ur.classes.URLSearchParams(), Object.assign({
18627
- visitor: function(z, D, N, J) {
18628
- return Ur.isNode && pe.isBuffer(z) ? (this.append(D, z.toString("base64")), !1) : J.defaultVisitor.apply(this, arguments);
18627
+ visitor: function(M, D, N, J) {
18628
+ return Ur.isNode && pe.isBuffer(M) ? (this.append(D, M.toString("base64")), !1) : J.defaultVisitor.apply(this, arguments);
18629
18629
  }
18630
18630
  }, T));
18631
18631
  }
@@ -18633,30 +18633,30 @@ function $g(y) {
18633
18633
  return pe.matchAll(/\w+|\[(\w*)]/g, y).map((T) => T[0] === "[]" ? "" : T[1] || T[0]);
18634
18634
  }
18635
18635
  function qg(y) {
18636
- const T = {}, z = Object.keys(y);
18636
+ const T = {}, M = Object.keys(y);
18637
18637
  let D;
18638
- const N = z.length;
18638
+ const N = M.length;
18639
18639
  let J;
18640
18640
  for (D = 0; D < N; D++)
18641
- J = z[D], T[J] = y[J];
18641
+ J = M[D], T[J] = y[J];
18642
18642
  return T;
18643
18643
  }
18644
18644
  function vp(y) {
18645
- function T(z, D, N, J) {
18646
- let S = z[J++];
18645
+ function T(M, D, N, J) {
18646
+ let S = M[J++];
18647
18647
  if (S === "__proto__") return !0;
18648
- const c = Number.isFinite(+S), ye = J >= z.length;
18649
- return S = !S && pe.isArray(N) ? N.length : S, ye ? (pe.hasOwnProp(N, S) ? N[S] = [N[S], D] : N[S] = D, !c) : ((!N[S] || !pe.isObject(N[S])) && (N[S] = []), T(z, D, N[S], J) && pe.isArray(N[S]) && (N[S] = qg(N[S])), !c);
18648
+ const c = Number.isFinite(+S), ye = J >= M.length;
18649
+ return S = !S && pe.isArray(N) ? N.length : S, ye ? (pe.hasOwnProp(N, S) ? N[S] = [N[S], D] : N[S] = D, !c) : ((!N[S] || !pe.isObject(N[S])) && (N[S] = []), T(M, D, N[S], J) && pe.isArray(N[S]) && (N[S] = qg(N[S])), !c);
18650
18650
  }
18651
18651
  if (pe.isFormData(y) && pe.isFunction(y.entries)) {
18652
- const z = {};
18652
+ const M = {};
18653
18653
  return pe.forEachEntry(y, (D, N) => {
18654
- T($g(D), N, z, 0);
18655
- }), z;
18654
+ T($g(D), N, M, 0);
18655
+ }), M;
18656
18656
  }
18657
18657
  return null;
18658
18658
  }
18659
- function Zg(y, T, z) {
18659
+ function Zg(y, T, M) {
18660
18660
  if (pe.isString(y))
18661
18661
  try {
18662
18662
  return (T || JSON.parse)(y), pe.trim(y);
@@ -18664,13 +18664,13 @@ function Zg(y, T, z) {
18664
18664
  if (D.name !== "SyntaxError")
18665
18665
  throw D;
18666
18666
  }
18667
- return (z || JSON.stringify)(y);
18667
+ return (M || JSON.stringify)(y);
18668
18668
  }
18669
18669
  const cl = {
18670
18670
  transitional: xp,
18671
18671
  adapter: ["xhr", "http", "fetch"],
18672
- transformRequest: [function(T, z) {
18673
- const D = z.getContentType() || "", N = D.indexOf("application/json") > -1, J = pe.isObject(T);
18672
+ transformRequest: [function(T, M) {
18673
+ const D = M.getContentType() || "", N = D.indexOf("application/json") > -1, J = pe.isObject(T);
18674
18674
  if (J && pe.isHTMLForm(T) && (T = new FormData(T)), pe.isFormData(T))
18675
18675
  return N ? JSON.stringify(vp(T)) : T;
18676
18676
  if (pe.isArrayBuffer(T) || pe.isBuffer(T) || pe.isStream(T) || pe.isFile(T) || pe.isBlob(T) || pe.isReadableStream(T))
@@ -18678,7 +18678,7 @@ const cl = {
18678
18678
  if (pe.isArrayBufferView(T))
18679
18679
  return T.buffer;
18680
18680
  if (pe.isURLSearchParams(T))
18681
- return z.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), T.toString();
18681
+ return M.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), T.toString();
18682
18682
  let c;
18683
18683
  if (J) {
18684
18684
  if (D.indexOf("application/x-www-form-urlencoded") > -1)
@@ -18692,14 +18692,14 @@ const cl = {
18692
18692
  );
18693
18693
  }
18694
18694
  }
18695
- return J || N ? (z.setContentType("application/json", !1), Zg(T)) : T;
18695
+ return J || N ? (M.setContentType("application/json", !1), Zg(T)) : T;
18696
18696
  }],
18697
18697
  transformResponse: [function(T) {
18698
- const z = this.transitional || cl.transitional, D = z && z.forcedJSONParsing, N = this.responseType === "json";
18698
+ const M = this.transitional || cl.transitional, D = M && M.forcedJSONParsing, N = this.responseType === "json";
18699
18699
  if (pe.isResponse(T) || pe.isReadableStream(T))
18700
18700
  return T;
18701
18701
  if (T && pe.isString(T) && (D && !this.responseType || N)) {
18702
- const S = !(z && z.silentJSONParsing) && N;
18702
+ const S = !(M && M.silentJSONParsing) && N;
18703
18703
  try {
18704
18704
  return JSON.parse(T);
18705
18705
  } catch (c) {
@@ -18755,10 +18755,10 @@ const Gg = pe.toObjectSet([
18755
18755
  "user-agent"
18756
18756
  ]), Hg = (y) => {
18757
18757
  const T = {};
18758
- let z, D, N;
18758
+ let M, D, N;
18759
18759
  return y && y.split(`
18760
18760
  `).forEach(function(S) {
18761
- N = S.indexOf(":"), z = S.substring(0, N).trim().toLowerCase(), D = S.substring(N + 1).trim(), !(!z || T[z] && Gg[z]) && (z === "set-cookie" ? T[z] ? T[z].push(D) : T[z] = [D] : T[z] = T[z] ? T[z] + ", " + D : D);
18761
+ N = S.indexOf(":"), M = S.substring(0, N).trim().toLowerCase(), D = S.substring(N + 1).trim(), !(!M || T[M] && Gg[M]) && (M === "set-cookie" ? T[M] ? T[M].push(D) : T[M] = [D] : T[M] = T[M] ? T[M] + ", " + D : D);
18762
18762
  }), T;
18763
18763
  }, Gd = Symbol("internals");
18764
18764
  function nl(y) {
@@ -18768,17 +18768,17 @@ function _c(y) {
18768
18768
  return y === !1 || y == null ? y : pe.isArray(y) ? y.map(_c) : String(y);
18769
18769
  }
18770
18770
  function Wg(y) {
18771
- const T = /* @__PURE__ */ Object.create(null), z = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
18771
+ const T = /* @__PURE__ */ Object.create(null), M = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
18772
18772
  let D;
18773
- for (; D = z.exec(y); )
18773
+ for (; D = M.exec(y); )
18774
18774
  T[D[1]] = D[2];
18775
18775
  return T;
18776
18776
  }
18777
18777
  const Xg = (y) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(y.trim());
18778
- function Bh(y, T, z, D, N) {
18778
+ function Bh(y, T, M, D, N) {
18779
18779
  if (pe.isFunction(D))
18780
- return D.call(this, T, z);
18781
- if (N && (T = z), !!pe.isString(T)) {
18780
+ return D.call(this, T, M);
18781
+ if (N && (T = M), !!pe.isString(T)) {
18782
18782
  if (pe.isString(D))
18783
18783
  return T.indexOf(D) !== -1;
18784
18784
  if (pe.isRegExp(D))
@@ -18786,12 +18786,12 @@ function Bh(y, T, z, D, N) {
18786
18786
  }
18787
18787
  }
18788
18788
  function Jg(y) {
18789
- return y.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (T, z, D) => z.toUpperCase() + D);
18789
+ return y.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (T, M, D) => M.toUpperCase() + D);
18790
18790
  }
18791
18791
  function Kg(y, T) {
18792
- const z = pe.toCamelCase(" " + T);
18792
+ const M = pe.toCamelCase(" " + T);
18793
18793
  ["get", "set", "has"].forEach((D) => {
18794
- Object.defineProperty(y, D + z, {
18794
+ Object.defineProperty(y, D + M, {
18795
18795
  value: function(N, J, S) {
18796
18796
  return this[D].call(this, T, N, J, S);
18797
18797
  },
@@ -18803,7 +18803,7 @@ class Qi {
18803
18803
  constructor(T) {
18804
18804
  T && this.set(T);
18805
18805
  }
18806
- set(T, z, D) {
18806
+ set(T, M, D) {
18807
18807
  const N = this;
18808
18808
  function J(c, ye, _e) {
18809
18809
  const ve = nl(ye);
@@ -18814,86 +18814,86 @@ class Qi {
18814
18814
  }
18815
18815
  const S = (c, ye) => pe.forEach(c, (_e, ve) => J(_e, ve, ye));
18816
18816
  if (pe.isPlainObject(T) || T instanceof this.constructor)
18817
- S(T, z);
18817
+ S(T, M);
18818
18818
  else if (pe.isString(T) && (T = T.trim()) && !Xg(T))
18819
- S(Hg(T), z);
18819
+ S(Hg(T), M);
18820
18820
  else if (pe.isHeaders(T))
18821
18821
  for (const [c, ye] of T.entries())
18822
18822
  J(ye, c, D);
18823
18823
  else
18824
- T != null && J(z, T, D);
18824
+ T != null && J(M, T, D);
18825
18825
  return this;
18826
18826
  }
18827
- get(T, z) {
18827
+ get(T, M) {
18828
18828
  if (T = nl(T), T) {
18829
18829
  const D = pe.findKey(this, T);
18830
18830
  if (D) {
18831
18831
  const N = this[D];
18832
- if (!z)
18832
+ if (!M)
18833
18833
  return N;
18834
- if (z === !0)
18834
+ if (M === !0)
18835
18835
  return Wg(N);
18836
- if (pe.isFunction(z))
18837
- return z.call(this, N, D);
18838
- if (pe.isRegExp(z))
18839
- return z.exec(N);
18836
+ if (pe.isFunction(M))
18837
+ return M.call(this, N, D);
18838
+ if (pe.isRegExp(M))
18839
+ return M.exec(N);
18840
18840
  throw new TypeError("parser must be boolean|regexp|function");
18841
18841
  }
18842
18842
  }
18843
18843
  }
18844
- has(T, z) {
18844
+ has(T, M) {
18845
18845
  if (T = nl(T), T) {
18846
18846
  const D = pe.findKey(this, T);
18847
- return !!(D && this[D] !== void 0 && (!z || Bh(this, this[D], D, z)));
18847
+ return !!(D && this[D] !== void 0 && (!M || Bh(this, this[D], D, M)));
18848
18848
  }
18849
18849
  return !1;
18850
18850
  }
18851
- delete(T, z) {
18851
+ delete(T, M) {
18852
18852
  const D = this;
18853
18853
  let N = !1;
18854
18854
  function J(S) {
18855
18855
  if (S = nl(S), S) {
18856
18856
  const c = pe.findKey(D, S);
18857
- c && (!z || Bh(D, D[c], c, z)) && (delete D[c], N = !0);
18857
+ c && (!M || Bh(D, D[c], c, M)) && (delete D[c], N = !0);
18858
18858
  }
18859
18859
  }
18860
18860
  return pe.isArray(T) ? T.forEach(J) : J(T), N;
18861
18861
  }
18862
18862
  clear(T) {
18863
- const z = Object.keys(this);
18864
- let D = z.length, N = !1;
18863
+ const M = Object.keys(this);
18864
+ let D = M.length, N = !1;
18865
18865
  for (; D--; ) {
18866
- const J = z[D];
18866
+ const J = M[D];
18867
18867
  (!T || Bh(this, this[J], J, T, !0)) && (delete this[J], N = !0);
18868
18868
  }
18869
18869
  return N;
18870
18870
  }
18871
18871
  normalize(T) {
18872
- const z = this, D = {};
18872
+ const M = this, D = {};
18873
18873
  return pe.forEach(this, (N, J) => {
18874
18874
  const S = pe.findKey(D, J);
18875
18875
  if (S) {
18876
- z[S] = _c(N), delete z[J];
18876
+ M[S] = _c(N), delete M[J];
18877
18877
  return;
18878
18878
  }
18879
18879
  const c = T ? Jg(J) : String(J).trim();
18880
- c !== J && delete z[J], z[c] = _c(N), D[c] = !0;
18880
+ c !== J && delete M[J], M[c] = _c(N), D[c] = !0;
18881
18881
  }), this;
18882
18882
  }
18883
18883
  concat(...T) {
18884
18884
  return this.constructor.concat(this, ...T);
18885
18885
  }
18886
18886
  toJSON(T) {
18887
- const z = /* @__PURE__ */ Object.create(null);
18887
+ const M = /* @__PURE__ */ Object.create(null);
18888
18888
  return pe.forEach(this, (D, N) => {
18889
- D != null && D !== !1 && (z[N] = T && pe.isArray(D) ? D.join(", ") : D);
18890
- }), z;
18889
+ D != null && D !== !1 && (M[N] = T && pe.isArray(D) ? D.join(", ") : D);
18890
+ }), M;
18891
18891
  }
18892
18892
  [Symbol.iterator]() {
18893
18893
  return Object.entries(this.toJSON())[Symbol.iterator]();
18894
18894
  }
18895
18895
  toString() {
18896
- return Object.entries(this.toJSON()).map(([T, z]) => T + ": " + z).join(`
18896
+ return Object.entries(this.toJSON()).map(([T, M]) => T + ": " + M).join(`
18897
18897
  `);
18898
18898
  }
18899
18899
  get [Symbol.toStringTag]() {
@@ -18902,9 +18902,9 @@ class Qi {
18902
18902
  static from(T) {
18903
18903
  return T instanceof this ? T : new this(T);
18904
18904
  }
18905
- static concat(T, ...z) {
18905
+ static concat(T, ...M) {
18906
18906
  const D = new this(T);
18907
- return z.forEach((N) => D.set(N)), D;
18907
+ return M.forEach((N) => D.set(N)), D;
18908
18908
  }
18909
18909
  static accessor(T) {
18910
18910
  const D = (this[Gd] = this[Gd] = {
@@ -18919,39 +18919,39 @@ class Qi {
18919
18919
  }
18920
18920
  Qi.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
18921
18921
  pe.reduceDescriptors(Qi.prototype, ({ value: y }, T) => {
18922
- let z = T[0].toUpperCase() + T.slice(1);
18922
+ let M = T[0].toUpperCase() + T.slice(1);
18923
18923
  return {
18924
18924
  get: () => y,
18925
18925
  set(D) {
18926
- this[z] = D;
18926
+ this[M] = D;
18927
18927
  }
18928
18928
  };
18929
18929
  });
18930
18930
  pe.freezeMethods(Qi);
18931
18931
  function Oh(y, T) {
18932
- const z = this || cl, D = T || z, N = Qi.from(D.headers);
18932
+ const M = this || cl, D = T || M, N = Qi.from(D.headers);
18933
18933
  let J = D.data;
18934
18934
  return pe.forEach(y, function(c) {
18935
- J = c.call(z, J, N.normalize(), T ? T.status : void 0);
18935
+ J = c.call(M, J, N.normalize(), T ? T.status : void 0);
18936
18936
  }), N.normalize(), J;
18937
18937
  }
18938
18938
  function bp(y) {
18939
18939
  return !!(y && y.__CANCEL__);
18940
18940
  }
18941
- function Uo(y, T, z) {
18942
- ht.call(this, y ?? "canceled", ht.ERR_CANCELED, T, z), this.name = "CanceledError";
18941
+ function Uo(y, T, M) {
18942
+ ht.call(this, y ?? "canceled", ht.ERR_CANCELED, T, M), this.name = "CanceledError";
18943
18943
  }
18944
18944
  pe.inherits(Uo, ht, {
18945
18945
  __CANCEL__: !0
18946
18946
  });
18947
- function wp(y, T, z) {
18948
- const D = z.config.validateStatus;
18949
- !z.status || !D || D(z.status) ? y(z) : T(new ht(
18950
- "Request failed with status code " + z.status,
18951
- [ht.ERR_BAD_REQUEST, ht.ERR_BAD_RESPONSE][Math.floor(z.status / 100) - 4],
18952
- z.config,
18953
- z.request,
18954
- z
18947
+ function wp(y, T, M) {
18948
+ const D = M.config.validateStatus;
18949
+ !M.status || !D || D(M.status) ? y(M) : T(new ht(
18950
+ "Request failed with status code " + M.status,
18951
+ [ht.ERR_BAD_REQUEST, ht.ERR_BAD_RESPONSE][Math.floor(M.status / 100) - 4],
18952
+ M.config,
18953
+ M.request,
18954
+ M
18955
18955
  ));
18956
18956
  }
18957
18957
  function Yg(y) {
@@ -18960,14 +18960,14 @@ function Yg(y) {
18960
18960
  }
18961
18961
  function Qg(y, T) {
18962
18962
  y = y || 10;
18963
- const z = new Array(y), D = new Array(y);
18963
+ const M = new Array(y), D = new Array(y);
18964
18964
  let N = 0, J = 0, S;
18965
18965
  return T = T !== void 0 ? T : 1e3, function(ye) {
18966
18966
  const _e = Date.now(), ve = D[J];
18967
- S || (S = _e), z[N] = ye, D[N] = _e;
18967
+ S || (S = _e), M[N] = ye, D[N] = _e;
18968
18968
  let ae = J, oe = 0;
18969
18969
  for (; ae !== N; )
18970
- oe += z[ae++], ae = ae % y;
18970
+ oe += M[ae++], ae = ae % y;
18971
18971
  if (N = (N + 1) % y, N === J && (J = (J + 1) % y), _e - S < T)
18972
18972
  return;
18973
18973
  const ut = ve && _e - ve;
@@ -18975,18 +18975,18 @@ function Qg(y, T) {
18975
18975
  };
18976
18976
  }
18977
18977
  function e_(y, T) {
18978
- let z = 0, D = 1e3 / T, N, J;
18978
+ let M = 0, D = 1e3 / T, N, J;
18979
18979
  const S = (_e, ve = Date.now()) => {
18980
- z = ve, N = null, J && (clearTimeout(J), J = null), y.apply(null, _e);
18980
+ M = ve, N = null, J && (clearTimeout(J), J = null), y.apply(null, _e);
18981
18981
  };
18982
18982
  return [(..._e) => {
18983
- const ve = Date.now(), ae = ve - z;
18983
+ const ve = Date.now(), ae = ve - M;
18984
18984
  ae >= D ? S(_e, ve) : (N = _e, J || (J = setTimeout(() => {
18985
18985
  J = null, S(N);
18986
18986
  }, D - ae)));
18987
18987
  }, () => N && S(N)];
18988
18988
  }
18989
- const bc = (y, T, z = 3) => {
18989
+ const bc = (y, T, M = 3) => {
18990
18990
  let D = 0;
18991
18991
  const N = Qg(50, 250);
18992
18992
  return e_((J) => {
@@ -19004,11 +19004,11 @@ const bc = (y, T, z = 3) => {
19004
19004
  [T ? "download" : "upload"]: !0
19005
19005
  };
19006
19006
  y(ae);
19007
- }, z);
19007
+ }, M);
19008
19008
  }, Hd = (y, T) => {
19009
- const z = y != null;
19009
+ const M = y != null;
19010
19010
  return [(D) => T[0]({
19011
- lengthComputable: z,
19011
+ lengthComputable: M,
19012
19012
  total: y,
19013
19013
  loaded: D
19014
19014
  }), T[1]];
@@ -19016,19 +19016,19 @@ const bc = (y, T, z = 3) => {
19016
19016
  // Standard browser envs have full support of the APIs needed to test
19017
19017
  // whether the request URL is of the same origin as current location.
19018
19018
  function() {
19019
- const T = /(msie|trident)/i.test(navigator.userAgent), z = document.createElement("a");
19019
+ const T = /(msie|trident)/i.test(navigator.userAgent), M = document.createElement("a");
19020
19020
  let D;
19021
19021
  function N(J) {
19022
19022
  let S = J;
19023
- return T && (z.setAttribute("href", S), S = z.href), z.setAttribute("href", S), {
19024
- href: z.href,
19025
- protocol: z.protocol ? z.protocol.replace(/:$/, "") : "",
19026
- host: z.host,
19027
- search: z.search ? z.search.replace(/^\?/, "") : "",
19028
- hash: z.hash ? z.hash.replace(/^#/, "") : "",
19029
- hostname: z.hostname,
19030
- port: z.port,
19031
- pathname: z.pathname.charAt(0) === "/" ? z.pathname : "/" + z.pathname
19023
+ return T && (M.setAttribute("href", S), S = M.href), M.setAttribute("href", S), {
19024
+ href: M.href,
19025
+ protocol: M.protocol ? M.protocol.replace(/:$/, "") : "",
19026
+ host: M.host,
19027
+ search: M.search ? M.search.replace(/^\?/, "") : "",
19028
+ hash: M.hash ? M.hash.replace(/^#/, "") : "",
19029
+ hostname: M.hostname,
19030
+ port: M.port,
19031
+ pathname: M.pathname.charAt(0) === "/" ? M.pathname : "/" + M.pathname
19032
19032
  };
19033
19033
  }
19034
19034
  return D = N(window.location.href), function(S) {
@@ -19046,9 +19046,9 @@ const bc = (y, T, z = 3) => {
19046
19046
  ), i_ = Ur.hasStandardBrowserEnv ? (
19047
19047
  // Standard browser envs support document.cookie
19048
19048
  {
19049
- write(y, T, z, D, N, J) {
19049
+ write(y, T, M, D, N, J) {
19050
19050
  const S = [y + "=" + encodeURIComponent(T)];
19051
- pe.isNumber(z) && S.push("expires=" + new Date(z).toGMTString()), pe.isString(D) && S.push("path=" + D), pe.isString(N) && S.push("domain=" + N), J === !0 && S.push("secure"), document.cookie = S.join("; ");
19051
+ pe.isNumber(M) && S.push("expires=" + new Date(M).toGMTString()), pe.isString(D) && S.push("path=" + D), pe.isString(N) && S.push("domain=" + N), J === !0 && S.push("secure"), document.cookie = S.join("; ");
19052
19052
  },
19053
19053
  read(y) {
19054
19054
  const T = document.cookie.match(new RegExp("(^|;\\s*)(" + y + ")=([^;]*)"));
@@ -19082,7 +19082,7 @@ function Sp(y, T) {
19082
19082
  const Xd = (y) => y instanceof Qi ? { ...y } : y;
19083
19083
  function qs(y, T) {
19084
19084
  T = T || {};
19085
- const z = {};
19085
+ const M = {};
19086
19086
  function D(_e, ve, ae) {
19087
19087
  return pe.isPlainObject(_e) && pe.isPlainObject(ve) ? pe.merge.call({ caseless: ae }, _e, ve) : pe.isPlainObject(ve) ? pe.merge({}, ve) : pe.isArray(ve) ? ve.slice() : ve;
19088
19088
  }
@@ -19141,18 +19141,18 @@ function qs(y, T) {
19141
19141
  };
19142
19142
  return pe.forEach(Object.keys(Object.assign({}, y, T)), function(ve) {
19143
19143
  const ae = ye[ve] || N, oe = ae(y[ve], T[ve], ve);
19144
- pe.isUndefined(oe) && ae !== c || (z[ve] = oe);
19145
- }), z;
19144
+ pe.isUndefined(oe) && ae !== c || (M[ve] = oe);
19145
+ }), M;
19146
19146
  }
19147
19147
  const Tp = (y) => {
19148
19148
  const T = qs({}, y);
19149
- let { data: z, withXSRFToken: D, xsrfHeaderName: N, xsrfCookieName: J, headers: S, auth: c } = T;
19149
+ let { data: M, withXSRFToken: D, xsrfHeaderName: N, xsrfCookieName: J, headers: S, auth: c } = T;
19150
19150
  T.headers = S = Qi.from(S), T.url = yp(Sp(T.baseURL, T.url), y.params, y.paramsSerializer), c && S.set(
19151
19151
  "Authorization",
19152
19152
  "Basic " + btoa((c.username || "") + ":" + (c.password ? unescape(encodeURIComponent(c.password)) : ""))
19153
19153
  );
19154
19154
  let ye;
19155
- if (pe.isFormData(z)) {
19155
+ if (pe.isFormData(M)) {
19156
19156
  if (Ur.hasStandardBrowserEnv || Ur.hasStandardBrowserWebWorkerEnv)
19157
19157
  S.setContentType(void 0);
19158
19158
  else if ((ye = S.getContentType()) !== !1) {
@@ -19166,7 +19166,7 @@ const Tp = (y) => {
19166
19166
  }
19167
19167
  return T;
19168
19168
  }, s_ = typeof XMLHttpRequest < "u", o_ = s_ && function(y) {
19169
- return new Promise(function(z, D) {
19169
+ return new Promise(function(M, D) {
19170
19170
  const N = Tp(y);
19171
19171
  let J = N.data;
19172
19172
  const S = Qi.from(N.headers).normalize();
@@ -19190,7 +19190,7 @@ const Tp = (y) => {
19190
19190
  request: Fe
19191
19191
  };
19192
19192
  wp(function(Pt) {
19193
- z(Pt), Je();
19193
+ M(Pt), Je();
19194
19194
  }, function(Pt) {
19195
19195
  D(Pt), Je();
19196
19196
  }, yt), Fe = null;
@@ -19223,12 +19223,12 @@ const Tp = (y) => {
19223
19223
  Fe.send(J || null);
19224
19224
  });
19225
19225
  }, a_ = (y, T) => {
19226
- let z = new AbortController(), D;
19226
+ let M = new AbortController(), D;
19227
19227
  const N = function(ye) {
19228
19228
  if (!D) {
19229
19229
  D = !0, S();
19230
19230
  const _e = ye instanceof Error ? ye : this.reason;
19231
- z.abort(_e instanceof ht ? _e : new Uo(_e instanceof Error ? _e.message : _e));
19231
+ M.abort(_e instanceof ht ? _e : new Uo(_e instanceof Error ? _e.message : _e));
19232
19232
  }
19233
19233
  };
19234
19234
  let J = T && setTimeout(() => {
@@ -19240,23 +19240,23 @@ const Tp = (y) => {
19240
19240
  }), y = null);
19241
19241
  };
19242
19242
  y.forEach((ye) => ye && ye.addEventListener && ye.addEventListener("abort", N));
19243
- const { signal: c } = z;
19243
+ const { signal: c } = M;
19244
19244
  return c.unsubscribe = S, [c, () => {
19245
19245
  J && clearTimeout(J), J = null;
19246
19246
  }];
19247
19247
  }, l_ = function* (y, T) {
19248
- let z = y.byteLength;
19249
- if (!T || z < T) {
19248
+ let M = y.byteLength;
19249
+ if (!T || M < T) {
19250
19250
  yield y;
19251
19251
  return;
19252
19252
  }
19253
19253
  let D = 0, N;
19254
- for (; D < z; )
19254
+ for (; D < M; )
19255
19255
  N = D + T, yield y.slice(D, N), D = N;
19256
- }, c_ = async function* (y, T, z) {
19256
+ }, c_ = async function* (y, T, M) {
19257
19257
  for await (const D of y)
19258
- yield* l_(ArrayBuffer.isView(D) ? D : await z(String(D)), T);
19259
- }, Jd = (y, T, z, D, N) => {
19258
+ yield* l_(ArrayBuffer.isView(D) ? D : await M(String(D)), T);
19259
+ }, Jd = (y, T, M, D, N) => {
19260
19260
  const J = c_(y, T, N);
19261
19261
  let S = 0, c, ye = (_e) => {
19262
19262
  c || (c = !0, D && D(_e));
@@ -19270,9 +19270,9 @@ const Tp = (y) => {
19270
19270
  return;
19271
19271
  }
19272
19272
  let oe = ae.byteLength;
19273
- if (z) {
19273
+ if (M) {
19274
19274
  let ut = S += oe;
19275
- z(ut);
19275
+ M(ut);
19276
19276
  }
19277
19277
  _e.enqueue(new Uint8Array(ae));
19278
19278
  } catch (ve) {
@@ -19306,7 +19306,7 @@ const Tp = (y) => {
19306
19306
  };
19307
19307
  Ac && ((y) => {
19308
19308
  ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((T) => {
19309
- !wc[T] && (wc[T] = pe.isFunction(y[T]) ? (z) => z[T]() : (z, D) => {
19309
+ !wc[T] && (wc[T] = pe.isFunction(y[T]) ? (M) => M[T]() : (M, D) => {
19310
19310
  throw new ht(`Response type '${T}' is not supported`, ht.ERR_NOT_SUPPORT, D);
19311
19311
  });
19312
19312
  });
@@ -19323,12 +19323,12 @@ const u_ = async (y) => {
19323
19323
  if (pe.isURLSearchParams(y) && (y = y + ""), pe.isString(y))
19324
19324
  return (await $h(y)).byteLength;
19325
19325
  }, d_ = async (y, T) => {
19326
- const z = pe.toFiniteNumber(y.getContentLength());
19327
- return z ?? u_(T);
19326
+ const M = pe.toFiniteNumber(y.getContentLength());
19327
+ return M ?? u_(T);
19328
19328
  }, p_ = Ac && (async (y) => {
19329
19329
  let {
19330
19330
  url: T,
19331
- method: z,
19331
+ method: M,
19332
19332
  data: D,
19333
19333
  signal: N,
19334
19334
  cancelToken: J,
@@ -19349,7 +19349,7 @@ const u_ = async (y) => {
19349
19349
  };
19350
19350
  let Ke;
19351
19351
  try {
19352
- if (ye && h_ && z !== "get" && z !== "head" && (Ke = await d_(ve, D)) !== 0) {
19352
+ if (ye && h_ && M !== "get" && M !== "head" && (Ke = await d_(ve, D)) !== 0) {
19353
19353
  let Et = new Request(T, {
19354
19354
  method: "POST",
19355
19355
  body: D,
@@ -19366,7 +19366,7 @@ const u_ = async (y) => {
19366
19366
  pe.isString(ae) || (ae = ae ? "include" : "omit"), Fe = new Request(T, {
19367
19367
  ...oe,
19368
19368
  signal: ut,
19369
- method: z.toUpperCase(),
19369
+ method: M.toUpperCase(),
19370
19370
  headers: ve.normalize().toJSON(),
19371
19371
  body: D,
19372
19372
  duplex: "half",
@@ -19428,12 +19428,12 @@ const Yd = (y) => `- ${y}`, f_ = (y) => pe.isFunction(y) || y === null || y ===
19428
19428
  getAdapter: (y) => {
19429
19429
  y = pe.isArray(y) ? y : [y];
19430
19430
  const { length: T } = y;
19431
- let z, D;
19431
+ let M, D;
19432
19432
  const N = {};
19433
19433
  for (let J = 0; J < T; J++) {
19434
- z = y[J];
19434
+ M = y[J];
19435
19435
  let S;
19436
- if (D = z, !f_(z) && (D = Zh[(S = String(z)).toLowerCase()], D === void 0))
19436
+ if (D = M, !f_(M) && (D = Zh[(S = String(M)).toLowerCase()], D === void 0))
19437
19437
  throw new ht(`Unknown adapter '${S}'`);
19438
19438
  if (D)
19439
19439
  break;
@@ -19484,25 +19484,25 @@ const Cp = "1.7.4", Yh = {};
19484
19484
  };
19485
19485
  });
19486
19486
  const ep = {};
19487
- Yh.transitional = function(T, z, D) {
19487
+ Yh.transitional = function(T, M, D) {
19488
19488
  function N(J, S) {
19489
19489
  return "[Axios v" + Cp + "] Transitional option '" + J + "'" + S + (D ? ". " + D : "");
19490
19490
  }
19491
19491
  return (J, S, c) => {
19492
19492
  if (T === !1)
19493
19493
  throw new ht(
19494
- N(S, " has been removed" + (z ? " in " + z : "")),
19494
+ N(S, " has been removed" + (M ? " in " + M : "")),
19495
19495
  ht.ERR_DEPRECATED
19496
19496
  );
19497
- return z && !ep[S] && (ep[S] = !0, console.warn(
19497
+ return M && !ep[S] && (ep[S] = !0, console.warn(
19498
19498
  N(
19499
19499
  S,
19500
- " has been deprecated since v" + z + " and will be removed in the near future"
19500
+ " has been deprecated since v" + M + " and will be removed in the near future"
19501
19501
  )
19502
19502
  )), T ? T(J, S, c) : !0;
19503
19503
  };
19504
19504
  };
19505
- function m_(y, T, z) {
19505
+ function m_(y, T, M) {
19506
19506
  if (typeof y != "object")
19507
19507
  throw new ht("options must be an object", ht.ERR_BAD_OPTION_VALUE);
19508
19508
  const D = Object.keys(y);
@@ -19515,7 +19515,7 @@ function m_(y, T, z) {
19515
19515
  throw new ht("option " + J + " must be " + ye, ht.ERR_BAD_OPTION_VALUE);
19516
19516
  continue;
19517
19517
  }
19518
- if (z !== !0)
19518
+ if (M !== !0)
19519
19519
  throw new ht("Unknown option " + J, ht.ERR_BAD_OPTION);
19520
19520
  }
19521
19521
  }
@@ -19538,9 +19538,9 @@ class Us {
19538
19538
  *
19539
19539
  * @returns {Promise} The Promise to be fulfilled
19540
19540
  */
19541
- async request(T, z) {
19541
+ async request(T, M) {
19542
19542
  try {
19543
- return await this._request(T, z);
19543
+ return await this._request(T, M);
19544
19544
  } catch (D) {
19545
19545
  if (D instanceof Error) {
19546
19546
  let N;
@@ -19555,33 +19555,33 @@ class Us {
19555
19555
  throw D;
19556
19556
  }
19557
19557
  }
19558
- _request(T, z) {
19559
- typeof T == "string" ? (z = z || {}, z.url = T) : z = T || {}, z = qs(this.defaults, z);
19560
- const { transitional: D, paramsSerializer: N, headers: J } = z;
19558
+ _request(T, M) {
19559
+ typeof T == "string" ? (M = M || {}, M.url = T) : M = T || {}, M = qs(this.defaults, M);
19560
+ const { transitional: D, paramsSerializer: N, headers: J } = M;
19561
19561
  D !== void 0 && Gh.assertOptions(D, {
19562
19562
  silentJSONParsing: ns.transitional(ns.boolean),
19563
19563
  forcedJSONParsing: ns.transitional(ns.boolean),
19564
19564
  clarifyTimeoutError: ns.transitional(ns.boolean)
19565
- }, !1), N != null && (pe.isFunction(N) ? z.paramsSerializer = {
19565
+ }, !1), N != null && (pe.isFunction(N) ? M.paramsSerializer = {
19566
19566
  serialize: N
19567
19567
  } : Gh.assertOptions(N, {
19568
19568
  encode: ns.function,
19569
19569
  serialize: ns.function
19570
- }, !0)), z.method = (z.method || this.defaults.method || "get").toLowerCase();
19570
+ }, !0)), M.method = (M.method || this.defaults.method || "get").toLowerCase();
19571
19571
  let S = J && pe.merge(
19572
19572
  J.common,
19573
- J[z.method]
19573
+ J[M.method]
19574
19574
  );
19575
19575
  J && pe.forEach(
19576
19576
  ["delete", "get", "head", "post", "put", "patch", "common"],
19577
19577
  (Ne) => {
19578
19578
  delete J[Ne];
19579
19579
  }
19580
- ), z.headers = Qi.concat(S, J);
19580
+ ), M.headers = Qi.concat(S, J);
19581
19581
  const c = [];
19582
19582
  let ye = !0;
19583
19583
  this.interceptors.request.forEach(function(Je) {
19584
- typeof Je.runWhen == "function" && Je.runWhen(z) === !1 || (ye = ye && Je.synchronous, c.unshift(Je.fulfilled, Je.rejected));
19584
+ typeof Je.runWhen == "function" && Je.runWhen(M) === !1 || (ye = ye && Je.synchronous, c.unshift(Je.fulfilled, Je.rejected));
19585
19585
  });
19586
19586
  const _e = [];
19587
19587
  this.interceptors.response.forEach(function(Je) {
@@ -19590,12 +19590,12 @@ class Us {
19590
19590
  let ve, ae = 0, oe;
19591
19591
  if (!ye) {
19592
19592
  const Ne = [Qd.bind(this), void 0];
19593
- for (Ne.unshift.apply(Ne, c), Ne.push.apply(Ne, _e), oe = Ne.length, ve = Promise.resolve(z); ae < oe; )
19593
+ for (Ne.unshift.apply(Ne, c), Ne.push.apply(Ne, _e), oe = Ne.length, ve = Promise.resolve(M); ae < oe; )
19594
19594
  ve = ve.then(Ne[ae++], Ne[ae++]);
19595
19595
  return ve;
19596
19596
  }
19597
19597
  oe = c.length;
19598
- let ut = z;
19598
+ let ut = M;
19599
19599
  for (ae = 0; ae < oe; ) {
19600
19600
  const Ne = c[ae++], Je = c[ae++];
19601
19601
  try {
@@ -19616,21 +19616,21 @@ class Us {
19616
19616
  }
19617
19617
  getUri(T) {
19618
19618
  T = qs(this.defaults, T);
19619
- const z = Sp(T.baseURL, T.url);
19620
- return yp(z, T.params, T.paramsSerializer);
19619
+ const M = Sp(T.baseURL, T.url);
19620
+ return yp(M, T.params, T.paramsSerializer);
19621
19621
  }
19622
19622
  }
19623
19623
  pe.forEach(["delete", "get", "head", "options"], function(T) {
19624
- Us.prototype[T] = function(z, D) {
19624
+ Us.prototype[T] = function(M, D) {
19625
19625
  return this.request(qs(D || {}, {
19626
19626
  method: T,
19627
- url: z,
19627
+ url: M,
19628
19628
  data: (D || {}).data
19629
19629
  }));
19630
19630
  };
19631
19631
  });
19632
19632
  pe.forEach(["post", "put", "patch"], function(T) {
19633
- function z(D) {
19633
+ function M(D) {
19634
19634
  return function(J, S, c) {
19635
19635
  return this.request(qs(c || {}, {
19636
19636
  method: T,
@@ -19642,15 +19642,15 @@ pe.forEach(["post", "put", "patch"], function(T) {
19642
19642
  }));
19643
19643
  };
19644
19644
  }
19645
- Us.prototype[T] = z(), Us.prototype[T + "Form"] = z(!0);
19645
+ Us.prototype[T] = M(), Us.prototype[T + "Form"] = M(!0);
19646
19646
  });
19647
19647
  class Qh {
19648
19648
  constructor(T) {
19649
19649
  if (typeof T != "function")
19650
19650
  throw new TypeError("executor must be a function.");
19651
- let z;
19651
+ let M;
19652
19652
  this.promise = new Promise(function(J) {
19653
- z = J;
19653
+ M = J;
19654
19654
  });
19655
19655
  const D = this;
19656
19656
  this.promise.then((N) => {
@@ -19668,7 +19668,7 @@ class Qh {
19668
19668
  D.unsubscribe(J);
19669
19669
  }, S;
19670
19670
  }, T(function(J, S, c) {
19671
- D.reason || (D.reason = new Uo(J, S, c), z(D.reason));
19671
+ D.reason || (D.reason = new Uo(J, S, c), M(D.reason));
19672
19672
  });
19673
19673
  }
19674
19674
  /**
@@ -19694,8 +19694,8 @@ class Qh {
19694
19694
  unsubscribe(T) {
19695
19695
  if (!this._listeners)
19696
19696
  return;
19697
- const z = this._listeners.indexOf(T);
19698
- z !== -1 && this._listeners.splice(z, 1);
19697
+ const M = this._listeners.indexOf(T);
19698
+ M !== -1 && this._listeners.splice(M, 1);
19699
19699
  }
19700
19700
  /**
19701
19701
  * Returns an object that contains a new `CancelToken` and a function that, when called,
@@ -19712,8 +19712,8 @@ class Qh {
19712
19712
  }
19713
19713
  }
19714
19714
  function g_(y) {
19715
- return function(z) {
19716
- return y.apply(null, z);
19715
+ return function(M) {
19716
+ return y.apply(null, M);
19717
19717
  };
19718
19718
  }
19719
19719
  function __(y) {
@@ -19788,40 +19788,40 @@ Object.entries(Hh).forEach(([y, T]) => {
19788
19788
  Hh[T] = y;
19789
19789
  });
19790
19790
  function kp(y) {
19791
- const T = new Us(y), z = op(Us.prototype.request, T);
19792
- return pe.extend(z, Us.prototype, T, { allOwnKeys: !0 }), pe.extend(z, T, null, { allOwnKeys: !0 }), z.create = function(N) {
19791
+ const T = new Us(y), M = op(Us.prototype.request, T);
19792
+ return pe.extend(M, Us.prototype, T, { allOwnKeys: !0 }), pe.extend(M, T, null, { allOwnKeys: !0 }), M.create = function(N) {
19793
19793
  return kp(qs(y, N));
19794
- }, z;
19794
+ }, M;
19795
19795
  }
19796
- const Yt = kp(cl);
19797
- Yt.Axios = Us;
19798
- Yt.CanceledError = Uo;
19799
- Yt.CancelToken = Qh;
19800
- Yt.isCancel = bp;
19801
- Yt.VERSION = Cp;
19802
- Yt.toFormData = Pc;
19803
- Yt.AxiosError = ht;
19804
- Yt.Cancel = Yt.CanceledError;
19805
- Yt.all = function(T) {
19796
+ const Jt = kp(cl);
19797
+ Jt.Axios = Us;
19798
+ Jt.CanceledError = Uo;
19799
+ Jt.CancelToken = Qh;
19800
+ Jt.isCancel = bp;
19801
+ Jt.VERSION = Cp;
19802
+ Jt.toFormData = Pc;
19803
+ Jt.AxiosError = ht;
19804
+ Jt.Cancel = Jt.CanceledError;
19805
+ Jt.all = function(T) {
19806
19806
  return Promise.all(T);
19807
19807
  };
19808
- Yt.spread = g_;
19809
- Yt.isAxiosError = __;
19810
- Yt.mergeConfig = qs;
19811
- Yt.AxiosHeaders = Qi;
19812
- Yt.formToJSON = (y) => vp(pe.isHTMLForm(y) ? new FormData(y) : y);
19813
- Yt.getAdapter = Ap.getAdapter;
19814
- Yt.HttpStatusCode = Hh;
19815
- Yt.default = Yt;
19808
+ Jt.spread = g_;
19809
+ Jt.isAxiosError = __;
19810
+ Jt.mergeConfig = qs;
19811
+ Jt.AxiosHeaders = Qi;
19812
+ Jt.formToJSON = (y) => vp(pe.isHTMLForm(y) ? new FormData(y) : y);
19813
+ Jt.getAdapter = Ap.getAdapter;
19814
+ Jt.HttpStatusCode = Hh;
19815
+ Jt.default = Jt;
19816
19816
  const y_ = (y, T = 300) => {
19817
- let z;
19817
+ let M;
19818
19818
  return function(...N) {
19819
- clearTimeout(z), z = setTimeout(() => {
19819
+ clearTimeout(M), M = setTimeout(() => {
19820
19820
  y.apply(this, N);
19821
19821
  }, T);
19822
19822
  };
19823
19823
  };
19824
- function Ep(y, T, z) {
19824
+ function Ep(y, T, M) {
19825
19825
  if (y !== null)
19826
19826
  for (var D, N, J, S, c, ye, _e, ve = 0, ae = 0, oe, ut = y.type, Ne = ut === "FeatureCollection", Je = ut === "Feature", Fe = Ne ? y.features.length : 1, ct = 0; ct < Fe; ct++) {
19827
19827
  _e = Ne ? y.features[ct].geometry : Je ? y.geometry : y, oe = _e ? _e.type === "GeometryCollection" : !1, c = oe ? _e.geometries.length : 1;
@@ -19911,10 +19911,10 @@ function Ep(y, T, z) {
19911
19911
  function x_(y, T = {}) {
19912
19912
  if (y.bbox != null && T.recompute !== !0)
19913
19913
  return y.bbox;
19914
- const z = [1 / 0, 1 / 0, -1 / 0, -1 / 0];
19914
+ const M = [1 / 0, 1 / 0, -1 / 0, -1 / 0];
19915
19915
  return Ep(y, (D) => {
19916
- z[0] > D[0] && (z[0] = D[0]), z[1] > D[1] && (z[1] = D[1]), z[2] < D[0] && (z[2] = D[0]), z[3] < D[1] && (z[3] = D[1]);
19917
- }), z;
19916
+ M[0] > D[0] && (M[0] = D[0]), M[1] > D[1] && (M[1] = D[1]), M[2] < D[0] && (M[2] = D[0]), M[3] < D[1] && (M[3] = D[1]);
19917
+ }), M;
19918
19918
  }
19919
19919
  const v_ = {
19920
19920
  mixins: [Wh],
@@ -19983,9 +19983,9 @@ const v_ = {
19983
19983
  }
19984
19984
  }
19985
19985
  }, b_ = { class: "vs-map-slot-layers" }, w_ = ["onClick"], S_ = ["src", "alt"];
19986
- function T_(y, T, z, D, N, J) {
19986
+ function T_(y, T, M, D, N, J) {
19987
19987
  return It(), qt("div", b_, [
19988
- (It(!0), qt(yc, null, xc(z.baseLayers, (S) => (It(), qt("div", {
19988
+ (It(!0), qt(yc, null, xc(M.baseLayers, (S) => (It(), qt("div", {
19989
19989
  key: S.id,
19990
19990
  class: vc(["vs-map-slot-layers__layer", { focused: S.id == N.selectedLayer }]),
19991
19991
  onClick: (c) => J.toggleLayerVisibility(S.id)
@@ -20006,9 +20006,9 @@ const I_ = /* @__PURE__ */ cn(v_, [["render", T_], ["__scopeId", "data-v-6644a27
20006
20006
  key: 0,
20007
20007
  class: "flex justify-start items-center gap-2"
20008
20008
  }, E_ = { class: "ml-1" };
20009
- function M_(y, T, z, D, N, J) {
20009
+ function M_(y, T, M, D, N, J) {
20010
20010
  return It(), qt("div", A_, [
20011
- (It(!0), qt(yc, null, xc(z.colors, (S) => (It(), qt("div", C_, [
20011
+ (It(!0), qt(yc, null, xc(M.colors, (S) => (It(), qt("div", C_, [
20012
20012
  S.id > 0 ? (It(), qt("div", k_, [
20013
20013
  it("div", {
20014
20014
  class: "w-[15px] h-[15px] rounded-[50%] min-w-[15px]",
@@ -20055,10 +20055,10 @@ const z_ = /* @__PURE__ */ cn(P_, [["render", M_]]), D_ = {
20055
20055
  };
20056
20056
  },
20057
20057
  async mounted() {
20058
- var y, T, z, D, N, J, S, c, ye, _e, ve, ae, oe, ut, Ne, Je, Fe, ct, Ke, je, wt, yt, Et, Pt, er, si, tr, bt;
20058
+ var y, T, M, D, N, J, S, c, ye, _e, ve, ae, oe, ut, Ne, Je, Fe, ct, Ke, je, wt, yt, Et, Pt, er, si, tr, bt;
20059
20059
  if (await this.createMap(), (y = this.row) != null && y.geom) {
20060
20060
  const En = new URLSearchParams(window.location.search);
20061
- if (((z = (T = this.row) == null ? void 0 : T.geom) == null ? void 0 : z.coordinates.length) <= 1 && En.has("id")) {
20061
+ if (((M = (T = this.row) == null ? void 0 : T.geom) == null ? void 0 : M.coordinates.length) <= 1 && En.has("id")) {
20062
20062
  if (typeof ((c = (S = (J = (N = (D = this.row) == null ? void 0 : D.geom) == null ? void 0 : N.coordinates) == null ? void 0 : J[0]) == null ? void 0 : S[0]) == null ? void 0 : c[0]) == "number")
20063
20063
  (ae = this.map) == null || ae.fitBounds((ve = (_e = (ye = this.row) == null ? void 0 : ye.geom) == null ? void 0 : _e.coordinates) == null ? void 0 : ve[0], {
20064
20064
  maxZoom: 13,
@@ -20095,7 +20095,7 @@ const z_ = /* @__PURE__ */ cn(P_, [["render", M_]]), D_ = {
20095
20095
  try {
20096
20096
  const {
20097
20097
  data: { rows: T }
20098
- } = await Yt.get(`/api/data/${this.table}/${this.colorAttr}`), z = T.reduce(
20098
+ } = await Jt.get(`/api/data/${this.table}/${this.colorAttr}`), M = T.reduce(
20099
20099
  (D, N, J) => N != null && N.id ? [
20100
20100
  ...D,
20101
20101
  N.id.toString(),
@@ -20103,7 +20103,7 @@ const z_ = /* @__PURE__ */ cn(P_, [["render", M_]]), D_ = {
20103
20103
  ] : D,
20104
20104
  ["match", ["get", this.colorAttr]]
20105
20105
  );
20106
- return this.colors = [...T], z.push("gray"), z;
20106
+ return this.colors = [...T], M.push("gray"), M;
20107
20107
  } catch (T) {
20108
20108
  console.log(T);
20109
20109
  }
@@ -20186,18 +20186,18 @@ const z_ = /* @__PURE__ */ cn(P_, [["render", M_]]), D_ = {
20186
20186
  }
20187
20187
  }
20188
20188
  }, L_ = { class: "vs-map-portal relative" };
20189
- function R_(y, T, z, D, N, J) {
20189
+ function R_(y, T, M, D, N, J) {
20190
20190
  const S = Yi("MapLegend"), c = Yi("MapSlotLayers");
20191
20191
  return It(), qt("div", L_, [
20192
20192
  it("div", {
20193
20193
  id: "maplibre-map",
20194
20194
  ref: "maplibreMap",
20195
- style: ip({ height: z.height, width: z.width })
20195
+ style: ip({ height: M.height, width: M.width })
20196
20196
  }, null, 4),
20197
20197
  Cr(S, { colors: N.colors }, null, 8, ["colors"]),
20198
20198
  Cr(c, {
20199
20199
  map: N.map,
20200
- baseLayers: z.basemap
20200
+ baseLayers: M.basemap
20201
20201
  }, null, 8, ["map", "baseLayers"])
20202
20202
  ]);
20203
20203
  }
@@ -20336,7 +20336,7 @@ const py = /* @__PURE__ */ cn(ay, [["render", dy]]), fy = {
20336
20336
  key: 0,
20337
20337
  class: "flex justify-end gap-x-2"
20338
20338
  };
20339
- function Ty(y, T, z, D, N, J) {
20339
+ function Ty(y, T, M, D, N, J) {
20340
20340
  return It(), No(Pm, { to: "#modal" }, [
20341
20341
  Cr(Od, { name: "fade" }, {
20342
20342
  default: sl(() => [
@@ -20351,7 +20351,7 @@ function Ty(y, T, z, D, N, J) {
20351
20351
  class: vc(["ui-dialog__modal opacity-1 transition-all flex flex-col bg-white border pointer-events-auto shadow-[0_10px_40px_10px_rgba(0,0,0,0.08)] rounded-xl", [J.checkSize]])
20352
20352
  }, [
20353
20353
  it("div", _y, [
20354
- it("h3", yy, Ns(z.title), 1),
20354
+ it("h3", yy, Ns(M.title), 1),
20355
20355
  it("button", {
20356
20356
  type: "button",
20357
20357
  class: "size-8 inline-flex justify-center items-center gap-x-2 rounded-full border border-transparent bg-gray-100 text-gray-800 hover:bg-gray-200 focus:outline-none focus:bg-gray-200 disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-700 dark:hover:bg-neutral-600 dark:text-neutral-400 dark:focus:bg-neutral-600",
@@ -20370,7 +20370,7 @@ function Ty(y, T, z, D, N, J) {
20370
20370
  })
20371
20371
  ])
20372
20372
  ], 512), [
20373
- [Cm, z.visible]
20373
+ [Cm, M.visible]
20374
20374
  ])
20375
20375
  ]),
20376
20376
  _: 3
@@ -20467,16 +20467,17 @@ const Iy = /* @__PURE__ */ cn(fy, [["render", Ty], ["__scopeId", "data-v-0a173fd
20467
20467
  },
20468
20468
  async regionSelectValue(y, T) {
20469
20469
  var J, S;
20470
+ if (!this.regionSelectValue) return;
20470
20471
  this.polyline = this.regionSelectValue.encoded_geom, this.getData();
20471
- const z = ((J = this.regionSelectValue) == null ? void 0 : J.geom) || $s.toGeoJSON(this.regionSelectValue.encoded_geom), D = this.map.getSource("region-search-id");
20472
- this.currentBbox = x_(z), D ? (await this.map.removeLayer("region-search-id"), D.setData({
20472
+ const M = ((J = this.regionSelectValue) == null ? void 0 : J.geom) || $s.toGeoJSON(this.regionSelectValue.encoded_geom), D = this.map.getSource("region-search-id");
20473
+ this.currentBbox = x_(M), D ? (await this.map.removeLayer("region-search-id"), D.setData({
20473
20474
  type: "Feature",
20474
- geometry: z
20475
+ geometry: M
20475
20476
  })) : this.map.addSource("region-search-id", {
20476
20477
  type: "geojson",
20477
20478
  data: {
20478
20479
  type: "Feature",
20479
- geometry: z
20480
+ geometry: M
20480
20481
  }
20481
20482
  });
20482
20483
  const N = {
@@ -20510,7 +20511,7 @@ const Iy = /* @__PURE__ */ cn(fy, [["render", Ty], ["__scopeId", "data-v-0a173fd
20510
20511
  polyline: this.polyline
20511
20512
  };
20512
20513
  this.filtersParam !== "" && this.filtersParam !== "no-url" && (y.filter = this.filtersParam);
20513
- const { data: T } = await Yt.get(`/api/data/${this.table}`, { params: y });
20514
+ const { data: T } = await Jt.get(`/api/data/${this.table}`, { params: y });
20514
20515
  this.tableData = T.rows, this.total = T.total;
20515
20516
  } catch (y) {
20516
20517
  console.error(y.message);
@@ -20523,26 +20524,26 @@ const Iy = /* @__PURE__ */ cn(fy, [["render", Ty], ["__scopeId", "data-v-0a173fd
20523
20524
  var D;
20524
20525
  const y = new URLSearchParams(window.location.search);
20525
20526
  y.delete("id");
20526
- const z = `${window.location.pathname}?${y.toString()}`;
20527
- (D = this.map) == null || D.fitBounds(this.maxBounds, {}), window.history.pushState({}, "", z), this.isSelectObj = !1;
20527
+ const M = `${window.location.pathname}?${y.toString()}`;
20528
+ (D = this.map) == null || D.fitBounds(this.maxBounds, {}), window.history.pushState({}, "", M), this.isSelectObj = !1;
20528
20529
  },
20529
20530
  regionFullName(y) {
20530
20531
  return `${y.text} / ${y.region}`;
20531
20532
  },
20532
20533
  getLabelById(y) {
20533
- const T = this.filters.find((z) => z.id === y);
20534
+ const T = this.filters.find((M) => M.id === y);
20534
20535
  return T ? T.label : y;
20535
20536
  },
20536
20537
  getOptionsLabelById(y, T) {
20537
20538
  return Array.isArray(T) ? this.filters.find((D) => D.id === y).options.filter((D) => T.includes(D.id)).map((D) => D.text).join(", ") : T;
20538
20539
  },
20539
20540
  async clearFilter(y) {
20540
- var T, z;
20541
- await ((z = (T = this.$refs) == null ? void 0 : T.filter) == null ? void 0 : z.clearFilter(y)), await this.updateTableAndMap(), await this.getData();
20541
+ var T, M;
20542
+ await ((M = (T = this.$refs) == null ? void 0 : T.filter) == null ? void 0 : M.clearFilter(y)), await this.updateTableAndMap(), await this.getData();
20542
20543
  },
20543
20544
  async getReginOptions() {
20544
20545
  try {
20545
- const { data: y } = await Yt.get(
20546
+ const { data: y } = await Jt.get(
20546
20547
  `https://data.softpro.ua/api-user/suggest/atu.codifier.type.polyline.select?parent=H&key=${this.searchRegion}`
20547
20548
  );
20548
20549
  this.searchRegionResult = y;
@@ -20555,7 +20556,7 @@ const Iy = /* @__PURE__ */ cn(fy, [["render", Ty], ["__scopeId", "data-v-0a173fd
20555
20556
  },
20556
20557
  async getFilter() {
20557
20558
  try {
20558
- const { data: y } = await Yt.get(`/api/filter/${this.table}`);
20559
+ const { data: y } = await Jt.get(`/api/filter/${this.table}`);
20559
20560
  this.filters = y.list;
20560
20561
  } catch (y) {
20561
20562
  console.error(y.message);
@@ -20564,10 +20565,18 @@ const Iy = /* @__PURE__ */ cn(fy, [["render", Ty], ["__scopeId", "data-v-0a173fd
20564
20565
  async handleSearchValue(y) {
20565
20566
  this.search = y, await this.getData();
20566
20567
  },
20568
+ closeObjCard() {
20569
+ var M;
20570
+ const y = new URLSearchParams(window.location.search);
20571
+ y.delete("id"), `${window.location.pathname}${y.toString()}`, (M = this.map) == null || M.fitBounds(
20572
+ this.currentBbox || this.maxBounds,
20573
+ {}
20574
+ ), this.isSelectObj = !1, this.getData();
20575
+ },
20567
20576
  async handleSearchRegionValue(y) {
20568
- var z;
20577
+ var M;
20569
20578
  const T = this.map.getLayer("region-search-id");
20570
- this.searchRegion = y, y === "" && T && ((z = this.map) == null || z.fitBounds(
20579
+ this.searchRegion = y, y === "" && T && ((M = this.map) == null || M.fitBounds(
20571
20580
  [
20572
20581
  [22, 44.4],
20573
20582
  [40, 52.5]
@@ -20612,18 +20621,18 @@ const Iy = /* @__PURE__ */ cn(fy, [["render", Ty], ["__scopeId", "data-v-0a173fd
20612
20621
  this.toggleFilterShown(), this.isFilterVisible = !1;
20613
20622
  },
20614
20623
  resetFilters() {
20615
- this.$refs.filter && (this.$refs.filter.clearAll(), this.search = "", this.isFilterVisible = !1, this.filtersParam = "", this.polyline = null, this.regionSelectValue = null, this.activeFilters = null, this.tabsIsVisible = !1, this.handleSearchRegionValue(""));
20624
+ this.$refs.filter && (this.$refs.filter.clearAll(), this.search = "", this.isFilterVisible = !1, this.filtersParam = "", this.polyline = null, this.regionSelectValue = null, this.currentBbox = null, this.activeFilters = null, this.tabsIsVisible = !1, this.handleSearchRegionValue(""));
20616
20625
  },
20617
20626
  checkFilterLength() {
20618
- var T, z;
20619
- const y = (z = (T = this.$refs) == null ? void 0 : T.filter) == null ? void 0 : z.filteredActiveFiltersLength;
20627
+ var T, M;
20628
+ const y = (M = (T = this.$refs) == null ? void 0 : T.filter) == null ? void 0 : M.filteredActiveFiltersLength;
20620
20629
  y !== this.previousLength && (this.previousLength = y, this.activeFiltersCount = y);
20621
20630
  },
20622
20631
  async handleMapClick(y) {
20623
20632
  var J, S, c, ye, _e;
20624
- const T = this.map.queryRenderedFeatures(y.point), z = window.location.pathname, D = new URLSearchParams(window.location.search);
20625
- D.set("id", `${T[0].properties.id}`);
20626
- const N = `${z}?${D.toString()}`;
20633
+ const T = this.map.queryRenderedFeatures(y.point), M = window.location.pathname, D = new URLSearchParams(window.location.search);
20634
+ D.set("id", `${T[0].properties.id}`), this.getObjectData(T[0].properties.id);
20635
+ const N = `${M}?${D.toString()}`;
20627
20636
  window.history.pushState({}, "", N), this.isSelectObj = !0, y.lngLat && ((_e = this.map) == null || _e.fitBounds(
20628
20637
  [
20629
20638
  [(J = y.lngLat) == null ? void 0 : J.lng, (S = y.lngLat) == null ? void 0 : S.lat],
@@ -20632,12 +20641,21 @@ const Iy = /* @__PURE__ */ cn(fy, [["render", Ty], ["__scopeId", "data-v-0a173fd
20632
20641
  { maxZoom: 13, padding: 30 }
20633
20642
  )), this.checkUrl();
20634
20643
  },
20644
+ async getObjectData(y) {
20645
+ var T;
20646
+ try {
20647
+ const { data: M } = await Jt.get(`/api/data/${this.table}/${y}`);
20648
+ this.selectRow((T = M == null ? void 0 : M.rows) == null ? void 0 : T[0]);
20649
+ } catch (M) {
20650
+ console.error(M.message);
20651
+ }
20652
+ },
20635
20653
  async selectRow(y) {
20636
20654
  var N, J, S, c, ye, _e, ve, ae, oe, ut, Ne, Je, Fe, ct, Ke, je, wt, yt, Et, Pt;
20637
20655
  this.isMapVisible = !0, this.selectedRow = y;
20638
- const T = window.location.pathname, z = new URLSearchParams(window.location.search);
20639
- z.set("id", `${y.id}`);
20640
- const D = `${T}?${z.toString()}`;
20656
+ const T = window.location.pathname, M = new URLSearchParams(window.location.search);
20657
+ M.set("id", `${y.id}`);
20658
+ const D = `${T}?${M.toString()}`;
20641
20659
  window.history.pushState({}, "", D), this.checkUrl(), y != null && y.geom && (((N = y == null ? void 0 : y.geom) == null ? void 0 : N.coordinates.length) <= 1 ? typeof ((ye = (c = (S = (J = y == null ? void 0 : y.geom) == null ? void 0 : J.coordinates) == null ? void 0 : S[0]) == null ? void 0 : c[0]) == null ? void 0 : ye[0]) == "number" ? (ae = this.map) == null || ae.fitBounds((ve = (_e = y == null ? void 0 : y.geom) == null ? void 0 : _e.coordinates) == null ? void 0 : ve[0], {
20642
20660
  maxZoom: 13,
20643
20661
  padding: 30
@@ -20661,7 +20679,7 @@ const Iy = /* @__PURE__ */ cn(fy, [["render", Ty], ["__scopeId", "data-v-0a173fd
20661
20679
  this.map.getCanvas().style.cursor = "", this.popup.remove();
20662
20680
  return;
20663
20681
  }
20664
- const z = T[0].geometry.coordinates.slice();
20682
+ const M = T[0].geometry.coordinates.slice();
20665
20683
  this.hoverData = T[0].properties;
20666
20684
  const D = {
20667
20685
  source: T[0].source,
@@ -20669,8 +20687,8 @@ const Iy = /* @__PURE__ */ cn(fy, [["render", Ty], ["__scopeId", "data-v-0a173fd
20669
20687
  id: T[0].id
20670
20688
  };
20671
20689
  if (D.source !== "region-search-id") {
20672
- for (this.map.setFeatureState(D, { hover: !0 }), this.hoverObject = D; Math.abs(y.lngLat.lng - z[0]) > 180; )
20673
- z[0] += y.lngLat.lng > z[0] ? 360 : -360;
20690
+ for (this.map.setFeatureState(D, { hover: !0 }), this.hoverObject = D; Math.abs(y.lngLat.lng - M[0]) > 180; )
20691
+ M[0] += y.lngLat.lng > M[0] ? 360 : -360;
20674
20692
  this.popup.setLngLat(y.lngLat).setHTML(this.$refs.popup.innerHTML).addTo(this.map);
20675
20693
  }
20676
20694
  }
@@ -20700,7 +20718,7 @@ const Iy = /* @__PURE__ */ cn(fy, [["render", Ty], ["__scopeId", "data-v-0a173fd
20700
20718
  ref: "popup",
20701
20719
  style: { display: "none" }
20702
20720
  };
20703
- function i0(y, T, z, D, N, J) {
20721
+ function i0(y, T, M, D, N, J) {
20704
20722
  const S = Yi("VsAutocompleteOption"), c = Yi("vs-autocomplete"), ye = Yi("vs-text"), _e = Yi("FilterIcon"), ve = Yi("VsFilter"), ae = Yi("VsDialog"), oe = Yi("VisibleMapIcon"), ut = Yi("HiddenMapIcon"), Ne = Yi("CloseIcon"), Je = Yi("NoData"), Fe = Yi("VsPagination"), ct = Yi("MapPortal");
20705
20723
  return It(), qt("section", Ay, [
20706
20724
  it("div", null, [
@@ -20883,7 +20901,8 @@ function i0(y, T, z, D, N, J) {
20883
20901
  table: y.table,
20884
20902
  selectedId: y.selectedId,
20885
20903
  selectedRow: y.selectedRow,
20886
- map: y.map
20904
+ map: y.map,
20905
+ closeObjCard: y.closeObjCard
20887
20906
  })
20888
20907
  ], 2)) : jr("", !0),
20889
20908
  y.isMapVisible ? (It(), qt("div", Qy, [