@pepperdash/mobile-control-react-app-core 1.21.0-fix-double-join-call.5 → 1.21.0-fix-double-join-call.6

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,140 +1,140 @@
1
- var d2 = Object.defineProperty;
2
- var v2 = (e, t, o) => t in e ? d2(e, t, { enumerable: !0, configurable: !0, writable: !0, value: o }) : e[t] = o;
3
- var F = (e, t, o) => v2(e, typeof t != "symbol" ? t + "" : t, o);
4
- import w3, { AxiosError as h2 } from "axios";
5
- import { useDispatch as g2, useSelector as f2, Provider as w2 } from "react-redux";
6
- import { createSelector as M, createSlice as l1, combineReducers as p2, configureStore as m2 } from "@reduxjs/toolkit";
7
- import p3, { createContext as M2, useEffect as w1, useCallback as o1, useContext as x2, useRef as _1, useState as q, useLayoutEffect as m3 } from "react";
8
- import { useNavigate as Z2, useRouteError as S2, isRouteErrorResponse as j2 } from "react-router-dom";
9
- import * as M3 from "lodash";
10
- const A1 = g2.withTypes(), m = f2.withTypes(), p1 = (e) => e.appConfig, C2 = M(
11
- p1,
1
+ var v2 = Object.defineProperty;
2
+ var h2 = (e, t, o) => t in e ? v2(e, t, { enumerable: !0, configurable: !0, writable: !0, value: o }) : e[t] = o;
3
+ var K = (e, t, o) => h2(e, typeof t != "symbol" ? t + "" : t, o);
4
+ import p3, { AxiosError as g2 } from "axios";
5
+ import { useDispatch as f2, useSelector as w2, Provider as p2 } from "react-redux";
6
+ import { createSelector as M, createSlice as i1, combineReducers as m2, configureStore as M2 } from "@reduxjs/toolkit";
7
+ import m3, { createContext as x2, useEffect as m1, useCallback as s1, useContext as Z2, useRef as L1, useState as G, useLayoutEffect as M3 } from "react";
8
+ import { useNavigate as S2, useRouteError as j2, isRouteErrorResponse as C2 } from "react-router-dom";
9
+ import * as x3 from "lodash";
10
+ const O1 = f2.withTypes(), m = w2.withTypes(), M1 = (e) => e.appConfig, b2 = M(
11
+ M1,
12
12
  (e) => e.config
13
- ), b2 = M(
14
- p1,
15
- (e) => e.config.apiPath
16
13
  ), y2 = M(
17
- p1,
18
- (e) => e.config.logoPath
14
+ M1,
15
+ (e) => e.config.apiPath
19
16
  ), I2 = M(
20
- p1,
17
+ M1,
18
+ (e) => e.config.logoPath
19
+ ), R2 = M(
20
+ M1,
21
21
  (e) => e.config.partnerMetadata
22
- ), G8 = () => m(C2), Y8 = () => m(b2), z8 = () => m(y2), J8 = () => m(I2), x3 = (e) => e.devices, Z3 = M(
23
- x3,
22
+ ), G8 = () => m(b2), Y8 = () => m(y2), z8 = () => m(I2), J8 = () => m(R2), Z3 = (e) => e.devices, S3 = M(
23
+ Z3,
24
24
  (e) => e
25
- ), R2 = (e) => M(
26
- x3,
25
+ ), E2 = (e) => M(
26
+ Z3,
27
27
  (t) => t[e] ? t[e] : void 0
28
- ), X8 = () => m(Z3);
29
- function _(e) {
30
- return m(R2(e));
28
+ ), X8 = () => m(S3);
29
+ function D(e) {
30
+ return m(E2(e));
31
31
  }
32
- const A = (e) => e.rooms, E2 = (e) => M(
33
- A,
32
+ const $ = (e) => e.rooms, T2 = (e) => M(
33
+ $,
34
34
  (t) => t[e] ? t[e].configuration : void 0
35
- ), T2 = M(
36
- A,
35
+ ), D2 = M(
36
+ $,
37
37
  (e) => e
38
- ), D2 = (e) => M(
39
- A,
40
- (t) => t[e] ? t[e] : void 0
41
38
  ), _2 = (e) => M(
42
- A,
39
+ $,
40
+ (t) => t[e] ? t[e] : void 0
41
+ ), P2 = (e) => M(
42
+ $,
43
43
  (t) => t[e] ? t[e].name : void 0
44
- ), P2 = (e, t) => M(
45
- A,
44
+ ), L2 = (e, t) => M(
45
+ $,
46
46
  (o) => o[e] ? o[e].volumes[t] : void 0
47
- ), L2 = (e) => M(
48
- A,
47
+ ), A2 = (e) => M(
48
+ $,
49
49
  (t) => t[e] ? t[e] : void 0
50
50
  ), $2 = (e) => M(
51
- A,
51
+ $,
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
- ), A2 = (e) => M(
57
- A,
56
+ ), B2 = (e) => M(
57
+ $,
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
- ), B2 = (e) => M(
63
- A,
62
+ ), O2 = (e) => M(
63
+ $,
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
- ), O2 = (e) => M(
69
- A,
68
+ ), k2 = (e) => M(
69
+ $,
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
- ), k2 = (e) => M(
75
- A,
74
+ ), W2 = (e) => M(
75
+ $,
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
- ), W2 = (e) => M(
81
- A,
80
+ ), V2 = (e) => M(
81
+ $,
82
82
  (t) => {
83
83
  var o, c, r, i, v, u, h, w;
84
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 : ((w = (h = (u = t[e]) == null ? void 0 : u.configuration) == null ? void 0 : h.destinationList.defaultDisplay) == null ? void 0 : w.sinkKey) || "";
85
85
  }
86
- ), V2 = (e) => M(
87
- A,
86
+ ), U2 = (e) => M(
87
+ $,
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
- ), U2 = (e) => M(
93
- A,
92
+ ), H2 = (e) => M(
93
+ $,
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
- ), H2 = (e) => M(
99
- A,
98
+ ), F2 = (e) => M(
99
+ $,
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
- ), F2 = (e) => M(
105
- A,
104
+ ), K2 = (e) => M(
105
+ $,
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
- ), K2 = (e) => M(
111
- A,
110
+ ), q2 = (e) => M(
111
+ $,
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
- ), q2 = (e) => M(
117
- A,
116
+ ), G2 = (e) => M(
117
+ $,
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
- ), G2 = (e) => M(
123
- A,
122
+ ), Y2 = (e) => M(
123
+ $,
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
- ), Y2 = (e) => M(
129
- A,
128
+ ), z2 = (e) => M(
129
+ $,
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
- ), z2 = M(
134
+ ), J2 = M(
135
135
  [
136
136
  (e, t) => t,
137
- () => Z3,
137
+ () => S3,
138
138
  (e, t) => {
139
139
  var o, c;
140
140
  return (c = (o = e.rooms[t]) == null ? void 0 : o.configuration) == null ? void 0 : c.destinations;
@@ -148,66 +148,66 @@ const A = (e) => e.rooms, E2 = (e) => M(
148
148
  );
149
149
  function Q8(e) {
150
150
  return m(
151
- E2(e)
151
+ T2(e)
152
152
  );
153
153
  }
154
154
  function N8() {
155
- return m(T2);
155
+ return m(D2);
156
156
  }
157
- function m1(e) {
158
- return m(D2(e));
157
+ function x1(e) {
158
+ return m(_2(e));
159
159
  }
160
- const e6 = m1, t6 = (e) => m(
161
- _2(e)
162
- ), J2 = (e, t) => m(
163
- P2(e, t)
164
- ), X2 = (e) => m(L2(e)) || void 0, n6 = (e) => m($2(e)), o6 = (e) => m(A2(e)), s6 = (e) => m(B2(e)), c6 = (e) => m(O2(e)), r6 = (e) => m(k2(e)), l6 = (e) => m(W2(e)), i6 = (e) => m(V2(e)), a6 = (e) => m(U2(e)), u6 = (e) => m(H2(e)), d6 = (e) => m(F2(e)), v6 = (e) => m(K2(e)), h6 = (e) => m(q2(e)), g6 = (e) => m(G2(e)), f6 = (e) => m((t) => z2(t, e)), w6 = (e) => m(Y2(e)), K = (e) => e.runtimeConfig, Q2 = M(
165
- K,
160
+ const e6 = x1, t6 = (e) => m(
161
+ P2(e)
162
+ ), X2 = (e, t) => m(
163
+ L2(e, t)
164
+ ), Q2 = (e) => m(A2(e)) || void 0, n6 = (e) => m($2(e)), o6 = (e) => m(B2(e)), s6 = (e) => m(O2(e)), c6 = (e) => m(k2(e)), 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((t) => J2(t, e)), w6 = (e) => m(z2(e)), q = (e) => e.runtimeConfig, N2 = M(
165
+ q,
166
166
  (e) => e.websocket.isConnected
167
- ), N2 = M(
168
- K,
169
- (e) => e.currentRoomKey
170
167
  ), ee = M(
171
- K,
172
- (e) => e.roomData.clientId
168
+ q,
169
+ (e) => e.currentRoomKey
173
170
  ), te = M(
174
- K,
175
- (e) => e.roomData.systemUuid
171
+ q,
172
+ (e) => e.roomData.clientId
176
173
  ), ne = M(
177
- K,
178
- (e) => e.roomData.userCode
174
+ q,
175
+ (e) => e.roomData.systemUuid
179
176
  ), oe = M(
180
- K,
181
- (e) => e.serverIsRunningOnProcessorHardware
177
+ q,
178
+ (e) => e.roomData.userCode
182
179
  ), se = M(
183
- K,
180
+ q,
181
+ (e) => e.serverIsRunningOnProcessorHardware
182
+ ), ce = M(
183
+ q,
184
184
  (e) => {
185
185
  var t;
186
186
  return (t = e.roomData.config) == null ? void 0 : t.runtimeInfo;
187
187
  }
188
- ), ce = M(
189
- K,
190
- (e) => e.touchpanelKey
191
188
  ), re = M(
192
- K,
193
- (e) => e.touchpanelKey !== ""
189
+ q,
190
+ (e) => e.touchpanelKey
194
191
  ), le = M(
195
- K,
192
+ q,
193
+ (e) => e.touchpanelKey !== ""
194
+ ), ie = M(
195
+ q,
196
196
  (e) => e.roomData.deviceInterfaceSupport
197
- ), S3 = () => m(Q2), p6 = () => m(N2), m6 = () => m(ee), M6 = () => m(te), x6 = () => m(ne), Z6 = () => m(oe), S6 = () => m(se), j6 = () => m(ce), C6 = () => m(re), b6 = () => m(le), X = (e) => e.ui, B1 = (e) => M(X, (t) => t.modalVisibility[e]), ie = (e) => M(X, (t) => {
197
+ ), j3 = () => m(N2), p6 = () => m(ee), m6 = () => m(te), M6 = () => m(ne), x6 = () => m(oe), Z6 = () => m(se), S6 = () => m(ce), j6 = () => m(re), C6 = () => m(le), b6 = () => m(ie), Q = (e) => e.ui, k1 = (e) => M(Q, (t) => t.modalVisibility[e]), ae = (e) => M(Q, (t) => {
198
198
  const o = t.popoverVisibility[e];
199
199
  if (o)
200
200
  return Object.keys(o).find((c) => o[c]);
201
- }), ae = (e, t) => M(
202
- X,
201
+ }), ue = (e, t) => M(
202
+ Q,
203
203
  (o) => {
204
204
  var c;
205
205
  return ((c = o.popoverVisibility[e]) == null ? void 0 : c[t]) ?? !1;
206
206
  }
207
- ), ue = M(X, (e) => e.error), de = M(
208
- X,
207
+ ), de = M(Q, (e) => e.error), ve = M(
208
+ Q,
209
209
  (e) => e.showReconnect
210
- ), ve = M(X, (e) => e.theme), he = (e) => M(X, (t) => t.syncState.includes(e)), y6 = () => m(B1("showShutdownModal")), I6 = () => m(B1("showIncomingCallModal")), R6 = (e) => m(B1(e)), E6 = (e) => m(ie(e)), T6 = (e, t) => m(ae(e, t)), ge = () => m(ue), fe = () => m(de), D6 = () => m(ve), we = (e) => m(he(e)), pe = {
210
+ ), he = M(Q, (e) => e.theme), ge = (e) => M(Q, (t) => t.syncState.includes(e)), y6 = () => m(k1("showShutdownModal")), I6 = () => m(k1("showIncomingCallModal")), R6 = (e) => m(k1(e)), E6 = (e) => m(ae(e)), T6 = (e, t) => m(ue(e, t)), fe = () => m(de), we = () => m(ve), D6 = () => m(he), pe = (e) => m(ge(e)), me = {
211
211
  showReconnect: !1,
212
212
  error: "",
213
213
  modalVisibility: {
@@ -216,9 +216,9 @@ const e6 = m1, t6 = (e) => m(
216
216
  },
217
217
  popoverVisibility: {},
218
218
  syncState: []
219
- }, j3 = l1({
219
+ }, C3 = i1({
220
220
  name: "ui",
221
- initialState: pe,
221
+ initialState: me,
222
222
  reducers: {
223
223
  clearAllModals(e) {
224
224
  Object.entries(e.modalVisibility).forEach(([t]) => {
@@ -262,7 +262,7 @@ const e6 = m1, t6 = (e) => m(
262
262
  e.syncState = [];
263
263
  }
264
264
  }
265
- }), V = j3.actions, me = j3.reducer, Me = {
265
+ }), k = C3.actions, Me = C3.reducer, xe = {
266
266
  config: {
267
267
  enableDev: !1,
268
268
  apiPath: "",
@@ -272,65 +272,65 @@ const e6 = m1, t6 = (e) => m(
272
272
  loginMode: "",
273
273
  modes: {}
274
274
  }
275
- }, C3 = l1({
275
+ }, b3 = i1({
276
276
  name: "appConfig",
277
- initialState: Me,
277
+ initialState: xe,
278
278
  reducers: {
279
279
  setAppConfig(e, t) {
280
280
  e.config = t.payload;
281
281
  }
282
282
  }
283
- }), b3 = C3.actions, xe = C3.reducer, a3 = {}, P1 = l1({
283
+ }), y3 = b3.actions, Ze = b3.reducer, u3 = {}, A1 = i1({
284
284
  name: "devices",
285
- initialState: a3,
285
+ initialState: u3,
286
286
  reducers: {
287
287
  setDeviceState(e, t) {
288
288
  const o = t.payload.type, c = o.slice(o.lastIndexOf("/") + 1);
289
289
  if (!c) return;
290
- const r = t.payload.content, i = e[c] ?? {}, v = M3.merge(i, r);
290
+ const r = t.payload.content, i = e[c] ?? {}, v = x3.merge(i, r);
291
291
  e[c] = v;
292
292
  },
293
293
  clearDevices() {
294
- return a3;
294
+ return u3;
295
295
  }
296
296
  }
297
- }), v1 = {
298
- setDeviceState: P1.actions.setDeviceState,
299
- clearDevices: P1.actions.clearDevices
300
- }, Ze = P1.reducer;
301
- class Se {
297
+ }), g1 = {
298
+ setDeviceState: A1.actions.setDeviceState,
299
+ clearDevices: A1.actions.clearDevices
300
+ }, Se = A1.reducer;
301
+ class je {
302
302
  constructor() {
303
- F(this, "uuid", "current-uuid");
304
- F(this, "roomKey", "current-room-key");
305
- F(this, "code", "current-code");
306
- F(this, "expiry", "current-uuid-expires");
303
+ K(this, "uuid", "current-uuid");
304
+ K(this, "roomKey", "current-room-key");
305
+ K(this, "code", "current-code");
306
+ K(this, "expiry", "current-uuid-expires");
307
307
  }
308
308
  }
309
- const u3 = new Se();
310
- function je(e) {
309
+ const d3 = new je();
310
+ function Ce(e) {
311
311
  return sessionStorage.getItem(e) || "";
312
312
  }
313
- function Ce(e, t) {
313
+ function be(e, t) {
314
314
  sessionStorage.setItem(e, t);
315
315
  }
316
- const d3 = {}, L1 = l1({
316
+ const v3 = {}, $1 = i1({
317
317
  name: "rooms",
318
- initialState: d3,
318
+ initialState: v3,
319
319
  reducers: {
320
320
  setRoomState(e, t) {
321
321
  const o = t.payload.type, c = o.slice(o.lastIndexOf("/") + 1);
322
322
  if (!c) return;
323
- const r = t.payload.content, i = e[c] ?? {}, v = M3.merge(i, r);
323
+ const r = t.payload.content, i = e[c] ?? {}, v = x3.merge(i, r);
324
324
  e[c] = v;
325
325
  },
326
326
  clearRooms() {
327
- return d3;
327
+ return v3;
328
328
  }
329
329
  }
330
- }), h1 = {
331
- setRoomState: L1.actions.setRoomState,
332
- clearRooms: L1.actions.clearRooms
333
- }, be = L1.reducer, ye = {
330
+ }), f1 = {
331
+ setRoomState: $1.actions.setRoomState,
332
+ clearRooms: $1.actions.clearRooms
333
+ }, ye = $1.reducer, Ie = {
334
334
  apiVersion: "",
335
335
  serverIsRunningOnProcessorHardware: !1,
336
336
  websocket: {
@@ -361,9 +361,9 @@ const d3 = {}, L1 = l1({
361
361
  userCode: "",
362
362
  qrUrl: ""
363
363
  }
364
- }, y3 = l1({
364
+ }, I3 = i1({
365
365
  name: "runtimeConfig",
366
- initialState: ye,
366
+ initialState: Ie,
367
367
  reducers: {
368
368
  setRuntimeConfig(e, t) {
369
369
  e.apiVersion = t.payload.apiVersion, e.serverIsRunningOnProcessorHardware = t.payload.serverIsRunningOnProcessorHardware;
@@ -390,81 +390,88 @@ const d3 = {}, L1 = l1({
390
390
  e.touchpanelKey = t.payload;
391
391
  }
392
392
  }
393
- }), U = y3.actions, Ie = y3.reducer, E1 = w3.create(), I3 = "websocket/connect", R3 = "websocket/disconnect", E3 = "websocket/sendMessage", T3 = "websocket/addEventHandler", D3 = "websocket/removeEventHandler", _3 = "websocket/reconnect", Re = () => ({ type: I3 }), _6 = () => ({ type: R3 }), Ee = (e, t) => ({
394
- type: E3,
393
+ }), H = I3.actions, Re = I3.reducer, D1 = p3.create(), R3 = "websocket/connect", E3 = "websocket/disconnect", T3 = "websocket/sendMessage", D3 = "websocket/addEventHandler", _3 = "websocket/removeEventHandler", P3 = "websocket/reconnect", L3 = () => ({ type: R3 }), _6 = () => ({ type: E3 }), Ee = (e, t) => ({
394
+ type: T3,
395
395
  payload: { messageType: e, content: t }
396
396
  }), Te = (e, t, o) => ({
397
- type: T3,
397
+ type: D3,
398
398
  payload: { eventType: e, key: t, callback: o }
399
399
  }), De = (e, t) => ({
400
- type: D3,
400
+ type: _3,
401
401
  payload: { eventType: e, key: t }
402
- }), _e = () => ({ type: _3 }), Pe = () => {
402
+ }), _e = () => ({ type: P3 }), Pe = () => {
403
403
  const e = {
404
404
  client: null,
405
405
  token: null,
406
406
  waitingToReconnect: !1,
407
+ reconnectTimer: null,
407
408
  eventHandlers: {}
408
409
  }, t = async (a) => {
409
410
  try {
410
- const x = location.pathname.split("/").filter((E) => E.length > 0);
411
+ const x = location.pathname.split("/").filter((b) => b.length > 0);
411
412
  x.length >= 5 ? x.length = 5 : x.length = 2;
412
- const Z = `/${x.join("/")}`, S = await E1.get(
413
+ const S = `/${x.join("/")}`, Z = await D1.get(
413
414
  "/_local-config/_config.local.json",
414
- { baseURL: Z }
415
+ { baseURL: S }
415
416
  );
416
- if (S.status === 200 && S.data) {
417
- const E = S.data.apiPath;
418
- a(b3.setAppConfig(S.data));
419
- const D = await E1.get(
420
- `${E}/version`
417
+ if (Z.status === 200 && Z.data) {
418
+ const b = Z.data.apiPath;
419
+ a(y3.setAppConfig(Z.data));
420
+ const j = await D1.get(
421
+ `${b}/version`
421
422
  );
422
- D.status === 200 && D.data && a(U.setRuntimeConfig(D.data));
423
+ j.status === 200 && j.data && a(H.setRuntimeConfig(j.data));
423
424
  }
424
425
  } catch (x) {
425
426
  console.error("Error getting config", x);
426
427
  }
427
428
  return !0;
428
- }, o = async (a, x, Z) => {
429
+ }, o = async (a, x, S) => {
429
430
  try {
430
- const S = await E1.get(
431
+ const Z = await D1.get(
431
432
  `${a}/ui/joinroom?token=${x}`
432
433
  );
433
- return S.status === 200 && S.data ? (Z(U.setRoomData(S.data)), !0) : !1;
434
- } catch (S) {
435
- return console.log(S), S instanceof h2 && S.response && S.response.status === 498 ? (console.error("Invalid token. Unable to join room"), Z(
436
- V.setErrorMessage(
434
+ return Z.status === 200 && Z.data ? (S(H.setRoomData(Z.data)), !0) : !1;
435
+ } catch (Z) {
436
+ return console.log(Z), Z instanceof g2 && Z.response && Z.response.status === 498 ? (console.error("Invalid token. Unable to join room"), S(
437
+ k.setErrorMessage(
437
438
  `Token ${x} is invalid. Unable to join room`
438
439
  )
439
- ), !1) : (console.error("Error getting room data", S), S instanceof Error ? Z(V.setErrorMessage(S.message)) : Z(V.setErrorMessage("Error getting room data")), !1);
440
+ ), !1) : (console.error("Error getting room data", Z), Z instanceof Error ? S(k.setErrorMessage(Z.message)) : S(k.setErrorMessage("Error getting room data")), !1);
440
441
  }
441
442
  }, c = (a) => {
442
- a(V.setShowReconnect(!0)), a(U.setWebsocketIsConnected(!1)), a(v1.clearDevices()), a(h1.clearRooms()), a(V.clearAllModals()), a(V.clearSyncState());
443
- }, r = (a) => {
444
- const x = a(), { roomKey: Z } = x.runtimeConfig.roomData, { clientId: S } = x.runtimeConfig.roomData, E = x.runtimeConfig.websocket.isConnected;
445
- if (!Z || !E || !S) {
443
+ e.reconnectTimer && (clearTimeout(e.reconnectTimer), e.reconnectTimer = null), console.log("WebSocket middleware: Starting reconnection loop..."), e.reconnectTimer = setTimeout(() => {
444
+ e.waitingToReconnect = !1, e.reconnectTimer = null, console.log("WebSocket middleware: Attempting automatic reconnection..."), a(L3());
445
+ }, 5e3);
446
+ }, r = () => {
447
+ e.reconnectTimer && (console.log("WebSocket middleware: Stopping reconnection loop"), clearTimeout(e.reconnectTimer), e.reconnectTimer = null);
448
+ }, i = (a) => {
449
+ a(k.setShowReconnect(!0)), a(H.setWebsocketIsConnected(!1)), a(g1.clearDevices()), a(f1.clearRooms()), a(k.clearAllModals()), a(k.clearSyncState());
450
+ }, v = (a) => {
451
+ const x = a(), { roomKey: S } = x.runtimeConfig.roomData, { clientId: Z } = x.runtimeConfig.roomData, b = x.runtimeConfig.websocket.isConnected;
452
+ if (!S || !b || !Z) {
446
453
  console.log("WebSocket middleware: Cannot request room status", {
447
- hasRoomKey: !!Z,
448
- isConnected: E,
449
- hasClientId: !!S
454
+ hasRoomKey: !!S,
455
+ isConnected: b,
456
+ hasClientId: !!Z
450
457
  });
451
458
  return;
452
459
  }
453
- console.log("WebSocket middleware: Requesting status from room:", Z), e.client && E && e.client.send(
460
+ console.log("WebSocket middleware: Requesting status from room:", S), e.client && b && e.client.send(
454
461
  JSON.stringify({
455
- type: `/room/${Z}/status`,
456
- clientId: S,
462
+ type: `/room/${S}/status`,
463
+ clientId: Z,
457
464
  content: null
458
465
  })
459
466
  );
460
- }, i = async (a, x) => {
467
+ }, u = async (a, x) => {
461
468
  console.log("WebSocket middleware: Attempting to connect...");
462
- const Z = x(), { apiPath: S } = Z.appConfig.config, { serverIsRunningOnProcessorHardware: E } = Z.runtimeConfig;
463
- if (!S || !e.token) {
469
+ const S = x(), { apiPath: Z } = S.appConfig.config, { serverIsRunningOnProcessorHardware: b } = S.runtimeConfig;
470
+ if (!Z || !e.token) {
464
471
  console.log(
465
472
  "WebSocket middleware: Cannot connect - missing requirements",
466
473
  {
467
- hasApiPath: !!S,
474
+ hasApiPath: !!Z,
468
475
  hasToken: !!e.token
469
476
  }
470
477
  );
@@ -482,86 +489,94 @@ const d3 = {}, L1 = l1({
482
489
  }
483
490
  e.waitingToReconnect = !0;
484
491
  try {
485
- if (!await o(S, e.token, a)) {
486
- console.log("WebSocket middleware: Failed to get room data"), e.waitingToReconnect = !1;
492
+ if (!await o(Z, e.token, a)) {
493
+ console.log(
494
+ "WebSocket middleware: Failed to get room data, will retry..."
495
+ ), c(a);
487
496
  return;
488
497
  }
489
498
  console.log("WebSocket middleware: Connecting to websocket");
490
- const B = `${S.replace("http", "ws")}/ui/join/${e.token}`, G = new WebSocket(B);
491
- e.client = G, G.onopen = (O) => {
492
- console.log("WebSocket middleware: Connected", O.type, O.target), a(U.setWebsocketIsConnected(!0));
493
- }, G.onerror = (O) => {
494
- console.error("WebSocket middleware: Error", O), c(a);
495
- }, G.onclose = (O) => {
499
+ const Z1 = `${Z.replace("http", "ws")}/ui/join/${e.token}`, Y = new WebSocket(Z1);
500
+ e.client = Y, Y.onopen = (B) => {
501
+ console.log("WebSocket middleware: Connected", B.type, B.target), e.waitingToReconnect = !1, r(), a(H.setWebsocketIsConnected(!0));
502
+ }, Y.onerror = (B) => {
503
+ console.error("WebSocket middleware: Error", B), i(a);
504
+ }, Y.onclose = (B) => {
496
505
  if (console.log(
497
506
  "WebSocket middleware: Disconnected",
498
- O.reason,
499
- O.code
500
- ), O.code === 4100) {
501
- console.log("WebSocket middleware: Closed by client (cleanup)"), c(a);
507
+ B.reason,
508
+ B.code
509
+ ), B.code === 4100) {
510
+ console.log("WebSocket middleware: Closed by client (cleanup)"), r(), i(a);
502
511
  return;
503
512
  }
504
- if (e.waitingToReconnect = !0, O.code === 4e3) {
505
- console.log("WebSocket middleware: User code changed"), a(
506
- U.setUserCode({ userCode: "", qrUrl: "" })
513
+ if (e.waitingToReconnect = !0, B.code === 4e3) {
514
+ console.log("WebSocket middleware: User code changed"), r(), a(
515
+ H.setUserCode({ userCode: "", qrUrl: "" })
507
516
  ), a(
508
- V.setErrorMessage(
517
+ k.setErrorMessage(
509
518
  "User code changed. Click reconnect to enter the new code"
510
519
  )
511
- ), c(a);
520
+ ), i(a);
512
521
  return;
513
522
  }
514
- if (O.code === 4001 && !E) {
515
- console.log("WebSocket middleware: Processor disconnected"), a(
516
- V.setErrorMessage(
517
- "Processor has disconnected. Click Reconnect"
523
+ if (B.code === 4002) {
524
+ console.log("WebSocket middleware: Room combination changed"), r(), a(
525
+ k.setErrorMessage(
526
+ "Room combination changed. Click Reconnect to re-join the room"
518
527
  )
519
- ), c(a);
528
+ ), i(a);
520
529
  return;
521
530
  }
522
- if (O.code === 4002) {
523
- console.log("WebSocket middleware: Room combination changed"), a(
524
- V.setErrorMessage(
525
- "Room combination changed. Click Reconnect to re-join the room"
531
+ if (B.code === 4001 && !b) {
532
+ console.log(
533
+ "WebSocket middleware: Processor disconnected (not on processor hardware)"
534
+ ), r(), a(
535
+ k.setErrorMessage(
536
+ "Processor has disconnected. Click Reconnect"
526
537
  )
527
- ), c(a);
538
+ ), i(a);
528
539
  return;
529
540
  }
530
541
  if (e.client)
531
- console.log("WebSocket middleware: Closed by server");
542
+ console.log(
543
+ "WebSocket middleware: Closed by server, will auto-reconnect"
544
+ );
532
545
  else {
533
546
  console.log("WebSocket middleware: Closed by client");
534
547
  return;
535
548
  }
536
- console.log("WebSocket middleware: Clearing state on disconnect"), a(U.setWebsocketIsConnected(!1)), a(v1.clearDevices()), a(h1.clearRooms()), a(V.clearAllModals()), a(V.clearSyncState()), setTimeout(() => {
537
- e.waitingToReconnect = !1;
538
- }, 5e3);
539
- }, G.onmessage = (O) => {
549
+ e.client = null, console.log("WebSocket middleware: Clearing state on disconnect"), a(
550
+ k.setErrorMessage(
551
+ "Connection lost. Attempting to reconnect..."
552
+ )
553
+ ), a(H.setWebsocketIsConnected(!1)), a(g1.clearDevices()), a(f1.clearRooms()), a(k.clearAllModals()), a(k.clearSyncState()), c(a);
554
+ }, Y.onmessage = (B) => {
540
555
  try {
541
- const P = JSON.parse(O.data);
542
- if (console.log("WebSocket middleware: Message received", P), P.type === "close") {
543
- G.close(4001, P.content);
556
+ const _ = JSON.parse(B.data);
557
+ if (console.log("WebSocket middleware: Message received", _), _.type === "close") {
558
+ Y.close(4001, _.content);
544
559
  return;
545
560
  }
546
- if (P.type.startsWith("/system/"))
547
- switch (P.type) {
561
+ if (_.type.startsWith("/system/"))
562
+ switch (_.type) {
548
563
  case "/system/touchpanelKey":
549
564
  a(
550
- U.setTouchpanelKey(
551
- P.content
565
+ H.setTouchpanelKey(
566
+ _.content
552
567
  )
553
568
  );
554
569
  break;
555
570
  case "/system/roomKey":
556
- a(h1.clearRooms()), a(v1.clearDevices()), a(V.clearSyncState()), a(
557
- U.setCurrentRoomKey(
558
- P.content
571
+ a(f1.clearRooms()), a(g1.clearDevices()), a(k.clearSyncState()), a(
572
+ H.setCurrentRoomKey(
573
+ _.content
559
574
  )
560
575
  );
561
576
  break;
562
577
  case "/system/userCodeChanged":
563
578
  a(
564
- U.setUserCode(P.content)
579
+ H.setUserCode(_.content)
565
580
  );
566
581
  break;
567
582
  case "/system/roomCombinationChanged":
@@ -570,125 +585,125 @@ const d3 = {}, L1 = l1({
570
585
  default:
571
586
  console.log(
572
587
  "WebSocket middleware: Unhandled system message",
573
- P
588
+ _
574
589
  );
575
590
  break;
576
591
  }
577
- else if (P.type.startsWith("/event/")) {
592
+ else if (_.type.startsWith("/event/")) {
578
593
  console.log(
579
594
  "WebSocket middleware: Event message received",
580
- P
595
+ _
581
596
  );
582
- const e1 = e.eventHandlers[P.type];
583
- e1 || console.log(
597
+ const t1 = e.eventHandlers[_.type];
598
+ t1 || console.log(
584
599
  "WebSocket middleware: No handlers found for event type",
585
- P.type
586
- ), e1 && Object.values(e1).forEach((M1) => {
600
+ _.type
601
+ ), t1 && Object.values(t1).forEach((a1) => {
587
602
  try {
588
- M1(P);
589
- } catch (x1) {
603
+ a1(_);
604
+ } catch (S1) {
590
605
  console.error(
591
606
  "WebSocket middleware: Event handler error",
592
- x1
607
+ S1
593
608
  );
594
609
  }
595
610
  });
596
- } else P.type.startsWith("/room/") ? a(h1.setRoomState(P)) : P.type.startsWith("/device/") && a(v1.setDeviceState(P));
597
- } catch (P) {
598
- console.error("WebSocket middleware: Message handling error", P);
611
+ } else _.type.startsWith("/room/") ? a(f1.setRoomState(_)) : _.type.startsWith("/device/") && a(g1.setDeviceState(_));
612
+ } catch (_) {
613
+ console.error("WebSocket middleware: Message handling error", _);
599
614
  }
600
615
  }, e.waitingToReconnect = !1;
601
- } catch (D) {
602
- console.error("WebSocket middleware: Connection error", D), e.waitingToReconnect = !1, e.client = null;
616
+ } catch (j) {
617
+ console.error("WebSocket middleware: Connection error", j), e.waitingToReconnect = !1, e.client = null;
603
618
  }
604
- }, v = () => {
605
- e.client && (console.log("WebSocket middleware: Disconnecting"), e.client.close(4100, "Client requested disconnect"), e.client = null);
606
- }, u = (a, x, Z) => {
607
- const S = Z(), E = S.runtimeConfig.websocket.isConnected, D = S.runtimeConfig.roomData.clientId;
608
- e.client && E ? e.client.send(
609
- JSON.stringify({ type: a, clientId: D, content: x })
619
+ }, h = () => {
620
+ e.client && (console.log("WebSocket middleware: Disconnecting"), r(), e.client.close(4100, "Client requested disconnect"), e.client = null);
621
+ }, w = (a, x, S) => {
622
+ const Z = S(), b = Z.runtimeConfig.websocket.isConnected, j = Z.runtimeConfig.roomData.clientId;
623
+ e.client && b ? e.client.send(
624
+ JSON.stringify({ type: a, clientId: j, content: x })
610
625
  ) : console.warn("WebSocket middleware: Cannot send message - not connected");
611
- }, h = (a, x, Z) => {
612
- e.eventHandlers[a] || (e.eventHandlers[a] = {}), e.eventHandlers[a][x] = Z, console.log("WebSocket middleware: Event handler added", a, x);
613
- }, w = (a, x) => {
626
+ }, f = (a, x, S) => {
627
+ e.eventHandlers[a] || (e.eventHandlers[a] = {}), e.eventHandlers[a][x] = S, console.log("WebSocket middleware: Event handler added", a, x);
628
+ }, P = (a, x) => {
614
629
  e.eventHandlers[a] && (delete e.eventHandlers[a][x], console.log(
615
630
  "WebSocket middleware: Event handler removed",
616
631
  a,
617
632
  x
618
633
  ));
619
- }, f = (a) => {
620
- const x = a(), { gatewayAppPath: Z } = x.appConfig.config, S = x.runtimeConfig.roomData.roomKey, E = x.runtimeConfig.roomData.systemUuid, D = x.runtimeConfig.roomData.userCode, T = `${Z}?uuid=${E}&roomKey=${S}`;
621
- window.location.href = D ? `${T}&Code=${D}` : T;
634
+ }, U = (a) => {
635
+ const x = a(), { gatewayAppPath: S } = x.appConfig.config, Z = x.runtimeConfig.roomData.roomKey, b = x.runtimeConfig.roomData.systemUuid, j = x.runtimeConfig.roomData.userCode, W = `${S}?uuid=${b}&roomKey=${Z}`;
636
+ window.location.href = j ? `${W}&Code=${j}` : W;
622
637
  };
623
- return (a) => (x) => (Z) => {
624
- const S = x(Z);
625
- if (!Z || typeof Z != "object" || !("type" in Z))
626
- return S;
627
- const E = Z;
638
+ return (a) => (x) => (S) => {
639
+ const Z = x(S);
640
+ if (!S || typeof S != "object" || !("type" in S))
641
+ return Z;
642
+ const b = S;
628
643
  return (async () => {
629
- switch (E.type) {
630
- case I3: {
631
- let T = new URLSearchParams(window.location.search).get("token");
632
- T ? (console.log("WebSocket middleware: Saving token"), Ce(u3.uuid, T)) : (T = je(u3.uuid), console.log("WebSocket middleware: Loading token")), e.token = T, await t(a.dispatch), await i(a.dispatch, a.getState);
644
+ switch (b.type) {
645
+ case R3: {
646
+ let W = new URLSearchParams(window.location.search).get("token");
647
+ W ? (console.log("WebSocket middleware: Saving token"), be(d3.uuid, W)) : (W = Ce(d3.uuid), console.log("WebSocket middleware: Loading token")), e.token = W, await t(a.dispatch), await u(a.dispatch, a.getState);
633
648
  break;
634
649
  }
635
- case R3:
636
- v();
637
- break;
638
650
  case E3:
639
- u(
640
- E.payload.messageType,
641
- E.payload.content,
642
- a.getState
643
- );
651
+ h();
644
652
  break;
645
653
  case T3:
646
- h(
647
- E.payload.eventType,
648
- E.payload.key,
649
- E.payload.callback
654
+ w(
655
+ b.payload.messageType,
656
+ b.payload.content,
657
+ a.getState
650
658
  );
651
659
  break;
652
660
  case D3:
653
- w(
654
- E.payload.eventType,
655
- E.payload.key
661
+ f(
662
+ b.payload.eventType,
663
+ b.payload.key,
664
+ b.payload.callback
656
665
  );
657
666
  break;
658
667
  case _3:
659
- f(a.getState);
668
+ P(
669
+ b.payload.eventType,
670
+ b.payload.key
671
+ );
672
+ break;
673
+ case P3:
674
+ U(a.getState);
660
675
  break;
661
676
  default:
662
- if (Z.type === U.setWebsocketIsConnected.type)
663
- Z.payload === !0 && (console.log(
677
+ if (S.type === H.setWebsocketIsConnected.type)
678
+ S.payload === !0 && (console.log(
664
679
  "[WebSocket Middleware] Connection established, requesting room status..."
665
- ), setTimeout(() => r(a.getState), 100));
666
- else if (Z.type === U.setRoomData.type) {
667
- const D = a.getState(), T = Z.payload;
668
- D.runtimeConfig.websocket.isConnected && (T != null && T.clientId) && (console.log(
680
+ ), setTimeout(() => v(a.getState), 100));
681
+ else if (S.type === H.setRoomData.type) {
682
+ const j = a.getState(), W = S.payload;
683
+ j.runtimeConfig.websocket.isConnected && (W != null && W.clientId) && (console.log(
669
684
  "[WebSocket Middleware] Room data received, requesting room status..."
670
- ), setTimeout(() => r(a.getState), 100));
671
- } else if (Z.type === U.setCurrentRoomKey.type) {
672
- const D = Z.payload;
673
- D && (console.log(
685
+ ), setTimeout(() => v(a.getState), 100));
686
+ } else if (S.type === H.setCurrentRoomKey.type) {
687
+ const j = S.payload;
688
+ j && (console.log(
674
689
  "[WebSocket Middleware] Room changed to:",
675
- D,
690
+ j,
676
691
  ", requesting room status..."
677
- ), setTimeout(() => r(a.getState), 100));
692
+ ), setTimeout(() => v(a.getState), 100));
678
693
  }
679
694
  break;
680
695
  }
681
- })().catch((D) => {
682
- console.error("WebSocket middleware: Error handling action", D);
683
- }), S;
696
+ })().catch((j) => {
697
+ console.error("WebSocket middleware: Error handling action", j);
698
+ }), Z;
684
699
  };
685
- }, Le = p2({
686
- appConfig: xe,
687
- runtimeConfig: Ie,
688
- rooms: be,
689
- devices: Ze,
690
- ui: me
691
- }), $e = m2({
700
+ }, Le = m2({
701
+ appConfig: Ze,
702
+ runtimeConfig: Re,
703
+ rooms: ye,
704
+ devices: Se,
705
+ ui: Me
706
+ }), Ae = M2({
692
707
  reducer: Le,
693
708
  middleware: (e) => e({
694
709
  serializableCheck: {
@@ -696,24 +711,24 @@ const d3 = {}, L1 = l1({
696
711
  ignoredActions: ["websocket/addEventHandler"]
697
712
  }
698
713
  }).concat(Pe())
699
- }), v3 = w3.create();
714
+ }), h3 = p3.create();
700
715
  function P6() {
701
- const e = A1();
716
+ const e = O1();
702
717
  return async () => {
703
718
  try {
704
719
  const t = location.pathname.split("/").filter((r) => r.length > 0);
705
720
  t.length >= 5 ? t.length = 5 : t.length = 2;
706
- const o = `/${t.join("/")}`, c = await v3.get(
721
+ const o = `/${t.join("/")}`, c = await h3.get(
707
722
  "/_local-config/_config.local.json",
708
723
  { baseURL: o }
709
724
  );
710
725
  if (c.status == 200 && c.data) {
711
726
  const r = c.data.apiPath;
712
- e(b3.setAppConfig(c.data));
713
- const i = await v3.get(
727
+ e(y3.setAppConfig(c.data));
728
+ const i = await h3.get(
714
729
  `${r}/version`
715
730
  );
716
- i.status == 200 && i.data && e(U.setRuntimeConfig(i.data));
731
+ i.status == 200 && i.data && e(H.setRuntimeConfig(i.data));
717
732
  }
718
733
  } catch (t) {
719
734
  console.error("Error getting config", t);
@@ -721,7 +736,7 @@ function P6() {
721
736
  return !0;
722
737
  };
723
738
  }
724
- var g1 = { exports: {} }, s1 = {};
739
+ var w1 = { exports: {} }, c1 = {};
725
740
  /**
726
741
  * @license React
727
742
  * react-jsx-runtime.production.min.js
@@ -731,21 +746,21 @@ var g1 = { exports: {} }, s1 = {};
731
746
  * This source code is licensed under the MIT license found in the
732
747
  * LICENSE file in the root directory of this source tree.
733
748
  */
734
- var h3;
735
- function Ae() {
736
- if (h3) return s1;
737
- h3 = 1;
738
- var e = p3, 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 };
749
+ var g3;
750
+ function $e() {
751
+ if (g3) return c1;
752
+ g3 = 1;
753
+ var e = m3, 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 };
739
754
  function v(u, h, w) {
740
- var f, a = {}, x = null, Z = null;
741
- w !== void 0 && (x = "" + w), h.key !== void 0 && (x = "" + h.key), h.ref !== void 0 && (Z = h.ref);
742
- for (f in h) c.call(h, f) && !i.hasOwnProperty(f) && (a[f] = h[f]);
743
- if (u && u.defaultProps) for (f in h = u.defaultProps, h) a[f] === void 0 && (a[f] = h[f]);
744
- return { $$typeof: t, type: u, key: x, ref: Z, props: a, _owner: r.current };
755
+ var f, P = {}, U = null, a = null;
756
+ w !== void 0 && (U = "" + w), h.key !== void 0 && (U = "" + h.key), h.ref !== void 0 && (a = h.ref);
757
+ for (f in h) c.call(h, f) && !i.hasOwnProperty(f) && (P[f] = h[f]);
758
+ if (u && u.defaultProps) for (f in h = u.defaultProps, h) P[f] === void 0 && (P[f] = h[f]);
759
+ return { $$typeof: t, type: u, key: U, ref: a, props: P, _owner: r.current };
745
760
  }
746
- return s1.Fragment = o, s1.jsx = v, s1.jsxs = v, s1;
761
+ return c1.Fragment = o, c1.jsx = v, c1.jsxs = v, c1;
747
762
  }
748
- var c1 = {};
763
+ var r1 = {};
749
764
  /**
750
765
  * @license React
751
766
  * react-jsx-runtime.development.js
@@ -755,57 +770,57 @@ var c1 = {};
755
770
  * This source code is licensed under the MIT license found in the
756
771
  * LICENSE file in the root directory of this source tree.
757
772
  */
758
- var g3;
773
+ var f3;
759
774
  function Be() {
760
- return g3 || (g3 = 1, process.env.NODE_ENV !== "production" && function() {
761
- var e = p3, 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"), w = Symbol.for("react.suspense"), f = Symbol.for("react.suspense_list"), a = Symbol.for("react.memo"), x = Symbol.for("react.lazy"), Z = Symbol.for("react.offscreen"), S = Symbol.iterator, E = "@@iterator";
762
- function D(s) {
775
+ return f3 || (f3 = 1, process.env.NODE_ENV !== "production" && function() {
776
+ var e = m3, 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"), w = Symbol.for("react.suspense"), f = Symbol.for("react.suspense_list"), P = Symbol.for("react.memo"), U = Symbol.for("react.lazy"), a = Symbol.for("react.offscreen"), x = Symbol.iterator, S = "@@iterator";
777
+ function Z(s) {
763
778
  if (s === null || typeof s != "object")
764
779
  return null;
765
- var l = S && s[S] || s[E];
780
+ var l = x && s[x] || s[S];
766
781
  return typeof l == "function" ? l : null;
767
782
  }
768
- var T = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
769
- function B(s) {
783
+ var b = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
784
+ function j(s) {
770
785
  {
771
786
  for (var l = arguments.length, d = new Array(l > 1 ? l - 1 : 0), p = 1; p < l; p++)
772
787
  d[p - 1] = arguments[p];
773
- G("error", s, d);
788
+ W("error", s, d);
774
789
  }
775
790
  }
776
- function G(s, l, d) {
791
+ function W(s, l, d) {
777
792
  {
778
- var p = T.ReactDebugCurrentFrame, y = p.getStackAddendum();
779
- y !== "" && (l += "%s", d = d.concat([y]));
780
- var R = d.map(function(C) {
781
- return String(C);
793
+ var p = b.ReactDebugCurrentFrame, R = p.getStackAddendum();
794
+ R !== "" && (l += "%s", d = d.concat([R]));
795
+ var T = d.map(function(y) {
796
+ return String(y);
782
797
  });
783
- R.unshift("Warning: " + l), Function.prototype.apply.call(console[s], console, R);
798
+ T.unshift("Warning: " + l), Function.prototype.apply.call(console[s], console, T);
784
799
  }
785
800
  }
786
- var O = !1, P = !1, e1 = !1, M1 = !1, x1 = !1, O1;
787
- O1 = Symbol.for("react.module.reference");
788
- function A3(s) {
789
- return !!(typeof s == "string" || typeof s == "function" || s === c || s === i || x1 || s === r || s === w || s === f || M1 || s === Z || O || P || e1 || typeof s == "object" && s !== null && (s.$$typeof === x || s.$$typeof === a || s.$$typeof === v || s.$$typeof === u || s.$$typeof === h || // This needs to include all possible module reference object
801
+ var Z1 = !1, Y = !1, B = !1, _ = !1, t1 = !1, a1;
802
+ a1 = Symbol.for("react.module.reference");
803
+ function S1(s) {
804
+ return !!(typeof s == "string" || typeof s == "function" || s === c || s === i || t1 || s === r || s === w || s === f || _ || s === a || Z1 || Y || B || typeof s == "object" && s !== null && (s.$$typeof === U || s.$$typeof === P || s.$$typeof === v || s.$$typeof === u || s.$$typeof === h || // This needs to include all possible module reference object
790
805
  // types supported by any Flight configuration anywhere since
791
806
  // we don't know which Flight build this will end up being used
792
807
  // with.
793
- s.$$typeof === O1 || s.getModuleId !== void 0));
808
+ s.$$typeof === a1 || s.getModuleId !== void 0));
794
809
  }
795
- function B3(s, l, d) {
810
+ function O3(s, l, d) {
796
811
  var p = s.displayName;
797
812
  if (p)
798
813
  return p;
799
- var y = l.displayName || l.name || "";
800
- return y !== "" ? d + "(" + y + ")" : d;
814
+ var R = l.displayName || l.name || "";
815
+ return R !== "" ? d + "(" + R + ")" : d;
801
816
  }
802
- function k1(s) {
817
+ function W1(s) {
803
818
  return s.displayName || "Context";
804
819
  }
805
- function Y(s) {
820
+ function z(s) {
806
821
  if (s == null)
807
822
  return null;
808
- if (typeof s.tag == "number" && B("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof s == "function")
823
+ if (typeof s.tag == "number" && j("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof s == "function")
809
824
  return s.displayName || s.name || null;
810
825
  if (typeof s == "string")
811
826
  return s;
@@ -827,19 +842,19 @@ function Be() {
827
842
  switch (s.$$typeof) {
828
843
  case u:
829
844
  var l = s;
830
- return k1(l) + ".Consumer";
845
+ return W1(l) + ".Consumer";
831
846
  case v:
832
847
  var d = s;
833
- return k1(d._context) + ".Provider";
848
+ return W1(d._context) + ".Provider";
834
849
  case h:
835
- return B3(s, s.render, "ForwardRef");
836
- case a:
850
+ return O3(s, s.render, "ForwardRef");
851
+ case P:
837
852
  var p = s.displayName || null;
838
- return p !== null ? p : Y(s.type) || "Memo";
839
- case x: {
840
- var y = s, R = y._payload, C = y._init;
853
+ return p !== null ? p : z(s.type) || "Memo";
854
+ case U: {
855
+ var R = s, T = R._payload, y = R._init;
841
856
  try {
842
- return Y(C(R));
857
+ return z(y(T));
843
858
  } catch {
844
859
  return null;
845
860
  }
@@ -847,18 +862,18 @@ function Be() {
847
862
  }
848
863
  return null;
849
864
  }
850
- var z = Object.assign, t1 = 0, W1, V1, U1, H1, F1, K1, q1;
851
- function G1() {
865
+ var J = Object.assign, n1 = 0, V1, U1, H1, F1, K1, q1, G1;
866
+ function Y1() {
852
867
  }
853
- G1.__reactDisabledLog = !0;
854
- function O3() {
868
+ Y1.__reactDisabledLog = !0;
869
+ function k3() {
855
870
  {
856
- if (t1 === 0) {
857
- W1 = console.log, V1 = console.info, U1 = console.warn, H1 = console.error, F1 = console.group, K1 = console.groupCollapsed, q1 = console.groupEnd;
871
+ if (n1 === 0) {
872
+ V1 = console.log, U1 = console.info, H1 = console.warn, F1 = console.error, K1 = console.group, q1 = console.groupCollapsed, G1 = console.groupEnd;
858
873
  var s = {
859
874
  configurable: !0,
860
875
  enumerable: !0,
861
- value: G1,
876
+ value: Y1,
862
877
  writable: !0
863
878
  };
864
879
  Object.defineProperties(console, {
@@ -871,250 +886,250 @@ function Be() {
871
886
  groupEnd: s
872
887
  });
873
888
  }
874
- t1++;
889
+ n1++;
875
890
  }
876
891
  }
877
- function k3() {
892
+ function W3() {
878
893
  {
879
- if (t1--, t1 === 0) {
894
+ if (n1--, n1 === 0) {
880
895
  var s = {
881
896
  configurable: !0,
882
897
  enumerable: !0,
883
898
  writable: !0
884
899
  };
885
900
  Object.defineProperties(console, {
886
- log: z({}, s, {
887
- value: W1
888
- }),
889
- info: z({}, s, {
901
+ log: J({}, s, {
890
902
  value: V1
891
903
  }),
892
- warn: z({}, s, {
904
+ info: J({}, s, {
893
905
  value: U1
894
906
  }),
895
- error: z({}, s, {
907
+ warn: J({}, s, {
896
908
  value: H1
897
909
  }),
898
- group: z({}, s, {
910
+ error: J({}, s, {
899
911
  value: F1
900
912
  }),
901
- groupCollapsed: z({}, s, {
913
+ group: J({}, s, {
902
914
  value: K1
903
915
  }),
904
- groupEnd: z({}, s, {
916
+ groupCollapsed: J({}, s, {
905
917
  value: q1
918
+ }),
919
+ groupEnd: J({}, s, {
920
+ value: G1
906
921
  })
907
922
  });
908
923
  }
909
- t1 < 0 && B("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
924
+ n1 < 0 && j("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
910
925
  }
911
926
  }
912
- var Z1 = T.ReactCurrentDispatcher, S1;
913
- function i1(s, l, d) {
927
+ var j1 = b.ReactCurrentDispatcher, C1;
928
+ function u1(s, l, d) {
914
929
  {
915
- if (S1 === void 0)
930
+ if (C1 === void 0)
916
931
  try {
917
932
  throw Error();
918
- } catch (y) {
919
- var p = y.stack.trim().match(/\n( *(at )?)/);
920
- S1 = p && p[1] || "";
933
+ } catch (R) {
934
+ var p = R.stack.trim().match(/\n( *(at )?)/);
935
+ C1 = p && p[1] || "";
921
936
  }
922
937
  return `
923
- ` + S1 + s;
938
+ ` + C1 + s;
924
939
  }
925
940
  }
926
- var j1 = !1, a1;
941
+ var b1 = !1, d1;
927
942
  {
928
- var W3 = typeof WeakMap == "function" ? WeakMap : Map;
929
- a1 = new W3();
943
+ var V3 = typeof WeakMap == "function" ? WeakMap : Map;
944
+ d1 = new V3();
930
945
  }
931
- function Y1(s, l) {
932
- if (!s || j1)
946
+ function z1(s, l) {
947
+ if (!s || b1)
933
948
  return "";
934
949
  {
935
- var d = a1.get(s);
950
+ var d = d1.get(s);
936
951
  if (d !== void 0)
937
952
  return d;
938
953
  }
939
954
  var p;
940
- j1 = !0;
941
- var y = Error.prepareStackTrace;
955
+ b1 = !0;
956
+ var R = Error.prepareStackTrace;
942
957
  Error.prepareStackTrace = void 0;
943
- var R;
944
- R = Z1.current, Z1.current = null, O3();
958
+ var T;
959
+ T = j1.current, j1.current = null, k3();
945
960
  try {
946
961
  if (l) {
947
- var C = function() {
962
+ var y = function() {
948
963
  throw Error();
949
964
  };
950
- if (Object.defineProperty(C.prototype, "props", {
965
+ if (Object.defineProperty(y.prototype, "props", {
951
966
  set: function() {
952
967
  throw Error();
953
968
  }
954
969
  }), typeof Reflect == "object" && Reflect.construct) {
955
970
  try {
956
- Reflect.construct(C, []);
957
- } catch (W) {
958
- p = W;
971
+ Reflect.construct(y, []);
972
+ } catch (V) {
973
+ p = V;
959
974
  }
960
- Reflect.construct(s, [], C);
975
+ Reflect.construct(s, [], y);
961
976
  } else {
962
977
  try {
963
- C.call();
964
- } catch (W) {
965
- p = W;
978
+ y.call();
979
+ } catch (V) {
980
+ p = V;
966
981
  }
967
- s.call(C.prototype);
982
+ s.call(y.prototype);
968
983
  }
969
984
  } else {
970
985
  try {
971
986
  throw Error();
972
- } catch (W) {
973
- p = W;
987
+ } catch (V) {
988
+ p = V;
974
989
  }
975
990
  s();
976
991
  }
977
- } catch (W) {
978
- if (W && p && typeof W.stack == "string") {
979
- for (var j = W.stack.split(`
980
- `), k = p.stack.split(`
981
- `), L = j.length - 1, $ = k.length - 1; L >= 1 && $ >= 0 && j[L] !== k[$]; )
982
- $--;
983
- for (; L >= 1 && $ >= 0; L--, $--)
984
- if (j[L] !== k[$]) {
985
- if (L !== 1 || $ !== 1)
992
+ } catch (V) {
993
+ if (V && p && typeof V.stack == "string") {
994
+ for (var C = V.stack.split(`
995
+ `), O = p.stack.split(`
996
+ `), L = C.length - 1, A = O.length - 1; L >= 1 && A >= 0 && C[L] !== O[A]; )
997
+ A--;
998
+ for (; L >= 1 && A >= 0; L--, A--)
999
+ if (C[L] !== O[A]) {
1000
+ if (L !== 1 || A !== 1)
986
1001
  do
987
- if (L--, $--, $ < 0 || j[L] !== k[$]) {
988
- var H = `
989
- ` + j[L].replace(" at new ", " at ");
990
- return s.displayName && H.includes("<anonymous>") && (H = H.replace("<anonymous>", s.displayName)), typeof s == "function" && a1.set(s, H), H;
1002
+ if (L--, A--, A < 0 || C[L] !== O[A]) {
1003
+ var F = `
1004
+ ` + C[L].replace(" at new ", " at ");
1005
+ return s.displayName && F.includes("<anonymous>") && (F = F.replace("<anonymous>", s.displayName)), typeof s == "function" && d1.set(s, F), F;
991
1006
  }
992
- while (L >= 1 && $ >= 0);
1007
+ while (L >= 1 && A >= 0);
993
1008
  break;
994
1009
  }
995
1010
  }
996
1011
  } finally {
997
- j1 = !1, Z1.current = R, k3(), Error.prepareStackTrace = y;
1012
+ b1 = !1, j1.current = T, W3(), Error.prepareStackTrace = R;
998
1013
  }
999
- var N = s ? s.displayName || s.name : "", J = N ? i1(N) : "";
1000
- return typeof s == "function" && a1.set(s, J), J;
1014
+ var e1 = s ? s.displayName || s.name : "", X = e1 ? u1(e1) : "";
1015
+ return typeof s == "function" && d1.set(s, X), X;
1001
1016
  }
1002
- function V3(s, l, d) {
1003
- return Y1(s, !1);
1017
+ function U3(s, l, d) {
1018
+ return z1(s, !1);
1004
1019
  }
1005
- function U3(s) {
1020
+ function H3(s) {
1006
1021
  var l = s.prototype;
1007
1022
  return !!(l && l.isReactComponent);
1008
1023
  }
1009
- function u1(s, l, d) {
1024
+ function v1(s, l, d) {
1010
1025
  if (s == null)
1011
1026
  return "";
1012
1027
  if (typeof s == "function")
1013
- return Y1(s, U3(s));
1028
+ return z1(s, H3(s));
1014
1029
  if (typeof s == "string")
1015
- return i1(s);
1030
+ return u1(s);
1016
1031
  switch (s) {
1017
1032
  case w:
1018
- return i1("Suspense");
1033
+ return u1("Suspense");
1019
1034
  case f:
1020
- return i1("SuspenseList");
1035
+ return u1("SuspenseList");
1021
1036
  }
1022
1037
  if (typeof s == "object")
1023
1038
  switch (s.$$typeof) {
1024
1039
  case h:
1025
- return V3(s.render);
1026
- case a:
1027
- return u1(s.type, l, d);
1028
- case x: {
1029
- var p = s, y = p._payload, R = p._init;
1040
+ return U3(s.render);
1041
+ case P:
1042
+ return v1(s.type, l, d);
1043
+ case U: {
1044
+ var p = s, R = p._payload, T = p._init;
1030
1045
  try {
1031
- return u1(R(y), l, d);
1046
+ return v1(T(R), l, d);
1032
1047
  } catch {
1033
1048
  }
1034
1049
  }
1035
1050
  }
1036
1051
  return "";
1037
1052
  }
1038
- var n1 = Object.prototype.hasOwnProperty, z1 = {}, J1 = T.ReactDebugCurrentFrame;
1039
- function d1(s) {
1053
+ var o1 = Object.prototype.hasOwnProperty, J1 = {}, X1 = b.ReactDebugCurrentFrame;
1054
+ function h1(s) {
1040
1055
  if (s) {
1041
- var l = s._owner, d = u1(s.type, s._source, l ? l.type : null);
1042
- J1.setExtraStackFrame(d);
1056
+ var l = s._owner, d = v1(s.type, s._source, l ? l.type : null);
1057
+ X1.setExtraStackFrame(d);
1043
1058
  } else
1044
- J1.setExtraStackFrame(null);
1059
+ X1.setExtraStackFrame(null);
1045
1060
  }
1046
- function H3(s, l, d, p, y) {
1061
+ function F3(s, l, d, p, R) {
1047
1062
  {
1048
- var R = Function.call.bind(n1);
1049
- for (var C in s)
1050
- if (R(s, C)) {
1051
- var j = void 0;
1063
+ var T = Function.call.bind(o1);
1064
+ for (var y in s)
1065
+ if (T(s, y)) {
1066
+ var C = void 0;
1052
1067
  try {
1053
- if (typeof s[C] != "function") {
1054
- var k = Error((p || "React class") + ": " + d + " type `" + C + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof s[C] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
1055
- throw k.name = "Invariant Violation", k;
1068
+ if (typeof s[y] != "function") {
1069
+ var O = Error((p || "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`.");
1070
+ throw O.name = "Invariant Violation", O;
1056
1071
  }
1057
- j = s[C](l, C, p, d, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
1072
+ C = s[y](l, y, p, d, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
1058
1073
  } catch (L) {
1059
- j = L;
1074
+ C = L;
1060
1075
  }
1061
- j && !(j instanceof Error) && (d1(y), B("%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, C, typeof j), d1(null)), j instanceof Error && !(j.message in z1) && (z1[j.message] = !0, d1(y), B("Failed %s type: %s", d, j.message), d1(null));
1076
+ C && !(C instanceof Error) && (h1(R), j("%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, y, typeof C), h1(null)), C instanceof Error && !(C.message in J1) && (J1[C.message] = !0, h1(R), j("Failed %s type: %s", d, C.message), h1(null));
1062
1077
  }
1063
1078
  }
1064
1079
  }
1065
- var F3 = Array.isArray;
1066
- function C1(s) {
1067
- return F3(s);
1080
+ var K3 = Array.isArray;
1081
+ function y1(s) {
1082
+ return K3(s);
1068
1083
  }
1069
- function K3(s) {
1084
+ function q3(s) {
1070
1085
  {
1071
1086
  var l = typeof Symbol == "function" && Symbol.toStringTag, d = l && s[Symbol.toStringTag] || s.constructor.name || "Object";
1072
1087
  return d;
1073
1088
  }
1074
1089
  }
1075
- function q3(s) {
1090
+ function G3(s) {
1076
1091
  try {
1077
- return X1(s), !1;
1092
+ return Q1(s), !1;
1078
1093
  } catch {
1079
1094
  return !0;
1080
1095
  }
1081
1096
  }
1082
- function X1(s) {
1097
+ function Q1(s) {
1083
1098
  return "" + s;
1084
1099
  }
1085
- function Q1(s) {
1086
- if (q3(s))
1087
- return B("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", K3(s)), X1(s);
1100
+ function N1(s) {
1101
+ if (G3(s))
1102
+ return j("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", q3(s)), Q1(s);
1088
1103
  }
1089
- var N1 = T.ReactCurrentOwner, G3 = {
1104
+ var e3 = b.ReactCurrentOwner, Y3 = {
1090
1105
  key: !0,
1091
1106
  ref: !0,
1092
1107
  __self: !0,
1093
1108
  __source: !0
1094
- }, e3, t3;
1095
- function Y3(s) {
1096
- if (n1.call(s, "ref")) {
1109
+ }, t3, n3;
1110
+ function z3(s) {
1111
+ if (o1.call(s, "ref")) {
1097
1112
  var l = Object.getOwnPropertyDescriptor(s, "ref").get;
1098
1113
  if (l && l.isReactWarning)
1099
1114
  return !1;
1100
1115
  }
1101
1116
  return s.ref !== void 0;
1102
1117
  }
1103
- function z3(s) {
1104
- if (n1.call(s, "key")) {
1118
+ function J3(s) {
1119
+ if (o1.call(s, "key")) {
1105
1120
  var l = Object.getOwnPropertyDescriptor(s, "key").get;
1106
1121
  if (l && l.isReactWarning)
1107
1122
  return !1;
1108
1123
  }
1109
1124
  return s.key !== void 0;
1110
1125
  }
1111
- function J3(s, l) {
1112
- typeof s.ref == "string" && N1.current;
1113
- }
1114
1126
  function X3(s, l) {
1127
+ typeof s.ref == "string" && e3.current;
1128
+ }
1129
+ function Q3(s, l) {
1115
1130
  {
1116
1131
  var d = function() {
1117
- e3 || (e3 = !0, B("%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));
1132
+ t3 || (t3 = !0, j("%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));
1118
1133
  };
1119
1134
  d.isReactWarning = !0, Object.defineProperty(s, "key", {
1120
1135
  get: d,
@@ -1122,10 +1137,10 @@ function Be() {
1122
1137
  });
1123
1138
  }
1124
1139
  }
1125
- function Q3(s, l) {
1140
+ function N3(s, l) {
1126
1141
  {
1127
1142
  var d = function() {
1128
- t3 || (t3 = !0, B("%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));
1143
+ n3 || (n3 = !0, j("%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));
1129
1144
  };
1130
1145
  d.isReactWarning = !0, Object.defineProperty(s, "ref", {
1131
1146
  get: d,
@@ -1133,70 +1148,70 @@ function Be() {
1133
1148
  });
1134
1149
  }
1135
1150
  }
1136
- var N3 = function(s, l, d, p, y, R, C) {
1137
- var j = {
1151
+ var e2 = function(s, l, d, p, R, T, y) {
1152
+ var C = {
1138
1153
  // This tag allows us to uniquely identify this as a React Element
1139
1154
  $$typeof: t,
1140
1155
  // Built-in properties that belong on the element
1141
1156
  type: s,
1142
1157
  key: l,
1143
1158
  ref: d,
1144
- props: C,
1159
+ props: y,
1145
1160
  // Record the component responsible for creating this element.
1146
- _owner: R
1161
+ _owner: T
1147
1162
  };
1148
- return j._store = {}, Object.defineProperty(j._store, "validated", {
1163
+ return C._store = {}, Object.defineProperty(C._store, "validated", {
1149
1164
  configurable: !1,
1150
1165
  enumerable: !1,
1151
1166
  writable: !0,
1152
1167
  value: !1
1153
- }), Object.defineProperty(j, "_self", {
1168
+ }), Object.defineProperty(C, "_self", {
1154
1169
  configurable: !1,
1155
1170
  enumerable: !1,
1156
1171
  writable: !1,
1157
1172
  value: p
1158
- }), Object.defineProperty(j, "_source", {
1173
+ }), Object.defineProperty(C, "_source", {
1159
1174
  configurable: !1,
1160
1175
  enumerable: !1,
1161
1176
  writable: !1,
1162
- value: y
1163
- }), Object.freeze && (Object.freeze(j.props), Object.freeze(j)), j;
1177
+ value: R
1178
+ }), Object.freeze && (Object.freeze(C.props), Object.freeze(C)), C;
1164
1179
  };
1165
- function e2(s, l, d, p, y) {
1180
+ function t2(s, l, d, p, R) {
1166
1181
  {
1167
- var R, C = {}, j = null, k = null;
1168
- d !== void 0 && (Q1(d), j = "" + d), z3(l) && (Q1(l.key), j = "" + l.key), Y3(l) && (k = l.ref, J3(l, y));
1169
- for (R in l)
1170
- n1.call(l, R) && !G3.hasOwnProperty(R) && (C[R] = l[R]);
1182
+ var T, y = {}, C = null, O = null;
1183
+ d !== void 0 && (N1(d), C = "" + d), J3(l) && (N1(l.key), C = "" + l.key), z3(l) && (O = l.ref, X3(l, R));
1184
+ for (T in l)
1185
+ o1.call(l, T) && !Y3.hasOwnProperty(T) && (y[T] = l[T]);
1171
1186
  if (s && s.defaultProps) {
1172
1187
  var L = s.defaultProps;
1173
- for (R in L)
1174
- C[R] === void 0 && (C[R] = L[R]);
1188
+ for (T in L)
1189
+ y[T] === void 0 && (y[T] = L[T]);
1175
1190
  }
1176
- if (j || k) {
1177
- var $ = typeof s == "function" ? s.displayName || s.name || "Unknown" : s;
1178
- j && X3(C, $), k && Q3(C, $);
1191
+ if (C || O) {
1192
+ var A = typeof s == "function" ? s.displayName || s.name || "Unknown" : s;
1193
+ C && Q3(y, A), O && N3(y, A);
1179
1194
  }
1180
- return N3(s, j, k, y, p, N1.current, C);
1195
+ return e2(s, C, O, R, p, e3.current, y);
1181
1196
  }
1182
1197
  }
1183
- var b1 = T.ReactCurrentOwner, n3 = T.ReactDebugCurrentFrame;
1184
- function Q(s) {
1198
+ var I1 = b.ReactCurrentOwner, o3 = b.ReactDebugCurrentFrame;
1199
+ function N(s) {
1185
1200
  if (s) {
1186
- var l = s._owner, d = u1(s.type, s._source, l ? l.type : null);
1187
- n3.setExtraStackFrame(d);
1201
+ var l = s._owner, d = v1(s.type, s._source, l ? l.type : null);
1202
+ o3.setExtraStackFrame(d);
1188
1203
  } else
1189
- n3.setExtraStackFrame(null);
1204
+ o3.setExtraStackFrame(null);
1190
1205
  }
1191
- var y1;
1192
- y1 = !1;
1193
- function I1(s) {
1206
+ var R1;
1207
+ R1 = !1;
1208
+ function E1(s) {
1194
1209
  return typeof s == "object" && s !== null && s.$$typeof === t;
1195
1210
  }
1196
- function o3() {
1211
+ function s3() {
1197
1212
  {
1198
- if (b1.current) {
1199
- var s = Y(b1.current.type);
1213
+ if (I1.current) {
1214
+ var s = z(I1.current.type);
1200
1215
  if (s)
1201
1216
  return `
1202
1217
 
@@ -1205,13 +1220,13 @@ Check the render method of \`` + s + "`.";
1205
1220
  return "";
1206
1221
  }
1207
1222
  }
1208
- function t2(s) {
1223
+ function n2(s) {
1209
1224
  return "";
1210
1225
  }
1211
- var s3 = {};
1212
- function n2(s) {
1226
+ var c3 = {};
1227
+ function o2(s) {
1213
1228
  {
1214
- var l = o3();
1229
+ var l = s3();
1215
1230
  if (!l) {
1216
1231
  var d = typeof s == "string" ? s : s.displayName || s.name;
1217
1232
  d && (l = `
@@ -1221,39 +1236,39 @@ Check the top-level render call using <` + d + ">.");
1221
1236
  return l;
1222
1237
  }
1223
1238
  }
1224
- function c3(s, l) {
1239
+ function r3(s, l) {
1225
1240
  {
1226
1241
  if (!s._store || s._store.validated || s.key != null)
1227
1242
  return;
1228
1243
  s._store.validated = !0;
1229
- var d = n2(l);
1230
- if (s3[d])
1244
+ var d = o2(l);
1245
+ if (c3[d])
1231
1246
  return;
1232
- s3[d] = !0;
1247
+ c3[d] = !0;
1233
1248
  var p = "";
1234
- s && s._owner && s._owner !== b1.current && (p = " It was passed a child from " + Y(s._owner.type) + "."), Q(s), B('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), Q(null);
1249
+ s && s._owner && s._owner !== I1.current && (p = " It was passed a child from " + z(s._owner.type) + "."), N(s), j('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), N(null);
1235
1250
  }
1236
1251
  }
1237
- function r3(s, l) {
1252
+ function l3(s, l) {
1238
1253
  {
1239
1254
  if (typeof s != "object")
1240
1255
  return;
1241
- if (C1(s))
1256
+ if (y1(s))
1242
1257
  for (var d = 0; d < s.length; d++) {
1243
1258
  var p = s[d];
1244
- I1(p) && c3(p, l);
1259
+ E1(p) && r3(p, l);
1245
1260
  }
1246
- else if (I1(s))
1261
+ else if (E1(s))
1247
1262
  s._store && (s._store.validated = !0);
1248
1263
  else if (s) {
1249
- var y = D(s);
1250
- if (typeof y == "function" && y !== s.entries)
1251
- for (var R = y.call(s), C; !(C = R.next()).done; )
1252
- I1(C.value) && c3(C.value, l);
1264
+ var R = Z(s);
1265
+ if (typeof R == "function" && R !== s.entries)
1266
+ for (var T = R.call(s), y; !(y = T.next()).done; )
1267
+ E1(y.value) && r3(y.value, l);
1253
1268
  }
1254
1269
  }
1255
1270
  }
1256
- function o2(s) {
1271
+ function s2(s) {
1257
1272
  {
1258
1273
  var l = s.type;
1259
1274
  if (l == null || typeof l == "string")
@@ -1263,97 +1278,97 @@ Check the top-level render call using <` + d + ">.");
1263
1278
  d = l.propTypes;
1264
1279
  else if (typeof l == "object" && (l.$$typeof === h || // Note: Memo only checks outer props here.
1265
1280
  // Inner props are checked in the reconciler.
1266
- l.$$typeof === a))
1281
+ l.$$typeof === P))
1267
1282
  d = l.propTypes;
1268
1283
  else
1269
1284
  return;
1270
1285
  if (d) {
1271
- var p = Y(l);
1272
- H3(d, s.props, "prop", p, s);
1273
- } else if (l.PropTypes !== void 0 && !y1) {
1274
- y1 = !0;
1275
- var y = Y(l);
1276
- B("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", y || "Unknown");
1277
- }
1278
- typeof l.getDefaultProps == "function" && !l.getDefaultProps.isReactClassApproved && B("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
1286
+ var p = z(l);
1287
+ F3(d, s.props, "prop", p, s);
1288
+ } else if (l.PropTypes !== void 0 && !R1) {
1289
+ R1 = !0;
1290
+ var R = z(l);
1291
+ j("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", R || "Unknown");
1292
+ }
1293
+ typeof l.getDefaultProps == "function" && !l.getDefaultProps.isReactClassApproved && j("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
1279
1294
  }
1280
1295
  }
1281
- function s2(s) {
1296
+ function c2(s) {
1282
1297
  {
1283
1298
  for (var l = Object.keys(s.props), d = 0; d < l.length; d++) {
1284
1299
  var p = l[d];
1285
1300
  if (p !== "children" && p !== "key") {
1286
- Q(s), B("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", p), Q(null);
1301
+ N(s), j("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", p), N(null);
1287
1302
  break;
1288
1303
  }
1289
1304
  }
1290
- s.ref !== null && (Q(s), B("Invalid attribute `ref` supplied to `React.Fragment`."), Q(null));
1305
+ s.ref !== null && (N(s), j("Invalid attribute `ref` supplied to `React.Fragment`."), N(null));
1291
1306
  }
1292
1307
  }
1293
- var l3 = {};
1294
- function i3(s, l, d, p, y, R) {
1308
+ var i3 = {};
1309
+ function a3(s, l, d, p, R, T) {
1295
1310
  {
1296
- var C = A3(s);
1297
- if (!C) {
1298
- var j = "";
1299
- (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.");
1300
- var k = t2();
1301
- k ? j += k : j += o3();
1311
+ var y = S1(s);
1312
+ if (!y) {
1313
+ var C = "";
1314
+ (s === void 0 || typeof s == "object" && s !== null && Object.keys(s).length === 0) && (C += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
1315
+ var O = n2();
1316
+ O ? C += O : C += s3();
1302
1317
  var L;
1303
- s === null ? L = "null" : C1(s) ? L = "array" : s !== void 0 && s.$$typeof === t ? (L = "<" + (Y(s.type) || "Unknown") + " />", j = " Did you accidentally export a JSX literal instead of a component?") : L = typeof s, B("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);
1304
- }
1305
- var $ = e2(s, l, d, y, R);
1306
- if ($ == null)
1307
- return $;
1308
- if (C) {
1309
- var H = l.children;
1310
- if (H !== void 0)
1318
+ s === null ? L = "null" : y1(s) ? L = "array" : s !== void 0 && s.$$typeof === t ? (L = "<" + (z(s.type) || "Unknown") + " />", C = " Did you accidentally export a JSX literal instead of a component?") : L = typeof s, j("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", L, C);
1319
+ }
1320
+ var A = t2(s, l, d, R, T);
1321
+ if (A == null)
1322
+ return A;
1323
+ if (y) {
1324
+ var F = l.children;
1325
+ if (F !== void 0)
1311
1326
  if (p)
1312
- if (C1(H)) {
1313
- for (var N = 0; N < H.length; N++)
1314
- r3(H[N], s);
1315
- Object.freeze && Object.freeze(H);
1327
+ if (y1(F)) {
1328
+ for (var e1 = 0; e1 < F.length; e1++)
1329
+ l3(F[e1], s);
1330
+ Object.freeze && Object.freeze(F);
1316
1331
  } else
1317
- B("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
1332
+ j("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
1318
1333
  else
1319
- r3(H, s);
1320
- }
1321
- if (n1.call(l, "key")) {
1322
- var J = Y(s), W = Object.keys(l).filter(function(u2) {
1323
- return u2 !== "key";
1324
- }), R1 = W.length > 0 ? "{key: someKey, " + W.join(": ..., ") + ": ...}" : "{key: someKey}";
1325
- if (!l3[J + R1]) {
1326
- var a2 = W.length > 0 ? "{" + W.join(": ..., ") + ": ...}" : "{}";
1327
- B(`A props object containing a "key" prop is being spread into JSX:
1334
+ l3(F, s);
1335
+ }
1336
+ if (o1.call(l, "key")) {
1337
+ var X = z(s), V = Object.keys(l).filter(function(d2) {
1338
+ return d2 !== "key";
1339
+ }), T1 = V.length > 0 ? "{key: someKey, " + V.join(": ..., ") + ": ...}" : "{key: someKey}";
1340
+ if (!i3[X + T1]) {
1341
+ var u2 = V.length > 0 ? "{" + V.join(": ..., ") + ": ...}" : "{}";
1342
+ j(`A props object containing a "key" prop is being spread into JSX:
1328
1343
  let props = %s;
1329
1344
  <%s {...props} />
1330
1345
  React keys must be passed directly to JSX without using spread:
1331
1346
  let props = %s;
1332
- <%s key={someKey} {...props} />`, R1, J, a2, J), l3[J + R1] = !0;
1347
+ <%s key={someKey} {...props} />`, T1, X, u2, X), i3[X + T1] = !0;
1333
1348
  }
1334
1349
  }
1335
- return s === c ? s2($) : o2($), $;
1350
+ return s === c ? c2(A) : s2(A), A;
1336
1351
  }
1337
1352
  }
1338
- function c2(s, l, d) {
1339
- return i3(s, l, d, !0);
1340
- }
1341
1353
  function r2(s, l, d) {
1342
- return i3(s, l, d, !1);
1354
+ return a3(s, l, d, !0);
1355
+ }
1356
+ function l2(s, l, d) {
1357
+ return a3(s, l, d, !1);
1343
1358
  }
1344
- var l2 = r2, i2 = c2;
1345
- c1.Fragment = c, c1.jsx = l2, c1.jsxs = i2;
1346
- }()), c1;
1359
+ var i2 = l2, a2 = r2;
1360
+ r1.Fragment = c, r1.jsx = i2, r1.jsxs = a2;
1361
+ }()), r1;
1347
1362
  }
1348
- var f3;
1363
+ var w3;
1349
1364
  function Oe() {
1350
- return f3 || (f3 = 1, process.env.NODE_ENV === "production" ? g1.exports = Ae() : g1.exports = Be()), g1.exports;
1365
+ return w3 || (w3 = 1, process.env.NODE_ENV === "production" ? w1.exports = $e() : w1.exports = Be()), w1.exports;
1351
1366
  }
1352
1367
  var n = Oe();
1353
1368
  const ke = "_mwfit_ppa3l_1", We = {
1354
1369
  mwfit: ke
1355
1370
  }, Ve = () => {
1356
- const { reconnect: e } = I(), t = S3(), o = ge(), c = fe();
1371
+ const { reconnect: e } = E(), t = j3(), o = fe(), c = we();
1357
1372
  return /* @__PURE__ */ n.jsx(n.Fragment, { children: /* @__PURE__ */ n.jsxs(
1358
1373
  "div",
1359
1374
  {
@@ -1372,42 +1387,42 @@ const ke = "_mwfit_ppa3l_1", We = {
1372
1387
  ]
1373
1388
  }
1374
1389
  ) });
1375
- }, P3 = M2({
1390
+ }, A3 = x2({
1376
1391
  sendMessage: () => null,
1377
1392
  sendSimpleMessage: () => null,
1378
1393
  addEventHandler: () => null,
1379
1394
  removeEventHandler: () => null,
1380
1395
  reconnect: () => null
1381
1396
  }), Ue = ({ children: e }) => {
1382
- const t = A1(), o = S3();
1383
- w1(() => {
1384
- t(Re());
1397
+ const t = O1(), o = j3();
1398
+ m1(() => {
1399
+ t(L3());
1385
1400
  }, [t]);
1386
- const c = o1(
1401
+ const c = s1(
1387
1402
  (h, w) => {
1388
1403
  t(Ee(h, w));
1389
1404
  },
1390
1405
  [t]
1391
- ), r = o1(
1406
+ ), r = s1(
1392
1407
  (h, w) => {
1393
1408
  c(h, { value: w });
1394
1409
  },
1395
1410
  [c]
1396
- ), i = o1(
1411
+ ), i = s1(
1397
1412
  (h, w, f) => {
1398
1413
  t(Te(h, w, f));
1399
1414
  },
1400
1415
  [t]
1401
- ), v = o1(
1416
+ ), v = s1(
1402
1417
  (h, w) => {
1403
1418
  t(De(h, w));
1404
1419
  },
1405
1420
  [t]
1406
- ), u = o1(() => {
1421
+ ), u = s1(() => {
1407
1422
  t(_e());
1408
1423
  }, [t]);
1409
1424
  return /* @__PURE__ */ n.jsx(
1410
- P3.Provider,
1425
+ A3.Provider,
1411
1426
  {
1412
1427
  value: {
1413
1428
  sendMessage: c,
@@ -1419,9 +1434,9 @@ const ke = "_mwfit_ppa3l_1", We = {
1419
1434
  children: o ? e : /* @__PURE__ */ n.jsx(Ve, {})
1420
1435
  }
1421
1436
  );
1422
- }, L6 = ({ children: e }) => /* @__PURE__ */ n.jsx(w2, { store: $e, children: /* @__PURE__ */ n.jsx(Ue, { children: e }) });
1423
- function I() {
1424
- return x2(P3);
1437
+ }, L6 = ({ children: e }) => /* @__PURE__ */ n.jsx(p2, { store: Ae, children: /* @__PURE__ */ n.jsx(Ue, { children: e }) });
1438
+ function E() {
1439
+ return Z2(A3);
1425
1440
  }
1426
1441
  function He({
1427
1442
  onPress: e,
@@ -1429,7 +1444,7 @@ function He({
1429
1444
  onHold: o,
1430
1445
  holdTimeMs: c = 500
1431
1446
  }) {
1432
- const r = _1(null), i = _1(!1);
1447
+ const r = L1(null), i = L1(!1);
1433
1448
  function v() {
1434
1449
  i.current = !0, e == null || e(), r.current = setTimeout(() => {
1435
1450
  o == null || o(), r.current = null;
@@ -1448,7 +1463,7 @@ function He({
1448
1463
  };
1449
1464
  }
1450
1465
  function g(e, t) {
1451
- const { sendMessage: c } = I(), r = _1(null);
1466
+ const { sendMessage: c } = E(), r = L1(null);
1452
1467
  function i() {
1453
1468
  c(`${e}/${t}`, { value: "pressed" }), r.current || (r.current = setInterval(() => {
1454
1469
  c(`${e}/${t}`, { value: "held" });
@@ -1459,8 +1474,8 @@ function g(e, t) {
1459
1474
  }
1460
1475
  return He({ onPress: i, onRelease: v });
1461
1476
  }
1462
- function L3(e, t) {
1463
- const { sendMessage: o, sendSimpleMessage: c } = I(), r = g(`${e}`, "volumeUp"), i = g(`${e}`, "volumeDown");
1477
+ function $3(e, t) {
1478
+ const { sendMessage: o, sendSimpleMessage: c } = E(), r = g(`${e}`, "volumeUp"), i = g(`${e}`, "volumeDown");
1464
1479
  return t ? {
1465
1480
  volumeState: t,
1466
1481
  volumeUp: r,
@@ -1471,8 +1486,8 @@ function L3(e, t) {
1471
1486
  muteOff: () => o(`${e}/muteOff`, null)
1472
1487
  } : void 0;
1473
1488
  }
1474
- function $6(e, t) {
1475
- const { sendMessage: o, sendSimpleMessage: c } = I(), r = g(`${e}`, "volumeUp"), i = g(`${e}`, "volumeDown");
1489
+ function A6(e, t) {
1490
+ const { sendMessage: o, sendSimpleMessage: c } = E(), r = g(`${e}`, "volumeUp"), i = g(`${e}`, "volumeDown");
1476
1491
  return t ? {
1477
1492
  volumeState: t,
1478
1493
  volumeUp: r,
@@ -1484,11 +1499,11 @@ function $6(e, t) {
1484
1499
  } : void 0;
1485
1500
  }
1486
1501
  function Fe(e) {
1487
- const t = _(e), o = `/device/${e}`;
1488
- return L3(o, t == null ? void 0 : t.volume);
1502
+ const t = D(e), o = `/device/${e}`;
1503
+ return $3(o, t == null ? void 0 : t.volume);
1489
1504
  }
1490
- function $3(e) {
1491
- const { sendMessage: t } = I();
1505
+ function B3(e) {
1506
+ const { sendMessage: t } = E();
1492
1507
  return { powerOn: () => {
1493
1508
  t(`/device/${e}/powerOn`, null);
1494
1509
  }, powerOff: () => {
@@ -1497,14 +1512,14 @@ function $3(e) {
1497
1512
  t(`/device/${e}/powerToggle`, null);
1498
1513
  } };
1499
1514
  }
1500
- function $1(e) {
1501
- const { sendMessage: t } = I(), o = _(e);
1515
+ function B1(e) {
1516
+ const { sendMessage: t } = E(), o = D(e);
1502
1517
  return console.log("deviceState", o), o ? { itemsState: o, selectItem: (r) => {
1503
1518
  t(`/device/${e}/${r}`, null);
1504
1519
  } } : void 0;
1505
1520
  }
1506
1521
  function Ke(e) {
1507
- const { sendMessage: t } = I(), o = _(e), c = () => {
1522
+ const { sendMessage: t } = E(), o = D(e), c = () => {
1508
1523
  t(`/device/${e}/setDefaultChannelLevels`, null);
1509
1524
  }, r = () => {
1510
1525
  if ((o == null ? void 0 : o.levelControls) === void 0) return;
@@ -1514,8 +1529,8 @@ function Ke(e) {
1514
1529
  };
1515
1530
  return o ? { levelControls: o.levelControls, setDefaultChannelLevels: c, getFullStatus: r } : void 0;
1516
1531
  }
1517
- function A6(e) {
1518
- const t = _(e), o = $3(e), c = $1(e), r = $1(e), i = Fe(e), v = Ke(e);
1532
+ function $6(e) {
1533
+ const t = D(e), o = B3(e), c = B1(e), r = B1(e), i = Fe(e), v = Ke(e);
1519
1534
  if (t)
1520
1535
  return {
1521
1536
  avrState: t,
@@ -1527,7 +1542,7 @@ function A6(e) {
1527
1542
  };
1528
1543
  }
1529
1544
  function B6(e) {
1530
- const { sendMessage: t } = I(), 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"), w = g(o, "cameraZoomOut"), f = (a) => t("/camera/recallPreset", a);
1545
+ const { sendMessage: t } = E(), o = `/device/${e}`, c = D(e), r = g(o, "cameraUp"), i = g(o, "cameraDown"), v = g(o, "cameraLeft"), u = g(o, "cameraRight"), h = g(o, "cameraZoomIn"), w = g(o, "cameraZoomOut"), f = (P) => t("/camera/recallPreset", P);
1531
1546
  if (c)
1532
1547
  return {
1533
1548
  state: c,
@@ -1541,8 +1556,8 @@ function B6(e) {
1541
1556
  };
1542
1557
  }
1543
1558
  const O6 = ({ className: e }) => {
1544
- const [t, o] = q();
1545
- return w1(() => {
1559
+ const [t, o] = G();
1560
+ return m1(() => {
1546
1561
  setInterval(() => {
1547
1562
  const c = (/* @__PURE__ */ new Date()).toLocaleTimeString("en-US", { hour12: !0, hour: "numeric", minute: "numeric" });
1548
1563
  o(c);
@@ -1553,7 +1568,7 @@ const O6 = ({ className: e }) => {
1553
1568
  ] });
1554
1569
  };
1555
1570
  function k6(e) {
1556
- const { sendMessage: t } = I(), o = _(e), c = `/device/${e}`;
1571
+ const { sendMessage: t } = E(), o = D(e), c = `/device/${e}`;
1557
1572
  return o ? { state: o, recallPreset: (v, u) => {
1558
1573
  t(`${c}/presets/recall`, { deviceKey: v, preset: u });
1559
1574
  }, savePresets: (v) => {
@@ -1561,7 +1576,7 @@ function k6(e) {
1561
1576
  } } : void 0;
1562
1577
  }
1563
1578
  function W6(e) {
1564
- const t = _(e);
1579
+ const t = D(e);
1565
1580
  if (t)
1566
1581
  return { endpointState: t };
1567
1582
  }
@@ -1574,14 +1589,14 @@ function U6(e) {
1574
1589
  return { red: o, green: c, yellow: r, blue: i };
1575
1590
  }
1576
1591
  function H6(e) {
1577
- const t = _(e);
1592
+ const t = D(e);
1578
1593
  if (t)
1579
1594
  return {
1580
1595
  communicationMonitorState: t
1581
1596
  };
1582
1597
  }
1583
1598
  function F6(e) {
1584
- const t = _(e);
1599
+ const t = D(e);
1585
1600
  if (t)
1586
1601
  return t.deviceInfo || void 0;
1587
1602
  }
@@ -1590,7 +1605,7 @@ function K6(e) {
1590
1605
  return { up: o, down: c, left: r, right: i, select: v, menu: u, exit: h };
1591
1606
  }
1592
1607
  function q6(e) {
1593
- const { sendMessage: t } = I();
1608
+ const { sendMessage: t } = E();
1594
1609
  return { recallPreset: (c) => {
1595
1610
  t(
1596
1611
  `/device/${e}/recallPreset`,
@@ -1603,7 +1618,7 @@ function G6(e) {
1603
1618
  return { dvrList: o, record: c };
1604
1619
  }
1605
1620
  function Y6(e) {
1606
- const { sendMessage: t } = I(), o = _(e);
1621
+ const { sendMessage: t } = E(), o = D(e);
1607
1622
  return o ? { roomCombinerState: o, setAutoMode: () => {
1608
1623
  t(`/device/${e}/setAutoMode`, null);
1609
1624
  }, setManualMode: () => {
@@ -1617,7 +1632,7 @@ function Y6(e) {
1617
1632
  } } : void 0;
1618
1633
  }
1619
1634
  function z6(e) {
1620
- const { sendMessage: t } = I(), o = `/device/${e}`, c = _(e);
1635
+ const { sendMessage: t } = E(), o = `/device/${e}`, c = D(e);
1621
1636
  return c ? {
1622
1637
  state: c,
1623
1638
  selectCamera: (i) => {
@@ -1626,40 +1641,40 @@ function z6(e) {
1626
1641
  } : void 0;
1627
1642
  }
1628
1643
  function J6(e) {
1629
- const t = _(e);
1644
+ const t = D(e);
1630
1645
  if (t)
1631
1646
  return { state: t };
1632
1647
  }
1633
1648
  function X6(e) {
1634
- const { sendMessage: t, sendSimpleMessage: o } = I(), c = _(e), r = X2(e), i = c || r;
1649
+ const { sendMessage: t, sendSimpleMessage: o } = E(), c = D(e), r = Q2(e), i = c || r;
1635
1650
  return i ? {
1636
1651
  levelState: i,
1637
- setLevel: (f, a) => o(`${f}/level`, a),
1652
+ setLevel: (f, P) => o(`${f}/level`, P),
1638
1653
  muteToggle: (f) => t(`${f}/muteToggle`, null),
1639
1654
  muteOn: (f) => t(`${f}/muteOn`, null),
1640
1655
  muteOff: (f) => t(`${f}/muteOff`, null)
1641
1656
  } : void 0;
1642
1657
  }
1643
1658
  function Q6(e) {
1644
- const { sendMessage: t } = I(), o = _(e);
1659
+ const { sendMessage: t } = E(), o = D(e);
1645
1660
  return o ? { lightingState: o, selectScene: (r) => {
1646
1661
  t(`/device/${e}/selectScene`, r);
1647
1662
  } } : void 0;
1648
1663
  }
1649
1664
  function N6(e) {
1650
- const { sendMessage: t } = I(), o = _(e);
1665
+ const { sendMessage: t } = E(), o = D(e);
1651
1666
  return o ? { matrixRoutingState: o, setRoute: (r) => {
1652
1667
  t(`/device/${e}/route`, r);
1653
1668
  } } : void 0;
1654
1669
  }
1655
1670
  function et(e) {
1656
- const { sendMessage: t } = I();
1671
+ const { sendMessage: t } = E();
1657
1672
  return { closeApp: () => {
1658
1673
  t(`/device/${e}/closeWebViewController`, null);
1659
1674
  } };
1660
1675
  }
1661
1676
  function tt(e) {
1662
- 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"), w = g(t, "num7"), f = g(t, "num8"), a = g(t, "num9"), x = g(t, "numDash"), Z = g(t, "numEnter");
1677
+ 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"), w = g(t, "num7"), f = g(t, "num8"), P = g(t, "num9"), U = g(t, "numDash"), a = g(t, "numEnter");
1663
1678
  return {
1664
1679
  digit0: o,
1665
1680
  digit1: c,
@@ -1670,13 +1685,13 @@ function tt(e) {
1670
1685
  digit6: h,
1671
1686
  digit7: w,
1672
1687
  digit8: f,
1673
- digit9: a,
1674
- keypadAccessoryButton1: x,
1675
- keypadAccessoryButton2: Z
1688
+ digit9: P,
1689
+ keypadAccessoryButton1: U,
1690
+ keypadAccessoryButton2: a
1676
1691
  };
1677
1692
  }
1678
1693
  function nt(e) {
1679
- const { sendMessage: t } = I(), o = _(e);
1694
+ const { sendMessage: t } = E(), o = D(e);
1680
1695
  return o ? { projectorScreenLiftControlState: o, raise: () => {
1681
1696
  t(`/device/${e}/raise`, null);
1682
1697
  }, lower: () => {
@@ -1684,26 +1699,26 @@ function nt(e) {
1684
1699
  } } : void 0;
1685
1700
  }
1686
1701
  function ot(e) {
1687
- const { sendMessage: t } = I(), o = m1(e);
1702
+ const { sendMessage: t } = E(), o = x1(e);
1688
1703
  return o ? { roomEventScheduleState: o, save: (r) => {
1689
1704
  t(`/room/${e}/saveScheduledEvents`, r);
1690
1705
  } } : void 0;
1691
1706
  }
1692
1707
  function st(e) {
1693
- const { sendMessage: t } = I();
1708
+ const { sendMessage: t } = E();
1694
1709
  return { runDefaultPresentRoute: () => {
1695
1710
  t(`/room/${e}/defaultsource`, {});
1696
1711
  } };
1697
1712
  }
1698
1713
  function ct(e) {
1699
- const { sendMessage: t } = I();
1714
+ const { sendMessage: t } = E();
1700
1715
  return { runDirectRoute: (c) => {
1701
1716
  t(`/room/${e}/directRoute`, c);
1702
1717
  } };
1703
1718
  }
1704
1719
  function rt(e) {
1705
- const { sendMessage: t } = I();
1706
- return { routingState: _(e), runRoute: (r) => {
1720
+ const { sendMessage: t } = E();
1721
+ return { routingState: D(e), runRoute: (r) => {
1707
1722
  t(`/room/${e}/source`, r);
1708
1723
  } };
1709
1724
  }
@@ -1712,7 +1727,7 @@ function lt(e) {
1712
1727
  return { dvrList: o, replay: c };
1713
1728
  }
1714
1729
  function it(e) {
1715
- const { sendMessage: t } = I(), o = _(e);
1730
+ const { sendMessage: t } = E(), o = D(e);
1716
1731
  return o ? { shadeState: o, shadeUp: () => {
1717
1732
  t(`/device/${e}/shadeUp`, null);
1718
1733
  }, shadeDown: () => {
@@ -1722,7 +1737,7 @@ function it(e) {
1722
1737
  } } : void 0;
1723
1738
  }
1724
1739
  function at(e) {
1725
- const { sendMessage: t } = I(), o = m1(e);
1740
+ const { sendMessage: t } = E(), o = x1(e);
1726
1741
  return o ? { shutdownPromptTimerState: o, setShutdownPromptSeconds: (u) => {
1727
1742
  t(`/room/${e}/setShutdownPromptSeconds`, u);
1728
1743
  }, shutdownStart: () => {
@@ -1734,7 +1749,7 @@ function at(e) {
1734
1749
  } } : void 0;
1735
1750
  }
1736
1751
  function ut(e) {
1737
- const { sendMessage: t } = I(), o = _(e);
1752
+ const { sendMessage: t } = E(), o = D(e);
1738
1753
  return o ? { switchedOutputState: o, on: () => {
1739
1754
  t(`/device/${e}/on`, null);
1740
1755
  }, off: () => {
@@ -1742,7 +1757,7 @@ function ut(e) {
1742
1757
  } } : void 0;
1743
1758
  }
1744
1759
  function dt(e) {
1745
- const { sendMessage: t } = I(), o = m1(e);
1760
+ const { sendMessage: t } = E(), o = x1(e);
1746
1761
  return o ? { techPasswordState: o, validatePassword: (i) => {
1747
1762
  t(`/room/${e}/validateTechPassword`, { password: i });
1748
1763
  }, setPassword: (i, v) => {
@@ -1750,11 +1765,11 @@ function dt(e) {
1750
1765
  } } : void 0;
1751
1766
  }
1752
1767
  function vt(e) {
1753
- const { sendMessage: t } = I(), o = _(e);
1768
+ const { sendMessage: t } = E(), o = D(e);
1754
1769
  return o ? { state: o, setTemperatureUnitsToCelcius: () => t(`${e}/setTemperatureUnitsToCelcius`, null), setTemperatureUnitsToFahrenheit: () => t(`${e}/setTemperatureUnitsToFahrenheit`, null) } : void 0;
1755
1770
  }
1756
1771
  function ht(e) {
1757
- const { sendMessage: t } = I(), o = _(e), c = (r) => {
1772
+ const { sendMessage: t } = E(), o = D(e), c = (r) => {
1758
1773
  t(`/device/${e}/saveTheme`, { value: r });
1759
1774
  };
1760
1775
  return {
@@ -1776,7 +1791,7 @@ function gt(e) {
1776
1791
  };
1777
1792
  }
1778
1793
  function ft(e) {
1779
- const t = _(e), { sendMessage: o } = I();
1794
+ const t = D(e), { sendMessage: o } = E();
1780
1795
  return t ? {
1781
1796
  touchpanelState: t,
1782
1797
  appControl: { hideApp: () => {
@@ -1792,7 +1807,7 @@ function ft(e) {
1792
1807
  } : void 0;
1793
1808
  }
1794
1809
  function wt(e) {
1795
- const t = _(e), o = $3(e), c = $1(e);
1810
+ const t = D(e), o = B3(e), c = B1(e);
1796
1811
  if (!t) return;
1797
1812
  const r = (t.powerState || t.isWarming) && !t.isCooling, i = (!t.powerState || t.isCooling) && !t.isWarming;
1798
1813
  return {
@@ -1805,8 +1820,8 @@ function wt(e) {
1805
1820
  const pt = ({
1806
1821
  config: e
1807
1822
  }) => {
1808
- const { sendMessage: t } = I();
1809
- w1(() => {
1823
+ const { sendMessage: t } = E();
1824
+ m1(() => {
1810
1825
  var c, r, i, v;
1811
1826
  if (!e)
1812
1827
  return;
@@ -1836,8 +1851,8 @@ const pt = ({
1836
1851
  }, [e, t]);
1837
1852
  };
1838
1853
  function mt(e, t) {
1839
- const [o, c] = q(!1), [r, i] = q(!1);
1840
- return m3(() => {
1854
+ const [o, c] = G(!1), [r, i] = G(!1);
1855
+ return M3(() => {
1841
1856
  const { current: v } = e, u = () => {
1842
1857
  const h = v && v.scrollHeight > v.clientHeight, w = v && v.scrollWidth > v.clientWidth;
1843
1858
  i(h ?? !1), c(w ?? !1), t && t(h ?? !1, w ?? !1);
@@ -1846,19 +1861,19 @@ function mt(e, t) {
1846
1861
  }, [e, t]), { overflowHorizontal: o, overflowVertical: r };
1847
1862
  }
1848
1863
  function Mt(e, t) {
1849
- const o = J2(e, t), c = `/room/${e}/volumes/${t}`;
1850
- return L3(c, o);
1864
+ const o = X2(e, t), c = `/room/${e}/volumes/${t}`;
1865
+ return $3(c, o);
1851
1866
  }
1852
1867
  function xt(e) {
1853
1868
  var u, h;
1854
- const [t, o] = q(((u = e == null ? void 0 : e.current) == null ? void 0 : u.scrollLeft) ?? 0), [c, r] = q(((h = e == null ? void 0 : e.current) == null ? void 0 : h.scrollTop) ?? 0), i = (w) => {
1869
+ const [t, o] = G(((u = e == null ? void 0 : e.current) == null ? void 0 : u.scrollLeft) ?? 0), [c, r] = G(((h = e == null ? void 0 : e.current) == null ? void 0 : h.scrollTop) ?? 0), i = (w) => {
1855
1870
  const { current: f } = e;
1856
1871
  f && (console.log(f.scrollLeft), f.scrollLeft += w, console.log(f.scrollLeft));
1857
1872
  }, v = (w) => {
1858
1873
  const { current: f } = e;
1859
1874
  f && (console.log(f.scrollTop), f.scrollTop += w, console.log(f.scrollTop));
1860
1875
  };
1861
- return m3(() => {
1876
+ return M3(() => {
1862
1877
  const { current: w } = e, f = () => {
1863
1878
  o((w == null ? void 0 : w.scrollLeft) ?? 0), r((w == null ? void 0 : w.scrollTop) ?? 0);
1864
1879
  };
@@ -1866,15 +1881,15 @@ function xt(e) {
1866
1881
  }, [e]), { horizontalScrollPosition: t, verticalScrollPosition: c, scrollHorizontal: i, scrollVertical: v };
1867
1882
  }
1868
1883
  function Zt(e) {
1869
- const t = A1();
1884
+ const t = O1();
1870
1885
  return [() => {
1871
- t(V.addSyncState(e));
1886
+ t(k.addSyncState(e));
1872
1887
  }, () => {
1873
- t(V.removeSyncState(e));
1874
- }, we(e)];
1888
+ t(k.removeSyncState(e));
1889
+ }, pe(e)];
1875
1890
  }
1876
1891
  function St() {
1877
- const { sendMessage: e } = I();
1892
+ const { sendMessage: e } = E();
1878
1893
  return {
1879
1894
  reboot: () => {
1880
1895
  e("/system/reboot", null);
@@ -1885,13 +1900,13 @@ function St() {
1885
1900
  };
1886
1901
  }
1887
1902
  function jt() {
1888
- const [e, t] = q(), [o, c] = q();
1903
+ const [e, t] = G(), [o, c] = G();
1889
1904
  function r() {
1890
1905
  t((/* @__PURE__ */ new Date()).toLocaleDateString("en-US", { dateStyle: "long" }));
1891
1906
  const i = (/* @__PURE__ */ new Date()).toLocaleTimeString("en-US", { hour12: !0, hour: "numeric", minute: "numeric" });
1892
1907
  c(i);
1893
1908
  }
1894
- return w1(() => {
1909
+ return m1(() => {
1895
1910
  r();
1896
1911
  const i = setInterval(() => {
1897
1912
  r();
@@ -1900,9 +1915,9 @@ function jt() {
1900
1915
  }, []), { date: e, time: o };
1901
1916
  }
1902
1917
  const Ct = () => {
1903
- const [e, t] = q(!1), o = Z2(), c = S2();
1918
+ const [e, t] = G(!1), o = S2(), c = j2();
1904
1919
  let r;
1905
- return j2(c) ? r = c.statusText : c instanceof Error ? r = c.message : typeof c == "string" ? r = c : (console.error(c), r = "Unknown error"), /* @__PURE__ */ n.jsxs("div", { className: "d-flex flex-column align-items-center gap-5", children: [
1920
+ return C2(c) ? r = c.statusText : c instanceof Error ? r = c.message : typeof c == "string" ? r = c : (console.error(c), r = "Unknown error"), /* @__PURE__ */ n.jsxs("div", { className: "d-flex flex-column align-items-center gap-5", children: [
1906
1921
  /* @__PURE__ */ n.jsx("div", { className: "m-2 p-2 bg-danger rounded d-flex align-items-center", children: /* @__PURE__ */ n.jsx("span", { className: "fs-5 text-white", children: "We are sorry. Something went wrong." }) }),
1907
1922
  /* @__PURE__ */ n.jsx(
1908
1923
  "button",
@@ -1922,7 +1937,7 @@ const Ct = () => {
1922
1937
  ),
1923
1938
  e && /* @__PURE__ */ n.jsx("p", { children: r })
1924
1939
  ] });
1925
- }, qe = "_iconbtn_16qss_1", Ge = "_iconbtnvert_16qss_7", Ye = "_iconsm_16qss_18", T1 = {
1940
+ }, qe = "_iconbtn_16qss_1", Ge = "_iconbtnvert_16qss_7", Ye = "_iconsm_16qss_18", _1 = {
1926
1941
  iconbtn: qe,
1927
1942
  iconbtnvert: Ge,
1928
1943
  iconsm: Ye
@@ -1938,32 +1953,32 @@ const Ct = () => {
1938
1953
  feedbackClassName: h,
1939
1954
  onPointerDown: w,
1940
1955
  onPointerUp: f,
1941
- onPointerLeave: a,
1942
- ...x
1956
+ onPointerLeave: P,
1957
+ ...U
1943
1958
  }) => {
1944
- const [Z, S] = q(!1), E = !v && u ? h : "", D = !v && (Z || u);
1959
+ const [a, x] = G(!1), S = !v && u ? h : "", Z = !v && (a || u);
1945
1960
  return /* @__PURE__ */ n.jsxs(
1946
1961
  "button",
1947
1962
  {
1948
1963
  type: "button",
1949
- className: `${T1.iconbtn} ${o ? T1.iconbtnvert : ""} ${c} ${E}`,
1950
- ...x,
1964
+ className: `${_1.iconbtn} ${o ? _1.iconbtnvert : ""} ${c} ${S}`,
1965
+ ...U,
1951
1966
  disabled: v,
1952
- onPointerDown: (T) => {
1953
- S(!0), w == null || w(T);
1967
+ onPointerDown: (b) => {
1968
+ x(!0), w == null || w(b);
1954
1969
  },
1955
- onPointerUp: (T) => {
1956
- S(!1), f == null || f(T);
1970
+ onPointerUp: (b) => {
1971
+ x(!1), f == null || f(b);
1957
1972
  },
1958
- onPointerLeave: (T) => {
1959
- S(!1), a == null || a(T);
1973
+ onPointerLeave: (b) => {
1974
+ x(!1), P == null || P(b);
1960
1975
  },
1961
1976
  children: [
1962
1977
  e && /* @__PURE__ */ n.jsx(
1963
1978
  e,
1964
1979
  {
1965
- className: `${r || T1.iconsm}`,
1966
- active: D,
1980
+ className: `${r || _1.iconsm}`,
1981
+ active: Z,
1967
1982
  disabled: v
1968
1983
  }
1969
1984
  ),
@@ -1971,7 +1986,7 @@ const Ct = () => {
1971
1986
  ]
1972
1987
  }
1973
1988
  );
1974
- }, b = ({
1989
+ }, I = ({
1975
1990
  ActiveImage: e,
1976
1991
  DisabledImage: t,
1977
1992
  EnabledImage: o,
@@ -1982,7 +1997,7 @@ const Ct = () => {
1982
1997
  className: t = "",
1983
1998
  disabled: o
1984
1999
  }) => /* @__PURE__ */ n.jsx(
1985
- b,
2000
+ I,
1986
2001
  {
1987
2002
  ActiveImage: /* @__PURE__ */ n.jsx(
1988
2003
  "svg",
@@ -2034,7 +2049,7 @@ const Ct = () => {
2034
2049
  className: t = "",
2035
2050
  disabled: o
2036
2051
  }) => /* @__PURE__ */ n.jsx(
2037
- b,
2052
+ I,
2038
2053
  {
2039
2054
  ActiveImage: (
2040
2055
  /* icon-ban-active.svg */
@@ -2083,7 +2098,7 @@ const Ct = () => {
2083
2098
  className: t = "",
2084
2099
  disabled: o
2085
2100
  }) => /* @__PURE__ */ n.jsx(
2086
- b,
2101
+ I,
2087
2102
  {
2088
2103
  ActiveImage: /* @__PURE__ */ n.jsx(
2089
2104
  "svg",
@@ -2123,7 +2138,7 @@ const Ct = () => {
2123
2138
  className: t = "",
2124
2139
  disabled: o
2125
2140
  }) => /* @__PURE__ */ n.jsx(
2126
- b,
2141
+ I,
2127
2142
  {
2128
2143
  ActiveImage: (
2129
2144
  /* icon-check-active.svg */
@@ -2173,7 +2188,7 @@ const Ct = () => {
2173
2188
  className: t = "",
2174
2189
  disabled: o
2175
2190
  }) => /* @__PURE__ */ n.jsx(
2176
- b,
2191
+ I,
2177
2192
  {
2178
2193
  ActiveImage: (
2179
2194
  /* icon-controller-active.svg */
@@ -2240,7 +2255,7 @@ const Ct = () => {
2240
2255
  className: t = "",
2241
2256
  disabled: o
2242
2257
  }) => /* @__PURE__ */ n.jsx(
2243
- b,
2258
+ I,
2244
2259
  {
2245
2260
  ActiveImage: (
2246
2261
  /* icon-down-active.svg */
@@ -2289,7 +2304,7 @@ const Ct = () => {
2289
2304
  className: t = "",
2290
2305
  disabled: o
2291
2306
  }) => /* @__PURE__ */ n.jsx(
2292
- b,
2307
+ I,
2293
2308
  {
2294
2309
  ActiveImage: (
2295
2310
  /* icon-elipses-active.svg */
@@ -2338,7 +2353,7 @@ const Ct = () => {
2338
2353
  className: t = "",
2339
2354
  disabled: o
2340
2355
  }) => /* @__PURE__ */ n.jsx(
2341
- b,
2356
+ I,
2342
2357
  {
2343
2358
  ActiveImage: (
2344
2359
  /* icon-flag-active.svg */
@@ -2387,7 +2402,7 @@ const Ct = () => {
2387
2402
  className: t = "",
2388
2403
  disabled: o
2389
2404
  }) => /* @__PURE__ */ n.jsx(
2390
- b,
2405
+ I,
2391
2406
  {
2392
2407
  ActiveImage: (
2393
2408
  /* /Users/hvolmer/Downloads/SVG/icon-gear-active.svg */
@@ -2436,7 +2451,7 @@ const Ct = () => {
2436
2451
  className: t = "",
2437
2452
  disabled: o
2438
2453
  }) => /* @__PURE__ */ n.jsx(
2439
- b,
2454
+ I,
2440
2455
  {
2441
2456
  ActiveImage: (
2442
2457
  /* icon-glass-active.svg */
@@ -2486,7 +2501,7 @@ const Ct = () => {
2486
2501
  className: t = "",
2487
2502
  disabled: o
2488
2503
  }) => /* @__PURE__ */ n.jsx(
2489
- b,
2504
+ I,
2490
2505
  {
2491
2506
  ActiveImage: (
2492
2507
  /* icon-hdmi-active.svg */
@@ -2553,7 +2568,7 @@ const Ct = () => {
2553
2568
  className: t = "",
2554
2569
  disabled: o
2555
2570
  }) => /* @__PURE__ */ n.jsx(
2556
- b,
2571
+ I,
2557
2572
  {
2558
2573
  ActiveImage: (
2559
2574
  /* icon-laptop-active.svg */
@@ -2602,7 +2617,7 @@ const Ct = () => {
2602
2617
  className: t = "",
2603
2618
  disabled: o
2604
2619
  }) => /* @__PURE__ */ n.jsx(
2605
- b,
2620
+ I,
2606
2621
  {
2607
2622
  ActiveImage: (
2608
2623
  /* icon-left-active.svg */
@@ -2651,7 +2666,7 @@ const Ct = () => {
2651
2666
  className: t = "",
2652
2667
  disabled: o
2653
2668
  }) => /* @__PURE__ */ n.jsx(
2654
- b,
2669
+ I,
2655
2670
  {
2656
2671
  ActiveImage: (
2657
2672
  /* icon-light-active.svg */
@@ -2700,7 +2715,7 @@ const Ct = () => {
2700
2715
  className: t = "",
2701
2716
  disabled: o
2702
2717
  }) => /* @__PURE__ */ n.jsx(
2703
- b,
2718
+ I,
2704
2719
  {
2705
2720
  ActiveImage: (
2706
2721
  /* icon-moon-active.svg */
@@ -2749,7 +2764,7 @@ const Ct = () => {
2749
2764
  className: t = "",
2750
2765
  disabled: o
2751
2766
  }) => /* @__PURE__ */ n.jsx(
2752
- b,
2767
+ I,
2753
2768
  {
2754
2769
  ActiveImage: (
2755
2770
  /* icon-playstation-active.svg */
@@ -2771,7 +2786,7 @@ const Ct = () => {
2771
2786
  className: t = "",
2772
2787
  disabled: o
2773
2788
  }) => /* @__PURE__ */ n.jsx(
2774
- b,
2789
+ I,
2775
2790
  {
2776
2791
  ActiveImage: (
2777
2792
  /* icon-podium-active.svg */
@@ -2820,7 +2835,7 @@ const Ct = () => {
2820
2835
  className: t = "",
2821
2836
  disabled: o
2822
2837
  }) => /* @__PURE__ */ n.jsx(
2823
- b,
2838
+ I,
2824
2839
  {
2825
2840
  ActiveImage: (
2826
2841
  /* icon-power-active.svg */
@@ -2869,7 +2884,7 @@ const Ct = () => {
2869
2884
  className: t = "",
2870
2885
  disabled: o
2871
2886
  }) => /* @__PURE__ */ n.jsx(
2872
- b,
2887
+ I,
2873
2888
  {
2874
2889
  ActiveImage: (
2875
2890
  /* icon-privacy-active.svg */
@@ -2918,7 +2933,7 @@ const Ct = () => {
2918
2933
  className: t = "",
2919
2934
  disabled: o
2920
2935
  }) => /* @__PURE__ */ n.jsx(
2921
- b,
2936
+ I,
2922
2937
  {
2923
2938
  ActiveImage: (
2924
2939
  /* icon-question-active.svg */
@@ -2967,7 +2982,7 @@ const Ct = () => {
2967
2982
  className: t = "",
2968
2983
  disabled: o
2969
2984
  }) => /* @__PURE__ */ n.jsx(
2970
- b,
2985
+ I,
2971
2986
  {
2972
2987
  ActiveImage: (
2973
2988
  /* icon-right-active.svg */
@@ -3017,7 +3032,7 @@ const Ct = () => {
3017
3032
  className: t = "",
3018
3033
  disabled: o
3019
3034
  }) => /* @__PURE__ */ n.jsx(
3020
- b,
3035
+ I,
3021
3036
  {
3022
3037
  ActiveImage: (
3023
3038
  /* icon-roomPC-active.svg */
@@ -3084,7 +3099,7 @@ const Ct = () => {
3084
3099
  className: t = "",
3085
3100
  disabled: o
3086
3101
  }) => /* @__PURE__ */ n.jsx(
3087
- b,
3102
+ I,
3088
3103
  {
3089
3104
  ActiveImage: (
3090
3105
  /* icon-shade-active.svg */
@@ -3133,7 +3148,7 @@ const Ct = () => {
3133
3148
  className: t = "",
3134
3149
  disabled: o
3135
3150
  }) => /* @__PURE__ */ n.jsx(
3136
- b,
3151
+ I,
3137
3152
  {
3138
3153
  ActiveImage: (
3139
3154
  /* icon-sun-active.svg */
@@ -3184,7 +3199,7 @@ const Ct = () => {
3184
3199
  className: t = "",
3185
3200
  disabled: o
3186
3201
  }) => /* @__PURE__ */ n.jsx(
3187
- b,
3202
+ I,
3188
3203
  {
3189
3204
  ActiveImage: void 0,
3190
3205
  DisabledImage: void 0,
@@ -3197,7 +3212,7 @@ const Ct = () => {
3197
3212
  className: t = "",
3198
3213
  disabled: o
3199
3214
  }) => /* @__PURE__ */ n.jsx(
3200
- b,
3215
+ I,
3201
3216
  {
3202
3217
  ActiveImage: (
3203
3218
  /* icon-up-active.svg */
@@ -3246,7 +3261,7 @@ const Ct = () => {
3246
3261
  className: t = "",
3247
3262
  disabled: o
3248
3263
  }) => /* @__PURE__ */ n.jsx(
3249
- b,
3264
+ I,
3250
3265
  {
3251
3266
  ActiveImage: (
3252
3267
  /* icon-volDown-active.svg */
@@ -3295,7 +3310,7 @@ const Ct = () => {
3295
3310
  className: t = "",
3296
3311
  disabled: o
3297
3312
  }) => /* @__PURE__ */ n.jsx(
3298
- b,
3313
+ I,
3299
3314
  {
3300
3315
  ActiveImage: (
3301
3316
  /* icon-volMute-active.svg */
@@ -3344,7 +3359,7 @@ const Ct = () => {
3344
3359
  className: t = "",
3345
3360
  disabled: o
3346
3361
  }) => /* @__PURE__ */ n.jsx(
3347
- b,
3362
+ I,
3348
3363
  {
3349
3364
  ActiveImage: (
3350
3365
  /* icon-volUp-active.svg */
@@ -3393,7 +3408,7 @@ const Ct = () => {
3393
3408
  className: t = "",
3394
3409
  disabled: o
3395
3410
  }) => /* @__PURE__ */ n.jsx(
3396
- b,
3411
+ I,
3397
3412
  {
3398
3413
  ActiveImage: (
3399
3414
  /* icon-wireless-active.svg */
@@ -3442,7 +3457,7 @@ const Ct = () => {
3442
3457
  className: t = "",
3443
3458
  disabled: o
3444
3459
  }) => /* @__PURE__ */ n.jsx(
3445
- b,
3460
+ I,
3446
3461
  {
3447
3462
  ActiveImage: (
3448
3463
  /* icon-x-active.svg */
@@ -3491,7 +3506,7 @@ const Ct = () => {
3491
3506
  className: t = "",
3492
3507
  disabled: o
3493
3508
  }) => /* @__PURE__ */ n.jsx(
3494
- b,
3509
+ I,
3495
3510
  {
3496
3511
  ActiveImage: (
3497
3512
  /* icon-xbox-active.svg */
@@ -3540,7 +3555,7 @@ const Ct = () => {
3540
3555
  className: t = "",
3541
3556
  disabled: o
3542
3557
  }) => /* @__PURE__ */ n.jsx(
3543
- b,
3558
+ I,
3544
3559
  {
3545
3560
  ActiveImage: (
3546
3561
  /* icon-mic-active.svg */
@@ -3626,38 +3641,38 @@ function yt({
3626
3641
  const c = t[e] ?? null;
3627
3642
  return c || console.error(`Icon ${e} not found in dictionary`), /* @__PURE__ */ n.jsx(ze, { multiIcon: c, ...o });
3628
3643
  }
3629
- const E8 = "_grid_1cmpp_1", T8 = "_header_1cmpp_11", D8 = "_content_1cmpp_17", _8 = "_footer_1cmpp_23", P8 = "_volume_1cmpp_29", r1 = {
3644
+ const E8 = "_grid_1cmpp_1", T8 = "_header_1cmpp_11", D8 = "_content_1cmpp_17", _8 = "_footer_1cmpp_23", P8 = "_volume_1cmpp_29", l1 = {
3630
3645
  grid: E8,
3631
3646
  header: T8,
3632
3647
  content: D8,
3633
3648
  footer: _8,
3634
3649
  volume: P8
3635
- }, It = ({ header: e, footer: t, content: o, volume: c, showVolume: r }) => /* @__PURE__ */ n.jsxs("div", { className: r1.grid, children: [
3636
- /* @__PURE__ */ n.jsx("div", { className: r1.header, children: e }),
3637
- /* @__PURE__ */ n.jsx("div", { className: r1.content, children: o }),
3638
- r && /* @__PURE__ */ n.jsx("div", { className: r1.volume, children: c }),
3639
- /* @__PURE__ */ n.jsx("div", { className: r1.footer, children: t })
3640
- ] }), L8 = "_grid_11w5q_1", $8 = "_header_11w5q_11", A8 = "_content_11w5q_17", f1 = {
3650
+ }, It = ({ header: e, footer: t, content: o, volume: c, showVolume: r }) => /* @__PURE__ */ n.jsxs("div", { className: l1.grid, children: [
3651
+ /* @__PURE__ */ n.jsx("div", { className: l1.header, children: e }),
3652
+ /* @__PURE__ */ n.jsx("div", { className: l1.content, children: o }),
3653
+ r && /* @__PURE__ */ n.jsx("div", { className: l1.volume, children: c }),
3654
+ /* @__PURE__ */ n.jsx("div", { className: l1.footer, children: t })
3655
+ ] }), L8 = "_grid_11w5q_1", A8 = "_header_11w5q_11", $8 = "_content_11w5q_17", p1 = {
3641
3656
  grid: L8,
3642
- header: $8,
3643
- content: A8
3644
- }, Rt = ({ className: e, header: t, content: o, leftNav: c }) => /* @__PURE__ */ n.jsxs("div", { className: `${e} ${f1.grid}`, children: [
3645
- /* @__PURE__ */ n.jsx("div", { className: f1.header, children: t }),
3646
- c && /* @__PURE__ */ n.jsx("div", { className: f1.leftNav, children: c }),
3647
- /* @__PURE__ */ n.jsx("div", { className: f1.content, children: o })
3648
- ] }), B8 = "_grid_1uwfo_1", O8 = "_header_1uwfo_11", k8 = "_content_1uwfo_17", D1 = {
3657
+ header: A8,
3658
+ content: $8
3659
+ }, Rt = ({ className: e, header: t, content: o, leftNav: c }) => /* @__PURE__ */ n.jsxs("div", { className: `${e} ${p1.grid}`, children: [
3660
+ /* @__PURE__ */ n.jsx("div", { className: p1.header, children: t }),
3661
+ c && /* @__PURE__ */ n.jsx("div", { className: p1.leftNav, children: c }),
3662
+ /* @__PURE__ */ n.jsx("div", { className: p1.content, children: o })
3663
+ ] }), B8 = "_grid_1uwfo_1", O8 = "_header_1uwfo_11", k8 = "_content_1uwfo_17", P1 = {
3649
3664
  grid: B8,
3650
3665
  header: O8,
3651
3666
  content: k8
3652
- }, Et = ({ className: e, header: t, content: o }) => /* @__PURE__ */ n.jsxs("div", { className: `${e} ${D1.grid}`, children: [
3653
- /* @__PURE__ */ n.jsx("div", { className: D1.header, children: t }),
3654
- /* @__PURE__ */ n.jsx("div", { className: D1.content, children: o })
3667
+ }, Et = ({ className: e, header: t, content: o }) => /* @__PURE__ */ n.jsxs("div", { className: `${e} ${P1.grid}`, children: [
3668
+ /* @__PURE__ */ n.jsx("div", { className: P1.header, children: t }),
3669
+ /* @__PURE__ */ n.jsx("div", { className: P1.content, children: o })
3655
3670
  ] });
3656
3671
  class Tt {
3657
3672
  constructor() {
3658
- F(this, "currentShareText");
3659
- F(this, "enabled");
3660
- F(this, "isSharing");
3673
+ K(this, "currentShareText");
3674
+ K(this, "enabled");
3675
+ K(this, "isSharing");
3661
3676
  }
3662
3677
  }
3663
3678
  function Dt() {
@@ -3666,8 +3681,8 @@ function Dt() {
3666
3681
  var W8 = /* @__PURE__ */ ((e) => (e[e.NotSet = 0] = "NotSet", e[e.Sunday = 1] = "Sunday", e[e.Monday = 2] = "Monday", e[e.Tuesday = 4] = "Tuesday", e[e.Wednesday = 8] = "Wednesday", e[e.Thursday = 16] = "Thursday", e[e.Friday = 32] = "Friday", e[e.Saturday = 64] = "Saturday", e))(W8 || {});
3667
3682
  class _t {
3668
3683
  constructor(t, o) {
3669
- F(this, "path");
3670
- F(this, "handler");
3684
+ K(this, "path");
3685
+ K(this, "handler");
3671
3686
  this.path = t, this.handler = o;
3672
3687
  }
3673
3688
  }
@@ -3713,79 +3728,79 @@ export {
3713
3728
  It as MainLayout,
3714
3729
  _t as MessageHandler,
3715
3730
  L6 as MobileControlProvider,
3716
- b as MultiStateIconContainer,
3731
+ I as MultiStateIconContainer,
3717
3732
  yt as NamedIconButton,
3718
3733
  Tt as ShareState,
3719
3734
  Rt as TechLayout,
3720
3735
  Et as TechPinLayout,
3721
- T3 as WS_ADD_EVENT_HANDLER,
3722
- I3 as WS_CONNECT,
3723
- R3 as WS_DISCONNECT,
3724
- _3 as WS_RECONNECT,
3725
- D3 as WS_REMOVE_EVENT_HANDLER,
3726
- E3 as WS_SEND_MESSAGE,
3727
- P3 as WebsocketContext,
3728
- b3 as appConfigActions,
3736
+ D3 as WS_ADD_EVENT_HANDLER,
3737
+ R3 as WS_CONNECT,
3738
+ E3 as WS_DISCONNECT,
3739
+ P3 as WS_RECONNECT,
3740
+ _3 as WS_REMOVE_EVENT_HANDLER,
3741
+ T3 as WS_SEND_MESSAGE,
3742
+ A3 as WebsocketContext,
3743
+ y3 as appConfigActions,
3729
3744
  Pe as createWebSocketMiddleware,
3730
- v1 as devicesActions,
3745
+ g1 as devicesActions,
3731
3746
  Dt as getBaseLocation,
3732
- v3 as httpClient,
3747
+ h3 as httpClient,
3733
3748
  R8 as iconsDictionary,
3734
3749
  Pt as roomOffSourceKey,
3735
- h1 as roomsActions,
3736
- U as runtimeConfigActions,
3737
- Z3 as selectAllDevices,
3738
- b2 as selectApiPath,
3739
- C2 as selectAppConfig,
3740
- ee as selectClientId,
3741
- ie as selectCurrentPopoverIdForGroup,
3742
- R2 as selectDeviceByKey,
3743
- le as selectDeviceInterfaceSupport,
3744
- ue as selectError,
3745
- he as selectIsSyncStateValuePresent,
3746
- re as selectIsTouchpanel,
3747
- y2 as selectLogoPath,
3748
- B1 as selectModalVisibility,
3749
- I2 as selectPartnerMetadata,
3750
- q2 as selectRoomAdvancedSharingActive,
3751
- A2 as selectRoomAudioControlPointList,
3752
- D2 as selectRoomByKey,
3753
- V2 as selectRoomCodecContentDestinationKey,
3754
- E2 as selectRoomConfiguration,
3755
- O2 as selectRoomDestinationList,
3756
- B2 as selectRoomDestinations,
3757
- z2 as selectRoomDisplayStates,
3758
- k2 as selectRoomEnvironmentalDevices,
3759
- U2 as selectRoomInCall,
3760
- F2 as selectRoomIsCoolingDown,
3761
- K2 as selectRoomIsOn,
3762
- H2 as selectRoomIsWarmingUp,
3763
- N2 as selectRoomKey,
3764
- L2 as selectRoomLevelControls,
3765
- _2 as selectRoomName,
3766
- W2 as selectRoomProgramAudioDestinationKey,
3767
- G2 as selectRoomShareState,
3750
+ f1 as roomsActions,
3751
+ H as runtimeConfigActions,
3752
+ S3 as selectAllDevices,
3753
+ y2 as selectApiPath,
3754
+ b2 as selectAppConfig,
3755
+ te as selectClientId,
3756
+ ae as selectCurrentPopoverIdForGroup,
3757
+ E2 as selectDeviceByKey,
3758
+ ie as selectDeviceInterfaceSupport,
3759
+ de as selectError,
3760
+ ge as selectIsSyncStateValuePresent,
3761
+ le as selectIsTouchpanel,
3762
+ I2 as selectLogoPath,
3763
+ k1 as selectModalVisibility,
3764
+ R2 as selectPartnerMetadata,
3765
+ G2 as selectRoomAdvancedSharingActive,
3766
+ B2 as selectRoomAudioControlPointList,
3767
+ _2 as selectRoomByKey,
3768
+ U2 as selectRoomCodecContentDestinationKey,
3769
+ T2 as selectRoomConfiguration,
3770
+ k2 as selectRoomDestinationList,
3771
+ O2 as selectRoomDestinations,
3772
+ J2 as selectRoomDisplayStates,
3773
+ W2 as selectRoomEnvironmentalDevices,
3774
+ H2 as selectRoomInCall,
3775
+ K2 as selectRoomIsCoolingDown,
3776
+ q2 as selectRoomIsOn,
3777
+ F2 as selectRoomIsWarmingUp,
3778
+ ee as selectRoomKey,
3779
+ A2 as selectRoomLevelControls,
3780
+ P2 as selectRoomName,
3781
+ V2 as selectRoomProgramAudioDestinationKey,
3782
+ Y2 as selectRoomShareState,
3768
3783
  $2 as selectRoomSourceList,
3769
- P2 as selectRoomVolume,
3770
- T2 as selectRooms,
3771
- se as selectRuntimeInfo,
3772
- oe as selectServerIsRunningOnProcessorHardware,
3773
- ae as selectShowPopoverById,
3774
- de as selectShowReconnect,
3775
- te as selectSystemUuid,
3776
- ve as selectTheme,
3777
- ce as selectTouchpanelKey,
3778
- ne as selectUserCode,
3779
- Q2 as selectWsIsConnected,
3780
- Y2 as selectZoomRoomControllerKey,
3781
- $e as store,
3782
- V as uiActions,
3783
- me as uiReducer,
3784
+ L2 as selectRoomVolume,
3785
+ D2 as selectRooms,
3786
+ ce as selectRuntimeInfo,
3787
+ se as selectServerIsRunningOnProcessorHardware,
3788
+ ue as selectShowPopoverById,
3789
+ ve as selectShowReconnect,
3790
+ ne as selectSystemUuid,
3791
+ he as selectTheme,
3792
+ re as selectTouchpanelKey,
3793
+ oe as selectUserCode,
3794
+ N2 as selectWsIsConnected,
3795
+ z2 as selectZoomRoomControllerKey,
3796
+ Ae as store,
3797
+ k as uiActions,
3798
+ Me as uiReducer,
3784
3799
  Y8 as useApiPath,
3785
3800
  G8 as useAppConfig,
3786
- A1 as useAppDispatch,
3801
+ O1 as useAppDispatch,
3787
3802
  m as useAppSelector,
3788
- A6 as useAvrControl,
3803
+ $6 as useAvrControl,
3789
3804
  g as useButtonHeldHeartbeat,
3790
3805
  B6 as useCameraBase,
3791
3806
  m6 as useClientId,
@@ -3793,17 +3808,17 @@ export {
3793
3808
  b6 as useDeviceInterfaceSupport,
3794
3809
  k6 as useDevicePresetsModel,
3795
3810
  W6 as useEndpoint,
3796
- ge as useError,
3811
+ fe as useError,
3797
3812
  pt as useGetAllDeviceStateFromRoomConfiguration,
3798
3813
  X8 as useGetAllDevices,
3799
3814
  N8 as useGetAllRooms,
3800
3815
  E6 as useGetCurrentPopoverIdForGroup,
3801
- _ as useGetDevice,
3802
- $6 as useGetIBasicVolumeWithFeedback,
3816
+ D as useGetDevice,
3817
+ A6 as useGetIBasicVolumeWithFeedback,
3803
3818
  e6 as useGetRoom,
3804
3819
  f6 as useGetRoomDisplayStates,
3805
3820
  w6 as useGetZoomRoomControllerKey,
3806
- L3 as useIBasicVolumeWithFeedback,
3821
+ $3 as useIBasicVolumeWithFeedback,
3807
3822
  V6 as useIChannel,
3808
3823
  U6 as useIColor,
3809
3824
  H6 as useICommunicationMonitor,
@@ -3813,8 +3828,8 @@ export {
3813
3828
  G6 as useIDvr,
3814
3829
  Y6 as useIEssentialsRoomCombiner,
3815
3830
  z6 as useIHasCameras,
3816
- $3 as useIHasPowerControl,
3817
- $1 as useIHasSelectableItems,
3831
+ B3 as useIHasPowerControl,
3832
+ B1 as useIHasSelectableItems,
3818
3833
  J6 as useIHumiditySensor,
3819
3834
  X6 as useILevelControls,
3820
3835
  Q6 as useILightingScenes,
@@ -3835,7 +3850,7 @@ export {
3835
3850
  ht as useITheme,
3836
3851
  gt as useITransport,
3837
3852
  P6 as useInitialize,
3838
- we as useIsSyncStateValuePresent,
3853
+ pe as useIsSyncStateValuePresent,
3839
3854
  C6 as useIsTouchpanel,
3840
3855
  z8 as useLogoPath,
3841
3856
  ft as useMobileControlTouchpanelController,
@@ -3855,20 +3870,20 @@ export {
3855
3870
  v6 as useRoomIsOn,
3856
3871
  u6 as useRoomIsWarmingUp,
3857
3872
  p6 as useRoomKey,
3858
- X2 as useRoomLevelControls,
3873
+ Q2 as useRoomLevelControls,
3859
3874
  t6 as useRoomName,
3860
3875
  l6 as useRoomProgramAudioDestinationKey,
3861
3876
  g6 as useRoomShareState,
3862
3877
  n6 as useRoomSourceList,
3863
- m1 as useRoomState,
3864
- J2 as useRoomVolume,
3878
+ x1 as useRoomState,
3879
+ X2 as useRoomVolume,
3865
3880
  S6 as useRuntimeInfo,
3866
3881
  xt as useScroll,
3867
3882
  Z6 as useServerIsRunningOnProcessorHardware,
3868
3883
  I6 as useShowIncomingCallModal,
3869
3884
  R6 as useShowModal,
3870
3885
  T6 as useShowPopoverById,
3871
- fe as useShowReconnect,
3886
+ we as useShowReconnect,
3872
3887
  y6 as useShowShutdownModal,
3873
3888
  Zt as useStateIsSynced,
3874
3889
  St as useSystemControl,
@@ -3878,10 +3893,10 @@ export {
3878
3893
  j6 as useTouchpanelKey,
3879
3894
  wt as useTwoWayDisplayBase,
3880
3895
  x6 as useUserCode,
3881
- I as useWebsocketContext,
3882
- S3 as useWsIsConnected,
3896
+ E as useWebsocketContext,
3897
+ j3 as useWsIsConnected,
3883
3898
  Te as wsAddEventHandler,
3884
- Re as wsConnect,
3899
+ L3 as wsConnect,
3885
3900
  _6 as wsDisconnect,
3886
3901
  _e as wsReconnect,
3887
3902
  De as wsRemoveEventHandler,