@pepperdash/mobile-control-react-app-core 1.22.6 → 1.22.8-volume-hook-fix.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.
@@ -1,137 +1,137 @@
1
1
  var w2 = Object.defineProperty;
2
- var p2 = (e, t, o) => t in e ? w2(e, t, { enumerable: !0, configurable: !0, writable: !0, value: o }) : e[t] = o;
3
- var q = (e, t, o) => p2(e, typeof t != "symbol" ? t + "" : t, o);
4
- import M3, { AxiosError as m2 } from "axios";
2
+ var m2 = (e, t, o) => t in e ? w2(e, t, { enumerable: !0, configurable: !0, writable: !0, value: o }) : e[t] = o;
3
+ var q = (e, t, o) => m2(e, typeof t != "symbol" ? t + "" : t, o);
4
+ import M3, { AxiosError as p2 } from "axios";
5
5
  import { useDispatch as M2, useSelector as x2, Provider as Z2 } from "react-redux";
6
- import { createSelector as p, createSlice as a1, combineReducers as S2, configureStore as j2 } from "@reduxjs/toolkit";
7
- import x3, { createContext as C2, useEffect as m1, useCallback as c1, useContext as b2, useRef as A1, useMemo as M1, useState as Y, useLayoutEffect as Z3 } from "react";
6
+ import { createSelector as M, createSlice as u1, combineReducers as S2, configureStore as j2 } from "@reduxjs/toolkit";
7
+ import x3, { createContext as C2, useEffect as x1, useCallback as n1, useContext as b2, useRef as M1, useMemo as o1, useState as Y, useLayoutEffect as Z3 } from "react";
8
8
  import { useNavigate as y2, useRouteError as I2, isRouteErrorResponse as R2 } from "react-router-dom";
9
9
  import * as S3 from "lodash";
