@expofp/floorplan 3.7.2 → 3.7.4

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 (75) hide show
  1. package/dist/browser/Button-aO_HokSj.js +204 -0
  2. package/dist/browser/{CookieConsent-CkkD8OHp.js → CookieConsent-BU0G4gg0.js} +8 -8
  3. package/dist/browser/{Debug-BrHTtyi7.js → Debug-KQpdRJNF.js} +8 -7
  4. package/dist/browser/{Demo-CSTu7D1l.js → Demo-MgosITXW.js} +12 -11
  5. package/dist/browser/{Free-AIxncv0_.js → Free-Cjw8czsd.js} +12 -11
  6. package/dist/browser/{Gallery-DUrcB2Hy.js → Gallery-B44SQVmW.js} +10 -10
  7. package/dist/browser/{GpsLoader-pgJ3wuc6.js → GpsLoader-CsquDv0q.js} +30 -29
  8. package/dist/browser/KioskStore-CmfnbNW2.js +235 -0
  9. package/dist/browser/{MaplibreAdapter-D4hkJUuG.js → MaplibreAdapter-D1SHFdBf.js} +109 -108
  10. package/dist/browser/{Modal-BmKq1A8F.js → Modal-ByxKticO.js} +10 -10
  11. package/dist/browser/{PermissionNotice-DxFR3SY4.js → PermissionNotice-uV0eU__u.js} +7 -7
  12. package/dist/browser/{SetKioskMode-C2BbFaaM.js → SetKioskMode-Bo-NIDqb.js} +19 -18
  13. package/dist/browser/ShowKiosk-YEhx2mBF.js +27 -0
  14. package/dist/browser/{TouchHand-B7Gid0ls.js → TouchHand-DP0lpX80.js} +4 -4
  15. package/dist/browser/{ViewerMenuPanel-CdYO6Ot1.js → ViewerMenuPanel-D7jBA4RW.js} +19 -18
  16. package/dist/browser/{add-debug-secret-listener-Bc2yTTBY.js → add-debug-secret-listener-BEnYBbzM.js} +1 -1
  17. package/dist/browser/{boolean-editor-aHLubje4.js → boolean-editor-DQhkQ0fL.js} +9 -9
  18. package/dist/browser/{bootIntercom-CqV4IGcS.js → bootIntercom-CJo2kE-M.js} +3 -3
  19. package/dist/browser/{browser-BDLTg20Y.js → browser-DYIvO46m.js} +2 -2
  20. package/dist/browser/bundle.json +61 -58
  21. package/dist/browser/{classnames-ngmqxqQM.js → classnames-C5yzF4HX.js} +2 -2
  22. package/dist/browser/{client-sAA6D0bl.js → client-DfLygbSM.js} +4 -4
  23. package/dist/browser/{components-DxUnx2fx.js → components-BIXJFvok.js} +1666 -1665
  24. package/dist/browser/{createWayfinding-BeI3-x8g.js → createWayfinding-C_0oMFs1.js} +348 -348
  25. package/dist/browser/{debug-overlay-hLm6UgxA.js → debug-overlay-46IP0vsS.js} +10 -10
  26. package/dist/browser/{debug-ui-DZ3tn3fo.js → debug-ui-feLw_onf.js} +6 -6
  27. package/dist/browser/{dist-RBsN5IVo.js → dist-BHUDHZP4.js} +3 -3
  28. package/dist/browser/{dist-B09t6czH.js → dist-ExsqDvEL.js} +5 -5
  29. package/dist/browser/{dist-CRcolEwF.js → dist-im0AIvbY.js} +6 -6
  30. package/dist/browser/{efp-debug-init-B5ItQkLj.js → efp-debug-init-DGPhG_bU.js} +2 -2
  31. package/dist/browser/{enum-editor-CUh-_kSv.js → enum-editor-C4ySP3nc.js} +11 -11
  32. package/dist/browser/{event-not-found-DFg5mwbq.js → event-not-found-DG6AnCnV.js} +1 -1
  33. package/dist/browser/{exports-DbA4--a7.js → exports-DmpoD0fr.js} +1 -1
  34. package/dist/browser/{favicon-ruW3WAVt.js → favicon-Br5ml5iu.js} +1 -1
  35. package/dist/browser/{fetch-retry.umd-CGE75NS5.js → fetch-retry.umd-bkAOBUt_.js} +2 -2
  36. package/dist/browser/{flex-Ompowu3M.js → flex-Dwpw7MGM.js} +5 -5
  37. package/dist/browser/{floorplan.loader-l2aNftbI.js → floorplan.loader-CPmefcXe.js} +661 -698
  38. package/dist/browser/{floorplan.ready-CI29paDM.js → floorplan.ready-oUOSRm6R.js} +344 -305
  39. package/dist/browser/{fuse-BEjRK6fK.js → fuse-DP7UCs2S.js} +2 -2
  40. package/dist/browser/{i18n-Cv7u46Kc.js → i18n-Cj30oNjj.js} +3 -3
  41. package/dist/browser/index.js +11 -11
  42. package/dist/browser/{storage-CveWsSQC.js → is-debug-B8x-fro_.js} +7 -24
  43. package/dist/browser/{jsx-runtime-Cd-5cs8d.js → jsx-runtime-D7QyoJp1.js} +2 -2
  44. package/dist/browser/{lib-CVT3RpU0.js → lib-B8nz5HHo.js} +4 -4
  45. package/dist/browser/{main-B7rO04Ru.js → main-BwVw9SUe.js} +1 -1
  46. package/dist/browser/{mobx-CmXg9qBa.js → mobx-D8yc9fAI.js} +4 -4
  47. package/dist/browser/{particles.min-5m7QV5vA.js → particles.min-CUAgfec9.js} +2 -2
  48. package/dist/browser/{prop-types-fzqk8XTC.js → prop-types-CvfWKQCy.js} +2 -2
  49. package/dist/browser/{react-68YGwxL1.js → react-C2tVGrqu.js} +2 -2
  50. package/dist/browser/{react-dom-CpUFygXt.js → react-dom-B_sXID-1.js} +3 -3
  51. package/dist/browser/{reset-all-settings-6gkdxdE4.js → reset-all-settings-Be_n1oxb.js} +7 -7
  52. package/dist/browser/{rolldown-runtime-CBPdtkTI.js → rolldown-runtime-DVIs1q9q.js} +1 -1
  53. package/dist/browser/{settings-vKSgvNe6.js → settings-B8veQbld.js} +2 -2
  54. package/dist/browser/{settings-item-BkC5gNNZ.js → settings-item-CdMRi2N0.js} +6 -6
  55. package/dist/browser/{store-C9IczNWg.js → store-CtVf7eNc.js} +6451 -6598
  56. package/dist/browser/{string-editor-DxCmy8-a.js → string-editor-gjrsepUM.js} +7 -7
  57. package/dist/browser/{theme-CD1xwI4C.js → theme-B0UtMBz_.js} +8 -8
  58. package/dist/browser/{ui-CAdbLhWa.js → ui-BBu8YAw8.js} +8 -8
  59. package/dist/browser/{useRenderTarget-CHkfvzge.js → useRenderTarget-CiijuasV.js} +5 -5
  60. package/dist/esm/components/Kiosk/KioskStore.d.ts +8 -7
  61. package/dist/esm/components/Kiosk/KioskStore.js +1 -1
  62. package/dist/esm/components/Kiosk/SetKiosk/constants.d.ts +1 -0
  63. package/dist/esm/components/Kiosk/SetKiosk/constants.js +1 -1
  64. package/dist/esm/components/Kiosk/SetKiosk/types.d.ts +1 -1
  65. package/dist/esm/components/Kiosk/kioskApi.d.ts +4 -0
  66. package/dist/esm/components/Kiosk/kioskApi.js +1 -0
  67. package/dist/esm/floorplan.loader.js +1 -1
  68. package/dist/esm/floorplan.ready.js +1 -1
  69. package/dist/esm/store/index.js +1 -1
  70. package/dist/esm/tools/track-event.js +1 -1
  71. package/package.json +3 -3
  72. package/dist/browser/KioskStore-D5MdQYvR.js +0 -232
  73. package/dist/browser/ShowKiosk-9IO_9oCi.js +0 -26
  74. package/dist/esm/components/Kiosk/requestKioskKey.d.ts +0 -3
  75. package/dist/esm/components/Kiosk/requestKioskKey.js +0 -1
@@ -1,20 +1,20 @@
1
1
  (function() {
2
2
  try {
3
3
  var e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
4
- e.SENTRY_RELEASE = { id: "3.7.2" };
4
+ e.SENTRY_RELEASE = { id: "3.7.4" };
5
5
  var t = new e.Error().stack;
6
- t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "0868e146-c3fd-4723-85db-71df28e4210e", e._sentryDebugIdIdentifier = "sentry-dbid-0868e146-c3fd-4723-85db-71df28e4210e");
6
+ t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "3ca84684-6943-4af2-a7c7-4eb383a56d69", e._sentryDebugIdIdentifier = "sentry-dbid-3ca84684-6943-4af2-a7c7-4eb383a56d69");
7
7
  } catch {}
8
8
  })();
9
- import { r as e } from "./rolldown-runtime-CBPdtkTI.js";
10
- import { t } from "./react-68YGwxL1.js";
11
- import { c as n } from "./storage-CveWsSQC.js";
12
- import { _ as r, ct as i, f as a, j as o } from "./i18n-Cv7u46Kc.js";
13
- import { $ as s, At as c, B as l, Bt as u, Ct as d, F as f, Ft as p, G as m, Gt as h, H as g, I as _, It as v, J as y, K as b, Kt as x, Lt as S, Nt as C, Ot as w, Pt as T, Q as E, R as D, Tt as O, U as k, V as A, Vt as ee, W as j, X as M, Z as te, an as ne, at as re, bt as ie, c as ae, cn as oe, en as se, et as ce, gt as le, i as N, jt as ue, kt as P, nt as de, o as F, on as fe, q as pe, rn as me, rt as he, s as I, sn as L, t as R, tt as ge, ut as z, vt as _e, wt as ve, z as ye, zt as be } from "./store-C9IczNWg.js";
9
+ import { r as e } from "./rolldown-runtime-DVIs1q9q.js";
10
+ import { t } from "./react-C2tVGrqu.js";
11
+ import { n } from "./is-debug-B8x-fro_.js";
12
+ import { _ as r, ct as i, f as a, j as o } from "./i18n-Cj30oNjj.js";
13
+ import { $ as s, B as c, Bt as l, Dt as u, F as d, Ft as f, G as p, Gt as m, H as h, I as g, J as _, L as v, Lt as y, M as b, Mt as x, N as S, Nt as C, Ot as w, Pt as T, Q as E, R as D, Rt as O, St as k, U as A, Ut as j, V as M, Vt as N, W as ee, Wt as P, X as te, Xt as ne, Y as re, Yt as F, Z as ie, bt as ae, c as oe, dn as se, et as ce, fn as le, i as I, in as ue, kt as de, ln as fe, nt as pe, o as L, q as me, s as R, sn as he, st as z, t as B, un as ge, wt as _e, z as ve, zt as ye } from "./store-CtVf7eNc.js";
14
14
  //#region src/wayfinding/layers.ts
