@expofp/floorplan 3.45.16 → 3.46.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (105) hide show
  1. package/dist/browser/{Button-CvW7YFub.js → Button-OKcMiyWO.js} +5 -5
  2. package/dist/browser/{CookieConsent-DMQbqtXK.js → CookieConsent-6ulFPlqA.js} +7 -7
  3. package/dist/browser/{Debug-Ca2yHacD.js → Debug-BxskUF4D.js} +7 -7
  4. package/dist/browser/{DebugTools-B4aNYRTe.js → DebugTools-C1is5dXX.js} +6 -6
  5. package/dist/browser/{Demo-CAqlgcCv.js → Demo-Dx8IKR7Q.js} +9 -9
  6. package/dist/browser/{Free-BsRhjKkc.js → Free-BaIZnChc.js} +10 -10
  7. package/dist/browser/{GalleryContainer-DXPLmI3H.js → GalleryContainer-BXomiMwG.js} +11 -11
  8. package/dist/browser/{GpsLoader-LGR2R7nA.js → GpsLoader-Ccwug0hj.js} +14 -14
  9. package/dist/browser/{KioskStore-wvXDt2R6.js → KioskStore-D_Ejv_K0.js} +13 -13
  10. package/dist/browser/{LayerStore-CXcoD3jg.js → LayerStore-DKg7vekG.js} +6476 -4680
  11. package/dist/browser/{MaplibreAdapter-B9i321G5.js → MaplibreAdapter-Dh_ASXEG.js} +148 -148
  12. package/dist/browser/{ModalContainer-CJcejO7y.js → ModalContainer-DXN2lQG-.js} +10 -10
  13. package/dist/browser/{PermissionNotice-ClizaILY.js → PermissionNotice-CljwxHGD.js} +6 -6
  14. package/dist/browser/{RouteStore-B7BEbtWh.js → RouteStore-4r6xqu2L.js} +334 -319
  15. package/dist/browser/{SetKioskMode-B3wOdVbA.js → SetKioskMode-3YCa73LZ.js} +12 -12
  16. package/dist/browser/{ShowKiosk-CZ5AaDgY.js → ShowKiosk-CmozIEWm.js} +11 -11
  17. package/dist/browser/{UIState-CfvJa9Qt.js → UIState-DOVwNW-h.js} +97 -97
  18. package/dist/browser/{ViewerMenuPanel-Dt4HwUfn.js → ViewerMenuPanel-ukfCjPlv.js} +11 -11
  19. package/dist/browser/{add-debug-secret-listener-DGtZtNVa.js → add-debug-secret-listener-DiW9122w.js} +1 -1
  20. package/dist/browser/{adopt-global-settings-CtNpSn9P.js → adopt-global-settings-C8NxCufU.js} +9 -9
  21. package/dist/browser/{boolean-editor-DIiEP7TZ.js → boolean-editor-DAUiSxaZ.js} +9 -9
  22. package/dist/browser/{bootIntercom-D983P3FM.js → bootIntercom-Cxu_tGyN.js} +2 -2
  23. package/dist/browser/bundle.json +94 -85
  24. package/dist/browser/{camera-events-Bu7114s2.js → camera-events-BzkvmmVT.js} +1 -1
  25. package/dist/browser/{classnames-Bs29rQnk.js → classnames-ht7j544T.js} +2 -2
  26. package/dist/browser/{client-GQEWFmfv.js → client-cb0OfXbM.js} +5 -5
  27. package/dist/browser/{components--OcrNRZY.js → components-D1hWFJkH.js} +164 -164
  28. package/dist/browser/{create-live-plan-ac3W7Mjw.js → create-live-plan-BYQmwyu_.js} +110 -110
  29. package/dist/browser/debug-context-D-Az5hsc.js +12692 -0
  30. package/dist/browser/{debug-overlay-FpRSYroZ.js → debug-overlay-Cx_TzAOa.js} +10 -10
  31. package/dist/browser/{debug-ui-B_JctNJa.js → debug-ui-BWGZ29bU.js} +6 -6
  32. package/dist/browser/{dist-BOeYADGR.js → dist-CxdNXcdm.js} +6 -6
  33. package/dist/browser/{dist-DWiqmIvU.js → dist-DI0TDNHP.js} +5 -5
  34. package/dist/browser/{dist-Ckeh22wN.js → dist-TE6VoTiX.js} +3 -3
  35. package/dist/browser/{efp-debug-init-B9NUb3fn.js → efp-debug-init-pyajqRUx.js} +3 -3
  36. package/dist/browser/{enum-editor-CPwT0Ti2.js → enum-editor-CtGMxTY9.js} +4 -4
  37. package/dist/browser/{es5-CyDT240f.js → es5-CaaQfpSO.js} +2 -2
  38. package/dist/browser/{event-head-zrLXoQNk.js → event-head-BM-eM_Bb.js} +1 -1
  39. package/dist/browser/{event-not-found-BlL-itYl.js → event-not-found-B65hzXQP.js} +3 -3
  40. package/dist/browser/{event-scoped-cache-BzaPVSQR.js → event-scoped-cache-Dy_k6CT0.js} +2 -2
  41. package/dist/browser/{expofpUrl-DodcnSAp.js → expofpUrl-CtHaWZhI.js} +1 -1
  42. package/dist/browser/{exports-w9HCyV6L.js → exports-B117IH-s.js} +1 -1
  43. package/dist/browser/{favicon-Ce3gDoMO.js → favicon-BZ8MgZoI.js} +1 -1
  44. package/dist/browser/{fetch-retry.umd-B1EDd8Ry.js → fetch-retry.umd-CZoakvnh.js} +2 -2
  45. package/dist/browser/{flex-JbeMP70X.js → flex-DqZnQXWR.js} +5 -5
  46. package/dist/browser/{floorplan.loader-D0LmTVhU.js → floorplan.loader-Dj1p_2Uj.js} +12 -12
  47. package/dist/browser/{floorplan.ready-DJ1n3FXC.js → floorplan.ready-DV6RYY5y.js} +265 -239
  48. package/dist/browser/forest.exr +0 -0
  49. package/dist/browser/{framing-rect-ta_BGvNs.js → framing-rect-BPQPxCHJ.js} +426 -351
  50. package/dist/browser/{freeBanner-KH8g3MJ6.js → freeBanner-CV-7PVgM.js} +2 -2
  51. package/dist/browser/{fuse-Dds27iO0.js → fuse-o5_aSzm4.js} +2 -2
  52. package/dist/browser/{i18n-9ZUT1qoU.js → i18n-DT4SjeA3.js} +6 -6
  53. package/dist/browser/index.js +17 -17
  54. package/dist/browser/{index.module-DlikZ4ah.js → index.module-AwGISzVZ.js} +4 -4
  55. package/dist/browser/{init-ui-C5tUifc1.js → init-ui-_JZLWvuF.js} +19 -19
  56. package/dist/browser/{integrateKiosk-9fdZ8xnN.js → integrateKiosk-LP784XEO.js} +6 -6
  57. package/dist/browser/{is-debug-BR-QkDw7.js → is-debug-sgFB2_R1.js} +4 -4
  58. package/dist/browser/{is-own-domain-Cg9X8NPC.js → is-own-domain-Cgslc30X.js} +1 -1
  59. package/dist/browser/{is-webview-Dq7vD3We.js → is-webview-Cbjly4fl.js} +1 -1
  60. package/dist/browser/{jsx-runtime-D1_rSk_y.js → jsx-runtime-DJq9zytl.js} +2 -2
  61. package/dist/browser/{kiosk-mode-DiG8nox_.js → kiosk-mode-D0Muk9LN.js} +3 -3
  62. package/dist/browser/{kiosk-record-C5qtcdqk.js → kiosk-record-QLKP2NTE.js} +1 -1
  63. package/dist/browser/{kioskApi-DjKunLAi.js → kioskApi-Cm0aHEDq.js} +7 -7
  64. package/dist/browser/ktx2-D9vr5u5B.js +749 -0
  65. package/dist/browser/{lib-BatU10WP.js → lib-Cu-YSKSO.js} +3 -3
  66. package/dist/browser/{loadImage-Bxx3ZKLp.js → loadImage-DC3BioQw.js} +1 -1
  67. package/dist/browser/{logDeviceInfo-CaJfFpnn.js → logDeviceInfo-U-dghNEE.js} +9 -9
  68. package/dist/browser/{mobx-BvZPEs4S.js → mobx-B3ugy_Uo.js} +4 -4
  69. package/dist/browser/{mobx.module-UztZBZJu.js → mobx.module-C9pJfT4z.js} +1 -1
  70. package/dist/browser/{optional-boolean-editor-DAOo106M.js → optional-boolean-editor-B6peoFdP.js} +3 -3
  71. package/dist/browser/{optional-enum-editor-Cn_E9FBq.js → optional-enum-editor-DdGc6bGo.js} +4 -4
  72. package/dist/browser/{optional-string-editor-Dv_ha_95.js → optional-string-editor-D-mZ5TcA.js} +4 -4
  73. package/dist/browser/{particles.min-B9NNiXIt.js → particles.min-r05NeIIO.js} +2 -2
  74. package/dist/browser/{react-CnSEDzuL.js → react-CAiPe_Qk.js} +2 -2
  75. package/dist/browser/{react-dom-CpyJp5Gu.js → react-dom-B-n3e4uH.js} +3 -3
  76. package/dist/browser/{rolldown-runtime-bPwdbf_1.js → rolldown-runtime-BkAGFH-3.js} +1 -1
  77. package/dist/browser/{scene-Bu2Qybei.js → scene-DBB57-1M.js} +10 -10
  78. package/dist/browser/{scheduler-EeY8a3cX.js → scheduler-Btu7810I.js} +2 -2
  79. package/dist/browser/{select-DRl3BZtT.js → select-1x7gpaD6.js} +10 -10
  80. package/dist/browser/{settings-B1YFF2dC.js → settings-Clb327Gp.js} +2 -2
  81. package/dist/browser/{settings-item-DqGvwyec.js → settings-item-9ehuHN7w.js} +6 -6
  82. package/dist/browser/{store-DiYHVb5l.js → store-B618He5O.js} +2 -2
  83. package/dist/browser/{string-editor-Da67Hj7C.js → string-editor-zH6d37oA.js} +4 -4
  84. package/dist/browser/{text-field-CJO5GE4n.js → text-field-hTc5zeaz.js} +5 -5
  85. package/dist/browser/{theme-CWMPb3vB.js → theme-rkMDBBl_.js} +8 -8
  86. package/dist/browser/three.core-CoaBWF0W.js +11633 -0
  87. package/dist/browser/{ui-DQseFnAj.js → ui-d7u7XbmX.js} +8 -8
  88. package/dist/browser/{useRenderTarget-CFWRBESG.js → useRenderTarget-Dsf3ugHo.js} +4 -4
  89. package/dist/browser/{viewport-rpPonGb4.js → viewport-BDI0afn8.js} +3 -3
  90. package/dist/browser/{wayfinding-BirZkf3f.js → wayfinding-BkpHRhUO.js} +516 -510
  91. package/dist/esm/components/Map/drawing/config/booth-badge-anchor.d.ts +57 -5
  92. package/dist/esm/components/Map/drawing/config/booth-badge-anchor.js +1 -1
  93. package/dist/esm/components/Map/drawing/config/booth-fill-color.d.ts +16 -0
  94. package/dist/esm/components/Map/drawing/config/booth-fill-color.js +1 -0
  95. package/dist/esm/components/Map/drawing/config/config-booth-badge.js +1 -1
  96. package/dist/esm/components/Map/drawing/config/config-booth-bg.js +1 -1
  97. package/dist/esm/floorplan.ready.js +1 -1
  98. package/dist/esm/store/RootStore.js +1 -1
  99. package/dist/esm/store/RouteStore.d.ts +9 -1
  100. package/dist/esm/store/RouteStore.js +1 -1
  101. package/dist/esm/test/store-harness.js +1 -1
  102. package/dist/esm/utils/gps.d.ts +5 -1
  103. package/dist/esm/utils/gps.js +1 -1
  104. package/package.json +10 -10
  105. package/dist/browser/debug-context-AL7oKDWN.js +0 -24315
