@opengis/partsmap 0.0.82 → 0.0.84

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
@@ -7,12 +7,12 @@ function Ic(f, x, I) {
7
7
  f = Xd(f * I), x = Xd(x * I);
8
8
  var C = (f - x) * 2;
9
9
  C < 0 && (C = -C - 1);
10
- for (var D = ""; C >= 32; )
11
- D += String.fromCharCode((32 | C & 31) + 63), C /= 32;
12
- return D += String.fromCharCode((C | 0) + 63), D;
10
+ for (var L = ""; C >= 32; )
11
+ L += String.fromCharCode((32 | C & 31) + 63), C /= 32;
12
+ return L += String.fromCharCode((C | 0) + 63), L;
13
13
  }
14
14
  Ws.decode = function(f, x) {
15
- for (var I = 0, C = 0, D = 0, U = [], S = 0, c = 0, pe = null, fe, xe, oe = Math.pow(10, Number.isInteger(x) ? x : 5); I < f.length; ) {
15
+ for (var I = 0, C = 0, L = 0, U = [], S = 0, c = 0, pe = null, fe, xe, oe = Math.pow(10, Number.isInteger(x) ? x : 5); I < f.length; ) {
16
16
  pe = null, S = 1, c = 0;
17
17
  do
18
18
  pe = f.charCodeAt(I++) - 63, c += (pe & 31) * S, S *= 32;
@@ -21,15 +21,15 @@ Ws.decode = function(f, x) {
21
21
  do
22
22
  pe = f.charCodeAt(I++) - 63, c += (pe & 31) * S, S *= 32;
23
23
  while (pe >= 32);
24
- xe = c & 1 ? (-c - 1) / 2 : c / 2, C += fe, D += xe, U.push([C / oe, D / oe]);
24
+ xe = c & 1 ? (-c - 1) / 2 : c / 2, C += fe, L += xe, U.push([C / oe, L / oe]);
25
25
  }
26
26
  return U;
27
27
  };
28
28
  Ws.encode = function(f, x) {
29
29
  if (!f.length)
30
30
  return "";
31
- for (var I = Math.pow(10, Number.isInteger(x) ? x : 5), C = Ic(f[0][0], 0, I) + Ic(f[0][1], 0, I), D = 1; D < f.length; D++) {
32
- var U = f[D], S = f[D - 1];
31
+ for (var I = Math.pow(10, Number.isInteger(x) ? x : 5), C = Ic(f[0][0], 0, I) + Ic(f[0][1], 0, I), L = 1; L < f.length; L++) {
32
+ var U = f[L], S = f[L - 1];
33
33
  C += Ic(U[0], S[0], I), C += Ic(U[1], S[1], I);
34
34
  }
35
35
  return C;
@@ -67,13 +67,13 @@ var bp = { exports: {} };
67
67
  f.exports = C();
68
68
  })(Gm, function() {
69
69
  var I = {}, C = {};
70
- function D(S, c, pe) {
70
+ function L(S, c, pe) {
71
71
  if (C[S] = pe, S === "index") {
72
72
  var fe = "var sharedModule = {}; (" + C.shared + ")(sharedModule); (" + C.worker + ")(sharedModule);", xe = {};
73
73
  return C.shared(xe), C.index(I, xe), typeof window < "u" && I.setWorkerUrl(window.URL.createObjectURL(new Blob([fe], { type: "text/javascript" }))), I;
74
74
  }
75
75
  }
76
- D("shared", ["exports"], function(S) {
76
+ L("shared", ["exports"], function(S) {
77
77
  function c(i, e, r, s) {
78
78
  return new (r || (r = Promise))(function(l, d) {
79
79
  function p(v) {
@@ -269,7 +269,7 @@ var bp = { exports: {} };
269
269
  function zr(i) {
270
270
  return typeof WorkerGlobalScope < "u" && i !== void 0 && i instanceof WorkerGlobalScope;
271
271
  }
272
- let Dn = null;
272
+ let Ln = null;
273
273
  function xr(i) {
274
274
  return typeof ImageBitmap < "u" && i instanceof ImageBitmap;
275
275
  }
@@ -282,9 +282,9 @@ var bp = { 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 m = p.startsWith("BGR"), _ = new Uint8ClampedArray(s * l * 4);
285
- if (yield d.copyTo(_, function(v, T, P, E, L) {
285
+ if (yield d.copyTo(_, function(v, T, P, E, D) {
286
286
  const B = 4 * Math.max(-T, 0), O = (Math.max(0, P) - P) * E * 4 + B, q = 4 * E, X = Math.max(0, T), se = Math.max(0, P);
287
- return { rect: { x: X, y: se, width: Math.min(v.width, T + E) - X, height: Math.min(v.height, P + L) - se }, layout: [{ offset: O, stride: q }] };
287
+ return { rect: { x: X, y: se, width: Math.min(v.width, T + E) - X, height: Math.min(v.height, P + D) - se }, layout: [{ offset: O, stride: q }] };
288
288
  }(i, e, r, s, l)), m) for (let v = 0; v < _.length; v += 4) {
289
289
  const T = _[v];
290
290
  _[v] = _[v + 2], _[v + 2] = T;
@@ -295,9 +295,9 @@ var bp = { exports: {} };
295
295
  }
296
296
  });
297
297
  }
298
- let Dr, zi;
298
+ let Lr, zi;
299
299
  const rr = "AbortError";
300
- function Ln() {
300
+ function Dn() {
301
301
  return new Error(rr);
302
302
  }
303
303
  const Wr = { MAX_PARALLEL_IMAGE_REQUESTS: 16, MAX_PARALLEL_IMAGE_REQUESTS_PER_FRAME: 8, MAX_TILE_CACHE_ZOOM_LEVELS: 5, REGISTERED_PROTOCOLS: {}, WORKER_URL: "" };
@@ -329,7 +329,7 @@ var bp = { exports: {} };
329
329
  let m;
330
330
  m = s.type === "arrayBuffer" || s.type === "image" ? p.arrayBuffer() : s.type === "json" ? p.json() : p.text();
331
331
  const _ = yield m;
332
- if (l.signal.aborted) throw Ln();
332
+ if (l.signal.aborted) throw Dn();
333
333
  return { data: _, cacheControl: p.headers.get("Cache-Control"), expires: p.headers.get("Expires") };
334
334
  });
335
335
  }(i, e);
@@ -358,7 +358,7 @@ var bp = { exports: {} };
358
358
  p(new $i(_.status, _.statusText, s.url, v));
359
359
  }
360
360
  }, l.signal.addEventListener("abort", () => {
361
- _.abort(), p(Ln());
361
+ _.abort(), p(Dn());
362
362
  }), _.send(s.body);
363
363
  });
364
364
  }(i, e);
@@ -371,7 +371,7 @@ var bp = { exports: {} };
371
371
  function cs(i, e, r) {
372
372
  r[i] && r[i].indexOf(e) !== -1 || (r[i] = r[i] || [], r[i].push(e));
373
373
  }
374
- function Lr(i, e, r) {
374
+ function Dr(i, e, r) {
375
375
  if (r && r[i]) {
376
376
  const s = r[i].indexOf(e);
377
377
  s !== -1 && r[i].splice(s, 1);
@@ -392,7 +392,7 @@ var bp = { exports: {} };
392
392
  return this._listeners = this._listeners || {}, cs(e, r, this._listeners), this;
393
393
  }
394
394
  off(e, r) {
395
- return Lr(e, r, this._listeners), Lr(e, r, this._oneTimeListeners), this;
395
+ return Dr(e, r, this._listeners), Dr(e, r, this._oneTimeListeners), this;
396
396
  }
397
397
  once(e, r) {
398
398
  return r ? (this._oneTimeListeners = this._oneTimeListeners || {}, cs(e, r, this._oneTimeListeners), this) : new Promise((s) => this.once(e, s));
@@ -405,7 +405,7 @@ var bp = { exports: {} };
405
405
  const l = this._listeners && this._listeners[s] ? this._listeners[s].slice() : [];
406
406
  for (const m of l) m.call(this, e);
407
407
  const d = this._oneTimeListeners && this._oneTimeListeners[s] ? this._oneTimeListeners[s].slice() : [];
408
- for (const m of d) Lr(s, m, this._oneTimeListeners), m.call(this, e);
408
+ for (const m of d) Dr(s, m, this._oneTimeListeners), m.call(this, e);
409
409
  const p = this._eventedParent;
410
410
  p && (jt(e, typeof this._eventedParentData == "function" ? this._eventedParentData() : this._eventedParentData), p.fire(e));
411
411
  } else e instanceof Jr && console.error(e.error);
@@ -500,7 +500,7 @@ var bp = { exports: {} };
500
500
  return !!this.bindings[e] || !!this.parent && this.parent.has(e);
501
501
  }
502
502
  }
503
- const Yr = { kind: "null" }, ke = { kind: "number" }, lt = { kind: "string" }, Ye = { kind: "boolean" }, Di = { kind: "color" }, sr = { kind: "object" }, rt = { kind: "value" }, Sr = { kind: "collator" }, Br = { kind: "formatted" }, Qr = { kind: "padding" }, Tr = { kind: "resolvedImage" }, H = { kind: "variableAnchorOffsetCollection" };
503
+ const Yr = { kind: "null" }, ke = { kind: "number" }, lt = { kind: "string" }, Ye = { kind: "boolean" }, Li = { kind: "color" }, sr = { kind: "object" }, rt = { kind: "value" }, Sr = { kind: "collator" }, Br = { kind: "formatted" }, Qr = { kind: "padding" }, Tr = { kind: "resolvedImage" }, H = { kind: "variableAnchorOffsetCollection" };
504
504
  function z(i, e) {
505
505
  return { kind: "array", itemType: i, N: e };
506
506
  }
@@ -511,7 +511,7 @@ var bp = { exports: {} };
511
511
  }
512
512
  return i.kind;
513
513
  }
514
- const V = [Yr, ke, lt, Ye, Di, Br, sr, z(rt), Qr, Tr, H];
514
+ const V = [Yr, ke, lt, Ye, Li, Br, sr, z(rt), Qr, Tr, H];
515
515
  function Z(i, e) {
516
516
  if (e.kind === "error") return null;
517
517
  if (i.kind === "array") {
@@ -595,7 +595,7 @@ var bp = { 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 [m, _, v, T, P, E, L, B, O, q, X, se] = p, Y = [T || " ", L || " ", q].join("");
598
+ const [m, _, v, T, P, E, D, B, O, q, X, se] = p, Y = [T || " ", D || " ", q].join("");
599
599
  if (Y === " " || Y === " /" || Y === ",," || Y === ",,,") {
600
600
  const ie = [v, E, O].join(""), ue = ie === "%%%" ? 100 : ie === "" ? 255 : 0;
601
601
  if (ue) {
@@ -608,13 +608,13 @@ var bp = { 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, m, _, v, T, P, E, L, B] = d, O = [_ || " ", T || " ", E].join("");
611
+ const [p, m, _, v, T, P, E, D, B] = d, O = [_ || " ", T || " ", E].join("");
612
612
  if (O === " " || O === " /" || O === ",," || O === ",,,") {
613
- const q = [+m, pi(+v, 0, 100), pi(+P, 0, 100), L ? ri(+L, B) : 1];
613
+ const q = [+m, pi(+v, 0, 100), pi(+P, 0, 100), D ? ri(+D, B) : 1];
614
614
  if (fi(q)) return function([X, se, Y, ie]) {
615
615
  function ue(ve) {
616
- const De = (ve + X / 30) % 12, Xe = se * Math.min(Y, 1 - Y);
617
- return Y - Xe * Math.max(-1, Math.min(De - 3, 9 - De, 1));
616
+ const Le = (ve + X / 30) % 12, Xe = se * Math.min(Y, 1 - Y);
617
+ return Y - Xe * Math.max(-1, Math.min(Le - 3, 9 - Le, 1));
618
618
  }
619
619
  return X = _t(X), se /= 100, Y /= 100, [ue(0), ue(8), ue(4), ie];
620
620
  }(q);
@@ -754,7 +754,7 @@ var bp = { exports: {} };
754
754
  if (typeof i == "string") return lt;
755
755
  if (typeof i == "boolean") return Ye;
756
756
  if (typeof i == "number") return ke;
757
- if (i instanceof St) return Di;
757
+ if (i instanceof St) return Li;
758
758
  if (i instanceof Qo) return Sr;
759
759
  if (i instanceof Ui) return Br;
760
760
  if (i instanceof ji) return Qr;
@@ -857,7 +857,7 @@ var bp = { exports: {} };
857
857
  return this.args.every((e) => e.outputDefined());
858
858
  }
859
859
  }
860
- const gs = { "to-boolean": Ye, "to-color": Di, "to-number": ke, "to-string": lt };
860
+ const gs = { "to-boolean": Ye, "to-color": Li, "to-number": ke, "to-string": lt };
861
861
  class en {
862
862
  constructor(e, r) {
863
863
  this.type = e, this.args = r;
@@ -1163,9 +1163,9 @@ var bp = { exports: {} };
1163
1163
  if (d[String(B)] !== void 0) return E.error("Branch labels must be unique.");
1164
1164
  d[String(B)] = p.length;
1165
1165
  }
1166
- const L = r.parse(P, v, l);
1167
- if (!L) return null;
1168
- l = l || L.type, p.push(L);
1166
+ const D = r.parse(P, v, l);
1167
+ if (!D) return null;
1168
+ l = l || D.type, p.push(D);
1169
1169
  }
1170
1170
  const m = r.parse(e[1], 1, rt);
1171
1171
  if (!m) return null;
@@ -1343,15 +1343,15 @@ var bp = { exports: {} };
1343
1343
  }
1344
1344
  case "hcl": {
1345
1345
  const [l, d, p, m] = i.hcl, [_, v, T, P] = e.hcl;
1346
- let E, L;
1347
- if (isNaN(l) || isNaN(_)) isNaN(l) ? isNaN(_) ? E = NaN : (E = _, p !== 1 && p !== 0 || (L = v)) : (E = l, T !== 1 && T !== 0 || (L = d));
1346
+ let E, D;
1347
+ if (isNaN(l) || isNaN(_)) isNaN(l) ? isNaN(_) ? E = NaN : (E = _, p !== 1 && p !== 0 || (D = v)) : (E = l, T !== 1 && T !== 0 || (D = d));
1348
1348
  else {
1349
1349
  let se = _ - l;
1350
1350
  _ > l && se > 180 ? se -= 360 : _ < l && l - _ > 180 && (se += 360), E = l + r * se;
1351
1351
  }
1352
1352
  const [B, O, q, X] = function([se, Y, ie, ue]) {
1353
1353
  return se = isNaN(se) ? 0 : se * We, Qt([ie, Math.cos(se) * Y, Math.sin(se) * Y, ue]);
1354
- }([E, L ?? rn(d, v, r), rn(p, T, r), rn(m, P, r)]);
1354
+ }([E, D ?? rn(d, v, r), rn(p, T, r), rn(m, P, r)]);
1355
1355
  return new St(B, O, q, X, !1);
1356
1356
  }
1357
1357
  case "lab": {
@@ -1409,16 +1409,16 @@ var bp = { exports: {} };
1409
1409
  if (d = r.parse(d, 2, ke), !d) return null;
1410
1410
  const m = [];
1411
1411
  let _ = null;
1412
- s === "interpolate-hcl" || s === "interpolate-lab" ? _ = Di : r.expectedType && r.expectedType.kind !== "value" && (_ = r.expectedType);
1412
+ s === "interpolate-hcl" || s === "interpolate-lab" ? _ = Li : r.expectedType && r.expectedType.kind !== "value" && (_ = r.expectedType);
1413
1413
  for (let v = 0; v < p.length; v += 2) {
1414
- const T = p[v], P = p[v + 1], E = v + 3, L = v + 4;
1414
+ const T = p[v], P = p[v + 1], E = v + 3, D = v + 4;
1415
1415
  if (typeof T != "number") return r.error('Input/output pairs for "interpolate" expressions must be defined using literal numeric values (not computed expressions) for the input values.', E);
1416
1416
  if (m.length && m[m.length - 1][0] >= T) return r.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.', E);
1417
- const B = r.parse(P, L, _);
1417
+ const B = r.parse(P, D, _);
1418
1418
  if (!B) return null;
1419
1419
  _ = _ || B.type, m.push([T, B]);
1420
1420
  }
1421
- return re(_, ke) || re(_, Di) || re(_, Qr) || re(_, H) || re(_, z(ke)) ? new Gi(_, s, l, d, m) : r.error(`Type ${M(_)} is not interpolatable.`);
1421
+ return re(_, ke) || re(_, Li) || re(_, Qr) || re(_, H) || re(_, z(ke)) ? new Gi(_, s, l, d, m) : r.error(`Type ${M(_)} is not interpolatable.`);
1422
1422
  }
1423
1423
  evaluate(e) {
1424
1424
  const r = this.labels, s = this.outputs;
@@ -1626,7 +1626,7 @@ var bp = { exports: {} };
1626
1626
  let v = null;
1627
1627
  if (m["text-font"] && (v = r.parse(m["text-font"], 1, z(lt)), !v)) return null;
1628
1628
  let T = null;
1629
- if (m["text-color"] && (T = r.parse(m["text-color"], 1, Di), !T)) return null;
1629
+ if (m["text-color"] && (T = r.parse(m["text-color"], 1, Li), !T)) return null;
1630
1630
  const P = l[l.length - 1];
1631
1631
  P.scale = _, P.font = v, P.textColor = T;
1632
1632
  } else {
@@ -1900,13 +1900,13 @@ var bp = { exports: {} };
1900
1900
  return i < e ? -1 : i > e ? 1 : 0;
1901
1901
  }
1902
1902
  function Xc(i, e, r, s, l) {
1903
- Dl(i, e, r, s || i.length - 1, l || Jc);
1903
+ Ll(i, e, r, s || i.length - 1, l || Jc);
1904
1904
  }
1905
- function Dl(i, e, r, s, l) {
1905
+ function Ll(i, e, r, s, l) {
1906
1906
  for (; s > r; ) {
1907
1907
  if (s - r > 600) {
1908
1908
  var d = s - r + 1, p = e - r + 1, m = Math.log(d), _ = 0.5 * Math.exp(2 * m / 3), v = 0.5 * Math.sqrt(m * _ * (d - _) / d) * (p - d / 2 < 0 ? -1 : 1);
1909
- Dl(i, e, Math.max(r, Math.floor(e - p * _ / d + v)), Math.min(s, Math.floor(e + (d - p) * _ / d + v)), l);
1909
+ Ll(i, e, Math.max(r, Math.floor(e - p * _ / d + v)), Math.min(s, Math.floor(e + (d - p) * _ / d + v)), l);
1910
1910
  }
1911
1911
  var T = i[e], P = r, E = s;
1912
1912
  for (Ss(i, r, e), l(i[s], T) > 0 && Ss(i, r, s); P < E; ) {
@@ -1942,7 +1942,7 @@ var bp = { exports: {} };
1942
1942
  for (let r, s, l = 0, d = i.length, p = d - 1; l < d; p = l++) r = i[l], s = i[p], e += (s.x - r.x) * (r.y + s.y);
1943
1943
  return e;
1944
1944
  }
1945
- const Ll = 1 / 298.257223563, Rl = Ll * (2 - Ll), Bl = Math.PI / 180;
1945
+ const Dl = 1 / 298.257223563, Rl = Dl * (2 - Dl), Bl = Math.PI / 180;
1946
1946
  class la {
1947
1947
  constructor(e) {
1948
1948
  const r = 6378.137 * Bl * 1e3, s = Math.cos(e * Bl), l = 1 / (1 - Rl * (1 - s * s)), d = Math.sqrt(l);
@@ -1955,10 +1955,10 @@ var bp = { exports: {} };
1955
1955
  pointOnLine(e, r) {
1956
1956
  let s, l, d, p, m = 1 / 0;
1957
1957
  for (let _ = 0; _ < e.length - 1; _++) {
1958
- let v = e[_][0], T = e[_][1], P = this.wrap(e[_ + 1][0] - v) * this.kx, E = (e[_ + 1][1] - T) * this.ky, L = 0;
1959
- P === 0 && E === 0 || (L = (this.wrap(r[0] - v) * this.kx * P + (r[1] - T) * this.ky * E) / (P * P + E * E), L > 1 ? (v = e[_ + 1][0], T = e[_ + 1][1]) : L > 0 && (v += P / this.kx * L, T += E / this.ky * L)), P = this.wrap(r[0] - v) * this.kx, E = (r[1] - T) * this.ky;
1958
+ let v = e[_][0], T = e[_][1], P = this.wrap(e[_ + 1][0] - v) * this.kx, E = (e[_ + 1][1] - T) * this.ky, D = 0;
1959
+ P === 0 && E === 0 || (D = (this.wrap(r[0] - v) * this.kx * P + (r[1] - T) * this.ky * E) / (P * P + E * E), D > 1 ? (v = e[_ + 1][0], T = e[_ + 1][1]) : D > 0 && (v += P / this.kx * D, T += E / this.ky * D)), P = this.wrap(r[0] - v) * this.kx, E = (r[1] - T) * this.ky;
1960
1960
  const B = P * P + E * E;
1961
- B < m && (m = B, s = v, l = T, d = _, p = L);
1961
+ B < m && (m = B, s = v, l = T, d = _, p = D);
1962
1962
  }
1963
1963
  return { point: [s, l], index: d, t: Math.max(0, Math.min(1, p)) };
1964
1964
  }
@@ -2046,16 +2046,16 @@ var bp = { exports: {} };
2046
2046
  }
2047
2047
  return s;
2048
2048
  }
2049
- function Dt(i, e, r, s) {
2049
+ function Lt(i, e, r, s) {
2050
2050
  if (!Or(e, i.length)) return NaN;
2051
2051
  for (let d = e[0]; d <= e[1]; ++d) if (Nn(i[d], r, !0)) return 0;
2052
2052
  let l = 1 / 0;
2053
2053
  for (let d = e[0]; d < e[1]; ++d) {
2054
2054
  const p = i[d], m = i[d + 1];
2055
2055
  for (const _ of r) for (let v = 0, T = _.length, P = T - 1; v < T; P = v++) {
2056
- const E = _[P], L = _[v];
2057
- if (lo(p, m, E, L)) return 0;
2058
- l = Math.min(l, da(p, m, E, L, s));
2056
+ const E = _[P], D = _[v];
2057
+ if (lo(p, m, E, D)) return 0;
2058
+ l = Math.min(l, da(p, m, E, D, s));
2059
2059
  }
2060
2060
  }
2061
2061
  return l;
@@ -2073,8 +2073,8 @@ var bp = { exports: {} };
2073
2073
  let p = 1 / 0;
2074
2074
  for (const m of i) for (let _ = 0, v = m.length, T = v - 1; _ < v; T = _++) {
2075
2075
  const P = m[T], E = m[_];
2076
- for (const L of e) for (let B = 0, O = L.length, q = O - 1; B < O; q = B++) {
2077
- const X = L[q], se = L[B];
2076
+ for (const D of e) for (let B = 0, O = D.length, q = O - 1; B < O; q = B++) {
2077
+ const X = D[q], se = D[B];
2078
2078
  if (lo(P, E, X, se)) return 0;
2079
2079
  p = Math.min(p, da(P, E, X, se, r));
2080
2080
  }
@@ -2102,7 +2102,7 @@ var bp = { exports: {} };
2102
2102
  if (ho(v) <= T) {
2103
2103
  if (!Or(v, i.length)) return NaN;
2104
2104
  if (e) {
2105
- const P = Dt(i, v, r, s);
2105
+ const P = Lt(i, v, r, s);
2106
2106
  if (isNaN(P) || P === 0) return P;
2107
2107
  d = Math.min(d, P);
2108
2108
  } else for (let P = v[0]; P <= v[1]; ++P) {
@@ -2126,18 +2126,18 @@ var bp = { exports: {} };
2126
2126
  const v = _[1], T = _[2], P = e ? 50 : 100, E = s ? 50 : 100;
2127
2127
  if (ho(v) <= P && ho(T) <= E) {
2128
2128
  if (!Or(v, i.length) && Or(T, r.length)) return NaN;
2129
- let L;
2130
- if (e && s) L = ut(i, v, r, T, l), p = Math.min(p, L);
2129
+ let D;
2130
+ if (e && s) D = ut(i, v, r, T, l), p = Math.min(p, D);
2131
2131
  else if (e && !s) {
2132
2132
  const B = i.slice(v[0], v[1] + 1);
2133
- for (let O = T[0]; O <= T[1]; ++O) if (L = Et(r[O], B, l), p = Math.min(p, L), p === 0) return p;
2133
+ for (let O = T[0]; O <= T[1]; ++O) if (D = Et(r[O], B, l), p = Math.min(p, D), p === 0) return p;
2134
2134
  } else if (!e && s) {
2135
2135
  const B = r.slice(T[0], T[1] + 1);
2136
- for (let O = v[0]; O <= v[1]; ++O) if (L = Et(i[O], B, l), p = Math.min(p, L), p === 0) return p;
2137
- } else L = pa(i, v, r, T, l), p = Math.min(p, L);
2136
+ for (let O = v[0]; O <= v[1]; ++O) if (D = Et(i[O], B, l), p = Math.min(p, D), p === 0) return p;
2137
+ } else D = pa(i, v, r, T, l), p = Math.min(p, D);
2138
2138
  } else {
2139
- const L = Ts(v, e), B = Ts(T, s);
2140
- uo(m, p, l, i, r, L[0], B[0]), uo(m, p, l, i, r, L[0], B[1]), uo(m, p, l, i, r, L[1], B[0]), uo(m, p, l, i, r, L[1], B[1]);
2139
+ const D = Ts(v, e), B = Ts(T, s);
2140
+ uo(m, p, l, i, r, D[0], B[0]), uo(m, p, l, i, r, D[0], B[1]), uo(m, p, l, i, r, D[1], B[0]), uo(m, p, l, i, r, D[1], B[1]);
2141
2141
  }
2142
2142
  }
2143
2143
  return p;
@@ -2253,8 +2253,8 @@ var bp = { exports: {} };
2253
2253
  _ = new tn(r.registry, go, r.path, null, r.scope);
2254
2254
  const P = [];
2255
2255
  let E = !1;
2256
- for (let L = 1; L < e.length; L++) {
2257
- const B = e[L], O = Array.isArray(v) ? v[L - 1] : v.type, q = _.parse(B, 1 + P.length, O);
2256
+ for (let D = 1; D < e.length; D++) {
2257
+ const B = e[D], O = Array.isArray(v) ? v[D - 1] : v.type, q = _.parse(B, 1 + P.length, O);
2258
2258
  if (!q) {
2259
2259
  E = !0;
2260
2260
  break;
@@ -2263,9 +2263,9 @@ var bp = { exports: {} };
2263
2263
  }
2264
2264
  if (!E) if (Array.isArray(v) && v.length !== P.length) _.error(`Expected ${v.length} arguments, but found ${P.length} instead.`);
2265
2265
  else {
2266
- for (let L = 0; L < P.length; L++) {
2267
- const B = Array.isArray(v) ? v[L] : v.type, O = P[L];
2268
- _.concat(L + 1).checkSubtype(B, O.type);
2266
+ for (let D = 0; D < P.length; D++) {
2267
+ const B = Array.isArray(v) ? v[D] : v.type, O = P[D];
2268
+ _.concat(D + 1).checkSubtype(B, O.type);
2269
2269
  }
2270
2270
  if (_.errors.length === 0) return new Hi(s, d, T, P);
2271
2271
  }
@@ -2387,8 +2387,8 @@ var bp = { exports: {} };
2387
2387
  }
2388
2388
  const E = [];
2389
2389
  for (const B of P) E.push([T[B].zoom, Ul(T[B], e)]);
2390
- const L = { name: "linear" };
2391
- return { kind: "composite", interpolationType: L, interpolationFactor: Gi.interpolationFactor.bind(void 0, L), zoomStops: E.map((B) => B[0]), evaluate: ({ zoom: B }, O) => xa({ stops: E, base: i.base }, e, B).evaluate(B, O) };
2390
+ const D = { name: "linear" };
2391
+ return { kind: "composite", interpolationType: D, interpolationFactor: Gi.interpolationFactor.bind(void 0, D), zoomStops: E.map((B) => B[0]), evaluate: ({ zoom: B }, O) => xa({ stops: E, base: i.base }, e, B).evaluate(B, O) };
2392
2392
  }
2393
2393
  if (l) {
2394
2394
  const T = d === "exponential" ? { name: "exponential", base: i.base !== void 0 ? i.base : 1 } : null;
@@ -2419,8 +2419,8 @@ var bp = { 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 = xs(i.stops.map((T) => T[0]), r), p = function(T, P, E, L) {
2423
- const B = L - E, O = T - E;
2422
+ const d = xs(i.stops.map((T) => T[0]), r), p = function(T, P, E, D) {
2423
+ const B = D - E, O = T - E;
2424
2424
  return B === 0 ? 0 : P === 1 ? O / B : (Math.pow(P, O) - 1) / (Math.pow(P, B) - 1);
2425
2425
  }(r, s, i.stops[d][0], i.stops[d + 1][0]), m = i.stops[d][1], _ = i.stops[d + 1][1], v = Zi[e.type] || $l;
2426
2426
  return typeof m.evaluate == "function" ? { evaluate(...T) {
@@ -2449,10 +2449,10 @@ var bp = { exports: {} };
2449
2449
  }
2450
2450
  Hi.register(vn, { error: [{ kind: "error" }, [lt], (i, [e]) => {
2451
2451
  throw new Kt(e.evaluate(i));
2452
- }], typeof: [lt, [rt], (i, [e]) => M(ei(e.evaluate(i)))], "to-rgba": [z(ke, 4), [Di], (i, [e]) => {
2452
+ }], typeof: [lt, [rt], (i, [e]) => M(ei(e.evaluate(i)))], "to-rgba": [z(ke, 4), [Li], (i, [e]) => {
2453
2453
  const [r, s, l, d] = e.evaluate(i).rgb;
2454
2454
  return [255 * r, 255 * s, 255 * l, d];
2455
- }], rgb: [Di, [ke, ke, ke], ga], rgba: [Di, [ke, ke, ke, ke], ga], has: { type: Ye, overloads: [[[lt], (i, [e]) => mo(e.evaluate(i), i.properties())], [[lt, sr], (i, [e, r]) => mo(e.evaluate(i), r.evaluate(i))]] }, get: { type: rt, overloads: [[[lt], (i, [e]) => _a(e.evaluate(i), i.properties())], [[lt, sr], (i, [e, r]) => _a(e.evaluate(i), r.evaluate(i))]] }, "feature-state": [rt, [lt], (i, [e]) => _a(e.evaluate(i), i.featureState || {})], properties: [sr, [], (i) => i.properties()], "geometry-type": [lt, [], (i) => i.geometryType()], id: [rt, [], (i) => i.id()], zoom: [ke, [], (i) => i.globals.zoom], "heatmap-density": [ke, [], (i) => i.globals.heatmapDensity || 0], "line-progress": [ke, [], (i) => i.globals.lineProgress || 0], accumulated: [rt, [], (i) => i.globals.accumulated === void 0 ? null : i.globals.accumulated], "+": [ke, bn(ke), (i, e) => {
2455
+ }], rgb: [Li, [ke, ke, ke], ga], rgba: [Li, [ke, ke, ke, ke], ga], has: { type: Ye, overloads: [[[lt], (i, [e]) => mo(e.evaluate(i), i.properties())], [[lt, sr], (i, [e, r]) => mo(e.evaluate(i), r.evaluate(i))]] }, get: { type: rt, overloads: [[[lt], (i, [e]) => _a(e.evaluate(i), i.properties())], [[lt, sr], (i, [e, r]) => _a(e.evaluate(i), r.evaluate(i))]] }, "feature-state": [rt, [lt], (i, [e]) => _a(e.evaluate(i), i.featureState || {})], properties: [sr, [], (i) => i.properties()], "geometry-type": [lt, [], (i) => i.geometryType()], id: [rt, [], (i) => i.id()], zoom: [ke, [], (i) => i.globals.zoom], "heatmap-density": [ke, [], (i) => i.globals.heatmapDensity || 0], "line-progress": [ke, [], (i) => i.globals.lineProgress || 0], accumulated: [rt, [], (i) => i.globals.accumulated === void 0 ? null : i.globals.accumulated], "+": [ke, bn(ke), (i, e) => {
2456
2456
  let r = 0;
2457
2457
  for (const s of e) r += s.evaluate(i);
2458
2458
  return r;
@@ -2529,7 +2529,7 @@ var bp = { exports: {} };
2529
2529
  }
2530
2530
  function Tn(i, e) {
2531
2531
  const r = new tn(vn, go, [], e ? function(l) {
2532
- const d = { color: Di, string: lt, number: ke, enum: lt, boolean: Ye, formatted: Br, padding: Qr, resolvedImage: Tr, variableAnchorOffsetCollection: H };
2532
+ const d = { color: Li, string: lt, number: ke, enum: lt, boolean: Ye, formatted: Br, padding: Qr, resolvedImage: Tr, variableAnchorOffsetCollection: H };
2533
2533
  return l.type === "array" ? z(d[l.value] || rt, l.length) : d[l.type];
2534
2534
  }(e) : void 0), s = r.parse(i, void 0, void 0, void 0, e && e.type === "string" ? { typeAnnotation: "coerce" } : void 0);
2535
2535
  return s ? Nl(new bo(s, e)) : $n(r.errors);
@@ -2697,7 +2697,7 @@ var bp = { exports: {} };
2697
2697
  const e = i.value;
2698
2698
  return e ? [new Te(i.key, e, "constants have been deprecated as of v8")] : [];
2699
2699
  }
2700
- function Lt(i) {
2700
+ function Dt(i) {
2701
2701
  return i instanceof Number || i instanceof String || i instanceof Boolean ? i.valueOf() : i;
2702
2702
  }
2703
2703
  function In(i) {
@@ -2707,27 +2707,27 @@ var bp = { exports: {} };
2707
2707
  for (const r in i) e[r] = In(i[r]);
2708
2708
  return e;
2709
2709
  }
2710
- return Lt(i);
2710
+ return Dt(i);
2711
2711
  }
2712
- function Li(i) {
2712
+ function Di(i) {
2713
2713
  const e = i.key, r = i.value, s = i.valueSpec || {}, l = i.objectElementValidators || {}, d = i.style, p = i.styleSpec, m = i.validateSpec;
2714
2714
  let _ = [];
2715
2715
  const v = yt(r);
2716
2716
  if (v !== "object") return [new Te(e, r, `object expected, ${v} found`)];
2717
2717
  for (const T in r) {
2718
2718
  const P = T.split(".")[0], E = s[P] || s["*"];
2719
- let L;
2720
- if (l[P]) L = l[P];
2721
- else if (s[P]) L = m;
2722
- else if (l["*"]) L = l["*"];
2719
+ let D;
2720
+ if (l[P]) D = l[P];
2721
+ else if (s[P]) D = m;
2722
+ else if (l["*"]) D = l["*"];
2723
2723
  else {
2724
2724
  if (!s["*"]) {
2725
2725
  _.push(new Te(e, r[T], `unknown property "${T}"`));
2726
2726
  continue;
2727
2727
  }
2728
- L = m;
2728
+ D = m;
2729
2729
  }
2730
- _ = _.concat(L({ key: (e && `${e}.`) + T, value: r[T], valueSpec: E, style: d, styleSpec: p, object: r, objectKey: T, validateSpec: m }, r));
2730
+ _ = _.concat(D({ key: (e && `${e}.`) + T, value: r[T], valueSpec: E, style: d, styleSpec: p, object: r, objectKey: T, validateSpec: m }, r));
2731
2731
  }
2732
2732
  for (const T in s) l[T] || s[T].required && s[T].default === void 0 && r[T] === void 0 && _.push(new Te(e, r, `missing required property "${T}"`));
2733
2733
  return _;
@@ -2749,42 +2749,42 @@ var bp = { exports: {} };
2749
2749
  return l === "number" && r != r && (l = "NaN"), l !== "number" ? [new Te(e, r, `number expected, ${l} found`)] : "minimum" in s && r < s.minimum ? [new Te(e, r, `${r} is less than the minimum value ${s.minimum}`)] : "maximum" in s && r > s.maximum ? [new Te(e, r, `${r} is greater than the maximum value ${s.maximum}`)] : [];
2750
2750
  }
2751
2751
  function Aa(i) {
2752
- const e = i.valueSpec, r = Lt(i.value.type);
2752
+ const e = i.valueSpec, r = Dt(i.value.type);
2753
2753
  let s, l, d, p = {};
2754
- const m = r !== "categorical" && i.value.property === void 0, _ = !m, v = yt(i.value.stops) === "array" && yt(i.value.stops[0]) === "array" && yt(i.value.stops[0][0]) === "object", T = Li({ key: i.key, value: i.value, valueSpec: i.styleSpec.function, validateSpec: i.validateSpec, style: i.style, styleSpec: i.styleSpec, objectElementValidators: { stops: function(L) {
2755
- if (r === "identity") return [new Te(L.key, L.value, 'identity function may not have a "stops" property')];
2754
+ const m = r !== "categorical" && i.value.property === void 0, _ = !m, v = yt(i.value.stops) === "array" && yt(i.value.stops[0]) === "array" && yt(i.value.stops[0][0]) === "object", T = Di({ key: i.key, value: i.value, valueSpec: i.styleSpec.function, validateSpec: i.validateSpec, style: i.style, styleSpec: i.styleSpec, objectElementValidators: { stops: function(D) {
2755
+ if (r === "identity") return [new Te(D.key, D.value, 'identity function may not have a "stops" property')];
2756
2756
  let B = [];
2757
- const O = L.value;
2758
- return B = B.concat(Po({ key: L.key, value: O, valueSpec: L.valueSpec, validateSpec: L.validateSpec, style: L.style, styleSpec: L.styleSpec, arrayElementValidator: P })), yt(O) === "array" && O.length === 0 && B.push(new Te(L.key, O, "array must have at least one stop")), B;
2759
- }, default: function(L) {
2760
- return L.validateSpec({ key: L.key, value: L.value, valueSpec: e, validateSpec: L.validateSpec, style: L.style, styleSpec: L.styleSpec });
2757
+ const O = D.value;
2758
+ return B = B.concat(Po({ key: D.key, value: O, valueSpec: D.valueSpec, validateSpec: D.validateSpec, style: D.style, styleSpec: D.styleSpec, arrayElementValidator: P })), yt(O) === "array" && O.length === 0 && B.push(new Te(D.key, O, "array must have at least one stop")), B;
2759
+ }, default: function(D) {
2760
+ return D.validateSpec({ key: D.key, value: D.value, valueSpec: e, validateSpec: D.validateSpec, style: D.style, styleSpec: D.styleSpec });
2761
2761
  } } });
2762
2762
  return r === "identity" && m && T.push(new Te(i.key, i.value, 'missing required property "property"')), r === "identity" || i.value.stops || T.push(new Te(i.key, i.value, 'missing required property "stops"')), r === "exponential" && i.valueSpec.expression && !Un(i.valueSpec) && T.push(new Te(i.key, i.value, "exponential functions not supported")), i.styleSpec.$version >= 8 && (_ && !wn(i.valueSpec) ? T.push(new Te(i.key, i.value, "property functions not supported")) : m && !ya(i.valueSpec) && T.push(new Te(i.key, i.value, "zoom functions not supported"))), r !== "categorical" && !v || i.value.property !== void 0 || T.push(new Te(i.key, i.value, '"property" property is required')), T;
2763
- function P(L) {
2763
+ function P(D) {
2764
2764
  let B = [];
2765
- const O = L.value, q = L.key;
2765
+ const O = D.value, q = D.key;
2766
2766
  if (yt(O) !== "array") return [new Te(q, O, `array expected, ${yt(O)} found`)];
2767
2767
  if (O.length !== 2) return [new Te(q, O, `array length 2 expected, length ${O.length} found`)];
2768
2768
  if (v) {
2769
2769
  if (yt(O[0]) !== "object") return [new Te(q, O, `object expected, ${yt(O[0])} found`)];
2770
2770
  if (O[0].zoom === void 0) return [new Te(q, O, "object stop key must have zoom")];
2771
2771
  if (O[0].value === void 0) return [new Te(q, O, "object stop key must have value")];
2772
- if (d && d > Lt(O[0].zoom)) return [new Te(q, O[0].zoom, "stop zoom values must appear in ascending order")];
2773
- Lt(O[0].zoom) !== d && (d = Lt(O[0].zoom), l = void 0, p = {}), B = B.concat(Li({ key: `${q}[0]`, value: O[0], valueSpec: { zoom: {} }, validateSpec: L.validateSpec, style: L.style, styleSpec: L.styleSpec, objectElementValidators: { zoom: Es, value: E } }));
2774
- } else B = B.concat(E({ key: `${q}[0]`, value: O[0], valueSpec: {}, validateSpec: L.validateSpec, style: L.style, styleSpec: L.styleSpec }, O));
2775
- return As(In(O[1])) ? B.concat([new Te(`${q}[1]`, O[1], "expressions are not allowed in function stops.")]) : B.concat(L.validateSpec({ key: `${q}[1]`, value: O[1], valueSpec: e, validateSpec: L.validateSpec, style: L.style, styleSpec: L.styleSpec }));
2772
+ if (d && d > Dt(O[0].zoom)) return [new Te(q, O[0].zoom, "stop zoom values must appear in ascending order")];
2773
+ Dt(O[0].zoom) !== d && (d = Dt(O[0].zoom), l = void 0, p = {}), B = B.concat(Di({ key: `${q}[0]`, value: O[0], valueSpec: { zoom: {} }, validateSpec: D.validateSpec, style: D.style, styleSpec: D.styleSpec, objectElementValidators: { zoom: Es, value: E } }));
2774
+ } else B = B.concat(E({ key: `${q}[0]`, value: O[0], valueSpec: {}, validateSpec: D.validateSpec, style: D.style, styleSpec: D.styleSpec }, O));
2775
+ return As(In(O[1])) ? B.concat([new Te(`${q}[1]`, O[1], "expressions are not allowed in function stops.")]) : B.concat(D.validateSpec({ key: `${q}[1]`, value: O[1], valueSpec: e, validateSpec: D.validateSpec, style: D.style, styleSpec: D.styleSpec }));
2776
2776
  }
2777
- function E(L, B) {
2778
- const O = yt(L.value), q = Lt(L.value), X = L.value !== null ? L.value : B;
2777
+ function E(D, B) {
2778
+ const O = yt(D.value), q = Dt(D.value), X = D.value !== null ? D.value : B;
2779
2779
  if (s) {
2780
- if (O !== s) return [new Te(L.key, X, `${O} stop domain type must match previous stop domain type ${s}`)];
2780
+ if (O !== s) return [new Te(D.key, X, `${O} stop domain type must match previous stop domain type ${s}`)];
2781
2781
  } else s = O;
2782
- if (O !== "number" && O !== "string" && O !== "boolean") return [new Te(L.key, X, "stop domain value must be a number, string, or boolean")];
2782
+ if (O !== "number" && O !== "string" && O !== "boolean") return [new Te(D.key, X, "stop domain value must be a number, string, or boolean")];
2783
2783
  if (O !== "number" && r !== "categorical") {
2784
2784
  let se = `number expected, ${O} found`;
2785
- return wn(e) && r === void 0 && (se += '\nIf you intended to use a categorical function, specify `"type": "categorical"`.'), [new Te(L.key, X, se)];
2785
+ return wn(e) && r === void 0 && (se += '\nIf you intended to use a categorical function, specify `"type": "categorical"`.'), [new Te(D.key, X, se)];
2786
2786
  }
2787
- return r !== "categorical" || O !== "number" || isFinite(q) && Math.floor(q) === q ? r !== "categorical" && O === "number" && l !== void 0 && q < l ? [new Te(L.key, X, "stop domain values must appear in ascending order")] : (l = q, r === "categorical" && q in p ? [new Te(L.key, X, "stop domain values must be unique")] : (p[q] = !0, [])) : [new Te(L.key, X, `integer expected, found ${q}`)];
2787
+ return r !== "categorical" || O !== "number" || isFinite(q) && Math.floor(q) === q ? r !== "categorical" && O === "number" && l !== void 0 && q < l ? [new Te(D.key, X, "stop domain values must appear in ascending order")] : (l = q, r === "categorical" && q in p ? [new Te(D.key, X, "stop domain values must be unique")] : (p[q] = !0, [])) : [new Te(D.key, X, `integer expected, found ${q}`)];
2788
2788
  }
2789
2789
  }
2790
2790
  function Pn(i) {
@@ -2802,35 +2802,35 @@ var bp = { exports: {} };
2802
2802
  }
2803
2803
  function Ms(i) {
2804
2804
  const e = i.key, r = i.value, s = i.valueSpec, l = [];
2805
- return Array.isArray(s.values) ? s.values.indexOf(Lt(r)) === -1 && l.push(new Te(e, r, `expected one of [${s.values.join(", ")}], ${JSON.stringify(r)} found`)) : Object.keys(s.values).indexOf(Lt(r)) === -1 && l.push(new Te(e, r, `expected one of [${Object.keys(s.values).join(", ")}], ${JSON.stringify(r)} found`)), l;
2805
+ return Array.isArray(s.values) ? s.values.indexOf(Dt(r)) === -1 && l.push(new Te(e, r, `expected one of [${s.values.join(", ")}], ${JSON.stringify(r)} found`)) : Object.keys(s.values).indexOf(Dt(r)) === -1 && l.push(new Te(e, r, `expected one of [${Object.keys(s.values).join(", ")}], ${JSON.stringify(r)} found`)), l;
2806
2806
  }
2807
2807
  function zs(i) {
2808
- return jn(In(i.value)) ? Pn(br({}, i, { expressionContext: "filter", valueSpec: { value: "boolean" } })) : Ds(i);
2808
+ return jn(In(i.value)) ? Pn(br({}, i, { expressionContext: "filter", valueSpec: { value: "boolean" } })) : Ls(i);
2809
2809
  }
2810
- function Ds(i) {
2810
+ function Ls(i) {
2811
2811
  const e = i.value, r = i.key;
2812
2812
  if (yt(e) !== "array") return [new Te(r, e, `array expected, ${yt(e)} found`)];
2813
2813
  const s = i.styleSpec;
2814
2814
  let l, d = [];
2815
2815
  if (e.length < 1) return [new Te(r, e, "filter array must have at least 1 element")];
2816
- switch (d = d.concat(Ms({ key: `${r}[0]`, value: e[0], valueSpec: s.filter_operator, style: i.style, styleSpec: i.styleSpec })), Lt(e[0])) {
2816
+ switch (d = d.concat(Ms({ key: `${r}[0]`, value: e[0], valueSpec: s.filter_operator, style: i.style, styleSpec: i.styleSpec })), Dt(e[0])) {
2817
2817
  case "<":
2818
2818
  case "<=":
2819
2819
  case ">":
2820
2820
  case ">=":
2821
- e.length >= 2 && Lt(e[1]) === "$type" && d.push(new Te(r, e, `"$type" cannot be use with operator "${e[0]}"`));
2821
+ e.length >= 2 && Dt(e[1]) === "$type" && d.push(new Te(r, e, `"$type" cannot be use with operator "${e[0]}"`));
2822
2822
  case "==":
2823
2823
  case "!=":
2824
2824
  e.length !== 3 && d.push(new Te(r, e, `filter array for operator "${e[0]}" must have 3 elements`));
2825
2825
  case "in":
2826
2826
  case "!in":
2827
2827
  e.length >= 2 && (l = yt(e[1]), l !== "string" && d.push(new Te(`${r}[1]`, e[1], `string expected, ${l} found`)));
2828
- for (let p = 2; p < e.length; p++) l = yt(e[p]), Lt(e[1]) === "$type" ? d = d.concat(Ms({ key: `${r}[${p}]`, value: e[p], valueSpec: s.geometry_type, style: i.style, styleSpec: i.styleSpec })) : l !== "string" && l !== "number" && l !== "boolean" && d.push(new Te(`${r}[${p}]`, e[p], `string, number, or boolean expected, ${l} found`));
2828
+ for (let p = 2; p < e.length; p++) l = yt(e[p]), Dt(e[1]) === "$type" ? d = d.concat(Ms({ key: `${r}[${p}]`, value: e[p], valueSpec: s.geometry_type, style: i.style, styleSpec: i.styleSpec })) : l !== "string" && l !== "number" && l !== "boolean" && d.push(new Te(`${r}[${p}]`, e[p], `string, number, or boolean expected, ${l} found`));
2829
2829
  break;
2830
2830
  case "any":
2831
2831
  case "all":
2832
2832
  case "none":
2833
- for (let p = 1; p < e.length; p++) d = d.concat(Ds({ key: `${r}[${p}]`, value: e[p], style: i.style, styleSpec: i.styleSpec }));
2833
+ for (let p = 1; p < e.length; p++) d = d.concat(Ls({ key: `${r}[${p}]`, value: e[p], style: i.style, styleSpec: i.styleSpec }));
2834
2834
  break;
2835
2835
  case "has":
2836
2836
  case "!has":
@@ -2849,7 +2849,7 @@ var bp = { exports: {} };
2849
2849
  if (yt(p) === "string" && wn(T) && !T.tokens && (P = /^{([^}]+)}$/.exec(p))) return [new Te(r, p, `"${m}" does not support interpolation syntax
2850
2850
  Use an identity property function instead: \`{ "type": "identity", "property": ${JSON.stringify(P[1])} }\`.`)];
2851
2851
  const E = [];
2852
- return i.layerType === "symbol" && (m === "text-field" && l && !l.glyphs && E.push(new Te(r, p, 'use of "text-field" requires a style "glyphs" property')), m === "text-font" && ks(In(p)) && Lt(p.type) === "identity" && E.push(new Te(r, p, '"text-font" does not support identity functions'))), E.concat(s({ key: i.key, value: p, valueSpec: T, style: l, styleSpec: d, expressionContext: "property", propertyType: e, propertyKey: m }));
2852
+ return i.layerType === "symbol" && (m === "text-field" && l && !l.glyphs && E.push(new Te(r, p, 'use of "text-field" requires a style "glyphs" property')), m === "text-font" && ks(In(p)) && Dt(p.type) === "identity" && E.push(new Te(r, p, '"text-font" does not support identity functions'))), E.concat(s({ key: i.key, value: p, valueSpec: T, style: l, styleSpec: d, expressionContext: "property", propertyType: e, propertyKey: m }));
2853
2853
  }
2854
2854
  function Ea(i) {
2855
2855
  return Ca(i, "paint");
@@ -2861,13 +2861,13 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
2861
2861
  let e = [];
2862
2862
  const r = i.value, s = i.key, l = i.style, d = i.styleSpec;
2863
2863
  r.type || r.ref || e.push(new Te(s, r, 'either "type" or "ref" is required'));
2864
- let p = Lt(r.type);
2865
- const m = Lt(r.ref);
2864
+ let p = Dt(r.type);
2865
+ const m = Dt(r.ref);
2866
2866
  if (r.id) {
2867
- const _ = Lt(r.id);
2867
+ const _ = Dt(r.id);
2868
2868
  for (let v = 0; v < i.arrayIndex; v++) {
2869
2869
  const T = l.layers[v];
2870
- Lt(T.id) === _ && e.push(new Te(s, r.id, `duplicate layer id "${r.id}", previously used at line ${T.id.__line__}`));
2870
+ Dt(T.id) === _ && e.push(new Te(s, r.id, `duplicate layer id "${r.id}", previously used at line ${T.id.__line__}`));
2871
2871
  }
2872
2872
  }
2873
2873
  if ("ref" in r) {
@@ -2875,19 +2875,19 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
2875
2875
  ["type", "source", "source-layer", "filter", "layout"].forEach((v) => {
2876
2876
  v in r && e.push(new Te(s, r[v], `"${v}" is prohibited for ref layers`));
2877
2877
  }), l.layers.forEach((v) => {
2878
- Lt(v.id) === m && (_ = v);
2879
- }), _ ? _.ref ? e.push(new Te(s, r.ref, "ref cannot reference another ref layer")) : p = Lt(_.type) : e.push(new Te(s, r.ref, `ref layer "${m}" not found`));
2878
+ Dt(v.id) === m && (_ = v);
2879
+ }), _ ? _.ref ? e.push(new Te(s, r.ref, "ref cannot reference another ref layer")) : p = Dt(_.type) : e.push(new Te(s, r.ref, `ref layer "${m}" not found`));
2880
2880
  } else if (p !== "background") if (r.source) {
2881
- const _ = l.sources && l.sources[r.source], v = _ && Lt(_.type);
2881
+ const _ = l.sources && l.sources[r.source], v = _ && Dt(_.type);
2882
2882
  _ ? v === "vector" && p === "raster" ? e.push(new Te(s, r.source, `layer "${r.id}" requires a raster source`)) : v !== "raster-dem" && p === "hillshade" ? e.push(new Te(s, r.source, `layer "${r.id}" requires a raster-dem source`)) : v === "raster" && p !== "raster" ? e.push(new Te(s, r.source, `layer "${r.id}" requires a vector source`)) : v !== "vector" || r["source-layer"] ? v === "raster-dem" && p !== "hillshade" ? e.push(new Te(s, r.source, "raster-dem source can only be used with layer type 'hillshade'.")) : p !== "line" || !r.paint || !r.paint["line-gradient"] || v === "geojson" && _.lineMetrics || e.push(new Te(s, r, `layer "${r.id}" specifies a line-gradient, which requires a GeoJSON source with \`lineMetrics\` enabled.`)) : e.push(new Te(s, r, `layer "${r.id}" must specify a "source-layer"`)) : e.push(new Te(s, r.source, `source "${r.source}" not found`));
2883
2883
  } else e.push(new Te(s, r, 'missing required property "source"'));
2884
- return e = e.concat(Li({ key: s, value: r, valueSpec: d.layer, style: i.style, styleSpec: i.styleSpec, validateSpec: i.validateSpec, objectElementValidators: { "*": () => [], type: () => i.validateSpec({ key: `${s}.type`, value: r.type, valueSpec: d.layer.type, style: i.style, styleSpec: i.styleSpec, validateSpec: i.validateSpec, object: r, objectKey: "type" }), filter: zs, layout: (_) => Li({ layer: r, key: _.key, value: _.value, style: _.style, styleSpec: _.styleSpec, validateSpec: _.validateSpec, objectElementValidators: { "*": (v) => Ma(br({ layerType: p }, v)) } }), paint: (_) => Li({ layer: r, key: _.key, value: _.value, style: _.style, styleSpec: _.styleSpec, validateSpec: _.validateSpec, objectElementValidators: { "*": (v) => Ea(br({ layerType: p }, v)) } }) } })), e;
2884
+ return e = e.concat(Di({ key: s, value: r, valueSpec: d.layer, style: i.style, styleSpec: i.styleSpec, validateSpec: i.validateSpec, objectElementValidators: { "*": () => [], type: () => i.validateSpec({ key: `${s}.type`, value: r.type, valueSpec: d.layer.type, style: i.style, styleSpec: i.styleSpec, validateSpec: i.validateSpec, object: r, objectKey: "type" }), filter: zs, layout: (_) => Di({ layer: r, key: _.key, value: _.value, style: _.style, styleSpec: _.styleSpec, validateSpec: _.validateSpec, objectElementValidators: { "*": (v) => Ma(br({ layerType: p }, v)) } }), paint: (_) => Di({ layer: r, key: _.key, value: _.value, style: _.style, styleSpec: _.styleSpec, validateSpec: _.validateSpec, objectElementValidators: { "*": (v) => Ea(br({ layerType: p }, v)) } }) } })), e;
2885
2885
  }
2886
2886
  function Vr(i) {
2887
2887
  const e = i.value, r = i.key, s = yt(e);
2888
2888
  return s !== "string" ? [new Te(r, e, `string expected, ${s} found`)] : [];
2889
2889
  }
2890
- const Da = { promoteId: function({ key: i, value: e }) {
2890
+ const La = { promoteId: function({ key: i, value: e }) {
2891
2891
  if (yt(e) === "string") return Vr({ key: i, value: e });
2892
2892
  {
2893
2893
  const r = [];
@@ -2898,41 +2898,41 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
2898
2898
  function Zl(i) {
2899
2899
  const e = i.value, r = i.key, s = i.styleSpec, l = i.style, d = i.validateSpec;
2900
2900
  if (!e.type) return [new Te(r, e, '"type" is required')];
2901
- const p = Lt(e.type);
2901
+ const p = Dt(e.type);
2902
2902
  let m;
2903
2903
  switch (p) {
2904
2904
  case "vector":
2905
2905
  case "raster":
2906
- return m = Li({ key: r, value: e, valueSpec: s[`source_${p.replace("-", "_")}`], style: i.style, styleSpec: s, objectElementValidators: Da, validateSpec: d }), m;
2906
+ return m = Di({ key: r, value: e, valueSpec: s[`source_${p.replace("-", "_")}`], style: i.style, styleSpec: s, objectElementValidators: La, validateSpec: d }), m;
2907
2907
  case "raster-dem":
2908
2908
  return m = function(_) {
2909
2909
  var v;
2910
- const T = (v = _.sourceName) !== null && v !== void 0 ? v : "", P = _.value, E = _.styleSpec, L = E.source_raster_dem, B = _.style;
2910
+ const T = (v = _.sourceName) !== null && v !== void 0 ? v : "", P = _.value, E = _.styleSpec, D = E.source_raster_dem, B = _.style;
2911
2911
  let O = [];
2912
2912
  const q = yt(P);
2913
2913
  if (P === void 0) return O;
2914
2914
  if (q !== "object") return O.push(new Te("source_raster_dem", P, `object expected, ${q} found`)), O;
2915
- const X = Lt(P.encoding) === "custom", se = ["redFactor", "greenFactor", "blueFactor", "baseShift"], Y = _.value.encoding ? `"${_.value.encoding}"` : "Default";
2916
- for (const ie in P) !X && se.includes(ie) ? O.push(new Te(ie, P[ie], `In "${T}": "${ie}" is only valid when "encoding" is set to "custom". ${Y} encoding found`)) : L[ie] ? O = O.concat(_.validateSpec({ key: ie, value: P[ie], valueSpec: L[ie], validateSpec: _.validateSpec, style: B, styleSpec: E })) : O.push(new Te(ie, P[ie], `unknown property "${ie}"`));
2915
+ const X = Dt(P.encoding) === "custom", se = ["redFactor", "greenFactor", "blueFactor", "baseShift"], Y = _.value.encoding ? `"${_.value.encoding}"` : "Default";
2916
+ for (const ie in P) !X && se.includes(ie) ? O.push(new Te(ie, P[ie], `In "${T}": "${ie}" is only valid when "encoding" is set to "custom". ${Y} encoding found`)) : D[ie] ? O = O.concat(_.validateSpec({ key: ie, value: P[ie], valueSpec: D[ie], validateSpec: _.validateSpec, style: B, styleSpec: E })) : O.push(new Te(ie, P[ie], `unknown property "${ie}"`));
2917
2917
  return O;
2918
2918
  }({ sourceName: r, value: e, style: i.style, styleSpec: s, validateSpec: d }), m;
2919
2919
  case "geojson":
2920
- if (m = Li({ key: r, value: e, valueSpec: s.source_geojson, style: l, styleSpec: s, validateSpec: d, objectElementValidators: Da }), e.cluster) for (const _ in e.clusterProperties) {
2920
+ if (m = Di({ key: r, value: e, valueSpec: s.source_geojson, style: l, styleSpec: s, validateSpec: d, objectElementValidators: La }), e.cluster) for (const _ in e.clusterProperties) {
2921
2921
  const [v, T] = e.clusterProperties[_], P = typeof v == "string" ? [v, ["accumulated"], ["get", _]] : v;
2922
2922
  m.push(...Pn({ key: `${r}.${_}.map`, value: T, validateSpec: d, expressionContext: "cluster-map" })), m.push(...Pn({ key: `${r}.${_}.reduce`, value: P, validateSpec: d, expressionContext: "cluster-reduce" }));
2923
2923
  }
2924
2924
  return m;
2925
2925
  case "video":
2926
- return Li({ key: r, value: e, valueSpec: s.source_video, style: l, validateSpec: d, styleSpec: s });
2926
+ return Di({ key: r, value: e, valueSpec: s.source_video, style: l, validateSpec: d, styleSpec: s });
2927
2927
  case "image":
2928
- return Li({ key: r, value: e, valueSpec: s.source_image, style: l, validateSpec: d, styleSpec: s });
2928
+ return Di({ key: r, value: e, valueSpec: s.source_image, style: l, validateSpec: d, styleSpec: s });
2929
2929
  case "canvas":
2930
2930
  return [new Te(r, null, "Please use runtime APIs to add canvas sources, rather than including them in stylesheets.", "source.canvas")];
2931
2931
  default:
2932
2932
  return Ms({ key: `${r}.type`, value: e.type, valueSpec: { values: ["vector", "raster", "raster-dem", "geojson", "video", "image"] }, style: l, validateSpec: d, styleSpec: s });
2933
2933
  }
2934
2934
  }
2935
- function La(i) {
2935
+ function Da(i) {
2936
2936
  const e = i.value, r = i.styleSpec, s = r.light, l = i.style;
2937
2937
  let d = [];
2938
2938
  const p = yt(e);
@@ -2966,7 +2966,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
2966
2966
  const r = i.value, s = i.key;
2967
2967
  if (Array.isArray(r)) {
2968
2968
  const l = [], d = [];
2969
- for (const p in r) r[p].id && l.includes(r[p].id) && e.push(new Te(s, r, `all the sprites' ids must be unique, but ${r[p].id} is duplicated`)), l.push(r[p].id), r[p].url && d.includes(r[p].url) && e.push(new Te(s, r, `all the sprites' URLs must be unique, but ${r[p].url} is duplicated`)), d.push(r[p].url), e = e.concat(Li({ key: `${s}[${p}]`, value: r[p], valueSpec: { id: { type: "string", required: !0 }, url: { type: "string", required: !0 } }, validateSpec: i.validateSpec }));
2969
+ for (const p in r) r[p].id && l.includes(r[p].id) && e.push(new Te(s, r, `all the sprites' ids must be unique, but ${r[p].id} is duplicated`)), l.push(r[p].id), r[p].url && d.includes(r[p].url) && e.push(new Te(s, r, `all the sprites' URLs must be unique, but ${r[p].url} is duplicated`)), d.push(r[p].url), e = e.concat(Di({ key: `${s}[${p}]`, value: r[p], valueSpec: { id: { type: "string", required: !0 }, url: { type: "string", required: !0 } }, validateSpec: i.validateSpec }));
2970
2970
  return e;
2971
2971
  }
2972
2972
  return Vr({ key: s, value: r });
@@ -2977,7 +2977,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
2977
2977
  }, number: Es, color: function(i) {
2978
2978
  const e = i.key, r = i.value, s = yt(r);
2979
2979
  return s !== "string" ? [new Te(e, r, `color expected, ${s} found`)] : St.parse(String(r)) ? [] : [new Te(e, r, `color expected, "${r}" found`)];
2980
- }, constants: ql, enum: Ms, filter: zs, function: Aa, layer: za, object: Li, source: Zl, light: La, sky: Gl, terrain: Ra, projection: function(i) {
2980
+ }, constants: ql, enum: Ms, filter: zs, function: Aa, layer: za, object: Di, source: Zl, light: Da, sky: Gl, terrain: Ra, projection: function(i) {
2981
2981
  const e = i.value, r = i.styleSpec, s = r.projection, l = i.style, d = yt(e);
2982
2982
  if (e === void 0) return [];
2983
2983
  if (d !== "object") return [new Te("projection", e, `object expected, ${d} found`)];
@@ -3005,9 +3005,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
3005
3005
  for (let p = 0; p < r.length; p += 2) d = d.concat(Ms({ key: `${e}[${p}]`, value: r[p], valueSpec: l.layout_symbol["text-anchor"] })), d = d.concat(Po({ key: `${e}[${p + 1}]`, value: r[p + 1], valueSpec: { length: 2, value: "number" }, validateSpec: i.validateSpec, style: i.style, styleSpec: l }));
3006
3006
  return d;
3007
3007
  }, sprite: Ba };
3008
- function Ls(i) {
3008
+ function Ds(i) {
3009
3009
  const e = i.value, r = i.valueSpec, s = i.styleSpec;
3010
- return i.validateSpec = Ls, r.expression && ks(Lt(e)) ? Aa(i) : r.expression && As(In(e)) ? Pn(i) : r.type && Fa[r.type] ? Fa[r.type](i) : Li(br({}, i, { valueSpec: r.type ? s[r.type] : r }));
3010
+ return i.validateSpec = Ds, r.expression && ks(Dt(e)) ? Aa(i) : r.expression && As(In(e)) ? Pn(i) : r.type && Fa[r.type] ? Fa[r.type](i) : Di(br({}, i, { valueSpec: r.type ? s[r.type] : r }));
3011
3011
  }
3012
3012
  function Hl(i) {
3013
3013
  const e = i.value, r = i.key, s = Vr(i);
@@ -3015,11 +3015,11 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
3015
3015
  }
3016
3016
  function er(i, e = he) {
3017
3017
  let r = [];
3018
- return r = r.concat(Ls({ key: "", value: i, valueSpec: e.$root, styleSpec: e, style: i, validateSpec: Ls, objectElementValidators: { glyphs: Hl, "*": () => [] } })), i.constants && (r = r.concat(ql({ key: "constants", value: i.constants, style: i, styleSpec: e, validateSpec: Ls }))), Oa(r);
3018
+ return r = r.concat(Ds({ key: "", value: i, valueSpec: e.$root, styleSpec: e, style: i, validateSpec: Ds, objectElementValidators: { glyphs: Hl, "*": () => [] } })), i.constants && (r = r.concat(ql({ key: "constants", value: i.constants, style: i, styleSpec: e, validateSpec: Ds }))), Oa(r);
3019
3019
  }
3020
3020
  function or(i) {
3021
3021
  return function(e) {
3022
- return i({ ...e, validateSpec: Ls });
3022
+ return i({ ...e, validateSpec: Ds });
3023
3023
  };
3024
3024
  }
3025
3025
  function Oa(i) {
@@ -3030,7 +3030,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
3030
3030
  return Oa(i.apply(this, e));
3031
3031
  };
3032
3032
  }
3033
- er.source = ar(or(Zl)), er.sprite = ar(or(Ba)), er.glyphs = ar(or(Hl)), er.light = ar(or(La)), er.sky = ar(or(Gl)), er.terrain = ar(or(Ra)), er.layer = ar(or(za)), er.filter = ar(or(zs)), er.paintProperty = ar(or(Ea)), er.layoutProperty = ar(or(Ma));
3033
+ er.source = ar(or(Zl)), er.sprite = ar(or(Ba)), er.glyphs = ar(or(Hl)), er.light = ar(or(Da)), er.sky = ar(or(Gl)), er.terrain = ar(or(Ra)), er.layer = ar(or(za)), er.filter = ar(or(zs)), er.paintProperty = ar(or(Ea)), er.layoutProperty = ar(or(Ma));
3034
3034
  const Nr = er, Qc = Nr.light, Va = Nr.sky, eh = Nr.paintProperty, th = Nr.layoutProperty;
3035
3035
  function Na(i, e) {
3036
3036
  let r = !1;
@@ -3081,19 +3081,19 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
3081
3081
  if (v !== null) {
3082
3082
  const T = this.keys, P = this.bboxes;
3083
3083
  for (let E = 0; E < v.length; E++) {
3084
- const L = v[E];
3085
- if (m[L] === void 0) {
3086
- const B = 4 * L;
3087
- (_ ? _(P[B + 0], P[B + 1], P[B + 2], P[B + 3]) : e <= P[B + 2] && r <= P[B + 3] && s >= P[B + 0] && l >= P[B + 1]) ? (m[L] = !0, p.push(T[L])) : m[L] = !1;
3084
+ const D = v[E];
3085
+ if (m[D] === void 0) {
3086
+ const B = 4 * D;
3087
+ (_ ? _(P[B + 0], P[B + 1], P[B + 2], P[B + 3]) : e <= P[B + 2] && r <= P[B + 3] && s >= P[B + 0] && l >= P[B + 1]) ? (m[D] = !0, p.push(T[D])) : m[D] = !1;
3088
3088
  }
3089
3089
  }
3090
3090
  }
3091
3091
  }
3092
3092
  _forEachCell(e, r, s, l, d, p, m, _) {
3093
3093
  const v = this._convertToCellCoord(e), T = this._convertToCellCoord(r), P = this._convertToCellCoord(s), E = this._convertToCellCoord(l);
3094
- for (let L = v; L <= P; L++) for (let B = T; B <= E; B++) {
3095
- const O = this.d * B + L;
3096
- if ((!_ || _(this._convertFromCellCoord(L), this._convertFromCellCoord(B), this._convertFromCellCoord(L + 1), this._convertFromCellCoord(B + 1))) && d.call(this, e, r, s, l, O, p, m, _)) return;
3094
+ for (let D = v; D <= P; D++) for (let B = T; B <= E; B++) {
3095
+ const O = this.d * B + D;
3096
+ if ((!_ || _(this._convertFromCellCoord(D), this._convertFromCellCoord(B), this._convertFromCellCoord(D + 1), this._convertFromCellCoord(B + 1))) && d.call(this, e, r, s, l, O, p, m, _)) 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, m, _, v, T, P, E) {
3754
- const L = this.length;
3755
- return this.resize(L + 1), this.emplace(L, e, r, s, l, d, p, m, _, v, T, P, E);
3754
+ const D = this.length;
3755
+ return this.resize(D + 1), this.emplace(D, e, r, s, l, d, p, m, _, v, T, P, E);
3756
3756
  }
3757
- emplace(e, r, s, l, d, p, m, _, v, T, P, E, L) {
3757
+ emplace(e, r, s, l, d, p, m, _, v, T, P, E, D) {
3758
3758
  const B = 12 * e;
3759
- return this.int16[B + 0] = r, this.int16[B + 1] = s, this.int16[B + 2] = l, this.int16[B + 3] = d, this.uint16[B + 4] = p, this.uint16[B + 5] = m, this.uint16[B + 6] = _, this.uint16[B + 7] = v, this.int16[B + 8] = T, this.int16[B + 9] = P, this.int16[B + 10] = E, this.int16[B + 11] = L, e;
3759
+ return this.int16[B + 0] = r, this.int16[B + 1] = s, this.int16[B + 2] = l, this.int16[B + 3] = d, this.uint16[B + 4] = p, this.uint16[B + 5] = m, this.uint16[B + 6] = _, this.uint16[B + 7] = v, this.int16[B + 8] = T, this.int16[B + 9] = P, this.int16[B + 10] = E, this.int16[B + 11] = D, e;
3760
3760
  }
3761
3761
  }
3762
3762
  K.prototype.bytesPerElement = 24, Fe("StructArrayLayout4i4ui4i24", K);
@@ -3857,31 +3857,31 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
3857
3857
  }
3858
3858
  }
3859
3859
  ze.prototype.bytesPerElement = 6, Fe("StructArrayLayout3ui6", ze);
3860
- class Le extends b {
3860
+ class De extends b {
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, m, _, v, T, P, E, L, B, O, q, X) {
3864
+ emplaceBack(e, r, s, l, d, p, m, _, v, T, P, E, D, B, O, q, X) {
3865
3865
  const se = this.length;
3866
- return this.resize(se + 1), this.emplace(se, e, r, s, l, d, p, m, _, v, T, P, E, L, B, O, q, X);
3866
+ return this.resize(se + 1), this.emplace(se, e, r, s, l, d, p, m, _, v, T, P, E, D, B, O, q, X);
3867
3867
  }
3868
- emplace(e, r, s, l, d, p, m, _, v, T, P, E, L, B, O, q, X, se) {
3868
+ emplace(e, r, s, l, d, p, m, _, v, T, P, E, D, B, O, q, X, 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] = m, this.uint32[ie + 4] = _, this.uint16[Y + 10] = v, this.uint16[Y + 11] = T, this.uint16[Y + 12] = P, this.float32[ie + 7] = E, this.float32[ie + 8] = L, this.uint8[ue + 36] = B, this.uint8[ue + 37] = O, this.uint8[ue + 38] = q, this.uint32[ie + 10] = X, 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] = m, this.uint32[ie + 4] = _, this.uint16[Y + 10] = v, this.uint16[Y + 11] = T, this.uint16[Y + 12] = P, this.float32[ie + 7] = E, this.float32[ie + 8] = D, this.uint8[ue + 36] = B, this.uint8[ue + 37] = O, this.uint8[ue + 38] = q, this.uint32[ie + 10] = X, this.int16[Y + 22] = se, e;
3871
3871
  }
3872
3872
  }
3873
- Le.prototype.bytesPerElement = 48, Fe("StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48", Le);
3873
+ De.prototype.bytesPerElement = 48, Fe("StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48", De);
3874
3874
  class we extends b {
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, m, _, v, T, P, E, L, B, O, q, X, se, Y, ie, ue, ve, De, Xe, Ee, Ae, je, Ve) {
3878
+ emplaceBack(e, r, s, l, d, p, m, _, v, T, P, E, D, B, O, q, X, se, Y, ie, ue, ve, Le, Xe, Ee, Ae, je, Ve) {
3879
3879
  const Be = this.length;
3880
- return this.resize(Be + 1), this.emplace(Be, e, r, s, l, d, p, m, _, v, T, P, E, L, B, O, q, X, se, Y, ie, ue, ve, De, Xe, Ee, Ae, je, Ve);
3880
+ return this.resize(Be + 1), this.emplace(Be, e, r, s, l, d, p, m, _, v, T, P, E, D, B, O, q, X, se, Y, ie, ue, ve, Le, Xe, Ee, Ae, je, Ve);
3881
3881
  }
3882
- emplace(e, r, s, l, d, p, m, _, v, T, P, E, L, B, O, q, X, se, Y, ie, ue, ve, De, Xe, Ee, Ae, je, Ve, Be) {
3882
+ emplace(e, r, s, l, d, p, m, _, v, T, P, E, D, B, O, q, X, se, Y, ie, ue, ve, Le, Xe, Ee, Ae, je, Ve, Be) {
3883
3883
  const ge = 32 * e, Ze = 16 * e;
3884
- return this.int16[ge + 0] = r, this.int16[ge + 1] = s, this.int16[ge + 2] = l, this.int16[ge + 3] = d, this.int16[ge + 4] = p, this.int16[ge + 5] = m, this.int16[ge + 6] = _, this.int16[ge + 7] = v, this.uint16[ge + 8] = T, this.uint16[ge + 9] = P, this.uint16[ge + 10] = E, this.uint16[ge + 11] = L, this.uint16[ge + 12] = B, this.uint16[ge + 13] = O, this.uint16[ge + 14] = q, this.uint16[ge + 15] = X, this.uint16[ge + 16] = se, this.uint16[ge + 17] = Y, this.uint16[ge + 18] = ie, this.uint16[ge + 19] = ue, this.uint16[ge + 20] = ve, this.uint16[ge + 21] = De, this.uint16[ge + 22] = Xe, this.uint32[Ze + 12] = Ee, this.float32[Ze + 13] = Ae, this.float32[Ze + 14] = je, this.uint16[ge + 30] = Ve, this.uint16[ge + 31] = Be, e;
3884
+ return this.int16[ge + 0] = r, this.int16[ge + 1] = s, this.int16[ge + 2] = l, this.int16[ge + 3] = d, this.int16[ge + 4] = p, this.int16[ge + 5] = m, this.int16[ge + 6] = _, this.int16[ge + 7] = v, this.uint16[ge + 8] = T, this.uint16[ge + 9] = P, this.uint16[ge + 10] = E, this.uint16[ge + 11] = D, this.uint16[ge + 12] = B, this.uint16[ge + 13] = O, this.uint16[ge + 14] = q, this.uint16[ge + 15] = X, this.uint16[ge + 16] = se, this.uint16[ge + 17] = Y, this.uint16[ge + 18] = ie, this.uint16[ge + 19] = ue, this.uint16[ge + 20] = ve, this.uint16[ge + 21] = Le, this.uint16[ge + 22] = Xe, this.uint32[Ze + 12] = Ee, this.float32[Ze + 13] = Ae, this.float32[Ze + 14] = je, this.uint16[ge + 30] = Ve, this.uint16[ge + 31] = Be, e;
3885
3885
  }
3886
3886
  }
3887
3887
  we.prototype.bytesPerElement = 64, Fe("StructArrayLayout8i15ui1ul2f2ui64", we);
@@ -4069,7 +4069,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
4069
4069
  }
4070
4070
  }
4071
4071
  dt.prototype.size = 48;
4072
- class Bt extends Le {
4072
+ class Bt extends De {
4073
4073
  get(e) {
4074
4074
  return new dt(this, e);
4075
4075
  }
@@ -4306,7 +4306,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
4306
4306
  };
4307
4307
  var Xa = ic, Ja = Wa.exports;
4308
4308
  zo.exports = Xa, zo.exports.murmur3 = Xa, zo.exports.murmur2 = Ja;
4309
- var Do = pe(zo.exports);
4309
+ var Lo = pe(zo.exports);
4310
4310
  class Yn {
4311
4311
  constructor() {
4312
4312
  this.ids = [], this.positions = [], this.indexed = !1;
@@ -4337,7 +4337,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
4337
4337
  }
4338
4338
  function hu(i) {
4339
4339
  const e = +i;
4340
- return !isNaN(e) && e <= Number.MAX_SAFE_INTEGER ? e : Do(String(i));
4340
+ return !isNaN(e) && e <= Number.MAX_SAFE_INTEGER ? e : Lo(String(i));
4341
4341
  }
4342
4342
  function rh(i, e, r, s) {
4343
4343
  for (; r < s; ) {
@@ -4405,7 +4405,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
4405
4405
  return this.type === "color" ? new du(e, r) : new nc(e, r);
4406
4406
  }
4407
4407
  }
4408
- class Lo {
4408
+ class Do {
4409
4409
  constructor(e, r) {
4410
4410
  this.uniformNames = r.map((s) => `u_${s}`), this.patternFrom = null, this.patternTo = null, this.pixelRatioFrom = 1, this.pixelRatioTo = 1;
4411
4411
  }
@@ -4515,13 +4515,13 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
4515
4515
  const p = e.paint.get(d);
4516
4516
  if (!(p instanceof Ar && wn(p.property.specification))) continue;
4517
4517
  const m = Kp(d, e.type), _ = p.value, v = p.property.specification.type, T = p.property.useIntegerZoom, P = p.property.specification["property-type"], E = P === "cross-faded" || P === "cross-faded-data-driven";
4518
- if (_.kind === "constant") this.binders[d] = E ? new Lo(_.value, m) : new Ka(_.value, m, v), l.push(`/u_${d}`);
4518
+ if (_.kind === "constant") this.binders[d] = E ? new Do(_.value, m) : new Ka(_.value, m, v), l.push(`/u_${d}`);
4519
4519
  else if (_.kind === "source" || E) {
4520
- const L = fu(d, v, "source");
4521
- this.binders[d] = E ? new Qn(_, v, T, r, L, e.id) : new Cn(_, m, v, L), l.push(`/a_${d}`);
4520
+ const D = fu(d, v, "source");
4521
+ this.binders[d] = E ? new Qn(_, v, T, r, D, e.id) : new Cn(_, m, v, D), l.push(`/a_${d}`);
4522
4522
  } else {
4523
- const L = fu(d, v, "composite");
4524
- this.binders[d] = new $r(_, m, v, T, r, L), l.push(`/z_${d}`);
4523
+ const D = fu(d, v, "composite");
4524
+ this.binders[d] = new $r(_, m, v, T, r, D), l.push(`/z_${d}`);
4525
4525
  }
4526
4526
  }
4527
4527
  this.cacheKey = l.sort().join("");
@@ -4539,7 +4539,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
4539
4539
  setConstantPatternPositions(e, r) {
4540
4540
  for (const s in this.binders) {
4541
4541
  const l = this.binders[s];
4542
- l instanceof Lo && l.setConstantPatternPositions(e, r);
4542
+ l instanceof Do && l.setConstantPatternPositions(e, r);
4543
4543
  }
4544
4544
  }
4545
4545
  updatePaintArrays(e, r, s, l, d) {
@@ -4551,8 +4551,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
4551
4551
  for (const P in this.binders) {
4552
4552
  const E = this.binders[P];
4553
4553
  if ((E instanceof Cn || E instanceof $r || E instanceof Qn) && E.expression.isStateDependent === !0) {
4554
- const L = l.paint.get(P);
4555
- E.expression = L.value, E.updatePaintArray(v.start, v.end, T, e[m], d), p = !0;
4554
+ const D = l.paint.get(P);
4555
+ E.expression = D.value, E.updatePaintArray(v.start, v.end, T, e[m], d), p = !0;
4556
4556
  }
4557
4557
  }
4558
4558
  }
@@ -4563,7 +4563,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
4563
4563
  const e = [];
4564
4564
  for (const r in this.binders) {
4565
4565
  const s = this.binders[r];
4566
- (s instanceof Ka || s instanceof Lo) && e.push(...s.uniformNames.map((l) => `#define HAS_UNIFORM_${l}`));
4566
+ (s instanceof Ka || s instanceof Do) && e.push(...s.uniformNames.map((l) => `#define HAS_UNIFORM_${l}`));
4567
4567
  }
4568
4568
  return e;
4569
4569
  }
@@ -4580,7 +4580,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
4580
4580
  const e = [];
4581
4581
  for (const r in this.binders) {
4582
4582
  const s = this.binders[r];
4583
- if (s instanceof Ka || s instanceof Lo || s instanceof $r) for (const l of s.uniformNames) e.push(l);
4583
+ if (s instanceof Ka || s instanceof Do || s instanceof $r) for (const l of s.uniformNames) e.push(l);
4584
4584
  }
4585
4585
  return e;
4586
4586
  }
@@ -4591,7 +4591,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
4591
4591
  const s = [];
4592
4592
  for (const l in this.binders) {
4593
4593
  const d = this.binders[l];
4594
- if (d instanceof Ka || d instanceof Lo || d instanceof $r) {
4594
+ if (d instanceof Ka || d instanceof Do || d instanceof $r) {
4595
4595
  for (const p of d.uniformNames) if (r[p]) {
4596
4596
  const m = d.getBinding(e, r[p], p);
4597
4597
  s.push({ name: p, property: l, binding: m });
@@ -4662,7 +4662,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
4662
4662
  }(i);
4663
4663
  return l && l[r] || s[e][r];
4664
4664
  }
4665
- Fe("ConstantBinder", Ka), Fe("CrossFadedConstantBinder", Lo), Fe("SourceExpressionBinder", Cn), Fe("CrossFadedCompositeBinder", Qn), Fe("CompositeExpressionBinder", $r), Fe("ProgramConfiguration", pu, { omit: ["_buffers"] }), Fe("ProgramConfigurationSet", Os);
4665
+ Fe("ConstantBinder", Ka), Fe("CrossFadedConstantBinder", Do), Fe("SourceExpressionBinder", Cn), Fe("CrossFadedCompositeBinder", Qn), Fe("CompositeExpressionBinder", $r), Fe("ProgramConfiguration", pu, { omit: ["_buffers"] }), Fe("ProgramConfigurationSet", Os);
4666
4666
  const ti = 8192, sh = Math.pow(2, 14) - 1, mu = -sh - 1;
4667
4667
  function Vs(i) {
4668
4668
  const e = ti / i.extent, r = i.loadGeometry();
@@ -4690,9 +4690,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
4690
4690
  let p = null, m = !1;
4691
4691
  l.type === "circle" && (p = l.layout.get("circle-sort-key"), m = !p.isConstant());
4692
4692
  for (const { feature: _, id: v, index: T, sourceLayerIndex: P } of e) {
4693
- const E = this.layers[0]._featureFilter.needGeometry, L = Ns(_, E);
4694
- if (!this.layers[0]._featureFilter.filter(new Mt(this.zoom), L, s)) continue;
4695
- const B = m ? p.evaluate(L, {}, s) : void 0, O = { id: v, properties: _.properties, type: _.type, sourceLayerIndex: P, index: T, geometry: E ? L.geometry : Vs(_), patterns: {}, sortKey: B };
4693
+ const E = this.layers[0]._featureFilter.needGeometry, D = Ns(_, E);
4694
+ if (!this.layers[0]._featureFilter.filter(new Mt(this.zoom), D, s)) continue;
4695
+ const B = m ? p.evaluate(D, {}, s) : void 0, O = { id: v, properties: _.properties, type: _.type, sourceLayerIndex: P, index: T, geometry: E ? D.geometry : Vs(_), patterns: {}, sortKey: B };
4696
4696
  d.push(O);
4697
4697
  }
4698
4698
  m && d.sort((_, v) => _.sortKey - v.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 wu(i, e, r) {
4826
- var s = e[0], l = e[1], d = e[2], p = e[3], m = e[4], _ = e[5], v = e[6], T = e[7], P = e[8], E = e[9], L = e[10], B = e[11], O = e[12], q = e[13], X = e[14], se = e[15], Y = r[0], ie = r[1], ue = r[2], ve = r[3];
4827
- return i[0] = Y * s + ie * m + ue * P + ve * O, i[1] = Y * l + ie * _ + ue * E + ve * q, i[2] = Y * d + ie * v + ue * L + ve * X, i[3] = Y * p + ie * T + ue * B + ve * se, i[4] = (Y = r[4]) * s + (ie = r[5]) * m + (ue = r[6]) * P + (ve = r[7]) * O, i[5] = Y * l + ie * _ + ue * E + ve * q, i[6] = Y * d + ie * v + ue * L + ve * X, i[7] = Y * p + ie * T + ue * B + ve * se, i[8] = (Y = r[8]) * s + (ie = r[9]) * m + (ue = r[10]) * P + (ve = r[11]) * O, i[9] = Y * l + ie * _ + ue * E + ve * q, i[10] = Y * d + ie * v + ue * L + ve * X, i[11] = Y * p + ie * T + ue * B + ve * se, i[12] = (Y = r[12]) * s + (ie = r[13]) * m + (ue = r[14]) * P + (ve = r[15]) * O, i[13] = Y * l + ie * _ + ue * E + ve * q, i[14] = Y * d + ie * v + ue * L + ve * X, i[15] = Y * p + ie * T + ue * B + ve * se, i;
4826
+ var s = e[0], l = e[1], d = e[2], p = e[3], m = e[4], _ = e[5], v = e[6], T = e[7], P = e[8], E = e[9], D = e[10], B = e[11], O = e[12], q = e[13], X = e[14], se = e[15], Y = r[0], ie = r[1], ue = r[2], ve = r[3];
4827
+ return i[0] = Y * s + ie * m + ue * P + ve * O, i[1] = Y * l + ie * _ + ue * E + ve * q, i[2] = Y * d + ie * v + ue * D + ve * X, i[3] = Y * p + ie * T + ue * B + ve * se, i[4] = (Y = r[4]) * s + (ie = r[5]) * m + (ue = r[6]) * P + (ve = r[7]) * O, i[5] = Y * l + ie * _ + ue * E + ve * q, i[6] = Y * d + ie * v + ue * D + ve * X, i[7] = Y * p + ie * T + ue * B + ve * se, i[8] = (Y = r[8]) * s + (ie = r[9]) * m + (ue = r[10]) * P + (ve = r[11]) * O, i[9] = Y * l + ie * _ + ue * E + ve * q, i[10] = Y * d + ie * v + ue * D + ve * X, i[11] = Y * p + ie * T + ue * B + ve * se, i[12] = (Y = r[12]) * s + (ie = r[13]) * m + (ue = r[14]) * P + (ve = r[15]) * O, i[13] = Y * l + ie * _ + ue * E + ve * q, i[14] = Y * d + ie * v + ue * D + ve * X, i[15] = Y * p + ie * T + ue * B + ve * 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, m, _) {
4851
4851
  const v = ac(e, this.paint.get("circle-translate"), this.paint.get("circle-translate-anchor"), p.angle, m), T = this.paint.get("circle-radius").evaluate(r, s) + this.paint.get("circle-stroke-width").evaluate(r, s), P = this.paint.get("circle-pitch-alignment") === "map", E = P ? v : function(B, O) {
4852
4852
  return B.map((q) => Su(q, O));
4853
- }(v, _), L = P ? T * m : T;
4853
+ }(v, _), D = P ? T * m : T;
4854
4854
  for (const B of l) for (const O of B) {
4855
4855
  const q = P ? O : Su(O, _);
4856
- let X = L;
4856
+ let X = D;
4857
4857
  const se = lc([], [O.x, O.y, 0, 1], _);
4858
4858
  if (this.paint.get("circle-pitch-scale") === "viewport" && this.paint.get("circle-pitch-alignment") === "map" ? X *= se[3] / p.cameraToCenterDistance : this.paint.get("circle-pitch-scale") === "map" && this.paint.get("circle-pitch-alignment") === "viewport" && (X *= p.cameraToCenterDistance / se[3]), Yp(E, q, X)) 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 m, _, v;
4990
- if (s && (d = function(T, P, E, L) {
4990
+ if (s && (d = function(T, P, E, D) {
4991
4991
  const B = [];
4992
4992
  for (let O = 0, q = P.length; O < q; O++) {
4993
- const X = Eu(T, P[O] * L, O < q - 1 ? P[O + 1] * L : T.length, L, !1);
4993
+ const X = Eu(T, P[O] * D, O < q - 1 ? P[O + 1] * D : T.length, D, !1);
4994
4994
  X === X.next && (X.steiner = !0), B.push(xf(X));
4995
4995
  }
4996
4996
  B.sort(gf);
@@ -5000,8 +5000,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
5000
5000
  m = 1 / 0, _ = 1 / 0;
5001
5001
  let T = -1 / 0, P = -1 / 0;
5002
5002
  for (let E = r; E < l; E += r) {
5003
- const L = i[E], B = i[E + 1];
5004
- L < m && (m = L), B < _ && (_ = B), L > T && (T = L), B > P && (P = B);
5003
+ const D = i[E], B = i[E + 1];
5004
+ D < m && (m = D), B < _ && (_ = B), D > T && (T = D), B > P && (P = B);
5005
5005
  }
5006
5006
  v = Math.max(T - m, P - _), v = v !== 0 ? 32767 / v : 0;
5007
5007
  }
@@ -5013,8 +5013,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
5013
5013
  let T = 0;
5014
5014
  for (let P = m, E = _ - v; P < _; P += v) T += (p[E] - p[P]) * (p[P + 1] + p[E + 1]), E = P;
5015
5015
  return T;
5016
- }(i, e, r, s) > 0) for (let p = e; p < r; p += s) d = Du(p / s | 0, i[p], i[p + 1], d);
5017
- else for (let p = r - s; p >= e; p -= s) d = Du(p / s | 0, i[p], i[p + 1], d);
5016
+ }(i, e, r, s) > 0) for (let p = e; p < r; p += s) d = Lu(p / s | 0, i[p], i[p + 1], d);
5017
+ else for (let p = r - s; p >= e; p -= s) d = Lu(p / s | 0, i[p], i[p + 1], d);
5018
5018
  return d && cc(d, d.next) && (rl(d), d = d.next), d;
5019
5019
  }
5020
5020
  function $s(i, e) {
@@ -5037,18 +5037,18 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
5037
5037
  do
5038
5038
  E.z === 0 && (E.z = dh(E.x, E.y, v, T, P)), E.prevZ = E.prev, E.nextZ = E.next, E = E.next;
5039
5039
  while (E !== _);
5040
- E.prevZ.nextZ = null, E.prevZ = null, function(L) {
5040
+ E.prevZ.nextZ = null, E.prevZ = null, function(D) {
5041
5041
  let B, O = 1;
5042
5042
  do {
5043
- let q, X = L;
5044
- L = null;
5043
+ let q, X = D;
5044
+ D = null;
5045
5045
  let se = null;
5046
5046
  for (B = 0; X; ) {
5047
5047
  B++;
5048
5048
  let Y = X, ie = 0;
5049
5049
  for (let ve = 0; ve < O && (ie++, Y = Y.nextZ, Y); ve++) ;
5050
5050
  let ue = O;
5051
- for (; ie > 0 || ue > 0 && Y; ) ie !== 0 && (ue === 0 || !Y || X.z <= Y.z) ? (q = X, X = X.nextZ, ie--) : (q = Y, Y = Y.nextZ, ue--), se ? se.nextZ = q : L = q, q.prevZ = se, se = q;
5051
+ for (; ie > 0 || ue > 0 && Y; ) ie !== 0 && (ue === 0 || !Y || X.z <= Y.z) ? (q = X, X = X.nextZ, ie--) : (q = Y, Y = Y.nextZ, ue--), se ? se.nextZ = q : D = q, q.prevZ = se, se = q;
5052
5052
  X = Y;
5053
5053
  }
5054
5054
  se.nextZ = null, O *= 2;
@@ -5068,10 +5068,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
5068
5068
  function df(i) {
5069
5069
  const e = i.prev, r = i, s = i.next;
5070
5070
  if (Yt(e, r, s) >= 0) return !1;
5071
- const l = e.x, d = r.x, p = s.x, m = e.y, _ = r.y, v = s.y, T = l < d ? l < p ? l : p : d < p ? d : p, P = m < _ ? m < v ? m : v : _ < v ? _ : v, E = l > d ? l > p ? l : p : d > p ? d : p, L = m > _ ? m > v ? m : v : _ > v ? _ : v;
5071
+ const l = e.x, d = r.x, p = s.x, m = e.y, _ = r.y, v = s.y, T = l < d ? l < p ? l : p : d < p ? d : p, P = m < _ ? m < v ? m : v : _ < v ? _ : v, E = l > d ? l > p ? l : p : d > p ? d : p, D = m > _ ? m > v ? m : v : _ > v ? _ : v;
5072
5072
  let B = s.next;
5073
5073
  for (; B !== e; ) {
5074
- if (B.x >= T && B.x <= E && B.y >= P && B.y <= L && Fo(l, m, d, _, p, v, B.x, B.y) && Yt(B.prev, B, B.next) >= 0) return !1;
5074
+ if (B.x >= T && B.x <= E && B.y >= P && B.y <= D && Fo(l, m, d, _, p, v, B.x, B.y) && Yt(B.prev, B, B.next) >= 0) return !1;
5075
5075
  B = B.next;
5076
5076
  }
5077
5077
  return !0;
@@ -5079,18 +5079,18 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
5079
5079
  function pf(i, e, r, s) {
5080
5080
  const l = i.prev, d = i, p = i.next;
5081
5081
  if (Yt(l, d, p) >= 0) return !1;
5082
- const m = l.x, _ = d.x, v = p.x, T = l.y, P = d.y, E = p.y, L = m < _ ? m < v ? m : v : _ < v ? _ : v, B = T < P ? T < E ? T : E : P < E ? P : E, O = m > _ ? m > v ? m : v : _ > v ? _ : v, q = T > P ? T > E ? T : E : P > E ? P : E, X = dh(L, B, e, r, s), se = dh(O, q, e, r, s);
5082
+ const m = l.x, _ = d.x, v = p.x, T = l.y, P = d.y, E = p.y, D = m < _ ? m < v ? m : v : _ < v ? _ : v, B = T < P ? T < E ? T : E : P < E ? P : E, O = m > _ ? m > v ? m : v : _ > v ? _ : v, q = T > P ? T > E ? T : E : P > E ? P : E, X = dh(D, B, e, r, s), se = dh(O, q, e, r, s);
5083
5083
  let Y = i.prevZ, ie = i.nextZ;
5084
5084
  for (; Y && Y.z >= X && ie && ie.z <= se; ) {
5085
- if (Y.x >= L && Y.x <= O && Y.y >= B && Y.y <= q && Y !== l && Y !== p && Fo(m, T, _, P, v, E, Y.x, Y.y) && Yt(Y.prev, Y, Y.next) >= 0 || (Y = Y.prevZ, ie.x >= L && ie.x <= O && ie.y >= B && ie.y <= q && ie !== l && ie !== p && Fo(m, T, _, P, v, E, ie.x, ie.y) && Yt(ie.prev, ie, ie.next) >= 0)) return !1;
5085
+ if (Y.x >= D && Y.x <= O && Y.y >= B && Y.y <= q && Y !== l && Y !== p && Fo(m, T, _, P, v, E, Y.x, Y.y) && Yt(Y.prev, Y, Y.next) >= 0 || (Y = Y.prevZ, ie.x >= D && ie.x <= O && ie.y >= B && ie.y <= q && ie !== l && ie !== p && Fo(m, T, _, P, v, E, 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 >= X; ) {
5089
- if (Y.x >= L && Y.x <= O && Y.y >= B && Y.y <= q && Y !== l && Y !== p && Fo(m, T, _, P, v, E, Y.x, Y.y) && Yt(Y.prev, Y, Y.next) >= 0) return !1;
5089
+ if (Y.x >= D && Y.x <= O && Y.y >= B && Y.y <= q && Y !== l && Y !== p && Fo(m, T, _, P, v, E, 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 >= L && ie.x <= O && ie.y >= B && ie.y <= q && ie !== l && ie !== p && Fo(m, T, _, P, v, E, ie.x, ie.y) && Yt(ie.prev, ie, ie.next) >= 0) return !1;
5093
+ if (ie.x >= D && ie.x <= O && ie.y >= B && ie.y <= q && ie !== l && ie !== p && Fo(m, T, _, P, v, E, 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 (!v) return null;
5136
- const P = v, E = v.x, L = v.y;
5136
+ const P = v, E = v.x, D = v.y;
5137
5137
  let B = 1 / 0;
5138
5138
  p = v;
5139
5139
  do {
5140
- if (m >= p.x && p.x >= E && m !== p.x && Fo(_ < L ? m : T, _, E, L, _ < L ? T : m, _, p.x, p.y)) {
5140
+ if (m >= p.x && p.x >= E && m !== p.x && Fo(_ < D ? m : T, _, E, D, _ < D ? T : m, _, p.x, p.y)) {
5141
5141
  const O = Math.abs(_ - p.y) / (m - p.x);
5142
5142
  il(p, l) && (O < B || O === B && (p.x > v.x || p.x === v.x && yf(v, p))) && (v = p, B = O);
5143
5143
  }
@@ -5205,7 +5205,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
5205
5205
  const r = ph(i.i, i.x, i.y), s = ph(e.i, e.x, e.y), l = i.next, d = e.prev;
5206
5206
  return i.next = e, e.prev = i, r.next = l, l.prev = r, s.next = r, r.prev = s, d.next = s, s.prev = d, s;
5207
5207
  }
5208
- function Du(i, e, r, s) {
5208
+ function Lu(i, e, r, s) {
5209
5209
  const l = ph(i, e, r);
5210
5210
  return s ? (l.next = s.next, l.prev = s, s.next.prev = l, s.next = l) : (l.prev = l, l.next = l), l;
5211
5211
  }
@@ -5247,7 +5247,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
5247
5247
  for (const { feature: m, id: _, index: v, sourceLayerIndex: T } of e) {
5248
5248
  const P = this.layers[0]._featureFilter.needGeometry, E = Ns(m, P);
5249
5249
  if (!this.layers[0]._featureFilter.filter(new Mt(this.zoom), E, s)) continue;
5250
- const L = d ? l.evaluate(E, {}, s, r.availableImages) : void 0, B = { id: _, properties: m.properties, type: m.type, sourceLayerIndex: T, index: v, geometry: P ? E.geometry : Vs(m), patterns: {}, sortKey: L };
5250
+ const D = d ? l.evaluate(E, {}, s, r.availableImages) : void 0, B = { id: _, properties: m.properties, type: m.type, sourceLayerIndex: T, index: v, geometry: P ? E.geometry : Vs(m), patterns: {}, sortKey: D };
5251
5251
  p.push(B);
5252
5252
  }
5253
5253
  d && p.sort((m, _) => m.sortKey - _.sortKey);
@@ -5281,29 +5281,29 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
5281
5281
  addFeature(e, r, s, l, d) {
5282
5282
  for (const p of co(r, 500)) {
5283
5283
  let m = 0;
5284
- for (const L of p) m += L.length;
5284
+ for (const D of p) m += D.length;
5285
5285
  const _ = this.segments.prepareSegment(m, this.layoutVertexArray, this.indexArray), v = _.vertexLength, T = [], P = [];
5286
- for (const L of p) {
5287
- if (L.length === 0) continue;
5288
- L !== p[0] && P.push(T.length / 2);
5289
- const B = this.segments2.prepareSegment(L.length, this.layoutVertexArray, this.indexArray2), O = B.vertexLength;
5290
- this.layoutVertexArray.emplaceBack(L[0].x, L[0].y), this.indexArray2.emplaceBack(O + L.length - 1, O), T.push(L[0].x), T.push(L[0].y);
5291
- for (let q = 1; q < L.length; q++) this.layoutVertexArray.emplaceBack(L[q].x, L[q].y), this.indexArray2.emplaceBack(O + q - 1, O + q), T.push(L[q].x), T.push(L[q].y);
5292
- B.vertexLength += L.length, B.primitiveLength += L.length;
5286
+ for (const D of p) {
5287
+ if (D.length === 0) continue;
5288
+ D !== p[0] && P.push(T.length / 2);
5289
+ const B = this.segments2.prepareSegment(D.length, this.layoutVertexArray, this.indexArray2), O = B.vertexLength;
5290
+ this.layoutVertexArray.emplaceBack(D[0].x, D[0].y), this.indexArray2.emplaceBack(O + D.length - 1, O), T.push(D[0].x), T.push(D[0].y);
5291
+ for (let q = 1; q < D.length; q++) this.layoutVertexArray.emplaceBack(D[q].x, D[q].y), this.indexArray2.emplaceBack(O + q - 1, O + q), T.push(D[q].x), T.push(D[q].y);
5292
+ B.vertexLength += D.length, B.primitiveLength += D.length;
5293
5293
  }
5294
5294
  const E = Cu(T, P);
5295
- for (let L = 0; L < E.length; L += 3) this.indexArray.emplaceBack(v + E[L], v + E[L + 1], v + E[L + 2]);
5295
+ for (let D = 0; D < E.length; D += 3) this.indexArray.emplaceBack(v + E[D], v + E[D + 1], v + E[D + 2]);
5296
5296
  _.vertexLength += m, _.primitiveLength += E.length / 3;
5297
5297
  }
5298
5298
  this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length, e, s, d, l);
5299
5299
  }
5300
5300
  }
5301
- let Lu, Ru;
5301
+ let Du, Ru;
5302
5302
  Fe("FillBucket", gh, { omit: ["layers", "patternFeatures"] });
5303
5303
  var bf = { get paint() {
5304
5304
  return Ru = Ru || new o({ "fill-antialias": new qe(he.paint_fill["fill-antialias"]), "fill-opacity": new Je(he.paint_fill["fill-opacity"]), "fill-color": new Je(he.paint_fill["fill-color"]), "fill-outline-color": new Je(he.paint_fill["fill-outline-color"]), "fill-translate": new qe(he.paint_fill["fill-translate"]), "fill-translate-anchor": new qe(he.paint_fill["fill-translate-anchor"]), "fill-pattern": new u(he.paint_fill["fill-pattern"]) });
5305
5305
  }, get layout() {
5306
- return Lu = Lu || new o({ "fill-sort-key": new Je(he.layout_fill["fill-sort-key"]) });
5306
+ return Du = Du || new o({ "fill-sort-key": new Je(he.layout_fill["fill-sort-key"]) });
5307
5307
  } };
5308
5308
  class wf extends h {
5309
5309
  constructor(e) {
@@ -5373,10 +5373,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
5373
5373
  return [p, _, m, v];
5374
5374
  }, Oo.prototype.toGeoJSON = function(i, e, r) {
5375
5375
  var s, l, d = this.extent * Math.pow(2, r), p = this.extent * i, m = this.extent * e, _ = this.loadGeometry(), v = Oo.types[this.type];
5376
- function T(L) {
5377
- for (var B = 0; B < L.length; B++) {
5378
- var O = L[B];
5379
- L[B] = [360 * (O.x + p) / d - 180, 360 / Math.PI * Math.atan(Math.exp((180 - 360 * (O.y + m) / d) * Math.PI / 180)) - 90];
5376
+ function T(D) {
5377
+ for (var B = 0; B < D.length; B++) {
5378
+ var O = D[B];
5379
+ D[B] = [360 * (O.x + p) / d - 180, 360 / Math.PI * Math.atan(Math.exp((180 - 360 * (O.y + m) / 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 < _.length; s++) T(_[s]);
5390
5390
  break;
5391
5391
  case 3:
5392
- for (_ = function(L) {
5393
- var B = L.length;
5394
- if (B <= 1) return [L];
5392
+ for (_ = function(D) {
5393
+ var B = D.length;
5394
+ if (B <= 1) return [D];
5395
5395
  for (var O, q, X = [], se = 0; se < B; se++) {
5396
- var Y = Af(L[se]);
5397
- Y !== 0 && (q === void 0 && (q = Y < 0), q === Y < 0 ? (O && X.push(O), O = [L[se]]) : O.push(L[se]));
5396
+ var Y = Af(D[se]);
5397
+ Y !== 0 && (q === void 0 && (q = Y < 0), q === Y < 0 ? (O && X.push(O), O = [D[se]]) : O.push(D[se]));
5398
5398
  }
5399
5399
  return O && X.push(O), X;
5400
5400
  }(_), s = 0; s < _.length; s++) for (l = 0; l < _[s].length; l++) T(_[s][l]);
@@ -5432,7 +5432,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
5432
5432
  es.VectorTile = function(i, e) {
5433
5433
  this.layers = i.readFields(zf, {}, e);
5434
5434
  }, es.VectorTileFeature = Bu, es.VectorTileLayer = Fu;
5435
- const Df = es.VectorTileFeature.types, _h = Math.pow(2, 13);
5435
+ const Lf = es.VectorTileFeature.types, _h = Math.pow(2, 13);
5436
5436
  function nl(i, e, r, s, l, d, p, m) {
5437
5437
  i.emplaceBack(e, r, 2 * Math.floor(s * _h) + p, l * _h * 2, d * _h * 2, Math.round(m));
5438
5438
  }
@@ -5483,7 +5483,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
5483
5483
  const X = B[q];
5484
5484
  if (q >= 1) {
5485
5485
  const se = B[q - 1];
5486
- if (!Lf(X, se)) {
5486
+ if (!Df(X, se)) {
5487
5487
  v.vertexLength + 4 > ni.MAX_VERTEX_ARRAY_LENGTH && (v = this.segments.prepareSegment(4, this.layoutVertexArray, this.indexArray));
5488
5488
  const Y = X.sub(se)._perp()._unit(), ie = se.dist(X);
5489
5489
  O + ie > 32768 && (O = 0), nl(this.layoutVertexArray, X.x, X.y, Y.x, Y.y, 0, 0, O), nl(this.layoutVertexArray, X.x, X.y, Y.x, Y.y, 0, 1, O), m.x += 2 * X.x, m.y += 2 * X.y, m.vertexCount += 2, O += ie, nl(this.layoutVertexArray, se.x, se.y, Y.x, Y.y, 0, 0, O), nl(this.layoutVertexArray, se.x, se.y, Y.x, Y.y, 0, 1, O), m.x += 2 * se.x, m.y += 2 * se.y, m.vertexCount += 2;
@@ -5493,7 +5493,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
5493
5493
  }
5494
5494
  }
5495
5495
  }
5496
- if (v.vertexLength + _ > ni.MAX_VERTEX_ARRAY_LENGTH && (v = this.segments.prepareSegment(_, this.layoutVertexArray, this.indexArray)), Df[e.type] !== "Polygon") continue;
5496
+ if (v.vertexLength + _ > ni.MAX_VERTEX_ARRAY_LENGTH && (v = this.segments.prepareSegment(_, this.layoutVertexArray, this.indexArray)), Lf[e.type] !== "Polygon") continue;
5497
5497
  const T = [], P = [], E = v.vertexLength;
5498
5498
  for (const B of p) if (B.length !== 0) {
5499
5499
  B !== p[0] && P.push(T.length / 2);
@@ -5502,9 +5502,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
5502
5502
  nl(this.layoutVertexArray, q.x, q.y, 0, 0, 1, 1, 0), m.x += q.x, m.y += q.y, m.vertexCount += 1, T.push(q.x), T.push(q.y);
5503
5503
  }
5504
5504
  }
5505
- const L = Cu(T, P);
5506
- for (let B = 0; B < L.length; B += 3) this.indexArray.emplaceBack(E + L[B], E + L[B + 2], E + L[B + 1]);
5507
- v.primitiveLength += L.length / 3, v.vertexLength += _;
5505
+ const D = Cu(T, P);
5506
+ for (let B = 0; B < D.length; B += 3) this.indexArray.emplaceBack(E + D[B], E + D[B + 2], E + D[B + 1]);
5507
+ v.primitiveLength += D.length / 3, v.vertexLength += _;
5508
5508
  for (let B = 0; B < m.vertexCount; B++) {
5509
5509
  const O = Math.floor(m.x / m.vertexCount), q = Math.floor(m.y / m.vertexCount);
5510
5510
  this.centroidVertexArray.emplaceBack(O, q);
@@ -5513,7 +5513,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
5513
5513
  this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length, e, s, d, l);
5514
5514
  }
5515
5515
  }
5516
- function Lf(i, e) {
5516
+ function Df(i, e) {
5517
5517
  return i.x === e.x && (i.x < 0 || i.x > ti) || i.y === e.y && (i.y < 0 || i.y > ti);
5518
5518
  }
5519
5519
  function Rf(i) {
@@ -5545,12 +5545,12 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
5545
5545
  lc(ie, ie, O), se.push(new oe(ie[0] / ie[3], ie[1] / ie[3]));
5546
5546
  }
5547
5547
  return se;
5548
- }(v, _), L = function(B, O, q, X) {
5549
- const se = [], Y = [], ie = X[8] * O, ue = X[9] * O, ve = X[10] * O, De = X[11] * O, Xe = X[8] * q, Ee = X[9] * q, Ae = X[10] * q, je = X[11] * q;
5548
+ }(v, _), D = function(B, O, q, X) {
5549
+ const se = [], Y = [], ie = X[8] * O, ue = X[9] * O, ve = X[10] * O, Le = X[11] * O, Xe = X[8] * q, Ee = X[9] * q, Ae = X[10] * q, je = X[11] * q;
5550
5550
  for (const Ve of B) {
5551
5551
  const Be = [], ge = [];
5552
5552
  for (const Ze of Ve) {
5553
- const $e = Ze.x, et = Ze.y, At = X[0] * $e + X[4] * et + X[12], kt = X[1] * $e + X[5] * et + X[13], ai = X[2] * $e + X[6] * et + X[14], Cr = X[3] * $e + X[7] * et + X[15], wi = ai + ve, Ht = Cr + De, Fi = At + Xe, Oi = kt + Ee, Vi = ai + Ae, Wt = Cr + je, li = new oe((At + ie) / Ht, (kt + ue) / Ht);
5553
+ const $e = Ze.x, et = Ze.y, At = X[0] * $e + X[4] * et + X[12], kt = X[1] * $e + X[5] * et + X[13], ai = X[2] * $e + X[6] * et + X[14], Cr = X[3] * $e + X[7] * et + X[15], wi = ai + ve, Ht = Cr + Le, Fi = At + Xe, Oi = kt + Ee, Vi = ai + Ae, Wt = Cr + je, li = new oe((At + ie) / Ht, (kt + ue) / Ht);
5554
5554
  li.z = wi / Ht, Be.push(li);
5555
5555
  const Ei = new oe(Fi / Wt, Oi / Wt);
5556
5556
  Ei.z = Vi / Wt, ge.push(Ei);
@@ -5565,12 +5565,12 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
5565
5565
  for (let se = 0; se < O.length; se++) {
5566
5566
  const Y = O[se], ie = B[se];
5567
5567
  for (let ue = 0; ue < Y.length - 1; ue++) {
5568
- const ve = Y[ue], De = [ve, Y[ue + 1], ie[ue + 1], ie[ue], ve];
5569
- gu(q, De) && (X = Math.min(X, Nu(q, De)));
5568
+ const ve = Y[ue], Le = [ve, Y[ue + 1], ie[ue + 1], ie[ue], ve];
5569
+ gu(q, Le) && (X = Math.min(X, Nu(q, Le)));
5570
5570
  }
5571
5571
  }
5572
5572
  return X !== 1 / 0 && X;
5573
- }(L[0], L[1], E);
5573
+ }(D[0], D[1], E);
5574
5574
  }
5575
5575
  }
5576
5576
  function sl(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], m = l.sub(s), _ = d.sub(s), v = p.sub(s), T = sl(m, m), P = sl(m, _), E = sl(_, _), L = sl(v, m), B = sl(v, _), O = T * E - P * P, q = (E * L - P * B) / O, X = (T * B - P * L) / O, se = s.z * (1 - q - X) + l.z * q + d.z * X;
5586
+ const d = e[r], p = i[0], m = l.sub(s), _ = d.sub(s), v = p.sub(s), T = sl(m, m), P = sl(m, _), E = sl(_, _), D = sl(v, m), B = sl(v, _), O = T * E - P * P, q = (E * D - P * B) / O, X = (T * B - P * D) / O, se = s.z * (1 - q - X) + l.z * q + d.z * X;
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: m, id: _, index: v, sourceLayerIndex: T } of e) {
5608
5608
  const P = this.layers[0]._featureFilter.needGeometry, E = Ns(m, P);
5609
5609
  if (!this.layers[0]._featureFilter.filter(new Mt(this.zoom), E, s)) continue;
5610
- const L = d ? l.evaluate(E, {}, s) : void 0, B = { id: _, properties: m.properties, type: m.type, sourceLayerIndex: T, index: v, geometry: P ? E.geometry : Vs(m), patterns: {}, sortKey: L };
5610
+ const D = d ? l.evaluate(E, {}, s) : void 0, B = { id: _, properties: m.properties, type: m.type, sourceLayerIndex: T, index: v, geometry: P ? E.geometry : Vs(m), patterns: {}, sortKey: D };
5611
5611
  p.push(B);
5612
5612
  }
5613
5613
  d && p.sort((m, _) => m.sortKey - _.sortKey);
@@ -5661,24 +5661,24 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
5661
5661
  if (_ < (m ? 3 : 2)) return;
5662
5662
  s === "bevel" && (d = 1.05);
5663
5663
  const T = this.overscaling <= 16 ? 15 * ti / (512 * this.overscaling) : 0, P = this.segments.prepareSegment(10 * _, this.layoutVertexArray, this.indexArray);
5664
- let E, L, B, O, q;
5664
+ let E, D, B, O, q;
5665
5665
  this.e1 = this.e2 = -1, m && (E = e[_ - 2], q = e[v].sub(E)._unit()._perp());
5666
5666
  for (let X = v; X < _; X++) {
5667
5667
  if (B = X === _ - 1 ? m ? e[v + 1] : void 0 : e[X + 1], B && e[X].equals(B)) continue;
5668
- q && (O = q), E && (L = E), E = e[X], q = B ? B.sub(E)._unit()._perp() : O, O = O || q;
5668
+ q && (O = q), E && (D = E), E = e[X], q = B ? B.sub(E)._unit()._perp() : O, O = O || q;
5669
5669
  let se = O.add(q);
5670
5670
  se.x === 0 && se.y === 0 || se._unit();
5671
- const Y = O.x * q.x + O.y * q.y, ie = se.x * q.x + se.y * q.y, ue = ie !== 0 ? 1 / ie : 1 / 0, ve = 2 * Math.sqrt(2 - 2 * ie), De = ie < jf && L && B, Xe = O.x * q.y - O.y * q.x > 0;
5672
- if (De && X > v) {
5673
- const je = E.dist(L);
5671
+ const Y = O.x * q.x + O.y * q.y, ie = se.x * q.x + se.y * q.y, ue = ie !== 0 ? 1 / ie : 1 / 0, ve = 2 * Math.sqrt(2 - 2 * ie), Le = ie < jf && D && B, Xe = O.x * q.y - O.y * q.x > 0;
5672
+ if (Le && X > v) {
5673
+ const je = E.dist(D);
5674
5674
  if (je > 2 * T) {
5675
- const Ve = E.sub(E.sub(L)._mult(T / je)._round());
5676
- this.updateDistance(L, Ve), this.addCurrentVertex(Ve, O, 0, 0, P), L = Ve;
5675
+ const Ve = E.sub(E.sub(D)._mult(T / je)._round());
5676
+ this.updateDistance(D, Ve), this.addCurrentVertex(Ve, O, 0, 0, P), D = Ve;
5677
5677
  }
5678
5678
  }
5679
- const Ee = L && B;
5679
+ const Ee = D && B;
5680
5680
  let Ae = Ee ? s : m ? "butt" : l;
5681
- if (Ee && Ae === "round" && (ue < p ? Ae = "miter" : ue <= 2 && (Ae = "fakeround")), Ae === "miter" && ue > d && (Ae = "bevel"), Ae === "bevel" && (ue > 2 && (Ae = "flipbevel"), ue < d && (Ae = "miter")), L && this.updateDistance(L, E), Ae === "miter") se._mult(ue), this.addCurrentVertex(E, se, 0, 0, P);
5681
+ if (Ee && Ae === "round" && (ue < p ? Ae = "miter" : ue <= 2 && (Ae = "fakeround")), Ae === "miter" && ue > d && (Ae = "bevel"), Ae === "bevel" && (ue > 2 && (Ae = "flipbevel"), ue < d && (Ae = "miter")), D && this.updateDistance(D, E), Ae === "miter") se._mult(ue), this.addCurrentVertex(E, se, 0, 0, P);
5682
5682
  else if (Ae === "flipbevel") {
5683
5683
  if (ue > 100) se = q.mult(-1);
5684
5684
  else {
@@ -5688,7 +5688,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
5688
5688
  this.addCurrentVertex(E, se, 0, 0, P), this.addCurrentVertex(E, se.mult(-1), 0, 0, P);
5689
5689
  } else if (Ae === "bevel" || Ae === "fakeround") {
5690
5690
  const je = -Math.sqrt(ue * ue - 1), Ve = Xe ? je : 0, Be = Xe ? 0 : je;
5691
- if (L && this.addCurrentVertex(E, O, Ve, Be, P), Ae === "fakeround") {
5691
+ if (D && this.addCurrentVertex(E, O, Ve, Be, P), Ae === "fakeround") {
5692
5692
  const ge = Math.round(180 * ve / Math.PI / 20);
5693
5693
  for (let Ze = 1; Ze < ge; Ze++) {
5694
5694
  let $e = Ze / ge;
@@ -5703,10 +5703,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
5703
5703
  B && this.addCurrentVertex(E, q, -Ve, -Be, P);
5704
5704
  } else if (Ae === "butt") this.addCurrentVertex(E, se, 0, 0, P);
5705
5705
  else if (Ae === "square") {
5706
- const je = L ? 1 : -1;
5706
+ const je = D ? 1 : -1;
5707
5707
  this.addCurrentVertex(E, se, je, je, P);
5708
- } else Ae === "round" && (L && (this.addCurrentVertex(E, O, 0, 0, P), this.addCurrentVertex(E, O, 1, 1, P, !0)), B && (this.addCurrentVertex(E, q, -1, -1, P, !0), this.addCurrentVertex(E, q, 0, 0, P)));
5709
- if (De && X < _ - 1) {
5708
+ } else Ae === "round" && (D && (this.addCurrentVertex(E, O, 0, 0, P), this.addCurrentVertex(E, O, 1, 1, P, !0)), B && (this.addCurrentVertex(E, q, -1, -1, P, !0), this.addCurrentVertex(E, q, 0, 0, P)));
5709
+ if (Le && X < _ - 1) {
5710
5710
  const je = E.dist(B);
5711
5711
  if (je > 2 * T) {
5712
5712
  const Ve = E.add(B.sub(E)._mult(T / je)._round());
@@ -5776,23 +5776,23 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
5776
5776
  queryIntersectsFeature(e, r, s, l, d, p, m) {
5777
5777
  const _ = ac(e, this.paint.get("line-translate"), this.paint.get("line-translate-anchor"), p.angle, m), v = m / 2 * Zu(this.paint.get("line-width").evaluate(r, s), this.paint.get("line-gap-width").evaluate(r, s)), T = this.paint.get("line-offset").evaluate(r, s);
5778
5778
  return T && (l = function(P, E) {
5779
- const L = [];
5779
+ const D = [];
5780
5780
  for (let B = 0; B < P.length; B++) {
5781
5781
  const O = P[B], q = [];
5782
5782
  for (let X = 0; X < O.length; X++) {
5783
- const se = O[X - 1], Y = O[X], ie = O[X + 1], ue = X === 0 ? new oe(0, 0) : Y.sub(se)._unit()._perp(), ve = X === O.length - 1 ? new oe(0, 0) : ie.sub(Y)._unit()._perp(), De = ue._add(ve)._unit(), Xe = De.x * ve.x + De.y * ve.y;
5784
- Xe !== 0 && De._mult(1 / Xe), q.push(De._mult(E)._add(Y));
5783
+ const se = O[X - 1], Y = O[X], ie = O[X + 1], ue = X === 0 ? new oe(0, 0) : Y.sub(se)._unit()._perp(), ve = X === O.length - 1 ? new oe(0, 0) : ie.sub(Y)._unit()._perp(), Le = ue._add(ve)._unit(), Xe = Le.x * ve.x + Le.y * ve.y;
5784
+ Xe !== 0 && Le._mult(1 / Xe), q.push(Le._mult(E)._add(Y));
5785
5785
  }
5786
- L.push(q);
5786
+ D.push(q);
5787
5787
  }
5788
- return L;
5789
- }(l, T * m)), function(P, E, L) {
5788
+ return D;
5789
+ }(l, T * m)), function(P, E, D) {
5790
5790
  for (let B = 0; B < E.length; B++) {
5791
5791
  const O = E[B];
5792
5792
  if (P.length >= 3) {
5793
5793
  for (let q = 0; q < O.length; q++) if (Ro(P, O[q])) return !0;
5794
5794
  }
5795
- if (Qp(P, O, L)) return !0;
5795
+ if (Qp(P, O, D)) return !0;
5796
5796
  }
5797
5797
  return !1;
5798
5798
  }(_, l, v);
@@ -5820,20 +5820,20 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
5820
5820
  w([{ name: "triangle", components: 3, type: "Uint16" }]), w([{ 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" }]), w([{ 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" }]), w([{ type: "Float32", name: "offsetX" }]), w([{ type: "Int16", name: "x" }, { type: "Int16", name: "y" }, { type: "Int16", name: "tileUnitDistanceFromAnchor" }]), w([{ type: "Uint16", name: "textAnchor" }, { type: "Float32", components: 2, name: "textOffset" }]);
5821
5821
  const ol = { "!": "︕", "#": "#", $: "$", "%": "%", "&": "&", "(": "︵", ")": "︶", "*": "*", "+": "+", ",": "︐", "-": "︲", ".": "・", "/": "/", ":": "︓", ";": "︔", "<": "︿", "=": "=", ">": "﹀", "?": "︖", "@": "@", "[": "﹇", "\\": "\", "]": "﹈", "^": "^", _: "︳", "`": "`", "{": "︷", "|": "―", "}": "︸", "~": "~", "¢": "¢", "£": "£", "¥": "¥", "¦": "¦", "¬": "¬", "¯": " ̄", "–": "︲", "—": "︱", "‘": "﹃", "’": "﹄", "“": "﹁", "”": "﹂", "…": "︙", "‧": "・", "₩": "₩", "、": "︑", "。": "︒", "〈": "︿", "〉": "﹀", "《": "︽", "》": "︾", "「": "﹁", "」": "﹂", "『": "﹃", "』": "﹄", "【": "︻", "】": "︼", "〔": "︹", "〕": "︺", "〖": "︗", "〗": "︘", "!": "︕", "(": "︵", ")": "︶", ",": "︐", "-": "︲", ".": "・", ":": "︓", ";": "︔", "<": "︿", ">": "﹀", "?": "︖", "[": "﹇", "]": "﹈", "_": "︳", "{": "︷", "|": "―", "}": "︸", "⦅": "︵", "⦆": "︶", "。": "︒", "「": "﹁", "」": "﹂" };
5822
5822
  var si = 24, Hu = Pt, Wu = function(i, e, r, s, l) {
5823
- var d, p, m = 8 * l - s - 1, _ = (1 << m) - 1, v = _ >> 1, T = -7, P = l - 1, E = -1, L = i[e + P];
5824
- for (P += E, d = L & (1 << -T) - 1, L >>= -T, T += m; T > 0; d = 256 * d + i[e + P], P += E, T -= 8) ;
5823
+ var d, p, m = 8 * l - s - 1, _ = (1 << m) - 1, v = _ >> 1, T = -7, P = l - 1, E = -1, D = i[e + P];
5824
+ for (P += E, d = D & (1 << -T) - 1, D >>= -T, T += m; T > 0; d = 256 * d + i[e + P], P += E, T -= 8) ;
5825
5825
  for (p = d & (1 << -T) - 1, d >>= -T, T += s; T > 0; p = 256 * p + i[e + P], P += E, T -= 8) ;
5826
5826
  if (d === 0) d = 1 - v;
5827
5827
  else {
5828
- if (d === _) return p ? NaN : 1 / 0 * (L ? -1 : 1);
5828
+ if (d === _) return p ? NaN : 1 / 0 * (D ? -1 : 1);
5829
5829
  p += Math.pow(2, s), d -= v;
5830
5830
  }
5831
- return (L ? -1 : 1) * p * Math.pow(2, d - s);
5831
+ return (D ? -1 : 1) * p * Math.pow(2, d - s);
5832
5832
  }, Xu = function(i, e, r, s, l, d) {
5833
- var p, m, _, v = 8 * d - l - 1, T = (1 << v) - 1, P = T >> 1, E = l === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, L = 0, B = 1, O = e < 0 || e === 0 && 1 / e < 0 ? 1 : 0;
5834
- for (e = Math.abs(e), isNaN(e) || e === 1 / 0 ? (m = isNaN(e) ? 1 : 0, p = T) : (p = Math.floor(Math.log(e) / Math.LN2), e * (_ = Math.pow(2, -p)) < 1 && (p--, _ *= 2), (e += p + P >= 1 ? E / _ : E * Math.pow(2, 1 - P)) * _ >= 2 && (p++, _ /= 2), p + P >= T ? (m = 0, p = T) : p + P >= 1 ? (m = (e * _ - 1) * Math.pow(2, l), p += P) : (m = e * Math.pow(2, P - 1) * Math.pow(2, l), p = 0)); l >= 8; i[r + L] = 255 & m, L += B, m /= 256, l -= 8) ;
5835
- for (p = p << l | m, v += l; v > 0; i[r + L] = 255 & p, L += B, p /= 256, v -= 8) ;
5836
- i[r + L - B] |= 128 * O;
5833
+ var p, m, _, v = 8 * d - l - 1, T = (1 << v) - 1, P = T >> 1, E = l === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, D = 0, B = 1, O = e < 0 || e === 0 && 1 / e < 0 ? 1 : 0;
5834
+ for (e = Math.abs(e), isNaN(e) || e === 1 / 0 ? (m = isNaN(e) ? 1 : 0, p = T) : (p = Math.floor(Math.log(e) / Math.LN2), e * (_ = Math.pow(2, -p)) < 1 && (p--, _ *= 2), (e += p + P >= 1 ? E / _ : E * Math.pow(2, 1 - P)) * _ >= 2 && (p++, _ /= 2), p + P >= T ? (m = 0, p = T) : p + P >= 1 ? (m = (e * _ - 1) * Math.pow(2, l), p += P) : (m = e * Math.pow(2, P - 1) * Math.pow(2, l), p = 0)); l >= 8; i[r + D] = 255 & m, D += B, m /= 256, l -= 8) ;
5835
+ for (p = p << l | m, v += l; v > 0; i[r + D] = 255 & p, D += B, p /= 256, v -= 8) ;
5836
+ i[r + D - B] |= 128 * O;
5837
5837
  };
5838
5838
  function Pt(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
  ur.copy(T.data, _, { x: 0, y: 0 }, { x: P.x + Wi, y: P.y + Wi }, T.data);
6174
6174
  }
6175
6175
  for (const v in r) {
6176
- const T = r[v], P = l[v].paddedRect, E = P.x + Wi, L = P.y + Wi, B = T.data.width, O = T.data.height;
6177
- ur.copy(T.data, _, { x: 0, y: 0 }, { x: E, y: L }, T.data), ur.copy(T.data, _, { x: 0, y: O - 1 }, { x: E, y: L - 1 }, { width: B, height: 1 }), ur.copy(T.data, _, { x: 0, y: 0 }, { x: E, y: L + O }, { width: B, height: 1 }), ur.copy(T.data, _, { x: B - 1, y: 0 }, { x: E - 1, y: L }, { width: 1, height: O }), ur.copy(T.data, _, { x: 0, y: 0 }, { x: E + B, y: L }, { width: 1, height: O });
6176
+ const T = r[v], P = l[v].paddedRect, E = P.x + Wi, D = P.y + Wi, B = T.data.width, O = T.data.height;
6177
+ ur.copy(T.data, _, { x: 0, y: 0 }, { x: E, y: D }, T.data), ur.copy(T.data, _, { x: 0, y: O - 1 }, { x: E, y: D - 1 }, { width: B, height: 1 }), ur.copy(T.data, _, { x: 0, y: 0 }, { x: E, y: D + O }, { width: B, height: 1 }), ur.copy(T.data, _, { x: B - 1, y: 0 }, { x: E - 1, y: D }, { width: 1, height: O }), ur.copy(T.data, _, { x: 0, y: 0 }, { x: E + B, y: D }, { width: 1, height: O });
6178
6178
  }
6179
6179
  this.image = _, this.iconPositions = s, this.patternPositions = l;
6180
6180
  }
@@ -6277,35 +6277,35 @@ 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 fc(i, e, r, s, l, d, p, m, _, v, T, P, E, L, B) {
6280
+ function fc(i, e, r, s, l, d, p, m, _, v, T, P, E, D, B) {
6281
6281
  const O = $o.fromFeature(i, l);
6282
6282
  let q;
6283
6283
  P === S.ai.vertical && O.verticalizePunctuation();
6284
6284
  const { processBidirectionalText: X, processStyledBidirectionalText: se } = on;
6285
6285
  if (X && O.sections.length === 1) {
6286
6286
  q = [];
6287
- const ue = X(O.toString(), Th(O, v, d, e, s, L));
6287
+ const ue = X(O.toString(), Th(O, v, d, e, s, D));
6288
6288
  for (const ve of ue) {
6289
- const De = new $o();
6290
- De.text = ve, De.sections = O.sections;
6291
- for (let Xe = 0; Xe < ve.length; Xe++) De.sectionIndex.push(0);
6292
- q.push(De);
6289
+ const Le = new $o();
6290
+ Le.text = ve, Le.sections = O.sections;
6291
+ for (let Xe = 0; Xe < ve.length; Xe++) Le.sectionIndex.push(0);
6292
+ q.push(Le);
6293
6293
  }
6294
6294
  } else if (se) {
6295
6295
  q = [];
6296
- const ue = se(O.text, O.sectionIndex, Th(O, v, d, e, s, L));
6296
+ const ue = se(O.text, O.sectionIndex, Th(O, v, d, e, s, D));
6297
6297
  for (const ve of ue) {
6298
- const De = new $o();
6299
- De.text = ve[0], De.sectionIndex = ve[1], De.sections = O.sections, q.push(De);
6298
+ const Le = new $o();
6299
+ Le.text = ve[0], Le.sectionIndex = ve[1], Le.sections = O.sections, q.push(Le);
6300
6300
  }
6301
6301
  } else q = function(ue, ve) {
6302
- const De = [], Xe = ue.text;
6302
+ const Le = [], Xe = ue.text;
6303
6303
  let Ee = 0;
6304
- for (const Ae of ve) De.push(ue.substring(Ee, Ae)), Ee = Ae;
6305
- return Ee < Xe.length && De.push(ue.substring(Ee, Xe.length)), De;
6306
- }(O, Th(O, v, d, e, s, L));
6304
+ for (const Ae of ve) Le.push(ue.substring(Ee, Ae)), Ee = Ae;
6305
+ return Ee < Xe.length && Le.push(ue.substring(Ee, Xe.length)), Le;
6306
+ }(O, Th(O, v, d, e, s, D));
6307
6307
  const Y = [], ie = { positionedLines: Y, text: O.toString(), top: T[1], bottom: T[1], left: T[0], right: T[0], writingMode: P, iconsInText: !1, verticalizable: !1 };
6308
- return function(ue, ve, De, Xe, Ee, Ae, je, Ve, Be, ge, Ze, $e) {
6308
+ return function(ue, ve, Le, Xe, Ee, Ae, je, Ve, Be, ge, Ze, $e) {
6309
6309
  let et = 0, At = al, kt = 0, ai = 0;
6310
6310
  const Cr = Ve === "right" ? 1 : Ve === "left" ? 0 : 0.5;
6311
6311
  let wi = 0;
@@ -6332,7 +6332,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
6332
6332
  const Mn = Er ? ui[0] * xt.scale - si * li : ui[1] * xt.scale - si * li;
6333
6333
  Mn > 0 && Mn > Ti && (Ti = Mn);
6334
6334
  } else {
6335
- const fr = De[xt.fontStack], ui = fr && fr[Ot];
6335
+ const fr = Le[xt.fontStack], ui = fr && fr[Ot];
6336
6336
  if (ui && ui.rect) Zo = ui.rect, Gt = ui.metrics;
6337
6337
  else {
6338
6338
  const Mn = ve[xt.fontStack], pl = Mn && Mn[Ot];
@@ -6392,20 +6392,20 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
6392
6392
  }
6393
6393
  function Th(i, e, r, s, l, d) {
6394
6394
  if (!i) return [];
6395
- const p = [], m = function(P, E, L, B, O, q) {
6395
+ const p = [], m = function(P, E, D, B, O, q) {
6396
6396
  let X = 0;
6397
6397
  for (let se = 0; se < P.length(); se++) {
6398
6398
  const Y = P.getSection(se);
6399
6399
  X += rd(P.getCharCode(se), Y, B, O, E, q);
6400
6400
  }
6401
- return X / Math.max(1, Math.ceil(X / L));
6401
+ return X / Math.max(1, Math.ceil(X / D));
6402
6402
  }(i, e, r, s, l, d), _ = i.text.indexOf("​") >= 0;
6403
6403
  let v = 0;
6404
6404
  for (let P = 0; P < i.length(); P++) {
6405
- const E = i.getSection(P), L = i.getCharCode(P);
6406
- if (mc[L] || (v += rd(L, E, s, l, e, d)), P < i.length() - 1) {
6407
- const B = !((T = L) < 11904 || !(Me["Bopomofo Extended"](T) || Me.Bopomofo(T) || Me["CJK Compatibility Forms"](T) || Me["CJK Compatibility Ideographs"](T) || Me["CJK Compatibility"](T) || Me["CJK Radicals Supplement"](T) || Me["CJK Strokes"](T) || Me["CJK Symbols and Punctuation"](T) || Me["CJK Unified Ideographs Extension A"](T) || Me["CJK Unified Ideographs"](T) || Me["Enclosed CJK Letters and Months"](T) || Me["Halfwidth and Fullwidth Forms"](T) || Me.Hiragana(T) || Me["Ideographic Description Characters"](T) || Me["Kangxi Radicals"](T) || Me["Katakana Phonetic Extensions"](T) || Me.Katakana(T) || Me["Vertical Forms"](T) || Me["Yi Radicals"](T) || Me["Yi Syllables"](T)));
6408
- (cm[L] || B || E.imageName || P !== i.length() - 2 && hm[i.getCharCode(P + 1)]) && p.push(sd(P + 1, v, m, p, um(L, i.getCharCode(P + 1), B && _), !1));
6405
+ const E = i.getSection(P), D = i.getCharCode(P);
6406
+ if (mc[D] || (v += rd(D, E, s, l, e, d)), P < i.length() - 1) {
6407
+ const B = !((T = D) < 11904 || !(Me["Bopomofo Extended"](T) || Me.Bopomofo(T) || Me["CJK Compatibility Forms"](T) || Me["CJK Compatibility Ideographs"](T) || Me["CJK Compatibility"](T) || Me["CJK Radicals Supplement"](T) || Me["CJK Strokes"](T) || Me["CJK Symbols and Punctuation"](T) || Me["CJK Unified Ideographs Extension A"](T) || Me["CJK Unified Ideographs"](T) || Me["Enclosed CJK Letters and Months"](T) || Me["Halfwidth and Fullwidth Forms"](T) || Me.Hiragana(T) || Me["Ideographic Description Characters"](T) || Me["Kangxi Radicals"](T) || Me["Katakana Phonetic Extensions"](T) || Me.Katakana(T) || Me["Vertical Forms"](T) || Me["Yi Radicals"](T) || Me["Yi Syllables"](T)));
6408
+ (cm[D] || B || E.imageName || P !== i.length() - 2 && hm[i.getCharCode(P + 1)]) && p.push(sd(P + 1, v, m, p, um(D, i.getCharCode(P + 1), B && _), !1));
6409
6409
  }
6410
6410
  }
6411
6411
  var T;
@@ -6469,10 +6469,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
6469
6469
  m = [q[0] / X, q[1] / X, p.displaySize[0] - q[2] / X, p.displaySize[1] - q[3] / X];
6470
6470
  }
6471
6471
  const _ = e.left * d, v = e.right * d;
6472
- let T, P, E, L;
6473
- r === "width" || r === "both" ? (L = l[0] + _ - s[3], P = l[0] + v + s[1]) : (L = l[0] + (_ + v - p.displaySize[0]) / 2, P = L + p.displaySize[0]);
6472
+ let T, P, E, D;
6473
+ r === "width" || r === "both" ? (D = l[0] + _ - s[3], P = l[0] + v + s[1]) : (D = l[0] + (_ + v - p.displaySize[0]) / 2, P = D + p.displaySize[0]);
6474
6474
  const B = e.top * d, O = e.bottom * d;
6475
- return r === "height" || r === "both" ? (T = l[1] + B - s[0], E = l[1] + O + s[2]) : (T = l[1] + (B + O - p.displaySize[1]) / 2, E = T + p.displaySize[1]), { image: p, top: T, right: P, bottom: E, left: L, collisionPadding: m };
6475
+ return r === "height" || r === "both" ? (T = l[1] + B - s[0], E = l[1] + O + s[2]) : (T = l[1] + (B + O - p.displaySize[1]) / 2, E = T + p.displaySize[1]), { image: p, top: T, right: P, bottom: E, left: D, collisionPadding: m };
6476
6476
  }
6477
6477
  const cl = 255, cn = 128, is = cl * cn;
6478
6478
  function cd(i, e) {
@@ -6498,8 +6498,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
6498
6498
  }
6499
6499
  const fm = es.VectorTileFeature.types, mm = [{ name: "a_fade_opacity", components: 1, type: "Uint8", offset: 0 }];
6500
6500
  function gc(i, e, r, s, l, d, p, m, _, v, T, P, E) {
6501
- const L = m ? Math.min(is, Math.round(m[0])) : 0, B = m ? Math.min(is, Math.round(m[1])) : 0;
6502
- i.emplaceBack(e, r, Math.round(32 * s), Math.round(32 * l), d, p, (L << 1) + (_ ? 1 : 0), B, 16 * v, 16 * T, 256 * P, 256 * E);
6501
+ const D = m ? Math.min(is, Math.round(m[0])) : 0, B = m ? Math.min(is, Math.round(m[1])) : 0;
6502
+ i.emplaceBack(e, r, Math.round(32 * s), Math.round(32 * l), d, p, (D << 1) + (_ ? 1 : 0), B, 16 * v, 16 * T, 256 * P, 256 * E);
6503
6503
  }
6504
6504
  function kh(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,27 +6555,27 @@ 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"), m = d.get("text-field"), _ = d.get("icon-image"), v = (m.value.kind !== "constant" || m.value.value instanceof Ui && !m.value.value.isEmpty() || m.value.value.toString().length > 0) && (p.value.kind !== "constant" || p.value.value.length > 0), T = _.value.kind !== "constant" || !!_.value.value || Object.keys(_.parameters).length > 0, P = d.get("symbol-sort-key");
6557
6557
  if (this.features = [], !v && !T) return;
6558
- const E = r.iconDependencies, L = r.glyphDependencies, B = r.availableImages, O = new Mt(this.zoom);
6558
+ const E = r.iconDependencies, D = r.glyphDependencies, B = r.availableImages, O = new Mt(this.zoom);
6559
6559
  for (const { feature: q, id: X, index: se, sourceLayerIndex: Y } of e) {
6560
6560
  const ie = l._featureFilter.needGeometry, ue = Ns(q, ie);
6561
6561
  if (!l._featureFilter.filter(O, ue, s)) continue;
6562
- let ve, De;
6562
+ let ve, Le;
6563
6563
  if (ie || (ue.geometry = Vs(q)), v) {
6564
6564
  const Ee = l.getValueAndResolveTokens("text-field", ue, s, B), Ae = Ui.factory(Ee), je = this.hasRTLText = this.hasRTLText || gm(Ae);
6565
6565
  (!je || on.getRTLTextPluginStatus() === "unavailable" || je && on.isParsed()) && (ve = Jf(Ae, l, ue));
6566
6566
  }
6567
6567
  if (T) {
6568
6568
  const Ee = l.getValueAndResolveTokens("icon-image", ue, s, B);
6569
- De = Ee instanceof mi ? Ee : mi.fromString(Ee);
6569
+ Le = Ee instanceof mi ? Ee : mi.fromString(Ee);
6570
6570
  }
6571
- if (!ve && !De) continue;
6571
+ if (!ve && !Le) continue;
6572
6572
  const Xe = this.sortFeaturesByKey ? P.evaluate(ue, {}, s) : void 0;
6573
- if (this.features.push({ id: X, text: ve, icon: De, index: se, sourceLayerIndex: Y, geometry: ue.geometry, properties: q.properties, type: fm[q.type], sortKey: Xe }), De && (E[De.name] = !0), ve) {
6573
+ if (this.features.push({ id: X, text: ve, icon: Le, index: se, sourceLayerIndex: Y, geometry: ue.geometry, properties: q.properties, type: fm[q.type], sortKey: Xe }), Le && (E[Le.name] = !0), ve) {
6574
6574
  const Ee = p.evaluate(ue, {}, s).join(","), Ae = d.get("text-rotation-alignment") !== "viewport" && d.get("symbol-placement") !== "point";
6575
6575
  this.allowVerticalPlacement = this.writingModes && this.writingModes.indexOf(S.ai.vertical) >= 0;
6576
6576
  for (const je of ve.sections) if (je.image) E[je.image.name] = !0;
6577
6577
  else {
6578
- const Ve = Ua(ve.toString()), Be = je.fontStack || Ee, ge = L[Be] = L[Be] || {};
6578
+ const Ve = Ua(ve.toString()), Be = je.fontStack || Ee, ge = D[Be] = D[Be] || {};
6579
6579
  this.calculateGlyphDependencies(je.text, ge, Ae, this.allowVerticalPlacement, Ve);
6580
6580
  }
6581
6581
  }
@@ -6590,7 +6590,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
6590
6590
  const Ve = se[Ee];
6591
6591
  return delete se[Ee], se[Ae] = Ve, Y[Ve].geometry[0].pop(), Y[Ve].geometry[0] = Y[Ve].geometry[0].concat(je[0]), Ve;
6592
6592
  }
6593
- function De(Ee, Ae, je) {
6593
+ function Le(Ee, Ae, je) {
6594
6594
  const Ve = X[Ae];
6595
6595
  return delete X[Ae], X[Ee] = Ve, Y[Ve].geometry[0].shift(), Y[Ve].geometry[0] = je[0].concat(Y[Ve].geometry[0]), Ve;
6596
6596
  }
@@ -6606,9 +6606,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
6606
6606
  }
6607
6607
  const Be = Xe(Ve, je), ge = Xe(Ve, je, !0);
6608
6608
  if (Be in se && ge in X && se[Be] !== X[ge]) {
6609
- const Ze = De(Be, ge, je), $e = ve(Be, ge, Y[Ze].geometry);
6609
+ const Ze = Le(Be, ge, je), $e = ve(Be, ge, Y[Ze].geometry);
6610
6610
  delete X[Be], delete se[ge], se[Xe(Ve, Y[$e].geometry, !0)] = $e, Y[Ze].geometry = null;
6611
- } else Be in se ? ve(Be, ge, je) : ge in X ? De(Be, ge, je) : (ue(Ee), X[Be] = ie - 1, se[ge] = ie - 1);
6611
+ } else Be in se ? ve(Be, ge, je) : ge in X ? Le(Be, ge, je) : (ue(Ee), X[Be] = ie - 1, se[ge] = ie - 1);
6612
6612
  }
6613
6613
  return Y.filter((Ee) => Ee.geometry);
6614
6614
  }(this.features)), this.sortFeaturesByKey && this.features.sort((q, X) => q.sortKey - X.sortKey);
@@ -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, m, _, v, T, P, E) {
6649
- const L = e.indexArray, B = e.layoutVertexArray, O = e.segments.prepareSegment(4 * r.length, B, L, this.canOverlap ? p.sortKey : void 0), q = this.glyphOffsetArray.length, X = O.vertexLength, se = this.allowVerticalPlacement && m === S.ai.vertical ? Math.PI / 2 : 0, Y = p.text && p.text.sections;
6649
+ const D = e.indexArray, B = e.layoutVertexArray, O = e.segments.prepareSegment(4 * r.length, B, D, this.canOverlap ? p.sortKey : void 0), q = this.glyphOffsetArray.length, X = O.vertexLength, se = this.allowVerticalPlacement && m === S.ai.vertical ? Math.PI / 2 : 0, Y = p.text && p.text.sections;
6650
6650
  for (let ie = 0; ie < r.length; ie++) {
6651
- const { tl: ue, tr: ve, bl: De, br: Xe, tex: Ee, pixelOffsetTL: Ae, pixelOffsetBR: je, minFontScaleX: Ve, minFontScaleY: Be, glyphOffset: ge, isSDF: Ze, sectionIndex: $e } = r[ie], et = O.vertexLength, At = ge[1];
6652
- gc(B, _.x, _.y, ue.x, At + ue.y, Ee.x, Ee.y, s, Ze, Ae.x, Ae.y, Ve, Be), gc(B, _.x, _.y, ve.x, At + ve.y, Ee.x + Ee.w, Ee.y, s, Ze, je.x, Ae.y, Ve, Be), gc(B, _.x, _.y, De.x, At + De.y, Ee.x, Ee.y + Ee.h, s, Ze, Ae.x, je.y, Ve, Be), gc(B, _.x, _.y, Xe.x, At + Xe.y, Ee.x + Ee.w, Ee.y + Ee.h, s, Ze, je.x, je.y, Ve, Be), kh(e.dynamicLayoutVertexArray, _, se), L.emplaceBack(et, et + 1, et + 2), L.emplaceBack(et + 1, et + 2, et + 3), O.vertexLength += 4, O.primitiveLength += 2, this.glyphOffsetArray.emplaceBack(ge[0]), ie !== r.length - 1 && $e === r[ie + 1].sectionIndex || e.programConfigurations.populatePaintArrays(B.length, p, p.index, {}, E, Y && Y[$e]);
6651
+ const { tl: ue, tr: ve, bl: Le, br: Xe, tex: Ee, pixelOffsetTL: Ae, pixelOffsetBR: je, minFontScaleX: Ve, minFontScaleY: Be, glyphOffset: ge, isSDF: Ze, sectionIndex: $e } = r[ie], et = O.vertexLength, At = ge[1];
6652
+ gc(B, _.x, _.y, ue.x, At + ue.y, Ee.x, Ee.y, s, Ze, Ae.x, Ae.y, Ve, Be), gc(B, _.x, _.y, ve.x, At + ve.y, Ee.x + Ee.w, Ee.y, s, Ze, je.x, Ae.y, Ve, Be), gc(B, _.x, _.y, Le.x, At + Le.y, Ee.x, Ee.y + Ee.h, s, Ze, Ae.x, je.y, Ve, Be), gc(B, _.x, _.y, Xe.x, At + Xe.y, Ee.x + Ee.w, Ee.y + Ee.h, s, Ze, je.x, je.y, Ve, Be), kh(e.dynamicLayoutVertexArray, _, se), D.emplaceBack(et, et + 1, et + 2), D.emplaceBack(et + 1, et + 2, et + 3), O.vertexLength += 4, O.primitiveLength += 2, this.glyphOffsetArray.emplaceBack(ge[0]), ie !== r.length - 1 && $e === r[ie + 1].sectionIndex || e.programConfigurations.populatePaintArrays(B.length, p, p.index, {}, E, Y && Y[$e]);
6653
6653
  }
6654
6654
  e.placedSymbolArray.emplaceBack(_.x, _.y, q, this.glyphOffsetArray.length - q, X, v, T, _.segment, s ? s[0] : 0, s ? s[1] : 0, l[0], l[1], m, 0, !1, 0, P);
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, m) {
6660
- const _ = d.segments.prepareSegment(4, d.layoutVertexArray, d.indexArray), v = _.vertexLength, T = d.layoutVertexArray, P = d.collisionVertexArray, E = m.anchorX, L = m.anchorY;
6661
- this._addCollisionDebugVertex(T, P, p, E, L, new oe(e, r)), this._addCollisionDebugVertex(T, P, p, E, L, new oe(s, r)), this._addCollisionDebugVertex(T, P, p, E, L, new oe(s, l)), this._addCollisionDebugVertex(T, P, p, E, L, new oe(e, l)), _.vertexLength += 4;
6660
+ const _ = d.segments.prepareSegment(4, d.layoutVertexArray, d.indexArray), v = _.vertexLength, T = d.layoutVertexArray, P = d.collisionVertexArray, E = m.anchorX, D = m.anchorY;
6661
+ this._addCollisionDebugVertex(T, P, p, E, D, new oe(e, r)), this._addCollisionDebugVertex(T, P, p, E, D, new oe(s, r)), this._addCollisionDebugVertex(T, P, p, E, D, new oe(s, l)), this._addCollisionDebugVertex(T, P, p, E, D, new oe(e, l)), _.vertexLength += 4;
6662
6662
  const B = d.indexArray;
6663
6663
  B.emplaceBack(v, v + 1), B.emplaceBack(v + 1, v + 2), B.emplaceBack(v + 2, v + 3), B.emplaceBack(v + 3, v), _.primitiveLength += 4;
6664
6664
  }
@@ -6755,7 +6755,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
6755
6755
  let hd, ud;
6756
6756
  Fe("SymbolBucket", Uo, { omit: ["layers", "collisionBoxArray", "features", "compareText"] }), Uo.MAX_GLYPHS = 65535, Uo.addDynamicAttributes = kh;
6757
6757
  var Eh = { get paint() {
6758
- return ud = ud || new o({ "icon-opacity": new Je(he.paint_symbol["icon-opacity"]), "icon-color": new Je(he.paint_symbol["icon-color"]), "icon-halo-color": new Je(he.paint_symbol["icon-halo-color"]), "icon-halo-width": new Je(he.paint_symbol["icon-halo-width"]), "icon-halo-blur": new Je(he.paint_symbol["icon-halo-blur"]), "icon-translate": new qe(he.paint_symbol["icon-translate"]), "icon-translate-anchor": new qe(he.paint_symbol["icon-translate-anchor"]), "text-opacity": new Je(he.paint_symbol["text-opacity"]), "text-color": new Je(he.paint_symbol["text-color"], { runtimeType: Di, getOverride: (i) => i.textColor, hasOverride: (i) => !!i.textColor }), "text-halo-color": new Je(he.paint_symbol["text-halo-color"]), "text-halo-width": new Je(he.paint_symbol["text-halo-width"]), "text-halo-blur": new Je(he.paint_symbol["text-halo-blur"]), "text-translate": new qe(he.paint_symbol["text-translate"]), "text-translate-anchor": new qe(he.paint_symbol["text-translate-anchor"]) });
6758
+ return ud = ud || new o({ "icon-opacity": new Je(he.paint_symbol["icon-opacity"]), "icon-color": new Je(he.paint_symbol["icon-color"]), "icon-halo-color": new Je(he.paint_symbol["icon-halo-color"]), "icon-halo-width": new Je(he.paint_symbol["icon-halo-width"]), "icon-halo-blur": new Je(he.paint_symbol["icon-halo-blur"]), "icon-translate": new qe(he.paint_symbol["icon-translate"]), "icon-translate-anchor": new qe(he.paint_symbol["icon-translate-anchor"]), "text-opacity": new Je(he.paint_symbol["text-opacity"]), "text-color": new Je(he.paint_symbol["text-color"], { runtimeType: Li, getOverride: (i) => i.textColor, hasOverride: (i) => !!i.textColor }), "text-halo-color": new Je(he.paint_symbol["text-halo-color"]), "text-halo-width": new Je(he.paint_symbol["text-halo-width"]), "text-halo-blur": new Je(he.paint_symbol["text-halo-blur"]), "text-translate": new qe(he.paint_symbol["text-translate"]), "text-translate-anchor": new qe(he.paint_symbol["text-translate-anchor"]) });
6759
6759
  }, get layout() {
6760
6760
  return hd = hd || new o({ "symbol-placement": new qe(he.layout_symbol["symbol-placement"]), "symbol-spacing": new qe(he.layout_symbol["symbol-spacing"]), "symbol-avoid-edges": new qe(he.layout_symbol["symbol-avoid-edges"]), "symbol-sort-key": new Je(he.layout_symbol["symbol-sort-key"]), "symbol-z-order": new qe(he.layout_symbol["symbol-z-order"]), "icon-allow-overlap": new qe(he.layout_symbol["icon-allow-overlap"]), "icon-overlap": new qe(he.layout_symbol["icon-overlap"]), "icon-ignore-placement": new qe(he.layout_symbol["icon-ignore-placement"]), "icon-optional": new qe(he.layout_symbol["icon-optional"]), "icon-rotation-alignment": new qe(he.layout_symbol["icon-rotation-alignment"]), "icon-size": new Je(he.layout_symbol["icon-size"]), "icon-text-fit": new qe(he.layout_symbol["icon-text-fit"]), "icon-text-fit-padding": new qe(he.layout_symbol["icon-text-fit-padding"]), "icon-image": new Je(he.layout_symbol["icon-image"]), "icon-rotate": new Je(he.layout_symbol["icon-rotate"]), "icon-padding": new Je(he.layout_symbol["icon-padding"]), "icon-keep-upright": new qe(he.layout_symbol["icon-keep-upright"]), "icon-offset": new Je(he.layout_symbol["icon-offset"]), "icon-anchor": new Je(he.layout_symbol["icon-anchor"]), "icon-pitch-alignment": new qe(he.layout_symbol["icon-pitch-alignment"]), "text-pitch-alignment": new qe(he.layout_symbol["text-pitch-alignment"]), "text-rotation-alignment": new qe(he.layout_symbol["text-rotation-alignment"]), "text-field": new Je(he.layout_symbol["text-field"]), "text-font": new Je(he.layout_symbol["text-font"]), "text-size": new Je(he.layout_symbol["text-size"]), "text-max-width": new Je(he.layout_symbol["text-max-width"]), "text-line-height": new qe(he.layout_symbol["text-line-height"]), "text-letter-spacing": new Je(he.layout_symbol["text-letter-spacing"]), "text-justify": new Je(he.layout_symbol["text-justify"]), "text-radial-offset": new Je(he.layout_symbol["text-radial-offset"]), "text-variable-anchor": new qe(he.layout_symbol["text-variable-anchor"]), "text-variable-anchor-offset": new Je(he.layout_symbol["text-variable-anchor-offset"]), "text-anchor": new Je(he.layout_symbol["text-anchor"]), "text-max-angle": new qe(he.layout_symbol["text-max-angle"]), "text-writing-mode": new qe(he.layout_symbol["text-writing-mode"]), "text-rotate": new Je(he.layout_symbol["text-rotate"]), "text-padding": new qe(he.layout_symbol["text-padding"]), "text-keep-upright": new qe(he.layout_symbol["text-keep-upright"]), "text-transform": new Je(he.layout_symbol["text-transform"]), "text-offset": new Je(he.layout_symbol["text-offset"]), "text-allow-overlap": new qe(he.layout_symbol["text-allow-overlap"]), "text-overlap": new qe(he.layout_symbol["text-overlap"]), "text-ignore-placement": new qe(he.layout_symbol["text-ignore-placement"]), "text-optional": new qe(he.layout_symbol["text-optional"]) });
6761
6761
  } };
@@ -6963,7 +6963,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
6963
6963
  var s = 2 * Math.PI * 6378137 / 256 / Math.pow(2, r);
6964
6964
  return [i * s - 2 * Math.PI * 6378137 / 2, e * s - 2 * Math.PI * 6378137 / 2];
6965
6965
  }
6966
- class Dh {
6966
+ class Lh {
6967
6967
  constructor(e, r, s) {
6968
6968
  if (e < 0 || e > 25 || s < 0 || s >= Math.pow(2, e) || r < 0 || r >= Math.pow(2, e)) throw new Error(`x=${r}, y=${s}, z=${e} outside of bounds. 0<=x<${Math.pow(2, e)}, 0<=y<${Math.pow(2, e)} 0<=z<=25 `);
6969
6969
  this.z = e, this.x = r, this.y = s, this.key = hl(0, e, e, r, s);
@@ -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, m = this.z, _ = vd(256 * (d = this.x), 256 * (p = Math.pow(2, m) - p - 1), m), v = vd(256 * (d + 1), 256 * (p + 1), m), _[0] + "," + _[1] + "," + v[0] + "," + v[1]);
6976
6976
  var d, p, m, _, v;
6977
- const T = function(P, E, L) {
6977
+ const T = function(P, E, D) {
6978
6978
  let B, O = "";
6979
- for (let q = P; q > 0; q--) B = 1 << q - 1, O += (E & B ? 1 : 0) + (L & B ? 2 : 0);
6979
+ for (let q = P; q > 0; q--) B = 1 << q - 1, O += (E & B ? 1 : 0) + (D & B ? 2 : 0);
6980
6980
  return O;
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, T).replace(/{bbox-epsg-3857}/g, l);
@@ -7001,7 +7001,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7001
7001
  class dr {
7002
7002
  constructor(e, r, s, l, d) {
7003
7003
  if (e < s) throw new Error(`overscaledZ should be >= z; overscaledZ = ${e}; z = ${s}`);
7004
- this.overscaledZ = e, this.wrap = r, this.canonical = new Dh(s, +l, +d), this.key = hl(r, e, s, l, d);
7004
+ this.overscaledZ = e, this.wrap = r, this.canonical = new Lh(s, +l, +d), this.key = hl(r, e, s, l, d);
7005
7005
  }
7006
7006
  clone() {
7007
7007
  return new dr(this.overscaledZ, this.wrap, this.canonical.z, this.canonical.x, this.canonical.y);
@@ -7056,7 +7056,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7056
7056
  const d = 1 << r;
7057
7057
  return (d * d * i + d * l + s).toString(36) + r.toString(36) + e.toString(36);
7058
7058
  }
7059
- Fe("CanonicalTileID", Dh), Fe("OverscaledTileID", dr, { omit: ["posMatrix"] });
7059
+ Fe("CanonicalTileID", Lh), Fe("OverscaledTileID", dr, { omit: ["posMatrix"] });
7060
7060
  class wd {
7061
7061
  constructor(e, r, s, l = 1, d = 1, p = 1, m = 0) {
7062
7062
  if (this.uid = e, r.height !== r.width) throw new RangeError("DEM tiles must be square");
@@ -7162,8 +7162,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7162
7162
  for (let v = 0; v < r.length; v++) {
7163
7163
  const T = r[v], P = [1 / 0, 1 / 0, -1 / 0, -1 / 0];
7164
7164
  for (let E = 0; E < T.length; E++) {
7165
- const L = T[E];
7166
- P[0] = Math.min(P[0], L.x), P[1] = Math.min(P[1], L.y), P[2] = Math.max(P[2], L.x), P[3] = Math.max(P[3], L.y);
7165
+ const D = T[E];
7166
+ P[0] = Math.min(P[0], D.x), P[1] = Math.min(P[1], D.y), P[2] = Math.max(P[2], D.x), P[3] = Math.max(P[3], D.y);
7167
7167
  }
7168
7168
  P[0] < ti && P[1] < ti && P[2] >= 0 && P[3] >= 0 && _.insert(m, P[0], P[1], P[2], P[3]);
7169
7169
  }
@@ -7173,16 +7173,16 @@ 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, m = Ai(d.filter), _ = e.queryGeometry, v = e.queryPadding * p, T = kd(_), P = this.grid.query(T.minX - v, T.minY - v, T.maxX + v, T.maxY + v), E = kd(e.cameraQueryGeometry), L = this.grid3D.query(E.minX - v, E.minY - v, E.maxX + v, E.maxY + v, (q, X, se, Y) => function(ie, ue, ve, De, Xe) {
7177
- for (const Ae of ie) if (ue <= Ae.x && ve <= Ae.y && De >= Ae.x && Xe >= Ae.y) return !0;
7178
- const Ee = [new oe(ue, ve), new oe(ue, Xe), new oe(De, Xe), new oe(De, ve)];
7176
+ const d = e.params || {}, p = ti / e.tileSize / e.scale, m = Ai(d.filter), _ = e.queryGeometry, v = e.queryPadding * p, T = kd(_), P = this.grid.query(T.minX - v, T.minY - v, T.maxX + v, T.maxY + v), E = kd(e.cameraQueryGeometry), D = this.grid3D.query(E.minX - v, E.minY - v, E.maxX + v, E.maxY + v, (q, X, se, Y) => function(ie, ue, ve, Le, Xe) {
7177
+ for (const Ae of ie) if (ue <= Ae.x && ve <= Ae.y && Le >= Ae.x && Xe >= Ae.y) return !0;
7178
+ const Ee = [new oe(ue, ve), new oe(ue, Xe), new oe(Le, Xe), new oe(Le, ve)];
7179
7179
  if (ie.length > 2) {
7180
7180
  for (const Ae of Ee) if (Ro(ie, Ae)) return !0;
7181
7181
  }
7182
7182
  for (let Ae = 0; Ae < ie.length - 1; Ae++) if (tf(ie[Ae], ie[Ae + 1], Ee)) return !0;
7183
7183
  return !1;
7184
7184
  }(e.cameraQueryGeometry, q - v, X - v, se + v, Y + v));
7185
- for (const q of L) P.push(q);
7185
+ for (const q of D) P.push(q);
7186
7186
  P.sort(Sm);
7187
7187
  const B = {};
7188
7188
  let O;
@@ -7202,12 +7202,12 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7202
7202
  for (let se = 0; se < q.length; se++) if (X.indexOf(q[se]) >= 0) return !0;
7203
7203
  return !1;
7204
7204
  }(p, E)) return;
7205
- const L = this.sourceLayerCoder.decode(s), B = this.vtLayers[L].feature(l);
7205
+ const D = this.sourceLayerCoder.decode(s), B = this.vtLayers[D].feature(l);
7206
7206
  if (d.needGeometry) {
7207
7207
  const q = Ns(B, !0);
7208
7208
  if (!d.filter(new Mt(this.tileID.overscaledZ), q, this.tileID.canonical)) return;
7209
7209
  } else if (!d.filter(new Mt(this.tileID.overscaledZ), B)) return;
7210
- const O = this.getId(B, L);
7210
+ const O = this.getId(B, D);
7211
7211
  for (let q = 0; q < E.length; q++) {
7212
7212
  const X = E[q];
7213
7213
  if (p && p.indexOf(X) < 0) continue;
@@ -7221,8 +7221,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7221
7221
  if (!ue) continue;
7222
7222
  const ve = new Td(B, this.z, this.x, this.y, O);
7223
7223
  ve.layer = ie;
7224
- let De = e[X];
7225
- De === void 0 && (De = e[X] = []), De.push({ featureIndex: l, feature: ve, intersectionZ: ue });
7224
+ let Le = e[X];
7225
+ Le === void 0 && (Le = e[X] = []), Le.push({ featureIndex: l, feature: ve, intersectionZ: ue });
7226
7226
  }
7227
7227
  }
7228
7228
  lookupSymbolFeatures(e, r, s, l, d, p, m, _) {
@@ -7312,21 +7312,21 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7312
7312
  let _ = 0;
7313
7313
  const v = Ed(i) / 2;
7314
7314
  for (let T = 0; T < i.length - 1; T++) {
7315
- const P = i[T], E = i[T + 1], L = P.dist(E);
7316
- if (_ + L > v) {
7317
- const B = (v - _) / L, O = Zi.number(P.x, E.x, B), q = Zi.number(P.y, E.y, B), X = new ns(O, q, E.angleTo(P), T);
7315
+ const P = i[T], E = i[T + 1], D = P.dist(E);
7316
+ if (_ + D > v) {
7317
+ const B = (v - _) / D, O = Zi.number(P.x, E.x, B), q = Zi.number(P.y, E.y, B), X = new ns(O, q, E.angleTo(P), T);
7318
7318
  return X._round(), !p || Cd(i, X, m, p, e) ? X : void 0;
7319
7319
  }
7320
- _ += L;
7320
+ _ += D;
7321
7321
  }
7322
7322
  }
7323
7323
  function Im(i, e, r, s, l, d, p, m, _) {
7324
7324
  const v = Md(s, d, p), T = zd(s, l), P = T * p, E = i[0].x === 0 || i[0].x === _ || i[0].y === 0 || i[0].y === _;
7325
- return e - P < e / 4 && (e = P + e / 4), Dd(i, E ? e / 2 * m % e : (T / 2 + 2 * d) * p * m % e, e, v, r, P, E, !1, _);
7325
+ return e - P < e / 4 && (e = P + e / 4), Ld(i, E ? e / 2 * m % e : (T / 2 + 2 * d) * p * m % e, e, v, r, P, E, !1, _);
7326
7326
  }
7327
- function Dd(i, e, r, s, l, d, p, m, _) {
7327
+ function Ld(i, e, r, s, l, d, p, m, _) {
7328
7328
  const v = d / 2, T = Ed(i);
7329
- let P = 0, E = e - r, L = [];
7329
+ let P = 0, E = e - r, D = [];
7330
7330
  for (let B = 0; B < i.length - 1; B++) {
7331
7331
  const O = i[B], q = i[B + 1], X = O.dist(q), se = q.angleTo(O);
7332
7332
  for (; E + r < P + X; ) {
@@ -7334,26 +7334,26 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7334
7334
  const Y = (E - P) / X, ie = Zi.number(O.x, q.x, Y), ue = Zi.number(O.y, q.y, Y);
7335
7335
  if (ie >= 0 && ie < _ && ue >= 0 && ue < _ && E - v >= 0 && E + v <= T) {
7336
7336
  const ve = new ns(ie, ue, se, B);
7337
- ve._round(), s && !Cd(i, ve, d, s, l) || L.push(ve);
7337
+ ve._round(), s && !Cd(i, ve, d, s, l) || D.push(ve);
7338
7338
  }
7339
7339
  }
7340
7340
  P += X;
7341
7341
  }
7342
- return m || L.length || p || (L = Dd(i, P / 2, r, s, l, d, p, !0, _)), L;
7342
+ return m || D.length || p || (D = Ld(i, P / 2, r, s, l, d, p, !0, _)), D;
7343
7343
  }
7344
7344
  Fe("Anchor", ns);
7345
7345
  const jo = Wi;
7346
- function Ld(i, e, r, s) {
7346
+ function Dd(i, e, r, s) {
7347
7347
  const l = [], d = i.image, p = d.pixelRatio, m = d.paddedRect.w - 2 * jo, _ = d.paddedRect.h - 2 * jo;
7348
7348
  let v = { x1: i.left, y1: i.top, x2: i.right, y2: i.bottom };
7349
- const T = d.stretchX || [[0, m]], P = d.stretchY || [[0, _]], E = (ge, Ze) => ge + Ze[1] - Ze[0], L = T.reduce(E, 0), B = P.reduce(E, 0), O = m - L, q = _ - B;
7350
- let X = 0, se = L, Y = 0, ie = B, ue = 0, ve = O, De = 0, Xe = q;
7349
+ const T = d.stretchX || [[0, m]], P = d.stretchY || [[0, _]], E = (ge, Ze) => ge + Ze[1] - Ze[0], D = T.reduce(E, 0), B = P.reduce(E, 0), O = m - D, q = _ - B;
7350
+ let X = 0, se = D, Y = 0, ie = B, ue = 0, ve = O, Le = 0, Xe = q;
7351
7351
  if (d.content && s) {
7352
7352
  const ge = d.content, Ze = ge[2] - ge[0], $e = ge[3] - ge[1];
7353
- (d.textFitWidth || d.textFitHeight) && (v = ad(i)), X = xc(T, 0, ge[0]), Y = xc(P, 0, ge[1]), se = xc(T, ge[0], ge[2]), ie = xc(P, ge[1], ge[3]), ue = ge[0] - X, De = ge[1] - Y, ve = Ze - se, Xe = $e - ie;
7353
+ (d.textFitWidth || d.textFitHeight) && (v = ad(i)), X = xc(T, 0, ge[0]), Y = xc(P, 0, ge[1]), se = xc(T, ge[0], ge[2]), ie = xc(P, ge[1], ge[3]), ue = ge[0] - X, Le = ge[1] - Y, ve = Ze - se, Xe = $e - ie;
7354
7354
  }
7355
7355
  const Ee = v.x1, Ae = v.y1, je = v.x2 - Ee, Ve = v.y2 - Ae, Be = (ge, Ze, $e, et) => {
7356
- const At = vc(ge.stretch - X, se, je, Ee), kt = bc(ge.fixed - ue, ve, ge.stretch, L), ai = vc(Ze.stretch - Y, ie, Ve, Ae), Cr = bc(Ze.fixed - De, Xe, Ze.stretch, B), wi = vc($e.stretch - X, se, je, Ee), Ht = bc($e.fixed - ue, ve, $e.stretch, L), Fi = vc(et.stretch - Y, ie, Ve, Ae), Oi = bc(et.fixed - De, Xe, et.stretch, B), Vi = new oe(At, ai), Wt = new oe(wi, ai), li = new oe(wi, Fi), Ei = new oe(At, Fi), Si = new oe(kt / p, Cr / p), Ni = new oe(Ht / p, Oi / p), Ti = e * Math.PI / 180;
7356
+ const At = vc(ge.stretch - X, se, je, Ee), kt = bc(ge.fixed - ue, ve, ge.stretch, D), ai = vc(Ze.stretch - Y, ie, Ve, Ae), Cr = bc(Ze.fixed - Le, Xe, Ze.stretch, B), wi = vc($e.stretch - X, se, je, Ee), Ht = bc($e.fixed - ue, ve, $e.stretch, D), Fi = vc(et.stretch - Y, ie, Ve, Ae), Oi = bc(et.fixed - Le, Xe, et.stretch, B), Vi = new oe(At, ai), Wt = new oe(wi, ai), li = new oe(wi, Fi), Ei = new oe(At, Fi), Si = new oe(kt / p, Cr / p), Ni = new oe(Ht / p, Oi / p), Ti = e * Math.PI / 180;
7357
7357
  if (Ti) {
7358
7358
  const xt = Math.sin(Ti), zt = Math.cos(Ti), Ot = [zt, -xt, xt, zt];
7359
7359
  Vi._matMult(Ot), Wt._matMult(Ot), Ei._matMult(Ot), li._matMult(Ot);
@@ -7362,7 +7362,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7362
7362
  return { tl: Vi, tr: Wt, bl: Ei, br: li, tex: { x: d.paddedRect.x + jo + pr, y: d.paddedRect.y + jo + Xi, w: $e.stretch + $e.fixed - pr, h: et.stretch + et.fixed - Xi }, writingMode: void 0, glyphOffset: [0, 0], sectionIndex: 0, pixelOffsetTL: Si, pixelOffsetBR: Ni, minFontScaleX: ve / p / je, minFontScaleY: Xe / p / Ve, isSDF: r };
7363
7363
  };
7364
7364
  if (s && (d.stretchX || d.stretchY)) {
7365
- const ge = Rd(T, O, L), Ze = Rd(P, q, B);
7365
+ const ge = Rd(T, O, D), Ze = Rd(P, q, B);
7366
7366
  for (let $e = 0; $e < ge.length - 1; $e++) {
7367
7367
  const et = ge[$e], At = ge[$e + 1];
7368
7368
  for (let kt = 0; kt < Ze.length - 1; kt++) l.push(Be(et, Ze[kt], At, Ze[kt + 1]));
@@ -7393,16 +7393,16 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7393
7393
  constructor(e, r, s, l, d, p, m, _, v, T) {
7394
7394
  var P;
7395
7395
  if (this.boxStartIndex = e.length, v) {
7396
- let E = p.top, L = p.bottom;
7396
+ let E = p.top, D = p.bottom;
7397
7397
  const B = p.collisionPadding;
7398
- B && (E -= B[1], L += B[3]);
7399
- let O = L - E;
7398
+ B && (E -= B[1], D += B[3]);
7399
+ let O = D - E;
7400
7400
  O > 0 && (O = Math.max(10, O), this.circleDiameter = O);
7401
7401
  } else {
7402
7402
  const E = !((P = p.image) === null || P === void 0) && P.content && (p.image.textFitWidth || p.image.textFitHeight) ? ad(p) : { x1: p.left, y1: p.top, x2: p.right, y2: p.bottom };
7403
7403
  E.y1 = E.y1 * m - _[0], E.y2 = E.y2 * m + _[2], E.x1 = E.x1 * m - _[3], E.x2 = E.x2 * m + _[1];
7404
- const L = p.collisionPadding;
7405
- if (L && (E.x1 -= L[0] * m, E.y1 -= L[1] * m, E.x2 += L[2] * m, E.y2 += L[3] * m), T) {
7404
+ const D = p.collisionPadding;
7405
+ if (D && (E.x1 -= D[0] * m, E.y1 -= D[1] * m, E.x2 += D[2] * m, E.y2 += D[3] * m), T) {
7406
7406
  const B = new oe(E.x1, E.y1), O = new oe(E.x2, E.y1), q = new oe(E.x1, E.y2), X = new oe(E.x2, E.y2), se = T * Math.PI / 180;
7407
7407
  B._rotate(se), O._rotate(se), q._rotate(se), X._rotate(se), E.x1 = Math.min(B.x, O.x, q.x, X.x), E.x2 = Math.max(B.x, O.x, q.x, X.x), E.y1 = Math.min(B.y, O.y, q.y, X.y), E.y2 = Math.max(B.y, O.y, q.y, X.y);
7408
7408
  }
@@ -7449,27 +7449,27 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7449
7449
  function km(i, e = 1, r = !1) {
7450
7450
  let s = 1 / 0, l = 1 / 0, d = -1 / 0, p = -1 / 0;
7451
7451
  const m = i[0];
7452
- for (let L = 0; L < m.length; L++) {
7453
- const B = m[L];
7454
- (!L || B.x < s) && (s = B.x), (!L || B.y < l) && (l = B.y), (!L || B.x > d) && (d = B.x), (!L || B.y > p) && (p = B.y);
7452
+ for (let D = 0; D < m.length; D++) {
7453
+ const B = m[D];
7454
+ (!D || B.x < s) && (s = B.x), (!D || B.y < l) && (l = B.y), (!D || B.x > d) && (d = B.x), (!D || B.y > p) && (p = B.y);
7455
7455
  }
7456
7456
  const _ = Math.min(d - s, p - l);
7457
7457
  let v = _ / 2;
7458
7458
  const T = new Pm([], Am);
7459
7459
  if (_ === 0) return new oe(s, l);
7460
- for (let L = s; L < d; L += _) for (let B = l; B < p; B += _) T.push(new qo(L + v, B + v, v, i));
7461
- let P = function(L) {
7460
+ for (let D = s; D < d; D += _) for (let B = l; B < p; B += _) T.push(new qo(D + v, B + v, v, i));
7461
+ let P = function(D) {
7462
7462
  let B = 0, O = 0, q = 0;
7463
- const X = L[0];
7463
+ const X = D[0];
7464
7464
  for (let se = 0, Y = X.length, ie = Y - 1; se < Y; ie = se++) {
7465
- const ue = X[se], ve = X[ie], De = ue.x * ve.y - ve.x * ue.y;
7466
- O += (ue.x + ve.x) * De, q += (ue.y + ve.y) * De, B += 3 * De;
7465
+ const ue = X[se], ve = X[ie], Le = ue.x * ve.y - ve.x * ue.y;
7466
+ O += (ue.x + ve.x) * Le, q += (ue.y + ve.y) * Le, B += 3 * Le;
7467
7467
  }
7468
- return new qo(O / B, q / B, 0, L);
7468
+ return new qo(O / B, q / B, 0, D);
7469
7469
  }(i), E = T.length;
7470
7470
  for (; T.length; ) {
7471
- const L = T.pop();
7472
- (L.d > P.d || !P.d) && (P = L, r && console.log("found best %d after %d probes", Math.round(1e4 * L.d) / 1e4, E)), L.max - P.d <= e || (v = L.h / 2, T.push(new qo(L.p.x - v, L.p.y - v, v, i)), T.push(new qo(L.p.x + v, L.p.y - v, v, i)), T.push(new qo(L.p.x - v, L.p.y + v, v, i)), T.push(new qo(L.p.x + v, L.p.y + v, v, i)), E += 4);
7471
+ const D = T.pop();
7472
+ (D.d > P.d || !P.d) && (P = D, r && console.log("found best %d after %d probes", Math.round(1e4 * D.d) / 1e4, E)), D.max - P.d <= e || (v = D.h / 2, T.push(new qo(D.p.x - v, D.p.y - v, v, i)), T.push(new qo(D.p.x + v, D.p.y - v, v, i)), T.push(new qo(D.p.x - v, D.p.y + v, v, i)), T.push(new qo(D.p.x + v, D.p.y + v, v, i)), E += 4);
7473
7473
  }
7474
7474
  return r && (console.log(`num probes: ${E}`), console.log(`best distance: ${P.d}`)), P.p;
7475
7475
  }
@@ -7482,8 +7482,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7482
7482
  for (let _ = 0; _ < d.length; _++) {
7483
7483
  const v = d[_];
7484
7484
  for (let T = 0, P = v.length, E = P - 1; T < P; E = T++) {
7485
- const L = v[T], B = v[E];
7486
- L.y > l.y != B.y > l.y && l.x < (B.x - L.x) * (l.y - L.y) / (B.y - L.y) + L.x && (p = !p), m = Math.min(m, yu(l, L, B));
7485
+ const D = v[T], B = v[E];
7486
+ D.y > l.y != B.y > l.y && l.x < (B.x - D.x) * (l.y - D.y) / (B.y - D.y) + D.x && (p = !p), m = Math.min(m, yu(l, D, B));
7487
7487
  }
7488
7488
  }
7489
7489
  return (p ? 1 : -1) * Math.sqrt(m);
@@ -7491,9 +7491,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7491
7491
  }
7492
7492
  var bi;
7493
7493
  S.ar = void 0, (bi = S.ar || (S.ar = {}))[bi.center = 1] = "center", bi[bi.left = 2] = "left", bi[bi.right = 3] = "right", bi[bi.top = 4] = "top", bi[bi.bottom = 5] = "bottom", bi[bi["top-left"] = 6] = "top-left", bi[bi["top-right"] = 7] = "top-right", bi[bi["bottom-left"] = 8] = "bottom-left", bi[bi["bottom-right"] = 9] = "bottom-right";
7494
- const ss = 7, Lh = Number.POSITIVE_INFINITY;
7494
+ const ss = 7, Dh = Number.POSITIVE_INFINITY;
7495
7495
  function Bd(i, e) {
7496
- return e[1] !== Lh ? function(r, s, l) {
7496
+ return e[1] !== Dh ? function(r, s, l) {
7497
7497
  let d = 0, p = 0;
7498
7498
  switch (s = Math.abs(s), l = Math.abs(l), r) {
7499
7499
  case "top-right":
@@ -7569,7 +7569,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7569
7569
  const p = l.get("text-variable-anchor");
7570
7570
  if (p) {
7571
7571
  let m;
7572
- m = i._unevaluatedLayout.getValue("text-radial-offset") !== void 0 ? [l.get("text-radial-offset").evaluate(e, {}, r) * si, Lh] : l.get("text-offset").evaluate(e, {}, r).map((v) => v * si);
7572
+ m = i._unevaluatedLayout.getValue("text-radial-offset") !== void 0 ? [l.get("text-radial-offset").evaluate(e, {}, r) * si, Dh] : l.get("text-offset").evaluate(e, {}, r).map((v) => v * si);
7573
7573
  const _ = [];
7574
7574
  for (const v of p) _.push(v, Bd(v, m));
7575
7575
  return new qi(_);
@@ -7592,24 +7592,24 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7592
7592
  function Cm(i, e, r, s, l, d, p, m, _, v, T) {
7593
7593
  let P = d.textMaxSize.evaluate(e, {});
7594
7594
  P === void 0 && (P = p);
7595
- const E = i.layers[0].layout, L = E.get("icon-offset").evaluate(e, {}, T), B = Vd(r.horizontal), O = p / 24, q = i.tilePixelRatio * O, X = i.tilePixelRatio * P / 24, se = i.tilePixelRatio * m, Y = i.tilePixelRatio * E.get("symbol-spacing"), ie = E.get("text-padding") * i.tilePixelRatio, ue = function(ge, Ze, $e, et = 1) {
7595
+ const E = i.layers[0].layout, D = E.get("icon-offset").evaluate(e, {}, T), B = Vd(r.horizontal), O = p / 24, q = i.tilePixelRatio * O, X = i.tilePixelRatio * P / 24, se = i.tilePixelRatio * m, Y = i.tilePixelRatio * E.get("symbol-spacing"), ie = E.get("text-padding") * i.tilePixelRatio, ue = function(ge, Ze, $e, et = 1) {
7596
7596
  const At = ge.get("icon-padding").evaluate(Ze, {}, $e), kt = At && At.values;
7597
7597
  return [kt[0] * et, kt[1] * et, kt[2] * et, kt[3] * et];
7598
- }(E, e, T, i.tilePixelRatio), ve = E.get("text-max-angle") / 180 * Math.PI, De = E.get("text-rotation-alignment") !== "viewport" && E.get("symbol-placement") !== "point", Xe = E.get("icon-rotation-alignment") === "map" && E.get("symbol-placement") !== "point", Ee = E.get("symbol-placement"), Ae = Y / 2, je = E.get("icon-text-fit");
7598
+ }(E, e, T, i.tilePixelRatio), ve = E.get("text-max-angle") / 180 * Math.PI, Le = E.get("text-rotation-alignment") !== "viewport" && E.get("symbol-placement") !== "point", Xe = E.get("icon-rotation-alignment") === "map" && E.get("symbol-placement") !== "point", Ee = E.get("symbol-placement"), Ae = Y / 2, je = E.get("icon-text-fit");
7599
7599
  let Ve;
7600
- s && je !== "none" && (i.allowVerticalPlacement && r.vertical && (Ve = ld(s, r.vertical, je, E.get("icon-text-fit-padding"), L, O)), B && (s = ld(s, B, je, E.get("icon-text-fit-padding"), L, O)));
7600
+ s && je !== "none" && (i.allowVerticalPlacement && r.vertical && (Ve = ld(s, r.vertical, je, E.get("icon-text-fit-padding"), D, O)), B && (s = ld(s, B, je, E.get("icon-text-fit-padding"), D, O)));
7601
7601
  const Be = (ge, Ze) => {
7602
7602
  Ze.x < 0 || Ze.x >= ti || Ze.y < 0 || Ze.y >= ti || function($e, et, At, kt, ai, Cr, wi, Ht, Fi, Oi, Vi, Wt, li, Ei, Si, Ni, Ti, pr, Xi, xt, zt, Ot, tr, Gt, Zo) {
7603
7603
  const hn = $e.addToLineVertexArray(et, At);
7604
7604
  let un, Er, fr, ui, Mn = 0, pl = 0, jd = 0, qd = 0, jh = -1, qh = -1;
7605
7605
  const zn = {};
7606
- let Zd = Do("");
7606
+ let Zd = Lo("");
7607
7607
  if ($e.allowVerticalPlacement && kt.vertical) {
7608
7608
  const Mi = Ht.layout.get("text-rotate").evaluate(zt, {}, Gt) + 90;
7609
7609
  fr = new wc(Fi, et, Oi, Vi, Wt, kt.vertical, li, Ei, Si, Mi), wi && (ui = new wc(Fi, et, Oi, Vi, Wt, wi, Ti, pr, Si, Mi));
7610
7610
  }
7611
7611
  if (ai) {
7612
- const Mi = Ht.layout.get("icon-rotate").evaluate(zt, {}), mr = Ht.layout.get("icon-text-fit") !== "none", Us = Ld(ai, Mi, tr, mr), jr = wi ? Ld(wi, Mi, tr, mr) : void 0;
7612
+ const Mi = Ht.layout.get("icon-rotate").evaluate(zt, {}), mr = Ht.layout.get("icon-text-fit") !== "none", Us = Dd(ai, Mi, tr, mr), jr = wi ? Dd(wi, Mi, tr, mr) : void 0;
7613
7613
  Er = new wc(Fi, et, Oi, Vi, Wt, ai, Ti, pr, !1, Mi), Mn = 4 * Us.length;
7614
7614
  const js = $e.iconSizeData;
7615
7615
  let dn = null;
@@ -7619,7 +7619,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7619
7619
  for (const Mi of Gd) {
7620
7620
  const mr = kt.horizontal[Mi];
7621
7621
  if (!un) {
7622
- Zd = Do(mr.text);
7622
+ Zd = Lo(mr.text);
7623
7623
  const jr = Ht.layout.get("text-rotate").evaluate(zt, {}, Gt);
7624
7624
  un = new wc(Fi, et, Oi, Vi, Wt, mr, li, Ei, Si, jr);
7625
7625
  }
@@ -7627,7 +7627,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7627
7627
  if (jd += Od($e, et, mr, Cr, Ht, Si, zt, Ni, hn, kt.vertical ? S.ai.horizontal : S.ai.horizontalOnly, Us ? Gd : [Mi], zn, jh, Ot, Gt), Us) break;
7628
7628
  }
7629
7629
  kt.vertical && (qd += Od($e, et, kt.vertical, Cr, Ht, Si, zt, Ni, hn, S.ai.vertical, ["vertical"], zn, qh, Ot, Gt));
7630
- const zm = un ? un.boxStartIndex : $e.collisionBoxArray.length, Dm = un ? un.boxEndIndex : $e.collisionBoxArray.length, Lm = fr ? fr.boxStartIndex : $e.collisionBoxArray.length, Rm = fr ? fr.boxEndIndex : $e.collisionBoxArray.length, Bm = Er ? Er.boxStartIndex : $e.collisionBoxArray.length, Fm = Er ? Er.boxEndIndex : $e.collisionBoxArray.length, Om = ui ? ui.boxStartIndex : $e.collisionBoxArray.length, Vm = ui ? ui.boxEndIndex : $e.collisionBoxArray.length;
7630
+ const zm = un ? un.boxStartIndex : $e.collisionBoxArray.length, Lm = un ? un.boxEndIndex : $e.collisionBoxArray.length, Dm = fr ? fr.boxStartIndex : $e.collisionBoxArray.length, Rm = fr ? fr.boxEndIndex : $e.collisionBoxArray.length, Bm = Er ? Er.boxStartIndex : $e.collisionBoxArray.length, Fm = Er ? Er.boxEndIndex : $e.collisionBoxArray.length, Om = ui ? ui.boxStartIndex : $e.collisionBoxArray.length, Vm = ui ? ui.boxEndIndex : $e.collisionBoxArray.length;
7631
7631
  let Ur = -1;
7632
7632
  const Tc = (Mi, mr) => Mi && Mi.circleDiameter ? Math.max(Mi.circleDiameter, mr) : mr;
7633
7633
  Ur = Tc(un, Ur), Ur = Tc(fr, Ur), Ur = Tc(Er, Ur), Ur = Tc(ui, Ur);
@@ -7641,8 +7641,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7641
7641
  }
7642
7642
  return [Us, Mi.length];
7643
7643
  }($e.textAnchorOffsets, Nm);
7644
- $e.symbolInstances.emplaceBack(et.x, et.y, zn.right >= 0 ? zn.right : -1, zn.center >= 0 ? zn.center : -1, zn.left >= 0 ? zn.left : -1, zn.vertical || -1, jh, qh, Zd, zm, Dm, Lm, Rm, Bm, Fm, Om, Vm, Oi, jd, qd, Mn, pl, Hd, 0, li, Ur, $m, Um);
7645
- }(i, Ze, ge, r, s, l, Ve, i.layers[0], i.collisionBoxArray, e.index, e.sourceLayerIndex, i.index, q, [ie, ie, ie, ie], De, _, se, ue, Xe, L, e, d, v, T, p);
7644
+ $e.symbolInstances.emplaceBack(et.x, et.y, zn.right >= 0 ? zn.right : -1, zn.center >= 0 ? zn.center : -1, zn.left >= 0 ? zn.left : -1, zn.vertical || -1, jh, qh, Zd, zm, Lm, Dm, Rm, Bm, Fm, Om, Vm, Oi, jd, qd, Mn, pl, Hd, 0, li, Ur, $m, Um);
7645
+ }(i, Ze, ge, r, s, l, Ve, i.layers[0], i.collisionBoxArray, e.index, e.sourceLayerIndex, i.index, q, [ie, ie, ie, ie], Le, _, se, ue, Xe, D, e, d, v, T, p);
7646
7646
  };
7647
7647
  if (Ee === "line") for (const ge of Ad(e.geometry, 0, 0, ti, ti)) {
7648
7648
  const Ze = Im(ge, Y, ve, r.vertical || B, s, 24, X, i.overscaling, ti);
@@ -7660,9 +7660,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7660
7660
  else if (e.type === "LineString") for (const ge of e.geometry) Be(ge, new ns(ge[0].x, ge[0].y, 0));
7661
7661
  else if (e.type === "Point") for (const ge of e.geometry) for (const Ze of ge) Be([Ze], new ns(Ze.x, Ze.y, 0));
7662
7662
  }
7663
- function Od(i, e, r, s, l, d, p, m, _, v, T, P, E, L, B) {
7664
- const O = function(se, Y, ie, ue, ve, De, Xe, Ee) {
7665
- const Ae = ue.layout.get("text-rotate").evaluate(De, {}) * Math.PI / 180, je = [];
7663
+ function Od(i, e, r, s, l, d, p, m, _, v, T, P, E, D, B) {
7664
+ const O = function(se, Y, ie, ue, ve, Le, Xe, Ee) {
7665
+ const Ae = ue.layout.get("text-rotate").evaluate(Le, {}) * Math.PI / 180, je = [];
7666
7666
  for (const Ve of Y.positionedLines) for (const Be of Ve.positionedGlyphs) {
7667
7667
  if (!Be.rect) continue;
7668
7668
  const ge = Be.rect || {};
@@ -7690,7 +7690,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7690
7690
  return je;
7691
7691
  }(0, r, m, l, d, p, s, i.allowVerticalPlacement), q = i.textSizeData;
7692
7692
  let X = null;
7693
- q.kind === "source" ? (X = [cn * l.layout.get("text-size").evaluate(p, {})], X[0] > is && di(`${i.layerIds[0]}: Value for "text-size" is >= ${cl}. Reduce your "text-size".`)) : q.kind === "composite" && (X = [cn * L.compositeTextSizes[0].evaluate(p, {}, B), cn * L.compositeTextSizes[1].evaluate(p, {}, B)], (X[0] > is || X[1] > is) && di(`${i.layerIds[0]}: Value for "text-size" is >= ${cl}. Reduce your "text-size".`)), i.addSymbols(i.text, O, X, m, d, p, v, e, _.lineStartIndex, _.lineLength, E, B);
7693
+ q.kind === "source" ? (X = [cn * l.layout.get("text-size").evaluate(p, {})], X[0] > is && di(`${i.layerIds[0]}: Value for "text-size" is >= ${cl}. Reduce your "text-size".`)) : q.kind === "composite" && (X = [cn * D.compositeTextSizes[0].evaluate(p, {}, B), cn * D.compositeTextSizes[1].evaluate(p, {}, B)], (X[0] > is || X[1] > is) && di(`${i.layerIds[0]}: Value for "text-size" is >= ${cl}. Reduce your "text-size".`)), i.addSymbols(i.text, O, X, m, d, p, v, e, _.lineStartIndex, _.lineLength, E, B);
7694
7694
  for (const se of T) P[se] = i.text.placedSymbolArray.length - 1;
7695
7695
  return 4 * O.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 L = E + P >> 1, B = p[2 * L], O = p[2 * L + 1];
7751
- B >= e && B <= s && O >= r && O <= l && v.push(d[L]), (T === 0 ? e <= B : r <= O) && (_.push(E), _.push(L - 1), _.push(1 - T)), (T === 0 ? s >= B : l >= O) && (_.push(L + 1), _.push(P), _.push(1 - T));
7750
+ const D = E + P >> 1, B = p[2 * D], O = p[2 * D + 1];
7751
+ B >= e && B <= s && O >= r && O <= l && v.push(d[D]), (T === 0 ? e <= B : r <= O) && (_.push(E), _.push(D - 1), _.push(1 - T)), (T === 0 ? s >= B : l >= O) && (_.push(D + 1), _.push(P), _.push(1 - T));
7752
7752
  }
7753
7753
  return v;
7754
7754
  }
@@ -7761,8 +7761,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7761
7761
  for (let q = E; q <= P; q++) Ud(d[2 * q], d[2 * q + 1], e, r) <= v && _.push(l[q]);
7762
7762
  continue;
7763
7763
  }
7764
- const L = E + P >> 1, B = d[2 * L], O = d[2 * L + 1];
7765
- Ud(B, O, e, r) <= v && _.push(l[L]), (T === 0 ? e - s <= B : r - s <= O) && (m.push(E), m.push(L - 1), m.push(1 - T)), (T === 0 ? e + s >= B : r + s >= O) && (m.push(L + 1), m.push(P), m.push(1 - T));
7764
+ const D = E + P >> 1, B = d[2 * D], O = d[2 * D + 1];
7765
+ Ud(B, O, e, r) <= v && _.push(l[D]), (T === 0 ? e - s <= B : r - s <= O) && (m.push(E), m.push(D - 1), m.push(1 - T)), (T === 0 ? e + s >= B : r + s >= O) && (m.push(D + 1), m.push(P), m.push(1 - T));
7766
7766
  }
7767
7767
  return _;
7768
7768
  }
@@ -7775,8 +7775,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7775
7775
  function $d(i, e, r, s, l, d) {
7776
7776
  for (; l > s; ) {
7777
7777
  if (l - s > 600) {
7778
- const v = l - s + 1, T = r - s + 1, P = Math.log(v), E = 0.5 * Math.exp(2 * P / 3), L = 0.5 * Math.sqrt(P * E * (v - E) / v) * (T - v / 2 < 0 ? -1 : 1);
7779
- $d(i, e, r, Math.max(s, Math.floor(r - T * E / v + L)), Math.min(l, Math.floor(r + (v - T) * E / v + L)), d);
7778
+ const v = l - s + 1, T = r - s + 1, P = Math.log(v), E = 0.5 * Math.exp(2 * P / 3), D = 0.5 * Math.sqrt(P * E * (v - E) / v) * (T - v / 2 < 0 ? -1 : 1);
7779
+ $d(i, e, r, Math.max(s, Math.floor(r - T * E / v + D)), Math.min(l, Math.floor(r + (v - T) * E / v + D)), d);
7780
7780
  }
7781
7781
  const p = e[2 * r + d];
7782
7782
  let m = s, _ = l;
@@ -7816,11 +7816,11 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7816
7816
  } };
7817
7817
  S.$ = class extends F {
7818
7818
  }, S.A = Bo, S.B = Va, S.C = function(i) {
7819
- if (Dn == null) {
7819
+ if (Ln == null) {
7820
7820
  const e = i.navigator ? i.navigator.userAgent : null;
7821
- Dn = !!i.safari || !(!e || !(/\b(iPad|iPhone|iPod)\b/.test(e) || e.match("Safari") && !e.match("Chrome")));
7821
+ Ln = !!i.safari || !(!e || !(/\b(iPad|iPhone|iPod)\b/.test(e) || e.match("Safari") && !e.match("Chrome")));
7822
7822
  }
7823
- return Dn;
7823
+ return Ln;
7824
7824
  }, S.D = qe, S.E = Bn, S.F = class {
7825
7825
  constructor(i, e) {
7826
7826
  this.target = i, this.mapId = e, this.resolveRejects = {}, this.tasks = {}, this.taskQueue = [], this.abortControllers = {}, this.messageHandlers = {}, this.invoker = new wm(() => this.process()), this.subscription = function(r, s, l, d) {
@@ -7891,8 +7891,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7891
7891
  var i = new Bo(16);
7892
7892
  return Bo != 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 = Sh, S.J = function(i, e, r) {
7894
- var s, l, d, p, m, _, v, T, P, E, L, B, O = r[0], q = r[1], X = r[2];
7895
- return e === i ? (i[12] = e[0] * O + e[4] * q + e[8] * X + e[12], i[13] = e[1] * O + e[5] * q + e[9] * X + e[13], i[14] = e[2] * O + e[6] * q + e[10] * X + e[14], i[15] = e[3] * O + e[7] * q + e[11] * X + e[15]) : (l = e[1], d = e[2], p = e[3], m = e[4], _ = e[5], v = e[6], T = e[7], P = e[8], E = e[9], L = e[10], B = e[11], i[0] = s = e[0], i[1] = l, i[2] = d, i[3] = p, i[4] = m, i[5] = _, i[6] = v, i[7] = T, i[8] = P, i[9] = E, i[10] = L, i[11] = B, i[12] = s * O + m * q + P * X + e[12], i[13] = l * O + _ * q + E * X + e[13], i[14] = d * O + v * q + L * X + e[14], i[15] = p * O + T * q + B * X + e[15]), i;
7894
+ var s, l, d, p, m, _, v, T, P, E, D, B, O = r[0], q = r[1], X = r[2];
7895
+ return e === i ? (i[12] = e[0] * O + e[4] * q + e[8] * X + e[12], i[13] = e[1] * O + e[5] * q + e[9] * X + e[13], i[14] = e[2] * O + e[6] * q + e[10] * X + e[14], i[15] = e[3] * O + e[7] * q + e[11] * X + e[15]) : (l = e[1], d = e[2], p = e[3], m = e[4], _ = e[5], v = e[6], T = e[7], P = e[8], E = e[9], D = e[10], B = e[11], i[0] = s = e[0], i[1] = l, i[2] = d, i[3] = p, i[4] = m, i[5] = _, i[6] = v, i[7] = T, i[8] = P, i[9] = E, i[10] = D, i[11] = B, i[12] = s * O + m * q + P * X + e[12], i[13] = l * O + _ * q + E * X + e[13], i[14] = d * O + v * q + D * X + e[14], i[15] = p * O + T * q + B * X + 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,9 +7904,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7904
7904
  }
7905
7905
  return r;
7906
7906
  }, S.N = rs, S.O = _d, S.P = oe, S.Q = yd, S.R = ur, S.S = dr, S.T = Wn, S.U = gt, S.V = ot, S.W = pn, S.X = ti, S.Y = w, S.Z = yc, S._ = c, S.a = Wr, S.a$ = function(i, e) {
7907
- var r = i[0], s = i[1], l = i[2], d = i[3], p = i[4], m = i[5], _ = i[6], v = i[7], T = i[8], P = i[9], E = i[10], L = i[11], B = i[12], O = i[13], q = i[14], X = i[15], se = e[0], Y = e[1], ie = e[2], ue = e[3], ve = e[4], De = e[5], Xe = e[6], Ee = e[7], Ae = e[8], je = e[9], Ve = e[10], Be = e[11], ge = e[12], Ze = e[13], $e = e[14], et = e[15];
7908
- return Math.abs(r - se) <= Bi * Math.max(1, Math.abs(r), Math.abs(se)) && Math.abs(s - Y) <= Bi * Math.max(1, Math.abs(s), Math.abs(Y)) && Math.abs(l - ie) <= Bi * Math.max(1, Math.abs(l), Math.abs(ie)) && Math.abs(d - ue) <= Bi * Math.max(1, Math.abs(d), Math.abs(ue)) && Math.abs(p - ve) <= Bi * Math.max(1, Math.abs(p), Math.abs(ve)) && Math.abs(m - De) <= Bi * Math.max(1, Math.abs(m), Math.abs(De)) && Math.abs(_ - Xe) <= Bi * Math.max(1, Math.abs(_), Math.abs(Xe)) && Math.abs(v - Ee) <= Bi * Math.max(1, Math.abs(v), Math.abs(Ee)) && Math.abs(T - Ae) <= Bi * Math.max(1, Math.abs(T), Math.abs(Ae)) && Math.abs(P - je) <= Bi * Math.max(1, Math.abs(P), Math.abs(je)) && Math.abs(E - Ve) <= Bi * Math.max(1, Math.abs(E), Math.abs(Ve)) && Math.abs(L - Be) <= Bi * Math.max(1, Math.abs(L), Math.abs(Be)) && Math.abs(B - ge) <= Bi * Math.max(1, Math.abs(B), Math.abs(ge)) && Math.abs(O - Ze) <= Bi * Math.max(1, Math.abs(O), Math.abs(Ze)) && Math.abs(q - $e) <= Bi * Math.max(1, Math.abs(q), Math.abs($e)) && Math.abs(X - et) <= Bi * Math.max(1, Math.abs(X), Math.abs(et));
7909
- }, S.a0 = ni, S.a1 = Dh, S.a2 = Te, S.a3 = (i) => {
7907
+ var r = i[0], s = i[1], l = i[2], d = i[3], p = i[4], m = i[5], _ = i[6], v = i[7], T = i[8], P = i[9], E = i[10], D = i[11], B = i[12], O = i[13], q = i[14], X = i[15], se = e[0], Y = e[1], ie = e[2], ue = e[3], ve = e[4], Le = e[5], Xe = e[6], Ee = e[7], Ae = e[8], je = e[9], Ve = e[10], Be = e[11], ge = e[12], Ze = e[13], $e = e[14], et = e[15];
7908
+ return Math.abs(r - se) <= Bi * Math.max(1, Math.abs(r), Math.abs(se)) && Math.abs(s - Y) <= Bi * Math.max(1, Math.abs(s), Math.abs(Y)) && Math.abs(l - ie) <= Bi * Math.max(1, Math.abs(l), Math.abs(ie)) && Math.abs(d - ue) <= Bi * Math.max(1, Math.abs(d), Math.abs(ue)) && Math.abs(p - ve) <= Bi * Math.max(1, Math.abs(p), Math.abs(ve)) && Math.abs(m - Le) <= Bi * Math.max(1, Math.abs(m), Math.abs(Le)) && Math.abs(_ - Xe) <= Bi * Math.max(1, Math.abs(_), Math.abs(Xe)) && Math.abs(v - Ee) <= Bi * Math.max(1, Math.abs(v), Math.abs(Ee)) && Math.abs(T - Ae) <= Bi * Math.max(1, Math.abs(T), Math.abs(Ae)) && Math.abs(P - je) <= Bi * Math.max(1, Math.abs(P), Math.abs(je)) && Math.abs(E - Ve) <= Bi * Math.max(1, Math.abs(E), Math.abs(Ve)) && Math.abs(D - Be) <= Bi * Math.max(1, Math.abs(D), Math.abs(Be)) && Math.abs(B - ge) <= Bi * Math.max(1, Math.abs(B), Math.abs(ge)) && Math.abs(O - Ze) <= Bi * Math.max(1, Math.abs(O), Math.abs(Ze)) && Math.abs(q - $e) <= Bi * Math.max(1, Math.abs(q), Math.abs($e)) && Math.abs(X - et) <= Bi * Math.max(1, Math.abs(X), Math.abs(et));
7909
+ }, S.a0 = ni, S.a1 = Lh, S.a2 = Te, S.a3 = (i) => {
7910
7910
  const e = window.document.createElement("video");
7911
7911
  return e.muted = !0, new Promise((r) => {
7912
7912
  e.onloadstart = () => {
@@ -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, m, _) {
7966
7966
  m = m || [];
7967
- const v = (p = p || []).map(ds), T = m.map(ds), P = p.reduce(ps, {}), E = m.reduce(ps, {}), L = v.slice(), B = /* @__PURE__ */ Object.create(null);
7967
+ const v = (p = p || []).map(ds), T = m.map(ds), P = p.reduce(ps, {}), E = m.reduce(ps, {}), D = v.slice(), B = /* @__PURE__ */ Object.create(null);
7968
7968
  let O, q, X, se, Y;
7969
- for (let ie = 0, ue = 0; ie < v.length; ie++) O = v[ie], Object.prototype.hasOwnProperty.call(E, O) ? ue++ : (qt(_, { command: "removeLayer", args: [O] }), L.splice(L.indexOf(O, ue), 1));
7970
- for (let ie = 0, ue = 0; ie < T.length; ie++) O = T[T.length - 1 - ie], L[L.length - 1 - ie] !== O && (Object.prototype.hasOwnProperty.call(P, O) ? (qt(_, { command: "removeLayer", args: [O] }), L.splice(L.lastIndexOf(O, L.length - ue), 1)) : ue++, se = L[L.length - ie], qt(_, { command: "addLayer", args: [E[O], se] }), L.splice(L.length - ie, 0, O), B[O] = !0);
7969
+ for (let ie = 0, ue = 0; ie < v.length; ie++) O = v[ie], Object.prototype.hasOwnProperty.call(E, O) ? ue++ : (qt(_, { command: "removeLayer", args: [O] }), D.splice(D.indexOf(O, ue), 1));
7970
+ for (let ie = 0, ue = 0; ie < T.length; ie++) O = T[T.length - 1 - ie], D[D.length - 1 - ie] !== O && (Object.prototype.hasOwnProperty.call(P, O) ? (qt(_, { command: "removeLayer", args: [O] }), D.splice(D.lastIndexOf(O, D.length - ue), 1)) : ue++, se = D[D.length - ie], qt(_, { command: "addLayer", args: [E[O], se] }), D.splice(D.length - ie, 0, O), B[O] = !0);
7971
7971
  for (let ie = 0; ie < T.length; ie++) if (O = T[ie], q = P[O], X = E[O], !B[O] && !vt(q, X)) if (vt(q.source, X.source) && vt(q["source-layer"], X["source-layer"]) && vt(q.type, X.type)) {
7972
7972
  for (Y in Yi(q.layout, X.layout, _, O, null, "setLayoutProperty"), Yi(q.paint, X.paint, _, O, null, "setPaintProperty"), vt(q.filter, X.filter) || qt(_, { command: "setFilter", args: [O, X.filter] }), vt(q.minzoom, X.minzoom) && vt(q.maxzoom, X.maxzoom) || qt(_, { command: "setLayerZoomRange", args: [O, X.minzoom, X.maxzoom] }), q) Object.prototype.hasOwnProperty.call(q, Y) && Y !== "layout" && Y !== "paint" && Y !== "filter" && Y !== "metadata" && Y !== "minzoom" && Y !== "maxzoom" && (Y.indexOf("paint.") === 0 ? Yi(q[Y], X[Y], _, O, Y.slice(6), "setPaintProperty") : vt(q[Y], X[Y]) || qt(_, { command: "setLayerProperty", args: [O, Y, X[Y]] }));
7973
7973
  for (Y in X) Object.prototype.hasOwnProperty.call(X, Y) && !Object.prototype.hasOwnProperty.call(q, Y) && Y !== "layout" && Y !== "paint" && Y !== "filter" && Y !== "metadata" && Y !== "minzoom" && Y !== "maxzoom" && (Y.indexOf("paint.") === 0 ? Yi(q[Y], X[Y], _, O, Y.slice(6), "setPaintProperty") : vt(q[Y], X[Y]) || qt(_, { command: "setLayerProperty", args: [O, Y, X[Y]] }));
7974
- } else qt(_, { command: "removeLayer", args: [O] }), se = L[L.lastIndexOf(O) + 1], qt(_, { command: "addLayer", args: [X, se] });
7974
+ } else qt(_, { command: "removeLayer", args: [O] }), se = D[D.lastIndexOf(O) + 1], qt(_, { command: "addLayer", args: [X, 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 = si, S.as = Ph, S.at = function(i, e) {
8077
- var r = e[0], s = e[1], l = e[2], d = e[3], p = e[4], m = e[5], _ = e[6], v = e[7], T = e[8], P = e[9], E = e[10], L = e[11], B = e[12], O = e[13], q = e[14], X = e[15], se = r * m - s * p, Y = r * _ - l * p, ie = r * v - d * p, ue = s * _ - l * m, ve = s * v - d * m, De = l * v - d * _, Xe = T * O - P * B, Ee = T * q - E * B, Ae = T * X - L * B, je = P * q - E * O, Ve = P * X - L * O, Be = E * X - L * q, ge = se * Be - Y * Ve + ie * je + ue * Ae - ve * Ee + De * Xe;
8078
- return ge ? (i[0] = (m * Be - _ * Ve + v * je) * (ge = 1 / ge), i[1] = (l * Ve - s * Be - d * je) * ge, i[2] = (O * De - q * ve + X * ue) * ge, i[3] = (E * ve - P * De - L * ue) * ge, i[4] = (_ * Ae - p * Be - v * Ee) * ge, i[5] = (r * Be - l * Ae + d * Ee) * ge, i[6] = (q * ie - B * De - X * Y) * ge, i[7] = (T * De - E * ie + L * Y) * ge, i[8] = (p * Ve - m * Ae + v * Xe) * ge, i[9] = (s * Ae - r * Ve - d * Xe) * ge, i[10] = (B * ve - O * ie + X * se) * ge, i[11] = (P * ie - T * ve - L * se) * ge, i[12] = (m * Ee - p * je - _ * Xe) * ge, i[13] = (r * je - s * Ee + l * Xe) * ge, i[14] = (O * Y - B * ue - q * se) * ge, i[15] = (T * ue - P * Y + E * se) * ge, i) : null;
8077
+ var r = e[0], s = e[1], l = e[2], d = e[3], p = e[4], m = e[5], _ = e[6], v = e[7], T = e[8], P = e[9], E = e[10], D = e[11], B = e[12], O = e[13], q = e[14], X = e[15], se = r * m - s * p, Y = r * _ - l * p, ie = r * v - d * p, ue = s * _ - l * m, ve = s * v - d * m, Le = l * v - d * _, Xe = T * O - P * B, Ee = T * q - E * B, Ae = T * X - D * B, je = P * q - E * O, Ve = P * X - D * O, Be = E * X - D * q, ge = se * Be - Y * Ve + ie * je + ue * Ae - ve * Ee + Le * Xe;
8078
+ return ge ? (i[0] = (m * Be - _ * Ve + v * je) * (ge = 1 / ge), i[1] = (l * Ve - s * Be - d * je) * ge, i[2] = (O * Le - q * ve + X * ue) * ge, i[3] = (E * ve - P * Le - D * ue) * ge, i[4] = (_ * Ae - p * Be - v * Ee) * ge, i[5] = (r * Be - l * Ae + d * Ee) * ge, i[6] = (q * ie - B * Le - X * Y) * ge, i[7] = (T * Le - E * ie + D * Y) * ge, i[8] = (p * Ve - m * Ae + v * Xe) * ge, i[9] = (s * Ae - r * Ve - d * Xe) * ge, i[10] = (B * ve - O * ie + X * se) * ge, i[11] = (P * ie - T * ve - D * se) * ge, i[12] = (m * Ee - p * je - _ * Xe) * ge, i[13] = (r * je - s * Ee + l * Xe) * ge, i[14] = (O * Y - B * ue - q * se) * ge, i[15] = (T * ue - P * Y + E * se) * ge, i) : null;
8079
8079
  }, S.au = Rh, S.av = Ih, S.aw = Bh, S.ax = function() {
8080
8080
  const i = {}, e = he.$version;
8081
8081
  for (const r in he.$root) {
@@ -8133,17 +8133,17 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
8133
8133
  }
8134
8134
  const d = r.get("text-line-height") * si, p = r.get("text-rotation-alignment") !== "viewport" && r.get("symbol-placement") !== "point", m = r.get("text-keep-upright"), _ = r.get("text-size");
8135
8135
  for (const v of i.bucket.features) {
8136
- const T = r.get("text-font").evaluate(v, {}, i.canonical).join(","), P = _.evaluate(v, {}, i.canonical), E = l.layoutTextSize.evaluate(v, {}, i.canonical), L = l.layoutIconSize.evaluate(v, {}, i.canonical), B = { horizontal: {}, vertical: void 0 }, O = v.text;
8136
+ const T = r.get("text-font").evaluate(v, {}, i.canonical).join(","), P = _.evaluate(v, {}, i.canonical), E = l.layoutTextSize.evaluate(v, {}, i.canonical), D = l.layoutIconSize.evaluate(v, {}, i.canonical), B = { horizontal: {}, vertical: void 0 }, O = v.text;
8137
8137
  let q, X = [0, 0];
8138
8138
  if (O) {
8139
- const ie = O.toString(), ue = r.get("text-letter-spacing").evaluate(v, {}, i.canonical) * si, ve = ih(ie) ? ue : 0, De = r.get("text-anchor").evaluate(v, {}, i.canonical), Xe = Fd(e, v, i.canonical);
8139
+ const ie = O.toString(), ue = r.get("text-letter-spacing").evaluate(v, {}, i.canonical) * si, ve = ih(ie) ? ue : 0, Le = r.get("text-anchor").evaluate(v, {}, i.canonical), Xe = Fd(e, v, i.canonical);
8140
8140
  if (!Xe) {
8141
8141
  const Ve = r.get("text-radial-offset").evaluate(v, {}, i.canonical);
8142
- X = Ve ? Bd(De, [Ve * si, Lh]) : r.get("text-offset").evaluate(v, {}, i.canonical).map((Be) => Be * si);
8142
+ X = Ve ? Bd(Le, [Ve * si, Dh]) : r.get("text-offset").evaluate(v, {}, i.canonical).map((Be) => Be * si);
8143
8143
  }
8144
8144
  let Ee = p ? "center" : r.get("text-justify").evaluate(v, {}, i.canonical);
8145
8145
  const Ae = r.get("symbol-placement") === "point" ? r.get("text-max-width").evaluate(v, {}, i.canonical) * si : 1 / 0, je = () => {
8146
- i.bucket.allowVerticalPlacement && Ua(ie) && (B.vertical = fc(O, i.glyphMap, i.glyphPositions, i.imagePositions, T, Ae, d, De, "left", ve, X, S.ai.vertical, !0, E, P));
8146
+ i.bucket.allowVerticalPlacement && Ua(ie) && (B.vertical = fc(O, i.glyphMap, i.glyphPositions, i.imagePositions, T, Ae, d, Le, "left", ve, X, S.ai.vertical, !0, E, P));
8147
8147
  };
8148
8148
  if (!p && Xe) {
8149
8149
  const Ve = /* @__PURE__ */ new Set();
@@ -8157,9 +8157,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
8157
8157
  }
8158
8158
  je();
8159
8159
  } else {
8160
- Ee === "auto" && (Ee = Rh(De));
8161
- const Ve = fc(O, i.glyphMap, i.glyphPositions, i.imagePositions, T, Ae, d, De, Ee, ve, X, S.ai.horizontal, !1, E, P);
8162
- Ve && (B.horizontal[Ee] = Ve), je(), Ua(ie) && p && m && (B.vertical = fc(O, i.glyphMap, i.glyphPositions, i.imagePositions, T, Ae, d, De, Ee, ve, X, S.ai.vertical, !1, E, P));
8160
+ Ee === "auto" && (Ee = Rh(Le));
8161
+ const Ve = fc(O, i.glyphMap, i.glyphPositions, i.imagePositions, T, Ae, d, Le, Ee, ve, X, S.ai.horizontal, !1, E, P);
8162
+ Ve && (B.horizontal[Ee] = Ve), je(), Ua(ie) && p && m && (B.vertical = fc(O, i.glyphMap, i.glyphPositions, i.imagePositions, T, Ae, d, Le, Ee, ve, X, S.ai.vertical, !1, E, P));
8163
8163
  }
8164
8164
  }
8165
8165
  let se = !1;
@@ -8168,7 +8168,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
8168
8168
  ie && (q = pm(i.imagePositions[v.icon.name], r.get("icon-offset").evaluate(v, {}, i.canonical), r.get("icon-anchor").evaluate(v, {}, i.canonical)), se = !!ie.sdf, i.bucket.sdfIcons === void 0 ? i.bucket.sdfIcons = se : i.bucket.sdfIcons !== se && di("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 = Vd(B.horizontal) || B.vertical;
8171
- i.bucket.iconsInText = !!Y && Y.iconsInText, (Y || q) && Cm(i.bucket, v, B, q, i.imageMap, l, E, L, X, se, i.canonical);
8171
+ i.bucket.iconsInText = !!Y && Y.iconsInText, (Y || q) && Cm(i.bucket, v, B, q, i.imageMap, l, E, D, X, se, i.canonical);
8172
8172
  }
8173
8173
  i.showCollisionBoxes && i.bucket.generateCollisionDebugBuffers();
8174
8174
  }, S.bp = xh, S.bq = gh, S.br = yh, S.bs = es, S.bt = bh, S.bu = class {
@@ -8188,12 +8188,12 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
8188
8188
  }
8189
8189
  return function(d, p, m, _, v) {
8190
8190
  const T = d.width, P = d.height;
8191
- Dr && zi || (Dr = new OffscreenCanvas(T, P), zi = Dr.getContext("2d", { willReadFrequently: !0 })), Dr.width = T, Dr.height = P, zi.drawImage(d, 0, 0, T, P);
8191
+ Lr && zi || (Lr = new OffscreenCanvas(T, P), zi = Lr.getContext("2d", { willReadFrequently: !0 })), Lr.width = T, Lr.height = P, zi.drawImage(d, 0, 0, T, P);
8192
8192
  const E = zi.getImageData(p, m, _, v);
8193
8193
  return zi.clearRect(0, 0, T, P), E.data;
8194
8194
  }(i, e, r, s, l);
8195
8195
  });
8196
- }, S.bw = wd, S.bx = pe, S.by = fe, S.bz = Hu, S.c = Ln, S.d = (i) => c(void 0, void 0, void 0, function* () {
8196
+ }, S.bw = wd, S.bx = pe, S.by = fe, S.bz = Hu, S.c = Dn, S.d = (i) => c(void 0, void 0, void 0, function* () {
8197
8197
  if (i.byteLength === 0) return createImageBitmap(new ImageData(1, 1));
8198
8198
  const e = new Blob([new Uint8Array(i)], { type: "image/png" });
8199
8199
  try {
@@ -8215,7 +8215,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
8215
8215
  }, S.o = el, S.p = td, S.q = o, S.r = Qc, S.s = mn, S.t = Na, S.u = Me, S.v = he, S.w = di, S.x = Nr, S.y = function([i, e, r]) {
8216
8216
  return e += 90, e *= Math.PI / 180, r *= Math.PI / 180, { x: i * Math.cos(e) * Math.sin(r), y: i * Math.sin(e) * Math.sin(r), z: i * Math.cos(r) };
8217
8217
  }, S.z = Zi;
8218
- }), D("worker", ["./shared"], function(S) {
8218
+ }), L("worker", ["./shared"], function(S) {
8219
8219
  class c {
8220
8220
  constructor(z) {
8221
8221
  this.keyCache = {}, z && this.replace(z);
@@ -8479,7 +8479,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
8479
8479
  var Z = V.keys;
8480
8480
  for (M = 0; M < Z.length; M++) z.writeStringField(3, Z[M]);
8481
8481
  var Q = V.values;
8482
- for (M = 0; M < Q.length; M++) z.writeMessage(4, Dn, Q[M]);
8482
+ for (M = 0; M < Q.length; M++) z.writeMessage(4, Ln, Q[M]);
8483
8483
  }
8484
8484
  function It(H, z) {
8485
8485
  var M = H.feature;
@@ -8516,7 +8516,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
8516
8516
  V === 3 && z.writeVarint(di(7, 1));
8517
8517
  }
8518
8518
  }
8519
- function Dn(H, z) {
8519
+ function Ln(H, z) {
8520
8520
  var M = typeof H;
8521
8521
  M === "string" ? z.writeStringField(1, H) : M === "boolean" ? z.writeBooleanField(7, H) : M === "number" && (H % 1 != 0 ? z.writeDoubleField(3, H) : H < 0 ? z.writeSVarintField(6, H) : z.writeVarintField(5, H));
8522
8522
  }
@@ -8527,9 +8527,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
8527
8527
  return Ii({ layers: M });
8528
8528
  }, gt.exports.GeoJSONWrapper = Gr;
8529
8529
  var xr = S.bx(gt.exports);
8530
- const Ks = { minZoom: 0, maxZoom: 16, minPoints: 2, radius: 40, extent: 512, nodeSize: 64, log: !1, generateId: !1, reduce: null, map: (H) => H }, pn = Math.fround || (Dr = new Float32Array(1), (H) => (Dr[0] = +H, Dr[0]));
8531
- var Dr;
8532
- const zi = 3, rr = 5, Ln = 6;
8530
+ const Ks = { minZoom: 0, maxZoom: 16, minPoints: 2, radius: 40, extent: 512, nodeSize: 64, log: !1, generateId: !1, reduce: null, map: (H) => H }, pn = Math.fround || (Lr = new Float32Array(1), (H) => (Lr[0] = +H, Lr[0]));
8531
+ var Lr;
8532
+ const zi = 3, rr = 5, Dn = 6;
8533
8533
  class Wr {
8534
8534
  constructor(z) {
8535
8535
  this.options = Object.assign(Object.create(Ks), z), this.trees = new Array(this.options.maxZoom + 1), this.stride = this.options.reduce ? 7 : 6, this.clusterProps = [];
@@ -8676,7 +8676,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
8676
8676
  }
8677
8677
  _map(z, M, V) {
8678
8678
  if (z[M + rr] > 1) {
8679
- const te = this.clusterProps[z[M + Ln]];
8679
+ const te = this.clusterProps[z[M + Dn]];
8680
8680
  return V ? Object.assign({}, te) : te;
8681
8681
  }
8682
8682
  const Z = this.points[z[M + zi]].properties, Q = this.options.map(Z);
@@ -8688,7 +8688,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
8688
8688
  var V;
8689
8689
  }
8690
8690
  function Rn(H, z, M) {
8691
- const V = H[z + rr], Z = V >= 1e4 ? `${Math.round(V / 1e3)}k` : V >= 1e3 ? Math.round(V / 100) / 10 + "k" : V, Q = H[z + Ln], te = Q === -1 ? {} : Object.assign({}, M[Q]);
8691
+ const V = H[z + rr], Z = V >= 1e4 ? `${Math.round(V / 1e3)}k` : V >= 1e3 ? Math.round(V / 100) / 10 + "k" : V, Q = H[z + Dn], te = Q === -1 ? {} : Object.assign({}, M[Q]);
8692
8692
  return Object.assign(te, { cluster: !0, cluster_id: H[z + zi], point_count: V, point_count_abbreviated: Z });
8693
8693
  }
8694
8694
  function $i(H) {
@@ -8725,7 +8725,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
8725
8725
  }
8726
8726
  return te = H - M, re = z - V, te * te + re * re;
8727
8727
  }
8728
- function Lr(H, z, M, V) {
8728
+ function Dr(H, z, M, V) {
8729
8729
  const Z = { id: H ?? null, type: z, geometry: M, tags: V, minX: 1 / 0, minY: 1 / 0, maxX: -1 / 0, maxY: -1 / 0 };
8730
8730
  if (z === "Point" || z === "MultiPoint" || z === "LineString") Xr(Z, M);
8731
8731
  else if (z === "Polygon") Xr(Z, M[0]);
@@ -8747,7 +8747,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
8747
8747
  else if (Q === "LineString") he(Z, re, te, !1);
8748
8748
  else if (Q === "MultiLineString") {
8749
8749
  if (M.lineMetrics) {
8750
- for (const de of Z) re = [], he(de, re, te, !1), H.push(Lr(J, "LineString", re, z.properties));
8750
+ for (const de of Z) re = [], he(de, re, te, !1), H.push(Dr(J, "LineString", re, z.properties));
8751
8751
  return;
8752
8752
  }
8753
8753
  gn(Z, re, te, !1);
@@ -8765,7 +8765,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
8765
8765
  gn(de, ye, te, !0), re.push(ye);
8766
8766
  }
8767
8767
  }
8768
- H.push(Lr(J, Q, re, z.properties));
8768
+ H.push(Dr(J, Q, re, z.properties));
8769
8769
  }
8770
8770
  function Bn(H, z) {
8771
8771
  z.push(hs(H[0]), vt(H[1]), 0);
@@ -8816,10 +8816,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
8816
8816
  }
8817
8817
  if (We.length) {
8818
8818
  if (re.lineMetrics && ce === "LineString") {
8819
- for (const st of We) J.push(Lr(de.id, ce, st, de.tags));
8819
+ for (const st of We) J.push(Dr(de.id, ce, st, de.tags));
8820
8820
  continue;
8821
8821
  }
8822
- ce !== "LineString" && ce !== "MultiLineString" || (We.length === 1 ? (ce = "LineString", We = We[0]) : ce = "MultiLineString"), ce !== "Point" && ce !== "MultiPoint" || (ce = We.length === 3 ? "Point" : "MultiPoint"), J.push(Lr(de.id, ce, We, de.tags));
8822
+ ce !== "LineString" && ce !== "MultiLineString" || (We.length === 1 ? (ce = "LineString", We = We[0]) : ce = "MultiLineString"), ce !== "Point" && ce !== "MultiPoint" || (ce = We.length === 3 ? "Point" : "MultiPoint"), J.push(Dr(de.id, ce, We, de.tags));
8823
8823
  }
8824
8824
  }
8825
8825
  return J.length ? J : null;
@@ -8878,7 +8878,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
8878
8878
  te.push(J);
8879
8879
  }
8880
8880
  }
8881
- M.push(Lr(Z.id, Q, te, Z.tags));
8881
+ M.push(Dr(Z.id, Q, te, Z.tags));
8882
8882
  }
8883
8883
  return M;
8884
8884
  }
@@ -8945,7 +8945,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
8945
8945
  }(re, Q), H.push(re);
8946
8946
  }
8947
8947
  const Ye = { maxZoom: 14, indexMaxZoom: 5, indexMaxPoints: 1e5, tolerance: 3, extent: 4096, buffer: 64, lineMetrics: !1, promoteId: null, generateId: !1, debug: 0 };
8948
- class Di {
8948
+ class Li {
8949
8949
  constructor(z, M) {
8950
8950
  const V = (M = this.options = function(Q, te) {
8951
8951
  for (const re in te) Q[re] = te[re];
@@ -9099,7 +9099,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
9099
9099
  ce.properties = We;
9100
9100
  for (const st of Ie) ye.accumulated = Ge[st], Ge[st] = de[st].evaluate(ye, ce);
9101
9101
  }, te;
9102
- }(z)).load((yield this._pendingData).features) : (Z = yield this._pendingData, new Di(Z, z.geojsonVtOptions)), this.loaded = {};
9102
+ }(z)).load((yield this._pendingData).features) : (Z = yield this._pendingData, new Li(Z, z.geojsonVtOptions)), this.loaded = {};
9103
9103
  const Q = {};
9104
9104
  if (V) {
9105
9105
  const te = V.finish();
@@ -9264,7 +9264,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
9264
9264
  }
9265
9265
  }
9266
9266
  return S.i(self) && (self.worker = new Tr(self)), Tr;
9267
- }), D("index", ["exports", "./shared"], function(S, c) {
9267
+ }), L("index", ["exports", "./shared"], function(S, c) {
9268
9268
  var pe = "4.5.2";
9269
9269
  let fe, xe;
9270
9270
  const oe = { now: typeof performance < "u" && performance && performance.now ? performance.now.bind(performance) : Date.now.bind(Date), frameAsync: (u) => new Promise((t, n) => {
@@ -9599,10 +9599,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
9599
9599
  }
9600
9600
  const Pi = 1e20;
9601
9601
  function zr(u, t, n, o, a, h, g, y, b) {
9602
- for (let w = t; w < t + o; w++) Dn(u, n * h + w, h, a, g, y, b);
9603
- for (let w = n; w < n + a; w++) Dn(u, w * h + t, 1, o, g, y, b);
9602
+ for (let w = t; w < t + o; w++) Ln(u, n * h + w, h, a, g, y, b);
9603
+ for (let w = n; w < n + a; w++) Ln(u, w * h + t, 1, o, g, y, b);
9604
9604
  }
9605
- function Dn(u, t, n, o, a, h, g) {
9605
+ function Ln(u, t, n, o, a, h, g) {
9606
9606
  h[0] = 0, g[0] = -Pi, g[1] = Pi, a[0] = u[t];
9607
9607
  for (let y = 1, b = 0, w = 0; y < o; y++) {
9608
9608
  a[y] = u[t + y * n];
@@ -9725,7 +9725,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
9725
9725
  }
9726
9726
  }
9727
9727
  let pn;
9728
- class Dr extends c.E {
9728
+ class Lr extends c.E {
9729
9729
  constructor(t) {
9730
9730
  super(), pn = pn || new c.q({ anchor: new c.D(c.v.light.anchor), position: new Ks(), color: new c.D(c.v.light.color), intensity: new c.D(c.v.light.intensity) }), this._transitionable = new c.T(pn), this.setLight(t), this._transitioning = this._transitionable.untransitioned();
9731
9731
  }
@@ -9781,7 +9781,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
9781
9781
  return t < 60 ? 0 : t < 70 ? (t - 60) / 10 : 1;
9782
9782
  }
9783
9783
  }
9784
- class Ln {
9784
+ class Dn {
9785
9785
  constructor(t, n) {
9786
9786
  this.width = t, this.height = n, this.nextRow = 0, this.data = new Uint8Array(this.width * this.height), this.dashEntry = {};
9787
9787
  }
@@ -9908,7 +9908,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
9908
9908
  function cs() {
9909
9909
  return nr || (nr = new mn(fn(), c.G), nr.registerMessageHandler("GR", (u, t, n) => c.m(t, n))), nr;
9910
9910
  }
9911
- function Lr(u, t) {
9911
+ function Dr(u, t) {
9912
9912
  const n = c.H();
9913
9913
  return c.J(n, n, [1, 1, 0]), c.K(n, n, [0.5 * u.width, 0.5 * u.height, 1]), c.L(n, n, u.calculatePosMatrix(t.toUnwrapped()));
9914
9914
  }
@@ -9926,7 +9926,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
9926
9926
  }(a && a.layers, t, u.id), y = h.maxPitchScaleFactor(), b = u.tilesIn(o, y, g);
9927
9927
  b.sort(Jr);
9928
9928
  const w = [];
9929
- for (const A of b) w.push({ wrappedTileID: A.tileID.wrapped().key, queryResults: A.tile.queryRenderedFeatures(t, n, u._state, A.queryGeometry, A.cameraQueryGeometry, A.scale, a, h, y, Lr(u.transform, A.tileID)) });
9929
+ for (const A of b) w.push({ wrappedTileID: A.tileID.wrapped().key, queryResults: A.tile.queryRenderedFeatures(t, n, u._state, A.queryGeometry, A.cameraQueryGeometry, A.scale, a, h, y, Dr(u.transform, A.tileID)) });
9930
9930
  const k = function(A) {
9931
9931
  const R = {}, F = {};
9932
9932
  for (const N of A) {
@@ -10894,7 +10894,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
10894
10894
  }
10895
10895
  }
10896
10896
  getIds() {
10897
- return Object.values(this._tiles).map((t) => t.tileID).sort(Di).map((t) => t.key);
10897
+ return Object.values(this._tiles).map((t) => t.tileID).sort(Li).map((t) => t.key);
10898
10898
  }
10899
10899
  getRenderableIds(t) {
10900
10900
  const n = [];
@@ -10902,7 +10902,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
10902
10902
  return t ? n.sort((o, a) => {
10903
10903
  const h = o.tileID, g = a.tileID, y = new c.P(h.canonical.x, h.canonical.y)._rotate(this.transform.angle), b = new c.P(g.canonical.x, g.canonical.y)._rotate(this.transform.angle);
10904
10904
  return h.overscaledZ - g.overscaledZ || b.y - y.y || b.x - y.x;
10905
- }).map((o) => o.tileID.key) : n.map((o) => o.tileID).sort(Di).map((o) => o.key);
10905
+ }).map((o) => o.tileID.key) : n.map((o) => o.tileID).sort(Li).map((o) => o.key);
10906
10906
  }
10907
10907
  hasRenderableParent(t) {
10908
10908
  const n = this.findLoadedParent(t, 0);
@@ -11189,7 +11189,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
11189
11189
  this._cache.filter((o) => !o.hasDependency(t, n));
11190
11190
  }
11191
11191
  }
11192
- function Di(u, t) {
11192
+ function Li(u, t) {
11193
11193
  const n = Math.abs(2 * u.wrap) - +(u.wrap < 0), o = Math.abs(2 * t.wrap) - +(t.wrap < 0);
11194
11194
  return u.overscaledZ - t.overscaledZ || o - n || t.canonical.y - u.canonical.y || t.canonical.x - u.canonical.x;
11195
11195
  }
@@ -11378,7 +11378,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
11378
11378
  We(be.numGlyphs, K);
11379
11379
  continue;
11380
11380
  }
11381
- const Le = z(n.transform.cameraToCenterDistance, ze.signedDistanceFromCamera), we = c.aj(G, j, be), Se = g ? we / Le : we * Le, Ne = { getElevation: N, labelPlaneMatrix: a, lineVertexArray: $, pitchWithMap: g, projectionCache: { projections: {}, offsets: {}, cachedAnchorPoint: void 0, anyProjectionOccluded: !1 }, projection: w, tileAnchorPoint: new c.P(be.anchorX, be.anchorY), unwrappedTileID: k, width: A, height: R, translation: F }, tt = te(Ne, be, Se, !1, y, t, h, u.glyphOffsetArray, K, ne, b);
11381
+ const De = z(n.transform.cameraToCenterDistance, ze.signedDistanceFromCamera), we = c.aj(G, j, be), Se = g ? we / De : we * De, Ne = { getElevation: N, labelPlaneMatrix: a, lineVertexArray: $, pitchWithMap: g, projectionCache: { projections: {}, offsets: {}, cachedAnchorPoint: void 0, anyProjectionOccluded: !1 }, projection: w, tileAnchorPoint: new c.P(be.anchorX, be.anchorY), unwrappedTileID: k, width: A, height: R, translation: F }, tt = te(Ne, be, Se, !1, y, t, h, u.glyphOffsetArray, K, ne, b);
11382
11382
  le = tt.useVertical, (tt.notEnoughRoom || le || tt.needsFlipping && te(Ne, be, Se, !0, y, t, h, u.glyphOffsetArray, K, ne, b).notEnoughRoom) && We(be.numGlyphs, K);
11383
11383
  }
11384
11384
  o ? u.text.dynamicLayoutVertexBuffer.updateData(K) : u.icon.dynamicLayoutVertexBuffer.updateData(K);
@@ -11408,8 +11408,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
11408
11408
  N.push(K.last);
11409
11409
  } else {
11410
11410
  if (a && !o) {
11411
- const j = H(u.tileAnchorPoint, h, u.getElevation).point, W = t.lineStartIndex + t.segment + 1, K = new c.P(u.lineVertexArray.getx(W), u.lineVertexArray.gety(W)), $ = H(K, h, u.getElevation), ee = $.signedDistanceFromCamera > 0 ? $.point : function(le, _e, be, ze, Le, we) {
11412
- return re(le, _e, be, 1, Le, we);
11411
+ const j = H(u.tileAnchorPoint, h, u.getElevation).point, W = t.lineStartIndex + t.segment + 1, K = new c.P(u.lineVertexArray.getx(W), u.lineVertexArray.gety(W)), $ = H(K, h, u.getElevation), ee = $.signedDistanceFromCamera > 0 ? $.point : function(le, _e, be, ze, De, we) {
11412
+ return re(le, _e, be, 1, De, we);
11413
11413
  }(u.tileAnchorPoint, K, j, 0, h, u), ne = Q(t.writingMode, j, ee, w);
11414
11414
  if (ne) return ne;
11415
11415
  }
@@ -11464,9 +11464,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
11464
11464
  const ze = { absOffsetX: ee, direction: k, distanceFromAnchor: K, previousVertex: W };
11465
11465
  if (j = J(F, y, ze), n === 0) ne.push(W), le = j.sub(W);
11466
11466
  else {
11467
- let Le;
11467
+ let De;
11468
11468
  const we = j.sub(W);
11469
- Le = we.mag() === 0 ? ye(J(F + k, y, ze).sub(j), n, k) : ye(we, n, k), G || (G = W.add(Le)), N = ce(F, Le, j, h, g, G, n, y, ze), ne.push(G), le = N.sub(G);
11469
+ De = we.mag() === 0 ? ye(J(F + k, y, ze).sub(j), n, k) : ye(we, n, k), G || (G = W.add(De)), N = ce(F, De, j, h, g, G, n, y, ze), ne.push(G), le = N.sub(G);
11470
11470
  }
11471
11471
  $ = le.mag();
11472
11472
  }
@@ -11493,11 +11493,11 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
11493
11493
  const W = [], K = new c.P(n.anchorX, n.anchorY), $ = this.getPerspectiveRatio(g, K.x, K.y, y, j), ee = (A ? h / $ : h * $) / c.aq, ne = { getElevation: j, labelPlaneMatrix: b, lineVertexArray: o, pitchWithMap: A, projectionCache: { projections: {}, offsets: {}, cachedAnchorPoint: void 0, anyProjectionOccluded: !1 }, projection: this.mapProjection, tileAnchorPoint: K, unwrappedTileID: y, width: this.transform.width, height: this.transform.height, translation: G }, le = Z(ee, a, n.lineOffsetX * ee, n.lineOffsetY * ee, !1, n, !1, ne);
11494
11494
  let _e = !1, be = !1, ze = !0;
11495
11495
  if (le) {
11496
- const Le = 0.5 * F * $ + N, we = new c.P(-100, -100), Se = new c.P(this.screenRightBoundary, this.screenBottomBoundary), Ne = new rt(), tt = le.first, Pe = le.last;
11496
+ const De = 0.5 * F * $ + N, we = new c.P(-100, -100), Se = new c.P(this.screenRightBoundary, this.screenBottomBoundary), Ne = new rt(), tt = le.first, Pe = le.last;
11497
11497
  let Ce = [];
11498
11498
  for (let at = tt.path.length - 1; at >= 1; at--) Ce.push(tt.path[at]);
11499
11499
  for (let at = 1; at < Pe.path.length; at++) Ce.push(Pe.path[at]);
11500
- const Qe = 2.5 * Le;
11500
+ const Qe = 2.5 * De;
11501
11501
  if (w) {
11502
11502
  const at = this.projectPathToScreenSpace(Ce, ne, w);
11503
11503
  Ce = at.some((dt) => dt.signedDistanceFromCamera <= 0) ? [] : at.map((dt) => dt.point);
@@ -11509,14 +11509,14 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
11509
11509
  Rt = at.x >= we.x && dt.x <= Se.x && at.y >= we.y && dt.y <= Se.y ? [Ce] : dt.x < we.x || at.x > Se.x || dt.y < we.y || at.y > Se.y ? [] : c.am([Ce], we.x, we.y, Se.x, Se.y);
11510
11510
  }
11511
11511
  for (const at of Rt) {
11512
- Ne.reset(at, 0.25 * Le);
11512
+ Ne.reset(at, 0.25 * De);
11513
11513
  let dt = 0;
11514
- dt = Ne.length <= 0.5 * Le ? 1 : Math.ceil(Ne.paddedLength / Qe) + 1;
11514
+ dt = Ne.length <= 0.5 * De ? 1 : Math.ceil(Ne.paddedLength / Qe) + 1;
11515
11515
  for (let Bt = 0; Bt < dt; Bt++) {
11516
11516
  const gi = Bt / Math.max(dt - 1, 1), lr = Ne.lerp(gi), Ft = lr.x + st, Ri = lr.y + st;
11517
- W.push(Ft, Ri, Le, 0);
11518
- const Ci = Ft - Le, _i = Ri - Le, yi = Ft + Le, cr = Ri + Le;
11519
- if (ze = ze && this.isOffscreen(Ci, _i, yi, cr), be = be || this.isInsideGrid(Ci, _i, yi, cr), t !== "always" && this.grid.hitTestCircle(Ft, Ri, Le, t, R) && (_e = !0, !k)) return { circles: [], offscreen: !1, collisionDetected: _e };
11517
+ W.push(Ft, Ri, De, 0);
11518
+ const Ci = Ft - De, _i = Ri - De, yi = Ft + De, cr = Ri + De;
11519
+ if (ze = ze && this.isOffscreen(Ci, _i, yi, cr), be = be || this.isInsideGrid(Ci, _i, yi, cr), t !== "always" && this.grid.hitTestCircle(Ft, Ri, De, t, R) && (_e = !0, !k)) return { circles: [], offscreen: !1, collisionDetected: _e };
11520
11520
  }
11521
11521
  }
11522
11522
  }
@@ -11572,26 +11572,26 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
11572
11572
  let R = new c.P(1, 0), F = new c.P(0, 1);
11573
11573
  const N = new c.P(t.anchorPointX + y[0], t.anchorPointY + y[1]);
11574
11574
  if (g && !h) {
11575
- const Le = this.projectAndGetPerspectiveRatio(o, N.x + 1, N.y, a, w).point.sub(b.point).unit(), we = Math.atan(Le.y / Le.x) + (Le.x < 0 ? Math.PI : 0), Se = Math.sin(we), Ne = Math.cos(we);
11575
+ const De = this.projectAndGetPerspectiveRatio(o, N.x + 1, N.y, a, w).point.sub(b.point).unit(), we = Math.atan(De.y / De.x) + (De.x < 0 ? Math.PI : 0), Se = Math.sin(we), Ne = Math.cos(we);
11576
11576
  R = new c.P(Ne, Se), F = new c.P(-Se, Ne);
11577
11577
  } else if (!g && h) {
11578
- const Le = -this.transform.angle, we = Math.sin(Le), Se = Math.cos(Le);
11578
+ const De = -this.transform.angle, we = Math.sin(De), Se = Math.cos(De);
11579
11579
  R = new c.P(Se, we), F = new c.P(-we, Se);
11580
11580
  }
11581
11581
  let G = b.point, j = A;
11582
11582
  if (h) {
11583
11583
  G = N;
11584
- const Le = this.transform.zoom - Math.floor(this.transform.zoom);
11585
- j = Math.pow(2, -Le), j *= this.mapProjection.getPitchedTextCorrection(this.transform, N, a), k || (j *= c.ad(0.5 + b.signedDistanceFromCamera / this.transform.cameraToCenterDistance * 0.5, 0, 4));
11584
+ const De = this.transform.zoom - Math.floor(this.transform.zoom);
11585
+ j = Math.pow(2, -De), j *= this.mapProjection.getPitchedTextCorrection(this.transform, N, a), k || (j *= c.ad(0.5 + b.signedDistanceFromCamera / this.transform.cameraToCenterDistance * 0.5, 0, 4));
11586
11586
  }
11587
11587
  k && (G = G.add(R.mult(k.x * j)).add(F.mult(k.y * j)));
11588
11588
  const W = t.x1 * j, K = t.x2 * j, $ = (W + K) / 2, ee = t.y1 * j, ne = t.y2 * j, le = (ee + ne) / 2, _e = [{ offsetX: W, offsetY: ee }, { offsetX: $, offsetY: ee }, { offsetX: K, offsetY: ee }, { offsetX: K, offsetY: le }, { offsetX: K, offsetY: ne }, { offsetX: $, offsetY: ne }, { offsetX: W, offsetY: ne }, { offsetX: W, offsetY: le }];
11589
11589
  let be = [];
11590
- for (const { offsetX: Le, offsetY: we } of _e) be.push(new c.P(G.x + R.x * Le + F.x * we, G.y + R.y * Le + F.y * we));
11590
+ for (const { offsetX: De, offsetY: we } of _e) be.push(new c.P(G.x + R.x * De + F.x * we, G.y + R.y * De + F.y * we));
11591
11591
  let ze = !1;
11592
11592
  if (h) {
11593
- const Le = be.map((we) => this.projectAndGetPerspectiveRatio(o, we.x, we.y, a, w));
11594
- ze = Le.some((we) => !we.isOccluded), be = Le.map((we) => we.point);
11593
+ const De = be.map((we) => this.projectAndGetPerspectiveRatio(o, we.x, we.y, a, w));
11594
+ ze = De.some((we) => !we.isOccluded), be = De.map((we) => we.point);
11595
11595
  } else ze = !0;
11596
11596
  return { box: c.ap(be), allPointsOccluded: !ze };
11597
11597
  }
@@ -11681,7 +11681,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
11681
11681
  }
11682
11682
  }
11683
11683
  placeLayerBucketPart(t, n, o) {
11684
- const { bucket: a, layout: h, translationText: g, translationIcon: y, posMatrix: b, unwrappedTileID: w, textLabelPlaneMatrix: k, labelToScreenMatrix: A, textPixelRatio: R, holdingForFade: F, collisionBoxArray: N, partiallyEvaluatedTextSize: G, collisionGroup: j } = t.parameters, W = h.get("text-optional"), K = h.get("icon-optional"), $ = c.as(h, "text-overlap", "text-allow-overlap"), ee = $ === "always", ne = c.as(h, "icon-overlap", "icon-allow-overlap"), le = ne === "always", _e = h.get("text-rotation-alignment") === "map", be = h.get("text-pitch-alignment") === "map", ze = h.get("icon-text-fit") !== "none", Le = h.get("symbol-z-order") === "viewport-y", we = ee && (le || !a.hasIconData() || K), Se = le && (ee || !a.hasTextData() || W);
11684
+ const { bucket: a, layout: h, translationText: g, translationIcon: y, posMatrix: b, unwrappedTileID: w, textLabelPlaneMatrix: k, labelToScreenMatrix: A, textPixelRatio: R, holdingForFade: F, collisionBoxArray: N, partiallyEvaluatedTextSize: G, collisionGroup: j } = t.parameters, W = h.get("text-optional"), K = h.get("icon-optional"), $ = c.as(h, "text-overlap", "text-allow-overlap"), ee = $ === "always", ne = c.as(h, "icon-overlap", "icon-allow-overlap"), le = ne === "always", _e = h.get("text-rotation-alignment") === "map", be = h.get("text-pitch-alignment") === "map", ze = h.get("icon-text-fit") !== "none", De = h.get("symbol-z-order") === "viewport-y", we = ee && (le || !a.hasIconData() || K), Se = le && (ee || !a.hasTextData() || W);
11685
11685
  !a.collisionArrays && N && a.deserializeCollisionBoxes(N);
11686
11686
  const Ne = this._getTerrainElevationFunc(this.retainedQueryData[a.bucketInstanceId].tileID), tt = (Pe, Ce, Qe) => {
11687
11687
  var Rt, at;
@@ -11720,9 +11720,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
11720
11720
  xi && ic++;
11721
11721
  for (let Xa = 0; Xa < ic; Xa++) {
11722
11722
  for (let Ja = an; Ja < Jn; Ja++) {
11723
- const Do = a.textAnchorOffsets.get(Ja);
11724
- if (xi && Do.textAnchor !== xi) continue;
11725
- const Yn = this.attemptAnchorPlacement(Do, Ut, ni, tc, Mo, _e, be, R, b, w, j, Wa, Pe, a, Ha, g, y, zo, Ne);
11723
+ const Lo = a.textAnchorOffsets.get(Ja);
11724
+ if (xi && Lo.textAnchor !== xi) continue;
11725
+ const Yn = this.attemptAnchorPlacement(Lo, Ut, ni, tc, Mo, _e, be, R, b, w, j, Wa, Pe, a, Ha, g, y, zo, Ne);
11726
11726
  if (Yn && (ln = Yn.placedGlyphBoxes, ln && ln.placeable)) return dt = !0, lr = Yn.shift, ln;
11727
11727
  }
11728
11728
  xi ? xi = null : Wa = $;
@@ -11755,7 +11755,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
11755
11755
  if (a.bucketInstanceId === 0) throw new Error("bucket.bucketInstanceId can't be 0");
11756
11756
  this.placements[Pe.crossTileID] = new Qt(dt || we, Bt || Se, gi || a.justReloaded), n[Pe.crossTileID] = !0;
11757
11757
  };
11758
- if (Le) {
11758
+ if (De) {
11759
11759
  if (t.symbolInstanceStart !== 0) throw new Error("bucket.bucketInstanceId should be 0");
11760
11760
  const Pe = a.getSortedSymbolIndexes(this.transform.angle);
11761
11761
  for (let Ce = Pe.length - 1; Ce >= 0; --Ce) {
@@ -11832,14 +11832,14 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
11832
11832
  const K = t.symbolInstances.get(W), { numHorizontalGlyphVertices: $, numVerticalGlyphVertices: ee, crossTileID: ne } = K;
11833
11833
  let le = this.opacities[ne];
11834
11834
  o[ne] ? le = y : le || (le = N, this.opacities[ne] = le), o[ne] = !0;
11835
- const _e = K.numIconVertices > 0, be = this.placedOrientations[K.crossTileID], ze = be === c.ai.vertical, Le = be === c.ai.horizontal || be === c.ai.horizontalOnly;
11835
+ const _e = K.numIconVertices > 0, be = this.placedOrientations[K.crossTileID], ze = be === c.ai.vertical, De = be === c.ai.horizontal || be === c.ai.horizontalOnly;
11836
11836
  if ($ > 0 || ee > 0) {
11837
11837
  const Se = qi(le.text);
11838
- G(t.text, $, ze ? mi : Se), G(t.text, ee, Le ? mi : Se);
11838
+ G(t.text, $, ze ? mi : Se), G(t.text, ee, De ? mi : Se);
11839
11839
  const Ne = le.text.isHidden();
11840
11840
  [K.rightJustifiedTextSymbolIndex, K.centerJustifiedTextSymbolIndex, K.leftJustifiedTextSymbolIndex].forEach((Ce) => {
11841
11841
  Ce >= 0 && (t.text.placedSymbolArray.get(Ce).hidden = Ne || ze ? 1 : 0);
11842
- }), K.verticalPlacedTextSymbolIndex >= 0 && (t.text.placedSymbolArray.get(K.verticalPlacedTextSymbolIndex).hidden = Ne || Le ? 1 : 0);
11842
+ }), K.verticalPlacedTextSymbolIndex >= 0 && (t.text.placedSymbolArray.get(K.verticalPlacedTextSymbolIndex).hidden = Ne || De ? 1 : 0);
11843
11843
  const tt = this.variableOffsets[K.crossTileID];
11844
11844
  tt && this.markUsedJustification(t, tt.anchor, K, be);
11845
11845
  const Pe = this.placedOrientations[K.crossTileID];
@@ -11862,11 +11862,11 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
11862
11862
  }
11863
11863
  if (Se.textBox || Se.verticalTextBox) {
11864
11864
  let Pe;
11865
- Se.textBox && (Pe = ze), Se.verticalTextBox && (Pe = Le), fi(t.textCollisionBox.collisionVertexArray, le.text.placed, !tt || Pe, we.text, Ne.x, Ne.y);
11865
+ Se.textBox && (Pe = ze), Se.verticalTextBox && (Pe = De), fi(t.textCollisionBox.collisionVertexArray, le.text.placed, !tt || Pe, we.text, Ne.x, Ne.y);
11866
11866
  }
11867
11867
  }
11868
11868
  if (Se.iconBox || Se.verticalIconBox) {
11869
- const tt = !!(!Le && Se.verticalIconBox);
11869
+ const tt = !!(!De && Se.verticalIconBox);
11870
11870
  let Pe;
11871
11871
  Se.iconBox && (Pe = tt), Se.verticalIconBox && (Pe = !tt), fi(t.iconCollisionBox.collisionVertexArray, le.icon.placed, Pe, we.icon, F ? Ne.x : 0, F ? Ne.y : 0);
11872
11872
  }
@@ -12105,7 +12105,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
12105
12105
  const a = this.sourceCaches[o].getSource().type;
12106
12106
  a !== "vector" && a !== "geojson" || this.sourceCaches[o].reload();
12107
12107
  }
12108
- }, this.map = t, this.dispatcher = new mn(fn(), t._getMapId()), this.dispatcher.registerMessageHandler("GG", (o, a) => this.getGlyphs(o, a)), this.dispatcher.registerMessageHandler("GI", (o, a) => this.getImages(o, a)), this.imageManager = new di(), this.imageManager.setEventedParent(this), this.glyphManager = new xr(t._requestManager, n.localIdeographFontFamily), this.lineAtlas = new Ln(256, 512), this.crossTileSymbolIndex = new Qi(), this._spritesImagesIds = {}, this._layers = {}, this._order = [], this.sourceCaches = {}, this.zoomHistory = new c.ay(), this._loaded = !1, this._availableImages = [], this._resetUpdates(), this.dispatcher.broadcast("SR", c.az()), wr().on(Te, this._rtlPluginLoaded), this.on("data", (o) => {
12108
+ }, this.map = t, this.dispatcher = new mn(fn(), t._getMapId()), this.dispatcher.registerMessageHandler("GG", (o, a) => this.getGlyphs(o, a)), this.dispatcher.registerMessageHandler("GI", (o, a) => this.getImages(o, a)), this.imageManager = new di(), this.imageManager.setEventedParent(this), this.glyphManager = new xr(t._requestManager, n.localIdeographFontFamily), this.lineAtlas = new Dn(256, 512), this.crossTileSymbolIndex = new Qi(), this._spritesImagesIds = {}, this._layers = {}, this._order = [], this.sourceCaches = {}, this.zoomHistory = new c.ay(), this._loaded = !1, this._availableImages = [], this._resetUpdates(), this.dispatcher.broadcast("SR", c.az()), wr().on(Te, this._rtlPluginLoaded), this.on("data", (o) => {
12109
12109
  if (o.dataType !== "source" || o.sourceDataType !== "metadata") return;
12110
12110
  const a = this.sourceCaches[o.sourceId];
12111
12111
  if (!a) return;
@@ -12142,7 +12142,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
12142
12142
  if (!n.validate || !gs(this, c.x(h))) {
12143
12143
  this._loaded = !0, this.stylesheet = h;
12144
12144
  for (const g in h.sources) this.addSource(g, h.sources[g], { validate: !1 });
12145
- h.sprite ? this._loadSprite(h.sprite) : this.imageManager.setLoaded(!0), this.glyphManager.setURL(h.glyphs), this._createLayers(), this.light = new Dr(this.stylesheet.light), this.sky = new rr(this.stylesheet.sky), this.map.setTerrain((a = this.stylesheet.terrain) !== null && a !== void 0 ? a : null), this.fire(new c.k("data", { dataType: "style" })), this.fire(new c.k("style.load"));
12145
+ h.sprite ? this._loadSprite(h.sprite) : this.imageManager.setLoaded(!0), this.glyphManager.setURL(h.glyphs), this._createLayers(), this.light = new Lr(this.stylesheet.light), this.sky = new rr(this.stylesheet.sky), this.map.setTerrain((a = this.stylesheet.terrain) !== null && a !== void 0 ? a : null), this.fire(new c.k("data", { dataType: "style" })), this.fire(new c.k("style.load"));
12146
12146
  }
12147
12147
  }
12148
12148
  _createLayers() {
@@ -12171,8 +12171,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
12171
12171
  G[j] = {};
12172
12172
  const W = oe.getImageCanvasContext((yield N[j]).data), K = (yield F[j]).data;
12173
12173
  for (const $ in K) {
12174
- const { width: ee, height: ne, x: le, y: _e, sdf: be, pixelRatio: ze, stretchX: Le, stretchY: we, content: Se, textFitWidth: Ne, textFitHeight: tt } = K[$];
12175
- G[j][$] = { data: null, pixelRatio: ze, sdf: be, stretchX: Le, stretchY: we, content: Se, textFitWidth: Ne, textFitHeight: tt, spriteData: { width: ee, height: ne, x: le, y: _e, context: W } };
12174
+ const { width: ee, height: ne, x: le, y: _e, sdf: be, pixelRatio: ze, stretchX: De, stretchY: we, content: Se, textFitWidth: Ne, textFitHeight: tt } = K[$];
12175
+ G[j][$] = { data: null, pixelRatio: ze, sdf: be, stretchX: De, stretchY: we, content: Se, textFitWidth: Ne, textFitHeight: tt, spriteData: { width: ee, height: ne, x: le, y: _e, context: W } };
12176
12176
  }
12177
12177
  }
12178
12178
  return G;
@@ -13687,7 +13687,7 @@ uniform ${k} ${A} u_${R};
13687
13687
  (t !== this.current || this.dirty) && (this.gl.cullFace(t), this.current = t, this.dirty = !1);
13688
13688
  }
13689
13689
  }
13690
- class Dl extends ft {
13690
+ class Ll extends ft {
13691
13691
  getDefault() {
13692
13692
  return this.gl.CCW;
13693
13693
  }
@@ -13741,7 +13741,7 @@ uniform ${k} ${A} u_${R};
13741
13741
  n.bindRenderbuffer(n.RENDERBUFFER, t), this.current = t, this.dirty = !1;
13742
13742
  }
13743
13743
  }
13744
- class Ll extends ft {
13744
+ class Dl extends ft {
13745
13745
  getDefault() {
13746
13746
  return null;
13747
13747
  }
@@ -13872,7 +13872,7 @@ uniform ${k} ${A} u_${R};
13872
13872
  class da {
13873
13873
  constructor(t) {
13874
13874
  var n, o;
13875
- if (this.gl = t, this.clearColor = new ws(this), this.clearDepth = new qc(this), this.clearStencil = new lo(this), this.colorMask = new Zc(this), this.depthMask = new Nn(this), this.stencilMask = new Gc(this), this.stencilFunc = new Pl(this), this.stencilOp = new Hc(this), this.stencilTest = new kl(this), this.depthRange = new aa(this), this.depthTest = new Al(this), this.depthFunc = new Cl(this), this.blend = new El(this), this.blendFunc = new Ml(this), this.blendColor = new xn(this), this.blendEquation = new zl(this), this.cullFace = new Wc(this), this.cullFaceSide = new Xc(this), this.frontFace = new Dl(this), this.program = new Ss(this), this.activeTexture = new Jc(this), this.viewport = new co(this), this.bindFramebuffer = new Kc(this), this.bindRenderbuffer = new Yc(this), this.bindTexture = new Ll(this), this.bindVertexBuffer = new Rl(this), this.bindElementBuffer = new Bl(this), this.bindVertexArray = new la(this), this.pixelStoreUnpack = new Fl(this), this.pixelStoreUnpackPremultiplyAlpha = new ho(this), this.pixelStoreUnpackFlipY = new Or(this), this.extTextureFilterAnisotropic = t.getExtension("EXT_texture_filter_anisotropic") || t.getExtension("MOZ_EXT_texture_filter_anisotropic") || t.getExtension("WEBKIT_EXT_texture_filter_anisotropic"), this.extTextureFilterAnisotropic && (this.extTextureFilterAnisotropicMax = t.getParameter(this.extTextureFilterAnisotropic.MAX_TEXTURE_MAX_ANISOTROPY_EXT)), this.maxTextureSize = t.getParameter(t.MAX_TEXTURE_SIZE), Vn(t)) {
13875
+ if (this.gl = t, this.clearColor = new ws(this), this.clearDepth = new qc(this), this.clearStencil = new lo(this), this.colorMask = new Zc(this), this.depthMask = new Nn(this), this.stencilMask = new Gc(this), this.stencilFunc = new Pl(this), this.stencilOp = new Hc(this), this.stencilTest = new kl(this), this.depthRange = new aa(this), this.depthTest = new Al(this), this.depthFunc = new Cl(this), this.blend = new El(this), this.blendFunc = new Ml(this), this.blendColor = new xn(this), this.blendEquation = new zl(this), this.cullFace = new Wc(this), this.cullFaceSide = new Xc(this), this.frontFace = new Ll(this), this.program = new Ss(this), this.activeTexture = new Jc(this), this.viewport = new co(this), this.bindFramebuffer = new Kc(this), this.bindRenderbuffer = new Yc(this), this.bindTexture = new Dl(this), this.bindVertexBuffer = new Rl(this), this.bindElementBuffer = new Bl(this), this.bindVertexArray = new la(this), this.pixelStoreUnpack = new Fl(this), this.pixelStoreUnpackPremultiplyAlpha = new ho(this), this.pixelStoreUnpackFlipY = new Or(this), this.extTextureFilterAnisotropic = t.getExtension("EXT_texture_filter_anisotropic") || t.getExtension("MOZ_EXT_texture_filter_anisotropic") || t.getExtension("WEBKIT_EXT_texture_filter_anisotropic"), this.extTextureFilterAnisotropic && (this.extTextureFilterAnisotropicMax = t.getParameter(this.extTextureFilterAnisotropic.MAX_TEXTURE_MAX_ANISOTROPY_EXT)), this.maxTextureSize = t.getParameter(t.MAX_TEXTURE_SIZE), Vn(t)) {
13876
13876
  this.HALF_FLOAT = t.HALF_FLOAT;
13877
13877
  const a = t.getExtension("EXT_color_buffer_half_float");
13878
13878
  this.RGBA16F = (n = t.RGBA16F) !== null && n !== void 0 ? n : a == null ? void 0 : a.RGBA16F_EXT, this.RGB16F = (o = t.RGB16F) !== null && o !== void 0 ? o : a == null ? void 0 : a.RGB16F_EXT, t.getExtension("EXT_color_buffer_float");
@@ -13943,7 +13943,7 @@ uniform ${k} ${A} u_${R};
13943
13943
  }
13944
13944
  }
13945
13945
  $t.disabled = new $t({ func: 519, mask: 0 }, 0, 0, pa, pa, pa);
13946
- class Dt {
13946
+ class Lt {
13947
13947
  constructor(t, n, o) {
13948
13948
  this.enable = t, this.mode = n, this.frontFace = o;
13949
13949
  }
@@ -13960,7 +13960,7 @@ uniform ${k} ${A} u_${R};
13960
13960
  const le = c.H();
13961
13961
  c.aR(le, $.placementInvProjMatrix, u.transform.glCoordMatrix), c.aR(le, le, $.placementViewportMatrix), b.push({ circleArray: ne, circleOffset: k, transform: K.posMatrix, invTransform: le, coord: K }), w += ne.length / 4, k = w;
13962
13962
  }
13963
- ee && y.draw(h, g.LINES, ut.disabled, $t.disabled, u.colorModeForRenderPass(), Dt.disabled, { u_matrix: K.posMatrix, u_pixel_extrude_scale: [1 / (A = u.transform).width, 1 / A.height] }, u.style.map.terrain && u.style.map.terrain.getTerrainData(K), n.id, ee.layoutVertexBuffer, ee.indexBuffer, ee.segments, null, u.transform.zoom, null, null, ee.collisionVertexBuffer);
13963
+ ee && y.draw(h, g.LINES, ut.disabled, $t.disabled, u.colorModeForRenderPass(), Lt.disabled, { u_matrix: K.posMatrix, u_pixel_extrude_scale: [1 / (A = u.transform).width, 1 / A.height] }, u.style.map.terrain && u.style.map.terrain.getTerrainData(K), n.id, ee.layoutVertexBuffer, ee.indexBuffer, ee.segments, null, u.transform.zoom, null, null, ee.collisionVertexBuffer);
13964
13964
  }
13965
13965
  var A;
13966
13966
  if (!a || !b.length) return;
@@ -13983,11 +13983,11 @@ uniform ${k} ${A} u_${R};
13983
13983
  const G = h.createIndexBuffer(Is, !0), j = h.createVertexBuffer(F, c.aT.members, !0);
13984
13984
  for (const W of b) {
13985
13985
  const K = Nc(W.transform, W.invTransform, u.transform);
13986
- R.draw(h, g.TRIANGLES, ut.disabled, $t.disabled, u.colorModeForRenderPass(), Dt.disabled, K, u.style.map.terrain && u.style.map.terrain.getTerrainData(W.coord), n.id, j, G, c.a0.simpleSegment(0, 2 * W.circleOffset, W.circleArray.length, W.circleArray.length / 2), null, u.transform.zoom, null, null, null);
13986
+ R.draw(h, g.TRIANGLES, ut.disabled, $t.disabled, u.colorModeForRenderPass(), Lt.disabled, K, u.style.map.terrain && u.style.map.terrain.getTerrainData(W.coord), n.id, j, G, c.a0.simpleSegment(0, 2 * W.circleOffset, W.circleArray.length, W.circleArray.length / 2), null, u.transform.zoom, null, null, null);
13987
13987
  }
13988
13988
  j.destroy(), G.destroy();
13989
13989
  }
13990
- Dt.disabled = new Dt(!1, 1029, 2305), Dt.backCCW = new Dt(!0, 1029, 2305);
13990
+ Lt.disabled = new Lt(!1, 1029, 2305), Lt.backCCW = new Lt(!0, 1029, 2305);
13991
13991
  const fa = c.ao(new Float32Array(16));
13992
13992
  function uo(u, t, n, o, a, h) {
13993
13993
  const { horizontalAlign: g, verticalAlign: y } = c.av(u);
@@ -14014,7 +14014,7 @@ uniform ${k} ${A} u_${R};
14014
14014
  const ne = new c.P($.anchorX, $.anchorY), le = { getElevation: F, width: a.width, height: a.height, labelPlaneMatrix: h, lineVertexArray: null, pitchWithMap: n, projection: k, projectionCache: null, tileAnchorPoint: ne, translation: A, unwrappedTileID: R }, _e = n ? H(ne, g, F) : de(ne.x, ne.y, le), be = z(a.cameraToCenterDistance, _e.signedDistanceFromCamera);
14015
14015
  let ze = c.aj(u.textSizeData, b, $) * be / c.aq;
14016
14016
  n && (ze *= u.tilePixelRatio / y);
14017
- const { width: Le, height: we, anchor: Se, textOffset: Ne, textBoxScale: tt } = ee, Pe = uo(Se, Le, we, Ne, tt, ze), Ce = k.getPitchedTextCorrection(a, ne.add(new c.P(A[0], A[1])), R), Qe = po(_e.point, le, t, Pe, a.angle, Ce), Rt = u.allowVerticalPlacement && $.placedOrientation === c.ai.vertical ? Math.PI / 2 : 0;
14017
+ const { width: De, height: we, anchor: Se, textOffset: Ne, textBoxScale: tt } = ee, Pe = uo(Se, De, we, Ne, tt, ze), Ce = k.getPitchedTextCorrection(a, ne.add(new c.P(A[0], A[1])), R), Qe = po(_e.point, le, t, Pe, a.angle, Ce), Rt = u.allowVerticalPlacement && $.placedOrientation === c.ai.vertical ? Math.PI / 2 : 0;
14018
14018
  for (let at = 0; at < $.numGlyphs; at++) c.ak(G, Qe, Rt);
14019
14019
  w && $.associatedIconIndex >= 0 && (W[$.associatedIconIndex] = { shiftedAnchor: Qe, angle: Rt });
14020
14020
  } else We($.numGlyphs, G);
@@ -14041,7 +14041,7 @@ uniform ${k} ${A} u_${R};
14041
14041
  function nn(u, t, n, o, a, h, g, y, b, w, k, A) {
14042
14042
  const R = u.context, F = R.gl, N = u.transform, G = Ys(), j = y === "map", W = b === "map", K = y !== "viewport" && n.layout.get("symbol-placement") !== "point", $ = j && !W && !K, ee = !W && K, ne = !n.layout.get("symbol-sort-key").isConstant();
14043
14043
  let le = !1;
14044
- const _e = u.depthModeForSublayer(0, ut.ReadOnly), be = n._unevaluatedLayout.hasValue("text-variable-anchor") || n._unevaluatedLayout.hasValue("text-variable-anchor-offset"), ze = [], Le = G.getCircleRadiusCorrection(N);
14044
+ const _e = u.depthModeForSublayer(0, ut.ReadOnly), be = n._unevaluatedLayout.hasValue("text-variable-anchor") || n._unevaluatedLayout.hasValue("text-variable-anchor-offset"), ze = [], De = G.getCircleRadiusCorrection(N);
14045
14045
  for (const we of o) {
14046
14046
  const Se = t.getTile(we), Ne = Se.getBucket(n);
14047
14047
  if (!Ne) continue;
@@ -14061,7 +14061,7 @@ uniform ${k} ${A} u_${R};
14061
14061
  }
14062
14062
  const hi = we.posMatrix, hr = a && be || Ga, an = K || hr ? fa : kn, Jn = Co, xi = Ce && n.paint.get(a ? "text-halo-width" : "icon-halo-width").constantOr(1) !== 0;
14063
14063
  let vi;
14064
- vi = Ce ? Ne.iconsInText ? jc(Qe.kind, dt, $, W, K, hr, u, hi, an, Jn, An, gi, Ci, Le) : Il(Qe.kind, dt, $, W, K, hr, u, hi, an, Jn, An, a, gi, !0, Le) : Tl(Qe.kind, dt, $, W, K, hr, u, hi, an, Jn, An, a, gi, Le);
14064
+ vi = Ce ? Ne.iconsInText ? jc(Qe.kind, dt, $, W, K, hr, u, hi, an, Jn, An, gi, Ci, De) : Il(Qe.kind, dt, $, W, K, hr, u, hi, an, Jn, An, a, gi, !0, De) : Tl(Qe.kind, dt, $, W, K, hr, u, hi, an, Jn, An, a, gi, De);
14065
14065
  const oi = { program: at, buffers: tt, uniformValues: vi, atlasTexture: lr, atlasTextureIcon: _i, atlasInterpolation: Ft, atlasInterpolationIcon: Ri, isSDF: Ce, hasHalo: xi };
14066
14066
  if (ne && Ne.canOverlap) {
14067
14067
  le = !0;
@@ -14081,7 +14081,7 @@ uniform ${k} ${A} u_${R};
14081
14081
  }
14082
14082
  function vn(u, t, n, o, a, h, g, y, b, w) {
14083
14083
  const k = o.context;
14084
- a.draw(k, k.gl.TRIANGLES, h, g, y, Dt.disabled, b, w, n.id, u.layoutVertexBuffer, u.indexBuffer, t, n.paint, o.transform.zoom, u.programConfigurations.get(n.id), u.dynamicLayoutVertexBuffer, u.opacityVertexBuffer);
14084
+ a.draw(k, k.gl.TRIANGLES, h, g, y, Lt.disabled, b, w, n.id, u.layoutVertexBuffer, u.indexBuffer, t, n.paint, o.transform.zoom, u.programConfigurations.get(n.id), u.dynamicLayoutVertexBuffer, u.opacityVertexBuffer);
14085
14085
  }
14086
14086
  function Hi(u, t, n, o, a) {
14087
14087
  if (!n || !o || !o.imageAtlas) return;
@@ -14108,10 +14108,10 @@ uniform ${k} ${A} u_${R};
14108
14108
  const be = _e ? K : null, ze = u.translatePosMatrix(be ? be.posMatrix : K.posMatrix, $, n.paint.get("fill-translate"), n.paint.get("fill-translate-anchor"));
14109
14109
  if (g) {
14110
14110
  G = ee.indexBuffer2, j = ee.segments2;
14111
- const Le = [y.drawingBufferWidth, y.drawingBufferHeight];
14112
- N = F === "fillOutlinePattern" && k ? Vc(ze, u, A, $, Le) : Oc(ze, Le);
14111
+ const De = [y.drawingBufferWidth, y.drawingBufferHeight];
14112
+ N = F === "fillOutlinePattern" && k ? Vc(ze, u, A, $, De) : Oc(ze, De);
14113
14113
  } else G = ee.indexBuffer, j = ee.segments, N = k ? On(ze, u, A, $) : xs(ze);
14114
- le.draw(u.context, R, a, u.stencilModeForClipping(K), h, Dt.disabled, N, _e, n.id, ee.layoutVertexBuffer, G, j, n.paint, u.transform.zoom, ne);
14114
+ le.draw(u.context, R, a, u.stencilModeForClipping(K), h, Lt.disabled, N, _e, n.id, ee.layoutVertexBuffer, G, j, n.paint, u.transform.zoom, ne);
14115
14115
  }
14116
14116
  }
14117
14117
  function mo(u, t, n, o, a, h, g) {
@@ -14122,14 +14122,14 @@ uniform ${k} ${A} u_${R};
14122
14122
  const K = u.style.map.terrain && u.style.map.terrain.getTerrainData(G), $ = W.programConfigurations.get(n.id), ee = u.useProgram(A ? "fillExtrusionPattern" : "fillExtrusion", $);
14123
14123
  A && (u.context.activeTexture.set(b.TEXTURE0), j.imageAtlasTexture.bind(b.LINEAR, b.CLAMP_TO_EDGE), $.updatePaintBuffers(R)), Hi($, w, N, j, n);
14124
14124
  const ne = u.translatePosMatrix(G.posMatrix, j, n.paint.get("fill-extrusion-translate"), n.paint.get("fill-extrusion-translate-anchor")), le = n.paint.get("fill-extrusion-vertical-gradient"), _e = A ? no(ne, u, le, F, G, R, j) : ro(ne, u, le, F);
14125
- ee.draw(y, y.gl.TRIANGLES, a, h, g, Dt.backCCW, _e, K, n.id, W.layoutVertexBuffer, W.indexBuffer, W.segments, n.paint, u.transform.zoom, $, u.style.map.terrain && W.centroidVertexBuffer);
14125
+ ee.draw(y, y.gl.TRIANGLES, a, h, g, Lt.backCCW, _e, K, n.id, W.layoutVertexBuffer, W.indexBuffer, W.segments, n.paint, u.transform.zoom, $, u.style.map.terrain && W.centroidVertexBuffer);
14126
14126
  }
14127
14127
  }
14128
14128
  function _a(u, t, n, o, a, h, g) {
14129
14129
  const y = u.context, b = y.gl, w = n.fbo;
14130
14130
  if (!w) return;
14131
14131
  const k = u.useProgram("hillshade"), A = u.style.map.terrain && u.style.map.terrain.getTerrainData(t);
14132
- y.activeTexture.set(b.TEXTURE0), b.bindTexture(b.TEXTURE_2D, w.colorAttachment.get()), k.draw(y, b.TRIANGLES, a, h, g, Dt.disabled, ((R, F, N, G) => {
14132
+ y.activeTexture.set(b.TEXTURE0), b.bindTexture(b.TEXTURE_2D, w.colorAttachment.get()), k.draw(y, b.TRIANGLES, a, h, g, Lt.disabled, ((R, F, N, G) => {
14133
14133
  const j = N.paint.get("hillshade-shadow-color"), W = N.paint.get("hillshade-highlight-color"), K = N.paint.get("hillshade-accent-color");
14134
14134
  let $ = N.paint.get("hillshade-illumination-direction") * (Math.PI / 180);
14135
14135
  N.paint.get("hillshade-illumination-anchor") === "viewport" && ($ -= R.transform.angle);
@@ -14151,7 +14151,7 @@ uniform ${k} ${A} u_${R};
14151
14151
  const F = new It(g, { width: w, height: w, data: null }, y.RGBA);
14152
14152
  F.bind(y.LINEAR, y.CLAMP_TO_EDGE), R = t.fbo = g.createFramebuffer(w, w, !0, !1), R.colorAttachment.set(F.texture);
14153
14153
  }
14154
- g.bindFramebuffer.set(R.framebuffer), g.viewport.set([0, 0, w, w]), u.useProgram("hillshadePrepare").draw(g, y.TRIANGLES, o, a, h, Dt.disabled, ((F, N) => {
14154
+ g.bindFramebuffer.set(R.framebuffer), g.viewport.set([0, 0, w, w]), u.useProgram("hillshadePrepare").draw(g, y.TRIANGLES, o, a, h, Lt.disabled, ((F, N) => {
14155
14155
  const G = N.stride, j = c.H();
14156
14156
  return c.aQ(j, 0, c.X, -c.X, 0, 0, 1), c.J(j, j, [0, -c.X, 0]), { u_matrix: j, u_image: 1, u_dimension: [G, G], u_zoom: F.overscaledZ, u_unpack: N.getUnpackVector() };
14157
14157
  })(t.tileID, b), null, n.id, u.rasterBoundsBuffer, u.quadTriangleIndexBuffer, u.rasterBoundsSegments), t.needsHillshadePrepare = !1;
@@ -14185,7 +14185,7 @@ uniform ${k} ${A} u_${R};
14185
14185
  W.initDebugOverlayCanvas();
14186
14186
  const $ = W.debugOverlayCanvas, ee = W.context.gl, ne = W.debugOverlayCanvas.getContext("2d");
14187
14187
  ne.clearRect(0, 0, $.width, $.height), ne.shadowColor = "white", ne.shadowBlur = 2, ne.lineWidth = 1.5, ne.strokeStyle = "white", ne.textBaseline = "top", ne.font = "bold 36px Open Sans, sans-serif", ne.fillText(K, 5, 5), ne.strokeText(K, 5, 5), W.debugOverlayTexture.update($), W.debugOverlayTexture.bind(ee.LINEAR, ee.CLAMP_TO_EDGE);
14188
- }(u, `${j} ${F}kB`), g.draw(o, a.TRIANGLES, y, b, Et.alphaBlended, Dt.disabled, rn(h, c.aN.transparent, G), null, k, u.debugBuffer, u.quadTriangleIndexBuffer, u.debugSegments), g.draw(o, a.LINE_STRIP, y, b, w, Dt.disabled, rn(h, c.aN.red), A, k, u.debugBuffer, u.tileBorderIndexBuffer, u.debugSegments);
14188
+ }(u, `${j} ${F}kB`), g.draw(o, a.TRIANGLES, y, b, Et.alphaBlended, Lt.disabled, rn(h, c.aN.transparent, G), null, k, u.debugBuffer, u.quadTriangleIndexBuffer, u.debugSegments), g.draw(o, a.LINE_STRIP, y, b, w, Lt.disabled, rn(h, c.aN.red), A, k, u.debugBuffer, u.tileBorderIndexBuffer, u.debugSegments);
14189
14189
  }
14190
14190
  function ks(u, t, n) {
14191
14191
  const o = u.context, a = o.gl, h = u.colorModeForRenderPass(), g = new ut(a.LEQUAL, ut.ReadWrite, u.depthRangeFor3D), y = u.useProgram("terrain"), b = t.getTerrainMesh();
@@ -14194,7 +14194,7 @@ uniform ${k} ${A} u_${R};
14194
14194
  const k = u.renderToTexture.getTexture(w), A = t.getTerrainData(w.tileID);
14195
14195
  o.activeTexture.set(a.TEXTURE0), a.bindTexture(a.TEXTURE_2D, k.texture);
14196
14196
  const R = u.transform.calculatePosMatrix(w.tileID.toUnwrapped()), F = t.getMeshFrameDelta(u.transform.zoom), N = u.transform.calculateFogMatrix(w.tileID.toUnwrapped()), G = ia(R, F, N, u.style.sky, u.transform.pitch);
14197
- y.draw(o, a.TRIANGLES, g, $t.disabled, h, Dt.backCCW, G, A, "terrain", b.vertexBuffer, b.indexBuffer, b.segments);
14197
+ y.draw(o, a.TRIANGLES, g, $t.disabled, h, Lt.backCCW, G, A, "terrain", b.vertexBuffer, b.indexBuffer, b.segments);
14198
14198
  }
14199
14199
  }
14200
14200
  class $l {
@@ -14232,7 +14232,7 @@ uniform ${k} ${A} u_${R};
14232
14232
  const t = this.context, n = t.gl;
14233
14233
  this.nextStencilID = 1, this.currentStencilSource = void 0;
14234
14234
  const o = c.H();
14235
- c.aQ(o, 0, this.width, this.height, 0, 0, 1), c.K(o, o, [n.drawingBufferWidth, n.drawingBufferHeight, 0]), this.useProgram("clippingMask").draw(t, n.TRIANGLES, ut.disabled, this.stencilClearMode, Et.disabled, Dt.disabled, vs(o), null, "$clipping", this.viewportBuffer, this.quadTriangleIndexBuffer, this.viewportSegments);
14235
+ c.aQ(o, 0, this.width, this.height, 0, 0, 1), c.K(o, o, [n.drawingBufferWidth, n.drawingBufferHeight, 0]), this.useProgram("clippingMask").draw(t, n.TRIANGLES, ut.disabled, this.stencilClearMode, Et.disabled, Lt.disabled, vs(o), null, "$clipping", this.viewportBuffer, this.quadTriangleIndexBuffer, this.viewportSegments);
14236
14236
  }
14237
14237
  _renderTileClippingMasks(t, n) {
14238
14238
  if (this.currentStencilSource === t.source || !t.isTileClipped() || !n || !n.length) return;
@@ -14243,7 +14243,7 @@ uniform ${k} ${A} u_${R};
14243
14243
  this._tileClippingMaskIDs = {};
14244
14244
  for (const g of n) {
14245
14245
  const y = this._tileClippingMaskIDs[g.key] = this.nextStencilID++, b = this.style.map.terrain && this.style.map.terrain.getTerrainData(g);
14246
- h.draw(o, a.TRIANGLES, ut.disabled, new $t({ func: a.ALWAYS, mask: 0 }, y, 255, a.KEEP, a.KEEP, a.REPLACE), Et.disabled, Dt.disabled, vs(g.posMatrix), b, "$clipping", this.tileExtentBuffer, this.quadTriangleIndexBuffer, this.tileExtentSegments);
14246
+ h.draw(o, a.TRIANGLES, ut.disabled, new $t({ func: a.ALWAYS, mask: 0 }, y, 255, a.KEEP, a.KEEP, a.REPLACE), Et.disabled, Lt.disabled, vs(g.posMatrix), b, "$clipping", this.tileExtentBuffer, this.quadTriangleIndexBuffer, this.tileExtentSegments);
14247
14247
  }
14248
14248
  }
14249
14249
  stencilModeFor3D() {
@@ -14305,7 +14305,7 @@ uniform ${k} ${A} u_${R};
14305
14305
  const $ = new c.aY();
14306
14306
  $.emplaceBack(0, 1, 2), $.emplaceBack(0, 2, 3), k.mesh = new $l(A.createVertexBuffer(K, _s.members), A.createIndexBuffer($), c.a0.simpleSegment(0, 0, K.length, $.length));
14307
14307
  }
14308
- W.draw(A, R.TRIANGLES, N, G, j, Dt.disabled, F, void 0, "sky", k.mesh.vertexBuffer, k.mesh.indexBuffer, k.mesh.segments);
14308
+ W.draw(A, R.TRIANGLES, N, G, j, Lt.disabled, F, void 0, "sky", k.mesh.vertexBuffer, k.mesh.indexBuffer, k.mesh.segments);
14309
14309
  }(this, this.style.sky), this._showOverdrawInspector = n.showOverdrawInspector, this.depthRangeFor3D = [0, 1 - (t._order.length + 2) * this.numSublayers * this.depthEpsilon], !this.renderToTexture) for (this.renderPass = "opaque", this.currentLayer = a.length - 1; this.currentLayer >= 0; this.currentLayer--) {
14310
14310
  const w = this.style._layers[a[this.currentLayer]], k = h[w.source], A = g[w.source];
14311
14311
  this._renderTileClippingMasks(w, A), this.renderLayer(this, k, w, A);
@@ -14346,7 +14346,7 @@ uniform ${k} ${A} u_${R};
14346
14346
  y.bindFramebuffer.set(g.getFramebuffer("depth").framebuffer), y.viewport.set([0, 0, h.width / devicePixelRatio, h.height / devicePixelRatio]), y.clear({ color: c.aN.transparent, depth: 1 });
14347
14347
  for (const N of R) {
14348
14348
  const G = g.getTerrainData(N.tileID), j = { u_matrix: h.transform.calculatePosMatrix(N.tileID.toUnwrapped()), u_ele_delta: g.getMeshFrameDelta(h.transform.zoom) };
14349
- F.draw(y, b.TRIANGLES, k, $t.disabled, w, Dt.backCCW, j, G, "terrain", A.vertexBuffer, A.indexBuffer, A.segments);
14349
+ F.draw(y, b.TRIANGLES, k, $t.disabled, w, Lt.backCCW, j, G, "terrain", A.vertexBuffer, A.indexBuffer, A.segments);
14350
14350
  }
14351
14351
  y.bindFramebuffer.set(null), y.viewport.set([0, 0, h.width, h.height]);
14352
14352
  }(this, this.style.map.terrain), function(h, g) {
@@ -14356,7 +14356,7 @@ uniform ${k} ${A} u_${R};
14356
14356
  const j = g.getTerrainData(G.tileID);
14357
14357
  y.activeTexture.set(b.TEXTURE0), b.bindTexture(b.TEXTURE_2D, R.texture);
14358
14358
  const W = { u_matrix: h.transform.calculatePosMatrix(G.tileID.toUnwrapped()), u_terrain_coords_id: (255 - g.coordsIndex.length) / 255, u_texture: 0, u_ele_delta: g.getMeshFrameDelta(h.transform.zoom) };
14359
- N.draw(y, b.TRIANGLES, k, $t.disabled, w, Dt.backCCW, W, j, "terrain", A.vertexBuffer, A.indexBuffer, A.segments), g.coordsIndex.push(G.tileID.key);
14359
+ N.draw(y, b.TRIANGLES, k, $t.disabled, w, Lt.backCCW, W, j, "terrain", A.vertexBuffer, A.indexBuffer, A.segments), g.coordsIndex.push(G.tileID.key);
14360
14360
  }
14361
14361
  y.bindFramebuffer.set(null), y.viewport.set([0, 0, h.width, h.height]);
14362
14362
  }(this, this.style.map.terrain));
@@ -14370,11 +14370,11 @@ uniform ${k} ${A} u_${R};
14370
14370
  (y._unevaluatedLayout.hasValue("text-variable-anchor") || y._unevaluatedLayout.hasValue("text-variable-anchor-offset")) && function(R, F, N, G, j, W, K, $, ee) {
14371
14371
  const ne = F.transform, le = Ys(), _e = j === "map", be = W === "map";
14372
14372
  for (const ze of R) {
14373
- const Le = G.getTile(ze), we = Le.getBucket(N);
14373
+ const De = G.getTile(ze), we = De.getBucket(N);
14374
14374
  if (!we || !we.text || !we.text.segments.get().length) continue;
14375
- const Se = c.ah(we.textSizeData, ne.zoom), Ne = nt(Le, 1, F.transform.zoom), tt = Qr(ze.posMatrix, be, _e, F.transform, Ne), Pe = N.layout.get("icon-text-fit") !== "none" && we.hasIconData();
14375
+ const Se = c.ah(we.textSizeData, ne.zoom), Ne = nt(De, 1, F.transform.zoom), tt = Qr(ze.posMatrix, be, _e, F.transform, Ne), Pe = N.layout.get("icon-text-fit") !== "none" && we.hasIconData();
14376
14376
  if (Se) {
14377
- const Ce = Math.pow(2, ne.zoom - Le.tileID.overscaledZ), Qe = F.style.map.terrain ? (at, dt) => F.style.map.terrain.getElevation(ze, at, dt) : null, Rt = le.translatePosition(ne, Le, K, $);
14377
+ const Ce = Math.pow(2, ne.zoom - De.tileID.overscaledZ), Qe = F.style.map.terrain ? (at, dt) => F.style.map.terrain.getElevation(ze, at, dt) : null, Rt = le.translatePosition(ne, De, K, $);
14378
14378
  fo(we, _e, be, ee, ne, tt, ze.posMatrix, Ce, Se, Pe, le, Rt, ze.toUnwrapped(), Qe);
14379
14379
  }
14380
14380
  }
@@ -14390,7 +14390,7 @@ uniform ${k} ${A} u_${R};
14390
14390
  for (let $ = 0; $ < b.length; $++) {
14391
14391
  const ee = b[$], ne = g.getTile(ee), le = ne.getBucket(y);
14392
14392
  if (!le) continue;
14393
- const _e = le.programConfigurations.get(y.id), be = h.useProgram("circle", _e), ze = le.layoutVertexBuffer, Le = le.indexBuffer, we = h.style.map.terrain && h.style.map.terrain.getTerrainData(ee), Se = { programConfiguration: _e, program: be, layoutVertexBuffer: ze, indexBuffer: Le, uniformValues: vl(h, ee, ne, y), terrainData: we };
14393
+ const _e = le.programConfigurations.get(y.id), be = h.useProgram("circle", _e), ze = le.layoutVertexBuffer, De = le.indexBuffer, we = h.style.map.terrain && h.style.map.terrain.getTerrainData(ee), Se = { programConfiguration: _e, program: be, layoutVertexBuffer: ze, indexBuffer: De, uniformValues: vl(h, ee, ne, y), terrainData: we };
14394
14394
  if (R) {
14395
14395
  const Ne = le.segments.get();
14396
14396
  for (const tt of Ne) K.push({ segments: new c.a0([tt]), sortKey: tt.sortKey, state: Se });
@@ -14399,7 +14399,7 @@ uniform ${k} ${A} u_${R};
14399
14399
  R && K.sort(($, ee) => $.sortKey - ee.sortKey);
14400
14400
  for (const $ of K) {
14401
14401
  const { programConfiguration: ee, program: ne, layoutVertexBuffer: le, indexBuffer: _e, uniformValues: be, terrainData: ze } = $.state;
14402
- ne.draw(F, N.TRIANGLES, G, j, W, Dt.disabled, be, ze, y.id, le, _e, $.segments, y.paint, h.transform.zoom, ee);
14402
+ ne.draw(F, N.TRIANGLES, G, j, W, Lt.disabled, be, ze, y.id, le, _e, $.segments, y.paint, h.transform.zoom, ee);
14403
14403
  }
14404
14404
  })(t, n, o, a);
14405
14405
  break;
@@ -14416,8 +14416,8 @@ uniform ${k} ${A} u_${R};
14416
14416
  const K = j.createTexture();
14417
14417
  j.bindTexture(j.TEXTURE_2D, K), j.texParameteri(j.TEXTURE_2D, j.TEXTURE_WRAP_S, j.CLAMP_TO_EDGE), j.texParameteri(j.TEXTURE_2D, j.TEXTURE_WRAP_T, j.CLAMP_TO_EDGE), j.texParameteri(j.TEXTURE_2D, j.TEXTURE_MIN_FILTER, j.LINEAR), j.texParameteri(j.TEXTURE_2D, j.TEXTURE_MAG_FILTER, j.LINEAR), W = G.heatmapFbo = F.createFramebuffer(N.width / 4, N.height / 4, !1, !1), function($, ee, ne, le) {
14418
14418
  var _e, be;
14419
- const ze = $.gl, Le = (_e = $.HALF_FLOAT) !== null && _e !== void 0 ? _e : ze.UNSIGNED_BYTE, we = (be = $.RGBA16F) !== null && be !== void 0 ? be : ze.RGBA;
14420
- ze.texImage2D(ze.TEXTURE_2D, 0, we, ee.width / 4, ee.height / 4, 0, ze.RGBA, Le, null), le.colorAttachment.set(ne);
14419
+ const ze = $.gl, De = (_e = $.HALF_FLOAT) !== null && _e !== void 0 ? _e : ze.UNSIGNED_BYTE, we = (be = $.RGBA16F) !== null && be !== void 0 ? be : ze.RGBA;
14420
+ ze.texImage2D(ze.TEXTURE_2D, 0, we, ee.width / 4, ee.height / 4, 0, ze.RGBA, De, null), le.colorAttachment.set(ne);
14421
14421
  }(F, N, K, W);
14422
14422
  }
14423
14423
  })(w, h, y), w.clear({ color: c.aN.transparent });
@@ -14427,7 +14427,7 @@ uniform ${k} ${A} u_${R};
14427
14427
  const G = g.getTile(N), j = G.getBucket(y);
14428
14428
  if (!j) continue;
14429
14429
  const W = j.programConfigurations.get(y.id), K = h.useProgram("heatmap", W), { zoom: $ } = h.transform;
14430
- K.draw(w, k.TRIANGLES, ut.disabled, A, R, Dt.disabled, Zi(N.posMatrix, G, $, y.paint.get("heatmap-intensity")), null, y.id, j.layoutVertexBuffer, j.indexBuffer, j.segments, y.paint, h.transform.zoom, W);
14430
+ K.draw(w, k.TRIANGLES, ut.disabled, A, R, Lt.disabled, Zi(N.posMatrix, G, $, y.paint.get("heatmap-intensity")), null, y.id, j.layoutVertexBuffer, j.indexBuffer, j.segments, y.paint, h.transform.zoom, W);
14431
14431
  }
14432
14432
  w.viewport.set([0, 0, h.width, h.height]);
14433
14433
  } else h.renderPass === "translucent" && (h.context.setColorMode(h.colorModeForRenderPass()), function(w, k) {
@@ -14435,7 +14435,7 @@ uniform ${k} ${A} u_${R};
14435
14435
  if (!F) return;
14436
14436
  A.activeTexture.set(R.TEXTURE0), R.bindTexture(R.TEXTURE_2D, F.colorAttachment.get()), A.activeTexture.set(R.TEXTURE1);
14437
14437
  let N = k.colorRampTexture;
14438
- N || (N = k.colorRampTexture = new It(A, k.colorRamp, R.RGBA)), N.bind(R.LINEAR, R.CLAMP_TO_EDGE), w.useProgram("heatmapTexture").draw(A, R.TRIANGLES, ut.disabled, $t.disabled, w.colorModeForRenderPass(), Dt.disabled, ((G, j, W, K) => {
14438
+ N || (N = k.colorRampTexture = new It(A, k.colorRamp, R.RGBA)), N.bind(R.LINEAR, R.CLAMP_TO_EDGE), w.useProgram("heatmapTexture").draw(A, R.TRIANGLES, ut.disabled, $t.disabled, w.colorModeForRenderPass(), Lt.disabled, ((G, j, W, K) => {
14439
14439
  const $ = c.H();
14440
14440
  c.aQ($, 0, G.width, G.height, 0, 0, 1);
14441
14441
  const ee = G.context.gl;
@@ -14456,7 +14456,7 @@ uniform ${k} ${A} u_${R};
14456
14456
  if (G && !_e.patternsLoaded()) continue;
14457
14457
  const be = _e.getBucket(y);
14458
14458
  if (!be) continue;
14459
- const ze = be.programConfigurations.get(y.id), Le = h.context.program.get(), we = h.useProgram(K, ze), Se = ne || we.program !== Le, Ne = h.style.map.terrain && h.style.map.terrain.getTerrainData(le), tt = N.constantOr(null);
14459
+ const ze = be.programConfigurations.get(y.id), De = h.context.program.get(), we = h.useProgram(K, ze), Se = ne || we.program !== De, Ne = h.style.map.terrain && h.style.map.terrain.getTerrainData(le), tt = N.constantOr(null);
14460
14460
  if (tt && _e.imageAtlas) {
14461
14461
  const Qe = _e.imageAtlas, Rt = Qe.patternPositions[tt.to.toString()], at = Qe.patternPositions[tt.from.toString()];
14462
14462
  Rt && at && ze.setConstantPatternPositions(Rt, at);
@@ -14477,7 +14477,7 @@ uniform ${k} ${A} u_${R};
14477
14477
  }
14478
14478
  $.activeTexture.set(ee.TEXTURE0), Rt.bind(y.stepInterpolant ? ee.NEAREST : ee.LINEAR, ee.CLAMP_TO_EDGE);
14479
14479
  }
14480
- we.draw($, ee.TRIANGLES, A, h.stencilModeForClipping(le), R, Dt.disabled, Ce, Ne, y.id, be.layoutVertexBuffer, be.indexBuffer, be.segments, y.paint, h.transform.zoom, ze, be.layoutVertexBuffer2), ne = !1;
14480
+ we.draw($, ee.TRIANGLES, A, h.stencilModeForClipping(le), R, Lt.disabled, Ce, Ne, y.id, be.layoutVertexBuffer, be.indexBuffer, be.segments, y.paint, h.transform.zoom, ze, be.layoutVertexBuffer2), ne = !1;
14481
14481
  }
14482
14482
  })(t, n, o, a);
14483
14483
  break;
@@ -14529,10 +14529,10 @@ uniform ${k} ${A} u_${R};
14529
14529
  ee.registerFadeDuration(y.paint.get("raster-fade-duration"));
14530
14530
  const ne = g.findLoadedParent(K, 0), le = g.findLoadedSibling(K), _e = go(ee, ne || le || null, g, y, h.transform, h.style.map.terrain);
14531
14531
  let be, ze;
14532
- const Le = y.paint.get("raster-resampling") === "nearest" ? k.NEAREST : k.LINEAR;
14533
- w.activeTexture.set(k.TEXTURE0), ee.texture.bind(Le, k.CLAMP_TO_EDGE, k.LINEAR_MIPMAP_NEAREST), w.activeTexture.set(k.TEXTURE1), ne ? (ne.texture.bind(Le, k.CLAMP_TO_EDGE, k.LINEAR_MIPMAP_NEAREST), be = Math.pow(2, ne.tileID.overscaledZ - ee.tileID.overscaledZ), ze = [ee.tileID.canonical.x * be % 1, ee.tileID.canonical.y * be % 1]) : ee.texture.bind(Le, k.CLAMP_TO_EDGE, k.LINEAR_MIPMAP_NEAREST), ee.texture.useMipmap && w.extTextureFilterAnisotropic && h.transform.pitch > 20 && k.texParameterf(k.TEXTURE_2D, w.extTextureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT, w.extTextureFilterAnisotropicMax);
14532
+ const De = y.paint.get("raster-resampling") === "nearest" ? k.NEAREST : k.LINEAR;
14533
+ w.activeTexture.set(k.TEXTURE0), ee.texture.bind(De, k.CLAMP_TO_EDGE, k.LINEAR_MIPMAP_NEAREST), w.activeTexture.set(k.TEXTURE1), ne ? (ne.texture.bind(De, k.CLAMP_TO_EDGE, k.LINEAR_MIPMAP_NEAREST), be = Math.pow(2, ne.tileID.overscaledZ - ee.tileID.overscaledZ), ze = [ee.tileID.canonical.x * be % 1, ee.tileID.canonical.y * be % 1]) : ee.texture.bind(De, k.CLAMP_TO_EDGE, k.LINEAR_MIPMAP_NEAREST), ee.texture.useMipmap && w.extTextureFilterAnisotropic && h.transform.pitch > 20 && k.texParameterf(k.TEXTURE_2D, w.extTextureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT, w.extTextureFilterAnisotropicMax);
14534
14534
  const we = h.style.map.terrain && h.style.map.terrain.getTerrainData(K), Se = we ? K : null, Ne = Se ? Se.posMatrix : h.transform.calculatePosMatrix(K.toUnwrapped(), W), tt = $c(Ne, ze || [0, 0], be || 1, _e, y);
14535
- A instanceof Rr ? R.draw(w, k.TRIANGLES, $, $t.disabled, F, Dt.disabled, tt, we, y.id, A.boundsBuffer, h.quadTriangleIndexBuffer, A.boundsSegments) : R.draw(w, k.TRIANGLES, $, N[K.overscaledZ], F, Dt.disabled, tt, we, y.id, h.rasterBoundsBuffer, h.quadTriangleIndexBuffer, h.rasterBoundsSegments);
14535
+ A instanceof Rr ? R.draw(w, k.TRIANGLES, $, $t.disabled, F, Lt.disabled, tt, we, y.id, A.boundsBuffer, h.quadTriangleIndexBuffer, A.boundsSegments) : R.draw(w, k.TRIANGLES, $, N[K.overscaledZ], F, Lt.disabled, tt, we, y.id, h.rasterBoundsBuffer, h.quadTriangleIndexBuffer, h.rasterBoundsSegments);
14536
14536
  }
14537
14537
  })(t, n, o, a);
14538
14538
  break;
@@ -14548,8 +14548,8 @@ uniform ${k} ${A} u_${R};
14548
14548
  G && (A.activeTexture.set(R.TEXTURE0), h.imageManager.bind(h.context));
14549
14549
  const le = y.getCrossfadeParameters();
14550
14550
  for (const _e of ne) {
14551
- const be = b ? _e.posMatrix : h.transform.calculatePosMatrix(_e.toUnwrapped()), ze = G ? ra(be, k, h, G, { tileID: _e, tileSize: N }, le) : oo(be, k, w), Le = h.style.map.terrain && h.style.map.terrain.getTerrainData(_e);
14552
- ee.draw(A, R.TRIANGLES, K, W, $, Dt.disabled, ze, Le, y.id, h.tileExtentBuffer, h.quadTriangleIndexBuffer, h.tileExtentSegments);
14551
+ const be = b ? _e.posMatrix : h.transform.calculatePosMatrix(_e.toUnwrapped()), ze = G ? ra(be, k, h, G, { tileID: _e, tileSize: N }, le) : oo(be, k, w), De = h.style.map.terrain && h.style.map.terrain.getTerrainData(_e);
14552
+ ee.draw(A, R.TRIANGLES, K, W, $, Lt.disabled, ze, De, y.id, h.tileExtentBuffer, h.quadTriangleIndexBuffer, h.tileExtentSegments);
14553
14553
  }
14554
14554
  })(t, 0, o, a);
14555
14555
  break;
@@ -14841,8 +14841,8 @@ uniform ${k} ${A} u_${R};
14841
14841
  if (we === 0) continue;
14842
14842
  le = we === 2;
14843
14843
  }
14844
- const _e = t.terrain ? w : k, be = $.aabb.distanceX(_e), ze = $.aabb.distanceY(_e), Le = Math.max(Math.abs(be), Math.abs(ze));
14845
- if ($.zoom === W || Le > F + (1 << W - $.zoom) - 2 && $.zoom >= R) {
14844
+ const _e = t.terrain ? w : k, be = $.aabb.distanceX(_e), ze = $.aabb.distanceY(_e), De = Math.max(Math.abs(be), Math.abs(ze));
14845
+ if ($.zoom === W || De > F + (1 << W - $.zoom) - 2 && $.zoom >= R) {
14846
14846
  const we = W - $.zoom, Se = w[0] - 0.5 - (ee << we), Ne = w[1] - 0.5 - (ne << we);
14847
14847
  j.push({ tileID: new c.S($.zoom === W ? K : $.zoom, $.wrap, $.zoom, ee, ne), distanceSq: Gr([k[0] - 0.5 - ee, k[1] - 0.5 - ne]), tileDistanceToCamera: Math.sqrt(Se * Se + Ne * Ne) });
14848
14848
  } else for (let we = 0; we < 4; we++) {
@@ -15417,7 +15417,7 @@ uniform ${k} ${A} u_${R};
15417
15417
  return this._active;
15418
15418
  }
15419
15419
  }
15420
- class Lt {
15420
+ class Dt {
15421
15421
  constructor(t) {
15422
15422
  this._enabled = !!t.enable, this._moveStateManager = t.moveStateManager, this._clickTolerance = t.clickTolerance || 1, this._moveFunction = t.move, this._activateOnStart = !!t.activateOnStart, t.assignEvents(this), this.reset();
15423
15423
  }
@@ -15459,7 +15459,7 @@ uniform ${k} ${A} u_${R};
15459
15459
  }
15460
15460
  }
15461
15461
  const In = { 0: 1, 2: 2 };
15462
- class Li {
15462
+ class Di {
15463
15463
  constructor(t) {
15464
15464
  this._correctEvent = t.checkCorrectEvent;
15465
15465
  }
@@ -15514,11 +15514,11 @@ uniform ${k} ${A} u_${R};
15514
15514
  t.preventDefault();
15515
15515
  };
15516
15516
  }, Aa = ({ enable: u, clickTolerance: t, bearingDegreesPerPixelMoved: n = 0.8 }) => {
15517
- const o = new Li({ checkCorrectEvent: (a) => ae.mouseButton(a) === 0 && a.ctrlKey || ae.mouseButton(a) === 2 });
15518
- return new Lt({ clickTolerance: t, move: (a, h) => ({ bearingDelta: (h.x - a.x) * n }), moveStateManager: o, enable: u, assignEvents: Es });
15517
+ const o = new Di({ checkCorrectEvent: (a) => ae.mouseButton(a) === 0 && a.ctrlKey || ae.mouseButton(a) === 2 });
15518
+ return new Dt({ clickTolerance: t, move: (a, h) => ({ bearingDelta: (h.x - a.x) * n }), moveStateManager: o, enable: u, assignEvents: Es });
15519
15519
  }, Pn = ({ enable: u, clickTolerance: t, pitchDegreesPerPixelMoved: n = -0.5 }) => {
15520
- const o = new Li({ checkCorrectEvent: (a) => ae.mouseButton(a) === 0 && a.ctrlKey || ae.mouseButton(a) === 2 });
15521
- return new Lt({ clickTolerance: t, move: (a, h) => ({ pitchDelta: (h.y - a.y) * n }), moveStateManager: o, enable: u, assignEvents: Es });
15520
+ const o = new Di({ checkCorrectEvent: (a) => ae.mouseButton(a) === 0 && a.ctrlKey || ae.mouseButton(a) === 2 });
15521
+ return new Dt({ clickTolerance: t, move: (a, h) => ({ pitchDelta: (h.y - a.y) * n }), moveStateManager: o, enable: u, assignEvents: Es });
15522
15522
  };
15523
15523
  class Ms {
15524
15524
  constructor(t, n) {
@@ -15583,14 +15583,14 @@ uniform ${k} ${A} u_${R};
15583
15583
  touchmove(t, n, o) {
15584
15584
  if (!this._firstTwoTouches) return;
15585
15585
  t.preventDefault();
15586
- const [a, h] = this._firstTwoTouches, g = Ds(o, n, a), y = Ds(o, n, h);
15586
+ const [a, h] = this._firstTwoTouches, g = Ls(o, n, a), y = Ls(o, n, h);
15587
15587
  if (!g || !y) return;
15588
15588
  const b = this._aroundCenter ? null : g.add(y).div(2);
15589
15589
  return this._move([g, y], b, t);
15590
15590
  }
15591
15591
  touchend(t, n, o) {
15592
15592
  if (!this._firstTwoTouches) return;
15593
- const [a, h] = this._firstTwoTouches, g = Ds(o, n, a), y = Ds(o, n, h);
15593
+ const [a, h] = this._firstTwoTouches, g = Ls(o, n, a), y = Ls(o, n, h);
15594
15594
  g && y || (this._active && ae.suppressClick(), this.reset());
15595
15595
  }
15596
15596
  touchcancel() {
@@ -15609,7 +15609,7 @@ uniform ${k} ${A} u_${R};
15609
15609
  return !!this._active;
15610
15610
  }
15611
15611
  }
15612
- function Ds(u, t, n) {
15612
+ function Ls(u, t, n) {
15613
15613
  for (let o = 0; o < u.length; o++) if (u[o].identifier === n) return t[o];
15614
15614
  }
15615
15615
  function Ca(u, t) {
@@ -15650,7 +15650,7 @@ uniform ${k} ${A} u_${R};
15650
15650
  function Vr(u) {
15651
15651
  return Math.abs(u.y) > Math.abs(u.x);
15652
15652
  }
15653
- class Da extends zs {
15653
+ class La extends zs {
15654
15654
  constructor(t) {
15655
15655
  super(), this._currentTouchCount = 0, this._map = t;
15656
15656
  }
@@ -15678,7 +15678,7 @@ uniform ${k} ${A} u_${R};
15678
15678
  }
15679
15679
  }
15680
15680
  const Zl = { panStep: 100, bearingStep: 15, pitchStep: 10 };
15681
- class La {
15681
+ class Da {
15682
15682
  constructor(t) {
15683
15683
  this._tr = new qn(t);
15684
15684
  const n = Zl;
@@ -15838,7 +15838,7 @@ uniform ${k} ${A} u_${R};
15838
15838
  return this._clickZoom.isActive() || this._tapZoom.isActive();
15839
15839
  }
15840
15840
  }
15841
- class Ls {
15841
+ class Ds {
15842
15842
  constructor(t) {
15843
15843
  this._tr = new qn(t), this.reset();
15844
15844
  }
@@ -16045,24 +16045,24 @@ uniform ${k} ${A} u_${R};
16045
16045
  this._add("boxZoom", a), t.interactive && t.boxZoom && a.enable();
16046
16046
  const h = n.cooperativeGestures = new ar(n, t.cooperativeGestures);
16047
16047
  this._add("cooperativeGestures", h), t.cooperativeGestures && h.enable();
16048
- const g = new ql(n), y = new Ls(n);
16048
+ const g = new ql(n), y = new Ds(n);
16049
16049
  n.doubleClickZoom = new Fa(y, g), this._add("tapZoom", g), this._add("clickZoom", y), t.interactive && t.doubleClickZoom && n.doubleClickZoom.enable();
16050
16050
  const b = new Hl();
16051
16051
  this._add("tapDragZoom", b);
16052
- const w = n.touchPitch = new Da(n);
16052
+ const w = n.touchPitch = new La(n);
16053
16053
  this._add("touchPitch", w), t.interactive && t.touchPitch && n.touchPitch.enable(t.touchPitch);
16054
16054
  const k = Aa(t), A = Pn(t);
16055
16055
  n.dragRotate = new or(t, k, A), this._add("mouseRotate", k, ["mousePitch"]), this._add("mousePitch", A, ["mouseRotate"]), t.interactive && t.dragRotate && n.dragRotate.enable();
16056
16056
  const R = (({ enable: K, clickTolerance: $ }) => {
16057
- const ee = new Li({ checkCorrectEvent: (ne) => ae.mouseButton(ne) === 0 && !ne.ctrlKey });
16058
- return new Lt({ clickTolerance: $, move: (ne, le) => ({ around: le, panDelta: le.sub(ne) }), activateOnStart: !0, moveStateManager: ee, enable: K, assignEvents: Es });
16057
+ const ee = new Di({ checkCorrectEvent: (ne) => ae.mouseButton(ne) === 0 && !ne.ctrlKey });
16058
+ return new Dt({ clickTolerance: $, move: (ne, le) => ({ around: le, panDelta: le.sub(ne) }), activateOnStart: !0, moveStateManager: ee, enable: K, assignEvents: Es });
16059
16059
  })(t), F = new Ms(t, n);
16060
16060
  n.dragPan = new er(o, R, F), this._add("mousePan", R), this._add("touchPan", F, ["touchZoom", "touchRotate"]), t.interactive && t.dragPan && n.dragPan.enable(t.dragPan);
16061
16061
  const N = new za(), G = new Ea();
16062
16062
  n.touchZoomRotate = new Oa(o, G, N, b), this._add("touchRotate", N, ["touchPan", "touchZoom"]), this._add("touchZoom", G, ["touchPan", "touchRotate"]), t.interactive && t.touchZoomRotate && n.touchZoomRotate.enable(t.touchZoomRotate);
16063
16063
  const j = n.scrollZoom = new Ba(n, () => this._triggerRenderFrame());
16064
16064
  this._add("scrollZoom", j, ["mousePan"]), t.interactive && t.scrollZoom && n.scrollZoom.enable(t.scrollZoom);
16065
- const W = n.keyboard = new La(n);
16065
+ const W = n.keyboard = new Da(n);
16066
16066
  this._add("keyboard", W), t.interactive && t.keyboard && n.keyboard.enable(), this._add("blockableMapEvent", new Ta(n));
16067
16067
  }
16068
16068
  _add(t, n, o) {
@@ -16239,8 +16239,8 @@ uniform ${k} ${A} u_${R};
16239
16239
  a.padding = c.e(h, a.padding);
16240
16240
  const g = this.transform, y = g.padding, b = new he(t, n), w = g.project(b.getNorthWest()), k = g.project(b.getNorthEast()), A = g.project(b.getSouthEast()), R = g.project(b.getSouthWest()), F = c.ba(-o), N = w.rotate(F), G = k.rotate(F), j = A.rotate(F), W = R.rotate(F), K = new c.P(Math.max(N.x, G.x, W.x, j.x), Math.max(N.y, G.y, W.y, j.y)), $ = new c.P(Math.min(N.x, G.x, W.x, j.x), Math.min(N.y, G.y, W.y, j.y)), ee = K.sub($), ne = (g.width - (y.left + y.right + a.padding.left + a.padding.right)) / ee.x, le = (g.height - (y.top + y.bottom + a.padding.top + a.padding.bottom)) / ee.y;
16241
16241
  if (le < 0 || ne < 0) return void c.w("Map cannot fit within canvas with the given bounds, padding, and/or offset.");
16242
- const _e = Math.min(g.scaleZoom(g.scale * Math.min(ne, le)), a.maxZoom), be = c.P.convert(a.offset), ze = new c.P((a.padding.left - a.padding.right) / 2, (a.padding.top - a.padding.bottom) / 2).rotate(c.ba(o)), Le = be.add(ze).mult(g.scale / g.zoomScale(_e));
16243
- return { center: g.unproject(w.add(A).div(2).sub(Le)), zoom: _e, bearing: o };
16242
+ const _e = Math.min(g.scaleZoom(g.scale * Math.min(ne, le)), a.maxZoom), be = c.P.convert(a.offset), ze = new c.P((a.padding.left - a.padding.right) / 2, (a.padding.top - a.padding.bottom) / 2).rotate(c.ba(o)), De = be.add(ze).mult(g.scale / g.zoomScale(_e));
16243
+ return { center: g.unproject(w.add(A).div(2).sub(De)), zoom: _e, bearing: o };
16244
16244
  }
16245
16245
  fitBounds(t, n, o) {
16246
16246
  return this._fitInternal(this.cameraForBounds(t, n), n, o);
@@ -16278,7 +16278,7 @@ uniform ${k} ${A} u_${R};
16278
16278
  return this._zooming = this._zooming || j !== h, this._rotating = this._rotating || g !== w, this._pitching = this._pitching || k !== y, this._padding = !a.isPaddingEqual(A), this._easeId = t.easeId, this._prepareEase(n, t.noMoveStart, le), this.terrain && this._prepareElevation(G), this._ease((_e) => {
16279
16279
  if (this._zooming && (a.zoom = c.z.number(h, j, _e)), this._rotating && (a.bearing = c.z.number(g, w, _e)), this._pitching && (a.pitch = c.z.number(y, k, _e)), this._padding && (a.interpolatePadding(b, A, _e), F = a.centerPoint.add(R)), this.terrain && !t.freezeElevation && this._updateElevation(_e), ee) a.setLocationAtPoint(ee, ne);
16280
16280
  else {
16281
- const be = a.zoomScale(a.zoom - h), ze = j > h ? Math.min(2, $) : Math.max(0.5, $), Le = Math.pow(ze, 1 - _e), we = a.unproject(W.add(K.mult(_e * Le)).mult(be));
16281
+ const be = a.zoomScale(a.zoom - h), ze = j > h ? Math.min(2, $) : Math.max(0.5, $), De = Math.pow(ze, 1 - _e), we = a.unproject(W.add(K.mult(_e * De)).mult(be));
16282
16282
  a.setLocationAtPoint(a.renderWorldCopies ? we.wrap() : we, F);
16283
16283
  }
16284
16284
  this._applyUpdatedTransform(a), this._fireMoveEvents(n);
@@ -16357,7 +16357,7 @@ uniform ${k} ${A} u_${R};
16357
16357
  const Qe = (le * le - ne * ne + (Ce ? -1 : 1) * be * be * _e * _e) / (2 * (Ce ? le : ne) * be * _e);
16358
16358
  return Math.log(Math.sqrt(Qe * Qe + 1) - Qe);
16359
16359
  }
16360
- function Le(Ce) {
16360
+ function De(Ce) {
16361
16361
  return (Math.exp(Ce) - Math.exp(-Ce)) / 2;
16362
16362
  }
16363
16363
  function we(Ce) {
@@ -16367,7 +16367,7 @@ uniform ${k} ${A} u_${R};
16367
16367
  let Ne = function(Ce) {
16368
16368
  return we(Se) / we(Se + ee * Ce);
16369
16369
  }, tt = function(Ce) {
16370
- return ne * ((we(Se) * (Le(Qe = Se + ee * Ce) / we(Qe)) - Le(Se)) / be) / _e;
16370
+ return ne * ((we(Se) * (De(Qe = Se + ee * Ce) / we(Qe)) - De(Se)) / be) / _e;
16371
16371
  var Qe;
16372
16372
  }, Pe = (ze(!0) - Se) / ee;
16373
16373
  if (Math.abs(_e) < 1e-6 || !isFinite(Pe)) {
@@ -16786,10 +16786,10 @@ uniform ${k} ${A} u_${R};
16786
16786
  const a = t.dragRotate._mouseRotate.getClickTolerance(), h = t.dragRotate._mousePitch.getClickTolerance();
16787
16787
  this.element = n, this.mouseRotate = Aa({ clickTolerance: a, enable: !0 }), this.touchRotate = (({ enable: g, clickTolerance: y, bearingDegreesPerPixelMoved: b = 0.8 }) => {
16788
16788
  const w = new Po();
16789
- return new Lt({ clickTolerance: y, move: (k, A) => ({ bearingDelta: (A.x - k.x) * b }), moveStateManager: w, enable: g, assignEvents: Kl });
16789
+ return new Dt({ clickTolerance: y, move: (k, A) => ({ bearingDelta: (A.x - k.x) * b }), moveStateManager: w, enable: g, assignEvents: Kl });
16790
16790
  })({ clickTolerance: a, enable: !0 }), this.map = t, o && (this.mousePitch = Pn({ clickTolerance: h, enable: !0 }), this.touchPitch = (({ enable: g, clickTolerance: y, pitchDegreesPerPixelMoved: b = -0.5 }) => {
16791
16791
  const w = new Po();
16792
- return new Lt({ clickTolerance: y, move: (k, A) => ({ pitchDelta: (A.y - k.y) * b }), moveStateManager: w, enable: g, assignEvents: Kl });
16792
+ return new Dt({ clickTolerance: y, move: (k, A) => ({ pitchDelta: (A.y - k.y) * b }), moveStateManager: w, enable: g, assignEvents: Kl });
16793
16793
  })({ clickTolerance: h, enable: !0 })), ae.addEventListener(n, "mousedown", this.mousedown), ae.addEventListener(n, "touchstart", this.touchstart, { passive: !1 }), ae.addEventListener(n, "touchcancel", this.reset);
16794
16794
  }
16795
16795
  startMouse(t, n) {
@@ -17229,7 +17229,7 @@ uniform ${k} ${A} u_${R};
17229
17229
  _clearWatch() {
17230
17230
  window.navigator.geolocation.clearWatch(this._geolocationWatchID), this._geolocationWatchID = void 0, this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting"), this._geolocateButton.setAttribute("aria-pressed", "false"), this.options.showUserLocation && this._updateMarker(null);
17231
17231
  }
17232
- }, S.Hash = As, S.ImageSource = Rr, S.KeyboardHandler = La, S.LngLatBounds = he, S.LogoControl = Pr, S.Map = class extends th {
17232
+ }, S.Hash = As, S.ImageSource = Rr, S.KeyboardHandler = Da, S.LngLatBounds = he, S.LogoControl = Pr, S.Map = class extends th {
17233
17233
  constructor(u) {
17234
17234
  c.be.mark(c.bf.create);
17235
17235
  const t = Object.assign(Object.assign({}, ih), u);
@@ -17927,7 +17927,7 @@ uniform ${k} ${A} u_${R};
17927
17927
  onRemove() {
17928
17928
  ae.remove(this._container), this._map.off("terrain", this._updateTerrainIcon), this._map = void 0;
17929
17929
  }
17930
- }, S.TwoFingersTouchPitchHandler = Da, S.TwoFingersTouchRotateHandler = za, S.TwoFingersTouchZoomHandler = Ea, S.TwoFingersTouchZoomRotateHandler = Oa, S.VectorTileSource = hs, S.VideoSource = Fn, S.addSourceType = (u, t) => c._(void 0, void 0, void 0, function* () {
17930
+ }, S.TwoFingersTouchPitchHandler = La, S.TwoFingersTouchRotateHandler = za, S.TwoFingersTouchZoomHandler = Ea, S.TwoFingersTouchZoomRotateHandler = Oa, S.VectorTileSource = hs, S.VideoSource = Fn, S.addSourceType = (u, t) => c._(void 0, void 0, void 0, function* () {
17931
17931
  if (ps(u)) throw new Error(`A source type called "${u}" already exists.`);
17932
17932
  ((n, o) => {
17933
17933
  ds[n] = o;
@@ -18092,56 +18092,56 @@ function Ym(f) {
18092
18092
  }
18093
18093
  const Jd = ["#69D2E7", "yellow", "#FE4365", "#125B9A", "#41B3A2", "#D7C3F1", "#F1D3CE"], Qm = ["ma-star", "ma-water", "ma-swimming", "fa-home", "fa-search", "fa-trash", "fa-check"], Kd = {};
18094
18094
  async function Yd(f, x, I = "api") {
18095
- const C = await fetch(`${I}/gis-layer/${f}/${x}`), { rows: D } = await C.json();
18096
- return D;
18095
+ const C = await fetch(`${I}/gis-layer/${f}/${x}`), { rows: L } = await C.json();
18096
+ return L;
18097
18097
  }
18098
18098
  async function Zh(f, x, I, C) {
18099
18099
  if (!f) return null;
18100
- const D = JSON.parse(JSON.stringify(f)), U = D.colorAttr ? await Yd(x, D.colorAttr, C) : null;
18100
+ const L = JSON.parse(JSON.stringify(f)), U = L.colorAttr ? await Yd(x, L.colorAttr, C) : null;
18101
18101
  U == null || U.forEach((c, pe) => {
18102
18102
  var fe, xe;
18103
- c.color = c.color || ((fe = D.colorSet) == null ? void 0 : fe[c.id]) || ((xe = D.colorSet) == null ? void 0 : xe[pe]) || Jd[pe % Jd.length], c.icon = D.icon ? D.icon.split("+")[0] + "+" + c.color.replace("#", "") + ".png" : null;
18103
+ c.color = c.color || ((fe = L.colorSet) == null ? void 0 : fe[c.id]) || ((xe = L.colorSet) == null ? void 0 : xe[pe]) || Jd[pe % Jd.length], c.icon = L.icon ? L.icon.split("+")[0] + "+" + c.color.replace("#", "") + ".png" : null;
18104
18104
  });
18105
- const S = D.iconAttr ? await Yd(x, D.iconAttr, C) : null;
18105
+ const S = L.iconAttr ? await Yd(x, L.iconAttr, C) : null;
18106
18106
  if (S == null || S.forEach((c, pe) => {
18107
18107
  var pt, Ue, Ke, Oe;
18108
- const fe = c.icon || ((pt = D.iconSet) == null ? void 0 : pt[c.id]) || ((Ue = D.iconPattern) == null ? void 0 : Ue.replace("{id}", c.id)) || ((Ke = D.iconSet) == null ? void 0 : Ke[pe]) || (D.iconPrefix ? null : Qm[pe]);
18108
+ const fe = c.icon || ((pt = L.iconSet) == null ? void 0 : pt[c.id]) || ((Ue = L.iconPattern) == null ? void 0 : Ue.replace("{id}", c.id)) || ((Ke = L.iconSet) == null ? void 0 : Ke[pe]) || (L.iconPrefix ? null : Qm[pe]);
18109
18109
  if (!fe) return;
18110
- const xe = c.color || ((Oe = D.color) == null ? void 0 : Oe.replace("#", "")) || "red", [oe = "pin6", ae = "m"] = D.icon ? D.icon.split("-") : [];
18111
- c.icon = D.iconPrefix || fe != null && fe.includes("/") ? (D.iconPrefix || "") + fe : `${oe}-${ae}-${fe}+${xe}.png`;
18112
- }), D.colorAttr && U) {
18113
- const c = ["match", ["get", D.colorAttr]];
18110
+ const xe = c.color || ((Oe = L.color) == null ? void 0 : Oe.replace("#", "")) || "red", [oe = "pin6", ae = "m"] = L.icon ? L.icon.split("-") : [];
18111
+ c.icon = L.iconPrefix || fe != null && fe.includes("/") ? (L.iconPrefix || "") + fe : `${oe}-${ae}-${fe}+${xe}.png`;
18112
+ }), L.colorAttr && U) {
18113
+ const c = ["match", ["get", L.colorAttr]];
18114
18114
  U.filter((pe) => pe.id).forEach((pe) => {
18115
18115
  c.push(pe.id), c.push(pe.color);
18116
- }), c.push(D.color || "gray"), D.color = c;
18116
+ }), c.push(L.color || "gray"), L.color = c;
18117
18117
  }
18118
- if (D.icon && D.iconAttr && S) {
18119
- const c = ["match", ["get", D.iconAttr]];
18118
+ if (L.icon && L.iconAttr && S) {
18119
+ const c = ["match", ["get", L.iconAttr]];
18120
18120
  S.filter((pe) => pe.icon).forEach(({ id: pe, icon: fe }) => {
18121
- if (D.colorAttr && U) {
18121
+ if (L.colorAttr && U) {
18122
18122
  c.push(pe);
18123
- const xe = ["match", ["get", D.colorAttr]];
18123
+ const xe = ["match", ["get", L.colorAttr]];
18124
18124
  U.forEach((oe) => {
18125
18125
  xe.push(oe.id);
18126
18126
  const ae = fe.split("+")[0] + "+" + oe.color.replace("#", "") + ".png";
18127
18127
  xe.push(ae), Go(ae, I, C);
18128
- }), xe.push(D.icon), c.push(xe);
18128
+ }), xe.push(L.icon), c.push(xe);
18129
18129
  } else
18130
18130
  c.push(pe), c.push(fe), Go(fe, I, C);
18131
- }), c.push((D.iconPrefix || "") + D.icon), Go((D.iconPrefix || "") + D.icon, I, C), D.icon = c;
18132
- } else if (D.icon && D.colorAttr && U) {
18133
- const c = ["match", ["get", D.colorAttr]];
18131
+ }), c.push((L.iconPrefix || "") + L.icon), Go((L.iconPrefix || "") + L.icon, I, C), L.icon = c;
18132
+ } else if (L.icon && L.colorAttr && U) {
18133
+ const c = ["match", ["get", L.colorAttr]];
18134
18134
  U.forEach((pe) => {
18135
18135
  c.push(pe.id), c.push(pe.icon), Go(pe.icon, I, C);
18136
- }), c.push(D.icon), Go(D.icon, I, C), D.icon = c;
18137
- } else D.icon && await Go(D.icon, I, C);
18136
+ }), c.push(L.icon), Go(L.icon, I, C), L.icon = c;
18137
+ } else L.icon && await Go(L.icon, I, C);
18138
18138
  return eg({
18139
18139
  style: f,
18140
18140
  colors: U,
18141
18141
  icons: S,
18142
18142
  map: I,
18143
18143
  id: x
18144
- }), Ym(D);
18144
+ }), Ym(L);
18145
18145
  }
18146
18146
  async function Go(f = "pin4-sm-mi-plumber+f45942.png", x = null, I) {
18147
18147
  if (Kd[f]) return null;
@@ -18149,9 +18149,9 @@ async function Go(f = "pin4-sm-mi-plumber+f45942.png", x = null, I) {
18149
18149
  const C = await (x == null ? void 0 : x.loadImage(f != null && f.startsWith("/") || f != null && f.includes("//") ? f : `${I}/marker_icon/${f.replace(".png", "")}.png`));
18150
18150
  x == null || x.addImage(f, C.data);
18151
18151
  }
18152
- function eg({ style: f, colors: x, icons: I, map: C, id: D }) {
18152
+ function eg({ style: f, colors: x, icons: I, map: C, id: L }) {
18153
18153
  C.legend || Object.assign(C, { legend: {} }), window.map || (window.map = C), Object.assign(C.legend, {
18154
- [D]: {
18154
+ [L]: {
18155
18155
  icon: f.icon,
18156
18156
  colors: x,
18157
18157
  icons: I,
@@ -18180,20 +18180,20 @@ const _l = {
18180
18180
  },
18181
18181
  async setVisible(f, x = !0, I = this.map) {
18182
18182
  if (!f) return;
18183
- const C = (f == null ? void 0 : f.id) || f, D = this.layerList.find((S) => S.id === f) || f;
18184
- if (!(D != null && D.id)) throw new Error("MixinError: Layer has no id");
18183
+ const C = (f == null ? void 0 : f.id) || f, L = this.layerList.find((S) => S.id === f) || f;
18184
+ if (!(L != null && L.id)) throw new Error("MixinError: Layer has no id");
18185
18185
  I.getStyle().layers.filter((S) => S.id.match(C)).forEach((S) => {
18186
18186
  I.setLayoutProperty(
18187
18187
  S.id,
18188
18188
  "visibility",
18189
18189
  x ? "visible" : "none"
18190
18190
  );
18191
- }), x && await this.addLayer(D);
18191
+ }), x && await this.addLayer(L);
18192
18192
  },
18193
18193
  async addLayer(f, x = this == null ? void 0 : this.map) {
18194
- var D, U;
18194
+ var L, U;
18195
18195
  const I = this.layerList.find((S) => S.id === f) || f;
18196
- !this.map.getStyle() || this.map.getStyle().layers.find((S) => S.id === I.id) || (this.layerList.find((S) => S.id === I.id) || this.layerList.push(I), (I.service === "vtile" || I.service === "vector" || (D = I.url) != null && D.includes(".vmt")) && this.addVtileLayer(I, x), I.service === "geojson" && this.addGeoJsonLayer(I, x), ((U = I.url) != null && U.includes(".png") || ["tms", "raster"].includes(I.service)) && await this.addRasterLayer(I, x));
18196
+ !this.map.getStyle() || this.map.getStyle().layers.find((S) => S.id === I.id) || (this.layerList.find((S) => S.id === I.id) || this.layerList.push(I), (I.service === "vtile" || I.service === "vector" || (L = I.url) != null && L.includes(".vmt")) && this.addVtileLayer(I, x), I.service === "geojson" && this.addGeoJsonLayer(I, x), ((U = I.url) != null && U.includes(".png") || ["tms", "raster"].includes(I.service)) && await this.addRasterLayer(I, x));
18197
18197
  },
18198
18198
  async addRasterLayer(f, x = this == null ? void 0 : this.map) {
18199
18199
  var I;
@@ -18215,21 +18215,21 @@ const _l = {
18215
18215
  },
18216
18216
  async updateStyle(f, x = this == null ? void 0 : this.map) {
18217
18217
  const I = f.id;
18218
- x.getStyle().layers.forEach(async (D) => {
18219
- D.source === I && x.getLayer(D.id) && await x.removeLayer(D.id);
18218
+ x.getStyle().layers.forEach(async (L) => {
18219
+ L.source === I && x.getLayer(L.id) && await x.removeLayer(L.id);
18220
18220
  }), (await Zh(
18221
18221
  f.style,
18222
18222
  f.source || f.id,
18223
18223
  x,
18224
18224
  this.prefix
18225
- ) || f.layers || []).forEach((D, U) => {
18225
+ ) || f.layers || []).forEach((L, U) => {
18226
18226
  const S = {
18227
- ...D,
18227
+ ...L,
18228
18228
  id: `${f.id}-${U}`,
18229
18229
  source: f.id,
18230
- "source-layer": D["source-layer"] || f.source || f.id,
18231
- maxzoom: +D.maxzoom || 24,
18232
- minzoom: +D.minzoom || 0
18230
+ "source-layer": L["source-layer"] || f.source || f.id,
18231
+ maxzoom: +L.maxzoom || 24,
18232
+ minzoom: +L.minzoom || 0
18233
18233
  };
18234
18234
  x.addLayer(S);
18235
18235
  });
@@ -18262,8 +18262,8 @@ const _l = {
18262
18262
  });
18263
18263
  },
18264
18264
  async addGeoJsonLayer(f, x = this.map) {
18265
- var D;
18266
- const I = f.data || ((D = f == null ? void 0 : f.url) != null && D.startsWith("http") ? "" : window.location.origin) + f.url;
18265
+ var L;
18266
+ const I = f.data || ((L = f == null ? void 0 : f.url) != null && L.startsWith("http") ? "" : window.location.origin) + f.url;
18267
18267
  x.addSource(f.id, { type: "geojson", data: I }), (await Zh(
18268
18268
  f.style,
18269
18269
  I.source || I.id,
@@ -18308,7 +18308,7 @@ const _l = {
18308
18308
  // }
18309
18309
  // },
18310
18310
  async setFilter(f, x) {
18311
- const I = this.layerList.find((D) => D.id === f);
18311
+ const I = this.layerList.find((L) => L.id === f);
18312
18312
  await (await this.map.getSource(f)).setTiles([
18313
18313
  `${window.location.origin}${I.url}${I.url.includes("?") ? "&" : "?"}filter=${x}${I.props ? `&props=${I.props}` : ""}`
18314
18314
  ]);
@@ -18326,8 +18326,8 @@ const _l = {
18326
18326
  }
18327
18327
  }, Ki = (f, x) => {
18328
18328
  const I = f.__vccOpts || f;
18329
- for (const [C, D] of x)
18330
- I[C] = D;
18329
+ for (const [C, L] of x)
18330
+ I[C] = L;
18331
18331
  return I;
18332
18332
  }, tg = {}, ig = {
18333
18333
  class: "w-48 mx-auto mb-4",
@@ -18373,9 +18373,9 @@ const hg = Mc("string"), yr = Mc("function"), Ip = Mc("number"), zc = (f) => f !
18373
18373
  function yl(f, x, { allOwnKeys: I = !1 } = {}) {
18374
18374
  if (f === null || typeof f > "u")
18375
18375
  return;
18376
- let C, D;
18376
+ let C, L;
18377
18377
  if (typeof f != "object" && (f = [f]), Ko(f))
18378
- for (C = 0, D = f.length; C < D; C++)
18378
+ for (C = 0, L = f.length; C < L; C++)
18379
18379
  x.call(null, f[C], C, f);
18380
18380
  else {
18381
18381
  const U = I ? Object.getOwnPropertyNames(f) : Object.keys(f), S = U.length;
@@ -18387,35 +18387,35 @@ function yl(f, x, { allOwnKeys: I = !1 } = {}) {
18387
18387
  function Pp(f, x) {
18388
18388
  x = x.toLowerCase();
18389
18389
  const I = Object.keys(f);
18390
- let C = I.length, D;
18390
+ let C = I.length, L;
18391
18391
  for (; C-- > 0; )
18392
- if (D = I[C], x === D.toLowerCase())
18393
- return D;
18392
+ if (L = I[C], x === L.toLowerCase())
18393
+ return L;
18394
18394
  return null;
18395
18395
  }
18396
18396
  const qs = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, kp = (f) => !gl(f) && f !== qs;
18397
18397
  function Kh() {
18398
- const { caseless: f } = kp(this) && this || {}, x = {}, I = (C, D) => {
18399
- const U = f && Pp(x, D) || D;
18398
+ const { caseless: f } = kp(this) && this || {}, x = {}, I = (C, L) => {
18399
+ const U = f && Pp(x, L) || L;
18400
18400
  Pc(x[U]) && Pc(C) ? x[U] = Kh(x[U], C) : Pc(C) ? x[U] = Kh({}, C) : Ko(C) ? x[U] = C.slice() : x[U] = C;
18401
18401
  };
18402
- for (let C = 0, D = arguments.length; C < D; C++)
18402
+ for (let C = 0, L = arguments.length; C < L; C++)
18403
18403
  arguments[C] && yl(arguments[C], I);
18404
18404
  return x;
18405
18405
  }
18406
- const Tg = (f, x, I, { allOwnKeys: C } = {}) => (yl(x, (D, U) => {
18407
- I && yr(D) ? f[U] = Sp(D, I) : f[U] = D;
18406
+ const Tg = (f, x, I, { allOwnKeys: C } = {}) => (yl(x, (L, U) => {
18407
+ I && yr(L) ? f[U] = Sp(L, I) : f[U] = L;
18408
18408
  }, { allOwnKeys: C }), f), Ig = (f) => (f.charCodeAt(0) === 65279 && (f = f.slice(1)), f), Pg = (f, x, I, C) => {
18409
18409
  f.prototype = Object.create(x.prototype, C), f.prototype.constructor = f, Object.defineProperty(f, "super", {
18410
18410
  value: x.prototype
18411
18411
  }), I && Object.assign(f.prototype, I);
18412
18412
  }, kg = (f, x, I, C) => {
18413
- let D, U, S;
18413
+ let L, U, S;
18414
18414
  const c = {};
18415
18415
  if (x = x || {}, f == null) return x;
18416
18416
  do {
18417
- for (D = Object.getOwnPropertyNames(f), U = D.length; U-- > 0; )
18418
- S = D[U], (!C || C(S, f, x)) && !c[S] && (x[S] = f[S], c[S] = !0);
18417
+ for (L = Object.getOwnPropertyNames(f), U = L.length; U-- > 0; )
18418
+ S = L[U], (!C || C(S, f, x)) && !c[S] && (x[S] = f[S], c[S] = !0);
18419
18419
  f = I !== !1 && nu(f);
18420
18420
  } while (f && (!I || I(f, x)) && f !== Object.prototype);
18421
18421
  return x;
@@ -18434,9 +18434,9 @@ const Tg = (f, x, I, { allOwnKeys: C } = {}) => (yl(x, (D, U) => {
18434
18434
  return I;
18435
18435
  }, Eg = /* @__PURE__ */ ((f) => (x) => f && x instanceof f)(typeof Uint8Array < "u" && nu(Uint8Array)), Mg = (f, x) => {
18436
18436
  const C = (f && f[Symbol.iterator]).call(f);
18437
- let D;
18438
- for (; (D = C.next()) && !D.done; ) {
18439
- const U = D.value;
18437
+ let L;
18438
+ for (; (L = C.next()) && !L.done; ) {
18439
+ const U = L.value;
18440
18440
  x.call(f, U[0], U[1]);
18441
18441
  }
18442
18442
  }, zg = (f, x) => {
@@ -18445,16 +18445,16 @@ const Tg = (f, x, I, { allOwnKeys: C } = {}) => (yl(x, (D, U) => {
18445
18445
  for (; (I = f.exec(x)) !== null; )
18446
18446
  C.push(I);
18447
18447
  return C;
18448
- }, Dg = Zr("HTMLFormElement"), Lg = (f) => f.toLowerCase().replace(
18448
+ }, Lg = Zr("HTMLFormElement"), Dg = (f) => f.toLowerCase().replace(
18449
18449
  /[-_\s]([a-z\d])(\w*)/g,
18450
- function(I, C, D) {
18451
- return C.toUpperCase() + D;
18450
+ function(I, C, L) {
18451
+ return C.toUpperCase() + L;
18452
18452
  }
18453
18453
  ), Qd = (({ hasOwnProperty: f }) => (x, I) => f.call(x, I))(Object.prototype), Rg = Zr("RegExp"), Ap = (f, x) => {
18454
18454
  const I = Object.getOwnPropertyDescriptors(f), C = {};
18455
- yl(I, (D, U) => {
18455
+ yl(I, (L, U) => {
18456
18456
  let S;
18457
- (S = x(D, U, f)) !== !1 && (C[U] = S || D);
18457
+ (S = x(L, U, f)) !== !1 && (C[U] = S || L);
18458
18458
  }), Object.defineProperties(f, C);
18459
18459
  }, Bg = (f) => {
18460
18460
  Ap(f, (x, I) => {
@@ -18472,8 +18472,8 @@ const Tg = (f, x, I, { allOwnKeys: C } = {}) => (yl(x, (D, U) => {
18472
18472
  }
18473
18473
  });
18474
18474
  }, Fg = (f, x) => {
18475
- const I = {}, C = (D) => {
18476
- D.forEach((U) => {
18475
+ const I = {}, C = (L) => {
18476
+ L.forEach((U) => {
18477
18477
  I[U] = !0;
18478
18478
  });
18479
18479
  };
@@ -18494,26 +18494,26 @@ function $g(f) {
18494
18494
  return !!(f && yr(f.append) && f[Symbol.toStringTag] === "FormData" && f[Symbol.iterator]);
18495
18495
  }
18496
18496
  const Ug = (f) => {
18497
- const x = new Array(10), I = (C, D) => {
18497
+ const x = new Array(10), I = (C, L) => {
18498
18498
  if (zc(C)) {
18499
18499
  if (x.indexOf(C) >= 0)
18500
18500
  return;
18501
18501
  if (!("toJSON" in C)) {
18502
- x[D] = C;
18502
+ x[L] = C;
18503
18503
  const U = Ko(C) ? [] : {};
18504
18504
  return yl(C, (S, c) => {
18505
- const pe = I(S, D + 1);
18505
+ const pe = I(S, L + 1);
18506
18506
  !gl(pe) && (U[c] = pe);
18507
- }), x[D] = void 0, U;
18507
+ }), x[L] = void 0, U;
18508
18508
  }
18509
18509
  }
18510
18510
  return C;
18511
18511
  };
18512
18512
  return I(f, 0);
18513
- }, jg = Zr("AsyncFunction"), qg = (f) => f && (zc(f) || yr(f)) && yr(f.then) && yr(f.catch), Ep = ((f, x) => f ? setImmediate : x ? ((I, C) => (qs.addEventListener("message", ({ source: D, data: U }) => {
18514
- D === qs && U === I && C.length && C.shift()();
18515
- }, !1), (D) => {
18516
- C.push(D), qs.postMessage(I, "*");
18513
+ }, jg = Zr("AsyncFunction"), qg = (f) => f && (zc(f) || yr(f)) && yr(f.then) && yr(f.catch), Ep = ((f, x) => f ? setImmediate : x ? ((I, C) => (qs.addEventListener("message", ({ source: L, data: U }) => {
18514
+ L === qs && U === I && C.length && C.shift()();
18515
+ }, !1), (L) => {
18516
+ C.push(L), qs.postMessage(I, "*");
18517
18517
  }))(`axios@${Math.random()}`, []) : (I) => setTimeout(I))(
18518
18518
  typeof setImmediate == "function",
18519
18519
  yr(qs.postMessage)
@@ -18555,14 +18555,14 @@ const Ug = (f) => {
18555
18555
  toArray: Cg,
18556
18556
  forEachEntry: Mg,
18557
18557
  matchAll: zg,
18558
- isHTMLForm: Dg,
18558
+ isHTMLForm: Lg,
18559
18559
  hasOwnProperty: Qd,
18560
18560
  hasOwnProp: Qd,
18561
18561
  // an alias to avoid ESLint no-prototype-builtins detection
18562
18562
  reduceDescriptors: Ap,
18563
18563
  freezeMethods: Bg,
18564
18564
  toObjectSet: Fg,
18565
- toCamelCase: Lg,
18565
+ toCamelCase: Dg,
18566
18566
  noop: Og,
18567
18567
  toFiniteNumber: Vg,
18568
18568
  findKey: Pp,
@@ -18577,8 +18577,8 @@ const Ug = (f) => {
18577
18577
  setImmediate: Ep,
18578
18578
  asap: Zg
18579
18579
  };
18580
- function ht(f, x, I, C, D) {
18581
- Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = f, this.name = "AxiosError", x && (this.code = x), I && (this.config = I), C && (this.request = C), D && (this.response = D);
18580
+ function ht(f, x, I, C, L) {
18581
+ Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = f, this.name = "AxiosError", x && (this.code = x), I && (this.config = I), C && (this.request = C), L && (this.response = L);
18582
18582
  }
18583
18583
  me.inherits(ht, Error, {
18584
18584
  toJSON: function() {
@@ -18621,22 +18621,22 @@ const Mp = ht.prototype, zp = {};
18621
18621
  });
18622
18622
  Object.defineProperties(ht, zp);
18623
18623
  Object.defineProperty(Mp, "isAxiosError", { value: !0 });
18624
- ht.from = (f, x, I, C, D, U) => {
18624
+ ht.from = (f, x, I, C, L, U) => {
18625
18625
  const S = Object.create(Mp);
18626
18626
  return me.toFlatObject(f, S, function(pe) {
18627
18627
  return pe !== Error.prototype;
18628
- }, (c) => c !== "isAxiosError"), ht.call(S, f.message, x, I, C, D), S.cause = f, S.name = f.name, U && Object.assign(S, U), S;
18628
+ }, (c) => c !== "isAxiosError"), ht.call(S, f.message, x, I, C, L), S.cause = f, S.name = f.name, U && Object.assign(S, U), S;
18629
18629
  };
18630
18630
  const Gg = null;
18631
18631
  function Yh(f) {
18632
18632
  return me.isPlainObject(f) || me.isArray(f);
18633
18633
  }
18634
- function Dp(f) {
18634
+ function Lp(f) {
18635
18635
  return me.endsWith(f, "[]") ? f.slice(0, -2) : f;
18636
18636
  }
18637
18637
  function tp(f, x, I) {
18638
- return f ? f.concat(x).map(function(D, U) {
18639
- return D = Dp(D), !I && U ? "[" + D + "]" : D;
18638
+ return f ? f.concat(x).map(function(L, U) {
18639
+ return L = Lp(L), !I && U ? "[" + L + "]" : L;
18640
18640
  }).join(I ? "." : "") : x;
18641
18641
  }
18642
18642
  function Hg(f) {
@@ -18645,7 +18645,7 @@ function Hg(f) {
18645
18645
  const Wg = me.toFlatObject(me, {}, null, function(x) {
18646
18646
  return /^is[A-Z]/.test(x);
18647
18647
  });
18648
- function Dc(f, x, I) {
18648
+ function Lc(f, x, I) {
18649
18649
  if (!me.isObject(f))
18650
18650
  throw new TypeError("target must be an object");
18651
18651
  x = x || new FormData(), I = me.toFlatObject(I, {
@@ -18655,8 +18655,8 @@ function Dc(f, x, I) {
18655
18655
  }, !1, function(Ke, Oe) {
18656
18656
  return !me.isUndefined(Oe[Ke]);
18657
18657
  });
18658
- const C = I.metaTokens, D = I.visitor || xe, U = I.dots, S = I.indexes, pe = (I.Blob || typeof Blob < "u" && Blob) && me.isSpecCompliantForm(x);
18659
- if (!me.isFunction(D))
18658
+ const C = I.metaTokens, L = I.visitor || xe, U = I.dots, S = I.indexes, pe = (I.Blob || typeof Blob < "u" && Blob) && me.isSpecCompliantForm(x);
18659
+ if (!me.isFunction(L))
18660
18660
  throw new TypeError("visitor must be a function");
18661
18661
  function fe(Ue) {
18662
18662
  if (Ue === null) return "";
@@ -18672,7 +18672,7 @@ function Dc(f, x, I) {
18672
18672
  if (me.endsWith(Ke, "{}"))
18673
18673
  Ke = C ? Ke : Ke.slice(0, -2), Ue = JSON.stringify(Ue);
18674
18674
  else if (me.isArray(Ue) && Hg(Ue) || (me.isFileList(Ue) || me.endsWith(Ke, "[]")) && (gt = me.toArray(Ue)))
18675
- return Ke = Dp(Ke), gt.forEach(function(He, Vt) {
18675
+ return Ke = Lp(Ke), gt.forEach(function(He, Vt) {
18676
18676
  !(me.isUndefined(He) || He === null) && x.append(
18677
18677
  // eslint-disable-next-line no-nested-ternary
18678
18678
  S === !0 ? tp([Ke], Vt, U) : S === null ? Ke : Ke + "[]",
@@ -18692,7 +18692,7 @@ function Dc(f, x, I) {
18692
18692
  if (oe.indexOf(Ue) !== -1)
18693
18693
  throw Error("Circular reference detected in " + Ke.join("."));
18694
18694
  oe.push(Ue), me.forEach(Ue, function(gt, ot) {
18695
- (!(me.isUndefined(gt) || gt === null) && D.call(
18695
+ (!(me.isUndefined(gt) || gt === null) && L.call(
18696
18696
  x,
18697
18697
  gt,
18698
18698
  me.isString(ot) ? ot.trim() : ot,
@@ -18721,18 +18721,18 @@ function ip(f) {
18721
18721
  });
18722
18722
  }
18723
18723
  function su(f, x) {
18724
- this._pairs = [], f && Dc(f, this, x);
18724
+ this._pairs = [], f && Lc(f, this, x);
18725
18725
  }
18726
- const Lp = su.prototype;
18727
- Lp.append = function(x, I) {
18726
+ const Dp = su.prototype;
18727
+ Dp.append = function(x, I) {
18728
18728
  this._pairs.push([x, I]);
18729
18729
  };
18730
- Lp.toString = function(x) {
18730
+ Dp.toString = function(x) {
18731
18731
  const I = x ? function(C) {
18732
18732
  return x.call(this, C, ip);
18733
18733
  } : ip;
18734
- return this._pairs.map(function(D) {
18735
- return I(D[0]) + "=" + I(D[1]);
18734
+ return this._pairs.map(function(L) {
18735
+ return I(L[0]) + "=" + I(L[1]);
18736
18736
  }, "").join("&");
18737
18737
  };
18738
18738
  function Xg(f) {
@@ -18741,9 +18741,9 @@ function Xg(f) {
18741
18741
  function Rp(f, x, I) {
18742
18742
  if (!x)
18743
18743
  return f;
18744
- const C = I && I.encode || Xg, D = I && I.serialize;
18744
+ const C = I && I.encode || Xg, L = I && I.serialize;
18745
18745
  let U;
18746
- if (D ? U = D(x, I) : U = me.isURLSearchParams(x) ? x.toString() : new su(x, I).toString(C), U) {
18746
+ if (L ? U = L(x, I) : U = me.isURLSearchParams(x) ? x.toString() : new su(x, I).toString(C), U) {
18747
18747
  const S = f.indexOf("#");
18748
18748
  S !== -1 && (f = f.slice(0, S)), f += (f.indexOf("?") === -1 ? "?" : "&") + U;
18749
18749
  }
@@ -18827,8 +18827,8 @@ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", i_
18827
18827
  ...Qg
18828
18828
  };
18829
18829
  function n_(f, x) {
18830
- return Dc(f, new qr.classes.URLSearchParams(), Object.assign({
18831
- visitor: function(I, C, D, U) {
18830
+ return Lc(f, new qr.classes.URLSearchParams(), Object.assign({
18831
+ visitor: function(I, C, L, U) {
18832
18832
  return qr.isNode && me.isBuffer(I) ? (this.append(C, I.toString("base64")), !1) : U.defaultVisitor.apply(this, arguments);
18833
18833
  }
18834
18834
  }, x));
@@ -18839,23 +18839,23 @@ function s_(f) {
18839
18839
  function o_(f) {
18840
18840
  const x = {}, I = Object.keys(f);
18841
18841
  let C;
18842
- const D = I.length;
18842
+ const L = I.length;
18843
18843
  let U;
18844
- for (C = 0; C < D; C++)
18844
+ for (C = 0; C < L; C++)
18845
18845
  U = I[C], x[U] = f[U];
18846
18846
  return x;
18847
18847
  }
18848
18848
  function Fp(f) {
18849
- function x(I, C, D, U) {
18849
+ function x(I, C, L, U) {
18850
18850
  let S = I[U++];
18851
18851
  if (S === "__proto__") return !0;
18852
18852
  const c = Number.isFinite(+S), pe = U >= I.length;
18853
- return S = !S && me.isArray(D) ? D.length : S, pe ? (me.hasOwnProp(D, S) ? D[S] = [D[S], C] : D[S] = C, !c) : ((!D[S] || !me.isObject(D[S])) && (D[S] = []), x(I, C, D[S], U) && me.isArray(D[S]) && (D[S] = o_(D[S])), !c);
18853
+ return S = !S && me.isArray(L) ? L.length : S, pe ? (me.hasOwnProp(L, S) ? L[S] = [L[S], C] : L[S] = C, !c) : ((!L[S] || !me.isObject(L[S])) && (L[S] = []), x(I, C, L[S], U) && me.isArray(L[S]) && (L[S] = o_(L[S])), !c);
18854
18854
  }
18855
18855
  if (me.isFormData(f) && me.isFunction(f.entries)) {
18856
18856
  const I = {};
18857
- return me.forEachEntry(f, (C, D) => {
18858
- x(s_(C), D, I, 0);
18857
+ return me.forEachEntry(f, (C, L) => {
18858
+ x(s_(C), L, I, 0);
18859
18859
  }), I;
18860
18860
  }
18861
18861
  return null;
@@ -18874,9 +18874,9 @@ const xl = {
18874
18874
  transitional: Bp,
18875
18875
  adapter: ["xhr", "http", "fetch"],
18876
18876
  transformRequest: [function(x, I) {
18877
- const C = I.getContentType() || "", D = C.indexOf("application/json") > -1, U = me.isObject(x);
18877
+ const C = I.getContentType() || "", L = C.indexOf("application/json") > -1, U = me.isObject(x);
18878
18878
  if (U && me.isHTMLForm(x) && (x = new FormData(x)), me.isFormData(x))
18879
- return D ? JSON.stringify(Fp(x)) : x;
18879
+ return L ? JSON.stringify(Fp(x)) : x;
18880
18880
  if (me.isArrayBuffer(x) || me.isBuffer(x) || me.isStream(x) || me.isFile(x) || me.isBlob(x) || me.isReadableStream(x))
18881
18881
  return x;
18882
18882
  if (me.isArrayBufferView(x))
@@ -18889,21 +18889,21 @@ const xl = {
18889
18889
  return n_(x, this.formSerializer).toString();
18890
18890
  if ((c = me.isFileList(x)) || C.indexOf("multipart/form-data") > -1) {
18891
18891
  const pe = this.env && this.env.FormData;
18892
- return Dc(
18892
+ return Lc(
18893
18893
  c ? { "files[]": x } : x,
18894
18894
  pe && new pe(),
18895
18895
  this.formSerializer
18896
18896
  );
18897
18897
  }
18898
18898
  }
18899
- return U || D ? (I.setContentType("application/json", !1), a_(x)) : x;
18899
+ return U || L ? (I.setContentType("application/json", !1), a_(x)) : x;
18900
18900
  }],
18901
18901
  transformResponse: [function(x) {
18902
- const I = this.transitional || xl.transitional, C = I && I.forcedJSONParsing, D = this.responseType === "json";
18902
+ const I = this.transitional || xl.transitional, C = I && I.forcedJSONParsing, L = this.responseType === "json";
18903
18903
  if (me.isResponse(x) || me.isReadableStream(x))
18904
18904
  return x;
18905
- if (x && me.isString(x) && (C && !this.responseType || D)) {
18906
- const S = !(I && I.silentJSONParsing) && D;
18905
+ if (x && me.isString(x) && (C && !this.responseType || L)) {
18906
+ const S = !(I && I.silentJSONParsing) && L;
18907
18907
  try {
18908
18908
  return JSON.parse(x);
18909
18909
  } catch (c) {
@@ -18959,10 +18959,10 @@ const l_ = me.toObjectSet([
18959
18959
  "user-agent"
18960
18960
  ]), c_ = (f) => {
18961
18961
  const x = {};
18962
- let I, C, D;
18962
+ let I, C, L;
18963
18963
  return f && f.split(`
18964
18964
  `).forEach(function(S) {
18965
- D = S.indexOf(":"), I = S.substring(0, D).trim().toLowerCase(), C = S.substring(D + 1).trim(), !(!I || x[I] && l_[I]) && (I === "set-cookie" ? x[I] ? x[I].push(C) : x[I] = [C] : x[I] = x[I] ? x[I] + ", " + C : C);
18965
+ L = S.indexOf(":"), I = S.substring(0, L).trim().toLowerCase(), C = S.substring(L + 1).trim(), !(!I || x[I] && l_[I]) && (I === "set-cookie" ? x[I] ? x[I].push(C) : x[I] = [C] : x[I] = x[I] ? x[I] + ", " + C : C);
18966
18966
  }), x;
18967
18967
  }, np = Symbol("internals");
18968
18968
  function fl(f) {
@@ -18979,10 +18979,10 @@ function h_(f) {
18979
18979
  return x;
18980
18980
  }
18981
18981
  const u_ = (f) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(f.trim());
18982
- function Hh(f, x, I, C, D) {
18982
+ function Hh(f, x, I, C, L) {
18983
18983
  if (me.isFunction(C))
18984
18984
  return C.call(this, x, I);
18985
- if (D && (x = I), !!me.isString(x)) {
18985
+ if (L && (x = I), !!me.isString(x)) {
18986
18986
  if (me.isString(C))
18987
18987
  return x.indexOf(C) !== -1;
18988
18988
  if (me.isRegExp(C))
@@ -18996,8 +18996,8 @@ function p_(f, x) {
18996
18996
  const I = me.toCamelCase(" " + x);
18997
18997
  ["get", "set", "has"].forEach((C) => {
18998
18998
  Object.defineProperty(f, C + I, {
18999
- value: function(D, U, S) {
19000
- return this[C].call(this, x, D, U, S);
18999
+ value: function(L, U, S) {
19000
+ return this[C].call(this, x, L, U, S);
19001
19001
  },
19002
19002
  configurable: !0
19003
19003
  });
@@ -19008,13 +19008,13 @@ class ir {
19008
19008
  x && this.set(x);
19009
19009
  }
19010
19010
  set(x, I, C) {
19011
- const D = this;
19011
+ const L = this;
19012
19012
  function U(c, pe, fe) {
19013
19013
  const xe = fl(pe);
19014
19014
  if (!xe)
19015
19015
  throw new Error("header name must be a non-empty string");
19016
- const oe = me.findKey(D, xe);
19017
- (!oe || D[oe] === void 0 || fe === !0 || fe === void 0 && D[oe] !== !1) && (D[oe || pe] = kc(c));
19016
+ const oe = me.findKey(L, xe);
19017
+ (!oe || L[oe] === void 0 || fe === !0 || fe === void 0 && L[oe] !== !1) && (L[oe || pe] = kc(c));
19018
19018
  }
19019
19019
  const S = (c, pe) => me.forEach(c, (fe, xe) => U(fe, xe, pe));
19020
19020
  if (me.isPlainObject(x) || x instanceof this.constructor)
@@ -19032,15 +19032,15 @@ class ir {
19032
19032
  if (x = fl(x), x) {
19033
19033
  const C = me.findKey(this, x);
19034
19034
  if (C) {
19035
- const D = this[C];
19035
+ const L = this[C];
19036
19036
  if (!I)
19037
- return D;
19037
+ return L;
19038
19038
  if (I === !0)
19039
- return h_(D);
19039
+ return h_(L);
19040
19040
  if (me.isFunction(I))
19041
- return I.call(this, D, C);
19041
+ return I.call(this, L, C);
19042
19042
  if (me.isRegExp(I))
19043
- return I.exec(D);
19043
+ return I.exec(L);
19044
19044
  throw new TypeError("parser must be boolean|regexp|function");
19045
19045
  }
19046
19046
  }
@@ -19054,34 +19054,34 @@ class ir {
19054
19054
  }
19055
19055
  delete(x, I) {
19056
19056
  const C = this;
19057
- let D = !1;
19057
+ let L = !1;
19058
19058
  function U(S) {
19059
19059
  if (S = fl(S), S) {
19060
19060
  const c = me.findKey(C, S);
19061
- c && (!I || Hh(C, C[c], c, I)) && (delete C[c], D = !0);
19061
+ c && (!I || Hh(C, C[c], c, I)) && (delete C[c], L = !0);
19062
19062
  }
19063
19063
  }
19064
- return me.isArray(x) ? x.forEach(U) : U(x), D;
19064
+ return me.isArray(x) ? x.forEach(U) : U(x), L;
19065
19065
  }
19066
19066
  clear(x) {
19067
19067
  const I = Object.keys(this);
19068
- let C = I.length, D = !1;
19068
+ let C = I.length, L = !1;
19069
19069
  for (; C--; ) {
19070
19070
  const U = I[C];
19071
- (!x || Hh(this, this[U], U, x, !0)) && (delete this[U], D = !0);
19071
+ (!x || Hh(this, this[U], U, x, !0)) && (delete this[U], L = !0);
19072
19072
  }
19073
- return D;
19073
+ return L;
19074
19074
  }
19075
19075
  normalize(x) {
19076
19076
  const I = this, C = {};
19077
- return me.forEach(this, (D, U) => {
19077
+ return me.forEach(this, (L, U) => {
19078
19078
  const S = me.findKey(C, U);
19079
19079
  if (S) {
19080
- I[S] = kc(D), delete I[U];
19080
+ I[S] = kc(L), delete I[U];
19081
19081
  return;
19082
19082
  }
19083
19083
  const c = x ? d_(U) : String(U).trim();
19084
- c !== U && delete I[U], I[c] = kc(D), C[c] = !0;
19084
+ c !== U && delete I[U], I[c] = kc(L), C[c] = !0;
19085
19085
  }), this;
19086
19086
  }
19087
19087
  concat(...x) {
@@ -19089,8 +19089,8 @@ class ir {
19089
19089
  }
19090
19090
  toJSON(x) {
19091
19091
  const I = /* @__PURE__ */ Object.create(null);
19092
- return me.forEach(this, (C, D) => {
19093
- C != null && C !== !1 && (I[D] = x && me.isArray(C) ? C.join(", ") : C);
19092
+ return me.forEach(this, (C, L) => {
19093
+ C != null && C !== !1 && (I[L] = x && me.isArray(C) ? C.join(", ") : C);
19094
19094
  }), I;
19095
19095
  }
19096
19096
  [Symbol.iterator]() {
@@ -19108,15 +19108,15 @@ class ir {
19108
19108
  }
19109
19109
  static concat(x, ...I) {
19110
19110
  const C = new this(x);
19111
- return I.forEach((D) => C.set(D)), C;
19111
+ return I.forEach((L) => C.set(L)), C;
19112
19112
  }
19113
19113
  static accessor(x) {
19114
19114
  const C = (this[np] = this[np] = {
19115
19115
  accessors: {}
19116
- }).accessors, D = this.prototype;
19116
+ }).accessors, L = this.prototype;
19117
19117
  function U(S) {
19118
19118
  const c = fl(S);
19119
- C[c] || (p_(D, S), C[c] = !0);
19119
+ C[c] || (p_(L, S), C[c] = !0);
19120
19120
  }
19121
19121
  return me.isArray(x) ? x.forEach(U) : U(x), this;
19122
19122
  }
@@ -19133,11 +19133,11 @@ me.reduceDescriptors(ir.prototype, ({ value: f }, x) => {
19133
19133
  });
19134
19134
  me.freezeMethods(ir);
19135
19135
  function Wh(f, x) {
19136
- const I = this || xl, C = x || I, D = ir.from(C.headers);
19136
+ const I = this || xl, C = x || I, L = ir.from(C.headers);
19137
19137
  let U = C.data;
19138
19138
  return me.forEach(f, function(c) {
19139
- U = c.call(I, U, D.normalize(), x ? x.status : void 0);
19140
- }), D.normalize(), U;
19139
+ U = c.call(I, U, L.normalize(), x ? x.status : void 0);
19140
+ }), L.normalize(), U;
19141
19141
  }
19142
19142
  function Op(f) {
19143
19143
  return !!(f && f.__CANCEL__);
@@ -19165,36 +19165,36 @@ function f_(f) {
19165
19165
  function m_(f, x) {
19166
19166
  f = f || 10;
19167
19167
  const I = new Array(f), C = new Array(f);
19168
- let D = 0, U = 0, S;
19168
+ let L = 0, U = 0, S;
19169
19169
  return x = x !== void 0 ? x : 1e3, function(pe) {
19170
19170
  const fe = Date.now(), xe = C[U];
19171
- S || (S = fe), I[D] = pe, C[D] = fe;
19171
+ S || (S = fe), I[L] = pe, C[L] = fe;
19172
19172
  let oe = U, ae = 0;
19173
- for (; oe !== D; )
19173
+ for (; oe !== L; )
19174
19174
  ae += I[oe++], oe = oe % f;
19175
- if (D = (D + 1) % f, D === U && (U = (U + 1) % f), fe - S < x)
19175
+ if (L = (L + 1) % f, L === U && (U = (U + 1) % f), fe - S < x)
19176
19176
  return;
19177
19177
  const pt = xe && fe - xe;
19178
19178
  return pt ? Math.round(ae * 1e3 / pt) : void 0;
19179
19179
  };
19180
19180
  }
19181
19181
  function g_(f, x) {
19182
- let I = 0, C = 1e3 / x, D, U;
19182
+ let I = 0, C = 1e3 / x, L, U;
19183
19183
  const S = (fe, xe = Date.now()) => {
19184
- I = xe, D = null, U && (clearTimeout(U), U = null), f.apply(null, fe);
19184
+ I = xe, L = null, U && (clearTimeout(U), U = null), f.apply(null, fe);
19185
19185
  };
19186
19186
  return [(...fe) => {
19187
19187
  const xe = Date.now(), oe = xe - I;
19188
- oe >= C ? S(fe, xe) : (D = fe, U || (U = setTimeout(() => {
19189
- U = null, S(D);
19188
+ oe >= C ? S(fe, xe) : (L = fe, U || (U = setTimeout(() => {
19189
+ U = null, S(L);
19190
19190
  }, C - oe)));
19191
- }, () => D && S(D)];
19191
+ }, () => L && S(L)];
19192
19192
  }
19193
19193
  const Ac = (f, x, I = 3) => {
19194
19194
  let C = 0;
19195
- const D = m_(50, 250);
19195
+ const L = m_(50, 250);
19196
19196
  return g_((U) => {
19197
- const S = U.loaded, c = U.lengthComputable ? U.total : void 0, pe = S - C, fe = D(pe), xe = S <= c;
19197
+ const S = U.loaded, c = U.lengthComputable ? U.total : void 0, pe = S - C, fe = L(pe), xe = S <= c;
19198
19198
  C = S;
19199
19199
  const oe = {
19200
19200
  loaded: S,
@@ -19222,7 +19222,7 @@ const Ac = (f, x, I = 3) => {
19222
19222
  function() {
19223
19223
  const x = /(msie|trident)/i.test(navigator.userAgent), I = document.createElement("a");
19224
19224
  let C;
19225
- function D(U) {
19225
+ function L(U) {
19226
19226
  let S = U;
19227
19227
  return x && (I.setAttribute("href", S), S = I.href), I.setAttribute("href", S), {
19228
19228
  href: I.href,
@@ -19235,8 +19235,8 @@ const Ac = (f, x, I = 3) => {
19235
19235
  pathname: I.pathname.charAt(0) === "/" ? I.pathname : "/" + I.pathname
19236
19236
  };
19237
19237
  }
19238
- return C = D(window.location.href), function(S) {
19239
- const c = me.isString(S) ? D(S) : S;
19238
+ return C = L(window.location.href), function(S) {
19239
+ const c = me.isString(S) ? L(S) : S;
19240
19240
  return c.protocol === C.protocol && c.host === C.host;
19241
19241
  };
19242
19242
  }()
@@ -19250,9 +19250,9 @@ const Ac = (f, x, I = 3) => {
19250
19250
  ), y_ = qr.hasStandardBrowserEnv ? (
19251
19251
  // Standard browser envs support document.cookie
19252
19252
  {
19253
- write(f, x, I, C, D, U) {
19253
+ write(f, x, I, C, L, U) {
19254
19254
  const S = [f + "=" + encodeURIComponent(x)];
19255
- me.isNumber(I) && S.push("expires=" + new Date(I).toGMTString()), me.isString(C) && S.push("path=" + C), me.isString(D) && S.push("domain=" + D), U === !0 && S.push("secure"), document.cookie = S.join("; ");
19255
+ me.isNumber(I) && S.push("expires=" + new Date(I).toGMTString()), me.isString(C) && S.push("path=" + C), me.isString(L) && S.push("domain=" + L), U === !0 && S.push("secure"), document.cookie = S.join("; ");
19256
19256
  },
19257
19257
  read(f) {
19258
19258
  const x = document.cookie.match(new RegExp("(^|;\\s*)(" + f + ")=([^;]*)"));
@@ -19290,7 +19290,7 @@ function Xs(f, x) {
19290
19290
  function C(fe, xe, oe) {
19291
19291
  return me.isPlainObject(fe) && me.isPlainObject(xe) ? me.merge.call({ caseless: oe }, fe, xe) : me.isPlainObject(xe) ? me.merge({}, xe) : me.isArray(xe) ? xe.slice() : xe;
19292
19292
  }
19293
- function D(fe, xe, oe) {
19293
+ function L(fe, xe, oe) {
19294
19294
  if (me.isUndefined(xe)) {
19295
19295
  if (!me.isUndefined(fe))
19296
19296
  return C(void 0, fe, oe);
@@ -19341,16 +19341,16 @@ function Xs(f, x) {
19341
19341
  socketPath: S,
19342
19342
  responseEncoding: S,
19343
19343
  validateStatus: c,
19344
- headers: (fe, xe) => D(ap(fe), ap(xe), !0)
19344
+ headers: (fe, xe) => L(ap(fe), ap(xe), !0)
19345
19345
  };
19346
19346
  return me.forEach(Object.keys(Object.assign({}, f, x)), function(xe) {
19347
- const oe = pe[xe] || D, ae = oe(f[xe], x[xe], xe);
19347
+ const oe = pe[xe] || L, ae = oe(f[xe], x[xe], xe);
19348
19348
  me.isUndefined(ae) && oe !== c || (I[xe] = ae);
19349
19349
  }), I;
19350
19350
  }
19351
19351
  const $p = (f) => {
19352
19352
  const x = Xs({}, f);
19353
- let { data: I, withXSRFToken: C, xsrfHeaderName: D, xsrfCookieName: U, headers: S, auth: c } = x;
19353
+ let { data: I, withXSRFToken: C, xsrfHeaderName: L, xsrfCookieName: U, headers: S, auth: c } = x;
19354
19354
  x.headers = S = ir.from(S), x.url = Rp(Np(x.baseURL, x.url), f.params, f.paramsSerializer), c && S.set(
19355
19355
  "Authorization",
19356
19356
  "Basic " + btoa((c.username || "") + ":" + (c.password ? unescape(encodeURIComponent(c.password)) : ""))
@@ -19365,21 +19365,21 @@ const $p = (f) => {
19365
19365
  }
19366
19366
  }
19367
19367
  if (qr.hasStandardBrowserEnv && (C && me.isFunction(C) && (C = C(x)), C || C !== !1 && __(x.url))) {
19368
- const fe = D && U && y_.read(U);
19369
- fe && S.set(D, fe);
19368
+ const fe = L && U && y_.read(U);
19369
+ fe && S.set(L, fe);
19370
19370
  }
19371
19371
  return x;
19372
19372
  }, b_ = typeof XMLHttpRequest < "u", w_ = b_ && function(f) {
19373
19373
  return new Promise(function(I, C) {
19374
- const D = $p(f);
19375
- let U = D.data;
19376
- const S = ir.from(D.headers).normalize();
19377
- let { responseType: c, onUploadProgress: pe, onDownloadProgress: fe } = D, xe, oe, ae, pt, Ue;
19374
+ const L = $p(f);
19375
+ let U = L.data;
19376
+ const S = ir.from(L.headers).normalize();
19377
+ let { responseType: c, onUploadProgress: pe, onDownloadProgress: fe } = L, xe, oe, ae, pt, Ue;
19378
19378
  function Ke() {
19379
- pt && pt(), Ue && Ue(), D.cancelToken && D.cancelToken.unsubscribe(xe), D.signal && D.signal.removeEventListener("abort", xe);
19379
+ pt && pt(), Ue && Ue(), L.cancelToken && L.cancelToken.unsubscribe(xe), L.signal && L.signal.removeEventListener("abort", xe);
19380
19380
  }
19381
19381
  let Oe = new XMLHttpRequest();
19382
- Oe.open(D.method.toUpperCase(), D.url, !0), Oe.timeout = D.timeout;
19382
+ Oe.open(L.method.toUpperCase(), L.url, !0), Oe.timeout = L.timeout;
19383
19383
  function gt() {
19384
19384
  if (!Oe)
19385
19385
  return;
@@ -19406,9 +19406,9 @@ const $p = (f) => {
19406
19406
  }, Oe.onerror = function() {
19407
19407
  C(new ht("Network Error", ht.ERR_NETWORK, f, Oe)), Oe = null;
19408
19408
  }, Oe.ontimeout = function() {
19409
- let Vt = D.timeout ? "timeout of " + D.timeout + "ms exceeded" : "timeout exceeded";
19410
- const Tt = D.transitional || Bp;
19411
- D.timeoutErrorMessage && (Vt = D.timeoutErrorMessage), C(new ht(
19409
+ let Vt = L.timeout ? "timeout of " + L.timeout + "ms exceeded" : "timeout exceeded";
19410
+ const Tt = L.transitional || Bp;
19411
+ L.timeoutErrorMessage && (Vt = L.timeoutErrorMessage), C(new ht(
19412
19412
  Vt,
19413
19413
  Tt.clarifyTimeoutError ? ht.ETIMEDOUT : ht.ECONNABORTED,
19414
19414
  f,
@@ -19416,10 +19416,10 @@ const $p = (f) => {
19416
19416
  )), Oe = null;
19417
19417
  }, U === void 0 && S.setContentType(null), "setRequestHeader" in Oe && me.forEach(S.toJSON(), function(Vt, Tt) {
19418
19418
  Oe.setRequestHeader(Tt, Vt);
19419
- }), me.isUndefined(D.withCredentials) || (Oe.withCredentials = !!D.withCredentials), c && c !== "json" && (Oe.responseType = D.responseType), fe && ([ae, Ue] = Ac(fe, !0), Oe.addEventListener("progress", ae)), pe && Oe.upload && ([oe, pt] = Ac(pe), Oe.upload.addEventListener("progress", oe), Oe.upload.addEventListener("loadend", pt)), (D.cancelToken || D.signal) && (xe = (He) => {
19419
+ }), me.isUndefined(L.withCredentials) || (Oe.withCredentials = !!L.withCredentials), c && c !== "json" && (Oe.responseType = L.responseType), fe && ([ae, Ue] = Ac(fe, !0), Oe.addEventListener("progress", ae)), pe && Oe.upload && ([oe, pt] = Ac(pe), Oe.upload.addEventListener("progress", oe), Oe.upload.addEventListener("loadend", pt)), (L.cancelToken || L.signal) && (xe = (He) => {
19420
19420
  Oe && (C(!He || He.type ? new Yo(null, f, Oe) : He), Oe.abort(), Oe = null);
19421
- }, D.cancelToken && D.cancelToken.subscribe(xe), D.signal && (D.signal.aborted ? xe() : D.signal.addEventListener("abort", xe)));
19422
- const ot = f_(D.url);
19421
+ }, L.cancelToken && L.cancelToken.subscribe(xe), L.signal && (L.signal.aborted ? xe() : L.signal.addEventListener("abort", xe)));
19422
+ const ot = f_(L.url);
19423
19423
  if (ot && qr.protocols.indexOf(ot) === -1) {
19424
19424
  C(new ht("Unsupported protocol " + ot + ":", ht.ERR_BAD_REQUEST, f));
19425
19425
  return;
@@ -19428,7 +19428,7 @@ const $p = (f) => {
19428
19428
  });
19429
19429
  }, S_ = (f, x) => {
19430
19430
  let I = new AbortController(), C;
19431
- const D = function(pe) {
19431
+ const L = function(pe) {
19432
19432
  if (!C) {
19433
19433
  C = !0, S();
19434
19434
  const fe = pe instanceof Error ? pe : this.reason;
@@ -19436,14 +19436,14 @@ const $p = (f) => {
19436
19436
  }
19437
19437
  };
19438
19438
  let U = x && setTimeout(() => {
19439
- D(new ht(`timeout ${x} of ms exceeded`, ht.ETIMEDOUT));
19439
+ L(new ht(`timeout ${x} of ms exceeded`, ht.ETIMEDOUT));
19440
19440
  }, x);
19441
19441
  const S = () => {
19442
19442
  f && (U && clearTimeout(U), U = null, f.forEach((pe) => {
19443
- pe && (pe.removeEventListener ? pe.removeEventListener("abort", D) : pe.unsubscribe(D));
19443
+ pe && (pe.removeEventListener ? pe.removeEventListener("abort", L) : pe.unsubscribe(L));
19444
19444
  }), f = null);
19445
19445
  };
19446
- f.forEach((pe) => pe && pe.addEventListener && pe.addEventListener("abort", D));
19446
+ f.forEach((pe) => pe && pe.addEventListener && pe.addEventListener("abort", L));
19447
19447
  const { signal: c } = I;
19448
19448
  return c.unsubscribe = S, [c, () => {
19449
19449
  U && clearTimeout(U), U = null;
@@ -19454,14 +19454,14 @@ const $p = (f) => {
19454
19454
  yield f;
19455
19455
  return;
19456
19456
  }
19457
- let C = 0, D;
19457
+ let C = 0, L;
19458
19458
  for (; C < I; )
19459
- D = C + x, yield f.slice(C, D), C = D;
19459
+ L = C + x, yield f.slice(C, L), C = L;
19460
19460
  }, I_ = async function* (f, x, I) {
19461
19461
  for await (const C of f)
19462
19462
  yield* T_(ArrayBuffer.isView(C) ? C : await I(String(C)), x);
19463
- }, lp = (f, x, I, C, D) => {
19464
- const U = I_(f, x, D);
19463
+ }, lp = (f, x, I, C, L) => {
19464
+ const U = I_(f, x, L);
19465
19465
  let S = 0, c, pe = (fe) => {
19466
19466
  c || (c = !0, C && C(fe));
19467
19467
  };
@@ -19489,7 +19489,7 @@ const $p = (f) => {
19489
19489
  }, {
19490
19490
  highWaterMark: 2
19491
19491
  });
19492
- }, Lc = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", Up = Lc && typeof ReadableStream == "function", Qh = Lc && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((f) => (x) => f.encode(x))(new TextEncoder()) : async (f) => new Uint8Array(await new Response(f).arrayBuffer())), jp = (f, ...x) => {
19492
+ }, Dc = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", Up = Dc && typeof ReadableStream == "function", Qh = Dc && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((f) => (x) => f.encode(x))(new TextEncoder()) : async (f) => new Uint8Array(await new Response(f).arrayBuffer())), jp = (f, ...x) => {
19493
19493
  try {
19494
19494
  return !!f(...x);
19495
19495
  } catch {
@@ -19508,7 +19508,7 @@ const $p = (f) => {
19508
19508
  }), cp = 64 * 1024, eu = Up && jp(() => me.isReadableStream(new Response("").body)), Cc = {
19509
19509
  stream: eu && ((f) => f.body)
19510
19510
  };
19511
- Lc && ((f) => {
19511
+ Dc && ((f) => {
19512
19512
  ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((x) => {
19513
19513
  !Cc[x] && (Cc[x] = me.isFunction(f[x]) ? (I) => I[x]() : (I, C) => {
19514
19514
  throw new ht(`Response type '${x}' is not supported`, ht.ERR_NOT_SUPPORT, C);
@@ -19529,12 +19529,12 @@ const k_ = async (f) => {
19529
19529
  }, A_ = async (f, x) => {
19530
19530
  const I = me.toFiniteNumber(f.getContentLength());
19531
19531
  return I ?? k_(x);
19532
- }, C_ = Lc && (async (f) => {
19532
+ }, C_ = Dc && (async (f) => {
19533
19533
  let {
19534
19534
  url: x,
19535
19535
  method: I,
19536
19536
  data: C,
19537
- signal: D,
19537
+ signal: L,
19538
19538
  cancelToken: U,
19539
19539
  timeout: S,
19540
19540
  onDownloadProgress: c,
@@ -19545,7 +19545,7 @@ const k_ = async (f) => {
19545
19545
  fetchOptions: ae
19546
19546
  } = $p(f);
19547
19547
  fe = fe ? (fe + "").toLowerCase() : "text";
19548
- let [pt, Ue] = D || U || S ? S_([D, U], S) : [], Ke, Oe;
19548
+ let [pt, Ue] = L || U || S ? S_([L, U], S) : [], Ke, Oe;
19549
19549
  const gt = () => {
19550
19550
  !Ke && setTimeout(() => {
19551
19551
  pt && pt.unsubscribe();
@@ -19633,7 +19633,7 @@ const hp = (f) => `- ${f}`, E_ = (f) => me.isFunction(f) || f === null || f ===
19633
19633
  f = me.isArray(f) ? f : [f];
19634
19634
  const { length: x } = f;
19635
19635
  let I, C;
19636
- const D = {};
19636
+ const L = {};
19637
19637
  for (let U = 0; U < x; U++) {
19638
19638
  I = f[U];
19639
19639
  let S;
@@ -19641,10 +19641,10 @@ const hp = (f) => `- ${f}`, E_ = (f) => me.isFunction(f) || f === null || f ===
19641
19641
  throw new ht(`Unknown adapter '${S}'`);
19642
19642
  if (C)
19643
19643
  break;
19644
- D[S || "#" + U] = C;
19644
+ L[S || "#" + U] = C;
19645
19645
  }
19646
19646
  if (!C) {
19647
- const U = Object.entries(D).map(
19647
+ const U = Object.entries(L).map(
19648
19648
  ([c, pe]) => `adapter ${c} ` + (pe === !1 ? "is not supported by the environment" : "is not available in the build")
19649
19649
  );
19650
19650
  let S = x ? U.length > 1 ? `since :
@@ -19689,17 +19689,17 @@ const Zp = "1.7.4", au = {};
19689
19689
  });
19690
19690
  const dp = {};
19691
19691
  au.transitional = function(x, I, C) {
19692
- function D(U, S) {
19692
+ function L(U, S) {
19693
19693
  return "[Axios v" + Zp + "] Transitional option '" + U + "'" + S + (C ? ". " + C : "");
19694
19694
  }
19695
19695
  return (U, S, c) => {
19696
19696
  if (x === !1)
19697
19697
  throw new ht(
19698
- D(S, " has been removed" + (I ? " in " + I : "")),
19698
+ L(S, " has been removed" + (I ? " in " + I : "")),
19699
19699
  ht.ERR_DEPRECATED
19700
19700
  );
19701
19701
  return I && !dp[S] && (dp[S] = !0, console.warn(
19702
- D(
19702
+ L(
19703
19703
  S,
19704
19704
  " has been deprecated since v" + I + " and will be removed in the near future"
19705
19705
  )
@@ -19710,9 +19710,9 @@ function M_(f, x, I) {
19710
19710
  if (typeof f != "object")
19711
19711
  throw new ht("options must be an object", ht.ERR_BAD_OPTION_VALUE);
19712
19712
  const C = Object.keys(f);
19713
- let D = C.length;
19714
- for (; D-- > 0; ) {
19715
- const U = C[D], S = x[U];
19713
+ let L = C.length;
19714
+ for (; L-- > 0; ) {
19715
+ const U = C[L], S = x[U];
19716
19716
  if (S) {
19717
19717
  const c = f[U], pe = c === void 0 || S(c, U, f);
19718
19718
  if (pe !== !0)
@@ -19747,9 +19747,9 @@ class Gs {
19747
19747
  return await this._request(x, I);
19748
19748
  } catch (C) {
19749
19749
  if (C instanceof Error) {
19750
- let D;
19751
- Error.captureStackTrace ? Error.captureStackTrace(D = {}) : D = new Error();
19752
- const U = D.stack ? D.stack.replace(/^.+\n/, "") : "";
19750
+ let L;
19751
+ Error.captureStackTrace ? Error.captureStackTrace(L = {}) : L = new Error();
19752
+ const U = L.stack ? L.stack.replace(/^.+\n/, "") : "";
19753
19753
  try {
19754
19754
  C.stack ? U && !String(C.stack).endsWith(U.replace(/^.+\n.+\n/, "")) && (C.stack += `
19755
19755
  ` + U) : C.stack = U;
@@ -19761,14 +19761,14 @@ class Gs {
19761
19761
  }
19762
19762
  _request(x, I) {
19763
19763
  typeof x == "string" ? (I = I || {}, I.url = x) : I = x || {}, I = Xs(this.defaults, I);
19764
- const { transitional: C, paramsSerializer: D, headers: U } = I;
19764
+ const { transitional: C, paramsSerializer: L, headers: U } = I;
19765
19765
  C !== void 0 && iu.assertOptions(C, {
19766
19766
  silentJSONParsing: os.transitional(os.boolean),
19767
19767
  forcedJSONParsing: os.transitional(os.boolean),
19768
19768
  clarifyTimeoutError: os.transitional(os.boolean)
19769
- }, !1), D != null && (me.isFunction(D) ? I.paramsSerializer = {
19770
- serialize: D
19771
- } : iu.assertOptions(D, {
19769
+ }, !1), L != null && (me.isFunction(L) ? I.paramsSerializer = {
19770
+ serialize: L
19771
+ } : iu.assertOptions(L, {
19772
19772
  encode: os.function,
19773
19773
  serialize: os.function
19774
19774
  }, !0)), I.method = (I.method || this.defaults.method || "get").toLowerCase();
@@ -19857,17 +19857,17 @@ class lu {
19857
19857
  I = U;
19858
19858
  });
19859
19859
  const C = this;
19860
- this.promise.then((D) => {
19860
+ this.promise.then((L) => {
19861
19861
  if (!C._listeners) return;
19862
19862
  let U = C._listeners.length;
19863
19863
  for (; U-- > 0; )
19864
- C._listeners[U](D);
19864
+ C._listeners[U](L);
19865
19865
  C._listeners = null;
19866
- }), this.promise.then = (D) => {
19866
+ }), this.promise.then = (L) => {
19867
19867
  let U;
19868
19868
  const S = new Promise((c) => {
19869
19869
  C.subscribe(c), U = c;
19870
- }).then(D);
19870
+ }).then(L);
19871
19871
  return S.cancel = function() {
19872
19872
  C.unsubscribe(U);
19873
19873
  }, S;
@@ -19908,8 +19908,8 @@ class lu {
19908
19908
  static source() {
19909
19909
  let x;
19910
19910
  return {
19911
- token: new lu(function(D) {
19912
- x = D;
19911
+ token: new lu(function(L) {
19912
+ x = L;
19913
19913
  }),
19914
19914
  cancel: x
19915
19915
  };
@@ -19920,7 +19920,7 @@ function z_(f) {
19920
19920
  return f.apply(null, I);
19921
19921
  };
19922
19922
  }
19923
- function D_(f) {
19923
+ function L_(f) {
19924
19924
  return me.isObject(f) && f.isAxiosError === !0;
19925
19925
  }
19926
19926
  const ru = {
@@ -19993,8 +19993,8 @@ Object.entries(ru).forEach(([f, x]) => {
19993
19993
  });
19994
19994
  function Gp(f) {
19995
19995
  const x = new Gs(f), I = Sp(Gs.prototype.request, x);
19996
- return me.extend(I, Gs.prototype, x, { allOwnKeys: !0 }), me.extend(I, x, null, { allOwnKeys: !0 }), I.create = function(D) {
19997
- return Gp(Xs(f, D));
19996
+ return me.extend(I, Gs.prototype, x, { allOwnKeys: !0 }), me.extend(I, x, null, { allOwnKeys: !0 }), I.create = function(L) {
19997
+ return Gp(Xs(f, L));
19998
19998
  }, I;
19999
19999
  }
20000
20000
  const Xt = Gp(xl);
@@ -20003,25 +20003,25 @@ Xt.CanceledError = Yo;
20003
20003
  Xt.CancelToken = lu;
20004
20004
  Xt.isCancel = Op;
20005
20005
  Xt.VERSION = Zp;
20006
- Xt.toFormData = Dc;
20006
+ Xt.toFormData = Lc;
20007
20007
  Xt.AxiosError = ht;
20008
20008
  Xt.Cancel = Xt.CanceledError;
20009
20009
  Xt.all = function(x) {
20010
20010
  return Promise.all(x);
20011
20011
  };
20012
20012
  Xt.spread = z_;
20013
- Xt.isAxiosError = D_;
20013
+ Xt.isAxiosError = L_;
20014
20014
  Xt.mergeConfig = Xs;
20015
20015
  Xt.AxiosHeaders = ir;
20016
20016
  Xt.formToJSON = (f) => Fp(me.isHTMLForm(f) ? new FormData(f) : f);
20017
20017
  Xt.getAdapter = qp.getAdapter;
20018
20018
  Xt.HttpStatusCode = ru;
20019
20019
  Xt.default = Xt;
20020
- const L_ = (f, x = 300) => {
20020
+ const D_ = (f, x = 300) => {
20021
20021
  let I;
20022
- return function(...D) {
20022
+ return function(...L) {
20023
20023
  clearTimeout(I), I = setTimeout(() => {
20024
- f.apply(this, D);
20024
+ f.apply(this, L);
20025
20025
  }, x);
20026
20026
  };
20027
20027
  };
@@ -20044,15 +20044,15 @@ function Hp(f, x, I = {}) {
20044
20044
  }, x, I);
20045
20045
  }
20046
20046
  function pp(f, x, I = {}) {
20047
- for (const D of f) {
20048
- if (D.length < 4)
20047
+ for (const L of f) {
20048
+ if (L.length < 4)
20049
20049
  throw new Error(
20050
20050
  "Each LinearRing of a Polygon must have 4 or more Positions."
20051
20051
  );
20052
- if (D[D.length - 1].length !== D[0].length)
20052
+ if (L[L.length - 1].length !== L[0].length)
20053
20053
  throw new Error("First and last Position are not equivalent.");
20054
- for (let U = 0; U < D[D.length - 1].length; U++)
20055
- if (D[D.length - 1][U] !== D[0][U])
20054
+ for (let U = 0; U < L[L.length - 1].length; U++)
20055
+ if (L[L.length - 1][U] !== L[0][U])
20056
20056
  throw new Error("First and last Position are not equivalent.");
20057
20057
  }
20058
20058
  return Rc({
@@ -20077,7 +20077,7 @@ function gp(f) {
20077
20077
  }
20078
20078
  function cu(f, x, I) {
20079
20079
  if (f !== null)
20080
- for (var C, D, U, S, c, pe, fe, xe = 0, oe = 0, ae, pt = f.type, Ue = pt === "FeatureCollection", Ke = pt === "Feature", Oe = Ue ? f.features.length : 1, gt = 0; gt < Oe; gt++) {
20080
+ for (var C, L, U, S, c, pe, fe, xe = 0, oe = 0, ae, pt = f.type, Ue = pt === "FeatureCollection", Ke = pt === "Feature", Oe = Ue ? f.features.length : 1, gt = 0; gt < Oe; gt++) {
20081
20081
  fe = Ue ? f.features[gt].geometry : Ke ? f.geometry : f, ae = fe ? fe.type === "GeometryCollection" : !1, c = ae ? fe.geometries.length : 1;
20082
20082
  for (var ot = 0; ot < c; ot++) {
20083
20083
  var He = 0, Vt = 0;
@@ -20116,9 +20116,9 @@ function cu(f, x, I) {
20116
20116
  case "Polygon":
20117
20117
  case "MultiLineString":
20118
20118
  for (C = 0; C < pe.length; C++) {
20119
- for (D = 0; D < pe[C].length - xe; D++) {
20119
+ for (L = 0; L < pe[C].length - xe; L++) {
20120
20120
  if (x(
20121
- pe[C][D],
20121
+ pe[C][L],
20122
20122
  oe,
20123
20123
  gt,
20124
20124
  He,
@@ -20133,10 +20133,10 @@ function cu(f, x, I) {
20133
20133
  break;
20134
20134
  case "MultiPolygon":
20135
20135
  for (C = 0; C < pe.length; C++) {
20136
- for (Vt = 0, D = 0; D < pe[C].length; D++) {
20137
- for (U = 0; U < pe[C][D].length - xe; U++) {
20136
+ for (Vt = 0, L = 0; L < pe[C].length; L++) {
20137
+ for (U = 0; U < pe[C][L].length - xe; U++) {
20138
20138
  if (x(
20139
- pe[C][D][U],
20139
+ pe[C][L][U],
20140
20140
  oe,
20141
20141
  gt,
20142
20142
  He,
@@ -20171,18 +20171,18 @@ function ml(f, x = {}) {
20171
20171
  }), I;
20172
20172
  }
20173
20173
  function R_(f, x = {}) {
20174
- const I = ml(f), C = (I[0] + I[2]) / 2, D = (I[1] + I[3]) / 2;
20175
- return Hp([C, D], x.properties, x);
20174
+ const I = ml(f), C = (I[0] + I[2]) / 2, L = (I[1] + I[3]) / 2;
20175
+ return Hp([C, L], x.properties, x);
20176
20176
  }
20177
20177
  function B_(f, x = {}) {
20178
- let I = 0, C = 0, D = 0;
20178
+ let I = 0, C = 0, L = 0;
20179
20179
  return cu(
20180
20180
  f,
20181
20181
  function(U) {
20182
- I += U[0], C += U[1], D++;
20182
+ I += U[0], C += U[1], L++;
20183
20183
  },
20184
20184
  !0
20185
- ), Hp([I / D, C / D], x.properties);
20185
+ ), Hp([I / L, C / L], x.properties);
20186
20186
  }
20187
20187
  const F_ = {
20188
20188
  mixins: [_l],
@@ -20248,7 +20248,7 @@ const F_ = {
20248
20248
  }
20249
20249
  }
20250
20250
  }, O_ = { class: "vs-map-slot-layers z-10 select-none" }, V_ = ["onClick"], N_ = ["src"];
20251
- function $_(f, x, I, C, D, U) {
20251
+ function $_(f, x, I, C, L, U) {
20252
20252
  return it(), mt("div", O_, [
20253
20253
  (it(!0), mt(ls, null, Wo(I.baseLayers, (S, c) => (it(), mt("div", {
20254
20254
  key: S.id,
@@ -20343,22 +20343,22 @@ const iy = /* @__PURE__ */ Ki(X_, [["render", ty]]), ry = {
20343
20343
  },
20344
20344
  methods: {
20345
20345
  async handleLayerChange(f, x) {
20346
- await this.setVisible(f, x), x && this.map.getStyle().layers.filter((D) => !this.basemapIds.includes(D.id) && D.id !== f.id).map((D) => D.id).forEach((D) => {
20347
- this.map.getLayer(D) && this.map.moveLayer(D);
20346
+ await this.setVisible(f, x), x && this.map.getStyle().layers.filter((L) => !this.basemapIds.includes(L.id) && L.id !== f.id).map((L) => L.id).forEach((L) => {
20347
+ this.map.getLayer(L) && this.map.moveLayer(L);
20348
20348
  });
20349
20349
  }
20350
20350
  }
20351
20351
  }, ny = (f) => (yp("data-v-4c33eaa0"), f = f(), xp(), f), sy = { class: "p-[10px]" }, oy = { class: "select-none absolute left-[20px] top-[10px] border bg-white max-w-[250px] p-[10px] rounded-lg z-10" }, ay = { class: "flex justify-between items-center border-b pb-[8px] text-[16px]" }, ly = /* @__PURE__ */ ny(() => /* @__PURE__ */ Re("span", null, "Додаткові шари", -1)), cy = { class: "mt-2 max-h-[300px] overflow-auto [&::-webkit-scrollbar]:h-1.5 [&::-webkit-scrollbar]:w-1.5 [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-thumb]:bg-gray-300 [&::-webkit-scrollbar-track]:bg-transparent" }, hy = ["id", "value", "onChange"], uy = ["for"];
20352
- function dy(f, x, I, C, D, U) {
20352
+ function dy(f, x, I, C, L, U) {
20353
20353
  const S = ii("layersIcon"), c = ii("VsPopover"), pe = ii("closeIcon");
20354
20354
  return it(), mt(ls, null, [
20355
- !D.isOpen && D.mounted ? (it(), gr(c, {
20355
+ !L.isOpen && L.mounted ? (it(), gr(c, {
20356
20356
  key: 0,
20357
20357
  teleport: "body",
20358
20358
  trigger: "hover",
20359
20359
  placement: "right",
20360
20360
  class: "select-none flex absolute left-[20px] top-[10px] border bg-white max-w-[250px] rounded-lg cursor-pointer z-10",
20361
- onClick: x[0] || (x[0] = (fe) => D.isOpen = !D.isOpen)
20361
+ onClick: x[0] || (x[0] = (fe) => L.isOpen = !L.isOpen)
20362
20362
  }, {
20363
20363
  reference: _r(() => [
20364
20364
  Re("div", sy, [
@@ -20373,7 +20373,7 @@ function dy(f, x, I, C, D, U) {
20373
20373
  Hs(Re("div", oy, [
20374
20374
  Re("div", ay, [
20375
20375
  ly,
20376
- D.mounted ? (it(), gr(c, {
20376
+ L.mounted ? (it(), gr(c, {
20377
20377
  key: 0,
20378
20378
  teleport: "body",
20379
20379
  trigger: "hover",
@@ -20384,7 +20384,7 @@ function dy(f, x, I, C, D, U) {
20384
20384
  Re("button", {
20385
20385
  type: "button",
20386
20386
  class: "size-6 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",
20387
- onClick: x[1] || (x[1] = (fe) => D.isOpen = !D.isOpen)
20387
+ onClick: x[1] || (x[1] = (fe) => L.isOpen = !L.isOpen)
20388
20388
  }, [
20389
20389
  Ji(pe)
20390
20390
  ])
@@ -20413,10 +20413,10 @@ function dy(f, x, I, C, D, U) {
20413
20413
  }, Mr(fe.name), 9, uy)
20414
20414
  ]))), 128))
20415
20415
  ], 512), [
20416
- [Jo, D.isOpen]
20416
+ [Jo, L.isOpen]
20417
20417
  ])
20418
20418
  ], 512), [
20419
- [Jo, D.isOpen]
20419
+ [Jo, L.isOpen]
20420
20420
  ])
20421
20421
  ], 64);
20422
20422
  }
@@ -20446,9 +20446,9 @@ const py = /* @__PURE__ */ Ki(ry, [["render", dy], ["__scopeId", "data-v-4c33eaa
20446
20446
  },
20447
20447
  watch: {
20448
20448
  async currentLayer(f, x) {
20449
- const I = this.compareLayers.find((D) => D.id === x), C = this.compareLayers.find((D) => D.id === f);
20450
- I && await this.setVisible(I, !1, this.map), C && await this.setVisible(C, !0, this.map), this.map.getStyle().layers.forEach((D) => {
20451
- D.source === this.table && this.map.getLayer(D.id) && this.map.moveLayer(D.id);
20449
+ const I = this.compareLayers.find((L) => L.id === x), C = this.compareLayers.find((L) => L.id === f);
20450
+ I && await this.setVisible(I, !1, this.map), C && await this.setVisible(C, !0, this.map), this.map.getStyle().layers.forEach((L) => {
20451
+ L.source === this.table && this.map.getLayer(L.id) && this.map.moveLayer(L.id);
20452
20452
  });
20453
20453
  }
20454
20454
  }
@@ -20456,13 +20456,13 @@ const py = /* @__PURE__ */ Ki(ry, [["render", dy], ["__scopeId", "data-v-4c33eaa
20456
20456
  type: "button",
20457
20457
  class: "size-6 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"
20458
20458
  }, " - ", -1), vy = { class: "pt-1 max-h-[300px] overflow-auto [&::-webkit-scrollbar]:h-1.5 [&::-webkit-scrollbar]:w-1.5 [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-thumb]:bg-gray-300 [&::-webkit-scrollbar-track]:bg-transparent" }, by = ["id", "name", "value"], wy = ["for"];
20459
- function Sy(f, x, I, C, D, U) {
20459
+ function Sy(f, x, I, C, L, U) {
20460
20460
  const S = ii("VsPopover"), c = ii("closeIcon");
20461
20461
  return Hs((it(), mt("div", my, [
20462
20462
  Re("div", gy, [
20463
20463
  _y,
20464
20464
  Re("div", yy, [
20465
- D.mounted ? (it(), gr(S, {
20465
+ L.mounted ? (it(), gr(S, {
20466
20466
  key: 0,
20467
20467
  trigger: "hover",
20468
20468
  placement: "bottom",
@@ -20477,7 +20477,7 @@ function Sy(f, x, I, C, D, U) {
20477
20477
  ]),
20478
20478
  _: 1
20479
20479
  })) : ci("", !0),
20480
- D.mounted ? (it(), gr(S, {
20480
+ L.mounted ? (it(), gr(S, {
20481
20481
  key: 1,
20482
20482
  trigger: "hover",
20483
20483
  placement: "bottom",
@@ -20509,10 +20509,10 @@ function Sy(f, x, I, C, D, U) {
20509
20509
  id: pe.id,
20510
20510
  name: pe.id,
20511
20511
  value: pe.id,
20512
- "onUpdate:modelValue": x[2] || (x[2] = (fe) => D.currentLayer = fe),
20512
+ "onUpdate:modelValue": x[2] || (x[2] = (fe) => L.currentLayer = fe),
20513
20513
  class: "shrink-0 border-gray-200 rounded-full text-blue-600 focus:ring-blue-500 checked:border-blue-500 dark:bg-neutral-800 dark:border-neutral-700 dark:checked:bg-blue-500 dark:checked:border-blue-500 dark:focus:ring-offset-gray-800"
20514
20514
  }, null, 8, by), [
20515
- [jm, D.currentLayer]
20515
+ [jm, L.currentLayer]
20516
20516
  ]),
20517
20517
  Re("label", {
20518
20518
  for: pe.id,
@@ -20553,10 +20553,10 @@ const Ty = /* @__PURE__ */ Ki(fy, [["render", Sy]]), Iy = {}, Py = {
20553
20553
  Ay,
20554
20554
  Cy
20555
20555
  ];
20556
- function My(f, x, I, C, D, U) {
20556
+ function My(f, x, I, C, L, U) {
20557
20557
  return it(), mt("svg", Py, Ey);
20558
20558
  }
20559
- const zy = /* @__PURE__ */ Ki(Iy, [["render", My]]), Dy = {
20559
+ const zy = /* @__PURE__ */ Ki(Iy, [["render", My]]), Ly = {
20560
20560
  components: {
20561
20561
  closeIcon: Bc,
20562
20562
  compareIcon: zy,
@@ -20661,13 +20661,13 @@ const zy = /* @__PURE__ */ Ki(Iy, [["render", My]]), Dy = {
20661
20661
  this.table,
20662
20662
  f.getStyle().sources[this.table]
20663
20663
  ));
20664
- const C = f.getStyle().layers.filter((D) => D.source === this.table);
20665
- C.length && C.forEach((D) => {
20666
- x.getLayer(D.id) || x.addLayer(D);
20664
+ const C = f.getStyle().layers.filter((L) => L.source === this.table);
20665
+ C.length && C.forEach((L) => {
20666
+ x.getLayer(L.id) || x.addLayer(L);
20667
20667
  });
20668
20668
  }
20669
20669
  }
20670
- }, Ly = { class: "w-[29px] h-[29px] flex items-center justify-center" }, Ry = {
20670
+ }, Dy = { class: "w-[29px] h-[29px] flex items-center justify-center" }, Ry = {
20671
20671
  key: 2,
20672
20672
  id: "comparison-container",
20673
20673
  class: "absolute top-0 right-0 w-full h-full"
@@ -20677,10 +20677,10 @@ const zy = /* @__PURE__ */ Ki(Iy, [["render", My]]), Dy = {
20677
20677
  }, null, -1), Fy = [
20678
20678
  By
20679
20679
  ];
20680
- function Oy(f, x, I, C, D, U) {
20680
+ function Oy(f, x, I, C, L, U) {
20681
20681
  const S = ii("compareIcon"), c = ii("VsPopover"), pe = ii("CompareBaseLayers");
20682
20682
  return it(), mt(ls, null, [
20683
- D.mounted ? (it(), gr(c, {
20683
+ L.mounted ? (it(), gr(c, {
20684
20684
  key: 0,
20685
20685
  teleport: "body",
20686
20686
  trigger: "hover",
@@ -20690,7 +20690,7 @@ function Oy(f, x, I, C, D, U) {
20690
20690
  style: { "box-shadow": "0 0 0 2px rgba(0, 0, 0, 0.2)" }
20691
20691
  }, {
20692
20692
  reference: _r(() => [
20693
- Re("div", Ly, [
20693
+ Re("div", Dy, [
20694
20694
  Ji(S, { class: "w-4 h-4" })
20695
20695
  ])
20696
20696
  ]),
@@ -20699,19 +20699,19 @@ function Oy(f, x, I, C, D, U) {
20699
20699
  ]),
20700
20700
  _: 1
20701
20701
  }, 8, ["class", "onClick"])) : ci("", !0),
20702
- D.isOpen && D.afterMapLoaded ? (it(), gr(pe, {
20702
+ L.isOpen && L.afterMapLoaded ? (it(), gr(pe, {
20703
20703
  key: 1,
20704
20704
  table: I.table,
20705
- map: D.afterMap,
20705
+ map: L.afterMap,
20706
20706
  compareLayers: I.compareLayers,
20707
20707
  onClose: U.destroyCompare,
20708
- collapsed: D.collapsed,
20709
- "onUpdate:collapsed": x[0] || (x[0] = (fe) => D.collapsed = fe)
20708
+ collapsed: L.collapsed,
20709
+ "onUpdate:collapsed": x[0] || (x[0] = (fe) => L.collapsed = fe)
20710
20710
  }, null, 8, ["table", "map", "compareLayers", "onClose", "collapsed"])) : ci("", !0),
20711
- D.isOpen ? (it(), mt("div", Ry, Fy)) : ci("", !0)
20711
+ L.isOpen ? (it(), mt("div", Ry, Fy)) : ci("", !0)
20712
20712
  ], 64);
20713
20713
  }
20714
- const Vy = /* @__PURE__ */ Ki(Dy, [["render", Oy]]), Ny = {
20714
+ const Vy = /* @__PURE__ */ Ki(Ly, [["render", Oy]]), Ny = {
20715
20715
  props: ["colors", "strokes", "title"],
20716
20716
  methods: {
20717
20717
  capitalizeFirstLetter(f) {
@@ -20721,11 +20721,11 @@ const Vy = /* @__PURE__ */ Ki(Dy, [["render", Oy]]), Ny = {
20721
20721
  }, $y = { class: "absolute left-[20px] bottom-[74px] bg-white max-w-[250px] p-[10px] rounded-lg z-10 border" }, Uy = {
20722
20722
  key: 0,
20723
20723
  class: "mb-[10px] text-[1rem]"
20724
- }, jy = { key: 1 }, qy = { class: "legend-item flex items-center gap-2" }, Zy = { class: "ml-1 text-[0.875rem]" }, Gy = { class: "legend-item" }, Hy = {
20724
+ }, jy = { key: 1 }, qy = { class: "legend-item flex items-center gap-2 mb-[10px]" }, Zy = { class: "ml-1 text-[0.875rem]" }, Gy = { class: "legend-item" }, Hy = {
20725
20725
  key: 0,
20726
20726
  class: "flex justify-start items-center gap-2"
20727
20727
  }, Wy = { class: "ml-1 text-[0.875rem]" };
20728
- function Xy(f, x, I, C, D, U) {
20728
+ function Xy(f, x, I, C, L, U) {
20729
20729
  var S;
20730
20730
  return it(), mt("div", $y, [
20731
20731
  I.title ? (it(), mt("div", Uy, Mr(I.title), 1)) : ci("", !0),
@@ -20805,9 +20805,9 @@ const Jy = /* @__PURE__ */ Ki(Ny, [["render", Xy]]), Ky = {
20805
20805
  var f, x, I, C;
20806
20806
  try {
20807
20807
  if (await this.createMap(), (f = this.row) != null && f.geom) {
20808
- const { type: D, coordinates: U } = this.row.geom;
20808
+ const { type: L, coordinates: U } = this.row.geom;
20809
20809
  let S;
20810
- switch (D) {
20810
+ switch (L) {
20811
20811
  case "Polygon":
20812
20812
  S = pp(U);
20813
20813
  break;
@@ -20848,11 +20848,11 @@ const Jy = /* @__PURE__ */ Ki(Ny, [["render", Xy]]), Ky = {
20848
20848
  f != null && f.geom && this.fitToBounds(f.geom), this.map && this.map.getStyle() && this.map.getStyle().layers.filter(
20849
20849
  (C) => C.source === this.table && C.type === "line"
20850
20850
  ).forEach((C) => {
20851
- var D;
20851
+ var L;
20852
20852
  this.map.setPaintProperty(
20853
20853
  C.id,
20854
20854
  "line-width",
20855
- ((D = this.row) == null ? void 0 : D.id) != null ? [
20855
+ ((L = this.row) == null ? void 0 : L.id) != null ? [
20856
20856
  "case",
20857
20857
  ["==", ["get", "id"], this.row.id.toString()],
20858
20858
  (this.polygonStrokeWidth ?? 2.5) * 2,
@@ -20888,10 +20888,10 @@ const Jy = /* @__PURE__ */ Ki(Ny, [["render", Xy]]), Ky = {
20888
20888
  const {
20889
20889
  data: { rows: x }
20890
20890
  } = await Xt.get(`/api/data/${this.table}/${this.colorAttr}`), I = x.reduce(
20891
- (C, D, U) => D != null && D.id ? [
20891
+ (C, L, U) => L != null && L.id ? [
20892
20892
  ...C,
20893
- D.id.toString(),
20894
- D.color || f[0][U % 5]
20893
+ L.id.toString(),
20894
+ L.color || f[0][U % 5]
20895
20895
  ] : C,
20896
20896
  ["match", ["get", this.colorAttr]]
20897
20897
  );
@@ -20905,7 +20905,7 @@ const Jy = /* @__PURE__ */ Ki(Ny, [["render", Xy]]), Ky = {
20905
20905
  try {
20906
20906
  const {
20907
20907
  data: { rows: f }
20908
- } = await Xt.get(`/api/data/${this.table}/${this.strokeAttr}`), x = f.reduce((I, C, D) => C != null && C.id ? [
20908
+ } = await Xt.get(`/api/data/${this.table}/${this.strokeAttr}`), x = f.reduce((I, C, L) => C != null && C.id ? [
20909
20909
  ...I,
20910
20910
  {
20911
20911
  id: C.id.toString(),
@@ -20925,9 +20925,9 @@ const Jy = /* @__PURE__ */ Ki(Ny, [["render", Xy]]), Ky = {
20925
20925
  }
20926
20926
  },
20927
20927
  async handleMapLoad() {
20928
- var C, D, U, S;
20928
+ var C, L, U, S;
20929
20929
  (C = this.row) != null && C.geom && this.fitToBounds(this.row.geom), this.$emit("map", this.map);
20930
- const f = await this.getStrokeStyle(), x = await this.getColorStyle(), I = ((U = (D = location.search.split("&").find((c) => c.includes("filter="))) == null ? void 0 : D.split("filter=")) == null ? void 0 : U[1]) || "";
20930
+ const f = await this.getStrokeStyle(), x = await this.getColorStyle(), I = ((U = (L = location.search.split("&").find((c) => c.includes("filter="))) == null ? void 0 : L.split("filter=")) == null ? void 0 : U[1]) || "";
20931
20931
  await this.addLayer({
20932
20932
  id: this.table,
20933
20933
  service: "vector",
@@ -21016,16 +21016,16 @@ const Jy = /* @__PURE__ */ Ki(Ny, [["render", Xy]]), Ky = {
21016
21016
  fitToBounds(f) {
21017
21017
  if (!this.map) return;
21018
21018
  const { type: x, coordinates: I } = f;
21019
- let C, D;
21019
+ let C, L;
21020
21020
  switch (x) {
21021
21021
  case "Polygon":
21022
- C = pp(I), D = ml(C), this.map.fitBounds(D, { padding: 30, maxZoom: 15, duration: 0 });
21022
+ C = pp(I), L = ml(C), this.map.fitBounds(L, { padding: 30, maxZoom: 15, duration: 0 });
21023
21023
  break;
21024
21024
  case "MultiPolygon":
21025
- C = mp(I), D = ml(C), this.map.fitBounds(D, { padding: 30, maxZoom: 15, duration: 0 });
21025
+ C = mp(I), L = ml(C), this.map.fitBounds(L, { padding: 30, maxZoom: 15, duration: 0 });
21026
21026
  break;
21027
21027
  case "MultiPoint":
21028
- C = fp(I), D = ml(C), this.map.fitBounds(D, { padding: 30, maxZoom: 15, duration: 0 });
21028
+ C = fp(I), L = ml(C), this.map.fitBounds(L, { padding: 30, maxZoom: 15, duration: 0 });
21029
21029
  break;
21030
21030
  case "Point":
21031
21031
  this.map.flyTo({
@@ -21043,7 +21043,7 @@ const Jy = /* @__PURE__ */ Ki(Ny, [["render", Xy]]), Ky = {
21043
21043
  class: "vs-map-portal relative z-1 mt-2",
21044
21044
  id: "mapwrapper"
21045
21045
  };
21046
- function Qy(f, x, I, C, D, U) {
21046
+ function Qy(f, x, I, C, L, U) {
21047
21047
  var xe;
21048
21048
  const S = ii("MapLegend"), c = ii("MapSlotLayers"), pe = ii("MapCompare"), fe = ii("AdditionalLayers");
21049
21049
  return it(), mt("div", Yy, [
@@ -21054,26 +21054,27 @@ function Qy(f, x, I, C, D, U) {
21054
21054
  style: Jh({ height: I.height })
21055
21055
  }, null, 4),
21056
21056
  Hs(Ji(S, {
21057
- colors: D.colors,
21057
+ colors: L.colors,
21058
+ strokes: f.strokes,
21058
21059
  title: I.legendname
21059
- }, null, 8, ["colors", "title"]), [
21060
+ }, null, 8, ["colors", "strokes", "title"]), [
21060
21061
  [Jo, I.legend]
21061
21062
  ]),
21062
21063
  Ji(c, {
21063
- map: D.map,
21064
+ map: L.map,
21064
21065
  baseLayers: I.basemap,
21065
21066
  selectedLayer: I.selectedBaseLayer,
21066
21067
  "onUpdate:selectedLayer": x[0] || (x[0] = (oe) => f.$emit("update:selectedBaseLayer", oe))
21067
21068
  }, null, 8, ["map", "baseLayers", "selectedLayer"]),
21068
21069
  Ji(pe, {
21069
- map: D.map,
21070
+ map: L.map,
21070
21071
  compareLayers: U.allLayers,
21071
21072
  table: I.table,
21072
21073
  onIsCompareOpen: x[1] || (x[1] = (oe) => f.$emit("isCompareOpen", oe))
21073
21074
  }, null, 8, ["map", "compareLayers", "table"]),
21074
21075
  (xe = I.additionalLayers) != null && xe.length ? (it(), gr(fe, {
21075
21076
  key: 0,
21076
- map: D.map,
21077
+ map: L.map,
21077
21078
  layers: I.additionalLayers,
21078
21079
  basemapIds: U.basemapIds
21079
21080
  }, null, 8, ["map", "layers", "basemapIds"])) : ci("", !0)
@@ -21192,11 +21193,11 @@ const T0 = /* @__PURE__ */ Ki(g0, [["render", S0]]), I0 = {
21192
21193
  ], -1)), z0 = [
21193
21194
  E0,
21194
21195
  M0
21195
- ], D0 = { class: "ui-dialog__content p-4" }, L0 = {
21196
+ ], L0 = { class: "ui-dialog__content p-4" }, D0 = {
21196
21197
  key: 0,
21197
21198
  class: "flex justify-end gap-x-2"
21198
21199
  };
21199
- function R0(f, x, I, C, D, U) {
21200
+ function R0(f, x, I, C, L, U) {
21200
21201
  return it(), gr(qm, { to: "#modal" }, [
21201
21202
  Ji(Wd, { name: "fade" }, {
21202
21203
  default: _r(() => [
@@ -21218,10 +21219,10 @@ function R0(f, x, I, C, D, U) {
21218
21219
  onClick: x[0] || (x[0] = (...S) => U.handleClose && U.handleClose(...S))
21219
21220
  }, z0)
21220
21221
  ]),
21221
- Re("div", D0, [
21222
+ Re("div", L0, [
21222
21223
  Ho(f.$slots, "default", {}, void 0, !0)
21223
21224
  ]),
21224
- U.hasSlot ? (it(), mt("div", L0, [
21225
+ U.hasSlot ? (it(), mt("div", D0, [
21225
21226
  Ho(f.$slots, "footer", {}, void 0, !0)
21226
21227
  ])) : ci("", !0)
21227
21228
  ], 2)
@@ -21239,6 +21240,7 @@ function R0(f, x, I, C, D, U) {
21239
21240
  }
21240
21241
  const B0 = /* @__PURE__ */ Ki(I0, [["render", R0], ["__scopeId", "data-v-37405773"]]), F0 = Zm({
21241
21242
  props: {
21243
+ dashedLine: { type: Boolean, default: !1 },
21242
21244
  title: { type: String, default: () => "" },
21243
21245
  table: { type: String, default: () => "" },
21244
21246
  rows: { type: Object, default: () => null },
@@ -21329,7 +21331,7 @@ const B0 = /* @__PURE__ */ Ki(I0, [["render", R0], ["__scopeId", "data-v-3740577
21329
21331
  label: "30"
21330
21332
  }
21331
21333
  ],
21332
- handleDebouncedUpdateValue: L_((f) => {
21334
+ handleDebouncedUpdateValue: D_((f) => {
21333
21335
  this.handleSearchValue(f);
21334
21336
  }, 300)
21335
21337
  };
@@ -21350,13 +21352,13 @@ const B0 = /* @__PURE__ */ Ki(I0, [["render", R0], ["__scopeId", "data-v-3740577
21350
21352
  f || this.getData();
21351
21353
  },
21352
21354
  async regionSelectValue(f, x) {
21353
- var D, U;
21355
+ var L, U;
21354
21356
  if (!this.regionSelectValue) {
21355
21357
  this.map.removeSource("region-search-id");
21356
21358
  return;
21357
21359
  }
21358
21360
  f && this.selectedId && this.closeObjCard(), this.polyline = this.regionSelectValue.encoded_geom, this.getData();
21359
- const I = ((D = this.regionSelectValue) == null ? void 0 : D.geom) || Ws.toGeoJSON(this.regionSelectValue.encoded_geom), C = this.map.getSource("region-search-id");
21361
+ const I = ((L = this.regionSelectValue) == null ? void 0 : L.geom) || Ws.toGeoJSON(this.regionSelectValue.encoded_geom), C = this.map.getSource("region-search-id");
21360
21362
  if (this.currentBbox = ml(I), C)
21361
21363
  C.setData({
21362
21364
  type: "Feature",
@@ -21397,8 +21399,8 @@ const B0 = /* @__PURE__ */ Ki(I0, [["render", R0], ["__scopeId", "data-v-3740577
21397
21399
  mounted() {
21398
21400
  this.rows || this.getData();
21399
21401
  const x = new URLSearchParams(window.location.search).get("filter"), I = x == null ? void 0 : x.split("|");
21400
- I == null || I.forEach((D) => {
21401
- const [U, S] = D.split("=");
21402
+ I == null || I.forEach((L) => {
21403
+ const [U, S] = L.split("=");
21402
21404
  S != null && S.includes(",") ? this.mountedFilter[U] = S == null ? void 0 : S.split(",") : this.mountedFilter[U] = S;
21403
21405
  });
21404
21406
  const C = new URLSearchParams(window.location.search);
@@ -21452,7 +21454,7 @@ const B0 = /* @__PURE__ */ Ki(I0, [["render", R0], ["__scopeId", "data-v-3740577
21452
21454
  },
21453
21455
  async clearFilter(f) {
21454
21456
  var x, I, C;
21455
- await ((I = (x = this.$refs) == null ? void 0 : x.filter) == null ? void 0 : I.clearFilter(f)), this.filterUrl = (C = this.$refs) == null ? void 0 : C.filter.filterUrl, f === "katottg" && this.$emit("update:filterState", {}), await this.updateTableAndMap(), await this.getData();
21457
+ await ((I = (x = this.$refs) == null ? void 0 : x.filter) == null ? void 0 : I.clearFilter(f)), this.filterUrl = (C = this.$refs) == null ? void 0 : C.filter.filterUrl, console.log(f), f === "region_katottg" && this.$emit("update:filterState", {}), await this.updateTableAndMap(), await this.getData();
21456
21458
  },
21457
21459
  handlePageChange(f) {
21458
21460
  this.currentPage = f;
@@ -21536,8 +21538,8 @@ const B0 = /* @__PURE__ */ Ki(I0, [["render", R0], ["__scopeId", "data-v-3740577
21536
21538
  return;
21537
21539
  const I = window.location.pathname, C = new URLSearchParams(window.location.search);
21538
21540
  C.set("id", `${(U = x[0]) == null ? void 0 : U.properties.id}`), this.getObjectData((c = (S = x[0]) == null ? void 0 : S.properties) == null ? void 0 : c.id);
21539
- const D = `${I}?${C.toString()}`;
21540
- window.history.pushState({}, "", D), this.isSelectObj = !0, f.lngLat && ((ae = this.map) == null || ae.fitBounds(
21541
+ const L = `${I}?${C.toString()}`;
21542
+ window.history.pushState({}, "", L), this.isSelectObj = !0, f.lngLat && ((ae = this.map) == null || ae.fitBounds(
21541
21543
  [
21542
21544
  [(pe = f.lngLat) == null ? void 0 : pe.lng, (fe = f.lngLat) == null ? void 0 : fe.lat],
21543
21545
  [(xe = f.lngLat) == null ? void 0 : xe.lng, (oe = f.lngLat) == null ? void 0 : oe.lat]
@@ -21559,9 +21561,9 @@ const B0 = /* @__PURE__ */ Ki(I0, [["render", R0], ["__scopeId", "data-v-3740577
21559
21561
  this.isMapVisible = x;
21560
21562
  const C = await (await fetch(`/api/data/${this.table}/${f.id}`)).json();
21561
21563
  this.selectedRow = ((c = C == null ? void 0 : C.rows) == null ? void 0 : c[0]) || f;
21562
- const D = window.location.pathname, U = new URLSearchParams(window.location.search);
21564
+ const L = window.location.pathname, U = new URLSearchParams(window.location.search);
21563
21565
  U.set("id", `${f.id}`);
21564
- const S = `${D}?${U.toString()}`;
21566
+ const S = `${L}?${U.toString()}`;
21565
21567
  window.history.pushState({}, "", S), this.checkUrl(x), this.isSelectObj = !0;
21566
21568
  },
21567
21569
  deletePulsePoint() {
@@ -21582,8 +21584,8 @@ const B0 = /* @__PURE__ */ Ki(I0, [["render", R0], ["__scopeId", "data-v-3740577
21582
21584
  (f = this.map) != null && f.getLayer("highlighted-polygon") && ((x = this.map) == null || x.removeLayer("highlighted-polygon"), (I = this.map) == null || I.removeSource("highlighted-polygon"));
21583
21585
  },
21584
21586
  highlightPolygon(f) {
21585
- var x, I, C, D, U, S;
21586
- this.deletePulsePoint(), this.deleteHighlighPolygon(), (D = this.map) == null || D.addSource("highlighted-polygon", {
21587
+ var x, I, C, L, U, S;
21588
+ this.deletePulsePoint(), this.deleteHighlighPolygon(), (L = this.map) == null || L.addSource("highlighted-polygon", {
21587
21589
  type: "geojson",
21588
21590
  data: {
21589
21591
  geometry: {
@@ -21650,7 +21652,7 @@ const B0 = /* @__PURE__ */ Ki(I0, [["render", R0], ["__scopeId", "data-v-3740577
21650
21652
  }
21651
21653
  )
21652
21654
  ).length) return;
21653
- const D = x[0].geometry.coordinates.slice();
21655
+ const L = x[0].geometry.coordinates.slice();
21654
21656
  x[0].source === "highlighted-polygon" && x[1] ? this.hoverData = (c = x[1]) == null ? void 0 : c.properties : this.hoverData = (pe = x[0]) == null ? void 0 : pe.properties;
21655
21657
  const U = {
21656
21658
  source: x[0].source,
@@ -21658,8 +21660,8 @@ const B0 = /* @__PURE__ */ Ki(I0, [["render", R0], ["__scopeId", "data-v-3740577
21658
21660
  id: x[0].id
21659
21661
  };
21660
21662
  if (U.source !== "region-search-id") {
21661
- for (this.map.setFeatureState(U, { hover: !0 }), this.hoverObject = U; Math.abs(f.lngLat.lng - D[0]) > 180; )
21662
- D[0] += f.lngLat.lng > D[0] ? 360 : -360;
21663
+ for (this.map.setFeatureState(U, { hover: !0 }), this.hoverObject = U; Math.abs(f.lngLat.lng - L[0]) > 180; )
21664
+ L[0] += f.lngLat.lng > L[0] ? 360 : -360;
21663
21665
  this.popup.setLngLat(f.lngLat).setHTML(this.$refs.popup.innerHTML).addTo(this.map);
21664
21666
  }
21665
21667
  },
@@ -21696,7 +21698,7 @@ const B0 = /* @__PURE__ */ Ki(I0, [["render", R0], ["__scopeId", "data-v-3740577
21696
21698
  ref: "popup",
21697
21699
  style: { display: "none" }
21698
21700
  };
21699
- function px(f, x, I, C, D, U) {
21701
+ function px(f, x, I, C, L, U) {
21700
21702
  var Oe, gt;
21701
21703
  const S = ii("VsTextMask"), c = ii("vs-text"), pe = ii("FilterIcon"), fe = ii("VsFilterList"), xe = ii("VisibleMapIcon"), oe = ii("HiddenMapIcon"), ae = ii("CloseIcon"), pt = ii("NoData"), Ue = ii("VsPagination"), Ke = ii("MapPortal");
21702
21704
  return it(), mt("section", O0, [
@@ -21887,6 +21889,7 @@ function px(f, x, I, C, D, U) {
21887
21889
  maxBounds: f.maxBounds,
21888
21890
  center: f.center,
21889
21891
  zoom: f.zoom,
21892
+ dashedLine: f.dashedLine,
21890
21893
  minZoom: f.minZoom,
21891
21894
  basemap: f.basemap,
21892
21895
  additionalLayers: f.additionalLayers,
@@ -21896,7 +21899,7 @@ function px(f, x, I, C, D, U) {
21896
21899
  selectedBaseLayer: f.selectedBaseLayer,
21897
21900
  "onUpdate:selectedBaseLayer": x[6] || (x[6] = (ot) => f.selectedBaseLayer = ot),
21898
21901
  onIsCompareOpen: x[7] || (x[7] = (ot) => f.isCompareOpen = ot)
21899
- }, null, 8, ["table", "filtersParam", "row", "legendname", "legend", "compareLayers", "colorAttr", "strokeAttr", "maxBounds", "center", "zoom", "minZoom", "basemap", "additionalLayers", "pointZoom", "defaultColor", "selectedBaseLayer"])
21902
+ }, null, 8, ["table", "filtersParam", "row", "legendname", "legend", "compareLayers", "colorAttr", "strokeAttr", "maxBounds", "center", "zoom", "dashedLine", "minZoom", "basemap", "additionalLayers", "pointZoom", "defaultColor", "selectedBaseLayer"])
21900
21903
  ])
21901
21904
  ], 512), [
21902
21905
  [Jo, f.isMapVisible]