10
- const W1 = M2.withTypes(), f = x2.withTypes(), x1 = (e) => e.appConfig, E2 = p(
11
- x1,
10
+ const W1 = M2.withTypes(), m = x2.withTypes(), Z1 = (e) => e.appConfig, E2 = M(
11
+ Z1,
12
12
  (e) => e.config
13
- ), T2 = p(
14
- x1,
13
+ ), T2 = M(
14
+ Z1,
15
15
  (e) => e.config.apiPath
16
- ), D2 = p(
17
- x1,
16
+ ), D2 = M(
17
+ Z1,
18
18
  (e) => e.config.logoPath
19
- ), _2 = p(
20
- x1,
19
+ ), _2 = M(
20
+ Z1,
21
21
  (e) => e.config.partnerMetadata
22
- ), X8 = () => f(E2), Q8 = () => f(T2), N8 = () => f(D2), e6 = () => f(_2), j3 = (e) => e.devices, C3 = p(
22
+ ), X8 = () => m(E2), Q8 = () => m(T2), N8 = () => m(D2), e6 = () => m(_2), j3 = (e) => e.devices, C3 = M(
23
23
  j3,
24
24
  (e) => e
25
- ), P2 = (e) => p(
25
+ ), P2 = (e) => M(
26
26
  j3,
27
27
  (t) => t[e] ? t[e] : void 0
28
- ), t6 = () => f(C3);
29
- function _(e) {
30
- return f(P2(e));
28
+ ), t6 = () => m(C3);
29
+ function P(e) {
30
+ return m(P2(e));
31
31
  }
32
- const A = (e) => e.rooms, L2 = (e) => p(
32
+ const A = (e) => e.rooms, L2 = (e) => M(
33
33
  A,
34
34
  (t) => t[e] ? t[e].configuration : void 0
35
- ), $2 = p(
35
+ ), $2 = M(
36
36
  A,
37
37
  (e) => e
38
- ), A2 = (e) => p(
38
+ ), A2 = (e) => M(
39
39
  A,
40
40
  (t) => t[e] ? t[e] : void 0
41
- ), B2 = (e) => p(
41
+ ), B2 = (e) => M(
42
42
  A,
43
43
  (t) => t[e] ? t[e].name : void 0
44
- ), k2 = (e, t) => p(
44
+ ), k2 = (e, t) => M(
45
45
  A,
46
46
  (o) => o[e] ? o[e].volumes[t] : void 0
47
- ), O2 = (e) => p(
47
+ ), O2 = (e) => M(
48
48
  A,
49
49
  (t) => t[e] ? t[e] : void 0
50
- ), W2 = (e) => p(
50
+ ), W2 = (e) => M(
51
51
  A,
52
52
  (t) => {
53
53
  var o, c;
54
54
  return t[e] ? (c = (o = t[e]) == null ? void 0 : o.configuration) == null ? void 0 : c.sourceList : void 0;
55
55
  }
56
- ), V2 = (e) => p(
56
+ ), V2 = (e) => M(
57
57
  A,
58
58
  (t) => {
59
59
  var o, c;
60
60
  return t[e] ? (c = (o = t[e]) == null ? void 0 : o.configuration) == null ? void 0 : c.audioControlPointList : void 0;
61
61
  }
62
- ), U2 = (e) => p(
62
+ ), U2 = (e) => M(
63
63
  A,
64
64
  (t) => {
65
65
  var o, c;
66
66
  return t[e] ? (c = (o = t[e]) == null ? void 0 : o.configuration) == null ? void 0 : c.destinations : void 0;
67
67
  }
68
- ), H2 = (e) => p(
68
+ ), H2 = (e) => M(
69
69
  A,
70
70
  (t) => {
71
71
  var o, c;
72
72
  return t[e] ? (c = (o = t[e]) == null ? void 0 : o.configuration) == null ? void 0 : c.destinationList : void 0;
73
73
  }
74
- ), F2 = (e) => p(
74
+ ), F2 = (e) => M(
75
75
  A,
76
76
  (t) => {
77
77
  var o, c;
78
78
  return t[e] ? (c = (o = t[e]) == null ? void 0 : o.configuration) == null ? void 0 : c.environmentalDevices : void 0;
79
79
  }
80
- ), K2 = (e) => p(
80
+ ), K2 = (e) => M(
81
81
  A,
82
82
  (t) => {
83
- var o, c, r, i, v, u, h, m;
84
- return (c = (o = t[e]) == null ? void 0 : o.configuration) != null && c.destinationList.programAudio ? (v = (i = (r = t[e]) == null ? void 0 : r.configuration) == null ? void 0 : i.destinationList.programAudio) == null ? void 0 : v.sinkKey : ((m = (h = (u = t[e]) == null ? void 0 : u.configuration) == null ? void 0 : h.destinationList.defaultDisplay) == null ? void 0 : m.sinkKey) || "";
83
+ var o, c, r, i, a, g, v, f;
84
+ return (c = (o = t[e]) == null ? void 0 : o.configuration) != null && c.destinationList.programAudio ? (a = (i = (r = t[e]) == null ? void 0 : r.configuration) == null ? void 0 : i.destinationList.programAudio) == null ? void 0 : a.sinkKey : ((f = (v = (g = t[e]) == null ? void 0 : g.configuration) == null ? void 0 : v.destinationList.defaultDisplay) == null ? void 0 : f.sinkKey) || "";
85
85
  }
86
- ), q2 = (e) => p(
86
+ ), q2 = (e) => M(
87
87
  A,
88
88
  (t) => {
89
89
  var o, c, r;
90
90
  return t[e] ? (r = (c = (o = t[e]) == null ? void 0 : o.configuration) == null ? void 0 : c.destinationList.codecContent) == null ? void 0 : r.sinkKey : void 0;
91
91
  }
92
- ), G2 = (e) => p(
92
+ ), G2 = (e) => M(
93
93
  A,
94
94
  (t) => {
95
95
  var o;
96
96
  return t[e] ? (o = t[e]) == null ? void 0 : o.isInCall : void 0;
97
97
  }
98
- ), Y2 = (e) => p(
98
+ ), Y2 = (e) => M(
99
99
  A,
100
100
  (t) => {
101
101
  var o;
102
102
  return t[e] ? (o = t[e]) == null ? void 0 : o.isWarmingUp : void 0;
103
103
  }
104
- ), z2 = (e) => p(
104
+ ), z2 = (e) => M(
105
105
  A,
106
106
  (t) => {
107
107
  var o;
108
108
  return t[e] ? (o = t[e]) == null ? void 0 : o.isCoolingDown : void 0;
109
109
  }
110
- ), J2 = (e) => p(
110
+ ), J2 = (e) => M(
111
111
  A,
112
112
  (t) => {
113
113
  var o;
114
114
  return t[e] ? (o = t[e]) == null ? void 0 : o.isOn : void 0;
115
115
  }
116
- ), X2 = (e) => p(
116
+ ), X2 = (e) => M(
117
117
  A,
118
118
  (t) => {
119
119
  var o;
120
120
  return t[e] ? (o = t[e]) == null ? void 0 : o.advancedSharingActive : void 0;
121
121
  }
122
- ), Q2 = (e) => p(
122
+ ), Q2 = (e) => M(
123
123
  A,
124
124
  (t) => {
125
125
  var o;
126
126
  return t[e] ? (o = t[e]) == null ? void 0 : o.share : void 0;
127
127
  }
128
- ), N2 = (e) => p(
128
+ ), N2 = (e) => M(
129
129
  A,
130
130
  (t) => {
131
131
  var o, c;
132
132
  return t[e] ? (c = (o = t[e]) == null ? void 0 : o.configuration) == null ? void 0 : c.zoomRoomControllerKey : void 0;
133
133
  }
134
- ), ee = p(
134
+ ), ee = M(
135
135
  [
136
136
  (e, t) => t,
137
137
  () => C3,
@@ -147,76 +147,76 @@ const A = (e) => e.rooms, L2 = (e) => p(
147
147
  }
148
148
  );
149
149
  function n6(e) {
150
- return f(
150
+ return m(
151
151
  L2(e)
152
152
  );
153
153
  }
154
154
  function o6() {
155
- return f($2);
155
+ return m($2);
156
156
  }
157
- function Z1(e) {
158
- return f(A2(e));
157
+ function S1(e) {
158
+ return m(A2(e));
159
159
  }
160
- const s6 = Z1, c6 = (e) => f(
160
+ const s6 = S1, c6 = (e) => m(
161
161
  B2(e)
162
- ), te = (e, t) => f(
162
+ ), te = (e, t) => m(
163
163
  k2(e, t)
164
- ), ne = (e) => f(O2(e)) || void 0, r6 = (e) => f(W2(e)), l6 = (e) => f(V2(e)), i6 = (e) => f(U2(e)), a6 = (e) => f(H2(e)), u6 = (e) => f(F2(e)), d6 = (e) => f(K2(e)), v6 = (e) => f(q2(e)), h6 = (e) => f(G2(e)), g6 = (e) => f(Y2(e)), f6 = (e) => f(z2(e)), w6 = (e) => f(J2(e)), p6 = (e) => f(X2(e)), m6 = (e) => f(Q2(e)), M6 = (e) => f((t) => ee(t, e)), x6 = (e) => f(N2(e)), G = (e) => e.runtimeConfig, oe = p(
164
+ ), ne = (e) => m(O2(e)) || void 0, r6 = (e) => m(W2(e)), l6 = (e) => m(V2(e)), i6 = (e) => m(U2(e)), a6 = (e) => m(H2(e)), u6 = (e) => m(F2(e)), d6 = (e) => m(K2(e)), v6 = (e) => m(q2(e)), h6 = (e) => m(G2(e)), g6 = (e) => m(Y2(e)), f6 = (e) => m(z2(e)), w6 = (e) => m(J2(e)), m6 = (e) => m(X2(e)), p6 = (e) => m(Q2(e)), M6 = (e) => m((t) => ee(t, e)), x6 = (e) => m(N2(e)), G = (e) => e.runtimeConfig, oe = M(
165
165
  G,
166
166
  (e) => e.websocket.isConnected
167
- ), se = p(
167
+ ), se = M(
168
168
  G,
169
169
  (e) => e.currentRoomKey
170
- ), ce = p(
170
+ ), ce = M(
171
171
  G,
172
172
  (e) => e.roomData.clientId
173
- ), re = p(
173
+ ), re = M(
174
174
  G,
175
175
  (e) => e.roomData.systemUuid
176
- ), le = p(
176
+ ), le = M(
177
177
  G,
178
178
  (e) => e.roomData.userCode
179
- ), ie = p(
179
+ ), ie = M(
180
180
  G,
181
181
  (e) => e.serverIsRunningOnProcessorHardware
182
- ), ae = p(
182
+ ), ae = M(
183
183
  G,
184
184
  (e) => {
185
185
  var t;
186
186
  return (t = e.roomData.config) == null ? void 0 : t.runtimeInfo;
187
187
  }
188
- ), ue = p(
188
+ ), ue = M(
189
189
  G,
190
190
  (e) => e.touchpanelKey
191
- ), de = p(
191
+ ), de = M(
192
192
  G,
193
193
  (e) => e.touchpanelKey !== ""
194
- ), b3 = p(
194
+ ), b3 = M(
195
195
  G,
196
196
  (e) => e.roomData.deviceInterfaceSupport
197
- ), y3 = (e) => p(
197
+ ), y3 = (e) => M(
198
198
  b3,
199
199
  (t) => {
200
200
  var o;
201
201
  return ((o = t == null ? void 0 : t[e]) == null ? void 0 : o.interfaces) ?? [];
202
202
  }
203
- ), ve = (e, t) => p(
203
+ ), ve = (e, t) => M(
204
204
  y3(e),
205
205
  (o) => o.includes(t)
206
- ), I3 = () => f(oe), Z6 = () => f(se), S6 = () => f(ce), j6 = () => f(re), C6 = () => f(le), b6 = () => f(ie), y6 = () => f(ae), I6 = () => f(ue), R6 = () => f(de), E6 = () => f(b3), T6 = (e) => f(y3(e)), D6 = (e, t) => f(ve(e, t)), N = (e) => e.ui, V1 = (e) => p(N, (t) => t.modalVisibility[e]), he = (e) => p(N, (t) => {
206
+ ), I3 = () => m(oe), Z6 = () => m(se), S6 = () => m(ce), j6 = () => m(re), C6 = () => m(le), b6 = () => m(ie), y6 = () => m(ae), I6 = () => m(ue), R6 = () => m(de), E6 = () => m(b3), T6 = (e) => m(y3(e)), D6 = (e, t) => m(ve(e, t)), N = (e) => e.ui, V1 = (e) => M(N, (t) => t.modalVisibility[e]), he = (e) => M(N, (t) => {
207
207
  const o = t.popoverVisibility[e];
208
208
  if (o)
209
209
  return Object.keys(o).find((c) => o[c]);
210
- }), ge = (e, t) => p(
210
+ }), ge = (e, t) => M(
211
211
  N,
212
212
  (o) => {
213
213
  var c;
214
214
  return ((c = o.popoverVisibility[e]) == null ? void 0 : c[t]) ?? !1;
215
215
  }
216
- ), fe = p(N, (e) => e.error), we = p(
216
+ ), fe = M(N, (e) => e.error), we = M(
217
217
  N,
218
218
  (e) => e.showReconnect
219
- ), pe = p(N, (e) => e.theme), me = (e) => p(N, (t) => t.syncState.includes(e)), _6 = () => f(V1("showShutdownModal")), P6 = () => f(V1("showIncomingCallModal")), L6 = (e) => f(V1(e)), $6 = (e) => f(he(e)), A6 = (e, t) => f(ge(e, t)), Me = () => f(fe), xe = () => f(we), B6 = () => f(pe), Ze = (e) => f(me(e)), Se = {
219
+ ), me = M(N, (e) => e.theme), pe = (e) => M(N, (t) => t.syncState.includes(e)), _6 = () => m(V1("showShutdownModal")), P6 = () => m(V1("showIncomingCallModal")), L6 = (e) => m(V1(e)), $6 = (e) => m(he(e)), A6 = (e, t) => m(ge(e, t)), Me = () => m(fe), xe = () => m(we), B6 = () => m(me), Ze = (e) => m(pe(e)), Se = {
220
220
  showReconnect: !1,
221
221
  error: "",
222
222
  modalVisibility: {
@@ -225,7 +225,7 @@ const s6 = Z1, c6 = (e) => f(
225
225
  },
226
226
  popoverVisibility: {},
227
227
  syncState: []
228
- }, R3 = a1({
228
+ }, R3 = u1({
229
229
  name: "ui",
230
230
  initialState: Se,
231
231
  reducers: {
@@ -281,7 +281,7 @@ const s6 = Z1, c6 = (e) => f(
281
281
  loginMode: "",
282
282
  modes: {}
283
283
  }
284
- }, E3 = a1({
284
+ }, E3 = u1({
285
285
  name: "appConfig",
286
286
  initialState: Ce,
287
287
  reducers: {
@@ -289,21 +289,21 @@ const s6 = Z1, c6 = (e) => f(
289
289
  e.config = t.payload;
290
290
  }
291
291
  }
292
- }), T3 = E3.actions, be = E3.reducer, v3 = {}, B1 = a1({
292
+ }), T3 = E3.actions, be = E3.reducer, v3 = {}, B1 = u1({
293
293
  name: "devices",
294
294
  initialState: v3,
295
295
  reducers: {
296
296
  setDeviceState(e, t) {
297
297
  const o = t.payload.type, c = o.slice(o.lastIndexOf("/") + 1);
298
298
  if (!c) return;
299
- const r = t.payload.content, i = e[c] ?? {}, v = S3.merge(i, r);
300
- e[c] = v;
299
+ const r = t.payload.content, i = e[c] ?? {}, a = S3.merge(i, r);
300
+ e[c] = a;
301
301
  },
302
302
  clearDevices() {
303
303
  return v3;
304
304
  }
305
305
  }
306
- }), g1 = {
306
+ }), f1 = {
307
307
  setDeviceState: B1.actions.setDeviceState,
308
308
  clearDevices: B1.actions.clearDevices
309
309
  }, ye = B1.reducer;
@@ -322,21 +322,21 @@ function Re(e) {
322
322
  function Ee(e, t) {
323
323
  sessionStorage.setItem(e, t);
324
324
  }
325
- const g3 = {}, k1 = a1({
325
+ const g3 = {}, k1 = u1({
326
326
  name: "rooms",
327
327
  initialState: g3,
328
328
  reducers: {
329
329
  setRoomState(e, t) {
330
330
  const o = t.payload.type, c = o.slice(o.lastIndexOf("/") + 1);
331
331
  if (!c) return;
332
- const r = t.payload.content, i = e[c] ?? {}, v = S3.merge(i, r);
333
- e[c] = v;
332
+ const r = t.payload.content, i = e[c] ?? {}, a = S3.merge(i, r);
333
+ e[c] = a;
334
334
  },
335
335
  clearRooms() {
336
336
  return g3;
337
337
  }
338
338
  }
339
- }), f1 = {
339
+ }), w1 = {
340
340
  setRoomState: k1.actions.setRoomState,
341
341
  clearRooms: k1.actions.clearRooms
342
342
  }, Te = k1.reducer, De = {
@@ -370,7 +370,7 @@ const g3 = {}, k1 = a1({
370
370
  userCode: "",
371
371
  qrUrl: ""
372
372
  }
373
- }, D3 = a1({
373
+ }, D3 = u1({
374
374
  name: "runtimeConfig",
375
375
  initialState: De,
376
376
  reducers: {
@@ -405,7 +405,7 @@ const g3 = {}, k1 = a1({
405
405
  e.touchpanelKey = t.payload;
406
406
  }
407
407
  }
408
- }), U = D3.actions, _e = D3.reducer, P1 = M3.create(), _3 = "websocket/connect", P3 = "websocket/disconnect", L3 = "websocket/sendMessage", $3 = "websocket/addEventHandler", A3 = "websocket/removeEventHandler", B3 = "websocket/reconnect", k3 = () => ({ type: _3 }), k6 = () => ({ type: P3 }), Pe = (e, t) => ({
408
+ }), U = D3.actions, _e = D3.reducer, L1 = M3.create(), _3 = "websocket/connect", P3 = "websocket/disconnect", L3 = "websocket/sendMessage", $3 = "websocket/addEventHandler", A3 = "websocket/removeEventHandler", B3 = "websocket/reconnect", k3 = () => ({ type: _3 }), k6 = () => ({ type: P3 }), Pe = (e, t) => ({
409
409
  type: L3,
410
410
  payload: { messageType: e, content: t }
411
411
  }), Le = (e, t, o) => ({
@@ -421,72 +421,72 @@ const g3 = {}, k1 = a1({
421
421
  waitingToReconnect: !1,
422
422
  reconnectTimer: null,
423
423
  eventHandlers: {}
424
- }, t = async (a) => {
424
+ }, t = async (u) => {
425
425
  try {
426
- const Z = location.pathname.split("/").filter((b) => b.length > 0);
427
- Z.length >= 5 ? Z.length = 5 : Z.length = 2;
428
- const j = `/${Z.join("/")}`, C = await P1.get(
426
+ const S = location.pathname.split("/").filter((y) => y.length > 0);
427
+ S.length >= 5 ? S.length = 5 : S.length = 2;
428
+ const C = `/${S.join("/")}`, b = await L1.get(
429
429
  "/_local-config/_config.local.json",
430
- { baseURL: j }
430
+ { baseURL: C }
431
431
  );
432
- if (C.status === 200 && C.data) {
433
- const b = C.data.apiPath;
434
- a(T3.setAppConfig(C.data));
435
- const x = await P1.get(
436
- `${b}/version`
432
+ if (b.status === 200 && b.data) {
433
+ const y = b.data.apiPath;
434
+ u(T3.setAppConfig(b.data));
435
+ const Z = await L1.get(
436
+ `${y}/version`
437
437
  );
438
- x.status === 200 && x.data && a(U.setRuntimeConfig(x.data));
438
+ Z.status === 200 && Z.data && u(U.setRuntimeConfig(Z.data));
439
439
  }
440
- } catch (Z) {
441
- console.error("Error getting config", Z);
440
+ } catch (S) {
441
+ console.error("Error getting config", S);
442
442
  }
443
443
  return !0;
444
- }, o = async (a, Z, j) => {
444
+ }, o = async (u, S, C) => {
445
445
  try {
446
- const C = await P1.get(
447
- `${a}/ui/joinroom?token=${Z}`
446
+ const b = await L1.get(
447
+ `${u}/ui/joinroom?token=${S}`
448
448
  );
449
- return C.status === 200 && C.data ? (j(U.setRoomData(C.data)), !0) : !1;
450
- } catch (C) {
451
- return console.log(C), C instanceof m2 && C.response && C.response.status === 498 ? (console.error("Invalid token. Unable to join room"), j(
449
+ return b.status === 200 && b.data ? (C(U.setRoomData(b.data)), !0) : !1;
450
+ } catch (b) {
451
+ return console.log(b), b instanceof p2 && b.response && b.response.status === 498 ? (console.error("Invalid token. Unable to join room"), C(
452
452
  O.setErrorMessage(
453
- `Token ${Z} is invalid. Unable to join room`
453
+ `Token ${S} is invalid. Unable to join room`
454
454
  )
455
- ), !1) : (console.error("Error getting room data", C), C instanceof Error ? j(O.setErrorMessage(C.message)) : j(O.setErrorMessage("Error getting room data")), !1);
455
+ ), !1) : (console.error("Error getting room data", b), b instanceof Error ? C(O.setErrorMessage(b.message)) : C(O.setErrorMessage("Error getting room data")), !1);
456
456
  }
457
- }, c = (a) => {
457
+ }, c = (u) => {
458
458
  e.reconnectTimer && (clearTimeout(e.reconnectTimer), e.reconnectTimer = null), console.log("WebSocket middleware: Starting reconnection loop..."), e.reconnectTimer = setTimeout(() => {
459
- e.waitingToReconnect = !1, e.reconnectTimer = null, console.log("WebSocket middleware: Attempting automatic reconnection..."), a(k3());
459
+ e.waitingToReconnect = !1, e.reconnectTimer = null, console.log("WebSocket middleware: Attempting automatic reconnection..."), u(k3());
460
460
  }, 5e3);
461
461
  }, r = () => {
462
462
  e.reconnectTimer && (console.log("WebSocket middleware: Stopping reconnection loop"), clearTimeout(e.reconnectTimer), e.reconnectTimer = null);
463
- }, i = (a) => {
464
- a(O.setShowReconnect(!0)), a(U.setWebsocketIsConnected(!1)), a(g1.clearDevices()), a(f1.clearRooms()), a(O.clearAllModals()), a(O.clearSyncState());
465
- }, v = (a, Z) => {
466
- const j = a(), C = Z ?? j.runtimeConfig.roomData.roomKey, { clientId: b } = j.runtimeConfig.roomData, x = j.runtimeConfig.websocket.isConnected;
467
- if (!Z || !x || !b) {
463
+ }, i = (u) => {
464
+ u(O.setShowReconnect(!0)), u(U.setWebsocketIsConnected(!1)), u(f1.clearDevices()), u(w1.clearRooms()), u(O.clearAllModals()), u(O.clearSyncState());
465
+ }, a = (u, S) => {
466
+ const C = u(), b = S ?? C.runtimeConfig.roomData.roomKey, { clientId: y } = C.runtimeConfig.roomData, Z = C.runtimeConfig.websocket.isConnected;
467
+ if (!S || !Z || !y) {
468
468
  console.log("WebSocket middleware: Cannot request room status", {
469
- hasRoomKey: !!Z,
470
- isConnected: x,
471
- hasClientId: !!b
469
+ hasRoomKey: !!S,
470
+ isConnected: Z,
471
+ hasClientId: !!y
472
472
  });
473
473
  return;
474
474
  }
475
- console.log("WebSocket middleware: Requesting status from room:", Z), e.client && x && e.client.send(
475
+ console.log("WebSocket middleware: Requesting status from room:", S), e.client && Z && e.client.send(
476
476
  JSON.stringify({
477
- type: `/room/${C}/status`,
478
- clientId: b,
477
+ type: `/room/${b}/status`,
478
+ clientId: y,
479
479
  content: null
480
480
  })
481
481
  );
482
- }, u = async (a, Z) => {
482
+ }, g = async (u, S) => {
483
483
  console.log("WebSocket middleware: Attempting to connect...");
484
- const j = Z(), { apiPath: C } = j.appConfig.config, { serverIsRunningOnProcessorHardware: b } = j.runtimeConfig;
485
- if (!C || !e.token) {
484
+ const C = S(), { apiPath: b } = C.appConfig.config, { serverIsRunningOnProcessorHardware: y } = C.runtimeConfig;
485
+ if (!b || !e.token) {
486
486
  console.log(
487
487
  "WebSocket middleware: Cannot connect - missing requirements",
488
488
  {
489
- hasApiPath: !!C,
489
+ hasApiPath: !!b,
490
490
  hasToken: !!e.token
491
491
  }
492
492
  );
@@ -504,65 +504,65 @@ const g3 = {}, k1 = a1({
504
504
  }
505
505
  e.waitingToReconnect = !0;
506
506
  try {
507
- if (!await o(C, e.token, a)) {
507
+ if (!await o(b, e.token, u)) {
508
508
  console.log(
509
509
  "WebSocket middleware: Failed to get room data, will retry..."
510
- ), c(a);
510
+ ), c(u);
511
511
  return;
512
512
  }
513
513
  console.log("WebSocket middleware: Connecting to websocket");
514
- const j1 = `${C.replace("http", "ws")}/ui/join/${e.token}`, K = new WebSocket(j1);
514
+ const C1 = `${b.replace("http", "ws")}/ui/join/${e.token}`, K = new WebSocket(C1);
515
515
  e.client = K, K.onopen = (B) => {
516
516
  console.log("WebSocket middleware: Connected", B.type, B.target), e.waitingToReconnect = !1, r(), setTimeout(() => {
517
- e.client === K && K.readyState === WebSocket.OPEN && a(U.setWebsocketIsConnected(!0));
517
+ e.client === K && K.readyState === WebSocket.OPEN && u(U.setWebsocketIsConnected(!0));
518
518
  }, 100);
519
519
  }, K.onerror = (B) => {
520
- console.error("WebSocket middleware: Error", B), i(a);
520
+ console.error("WebSocket middleware: Error", B), i(u);
521
521
  }, K.onclose = (B) => {
522
- var D;
522
+ var _;
523
523
  if (console.log(
524
524
  "WebSocket middleware: Disconnected",
525
525
  B.reason,
526
526
  B.code
527
527
  ), B.code === 4100) {
528
- console.log("WebSocket middleware: Closed by client (cleanup)"), r(), i(a);
528
+ console.log("WebSocket middleware: Closed by client (cleanup)"), r(), i(u);
529
529
  return;
530
530
  }
531
531
  if (e.waitingToReconnect = !0, B.code === 4e3) {
532
- console.log("WebSocket middleware: User code changed"), r(), a(
532
+ console.log("WebSocket middleware: User code changed"), r(), u(
533
533
  U.setUserCode({ userCode: "", qrUrl: "" })
534
- ), a(
534
+ ), u(
535
535
  O.setErrorMessage(
536
536
  "User code changed. Click reconnect to enter the new code"
537
537
  )
538
- ), i(a);
538
+ ), i(u);
539
539
  return;
540
540
  }
541
541
  if (B.code === 4002) {
542
- console.log("WebSocket middleware: Room combination changed"), r(), a(
542
+ console.log("WebSocket middleware: Room combination changed"), r(), u(
543
543
  O.setErrorMessage(
544
544
  "Room combination changed. Click Reconnect to re-join the room"
545
545
  )
546
- ), i(a);
546
+ ), i(u);
547
547
  return;
548
548
  }
549
549
  if (B.code === 4001)
550
- if (!!((D = Z().runtimeConfig) != null && D.touchpanelKey))
550
+ if (!!((_ = S().runtimeConfig) != null && _.touchpanelKey))
551
551
  console.log(
552
552
  "WebSocket middleware: Code 4001 received with touchpanel key present, will auto-reconnect"
553
553
  );
554
- else if (b)
554
+ else if (y)
555
555
  console.log(
556
556
  "WebSocket middleware: Code 4001 on processor hardware (no touchpanel key), will auto-reconnect"
557
557
  );
558
558
  else {
559
559
  console.log(
560
560
  "WebSocket middleware: Processor disconnected (no touchpanel key, not on processor hardware)"
561
- ), r(), a(
561
+ ), r(), u(
562
562
  O.setErrorMessage(
563
563
  "Processor has disconnected. Click Reconnect to continue."
564
564
  )
565
- ), i(a);
565
+ ), i(u);
566
566
  return;
567
567
  }
568
568
  if (e.client)
@@ -573,45 +573,45 @@ const g3 = {}, k1 = a1({
573
573
  console.log("WebSocket middleware: Closed by client");
574
574
  return;
575
575
  }
576
- e.client = null, console.log("WebSocket middleware: Clearing state on disconnect"), a(
576
+ e.client = null, console.log("WebSocket middleware: Clearing state on disconnect"), u(
577
577
  O.setErrorMessage(
578
578
  "Connection lost. Attempting to reconnect..."
579
579
  )
580
- ), a(U.setWebsocketIsConnected(!1)), a(g1.clearDevices()), a(f1.clearRooms()), a(O.clearAllModals()), a(O.clearSyncState()), c(a);
580
+ ), u(U.setWebsocketIsConnected(!1)), u(f1.clearDevices()), u(w1.clearRooms()), u(O.clearAllModals()), u(O.clearSyncState()), c(u);
581
581
  }, K.onmessage = (B) => {
582
582
  try {
583
- const D = JSON.parse(B.data);
584
- if (D.type === "close") {
585
- K.close(4001, D.content);
583
+ const _ = JSON.parse(B.data);
584
+ if (_.type === "close") {
585
+ K.close(4001, _.content);
586
586
  return;
587
587
  }
588
- if (D.type.startsWith("/system/"))
589
- switch (D.type) {
588
+ if (_.type.startsWith("/system/"))
589
+ switch (_.type) {
590
590
  case "/system/touchpanelKey":
591
- a(
591
+ u(
592
592
  U.setTouchpanelKey(
593
- D.content
593
+ _.content
594
594
  )
595
595
  );
596
596
  break;
597
597
  case "/system/roomKey":
598
- a(f1.clearRooms()), a(g1.clearDevices()), a(O.clearSyncState()), a(
598
+ u(w1.clearRooms()), u(f1.clearDevices()), u(O.clearSyncState()), u(
599
599
  U.setCurrentRoomKey(
600
- D.content
600
+ _.content
601
601
  )
602
602
  );
603
603
  break;
604
604
  case "/system/userCodeChanged":
605
- a(
606
- U.setUserCode(D.content)
605
+ u(
606
+ U.setUserCode(_.content)
607
607
  );
608
608
  break;
609
609
  case "/system/roomCombinationChanged":
610
610
  window.location.reload();
611
611
  break;
612
612
  case "/system/deviceInterfaces": {
613
- const z = D.content;
614
- a(
613
+ const z = _.content;
614
+ u(
615
615
  U.setDeviceInterfaces(
616
616
  z.deviceInterfaces
617
617
  )
@@ -621,113 +621,113 @@ const g3 = {}, k1 = a1({
621
621
  default:
622
622
  console.log(
623
623
  "WebSocket middleware: Unhandled system message",
624
- D
624
+ _
625
625
  );
626
626
  break;
627
627
  }
628
- else if (D.type.startsWith("/event/")) {
629
- const z = e.eventHandlers[D.type];
628
+ else if (_.type.startsWith("/event/")) {
629
+ const z = e.eventHandlers[_.type];
630
630
  z || console.log(
631
631
  "WebSocket middleware: No handlers found for event type",
632
- D.type
633
- ), z && Object.values(z).forEach((n1) => {
632
+ _.type
633
+ ), z && Object.values(z).forEach((s1) => {
634
634
  try {
635
- n1(D);
636
- } catch (C1) {
635
+ s1(_);
636
+ } catch (b1) {
637
637
  console.error(
638
638
  "WebSocket middleware: Event handler error",
639
- C1
639
+ b1
640
640
  );
641
641
  }
642
642
  });
643
- } else D.type.startsWith("/room/") ? a(f1.setRoomState(D)) : D.type.startsWith("/device/") && a(g1.setDeviceState(D));
644
- } catch (D) {
645
- console.error("WebSocket middleware: Message handling error", D);
643
+ } else _.type.startsWith("/room/") ? u(w1.setRoomState(_)) : _.type.startsWith("/device/") && u(f1.setDeviceState(_));
644
+ } catch (_) {
645
+ console.error("WebSocket middleware: Message handling error", _);
646
646
  }
647
647
  }, e.waitingToReconnect = !1;
648
- } catch (x) {
649
- console.error("WebSocket middleware: Connection error", x), e.waitingToReconnect = !1, e.client = null;
648
+ } catch (Z) {
649
+ console.error("WebSocket middleware: Connection error", Z), e.waitingToReconnect = !1, e.client = null;
650
650
  }
651
- }, h = () => {
651
+ }, v = () => {
652
652
  e.client && (console.log("WebSocket middleware: Disconnecting"), r(), e.client.close(4100, "Client requested disconnect"), e.client = null);
653
- }, m = (a, Z, j) => {
654
- const C = j(), b = C.runtimeConfig.websocket.isConnected, x = C.runtimeConfig.roomData.clientId;
655
- e.client && b ? e.client.send(
656
- JSON.stringify({ type: a, clientId: x, content: Z })
653
+ }, f = (u, S, C) => {
654
+ const b = C(), y = b.runtimeConfig.websocket.isConnected, Z = b.runtimeConfig.roomData.clientId;
655
+ e.client && y ? e.client.send(
656
+ JSON.stringify({ type: u, clientId: Z, content: S })
657
657
  ) : console.warn("WebSocket middleware: Cannot send message - not connected");
658
- }, M = (a, Z, j) => {
659
- e.eventHandlers[a] || (e.eventHandlers[a] = {}), e.eventHandlers[a][Z] = j, console.log("WebSocket middleware: Event handler added", a, Z);
660
- }, P = (a, Z) => {
661
- e.eventHandlers[a] && (delete e.eventHandlers[a][Z], console.log(
658
+ }, w = (u, S, C) => {
659
+ e.eventHandlers[u] || (e.eventHandlers[u] = {}), e.eventHandlers[u][S] = C, console.log("WebSocket middleware: Event handler added", u, S);
660
+ }, x = (u, S) => {
661
+ e.eventHandlers[u] && (delete e.eventHandlers[u][S], console.log(
662
662
  "WebSocket middleware: Event handler removed",
663
- a,
664
- Z
663
+ u,
664
+ S
665
665
  ));
666
- }, H = (a) => {
667
- const Z = a(), { gatewayAppPath: j } = Z.appConfig.config, C = Z.runtimeConfig.roomData.roomKey, b = Z.runtimeConfig.roomData.systemUuid, x = Z.runtimeConfig.roomData.userCode, W = `${j}?uuid=${b}&roomKey=${C}`;
668
- window.location.href = x ? `${W}&Code=${x}` : W;
666
+ }, H = (u) => {
667
+ const S = u(), { gatewayAppPath: C } = S.appConfig.config, b = S.runtimeConfig.roomData.roomKey, y = S.runtimeConfig.roomData.systemUuid, Z = S.runtimeConfig.roomData.userCode, W = `${C}?uuid=${y}&roomKey=${b}`;
668
+ window.location.href = Z ? `${W}&Code=${Z}` : W;
669
669
  };
670
- return (a) => (Z) => (j) => {
671
- const C = Z(j);
672
- if (!j || typeof j != "object" || !("type" in j))
673
- return C;
674
- const b = j;
670
+ return (u) => (S) => (C) => {
671
+ const b = S(C);
672
+ if (!C || typeof C != "object" || !("type" in C))
673
+ return b;
674
+ const y = C;
675
675
  return (async () => {
676
- switch (b.type) {
676
+ switch (y.type) {
677
677
  case _3: {
678
678
  let W = new URLSearchParams(window.location.search).get("token");
679
- W ? (console.log("WebSocket middleware: Saving token"), Ee(h3.uuid, W)) : (W = Re(h3.uuid), console.log("WebSocket middleware: Loading token")), e.token = W, await t(a.dispatch), await u(a.dispatch, a.getState);
679
+ W ? (console.log("WebSocket middleware: Saving token"), Ee(h3.uuid, W)) : (W = Re(h3.uuid), console.log("WebSocket middleware: Loading token")), e.token = W, await t(u.dispatch), await g(u.dispatch, u.getState);
680
680
  break;
681
681
  }
682
682
  case P3:
683
- h();
683
+ v();
684
684
  break;
685
685
  case L3:
686
- m(
687
- b.payload.messageType,
688
- b.payload.content,
689
- a.getState
686
+ f(
687
+ y.payload.messageType,
688
+ y.payload.content,
689
+ u.getState
690
690
  );
691
691
  break;
692
692
  case $3:
693
- M(
694
- b.payload.eventType,
695
- b.payload.key,
696
- b.payload.callback
693
+ w(
694
+ y.payload.eventType,
695
+ y.payload.key,
696
+ y.payload.callback
697
697
  );
698
698
  break;
699
699
  case A3:
700
- P(
701
- b.payload.eventType,
702
- b.payload.key
700
+ x(
701
+ y.payload.eventType,
702
+ y.payload.key
703
703
  );
704
704
  break;
705
705
  case B3:
706
- H(a.getState);
706
+ H(u.getState);
707
707
  break;
708
708
  default:
709
- if (j.type === U.setWebsocketIsConnected.type)
710
- j.payload === !0 && (console.log(
709
+ if (C.type === U.setWebsocketIsConnected.type)
710
+ C.payload === !0 && (console.log(
711
711
  "[WebSocket Middleware] Connection established, requesting room status..."
712
- ), setTimeout(() => v(a.getState), 100));
713
- else if (j.type === U.setRoomData.type) {
714
- const x = a.getState(), W = j.payload;
715
- x.runtimeConfig.websocket.isConnected && (W != null && W.clientId) && (console.log(
712
+ ), setTimeout(() => a(u.getState), 100));
713
+ else if (C.type === U.setRoomData.type) {
714
+ const Z = u.getState(), W = C.payload;
715
+ Z.runtimeConfig.websocket.isConnected && (W != null && W.clientId) && (console.log(
716
716
  "[WebSocket Middleware] Room data received, requesting room status..."
717
- ), setTimeout(() => v(a.getState), 100));
718
- } else if (j.type === U.setCurrentRoomKey.type) {
719
- const x = j.payload;
720
- x && (console.log(
717
+ ), setTimeout(() => a(u.getState), 100));
718
+ } else if (C.type === U.setCurrentRoomKey.type) {
719
+ const Z = C.payload;
720
+ Z && (console.log(
721
721
  "[WebSocket Middleware] Room changed to:",
722
- x,
722
+ Z,
723
723
  ", requesting room status..."
724
- ), setTimeout(() => v(a.getState, x), 100));
724
+ ), setTimeout(() => a(u.getState, Z), 100));
725
725
  }
726
726
  break;
727
727
  }
728
- })().catch((x) => {
729
- console.error("WebSocket middleware: Error handling action", x);
730
- }), C;
728
+ })().catch((Z) => {
729
+ console.error("WebSocket middleware: Error handling action", Z);
730
+ }), b;
731
731
  };
732
732
  }, ke = S2({
733
733
  appConfig: be,
@@ -768,7 +768,7 @@ function O6() {
768
768
  return !0;
769
769
  };
770
770
  }
771
- var w1 = { exports: {} }, r1 = {};
771
+ var m1 = { exports: {} }, l1 = {};
772
772
  /**
773
773
  * @license React
774
774
  * react-jsx-runtime.production.min.js
@@ -780,19 +780,19 @@ var w1 = { exports: {} }, r1 = {};
780
780
  */
781
781
  var w3;
782
782
  function We() {
783
- if (w3) return r1;
783
+ if (w3) return l1;
784
784
  w3 = 1;
785
785
  var e = x3, t = Symbol.for("react.element"), o = Symbol.for("react.fragment"), c = Object.prototype.hasOwnProperty, r = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, i = { key: !0, ref: !0, __self: !0, __source: !0 };
786
- function v(u, h, m) {
787
- var M, P = {}, H = null, a = null;
788
- m !== void 0 && (H = "" + m), h.key !== void 0 && (H = "" + h.key), h.ref !== void 0 && (a = h.ref);
789
- for (M in h) c.call(h, M) && !i.hasOwnProperty(M) && (P[M] = h[M]);
790
- if (u && u.defaultProps) for (M in h = u.defaultProps, h) P[M] === void 0 && (P[M] = h[M]);
791
- return { $$typeof: t, type: u, key: H, ref: a, props: P, _owner: r.current };
786
+ function a(g, v, f) {
787
+ var w, x = {}, H = null, u = null;
788
+ f !== void 0 && (H = "" + f), v.key !== void 0 && (H = "" + v.key), v.ref !== void 0 && (u = v.ref);
789
+ for (w in v) c.call(v, w) && !i.hasOwnProperty(w) && (x[w] = v[w]);
790
+ if (g && g.defaultProps) for (w in v = g.defaultProps, v) x[w] === void 0 && (x[w] = v[w]);
791
+ return { $$typeof: t, type: g, key: H, ref: u, props: x, _owner: r.current };
792
792
  }
793
- return r1.Fragment = o, r1.jsx = v, r1.jsxs = v, r1;
793
+ return l1.Fragment = o, l1.jsx = a, l1.jsxs = a, l1;
794
794
  }
795
- var l1 = {};
795
+ var i1 = {};
796
796
  /**
797
797
  * @license React
798
798
  * react-jsx-runtime.development.js
@@ -802,49 +802,49 @@ var l1 = {};
802
802
  * This source code is licensed under the MIT license found in the
803
803
  * LICENSE file in the root directory of this source tree.
804
804
  */
805
- var p3;
805
+ var m3;
806
806
  function Ve() {
807
- return p3 || (p3 = 1, process.env.NODE_ENV !== "production" && function() {
808
- var e = x3, t = Symbol.for("react.element"), o = Symbol.for("react.portal"), c = Symbol.for("react.fragment"), r = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), v = Symbol.for("react.provider"), u = Symbol.for("react.context"), h = Symbol.for("react.forward_ref"), m = Symbol.for("react.suspense"), M = Symbol.for("react.suspense_list"), P = Symbol.for("react.memo"), H = Symbol.for("react.lazy"), a = Symbol.for("react.offscreen"), Z = Symbol.iterator, j = "@@iterator";
809
- function C(s) {
807
+ return m3 || (m3 = 1, process.env.NODE_ENV !== "production" && function() {
808
+ var e = x3, t = Symbol.for("react.element"), o = Symbol.for("react.portal"), c = Symbol.for("react.fragment"), r = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), a = Symbol.for("react.provider"), g = Symbol.for("react.context"), v = Symbol.for("react.forward_ref"), f = Symbol.for("react.suspense"), w = Symbol.for("react.suspense_list"), x = Symbol.for("react.memo"), H = Symbol.for("react.lazy"), u = Symbol.for("react.offscreen"), S = Symbol.iterator, C = "@@iterator";
809
+ function b(s) {
810
810
  if (s === null || typeof s != "object")
811
811
  return null;
812
- var l = Z && s[Z] || s[j];
812
+ var l = S && s[S] || s[C];
813
813
  return typeof l == "function" ? l : null;
814
814
  }
815
- var b = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
816
- function x(s) {
815
+ var y = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
816
+ function Z(s) {
817
817
  {
818
- for (var l = arguments.length, d = new Array(l > 1 ? l - 1 : 0), w = 1; w < l; w++)
819
- d[w - 1] = arguments[w];
818
+ for (var l = arguments.length, d = new Array(l > 1 ? l - 1 : 0), p = 1; p < l; p++)
819
+ d[p - 1] = arguments[p];
820
820
  W("error", s, d);
821
821
  }
822
822
  }
823
823
  function W(s, l, d) {
824
824
  {
825
- var w = b.ReactDebugCurrentFrame, E = w.getStackAddendum();
826
- E !== "" && (l += "%s", d = d.concat([E]));
827
- var T = d.map(function(y) {
828
- return String(y);
825
+ var p = y.ReactDebugCurrentFrame, T = p.getStackAddendum();
826
+ T !== "" && (l += "%s", d = d.concat([T]));
827
+ var D = d.map(function(I) {
828
+ return String(I);
829
829
  });
830
- T.unshift("Warning: " + l), Function.prototype.apply.call(console[s], console, T);
830
+ D.unshift("Warning: " + l), Function.prototype.apply.call(console[s], console, D);
831
831
  }
832
832
  }
833
- var j1 = !1, K = !1, B = !1, D = !1, z = !1, n1;
834
- n1 = Symbol.for("react.module.reference");
835
- function C1(s) {
836
- return !!(typeof s == "string" || typeof s == "function" || s === c || s === i || z || s === r || s === m || s === M || D || s === a || j1 || K || B || typeof s == "object" && s !== null && (s.$$typeof === H || s.$$typeof === P || s.$$typeof === v || s.$$typeof === u || s.$$typeof === h || // This needs to include all possible module reference object
833
+ var C1 = !1, K = !1, B = !1, _ = !1, z = !1, s1;
834
+ s1 = Symbol.for("react.module.reference");
835
+ function b1(s) {
836
+ return !!(typeof s == "string" || typeof s == "function" || s === c || s === i || z || s === r || s === f || s === w || _ || s === u || C1 || K || B || typeof s == "object" && s !== null && (s.$$typeof === H || s.$$typeof === x || s.$$typeof === a || s.$$typeof === g || s.$$typeof === v || // This needs to include all possible module reference object
837
837
  // types supported by any Flight configuration anywhere since
838
838
  // we don't know which Flight build this will end up being used
839
839
  // with.
840
- s.$$typeof === n1 || s.getModuleId !== void 0));
840
+ s.$$typeof === s1 || s.getModuleId !== void 0));
841
841
  }
842
842
  function U3(s, l, d) {
843
- var w = s.displayName;
844
- if (w)
845
- return w;
846
- var E = l.displayName || l.name || "";
847
- return E !== "" ? d + "(" + E + ")" : d;
843
+ var p = s.displayName;
844
+ if (p)
845
+ return p;
846
+ var T = l.displayName || l.name || "";
847
+ return T !== "" ? d + "(" + T + ")" : d;
848
848
  }
849
849
  function U1(s) {
850
850
  return s.displayName || "Context";
@@ -852,7 +852,7 @@ function Ve() {
852
852
  function J(s) {
853
853
  if (s == null)
854
854
  return null;
855
- if (typeof s.tag == "number" && x("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof s == "function")
855
+ if (typeof s.tag == "number" && Z("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof s == "function")
856
856
  return s.displayName || s.name || null;
857
857
  if (typeof s == "string")
858
858
  return s;
@@ -865,28 +865,28 @@ function Ve() {
865
865
  return "Profiler";
866
866
  case r:
867
867
  return "StrictMode";
868
- case m:
868
+ case f:
869
869
  return "Suspense";
870
- case M:
870
+ case w:
871
871
  return "SuspenseList";
872
872
  }
873
873
  if (typeof s == "object")
874
874
  switch (s.$$typeof) {
875
- case u:
875
+ case g:
876
876
  var l = s;
877
877
  return U1(l) + ".Consumer";
878
- case v:
878
+ case a:
879
879
  var d = s;
880
880
  return U1(d._context) + ".Provider";
881
- case h:
881
+ case v:
882
882
  return U3(s, s.render, "ForwardRef");
883
- case P:
884
- var w = s.displayName || null;
885
- return w !== null ? w : J(s.type) || "Memo";
883
+ case x:
884
+ var p = s.displayName || null;
885
+ return p !== null ? p : J(s.type) || "Memo";
886
886
  case H: {
887
- var E = s, T = E._payload, y = E._init;
887
+ var T = s, D = T._payload, I = T._init;
888
888
  try {
889
- return J(y(T));
889
+ return J(I(D));
890
890
  } catch {
891
891
  return null;
892
892
  }
@@ -894,13 +894,13 @@ function Ve() {
894
894
  }
895
895
  return null;
896
896
  }
897
- var X = Object.assign, o1 = 0, H1, F1, K1, q1, G1, Y1, z1;
897
+ var X = Object.assign, c1 = 0, H1, F1, K1, q1, G1, Y1, z1;
898
898
  function J1() {
899
899
  }
900
900
  J1.__reactDisabledLog = !0;
901
901
  function H3() {
902
902
  {
903
- if (o1 === 0) {
903
+ if (c1 === 0) {
904
904
  H1 = console.log, F1 = console.info, K1 = console.warn, q1 = console.error, G1 = console.group, Y1 = console.groupCollapsed, z1 = console.groupEnd;
905
905
  var s = {
906
906
  configurable: !0,
@@ -918,12 +918,12 @@ function Ve() {
918
918
  groupEnd: s
919
919
  });
920
920
  }
921
- o1++;
921
+ c1++;
922
922
  }
923
923
  }
924
924
  function F3() {
925
925
  {
926
- if (o1--, o1 === 0) {
926
+ if (c1--, c1 === 0) {
927
927
  var s = {
928
928
  configurable: !0,
929
929
  enumerable: !0,
@@ -953,98 +953,98 @@ function Ve() {
953
953
  })
954
954
  });
955
955
  }
956
- o1 < 0 && x("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
956
+ c1 < 0 && Z("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
957
957
  }
958
958
  }
959
- var b1 = b.ReactCurrentDispatcher, y1;
960
- function u1(s, l, d) {
959
+ var y1 = y.ReactCurrentDispatcher, I1;
960
+ function d1(s, l, d) {
961
961
  {
962
- if (y1 === void 0)
962
+ if (I1 === void 0)
963
963
  try {
964
964
  throw Error();
965
- } catch (E) {
966
- var w = E.stack.trim().match(/\n( *(at )?)/);
967
- y1 = w && w[1] || "";
965
+ } catch (T) {
966
+ var p = T.stack.trim().match(/\n( *(at )?)/);
967
+ I1 = p && p[1] || "";
968
968
  }
969
969
  return `
970
- ` + y1 + s;
970
+ ` + I1 + s;
971
971
  }
972
972
  }
973
- var I1 = !1, d1;
973
+ var R1 = !1, v1;
974
974
  {
975
975
  var K3 = typeof WeakMap == "function" ? WeakMap : Map;
976
- d1 = new K3();
976
+ v1 = new K3();
977
977
  }
978
978
  function X1(s, l) {
979
- if (!s || I1)
979
+ if (!s || R1)
980
980
  return "";
981
981
  {
982
- var d = d1.get(s);
982
+ var d = v1.get(s);
983
983
  if (d !== void 0)
984
984
  return d;
985
985
  }
986
- var w;
987
- I1 = !0;
988
- var E = Error.prepareStackTrace;
986
+ var p;
987
+ R1 = !0;
988
+ var T = Error.prepareStackTrace;
989
989
  Error.prepareStackTrace = void 0;
990
- var T;
991
- T = b1.current, b1.current = null, H3();
990
+ var D;
991
+ D = y1.current, y1.current = null, H3();
992
992
  try {
993
993
  if (l) {
994
- var y = function() {
994
+ var I = function() {
995
995
  throw Error();
996
996
  };
997
- if (Object.defineProperty(y.prototype, "props", {
997
+ if (Object.defineProperty(I.prototype, "props", {
998
998
  set: function() {
999
999
  throw Error();
1000
1000
  }
1001
1001
  }), typeof Reflect == "object" && Reflect.construct) {
1002
1002
  try {
1003
- Reflect.construct(y, []);
1003
+ Reflect.construct(I, []);
1004
1004
  } catch (V) {
1005
- w = V;
1005
+ p = V;
1006
1006
  }
1007
- Reflect.construct(s, [], y);
1007
+ Reflect.construct(s, [], I);
1008
1008
  } else {
1009
1009
  try {
1010
- y.call();
1010
+ I.call();
1011
1011
  } catch (V) {
1012
- w = V;
1012
+ p = V;
1013
1013
  }
1014
- s.call(y.prototype);
1014
+ s.call(I.prototype);
1015
1015
  }
1016
1016
  } else {
1017
1017
  try {
1018
1018
  throw Error();
1019
1019
  } catch (V) {
1020
- w = V;
1020
+ p = V;
1021
1021
  }
1022
1022
  s();
1023
1023
  }
1024
1024
  } catch (V) {
1025
- if (V && w && typeof V.stack == "string") {
1026
- for (var S = V.stack.split(`
1027
- `), k = w.stack.split(`
1028
- `), L = S.length - 1, $ = k.length - 1; L >= 1 && $ >= 0 && S[L] !== k[$]; )
1025
+ if (V && p && typeof V.stack == "string") {
1026
+ for (var j = V.stack.split(`
1027
+ `), k = p.stack.split(`
1028
+ `), L = j.length - 1, $ = k.length - 1; L >= 1 && $ >= 0 && j[L] !== k[$]; )
1029
1029
  $--;
1030
1030
  for (; L >= 1 && $ >= 0; L--, $--)
1031
- if (S[L] !== k[$]) {
1031
+ if (j[L] !== k[$]) {
1032
1032
  if (L !== 1 || $ !== 1)
1033
1033
  do
1034
- if (L--, $--, $ < 0 || S[L] !== k[$]) {
1034
+ if (L--, $--, $ < 0 || j[L] !== k[$]) {
1035
1035
  var F = `
1036
- ` + S[L].replace(" at new ", " at ");
1037
- return s.displayName && F.includes("<anonymous>") && (F = F.replace("<anonymous>", s.displayName)), typeof s == "function" && d1.set(s, F), F;
1036
+ ` + j[L].replace(" at new ", " at ");
1037
+ return s.displayName && F.includes("<anonymous>") && (F = F.replace("<anonymous>", s.displayName)), typeof s == "function" && v1.set(s, F), F;
1038
1038
  }
1039
1039
  while (L >= 1 && $ >= 0);
1040
1040
  break;
1041
1041
  }
1042
1042
  }
1043
1043
  } finally {
1044
- I1 = !1, b1.current = T, F3(), Error.prepareStackTrace = E;
1044
+ R1 = !1, y1.current = D, F3(), Error.prepareStackTrace = T;
1045
1045
  }
1046
- var t1 = s ? s.displayName || s.name : "", Q = t1 ? u1(t1) : "";
1047
- return typeof s == "function" && d1.set(s, Q), Q;
1046
+ var t1 = s ? s.displayName || s.name : "", Q = t1 ? d1(t1) : "";
1047
+ return typeof s == "function" && v1.set(s, Q), Q;
1048
1048
  }
1049
1049
  function q3(s, l, d) {
1050
1050
  return X1(s, !1);
@@ -1053,64 +1053,64 @@ function Ve() {
1053
1053
  var l = s.prototype;
1054
1054
  return !!(l && l.isReactComponent);
1055
1055
  }
1056
- function v1(s, l, d) {
1056
+ function h1(s, l, d) {
1057
1057
  if (s == null)
1058
1058
  return "";
1059
1059
  if (typeof s == "function")
1060
1060
  return X1(s, G3(s));
1061
1061
  if (typeof s == "string")
1062
- return u1(s);
1062
+ return d1(s);
1063
1063
  switch (s) {
1064
- case m:
1065
- return u1("Suspense");
1066
- case M:
1067
- return u1("SuspenseList");
1064
+ case f:
1065
+ return d1("Suspense");
1066
+ case w:
1067
+ return d1("SuspenseList");
1068
1068
  }
1069
1069
  if (typeof s == "object")
1070
1070
  switch (s.$$typeof) {
1071
- case h:
1071
+ case v:
1072
1072
  return q3(s.render);
1073
- case P:
1074
- return v1(s.type, l, d);
1073
+ case x:
1074
+ return h1(s.type, l, d);
1075
1075
  case H: {
1076
- var w = s, E = w._payload, T = w._init;
1076
+ var p = s, T = p._payload, D = p._init;
1077
1077
  try {
1078
- return v1(T(E), l, d);
1078
+ return h1(D(T), l, d);
1079
1079
  } catch {
1080
1080
  }
1081
1081
  }
1082
1082
  }
1083
1083
  return "";
1084
1084
  }
1085
- var s1 = Object.prototype.hasOwnProperty, Q1 = {}, N1 = b.ReactDebugCurrentFrame;
1086
- function h1(s) {
1085
+ var r1 = Object.prototype.hasOwnProperty, Q1 = {}, N1 = y.ReactDebugCurrentFrame;
1086
+ function g1(s) {
1087
1087
  if (s) {
1088
- var l = s._owner, d = v1(s.type, s._source, l ? l.type : null);
1088
+ var l = s._owner, d = h1(s.type, s._source, l ? l.type : null);
1089
1089
  N1.setExtraStackFrame(d);
1090
1090
  } else
1091
1091
  N1.setExtraStackFrame(null);
1092
1092
  }
1093
- function Y3(s, l, d, w, E) {
1093
+ function Y3(s, l, d, p, T) {
1094
1094
  {
1095
- var T = Function.call.bind(s1);
1096
- for (var y in s)
1097
- if (T(s, y)) {
1098
- var S = void 0;
1095
+ var D = Function.call.bind(r1);
1096
+ for (var I in s)
1097
+ if (D(s, I)) {
1098
+ var j = void 0;
1099
1099
  try {
1100
- if (typeof s[y] != "function") {
1101
- var k = Error((w || "React class") + ": " + d + " type `" + y + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof s[y] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
1100
+ if (typeof s[I] != "function") {
1101
+ var k = Error((p || "React class") + ": " + d + " type `" + I + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof s[I] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
1102
1102
  throw k.name = "Invariant Violation", k;
1103
1103
  }
1104
- S = s[y](l, y, w, d, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
1104
+ j = s[I](l, I, p, d, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
1105
1105
  } catch (L) {
1106
- S = L;
1106
+ j = L;
1107
1107
  }
1108
- S && !(S instanceof Error) && (h1(E), x("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", w || "React class", d, y, typeof S), h1(null)), S instanceof Error && !(S.message in Q1) && (Q1[S.message] = !0, h1(E), x("Failed %s type: %s", d, S.message), h1(null));
1108
+ j && !(j instanceof Error) && (g1(T), Z("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", p || "React class", d, I, typeof j), g1(null)), j instanceof Error && !(j.message in Q1) && (Q1[j.message] = !0, g1(T), Z("Failed %s type: %s", d, j.message), g1(null));
1109
1109
  }
1110
1110
  }
1111
1111
  }
1112
1112
  var z3 = Array.isArray;
1113
- function R1(s) {
1113
+ function E1(s) {
1114
1114
  return z3(s);
1115
1115
  }
1116
1116
  function J3(s) {
@@ -1131,16 +1131,16 @@ function Ve() {
1131
1131
  }
1132
1132
  function t3(s) {
1133
1133
  if (X3(s))
1134
- return x("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", J3(s)), e3(s);
1134
+ return Z("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", J3(s)), e3(s);
1135
1135
  }
1136
- var n3 = b.ReactCurrentOwner, Q3 = {
1136
+ var n3 = y.ReactCurrentOwner, Q3 = {
1137
1137
  key: !0,
1138
1138
  ref: !0,
1139
1139
  __self: !0,
1140
1140
  __source: !0
1141
1141
  }, o3, s3;
1142
1142
  function N3(s) {
1143
- if (s1.call(s, "ref")) {
1143
+ if (r1.call(s, "ref")) {
1144
1144
  var l = Object.getOwnPropertyDescriptor(s, "ref").get;
1145
1145
  if (l && l.isReactWarning)
1146
1146
  return !1;
@@ -1148,7 +1148,7 @@ function Ve() {
1148
1148
  return s.ref !== void 0;
1149
1149
  }
1150
1150
  function e2(s) {
1151
- if (s1.call(s, "key")) {
1151
+ if (r1.call(s, "key")) {
1152
1152
  var l = Object.getOwnPropertyDescriptor(s, "key").get;
1153
1153
  if (l && l.isReactWarning)
1154
1154
  return !1;
@@ -1161,7 +1161,7 @@ function Ve() {
1161
1161
  function n2(s, l) {
1162
1162
  {
1163
1163
  var d = function() {
1164
- o3 || (o3 = !0, x("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", l));
1164
+ o3 || (o3 = !0, Z("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", l));
1165
1165
  };
1166
1166
  d.isReactWarning = !0, Object.defineProperty(s, "key", {
1167
1167
  get: d,
@@ -1172,7 +1172,7 @@ function Ve() {
1172
1172
  function o2(s, l) {
1173
1173
  {
1174
1174
  var d = function() {
1175
- s3 || (s3 = !0, x("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", l));
1175
+ s3 || (s3 = !0, Z("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", l));
1176
1176
  };
1177
1177
  d.isReactWarning = !0, Object.defineProperty(s, "ref", {
1178
1178
  get: d,
@@ -1180,70 +1180,70 @@ function Ve() {
1180
1180
  });
1181
1181
  }
1182
1182
  }
1183
- var s2 = function(s, l, d, w, E, T, y) {
1184
- var S = {
1183
+ var s2 = function(s, l, d, p, T, D, I) {
1184
+ var j = {
1185
1185
  // This tag allows us to uniquely identify this as a React Element
1186
1186
  $$typeof: t,
1187
1187
  // Built-in properties that belong on the element
1188
1188
  type: s,
1189
1189
  key: l,
1190
1190
  ref: d,
1191
- props: y,
1191
+ props: I,
1192
1192
  // Record the component responsible for creating this element.
1193
- _owner: T
1193
+ _owner: D
1194
1194
  };
1195
- return S._store = {}, Object.defineProperty(S._store, "validated", {
1195
+ return j._store = {}, Object.defineProperty(j._store, "validated", {
1196
1196
  configurable: !1,
1197
1197
  enumerable: !1,
1198
1198
  writable: !0,
1199
1199
  value: !1
1200
- }), Object.defineProperty(S, "_self", {
1200
+ }), Object.defineProperty(j, "_self", {
1201
1201
  configurable: !1,
1202
1202
  enumerable: !1,
1203
1203
  writable: !1,
1204
- value: w
1205
- }), Object.defineProperty(S, "_source", {
1204
+ value: p
1205
+ }), Object.defineProperty(j, "_source", {
1206
1206
  configurable: !1,
1207
1207
  enumerable: !1,
1208
1208
  writable: !1,
1209
- value: E
1210
- }), Object.freeze && (Object.freeze(S.props), Object.freeze(S)), S;
1209
+ value: T
1210
+ }), Object.freeze && (Object.freeze(j.props), Object.freeze(j)), j;
1211
1211
  };
1212
- function c2(s, l, d, w, E) {
1212
+ function c2(s, l, d, p, T) {
1213
1213
  {
1214
- var T, y = {}, S = null, k = null;
1215
- d !== void 0 && (t3(d), S = "" + d), e2(l) && (t3(l.key), S = "" + l.key), N3(l) && (k = l.ref, t2(l, E));
1216
- for (T in l)
1217
- s1.call(l, T) && !Q3.hasOwnProperty(T) && (y[T] = l[T]);
1214
+ var D, I = {}, j = null, k = null;
1215
+ d !== void 0 && (t3(d), j = "" + d), e2(l) && (t3(l.key), j = "" + l.key), N3(l) && (k = l.ref, t2(l, T));
1216
+ for (D in l)
1217
+ r1.call(l, D) && !Q3.hasOwnProperty(D) && (I[D] = l[D]);
1218
1218
  if (s && s.defaultProps) {
1219
1219
  var L = s.defaultProps;
1220
- for (T in L)
1221
- y[T] === void 0 && (y[T] = L[T]);
1220
+ for (D in L)
1221
+ I[D] === void 0 && (I[D] = L[D]);
1222
1222
  }
1223
- if (S || k) {
1223
+ if (j || k) {
1224
1224
  var $ = typeof s == "function" ? s.displayName || s.name || "Unknown" : s;
1225
- S && n2(y, $), k && o2(y, $);
1225
+ j && n2(I, $), k && o2(I, $);
1226
1226
  }
1227
- return s2(s, S, k, E, w, n3.current, y);
1227
+ return s2(s, j, k, T, p, n3.current, I);
1228
1228
  }
1229
1229
  }
1230
- var E1 = b.ReactCurrentOwner, c3 = b.ReactDebugCurrentFrame;
1230
+ var T1 = y.ReactCurrentOwner, c3 = y.ReactDebugCurrentFrame;
1231
1231
  function e1(s) {
1232
1232
  if (s) {
1233
- var l = s._owner, d = v1(s.type, s._source, l ? l.type : null);
1233
+ var l = s._owner, d = h1(s.type, s._source, l ? l.type : null);
1234
1234
  c3.setExtraStackFrame(d);
1235
1235
  } else
1236
1236
  c3.setExtraStackFrame(null);
1237
1237
  }
1238
- var T1;
1239
- T1 = !1;
1240
- function D1(s) {
1238
+ var D1;
1239
+ D1 = !1;
1240
+ function _1(s) {
1241
1241
  return typeof s == "object" && s !== null && s.$$typeof === t;
1242
1242
  }
1243
1243
  function r3() {
1244
1244
  {
1245
- if (E1.current) {
1246
- var s = J(E1.current.type);
1245
+ if (T1.current) {
1246
+ var s = J(T1.current.type);
1247
1247
  if (s)
1248
1248
  return `
1249
1249
 
@@ -1277,26 +1277,26 @@ Check the top-level render call using <` + d + ">.");
1277
1277
  if (l3[d])
1278
1278
  return;
1279
1279
  l3[d] = !0;
1280
- var w = "";
1281
- s && s._owner && s._owner !== E1.current && (w = " It was passed a child from " + J(s._owner.type) + "."), e1(s), x('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', d, w), e1(null);
1280
+ var p = "";
1281
+ s && s._owner && s._owner !== T1.current && (p = " It was passed a child from " + J(s._owner.type) + "."), e1(s), Z('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', d, p), e1(null);
1282
1282
  }
1283
1283
  }
1284
1284
  function a3(s, l) {
1285
1285
  {
1286
1286
  if (typeof s != "object")
1287
1287
  return;
1288
- if (R1(s))
1288
+ if (E1(s))
1289
1289
  for (var d = 0; d < s.length; d++) {
1290
- var w = s[d];
1291
- D1(w) && i3(w, l);
1290
+ var p = s[d];
1291
+ _1(p) && i3(p, l);
1292
1292
  }
1293
- else if (D1(s))
1293
+ else if (_1(s))
1294
1294
  s._store && (s._store.validated = !0);
1295
1295
  else if (s) {
1296
- var E = C(s);
1297
- if (typeof E == "function" && E !== s.entries)
1298
- for (var T = E.call(s), y; !(y = T.next()).done; )
1299
- D1(y.value) && i3(y.value, l);
1296
+ var T = b(s);
1297
+ if (typeof T == "function" && T !== s.entries)
1298
+ for (var D = T.call(s), I; !(I = D.next()).done; )
1299
+ _1(I.value) && i3(I.value, l);
1300
1300
  }
1301
1301
  }
1302
1302
  }
@@ -1308,75 +1308,75 @@ Check the top-level render call using <` + d + ">.");
1308
1308
  var d;
1309
1309
  if (typeof l == "function")
1310
1310
  d = l.propTypes;
1311
- else if (typeof l == "object" && (l.$$typeof === h || // Note: Memo only checks outer props here.
1311
+ else if (typeof l == "object" && (l.$$typeof === v || // Note: Memo only checks outer props here.
1312
1312
  // Inner props are checked in the reconciler.
1313
- l.$$typeof === P))
1313
+ l.$$typeof === x))
1314
1314
  d = l.propTypes;
1315
1315
  else
1316
1316
  return;
1317
1317
  if (d) {
1318
- var w = J(l);
1319
- Y3(d, s.props, "prop", w, s);
1320
- } else if (l.PropTypes !== void 0 && !T1) {
1321
- T1 = !0;
1322
- var E = J(l);
1323
- x("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", E || "Unknown");
1324
- }
1325
- typeof l.getDefaultProps == "function" && !l.getDefaultProps.isReactClassApproved && x("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
1318
+ var p = J(l);
1319
+ Y3(d, s.props, "prop", p, s);
1320
+ } else if (l.PropTypes !== void 0 && !D1) {
1321
+ D1 = !0;
1322
+ var T = J(l);
1323
+ Z("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", T || "Unknown");
1324
+ }
1325
+ typeof l.getDefaultProps == "function" && !l.getDefaultProps.isReactClassApproved && Z("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
1326
1326
  }
1327
1327
  }
1328
1328
  function a2(s) {
1329
1329
  {
1330
1330
  for (var l = Object.keys(s.props), d = 0; d < l.length; d++) {
1331
- var w = l[d];
1332
- if (w !== "children" && w !== "key") {
1333
- e1(s), x("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", w), e1(null);
1331
+ var p = l[d];
1332
+ if (p !== "children" && p !== "key") {
1333
+ e1(s), Z("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", p), e1(null);
1334
1334
  break;
1335
1335
  }
1336
1336
  }
1337
- s.ref !== null && (e1(s), x("Invalid attribute `ref` supplied to `React.Fragment`."), e1(null));
1337
+ s.ref !== null && (e1(s), Z("Invalid attribute `ref` supplied to `React.Fragment`."), e1(null));
1338
1338
  }
1339
1339
  }
1340
1340
  var u3 = {};
1341
- function d3(s, l, d, w, E, T) {
1341
+ function d3(s, l, d, p, T, D) {
1342
1342
  {
1343
- var y = C1(s);
1344
- if (!y) {
1345
- var S = "";
1346
- (s === void 0 || typeof s == "object" && s !== null && Object.keys(s).length === 0) && (S += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
1343
+ var I = b1(s);
1344
+ if (!I) {
1345
+ var j = "";
1346
+ (s === void 0 || typeof s == "object" && s !== null && Object.keys(s).length === 0) && (j += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
1347
1347
  var k = r2();
1348
- k ? S += k : S += r3();
1348
+ k ? j += k : j += r3();
1349
1349
  var L;
1350
- s === null ? L = "null" : R1(s) ? L = "array" : s !== void 0 && s.$$typeof === t ? (L = "<" + (J(s.type) || "Unknown") + " />", S = " Did you accidentally export a JSX literal instead of a component?") : L = typeof s, x("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", L, S);
1350
+ s === null ? L = "null" : E1(s) ? L = "array" : s !== void 0 && s.$$typeof === t ? (L = "<" + (J(s.type) || "Unknown") + " />", j = " Did you accidentally export a JSX literal instead of a component?") : L = typeof s, Z("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", L, j);
1351
1351
  }
1352
- var $ = c2(s, l, d, E, T);
1352
+ var $ = c2(s, l, d, T, D);
1353
1353
  if ($ == null)
1354
1354
  return $;
1355
- if (y) {
1355
+ if (I) {
1356
1356
  var F = l.children;
1357
1357
  if (F !== void 0)
1358
- if (w)
1359
- if (R1(F)) {
1358
+ if (p)
1359
+ if (E1(F)) {
1360
1360
  for (var t1 = 0; t1 < F.length; t1++)
1361
1361
  a3(F[t1], s);
1362
1362
  Object.freeze && Object.freeze(F);
1363
1363
  } else
1364
- x("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
1364
+ Z("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
1365
1365
  else
1366
1366
  a3(F, s);
1367
1367
  }
1368
- if (s1.call(l, "key")) {
1368
+ if (r1.call(l, "key")) {
1369
1369
  var Q = J(s), V = Object.keys(l).filter(function(f2) {
1370
1370
  return f2 !== "key";
1371
- }), _1 = V.length > 0 ? "{key: someKey, " + V.join(": ..., ") + ": ...}" : "{key: someKey}";
1372
- if (!u3[Q + _1]) {
1371
+ }), P1 = V.length > 0 ? "{key: someKey, " + V.join(": ..., ") + ": ...}" : "{key: someKey}";
1372
+ if (!u3[Q + P1]) {
1373
1373
  var g2 = V.length > 0 ? "{" + V.join(": ..., ") + ": ...}" : "{}";
1374
- x(`A props object containing a "key" prop is being spread into JSX:
1374
+ Z(`A props object containing a "key" prop is being spread into JSX:
1375
1375
  let props = %s;
1376
1376
  <%s {...props} />
1377
1377
  React keys must be passed directly to JSX without using spread:
1378
1378
  let props = %s;
1379
- <%s key={someKey} {...props} />`, _1, Q, g2, Q), u3[Q + _1] = !0;
1379
+ <%s key={someKey} {...props} />`, P1, Q, g2, Q), u3[Q + P1] = !0;
1380
1380
  }
1381
1381
  }
1382
1382
  return s === c ? a2($) : i2($), $;
@@ -1389,18 +1389,18 @@ React keys must be passed directly to JSX without using spread:
1389
1389
  return d3(s, l, d, !1);
1390
1390
  }
1391
1391
  var v2 = d2, h2 = u2;
1392
- l1.Fragment = c, l1.jsx = v2, l1.jsxs = h2;
1393
- }()), l1;
1392
+ i1.Fragment = c, i1.jsx = v2, i1.jsxs = h2;
1393
+ }()), i1;
1394
1394
  }
1395
- var m3;
1395
+ var p3;
1396
1396
  function Ue() {
1397
- return m3 || (m3 = 1, process.env.NODE_ENV === "production" ? w1.exports = We() : w1.exports = Ve()), w1.exports;
1397
+ return p3 || (p3 = 1, process.env.NODE_ENV === "production" ? m1.exports = We() : m1.exports = Ve()), m1.exports;
1398
1398
  }
1399
1399
  var n = Ue();
1400
1400
  const He = "_mwfit_ppa3l_1", Fe = {
1401
1401
  mwfit: He
1402
1402
  }, Ke = () => {
1403
- const { reconnect: e } = R(), t = I3(), o = Me(), c = xe();
1403
+ const { reconnect: e } = E(), t = I3(), o = Me(), c = xe();
1404
1404
  return /* @__PURE__ */ n.jsxs("div", { className: "vh-100 d-flex flex-column flex-grow-1 justify-content-center align-items-center gap-5 ", children: [
1405
1405
  /* @__PURE__ */ n.jsxs("div", { className: `${Fe.mwfit} mx-auto text-center`, children: [
1406
1406
  t === void 0 ? /* @__PURE__ */ n.jsx("h2", { children: "Connecting..." }) : /* @__PURE__ */ n.jsx("h2", { children: "Disconnected" }),
@@ -1416,30 +1416,30 @@ const He = "_mwfit_ppa3l_1", Fe = {
1416
1416
  reconnect: () => null
1417
1417
  }), qe = ({ children: e }) => {
1418
1418
  const t = W1(), o = I3();
1419
- m1(() => {
1419
+ x1(() => {
1420
1420
  t(k3());
1421
1421
  }, [t]);
1422
- const c = c1(
1423
- (h, m) => {
1424
- t(Pe(h, m));
1422
+ const c = n1(
1423
+ (v, f) => {
1424
+ t(Pe(v, f));
1425
1425
  },
1426
1426
  [t]
1427
- ), r = c1(
1428
- (h, m) => {
1429
- c(h, { value: m });
1427
+ ), r = n1(
1428
+ (v, f) => {
1429
+ c(v, { value: f });
1430
1430
  },
1431
1431
  [c]
1432
- ), i = c1(
1433
- (h, m, M) => {
1434
- t(Le(h, m, M));
1432
+ ), i = n1(
1433
+ (v, f, w) => {
1434
+ t(Le(v, f, w));
1435
1435
  },
1436
1436
  [t]
1437
- ), v = c1(
1438
- (h, m) => {
1439
- t($e(h, m));
1437
+ ), a = n1(
1438
+ (v, f) => {
1439
+ t($e(v, f));
1440
1440
  },
1441
1441
  [t]
1442
- ), u = c1(() => {
1442
+ ), g = n1(() => {
1443
1443
  t(Ae());
1444
1444
  }, [t]);
1445
1445
  return /* @__PURE__ */ n.jsx(
@@ -1449,14 +1449,14 @@ const He = "_mwfit_ppa3l_1", Fe = {
1449
1449
  sendMessage: c,
1450
1450
  sendSimpleMessage: r,
1451
1451
  addEventHandler: i,
1452
- removeEventHandler: v,
1453
- reconnect: u
1452
+ removeEventHandler: a,
1453
+ reconnect: g
1454
1454
  },
1455
1455
  children: o ? e : /* @__PURE__ */ n.jsx(Ke, {})
1456
1456
  }
1457
1457
  );
1458
1458
  }, W6 = ({ children: e }) => /* @__PURE__ */ n.jsx(Z2, { store: Oe, children: /* @__PURE__ */ n.jsx(qe, { children: e }) });
1459
- function R() {
1459
+ function E() {
1460
1460
  return b2(O3);
1461
1461
  }
1462
1462
  function Ge({
@@ -1465,55 +1465,55 @@ function Ge({
1465
1465
  onHold: o,
1466
1466
  holdTimeMs: c = 500
1467
1467
  }) {
1468
- const r = A1(null), i = A1(!1);
1469
- function v() {
1468
+ const r = M1(null), i = M1(!1);
1469
+ function a() {
1470
1470
  i.current = !0, e == null || e(), r.current = setTimeout(() => {
1471
1471
  o == null || o(), r.current = null;
1472
1472
  }, c);
1473
1473
  }
1474
- function u() {
1474
+ function g() {
1475
1475
  i.current = !1, t == null || t(), r.current && (clearTimeout(r.current), r.current = null);
1476
1476
  }
1477
- function h() {
1478
- i.current && u();
1477
+ function v() {
1478
+ i.current && g();
1479
1479
  }
1480
1480
  return {
1481
- onPointerDown: v,
1482
- onPointerUp: u,
1483
- onPointerLeave: h
1481
+ onPointerDown: a,
1482
+ onPointerUp: g,
1483
+ onPointerLeave: v
1484
1484
  };
1485
1485
  }
1486
- function g(e, t) {
1487
- const { sendMessage: c } = R(), r = A1(null);
1486
+ function h(e, t) {
1487
+ const { sendMessage: c } = E(), r = M1(null);
1488
1488
  function i() {
1489
1489
  c(`${e}/${t}`, { value: "pressed" }), r.current || (r.current = setInterval(() => {
1490
1490
  c(`${e}/${t}`, { value: "held" });
1491
1491
  }, 250));
1492
1492
  }
1493
- function v() {
1493
+ function a() {
1494
1494
  r.current && (clearInterval(r.current), r.current = null), c(`${e}/${t}`, { value: "released" });
1495
1495
  }
1496
- return Ge({ onPress: i, onRelease: v });
1496
+ return Ge({ onPress: i, onRelease: a });
1497
1497
  }
1498
- function S1(e) {
1499
- const { sendMessage: t } = R(), o = g(`${e}`, "volumeUp"), c = g(`${e}`, "volumeDown");
1500
- return M1(() => ({
1498
+ function j1(e) {
1499
+ const { sendMessage: t } = E(), o = h(`${e}`, "volumeUp"), c = h(`${e}`, "volumeDown");
1500
+ return o1(() => ({
1501
1501
  volumeUp: o,
1502
1502
  volumeDown: c,
1503
1503
  muteToggle: () => t(`${e}/muteToggle`, null)
1504
1504
  }), [e, t, o, c]);
1505
1505
  }
1506
1506
  function V6(e) {
1507
- const { sendMessage: t } = R(), o = g(`${e}`, "volumeUp"), c = g(`${e}`, "volumeDown");
1508
- return M1(() => ({
1507
+ const { sendMessage: t } = E(), o = h(`${e}`, "volumeUp"), c = h(`${e}`, "volumeDown");
1508
+ return o1(() => ({
1509
1509
  volumeUp: o,
1510
1510
  volumeDown: c,
1511
1511
  muteToggle: () => t(`${e}/muteToggle`, null)
1512
1512
  }), [e, t, o, c]);
1513
1513
  }
1514
1514
  function W3(e, t) {
1515
- const { sendMessage: o, sendSimpleMessage: c } = R(), r = S1(e);
1516
- return M1(() => {
1515
+ const { sendMessage: o, sendSimpleMessage: c } = E(), r = j1(e);
1516
+ return o1(() => {
1517
1517
  if (!r) {
1518
1518
  console.log("baseVolume is undefined");
1519
1519
  return;
@@ -1525,15 +1525,15 @@ function W3(e, t) {
1525
1525
  return {
1526
1526
  ...r,
1527
1527
  volumeState: t,
1528
- setLevel: (h) => c(`${e}/level`, h),
1528
+ setLevel: (v) => c(`${e}/level`, v),
1529
1529
  muteOn: () => o(`${e}/muteOn`, null),
1530
1530
  muteOff: () => o(`${e}/muteOff`, null)
1531
1531
  };
1532
1532
  }, [r, t, e, o, c]);
1533
1533
  }
1534
1534
  function U6(e, t) {
1535
- const { sendMessage: o, sendSimpleMessage: c } = R(), r = S1(e);
1536
- return M1(() => {
1535
+ const { sendMessage: o, sendSimpleMessage: c } = E(), r = j1(e);
1536
+ return o1(() => {
1537
1537
  if (!r) {
1538
1538
  console.log("baseVolume is undefined");
1539
1539
  return;
@@ -1545,18 +1545,21 @@ function U6(e, t) {
1545
1545
  return {
1546
1546
  ...r,
1547
1547
  volumeState: t,
1548
- setLevel: (h) => c(`${e}/level`, h),
1548
+ setLevel: (v) => c(`${e}/level`, v),
1549
1549
  muteOn: () => o(`${e}/muteOn`, null),
1550
1550
  muteOff: () => o(`${e}/muteOff`, null)
1551
1551
  };
1552
1552
  }, [r, t, e, o, c]);
1553
1553
  }
1554
1554
  function Ye(e) {
1555
- const t = _(e), o = `/device/${e}`;
1556
- return W3(o, t == null ? void 0 : t.volume);
1555
+ const t = P(e), o = `/device/${e}`, c = o1(() => {
1556
+ if (t)
1557
+ return t.volume;
1558
+ }, [t]);
1559
+ return W3(o, c);
1557
1560
  }
1558
1561
  function V3(e) {
1559
- const { sendMessage: t } = R();
1562
+ const { sendMessage: t } = E();
1560
1563
  return { powerOn: () => {
1561
1564
  t(`/device/${e}/powerOn`, null);
1562
1565
  }, powerOff: () => {
@@ -1566,37 +1569,37 @@ function V3(e) {
1566
1569
  } };
1567
1570
  }
1568
1571
  function O1(e) {
1569
- const { sendMessage: t } = R(), o = _(e);
1572
+ const { sendMessage: t } = E(), o = P(e);
1570
1573
  return console.log("deviceState", o), o ? { itemsState: o, selectItem: (r) => {
1571
1574
  t(`/device/${e}/${r}`, null);
1572
1575
  } } : void 0;
1573
1576
  }
1574
1577
  function ze(e) {
1575
- const { sendMessage: t } = R(), o = _(e), c = () => {
1578
+ const { sendMessage: t } = E(), o = P(e), c = () => {
1576
1579
  t(`/device/${e}/setDefaultChannelLevels`, null);
1577
1580
  }, r = () => {
1578
1581
  if ((o == null ? void 0 : o.levelControls) === void 0) return;
1579
- Object.keys(o == null ? void 0 : o.levelControls).forEach((u) => {
1580
- t(`/device/${e}/${u}/fullStatus`, null);
1582
+ Object.keys(o == null ? void 0 : o.levelControls).forEach((g) => {
1583
+ t(`/device/${e}/${g}/fullStatus`, null);
1581
1584
  });
1582
1585
  };
1583
1586
  return o ? { levelControls: o.levelControls, setDefaultChannelLevels: c, getFullStatus: r } : void 0;
1584
1587
  }
1585
1588
  function H6(e) {
1586
- const t = _(e), o = V3(e), c = O1(e), r = O1(e), i = Ye(e), v = ze(e);
1589
+ const t = P(e), o = V3(e), c = O1(e), r = O1(e), i = Ye(e), a = ze(e);
1587
1590
  if (t)
1588
1591
  return {
1589
1592
  avrState: t,
1590
1593
  powerControl: o,
1591
1594
  inputControl: c,
1592
1595
  surroundSoundModes: r,
1593
- surroundChannels: v,
1596
+ surroundChannels: a,
1594
1597
  mainVolumeControl: i
1595
1598
  };
1596
1599
  }
1597
1600
  const F6 = ({ className: e }) => {
1598
1601
  const [t, o] = Y();
1599
- return m1(() => {
1602
+ return x1(() => {
1600
1603
  setInterval(() => {
1601
1604
  const c = (/* @__PURE__ */ new Date()).toLocaleTimeString("en-US", { hour12: !0, hour: "numeric", minute: "numeric" });
1602
1605
  o(c);
@@ -1607,58 +1610,58 @@ const F6 = ({ className: e }) => {
1607
1610
  ] });
1608
1611
  };
1609
1612
  function K6(e) {
1610
- const { sendMessage: t } = R(), o = _(e), c = `/device/${e}`;
1611
- return o ? { state: o, recallPreset: (v, u) => {
1612
- t(`${c}/presets/recall`, { deviceKey: v, preset: u });
1613
- }, savePresets: (v) => {
1614
- t(`${c}/presets/save`, v);
1613
+ const { sendMessage: t } = E(), o = P(e), c = `/device/${e}`;
1614
+ return o ? { state: o, recallPreset: (a, g) => {
1615
+ t(`${c}/presets/recall`, { deviceKey: a, preset: g });
1616
+ }, savePresets: (a) => {
1617
+ t(`${c}/presets/save`, a);
1615
1618
  } } : void 0;
1616
1619
  }
1617
1620
  function q6(e) {
1618
- const t = _(e);
1621
+ const t = P(e);
1619
1622
  if (t)
1620
1623
  return { endpointState: t };
1621
1624
  }
1622
1625
  function G6(e) {
1623
- const t = `/device/${e}`, o = g(t, "chanUp"), c = g(t, "chanDown"), r = g(t, "lastChan"), i = g(t, "guide"), v = g(t, "info"), u = g(t, "exit");
1624
- return { channelUp: o, channelDown: c, lastChannel: r, guide: i, info: v, exit: u };
1626
+ const t = `/device/${e}`, o = h(t, "chanUp"), c = h(t, "chanDown"), r = h(t, "lastChan"), i = h(t, "guide"), a = h(t, "info"), g = h(t, "exit");
1627
+ return { channelUp: o, channelDown: c, lastChannel: r, guide: i, info: a, exit: g };
1625
1628
  }
1626
1629
  function Y6(e) {
1627
- const t = `/device/${e}`, o = g(t, "red"), c = g(t, "green"), r = g(t, "yellow"), i = g(t, "blue");
1630
+ const t = `/device/${e}`, o = h(t, "red"), c = h(t, "green"), r = h(t, "yellow"), i = h(t, "blue");
1628
1631
  return { red: o, green: c, yellow: r, blue: i };
1629
1632
  }
1630
1633
  function z6(e) {
1631
- const t = _(e);
1634
+ const t = P(e);
1632
1635
  if (t)
1633
1636
  return {
1634
1637
  communicationMonitorState: t
1635
1638
  };
1636
1639
  }
1637
1640
  function J6(e) {
1638
- const t = _(e);
1641
+ const t = P(e);
1639
1642
  if (t)
1640
1643
  return t.deviceInfo || void 0;
1641
1644
  }
1642
1645
  function X6(e) {
1643
- const t = `/device/${e}`, o = g(t, "up"), c = g(t, "down"), r = g(t, "left"), i = g(t, "right"), v = g(t, "select"), u = g(t, "menu"), h = g(t, "exit");
1644
- return { up: o, down: c, left: r, right: i, select: v, menu: u, exit: h };
1646
+ const t = `/device/${e}`, o = h(t, "up"), c = h(t, "down"), r = h(t, "left"), i = h(t, "right"), a = h(t, "select"), g = h(t, "menu"), v = h(t, "exit");
1647
+ return { up: o, down: c, left: r, right: i, select: a, menu: g, exit: v };
1645
1648
  }
1646
1649
  function Q6(e) {
1647
- const { sendMessage: t } = R(), o = `/device/${e}`, c = _(e), r = g(o, "cameraUp"), i = g(o, "cameraDown"), v = g(o, "cameraLeft"), u = g(o, "cameraRight"), h = g(o, "cameraZoomIn"), m = g(o, "cameraZoomOut"), M = (P) => t("/camera/recallPreset", P);
1650
+ const { sendMessage: t } = E(), o = `/device/${e}`, c = P(e), r = h(o, "cameraUp"), i = h(o, "cameraDown"), a = h(o, "cameraLeft"), g = h(o, "cameraRight"), v = h(o, "cameraZoomIn"), f = h(o, "cameraZoomOut"), w = (x) => t("/camera/recallPreset", x);
1648
1651
  if (c)
1649
1652
  return {
1650
1653
  state: c,
1651
- zoomIn: h,
1652
- zoomOut: m,
1654
+ zoomIn: v,
1655
+ zoomOut: f,
1653
1656
  up: r,
1654
1657
  down: i,
1655
- left: v,
1656
- right: u,
1657
- recallPreset: M
1658
+ left: a,
1659
+ right: g,
1660
+ recallPreset: w
1658
1661
  };
1659
1662
  }
1660
1663
  function N6(e) {
1661
- const { sendMessage: t } = R();
1664
+ const { sendMessage: t } = E();
1662
1665
  return { recallPreset: (c) => {
1663
1666
  t(
1664
1667
  `/device/${e}/recallPreset`,
@@ -1667,25 +1670,25 @@ function N6(e) {
1667
1670
  } };
1668
1671
  }
1669
1672
  function et(e) {
1670
- const t = `/device/${e}`, o = g(t, "dvrList"), c = g(t, "record");
1673
+ const t = `/device/${e}`, o = h(t, "dvrList"), c = h(t, "record");
1671
1674
  return { dvrList: o, record: c };
1672
1675
  }
1673
1676
  function tt(e) {
1674
- const { sendMessage: t } = R(), o = _(e);
1677
+ const { sendMessage: t } = E(), o = P(e);
1675
1678
  return o ? { roomCombinerState: o, setAutoMode: () => {
1676
1679
  t(`/device/${e}/setAutoMode`, null);
1677
1680
  }, setManualMode: () => {
1678
1681
  t(`/device/${e}/setManualMode`, null);
1679
1682
  }, toggleMode: () => {
1680
1683
  t(`/device/${e}/toggleMode`, null);
1681
- }, togglePartitionState: (h) => {
1682
- t(`/device/${e}/togglePartitionState`, h);
1683
- }, setRoomCombinationScenario: (h) => {
1684
- t(`/device/${e}/setRoomCombinationScenario`, h);
1684
+ }, togglePartitionState: (v) => {
1685
+ t(`/device/${e}/togglePartitionState`, v);
1686
+ }, setRoomCombinationScenario: (v) => {
1687
+ t(`/device/${e}/setRoomCombinationScenario`, v);
1685
1688
  } } : void 0;
1686
1689
  }
1687
1690
  function nt(e) {
1688
- const { sendMessage: t } = R(), o = `/device/${e}`, c = _(e);
1691
+ const { sendMessage: t } = E(), o = `/device/${e}`, c = P(e);
1689
1692
  return c ? {
1690
1693
  state: c,
1691
1694
  selectCamera: (i) => {
@@ -1694,57 +1697,57 @@ function nt(e) {
1694
1697
  } : void 0;
1695
1698
  }
1696
1699
  function ot(e) {
1697
- const t = _(e);
1700
+ const t = P(e);
1698
1701
  if (t)
1699
1702
  return { state: t };
1700
1703
  }
1701
1704
  function st(e) {
1702
- const { sendMessage: t, sendSimpleMessage: o } = R(), c = _(e), r = ne(e), i = c || r;
1705
+ const { sendMessage: t, sendSimpleMessage: o } = E(), c = P(e), r = ne(e), i = c || r;
1703
1706
  return i ? {
1704
1707
  levelState: i,
1705
- setLevel: (M, P) => o(`${M}/level`, P),
1706
- muteToggle: (M) => t(`${M}/muteToggle`, null),
1707
- muteOn: (M) => t(`${M}/muteOn`, null),
1708
- muteOff: (M) => t(`${M}/muteOff`, null)
1708
+ setLevel: (w, x) => o(`${w}/level`, x),
1709
+ muteToggle: (w) => t(`${w}/muteToggle`, null),
1710
+ muteOn: (w) => t(`${w}/muteOn`, null),
1711
+ muteOff: (w) => t(`${w}/muteOff`, null)
1709
1712
  } : void 0;
1710
1713
  }
1711
1714
  function ct(e) {
1712
- const { sendMessage: t } = R(), o = _(e);
1715
+ const { sendMessage: t } = E(), o = P(e);
1713
1716
  return o ? { lightingState: o, selectScene: (r) => {
1714
1717
  t(`/device/${e}/selectScene`, r);
1715
1718
  } } : void 0;
1716
1719
  }
1717
1720
  function rt(e) {
1718
- const { sendMessage: t } = R(), o = _(e);
1721
+ const { sendMessage: t } = E(), o = P(e);
1719
1722
  return o ? { matrixRoutingState: o, setRoute: (r) => {
1720
1723
  t(`/device/${e}/route`, r);
1721
1724
  } } : void 0;
1722
1725
  }
1723
1726
  function lt(e) {
1724
- const { sendMessage: t } = R();
1727
+ const { sendMessage: t } = E();
1725
1728
  return { closeApp: () => {
1726
1729
  t(`/device/${e}/closeWebViewController`, null);
1727
1730
  } };
1728
1731
  }
1729
1732
  function it(e) {
1730
- const t = `/device/${e}`, o = g(t, "num0"), c = g(t, "num1"), r = g(t, "num2"), i = g(t, "num3"), v = g(t, "num4"), u = g(t, "num5"), h = g(t, "num6"), m = g(t, "num7"), M = g(t, "num8"), P = g(t, "num9"), H = g(t, "numDash"), a = g(t, "numEnter");
1733
+ const t = `/device/${e}`, o = h(t, "num0"), c = h(t, "num1"), r = h(t, "num2"), i = h(t, "num3"), a = h(t, "num4"), g = h(t, "num5"), v = h(t, "num6"), f = h(t, "num7"), w = h(t, "num8"), x = h(t, "num9"), H = h(t, "numDash"), u = h(t, "numEnter");
1731
1734
  return {
1732
1735
  digit0: o,
1733
1736
  digit1: c,
1734
1737
  digit2: r,
1735
1738
  digit3: i,
1736
- digit4: v,
1737
- digit5: u,
1738
- digit6: h,
1739
- digit7: m,
1740
- digit8: M,
1741
- digit9: P,
1739
+ digit4: a,
1740
+ digit5: g,
1741
+ digit6: v,
1742
+ digit7: f,
1743
+ digit8: w,
1744
+ digit9: x,
1742
1745
  keypadAccessoryButton1: H,
1743
- keypadAccessoryButton2: a
1746
+ keypadAccessoryButton2: u
1744
1747
  };
1745
1748
  }
1746
1749
  function at(e) {
1747
- const { sendMessage: t } = R(), o = _(e);
1750
+ const { sendMessage: t } = E(), o = P(e);
1748
1751
  return o ? { projectorScreenLiftControlState: o, raise: () => {
1749
1752
  t(`/device/${e}/raise`, null);
1750
1753
  }, lower: () => {
@@ -1752,35 +1755,35 @@ function at(e) {
1752
1755
  } } : void 0;
1753
1756
  }
1754
1757
  function ut(e) {
1755
- const { sendMessage: t } = R(), o = Z1(e);
1758
+ const { sendMessage: t } = E(), o = S1(e);
1756
1759
  return o ? { roomEventScheduleState: o, save: (r) => {
1757
1760
  t(`/room/${e}/saveScheduledEvents`, r);
1758
1761
  } } : void 0;
1759
1762
  }
1760
1763
  function dt(e) {
1761
- const { sendMessage: t } = R();
1764
+ const { sendMessage: t } = E();
1762
1765
  return { runDefaultPresentRoute: () => {
1763
1766
  t(`/room/${e}/defaultsource`, {});
1764
1767
  } };
1765
1768
  }
1766
1769
  function vt(e) {
1767
- const { sendMessage: t } = R();
1770
+ const { sendMessage: t } = E();
1768
1771
  return { runDirectRoute: (c) => {
1769
1772
  t(`/room/${e}/directRoute`, c);
1770
1773
  } };
1771
1774
  }
1772
1775
  function ht(e) {
1773
- const { sendMessage: t } = R();
1774
- return { routingState: _(e), runRoute: (r) => {
1776
+ const { sendMessage: t } = E();
1777
+ return { routingState: P(e), runRoute: (r) => {
1775
1778
  t(`/room/${e}/source`, r);
1776
1779
  } };
1777
1780
  }
1778
1781
  function gt(e) {
1779
- const t = `/device/${e}`, o = g(t, "chanUp"), c = g(t, "chanDown");
1782
+ const t = `/device/${e}`, o = h(t, "chanUp"), c = h(t, "chanDown");
1780
1783
  return { dvrList: o, replay: c };
1781
1784
  }
1782
1785
  function ft(e) {
1783
- const { sendMessage: t } = R(), o = _(e);
1786
+ const { sendMessage: t } = E(), o = P(e);
1784
1787
  return o ? { shadeState: o, shadeUp: () => {
1785
1788
  t(`/device/${e}/shadeUp`, null);
1786
1789
  }, shadeDown: () => {
@@ -1790,9 +1793,9 @@ function ft(e) {
1790
1793
  } } : void 0;
1791
1794
  }
1792
1795
  function wt(e) {
1793
- const { sendMessage: t } = R(), o = Z1(e);
1794
- return o ? { shutdownPromptTimerState: o, setShutdownPromptSeconds: (u) => {
1795
- t(`/room/${e}/setShutdownPromptSeconds`, u);
1796
+ const { sendMessage: t } = E(), o = S1(e);
1797
+ return o ? { shutdownPromptTimerState: o, setShutdownPromptSeconds: (g) => {
1798
+ t(`/room/${e}/setShutdownPromptSeconds`, g);
1796
1799
  }, shutdownStart: () => {
1797
1800
  t(`/room/${e}/shutdownStart`, null);
1798
1801
  }, shutdownEnd: () => {
@@ -1801,28 +1804,28 @@ function wt(e) {
1801
1804
  t(`/room/${e}/shutdownCancel`, null);
1802
1805
  } } : void 0;
1803
1806
  }
1804
- function pt(e) {
1805
- const { sendMessage: t } = R(), o = _(e);
1807
+ function mt(e) {
1808
+ const { sendMessage: t } = E(), o = P(e);
1806
1809
  return o ? { switchedOutputState: o, on: () => {
1807
1810
  t(`/device/${e}/on`, null);
1808
1811
  }, off: () => {
1809
1812
  t(`/device/${e}/off`, null);
1810
1813
  } } : void 0;
1811
1814
  }
1812
- function mt(e) {
1813
- const { sendMessage: t } = R(), o = Z1(e);
1815
+ function pt(e) {
1816
+ const { sendMessage: t } = E(), o = S1(e);
1814
1817
  return o ? { techPasswordState: o, validatePassword: (i) => {
1815
1818
  t(`/room/${e}/validateTechPassword`, { password: i });
1816
- }, setPassword: (i, v) => {
1817
- t(`/room/${e}/setTechPassword`, { oldPassword: i, newPassword: v });
1819
+ }, setPassword: (i, a) => {
1820
+ t(`/room/${e}/setTechPassword`, { oldPassword: i, newPassword: a });
1818
1821
  } } : void 0;
1819
1822
  }
1820
1823
  function Mt(e) {
1821
- const { sendMessage: t } = R(), o = _(e);
1824
+ const { sendMessage: t } = E(), o = P(e);
1822
1825
  return o ? { state: o, setTemperatureUnitsToCelcius: () => t(`${e}/setTemperatureUnitsToCelcius`, null), setTemperatureUnitsToFahrenheit: () => t(`${e}/setTemperatureUnitsToFahrenheit`, null) } : void 0;
1823
1826
  }
1824
1827
  function xt(e) {
1825
- const { sendMessage: t } = R(), o = _(e), c = (r) => {
1828
+ const { sendMessage: t } = E(), o = P(e), c = (r) => {
1826
1829
  t(`/device/${e}/saveTheme`, { value: r });
1827
1830
  };
1828
1831
  return {
@@ -1831,20 +1834,20 @@ function xt(e) {
1831
1834
  };
1832
1835
  }
1833
1836
  function Zt(e) {
1834
- const t = `/device/${e}`, o = g(t, "play"), c = g(t, "pause"), r = g(t, "stop"), i = g(t, "prevTrack"), v = g(t, "nextTrack"), u = g(t, "rewind"), h = g(t, "ffwd"), m = g(t, "record");
1837
+ const t = `/device/${e}`, o = h(t, "play"), c = h(t, "pause"), r = h(t, "stop"), i = h(t, "prevTrack"), a = h(t, "nextTrack"), g = h(t, "rewind"), v = h(t, "ffwd"), f = h(t, "record");
1835
1838
  return {
1836
1839
  play: o,
1837
1840
  pause: c,
1838
1841
  stop: r,
1839
1842
  prevTrack: i,
1840
- nextTrack: v,
1841
- rewind: u,
1842
- fastForward: h,
1843
- record: m
1843
+ nextTrack: a,
1844
+ rewind: g,
1845
+ fastForward: v,
1846
+ record: f
1844
1847
  };
1845
1848
  }
1846
1849
  function St(e) {
1847
- const t = _(e), { sendMessage: o } = R();
1850
+ const t = P(e), { sendMessage: o } = E();
1848
1851
  return t ? {
1849
1852
  touchpanelState: t,
1850
1853
  appControl: { hideApp: () => {
@@ -1860,7 +1863,7 @@ function St(e) {
1860
1863
  } : void 0;
1861
1864
  }
1862
1865
  function jt(e) {
1863
- const t = _(e), o = V3(e), c = O1(e);
1866
+ const t = P(e), o = V3(e), c = O1(e);
1864
1867
  if (!t) return;
1865
1868
  const r = (t.powerState || t.isWarming) && !t.isCooling, i = (!t.powerState || t.isCooling) && !t.isWarming;
1866
1869
  return {
@@ -1872,74 +1875,78 @@ function jt(e) {
1872
1875
  }
1873
1876
  function Ct(e) {
1874
1877
  const t = `/device/${e}`;
1875
- return S1(t);
1878
+ return j1(t);
1876
1879
  }
1877
1880
  const bt = ({
1878
1881
  config: e
1879
- }) => {
1880
- const { sendMessage: t } = R();
1881
- m1(() => {
1882
- var c, r, i, v;
1882
+ }, t = !0) => {
1883
+ const { sendMessage: o } = E(), c = M1(!1), r = o1(() => {
1884
+ var g, v, f, w;
1885
+ const a = /* @__PURE__ */ new Set();
1883
1886
  if (!e)
1884
- return;
1885
- const o = /* @__PURE__ */ new Set();
1886
- if (e.destinations && Object.values(e.destinations).forEach((u) => {
1887
- o.add(u);
1888
- }), e.destinationList && Object.values(e.destinationList).forEach((u) => {
1889
- o.add(u.sinkKey);
1890
- }), e.audioControlPointList && Object.values((c = e.audioControlPointList) == null ? void 0 : c.levelControls).forEach(
1891
- (u) => {
1892
- u.itemKey ? o.add(u.parentDeviceKey + "--" + u.itemKey) : o.add(u.parentDeviceKey);
1887
+ return a;
1888
+ if (e.destinations && Object.values(e.destinations).forEach((x) => {
1889
+ a.add(x);
1890
+ }), e.destinationList && Object.values(e.destinationList).forEach((x) => {
1891
+ a.add(x.sinkKey);
1892
+ }), e.audioControlPointList && Object.values((g = e.audioControlPointList) == null ? void 0 : g.levelControls).forEach(
1893
+ (x) => {
1894
+ x.itemKey ? a.add(x.parentDeviceKey + "--" + x.itemKey) : a.add(x.parentDeviceKey);
1893
1895
  }
1894
- ), (r = e.touchpanelKeys) == null || r.forEach((u) => {
1895
- o.add(u);
1896
- }), (i = e.environmentalDevices) == null || i.forEach((u) => {
1897
- u.deviceKey && o.add(u.deviceKey);
1898
- }), (v = e.accessoryDeviceKeys) == null || v.forEach((u) => {
1899
- o.add(u);
1900
- }), e.audioCodecKey && o.add(e.audioCodecKey), e.videoCodecKey && o.add(e.videoCodecKey), e.matrixRoutingKey && o.add(e.matrixRoutingKey), e.roomCombinerKey && o.add(e.roomCombinerKey), e.endpointKeys && e.endpointKeys.forEach((u) => {
1901
- o.add(u);
1896
+ ), (v = e.touchpanelKeys) == null || v.forEach((x) => {
1897
+ a.add(x);
1898
+ }), (f = e.environmentalDevices) == null || f.forEach((x) => {
1899
+ x.deviceKey && a.add(x.deviceKey);
1900
+ }), (w = e.accessoryDeviceKeys) == null || w.forEach((x) => {
1901
+ a.add(x);
1902
+ }), e.audioCodecKey && a.add(e.audioCodecKey), e.videoCodecKey && a.add(e.videoCodecKey), e.matrixRoutingKey && a.add(e.matrixRoutingKey), e.roomCombinerKey && a.add(e.roomCombinerKey), e.endpointKeys && e.endpointKeys.forEach((x) => {
1903
+ a.add(x);
1902
1904
  }), e.sourceList)
1903
- for (const u of Object.values(e.sourceList))
1904
- u.sourceKey && u.sourceKey !== "$off" && o.add(u.sourceKey);
1905
- console.log("requesting state for deviceKeys:", o), o.forEach((u) => {
1906
- t(`/device/${u}/fullStatus`, { deviceKey: u });
1907
- });
1908
- }, [e, t]);
1905
+ for (const x of Object.values(e.sourceList))
1906
+ x.sourceKey && x.sourceKey !== "$off" && a.add(x.sourceKey);
1907
+ return a;
1908
+ }, [e]), i = n1(() => {
1909
+ !t || r.size === 0 || c.current || (console.log("requesting state for deviceKeys:", r), r.forEach((a) => {
1910
+ o(`/device/${a}/fullStatus`, { deviceKey: a });
1911
+ }), c.current = !0);
1912
+ }, [r, t, o]);
1913
+ return x1(() => {
1914
+ c.current = !1, i();
1915
+ }, [i]), r;
1909
1916
  };
1910
1917
  function yt(e, t) {
1911
1918
  const [o, c] = Y(!1), [r, i] = Y(!1);
1912
1919
  return Z3(() => {
1913
- const { current: v } = e, u = () => {
1914
- const h = v && v.scrollHeight > v.clientHeight, m = v && v.scrollWidth > v.clientWidth;
1915
- i(h ?? !1), c(m ?? !1), t && t(h ?? !1, m ?? !1);
1920
+ const { current: a } = e, g = () => {
1921
+ const v = a && a.scrollHeight > a.clientHeight, f = a && a.scrollWidth > a.clientWidth;
1922
+ i(v ?? !1), c(f ?? !1), t && t(v ?? !1, f ?? !1);
1916
1923
  };
1917
- v && u();
1924
+ a && g();
1918
1925
  }, [e, t]), { overflowHorizontal: o, overflowVertical: r };
1919
1926
  }
1920
1927
  function It(e, t) {
1921
1928
  const o = `/room/${e}/volumes/${t}`;
1922
- return S1(o);
1929
+ return j1(o);
1923
1930
  }
1924
1931
  function Rt(e, t) {
1925
1932
  const o = te(e, t), c = `/room/${e}/volumes/${t}`;
1926
1933
  return W3(c, o);
1927
1934
  }
1928
1935
  function Et(e) {
1929
- var u, h;
1930
- const [t, o] = Y(((u = e == null ? void 0 : e.current) == null ? void 0 : u.scrollLeft) ?? 0), [c, r] = Y(((h = e == null ? void 0 : e.current) == null ? void 0 : h.scrollTop) ?? 0), i = (m) => {
1931
- const { current: M } = e;
1932
- M && (console.log(M.scrollLeft), M.scrollLeft += m, console.log(M.scrollLeft));
1933
- }, v = (m) => {
1934
- const { current: M } = e;
1935
- M && (console.log(M.scrollTop), M.scrollTop += m, console.log(M.scrollTop));
1936
+ var g, v;
1937
+ const [t, o] = Y(((g = e == null ? void 0 : e.current) == null ? void 0 : g.scrollLeft) ?? 0), [c, r] = Y(((v = e == null ? void 0 : e.current) == null ? void 0 : v.scrollTop) ?? 0), i = (f) => {
1938
+ const { current: w } = e;
1939
+ w && (console.log(w.scrollLeft), w.scrollLeft += f, console.log(w.scrollLeft));
1940
+ }, a = (f) => {
1941
+ const { current: w } = e;
1942
+ w && (console.log(w.scrollTop), w.scrollTop += f, console.log(w.scrollTop));
1936
1943
  };
1937
1944
  return Z3(() => {
1938
- const { current: m } = e, M = () => {
1939
- o((m == null ? void 0 : m.scrollLeft) ?? 0), r((m == null ? void 0 : m.scrollTop) ?? 0);
1945
+ const { current: f } = e, w = () => {
1946
+ o((f == null ? void 0 : f.scrollLeft) ?? 0), r((f == null ? void 0 : f.scrollTop) ?? 0);
1940
1947
  };
1941
- m && M();
1942
- }, [e]), { horizontalScrollPosition: t, verticalScrollPosition: c, scrollHorizontal: i, scrollVertical: v };
1948
+ f && w();
1949
+ }, [e]), { horizontalScrollPosition: t, verticalScrollPosition: c, scrollHorizontal: i, scrollVertical: a };
1943
1950
  }
1944
1951
  function Tt(e) {
1945
1952
  const t = W1();
@@ -1950,7 +1957,7 @@ function Tt(e) {
1950
1957
  }, Ze(e)];
1951
1958
  }
1952
1959
  function Dt() {
1953
- const { sendMessage: e } = R();
1960
+ const { sendMessage: e } = E();
1954
1961
  return {
1955
1962
  reboot: () => {
1956
1963
  e("/system/reboot", null);
@@ -1967,7 +1974,7 @@ function _t() {
1967
1974
  const i = (/* @__PURE__ */ new Date()).toLocaleTimeString("en-US", { hour12: !0, hour: "numeric", minute: "numeric" });
1968
1975
  c(i);
1969
1976
  }
1970
- return m1(() => {
1977
+ return x1(() => {
1971
1978
  r();
1972
1979
  const i = setInterval(() => {
1973
1980
  r();
@@ -1998,7 +2005,7 @@ const Pt = () => {
1998
2005
  ),
1999
2006
  e && /* @__PURE__ */ n.jsx("p", { children: r })
2000
2007
  ] });
2001
- }, Je = "_iconbtn_16qss_1", Xe = "_iconbtnvert_16qss_7", Qe = "_iconsm_16qss_18", L1 = {
2008
+ }, Je = "_iconbtn_16qss_1", Xe = "_iconbtnvert_16qss_7", Qe = "_iconsm_16qss_18", $1 = {
2002
2009
  iconbtn: Je,
2003
2010
  iconbtnvert: Xe,
2004
2011
  iconsm: Qe
@@ -2009,45 +2016,45 @@ const Pt = () => {
2009
2016
  className: c,
2010
2017
  iconClassName: r = "",
2011
2018
  otherContentClassName: i = "",
2012
- disabled: v,
2013
- feedback: u,
2014
- feedbackClassName: h,
2015
- onPointerDown: m,
2016
- onPointerUp: M,
2017
- onPointerLeave: P,
2019
+ disabled: a,
2020
+ feedback: g,
2021
+ feedbackClassName: v,
2022
+ onPointerDown: f,
2023
+ onPointerUp: w,
2024
+ onPointerLeave: x,
2018
2025
  ...H
2019
2026
  }) => {
2020
- const [a, Z] = Y(!1), j = !v && u ? h : "", C = !v && (a || u);
2027
+ const [u, S] = Y(!1), C = !a && g ? v : "", b = !a && (u || g);
2021
2028
  return /* @__PURE__ */ n.jsxs(
2022
2029
  "button",
2023
2030
  {
2024
2031
  type: "button",
2025
- className: `${L1.iconbtn} ${o ? L1.iconbtnvert : ""} ${c} ${j}`,
2032
+ className: `${$1.iconbtn} ${o ? $1.iconbtnvert : ""} ${c} ${C}`,
2026
2033
  ...H,
2027
- disabled: v,
2028
- onPointerDown: (b) => {
2029
- Z(!0), m == null || m(b);
2034
+ disabled: a,
2035
+ onPointerDown: (y) => {
2036
+ S(!0), f == null || f(y);
2030
2037
  },
2031
- onPointerUp: (b) => {
2032
- Z(!1), M == null || M(b);
2038
+ onPointerUp: (y) => {
2039
+ S(!1), w == null || w(y);
2033
2040
  },
2034
- onPointerLeave: (b) => {
2035
- Z(!1), P == null || P(b);
2041
+ onPointerLeave: (y) => {
2042
+ S(!1), x == null || x(y);
2036
2043
  },
2037
2044
  children: [
2038
2045
  e && /* @__PURE__ */ n.jsx(
2039
2046
  e,
2040
2047
  {
2041
- className: `${r || L1.iconsm}`,
2042
- active: C,
2043
- disabled: v
2048
+ className: `${r || $1.iconsm}`,
2049
+ active: b,
2050
+ disabled: a
2044
2051
  }
2045
2052
  ),
2046
2053
  i ? /* @__PURE__ */ n.jsx("div", { className: i, children: t }) : /* @__PURE__ */ n.jsx("div", { children: t })
2047
2054
  ]
2048
2055
  }
2049
2056
  );
2050
- }, I = ({
2057
+ }, R = ({
2051
2058
  ActiveImage: e,
2052
2059
  DisabledImage: t,
2053
2060
  EnabledImage: o,
@@ -2058,7 +2065,7 @@ const Pt = () => {
2058
2065
  className: t = "",
2059
2066
  disabled: o
2060
2067
  }) => /* @__PURE__ */ n.jsx(
2061
- I,
2068
+ R,
2062
2069
  {
2063
2070
  ActiveImage: /* @__PURE__ */ n.jsx(
2064
2071
  "svg",
@@ -2110,7 +2117,7 @@ const Pt = () => {
2110
2117
  className: t = "",
2111
2118
  disabled: o
2112
2119
  }) => /* @__PURE__ */ n.jsx(
2113
- I,
2120
+ R,
2114
2121
  {
2115
2122
  ActiveImage: (
2116
2123
  /* icon-ban-active.svg */
@@ -2159,7 +2166,7 @@ const Pt = () => {
2159
2166
  className: t = "",
2160
2167
  disabled: o
2161
2168
  }) => /* @__PURE__ */ n.jsx(
2162
- I,
2169
+ R,
2163
2170
  {
2164
2171
  ActiveImage: /* @__PURE__ */ n.jsx(
2165
2172
  "svg",
@@ -2199,7 +2206,7 @@ const Pt = () => {
2199
2206
  className: t = "",
2200
2207
  disabled: o
2201
2208
  }) => /* @__PURE__ */ n.jsx(
2202
- I,
2209
+ R,
2203
2210
  {
2204
2211
  ActiveImage: (
2205
2212
  /* icon-check-active.svg */
@@ -2249,7 +2256,7 @@ const Pt = () => {
2249
2256
  className: t = "",
2250
2257
  disabled: o
2251
2258
  }) => /* @__PURE__ */ n.jsx(
2252
- I,
2259
+ R,
2253
2260
  {
2254
2261
  ActiveImage: (
2255
2262
  /* icon-controller-active.svg */
@@ -2316,7 +2323,7 @@ const Pt = () => {
2316
2323
  className: t = "",
2317
2324
  disabled: o
2318
2325
  }) => /* @__PURE__ */ n.jsx(
2319
- I,
2326
+ R,
2320
2327
  {
2321
2328
  ActiveImage: (
2322
2329
  /* icon-down-active.svg */
@@ -2365,7 +2372,7 @@ const Pt = () => {
2365
2372
  className: t = "",
2366
2373
  disabled: o
2367
2374
  }) => /* @__PURE__ */ n.jsx(
2368
- I,
2375
+ R,
2369
2376
  {
2370
2377
  ActiveImage: (
2371
2378
  /* icon-elipses-active.svg */
@@ -2414,7 +2421,7 @@ const Pt = () => {
2414
2421
  className: t = "",
2415
2422
  disabled: o
2416
2423
  }) => /* @__PURE__ */ n.jsx(
2417
- I,
2424
+ R,
2418
2425
  {
2419
2426
  ActiveImage: (
2420
2427
  /* icon-flag-active.svg */
@@ -2463,7 +2470,7 @@ const Pt = () => {
2463
2470
  className: t = "",
2464
2471
  disabled: o
2465
2472
  }) => /* @__PURE__ */ n.jsx(
2466
- I,
2473
+ R,
2467
2474
  {
2468
2475
  ActiveImage: (
2469
2476
  /* /Users/hvolmer/Downloads/SVG/icon-gear-active.svg */
@@ -2512,7 +2519,7 @@ const Pt = () => {
2512
2519
  className: t = "",
2513
2520
  disabled: o
2514
2521
  }) => /* @__PURE__ */ n.jsx(
2515
- I,
2522
+ R,
2516
2523
  {
2517
2524
  ActiveImage: (
2518
2525
  /* icon-glass-active.svg */
@@ -2562,7 +2569,7 @@ const Pt = () => {
2562
2569
  className: t = "",
2563
2570
  disabled: o
2564
2571
  }) => /* @__PURE__ */ n.jsx(
2565
- I,
2572
+ R,
2566
2573
  {
2567
2574
  ActiveImage: (
2568
2575
  /* icon-hdmi-active.svg */
@@ -2629,7 +2636,7 @@ const Pt = () => {
2629
2636
  className: t = "",
2630
2637
  disabled: o
2631
2638
  }) => /* @__PURE__ */ n.jsx(
2632
- I,
2639
+ R,
2633
2640
  {
2634
2641
  ActiveImage: (
2635
2642
  /* icon-laptop-active.svg */
@@ -2678,7 +2685,7 @@ const Pt = () => {
2678
2685
  className: t = "",
2679
2686
  disabled: o
2680
2687
  }) => /* @__PURE__ */ n.jsx(
2681
- I,
2688
+ R,
2682
2689
  {
2683
2690
  ActiveImage: (
2684
2691
  /* icon-left-active.svg */
@@ -2727,7 +2734,7 @@ const Pt = () => {
2727
2734
  className: t = "",
2728
2735
  disabled: o
2729
2736
  }) => /* @__PURE__ */ n.jsx(
2730
- I,
2737
+ R,
2731
2738
  {
2732
2739
  ActiveImage: (
2733
2740
  /* icon-light-active.svg */
@@ -2776,7 +2783,7 @@ const Pt = () => {
2776
2783
  className: t = "",
2777
2784
  disabled: o
2778
2785
  }) => /* @__PURE__ */ n.jsx(
2779
- I,
2786
+ R,
2780
2787
  {
2781
2788
  ActiveImage: (
2782
2789
  /* icon-moon-active.svg */
@@ -2825,7 +2832,7 @@ const Pt = () => {
2825
2832
  className: t = "",
2826
2833
  disabled: o
2827
2834
  }) => /* @__PURE__ */ n.jsx(
2828
- I,
2835
+ R,
2829
2836
  {
2830
2837
  ActiveImage: (
2831
2838
  /* icon-playstation-active.svg */
@@ -2847,7 +2854,7 @@ const Pt = () => {
2847
2854
  className: t = "",
2848
2855
  disabled: o
2849
2856
  }) => /* @__PURE__ */ n.jsx(
2850
- I,
2857
+ R,
2851
2858
  {
2852
2859
  ActiveImage: (
2853
2860
  /* icon-podium-active.svg */
@@ -2891,12 +2898,12 @@ const Pt = () => {
2891
2898
  active: e,
2892
2899
  disabled: o
2893
2900
  }
2894
- ), p8 = ({
2901
+ ), m8 = ({
2895
2902
  active: e,
2896
2903
  className: t = "",
2897
2904
  disabled: o
2898
2905
  }) => /* @__PURE__ */ n.jsx(
2899
- I,
2906
+ R,
2900
2907
  {
2901
2908
  ActiveImage: (
2902
2909
  /* icon-power-active.svg */
@@ -2940,12 +2947,12 @@ const Pt = () => {
2940
2947
  active: e,
2941
2948
  disabled: o
2942
2949
  }
2943
- ), m8 = ({
2950
+ ), p8 = ({
2944
2951
  active: e,
2945
2952
  className: t = "",
2946
2953
  disabled: o
2947
2954
  }) => /* @__PURE__ */ n.jsx(
2948
- I,
2955
+ R,
2949
2956
  {
2950
2957
  ActiveImage: (
2951
2958
  /* icon-privacy-active.svg */
@@ -2994,7 +3001,7 @@ const Pt = () => {
2994
3001
  className: t = "",
2995
3002
  disabled: o
2996
3003
  }) => /* @__PURE__ */ n.jsx(
2997
- I,
3004
+ R,
2998
3005
  {
2999
3006
  ActiveImage: (
3000
3007
  /* icon-question-active.svg */
@@ -3043,7 +3050,7 @@ const Pt = () => {
3043
3050
  className: t = "",
3044
3051
  disabled: o
3045
3052
  }) => /* @__PURE__ */ n.jsx(
3046
- I,
3053
+ R,
3047
3054
  {
3048
3055
  ActiveImage: (
3049
3056
  /* icon-right-active.svg */
@@ -3093,7 +3100,7 @@ const Pt = () => {
3093
3100
  className: t = "",
3094
3101
  disabled: o
3095
3102
  }) => /* @__PURE__ */ n.jsx(
3096
- I,
3103
+ R,
3097
3104
  {
3098
3105
  ActiveImage: (
3099
3106
  /* icon-roomPC-active.svg */
@@ -3160,7 +3167,7 @@ const Pt = () => {
3160
3167
  className: t = "",
3161
3168
  disabled: o
3162
3169
  }) => /* @__PURE__ */ n.jsx(
3163
- I,
3170
+ R,
3164
3171
  {
3165
3172
  ActiveImage: (
3166
3173
  /* icon-shade-active.svg */
@@ -3209,7 +3216,7 @@ const Pt = () => {
3209
3216
  className: t = "",
3210
3217
  disabled: o
3211
3218
  }) => /* @__PURE__ */ n.jsx(
3212
- I,
3219
+ R,
3213
3220
  {
3214
3221
  ActiveImage: (
3215
3222
  /* icon-sun-active.svg */
@@ -3260,7 +3267,7 @@ const Pt = () => {
3260
3267
  className: t = "",
3261
3268
  disabled: o
3262
3269
  }) => /* @__PURE__ */ n.jsx(
3263
- I,
3270
+ R,
3264
3271
  {
3265
3272
  ActiveImage: void 0,
3266
3273
  DisabledImage: void 0,
@@ -3273,7 +3280,7 @@ const Pt = () => {
3273
3280
  className: t = "",
3274
3281
  disabled: o
3275
3282
  }) => /* @__PURE__ */ n.jsx(
3276
- I,
3283
+ R,
3277
3284
  {
3278
3285
  ActiveImage: (
3279
3286
  /* icon-up-active.svg */
@@ -3322,7 +3329,7 @@ const Pt = () => {
3322
3329
  className: t = "",
3323
3330
  disabled: o
3324
3331
  }) => /* @__PURE__ */ n.jsx(
3325
- I,
3332
+ R,
3326
3333
  {
3327
3334
  ActiveImage: (
3328
3335
  /* icon-volDown-active.svg */
@@ -3371,7 +3378,7 @@ const Pt = () => {
3371
3378
  className: t = "",
3372
3379
  disabled: o
3373
3380
  }) => /* @__PURE__ */ n.jsx(
3374
- I,
3381
+ R,
3375
3382
  {
3376
3383
  ActiveImage: (
3377
3384
  /* icon-volMute-active.svg */
@@ -3420,7 +3427,7 @@ const Pt = () => {
3420
3427
  className: t = "",
3421
3428
  disabled: o
3422
3429
  }) => /* @__PURE__ */ n.jsx(
3423
- I,
3430
+ R,
3424
3431
  {
3425
3432
  ActiveImage: (
3426
3433
  /* icon-volUp-active.svg */
@@ -3469,7 +3476,7 @@ const Pt = () => {
3469
3476
  className: t = "",
3470
3477
  disabled: o
3471
3478
  }) => /* @__PURE__ */ n.jsx(
3472
- I,
3479
+ R,
3473
3480
  {
3474
3481
  ActiveImage: (
3475
3482
  /* icon-wireless-active.svg */
@@ -3518,7 +3525,7 @@ const Pt = () => {
3518
3525
  className: t = "",
3519
3526
  disabled: o
3520
3527
  }) => /* @__PURE__ */ n.jsx(
3521
- I,
3528
+ R,
3522
3529
  {
3523
3530
  ActiveImage: (
3524
3531
  /* icon-x-active.svg */
@@ -3567,7 +3574,7 @@ const Pt = () => {
3567
3574
  className: t = "",
3568
3575
  disabled: o
3569
3576
  }) => /* @__PURE__ */ n.jsx(
3570
- I,
3577
+ R,
3571
3578
  {
3572
3579
  ActiveImage: (
3573
3580
  /* icon-xbox-active.svg */
@@ -3616,7 +3623,7 @@ const Pt = () => {
3616
3623
  className: t = "",
3617
3624
  disabled: o
3618
3625
  }) => /* @__PURE__ */ n.jsx(
3619
- I,
3626
+ R,
3620
3627
  {
3621
3628
  ActiveImage: (
3622
3629
  /* icon-mic-active.svg */
@@ -3679,8 +3686,8 @@ const Pt = () => {
3679
3686
  Moon: g8,
3680
3687
  Playstation: f8,
3681
3688
  Podium: w8,
3682
- Power: p8,
3683
- Privacy: m8,
3689
+ Power: m8,
3690
+ Privacy: p8,
3684
3691
  Question: M8,
3685
3692
  RightArrow: x8,
3686
3693
  RoomPC: Z8,
@@ -3702,17 +3709,17 @@ function $t({
3702
3709
  const c = t[e] ?? null;
3703
3710
  return c || console.error(`Icon ${e} not found in dictionary`), /* @__PURE__ */ n.jsx(Ne, { multiIcon: c, ...o });
3704
3711
  }
3705
- const P8 = "_grid_1cmpp_1", L8 = "_header_1cmpp_11", $8 = "_content_1cmpp_17", A8 = "_footer_1cmpp_23", B8 = "_volume_1cmpp_29", i1 = {
3712
+ const P8 = "_grid_1cmpp_1", L8 = "_header_1cmpp_11", $8 = "_content_1cmpp_17", A8 = "_footer_1cmpp_23", B8 = "_volume_1cmpp_29", a1 = {
3706
3713
  grid: P8,
3707
3714
  header: L8,
3708
3715
  content: $8,
3709
3716
  footer: A8,
3710
3717
  volume: B8
3711
- }, At = ({ header: e, footer: t, content: o, volume: c, showVolume: r }) => /* @__PURE__ */ n.jsxs("div", { className: i1.grid, children: [
3712
- /* @__PURE__ */ n.jsx("div", { className: i1.header, children: e }),
3713
- /* @__PURE__ */ n.jsx("div", { className: i1.content, children: o }),
3714
- r && /* @__PURE__ */ n.jsx("div", { className: i1.volume, children: c }),
3715
- /* @__PURE__ */ n.jsx("div", { className: i1.footer, children: t })
3718
+ }, At = ({ header: e, footer: t, content: o, volume: c, showVolume: r }) => /* @__PURE__ */ n.jsxs("div", { className: a1.grid, children: [
3719
+ /* @__PURE__ */ n.jsx("div", { className: a1.header, children: e }),
3720
+ /* @__PURE__ */ n.jsx("div", { className: a1.content, children: o }),
3721
+ r && /* @__PURE__ */ n.jsx("div", { className: a1.volume, children: c }),
3722
+ /* @__PURE__ */ n.jsx("div", { className: a1.footer, children: t })
3716
3723
  ] }), k8 = "_grid_11w5q_1", O8 = "_header_11w5q_11", W8 = "_content_11w5q_17", p1 = {
3717
3724
  grid: k8,
3718
3725
  header: O8,
@@ -3721,13 +3728,13 @@ const P8 = "_grid_1cmpp_1", L8 = "_header_1cmpp_11", $8 = "_content_1cmpp_17", A
3721
3728
  /* @__PURE__ */ n.jsx("div", { className: p1.header, children: t }),
3722
3729
  c && /* @__PURE__ */ n.jsx("div", { className: p1.leftNav, children: c }),
3723
3730
  /* @__PURE__ */ n.jsx("div", { className: p1.content, children: o })
3724
- ] }), V8 = "_grid_1uwfo_1", U8 = "_header_1uwfo_11", H8 = "_content_1uwfo_17", $1 = {
3731
+ ] }), V8 = "_grid_1uwfo_1", U8 = "_header_1uwfo_11", H8 = "_content_1uwfo_17", A1 = {
3725
3732
  grid: V8,
3726
3733
  header: U8,
3727
3734
  content: H8
3728
- }, kt = ({ className: e, header: t, content: o }) => /* @__PURE__ */ n.jsxs("div", { className: `${e} ${$1.grid}`, children: [
3729
- /* @__PURE__ */ n.jsx("div", { className: $1.header, children: t }),
3730
- /* @__PURE__ */ n.jsx("div", { className: $1.content, children: o })
3735
+ }, kt = ({ className: e, header: t, content: o }) => /* @__PURE__ */ n.jsxs("div", { className: `${e} ${A1.grid}`, children: [
3736
+ /* @__PURE__ */ n.jsx("div", { className: A1.header, children: t }),
3737
+ /* @__PURE__ */ n.jsx("div", { className: A1.content, children: o })
3731
3738
  ] });
3732
3739
  class Ot {
3733
3740
  constructor() {
@@ -3771,8 +3778,8 @@ export {
3771
3778
  g8 as IconMultiMoon,
3772
3779
  f8 as IconMultiPlaystation,
3773
3780
  w8 as IconMultiPodium,
3774
- p8 as IconMultiPower,
3775
- m8 as IconMultiPrivacy,
3781
+ m8 as IconMultiPower,
3782
+ p8 as IconMultiPrivacy,
3776
3783
  M8 as IconMultiQuestion,
3777
3784
  x8 as IconMultiRightArrow,
3778
3785
  Z8 as IconMultiRoomPC,
@@ -3789,7 +3796,7 @@ export {
3789
3796
  At as MainLayout,
3790
3797
  Vt as MessageHandler,
3791
3798
  W6 as MobileControlProvider,
3792
- I as MultiStateIconContainer,
3799
+ R as MultiStateIconContainer,
3793
3800
  $t as NamedIconButton,
3794
3801
  Ot as ShareState,
3795
3802
  Bt as TechLayout,
@@ -3803,12 +3810,12 @@ export {
3803
3810
  O3 as WebsocketContext,
3804
3811
  T3 as appConfigActions,
3805
3812
  Be as createWebSocketMiddleware,
3806
- g1 as devicesActions,
3813
+ f1 as devicesActions,
3807
3814
  Wt as getBaseLocation,
3808
3815
  f3 as httpClient,
3809
3816
  _8 as iconsDictionary,
3810
3817
  Ut as roomOffSourceKey,
3811
- f1 as roomsActions,
3818
+ w1 as roomsActions,
3812
3819
  U as runtimeConfigActions,
3813
3820
  C3 as selectAllDevices,
3814
3821
  T2 as selectApiPath,
@@ -3820,7 +3827,7 @@ export {
3820
3827
  ve as selectDeviceSupportsInterface,
3821
3828
  fe as selectError,
3822
3829
  y3 as selectInterfacesForDevice,
3823
- me as selectIsSyncStateValuePresent,
3830
+ pe as selectIsSyncStateValuePresent,
3824
3831
  de as selectIsTouchpanel,
3825
3832
  D2 as selectLogoPath,
3826
3833
  V1 as selectModalVisibility,
@@ -3851,7 +3858,7 @@ export {
3851
3858
  ge as selectShowPopoverById,
3852
3859
  we as selectShowReconnect,
3853
3860
  re as selectSystemUuid,
3854
- pe as selectTheme,
3861
+ me as selectTheme,
3855
3862
  ue as selectTouchpanelKey,
3856
3863
  le as selectUserCode,
3857
3864
  oe as selectWsIsConnected,
@@ -3862,9 +3869,9 @@ export {
3862
3869
  Q8 as useApiPath,
3863
3870
  X8 as useAppConfig,
3864
3871
  W1 as useAppDispatch,
3865
- f as useAppSelector,
3872
+ m as useAppSelector,
3866
3873
  H6 as useAvrControl,
3867
- g as useButtonHeldHeartbeat,
3874
+ h as useButtonHeldHeartbeat,
3868
3875
  Q6 as useCameraBase,
3869
3876
  S6 as useClientId,
3870
3877
  Ct as useDeviceIBasicVolume,
@@ -3878,13 +3885,13 @@ export {
3878
3885
  t6 as useGetAllDevices,
3879
3886
  o6 as useGetAllRooms,
3880
3887
  $6 as useGetCurrentPopoverIdForGroup,
3881
- _ as useGetDevice,
3888
+ P as useGetDevice,
3882
3889
  V6 as useGetIBasicVolume,
3883
3890
  U6 as useGetIBasicVolumeWithFeedback,
3884
3891
  s6 as useGetRoom,
3885
3892
  M6 as useGetRoomDisplayStates,
3886
3893
  x6 as useGetZoomRoomControllerKey,
3887
- S1 as useIBasicVolume,
3894
+ j1 as useIBasicVolume,
3888
3895
  W3 as useIBasicVolumeWithFeedback,
3889
3896
  G6 as useIChannel,
3890
3897
  Y6 as useIColor,
@@ -3911,8 +3918,8 @@ export {
3911
3918
  gt as useISetTopBoxControls,
3912
3919
  ft as useIShadesOpenCloseStop,
3913
3920
  wt as useIShutdownPromptTimer,
3914
- pt as useISwitchedOutput,
3915
- mt as useITechPassword,
3921
+ mt as useISwitchedOutput,
3922
+ pt as useITechPassword,
3916
3923
  Mt as useITemperatureSensor,
3917
3924
  xt as useITheme,
3918
3925
  Zt as useITransport,
@@ -3925,7 +3932,7 @@ export {
3925
3932
  yt as useOverflow,
3926
3933
  e6 as usePartnerMetadata,
3927
3934
  Ge as usePressHoldRelease,
3928
- p6 as useRoomAdvancedSharingActive,
3935
+ m6 as useRoomAdvancedSharingActive,
3929
3936
  l6 as useRoomAudioControlPointList,
3930
3937
  v6 as useRoomCodecContentDestinationKey,
3931
3938
  n6 as useRoomConfiguration,
@@ -3942,9 +3949,9 @@ export {
3942
3949
  ne as useRoomLevelControls,
3943
3950
  c6 as useRoomName,
3944
3951
  d6 as useRoomProgramAudioDestinationKey,
3945
- m6 as useRoomShareState,
3952
+ p6 as useRoomShareState,
3946
3953
  r6 as useRoomSourceList,
3947
- Z1 as useRoomState,
3954
+ S1 as useRoomState,
3948
3955
  te as useRoomVolume,
3949
3956
  y6 as useRuntimeInfo,
3950
3957
  Et as useScroll,
@@ -3962,7 +3969,7 @@ export {
3962
3969
  I6 as useTouchpanelKey,
3963
3970
  jt as useTwoWayDisplayBase,
3964
3971
  C6 as useUserCode,
3965
- R as useWebsocketContext,
3972
+ E as useWebsocketContext,
3966
3973
  I3 as useWsIsConnected,
3967
3974
  Le as wsAddEventHandler,
3968
3975
  k3 as wsConnect,