@opengis/partsmap 0.0.32 → 0.0.34

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
@@ -1,4 +1,4 @@
1
- import { openBlock as gt, createElementBlock as Ut, createStaticVNode as np, Fragment as ol, renderList as al, normalizeClass as cl, createElementVNode as Ye, toDisplayString as ss, normalizeStyle as sp, createCommentVNode as Or, resolveComponent as Wi, createVNode as Vr, createBlock as cn, Teleport as Fm, Transition as Nd, withCtx as jo, withDirectives as op, renderSlot as ll, vShow as ap, pushScopeId as Bm, popScopeId as Om, defineComponent as Vm, createTextVNode as Nm } from "vue";
1
+ import { openBlock as dt, createElementBlock as jt, createStaticVNode as np, Fragment as ol, renderList as al, normalizeClass as cl, createElementVNode as Ye, toDisplayString as Mn, createCommentVNode as Pr, normalizeStyle as sp, resolveComponent as Wi, createVNode as Vr, createBlock as cn, Teleport as Fm, Transition as Nd, withCtx as jo, withDirectives as op, renderSlot as ll, vShow as ap, pushScopeId as Bm, popScopeId as Om, defineComponent as Vm, createTextVNode as Nm } from "vue";
2
2
  var $s = {};
3
3
  function jd(_) {
4
4
  return Math.floor(Math.abs(_) + 0.5) * (_ >= 0 ? 1 : -1);
@@ -209,11 +209,11 @@ var cp = { exports: {} };
209
209
  } };
210
210
  var Ze = _e(oe);
211
211
  let et, Ne;
212
- function dt() {
212
+ function pt() {
213
213
  return et == null && (et = typeof OffscreenCanvas < "u" && new OffscreenCanvas(1, 1).getContext("2d") && typeof createImageBitmap == "function"), et;
214
214
  }
215
215
  function Ot() {
216
- if (Ne == null && (Ne = !1, dt())) {
216
+ if (Ne == null && (Ne = !1, pt())) {
217
217
  const e = new OffscreenCanvas(5, 5).getContext("2d", { willReadFrequently: !0 });
218
218
  if (e) {
219
219
  for (let s = 0; s < 5 * 5; s++) {
@@ -266,10 +266,10 @@ var cp = { exports: {} };
266
266
  function Ti(i, e, r) {
267
267
  return (r.y - i.y) * (e.x - i.x) > (e.y - i.y) * (r.x - i.x);
268
268
  }
269
- function Pr(i) {
269
+ function Ar(i) {
270
270
  return typeof WorkerGlobalScope < "u" && i !== void 0 && i instanceof WorkerGlobalScope;
271
271
  }
272
- let Mn = null;
272
+ let zn = null;
273
273
  function fr(i) {
274
274
  return typeof ImageBitmap < "u" && i instanceof ImageBitmap;
275
275
  }
@@ -295,26 +295,26 @@ var cp = { exports: {} };
295
295
  }
296
296
  });
297
297
  }
298
- let Ar, Ei;
298
+ let Cr, Ei;
299
299
  const er = "AbortError";
300
- function zn() {
300
+ function Dn() {
301
301
  return new Error(er);
302
302
  }
303
303
  const qr = { MAX_PARALLEL_IMAGE_REQUESTS: 16, MAX_PARALLEL_IMAGE_REQUESTS_PER_FRAME: 8, MAX_TILE_CACHE_ZOOM_LEVELS: 5, REGISTERED_PROTOCOLS: {}, WORKER_URL: "" };
304
304
  function mr(i) {
305
305
  return qr.REGISTERED_PROTOCOLS[i.substring(0, i.indexOf("://"))];
306
306
  }
307
- const Dn = "global-dispatcher";
307
+ const Ln = "global-dispatcher";
308
308
  class Vi extends Error {
309
309
  constructor(e, r, s, l) {
310
310
  super(`AJAXError: ${r} (${e}): ${s}`), this.status = e, this.statusText = r, this.url = s, this.body = l;
311
311
  }
312
312
  }
313
- const tr = () => Pr(self) ? self.worker && self.worker.referrer : (window.location.protocol === "blob:" ? window.parent : window).location.href, dn = function(i, e) {
313
+ const tr = () => Ar(self) ? self.worker && self.worker.referrer : (window.location.protocol === "blob:" ? window.parent : window).location.href, dn = function(i, e) {
314
314
  if (/:\/\//.test(i.url) && !/^https?:|^file:/.test(i.url)) {
315
315
  const s = mr(i.url);
316
316
  if (s) return s(i, e);
317
- if (Pr(self) && self.worker && self.worker.actor) return self.worker.actor.sendAsync({ type: "GR", data: i, targetMapId: Dn }, e);
317
+ if (Ar(self) && self.worker && self.worker.actor) return self.worker.actor.sendAsync({ type: "GR", data: i, targetMapId: Ln }, e);
318
318
  }
319
319
  if (!(/^file:/.test(r = i.url) || /^file:/.test(tr()) && !/^\w+:/.test(r))) {
320
320
  if (fetch && Request && AbortController && Object.prototype.hasOwnProperty.call(Request.prototype, "signal")) return function(s, l) {
@@ -329,11 +329,11 @@ var cp = { exports: {} };
329
329
  let f;
330
330
  f = s.type === "arrayBuffer" || s.type === "image" ? p.arrayBuffer() : s.type === "json" ? p.json() : p.text();
331
331
  const g = yield f;
332
- if (l.signal.aborted) throw zn();
332
+ if (l.signal.aborted) throw Dn();
333
333
  return { data: g, cacheControl: p.headers.get("Cache-Control"), expires: p.headers.get("Expires") };
334
334
  });
335
335
  }(i, e);
336
- if (Pr(self) && self.worker && self.worker.actor) return self.worker.actor.sendAsync({ type: "GR", data: i, mustQueue: !0, targetMapId: Dn }, e);
336
+ if (Ar(self) && self.worker && self.worker.actor) return self.worker.actor.sendAsync({ type: "GR", data: i, mustQueue: !0, targetMapId: Ln }, e);
337
337
  }
338
338
  var r;
339
339
  return function(s, l) {
@@ -358,7 +358,7 @@ var cp = { exports: {} };
358
358
  p(new Vi(g.status, g.statusText, s.url, x));
359
359
  }
360
360
  }, l.signal.addEventListener("abort", () => {
361
- g.abort(), p(zn());
361
+ g.abort(), p(Dn());
362
362
  }), g.send(s.body);
363
363
  });
364
364
  }(i, e);
@@ -371,7 +371,7 @@ var cp = { exports: {} };
371
371
  function os(i, e, r) {
372
372
  r[i] && r[i].indexOf(e) !== -1 || (r[i] = r[i] || [], r[i].push(e));
373
373
  }
374
- function Cr(i, e, r) {
374
+ function kr(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);
@@ -387,12 +387,12 @@ var cp = { exports: {} };
387
387
  super("error", $t({ error: e }, r));
388
388
  }
389
389
  }
390
- class Ln {
390
+ class Rn {
391
391
  on(e, r) {
392
392
  return this._listeners = this._listeners || {}, os(e, r, this._listeners), this;
393
393
  }
394
394
  off(e, r) {
395
- return Cr(e, r, this._listeners), Cr(e, r, this._oneTimeListeners), this;
395
+ return kr(e, r, this._listeners), kr(e, r, this._oneTimeListeners), this;
396
396
  }
397
397
  once(e, r) {
398
398
  return r ? (this._oneTimeListeners = this._oneTimeListeners || {}, os(e, r, this._oneTimeListeners), this) : new Promise((s) => this.once(e, s));
@@ -405,7 +405,7 @@ var cp = { exports: {} };
405
405
  const l = this._listeners && this._listeners[s] ? this._listeners[s].slice() : [];
406
406
  for (const f of l) f.call(this, e);
407
407
  const d = this._oneTimeListeners && this._oneTimeListeners[s] ? this._oneTimeListeners[s].slice() : [];
408
- for (const f of d) Cr(s, f, this._oneTimeListeners), f.call(this, e);
408
+ for (const f of d) kr(s, f, this._oneTimeListeners), f.call(this, e);
409
409
  const p = this._eventedParent;
410
410
  p && ($t(e, typeof this._eventedParentData == "function" ? this._eventedParentData() : this._eventedParentData), p.fire(e));
411
411
  } else e instanceof Gr && console.error(e.error);
@@ -449,10 +449,10 @@ var cp = { exports: {} };
449
449
  function Hr(i, e, r) {
450
450
  qt(e, { command: "removeSource", args: [i] }), r[i] = !0;
451
451
  }
452
- function kr(i, e, r, s) {
452
+ function Er(i, e, r, s) {
453
453
  Hr(i, r, s), ls(i, e, r);
454
454
  }
455
- function Rn(i, e, r) {
455
+ function Fn(i, e, r) {
456
456
  let s;
457
457
  for (s in i[r]) if (Object.prototype.hasOwnProperty.call(i[r], s) && s !== "data" && !yt(i[r][s], e[r][s])) return !1;
458
458
  for (s in e[r]) if (Object.prototype.hasOwnProperty.call(e[r], s) && s !== "data" && !yt(i[r][s], e[r][s])) return !1;
@@ -500,7 +500,7 @@ var cp = { exports: {} };
500
500
  return !!this.bindings[e] || !!this.parent && this.parent.has(e);
501
501
  }
502
502
  }
503
- const Wr = { kind: "null" }, Ce = { kind: "number" }, ot = { kind: "string" }, Je = { kind: "boolean" }, Mi = { kind: "color" }, ir = { kind: "object" }, it = { kind: "value" }, yr = { kind: "collator" }, Er = { kind: "formatted" }, Xr = { kind: "padding" }, xr = { kind: "resolvedImage" }, G = { kind: "variableAnchorOffsetCollection" };
503
+ const Wr = { kind: "null" }, Ce = { kind: "number" }, ot = { kind: "string" }, Je = { kind: "boolean" }, Mi = { kind: "color" }, ir = { kind: "object" }, it = { kind: "value" }, yr = { kind: "collator" }, Mr = { kind: "formatted" }, Xr = { kind: "padding" }, xr = { kind: "resolvedImage" }, G = { kind: "variableAnchorOffsetCollection" };
504
504
  function M(i, e) {
505
505
  return { kind: "array", itemType: i, N: e };
506
506
  }
@@ -511,7 +511,7 @@ var cp = { exports: {} };
511
511
  }
512
512
  return i.kind;
513
513
  }
514
- const O = [Wr, Ce, ot, Je, Mi, Er, ir, M(it), Xr, xr, G];
514
+ const O = [Wr, Ce, ot, Je, Mi, Mr, ir, M(it), Xr, xr, G];
515
515
  function q(i, e) {
516
516
  if (e.kind === "error") return null;
517
517
  if (i.kind === "array") {
@@ -534,7 +534,7 @@ var cp = { exports: {} };
534
534
  return i.kind === "array" && e.kind === "array" ? i.itemType.kind === e.itemType.kind && typeof i.N == "number" : i.kind === e.kind;
535
535
  }
536
536
  const J = 0.96422, de = 0.82521, ge = 4 / 29, ce = 6 / 29, Pe = 3 * ce * ce, Ge = ce * ce * ce, He = Math.PI / 180, nt = 180 / Math.PI;
537
- function pt(i) {
537
+ function ft(i) {
538
538
  return (i %= 360) < 0 && (i += 360), i;
539
539
  }
540
540
  function rt([i, e, r, s]) {
@@ -616,7 +616,7 @@ var cp = { exports: {} };
616
616
  const Le = (xe + W / 30) % 12, We = se * Math.min(Y, 1 - Y);
617
617
  return Y - We * Math.max(-1, Math.min(Le - 3, 9 - Le, 1));
618
618
  }
619
- return W = pt(W), se /= 100, Y /= 100, [ue(0), ue(8), ue(4), ie];
619
+ return W = ft(W), se /= 100, Y /= 100, [ue(0), ue(8), ue(4), ie];
620
620
  }($);
621
621
  }
622
622
  }
@@ -630,7 +630,7 @@ var cp = { exports: {} };
630
630
  get hcl() {
631
631
  return this.overwriteGetter("hcl", function(e) {
632
632
  const [r, s, l, d] = rt(e), p = Math.sqrt(s * s + l * l);
633
- return [Math.round(1e4 * p) ? pt(Math.atan2(l, s) * nt) : NaN, p, r, d];
633
+ return [Math.round(1e4 * p) ? ft(Math.atan2(l, s) * nt) : NaN, p, r, d];
634
634
  }(this.rgb));
635
635
  }
636
636
  get lab() {
@@ -756,7 +756,7 @@ var cp = { exports: {} };
756
756
  if (typeof i == "number") return Ce;
757
757
  if (i instanceof bt) return Mi;
758
758
  if (i instanceof qo) return yr;
759
- if (i instanceof Ni) return Er;
759
+ if (i instanceof Ni) return Mr;
760
760
  if (i instanceof ji) return Xr;
761
761
  if (i instanceof Ui) return G;
762
762
  if (i instanceof pi) return xr;
@@ -776,7 +776,7 @@ var cp = { exports: {} };
776
776
  }
777
777
  return ir;
778
778
  }
779
- function Mr(i) {
779
+ function zr(i) {
780
780
  const e = typeof i;
781
781
  return i === null ? "" : e === "string" || e === "number" || e === "boolean" ? String(i) : i instanceof bt || i instanceof Ni || i instanceof ji || i instanceof Ui || i instanceof pi ? i.toString() : JSON.stringify(i);
782
782
  }
@@ -918,11 +918,11 @@ var cp = { exports: {} };
918
918
  throw new Kt(`Could not convert ${JSON.stringify(r)} to number.`);
919
919
  }
920
920
  case "formatted":
921
- return Ni.fromString(Mr(this.args[0].evaluate(e)));
921
+ return Ni.fromString(zr(this.args[0].evaluate(e)));
922
922
  case "resolvedImage":
923
- return pi.fromString(Mr(this.args[0].evaluate(e)));
923
+ return pi.fromString(zr(this.args[0].evaluate(e)));
924
924
  default:
925
- return Mr(this.args[0].evaluate(e));
925
+ return zr(this.args[0].evaluate(e));
926
926
  }
927
927
  }
928
928
  eachChild(e) {
@@ -1260,7 +1260,7 @@ var cp = { exports: {} };
1260
1260
  }
1261
1261
  return 0;
1262
1262
  }
