@expofp/floorplan 3.0.4 → 3.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (65) hide show
  1. package/README.md +8 -0
  2. package/dist/browser/{CookieConsent-20OSplsa.js → CookieConsent-CDxonlwe.js} +1263 -1261
  3. package/dist/browser/{Debug-DVY7QSH3.js → Debug-i-1KdTDk.js} +7 -7
  4. package/dist/browser/{Demo-qAITctPP.js → Demo-CQJkm6mN.js} +11 -11
  5. package/dist/browser/Free-Cvsndo_8.js +63 -0
  6. package/dist/browser/{Gallery-BhQo5kwQ.js → Gallery-DqmanL-9.js} +16 -16
  7. package/dist/browser/{GpsLoader-CiHW2urc.js → GpsLoader-C2C18oPB.js} +21 -21
  8. package/dist/browser/{KioskStore-CwZLrrqy.js → KioskStore-CTuYNXTK.js} +16 -16
  9. package/dist/browser/{Mapbox-C65ZvpNQ.js → Mapbox-CWd5ouuI.js} +18 -18
  10. package/dist/browser/{SetKioskMode-C4z7Sz25.js → SetKioskMode-D82xnccT.js} +19 -19
  11. package/dist/browser/ShowKiosk-BPbgvj4h.js +26 -0
  12. package/dist/browser/{ThreeComponent-BXwxseVE.js → ThreeComponent-BVyzwq47.js} +282 -282
  13. package/dist/browser/{TouchHand-Dz318pf9.js → TouchHand-B7utOQAe.js} +4 -4
  14. package/dist/browser/{ViewerMenuPanel-CAK4bMYg.js → ViewerMenuPanel-Ar4nlACL.js} +19 -19
  15. package/dist/browser/{add-debug-secret-listener-Bji6Xb0a.js → add-debug-secret-listener-BdeqSuVN.js} +1 -1
  16. package/dist/browser/{boolean-editor-D6nJvUln.js → boolean-editor-2nqTGUWk.js} +6 -6
  17. package/dist/browser/bundle.json +43 -43
  18. package/dist/browser/{chunk-DtdTVMkx.js → chunk-QeH1YbGo.js} +1 -1
  19. package/dist/browser/{classnames-DLO4G2Aq.js → classnames-D3zxbGlx.js} +2 -2
  20. package/dist/browser/{client-D4nNjEPG.js → client-D5a9T5Yr.js} +4 -4
  21. package/dist/browser/{data-RX6r34oF.js → data-BmQ2xFdm.js} +565 -565
  22. package/dist/browser/{debug-overlay-rk1N_z9_.js → debug-overlay-DsTlabIM.js} +8 -8
  23. package/dist/browser/{debug-ui-DE0fncQV.js → debug-ui-z1z7xjCf.js} +6 -6
  24. package/dist/browser/{dist-tX7hWUmY.js → dist-BNSxJ8Gf.js} +5 -5
  25. package/dist/browser/{exports-Pb-YuGCR.js → exports-CHb8xfg4.js} +1 -1
  26. package/dist/browser/{favicon-DwSbd3PB.js → favicon-4wtTdmCZ.js} +1 -1
  27. package/dist/browser/{fetch-retry.umd-BI9-HPVK.js → fetch-retry.umd-BIAQZiTB.js} +5 -5
  28. package/dist/browser/{flex-D-cGnQFh.js → flex-DdZZAOSi.js} +6 -6
  29. package/dist/browser/{floorplan.loader-C01OVaKo.js → floorplan.loader-CHuvNZrC.js} +583 -528
  30. package/dist/browser/{floorplan.ready-BIdCL_qu.js → floorplan.ready-BoT8xaxE.js} +122 -122
  31. package/dist/browser/{fuse-DXAWz_SJ.js → fuse-CJxwj0ga.js} +2 -2
  32. package/dist/browser/index.js +11 -11
  33. package/dist/browser/{is-debug-2b59TgVY.js → is-debug-WU3-PF6o.js} +47 -47
  34. package/dist/browser/{jsx-runtime-BQn2tbwC.js → jsx-runtime-Cw27xoLY.js} +2 -2
  35. package/dist/browser/{lib-D4g_-i_A.js → lib-BAapOsxS.js} +4 -4
  36. package/dist/browser/{main-C7b3KFSJ.js → main-qKxcSrwP.js} +1 -1
  37. package/dist/browser/{mobx-Cl5IBMNd.js → mobx-Bk-gFdVC.js} +4 -4
  38. package/dist/browser/{particles.min-fCrqBF0H.js → particles.min-jdgqFSl5.js} +2 -2
  39. package/dist/browser/{prop-types-CBcnHoAH.js → prop-types-CSJl6-43.js} +2 -2
  40. package/dist/browser/{react-CuflrHKC.js → react-DocWE6xn.js} +2 -2
  41. package/dist/browser/{react-dom-C7lq59RX.js → react-dom-CBQsjumL.js} +3 -3
  42. package/dist/browser/{reset-all-settings-DbcfYPlT.js → reset-all-settings-C_IhY9Uk.js} +1 -1
  43. package/dist/browser/{settings-CgR5mVuh.js → settings-C9z2GvpQ.js} +6 -6
  44. package/dist/browser/{src-C9-vYgd8.js → src-BRY4SgeD.js} +4 -4
  45. package/dist/browser/{store-BCWrifaL.js → store-CBwwf4CP.js} +383 -354
  46. package/dist/browser/{ui-BUETQfZK.js → ui-qs_XcPuJ.js} +6 -6
  47. package/dist/esm/components/Controls.js +1 -1
  48. package/dist/esm/components/CookieConsent.js +1 -1
  49. package/dist/esm/components/Free.js +1 -1
  50. package/dist/esm/components/Layout.js +1 -1
  51. package/dist/esm/components/LogoOverlay.js +1 -1
  52. package/dist/esm/components/PermissionNotice/PermissionNotice.d.ts +1 -0
  53. package/dist/esm/components/PermissionNotice/PermissionNotice.js +1 -1
  54. package/dist/esm/floorplan.loader.js +1 -1
  55. package/dist/esm/store/UIState.d.ts +1 -0
  56. package/dist/esm/store/UIState.js +1 -1
  57. package/dist/esm/tools/expofpUrl.d.ts +7 -0
  58. package/dist/esm/tools/expofpUrl.js +1 -0
  59. package/dist/esm/tools/freeBanner.d.ts +5 -0
  60. package/dist/esm/tools/freeBanner.js +1 -0
  61. package/dist/esm/tools/intercom.d.ts +12 -0
  62. package/dist/esm/tools/intercom.js +19 -0
  63. package/package.json +4 -7
  64. package/dist/browser/Free-DAX07Faq.js +0 -66
  65. package/dist/browser/ShowKiosk-stxqqSB7.js +0 -26
@@ -2,18 +2,18 @@ function __vite_inject_css__(css, id){ if (typeof document==='undefined') retur
2
2
  (function() {
3
3
  try {
4
4
  var e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
5
- e.SENTRY_RELEASE = { id: "3.0.4" };
5
+ e.SENTRY_RELEASE = { id: "3.1.1" };
6
6
  var t = new e.Error().stack;
7
- t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "0f4ec7fc-9320-4a6d-8f41-7d41205ac334", e._sentryDebugIdIdentifier = "sentry-dbid-0f4ec7fc-9320-4a6d-8f41-7d41205ac334");
7
+ t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "ce4f315b-72e2-44f4-a4a9-10c6912e9b3f", e._sentryDebugIdIdentifier = "sentry-dbid-ce4f315b-72e2-44f4-a4a9-10c6912e9b3f");
8
8
  } catch {}
9
9
  })();
10
- import { r as e, t } from "./chunk-DtdTVMkx.js";
11
- import { Bn as n, Hn as r, Mn as i, Nn as a, Q as o, Rn as s, Vn as c, Y as l, a as u, ct as d, o as f, q as p, zn as m } from "./store-BCWrifaL.js";
10
+ import { r as e, t } from "./chunk-QeH1YbGo.js";
11
+ import { $ as n, Gn as r, Hn as i, In as a, Kn as o, Ln as s, Un as c, Wn as l, Z as u, a as d, ft as f, nt as p, o as m } from "./store-CBwwf4CP.js";
12
12
  //#region ../../node_modules/.pnpm/mapbox-gl@2.15.0/node_modules/mapbox-gl/dist/mapbox-gl.js