@@ -2,29 +2,29 @@ function __vite_inject_css__(css, id, forceLightDom){ if (typeof document==='un
2
2
  (function() {
3
3
  try {
4
4
  var e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
5
- e.SENTRY_RELEASE = { id: "3.45.16" };
5
+ e.SENTRY_RELEASE = { id: "3.46.1" };
6
6
  var t = new e.Error().stack;
7
- t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "1a4db182-bd1a-4d9d-a8c0-b23a26f1091e", e._sentryDebugIdIdentifier = "sentry-dbid-1a4db182-bd1a-4d9d-a8c0-b23a26f1091e");
7
+ t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "a191c2c5-34bb-421a-943e-556bd1cc3437", e._sentryDebugIdIdentifier = "sentry-dbid-a191c2c5-34bb-421a-943e-556bd1cc3437");
8
8
  } catch {}
9
9
  })();
10
- import { r as e, t } from "./rolldown-runtime-bPwdbf_1.js";
11
- import { F as n, P as r, h as i, s as a } from "./i18n-9ZUT1qoU.js";
12
- import { t as o } from "./react-CnSEDzuL.js";
13
- import { t as s } from "./jsx-runtime-D1_rSk_y.js";
14
- import { t as c } from "./is-debug-BR-QkDw7.js";
15
- import { i as l, l as u, u as d } from "./mobx.module-UztZBZJu.js";
16
- import { t as f } from "./index.module-DlikZ4ah.js";
17
- import { l as p, u as m } from "./store-DiYHVb5l.js";
18
- import { i as h } from "./mobx-BvZPEs4S.js";
19
- import { n as g, t as _ } from "./expofpUrl-DodcnSAp.js";
20
- import { Bt as v, Ht as y, Qt as b, Vt as x, Wt as S, a as C, c as w, ct as T, gt as E, ht as D, l as O, lt as k, mt as A, o as j, q as M, qt as ee, s as te, u as N, w as ne, y as re, yt as ie } from "./LayerStore-CXcoD3jg.js";
21
- import { g as ae, h as oe, n as se, p as ce } from "./wayfinding-BirZkf3f.js";
22
- import { t as le } from "./camera-events-Bu7114s2.js";
23
- import { t as ue } from "./viewport-rpPonGb4.js";
24
- import { a as de, c as fe, n as pe, o as me, s as he } from "./scene-Bu2Qybei.js";
25
- import { a as ge, c as _e, d as ve, i as ye, l as be, n as xe, o as Se, r as Ce, s as we, t as Te, u as Ee } from "./framing-rect-ta_BGvNs.js";
10
+ import { r as e, t } from "./rolldown-runtime-BkAGFH-3.js";
11
+ import { F as n, P as r, h as i, s as a } from "./i18n-DT4SjeA3.js";
12
+ import { t as o } from "./react-CAiPe_Qk.js";
13
+ import { t as s } from "./jsx-runtime-DJq9zytl.js";
14
+ import { t as c } from "./is-debug-sgFB2_R1.js";
15
+ import { i as l, l as u, u as d } from "./mobx.module-C9pJfT4z.js";
16
+ import { t as f } from "./index.module-AwGISzVZ.js";
17
+ import { l as p, u as m } from "./store-B618He5O.js";
18
+ import { i as h } from "./mobx-B3ugy_Uo.js";
19
+ import { n as g, t as _ } from "./expofpUrl-CtHaWZhI.js";
20
+ import { $t as v, Gt as y, Ht as b, J as x, Jt as S, T as C, Ut as w, Vt as T, _t as E, a as D, b as O, bt as k, c as A, gt as j, ht as M, l as ee, lt as N, o as te, s as ne, u as re, ut as ie } from "./LayerStore-DKg7vekG.js";
21
+ import { _ as ae, n as oe, p as se, v as ce } from "./wayfinding-BkpHRhUO.js";
22
+ import { t as le } from "./camera-events-BzkvmmVT.js";
23
+ import { t as ue } from "./viewport-BDI0afn8.js";
24
+ import { a as de, c as fe, n as pe, o as me, s as he } from "./scene-DBB57-1M.js";
25
+ import { a as ge, c as _e, d as ve, i as ye, l as be, n as xe, o as Se, r as Ce, s as we, t as Te, u as Ee } from "./framing-rect-BPQPxCHJ.js";
26
26
  //#region ../../node_modules/.pnpm/maplibre-gl@5.24.0/node_modules/maplibre-gl/dist/maplibre-gl.css
