@mapsindoors/map-template 1.36.2 → 1.36.3

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 (41) hide show
  1. package/dist/{combo-box-item.entry-7ad80dca.mjs → combo-box-item.entry-a8da1eb2.mjs} +1 -1
  2. package/dist/mapsindoors-react.es.js +1 -1
  3. package/dist/mapsindoors-react.umd.js +11 -11
  4. package/dist/mapsindoors-webcomponent.es.js +214 -214
  5. package/dist/mapsindoors-webcomponent.umd.js +7 -7
  6. package/dist/{mi-card_2.entry-2fc701d3.mjs → mi-card_2.entry-df1ce762.mjs} +1 -1
  7. package/dist/{mi-chip.entry-8939d810.mjs → mi-chip.entry-197de37c.mjs} +1 -1
  8. package/dist/{mi-column.entry-d4637373.mjs → mi-column.entry-5a9cf6bd.mjs} +1 -1
  9. package/dist/{mi-combo-box.entry-b4b1682d.mjs → mi-combo-box.entry-f257f857.mjs} +1 -1
  10. package/dist/{mi-data-table.entry-118bc6bc.mjs → mi-data-table.entry-3dec6a4e.mjs} +1 -1
  11. package/dist/{mi-distance_2.entry-1763e887.mjs → mi-distance_2.entry-d550f85a.mjs} +1 -1
  12. package/dist/{mi-dropdown-item.entry-e4011c86.mjs → mi-dropdown-item.entry-2a3b1fe9.mjs} +1 -1
  13. package/dist/{mi-dropdown.entry-8720ecec.mjs → mi-dropdown.entry-7385e704.mjs} +1 -1
  14. package/dist/{mi-floor-selector.entry-2f99920e.mjs → mi-floor-selector.entry-299ac3d8.mjs} +1 -1
  15. package/dist/{mi-keyboard.entry-b8be44e6.mjs → mi-keyboard.entry-87cc3cda.mjs} +1 -1
  16. package/dist/{mi-list-item-category.entry-ac4908f1.mjs → mi-list-item-category.entry-2ad7e530.mjs} +1 -1
  17. package/dist/{mi-list-item-location.entry-119de7b8.mjs → mi-list-item-location.entry-bb959a5b.mjs} +1 -1
  18. package/dist/{mi-list.entry-729757b2.mjs → mi-list.entry-d9e954d8.mjs} +1 -1
  19. package/dist/{mi-location-booking.entry-99d100cf.mjs → mi-location-booking.entry-0fddb3bb.mjs} +1 -1
  20. package/dist/{mi-location-info.entry-ecb87c14.mjs → mi-location-info.entry-11ef0b20.mjs} +1 -1
  21. package/dist/{mi-map-googlemaps.entry-e90253a8.mjs → mi-map-googlemaps.entry-568d65cb.mjs} +1 -1
  22. package/dist/{mi-map-mapbox.entry-a4f755a9.mjs → mi-map-mapbox.entry-708b6d23.mjs} +1 -1
  23. package/dist/{mi-metric-card.entry-afa8e914.mjs → mi-metric-card.entry-0e26ae28.mjs} +1 -1
  24. package/dist/{mi-my-position.entry-94e0d269.mjs → mi-my-position.entry-b42743e7.mjs} +1 -1
  25. package/dist/{mi-notification.entry-7294b4cd.mjs → mi-notification.entry-d1a8779f.mjs} +1 -1
  26. package/dist/{mi-route-instructions-heading.entry-3a992323.mjs → mi-route-instructions-heading.entry-9fe18478.mjs} +1 -1
  27. package/dist/{mi-route-instructions-maneuver-legacy.entry-44bc1e6b.mjs → mi-route-instructions-maneuver-legacy.entry-c7d16491.mjs} +1 -1
  28. package/dist/{mi-route-instructions-maneuver.entry-6dc90010.mjs → mi-route-instructions-maneuver.entry-33a20308.mjs} +1 -1
  29. package/dist/{mi-route-instructions-step-legacy.entry-25557914.mjs → mi-route-instructions-step-legacy.entry-b62757d0.mjs} +1 -1
  30. package/dist/{mi-route-instructions-step.entry-31f0839e.mjs → mi-route-instructions-step.entry-e4aa44b0.mjs} +1 -1
  31. package/dist/{mi-route-instructions.entry-aa8e062d.mjs → mi-route-instructions.entry-8738360a.mjs} +1 -1
  32. package/dist/{mi-scroll-buttons.entry-fb0dd58d.mjs → mi-scroll-buttons.entry-d44c3783.mjs} +1 -1
  33. package/dist/{mi-search.entry-04ea343c.mjs → mi-search.entry-db0a2f80.mjs} +1 -1
  34. package/dist/{mi-share-sms.entry-2cca01f3.mjs → mi-share-sms.entry-d24114cc.mjs} +1 -1
  35. package/dist/{mi-step-switcher.entry-64fef0e0.mjs → mi-step-switcher.entry-57e57f1c.mjs} +1 -1
  36. package/dist/{mi-tab-panel.entry-0fc3b164.mjs → mi-tab-panel.entry-afc5817f.mjs} +1 -1
  37. package/dist/{mi-tab.entry-34301207.mjs → mi-tab.entry-d6ca36c0.mjs} +1 -1
  38. package/dist/{mi-tabs.entry-68de54de.mjs → mi-tabs.entry-dd5b6589.mjs} +1 -1
  39. package/dist/{mi-time.entry-bbf9838f.mjs → mi-time.entry-37c98677.mjs} +1 -1
  40. package/dist/{reactcomponent-ca5d8dc9.mjs → reactcomponent-8018fe70.mjs} +313 -313
  41. package/package.json +1 -1