13
13
  var h = /* @__PURE__ */ t(((e, t) => {
14
14
  (function(n, r) {
15
15
  typeof e == "object" && t !== void 0 ? t.exports = r() : typeof define == "function" && define.amd ? define(r) : (n = typeof globalThis < "u" ? globalThis : n || self, n.mapboxgl = r());
16
- })(e, function() {
16
+ })(e, (function() {
17
17
  var e, t, n;
18
18
  function r(r, i) {
19
19
  if (!e) e = i;
@@ -23,7 +23,7 @@ var h = /* @__PURE__ */ t(((e, t) => {
23
23
  e(o), n = i(o), typeof window < "u" && window && window.URL && window.URL.createObjectURL && (n.workerUrl = window.URL.createObjectURL(new Blob([a], { type: "text/javascript" })));
24
24
  }
25
25
  }
26
- return r(["exports"], function(e) {
26
+ return r(["exports"], (function(e) {
27
27
  var t = typeof self < "u" ? self : {}, n = "2.15.0";
28
28
  let r, i = {
29
29
  API_URL: "https://api.mapbox.com",
@@ -276,11 +276,11 @@ var h = /* @__PURE__ */ t(((e, t) => {
276
276
  function k(e, t, n) {
277
277
  if (!e.length) return n(null, []);
278
278
  let r = e.length, i = Array(e.length), a = null;
279
- e.forEach((e, o) => {
280
- t(e, (e, t) => {
279
+ e.forEach(((e, o) => {
280
+ t(e, ((e, t) => {
281
281
  e && (a = e), i[o] = t, --r == 0 && n(a, i);
282
- });
283
- });
282
+ }));
283
+ }));
284
284
  }
285
285
  function A(e) {
286
286
  let t = [];
@@ -307,9 +307,9 @@ var h = /* @__PURE__ */ t(((e, t) => {
307
307
  return !!e && /^[0-9a-f]{8}-[0-9a-f]{4}-[4][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(e);
308
308
  }
309
309
  function I(e, t) {
310
- e.forEach((e) => {
310
+ e.forEach(((e) => {
311
311
  t[e] && (t[e] = t[e].bind(t));
312
- });
312
+ }));
313
313
  }
314
314
  function te(e, t) {
315
315
  return e.indexOf(t, e.length - t.length) !== -1;
@@ -344,10 +344,10 @@ var h = /* @__PURE__ */ t(((e, t) => {
344
344
  }
345
345
  function ce(e) {
346
346
  let t = {};
347
- if (e.replace(/(?:^|(?:\s*\,\s*))([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g, (e, n, r, i) => {
347
+ if (e.replace(/(?:^|(?:\s*\,\s*))([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g, ((e, n, r, i) => {
348
348
  let a = r || i;
349
349
  return t[n] = !a || a.toLowerCase(), "";
350
- }), t["max-age"]) {
350
+ })), t["max-age"]) {
351
351
  let e = parseInt(t["max-age"], 10);
352
352
  isNaN(e) ? delete t["max-age"] : t["max-age"] = e;
353
353
  }
@@ -392,10 +392,10 @@ var h = /* @__PURE__ */ t(((e, t) => {
392
392
  let n = function(e) {
393
393
  let t = e.indexOf("?");
394
394
  return t > 0 ? e.slice(t + 1).split("&") : [];
395
- }(e).filter((e) => {
395
+ }(e).filter(((e) => {
396
396
  let t = e.split("=");
397
397
  return t[0] === "language" || t[0] === "worldview";
398
- });
398
+ }));
399
399
  return n.length ? `${e.slice(0, t)}?${n.join("&")}` : e.slice(0, t);
400
400
  }
401
401
  let xe = Infinity, Se = {
@@ -435,11 +435,11 @@ var h = /* @__PURE__ */ t(((e, t) => {
435
435
  if (o) return;
436
436
  if (r && r.message !== "SecurityError" && R(r.toString()), a && c) return u(a);
437
437
  let l = Date.now();
438
- t.fetch(i).then((t) => t.ok ? u(t, s ? t.clone() : null, l) : n(new Ce(t.statusText, t.status, e.url))).catch((t) => {
438
+ t.fetch(i).then(((t) => t.ok ? u(t, s ? t.clone() : null, l) : n(new Ce(t.statusText, t.status, e.url)))).catch(((t) => {
439
439
  t.name !== "AbortError" && n(/* @__PURE__ */ Error(`${t.message} ${e.url}`));
440
- });
440
+ }));
441
441
  }, u = (r, s, c) => {
442
- (e.type === "arrayBuffer" ? r.arrayBuffer() : e.type === "json" ? r.json() : r.text()).then((e) => {
442
+ (e.type === "arrayBuffer" ? r.arrayBuffer() : e.type === "json" ? r.json() : r.text()).then(((e) => {
443
443
  o || (s && c && function(e, n, r) {
444
444
  if (ye(), !ge) return;
445
445
  let i = {
@@ -447,7 +447,7 @@ var h = /* @__PURE__ */ t(((e, t) => {
447
447
  statusText: n.statusText,
448
448
  headers: new t.Headers()
449
449
  };
450
- n.headers.forEach((e, t) => i.headers.set(t, e));
450
+ n.headers.forEach(((e, t) => i.headers.set(t, e)));
451
451
  let a = ce(n.headers.get("Cache-Control") || "");
452
452
  if (a["no-store"]) return;
453
453
  a["max-age"] && i.headers.set("Expires", new Date(r + 1e3 * a["max-age"]).toUTCString());
@@ -459,28 +459,28 @@ var h = /* @__PURE__ */ t(((e, t) => {
459
459
  _e = !1;
460
460
  }
461
461
  _e ? t(e.body) : e.blob().then(t);
462
- }(n, (n) => {
462
+ }(n, ((n) => {
463
463
  let r = new t.Response(n, i);
464
- ye(), ge && ge.then((t) => t.put(be(e.url), r)).catch((e) => R(e.message));
465
- }));
464
+ ye(), ge && ge.then(((t) => t.put(be(e.url), r))).catch(((e) => R(e.message)));
465
+ })));
466
466
  }(i, s, c), a = !0, n(null, e, r.headers.get("Cache-Control"), r.headers.get("Expires")));
467
- }).catch((e) => {
467
+ })).catch(((e) => {
468
468
  o || n(Error(e.message));
469
- });
469
+ }));
470
470
  };
471
471
  return s ? function(e, t) {
472
472
  if (ye(), !ge) return t(null);
473
473
  let n = be(e.url);
474
- ge.then((e) => {
475
- e.match(n).then((r) => {
474
+ ge.then(((e) => {
475
+ e.match(n).then(((r) => {
476
476
  let i = function(e) {
477
477
  if (!e) return !1;
478
478
  let t = new Date(e.headers.get("Expires") || 0), n = ce(e.headers.get("Cache-Control") || "");
479
479
  return t > Date.now() && !n["no-cache"];
480
480
  }(r);
481
481
  e.delete(n), i && e.put(n, r.clone()), t(null, r, i);
482
- }).catch(t);
483
- }).catch(t);
482
+ })).catch(t);
483
+ })).catch(t);
484
484
  }(i, l) : l(null, null), { cancel: () => {
485
485
  o = !0, a || r.abort();
486
486
  } };
@@ -533,25 +533,25 @@ var h = /* @__PURE__ */ t(((e, t) => {
533
533
  let e = ke.shift(), { requestParameters: t, callback: n, cancelled: r } = e;
534
534
  r || (e.cancel = je(t, n).cancel);
535
535
  }
536
- }, s = Ee(e, (e, r, i, a) => {
536
+ }, s = Ee(e, ((e, r, i, a) => {
537
537
  o(), e ? n(e) : r && (t.createImageBitmap ? function(e, n) {
538
538
  let r = new t.Blob([new Uint8Array(e)], { type: "image/png" });
539
- t.createImageBitmap(r).then((e) => {
539
+ t.createImageBitmap(r).then(((e) => {
540
540
  n(null, e);
541
- }).catch((e) => {
541
+ })).catch(((e) => {
542
542
  n(/* @__PURE__ */ Error(`Could not load image because of ${e.message}. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported.`));
543
- });
544
- }(r, (e, t) => n(e, t, i, a)) : function(e, n) {
543
+ }));
544
+ }(r, ((e, t) => n(e, t, i, a))) : function(e, n) {
545
545
  let r = new t.Image(), i = t.URL;
546
546
  r.onload = () => {
547
- n(null, r), i.revokeObjectURL(r.src), r.onload = null, t.requestAnimationFrame(() => {
547
+ n(null, r), i.revokeObjectURL(r.src), r.onload = null, t.requestAnimationFrame((() => {
548
548
  r.src = Oe;
549
- });
549
+ }));
550
550
  }, r.onerror = () => n(/* @__PURE__ */ 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."));
551
551
  let a = new t.Blob([new Uint8Array(e)], { type: "image/png" });
552
552
  r.src = e.byteLength ? i.createObjectURL(a) : Oe;
553
- }(r, (e, t) => n(e, t, i, a)));
554
- });
553
+ }(r, ((e, t) => n(e, t, i, a))));
554
+ }));
555
555
  return { cancel: () => {
556
556
  s.cancel(), o();
557
557
  } };
@@ -592,7 +592,7 @@ var h = /* @__PURE__ */ t(((e, t) => {
592
592
  let n = e.split(".");
593
593
  if (!n || n.length !== 3) return null;
594
594
  try {
595
- return JSON.parse(decodeURIComponent(t.atob(n[1]).split("").map((e) => "%" + ("00" + e.charCodeAt(0).toString(16)).slice(-2)).join("")));
595
+ return JSON.parse(decodeURIComponent(t.atob(n[1]).split("").map(((e) => "%" + ("00" + e.charCodeAt(0).toString(16)).slice(-2))).join("")));
596
596
  } catch {
597
597
  return null;
598
598
  }
@@ -603,7 +603,7 @@ var h = /* @__PURE__ */ t(((e, t) => {
603
603
  }
604
604
  getStorageKey(e) {
605
605
  let n = He(i.ACCESS_TOKEN), r = "";
606
- return r = n && n.u ? t.btoa(encodeURIComponent(n.u).replace(/%([0-9A-F]{2})/g, (e, t) => String.fromCharCode(Number("0x" + t)))) : i.ACCESS_TOKEN || "", e ? `${Ve}.${e}:${r}` : `${Ve}:${r}`;
606
+ return r = n && n.u ? t.btoa(encodeURIComponent(n.u).replace(/%([0-9A-F]{2})/g, ((e, t) => String.fromCharCode(Number("0x" + t))))) : i.ACCESS_TOKEN || "", e ? `${Ve}.${e}:${r}` : `${Ve}:${r}`;
607
607
  }
608
608
  fetchEventData() {
609
609
  let e = de("localStorage"), n = this.getStorageKey(), r = this.getStorageKey("uuid");
@@ -639,9 +639,9 @@ var h = /* @__PURE__ */ t(((e, t) => {
639
639
  };
640
640
  this.pendingRequest = function(e, t) {
641
641
  return Te(j(e, { method: "POST" }), t);
642
- }(c, (e) => {
642
+ }(c, ((e) => {
643
643
  this.pendingRequest = null, n(e), this.saveEventData(), this.processRequests(r);
644
- });
644
+ }));
645
645
  }
646
646
  queueRequest(e, t) {
647
647
  this.queue.push(e), this.processRequests(t);
@@ -652,7 +652,7 @@ var h = /* @__PURE__ */ t(((e, t) => {
652
652
  super("appUserTurnstile"), this._customAccessToken = e;
653
653
  }
654
654
  postTurnstileEvent(e, t) {
655
- i.EVENTS_URL && i.ACCESS_TOKEN && Array.isArray(e) && e.some((e) => Ne(e) || Pe(e)) && this.queueRequest(Date.now(), t);
655
+ i.EVENTS_URL && i.ACCESS_TOKEN && Array.isArray(e) && e.some(((e) => Ne(e) || Pe(e))) && this.queueRequest(Date.now(), t);
656
656
  }
657
657
  processRequests(e) {
658
658
  if (this.pendingRequest || this.queue.length === 0) return;
@@ -670,9 +670,9 @@ var h = /* @__PURE__ */ t(((e, t) => {
670
670
  skuId: "01",
671
671
  "enabled.telemetry": !1,
672
672
  userId: this.anonId
673
- }, (e) => {
673
+ }, ((e) => {
674
674
  e || (this.eventData.lastSuccess = o, this.eventData.tokenU = r);
675
- }, e) : this.processRequests();
675
+ }), e) : this.processRequests();
676
676
  }
677
677
  }(), Ge = We.postTurnstileEvent.bind(We), Ke = new class extends Ue {
678
678
  constructor() {
@@ -693,9 +693,9 @@ var h = /* @__PURE__ */ t(((e, t) => {
693
693
  skuId: "01",
694
694
  skuToken: this.skuToken,
695
695
  userId: this.anonId
696
- }, (e) => {
696
+ }, ((e) => {
697
697
  e ? this.errorCb(e) : t && (this.success[t] = !0);
698
- }, e));
698
+ }), e));
699
699
  }
700
700
  }(), qe = Ke.postMapLoadEvent.bind(Ke), Je = new class extends Ue {
701
701
  constructor() {
@@ -742,7 +742,7 @@ var h = /* @__PURE__ */ t(((e, t) => {
742
742
  };
743
743
  for (let e in a) l(c.counters, e, a[e]);
744
744
  if (e.interactionRange[0] !== Infinity && e.interactionRange[1] !== -Infinity && (l(c.counters, "interactionRangeMin", e.interactionRange[0]), l(c.counters, "interactionRangeMax", e.interactionRange[1])), i) for (let e of Object.keys($e)) {
745
- let t = $e[e], n = i.find((e) => e.name === t);
745
+ let t = $e[e], n = i.find(((e) => e.name === t));
746
746
  n && l(c.counters, t, n.startTime);
747
747
  }
748
748
  return l(c.counters, "visibilityHidden", e.visibilityHidden), l(c.attributes, "style", function(e) {
@@ -758,7 +758,7 @@ var h = /* @__PURE__ */ t(((e, t) => {
758
758
  for (let e of a.metadata);
759
759
  for (let e of a.counters);
760
760
  for (let e of a.attributes);
761
- this.postEvent(r, a, () => {}, e);
761
+ this.postEvent(r, a, (() => {}), e);
762
762
  }
763
763
  }(), Ye = Je.postPerformanceEvent.bind(Je), Xe = new class extends Ue {
764
764
  constructor() {
@@ -774,9 +774,9 @@ var h = /* @__PURE__ */ t(((e, t) => {
774
774
  };
775
775
  this.pendingRequest = function(e, t) {
776
776
  return Te(j(e, { method: "GET" }), t);
777
- }(o, (e) => {
777
+ }(o, ((e) => {
778
778
  this.pendingRequest = null, n(e), this.saveEventData(), this.processRequests(r);
779
- });
779
+ }));
780
780
  }
781
781
  getSessionAPI(e, t, n, r) {
782
782
  this.skuToken = t, this.errorCb = r, i.SESSION_PATH && i.API_URL && (n || i.ACCESS_TOKEN ? this.queueRequest({
@@ -787,9 +787,9 @@ var h = /* @__PURE__ */ t(((e, t) => {
787
787
  processRequests(e) {
788
788
  if (this.pendingRequest || this.queue.length === 0) return;
789
789
  let { id: t, timestamp: n } = this.queue.shift();
790
- t && this.success[t] || this.getSession(n, this.skuToken, (e) => {
790
+ t && this.success[t] || this.getSession(n, this.skuToken, ((e) => {
791
791
  e ? this.errorCb(e) : t && (this.success[t] = !0);
792
- }, e);
792
+ }), e);
793
793
  }
794
794
  }(), Ze = Xe.getSessionAPI.bind(Xe), Qe = /* @__PURE__ */ new Set(), $e = {
795
795
  create: "create",
@@ -870,7 +870,7 @@ var h = /* @__PURE__ */ t(((e, t) => {
870
870
  return lt(e, t, this._listeners), lt(e, t, this._oneTimeListeners), this;
871
871
  }
872
872
  once(e, t) {
873
- return t ? (this._oneTimeListeners = this._oneTimeListeners || {}, ct(e, t, this._oneTimeListeners), this) : new Promise((t) => this.once(e, t));
873
+ return t ? (this._oneTimeListeners = this._oneTimeListeners || {}, ct(e, t, this._oneTimeListeners), this) : new Promise(((t) => this.once(e, t)));
874
874
  }
875
875
  fire(e, t) {
876
876
  typeof e == "string" && (e = new ut(e, t || {}));
@@ -973,10 +973,10 @@ var h = /* @__PURE__ */ t(((e, t) => {
973
973
  return `Expected ${Dt(e)} but found ${Dt(t)} instead.`;
974
974
  }
975
975
  function At(e, t) {
976
- return t.some((t) => t.kind === e.kind);
976
+ return t.some(((t) => t.kind === e.kind));
977
977
  }
978
978
  function jt(e, t) {
979
- return t.some((t) => t === "null" ? e === null : t === "array" ? Array.isArray(e) : t === "object" ? e && !Array.isArray(e) && typeof e == "object" : t === typeof e);
979
+ return t.some(((t) => t === "null" ? e === null : t === "array" ? Array.isArray(e) : t === "object" ? e && !Array.isArray(e) && typeof e == "object" : t === typeof e));
980
980
  }
981
981
  var Mt, Nt = {
982
982
  transparent: [
@@ -2015,13 +2015,13 @@ var h = /* @__PURE__ */ t(((e, t) => {
2015
2015
  return new Ht([new Vt(e, null, null, null, null)]);
2016
2016
  }
2017
2017
  isEmpty() {
2018
- return this.sections.length === 0 || !this.sections.some((e) => e.text.length !== 0 || e.image && e.image.name.length !== 0);
2018
+ return this.sections.length === 0 || !this.sections.some(((e) => e.text.length !== 0 || e.image && e.image.name.length !== 0));
2019
2019
  }
2020
2020
  static factory(e) {
2021
2021
  return e instanceof Ht ? e : Ht.fromString(e);
2022
2022
  }
2023
2023
  toString() {
2024
- return this.sections.length === 0 ? "" : this.sections.map((e) => e.text).join("");
2024
+ return this.sections.length === 0 ? "" : this.sections.map(((e) => e.text)).join("");
2025
2025
  }
2026
2026
  serialize() {
2027
2027
  let e = ["format"];
@@ -2186,7 +2186,7 @@ var h = /* @__PURE__ */ t(((e, t) => {
2186
2186
  this.args.forEach(e);
2187
2187
  }
2188
2188
  outputDefined() {
2189
- return this.args.every((e) => e.outputDefined());
2189
+ return this.args.every(((e) => e.outputDefined()));
2190
2190
  }
2191
2191
  serialize() {
2192
2192
  let e = this.type, t = [e.kind];
@@ -2198,7 +2198,7 @@ var h = /* @__PURE__ */ t(((e, t) => {
2198
2198
  (typeof r == "number" || this.args.length > 1) && t.push(r);
2199
2199
  }
2200
2200
  }
2201
- return t.concat(this.args.map((e) => e.serialize()));
2201
+ return t.concat(this.args.map(((e) => e.serialize())));
2202
2202
  }
2203
2203
  }
2204
2204
  var $t = Qt;
@@ -2239,10 +2239,10 @@ var h = /* @__PURE__ */ t(((e, t) => {
2239
2239
  return new en(r);
2240
2240
  }
2241
2241
  evaluate(e) {
2242
- return new Ht(this.sections.map((t) => {
2242
+ return new Ht(this.sections.map(((t) => {
2243
2243
  let n = t.content.evaluate(e);
2244
2244
  return Kt(n) === Tt ? new Vt("", n, null, null, null) : new Vt(qt(n), null, t.scale ? t.scale.evaluate(e) : null, t.font ? t.font.evaluate(e).join(",") : null, t.textColor ? t.textColor.evaluate(e) : null);
2245
- }));
2245
+ })));
2246
2246
  }
2247
2247
  eachChild(e) {
2248
2248
  for (let t of this.sections) e(t.content), t.scale && e(t.scale), t.font && e(t.font), t.textColor && e(t.textColor);
@@ -2333,7 +2333,7 @@ var h = /* @__PURE__ */ t(((e, t) => {
2333
2333
  this.args.forEach(e);
2334
2334
  }
2335
2335
  outputDefined() {
2336
- return this.args.every((e) => e.outputDefined());
2336
+ return this.args.every(((e) => e.outputDefined()));
2337
2337
  }
2338
2338
  serialize() {
2339
2339
  if (this.type.kind === "formatted") return new en([{
@@ -2344,9 +2344,9 @@ var h = /* @__PURE__ */ t(((e, t) => {
2344
2344
  }]).serialize();
2345
2345
  if (this.type.kind === "resolvedImage") return new tn(this.args[0]).serialize();
2346
2346
  let e = [`to-${this.type.kind}`];
2347
- return this.eachChild((t) => {
2347
+ return this.eachChild(((t) => {
2348
2348
  e.push(t.serialize());
2349
- }), e;
2349
+ })), e;
2350
2350
  }
2351
2351
  }
2352
2352
  var an = rn;
@@ -2401,12 +2401,12 @@ var h = /* @__PURE__ */ t(((e, t) => {
2401
2401
  return !1;
2402
2402
  }
2403
2403
  serialize() {
2404
- return [this.name].concat(this.args.map((e) => e.serialize()));
2404
+ return [this.name].concat(this.args.map(((e) => e.serialize())));
2405
2405
  }
2406
2406
  static parse(e, t) {
2407
2407
  let n = e[0], r = cn.definitions[n];
2408
2408
  if (!r) return t.error(`Unknown expression "${n}". If you wanted a literal array, use ["literal", [...]].`, 0);
2409
- let i = Array.isArray(r) ? r[0] : r.type, a = Array.isArray(r) ? [[r[1], r[2]]] : r.overloads, o = a.filter(([t]) => !Array.isArray(t) || t.length === e.length - 1), s = null;
2409
+ let i = Array.isArray(r) ? r[0] : r.type, a = Array.isArray(r) ? [[r[1], r[2]]] : r.overloads, o = a.filter((([t]) => !Array.isArray(t) || t.length === e.length - 1)), s = null;
2410
2410
  for (let [r, a] of o) {
2411
2411
  s = new Pn(t.registry, t.path, null, t.scope);
2412
2412
  let o = [], c = !1;
@@ -2429,10 +2429,10 @@ var h = /* @__PURE__ */ t(((e, t) => {
2429
2429
  }
2430
2430
  if (o.length === 1) t.errors.push(...s.errors);
2431
2431
  else {
2432
- let n = (o.length ? o : a).map(([e]) => {
2432
+ let n = (o.length ? o : a).map((([e]) => {
2433
2433
  return t = e, Array.isArray(t) ? `(${t.map(Dt).join(", ")})` : `(${Dt(t.type)}...)`;
2434
2434
  var t;
2435
- }).join(" | "), r = [];
2435
+ })).join(" | "), r = [];
2436
2436
  for (let n = 1; n < e.length; n++) {
2437
2437
  let i = t.parse(e[n], 1 + r.length);
2438
2438
  if (!i) return null;
@@ -2666,23 +2666,23 @@ var h = /* @__PURE__ */ t(((e, t) => {
2666
2666
  function On(e) {
2667
2667
  if (e instanceof ln && (e.name === "get" && e.args.length === 1 || e.name === "feature-state" || e.name === "has" && e.args.length === 1 || e.name === "properties" || e.name === "geometry-type" || e.name === "id" || /^filter-/.test(e.name)) || e instanceof Dn) return !1;
2668
2668
  let t = !0;
2669
- return e.eachChild((e) => {
2669
+ return e.eachChild(((e) => {
2670
2670
  t && !On(e) && (t = !1);
2671
- }), t;
2671
+ })), t;
2672
2672
  }
2673
2673
  function kn(e) {
2674
2674
  if (e instanceof ln && e.name === "feature-state") return !1;
2675
2675
  let t = !0;
2676
- return e.eachChild((e) => {
2676
+ return e.eachChild(((e) => {
2677
2677
  t && !kn(e) && (t = !1);
2678
- }), t;
2678
+ })), t;
2679
2679
  }
2680
2680
  function An(e, t) {
2681
2681
  if (e instanceof ln && t.indexOf(e.name) >= 0) return !1;
2682
2682
  let n = !0;
2683
- return e.eachChild((e) => {
2683
+ return e.eachChild(((e) => {
2684
2684
  n && !An(e, t) && (n = !1);
2685
- }), n;
2685
+ })), n;
2686
2686
  }
2687
2687
  class jn {
2688
2688
  constructor(e, t) {
@@ -2707,7 +2707,7 @@ var h = /* @__PURE__ */ t(((e, t) => {
2707
2707
  var Mn = jn;
2708
2708
  class Nn {
2709
2709
  constructor(e, t = [], n, r = new yt(), i = []) {
2710
- this.registry = e, this.path = t, this.key = t.map((e) => `[${e}]`).join(""), this.scope = r, this.errors = i, this.expectedType = n;
2710
+ this.registry = e, this.path = t, this.key = t.map(((e) => `[${e}]`)).join(""), this.scope = r, this.errors = i, this.expectedType = n;
2711
2711
  }
2712
2712
  parse(e, t, n, r, i = {}) {
2713
2713
  return t ? this.concat(t, n, r)._parse(e, i) : this._parse(e, i);
@@ -2750,7 +2750,7 @@ var h = /* @__PURE__ */ t(((e, t) => {
2750
2750
  return new Nn(this.registry, r, t || null, i, this.errors);
2751
2751
  }
2752
2752
  error(e, ...t) {
2753
- let n = `${this.key}${t.map((e) => `[${e}]`).join("")}`;
2753
+ let n = `${this.key}${t.map(((e) => `[${e}]`)).join("")}`;
2754
2754
  this.errors.push(new _t(n, e));
2755
2755
  }
2756
2756
  checkSubtype(e, t) {
@@ -2763,9 +2763,9 @@ var h = /* @__PURE__ */ t(((e, t) => {
2763
2763
  if (e instanceof Mn) return Fn(e.boundExpression);
2764
2764
  if (e instanceof ln && e.name === "error" || e instanceof un || e instanceof Dn) return !1;
2765
2765
  let t = e instanceof an || e instanceof $t, n = !0;
2766
- return e.eachChild((e) => {
2766
+ return e.eachChild(((e) => {
2767
2767
  n = t ? n && Fn(e) : n && e instanceof Yt;
2768
- }), !!n && On(e) && An(e, [
2768
+ })), !!n && On(e) && An(e, [
2769
2769
  "zoom",
2770
2770
  "heatmap-density",
2771
2771
  "line-progress",
@@ -2822,7 +2822,7 @@ var h = /* @__PURE__ */ t(((e, t) => {
2822
2822
  for (let t of this.outputs) e(t);
2823
2823
  }
2824
2824
  outputDefined() {
2825
- return this.outputs.every((e) => e.outputDefined());
2825
+ return this.outputs.every(((e) => e.outputDefined()));
2826
2826
  }
2827
2827
  serialize() {
2828
2828
  let e = ["step", this.input.serialize()];
@@ -2837,7 +2837,7 @@ var h = /* @__PURE__ */ t(((e, t) => {
2837
2837
  var zn = Object.freeze({
2838
2838
  __proto__: null,
2839
2839
  array: function(e, t, n) {
2840
- return e.map((e, r) => K(e, t[r], n));
2840
+ return e.map(((e, r) => K(e, t[r], n)));
2841
2841
  },
2842
2842
  color: function(e, t, n) {
2843
2843
  return new zt(K(e.r, t.r, n), K(e.g, t.g, n), K(e.b, t.b, n), K(e.a, t.a, n));
@@ -2950,7 +2950,7 @@ var h = /* @__PURE__ */ t(((e, t) => {
2950
2950
  if (r[0] !== "cubic-bezier") return t.error(`Unknown interpolation type ${String(r[0])}`, 1, 0);
2951
2951
  {
2952
2952
  let e = r.slice(1);
2953
- if (e.length !== 4 || e.some((e) => typeof e != "number" || e < 0 || e > 1)) return t.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.", 1);
2953
+ if (e.length !== 4 || e.some(((e) => typeof e != "number" || e < 0 || e > 1))) return t.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.", 1);
2954
2954
  r = {
2955
2955
  name: "cubic-bezier",
2956
2956
  controlPoints: e
@@ -2987,7 +2987,7 @@ var h = /* @__PURE__ */ t(((e, t) => {
2987
2987
  for (let t of this.outputs) e(t);
2988
2988
  }
2989
2989
  outputDefined() {
2990
- return this.outputs.every((e) => e.outputDefined());
2990
+ return this.outputs.every(((e) => e.outputDefined()));
2991
2991
  }
2992
2992
  serialize() {
2993
2993
  let e;
@@ -3020,7 +3020,7 @@ var h = /* @__PURE__ */ t(((e, t) => {
3020
3020
  if (!e) return null;
3021
3021
  n = n || e.type, i.push(e);
3022
3022
  }
3023
- return new or(r && i.some((e) => kt(r, e.type)) ? W : n, i);
3023
+ return new or(r && i.some(((e) => kt(r, e.type))) ? W : n, i);
3024
3024
  }
3025
3025
  evaluate(e) {
3026
3026
  let t, n = null, r = 0;
@@ -3034,13 +3034,13 @@ var h = /* @__PURE__ */ t(((e, t) => {
3034
3034
  this.args.forEach(e);
3035
3035
  }
3036
3036
  outputDefined() {
3037
- return this.args.every((e) => e.outputDefined());
3037
+ return this.args.every(((e) => e.outputDefined()));
3038
3038
  }
3039
3039
  serialize() {
3040
3040
  let e = ["coalesce"];
3041
- return this.eachChild((t) => {
3041
+ return this.eachChild(((t) => {
3042
3042
  e.push(t.serialize());
3043
- }), e;
3043
+ })), e;
3044
3044
  }
3045
3045
  }
3046
3046
  var sr = or;
@@ -3254,7 +3254,7 @@ var h = /* @__PURE__ */ t(((e, t) => {
3254
3254
  e(this.input), this.outputs.forEach(e), e(this.otherwise);
3255
3255
  }
3256
3256
  outputDefined() {
3257
- return this.outputs.every((e) => e.outputDefined()) && this.otherwise.outputDefined();
3257
+ return this.outputs.every(((e) => e.outputDefined())) && this.otherwise.outputDefined();
3258
3258
  }
3259
3259
  serialize() {
3260
3260
  let e = ["match", this.input.serialize()], t = Object.keys(this.cases).sort(), n = [], r = {};
@@ -3297,13 +3297,13 @@ var h = /* @__PURE__ */ t(((e, t) => {
3297
3297
  e(this.otherwise);
3298
3298
  }
3299
3299
  outputDefined() {
3300
- return this.branches.every(([e, t]) => t.outputDefined()) && this.otherwise.outputDefined();
3300
+ return this.branches.every((([e, t]) => t.outputDefined())) && this.otherwise.outputDefined();
3301
3301
  }
3302
3302
  serialize() {
3303
3303
  let e = ["case"];
3304
- return this.eachChild((t) => {
3304
+ return this.eachChild(((t) => {
3305
3305
  e.push(t.serialize());
3306
- }), e;
3306
+ })), e;
3307
3307
  }
3308
3308
  }
3309
3309
  var yr = vr;
@@ -3408,35 +3408,35 @@ var h = /* @__PURE__ */ t(((e, t) => {
3408
3408
  }
3409
3409
  serialize() {
3410
3410
  let t = [e];
3411
- return this.eachChild((e) => {
3411
+ return this.eachChild(((e) => {
3412
3412
  t.push(e.serialize());
3413
- }), t;
3413
+ })), t;
3414
3414
  }
3415
3415
  };
3416
3416
  }
3417
- let Tr = wr("==", function(e, t, n) {
3417
+ let Tr = wr("==", (function(e, t, n) {
3418
3418
  return t === n;
3419
- }, Cr), Er = wr("!=", function(e, t, n) {
3419
+ }), Cr), Er = wr("!=", (function(e, t, n) {
3420
3420
  return t !== n;
3421
- }, function(e, t, n, r) {
3421
+ }), (function(e, t, n, r) {
3422
3422
  return !Cr(0, t, n, r);
3423
- }), Dr = wr("<", function(e, t, n) {
3423
+ })), Dr = wr("<", (function(e, t, n) {
3424
3424
  return t < n;
3425
- }, function(e, t, n, r) {
3425
+ }), (function(e, t, n, r) {
3426
3426
  return r.compare(t, n) < 0;
3427
- }), Or = wr(">", function(e, t, n) {
3427
+ })), Or = wr(">", (function(e, t, n) {
3428
3428
  return t > n;
3429
- }, function(e, t, n, r) {
3429
+ }), (function(e, t, n, r) {
3430
3430
  return r.compare(t, n) > 0;
3431
- }), kr = wr("<=", function(e, t, n) {
3431
+ })), kr = wr("<=", (function(e, t, n) {
3432
3432
  return t <= n;
3433
- }, function(e, t, n, r) {
3433
+ }), (function(e, t, n, r) {
3434
3434
  return r.compare(t, n) <= 0;
3435
- }), Ar = wr(">=", function(e, t, n) {
3435
+ })), Ar = wr(">=", (function(e, t, n) {
3436
3436
  return t >= n;
3437
- }, function(e, t, n, r) {
3437
+ }), (function(e, t, n, r) {
3438
3438
  return r.compare(t, n) >= 0;
3439
- });
3439
+ }));
3440
3440
  class jr {
3441
3441
  constructor(e, t, n, r, i, a) {
3442
3442
  this.type = H, this.number = e, this.locale = t, this.currency = n, this.unit = r, this.minFractionDigits = i, this.maxFractionDigits = a;
@@ -3504,9 +3504,9 @@ var h = /* @__PURE__ */ t(((e, t) => {
3504
3504
  }
3505
3505
  serialize() {
3506
3506
  let e = ["length"];
3507
- return this.eachChild((t) => {
3507
+ return this.eachChild(((t) => {
3508
3508
  e.push(t.serialize());
3509
- }), e;
3509
+ })), e;
3510
3510
  }
3511
3511
  }
3512
3512
  let Nr = {
@@ -3767,12 +3767,12 @@ var h = /* @__PURE__ */ t(((e, t) => {
3767
3767
  min: [
3768
3768
  V,
3769
3769
  Lr(V),
3770
- (e, t) => Math.min(...t.map((t) => t.evaluate(e)))
3770
+ (e, t) => Math.min(...t.map(((t) => t.evaluate(e))))
3771
3771
  ],
3772
3772
  max: [
3773
3773
  V,
3774
3774
  Lr(V),
3775
- (e, t) => Math.max(...t.map((t) => t.evaluate(e)))
3775
+ (e, t) => Math.max(...t.map(((t) => t.evaluate(e))))
3776
3776
  ],
3777
3777
  abs: [
3778
3778
  V,
@@ -3953,7 +3953,7 @@ var h = /* @__PURE__ */ t(((e, t) => {
3953
3953
  concat: [
3954
3954
  H,
3955
3955
  Lr(W),
3956
- (e, t) => t.map((t) => qt(t.evaluate(e))).join("")
3956
+ (e, t) => t.map(((t) => qt(t.evaluate(e)))).join("")
3957
3957
  ],
3958
3958
  "resolved-locale": [
3959
3959
  H,
@@ -3994,7 +3994,7 @@ var h = /* @__PURE__ */ t(((e, t) => {
3994
3994
  }
3995
3995
  function Kr(e, t) {
3996
3996
  let n = t.type === "color", r = e.stops && typeof e.stops[0][0] == "object", i = r || !(r || e.property !== void 0), a = e.type || (Ur(t) ? "exponential" : "interval");
3997
- if (n && ((e = pt({}, e)).stops && (e.stops = e.stops.map((e) => [e[0], zt.parse(e[1])])), e.default = zt.parse(e.default ? e.default : t.default)), e.colorSpace && e.colorSpace !== "rgb" && !nr[e.colorSpace]) throw Error(`Unknown color space: ${e.colorSpace}`);
3997
+ if (n && ((e = pt({}, e)).stops && (e.stops = e.stops.map(((e) => [e[0], zt.parse(e[1])]))), e.default = zt.parse(e.default ? e.default : t.default)), e.colorSpace && e.colorSpace !== "rgb" && !nr[e.colorSpace]) throw Error(`Unknown color space: ${e.colorSpace}`);
3998
3998
  let o, s, c;
3999
3999
  if (a === "exponential") o = Xr;
4000
4000
  else if (a === "interval") o = Yr;
@@ -4025,7 +4025,7 @@ var h = /* @__PURE__ */ t(((e, t) => {
4025
4025
  kind: "composite",
4026
4026
  interpolationType: a,
4027
4027
  interpolationFactor: ar.interpolationFactor.bind(void 0, a),
4028
- zoomStops: i.map((e) => e[0]),
4028
+ zoomStops: i.map(((e) => e[0])),
4029
4029
  evaluate: ({ zoom: n }, r) => Xr({
4030
4030
  stops: i,
4031
4031
  base: e.base
@@ -4041,7 +4041,7 @@ var h = /* @__PURE__ */ t(((e, t) => {
4041
4041
  kind: "camera",
4042
4042
  interpolationType: n,
4043
4043
  interpolationFactor: ar.interpolationFactor.bind(void 0, n),
4044
- zoomStops: e.stops.map((e) => e[0]),
4044
+ zoomStops: e.stops.map(((e) => e[0])),
4045
4045
  evaluate: ({ zoom: n }) => o(e, t, n, s, c)
4046
4046
  };
4047
4047
  }
@@ -4064,7 +4064,7 @@ var h = /* @__PURE__ */ t(((e, t) => {
4064
4064
  let r = e.stops.length;
4065
4065
  if (r === 1 || n <= e.stops[0][0]) return e.stops[0][1];
4066
4066
  if (n >= e.stops[r - 1][0]) return e.stops[r - 1][1];
4067
- let i = In(e.stops.map((e) => e[0]), n);
4067
+ let i = In(e.stops.map(((e) => e[0])), n);
4068
4068
  return e.stops[i][1];
4069
4069
  }
4070
4070
  function Xr(e, t, n) {
@@ -4073,7 +4073,7 @@ var h = /* @__PURE__ */ t(((e, t) => {
4073
4073
  let i = e.stops.length;
4074
4074
  if (i === 1 || n <= e.stops[0][0]) return e.stops[0][1];
4075
4075
  if (n >= e.stops[i - 1][0]) return e.stops[i - 1][1];
4076
- let a = In(e.stops.map((e) => e[0]), n), o = function(e, t, n, r) {
4076
+ let a = In(e.stops.map(((e) => e[0])), n), o = function(e, t, n, r) {
4077
4077
  let i = r - n, a = e - n;
4078
4078
  return i === 0 ? 0 : t === 1 ? a / i : (t ** +a - 1) / (t ** +i - 1);
4079
4079
  }(n, r, e.stops[a][0], e.stops[a + 1][0]), s = e.stops[a][1], c = e.stops[a + 1][1], l = zn[t.type] || Gr;
@@ -4103,7 +4103,7 @@ var h = /* @__PURE__ */ t(((e, t) => {
4103
4103
  try {
4104
4104
  let e = this.expression.evaluate(this._evaluator);
4105
4105
  if (e == null || typeof e == "number" && e != e) return this._defaultValue;
4106
- if (this._enumValues && !(e in this._enumValues)) throw new Xt(`Expected value to be one of ${Object.keys(this._enumValues).map((e) => JSON.stringify(e)).join(", ")}, but found ${JSON.stringify(e)} instead.`);
4106
+ if (this._enumValues && !(e in this._enumValues)) throw new Xt(`Expected value to be one of ${Object.keys(this._enumValues).map(((e) => JSON.stringify(e))).join(", ")}, but found ${JSON.stringify(e)} instead.`);
4107
4107
  return e;
4108
4108
  } catch (e) {
4109
4109
  return this._warningHistory[e.message] || (this._warningHistory[e.message] = !0, typeof console < "u" && console.warn(e.message)), this._defaultValue;
@@ -4186,10 +4186,10 @@ var h = /* @__PURE__ */ t(((e, t) => {
4186
4186
  else if (e instanceof sr) {
4187
4187
  for (let n of e.args) if (t = ai(n), t) break;
4188
4188
  } else (e instanceof Rn || e instanceof ar) && e.input instanceof ln && e.input.name === "zoom" && (t = e);
4189
- return t instanceof _t || e.eachChild((e) => {
4189
+ return t instanceof _t || e.eachChild(((e) => {
4190
4190
  let n = ai(e);
4191
4191
  n instanceof _t ? t = n : !t && n ? t = new _t("", "\"zoom\" expression may only be used as input to a top-level \"step\" or \"interpolate\" expression.") : t && n && t !== n && (t = new _t("", "Only one zoom-based \"step\" or \"interpolate\" subexpression may be used in an expression."));
4192
- }), t;
4192
+ })), t;
4193
4193
  }
4194
4194
  class J {
4195
4195
  constructor(e, t, n, r) {
@@ -4336,7 +4336,7 @@ var h = /* @__PURE__ */ t(((e, t) => {
4336
4336
  }
4337
4337
  function ui(e) {
4338
4338
  let t = (e.expressionContext === "property" ? ri : ei)(ht(e.value), e.valueSpec);
4339
- if (t.result === "error") return t.value.map((t) => new J(`${e.key}${t.key}`, e.value, t.message));
4339
+ if (t.result === "error") return t.value.map(((t) => new J(`${e.key}${t.key}`, e.value, t.message)));
4340
4340
  let n = t.value.expression || t.value._styleExpression.expression;
4341
4341
  if (e.expressionContext === "property" && e.propertyKey === "text-font" && !n.outputDefined()) return [new J(e.key, e.value, `Invalid data expression for "${e.propertyKey}". Output values must be contained as literals within the expression.`)];
4342
4342
  if (e.expressionContext === "property" && e.propertyType === "layout" && !kn(n)) return [new J(e.key, e.value, "\"feature-state\" data expressions are not supported with layout properties.")];
@@ -4357,9 +4357,9 @@ var h = /* @__PURE__ */ t(((e, t) => {
4357
4357
  if (t.valueSpec && t.valueSpec.expression) for (let e of t.valueSpec.expression.parameters) n.delete(e);
4358
4358
  if (n.size === 0) return [];
4359
4359
  let r = [];
4360
- return e instanceof ln && n.has(e.name) ? [new J(t.key, t.value, `["${e.name}"] expression is not supported in a filter for a ${t.object.type} layer with id: ${t.object.id}`)] : (e.eachChild((e) => {
4360
+ return e instanceof ln && n.has(e.name) ? [new J(t.key, t.value, `["${e.name}"] expression is not supported in a filter for a ${t.object.type} layer with id: ${t.object.id}`)] : (e.eachChild(((e) => {
4361
4361
  r.push(...di(e, t));
4362
- }), r);
4362
+ })), r);
4363
4363
  }
4364
4364
  function fi(e) {
4365
4365
  let t = e.key, n = e.value, r = e.valueSpec, i = [];
@@ -4405,12 +4405,12 @@ var h = /* @__PURE__ */ t(((e, t) => {
4405
4405
  console.warn(`Failed to extract static filter. Filter will continue working, but at higher memory usage and slower framerate.\nThis is most likely a bug, please report this via https://github.com/mapbox/mapbox-gl-js/issues/new?assignees=&labels=&template=Bug_report.md\nand paste the contents of this message in the report.\nThank you!\nFilter Expression:\n${JSON.stringify(n, null, 2)}\n `);
4406
4406
  }
4407
4407
  let i = B[`filter_${t}`], a = ei(r, i), o = null;
4408
- if (a.result === "error") throw Error(a.value.map((e) => `${e.key}: ${e.message}`).join(", "));
4408
+ if (a.result === "error") throw Error(a.value.map(((e) => `${e.key}: ${e.message}`)).join(", "));
4409
4409
  o = (e, t, n) => a.value.evaluate(e, t, {}, n);
4410
4410
  let s = null, c = null;
4411
4411
  if (r !== n) {
4412
4412
  let e = ei(n, i);
4413
- if (e.result === "error") throw Error(e.value.map((e) => `${e.key}: ${e.message}`).join(", "));
4413
+ if (e.result === "error") throw Error(e.value.map(((e) => `${e.key}: ${e.message}`)).join(", "));
4414
4414
  s = (t, n, r, i, a) => e.value.evaluate(t, n, {}, r, void 0, void 0, i, a), c = !On(e.value.expression);
4415
4415
  }
4416
4416
  return {
@@ -4428,7 +4428,7 @@ var h = /* @__PURE__ */ t(((e, t) => {
4428
4428
  }
4429
4429
  return e;
4430
4430
  }(e);
4431
- return !0 === t ? t : t.map((e) => hi(e));
4431
+ return !0 === t ? t : t.map(((e) => hi(e)));
4432
4432
  }
4433
4433
  function gi(e) {
4434
4434
  let t = !1, n = [];
@@ -4494,7 +4494,7 @@ var h = /* @__PURE__ */ t(((e, t) => {
4494
4494
  switch (e) {
4495
4495
  case "$type": return ["filter-type-in", ["literal", t]];
4496
4496
  case "$id": return ["filter-id-in", ["literal", t]];
4497
- default: return t.length > 200 && !t.some((e) => typeof e != typeof t[0]) ? [
4497
+ default: return t.length > 200 && !t.some(((e) => typeof e != typeof t[0])) ? [
4498
4498
  "filter-in-large",
4499
4499
  e,
4500
4500
  ["literal", t.sort(yi)]
@@ -4620,11 +4620,11 @@ var h = /* @__PURE__ */ t(((e, t) => {
4620
4620
  "source-layer",
4621
4621
  "filter",
4622
4622
  "layout"
4623
- ].forEach((e) => {
4623
+ ].forEach(((e) => {
4624
4624
  e in n && t.push(new J(r, n[e], `"${e}" is prohibited for ref layers`));
4625
- }), i.layers.forEach((t) => {
4625
+ })), i.layers.forEach(((t) => {
4626
4626
  mt(t.id) === s && (e = t);
4627
- }), e ? e.ref ? t.push(new J(r, n.ref, "ref cannot reference another ref layer")) : o = mt(e.type) : typeof s == "string" && t.push(new J(r, n.ref, `ref layer "${s}" not found`));
4627
+ })), e ? e.ref ? t.push(new J(r, n.ref, "ref cannot reference another ref layer")) : o = mt(e.type) : typeof s == "string" && t.push(new J(r, n.ref, `ref layer "${s}" not found`));
4628
4628
  } else if (o !== "background" && o !== "sky") if (n.source) {
4629
4629
  let e = i.sources && i.sources[n.source], a = e && mt(e.type);
4630
4630
  e ? a === "vector" && o === "raster" ? t.push(new J(r, n.source, `layer "${n.id}" requires a raster source`)) : a === "raster" && o !== "raster" ? t.push(new J(r, n.source, `layer "${n.id}" requires a vector source`)) : a !== "vector" || n["source-layer"] ? a === "raster-dem" && o !== "hillshade" ? t.push(new J(r, n.source, "raster-dem source can only be used with layer type 'hillshade'.")) : o !== "line" || !n.paint || !n.paint["line-gradient"] && !n.paint["line-trim-offset"] || a === "geojson" && e.lineMetrics || t.push(new J(r, n, `layer "${n.id}" specifies a line-gradient, which requires a GeoJSON source with \`lineMetrics\` enabled.`)) : t.push(new J(r, n, `layer "${n.id}" must specify a "source-layer"`)) : t.push(new J(r, n.source, `source "${n.source}" not found`));
@@ -4751,10 +4751,10 @@ var h = /* @__PURE__ */ t(((e, t) => {
4751
4751
  }
4752
4752
  }
4753
4753
  function Fi(e) {
4754
- return e.source.reduce((t, n) => {
4754
+ return e.source.reduce(((t, n) => {
4755
4755
  let r = e[n];
4756
4756
  return r.type.type === "enum" && (t = t.concat(Object.keys(r.type.values))), t;
4757
- }, []);
4757
+ }), []);
4758
4758
  }
4759
4759
  function Ii(e) {
4760
4760
  let t = e.value, n = e.styleSpec, r = n.light, i = e.style, a = [], o = q(t);
@@ -4890,7 +4890,7 @@ var h = /* @__PURE__ */ t(((e, t) => {
4890
4890
  }
4891
4891
  let Ui = (e) => Gi(ki(e)), Wi = (e) => Gi(Ai(e));
4892
4892
  function Gi(e) {
4893
- return e.slice().sort((e, t) => e.line && t.line ? e.line - t.line : 0);
4893
+ return e.slice().sort(((e, t) => e.line && t.line ? e.line - t.line : 0));
4894
4894
  }
4895
4895
  function Ki(e, t) {
4896
4896
  let n = !1;
@@ -5114,9 +5114,9 @@ var h = /* @__PURE__ */ t(((e, t) => {
5114
5114
  return ma;
5115
5115
  }, ba = function() {
5116
5116
  if (ma !== ua || !ha) throw Error("rtl-text-plugin cannot be downloaded unless a pluginURL is specified");
5117
- ma = da, _a(), ha && Ee({ url: ha }, (e) => {
5117
+ ma = da, _a(), ha && Ee({ url: ha }, ((e) => {
5118
5118
  e ? ga(e) : (ma = fa, _a());
5119
- });
5119
+ }));
5120
5120
  }, xa = {
5121
5121
  applyArabicShaping: null,
5122
5122
  processBidirectionalText: null,
@@ -5146,7 +5146,7 @@ var h = /* @__PURE__ */ t(((e, t) => {
5146
5146
  if (Wr(e)) return new ii(e, t);
5147
5147
  if ($r(e)) {
5148
5148
  let n = ri(e, t);
5149
- if (n.result === "error") throw Error(n.value.map((e) => `${e.key}: ${e.message}`).join(", "));
5149
+ if (n.result === "error") throw Error(n.value.map(((e) => `${e.key}: ${e.message}`)).join(", "));
5150
5150
  return n.value;
5151
5151
  }
5152
5152
  {
@@ -5410,7 +5410,7 @@ var h = /* @__PURE__ */ t(((e, t) => {
5410
5410
  function La(e, t = 1) {
5411
5411
  let n = 0, r = 0;
5412
5412
  return {
5413
- members: e.map((e) => {
5413
+ members: e.map(((e) => {
5414
5414
  let i = Pa[e.type].BYTES_PER_ELEMENT, a = n = Ra(n, Math.max(t, i)), o = e.components || 1;
5415
5415
  return r = Math.max(r, i), n += i * o, {
5416
5416
  name: e.name,
@@ -5418,7 +5418,7 @@ var h = /* @__PURE__ */ t(((e, t) => {
5418
5418
  components: o,
5419
5419
  offset: a
5420
5420
  };
5421
- }),
5421
+ })),
5422
5422
  size: Ra(n, Math.max(r, t)),
5423
5423
  alignment: t
5424
5424
  };
@@ -6190,7 +6190,7 @@ var h = /* @__PURE__ */ t(((e, t) => {
6190
6190
  }
6191
6191
  class Uo {
6192
6192
  constructor(e, t, n) {
6193
- this.value = e, this.uniformNames = t.map((e) => `u_${e}`), this.type = n;
6193
+ this.value = e, this.uniformNames = t.map(((e) => `u_${e}`)), this.type = n;
6194
6194
  }
6195
6195
  setUniform(e, t, n, r, i) {
6196
6196
  t.set(e, i, r.constantOr(this.value));
@@ -6201,7 +6201,7 @@ var h = /* @__PURE__ */ t(((e, t) => {
6201
6201
  }
6202
6202
  class Wo {
6203
6203
  constructor(e, t) {
6204
- this.uniformNames = t.map((e) => `u_${e}`), this.pattern = null, this.pixelRatio = 1;
6204
+ this.uniformNames = t.map(((e) => `u_${e}`)), this.pattern = null, this.pixelRatio = 1;
6205
6205
  }
6206
6206
  setConstantPatternPositions(e) {
6207
6207
  this.pixelRatio = e.pixelRatio || 1, this.pattern = e.tl.concat(e.br);
@@ -6216,12 +6216,12 @@ var h = /* @__PURE__ */ t(((e, t) => {
6216
6216
  }
6217
6217
  class Go {
6218
6218
  constructor(e, t, n, r) {
6219
- this.expression = e, this.type = n, this.maxValue = 0, this.paintVertexAttributes = t.map((e) => ({
6219
+ this.expression = e, this.type = n, this.maxValue = 0, this.paintVertexAttributes = t.map(((e) => ({
6220
6220
  name: `a_${e}`,
6221
6221
  type: "Float32",
6222
6222
  components: n === "color" ? 2 : 1,
6223
6223
  offset: 0
6224
- })), this.paintVertexArray = new r();
6224
+ }))), this.paintVertexArray = new r();
6225
6225
  }
6226
6226
  populatePaintArray(e, t, n, r, i, a) {
6227
6227
  let o = this.paintVertexArray.length, s = this.expression.evaluate(new Sa(0), t, {}, i, r, a);
@@ -6249,12 +6249,12 @@ var h = /* @__PURE__ */ t(((e, t) => {
6249
6249
  }
6250
6250
  class Ko {
6251
6251
  constructor(e, t, n, r, i, a) {
6252
- this.expression = e, this.uniformNames = t.map((e) => `u_${e}_t`), this.type = n, this.useIntegerZoom = r, this.zoom = i, this.maxValue = 0, this.paintVertexAttributes = t.map((e) => ({
6252
+ this.expression = e, this.uniformNames = t.map(((e) => `u_${e}_t`)), this.type = n, this.useIntegerZoom = r, this.zoom = i, this.maxValue = 0, this.paintVertexAttributes = t.map(((e) => ({
6253
6253
  name: `a_${e}`,
6254
6254
  type: "Float32",
6255
6255
  components: n === "color" ? 4 : 2,
6256
6256
  offset: 0
6257
- })), this.paintVertexArray = new a();
6257
+ }))), this.paintVertexArray = new a();
6258
6258
  }
6259
6259
  populatePaintArray(e, t, n, r, i, a) {
6260
6260
  let o = this.expression.evaluate(new Sa(this.zoom), t, {}, i, r, a), s = this.expression.evaluate(new Sa(this.zoom + 1), t, {}, i, r, a), c = this.paintVertexArray.length;
@@ -6315,7 +6315,7 @@ var h = /* @__PURE__ */ t(((e, t) => {
6315
6315
  }
6316
6316
  }
6317
6317
  class Jo {
6318
- constructor(e, t, n = () => !0) {
6318
+ constructor(e, t, n = (() => !0)) {
6319
6319
  this.binders = {}, this._buffers = [];
6320
6320
  let r = [];
6321
6321
  for (let i in e.paint._values) {
@@ -6368,7 +6368,7 @@ var h = /* @__PURE__ */ t(((e, t) => {
6368
6368
  let e = [];
6369
6369
  for (let t in this.binders) {
6370
6370
  let n = this.binders[t];
6371
- (n instanceof Uo || n instanceof Wo) && e.push(...n.uniformNames.map((e) => `#define HAS_UNIFORM_${e}`));
6371
+ (n instanceof Uo || n instanceof Wo) && e.push(...n.uniformNames.map(((e) => `#define HAS_UNIFORM_${e}`)));
6372
6372
  }
6373
6373
  return e;
6374
6374
  }
@@ -6428,7 +6428,7 @@ var h = /* @__PURE__ */ t(((e, t) => {
6428
6428
  }
6429
6429
  }
6430
6430
  class Yo {
6431
- constructor(e, t, n = () => !0) {
6431
+ constructor(e, t, n = (() => !0)) {
6432
6432
  this.programConfigurations = {};
6433
6433
  for (let r of e) this.programConfigurations[r.id] = new Jo(r, t, n);
6434
6434
  this.needsUpload = !1, this._featureMap = new jo(), this._bufferOffset = 0;
@@ -6573,7 +6573,7 @@ var h = /* @__PURE__ */ t(((e, t) => {
6573
6573
  layout: this._unevaluatedLayout && this._unevaluatedLayout.serialize(),
6574
6574
  paint: this._transitionablePaint && this._transitionablePaint.serialize()
6575
6575
  };
6576
- return this.visibility && (e.layout = e.layout || {}, e.layout.visibility = this.visibility), L(e, (e, t) => !(e === void 0 || t === "layout" && !Object.keys(e).length || t === "paint" && !Object.keys(e).length));
6576
+ return this.visibility && (e.layout = e.layout || {}, e.layout.visibility = this.visibility), L(e, ((e, t) => !(e === void 0 || t === "layout" && !Object.keys(e).length || t === "paint" && !Object.keys(e).length)));
6577
6577
  }
6578
6578
  _validate(e, t, n, r, i = {}) {
6579
6579
  return (!i || !1 !== i.validate) && Ki(this, e.call(Hi, {
@@ -6991,7 +6991,7 @@ var h = /* @__PURE__ */ t(((e, t) => {
6991
6991
  1,
6992
6992
  1
6993
6993
  ]
6994
- ].map((n) => {
6994
+ ].map(((n) => {
6995
6995
  let a = Us([], n, e), o = 1 / a[3] / t * i;
6996
6996
  return function(e, t, n) {
6997
6997
  return e[0] = t[0] * n[0], e[1] = t[1] * n[1], e[2] = t[2] * n[2], e[3] = t[3] * n[3], e;
@@ -7001,7 +7001,7 @@ var h = /* @__PURE__ */ t(((e, t) => {
7001
7001
  r ? 1 / a[3] : o,
7002
7002
  o
7003
7003
  ]);
7004
- });
7004
+ }));
7005
7005
  return new ec(a, [
7006
7006
  [
7007
7007
  0,
@@ -7033,10 +7033,10 @@ var h = /* @__PURE__ */ t(((e, t) => {
7033
7033
  4,
7034
7034
  5
7035
7035
  ]
7036
- ].map((e) => {
7036
+ ].map(((e) => {
7037
7037
  let t = Ms([], Ps([], Rs([], a[e[0]], a[e[1]]), Rs([], a[e[2]], a[e[1]]))), n = -Ns(t, a[e[1]]);
7038
7038
  return t.concat(n);
7039
- }));
7039
+ })));
7040
7040
  }
7041
7041
  }
7042
7042
  class tc {
@@ -7574,7 +7574,7 @@ var h = /* @__PURE__ */ t(((e, t) => {
7574
7574
  }
7575
7575
  class rl {
7576
7576
  constructor(e) {
7577
- this.zoom = e.zoom, this.overscaling = e.overscaling, this.layers = e.layers, this.layerIds = this.layers.map((e) => e.id), this.index = e.index, this.hasPattern = !1, this.projection = e.projection, this.layoutVertexArray = new za(), this.indexArray = new to(), this.segments = new as(), this.programConfigurations = new Yo(e.layers, e.zoom), this.stateDependentLayerIds = this.layers.filter((e) => e.isStateDependent()).map((e) => e.id);
7577
+ this.zoom = e.zoom, this.overscaling = e.overscaling, this.layers = e.layers, this.layerIds = this.layers.map(((e) => e.id)), this.index = e.index, this.hasPattern = !1, this.projection = e.projection, this.layoutVertexArray = new za(), this.indexArray = new to(), this.segments = new as(), this.programConfigurations = new Yo(e.layers, e.zoom), this.stateDependentLayerIds = this.layers.filter(((e) => e.isStateDependent())).map(((e) => e.id));
7578
7578
  }
7579
7579
  populate(e, t, n, r) {
7580
7580
  let i = this.layers[0], a = [], o = null;
@@ -7594,7 +7594,7 @@ var h = /* @__PURE__ */ t(((e, t) => {
7594
7594
  };
7595
7595
  a.push(d);
7596
7596
  }
7597
- o && a.sort((e, t) => e.sortKey - t.sortKey);
7597
+ o && a.sort(((e, t) => e.sortKey - t.sortKey));
7598
7598
  let s = null;
7599
7599
  r.projection.name === "globe" && (this.globeExtVertexArray = new Ka(), s = r.projection);
7600
7600
  for (let r of a) {
@@ -7763,7 +7763,7 @@ var h = /* @__PURE__ */ t(((e, t) => {
7763
7763
  let e = n.projection.upVector(l, d.x, d.y);
7764
7764
  p.x += e[0] * u * f, p.y += e[1] * u * f, p.z += e[2] * u * f;
7765
7765
  }
7766
- let m = a ? d : Cl(p.x, p.y, p.z, r), h = a ? e.tilespaceRays.map((e) => El(e, f)) : e.queryGeometry.screenGeometry, g = Us([], [
7766
+ let m = a ? d : Cl(p.x, p.y, p.z, r), h = a ? e.tilespaceRays.map(((e) => El(e, f))) : e.queryGeometry.screenGeometry, g = Us([], [
7767
7767
  p.x,
7768
7768
  p.y,
7769
7769
  p.z,
@@ -8184,7 +8184,7 @@ var h = /* @__PURE__ */ t(((e, t) => {
8184
8184
  }
8185
8185
  class yu {
8186
8186
  constructor(e) {
8187
- this.zoom = e.zoom, this.overscaling = e.overscaling, this.layers = e.layers, this.layerIds = this.layers.map((e) => e.id), this.index = e.index, this.hasPattern = !1, this.patternFeatures = [], this.layoutVertexArray = new za(), this.indexArray = new to(), this.indexArray2 = new so(), this.programConfigurations = new Yo(e.layers, e.zoom), this.segments = new as(), this.segments2 = new as(), this.stateDependentLayerIds = this.layers.filter((e) => e.isStateDependent()).map((e) => e.id), this.projection = e.projection;
8187
+ this.zoom = e.zoom, this.overscaling = e.overscaling, this.layers = e.layers, this.layerIds = this.layers.map(((e) => e.id)), this.index = e.index, this.hasPattern = !1, this.patternFeatures = [], this.layoutVertexArray = new za(), this.indexArray = new to(), this.indexArray2 = new so(), this.programConfigurations = new Yo(e.layers, e.zoom), this.segments = new as(), this.segments2 = new as(), this.stateDependentLayerIds = this.layers.filter(((e) => e.isStateDependent())).map(((e) => e.id)), this.projection = e.projection;
8188
8188
  }
8189
8189
  populate(e, t, n, r) {
8190
8190
  this.hasPattern = _u("fill", this.layers, t);
@@ -8204,7 +8204,7 @@ var h = /* @__PURE__ */ t(((e, t) => {
8204
8204
  };
8205
8205
  a.push(f);
8206
8206
  }
8207
- i && a.sort((e, t) => e.sortKey - t.sortKey);
8207
+ i && a.sort(((e, t) => e.sortKey - t.sortKey));
8208
8208
  for (let r of a) {
8209
8209
  let { geometry: i, index: a, sourceLayerIndex: o } = r;
8210
8210
  if (this.hasPattern) {
@@ -8470,19 +8470,19 @@ var h = /* @__PURE__ */ t(((e, t) => {
8470
8470
  }
8471
8471
  }
8472
8472
  centroid() {
8473
- let e = this.polyCount.reduce((e, t) => e + t.edges, 0);
8473
+ let e = this.polyCount.reduce(((e, t) => e + t.edges), 0);
8474
8474
  return e === 0 ? new _(0, 0) : this.acc.div(e)._round();
8475
8475
  }
8476
8476
  span() {
8477
8477
  return new _(this.max.x - this.min.x, this.max.y - this.min.y);
8478
8478
  }
8479
8479
  intersectsCount() {
8480
- return this.borders.reduce((e, t) => e + +(t[0] !== Number.MAX_VALUE), 0);
8480
+ return this.borders.reduce(((e, t) => e + +(t[0] !== Number.MAX_VALUE)), 0);
8481
8481
  }
8482
8482
  }
8483
8483
  class Gu {
8484
8484
  constructor(e) {
8485
- this.zoom = e.zoom, this.canonical = e.canonical, this.overscaling = e.overscaling, this.layers = e.layers, this.layerIds = this.layers.map((e) => e.id), this.index = e.index, this.hasPattern = !1, this.edgeRadius = 0, this.projection = e.projection, this.layoutVertexArray = new Va(), this.centroidVertexArray = new xo(), this.indexArray = new to(), this.programConfigurations = new Yo(e.layers, e.zoom), this.segments = new as(), this.stateDependentLayerIds = this.layers.filter((e) => e.isStateDependent()).map((e) => e.id), this.enableTerrain = e.enableTerrain;
8485
+ this.zoom = e.zoom, this.canonical = e.canonical, this.overscaling = e.overscaling, this.layers = e.layers, this.layerIds = this.layers.map(((e) => e.id)), this.index = e.index, this.hasPattern = !1, this.edgeRadius = 0, this.projection = e.projection, this.layoutVertexArray = new Va(), this.centroidVertexArray = new xo(), this.indexArray = new to(), this.programConfigurations = new Yo(e.layers, e.zoom), this.segments = new as(), this.stateDependentLayerIds = this.layers.filter(((e) => e.isStateDependent())).map(((e) => e.id)), this.enableTerrain = e.enableTerrain;
8486
8486
  }
8487
8487
  populate(e, t, n, r) {
8488
8488
  this.features = [], this.hasPattern = _u("fill-extrusion", this.layers, t), this.featuresOnBorder = [], this.borders = [
@@ -8546,7 +8546,7 @@ var h = /* @__PURE__ */ t(((e, t) => {
8546
8546
  let f = hu(t, 500);
8547
8547
  for (let e = f.length - 1; e >= 0; e--) {
8548
8548
  let t = f[e];
8549
- (t.length === 0 || (p = t[0]).every((e) => e.x <= 0) || p.every((e) => e.x >= $) || p.every((e) => e.y <= 0) || p.every((e) => e.y >= $)) && f.splice(e, 1);
8549
+ (t.length === 0 || (p = t[0]).every(((e) => e.x <= 0)) || p.every(((e) => e.x >= $)) || p.every(((e) => e.y <= 0)) || p.every(((e) => e.y >= $))) && f.splice(e, 1);
8550
8550
  }
8551
8551
  var p;
8552
8552
  let m;
@@ -8630,7 +8630,7 @@ var h = /* @__PURE__ */ t(((e, t) => {
8630
8630
  this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length, e, n, i, a, r);
8631
8631
  }
8632
8632
  sortBorders() {
8633
- for (let e = 0; e < 4; e++) this.borders[e].sort((t, n) => this.featuresOnBorder[t].borders[e][0] - this.featuresOnBorder[n].borders[e][0]);
8633
+ for (let e = 0; e < 4; e++) this.borders[e].sort(((t, n) => this.featuresOnBorder[t].borders[e][0] - this.featuresOnBorder[n].borders[e][0]));
8634
8634
  }
8635
8635
  encodeCentroid(e, t, n = !0) {
8636
8636
  let r, i;
@@ -8714,13 +8714,13 @@ var h = /* @__PURE__ */ t(((e, t) => {
8714
8714
  }
8715
8715
  }
8716
8716
  return o;
8717
- }(e, t, Math.ceil((a - i) / 11.25), Math.ceil((o - s) / 11.25), 1, (e, t, i) => {
8717
+ }(e, t, Math.ceil((a - i) / 11.25), Math.ceil((o - s) / 11.25), 1, ((e, t, i) => {
8718
8718
  if (e === 0) return .5 * (t + i);
8719
8719
  {
8720
8720
  let e = Vc((n.y + t / $) / r);
8721
8721
  return (Rc(.5 * (Vc((n.y + i / $) / r) + e)) * r - n.y) * $;
8722
8722
  }
8723
- });
8723
+ }));
8724
8724
  }
8725
8725
  Y(Gu, "FillExtrusionBucket", { omit: ["layers", "features"] }), Y(Wu, "PartMetadata");
8726
8726
  let ed = new Ma({ "fill-extrusion-edge-radius": new Z(B["layout_fill-extrusion"]["fill-extrusion-edge-radius"]) });
@@ -8893,9 +8893,9 @@ var h = /* @__PURE__ */ t(((e, t) => {
8893
8893
  }]), pd = zu.types, md = Math.cos(Math.PI / 180 * 37.5);
8894
8894
  class hd {
8895
8895
  constructor(e) {
8896
- this.zoom = e.zoom, this.overscaling = e.overscaling, this.layers = e.layers, this.layerIds = this.layers.map((e) => e.id), this.index = e.index, this.projection = e.projection, this.hasPattern = !1, this.patternFeatures = [], this.lineClipsArray = [], this.gradients = {}, this.layers.forEach((e) => {
8896
+ this.zoom = e.zoom, this.overscaling = e.overscaling, this.layers = e.layers, this.layerIds = this.layers.map(((e) => e.id)), this.index = e.index, this.projection = e.projection, this.hasPattern = !1, this.patternFeatures = [], this.lineClipsArray = [], this.gradients = {}, this.layers.forEach(((e) => {
8897
8897
  this.gradients[e.id] = {};
8898
- }), this.layoutVertexArray = new Ha(), this.layoutVertexArray2 = new Ua(), this.indexArray = new to(), this.programConfigurations = new Yo(e.layers, e.zoom), this.segments = new as(), this.maxLineLength = 0, this.stateDependentLayerIds = this.layers.filter((e) => e.isStateDependent()).map((e) => e.id);
8898
+ })), this.layoutVertexArray = new Ha(), this.layoutVertexArray2 = new Ua(), this.indexArray = new to(), this.programConfigurations = new Yo(e.layers, e.zoom), this.segments = new as(), this.maxLineLength = 0, this.stateDependentLayerIds = this.layers.filter(((e) => e.isStateDependent())).map(((e) => e.id));
8899
8899
  }
8900
8900
  populate(e, t, n, r) {
8901
8901
  this.hasPattern = _u("line", this.layers, t);
@@ -8915,7 +8915,7 @@ var h = /* @__PURE__ */ t(((e, t) => {
8915
8915
  };
8916
8916
  a.push(d);
8917
8917
  }
8918
- i && a.sort((e, t) => e.sortKey - t.sortKey);
8918
+ i && a.sort(((e, t) => e.sortKey - t.sortKey));
8919
8919
  let { lineAtlas: o, featureIndex: s } = t, c = this.addConstantDashes(o);
8920
8920
  for (let r of a) {
8921
8921
  let { geometry: i, index: a, sourceLayerIndex: l } = r;
@@ -9515,12 +9515,12 @@ var h = /* @__PURE__ */ t(((e, t) => {
9515
9515
  getSizeData: Od
9516
9516
  });
9517
9517
  function Md(e, t, n) {
9518
- return e.sections.forEach((e) => {
9518
+ return e.sections.forEach(((e) => {
9519
9519
  e.text = function(e, t, n) {
9520
9520
  let r = t.layout.get("text-transform").evaluate(n, {});
9521
9521
  return r === "uppercase" ? e = e.toLocaleUpperCase() : r === "lowercase" && (e = e.toLocaleLowerCase()), xa.applyArabicShaping && (e = xa.applyArabicShaping(e)), e;
9522
9522
  }(e.text, t, n);
9523
- }), e;
9523
+ })), e;
9524
9524
  }
9525
9525
  let Nd = {
9526
9526
  "!": "︕",
@@ -9997,7 +9997,7 @@ var h = /* @__PURE__ */ t(((e, t) => {
9997
9997
  function lf(e) {
9998
9998
  let t = 0, n = 0;
9999
9999
  for (let r of e) t += r.w * r.h, n = Math.max(n, r.w);
10000
- e.sort((e, t) => t.h - e.h);
10000
+ e.sort(((e, t) => t.h - e.h));
10001
10001
  let r = [{
10002
10002
  x: 0,
10003
10003
  y: 0,
@@ -10119,7 +10119,7 @@ var h = /* @__PURE__ */ t(((e, t) => {
10119
10119
  }
10120
10120
  }
10121
10121
  patchUpdatedImages(e, t) {
10122
- this.haveRenderCallbacks = this.haveRenderCallbacks.filter((t) => e.hasImage(t)), e.dispatchRenderCallbacks(this.haveRenderCallbacks);
10122
+ this.haveRenderCallbacks = this.haveRenderCallbacks.filter(((t) => e.hasImage(t))), e.dispatchRenderCallbacks(this.haveRenderCallbacks);
10123
10123
  for (let n in e.updatedImages) this.patchUpdatedImage(this.iconPositions[n], e.getImage(n), t), this.patchUpdatedImage(this.patternPositions[n], e.getImage(n), t);
10124
10124
  }
10125
10125
  patchUpdatedImage(e, t, n) {
@@ -10203,7 +10203,7 @@ var h = /* @__PURE__ */ t(((e, t) => {
10203
10203
  return this.text;
10204
10204
  }
10205
10205
  getMaxScale() {
10206
- return this.sectionIndex.reduce((e, t) => Math.max(e, this.sections[t].scale), 0);
10206
+ return this.sectionIndex.reduce(((e, t) => Math.max(e, this.sections[t].scale)), 0);
10207
10207
  }
10208
10208
  addTextSection(e, t) {
10209
10209
  this.text += e.text, this.sections.push(pf.forText(e.scale, e.fontStack || t));
@@ -10621,7 +10621,7 @@ var h = /* @__PURE__ */ t(((e, t) => {
10621
10621
  stack: t,
10622
10622
  id: r
10623
10623
  });
10624
- k(n, ({ stack: e, id: t }, n) => {
10624
+ k(n, (({ stack: e, id: t }, n) => {
10625
10625
  let r = this.entries[e];
10626
10626
  r || (r = this.entries[e] = {
10627
10627
  glyphs: {},
@@ -10649,7 +10649,7 @@ var h = /* @__PURE__ */ t(((e, t) => {
10649
10649
  glyph: i
10650
10650
  });
10651
10651
  let o = r.requests[a];
10652
- o || (o = r.requests[a] = [], Bf.loadGlyphRange(e, a, this.url, this.requestManager, (e, t) => {
10652
+ o || (o = r.requests[a] = [], Bf.loadGlyphRange(e, a, this.url, this.requestManager, ((e, t) => {
10653
10653
  if (t) {
10654
10654
  r.ascender = t.ascender, r.descender = t.descender;
10655
10655
  for (let e in t.glyphs) this._doesCharSupportLocalGlyph(+e) || (r.glyphs[+e] = t.glyphs[+e]);
@@ -10657,14 +10657,14 @@ var h = /* @__PURE__ */ t(((e, t) => {
10657
10657
  }
10658
10658
  for (let n of o) n(e, t);
10659
10659
  delete r.requests[a];
10660
- })), o.push((r, i) => {
10660
+ }))), o.push(((r, i) => {
10661
10661
  r ? n(r) : i && n(null, {
10662
10662
  stack: e,
10663
10663
  id: t,
10664
10664
  glyph: i.glyphs[t] || null
10665
10665
  });
10666
- });
10667
- }, (e, n) => {
10666
+ }));
10667
+ }), ((e, n) => {
10668
10668
  if (e) t(e);
10669
10669
  else if (n) {
10670
10670
  let e = {};
@@ -10675,7 +10675,7 @@ var h = /* @__PURE__ */ t(((e, t) => {
10675
10675
  }, e[t].ascender = this.entries[t].ascender, e[t].descender = this.entries[t].descender;
10676
10676
  t(null, e);
10677
10677
  }
10678
- });
10678
+ }));
10679
10679
  }
10680
10680
  _doesCharSupportLocalGlyph(e) {
10681
10681
  return this.localGlyphMode !== zf.none && (this.localGlyphMode === zf.all ? !!this.localFontFamily : !!this.localFontFamily && (X["CJK Unified Ideographs"](e) || X["Hangul Syllables"](e) || X.Hiragana(e) || X.Katakana(e) || X["CJK Symbols and Punctuation"](e)));
@@ -10715,7 +10715,7 @@ var h = /* @__PURE__ */ t(((e, t) => {
10715
10715
  }
10716
10716
  Bf.loadGlyphRange = function(e, t, n, r, i) {
10717
10717
  let a = 256 * t, o = a + 255;
10718
- Ee(r.transformRequest(r.normalizeGlyphsURL(n).replace("{fontstack}", e).replace("{range}", `${a}-${o}`), Se.Glyphs), (e, t) => {
10718
+ Ee(r.transformRequest(r.normalizeGlyphsURL(n).replace("{fontstack}", e).replace("{range}", `${a}-${o}`), Se.Glyphs), ((e, t) => {
10719
10719
  if (e) i(e);
10720
10720
  else if (t) {
10721
10721
  let e = {}, n = function(e) {
@@ -10728,7 +10728,7 @@ var h = /* @__PURE__ */ t(((e, t) => {
10728
10728
  descender: n.descender
10729
10729
  });
10730
10730
  }
10731
- });
10731
+ }));
10732
10732
  }, Bf.TinySDF = class {
10733
10733
  constructor({ fontSize: e = 24, buffer: t = 3, radius: n = 8, cutoff: r = .25, fontFamily: i = "sans-serif", fontWeight: a = "normal", fontStyle: o = "normal" } = {}) {
10734
10734
  this.buffer = t, this.cutoff = r, this.radius = n;
@@ -11026,13 +11026,13 @@ var h = /* @__PURE__ */ t(((e, t) => {
11026
11026
  let r = _.toString(), o = u.get("text-letter-spacing").evaluate(a, {}, s) * Dd, l = u.get("text-line-height").evaluate(a, {}, s) * Dd, f = ra(r) ? o : 0, m = u.get("text-anchor").evaluate(a, {}, s), v = u.get("text-variable-anchor");
11027
11027
  if (!v) {
11028
11028
  let e = u.get("text-radial-offset").evaluate(a, {}, s);
11029
- y = e ? ep(m, [e * Dd, Qf]) : u.get("text-offset").evaluate(a, {}, s).map((e) => e * Dd);
11029
+ y = e ? ep(m, [e * Dd, Qf]) : u.get("text-offset").evaluate(a, {}, s).map(((e) => e * Dd));
11030
11030
  }
11031
11031
  let b = p ? "center" : u.get("text-justify").evaluate(a, {}, s), x = u.get("symbol-placement") === "point", S = x ? u.get("text-max-width").evaluate(a, {}, s) * Dd : Infinity, C = (a) => {
11032
11032
  e.allowVerticalPlacement && na(r) && (g.vertical = hf(_, t, n, i, c, S, l, m, a, f, y, ff.vertical, !0, h, d));
11033
11033
  };
11034
11034
  if (!p && v) {
11035
- let e = b === "auto" ? v.map((e) => np(e)) : [b], r = !1;
11035
+ let e = b === "auto" ? v.map(((e) => np(e))) : [b], r = !1;
11036
11036
  for (let a = 0; a < e.length; a++) {
11037
11037
  let o = e[a];
11038
11038
  if (!g.horizontal[o]) if (r) g.horizontal[o] = g.horizontal[0];
@@ -11090,7 +11090,7 @@ var h = /* @__PURE__ */ t(((e, t) => {
11090
11090
  }
11091
11091
  (function(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _, v, y, b, x, S, C, w) {
11092
11092
  let T = e.addToLineVertexArray(t, r), E, D, O, k, A, j, M, N = 0, P = 0, ee = 0, F = 0, I = -1, te = -1, ne = {}, L = Ao(""), re = n ? n.anchor : t, ie = 0, ae = 0;
11093
- if (c._unevaluatedLayout.getValue("text-radial-offset") === void 0 ? [ie, ae] = c.layout.get("text-offset").evaluate(b, {}, w).map((e) => e * Dd) : (ie = c.layout.get("text-radial-offset").evaluate(b, {}, w) * Dd, ae = Qf), e.allowVerticalPlacement && i.vertical) {
11093
+ if (c._unevaluatedLayout.getValue("text-radial-offset") === void 0 ? [ie, ae] = c.layout.get("text-offset").evaluate(b, {}, w).map(((e) => e * Dd)) : (ie = c.layout.get("text-radial-offset").evaluate(b, {}, w) * Dd, ae = Qf), e.allowVerticalPlacement && i.vertical) {
11094
11094
  let e = i.vertical;
11095
11095
  if (m) j = lp(e), s && (M = lp(s));
11096
11096
  else {
@@ -11655,14 +11655,14 @@ var h = /* @__PURE__ */ t(((e, t) => {
11655
11655
  Y(Vp, "CollisionBuffers");
11656
11656
  class Hp {
11657
11657
  constructor(e) {
11658
- this.collisionBoxArray = e.collisionBoxArray, this.zoom = e.zoom, this.overscaling = e.overscaling, this.layers = e.layers, this.layerIds = this.layers.map((e) => e.id), this.index = e.index, this.pixelRatio = e.pixelRatio, this.sourceLayerIndex = e.sourceLayerIndex, this.hasPattern = !1, this.hasRTLText = !1, this.fullyClipped = !1, this.sortKeyRanges = [], this.collisionCircleArray = [], this.placementInvProjMatrix = ds([]), this.placementViewportMatrix = ds([]);
11658
+ this.collisionBoxArray = e.collisionBoxArray, this.zoom = e.zoom, this.overscaling = e.overscaling, this.layers = e.layers, this.layerIds = this.layers.map(((e) => e.id)), this.index = e.index, this.pixelRatio = e.pixelRatio, this.sourceLayerIndex = e.sourceLayerIndex, this.hasPattern = !1, this.hasRTLText = !1, this.fullyClipped = !1, this.sortKeyRanges = [], this.collisionCircleArray = [], this.placementInvProjMatrix = ds([]), this.placementViewportMatrix = ds([]);
11659
11659
  let t = this.layers[0]._unevaluatedLayout._values;
11660
11660
  this.textSizeData = Od(this.zoom, t["text-size"]), this.iconSizeData = Od(this.zoom, t["icon-size"]);
11661
11661
  let n = this.layers[0].layout, r = n.get("symbol-sort-key"), i = n.get("symbol-z-order");
11662
- this.canOverlap = n.get("text-allow-overlap") || n.get("icon-allow-overlap") || n.get("text-ignore-placement") || n.get("icon-ignore-placement"), this.sortFeaturesByKey = i !== "viewport-y" && r.constantOr(1) !== void 0, this.sortFeaturesByY = (i === "viewport-y" || i === "auto" && !this.sortFeaturesByKey) && this.canOverlap, this.writingModes = n.get("text-writing-mode").map((e) => ff[e]), this.stateDependentLayerIds = this.layers.filter((e) => e.isStateDependent()).map((e) => e.id), this.sourceID = e.sourceID, this.projection = e.projection;
11662
+ this.canOverlap = n.get("text-allow-overlap") || n.get("icon-allow-overlap") || n.get("text-ignore-placement") || n.get("icon-ignore-placement"), this.sortFeaturesByKey = i !== "viewport-y" && r.constantOr(1) !== void 0, this.sortFeaturesByY = (i === "viewport-y" || i === "auto" && !this.sortFeaturesByKey) && this.canOverlap, this.writingModes = n.get("text-writing-mode").map(((e) => ff[e])), this.stateDependentLayerIds = this.layers.filter(((e) => e.isStateDependent())).map(((e) => e.id)), this.sourceID = e.sourceID, this.projection = e.projection;
11663
11663
  }
11664
11664
  createArrays() {
11665
- this.text = new Bp(new Yo(this.layers, this.zoom, (e) => /^text/.test(e))), this.icon = new Bp(new Yo(this.layers, this.zoom, (e) => /^icon/.test(e))), this.glyphOffsetArray = new _o(), this.lineVertexArray = new vo(), this.symbolInstances = new go();
11665
+ this.text = new Bp(new Yo(this.layers, this.zoom, ((e) => /^text/.test(e)))), this.icon = new Bp(new Yo(this.layers, this.zoom, ((e) => /^icon/.test(e)))), this.glyphOffsetArray = new _o(), this.lineVertexArray = new vo(), this.symbolInstances = new go();
11666
11666
  }
11667
11667
  calculateGlyphDependencies(e, t, n, r, i) {
11668
11668
  for (let n = 0; n < e.length; n++) if (t[e.charCodeAt(n)] = !0, r && i) {
@@ -11741,8 +11741,8 @@ var h = /* @__PURE__ */ t(((e, t) => {
11741
11741
  delete t[p], delete n[m], n[c(f, r[i].geometry, !0)] = i, r[e].geometry = null;
11742
11742
  } else p in n ? o(p, m, d) : m in t ? s(p, m, d) : (a(l), t[p] = i - 1, n[m] = i - 1);
11743
11743
  }
11744
- return r.filter((e) => e.geometry);
11745
- }(this.features)), this.sortFeaturesByKey && this.features.sort((e, t) => e.sortKey - t.sortKey);
11744
+ return r.filter(((e) => e.geometry));
11745
+ }(this.features)), this.sortFeaturesByKey && this.features.sort(((e, t) => e.sortKey - t.sortKey));
11746
11746
  }
11747
11747
  update(e, t, n, r) {
11748
11748
  this.stateDependentLayers.length && (this.text.programConfigurations.updatePaintArrays(e, t, this.layers, n, r), this.icon.programConfigurations.updatePaintArrays(e, t, this.layers, n, r));
@@ -11947,7 +11947,7 @@ var h = /* @__PURE__ */ t(((e, t) => {
11947
11947
  let o = this.symbolInstances.get(e);
11948
11948
  r.push(0 | Math.round(t * o.tileAnchorX + n * o.tileAnchorY)), i.push(o.featureIndex);
11949
11949
  }
11950
- return a.sort((e, t) => r[e] - r[t] || i[t] - i[e]), a;
11950
+ return a.sort(((e, t) => r[e] - r[t] || i[t] - i[e])), a;
11951
11951
  }
11952
11952
  addToSortKeyRanges(e, t) {
11953
11953
  let n = this.sortKeyRanges[this.sortKeyRanges.length - 1];
@@ -12081,7 +12081,7 @@ var h = /* @__PURE__ */ t(((e, t) => {
12081
12081
  getValueAndResolveTokens(e, t, n, r) {
12082
12082
  let i = this.layout.get(e).evaluate(t, {}, n, r), a = this._unevaluatedLayout._values[e];
12083
12083
  return a.isDataDriven() || $r(a.value) || !i ? i : function(e, t) {
12084
- return t.replace(/{([^{}]+)}/g, (t, n) => n in e ? String(e[n]) : "");
12084
+ return t.replace(/{([^{}]+)}/g, ((t, n) => n in e ? String(e[n]) : ""));
12085
12085
  }(t.properties, i);
12086
12086
  }
12087
12087
  createBucket(e) {
@@ -12308,7 +12308,7 @@ var h = /* @__PURE__ */ t(((e, t) => {
12308
12308
  t < e.length && (f[0] = e.geta_centroid_pos0(t), f[1] = e.geta_centroid_pos1(t));
12309
12309
  }
12310
12310
  if (f[0] === 0 && f[1] === 1) return !1;
12311
- a.projection.name === "globe" && (r = $u([r], [new _(0, 0), new _($, $)], e.tileID.canonical).map((e) => e.polygon).flat());
12311
+ a.projection.name === "globe" && (r = $u([r], [new _(0, 0), new _($, $)], e.tileID.canonical).map(((e) => e.polygon)).flat());
12312
12312
  let [g, v] = function(e, t, n, r, i, a, o, s, c, l, u) {
12313
12313
  return e.projection.name === "globe" ? function(e, t, n, r, i, a, o, s, c, l, u) {
12314
12314
  let d = [], f = [], p = e.projection.upVectorScale(u, e.center.lat, e.worldSize).metersToTile, m = [
@@ -12550,9 +12550,9 @@ var h = /* @__PURE__ */ t(((e, t) => {
12550
12550
  });
12551
12551
  }
12552
12552
  trigger() {
12553
- this._triggered || (this._triggered = !0, this._channel ? this._channel.port1.postMessage(!0) : setTimeout(() => {
12553
+ this._triggered || (this._triggered = !0, this._channel ? this._channel.port1.postMessage(!0) : setTimeout((() => {
12554
12554
  this._triggered = !1, this._callback();
12555
- }, 0));
12555
+ }), 0));
12556
12556
  }
12557
12557
  remove() {
12558
12558
  this._channel = void 0, this._callback = () => {};
@@ -12585,7 +12585,7 @@ var h = /* @__PURE__ */ t(((e, t) => {
12585
12585
  process() {
12586
12586
  se();
12587
12587
  try {
12588
- if (this.taskQueue = this.taskQueue.filter((e) => !!this.tasks[e]), !this.taskQueue.length) return;
12588
+ if (this.taskQueue = this.taskQueue.filter(((e) => !!this.tasks[e])), !this.taskQueue.length) return;
12589
12589
  let e = this.pick();
12590
12590
  if (e === null) return;
12591
12591
  let t = this.tasks[e];
@@ -12705,9 +12705,9 @@ var h = /* @__PURE__ */ t(((e, t) => {
12705
12705
  let n = {};
12706
12706
  if (!t) return n;
12707
12707
  for (let r of e) {
12708
- let e = r.layerIds.map((e) => t.getLayer(e)).filter(Boolean);
12708
+ let e = r.layerIds.map(((e) => t.getLayer(e))).filter(Boolean);
12709
12709
  if (e.length !== 0) {
12710
- r.layers = e, r.stateDependentLayerIds && (r.stateDependentLayers = r.stateDependentLayerIds.map((t) => e.filter((e) => e.id === t)[0]));
12710
+ r.layers = e, r.stateDependentLayerIds && (r.stateDependentLayers = r.stateDependentLayerIds.map(((t) => e.filter(((e) => e.id === t))[0])));
12711
12711
  for (let t of e) n[t.id] = r;
12712
12712
  }
12713
12713
  }
@@ -13286,9 +13286,9 @@ var h = /* @__PURE__ */ t(((e, t) => {
13286
13286
  value: t,
13287
13287
  timeout: void 0
13288
13288
  };
13289
- if (n !== void 0 && (i.timeout = setTimeout(() => {
13289
+ if (n !== void 0 && (i.timeout = setTimeout((() => {
13290
13290
  this.remove(e, i);
13291
- }, n)), this.data[r].push(i), this.order.push(r), this.order.length > this.max) {
13291
+ }), n)), this.data[r].push(i), this.order.push(r), this.order.length > this.max) {
13292
13292
  let e = this._getAndRemoveByKey(this.order[0]);
13293
13293
  e && this.onRemove(e);
13294
13294
  }
@@ -13375,11 +13375,11 @@ var h = /* @__PURE__ */ t(((e, t) => {
13375
13375
  Nm.disabled = new Nm(!1, jm, Mm), Nm.backCCW = new Nm(!0, jm, Mm), Nm.backCW = new Nm(!0, jm, 2304), Nm.frontCW = new Nm(!0, 1028, 2304), Nm.frontCCW = new Nm(!0, 1028, Mm);
13376
13376
  class Pm extends ft {
13377
13377
  constructor(e, t, n) {
13378
- super(), this.id = e, this._onlySymbols = n, t.on("data", (e) => {
13378
+ super(), this.id = e, this._onlySymbols = n, t.on("data", ((e) => {
13379
13379
  e.dataType === "source" && e.sourceDataType === "metadata" && (this._sourceLoaded = !0), this._sourceLoaded && !this._paused && e.dataType === "source" && e.sourceDataType === "content" && (this.reload(), this.transform && this.update(this.transform));
13380
- }), t.on("error", () => {
13380
+ })), t.on("error", (() => {
13381
13381
  this._sourceErrored = !0;
13382
- }), this._source = t, this._tiles = {}, this._cache = new Em(0, this._unloadTile.bind(this)), this._timers = {}, this._cacheTimers = {}, this._minTileCacheSize = t.minTileCacheSize, this._maxTileCacheSize = t.maxTileCacheSize, this._loadedParentTiles = {}, this._coveredTiles = {}, this._state = new pm(), this._isRaster = this._source.type === "raster" || this._source.type === "raster-dem" || this._source.type === "custom" && this._source._dataType === "raster";
13382
+ })), this._source = t, this._tiles = {}, this._cache = new Em(0, this._unloadTile.bind(this)), this._timers = {}, this._cacheTimers = {}, this._minTileCacheSize = t.minTileCacheSize, this._maxTileCacheSize = t.maxTileCacheSize, this._loadedParentTiles = {}, this._coveredTiles = {}, this._state = new pm(), this._isRaster = this._source.type === "raster" || this._source.type === "raster-dem" || this._source.type === "custom" && this._source._dataType === "raster";
13383
13383
  }
13384
13384
  onAdd(e) {
13385
13385
  this.map = e, this._minTileCacheSize = this._minTileCacheSize === void 0 && e ? e._minTileCacheSize : this._minTileCacheSize, this._maxTileCacheSize = this._maxTileCacheSize === void 0 && e ? e._maxTileCacheSize : this._maxTileCacheSize;
@@ -13408,10 +13408,10 @@ var h = /* @__PURE__ */ t(((e, t) => {
13408
13408
  return e.isSymbolTile = this._onlySymbols, this._source.loadTile(e, t);
13409
13409
  }
13410
13410
  _unloadTile(e) {
13411
- if (this._source.unloadTile) return this._source.unloadTile(e, () => {});
13411
+ if (this._source.unloadTile) return this._source.unloadTile(e, (() => {}));
13412
13412
  }
13413
13413
  _abortTile(e) {
13414
- if (this._source.abortTile) return this._source.abortTile(e, () => {});
13414
+ if (this._source.abortTile) return this._source.abortTile(e, (() => {}));
13415
13415
  }
13416
13416
  serialize() {
13417
13417
  return this._source.serialize();
@@ -13424,15 +13424,15 @@ var h = /* @__PURE__ */ t(((e, t) => {
13424
13424
  }
13425
13425
  }
13426
13426
  getIds() {
13427
- return A(this._tiles).map((e) => e.tileID).sort(Fm).map((e) => e.key);
13427
+ return A(this._tiles).map(((e) => e.tileID)).sort(Fm).map(((e) => e.key));
13428
13428
  }
13429
13429
  getRenderableIds(e) {
13430
13430
  let t = [];
13431
13431
  for (let n in this._tiles) this._isIdRenderable(+n, e) && t.push(this._tiles[n]);
13432
- return e ? t.sort((e, t) => {
13432
+ return e ? t.sort(((e, t) => {
13433
13433
  let n = e.tileID, r = t.tileID, i = new _(n.canonical.x, n.canonical.y)._rotate(this.transform.angle), a = new _(r.canonical.x, r.canonical.y)._rotate(this.transform.angle);
13434
13434
  return n.overscaledZ - r.overscaledZ || a.y - i.y || a.x - i.x;
13435
- }).map((e) => e.tileID.key) : t.map((e) => e.tileID).sort(Fm).map((e) => e.key);
13435
+ })).map(((e) => e.tileID.key)) : t.map(((e) => e.tileID)).sort(Fm).map(((e) => e.key));
13436
13436
  }
13437
13437
  hasRenderableParent(e) {
13438
13438
  let t = this.findLoadedParent(e, 0);
@@ -13538,14 +13538,14 @@ var h = /* @__PURE__ */ t(((e, t) => {
13538
13538
  update(e, t, n) {
13539
13539
  if (this.transform = e, !this._sourceLoaded || this._paused || this.transform.freezeTileCoverage || this.usedForTerrain && !n) return;
13540
13540
  let r;
13541
- this.updateCacheSize(e, t), this.transform.projection.name !== "globe" && this.handleWrapJump(this.transform.center.lng), this._coveredTiles = {}, this.used || this.usedForTerrain ? this._source.tileID ? r = e.getVisibleUnwrappedCoordinates(this._source.tileID).map((e) => new ad(e.canonical.z, e.wrap, e.canonical.z, e.canonical.x, e.canonical.y)) : (r = e.coveringTiles({
13541
+ this.updateCacheSize(e, t), this.transform.projection.name !== "globe" && this.handleWrapJump(this.transform.center.lng), this._coveredTiles = {}, this.used || this.usedForTerrain ? this._source.tileID ? r = e.getVisibleUnwrappedCoordinates(this._source.tileID).map(((e) => new ad(e.canonical.z, e.wrap, e.canonical.z, e.canonical.x, e.canonical.y))) : (r = e.coveringTiles({
13542
13542
  tileSize: t || this._source.tileSize,
13543
13543
  minzoom: this._source.minzoom,
13544
13544
  maxzoom: this._source.maxzoom,
13545
13545
  roundZoom: this._source.roundZoom && !n,
13546
13546
  reparseOverscaled: this._source.reparseOverscaled,
13547
13547
  isTerrainDEM: this.usedForTerrain
13548
- }), this._source.hasTile && (r = r.filter((e) => this._source.hasTile(e)))) : r = [];
13548
+ }), this._source.hasTile && (r = r.filter(((e) => this._source.hasTile(e))))) : r = [];
13549
13549
  let i = this._updateRetainedTiles(r);
13550
13550
  if (Im(this._source.type) && r.length !== 0) {
13551
13551
  let e = {}, t = {}, n = Object.keys(i);
@@ -13589,7 +13589,7 @@ var h = /* @__PURE__ */ t(((e, t) => {
13589
13589
  _updateRetainedTiles(e) {
13590
13590
  let t = {};
13591
13591
  if (e.length === 0) return t;
13592
- let n = {}, r = e.reduce((e, t) => Math.min(e, t.overscaledZ), Infinity), i = e[0].overscaledZ, a = Math.max(i - Pm.maxOverzooming, this._source.minzoom), o = Math.max(i + Pm.maxUnderzooming, this._source.minzoom), s = {};
13592
+ let n = {}, r = e.reduce(((e, t) => Math.min(e, t.overscaledZ)), Infinity), i = e[0].overscaledZ, a = Math.max(i - Pm.maxOverzooming, this._source.minzoom), o = Math.max(i + Pm.maxUnderzooming, this._source.minzoom), s = {};
13593
13593
  for (let n of e) {
13594
13594
  let e = this._addTile(n);
13595
13595
  t[n.key] = n, e.hasData() || r < this._source.maxzoom && (s[n.key] = n);
@@ -13651,9 +13651,9 @@ var h = /* @__PURE__ */ t(((e, t) => {
13651
13651
  _setTileReloadTimer(e, t) {
13652
13652
  e in this._timers && (clearTimeout(this._timers[e]), delete this._timers[e]);
13653
13653
  let n = t.getExpiryTimeout();
13654
- n && (this._timers[e] = setTimeout(() => {
13654
+ n && (this._timers[e] = setTimeout((() => {
13655
13655
  this._reloadTile(e, "expired"), delete this._timers[e];
13656
- }, n));
13656
+ }), n));
13657
13657
  }
13658
13658
  _removeTile(e) {
13659
13659
  let t = this._tiles[e];
@@ -13694,7 +13694,7 @@ var h = /* @__PURE__ */ t(((e, t) => {
13694
13694
  return r;
13695
13695
  }
13696
13696
  getVisibleCoordinates(e) {
13697
- let t = this.getRenderableIds(e).map((e) => this._tiles[e].tileID);
13697
+ let t = this.getRenderableIds(e).map(((e) => this._tiles[e].tileID));
13698
13698
  for (let e of t) e.projMatrix = this.transform.calculateProjMatrix(e.toUnwrapped());
13699
13699
  return t;
13700
13700
  }
@@ -13721,7 +13721,7 @@ var h = /* @__PURE__ */ t(((e, t) => {
13721
13721
  }
13722
13722
  reloadTilesForDependencies(e, t) {
13723
13723
  for (let n in this._tiles) this._tiles[n].hasDependency(e, t) && this._reloadTile(+n, "reloading");
13724
- this._cache.filter((n) => !n.hasDependency(e, t));
13724
+ this._cache.filter(((n) => !n.hasDependency(e, t)));
13725
13725
  }
13726
13726
  _preloadTiles(e, t) {
13727
13727
  if (!this._sourceLoaded) {
@@ -13744,12 +13744,12 @@ var h = /* @__PURE__ */ t(((e, t) => {
13744
13744
  for (let e of t) n.set(e.key, e);
13745
13745
  this.usedForTerrain && e.updateElevation(!1);
13746
13746
  }
13747
- k(Array.from(n.values()), (e, t) => {
13747
+ k(Array.from(n.values()), ((e, t) => {
13748
13748
  let n = new fm(e, this._source.tileSize * e.overscaleFactor(), this.transform.tileZoom, this.map.painter, this._isRaster);
13749
- this._loadTile(n, (e) => {
13749
+ this._loadTile(n, ((e) => {
13750
13750
  this._source.type === "raster-dem" && n.dem && this._backfillDEM(n), t(e, n);
13751
- });
13752
- }, t);
13751
+ }));
13752
+ }), t);
13753
13753
  }
13754
13754
  }
13755
13755
  function Fm(e, t) {
@@ -13820,7 +13820,7 @@ var h = /* @__PURE__ */ t(((e, t) => {
13820
13820
  }
13821
13821
  query(e, t, n, r) {
13822
13822
  this.loadVTLayers();
13823
- let i = e.params || {}, a = mi(i.filter), o = e.tileResult, s = e.transform, c = o.bufferedTilespaceBounds, l = this.grid.query(c.min.x, c.min.y, c.max.x, c.max.y, (e, t, n, r) => ml(o.bufferedTilespaceGeometry, e, t, n, r));
13823
+ let i = e.params || {}, a = mi(i.filter), o = e.tileResult, s = e.transform, c = o.bufferedTilespaceBounds, l = this.grid.query(c.min.x, c.min.y, c.max.x, c.max.y, ((e, t, n, r) => ml(o.bufferedTilespaceGeometry, e, t, n, r)));
13824
13824
  l.sort(Vm);
13825
13825
  let u = null;
13826
13826
  s.elevation && l.length > 0 && (u = Rm.create(s.elevation, this.tileID));
@@ -13830,7 +13830,7 @@ var h = /* @__PURE__ */ t(((e, t) => {
13830
13830
  if (c === f) continue;
13831
13831
  f = c;
13832
13832
  let p = this.featureIndexArray.get(c), m = null;
13833
- this.loadMatchingFeature(d, p, a, i.layers, i.availableImages, t, n, r, (t, n, r, i = 0) => (m || (m = $c(t, this.tileID.canonical, e.tileTransform)), n.queryIntersectsFeature(o, t, r, m, this.z, e.transform, e.pixelPosMatrix, u, i)));
13833
+ this.loadMatchingFeature(d, p, a, i.layers, i.availableImages, t, n, r, ((t, n, r, i = 0) => (m || (m = $c(t, this.tileID.canonical, e.tileTransform)), n.queryIntersectsFeature(o, t, r, m, this.z, e.transform, e.pixelPosMatrix, u, i))));
13834
13834
  }
13835
13835
  return d;
13836
13836
  }
@@ -13901,10 +13901,10 @@ var h = /* @__PURE__ */ t(((e, t) => {
13901
13901
  }
13902
13902
  }
13903
13903
  function Bm(e, t, n, r, i) {
13904
- return ne(e, (e, a) => {
13904
+ return ne(e, ((e, a) => {
13905
13905
  let o = t instanceof Aa ? t.get(a) : null;
13906
13906
  return o && o.evaluate ? o.evaluate(n, r, i) : o;
13907
- });
13907
+ }));
13908
13908
  }
13909
13909
  function Vm(e, t) {
13910
13910
  return t - e;
@@ -14091,7 +14091,7 @@ var h = /* @__PURE__ */ t(((e, t) => {
14091
14091
  enableTerrain: this.enableTerrain,
14092
14092
  projection: this.projection.spec,
14093
14093
  availableImages: n
14094
- })).populate(f, l, this.tileID.canonical, this.tileTransform), o.bucketLayerIDs.push(e.map((e) => e.id)));
14094
+ })).populate(f, l, this.tileID.canonical, this.tileTransform), o.bucketLayerIDs.push(e.map(((e) => e.id))));
14095
14095
  }
14096
14096
  }
14097
14097
  let d, f, p, m;
@@ -14109,7 +14109,7 @@ var h = /* @__PURE__ */ t(((e, t) => {
14109
14109
  i instanceof Hp ? (Gm(i.layers, this.zoom, n), tp(i, f, e.positions, p, t.iconPositions, this.showCollisionBoxes, n, this.tileID.canonical, this.tileZoom, this.projection)) : i.hasPattern && (i instanceof hd || i instanceof yu || i instanceof Gu) && (Gm(i.layers, this.zoom, n), i.addFeatures(l, this.tileID.canonical, t.patternPositions, n, this.tileTransform));
14110
14110
  }
14111
14111
  this.status = "done", i(null, {
14112
- buckets: A(s).filter((e) => !e.isEmpty()),
14112
+ buckets: A(s).filter(((e) => !e.isEmpty())),
14113
14113
  featureIndex: o,
14114
14114
  collisionBoxArray: this.collisionBoxArray,
14115
14115
  glyphAtlasImage: e.image,
@@ -14120,31 +14120,31 @@ var h = /* @__PURE__ */ t(((e, t) => {
14120
14120
  glyphPositions: this.returnDependencies ? e.positions : null
14121
14121
  });
14122
14122
  }
14123
- }, _ = ne(l.glyphDependencies, (e) => Object.keys(e).map(Number));
14123
+ }, _ = ne(l.glyphDependencies, ((e) => Object.keys(e).map(Number)));
14124
14124
  Object.keys(_).length ? r.send("getGlyphs", {
14125
14125
  uid: this.uid,
14126
14126
  stacks: _
14127
- }, (e, t) => {
14127
+ }, ((e, t) => {
14128
14128
  d || (d = e, f = t, g());
14129
- }, void 0, !1, h) : f = {};
14129
+ }), void 0, !1, h) : f = {};
14130
14130
  let v = Object.keys(l.iconDependencies);
14131
14131
  v.length ? r.send("getImages", {
14132
14132
  icons: v,
14133
14133
  source: this.source,
14134
14134
  tileID: this.tileID,
14135
14135
  type: "icons"
14136
- }, (e, t) => {
14136
+ }, ((e, t) => {
14137
14137
  d || (d = e, p = t, g());
14138
- }, void 0, !1, h) : p = {};
14138
+ }), void 0, !1, h) : p = {};
14139
14139
  let y = Object.keys(l.patternDependencies);
14140
14140
  y.length ? r.send("getImages", {
14141
14141
  icons: y,
14142
14142
  source: this.source,
14143
14143
  tileID: this.tileID,
14144
14144
  type: "patterns"
14145
- }, (e, t) => {
14145
+ }, ((e, t) => {
14146
14146
  d || (d = e, m = t, g());
14147
- }, void 0, !1, h) : m = {}, g();
14147
+ }), void 0, !1, h) : m = {}, g();
14148
14148
  }
14149
14149
  }
14150
14150
  function Gm(e, t, n) {
@@ -14159,18 +14159,18 @@ var h = /* @__PURE__ */ t(((e, t) => {
14159
14159
  let i = this.entries[e] = this.entries[e] || { callbacks: [] };
14160
14160
  if (i.result) {
14161
14161
  let [e, n] = i.result;
14162
- return this.scheduler ? this.scheduler.add(() => {
14162
+ return this.scheduler ? this.scheduler.add((() => {
14163
14163
  r(e, n);
14164
- }, t) : r(e, n), () => {};
14164
+ }), t) : r(e, n), () => {};
14165
14165
  }
14166
- return i.callbacks.push(r), i.cancel || (i.cancel = n((n, r) => {
14166
+ return i.callbacks.push(r), i.cancel || (i.cancel = n(((n, r) => {
14167
14167
  i.result = [n, r];
14168
- for (let e of i.callbacks) this.scheduler ? this.scheduler.add(() => {
14168
+ for (let e of i.callbacks) this.scheduler ? this.scheduler.add((() => {
14169
14169
  e(n, r);
14170
- }, t) : e(n, r);
14171
- setTimeout(() => delete this.entries[e], 3e3);
14172
- })), () => {
14173
- i.result || (i.callbacks = i.callbacks.filter((e) => e !== r), i.callbacks.length || (i.cancel(), delete this.entries[e]));
14170
+ }), t) : e(n, r);
14171
+ setTimeout((() => delete this.entries[e]), 3e3);
14172
+ }))), () => {
14173
+ i.result || (i.callbacks = i.callbacks.filter(((e) => e !== r)), i.callbacks.length || (i.cancel(), delete this.entries[e]));
14174
14174
  };
14175
14175
  }
14176
14176
  }
@@ -14180,19 +14180,19 @@ var h = /* @__PURE__ */ t(((e, t) => {
14180
14180
  type: "parseTile",
14181
14181
  isSymbolTile: e.isSymbolTile,
14182
14182
  zoom: e.tileZoom
14183
- }, (t) => {
14184
- let r = Ee(e.request, (e, r, i, a) => {
14183
+ }, ((t) => {
14184
+ let r = Ee(e.request, ((e, r, i, a) => {
14185
14185
  e ? t(e) : r && t(null, {
14186
14186
  vectorTile: n ? void 0 : new Ru(new af(r)),
14187
14187
  rawData: r,
14188
14188
  cacheControl: i,
14189
14189
  expires: a
14190
14190
  });
14191
- });
14191
+ }));
14192
14192
  return () => {
14193
14193
  r.cancel(), t();
14194
14194
  };
14195
- }, t);
14195
+ }), t);
14196
14196
  }
14197
14197
  let Jm = [
14198
14198
  Int8Array,
@@ -14335,7 +14335,7 @@ var h = /* @__PURE__ */ t(((e, t) => {
14335
14335
  delete this.cancelCallbacks[n], e && e.cancel();
14336
14336
  } else if (t.mustQueue || se()) {
14337
14337
  let e = this.callbacks[n];
14338
- this.cancelCallbacks[n] = this.scheduler.add(() => this.processTask(n, t), e && e.metadata || { type: "message" });
14338
+ this.cancelCallbacks[n] = this.scheduler.add((() => this.processTask(n, t)), e && e.metadata || { type: "message" });
14339
14339
  } else this.processTask(n, t);
14340
14340
  }
14341
14341
  processTask(e, t) {
@@ -14395,9 +14395,9 @@ var h = /* @__PURE__ */ t(((e, t) => {
14395
14395
  getForTilePoints(e, t, n, r) {
14396
14396
  if (this.isUsingMockSource()) return !1;
14397
14397
  let i = Rm.create(this, e, r);
14398
- return !!i && (t.forEach((e) => {
14398
+ return !!i && (t.forEach(((e) => {
14399
14399
  e[2] = this.exaggeration() * i.getElevationAt(e[0], e[1], n);
14400
- }), !0);
14400
+ })), !0);
14401
14401
  }
14402
14402
  getMinMaxForTile(e) {
14403
14403
  if (this.isUsingMockSource()) return null;
@@ -14605,7 +14605,7 @@ var h = /* @__PURE__ */ t(((e, t) => {
14605
14605
  let r = "mapbox://";
14606
14606
  n.path.match(/^\/raster\/v1\//) ? r += `raster/${n.path.replace(`/${i.RASTER_URL_PREFIX}/`, "")}` : r += `tiles/${n.path.replace(`/${i.TILE_URL_VERSION}/`, "")}`;
14607
14607
  let a = n.params;
14608
- return t && (a = a.filter((e) => !e.match(/^access_token=/))), a.length && (r += `?${a.join("&")}`), r;
14608
+ return t && (a = a.filter(((e) => !e.match(/^access_token=/)))), a.length && (r += `?${a.join("&")}`), r;
14609
14609
  }
14610
14610
  canonicalizeTileset(e, t) {
14611
14611
  let n = !!t && Ne(t), r = [];
@@ -14623,7 +14623,7 @@ var h = /* @__PURE__ */ t(((e, t) => {
14623
14623
  if (!t) throw Error(`An API access token is required to use Mapbox GL. ${n}`);
14624
14624
  if (t[0] === "s") throw Error(`Use a public access token (pk.*) with Mapbox GL, not a secret access token (sk.*). ${n}`);
14625
14625
  }
14626
- return e.params = e.params.filter((e) => e.indexOf("access_token") === -1), e.params.push(`access_token=${t || ""}`), Be(e);
14626
+ return e.params = e.params.filter(((e) => e.indexOf("access_token") === -1)), e.params.push(`access_token=${t || ""}`), Be(e);
14627
14627
  }
14628
14628
  }, e.ResourceType = Se, e.SegmentVector = as, e.SourceCache = Pm, e.StencilMode = km, e.StructArrayLayout1ui2 = co, e.StructArrayLayout2f1f2i16 = Qa, e.StructArrayLayout2i4 = za, e.StructArrayLayout2ui4 = so, e.StructArrayLayout3f12 = eo, e.StructArrayLayout3ui6 = to, e.StructArrayLayout4i8 = Va, e.StructArrayLayout5f20 = ao, e.Texture = $p, e.Tile = fm, e.Transitionable = Ta, e.Uniform1f = Io, e.Uniform1i = class extends Fo {
14629
14629
  constructor(e) {
@@ -14693,13 +14693,13 @@ var h = /* @__PURE__ */ t(((e, t) => {
14693
14693
  }
14694
14694
  loadTile(e, t) {
14695
14695
  let n = e.uid, r = e && e.request, i = r && r.collectResourceTiming, a = this.loading[n] = new Wm(e);
14696
- a.abort = this.loadVectorData(e, (o, s) => {
14696
+ a.abort = this.loadVectorData(e, ((o, s) => {
14697
14697
  let c = !this.loading[n];
14698
14698
  if (delete this.loading[n], c || o || !s) return a.status = "done", c || (this.loaded[n] = a), t(o);
14699
14699
  let l = s.rawData, u = {};
14700
14700
  s.expires && (u.expires = s.expires), s.cacheControl && (u.cacheControl = s.cacheControl), a.vectorTile = s.vectorTile || new Ru(new af(l));
14701
14701
  let d = () => {
14702
- a.parse(a.vectorTile, this.layerIndex, this.availableImages, this.actor, (e, n) => {
14702
+ a.parse(a.vectorTile, this.layerIndex, this.availableImages, this.actor, ((e, n) => {
14703
14703
  if (e || !n) return t(e);
14704
14704
  let a = {};
14705
14705
  if (i) {
@@ -14707,16 +14707,16 @@ var h = /* @__PURE__ */ t(((e, t) => {
14707
14707
  e.length > 0 && (a.resourceTiming = JSON.parse(JSON.stringify(e)));
14708
14708
  }
14709
14709
  t(null, j({ rawTileData: l.slice(0) }, n, u, a));
14710
- });
14710
+ }));
14711
14711
  };
14712
- this.isSpriteLoaded ? d() : this.once("isSpriteLoaded", () => {
14712
+ this.isSpriteLoaded ? d() : this.once("isSpriteLoaded", (() => {
14713
14713
  this.scheduler ? this.scheduler.add(d, {
14714
14714
  type: "parseTile",
14715
14715
  isSymbolTile: e.isSymbolTile,
14716
14716
  zoom: e.tileZoom
14717
14717
  }) : d();
14718
- }), this.loaded = this.loaded || {}, this.loaded[n] = a;
14719
- });
14718
+ })), this.loaded = this.loaded || {}, this.loaded[n] = a;
14719
+ }));
14720
14720
  }
14721
14721
  reloadTile(e, t) {
14722
14722
  let n = this.loaded, r = e.uid, i = this;
@@ -14770,7 +14770,7 @@ var h = /* @__PURE__ */ t(((e, t) => {
14770
14770
  }, e.circumferenceAtLatitude = Ic, e.clamp = E, e.clearTileCache = function(e) {
14771
14771
  if (!ve()) return;
14772
14772
  let n = t.caches.delete(pe);
14773
- e && n.catch(e).then(() => e());
14773
+ e && n.catch(e).then((() => e()));
14774
14774
  }, e.clipLine = Ff, e.clone = function(e) {
14775
14775
  var t = new cs(16);
14776
14776
  return t[0] = e[0], t[1] = e[1], t[2] = e[2], t[3] = e[3], t[4] = e[4], t[5] = e[5], t[6] = e[6], t[7] = e[7], t[8] = e[8], t[9] = e[9], t[10] = e[10], t[11] = e[11], t[12] = e[12], t[13] = e[13], t[14] = e[14], t[15] = e[15], t;
@@ -14789,11 +14789,11 @@ var h = /* @__PURE__ */ t(((e, t) => {
14789
14789
  let r = Math.hypot(e, t, n), i = Math.atan2(e, n), a = .5 * Math.PI - Math.acos(-t / r);
14790
14790
  return new Fc(x(i), x(a));
14791
14791
  }, e.emitValidationErrors = Ki, e.endsWith = te, e.enforceCacheSizeLimit = function(e) {
14792
- ye(), ge && ge.then((t) => {
14793
- t.keys().then((n) => {
14792
+ ye(), ge && ge.then(((t) => {
14793
+ t.keys().then(((n) => {
14794
14794
  for (let r = 0; r < n.length - e; r++) t.delete(n[r]);
14795
- });
14796
- });
14795
+ }));
14796
+ }));
14797
14797
  }, e.evaluateSizeForFeature = kd, e.evaluateSizeForZoom = Ad, e.evaluateVariableOffset = ep, e.evented = va, e.exactEquals = function(e, t) {
14798
14798
  return e[0] === t[0] && e[1] === t[1] && e[2] === t[2] && e[3] === t[3];
14799
14799
  }, e.exactEquals$1 = function(e, t) {
@@ -15007,7 +15007,7 @@ var h = /* @__PURE__ */ t(((e, t) => {
15007
15007
  let t = [], n = e.id;
15008
15008
  return n === void 0 && t.push({ message: `layers.${n}: missing required property "id"` }), e.render === void 0 && t.push({ message: `layers.${n}: missing required method "render"` }), e.renderingMode && e.renderingMode !== "2d" && e.renderingMode !== "3d" && t.push({ message: `layers.${n}: property "renderingMode" must be either "2d" or "3d"` }), t;
15009
15009
  }, e.validateFilter = (e) => Gi(Ei(e)), e.validateFog = (e) => Gi(Ri(e)), e.validateLayer = (e) => Gi(ji(e)), e.validateLight = (e) => Gi(Ii(e)), e.validateSource = (e) => Gi(Pi(e)), e.validateStyle = Hi, e.validateTerrain = (e) => Gi(Li(e)), e.values = A, e.vectorTile = Eu, e.version = n, e.warnOnce = R, e.window = t, e.wrap = O;
15010
- }), r(["./shared"], function(e) {
15010
+ })), r(["./shared"], (function(e) {
15011
15011
  function t(e) {
15012
15012
  if (typeof e == "number" || typeof e == "boolean" || typeof e == "string" || e == null) return JSON.stringify(e);
15013
15013
  if (Array.isArray(e)) {
@@ -15048,7 +15048,7 @@ var h = /* @__PURE__ */ t(((e, t) => {
15048
15048
  return i;
15049
15049
  }(e.values(this._layerConfigs), this.keyCache);
15050
15050
  for (let e of i) {
15051
- let t = e.map((e) => this._layers[e.id]), n = t[0];
15051
+ let t = e.map(((e) => this._layers[e.id])), n = t[0];
15052
15052
  if (n.visibility === "none") continue;
15053
15053
  let r = n.source || "", i = this.familiesBySource[r];
15054
15054
  i || (i = this.familiesBySource[r] = {});
@@ -15081,7 +15081,7 @@ var h = /* @__PURE__ */ t(((e, t) => {
15081
15081
  }
15082
15082
  n + r >= 0 != !!t && e.reverse();
15083
15083
  }
15084
- var s = e.getDefaultExportFromCjs(function e(t, n) {
15084
+ var s = e.getDefaultExportFromCjs((function e(t, n) {
15085
15085
  var r, i = t && t.type;
15086
15086
  if (i === "FeatureCollection") for (r = 0; r < t.features.length; r++) e(t.features[r], n);
15087
15087
  else if (i === "GeometryCollection") for (r = 0; r < t.geometries.length; r++) e(t.geometries[r], n);
@@ -15089,7 +15089,7 @@ var h = /* @__PURE__ */ t(((e, t) => {
15089
15089
  else if (i === "Polygon") a(t.coordinates, n);
15090
15090
  else if (i === "MultiPolygon") for (r = 0; r < t.coordinates.length; r++) a(t.coordinates[r], n);
15091
15091
  return t;
15092
- });
15092
+ }));
15093
15093
  let c = e.VectorTileFeature.prototype.toGeoJSON;
15094
15094
  var l = { exports: {} }, u = e.pointGeometry, d = e.vectorTile.VectorTileFeature, f = p;
15095
15095
  function p(e, t) {
@@ -15764,7 +15764,7 @@ var h = /* @__PURE__ */ t(((e, t) => {
15764
15764
  }
15765
15765
  loadData(t, n) {
15766
15766
  let r = t && t.request, i = r && r.collectResourceTiming;
15767
- this.loadGeoJSON(t, (a, o) => {
15767
+ this.loadGeoJSON(t, ((a, o) => {
15768
15768
  if (a || !o) return n(a);
15769
15769
  if (typeof o != "object") return n(/* @__PURE__ */ Error(`Input data given to '${t.source}' is not a valid GeoJSON object.`));
15770
15770
  {
@@ -15777,10 +15777,10 @@ var h = /* @__PURE__ */ t(((e, t) => {
15777
15777
  overridable: !1,
15778
15778
  transition: !1
15779
15779
  });
15780
- if (n.result === "error") throw Error(n.value.map((e) => `${e.key}: ${e.message}`).join(", "));
15780
+ if (n.result === "error") throw Error(n.value.map(((e) => `${e.key}: ${e.message}`)).join(", "));
15781
15781
  o = {
15782
15782
  type: "FeatureCollection",
15783
- features: o.features.filter((e) => n.value.evaluate({ zoom: 0 }, e))
15783
+ features: o.features.filter(((e) => n.value.evaluate({ zoom: 0 }, e)))
15784
15784
  };
15785
15785
  }
15786
15786
  this._geoJSONIndex = t.cluster ? new k(function({ superclusterOptions: t, clusterProperties: n }) {
@@ -15820,7 +15820,7 @@ var h = /* @__PURE__ */ t(((e, t) => {
15820
15820
  }
15821
15821
  n(null, a);
15822
15822
  }
15823
- });
15823
+ }));
15824
15824
  }
15825
15825
  reloadTile(e, t) {
15826
15826
  let n = this.loaded;
@@ -15982,7 +15982,7 @@ var h = /* @__PURE__ */ t(((e, t) => {
15982
15982
  }
15983
15983
  }
15984
15984
  return typeof WorkerGlobalScope < "u" && typeof self < "u" && self instanceof WorkerGlobalScope && (self.worker = new Te(self)), Te;
15985
- }), r(["./shared"], function(e) {
15985
+ })), r(["./shared"], (function(e) {
15986
15986
  function t(e, n) {
15987
15987
  if (Array.isArray(e)) {
15988
15988
  if (!Array.isArray(n) || e.length !== n.length) return !1;
@@ -16058,9 +16058,9 @@ var h = /* @__PURE__ */ t(((e, t) => {
16058
16058
  t.preventDefault(), t.stopPropagation(), e.window.removeEventListener("click", f, !0);
16059
16059
  }
16060
16060
  function p() {
16061
- e.window.addEventListener("click", f, !0), e.window.setTimeout(() => {
16061
+ e.window.addEventListener("click", f, !0), e.window.setTimeout((() => {
16062
16062
  e.window.removeEventListener("click", f, !0);
16063
- }, 0);
16063
+ }), 0);
16064
16064
  }
16065
16065
  function m(e, t) {
16066
16066
  return _(e, e.getBoundingClientRect(), t);
@@ -16439,22 +16439,22 @@ var h = /* @__PURE__ */ t(((e, t) => {
16439
16439
  let t = new k.Actor(r[e], n, this.id);
16440
16440
  t.name = `Worker ${e}`, this.actors.push(t);
16441
16441
  }
16442
- this.ready = !1, this.broadcast("checkIfReady", null, () => {
16442
+ this.ready = !1, this.broadcast("checkIfReady", null, (() => {
16443
16443
  this.ready = !0;
16444
- });
16444
+ }));
16445
16445
  }
16446
16446
  broadcast(t, n, r) {
16447
- e.asyncAll(this.actors, (e, r) => {
16447
+ e.asyncAll(this.actors, ((e, r) => {
16448
16448
  e.send(t, n, r);
16449
- }, r = r || function() {});
16449
+ }), r = r || function() {});
16450
16450
  }
16451
16451
  getActor() {
16452
16452
  return this.currentActor = (this.currentActor + 1) % this.actors.length, this.actors[this.currentActor];
16453
16453
  }
16454
16454
  remove() {
16455
- this.actors.forEach((e) => {
16455
+ this.actors.forEach(((e) => {
16456
16456
  e.remove();
16457
- }), this.actors = [], this.workerPool.release(this.id);
16457
+ })), this.actors = [], this.workerPool.release(this.id);
16458
16458
  }
16459
16459
  }
16460
16460
  function A(t, n, r) {
@@ -16472,7 +16472,7 @@ var h = /* @__PURE__ */ t(((e, t) => {
16472
16472
  r = [a], i = n.isPointAboveHorizon(a);
16473
16473
  } else {
16474
16474
  let a = e.Point.convert(t[0]), o = e.Point.convert(t[1]);
16475
- r = [a, o], i = e.polygonizeBounds(a, o).every((e) => n.isPointAboveHorizon(e));
16475
+ r = [a, o], i = e.polygonizeBounds(a, o).every(((e) => n.isPointAboveHorizon(e)));
16476
16476
  }
16477
16477
  return new j(r, n.getCameraPoint(), i, n);
16478
16478
  }
@@ -16515,13 +16515,13 @@ var h = /* @__PURE__ */ t(((e, t) => {
16515
16515
  return i;
16516
16516
  }
16517
16517
  containsTile(t, n, r, i = 0) {
16518
- let a = t.queryPadding / n._pixelsPerMercatorPixel + 1, o = r ? this._bufferedCameraMercator(a, n) : this._bufferedScreenMercator(a, n), s = t.tileID.wrap + (o.unwrapped ? i : 0), c = o.polygon.map((n) => e.getTilePoint(t.tileTransform, n, s));
16518
+ let a = t.queryPadding / n._pixelsPerMercatorPixel + 1, o = r ? this._bufferedCameraMercator(a, n) : this._bufferedScreenMercator(a, n), s = t.tileID.wrap + (o.unwrapped ? i : 0), c = o.polygon.map(((n) => e.getTilePoint(t.tileTransform, n, s)));
16519
16519
  if (!e.polygonIntersectsBox(c, 0, 0, e.EXTENT, e.EXTENT)) return;
16520
16520
  s = t.tileID.wrap + (this.screenGeometryMercator.unwrapped ? i : 0);
16521
- let l = this.screenGeometryMercator.polygon.map((n) => e.getTileVec3(t.tileTransform, n, s)), u = l.map((t) => new e.Point(t[0], t[1])), d = n.getFreeCameraOptions().position || new e.MercatorCoordinate(0, 0, 0), f = e.getTileVec3(t.tileTransform, d, s), p = l.map((t) => {
16521
+ let l = this.screenGeometryMercator.polygon.map(((n) => e.getTileVec3(t.tileTransform, n, s))), u = l.map(((t) => new e.Point(t[0], t[1]))), d = n.getFreeCameraOptions().position || new e.MercatorCoordinate(0, 0, 0), f = e.getTileVec3(t.tileTransform, d, s), p = l.map(((t) => {
16522
16522
  let n = e.sub(t, t, f);
16523
16523
  return e.normalize(n, n), new e.Ray(f, n);
16524
- }), m = A(t, 1, n.zoom) * n._pixelsPerMercatorPixel;
16524
+ })), m = A(t, 1, n.zoom) * n._pixelsPerMercatorPixel;
16525
16525
  return {
16526
16526
  queryGeometry: this,
16527
16527
  tilespaceGeometry: u,
@@ -16540,7 +16540,7 @@ var h = /* @__PURE__ */ t(((e, t) => {
16540
16540
  {
16541
16541
  let r;
16542
16542
  return r = t.projection.name === "globe" ? this._projectAndResample(this.bufferedScreenGeometry(e), t) : {
16543
- polygon: this.bufferedScreenGeometry(e).map((e) => t.pointCoordinate3D(e)),
16543
+ polygon: this.bufferedScreenGeometry(e).map(((e) => t.pointCoordinate3D(e))),
16544
16544
  unwrapped: !0
16545
16545
  }, this._screenRaycastCache[n] = r, r;
16546
16546
  }
@@ -16551,7 +16551,7 @@ var h = /* @__PURE__ */ t(((e, t) => {
16551
16551
  {
16552
16552
  let r;
16553
16553
  return r = t.projection.name === "globe" ? this._projectAndResample(this.bufferedCameraGeometryGlobe(e), t) : {
16554
- polygon: this.bufferedCameraGeometry(e).map((e) => t.pointCoordinate3D(e)),
16554
+ polygon: this.bufferedCameraGeometry(e).map(((e) => t.pointCoordinate3D(e))),
16555
16555
  unwrapped: !0
16556
16556
  }, this._cameraRaycastCache[n] = r, r;
16557
16557
  }
@@ -16594,7 +16594,7 @@ var h = /* @__PURE__ */ t(((e, t) => {
16594
16594
  }(t, n, l ? -1 : 1);
16595
16595
  if (!d) return null;
16596
16596
  let { idx: f, t: p } = d, m = f > 1 ? M(t.slice(0, f), n) : [], h = f < t.length ? M(t.slice(f), n) : [];
16597
- m = m.map((t) => new e.Point(N(t.x), t.y)), h = h.map((t) => new e.Point(N(t.x), t.y));
16597
+ m = m.map(((t) => new e.Point(N(t.x), t.y))), h = h.map(((t) => new e.Point(N(t.x), t.y)));
16598
16598
  let g = [...m];
16599
16599
  g.length === 0 && g.push(h[h.length - 1]);
16600
16600
  let _ = e.number(g[g.length - 1].y, (h.length === 0 ? m[0] : h[0]).y, p), v;
@@ -16609,7 +16609,7 @@ var h = /* @__PURE__ */ t(((e, t) => {
16609
16609
  new e.Point(0, 1),
16610
16610
  new e.Point(0, _)
16611
16611
  ], g.push(...v), h.length === 0 ? g.push(m[0]) : g.push(...h), {
16612
- polygon: g.map((t) => new e.MercatorCoordinate(t.x, t.y)),
16612
+ polygon: g.map(((t) => new e.MercatorCoordinate(t.x, t.y))),
16613
16613
  unwrapped: !1
16614
16614
  };
16615
16615
  }(t, n);
@@ -16622,24 +16622,24 @@ var h = /* @__PURE__ */ t(((e, t) => {
16622
16622
  Math.abs(i.x - o.x) > .5 && (i.x < o.x ? (i.x += 1, n === 0 && (t[t.length - 1].x += 1)) : (o.x += 1, n + 1 === t.length - 1 && (t[0].x += 1)), r = !0);
16623
16623
  }
16624
16624
  let o = e.mercatorXfromLng(n.center.lng);
16625
- return r && o < Math.abs(o - 1) && t.forEach((e) => {
16625
+ return r && o < Math.abs(o - 1) && t.forEach(((e) => {
16626
16626
  --e.x;
16627
- }), {
16627
+ })), {
16628
16628
  polygon: t,
16629
16629
  unwrapped: r
16630
16630
  };
16631
- }(M(t, n).map((t) => new e.Point(N(t.x), t.y)), n);
16631
+ }(M(t, n).map(((t) => new e.Point(N(t.x), t.y))), n);
16632
16632
  return {
16633
- polygon: i.polygon.map((t) => new e.MercatorCoordinate(t.x, t.y)),
16633
+ polygon: i.polygon.map(((t) => new e.MercatorCoordinate(t.x, t.y))),
16634
16634
  unwrapped: i.unwrapped
16635
16635
  };
16636
16636
  }
16637
16637
  }
16638
16638
  function M(t, n) {
16639
- return e.resample(t, (e) => {
16639
+ return e.resample(t, ((e) => {
16640
16640
  let t = n.pointCoordinate3D(e);
16641
16641
  e.x = t.x, e.y = t.y;
16642
- }, 1 / 256);
16642
+ }), 1 / 256);
16643
16643
  }
16644
16644
  function N(e) {
16645
16645
  return e < 0 ? 1 + e % 1 : e % 1;
@@ -16663,10 +16663,10 @@ var h = /* @__PURE__ */ t(((e, t) => {
16663
16663
  "tileSize",
16664
16664
  "encoding"
16665
16665
  ]);
16666
- i.vector_layers && (r.vectorLayers = i.vector_layers, r.vectorLayerIds = r.vectorLayers.map((e) => e.id)), r.tiles = n.canonicalizeTileset(r, t.url), a(null, r);
16666
+ i.vector_layers && (r.vectorLayers = i.vector_layers, r.vectorLayerIds = r.vectorLayers.map(((e) => e.id))), r.tiles = n.canonicalizeTileset(r, t.url), a(null, r);
16667
16667
  }
16668
16668
  };
16669
- return t.url ? e.getJSON(n.transformRequest(n.normalizeSourceURL(t.url, null, r, i), e.ResourceType.Source), o) : e.exported.frame(() => o(null, t));
16669
+ return t.url ? e.getJSON(n.transformRequest(n.normalizeSourceURL(t.url, null, r, i), e.ResourceType.Source), o) : e.exported.frame((() => o(null, t)));
16670
16670
  }
16671
16671
  class F {
16672
16672
  constructor(t, n, r) {
@@ -17190,7 +17190,7 @@ var h = /* @__PURE__ */ t(((e, t) => {
17190
17190
  load(t) {
17191
17191
  this._loaded = !1, this.fire(new e.Event("dataloading", { dataType: "source" }));
17192
17192
  let n = Array.isArray(this.map._language) ? this.map._language.join() : this.map._language, r = this.map._worldview;
17193
- this._tileJSONRequest = ee(this._options, this.map._requestManager, n, r, (i, a) => {
17193
+ this._tileJSONRequest = ee(this._options, this.map._requestManager, n, r, ((i, a) => {
17194
17194
  this._tileJSONRequest = null, this._loaded = !0, i ? (n && console.warn(`Ensure that your requested language string is a valid BCP-47 code or list of codes. Found: ${n}`), r && r.length !== 2 && console.warn(`Requested worldview strings must be a valid ISO alpha-2 code. Found: ${r}`), this.fire(new e.ErrorEvent(i))) : a && (e.extend(this, a), a.bounds && (this.tileBounds = new F(a.bounds, this.minzoom, this.maxzoom)), e.postTurnstileEvent(a.tiles, this.map._requestManager._customAccessToken), this.fire(new e.Event("data", {
17195
17195
  dataType: "source",
17196
17196
  sourceDataType: "metadata"
@@ -17198,7 +17198,7 @@ var h = /* @__PURE__ */ t(((e, t) => {
17198
17198
  dataType: "source",
17199
17199
  sourceDataType: "content"
17200
17200
  }))), t && t(i);
17201
- });
17201
+ }));
17202
17202
  }
17203
17203
  loaded() {
17204
17204
  return this._loaded;
@@ -17210,7 +17210,7 @@ var h = /* @__PURE__ */ t(((e, t) => {
17210
17210
  this.map = e, this.load();
17211
17211
  }
17212
17212
  reload() {
17213
- this.cancelTileJSONRequest(), this.load(() => this.map.style._clearSource(this.id));
17213
+ this.cancelTileJSONRequest(), this.load((() => this.map.style._clearSource(this.id)));
17214
17214
  }
17215
17215
  setTiles(e) {
17216
17216
  return this._options.tiles = e, this.reload(), this;
@@ -17240,13 +17240,13 @@ var h = /* @__PURE__ */ t(((e, t) => {
17240
17240
  promoteId: this.promoteId,
17241
17241
  isSymbolTile: t.isSymbolTile
17242
17242
  };
17243
- i.request.collectResourceTiming = this._collectResourceTiming, t.actor && t.state !== "expired" ? t.state === "loading" ? t.reloadCallback = n : t.request = t.actor.send("reloadTile", i, a.bind(this)) : (t.actor = this._tileWorkers[r] = this._tileWorkers[r] || this.dispatcher.getActor(), this.dispatcher.ready ? t.request = t.actor.send("loadTile", i, a.bind(this), void 0, !0) : t.request = { cancel: e.loadVectorTile.call({ deduped: this._deduped }, i, (e, n) => {
17243
+ i.request.collectResourceTiming = this._collectResourceTiming, t.actor && t.state !== "expired" ? t.state === "loading" ? t.reloadCallback = n : t.request = t.actor.send("reloadTile", i, a.bind(this)) : (t.actor = this._tileWorkers[r] = this._tileWorkers[r] || this.dispatcher.getActor(), this.dispatcher.ready ? t.request = t.actor.send("loadTile", i, a.bind(this), void 0, !0) : t.request = { cancel: e.loadVectorTile.call({ deduped: this._deduped }, i, ((e, n) => {
17244
17244
  e || !n ? a.call(this, e) : (i.data = {
17245
17245
  cacheControl: n.cacheControl,
17246
17246
  expires: n.expires,
17247
17247
  rawData: n.rawData.slice(0)
17248
17248
  }, t.actor && t.actor.send("loadTile", i, a.bind(this), void 0, !0));
17249
- }, !0) });
17249
+ }), !0) });
17250
17250
  function a(r, i) {
17251
17251
  return delete t.request, t.aborted ? n(null) : r && r.status !== 404 ? n(r) : (i && i.resourceTiming && (t.resourceTiming = i.resourceTiming), this.map._refreshExpiredTiles && i && t.setExpiryData(i), t.loadVectorData(i, this.map.painter), e.cacheEntryPossiblyAdded(this.dispatcher), n(null), void (t.reloadCallback && (this.loadTile(t, t.reloadCallback), t.reloadCallback = null)));
17252
17252
  }
@@ -17284,7 +17284,7 @@ var h = /* @__PURE__ */ t(((e, t) => {
17284
17284
  ]));
17285
17285
  }
17286
17286
  load(t) {
17287
- this._loaded = !1, this.fire(new e.Event("dataloading", { dataType: "source" })), this._tileJSONRequest = ee(this._options, this.map._requestManager, null, null, (n, r) => {
17287
+ this._loaded = !1, this.fire(new e.Event("dataloading", { dataType: "source" })), this._tileJSONRequest = ee(this._options, this.map._requestManager, null, null, ((n, r) => {
17288
17288
  this._tileJSONRequest = null, this._loaded = !0, n ? this.fire(new e.ErrorEvent(n)) : r && (e.extend(this, r), r.bounds && (this.tileBounds = new F(r.bounds, this.minzoom, this.maxzoom)), e.postTurnstileEvent(r.tiles), this.fire(new e.Event("data", {
17289
17289
  dataType: "source",
17290
17290
  sourceDataType: "metadata"
@@ -17292,7 +17292,7 @@ var h = /* @__PURE__ */ t(((e, t) => {
17292
17292
  dataType: "source",
17293
17293
  sourceDataType: "content"
17294
17294
  }))), t && t(n);
17295
- });
17295
+ }));
17296
17296
  }
17297
17297
  loaded() {
17298
17298
  return this._loaded;
@@ -17301,7 +17301,7 @@ var h = /* @__PURE__ */ t(((e, t) => {
17301
17301
  this.map = e, this.load();
17302
17302
  }
17303
17303
  reload() {
17304
- this.cancelTileJSONRequest(), this.load(() => this.map.style._clearSource(this.id));
17304
+ this.cancelTileJSONRequest(), this.load((() => this.map.style._clearSource(this.id)));
17305
17305
  }
17306
17306
  setTiles(e) {
17307
17307
  return this._options.tiles = e, this.reload(), this;
@@ -17320,10 +17320,10 @@ var h = /* @__PURE__ */ t(((e, t) => {
17320
17320
  }
17321
17321
  loadTile(t, n) {
17322
17322
  let r = e.exported.devicePixelRatio >= 2, i = this.map._requestManager.normalizeTileURL(t.tileID.canonical.url(this.tiles, this.scheme), r, this.tileSize);
17323
- t.request = e.getImage(this.map._requestManager.transformRequest(i, e.ResourceType.Tile), (r, i, a, o) => (delete t.request, t.aborted ? (t.state = "unloaded", n(null)) : r ? (t.state = "errored", n(r)) : i ? (this.map._refreshExpiredTiles && t.setExpiryData({
17323
+ t.request = e.getImage(this.map._requestManager.transformRequest(i, e.ResourceType.Tile), ((r, i, a, o) => (delete t.request, t.aborted ? (t.state = "unloaded", n(null)) : r ? (t.state = "errored", n(r)) : i ? (this.map._refreshExpiredTiles && t.setExpiryData({
17324
17324
  cacheControl: a,
17325
17325
  expires: o
17326
- }), t.setTexture(i, this.map.painter), t.state = "loaded", e.cacheEntryPossiblyAdded(this.dispatcher), void n(null)) : n(null)));
17326
+ }), t.setTexture(i, this.map.painter), t.state = "loaded", e.cacheEntryPossiblyAdded(this.dispatcher), void n(null)) : n(null))));
17327
17327
  }
17328
17328
  static loadTileData(e, t, n) {
17329
17329
  e.setTexture(t, n);
@@ -17377,13 +17377,13 @@ var h = /* @__PURE__ */ t(((e, t) => {
17377
17377
  super(), this.id = e, this.dispatcher = n, this.coordinates = t.coordinates, this.type = "image", this.minzoom = 0, this.maxzoom = 22, this.tileSize = 512, this.tiles = {}, this._loaded = !1, this.setEventedParent(r), this.options = t, this._dirty = !1;
17378
17378
  }
17379
17379
  load(t, n) {
17380
- this._loaded = n || !1, this.fire(new e.Event("dataloading", { dataType: "source" })), this.url = this.options.url, this._imageRequest = e.getImage(this.map._requestManager.transformRequest(this.url, e.ResourceType.Image), (n, r) => {
17380
+ this._loaded = n || !1, this.fire(new e.Event("dataloading", { dataType: "source" })), this.url = this.options.url, this._imageRequest = e.getImage(this.map._requestManager.transformRequest(this.url, e.ResourceType.Image), ((n, r) => {
17381
17381
  if (this._imageRequest = null, this._loaded = !0, n) this.fire(new e.ErrorEvent(n));
17382
17382
  else if (r) {
17383
17383
  let { HTMLImageElement: n } = e.window;
17384
17384
  this.image = r instanceof n ? e.exported.getImageData(r) : r, this._dirty = !0, this.width = this.image.width, this.height = this.image.height, t && (this.coordinates = t), this._finishLoading();
17385
17385
  }
17386
- });
17386
+ }));
17387
17387
  }
17388
17388
  loaded() {
17389
17389
  return this._loaded;
@@ -17425,10 +17425,10 @@ var h = /* @__PURE__ */ t(((e, t) => {
17425
17425
  t.state !== "loaded" && (t.state = "loaded", t.texture = this.texture);
17426
17426
  }
17427
17427
  if (this._boundsArray) return;
17428
- let n = e.tileTransform(this.tileID, this.map.transform.projection), [r, i, a, o] = this.coordinates.map((t) => {
17428
+ let n = e.tileTransform(this.tileID, this.map.transform.projection), [r, i, a, o] = this.coordinates.map(((t) => {
17429
17429
  let r = n.projection.project(t[0], t[1]);
17430
17430
  return e.getTilePoint(n, r)._round();
17431
- });
17431
+ }));
17432
17432
  this.perspectiveTransform = function(t, n, r, i, a, o, s, c, l, u) {
17433
17433
  let d = He(0, 0, t, 0, 0, n, t, n), f = He(r, i, a, o, s, c, l, u);
17434
17434
  return e.multiply$1(f, e.adjoint(d, d), f), [f[6] / f[8] * t / e.EXTENT, f[7] / f[8] * n / e.EXTENT];
@@ -17554,7 +17554,7 @@ var h = /* @__PURE__ */ t(((e, t) => {
17554
17554
  if (this._pendingLoad) return void (this._coalesce = !0);
17555
17555
  this.fire(new e.Event("dataloading", { dataType: "source" })), this._loaded = !1;
17556
17556
  let t = e.extend({}, this.workerOptions), n = this._data;
17557
- typeof n == "string" ? (t.request = this.map._requestManager.transformRequest(e.exported.resolveURL(n), e.ResourceType.Source), t.request.collectResourceTiming = this._collectResourceTiming) : t.data = JSON.stringify(n), this._pendingLoad = this.actor.send(`${this.type}.loadData`, t, (t, n) => {
17557
+ typeof n == "string" ? (t.request = this.map._requestManager.transformRequest(e.exported.resolveURL(n), e.ResourceType.Source), t.request.collectResourceTiming = this._collectResourceTiming) : t.data = JSON.stringify(n), this._pendingLoad = this.actor.send(`${this.type}.loadData`, t, ((t, n) => {
17558
17558
  if (this._loaded = !0, this._pendingLoad = null, t) this.fire(new e.ErrorEvent(t));
17559
17559
  else {
17560
17560
  let t = {
@@ -17564,7 +17564,7 @@ var h = /* @__PURE__ */ t(((e, t) => {
17564
17564
  this._collectResourceTiming && n && n.resourceTiming && n.resourceTiming[this.id] && (t.resourceTiming = n.resourceTiming[this.id]), this.fire(new e.Event("data", t)), this._metadataFired = !0;
17565
17565
  }
17566
17566
  this._coalesce && (this._updateWorkerData(), this._coalesce = !1);
17567
- });
17567
+ }));
17568
17568
  }
17569
17569
  loaded() {
17570
17570
  return this._loaded;
@@ -17583,7 +17583,7 @@ var h = /* @__PURE__ */ t(((e, t) => {
17583
17583
  pixelRatio: e.exported.devicePixelRatio,
17584
17584
  showCollisionBoxes: this.map.showCollisionBoxes,
17585
17585
  promoteId: this.promoteId
17586
- }, (e, i) => (delete t.request, t.unloadVectorData(), t.aborted ? n(null) : e ? n(e) : (t.loadVectorData(i, this.map.painter, r === "reloadTile"), n(null))), void 0, r === "loadTile");
17586
+ }, ((e, i) => (delete t.request, t.unloadVectorData(), t.aborted ? n(null) : e ? n(e) : (t.loadVectorData(i, this.map.painter, r === "reloadTile"), n(null)))), void 0, r === "loadTile");
17587
17587
  }
17588
17588
  abortTile(e) {
17589
17589
  e.request && (e.request.cancel(), delete e.request), e.aborted = !0;
@@ -17617,11 +17617,11 @@ var h = /* @__PURE__ */ t(((e, t) => {
17617
17617
  let t = this.options;
17618
17618
  this.urls = [];
17619
17619
  for (let n of t.urls) this.urls.push(this.map._requestManager.transformRequest(n, e.ResourceType.Source).url);
17620
- e.getVideo(this.urls, (t, n) => {
17621
- this._loaded = !0, t ? this.fire(new e.ErrorEvent(t)) : n && (this.video = n, this.video.loop = !0, this.video.setAttribute("playsinline", ""), this.video.addEventListener("playing", () => {
17620
+ e.getVideo(this.urls, ((t, n) => {
17621
+ this._loaded = !0, t ? this.fire(new e.ErrorEvent(t)) : n && (this.video = n, this.video.loop = !0, this.video.setAttribute("playsinline", ""), this.video.addEventListener("playing", (() => {
17622
17622
  this.map.triggerRepaint();
17623
- }), this.map && this.video.play(), this._finishLoading());
17624
- });
17623
+ })), this.map && this.video.play(), this._finishLoading());
17624
+ }));
17625
17625
  }
17626
17626
  pause() {
17627
17627
  this.video && this.video.pause();
@@ -17660,7 +17660,7 @@ var h = /* @__PURE__ */ t(((e, t) => {
17660
17660
  image: Ue,
17661
17661
  canvas: class extends Ue {
17662
17662
  constructor(t, n, r, i) {
17663
- super(t, n, r, i), n.coordinates ? Array.isArray(n.coordinates) && n.coordinates.length === 4 && !n.coordinates.some((e) => !Array.isArray(e) || e.length !== 2 || e.some((e) => typeof e != "number")) || this.fire(new e.ErrorEvent(new e.ValidationError(`sources.${t}`, null, "\"coordinates\" property must be an array of 4 longitude/latitude array pairs"))) : this.fire(new e.ErrorEvent(new e.ValidationError(`sources.${t}`, null, "missing required property \"coordinates\""))), n.animate && typeof n.animate != "boolean" && this.fire(new e.ErrorEvent(new e.ValidationError(`sources.${t}`, null, "optional \"animate\" property must be a boolean value"))), n.canvas ? typeof n.canvas == "string" || n.canvas instanceof e.window.HTMLCanvasElement || this.fire(new e.ErrorEvent(new e.ValidationError(`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 e.ErrorEvent(new e.ValidationError(`sources.${t}`, null, "missing required property \"canvas\""))), this.options = n, this.animate = n.animate === void 0 || n.animate;
17663
+ super(t, n, r, i), n.coordinates ? Array.isArray(n.coordinates) && n.coordinates.length === 4 && !n.coordinates.some(((e) => !Array.isArray(e) || e.length !== 2 || e.some(((e) => typeof e != "number")))) || this.fire(new e.ErrorEvent(new e.ValidationError(`sources.${t}`, null, "\"coordinates\" property must be an array of 4 longitude/latitude array pairs"))) : this.fire(new e.ErrorEvent(new e.ValidationError(`sources.${t}`, null, "missing required property \"coordinates\""))), n.animate && typeof n.animate != "boolean" && this.fire(new e.ErrorEvent(new e.ValidationError(`sources.${t}`, null, "optional \"animate\" property must be a boolean value"))), n.canvas ? typeof n.canvas == "string" || n.canvas instanceof e.window.HTMLCanvasElement || this.fire(new e.ErrorEvent(new e.ValidationError(`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 e.ErrorEvent(new e.ValidationError(`sources.${t}`, null, "missing required property \"canvas\""))), this.options = n, this.animate = n.animate === void 0 || n.animate;
17664
17664
  }
17665
17665
  load() {
17666
17666
  this._loaded = !0, this.canvas || (this.canvas = this.options.canvas instanceof e.window.HTMLCanvasElement ? this.options.canvas : e.window.document.getElementById(this.options.canvas)), this.width = this.canvas.width, this.height = this.canvas.height, this._hasInvalidDimensions() ? this.fire(new e.ErrorEvent(/* @__PURE__ */ Error("Canvas dimensions cannot be less than or equal to zero."))) : (this.play = function() {
@@ -17764,9 +17764,9 @@ var h = /* @__PURE__ */ t(((e, t) => {
17764
17764
  }), t.state = "loaded", n(null)) : function(t) {
17765
17765
  return t instanceof e.window.ImageData || t instanceof e.window.HTMLCanvasElement || t instanceof e.window.ImageBitmap || t instanceof e.window.HTMLImageElement;
17766
17766
  }(r) ? (this.loadTileData(t, r), t.state = "loaded", void n(null)) : (t.state = "errored", n(/* @__PURE__ */ Error(`Can't infer data type for ${this.id}, only raster data supported at the moment`)));
17767
- }.bind(this)).catch((e) => {
17767
+ }.bind(this)).catch(((e) => {
17768
17768
  e.code !== 20 && (t.state = "errored", n(e));
17769
- }), t.request.cancel = () => o.abort();
17769
+ })), t.request.cancel = () => o.abort();
17770
17770
  }
17771
17771
  loadTileData(e, t) {
17772
17772
  Ve.loadTileData(e, t, this._map.painter);
@@ -17797,11 +17797,11 @@ var h = /* @__PURE__ */ t(((e, t) => {
17797
17797
  minzoom: this.minzoom,
17798
17798
  maxzoom: this.maxzoom,
17799
17799
  roundZoom: this.roundZoom
17800
- }).map((e) => ({
17800
+ }).map(((e) => ({
17801
17801
  x: e.canonical.x,
17802
17802
  y: e.canonical.y,
17803
17803
  z: e.canonical.z
17804
- }));
17804
+ })));
17805
17805
  }
17806
17806
  _clearTiles() {
17807
17807
  this._map.style._clearSource(this.id);
@@ -17855,14 +17855,14 @@ var h = /* @__PURE__ */ t(((e, t) => {
17855
17855
  }
17856
17856
  return t;
17857
17857
  }(l);
17858
- for (let t in u) u[t].forEach((t) => {
17858
+ for (let t in u) u[t].forEach(((t) => {
17859
17859
  let n = t.feature, r = n.layer;
17860
17860
  r && r.type !== "background" && r.type !== "sky" && (n.source = r.source, r["source-layer"] && (n.sourceLayer = r["source-layer"]), n.state = n.id === void 0 ? {} : e.getFeatureState(r["source-layer"], n.id));
17861
- });
17861
+ }));
17862
17862
  return u;
17863
17863
  }
17864
17864
  function Je(e, t) {
17865
- let n = e.getRenderableIds().map((t) => e.getTileByID(t)), r = [], i = {};
17865
+ let n = e.getRenderableIds().map(((t) => e.getTileByID(t))), r = [], i = {};
17866
17866
  for (let e = 0; e < n.length; e++) {
17867
17867
  let a = n[e], o = a.tileID.canonical.key;
17868
17868
  i[o] || (i[o] = !0, a.querySourceFeatures(r, t));
@@ -17886,9 +17886,9 @@ var h = /* @__PURE__ */ t(((e, t) => {
17886
17886
  return this.active[e] = !0, this.workers.slice();
17887
17887
  }
17888
17888
  release(e) {
17889
- delete this.active[e], this.numActive() === 0 && (this.workers.forEach((e) => {
17889
+ delete this.active[e], this.numActive() === 0 && (this.workers.forEach(((e) => {
17890
17890
  e.terminate();
17891
- }), this.workers = null);
17891
+ })), this.workers = null);
17892
17892
  }
17893
17893
  isPreloaded() {
17894
17894
  return !!this.active[Ze];
@@ -17904,9 +17904,9 @@ var h = /* @__PURE__ */ t(((e, t) => {
17904
17904
  function tt(t, n) {
17905
17905
  let r = {};
17906
17906
  for (let e in t) e !== "ref" && (r[e] = t[e]);
17907
- return e.refProperties.forEach((e) => {
17907
+ return e.refProperties.forEach(((e) => {
17908
17908
  e in n && (r[e] = n[e]);
17909
- }), r;
17909
+ })), r;
17910
17910
  }
17911
17911
  function nt(e) {
17912
17912
  e = e.slice();
@@ -18406,12 +18406,12 @@ var h = /* @__PURE__ */ t(((e, t) => {
18406
18406
  for (let e = c - 1; e >= 1; e--) d.push(o.path[e]);
18407
18407
  for (let e = 1; e < s.path.length; e++) d.push(s.path[e]);
18408
18408
  let h = 2.5 * t;
18409
- l && (d = d.map(([e, t, n], r) => (y && !w && (n = y(r < c - 1 ? o.tilePath[c - 1 - r] : s.tilePath[r - c + 2])[2]), gt(e, t, n, l))), d.some((e) => e[3] <= 0) && (d = []));
18409
+ l && (d = d.map((([e, t, n], r) => (y && !w && (n = y(r < c - 1 ? o.tilePath[c - 1 - r] : s.tilePath[r - c + 2])[2]), gt(e, t, n, l)))), d.some(((e) => e[3] <= 0)) && (d = []));
18410
18410
  let _ = [];
18411
18411
  if (d.length > 0) {
18412
18412
  let t = Infinity, n = -Infinity, a = Infinity, o = -Infinity;
18413
18413
  for (let e of d) t = Math.min(t, e[0]), a = Math.min(a, e[1]), n = Math.max(n, e[0]), o = Math.max(o, e[1]);
18414
- n >= r.x && t <= i.x && o >= r.y && a <= i.y && (_ = [d.map((t) => new e.Point(t[0], t[1]))], (t < r.x || n > i.x || a < r.y || o > i.y) && (_ = e.clipLine(_, r.x, r.y, i.x, i.y)));
18414
+ n >= r.x && t <= i.x && o >= r.y && a <= i.y && (_ = [d.map(((t) => new e.Point(t[0], t[1])))], (t < r.x || n > i.x || a < r.y || o > i.y) && (_ = e.clipLine(_, r.x, r.y, i.x, i.y)));
18415
18415
  }
18416
18416
  for (let e of _) {
18417
18417
  a.reset(e, .25 * t);
@@ -18715,7 +18715,7 @@ var h = /* @__PURE__ */ t(((e, t) => {
18715
18715
  let c = o.get("text-variable-anchor");
18716
18716
  if (this.prevPlacement && this.prevPlacement.variableOffsets[w]) {
18717
18717
  let e = this.prevPlacement.variableOffsets[w];
18718
- c.indexOf(e.anchor) > 0 && (c = c.filter((t) => t !== e.anchor), c.unshift(e.anchor));
18718
+ c.indexOf(e.anchor) > 0 && (c = c.filter(((t) => t !== e.anchor)), c.unshift(e.anchor));
18719
18719
  }
18720
18720
  let l = (e, n, r) => {
18721
18721
  let o = a.getSymbolInstanceTextSize(m, t, this.transform.zoom, i), l = (e.x2 - e.x1) * o + 2 * e.padding, u = (e.y2 - e.y1) * o + 2 * e.padding, f = C && !b ? n : null;
@@ -18734,14 +18734,14 @@ var h = /* @__PURE__ */ t(((e, t) => {
18734
18734
  }
18735
18735
  return p;
18736
18736
  };
18737
- r(() => l(R, p.iconBox, e.WritingMode.horizontal), () => {
18737
+ r((() => l(R, p.iconBox, e.WritingMode.horizontal)), (() => {
18738
18738
  let t = p.verticalTextBox;
18739
18739
  return t && ie(t), a.allowVerticalPlacement && !(P && P.box && P.box.length) && D > 0 && t ? l(t, p.verticalIconBox, e.WritingMode.vertical) : {
18740
18740
  box: null,
18741
18741
  offscreen: null,
18742
18742
  occluded: null
18743
18743
  };
18744
- }), P && (O = P.box, A = P.offscreen, j = P.occluded);
18744
+ })), P && (O = P.box, A = P.offscreen, j = P.occluded);
18745
18745
  let u = n(!(!P || !P.box));
18746
18746
  if (!O && this.prevPlacement) {
18747
18747
  let e = this.prevPlacement.variableOffsets[w];
@@ -18752,14 +18752,14 @@ var h = /* @__PURE__ */ t(((e, t) => {
18752
18752
  let o = a.getSymbolInstanceTextSize(m, t, this.transform.zoom, i), c = this.collisionIndex.placeCollisionBox(a, o, n, new e.Point(0, 0), y, d, s, g.predicate);
18753
18753
  return c && c.box && c.box.length && (this.markUsedOrientation(a, r, t), this.placedOrientations[w] = r), c;
18754
18754
  };
18755
- r(() => o(R, e.WritingMode.horizontal), () => {
18755
+ r((() => o(R, e.WritingMode.horizontal)), (() => {
18756
18756
  let t = p.verticalTextBox;
18757
18757
  return a.allowVerticalPlacement && D > 0 && t ? (ie(t), o(t, e.WritingMode.vertical)) : {
18758
18758
  box: null,
18759
18759
  offscreen: null,
18760
18760
  occluded: null
18761
18761
  };
18762
- }), n(!!(P && P.box && P.box.length));
18762
+ })), n(!!(P && P.box && P.box.length));
18763
18763
  }
18764
18764
  }
18765
18765
  if (F = P, O = F && F.box && F.box.length > 0, A = F && F.offscreen, j = F && F.occluded, t.useRuntimeCollisionCircles) {
@@ -18912,7 +18912,7 @@ var h = /* @__PURE__ */ t(((e, t) => {
18912
18912
  continuePlacement(e, t, n, r, i) {
18913
18913
  let a = this._bucketParts;
18914
18914
  for (; this._currentTileIndex < e.length;) if (t.getBucketParts(a, r, e[this._currentTileIndex], this._sortAcrossTiles), this._currentTileIndex++, i()) return !0;
18915
- for (this._sortAcrossTiles && (this._sortAcrossTiles = !1, a.sort((e, t) => e.sortKey - t.sortKey)); this._currentPartIndex < a.length;) {
18915
+ for (this._sortAcrossTiles && (this._sortAcrossTiles = !1, a.sort(((e, t) => e.sortKey - t.sortKey))); this._currentPartIndex < a.length;) {
18916
18916
  let e = a[this._currentPartIndex];
18917
18917
  if (t.placeLayerBucketPart(e, this._seenCrossTileIDs, n, e.symbolInstanceStart === 0), this._currentPartIndex++, i()) return !0;
18918
18918
  }
@@ -19050,13 +19050,13 @@ var h = /* @__PURE__ */ t(((e, t) => {
19050
19050
  }
19051
19051
  pruneUnusedLayers(e) {
19052
19052
  let t = {};
19053
- e.forEach((e) => {
19053
+ e.forEach(((e) => {
19054
19054
  t[e] = !0;
19055
- });
19055
+ }));
19056
19056
  for (let e in this.layerIndexes) t[e] || delete this.layerIndexes[e];
19057
19057
  }
19058
19058
  }
19059
- let Zt = (t, n) => e.emitValidationErrors(t, n && n.filter((e) => e.identifier !== "source.canvas")), Qt = e.pick(z, [
19059
+ let Zt = (t, n) => e.emitValidationErrors(t, n && n.filter(((e) => e.identifier !== "source.canvas"))), Qt = e.pick(z, [
19060
19060
  "addLayer",
19061
19061
  "removeLayer",
19062
19062
  "setPaintProperty",
@@ -19091,38 +19091,38 @@ var h = /* @__PURE__ */ t(((e, t) => {
19091
19091
  constructor(t, n = {}) {
19092
19092
  super(), this.map = t, this.dispatcher = new k(et(), this), this.imageManager = new b(), this.imageManager.setEventedParent(this), this.glyphManager = new e.GlyphManager(t._requestManager, n.localFontFamily ? e.LocalGlyphMode.all : n.localIdeographFontFamily ? e.LocalGlyphMode.ideographs : e.LocalGlyphMode.none, n.localFontFamily || n.localIdeographFontFamily), this.crossTileSymbolIndex = new Xt(), this._layers = {}, this._num3DLayers = 0, this._numSymbolLayers = 0, this._numCircleLayers = 0, this._serializedLayers = {}, this._sourceCaches = {}, this._otherSourceCaches = {}, this._symbolSourceCaches = {}, this._loaded = !1, this._availableImages = [], this._order = [], this._drapedFirstOrder = [], this._markersNeedUpdate = !1, this._resetUpdates(), this.dispatcher.broadcast("setReferrer", e.getReferrer());
19093
19093
  let r = this;
19094
- this._rtlTextPluginCallback = nn.registerForPluginStateChange((t) => {
19094
+ this._rtlTextPluginCallback = nn.registerForPluginStateChange(((t) => {
19095
19095
  r.dispatcher.broadcast("syncRTLPluginState", {
19096
19096
  pluginStatus: t.pluginStatus,
19097
19097
  pluginURL: t.pluginURL
19098
- }, (t, n) => {
19099
- if (e.triggerPluginCompletionEvent(t), n && n.every((e) => e)) for (let e in r._sourceCaches) {
19098
+ }, ((t, n) => {
19099
+ if (e.triggerPluginCompletionEvent(t), n && n.every(((e) => e))) for (let e in r._sourceCaches) {
19100
19100
  let t = r._sourceCaches[e], n = t.getSource().type;
19101
19101
  n !== "vector" && n !== "geojson" || t.reload();
19102
19102
  }
19103
- });
19104
- }), this.on("data", (e) => {
19103
+ }));
19104
+ })), this.on("data", ((e) => {
19105
19105
  if (e.dataType !== "source" || e.sourceDataType !== "metadata") return;
19106
19106
  let t = this.getSource(e.sourceId);
19107
19107
  if (t && t.vectorLayerIds) for (let e in this._layers) {
19108
19108
  let n = this._layers[e];
19109
19109
  n.source === t.id && this._validateLayer(n);
19110
19110
  }
19111
- });
19111
+ }));
19112
19112
  }
19113
19113
  loadURL(t, n = {}) {
19114
19114
  this.fire(new e.Event("dataloading", { dataType: "style" }));
19115
19115
  let r = typeof n.validate == "boolean" ? n.validate : !e.isMapboxURL(t);
19116
19116
  t = this.map._requestManager.normalizeStyleURL(t, n.accessToken);
19117
19117
  let i = this.map._requestManager.transformRequest(t, e.ResourceType.Style);
19118
- this._request = e.getJSON(i, (t, n) => {
19118
+ this._request = e.getJSON(i, ((t, n) => {
19119
19119
  this._request = null, t ? this.fire(new e.ErrorEvent(t)) : n && this._load(n, r);
19120
- });
19120
+ }));
19121
19121
  }
19122
19122
  loadJSON(t, n = {}) {
19123
- this.fire(new e.Event("dataloading", { dataType: "style" })), this._request = e.exported.frame(() => {
19123
+ this.fire(new e.Event("dataloading", { dataType: "style" })), this._request = e.exported.frame((() => {
19124
19124
  this._request = null, this._load(t, !1 !== n.validate);
19125
- });
19125
+ }));
19126
19126
  }
19127
19127
  loadEmpty() {
19128
19128
  this.fire(new e.Event("dataloading", { dataType: "style" })), this._load(en, !1);
@@ -19137,7 +19137,7 @@ var h = /* @__PURE__ */ t(((e, t) => {
19137
19137
  for (let e in t.sources) this.addSource(e, t.sources[e], { validate: !1 });
19138
19138
  this._changed = !1, t.sprite ? this._loadSprite(t.sprite) : (this.imageManager.setLoaded(!0), this.dispatcher.broadcast("spriteLoaded", !0)), this.glyphManager.setURL(t.glyphs);
19139
19139
  let r = nt(this.stylesheet.layers);
19140
- this._order = r.map((e) => e.id), this._layers = {}, this._serializedLayers = {};
19140
+ this._order = r.map(((e) => e.id)), this._layers = {}, this._serializedLayers = {};
19141
19141
  for (let t of r) {
19142
19142
  let n = e.createStyleLayer(t);
19143
19143
  n.setEventedParent(this, { layer: { id: n.id } }), this._layers[n.id] = n, this._serializedLayers[n.id] = n.serialize(), this._updateLayerCount(n, !0);
@@ -19158,11 +19158,11 @@ var h = /* @__PURE__ */ t(((e, t) => {
19158
19158
  }
19159
19159
  _loadSprite(t) {
19160
19160
  this._spriteRequest = function(t, n, r) {
19161
- let i, a, o, s = e.exported.devicePixelRatio > 1 ? "@2x" : "", c = e.getJSON(n.transformRequest(n.normalizeSpriteURL(t, s, ".json"), e.ResourceType.SpriteJSON), (e, t) => {
19161
+ let i, a, o, s = e.exported.devicePixelRatio > 1 ? "@2x" : "", c = e.getJSON(n.transformRequest(n.normalizeSpriteURL(t, s, ".json"), e.ResourceType.SpriteJSON), ((e, t) => {
19162
19162
  c = null, o || (o = e, i = t, u());
19163
- }), l = e.getImage(n.transformRequest(n.normalizeSpriteURL(t, s, ".png"), e.ResourceType.SpriteImage), (e, t) => {
19163
+ })), l = e.getImage(n.transformRequest(n.normalizeSpriteURL(t, s, ".png"), e.ResourceType.SpriteImage), ((e, t) => {
19164
19164
  l = null, o || (o = e, a = t, u());
19165
- });
19165
+ }));
19166
19166
  function u() {
19167
19167
  if (o) r(o);
19168
19168
  else if (i && a) {
@@ -19196,11 +19196,11 @@ var h = /* @__PURE__ */ t(((e, t) => {
19196
19196
  return { cancel() {
19197
19197
  c && (c.cancel(), c = null), l && (l.cancel(), l = null);
19198
19198
  } };
19199
- }(t, this.map._requestManager, (t, n) => {
19199
+ }(t, this.map._requestManager, ((t, n) => {
19200
19200
  if (this._spriteRequest = null, t) this.fire(new e.ErrorEvent(t));
19201
19201
  else if (n) for (let e in n) this.imageManager.addImage(e, n[e]);
19202
19202
  this.imageManager.setLoaded(!0), this._availableImages = this.imageManager.listImages(), this.dispatcher.broadcast("setImages", this._availableImages), this.dispatcher.broadcast("spriteLoaded", !0), this.fire(new e.Event("data", { dataType: "style" }));
19203
- });
19203
+ }));
19204
19204
  }
19205
19205
  _validateLayer(t) {
19206
19206
  let n = this.getSource(t.source);
@@ -19354,12 +19354,12 @@ var h = /* @__PURE__ */ t(((e, t) => {
19354
19354
  }
19355
19355
  })(e.sources, n.sources, a, i);
19356
19356
  let o = [];
19357
- e.layers && e.layers.forEach((e) => {
19357
+ e.layers && e.layers.forEach(((e) => {
19358
19358
  e.source && i[e.source] ? r.push({
19359
19359
  command: z.removeLayer,
19360
19360
  args: [e.id]
19361
19361
  }) : o.push(e);
19362
- });
19362
+ }));
19363
19363
  let s = e.terrain;
19364
19364
  s && i[s.source] && (r.push({
19365
19365
  command: z.setTerrain,
@@ -19423,13 +19423,13 @@ var h = /* @__PURE__ */ t(((e, t) => {
19423
19423
  }];
19424
19424
  }
19425
19425
  return r;
19426
- }(this.serialize(), n).filter((e) => !(e.command in $t));
19426
+ }(this.serialize(), n).filter(((e) => !(e.command in $t)));
19427
19427
  if (r.length === 0) return !1;
19428
- let i = r.filter((e) => !(e.command in Qt));
19429
- if (i.length > 0) throw Error(`Unimplemented: ${i.map((e) => e.command).join(", ")}.`);
19430
- return r.forEach((e) => {
19428
+ let i = r.filter(((e) => !(e.command in Qt)));
19429
+ if (i.length > 0) throw Error(`Unimplemented: ${i.map(((e) => e.command)).join(", ")}.`);
19430
+ return r.forEach(((e) => {
19431
19431
  e.command !== "setTransition" && e.command !== "setProjection" && this[e.command].apply(this, e.args);
19432
- }), this.stylesheet = n, this._updateMapProjection(), !0;
19432
+ })), this.stylesheet = n, this._updateMapProjection(), !0;
19433
19433
  }
19434
19434
  addImage(t, n) {
19435
19435
  return this.getImage(t) ? this.fire(new e.ErrorEvent(/* @__PURE__ */ Error("An image with this name already exists."))) : (this.imageManager.addImage(t, n), this._afterImageUpdated(t), this);
@@ -19461,11 +19461,11 @@ var h = /* @__PURE__ */ t(((e, t) => {
19461
19461
  ].indexOf(n.type) >= 0 && this._validate(e.validateSource, `sources.${t}`, n, null, r)) return;
19462
19462
  this.map && this.map._collectResourceTiming && (n.collectResourceTiming = !0);
19463
19463
  let i = Ge(t, n, this.dispatcher, this);
19464
- i.setEventedParent(this, () => ({
19464
+ i.setEventedParent(this, (() => ({
19465
19465
  isSourceLoaded: this._isSourceCacheLoaded(t),
19466
19466
  source: i.serialize(),
19467
19467
  sourceId: t
19468
- }));
19468
+ })));
19469
19469
  let a = (n) => {
19470
19470
  let r = (n ? "symbol:" : "other:") + t, a = this._sourceCaches[r] = new e.SourceCache(r, i, n);
19471
19471
  (n ? this._symbolSourceCaches : this._otherSourceCaches)[t] = a, a.style = this, a.onAdd(this.map);
@@ -19642,7 +19642,7 @@ var h = /* @__PURE__ */ t(((e, t) => {
19642
19642
  projection: this.stylesheet.projection,
19643
19643
  sources: t,
19644
19644
  layers: this._serializeLayers(this._order)
19645
- }, (e) => e !== void 0);
19645
+ }, ((e) => e !== void 0));
19646
19646
  }
19647
19647
  _updateLayer(e) {
19648
19648
  this._updatedLayers[e.id] = !0;
@@ -19661,7 +19661,7 @@ var h = /* @__PURE__ */ t(((e, t) => {
19661
19661
  }
19662
19662
  }
19663
19663
  }
19664
- r.sort((e, t) => t.intersectionZ - e.intersectionZ);
19664
+ r.sort(((e, t) => t.intersectionZ - e.intersectionZ));
19665
19665
  let i = [];
19666
19666
  for (let a = this._order.length - 1; a >= 0; a--) {
19667
19667
  let o = this._order[a];
@@ -19690,10 +19690,10 @@ var h = /* @__PURE__ */ t(((e, t) => {
19690
19690
  }
19691
19691
  let a = [];
19692
19692
  n.availableImages = this._availableImages;
19693
- let o = n && n.layers ? n.layers.some((e) => {
19693
+ let o = n && n.layers ? n.layers.some(((e) => {
19694
19694
  let t = this.getLayer(e);
19695
19695
  return t && t.is3D();
19696
- }) : this.has3DLayers(), s = j.createFromScreenPoints(t, r);
19696
+ })) : this.has3DLayers(), s = j.createFromScreenPoints(t, r);
19697
19697
  for (let e in this._sourceCaches) {
19698
19698
  let t = this._sourceCaches[e].getSource().id;
19699
19699
  n.layers && !i[t] || a.push(qe(this._sourceCaches[e], this._layers, this._serializedLayers, s, n, r, o, !!this.map._showQueryGeometry));
@@ -19706,23 +19706,23 @@ var h = /* @__PURE__ */ t(((e, t) => {
19706
19706
  let r = n.featureIndex.lookupSymbolFeatures(c[n.bucketInstanceId], t, n.bucketIndex, n.sourceLayerIndex, i.filter, i.layers, i.availableImages, e);
19707
19707
  for (let e in r) {
19708
19708
  let t = s[e] = s[e] || [], i = r[e];
19709
- i.sort((e, t) => {
19709
+ i.sort(((e, t) => {
19710
19710
  let r = n.featureSortOrder;
19711
19711
  if (r) {
19712
19712
  let n = r.indexOf(e.featureIndex);
19713
19713
  return r.indexOf(t.featureIndex) - n;
19714
19714
  }
19715
19715
  return t.featureIndex - e.featureIndex;
19716
- });
19716
+ }));
19717
19717
  for (let e of i) t.push(e);
19718
19718
  }
19719
19719
  }
19720
- for (let t in s) s[t].forEach((r) => {
19720
+ for (let t in s) s[t].forEach(((r) => {
19721
19721
  let i = r.feature, a = n(e[t]);
19722
19722
  if (!a) return;
19723
19723
  let o = a.getFeatureState(i.layer["source-layer"], i.id);
19724
19724
  i.source = i.layer.source, i.layer["source-layer"] && (i.sourceLayer = i.layer["source-layer"]), i.state = o;
19725
- });
19725
+ }));
19726
19726
  return s;
19727
19727
  }(this._layers, this._serializedLayers, this._getLayerSourceCache.bind(this), s.screenGeometry, n, this.placement.collisionIndex, this.placement.retainedQueryData)), this._flattenAndSortRenderedFeatures(a);
19728
19728
  }
@@ -19796,9 +19796,9 @@ var h = /* @__PURE__ */ t(((e, t) => {
19796
19796
  t.updateTransitions(n);
19797
19797
  }
19798
19798
  _updateMarkersOpacity() {
19799
- this.map._markers.length !== 0 && this.map._requestDomTask(() => {
19799
+ this.map._markers.length !== 0 && this.map._requestDomTask((() => {
19800
19800
  for (let e of this.map._markers) e._evaluateOpacity();
19801
- });
19801
+ }));
19802
19802
  }
19803
19803
  getFog() {
19804
19804
  return this.fog ? this.fog.get() : null;
@@ -19825,7 +19825,7 @@ var h = /* @__PURE__ */ t(((e, t) => {
19825
19825
  }
19826
19826
  _updateDrapeFirstLayers() {
19827
19827
  if (!this.map._optimizeForTerrain || !this.terrain) return;
19828
- let e = this._order.filter((e) => this.isLayerDraped(this._layers[e])), t = this._order.filter((e) => !this.isLayerDraped(this._layers[e]));
19828
+ let e = this._order.filter(((e) => this.isLayerDraped(this._layers[e]))), t = this._order.filter(((e) => !this.isLayerDraped(this._layers[e])));
19829
19829
  this._drapedFirstOrder = [], this._drapedFirstOrder.push(...e), this._drapedFirstOrder.push(...t);
19830
19830
  }
19831
19831
  _createTerrain(e, t) {
@@ -19888,7 +19888,7 @@ var h = /* @__PURE__ */ t(((e, t) => {
19888
19888
  if (!c[n.source]) {
19889
19889
  let e = this._getLayerSourceCache(n);
19890
19890
  if (!e) continue;
19891
- c[n.source] = e.getRenderableIds(!0).map((t) => e.getTileByID(t)).sort((e, t) => t.tileID.overscaledZ - e.tileID.overscaledZ || (e.tileID.isLessThan(t.tileID) ? -1 : 1));
19891
+ c[n.source] = e.getRenderableIds(!0).map(((t) => e.getTileByID(t))).sort(((e, t) => t.tileID.overscaledZ - e.tileID.overscaledZ || (e.tileID.isLessThan(t.tileID) ? -1 : 1)));
19892
19892
  }
19893
19893
  let r = this.crossTileSymbolIndex.addLayer(n, c[n.source], t.center.lng, t.projection);
19894
19894
  o = o || r;
@@ -19927,7 +19927,7 @@ var h = /* @__PURE__ */ t(((e, t) => {
19927
19927
  }
19928
19928
  _isSourceCacheLoaded(t) {
19929
19929
  let n = this._getSourceCaches(t);
19930
- return n.length === 0 ? (this.fire(new e.ErrorEvent(/* @__PURE__ */ Error(`There is no source with ID '${t}'`))), !1) : n.every((e) => e.loaded());
19930
+ return n.length === 0 ? (this.fire(new e.ErrorEvent(/* @__PURE__ */ Error(`There is no source with ID '${t}'`))), !1) : n.every(((e) => e.loaded()));
19931
19931
  }
19932
19932
  has3DLayers() {
19933
19933
  return this._num3DLayers > 0;
@@ -19997,11 +19997,11 @@ var h = /* @__PURE__ */ t(((e, t) => {
19997
19997
  function G(e, t) {
19998
19998
  let n = /#pragma mapbox: ([\w]+) ([\w]+) ([\w]+) ([\w]+)/g, r = t.match(/attribute (highp |mediump |lowp )?([\w]+) ([\w]+)/g), i = {}, a = [...dn];
19999
19999
  return gn(e, a), gn(t, a), {
20000
- fragmentSource: e = e.replace(n, (e, t, n, r, a) => (i[a] = !0, t === "define" ? `\n#ifndef HAS_UNIFORM_u_${a}\nvarying ${n} ${r} ${a};\n#else\nuniform ${n} ${r} u_${a};\n#endif\n` : `\n#ifdef HAS_UNIFORM_u_${a}\n ${n} ${r} ${a} = u_${a};\n#endif\n`)),
20001
- vertexSource: t = t.replace(n, (e, t, n, r, a) => {
20000
+ fragmentSource: e = e.replace(n, ((e, t, n, r, a) => (i[a] = !0, t === "define" ? `\n#ifndef HAS_UNIFORM_u_${a}\nvarying ${n} ${r} ${a};\n#else\nuniform ${n} ${r} u_${a};\n#endif\n` : `\n#ifdef HAS_UNIFORM_u_${a}\n ${n} ${r} ${a} = u_${a};\n#endif\n`))),
20001
+ vertexSource: t = t.replace(n, ((e, t, n, r, a) => {
20002
20002
  let o = r === "float" ? "vec2" : "vec4", s = a.match(/color/) ? "color" : o;
20003
20003
  return i[a] ? t === "define" ? `\n#ifndef HAS_UNIFORM_u_${a}\nuniform lowp float u_${a}_t;\nattribute ${n} ${o} a_${a};\nvarying ${n} ${r} ${a};\n#else\nuniform ${n} ${r} u_${a};\n#endif\n` : s === "vec4" ? `\n#ifndef HAS_UNIFORM_u_${a}\n ${a} = a_${a};\n#else\n ${n} ${r} ${a} = u_${a};\n#endif\n` : `\n#ifndef HAS_UNIFORM_u_${a}\n ${a} = unpack_mix_${s}(a_${a}, u_${a}_t);\n#else\n ${n} ${r} ${a} = u_${a};\n#endif\n` : t === "define" ? `\n#ifndef HAS_UNIFORM_u_${a}\nuniform lowp float u_${a}_t;\nattribute ${n} ${o} a_${a};\n#else\nuniform ${n} ${r} u_${a};\n#endif\n` : s === "vec4" ? `\n#ifndef HAS_UNIFORM_u_${a}\n ${n} ${r} ${a} = a_${a};\n#else\n ${n} ${r} ${a} = u_${a};\n#endif\n` : `\n#ifndef HAS_UNIFORM_u_${a}\n ${n} ${r} ${a} = unpack_mix_${s}(a_${a}, u_${a}_t);\n#else\n ${n} ${r} ${a} = u_${a};\n#endif\n`;
20004
- }),
20004
+ })),
20005
20005
  staticAttributes: r,
20006
20006
  usedDefines: a
20007
20007
  };
@@ -20244,13 +20244,13 @@ var h = /* @__PURE__ */ t(((e, t) => {
20244
20244
  maxzoom: this._source.maxzoom,
20245
20245
  roundZoom: this._source.roundZoom,
20246
20246
  reparseOverscaled: this._source.reparseOverscaled
20247
- }).reduce((n, r) => {
20247
+ }).reduce(((n, r) => {
20248
20248
  if (n[r.key] = "", !this._tiles[r.key]) {
20249
20249
  let n = new e.Tile(r, this._source.tileSize * r.overscaleFactor(), t.tileZoom);
20250
20250
  n.state = "loaded", this._tiles[r.key] = n;
20251
20251
  }
20252
20252
  return n;
20253
- }, {});
20253
+ }), {});
20254
20254
  for (let e in this._tiles) e in i || (this.freeFBO(e), this._tiles[e].unloadVectorData(), delete this._tiles[e]);
20255
20255
  }
20256
20256
  freeFBO(e) {
@@ -20261,7 +20261,7 @@ var h = /* @__PURE__ */ t(((e, t) => {
20261
20261
  }
20262
20262
  }
20263
20263
  deallocRenderCache() {
20264
- this.renderCache.forEach((e) => e.fb.destroy()), this.renderCache = [], this.renderCachePool = [], this.proxyCachedFBO = {};
20264
+ this.renderCache.forEach(((e) => e.fb.destroy())), this.renderCache = [], this.renderCachePool = [], this.proxyCachedFBO = {};
20265
20265
  }
20266
20266
  }
20267
20267
  class Pn extends e.OverscaledTileID {
@@ -20285,9 +20285,9 @@ var h = /* @__PURE__ */ t(((e, t) => {
20285
20285
  r.emplaceBack(n + 1, n, n + 131), r.emplaceBack(n + 131, n + 131 + 1, n + 1);
20286
20286
  };
20287
20287
  for (let e = 1; e < 129; e++) for (let t = 1; t < 129; t++) s(t, e);
20288
- return [0, 129].forEach((e) => {
20288
+ return [0, 129].forEach(((e) => {
20289
20289
  for (let t = 0; t < 130; t++) s(t, e), s(e, t);
20290
- }), [
20290
+ })), [
20291
20291
  n,
20292
20292
  r,
20293
20293
  32768
@@ -20301,9 +20301,9 @@ var h = /* @__PURE__ */ t(((e, t) => {
20301
20301
  }, 0, 255, s.KEEP, s.KEEP, s.REPLACE), this._previousZoom = t.transform.zoom, this.pool = [], this._findCoveringTileCache = {}, this._tilesDirty = {}, this.style = n, this._useVertexMorphing = !0, this._exaggeration = 1, this._mockSourceCache = new Mn(n.map);
20302
20302
  }
20303
20303
  set style(e) {
20304
- e.on("data", this._onStyleDataEvent.bind(this)), e.on("neworder", this._checkRenderCacheEfficiency.bind(this)), this._style = e, this._checkRenderCacheEfficiency(), this._style.map.on("moveend", () => {
20304
+ e.on("data", this._onStyleDataEvent.bind(this)), e.on("neworder", this._checkRenderCacheEfficiency.bind(this)), this._style = e, this._checkRenderCacheEfficiency(), this._style.map.on("moveend", (() => {
20305
20305
  this._clearLineLayersFromRenderCache();
20306
- });
20306
+ }));
20307
20307
  }
20308
20308
  update(t, n, r) {
20309
20309
  if (t && t.terrain) {
@@ -20335,7 +20335,7 @@ var h = /* @__PURE__ */ t(((e, t) => {
20335
20335
  if (this.enabled && (this.enabled = !1, this._sharedDepthStencil = void 0, this.proxySourceCache.deallocRenderCache(), this._style)) for (let e in this._style._sourceCaches) this._style._sourceCaches[e].usedForTerrain = !1;
20336
20336
  }
20337
20337
  destroy() {
20338
- this._disable(), this._emptyDEMTexture && this._emptyDEMTexture.destroy(), this._emptyDepthBufferTexture && this._emptyDepthBufferTexture.destroy(), this.pool.forEach((e) => e.fb.destroy()), this.pool = [], this._depthFBO && (this._depthFBO.destroy(), this._depthFBO = void 0, this._depthTexture = void 0);
20338
+ this._disable(), this._emptyDEMTexture && this._emptyDEMTexture.destroy(), this._emptyDepthBufferTexture && this._emptyDepthBufferTexture.destroy(), this.pool.forEach(((e) => e.fb.destroy())), this.pool = [], this._depthFBO && (this._depthFBO.destroy(), this._depthFBO = void 0, this._depthTexture = void 0);
20339
20339
  }
20340
20340
  _source() {
20341
20341
  return this.enabled ? this.sourceCache : null;
@@ -20361,22 +20361,22 @@ var h = /* @__PURE__ */ t(((e, t) => {
20361
20361
  this.prevTerrainTileForTile = this.terrainTileForTile;
20362
20362
  let n = this.proxySourceCache, r = this.painter.transform;
20363
20363
  this._initializing && (this._initializing = r._centerAltitude === 0 && this.getAtPointOrZero(e.MercatorCoordinate.fromLngLat(r.center), -1) === -1, this._emptyDEMTextureDirty = !this._initializing);
20364
- let i = this.proxyCoords = n.getIds().map((e) => {
20364
+ let i = this.proxyCoords = n.getIds().map(((e) => {
20365
20365
  let t = n.getTileByID(e).tileID;
20366
20366
  return t.projMatrix = r.calculateProjMatrix(t.toUnwrapped()), t;
20367
- });
20367
+ }));
20368
20368
  (function(t, n) {
20369
20369
  let r = n.transform.pointCoordinate(n.transform.getCameraPoint()), i = new e.Point(r.x, r.y);
20370
- t.sort((t, n) => {
20370
+ t.sort(((t, n) => {
20371
20371
  if (n.overscaledZ - t.overscaledZ) return n.overscaledZ - t.overscaledZ;
20372
20372
  let r = new e.Point(t.canonical.x + (1 << t.canonical.z) * t.wrap, t.canonical.y), a = new e.Point(n.canonical.x + (1 << n.canonical.z) * n.wrap, n.canonical.y), o = i.mult(1 << t.canonical.z);
20373
20373
  return o.x -= .5, o.y -= .5, o.distSqr(r) - o.distSqr(a);
20374
- });
20374
+ }));
20375
20375
  })(i, this.painter), this._previousZoom = r.zoom;
20376
20376
  let a = this.proxyToSource || {};
20377
- this.proxyToSource = {}, i.forEach((e) => {
20377
+ this.proxyToSource = {}, i.forEach(((e) => {
20378
20378
  this.proxyToSource[e.key] = {};
20379
- }), this.terrainTileForTile = {};
20379
+ })), this.terrainTileForTile = {};
20380
20380
  let o = this._style._sourceCaches;
20381
20381
  for (let e in o) {
20382
20382
  let n = o[e];
@@ -20384,7 +20384,7 @@ var h = /* @__PURE__ */ t(((e, t) => {
20384
20384
  let r = t[e];
20385
20385
  n.getSource().reparseOverscaled && this._assignTerrainTiles(r);
20386
20386
  }
20387
- this.proxiedCoords[n.id] = i.map((e) => new Pn(e, e.key, this.orthoMatrix)), this._assignTerrainTiles(i), this._prepareDEMTextures(), this._setupDrapedRenderBatches(), this._initFBOPool(), this._setupRenderCache(a), this.renderingToTexture = !1, this._updateTimestamp = e.exported.now();
20387
+ this.proxiedCoords[n.id] = i.map(((e) => new Pn(e, e.key, this.orthoMatrix))), this._assignTerrainTiles(i), this._prepareDEMTextures(), this._setupDrapedRenderBatches(), this._initFBOPool(), this._setupRenderCache(a), this.renderingToTexture = !1, this._updateTimestamp = e.exported.now();
20388
20388
  let s = {};
20389
20389
  this._visibleDemTiles = [];
20390
20390
  for (let e of this.proxyCoords) {
@@ -20395,11 +20395,11 @@ var h = /* @__PURE__ */ t(((e, t) => {
20395
20395
  }
20396
20396
  }
20397
20397
  _assignTerrainTiles(e) {
20398
- this._initializing || e.forEach((e) => {
20398
+ this._initializing || e.forEach(((e) => {
20399
20399
  if (this.terrainTileForTile[e.key]) return;
20400
20400
  let t = this._findTileCoveringTileID(e, this.sourceCache);
20401
20401
  t && (this.terrainTileForTile[e.key] = t);
20402
- });
20402
+ }));
20403
20403
  }
20404
20404
  _prepareDEMTextures() {
20405
20405
  let e = this.painter.context, t = e.gl;
@@ -20428,11 +20428,11 @@ var h = /* @__PURE__ */ t(((e, t) => {
20428
20428
  return this._emptyDepthBufferTexture;
20429
20429
  }
20430
20430
  _getLoadedAreaMinimum() {
20431
- let e = 0, t = this._visibleDemTiles.reduce((t, n) => {
20431
+ let e = 0, t = this._visibleDemTiles.reduce(((t, n) => {
20432
20432
  if (!n.dem) return t;
20433
20433
  let r = n.dem.tree.minimums[0];
20434
20434
  return r > 0 && e++, t + r;
20435
- }, 0);
20435
+ }), 0);
20436
20436
  return e ? t / e : 0;
20437
20437
  }
20438
20438
  _updateEmptyDEMTexture() {
@@ -20499,7 +20499,7 @@ var h = /* @__PURE__ */ t(((e, t) => {
20499
20499
  }, m = t.colorModeForRenderPass(), h = new e.DepthMode(s.LEQUAL, e.DepthMode.ReadWrite, t.depthRangeFor3D);
20500
20500
  En.update(a);
20501
20501
  let g = e.calculateGlobeMercatorMatrix(d), _ = [e.mercatorXfromLng(d.center.lng), e.mercatorYfromLat(d.center.lat)], v = u ? [!1, !0] : [!1], y = t.globeSharedBuffers, b = [d.width * e.exported.devicePixelRatio, d.height * e.exported.devicePixelRatio], x = Float32Array.from(d.globeMatrix), S = { useDenormalizedUpVectorScale: !0 };
20502
- if (v.forEach((u) => {
20502
+ if (v.forEach(((u) => {
20503
20503
  let d = t.transform, f = On(d.zoom) * n.exaggeration();
20504
20504
  l = -1;
20505
20505
  let v = u ? s.LINES : s.TRIANGLES;
@@ -20518,7 +20518,7 @@ var h = /* @__PURE__ */ t(((e, t) => {
20518
20518
  c.draw(o, v, h, C, m, e.CullFaceMode.backCCW, M, "globe_raster", n, r, i);
20519
20519
  }
20520
20520
  }
20521
- }), y) {
20521
+ })), y) {
20522
20522
  let a = ["GLOBE_POLES", "PROJECTION_GLOBE_VIEW"];
20523
20523
  f && a.push("CUSTOM_ANTIALIASING"), c = t.useProgram("globeRaster", null, a);
20524
20524
  for (let a of i) {
@@ -20544,7 +20544,7 @@ var h = /* @__PURE__ */ t(((e, t) => {
20544
20544
  }, f = t.colorModeForRenderPass(), p = new e.DepthMode(s.LEQUAL, e.DepthMode.ReadWrite, t.depthRangeFor3D);
20545
20545
  En.update(a);
20546
20546
  let m = t.transform, h = On(m.zoom) * n.exaggeration();
20547
- (u ? [!1, !0] : [!1]).forEach((u) => {
20547
+ (u ? [!1, !0] : [!1]).forEach(((u) => {
20548
20548
  l = -1;
20549
20549
  let g = u ? s.LINES : s.TRIANGLES, [_, v] = u ? n.getWirefameBuffer() : [n.gridIndexBuffer, n.gridSegments];
20550
20550
  for (let l of i) {
@@ -20559,7 +20559,7 @@ var h = /* @__PURE__ */ t(((e, t) => {
20559
20559
  let T = Cn(l.projMatrix, kn(l.canonical, m.renderWorldCopies) ? h / 10 : h);
20560
20560
  d(C, u), n.setupElevationDraw(i, c, w), t.prepareDrawProgram(o, c, l.toUnwrapped()), c.draw(o, g, p, y, f, e.CullFaceMode.backCCW, T, "terrain_raster", n.gridBuffer, _, v);
20561
20561
  }
20562
- });
20562
+ }));
20563
20563
  }
20564
20564
  }(n, this, this.proxySourceCache, t, this._updateTimestamp), this.renderingToTexture = !0, n.gpuTimingDeferredRenderEnd(), t.splice(0, t.length));
20565
20565
  }
@@ -20616,13 +20616,13 @@ var h = /* @__PURE__ */ t(((e, t) => {
20616
20616
  }
20617
20617
  getMinElevationBelowMSL() {
20618
20618
  let e = 0;
20619
- return this._visibleDemTiles.filter((e) => e.dem).forEach((t) => {
20619
+ return this._visibleDemTiles.filter(((e) => e.dem)).forEach(((t) => {
20620
20620
  e = Math.min(e, t.dem.tree.minimums[0]);
20621
- }), e === 0 ? e : (e - 30) * this._exaggeration;
20621
+ })), e === 0 ? e : (e - 30) * this._exaggeration;
20622
20622
  }
20623
20623
  raycast(e, t, n) {
20624
20624
  if (!this._visibleDemTiles) return null;
20625
- let r = this._visibleDemTiles.filter((e) => e.dem).map((r) => {
20625
+ let r = this._visibleDemTiles.filter(((e) => e.dem)).map(((r) => {
20626
20626
  let i = r.tileID, a = 1 << i.overscaledZ, { x: o, y: s } = i.canonical, c = o / a, l = (o + 1) / a, u = s / a, d = (s + 1) / a;
20627
20627
  return {
20628
20628
  minx: c,
@@ -20632,8 +20632,8 @@ var h = /* @__PURE__ */ t(((e, t) => {
20632
20632
  t: r.dem.tree.raycastRoot(c, u, l, d, e, t, n),
20633
20633
  tile: r
20634
20634
  };
20635
- });
20636
- r.sort((e, t) => (e.t === null ? Number.MAX_VALUE : e.t) - (t.t === null ? Number.MAX_VALUE : t.t));
20635
+ }));
20636
+ r.sort(((e, t) => (e.t === null ? Number.MAX_VALUE : e.t) - (t.t === null ? Number.MAX_VALUE : t.t)));
20637
20637
  for (let i of r) {
20638
20638
  if (i.t == null) return null;
20639
20639
  let r = i.tile.dem.tree.raycast(i.minx, i.miny, i.maxx, i.maxy, e, t, n);
@@ -20663,10 +20663,10 @@ var h = /* @__PURE__ */ t(((e, t) => {
20663
20663
  _shouldDisableRenderCache() {
20664
20664
  if (this._style.light && this._style.light.hasTransition()) return !0;
20665
20665
  for (let e in this._style._sourceCaches) if (this._style._sourceCaches[e].hasTransition()) return !0;
20666
- return this._style.order.some((e) => {
20666
+ return this._style.order.some(((e) => {
20667
20667
  let t = this._style._layers[e], n = t.isHidden(this.painter.transform.zoom);
20668
20668
  return t.type === "custom" ? !n && t.shouldRedrape() : !n && t.hasTransition();
20669
- });
20669
+ }));
20670
20670
  }
20671
20671
  _clearLineLayersFromRenderCache() {
20672
20672
  let t = !1;
@@ -20746,7 +20746,7 @@ var h = /* @__PURE__ */ t(((e, t) => {
20746
20746
  let n = e[a.key], i = this.proxyToSource[a.key], o = 0;
20747
20747
  for (let e in i) {
20748
20748
  let t = i[e], a = n[e];
20749
- if (!a || a.length !== t.length || t.some((t, n) => t !== a[n] || r[e] && r[e].hasOwnProperty(t.key))) {
20749
+ if (!a || a.length !== t.length || t.some(((t, n) => t !== a[n] || r[e] && r[e].hasOwnProperty(t.key)))) {
20750
20750
  o = -1;
20751
20751
  break;
20752
20752
  }
@@ -20756,7 +20756,7 @@ var h = /* @__PURE__ */ t(((e, t) => {
20756
20756
  }
20757
20757
  }
20758
20758
  let i = [...this._drapedRenderBatches];
20759
- i.sort((e, t) => t.end - t.start - (e.end - e.start));
20759
+ i.sort(((e, t) => t.end - t.start - (e.end - e.start)));
20760
20760
  for (let e of i) for (let r of n) {
20761
20761
  if (t.proxyCachedFBO[r.key]) continue;
20762
20762
  let n = t.renderCachePool.pop();
@@ -20875,7 +20875,7 @@ var h = /* @__PURE__ */ t(((e, t) => {
20875
20875
  }
20876
20876
  _setupProxiedCoordsForImageSource(t, n, r) {
20877
20877
  if (!t.getSource().loaded()) return;
20878
- let i = this.proxiedCoords[t.id] = [], a = this.proxyCoords, o = t.getSource(), s = new e.Point(o.tileID.x, o.tileID.y)._div(1 << o.tileID.z), c = o.coordinates.map(e.MercatorCoordinate.fromLngLat).reduce((e, t) => (e.min.x = Math.min(e.min.x, t.x - s.x), e.min.y = Math.min(e.min.y, t.y - s.y), e.max.x = Math.max(e.max.x, t.x - s.x), e.max.y = Math.max(e.max.y, t.y - s.y), e), {
20878
+ let i = this.proxiedCoords[t.id] = [], a = this.proxyCoords, o = t.getSource(), s = new e.Point(o.tileID.x, o.tileID.y)._div(1 << o.tileID.z), c = o.coordinates.map(e.MercatorCoordinate.fromLngLat).reduce(((e, t) => (e.min.x = Math.min(e.min.x, t.x - s.x), e.min.y = Math.min(e.min.y, t.y - s.y), e.max.x = Math.max(e.max.x, t.x - s.x), e.max.y = Math.max(e.max.y, t.y - s.y), e)), {
20879
20879
  min: new e.Point(Number.MAX_VALUE, Number.MAX_VALUE),
20880
20880
  max: new e.Point(-Number.MAX_VALUE, -Number.MAX_VALUE)
20881
20881
  }), l = (t, n) => {
@@ -20895,7 +20895,7 @@ var h = /* @__PURE__ */ t(((e, t) => {
20895
20895
  _createProxiedId(t, n, r) {
20896
20896
  let i = this.orthoMatrix;
20897
20897
  if (r) {
20898
- let e = r.find((e) => e.key === n.tileID.key);
20898
+ let e = r.find(((e) => e.key === n.tileID.key));
20899
20899
  if (e) return e;
20900
20900
  }
20901
20901
  if (n.tileID.key !== t.key) {
@@ -20925,9 +20925,9 @@ var h = /* @__PURE__ */ t(((e, t) => {
20925
20925
  o.key !== t.key && (l.push(o.key), r = n.getTile(o));
20926
20926
  }
20927
20927
  let u = (e) => {
20928
- l.forEach((t) => {
20928
+ l.forEach(((t) => {
20929
20929
  i[t] = e;
20930
- }), l.length = 0;
20930
+ })), l.length = 0;
20931
20931
  };
20932
20932
  for (--s; s >= c && (!r || !r.hasData()); s--) {
20933
20933
  r && u(r.tileID.key);
@@ -20982,7 +20982,7 @@ var h = /* @__PURE__ */ t(((e, t) => {
20982
20982
  }
20983
20983
  return t;
20984
20984
  }(r.staticAttributes), l = i ? i.getBinderAttributes() : [], u = c.concat(l), d = i ? i.defines() : [];
20985
- d = d.concat(o.map((e) => `#define ${e}`));
20985
+ d = d.concat(o.map(((e) => `#define ${e}`)));
20986
20986
  let f = t.isWebGL2 ? "#version 300 es\n" : "", p = f + d.concat(t.extStandardDerivatives && f.length === 0 ? `#extension GL_OES_standard_derivatives : enable
20987
20987
  ${mn}` : mn, mn, pn, fn.fragmentSource, un.fragmentSource, r.fragmentSource).join("\n"), m = f + d.concat("\n#ifdef GL_ES\nprecision highp float;\n#else\n\n#if !defined(lowp)\n#define lowp\n#endif\n\n#if !defined(mediump)\n#define mediump\n#endif\n\n#if !defined(highp)\n#define highp\n#endif\n\n#endif", pn, fn.vertexSource, un.vertexSource, ln.vertexSource, r.vertexSource).join("\n"), h = s.createShader(s.FRAGMENT_SHADER);
20988
20988
  if (s.isContextLost()) return void (this.failedToCreate = !0);
@@ -21835,7 +21835,7 @@ ${mn}` : mn, mn, pn, fn.fragmentSource, un.fragmentSource, r.fragmentSource).joi
21835
21835
  state: ge
21836
21836
  });
21837
21837
  }
21838
- x && E.sort((e, t) => e.sortKey - t.sortKey);
21838
+ x && E.sort(((e, t) => e.sortKey - t.sortKey));
21839
21839
  for (let e of E) {
21840
21840
  let n = e.state;
21841
21841
  if (t.terrain && t.terrain.setupElevationDraw(n.tile, n.program, {
@@ -22135,7 +22135,7 @@ ${mn}` : mn, mn, pn, fn.fragmentSource, un.fragmentSource, r.fragmentSource).joi
22135
22135
  state: p
22136
22136
  });
22137
22137
  }
22138
- c && _.sort((e, t) => e.sortKey - t.sortKey);
22138
+ c && _.sort(((e, t) => e.sortKey - t.sortKey));
22139
22139
  let v = { useDepthForOcclusion: !h };
22140
22140
  for (let n of _) {
22141
22141
  let { programConfiguration: i, program: a, layoutVertexBuffer: o, globeExtVertexBuffer: s, indexBuffer: c, uniformValues: h, tile: g } = n.state, _ = n.segments;
@@ -22323,7 +22323,7 @@ ${mn}` : mn, mn, pn, fn.fragmentSource, un.fragmentSource, r.fragmentSource).joi
22323
22323
  let f = !d && a.a === 1 && o === 1 && t.opaquePassEnabledForLayer() ? "opaque" : "translucent";
22324
22324
  if (t.renderPass !== f) return;
22325
22325
  let p = e.StencilMode.disabled, m = t.depthModeForSublayer(0, f === "opaque" ? e.DepthMode.ReadWrite : e.DepthMode.ReadOnly), h = t.colorModeForRenderPass(), g = t.useProgram(d ? "backgroundPattern" : "background"), _, v = i;
22326
- v || (_ = t.getBackgroundTiles(), v = Object.values(_).map((e) => e.tileID)), d && (s.activeTexture.set(c.TEXTURE0), t.imageManager.bind(t.context));
22326
+ v || (_ = t.getBackgroundTiles(), v = Object.values(_).map(((e) => e.tileID))), d && (s.activeTexture.set(c.TEXTURE0), t.imageManager.bind(t.context));
22327
22327
  for (let f of v) {
22328
22328
  let v = f.toUnwrapped(), y = i ? f.projMatrix : t.transform.calculateProjMatrix(v);
22329
22329
  t.prepareDrawTile();
@@ -22541,7 +22541,7 @@ ${mn}` : mn, mn, pn, fn.fragmentSource, un.fragmentSource, r.fragmentSource).joi
22541
22541
  }, this._tileClippingMaskIDs[t.key], 0, n.KEEP, n.KEEP, n.REPLACE);
22542
22542
  }
22543
22543
  stencilConfigForOverlap(t) {
22544
- let n = this.context.gl, r = t.sort((e, t) => t.overscaledZ - e.overscaledZ), i = r[r.length - 1].overscaledZ, a = r[0].overscaledZ - i + 1;
22544
+ let n = this.context.gl, r = t.sort(((e, t) => t.overscaledZ - e.overscaledZ)), i = r[r.length - 1].overscaledZ, a = r[0].overscaledZ - i + 1;
22545
22545
  if (a > 1) {
22546
22546
  this.currentStencilSource = void 0, this.nextStencilID + a > 256 && this.clearStencil();
22547
22547
  let t = {};
@@ -22662,10 +22662,10 @@ ${mn}` : mn, mn, pn, fn.fragmentSource, un.fragmentSource, r.fragmentSource).joi
22662
22662
  }
22663
22663
  if (this.terrain && this.terrain.postRender(), this.options.showTileBoundaries || this.options.showQueryGeometry || this.options.showTileAABBs) {
22664
22664
  let n = null;
22665
- e.values(this.style._layers).forEach((e) => {
22665
+ e.values(this.style._layers).forEach(((e) => {
22666
22666
  let r = t._getLayerSourceCache(e);
22667
22667
  r && !e.isHidden(this.transform.zoom) && (!n || n.getSource().maxzoom < r.getSource().maxzoom) && (n = r);
22668
- }), n && this.options.showTileBoundaries && Lr.debug(this, n, n.getVisibleCoordinates());
22668
+ })), n && this.options.showTileBoundaries && Lr.debug(this, n, n.getVisibleCoordinates());
22669
22669
  }
22670
22670
  this.options.showPadding && function(e) {
22671
22671
  let t = e.transform.padding;
@@ -23423,7 +23423,7 @@ ${mn}` : mn, mn, pn, fn.fragmentSource, un.fragmentSource, r.fragmentSource).joi
23423
23423
  }
23424
23424
  if (this.fogCullDistSq) {
23425
23425
  let n = this.fogCullDistSq, r = this.horizonLineFromTop();
23426
- T = T.filter((i) => {
23426
+ T = T.filter(((i) => {
23427
23427
  let a = [
23428
23428
  0,
23429
23429
  0,
@@ -23453,9 +23453,9 @@ ${mn}` : mn, mn, pn, fn.fragmentSource, un.fragmentSource, r.fragmentSource).joi
23453
23453
  e.transformMat4(s, s, n), l = (1 - s[1]) * this.height * .5 < r;
23454
23454
  }
23455
23455
  return c < n || l;
23456
- });
23456
+ }));
23457
23457
  }
23458
- return T.sort((e, t) => e.distanceSq - t.distanceSq).map((e) => e.tileID);
23458
+ return T.sort(((e, t) => e.distanceSq - t.distanceSq)).map(((e) => e.tileID));
23459
23459
  }
23460
23460
  resize(e, t) {
23461
23461
  this.width = e, this.height = t, this.pixelsToGLUnits = [2 / e, -2 / t], this._constrain(), this._calcMatrices();
@@ -23616,13 +23616,13 @@ ${mn}` : mn, mn, pn, fn.fragmentSource, un.fragmentSource, r.fragmentSource).joi
23616
23616
  _getBoundsRectangularTerrain() {
23617
23617
  let e = this.elevation;
23618
23618
  if (!e.visibleDemTiles.length || e.isUsingMockSource()) return this._getBoundsRectangular(0, 0);
23619
- let t = e.visibleDemTiles.reduce((e, t) => {
23619
+ let t = e.visibleDemTiles.reduce(((e, t) => {
23620
23620
  if (t.dem) {
23621
23621
  let n = t.dem.tree;
23622
23622
  e.min = Math.min(e.min, n.minimums[0]), e.max = Math.max(e.max, n.maximums[0]);
23623
23623
  }
23624
23624
  return e;
23625
- }, {
23625
+ }), {
23626
23626
  min: Number.MAX_VALUE,
23627
23627
  max: 0
23628
23628
  });
@@ -23971,10 +23971,10 @@ ${mn}` : mn, mn, pn, fn.fragmentSource, un.fragmentSource, r.fragmentSource).joi
23971
23971
  if (!t) return "";
23972
23972
  let n = $r(t);
23973
23973
  if (this._hashName) {
23974
- let t = this._hashName, r = !1, i = e.window.location.hash.slice(1).split("&").map((e) => {
23974
+ let t = this._hashName, r = !1, i = e.window.location.hash.slice(1).split("&").map(((e) => {
23975
23975
  let i = e.split("=")[0];
23976
23976
  return i === t ? (r = !0, `${i}=${n}`) : e;
23977
- }).filter((e) => e);
23977
+ })).filter(((e) => e));
23978
23978
  return r || i.push(`${t}=${n}`), `#${i.join("&")}`;
23979
23979
  }
23980
23980
  return `#${n}`;
@@ -23983,9 +23983,9 @@ ${mn}` : mn, mn, pn, fn.fragmentSource, un.fragmentSource, r.fragmentSource).joi
23983
23983
  let t = e.window.location.hash.replace("#", "");
23984
23984
  if (this._hashName) {
23985
23985
  let e;
23986
- return t.split("&").map((e) => e.split("=")).forEach((t) => {
23986
+ return t.split("&").map(((e) => e.split("="))).forEach(((t) => {
23987
23987
  t[0] === this._hashName && (e = t);
23988
- }), (e && e[1] || "").split("/");
23988
+ })), (e && e[1] || "").split("/");
23989
23989
  }
23990
23990
  return t.split("/");
23991
23991
  }
@@ -23993,7 +23993,7 @@ ${mn}` : mn, mn, pn, fn.fragmentSource, un.fragmentSource, r.fragmentSource).joi
23993
23993
  let e = this._map;
23994
23994
  if (!e) return !1;
23995
23995
  let t = this._getCurrentHash();
23996
- if (t.length >= 3 && !t.some((e) => isNaN(e))) {
23996
+ if (t.length >= 3 && !t.some(((e) => isNaN(e)))) {
23997
23997
  let n = e.dragRotate.isEnabled() && e.touchZoomRotate.isEnabled() ? +(t[3] || 0) : e.getBearing();
23998
23998
  return e.jumpTo({
23999
23999
  center: [+t[2], +t[1]],
@@ -24116,7 +24116,7 @@ ${mn}` : mn, mn, pn, fn.fragmentSource, un.fragmentSource, r.fragmentSource).joi
24116
24116
  return this._defaultPrevented;
24117
24117
  }
24118
24118
  constructor(t, n, r) {
24119
- let i = t === "touchend" ? r.changedTouches : r.touches, a = h(n.getCanvasContainer(), i), o = a.map((e) => n.unproject(e)), s = a.reduce((e, t, n, r) => e.add(t.div(r.length)), new e.Point(0, 0));
24119
+ let i = t === "touchend" ? r.changedTouches : r.touches, a = h(n.getCanvasContainer(), i), o = a.map(((e) => n.unproject(e))), s = a.reduce(((e, t, n, r) => e.add(t.div(r.length))), new e.Point(0, 0));
24120
24120
  super(t, {
24121
24121
  points: a,
24122
24122
  point: s,
@@ -24246,9 +24246,9 @@ ${mn}` : mn, mn, pn, fn.fragmentSource, un.fragmentSource, r.fragmentSource).joi
24246
24246
  if (!r || !i || i.equals(n) || !this._box && n.dist(r) < this._clickTolerance) return;
24247
24247
  this._lastPos = n, this._box || (this._box = a("div", "mapboxgl-boxzoom", this._container), this._container.classList.add("mapboxgl-crosshair"), this._fireEvent("boxzoomstart", e));
24248
24248
  let o = Math.min(r.x, n.x), s = Math.max(r.x, n.x), c = Math.min(r.y, n.y), l = Math.max(r.y, n.y);
24249
- this._map._requestDomTask(() => {
24249
+ this._map._requestDomTask((() => {
24250
24250
  this._box && (this._box.style.transform = `translate(${o}px,${c}px)`, this._box.style.width = s - o + "px", this._box.style.height = l - c + "px");
24251
- });
24251
+ }));
24252
24252
  }
24253
24253
  mouseupWindow(t, n) {
24254
24254
  if (!this._active) return;
@@ -24347,11 +24347,11 @@ ${mn}` : mn, mn, pn, fn.fragmentSource, un.fragmentSource, r.fragmentSource).joi
24347
24347
  }
24348
24348
  touchend(e, t, n) {
24349
24349
  let r = this._zoomIn.touchend(e, t, n), i = this._zoomOut.touchend(e, t, n);
24350
- return r ? (this._active = !0, e.preventDefault(), setTimeout(() => this.reset(), 0), { cameraAnimation: (t) => t.easeTo({
24350
+ return r ? (this._active = !0, e.preventDefault(), setTimeout((() => this.reset()), 0), { cameraAnimation: (t) => t.easeTo({
24351
24351
  duration: 300,
24352
24352
  zoom: t.getZoom() + 1,
24353
24353
  around: t.unproject(r)
24354
- }, { originalEvent: e }) }) : i ? (this._active = !0, e.preventDefault(), setTimeout(() => this.reset(), 0), { cameraAnimation: (t) => t.easeTo({
24354
+ }, { originalEvent: e }) }) : i ? (this._active = !0, e.preventDefault(), setTimeout((() => this.reset()), 0), { cameraAnimation: (t) => t.easeTo({
24355
24355
  duration: 300,
24356
24356
  zoom: t.getZoom() - 1,
24357
24357
  around: t.unproject(i)
@@ -24517,9 +24517,9 @@ ${mn}` : mn, mn, pn, fn.fragmentSource, un.fragmentSource, r.fragmentSource).joi
24517
24517
  this._map && !this._alertContainer && (this._alertContainer = a("div", "mapboxgl-touch-pan-blocker", this._map._container), this._alertContainer.textContent = this._map._getUIString("TouchPanBlocker.Message"), this._alertContainer.style.fontSize = `${Math.max(10, Math.min(24, Math.floor(.05 * this._el.clientWidth)))}px`);
24518
24518
  }
24519
24519
  _showTouchPanBlockerAlert() {
24520
- this._alertContainer.style.visibility = "visible", this._alertContainer.classList.add("mapboxgl-touch-pan-blocker-show"), this._alertContainer.setAttribute("role", "alert"), clearTimeout(this._alertTimer), this._alertTimer = setTimeout(() => {
24520
+ this._alertContainer.style.visibility = "visible", this._alertContainer.classList.add("mapboxgl-touch-pan-blocker-show"), this._alertContainer.setAttribute("role", "alert"), clearTimeout(this._alertTimer), this._alertTimer = setTimeout((() => {
24521
24521
  this._alertContainer.classList.remove("mapboxgl-touch-pan-blocker-show"), this._alertContainer.setAttribute("role", "null");
24522
- }, 500);
24522
+ }), 500);
24523
24523
  }
24524
24524
  }
24525
24525
  class Ci {
@@ -24785,9 +24785,9 @@ ${mn}` : mn, mn, pn, fn.fragmentSource, un.fragmentSource, r.fragmentSource).joi
24785
24785
  let t = Math.min((e.exported.now() - this._lastWheelEventTime) / 200, 1), n = a(t);
24786
24786
  o = e.number(i, r, n), t < 1 ? this._frameId || (this._frameId = !0) : s = !0;
24787
24787
  } else o = r, s = !0;
24788
- return this._active = !0, s && (this._active = !1, this._finishTimeout = setTimeout(() => {
24788
+ return this._active = !0, s && (this._active = !1, this._finishTimeout = setTimeout((() => {
24789
24789
  this._zooming = !1, this._handler._triggerRenderFrame(), delete this._targetZoom, delete this._finishTimeout;
24790
- }, 200)), {
24790
+ }), 200)), {
24791
24791
  noInertia: !0,
24792
24792
  needsRenderFrame: !s,
24793
24793
  zoomDelta: o - n(),
@@ -24818,9 +24818,9 @@ ${mn}` : mn, mn, pn, fn.fragmentSource, un.fragmentSource, r.fragmentSource).joi
24818
24818
  this._map && !this._alertContainer && (this._alertContainer = a("div", "mapboxgl-scroll-zoom-blocker", this._map._container), this._alertContainer.textContent = /(Mac|iPad)/i.test(e.window.navigator.userAgent) ? this._map._getUIString("ScrollZoomBlocker.CmdMessage") : this._map._getUIString("ScrollZoomBlocker.CtrlMessage"), this._alertContainer.style.fontSize = `${Math.max(10, Math.min(24, Math.floor(.05 * this._el.clientWidth)))}px`);
24819
24819
  }
24820
24820
  _showBlockerAlert() {
24821
- this._alertContainer.style.visibility = "visible", this._alertContainer.classList.add("mapboxgl-scroll-zoom-blocker-show"), this._alertContainer.setAttribute("role", "alert"), clearTimeout(this._alertTimer), this._alertTimer = setTimeout(() => {
24821
+ this._alertContainer.style.visibility = "visible", this._alertContainer.classList.add("mapboxgl-scroll-zoom-blocker-show"), this._alertContainer.setAttribute("role", "alert"), clearTimeout(this._alertTimer), this._alertTimer = setTimeout((() => {
24822
24822
  this._alertContainer.classList.remove("mapboxgl-scroll-zoom-blocker-show"), this._alertContainer.setAttribute("role", "null");
24823
- }, 200);
24823
+ }), 200);
24824
24824
  }
24825
24825
  }
24826
24826
  class Ii {
@@ -25300,9 +25300,9 @@ ${mn}` : mn, mn, pn, fn.fragmentSource, un.fragmentSource, r.fragmentSource).joi
25300
25300
  this._map.fire(new e.Event(t, n ? { originalEvent: n } : {}));
25301
25301
  }
25302
25302
  _requestFrame() {
25303
- return this._map.triggerRepaint(), this._map._renderTaskQueue.add((e) => {
25303
+ return this._map.triggerRepaint(), this._map._renderTaskQueue.add(((e) => {
25304
25304
  this._frameId = void 0, this.handleEvent(new Ui("renderFrame", { timeStamp: e })), this._applyChanges();
25305
- });
25305
+ }));
25306
25306
  }
25307
25307
  _triggerRenderFrame() {
25308
25308
  this._frameId === void 0 && (this._frameId = this._requestFrame());
@@ -25439,11 +25439,11 @@ ${mn}` : mn, mn, pn, fn.fragmentSource, un.fragmentSource, r.fragmentSource).joi
25439
25439
  e.latLngToECEF(d, u.lng),
25440
25440
  e.latLngToECEF(l.lat, f),
25441
25441
  e.latLngToECEF(u.lat, f)
25442
- ], y = e.Aabb.fromPoints(v.map((t) => [
25442
+ ], y = e.Aabb.fromPoints(v.map(((t) => [
25443
25443
  e.dot(h, t),
25444
25444
  e.dot(g, t),
25445
25445
  e.dot(m, t)
25446
- ])), b = e.transformMat4([], y.center, _);
25446
+ ]))), b = e.transformMat4([], y.center, _);
25447
25447
  e.squaredLength(b) === 0 && e.set(b, 0, 0, 1), e.normalize(b, b), e.scale$2(b, b, e.GLOBE_RADIUS), s.center = e.ecefToLatLng(b);
25448
25448
  let x = s.getWorldToCameraMatrix(), S = e.invert(new Float64Array(16), x);
25449
25449
  y = e.Aabb.applyTransform(y, e.multiply([], x, _)), e.transformMat4(b, b, x);
@@ -25585,9 +25585,9 @@ ${mn}` : mn, mn, pn, fn.fragmentSource, un.fragmentSource, r.fragmentSource).joi
25585
25585
  rotating: this._rotating,
25586
25586
  pitching: this._pitching
25587
25587
  };
25588
- return this._zooming = y, this._rotating = b, this._pitching = x, this._padding = S, this._easeId = t.easeId, this._prepareEase(n, t.noMoveStart, w), this._ease(C(r), (e) => {
25588
+ return this._zooming = y, this._rotating = b, this._pitching = x, this._padding = S, this._easeId = t.easeId, this._prepareEase(n, t.noMoveStart, w), this._ease(C(r), ((e) => {
25589
25589
  r.recenterOnTerrain(), this._afterEase(n, e);
25590
- }, t), this;
25590
+ }), t), this;
25591
25591
  }
25592
25592
  _prepareEase(t, n, r = {}) {
25593
25593
  this._moving = !0, this.transform.cameraElevationReference = "sea", n || r.moving || this.fire(new e.Event("movestart", t)), this._zooming && !r.zooming && this.fire(new e.Event("zoomstart", t)), this._rotating && !r.rotating && this.fire(new e.Event("rotatestart", t)), this._pitching && !r.pitching && this.fire(new e.Event("pitchstart", t));
@@ -25662,7 +25662,7 @@ ${mn}` : mn, mn, pn, fn.fragmentSource, un.fragmentSource, r.fragmentSource).joi
25662
25662
  let e = this._emulate(P, t.duration, r);
25663
25663
  return this._preloadTiles(e), this;
25664
25664
  }
25665
- return this._zooming = !0, this._rotating = j, this._pitching = M, this._padding = N, this._prepareEase(n, !1), this._ease(P(r), () => this._afterEase(n), t), this;
25665
+ return this._zooming = !0, this._rotating = j, this._pitching = M, this._padding = N, this._prepareEase(n, !1), this._ease(P(r), (() => this._afterEase(n)), t), this;
25666
25666
  }
25667
25667
  isEasing() {
25668
25668
  return !!this._easeFrameId;
@@ -25755,7 +25755,7 @@ ${mn}` : mn, mn, pn, fn.fragmentSource, un.fragmentSource, r.fragmentSource).joi
25755
25755
  }
25756
25756
  ];
25757
25757
  if (t) {
25758
- let r = n.reduce((e, t, r) => (t.value && (e += `${t.key}=${t.value}${r < n.length - 1 ? "&" : ""}`), e), "?");
25758
+ let r = n.reduce(((e, t, r) => (t.value && (e += `${t.key}=${t.value}${r < n.length - 1 ? "&" : ""}`), e)), "?");
25759
25759
  t.href = `${e.config.FEEDBACK_URL}/${r}#${$r(this._map, !0)}`, t.rel = "noopener nofollow", this._setElementTitle(t, "MapFeedback");
25760
25760
  }
25761
25761
  }
@@ -25777,10 +25777,10 @@ ${mn}` : mn, mn, pn, fn.fragmentSource, un.fragmentSource, r.fragmentSource).joi
25777
25777
  t.attribution && e.indexOf(t.attribution) < 0 && e.push(t.attribution);
25778
25778
  }
25779
25779
  }
25780
- e.sort((e, t) => e.length - t.length), e = e.filter((t, n) => {
25780
+ e.sort(((e, t) => e.length - t.length)), e = e.filter(((t, n) => {
25781
25781
  for (let r = n + 1; r < e.length; r++) if (e[r].indexOf(t) >= 0) return !1;
25782
25782
  return !0;
25783
- }), this.options.customAttribution && (Array.isArray(this.options.customAttribution) ? e = [...this.options.customAttribution, ...e] : e.unshift(this.options.customAttribution));
25783
+ })), this.options.customAttribution && (Array.isArray(this.options.customAttribution) ? e = [...this.options.customAttribution, ...e] : e.unshift(this.options.customAttribution));
25784
25784
  let n = e.join(" | ");
25785
25785
  n !== this._attribHTML && (this._attribHTML = n, e.length ? (this._innerContainer.innerHTML = n, this._container.classList.remove("mapboxgl-attrib-empty")) : this._container.classList.add("mapboxgl-attrib-empty"), this._editLink = null);
25786
25786
  }
@@ -25917,11 +25917,11 @@ ${mn}` : mn, mn, pn, fn.fragmentSource, un.fragmentSource, r.fragmentSource).joi
25917
25917
  r: 5.5
25918
25918
  }, n), this._offset = e.Point.convert(t && t.offset || [0, -14]);
25919
25919
  }
25920
- this._element.hasAttribute("aria-label") || this._element.setAttribute("aria-label", "Map marker"), this._element.classList.add("mapboxgl-marker"), this._element.addEventListener("dragstart", (e) => {
25920
+ this._element.hasAttribute("aria-label") || this._element.setAttribute("aria-label", "Map marker"), this._element.classList.add("mapboxgl-marker"), this._element.addEventListener("dragstart", ((e) => {
25921
25921
  e.preventDefault();
25922
- }), this._element.addEventListener("mousedown", (e) => {
25922
+ })), this._element.addEventListener("mousedown", ((e) => {
25923
25923
  e.preventDefault();
25924
- });
25924
+ }));
25925
25925
  let r = this._element.classList;
25926
25926
  for (let e in Qi) r.remove(`mapboxgl-marker-anchor-${e}`);
25927
25927
  r.add(`mapboxgl-marker-anchor-${this._anchor}`), this._popup = null;
@@ -26032,11 +26032,11 @@ ${mn}` : mn, mn, pn, fn.fragmentSource, un.fragmentSource, r.fragmentSource).joi
26032
26032
  _update(t) {
26033
26033
  e.window.cancelAnimationFrame(this._updateFrameId);
26034
26034
  let n = this._map;
26035
- n && (n.transform.renderWorldCopies && (this._lngLat = Y(this._lngLat, this._pos, n.transform)), this._pos = n.project(this._lngLat), !0 === t ? this._updateFrameId = e.window.requestAnimationFrame(() => {
26035
+ n && (n.transform.renderWorldCopies && (this._lngLat = Y(this._lngLat, this._pos, n.transform)), this._pos = n.project(this._lngLat), !0 === t ? this._updateFrameId = e.window.requestAnimationFrame((() => {
26036
26036
  this._element && this._pos && this._anchor && (this._pos = this._pos.round(), this._updateDOM());
26037
- }) : this._pos = this._pos.round(), n._requestDomTask(() => {
26037
+ })) : this._pos = this._pos.round(), n._requestDomTask((() => {
26038
26038
  this._map && (this._element && this._pos && this._anchor && this._updateDOM(), (n._showingGlobe() || n.getTerrain() || n.getFog()) && !this._fadeTimer && (this._fadeTimer = setTimeout(this._evaluateOpacity.bind(this), 60)));
26039
- }));
26039
+ })));
26040
26040
  }
26041
26041
  getOffset() {
26042
26042
  return this._offset;
@@ -26315,7 +26315,7 @@ ${mn}` : mn, mn, pn, fn.fragmentSource, un.fragmentSource, r.fragmentSource).joi
26315
26315
  "_contextLost",
26316
26316
  "_contextRestored"
26317
26317
  ], this), this._setupContainer(), this._setupPainter(), this.painter === void 0) throw Error("Failed to initialize WebGL.");
26318
- this.on("move", () => this._update(!1)), this.on("moveend", () => this._update(!1)), this.on("zoom", () => this._update(!0)), e.window !== void 0 && (e.window.addEventListener("online", this._onWindowOnline, !1), e.window.addEventListener("resize", this._onWindowResize, !1), e.window.addEventListener("orientationchange", this._onWindowResize, !1), e.window.addEventListener("webkitfullscreenchange", this._onWindowResize, !1), e.window.addEventListener("visibilitychange", this._onVisibilityChange, !1)), this.handlers = new Ki(this, t), this._localFontFamily = t.localFontFamily, this._localIdeographFontFamily = t.localIdeographFontFamily, t.style && this.setStyle(t.style, {
26318
+ this.on("move", (() => this._update(!1))), this.on("moveend", (() => this._update(!1))), this.on("zoom", (() => this._update(!0))), e.window !== void 0 && (e.window.addEventListener("online", this._onWindowOnline, !1), e.window.addEventListener("resize", this._onWindowResize, !1), e.window.addEventListener("orientationchange", this._onWindowResize, !1), e.window.addEventListener("webkitfullscreenchange", this._onWindowResize, !1), e.window.addEventListener("visibilitychange", this._onVisibilityChange, !1)), this.handlers = new Ki(this, t), this._localFontFamily = t.localFontFamily, this._localIdeographFontFamily = t.localIdeographFontFamily, t.style && this.setStyle(t.style, {
26319
26319
  localFontFamily: this._localFontFamily,
26320
26320
  localIdeographFontFamily: this._localIdeographFontFamily
26321
26321
  }), t.projection && this.setProjection(t.projection), this._hash = t.hash && new Qr(typeof t.hash == "string" && t.hash || void 0).addTo(this), this._hash && this._hash._onHashChange() || (this.jumpTo({
@@ -26323,13 +26323,13 @@ ${mn}` : mn, mn, pn, fn.fragmentSource, un.fragmentSource, r.fragmentSource).joi
26323
26323
  zoom: t.zoom,
26324
26324
  bearing: t.bearing,
26325
26325
  pitch: t.pitch
26326
- }), t.bounds && (this.resize(), this.fitBounds(t.bounds, e.extend({}, t.fitBoundsOptions, { duration: 0 })))), this.resize(), t.attributionControl && this.addControl(new Yi({ customAttribution: t.customAttribution })), this._logoControl = new Xi(), this.addControl(this._logoControl, t.logoPosition), this.on("style.load", () => {
26326
+ }), t.bounds && (this.resize(), this.fitBounds(t.bounds, e.extend({}, t.fitBoundsOptions, { duration: 0 })))), this.resize(), t.attributionControl && this.addControl(new Yi({ customAttribution: t.customAttribution })), this._logoControl = new Xi(), this.addControl(this._logoControl, t.logoPosition), this.on("style.load", (() => {
26327
26327
  this.transform.unmodified && this.jumpTo(this.style.stylesheet);
26328
- }), this.on("data", (t) => {
26328
+ })), this.on("data", ((t) => {
26329
26329
  this._update(t.dataType === "style"), this.fire(new e.Event(`${t.dataType}data`, t));
26330
- }), this.on("dataloading", (t) => {
26330
+ })), this.on("dataloading", ((t) => {
26331
26331
  this.fire(new e.Event(`${t.dataType}dataloading`, t));
26332
- });
26332
+ }));
26333
26333
  }
26334
26334
  _getMapId() {
26335
26335
  return this._mapId;
@@ -26413,7 +26413,7 @@ ${mn}` : mn, mn, pn, fn.fragmentSource, un.fragmentSource, r.fragmentSource).joi
26413
26413
  return this._language;
26414
26414
  }
26415
26415
  _parseLanguage(t) {
26416
- return t === "auto" ? e.window.navigator.language : Array.isArray(t) ? t.length === 0 ? void 0 : t.map((t) => t === "auto" ? e.window.navigator.language : t) : t;
26416
+ return t === "auto" ? e.window.navigator.language : Array.isArray(t) ? t.length === 0 ? void 0 : t.map(((t) => t === "auto" ? e.window.navigator.language : t)) : t;
26417
26417
  }
26418
26418
  setLanguage(e) {
26419
26419
  let t = this._parseLanguage(e);
@@ -26483,7 +26483,7 @@ ${mn}` : mn, mn, pn, fn.fragmentSource, un.fragmentSource, r.fragmentSource).joi
26483
26483
  listener: n,
26484
26484
  delegates: {
26485
26485
  mousemove: (i) => {
26486
- let a = t.filter((e) => this.getLayer(e)), o = a.length ? this.queryRenderedFeatures(i.point, { layers: a }) : [];
26486
+ let a = t.filter(((e) => this.getLayer(e))), o = a.length ? this.queryRenderedFeatures(i.point, { layers: a }) : [];
26487
26487
  o.length ? r || (r = !0, n.call(this, new si(e, this, i.originalEvent, { features: o }))) : r = !1;
26488
26488
  },
26489
26489
  mouseout: () => {
@@ -26499,7 +26499,7 @@ ${mn}` : mn, mn, pn, fn.fragmentSource, un.fragmentSource, r.fragmentSource).joi
26499
26499
  listener: n,
26500
26500
  delegates: {
26501
26501
  mousemove: (i) => {
26502
- let a = t.filter((e) => this.getLayer(e));
26502
+ let a = t.filter(((e) => this.getLayer(e)));
26503
26503
  (a.length ? this.queryRenderedFeatures(i.point, { layers: a }) : []).length ? r = !0 : r && (r = !1, n.call(this, new si(e, this, i.originalEvent)));
26504
26504
  },
26505
26505
  mouseout: (t) => {
@@ -26510,7 +26510,7 @@ ${mn}` : mn, mn, pn, fn.fragmentSource, un.fragmentSource, r.fragmentSource).joi
26510
26510
  }
26511
26511
  {
26512
26512
  let r = (e) => {
26513
- let r = t.filter((e) => this.getLayer(e)), i = r.length ? this.queryRenderedFeatures(e.point, { layers: r }) : [];
26513
+ let r = t.filter(((e) => this.getLayer(e))), i = r.length ? this.queryRenderedFeatures(e.point, { layers: r }) : [];
26514
26514
  i.length && (e.features = i, n.call(this, e), delete e.features);
26515
26515
  };
26516
26516
  return {
@@ -26583,9 +26583,9 @@ ${mn}` : mn, mn, pn, fn.fragmentSource, un.fragmentSource, r.fragmentSource).joi
26583
26583
  _diffStyle(t, n) {
26584
26584
  if (typeof t == "string") {
26585
26585
  let r = this._requestManager.normalizeStyleURL(t), i = this._requestManager.transformRequest(r, e.ResourceType.Style);
26586
- e.getJSON(i, (t, r) => {
26586
+ e.getJSON(i, ((t, r) => {
26587
26587
  t ? this.fire(new e.ErrorEvent(t)) : r && this._updateDiff(r, n);
26588
- });
26588
+ }));
26589
26589
  } else typeof t == "object" && this._updateDiff(t, n);
26590
26590
  }
26591
26591
  _updateDiff(t, n) {
@@ -26673,9 +26673,9 @@ ${mn}` : mn, mn, pn, fn.fragmentSource, un.fragmentSource, r.fragmentSource).joi
26673
26673
  this.style.removeImage(e);
26674
26674
  }
26675
26675
  loadImage(t, n) {
26676
- e.getImage(this._requestManager.transformRequest(t, e.ResourceType.Image), (t, r) => {
26676
+ e.getImage(this._requestManager.transformRequest(t, e.ResourceType.Image), ((t, r) => {
26677
26677
  n(t, r instanceof e.window.HTMLImageElement ? e.exported.getImageData(r) : r);
26678
- });
26678
+ }));
26679
26679
  }
26680
26680
  listImages() {
26681
26681
  return this.style.listImages();
@@ -26766,9 +26766,9 @@ ${mn}` : mn, mn, pn, fn.fragmentSource, un.fragmentSource, r.fragmentSource).joi
26766
26766
  "top-right",
26767
26767
  "bottom-left",
26768
26768
  "bottom-right"
26769
- ].forEach((e) => {
26769
+ ].forEach(((e) => {
26770
26770
  r[e] = a("div", `mapboxgl-ctrl-${e}`, n);
26771
- }), this._container.addEventListener("scroll", this._onMapScroll, !1);
26771
+ })), this._container.addEventListener("scroll", this._onMapScroll, !1);
26772
26772
  }
26773
26773
  _resizeCanvas(t, n) {
26774
26774
  let r = e.exported.devicePixelRatio || 1;
@@ -26794,9 +26794,9 @@ ${mn}` : mn, mn, pn, fn.fragmentSource, un.fragmentSource, r.fragmentSource).joi
26794
26794
  preserveDrawingBuffer: this._preserveDrawingBuffer,
26795
26795
  antialias: this._antialias || !1
26796
26796
  }), r = this._useWebGL2 && this._canvas.getContext("webgl2", t), i = r || this._canvas.getContext("webgl", t) || this._canvas.getContext("experimental-webgl", t);
26797
- i ? (this._useWebGL2 && !r && e.warnOnce("Failed to create WebGL 2 context. Using WebGL 1."), e.storeAuthState(i, !0), this.painter = new Rr(i, this.transform, !!r), this.on("data", (e) => {
26797
+ i ? (this._useWebGL2 && !r && e.warnOnce("Failed to create WebGL 2 context. Using WebGL 1."), e.storeAuthState(i, !0), this.painter = new Rr(i, this.transform, !!r), this.on("data", ((e) => {
26798
26798
  e.dataType === "source" && this.painter.setTileLoadedFlag(!0);
26799
- }), e.exported$1.testSupport(i)) : this.fire(new e.ErrorEvent(/* @__PURE__ */ Error("Failed to initialize WebGL")));
26799
+ })), e.exported$1.testSupport(i)) : this.fire(new e.ErrorEvent(/* @__PURE__ */ Error("Failed to initialize WebGL")));
26800
26800
  }
26801
26801
  _contextLost(t) {
26802
26802
  t.preventDefault(), this._frame && (this._frame.cancel(), this._frame = null), this.fire(new e.Event("webglcontextlost", { originalEvent: t }));
@@ -26856,7 +26856,7 @@ ${mn}` : mn, mn, pn, fn.fragmentSource, un.fragmentSource, r.fragmentSource).joi
26856
26856
  speedIndexTiming: this.speedIndexTiming
26857
26857
  }), this.fire(new e.Event("render")), this.loaded() && !this._loaded && (this._loaded = !0, this.fire(new e.Event("load"))), this.style && this.style.hasTransitions() && (this._styleDirty = !0), this.style && !this._placementDirty && this.style._releaseSymbolFadeTiles(), n) {
26858
26858
  let t = e.exported.now() - i;
26859
- r.endQueryEXT(r.TIME_ELAPSED_EXT, n), setTimeout(() => {
26859
+ r.endQueryEXT(r.TIME_ELAPSED_EXT, n), setTimeout((() => {
26860
26860
  let a = r.getQueryObjectEXT(n, r.QUERY_RESULT_EXT) / 1e6;
26861
26861
  r.deleteQueryEXT(n), this.fire(new e.Event("gpu-timing-frame", {
26862
26862
  cpuTime: t,
@@ -26865,21 +26865,21 @@ ${mn}` : mn, mn, pn, fn.fragmentSource, un.fragmentSource, r.fragmentSource).joi
26865
26865
  startTime: i,
26866
26866
  detail: { gpuTime: a }
26867
26867
  });
26868
- }, 50);
26868
+ }), 50);
26869
26869
  }
26870
26870
  if (this.listens("gpu-timing-layer")) {
26871
26871
  let t = this.painter.collectGpuTimers();
26872
- setTimeout(() => {
26872
+ setTimeout((() => {
26873
26873
  let n = this.painter.queryGpuTimers(t);
26874
26874
  this.fire(new e.Event("gpu-timing-layer", { layerTimes: n }));
26875
- }, 50);
26875
+ }), 50);
26876
26876
  }
26877
26877
  if (this.listens("gpu-timing-deferred-render")) {
26878
26878
  let t = this.painter.collectDeferredRenderGpuQueries();
26879
- setTimeout(() => {
26879
+ setTimeout((() => {
26880
26880
  let n = this.painter.queryGpuTimeDeferredRender(t);
26881
26881
  this.fire(new e.Event("gpu-timing-deferred-render", { gpuTime: n }));
26882
- }, 50);
26882
+ }), 50);
26883
26883
  }
26884
26884
  let s = this._sourcesDirty || this._styleDirty || this._placementDirty || o;
26885
26885
  if (s || this._repaint) this.triggerRepaint();
@@ -26923,12 +26923,12 @@ ${mn}` : mn, mn, pn, fn.fragmentSource, un.fragmentSource, r.fragmentSource).joi
26923
26923
  return !!this._averageElevation.isEasing(e) && n(this._averageElevation.getValue(e));
26924
26924
  }
26925
26925
  _authenticate() {
26926
- e.getMapSessionAPI(this._getMapId(), this._requestManager._skuToken, this._requestManager._customAccessToken, (t) => {
26926
+ e.getMapSessionAPI(this._getMapId(), this._requestManager._skuToken, this._requestManager._customAccessToken, ((t) => {
26927
26927
  if (t && (t.message === e.AUTH_ERR_MSG || t.status === 401)) {
26928
26928
  let t = this.painter.context.gl;
26929
26929
  e.storeAuthState(t, !1), this._logoControl instanceof Xi && this._logoControl._updateLogo(), t && t.clear(t.DEPTH_BUFFER_BIT | t.COLOR_BUFFER_BIT | t.STENCIL_BUFFER_BIT), this._silenceAuthErrors || this.fire(new e.ErrorEvent(/* @__PURE__ */ Error("A valid Mapbox access token is required to use Mapbox GL JS. To create an account or a new access token, visit https://account.mapbox.com/")));
26930
26930
  }
26931
- }), e.postMapLoadEvent(this._getMapId(), this._requestManager._skuToken, this._requestManager._customAccessToken, () => {});
26931
+ })), e.postMapLoadEvent(this._getMapId(), this._requestManager._skuToken, this._requestManager._customAccessToken, (() => {}));
26932
26932
  }
26933
26933
  _updateTerrain() {
26934
26934
  let e = this._isDragging();
@@ -26965,16 +26965,16 @@ ${mn}` : mn, mn, pn, fn.fragmentSource, un.fragmentSource, r.fragmentSource).joi
26965
26965
  this._triggerFrame(!0);
26966
26966
  }
26967
26967
  _triggerFrame(t) {
26968
- this._renderNextFrame = this._renderNextFrame || t, this.style && !this._frame && (this._frame = e.exported.frame((e) => {
26968
+ this._renderNextFrame = this._renderNextFrame || t, this.style && !this._frame && (this._frame = e.exported.frame(((e) => {
26969
26969
  let t = !!this._renderNextFrame;
26970
26970
  this._frame = null, this._renderNextFrame = null, t && this._render(e);
26971
- }));
26971
+ })));
26972
26972
  }
26973
26973
  _preloadTiles(t) {
26974
26974
  let n = this.style ? Object.values(this.style._sourceCaches) : [];
26975
- return e.asyncAll(n, (e, n) => e._preloadTiles(t, n), () => {
26975
+ return e.asyncAll(n, ((e, n) => e._preloadTiles(t, n)), (() => {
26976
26976
  this.triggerRepaint();
26977
- }), this;
26977
+ })), this;
26978
26978
  }
26979
26979
  _onWindowOnline() {
26980
26980
  this._update();
@@ -27048,14 +27048,14 @@ ${mn}` : mn, mn, pn, fn.fragmentSource, un.fragmentSource, r.fragmentSource).joi
27048
27048
  },
27049
27049
  NavigationControl: class {
27050
27050
  constructor(t) {
27051
- this.options = e.extend({}, aa, t), this._container = a("div", "mapboxgl-ctrl mapboxgl-ctrl-group"), this._container.addEventListener("contextmenu", (e) => e.preventDefault()), this.options.showZoom && (e.bindAll(["_setButtonTitle", "_updateZoomButtons"], this), this._zoomInButton = this._createButton("mapboxgl-ctrl-zoom-in", (e) => {
27051
+ this.options = e.extend({}, aa, t), this._container = a("div", "mapboxgl-ctrl mapboxgl-ctrl-group"), this._container.addEventListener("contextmenu", ((e) => e.preventDefault())), this.options.showZoom && (e.bindAll(["_setButtonTitle", "_updateZoomButtons"], this), this._zoomInButton = this._createButton("mapboxgl-ctrl-zoom-in", ((e) => {
27052
27052
  this._map && this._map.zoomIn({}, { originalEvent: e });
27053
- }), a("span", "mapboxgl-ctrl-icon", this._zoomInButton).setAttribute("aria-hidden", "true"), this._zoomOutButton = this._createButton("mapboxgl-ctrl-zoom-out", (e) => {
27053
+ })), a("span", "mapboxgl-ctrl-icon", this._zoomInButton).setAttribute("aria-hidden", "true"), this._zoomOutButton = this._createButton("mapboxgl-ctrl-zoom-out", ((e) => {
27054
27054
  this._map && this._map.zoomOut({}, { originalEvent: e });
27055
- }), a("span", "mapboxgl-ctrl-icon", this._zoomOutButton).setAttribute("aria-hidden", "true")), this.options.showCompass && (e.bindAll(["_rotateCompassArrow"], this), this._compass = this._createButton("mapboxgl-ctrl-compass", (e) => {
27055
+ })), a("span", "mapboxgl-ctrl-icon", this._zoomOutButton).setAttribute("aria-hidden", "true")), this.options.showCompass && (e.bindAll(["_rotateCompassArrow"], this), this._compass = this._createButton("mapboxgl-ctrl-compass", ((e) => {
27056
27056
  let t = this._map;
27057
27057
  t && (this.options.visualizePitch ? t.resetNorthPitch({}, { originalEvent: e }) : t.resetNorth({}, { originalEvent: e }));
27058
- }), this._compassIcon = a("span", "mapboxgl-ctrl-icon", this._compass), this._compassIcon.setAttribute("aria-hidden", "true"));
27058
+ })), this._compassIcon = a("span", "mapboxgl-ctrl-icon", this._compass), this._compassIcon.setAttribute("aria-hidden", "true"));
27059
27059
  }
27060
27060
  _updateZoomButtons() {
27061
27061
  let e = this._map;
@@ -27067,9 +27067,9 @@ ${mn}` : mn, mn, pn, fn.fragmentSource, un.fragmentSource, r.fragmentSource).joi
27067
27067
  let e = this._map;
27068
27068
  if (!e) return;
27069
27069
  let t = this.options.visualizePitch ? `scale(${1 / Math.cos(e.transform.pitch * (Math.PI / 180)) ** .5}) rotateX(${e.transform.pitch}deg) rotateZ(${e.transform.angle * (180 / Math.PI)}deg)` : `rotate(${e.transform.angle * (180 / Math.PI)}deg)`;
27070
- e._requestDomTask(() => {
27070
+ e._requestDomTask((() => {
27071
27071
  this._compassIcon && (this._compassIcon.style.transform = t);
27072
- });
27072
+ }));
27073
27073
  }
27074
27074
  onAdd(e) {
27075
27075
  return this._map = e, this.options.showZoom && (this._setButtonTitle(this._zoomInButton, "ZoomIn"), this._setButtonTitle(this._zoomOutButton, "ZoomOut"), e.on("zoom", this._updateZoomButtons), this._updateZoomButtons()), this.options.showCompass && (this._setButtonTitle(this._compass, "ResetBearing"), this.options.visualizePitch && e.on("pitch", this._rotateCompassArrow), e.on("rotate", this._rotateCompassArrow), this._rotateCompassArrow(), this._handler = new oa(e, this._compass, this.options.visualizePitch)), this._container;
@@ -27112,7 +27112,7 @@ ${mn}` : mn, mn, pn, fn.fragmentSource, un.fragmentSource, r.fragmentSource).joi
27112
27112
  let n = (e = !!this.options.geolocation) => {
27113
27113
  this._supportsGeolocation = e, t(e);
27114
27114
  };
27115
- this._supportsGeolocation === void 0 ? e.window.navigator.permissions === void 0 ? n() : e.window.navigator.permissions.query({ name: "geolocation" }).then((e) => n(e.state !== "denied")).catch(() => n()) : t(this._supportsGeolocation);
27115
+ this._supportsGeolocation === void 0 ? e.window.navigator.permissions === void 0 ? n() : e.window.navigator.permissions.query({ name: "geolocation" }).then(((e) => n(e.state !== "denied"))).catch((() => n())) : t(this._supportsGeolocation);
27116
27116
  }
27117
27117
  _isOutOfMapMaxBounds(e) {
27118
27118
  let t = this._map.getMaxBounds(), n = e.coords;
@@ -27182,7 +27182,7 @@ ${mn}` : mn, mn, pn, fn.fragmentSource, un.fragmentSource, r.fragmentSource).joi
27182
27182
  }
27183
27183
  _setupUI(t) {
27184
27184
  if (this._map !== void 0) {
27185
- if (this._container.addEventListener("contextmenu", (e) => e.preventDefault()), this._geolocateButton = a("button", "mapboxgl-ctrl-geolocate", this._container), a("span", "mapboxgl-ctrl-icon", this._geolocateButton).setAttribute("aria-hidden", "true"), this._geolocateButton.type = "button", !1 === t) {
27185
+ if (this._container.addEventListener("contextmenu", ((e) => e.preventDefault())), this._geolocateButton = a("button", "mapboxgl-ctrl-geolocate", this._container), a("span", "mapboxgl-ctrl-icon", this._geolocateButton).setAttribute("aria-hidden", "true"), this._geolocateButton.type = "button", !1 === t) {
27186
27186
  e.warnOnce("Geolocation support is not available so the GeolocateControl will be disabled.");
27187
27187
  let t = this._map._getUIString("GeolocateControl.LocationNotAvailable");
27188
27188
  this._geolocateButton.disabled = !0, this._geolocateButton.setAttribute("aria-label", t), this._geolocateButton.firstElementChild && this._geolocateButton.firstElementChild.setAttribute("title", t);
@@ -27197,9 +27197,9 @@ ${mn}` : mn, mn, pn, fn.fragmentSource, un.fragmentSource, r.fragmentSource).joi
27197
27197
  }), this._circleElement = a("div", "mapboxgl-user-location-accuracy-circle"), this._accuracyCircleMarker = new $i({
27198
27198
  element: this._circleElement,
27199
27199
  pitchAlignment: "map"
27200
- }), this.options.trackUserLocation && (this._watchState = "OFF"), this._map.on("zoom", this._onZoom)), this._geolocateButton.addEventListener("click", this.trigger.bind(this)), this._setup = !0, this.options.trackUserLocation && this._map.on("movestart", (t) => {
27200
+ }), this.options.trackUserLocation && (this._watchState = "OFF"), this._map.on("zoom", this._onZoom)), this._geolocateButton.addEventListener("click", this.trigger.bind(this)), this._setup = !0, this.options.trackUserLocation && this._map.on("movestart", ((t) => {
27201
27201
  t.geolocateSource || this._watchState !== "ACTIVE_LOCK" || t.originalEvent && t.originalEvent.type === "resize" || (this._watchState = "BACKGROUND", this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background"), this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"), this.fire(new e.Event("trackuserlocationend")));
27202
- });
27202
+ }));
27203
27203
  }
27204
27204
  }
27205
27205
  _onDeviceOrientation(e) {
@@ -27250,9 +27250,9 @@ ${mn}` : mn, mn, pn, fn.fragmentSource, un.fragmentSource, r.fragmentSource).joi
27250
27250
  let t = () => {
27251
27251
  e.window.addEventListener("ondeviceorientationabsolute" in e.window ? "deviceorientationabsolute" : "deviceorientation", this._onDeviceOrientation);
27252
27252
  };
27253
- e.window.DeviceMotionEvent !== void 0 && typeof e.window.DeviceMotionEvent.requestPermission == "function" ? DeviceOrientationEvent.requestPermission().then((e) => {
27253
+ e.window.DeviceMotionEvent !== void 0 && typeof e.window.DeviceMotionEvent.requestPermission == "function" ? DeviceOrientationEvent.requestPermission().then(((e) => {
27254
27254
  e === "granted" && t();
27255
- }).catch(console.error) : t();
27255
+ })).catch(console.error) : t();
27256
27256
  }
27257
27257
  _clearWatch() {
27258
27258
  this.options.geolocation.clearWatch(this._geolocationWatchID), e.window.removeEventListener("deviceorientation", this._onDeviceOrientation), e.window.removeEventListener("deviceorientationabsolute", this._onDeviceOrientation), this._geolocationWatchID = void 0, this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"), this._geolocateButton.setAttribute("aria-pressed", "false"), this.options.showUserLocation && this._updateMarker(null);
@@ -27288,7 +27288,7 @@ ${mn}` : mn, mn, pn, fn.fragmentSource, un.fragmentSource, r.fragmentSource).joi
27288
27288
  } else this.options.unit === "nautical" ? this._setScale(e, o / 1852, "nautical-mile") : o >= 1e3 ? this._setScale(e, o / 1e3, "kilometer") : this._setScale(e, o, "meter");
27289
27289
  }
27290
27290
  _setScale(e, t, n) {
27291
- this._map._requestDomTask(() => {
27291
+ this._map._requestDomTask((() => {
27292
27292
  let r = function(e) {
27293
27293
  let t = 10 ** (`${Math.floor(e)}`.length - 1), n = e / t;
27294
27294
  return n = n >= 10 ? 10 : n >= 5 ? 5 : n >= 3 ? 3 : n >= 2 ? 2 : n >= 1 ? 1 : function(e) {
@@ -27301,7 +27301,7 @@ ${mn}` : mn, mn, pn, fn.fragmentSource, un.fragmentSource, r.fragmentSource).joi
27301
27301
  unitDisplay: "short",
27302
27302
  unit: n
27303
27303
  }).format(r) : `${r}&nbsp;${la[n]}`, this._container.style.width = e * i + "px";
27304
- });
27304
+ }));
27305
27305
  }
27306
27306
  onAdd(e) {
27307
27307
  return this._map = e, this._language = e.getLanguage(), this._container = a("div", "mapboxgl-ctrl mapboxgl-ctrl-scale", e.getContainer()), this._container.dir = "auto", this._map.on("move", this._update), this._update(), this._container;
@@ -27450,9 +27450,9 @@ ${mn}` : mn, mn, pn, fn.fragmentSource, un.fragmentSource, r.fragmentSource).joi
27450
27450
  let i = this._container;
27451
27451
  if (i || (i = this._container = a("div", "mapboxgl-popup", n.getContainer()), this._tip = a("div", "mapboxgl-popup-tip", i), i.appendChild(r)), this.options.maxWidth && i.style.maxWidth !== this.options.maxWidth && (i.style.maxWidth = this.options.maxWidth), n.transform.renderWorldCopies && !this._trackPointer && (this._lngLat = Y(this._lngLat, this._pos, n.transform)), !this._trackPointer || t) {
27452
27452
  let e = this._pos = this._trackPointer && t ? t : n.project(this._lngLat), r = X(this.options.offset), i = this._anchor = this._getAnchor(r.y), a = X(this.options.offset, i), o = e.add(a).round();
27453
- n._requestDomTask(() => {
27453
+ n._requestDomTask((() => {
27454
27454
  this._container && i && (this._container.style.transform = `${Qi[i]} translate(${o.x}px,${o.y}px)`);
27455
- });
27455
+ }));
27456
27456
  }
27457
27457
  if (!this._marker && n._showingGlobe()) {
27458
27458
  let t = +!e.isLngLatBehindGlobe(n.transform, this._lngLat);
@@ -27521,60 +27521,60 @@ ${mn}` : mn, mn, pn, fn.fragmentSource, un.fragmentSource, r.fragmentSource).joi
27521
27521
  restoreNow: e.exported.restoreNow
27522
27522
  };
27523
27523
  return ua;
27524
- }), n;
27525
- });
27526
- })), g = /* @__PURE__ */ e(r(), 1), _ = /* @__PURE__ */ e(h(), 1), v = /* @__PURE__ */ function(e) {
27524
+ })), n;
27525
+ }));
27526
+ })), g = /* @__PURE__ */ e(o(), 1), _ = /* @__PURE__ */ e(h(), 1), v = /* @__PURE__ */ function(e) {
27527
27527
  return e.booth = "booth", e.building = "building", e.other = "other", e;
27528
27528
  }(v || {});
27529
27529
  function y() {
27530
27530
  var e, t;
27531
- if (!o) return 0;
27532
- var n = o == null || (e = o.properties) == null ? void 0 : e.mpViewbox;
27531
+ if (!p) return 0;
27532
+ var n = p == null || (e = p.properties) == null ? void 0 : e.mpViewbox;
27533
27533
  if (!n || n.length < 4) return 0;
27534
- var r = o == null || (t = o.properties) == null ? void 0 : t.bearing;
27535
- let i = r == null ? -1 * p(n[1], n[0], n[3], n[2]) - 90 : r;
27534
+ var r = p == null || (t = p.properties) == null ? void 0 : t.bearing;
27535
+ let i = r == null ? -1 * u(n[1], n[0], n[3], n[2]) - 90 : r;
27536
27536
  return Math.abs(i) >= 360 && (i = 180), i;
27537
27537
  }
27538
27538
  function b() {
27539
- var e = 1e3, t = 1e3, n = -1e3, r = -1e3, i = o;
27540
- if (!o || !i.features) return c.fromXywh(0, 0, 100, 100);
27541
- var a = i.features.filter((e) => e.properties.type === v.booth);
27542
- if ((Array.isArray(a) ? a : [a]).forEach((i) => {
27543
- var a = i.geometry.coordinates[0] || [];
27544
- for (let i = 1; i < a.length; i++) {
27545
- let o = a[i];
27546
- o[0] < e && (e = o[0]), o[1] < t && (t = o[1]), o[0] > n && (n = o[0]), o[1] > r && (r = o[1]);
27539
+ var e = 1e3, t = 1e3, n = -1e3, i = -1e3, a = p;
27540
+ if (!p || !a.features) return r.fromXywh(0, 0, 100, 100);
27541
+ var o = a.features.filter((e) => e.properties.type === v.booth);
27542
+ if ((Array.isArray(o) ? o : [o]).forEach((r) => {
27543
+ var a = r.geometry.coordinates[0] || [];
27544
+ for (let r = 1; r < a.length; r++) {
27545
+ let o = a[r];
27546
+ o[0] < e && (e = o[0]), o[1] < t && (t = o[1]), o[0] > n && (n = o[0]), o[1] > i && (i = o[1]);
27547
27547
  }
27548
27548
  }), e === 1e3) {
27549
- var s, l = o == null || (s = o.properties) == null ? void 0 : s.mpViewbox, u = [
27550
- l[0],
27551
- l[2],
27552
- l[4]
27553
- ], d = [
27554
- l[1],
27555
- l[3],
27556
- l[5]
27549
+ var s, c = p == null || (s = p.properties) == null ? void 0 : s.mpViewbox, l = [
27550
+ c[0],
27551
+ c[2],
27552
+ c[4]
27553
+ ], u = [
27554
+ c[1],
27555
+ c[3],
27556
+ c[5]
27557
27557
  ];
27558
- return c.fromX1y1x2y2(Math.min(...u), Math.min(...d), Math.max(...u), Math.max(...d));
27558
+ return r.fromX1y1x2y2(Math.min(...l), Math.min(...u), Math.max(...l), Math.max(...u));
27559
27559
  }
27560
- return c.fromX1y1x2y2(e, t, n, r);
27560
+ return r.fromX1y1x2y2(e, t, n, i);
27561
27561
  }
27562
27562
  function x() {
27563
27563
  var e;
27564
- return (o == null || (e = o.properties) == null ? void 0 : e.style) || "light-v10";
27564
+ return (p == null || (e = p.properties) == null ? void 0 : e.style) || "light-v10";
27565
27565
  }
27566
27566
  function S(e) {
27567
27567
  let t;
27568
- if (e instanceof a) t = e.color || n.colors.booths.empty;
27569
- else if (e instanceof i) {
27570
- let r = n.colors.booths;
27571
- t = e.onHold ? e.holdColor || e.soldColor || r.default : e.exhibitors.length || e.reserved ? e.soldColor || r.default : e.availColor || r.empty;
27568
+ if (e instanceof s) t = e.color || l.colors.booths.empty;
27569
+ else if (e instanceof a) {
27570
+ let n = l.colors.booths;
27571
+ t = e.onHold ? e.holdColor || e.soldColor || n.default : e.exhibitors.length || e.reserved ? e.soldColor || n.default : e.availColor || n.empty;
27572
27572
  }
27573
27573
  return (t === "#666" || t === "#666666") && (t = "rgba(0,0,0,0.172)"), t;
27574
27574
  }
27575
27575
  function C(e) {
27576
27576
  var t;
27577
- return e.noLabels ? null : e instanceof a ? e.title || e.name : ((t = ((m.hideExhibitors ? [] : m.onlyFeaturedExhibitors ? e.exhibitors.filter((e) => e.featured) : e.exhibitors) || [])[0]) == null ? void 0 : t.name) || e.title || e.name;
27577
+ return e.noLabels ? null : e instanceof s ? e.title || e.name : ((t = ((c.hideExhibitors ? [] : c.onlyFeaturedExhibitors ? e.exhibitors.filter((e) => e.featured) : e.exhibitors) || [])[0]) == null ? void 0 : t.name) || e.title || e.name;
27578
27578
  }
27579
27579
  function w(e) {
27580
27580
  var t = parseInt(e).toString(16);
@@ -27619,14 +27619,14 @@ function j(e) {
27619
27619
  return k.width = t, k.height = n, A.fillStyle = "white", A.fillRect(0, 0, t, n), A.drawImage(e, 0, 0), A.getImageData(0, 0, t, n);
27620
27620
  }
27621
27621
  async function M(e) {
27622
- let t = (await d(e)).filter((e) => !!e);
27622
+ let t = (await f(e)).filter((e) => !!e);
27623
27623
  return t.forEach((e) => O.addImage(e.name, j(e.htmlImage))), t;
27624
27624
  }
27625
27625
  function N(e) {
27626
27626
  O = e;
27627
27627
  }
27628
27628
  function P(e, t) {
27629
- return l(e, t, o.properties.config);
27629
+ return n(e, t, p.properties.config);
27630
27630
  }
27631
27631
  function ee(e, t = 200, n = 1e3, r = T.initPitch, i = T.initBearing) {
27632
27632
  if (!O) return;
@@ -27637,20 +27637,20 @@ function ee(e, t = 200, n = 1e3, r = T.initPitch, i = T.initBearing) {
27637
27637
  duration: n,
27638
27638
  pitch: r,
27639
27639
  bearing: i
27640
- }), f.moveToRect = null;
27640
+ }), m.moveToRect = null;
27641
27641
  }
27642
- function F(e = 1e3, t = T.initPitch, n = T.initBearing) {
27643
- let { lng: r, lat: i, x: a, y: s } = u.routeStore.currentPosition;
27644
- if (!(r && i) && !o.properties.config) return;
27645
- let [c, d] = r && i ? [r, i] : l(a, s, o.properties.config);
27642
+ function F(e = 1e3, t = T.initPitch, r = T.initBearing) {
27643
+ let { lng: i, lat: a, x: o, y: s } = d.routeStore.currentPosition;
27644
+ if (!(i && a) && !p.properties.config) return;
27645
+ let [c, l] = i && a ? [i, a] : n(o, s, p.properties.config);
27646
27646
  O.flyTo({
27647
- center: [c, d],
27647
+ center: [c, l],
27648
27648
  essential: !0,
27649
27649
  duration: e,
27650
27650
  pitch: t,
27651
- bearing: n
27651
+ bearing: r
27652
27652
  }), O.once("moveend", () => {
27653
- f.moveToLocation = !1;
27653
+ m.moveToLocation = !1;
27654
27654
  });
27655
27655
  }
27656
27656
  function I(e) {
@@ -27662,10 +27662,10 @@ function I(e) {
27662
27662
  });
27663
27663
  }
27664
27664
  function te(e) {
27665
- e ? f.selectedBooths.size ? ee(c.fromMultiple([...f.selectedBooths].map((e) => e.rect))) : f.moveToRect = u.layerStore.rectangle || s : (f.moveToRect = u.layerStore.rectangle || s, ee(s, 0, 1200, 0, T.bearing)), u.mapboxStore.mapBoxSelected = e;
27665
+ e ? m.selectedBooths.size ? ee(r.fromMultiple([...m.selectedBooths].map((e) => e.rect))) : m.moveToRect = d.layerStore.rectangle || i : (m.moveToRect = d.layerStore.rectangle || i, ee(i, 0, 1200, 0, T.bearing)), d.mapboxStore.mapBoxSelected = e;
27666
27666
  }
27667
27667
  function ne(e, t) {
27668
- return o.features.forEach((n) => {
27668
+ return p.features.forEach((n) => {
27669
27669
  var r;
27670
27670
  if (n.properties.id = (r = n.properties.id) == null ? void 0 : r.substring(1), n.properties.height = T.extrusion[n.properties.type] || T.extrusion.booths, n.properties.type === v.booth) {
27671
27671
  let r = e.filter((e) => e.name === n.properties.id)[0];
@@ -27681,34 +27681,34 @@ function ne(e, t) {
27681
27681
  let e = n.properties.color;
27682
27682
  n.properties.color = `#${w(e.R || e.r || 0)}${w(e.G || e.g || 0)}${w(e.B || e.b || 0)}`;
27683
27683
  }
27684
- }), re([...f.selectedBooths], u.boothStore.booths), O.addSource("data", {
27684
+ }), re([...m.selectedBooths], d.boothStore.booths), O.addSource("data", {
27685
27685
  type: "geojson",
27686
- data: o
27686
+ data: p
27687
27687
  });
27688
27688
  }
27689
27689
  function L(e, t) {
27690
27690
  var n;
27691
- o.features.forEach((n) => {
27691
+ p.features.forEach((n) => {
27692
27692
  if (n.properties.type === v.booth) {
27693
27693
  var r = t.find((e) => e.name === n.properties.id);
27694
27694
  e.indexOf(r) > -1 ? n.properties.height = 4 * T.extrusion.booths : n.properties.height = T.extrusion.booths;
27695
27695
  }
27696
- }), (n = O.getSource("data")) == null || n.setData(o);
27696
+ }), (n = O.getSource("data")) == null || n.setData(p);
27697
27697
  }
27698
27698
  function re(e, t) {
27699
27699
  var n;
27700
- o.features.forEach((n) => {
27700
+ p.features.forEach((n) => {
27701
27701
  if (n.properties.type === v.booth) {
27702
27702
  let r = t.find((e) => e.name === n.properties.id), i = S(r);
27703
27703
  e.length ? n.properties.color = e.indexOf(r) === -1 ? (0, g.default)(i).darken(.7).hex() : "#f03b55" : n.properties.color = i;
27704
27704
  }
27705
- }), (n = O.getSource("data")) == null || n.setData(o);
27705
+ }), (n = O.getSource("data")) == null || n.setData(p);
27706
27706
  }
27707
27707
  function ie(e) {
27708
27708
  let t = [];
27709
27709
  return e.forEach((e) => {
27710
27710
  var n, r;
27711
- ((n = (r = o.images) == null ? void 0 : r.filter((t) => t.layer === e.name)) == null ? [] : n).forEach((n, r) => {
27711
+ ((n = (r = p.images) == null ? void 0 : r.filter((t) => t.layer === e.name)) == null ? [] : n).forEach((n, r) => {
27712
27712
  let i = e.name + "--bg_" + r;
27713
27713
  t.push(i), O.addSource(i, {
27714
27714
  type: "image",
@@ -27773,7 +27773,7 @@ function ie(e) {
27773
27773
  }
27774
27774
  });
27775
27775
  }), e.forEach((e) => {
27776
- o.features.filter((t) => t.properties.type === v.booth && t.properties.layer === e.name).length && (t.push(e.name), t.push(e.name + "--labels"), t.push(e.name + "--logos"), O.addLayer({
27776
+ p.features.filter((t) => t.properties.type === v.booth && t.properties.layer === e.name).length && (t.push(e.name), t.push(e.name + "--labels"), t.push(e.name + "--logos"), O.addLayer({
27777
27777
  id: e.name,
27778
27778
  type: "fill-extrusion",
27779
27779
  source: "data",
@@ -27838,7 +27838,7 @@ function ie(e) {
27838
27838
  "text-ignore-placement": !1,
27839
27839
  visibility: e.visible ? "visible" : "none"
27840
27840
  },
27841
- paint: { "text-color": n.boothLabelColor }
27841
+ paint: { "text-color": l.boothLabelColor }
27842
27842
  }), O.addLayer({
27843
27843
  id: e.name + "--logos",
27844
27844
  type: "symbol",
@@ -27906,17 +27906,17 @@ function R() {
27906
27906
  });
27907
27907
  }
27908
27908
  function ae(e, t) {
27909
- var n = D[e];
27909
+ var r = D[e];
27910
27910
  if (!t) {
27911
- n == null || n.remove(), D[e] = null;
27911
+ r == null || r.remove(), D[e] = null;
27912
27912
  return;
27913
27913
  }
27914
- let { x: r, y: i } = t, a = t.lat && t.lng ? [t.lng, t.lat] : l(r, i, o.properties.config);
27915
- if (!n) {
27914
+ let { x: i, y: a } = t, o = t.lat && t.lng ? [t.lng, t.lat] : n(i, a, p.properties.config);
27915
+ if (!r) {
27916
27916
  var s = document.createElement("div");
27917
- s.className = `marker ${e}`, n = new _.default.Marker(s, { rotationAlignment: e !== "to" && e !== "yah" ? "map" : "auto" }).setLngLat(a), n.addTo(O), D[e] = n;
27917
+ s.className = `marker ${e}`, r = new _.default.Marker(s, { rotationAlignment: e !== "to" && e !== "yah" ? "map" : "auto" }).setLngLat(o), r.addTo(O), D[e] = r;
27918
27918
  }
27919
- n.setLngLat(a);
27919
+ r.setLngLat(o);
27920
27920
  }
27921
27921
  function oe() {
27922
27922
  O.addSource("wfData", {
@@ -27941,15 +27941,15 @@ function oe() {
27941
27941
  });
27942
27942
  }
27943
27943
  function se(e) {
27944
- var t, n, r = O.getSource("wfData");
27945
- r || (oe(), r = O.getSource("wfData"));
27946
- var i = e.routeLines.filter((e) => {
27944
+ var t, r, i = O.getSource("wfData");
27945
+ i || (oe(), i = O.getSource("wfData"));
27946
+ var a = e.routeLines.filter((e) => {
27947
27947
  var t, n;
27948
- let r = (t = (n = u.layerStore.layers.find((t) => t.name === e.p0.layer)) == null ? void 0 : n.visible) == null ? !0 : t;
27948
+ let r = (t = (n = d.layerStore.layers.find((t) => t.name === e.p0.layer)) == null ? void 0 : n.visible) == null ? !0 : t;
27949
27949
  return !e.virtual && r;
27950
- }), a = (t = i[0]) == null ? void 0 : t.p0, s = (n = i[i.length - 1]) == null ? void 0 : n.p1, c = [];
27951
- s && (c = i.map((e) => l(e.p0.x, e.p0.y, o.properties.config)), c.push(l(s.x, s.y, o.properties.config)));
27952
- var d = {
27950
+ }), o = (t = a[0]) == null ? void 0 : t.p0, s = (r = a[a.length - 1]) == null ? void 0 : r.p1, c = [];
27951
+ s && (c = a.map((e) => n(e.p0.x, e.p0.y, p.properties.config)), c.push(n(s.x, s.y, p.properties.config)));
27952
+ var l = {
27953
27953
  type: "FeatureCollection",
27954
27954
  features: [{
27955
27955
  type: "Feature",
@@ -27960,7 +27960,7 @@ function se(e) {
27960
27960
  }
27961
27961
  }]
27962
27962
  };
27963
- r.setData(d), ae("from", s), ae("to", a);
27963
+ i.setData(l), ae("from", s), ae("to", o);
27964
27964
  }
27965
27965
  //#endregion
27966
27966
  export { h as _, ee as a, ne as c, ae as d, te as f, I as g, re as h, F as i, ie as l, se as m, C as n, T as o, L as p, M as r, R as s, S as t, N as u };