27
- var P = /* @__PURE__ */ e(o(), 1), De = /* @__PURE__ */ e(ie(), 1), Oe = (/* @__PURE__ */ t(((e, t) => {
27
+ var P = /* @__PURE__ */ e(o(), 1), De = /* @__PURE__ */ e(k(), 1), Oe = (/* @__PURE__ */ t(((e, t) => {
28
28
  (function(n, r) {
29
29
  typeof e == "object" && t !== void 0 ? t.exports = r() : typeof define == "function" && define.amd ? define(r) : (n = typeof globalThis < "u" ? globalThis : n || self, n.maplibregl = r());
30
30
  })(e, (function() {
@@ -329,11 +329,11 @@ var P = /* @__PURE__ */ e(o(), 1), De = /* @__PURE__ */ e(ie(), 1), Oe = (/* @__
329
329
  let t = e * e, n = t * e;
330
330
  return 4 * (e < .5 ? n : 3 * (e - t) + n - .75);
331
331
  }
332
- function te(e, t, n, r) {
332
+ function N(e, t, n, r) {
333
333
  let i = new o(e, t, n, r);
334
334
  return (e) => i.solve(e);
335
335
  }
336
- let N = te(.25, .1, .25, 1);
336
+ let te = N(.25, .1, .25, 1);
337
337
  function ne(e, t, n) {
338
338
  return Math.min(n, Math.max(t, e));
339
339
  }
@@ -17396,7 +17396,7 @@ var P = /* @__PURE__ */ e(o(), 1), De = /* @__PURE__ */ e(ie(), 1), Oe = (/* @__
17396
17396
  (o.textFitWidth || o.textFitHeight) && (u = lf(e)), v = hh(d, 0, t[0]), b = hh(f, 0, t[1]), y = hh(d, t[0], t[2]), x = hh(f, t[1], t[3]), S = t[0] - v, w = t[1] - b, C = n - y, T = r - x;
17397
17397
  }
17398
17398
  let E = u.x1, D = u.y1, O = u.x2 - E, k = u.y2 - D, A = (e, i, a, c) => {
17399
- let l = _h(e.stretch - v, y, O, E), u = vh(e.fixed - S, C, e.stretch, m), d = _h(i.stretch - b, x, k, D), f = vh(i.fixed - w, T, i.stretch, h), p = _h(a.stretch - v, y, O, E), g = vh(a.fixed - S, C, a.stretch, m), _ = _h(c.stretch - b, x, k, D), A = vh(c.fixed - w, T, c.stretch, h), j = new n(l, d), M = new n(p, d), ee = new n(p, _), te = new n(l, _), N = new n(u / s, f / s), ne = new n(g / s, A / s), re = t * Math.PI / 180;
17399
+ let l = _h(e.stretch - v, y, O, E), u = vh(e.fixed - S, C, e.stretch, m), d = _h(i.stretch - b, x, k, D), f = vh(i.fixed - w, T, i.stretch, h), p = _h(a.stretch - v, y, O, E), g = vh(a.fixed - S, C, a.stretch, m), _ = _h(c.stretch - b, x, k, D), A = vh(c.fixed - w, T, c.stretch, h), j = new n(l, d), M = new n(p, d), ee = new n(p, _), N = new n(l, _), te = new n(u / s, f / s), ne = new n(g / s, A / s), re = t * Math.PI / 180;
17400
17400
  if (re) {
17401
17401
  let e = Math.sin(re), t = Math.cos(re), n = [
17402
17402
  t,
@@ -17404,13 +17404,13 @@ var P = /* @__PURE__ */ e(o(), 1), De = /* @__PURE__ */ e(ie(), 1), Oe = (/* @__
17404
17404
  e,
17405
17405
  t
17406
17406
  ];
17407
- j._matMult(n), M._matMult(n), te._matMult(n), ee._matMult(n);
17407
+ j._matMult(n), M._matMult(n), N._matMult(n), ee._matMult(n);
17408
17408
  }
17409
17409
  let ie = e.stretch + e.fixed, ae = i.stretch + i.fixed;
17410
17410
  return {
17411
17411
  tl: j,
17412
17412
  tr: M,
17413
- bl: te,
17413
+ bl: N,
17414
17414
  br: ee,
17415
17415
  tex: {
17416
17416
  x: o.paddedRect.x + 1 + ie,
@@ -17421,7 +17421,7 @@ var P = /* @__PURE__ */ e(o(), 1), De = /* @__PURE__ */ e(ie(), 1), Oe = (/* @__
17421
17421
  writingMode: void 0,
17422
17422
  glyphOffset: [0, 0],
17423
17423
  sectionIndex: 0,
17424
- pixelOffsetTL: N,
17424
+ pixelOffsetTL: te,
17425
17425
  pixelOffsetBR: ne,
17426
17426
  minFontScaleX: C / s / O,
17427
17427
  minFontScaleY: T / s / k,
@@ -17683,7 +17683,7 @@ var P = /* @__PURE__ */ e(o(), 1), De = /* @__PURE__ */ e(ie(), 1), Oe = (/* @__
17683
17683
  i && A !== "none" && (t.allowVerticalPlacement && r.vertical && (j = uf(i, r.vertical, A, m.get("icon-text-fit-padding"), h, _)), g && (i = uf(i, g, A, m.get("icon-text-fit-padding"), h, _)));
17684
17684
  let M = d ? f.line.getGranularityForZoomLevel(d.z) : 1, ee = (c, f) => {
17685
17685
  f.x < 0 || f.x >= O || f.y < 0 || f.y >= O || function(t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _, v, y, b, x, S, C, w, T) {
17686
- let E = t.addToLineVertexArray(n, r), D, O, k, A, j = 0, M = 0, ee = 0, te = 0, N = -1, ne = -1, re = {}, ie = _s("");
17686
+ let E = t.addToLineVertexArray(n, r), D, O, k, A, j = 0, M = 0, ee = 0, N = 0, te = -1, ne = -1, re = {}, ie = _s("");
17687
17687
  if (t.allowVerticalPlacement && i.vertical) {
17688
17688
  let e = c.layout.get("text-rotate").evaluate(x, {}, w) + 90;
17689
17689
  k = new yh(l, n, u, d, f, i.vertical, p, m, h, e), s && (A = new yh(l, n, u, d, f, s, _, v, h, e));
@@ -17692,7 +17692,7 @@ var P = /* @__PURE__ */ e(o(), 1), De = /* @__PURE__ */ e(ie(), 1), Oe = (/* @__
17692
17692
  let r = c.layout.get("icon-rotate").evaluate(x, {}), i = c.layout.get("icon-text-fit") !== "none", o = mh(a, r, C, i), p = s ? mh(s, r, C, i) : void 0;
17693
17693
  O = new yh(l, n, u, d, f, a, _, v, !1, r), j = 4 * o.length;
17694
17694
  let m = t.iconSizeData, h = null;
17695
- m.kind === "source" ? (h = [128 * c.layout.get("icon-size").evaluate(x, {})], h[0] > df && ue(`${t.layerIds[0]}: Value for "icon-size" is >= 255. Reduce your "icon-size".`)) : m.kind === "composite" && (h = [128 * S.compositeIconSizes[0].evaluate(x, {}, w), 128 * S.compositeIconSizes[1].evaluate(x, {}, w)], (h[0] > df || h[1] > df) && ue(`${t.layerIds[0]}: Value for "icon-size" is >= 255. Reduce your "icon-size".`)), t.addSymbols(t.icon, o, h, b, y, x, e.ax.none, n, E.lineStartIndex, E.lineLength, -1, w), N = t.icon.placedSymbolArray.length - 1, p && (M = 4 * p.length, t.addSymbols(t.icon, p, h, b, y, x, e.ax.vertical, n, E.lineStartIndex, E.lineLength, -1, w), ne = t.icon.placedSymbolArray.length - 1);
17695
+ m.kind === "source" ? (h = [128 * c.layout.get("icon-size").evaluate(x, {})], h[0] > df && ue(`${t.layerIds[0]}: Value for "icon-size" is >= 255. Reduce your "icon-size".`)) : m.kind === "composite" && (h = [128 * S.compositeIconSizes[0].evaluate(x, {}, w), 128 * S.compositeIconSizes[1].evaluate(x, {}, w)], (h[0] > df || h[1] > df) && ue(`${t.layerIds[0]}: Value for "icon-size" is >= 255. Reduce your "icon-size".`)), t.addSymbols(t.icon, o, h, b, y, x, e.ax.none, n, E.lineStartIndex, E.lineLength, -1, w), te = t.icon.placedSymbolArray.length - 1, p && (M = 4 * p.length, t.addSymbols(t.icon, p, h, b, y, x, e.ax.vertical, n, E.lineStartIndex, E.lineLength, -1, w), ne = t.icon.placedSymbolArray.length - 1);
17696
17696
  }
17697
17697
  let ae = Object.keys(i.horizontal);
17698
17698
  for (let r of ae) {
@@ -17703,9 +17703,9 @@ var P = /* @__PURE__ */ e(o(), 1), De = /* @__PURE__ */ e(ie(), 1), Oe = (/* @__
17703
17703
  D = new yh(l, n, u, d, f, a, p, m, h, e);
17704
17704
  }
17705
17705
  let s = a.positionedLines.length === 1;
17706
- if (ee += Ah(t, n, a, o, c, h, x, g, E, i.vertical ? e.ax.horizontal : e.ax.horizontalOnly, s ? ae : [r], re, N, S, w), s) break;
17706
+ if (ee += Ah(t, n, a, o, c, h, x, g, E, i.vertical ? e.ax.horizontal : e.ax.horizontalOnly, s ? ae : [r], re, te, S, w), s) break;
17707
17707
  }
17708
- i.vertical && (te += Ah(t, n, i.vertical, o, c, h, x, g, E, e.ax.vertical, ["vertical"], re, ne, S, w));
17708
+ i.vertical && (N += Ah(t, n, i.vertical, o, c, h, x, g, E, e.ax.vertical, ["vertical"], re, ne, S, w));
17709
17709
  let oe = D ? D.boxStartIndex : t.collisionBoxArray.length, se = D ? D.boxEndIndex : t.collisionBoxArray.length, ce = k ? k.boxStartIndex : t.collisionBoxArray.length, le = k ? k.boxEndIndex : t.collisionBoxArray.length, de = O ? O.boxStartIndex : t.collisionBoxArray.length, fe = O ? O.boxEndIndex : t.collisionBoxArray.length, pe = A ? A.boxStartIndex : t.collisionBoxArray.length, me = A ? A.boxEndIndex : t.collisionBoxArray.length, he = -1, ge = (e, t) => e != null && e.circleDiameter ? Math.max(e.circleDiameter, t) : t;
17710
17710
  he = ge(D, he), he = ge(k, he), he = ge(O, he), he = ge(A, he);
17711
17711
  let _e = +(he > -1);
@@ -17718,7 +17718,7 @@ var P = /* @__PURE__ */ e(o(), 1), De = /* @__PURE__ */ e(ie(), 1), Oe = (/* @__
17718
17718
  }
17719
17719
  return [r, t.length];
17720
17720
  }(t.textAnchorOffsets, ve);
17721
- t.symbolInstances.emplaceBack(n.x, n.y, re.right >= 0 ? re.right : -1, re.center >= 0 ? re.center : -1, re.left >= 0 ? re.left : -1, re.vertical || -1, N, ne, ie, oe, se, ce, le, de, fe, pe, me, u, ee, te, j, M, _e, 0, p, he, ye, be);
17721
+ t.symbolInstances.emplaceBack(n.x, n.y, re.right >= 0 ? re.right : -1, re.center >= 0 ? re.center : -1, re.left >= 0 ? re.left : -1, re.vertical || -1, te, ne, ie, oe, se, ce, le, de, fe, pe, me, u, ee, N, j, M, _e, 0, p, he, ye, be);
17722
17722
  }(t, f, c, r, i, a, j, t.layers[0], t.collisionBoxArray, n.index, n.sourceLayerIndex, t.index, v, [
17723
17723
  S,
17724
17724
  S,
@@ -18593,11 +18593,11 @@ var P = /* @__PURE__ */ e(o(), 1), De = /* @__PURE__ */ e(ie(), 1), Oe = (/* @__
18593
18593
  }, e.ch = class extends uo {}, e.ci = class extends jo {}, e.cj = function(e, t) {
18594
18594
  return e[0] === t[0] && e[1] === t[1] && e[2] === t[2] && e[3] === t[3] && e[4] === t[4] && e[5] === t[5] && e[6] === t[6] && e[7] === t[7] && e[8] === t[8] && e[9] === t[9] && e[10] === t[10] && e[11] === t[11] && e[12] === t[12] && e[13] === t[13] && e[14] === t[14] && e[15] === t[15];
18595
18595
  }, e.ck = function(e, t) {
18596
- var n = e[0], r = e[1], i = e[2], a = e[3], o = e[4], s = e[5], c = e[6], l = e[7], u = e[8], f = e[9], p = e[10], m = e[11], h = e[12], g = e[13], _ = e[14], v = e[15], y = t[0], b = t[1], x = t[2], S = t[3], C = t[4], w = t[5], T = t[6], E = t[7], D = t[8], O = t[9], k = t[10], A = t[11], j = t[12], M = t[13], ee = t[14], te = t[15];
18597
- return Math.abs(n - y) <= d * Math.max(1, Math.abs(n), Math.abs(y)) && Math.abs(r - b) <= d * Math.max(1, Math.abs(r), Math.abs(b)) && Math.abs(i - x) <= d * Math.max(1, Math.abs(i), Math.abs(x)) && Math.abs(a - S) <= d * Math.max(1, Math.abs(a), Math.abs(S)) && Math.abs(o - C) <= d * Math.max(1, Math.abs(o), Math.abs(C)) && Math.abs(s - w) <= d * Math.max(1, Math.abs(s), Math.abs(w)) && Math.abs(c - T) <= d * Math.max(1, Math.abs(c), Math.abs(T)) && Math.abs(l - E) <= d * Math.max(1, Math.abs(l), Math.abs(E)) && Math.abs(u - D) <= d * Math.max(1, Math.abs(u), Math.abs(D)) && Math.abs(f - O) <= d * Math.max(1, Math.abs(f), Math.abs(O)) && Math.abs(p - k) <= d * Math.max(1, Math.abs(p), Math.abs(k)) && Math.abs(m - A) <= d * Math.max(1, Math.abs(m), Math.abs(A)) && Math.abs(h - j) <= d * Math.max(1, Math.abs(h), Math.abs(j)) && Math.abs(g - M) <= d * Math.max(1, Math.abs(g), Math.abs(M)) && Math.abs(_ - ee) <= d * Math.max(1, Math.abs(_), Math.abs(ee)) && Math.abs(v - te) <= d * Math.max(1, Math.abs(v), Math.abs(te));
18596
+ var n = e[0], r = e[1], i = e[2], a = e[3], o = e[4], s = e[5], c = e[6], l = e[7], u = e[8], f = e[9], p = e[10], m = e[11], h = e[12], g = e[13], _ = e[14], v = e[15], y = t[0], b = t[1], x = t[2], S = t[3], C = t[4], w = t[5], T = t[6], E = t[7], D = t[8], O = t[9], k = t[10], A = t[11], j = t[12], M = t[13], ee = t[14], N = t[15];
18597
+ return Math.abs(n - y) <= d * Math.max(1, Math.abs(n), Math.abs(y)) && Math.abs(r - b) <= d * Math.max(1, Math.abs(r), Math.abs(b)) && Math.abs(i - x) <= d * Math.max(1, Math.abs(i), Math.abs(x)) && Math.abs(a - S) <= d * Math.max(1, Math.abs(a), Math.abs(S)) && Math.abs(o - C) <= d * Math.max(1, Math.abs(o), Math.abs(C)) && Math.abs(s - w) <= d * Math.max(1, Math.abs(s), Math.abs(w)) && Math.abs(c - T) <= d * Math.max(1, Math.abs(c), Math.abs(T)) && Math.abs(l - E) <= d * Math.max(1, Math.abs(l), Math.abs(E)) && Math.abs(u - D) <= d * Math.max(1, Math.abs(u), Math.abs(D)) && Math.abs(f - O) <= d * Math.max(1, Math.abs(f), Math.abs(O)) && Math.abs(p - k) <= d * Math.max(1, Math.abs(p), Math.abs(k)) && Math.abs(m - A) <= d * Math.max(1, Math.abs(m), Math.abs(A)) && Math.abs(h - j) <= d * Math.max(1, Math.abs(h), Math.abs(j)) && Math.abs(g - M) <= d * Math.max(1, Math.abs(g), Math.abs(M)) && Math.abs(_ - ee) <= d * Math.max(1, Math.abs(_), Math.abs(ee)) && Math.abs(v - N) <= d * Math.max(1, Math.abs(v), Math.abs(N));
18598
18598
  }, e.cl = function(e, t) {
18599
18599
  return e[0] = t[0], e[1] = t[1], e[2] = t[2], e[3] = t[3], e[4] = t[4], e[5] = t[5], e[6] = t[6], e[7] = t[7], e[8] = t[8], e[9] = t[9], e[10] = t[10], e[11] = t[11], e[12] = t[12], e[13] = t[13], e[14] = t[14], e[15] = t[15], e;
18600
- }, e.cm = (e) => e.type === "circle", e.cn = (e) => e.type === "heatmap", e.co = (e) => e.type === "line", e.cp = (e) => e.type === "fill", e.cq = (e) => e.type === "fill-extrusion", e.cr = (e) => e.type === "hillshade", e.cs = (e) => e.type === "color-relief", e.ct = (e) => e.type === "background", e.cu = (e) => e.type === "custom", e.cv = te, e.cw = function(e, t, n) {
18600
+ }, e.cm = (e) => e.type === "circle", e.cn = (e) => e.type === "heatmap", e.co = (e) => e.type === "line", e.cp = (e) => e.type === "fill", e.cq = (e) => e.type === "fill-extrusion", e.cr = (e) => e.type === "hillshade", e.cs = (e) => e.type === "color-relief", e.ct = (e) => e.type === "background", e.cu = (e) => e.type === "custom", e.cv = N, e.cw = function(e, t, n) {
18601
18601
  if (t <= 0) return e;
18602
18602
  let r = 1 / t;
18603
18603
  return n === void 0 || Math.abs(n) < 1e-10 ? Math.round(e * r) / r : (n > 0 ? Math.ceil(e * r - 1e-9) : Math.floor(e * r + 1e-10)) / r;
@@ -18605,7 +18605,7 @@ var P = /* @__PURE__ */ e(o(), 1), De = /* @__PURE__ */ e(ie(), 1), Oe = (/* @__
18605
18605
  let r = D(t.x - n.x, t.y - n.y), i = D(e.x - n.x, e.y - n.y);
18606
18606
  var a, o;
18607
18607
  return xe(Math.atan2(r[0] * i[1] - r[1] * i[0], (a = r)[0] * (o = i)[0] + a[1] * o[1]));
18608
- }, e.cy = N, e.cz = function(e, t) {
18608
+ }, e.cy = te, e.cz = function(e, t) {
18609
18609
  var n;
18610
18610
  if (!Ce[t]) return !1;
18611
18611
  let r = e == null ? void 0 : e.target, i = ((n = r == null ? void 0 : r.ownerDocument) == null ? void 0 : n.defaultView) || window;
@@ -20266,8 +20266,8 @@ var P = /* @__PURE__ */ e(o(), 1), De = /* @__PURE__ */ e(ie(), 1), Oe = (/* @__
20266
20266
  return Object.keys(this.active).length;
20267
20267
  }
20268
20268
  }
20269
- let M = Math.floor(s.hardwareConcurrency / 2), ee, te;
20270
- function N() {
20269
+ let M = Math.floor(s.hardwareConcurrency / 2), ee, N;
20270
+ function te() {
20271
20271
  return ee || (ee = new j()), ee;
20272
20272
  }
20273
20273
  j.workerCount = t.L(globalThis) ? Math.max(Math.min(M, 3), 1) : 1;
@@ -20304,7 +20304,7 @@ var P = /* @__PURE__ */ e(o(), 1), De = /* @__PURE__ */ e(ie(), 1), Oe = (/* @__
20304
20304
  }
20305
20305
  }
20306
20306
  function re() {
20307
- return te || (te = new ne(N(), t.M), te.registerMessageHandler("GR", ((e, n, r) => t.m(n, r)))), te;
20307
+ return N || (N = new ne(te(), t.M), N.registerMessageHandler("GR", ((e, n, r) => t.m(n, r)))), N;
20308
20308
  }
20309
20309
  function ie(e, n) {
20310
20310
  let r = t.O();
@@ -23041,7 +23041,7 @@ var P = /* @__PURE__ */ e(o(), 1), De = /* @__PURE__ */ e(ie(), 1), Oe = (/* @__
23041
23041
  var w, A;
23042
23042
  if (n[e.crossTileID]) return;
23043
23043
  if (d) return void (this.placements[e.crossTileID] = new Ct(!1, !1, !1));
23044
- let j = !1, M = !1, ee = !0, te = null, N = {
23044
+ let j = !1, M = !1, ee = !0, N = null, te = {
23045
23045
  box: null,
23046
23046
  placeable: !1,
23047
23047
  offscreen: null,
@@ -23059,8 +23059,8 @@ var P = /* @__PURE__ */ e(o(), 1), De = /* @__PURE__ */ e(ie(), 1), Oe = (/* @__
23059
23059
  return r;
23060
23060
  }, a = (n, r) => {
23061
23061
  if (i.allowVerticalPlacement && e.numVerticalGlyphVertices > 0 && f.verticalTextBox) {
23062
- for (let e of i.writingModes) if (e === t.ax.vertical ? (N = r(), ne = N) : N = n(), N != null && N.placeable) break;
23063
- } else N = n();
23062
+ for (let e of i.writingModes) if (e === t.ax.vertical ? (te = r(), ne = te) : te = n(), te != null && te.placeable) break;
23063
+ } else te = n();
23064
23064
  }, l = e.textAnchorOffsetStartIndex, d = e.textAnchorOffsetEndIndex;
23065
23065
  if (d === l) {
23066
23066
  let r = (t, n) => {
@@ -23073,7 +23073,7 @@ var P = /* @__PURE__ */ e(o(), 1), De = /* @__PURE__ */ e(ie(), 1), Oe = (/* @__
23073
23073
  box: null,
23074
23074
  offscreen: null
23075
23075
  };
23076
- })), n(N == null ? void 0 : N.placeable);
23076
+ })), n(te == null ? void 0 : te.placeable);
23077
23077
  } else {
23078
23078
  let p = t.aM[(A = (w = this.prevPlacement) == null ? void 0 : w.variableOffsets[e.crossTileID]) == null ? void 0 : A.anchor], h = (t, n, a) => {
23079
23079
  let f = t.x2 - t.x1, h = t.y2 - t.y1, g = e.textBoxScale, v = C && y === "never" ? n : null, b = null, w = _ === "never" ? 1 : 2, T = "never";
@@ -23083,7 +23083,7 @@ var P = /* @__PURE__ */ e(o(), 1), De = /* @__PURE__ */ e(ie(), 1), Oe = (/* @__
23083
23083
  let r = i.textAnchorOffsets.get(n);
23084
23084
  if (p && r.textAnchor !== p) continue;
23085
23085
  let l = this.attemptAnchorPlacement(r, t, f, h, g, x, S, u, D, c, m, T, e, i, a, o, s, v, O);
23086
- if (l && (b = l.placedGlyphBoxes, b != null && b.placeable)) return j = !0, te = l.shift, b;
23086
+ if (l && (b = l.placedGlyphBoxes, b != null && b.placeable)) return j = !0, N = l.shift, b;
23087
23087
  }
23088
23088
  p ? p = null : T = _;
23089
23089
  }
@@ -23096,25 +23096,25 @@ var P = /* @__PURE__ */ e(o(), 1), De = /* @__PURE__ */ e(ie(), 1), Oe = (/* @__
23096
23096
  };
23097
23097
  a((() => h(le, f.iconBox, t.ax.horizontal)), (() => {
23098
23098
  let n = f.verticalTextBox;
23099
- return i.allowVerticalPlacement && !(N != null && N.placeable) && e.numVerticalGlyphVertices > 0 && n ? h(n, f.verticalIconBox, t.ax.vertical) : {
23099
+ return i.allowVerticalPlacement && !(te != null && te.placeable) && e.numVerticalGlyphVertices > 0 && n ? h(n, f.verticalIconBox, t.ax.vertical) : {
23100
23100
  box: null,
23101
23101
  occluded: !0,
23102
23102
  offscreen: null
23103
23103
  };
23104
- })), N && (j = N.placeable, ee = N.offscreen);
23105
- let g = n(N == null ? void 0 : N.placeable);
23104
+ })), te && (j = te.placeable, ee = te.offscreen);
23105
+ let g = n(te == null ? void 0 : te.placeable);
23106
23106
  if (!j && this.prevPlacement) {
23107
23107
  let t = this.prevPlacement.variableOffsets[e.crossTileID];
23108
23108
  t && (this.variableOffsets[e.crossTileID] = t, this.markUsedJustification(i, t.anchor, e, g));
23109
23109
  }
23110
23110
  }
23111
23111
  }
23112
- if (re = N, j = re == null ? void 0 : re.placeable, ee = re == null ? void 0 : re.offscreen, e.useRuntimeCollisionCircles && e.centerJustifiedTextSymbolIndex >= 0) {
23112
+ if (re = te, j = re == null ? void 0 : re.placeable, ee = re == null ? void 0 : re.offscreen, e.useRuntimeCollisionCircles && e.centerJustifiedTextSymbolIndex >= 0) {
23113
23113
  let n = i.text.placedSymbolArray.get(e.centerJustifiedTextSymbolIndex), s = t.ay(i.textSizeData, p, n), u = a.get("text-padding");
23114
23114
  ie = this.collisionIndex.placeCollisionCircles(_, n, i.lineVertexArray, i.glyphOffsetArray, s, c, l, r, S, m.predicate, e.collisionCircleDiameter, u, o, O), ie.circles.length && ie.collisionDetected && !r && t.w("Collisions detected, but collision boxes are not shown"), j = v || ie.circles.length > 0 && !ie.collisionDetected, ee && (ee = ie.offscreen);
23115
23115
  }
23116
23116
  if (f.iconFeatureIndex && (ce = f.iconFeatureIndex), f.iconBox) {
23117
- let e = (e) => this.collisionIndex.placeCollisionBox(e, y, u, D, c, S, x, s, m.predicate, O, C && te ? te : void 0, k);
23117
+ let e = (e) => this.collisionIndex.placeCollisionBox(e, y, u, D, c, S, x, s, m.predicate, O, C && N ? N : void 0, k);
23118
23118
  ne && ne.placeable && f.verticalIconBox ? (ae = e(f.verticalIconBox), M = ae.placeable) : (ae = e(f.iconBox), M = ae.placeable), ee && (ee = ae.offscreen);
23119
23119
  }
23120
23120
  let ue = h || e.numHorizontalGlyphVertices === 0 && e.numVerticalGlyphVertices === 0, de = g || e.numIconVertices === 0;
@@ -26530,7 +26530,7 @@ var P = /* @__PURE__ */ e(o(), 1), De = /* @__PURE__ */ e(ie(), 1), Oe = (/* @__
26530
26530
  let t = this.tileManagers[e].getSource().type;
26531
26531
  t !== "vector" && t !== "geojson" || this.tileManagers[e].reload();
26532
26532
  }
26533
- }, this.map = e, this.dispatcher = new ne(N(), e._getMapId()), this.dispatcher.registerMessageHandler("GG", ((e, t) => this.getGlyphs(e, t))), this.dispatcher.registerMessageHandler("GI", ((e, t) => this.getImages(e, t))), this.dispatcher.registerMessageHandler("GDA", ((e, t) => this.getDashes(e, t))), this.imageManager = new _(), this.imageManager.setEventedParent(this);
26533
+ }, this.map = e, this.dispatcher = new ne(te(), e._getMapId()), this.dispatcher.registerMessageHandler("GG", ((e, t) => this.getGlyphs(e, t))), this.dispatcher.registerMessageHandler("GI", ((e, t) => this.getImages(e, t))), this.dispatcher.registerMessageHandler("GDA", ((e, t) => this.getDashes(e, t))), this.imageManager = new _(), this.imageManager.setEventedParent(this);
26534
26534
  let a = ((r = e._container) == null ? void 0 : r.lang) || typeof document < "u" && ((i = document.documentElement) == null ? void 0 : i.lang) || void 0;
26535
26535
  this.glyphManager = new C(e._requestManager, n.localIdeographFontFamily, a), this.lineAtlas = new k(256, 512), this.crossTileSymbolIndex = new Bt(), this._setInitialValues(), this._resetUpdates(), this.dispatcher.broadcast("SR", t.bO()), Oe().on(Ee, this._rtlPluginLoaded), this.on("data", ((e) => {
26536
26536
  if (e.dataType !== "source" || e.sourceDataType !== "metadata") return;
@@ -28693,11 +28693,11 @@ var P = /* @__PURE__ */ e(o(), 1), De = /* @__PURE__ */ e(ie(), 1), Oe = (/* @__
28693
28693
  if (!l) continue;
28694
28694
  let d = a ? l.text : l.icon;
28695
28695
  if (!(d != null && d.segments.get().length) || !d.hasVisibleVertices) continue;
28696
- let f = d.programConfigurations.get(r.id), h = a || l.sdfIcons, g = a ? l.textSizeData : l.iconSizeData, T = b || v.pitch !== 0, k = e.useProgram(_i(h, a, l), f), A = t.aw(g, v.zoom), j = (m = e.style.map.terrain) == null ? void 0 : m.getTerrainData(c), M, ee, te, N, ne = [0, 0], re = null;
28697
- if (a) ee = i.glyphAtlasTexture, te = _.LINEAR, M = i.glyphAtlasTexture.size, l.iconsInText && (ne = i.imageAtlasTexture.size, re = i.imageAtlasTexture, N = T || e.options.rotating || e.options.zooming || g.kind === "composite" || g.kind === "camera" ? _.LINEAR : _.NEAREST);
28696
+ let f = d.programConfigurations.get(r.id), h = a || l.sdfIcons, g = a ? l.textSizeData : l.iconSizeData, T = b || v.pitch !== 0, k = e.useProgram(_i(h, a, l), f), A = t.aw(g, v.zoom), j = (m = e.style.map.terrain) == null ? void 0 : m.getTerrainData(c), M, ee, N, te, ne = [0, 0], re = null;
28697
+ if (a) ee = i.glyphAtlasTexture, N = _.LINEAR, M = i.glyphAtlasTexture.size, l.iconsInText && (ne = i.imageAtlasTexture.size, re = i.imageAtlasTexture, te = T || e.options.rotating || e.options.zooming || g.kind === "composite" || g.kind === "camera" ? _.LINEAR : _.NEAREST);
28698
28698
  else {
28699
28699
  let t = r.layout.get("icon-size").constantOr(0) !== 1 || l.iconsNeedLinear;
28700
- ee = i.imageAtlasTexture, te = h || e.options.rotating || e.options.zooming || t || T ? _.LINEAR : _.NEAREST, M = i.imageAtlasTexture.size;
28700
+ ee = i.imageAtlasTexture, N = h || e.options.rotating || e.options.zooming || t || T ? _.LINEAR : _.NEAREST, M = i.imageAtlasTexture.size;
28701
28701
  }
28702
28702
  let ie = t.aK(i, 1, e.transform.zoom), ae = et(y, e.transform, ie), oe = tt(b, y, e.transform, ie), se = t.aL(v, i, o, s), ce = v.getProjectionData({
28703
28703
  overscaledTileID: c,
@@ -28719,8 +28719,8 @@ var P = /* @__PURE__ */ e(o(), 1), De = /* @__PURE__ */ e(ie(), 1), Oe = (/* @__
28719
28719
  projectionData: ce,
28720
28720
  atlasTexture: ee,
28721
28721
  atlasTextureIcon: re,
28722
- atlasInterpolation: te,
28723
- atlasInterpolationIcon: N,
28722
+ atlasInterpolation: N,
28723
+ atlasInterpolationIcon: te,
28724
28724
  isSDF: h,
28725
28725
  hasHalo: pe
28726
28726
  };
@@ -33740,7 +33740,7 @@ var P = /* @__PURE__ */ e(o(), 1), De = /* @__PURE__ */ e(ie(), 1), Oe = (/* @__
33740
33740
  }, e.isTimeFrozen = function() {
33741
33741
  return c.isFrozen();
33742
33742
  }, e.now = l, e.prewarm = function() {
33743
- N().acquire(A);
33743
+ te().acquire(A);
33744
33744
  }, e.restoreNow = function() {
33745
33745
  c.restoreNow();
33746
33746
  }, e.setMaxParallelImageRequests = function(e) {
@@ -33945,8 +33945,8 @@ var Ge = /*#__PURE__*/ He(Ue, 9, 1), Ke = /*#__PURE__*/ He(We, 5, 1), qe = funct
33945
33945
  for (y == 16 ? (ee = 3 + Je(e, d, 3), d += 2, M = T[D - 1]) : y == 17 ? (ee = 3 + Je(e, d, 7), d += 3) : y == 18 && (ee = 11 + Je(e, d, 127), d += 7); ee--;) T[D++] = M;
33946
33946
  }
33947
33947
  }
33948
- var te = T.subarray(0, S), N = T.subarray(S);
33949
- h = qe(te), g = qe(N), p = He(te, h, 1), m = He(N, g, 1);
33948
+ var N = T.subarray(0, S), te = T.subarray(S);
33949
+ h = qe(N), g = qe(te), p = He(N, h, 1), m = He(te, g, 1);
33950
33950
  } else Qe(1);
33951
33951
  if (d > _) {
33952
33952
  c && Qe(0);
@@ -33972,10 +33972,10 @@ var Ge = /*#__PURE__*/ He(Ue, 9, 1), Ke = /*#__PURE__*/ He(We, 5, 1), qe = funct
33972
33972
  }
33973
33973
  var ce = m[R(e, d) & re], le = ce >> 4;
33974
33974
  ce || Qe(3), d += ce & 15;
33975
- var N = ze[le];
33975
+ var te = ze[le];
33976
33976
  if (le > 3) {
33977
33977
  var se = Ne[le];
33978
- N += R(e, d) & (1 << se) - 1, d += se;
33978
+ te += R(e, d) & (1 << se) - 1, d += se;
33979
33979
  }
33980
33980
  if (d > _) {
33981
33981
  c && Qe(0);
@@ -33983,11 +33983,11 @@ var Ge = /*#__PURE__*/ He(Ue, 9, 1), Ke = /*#__PURE__*/ He(We, 5, 1), qe = funct
33983
33983
  }
33984
33984
  s && l(f + 131072);
33985
33985
  var ue = f + oe;
33986
- if (f < N) {
33987
- var de = a - N, fe = Math.min(N, ue);
33986
+ if (f < te) {
33987
+ var de = a - te, fe = Math.min(te, ue);
33988
33988
  for (de + f < 0 && Qe(3); f < fe; ++f) n[f] = r[de + f];
33989
33989
  }
33990
- for (; f < ue; ++f) n[f] = n[f - N];
33990
+ for (; f < ue; ++f) n[f] = n[f - te];
33991
33991
  }
33992
33992
  }
33993
33993
  t.l = p, t.p = ie, t.b = f, t.f = u, p && (u = 1, t.m = h, t.d = m, t.n = g);
@@ -34798,7 +34798,7 @@ function an({ sceneDef: e, geoConfig: t, tileSource: n, mapOptions: r, debug: i,
34798
34798
  u.off("style.load", b), u.off("styleimagemissing", d), u.remove();
34799
34799
  };
34800
34800
  };
34801
- return i ? k().then(() => {
34801
+ return i ? ie().then(() => {
34802
34802
  a || s();
34803
34803
  }) : s(), () => {
34804
34804
  a = !0, o == null || o(), f(void 0);
@@ -34812,7 +34812,7 @@ function an({ sceneDef: e, geoConfig: t, tileSource: n, mapOptions: r, debug: i,
34812
34812
  width: "100%",
34813
34813
  height: "100%"
34814
34814
  },
34815
- children: d && /* @__PURE__ */ (0, Wt.jsx)(T, {
34815
+ children: d && /* @__PURE__ */ (0, Wt.jsx)(N, {
34816
34816
  ...d,
34817
34817
  scene: e,
34818
34818
  debug: i,
@@ -34840,20 +34840,20 @@ function dn(e, t, n) {
34840
34840
  }
34841
34841
  function fn(e, t) {
34842
34842
  let n = [
34843
- ce(e.min.x, e.min.y, t),
34844
- ce(e.max.x, e.min.y, t),
34845
- ce(e.max.x, e.max.y, t),
34846
- ce(e.min.x, e.max.y, t)
34843
+ se(e.min.x, e.min.y, t),
34844
+ se(e.max.x, e.min.y, t),
34845
+ se(e.max.x, e.max.y, t),
34846
+ se(e.min.x, e.max.y, t)
34847
34847
  ], r = n.map(([e]) => e), i = n.map(([, e]) => e);
34848
34848
  return [[Math.min(...r), Math.min(...i)], [Math.max(...r), Math.max(...i)]];
34849
34849
  }
34850
34850
  var pn = 512;
34851
34851
  function mn(e, t, n, r, i) {
34852
34852
  let a = [
34853
- ce(e.min.x, e.min.y, t),
34854
- ce(e.max.x, e.min.y, t),
34855
- ce(e.max.x, e.max.y, t),
34856
- ce(e.min.x, e.max.y, t)
34853
+ se(e.min.x, e.min.y, t),
34854
+ se(e.max.x, e.min.y, t),
34855
+ se(e.max.x, e.max.y, t),
34856
+ se(e.min.x, e.max.y, t)
34857
34857
  ].map(([e, t]) => Oe.MercatorCoordinate.fromLngLat({
34858
34858
  lng: e,
34859
34859
  lat: t
@@ -34891,9 +34891,9 @@ function gn(e, t, n) {
34891
34891
  }
34892
34892
  function _n() {
34893
34893
  var e, t;
34894
- let n = (e = ae()) == null || (e = e.properties) == null ? void 0 : e.config;
34894
+ let n = (e = ce()) == null || (e = e.properties) == null ? void 0 : e.config;
34895
34895
  if (!n) return null;
34896
- let r = (n.p0.lng + n.p2.lng) / 2, i = (n.p0.lat + n.p2.lat) / 2, a = oe(n.p0, n.p2), o = Number.isFinite(a) ? a : (t = n.bearing) == null ? 0 : t;
34896
+ let r = (n.p0.lng + n.p2.lng) / 2, i = (n.p0.lat + n.p2.lat) / 2, a = ae(n.p0, n.p2), o = Number.isFinite(a) ? a : (t = n.bearing) == null ? 0 : t;
34897
34897
  return {
34898
34898
  center: [r, i],
34899
34899
  bearing: o,
@@ -34951,7 +34951,7 @@ function vn(e, t, n, r = {}) {
34951
34951
  //#region src/components/Maplibre/useCameraReactions.ts
34952
34952
  var yn = m, bn = 15, xn = 24, Sn = 20;
34953
34953
  function Cn(e) {
34954
- return de(e, he(e, y())).expand(Sn);
34954
+ return de(e, he(e, w())).expand(Sn);
34955
34955
  }
34956
34956
  function wn(e, t) {
34957
34957
  return Math.min(Math.max(t, e.getMinZoom()), e.getMaxZoom());
@@ -34961,7 +34961,7 @@ function Tn(e, t, n) {
34961
34961
  if (n.length !== 1) return !1;
34962
34962
  let i = (r = n[0]) == null ? void 0 : r.id, a = p.poiMarkerStore.markers.find((e) => e.boothId === i);
34963
34963
  if (!a) return !1;
34964
- let o = ce(a.center.x, a.center.y, t.gpsConfig);
34964
+ let o = se(a.center.x, a.center.y, t.gpsConfig);
34965
34965
  return gn(e, o, hn(xn)) || e.easeTo({
34966
34966
  center: o,
34967
34967
  zoom: wn(e, bn),
@@ -34980,13 +34980,13 @@ function En(e, t, n) {
34980
34980
  yn.moveToBooths = null;
34981
34981
  return;
34982
34982
  }
34983
- vn(r, Cn(b.fromUnion(...i.map((e) => e.rect))), t), yn.moveToBooths = null;
34983
+ vn(r, Cn(v.fromUnion(...i.map((e) => e.rect))), t), yn.moveToBooths = null;
34984
34984
  }
34985
34985
  }), h(() => yn.moveToRect, (n) => {
34986
34986
  var r;
34987
34987
  let i = e.current;
34988
34988
  if (!n || !i || !t) return;
34989
- let { width: a, height: o } = n.size, s = a > 0 && o > 0 ? xe(n) : n, c = (r = yn.moveToRectPaddingPercent) == null ? he(n, y()) : r;
34989
+ let { width: a, height: o } = n.size, s = a > 0 && o > 0 ? xe(n) : n, c = (r = yn.moveToRectPaddingPercent) == null ? he(n, w()) : r;
34990
34990
  vn(i, de(s, c / (1 - 2 * c)), t, { padding: 0 }), yn.moveToRect = null, yn.moveToRectPaddingPercent = null;
34991
34991
  }), h(() => yn.zoomBy, (t) => {
34992
34992
  let n = e.current;
@@ -35013,7 +35013,7 @@ function En(e, t, n) {
35013
35013
  if (s) c = [a, o];
35014
35014
  else {
35015
35015
  if (!t) return;
35016
- c = ce(i.x, i.y, t.gpsConfig);
35016
+ c = se(i.x, i.y, t.gpsConfig);
35017
35017
  }
35018
35018
  r.flyTo({
35019
35019
  center: c,
@@ -35026,10 +35026,10 @@ function En(e, t, n) {
35026
35026
  if (!(m.list.type === "search" && !m.list.text)) {
35027
35027
  let { rect: e } = fe({
35028
35028
  layerViewbox: p.layerStore.viewboxRectangle,
35029
- explicitArea: S() ? y() : null,
35029
+ explicitArea: y() ? w() : null,
35030
35030
  layerRectangle: p.layerStore.rectangle,
35031
35031
  sceneDef: n,
35032
- svgArea: y()
35032
+ svgArea: w()
35033
35033
  });
35034
35034
  vn(i, e, t);
35035
35035
  }
@@ -35222,7 +35222,7 @@ function Zn() {
35222
35222
  } : r != null && r.styleUrl ? {
35223
35223
  style: r.styleUrl,
35224
35224
  offline: r.offline
35225
- } : Gn((n = ae()) == null || (n = n.properties) == null || (n = n.config) == null ? void 0 : n.style, v.backgroundColor) === "dark" ? qn : Kn;
35225
+ } : Gn((n = ce()) == null || (n = n.properties) == null || (n = n.config) == null ? void 0 : n.style, T.backgroundColor) === "dark" ? qn : Kn;
35226
35226
  }
35227
35227
  //#endregion
35228
35228
  //#region src/components/Maplibre/useDimming.ts
@@ -35240,7 +35240,7 @@ function $n(e, t) {
35240
35240
  Jn(e.current, t * _e);
35241
35241
  }), a = Ee((e) => {
35242
35242
  let n = t.current;
35243
- n && be(n, e * 1) && A(n.rootLayer);
35243
+ n && be(n, e * 1) && M(n.rootLayer);
35244
35244
  });
35245
35245
  return n.current = i, r.current = a, () => {
35246
35246
  i.stop(), a.stop(), n.current = null, r.current = null;
@@ -35282,7 +35282,7 @@ function tr(e, t = /* @__PURE__ */ new Map()) {
35282
35282
  let n = (r = t.get(e.name)) == null ? [] : r;
35283
35283
  n.push(e), t.set(e.name, n);
35284
35284
  }
35285
- for (let r of (n = e.children) == null ? [] : n) D(r) && tr(r, t);
35285
+ for (let r of (n = e.children) == null ? [] : n) j(r) && tr(r, t);
35286
35286
  return t;
35287
35287
  }
35288
35288
  //#endregion
@@ -35304,7 +35304,7 @@ function nr(e, t, n) {
35304
35304
  n.hidden !== t && (n.hidden = t, c.push(n));
35305
35305
  }
35306
35306
  }
35307
- c.length && A(...c);
35307
+ c.length && M(...c);
35308
35308
  let l = p.layerStore.layers.find((e) => e.visible && !e.frozen && !e.rootParent && !e.pathway);
35309
35309
  if (!l || i.current === l.name) return;
35310
35310
  i.current = l.name;
@@ -35327,10 +35327,10 @@ var rr = "expofp-poi", ir = "expofp-poi-clusters", ar = "expofp-poi-cluster-coun
35327
35327
  function fr(e, t, i) {
35328
35328
  (0, P.useEffect)(() => {
35329
35329
  var a;
35330
- if (!C()) return;
35330
+ if (!D()) return;
35331
35331
  let o = t.current;
35332
35332
  if (!e || !o || !i) return;
35333
- let { gpsConfig: s } = i, c = /* @__PURE__ */ new Set(), l = window.devicePixelRatio || 1, d = j(40, l, ((a = v.colors) == null || (a = a.booths) == null ? void 0 : a.selected) || "#3b6ef5"), f = O(te, 40, l).tipOffset, m = O(w, 40, l).tipOffset, h = (e) => ce(e.center.x, e.center.y, s), g = (e, t) => {
35333
+ let { gpsConfig: s } = i, c = /* @__PURE__ */ new Set(), l = window.devicePixelRatio || 1, d = te(40, l, ((a = T.colors) == null || (a = a.booths) == null ? void 0 : a.selected) || "#3b6ef5"), f = ee(ne, 40, l).tipOffset, m = ee(A, 40, l).tipOffset, h = (e) => se(e.center.x, e.center.y, s), g = (e, t) => {
35334
35334
  o.hasImage(e) && o.removeImage(e), o.addImage(e, t, { pixelRatio: l }), c.add(e);
35335
35335
  }, _ = (e) => {
35336
35336
  let t = p.poiMarkerStore.markers, n = new Set(t.map((e) => dr(e.boothId)));
@@ -35361,7 +35361,7 @@ function fr(e, t, i) {
35361
35361
  }))
35362
35362
  }
35363
35363
  };
35364
- }, x = () => {
35364
+ }, b = () => {
35365
35365
  var e, t, n;
35366
35366
  let r = null;
35367
35367
  for (let n of (e = (t = o.getStyle()) == null ? void 0 : t.layers) == null ? [] : e) {
@@ -35374,17 +35374,17 @@ function fr(e, t, i) {
35374
35374
  }
35375
35375
  }
35376
35376
  return (n = r) == null ? ["Noto Sans Regular"] : n;
35377
- }, S = null, T = () => {
35377
+ }, x = null, S = () => {
35378
35378
  for (let e of lr) o.getLayer(e) && o.removeLayer(e);
35379
- o.getSource(rr) && o.removeSource(rr), S = null;
35380
- }, E = (e, t) => {
35381
- if (S !== null && S !== t && T(), o.getSource(rr) || (o.addSource(rr, {
35379
+ o.getSource(rr) && o.removeSource(rr), x = null;
35380
+ }, w = (e, t) => {
35381
+ if (x !== null && x !== t && S(), o.getSource(rr) || (o.addSource(rr, {
35382
35382
  type: "geojson",
35383
35383
  data: e,
35384
35384
  cluster: t,
35385
35385
  clusterRadius: 50,
35386
35386
  clusterMinPoints: 3
35387
- }), S = t), o.getLayer(ir)) return;
35387
+ }), x = t), o.getLayer(ir)) return;
35388
35388
  let i = ["!", ["has", "point_count"]], a = [
35389
35389
  "==",
35390
35390
  [
@@ -35413,7 +35413,7 @@ function fr(e, t, i) {
35413
35413
  filter: ["has", "point_count"],
35414
35414
  layout: {
35415
35415
  "text-field": ["get", "point_count_abbreviated"],
35416
- "text-font": x(),
35416
+ "text-font": b(),
35417
35417
  "text-size": 14,
35418
35418
  "text-allow-overlap": !0,
35419
35419
  "text-ignore-placement": !0
@@ -35452,20 +35452,20 @@ function fr(e, t, i) {
35452
35452
  "icon-ignore-placement": !0
35453
35453
  }
35454
35454
  });
35455
- }, D = () => {
35455
+ }, E = () => {
35456
35456
  if (!o.getLayer(ir)) return;
35457
35457
  let e = Qn() ? 1 - _e : 1;
35458
35458
  o.setPaintProperty(ir, "circle-opacity", e), o.setPaintProperty(ir, "circle-stroke-opacity", e), o.setPaintProperty(ar, "text-opacity", e), o.setPaintProperty(or, "icon-opacity", e), o.setPaintProperty(sr, "icon-opacity", e);
35459
- }, k = (e = !1) => {
35459
+ }, O = (e = !1) => {
35460
35460
  var t;
35461
35461
  _(e);
35462
35462
  let { cluster: n, data: r } = y();
35463
- E(r, n), (t = o.getSource(rr)) == null || t.setData(r), D();
35464
- }, A = (e) => {
35463
+ w(r, n), (t = o.getSource(rr)) == null || t.setData(r), E();
35464
+ }, k = (e) => {
35465
35465
  if (!e.length) return;
35466
35466
  let t = hn(50);
35467
35467
  if (e.every((e) => gn(o, h(e), t))) return;
35468
- let n = fn(b.fromPoints(e.map((e) => e.center)), s), r = o.cameraForBounds(n, {
35468
+ let n = fn(v.fromPoints(e.map((e) => e.center)), s), r = o.cameraForBounds(n, {
35469
35469
  padding: t,
35470
35470
  bearing: i.bearing
35471
35471
  });
@@ -35476,13 +35476,13 @@ function fr(e, t, i) {
35476
35476
  duration: 500,
35477
35477
  essential: !0
35478
35478
  });
35479
- }, M = (e) => {
35479
+ }, j = (e) => {
35480
35480
  var t;
35481
35481
  let n = (t = e.features) == null || (t = t[0]) == null || (t = t.properties) == null ? void 0 : t.boothId;
35482
35482
  if (typeof n != "number") return;
35483
35483
  let r = p.boothStore.boothById.get(n);
35484
35484
  r && p.clickBooth(r);
35485
- }, ee = (e) => {
35485
+ }, M = (e) => {
35486
35486
  var t, n, r;
35487
35487
  let i = (t = e.features) == null ? void 0 : t[0], a = i == null || (n = i.properties) == null ? void 0 : n.cluster_id, s = o.getSource(rr);
35488
35488
  if (typeof a != "number" || !s || (i == null || (r = i.geometry) == null ? void 0 : r.type) !== "Point") return;
@@ -35495,23 +35495,23 @@ function fr(e, t, i) {
35495
35495
  });
35496
35496
  });
35497
35497
  };
35498
- o.on("click", or, M), o.on("click", sr, M), o.on("click", ir, ee), ne.set((e, t) => {
35498
+ o.on("click", or, j), o.on("click", sr, j), o.on("click", ir, M), C.set((e, t) => {
35499
35499
  let n = ur.filter((e) => !!o.getLayer(e));
35500
35500
  if (!n.length) return !1;
35501
35501
  let r = o.getCanvas().getBoundingClientRect();
35502
35502
  return o.queryRenderedFeatures([e - r.left, t - r.top], { layers: n }).length > 0;
35503
35503
  });
35504
35504
  let N = () => {
35505
- c.clear(), k(!0);
35505
+ c.clear(), O(!0);
35506
35506
  };
35507
35507
  o.on("style.load", N);
35508
- let re = u(() => p.poiMarkerStore.markers, () => k(!0)), ie = u(() => p.poiMarkerStore.selectedMarkerId, () => k()), ae = u(() => p.poiMarkerStore.outdoorFilter.key, () => {
35509
- k(), A(p.poiMarkerStore.outdoorFilter.matchingMarkers);
35510
- }), oe = u(() => Qn(), () => D());
35511
- return k(!0), () => {
35512
- re(), ie(), ae(), oe(), ne.set(null), o.off("style.load", N), o.off("click", or, M), o.off("click", sr, M), o.off("click", ir, ee);
35508
+ let re = u(() => p.poiMarkerStore.markers, () => O(!0)), ie = u(() => p.poiMarkerStore.selectedMarkerId, () => O()), ae = u(() => p.poiMarkerStore.outdoorFilter.key, () => {
35509
+ O(), k(p.poiMarkerStore.outdoorFilter.matchingMarkers);
35510
+ }), oe = u(() => Qn(), () => E());
35511
+ return O(!0), () => {
35512
+ re(), ie(), ae(), oe(), C.set(null), o.off("style.load", N), o.off("click", or, j), o.off("click", sr, j), o.off("click", ir, M);
35513
35513
  try {
35514
- T();
35514
+ S();
35515
35515
  for (let e of c) o.hasImage(e) && o.removeImage(e);
35516
35516
  } catch {}
35517
35517
  };
@@ -35526,7 +35526,7 @@ function fr(e, t, i) {
35526
35526
  function pr(e, t) {
35527
35527
  (0, P.useEffect)(() => {
35528
35528
  if (!e) return;
35529
- let n = se({
35529
+ let n = oe({
35530
35530
  scene: e,
35531
35531
  store: p,
35532
35532
  canvas: t
@@ -35724,15 +35724,15 @@ var Fr = () => m.overlayPosition === "bottom", Ir = f(function({ viewMode: e })
35724
35724
  var t;
35725
35725
  let [n, r] = (0, P.useState)(null), [i, a] = (0, P.useState)(!1), o = (0, P.useRef)(null), s = (0, P.useRef)(null), d = (0, P.useRef)(null), f = (0, P.useRef)(null), h = (0, P.useRef)(null), g = (0, P.useMemo)(() => _n(), []), _ = (0, P.useMemo)(() => fe({
35726
35726
  layerViewbox: p.layerStore.viewboxRectangle,
35727
- explicitArea: S() ? y() : null,
35727
+ explicitArea: y() ? w() : null,
35728
35728
  layerRectangle: p.layerStore.rectangle,
35729
35729
  sceneDef: n,
35730
- svgArea: y()
35731
- }), [n]), b = _.rect, C = (0, P.useMemo)(() => {
35730
+ svgArea: w()
35731
+ }), [n]), v = _.rect, C = (0, P.useMemo)(() => {
35732
35732
  if (!g) return null;
35733
- let e = me(_.source) ? 0 : he(b, y()), t = hn(0);
35733
+ let e = me(_.source) ? 0 : he(v, w()), t = hn(0);
35734
35734
  e && m.screenSize && (t.left += m.screenSize.width * e, t.right += m.screenSize.width * e, t.top += m.screenSize.height * e, t.bottom += m.screenSize.height * e);
35735
- let n = m.screenSize ? mn(b, g.gpsConfig, g.bearing, {
35735
+ let n = m.screenSize ? mn(v, g.gpsConfig, g.bearing, {
35736
35736
  width: m.screenSize.width,
35737
35737
  height: m.screenSize.height
35738
35738
  }, t) : null;
@@ -35744,30 +35744,30 @@ var Fr = () => m.overlayPosition === "bottom", Ir = f(function({ viewMode: e })
35744
35744
  center: g.center,
35745
35745
  bearing: g.bearing,
35746
35746
  zoom: g.zoom,
35747
- bounds: fn(b, g.gpsConfig),
35747
+ bounds: fn(v, g.gpsConfig),
35748
35748
  fitPadding: t,
35749
35749
  zoomAdjustment: on
35750
35750
  };
35751
35751
  }, [
35752
35752
  g,
35753
35753
  _,
35754
- b
35755
- ]), w = (0, P.useMemo)(() => {
35754
+ v
35755
+ ]), D = (0, P.useMemo)(() => {
35756
35756
  var e;
35757
- return g ? yr(g.gpsConfig, (e = x()) == null ? void 0 : e.getAttribute("units")) : null;
35758
- }, [g]), T = m.mapSettings.pitchdegrees, D = m.maxPitch, O = (0, P.useMemo)(() => {
35757
+ return g ? yr(g.gpsConfig, (e = b()) == null ? void 0 : e.getAttribute("units")) : null;
35758
+ }, [g]), k = m.mapSettings.pitchdegrees, A = m.maxPitch, j = (0, P.useMemo)(() => {
35759
35759
  let t = e === "map2d";
35760
35760
  return {
35761
- pitch: t ? 0 : T,
35762
- maxPitch: t ? 0 : D,
35761
+ pitch: t ? 0 : k,
35762
+ maxPitch: t ? 0 : A,
35763
35763
  minZoom: 12
35764
35764
  };
35765
35765
  }, [
35766
35766
  e,
35767
- T,
35768
- D
35769
- ]), k = (0, P.useRef)(O), A = (0, P.useMemo)(() => Zn(), []), j = (0, P.useMemo)(() => {
35770
- if (!n || !w) return null;
35767
+ k,
35768
+ A
35769
+ ]), M = (0, P.useRef)(j), ee = (0, P.useMemo)(() => Zn(), []), N = (0, P.useMemo)(() => {
35770
+ if (!n || !D) return null;
35771
35771
  let e = n.rootLayer.children, t = E(e) ? e.filter((e) => e.name.toLowerCase() !== "areamap") : e;
35772
35772
  return {
35773
35773
  ...n,
@@ -35776,14 +35776,14 @@ var Fr = () => m.overlayPosition === "bottom", Ir = f(function({ viewMode: e })
35776
35776
  children: t
35777
35777
  },
35778
35778
  background: void 0,
35779
- staticTransform: w
35779
+ staticTransform: D
35780
35780
  };
35781
- }, [n, w]), te = (0, P.useRef)(null);
35781
+ }, [n, D]), te = (0, P.useRef)(null);
35782
35782
  (0, P.useEffect)(() => {
35783
- te.current = j;
35784
- }, [j]), (0, P.useEffect)(() => {
35785
- if (j) return pe(j), () => pe(void 0);
35786
- }, [j]);
35783
+ te.current = N;
35784
+ }, [N]), (0, P.useEffect)(() => {
35785
+ if (N) return pe(N), () => pe(void 0);
35786
+ }, [N]);
35787
35787
  let { mapDimAnimatorRef: ne, venueDimAnimatorRef: ie, applyDimmingTarget: ae, handleMapDimLayerReady: oe } = $n(o, te);
35788
35788
  (0, P.useEffect)(() => {
35789
35789
  if (!g) return;
@@ -35794,8 +35794,8 @@ var Fr = () => m.overlayPosition === "bottom", Ir = f(function({ viewMode: e })
35794
35794
  return;
35795
35795
  }
35796
35796
  d.current = n;
35797
- let i = (0, De.default)(v.backgroundColor === "none" ? "#ebebeb" : v.backgroundColor).string();
35798
- r(M(t, y(), i));
35797
+ let i = (0, De.default)(T.backgroundColor === "none" ? "#ebebeb" : T.backgroundColor).string();
35798
+ r(x(t, w(), i));
35799
35799
  }).catch((t) => {
35800
35800
  e || console.warn("Maplibre scene configuration failed.", t);
35801
35801
  });
@@ -35822,41 +35822,41 @@ var Fr = () => m.overlayPosition === "bottom", Ir = f(function({ viewMode: e })
35822
35822
  equals: l.structural,
35823
35823
  fireImmediately: !0
35824
35824
  });
35825
- e.once("remove", r), e.once("idle", () => Xn(e, k.current));
35825
+ e.once("remove", r), e.once("idle", () => Xn(e, M.current));
35826
35826
  let i = Nr(e, (n = g == null ? void 0 : g.bearing) == null ? e.getBearing() : n, () => {
35827
35827
  var e;
35828
- return (e = k.current.pitch) == null ? 0 : e;
35828
+ return (e = M.current.pitch) == null ? 0 : e;
35829
35829
  });
35830
- h.current = i, p.maplibreStore.setCameraPort(i), p.fp.getCenterCoordinates = () => ue(s.current), ae({ immediate: !0 }), N(), p.layerStore.layersLoaded = !0, p.fp.onFpConfigured && p.fp.onFpConfigured(), m.sceneDefReady = !0, t();
35830
+ h.current = i, p.maplibreStore.setCameraPort(i), p.fp.getCenterCoordinates = () => ue(s.current), ae({ immediate: !0 }), re(), p.layerStore.layersLoaded = !0, p.fp.onFpConfigured && p.fp.onFpConfigured(), m.sceneDefReady = !0, t();
35831
35831
  }, [ae, g]);
35832
35832
  (0, P.useEffect)(() => {
35833
- k.current = O, Xn(o.current, O);
35834
- }, [O]), er(i, o), pr(j, s), fr(i, o, g), nr(j, o, g), En(o, g, j), ye({
35833
+ M.current = j, Xn(o.current, j);
35834
+ }, [j]), er(i, o), pr(N, s), fr(i, o, g), nr(N, o, g), En(o, g, N), ye({
35835
35835
  enabled: p.layerStore.layersLoaded && m.buildRoute,
35836
- scene: j == null ? void 0 : j
35836
+ scene: N == null ? void 0 : N
35837
35837
  });
35838
- let ce = (t = ee.busRoutes) != null && t;
35838
+ let ce = (t = S.busRoutes) != null && t;
35839
35839
  Ce({
35840
35840
  permission: p.layerStore.layersLoaded && ce,
35841
- scene: j == null ? void 0 : j,
35842
- dataJsonUrl: `https://${jr}/v1/routes?expo=${v.EXPO}`,
35843
- websocketUrl: `wss://${jr}/locations?expo=${v.EXPO}`
35841
+ scene: N == null ? void 0 : N,
35842
+ dataJsonUrl: `https://${jr}/v1/routes?expo=${T.EXPO}`,
35843
+ websocketUrl: `wss://${jr}/locations?expo=${T.EXPO}`
35844
35844
  });
35845
35845
  let le = (0, P.useCallback)((e) => {
35846
35846
  console.warn("Maplibre map failed to load; falling back to floorplan mode.", e), p.maplibreStore.deactivateMaplibre();
35847
35847
  }, []);
35848
- if (!g || !C || !w || !j) return null;
35848
+ if (!g || !C || !D || !N) return null;
35849
35849
  let de = `${C.center.join(",")}:${C.bearing}:${C.zoom}`;
35850
35850
  return /* @__PURE__ */ (0, Wt.jsxs)(an, {
35851
- sceneDef: j,
35851
+ sceneDef: N,
35852
35852
  geoConfig: C,
35853
- tileSource: A,
35854
- mapOptions: O,
35853
+ tileSource: ee,
35854
+ mapOptions: j,
35855
35855
  debug: c,
35856
35856
  onMapReady: se,
35857
35857
  onMapDimLayerReady: oe,
35858
35858
  onMapLoadError: le,
35859
- onPointerMissed: re,
35859
+ onPointerMissed: O,
35860
35860
  children: [/* @__PURE__ */ (0, Wt.jsx)(ge, {}), c && /* @__PURE__ */ (0, Wt.jsx)(Se, { canvas: s })]
35861
35861
  }, de);
35862
35862
  });