@ikonai/sdk-ui 1.0.64 → 1.0.66
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.
- package/assets/{ui-worker-BCMvLBtA.js → ui-worker-BjXx6Rl0.js} +117 -100
- package/ikon-ui-core.d.ts +1 -0
- package/index.js +85 -67
- package/package.json +1 -1
- package/ui-store.d.ts +2 -0
|
@@ -13,17 +13,17 @@ function Z(t) {
|
|
|
13
13
|
const s = e.getUint32(0, !0), n = e.getUint32(4, !0), i = e.getUint32(8, !0), o = e.getUint32(12, !0), a = e.getUint32(16, !0), _ = e.getUint32(20, !0), I = e.getUint8(24), E = e.getUint8(25), l = e.getUint8(26);
|
|
14
14
|
if (27 + _ * 4 > r.length)
|
|
15
15
|
throw new Error("Protocol header exceeds payload length");
|
|
16
|
-
const
|
|
16
|
+
const L = [];
|
|
17
17
|
let d = 27;
|
|
18
18
|
for (let W = 0; W < _; W++)
|
|
19
|
-
|
|
19
|
+
L.push(e.getUint32(d, !0)), d += 4;
|
|
20
20
|
return {
|
|
21
21
|
length: s,
|
|
22
22
|
opcode: n,
|
|
23
23
|
senderId: i,
|
|
24
24
|
trackId: o,
|
|
25
25
|
sequenceId: a,
|
|
26
|
-
targetIds:
|
|
26
|
+
targetIds: L,
|
|
27
27
|
payloadVersion: I,
|
|
28
28
|
payloadType: E,
|
|
29
29
|
flags: l
|
|
@@ -89,15 +89,15 @@ class O {
|
|
|
89
89
|
const n = b(s);
|
|
90
90
|
let i;
|
|
91
91
|
if (n >= 0)
|
|
92
|
-
|
|
92
|
+
N(this.buffer, this.offset, n), i = this.buffer.subarray(this.offset, this.offset + n), this.offset += n;
|
|
93
93
|
else {
|
|
94
94
|
const o = { offset: this.offset }, a = S(this.buffer, o, "InvalidLength");
|
|
95
|
-
|
|
95
|
+
N(this.buffer, o.offset, a), i = this.buffer.subarray(o.offset, o.offset + a), this.offset = o.offset + a;
|
|
96
96
|
}
|
|
97
97
|
return new oe(r, s, i);
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
|
-
class
|
|
100
|
+
class y {
|
|
101
101
|
constructor(r, e) {
|
|
102
102
|
this.type = r, this.payload = e;
|
|
103
103
|
}
|
|
@@ -190,7 +190,7 @@ class L {
|
|
|
190
190
|
throw new Error(`Teleport value has type ${F[this.type]}, expected ${F[r]}`);
|
|
191
191
|
}
|
|
192
192
|
}
|
|
193
|
-
class oe extends
|
|
193
|
+
class oe extends y {
|
|
194
194
|
constructor(r, e, s) {
|
|
195
195
|
super(e, s), this.fieldId = r;
|
|
196
196
|
}
|
|
@@ -236,20 +236,20 @@ class tt {
|
|
|
236
236
|
case 6:
|
|
237
237
|
case 14: {
|
|
238
238
|
const r = b(this.elementType);
|
|
239
|
-
|
|
239
|
+
N(this.payload, this.offset, r);
|
|
240
240
|
const e = this.payload.subarray(this.offset, this.offset + r);
|
|
241
241
|
return this.offset += r, new k(this.elementType, e);
|
|
242
242
|
}
|
|
243
243
|
case 12:
|
|
244
244
|
case 13: {
|
|
245
245
|
const r = { offset: this.offset }, e = S(this.payload, r, "ArrayMalformed");
|
|
246
|
-
|
|
246
|
+
N(this.payload, r.offset, e);
|
|
247
247
|
const s = this.payload.subarray(r.offset, r.offset + e);
|
|
248
248
|
return this.offset = r.offset + e, new k(this.elementType, s);
|
|
249
249
|
}
|
|
250
250
|
case 11: {
|
|
251
251
|
const r = { offset: this.offset }, e = S(this.payload, r, "ArrayMalformed");
|
|
252
|
-
|
|
252
|
+
N(this.payload, r.offset, e);
|
|
253
253
|
const s = this.payload.subarray(r.offset, r.offset + e);
|
|
254
254
|
return this.offset = r.offset + e, new k(11, s);
|
|
255
255
|
}
|
|
@@ -266,7 +266,7 @@ class tt {
|
|
|
266
266
|
}
|
|
267
267
|
}
|
|
268
268
|
}
|
|
269
|
-
class k extends
|
|
269
|
+
class k extends y {
|
|
270
270
|
constructor(r, e) {
|
|
271
271
|
super(r, e);
|
|
272
272
|
}
|
|
@@ -302,15 +302,15 @@ class et {
|
|
|
302
302
|
readKey() {
|
|
303
303
|
const r = b(this.keyType);
|
|
304
304
|
if (r >= 0) {
|
|
305
|
-
|
|
305
|
+
N(this.payload, this.offset, r);
|
|
306
306
|
const e = this.payload.subarray(this.offset, this.offset + r);
|
|
307
|
-
return this.offset += r, new
|
|
307
|
+
return this.offset += r, new y(this.keyType, e);
|
|
308
308
|
}
|
|
309
309
|
if (this.keyType === 12 || this.keyType === 13) {
|
|
310
310
|
const e = { offset: this.offset }, s = S(this.payload, e, "DictMalformed");
|
|
311
|
-
|
|
311
|
+
N(this.payload, e.offset, s);
|
|
312
312
|
const n = this.payload.subarray(e.offset, e.offset + s);
|
|
313
|
-
return this.offset = e.offset + s, new
|
|
313
|
+
return this.offset = e.offset + s, new y(this.keyType, n);
|
|
314
314
|
}
|
|
315
315
|
throw new Error("Unsupported dictionary key type");
|
|
316
316
|
}
|
|
@@ -319,23 +319,23 @@ class et {
|
|
|
319
319
|
case 12:
|
|
320
320
|
case 13: {
|
|
321
321
|
const r = { offset: this.offset }, e = S(this.payload, r, "DictMalformed");
|
|
322
|
-
|
|
322
|
+
N(this.payload, r.offset, e);
|
|
323
323
|
const s = this.payload.subarray(r.offset, r.offset + e);
|
|
324
|
-
return this.offset = r.offset + e, new
|
|
324
|
+
return this.offset = r.offset + e, new y(this.valueType, s);
|
|
325
325
|
}
|
|
326
326
|
case 11: {
|
|
327
327
|
const r = { offset: this.offset }, e = S(this.payload, r, "DictMalformed");
|
|
328
|
-
|
|
328
|
+
N(this.payload, r.offset, e);
|
|
329
329
|
const s = this.payload.subarray(r.offset, r.offset + e);
|
|
330
|
-
return this.offset = r.offset + e, new
|
|
330
|
+
return this.offset = r.offset + e, new y(11, s);
|
|
331
331
|
}
|
|
332
332
|
case 9: {
|
|
333
333
|
const r = rt(this.payload, this.offset), e = this.payload.subarray(this.offset, this.offset + r);
|
|
334
|
-
return this.offset += r, new
|
|
334
|
+
return this.offset += r, new y(9, e);
|
|
335
335
|
}
|
|
336
336
|
case 10: {
|
|
337
337
|
const r = st(this.payload, this.offset), e = this.payload.subarray(this.offset, this.offset + r);
|
|
338
|
-
return this.offset += r, new
|
|
338
|
+
return this.offset += r, new y(10, e);
|
|
339
339
|
}
|
|
340
340
|
case 3:
|
|
341
341
|
case 5:
|
|
@@ -347,9 +347,9 @@ class et {
|
|
|
347
347
|
case 14:
|
|
348
348
|
case 1: {
|
|
349
349
|
const r = b(this.valueType);
|
|
350
|
-
|
|
350
|
+
N(this.payload, this.offset, r);
|
|
351
351
|
const e = this.payload.subarray(this.offset, this.offset + r);
|
|
352
|
-
return this.offset += r, new
|
|
352
|
+
return this.offset += r, new y(this.valueType, e);
|
|
353
353
|
}
|
|
354
354
|
default:
|
|
355
355
|
throw new Error(`Unsupported dictionary value type ${F[this.valueType]}`);
|
|
@@ -474,7 +474,7 @@ function Et(t) {
|
|
|
474
474
|
if (t === 9 || t === 11 || t === 10 || t === 1)
|
|
475
475
|
throw new Error("Dictionary keys must be primitive Teleport types");
|
|
476
476
|
}
|
|
477
|
-
function
|
|
477
|
+
function N(t, r, e) {
|
|
478
478
|
if (r < 0 || e < 0 || r + e > t.length)
|
|
479
479
|
throw new Error("Teleport payload exceeds bounds");
|
|
480
480
|
}
|
|
@@ -490,7 +490,7 @@ function rt(t, r) {
|
|
|
490
490
|
const n = { offset: r + 1 }, i = S(t, n, "ArrayMalformed"), o = b(s);
|
|
491
491
|
if (o >= 0) {
|
|
492
492
|
const _ = o * i;
|
|
493
|
-
return
|
|
493
|
+
return N(t, n.offset, _), n.offset + _ - r;
|
|
494
494
|
}
|
|
495
495
|
let a = n.offset;
|
|
496
496
|
for (let _ = 0; _ < i; _++)
|
|
@@ -513,16 +513,16 @@ function st(t, r) {
|
|
|
513
513
|
function Q(t, r, e, s) {
|
|
514
514
|
const n = b(t);
|
|
515
515
|
if (n >= 0)
|
|
516
|
-
return
|
|
516
|
+
return N(r, e, n), e + n;
|
|
517
517
|
switch (t) {
|
|
518
518
|
case 12:
|
|
519
519
|
case 13: {
|
|
520
520
|
const i = { offset: e }, o = S(r, i, s);
|
|
521
|
-
return
|
|
521
|
+
return N(r, i.offset, o), i.offset + o;
|
|
522
522
|
}
|
|
523
523
|
case 11: {
|
|
524
524
|
const i = { offset: e }, o = S(r, i, s);
|
|
525
|
-
return
|
|
525
|
+
return N(r, i.offset, o), i.offset + o;
|
|
526
526
|
}
|
|
527
527
|
case 9:
|
|
528
528
|
return e + rt(r, e);
|
|
@@ -538,8 +538,8 @@ function it(t) {
|
|
|
538
538
|
function K(t) {
|
|
539
539
|
return t instanceof Uint8Array ? t : new Uint8Array(t);
|
|
540
540
|
}
|
|
541
|
-
var _t = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.Opus = 1] = "Opus", t[t.Mp3 = 2] = "Mp3", t[t.RawPcm16 = 3] = "RawPcm16", t))(_t || {}), It = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.MobileWeb = 1] = "MobileWeb", t[t.MobileApp = 2] = "MobileApp", t[t.DesktopWeb = 3] = "DesktopWeb", t[t.DesktopApp = 4] = "DesktopApp", t))(It || {}), lt = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.Backend = 2] = "Backend", t[t.Server = 4] = "Server", t[t.Plugin = 8] = "Plugin", t[t.Browser = 16] = "Browser", t))(lt || {}), ct = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.MessagePack = 1] = "MessagePack", t[t.MemoryPack = 2] = "MemoryPack", t[t.Json = 4] = "Json", t[t.Teleport = 8] = "Teleport", t[t.All = 15] = "All", t))(ct || {}), ft = /* @__PURE__ */ ((t) => (t[t.Face = 0] = "Face", t[t.Hands = 1] = "Hands", t[t.Pose = 2] = "Pose", t[t.All = 3] = "All", t))(ft || {}), ut = /* @__PURE__ */ ((t) => (t[t.Css = 0] = "Css", t[t.Flutter = 1] = "Flutter", t))(ut || {}), Tt = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.Machine = 1] = "Machine", t[t.Human = 2] = "Human", t))(Tt || {}), At = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.H264 = 1] = "H264", t[t.Vp8 = 2] = "Vp8", t[t.Vp9 = 3] = "Vp9", t[t.Av1 = 4] = "Av1", t))(At || {}), Nt = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.DotNet = 1] = "DotNet", t[t.TypeScript = 2] = "TypeScript", t[t.Cpp = 3] = "Cpp", t[t.Dart = 4] = "Dart", t[t.Rust = 5] = "Rust", t))(Nt || {}), ht = /* @__PURE__ */ ((t) => (t[t.Local = 0] = "Local", t[t.Cloud = 1] = "Cloud", t))(ht || {}), St = /* @__PURE__ */ ((t) => (t[t.Bundle = 0] = "Bundle", t[t.GitSource = 1] = "GitSource", t))(St || {}), m = /* @__PURE__ */ ((t) => (t[t.NONE = 0] = "NONE", t[t.CONSTANT_GROUP_BITS = 15] = "CONSTANT_GROUP_BITS", t[t.CONSTANT_GROUP_OFFSET = 16] = "CONSTANT_GROUP_OFFSET", t[t.GROUP_CORE = 65536] = "GROUP_CORE", t[t.CORE_AUTH_RESPONSE = 65537] = "CORE_AUTH_RESPONSE", t[t.CORE_AUTH_TICKET = 65538] = "CORE_AUTH_TICKET", t[t.CORE_GLOBAL_STATE = 65539] = "CORE_GLOBAL_STATE", t[t.CORE_ON_SERVER_STATUS_PING = 65540] = "CORE_ON_SERVER_STATUS_PING", t[t.CORE_ON_USER_JOINED = 65541] = "CORE_ON_USER_JOINED", t[t.CORE_ON_USER_LEFT = 65542] = "CORE_ON_USER_LEFT", t[t.CORE_ON_CLIENT_JOINED = 65543] = "CORE_ON_CLIENT_JOINED", t[t.CORE_ON_CLIENT_LEFT = 65544] = "CORE_ON_CLIENT_LEFT", t[t.CORE_ON_SERVER_STARTED = 65545] = "CORE_ON_SERVER_STARTED", t[t.CORE_ON_SERVER_STOPPED = 65546] = "CORE_ON_SERVER_STOPPED", t[t.CORE_ON_SERVER_STOPPING = 65547] = "CORE_ON_SERVER_STOPPING", t[t.CORE_ON_CLIENT_READY = 65548] = "CORE_ON_CLIENT_READY", t[t.CORE_CLIENT_READY = 65549] = "CORE_CLIENT_READY", t[t.CORE_SERVER_INIT = 65550] = "CORE_SERVER_INIT", t[t.CORE_ON_PLUGIN_RELOADED = 65551] = "CORE_ON_PLUGIN_RELOADED", t[t.CORE_SERVER_START = 65552] = "CORE_SERVER_START", t[t.CORE_SERVER_STOP = 65553] = "CORE_SERVER_STOP", t[t.CORE_ON_HOSTED_SERVER_EXIT = 65554] = "CORE_ON_HOSTED_SERVER_EXIT", t[t.CORE_DYNAMIC_CONFIG = 65555] = "CORE_DYNAMIC_CONFIG", t[t.CORE_PROXY_RPC_AUTH_TICKET = 65556] = "CORE_PROXY_RPC_AUTH_TICKET", t[t.CORE_SERVER_INIT2 = 65557] = "CORE_SERVER_INIT2", t[t.CORE_UPDATE_CLIENT_CONTEXT = 65558] = "CORE_UPDATE_CLIENT_CONTEXT", t[t.CORE_BACKGROUND_WORK_ACTIVE = 65559] = "CORE_BACKGROUND_WORK_ACTIVE", t[t.CORE_RESET_IDLE = 65560] = "CORE_RESET_IDLE", t[t.CORE_CLIENT_DISCONNECTING = 65561] = "CORE_CLIENT_DISCONNECTING", t[t.CORE_ON_APP_READY = 65562] = "CORE_ON_APP_READY", t[t.CORE_ON_FRONTEND_RELOADED = 65563] = "CORE_ON_FRONTEND_RELOADED", t[t.CORE_WEBRTC_OFFER = 65566] = "CORE_WEBRTC_OFFER", t[t.CORE_WEBRTC_ANSWER = 65567] = "CORE_WEBRTC_ANSWER", t[t.CORE_WEBRTC_ICE_CANDIDATE = 65568] = "CORE_WEBRTC_ICE_CANDIDATE", t[t.CORE_WEBRTC_READY = 65569] = "CORE_WEBRTC_READY", t[t.CORE_WEBRTC_AUDIO_SEGMENT = 65570] = "CORE_WEBRTC_AUDIO_SEGMENT", t[t.CORE_WEBRTC_TRACK_MAP = 65571] = "CORE_WEBRTC_TRACK_MAP", t[t.CORE_WEBRTC_VIDEO_CAPTURE = 65572] = "CORE_WEBRTC_VIDEO_CAPTURE", t[t.CORE_RELAY_AGENT_AUTH = 65576] = "CORE_RELAY_AGENT_AUTH", t[t.CORE_RELAY_AGENT_AUTH_RESULT = 65577] = "CORE_RELAY_AGENT_AUTH_RESULT", t[t.CORE_RELAY_HEARTBEAT = 65578] = "CORE_RELAY_HEARTBEAT", t[t.CORE_RELAY_TCP_CONNECTION_OPENED = 65579] = "CORE_RELAY_TCP_CONNECTION_OPENED", t[t.CORE_RELAY_TCP_CONNECTION_CLOSED = 65580] = "CORE_RELAY_TCP_CONNECTION_CLOSED", t[t.CORE_RELAY_TCP_DATA = 65581] = "CORE_RELAY_TCP_DATA", t[t.CORE_RELAY_UDP_DATA = 65582] = "CORE_RELAY_UDP_DATA", t[t.CORE_RELAY_ADD_TUNNEL = 65583] = "CORE_RELAY_ADD_TUNNEL", t[t.CORE_RELAY_TUNNEL_ADDED = 65584] = "CORE_RELAY_TUNNEL_ADDED", t[t.CORE_RELAY_REMOVE_TUNNEL = 65585] = "CORE_RELAY_REMOVE_TUNNEL", t[t.CORE_IKON_SERVER_ENDPOINT_HOST_INFO = 65586] = "CORE_IKON_SERVER_ENDPOINT_HOST_INFO", t[t.CORE_CLIENT_INITIALIZATION = 65587] = "CORE_CLIENT_INITIALIZATION", t[t.CORE_CLIENT_LIFECYCLE_BATCH = 65588] = "CORE_CLIENT_LIFECYCLE_BATCH", t[t.CORE_APP_CONFIG = 65589] = "CORE_APP_CONFIG", t[t.GROUP_KEEPALIVE = 131072] = "GROUP_KEEPALIVE", t[t.KEEPALIVE_REQUEST = 131073] = "KEEPALIVE_REQUEST", t[t.KEEPALIVE_RESPONSE = 131074] = "KEEPALIVE_RESPONSE", t[t.GROUP_EVENTS = 262144] = "GROUP_EVENTS", t[t.EVENTS_PROFILE_UPDATE = 262145] = "EVENTS_PROFILE_UPDATE", t[t.EVENTS_CHANNEL_COMPLETE = 262146] = "EVENTS_CHANNEL_COMPLETE", t[t.EVENTS_SPEECH_PLAYBACK_COMPLETE = 262147] = "EVENTS_SPEECH_PLAYBACK_COMPLETE", t[t.GROUP_ANALYTICS = 524288] = "GROUP_ANALYTICS", t[t.ANALYTICS_LOGS = 524289] = "ANALYTICS_LOGS", t[t.ANALYTICS_EVENTS = 524290] = "ANALYTICS_EVENTS", t[t.ANALYTICS_USAGES = 524291] = "ANALYTICS_USAGES", t[t.ANALYTICS_USAGE = 524292] = "ANALYTICS_USAGE", t[t.ANALYTICS_SPECIAL_LOG = 524293] = "ANALYTICS_SPECIAL_LOG", t[t.ANALYTICS_PROCESSING_UPDATE = 524294] = "ANALYTICS_PROCESSING_UPDATE", t[t.ANALYTICS_REACTIVE_PROCESSING_UPDATE = 524295] = "ANALYTICS_REACTIVE_PROCESSING_UPDATE", t[t.ANALYTICS_IKON_PROXY_SERVER_STATS = 524296] = "ANALYTICS_IKON_PROXY_SERVER_STATS", t[t.ANALYTICS_IKON_RELAY_SERVER_STATS = 524297] = "ANALYTICS_IKON_RELAY_SERVER_STATS", t[t.ANALYTICS_IKON_TURN_SERVER_STATS = 524298] = "ANALYTICS_IKON_TURN_SERVER_STATS", t[t.GROUP_ACTIONS = 1048576] = "GROUP_ACTIONS", t[t.ACTION_CALL = 1048577] = "ACTION_CALL", t[t.ACTION_ACTIVE = 1048578] = "ACTION_ACTIVE", t[t.ACTION_TEXT_OUTPUT = 1048579] = "ACTION_TEXT_OUTPUT", t[t.ACTION_TEXT_OUTPUT_DELTA = 1048580] = "ACTION_TEXT_OUTPUT_DELTA", t[t.ACTION_TEXT_OUTPUT_DELTA_FULL = 1048581] = "ACTION_TEXT_OUTPUT_DELTA_FULL", t[t.ACTION_SET_STATE = 1048582] = "ACTION_SET_STATE", t[t.ACTION_TAP = 1048583] = "ACTION_TAP", t[t.ACTION_PAN = 1048584] = "ACTION_PAN", t[t.ACTION_ZOOM = 1048585] = "ACTION_ZOOM", t[t.ACTION_FILE_UPLOAD_BEGIN = 1048586] = "ACTION_FILE_UPLOAD_BEGIN", t[t.ACTION_FILE_UPLOAD_DATA = 1048587] = "ACTION_FILE_UPLOAD_DATA", t[t.ACTION_FILE_UPLOAD_ACK = 1048588] = "ACTION_FILE_UPLOAD_ACK", t[t.ACTION_FILE_UPLOAD_END = 1048589] = "ACTION_FILE_UPLOAD_END", t[t.ACTION_FILE_UPLOAD_RESULT = 1048590] = "ACTION_FILE_UPLOAD_RESULT", t[t.ACTION_OPEN_CHANNEL = 1048591] = "ACTION_OPEN_CHANNEL", t[t.ACTION_OPEN_EXTERNAL_URL = 1048592] = "ACTION_OPEN_EXTERNAL_URL", t[t.ACTION_UI_OPEN_VIEW = 1048593] = "ACTION_UI_OPEN_VIEW", t[t.ACTION_UI_CLOSE_VIEW = 1048594] = "ACTION_UI_CLOSE_VIEW", t[t.ACTION_UI_BLOCKING_BEGIN = 1048595] = "ACTION_UI_BLOCKING_BEGIN", t[t.ACTION_UI_BLOCKING_END = 1048596] = "ACTION_UI_BLOCKING_END", t[t.ACTION_UI_UPDATE_TEXT_DELTA = 1048597] = "ACTION_UI_UPDATE_TEXT_DELTA", t[t.ACTION_UI_DELETE_CONTAINER = 1048598] = "ACTION_UI_DELETE_CONTAINER", t[t.ACTION_UPDATE_GFX_SHADER = 1048599] = "ACTION_UPDATE_GFX_SHADER", t[t.ACTION_FUNCTION_REGISTER = 1048600] = "ACTION_FUNCTION_REGISTER", t[t.ACTION_FUNCTION_CALL = 1048601] = "ACTION_FUNCTION_CALL", t[t.ACTION_FUNCTION_RESULT = 1048602] = "ACTION_FUNCTION_RESULT", t[t.ACTION_GENERATE_ANSWER = 1048603] = "ACTION_GENERATE_ANSWER", t[t.ACTION_REGENERATE_ANSWER = 1048604] = "ACTION_REGENERATE_ANSWER", t[t.ACTION_CLEAR_CHAT_MESSAGE_HISTORY = 1048605] = "ACTION_CLEAR_CHAT_MESSAGE_HISTORY", t[t.ACTION_CLEAR_STATE = 1048606] = "ACTION_CLEAR_STATE", t[t.ACTION_RELOAD_CHANNELS = 1048607] = "ACTION_RELOAD_CHANNELS", t[t.ACTION_RELOAD_PROFILE = 1048608] = "ACTION_RELOAD_PROFILE", t[t.ACTION_CLASSIFICATION_RESULT = 1048609] = "ACTION_CLASSIFICATION_RESULT", t[t.ACTION_AUDIO_STOP = 1048610] = "ACTION_AUDIO_STOP", t[t.ACTION_CALL_TEXT = 1048611] = "ACTION_CALL_TEXT", t[t.ACTION_RELOAD_APPLICATION = 1048612] = "ACTION_RELOAD_APPLICATION", t[t.ACTION_CANCEL_GENERATION = 1048613] = "ACTION_CANCEL_GENERATION", t[t.ACTION_UI_SET_CONTAINER_STABLE = 1048614] = "ACTION_UI_SET_CONTAINER_STABLE", t[t.ACTION_SPEECH_RECOGNIZED = 1048615] = "ACTION_SPEECH_RECOGNIZED", t[t.ACTION_CALL_RESULT = 1048616] = "ACTION_CALL_RESULT", t[t.ACTION_RELOAD_PROVIDER = 1048617] = "ACTION_RELOAD_PROVIDER", t[t.ACTION_DOWNLOAD = 1048618] = "ACTION_DOWNLOAD", t[t.ACTION_SCROLL_TO_CONTAINER = 1048619] = "ACTION_SCROLL_TO_CONTAINER", t[t.ACTION_UI_CLEAR_STREAM = 1048620] = "ACTION_UI_CLEAR_STREAM", t[t.ACTION_PLAY_SOUND = 1048621] = "ACTION_PLAY_SOUND", t[t.ACTION_ENTER_FULLSCREEN = 1048622] = "ACTION_ENTER_FULLSCREEN", t[t.ACTION_STOP_SOUND = 1048623] = "ACTION_STOP_SOUND", t[t.ACTION_START_RECORDING = 1048624] = "ACTION_START_RECORDING", t[t.ACTION_STOP_RECORDING = 1048625] = "ACTION_STOP_RECORDING", t[t.ACTION_FUNCTION_ENUMERATION_ITEM = 1048627] = "ACTION_FUNCTION_ENUMERATION_ITEM", t[t.ACTION_FUNCTION_ENUMERATION_END = 1048628] = "ACTION_FUNCTION_ENUMERATION_END", t[t.ACTION_FUNCTION_CANCEL = 1048629] = "ACTION_FUNCTION_CANCEL", t[t.ACTION_FUNCTION_DISPOSE = 1048630] = "ACTION_FUNCTION_DISPOSE", t[t.ACTION_FUNCTION_ERROR = 1048631] = "ACTION_FUNCTION_ERROR", t[t.ACTION_FUNCTION_ACK = 1048632] = "ACTION_FUNCTION_ACK", t[t.ACTION_FUNCTION_AWAITING_APPROVAL = 1048633] = "ACTION_FUNCTION_AWAITING_APPROVAL", t[t.ACTION_FUNCTION_APPROVAL_REQUIRED = 1048634] = "ACTION_FUNCTION_APPROVAL_REQUIRED", t[t.ACTION_FUNCTION_APPROVAL_RESPONSE = 1048635] = "ACTION_FUNCTION_APPROVAL_RESPONSE", t[t.UI_UPDATE_ACK = 1048636] = "UI_UPDATE_ACK", t[t.ACTION_CALL2 = 1048637] = "ACTION_CALL2", t[t.ACTION_FUNCTION_REGISTER_BATCH = 1048638] = "ACTION_FUNCTION_REGISTER_BATCH", t[t.ACTION_TRIGGER_GIT_PULL = 1048639] = "ACTION_TRIGGER_GIT_PULL", t[t.ACTION_FILE_UPLOAD_CALLBACK = 1048640] = "ACTION_FILE_UPLOAD_CALLBACK", t[t.ACTION_CUSTOM_USER_MESSAGE = 1048641] = "ACTION_CUSTOM_USER_MESSAGE", t[t.ACTION_URL_CHANGED = 1048642] = "ACTION_URL_CHANGED", t[t.ACTION_FILE_UPLOAD_PRE_START2 = 1048643] = "ACTION_FILE_UPLOAD_PRE_START2", t[t.ACTION_FILE_UPLOAD_PRE_START_RESPONSE2 = 1048644] = "ACTION_FILE_UPLOAD_PRE_START_RESPONSE2", t[t.ACTION_FILE_UPLOAD_START2 = 1048645] = "ACTION_FILE_UPLOAD_START2", t[t.ACTION_FILE_UPLOAD_START_RESPONSE2 = 1048646] = "ACTION_FILE_UPLOAD_START_RESPONSE2", t[t.ACTION_FILE_UPLOAD_DATA2 = 1048647] = "ACTION_FILE_UPLOAD_DATA2", t[t.ACTION_FILE_UPLOAD_ACK2 = 1048648] = "ACTION_FILE_UPLOAD_ACK2", t[t.ACTION_FILE_UPLOAD_END2 = 1048649] = "ACTION_FILE_UPLOAD_END2", t[t.ACTION_FILE_UPLOAD_COMPLETE2 = 1048650] = "ACTION_FILE_UPLOAD_COMPLETE2", t[t.ACTION_FUNCTION_ENUMERATION_ITEM_BATCH = 1048651] = "ACTION_FUNCTION_ENUMERATION_ITEM_BATCH", t[t.ACTION_CALL_ACK = 1048652] = "ACTION_CALL_ACK", t[t.ACTION_TRIGGER_CRON = 1048653] = "ACTION_TRIGGER_CRON", t[t.GROUP_UI = 2097152] = "GROUP_UI", t[t.UI_STREAM_BEGIN = 2097153] = "UI_STREAM_BEGIN", t[t.UI_STREAM_END = 2097154] = "UI_STREAM_END", t[t.UI_CONTAINER_BEGIN = 2097155] = "UI_CONTAINER_BEGIN", t[t.UI_CONTAINER_END = 2097156] = "UI_CONTAINER_END", t[t.UI_SECTION_BEGIN = 2097157] = "UI_SECTION_BEGIN", t[t.UI_SECTION_END = 2097158] = "UI_SECTION_END", t[t.UI_LIST_BEGIN = 2097159] = "UI_LIST_BEGIN", t[t.UI_LIST_ITEM = 2097160] = "UI_LIST_ITEM", t[t.UI_LIST_END = 2097161] = "UI_LIST_END", t[t.UI_TEXT = 2097162] = "UI_TEXT", t[t.UI_HEADER = 2097163] = "UI_HEADER", t[t.UI_SEPARATOR = 2097164] = "UI_SEPARATOR", t[t.UI_BUTTON = 2097165] = "UI_BUTTON", t[t.UI_ICON_BUTTON = 2097166] = "UI_ICON_BUTTON", t[t.UI_IMAGE = 2097167] = "UI_IMAGE", t[t.UI_FILE = 2097168] = "UI_FILE", t[t.UI_BADGE = 2097169] = "UI_BADGE", t[t.UI_CONTENT_LINK = 2097170] = "UI_CONTENT_LINK", t[t.UI_MAP = 2097171] = "UI_MAP", t[t.UI_VEGA_CHART = 2097172] = "UI_VEGA_CHART", t[t.UI_ICON = 2097173] = "UI_ICON", t[t.UI_FILE_UPLOAD_SECTION_BEGIN = 2097174] = "UI_FILE_UPLOAD_SECTION_BEGIN", t[t.UI_FILE_UPLOAD_SECTION_END = 2097175] = "UI_FILE_UPLOAD_SECTION_END", t[t.UI_MATERIAL_SYMBOL = 2097176] = "UI_MATERIAL_SYMBOL", t[t.UI_BUTTON_BEGIN = 2097177] = "UI_BUTTON_BEGIN", t[t.UI_BUTTON_END = 2097178] = "UI_BUTTON_END", t[t.UI_CONTAINER_DELETE = 2097179] = "UI_CONTAINER_DELETE", t[t.UI_INPUT_TEXT = 2097180] = "UI_INPUT_TEXT", t[t.UI_PROGRESS_BAR = 2097181] = "UI_PROGRESS_BAR", t[t.UI_UPDATE_BEGIN = 2097182] = "UI_UPDATE_BEGIN", t[t.UI_UPDATE_END = 2097183] = "UI_UPDATE_END", t[t.UI_AUTOCOMPLETE = 2097184] = "UI_AUTOCOMPLETE", t[t.UI_CHECKBOX = 2097185] = "UI_CHECKBOX", t[t.UI_QS = 2097186] = "UI_QS", t[t.UI_ELEMENT = 2097187] = "UI_ELEMENT", t[t.UI_STYLES = 2097188] = "UI_STYLES", t[t.UI_SVG = 2097189] = "UI_SVG", t[t.UI_UPDATE = 2097190] = "UI_UPDATE", t[t.UI_INIT = 2097191] = "UI_INIT", t[t.UI_STYLES_BATCH = 2097192] = "UI_STYLES_BATCH", t[t.UI_STYLES_DELETE = 2097193] = "UI_STYLES_DELETE", t[t.GROUP_COMMON = 4128768] = "GROUP_COMMON", t[t.GROUP_AUDIO = 4194304] = "GROUP_AUDIO", t[t.AUDIO_STREAM_BEGIN = 4194305] = "AUDIO_STREAM_BEGIN", t[t.AUDIO_STREAM_END = 4194306] = "AUDIO_STREAM_END", t[t.AUDIO_FRAME = 4194307] = "AUDIO_FRAME", t[t.AUDIO_FRAME_VOLUME = 4194308] = "AUDIO_FRAME_VOLUME", t[t.AUDIO_FRAME2 = 4194309] = "AUDIO_FRAME2", t[t.AUDIO_SHAPE_FRAME = 4194310] = "AUDIO_SHAPE_FRAME", t[t.GROUP_VIDEO = 8388608] = "GROUP_VIDEO", t[t.VIDEO_STREAM_BEGIN = 8388609] = "VIDEO_STREAM_BEGIN", t[t.VIDEO_STREAM_END = 8388610] = "VIDEO_STREAM_END", t[t.VIDEO_FRAME = 8388611] = "VIDEO_FRAME", t[t.VIDEO_REQUEST_IDR_FRAME = 8388612] = "VIDEO_REQUEST_IDR_FRAME", t[t.VIDEO_INVALIDATE_FRAME = 8388613] = "VIDEO_INVALIDATE_FRAME", t[t.GROUP_TRACKING = 16777216] = "GROUP_TRACKING", t[t.TRACKING_STREAM_BEGIN = 16777217] = "TRACKING_STREAM_BEGIN", t[t.TRACKING_STREAM_END = 16777218] = "TRACKING_STREAM_END", t[t.TRACKING_FRAME = 16777219] = "TRACKING_FRAME", t[t.GROUP_SCENE = 33554432] = "GROUP_SCENE", t[t.SCENE_MESH = 33554433] = "SCENE_MESH", t[t.SCENE_ARRAY = 33554434] = "SCENE_ARRAY", t[t.GROUP_ALL = 67043328] = "GROUP_ALL", t[t.GROUP_APP_LOCAL = 1073741824] = "GROUP_APP_LOCAL", t[t.CONSTANT_GROUP_MASK = 2147418112] = "CONSTANT_GROUP_MASK", t))(m || {});
|
|
542
|
-
const Ie = 161083277, le = 265814330, ce = 1368629611, fe = 2431514951, ue = 2514959030, Te = 2745379226,
|
|
541
|
+
var _t = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.Opus = 1] = "Opus", t[t.Mp3 = 2] = "Mp3", t[t.RawPcm16 = 3] = "RawPcm16", t))(_t || {}), It = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.MobileWeb = 1] = "MobileWeb", t[t.MobileApp = 2] = "MobileApp", t[t.DesktopWeb = 3] = "DesktopWeb", t[t.DesktopApp = 4] = "DesktopApp", t))(It || {}), lt = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.Backend = 2] = "Backend", t[t.Server = 4] = "Server", t[t.Plugin = 8] = "Plugin", t[t.Browser = 16] = "Browser", t[t.Native = 32] = "Native", t))(lt || {}), ct = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.MessagePack = 1] = "MessagePack", t[t.MemoryPack = 2] = "MemoryPack", t[t.Json = 4] = "Json", t[t.Teleport = 8] = "Teleport", t[t.All = 15] = "All", t))(ct || {}), ft = /* @__PURE__ */ ((t) => (t[t.Face = 0] = "Face", t[t.Hands = 1] = "Hands", t[t.Pose = 2] = "Pose", t[t.All = 3] = "All", t))(ft || {}), ut = /* @__PURE__ */ ((t) => (t[t.Css = 0] = "Css", t[t.Flutter = 1] = "Flutter", t))(ut || {}), Tt = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.Machine = 1] = "Machine", t[t.Human = 2] = "Human", t))(Tt || {}), ht = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.H264 = 1] = "H264", t[t.Vp8 = 2] = "Vp8", t[t.Vp9 = 3] = "Vp9", t[t.Av1 = 4] = "Av1", t))(ht || {}), At = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.DotNet = 1] = "DotNet", t[t.TypeScript = 2] = "TypeScript", t[t.Cpp = 3] = "Cpp", t[t.Dart = 4] = "Dart", t[t.Rust = 5] = "Rust", t))(At || {}), Nt = /* @__PURE__ */ ((t) => (t[t.Local = 0] = "Local", t[t.Cloud = 1] = "Cloud", t))(Nt || {}), St = /* @__PURE__ */ ((t) => (t[t.Bundle = 0] = "Bundle", t[t.GitSource = 1] = "GitSource", t))(St || {}), m = /* @__PURE__ */ ((t) => (t[t.NONE = 0] = "NONE", t[t.CONSTANT_GROUP_BITS = 15] = "CONSTANT_GROUP_BITS", t[t.CONSTANT_GROUP_OFFSET = 16] = "CONSTANT_GROUP_OFFSET", t[t.GROUP_CORE = 65536] = "GROUP_CORE", t[t.CORE_AUTH_RESPONSE = 65537] = "CORE_AUTH_RESPONSE", t[t.CORE_AUTH_TICKET = 65538] = "CORE_AUTH_TICKET", t[t.CORE_GLOBAL_STATE = 65539] = "CORE_GLOBAL_STATE", t[t.CORE_ON_SERVER_STATUS_PING = 65540] = "CORE_ON_SERVER_STATUS_PING", t[t.CORE_ON_USER_JOINED = 65541] = "CORE_ON_USER_JOINED", t[t.CORE_ON_USER_LEFT = 65542] = "CORE_ON_USER_LEFT", t[t.CORE_ON_CLIENT_JOINED = 65543] = "CORE_ON_CLIENT_JOINED", t[t.CORE_ON_CLIENT_LEFT = 65544] = "CORE_ON_CLIENT_LEFT", t[t.CORE_ON_SERVER_STARTED = 65545] = "CORE_ON_SERVER_STARTED", t[t.CORE_ON_SERVER_STOPPED = 65546] = "CORE_ON_SERVER_STOPPED", t[t.CORE_ON_SERVER_STOPPING = 65547] = "CORE_ON_SERVER_STOPPING", t[t.CORE_ON_CLIENT_READY = 65548] = "CORE_ON_CLIENT_READY", t[t.CORE_CLIENT_READY = 65549] = "CORE_CLIENT_READY", t[t.CORE_SERVER_INIT = 65550] = "CORE_SERVER_INIT", t[t.CORE_ON_PLUGIN_RELOADED = 65551] = "CORE_ON_PLUGIN_RELOADED", t[t.CORE_SERVER_START = 65552] = "CORE_SERVER_START", t[t.CORE_SERVER_STOP = 65553] = "CORE_SERVER_STOP", t[t.CORE_ON_HOSTED_SERVER_EXIT = 65554] = "CORE_ON_HOSTED_SERVER_EXIT", t[t.CORE_DYNAMIC_CONFIG = 65555] = "CORE_DYNAMIC_CONFIG", t[t.CORE_PROXY_RPC_AUTH_TICKET = 65556] = "CORE_PROXY_RPC_AUTH_TICKET", t[t.CORE_SERVER_INIT2 = 65557] = "CORE_SERVER_INIT2", t[t.CORE_UPDATE_CLIENT_CONTEXT = 65558] = "CORE_UPDATE_CLIENT_CONTEXT", t[t.CORE_BACKGROUND_WORK_ACTIVE = 65559] = "CORE_BACKGROUND_WORK_ACTIVE", t[t.CORE_RESET_IDLE = 65560] = "CORE_RESET_IDLE", t[t.CORE_CLIENT_DISCONNECTING = 65561] = "CORE_CLIENT_DISCONNECTING", t[t.CORE_ON_APP_READY = 65562] = "CORE_ON_APP_READY", t[t.CORE_ON_FRONTEND_RELOADED = 65563] = "CORE_ON_FRONTEND_RELOADED", t[t.CORE_WEBRTC_OFFER = 65566] = "CORE_WEBRTC_OFFER", t[t.CORE_WEBRTC_ANSWER = 65567] = "CORE_WEBRTC_ANSWER", t[t.CORE_WEBRTC_ICE_CANDIDATE = 65568] = "CORE_WEBRTC_ICE_CANDIDATE", t[t.CORE_WEBRTC_READY = 65569] = "CORE_WEBRTC_READY", t[t.CORE_WEBRTC_AUDIO_SEGMENT = 65570] = "CORE_WEBRTC_AUDIO_SEGMENT", t[t.CORE_WEBRTC_TRACK_MAP = 65571] = "CORE_WEBRTC_TRACK_MAP", t[t.CORE_WEBRTC_VIDEO_CAPTURE = 65572] = "CORE_WEBRTC_VIDEO_CAPTURE", t[t.CORE_RELAY_AGENT_AUTH = 65576] = "CORE_RELAY_AGENT_AUTH", t[t.CORE_RELAY_AGENT_AUTH_RESULT = 65577] = "CORE_RELAY_AGENT_AUTH_RESULT", t[t.CORE_RELAY_HEARTBEAT = 65578] = "CORE_RELAY_HEARTBEAT", t[t.CORE_RELAY_TCP_CONNECTION_OPENED = 65579] = "CORE_RELAY_TCP_CONNECTION_OPENED", t[t.CORE_RELAY_TCP_CONNECTION_CLOSED = 65580] = "CORE_RELAY_TCP_CONNECTION_CLOSED", t[t.CORE_RELAY_TCP_DATA = 65581] = "CORE_RELAY_TCP_DATA", t[t.CORE_RELAY_UDP_DATA = 65582] = "CORE_RELAY_UDP_DATA", t[t.CORE_RELAY_ADD_TUNNEL = 65583] = "CORE_RELAY_ADD_TUNNEL", t[t.CORE_RELAY_TUNNEL_ADDED = 65584] = "CORE_RELAY_TUNNEL_ADDED", t[t.CORE_RELAY_REMOVE_TUNNEL = 65585] = "CORE_RELAY_REMOVE_TUNNEL", t[t.CORE_IKON_SERVER_ENDPOINT_HOST_INFO = 65586] = "CORE_IKON_SERVER_ENDPOINT_HOST_INFO", t[t.CORE_CLIENT_INITIALIZATION = 65587] = "CORE_CLIENT_INITIALIZATION", t[t.CORE_CLIENT_LIFECYCLE_BATCH = 65588] = "CORE_CLIENT_LIFECYCLE_BATCH", t[t.CORE_APP_CONFIG = 65589] = "CORE_APP_CONFIG", t[t.GROUP_KEEPALIVE = 131072] = "GROUP_KEEPALIVE", t[t.KEEPALIVE_REQUEST = 131073] = "KEEPALIVE_REQUEST", t[t.KEEPALIVE_RESPONSE = 131074] = "KEEPALIVE_RESPONSE", t[t.GROUP_EVENTS = 262144] = "GROUP_EVENTS", t[t.EVENTS_PROFILE_UPDATE = 262145] = "EVENTS_PROFILE_UPDATE", t[t.EVENTS_CHANNEL_COMPLETE = 262146] = "EVENTS_CHANNEL_COMPLETE", t[t.EVENTS_SPEECH_PLAYBACK_COMPLETE = 262147] = "EVENTS_SPEECH_PLAYBACK_COMPLETE", t[t.GROUP_ANALYTICS = 524288] = "GROUP_ANALYTICS", t[t.ANALYTICS_LOGS = 524289] = "ANALYTICS_LOGS", t[t.ANALYTICS_EVENTS = 524290] = "ANALYTICS_EVENTS", t[t.ANALYTICS_USAGES = 524291] = "ANALYTICS_USAGES", t[t.ANALYTICS_USAGE = 524292] = "ANALYTICS_USAGE", t[t.ANALYTICS_SPECIAL_LOG = 524293] = "ANALYTICS_SPECIAL_LOG", t[t.ANALYTICS_PROCESSING_UPDATE = 524294] = "ANALYTICS_PROCESSING_UPDATE", t[t.ANALYTICS_REACTIVE_PROCESSING_UPDATE = 524295] = "ANALYTICS_REACTIVE_PROCESSING_UPDATE", t[t.ANALYTICS_IKON_PROXY_SERVER_STATS = 524296] = "ANALYTICS_IKON_PROXY_SERVER_STATS", t[t.ANALYTICS_IKON_RELAY_SERVER_STATS = 524297] = "ANALYTICS_IKON_RELAY_SERVER_STATS", t[t.ANALYTICS_IKON_TURN_SERVER_STATS = 524298] = "ANALYTICS_IKON_TURN_SERVER_STATS", t[t.GROUP_ACTIONS = 1048576] = "GROUP_ACTIONS", t[t.ACTION_CALL = 1048577] = "ACTION_CALL", t[t.ACTION_ACTIVE = 1048578] = "ACTION_ACTIVE", t[t.ACTION_TEXT_OUTPUT = 1048579] = "ACTION_TEXT_OUTPUT", t[t.ACTION_TEXT_OUTPUT_DELTA = 1048580] = "ACTION_TEXT_OUTPUT_DELTA", t[t.ACTION_TEXT_OUTPUT_DELTA_FULL = 1048581] = "ACTION_TEXT_OUTPUT_DELTA_FULL", t[t.ACTION_SET_STATE = 1048582] = "ACTION_SET_STATE", t[t.ACTION_TAP = 1048583] = "ACTION_TAP", t[t.ACTION_PAN = 1048584] = "ACTION_PAN", t[t.ACTION_ZOOM = 1048585] = "ACTION_ZOOM", t[t.ACTION_FILE_UPLOAD_BEGIN = 1048586] = "ACTION_FILE_UPLOAD_BEGIN", t[t.ACTION_FILE_UPLOAD_DATA = 1048587] = "ACTION_FILE_UPLOAD_DATA", t[t.ACTION_FILE_UPLOAD_ACK = 1048588] = "ACTION_FILE_UPLOAD_ACK", t[t.ACTION_FILE_UPLOAD_END = 1048589] = "ACTION_FILE_UPLOAD_END", t[t.ACTION_FILE_UPLOAD_RESULT = 1048590] = "ACTION_FILE_UPLOAD_RESULT", t[t.ACTION_OPEN_CHANNEL = 1048591] = "ACTION_OPEN_CHANNEL", t[t.ACTION_OPEN_EXTERNAL_URL = 1048592] = "ACTION_OPEN_EXTERNAL_URL", t[t.ACTION_UI_OPEN_VIEW = 1048593] = "ACTION_UI_OPEN_VIEW", t[t.ACTION_UI_CLOSE_VIEW = 1048594] = "ACTION_UI_CLOSE_VIEW", t[t.ACTION_UI_BLOCKING_BEGIN = 1048595] = "ACTION_UI_BLOCKING_BEGIN", t[t.ACTION_UI_BLOCKING_END = 1048596] = "ACTION_UI_BLOCKING_END", t[t.ACTION_UI_UPDATE_TEXT_DELTA = 1048597] = "ACTION_UI_UPDATE_TEXT_DELTA", t[t.ACTION_UI_DELETE_CONTAINER = 1048598] = "ACTION_UI_DELETE_CONTAINER", t[t.ACTION_UPDATE_GFX_SHADER = 1048599] = "ACTION_UPDATE_GFX_SHADER", t[t.ACTION_FUNCTION_REGISTER = 1048600] = "ACTION_FUNCTION_REGISTER", t[t.ACTION_FUNCTION_CALL = 1048601] = "ACTION_FUNCTION_CALL", t[t.ACTION_FUNCTION_RESULT = 1048602] = "ACTION_FUNCTION_RESULT", t[t.ACTION_GENERATE_ANSWER = 1048603] = "ACTION_GENERATE_ANSWER", t[t.ACTION_REGENERATE_ANSWER = 1048604] = "ACTION_REGENERATE_ANSWER", t[t.ACTION_CLEAR_CHAT_MESSAGE_HISTORY = 1048605] = "ACTION_CLEAR_CHAT_MESSAGE_HISTORY", t[t.ACTION_CLEAR_STATE = 1048606] = "ACTION_CLEAR_STATE", t[t.ACTION_RELOAD_CHANNELS = 1048607] = "ACTION_RELOAD_CHANNELS", t[t.ACTION_RELOAD_PROFILE = 1048608] = "ACTION_RELOAD_PROFILE", t[t.ACTION_CLASSIFICATION_RESULT = 1048609] = "ACTION_CLASSIFICATION_RESULT", t[t.ACTION_AUDIO_STOP = 1048610] = "ACTION_AUDIO_STOP", t[t.ACTION_CALL_TEXT = 1048611] = "ACTION_CALL_TEXT", t[t.ACTION_RELOAD_APPLICATION = 1048612] = "ACTION_RELOAD_APPLICATION", t[t.ACTION_CANCEL_GENERATION = 1048613] = "ACTION_CANCEL_GENERATION", t[t.ACTION_UI_SET_CONTAINER_STABLE = 1048614] = "ACTION_UI_SET_CONTAINER_STABLE", t[t.ACTION_SPEECH_RECOGNIZED = 1048615] = "ACTION_SPEECH_RECOGNIZED", t[t.ACTION_CALL_RESULT = 1048616] = "ACTION_CALL_RESULT", t[t.ACTION_RELOAD_PROVIDER = 1048617] = "ACTION_RELOAD_PROVIDER", t[t.ACTION_DOWNLOAD = 1048618] = "ACTION_DOWNLOAD", t[t.ACTION_SCROLL_TO_CONTAINER = 1048619] = "ACTION_SCROLL_TO_CONTAINER", t[t.ACTION_UI_CLEAR_STREAM = 1048620] = "ACTION_UI_CLEAR_STREAM", t[t.ACTION_PLAY_SOUND = 1048621] = "ACTION_PLAY_SOUND", t[t.ACTION_ENTER_FULLSCREEN = 1048622] = "ACTION_ENTER_FULLSCREEN", t[t.ACTION_STOP_SOUND = 1048623] = "ACTION_STOP_SOUND", t[t.ACTION_START_RECORDING = 1048624] = "ACTION_START_RECORDING", t[t.ACTION_STOP_RECORDING = 1048625] = "ACTION_STOP_RECORDING", t[t.ACTION_FUNCTION_ENUMERATION_ITEM = 1048627] = "ACTION_FUNCTION_ENUMERATION_ITEM", t[t.ACTION_FUNCTION_ENUMERATION_END = 1048628] = "ACTION_FUNCTION_ENUMERATION_END", t[t.ACTION_FUNCTION_CANCEL = 1048629] = "ACTION_FUNCTION_CANCEL", t[t.ACTION_FUNCTION_DISPOSE = 1048630] = "ACTION_FUNCTION_DISPOSE", t[t.ACTION_FUNCTION_ERROR = 1048631] = "ACTION_FUNCTION_ERROR", t[t.ACTION_FUNCTION_ACK = 1048632] = "ACTION_FUNCTION_ACK", t[t.ACTION_FUNCTION_AWAITING_APPROVAL = 1048633] = "ACTION_FUNCTION_AWAITING_APPROVAL", t[t.ACTION_FUNCTION_APPROVAL_REQUIRED = 1048634] = "ACTION_FUNCTION_APPROVAL_REQUIRED", t[t.ACTION_FUNCTION_APPROVAL_RESPONSE = 1048635] = "ACTION_FUNCTION_APPROVAL_RESPONSE", t[t.UI_UPDATE_ACK = 1048636] = "UI_UPDATE_ACK", t[t.ACTION_CALL2 = 1048637] = "ACTION_CALL2", t[t.ACTION_FUNCTION_REGISTER_BATCH = 1048638] = "ACTION_FUNCTION_REGISTER_BATCH", t[t.ACTION_TRIGGER_GIT_PULL = 1048639] = "ACTION_TRIGGER_GIT_PULL", t[t.ACTION_FILE_UPLOAD_CALLBACK = 1048640] = "ACTION_FILE_UPLOAD_CALLBACK", t[t.ACTION_CUSTOM_USER_MESSAGE = 1048641] = "ACTION_CUSTOM_USER_MESSAGE", t[t.ACTION_URL_CHANGED = 1048642] = "ACTION_URL_CHANGED", t[t.ACTION_FILE_UPLOAD_PRE_START2 = 1048643] = "ACTION_FILE_UPLOAD_PRE_START2", t[t.ACTION_FILE_UPLOAD_PRE_START_RESPONSE2 = 1048644] = "ACTION_FILE_UPLOAD_PRE_START_RESPONSE2", t[t.ACTION_FILE_UPLOAD_START2 = 1048645] = "ACTION_FILE_UPLOAD_START2", t[t.ACTION_FILE_UPLOAD_START_RESPONSE2 = 1048646] = "ACTION_FILE_UPLOAD_START_RESPONSE2", t[t.ACTION_FILE_UPLOAD_DATA2 = 1048647] = "ACTION_FILE_UPLOAD_DATA2", t[t.ACTION_FILE_UPLOAD_ACK2 = 1048648] = "ACTION_FILE_UPLOAD_ACK2", t[t.ACTION_FILE_UPLOAD_END2 = 1048649] = "ACTION_FILE_UPLOAD_END2", t[t.ACTION_FILE_UPLOAD_COMPLETE2 = 1048650] = "ACTION_FILE_UPLOAD_COMPLETE2", t[t.ACTION_FUNCTION_ENUMERATION_ITEM_BATCH = 1048651] = "ACTION_FUNCTION_ENUMERATION_ITEM_BATCH", t[t.ACTION_CALL_ACK = 1048652] = "ACTION_CALL_ACK", t[t.ACTION_TRIGGER_CRON = 1048653] = "ACTION_TRIGGER_CRON", t[t.GROUP_UI = 2097152] = "GROUP_UI", t[t.UI_STREAM_BEGIN = 2097153] = "UI_STREAM_BEGIN", t[t.UI_STREAM_END = 2097154] = "UI_STREAM_END", t[t.UI_CONTAINER_BEGIN = 2097155] = "UI_CONTAINER_BEGIN", t[t.UI_CONTAINER_END = 2097156] = "UI_CONTAINER_END", t[t.UI_SECTION_BEGIN = 2097157] = "UI_SECTION_BEGIN", t[t.UI_SECTION_END = 2097158] = "UI_SECTION_END", t[t.UI_LIST_BEGIN = 2097159] = "UI_LIST_BEGIN", t[t.UI_LIST_ITEM = 2097160] = "UI_LIST_ITEM", t[t.UI_LIST_END = 2097161] = "UI_LIST_END", t[t.UI_TEXT = 2097162] = "UI_TEXT", t[t.UI_HEADER = 2097163] = "UI_HEADER", t[t.UI_SEPARATOR = 2097164] = "UI_SEPARATOR", t[t.UI_BUTTON = 2097165] = "UI_BUTTON", t[t.UI_ICON_BUTTON = 2097166] = "UI_ICON_BUTTON", t[t.UI_IMAGE = 2097167] = "UI_IMAGE", t[t.UI_FILE = 2097168] = "UI_FILE", t[t.UI_BADGE = 2097169] = "UI_BADGE", t[t.UI_CONTENT_LINK = 2097170] = "UI_CONTENT_LINK", t[t.UI_MAP = 2097171] = "UI_MAP", t[t.UI_VEGA_CHART = 2097172] = "UI_VEGA_CHART", t[t.UI_ICON = 2097173] = "UI_ICON", t[t.UI_FILE_UPLOAD_SECTION_BEGIN = 2097174] = "UI_FILE_UPLOAD_SECTION_BEGIN", t[t.UI_FILE_UPLOAD_SECTION_END = 2097175] = "UI_FILE_UPLOAD_SECTION_END", t[t.UI_MATERIAL_SYMBOL = 2097176] = "UI_MATERIAL_SYMBOL", t[t.UI_BUTTON_BEGIN = 2097177] = "UI_BUTTON_BEGIN", t[t.UI_BUTTON_END = 2097178] = "UI_BUTTON_END", t[t.UI_CONTAINER_DELETE = 2097179] = "UI_CONTAINER_DELETE", t[t.UI_INPUT_TEXT = 2097180] = "UI_INPUT_TEXT", t[t.UI_PROGRESS_BAR = 2097181] = "UI_PROGRESS_BAR", t[t.UI_UPDATE_BEGIN = 2097182] = "UI_UPDATE_BEGIN", t[t.UI_UPDATE_END = 2097183] = "UI_UPDATE_END", t[t.UI_AUTOCOMPLETE = 2097184] = "UI_AUTOCOMPLETE", t[t.UI_CHECKBOX = 2097185] = "UI_CHECKBOX", t[t.UI_QS = 2097186] = "UI_QS", t[t.UI_ELEMENT = 2097187] = "UI_ELEMENT", t[t.UI_STYLES = 2097188] = "UI_STYLES", t[t.UI_SVG = 2097189] = "UI_SVG", t[t.UI_UPDATE = 2097190] = "UI_UPDATE", t[t.UI_INIT = 2097191] = "UI_INIT", t[t.UI_STYLES_BATCH = 2097192] = "UI_STYLES_BATCH", t[t.UI_STYLES_DELETE = 2097193] = "UI_STYLES_DELETE", t[t.GROUP_COMMON = 4128768] = "GROUP_COMMON", t[t.GROUP_AUDIO = 4194304] = "GROUP_AUDIO", t[t.AUDIO_STREAM_BEGIN = 4194305] = "AUDIO_STREAM_BEGIN", t[t.AUDIO_STREAM_END = 4194306] = "AUDIO_STREAM_END", t[t.AUDIO_FRAME = 4194307] = "AUDIO_FRAME", t[t.AUDIO_FRAME_VOLUME = 4194308] = "AUDIO_FRAME_VOLUME", t[t.AUDIO_FRAME2 = 4194309] = "AUDIO_FRAME2", t[t.AUDIO_SHAPE_FRAME = 4194310] = "AUDIO_SHAPE_FRAME", t[t.GROUP_VIDEO = 8388608] = "GROUP_VIDEO", t[t.VIDEO_STREAM_BEGIN = 8388609] = "VIDEO_STREAM_BEGIN", t[t.VIDEO_STREAM_END = 8388610] = "VIDEO_STREAM_END", t[t.VIDEO_FRAME = 8388611] = "VIDEO_FRAME", t[t.VIDEO_REQUEST_IDR_FRAME = 8388612] = "VIDEO_REQUEST_IDR_FRAME", t[t.VIDEO_INVALIDATE_FRAME = 8388613] = "VIDEO_INVALIDATE_FRAME", t[t.GROUP_TRACKING = 16777216] = "GROUP_TRACKING", t[t.TRACKING_STREAM_BEGIN = 16777217] = "TRACKING_STREAM_BEGIN", t[t.TRACKING_STREAM_END = 16777218] = "TRACKING_STREAM_END", t[t.TRACKING_FRAME = 16777219] = "TRACKING_FRAME", t[t.GROUP_SCENE = 33554432] = "GROUP_SCENE", t[t.SCENE_MESH = 33554433] = "SCENE_MESH", t[t.SCENE_ARRAY = 33554434] = "SCENE_ARRAY", t[t.GROUP_ALL = 67043328] = "GROUP_ALL", t[t.GROUP_APP_LOCAL = 1073741824] = "GROUP_APP_LOCAL", t[t.CONSTANT_GROUP_MASK = 2147418112] = "CONSTANT_GROUP_MASK", t))(m || {});
|
|
542
|
+
const Ie = 161083277, le = 265814330, ce = 1368629611, fe = 2431514951, ue = 2514959030, Te = 2745379226, he = 3282782683, Ae = 3284746250, Ne = 4101844078;
|
|
543
543
|
function Ct(t) {
|
|
544
544
|
const r = {};
|
|
545
545
|
return Dt(r), r;
|
|
@@ -591,17 +591,17 @@ function Ce(t, r) {
|
|
|
591
591
|
r.CodecDetails = e.asString();
|
|
592
592
|
break;
|
|
593
593
|
}
|
|
594
|
-
case
|
|
594
|
+
case he: {
|
|
595
595
|
if (e.isNull) throw new Error();
|
|
596
596
|
r.SourceType = e.asString();
|
|
597
597
|
break;
|
|
598
598
|
}
|
|
599
|
-
case
|
|
599
|
+
case Ae: {
|
|
600
600
|
if (e.isNull) throw new Error();
|
|
601
601
|
r.Codec = e.asInt32();
|
|
602
602
|
break;
|
|
603
603
|
}
|
|
604
|
-
case
|
|
604
|
+
case Ne: {
|
|
605
605
|
if (e.isNull) throw new Error();
|
|
606
606
|
r.SampleRate = e.asInt32();
|
|
607
607
|
break;
|
|
@@ -661,7 +661,7 @@ function Ir(t) {
|
|
|
661
661
|
return dt(r), r;
|
|
662
662
|
}
|
|
663
663
|
function dt(t) {
|
|
664
|
-
return t.ContextType = lt.Unknown, t.UserType = Tt.Unknown, t.PayloadType = ct.Unknown, t.Description = "", t.UserId = "", t.DeviceId = "", t.ProductId = "", t.VersionId = "", t.InstallId = "", t.Locale = "", t.SessionId = -1, t.IsInternal = !1, t.IsReady = !1, t.HasInput = !1, t.ChannelLocale = "", t.EmbeddedSpaceId = "", t.AuthSessionId = "", t.ReceiveAllMessages = !1, t.PreciseJoinedAt = 0n, t.UserAgent = "", t.ClientType = It.Unknown, t.UniqueSessionId = "", t.Parameters = /* @__PURE__ */ Object.create(null), t.SdkType =
|
|
664
|
+
return t.ContextType = lt.Unknown, t.UserType = Tt.Unknown, t.PayloadType = ct.Unknown, t.Description = "", t.UserId = "", t.DeviceId = "", t.ProductId = "", t.VersionId = "", t.InstallId = "", t.Locale = "", t.SessionId = -1, t.IsInternal = !1, t.IsReady = !1, t.HasInput = !1, t.ChannelLocale = "", t.EmbeddedSpaceId = "", t.AuthSessionId = "", t.ReceiveAllMessages = !1, t.PreciseJoinedAt = 0n, t.UserAgent = "", t.ClientType = It.Unknown, t.UniqueSessionId = "", t.Parameters = /* @__PURE__ */ Object.create(null), t.SdkType = At.Unknown, t.SdkCapability = 0, t.ViewportWidth = 0, t.ViewportHeight = 0, t.Theme = "", t.Timezone = "", t.IsTouchDevice = !1, t.InitialPath = "", t.StyleFormat = ut.Css, t.SupportsCompression = !0, t.IsSoftDisconnected = !1, t.SoftDisconnectAt = 0n, t;
|
|
665
665
|
}
|
|
666
666
|
function lr(t, r) {
|
|
667
667
|
const e = r ?? Ir();
|
|
@@ -857,7 +857,7 @@ function fr(t) {
|
|
|
857
857
|
}
|
|
858
858
|
return r;
|
|
859
859
|
}
|
|
860
|
-
const ur = 703025676, Tr = 814454131,
|
|
860
|
+
const ur = 703025676, Tr = 814454131, hr = 972460562, Ar = 976255570, Nr = 1368629611, Sr = 1479280922, Cr = 1533537016, Dr = 1909301063, Rr = 2274386296, dr = 2603556958, wr = 2885165957, Lr = 3568439632;
|
|
861
861
|
function yr(t) {
|
|
862
862
|
const r = {};
|
|
863
863
|
return wt(r), r;
|
|
@@ -883,17 +883,17 @@ function Or(t, r) {
|
|
|
883
883
|
r.FunctionName = e.asString();
|
|
884
884
|
break;
|
|
885
885
|
}
|
|
886
|
-
case
|
|
886
|
+
case hr: {
|
|
887
887
|
if (e.isNull) throw new Error();
|
|
888
888
|
r.EnumerableItemTypeName = e.asString();
|
|
889
889
|
break;
|
|
890
890
|
}
|
|
891
|
-
case
|
|
891
|
+
case Ar: {
|
|
892
892
|
if (e.isNull) throw new Error();
|
|
893
893
|
r.FunctionId = e.asGuid();
|
|
894
894
|
break;
|
|
895
895
|
}
|
|
896
|
-
case
|
|
896
|
+
case Nr: {
|
|
897
897
|
if (e.isNull) throw new Error();
|
|
898
898
|
r.Description = e.asString();
|
|
899
899
|
break;
|
|
@@ -1158,13 +1158,13 @@ function Ft(t) {
|
|
|
1158
1158
|
}
|
|
1159
1159
|
function Ts(t, r) {
|
|
1160
1160
|
const e = O.create(t);
|
|
1161
|
-
return
|
|
1161
|
+
return hs(e, r);
|
|
1162
1162
|
}
|
|
1163
|
-
function
|
|
1163
|
+
function hs(t, r) {
|
|
1164
1164
|
const e = r ?? us();
|
|
1165
|
-
return Ft(e),
|
|
1165
|
+
return Ft(e), As(t, e), e;
|
|
1166
1166
|
}
|
|
1167
|
-
function
|
|
1167
|
+
function As(t, r) {
|
|
1168
1168
|
let e;
|
|
1169
1169
|
for (; (e = t.next()) !== null; )
|
|
1170
1170
|
switch (e.fieldId) {
|
|
@@ -1175,7 +1175,7 @@ function Ns(t, r) {
|
|
|
1175
1175
|
}
|
|
1176
1176
|
}
|
|
1177
1177
|
}
|
|
1178
|
-
async function
|
|
1178
|
+
async function Ns(t, r) {
|
|
1179
1179
|
const e = await p(t, cs);
|
|
1180
1180
|
return Ts(e, r);
|
|
1181
1181
|
}
|
|
@@ -1312,7 +1312,7 @@ function kt(t) {
|
|
|
1312
1312
|
return Gt(r), r;
|
|
1313
1313
|
}
|
|
1314
1314
|
function Gt(t) {
|
|
1315
|
-
return t.StreamId = "", t.Description = "", t.SourceType = "", t.Codec =
|
|
1315
|
+
return t.StreamId = "", t.Description = "", t.SourceType = "", t.Codec = ht.H264, t.CodecDetails = "", t.Width = 0, t.Height = 0, t.Framerate = 30, t.CorrelationId = void 0, t;
|
|
1316
1316
|
}
|
|
1317
1317
|
function qs(t, r) {
|
|
1318
1318
|
const e = r ?? kt();
|
|
@@ -1372,13 +1372,13 @@ function Zs(t, r) {
|
|
|
1372
1372
|
}
|
|
1373
1373
|
}
|
|
1374
1374
|
}
|
|
1375
|
-
const tn = 65539, en = 693643444, rn = 976837618, sn = 1144553441, nn = 1497620243, on = 1559330978, an = 1976546434, En = 2271236852, _n = 2277643855, In = 2469008121, ln = 3042922213, cn = 3064612128, fn = 3219210453, un = 3504054055, Tn = 3678477544,
|
|
1375
|
+
const tn = 65539, en = 693643444, rn = 976837618, sn = 1144553441, nn = 1497620243, on = 1559330978, an = 1976546434, En = 2271236852, _n = 2277643855, In = 2469008121, ln = 3042922213, cn = 3064612128, fn = 3219210453, un = 3504054055, Tn = 3678477544, hn = 3696445035, An = 3707543140, Nn = 3712281496, Sn = 3895362455, Cn = 3897397815, Dn = 3914217035, Rn = 4225107827;
|
|
1376
1376
|
function dn(t) {
|
|
1377
1377
|
const r = {};
|
|
1378
1378
|
return Bt(r), r;
|
|
1379
1379
|
}
|
|
1380
1380
|
function Bt(t) {
|
|
1381
|
-
return t.Clients = /* @__PURE__ */ Object.create(null), t.Functions = /* @__PURE__ */ Object.create(null), t.UIStreams = /* @__PURE__ */ Object.create(null), t.AudioStreams = /* @__PURE__ */ Object.create(null), t.VideoStreams = /* @__PURE__ */ Object.create(null), t.TrackingStreams = /* @__PURE__ */ Object.create(null), t.SpaceId = "", t.ChannelId = "", t.ServerSessionId = "", t.SessionHash = "", t.ChannelUrl = "", t.SessionChannelUrl = "", t.FirstUserId = "", t.PrimaryUserId = "", t.OrganisationName = "", t.SpaceName = "", t.ChannelName = "", t.ServerRunType =
|
|
1381
|
+
return t.Clients = /* @__PURE__ */ Object.create(null), t.Functions = /* @__PURE__ */ Object.create(null), t.UIStreams = /* @__PURE__ */ Object.create(null), t.AudioStreams = /* @__PURE__ */ Object.create(null), t.VideoStreams = /* @__PURE__ */ Object.create(null), t.TrackingStreams = /* @__PURE__ */ Object.create(null), t.SpaceId = "", t.ChannelId = "", t.ServerSessionId = "", t.SessionHash = "", t.ChannelUrl = "", t.SessionChannelUrl = "", t.FirstUserId = "", t.PrimaryUserId = "", t.OrganisationName = "", t.SpaceName = "", t.ChannelName = "", t.ServerRunType = Nt.Local, t.AppSourceType = St.Bundle, t.PublicAccess = !1, t.DebugMode = !1, t;
|
|
1382
1382
|
}
|
|
1383
1383
|
function wn(t, r) {
|
|
1384
1384
|
const e = O.create(t);
|
|
@@ -1462,17 +1462,17 @@ function yn(t, r) {
|
|
|
1462
1462
|
r.Functions = Pn(e.asDictionary());
|
|
1463
1463
|
break;
|
|
1464
1464
|
}
|
|
1465
|
-
case
|
|
1465
|
+
case hn: {
|
|
1466
1466
|
if (e.isNull) throw new Error();
|
|
1467
1467
|
r.UIStreams = gn(e.asDictionary());
|
|
1468
1468
|
break;
|
|
1469
1469
|
}
|
|
1470
|
-
case
|
|
1470
|
+
case An: {
|
|
1471
1471
|
if (e.isNull) throw new Error();
|
|
1472
1472
|
r.SpaceId = e.asString();
|
|
1473
1473
|
break;
|
|
1474
1474
|
}
|
|
1475
|
-
case
|
|
1475
|
+
case Nn: {
|
|
1476
1476
|
if (e.isNull) throw new Error();
|
|
1477
1477
|
r.PrimaryUserId = e.asString();
|
|
1478
1478
|
break;
|
|
@@ -1890,7 +1890,7 @@ function Ti(t, r, e) {
|
|
|
1890
1890
|
const s = nt(t, "graph");
|
|
1891
1891
|
if (s.type !== "root")
|
|
1892
1892
|
throw new R('UI update root element must have type "root"');
|
|
1893
|
-
const n =
|
|
1893
|
+
const n = Ai(s.props, r);
|
|
1894
1894
|
return {
|
|
1895
1895
|
type: "full",
|
|
1896
1896
|
version: e,
|
|
@@ -1898,7 +1898,7 @@ function Ti(t, r, e) {
|
|
|
1898
1898
|
metadata: n
|
|
1899
1899
|
};
|
|
1900
1900
|
}
|
|
1901
|
-
function
|
|
1901
|
+
function hi(t, r, e) {
|
|
1902
1902
|
if (!Array.isArray(t))
|
|
1903
1903
|
throw new R("UI diff changes must be an array");
|
|
1904
1904
|
if (!D(r))
|
|
@@ -1919,7 +1919,7 @@ function Ai(t, r, e) {
|
|
|
1919
1919
|
metadata: o
|
|
1920
1920
|
};
|
|
1921
1921
|
}
|
|
1922
|
-
function
|
|
1922
|
+
function Ai(t, r) {
|
|
1923
1923
|
const e = t.viewId;
|
|
1924
1924
|
if (typeof e != "string" || e.length === 0)
|
|
1925
1925
|
throw new R("UI update root is missing viewId");
|
|
@@ -1934,7 +1934,7 @@ class R extends Error {
|
|
|
1934
1934
|
super(r), this.causeError = e, this.name = "UiUpdateParseError", e instanceof Error && (this.stack = e.stack);
|
|
1935
1935
|
}
|
|
1936
1936
|
}
|
|
1937
|
-
function
|
|
1937
|
+
function Ni(t) {
|
|
1938
1938
|
let r;
|
|
1939
1939
|
try {
|
|
1940
1940
|
r = JSON.parse(t.Json);
|
|
@@ -1948,7 +1948,7 @@ function hi(t) {
|
|
|
1948
1948
|
throw new R(`Unknown UI update type: ${String(e)}`);
|
|
1949
1949
|
if (typeof s != "number")
|
|
1950
1950
|
throw new R("UI update version must be a number");
|
|
1951
|
-
const n = e === "full" ? Ti(r.graph, r.metadata, s) :
|
|
1951
|
+
const n = e === "full" ? Ti(r.graph, r.metadata, s) : hi(r.changes, r.metadata, s), i = t.Payloads ? ui(t.Payloads) : /* @__PURE__ */ new Map();
|
|
1952
1952
|
return {
|
|
1953
1953
|
snapshot: n,
|
|
1954
1954
|
payloads: i
|
|
@@ -2152,6 +2152,13 @@ class yi {
|
|
|
2152
2152
|
this.payloads.get(E) !== l && (this.payloads.set(E, l), _ = !0, this.payloadsDirty = !0);
|
|
2153
2153
|
return _ ? (this.commitSnapshot(), this.notify(), !0) : (o.version = e.version, !1);
|
|
2154
2154
|
}
|
|
2155
|
+
// Ignore further diffs (keeping the current tree visible) until the next full snapshot arrives,
|
|
2156
|
+
// which then replaces the tree wholesale. Used on soft reconnect: the cached tree may be missing
|
|
2157
|
+
// diffs lost while the transport was down, so incoming diffs can no longer be trusted — but the
|
|
2158
|
+
// tree stays on screen (no blank) until the server's resync full snapshot lands.
|
|
2159
|
+
enterSnapshotMode() {
|
|
2160
|
+
this.snapshotMode = !0;
|
|
2161
|
+
}
|
|
2155
2162
|
replaceFromWire(r) {
|
|
2156
2163
|
const e = {
|
|
2157
2164
|
rootViewId: r.rootViewId,
|
|
@@ -2173,8 +2180,8 @@ class yi {
|
|
|
2173
2180
|
o().delete(E) && (s = !0, this.structureChanged = !0);
|
|
2174
2181
|
if (r.upsertViews && r.upsertViews.length > 0)
|
|
2175
2182
|
for (const [E, l] of r.upsertViews) {
|
|
2176
|
-
const c = o(),
|
|
2177
|
-
|
|
2183
|
+
const c = o(), L = c.get(E);
|
|
2184
|
+
L !== l && (c.set(E, l), s = !0, L ? J(L, l, this.changedNodeIds) : (B(l, this.changedNodeIds), this.structureChanged = !0));
|
|
2178
2185
|
}
|
|
2179
2186
|
if (r.deletePayloads && r.deletePayloads.length > 0)
|
|
2180
2187
|
for (const E of r.deletePayloads)
|
|
@@ -2321,6 +2328,12 @@ class Ui {
|
|
|
2321
2328
|
remove(r) {
|
|
2322
2329
|
this.streams.delete(r) && this.notify(r);
|
|
2323
2330
|
}
|
|
2331
|
+
// Puts every existing stream into snapshot mode (see UiStreamStore.enterSnapshotMode) so each one
|
|
2332
|
+
// keeps its current tree visible and ignores diffs until the server's next full snapshot resyncs it.
|
|
2333
|
+
enterSnapshotModeAll() {
|
|
2334
|
+
for (const r of this.streams.values())
|
|
2335
|
+
r.store.enterSnapshotMode();
|
|
2336
|
+
}
|
|
2324
2337
|
setCategory(r, e) {
|
|
2325
2338
|
const s = this.getOrCreateStreamEntry(r);
|
|
2326
2339
|
s.category !== e && (s.category = e, this.notify(r));
|
|
@@ -2376,15 +2389,15 @@ function $t(t, r, e) {
|
|
|
2376
2389
|
}
|
|
2377
2390
|
let o = !1, a = n.props;
|
|
2378
2391
|
if (s?.changedProps && s.changedProps.size > 0)
|
|
2379
|
-
for (const [f,
|
|
2392
|
+
for (const [f, A] of s.changedProps.entries()) {
|
|
2380
2393
|
const u = a[f];
|
|
2381
|
-
if (
|
|
2394
|
+
if (A === void 0)
|
|
2382
2395
|
(u !== void 0 || f in a) && (o || (a = G(a), o = !0), delete a[f]);
|
|
2383
|
-
else if (q(
|
|
2384
|
-
const
|
|
2385
|
-
M(
|
|
2396
|
+
else if (q(A)) {
|
|
2397
|
+
const h = G(A);
|
|
2398
|
+
M(h, u) || (o || (a = G(a), o = !0), a[f] = h);
|
|
2386
2399
|
} else
|
|
2387
|
-
M(
|
|
2400
|
+
M(A, u) || (o || (a = G(a), o = !0), a[f] = A);
|
|
2388
2401
|
}
|
|
2389
2402
|
let _ = !1, I = n.styleIds;
|
|
2390
2403
|
s?.styleIds !== void 0 && (Wt(n.styleIds, s.styleIds) || (I = s.styleIds, _ = !0));
|
|
@@ -2393,37 +2406,37 @@ function $t(t, r, e) {
|
|
|
2393
2406
|
if (s?.removals && s.removals.length > 0 || s?.moves && s.moves.length > 0 || s?.inserts && s.inserts.length > 0) {
|
|
2394
2407
|
const f = l.slice();
|
|
2395
2408
|
if (s?.removals && s.removals.length > 0) {
|
|
2396
|
-
const
|
|
2397
|
-
for (const u of
|
|
2409
|
+
const A = [...s.removals].sort((u, h) => h.index - u.index);
|
|
2410
|
+
for (const u of A)
|
|
2398
2411
|
if (u.index >= 0 && u.index < f.length && f[u.index].id === u.nodeId)
|
|
2399
2412
|
f.splice(u.index, 1);
|
|
2400
2413
|
else {
|
|
2401
|
-
const
|
|
2402
|
-
|
|
2414
|
+
const h = f.findIndex((C) => C.id === u.nodeId);
|
|
2415
|
+
h >= 0 && f.splice(h, 1);
|
|
2403
2416
|
}
|
|
2404
2417
|
c = !0;
|
|
2405
2418
|
}
|
|
2406
2419
|
if (s?.moves && s.moves.length > 0) {
|
|
2407
|
-
const
|
|
2408
|
-
for (const
|
|
2409
|
-
const C = f.findIndex((z) => z.id ===
|
|
2410
|
-
C >= 0 && (u.set(
|
|
2420
|
+
const A = [...s.moves].sort((h, C) => h.toIndex - C.toIndex), u = /* @__PURE__ */ new Map();
|
|
2421
|
+
for (const h of A) {
|
|
2422
|
+
const C = f.findIndex((z) => z.id === h.nodeId);
|
|
2423
|
+
C >= 0 && (u.set(h.nodeId, f[C]), f.splice(C, 1));
|
|
2411
2424
|
}
|
|
2412
|
-
for (const
|
|
2413
|
-
const C = u.get(
|
|
2425
|
+
for (const h of A) {
|
|
2426
|
+
const C = u.get(h.nodeId);
|
|
2414
2427
|
if (C) {
|
|
2415
|
-
const z = Math.min(
|
|
2428
|
+
const z = Math.min(h.toIndex, f.length);
|
|
2416
2429
|
f.splice(z, 0, C);
|
|
2417
2430
|
}
|
|
2418
2431
|
}
|
|
2419
2432
|
c = !0;
|
|
2420
2433
|
}
|
|
2421
2434
|
if (s?.inserts && s.inserts.length > 0) {
|
|
2422
|
-
const
|
|
2423
|
-
for (const u of
|
|
2435
|
+
const A = [...s.inserts].sort((u, h) => u.index - h.index);
|
|
2436
|
+
for (const u of A) {
|
|
2424
2437
|
f.some((C) => C.id === u.node.id) && Li.warn(`Duplicate node id '${u.node.id}' (type '${u.node.type}') inserted next to an existing sibling — UI tree diverged from the server`);
|
|
2425
|
-
const
|
|
2426
|
-
f.splice(
|
|
2438
|
+
const h = Math.min(u.index, f.length);
|
|
2439
|
+
f.splice(h, 0, u.node);
|
|
2427
2440
|
}
|
|
2428
2441
|
c = !0;
|
|
2429
2442
|
}
|
|
@@ -2431,8 +2444,8 @@ function $t(t, r, e) {
|
|
|
2431
2444
|
}
|
|
2432
2445
|
let d;
|
|
2433
2446
|
for (let f = 0; f < l.length; f++) {
|
|
2434
|
-
const
|
|
2435
|
-
u !==
|
|
2447
|
+
const A = l[f], u = $t(A, r);
|
|
2448
|
+
u !== A && (d || (d = l.slice()), d[f] = u);
|
|
2436
2449
|
}
|
|
2437
2450
|
return d && (l = d, c = !0), i || o || _ || c ? !o && !c && !_ ? n : {
|
|
2438
2451
|
id: t.id,
|
|
@@ -2597,8 +2610,8 @@ function M(t, r) {
|
|
|
2597
2610
|
}
|
|
2598
2611
|
return !1;
|
|
2599
2612
|
}
|
|
2600
|
-
const Mi = 16, vi = 50,
|
|
2601
|
-
let Jt = Mi, Qt = vi, V = [], x = null, H = null,
|
|
2613
|
+
const Mi = 16, vi = 50, w = new Ui(), v = /* @__PURE__ */ new Map(), Y = /* @__PURE__ */ new Map();
|
|
2614
|
+
let Jt = Mi, Qt = vi, V = [], x = null, H = null, U = 0, j = 0;
|
|
2602
2615
|
const g = /* @__PURE__ */ new Map();
|
|
2603
2616
|
function ki() {
|
|
2604
2617
|
return typeof performance < "u" ? performance.now() : Date.now();
|
|
@@ -2660,7 +2673,7 @@ function P(t) {
|
|
|
2660
2673
|
}
|
|
2661
2674
|
function at() {
|
|
2662
2675
|
if (x && (clearTimeout(x), x = null), H && (clearTimeout(H), H = null), V.length === 0 && g.size === 0) {
|
|
2663
|
-
|
|
2676
|
+
U = 0, j = 0;
|
|
2664
2677
|
return;
|
|
2665
2678
|
}
|
|
2666
2679
|
const t = [];
|
|
@@ -2671,9 +2684,9 @@ function at() {
|
|
|
2671
2684
|
createdAtMs: ki(),
|
|
2672
2685
|
ops: V,
|
|
2673
2686
|
...t.length > 0 ? { acks: t } : {},
|
|
2674
|
-
stats: { uiMessagesConsumed:
|
|
2687
|
+
stats: { uiMessagesConsumed: U, bytesConsumed: j }
|
|
2675
2688
|
};
|
|
2676
|
-
V = [],
|
|
2689
|
+
V = [], U = 0, j = 0, g.clear(), self.postMessage(r);
|
|
2677
2690
|
}
|
|
2678
2691
|
function Zt(t) {
|
|
2679
2692
|
return `${t.senderId}_${t.trackId}`;
|
|
@@ -2684,16 +2697,16 @@ async function xi(t) {
|
|
|
2684
2697
|
const n = s.StreamId;
|
|
2685
2698
|
e.add(n);
|
|
2686
2699
|
const i = s.Info?.Category;
|
|
2687
|
-
|
|
2700
|
+
w.getSnapshot(n)?.category !== i && (w.setCategory(n, i), P({ type: "SetStreamCategory", streamId: n, category: i }));
|
|
2688
2701
|
}
|
|
2689
|
-
for (const s of
|
|
2690
|
-
e.has(s.streamId) || (
|
|
2702
|
+
for (const s of w.getSnapshots())
|
|
2703
|
+
e.has(s.streamId) || (w.remove(s.streamId), Y.delete(s.streamId), P({ type: "RemoveStream", streamId: s.streamId }));
|
|
2691
2704
|
}
|
|
2692
2705
|
async function Hi(t) {
|
|
2693
|
-
const r = Z(t), e = Zt(r), s = await Hs(t), n =
|
|
2694
|
-
if ((i === void 0 || n.snapshot.version > i.version) && (g.set(r.trackId, { version: n.snapshot.version, senderId: r.senderId }), qt()), !
|
|
2706
|
+
const r = Z(t), e = Zt(r), s = await Hs(t), n = Ni(s), i = g.get(r.trackId);
|
|
2707
|
+
if ((i === void 0 || n.snapshot.version > i.version) && (g.set(r.trackId, { version: n.snapshot.version, senderId: r.senderId }), qt()), !w.apply(e, n))
|
|
2695
2708
|
return;
|
|
2696
|
-
const a =
|
|
2709
|
+
const a = w.getSnapshot(e);
|
|
2697
2710
|
if (!a)
|
|
2698
2711
|
return;
|
|
2699
2712
|
const _ = Y.get(e);
|
|
@@ -2711,7 +2724,7 @@ async function Yi(t) {
|
|
|
2711
2724
|
s && s.css === e.css && s.common === e.common || (v.set(e.styleId, e), P({ type: "UpsertUiStyle", style: e }));
|
|
2712
2725
|
}
|
|
2713
2726
|
async function pi(t) {
|
|
2714
|
-
const r = await
|
|
2727
|
+
const r = await Ns(t);
|
|
2715
2728
|
if (r.Styles)
|
|
2716
2729
|
for (const e of r.Styles) {
|
|
2717
2730
|
if (!e.StyleId)
|
|
@@ -2726,7 +2739,7 @@ async function pi(t) {
|
|
|
2726
2739
|
}
|
|
2727
2740
|
function Ki(t) {
|
|
2728
2741
|
const r = Z(t), e = Zt(r);
|
|
2729
|
-
|
|
2742
|
+
w.clear(e), Y.delete(e), P({ type: "ClearStream", streamId: e });
|
|
2730
2743
|
}
|
|
2731
2744
|
async function $i(t) {
|
|
2732
2745
|
const r = await Fs(t);
|
|
@@ -2740,7 +2753,7 @@ async function Xi(t) {
|
|
|
2740
2753
|
const e = r;
|
|
2741
2754
|
switch (ee(e)) {
|
|
2742
2755
|
case m.CORE_GLOBAL_STATE:
|
|
2743
|
-
await xi(e),
|
|
2756
|
+
await xi(e), U++;
|
|
2744
2757
|
return;
|
|
2745
2758
|
case m.UI_UPDATE:
|
|
2746
2759
|
try {
|
|
@@ -2748,20 +2761,20 @@ async function Xi(t) {
|
|
|
2748
2761
|
} catch (n) {
|
|
2749
2762
|
return n instanceof R, void 0;
|
|
2750
2763
|
} finally {
|
|
2751
|
-
|
|
2764
|
+
U++;
|
|
2752
2765
|
}
|
|
2753
2766
|
return;
|
|
2754
2767
|
case m.UI_STYLES:
|
|
2755
|
-
await Yi(e),
|
|
2768
|
+
await Yi(e), U++;
|
|
2756
2769
|
return;
|
|
2757
2770
|
case m.UI_STYLES_BATCH:
|
|
2758
|
-
await pi(e),
|
|
2771
|
+
await pi(e), U++;
|
|
2759
2772
|
return;
|
|
2760
2773
|
case m.UI_STYLES_DELETE:
|
|
2761
|
-
await $i(e),
|
|
2774
|
+
await $i(e), U++;
|
|
2762
2775
|
return;
|
|
2763
2776
|
case m.ACTION_UI_CLEAR_STREAM:
|
|
2764
|
-
Ki(e),
|
|
2777
|
+
Ki(e), U++;
|
|
2765
2778
|
return;
|
|
2766
2779
|
default:
|
|
2767
2780
|
return;
|
|
@@ -2775,8 +2788,12 @@ self.addEventListener("message", (t) => {
|
|
|
2775
2788
|
}
|
|
2776
2789
|
if (r.type === "clear") {
|
|
2777
2790
|
V = [], Y.clear(), g.clear(), v.clear();
|
|
2778
|
-
for (const e of
|
|
2779
|
-
|
|
2791
|
+
for (const e of w.getSnapshots())
|
|
2792
|
+
w.remove(e.streamId);
|
|
2793
|
+
return;
|
|
2794
|
+
}
|
|
2795
|
+
if (r.type === "snapshotMode") {
|
|
2796
|
+
w.enterSnapshotModeAll();
|
|
2780
2797
|
return;
|
|
2781
2798
|
}
|
|
2782
2799
|
r.type === "protocol" && Xi(r.message).catch(() => {
|