@ikonai/sdk-ui 1.0.61 → 1.0.63
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/{audio-playback-worker-BhikbMvg.js → audio-playback-worker-CC2FKp8X.js} +42 -42
- package/assets/{protocol-worker-C1bzc65g.js → protocol-worker-DCLZvHGe.js} +1 -1
- package/assets/{ui-worker-Cnoq4Ubv.js → ui-worker-BCMvLBtA.js} +66 -66
- package/assets/{video-capture-worker-aMgUqmMd.js → video-capture-worker-CzOnKSIv.js} +40 -40
- package/assets/{video-playback-worker-Cfg2cyD1.js → video-playback-worker-BTMuFG90.js} +17 -17
- package/index.js +2 -2
- package/package.json +1 -1
|
@@ -89,10 +89,10 @@ class O {
|
|
|
89
89
|
const n = b(s);
|
|
90
90
|
let i;
|
|
91
91
|
if (n >= 0)
|
|
92
|
-
|
|
92
|
+
h(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
|
+
h(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
|
}
|
|
@@ -236,20 +236,20 @@ class tt {
|
|
|
236
236
|
case 6:
|
|
237
237
|
case 14: {
|
|
238
238
|
const r = b(this.elementType);
|
|
239
|
-
|
|
239
|
+
h(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
|
+
h(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
|
+
h(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
|
}
|
|
@@ -302,13 +302,13 @@ class et {
|
|
|
302
302
|
readKey() {
|
|
303
303
|
const r = b(this.keyType);
|
|
304
304
|
if (r >= 0) {
|
|
305
|
-
|
|
305
|
+
h(this.payload, this.offset, r);
|
|
306
306
|
const e = this.payload.subarray(this.offset, this.offset + r);
|
|
307
307
|
return this.offset += r, new L(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
|
+
h(this.payload, e.offset, s);
|
|
312
312
|
const n = this.payload.subarray(e.offset, e.offset + s);
|
|
313
313
|
return this.offset = e.offset + s, new L(this.keyType, n);
|
|
314
314
|
}
|
|
@@ -319,13 +319,13 @@ 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
|
+
h(this.payload, r.offset, e);
|
|
323
323
|
const s = this.payload.subarray(r.offset, r.offset + e);
|
|
324
324
|
return this.offset = r.offset + e, new L(this.valueType, s);
|
|
325
325
|
}
|
|
326
326
|
case 11: {
|
|
327
327
|
const r = { offset: this.offset }, e = S(this.payload, r, "DictMalformed");
|
|
328
|
-
|
|
328
|
+
h(this.payload, r.offset, e);
|
|
329
329
|
const s = this.payload.subarray(r.offset, r.offset + e);
|
|
330
330
|
return this.offset = r.offset + e, new L(11, s);
|
|
331
331
|
}
|
|
@@ -347,7 +347,7 @@ class et {
|
|
|
347
347
|
case 14:
|
|
348
348
|
case 1: {
|
|
349
349
|
const r = b(this.valueType);
|
|
350
|
-
|
|
350
|
+
h(this.payload, this.offset, r);
|
|
351
351
|
const e = this.payload.subarray(this.offset, this.offset + r);
|
|
352
352
|
return this.offset += r, new L(this.valueType, e);
|
|
353
353
|
}
|
|
@@ -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 h(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 h(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 h(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 h(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 h(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 || {}), 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_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))(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, Ae = 3282782683, Ne = 3284746250, he = 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 Ae: {
|
|
595
595
|
if (e.isNull) throw new Error();
|
|
596
596
|
r.SourceType = e.asString();
|
|
597
597
|
break;
|
|
598
598
|
}
|
|
599
|
-
case
|
|
599
|
+
case Ne: {
|
|
600
600
|
if (e.isNull) throw new Error();
|
|
601
601
|
r.Codec = e.asInt32();
|
|
602
602
|
break;
|
|
603
603
|
}
|
|
604
|
-
case
|
|
604
|
+
case he: {
|
|
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 = Nt.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, Ar = 972460562, Nr = 976255570, hr = 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 Ar: {
|
|
887
887
|
if (e.isNull) throw new Error();
|
|
888
888
|
r.EnumerableItemTypeName = e.asString();
|
|
889
889
|
break;
|
|
890
890
|
}
|
|
891
|
-
case
|
|
891
|
+
case Nr: {
|
|
892
892
|
if (e.isNull) throw new Error();
|
|
893
893
|
r.FunctionId = e.asGuid();
|
|
894
894
|
break;
|
|
895
895
|
}
|
|
896
|
-
case
|
|
896
|
+
case hr: {
|
|
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 As(e, r);
|
|
1162
1162
|
}
|
|
1163
|
-
function
|
|
1163
|
+
function As(t, r) {
|
|
1164
1164
|
const e = r ?? us();
|
|
1165
|
-
return Ft(e),
|
|
1165
|
+
return Ft(e), Ns(t, e), e;
|
|
1166
1166
|
}
|
|
1167
|
-
function
|
|
1167
|
+
function Ns(t, r) {
|
|
1168
1168
|
let e;
|
|
1169
1169
|
for (; (e = t.next()) !== null; )
|
|
1170
1170
|
switch (e.fieldId) {
|
|
@@ -1175,7 +1175,7 @@ function As(t, r) {
|
|
|
1175
1175
|
}
|
|
1176
1176
|
}
|
|
1177
1177
|
}
|
|
1178
|
-
async function
|
|
1178
|
+
async function hs(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 = At.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, An = 3696445035, Nn = 3707543140, hn = 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 = ht.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 An: {
|
|
1466
1466
|
if (e.isNull) throw new Error();
|
|
1467
1467
|
r.UIStreams = gn(e.asDictionary());
|
|
1468
1468
|
break;
|
|
1469
1469
|
}
|
|
1470
|
-
case
|
|
1470
|
+
case Nn: {
|
|
1471
1471
|
if (e.isNull) throw new Error();
|
|
1472
1472
|
r.SpaceId = e.asString();
|
|
1473
1473
|
break;
|
|
1474
1474
|
}
|
|
1475
|
-
case
|
|
1475
|
+
case hn: {
|
|
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 = Ni(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 Ai(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 hi(t, r, e) {
|
|
|
1919
1919
|
metadata: o
|
|
1920
1920
|
};
|
|
1921
1921
|
}
|
|
1922
|
-
function
|
|
1922
|
+
function Ni(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 hi(t) {
|
|
1938
1938
|
let r;
|
|
1939
1939
|
try {
|
|
1940
1940
|
r = JSON.parse(t.Json);
|
|
@@ -1948,7 +1948,7 @@ function Ni(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) : Ai(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
|
|
@@ -2376,15 +2376,15 @@ function $t(t, r, e) {
|
|
|
2376
2376
|
}
|
|
2377
2377
|
let o = !1, a = n.props;
|
|
2378
2378
|
if (s?.changedProps && s.changedProps.size > 0)
|
|
2379
|
-
for (const [f,
|
|
2379
|
+
for (const [f, N] of s.changedProps.entries()) {
|
|
2380
2380
|
const u = a[f];
|
|
2381
|
-
if (
|
|
2381
|
+
if (N === void 0)
|
|
2382
2382
|
(u !== void 0 || f in a) && (o || (a = G(a), o = !0), delete a[f]);
|
|
2383
|
-
else if (q(
|
|
2384
|
-
const
|
|
2385
|
-
M(h, u) || (o || (a = G(a), o = !0), a[f] = h);
|
|
2386
|
-
} else
|
|
2383
|
+
else if (q(N)) {
|
|
2384
|
+
const A = G(N);
|
|
2387
2385
|
M(A, u) || (o || (a = G(a), o = !0), a[f] = A);
|
|
2386
|
+
} else
|
|
2387
|
+
M(N, u) || (o || (a = G(a), o = !0), a[f] = N);
|
|
2388
2388
|
}
|
|
2389
2389
|
let _ = !1, I = n.styleIds;
|
|
2390
2390
|
s?.styleIds !== void 0 && (Wt(n.styleIds, s.styleIds) || (I = s.styleIds, _ = !0));
|
|
@@ -2393,37 +2393,37 @@ function $t(t, r, e) {
|
|
|
2393
2393
|
if (s?.removals && s.removals.length > 0 || s?.moves && s.moves.length > 0 || s?.inserts && s.inserts.length > 0) {
|
|
2394
2394
|
const f = l.slice();
|
|
2395
2395
|
if (s?.removals && s.removals.length > 0) {
|
|
2396
|
-
const
|
|
2397
|
-
for (const u of
|
|
2396
|
+
const N = [...s.removals].sort((u, A) => A.index - u.index);
|
|
2397
|
+
for (const u of N)
|
|
2398
2398
|
if (u.index >= 0 && u.index < f.length && f[u.index].id === u.nodeId)
|
|
2399
2399
|
f.splice(u.index, 1);
|
|
2400
2400
|
else {
|
|
2401
|
-
const
|
|
2402
|
-
|
|
2401
|
+
const A = f.findIndex((C) => C.id === u.nodeId);
|
|
2402
|
+
A >= 0 && f.splice(A, 1);
|
|
2403
2403
|
}
|
|
2404
2404
|
c = !0;
|
|
2405
2405
|
}
|
|
2406
2406
|
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(
|
|
2407
|
+
const N = [...s.moves].sort((A, C) => A.toIndex - C.toIndex), u = /* @__PURE__ */ new Map();
|
|
2408
|
+
for (const A of N) {
|
|
2409
|
+
const C = f.findIndex((z) => z.id === A.nodeId);
|
|
2410
|
+
C >= 0 && (u.set(A.nodeId, f[C]), f.splice(C, 1));
|
|
2411
2411
|
}
|
|
2412
|
-
for (const
|
|
2413
|
-
const C = u.get(
|
|
2412
|
+
for (const A of N) {
|
|
2413
|
+
const C = u.get(A.nodeId);
|
|
2414
2414
|
if (C) {
|
|
2415
|
-
const z = Math.min(
|
|
2415
|
+
const z = Math.min(A.toIndex, f.length);
|
|
2416
2416
|
f.splice(z, 0, C);
|
|
2417
2417
|
}
|
|
2418
2418
|
}
|
|
2419
2419
|
c = !0;
|
|
2420
2420
|
}
|
|
2421
2421
|
if (s?.inserts && s.inserts.length > 0) {
|
|
2422
|
-
const
|
|
2423
|
-
for (const u of
|
|
2422
|
+
const N = [...s.inserts].sort((u, A) => u.index - A.index);
|
|
2423
|
+
for (const u of N) {
|
|
2424
2424
|
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(
|
|
2425
|
+
const A = Math.min(u.index, f.length);
|
|
2426
|
+
f.splice(A, 0, u.node);
|
|
2427
2427
|
}
|
|
2428
2428
|
c = !0;
|
|
2429
2429
|
}
|
|
@@ -2431,8 +2431,8 @@ function $t(t, r, e) {
|
|
|
2431
2431
|
}
|
|
2432
2432
|
let d;
|
|
2433
2433
|
for (let f = 0; f < l.length; f++) {
|
|
2434
|
-
const
|
|
2435
|
-
u !==
|
|
2434
|
+
const N = l[f], u = $t(N, r);
|
|
2435
|
+
u !== N && (d || (d = l.slice()), d[f] = u);
|
|
2436
2436
|
}
|
|
2437
2437
|
return d && (l = d, c = !0), i || o || _ || c ? !o && !c && !_ ? n : {
|
|
2438
2438
|
id: t.id,
|
|
@@ -2690,7 +2690,7 @@ async function xi(t) {
|
|
|
2690
2690
|
e.has(s.streamId) || (U.remove(s.streamId), Y.delete(s.streamId), P({ type: "RemoveStream", streamId: s.streamId }));
|
|
2691
2691
|
}
|
|
2692
2692
|
async function Hi(t) {
|
|
2693
|
-
const r = Z(t), e = Zt(r), s = await Hs(t), n =
|
|
2693
|
+
const r = Z(t), e = Zt(r), s = await Hs(t), n = hi(s), i = g.get(r.trackId);
|
|
2694
2694
|
if ((i === void 0 || n.snapshot.version > i.version) && (g.set(r.trackId, { version: n.snapshot.version, senderId: r.senderId }), qt()), !U.apply(e, n))
|
|
2695
2695
|
return;
|
|
2696
2696
|
const a = U.getSnapshot(e);
|
|
@@ -2711,7 +2711,7 @@ async function Yi(t) {
|
|
|
2711
2711
|
s && s.css === e.css && s.common === e.common || (v.set(e.styleId, e), P({ type: "UpsertUiStyle", style: e }));
|
|
2712
2712
|
}
|
|
2713
2713
|
async function pi(t) {
|
|
2714
|
-
const r = await
|
|
2714
|
+
const r = await hs(t);
|
|
2715
2715
|
if (r.Styles)
|
|
2716
2716
|
for (const e of r.Styles) {
|
|
2717
2717
|
if (!e.StyleId)
|