1263
- class Fn {
1263
+ class Bn {
1264
1264
  constructor(e, r, s) {
1265
1265
  this.type = e, this.input = r, this.labels = [], this.outputs = [];
1266
1266
  for (const [l, d] of s) this.labels.push(l), this.outputs.push(d);
@@ -1281,7 +1281,7 @@ var cp = { exports: {} };
1281
1281
  if (!I) return null;
1282
1282
  d = d || I.type, l.push([f, I]);
1283
1283
  }
1284
- return new Fn(d, s, l);
1284
+ return new Bn(d, s, l);
1285
1285
  }
1286
1286
  evaluate(e) {
1287
1287
  const r = this.labels, s = this.outputs;
@@ -1609,7 +1609,7 @@ var cp = { exports: {} };
1609
1609
  }
1610
1610
  class io {
1611
1611
  constructor(e) {
1612
- this.type = Er, this.sections = e;
1612
+ this.type = Mr, this.sections = e;
1613
1613
  }
1614
1614
  static parse(e, r) {
1615
1615
  if (e.length < 2) return r.error("Expected at least one argument.");
@@ -1642,7 +1642,7 @@ var cp = { exports: {} };
1642
1642
  evaluate(e) {
1643
1643
  return new Ni(this.sections.map((r) => {
1644
1644
  const s = r.content.evaluate(e);
1645
- return ei(s) === xr ? new Zo("", s, null, null, null) : new Zo(Mr(s), null, r.scale ? r.scale.evaluate(e) : null, r.font ? r.font.evaluate(e).join(",") : null, r.textColor ? r.textColor.evaluate(e) : null);
1645
+ return ei(s) === xr ? new Zo("", s, null, null, null) : new Zo(zr(s), null, r.scale ? r.scale.evaluate(e) : null, r.font ? r.font.evaluate(e).join(",") : null, r.textColor ? r.textColor.evaluate(e) : null);
1646
1646
  }));
1647
1647
  }
1648
1648
  eachChild(e) {
@@ -1698,7 +1698,7 @@ var cp = { exports: {} };
1698
1698
  const r = (180 + i[0]) / 360, s = (180 - 180 / Math.PI * Math.log(Math.tan(Math.PI / 4 + i[1] * Math.PI / 360))) / 360, l = Math.pow(2, e.z);
1699
1699
  return [Math.round(r * l * vr), Math.round(s * l * vr)];
1700
1700
  }
1701
- function Bn(i, e) {
1701
+ function On(i, e) {
1702
1702
  const r = Math.pow(2, e.z);
1703
1703
  return [(l = (i[0] / vr + e.x) / r, 360 * l - 180), (s = (i[1] / vr + e.y) / r, 360 / Math.PI * Math.atan(Math.exp((180 - 360 * s) * Math.PI / 180)) - 90)];
1704
1704
  var s, l;
@@ -1721,7 +1721,7 @@ var cp = { exports: {} };
1721
1721
  for (const s of r) for (let l = 0; l < s.length - 1; ++l) if (ro(i, e, s[l], s[l + 1])) return !0;
1722
1722
  return !1;
1723
1723
  }
1724
- function On(i, e, r = !1) {
1724
+ function Vn(i, e, r = !1) {
1725
1725
  let s = !1;
1726
1726
  for (const f of e) for (let g = 0; g < f.length - 1; g++) {
1727
1727
  if (Fc(i, f[g], f[g + 1])) return r;
@@ -1731,11 +1731,11 @@ var cp = { exports: {} };
1731
1731
  return s;
1732
1732
  }
1733
1733
  function Oc(i, e) {
1734
- for (const r of e) if (On(i, r)) return !0;
1734
+ for (const r of e) if (Vn(i, r)) return !0;
1735
1735
  return !1;
1736
1736
  }
1737
1737
  function xl(i, e) {
1738
- for (const r of i) if (!On(r, e)) return !1;
1738
+ for (const r of i) if (!Vn(r, e)) return !1;
1739
1739
  for (let r = 0; r < i.length - 1; ++r) if (Bc(i[r], i[r + 1], e)) return !1;
1740
1740
  return !0;
1741
1741
  }
@@ -1829,7 +1829,7 @@ var cp = { exports: {} };
1829
1829
  if (s.type === "Polygon") {
1830
1830
  const f = Yo(s.coordinates, d, p), g = Sl(r.geometry(), l, d, p);
1831
1831
  if (!xs(l, d)) return !1;
1832
- for (const x of g) if (!On(x, f)) return !1;
1832
+ for (const x of g) if (!Vn(x, f)) return !1;
1833
1833
  }
1834
1834
  if (s.type === "MultiPolygon") {
1835
1835
  const f = bl(s.coordinates, d, p), g = Sl(r.geometry(), l, d, p);
@@ -1974,7 +1974,7 @@ var cp = { exports: {} };
1974
1974
  function so(i) {
1975
1975
  return i[1] - i[0] + 1;
1976
1976
  }
1977
- function zr(i, e) {
1977
+ function Dr(i, e) {
1978
1978
  return i[1] >= i[0] && i[1] < e;
1979
1979
  }
1980
1980
  function bs(i, e) {
@@ -1990,7 +1990,7 @@ var cp = { exports: {} };
1990
1990
  return [[i[0], i[0] + s], [i[0] + s + 1, i[1]]];
1991
1991
  }
1992
1992
  function ea(i, e) {
1993
- if (!zr(e, i.length)) return [1 / 0, 1 / 0, -1 / 0, -1 / 0];
1993
+ if (!Dr(e, i.length)) return [1 / 0, 1 / 0, -1 / 0, -1 / 0];
1994
1994
  const r = [1 / 0, 1 / 0, -1 / 0, -1 / 0];
1995
1995
  for (let s = e[0]; s <= e[1]; ++s) ut(r, i[s]);
1996
1996
  return r;
@@ -2017,7 +2017,7 @@ var cp = { exports: {} };
2017
2017
  return Math.min(d, p);
2018
2018
  }
2019
2019
  function ct(i, e, r, s, l) {
2020
- if (!zr(e, i.length) || !zr(s, r.length)) return 1 / 0;
2020
+ if (!Dr(e, i.length) || !Dr(s, r.length)) return 1 / 0;
2021
2021
  let d = 1 / 0;
2022
2022
  for (let p = e[0]; p < e[1]; ++p) {
2023
2023
  const f = i[p], g = i[p + 1];
@@ -2030,13 +2030,13 @@ var cp = { exports: {} };
2030
2030
  return d;
2031
2031
  }
2032
2032
  function na(i, e, r, s, l) {
2033
- if (!zr(e, i.length) || !zr(s, r.length)) return NaN;
2033
+ if (!Dr(e, i.length) || !Dr(s, r.length)) return NaN;
2034
2034
  let d = 1 / 0;
2035
2035
  for (let p = e[0]; p <= e[1]; ++p) for (let f = s[0]; f <= s[1]; ++f) if (d = Math.min(d, l.distance(i[p], r[f])), d === 0) return d;
2036
2036
  return d;
2037
2037
  }
2038
2038
  function Nt(i, e, r) {
2039
- if (On(i, e, !0)) return 0;
2039
+ if (Vn(i, e, !0)) return 0;
2040
2040
  let s = 1 / 0;
2041
2041
  for (const l of e) {
2042
2042
  const d = l[0], p = l[l.length - 1];
@@ -2047,8 +2047,8 @@ var cp = { exports: {} };
2047
2047
  return s;
2048
2048
  }
2049
2049
  function zt(i, e, r, s) {
2050
- if (!zr(e, i.length)) return NaN;
2051
- for (let d = e[0]; d <= e[1]; ++d) if (On(i[d], r, !0)) return 0;
2050
+ if (!Dr(e, i.length)) return NaN;
2051
+ for (let d = e[0]; d <= e[1]; ++d) if (Vn(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], f = i[d + 1];
@@ -2061,7 +2061,7 @@ var cp = { exports: {} };
2061
2061
  return l;
2062
2062
  }
2063
2063
  function ws(i, e) {
2064
- for (const r of i) for (const s of r) if (On(s, e, !0)) return !0;
2064
+ for (const r of i) for (const s of r) if (Vn(s, e, !0)) return !0;
2065
2065
  return !1;
2066
2066
  }
2067
2067
  function zl(i, e, r, s = 1 / 0) {
@@ -2100,7 +2100,7 @@ var cp = { exports: {} };
2100
2100
  if (g[0] >= d) continue;
2101
2101
  const x = g[1], w = e ? 50 : 100;
2102
2102
  if (so(x) <= w) {
2103
- if (!zr(x, i.length)) return NaN;
2103
+ if (!Dr(x, i.length)) return NaN;
2104
2104
  if (e) {
2105
2105
  const I = zt(i, x, r, s);
2106
2106
  if (isNaN(I) || I === 0) return I;
@@ -2125,7 +2125,7 @@ var cp = { exports: {} };
2125
2125
  if (g[0] >= p) continue;
2126
2126
  const x = g[1], w = g[2], I = e ? 50 : 100, C = s ? 50 : 100;
2127
2127
  if (so(x) <= I && so(w) <= C) {
2128
- if (!zr(x, i.length) && zr(w, r.length)) return NaN;
2128
+ if (!Dr(x, i.length) && Dr(w, r.length)) return NaN;
2129
2129
  let D;
2130
2130
  if (e && s) D = ct(i, x, r, w, l), p = Math.min(p, D);
2131
2131
  else if (e && !s) {
@@ -2162,7 +2162,7 @@ var cp = { exports: {} };
2162
2162
  evaluate(e) {
2163
2163
  if (e.geometry() != null && e.canonicalID() != null) {
2164
2164
  if (e.geometryType() === "Point") return function(r, s) {
2165
- const l = r.geometry(), d = l.flat().map((g) => Bn([g.x, g.y], r.canonical));
2165
+ const l = r.geometry(), d = l.flat().map((g) => On([g.x, g.y], r.canonical));
2166
2166
  if (l.length === 0) return NaN;
2167
2167
  const p = new Qo(d[0][1]);
2168
2168
  let f = 1 / 0;
@@ -2182,7 +2182,7 @@ var cp = { exports: {} };
2182
2182
  return f;
2183
2183
  }(e, this.geometries);
2184
2184
  if (e.geometryType() === "LineString") return function(r, s) {
2185
- const l = r.geometry(), d = l.flat().map((g) => Bn([g.x, g.y], r.canonical));
2185
+ const l = r.geometry(), d = l.flat().map((g) => On([g.x, g.y], r.canonical));
2186
2186
  if (l.length === 0) return NaN;
2187
2187
  const p = new Qo(d[0][1]);
2188
2188
  let f = 1 / 0;
@@ -2204,7 +2204,7 @@ var cp = { exports: {} };
2204
2204
  if (e.geometryType() === "Polygon") return function(r, s) {
2205
2205
  const l = r.geometry();
2206
2206
  if (l.length === 0 || l[0].length === 0) return NaN;
2207
- const d = no(l, 0).map((g) => g.map((x) => x.map((w) => Bn([w.x, w.y], r.canonical)))), p = new Qo(d[0][0][0][1]);
2207
+ const d = no(l, 0).map((g) => g.map((x) => x.map((w) => On([w.x, w.y], r.canonical)))), p = new Qo(d[0][0][0][1]);
2208
2208
  let f = 1 / 0;
2209
2209
  for (const g of s) for (const x of d) {
2210
2210
  switch (g.type) {
@@ -2230,7 +2230,7 @@ var cp = { exports: {} };
2230
2230
  return !0;
2231
2231
  }
2232
2232
  }
2233
- const yn = { "==": gl, "!=": Dc, ">": _l, "<": Lc, ">=": Rc, "<=": yl, array: Ji, at: Ho, boolean: Ji, case: Ys, coalesce: eo, collator: to, format: io, image: Xo, in: ms, "index-of": Js, interpolate: qi, "interpolate-hcl": qi, "interpolate-lab": qi, length: Jo, let: xt, literal: mn, match: Ks, number: Ji, "number-format": Wo, object: Ji, slice: Qs, step: Fn, string: Ji, "to-boolean": Jr, "to-color": Jr, "to-number": Jr, "to-string": Jr, var: Xs, within: _n, distance: Qr };
2233
+ const yn = { "==": gl, "!=": Dc, ">": _l, "<": Lc, ">=": Rc, "<=": yl, array: Ji, at: Ho, boolean: Ji, case: Ys, coalesce: eo, collator: to, format: io, image: Xo, in: ms, "index-of": Js, interpolate: qi, "interpolate-hcl": qi, "interpolate-lab": qi, length: Jo, let: xt, literal: mn, match: Ks, number: Ji, "number-format": Wo, object: Ji, slice: Qs, step: Bn, string: Ji, "to-boolean": Jr, "to-color": Jr, "to-number": Jr, "to-string": Jr, var: Xs, within: _n, distance: Qr };
2234
2234
  class Zi {
2235
2235
  constructor(e, r, s, l) {
2236
2236
  this.name = e, this.type = r, this._evaluate = s, this.args = l;
@@ -2339,7 +2339,7 @@ var cp = { exports: {} };
2339
2339
  function Dl(i) {
2340
2340
  return { result: "success", value: i };
2341
2341
  }
2342
- function Vn(i) {
2342
+ function Nn(i) {
2343
2343
  return { result: "error", value: i };
2344
2344
  }
2345
2345
  function vn(i) {
@@ -2348,10 +2348,10 @@ var cp = { exports: {} };
2348
2348
  function ca(i) {
2349
2349
  return !!i.expression && i.expression.parameters.indexOf("zoom") > -1;
2350
2350
  }
2351
- function Nn(i) {
2351
+ function jn(i) {
2352
2352
  return !!i.expression && i.expression.interpolated;
2353
2353
  }
2354
- function ft(i) {
2354
+ function mt(i) {
2355
2355
  return i instanceof Number ? "number" : i instanceof String ? "string" : i instanceof Boolean ? "boolean" : Array.isArray(i) ? "array" : i === null ? "null" : typeof i;
2356
2356
  }
2357
2357
  function Ts(i) {
@@ -2361,7 +2361,7 @@ var cp = { exports: {} };
2361
2361
  return i;
2362
2362
  }
2363
2363
  function Rl(i, e) {
2364
- const r = e.type === "color", s = i.stops && typeof i.stops[0][0] == "object", l = s || !(s || i.property !== void 0), d = i.type || (Nn(e) ? "exponential" : "interval");
2364
+ const r = e.type === "color", s = i.stops && typeof i.stops[0][0] == "object", l = s || !(s || i.property !== void 0), d = i.type || (jn(e) ? "exponential" : "interval");
2365
2365
  if (r || e.type === "padding") {
2366
2366
  const w = r ? bt.parse : ji.parse;
2367
2367
  (i = gr({}, i)).stops && (i.stops = i.stops.map((I) => [I[0], w(I[1])])), i.default = w(i.default ? i.default : e.default);
@@ -2406,7 +2406,7 @@ var cp = { exports: {} };
2406
2406
  return bn(typeof r === l ? s[r] : void 0, i.default, e.default);
2407
2407
  }
2408
2408
  function mo(i, e, r) {
2409
- if (ft(r) !== "number") return bn(i.default, e.default);
2409
+ if (mt(r) !== "number") return bn(i.default, e.default);
2410
2410
  const s = i.stops.length;
2411
2411
  if (s === 1 || r <= i.stops[0][0]) return i.stops[0][1];
2412
2412
  if (r >= i.stops[s - 1][0]) return i.stops[s - 1][1];
@@ -2415,7 +2415,7 @@ var cp = { exports: {} };
2415
2415
  }
2416
2416
  function ha(i, e, r) {
2417
2417
  const s = i.base !== void 0 ? i.base : 1;
2418
- if (ft(r) !== "number") return bn(i.default, e.default);
2418
+ if (mt(r) !== "number") return bn(i.default, e.default);
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];
@@ -2443,7 +2443,7 @@ var cp = { exports: {} };
2443
2443
  r = ji.parse(r);
2444
2444
  break;
2445
2445
  default:
2446
- ft(r) === e.type || e.type === "enum" && e.values[r] || (r = void 0);
2446
+ mt(r) === e.type || e.type === "enum" && e.values[r] || (r = void 0);
2447
2447
  }
2448
2448
  return bn(r, i.default, e.default);
2449
2449
  }
@@ -2503,7 +2503,7 @@ var cp = { exports: {} };
2503
2503
  }]] }, "!": [Je, [Je], (i, [e]) => !e.evaluate(i)], "is-supported-script": [Je, [ot], (i, [e]) => {
2504
2504
  const r = i.globals && i.globals.isSupportedScript;
2505
2505
  return !r || r(e.evaluate(i));
2506
- }], upcase: [ot, [ot], (i, [e]) => e.evaluate(i).toUpperCase()], downcase: [ot, [ot], (i, [e]) => e.evaluate(i).toLowerCase()], concat: [ot, xn(it), (i, e) => e.map((r) => Mr(r.evaluate(i))).join("")], "resolved-locale": [ot, [yr], (i, [e]) => e.evaluate(i).resolvedLocale()] });
2506
+ }], upcase: [ot, [ot], (i, [e]) => e.evaluate(i).toUpperCase()], downcase: [ot, [ot], (i, [e]) => e.evaluate(i).toLowerCase()], concat: [ot, xn(it), (i, e) => e.map((r) => zr(r.evaluate(i))).join("")], "resolved-locale": [ot, [yr], (i, [e]) => e.evaluate(i).resolvedLocale()] });
2507
2507
  class go {
2508
2508
  constructor(e, r) {
2509
2509
  var s;
@@ -2529,10 +2529,10 @@ var cp = { exports: {} };
2529
2529
  }
2530
2530
  function wn(i, e) {
2531
2531
  const r = new Kr(yn, ho, [], e ? function(l) {
2532
- const d = { color: Mi, string: ot, number: Ce, enum: ot, boolean: Je, formatted: Er, padding: Xr, resolvedImage: xr, variableAnchorOffsetCollection: G };
2532
+ const d = { color: Mi, string: ot, number: Ce, enum: ot, boolean: Je, formatted: Mr, padding: Xr, resolvedImage: xr, variableAnchorOffsetCollection: G };
2533
2533
  return l.type === "array" ? M(d[l.value] || it, 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
- return s ? Dl(new go(s, e)) : Vn(r.errors);
2535
+ return s ? Dl(new go(s, e)) : Nn(r.errors);
2536
2536
  }
2537
2537
  class da {
2538
2538
  constructor(e, r) {
@@ -2563,11 +2563,11 @@ var cp = { exports: {} };
2563
2563
  const r = wn(i, e);
2564
2564
  if (r.result === "error") return r;
2565
2565
  const s = r.value.expression, l = uo(s);
2566
- if (!l && !vn(e)) return Vn([new Ii("", "data expressions not supported")]);
2566
+ if (!l && !vn(e)) return Nn([new Ii("", "data expressions not supported")]);
2567
2567
  const d = po(s, ["zoom"]);
2568
- if (!d && !ca(e)) return Vn([new Ii("", "zoom expressions not supported")]);
2568
+ if (!d && !ca(e)) return Nn([new Ii("", "zoom expressions not supported")]);
2569
2569
  const p = yo(s);
2570
- return p || d ? p instanceof Ii ? Vn([p]) : p instanceof qi && !Nn(e) ? Vn([new Ii("", '"interpolate" expressions cannot be used with this property')]) : Dl(p ? new pa(l ? "camera" : "composite", r.value, p.labels, p instanceof qi ? p.interpolation : void 0) : new da(l ? "constant" : "source", r.value)) : Vn([new Ii("", '"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.')]);
2570
+ return p || d ? p instanceof Ii ? Nn([p]) : p instanceof qi && !jn(e) ? Nn([new Ii("", '"interpolate" expressions cannot be used with this property')]) : Dl(p ? new pa(l ? "camera" : "composite", r.value, p.labels, p instanceof qi ? p.interpolation : void 0) : new da(l ? "constant" : "source", r.value)) : Nn([new Ii("", '"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.')]);
2571
2571
  }
2572
2572
  class _o {
2573
2573
  constructor(e, r) {
@@ -2585,13 +2585,13 @@ var cp = { exports: {} };
2585
2585
  if (i instanceof xt) e = yo(i.result);
2586
2586
  else if (i instanceof eo) {
2587
2587
  for (const r of i.args) if (e = yo(r), e) break;
2588
- } else (i instanceof Fn || i instanceof qi) && i.input instanceof Zi && i.input.name === "zoom" && (e = i);
2588
+ } else (i instanceof Bn || i instanceof qi) && i.input instanceof Zi && i.input.name === "zoom" && (e = i);
2589
2589
  return e instanceof Ii || i.eachChild((r) => {
2590
2590
  const s = yo(r);
2591
2591
  s instanceof Ii ? e = s : !e && s ? e = new Ii("", '"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.') : e && s && e !== s && (e = new Ii("", 'Only one zoom-based "step" or "interpolate" subexpression may be used in an expression.'));
2592
2592
  }), e;
2593
2593
  }
2594
- function jn(i) {
2594
+ function Un(i) {
2595
2595
  if (i === !0 || i === !1) return !0;
2596
2596
  if (!Array.isArray(i) || i.length === 0) return !1;
2597
2597
  switch (i[0]) {
@@ -2612,7 +2612,7 @@ var cp = { exports: {} };
2612
2612
  return i.length !== 3 || Array.isArray(i[1]) || Array.isArray(i[2]);
2613
2613
  case "any":
2614
2614
  case "all":
2615
- for (const e of i.slice(1)) if (!jn(e) && typeof e != "boolean") return !1;
2615
+ for (const e of i.slice(1)) if (!Un(e) && typeof e != "boolean") return !1;
2616
2616
  return !0;
2617
2617
  default:
2618
2618
  return !0;
@@ -2621,7 +2621,7 @@ var cp = { exports: {} };
2621
2621
  const xo = { type: "boolean", default: !1, transition: !1, "property-type": "data-driven", expression: { interpolated: !1, parameters: ["zoom", "feature"] } };
2622
2622
  function Pi(i) {
2623
2623
  if (i == null) return { filter: () => !0, needGeometry: !1 };
2624
- jn(i) || (i = vo(i));
2624
+ Un(i) || (i = vo(i));
2625
2625
  const e = wn(i, xo);
2626
2626
  if (e.result === "error") throw new Error(e.value.map((r) => `${r.key}: ${r.message}`).join(", "));
2627
2627
  return { filter: (r, s, l) => e.value.evaluate(r, s, {}, l), needGeometry: fa(i) };
@@ -2638,7 +2638,7 @@ var cp = { exports: {} };
2638
2638
  function vo(i) {
2639
2639
  if (!i) return !0;
2640
2640
  const e = i[0];
2641
- return i.length <= 1 ? e !== "any" : e === "==" ? ma(i[1], i[2], "==") : e === "!=" ? $n(ma(i[1], i[2], "==")) : e === "<" || e === ">" || e === "<=" || e === ">=" ? ma(i[1], i[2], e) : e === "any" ? (r = i.slice(1), ["any"].concat(r.map(vo))) : e === "all" ? ["all"].concat(i.slice(1).map(vo)) : e === "none" ? ["all"].concat(i.slice(1).map(vo).map($n)) : e === "in" ? Un(i[1], i.slice(2)) : e === "!in" ? $n(Un(i[1], i.slice(2))) : e === "has" ? ga(i[1]) : e !== "!has" || $n(ga(i[1]));
2641
+ return i.length <= 1 ? e !== "any" : e === "==" ? ma(i[1], i[2], "==") : e === "!=" ? qn(ma(i[1], i[2], "==")) : e === "<" || e === ">" || e === "<=" || e === ">=" ? ma(i[1], i[2], e) : e === "any" ? (r = i.slice(1), ["any"].concat(r.map(vo))) : e === "all" ? ["all"].concat(i.slice(1).map(vo)) : e === "none" ? ["all"].concat(i.slice(1).map(vo).map(qn)) : e === "in" ? $n(i[1], i.slice(2)) : e === "!in" ? qn($n(i[1], i.slice(2))) : e === "has" ? ga(i[1]) : e !== "!has" || qn(ga(i[1]));
2642
2642
  var r;
2643
2643
  }
2644
2644
  function ma(i, e, r) {
@@ -2651,7 +2651,7 @@ var cp = { exports: {} };
2651
2651
  return [`filter-${r}`, i, e];
2652
2652
  }
2653
2653
  }
2654
- function Un(i, e) {
2654
+ function $n(i, e) {
2655
2655
  if (e.length === 0) return !1;
2656
2656
  switch (i) {
2657
2657
  case "$type":
@@ -2672,7 +2672,7 @@ var cp = { exports: {} };
2672
2672
  return ["filter-has", i];
2673
2673
  }
2674
2674
  }
2675
- function $n(i) {
2675
+ function qn(i) {
2676
2676
  return ["!", i];
2677
2677
  }
2678
2678
  function _a(i) {
@@ -2712,7 +2712,7 @@ var cp = { exports: {} };
2712
2712
  function zi(i) {
2713
2713
  const e = i.key, r = i.value, s = i.valueSpec || {}, l = i.objectElementValidators || {}, d = i.style, p = i.styleSpec, f = i.validateSpec;
2714
2714
  let g = [];
2715
- const x = ft(r);
2715
+ const x = mt(r);
2716
2716
  if (x !== "object") return [new Te(e, r, `object expected, ${x} found`)];
2717
2717
  for (const w in r) {
2718
2718
  const I = w.split(".")[0], C = s[I] || s["*"];
@@ -2734,39 +2734,39 @@ var cp = { exports: {} };
2734
2734
  }
2735
2735
  function bo(i) {
2736
2736
  const e = i.value, r = i.valueSpec, s = i.style, l = i.styleSpec, d = i.key, p = i.arrayElementValidator || i.validateSpec;
2737
- if (ft(e) !== "array") return [new Te(d, e, `array expected, ${ft(e)} found`)];
2737
+ if (mt(e) !== "array") return [new Te(d, e, `array expected, ${mt(e)} found`)];
2738
2738
  if (r.length && e.length !== r.length) return [new Te(d, e, `array length ${r.length} expected, length ${e.length} found`)];
2739
2739
  if (r["min-length"] && e.length < r["min-length"]) return [new Te(d, e, `array length at least ${r["min-length"]} expected, length ${e.length} found`)];
2740
2740
  let f = { type: r.value, values: r.values };
2741
- l.$version < 7 && (f.function = r.function), ft(r.value) === "object" && (f = r.value);
2741
+ l.$version < 7 && (f.function = r.function), mt(r.value) === "object" && (f = r.value);
2742
2742
  let g = [];
2743
2743
  for (let x = 0; x < e.length; x++) g = g.concat(p({ array: e, arrayIndex: x, value: e[x], valueSpec: f, validateSpec: i.validateSpec, style: s, styleSpec: l, key: `${d}[${x}]` }));
2744
2744
  return g;
2745
2745
  }
2746
2746
  function As(i) {
2747
2747
  const e = i.key, r = i.value, s = i.valueSpec;
2748
- let l = ft(r);
2748
+ let l = mt(r);
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 xa(i) {
2752
2752
  const e = i.valueSpec, r = Dt(i.value.type);
2753
2753
  let s, l, d, p = {};
2754
- const f = r !== "categorical" && i.value.property === void 0, g = !f, x = ft(i.value.stops) === "array" && ft(i.value.stops[0]) === "array" && ft(i.value.stops[0][0]) === "object", w = zi({ key: i.key, value: i.value, valueSpec: i.styleSpec.function, validateSpec: i.validateSpec, style: i.style, styleSpec: i.styleSpec, objectElementValidators: { stops: function(D) {
2754
+ const f = r !== "categorical" && i.value.property === void 0, g = !f, x = mt(i.value.stops) === "array" && mt(i.value.stops[0]) === "array" && mt(i.value.stops[0][0]) === "object", w = zi({ key: i.key, value: i.value, valueSpec: i.styleSpec.function, validateSpec: i.validateSpec, style: i.style, styleSpec: i.styleSpec, objectElementValidators: { stops: function(D) {
2755
2755
  if (r === "identity") return [new Te(D.key, D.value, 'identity function may not have a "stops" property')];
2756
2756
  let R = [];
2757
2757
  const B = D.value;
2758
- return R = R.concat(bo({ key: D.key, value: B, valueSpec: D.valueSpec, validateSpec: D.validateSpec, style: D.style, styleSpec: D.styleSpec, arrayElementValidator: I })), ft(B) === "array" && B.length === 0 && R.push(new Te(D.key, B, "array must have at least one stop")), R;
2758
+ return R = R.concat(bo({ key: D.key, value: B, valueSpec: D.valueSpec, validateSpec: D.validateSpec, style: D.style, styleSpec: D.styleSpec, arrayElementValidator: I })), mt(B) === "array" && B.length === 0 && R.push(new Te(D.key, B, "array must have at least one stop")), R;
2759
2759
  }, default: function(D) {
2760
2760
  return D.validateSpec({ key: D.key, value: D.value, valueSpec: e, validateSpec: D.validateSpec, style: D.style, styleSpec: D.styleSpec });
2761
2761
  } } });
2762
- return r === "identity" && f && w.push(new Te(i.key, i.value, 'missing required property "property"')), r === "identity" || i.value.stops || w.push(new Te(i.key, i.value, 'missing required property "stops"')), r === "exponential" && i.valueSpec.expression && !Nn(i.valueSpec) && w.push(new Te(i.key, i.value, "exponential functions not supported")), i.styleSpec.$version >= 8 && (g && !vn(i.valueSpec) ? w.push(new Te(i.key, i.value, "property functions not supported")) : f && !ca(i.valueSpec) && w.push(new Te(i.key, i.value, "zoom functions not supported"))), r !== "categorical" && !x || i.value.property !== void 0 || w.push(new Te(i.key, i.value, '"property" property is required')), w;
2762
+ return r === "identity" && f && w.push(new Te(i.key, i.value, 'missing required property "property"')), r === "identity" || i.value.stops || w.push(new Te(i.key, i.value, 'missing required property "stops"')), r === "exponential" && i.valueSpec.expression && !jn(i.valueSpec) && w.push(new Te(i.key, i.value, "exponential functions not supported")), i.styleSpec.$version >= 8 && (g && !vn(i.valueSpec) ? w.push(new Te(i.key, i.value, "property functions not supported")) : f && !ca(i.valueSpec) && w.push(new Te(i.key, i.value, "zoom functions not supported"))), r !== "categorical" && !x || i.value.property !== void 0 || w.push(new Te(i.key, i.value, '"property" property is required')), w;
2763
2763
  function I(D) {
2764
2764
  let R = [];
2765
2765
  const B = D.value, $ = D.key;
2766
- if (ft(B) !== "array") return [new Te($, B, `array expected, ${ft(B)} found`)];
2766
+ if (mt(B) !== "array") return [new Te($, B, `array expected, ${mt(B)} found`)];
2767
2767
  if (B.length !== 2) return [new Te($, B, `array length 2 expected, length ${B.length} found`)];
2768
2768
  if (x) {
2769
- if (ft(B[0]) !== "object") return [new Te($, B, `object expected, ${ft(B[0])} found`)];
2769
+ if (mt(B[0]) !== "object") return [new Te($, B, `object expected, ${mt(B[0])} found`)];
2770
2770
  if (B[0].zoom === void 0) return [new Te($, B, "object stop key must have zoom")];
2771
2771
  if (B[0].value === void 0) return [new Te($, B, "object stop key must have value")];
2772
2772
  if (d && d > Dt(B[0].zoom)) return [new Te($, B[0].zoom, "stop zoom values must appear in ascending order")];
@@ -2775,7 +2775,7 @@ var cp = { exports: {} };
2775
2775
  return Is(Sn(B[1])) ? R.concat([new Te(`${$}[1]`, B[1], "expressions are not allowed in function stops.")]) : R.concat(D.validateSpec({ key: `${$}[1]`, value: B[1], valueSpec: e, validateSpec: D.validateSpec, style: D.style, styleSpec: D.styleSpec }));
2776
2776
  }
2777
2777
  function C(D, R) {
2778
- const B = ft(D.value), $ = Dt(D.value), W = D.value !== null ? D.value : R;
2778
+ const B = mt(D.value), $ = Dt(D.value), W = D.value !== null ? D.value : R;
2779
2779
  if (s) {
2780
2780
  if (B !== s) return [new Te(D.key, W, `${B} stop domain type must match previous stop domain type ${s}`)];
2781
2781
  } else s = B;
@@ -2805,11 +2805,11 @@ var cp = { exports: {} };
2805
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 ks(i) {
2808
- return jn(Sn(i.value)) ? Tn(gr({}, i, { expressionContext: "filter", valueSpec: { value: "boolean" } })) : Es(i);
2808
+ return Un(Sn(i.value)) ? Tn(gr({}, i, { expressionContext: "filter", valueSpec: { value: "boolean" } })) : Es(i);
2809
2809
  }
2810
2810
  function Es(i) {
2811
2811
  const e = i.value, r = i.key;
2812
- if (ft(e) !== "array") return [new Te(r, e, `array expected, ${ft(e)} found`)];
2812
+ if (mt(e) !== "array") return [new Te(r, e, `array expected, ${mt(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")];
@@ -2824,8 +2824,8 @@ var cp = { exports: {} };
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
- e.length >= 2 && (l = ft(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 = ft(e[p]), Dt(e[1]) === "$type" ? d = d.concat(Cs({ 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`));
2827
+ e.length >= 2 && (l = mt(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 = mt(e[p]), Dt(e[1]) === "$type" ? d = d.concat(Cs({ 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":
@@ -2834,7 +2834,7 @@ var cp = { exports: {} };
2834
2834
  break;
2835
2835
  case "has":
2836
2836
  case "!has":
2837
- l = ft(e[1]), e.length !== 2 ? d.push(new Te(r, e, `filter array for "${e[0]}" operator must have 2 elements`)) : l !== "string" && d.push(new Te(`${r}[1]`, e[1], `string expected, ${l} found`));
2837
+ l = mt(e[1]), e.length !== 2 ? d.push(new Te(r, e, `filter array for "${e[0]}" operator must have 2 elements`)) : l !== "string" && d.push(new Te(`${r}[1]`, e[1], `string expected, ${l} found`));
2838
2838
  }
2839
2839
  return d;
2840
2840
  }
@@ -2846,7 +2846,7 @@ var cp = { exports: {} };
2846
2846
  const w = i.valueSpec || g[f];
2847
2847
  if (!w) return [new Te(r, p, `unknown property "${f}"`)];
2848
2848
  let I;
2849
- if (ft(p) === "string" && vn(w) && !w.tokens && (I = /^{([^}]+)}$/.exec(p))) return [new Te(r, p, `"${f}" does not support interpolation syntax
2849
+ if (mt(p) === "string" && vn(w) && !w.tokens && (I = /^{([^}]+)}$/.exec(p))) return [new Te(r, p, `"${f}" does not support interpolation syntax
2850
2850
  Use an identity property function instead: \`{ "type": "identity", "property": ${JSON.stringify(I[1])} }\`.`)];
2851
2851
  const C = [];
2852
2852
  return i.layerType === "symbol" && (f === "text-field" && l && !l.glyphs && C.push(new Te(r, p, 'use of "text-field" requires a style "glyphs" property')), f === "text-font" && Ts(Sn(p)) && Dt(p.type) === "identity" && C.push(new Te(r, p, '"text-font" does not support identity functions'))), C.concat(s({ key: i.key, value: p, valueSpec: w, style: l, styleSpec: d, expressionContext: "property", propertyType: e, propertyKey: f }));
@@ -2883,15 +2883,15 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
2883
2883
  } else e.push(new Te(s, r, 'missing required property "source"'));
2884
2884
  return e = e.concat(zi({ 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: ks, layout: (g) => zi({ layer: r, key: g.key, value: g.value, style: g.style, styleSpec: g.styleSpec, validateSpec: g.validateSpec, objectElementValidators: { "*": (x) => wa(gr({ layerType: p }, x)) } }), paint: (g) => zi({ layer: r, key: g.key, value: g.value, style: g.style, styleSpec: g.styleSpec, validateSpec: g.validateSpec, objectElementValidators: { "*": (x) => ba(gr({ layerType: p }, x)) } }) } })), e;
2885
2885
  }
2886
- function Dr(i) {
2887
- const e = i.value, r = i.key, s = ft(e);
2886
+ function Lr(i) {
2887
+ const e = i.value, r = i.key, s = mt(e);
2888
2888
  return s !== "string" ? [new Te(r, e, `string expected, ${s} found`)] : [];
2889
2889
  }
2890
2890
  const Ta = { promoteId: function({ key: i, value: e }) {
2891
- if (ft(e) === "string") return Dr({ key: i, value: e });
2891
+ if (mt(e) === "string") return Lr({ key: i, value: e });
2892
2892
  {
2893
2893
  const r = [];
2894
- for (const s in e) r.push(...Dr({ key: `${i}.${s}`, value: e[s] }));
2894
+ for (const s in e) r.push(...Lr({ key: `${i}.${s}`, value: e[s] }));
2895
2895
  return r;
2896
2896
  }
2897
2897
  } };
@@ -2909,7 +2909,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
2909
2909
  var x;
2910
2910
  const w = (x = g.sourceName) !== null && x !== void 0 ? x : "", I = g.value, C = g.styleSpec, D = C.source_raster_dem, R = g.style;
2911
2911
  let B = [];
2912
- const $ = ft(I);
2912
+ const $ = mt(I);
2913
2913
  if (I === void 0) return B;
2914
2914
  if ($ !== "object") return B.push(new Te("source_raster_dem", I, `object expected, ${$} found`)), B;
2915
2915
  const W = Dt(I.encoding) === "custom", se = ["redFactor", "greenFactor", "blueFactor", "baseShift"], Y = g.value.encoding ? `"${g.value.encoding}"` : "Default";
@@ -2935,7 +2935,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
2935
2935
  function Ia(i) {
2936
2936
  const e = i.value, r = i.styleSpec, s = r.light, l = i.style;
2937
2937
  let d = [];
2938
- const p = ft(e);
2938
+ const p = mt(e);
2939
2939
  if (e === void 0) return d;
2940
2940
  if (p !== "object") return d = d.concat([new Te("light", e, `object expected, ${p} found`)]), d;
2941
2941
  for (const f in e) {
@@ -2945,7 +2945,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
2945
2945
  return d;
2946
2946
  }
2947
2947
  function Vl(i) {
2948
- const e = i.value, r = i.styleSpec, s = r.sky, l = i.style, d = ft(e);
2948
+ const e = i.value, r = i.styleSpec, s = r.sky, l = i.style, d = mt(e);
2949
2949
  if (e === void 0) return [];
2950
2950
  if (d !== "object") return [new Te("sky", e, `object expected, ${d} found`)];
2951
2951
  let p = [];
@@ -2955,7 +2955,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
2955
2955
  function Pa(i) {
2956
2956
  const e = i.value, r = i.styleSpec, s = r.terrain, l = i.style;
2957
2957
  let d = [];
2958
- const p = ft(e);
2958
+ const p = mt(e);
2959
2959
  if (e === void 0) return d;
2960
2960
  if (p !== "object") return d = d.concat([new Te("terrain", e, `object expected, ${p} found`)]), d;
2961
2961
  for (const f in e) d = d.concat(s[f] ? i.validateSpec({ key: f, value: e[f], valueSpec: s[f], validateSpec: i.validateSpec, style: l, styleSpec: r }) : [new Te(f, e[f], `unknown property "${f}"`)]);
@@ -2969,28 +2969,28 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
2969
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(zi({ 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
- return Dr({ key: s, value: r });
2972
+ return Lr({ key: s, value: r });
2973
2973
  }
2974
2974
  const Ca = { "*": () => [], array: bo, boolean: function(i) {
2975
- const e = i.value, r = i.key, s = ft(e);
2975
+ const e = i.value, r = i.key, s = mt(e);
2976
2976
  return s !== "boolean" ? [new Te(r, e, `boolean expected, ${s} found`)] : [];
2977
2977
  }, number: As, color: function(i) {
2978
- const e = i.key, r = i.value, s = ft(r);
2978
+ const e = i.key, r = i.value, s = mt(r);
2979
2979
  return s !== "string" ? [new Te(e, r, `color expected, ${s} found`)] : bt.parse(String(r)) ? [] : [new Te(e, r, `color expected, "${r}" found`)];
2980
2980
  }, constants: Bl, enum: Cs, filter: ks, function: xa, layer: Sa, object: zi, source: Ol, light: Ia, sky: Vl, terrain: Pa, projection: function(i) {
2981
- const e = i.value, r = i.styleSpec, s = r.projection, l = i.style, d = ft(e);
2981
+ const e = i.value, r = i.styleSpec, s = r.projection, l = i.style, d = mt(e);
2982
2982
  if (e === void 0) return [];
2983
2983
  if (d !== "object") return [new Te("projection", e, `object expected, ${d} found`)];
2984
2984
  let p = [];
2985
2985
  for (const f in e) p = p.concat(s[f] ? i.validateSpec({ key: f, value: e[f], valueSpec: s[f], style: l, styleSpec: r }) : [new Te(f, e[f], `unknown property "${f}"`)]);
2986
2986
  return p;
2987
- }, string: Dr, formatted: function(i) {
2988
- return Dr(i).length === 0 ? [] : Tn(i);
2987
+ }, string: Lr, formatted: function(i) {
2988
+ return Lr(i).length === 0 ? [] : Tn(i);
2989
2989
  }, resolvedImage: function(i) {
2990
- return Dr(i).length === 0 ? [] : Tn(i);
2990
+ return Lr(i).length === 0 ? [] : Tn(i);
2991
2991
  }, padding: function(i) {
2992
2992
  const e = i.key, r = i.value;
2993
- if (ft(r) === "array") {
2993
+ if (mt(r) === "array") {
2994
2994
  if (r.length < 1 || r.length > 4) return [new Te(e, r, `padding requires 1 to 4 values; ${r.length} values found`)];
2995
2995
  const s = { type: "number" };
2996
2996
  let l = [];
@@ -2999,7 +2999,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
2999
2999
  }
3000
3000
  return As({ key: e, value: r, valueSpec: {} });
3001
3001
  }, variableAnchorOffsetCollection: function(i) {
3002
- const e = i.key, r = i.value, s = ft(r), l = i.styleSpec;
3002
+ const e = i.key, r = i.value, s = mt(r), l = i.styleSpec;
3003
3003
  if (s !== "array" || r.length < 1 || r.length % 2 != 0) return [new Te(e, r, "variableAnchorOffsetCollection requires a non-empty array of even length")];
3004
3004
  let d = [];
3005
3005
  for (let p = 0; p < r.length; p += 2) d = d.concat(Cs({ key: `${e}[${p}]`, value: r[p], valueSpec: l.layout_symbol["text-anchor"] })), d = d.concat(bo({ key: `${e}[${p + 1}]`, value: r[p + 1], valueSpec: { length: 2, value: "number" }, validateSpec: i.validateSpec, style: i.style, styleSpec: l }));
@@ -3010,7 +3010,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
3010
3010
  return i.validateSpec = Ms, r.expression && Ts(Dt(e)) ? xa(i) : r.expression && Is(Sn(e)) ? Tn(i) : r.type && Ca[r.type] ? Ca[r.type](i) : zi(gr({}, i, { valueSpec: r.type ? s[r.type] : r }));
3011
3011
  }
3012
3012
  function Nl(i) {
3013
- const e = i.value, r = i.key, s = Dr(i);
3013
+ const e = i.value, r = i.key, s = Lr(i);
3014
3014
  return s.length || (e.indexOf("{fontstack}") === -1 && s.push(new Te(r, e, '"glyphs" url must include a "{fontstack}" token')), e.indexOf("{range}") === -1 && s.push(new Te(r, e, '"glyphs" url must include a "{range}" token'))), s;
3015
3015
  }
3016
3016
  function Ki(i, e = he) {
@@ -3031,13 +3031,13 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
3031
3031
  };
3032
3032
  }
3033
3033
  Ki.source = nr(rr(Ol)), Ki.sprite = nr(rr(Aa)), Ki.glyphs = nr(rr(Nl)), Ki.light = nr(rr(Ia)), Ki.sky = nr(rr(Vl)), Ki.terrain = nr(rr(Pa)), Ki.layer = nr(rr(Sa)), Ki.filter = nr(rr(ks)), Ki.paintProperty = nr(rr(ba)), Ki.layoutProperty = nr(rr(wa));
3034
- const Lr = Ki, Zc = Lr.light, Ea = Lr.sky, Gc = Lr.paintProperty, Hc = Lr.layoutProperty;
3034
+ const Rr = Ki, Zc = Rr.light, Ea = Rr.sky, Gc = Rr.paintProperty, Hc = Rr.layoutProperty;
3035
3035
  function Ma(i, e) {
3036
3036
  let r = !1;
3037
3037
  if (e && e.length) for (const s of e) i.fire(new Gr(new Error(s.message))), r = !0;
3038
3038
  return r;
3039
3039
  }
3040
- class qn {
3040
+ class Zn {
3041
3041
  constructor(e, r, s) {
3042
3042
  const l = this.cells = [];
3043
3043
  if (e instanceof ArrayBuffer) {
@@ -3121,7 +3121,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
3121
3121
  return r && r.push(s), { buffer: s };
3122
3122
  }
3123
3123
  static deserialize(e) {
3124
- return new qn(e.buffer);
3124
+ return new Zn(e.buffer);
3125
3125
  }
3126
3126
  }
3127
3127
  const br = {};
@@ -3129,7 +3129,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
3129
3129
  if (br[i]) throw new Error(`${i} is already registered.`);
3130
3130
  Object.defineProperty(e, "_classRegistryKey", { value: i, writeable: !1 }), br[i] = { klass: e, omit: r.omit || [], shallow: r.shallow || [] };
3131
3131
  }
3132
- Be("Object", Object), Be("TransferableGridIndex", qn), Be("Color", bt), Be("Error", Error), Be("AJAXError", Vi), Be("ResolvedImage", pi), Be("StylePropertyFunction", _o), Be("StyleExpression", go, { omit: ["_evaluator"] }), Be("ZoomDependentExpression", pa), Be("ZoomConstantExpression", da), Be("CompoundExpression", Zi, { omit: ["_evaluate"] });
3132
+ Be("Object", Object), Be("TransferableGridIndex", Zn), Be("Color", bt), Be("Error", Error), Be("AJAXError", Vi), Be("ResolvedImage", pi), Be("StylePropertyFunction", _o), Be("StyleExpression", go, { omit: ["_evaluator"] }), Be("ZoomDependentExpression", pa), Be("ZoomConstantExpression", da), Be("CompoundExpression", Zi, { omit: ["_evaluate"] });
3133
3133
  for (const i in yn) yn[i]._classRegistryKey || Be(`Expression_${i}`, yn[i]);
3134
3134
  function jl(i) {
3135
3135
  return i && typeof ArrayBuffer < "u" && (i instanceof ArrayBuffer || i.constructor && i.constructor.name === "ArrayBuffer");
@@ -3288,7 +3288,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
3288
3288
  return this.property.possiblyEvaluate(this, e, r, s);
3289
3289
  }
3290
3290
  }
3291
- class Zn {
3291
+ class Gn {
3292
3292
  constructor(e) {
3293
3293
  this.property = e, this.value = new wo(e, void 0);
3294
3294
  }
@@ -3299,7 +3299,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
3299
3299
  return new Hl(this.property, this.value, null, {}, 0);
3300
3300
  }
3301
3301
  }
3302
- class Gn {
3302
+ class Hn {
3303
3303
  constructor(e) {
3304
3304
  this._properties = e, this._values = Object.create(e.defaultTransitionablePropertyValues);
3305
3305
  }
@@ -3307,13 +3307,13 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
3307
3307
  return wt(this._values[e].value.value);
3308
3308
  }
3309
3309
  setValue(e, r) {
3310
- Object.prototype.hasOwnProperty.call(this._values, e) || (this._values[e] = new Zn(this._values[e].property)), this._values[e].value = new wo(this._values[e].property, r === null ? void 0 : wt(r));
3310
+ Object.prototype.hasOwnProperty.call(this._values, e) || (this._values[e] = new Gn(this._values[e].property)), this._values[e].value = new wo(this._values[e].property, r === null ? void 0 : wt(r));
3311
3311
  }
3312
3312
  getTransition(e) {
3313
3313
  return wt(this._values[e].transition);
3314
3314
  }
3315
3315
  setTransition(e, r) {
3316
- Object.prototype.hasOwnProperty.call(this._values, e) || (this._values[e] = new Zn(this._values[e].property)), this._values[e].transition = wt(r) || void 0;
3316
+ Object.prototype.hasOwnProperty.call(this._values, e) || (this._values[e] = new Gn(this._values[e].property)), this._values[e].transition = wt(r) || void 0;
3317
3317
  }
3318
3318
  serialize() {
3319
3319
  const e = {};
@@ -3520,17 +3520,17 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
3520
3520
  for (const r in e) {
3521
3521
  const s = e[r];
3522
3522
  s.specification.overridable && this.overridableProperties.push(r);
3523
- const l = this.defaultPropertyValues[r] = new wo(s, void 0), d = this.defaultTransitionablePropertyValues[r] = new Zn(s);
3523
+ const l = this.defaultPropertyValues[r] = new wo(s, void 0), d = this.defaultTransitionablePropertyValues[r] = new Gn(s);
3524
3524
  this.defaultTransitioningPropertyValues[r] = d.untransitioned(), this.defaultPossiblyEvaluatedValues[r] = l.possiblyEvaluate({});
3525
3525
  }
3526
3526
  }
3527
3527
  }
3528
3528
  Be("DataDrivenProperty", Xe), Be("DataConstantProperty", $e), Be("CrossFadedDataDrivenProperty", u), Be("CrossFadedProperty", t), Be("ColorRampProperty", n);
3529
3529
  const a = "-transition";
3530
- class h extends Ln {
3530
+ class h extends Rn {
3531
3531
  constructor(e, r) {
3532
3532
  if (super(), this.id = e.id, this.type = e.type, this._featureFilter = { filter: () => !0, needGeometry: !1 }, e.type !== "custom" && (this.metadata = e.metadata, this.minzoom = e.minzoom, this.maxzoom = e.maxzoom, e.type !== "background" && (this.source = e.source, this.sourceLayer = e["source-layer"], this.filter = e.filter), r.layout && (this._unevaluatedLayout = new Ds(r.layout)), r.paint)) {
3533
- this._transitionablePaint = new Gn(r.paint);
3533
+ this._transitionablePaint = new Hn(r.paint);
3534
3534
  for (const s in e.paint) this.setPaintProperty(s, e.paint[s], { validate: !1 });
3535
3535
  for (const s in e.layout) this.setLayoutProperty(s, e.layout[s], { validate: !1 });
3536
3536
  this._transitioningPaint = this._transitionablePaint.untransitioned(), this.paint = new So(r.paint);
@@ -3580,7 +3580,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
3580
3580
  return this.visibility && (e.layout = e.layout || {}, e.layout.visibility = this.visibility), $r(e, (r, s) => !(r === void 0 || s === "layout" && !Object.keys(r).length || s === "paint" && !Object.keys(r).length));
3581
3581
  }
3582
3582
  _validate(e, r, s, l, d = {}) {
3583
- return (!d || d.validate !== !1) && Ma(this, e.call(Lr, { key: r, layerType: this.type, objectKey: s, value: l, styleSpec: he, style: { glyphs: !0, sprite: !0 } }));
3583
+ return (!d || d.validate !== !1) && Ma(this, e.call(Rr, { key: r, layerType: this.type, objectKey: s, value: l, styleSpec: he, style: { glyphs: !0, sprite: !0 } }));
3584
3584
  }
3585
3585
  is3D() {
3586
3586
  return !1;
@@ -4229,7 +4229,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
4229
4229
  }
4230
4230
  class To extends A {
4231
4231
  }
4232
- class Hn extends A {
4232
+ class Wn extends A {
4233
4233
  }
4234
4234
  class Pn extends V {
4235
4235
  }
@@ -4243,7 +4243,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
4243
4243
  }
4244
4244
  class rn extends j {
4245
4245
  }
4246
- class Wn extends ee {
4246
+ class Xn extends ee {
4247
4247
  }
4248
4248
  class _i extends le {
4249
4249
  }
@@ -4251,9 +4251,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
4251
4251
  }
4252
4252
  class si extends De {
4253
4253
  }
4254
- class jt extends Ae {
4254
+ class Ut extends Ae {
4255
4255
  }
4256
- const Xn = b([{ name: "a_pos", components: 2, type: "Int16" }], 4), { members: Oa } = Xn;
4256
+ const Jn = b([{ name: "a_pos", components: 2, type: "Int16" }], 4), { members: Oa } = Jn;
4257
4257
  class ri {
4258
4258
  constructor(e = []) {
4259
4259
  this.segments = e;
@@ -4307,7 +4307,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
4307
4307
  var Na = Xl, ja = Va.exports;
4308
4308
  Ao.exports = Na, Ao.exports.murmur3 = Na, Ao.exports.murmur2 = ja;
4309
4309
  var Co = _e(Ao.exports);
4310
- class Jn {
4310
+ class Kn {
4311
4311
  constructor() {
4312
4312
  this.ids = [], this.positions = [], this.indexed = !1;
4313
4313
  }
@@ -4331,7 +4331,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
4331
4331
  return Xc(s, l, 0, s.length - 1), r && r.push(s.buffer, l.buffer), { ids: s, positions: l };
4332
4332
  }
4333
4333
  static deserialize(e) {
4334
- const r = new Jn();
4334
+ const r = new Kn();
4335
4335
  return r.ids = e.ids, r.positions = e.positions, r.indexed = !0, r;
4336
4336
  }
4337
4337
  }
@@ -4360,7 +4360,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
4360
4360
  const s = i[e];
4361
4361
  i[e] = i[r], i[r] = s;
4362
4362
  }
4363
- Be("FeaturePositionMap", Jn);
4363
+ Be("FeaturePositionMap", Kn);
4364
4364
  class Ls {
4365
4365
  constructor(e, r) {
4366
4366
  this.gl = e.gl, this.location = r;
@@ -4448,7 +4448,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
4448
4448
  this.paintVertexBuffer && this.paintVertexBuffer.destroy();
4449
4449
  }
4450
4450
  }
4451
- class Rr {
4451
+ class Fr {
4452
4452
  constructor(e, r, s, l, d, p) {
4453
4453
  this.expression = e, this.uniformNames = r.map((f) => `u_${f}_t`), this.type = s, this.useIntegerZoom = l, this.zoom = d, this.maxValue = 0, this.paintVertexAttributes = r.map((f) => ({ name: `a_${f}`, type: "Float32", components: s === "color" ? 4 : 2, offset: 0 })), this.paintVertexArray = new p();
4454
4454
  }
@@ -4483,7 +4483,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
4483
4483
  return new Kl(e, r);
4484
4484
  }
4485
4485
  }
4486
- class Kn {
4486
+ class Yn {
4487
4487
  constructor(e, r, s, l, d, p) {
4488
4488
  this.expression = e, this.type = r, this.useIntegerZoom = s, this.zoom = l, this.layerId = p, this.zoomInPaintVertexArray = new d(), this.zoomOutPaintVertexArray = new d();
4489
4489
  }
@@ -4518,22 +4518,22 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
4518
4518
  if (g.kind === "constant") this.binders[d] = C ? new ko(g.value, f) : new Ua(g.value, f, x), l.push(`/u_${d}`);
4519
4519
  else if (g.kind === "source" || C) {
4520
4520
  const D = ou(d, x, "source");
4521
- this.binders[d] = C ? new Kn(g, x, w, r, D, e.id) : new An(g, f, x, D), l.push(`/a_${d}`);
4521
+ this.binders[d] = C ? new Yn(g, x, w, r, D, e.id) : new An(g, f, x, D), l.push(`/a_${d}`);
4522
4522
  } else {
4523
4523
  const D = ou(d, x, "composite");
4524
- this.binders[d] = new Rr(g, f, x, w, r, D), l.push(`/z_${d}`);
4524
+ this.binders[d] = new Fr(g, f, x, w, r, D), l.push(`/z_${d}`);
4525
4525
  }
4526
4526
  }
4527
4527
  this.cacheKey = l.sort().join("");
4528
4528
  }
4529
4529
  getMaxValue(e) {
4530
4530
  const r = this.binders[e];
4531
- return r instanceof An || r instanceof Rr ? r.maxValue : 0;
4531
+ return r instanceof An || r instanceof Fr ? r.maxValue : 0;
4532
4532
  }
4533
4533
  populatePaintArrays(e, r, s, l, d) {
4534
4534
  for (const p in this.binders) {
4535
4535
  const f = this.binders[p];
4536
- (f instanceof An || f instanceof Rr || f instanceof Kn) && f.populatePaintArray(e, r, s, l, d);
4536
+ (f instanceof An || f instanceof Fr || f instanceof Yn) && f.populatePaintArray(e, r, s, l, d);
4537
4537
  }
4538
4538
  }
4539
4539
  setConstantPatternPositions(e, r) {
@@ -4550,7 +4550,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
4550
4550
  const w = s.feature(x.index);
4551
4551
  for (const I in this.binders) {
4552
4552
  const C = this.binders[I];
4553
- if ((C instanceof An || C instanceof Rr || C instanceof Kn) && C.expression.isStateDependent === !0) {
4553
+ if ((C instanceof An || C instanceof Fr || C instanceof Yn) && C.expression.isStateDependent === !0) {
4554
4554
  const D = l.paint.get(I);
4555
4555
  C.expression = D.value, C.updatePaintArray(x.start, x.end, w, e[f], d), p = !0;
4556
4556
  }
@@ -4571,8 +4571,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
4571
4571
  const e = [];
4572
4572
  for (const r in this.binders) {
4573
4573
  const s = this.binders[r];
4574
- if (s instanceof An || s instanceof Rr) for (let l = 0; l < s.paintVertexAttributes.length; l++) e.push(s.paintVertexAttributes[l].name);
4575
- else if (s instanceof Kn) for (let l = 0; l < Po.members.length; l++) e.push(Po.members[l].name);
4574
+ if (s instanceof An || s instanceof Fr) for (let l = 0; l < s.paintVertexAttributes.length; l++) e.push(s.paintVertexAttributes[l].name);
4575
+ else if (s instanceof Yn) for (let l = 0; l < Po.members.length; l++) e.push(Po.members[l].name);
4576
4576
  }
4577
4577
  return e;
4578
4578
  }
@@ -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 Ua || s instanceof ko || s instanceof Rr) for (const l of s.uniformNames) e.push(l);
4583
+ if (s instanceof Ua || s instanceof ko || s instanceof Fr) 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 Ua || d instanceof ko || d instanceof Rr) {
4594
+ if (d instanceof Ua || d instanceof ko || d instanceof Fr) {
4595
4595
  for (const p of d.uniformNames) if (r[p]) {
4596
4596
  const f = d.getBinding(e, r[p], p);
4597
4597
  s.push({ name: p, property: l, binding: f });
@@ -4607,23 +4607,23 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
4607
4607
  this._buffers = [];
4608
4608
  for (const r in this.binders) {
4609
4609
  const s = this.binders[r];
4610
- if (e && s instanceof Kn) {
4610
+ if (e && s instanceof Yn) {
4611
4611
  const l = e.fromScale === 2 ? s.zoomInPaintVertexBuffer : s.zoomOutPaintVertexBuffer;
4612
4612
  l && this._buffers.push(l);
4613
- } else (s instanceof An || s instanceof Rr) && s.paintVertexBuffer && this._buffers.push(s.paintVertexBuffer);
4613
+ } else (s instanceof An || s instanceof Fr) && s.paintVertexBuffer && this._buffers.push(s.paintVertexBuffer);
4614
4614
  }
4615
4615
  }
4616
4616
  upload(e) {
4617
4617
  for (const r in this.binders) {
4618
4618
  const s = this.binders[r];
4619
- (s instanceof An || s instanceof Rr || s instanceof Kn) && s.upload(e);
4619
+ (s instanceof An || s instanceof Fr || s instanceof Yn) && s.upload(e);
4620
4620
  }
4621
4621
  this.updatePaintBuffers();
4622
4622
  }
4623
4623
  destroy() {
4624
4624
  for (const e in this.binders) {
4625
4625
  const r = this.binders[e];
4626
- (r instanceof An || r instanceof Rr || r instanceof Kn) && r.destroy();
4626
+ (r instanceof An || r instanceof Fr || r instanceof Yn) && r.destroy();
4627
4627
  }
4628
4628
  }
4629
4629
  }
@@ -4631,7 +4631,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
4631
4631
  constructor(e, r, s = () => !0) {
4632
4632
  this.programConfigurations = {};
4633
4633
  for (const l of e) this.programConfigurations[l.id] = new su(l, r, s);
4634
- this.needsUpload = !1, this._featureMap = new Jn(), this._bufferOffset = 0;
4634
+ this.needsUpload = !1, this._featureMap = new Kn(), this._bufferOffset = 0;
4635
4635
  }
4636
4636
  populatePaintArrays(e, r, s, l, d, p) {
4637
4637
  for (const f in this.programConfigurations) this.programConfigurations[f].populatePaintArrays(e, r, l, d, p);
@@ -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
- Be("ConstantBinder", Ua), Be("CrossFadedConstantBinder", ko), Be("SourceExpressionBinder", An), Be("CrossFadedCompositeBinder", Kn), Be("CompositeExpressionBinder", Rr), Be("ProgramConfiguration", su, { omit: ["_buffers"] }), Be("ProgramConfigurationSet", Rs);
4665
+ Be("ConstantBinder", Ua), Be("CrossFadedConstantBinder", ko), Be("SourceExpressionBinder", An), Be("CrossFadedCompositeBinder", Yn), Be("CompositeExpressionBinder", Fr), Be("ProgramConfiguration", su, { omit: ["_buffers"] }), Be("ProgramConfigurationSet", Rs);
4666
4666
  const ti = 8192, Kc = Math.pow(2, 14) - 1, au = -Kc - 1;
4667
4667
  function Fs(i) {
4668
4668
  const e = ti / i.extent, r = i.loadGeometry();
@@ -5239,7 +5239,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
5239
5239
  }
5240
5240
  class lh {
5241
5241
  constructor(e) {
5242
- this.zoom = e.zoom, this.overscaling = e.overscaling, this.layers = e.layers, this.layerIds = this.layers.map((r) => r.id), this.index = e.index, this.hasPattern = !1, this.patternFeatures = [], this.layoutVertexArray = new Hn(), this.indexArray = new si(), this.indexArray2 = new jt(), this.programConfigurations = new Rs(e.layers, e.zoom), this.segments = new ri(), this.segments2 = new ri(), this.stateDependentLayerIds = this.layers.filter((r) => r.isStateDependent()).map((r) => r.id);
5242
+ this.zoom = e.zoom, this.overscaling = e.overscaling, this.layers = e.layers, this.layerIds = this.layers.map((r) => r.id), this.index = e.index, this.hasPattern = !1, this.patternFeatures = [], this.layoutVertexArray = new Wn(), this.indexArray = new si(), this.indexArray2 = new Ut(), this.programConfigurations = new Rs(e.layers, e.zoom), this.segments = new ri(), this.segments2 = new ri(), this.stateDependentLayerIds = this.layers.filter((r) => r.isStateDependent()).map((r) => r.id);
5243
5243
  }
5244
5244
  populate(e, r, s) {
5245
5245
  this.hasPattern = oh("fill", this.layers, r);
@@ -5328,7 +5328,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
5328
5328
  }
5329
5329
  }
5330
5330
  const gf = b([{ name: "a_pos", components: 2, type: "Int16" }, { name: "a_normal_ed", components: 4, type: "Int16" }], 4), _f = b([{ name: "a_centroid", components: 2, type: "Int16" }], 4), { members: yf } = gf;
5331
- var Yn = {}, xf = ye, Cu = Do;
5331
+ var Qn = {}, xf = ye, Cu = Do;
5332
5332
  function Do(i, e, r, s, l) {
5333
5333
  this.properties = {}, this.extent = r, this.type = 0, this._pbf = i, this._geometry = -1, this._keys = s, this._values = l, i.readFields(vf, this, e);
5334
5334
  }
@@ -5429,10 +5429,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
5429
5429
  s.length && (e[s.name] = s);
5430
5430
  }
5431
5431
  }
5432
- Yn.VectorTile = function(i, e) {
5432
+ Qn.VectorTile = function(i, e) {
5433
5433
  this.layers = i.readFields(If, {}, e);
5434
- }, Yn.VectorTileFeature = Cu, Yn.VectorTileLayer = ku;
5435
- const Pf = Yn.VectorTileFeature.types, ch = Math.pow(2, 13);
5434
+ }, Qn.VectorTileFeature = Cu, Qn.VectorTileLayer = ku;
5435
+ const Pf = Qn.VectorTileFeature.types, ch = Math.pow(2, 13);
5436
5436
  function Xa(i, e, r, s, l, d, p, f) {
5437
5437
  i.emplaceBack(e, r, 2 * Math.floor(s * ch) + p, l * ch * 2, d * ch * 2, Math.round(f));
5438
5438
  }
@@ -5594,7 +5594,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
5594
5594
  return r;
5595
5595
  }
5596
5596
  }
5597
- const Mf = b([{ name: "a_pos_normal", components: 2, type: "Int16" }, { name: "a_data", components: 4, type: "Uint8" }], 4), { members: zf } = Mf, Df = b([{ name: "a_uv_x", components: 1, type: "Float32" }, { name: "a_split_index", components: 1, type: "Float32" }]), { members: Lf } = Df, Rf = Yn.VectorTileFeature.types, Ff = Math.cos(Math.PI / 180 * 37.5), Du = Math.pow(2, 14) / 0.5;
5597
+ const Mf = b([{ name: "a_pos_normal", components: 2, type: "Int16" }, { name: "a_data", components: 4, type: "Uint8" }], 4), { members: zf } = Mf, Df = b([{ name: "a_uv_x", components: 1, type: "Float32" }, { name: "a_split_index", components: 1, type: "Float32" }]), { members: Lf } = Df, Rf = Qn.VectorTileFeature.types, Ff = Math.cos(Math.PI / 180 * 37.5), Du = Math.pow(2, 14) / 0.5;
5598
5598
  class uh {
5599
5599
  constructor(e) {
5600
5600
  this.zoom = e.zoom, this.overscaling = e.overscaling, this.layers = e.layers, this.layerIds = this.layers.map((r) => r.id), this.index = e.index, this.hasPattern = !1, this.patternFeatures = [], this.lineClipsArray = [], this.gradients = {}, this.layers.forEach((r) => {
@@ -5757,7 +5757,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
5757
5757
  const r = this.gradientExpression();
5758
5758
  this.stepInterpolant = !!function(s) {
5759
5759
  return s._styleExpression !== void 0;
5760
- }(r) && r._styleExpression.expression instanceof Fn, this.gradientVersion = (this.gradientVersion + 1) % Number.MAX_SAFE_INTEGER;
5760
+ }(r) && r._styleExpression.expression instanceof Bn, this.gradientVersion = (this.gradientVersion + 1) % Number.MAX_SAFE_INTEGER;
5761
5761
  }
5762
5762
  }
5763
5763
  gradientExpression() {
@@ -6195,8 +6195,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
6195
6195
  s.update(r.data, void 0, { x: l, y: d });
6196
6196
  }
6197
6197
  }
6198
- var Qn;
6199
- Be("ImagePosition", mh), Be("ImageAtlas", Wu), T.ai = void 0, (Qn = T.ai || (T.ai = {}))[Qn.none = 0] = "none", Qn[Qn.horizontal = 1] = "horizontal", Qn[Qn.vertical = 2] = "vertical", Qn[Qn.horizontalOnly = 3] = "horizontalOnly";
6198
+ var es;
6199
+ Be("ImagePosition", mh), Be("ImageAtlas", Wu), T.ai = void 0, (es = T.ai || (T.ai = {}))[es.none = 0] = "none", es[es.horizontal = 1] = "horizontal", es[es.vertical = 2] = "vertical", es[es.horizontalOnly = 3] = "horizontalOnly";
6200
6200
  const Ya = -17;
6201
6201
  class Qa {
6202
6202
  constructor() {
@@ -6320,28 +6320,28 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
6320
6320
  continue;
6321
6321
  }
6322
6322
  for (let Hi = 0; Hi < Jt.length(); Hi++) {
6323
- const mt = Jt.getSection(Hi), Mt = Jt.getSectionIndex(Hi), Bt = Jt.getCharCode(Hi);
6323
+ const gt = Jt.getSection(Hi), Mt = Jt.getSectionIndex(Hi), Bt = Jt.getCharCode(Hi);
6324
6324
  let Yi = 0, Gt = null, No = null, on = null, an = ni;
6325
6325
  const Ir = !(Fe === T.ai.horizontal || !qe && !La(Bt) || qe && (lc[Bt] || (Xt = Bt, ze.Arabic(Xt) || ze["Arabic Supplement"](Xt) || ze["Arabic Extended-A"](Xt) || ze["Arabic Presentation Forms-A"](Xt) || ze["Arabic Presentation Forms-B"](Xt))));
6326
- if (mt.imageName) {
6327
- const ur = We[mt.imageName];
6326
+ if (gt.imageName) {
6327
+ const ur = We[gt.imageName];
6328
6328
  if (!ur) continue;
6329
- on = mt.imageName, ue.iconsInText = ue.iconsInText || !0, No = ur.paddedRect;
6329
+ on = gt.imageName, ue.iconsInText = ue.iconsInText || !0, No = ur.paddedRect;
6330
6330
  const ci = ur.displaySize;
6331
- mt.scale = mt.scale * ni / je, Gt = { width: ci[0], height: ci[1], left: Gi, top: -Gu, advance: Ir ? ci[1] : ci[0] }, Yi = Ci + (ni - ci[1] * mt.scale), an = Gt.advance;
6332
- const kn = Ir ? ci[0] * mt.scale - ni * ai : ci[1] * mt.scale - ni * ai;
6331
+ gt.scale = gt.scale * ni / je, Gt = { width: ci[0], height: ci[1], left: Gi, top: -Gu, advance: Ir ? ci[1] : ci[0] }, Yi = Ci + (ni - ci[1] * gt.scale), an = Gt.advance;
6332
+ const kn = Ir ? ci[0] * gt.scale - ni * ai : ci[1] * gt.scale - ni * ai;
6333
6333
  kn > 0 && kn > wi && (wi = kn);
6334
6334
  } else {
6335
- const ur = Le[mt.fontStack], ci = ur && ur[Bt];
6335
+ const ur = Le[gt.fontStack], ci = ur && ur[Bt];
6336
6336
  if (ci && ci.rect) No = ci.rect, Gt = ci.metrics;
6337
6337
  else {
6338
- const kn = xe[mt.fontStack], nl = kn && kn[Bt];
6338
+ const kn = xe[gt.fontStack], nl = kn && kn[Bt];
6339
6339
  if (!nl) continue;
6340
6340
  Gt = nl.metrics;
6341
6341
  }
6342
- Yi = (ai - mt.scale) * ni;
6342
+ Yi = (ai - gt.scale) * ni;
6343
6343
  }
6344
- Ir ? (ue.verticalizable = !0, Oi.push({ glyph: Bt, imageName: on, x: Qe, y: Pt + Yi, vertical: Ir, scale: mt.scale, fontStack: mt.fontStack, sectionIndex: Mt, metrics: Gt, rect: No }), Qe += an * mt.scale + fe) : (Oi.push({ glyph: Bt, imageName: on, x: Qe, y: Pt + Yi, vertical: Ir, scale: mt.scale, fontStack: mt.fontStack, sectionIndex: Mt, metrics: Gt, rect: No }), Qe += Gt.advance * mt.scale + fe);
6344
+ Ir ? (ue.verticalizable = !0, Oi.push({ glyph: Bt, imageName: on, x: Qe, y: Pt + Yi, vertical: Ir, scale: gt.scale, fontStack: gt.fontStack, sectionIndex: Mt, metrics: Gt, rect: No }), Qe += an * gt.scale + fe) : (Oi.push({ glyph: Bt, imageName: on, x: Qe, y: Pt + Yi, vertical: Ir, scale: gt.scale, fontStack: gt.fontStack, sectionIndex: Mt, metrics: Gt, rect: No }), Qe += Gt.advance * gt.scale + fe);
6345
6345
  }
6346
6346
  Oi.length !== 0 && (Tt = Math.max(Qe - fe, Tt), sm(Oi, 0, Oi.length - 1, Tr, wi)), Qe = 0;
6347
6347
  const hr = ke * ai + wi;
@@ -6349,10 +6349,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
6349
6349
  }
6350
6350
  var Xt;
6351
6351
  const Ri = Pt - Ya, { horizontalAlign: Fi, verticalAlign: Bi } = _h(Ue);
6352
- (function(Jt, ai, Ci, bi, Oi, wi, hr, Hi, mt) {
6352
+ (function(Jt, ai, Ci, bi, Oi, wi, hr, Hi, gt) {
6353
6353
  const Mt = (ai - Ci) * Oi;
6354
6354
  let Bt = 0;
6355
- Bt = wi !== hr ? -Hi * bi - Ya : (-bi * mt + 0.5) * hr;
6355
+ Bt = wi !== hr ? -Hi * bi - Ya : (-bi * gt + 0.5) * hr;
6356
6356
  for (const Yi of Jt) for (const Gt of Yi.positionedGlyphs) Gt.x += Mt, Gt.y += Bt;
6357
6357
  })(ue.positionedLines, Tr, Fi, Bi, Tt, oi, ke, Ri, Me.length), ue.top += -Bi * Ri, ue.bottom = ue.top + Ri, ue.left += -Fi * Tt, ue.right = ue.left + Tt;
6358
6358
  }(ie, e, r, s, $, p, f, g, I, x, C, R), !function(ue) {
@@ -6474,7 +6474,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
6474
6474
  const R = e.top * d, B = e.bottom * d;
6475
6475
  return r === "height" || r === "both" ? (w = l[1] + R - s[0], C = l[1] + B + s[2]) : (w = l[1] + (R + B - p.displaySize[1]) / 2, C = w + p.displaySize[1]), { image: p, top: w, right: I, bottom: C, left: D, collisionPadding: f };
6476
6476
  }
6477
- const el = 255, sn = 128, es = el * sn;
6477
+ const el = 255, sn = 128, ts = el * sn;
6478
6478
  function td(i, e) {
6479
6479
  const { expression: r } = e;
6480
6480
  if (r.kind === "constant") return { kind: "constant", layoutSize: r.evaluate(new Et(i + 1)) };
@@ -6496,9 +6496,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
6496
6496
  const l = i.get(e);
6497
6497
  return l ? s = l : i.get(r) && (s = "always"), s;
6498
6498
  }
6499
- const am = Yn.VectorTileFeature.types, lm = [{ name: "a_fade_opacity", components: 1, type: "Uint8", offset: 0 }];
6499
+ const am = Qn.VectorTileFeature.types, lm = [{ name: "a_fade_opacity", components: 1, type: "Uint8", offset: 0 }];
6500
6500
  function cc(i, e, r, s, l, d, p, f, g, x, w, I, C) {
6501
- const D = f ? Math.min(es, Math.round(f[0])) : 0, R = f ? Math.min(es, Math.round(f[1])) : 0;
6501
+ const D = f ? Math.min(ts, Math.round(f[0])) : 0, R = f ? Math.min(ts, Math.round(f[1])) : 0;
6502
6502
  i.emplaceBack(e, r, Math.round(32 * s), Math.round(32 * l), d, p, (D << 1) + (g ? 1 : 0), R, 16 * x, 16 * w, 256 * I, 256 * C);
6503
6503
  }
6504
6504
  function xh(i, e, r) {
@@ -6510,7 +6510,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
6510
6510
  }
6511
6511
  class vh {
6512
6512
  constructor(e) {
6513
- this.layoutVertexArray = new ar(), this.indexArray = new si(), this.programConfigurations = e, this.segments = new ri(), this.dynamicLayoutVertexArray = new rn(), this.opacityVertexArray = new Wn(), this.hasVisibleVertices = !1, this.placedSymbolArray = new Rt();
6513
+ this.layoutVertexArray = new ar(), this.indexArray = new si(), this.programConfigurations = e, this.segments = new ri(), this.dynamicLayoutVertexArray = new rn(), this.opacityVertexArray = new Xn(), this.hasVisibleVertices = !1, this.placedSymbolArray = new Rt();
6514
6514
  }
6515
6515
  isEmpty() {
6516
6516
  return this.layoutVertexArray.length === 0 && this.indexArray.length === 0 && this.dynamicLayoutVertexArray.length === 0 && this.opacityVertexArray.length === 0;
@@ -6669,7 +6669,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
6669
6669
  }
6670
6670
  }
6671
6671
  generateCollisionDebugBuffers() {
6672
- this.hasDebugData() && this.destroyDebugData(), this.textCollisionBox = new bh(_i, Ou.members, jt), this.iconCollisionBox = new bh(_i, Ou.members, jt);
6672
+ this.hasDebugData() && this.destroyDebugData(), this.textCollisionBox = new bh(_i, Ou.members, Ut), this.iconCollisionBox = new bh(_i, Ou.members, Ut);
6673
6673
  for (let e = 0; e < this.symbolInstances.length; e++) {
6674
6674
  const r = this.symbolInstances.get(e);
6675
6675
  this.addDebugCollisionBoxes(r.textBoxStartIndex, r.textBoxEndIndex, r, !0), this.addDebugCollisionBoxes(r.verticalTextBoxStartIndex, r.verticalTextBoxEndIndex, r, !0), this.addDebugCollisionBoxes(r.iconBoxStartIndex, r.iconBoxEndIndex, r, !1), this.addDebugCollisionBoxes(r.verticalIconBoxStartIndex, r.verticalIconBoxEndIndex, r, !1);
@@ -6832,7 +6832,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
6832
6832
  if (s.value.kind === "constant" && s.value.value instanceof Ni) p(s.value.value.sections);
6833
6833
  else if (s.value.kind === "source") {
6834
6834
  const f = (x) => {
6835
- d || (x instanceof mn && ei(x.value) === Er ? p(x.value.sections) : x instanceof io ? p(x.sections) : x.eachChild(f));
6835
+ d || (x instanceof mn && ei(x.value) === Mr ? p(x.value.sections) : x instanceof io ? p(x.sections) : x.eachChild(f));
6836
6836
  }, g = s.value;
6837
6837
  g._styleExpression && f(g._styleExpression.expression);
6838
6838
  }
@@ -6899,13 +6899,13 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
6899
6899
  }
6900
6900
  }
6901
6901
  const Sh = 63710088e-1;
6902
- class ts {
6902
+ class is {
6903
6903
  constructor(e, r) {
6904
6904
  if (isNaN(e) || isNaN(r)) throw new Error(`Invalid LngLat object: (${e}, ${r})`);
6905
6905
  if (this.lng = +e, this.lat = +r, this.lat > 90 || this.lat < -90) throw new Error("Invalid LngLat latitude value: must be between -90 and 90");
6906
6906
  }
6907
6907
  wrap() {
6908
- return new ts(Wt(this.lng, -180, 180), this.lat);
6908
+ return new is(Wt(this.lng, -180, 180), this.lat);
6909
6909
  }
6910
6910
  toArray() {
6911
6911
  return [this.lng, this.lat];
@@ -6918,9 +6918,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
6918
6918
  return Sh * Math.acos(Math.min(d, 1));
6919
6919
  }
6920
6920
  static convert(e) {
6921
- if (e instanceof ts) return e;
6922
- if (Array.isArray(e) && (e.length === 2 || e.length === 3)) return new ts(Number(e[0]), Number(e[1]));
6923
- if (!Array.isArray(e) && typeof e == "object" && e !== null) return new ts(Number("lng" in e ? e.lng : e.lon), Number(e.lat));
6921
+ if (e instanceof is) return e;
6922
+ if (Array.isArray(e) && (e.length === 2 || e.length === 3)) return new is(Number(e[0]), Number(e[1]));
6923
+ if (!Array.isArray(e) && typeof e == "object" && e !== null) return new is(Number("lng" in e ? e.lng : e.lon), Number(e.lat));
6924
6924
  throw new Error("`LngLatLike` argument must be specified as a LngLat instance, an object {lng: <lng>, lat: <lat>}, an object {lon: <lng>, lat: <lat>}, or an array of [<lng>, <lat>]");
6925
6925
  }
6926
6926
  }
@@ -6945,11 +6945,11 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
6945
6945
  this.x = +e, this.y = +r, this.z = +s;
6946
6946
  }
6947
6947
  static fromLngLat(e, r = 0) {
6948
- const s = ts.convert(e);
6948
+ const s = is.convert(e);
6949
6949
  return new uc(cd(s.lng), hd(s.lat), ud(r, s.lat));
6950
6950
  }
6951
6951
  toLngLat() {
6952
- return new ts(360 * this.x - 180, Th(this.y));
6952
+ return new is(360 * this.x - 180, Th(this.y));
6953
6953
  }
6954
6954
  toAltitude() {
6955
6955
  return this.z * ld(Th(this.y));
@@ -7153,7 +7153,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7153
7153
  }
7154
7154
  class _d {
7155
7155
  constructor(e, r) {
7156
- this.tileID = e, this.x = e.canonical.x, this.y = e.canonical.y, this.z = e.canonical.z, this.grid = new qn(ti, 16, 0), this.grid3D = new qn(ti, 16, 0), this.featureIndexArray = new or(), this.promoteId = r;
7156
+ this.tileID = e, this.x = e.canonical.x, this.y = e.canonical.y, this.z = e.canonical.z, this.grid = new Zn(ti, 16, 0), this.grid3D = new Zn(ti, 16, 0), this.featureIndexArray = new or(), this.promoteId = r;
7157
7157
  }
7158
7158
  insert(e, r, s, l, d, p) {
7159
7159
  const f = this.featureIndexArray.length;
@@ -7169,7 +7169,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7169
7169
  }
7170
7170
  }
7171
7171
  loadVTLayers() {
7172
- return this.vtLayers || (this.vtLayers = new Yn.VectorTile(new ph(this.rawTileData)).layers, this.sourceLayerCoder = new md(this.vtLayers ? Object.keys(this.vtLayers).sort() : ["_geojsonTileLayer"])), this.vtLayers;
7172
+ return this.vtLayers || (this.vtLayers = new Qn.VectorTile(new ph(this.rawTileData)).layers, this.sourceLayerCoder = new md(this.vtLayers ? Object.keys(this.vtLayers).sort() : ["_geojsonTileLayer"])), this.vtLayers;
7173
7173
  }
7174
7174
  query(e, r, s, l) {
7175
7175
  this.loadVTLayers();
@@ -7268,12 +7268,12 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7268
7268
  return d;
7269
7269
  }
7270
7270
  Be("FeatureIndex", _d, { omit: ["rawTileData", "sourceLayerCoder"] });
7271
- class is extends ae {
7271
+ class rs extends ae {
7272
7272
  constructor(e, r, s, l) {
7273
7273
  super(e, r), this.angle = s, l !== void 0 && (this.segment = l);
7274
7274
  }
7275
7275
  clone() {
7276
- return new is(this.x, this.y, this.angle, this.segment);
7276
+ return new rs(this.x, this.y, this.angle, this.segment);
7277
7277
  }
7278
7278
  }
7279
7279
  function bd(i, e, r, s, l) {
@@ -7314,7 +7314,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7314
7314
  for (let w = 0; w < i.length - 1; w++) {
7315
7315
  const I = i[w], C = i[w + 1], D = I.dist(C);
7316
7316
  if (g + D > x) {
7317
- const R = (x - g) / D, B = $i.number(I.x, C.x, R), $ = $i.number(I.y, C.y, R), W = new is(B, $, C.angleTo(I), w);
7317
+ const R = (x - g) / D, B = $i.number(I.x, C.x, R), $ = $i.number(I.y, C.y, R), W = new rs(B, $, C.angleTo(I), w);
7318
7318
  return W._round(), !p || bd(i, W, f, p, e) ? W : void 0;
7319
7319
  }
7320
7320
  g += D;
@@ -7333,7 +7333,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7333
7333
  C += r;
7334
7334
  const Y = (C - I) / W, ie = $i.number(B.x, $.x, Y), ue = $i.number(B.y, $.y, Y);
7335
7335
  if (ie >= 0 && ie < g && ue >= 0 && ue < g && C - x >= 0 && C + x <= w) {
7336
- const xe = new is(ie, ue, se, R);
7336
+ const xe = new rs(ie, ue, se, R);
7337
7337
  xe._round(), s && !bd(i, xe, d, s, l) || D.push(xe);
7338
7338
  }
7339
7339
  }
@@ -7341,7 +7341,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7341
7341
  }
7342
7342
  return f || D.length || p || (D = Id(i, I / 2, r, s, l, d, p, !0, g)), D;
7343
7343
  }
7344
- Be("Anchor", is);
7344
+ Be("Anchor", rs);
7345
7345
  const Oo = Gi;
7346
7346
  function Pd(i, e, r, s) {
7347
7347
  const l = [], d = i.image, p = d.pixelRatio, f = d.paddedRect.w - 2 * Oo, g = d.paddedRect.h - 2 * Oo;
@@ -7355,7 +7355,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7355
7355
  const Me = x.x1, ke = x.y1, Ue = x.x2 - Me, Oe = x.y2 - ke, Fe = (fe, qe, je, Qe) => {
7356
7356
  const Pt = pc(fe.stretch - W, se, Ue, Me), Tt = fc(fe.fixed - ue, xe, fe.stretch, D), oi = pc(qe.stretch - Y, ie, Oe, ke), Tr = fc(qe.fixed - Le, We, qe.stretch, R), vi = pc(je.stretch - W, se, Ue, Me), Xt = fc(je.fixed - ue, xe, je.stretch, D), Ri = pc(Qe.stretch - Y, ie, Oe, ke), Fi = fc(Qe.fixed - Le, We, Qe.stretch, R), Bi = new ae(Pt, oi), Jt = new ae(vi, oi), ai = new ae(vi, Ri), Ci = new ae(Pt, Ri), bi = new ae(Tt / p, Tr / p), Oi = new ae(Xt / p, Fi / p), wi = e * Math.PI / 180;
7357
7357
  if (wi) {
7358
- const mt = Math.sin(wi), Mt = Math.cos(wi), Bt = [Mt, -mt, mt, Mt];
7358
+ const gt = Math.sin(wi), Mt = Math.cos(wi), Bt = [Mt, -gt, gt, Mt];
7359
7359
  Bi._matMult(Bt), Jt._matMult(Bt), Ci._matMult(Bt), ai._matMult(Bt);
7360
7360
  }
7361
7361
  const hr = fe.stretch + fe.fixed, Hi = qe.stretch + qe.fixed;
@@ -7491,7 +7491,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7491
7491
  }
7492
7492
  var xi;
7493
7493
  T.ar = void 0, (xi = T.ar || (T.ar = {}))[xi.center = 1] = "center", xi[xi.left = 2] = "left", xi[xi.right = 3] = "right", xi[xi.top = 4] = "top", xi[xi.bottom = 5] = "bottom", xi[xi["top-left"] = 6] = "top-left", xi[xi["top-right"] = 7] = "top-right", xi[xi["bottom-left"] = 8] = "bottom-left", xi[xi["bottom-right"] = 9] = "bottom-right";
7494
- const rs = 7, Ph = Number.POSITIVE_INFINITY;
7494
+ const ns = 7, Ph = Number.POSITIVE_INFINITY;
7495
7495
  function Cd(i, e) {
7496
7496
  return e[1] !== Ph ? function(r, s, l) {
7497
7497
  let d = 0, p = 0;
@@ -7499,12 +7499,12 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7499
7499
  case "top-right":
7500
7500
  case "top-left":
7501
7501
  case "top":
7502
- p = l - rs;
7502
+ p = l - ns;
7503
7503
  break;
7504
7504
  case "bottom-right":
7505
7505
  case "bottom-left":
7506
7506
  case "bottom":
7507
- p = -l + rs;
7507
+ p = -l + ns;
7508
7508
  }
7509
7509
  switch (r) {
7510
7510
  case "top-right":
@@ -7525,17 +7525,17 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7525
7525
  switch (r) {
7526
7526
  case "top-right":
7527
7527
  case "top-left":
7528
- d = p - rs;
7528
+ d = p - ns;
7529
7529
  break;
7530
7530
  case "bottom-right":
7531
7531
  case "bottom-left":
7532
- d = -p + rs;
7532
+ d = -p + ns;
7533
7533
  break;
7534
7534
  case "bottom":
7535
- d = -s + rs;
7535
+ d = -s + ns;
7536
7536
  break;
7537
7537
  case "top":
7538
- d = s - rs;
7538
+ d = s - ns;
7539
7539
  }
7540
7540
  switch (r) {
7541
7541
  case "top-right":
@@ -7562,7 +7562,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7562
7562
  const f = d.values, g = [];
7563
7563
  for (let x = 0; x < f.length; x += 2) {
7564
7564
  const w = g[x] = f[x], I = f[x + 1].map((C) => C * ni);
7565
- w.startsWith("top") ? I[1] -= rs : w.startsWith("bottom") && (I[1] += rs), g[x + 1] = I;
7565
+ w.startsWith("top") ? I[1] -= ns : w.startsWith("bottom") && (I[1] += ns), g[x + 1] = I;
7566
7566
  }
7567
7567
  return new Ui(g);
7568
7568
  }
@@ -7599,7 +7599,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7599
7599
  let Oe;
7600
7600
  s && Ue !== "none" && (i.allowVerticalPlacement && r.vertical && (Oe = ed(s, r.vertical, Ue, C.get("icon-text-fit-padding"), D, B)), R && (s = ed(s, R, Ue, C.get("icon-text-fit-padding"), D, B)));
7601
7601
  const Fe = (fe, qe) => {
7602
- qe.x < 0 || qe.x >= ti || qe.y < 0 || qe.y >= ti || function(je, Qe, Pt, Tt, oi, Tr, vi, Xt, Ri, Fi, Bi, Jt, ai, Ci, bi, Oi, wi, hr, Hi, mt, Mt, Bt, Yi, Gt, No) {
7602
+ qe.x < 0 || qe.x >= ti || qe.y < 0 || qe.y >= ti || function(je, Qe, Pt, Tt, oi, Tr, vi, Xt, Ri, Fi, Bi, Jt, ai, Ci, bi, Oi, wi, hr, Hi, gt, Mt, Bt, Yi, Gt, No) {
7603
7603
  const on = je.addToLineVertexArray(Qe, Pt);
7604
7604
  let an, Ir, ur, ci, kn = 0, nl = 0, Rd = 0, Fd = 0, Rh = -1, Fh = -1;
7605
7605
  const En = {};
@@ -7609,39 +7609,39 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7609
7609
  ur = new mc(Ri, Qe, Fi, Bi, Jt, Tt.vertical, ai, Ci, bi, ki), vi && (ci = new mc(Ri, Qe, Fi, Bi, Jt, vi, wi, hr, bi, ki));
7610
7610
  }
7611
7611
  if (oi) {
7612
- const ki = Xt.layout.get("icon-rotate").evaluate(Mt, {}), dr = Xt.layout.get("icon-text-fit") !== "none", Vs = Pd(oi, ki, Yi, dr), Br = vi ? Pd(vi, ki, Yi, dr) : void 0;
7612
+ const ki = Xt.layout.get("icon-rotate").evaluate(Mt, {}), dr = Xt.layout.get("icon-text-fit") !== "none", Vs = Pd(oi, ki, Yi, dr), Or = vi ? Pd(vi, ki, Yi, dr) : void 0;
7613
7613
  Ir = new mc(Ri, Qe, Fi, Bi, Jt, oi, wi, hr, !1, ki), kn = 4 * Vs.length;
7614
7614
  const Ns = je.iconSizeData;
7615
7615
  let ln = null;
7616
- Ns.kind === "source" ? (ln = [sn * Xt.layout.get("icon-size").evaluate(Mt, {})], ln[0] > es && hi(`${je.layerIds[0]}: Value for "icon-size" is >= ${el}. Reduce your "icon-size".`)) : Ns.kind === "composite" && (ln = [sn * Bt.compositeIconSizes[0].evaluate(Mt, {}, Gt), sn * Bt.compositeIconSizes[1].evaluate(Mt, {}, Gt)], (ln[0] > es || ln[1] > es) && hi(`${je.layerIds[0]}: Value for "icon-size" is >= ${el}. Reduce your "icon-size".`)), je.addSymbols(je.icon, Vs, ln, mt, Hi, Mt, T.ai.none, Qe, on.lineStartIndex, on.lineLength, -1, Gt), Rh = je.icon.placedSymbolArray.length - 1, Br && (nl = 4 * Br.length, je.addSymbols(je.icon, Br, ln, mt, Hi, Mt, T.ai.vertical, Qe, on.lineStartIndex, on.lineLength, -1, Gt), Fh = je.icon.placedSymbolArray.length - 1);
7616
+ Ns.kind === "source" ? (ln = [sn * Xt.layout.get("icon-size").evaluate(Mt, {})], ln[0] > ts && hi(`${je.layerIds[0]}: Value for "icon-size" is >= ${el}. Reduce your "icon-size".`)) : Ns.kind === "composite" && (ln = [sn * Bt.compositeIconSizes[0].evaluate(Mt, {}, Gt), sn * Bt.compositeIconSizes[1].evaluate(Mt, {}, Gt)], (ln[0] > ts || ln[1] > ts) && hi(`${je.layerIds[0]}: Value for "icon-size" is >= ${el}. Reduce your "icon-size".`)), je.addSymbols(je.icon, Vs, ln, gt, Hi, Mt, T.ai.none, Qe, on.lineStartIndex, on.lineLength, -1, Gt), Rh = je.icon.placedSymbolArray.length - 1, Or && (nl = 4 * Or.length, je.addSymbols(je.icon, Or, ln, gt, Hi, Mt, T.ai.vertical, Qe, on.lineStartIndex, on.lineLength, -1, Gt), Fh = je.icon.placedSymbolArray.length - 1);
7617
7617
  }
7618
7618
  const Od = Object.keys(Tt.horizontal);
7619
7619
  for (const ki of Od) {
7620
7620
  const dr = Tt.horizontal[ki];
7621
7621
  if (!an) {
7622
7622
  Bd = Co(dr.text);
7623
- const Br = Xt.layout.get("text-rotate").evaluate(Mt, {}, Gt);
7624
- an = new mc(Ri, Qe, Fi, Bi, Jt, dr, ai, Ci, bi, Br);
7623
+ const Or = Xt.layout.get("text-rotate").evaluate(Mt, {}, Gt);
7624
+ an = new mc(Ri, Qe, Fi, Bi, Jt, dr, ai, Ci, bi, Or);
7625
7625
  }
7626
7626
  const Vs = dr.positionedLines.length === 1;
7627
7627
  if (Rd += Ed(je, Qe, dr, Tr, Xt, bi, Mt, Oi, on, Tt.vertical ? T.ai.horizontal : T.ai.horizontalOnly, Vs ? Od : [ki], En, Rh, Bt, Gt), Vs) break;
7628
7628
  }
7629
7629
  Tt.vertical && (Fd += Ed(je, Qe, Tt.vertical, Tr, Xt, bi, Mt, Oi, on, T.ai.vertical, ["vertical"], En, Fh, Bt, Gt));
7630
7630
  const Im = an ? an.boxStartIndex : je.collisionBoxArray.length, Pm = an ? an.boxEndIndex : je.collisionBoxArray.length, Am = ur ? ur.boxStartIndex : je.collisionBoxArray.length, Cm = ur ? ur.boxEndIndex : je.collisionBoxArray.length, km = Ir ? Ir.boxStartIndex : je.collisionBoxArray.length, Em = Ir ? Ir.boxEndIndex : je.collisionBoxArray.length, Mm = ci ? ci.boxStartIndex : je.collisionBoxArray.length, zm = ci ? ci.boxEndIndex : je.collisionBoxArray.length;
7631
- let Fr = -1;
7631
+ let Br = -1;
7632
7632
  const _c = (ki, dr) => ki && ki.circleDiameter ? Math.max(ki.circleDiameter, dr) : dr;
7633
- Fr = _c(an, Fr), Fr = _c(ur, Fr), Fr = _c(Ir, Fr), Fr = _c(ci, Fr);
7634
- const Vd = Fr > -1 ? 1 : 0;
7635
- Vd && (Fr *= No / ni), je.glyphOffsetArray.length >= Bo.MAX_GLYPHS && hi("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"), Mt.sortKey !== void 0 && je.addToSortKeyRanges(je.symbolInstances.length, Mt.sortKey);
7633
+ Br = _c(an, Br), Br = _c(ur, Br), Br = _c(Ir, Br), Br = _c(ci, Br);
7634
+ const Vd = Br > -1 ? 1 : 0;
7635
+ Vd && (Br *= No / ni), je.glyphOffsetArray.length >= Bo.MAX_GLYPHS && hi("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"), Mt.sortKey !== void 0 && je.addToSortKeyRanges(je.symbolInstances.length, Mt.sortKey);
7636
7636
  const Dm = kd(Xt, Mt, Gt), [Lm, Rm] = function(ki, dr) {
7637
- const Vs = ki.length, Br = dr == null ? void 0 : dr.values;
7638
- if ((Br == null ? void 0 : Br.length) > 0) for (let Ns = 0; Ns < Br.length; Ns += 2) {
7639
- const ln = Br[Ns + 1];
7640
- ki.emplaceBack(T.ar[Br[Ns]], ln[0], ln[1]);
7637
+ const Vs = ki.length, Or = dr == null ? void 0 : dr.values;
7638
+ if ((Or == null ? void 0 : Or.length) > 0) for (let Ns = 0; Ns < Or.length; Ns += 2) {
7639
+ const ln = Or[Ns + 1];
7640
+ ki.emplaceBack(T.ar[Or[Ns]], ln[0], ln[1]);
7641
7641
  }
7642
7642
  return [Vs, ki.length];
7643
7643
  }(je.textAnchorOffsets, Dm);
7644
- je.symbolInstances.emplaceBack(Qe.x, Qe.y, En.right >= 0 ? En.right : -1, En.center >= 0 ? En.center : -1, En.left >= 0 ? En.left : -1, En.vertical || -1, Rh, Fh, Bd, Im, Pm, Am, Cm, km, Em, Mm, zm, Fi, Rd, Fd, kn, nl, Vd, 0, ai, Fr, Lm, Rm);
7644
+ je.symbolInstances.emplaceBack(Qe.x, Qe.y, En.right >= 0 ? En.right : -1, En.center >= 0 ? En.center : -1, En.left >= 0 ? En.left : -1, En.vertical || -1, Rh, Fh, Bd, Im, Pm, Am, Cm, km, Em, Mm, zm, Fi, Rd, Fd, kn, nl, Vd, 0, ai, Br, Lm, Rm);
7645
7645
  }(i, qe, fe, r, s, l, Oe, i.layers[0], i.collisionBoxArray, e.index, e.sourceLayerIndex, i.index, $, [ie, ie, ie, ie], Le, g, se, ue, We, D, e, d, x, w, p);
7646
7646
  };
7647
7647
  if (Me === "line") for (const fe of vd(e.geometry, 0, 0, ti, ti)) {
@@ -7655,10 +7655,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7655
7655
  }
7656
7656
  } else if (e.type === "Polygon") for (const fe of no(e.geometry, 0)) {
7657
7657
  const qe = vm(fe, 16);
7658
- Fe(fe[0], new is(qe.x, qe.y, 0));
7658
+ Fe(fe[0], new rs(qe.x, qe.y, 0));
7659
7659
  }
7660
- else if (e.type === "LineString") for (const fe of e.geometry) Fe(fe, new is(fe[0].x, fe[0].y, 0));
7661
- else if (e.type === "Point") for (const fe of e.geometry) for (const qe of fe) Fe([qe], new is(qe.x, qe.y, 0));
7660
+ else if (e.type === "LineString") for (const fe of e.geometry) Fe(fe, new rs(fe[0].x, fe[0].y, 0));
7661
+ else if (e.type === "Point") for (const fe of e.geometry) for (const qe of fe) Fe([qe], new rs(qe.x, qe.y, 0));
7662
7662
  }
7663
7663
  function Ed(i, e, r, s, l, d, p, f, g, x, w, I, C, D, R) {
7664
7664
  const B = function(se, Y, ie, ue, xe, Le, We, Me) {
@@ -7669,19 +7669,19 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7669
7669
  let qe = Gu + 1, je = !0, Qe = 1, Pt = 0;
7670
7670
  const Tt = (xe || Me) && Fe.vertical, oi = Fe.metrics.advance * Fe.scale / 2;
7671
7671
  if (Me && Y.verticalizable && (Pt = Oe.lineOffset / 2 - (Fe.imageName ? -(ni - Fe.metrics.width * Fe.scale) / 2 : (Fe.scale - 1) * ni)), Fe.imageName) {
7672
- const mt = We[Fe.imageName];
7673
- je = mt.sdf, Qe = mt.pixelRatio, qe = Gi / Qe;
7672
+ const gt = We[Fe.imageName];
7673
+ je = gt.sdf, Qe = gt.pixelRatio, qe = Gi / Qe;
7674
7674
  }
7675
7675
  const Tr = xe ? [Fe.x + oi, Fe.y] : [0, 0];
7676
7676
  let vi = xe ? [0, 0] : [Fe.x + oi + ie[0], Fe.y + ie[1] - Pt], Xt = [0, 0];
7677
7677
  Tt && (Xt = vi, vi = [0, 0]);
7678
7678
  const Ri = Fe.metrics.isDoubleResolution ? 2 : 1, Fi = (Fe.metrics.left - qe) * Fe.scale - oi + vi[0], Bi = (-Fe.metrics.top - qe) * Fe.scale + vi[1], Jt = Fi + fe.w / Ri * Fe.scale / Qe, ai = Bi + fe.h / Ri * Fe.scale / Qe, Ci = new ae(Fi, Bi), bi = new ae(Jt, Bi), Oi = new ae(Fi, ai), wi = new ae(Jt, ai);
7679
7679
  if (Tt) {
7680
- const mt = new ae(-oi, oi - Ya), Mt = -Math.PI / 2, Bt = ni / 2 - oi, Yi = new ae(5 - Ya - Bt, -(Fe.imageName ? Bt : 0)), Gt = new ae(...Xt);
7681
- Ci._rotateAround(Mt, mt)._add(Yi)._add(Gt), bi._rotateAround(Mt, mt)._add(Yi)._add(Gt), Oi._rotateAround(Mt, mt)._add(Yi)._add(Gt), wi._rotateAround(Mt, mt)._add(Yi)._add(Gt);
7680
+ const gt = new ae(-oi, oi - Ya), Mt = -Math.PI / 2, Bt = ni / 2 - oi, Yi = new ae(5 - Ya - Bt, -(Fe.imageName ? Bt : 0)), Gt = new ae(...Xt);
7681
+ Ci._rotateAround(Mt, gt)._add(Yi)._add(Gt), bi._rotateAround(Mt, gt)._add(Yi)._add(Gt), Oi._rotateAround(Mt, gt)._add(Yi)._add(Gt), wi._rotateAround(Mt, gt)._add(Yi)._add(Gt);
7682
7682
  }
7683
7683
  if (ke) {
7684
- const mt = Math.sin(ke), Mt = Math.cos(ke), Bt = [Mt, -mt, mt, Mt];
7684
+ const gt = Math.sin(ke), Mt = Math.cos(ke), Bt = [Mt, -gt, gt, Mt];
7685
7685
  Ci._matMult(Bt), bi._matMult(Bt), Oi._matMult(Bt), wi._matMult(Bt);
7686
7686
  }
7687
7687
  const hr = new ae(0, 0), Hi = new ae(0, 0);
@@ -7690,7 +7690,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7690
7690
  return Ue;
7691
7691
  }(0, r, f, l, d, p, s, i.allowVerticalPlacement), $ = i.textSizeData;
7692
7692
  let W = null;
7693
- $.kind === "source" ? (W = [sn * l.layout.get("text-size").evaluate(p, {})], W[0] > es && hi(`${i.layerIds[0]}: Value for "text-size" is >= ${el}. Reduce your "text-size".`)) : $.kind === "composite" && (W = [sn * D.compositeTextSizes[0].evaluate(p, {}, R), sn * D.compositeTextSizes[1].evaluate(p, {}, R)], (W[0] > es || W[1] > es) && hi(`${i.layerIds[0]}: Value for "text-size" is >= ${el}. Reduce your "text-size".`)), i.addSymbols(i.text, B, W, f, d, p, x, e, g.lineStartIndex, g.lineLength, C, R);
7693
+ $.kind === "source" ? (W = [sn * l.layout.get("text-size").evaluate(p, {})], W[0] > ts && hi(`${i.layerIds[0]}: Value for "text-size" is >= ${el}. Reduce your "text-size".`)) : $.kind === "composite" && (W = [sn * D.compositeTextSizes[0].evaluate(p, {}, R), sn * D.compositeTextSizes[1].evaluate(p, {}, R)], (W[0] > ts || W[1] > ts) && hi(`${i.layerIds[0]}: Value for "text-size" is >= ${el}. Reduce your "text-size".`)), i.addSymbols(i.text, B, W, f, d, p, x, e, g.lineStartIndex, g.lineLength, C, R);
7694
7694
  for (const se of w) I[se] = i.text.placedSymbolArray.length - 1;
7695
7695
  return 4 * B.length;
7696
7696
  }
@@ -7816,18 +7816,18 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7816
7816
  } };
7817
7817
  T.$ = class extends F {
7818
7818
  }, T.A = Mo, T.B = Ea, T.C = function(i) {
7819
- if (Mn == null) {
7819
+ if (zn == null) {
7820
7820
  const e = i.navigator ? i.navigator.userAgent : null;
7821
- Mn = !!i.safari || !(!e || !(/\b(iPad|iPhone|iPod)\b/.test(e) || e.match("Safari") && !e.match("Chrome")));
7821
+ zn = !!i.safari || !(!e || !(/\b(iPad|iPhone|iPod)\b/.test(e) || e.match("Safari") && !e.match("Chrome")));
7822
7822
  }
7823
- return Mn;
7824
- }, T.D = $e, T.E = Ln, T.F = class {
7823
+ return zn;
7824
+ }, T.D = $e, T.E = Rn, T.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 mm(() => this.process()), this.subscription = function(r, s, l, d) {
7827
7827
  return r.addEventListener(s, l, !1), { unsubscribe: () => {
7828
7828
  r.removeEventListener(s, l, !1);
7829
7829
  } };
7830
- }(this.target, "message", (r) => this.receive(r)), this.globalScope = Pr(self) ? i : window;
7830
+ }(this.target, "message", (r) => this.receive(r)), this.globalScope = Ar(self) ? i : window;
7831
7831
  }
7832
7832
  registerMessageHandler(i, e) {
7833
7833
  this.messageHandlers[i] = e;
@@ -7852,7 +7852,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7852
7852
  const s = this.abortControllers[r];
7853
7853
  return delete this.abortControllers[r], void (s && s.abort());
7854
7854
  }
7855
- if (Pr(self) || e.mustQueue) return this.tasks[r] = e, this.taskQueue.push(r), void this.invoker.trigger();
7855
+ if (Ar(self) || e.mustQueue) return this.tasks[r] = e, this.taskQueue.push(r), void this.invoker.trigger();
7856
7856
  this.processTask(r, e);
7857
7857
  }
7858
7858
  }
@@ -7887,7 +7887,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7887
7887
  remove() {
7888
7888
  this.invoker.remove(), this.subscription.unsubscribe();
7889
7889
  }
7890
- }, T.G = Dn, T.H = function() {
7890
+ }, T.G = Ln, T.H = function() {
7891
7891
  var i = new Mo(16);
7892
7892
  return Mo != 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
  }, T.I = mh, T.J = function(i, e, r) {
@@ -7903,7 +7903,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7903
7903
  l in i && (r[l] = i[l]);
7904
7904
  }
7905
7905
  return r;
7906
- }, T.N = ts, T.O = cd, T.P = ae, T.Q = hd, T.R = lr, T.S = cr, T.T = Gn, T.U = dt, T.V = Ot, T.W = un, T.X = ti, T.Y = b, T.Z = uc, T._ = c, T.a = qr, T.a$ = function(i, e) {
7906
+ }, T.N = is, T.O = cd, T.P = ae, T.Q = hd, T.R = lr, T.S = cr, T.T = Hn, T.U = pt, T.V = Ot, T.W = un, T.X = ti, T.Y = b, T.Z = uc, T._ = c, T.a = qr, T.a$ = function(i, e) {
7907
7907
  var r = i[0], s = i[1], l = i[2], d = i[3], p = i[4], f = i[5], g = i[6], x = i[7], w = i[8], I = i[9], C = i[10], D = i[11], R = i[12], B = i[13], $ = i[14], W = i[15], se = e[0], Y = e[1], ie = e[2], ue = e[3], xe = e[4], Le = e[5], We = e[6], Me = e[7], ke = e[8], Ue = e[9], Oe = e[10], Fe = e[11], fe = e[12], qe = e[13], je = e[14], Qe = e[15];
7908
7908
  return Math.abs(r - se) <= Li * Math.max(1, Math.abs(r), Math.abs(se)) && Math.abs(s - Y) <= Li * Math.max(1, Math.abs(s), Math.abs(Y)) && Math.abs(l - ie) <= Li * Math.max(1, Math.abs(l), Math.abs(ie)) && Math.abs(d - ue) <= Li * Math.max(1, Math.abs(d), Math.abs(ue)) && Math.abs(p - xe) <= Li * Math.max(1, Math.abs(p), Math.abs(xe)) && Math.abs(f - Le) <= Li * Math.max(1, Math.abs(f), Math.abs(Le)) && Math.abs(g - We) <= Li * Math.max(1, Math.abs(g), Math.abs(We)) && Math.abs(x - Me) <= Li * Math.max(1, Math.abs(x), Math.abs(Me)) && Math.abs(w - ke) <= Li * Math.max(1, Math.abs(w), Math.abs(ke)) && Math.abs(I - Ue) <= Li * Math.max(1, Math.abs(I), Math.abs(Ue)) && Math.abs(C - Oe) <= Li * Math.max(1, Math.abs(C), Math.abs(Oe)) && Math.abs(D - Fe) <= Li * Math.max(1, Math.abs(D), Math.abs(Fe)) && Math.abs(R - fe) <= Li * Math.max(1, Math.abs(R), Math.abs(fe)) && Math.abs(B - qe) <= Li * Math.max(1, Math.abs(B), Math.abs(qe)) && Math.abs($ - je) <= Li * Math.max(1, Math.abs($), Math.abs(je)) && Math.abs(W - Qe) <= Li * Math.max(1, Math.abs(W), Math.abs(Qe));
7909
7909
  }, T.a0 = ri, T.a1 = Ih, T.a2 = Te, T.a3 = (i) => {
@@ -7957,7 +7957,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7957
7957
  (function(p, f, g, x) {
7958
7958
  let w;
7959
7959
  for (w in f = f || {}, p = p || {}) Object.prototype.hasOwnProperty.call(p, w) && (Object.prototype.hasOwnProperty.call(f, w) || Hr(w, g, x));
7960
- for (w in f) Object.prototype.hasOwnProperty.call(f, w) && (Object.prototype.hasOwnProperty.call(p, w) ? yt(p[w], f[w]) || (p[w].type === "geojson" && f[w].type === "geojson" && Rn(p, f, w) ? qt(g, { command: "setGeoJSONSourceData", args: [w, f[w].data] }) : kr(w, f, g, x)) : ls(w, f, g));
7960
+ for (w in f) Object.prototype.hasOwnProperty.call(f, w) && (Object.prototype.hasOwnProperty.call(p, w) ? yt(p[w], f[w]) || (p[w].type === "geojson" && f[w].type === "geojson" && Fn(p, f, w) ? qt(g, { command: "setGeoJSONSourceData", args: [w, f[w].data] }) : Er(w, f, g, x)) : ls(w, f, g));
7961
7961
  })(i.sources, e.sources, l, s);
7962
7962
  const d = [];
7963
7963
  i.layers && i.layers.forEach((p) => {
@@ -8171,7 +8171,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
8171
8171
  i.bucket.iconsInText = !!Y && Y.iconsInText, (Y || $) && wm(i.bucket, x, R, $, i.imageMap, l, C, D, W, se, i.canonical);
8172
8172
  }
8173
8173
  i.showCollisionBoxes && i.bucket.generateCollisionDebugBuffers();
8174
- }, T.bp = uh, T.bq = lh, T.br = hh, T.bs = Yn, T.bt = ph, T.bu = class {
8174
+ }, T.bp = uh, T.bq = lh, T.br = hh, T.bs = Qn, T.bt = ph, T.bu = class {
8175
8175
  constructor(i) {
8176
8176
  this._marks = { start: [i.url, "start"].join("#"), end: [i.url, "end"].join("#"), measure: i.url.toString() }, performance.mark(this._marks.start);
8177
8177
  }
@@ -8188,12 +8188,12 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
8188
8188
  }
8189
8189
  return function(d, p, f, g, x) {
8190
8190
  const w = d.width, I = d.height;
8191
- Ar && Ei || (Ar = new OffscreenCanvas(w, I), Ei = Ar.getContext("2d", { willReadFrequently: !0 })), Ar.width = w, Ar.height = I, Ei.drawImage(d, 0, 0, w, I);
8191
+ Cr && Ei || (Cr = new OffscreenCanvas(w, I), Ei = Cr.getContext("2d", { willReadFrequently: !0 })), Cr.width = w, Cr.height = I, Ei.drawImage(d, 0, 0, w, I);
8192
8192
  const C = Ei.getImageData(p, f, g, x);
8193
8193
  return Ei.clearRect(0, 0, w, I), C.data;
8194
8194
  }(i, e, r, s, l);
8195
8195
  });
8196
- }, T.bw = fd, T.bx = _e, T.by = ye, T.bz = Vu, T.c = zn, T.d = (i) => c(void 0, void 0, void 0, function* () {
8196
+ }, T.bw = fd, T.bx = _e, T.by = ye, T.bz = Vu, T.c = Dn, T.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 {
@@ -8210,9 +8210,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
8210
8210
  }, s.onerror = () => r(new Error("Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."));
8211
8211
  const l = new Blob([new Uint8Array(i)], { type: "image/png" });
8212
8212
  s.src = i.byteLength ? URL.createObjectURL(l) : Gs;
8213
- }), T.g = mr, T.h = (i, e) => dn($t(i, { type: "json" }), e), T.i = Pr, T.j = Gr, T.k = Zr, T.l = (i, e) => dn($t(i, { type: "arrayBuffer" }), e), T.m = dn, T.n = function(i) {
8213
+ }), T.g = mr, T.h = (i, e) => dn($t(i, { type: "json" }), e), T.i = Ar, T.j = Gr, T.k = Zr, T.l = (i, e) => dn($t(i, { type: "arrayBuffer" }), e), T.m = dn, T.n = function(i) {
8214
8214
  return new ph(i).readFields(Qf, []);
8215
- }, T.o = Za, T.p = Hu, T.q = o, T.r = Zc, T.s = pn, T.t = Ma, T.u = ze, T.v = he, T.w = hi, T.x = Lr, T.y = function([i, e, r]) {
8215
+ }, T.o = Za, T.p = Hu, T.q = o, T.r = Zc, T.s = pn, T.t = Ma, T.u = ze, T.v = he, T.w = hi, T.x = Rr, T.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
  }, T.z = $i;
8218
8218
  }), N("worker", ["./shared"], function(T) {
@@ -8313,12 +8313,12 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
8313
8313
  const at = new AbortController();
8314
8314
  this.inFlightDependencies.push(at), nt = q.sendAsync({ type: "GI", data: { icons: He, source: this.source, tileID: this.tileID, type: "patterns" } }, at);
8315
8315
  }
8316
- const [pt, rt, Ct] = yield Promise.all([ce, Ge, nt]), Zt = new _e(pt), Qt = new T.bn(rt, Ct);
8316
+ const [ft, rt, Ct] = yield Promise.all([ce, Ge, nt]), Zt = new _e(ft), Qt = new T.bn(rt, Ct);
8317
8317
  for (const at in re) {
8318
8318
  const vt = re[at];
8319
- vt instanceof T.a6 ? (we(vt.layers, this.zoom, O), T.bo({ bucket: vt, glyphMap: pt, glyphPositions: Zt.positions, imageMap: rt, imagePositions: Qt.iconPositions, showCollisionBoxes: this.showCollisionBoxes, canonical: this.tileID.canonical })) : vt.hasPattern && (vt instanceof T.bp || vt instanceof T.bq || vt instanceof T.br) && (we(vt.layers, this.zoom, O), vt.addFeatures(J, this.tileID.canonical, Qt.patternPositions));
8319
+ vt instanceof T.a6 ? (we(vt.layers, this.zoom, O), T.bo({ bucket: vt, glyphMap: ft, glyphPositions: Zt.positions, imageMap: rt, imagePositions: Qt.iconPositions, showCollisionBoxes: this.showCollisionBoxes, canonical: this.tileID.canonical })) : vt.hasPattern && (vt instanceof T.bp || vt instanceof T.bq || vt instanceof T.br) && (we(vt.layers, this.zoom, O), vt.addFeatures(J, this.tileID.canonical, Qt.patternPositions));
8320
8320
  }
8321
- return this.status = "done", { buckets: Object.values(re).filter((at) => !at.isEmpty()), featureIndex: te, collisionBoxArray: this.collisionBoxArray, glyphAtlasImage: Zt.image, imageAtlas: Qt, glyphMap: this.returnDependencies ? pt : null, iconMap: this.returnDependencies ? rt : null, glyphPositions: this.returnDependencies ? Zt.positions : null };
8321
+ return this.status = "done", { buckets: Object.values(re).filter((at) => !at.isEmpty()), featureIndex: te, collisionBoxArray: this.collisionBoxArray, glyphAtlasImage: Zt.image, imageAtlas: Qt, glyphMap: this.returnDependencies ? ft : null, iconMap: this.returnDependencies ? rt : null, glyphPositions: this.returnDependencies ? Zt.positions : null };
8322
8322
  });
8323
8323
  }
8324
8324
  }
@@ -8439,7 +8439,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
8439
8439
  return M;
8440
8440
  });
8441
8441
  const Ne = T.bs.VectorTileFeature.prototype.toGeoJSON;
8442
- var dt = { exports: {} }, Ot = T.by, Ie = T.bs.VectorTileFeature, At = It;
8442
+ var pt = { exports: {} }, Ot = T.by, Ie = T.bs.VectorTileFeature, At = It;
8443
8443
  function It(G, M) {
8444
8444
  this.options = M || {}, this.features = G, this.length = G.length;
8445
8445
  }
@@ -8479,11 +8479,11 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
8479
8479
  var q = O.keys;
8480
8480
  for (E = 0; E < q.length; E++) M.writeStringField(3, q[E]);
8481
8481
  var Q = O.values;
8482
- for (E = 0; E < Q.length; E++) M.writeMessage(4, Mn, Q[E]);
8482
+ for (E = 0; E < Q.length; E++) M.writeMessage(4, zn, Q[E]);
8483
8483
  }
8484
8484
  function wt(G, M) {
8485
8485
  var E = G.feature;
8486
- E.id !== void 0 && M.writeVarintField(1, E.id), M.writeMessage(2, Zs, G), M.writeVarintField(3, E.type), M.writeMessage(4, Pr, E);
8486
+ E.id !== void 0 && M.writeVarintField(1, E.id), M.writeMessage(2, Zs, G), M.writeVarintField(3, E.type), M.writeMessage(4, Ar, E);
8487
8487
  }
8488
8488
  function Zs(G, M) {
8489
8489
  var E = G.feature, O = G.keys, q = G.values, Q = G.keycache, te = G.valuecache;
@@ -8504,7 +8504,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
8504
8504
  function Ti(G) {
8505
8505
  return G << 1 ^ G >> 31;
8506
8506
  }
8507
- function Pr(G, M) {
8507
+ function Ar(G, M) {
8508
8508
  for (var E = G.loadGeometry(), O = G.type, q = 0, Q = 0, te = E.length, re = 0; re < te; re++) {
8509
8509
  var J = E[re], de = 1;
8510
8510
  O === 1 && (de = J.length), M.writeVarint(hi(1, de));
@@ -8516,20 +8516,20 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
8516
8516
  O === 3 && M.writeVarint(hi(7, 1));
8517
8517
  }
8518
8518
  }
8519
- function Mn(G, M) {
8519
+ function zn(G, M) {
8520
8520
  var E = typeof G;
8521
8521
  E === "string" ? M.writeStringField(1, G) : E === "boolean" ? M.writeBooleanField(7, G) : E === "number" && (G % 1 != 0 ? M.writeDoubleField(3, G) : G < 0 ? M.writeSVarintField(6, G) : M.writeVarintField(5, G));
8522
8522
  }
8523
- dt.exports = Si, dt.exports.fromVectorTileJs = Si, dt.exports.fromGeojsonVt = function(G, M) {
8523
+ pt.exports = Si, pt.exports.fromVectorTileJs = Si, pt.exports.fromGeojsonVt = function(G, M) {
8524
8524
  M = M || {};
8525
8525
  var E = {};
8526
8526
  for (var O in G) E[O] = new Ur(G[O].features, M), E[O].name = O, E[O].version = M.version, E[O].extent = M.extent;
8527
8527
  return Si({ layers: E });
8528
- }, dt.exports.GeoJSONWrapper = Ur;
8529
- var fr = T.bx(dt.exports);
8530
- const Gs = { minZoom: 0, maxZoom: 16, minPoints: 2, radius: 40, extent: 512, nodeSize: 64, log: !1, generateId: !1, reduce: null, map: (G) => G }, un = Math.fround || (Ar = new Float32Array(1), (G) => (Ar[0] = +G, Ar[0]));
8531
- var Ar;
8532
- const Ei = 3, er = 5, zn = 6;
8528
+ }, pt.exports.GeoJSONWrapper = Ur;
8529
+ var fr = T.bx(pt.exports);
8530
+ const Gs = { minZoom: 0, maxZoom: 16, minPoints: 2, radius: 40, extent: 512, nodeSize: 64, log: !1, generateId: !1, reduce: null, map: (G) => G }, un = Math.fround || (Cr = new Float32Array(1), (G) => (Cr[0] = +G, Cr[0]));
8531
+ var Cr;
8532
+ const Ei = 3, er = 5, Dn = 6;
8533
8533
  class qr {
8534
8534
  constructor(M) {
8535
8535
  this.options = Object.assign(Object.create(Gs), M), this.trees = new Array(this.options.maxZoom + 1), this.stride = this.options.reduce ? 7 : 6, this.clusterProps = [];
@@ -8618,12 +8618,12 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
8618
8618
  for (const re of M) {
8619
8619
  const J = re * this.stride, de = E[J + er] > 1;
8620
8620
  let ge, ce, Pe;
8621
- if (de) ge = Dn(E, J, this.clusterProps), ce = E[J], Pe = E[J + 1];
8621
+ if (de) ge = Ln(E, J, this.clusterProps), ce = E[J], Pe = E[J + 1];
8622
8622
  else {
8623
8623
  const nt = this.points[E[J + Ei]];
8624
8624
  ge = nt.properties;
8625
- const [pt, rt] = nt.geometry.coordinates;
8626
- ce = Vi(pt), Pe = tr(rt);
8625
+ const [ft, rt] = nt.geometry.coordinates;
8626
+ ce = Vi(ft), Pe = tr(rt);
8627
8627
  }
8628
8628
  const Ge = { type: 1, geometry: [[Math.round(this.options.extent * (ce * Q - O)), Math.round(this.options.extent * (Pe * Q - q))]], tags: ge };
8629
8629
  let He;
@@ -8639,12 +8639,12 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
8639
8639
  if (J[ce + 2] <= E) continue;
8640
8640
  J[ce + 2] = E;
8641
8641
  const Pe = J[ce], Ge = J[ce + 1], He = M.within(J[ce], J[ce + 1], re), nt = J[ce + er];
8642
- let pt = nt;
8642
+ let ft = nt;
8643
8643
  for (const rt of He) {
8644
8644
  const Ct = rt * ge;
8645
- J[Ct + 2] > E && (pt += J[Ct + er]);
8645
+ J[Ct + 2] > E && (ft += J[Ct + er]);
8646
8646
  }
8647
- if (pt > nt && pt >= te) {
8647
+ if (ft > nt && ft >= te) {
8648
8648
  let rt, Ct = Pe * nt, Zt = Ge * nt, Qt = -1;
8649
8649
  const at = ((ce / ge | 0) << 5) + (E + 1) + this.points.length;
8650
8650
  for (const vt of He) {
@@ -8654,10 +8654,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
8654
8654
  const ii = J[Vt + er];
8655
8655
  Ct += J[Vt] * ii, Zt += J[Vt + 1] * ii, J[Vt + 4] = at, Q && (rt || (rt = this._map(J, ce, !0), Qt = this.clusterProps.length, this.clusterProps.push(rt)), Q(rt, this._map(J, Vt)));
8656
8656
  }
8657
- J[ce + 4] = at, de.push(Ct / pt, Zt / pt, 1 / 0, at, -1, pt), Q && de.push(Qt);
8657
+ J[ce + 4] = at, de.push(Ct / ft, Zt / ft, 1 / 0, at, -1, ft), Q && de.push(Qt);
8658
8658
  } else {
8659
8659
  for (let rt = 0; rt < ge; rt++) de.push(J[ce + rt]);
8660
- if (pt > 1) for (const rt of He) {
8660
+ if (ft > 1) for (const rt of He) {
8661
8661
  const Ct = rt * ge;
8662
8662
  if (!(J[Ct + 2] <= E)) {
8663
8663
  J[Ct + 2] = E;
@@ -8676,7 +8676,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
8676
8676
  }
8677
8677
  _map(M, E, O) {
8678
8678
  if (M[E + er] > 1) {
8679
- const te = this.clusterProps[M[E + zn]];
8679
+ const te = this.clusterProps[M[E + Dn]];
8680
8680
  return O ? Object.assign({}, te) : te;
8681
8681
  }
8682
8682
  const q = this.points[M[E + Ei]].properties, Q = this.options.map(q);
@@ -8684,11 +8684,11 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
8684
8684
  }
8685
8685
  }
8686
8686
  function mr(G, M, E) {
8687
- return { type: "Feature", id: G[M + Ei], properties: Dn(G, M, E), geometry: { type: "Point", coordinates: [(O = G[M], 360 * (O - 0.5)), dn(G[M + 1])] } };
8687
+ return { type: "Feature", id: G[M + Ei], properties: Ln(G, M, E), geometry: { type: "Point", coordinates: [(O = G[M], 360 * (O - 0.5)), dn(G[M + 1])] } };
8688
8688
  var O;
8689
8689
  }
8690
- function Dn(G, M, E) {
8691
- const O = G[M + er], q = O >= 1e4 ? `${Math.round(O / 1e3)}k` : O >= 1e3 ? Math.round(O / 100) / 10 + "k" : O, Q = G[M + zn], te = Q === -1 ? {} : Object.assign({}, E[Q]);
8690
+ function Ln(G, M, E) {
8691
+ const O = G[M + er], q = O >= 1e4 ? `${Math.round(O / 1e3)}k` : O >= 1e3 ? Math.round(O / 100) / 10 + "k" : O, Q = G[M + Dn], te = Q === -1 ? {} : Object.assign({}, E[Q]);
8692
8692
  return Object.assign(te, { cluster: !0, cluster_id: G[M + Ei], point_count: O, point_count_abbreviated: q });
8693
8693
  }
8694
8694
  function Vi(G) {
@@ -8725,7 +8725,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
8725
8725
  }
8726
8726
  return te = G - E, re = M - O, te * te + re * re;
8727
8727
  }
8728
- function Cr(G, M, E, O) {
8728
+ function kr(G, M, E, O) {
8729
8729
  const q = { id: G ?? null, type: M, geometry: E, tags: O, minX: 1 / 0, minY: 1 / 0, maxX: -1 / 0, maxY: -1 / 0 };
8730
8730
  if (M === "Point" || M === "MultiPoint" || M === "LineString") Zr(q, E);
8731
8731
  else if (M === "Polygon") Zr(q, E[0]);
@@ -8742,12 +8742,12 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
8742
8742
  if (q && q.length === 0) return;
8743
8743
  const Q = M.geometry.type, te = Math.pow(E.tolerance / ((1 << E.maxZoom) * E.extent), 2);
8744
8744
  let re = [], J = M.id;
8745
- if (E.promoteId ? J = M.properties[E.promoteId] : E.generateId && (J = O || 0), Q === "Point") Ln(q, re);
8746
- else if (Q === "MultiPoint") for (const de of q) Ln(de, re);
8745
+ if (E.promoteId ? J = M.properties[E.promoteId] : E.generateId && (J = O || 0), Q === "Point") Rn(q, re);
8746
+ else if (Q === "MultiPoint") for (const de of q) Rn(de, re);
8747
8747
  else if (Q === "LineString") he(q, re, te, !1);
8748
8748
  else if (Q === "MultiLineString") {
8749
8749
  if (E.lineMetrics) {
8750
- for (const de of q) re = [], he(de, re, te, !1), G.push(Cr(J, "LineString", re, M.properties));
8750
+ for (const de of q) re = [], he(de, re, te, !1), G.push(kr(J, "LineString", re, M.properties));
8751
8751
  return;
8752
8752
  }
8753
8753
  fn(q, re, te, !1);
@@ -8765,9 +8765,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
8765
8765
  fn(de, ge, te, !0), re.push(ge);
8766
8766
  }
8767
8767
  }
8768
- G.push(Cr(J, Q, re, M.properties));
8768
+ G.push(kr(J, Q, re, M.properties));
8769
8769
  }
8770
- function Ln(G, M) {
8770
+ function Rn(G, M) {
8771
8771
  M.push(as(G[0]), yt(G[1]), 0);
8772
8772
  }
8773
8773
  function he(G, M, E, O) {
@@ -8808,18 +8808,18 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
8808
8808
  let He = [];
8809
8809
  if (ce === "Point" || ce === "MultiPoint") ls(ge, He, E, O, q);
8810
8810
  else if (ce === "LineString") Hr(ge, He, E, O, q, !1, re.lineMetrics);
8811
- else if (ce === "MultiLineString") Rn(ge, He, E, O, q, !1);
8812
- else if (ce === "Polygon") Rn(ge, He, E, O, q, !0);
8811
+ else if (ce === "MultiLineString") Fn(ge, He, E, O, q, !1);
8812
+ else if (ce === "Polygon") Fn(ge, He, E, O, q, !0);
8813
8813
  else if (ce === "MultiPolygon") for (const nt of ge) {
8814
- const pt = [];
8815
- Rn(nt, pt, E, O, q, !0), pt.length && He.push(pt);
8814
+ const ft = [];
8815
+ Fn(nt, ft, E, O, q, !0), ft.length && He.push(ft);
8816
8816
  }
8817
8817
  if (He.length) {
8818
8818
  if (re.lineMetrics && ce === "LineString") {
8819
- for (const nt of He) J.push(Cr(de.id, ce, nt, de.tags));
8819
+ for (const nt of He) J.push(kr(de.id, ce, nt, de.tags));
8820
8820
  continue;
8821
8821
  }
8822
- ce !== "LineString" && ce !== "MultiLineString" || (He.length === 1 ? (ce = "LineString", He = He[0]) : ce = "MultiLineString"), ce !== "Point" && ce !== "MultiPoint" || (ce = He.length === 3 ? "Point" : "MultiPoint"), J.push(Cr(de.id, ce, He, de.tags));
8822
+ ce !== "LineString" && ce !== "MultiLineString" || (He.length === 1 ? (ce = "LineString", He = He[0]) : ce = "MultiLineString"), ce !== "Point" && ce !== "MultiPoint" || (ce = He.length === 3 ? "Point" : "MultiPoint"), J.push(kr(de.id, ce, He, de.tags));
8823
8823
  }
8824
8824
  }
8825
8825
  return J.length ? J : null;
@@ -8831,23 +8831,23 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
8831
8831
  }
8832
8832
  }
8833
8833
  function Hr(G, M, E, O, q, Q, te) {
8834
- let re = kr(G);
8834
+ let re = Er(G);
8835
8835
  const J = q === 0 ? cs : hs;
8836
8836
  let de, ge, ce = G.start;
8837
- for (let pt = 0; pt < G.length - 3; pt += 3) {
8838
- const rt = G[pt], Ct = G[pt + 1], Zt = G[pt + 2], Qt = G[pt + 3], at = G[pt + 4], vt = q === 0 ? rt : Ct, Vt = q === 0 ? Qt : at;
8837
+ for (let ft = 0; ft < G.length - 3; ft += 3) {
8838
+ const rt = G[ft], Ct = G[ft + 1], Zt = G[ft + 2], Qt = G[ft + 3], at = G[ft + 4], vt = q === 0 ? rt : Ct, Vt = q === 0 ? Qt : at;
8839
8839
  let ii = !1;
8840
- te && (de = Math.sqrt(Math.pow(rt - Qt, 2) + Math.pow(Ct - at, 2))), vt < E ? Vt > E && (ge = J(re, rt, Ct, Qt, at, E), te && (re.start = ce + de * ge)) : vt > O ? Vt < O && (ge = J(re, rt, Ct, Qt, at, O), te && (re.start = ce + de * ge)) : Xi(re, rt, Ct, Zt), Vt < E && vt >= E && (ge = J(re, rt, Ct, Qt, at, E), ii = !0), Vt > O && vt <= O && (ge = J(re, rt, Ct, Qt, at, O), ii = !0), !Q && ii && (te && (re.end = ce + de * ge), M.push(re), re = kr(G)), te && (ce += de);
8840
+ te && (de = Math.sqrt(Math.pow(rt - Qt, 2) + Math.pow(Ct - at, 2))), vt < E ? Vt > E && (ge = J(re, rt, Ct, Qt, at, E), te && (re.start = ce + de * ge)) : vt > O ? Vt < O && (ge = J(re, rt, Ct, Qt, at, O), te && (re.start = ce + de * ge)) : Xi(re, rt, Ct, Zt), Vt < E && vt >= E && (ge = J(re, rt, Ct, Qt, at, E), ii = !0), Vt > O && vt <= O && (ge = J(re, rt, Ct, Qt, at, O), ii = !0), !Q && ii && (te && (re.end = ce + de * ge), M.push(re), re = Er(G)), te && (ce += de);
8841
8841
  }
8842
8842
  let Pe = G.length - 3;
8843
8843
  const Ge = G[Pe], He = G[Pe + 1], nt = q === 0 ? Ge : He;
8844
8844
  nt >= E && nt <= O && Xi(re, Ge, He, G[Pe + 2]), Pe = re.length - 3, Q && Pe >= 3 && (re[Pe] !== re[0] || re[Pe + 1] !== re[1]) && Xi(re, re[0], re[1], re[2]), re.length && M.push(re);
8845
8845
  }
8846
- function kr(G) {
8846
+ function Er(G) {
8847
8847
  const M = [];
8848
8848
  return M.size = G.size, M.start = G.start, M.end = G.end, M;
8849
8849
  }
8850
- function Rn(G, M, E, O, q, Q) {
8850
+ function Fn(G, M, E, O, q, Q) {
8851
8851
  for (const te of G) Hr(te, M, E, O, q, Q, !1);
8852
8852
  }
8853
8853
  function Xi(G, M, E, O) {
@@ -8878,7 +8878,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
8878
8878
  te.push(J);
8879
8879
  }
8880
8880
  }
8881
- E.push(Cr(q.id, Q, te, q.tags));
8881
+ E.push(kr(q.id, Q, te, q.tags));
8882
8882
  }
8883
8883
  return E;
8884
8884
  }
@@ -8988,9 +8988,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
8988
8988
  }
8989
8989
  if (Ge.source = null, M.length === 0) continue;
8990
8990
  ge > 1 && console.time("clipping");
8991
- const He = 0.5 * de.buffer / de.extent, nt = 0.5 - He, pt = 0.5 + He, rt = 1 + He;
8992
- let Ct = null, Zt = null, Qt = null, at = null, vt = qt(M, ce, O - He, O + pt, 0, Ge.minX, Ge.maxX, de), Vt = qt(M, ce, O + nt, O + rt, 0, Ge.minX, Ge.maxX, de);
8993
- M = null, vt && (Ct = qt(vt, ce, q - He, q + pt, 1, Ge.minY, Ge.maxY, de), Zt = qt(vt, ce, q + nt, q + rt, 1, Ge.minY, Ge.maxY, de), vt = null), Vt && (Qt = qt(Vt, ce, q - He, q + pt, 1, Ge.minY, Ge.maxY, de), at = qt(Vt, ce, q + nt, q + rt, 1, Ge.minY, Ge.maxY, de), Vt = null), ge > 1 && console.timeEnd("clipping"), J.push(Ct || [], E + 1, 2 * O, 2 * q), J.push(Zt || [], E + 1, 2 * O, 2 * q + 1), J.push(Qt || [], E + 1, 2 * O + 1, 2 * q), J.push(at || [], E + 1, 2 * O + 1, 2 * q + 1);
8991
+ const He = 0.5 * de.buffer / de.extent, nt = 0.5 - He, ft = 0.5 + He, rt = 1 + He;
8992
+ let Ct = null, Zt = null, Qt = null, at = null, vt = qt(M, ce, O - He, O + ft, 0, Ge.minX, Ge.maxX, de), Vt = qt(M, ce, O + nt, O + rt, 0, Ge.minX, Ge.maxX, de);
8993
+ M = null, vt && (Ct = qt(vt, ce, q - He, q + ft, 1, Ge.minY, Ge.maxY, de), Zt = qt(vt, ce, q + nt, q + rt, 1, Ge.minY, Ge.maxY, de), vt = null), Vt && (Qt = qt(Vt, ce, q - He, q + ft, 1, Ge.minY, Ge.maxY, de), at = qt(Vt, ce, q + nt, q + rt, 1, Ge.minY, Ge.maxY, de), Vt = null), ge > 1 && console.timeEnd("clipping"), J.push(Ct || [], E + 1, 2 * O, 2 * q), J.push(Zt || [], E + 1, 2 * O, 2 * q + 1), J.push(Qt || [], E + 1, 2 * O + 1, 2 * q), J.push(at || [], E + 1, 2 * O + 1, 2 * q + 1);
8994
8994
  }
8995
8995
  }
8996
8996
  getTile(M, E, O) {
@@ -9025,7 +9025,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
9025
9025
  }
9026
9026
  return !1;
9027
9027
  }
9028
- function Er(G, M) {
9028
+ function Mr(G, M) {
9029
9029
  const E = /* @__PURE__ */ new Map();
9030
9030
  if (G != null) if (G.type === "Feature") E.set(it(G, M), G);
9031
9031
  else for (const O of G.features) E.set(it(O, M), O);
@@ -9087,8 +9087,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
9087
9087
  if (!re || !te) return te;
9088
9088
  const J = {}, de = {}, ge = { accumulated: null, zoom: 0 }, ce = { properties: null }, Pe = Object.keys(re);
9089
9089
  for (const Ge of Pe) {
9090
- const [He, nt] = re[Ge], pt = T.bB(nt), rt = T.bB(typeof He == "string" ? [He, ["accumulated"], ["get", Ge]] : He);
9091
- J[Ge] = pt.value, de[Ge] = rt.value;
9090
+ const [He, nt] = re[Ge], ft = T.bB(nt), rt = T.bB(typeof He == "string" ? [He, ["accumulated"], ["get", Ge]] : He);
9091
+ J[Ge] = ft.value, de[Ge] = rt.value;
9092
9092
  }
9093
9093
  return te.map = (Ge) => {
9094
9094
  ce.properties = Ge;
@@ -9139,11 +9139,11 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
9139
9139
  const { promoteId: O } = M;
9140
9140
  if (M.request) {
9141
9141
  const q = yield T.h(M.request, E);
9142
- return this._dataUpdateable = yr(q.data, O) ? Er(q.data, O) : void 0, q.data;
9142
+ return this._dataUpdateable = yr(q.data, O) ? Mr(q.data, O) : void 0, q.data;
9143
9143
  }
9144
9144
  if (typeof M.data == "string") try {
9145
9145
  const q = JSON.parse(M.data);
9146
- return this._dataUpdateable = yr(q, O) ? Er(q, O) : void 0, q;
9146
+ return this._dataUpdateable = yr(q, O) ? Mr(q, O) : void 0, q;
9147
9147
  } catch {
9148
9148
  throw new Error(`Input data given to '${M.source}' is not a valid GeoJSON object.`);
9149
9149
  }
@@ -9343,9 +9343,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
9343
9343
  }
9344
9344
  oe.docStyle = typeof window < "u" && window.document && window.document.documentElement.style, oe.selectProp = oe.testProp(["userSelect", "MozUserSelect", "WebkitUserSelect", "msUserSelect"]), oe.transformProp = oe.testProp(["transform", "WebkitTransform"]);
9345
9345
  const _t = { supported: !1, testSupport: function(u) {
9346
- !Ne && et && (dt ? Ot(u) : Ze = u);
9346
+ !Ne && et && (pt ? Ot(u) : Ze = u);
9347
9347
  } };
9348
- let Ze, et, Ne = !1, dt = !1;
9348
+ let Ze, et, Ne = !1, pt = !1;
9349
9349
  function Ot(u) {
9350
9350
  const t = u.createTexture();
9351
9351
  u.bindTexture(u.TEXTURE_2D, t);
@@ -9358,7 +9358,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
9358
9358
  }
9359
9359
  var Ie;
9360
9360
  typeof document < "u" && (et = document.createElement("img"), et.onload = () => {
9361
- Ze && Ot(Ze), Ze = null, dt = !0;
9361
+ Ze && Ot(Ze), Ze = null, pt = !0;
9362
9362
  }, et.onerror = () => {
9363
9363
  Ne = !0, Ze = null;
9364
9364
  }, et.src = "data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA="), function(u) {
@@ -9598,11 +9598,11 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
9598
9598
  }
9599
9599
  }
9600
9600
  const Ti = 1e20;
9601
- function Pr(u, t, n, o, a, h, m, y, v) {
9602
- for (let b = t; b < t + o; b++) Mn(u, n * h + b, h, a, m, y, v);
9603
- for (let b = n; b < n + a; b++) Mn(u, b * h + t, 1, o, m, y, v);
9601
+ function Ar(u, t, n, o, a, h, m, y, v) {
9602
+ for (let b = t; b < t + o; b++) zn(u, n * h + b, h, a, m, y, v);
9603
+ for (let b = n; b < n + a; b++) zn(u, b * h + t, 1, o, m, y, v);
9604
9604
  }
9605
- function Mn(u, t, n, o, a, h, m) {
9605
+ function zn(u, t, n, o, a, h, m) {
9606
9606
  h[0] = 0, m[0] = -Ti, m[1] = Ti, a[0] = u[t];
9607
9607
  for (let y = 1, v = 0, b = 0; y < o; y++) {
9608
9608
  a[y] = u[t + y * n];
@@ -9705,7 +9705,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
9705
9705
  H[le] = me > 0 ? me * me : 0, U[le] = me < 0 ? me * me : 0;
9706
9706
  }
9707
9707
  }
9708
- Pr(H, 0, 0, b, P, b, this.f, this.v, this.z), Pr(U, Z, Z, y, v, b, this.f, this.v, this.z);
9708
+ Ar(H, 0, 0, b, P, b, this.f, this.v, this.z), Ar(U, Z, Z, y, v, b, this.f, this.v, this.z);
9709
9709
  for (let j = 0; j < A; j++) {
9710
9710
  const ee = Math.sqrt(H[j]) - Math.sqrt(U[j]);
9711
9711
  L[j] = Math.round(255 - 255 * (ee / this.radius + this.cutoff));
@@ -9725,7 +9725,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
9725
9725
  }
9726
9726
  }
9727
9727
  let un;
9728
- class Ar extends c.E {
9728
+ class Cr extends c.E {
9729
9729
  constructor(t) {
9730
9730
  super(), un = un || new c.q({ anchor: new c.D(c.v.light.anchor), position: new Gs(), color: new c.D(c.v.light.color), intensity: new c.D(c.v.light.intensity) }), this._transitionable = new c.T(un), 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 zn {
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
  }
@@ -9872,12 +9872,12 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
9872
9872
  return Object.keys(this.active).length;
9873
9873
  }
9874
9874
  }
9875
- const Dn = Math.floor(ae.hardwareConcurrency / 2);
9875
+ const Ln = Math.floor(ae.hardwareConcurrency / 2);
9876
9876
  let Vi, tr;
9877
9877
  function dn() {
9878
9878
  return Vi || (Vi = new mr()), Vi;
9879
9879
  }
9880
- mr.workerCount = c.C(globalThis) ? Math.max(Math.min(Dn, 3), 1) : 1;
9880
+ mr.workerCount = c.C(globalThis) ? Math.max(Math.min(Ln, 3), 1) : 1;
9881
9881
  class pn {
9882
9882
  constructor(t, n) {
9883
9883
  this.workerPool = t, this.actors = [], this.currentActor = 0, this.id = n;
@@ -9908,7 +9908,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
9908
9908
  function os() {
9909
9909
  return tr || (tr = new pn(dn(), c.G), tr.registerMessageHandler("GR", (u, t, n) => c.m(t, n))), tr;
9910
9910
  }
9911
- function Cr(u, t) {
9911
+ function kr(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(), v = u.tilesIn(o, y, m);
9927
9927
  v.sort(Gr);
9928
9928
  const b = [];
9929
- for (const A of v) b.push({ wrappedTileID: A.tileID.wrapped().key, queryResults: A.tile.queryRenderedFeatures(t, n, u._state, A.queryGeometry, A.cameraQueryGeometry, A.scale, a, h, y, Cr(u.transform, A.tileID)) });
9929
+ for (const A of v) b.push({ wrappedTileID: A.tileID.wrapped().key, queryResults: A.tile.queryRenderedFeatures(t, n, u._state, A.queryGeometry, A.cameraQueryGeometry, A.scale, a, h, y, kr(u.transform, A.tileID)) });
9930
9930
  const P = function(A) {
9931
9931
  const L = {}, F = {};
9932
9932
  for (const V of A) {
@@ -9948,7 +9948,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
9948
9948
  const n = u.tileID, o = t.tileID;
9949
9949
  return n.overscaledZ - o.overscaledZ || n.canonical.y - o.canonical.y || n.wrap - o.wrap || n.canonical.x - o.canonical.x;
9950
9950
  }
9951
- function Ln(u, t, n) {
9951
+ function Rn(u, t, n) {
9952
9952
  return c._(this, void 0, void 0, function* () {
9953
9953
  let o = u;
9954
9954
  if (u.url ? o = (yield c.h(t.transformRequest(u.url, "Source"), n)).data : yield ae.frameAsync(n), !o) return null;
@@ -10046,7 +10046,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
10046
10046
  return c._(this, void 0, void 0, function* () {
10047
10047
  this._loaded = !1, this.fire(new c.k("dataloading", { dataType: "source" })), this._tileJSONRequest = new AbortController();
10048
10048
  try {
10049
- const t = yield Ln(this._options, this.map._requestManager, this._tileJSONRequest);
10049
+ const t = yield Rn(this._options, this.map._requestManager, this._tileJSONRequest);
10050
10050
  this._tileJSONRequest = null, this._loaded = !0, this.map.style.sourceCaches[this.id].clearTiles(), t && (c.e(this, t), t.bounds && (this.tileBounds = new fn(t.bounds, this.minzoom, this.maxzoom)), this.fire(new c.k("data", { dataType: "source", sourceDataType: "metadata" })), this.fire(new c.k("data", { dataType: "source", sourceDataType: "content" })));
10051
10051
  } catch (t) {
10052
10052
  this._tileJSONRequest = null, this.fire(new c.j(t));
@@ -10131,7 +10131,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
10131
10131
  return c._(this, void 0, void 0, function* () {
10132
10132
  this._loaded = !1, this.fire(new c.k("dataloading", { dataType: "source" })), this._tileJSONRequest = new AbortController();
10133
10133
  try {
10134
- const t = yield Ln(this._options, this.map._requestManager, this._tileJSONRequest);
10134
+ const t = yield Rn(this._options, this.map._requestManager, this._tileJSONRequest);
10135
10135
  this._tileJSONRequest = null, this._loaded = !0, t && (c.e(this, t), t.bounds && (this.tileBounds = new fn(t.bounds, this.minzoom, this.maxzoom)), this.fire(new c.k("data", { dataType: "source", sourceDataType: "metadata" })), this.fire(new c.k("data", { dataType: "source", sourceDataType: "content" })));
10136
10136
  } catch (t) {
10137
10137
  this._tileJSONRequest = null, this.fire(new c.j(t));
@@ -10336,7 +10336,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
10336
10336
  }
10337
10337
  }
10338
10338
  var Hr = c.Y([{ name: "a_pos", type: "Int16", components: 2 }, { name: "a_texture_pos", type: "Int16", components: 2 }]);
10339
- class kr extends c.E {
10339
+ class Er extends c.E {
10340
10340
  constructor(t, n, o, a) {
10341
10341
  super(), this.id = t, this.dispatcher = o, this.coordinates = n.coordinates, this.type = "image", this.minzoom = 0, this.maxzoom = 22, this.tileSize = 512, this.tiles = {}, this._loaded = !1, this.setEventedParent(a), this.options = n;
10342
10342
  }
@@ -10403,7 +10403,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
10403
10403
  return !1;
10404
10404
  }
10405
10405
  }
10406
- class Rn extends kr {
10406
+ class Fn extends Er {
10407
10407
  constructor(t, n, o, a) {
10408
10408
  super(t, n, o, a), this.roundZoom = !0, this.type = "video", this.options = n;
10409
10409
  }
@@ -10460,7 +10460,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
10460
10460
  return this.video && !this.video.paused;
10461
10461
  }
10462
10462
  }
10463
- class Xi extends kr {
10463
+ class Xi extends Er {
10464
10464
  constructor(t, n, o, a) {
10465
10465
  super(t, n, o, a), n.coordinates ? Array.isArray(n.coordinates) && n.coordinates.length === 4 && !n.coordinates.some((h) => !Array.isArray(h) || h.length !== 2 || h.some((m) => typeof m != "number")) || this.fire(new c.j(new c.a2(`sources.${t}`, null, '"coordinates" property must be an array of 4 longitude/latitude array pairs'))) : this.fire(new c.j(new c.a2(`sources.${t}`, null, 'missing required property "coordinates"'))), n.animate && typeof n.animate != "boolean" && this.fire(new c.j(new c.a2(`sources.${t}`, null, 'optional "animate" property must be a boolean value'))), n.canvas ? typeof n.canvas == "string" || n.canvas instanceof HTMLCanvasElement || this.fire(new c.j(new c.a2(`sources.${t}`, null, '"canvas" must be either a string representing the ID of the canvas element from which to read, or an HTMLCanvasElement instance'))) : this.fire(new c.j(new c.a2(`sources.${t}`, null, 'missing required property "canvas"'))), this.options = n, this.animate = n.animate === void 0 || n.animate;
10466
10466
  }
@@ -10510,7 +10510,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
10510
10510
  case "geojson":
10511
10511
  return ls;
10512
10512
  case "image":
10513
- return kr;
10513
+ return Er;
10514
10514
  case "raster":
10515
10515
  return yt;
10516
10516
  case "raster-dem":
@@ -10518,7 +10518,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
10518
10518
  case "vector":
10519
10519
  return as;
10520
10520
  case "video":
10521
- return Rn;
10521
+ return Fn;
10522
10522
  case "canvas":
10523
10523
  return Xi;
10524
10524
  }
@@ -11220,7 +11220,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
11220
11220
  let n = !0;
11221
11221
  return u === "always" || u !== "never" && t !== "never" || (n = !1), n;
11222
11222
  }
11223
- class Er {
11223
+ class Mr {
11224
11224
  constructor(t, n, o) {
11225
11225
  const a = this.boxCells = [], h = this.circleCells = [];
11226
11226
  this.xCellCount = Math.ceil(t / o), this.yCellCount = Math.ceil(n / o);
@@ -11481,8 +11481,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
11481
11481
  }
11482
11482
  }
11483
11483
  const nt = 100;
11484
- class pt {
11485
- constructor(t, n, o = new Er(t.width + 200, t.height + 200, 25), a = new Er(t.width + 200, t.height + 200, 25)) {
11484
+ class ft {
11485
+ constructor(t, n, o = new Mr(t.width + 200, t.height + 200, 25), a = new Mr(t.width + 200, t.height + 200, 25)) {
11486
11486
  this.transform = t, this.mapProjection = n, this.grid = o, this.ignoredGrid = a, this.pitchFactor = Math.cos(t._pitch) * t.cameraToCenterDistance, this.screenRightBoundary = t.width + nt, this.screenBottomBoundary = t.height + nt, this.gridRightBoundary = t.width + 200, this.gridBottomBoundary = t.height + 200, this.perspectiveRatioCutoff = 0.6;
11487
11487
  }
11488
11488
  placeCollisionBox(t, n, o, a, h, m, y, v, b, P, A) {
@@ -11649,7 +11649,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
11649
11649
  }
11650
11650
  class ui {
11651
11651
  constructor(t, n, o, a, h, m) {
11652
- this.transform = t.clone(), this.terrain = o, this.collisionIndex = new pt(this.transform, n), this.placements = {}, this.opacities = {}, this.variableOffsets = {}, this.stale = !1, this.commitTime = 0, this.fadeDuration = a, this.retainedQueryData = {}, this.collisionGroups = new Vt(h), this.collisionCircleArrays = {}, this.collisionBoxArrays = /* @__PURE__ */ new Map(), this.prevPlacement = m, m && (m.prevPlacement = void 0), this.placedOrientations = {};
11652
+ this.transform = t.clone(), this.terrain = o, this.collisionIndex = new ft(this.transform, n), this.placements = {}, this.opacities = {}, this.variableOffsets = {}, this.stale = !1, this.commitTime = 0, this.fadeDuration = a, this.retainedQueryData = {}, this.collisionGroups = new Vt(h), this.collisionCircleArrays = {}, this.collisionBoxArrays = /* @__PURE__ */ new Map(), this.prevPlacement = m, m && (m.prevPlacement = void 0), this.placedOrientations = {};
11653
11653
  }
11654
11654
  _getTerrainElevationFunc(t) {
11655
11655
  const n = this.terrain;
@@ -11689,8 +11689,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
11689
11689
  if (F) return void (this.placements[Ae.crossTileID] = new Qt(!1, !1, !1));
11690
11690
  let ht = !1, Rt = !1, fi = !0, sr = null, Ft = { box: null, placeable: !1, offscreen: null }, Di = { box: null, placeable: !1, offscreen: null }, Ai = null, mi = null, gi = null, or = 0, In = 0, To = 0;
11691
11691
  Ee.textFeatureIndex ? or = Ee.textFeatureIndex : Ae.useRuntimeCollisionCircles && (or = Ae.featureIndex), Ee.verticalTextFeatureIndex && (In = Ee.verticalTextFeatureIndex);
11692
- const Hn = Ee.textBox;
11693
- if (Hn) {
11692
+ const Wn = Ee.textBox;
11693
+ if (Wn) {
11694
11694
  const li = (_i) => {
11695
11695
  let yi = c.ai.horizontal;
11696
11696
  if (a.allowVerticalPlacement && !_i && this.prevPlacement) {
@@ -11702,41 +11702,41 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
11702
11702
  if (a.allowVerticalPlacement && Ae.numVerticalGlyphVertices > 0 && Ee.verticalTextBox) {
11703
11703
  for (const si of a.writingModes) if (si === c.ai.vertical ? (Ft = yi(), Di = Ft) : Ft = _i(), Ft && Ft.placeable) break;
11704
11704
  } else Ft = _i();
11705
- }, rn = Ae.textAnchorOffsetStartIndex, Wn = Ae.textAnchorOffsetEndIndex;
11706
- if (Wn === rn) {
11705
+ }, rn = Ae.textAnchorOffsetStartIndex, Xn = Ae.textAnchorOffsetEndIndex;
11706
+ if (Xn === rn) {
11707
11707
  const _i = (yi, si) => {
11708
- const jt = this.collisionIndex.placeCollisionBox(yi, j, L, v, b, ve, me, m, U.predicate, Ve);
11709
- return jt && jt.placeable && (this.markUsedOrientation(a, si, Ae), this.placedOrientations[Ae.crossTileID] = si), jt;
11708
+ const Ut = this.collisionIndex.placeCollisionBox(yi, j, L, v, b, ve, me, m, U.predicate, Ve);
11709
+ return Ut && Ut.placeable && (this.markUsedOrientation(a, si, Ae), this.placedOrientations[Ae.crossTileID] = si), Ut;
11710
11710
  };
11711
- ar(() => _i(Hn, c.ai.horizontal), () => {
11711
+ ar(() => _i(Wn, c.ai.horizontal), () => {
11712
11712
  const yi = Ee.verticalTextBox;
11713
11713
  return a.allowVerticalPlacement && Ae.numVerticalGlyphVertices > 0 && yi ? _i(yi, c.ai.vertical) : { box: null, offscreen: null };
11714
11714
  }), li(Ft && Ft.placeable);
11715
11715
  } else {
11716
11716
  let _i = c.ar[(st = (Lt = this.prevPlacement) === null || Lt === void 0 ? void 0 : Lt.variableOffsets[Ae.crossTileID]) === null || st === void 0 ? void 0 : st.anchor];
11717
- const yi = (jt, Xn, Oa) => {
11718
- const ri = jt.x2 - jt.x1, Wl = jt.y2 - jt.y1, Po = Ae.textBoxScale, Ao = De && ne === "never" ? Xn : null;
11717
+ const yi = (Ut, Jn, Oa) => {
11718
+ const ri = Ut.x2 - Ut.x1, Wl = Ut.y2 - Ut.y1, Po = Ae.textBoxScale, Ao = De && ne === "never" ? Jn : null;
11719
11719
  let nn = null, Xl = j === "never" ? 1 : 2, Va = "never";
11720
11720
  _i && Xl++;
11721
11721
  for (let Na = 0; Na < Xl; Na++) {
11722
- for (let ja = rn; ja < Wn; ja++) {
11722
+ for (let ja = rn; ja < Xn; ja++) {
11723
11723
  const Co = a.textAnchorOffsets.get(ja);
11724
11724
  if (_i && Co.textAnchor !== _i) continue;
11725
- const Jn = this.attemptAnchorPlacement(Co, jt, ri, Wl, Po, me, ve, L, v, b, U, Va, Ae, a, Oa, m, y, Ao, Ve);
11726
- if (Jn && (nn = Jn.placedGlyphBoxes, nn && nn.placeable)) return ht = !0, sr = Jn.shift, nn;
11725
+ const Kn = this.attemptAnchorPlacement(Co, Ut, ri, Wl, Po, me, ve, L, v, b, U, Va, Ae, a, Oa, m, y, Ao, Ve);
11726
+ if (Kn && (nn = Kn.placedGlyphBoxes, nn && nn.placeable)) return ht = !0, sr = Kn.shift, nn;
11727
11727
  }
11728
11728
  _i ? _i = null : Va = j;
11729
11729
  }
11730
- return o && !nn && (nn = { box: this.collisionIndex.placeCollisionBox(Hn, "always", L, v, b, ve, me, m, U.predicate, Ve, new c.P(0, 0)).box, offscreen: !1, placeable: !1 }), nn;
11730
+ return o && !nn && (nn = { box: this.collisionIndex.placeCollisionBox(Wn, "always", L, v, b, ve, me, m, U.predicate, Ve, new c.P(0, 0)).box, offscreen: !1, placeable: !1 }), nn;
11731
11731
  };
11732
- ar(() => yi(Hn, Ee.iconBox, c.ai.horizontal), () => {
11733
- const jt = Ee.verticalTextBox;
11734
- return a.allowVerticalPlacement && (!Ft || !Ft.placeable) && Ae.numVerticalGlyphVertices > 0 && jt ? yi(jt, Ee.verticalIconBox, c.ai.vertical) : { box: null, occluded: !0, offscreen: null };
11732
+ ar(() => yi(Wn, Ee.iconBox, c.ai.horizontal), () => {
11733
+ const Ut = Ee.verticalTextBox;
11734
+ return a.allowVerticalPlacement && (!Ft || !Ft.placeable) && Ae.numVerticalGlyphVertices > 0 && Ut ? yi(Ut, Ee.verticalIconBox, c.ai.vertical) : { box: null, occluded: !0, offscreen: null };
11735
11735
  }), Ft && (ht = Ft.placeable, fi = Ft.offscreen);
11736
11736
  const si = li(Ft && Ft.placeable);
11737
11737
  if (!ht && this.prevPlacement) {
11738
- const jt = this.prevPlacement.variableOffsets[Ae.crossTileID];
11739
- jt && (this.variableOffsets[Ae.crossTileID] = jt, this.markUsedJustification(a, jt.anchor, Ae, si));
11738
+ const Ut = this.prevPlacement.variableOffsets[Ae.crossTileID];
11739
+ Ut && (this.variableOffsets[Ae.crossTileID] = Ut, this.markUsedJustification(a, Ut.anchor, Ae, si));
11740
11740
  }
11741
11741
  }
11742
11742
  }
@@ -11959,7 +11959,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
11959
11959
  return this.placement.commit(t), this.placement;
11960
11960
  }
11961
11961
  }
11962
- const Mr = 512 / c.X / 2;
11962
+ const zr = 512 / c.X / 2;
11963
11963
  class mn {
11964
11964
  constructor(t, n, o) {
11965
11965
  this.tileID = t, this.bucketInstanceId = o, this._symbolsByKey = {};
@@ -11969,7 +11969,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
11969
11969
  v ? v.push(m) : a.set(y, [m]);
11970
11970
  }
11971
11971
  for (const [h, m] of a) {
11972
- const y = { positions: m.map((v) => ({ x: Math.floor(v.anchorX * Mr), y: Math.floor(v.anchorY * Mr) })), crossTileIDs: m.map((v) => v.crossTileID) };
11972
+ const y = { positions: m.map((v) => ({ x: Math.floor(v.anchorX * zr), y: Math.floor(v.anchorY * zr) })), crossTileIDs: m.map((v) => v.crossTileID) };
11973
11973
  if (y.positions.length > 128) {
11974
11974
  const v = new c.aw(y.positions.length, 16, Uint16Array);
11975
11975
  for (const { x: b, y: P } of y.positions) v.add(b, P);
@@ -11979,8 +11979,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
11979
11979
  }
11980
11980
  }
11981
11981
  getScaledCoordinates(t, n) {
11982
- const { x: o, y: a, z: h } = this.tileID.canonical, { x: m, y, z: v } = n.canonical, b = Mr / Math.pow(2, v - h), P = (y * c.X + t.anchorY) * b, A = a * c.X * Mr;
11983
- return { x: Math.floor((m * c.X + t.anchorX) * b - o * c.X * Mr), y: Math.floor(P - A) };
11982
+ const { x: o, y: a, z: h } = this.tileID.canonical, { x: m, y, z: v } = n.canonical, b = zr / Math.pow(2, v - h), P = (y * c.X + t.anchorY) * b, A = a * c.X * zr;
11983
+ return { x: Math.floor((m * c.X + t.anchorX) * b - o * c.X * zr), y: Math.floor(P - A) };
11984
11984
  }
11985
11985
  findMatches(t, n, o) {
11986
11986
  const a = this.tileID.canonical.z < n.canonical.z ? 1 : Math.pow(2, this.tileID.canonical.z - n.canonical.z);
@@ -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 pn(dn(), 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 hi(), this.imageManager.setEventedParent(this), this.glyphManager = new fr(t._requestManager, n.localIdeographFontFamily), this.lineAtlas = new zn(256, 512), this.crossTileSymbolIndex = new Ji(), 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()), _r().on(Te, this._rtlPluginLoaded), this.on("data", (o) => {
12108
+ }, this.map = t, this.dispatcher = new pn(dn(), 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 hi(), this.imageManager.setEventedParent(this), this.glyphManager = new fr(t._requestManager, n.localIdeographFontFamily), this.lineAtlas = new Dn(256, 512), this.crossTileSymbolIndex = new Ji(), 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()), _r().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 || !ps(this, c.x(h))) {
12143
12143
  this._loaded = !0, this.stylesheet = h;
12144
12144
  for (const m in h.sources) this.addSource(m, h.sources[m], { validate: !1 });
12145
- h.sprite ? this._loadSprite(h.sprite) : this.imageManager.setLoaded(!0), this.glyphManager.setURL(h.glyphs), this._createLayers(), this.light = new Ar(this.stylesheet.light), this.sky = new er(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 Cr(this.stylesheet.light), this.sky = new er(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() {
@@ -13404,7 +13404,7 @@ uniform ${P} ${A} u_${L};
13404
13404
  }(m, m, y);
13405
13405
  const v = a.properties.get("color");
13406
13406
  return { u_matrix: u, u_lightpos: m, u_lightintensity: a.properties.get("intensity"), u_lightcolor: [v.r, v.g, v.b], u_vertical_gradient: +n, u_opacity: o };
13407
- }, Qs = (u, t, n, o, a, h, m) => c.e(Ys(u, t, n, o), Ks(h, t, m), { u_height_factor: -Math.pow(2, a.overscaledZ) / m.tileSize / 8 }), gs = (u) => ({ u_matrix: u }), Fn = (u, t, n, o) => c.e(gs(u), Ks(n, t, o)), Ec = (u, t) => ({ u_matrix: u, u_world: t }), Mc = (u, t, n, o, a) => c.e(Fn(u, t, n, o), { u_world: a }), pl = (u, t, n, o) => {
13407
+ }, Qs = (u, t, n, o, a, h, m) => c.e(Ys(u, t, n, o), Ks(h, t, m), { u_height_factor: -Math.pow(2, a.overscaledZ) / m.tileSize / 8 }), gs = (u) => ({ u_matrix: u }), Bn = (u, t, n, o) => c.e(gs(u), Ks(n, t, o)), Ec = (u, t) => ({ u_matrix: u, u_world: t }), Mc = (u, t, n, o, a) => c.e(Bn(u, t, n, o), { u_world: a }), pl = (u, t, n, o) => {
13408
13408
  const a = u.transform;
13409
13409
  let h, m;
13410
13410
  if (o.paint.get("circle-pitch-alignment") === "map") {
@@ -13502,7 +13502,7 @@ uniform ${P} ${A} u_${L};
13502
13502
  }
13503
13503
  }
13504
13504
  const Ko = /* @__PURE__ */ new WeakMap();
13505
- function Bn(u) {
13505
+ function On(u) {
13506
13506
  var t;
13507
13507
  if (Ko.has(u)) return Ko.get(u);
13508
13508
  {
@@ -13560,7 +13560,7 @@ uniform ${P} ${A} u_${L};
13560
13560
  (t[0] !== n[0] || t[1] !== n[1] || t[2] !== n[2] || t[3] !== n[3] || this.dirty) && (this.gl.colorMask(t[0], t[1], t[2], t[3]), this.current = t, this.dirty = !1);
13561
13561
  }
13562
13562
  }
13563
- class On extends ut {
13563
+ class Vn extends ut {
13564
13564
  getDefault() {
13565
13565
  return !0;
13566
13566
  }
@@ -13778,7 +13778,7 @@ uniform ${P} ${A} u_${L};
13778
13778
  var n;
13779
13779
  if (t === this.current && !this.dirty) return;
13780
13780
  const o = this.gl;
13781
- Bn(o) ? o.bindVertexArray(t) : (n = o.getExtension("OES_vertex_array_object")) === null || n === void 0 || n.bindVertexArrayOES(t), this.current = t, this.dirty = !1;
13781
+ On(o) ? o.bindVertexArray(t) : (n = o.getExtension("OES_vertex_array_object")) === null || n === void 0 || n.bindVertexArrayOES(t), this.current = t, this.dirty = !1;
13782
13782
  }
13783
13783
  }
13784
13784
  class El extends ut {
@@ -13801,7 +13801,7 @@ uniform ${P} ${A} u_${L};
13801
13801
  n.pixelStorei(n.UNPACK_PREMULTIPLY_ALPHA_WEBGL, t), this.current = t, this.dirty = !1;
13802
13802
  }
13803
13803
  }
13804
- class zr extends ut {
13804
+ class Dr extends ut {
13805
13805
  getDefault() {
13806
13806
  return !1;
13807
13807
  }
@@ -13872,7 +13872,7 @@ uniform ${P} ${A} u_${L};
13872
13872
  class ra {
13873
13873
  constructor(t) {
13874
13874
  var n, o;
13875
- if (this.gl = t, this.clearColor = new xs(this), this.clearDepth = new Fc(this), this.clearStencil = new ro(this), this.colorMask = new Bc(this), this.depthMask = new On(this), this.stencilMask = new Oc(this), this.stencilFunc = new xl(this), this.stencilOp = new Vc(this), this.stencilTest = new vl(this), this.depthRange = new Yo(this), this.depthTest = new bl(this), this.depthFunc = new wl(this), this.blend = new Sl(this), this.blendFunc = new Tl(this), this.blendColor = new _n(this), this.blendEquation = new Il(this), this.cullFace = new Nc(this), this.cullFaceSide = new jc(this), this.frontFace = new Pl(this), this.program = new vs(this), this.activeTexture = new Uc(this), this.viewport = new no(this), this.bindFramebuffer = new $c(this), this.bindRenderbuffer = new qc(this), this.bindTexture = new Al(this), this.bindVertexBuffer = new Cl(this), this.bindElementBuffer = new kl(this), this.bindVertexArray = new Qo(this), this.pixelStoreUnpack = new El(this), this.pixelStoreUnpackPremultiplyAlpha = new so(this), this.pixelStoreUnpackFlipY = new zr(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), Bn(t)) {
13875
+ if (this.gl = t, this.clearColor = new xs(this), this.clearDepth = new Fc(this), this.clearStencil = new ro(this), this.colorMask = new Bc(this), this.depthMask = new Vn(this), this.stencilMask = new Oc(this), this.stencilFunc = new xl(this), this.stencilOp = new Vc(this), this.stencilTest = new vl(this), this.depthRange = new Yo(this), this.depthTest = new bl(this), this.depthFunc = new wl(this), this.blend = new Sl(this), this.blendFunc = new Tl(this), this.blendColor = new _n(this), this.blendEquation = new Il(this), this.cullFace = new Nc(this), this.cullFaceSide = new jc(this), this.frontFace = new Pl(this), this.program = new vs(this), this.activeTexture = new Uc(this), this.viewport = new no(this), this.bindFramebuffer = new $c(this), this.bindRenderbuffer = new qc(this), this.bindTexture = new Al(this), this.bindVertexBuffer = new Cl(this), this.bindElementBuffer = new kl(this), this.bindVertexArray = new Qo(this), this.pixelStoreUnpack = new El(this), this.pixelStoreUnpackPremultiplyAlpha = new so(this), this.pixelStoreUnpackFlipY = new Dr(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), On(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");
@@ -13920,11 +13920,11 @@ uniform ${P} ${A} u_${L};
13920
13920
  }
13921
13921
  createVertexArray() {
13922
13922
  var t;
13923
- return Bn(this.gl) ? this.gl.createVertexArray() : (t = this.gl.getExtension("OES_vertex_array_object")) === null || t === void 0 ? void 0 : t.createVertexArrayOES();
13923
+ return On(this.gl) ? this.gl.createVertexArray() : (t = this.gl.getExtension("OES_vertex_array_object")) === null || t === void 0 ? void 0 : t.createVertexArrayOES();
13924
13924
  }
13925
13925
  deleteVertexArray(t) {
13926
13926
  var n;
13927
- return Bn(this.gl) ? this.gl.deleteVertexArray(t) : (n = this.gl.getExtension("OES_vertex_array_object")) === null || n === void 0 ? void 0 : n.deleteVertexArrayOES(t);
13927
+ return On(this.gl) ? this.gl.deleteVertexArray(t) : (n = this.gl.getExtension("OES_vertex_array_object")) === null || n === void 0 ? void 0 : n.deleteVertexArrayOES(t);
13928
13928
  }
13929
13929
  unbindVAO() {
13930
13930
  this.bindVertexArray.set(null);
@@ -14051,22 +14051,22 @@ uniform ${P} ${A} u_${L};
14051
14051
  let fi, sr, Ft, Di, Ai = [0, 0], mi = null;
14052
14052
  if (a) sr = Se.glyphAtlasTexture, Ft = F.LINEAR, fi = Se.glyphAtlasTexture.size, Ve.iconsInText && (Ai = Se.imageAtlasTexture.size, mi = Se.imageAtlasTexture, Di = Lt || u.options.rotating || u.options.zooming || Ke.kind === "composite" || Ke.kind === "camera" ? F.LINEAR : F.NEAREST);
14053
14053
  else {
14054
- const jt = n.layout.get("icon-size").constantOr(0) !== 1 || Ve.iconsNeedLinear;
14055
- sr = Se.imageAtlasTexture, Ft = Ee || u.options.rotating || u.options.zooming || jt || Lt ? F.LINEAR : F.NEAREST, fi = Se.imageAtlasTexture.size;
14054
+ const Ut = n.layout.get("icon-size").constantOr(0) !== 1 || Ve.iconsNeedLinear;
14055
+ sr = Se.imageAtlasTexture, Ft = Ee || u.options.rotating || u.options.zooming || Ut || Lt ? F.LINEAR : F.NEAREST, fi = Se.imageAtlasTexture.size;
14056
14056
  }
14057
- const gi = rt(Se, 1, u.transform.zoom), or = ee ? be.posMatrix : sa, In = Xr(or, H, U, u.transform, gi), To = xr(or, H, U, u.transform, gi), Hn = xr(be.posMatrix, H, U, u.transform, gi), Pn = Z.translatePosition(u.transform, Se, h, m), Io = ve && Ve.hasTextData(), Ba = n.layout.get("icon-text-fit") !== "none" && Io && Ve.hasIconData();
14057
+ const gi = rt(Se, 1, u.transform.zoom), or = ee ? be.posMatrix : sa, In = Xr(or, H, U, u.transform, gi), To = xr(or, H, U, u.transform, gi), Wn = xr(be.posMatrix, H, U, u.transform, gi), Pn = Z.translatePosition(u.transform, Se, h, m), Io = ve && Ve.hasTextData(), Ba = n.layout.get("icon-text-fit") !== "none" && Io && Ve.hasIconData();
14058
14058
  if (K) {
14059
- const jt = u.style.map.terrain ? (Oa, ri) => u.style.map.terrain.getElevation(be, Oa, ri) : null, Xn = n.layout.get("text-rotation-alignment") === "map";
14060
- O(Ve, be.posMatrix, u, a, In, Hn, H, b, Xn, Z, be.toUnwrapped(), V.width, V.height, Pn, jt);
14059
+ const Ut = u.style.map.terrain ? (Oa, ri) => u.style.map.terrain.getElevation(be, Oa, ri) : null, Jn = n.layout.get("text-rotation-alignment") === "map";
14060
+ O(Ve, be.posMatrix, u, a, In, Wn, H, b, Jn, Z, be.toUnwrapped(), V.width, V.height, Pn, Ut);
14061
14061
  }
14062
- const li = be.posMatrix, ar = a && ve || Ba, rn = K || ar ? sa : In, Wn = To, _i = Ee && n.paint.get(a ? "text-halo-width" : "icon-halo-width").constantOr(1) !== 0;
14062
+ const li = be.posMatrix, ar = a && ve || Ba, rn = K || ar ? sa : In, Xn = To, _i = Ee && n.paint.get(a ? "text-halo-width" : "icon-halo-width").constantOr(1) !== 0;
14063
14063
  let yi;
14064
- yi = Ee ? Ve.iconsInText ? Rc(Ke.kind, ht, j, H, K, ar, u, li, rn, Wn, Pn, fi, Ai, Re) : yl(Ke.kind, ht, j, H, K, ar, u, li, rn, Wn, Pn, a, fi, !0, Re) : _l(Ke.kind, ht, j, H, K, ar, u, li, rn, Wn, Pn, a, fi, Re);
14064
+ yi = Ee ? Ve.iconsInText ? Rc(Ke.kind, ht, j, H, K, ar, u, li, rn, Xn, Pn, fi, Ai, Re) : yl(Ke.kind, ht, j, H, K, ar, u, li, rn, Xn, Pn, a, fi, !0, Re) : _l(Ke.kind, ht, j, H, K, ar, u, li, rn, Xn, Pn, a, fi, Re);
14065
14065
  const si = { program: st, buffers: tt, uniformValues: yi, atlasTexture: sr, atlasTextureIcon: mi, atlasInterpolation: Ft, atlasInterpolationIcon: Di, isSDF: Ee, hasHalo: _i };
14066
14066
  if (ne && Ve.canOverlap) {
14067
14067
  le = !0;
14068
- const jt = tt.segments.get();
14069
- for (const Xn of jt) De.push({ segments: new c.a0([Xn]), sortKey: Xn.sortKey, state: si, terrainData: Rt });
14068
+ const Ut = tt.segments.get();
14069
+ for (const Jn of Ut) De.push({ segments: new c.a0([Jn]), sortKey: Jn.sortKey, state: si, terrainData: Rt });
14070
14070
  } else De.push({ segments: tt.segments, sortKey: 0, state: si, terrainData: Rt });
14071
14071
  }
14072
14072
  le && De.sort((be, Se) => be.sortKey - Se.sortKey);
@@ -14110,7 +14110,7 @@ uniform ${P} ${A} u_${L};
14110
14110
  Z = ee.indexBuffer2, U = ee.segments2;
14111
14111
  const Re = [y.drawingBufferWidth, y.drawingBufferHeight];
14112
14112
  V = F === "fillOutlinePattern" && P ? Mc(De, u, A, j, Re) : Ec(De, Re);
14113
- } else Z = ee.indexBuffer, U = ee.segments, V = P ? Fn(De, u, A, j) : gs(De);
14113
+ } else Z = ee.indexBuffer, U = ee.segments, V = P ? Bn(De, u, A, j) : gs(De);
14114
14114
  le.draw(u.context, L, a, u.stencilModeForClipping(K), h, zt.disabled, V, me, n.id, ee.layoutVertexBuffer, Z, U, n.paint, u.transform.zoom, ne);
14115
14115
  }
14116
14116
  }
@@ -14165,18 +14165,18 @@ uniform ${P} ${A} u_${L};
14165
14165
  }
14166
14166
  return { opacity: 1, mix: 0 };
14167
14167
  }
14168
- const uo = new c.aN(1, 0, 0, 1), Ss = new c.aN(0, 1, 0, 1), po = new c.aN(0, 0, 1, 1), Dl = new c.aN(1, 0, 1, 1), Vn = new c.aN(0, 1, 1, 1);
14168
+ const uo = new c.aN(1, 0, 0, 1), Ss = new c.aN(0, 1, 0, 1), po = new c.aN(0, 0, 1, 1), Dl = new c.aN(1, 0, 1, 1), Nn = new c.aN(0, 1, 1, 1);
14169
14169
  function vn(u, t, n, o) {
14170
- Nn(u, 0, t + n / 2, u.transform.width, n, o);
14170
+ jn(u, 0, t + n / 2, u.transform.width, n, o);
14171
14171
  }
14172
14172
  function ca(u, t, n, o) {
14173
- Nn(u, t - n / 2, 0, n, u.transform.height, o);
14173
+ jn(u, t - n / 2, 0, n, u.transform.height, o);
14174
14174
  }
14175
- function Nn(u, t, n, o, a, h) {
14175
+ function jn(u, t, n, o, a, h) {
14176
14176
  const m = u.context, y = m.gl;
14177
14177
  y.enable(y.SCISSOR_TEST), y.scissor(t * u.pixelRatio, n * u.pixelRatio, o * u.pixelRatio, a * u.pixelRatio), m.clear({ color: h }), y.disable(y.SCISSOR_TEST);
14178
14178
  }
14179
- function ft(u, t, n) {
14179
+ function mt(u, t, n) {
14180
14180
  const o = u.context, a = o.gl, h = n.posMatrix, m = u.useProgram("debug"), y = ct.disabled, v = Nt.disabled, b = u.colorModeForRenderPass(), P = "$debug", A = u.style.map.terrain && u.style.map.terrain.getTerrainData(n);
14181
14181
  o.activeTexture.set(a.TEXTURE0);
14182
14182
  const L = t.getTileByID(n.key).latestRawTileData, F = Math.floor((L && L.byteLength || 0) / 1024), V = t.getTile(n).tileSize, Z = 512 / Math.min(V, 512) * (n.overscaledZ / u.transform.zoom) * 0.5;
@@ -14325,7 +14325,7 @@ uniform ${P} ${A} u_${L};
14325
14325
  return V.forEach((H) => U(H)), L || Z.forEach((H) => U(H)), L;
14326
14326
  }(this.style, this.transform.zoom);
14327
14327
  b && function(P, A, L) {
14328
- for (let F = 0; F < L.length; F++) ft(P, A, L[F]);
14328
+ for (let F = 0; F < L.length; F++) mt(P, A, L[F]);
14329
14329
  }(this, b, b.getVisibleCoordinates());
14330
14330
  }
14331
14331
  this.options.showPadding && function(b) {
@@ -14333,8 +14333,8 @@ uniform ${P} ${A} u_${L};
14333
14333
  vn(b, b.transform.height - (P.top || 0), 3, uo), vn(b, P.bottom || 0, 3, Ss), ca(b, P.left || 0, 3, po), ca(b, b.transform.width - (P.right || 0), 3, Dl);
14334
14334
  const A = b.transform.centerPoint;
14335
14335
  (function(L, F, V, Z) {
14336
- Nn(L, F - 1, V - 10, 2, 20, Z), Nn(L, F - 10, V - 1, 20, 2, Z);
14337
- })(b, A.x, b.transform.height - A.y, Vn);
14336
+ jn(L, F - 1, V - 10, 2, 20, Z), jn(L, F - 10, V - 1, 20, 2, Z);
14337
+ })(b, A.x, b.transform.height - A.y, Nn);
14338
14338
  }(this), this.context.setDefault();
14339
14339
  }
14340
14340
  maybeDrawDepthAndCoords(t) {
@@ -14523,7 +14523,7 @@ uniform ${P} ${A} u_${L};
14523
14523
  case "raster":
14524
14524
  (function(h, m, y, v) {
14525
14525
  if (h.renderPass !== "translucent" || y.paint.get("raster-opacity") === 0 || !v.length) return;
14526
- const b = h.context, P = b.gl, A = m.getSource(), L = h.useProgram("raster"), F = h.colorModeForRenderPass(), [V, Z] = A instanceof kr ? [{}, v] : h.stencilConfigForOverlap(v), U = Z[Z.length - 1].overscaledZ, H = !h.options.moving;
14526
+ const b = h.context, P = b.gl, A = m.getSource(), L = h.useProgram("raster"), F = h.colorModeForRenderPass(), [V, Z] = A instanceof Er ? [{}, v] : h.stencilConfigForOverlap(v), U = Z[Z.length - 1].overscaledZ, H = !h.options.moving;
14527
14527
  for (const K of Z) {
14528
14528
  const j = h.depthModeForSublayer(K.overscaledZ - U, y.paint.get("raster-opacity") === 1 ? ct.ReadWrite : ct.ReadOnly, P.LESS), ee = m.getTile(K);
14529
14529
  ee.registerFadeDuration(y.paint.get("raster-fade-duration"));
@@ -14532,7 +14532,7 @@ uniform ${P} ${A} u_${L};
14532
14532
  const Re = y.paint.get("raster-resampling") === "nearest" ? P.NEAREST : P.LINEAR;
14533
14533
  b.activeTexture.set(P.TEXTURE0), ee.texture.bind(Re, P.CLAMP_TO_EDGE, P.LINEAR_MIPMAP_NEAREST), b.activeTexture.set(P.TEXTURE1), ne ? (ne.texture.bind(Re, P.CLAMP_TO_EDGE, P.LINEAR_MIPMAP_NEAREST), ve = Math.pow(2, ne.tileID.overscaledZ - ee.tileID.overscaledZ), De = [ee.tileID.canonical.x * ve % 1, ee.tileID.canonical.y * ve % 1]) : ee.texture.bind(Re, P.CLAMP_TO_EDGE, P.LINEAR_MIPMAP_NEAREST), ee.texture.useMipmap && b.extTextureFilterAnisotropic && h.transform.pitch > 20 && P.texParameterf(P.TEXTURE_2D, b.extTextureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT, b.extTextureFilterAnisotropicMax);
14534
14534
  const be = h.style.map.terrain && h.style.map.terrain.getTerrainData(K), Se = be ? K : null, Ve = Se ? Se.posMatrix : h.transform.calculatePosMatrix(K.toUnwrapped(), H), tt = Dc(Ve, De || [0, 0], ve || 1, me, y);
14535
- A instanceof kr ? L.draw(b, P.TRIANGLES, j, Nt.disabled, F, zt.disabled, tt, be, y.id, A.boundsBuffer, h.quadTriangleIndexBuffer, A.boundsSegments) : L.draw(b, P.TRIANGLES, j, V[K.overscaledZ], F, zt.disabled, tt, be, y.id, h.rasterBoundsBuffer, h.quadTriangleIndexBuffer, h.rasterBoundsSegments);
14535
+ A instanceof Er ? L.draw(b, P.TRIANGLES, j, Nt.disabled, F, zt.disabled, tt, be, y.id, A.boundsBuffer, h.quadTriangleIndexBuffer, A.boundsSegments) : L.draw(b, P.TRIANGLES, j, V[K.overscaledZ], F, zt.disabled, tt, be, y.id, h.rasterBoundsBuffer, h.quadTriangleIndexBuffer, h.rasterBoundsSegments);
14536
14536
  }
14537
14537
  })(t, n, o, a);
14538
14538
  break;
@@ -15114,19 +15114,19 @@ uniform ${P} ${A} u_${L};
15114
15114
  const o = this._inertiaBuffer[this._inertiaBuffer.length - 1].time - this._inertiaBuffer[0].time, a = {};
15115
15115
  if (n.pan.mag()) {
15116
15116
  const h = xo(n.pan.mag(), o, c.e({}, da, t || {}));
15117
- a.offset = n.pan.mult(h.amount / n.pan.mag()), a.center = this._map.transform.center, jn(a, h);
15117
+ a.offset = n.pan.mult(h.amount / n.pan.mag()), a.center = this._map.transform.center, Un(a, h);
15118
15118
  }
15119
15119
  if (n.zoom) {
15120
15120
  const h = xo(n.zoom, o, pa);
15121
- a.zoom = this._map.transform.zoom + h.amount, jn(a, h);
15121
+ a.zoom = this._map.transform.zoom + h.amount, Un(a, h);
15122
15122
  }
15123
15123
  if (n.bearing) {
15124
15124
  const h = xo(n.bearing, o, Fl);
15125
- a.bearing = this._map.transform.bearing + c.ad(h.amount, -179, 179), jn(a, h);
15125
+ a.bearing = this._map.transform.bearing + c.ad(h.amount, -179, 179), Un(a, h);
15126
15126
  }
15127
15127
  if (n.pitch) {
15128
15128
  const h = xo(n.pitch, o, _o);
15129
- a.pitch = this._map.transform.pitch + h.amount, jn(a, h);
15129
+ a.pitch = this._map.transform.pitch + h.amount, Un(a, h);
15130
15130
  }
15131
15131
  if (a.zoom || a.bearing) {
15132
15132
  const h = n.pinchAround === void 0 ? n.around : n.pinchAround;
@@ -15135,7 +15135,7 @@ uniform ${P} ${A} u_${L};
15135
15135
  return this.clear(), c.e(a, { noMoveStart: !0 });
15136
15136
  }
15137
15137
  }
15138
- function jn(u, t) {
15138
+ function Un(u, t) {
15139
15139
  (!u.duration || u.duration < t.duration) && (u.duration = t.duration, u.easing = t.easing);
15140
15140
  }
15141
15141
  function xo(u, t, n) {
@@ -15261,7 +15261,7 @@ uniform ${P} ${A} u_${L};
15261
15261
  disable() {
15262
15262
  }
15263
15263
  }
15264
- class Un {
15264
+ class $n {
15265
15265
  constructor(t) {
15266
15266
  this._map = t;
15267
15267
  }
@@ -15286,7 +15286,7 @@ uniform ${P} ${A} u_${L};
15286
15286
  }
15287
15287
  class ga {
15288
15288
  constructor(t, n) {
15289
- this._map = t, this._tr = new Un(t), this._el = t.getCanvasContainer(), this._container = t.getContainer(), this._clickTolerance = n.clickTolerance || 1;
15289
+ this._map = t, this._tr = new $n(t), this._el = t.getCanvasContainer(), this._container = t.getContainer(), this._clickTolerance = n.clickTolerance || 1;
15290
15290
  }
15291
15291
  isEnabled() {
15292
15292
  return !!this._enabled;
@@ -15328,7 +15328,7 @@ uniform ${P} ${A} u_${L};
15328
15328
  return this._map.fire(new c.k(t, { originalEvent: n }));
15329
15329
  }
15330
15330
  }
15331
- function $n(u, t) {
15331
+ function qn(u, t) {
15332
15332
  if (u.length !== t.length) throw new Error(`The number of touches and points are not equal - touches ${u.length}, points ${t.length}`);
15333
15333
  const n = {};
15334
15334
  for (let o = 0; o < u.length; o++) n[u[o].identifier] = t[o];
@@ -15346,11 +15346,11 @@ uniform ${P} ${A} u_${L};
15346
15346
  const h = new c.P(0, 0);
15347
15347
  for (const m of a) h._add(m);
15348
15348
  return h.div(a.length);
15349
- }(n), this.touches = $n(o, n)));
15349
+ }(n), this.touches = qn(o, n)));
15350
15350
  }
15351
15351
  touchmove(t, n, o) {
15352
15352
  if (this.aborted || !this.centroid) return;
15353
- const a = $n(o, n);
15353
+ const a = qn(o, n);
15354
15354
  for (const h in this.touches) {
15355
15355
  const m = a[h];
15356
15356
  (!m || m.dist(this.touches[h]) > 30) && (this.aborted = !0);
@@ -15386,7 +15386,7 @@ uniform ${P} ${A} u_${L};
15386
15386
  }
15387
15387
  class Bl {
15388
15388
  constructor(t) {
15389
- this._tr = new Un(t), this._zoomIn = new ya({ numTouches: 1, numTaps: 2 }), this._zoomOut = new ya({ numTouches: 2, numTaps: 1 }), this.reset();
15389
+ this._tr = new $n(t), this._zoomIn = new ya({ numTouches: 1, numTaps: 2 }), this._zoomOut = new ya({ numTouches: 2, numTaps: 1 }), this.reset();
15390
15390
  }
15391
15391
  reset() {
15392
15392
  this._active = !1, this._zoomIn.reset(), this._zoomOut.reset();
@@ -15547,7 +15547,7 @@ uniform ${P} ${A} u_${L};
15547
15547
  }
15548
15548
  _calculateTransform(t, n, o) {
15549
15549
  o.length > 0 && (this._active = !0);
15550
- const a = $n(o, n), h = new c.P(0, 0), m = new c.P(0, 0);
15550
+ const a = qn(o, n), h = new c.P(0, 0), m = new c.P(0, 0);
15551
15551
  let y = 0;
15552
15552
  for (const b in a) {
15553
15553
  const P = a[b], A = this._touches[b];
@@ -15647,7 +15647,7 @@ uniform ${P} ${A} u_${L};
15647
15647
  return Math.abs(o) < n;
15648
15648
  }
15649
15649
  }
15650
- function Dr(u) {
15650
+ function Lr(u) {
15651
15651
  return Math.abs(u.y) > Math.abs(u.x);
15652
15652
  }
15653
15653
  class Ta extends ks {
@@ -15661,7 +15661,7 @@ uniform ${P} ${A} u_${L};
15661
15661
  super.touchstart(t, n, o), this._currentTouchCount = o.length;
15662
15662
  }
15663
15663
  _start(t) {
15664
- this._lastPoints = t, Dr(t[0].sub(t[1])) && (this._valid = !1);
15664
+ this._lastPoints = t, Lr(t[0].sub(t[1])) && (this._valid = !1);
15665
15665
  }
15666
15666
  _move(t, n, o) {
15667
15667
  if (this._map.cooperativeGestures.isEnabled() && this._currentTouchCount < 3) return;
@@ -15674,13 +15674,13 @@ uniform ${P} ${A} u_${L};
15674
15674
  if (!a && !h) return;
15675
15675
  if (!a || !h) return this._firstMove === void 0 && (this._firstMove = o), o - this._firstMove < 100 && void 0;
15676
15676
  const m = t.y > 0 == n.y > 0;
15677
- return Dr(t) && Dr(n) && m;
15677
+ return Lr(t) && Lr(n) && m;
15678
15678
  }
15679
15679
  }
15680
15680
  const Ol = { panStep: 100, bearingStep: 15, pitchStep: 10 };
15681
15681
  class Ia {
15682
15682
  constructor(t) {
15683
- this._tr = new Un(t);
15683
+ this._tr = new $n(t);
15684
15684
  const n = Ol;
15685
15685
  this._panStep = n.panStep, this._bearingStep = n.bearingStep, this._pitchStep = n.pitchStep, this._rotationDisabled = !1;
15686
15686
  }
@@ -15749,7 +15749,7 @@ uniform ${P} ${A} u_${L};
15749
15749
  constructor(t, n) {
15750
15750
  this._onTimeout = (o) => {
15751
15751
  this._type = "wheel", this._delta -= this._lastValue, this._active || this._start(o);
15752
- }, this._map = t, this._tr = new Un(t), this._triggerRenderFrame = n, this._delta = 0, this._defaultZoomRate = 0.01, this._wheelZoomRate = 0.0022222222222222222;
15752
+ }, this._map = t, this._tr = new $n(t), this._triggerRenderFrame = n, this._delta = 0, this._defaultZoomRate = 0.01, this._wheelZoomRate = 0.0022222222222222222;
15753
15753
  }
15754
15754
  setZoomRate(t) {
15755
15755
  this._defaultZoomRate = t;
@@ -15840,7 +15840,7 @@ uniform ${P} ${A} u_${L};
15840
15840
  }
15841
15841
  class Ms {
15842
15842
  constructor(t) {
15843
- this._tr = new Un(t), this.reset();
15843
+ this._tr = new $n(t), this.reset();
15844
15844
  }
15845
15845
  reset() {
15846
15846
  this._active = !1;
@@ -16006,7 +16006,7 @@ uniform ${P} ${A} u_${L};
16006
16006
  }, 100));
16007
16007
  }
16008
16008
  }
16009
- const Lr = (u) => u.zoom || u.drag || u.pitch || u.rotate;
16009
+ const Rr = (u) => u.zoom || u.drag || u.pitch || u.rotate;
16010
16010
  class Zc extends c.k {
16011
16011
  }
16012
16012
  function Ea(u) {
@@ -16085,7 +16085,7 @@ uniform ${P} ${A} u_${L};
16085
16085
  return !!this._eventsInProgress.rotate;
16086
16086
  }
16087
16087
  isMoving() {
16088
- return !!Lr(this._eventsInProgress) || this.isZooming();
16088
+ return !!Rr(this._eventsInProgress) || this.isZooming();
16089
16089
  }
16090
16090
  _blockedByActive(t, n, o) {
16091
16091
  for (const a in t) if (a !== o && (!n || n.indexOf(a) < 0)) return !0;
@@ -16116,7 +16116,7 @@ uniform ${P} ${A} u_${L};
16116
16116
  b && (h.bearing += b), P && (h.pitch += P), v && (h.zoom += v), m ? this._terrainMovement || !n.drag && !n.zoom ? n.drag && this._terrainMovement ? h.center = h.pointLocation(h.centerPoint.sub(y)) : h.setLocationAtPoint(F, A) : (this._terrainMovement = !0, this._map._elevationFreeze = !0, h.setLocationAtPoint(F, A)) : h.setLocationAtPoint(F, A), a._applyUpdatedTransform(h), this._map._update(), t.noInertia || this._inertia.record(t), this._fireEvents(n, o, !0);
16117
16117
  }
16118
16118
  _fireEvents(t, n, o) {
16119
- const a = Lr(this._eventsInProgress), h = Lr(t), m = {};
16119
+ const a = Rr(this._eventsInProgress), h = Rr(t), m = {};
16120
16120
  for (const A in t) {
16121
16121
  const { originalEvent: L } = t[A];
16122
16122
  this._eventsInProgress[A] || (m[`${A}start`] = L), this._eventsInProgress[A] = t[A];
@@ -16135,7 +16135,7 @@ uniform ${P} ${A} u_${L};
16135
16135
  this._handlersById[L].isActive() || (delete this._eventsInProgress[A], v = n[L] || F, y[`${A}end`] = v);
16136
16136
  }
16137
16137
  for (const A in y) this._fireEvent(A, y[A]);
16138
- const b = Lr(this._eventsInProgress), P = (a || h) && !b;
16138
+ const b = Rr(this._eventsInProgress), P = (a || h) && !b;
16139
16139
  if (P && this._terrainMovement) {
16140
16140
  this._map._elevationFreeze = !1, this._terrainMovement = !1;
16141
16141
  const A = this._map._getTransformForUpdate();
@@ -16416,7 +16416,7 @@ uniform ${P} ${A} u_${L};
16416
16416
  }
16417
16417
  }
16418
16418
  const Ma = { compact: !0, customAttribution: '<a href="https://maplibre.org/" target="_blank">MapLibre</a>' };
16419
- class qn {
16419
+ class Zn {
16420
16420
  constructor(t = Ma) {
16421
16421
  this._toggleAttribution = () => {
16422
16422
  this._container.classList.contains("maplibregl-compact") && (this._container.classList.contains("maplibregl-compact-show") ? (this._container.setAttribute("open", ""), this._container.classList.remove("maplibregl-compact-show")) : (this._container.classList.add("maplibregl-compact-show"), this._container.removeAttribute("open")));
@@ -17004,7 +17004,7 @@ uniform ${P} ${A} u_${L};
17004
17004
  }
17005
17005
  }
17006
17006
  const wo = { positionOptions: { enableHighAccuracy: !1, maximumAge: 0, timeout: 6e3 }, fitBoundsOptions: { maxZoom: 15 }, trackUserLocation: !1, showAccuracyCircle: !0, showUserLocation: !0 };
17007
- let Zn = 0, Gn = !1;
17007
+ let Gn = 0, Hn = !1;
17008
17008
  const Hl = { maxWidth: 100, unit: "metric" };
17009
17009
  function Fa(u, t, n) {
17010
17010
  const o = n && n.maxWidth || 100, a = u._container.clientHeight / 2, h = u.unproject([0, a]), m = u.unproject([o, a]), y = h.distanceTo(m);
@@ -17040,7 +17040,7 @@ uniform ${P} ${A} u_${L};
17040
17040
  return $e(new c.P(0, 0));
17041
17041
  }
17042
17042
  const Xe = _e;
17043
- T.AJAXError = c.bg, T.Evented = c.E, T.LngLat = c.N, T.MercatorCoordinate = c.Z, T.Point = c.P, T.addProtocol = c.bh, T.config = c.a, T.removeProtocol = c.bi, T.AttributionControl = qn, T.BoxZoomHandler = ga, T.CanvasSource = Xi, T.CooperativeGesturesHandler = nr, T.DoubleClickZoomHandler = Ca, T.DragPanHandler = Ki, T.DragRotateHandler = rr, T.EdgeInsets = mo, T.FullscreenControl = class extends c.E {
17043
+ T.AJAXError = c.bg, T.Evented = c.E, T.LngLat = c.N, T.MercatorCoordinate = c.Z, T.Point = c.P, T.addProtocol = c.bh, T.config = c.a, T.removeProtocol = c.bi, T.AttributionControl = Zn, T.BoxZoomHandler = ga, T.CanvasSource = Xi, T.CooperativeGesturesHandler = nr, T.DoubleClickZoomHandler = Ca, T.DragPanHandler = Ki, T.DragRotateHandler = rr, T.EdgeInsets = mo, T.FullscreenControl = class extends c.E {
17044
17044
  constructor(u = {}) {
17045
17045
  super(), this._onFullscreenChange = () => {
17046
17046
  var t;
@@ -17120,7 +17120,7 @@ uniform ${P} ${A} u_${L};
17120
17120
  const n = this._map._getUIString("GeolocateControl.LocationNotAvailable");
17121
17121
  this._geolocateButton.title = n, this._geolocateButton.setAttribute("aria-label", n), this._geolocationWatchID !== void 0 && this._clearWatch();
17122
17122
  } else {
17123
- if (t.code === 3 && Gn) return;
17123
+ if (t.code === 3 && Hn) return;
17124
17124
  this._setErrorState();
17125
17125
  }
17126
17126
  this._watchState !== "OFF" && this.options.showUserLocation && this._dotElement.classList.add("maplibregl-user-location-dot-stale"), this.fire(new c.k("error", t)), this._finish();
@@ -17160,7 +17160,7 @@ uniform ${P} ${A} u_${L};
17160
17160
  }().then((t) => this._finishSetupUI(t)), this._container;
17161
17161
  }
17162
17162
  onRemove() {
17163
- this._geolocationWatchID !== void 0 && (window.navigator.geolocation.clearWatch(this._geolocationWatchID), this._geolocationWatchID = void 0), this.options.showUserLocation && this._userLocationDotMarker && this._userLocationDotMarker.remove(), this.options.showAccuracyCircle && this._accuracyCircleMarker && this._accuracyCircleMarker.remove(), oe.remove(this._container), this._map.off("zoom", this._onZoom), this._map = void 0, Zn = 0, Gn = !1;
17163
+ this._geolocationWatchID !== void 0 && (window.navigator.geolocation.clearWatch(this._geolocationWatchID), this._geolocationWatchID = void 0), this.options.showUserLocation && this._userLocationDotMarker && this._userLocationDotMarker.remove(), this.options.showAccuracyCircle && this._accuracyCircleMarker && this._accuracyCircleMarker.remove(), oe.remove(this._container), this._map.off("zoom", this._onZoom), this._map = void 0, Gn = 0, Hn = !1;
17164
17164
  }
17165
17165
  _isOutOfMapMaxBounds(u) {
17166
17166
  const t = this._map.getMaxBounds(), n = u.coords;
@@ -17198,7 +17198,7 @@ uniform ${P} ${A} u_${L};
17198
17198
  case "ACTIVE_LOCK":
17199
17199
  case "ACTIVE_ERROR":
17200
17200
  case "BACKGROUND_ERROR":
17201
- Zn--, Gn = !1, this._watchState = "OFF", this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting"), this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"), this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active-error"), this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background"), this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background-error"), this.fire(new c.k("trackuserlocationend"));
17201
+ Gn--, Hn = !1, this._watchState = "OFF", this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting"), this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"), this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active-error"), this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background"), this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background-error"), this.fire(new c.k("trackuserlocationend"));
17202
17202
  break;
17203
17203
  case "BACKGROUND":
17204
17204
  this._watchState = "ACTIVE_LOCK", this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background"), this._lastKnownPosition && this._updateCamera(this._lastKnownPosition), this.fire(new c.k("trackuserlocationstart")), this.fire(new c.k("userlocationfocus"));
@@ -17221,7 +17221,7 @@ uniform ${P} ${A} u_${L};
17221
17221
  if (this._watchState === "OFF" && this._geolocationWatchID !== void 0) this._clearWatch();
17222
17222
  else if (this._geolocationWatchID === void 0) {
17223
17223
  let u;
17224
- this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-waiting"), this._geolocateButton.setAttribute("aria-pressed", "true"), Zn++, Zn > 1 ? (u = { maximumAge: 6e5, timeout: 0 }, Gn = !0) : (u = this.options.positionOptions, Gn = !1), this._geolocationWatchID = window.navigator.geolocation.watchPosition(this._onSuccess, this._onError, u);
17224
+ this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-waiting"), this._geolocateButton.setAttribute("aria-pressed", "true"), Gn++, Gn > 1 ? (u = { maximumAge: 6e5, timeout: 0 }, Hn = !0) : (u = this.options.positionOptions, Hn = !1), this._geolocationWatchID = window.navigator.geolocation.watchPosition(this._onSuccess, this._onError, u);
17225
17225
  }
17226
17226
  } else window.navigator.geolocation.getCurrentPosition(this._onSuccess, this._onError, this.options.positionOptions), this._timeoutId = setTimeout(this._finish, 1e4);
17227
17227
  return !0;
@@ -17229,7 +17229,7 @@ uniform ${P} ${A} u_${L};
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
- }, T.Hash = Is, T.ImageSource = kr, T.KeyboardHandler = Ia, T.LngLatBounds = he, T.LogoControl = br, T.Map = class extends Hc {
17232
+ }, T.Hash = Is, T.ImageSource = Er, T.KeyboardHandler = Ia, T.LngLatBounds = he, T.LogoControl = br, T.Map = class extends Hc {
17233
17233
  constructor(u) {
17234
17234
  c.be.mark(c.bf.create);
17235
17235
  const t = Object.assign(Object.assign({}, Wc), u);
@@ -17265,7 +17265,7 @@ uniform ${P} ${A} u_${L};
17265
17265
  n ? o(a) : n = !0;
17266
17266
  }), this._resizeObserver.observe(this._container);
17267
17267
  }
17268
- this.handlers = new Gc(this, t), this._hash = t.hash && new Is(typeof t.hash == "string" && t.hash || void 0).addTo(this), this._hash && this._hash._onHashChange() || (this.jumpTo({ center: t.center, zoom: t.zoom, bearing: t.bearing, pitch: t.pitch }), t.bounds && (this.resize(), this.fitBounds(t.bounds, c.e({}, t.fitBoundsOptions, { duration: 0 })))), this.resize(), this._localIdeographFontFamily = t.localIdeographFontFamily, this._validateStyle = t.validateStyle, t.style && this.setStyle(t.style, { localIdeographFontFamily: t.localIdeographFontFamily }), t.attributionControl && this.addControl(new qn(typeof t.attributionControl == "boolean" ? void 0 : t.attributionControl)), t.maplibreLogo && this.addControl(new br(), t.logoPosition), this.on("style.load", () => {
17268
+ this.handlers = new Gc(this, t), this._hash = t.hash && new Is(typeof t.hash == "string" && t.hash || void 0).addTo(this), this._hash && this._hash._onHashChange() || (this.jumpTo({ center: t.center, zoom: t.zoom, bearing: t.bearing, pitch: t.pitch }), t.bounds && (this.resize(), this.fitBounds(t.bounds, c.e({}, t.fitBoundsOptions, { duration: 0 })))), this.resize(), this._localIdeographFontFamily = t.localIdeographFontFamily, this._validateStyle = t.validateStyle, t.style && this.setStyle(t.style, { localIdeographFontFamily: t.localIdeographFontFamily }), t.attributionControl && this.addControl(new Zn(typeof t.attributionControl == "boolean" ? void 0 : t.attributionControl)), t.maplibreLogo && this.addControl(new br(), t.logoPosition), this.on("style.load", () => {
17269
17269
  this.transform.unmodified && this.jumpTo(this.style.stylesheet);
17270
17270
  }), this.on("data", (n) => {
17271
17271
  this._update(n.dataType === "style"), this.fire(new c.k(`${n.dataType}data`, n));
@@ -17927,7 +17927,7 @@ uniform ${P} ${A} u_${L};
17927
17927
  onRemove() {
17928
17928
  oe.remove(this._container), this._map.off("terrain", this._updateTerrainIcon), this._map = void 0;
17929
17929
  }
17930
- }, T.TwoFingersTouchPitchHandler = Ta, T.TwoFingersTouchRotateHandler = Sa, T.TwoFingersTouchZoomHandler = ba, T.TwoFingersTouchZoomRotateHandler = ka, T.VectorTileSource = as, T.VideoSource = Rn, T.addSourceType = (u, t) => c._(void 0, void 0, void 0, function* () {
17930
+ }, T.TwoFingersTouchPitchHandler = Ta, T.TwoFingersTouchRotateHandler = Sa, T.TwoFingersTouchZoomHandler = ba, T.TwoFingersTouchZoomRotateHandler = ka, T.VectorTileSource = as, T.VideoSource = Fn, T.addSourceType = (u, t) => c._(void 0, void 0, void 0, function* () {
17931
17931
  if (hs(u)) throw new Error(`A source type called "${u}" already exists.`);
17932
17932
  ((n, o) => {
17933
17933
  cs[n] = o;
@@ -18136,7 +18136,7 @@ const Jh = {
18136
18136
  Xm
18137
18137
  ];
18138
18138
  function Km(_, S) {
18139
- return gt(), Ut("svg", Wm, Jm);
18139
+ return dt(), jt("svg", Wm, Jm);
18140
18140
  }
18141
18141
  const Ym = /* @__PURE__ */ hn(Hm, [["render", Km]]);
18142
18142
  function up(_, S) {
@@ -18463,12 +18463,12 @@ function Pc(_, S, k) {
18463
18463
  return pe.isArrayBuffer(Ze) || pe.isTypedArray(Ze) ? _e && typeof Blob == "function" ? new Blob([Ze]) : Buffer.from(Ze) : Ze;
18464
18464
  }
18465
18465
  function we(Ze, et, Ne) {
18466
- let dt = Ze;
18466
+ let pt = Ze;
18467
18467
  if (Ze && !Ne && typeof Ze == "object") {
18468
18468
  if (pe.endsWith(et, "{}"))
18469
18469
  et = z ? et : et.slice(0, -2), Ze = JSON.stringify(Ze);
18470
- else if (pe.isArray(Ze) && Vg(Ze) || (pe.isFileList(Ze) || pe.endsWith(et, "[]")) && (dt = pe.toArray(Ze)))
18471
- return et = bp(et), dt.forEach(function(Ie, At) {
18470
+ else if (pe.isArray(Ze) && Vg(Ze) || (pe.isFileList(Ze) || pe.endsWith(et, "[]")) && (pt = pe.toArray(Ze)))
18471
+ return et = bp(et), pt.forEach(function(Ie, At) {
18472
18472
  !(pe.isUndefined(Ie) || Ie === null) && S.append(
18473
18473
  // eslint-disable-next-line no-nested-ternary
18474
18474
  T === !0 ? Zd([et], At, X) : T === null ? et : et + "[]",
@@ -18487,14 +18487,14 @@ function Pc(_, S, k) {
18487
18487
  if (!pe.isUndefined(Ze)) {
18488
18488
  if (ae.indexOf(Ze) !== -1)
18489
18489
  throw Error("Circular reference detected in " + et.join("."));
18490
- ae.push(Ze), pe.forEach(Ze, function(dt, Ot) {
18491
- (!(pe.isUndefined(dt) || dt === null) && N.call(
18490
+ ae.push(Ze), pe.forEach(Ze, function(pt, Ot) {
18491
+ (!(pe.isUndefined(pt) || pt === null) && N.call(
18492
18492
  S,
18493
- dt,
18493
+ pt,
18494
18494
  pe.isString(Ot) ? Ot.trim() : Ot,
18495
18495
  et,
18496
18496
  oe
18497
- )) === !0 && _t(dt, et ? et.concat(Ot) : [Ot]);
18497
+ )) === !0 && _t(pt, et ? et.concat(Ot) : [Ot]);
18498
18498
  }), ae.pop();
18499
18499
  }
18500
18500
  }
@@ -19176,7 +19176,7 @@ const kp = (_) => {
19176
19176
  }
19177
19177
  let Ne = new XMLHttpRequest();
19178
19178
  Ne.open(N.method.toUpperCase(), N.url, !0), Ne.timeout = N.timeout;
19179
- function dt() {
19179
+ function pt() {
19180
19180
  if (!Ne)
19181
19181
  return;
19182
19182
  const Ie = Qi.from(
@@ -19195,8 +19195,8 @@ const kp = (_) => {
19195
19195
  z($t), et();
19196
19196
  }, It), Ne = null;
19197
19197
  }
19198
- "onloadend" in Ne ? Ne.onloadend = dt : Ne.onreadystatechange = function() {
19199
- !Ne || Ne.readyState !== 4 || Ne.status === 0 && !(Ne.responseURL && Ne.responseURL.indexOf("file:") === 0) || setTimeout(dt);
19198
+ "onloadend" in Ne ? Ne.onloadend = pt : Ne.onreadystatechange = function() {
19199
+ !Ne || Ne.readyState !== 4 || Ne.status === 0 && !(Ne.responseURL && Ne.responseURL.indexOf("file:") === 0) || setTimeout(pt);
19200
19200
  }, Ne.onabort = function() {
19201
19201
  Ne && (z(new lt("Request aborted", lt.ECONNABORTED, _, Ne)), Ne = null);
19202
19202
  }, Ne.onerror = function() {
@@ -19342,7 +19342,7 @@ const x_ = async (_) => {
19342
19342
  } = kp(_);
19343
19343
  ye = ye ? (ye + "").toLowerCase() : "text";
19344
19344
  let [_t, Ze] = N || X || T ? m_([N, X], T) : [], et, Ne;
19345
- const dt = () => {
19345
+ const pt = () => {
19346
19346
  !et && setTimeout(() => {
19347
19347
  _t && _t.unsubscribe();
19348
19348
  }), et = !0;
@@ -19385,14 +19385,14 @@ const x_ = async (_) => {
19385
19385
  ) || [];
19386
19386
  Ie = new Response(
19387
19387
  Yd(Ie.body, Qd, Ur, () => {
19388
- Si && Si(), At && dt();
19388
+ Si && Si(), At && pt();
19389
19389
  }, Zh),
19390
19390
  Wt
19391
19391
  );
19392
19392
  }
19393
19393
  ye = ye || "text";
19394
19394
  let It = await wc[pe.findKey(wc, ye) || "text"](Ie, _);
19395
- return !At && dt(), Ze && Ze(), await new Promise((Wt, $t) => {
19395
+ return !At && pt(), Ze && Ze(), await new Promise((Wt, $t) => {
19396
19396
  Ap(Wt, $t, {
19397
19397
  data: It,
19398
19398
  headers: Qi.from(Ie.headers),
@@ -19403,7 +19403,7 @@ const x_ = async (_) => {
19403
19403
  });
19404
19404
  });
19405
19405
  } catch (Ie) {
19406
- throw dt(), Ie && Ie.name === "TypeError" && /fetch/i.test(Ie.message) ? Object.assign(
19406
+ throw pt(), Ie && Ie.name === "TypeError" && /fetch/i.test(Ie.message) ? Object.assign(
19407
19407
  new lt("Network Error", lt.ERR_NETWORK, _, Ne),
19408
19408
  {
19409
19409
  cause: Ie.cause || Ie
@@ -19522,7 +19522,7 @@ function S_(_, S, k) {
19522
19522
  const Wh = {
19523
19523
  assertOptions: S_,
19524
19524
  validators: eu
19525
- }, ns = Wh.validators;
19525
+ }, ss = Wh.validators;
19526
19526
  class Us {
19527
19527
  constructor(S) {
19528
19528
  this.defaults = S, this.interceptors = {
@@ -19559,14 +19559,14 @@ class Us {
19559
19559
  typeof S == "string" ? (k = k || {}, k.url = S) : k = S || {}, k = qs(this.defaults, k);
19560
19560
  const { transitional: z, paramsSerializer: N, headers: X } = k;
19561
19561
  z !== void 0 && Wh.assertOptions(z, {
19562
- silentJSONParsing: ns.transitional(ns.boolean),
19563
- forcedJSONParsing: ns.transitional(ns.boolean),
19564
- clarifyTimeoutError: ns.transitional(ns.boolean)
19562
+ silentJSONParsing: ss.transitional(ss.boolean),
19563
+ forcedJSONParsing: ss.transitional(ss.boolean),
19564
+ clarifyTimeoutError: ss.transitional(ss.boolean)
19565
19565
  }, !1), N != null && (pe.isFunction(N) ? k.paramsSerializer = {
19566
19566
  serialize: N
19567
19567
  } : Wh.assertOptions(N, {
19568
- encode: ns.function,
19569
- serialize: ns.function
19568
+ encode: ss.function,
19569
+ serialize: ss.function
19570
19570
  }, !0)), k.method = (k.method || this.defaults.method || "get").toLowerCase();
19571
19571
  let T = X && pe.merge(
19572
19572
  X.common,
@@ -19873,8 +19873,8 @@ function rp(_) {
19873
19873
  }
19874
19874
  function Op(_, S, k) {
19875
19875
  if (_ !== null)
19876
- for (var z, N, X, T, c, _e, ye, we = 0, ae = 0, oe, _t = _.type, Ze = _t === "FeatureCollection", et = _t === "Feature", Ne = Ze ? _.features.length : 1, dt = 0; dt < Ne; dt++) {
19877
- ye = Ze ? _.features[dt].geometry : et ? _.geometry : _, oe = ye ? ye.type === "GeometryCollection" : !1, c = oe ? ye.geometries.length : 1;
19876
+ for (var z, N, X, T, c, _e, ye, we = 0, ae = 0, oe, _t = _.type, Ze = _t === "FeatureCollection", et = _t === "Feature", Ne = Ze ? _.features.length : 1, pt = 0; pt < Ne; pt++) {
19877
+ ye = Ze ? _.features[pt].geometry : et ? _.geometry : _, oe = ye ? ye.type === "GeometryCollection" : !1, c = oe ? ye.geometries.length : 1;
19878
19878
  for (var Ot = 0; Ot < c; Ot++) {
19879
19879
  var Ie = 0, At = 0;
19880
19880
  if (T = oe ? ye.geometries[Ot] : ye, T !== null) {
@@ -19887,7 +19887,7 @@ function Op(_, S, k) {
19887
19887
  if (S(
19888
19888
  _e,
19889
19889
  ae,
19890
- dt,
19890
+ pt,
19891
19891
  Ie,
19892
19892
  At
19893
19893
  ) === !1)
@@ -19900,7 +19900,7 @@ function Op(_, S, k) {
19900
19900
  if (S(
19901
19901
  _e[z],
19902
19902
  ae,
19903
- dt,
19903
+ pt,
19904
19904
  Ie,
19905
19905
  At
19906
19906
  ) === !1)
@@ -19916,7 +19916,7 @@ function Op(_, S, k) {
19916
19916
  if (S(
19917
19917
  _e[z][N],
19918
19918
  ae,
19919
- dt,
19919
+ pt,
19920
19920
  Ie,
19921
19921
  At
19922
19922
  ) === !1)
@@ -19934,7 +19934,7 @@ function Op(_, S, k) {
19934
19934
  if (S(
19935
19935
  _e[z][N][X],
19936
19936
  ae,
19937
- dt,
19937
+ pt,
19938
19938
  Ie,
19939
19939
  At
19940
19940
  ) === !1)
@@ -20039,8 +20039,8 @@ const A_ = {
20039
20039
  }
20040
20040
  }, C_ = { class: "vs-map-slot-layers" }, k_ = ["onClick"], E_ = ["src"];
20041
20041
  function M_(_, S, k, z, N, X) {
20042
- return gt(), Ut("div", C_, [
20043
- (gt(!0), Ut(ol, null, al(k.baseLayers, (T, c) => (gt(), Ut("div", {
20042
+ return dt(), jt("div", C_, [
20043
+ (dt(!0), jt(ol, null, al(k.baseLayers, (T, c) => (dt(), jt("div", {
20044
20044
  key: T.id,
20045
20045
  class: cl(["vs-map-slot-layers__layer relative", { focused: T.id == N.selectedLayer }]),
20046
20046
  onClick: (_e) => X.toggleLayerVisibility(T.id)
@@ -20053,42 +20053,46 @@ function M_(_, S, k, z, N, X) {
20053
20053
  class: cl(["absolute py-2 px-4 text-sm text-stone-800 bg-white shadow-[0_10px_40px_10px_rgba(0,0,0,0.08)] rounded-lg top-[-46px] text-nowrap p-2 hidden", [
20054
20054
  c === 0 ? "left-[-10px]" : "left-[50%] translate-x-[-50%] "
20055
20055
  ]])
20056
- }, ss(T == null ? void 0 : T.name), 3)
20056
+ }, Mn(T == null ? void 0 : T.name), 3)
20057
20057
  ], 10, k_))), 128))
20058
20058
  ]);
20059
20059
  }
20060
20060
  const z_ = /* @__PURE__ */ hn(A_, [["render", M_], ["__scopeId", "data-v-9c4efadb"]]), D_ = {
20061
- props: ["colors"],
20061
+ props: ["colors", "title"],
20062
20062
  methods: {
20063
20063
  capitalizeFirstLetter(_) {
20064
20064
  return _ ? _.charAt(0).toUpperCase() + _.slice(1) : "";
20065
20065
  }
20066
20066
  }
20067
- }, L_ = { class: "absolute left-[20px] bottom-[74px] bg-white max-w-[250px] p-[10px] rounded-lg" }, R_ = { class: "legend-item" }, F_ = {
20067
+ }, L_ = { class: "absolute left-[20px] bottom-[74px] bg-white max-w-[250px] p-[10px] rounded-lg" }, R_ = {
20068
+ key: 0,
20069
+ class: "mb-[10px] text-[14px]"
20070
+ }, F_ = { class: "legend-item" }, B_ = {
20068
20071
  key: 0,
20069
20072
  class: "flex justify-start items-center gap-2"
20070
- }, B_ = { class: "ml-1" };
20071
- function O_(_, S, k, z, N, X) {
20072
- return gt(), Ut("div", L_, [
20073
- (gt(!0), Ut(ol, null, al(k.colors, (T) => (gt(), Ut("div", R_, [
20074
- T.id > 0 ? (gt(), Ut("div", F_, [
20073
+ }, O_ = { class: "ml-1" };
20074
+ function V_(_, S, k, z, N, X) {
20075
+ return dt(), jt("div", L_, [
20076
+ k.title ? (dt(), jt("div", R_, Mn(k.title), 1)) : Pr("", !0),
20077
+ (dt(!0), jt(ol, null, al(k.colors, (T) => (dt(), jt("div", F_, [
20078
+ T.id > 0 ? (dt(), jt("div", B_, [
20075
20079
  Ye("div", {
20076
20080
  class: "w-[15px] h-[15px] rounded-[50%] min-w-[15px]",
20077
20081
  style: sp({ backgroundColor: T.color })
20078
20082
  }, null, 4),
20079
- Ye("div", B_, ss(X.capitalizeFirstLetter(T.text)), 1)
20080
- ])) : Or("", !0)
20083
+ Ye("div", O_, Mn(X.capitalizeFirstLetter(T.text)), 1)
20084
+ ])) : Pr("", !0)
20081
20085
  ]))), 256))
20082
20086
  ]);
20083
20087
  }
20084
- const V_ = /* @__PURE__ */ hn(D_, [["render", O_]]), N_ = {
20088
+ const N_ = /* @__PURE__ */ hn(D_, [["render", V_]]), j_ = {
20085
20089
  components: {
20086
20090
  MapSlotLayers: z_,
20087
- MapLegend: V_
20091
+ MapLegend: N_
20088
20092
  },
20089
20093
  props: {
20090
20094
  colorAttr: null,
20091
- legendName: { type: String, default: () => "" },
20095
+ legendname: { type: String, default: () => "" },
20092
20096
  height: {
20093
20097
  type: String,
20094
20098
  default: () => "100vh"
@@ -20254,10 +20258,10 @@ const V_ = /* @__PURE__ */ hn(D_, [["render", O_]]), N_ = {
20254
20258
  ), this.map.on("load", this.handleMapLoad);
20255
20259
  }
20256
20260
  }
20257
- }, j_ = { class: "vs-map-portal relative" };
20258
- function U_(_, S, k, z, N, X) {
20261
+ }, U_ = { class: "vs-map-portal relative" };
20262
+ function $_(_, S, k, z, N, X) {
20259
20263
  const T = Wi("MapLegend"), c = Wi("MapSlotLayers");
20260
- return gt(), Ut("div", j_, [
20264
+ return dt(), jt("div", U_, [
20261
20265
  Ye("div", {
20262
20266
  id: "maplibre-map",
20263
20267
  ref: "maplibreMap",
@@ -20266,15 +20270,15 @@ function U_(_, S, k, z, N, X) {
20266
20270
  }, null, 4),
20267
20271
  Vr(T, {
20268
20272
  colors: N.colors,
20269
- legendName: k.legendName
20270
- }, null, 8, ["colors", "legendName"]),
20273
+ title: k.legendname
20274
+ }, null, 8, ["colors", "title"]),
20271
20275
  Vr(c, {
20272
20276
  map: N.map,
20273
20277
  baseLayers: k.basemap
20274
20278
  }, null, 8, ["map", "baseLayers"])
20275
20279
  ]);
20276
20280
  }
20277
- const $_ = /* @__PURE__ */ hn(N_, [["render", U_]]), q_ = {}, Z_ = {
20281
+ const q_ = /* @__PURE__ */ hn(j_, [["render", $_]]), Z_ = {}, G_ = {
20278
20282
  class: "flex-shrink-0 size-3.5",
20279
20283
  xmlns: "http://www.w3.org/2000/svg",
20280
20284
  width: "22",
@@ -20285,13 +20289,13 @@ const $_ = /* @__PURE__ */ hn(N_, [["render", U_]]), q_ = {}, Z_ = {
20285
20289
  "stroke-width": "2",
20286
20290
  "stroke-linecap": "round",
20287
20291
  "stroke-linejoin": "round"
20288
- }, G_ = /* @__PURE__ */ np('<line x1="21" x2="14" y1="4" y2="4"></line><line x1="10" x2="3" y1="4" y2="4"></line><line x1="21" x2="12" y1="12" y2="12"></line><line x1="8" x2="3" y1="12" y2="12"></line><line x1="21" x2="16" y1="20" y2="20"></line><line x1="12" x2="3" y1="20" y2="20"></line><line x1="14" x2="14" y1="2" y2="6"></line><line x1="8" x2="8" y1="10" y2="14"></line><line x1="16" x2="16" y1="18" y2="22"></line>', 9), H_ = [
20289
- G_
20292
+ }, H_ = /* @__PURE__ */ np('<line x1="21" x2="14" y1="4" y2="4"></line><line x1="10" x2="3" y1="4" y2="4"></line><line x1="21" x2="12" y1="12" y2="12"></line><line x1="8" x2="3" y1="12" y2="12"></line><line x1="21" x2="16" y1="20" y2="20"></line><line x1="12" x2="3" y1="20" y2="20"></line><line x1="14" x2="14" y1="2" y2="6"></line><line x1="8" x2="8" y1="10" y2="14"></line><line x1="16" x2="16" y1="18" y2="22"></line>', 9), W_ = [
20293
+ H_
20290
20294
  ];
20291
- function W_(_, S) {
20292
- return gt(), Ut("svg", Z_, H_);
20295
+ function X_(_, S) {
20296
+ return dt(), jt("svg", G_, W_);
20293
20297
  }
20294
- const X_ = /* @__PURE__ */ hn(q_, [["render", W_]]), J_ = {}, K_ = {
20298
+ const J_ = /* @__PURE__ */ hn(Z_, [["render", X_]]), K_ = {}, Y_ = {
20295
20299
  xmlns: "http://www.w3.org/2000/svg",
20296
20300
  width: "21",
20297
20301
  height: "20",
@@ -20302,20 +20306,20 @@ const X_ = /* @__PURE__ */ hn(q_, [["render", W_]]), J_ = {}, K_ = {
20302
20306
  "stroke-linecap": "round",
20303
20307
  "stroke-linejoin": "round",
20304
20308
  class: "icon icon-tabler icons-tabler-outline icon-tabler-layout-sidebar-right-collapse"
20305
- }, Y_ = /* @__PURE__ */ Ye("path", {
20309
+ }, Q_ = /* @__PURE__ */ Ye("path", {
20306
20310
  stroke: "none",
20307
20311
  d: "M0 0h24v24H0z",
20308
20312
  fill: "none"
20309
- }, null, -1), Q_ = /* @__PURE__ */ Ye("path", { d: "M4 4m0 2a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2z" }, null, -1), ey = /* @__PURE__ */ Ye("path", { d: "M15 4v16" }, null, -1), ty = /* @__PURE__ */ Ye("path", { d: "M9 10l2 2l-2 2" }, null, -1), iy = [
20310
- Y_,
20313
+ }, null, -1), ey = /* @__PURE__ */ Ye("path", { d: "M4 4m0 2a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2z" }, null, -1), ty = /* @__PURE__ */ Ye("path", { d: "M15 4v16" }, null, -1), iy = /* @__PURE__ */ Ye("path", { d: "M9 10l2 2l-2 2" }, null, -1), ry = [
20311
20314
  Q_,
20312
20315
  ey,
20313
- ty
20316
+ ty,
20317
+ iy
20314
20318
  ];
20315
- function ry(_, S) {
20316
- return gt(), Ut("svg", K_, iy);
20319
+ function ny(_, S) {
20320
+ return dt(), jt("svg", Y_, ry);
20317
20321
  }
20318
- const ny = /* @__PURE__ */ hn(J_, [["render", ry]]), sy = {}, oy = {
20322
+ const sy = /* @__PURE__ */ hn(K_, [["render", ny]]), oy = {}, ay = {
20319
20323
  xmlns: "http://www.w3.org/2000/svg",
20320
20324
  width: "21",
20321
20325
  height: "20",
@@ -20326,20 +20330,20 @@ const ny = /* @__PURE__ */ hn(J_, [["render", ry]]), sy = {}, oy = {
20326
20330
  "stroke-linecap": "round",
20327
20331
  "stroke-linejoin": "round",
20328
20332
  class: "icon icon-tabler icons-tabler-outline icon-tabler-layout-sidebar-right-expand"
20329
- }, ay = /* @__PURE__ */ Ye("path", {
20333
+ }, ly = /* @__PURE__ */ Ye("path", {
20330
20334
  stroke: "none",
20331
20335
  d: "M0 0h24v24H0z",
20332
20336
  fill: "none"
20333
- }, null, -1), ly = /* @__PURE__ */ Ye("path", { d: "M4 4m0 2a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2z" }, null, -1), cy = /* @__PURE__ */ Ye("path", { d: "M15 4v16" }, null, -1), hy = /* @__PURE__ */ Ye("path", { d: "M10 10l-2 2l2 2" }, null, -1), uy = [
20334
- ay,
20337
+ }, null, -1), cy = /* @__PURE__ */ Ye("path", { d: "M4 4m0 2a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2z" }, null, -1), hy = /* @__PURE__ */ Ye("path", { d: "M15 4v16" }, null, -1), uy = /* @__PURE__ */ Ye("path", { d: "M10 10l-2 2l2 2" }, null, -1), dy = [
20335
20338
  ly,
20336
20339
  cy,
20337
- hy
20340
+ hy,
20341
+ uy
20338
20342
  ];
20339
- function dy(_, S) {
20340
- return gt(), Ut("svg", oy, uy);
20343
+ function py(_, S) {
20344
+ return dt(), jt("svg", ay, dy);
20341
20345
  }
20342
- const py = /* @__PURE__ */ hn(sy, [["render", dy]]), fy = {}, my = {
20346
+ const fy = /* @__PURE__ */ hn(oy, [["render", py]]), my = {}, gy = {
20343
20347
  class: "shrink-0 size-3",
20344
20348
  xmlns: "http://www.w3.org/2000/svg",
20345
20349
  width: "24",
@@ -20350,14 +20354,14 @@ const py = /* @__PURE__ */ hn(sy, [["render", dy]]), fy = {}, my = {
20350
20354
  "stroke-width": "2",
20351
20355
  "stroke-linecap": "round",
20352
20356
  "stroke-linejoin": "round"
20353
- }, gy = /* @__PURE__ */ Ye("path", { d: "M18 6 6 18" }, null, -1), _y = /* @__PURE__ */ Ye("path", { d: "m6 6 12 12" }, null, -1), yy = [
20354
- gy,
20355
- _y
20357
+ }, _y = /* @__PURE__ */ Ye("path", { d: "M18 6 6 18" }, null, -1), yy = /* @__PURE__ */ Ye("path", { d: "m6 6 12 12" }, null, -1), xy = [
20358
+ _y,
20359
+ yy
20356
20360
  ];
20357
- function xy(_, S) {
20358
- return gt(), Ut("svg", my, yy);
20361
+ function vy(_, S) {
20362
+ return dt(), jt("svg", gy, xy);
20359
20363
  }
20360
- const vy = /* @__PURE__ */ hn(fy, [["render", xy]]), by = {
20364
+ const by = /* @__PURE__ */ hn(my, [["render", vy]]), wy = {
20361
20365
  props: {
20362
20366
  visible: { type: Boolean, default: () => !1 },
20363
20367
  title: { type: String, default: () => "" },
@@ -20388,7 +20392,7 @@ const vy = /* @__PURE__ */ hn(fy, [["render", xy]]), by = {
20388
20392
  this.$emit("update:visible", !1), this.$emit("onClose");
20389
20393
  }
20390
20394
  }
20391
- }, jp = (_) => (Bm("data-v-0a173fd8"), _ = _(), Om(), _), wy = { class: "vsTailwind ui-dialog__wrapper" }, Sy = { class: "w-full h-full fixed top-0 start-0 z-[80] bg-black bg-opacity-50" }, Ty = { class: "py-2.5 px-4 flex justify-between items-center border-b" }, Iy = { class: "font-medium text-gray-800" }, Py = /* @__PURE__ */ jp(() => /* @__PURE__ */ Ye("span", { class: "sr-only" }, "Close", -1)), Ay = /* @__PURE__ */ jp(() => /* @__PURE__ */ Ye("svg", {
20395
+ }, jp = (_) => (Bm("data-v-0a173fd8"), _ = _(), Om(), _), Sy = { class: "vsTailwind ui-dialog__wrapper" }, Ty = { class: "w-full h-full fixed top-0 start-0 z-[80] bg-black bg-opacity-50" }, Iy = { class: "py-2.5 px-4 flex justify-between items-center border-b" }, Py = { class: "font-medium text-gray-800" }, Ay = /* @__PURE__ */ jp(() => /* @__PURE__ */ Ye("span", { class: "sr-only" }, "Close", -1)), Cy = /* @__PURE__ */ jp(() => /* @__PURE__ */ Ye("svg", {
20392
20396
  class: "flex-shrink-0 w-4 h-4",
20393
20397
  xmlns: "http://www.w3.org/2000/svg",
20394
20398
  width: "24",
@@ -20402,19 +20406,19 @@ const vy = /* @__PURE__ */ hn(fy, [["render", xy]]), by = {
20402
20406
  }, [
20403
20407
  /* @__PURE__ */ Ye("path", { d: "M18 6 6 18" }),
20404
20408
  /* @__PURE__ */ Ye("path", { d: "m6 6 12 12" })
20405
- ], -1)), Cy = [
20406
- Py,
20407
- Ay
20408
- ], ky = { class: "ui-dialog__content p-4" }, Ey = {
20409
+ ], -1)), ky = [
20410
+ Ay,
20411
+ Cy
20412
+ ], Ey = { class: "ui-dialog__content p-4" }, My = {
20409
20413
  key: 0,
20410
20414
  class: "flex justify-end gap-x-2"
20411
20415
  };
20412
- function My(_, S, k, z, N, X) {
20413
- return gt(), cn(Fm, { to: "#modal" }, [
20416
+ function zy(_, S, k, z, N, X) {
20417
+ return dt(), cn(Fm, { to: "#modal" }, [
20414
20418
  Vr(Nd, { name: "fade" }, {
20415
20419
  default: jo(() => [
20416
- op(Ye("div", wy, [
20417
- Ye("div", Sy, [
20420
+ op(Ye("div", Sy, [
20421
+ Ye("div", Ty, [
20418
20422
  Vr(Nd, {
20419
20423
  name: "content",
20420
20424
  appear: ""
@@ -20423,20 +20427,20 @@ function My(_, S, k, z, N, X) {
20423
20427
  Ye("div", {
20424
20428
  class: cl(["ui-dialog__modal opacity-1 transition-all flex flex-col bg-white border pointer-events-auto shadow-[0_10px_40px_10px_rgba(0,0,0,0.08)] rounded-xl", [X.checkSize]])
20425
20429
  }, [
20426
- Ye("div", Ty, [
20427
- Ye("h3", Iy, ss(k.title), 1),
20430
+ Ye("div", Iy, [
20431
+ Ye("h3", Py, Mn(k.title), 1),
20428
20432
  Ye("button", {
20429
20433
  type: "button",
20430
20434
  class: "size-8 inline-flex justify-center items-center gap-x-2 rounded-full border border-transparent bg-gray-100 text-gray-800 hover:bg-gray-200 focus:outline-none focus:bg-gray-200 disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-700 dark:hover:bg-neutral-600 dark:text-neutral-400 dark:focus:bg-neutral-600",
20431
20435
  onClick: S[0] || (S[0] = (...T) => X.handleClose && X.handleClose(...T))
20432
- }, Cy)
20436
+ }, ky)
20433
20437
  ]),
20434
- Ye("div", ky, [
20438
+ Ye("div", Ey, [
20435
20439
  ll(_.$slots, "default", {}, void 0, !0)
20436
20440
  ]),
20437
- X.hasSlot ? (gt(), Ut("div", Ey, [
20441
+ X.hasSlot ? (dt(), jt("div", My, [
20438
20442
  ll(_.$slots, "footer", {}, void 0, !0)
20439
- ])) : Or("", !0)
20443
+ ])) : Pr("", !0)
20440
20444
  ], 2)
20441
20445
  ]),
20442
20446
  _: 3
@@ -20450,14 +20454,14 @@ function My(_, S, k, z, N, X) {
20450
20454
  })
20451
20455
  ]);
20452
20456
  }
20453
- const zy = /* @__PURE__ */ hn(by, [["render", My], ["__scopeId", "data-v-0a173fd8"]]), Dy = Vm({
20457
+ const Dy = /* @__PURE__ */ hn(wy, [["render", zy], ["__scopeId", "data-v-0a173fd8"]]), Ly = Vm({
20454
20458
  props: {
20455
20459
  title: { type: String, default: () => "" },
20456
20460
  table: { type: String, default: () => "" },
20457
20461
  rows: { type: String, default: () => null },
20458
20462
  initTotal: { type: String, default: () => "" },
20459
20463
  colorAttr: { type: String, default: () => "" },
20460
- legendName: { type: String, default: () => "" },
20464
+ legendname: { type: String, default: () => "" },
20461
20465
  maxBounds: {
20462
20466
  type: String,
20463
20467
  default: () => [
@@ -20475,13 +20479,13 @@ const zy = /* @__PURE__ */ hn(by, [["render", My], ["__scopeId", "data-v-0a173fd
20475
20479
  },
20476
20480
  mixins: [Jh],
20477
20481
  components: {
20478
- MapPortal: $_,
20482
+ MapPortal: q_,
20479
20483
  NoData: Ym,
20480
- FilterIcon: X_,
20481
- VisibleMapIcon: ny,
20482
- HiddenMapIcon: py,
20483
- CloseIcon: vy,
20484
- VsDialog: zy
20484
+ FilterIcon: J_,
20485
+ VisibleMapIcon: sy,
20486
+ HiddenMapIcon: fy,
20487
+ CloseIcon: by,
20488
+ VsDialog: Dy
20485
20489
  },
20486
20490
  data() {
20487
20491
  return {
@@ -20749,7 +20753,10 @@ const zy = /* @__PURE__ */ hn(by, [["render", My], ["__scopeId", "data-v-0a173fd
20749
20753
  },
20750
20754
  async handleMapClick(_) {
20751
20755
  var X, T, c, _e, ye, we, ae;
20752
- const S = this.map.queryRenderedFeatures(_.point), k = window.location.pathname, z = new URLSearchParams(window.location.search);
20756
+ const S = this.map.queryRenderedFeatures(_.point);
20757
+ if (S.length < 1)
20758
+ return;
20759
+ const k = window.location.pathname, z = new URLSearchParams(window.location.search);
20753
20760
  z.set("id", `${(X = S[0]) == null ? void 0 : X.properties.id}`), this.getObjectData((T = S[0]) == null ? void 0 : T.properties.id);
20754
20761
  const N = `${k}?${z.toString()}`;
20755
20762
  window.history.pushState({}, "", N), this.isSelectObj = !0, _.lngLat && ((ae = this.map) == null || ae.fitBounds(
@@ -20829,35 +20836,35 @@ const zy = /* @__PURE__ */ hn(by, [["render", My], ["__scopeId", "data-v-0a173fd
20829
20836
  }
20830
20837
  }
20831
20838
  }
20832
- }), Ly = { class: "ml-3 pt-5" }, Ry = { class: "w-full gap-5 flex justify-between mb-[10px] pr-3" }, Fy = { class: "flex gap-[20px]" }, By = {
20839
+ }), Ry = { class: "ml-3 pt-5" }, Fy = { class: "w-full gap-5 flex justify-between mb-[10px] pr-3" }, By = { class: "flex gap-[20px]" }, Oy = {
20833
20840
  key: 0,
20834
20841
  class: "font-medium text-[10px] min-w-[16px] py-0.5 px-[5px] bg-gray-800 text-white leading-3 rounded-full"
20835
- }, Oy = { class: "p-4 flex-1 flex flex-wrap justify-end items-center gap-2" }, Vy = ["title"], Ny = /* @__PURE__ */ Ye("span", { class: "sr-only" }, "Відкрити мапу", -1), jy = { class: "flex" }, Uy = { class: "py-[15px] pb-[24px] pl-2" }, $y = { class: "font-bold text-2xl mr-[10px]" }, qy = { class: "text-sm text-stone-500 font-medium" }, Zy = /* @__PURE__ */ Ye("span", { class: "text-sm text-stone-500 font-medium" }, " об'єктів", -1), Gy = {
20842
+ }, Vy = { class: "p-4 flex-1 flex flex-wrap justify-end items-center gap-2" }, Ny = ["title"], jy = /* @__PURE__ */ Ye("span", { class: "sr-only" }, "Відкрити мапу", -1), Uy = { class: "flex" }, $y = { class: "py-[15px] pb-[24px] pl-2" }, qy = { class: "font-bold text-2xl mr-[10px]" }, Zy = { class: "text-sm text-stone-500 font-medium" }, Gy = /* @__PURE__ */ Ye("span", { class: "text-sm text-stone-500 font-medium" }, " об'єктів", -1), Hy = {
20836
20843
  class: "wrapperTable flex flex-col",
20837
20844
  style: { height: "calc(100vh - 302px)" }
20838
- }, Hy = {
20845
+ }, Wy = {
20839
20846
  key: 0,
20840
20847
  class: "flex gap-x-2 flex-wrap"
20841
- }, Wy = { class: "font-medium" }, Xy = /* @__PURE__ */ Ye("span", { class: "h-3 mx-2 border-s border-gray-200" }, null, -1), Jy = { class: "text-gray-500" }, Ky = ["onClick"], Yy = {
20848
+ }, Xy = { class: "font-medium" }, Jy = /* @__PURE__ */ Ye("span", { class: "h-3 mx-2 border-s border-gray-200" }, null, -1), Ky = { class: "text-gray-500" }, Yy = ["onClick"], Qy = {
20842
20849
  key: 0,
20843
20850
  class: "mb-[10px] py-1 ps-3 pe-1 inline-flex items-center bg-white border border-gray-200 text-gray-800 text-xs rounded-full"
20844
- }, Qy = /* @__PURE__ */ Ye("span", { class: "font-medium" }, " Очистити ", -1), e0 = {
20851
+ }, e0 = /* @__PURE__ */ Ye("span", { class: "font-medium" }, " Очистити ", -1), t0 = {
20845
20852
  key: 2,
20846
20853
  class: "text-center py-28"
20847
- }, t0 = /* @__PURE__ */ Ye("h2", { class: "font-medium text-base text-gray-500 rounded-xl" }, " За вашим запитом даних не знайдено! ", -1), i0 = /* @__PURE__ */ Ye("p", { class: "font-normal text-sm text-gray-500 rounded-xl" }, " Введіть, будь ласка, інші значення для пошуку. ", -1), r0 = { key: 0 }, n0 = {
20854
+ }, i0 = /* @__PURE__ */ Ye("h2", { class: "font-medium text-base text-gray-500 rounded-xl" }, " За вашим запитом даних не знайдено! ", -1), r0 = /* @__PURE__ */ Ye("p", { class: "font-normal text-sm text-gray-500 rounded-xl" }, " Введіть, будь ласка, інші значення для пошуку. ", -1), n0 = { key: 0 }, s0 = {
20848
20855
  key: 1,
20849
20856
  class: "my-5 pr-2"
20850
- }, s0 = { class: "flex justify-between" }, o0 = { class: "w-2/4" }, a0 = { class: "map-section" }, l0 = {
20857
+ }, o0 = { class: "flex justify-between" }, a0 = { class: "w-2/4" }, l0 = { class: "map-section" }, c0 = {
20851
20858
  ref: "popup",
20852
20859
  style: { display: "none" }
20853
20860
  };
20854
- function c0(_, S, k, z, N, X) {
20855
- const T = Wi("VsAutocompleteOption"), c = Wi("vs-autocomplete"), _e = Wi("VsTextMask"), ye = Wi("vs-text"), we = Wi("FilterIcon"), ae = Wi("VsFilter"), oe = Wi("VsDialog"), _t = Wi("VisibleMapIcon"), Ze = Wi("HiddenMapIcon"), et = Wi("CloseIcon"), Ne = Wi("NoData"), dt = Wi("VsPagination"), Ot = Wi("MapPortal");
20856
- return gt(), Ut("section", Ly, [
20861
+ function h0(_, S, k, z, N, X) {
20862
+ const T = Wi("VsAutocompleteOption"), c = Wi("vs-autocomplete"), _e = Wi("VsTextMask"), ye = Wi("vs-text"), we = Wi("FilterIcon"), ae = Wi("VsFilter"), oe = Wi("VsDialog"), _t = Wi("VisibleMapIcon"), Ze = Wi("HiddenMapIcon"), et = Wi("CloseIcon"), Ne = Wi("NoData"), pt = Wi("VsPagination"), Ot = Wi("MapPortal");
20863
+ return dt(), jt("section", Ry, [
20857
20864
  Ye("div", null, [
20858
- Ye("div", Ry, [
20859
- Ye("div", Fy, [
20860
- _.isAutocomplete ? (gt(), cn(c, {
20865
+ Ye("div", Fy, [
20866
+ Ye("div", By, [
20867
+ _.isAutocomplete ? (dt(), cn(c, {
20861
20868
  key: 0,
20862
20869
  modelValue: _.regionSelectValue,
20863
20870
  "onUpdate:modelValue": [
@@ -20873,7 +20880,7 @@ function c0(_, S, k, z, N, X) {
20873
20880
  class: "w-[350px]"
20874
20881
  }, {
20875
20882
  default: jo(() => [
20876
- (gt(!0), Ut(ol, null, al(_.searchRegionResult, (Ie) => (gt(), cn(T, {
20883
+ (dt(!0), jt(ol, null, al(_.searchRegionResult, (Ie) => (dt(), cn(T, {
20877
20884
  class: "cursor-pointer dark:hs-selected:bg-neutral-800 py-2 px-4 w-full text-sm text-gray-800 hover:bg-gray-100 rounded-lg focus:outline-none focus:bg-gray-100 dark:text-neutral-300 dark:hover:bg-neutral-800 dark:focus:bg-neutral-800",
20878
20885
  key: Ie == null ? void 0 : Ie.id,
20879
20886
  value: Ie,
@@ -20881,8 +20888,8 @@ function c0(_, S, k, z, N, X) {
20881
20888
  }, null, 8, ["value", "label"]))), 128))
20882
20889
  ]),
20883
20890
  _: 1
20884
- }, 8, ["modelValue", "onOnSearch", "onUpdate:modelValue", "onClick"])) : Or("", !0),
20885
- _.isAddressAutocomplete ? (gt(), cn(c, {
20891
+ }, 8, ["modelValue", "onOnSearch", "onUpdate:modelValue", "onClick"])) : Pr("", !0),
20892
+ _.isAddressAutocomplete ? (dt(), cn(c, {
20886
20893
  key: 1,
20887
20894
  modelValue: _.addressSelectValue,
20888
20895
  "onUpdate:modelValue": [
@@ -20898,7 +20905,7 @@ function c0(_, S, k, z, N, X) {
20898
20905
  class: "w-[350px]"
20899
20906
  }, {
20900
20907
  default: jo(() => [
20901
- (gt(!0), Ut(ol, null, al(_.searchAddressResult, (Ie) => (gt(), cn(T, {
20908
+ (dt(!0), jt(ol, null, al(_.searchAddressResult, (Ie) => (dt(), cn(T, {
20902
20909
  class: "cursor-pointer dark:hs-selected:bg-neutral-800 py-2 px-4 w-full text-sm text-gray-800 hover:bg-gray-100 rounded-lg focus:outline-none focus:bg-gray-100 dark:text-neutral-300 dark:hover:bg-neutral-800 dark:focus:bg-neutral-800",
20903
20910
  key: Ie == null ? void 0 : Ie.id,
20904
20911
  value: Ie,
@@ -20906,8 +20913,8 @@ function c0(_, S, k, z, N, X) {
20906
20913
  }, null, 8, ["value", "label"]))), 128))
20907
20914
  ]),
20908
20915
  _: 1
20909
- }, 8, ["modelValue", "onOnSearch", "onUpdate:modelValue", "onClick"])) : Or("", !0),
20910
- _.maskForSearch ? (gt(), cn(_e, {
20916
+ }, 8, ["modelValue", "onOnSearch", "onUpdate:modelValue", "onClick"])) : Pr("", !0),
20917
+ _.maskForSearch ? (dt(), cn(_e, {
20911
20918
  key: 2,
20912
20919
  "model-value": _.search,
20913
20920
  "onUpdate:modelValue": _.handleDebouncedUpdateValue,
@@ -20919,7 +20926,7 @@ function c0(_, S, k, z, N, X) {
20919
20926
  clearable: "",
20920
20927
  style: { height: "38px", "min-width": "300px", "max-width": "300px" },
20921
20928
  ref: "searchInput"
20922
- }, null, 8, ["model-value", "onUpdate:modelValue", "mask"])) : (gt(), cn(ye, {
20929
+ }, null, 8, ["model-value", "onUpdate:modelValue", "mask"])) : (dt(), cn(ye, {
20923
20930
  key: 3,
20924
20931
  "model-value": _.search,
20925
20932
  "onUpdate:modelValue": _.handleDebouncedUpdateValue,
@@ -20938,7 +20945,7 @@ function c0(_, S, k, z, N, X) {
20938
20945
  }, [
20939
20946
  Vr(we),
20940
20947
  Nm(" Фільтри "),
20941
- _.activeFiltersCount >= 1 ? (gt(), Ut("span", By, ss(_.activeFiltersCount), 1)) : Or("", !0)
20948
+ _.activeFiltersCount >= 1 ? (dt(), jt("span", Oy, Mn(_.activeFiltersCount), 1)) : Pr("", !0)
20942
20949
  ]),
20943
20950
  Vr(oe, {
20944
20951
  visible: _.isFilterVisible,
@@ -20950,7 +20957,7 @@ function c0(_, S, k, z, N, X) {
20950
20957
  })
20951
20958
  }, {
20952
20959
  footer: jo(() => [
20953
- Ye("div", Oy, [
20960
+ Ye("div", Vy, [
20954
20961
  Ye("button", {
20955
20962
  onClick: S[3] || (S[3] = (...Ie) => _.resetFilters && _.resetFilters(...Ie)),
20956
20963
  class: "py-2 px-3 inline-flex justify-center items-center text-start bg-white border border-gray-200 text-gray-800 text-sm font-medium rounded-lg shadow-sm align-middle hover:bg-gray-50 disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-800 dark:border-neutral-700 dark:text-neutral-300 dark:hover:bg-neutral-700 dark:focus:bg-neutral-700"
@@ -20962,7 +20969,7 @@ function c0(_, S, k, z, N, X) {
20962
20969
  ])
20963
20970
  ]),
20964
20971
  default: jo(() => [
20965
- _.filters ? (gt(), cn(ae, {
20972
+ _.filters ? (dt(), cn(ae, {
20966
20973
  key: 0,
20967
20974
  ref: "filter",
20968
20975
  scheme: _.filters,
@@ -20971,7 +20978,7 @@ function c0(_, S, k, z, N, X) {
20971
20978
  name: "filter",
20972
20979
  layout: "default",
20973
20980
  onFilterChange: _.handleFilterChange
20974
- }, null, 8, ["scheme", "onFilterClose", "onFilterChange"])) : Or("", !0)
20981
+ }, null, 8, ["scheme", "onFilterClose", "onFilterChange"])) : Pr("", !0)
20975
20982
  ]),
20976
20983
  _: 1
20977
20984
  }, 8, ["visible"])
@@ -20982,11 +20989,11 @@ function c0(_, S, k, z, N, X) {
20982
20989
  title: _.isMapVisible ? "Приховати карту" : "Показати карту",
20983
20990
  onClick: S[7] || (S[7] = (...Ie) => _.toggleMapVisible && _.toggleMapVisible(...Ie))
20984
20991
  }, [
20985
- _.isMapVisible ? (gt(), cn(_t, { key: 0 })) : (gt(), cn(Ze, { key: 1 })),
20986
- Ny
20987
- ], 8, Vy)
20992
+ _.isMapVisible ? (dt(), cn(_t, { key: 0 })) : (dt(), cn(Ze, { key: 1 })),
20993
+ jy
20994
+ ], 8, Ny)
20988
20995
  ]),
20989
- Ye("div", jy, [
20996
+ Ye("div", Uy, [
20990
20997
  Ye("div", {
20991
20998
  class: cl([
20992
20999
  "relative overflow-hidden",
@@ -20994,30 +21001,30 @@ function c0(_, S, k, z, N, X) {
20994
21001
  _.isSelectObj ? "hidden" : ""
20995
21002
  ])
20996
21003
  }, [
20997
- Ye("h1", Uy, [
20998
- Ye("span", $y, ss(_.title), 1),
20999
- Ye("span", qy, ss(_.total), 1),
21000
- Zy
21004
+ Ye("h1", $y, [
21005
+ Ye("span", qy, Mn(_.title), 1),
21006
+ Ye("span", Zy, Mn(_.total), 1),
21007
+ Gy
21001
21008
  ]),
21002
- Ye("div", Gy, [
21003
- _.activeFilters ? (gt(), Ut("div", Hy, [
21004
- (gt(!0), Ut(ol, null, al(_.activeFilters, (Ie, At, It) => (gt(), Ut("span", {
21009
+ Ye("div", Hy, [
21010
+ _.activeFilters ? (dt(), jt("div", Wy, [
21011
+ (dt(!0), jt(ol, null, al(_.activeFilters, (Ie, At, It) => (dt(), jt("span", {
21005
21012
  class: "mb-[10px] py-1 ps-3 pe-1 inline-flex items-center bg-white border border-gray-200 text-gray-800 text-xs rounded-full",
21006
21013
  key: It
21007
21014
  }, [
21008
- Ye("span", Wy, ss(_.getLabelById(At)), 1),
21009
- Xy,
21010
- Ye("span", Jy, ss(_.getOptionsLabelById(At, Ie)), 1),
21015
+ Ye("span", Xy, Mn(_.getLabelById(At)), 1),
21016
+ Jy,
21017
+ Ye("span", Ky, Mn(_.getOptionsLabelById(At, Ie)), 1),
21011
21018
  Ye("button", {
21012
21019
  type: "button",
21013
21020
  class: "inline-flex shrink-0 justify-center items-center size-5 ms-1 rounded-full text-gray-600 hover:bg-gray-200 focus:outline-none focus:bg-gray-200 text-sm",
21014
21021
  onClick: (Wt) => _.clearFilter(At)
21015
21022
  }, [
21016
21023
  Vr(et)
21017
- ], 8, Ky)
21024
+ ], 8, Yy)
21018
21025
  ]))), 128)),
21019
- Object.keys(_.activeFilters).length >= 2 ? (gt(), Ut("span", Yy, [
21020
- Qy,
21026
+ Object.keys(_.activeFilters).length >= 2 ? (dt(), jt("span", Qy, [
21027
+ e0,
21021
21028
  Ye("button", {
21022
21029
  type: "button",
21023
21030
  class: "inline-flex shrink-0 justify-center items-center size-5 ms-1 rounded-full text-gray-600 hover:bg-gray-200 focus:outline-none focus:bg-gray-200 text-sm",
@@ -21025,8 +21032,8 @@ function c0(_, S, k, z, N, X) {
21025
21032
  }, [
21026
21033
  Vr(et)
21027
21034
  ])
21028
- ])) : Or("", !0)
21029
- ])) : Or("", !0),
21035
+ ])) : Pr("", !0)
21036
+ ])) : Pr("", !0),
21030
21037
  _.total >= 1 ? ll(_.$slots, "table", {
21031
21038
  key: 1,
21032
21039
  rows: _.tableData,
@@ -21034,10 +21041,10 @@ function c0(_, S, k, z, N, X) {
21034
21041
  selectRow: _.selectRow,
21035
21042
  getData: _.getData,
21036
21043
  isMapVisible: _.isMapVisible
21037
- }) : (gt(), Ut("div", e0, [
21044
+ }) : (dt(), jt("div", t0, [
21038
21045
  Vr(Ne),
21039
- t0,
21040
21046
  i0,
21047
+ r0,
21041
21048
  Ye("button", {
21042
21049
  type: "button",
21043
21050
  class: "mt-[10px] py-2 px-2.5 inline-flex items-center gap-x-1.5 text-xs rounded-lg border border-stone-200 bg-white text-stone-800 shadow-sm hover:bg-stone-50 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:bg-stone-100",
@@ -21045,10 +21052,10 @@ function c0(_, S, k, z, N, X) {
21045
21052
  }, " Очистити дані пошуку ")
21046
21053
  ]))
21047
21054
  ]),
21048
- _.total >= 1 ? (gt(), Ut("hr", r0)) : Or("", !0),
21049
- _.total >= 1 ? (gt(), Ut("div", n0, [
21050
- Ye("div", s0, [
21051
- Vr(dt, {
21055
+ _.total >= 1 ? (dt(), jt("hr", n0)) : Pr("", !0),
21056
+ _.total >= 1 ? (dt(), jt("div", s0, [
21057
+ Ye("div", o0, [
21058
+ Vr(pt, {
21052
21059
  total: _.total,
21053
21060
  maxPages: 7,
21054
21061
  defaultPage: _.currentPage,
@@ -21062,9 +21069,9 @@ function c0(_, S, k, z, N, X) {
21062
21069
  onPageSizeChange: _.changeLimit
21063
21070
  }, null, 8, ["total", "defaultPage", "pageSize", "onPageChange", "onPageSizeChange"])
21064
21071
  ])
21065
- ])) : Or("", !0)
21072
+ ])) : Pr("", !0)
21066
21073
  ], 2),
21067
- _.isSelectObj ? (gt(), Ut("div", {
21074
+ _.isSelectObj ? (dt(), jt("div", {
21068
21075
  key: 0,
21069
21076
  class: cl(_.isMapVisible ? "w-2/4 mr-0 pb-5" : "w-full pb-5 mr-3"),
21070
21077
  style: { height: "calc(100vh - 152px)" }
@@ -21077,42 +21084,42 @@ function c0(_, S, k, z, N, X) {
21077
21084
  closeObjCard: _.closeObjCard,
21078
21085
  isMapVisible: _.isMapVisible
21079
21086
  })
21080
- ], 2)) : Or("", !0),
21081
- op(Ye("div", o0, [
21082
- Ye("section", a0, [
21087
+ ], 2)) : Pr("", !0),
21088
+ op(Ye("div", a0, [
21089
+ Ye("section", l0, [
21083
21090
  Vr(Ot, {
21084
21091
  height: "calc(100vh - 152px)",
21085
21092
  width: "w-2/4",
21086
21093
  table: _.table,
21087
21094
  filtersParam: _.filtersParam,
21088
21095
  row: _.selectedRow,
21089
- legendName: _.legendName,
21096
+ legendname: _.legendname,
21090
21097
  colorAttr: _.colorAttr,
21091
21098
  maxBounds: _.maxBounds,
21092
21099
  zoom: _.zoom,
21093
21100
  basemap: _.basemap,
21094
21101
  pointZoom: _.pointZoom
21095
- }, null, 8, ["table", "filtersParam", "row", "legendName", "colorAttr", "maxBounds", "zoom", "basemap", "pointZoom"])
21102
+ }, null, 8, ["table", "filtersParam", "row", "legendname", "colorAttr", "maxBounds", "zoom", "basemap", "pointZoom"])
21096
21103
  ])
21097
21104
  ], 512), [
21098
21105
  [ap, _.isMapVisible]
21099
21106
  ])
21100
21107
  ]),
21101
- Ye("div", l0, [
21108
+ Ye("div", c0, [
21102
21109
  ll(_.$slots, "popup", { data: _.hoverData })
21103
21110
  ], 512)
21104
21111
  ])
21105
21112
  ]);
21106
21113
  }
21107
- const Up = /* @__PURE__ */ hn(Dy, [["render", c0]]), h0 = (_) => {
21114
+ const Up = /* @__PURE__ */ hn(Ly, [["render", h0]]), u0 = (_) => {
21108
21115
  _.component("VsPartsMap", Up);
21109
- }, u0 = {
21110
- install: h0,
21116
+ }, d0 = {
21117
+ install: u0,
21111
21118
  components: {
21112
21119
  VsPartsMap: Up
21113
21120
  }
21114
21121
  };
21115
- typeof window < "u" && (window.PartsMap = u0);
21122
+ typeof window < "u" && (window.PartsMap = d0);
21116
21123
  export {
21117
- u0 as default
21124
+ d0 as default
21118
21125
  };