@@ -6957,20 +6957,20 @@ var gG = pG(function(i) {
6957
6957
  var Te = this.mask, Ue = this.children, it = C(Ut, bt), ct = z(it), lt = L(Te, ct), _t = Te & ct, xt = _t ? Ue[lt] : ce, vt = xt._modify(Be, wt, Ut + u, at, bt, St, Pt);
6958
6958
  if (xt === vt)
6959
6959
  return this;
6960
- var Et = ke(Be, this), Mt = Te, Wt = void 0;
6960
+ var Et = ke(Be, this), Mt = Te, qt = void 0;
6961
6961
  if (_t && le(vt)) {
6962
6962
  if (Mt &= ~ct, !Mt)
6963
6963
  return ce;
6964
6964
  if (Ue.length <= 2 && Qe(Ue[lt ^ 1]))
6965
6965
  return Ue[lt ^ 1];
6966
- Wt = Y(Et, lt, Ue);
6966
+ qt = Y(Et, lt, Ue);
6967
6967
  } else if (!_t && !le(vt)) {
6968
6968
  if (Ue.length >= _)
6969
6969
  return we(Be, it, vt, Te, Ue);
6970
- Mt |= ct, Wt = B(Et, lt, vt, Ue);
6970
+ Mt |= ct, qt = B(Et, lt, vt, Ue);
6971
6971
  } else
6972
- Wt = R(Et, lt, vt, Ue);
6973
- return Et ? (this.mask = Mt, this.children = Wt, this) : _e(Be, Mt, Wt);
6972
+ qt = R(Et, lt, vt, Ue);
6973
+ return Et ? (this.mask = Mt, this.children = qt, this) : _e(Be, Mt, qt);
6974
6974
  }, ee = function(Be, wt, Ut, at, bt, St, Pt) {
6975
6975
  var Te = this.size, Ue = this.children, it = C(Ut, bt), ct = Ue[it], lt = (ct || ce)._modify(Be, wt, Ut + u, at, bt, St, Pt);
6976
6976
  if (ct === lt)
@@ -13880,7 +13880,7 @@ var YO = { exports: {} };
13880
13880
  const vt = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=";
13881
13881
  let Et, Mt;
13882
13882
  Et = [], Mt = 0;
13883
- const Wt = function(t, e) {
13883
+ const qt = function(t, e) {
13884
13884
  if (C.supported && (t.headers || (t.headers = {}), t.headers.accept = "image/webp,*/*"), Mt >= S.MAX_PARALLEL_IMAGE_REQUESTS) {
13885
13885
  const l = { requestParameters: t, callback: e, cancelled: !1, cancel() {
13886
13886
  this.cancelled = !0;
@@ -13893,7 +13893,7 @@ var YO = { exports: {} };
13893
13893
  if (!n)
13894
13894
  for (n = !0, Mt--; Et.length && Mt < S.MAX_PARALLEL_IMAGE_REQUESTS; ) {
13895
13895
  const l = Et.shift(), { requestParameters: c, callback: h, cancelled: f } = l;
13896
- f || (l.cancel = Wt(c, h).cancel);
13896
+ f || (l.cancel = qt(c, h).cancel);
13897
13897
  }
13898
13898
  }, s = _t(t, (l, c, h, f) => {
13899
13899
  r(), l ? e(l) : c && (m.createImageBitmap ? function(p, y) {
@@ -13938,35 +13938,35 @@ var YO = { exports: {} };
13938
13938
  return this._transformRequestFn && this._transformRequestFn(e, n) || { url: e };
13939
13939
  }
13940
13940
  normalizeStyleURL(e, n) {
13941
- if (!qt(e))
13941
+ if (!Ht(e))
13942
13942
  return e;
13943
13943
  const r = Hi(e);
13944
13944
  return r.params.push(`sdk=js-${I}`), r.path = `/styles/v1${r.path}`, this._makeAPIURL(r, this._customAccessToken || n);
13945
13945
  }
13946
13946
  normalizeGlyphsURL(e, n) {
13947
- if (!qt(e))
13947
+ if (!Ht(e))
13948
13948
  return e;
13949
13949
  const r = Hi(e);
13950
13950
  return r.path = `/fonts/v1${r.path}`, this._makeAPIURL(r, this._customAccessToken || n);
13951
13951
  }
13952
13952
  normalizeModelURL(e, n) {
13953
- if (!qt(e))
13953
+ if (!Ht(e))
13954
13954
  return e;
13955
13955
  const r = Hi(e);
13956
13956
  return r.path = `/models/v1${r.path}`, this._makeAPIURL(r, this._customAccessToken || n);
13957
13957
  }
13958
13958
  normalizeSourceURL(e, n, r, s) {
13959
- if (!qt(e))
13959
+ if (!Ht(e))
13960
13960
  return e;
13961
13961
  const l = Hi(e);
13962
13962
  return l.path = `/v4/${l.authority}.json`, l.params.push("secure"), r && l.params.push(`language=${r}`), s && l.params.push(`worldview=${s}`), this._makeAPIURL(l, this._customAccessToken || n);
13963
13963
  }
13964
13964
  normalizeSpriteURL(e, n, r, s) {
13965
13965
  const l = Hi(e);
13966
- return qt(e) ? (l.path = `/styles/v1${l.path}/sprite${n}${r}`, this._makeAPIURL(l, this._customAccessToken || s)) : (l.path += `${n}${r}`, Er(l));
13966
+ return Ht(e) ? (l.path = `/styles/v1${l.path}/sprite${n}${r}`, this._makeAPIURL(l, this._customAccessToken || s)) : (l.path += `${n}${r}`, Er(l));
13967
13967
  }
13968
13968
  normalizeTileURL(e, n, r) {
13969
- if (this._isSkuTokenExpired() && this._createSkuToken(), e && !qt(e))
13969
+ if (this._isSkuTokenExpired() && this._createSkuToken(), e && !Ht(e))
13970
13970
  return e;
13971
13971
  const s = Hi(e);
13972
13972
  s.path = s.path.replace(/(\.(png|jpg)\d*)(?=$)/, `${n || r && s.authority !== "raster" && r === 512 ? "@2x" : ""}${C.supported ? ".webp" : "$1"}`), s.authority === "raster" ? s.path = `/${S.RASTER_URL_PREFIX}${s.path}` : (s.path = s.path.replace(/^.+\/v4\//, "/"), s.path = `/${S.TILE_URL_VERSION}${s.path}`);
@@ -13990,7 +13990,7 @@ var YO = { exports: {} };
13990
13990
  return n && (l = l.filter((c) => !c.match(/^access_token=/))), l.length && (s += `?${l.join("&")}`), s;
13991
13991
  }
13992
13992
  canonicalizeTileset(e, n) {
13993
- const r = !!n && qt(n), s = [];
13993
+ const r = !!n && Ht(n), s = [];
13994
13994
  for (const l of e.tiles || [])
13995
13995
  Dn(l) ? s.push(this.canonicalizeTileURL(l, r)) : s.push(l);
13996
13996
  return s;
@@ -14012,7 +14012,7 @@ var YO = { exports: {} };
14012
14012
  return e.params = e.params.filter((l) => l.indexOf("access_token") === -1), e.params.push(`access_token=${n || ""}`), Er(e);
14013
14013
  }
14014
14014
  }
14015
- function qt(t) {
14015
+ function Ht(t) {
14016
14016
  return t.indexOf("mapbox:") === 0;
14017
14017
  }
14018
14018
  function Dn(t) {
@@ -14104,7 +14104,7 @@ var YO = { exports: {} };
14104
14104
  super("appUserTurnstile"), this._customAccessToken = t;
14105
14105
  }
14106
14106
  postTurnstileEvent(t, e) {
14107
- S.EVENTS_URL && S.ACCESS_TOKEN && Array.isArray(t) && t.some((n) => qt(n) || Dn(n)) && this.queueRequest(Date.now(), e);
14107
+ S.EVENTS_URL && S.ACCESS_TOKEN && Array.isArray(t) && t.some((n) => Ht(n) || Dn(n)) && this.queueRequest(Date.now(), e);
14108
14108
  }
14109
14109
  processRequests(t) {
14110
14110
  if (this.pendingRequest || this.queue.length === 0)
@@ -23727,7 +23727,7 @@ Use an identity property function instead: ${M}.`)];
23727
23727
  It.trim();
23728
23728
  const Tt = It.getMaxScale(), At = (Tt - 1) * Ki, zt = { positionedGlyphs: [], lineOffset: 0 };
23729
23729
  P.positionedLines[qe] = zt;
23730
- const Zt = zt.positionedGlyphs;
23730
+ const Gt = zt.positionedGlyphs;
23731
23731
  let Rt = 0;
23732
23732
  if (!It.length()) {
23733
23733
  ye += ie, ++qe;
@@ -23764,18 +23764,18 @@ Use an identity property function instead: ${M}.`)];
23764
23764
  } else
23765
23765
  bi = w6 + (Tt - hn) * Ki;
23766
23766
  }
23767
- xi ? (P.verticalizable = !0, Zt.push({ glyph: wn, imageName: Yn, x: ge, y: ye + bi, vertical: xi, scale: hn, localGlyph: Hn.localGlyph, fontStack: Ft.fontStack, sectionIndex: xn, metrics: Hn, rect: vi }), ge += Jn * hn + me) : (Zt.push({ glyph: wn, imageName: Yn, x: ge, y: ye + bi, vertical: xi, scale: hn, localGlyph: Hn.localGlyph, fontStack: Ft.fontStack, sectionIndex: xn, metrics: Hn, rect: vi }), ge += Hn.advance * hn + me);
23767
+ xi ? (P.verticalizable = !0, Gt.push({ glyph: wn, imageName: Yn, x: ge, y: ye + bi, vertical: xi, scale: hn, localGlyph: Hn.localGlyph, fontStack: Ft.fontStack, sectionIndex: xn, metrics: Hn, rect: vi }), ge += Jn * hn + me) : (Gt.push({ glyph: wn, imageName: Yn, x: ge, y: ye + bi, vertical: xi, scale: hn, localGlyph: Hn.localGlyph, fontStack: Ft.fontStack, sectionIndex: xn, metrics: Hn, rect: vi }), ge += Hn.advance * hn + me);
23768
23768
  }
23769
- Zt.length !== 0 && (Re = Math.max(ge - me, Re), Fe ? C6(Zt, Ve, Rt, _n, ie * Tt / 2) : C6(Zt, Ve, Rt, 0, ie / 2)), ge = 0;
23770
- const Gt = ie * Tt + Rt;
23771
- zt.lineOffset = Math.max(Rt, At), ye += Gt, ++qe;
23769
+ Gt.length !== 0 && (Re = Math.max(ge - me, Re), Fe ? C6(Gt, Ve, Rt, _n, ie * Tt / 2) : C6(Gt, Ve, Rt, 0, ie / 2)), ge = 0;
23770
+ const Wt = ie * Tt + Rt;
23771
+ zt.lineOffset = Math.max(Rt, At), ye += Wt, ++qe;
23772
23772
  }
23773
23773
  var Xe;
23774
23774
  const tt = ye, { horizontalAlign: $e, verticalAlign: st } = ug(re);
23775
- (function(It, Tt, At, zt, Zt, Rt) {
23776
- const Tn = (Tt - At) * Zt, _n = -Rt * zt;
23777
- for (const Gt of It)
23778
- for (const $t of Gt.positionedGlyphs)
23775
+ (function(It, Tt, At, zt, Gt, Rt) {
23776
+ const Tn = (Tt - At) * Gt, _n = -Rt * zt;
23777
+ for (const Wt of It)
23778
+ for (const $t of Wt.positionedGlyphs)
23779
23779
  $t.x += Tn, $t.y += _n;
23780
23780
  })(P.positionedLines, Ve, $e, st, Re, tt), P.top += -st * tt, P.bottom = P.top + tt, P.left += -$e * Re, P.right = P.left + Re, P.hasBaseline = Fe;
23781
23781
  }(O, e, n, r, D, c, h, f, v, p, x, w), !function(P) {
@@ -24188,11 +24188,11 @@ Use an identity property function instead: ${M}.`)];
24188
24188
  const J = (ie, re, pe, ne) => {
24189
24189
  const me = dg(ie.stretch - N, j, p, t.left), xe = fg(ie.fixed - P, Q, ie.stretch, w), Ee = dg(re.stretch - k, O, y, t.top), ge = fg(re.fixed - G, q, re.stretch, T), ye = dg(pe.stretch - N, j, p, t.left), Re = fg(pe.fixed - P, Q, pe.stretch, w), Ve = dg(ne.stretch - k, O, y, t.top), Fe = fg(ne.fixed - G, q, ne.stretch, T), qe = new Z(me, Ee), Xe = new Z(ye, Ee), tt = new Z(ye, Ve), $e = new Z(me, Ve), st = new Z(xe / c, ge / c), It = new Z(Re / c, Fe / c), Tt = e * Math.PI / 180;
24190
24190
  if (Tt) {
24191
- const _n = Math.sin(Tt), Gt = Math.cos(Tt), $t = [Gt, -_n, _n, Gt];
24191
+ const _n = Math.sin(Tt), Wt = Math.cos(Tt), $t = [Wt, -_n, _n, Wt];
24192
24192
  qe._matMult($t), Xe._matMult($t), $e._matMult($t), tt._matMult($t);
24193
24193
  }
24194
- const At = ie.stretch + ie.fixed, zt = pe.stretch + pe.fixed, Zt = re.stretch + re.fixed, Rt = ne.stretch + ne.fixed, Tn = t.imageSecondary;
24195
- return { tl: qe, tr: Xe, bl: $e, br: tt, texPrimary: { x: l.paddedRect.x + ja + At, y: l.paddedRect.y + ja + Zt, w: zt - At, h: Rt - Zt }, texSecondary: Tn ? { x: Tn.paddedRect.x + ja + At, y: Tn.paddedRect.y + ja + Zt, w: zt - At, h: Rt - Zt } : void 0, writingMode: void 0, glyphOffset: [0, 0], sectionIndex: 0, pixelOffsetTL: st, pixelOffsetBR: It, minFontScaleX: Q / c / p, minFontScaleY: q / c / y, isSDF: n };
24194
+ const At = ie.stretch + ie.fixed, zt = pe.stretch + pe.fixed, Gt = re.stretch + re.fixed, Rt = ne.stretch + ne.fixed, Tn = t.imageSecondary;
24195
+ return { tl: qe, tr: Xe, bl: $e, br: tt, texPrimary: { x: l.paddedRect.x + ja + At, y: l.paddedRect.y + ja + Gt, w: zt - At, h: Rt - Gt }, texSecondary: Tn ? { x: Tn.paddedRect.x + ja + At, y: Tn.paddedRect.y + ja + Gt, w: zt - At, h: Rt - Gt } : void 0, writingMode: void 0, glyphOffset: [0, 0], sectionIndex: 0, pixelOffsetTL: st, pixelOffsetBR: It, minFontScaleX: Q / c / p, minFontScaleY: q / c / y, isSDF: n };
24196
24196
  };
24197
24197
  if (r && (l.stretchX || l.stretchY)) {
24198
24198
  const ie = B6(v, D, w), re = B6(x, E, T);
@@ -24432,7 +24432,7 @@ Use an identity property function instead: ${M}.`)];
24432
24432
  const { x: tt, y: $e, z: st } = x.projectTilePoint(Fe.x, Fe.y, qe);
24433
24433
  Xe = { anchor: new qs(tt, $e, st, 0, void 0), up: x.upVector(qe, Fe.x, Fe.y) };
24434
24434
  }
24435
- (function(tt, $e, st, It, Tt, At, zt, Zt, Rt, Tn, _n, Gt, $t, Ft, xn, wn, hn, Hn, vi, Yn, Jn, bi, xi, ri, Un, ir, _s) {
24435
+ (function(tt, $e, st, It, Tt, At, zt, Gt, Rt, Tn, _n, Wt, $t, Ft, xn, wn, hn, Hn, vi, Yn, Jn, bi, xi, ri, Un, ir, _s) {
24436
24436
  const Ks = tt.addToLineVertexArray($e, It);
24437
24437
  let Xs, _d, vd, lm, GS, WS, qS, KS = 0, XS = 0, JS = 0, eE = 0, O2 = -1, j2 = -1;
24438
24438
  const vs = {};
@@ -24442,22 +24442,22 @@ Use an identity property function instead: ${M}.`)];
24442
24442
  if (Rt._unevaluatedLayout.getValue("text-radial-offset") === void 0 ? [P2, R2] = Rt.layout.get("text-offset").evaluate(Jn, {}, Un).map((Wr) => Wr * Ki) : (P2 = Rt.layout.get("text-radial-offset").evaluate(Jn, {}, Un) * Ki, R2 = zx), tt.allowVerticalPlacement && Tt.vertical) {
24443
24443
  const Wr = Tt.vertical;
24444
24444
  if (xn)
24445
- WS = jx(Wr), Zt && (qS = jx(Zt));
24445
+ WS = jx(Wr), Gt && (qS = jx(Gt));
24446
24446
  else {
24447
24447
  const qr = Rt.layout.get("text-rotate").evaluate(Jn, {}, Un) + 90;
24448
- vd = pg(Tn, Ql, $e, _n, Gt, $t, Wr, Ft, qr, wn), Zt && (lm = pg(Tn, Ql, $e, _n, Gt, $t, Zt, Hn, qr));
24448
+ vd = pg(Tn, Ql, $e, _n, Wt, $t, Wr, Ft, qr, wn), Gt && (lm = pg(Tn, Ql, $e, _n, Wt, $t, Gt, Hn, qr));
24449
24449
  }
24450
24450
  }
24451
24451
  if (At) {
24452
- const Wr = Rt.layout.get("icon-rotate").evaluate(Jn, {}, Un), qr = U6(At, Wr, xi, k2), lu = Zt ? U6(Zt, Wr, xi, k2) : void 0;
24453
- _d = pg(Tn, Ql, $e, _n, Gt, $t, At, Hn, Wr), KS = 4 * qr.length;
24452
+ const Wr = Rt.layout.get("icon-rotate").evaluate(Jn, {}, Un), qr = U6(At, Wr, xi, k2), lu = Gt ? U6(Gt, Wr, xi, k2) : void 0;
24453
+ _d = pg(Tn, Ql, $e, _n, Wt, $t, At, Hn, Wr), KS = 4 * qr.length;
24454
24454
  const nE = tt.iconSizeData;
24455
24455
  let Yl = null;
24456
24456
  nE.kind === "source" ? (Yl = [Qo * Rt.layout.get("icon-size").evaluate(Jn, {}, Un)], Yl[0] > ka && se(`${tt.layerIds[0]}: Value for "icon-size" is >= ${Kh}. Reduce your "icon-size".`)) : nE.kind === "composite" && (Yl = [Qo * bi.compositeIconSizes[0].evaluate(Jn, {}, Un), Qo * bi.compositeIconSizes[1].evaluate(Jn, {}, Un)], (Yl[0] > ka || Yl[1] > ka) && se(`${tt.layerIds[0]}: Value for "icon-size" is >= ${Kh}. Reduce your "icon-size".`)), tt.addSymbols(tt.icon, qr, Yl, Yn, vi, Jn, !1, st, $e, Ks.lineStartIndex, Ks.lineLength, -1, ri, Un, ir, _s), O2 = tt.icon.placedSymbolArray.length - 1, lu && (XS = 4 * lu.length, tt.addSymbols(tt.icon, lu, Yl, Yn, vi, Jn, ai.vertical, st, $e, Ks.lineStartIndex, Ks.lineLength, -1, ri, Un, ir, _s), j2 = tt.icon.placedSymbolArray.length - 1);
24457
24457
  }
24458
24458
  for (const Wr in Tt.horizontal) {
24459
24459
  const qr = Tt.horizontal[Wr];
24460
- Xs || (tE = Lv(qr.text), xn ? GS = jx(qr) : Xs = pg(Tn, Ql, $e, _n, Gt, $t, qr, Ft, Rt.layout.get("text-rotate").evaluate(Jn, {}, Un), wn));
24460
+ Xs || (tE = Lv(qr.text), xn ? GS = jx(qr) : Xs = pg(Tn, Ql, $e, _n, Wt, $t, qr, Ft, Rt.layout.get("text-rotate").evaluate(Jn, {}, Un), wn));
24461
24461
  const lu = qr.positionedLines.length === 1;
24462
24462
  if (JS += F6(tt, st, $e, qr, zt, Rt, xn, Jn, wn, Ks, Tt.vertical ? ai.horizontal : ai.horizontalOnly, lu ? Object.keys(Tt.horizontal) : [Wr], vs, O2, bi, ri, Un, ir), lu)
24463
24463
  break;
@@ -24532,18 +24532,18 @@ Use an identity property function instead: ${M}.`)];
24532
24532
  if (zt === null)
24533
24533
  continue;
24534
24534
  re && P.verticalizable && (st = Fe.imageName ? Tt - Fe.metrics.width * Fe.scale / 2 : 0);
24535
- const Zt = q ? [Fe.x + Tt, Fe.y] : [0, 0];
24535
+ const Gt = q ? [Fe.x + Tt, Fe.y] : [0, 0];
24536
24536
  let Rt = [0, 0], Tn = [0, 0], _n = !1;
24537
24537
  q || (It ? (Tn = [Fe.x + Tt + me[0], Fe.y + me[1] - st], _n = !0) : Rt = [Fe.x + Tt + Q[0], Fe.y + Q[1] - st]);
24538
- const Gt = zt.w * Fe.scale / ($e * (Fe.localGlyph ? Yo : 1)), $t = zt.h * Fe.scale / ($e * (Fe.localGlyph ? Yo : 1));
24538
+ const Wt = zt.w * Fe.scale / ($e * (Fe.localGlyph ? Yo : 1)), $t = zt.h * Fe.scale / ($e * (Fe.localGlyph ? Yo : 1));
24539
24539
  let Ft, xn, wn, hn;
24540
24540
  if (It) {
24541
24541
  const Yn = Fe.y - ye, Jn = new Z(-Tt, Tt - Yn), bi = -Math.PI / 2, xi = new Z(...Tn);
24542
24542
  Ft = new Z(-Tt + Rt[0], Rt[1]), Ft._rotateAround(bi, Jn)._add(xi), Ft.x += -Yn + Tt, Ft.y -= (At.left - Xe) * Fe.scale;
24543
24543
  const ri = Fe.imageName ? At.advance * Fe.scale : Ki * Fe.scale, Un = String.fromCodePoint(Fe.glyph);
24544
- WU(Un) ? Ft.x += (1 - Xe) * Fe.scale : qU(Un) ? Ft.x += ri - At.height * Fe.scale + (-Xe - 1) * Fe.scale : Ft.x += Fe.imageName || At.width + 2 * Xe === zt.w && At.height + 2 * Xe === zt.h ? (ri - $t) / 2 : (ri - (At.height + 2 * Xe) * Fe.scale) / 2, xn = new Z(Ft.x, Ft.y - Gt), wn = new Z(Ft.x + $t, Ft.y), hn = new Z(Ft.x + $t, Ft.y - Gt);
24544
+ WU(Un) ? Ft.x += (1 - Xe) * Fe.scale : qU(Un) ? Ft.x += ri - At.height * Fe.scale + (-Xe - 1) * Fe.scale : Ft.x += Fe.imageName || At.width + 2 * Xe === zt.w && At.height + 2 * Xe === zt.h ? (ri - $t) / 2 : (ri - (At.height + 2 * Xe) * Fe.scale) / 2, xn = new Z(Ft.x, Ft.y - Wt), wn = new Z(Ft.x + $t, Ft.y), hn = new Z(Ft.x + $t, Ft.y - Wt);
24545
24545
  } else {
24546
- const Yn = (At.left - Xe) * Fe.scale - Tt + Rt[0], Jn = (-At.top - Xe) * Fe.scale + Rt[1], bi = Yn + Gt, xi = Jn + $t;
24546
+ const Yn = (At.left - Xe) * Fe.scale - Tt + Rt[0], Jn = (-At.top - Xe) * Fe.scale + Rt[1], bi = Yn + Wt, xi = Jn + $t;
24547
24547
  Ft = new Z(Yn, Jn), xn = new Z(bi, Jn), wn = new Z(Yn, xi), hn = new Z(bi, xi);
24548
24548
  }
24549
24549
  if (ne) {
@@ -24551,7 +24551,7 @@ Use an identity property function instead: ${M}.`)];
24551
24551
  Yn = q ? new Z(0, 0) : _n ? new Z(me[0], me[1]) : new Z(Q[0], Q[1]), Ft._rotateAround(ne, Yn), xn._rotateAround(ne, Yn), wn._rotateAround(ne, Yn), hn._rotateAround(ne, Yn);
24552
24552
  }
24553
24553
  const Hn = new Z(0, 0), vi = new Z(0, 0);
24554
- pe.push({ tl: Ft, tr: xn, bl: wn, br: hn, texPrimary: qe, texSecondary: void 0, writingMode: P.writingMode, glyphOffset: Zt, sectionIndex: Fe.sectionIndex, isSDF: tt, pixelOffsetTL: Hn, pixelOffsetBR: vi, minFontScaleX: 0, minFontScaleY: 0 });
24554
+ pe.push({ tl: Ft, tr: xn, bl: wn, br: hn, texPrimary: qe, texSecondary: void 0, writingMode: P.writingMode, glyphOffset: Gt, sectionIndex: Fe.sectionIndex, isSDF: tt, pixelOffsetTL: Hn, pixelOffsetBR: vi, minFontScaleX: 0, minFontScaleY: 0 });
24555
24555
  }
24556
24556
  }
24557
24557
  return pe;
@@ -26452,12 +26452,12 @@ Use an identity property function instead: ${M}.`)];
26452
26452
  e.deleteFramebuffer(this.framebuffer);
26453
26453
  }
26454
26454
  }
26455
- class Ht {
26455
+ class Zt {
26456
26456
  constructor(e, n, r) {
26457
26457
  this.func = e, this.mask = n, this.range = r;
26458
26458
  }
26459
26459
  }
26460
- Ht.ReadOnly = !1, Ht.ReadWrite = !0, Ht.disabled = new Ht(519, Ht.ReadOnly, [0, 1]);
26460
+ Zt.ReadOnly = !1, Zt.ReadWrite = !0, Zt.disabled = new Zt(519, Zt.ReadOnly, [0, 1]);
26461
26461
  const Fx = 7680;
26462
26462
  class fn {
26463
26463
  constructor(e, n, r, s, l, c) {
@@ -27711,8 +27711,8 @@ Use an identity property function instead: ${M}.`)];
27711
27711
  let It;
27712
27712
  e.isTerrainDEM || (It = $e.getMinMaxForTile(Re.tileID)), It || (It = { min: P, max: O });
27713
27713
  const Tt = function(zt) {
27714
- const Zt = Math.round((zt + 45 + 360) % 360 / 90) % 4;
27715
- return Se[Zt];
27714
+ const Gt = Math.round((zt + 45 + 360) % 360 / 90) % 4;
27715
+ return Se[Gt];
27716
27716
  }(this.rotation), At = [Tt[0] * He, Tt[1] * He, It.max];
27717
27717
  de.transformMat4(At, At, st), tt = (1 - At[1]) * this.height * 0.5 < ye;
27718
27718
  }
@@ -29105,27 +29105,27 @@ Use an identity property function instead: ${M}.`)];
29105
29105
  O && (Ve = It.sub(st)._perp()._unit(), qe = !qe);
29106
29106
  continue;
29107
29107
  }
29108
- const Tt = st.sub($e)._perp(), At = Tt.x / (Math.abs(Tt.x) + Math.abs(Tt.y)), zt = Tt.y > 0 ? 1 : 0, Zt = $e.dist(st);
29109
- if (tt + Zt > 32768 && (tt = 0), O) {
29108
+ const Tt = st.sub($e)._perp(), At = Tt.x / (Math.abs(Tt.x) + Math.abs(Tt.y)), zt = Tt.y > 0 ? 1 : 0, Gt = $e.dist(st);
29109
+ if (tt + Gt > 32768 && (tt = 0), O) {
29110
29110
  Fe = It.sub(st)._perp()._unit();
29111
- let Gt = VA($e, st, It, FA(Ve, Fe), O);
29112
- isNaN(Gt) && (Gt = 0);
29111
+ let Wt = VA($e, st, It, FA(Ve, Fe), O);
29112
+ isNaN(Wt) && (Wt = 0);
29113
29113
  const $t = st.sub($e)._unit();
29114
- $e = $e.add($t.mult(ge))._round(), st = st.add($t.mult(-Gt))._round(), ge = Gt, Ve = Fe, D && this.zoom >= 17 && (Q(ye, $e) || ye.push($e), Q(ye, st) || ye.push(st));
29114
+ $e = $e.add($t.mult(ge))._round(), st = st.add($t.mult(-Wt))._round(), ge = Wt, Ve = Fe, D && this.zoom >= 17 && (Q(ye, $e) || ye.push($e), Q(ye, st) || ye.push(st));
29115
29115
  }
29116
29116
  const Rt = re.vertexLength, Tn = xe.length > 4 && YA($e, st, It);
29117
29117
  let _n = $A(tt, Ee, qe);
29118
- if (ld(this.layoutVertexArray, $e.x, $e.y, At, zt, 0, 0, _n), ld(this.layoutVertexArray, $e.x, $e.y, At, zt, 0, 1, _n), tt += Zt, _n = $A(tt, Tn, !qe), Ee = Tn, ld(this.layoutVertexArray, st.x, st.y, At, zt, 0, 0, _n), ld(this.layoutVertexArray, st.x, st.y, At, zt, 0, 1, _n), re.vertexLength += 4, this.indexArray.emplaceBack(Rt + 0, Rt + 1, Rt + 2), this.indexArray.emplaceBack(Rt + 1, Rt + 3, Rt + 2), re.primitiveLength += 2, O) {
29119
- const Gt = J + (Xe === 1 ? xe.length - 2 : Xe - 2), $t = Xe === 1 ? J : Gt + 1;
29120
- if (this.indexArray.emplaceBack(Rt + 1, Gt, Rt + 3), this.indexArray.emplaceBack(Gt, $t, Rt + 3), re.primitiveLength += 2, Re === void 0 && (Re = Rt), !qx(It, xe[Xe], q)) {
29118
+ if (ld(this.layoutVertexArray, $e.x, $e.y, At, zt, 0, 0, _n), ld(this.layoutVertexArray, $e.x, $e.y, At, zt, 0, 1, _n), tt += Gt, _n = $A(tt, Tn, !qe), Ee = Tn, ld(this.layoutVertexArray, st.x, st.y, At, zt, 0, 0, _n), ld(this.layoutVertexArray, st.x, st.y, At, zt, 0, 1, _n), re.vertexLength += 4, this.indexArray.emplaceBack(Rt + 0, Rt + 1, Rt + 2), this.indexArray.emplaceBack(Rt + 1, Rt + 3, Rt + 2), re.primitiveLength += 2, O) {
29119
+ const Wt = J + (Xe === 1 ? xe.length - 2 : Xe - 2), $t = Xe === 1 ? J : Wt + 1;
29120
+ if (this.indexArray.emplaceBack(Rt + 1, Wt, Rt + 3), this.indexArray.emplaceBack(Wt, $t, Rt + 3), re.primitiveLength += 2, Re === void 0 && (Re = Rt), !qx(It, xe[Xe], q)) {
29121
29121
  const Ft = Xe === xe.length - 1 ? Re : re.vertexLength;
29122
29122
  this.indexArray.emplaceBack(Rt + 2, Rt + 3, Ft), this.indexArray.emplaceBack(Rt + 3, Ft + 1, Ft), this.indexArray.emplaceBack(Rt + 3, $t, Ft + 1), re.primitiveLength += 3;
29123
29123
  }
29124
29124
  qe = !qe;
29125
29125
  }
29126
29126
  if (x) {
29127
- const Gt = this.layoutVertexExtArray, $t = v.projectTilePoint($e.x, $e.y, s), Ft = v.projectTilePoint(st.x, st.y, s), xn = v.upVector(s, $e.x, $e.y), wn = v.upVector(s, st.x, st.y);
29128
- cd(Gt, $t, xn), cd(Gt, $t, xn), cd(Gt, Ft, wn), cd(Gt, Ft, wn);
29127
+ const Wt = this.layoutVertexExtArray, $t = v.projectTilePoint($e.x, $e.y, s), Ft = v.projectTilePoint(st.x, st.y, s), xn = v.upVector(s, $e.x, $e.y), wn = v.upVector(s, st.x, st.y);
29128
+ cd(Wt, $t, xn), cd(Wt, $t, xn), cd(Wt, Ft, wn), cd(Wt, Ft, wn);
29129
29129
  }
29130
29130
  }
29131
29131
  M && (J += xe.length - 1), D && O && this.zoom >= 17 && (ye.length !== 0 && Q(ye, ye[0]) && ye.pop(), this.groundEffect.addData(ye, q, p, O > 0));
@@ -29471,7 +29471,7 @@ Use an identity property function instead: ${M}.`)];
29471
29471
  load(e, n) {
29472
29472
  if (this._loaded = n || !1, this.fire(new gt("dataloading", { dataType: "source" })), this.url = this.options.url, !this.url)
29473
29473
  return e && (this.coordinates = e), this._loaded = !0, void this._finishLoading();
29474
- this._imageRequest = Wt(this.map._requestManager.transformRequest(this.url, Te.Image), (r, s) => {
29474
+ this._imageRequest = qt(this.map._requestManager.transformRequest(this.url, Te.Image), (r, s) => {
29475
29475
  if (this._imageRequest = null, this._loaded = !0, r)
29476
29476
  this.fire(new en(r));
29477
29477
  else if (s) {
@@ -29728,14 +29728,14 @@ Use an identity property function instead: ${M}.`)];
29728
29728
  l.projection.name === "globe" && (r = ZA([r], [new Z(0, 0), new Z(He, He)], t.tileID.canonical).map((k) => k.polygon).flat());
29729
29729
  const D = M ? h : null, [E, N] = function(k, O, P, Q, G, q, J, ie, re, pe, ne) {
29730
29730
  return k.projection.name === "globe" ? function(me, xe, Ee, ge, ye, Re, Ve, Fe, qe, Xe, tt) {
29731
- const $e = [], st = [], It = me.projection.upVectorScale(tt, me.center.lat, me.worldSize).metersToTile, Tt = [0, 0, 0, 1], At = [0, 0, 0, 1], zt = (Rt, Tn, _n, Gt) => {
29732
- Rt[0] = Tn, Rt[1] = _n, Rt[2] = Gt, Rt[3] = 1;
29733
- }, Zt = HA();
29734
- Ee > 0 && (Ee += Zt), ge += Zt;
29731
+ const $e = [], st = [], It = me.projection.upVectorScale(tt, me.center.lat, me.worldSize).metersToTile, Tt = [0, 0, 0, 1], At = [0, 0, 0, 1], zt = (Rt, Tn, _n, Wt) => {
29732
+ Rt[0] = Tn, Rt[1] = _n, Rt[2] = Wt, Rt[3] = 1;
29733
+ }, Gt = HA();
29734
+ Ee > 0 && (Ee += Gt), ge += Gt;
29735
29735
  for (const Rt of xe) {
29736
29736
  const Tn = [], _n = [];
29737
- for (const Gt of Rt) {
29738
- const $t = Gt.x + ye.x, Ft = Gt.y + ye.y, xn = me.projection.projectTilePoint($t, Ft, tt), wn = me.projection.upVector(tt, Gt.x, Gt.y);
29737
+ for (const Wt of Rt) {
29738
+ const $t = Wt.x + ye.x, Ft = Wt.y + ye.y, xn = me.projection.projectTilePoint($t, Ft, tt), wn = me.projection.upVector(tt, Wt.x, Wt.y);
29739
29739
  let hn = Ee, Hn = ge;
29740
29740
  if (Ve) {
29741
29741
  const vi = WA($t, Ft, Ee, ge, Ve, Fe, qe, Xe);
@@ -29751,10 +29751,10 @@ Use an identity property function instead: ${M}.`)];
29751
29751
  for (const st of me) {
29752
29752
  const It = [], Tt = [];
29753
29753
  for (const At of st) {
29754
- const zt = At.x + ge.x, Zt = At.y + ge.y, Rt = WA(zt, Zt, xe, Ee, Re, Ve, Fe, qe);
29755
- $e[0] = zt, $e[1] = Zt, $e[2] = Rt.base, $e[3] = 1, Qn.transformMat4($e, $e, ye), $e[3] = Math.max($e[3], 1e-5);
29754
+ const zt = At.x + ge.x, Gt = At.y + ge.y, Rt = WA(zt, Gt, xe, Ee, Re, Ve, Fe, qe);
29755
+ $e[0] = zt, $e[1] = Gt, $e[2] = Rt.base, $e[3] = 1, Qn.transformMat4($e, $e, ye), $e[3] = Math.max($e[3], 1e-5);
29756
29756
  const Tn = new nu($e[0] / $e[3], $e[1] / $e[3], $e[2] / $e[3]);
29757
- $e[0] = zt, $e[1] = Zt, $e[2] = Rt.top, $e[3] = 1, Qn.transformMat4($e, $e, ye), $e[3] = Math.max($e[3], 1e-5);
29757
+ $e[0] = zt, $e[1] = Gt, $e[2] = Rt.top, $e[3] = 1, Qn.transformMat4($e, $e, ye), $e[3] = Math.max($e[3], 1e-5);
29758
29758
  const _n = new nu($e[0] / $e[3], $e[1] / $e[3], $e[2] / $e[3]);
29759
29759
  It.push(Tn), Tt.push(_n);
29760
29760
  }
@@ -29764,12 +29764,12 @@ Use an identity property function instead: ${M}.`)];
29764
29764
  }(O, P, Q, G, q, J, ie, re, pe) : function(me, xe, Ee, ge, ye) {
29765
29765
  const Re = [], Ve = [], Fe = ye[8] * xe, qe = ye[9] * xe, Xe = ye[10] * xe, tt = ye[11] * xe, $e = ye[8] * Ee, st = ye[9] * Ee, It = ye[10] * Ee, Tt = ye[11] * Ee;
29766
29766
  for (const At of me) {
29767
- const zt = [], Zt = [];
29767
+ const zt = [], Gt = [];
29768
29768
  for (const Rt of At) {
29769
- const Tn = Rt.x + ge.x, _n = Rt.y + ge.y, Gt = ye[0] * Tn + ye[4] * _n + ye[12], $t = ye[1] * Tn + ye[5] * _n + ye[13], Ft = ye[2] * Tn + ye[6] * _n + ye[14], xn = ye[3] * Tn + ye[7] * _n + ye[15], wn = Gt + Fe, hn = $t + qe, Hn = Ft + Xe, vi = Math.max(xn + tt, 1e-5), Yn = Gt + $e, Jn = $t + st, bi = Ft + It, xi = Math.max(xn + Tt, 1e-5);
29770
- zt.push(new nu(wn / vi, hn / vi, Hn / vi)), Zt.push(new nu(Yn / xi, Jn / xi, bi / xi));
29769
+ const Tn = Rt.x + ge.x, _n = Rt.y + ge.y, Wt = ye[0] * Tn + ye[4] * _n + ye[12], $t = ye[1] * Tn + ye[5] * _n + ye[13], Ft = ye[2] * Tn + ye[6] * _n + ye[14], xn = ye[3] * Tn + ye[7] * _n + ye[15], wn = Wt + Fe, hn = $t + qe, Hn = Ft + Xe, vi = Math.max(xn + tt, 1e-5), Yn = Wt + $e, Jn = $t + st, bi = Ft + It, xi = Math.max(xn + Tt, 1e-5);
29770
+ zt.push(new nu(wn / vi, hn / vi, Hn / vi)), Gt.push(new nu(Yn / xi, Jn / xi, bi / xi));
29771
29771
  }
29772
- Re.push(zt), Ve.push(Zt);
29772
+ Re.push(zt), Ve.push(Gt);
29773
29773
  }
29774
29774
  return [Re, Ve];
29775
29775
  }(O, P, Q, G, q);
@@ -30943,7 +30943,7 @@ Use an identity property function instead: ${M}.`)];
30943
30943
  }
30944
30944
  loadTile(e, n) {
30945
30945
  const r = nn.devicePixelRatio >= 2, s = this.map._requestManager.normalizeTileURL(e.tileID.canonical.url(this.tiles, this.scheme), r, this.tileSize);
30946
- e.request = Wt(this.map._requestManager.transformRequest(s, Te.Tile), (l, c, h, f) => (delete e.request, e.aborted ? (e.state = "unloaded", n(null)) : l ? (e.state = "errored", n(l)) : c ? (this.map._refreshExpiredTiles && e.setExpiryData({ cacheControl: h, expires: f }), e.setTexture(c, this.map.painter), e.state = "loaded", Pt(this.dispatcher), void n(null)) : n(null)));
30946
+ e.request = qt(this.map._requestManager.transformRequest(s, Te.Tile), (l, c, h, f) => (delete e.request, e.aborted ? (e.state = "unloaded", n(null)) : l ? (e.state = "errored", n(l)) : c ? (this.map._refreshExpiredTiles && e.setExpiryData({ cacheControl: h, expires: f }), e.setTexture(c, this.map.painter), e.state = "loaded", Pt(this.dispatcher), void n(null)) : n(null)));
30947
30947
  }
30948
30948
  abortTile(e, n) {
30949
30949
  e.request && (e.request.cancel(), delete e.request), n();
@@ -31446,7 +31446,7 @@ Use an identity property function instead: ${M}.`)];
31446
31446
  function r(s, l) {
31447
31447
  s && (t.state = "errored", e(s)), l && (t.dem = l, t.dem.onDeserialize(), t.needsHillshadePrepare = !0, t.needsDEMTextureUpload = !0, t.state = "loaded", e(null));
31448
31448
  }
31449
- t.request = Wt(this.map._requestManager.transformRequest(n, Te.Tile), function(s, l, c, h) {
31449
+ t.request = qt(this.map._requestManager.transformRequest(n, Te.Tile), function(s, l, c, h) {
31450
31450
  if (delete t.request, t.aborted)
31451
31451
  t.state = "unloaded", e(null);
31452
31452
  else if (s)
@@ -32151,10 +32151,10 @@ Use an identity property function instead: ${M}.`)];
32151
32151
  let It = 0;
32152
32152
  It = Re.length <= 0.5 * Ee ? 1 : Math.ceil(Re.paddedLength / tt) + 1;
32153
32153
  for (let Tt = 0; Tt < It; Tt++) {
32154
- const At = Tt / Math.max(It - 1, 1), zt = Re.lerp(At), Zt = zt.x + ms, Rt = zt.y + ms;
32155
- D.push(Zt, Rt, Ee, 0);
32156
- const Tn = Zt - Ee, _n = Rt - Ee, Gt = Zt + Ee, $t = Rt + Ee;
32157
- if (xe = xe && this.isOffscreen(Tn, _n, Gt, $t), me = me || this.isInsideGrid(Tn, _n, Gt, $t), !n && this.grid.hitTestCircle(Zt, Rt, Ee, x) && (ne = !0, !y))
32154
+ const At = Tt / Math.max(It - 1, 1), zt = Re.lerp(At), Gt = zt.x + ms, Rt = zt.y + ms;
32155
+ D.push(Gt, Rt, Ee, 0);
32156
+ const Tn = Gt - Ee, _n = Rt - Ee, Wt = Gt + Ee, $t = Rt + Ee;
32157
+ if (xe = xe && this.isOffscreen(Tn, _n, Wt, $t), me = me || this.isInsideGrid(Tn, _n, Wt, $t), !n && this.grid.hitTestCircle(Gt, Rt, Ee, x) && (ne = !0, !y))
32158
32158
  return { circles: [], offscreen: !1, collisionDetected: ne, occluded: !1 };
32159
32159
  }
32160
32160
  }
@@ -32323,13 +32323,13 @@ Use an identity property function instead: ${M}.`)];
32323
32323
  const ie = (re, pe, ne) => {
32324
32324
  const { crossTileID: me, numVerticalGlyphVertices: xe } = re;
32325
32325
  if (y) {
32326
- const Gt = { zoom: this.transform.zoom, pitch: this.transform.pitch };
32326
+ const Wt = { zoom: this.transform.zoom, pitch: this.transform.pitch };
32327
32327
  let $t = null;
32328
32328
  if (y.dynamicFilterNeedsFeature) {
32329
32329
  const Ft = this.retainedQueryData[l.bucketInstanceId];
32330
32330
  $t = y.featureIndex.loadFeature({ featureIndex: re.featureIndex, bucketIndex: Ft.bucketIndex, sourceLayerIndex: Ft.sourceLayerIndex, layoutVertexArrayOffset: 0 });
32331
32331
  }
32332
- if (!(0, y.dynamicFilter)(Gt, $t, this.retainedQueryData[l.bucketInstanceId].tileID.canonical, new Z(re.tileAnchorX, re.tileAnchorY), this.transform.calculateDistanceTileData(y.unwrappedTileID)))
32332
+ if (!(0, y.dynamicFilter)(Wt, $t, this.retainedQueryData[l.bucketInstanceId].tileID.canonical, new Z(re.tileAnchorX, re.tileAnchorY), this.transform.calculateDistanceTileData(y.unwrappedTileID)))
32333
32333
  return this.placements[me] = new m2(!1, !1, !1, !0), void n.add(me);
32334
32334
  }
32335
32335
  if (n.has(me))
@@ -32338,14 +32338,14 @@ Use an identity property function instead: ${M}.`)];
32338
32338
  return void (this.placements[me] = new m2(!1, !1, !1));
32339
32339
  let Ee = !1, ge = !1, ye = !0, Re = !1, Ve = !1, Fe = null, qe = { box: null, offscreen: null, occluded: null }, Xe = { box: null, offscreen: null, occluded: null }, tt = null, $e = null, st = null, It = 0, Tt = 0, At = 0;
32340
32340
  ne.textFeatureIndex ? It = ne.textFeatureIndex : re.useRuntimeCollisionCircles && (It = re.featureIndex), ne.verticalTextFeatureIndex && (Tt = ne.verticalTextFeatureIndex);
32341
- const zt = (Gt) => {
32342
- Gt.tileID = this.retainedQueryData[l.bucketInstanceId].tileID;
32341
+ const zt = (Wt) => {
32342
+ Wt.tileID = this.retainedQueryData[l.bucketInstanceId].tileID;
32343
32343
  const $t = this.transform.elevation;
32344
- Gt.elevation = re.zOffset + ($t ? $t.getAtTileOffset(Gt.tileID, Gt.tileAnchorX, Gt.tileAnchorY) : 0);
32345
- }, Zt = ne.textBox;
32346
- if (Zt) {
32347
- zt(Zt);
32348
- const Gt = (Ft) => {
32344
+ Wt.elevation = re.zOffset + ($t ? $t.getAtTileOffset(Wt.tileID, Wt.tileAnchorX, Wt.tileAnchorY) : 0);
32345
+ }, Gt = ne.textBox;
32346
+ if (Gt) {
32347
+ zt(Gt);
32348
+ const Wt = (Ft) => {
32349
32349
  let xn = ai.horizontal;
32350
32350
  if (l.allowVerticalPlacement && !Ft && this.prevPlacement) {
32351
32351
  const wn = this.prevPlacement.placedOrientations[me];
@@ -32380,11 +32380,11 @@ Use an identity property function instead: ${M}.`)];
32380
32380
  }
32381
32381
  return ri;
32382
32382
  };
32383
- $t(() => xn(Zt, ne.iconBox, ai.horizontal), () => {
32383
+ $t(() => xn(Gt, ne.iconBox, ai.horizontal), () => {
32384
32384
  const hn = ne.verticalTextBox;
32385
32385
  return hn && zt(hn), l.allowVerticalPlacement && !(qe && qe.box && qe.box.length) && xe > 0 && hn ? xn(hn, ne.verticalIconBox, ai.vertical) : { box: null, offscreen: null, occluded: null };
32386
32386
  }), qe && (Ee = qe.box, ye = qe.offscreen, Re = qe.occluded);
32387
- const wn = Gt(!(!qe || !qe.box));
32387
+ const wn = Wt(!(!qe || !qe.box));
32388
32388
  if (!Ee && this.prevPlacement) {
32389
32389
  const hn = this.prevPlacement.variableOffsets[me];
32390
32390
  hn && (this.variableOffsets[me] = hn, this.markUsedJustification(l, hn.anchor, re, wn));
@@ -32394,29 +32394,29 @@ Use an identity property function instead: ${M}.`)];
32394
32394
  const hn = l.getSymbolInstanceTextSize(w, re, this.transform.zoom, pe), Hn = this.collisionIndex.placeCollisionBox(l, hn, xn, new Z(0, 0), j, v, h, D.predicate);
32395
32395
  return Hn && Hn.box && Hn.box.length && (this.markUsedOrientation(l, wn, re), this.placedOrientations[me] = wn), Hn;
32396
32396
  };
32397
- $t(() => Ft(Zt, ai.horizontal), () => {
32397
+ $t(() => Ft(Gt, ai.horizontal), () => {
32398
32398
  const xn = ne.verticalTextBox;
32399
32399
  return l.allowVerticalPlacement && xe > 0 && xn ? (zt(xn), Ft(xn, ai.vertical)) : { box: null, offscreen: null, occluded: null };
32400
- }), Gt(!!(qe && qe.box && qe.box.length));
32400
+ }), Wt(!!(qe && qe.box && qe.box.length));
32401
32401
  }
32402
32402
  }
32403
32403
  if (tt = qe, Ee = tt && tt.box && tt.box.length > 0, ye = tt && tt.offscreen, Re = tt && tt.occluded, re.useRuntimeCollisionCircles) {
32404
- const Gt = l.text.placedSymbolArray.get(re.centerJustifiedTextSymbolIndex >= 0 ? re.centerJustifiedTextSymbolIndex : re.verticalPlacedTextSymbolIndex), $t = Zh(l.textSizeData, w, Gt), Ft = c.get("text-padding");
32405
- $e = this.collisionIndex.placeCollisionCircles(l, j, Gt, l.lineVertexArray, l.glyphOffsetArray, $t, h, f, p, r, P, D.predicate, re.collisionCircleDiameter * $t / Ki, Ft, this.retainedQueryData[l.bucketInstanceId].tileID), Ee = j || $e.circles.length > 0 && !$e.collisionDetected, ye = ye && $e.offscreen, Re = $e.occluded;
32404
+ const Wt = l.text.placedSymbolArray.get(re.centerJustifiedTextSymbolIndex >= 0 ? re.centerJustifiedTextSymbolIndex : re.verticalPlacedTextSymbolIndex), $t = Zh(l.textSizeData, w, Wt), Ft = c.get("text-padding");
32405
+ $e = this.collisionIndex.placeCollisionCircles(l, j, Wt, l.lineVertexArray, l.glyphOffsetArray, $t, h, f, p, r, P, D.predicate, re.collisionCircleDiameter * $t / Ki, Ft, this.retainedQueryData[l.bucketInstanceId].tileID), Ee = j || $e.circles.length > 0 && !$e.collisionDetected, ye = ye && $e.offscreen, Re = $e.occluded;
32406
32406
  }
32407
32407
  if (ne.iconFeatureIndex && (At = ne.iconFeatureIndex), ne.iconBox) {
32408
- const Gt = ($t) => {
32408
+ const Wt = ($t) => {
32409
32409
  zt($t);
32410
32410
  const Ft = re.hasIconTextFit && Fe ? y2(Fe.x, Fe.y, O, P, this.transform.angle) : new Z(0, 0), xn = l.getSymbolInstanceIconSize(T, this.transform.zoom, re.placedIconSymbolIndex);
32411
32411
  return this.collisionIndex.placeCollisionBox(l, xn, $t, Ft, k, v, h, D.predicate);
32412
32412
  };
32413
- Xe && Xe.box && Xe.box.length && ne.verticalIconBox ? (st = Gt(ne.verticalIconBox), ge = st.box.length > 0) : (st = Gt(ne.iconBox), ge = st.box.length > 0), ye = ye && st.offscreen, Ve = st.occluded;
32413
+ Xe && Xe.box && Xe.box.length && ne.verticalIconBox ? (st = Wt(ne.verticalIconBox), ge = st.box.length > 0) : (st = Wt(ne.iconBox), ge = st.box.length > 0), ye = ye && st.offscreen, Ve = st.occluded;
32414
32414
  }
32415
32415
  const Rt = E || re.numHorizontalGlyphVertices === 0 && xe === 0, Tn = N || re.numIconVertices === 0;
32416
32416
  if (Rt || Tn ? Tn ? Rt || (ge = ge && Ee) : Ee = ge && Ee : ge = Ee = ge && Ee, Ee && tt && tt.box && this.collisionIndex.insertCollisionBox(tt.box, c.get("text-ignore-placement"), l.bucketInstanceId, Xe && Xe.box && Tt ? Tt : It, D.ID), ge && st && this.collisionIndex.insertCollisionBox(st.box, c.get("icon-ignore-placement"), l.bucketInstanceId, At, D.ID), $e && (Ee && this.collisionIndex.insertCollisionCircles($e.circles, c.get("text-ignore-placement"), l.bucketInstanceId, It, D.ID), r)) {
32417
- const Gt = l.bucketInstanceId;
32418
- let $t = this.collisionCircleArrays[Gt];
32419
- $t === void 0 && ($t = this.collisionCircleArrays[Gt] = new jV());
32417
+ const Wt = l.bucketInstanceId;
32418
+ let $t = this.collisionCircleArrays[Wt];
32419
+ $t === void 0 && ($t = this.collisionCircleArrays[Wt] = new jV());
32420
32420
  for (let Ft = 0; Ft < $e.circles.length; Ft += 4)
32421
32421
  $t.circles.push($e.circles[Ft + 0]), $t.circles.push($e.circles[Ft + 1]), $t.circles.push($e.circles[Ft + 2]), $t.circles.push($e.collisionDetected ? 1 : 0);
32422
32422
  }
@@ -34958,7 +34958,7 @@ uniform ${v} ${x} u_${M};
34958
34958
  }
34959
34959
  r.bindFramebuffer.set(h.framebuffer), r.viewport.set([0, 0, c, c]);
34960
34960
  const { tileBoundsBuffer: f, tileBoundsIndexBuffer: p, tileBoundsSegments: y } = t.getMercatorTileBoundsBuffers(), v = [];
34961
- t.linearFloatFilteringSupported() && v.push("TERRAIN_DEM_FLOAT_FORMAT"), t.getOrCreateProgram("hillshadePrepare", { defines: v }).draw(t, s.TRIANGLES, Ht.disabled, fn.disabled, An.unblended, gn.disabled, ((x, M) => {
34961
+ t.linearFloatFilteringSupported() && v.push("TERRAIN_DEM_FLOAT_FORMAT"), t.getOrCreateProgram("hillshadePrepare", { defines: v }).draw(t, s.TRIANGLES, Zt.disabled, fn.disabled, An.unblended, gn.disabled, ((x, M) => {
34962
34962
  const w = M.stride, T = ze.create();
34963
34963
  return ze.ortho(T, 0, He, -He, 0, 0, 1), ze.translate(T, T, [0, -He, 0]), { u_matrix: T, u_image: 1, u_dimension: [w, w], u_zoom: x.overscaledZ };
34964
34964
  })(e.tileID, l), n.id, f, p, y), e.needsHillshadePrepare = !1;
@@ -35318,7 +35318,7 @@ This leads to lower resolution of hillshade. For full hillshade resolution but h
35318
35318
  j && me.push("CUSTOM_ANTIALIASING");
35319
35319
  const xe = p.isTileAffectedByFog(pe);
35320
35320
  D = p.getOrCreateProgram("globeRaster", { defines: me, overrideFog: xe }), E = ne;
35321
- }, O = p.colorModeForRenderPass(), P = new Ht(T.LEQUAL, Ht.ReadWrite, p.depthRangeFor3D);
35321
+ }, O = p.colorModeForRenderPass(), P = new Zt(T.LEQUAL, Zt.ReadWrite, p.depthRangeFor3D);
35322
35322
  ou.update(M);
35323
35323
  const Q = CD(N), G = [Pi(N.center.lng), Qi(N.center.lat)], q = p.globeSharedBuffers, J = [N.width * nn.devicePixelRatio, N.height * nn.devicePixelRatio], ie = Float32Array.from(N.globeMatrix), re = { useDenormalizedUpVectorScale: !0 };
35324
35324
  {
@@ -35360,7 +35360,7 @@ This leads to lower resolution of hillshade. For full hillshade resolution but h
35360
35360
  return;
35361
35361
  const P = [];
35362
35362
  P.push(rS[O]), w.shouldRenderCutoff && P.push("RENDER_CUTOFF"), v = s.getOrCreateProgram("terrainRaster", { defines: P }), x = O;
35363
- }, D = s.colorModeForRenderPass(), E = new Ht(y.LEQUAL, Ht.ReadWrite, s.depthRangeFor3D);
35363
+ }, D = s.colorModeForRenderPass(), E = new Zt(y.LEQUAL, Zt.ReadWrite, s.depthRangeFor3D);
35364
35364
  ou.update(f);
35365
35365
  const N = s.transform, j = oS(N.zoom, l.exaggeration(), l.sourceCache._source.tileSize);
35366
35366
  let k = [0, 0, 0];
@@ -35616,11 +35616,11 @@ This leads to lower resolution of hillshade. For full hillshade resolution but h
35616
35616
  }
35617
35617
  _renderTileClippingMasks(e, n) {
35618
35618
  const r = this.painter, s = this.painter.context, l = s.gl;
35619
- r._tileClippingMaskIDs = {}, s.setColorMode(An.disabled), s.setDepthMode(Ht.disabled);
35619
+ r._tileClippingMaskIDs = {}, s.setColorMode(An.disabled), s.setDepthMode(Zt.disabled);
35620
35620
  const c = r.getOrCreateProgram("clippingMask");
35621
35621
  for (const h of e) {
35622
35622
  const f = r._tileClippingMaskIDs[h.key] = --n;
35623
- c.draw(r, l.TRIANGLES, Ht.disabled, new fn({ func: l.ALWAYS, mask: 0 }, f, 255, l.KEEP, l.KEEP, l.REPLACE), An.disabled, gn.disabled, M2(h.projMatrix), "$clipping", r.tileExtentBuffer, r.quadTriangleIndexBuffer, r.tileExtentSegments);
35623
+ c.draw(r, l.TRIANGLES, Zt.disabled, new fn({ func: l.ALWAYS, mask: 0 }, f, 255, l.KEEP, l.KEEP, l.REPLACE), An.disabled, gn.disabled, M2(h.projMatrix), "$clipping", r.tileExtentBuffer, r.quadTriangleIndexBuffer, r.tileExtentSegments);
35624
35624
  }
35625
35625
  }
35626
35626
  pointCoordinate(e) {
@@ -35649,7 +35649,7 @@ This leads to lower resolution of hillshade. For full hillshade resolution but h
35649
35649
  return;
35650
35650
  const y = c.context, v = y.gl;
35651
35651
  y.clear({ depth: 1 });
35652
- const x = c.getOrCreateProgram("terrainDepth"), M = new Ht(v.LESS, Ht.ReadWrite, c.depthRangeFor3D);
35652
+ const x = c.getOrCreateProgram("terrainDepth"), M = new Zt(v.LESS, Zt.ReadWrite, c.depthRangeFor3D);
35653
35653
  for (const w of p) {
35654
35654
  const T = f.getTile(w), D = tS(w.projMatrix, 0, [0, 0, 0]);
35655
35655
  h.setupElevationDraw(T, x), x.draw(c, v.TRIANGLES, M, fn.disabled, An.unblended, gn.backCCW, D, "terrain_depth", h.gridBuffer, h.gridIndexBuffer, h.gridNoSkirtSegments);
@@ -35898,7 +35898,7 @@ ${r.vertexSource}`;
35898
35898
  for (const Q in O[k])
35899
35899
  P[k][Q] && P[k][Q].set(P.program, Q, O[k][Q].current);
35900
35900
  };
35901
- p && p.setUniforms(D.program, x, D.binderUniforms, h, { zoom: f }), E("fixedUniforms", this, D), E("terrainUniforms", this, D), E("globeUniforms", this, D), E("fogUniforms", this, D), E("lightsUniforms", this, D), E("shadowUniforms", this, D), w.bind(), x.setColorMode(new An([M.ONE, M.ONE_MINUS_SRC_ALPHA, M.ZERO, M.ONE], dn.transparent, [!0, !0, !0, !1])), x.setDepthMode(new Ht(n.func === M.LESS ? M.LEQUAL : n.func, Ht.ReadOnly, n.range)), x.setStencilMode(fn.disabled);
35901
+ p && p.setUniforms(D.program, x, D.binderUniforms, h, { zoom: f }), E("fixedUniforms", this, D), E("terrainUniforms", this, D), E("globeUniforms", this, D), E("fogUniforms", this, D), E("lightsUniforms", this, D), E("shadowUniforms", this, D), w.bind(), x.setColorMode(new An([M.ONE, M.ONE_MINUS_SRC_ALPHA, M.ZERO, M.ONE], dn.transparent, [!0, !0, !0, !1])), x.setDepthMode(new Zt(n.func === M.LESS ? M.LEQUAL : n.func, Zt.ReadOnly, n.range)), x.setStencilMode(fn.disabled);
35902
35902
  const N = 3 * c.primitiveLength * 2, j = 3 * c.primitiveOffset * 2 * 2;
35903
35903
  y && y > 1 ? M.drawElementsInstanced(M.LINES, N, M.UNSIGNED_SHORT, j, y) : M.drawElements(M.LINES, N, M.UNSIGNED_SHORT, j), l.bind(), x.program.set(this.program), x.setDepthMode(n), x.setStencilMode(r), x.setColorMode(s);
35904
35904
  }
@@ -35989,7 +35989,7 @@ ${r.vertexSource}`;
35989
35989
  const re = ze.create(), pe = q;
35990
35990
  ze.mul(re, Q.placementInvProjMatrix, p.glCoordMatrix), ze.mul(re, re, Q.placementViewportMatrix), v.push({ circleArray: ie, circleOffset: M, transform: pe, invTransform: re, projection: Q.getProjection() }), x += ie.length / 4, M = x;
35991
35991
  }
35992
- J && (t.terrain && t.terrain.setupElevationDraw(P, y), y.draw(t, f.LINES, Ht.disabled, fn.disabled, t.colorModeForRenderPass(), gn.disabled, pQ(q, p, P, Q.getProjection()), n.id, J.layoutVertexBuffer, J.indexBuffer, J.segments, null, p.zoom, null, [J.collisionVertexBuffer, J.collisionVertexBufferExt]));
35992
+ J && (t.terrain && t.terrain.setupElevationDraw(P, y), y.draw(t, f.LINES, Zt.disabled, fn.disabled, t.colorModeForRenderPass(), gn.disabled, pQ(q, p, P, Q.getProjection()), n.id, J.layoutVertexBuffer, J.indexBuffer, J.segments, null, p.zoom, null, [J.collisionVertexBuffer, J.collisionVertexBufferExt]));
35993
35993
  }
35994
35994
  if (!c || !v.length)
35995
35995
  return;
@@ -36013,7 +36013,7 @@ ${r.vertexSource}`;
36013
36013
  const E = h.createIndexBuffer(Wg, !0), N = h.createVertexBuffer(T, HU.members, !0);
36014
36014
  for (const k of v) {
36015
36015
  const O = { u_matrix: k.transform, u_inv_matrix: k.invTransform, u_camera_to_center_distance: (j = p).getCameraToCenterDistance(k.projection), u_viewport_size: [j.width, j.height] };
36016
- w.draw(t, f.TRIANGLES, Ht.disabled, fn.disabled, t.colorModeForRenderPass(), gn.disabled, O, n.id, N, E, Vn.simpleSegment(0, 2 * k.circleOffset, k.circleArray.length, k.circleArray.length / 2), null, p.zoom);
36016
+ w.draw(t, f.TRIANGLES, Zt.disabled, fn.disabled, t.colorModeForRenderPass(), gn.disabled, O, n.id, N, E, Vn.simpleSegment(0, 2 * k.circleOffset, k.circleArray.length, k.circleArray.length / 2), null, p.zoom);
36017
36017
  }
36018
36018
  var j;
36019
36019
  N.destroy(), E.destroy();
@@ -36070,7 +36070,7 @@ ${r.vertexSource}`;
36070
36070
  function bS(t, e, n, r, s, l, c, h, f, p, y, v, x) {
36071
36071
  const M = t.context, w = M.gl, T = t.transform, D = h === "map", E = f === "map", N = D && n.layout.get("symbol-placement") !== "point", j = D && !E && !N, k = n.layout.get("symbol-sort-key").constantOr(1) !== void 0;
36072
36072
  let O = !1;
36073
- const P = t.depthModeForSublayer(0, Ht.ReadOnly), Q = [Pi(T.center.lng), Qi(T.center.lat)], G = n.layout.get("text-variable-anchor"), q = T.projection.name === "globe", J = [], ie = [0, -1, 0];
36073
+ const P = t.depthModeForSublayer(0, Zt.ReadOnly), Q = [Pi(T.center.lng), Qi(T.center.lat)], G = n.layout.get("text-variable-anchor"), q = T.projection.name === "globe", J = [], ie = [0, -1, 0];
36074
36074
  let re = ie;
36075
36075
  !q && !T.mercatorFromTransition || D || (re = function(pe) {
36076
36076
  const ne = pe._camera.getWorldToCamera(pe.worldSize, 1), me = ze.multiply([], ne, pe.globeMatrix);
@@ -36093,9 +36093,9 @@ ${r.vertexSource}`;
36093
36093
  const ri = n.layout.get("icon-size").constantOr(0) !== 1 || me.iconsNeedLinear;
36094
36094
  qe = ne.imageAtlasTexture ? ne.imageAtlasTexture : null, Xe = ge || t.options.rotating || t.options.zooming || ri || Re ? w.LINEAR : w.NEAREST, Fe = ne.imageAtlasTexture ? ne.imageAtlasTexture.size : [0, 0];
36095
36095
  }
36096
- const It = me.projection.name === "globe", Tt = It ? re : ie, At = It ? qi(T.zoom) : 0, zt = g2(pe, me.getProjection(), T), Zt = T.calculatePixelsToTileUnitsMatrix(ne), Rt = Sg(zt, ne.tileID.canonical, E, D, T, me.getProjection(), Zt), Tn = t.terrain && E && N ? ze.invert(ze.create(), Rt) : MS, _n = uA(zt, ne.tileID.canonical, E, D, T, me.getProjection(), Zt), Gt = G && me.hasTextData(), $t = me.hasIconTextFit() && Gt && me.hasIconData();
36096
+ const It = me.projection.name === "globe", Tt = It ? re : ie, At = It ? qi(T.zoom) : 0, zt = g2(pe, me.getProjection(), T), Gt = T.calculatePixelsToTileUnitsMatrix(ne), Rt = Sg(zt, ne.tileID.canonical, E, D, T, me.getProjection(), Gt), Tn = t.terrain && E && N ? ze.invert(ze.create(), Rt) : MS, _n = uA(zt, ne.tileID.canonical, E, D, T, me.getProjection(), Gt), Wt = G && me.hasTextData(), $t = me.hasIconTextFit() && Wt && me.hasIconData();
36097
36097
  if (N) {
36098
- const ri = T.elevation, Un = ri ? ri.getAtTileOffsetFunc(pe, T.center.lat, T.worldSize, me.getProjection()) : null, ir = cA(zt, ne.tileID.canonical, E, D, T, me.getProjection(), Zt);
36098
+ const ri = T.elevation, Un = ri ? ri.getAtTileOffsetFunc(pe, T.center.lat, T.worldSize, me.getProjection()) : null, ir = cA(zt, ne.tileID.canonical, E, D, T, me.getProjection(), Gt);
36099
36099
  IF(me, zt, t, s, ir, _n, E, p, Un, pe);
36100
36100
  }
36101
36101
  const Ft = N || s && G || $t, xn = t.translatePosMatrix(zt, ne, l, c), wn = Ft ? MS : Rt, hn = t.translatePosMatrix(_n, ne, l, c, !0), Hn = me.getProjection().createInversionMatrix(T, pe.canonical), vi = n.paint.get("icon-image-cross-fade").constantOr(0), Yn = [];
@@ -36212,8 +36212,8 @@ ${r.vertexSource}`;
36212
36212
  else
36213
36213
  for (const Rt of zt.get())
36214
36214
  Re.numRenderedVerticesInTransparentPass += Rt.primitiveLength;
36215
- const Zt = [];
36216
- (t.terrain || h) && Zt.push(qe.centroidVertexBuffer), O && Zt.push(qe.layoutVertexExtBuffer), st.draw(t, f.gl.TRIANGLES, s, l, c, gn.backCCW, At, n.id, qe.layoutVertexBuffer, qe.indexBuffer, zt, n.paint, t.transform.zoom, $e, Zt);
36215
+ const Gt = [];
36216
+ (t.terrain || h) && Gt.push(qe.centroidVertexBuffer), O && Gt.push(qe.layoutVertexExtBuffer), st.draw(t, f.gl.TRIANGLES, s, l, c, gn.backCCW, At, n.id, qe.layoutVertexBuffer, qe.indexBuffer, zt, n.paint, t.transform.zoom, $e, Gt);
36217
36217
  }
36218
36218
  t.shadowRenderer && (t.shadowRenderer.useNormalOffset = !1);
36219
36219
  }
@@ -36370,7 +36370,7 @@ ${r.vertexSource}`;
36370
36370
  }
36371
36371
  const p = t.getOrCreateProgram("debug", { defines: h }), y = e.getTileByID(n.key);
36372
36372
  t.terrain && t.terrain.setupElevationDraw(y, p);
36373
- const v = Ht.disabled, x = fn.disabled, M = t.colorModeForRenderPass(), w = "$debug";
36373
+ const v = Zt.disabled, x = fn.disabled, M = t.colorModeForRenderPass(), w = "$debug";
36374
36374
  r.activeTexture.set(l.TEXTURE0), t.emptyTexture.bind(l.LINEAR, l.CLAMP_TO_EDGE), c ? y._makeGlobeTileDebugBuffers(t.context, s) : y._makeDebugTileBoundsBuffers(t.context, s.projection);
36375
36375
  const T = y._tileDebugBuffer || t.debugBuffer, D = y._tileDebugIndexBuffer || t.debugIndexBuffer, E = y._tileDebugSegments || t.debugSegments;
36376
36376
  p.draw(t, l.LINE_STRIP, v, x, M, gn.disabled, fS(f, dn.red), w, T, D, E, null, null, null, [y._globeTileDebugBorderBuffer]);
@@ -36405,7 +36405,7 @@ ${r.vertexSource}`;
36405
36405
  }
36406
36406
  function au(t, e, n, r, s, l) {
36407
36407
  const c = t.context.gl, h = e.paint.get("sky-atmosphere-color"), f = e.paint.get("sky-atmosphere-halo-color"), p = e.paint.get("sky-atmosphere-sun-intensity"), y = ((v, x, M, w, T) => ({ u_matrix_3f: v, u_sun_direction: x, u_sun_intensity: M, u_color_tint_r: [w.r, w.g, w.b, w.a], u_color_tint_m: [T.r, T.g, T.b, T.a], u_luminance: 5e-5 }))(zr.fromMat4(zr.create(), r), s, p, h, f);
36408
- c.framebufferTexture2D(c.FRAMEBUFFER, c.COLOR_ATTACHMENT0, c.TEXTURE_CUBE_MAP_POSITIVE_X + l, e.skyboxTexture, 0), n.draw(t, c.TRIANGLES, Ht.disabled, fn.disabled, An.unblended, gn.frontCW, y, "skyboxCapture", e.skyboxGeometry.vertexBuffer, e.skyboxGeometry.indexBuffer, e.skyboxGeometry.segment);
36408
+ c.framebufferTexture2D(c.FRAMEBUFFER, c.COLOR_ATTACHMENT0, c.TEXTURE_CUBE_MAP_POSITIVE_X + l, e.skyboxTexture, 0), n.draw(t, c.TRIANGLES, Zt.disabled, fn.disabled, An.unblended, gn.frontCW, y, "skyboxCapture", e.skyboxGeometry.vertexBuffer, e.skyboxGeometry.indexBuffer, e.skyboxGeometry.segment);
36409
36409
  }
36410
36410
  const FQ = jn([{ type: "Float32", name: "a_pos", components: 3 }, { type: "Float32", name: "a_uv", components: 2 }]);
36411
36411
  class VQ {
@@ -36448,7 +36448,7 @@ ${r.vertexSource}`;
36448
36448
  this.atmosphereBuffer && this.atmosphereBuffer.destroy(), this.starsVx && this.starsVx.destroy(), this.starsIdx && this.starsIdx.destroy();
36449
36449
  }
36450
36450
  drawAtmosphereGlow(e, n) {
36451
- const r = e.context, s = r.gl, l = e.transform, c = new Ht(s.LEQUAL, Ht.ReadOnly, [0, 1]), h = qi(l.zoom), f = n.properties.get("color").toArray01(), p = n.properties.get("high-color").toArray01(), y = n.properties.get("space-color").toArray01PremultipliedAlpha(), v = 5e-4, x = ee((n.properties.get("horizon-blend") - 0) / 1 * 0.2495 + v, 5e-4, 0.25), M = ED(e, r, l) && x === v ? l.worldSize / (2 * Math.PI * 1.025) - 1 : l.globeRadius, w = e.frameCounter / 1e3 % 1, T = de.length(l.globeCenterInViewSpace), D = Math.sqrt(Math.pow(T, 2) - Math.pow(M, 2)), E = Math.acos(D / T), N = (j) => {
36451
+ const r = e.context, s = r.gl, l = e.transform, c = new Zt(s.LEQUAL, Zt.ReadOnly, [0, 1]), h = qi(l.zoom), f = n.properties.get("color").toArray01(), p = n.properties.get("high-color").toArray01(), y = n.properties.get("space-color").toArray01PremultipliedAlpha(), v = 5e-4, x = ee((n.properties.get("horizon-blend") - 0) / 1 * 0.2495 + v, 5e-4, 0.25), M = ED(e, r, l) && x === v ? l.worldSize / (2 * Math.PI * 1.025) - 1 : l.globeRadius, w = e.frameCounter / 1e3 % 1, T = de.length(l.globeCenterInViewSpace), D = Math.sqrt(Math.pow(T, 2) - Math.pow(M, 2)), E = Math.acos(D / T), N = (j) => {
36452
36452
  const k = l.projection.name === "globe" ? ["PROJECTION_GLOBE_VIEW", "FOG"] : ["FOG"];
36453
36453
  j && k.push("ALPHA_PASS");
36454
36454
  const O = e.getOrCreateProgram("globeAtmosphere", { defines: k }), P = ((G, q, J, ie, re, pe, ne, me, xe, Ee, ge, ye) => ({ u_frustum_tl: G, u_frustum_tr: q, u_frustum_br: J, u_frustum_bl: ie, u_horizon: re, u_transition: pe, u_fadeout_range: ne, u_color: me, u_high_color: xe, u_space_color: Ee, u_temporal_offset: ge, u_horizon_angle: ye }))(l.frustumCorners.TL, l.frustumCorners.TR, l.frustumCorners.BR, l.frustumCorners.BL, l.frustumCorners.horizon, h, x, f, p, y, w, E);
@@ -36469,7 +36469,7 @@ ${r.vertexSource}`;
36469
36469
  const w = [1, 0, 0];
36470
36470
  de.transformMat3(w, w, x), de.scale(w, w, 0.15);
36471
36471
  const T = ((D, E, N, j) => ({ u_matrix: Float32Array.from(D), u_up: E, u_right: N, u_intensity_multiplier: j }))(y, M, w, r);
36472
- e.uploadCommonUniforms(s, h), this.starsVx && this.starsIdx && h.draw(e, l.TRIANGLES, Ht.disabled, fn.disabled, this.colorModeAlphaBlendedWriteRGB, gn.disabled, T, "atmosphere_stars", this.starsVx, this.starsIdx, this.starsSegments);
36472
+ e.uploadCommonUniforms(s, h), this.starsVx && this.starsIdx && h.draw(e, l.TRIANGLES, Zt.disabled, fn.disabled, this.colorModeAlphaBlendedWriteRGB, gn.disabled, T, "atmosphere_stars", this.starsVx, this.starsIdx, this.starsSegments);
36473
36473
  }
36474
36474
  }
36475
36475
  function AS(t, e) {
@@ -36487,7 +36487,7 @@ ${r.vertexSource}`;
36487
36487
  v(c, "HAS_TEXTURE_u_baseColorTexture", Gr.BaseColor), v(h, "HAS_TEXTURE_u_metallicRoughnessTexture", Gr.MetallicRoughness), v(f, "HAS_TEXTURE_u_normalTexture", Gr.Normal), v(p, "HAS_TEXTURE_u_occlusionTexture", Gr.Occlusion), v(y, "HAS_TEXTURE_u_emissionTexture", Gr.Emission), n.texcoordBuffer && (t.push("HAS_ATTRIBUTE_a_uv_2f"), e.push(n.texcoordBuffer)), n.colorBuffer && (t.push(n.colorBuffer.itemSize === 12 ? "HAS_ATTRIBUTE_a_color_3f" : "HAS_ATTRIBUTE_a_color_4f"), e.push(n.colorBuffer)), n.normalBuffer && (t.push("HAS_ATTRIBUTE_a_normal_3f"), e.push(n.normalBuffer)), n.pbrBuffer && (t.push("HAS_ATTRIBUTE_a_pbr"), t.push("HAS_ATTRIBUTE_a_heightBasedEmissiveStrength"), e.push(n.pbrBuffer)), s.alphaMode !== "OPAQUE" && s.alphaMode !== "MASK" || t.push("UNPREMULT_TEXTURE_IN_SHADER"), s.defined || t.push("DIFFUSE_SHADED"), t.push("USE_STANDARD_DERIVATIVES");
36488
36488
  }
36489
36489
  function Xg(t, e, n, r, s, l) {
36490
- const c = n.paint.get("model-opacity"), h = e.context, f = new Ht(e.context.gl.LEQUAL, Ht.ReadWrite, e.depthRangeFor3D), p = e.transform, y = t.mesh, v = y.material, x = v.pbrMetallicRoughness, M = e.style.fog;
36490
+ const c = n.paint.get("model-opacity"), h = e.context, f = new Zt(e.context.gl.LEQUAL, Zt.ReadWrite, e.depthRangeFor3D), p = e.transform, y = t.mesh, v = y.material, x = v.pbrMetallicRoughness, M = e.style.fog;
36491
36491
  let w;
36492
36492
  w = e.transform.projection.zAxisUnit === "pixels" ? [...t.nodeModelMatrix] : ze.multiply([], r.zScaleMatrix, t.nodeModelMatrix), ze.multiply(w, r.negCameraPosMatrix, w);
36493
36493
  const T = ze.invert([], w);
@@ -36565,7 +36565,7 @@ ${r.vertexSource}`;
36565
36565
  return e._zoomFromMercatorZ(Math.sqrt(y * y + v * v + x * x));
36566
36566
  }
36567
36567
  function SS(t, e, n, r, s, l, c) {
36568
- const h = t.context, f = t.renderPass === "shadow", p = t.shadowRenderer, y = f && p ? p.getShadowPassDepthMode() : new Ht(h.gl.LEQUAL, Ht.ReadWrite, t.depthRangeFor3D), v = t.isTileAffectedByFog(l);
36568
+ const h = t.context, f = t.renderPass === "shadow", p = t.shadowRenderer, y = f && p ? p.getShadowPassDepthMode() : new Zt(h.gl.LEQUAL, Zt.ReadWrite, t.depthRangeFor3D), v = t.isTileAffectedByFog(l);
36569
36569
  if (n.meshes)
36570
36570
  for (const x of n.meshes) {
36571
36571
  const M = ["MODEL_POSITION_ON_GPU"], w = [];
@@ -36668,7 +36668,7 @@ ${r.vertexSource}`;
36668
36668
  const s = n.paint.get("circle-opacity"), l = n.paint.get("circle-stroke-width"), c = n.paint.get("circle-stroke-opacity"), h = n.layout.get("circle-sort-key").constantOr(1) !== void 0, f = n.paint.get("circle-emissive-strength");
36669
36669
  if (s.constantOr(1) === 0 && (l.constantOr(1) === 0 || c.constantOr(1) === 0))
36670
36670
  return;
36671
- const p = t.context, y = p.gl, v = t.transform, x = t.depthModeForSublayer(0, Ht.ReadOnly), M = fn.disabled, w = t.colorModeForDrapableLayerRenderPass(f), T = v.projection.name === "globe", D = [Pi(v.center.lng), Qi(v.center.lat)], E = [];
36671
+ const p = t.context, y = p.gl, v = t.transform, x = t.depthModeForSublayer(0, Zt.ReadOnly), M = fn.disabled, w = t.colorModeForDrapableLayerRenderPass(f), T = v.projection.name === "globe", D = [Pi(v.center.lng), Qi(v.center.lat)], E = [];
36672
36672
  for (let j = 0; j < r.length; j++) {
36673
36673
  const k = r[j], O = e.getTile(k), P = O.getBucket(n);
36674
36674
  if (!P || P.projection.name !== v.projection.name)
@@ -36718,7 +36718,7 @@ ${r.vertexSource}`;
36718
36718
  const E = t.isTileAffectedByFog(w), N = D.programConfigurations.get(n.id), j = t.getOrCreateProgram("heatmap", { config: N, defines: y, overrideFog: E }), { zoom: k } = t.transform;
36719
36719
  t.terrain && t.terrain.setupElevationDraw(T, j), t.uploadCommonUniforms(s, j, w.toUnwrapped());
36720
36720
  const O = f.projection.createInversionMatrix(f, w.canonical);
36721
- j.draw(t, l.TRIANGLES, Ht.disabled, c, h, v, mQ(t, w, T, O, x, k, n.paint.get("heatmap-intensity")), n.id, D.layoutVertexBuffer, D.indexBuffer, D.segments, n.paint, t.transform.zoom, N, p ? [D.globeExtVertexBuffer] : null);
36721
+ j.draw(t, l.TRIANGLES, Zt.disabled, c, h, v, mQ(t, w, T, O, x, k, n.paint.get("heatmap-intensity")), n.id, D.layoutVertexBuffer, D.indexBuffer, D.segments, n.paint, t.transform.zoom, N, p ? [D.globeExtVertexBuffer] : null);
36722
36722
  }
36723
36723
  s.viewport.set([0, 0, t.width, t.height]);
36724
36724
  } else
@@ -36728,7 +36728,7 @@ ${r.vertexSource}`;
36728
36728
  return;
36729
36729
  c.activeTexture.set(h.TEXTURE0), h.bindTexture(h.TEXTURE_2D, f.colorAttachment.get()), c.activeTexture.set(h.TEXTURE1);
36730
36730
  let p = l.colorRampTexture;
36731
- p || (p = l.colorRampTexture = new di(c, l.colorRamp, h.RGBA)), p.bind(h.LINEAR, h.CLAMP_TO_EDGE), s.getOrCreateProgram("heatmapTexture").draw(s, h.TRIANGLES, Ht.disabled, fn.disabled, s.colorModeForRenderPass(), gn.disabled, ((y, v, x, M) => ({ u_image: 0, u_color_ramp: 1, u_opacity: v.paint.get("heatmap-opacity") }))(0, l), l.id, s.viewportBuffer, s.quadTriangleIndexBuffer, s.viewportSegments, l.paint, s.transform.zoom);
36731
+ p || (p = l.colorRampTexture = new di(c, l.colorRamp, h.RGBA)), p.bind(h.LINEAR, h.CLAMP_TO_EDGE), s.getOrCreateProgram("heatmapTexture").draw(s, h.TRIANGLES, Zt.disabled, fn.disabled, s.colorModeForRenderPass(), gn.disabled, ((y, v, x, M) => ({ u_image: 0, u_color_ramp: 1, u_opacity: v.paint.get("heatmap-opacity") }))(0, l), l.id, s.viewportBuffer, s.quadTriangleIndexBuffer, s.viewportSegments, l.paint, s.transform.zoom);
36732
36732
  }(t, n));
36733
36733
  }, line: function(t, e, n, r) {
36734
36734
  if (t.renderPass !== "translucent")
@@ -36736,7 +36736,7 @@ ${r.vertexSource}`;
36736
36736
  const s = n.paint.get("line-opacity"), l = n.paint.get("line-width");
36737
36737
  if (s.constantOr(1) === 0 || l.constantOr(1) === 0)
36738
36738
  return;
36739
- const c = n.paint.get("line-emissive-strength"), h = t.depthModeForSublayer(0, Ht.ReadOnly), f = t.colorModeForDrapableLayerRenderPass(c), p = t.terrain && t.terrain.renderingToTexture ? 1 : nn.devicePixelRatio, y = n.paint.get("line-dasharray"), v = y.constantOr(1), x = n.layout.get("line-cap"), M = n.paint.get("line-pattern"), w = M.constantOr(1), T = n.paint.get("line-pattern").constantOr(1), D = n.paint.get("line-opacity").constantOr(1) !== 1;
36739
+ const c = n.paint.get("line-emissive-strength"), h = t.depthModeForSublayer(0, Zt.ReadOnly), f = t.colorModeForDrapableLayerRenderPass(c), p = t.terrain && t.terrain.renderingToTexture ? 1 : nn.devicePixelRatio, y = n.paint.get("line-dasharray"), v = y.constantOr(1), x = n.layout.get("line-cap"), M = n.paint.get("line-pattern"), w = M.constantOr(1), T = n.paint.get("line-pattern").constantOr(1), D = n.paint.get("line-opacity").constantOr(1) !== 1;
36740
36740
  let E = !T && D;
36741
36741
  const N = n.paint.get("line-gradient"), j = w ? "linePattern" : "line", k = t.context, O = k.gl, P = JA(n);
36742
36742
  t.terrain && t.terrain.clipOrMaskOverlapStencilType() && (E = !1);
@@ -36793,11 +36793,11 @@ ${r.vertexSource}`;
36793
36793
  return;
36794
36794
  const c = n.paint.get("fill-emissive-strength"), h = t.colorModeForDrapableLayerRenderPass(c), f = n.paint.get("fill-pattern"), p = t.opaquePassEnabledForLayer() && !f.constantOr(1) && s.constantOr(dn.transparent).a === 1 && l.constantOr(0) === 1 ? "opaque" : "translucent";
36795
36795
  if (t.renderPass === p) {
36796
- const y = t.depthModeForSublayer(1, t.renderPass === "opaque" ? Ht.ReadWrite : Ht.ReadOnly);
36796
+ const y = t.depthModeForSublayer(1, t.renderPass === "opaque" ? Zt.ReadWrite : Zt.ReadOnly);
36797
36797
  wS(t, e, n, r, y, h, !1);
36798
36798
  }
36799
36799
  if (t.renderPass === "translucent" && n.paint.get("fill-antialias")) {
36800
- const y = t.depthModeForSublayer(n.getPaintProperty("fill-outline-color") ? 2 : 0, Ht.ReadOnly);
36800
+ const y = t.depthModeForSublayer(n.getPaintProperty("fill-outline-color") ? 2 : 0, Zt.ReadOnly);
36801
36801
  wS(t, e, n, r, y, h, !0);
36802
36802
  }
36803
36803
  }, "fill-extrusion": function(t, e, n, r) {
@@ -36824,12 +36824,12 @@ ${r.vertexSource}`;
36824
36824
  } else if (t.renderPass === "translucent") {
36825
36825
  const v = !n.paint.get("fill-extrusion-pattern").constantOr(1);
36826
36826
  if (!f) {
36827
- const x = new Ht(t.context.gl.LEQUAL, Ht.ReadWrite, t.depthRangeFor3D);
36827
+ const x = new Zt(t.context.gl.LEQUAL, Zt.ReadWrite, t.depthRangeFor3D);
36828
36828
  p === 0 && s === 1 && v ? qg(t, e, n, r, x, fn.disabled, An.unblended, y) : (qg(t, e, n, r, x, fn.disabled, An.disabled, y), qg(t, e, n, r, x, t.stencilModeFor3D(), t.colorModeForRenderPass(), y), t.resetStencilClippingMasks());
36829
36829
  }
36830
36830
  if (t.style.enable3dLights() && v && (!h && t.transform.projection.name !== "globe" || f)) {
36831
36831
  const x = n.paint.get("fill-extrusion-opacity"), M = n.paint.get("fill-extrusion-ambient-occlusion-intensity"), w = n.paint.get("fill-extrusion-ambient-occlusion-ground-radius"), T = n.paint.get("fill-extrusion-flood-light-intensity"), D = n.paint.get("fill-extrusion-flood-light-color").toArray01().slice(0, 3), E = M > 0 && w > 0, N = T > 0, j = (O, P, Q) => (1 - Q) * O + Q * P, k = (O) => {
36832
- const P = t.depthModeForSublayer(1, Ht.ReadOnly, c.LEQUAL, !0), Q = n.paint.get(O ? "fill-extrusion-ambient-occlusion-ground-attenuation" : "fill-extrusion-flood-light-ground-attenuation"), G = j(0.1, 3, Q), q = t._showOverdrawInspector;
36832
+ const P = t.depthModeForSublayer(1, Zt.ReadOnly, c.LEQUAL, !0), Q = n.paint.get(O ? "fill-extrusion-ambient-occlusion-ground-attenuation" : "fill-extrusion-flood-light-ground-attenuation"), G = j(0.1, 3, Q), q = t._showOverdrawInspector;
36833
36833
  if (!q) {
36834
36834
  const J = new fn({ func: c.ALWAYS, mask: 255 }, 255, 255, c.KEEP, c.KEEP, c.REPLACE), ie = new An([c.ONE, c.ONE, c.ONE, c.ONE], dn.transparent, [!1, !1, !1, !0], c.MIN);
36835
36835
  su(t, e, n, r, P, J, ie, gn.disabled, O, "sdf", x, M, w, T, D, G, y, !1);
@@ -36841,7 +36841,7 @@ ${r.vertexSource}`;
36841
36841
  };
36842
36842
  if (f) {
36843
36843
  const O = (P, Q, G) => {
36844
- const q = t.depthModeForSublayer(1, Ht.ReadOnly, c.LEQUAL, !1), J = n.paint.get(P ? "fill-extrusion-ambient-occlusion-ground-attenuation" : "fill-extrusion-flood-light-ground-attenuation"), ie = j(0.1, 3, J);
36844
+ const q = t.depthModeForSublayer(1, Zt.ReadOnly, c.LEQUAL, !1), J = n.paint.get(P ? "fill-extrusion-ambient-occlusion-ground-attenuation" : "fill-extrusion-flood-light-ground-attenuation"), ie = j(0.1, 3, J);
36845
36845
  {
36846
36846
  const re = new An([c.ONE, c.ONE, c.ONE, c.ONE], dn.transparent, [!1, !1, !1, !0]);
36847
36847
  su(t, e, n, r, q, fn.disabled, re, gn.disabled, P, "clear", x, M, w, T, D, ie, y, Q);
@@ -36880,7 +36880,7 @@ ${r.vertexSource}`;
36880
36880
  if (p.needsHillshadePrepare && t.renderPass === "offscreen")
36881
36881
  tQ(t, p, n);
36882
36882
  else if (t.renderPass === "translucent") {
36883
- const y = t.depthModeForSublayer(0, Ht.ReadOnly), v = n.paint.get("hillshade-emissive-strength"), x = t.colorModeForDrapableLayerRenderPass(v), M = l && t.terrain ? t.terrain.stencilModeForRTTOverlap(f) : c[f.overscaledZ];
36883
+ const y = t.depthModeForSublayer(0, Zt.ReadOnly), v = n.paint.get("hillshade-emissive-strength"), x = t.colorModeForDrapableLayerRenderPass(v), M = l && t.terrain ? t.terrain.stencilModeForRTTOverlap(f) : c[f.overscaledZ];
36884
36884
  eQ(t, f, p, n, y, M, x);
36885
36885
  }
36886
36886
  }
@@ -36920,14 +36920,14 @@ ${r.vertexSource}`;
36920
36920
  const q = t.globeSharedBuffers;
36921
36921
  if (!q)
36922
36922
  return;
36923
- const J = new Ht(h.LEQUAL, Ht.ReadWrite, t.depthRangeFor3D), ie = Float32Array.from(t.transform.expandedFarZProjMatrix);
36923
+ const J = new Zt(h.LEQUAL, Zt.ReadWrite, t.depthRangeFor3D), ie = Float32Array.from(t.transform.expandedFarZProjMatrix);
36924
36924
  let re = SD(0, 0, t.transform);
36925
36925
  const pe = Float32Array.from(Sa(uo(new Do(0, 0, 0)))), ne = { opacity: 1, mix: 0 };
36926
36926
  t.terrain && t.terrain.prepareDrawTile(), c.activeTexture.set(h.TEXTURE0), G.bind(N, h.CLAMP_TO_EDGE), c.activeTexture.set(h.TEXTURE1), G.bind(N, h.CLAMP_TO_EDGE), G.useMipmap && c.extTextureFilterAnisotropic && t.transform.pitch > 20 && h.texParameterf(h.TEXTURE_2D, c.extTextureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT, c.extTextureFilterAnisotropicMax);
36927
36927
  const [me, xe, Ee, ge] = q.getPoleBuffers(0, !0);
36928
36928
  let ye;
36929
36929
  Q.onNorthPole ? (ye = me, t.renderDefaultNorthPole = !1) : (re = ze.scale(ze.create(), re, [1, -1, 1]), ye = xe, t.renderDefaultSouthPole = !1);
36930
- const Re = ((Fe, qe, Xe, tt, $e, st, It, Tt, At, zt, Zt, Rt) => pS(Fe, qe, Xe, new Float32Array(16), new Float32Array(9), [0, 0], [0, 0, 0, 0], 0, [0, 0], [0, 0, 0, 0], 1, tt, $e, st || [0, 0], It, 2, At, zt, Zt, 1, 0, Rt))(ie, pe, re, ne, n, Q.perspectiveTransform || [0, 0], n.paint.get("raster-elevation"), 0, p.mix, p.offset, p.range, M), Ve = t.getOrCreateProgram("raster", { defines: p.defines });
36930
+ const Re = ((Fe, qe, Xe, tt, $e, st, It, Tt, At, zt, Gt, Rt) => pS(Fe, qe, Xe, new Float32Array(16), new Float32Array(9), [0, 0], [0, 0, 0, 0], 0, [0, 0], [0, 0, 0, 0], 1, tt, $e, st || [0, 0], It, 2, At, zt, Gt, 1, 0, Rt))(ie, pe, re, ne, n, Q.perspectiveTransform || [0, 0], n.paint.get("raster-elevation"), 0, p.mix, p.offset, p.range, M), Ve = t.getOrCreateProgram("raster", { defines: p.defines });
36931
36931
  return t.uploadCommonUniforms(c, Ve, null), void Ve.draw(t, h.TRIANGLES, J, fn.disabled, w, gn.disabled, Re, n.id, ye, Ee, ge);
36932
36932
  }
36933
36933
  if (!r.length)
@@ -36939,7 +36939,7 @@ ${r.vertexSource}`;
36939
36939
  if (T && (!q || !q.hasData()) || !q.texture)
36940
36940
  continue;
36941
36941
  let J, ie;
36942
- T ? (J = Ht.disabled, ie = Q.projMatrix) : D ? (J = new Ht(h.LEQUAL, Ht.ReadWrite, t.depthRangeFor3D), ie = v ? Float32Array.from(t.transform.expandedFarZProjMatrix) : t.transform.calculateProjMatrix(G, E)) : (J = t.depthModeForSublayer(Q.overscaledZ - O, n.paint.get("raster-opacity") === 1 ? Ht.ReadWrite : Ht.ReadOnly, h.LESS), ie = t.transform.calculateProjMatrix(G, E));
36942
+ T ? (J = Zt.disabled, ie = Q.projMatrix) : D ? (J = new Zt(h.LEQUAL, Zt.ReadWrite, t.depthRangeFor3D), ie = v ? Float32Array.from(t.transform.expandedFarZProjMatrix) : t.transform.calculateProjMatrix(G, E)) : (J = t.depthModeForSublayer(Q.overscaledZ - O, n.paint.get("raster-opacity") === 1 ? Zt.ReadWrite : Zt.ReadOnly, h.LESS), ie = t.transform.calculateProjMatrix(G, E));
36943
36943
  const re = t.terrain && T ? t.terrain.stencilModeForRTTOverlap(Q) : j[Q.overscaledZ], pe = l ? 0 : n.paint.get("raster-fade-duration");
36944
36944
  q.registerFadeDuration(pe);
36945
36945
  const ne = e.findLoadedParent(Q, 0), me = sS(q, ne, e, t.transform, pe);
@@ -36958,12 +36958,12 @@ ${r.vertexSource}`;
36958
36958
  if (T || !v)
36959
36959
  f.boundsBuffer && f.boundsSegments && Tt.draw(t, h.TRIANGLES, J, fn.disabled, w, gn.disabled, st, n.id, f.boundsBuffer, t.quadTriangleIndexBuffer, f.boundsSegments);
36960
36960
  else if (t.globeSharedBuffers) {
36961
- const [At, zt, Zt] = t.globeSharedBuffers.getGridBuffers(0, !1);
36962
- Tt.draw(t, h.TRIANGLES, J, fn.disabled, w, gn.frontCCW, st, n.id, At, zt, Zt), Tt.draw(t, h.TRIANGLES, J, fn.disabled, w, gn.backCCW, st, n.id, At, zt, Zt);
36961
+ const [At, zt, Gt] = t.globeSharedBuffers.getGridBuffers(0, !1);
36962
+ Tt.draw(t, h.TRIANGLES, J, fn.disabled, w, gn.frontCCW, st, n.id, At, zt, Gt), Tt.draw(t, h.TRIANGLES, J, fn.disabled, w, gn.backCCW, st, n.id, At, zt, Gt);
36963
36963
  }
36964
36964
  } else {
36965
- const { tileBoundsBuffer: At, tileBoundsIndexBuffer: zt, tileBoundsSegments: Zt } = t.getTileBoundsBuffers(q);
36966
- Tt.draw(t, h.TRIANGLES, J, re, w, gn.disabled, st, n.id, At, zt, Zt);
36965
+ const { tileBoundsBuffer: At, tileBoundsIndexBuffer: zt, tileBoundsSegments: Gt } = t.getTileBoundsBuffers(q);
36966
+ Tt.draw(t, h.TRIANGLES, J, re, w, gn.disabled, st, n.id, At, zt, Gt);
36967
36967
  }
36968
36968
  }
36969
36969
  t.resetStencilClippingMasks();
@@ -36977,7 +36977,7 @@ ${r.vertexSource}`;
36977
36977
  const x = !v && s.a === 1 && l === 1 && t.opaquePassEnabledForLayer() ? "opaque" : "translucent";
36978
36978
  if (t.renderPass !== x)
36979
36979
  return;
36980
- const M = fn.disabled, w = t.depthModeForSublayer(0, x === "opaque" ? Ht.ReadWrite : Ht.ReadOnly), T = t.colorModeForDrapableLayerRenderPass(c), D = v ? "backgroundPattern" : "background";
36980
+ const M = fn.disabled, w = t.depthModeForSublayer(0, x === "opaque" ? Zt.ReadWrite : Zt.ReadOnly), T = t.colorModeForDrapableLayerRenderPass(c), D = v ? "backgroundPattern" : "background";
36981
36981
  let E, N = r;
36982
36982
  N || (E = t.getBackgroundTiles(), N = Object.values(E).map((j) => j.tileID)), v && (h.activeTexture.set(f.TEXTURE0), t.imageManager.bind(t.context, n.scope));
36983
36983
  for (const j of N) {
@@ -36992,7 +36992,7 @@ ${r.vertexSource}`;
36992
36992
  const r = t._atmosphere ? qi(t.transform.zoom) : 1, s = n.paint.get("sky-opacity") * r;
36993
36993
  if (s === 0)
36994
36994
  return;
36995
- const l = t.context, c = n.paint.get("sky-type"), h = new Ht(l.gl.LEQUAL, Ht.ReadOnly, [0, 1]), f = t.frameCounter / 1e3 % 1;
36995
+ const l = t.context, c = n.paint.get("sky-type"), h = new Zt(l.gl.LEQUAL, Zt.ReadOnly, [0, 1]), f = t.frameCounter / 1e3 % 1;
36996
36996
  c === "atmosphere" ? t.renderPass === "offscreen" ? n.needsSkyboxCapture(t) && (function(p, y, v, x) {
36997
36997
  const M = p.context, w = M.gl;
36998
36998
  let T = y.skyboxFbo;
@@ -37038,12 +37038,12 @@ ${r.vertexSource}`;
37038
37038
  const h = l.renderToTile;
37039
37039
  if (h) {
37040
37040
  const f = r[0].canonical, p = new Mn(f.x + r[0].wrap * (1 << f.z), f.y, f.z);
37041
- s.setDepthMode(Ht.disabled), s.setStencilMode(fn.disabled), s.setColorMode(t.colorModeForRenderPass()), t.setCustomLayerDefaults(), h.call(l, s.gl, p), s.setDirty(), t.setBaseState();
37041
+ s.setDepthMode(Zt.disabled), s.setStencilMode(fn.disabled), s.setColorMode(t.colorModeForRenderPass()), t.setCustomLayerDefaults(), h.call(l, s.gl, p), s.setDirty(), t.setBaseState();
37042
37042
  }
37043
37043
  return;
37044
37044
  }
37045
37045
  t.setCustomLayerDefaults(), s.setColorMode(t.colorModeForRenderPass()), s.setStencilMode(fn.disabled);
37046
- const c = l.renderingMode === "3d" ? new Ht(t.context.gl.LEQUAL, Ht.ReadWrite, t.depthRangeFor3D) : t.depthModeForSublayer(0, Ht.ReadOnly);
37046
+ const c = l.renderingMode === "3d" ? new Zt(t.context.gl.LEQUAL, Zt.ReadWrite, t.depthRangeFor3D) : t.depthModeForSublayer(0, Zt.ReadOnly);
37047
37047
  if (s.setDepthMode(c), t.transform.projection.name === "globe") {
37048
37048
  const h = t.transform.pointMerc;
37049
37049
  l.render(s.gl, t.transform.customLayerMatrix(), t.transform.getProjection(), t.transform.globeToMercatorMatrix(), qi(t.transform.zoom), [h.x, h.y], t.transform.pixelsPerMeterRatio);
@@ -37117,7 +37117,7 @@ ${r.vertexSource}`;
37117
37117
  de.negate(J, J);
37118
37118
  const ie = ze.identity([]), re = Na(P.center.lat, P.zoom), pe = ze.fromScaling([], [1, 1, 1 / re]);
37119
37119
  ze.translate(ie, ie, J);
37120
- const ne = j.paint.get("model-opacity"), me = new Ht(O.gl.LEQUAL, Ht.ReadWrite, E.depthRangeFor3D), xe = new Ht(O.gl.LEQUAL, Ht.ReadOnly, E.depthRangeFor3D), Ee = function(ge, ye) {
37120
+ const ne = j.paint.get("model-opacity"), me = new Zt(O.gl.LEQUAL, Zt.ReadWrite, E.depthRangeFor3D), xe = new Zt(O.gl.LEQUAL, Zt.ReadOnly, E.depthRangeFor3D), Ee = function(ge, ye) {
37121
37121
  for (const Re of k) {
37122
37122
  const Ve = N.getTile(Re).getBucket(j);
37123
37123
  if (!Ve || !Ve.uploaded)
@@ -37133,12 +37133,12 @@ ${r.vertexSource}`;
37133
37133
  E.terrain && $e.elevation && (At = $e.elevation * E.terrain.exaggeration()), ze.translate(It, It, [($e.anchor ? $e.anchor[0] : 0) * (Tt[0] - 1), ($e.anchor ? $e.anchor[1] : 0) * (Tt[1] - 1), At]), Tt !== TF && ze.scale(It, It, Tt), ze.multiply(It, It, $e.matrix);
37134
37134
  const zt = ze.multiply([], pe, It);
37135
37135
  ze.multiply(zt, ie, zt);
37136
- const Zt = ze.invert([], zt);
37137
- ze.transpose(Zt, Zt), ze.scale(Zt, Zt, ZQ);
37136
+ const Gt = ze.invert([], zt);
37137
+ ze.transpose(Gt, Gt), ze.scale(Gt, Gt, ZQ);
37138
37138
  const Rt = ze.multiply([], P.expandedFarZProjMatrix, It);
37139
37139
  for (let Tn = 0; Tn < $e.meshes.length; ++Tn) {
37140
- const _n = $e.meshes[Tn], Gt = Tn === $e.lightMeshIndex;
37141
- if (Gt) {
37140
+ const _n = $e.meshes[Tn], Wt = Tn === $e.lightMeshIndex;
37141
+ if (Wt) {
37142
37142
  if (!st && !E.terrain && E.shadowRenderer) {
37143
37143
  E.currentLayer < E.firstLightBeamLayer && (E.firstLightBeamLayer = E.currentLayer);
37144
37144
  continue;
@@ -37164,8 +37164,8 @@ ${r.vertexSource}`;
37164
37164
  !xn && G && (G.useNormalOffset = !!_n.normalBuffer, G.setupShadowsFromMatrix(It, hn, G.useNormalOffset)), E.uploadCommonUniforms(O, hn, Re.toUnwrapped(), wn);
37165
37165
  const Hn = _n.material, vi = Hn.pbrMetallicRoughness;
37166
37166
  vi.metallicFactor = 0.9, vi.roughnessFactor = 0.5;
37167
- const Yn = 0, Jn = b2(new Float32Array(Rt), new Float32Array(zt), new Float32Array(Zt), E, ne, vi.baseColorFactor, Hn.emissiveFactor, vi.metallicFactor, vi.roughnessFactor, Hn, Yn, j);
37168
- hn.draw(E, O.gl.TRIANGLES, ye && !Gt ? me : xe, fn.disabled, ge ? Gt || ne < 1 || tt.hasTranslucentParts ? An.alphaBlended : An.unblended : An.disabled, gn.backCCW, Jn, j.id, _n.vertexBuffer, _n.indexBuffer, _n.segments, j.paint, E.transform.zoom, void 0, Ft);
37167
+ const Yn = 0, Jn = b2(new Float32Array(Rt), new Float32Array(zt), new Float32Array(Gt), E, ne, vi.baseColorFactor, Hn.emissiveFactor, vi.metallicFactor, vi.roughnessFactor, Hn, Yn, j);
37168
+ hn.draw(E, O.gl.TRIANGLES, ye && !Wt ? me : xe, fn.disabled, ge ? Wt || ne < 1 || tt.hasTranslucentParts ? An.alphaBlended : An.unblended : An.disabled, gn.backCCW, Jn, j.id, _n.vertexBuffer, _n.indexBuffer, _n.segments, j.paint, E.transform.zoom, void 0, Ft);
37169
37169
  }
37170
37170
  }
37171
37171
  }
@@ -37286,7 +37286,7 @@ ${r.vertexSource}`;
37286
37286
  }
37287
37287
  clearStencil() {
37288
37288
  const e = this.context.gl;
37289
- this.nextStencilID = 1, this.currentStencilSource = void 0, this._tileClippingMaskIDs = {}, this.getOrCreateProgram("clippingMask").draw(this, e.TRIANGLES, Ht.disabled, this.stencilClearMode, An.disabled, gn.disabled, M2(this.identityMat), "$clipping", this.viewportBuffer, this.quadTriangleIndexBuffer, this.viewportSegments);
37289
+ this.nextStencilID = 1, this.currentStencilSource = void 0, this._tileClippingMaskIDs = {}, this.getOrCreateProgram("clippingMask").draw(this, e.TRIANGLES, Zt.disabled, this.stencilClearMode, An.disabled, gn.disabled, M2(this.identityMat), "$clipping", this.viewportBuffer, this.quadTriangleIndexBuffer, this.viewportSegments);
37290
37290
  }
37291
37291
  resetStencilClippingMasks() {
37292
37292
  this.terrain || (this.currentStencilSource = void 0, this._tileClippingMaskIDs = {});
@@ -37306,12 +37306,12 @@ ${r.vertexSource}`;
37306
37306
  }
37307
37307
  this.currentStencilSource = n.id;
37308
37308
  const s = this.context, l = s.gl;
37309
- this.nextStencilID + r.length > 256 && this.clearStencil(), s.setColorMode(An.disabled), s.setDepthMode(Ht.disabled);
37309
+ this.nextStencilID + r.length > 256 && this.clearStencil(), s.setColorMode(An.disabled), s.setDepthMode(Zt.disabled);
37310
37310
  const c = this.getOrCreateProgram("clippingMask");
37311
37311
  this._tileClippingMaskIDs = {};
37312
37312
  for (const h of r) {
37313
37313
  const f = n.getTile(h), p = this._tileClippingMaskIDs[h.key] = this.nextStencilID++, { tileBoundsBuffer: y, tileBoundsIndexBuffer: v, tileBoundsSegments: x } = this.getTileBoundsBuffers(f);
37314
- c.draw(this, l.TRIANGLES, Ht.disabled, new fn({ func: l.ALWAYS, mask: 0 }, p, 255, l.KEEP, l.KEEP, l.REPLACE), An.disabled, gn.disabled, M2(h.projMatrix), "$clipping", y, v, x);
37314
+ c.draw(this, l.TRIANGLES, Zt.disabled, new fn({ func: l.ALWAYS, mask: 0 }, p, 255, l.KEEP, l.KEEP, l.REPLACE), An.disabled, gn.disabled, M2(h.projMatrix), "$clipping", y, v, x);
37315
37315
  }
37316
37316
  }
37317
37317
  stencilModeFor3D() {
@@ -37346,9 +37346,9 @@ ${r.vertexSource}`;
37346
37346
  }
37347
37347
  depthModeForSublayer(e, n, r, s = !1) {
37348
37348
  if (!this.opaquePassEnabledForLayer() && !s)
37349
- return Ht.disabled;
37349
+ return Zt.disabled;
37350
37350
  const l = 1 - ((1 + this.currentLayer) * this.numSublayers + e) * this.depthEpsilon;
37351
- return new Ht(r || this.context.gl.LEQUAL, n, [l, l]);
37351
+ return new Zt(r || this.context.gl.LEQUAL, n, [l, l]);
37352
37352
  }
37353
37353
  opaquePassEnabledForLayer() {
37354
37354
  return this.currentLayer < this.opaquePassCutoff;
@@ -37716,7 +37716,7 @@ ${r.vertexSource}`;
37716
37716
  }
37717
37717
  class eY {
37718
37718
  constructor(e) {
37719
- this.painter = e, this._enabled = !1, this._shadowLayerCount = 0, this._numCascadesToRender = 0, this._cascades = [], this._groundShadowTiles = [], this._receivers = new JQ(), this._depthMode = new Ht(e.context.gl.LEQUAL, Ht.ReadWrite, [0, 1]), this._uniformValues = { u_light_matrix_0: new Float32Array(16), u_light_matrix_1: new Float32Array(16), u_shadow_intensity: 0, u_fade_range: [0, 0], u_shadow_normal_offset: [1, 1, 1], u_shadow_texel_size: 1, u_shadow_map_resolution: 1, u_shadow_direction: [0, 0, 1], u_shadow_bias: [36e-5, 12e-4, 0.012], u_shadowmap_0: 0, u_shadowmap_1: 0 }, this.useNormalOffset = !1;
37719
+ this.painter = e, this._enabled = !1, this._shadowLayerCount = 0, this._numCascadesToRender = 0, this._cascades = [], this._groundShadowTiles = [], this._receivers = new JQ(), this._depthMode = new Zt(e.context.gl.LEQUAL, Zt.ReadWrite, [0, 1]), this._uniformValues = { u_light_matrix_0: new Float32Array(16), u_light_matrix_1: new Float32Array(16), u_shadow_intensity: 0, u_fade_range: [0, 0], u_shadow_normal_offset: [1, 1, 1], u_shadow_texel_size: 1, u_shadow_map_resolution: 1, u_shadow_direction: [0, 0, 1], u_shadow_bias: [36e-5, 12e-4, 0.012], u_shadowmap_0: 0, u_shadowmap_1: 0 }, this.useNormalOffset = !1;
37720
37720
  }
37721
37721
  destroy() {
37722
37722
  for (const e of this._cascades)
@@ -37802,7 +37802,7 @@ ${r.vertexSource}`;
37802
37802
  return;
37803
37803
  const c = [], h = ru(e, e.longestCutoffRange);
37804
37804
  h.shouldRenderCutoff && c.push("RENDER_CUTOFF");
37805
- const f = D2(s, l), p = new Ht(r.gl.LEQUAL, Ht.ReadOnly, e.depthRangeFor3D);
37805
+ const f = D2(s, l), p = new Zt(r.gl.LEQUAL, Zt.ReadOnly, e.depthRangeFor3D);
37806
37806
  for (const y of this._groundShadowTiles) {
37807
37807
  const v = y.toUnwrapped(), x = e.isTileAffectedByFog(y), M = e.getOrCreateProgram("groundShadow", { defines: c, overrideFog: x });
37808
37808
  this.setupShadows(v, M), e.uploadCommonUniforms(r, M, v, null, h);
@@ -38014,7 +38014,7 @@ ${r.vertexSource}`;
38014
38014
  }
38015
38015
  loadURL(e, n = {}) {
38016
38016
  this.fire(new gt("dataloading", { dataType: "style" }));
38017
- const r = typeof n.validate == "boolean" ? n.validate : !qt(e);
38017
+ const r = typeof n.validate == "boolean" ? n.validate : !Ht(e);
38018
38018
  e = this.map._requestManager.normalizeStyleURL(e, n.accessToken), this.resolvedImports.add(e);
38019
38019
  const s = this.importsCache.get(e);
38020
38020
  if (s)
@@ -38196,7 +38196,7 @@ ${r.vertexSource}`;
38196
38196
  const f = nn.devicePixelRatio > 1 ? "@2x" : "";
38197
38197
  let p = lt(r.transformRequest(r.normalizeSpriteURL(n, f, ".json"), Te.SpriteJSON), (x, M) => {
38198
38198
  p = null, h || (h = x, l = M, v());
38199
- }), y = Wt(r.transformRequest(r.normalizeSpriteURL(n, f, ".png"), Te.SpriteImage), (x, M) => {
38199
+ }), y = qt(r.transformRequest(r.normalizeSpriteURL(n, f, ".png"), Te.SpriteImage), (x, M) => {
38200
38200
  y = null, h || (h = x, c = M, v());
38201
38201
  });
38202
38202
  function v() {
@@ -41564,7 +41564,7 @@ ${r.vertexSource}`;
41564
41564
  this.style.removeImage(t);
41565
41565
  }
41566
41566
  loadImage(t, e) {
41567
- Wt(this._requestManager.transformRequest(t, Te.Image), (n, r) => {
41567
+ qt(this._requestManager.transformRequest(t, Te.Image), (n, r) => {
41568
41568
  e(n, r instanceof m.HTMLImageElement ? nn.getImageData(r) : r);
41569
41569
  });
41570
41570
  }
@@ -42877,11 +42877,11 @@ ${r.vertexSource}`;
42877
42877
  var Me = { exports: {} };
42878
42878
  Me.exports = function() {
42879
42879
  function Ie(Te, Ue, it, ct) {
42880
- for (var lt, _t = ct, xt = it - Ue >> 1, vt = it - Ue, Et = Te[Ue], Mt = Te[Ue + 1], Wt = Te[it], Rn = Te[it + 1], yt = Ue + 3; yt < it; yt += 3) {
42881
- var qt = X(Te[yt], Te[yt + 1], Et, Mt, Wt, Rn);
42882
- if (qt > _t)
42883
- lt = yt, _t = qt;
42884
- else if (qt === _t) {
42880
+ for (var lt, _t = ct, xt = it - Ue >> 1, vt = it - Ue, Et = Te[Ue], Mt = Te[Ue + 1], qt = Te[it], Rn = Te[it + 1], yt = Ue + 3; yt < it; yt += 3) {
42881
+ var Ht = X(Te[yt], Te[yt + 1], Et, Mt, qt, Rn);
42882
+ if (Ht > _t)
42883
+ lt = yt, _t = Ht;
42884
+ else if (Ht === _t) {
42885
42885
  var Dn = Math.abs(yt - xt);
42886
42886
  Dn < vt && (lt = yt, vt = Dn);
42887
42887
  }
@@ -42944,8 +42944,8 @@ ${r.vertexSource}`;
42944
42944
  throw new Error("Input data is not a valid GeoJSON object.");
42945
42945
  }
42946
42946
  for (Mt = 0; Mt < lt.length; Mt++) {
42947
- var Wt = [];
42948
- Dt(lt[Mt], Wt, xt, !0), vt.push(Wt);
42947
+ var qt = [];
42948
+ Dt(lt[Mt], qt, xt, !0), vt.push(qt);
42949
42949
  }
42950
42950
  }
42951
42951
  Te.push(oe(Et, _t, vt, Ue.properties));
@@ -42959,8 +42959,8 @@ ${r.vertexSource}`;
42959
42959
  var Et = Je(Te[vt][0]), Mt = ft(Te[vt][1]);
42960
42960
  Ue.push(Et), Ue.push(Mt), Ue.push(0), vt > 0 && (xt += ct ? (lt * Mt - Et * _t) / 2 : Math.sqrt(Math.pow(Et - lt, 2) + Math.pow(Mt - _t, 2))), lt = Et, _t = Mt;
42961
42961
  }
42962
- var Wt = Ue.length - 3;
42963
- Ue[2] = 1, Ie(Ue, 0, Wt, it), Ue[Wt + 2] = 1, Ue.size = Math.abs(xt), Ue.start = 0, Ue.end = Ue.size;
42962
+ var qt = Ue.length - 3;
42963
+ Ue[2] = 1, Ie(Ue, 0, qt, it), Ue[qt + 2] = 1, Ue.size = Math.abs(xt), Ue.start = 0, Ue.end = Ue.size;
42964
42964
  }
42965
42965
  function Dt(Te, Ue, it, ct) {
42966
42966
  for (var lt = 0; lt < Te.length; lt++) {
@@ -42981,10 +42981,10 @@ ${r.vertexSource}`;
42981
42981
  if (xt < it || _t >= ct)
42982
42982
  return null;
42983
42983
  for (var Et = [], Mt = 0; Mt < Te.length; Mt++) {
42984
- var Wt = Te[Mt], Rn = Wt.geometry, yt = Wt.type, qt = lt === 0 ? Wt.minX : Wt.minY, Dn = lt === 0 ? Wt.maxX : Wt.maxY;
42985
- if (qt >= it && Dn < ct)
42986
- Et.push(Wt);
42987
- else if (!(Dn < it || qt >= ct)) {
42984
+ var qt = Te[Mt], Rn = qt.geometry, yt = qt.type, Ht = lt === 0 ? qt.minX : qt.minY, Dn = lt === 0 ? qt.maxX : qt.maxY;
42985
+ if (Ht >= it && Dn < ct)
42986
+ Et.push(qt);
42987
+ else if (!(Dn < it || Ht >= ct)) {
42988
42988
  var ni = [];
42989
42989
  if (yt === "Point" || yt === "MultiPoint")
42990
42990
  nt(Rn, ni, it, ct, lt);
@@ -43002,10 +43002,10 @@ ${r.vertexSource}`;
43002
43002
  if (ni.length) {
43003
43003
  if (vt.lineMetrics && yt === "LineString") {
43004
43004
  for (oi = 0; oi < ni.length; oi++)
43005
- Et.push(oe(Wt.id, yt, ni[oi], Wt.tags));
43005
+ Et.push(oe(qt.id, yt, ni[oi], qt.tags));
43006
43006
  continue;
43007
43007
  }
43008
- yt !== "LineString" && yt !== "MultiLineString" || (ni.length === 1 ? (yt = "LineString", ni = ni[0]) : yt = "MultiLineString"), yt !== "Point" && yt !== "MultiPoint" || (yt = ni.length === 3 ? "Point" : "MultiPoint"), Et.push(oe(Wt.id, yt, ni, Wt.tags));
43008
+ yt !== "LineString" && yt !== "MultiLineString" || (ni.length === 1 ? (yt = "LineString", ni = ni[0]) : yt = "MultiLineString"), yt !== "Point" && yt !== "MultiPoint" || (yt = ni.length === 3 ? "Point" : "MultiPoint"), Et.push(oe(qt.id, yt, ni, qt.tags));
43009
43009
  }
43010
43010
  }
43011
43011
  }
@@ -43018,12 +43018,12 @@ ${r.vertexSource}`;
43018
43018
  }
43019
43019
  }
43020
43020
  function Yt(Te, Ue, it, ct, lt, _t, xt) {
43021
- for (var vt, Et, Mt = cn(Te), Wt = lt === 0 ? Bt : un, Rn = Te.start, yt = 0; yt < Te.length - 3; yt += 3) {
43022
- var qt = Te[yt], Dn = Te[yt + 1], ni = Te[yt + 2], oi = Te[yt + 3], Ci = Te[yt + 4], Ir = lt === 0 ? qt : Dn, Hi = lt === 0 ? oi : Ci, Er = !1;
43023
- xt && (vt = Math.sqrt(Math.pow(qt - oi, 2) + Math.pow(Dn - Ci, 2))), Ir < it ? Hi > it && (Et = Wt(Mt, qt, Dn, oi, Ci, it), xt && (Mt.start = Rn + vt * Et)) : Ir > ct ? Hi < ct && (Et = Wt(Mt, qt, Dn, oi, Ci, ct), xt && (Mt.start = Rn + vt * Et)) : Qt(Mt, qt, Dn, ni), Hi < it && Ir >= it && (Et = Wt(Mt, qt, Dn, oi, Ci, it), Er = !0), Hi > ct && Ir <= ct && (Et = Wt(Mt, qt, Dn, oi, Ci, ct), Er = !0), !_t && Er && (xt && (Mt.end = Rn + vt * Et), Ue.push(Mt), Mt = cn(Te)), xt && (Rn += vt);
43021
+ for (var vt, Et, Mt = cn(Te), qt = lt === 0 ? Bt : un, Rn = Te.start, yt = 0; yt < Te.length - 3; yt += 3) {
43022
+ var Ht = Te[yt], Dn = Te[yt + 1], ni = Te[yt + 2], oi = Te[yt + 3], Ci = Te[yt + 4], Ir = lt === 0 ? Ht : Dn, Hi = lt === 0 ? oi : Ci, Er = !1;
43023
+ xt && (vt = Math.sqrt(Math.pow(Ht - oi, 2) + Math.pow(Dn - Ci, 2))), Ir < it ? Hi > it && (Et = qt(Mt, Ht, Dn, oi, Ci, it), xt && (Mt.start = Rn + vt * Et)) : Ir > ct ? Hi < ct && (Et = qt(Mt, Ht, Dn, oi, Ci, ct), xt && (Mt.start = Rn + vt * Et)) : Qt(Mt, Ht, Dn, ni), Hi < it && Ir >= it && (Et = qt(Mt, Ht, Dn, oi, Ci, it), Er = !0), Hi > ct && Ir <= ct && (Et = qt(Mt, Ht, Dn, oi, Ci, ct), Er = !0), !_t && Er && (xt && (Mt.end = Rn + vt * Et), Ue.push(Mt), Mt = cn(Te)), xt && (Rn += vt);
43024
43024
  }
43025
43025
  var yr = Te.length - 3;
43026
- qt = Te[yr], Dn = Te[yr + 1], ni = Te[yr + 2], (Ir = lt === 0 ? qt : Dn) >= it && Ir <= ct && Qt(Mt, qt, Dn, ni), yr = Mt.length - 3, _t && yr >= 3 && (Mt[yr] !== Mt[0] || Mt[yr + 1] !== Mt[1]) && Qt(Mt, Mt[0], Mt[1], Mt[2]), Mt.length && Ue.push(Mt);
43026
+ Ht = Te[yr], Dn = Te[yr + 1], ni = Te[yr + 2], (Ir = lt === 0 ? Ht : Dn) >= it && Ir <= ct && Qt(Mt, Ht, Dn, ni), yr = Mt.length - 3, _t && yr >= 3 && (Mt[yr] !== Mt[0] || Mt[yr + 1] !== Mt[1]) && Qt(Mt, Mt[0], Mt[1], Mt[2]), Mt.length && Ue.push(Mt);
43027
43027
  }
43028
43028
  function cn(Te) {
43029
43029
  var Ue = [];
@@ -43075,8 +43075,8 @@ ${r.vertexSource}`;
43075
43075
  return Te;
43076
43076
  var it, ct, lt, _t = 1 << Te.z, xt = Te.x, vt = Te.y;
43077
43077
  for (it = 0; it < Te.features.length; it++) {
43078
- var Et = Te.features[it], Mt = Et.geometry, Wt = Et.type;
43079
- if (Et.geometry = [], Wt === 1)
43078
+ var Et = Te.features[it], Mt = Et.geometry, qt = Et.type;
43079
+ if (Et.geometry = [], qt === 1)
43080
43080
  for (ct = 0; ct < Mt.length; ct += 2)
43081
43081
  Et.geometry.push(wt(Mt[ct], Mt[ct + 1], Ue, _t, xt, vt));
43082
43082
  else
@@ -43095,8 +43095,8 @@ ${r.vertexSource}`;
43095
43095
  function Ut(Te, Ue, it, ct, lt) {
43096
43096
  for (var _t = Ue === lt.maxZoom ? 0 : lt.tolerance / ((1 << Ue) * lt.extent), xt = { features: [], numPoints: 0, numSimplified: 0, numFeatures: 0, source: null, x: it, y: ct, z: Ue, transformed: !1, minX: 2, minY: 1, maxX: -1, maxY: 0 }, vt = 0; vt < Te.length; vt++) {
43097
43097
  xt.numFeatures++, at(xt, Te[vt], _t, lt);
43098
- var Et = Te[vt].minX, Mt = Te[vt].minY, Wt = Te[vt].maxX, Rn = Te[vt].maxY;
43099
- Et < xt.minX && (xt.minX = Et), Mt < xt.minY && (xt.minY = Mt), Wt > xt.maxX && (xt.maxX = Wt), Rn > xt.maxY && (xt.maxY = Rn);
43098
+ var Et = Te[vt].minX, Mt = Te[vt].minY, qt = Te[vt].maxX, Rn = Te[vt].maxY;
43099
+ Et < xt.minX && (xt.minX = Et), Mt < xt.minY && (xt.minY = Mt), qt > xt.maxX && (xt.maxX = qt), Rn > xt.maxY && (xt.maxY = Rn);
43100
43100
  }
43101
43101
  return xt;
43102
43102
  }
@@ -43117,13 +43117,13 @@ ${r.vertexSource}`;
43117
43117
  bt(xt, Mt[vt], Te, it, !0, vt === 0);
43118
43118
  }
43119
43119
  if (xt.length) {
43120
- var Wt = Ue.tags || null;
43120
+ var qt = Ue.tags || null;
43121
43121
  if (_t === "LineString" && ct.lineMetrics) {
43122
- for (var Rn in Wt = {}, Ue.tags)
43123
- Wt[Rn] = Ue.tags[Rn];
43124
- Wt.mapbox_clip_start = lt.start / lt.size, Wt.mapbox_clip_end = lt.end / lt.size;
43122
+ for (var Rn in qt = {}, Ue.tags)
43123
+ qt[Rn] = Ue.tags[Rn];
43124
+ qt.mapbox_clip_start = lt.start / lt.size, qt.mapbox_clip_end = lt.end / lt.size;
43125
43125
  }
43126
- var yt = { geometry: xt, type: _t === "Polygon" || _t === "MultiPolygon" ? 3 : _t === "LineString" || _t === "MultiLineString" ? 2 : 1, tags: Wt };
43126
+ var yt = { geometry: xt, type: _t === "Polygon" || _t === "MultiPolygon" ? 3 : _t === "LineString" || _t === "MultiLineString" ? 2 : 1, tags: qt };
43127
43127
  Ue.id !== null && (yt.id = Ue.id), Te.features.push(yt);
43128
43128
  }
43129
43129
  }
@@ -43134,13 +43134,13 @@ ${r.vertexSource}`;
43134
43134
  else {
43135
43135
  for (var vt = [], Et = 0; Et < Ue.length; Et += 3)
43136
43136
  (ct === 0 || Ue[Et + 2] > xt) && (it.numSimplified++, vt.push(Ue[Et]), vt.push(Ue[Et + 1])), it.numPoints++;
43137
- lt && function(Mt, Wt) {
43138
- for (var Rn = 0, yt = 0, qt = Mt.length, Dn = qt - 2; yt < qt; Dn = yt, yt += 2)
43137
+ lt && function(Mt, qt) {
43138
+ for (var Rn = 0, yt = 0, Ht = Mt.length, Dn = Ht - 2; yt < Ht; Dn = yt, yt += 2)
43139
43139
  Rn += (Mt[yt] - Mt[Dn]) * (Mt[yt + 1] + Mt[Dn + 1]);
43140
- if (Rn > 0 === Wt)
43141
- for (yt = 0, qt = Mt.length; yt < qt / 2; yt += 2) {
43140
+ if (Rn > 0 === qt)
43141
+ for (yt = 0, Ht = Mt.length; yt < Ht / 2; yt += 2) {
43142
43142
  var ni = Mt[yt], oi = Mt[yt + 1];
43143
- Mt[yt] = Mt[qt - 2 - yt], Mt[yt + 1] = Mt[qt - 1 - yt], Mt[qt - 2 - yt] = ni, Mt[qt - 1 - yt] = oi;
43143
+ Mt[yt] = Mt[Ht - 2 - yt], Mt[yt + 1] = Mt[Ht - 1 - yt], Mt[Ht - 2 - yt] = ni, Mt[Ht - 1 - yt] = oi;
43144
43144
  }
43145
43145
  }(vt, _t), Te.push(vt);
43146
43146
  }
@@ -43175,11 +43175,11 @@ ${r.vertexSource}`;
43175
43175
  return St.prototype.options = { maxZoom: 14, indexMaxZoom: 5, indexMaxPoints: 1e5, tolerance: 3, extent: 4096, buffer: 64, lineMetrics: !1, promoteId: null, generateId: !1, debug: 0 }, St.prototype.splitTile = function(Te, Ue, it, ct, lt, _t, xt) {
43176
43176
  for (var vt = [Te, Ue, it, ct], Et = this.options, Mt = Et.debug; vt.length; ) {
43177
43177
  ct = vt.pop(), it = vt.pop(), Ue = vt.pop(), Te = vt.pop();
43178
- var Wt = 1 << Ue, Rn = Pt(Ue, it, ct), yt = this.tiles[Rn];
43178
+ var qt = 1 << Ue, Rn = Pt(Ue, it, ct), yt = this.tiles[Rn];
43179
43179
  if (!yt && (Mt > 1 && console.time("creation"), yt = this.tiles[Rn] = Ut(Te, Ue, it, ct, Et), this.tileCoords.push({ z: Ue, x: it, y: ct }), Mt)) {
43180
43180
  Mt > 1 && (console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)", Ue, it, ct, yt.numFeatures, yt.numPoints, yt.numSimplified), console.timeEnd("creation"));
43181
- var qt = "z" + Ue;
43182
- this.stats[qt] = (this.stats[qt] || 0) + 1, this.total++;
43181
+ var Ht = "z" + Ue;
43182
+ this.stats[Ht] = (this.stats[Ht] || 0) + 1, this.total++;
43183
43183
  }
43184
43184
  if (yt.source = Te, lt) {
43185
43185
  if (Ue === Et.maxZoom || Ue === lt)
@@ -43192,7 +43192,7 @@ ${r.vertexSource}`;
43192
43192
  if (yt.source = null, Te.length !== 0) {
43193
43193
  Mt > 1 && console.time("clipping");
43194
43194
  var ni, oi, Ci, Ir, Hi, Er, yr = 0.5 * Et.buffer / Et.extent, yc = 0.5 - yr, ma = 0.5 + yr, _c = 1 + yr;
43195
- ni = oi = Ci = Ir = null, Hi = pt(Te, Wt, it - yr, it + ma, 0, yt.minX, yt.maxX, Et), Er = pt(Te, Wt, it + yc, it + _c, 0, yt.minX, yt.maxX, Et), Te = null, Hi && (ni = pt(Hi, Wt, ct - yr, ct + ma, 1, yt.minY, yt.maxY, Et), oi = pt(Hi, Wt, ct + yc, ct + _c, 1, yt.minY, yt.maxY, Et), Hi = null), Er && (Ci = pt(Er, Wt, ct - yr, ct + ma, 1, yt.minY, yt.maxY, Et), Ir = pt(Er, Wt, ct + yc, ct + _c, 1, yt.minY, yt.maxY, Et), Er = null), Mt > 1 && console.timeEnd("clipping"), vt.push(ni || [], Ue + 1, 2 * it, 2 * ct), vt.push(oi || [], Ue + 1, 2 * it, 2 * ct + 1), vt.push(Ci || [], Ue + 1, 2 * it + 1, 2 * ct), vt.push(Ir || [], Ue + 1, 2 * it + 1, 2 * ct + 1);
43195
+ ni = oi = Ci = Ir = null, Hi = pt(Te, qt, it - yr, it + ma, 0, yt.minX, yt.maxX, Et), Er = pt(Te, qt, it + yc, it + _c, 0, yt.minX, yt.maxX, Et), Te = null, Hi && (ni = pt(Hi, qt, ct - yr, ct + ma, 1, yt.minY, yt.maxY, Et), oi = pt(Hi, qt, ct + yc, ct + _c, 1, yt.minY, yt.maxY, Et), Hi = null), Er && (Ci = pt(Er, qt, ct - yr, ct + ma, 1, yt.minY, yt.maxY, Et), Ir = pt(Er, qt, ct + yc, ct + _c, 1, yt.minY, yt.maxY, Et), Er = null), Mt > 1 && console.timeEnd("clipping"), vt.push(ni || [], Ue + 1, 2 * it, 2 * ct), vt.push(oi || [], Ue + 1, 2 * it, 2 * ct + 1), vt.push(Ci || [], Ue + 1, 2 * it + 1, 2 * ct), vt.push(Ir || [], Ue + 1, 2 * it + 1, 2 * ct + 1);
43196
43196
  }
43197
43197
  }
43198
43198
  }, St.prototype.getTile = function(Te, Ue, it) {
@@ -43203,9 +43203,9 @@ ${r.vertexSource}`;
43203
43203
  if (this.tiles[vt])
43204
43204
  return Be(this.tiles[vt], lt);
43205
43205
  _t > 1 && console.log("drilling down to z%d-%d-%d", Te, Ue, it);
43206
- for (var Et, Mt = Te, Wt = Ue, Rn = it; !Et && Mt > 0; )
43207
- Mt--, Wt = Math.floor(Wt / 2), Rn = Math.floor(Rn / 2), Et = this.tiles[Pt(Mt, Wt, Rn)];
43208
- return Et && Et.source ? (_t > 1 && console.log("found parent tile z%d-%d-%d", Mt, Wt, Rn), _t > 1 && console.time("drilling down"), this.splitTile(Et.source, Mt, Wt, Rn, Te, Ue, it), _t > 1 && console.timeEnd("drilling down"), this.tiles[vt] ? Be(this.tiles[vt], lt) : null) : null;
43206
+ for (var Et, Mt = Te, qt = Ue, Rn = it; !Et && Mt > 0; )
43207
+ Mt--, qt = Math.floor(qt / 2), Rn = Math.floor(Rn / 2), Et = this.tiles[Pt(Mt, qt, Rn)];
43208
+ return Et && Et.source ? (_t > 1 && console.log("found parent tile z%d-%d-%d", Mt, qt, Rn), _t > 1 && console.time("drilling down"), this.splitTile(Et.source, Mt, qt, Rn, Te, Ue, it), _t > 1 && console.timeEnd("drilling down"), this.tiles[vt] ? Be(this.tiles[vt], lt) : null) : null;
43209
43209
  }, function(Te, Ue) {
43210
43210
  return new St(Te, Ue);
43211
43211
  };
@@ -47326,14 +47326,14 @@ function Xie({ apiKey: i, gmApiKey: o, mapboxAccessToken: a, venue: u, locationI
47326
47326
  return new Promise((yt) => {
47327
47327
  if (window.mapsindoors !== void 0)
47328
47328
  return yt();
47329
- const qt = document.createElement("script");
47330
- qt.setAttribute("type", "text/javascript"), qt.setAttribute("src", "https://app.mapsindoors.com/mapsindoors/js/sdk/4.30.0/mapsindoors-4.30.0.js.gz"), document.body.appendChild(qt), qt.onload = () => {
47329
+ const Ht = document.createElement("script");
47330
+ Ht.setAttribute("type", "text/javascript"), Ht.setAttribute("src", "https://app.mapsindoors.com/mapsindoors/js/sdk/4.30.0/mapsindoors-4.30.0.js.gz"), Ht.setAttribute("integrity", "sha384-QNeuSSN5hFRZ8W3bz+zYa75qLWvbci+FuIzmRbQOmaPMyHi7R9XgQXiFjKYvW2n+"), Ht.setAttribute("crossorigin", "anonymous"), document.body.appendChild(Ht), Ht.onload = () => {
47331
47331
  yt();
47332
47332
  };
47333
47333
  });
47334
47334
  }
47335
47335
  be.useEffect(() => {
47336
- Me && Wt();
47336
+ Me && qt();
47337
47337
  }, [Me]), be.useEffect(() => {
47338
47338
  xt().then(() => {
47339
47339
  it(!0);
@@ -47342,9 +47342,9 @@ function Xie({ apiKey: i, gmApiKey: o, mapboxAccessToken: a, venue: u, locationI
47342
47342
  if (Ue) {
47343
47343
  const yt = U || navigator.language;
47344
47344
  window.mapsindoors.MapsIndoors.setLanguage(yt), window.mapsindoors.services.LocationsService.once("update_completed", () => {
47345
- ke.length > 0 && Mt(u), Qe.length > 0 && window.mapsindoors.services.VenuesService.getVenues().then((qt) => {
47346
- qt = qt.map((Dn) => (Dn.image = pt.venueImages[Dn.name.toLowerCase()], Dn)), we(qt);
47347
- }), Se && window.mapsindoors.services.LocationsService.getLocation(Se.id).then((qt) => Ae(qt));
47345
+ ke.length > 0 && Mt(u), Qe.length > 0 && window.mapsindoors.services.VenuesService.getVenues().then((Ht) => {
47346
+ Ht = Ht.map((Dn) => (Dn.image = pt.venueImages[Dn.name.toLowerCase()], Dn)), we(Ht);
47347
+ }), Se && window.mapsindoors.services.LocationsService.getLocation(Se.id).then((Ht) => Ae(Ht));
47348
47348
  }), H ? wr.changeLanguage(yt) : Bte(yt), ae(yt);
47349
47349
  }
47350
47350
  }, [U, Ue]), be.useEffect(() => {
@@ -47357,16 +47357,16 @@ function Xie({ apiKey: i, gmApiKey: o, mapboxAccessToken: a, venue: u, locationI
47357
47357
  window.mapsindoors.services.SolutionsService.getSolution().then((yt) => (Yt(yt), yt)),
47358
47358
  // Ensure a minimum waiting time of 3 seconds
47359
47359
  new Promise((yt) => setTimeout(yt, 3e3))
47360
- ]).then(([yt, qt]) => {
47361
- yt = yt.map((Dn) => (Dn.image = qt.venueImages[Dn.name.toLowerCase()], Dn)), we(yt);
47360
+ ]).then(([yt, Ht]) => {
47361
+ yt = yt.map((Dn) => (Dn.image = Ht.venueImages[Dn.name.toLowerCase()], Dn)), we(yt);
47362
47362
  }), De(!1));
47363
47363
  }, [i, Ue]), be.useEffect(() => {
47364
- var yt, qt;
47365
- Ue && pt && (Z(a || ((yt = pt.appSettings) == null ? void 0 : yt.mapboxAccessToken)), fe(o || ((qt = pt.appSettings) == null ? void 0 : qt.gmKey)));
47364
+ var yt, Ht;
47365
+ Ue && pt && (Z(a || ((yt = pt.appSettings) == null ? void 0 : yt.mapboxAccessToken)), fe(o || ((Ht = pt.appSettings) == null ? void 0 : Ht.gmKey)));
47366
47366
  }, [o, a, Ue, pt]), be.useEffect(() => {
47367
47367
  Ue && window.mapsindoors.services.SolutionsService.getUserRoles().then((yt) => {
47368
- const qt = yt.filter((Dn) => b == null ? void 0 : b.includes(Dn.name));
47369
- window.mapsindoors.MapsIndoors.setUserRoles(qt);
47368
+ const Ht = yt.filter((Dn) => b == null ? void 0 : b.includes(Dn.name));
47369
+ window.mapsindoors.MapsIndoors.setUserRoles(Ht);
47370
47370
  });
47371
47371
  }, [b, Ue]), be.useEffect(() => {
47372
47372
  Ue && (A ? window.mapsindoors.services.LocationsService.getLocationsByExternalId(A).then((yt) => {
@@ -47416,28 +47416,28 @@ function Xie({ apiKey: i, gmApiKey: o, mapboxAccessToken: a, venue: u, locationI
47416
47416
  Te.current !== !0 && yt.id !== B && Ae(yt);
47417
47417
  }
47418
47418
  function Mt(yt) {
47419
- window.mapsindoors.services.LocationsService.getLocations({}).then((qt) => {
47420
- const Dn = qt.filter((ni) => ni.properties.venueId === yt);
47419
+ window.mapsindoors.services.LocationsService.getLocations({}).then((Ht) => {
47420
+ const Dn = Ht.filter((ni) => ni.properties.venueId === yt);
47421
47421
  Rn(Dn);
47422
47422
  });
47423
47423
  }
47424
- function Wt() {
47424
+ function qt() {
47425
47425
  We(), Pt(), _t((yt) => yt + 1);
47426
47426
  }
47427
47427
  function Rn(yt) {
47428
- let qt = /* @__PURE__ */ new Map();
47428
+ let Ht = /* @__PURE__ */ new Map();
47429
47429
  for (const Dn of yt) {
47430
47430
  const ni = Object.keys(Dn.properties.categories);
47431
47431
  for (const oi of ni) {
47432
47432
  const Ci = pt.menuInfo.mainmenu.find((Ir) => Ir.categoryKey === oi);
47433
- if (qt.has(oi)) {
47434
- let Ir = qt.get(oi).count;
47435
- qt.set(oi, { count: ++Ir, displayName: Dn.properties.categories[oi], iconUrl: Ci == null ? void 0 : Ci.iconUrl });
47433
+ if (Ht.has(oi)) {
47434
+ let Ir = Ht.get(oi).count;
47435
+ Ht.set(oi, { count: ++Ir, displayName: Dn.properties.categories[oi], iconUrl: Ci == null ? void 0 : Ci.iconUrl });
47436
47436
  } else
47437
- qt.set(oi, { count: 1, displayName: Dn.properties.categories[oi], iconUrl: Ci == null ? void 0 : Ci.iconUrl });
47437
+ Ht.set(oi, { count: 1, displayName: Dn.properties.categories[oi], iconUrl: Ci == null ? void 0 : Ci.iconUrl });
47438
47438
  }
47439
47439
  }
47440
- qt = Array.from(qt).sort((Dn, ni) => ni[1].count - Dn[1].count), Ne(qt);
47440
+ Ht = Array.from(Ht).sort((Dn, ni) => ni[1].count - Dn[1].count), Ne(Ht);
47441
47441
  }
47442
47442
  return /* @__PURE__ */ Pe.jsxs("div", { className: `mapsindoors-map ${Te.current ? "mapsindoors-map--hide-elements" : "mapsindoors-map--show-elements"} ${ht ? "mapsindoors-map--show-my-position" : "mapsindoors-map--hide-my-position"}`, children: [
47443
47443
  /* @__PURE__ */ Pe.jsx(sie, {}),
@@ -47460,7 +47460,7 @@ function Xie({ apiKey: i, gmApiKey: o, mapboxAccessToken: a, venue: u, locationI
47460
47460
  pushAppView: wt,
47461
47461
  currentAppView: at,
47462
47462
  appViews: St,
47463
- onRouteFinished: () => Wt()
47463
+ onRouteFinished: () => qt()
47464
47464
  }
47465
47465
  ),
47466
47466
  Kn && /* @__PURE__ */ Pe.jsx(
@@ -47471,7 +47471,7 @@ function Xie({ apiKey: i, gmApiKey: o, mapboxAccessToken: a, venue: u, locationI
47471
47471
  pushAppView: wt,
47472
47472
  currentAppView: at,
47473
47473
  appViews: St,
47474
- onRouteFinished: () => Wt()
47474
+ onRouteFinished: () => qt()
47475
47475
  }
47476
47476
  )
47477
47477
  ] }, lt),