15
- var xe = "wf-points", Se = "wf-trail-points", Ce = "wf-lines", we = "wf-lines-animated", Te = "wf-current-position", Ee = "_selected", De = "markers";
16
- function Oe(e) {
17
- let t = [], n = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map(), a = [], o = e.scene.rootLayer.children.find((e) => e.name === De);
15
+ var be = "wf-points", xe = "wf-trail-points", Se = "wf-lines", Ce = "wf-lines-animated", we = "wf-current-position", Te = "_selected", Ee = "markers";
16
+ function De(e) {
17
+ let t = [], n = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map(), a = [], o = e.scene.rootLayer.children.find((e) => e.name === Ee);
18
18
  async function s(e) {
19
19
  let t = [];
20
20
  e.forEach((e) => {
@@ -35,153 +35,153 @@ function Oe(e) {
35
35
  t.push(l), c.src = i, c.crossOrigin = "anonymous";
36
36
  }), await Promise.all(t);
37
37
  }
38
- let c = (e) => `marker-ptScaleHandlers-${e.id}`, l = (e) => `marker-rollHandlers-${e.id}`, f = (t, n) => {
38
+ let c = (e) => `marker-ptScaleHandlers-${e.id}`, l = (e) => `marker-rollHandlers-${e.id}`, d = (t, n) => {
39
39
  e.onPtScale(n, (e) => {
40
40
  let { center: n, rotation: r } = t.bounds, { width: i, height: a } = t.source;
41
- return t.bounds = u(n.x, n.y, i, a, e, r), t;
41
+ return t.bounds = P(n.x, n.y, i, a, e, r), t;
42
42
  });
43
- }, p = (t, n) => {
43
+ }, f = (t, n) => {
44
44
  e.onRoll(n, (e) => (t.bounds.rotation = e, t));
45
45
  };
46
- function m() {
47
- let t = F.routeStore.markersData.markers;
46
+ function p() {
47
+ let t = L.routeStore.markersData.markers;
48
48
  if (!t.length) return;
49
49
  a = [];
50
- let r = e.scale, s = d(e.angle);
50
+ let r = e.scale, s = u(e.angle);
51
51
  t.forEach((e) => {
52
52
  var t, o;
53
53
  let c = n.get(e.icon);
54
54
  if (!c) return;
55
- let l = c.scale || window.devicePixelRatio, d = e.icon;
56
- if (!i.has(d)) {
57
- let e = h(c.img, c.width, c.height, l);
58
- i.set(d, e);
55
+ let l = c.scale || window.devicePixelRatio, u = e.icon;
56
+ if (!i.has(u)) {
57
+ let e = F(c.img, c.width, c.height, l);
58
+ i.set(u, e);
59
59
  }
60
- let f = i.get(d), p = n.get(e.selectedIcon), m = e.selectedIcon;
61
- if (!i.has(m)) {
62
- let e = h(p.img, p.width, p.height, l);
63
- i.set(m, e);
60
+ let d = i.get(u), f = n.get(e.selectedIcon), p = e.selectedIcon;
61
+ if (!i.has(p)) {
62
+ let e = F(f.img, f.width, f.height, l);
63
+ i.set(p, e);
64
64
  }
65
- let g = i.get(m), _ = (t = (o = N.findLayer(e.z)) == null ? void 0 : o.visible) == null ? !0 : t, v = u(e.x, e.y, f.width, f.height, r, s), y = u(e.x, e.y, g.width, g.height, r, s), b;
65
+ let m = i.get(p), h = (t = (o = I.findLayer(e.z)) == null ? void 0 : o.visible) == null ? !0 : t, g = P(e.x, e.y, d.width, d.height, r, s), _ = P(e.x, e.y, m.width, m.height, r, s), v;
66
66
  switch (e.position) {
67
67
  case "lefttop":
68
- b = [0, 0];
68
+ v = [0, 0];
69
69
  break;
70
70
  case "centertop":
71
- b = [.5, 0];
71
+ v = [.5, 0];
72
72
  break;
73
73
  case "centerbottom":
74
- b = [.5, 1];
74
+ v = [.5, 1];
75
75
  break;
76
- default: b = [.5, .5];
76
+ default: v = [.5, .5];
77
77
  }
78
- let x = {
79
- ...P(f, v, {
80
- hidden: !_,
81
- origin: b
78
+ let y = {
79
+ ...C(d, g, {
80
+ hidden: !h,
81
+ origin: v
82
82
  }),
83
83
  id: e.id,
84
84
  scale: l
85
- }, S = {
86
- ...P(g, y, {
87
- hidden: !(_ && e.active),
88
- origin: b
85
+ }, b = {
86
+ ...C(m, _, {
87
+ hidden: !(h && e.active),
88
+ origin: v
89
89
  }),
90
- id: `${e.id}${Ee}`,
90
+ id: `${e.id}${Te}`,
91
91
  scale: l
92
92
  };
93
- a.push(x, S);
93
+ a.push(y, b);
94
94
  }), o.children = a, a.forEach((e) => {
95
- f(e, c(e)), p(e, l(e));
95
+ d(e, c(e)), f(e, l(e));
96
96
  });
97
97
  }
98
- function g() {
98
+ function m() {
99
99
  a.forEach((t) => {
100
100
  e.ptScaleRegistry.unregisterByName(c(t)), e.rollRegistry.unregisterByName(l(t));
101
101
  }), o.children = [], a = [];
102
102
  }
103
- function _() {
104
- let e = F.routeStore.markersData.markers;
103
+ function h() {
104
+ let e = L.routeStore.markersData.markers;
105
105
  e.length && e.forEach((e) => {
106
106
  var t, n;
107
- let r = a.find((t) => t.id === e.id), i = a.find((t) => t.id === `${e.id}${Ee}`);
107
+ let r = a.find((t) => t.id === e.id), i = a.find((t) => t.id === `${e.id}${Te}`);
108
108
  if (!r) return;
109
- let o = (t = (n = N.findLayer(e.z)) == null ? void 0 : n.visible) == null ? !0 : t;
109
+ let o = (t = (n = I.findLayer(e.z)) == null ? void 0 : n.visible) == null ? !0 : t;
110
110
  e.active ? (r.hidden = !0, i.hidden = !(o && e.active)) : (r.hidden = !o, i.hidden = !0);
111
111
  });
112
112
  }
113
- return t.push(r(() => [F.routeStore.selectedMarkers, F.layerStore.visible], () => {
114
- if (!F.routeStore.markersData.markers.length) {
115
- g(), e.update(o);
113
+ return t.push(r(() => [L.routeStore.selectedMarkers, L.layerStore.visible], () => {
114
+ if (!L.routeStore.markersData.markers.length) {
115
+ m(), e.update(o);
116
116
  return;
117
117
  }
118
- _(), e.update(...a);
119
- })), t.push(r(() => F.routeStore.markersData.markers, () => {
120
- s(F.routeStore.markersData.icons).then(() => {
121
- m(), e.update(o);
118
+ h(), e.update(...a);
119
+ })), t.push(r(() => L.routeStore.markersData.markers, () => {
120
+ s(L.routeStore.markersData.icons).then(() => {
121
+ p(), e.update(o);
122
122
  });
123
123
  }, { fireImmediately: !0 })), function() {
124
124
  t.forEach((e) => e()), t.length = 0;
125
125
  };
126
126
  }
127
- function ke(e, t, n) {
128
- for (let r of F.routeStore.markersData.markers) {
129
- let i = F.routeStore.markersData.icons.find((e) => e.name === r.icon);
127
+ function Oe(e, t, n) {
128
+ for (let r of L.routeStore.markersData.markers) {
129
+ let i = L.routeStore.markersData.icons.find((e) => e.name === r.icon);
130
130
  if (!i) continue;
131
131
  let a = i.width * n * devicePixelRatio, o = i.height * n * devicePixelRatio;
132
- if (Ae(e, t, r.x, r.y, a, o)) {
133
- let e = F.layerStore.findLayer(r.z);
132
+ if (ke(e, t, r.x, r.y, a, o)) {
133
+ let e = L.layerStore.findLayer(r.z);
134
134
  if (!e || e && e.visible) return r;
135
135
  }
136
136
  }
137
137
  return null;
138
138
  }
139
- function Ae(e, t, n, r, i, a) {
139
+ function ke(e, t, n, r, i, a) {
140
140
  let o = e >= n - i && e <= n + i, s = t >= r - a && t <= r + a;
141
141
  return o && s;
142
142
  }
143
143
  //#endregion
144
144
  //#region src/components/Map/traffic/trafficLayers.ts
145
- var je = "traffic_route", Me = "traffic_route_stop", Ne = "traffic_vehicles", Pe = "build_route_lines", Fe = "build_route_dots", Ie = 5;
146
- function Le() {
145
+ var Ae = "traffic_route", je = "traffic_route_stop", Me = "traffic_vehicles", Ne = "build_route_lines", Pe = "build_route_dots", Fe = 5;
146
+ function Ie() {
147
147
  let e = [];
148
- for (let t = 0; t < Ie; t++) e.push({
149
- name: Re(t),
148
+ for (let t = 0; t < Fe; t++) e.push({
149
+ name: Le(t),
150
150
  children: []
151
151
  }), e.push({
152
- name: ze(t),
152
+ name: Re(t),
153
153
  children: [],
154
154
  interactive: !0
155
155
  });
156
156
  return e.push({
157
- name: Ne,
157
+ name: Me,
158
158
  children: [],
159
159
  interactive: !0
160
160
  }), e.push({
161
- name: Pe,
161
+ name: Ne,
162
162
  children: []
163
163
  }), e.push({
164
- name: Fe,
164
+ name: Pe,
165
165
  children: [],
166
166
  interactive: !0
167
167
  }), e;
168
168
  }
169
+ function Le(e) {
170
+ return `${Ae}_${e + 1}`;
171
+ }
169
172
  function Re(e) {
170
173
  return `${je}_${e + 1}`;
171
174
  }
172
- function ze(e) {
173
- return `${Me}_${e + 1}`;
175
+ function ze() {
176
+ return RegExp(`^${Ae}_\\d+$`);
174
177
  }
175
178
  function Be() {
176
179
  return RegExp(`^${je}_\\d+$`);
177
180
  }
178
- function Ve() {
179
- return RegExp(`^${Me}_\\d+$`);
180
- }
181
181
  //#endregion
182
182
  //#region src/utils/geometry.ts
183
- var He = /* @__PURE__ */ e(oe(), 1);
184
- function Ue(e, t, n) {
183
+ var Ve = /* @__PURE__ */ e(le(), 1);
184
+ function He(e, t, n) {
185
185
  let [r, i] = n[0], [a, o] = n[1], [s, c] = n[2], l = (o - c) * (r - s) + (s - a) * (i - c);
186
186
  if (l === 0) return !1;
187
187
  let u = ((o - c) * (e - s) + (s - a) * (t - c)) / l, d = ((c - i) * (e - s) + (r - s) * (t - c)) / l, f = 1 - u - d;
@@ -189,19 +189,19 @@ function Ue(e, t, n) {
189
189
  }
190
190
  //#endregion
191
191
  //#region src/components/Map/drawing/config/config-booth-badge.ts
192
- var We = .5, Ge = .3, Ke = 15, qe = 24, Je = 30, Ye = 12, Xe = .8, Ze = document.createElement("canvas").getContext("2d");
193
- function Qe(e) {
194
- return e.length <= Ke ? e : e.slice(0, Ke - 1) + "…";
192
+ var Ue = .5, We = .3, Ge = 15, Ke = 24, qe = 30, Je = 12, Ye = .8, Xe = document.createElement("canvas").getContext("2d");
193
+ function Ze(e) {
194
+ return e.length <= Ge ? e : e.slice(0, Ge - 1) + "…";
195
195
  }
196
- function $e(e) {
196
+ function Qe(e) {
197
197
  var t, n;
198
198
  if (!((t = e.paths) != null && t.length)) return [];
199
199
  let r = ((n = e.layer) == null ? void 0 : n.name) || "", i = [];
200
- for (let t of e.paths) for (let e of me(t.index, r)) i.push(e);
200
+ for (let t of e.paths) for (let e of he(t.index, r)) i.push(e);
201
201
  return i;
202
202
  }
203
- function et(e) {
204
- let t = $e(e);
203
+ function $e(e) {
204
+ let t = Qe(e);
205
205
  if (!t.length) return null;
206
206
  let n = Infinity, r = Infinity, i = -Infinity, a = -Infinity;
207
207
  for (let e of t) for (let t of e) t[0] < n && (n = t[0]), t[1] < r && (r = t[1]), t[0] > i && (i = t[0]), t[1] > a && (a = t[1]);
@@ -212,25 +212,25 @@ function et(e) {
212
212
  h: a - r
213
213
  } : null;
214
214
  }
215
- function B(e, t, n) {
216
- for (let r of n) if (Ue(e, t, r)) return !0;
215
+ function V(e, t, n) {
216
+ for (let r of n) if (He(e, t, r)) return !0;
217
217
  return !1;
218
218
  }
219
- function tt(e, t, n, r, i, a) {
220
- if (!e.length || !B(t, n, e)) return a;
219
+ function et(e, t, n, r, i, a) {
220
+ if (!e.length || !V(t, n, e)) return a;
221
221
  let o = 0, s = a;
222
222
  for (let a = 0; a < 10; a++) {
223
223
  let a = (o + s) / 2, c = r * a, l = i * a;
224
- B(t + c, n, e) && B(t, n + l, e) && B(t + c, n + l, e) ? o = a : s = a;
224
+ V(t + c, n, e) && V(t, n + l, e) && V(t + c, n + l, e) ? o = a : s = a;
225
225
  }
226
226
  return o;
227
227
  }
228
- function nt(e) {
228
+ function tt(e) {
229
229
  var t;
230
- return (t = et(e)) == null ? e.rect : t;
230
+ return (t = $e(e)) == null ? e.rect : t;
231
231
  }
232
- function rt(e, t, n, r) {
233
- let i = nt(e);
232
+ function nt(e, t, n, r) {
233
+ let i = tt(e);
234
234
  if (t.length) {
235
235
  let e = /* @__PURE__ */ new Set(), r = null, a = Infinity;
236
236
  for (let o of t) for (let s of o) {
@@ -238,7 +238,7 @@ function rt(e, t, n, r) {
238
238
  if (e.has(o)) continue;
239
239
  e.add(o);
240
240
  let c = s[0] + n, l = s[1] + n;
241
- if (B(c, l, t)) {
241
+ if (V(c, l, t)) {
242
242
  let e = c - i.x1 + (l - i.y1);
243
243
  e < a && (a = e, r = {
244
244
  x: c,
@@ -259,57 +259,57 @@ function rt(e, t, n, r) {
259
259
  y: e.rect.cy + l * c + u * s
260
260
  };
261
261
  }
262
- function V(e) {
262
+ function H(e) {
263
263
  return e && e !== "none" ? e : void 0;
264
264
  }
265
- function it(e) {
265
+ function rt(e) {
266
266
  var t;
267
- let n = V(e.borderColor) || V(fe.boothBorderColor) || fe.colors.booths.default;
268
- return ((t = e.paths) == null ? void 0 : t.length) > 1 && V(e.paths[e.paths.length - 1].color) || n;
269
- }
270
- function at(e, t) {
271
- let n = Qe(t.title || t.name), i = it(t), a = ae((0, He.default)(i).hex()), o = window.devicePixelRatio || 1, s = ve();
272
- Ze.font = x(Je, s);
273
- let c = Ze.measureText(n).width, l = Math.ceil(c + Ye * 2), u = (t.borderWidth || R.borderWidth) / 2, d = l * Xe, f = 54 * Xe, m = t.rotate ? -t.rotate : 0, h = t.rect.w, g = t.rect.h, _ = Math.min(h > 0 ? h * We / d : Infinity, g > 0 ? g * Ge / f : Infinity), v = $e(t), { x: y, y: b } = rt(t, v, u, m), S = tt(v, y, b, d, f, _), w = Math.cos(m), E = Math.sin(m), D = (e, t) => {
274
- let n = e / 2, r = t / 2, i = y + n * w - r * E, a = b + n * E + r * w;
275
- return new ee({
267
+ let n = H(e.borderColor) || H(ge.boothBorderColor) || ge.colors.booths.default;
268
+ return ((t = e.paths) == null ? void 0 : t.length) > 1 && H(e.paths[e.paths.length - 1].color) || n;
269
+ }
270
+ function it(e, t) {
271
+ let n = Ze(t.title || t.name), i = rt(t), a = oe((0, Ve.default)(i).hex()), o = window.devicePixelRatio || 1, s = w();
272
+ Xe.font = ne(qe, s);
273
+ let c = Xe.measureText(n).width, l = Math.ceil(c + Je * 2), u = (t.borderWidth || B.borderWidth) / 2, d = l * Ye, f = 54 * Ye, p = t.rotate ? -t.rotate : 0, h = t.rect.w, g = t.rect.h, _ = Math.min(h > 0 ? h * Ue / d : Infinity, g > 0 ? g * We / f : Infinity), v = Qe(t), { x: b, y: x } = nt(t, v, u, p), S = et(v, b, x, d, f, _), C = Math.cos(p), T = Math.sin(p), E = (e, t) => {
274
+ let n = e / 2, r = t / 2, i = b + n * C - r * T, a = x + n * T + r * C;
275
+ return new m({
276
276
  x: i - n,
277
277
  y: a - r
278
278
  }, {
279
279
  x: i + n,
280
280
  y: a + r
281
- }, m);
282
- }, k = (e) => {
281
+ }, p);
282
+ }, D = (e) => {
283
283
  let t = Math.min(e, S);
284
- return D(d * t, f * t);
285
- }, A = O(s, e.fontUrls), j = C(D(1, 1), i);
286
- j.hidden = !0, j.dim = t.skipDim ? !1 : void 0;
287
- let M = T(p([[n], []], a, 0, [A, A]), D(1, 1), [0, 0], {
284
+ return E(d * t, f * t);
285
+ }, k = de(s, e.fontUrls), A = y(E(1, 1), i);
286
+ A.hidden = !0, A.dim = t.skipDim ? !1 : void 0;
287
+ let j = O(ye([[n], []], a, 0, [k, k]), E(1, 1), [0, 0], {
288
288
  horizontal: "center",
289
289
  vertical: "center"
290
290
  });
291
- M.hidden = !0, M.dim = t.skipDim ? !1 : void 0;
292
- let te = () => !!(t.layer && !t.layer.visible);
291
+ j.hidden = !0, j.dim = t.skipDim ? !1 : void 0;
292
+ let M = () => !!(t.layer && !t.layer.visible);
293
293
  return r(() => t.skipDim, (t) => {
294
- j.dim = t ? !1 : void 0, M.dim = t ? !1 : void 0, e.update(j, M);
294
+ A.dim = t ? !1 : void 0, j.dim = t ? !1 : void 0, e.update(A, j);
295
295
  }), r(() => {
296
296
  var e, n;
297
297
  return (e = (n = t.layer) == null ? void 0 : n.visible) == null ? !0 : e;
298
298
  }, (t) => {
299
- j.hidden = !t, M.hidden = !t, e.update(j, M);
300
- }), e.onPtScale(`badge-bg-${t.id}`, (e) => (j.shape = k(e), j.hidden = te(), j)), e.onPtScale(`badge-text-${t.id}`, (e) => {
299
+ A.hidden = !t, j.hidden = !t, e.update(A, j);
300
+ }), e.onPtScale(`badge-bg-${t.id}`, (e) => (A.shape = D(e), A.hidden = M(), A)), e.onPtScale(`badge-text-${t.id}`, (e) => {
301
301
  let t = Math.min(e, S);
302
- return M.lines[0].fontSize = qe / o * t, M.bounds = k(e), M.hidden = te(), M;
302
+ return j.lines[0].fontSize = Ke / o * t, j.bounds = D(e), j.hidden = M(), j;
303
303
  }), {
304
- bg: j,
305
- text: M
304
+ bg: A,
305
+ text: j
306
306
  };
307
307
  }
308
- function ot(e, t, n) {
309
- if (ne.hideExhibitorBoothNumber) return null;
308
+ function at(e, t, n) {
309
+ if (fe.hideExhibitorBoothNumber) return null;
310
310
  let r = [], i = [];
311
- for (let t of n) if (t instanceof se && t.noLabels && !I.hideLogoInBooth && t.exhibitors.some((e) => e.logoInBooth && e.logo)) {
312
- let { bg: n, text: a } = at(e, t);
311
+ for (let t of n) if (t instanceof ue && t.noLabels && !R.hideLogoInBooth && t.exhibitors.some((e) => e.logoInBooth && e.logo)) {
312
+ let { bg: n, text: a } = it(e, t);
313
313
  r.push(n), i.push(a);
314
314
  }
315
315
  return r.length ? {
@@ -325,25 +325,25 @@ function ot(e, t, n) {
325
325
  }
326
326
  //#endregion
327
327
  //#region src/components/Map/drawing/config/config-all.ts
328
- function st(e) {
329
- let { layers: t, defaultLayer: n } = F.layerStore;
328
+ function ot(e) {
329
+ let { layers: t, defaultLayer: n } = L.layerStore;
330
330
  if (n) {
331
331
  let e = [].concat(t), r = t.find((e) => e === n), i = t.indexOf(r);
332
332
  e.splice(i, 1), t = [r].concat(e);
333
333
  }
334
- let r = t.filter((e) => !e.rootParent).map((t) => ie(t, e));
334
+ let r = t.filter((e) => !e.rootParent).map((t) => _e(t, e));
335
335
  return Promise.all(r).then((t) => {
336
- let n = c(xe, [], {
336
+ let n = T(be, [], {
337
337
  dim: !1,
338
338
  interactive: !0
339
- }), r = c(Ce, [], { dim: !1 }), i = c(De, []), a = c(Se, [], { dim: !1 }), o = c(we, [], { dim: !1 }), s = c(Te, [], { dim: !1 }), l = [], u = [];
340
- for (let e of t.flat()) le(e.name) ? (e.dim = !1, u.push(e)) : l.push(e);
341
- let d = ot(e, "root", F.boothStore.booths);
339
+ }), r = T(Se, [], { dim: !1 }), i = T(Ee, []), a = T(xe, [], { dim: !1 }), o = T(Ce, [], { dim: !1 }), s = T(we, [], { dim: !1 }), c = [], l = [];
340
+ for (let e of t.flat()) ae(e.name) ? (e.dim = !1, l.push(e)) : c.push(e);
341
+ let u = at(e, "root", L.boothStore.booths);
342
342
  return [
343
+ ...c,
344
+ ...u ? [u] : [],
343
345
  ...l,
344
- ...d ? [d] : [],
345
- ...u,
346
- ...Le(),
346
+ ...Ie(),
347
347
  i,
348
348
  a,
349
349
  r,
@@ -355,7 +355,7 @@ function st(e) {
355
355
  }
356
356
  //#endregion
357
357
  //#region src/components/Map/traffic/UpdateQueue.ts
358
- var H = /* @__PURE__ */ e(t(), 1), ct = class {
358
+ var U = /* @__PURE__ */ e(t(), 1), st = class {
359
359
  constructor() {
360
360
  this.queue = [], this.isProcessing = !1, this.rafId = null, this.CHUNK_SIZE = 100, this.TIME_BUDGET = 4;
361
361
  }
@@ -397,7 +397,7 @@ var H = /* @__PURE__ */ e(t(), 1), ct = class {
397
397
  destroy() {
398
398
  this.rafId !== null && (cancelAnimationFrame(this.rafId), this.rafId = null), this.queue = [], this.isProcessing = !1;
399
399
  }
400
- }, U = 49, lt = `hsl(257, 76%, ${U}%)`, ut = `hsl(339.903, 82%, ${U}%)`, dt = `hsl(257, 76%, ${Math.round(U * 1.82)}%)`, W = 4, ft = W, pt = "U", mt = "R", ht = "S", gt = "P", _t = class {
400
+ }, W = 49, ct = `hsl(257, 76%, ${W}%)`, lt = `hsl(339.903, 82%, ${W}%)`, ut = `hsl(257, 76%, ${Math.round(W * 1.82)}%)`, G = 4, dt = G, ft = "U", pt = "R", mt = "S", ht = "P", gt = class {
401
401
  constructor() {
402
402
  this._state = [[]], this.index = 0, this.pointHashSet = /* @__PURE__ */ new Set(), this.locked = !1, this.storageKey = "expofp_build_route_state", this._selected = 0;
403
403
  }
@@ -436,10 +436,10 @@ var H = /* @__PURE__ */ e(t(), 1), ct = class {
436
436
  instruct() {
437
437
  this.log(`How to Build a Route:
438
438
  Add Point: Click on the map.
439
- Apply Smoothing: Press ${mt}.
440
- Apply Simplification: Press ${ht}.
441
- Undo: Press ${pt}.
442
- Enable/Disable Preview: Press ${gt}.
439
+ Apply Smoothing: Press ${pt}.
440
+ Apply Simplification: Press ${mt}.
441
+ Undo: Press ${ft}.
442
+ Enable/Disable Preview: Press ${ht}.
443
443
  `, 16);
444
444
  }
445
445
  applyChaikinSmoothing(e, t, n) {
@@ -533,68 +533,68 @@ Enable/Disable Preview: Press ${gt}.
533
533
  this._selected = Math.max(0, Math.min(e, this.points.length - 1));
534
534
  }
535
535
  };
536
- function vt({ enabled: e, rendererService: t }) {
537
- let n = (0, H.useRef)(!1), r = (0, H.useRef)(), i = (0, H.useMemo)(() => be(W, lt), []), a = (0, H.useMemo)(() => be(W, ut), []), o = (0, H.useMemo)(() => new _t(), []), s = (0, H.useRef)(new ct()), c = (0, H.useMemo)(() => {
536
+ function _t({ enabled: e, rendererService: t }) {
537
+ let n = (0, U.useRef)(!1), r = (0, U.useRef)(), i = (0, U.useMemo)(() => j(G, ct), []), a = (0, U.useMemo)(() => j(G, lt), []), o = (0, U.useMemo)(() => new gt(), []), s = (0, U.useRef)(new st()), c = (0, U.useMemo)(() => {
538
538
  if (!t.scene) return {};
539
539
  let e = t.scene.rootLayer.children;
540
540
  return {
541
- linesLayer: e.find((e) => e.name === Pe),
542
- pointsLayer: e.find((e) => e.name === Fe)
541
+ linesLayer: e.find((e) => e.name === Ne),
542
+ pointsLayer: e.find((e) => e.name === Pe)
543
543
  };
544
- }, [t.scene]), l = (0, H.useCallback)(() => {
544
+ }, [t.scene]), u = (0, U.useCallback)(() => {
545
545
  if (!(t != null && t.renderer) || !c || !i || !a) return;
546
546
  let { linesLayer: e, pointsLayer: l } = c;
547
547
  if (!e || !l) return;
548
- let d = o.points, f = n.current;
549
- f ? l.children.length = 0 : l.children = d.map(({ x: e, y: t }, n) => {
548
+ let u = o.points, d = n.current;
549
+ d ? l.children.length = 0 : l.children = u.map(({ x: e, y: t }, n) => {
550
550
  let s = n == o.selected ? a : i;
551
551
  return {
552
552
  source: s,
553
- bounds: u(e, t, s.width, s.height, r.current)
553
+ bounds: P(e, t, s.width, s.height, r.current)
554
554
  };
555
555
  });
556
- let p = [];
557
- for (let e = 1; e < d.length; e++) {
558
- let t = d[e - 1], n = d[e];
559
- p.push({
556
+ let f = [];
557
+ for (let e = 1; e < u.length; e++) {
558
+ let t = u[e - 1], n = u[e];
559
+ f.push({
560
560
  points: [t, n],
561
- color: f ? lt : dt,
562
- width: ft
561
+ color: d ? ct : ut,
562
+ width: dt
563
563
  });
564
564
  }
565
- p.length ? e.children = p : e.children.length = 0, s.current.add(() => t.update(l, e)), o.instruct(), o.log(JSON.stringify(o.points));
565
+ f.length ? e.children = f : e.children.length = 0, s.current.add(() => t.update(l, e)), o.instruct(), o.log(JSON.stringify(o.points));
566
566
  }, [
567
567
  t,
568
568
  o,
569
569
  c,
570
570
  i,
571
571
  a
572
- ]), d = (0, H.useCallback)((e) => {
572
+ ]), d = (0, U.useCallback)((e) => {
573
573
  let t = e.key.toUpperCase();
574
574
  o.execute(() => {
575
575
  switch (t) {
576
+ case ft:
577
+ e.preventDefault(), o.undo(), n.current = !1, u();
578
+ break;
576
579
  case pt:
577
- e.preventDefault(), o.undo(), n.current = !1, l();
580
+ e.preventDefault(), o.applySmoothing(), n.current = !1, u();
578
581
  break;
579
582
  case mt:
580
- e.preventDefault(), o.applySmoothing(), n.current = !1, l();
583
+ e.preventDefault(), o.applySimplification(), n.current = !1, u();
581
584
  break;
582
585
  case ht:
583
- e.preventDefault(), o.applySimplification(), n.current = !1, l();
584
- break;
585
- case gt:
586
- e.preventDefault(), n.current = !n.current, l();
586
+ e.preventDefault(), n.current = !n.current, u();
587
587
  break;
588
588
  }
589
589
  });
590
- }, [o, l]), f = (0, H.useCallback)(({ ptScale: e, sceneId: n }) => {
591
- if (!v(n) || !(t != null && t.renderer) || !c) return;
590
+ }, [o, u]), f = (0, U.useCallback)(({ ptScale: e, sceneId: n }) => {
591
+ if (!l(n) || !(t != null && t.renderer) || !c) return;
592
592
  let { pointsLayer: i } = c;
593
593
  i && (r.current = e, o.execute(() => {
594
594
  let e = i.children, n = [];
595
595
  for (let t = 0; t < e.length; t++) {
596
596
  let i = e[t];
597
- i.bounds = u(i.bounds.center.x, i.bounds.center.y, i.source.width, i.source.height, r.current), n.push(i);
597
+ i.bounds = P(i.bounds.center.x, i.bounds.center.y, i.source.width, i.source.height, r.current), n.push(i);
598
598
  }
599
599
  s.current.add(() => t.update(...n));
600
600
  }));
@@ -602,19 +602,19 @@ function vt({ enabled: e, rendererService: t }) {
602
602
  t,
603
603
  c,
604
604
  o
605
- ]), p = (0, H.useCallback)(({ data: e }) => {
605
+ ]), p = (0, U.useCallback)(({ data: e }) => {
606
606
  o.execute(() => {
607
- let { point: t } = S(e);
607
+ let { point: t } = N(e);
608
608
  o.add({
609
609
  x: t.x,
610
610
  y: t.y
611
- }), o.select(o.points.length - 1), l();
611
+ }), o.select(o.points.length - 1), u();
612
612
  });
613
- }, [o, l]);
614
- (0, H.useEffect)(() => {
613
+ }, [o, u]);
614
+ (0, U.useEffect)(() => {
615
615
  let n = t.renderer;
616
616
  if (!(!e || !n)) return r.current = t.scale, o.execute(() => {
617
- o.restore(), l();
617
+ o.restore(), u();
618
618
  }), n.events.addEventListener("pointer:click", p), n.events.addEventListener("viewport:ptscale", f), window.addEventListener("keyup", d), () => {
619
619
  window.removeEventListener("keyup", d), n.events.removeEventListener("pointer:click", p), n.events.removeEventListener("viewport:ptscale", f), s.current.destroy();
620
620
  };
@@ -622,7 +622,7 @@ function vt({ enabled: e, rendererService: t }) {
622
622
  e,
623
623
  t,
624
624
  o,
625
- l,
625
+ u,
626
626
  p,
627
627
  f,
628
628
  d
@@ -630,12 +630,12 @@ function vt({ enabled: e, rendererService: t }) {
630
630
  }
631
631
  //#endregion
632
632
  //#region src/components/Map/traffic/useManageTraffic.ts
633
- var G = 2, yt = G * 3.5, K = G * 12, bt = K * .7, xt = 8, St = "transport_locations", Ct = 150, q = "#a4aab6", wt = 1e3, Tt = 2e4, Et = 500;
633
+ var K = 2, vt = K * 3.5, q = K * 12, yt = q * .7, bt = 8, xt = "transport_locations", St = 150, Ct = "#a4aab6", wt = 1e3, Tt = 2e4, Et = 500;
634
634
  function Dt({ permission: e, rendererService: t, dataJsonUrl: r, websocketUrl: i }) {
635
- let a = (0, H.useRef)(window.devicePixelRatio), s = (0, H.useRef)(/* @__PURE__ */ new Map()), c = (0, H.useRef)(/* @__PURE__ */ new Map()), l = (0, H.useRef)(), d = (0, H.useRef)(), f = (0, H.useRef)(performance.now()), p = (0, H.useRef)(1), m = (0, H.useRef)(new ct()), g = (0, H.useRef)(/* @__PURE__ */ new Map()), _ = (0, H.useRef)(), y = (0, H.useRef)(wt), b = (0, H.useRef)(/* @__PURE__ */ new Map()), x = (0, H.useRef)();
636
- (0, H.useEffect)(() => {
637
- let S;
638
- async function C() {
635
+ let a = (0, U.useRef)(window.devicePixelRatio), s = (0, U.useRef)(/* @__PURE__ */ new Map()), c = (0, U.useRef)(/* @__PURE__ */ new Map()), u = (0, U.useRef)(), d = (0, U.useRef)(), f = (0, U.useRef)(performance.now()), p = (0, U.useRef)(1), m = (0, U.useRef)(new st()), h = (0, U.useRef)(/* @__PURE__ */ new Map()), g = (0, U.useRef)(), _ = (0, U.useRef)(wt), v = (0, U.useRef)(/* @__PURE__ */ new Map()), y = (0, U.useRef)();
636
+ (0, U.useEffect)(() => {
637
+ let b;
638
+ async function x() {
639
639
  if (!(!e || !t.scene)) try {
640
640
  let e;
641
641
  try {
@@ -650,18 +650,18 @@ function Dt({ permission: e, rendererService: t, dataJsonUrl: r, websocketUrl: i
650
650
  }
651
651
  if (!e || e != null && e.disabled || e != null && e.error) return;
652
652
  a.current = Ot(t.scale);
653
- let i = new Map(e.routes.map(({ id: e, color: t }) => [e, t])), l = t.scene.rootLayer.children, y = /* @__PURE__ */ new Map();
653
+ let i = new Map(e.routes.map(({ id: e, color: t }) => [e, t])), u = t.scene.rootLayer.children, _ = /* @__PURE__ */ new Map();
654
654
  i.forEach((e) => {
655
- y.set(e, jt({
656
- radius: yt,
655
+ _.set(e, jt({
656
+ radius: vt,
657
657
  color: e,
658
658
  scale: window.devicePixelRatio
659
659
  }));
660
660
  });
661
- let x = Be(), C = l.filter((e) => x.test(e.name)), T = Ve(), D = l.filter((e) => T.test(e.name));
662
- e.routes.slice(0, C.length).forEach(({ id: e, color: n, path: r, stops: i, hiddenPoints: o }, s) => {
663
- g.current.set(e, r);
664
- let c = C[s];
661
+ let y = ze(), x = u.filter((e) => y.test(e.name)), C = Be(), T = u.filter((e) => C.test(e.name));
662
+ e.routes.slice(0, x.length).forEach(({ id: e, color: n, path: r, stops: i, hiddenPoints: o }, s) => {
663
+ h.current.set(e, r);
664
+ let c = x[s];
665
665
  if (c) {
666
666
  var l;
667
667
  let e = new Map((l = o == null ? void 0 : o.map((e) => [zt(e), e])) == null ? [] : l);
@@ -670,66 +670,66 @@ function Dt({ permission: e, rendererService: t, dataJsonUrl: r, websocketUrl: i
670
670
  e.has(zt(i)) || e.has(zt(a)) || c.children.push({
671
671
  points: [i, a],
672
672
  color: n,
673
- width: G
673
+ width: K
674
674
  });
675
675
  }
676
676
  c.children.length && m.current.add(() => t.update(c));
677
677
  }
678
- let d = D[s];
679
- if (d && i != null && i.length) {
680
- let e = y.get(n);
678
+ let u = T[s];
679
+ if (u && i != null && i.length) {
680
+ let e = _.get(n);
681
681
  i.forEach((t) => {
682
- d.children.push({
682
+ u.children.push({
683
683
  source: e,
684
- bounds: u(t.x, t.y, e.width, e.height, a.current)
684
+ bounds: P(t.x, t.y, e.width, e.height, a.current)
685
685
  });
686
- }), d.children.length && m.current.add(() => t.update(d));
686
+ }), u.children.length && m.current.add(() => t.update(u));
687
687
  }
688
688
  });
689
- let O = l.find((e) => e.name === Ne), k = /* @__PURE__ */ new Map();
690
- _.current = (e) => {
689
+ let E = u.find((e) => e.name === Me), D = /* @__PURE__ */ new Map();
690
+ g.current = (e) => {
691
691
  try {
692
692
  let { ptScale: n, sceneId: r } = kt(e);
693
- if (!v(r)) return;
693
+ if (!l(r)) return;
694
694
  a.current = Ot(n);
695
695
  let i = [];
696
- for (let e = 0; e < D.length; e++) {
697
- let t = D[e].children;
696
+ for (let e = 0; e < T.length; e++) {
697
+ let t = T[e].children;
698
698
  for (let e = 0; e < t.length; e++) {
699
699
  let n = t[e];
700
- n.bounds = u(n.bounds.center.x, n.bounds.center.y, n.source.width, n.source.height, a.current, n.bounds.rotation), i.push(n);
700
+ n.bounds = P(n.bounds.center.x, n.bounds.center.y, n.source.width, n.source.height, a.current, n.bounds.rotation), i.push(n);
701
701
  }
702
702
  }
703
703
  let o = [...s.current.values()];
704
704
  for (let e = 0; e < o.length; e++) {
705
705
  let t = o[e];
706
- t.bounds = u(t.bounds.center.x, t.bounds.center.y, t.source.width, t.source.height, a.current, t.bounds.rotation);
706
+ t.bounds = P(t.bounds.center.x, t.bounds.center.y, t.source.width, t.source.height, a.current, t.bounds.rotation);
707
707
  }
708
708
  m.current.add(() => t.update(...i, ...o));
709
709
  } catch (e) {
710
710
  console.error("ptscale", e);
711
711
  }
712
- }, t.renderer.events.addEventListener("viewport:ptscale", _.current), S = requestAnimationFrame(() => {
712
+ }, t.renderer.events.addEventListener("viewport:ptscale", g.current), b = requestAnimationFrame(() => {
713
713
  var e;
714
- (e = _.current) == null || e.call(_, t.scale);
714
+ (e = g.current) == null || e.call(g, t.scale);
715
715
  }), i.forEach((e, t) => {
716
- k.set(t, Mt({
716
+ D.set(t, Mt({
717
717
  id: t,
718
- width: K,
719
- height: K,
718
+ width: q,
719
+ height: q,
720
720
  color: e,
721
721
  scale: window.devicePixelRatio
722
722
  }));
723
- }), k.set(q, Mt({
723
+ }), D.set(Ct, Mt({
724
724
  id: "orphan",
725
- width: K,
726
- height: K,
727
- color: q,
725
+ width: q,
726
+ height: q,
727
+ color: Ct,
728
728
  scale: window.devicePixelRatio
729
729
  }));
730
- let A = null;
730
+ let O = null;
731
731
  try {
732
- A = h(await n(`${o}icons/bus-white.svg`), bt, bt, window.devicePixelRatio);
732
+ O = F(await n(`${o}icons/bus-white.svg`), yt, yt, window.devicePixelRatio);
733
733
  } catch (e) {
734
734
  console.error(e);
735
735
  }
@@ -737,46 +737,46 @@ function Dt({ permission: e, rendererService: t, dataJsonUrl: r, websocketUrl: i
737
737
  try {
738
738
  var n;
739
739
  let r = JSON.parse(e.data);
740
- if (r.type !== St) return;
740
+ if (r.type !== xt) return;
741
741
  let i = e.timeStamp || performance.now();
742
742
  p.current = Math.round(i - f.current), f.current = i;
743
- let o = Math.max((n = p.current) == null ? Et : n, Et), l = c.current, d = s.current, h = O.children, _ = m.current, v = !1;
743
+ let o = Math.max((n = p.current) == null ? Et : n, Et), l = c.current, u = s.current, d = E.children, g = m.current, _ = !1;
744
744
  r.data.forEach(({ id: e, x: n, y: r, route_id: i, hidden: s }) => {
745
745
  if (l.has(e)) {
746
746
  var c;
747
747
  (c = l.get(e)) == null || c(), l.delete(e);
748
748
  }
749
- if (s && d.has(e) && d.has(J(e))) {
750
- let n = d.get(e);
749
+ if (s && u.has(e) && u.has(J(e))) {
750
+ let n = u.get(e);
751
751
  n.hidden = !0;
752
- let r = d.get(J(e));
753
- r.hidden = !0, _.add(() => t.update(n, r));
752
+ let r = u.get(J(e));
753
+ r.hidden = !0, g.add(() => t.update(n, r));
754
754
  return;
755
755
  }
756
- if (b.current.set(e, performance.now()), !d.has(e)) {
757
- let t = k.get(i) || k.get(q), o = {
756
+ if (v.current.set(e, performance.now()), !u.has(e)) {
757
+ let t = D.get(i) || D.get(Ct), o = {
758
758
  id: e,
759
759
  source: t,
760
- bounds: u(n, r, t.width, t.height, a.current, 0)
760
+ bounds: P(n, r, t.width, t.height, a.current, 0)
761
761
  };
762
- if (d.set(e, o), A) {
762
+ if (u.set(e, o), O) {
763
763
  let t = J(e), i = {
764
764
  id: t,
765
- source: A,
766
- bounds: u(n, r, A.width, A.height, a.current, 0)
765
+ source: O,
766
+ bounds: P(n, r, O.width, O.height, a.current, 0)
767
767
  };
768
- A.setAttribute("id", t), d.set(t, i), h.push(o, i);
769
- } else h.push(o);
770
- v = !0;
768
+ O.setAttribute("id", t), u.set(t, i), d.push(o, i);
769
+ } else d.push(o);
770
+ _ = !0;
771
771
  return;
772
772
  }
773
- let f = d.get(e), p = d.get(J(e)), m = f.bounds.center, y = Lt(m, {
773
+ let f = u.get(e), p = u.get(J(e)), m = f.bounds.center, y = Lt(m, {
774
774
  x: n,
775
775
  y: r
776
- }, g.current.get(i));
777
- if (y.reduce((e, t, n) => n === 0 ? e : e + Nt(y[n - 1], t), 0) >= Ct || document.hidden) Pt({
776
+ }, h.current.get(i));
777
+ if (y.reduce((e, t, n) => n === 0 ? e : e + Nt(y[n - 1], t), 0) >= St || document.hidden) Pt({
778
778
  rendererService: t,
779
- updateQueue: _,
779
+ updateQueue: g,
780
780
  vehicle: f,
781
781
  vehicleFinery: p,
782
782
  x: n,
@@ -791,7 +791,7 @@ function Dt({ permission: e, rendererService: t, dataJsonUrl: r, websocketUrl: i
791
791
  let n = Rt(y, o, (e) => {
792
792
  Pt({
793
793
  rendererService: t,
794
- updateQueue: _,
794
+ updateQueue: g,
795
795
  vehicle: f,
796
796
  vehicleFinery: p,
797
797
  x: e.x,
@@ -802,42 +802,42 @@ function Dt({ permission: e, rendererService: t, dataJsonUrl: r, websocketUrl: i
802
802
  });
803
803
  l.set(e, n);
804
804
  }
805
- }), v && _.add(() => t.update(O));
805
+ }), _ && g.add(() => t.update(E));
806
806
  } catch (e) {
807
807
  console.error("handleSocketMessage", e);
808
808
  }
809
- }, w(), E(e.config ? (Number(e.config.vehicle_inactive_interval) || 20) * 1e3 : Tt);
809
+ }, S(), w(e.config ? (Number(e.config.vehicle_inactive_interval) || 20) * 1e3 : Tt);
810
810
  } catch (e) {
811
811
  console.warn(e);
812
812
  }
813
813
  }
814
- C();
815
- function w() {
814
+ x();
815
+ function S() {
816
816
  var e, t;
817
- ((e = l.current) == null ? void 0 : e.readyState) === WebSocket.OPEN || ((t = l.current) == null ? void 0 : t.readyState) === WebSocket.CONNECTING || (l.current = new WebSocket(i), l.current.onmessage = d.current, l.current.onopen = () => {
818
- y.current = wt;
819
- }, l.current.onclose = () => {
820
- navigator.onLine && (setTimeout(w, y.current), y.current = Math.min(y.current * 2, 3e4));
817
+ ((e = u.current) == null ? void 0 : e.readyState) === WebSocket.OPEN || ((t = u.current) == null ? void 0 : t.readyState) === WebSocket.CONNECTING || (u.current = new WebSocket(i), u.current.onmessage = d.current, u.current.onopen = () => {
818
+ _.current = wt;
819
+ }, u.current.onclose = () => {
820
+ navigator.onLine && (setTimeout(S, _.current), _.current = Math.min(_.current * 2, 3e4));
821
821
  });
822
822
  }
823
- function T() {
824
- w();
823
+ function C() {
824
+ S();
825
825
  }
826
- window.addEventListener("online", T);
827
- function E(e) {
828
- clearInterval(x.current), x.current = window.setInterval(() => {
826
+ window.addEventListener("online", C);
827
+ function w(e) {
828
+ clearInterval(y.current), y.current = window.setInterval(() => {
829
829
  let n = performance.now(), r = [], i = [];
830
- b.current.forEach((t, a) => {
830
+ v.current.forEach((t, a) => {
831
831
  if (n - t < e) return;
832
832
  let o = s.current.get(a);
833
833
  o && (o.hidden = !0, i.push(o), r.push(a));
834
834
  let c = J(a), l = s.current.get(c);
835
835
  l && (l.hidden = !0, i.push(l), r.push(c));
836
- }), i.length && m.current.add(() => t.update(...i)), r.forEach((e) => b.current.delete(e));
836
+ }), i.length && m.current.add(() => t.update(...i)), r.forEach((e) => v.current.delete(e));
837
837
  }, e);
838
838
  }
839
839
  return () => {
840
- _.current && t.renderer && t.renderer.events.removeEventListener("viewport:ptscale", _.current), S !== void 0 && cancelAnimationFrame(S), c.current.forEach((e) => e == null ? void 0 : e()), c.current.clear(), s.current.clear(), m.current.destroy(), window.removeEventListener("online", T), clearInterval(x.current);
840
+ g.current && t.renderer && t.renderer.events.removeEventListener("viewport:ptscale", g.current), b !== void 0 && cancelAnimationFrame(b), c.current.forEach((e) => e == null ? void 0 : e()), c.current.clear(), s.current.clear(), m.current.destroy(), window.removeEventListener("online", C), clearInterval(y.current);
841
841
  };
842
842
  }, [
843
843
  e,
@@ -847,7 +847,7 @@ function Dt({ permission: e, rendererService: t, dataJsonUrl: r, websocketUrl: i
847
847
  ]);
848
848
  }
849
849
  function Ot(e) {
850
- return Math.min(e || window.devicePixelRatio, xt);
850
+ return Math.min(e || window.devicePixelRatio, bt);
851
851
  }
852
852
  function kt(e) {
853
853
  return typeof e == "number" ? { ptScale: e } : e;
@@ -876,7 +876,7 @@ function J(e) {
876
876
  return `${e}_finery`;
877
877
  }
878
878
  function Pt({ rendererService: e, updateQueue: t, vehicle: n, vehicleFinery: r, x: i, y: a, scale: o, angle: s }) {
879
- n.bounds = u(i, a, n.source.width, n.source.height, o, s), n.hidden = !1, r ? (r.bounds = u(i, a, r.source.width, r.source.height, o, d(e.angle)), r.hidden = !1, t.add(() => e.update(r, n))) : t.add(() => e.update(n));
879
+ n.bounds = P(i, a, n.source.width, n.source.height, o, s), n.hidden = !1, r ? (r.bounds = P(i, a, r.source.width, r.source.height, o, u(e.angle)), r.hidden = !1, t.add(() => e.update(r, n))) : t.add(() => e.update(n));
880
880
  }
881
881
  function Y(e, t, n) {
882
882
  return {
@@ -999,17 +999,17 @@ function Gt(e) {
999
999
  //#region src/components/Map/booth-by-xy.ts
1000
1000
  var Kt = /* @__PURE__ */ new Map(), qt = [], Jt = [], Yt = [], X = /* @__PURE__ */ new Map(), Z;
1001
1001
  function Xt() {
1002
- let e = R.booths.filter((e) => e.visible && e.rect && e.rect.w > 0 && e.rect.h > 0);
1002
+ let e = B.booths.filter((e) => e.visible && e.rect && e.rect.w > 0 && e.rect.h > 0);
1003
1003
  if (Kt = /* @__PURE__ */ new Map(), qt = [], Yt = [], Z = null, X = /* @__PURE__ */ new Map(), !e.length) return;
1004
1004
  Jt = e.filter((e) => e.paths);
1005
- let t = L.fromMultiple(e.map((e) => e.rect));
1005
+ let t = se.fromMultiple(e.map((e) => e.rect));
1006
1006
  for (let t of e) {
1007
1007
  let e = t.rect;
1008
1008
  Math.abs(t.rotate) === 90 * Math.PI / 180 && (e = e.getRotated90()), qt.push(e), Kt.set(e, t);
1009
1009
  }
1010
1010
  let n = Math.ceil(t.w / 2), r = Math.ceil(t.h / 2);
1011
1011
  for (let e = 0; e < 2; e++) for (let i = 0; i < 2; i++) {
1012
- let a = t.x1 + e * n, o = t.y1 + i * r, s = L.fromXywh(a, o, n, r);
1012
+ let a = t.x1 + e * n, o = t.y1 + i * r, s = se.fromXywh(a, o, n, r);
1013
1013
  Yt.push(s);
1014
1014
  let c = qt.filter((e) => s.intersects(e));
1015
1015
  X.set(s, c);
@@ -1017,9 +1017,9 @@ function Xt() {
1017
1017
  i.log("hover segmentToRects", X);
1018
1018
  }
1019
1019
  r(() => [
1020
- R.booths,
1021
- N.loaded,
1022
- N.visible
1020
+ B.booths,
1021
+ I.loaded,
1022
+ I.visible
1023
1023
  ], () => Xt());
1024
1024
  function Zt(e, t) {
1025
1025
  let n;
@@ -1034,7 +1034,7 @@ function Zt(e, t) {
1034
1034
  return t.visible ? t : null;
1035
1035
  }
1036
1036
  }
1037
- for (let n of Jt) for (let r of n.paths) for (let i of me(r.index, N.mode === _e.Default ? "" : n.layer.name)) if (Ue(e, t, i)) return n.visible ? n : null;
1037
+ for (let n of Jt) for (let r of n.paths) for (let i of he(r.index, I.mode === k.Default ? "" : n.layer.name)) if (He(e, t, i)) return n.visible ? n : null;
1038
1038
  return null;
1039
1039
  }
1040
1040
  function Qt(e, t) {
@@ -1042,10 +1042,10 @@ function Qt(e, t) {
1042
1042
  }
1043
1043
  //#endregion
1044
1044
  //#region src/wayfinding/bindMobxReactions.ts
1045
- var $t = (e) => "rect" in e ? m(e) : e;
1045
+ var $t = (e) => "rect" in e ? h(e) : e;
1046
1046
  function en({ runtime: e, kioskHandler: t, yahHandler: n, stores: { routeStore: i, uiState: o, layerStore: s }, rerouteThresholdSvg: c }) {
1047
- let l = [], u = y(c);
1048
- function d() {
1047
+ let l = [], u = p(c);
1048
+ function f() {
1049
1049
  var t;
1050
1050
  let n = o.selectedRoute, r = n != null && n.from ? $t(n.from) : null, a = n != null && n.to ? $t(n.to) : null;
1051
1051
  if (!r || !a) {
@@ -1055,48 +1055,48 @@ function en({ runtime: e, kioskHandler: t, yahHandler: n, stores: { routeStore:
1055
1055
  e.setRoute({
1056
1056
  from: r,
1057
1057
  to: a,
1058
- waypoints: n == null || (t = n.waypoints) == null ? void 0 : t.map(m),
1058
+ waypoints: n == null || (t = n.waypoints) == null ? void 0 : t.map(h),
1059
1059
  accessible: i.onlyAccessible
1060
1060
  }) === !1 && console.error(/* @__PURE__ */ Error(`Route not found: (${r.x},${r.y}) → (${a.x},${a.y})`));
1061
1061
  }
1062
- function p() {
1062
+ function m() {
1063
1063
  let t = i.currentPosition, r = i.iconType !== 0, a = o.selectedRoute, s = !!(a != null && a.from && a != null && a.to), c = r && !s;
1064
1064
  if (!t) {
1065
1065
  e.onPositionChanged(null), n(null);
1066
1066
  return;
1067
1067
  }
1068
- let l = f(t);
1068
+ let l = b(t);
1069
1069
  c ? (e.onPositionChanged(null), n({
1070
1070
  x: l.x,
1071
1071
  y: l.y,
1072
1072
  layer: l.layer
1073
1073
  })) : (n(null), e.onPositionChanged(l));
1074
1074
  }
1075
- function h() {
1075
+ function _() {
1076
1076
  var e;
1077
1077
  let t = i.currentPosition, n = o.selectedRoute;
1078
1078
  if (!t || !(n != null && n.to)) return;
1079
- let r = !n.from, a = ((e = n.from) == null ? void 0 : e.id) === "current-position" && u.shouldReroute(f(t), i.routeLines);
1080
- !r && !a || i.rebuildRouteFromPosition(D(t, _, ye));
1079
+ let r = !n.from, a = ((e = n.from) == null ? void 0 : e.id) === "current-position" && u.shouldReroute(b(t), i.routeLines);
1080
+ !r && !a || i.rebuildRouteFromPosition(d(t, S, g));
1081
1081
  }
1082
- function g() {
1082
+ function v() {
1083
1083
  var e, n;
1084
1084
  let r = (e = s.floors.find((e) => e.active)) == null ? void 0 : e.name;
1085
1085
  t((n = o.kioskData) == null ? null : n, r, s.mode);
1086
1086
  }
1087
- function v() {
1087
+ function y() {
1088
1088
  var e;
1089
1089
  let t = o.selectedRoute, n = i.currentPosition;
1090
1090
  if (!(t != null && t.to) || !n || ((e = t.from) == null ? void 0 : e.id) !== "current-position" || i.routeLines.length > 0) return;
1091
1091
  let r = n.z == null ? "" : String(n.z);
1092
- t.from.x === n.x && t.from.y === n.y && t.from.layer === r || i.rebuildRouteFromPosition(D(n, _, ye));
1092
+ t.from.x === n.x && t.from.y === n.y && t.from.layer === r || i.rebuildRouteFromPosition(d(n, S, g));
1093
1093
  }
1094
1094
  l.push(r(() => s.layersLoaded, () => {
1095
- d(), p();
1095
+ f(), m();
1096
1096
  }), r(() => [o.selectedRoute, i.onlyAccessible], () => {
1097
- d(), p();
1097
+ f(), m();
1098
1098
  }), r(() => i.currentPosition, () => {
1099
- p();
1099
+ m();
1100
1100
  }), r(() => {
1101
1101
  let e = i.currentPosition;
1102
1102
  return e ? {
@@ -1105,16 +1105,16 @@ function en({ runtime: e, kioskHandler: t, yahHandler: n, stores: { routeStore:
1105
1105
  z: e.z
1106
1106
  } : null;
1107
1107
  }, () => {
1108
- h(), v();
1109
- }, { equals: a.structural }), r(() => [o.kioskData, s.floors.find((e) => e.active)], () => g()));
1110
- let b = null, x = r(() => [i.currentRouteLayer, o.getRouteNextFloor], () => {
1111
- s.layersLoaded && (b !== null && clearTimeout(b), b = setTimeout(() => {
1112
- e.onFloorChanged(), p(), b = null;
1108
+ _(), y();
1109
+ }, { equals: a.structural }), r(() => [o.kioskData, s.floors.find((e) => e.active)], () => v()));
1110
+ let x = null, C = r(() => [i.currentRouteLayer, o.getRouteNextFloor], () => {
1111
+ s.layersLoaded && (x !== null && clearTimeout(x), x = setTimeout(() => {
1112
+ e.onFloorChanged(), m(), x = null;
1113
1113
  }, 0));
1114
1114
  });
1115
1115
  return l.push(() => {
1116
- b !== null && clearTimeout(b), x();
1117
- }), d(), p(), g(), () => {
1116
+ x !== null && clearTimeout(x), C();
1117
+ }), f(), m(), v(), () => {
1118
1118
  for (let e of l) e();
1119
1119
  l.length = 0;
1120
1120
  };
@@ -1134,7 +1134,7 @@ function rn({ renderer: e, kioskIconMap: t, layer: n }) {
1134
1134
  return;
1135
1135
  }
1136
1136
  e.setIcon(tn, {
1137
- canvas: A(t, r.iconSizePercent),
1137
+ canvas: D(t, r.iconSizePercent),
1138
1138
  layer: n,
1139
1139
  x: r.x,
1140
1140
  y: r.y,
@@ -1209,7 +1209,7 @@ function ln({ renderer: e, iconProvider: t, floorContext: n, layer: r }) {
1209
1209
  //#region src/wayfinding/runtime/positionTrailView.ts
1210
1210
  var Q = "trail";
1211
1211
  function un({ renderer: e, iconProvider: t, floorContext: n, trails: r, iconLayer: i, snapThreshold: a }) {
1212
- let o = l({
1212
+ let o = v({
1213
1213
  renderer: e,
1214
1214
  iconProvider: t,
1215
1215
  layer: i
@@ -1223,7 +1223,7 @@ function un({ renderer: e, iconProvider: t, floorContext: n, trails: r, iconLaye
1223
1223
  o.hide();
1224
1224
  },
1225
1225
  applyToRoute(e, t, r) {
1226
- let i = pe(e, [...r], {
1226
+ let i = ee(e, [...r], {
1227
1227
  snapThreshold: a,
1228
1228
  from: t.from,
1229
1229
  to: t.to
@@ -1265,26 +1265,26 @@ function dn({ renderer: e, linesLayer: t, animatedLinesLayer: n }) {
1265
1265
  //#endregion
1266
1266
  //#region src/wayfinding/runtime/routeRenderData.ts
1267
1267
  function fn({ routeLines: e, currentRouteLayer: t, from: n, to: r, snap: i }) {
1268
- let a = s(e.filter((e) => !e.virtual), n, r), o = t === null ? a : a.filter((e) => e.p0.layer === t);
1268
+ let a = te(e.filter((e) => !e.virtual), n, r), o = t === null ? a : a.filter((e) => e.p0.layer === t);
1269
1269
  if (!(i != null && i.snapped)) return {
1270
1270
  passed: [],
1271
1271
  remaining: o,
1272
- distance: re(a)
1272
+ distance: pe(a)
1273
1273
  };
1274
- let { passed: c, remaining: l } = b(o, i.snappedPoint);
1274
+ let { passed: s, remaining: c } = A(o, i.snappedPoint);
1275
1275
  return {
1276
- passed: c,
1277
- remaining: l !== o && l.length > 0 ? [{
1278
- ...l[0],
1276
+ passed: s,
1277
+ remaining: c !== o && c.length > 0 ? [{
1278
+ ...c[0],
1279
1279
  p0: i.snappedPoint
1280
- }, ...l.slice(1)] : l,
1280
+ }, ...c.slice(1)] : c,
1281
1281
  distance: i.distance
1282
1282
  };
1283
1283
  }
1284
1284
  //#endregion
1285
1285
  //#region src/wayfinding/runtime/routeUpdate.ts
1286
1286
  function pn(e, t) {
1287
- let n = e.filter((e) => !e.virtual), r = ce(t.flatMap((e) => [e.p0, e.p1]));
1287
+ let n = e.filter((e) => !e.virtual), r = ie(t.flatMap((e) => [e.p0, e.p1]));
1288
1288
  return !r || r.x1 === r.x2 && r.y1 === r.y2 ? {
1289
1289
  lines: n,
1290
1290
  bounds: null
@@ -1339,12 +1339,12 @@ function hn({ renderer: e, iconProvider: t, floorContext: n, onTransitionClick:
1339
1339
  if (!e) return;
1340
1340
  o = e;
1341
1341
  }
1342
- let s = de({
1342
+ let c = s({
1343
1343
  routeLines: a,
1344
1344
  currentLayerName: o,
1345
1345
  floorOrder: n.getFloorOrder()
1346
1346
  });
1347
- for (let [n, a] of s.entries()) e.setIcon($, {
1347
+ for (let [n, a] of c.entries()) e.setIcon($, {
1348
1348
  canvas: t.getIcon(gn(a.role, a.direction)).canvas,
1349
1349
  layer: i,
1350
1350
  x: a.x,
@@ -1456,7 +1456,7 @@ function vn({ engine: e, renderer: t, iconProvider: n, floorContext: r, layers:
1456
1456
  if (y = !1, !g || !m || !h) return null;
1457
1457
  let e = p.filter((e) => !e.virtual);
1458
1458
  if (!e.length) return null;
1459
- let t = S(), n = t ? d.applyToRoute(g, t, e) : pe(g, e, {
1459
+ let t = S(), n = t ? d.applyToRoute(g, t, e) : ee(g, e, {
1460
1460
  snapThreshold: a,
1461
1461
  from: m,
1462
1462
  to: h
@@ -1475,10 +1475,10 @@ function vn({ engine: e, renderer: t, iconProvider: n, floorContext: r, layers:
1475
1475
  waypoints: i,
1476
1476
  accessible: a
1477
1477
  });
1478
- if (!o.length) return j(), !1;
1478
+ if (!o.length) return M(), !1;
1479
1479
  v = !1, m = n, h = r, p = o, T();
1480
1480
  let { lines: s } = O(), l = D();
1481
- return E(), w(l), l && C(l, !0), c(l ? _ : re(s)), t.flush(), !0;
1481
+ return E(), w(l), l && C(l, !0), c(l ? _ : pe(s)), t.flush(), !0;
1482
1482
  }
1483
1483
  function A(e) {
1484
1484
  let n = g !== null;
@@ -1490,23 +1490,23 @@ function vn({ engine: e, renderer: t, iconProvider: n, floorContext: r, layers:
1490
1490
  let r = D();
1491
1491
  E(), w(r), r && C(r, !0), c(_), t.flush();
1492
1492
  }
1493
- function ee() {
1493
+ function j() {
1494
1494
  T();
1495
1495
  let e = D();
1496
1496
  E(), w(e), e && C(e, !0), p.length && O(), c(_), t.flush();
1497
1497
  }
1498
- function j() {
1498
+ function M() {
1499
1499
  v = !1, p = [], m = null, h = null, _ = 0, l.hide(), u.clear(), d.clearTrail(), f.clear(), s([], null), c(0), t.flush();
1500
1500
  }
1501
- function M() {
1502
- j(), g = null, t.destroy();
1501
+ function N() {
1502
+ M(), g = null, t.destroy();
1503
1503
  }
1504
1504
  return {
1505
1505
  setRoute: k,
1506
1506
  onPositionChanged: A,
1507
- onFloorChanged: ee,
1508
- clearRoute: j,
1509
- destroy: M
1507
+ onFloorChanged: j,
1508
+ clearRoute: M,
1509
+ destroy: N
1510
1510
  };
1511
1511
  }
1512
1512
  //#endregion
@@ -1558,39 +1558,39 @@ function bn(e, t) {
1558
1558
  }
1559
1559
  function c(r, i, a) {
1560
1560
  var s, c, l;
1561
- let d = e.touchLayer(a.layer), f = P(a.canvas, u(a.x, a.y, a.canvas.width, a.canvas.height, t.scale, a.rotation), {
1561
+ let u = e.touchLayer(a.layer), d = C(a.canvas, P(a.x, a.y, a.canvas.width, a.canvas.height, t.scale, a.rotation), {
1562
1562
  hidden: (s = a.hidden) == null ? !1 : s,
1563
1563
  dim: (c = a.dimmed) == null ? !1 : c,
1564
1564
  origin: a.origin
1565
1565
  });
1566
- d.children.push(f), t.onPtScale(r, (e) => {
1566
+ u.children.push(d), t.onPtScale(r, (e) => {
1567
1567
  let t = n.get(r);
1568
- if (!(!t || t.imageDef.hidden)) return t.imageDef.bounds = u(t.imageDef.bounds.center.x, t.imageDef.bounds.center.y, t.imageDef.source.width, t.imageDef.source.height, e, t.imageDef.bounds.rotation), t.imageDef;
1568
+ if (!(!t || t.imageDef.hidden)) return t.imageDef.bounds = P(t.imageDef.bounds.center.x, t.imageDef.bounds.center.y, t.imageDef.source.width, t.imageDef.source.height, e, t.imageDef.bounds.rotation), t.imageDef;
1569
1569
  }), a.cardinalSnap && t.onRoll(r, (e) => {
1570
1570
  let t = n.get(r);
1571
1571
  if (!t) return;
1572
- let i = w(e, t.imageDef.bounds.rotation);
1572
+ let i = x(e, t.imageDef.bounds.rotation);
1573
1573
  if (i !== void 0) return t.imageDef.bounds.rotation += i, t.imageDef;
1574
1574
  });
1575
- let p = {
1576
- imageDef: f,
1575
+ let f = {
1576
+ imageDef: d,
1577
1577
  layerName: a.layer,
1578
1578
  callback: (l = a.onClick) == null ? null : l
1579
1579
  };
1580
- return n.set(r, p), o(i, r), p;
1580
+ return n.set(r, f), o(i, r), f;
1581
1581
  }
1582
1582
  function l(r, i, a, o) {
1583
1583
  let l = e.resolveLayer(a.layerName), u = l.children, d = u.indexOf(a.imageDef);
1584
1584
  d >= 0 && u.splice(d, 1), e.touchedLayers.set(a.layerName, l), t.ptScaleRegistry.unregisterByName(r), t.rollRegistry.unregisterByName(r), n.delete(r), s(r), c(r, i, o);
1585
1585
  }
1586
- function d(n, r, i, a) {
1586
+ function u(n, r, i, a) {
1587
1587
  var o, s, c;
1588
1588
  if (i.layerName !== a.layer) throw Error(`renderer: icon "${n}" cannot move between layers (was "${i.layerName}", got "${a.layer}")`);
1589
1589
  if (i.imageDef.source !== a.canvas) {
1590
1590
  l(n, r, i, a);
1591
1591
  return;
1592
1592
  }
1593
- i.imageDef.bounds = u(a.x, a.y, a.canvas.width, a.canvas.height, t.scale, a.rotation), i.imageDef.hidden = (o = a.hidden) == null ? !1 : o, i.imageDef.dim = (s = a.dimmed) == null ? !1 : s, i.callback = (c = a.onClick) == null ? null : c, e.touchLayer(a.layer);
1593
+ i.imageDef.bounds = P(a.x, a.y, a.canvas.width, a.canvas.height, t.scale, a.rotation), i.imageDef.hidden = (o = a.hidden) == null ? !1 : o, i.imageDef.dim = (s = a.dimmed) == null ? !1 : s, i.callback = (c = a.onClick) == null ? null : c, e.touchLayer(a.layer);
1594
1594
  }
1595
1595
  return {
1596
1596
  setIcon(t, r, i) {
@@ -1601,7 +1601,7 @@ function bn(e, t) {
1601
1601
  return;
1602
1602
  }
1603
1603
  let s = n.get(o);
1604
- s ? d(o, t, s, r) : c(o, t, r);
1604
+ s ? u(o, t, s, r) : c(o, t, r);
1605
1605
  },
1606
1606
  clearIcons(t) {
1607
1607
  let i = typeof t == "string" ? [t] : t;
@@ -1621,7 +1621,7 @@ function bn(e, t) {
1621
1621
  n.clear(), r.clear(), i.clear();
1622
1622
  },
1623
1623
  handleClick({ data: e }) {
1624
- let { defs: t } = S(e);
1624
+ let { defs: t } = N(e);
1625
1625
  for (let e of n.values()) if (e.callback && !e.imageDef.hidden && t.includes(e.imageDef)) {
1626
1626
  e.callback();
1627
1627
  return;
@@ -1630,7 +1630,7 @@ function bn(e, t) {
1630
1630
  handleHover({ data: e }) {
1631
1631
  let r = t.renderer;
1632
1632
  if (!r) return;
1633
- let { defs: i } = S(e), a = !1;
1633
+ let { defs: i } = N(e), a = !1;
1634
1634
  for (let e of n.values()) if (e.callback && !e.imageDef.hidden && i.includes(e.imageDef)) {
1635
1635
  a = !0;
1636
1636
  break;
@@ -1653,7 +1653,7 @@ function Sn(e, t) {
1653
1653
  n.children = n.children.filter((e) => !r.has(e)), t.dotDefs = [];
1654
1654
  }
1655
1655
  function a(n) {
1656
- let r = e.touchLayer(n.layerName), a = t.scale, o = xn * a, s = ge(n.from, n.to, o), c = n.canvas, l = s.map((e) => P(c, u(e.x, e.y, c.width, c.height, a)));
1656
+ let r = e.touchLayer(n.layerName), a = t.scale, o = xn * a, s = E(n.from, n.to, o), c = n.canvas, l = s.map((e) => C(c, P(e.x, e.y, c.width, c.height, a)));
1657
1657
  i(n), r.children.push(...l), n.dotDefs = l;
1658
1658
  }
1659
1659
  function o(e) {
@@ -1759,22 +1759,22 @@ function wn(e, t, n) {
1759
1759
  return {
1760
1760
  setRouteLines(o, s, c) {
1761
1761
  var l, u;
1762
- let d = e.touchLayer(c.linesLayer), f = e.touchLayer(c.animatedLinesLayer);
1763
- i = d, a = f;
1764
- let p = (l = c.resetAnimation) == null ? !0 : l, m = 0;
1765
- r && (p || (m = r.getProgress()), r.stop(), r = null);
1766
- let h = o.map((e) => ue(e, n.passed)), g = s.map((e) => ue(e, n.remaining));
1767
- if (d.children = [...h, ...g], !g.length) {
1768
- f.children = [];
1762
+ let d = e.touchLayer(c.linesLayer), p = e.touchLayer(c.animatedLinesLayer);
1763
+ i = d, a = p;
1764
+ let m = (l = c.resetAnimation) == null ? !0 : l, h = 0;
1765
+ r && (m || (h = r.getProgress()), r.stop(), r = null);
1766
+ let g = o.map((e) => f(e, n.passed)), _ = s.map((e) => f(e, n.remaining));
1767
+ if (d.children = [...g, ..._], !_.length) {
1768
+ p.children = [];
1769
1769
  return;
1770
1770
  }
1771
- let _ = g.map((e) => ({
1771
+ let v = _.map((e) => ({
1772
1772
  ...e,
1773
1773
  color: n.active
1774
1774
  }));
1775
- r = (u = Cn(_, (e, n, r) => {
1776
- f.children = r ? [] : [..._.slice(0, n), e], t.update(f);
1777
- }, () => t.scale, m)) == null ? null : u;
1775
+ r = (u = Cn(v, (e, n, r) => {
1776
+ p.children = r ? [] : [...v.slice(0, n), e], t.update(p);
1777
+ }, () => t.scale, h)) == null ? null : u;
1778
1778
  },
1779
1779
  clearLines() {
1780
1780
  r && (r.stop(), r = null), i && (i.children = [], e.touchedLayers.set(i.name, i)), a && (a.children = [], e.touchedLayers.set(a.name, a));
@@ -1819,55 +1819,55 @@ function En(e, t = {}) {
1819
1819
  //#region src/wayfinding/createWayfinding.ts
1820
1820
  function Dn(e) {
1821
1821
  var t, n, r;
1822
- let i = he(g), a = j({
1823
- iconMap: F.fp.icons,
1822
+ let i = ce(ve), a = M({
1823
+ iconMap: L.fp.icons,
1824
1824
  pixelRatio: devicePixelRatio
1825
- }), o = En(e), s = k(N, F.routeStore), c = {
1826
- points: xe,
1827
- trail: Se,
1828
- lines: Ce,
1829
- linesAnimated: we,
1830
- currentPosition: Te
1831
- }, l = vn({
1825
+ }), o = En(e), s = c(I, L.routeStore), l = {
1826
+ points: be,
1827
+ trail: xe,
1828
+ lines: Se,
1829
+ linesAnimated: Ce,
1830
+ currentPosition: we
1831
+ }, u = vn({
1832
1832
  engine: i,
1833
1833
  renderer: o,
1834
1834
  iconProvider: a,
1835
1835
  floorContext: s,
1836
- layers: c,
1837
- snapThreshold: M({
1838
- thresholdInMeters: te(z == null || (t = z.properties) == null || (t = t.config) == null ? void 0 : t.snapThreshold) || 7.5,
1836
+ layers: l,
1837
+ snapThreshold: me({
1838
+ thresholdInMeters: _(z == null || (t = z.properties) == null || (t = t.config) == null ? void 0 : t.snapThreshold) || 7.5,
1839
1839
  gpsConfig: z == null || (n = z.properties) == null ? void 0 : n.config
1840
1840
  }),
1841
1841
  onTransitionClick: (e) => {
1842
- e.role === "exit" && N.updateVisibility(e.targetLayer, !0);
1842
+ e.role === "exit" && I.updateVisibility(e.targetLayer, !0);
1843
1843
  },
1844
1844
  onRouteUpdate: (e, t) => {
1845
- F.routeStore.updateRoute(e), t && (I.moveToRect = L.fromX1y1x2y2(t.x1, t.y1, t.x2, t.y2));
1845
+ L.routeStore.updateRoute(e), t && (R.moveToRect = se.fromX1y1x2y2(t.x1, t.y1, t.x2, t.y2));
1846
1846
  },
1847
- onRouteDistance: (e) => F.routeStore.updateRouteDistance(e)
1848
- }), u = rn({
1847
+ onRouteDistance: (e) => L.routeStore.updateRouteDistance(e)
1848
+ }), d = rn({
1849
1849
  renderer: o,
1850
- kioskIconMap: F.fp.icons,
1851
- layer: c.points
1852
- }), d = on({
1850
+ kioskIconMap: L.fp.icons,
1851
+ layer: l.points
1852
+ }), f = on({
1853
1853
  renderer: o,
1854
1854
  iconProvider: a,
1855
1855
  floorContext: s,
1856
- layer: c.points
1857
- }), f = E(z == null || (r = z.properties) == null ? void 0 : r.config), p = en({
1858
- runtime: l,
1859
- kioskHandler: u,
1860
- yahHandler: d,
1856
+ layer: l.points
1857
+ }), p = re(z == null || (r = z.properties) == null ? void 0 : r.config), m = en({
1858
+ runtime: u,
1859
+ kioskHandler: d,
1860
+ yahHandler: f,
1861
1861
  stores: {
1862
- routeStore: F.routeStore,
1863
- uiState: I,
1864
- layerStore: N
1862
+ routeStore: L.routeStore,
1863
+ uiState: R,
1864
+ layerStore: I
1865
1865
  },
1866
- rerouteThresholdSvg: f
1866
+ rerouteThresholdSvg: p
1867
1867
  });
1868
1868
  return o.flush(), () => {
1869
- p(), l.destroy();
1869
+ m(), u.destroy();
1870
1870
  };
1871
1871
  }
1872
1872
  //#endregion
1873
- export { Ut as a, st as c, Ht as i, Oe as l, Qt as n, Dt as o, Bt as r, vt as s, Dn as t, ke as u };
1873
+ export { Ut as a, ot as c, Ht as i, De as l, Qt as n, Dt as o, Bt as r, _t as s, Dn as t, Oe as u };