@ikonai/sdk-ui 1.0.11 → 1.0.13
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-HM-CSTLx.js → ui-worker-CY17IdjE.js} +438 -418
- package/index.js +394 -374
- package/package.json +1 -1
|
@@ -13,17 +13,17 @@ function et(t) {
|
|
|
13
13
|
const r = s.getUint32(0, !0), n = s.getUint32(4, !0), i = s.getUint32(8, !0), o = s.getUint32(12, !0), a = s.getUint32(16, !0), c = s.getUint32(20, !0), l = s.getUint8(24), I = s.getUint8(25), E = s.getUint8(26);
|
|
14
14
|
if (27 + c * 4 > e.length)
|
|
15
15
|
throw new Error("Protocol header exceeds payload length");
|
|
16
|
-
const
|
|
16
|
+
const N = [];
|
|
17
17
|
let h = 27;
|
|
18
18
|
for (let w = 0; w < c; w++)
|
|
19
|
-
|
|
19
|
+
N.push(s.getUint32(h, !0)), h += 4;
|
|
20
20
|
return {
|
|
21
21
|
length: r,
|
|
22
22
|
opcode: n,
|
|
23
23
|
senderId: i,
|
|
24
24
|
trackId: o,
|
|
25
25
|
sequenceId: a,
|
|
26
|
-
targetIds:
|
|
26
|
+
targetIds: N,
|
|
27
27
|
payloadVersion: l,
|
|
28
28
|
payloadType: I,
|
|
29
29
|
flags: E
|
|
@@ -89,10 +89,10 @@ class L {
|
|
|
89
89
|
const n = p(r);
|
|
90
90
|
let i;
|
|
91
91
|
if (n >= 0)
|
|
92
|
-
|
|
92
|
+
d(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 = C(this.buffer, o, "InvalidLength");
|
|
95
|
-
|
|
95
|
+
d(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 ae(e, r, i);
|
|
98
98
|
}
|
|
@@ -236,20 +236,20 @@ class st {
|
|
|
236
236
|
case 6:
|
|
237
237
|
case 14: {
|
|
238
238
|
const e = p(this.elementType);
|
|
239
|
-
|
|
239
|
+
d(this.payload, this.offset, e);
|
|
240
240
|
const s = this.payload.subarray(this.offset, this.offset + e);
|
|
241
241
|
return this.offset += e, new M(this.elementType, s);
|
|
242
242
|
}
|
|
243
243
|
case 12:
|
|
244
244
|
case 13: {
|
|
245
245
|
const e = { offset: this.offset }, s = C(this.payload, e, "ArrayMalformed");
|
|
246
|
-
|
|
246
|
+
d(this.payload, e.offset, s);
|
|
247
247
|
const r = this.payload.subarray(e.offset, e.offset + s);
|
|
248
248
|
return this.offset = e.offset + s, new M(this.elementType, r);
|
|
249
249
|
}
|
|
250
250
|
case 11: {
|
|
251
251
|
const e = { offset: this.offset }, s = C(this.payload, e, "ArrayMalformed");
|
|
252
|
-
|
|
252
|
+
d(this.payload, e.offset, s);
|
|
253
253
|
const r = this.payload.subarray(e.offset, e.offset + s);
|
|
254
254
|
return this.offset = e.offset + s, new M(11, r);
|
|
255
255
|
}
|
|
@@ -302,13 +302,13 @@ class rt {
|
|
|
302
302
|
readKey() {
|
|
303
303
|
const e = p(this.keyType);
|
|
304
304
|
if (e >= 0) {
|
|
305
|
-
|
|
305
|
+
d(this.payload, this.offset, e);
|
|
306
306
|
const s = this.payload.subarray(this.offset, this.offset + e);
|
|
307
307
|
return this.offset += e, new U(this.keyType, s);
|
|
308
308
|
}
|
|
309
309
|
if (this.keyType === 12 || this.keyType === 13) {
|
|
310
310
|
const s = { offset: this.offset }, r = C(this.payload, s, "DictMalformed");
|
|
311
|
-
|
|
311
|
+
d(this.payload, s.offset, r);
|
|
312
312
|
const n = this.payload.subarray(s.offset, s.offset + r);
|
|
313
313
|
return this.offset = s.offset + r, new U(this.keyType, n);
|
|
314
314
|
}
|
|
@@ -319,13 +319,13 @@ class rt {
|
|
|
319
319
|
case 12:
|
|
320
320
|
case 13: {
|
|
321
321
|
const e = { offset: this.offset }, s = C(this.payload, e, "DictMalformed");
|
|
322
|
-
|
|
322
|
+
d(this.payload, e.offset, s);
|
|
323
323
|
const r = this.payload.subarray(e.offset, e.offset + s);
|
|
324
324
|
return this.offset = e.offset + s, new U(this.valueType, r);
|
|
325
325
|
}
|
|
326
326
|
case 11: {
|
|
327
327
|
const e = { offset: this.offset }, s = C(this.payload, e, "DictMalformed");
|
|
328
|
-
|
|
328
|
+
d(this.payload, e.offset, s);
|
|
329
329
|
const r = this.payload.subarray(e.offset, e.offset + s);
|
|
330
330
|
return this.offset = e.offset + s, new U(11, r);
|
|
331
331
|
}
|
|
@@ -347,7 +347,7 @@ class rt {
|
|
|
347
347
|
case 14:
|
|
348
348
|
case 1: {
|
|
349
349
|
const e = p(this.valueType);
|
|
350
|
-
|
|
350
|
+
d(this.payload, this.offset, e);
|
|
351
351
|
const s = this.payload.subarray(this.offset, this.offset + e);
|
|
352
352
|
return this.offset += e, new U(this.valueType, s);
|
|
353
353
|
}
|
|
@@ -474,7 +474,7 @@ function ct(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 d(t, e, s) {
|
|
478
478
|
if (e < 0 || s < 0 || e + s > t.length)
|
|
479
479
|
throw new Error("Teleport payload exceeds bounds");
|
|
480
480
|
}
|
|
@@ -490,7 +490,7 @@ function nt(t, e) {
|
|
|
490
490
|
const n = { offset: e + 1 }, i = C(t, n, "ArrayMalformed"), o = p(r);
|
|
491
491
|
if (o >= 0) {
|
|
492
492
|
const c = o * i;
|
|
493
|
-
return
|
|
493
|
+
return d(t, n.offset, c), n.offset + c - e;
|
|
494
494
|
}
|
|
495
495
|
let a = n.offset;
|
|
496
496
|
for (let c = 0; c < i; c++)
|
|
@@ -513,16 +513,16 @@ function it(t, e) {
|
|
|
513
513
|
function q(t, e, s, r) {
|
|
514
514
|
const n = p(t);
|
|
515
515
|
if (n >= 0)
|
|
516
|
-
return
|
|
516
|
+
return d(e, s, n), s + n;
|
|
517
517
|
switch (t) {
|
|
518
518
|
case 12:
|
|
519
519
|
case 13: {
|
|
520
520
|
const i = { offset: s }, o = C(e, i, r);
|
|
521
|
-
return
|
|
521
|
+
return d(e, i.offset, o), i.offset + o;
|
|
522
522
|
}
|
|
523
523
|
case 11: {
|
|
524
524
|
const i = { offset: s }, o = C(e, i, r);
|
|
525
|
-
return
|
|
525
|
+
return d(e, i.offset, o), i.offset + o;
|
|
526
526
|
}
|
|
527
527
|
case 9:
|
|
528
528
|
return s + nt(e, s);
|
|
@@ -538,244 +538,254 @@ function at(t) {
|
|
|
538
538
|
function K(t) {
|
|
539
539
|
return t instanceof Uint8Array ? t : new Uint8Array(t);
|
|
540
540
|
}
|
|
541
|
-
var Et = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.Opus = 1] = "Opus", t[t.Mp3 = 2] = "Mp3", t[t.RawPcm16 = 3] = "RawPcm16", t))(Et || {}), _t = /* @__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))(_t || {}), ft = /* @__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))(ft || {}), ht = /* @__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))(ht || {}), ut = /* @__PURE__ */ ((t) => (t[t.Face = 0] = "Face", t[t.Hands = 1] = "Hands", t[t.Pose = 2] = "Pose", t[t.All = 3] = "All", 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))(Nt || {}), dt = /* @__PURE__ */ ((t) => (t[t.Local = 0] = "Local", t[t.Cloud = 1] = "Cloud", t))(dt || {}), St = /* @__PURE__ */ ((t) => (t[t.Bundle = 0] = "Bundle", t[t.GitSource = 1] = "GitSource", t))(St || {}), g = /* @__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.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.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_OPTIMISTIC_CLIENT_CALLS = 1048626] = "ACTION_OPTIMISTIC_CLIENT_CALLS", 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.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.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.CONSTANT_GROUP_MASK = 2147418112] = "CONSTANT_GROUP_MASK", t))(g || {});
|
|
542
|
-
const Ee =
|
|
541
|
+
var Et = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.Opus = 1] = "Opus", t[t.Mp3 = 2] = "Mp3", t[t.RawPcm16 = 3] = "RawPcm16", t))(Et || {}), _t = /* @__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))(_t || {}), ft = /* @__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))(ft || {}), ht = /* @__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))(ht || {}), ut = /* @__PURE__ */ ((t) => (t[t.Face = 0] = "Face", t[t.Hands = 1] = "Hands", t[t.Pose = 2] = "Pose", t[t.All = 3] = "All", t))(ut || {}), Tt = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.Machine = 1] = "Machine", t[t.Human = 2] = "Human", t))(Tt || {}), Nt = /* @__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))(Nt || {}), At = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.DotNet = 1] = "DotNet", t[t.TypeScript = 2] = "TypeScript", t[t.Cpp = 3] = "Cpp", t))(At || {}), St = /* @__PURE__ */ ((t) => (t[t.Local = 0] = "Local", t[t.Cloud = 1] = "Cloud", t))(St || {}), dt = /* @__PURE__ */ ((t) => (t[t.Bundle = 0] = "Bundle", t[t.GitSource = 1] = "GitSource", t))(dt || {}), g = /* @__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.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.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_OPTIMISTIC_CLIENT_CALLS = 1048626] = "ACTION_OPTIMISTIC_CLIENT_CALLS", 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.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.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.CONSTANT_GROUP_MASK = 2147418112] = "CONSTANT_GROUP_MASK", t))(g || {});
|
|
542
|
+
const Ee = 161083277, _e = 265814330, fe = 1368629611, he = 2431514951, ue = 2745379226, Te = 3282782683, Ne = 3284746250, Ae = 4101844078;
|
|
543
543
|
function yt(t) {
|
|
544
544
|
const e = {};
|
|
545
545
|
return wt(e), e;
|
|
546
546
|
}
|
|
547
547
|
function wt(t) {
|
|
548
|
-
return t.Description = "", t.Codec = Et.Unknown, t.
|
|
548
|
+
return t.StreamId = "", t.Description = "", t.SourceType = "", t.Codec = Et.Unknown, t.CodecDetails = "", t.SampleRate = 0, t.Channels = 0, t.ShapeSets = void 0, t;
|
|
549
549
|
}
|
|
550
|
-
function
|
|
550
|
+
function Se(t, e) {
|
|
551
551
|
const s = e ?? yt();
|
|
552
|
-
return wt(s),
|
|
552
|
+
return wt(s), de(t, s), s;
|
|
553
553
|
}
|
|
554
|
-
function
|
|
554
|
+
function de(t, e) {
|
|
555
555
|
let s;
|
|
556
556
|
for (; (s = t.next()) !== null; )
|
|
557
557
|
switch (s.fieldId) {
|
|
558
558
|
case Ee: {
|
|
559
|
+
if (s.isNull) throw new Error();
|
|
560
|
+
e.StreamId = s.asString();
|
|
561
|
+
break;
|
|
562
|
+
}
|
|
563
|
+
case _e: {
|
|
559
564
|
if (s.isNull) {
|
|
560
565
|
e.ShapeSets = void 0;
|
|
561
566
|
break;
|
|
562
567
|
}
|
|
563
|
-
e.ShapeSets =
|
|
568
|
+
e.ShapeSets = ye(s.asArray());
|
|
564
569
|
break;
|
|
565
570
|
}
|
|
566
|
-
case
|
|
571
|
+
case fe: {
|
|
567
572
|
if (s.isNull) throw new Error();
|
|
568
573
|
e.Description = s.asString();
|
|
569
574
|
break;
|
|
570
575
|
}
|
|
571
|
-
case
|
|
576
|
+
case he: {
|
|
572
577
|
if (s.isNull) throw new Error();
|
|
573
578
|
e.Channels = s.asInt32();
|
|
574
579
|
break;
|
|
575
580
|
}
|
|
576
|
-
case
|
|
581
|
+
case ue: {
|
|
577
582
|
if (s.isNull) throw new Error();
|
|
578
|
-
e.
|
|
583
|
+
e.CodecDetails = s.asString();
|
|
579
584
|
break;
|
|
580
585
|
}
|
|
581
|
-
case
|
|
586
|
+
case Te: {
|
|
587
|
+
if (s.isNull) throw new Error();
|
|
588
|
+
e.SourceType = s.asString();
|
|
589
|
+
break;
|
|
590
|
+
}
|
|
591
|
+
case Ne: {
|
|
582
592
|
if (s.isNull) throw new Error();
|
|
583
593
|
e.Codec = s.asInt32();
|
|
584
594
|
break;
|
|
585
595
|
}
|
|
586
|
-
case
|
|
596
|
+
case Ae: {
|
|
587
597
|
if (s.isNull) throw new Error();
|
|
588
598
|
e.SampleRate = s.asInt32();
|
|
589
599
|
break;
|
|
590
600
|
}
|
|
591
601
|
}
|
|
592
602
|
}
|
|
593
|
-
function
|
|
603
|
+
function ye(t) {
|
|
594
604
|
const e = [];
|
|
595
605
|
let s;
|
|
596
606
|
for (; (s = t.next()) !== null; )
|
|
597
|
-
e.push(
|
|
607
|
+
e.push(Re(s.asObject()));
|
|
598
608
|
return e;
|
|
599
609
|
}
|
|
600
|
-
const
|
|
601
|
-
function
|
|
610
|
+
const we = 1107713536, Ce = 1154362099, De = 1185721362;
|
|
611
|
+
function Ue(t) {
|
|
602
612
|
const e = {};
|
|
603
613
|
return Ct(e), e;
|
|
604
614
|
}
|
|
605
615
|
function Ct(t) {
|
|
606
616
|
return t.SetId = 0, t.Name = "", t.ShapeNames = [], t;
|
|
607
617
|
}
|
|
608
|
-
function
|
|
609
|
-
const s = e ??
|
|
610
|
-
return Ct(s),
|
|
618
|
+
function Re(t, e) {
|
|
619
|
+
const s = e ?? Ue();
|
|
620
|
+
return Ct(s), me(t, s), s;
|
|
611
621
|
}
|
|
612
|
-
function
|
|
622
|
+
function me(t, e) {
|
|
613
623
|
let s;
|
|
614
624
|
for (; (s = t.next()) !== null; )
|
|
615
625
|
switch (s.fieldId) {
|
|
616
|
-
case
|
|
626
|
+
case we: {
|
|
617
627
|
if (s.isNull) throw new Error();
|
|
618
628
|
e.Name = s.asString();
|
|
619
629
|
break;
|
|
620
630
|
}
|
|
621
|
-
case
|
|
631
|
+
case Ce: {
|
|
622
632
|
if (s.isNull) throw new Error();
|
|
623
633
|
e.SetId = s.asUInt32();
|
|
624
634
|
break;
|
|
625
635
|
}
|
|
626
|
-
case
|
|
636
|
+
case De: {
|
|
627
637
|
if (s.isNull) throw new Error();
|
|
628
|
-
e.ShapeNames =
|
|
638
|
+
e.ShapeNames = Le(s.asArray());
|
|
629
639
|
break;
|
|
630
640
|
}
|
|
631
641
|
}
|
|
632
642
|
}
|
|
633
|
-
function
|
|
643
|
+
function Le(t) {
|
|
634
644
|
const e = [];
|
|
635
645
|
let s;
|
|
636
646
|
for (; (s = t.next()) !== null; )
|
|
637
647
|
e.push(s.asString());
|
|
638
648
|
return e;
|
|
639
649
|
}
|
|
640
|
-
const
|
|
641
|
-
function
|
|
650
|
+
const ge = 76337612, Oe = 185396121, Pe = 388632637, be = 417197284, Fe = 469070965, pe = 470595159, ve = 781727218, Me = 834078886, ke = 1043273762, Ge = 1236999138, Ve = 1368629611, Be = 1715899485, xe = 1942830531, He = 1999510636, Ye = 2079864626, $e = 2142346422, Ke = 2598291686, je = 2719718823, Xe = 2810953526, ze = 2840065720, We = 2885165957, Je = 3586157513, qe = 3717933110, Qe = 4062655306;
|
|
651
|
+
function Ze(t) {
|
|
642
652
|
const e = {};
|
|
643
653
|
return Dt(e), e;
|
|
644
654
|
}
|
|
645
655
|
function Dt(t) {
|
|
646
|
-
return t.ContextType = ft.Unknown, t.UserType = Tt.Unknown, t.PayloadType = ht.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 = _t.Unknown, t.UniqueSessionId = "", t.Parameters = /* @__PURE__ */ Object.create(null), t.SdkType =
|
|
656
|
+
return t.ContextType = ft.Unknown, t.UserType = Tt.Unknown, t.PayloadType = ht.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 = _t.Unknown, t.UniqueSessionId = "", t.Parameters = /* @__PURE__ */ Object.create(null), t.SdkType = At.Unknown, t;
|
|
647
657
|
}
|
|
648
|
-
function
|
|
649
|
-
const s = e ??
|
|
650
|
-
return Dt(s),
|
|
658
|
+
function ts(t, e) {
|
|
659
|
+
const s = e ?? Ze();
|
|
660
|
+
return Dt(s), es(t, s), s;
|
|
651
661
|
}
|
|
652
|
-
function
|
|
662
|
+
function es(t, e) {
|
|
653
663
|
let s;
|
|
654
664
|
for (; (s = t.next()) !== null; )
|
|
655
665
|
switch (s.fieldId) {
|
|
656
|
-
case
|
|
666
|
+
case ge: {
|
|
657
667
|
if (s.isNull) throw new Error();
|
|
658
668
|
e.DeviceId = s.asString();
|
|
659
669
|
break;
|
|
660
670
|
}
|
|
661
|
-
case
|
|
671
|
+
case Oe: {
|
|
662
672
|
if (s.isNull) throw new Error();
|
|
663
673
|
e.InstallId = s.asString();
|
|
664
674
|
break;
|
|
665
675
|
}
|
|
666
|
-
case
|
|
676
|
+
case Pe: {
|
|
667
677
|
if (s.isNull) throw new Error();
|
|
668
678
|
e.UserAgent = s.asString();
|
|
669
679
|
break;
|
|
670
680
|
}
|
|
671
|
-
case
|
|
681
|
+
case be: {
|
|
672
682
|
if (s.isNull) throw new Error();
|
|
673
683
|
e.ContextType = s.asInt32();
|
|
674
684
|
break;
|
|
675
685
|
}
|
|
676
|
-
case
|
|
686
|
+
case Fe: {
|
|
677
687
|
if (s.isNull) throw new Error();
|
|
678
688
|
e.HasInput = s.asBool();
|
|
679
689
|
break;
|
|
680
690
|
}
|
|
681
|
-
case
|
|
691
|
+
case pe: {
|
|
682
692
|
if (s.isNull) throw new Error();
|
|
683
693
|
e.UserType = s.asInt32();
|
|
684
694
|
break;
|
|
685
695
|
}
|
|
686
|
-
case
|
|
696
|
+
case ve: {
|
|
687
697
|
if (s.isNull) throw new Error();
|
|
688
698
|
e.UserId = s.asString();
|
|
689
699
|
break;
|
|
690
700
|
}
|
|
691
|
-
case
|
|
701
|
+
case Me: {
|
|
692
702
|
if (s.isNull) throw new Error();
|
|
693
703
|
e.ProductId = s.asString();
|
|
694
704
|
break;
|
|
695
705
|
}
|
|
696
|
-
case
|
|
706
|
+
case ke: {
|
|
697
707
|
if (s.isNull) throw new Error();
|
|
698
708
|
e.AuthSessionId = s.asString();
|
|
699
709
|
break;
|
|
700
710
|
}
|
|
701
|
-
case
|
|
711
|
+
case Ge: {
|
|
702
712
|
if (s.isNull) throw new Error();
|
|
703
713
|
e.ReceiveAllMessages = s.asBool();
|
|
704
714
|
break;
|
|
705
715
|
}
|
|
706
|
-
case
|
|
716
|
+
case Ve: {
|
|
707
717
|
if (s.isNull) throw new Error();
|
|
708
718
|
e.Description = s.asString();
|
|
709
719
|
break;
|
|
710
720
|
}
|
|
711
|
-
case
|
|
721
|
+
case Be: {
|
|
712
722
|
if (s.isNull) throw new Error();
|
|
713
723
|
e.Locale = s.asString();
|
|
714
724
|
break;
|
|
715
725
|
}
|
|
716
|
-
case
|
|
726
|
+
case xe: {
|
|
717
727
|
if (s.isNull) throw new Error();
|
|
718
728
|
e.SdkType = s.asInt32();
|
|
719
729
|
break;
|
|
720
730
|
}
|
|
721
|
-
case
|
|
731
|
+
case He: {
|
|
722
732
|
if (s.isNull) throw new Error();
|
|
723
733
|
e.SessionId = s.asInt32();
|
|
724
734
|
break;
|
|
725
735
|
}
|
|
726
|
-
case
|
|
736
|
+
case Ye: {
|
|
727
737
|
if (s.isNull) throw new Error();
|
|
728
738
|
e.PreciseJoinedAt = s.asUInt64();
|
|
729
739
|
break;
|
|
730
740
|
}
|
|
731
|
-
case
|
|
741
|
+
case $e: {
|
|
732
742
|
if (s.isNull) throw new Error();
|
|
733
743
|
e.PayloadType = s.asInt32();
|
|
734
744
|
break;
|
|
735
745
|
}
|
|
736
|
-
case
|
|
746
|
+
case Ke: {
|
|
737
747
|
if (s.isNull) throw new Error();
|
|
738
748
|
e.VersionId = s.asString();
|
|
739
749
|
break;
|
|
740
750
|
}
|
|
741
|
-
case
|
|
751
|
+
case je: {
|
|
742
752
|
if (s.isNull) throw new Error();
|
|
743
753
|
e.UniqueSessionId = s.asString();
|
|
744
754
|
break;
|
|
745
755
|
}
|
|
746
|
-
case
|
|
756
|
+
case Xe: {
|
|
747
757
|
if (s.isNull) throw new Error();
|
|
748
758
|
e.ClientType = s.asInt32();
|
|
749
759
|
break;
|
|
750
760
|
}
|
|
751
|
-
case
|
|
761
|
+
case ze: {
|
|
752
762
|
if (s.isNull) throw new Error();
|
|
753
763
|
e.IsReady = s.asBool();
|
|
754
764
|
break;
|
|
755
765
|
}
|
|
756
|
-
case
|
|
766
|
+
case We: {
|
|
757
767
|
if (s.isNull) throw new Error();
|
|
758
|
-
e.Parameters =
|
|
768
|
+
e.Parameters = ss(s.asDictionary());
|
|
759
769
|
break;
|
|
760
770
|
}
|
|
761
|
-
case
|
|
771
|
+
case Je: {
|
|
762
772
|
if (s.isNull) throw new Error();
|
|
763
773
|
e.IsInternal = s.asBool();
|
|
764
774
|
break;
|
|
765
775
|
}
|
|
766
|
-
case
|
|
776
|
+
case qe: {
|
|
767
777
|
if (s.isNull) throw new Error();
|
|
768
778
|
e.ChannelLocale = s.asString();
|
|
769
779
|
break;
|
|
770
780
|
}
|
|
771
|
-
case
|
|
781
|
+
case Qe: {
|
|
772
782
|
if (s.isNull) throw new Error();
|
|
773
783
|
e.EmbeddedSpaceId = s.asString();
|
|
774
784
|
break;
|
|
775
785
|
}
|
|
776
786
|
}
|
|
777
787
|
}
|
|
778
|
-
function
|
|
788
|
+
function ss(t) {
|
|
779
789
|
const e = /* @__PURE__ */ Object.create(null);
|
|
780
790
|
let s;
|
|
781
791
|
for (; (s = t.next()) !== null; ) {
|
|
@@ -784,150 +794,150 @@ function ts(t) {
|
|
|
784
794
|
}
|
|
785
795
|
return e;
|
|
786
796
|
}
|
|
787
|
-
const
|
|
788
|
-
function
|
|
797
|
+
const rs = 703025676, ns = 814454131, is = 972460562, os = 976255570, as = 1368629611, ls = 1479280922, Is = 1533537016, cs = 2274386296, Es = 2603556958, _s = 2885165957, fs = 3568439632;
|
|
798
|
+
function hs(t) {
|
|
789
799
|
const e = {};
|
|
790
800
|
return Ut(e), e;
|
|
791
801
|
}
|
|
792
802
|
function Ut(t) {
|
|
793
803
|
return t.FunctionId = T.fromBytes(new Uint8Array(16)), t.FunctionName = "", t.Parameters = [], t.ResultTypeName = "", t.IsEnumerable = !1, t.EnumerableItemTypeName = "", t.IsCancellable = !1, t.Description = "", t.LlmInlineResult = !1, t.LlmCallOnlyOnce = !1, t.RequiresInstance = !1, t;
|
|
794
804
|
}
|
|
795
|
-
function
|
|
796
|
-
const s = e ??
|
|
797
|
-
return Ut(s),
|
|
805
|
+
function us(t, e) {
|
|
806
|
+
const s = e ?? hs();
|
|
807
|
+
return Ut(s), Ts(t, s), s;
|
|
798
808
|
}
|
|
799
|
-
function
|
|
809
|
+
function Ts(t, e) {
|
|
800
810
|
let s;
|
|
801
811
|
for (; (s = t.next()) !== null; )
|
|
802
812
|
switch (s.fieldId) {
|
|
803
|
-
case
|
|
813
|
+
case rs: {
|
|
804
814
|
if (s.isNull) throw new Error();
|
|
805
815
|
e.ResultTypeName = s.asString();
|
|
806
816
|
break;
|
|
807
817
|
}
|
|
808
|
-
case
|
|
818
|
+
case ns: {
|
|
809
819
|
if (s.isNull) throw new Error();
|
|
810
820
|
e.FunctionName = s.asString();
|
|
811
821
|
break;
|
|
812
822
|
}
|
|
813
|
-
case
|
|
823
|
+
case is: {
|
|
814
824
|
if (s.isNull) throw new Error();
|
|
815
825
|
e.EnumerableItemTypeName = s.asString();
|
|
816
826
|
break;
|
|
817
827
|
}
|
|
818
|
-
case
|
|
828
|
+
case os: {
|
|
819
829
|
if (s.isNull) throw new Error();
|
|
820
830
|
e.FunctionId = s.asGuid();
|
|
821
831
|
break;
|
|
822
832
|
}
|
|
823
|
-
case
|
|
833
|
+
case as: {
|
|
824
834
|
if (s.isNull) throw new Error();
|
|
825
835
|
e.Description = s.asString();
|
|
826
836
|
break;
|
|
827
837
|
}
|
|
828
|
-
case
|
|
838
|
+
case ls: {
|
|
829
839
|
if (s.isNull) throw new Error();
|
|
830
840
|
e.IsCancellable = s.asBool();
|
|
831
841
|
break;
|
|
832
842
|
}
|
|
833
|
-
case
|
|
843
|
+
case Is: {
|
|
834
844
|
if (s.isNull) throw new Error();
|
|
835
845
|
e.RequiresInstance = s.asBool();
|
|
836
846
|
break;
|
|
837
847
|
}
|
|
838
|
-
case
|
|
848
|
+
case cs: {
|
|
839
849
|
if (s.isNull) throw new Error();
|
|
840
850
|
e.LlmInlineResult = s.asBool();
|
|
841
851
|
break;
|
|
842
852
|
}
|
|
843
|
-
case
|
|
853
|
+
case Es: {
|
|
844
854
|
if (s.isNull) throw new Error();
|
|
845
855
|
e.IsEnumerable = s.asBool();
|
|
846
856
|
break;
|
|
847
857
|
}
|
|
848
|
-
case
|
|
858
|
+
case _s: {
|
|
849
859
|
if (s.isNull) throw new Error();
|
|
850
|
-
e.Parameters =
|
|
860
|
+
e.Parameters = Ns(s.asArray());
|
|
851
861
|
break;
|
|
852
862
|
}
|
|
853
|
-
case
|
|
863
|
+
case fs: {
|
|
854
864
|
if (s.isNull) throw new Error();
|
|
855
865
|
e.LlmCallOnlyOnce = s.asBool();
|
|
856
866
|
break;
|
|
857
867
|
}
|
|
858
868
|
}
|
|
859
869
|
}
|
|
860
|
-
function
|
|
870
|
+
function Ns(t) {
|
|
861
871
|
const e = [];
|
|
862
872
|
let s;
|
|
863
873
|
for (; (s = t.next()) !== null; )
|
|
864
|
-
e.push(
|
|
874
|
+
e.push(Ls(s.asObject()));
|
|
865
875
|
return e;
|
|
866
876
|
}
|
|
867
|
-
const
|
|
868
|
-
function
|
|
877
|
+
const As = 607861992, Ss = 894485888, ds = 972460562, ys = 1368629611, ws = 1883521406, Cs = 2603556958, Ds = 3609695522, Us = 4075263697, Rs = 4257460908;
|
|
878
|
+
function ms(t) {
|
|
869
879
|
const e = {};
|
|
870
880
|
return Rt(e), e;
|
|
871
881
|
}
|
|
872
882
|
function Rt(t) {
|
|
873
883
|
return t.ParameterIndex = 0, t.ParameterName = "", t.TypeName = "", t.HasDefaultValue = !1, t.DefaultValueJson = "", t.DefaultValueData = new Uint8Array(0), t.IsEnumerable = !1, t.EnumerableItemTypeName = "", t.Description = "", t;
|
|
874
884
|
}
|
|
875
|
-
function
|
|
876
|
-
const s = e ??
|
|
877
|
-
return Rt(s),
|
|
885
|
+
function Ls(t, e) {
|
|
886
|
+
const s = e ?? ms();
|
|
887
|
+
return Rt(s), gs(t, s), s;
|
|
878
888
|
}
|
|
879
|
-
function
|
|
889
|
+
function gs(t, e) {
|
|
880
890
|
let s;
|
|
881
891
|
for (; (s = t.next()) !== null; )
|
|
882
892
|
switch (s.fieldId) {
|
|
883
|
-
case
|
|
893
|
+
case As: {
|
|
884
894
|
if (s.isNull) throw new Error();
|
|
885
895
|
e.HasDefaultValue = s.asBool();
|
|
886
896
|
break;
|
|
887
897
|
}
|
|
888
|
-
case
|
|
898
|
+
case Ss: {
|
|
889
899
|
if (s.isNull) throw new Error();
|
|
890
900
|
e.DefaultValueJson = s.asString();
|
|
891
901
|
break;
|
|
892
902
|
}
|
|
893
|
-
case
|
|
903
|
+
case ds: {
|
|
894
904
|
if (s.isNull) throw new Error();
|
|
895
905
|
e.EnumerableItemTypeName = s.asString();
|
|
896
906
|
break;
|
|
897
907
|
}
|
|
898
|
-
case
|
|
908
|
+
case ys: {
|
|
899
909
|
if (s.isNull) throw new Error();
|
|
900
910
|
e.Description = s.asString();
|
|
901
911
|
break;
|
|
902
912
|
}
|
|
903
|
-
case
|
|
913
|
+
case ws: {
|
|
904
914
|
if (s.isNull) throw new Error();
|
|
905
915
|
e.DefaultValueData = s.asBinary();
|
|
906
916
|
break;
|
|
907
917
|
}
|
|
908
|
-
case
|
|
918
|
+
case Cs: {
|
|
909
919
|
if (s.isNull) throw new Error();
|
|
910
920
|
e.IsEnumerable = s.asBool();
|
|
911
921
|
break;
|
|
912
922
|
}
|
|
913
|
-
case
|
|
923
|
+
case Ds: {
|
|
914
924
|
if (s.isNull) throw new Error();
|
|
915
925
|
e.TypeName = s.asString();
|
|
916
926
|
break;
|
|
917
927
|
}
|
|
918
|
-
case
|
|
928
|
+
case Us: {
|
|
919
929
|
if (s.isNull) throw new Error();
|
|
920
930
|
e.ParameterName = s.asString();
|
|
921
931
|
break;
|
|
922
932
|
}
|
|
923
|
-
case
|
|
933
|
+
case Rs: {
|
|
924
934
|
if (s.isNull) throw new Error();
|
|
925
935
|
e.ParameterIndex = s.asInt32();
|
|
926
936
|
break;
|
|
927
937
|
}
|
|
928
938
|
}
|
|
929
939
|
}
|
|
930
|
-
const
|
|
940
|
+
const Os = 3167053791, Ps = 3342364356, bs = 3612929027;
|
|
931
941
|
function mt(t) {
|
|
932
942
|
const e = {};
|
|
933
943
|
return Lt(e), e;
|
|
@@ -935,39 +945,39 @@ function mt(t) {
|
|
|
935
945
|
function Lt(t) {
|
|
936
946
|
return t.Category = "", t.Type = ut.Face, t.FaceBlendshapes = [], t;
|
|
937
947
|
}
|
|
938
|
-
function
|
|
948
|
+
function Fs(t, e) {
|
|
939
949
|
const s = e ?? mt();
|
|
940
|
-
return Lt(s),
|
|
950
|
+
return Lt(s), ps(t, s), s;
|
|
941
951
|
}
|
|
942
|
-
function
|
|
952
|
+
function ps(t, e) {
|
|
943
953
|
let s;
|
|
944
954
|
for (; (s = t.next()) !== null; )
|
|
945
955
|
switch (s.fieldId) {
|
|
946
|
-
case
|
|
956
|
+
case Os: {
|
|
947
957
|
if (s.isNull) throw new Error();
|
|
948
958
|
e.Type = s.asInt32();
|
|
949
959
|
break;
|
|
950
960
|
}
|
|
951
|
-
case
|
|
961
|
+
case Ps: {
|
|
952
962
|
if (s.isNull) throw new Error();
|
|
953
|
-
e.FaceBlendshapes =
|
|
963
|
+
e.FaceBlendshapes = vs(s.asArray());
|
|
954
964
|
break;
|
|
955
965
|
}
|
|
956
|
-
case
|
|
966
|
+
case bs: {
|
|
957
967
|
if (s.isNull) throw new Error();
|
|
958
968
|
e.Category = s.asString();
|
|
959
969
|
break;
|
|
960
970
|
}
|
|
961
971
|
}
|
|
962
972
|
}
|
|
963
|
-
function
|
|
973
|
+
function vs(t) {
|
|
964
974
|
const e = [];
|
|
965
975
|
let s;
|
|
966
976
|
for (; (s = t.next()) !== null; )
|
|
967
977
|
e.push(s.asString());
|
|
968
978
|
return e;
|
|
969
979
|
}
|
|
970
|
-
const
|
|
980
|
+
const Ms = 3612929027;
|
|
971
981
|
function gt(t) {
|
|
972
982
|
const e = {};
|
|
973
983
|
return Ot(e), e;
|
|
@@ -975,473 +985,483 @@ function gt(t) {
|
|
|
975
985
|
function Ot(t) {
|
|
976
986
|
return t.Category = "", t;
|
|
977
987
|
}
|
|
978
|
-
function
|
|
988
|
+
function ks(t, e) {
|
|
979
989
|
const s = e ?? gt();
|
|
980
|
-
return Ot(s),
|
|
990
|
+
return Ot(s), Gs(t, s), s;
|
|
981
991
|
}
|
|
982
|
-
function
|
|
992
|
+
function Gs(t, e) {
|
|
983
993
|
let s;
|
|
984
994
|
for (; (s = t.next()) !== null; )
|
|
985
995
|
switch (s.fieldId) {
|
|
986
|
-
case
|
|
996
|
+
case Ms: {
|
|
987
997
|
if (s.isNull) throw new Error();
|
|
988
998
|
e.Category = s.asString();
|
|
989
999
|
break;
|
|
990
1000
|
}
|
|
991
1001
|
}
|
|
992
1002
|
}
|
|
993
|
-
const
|
|
1003
|
+
const Vs = 161083277, Bs = 164808083, xs = 1368629611, Hs = 2745379226, Ys = 2950031986, $s = 3282782683, Ks = 3284746250, js = 4065070594;
|
|
994
1004
|
function Pt(t) {
|
|
995
1005
|
const e = {};
|
|
996
1006
|
return bt(e), e;
|
|
997
1007
|
}
|
|
998
1008
|
function bt(t) {
|
|
999
|
-
return t.Description = "", t.
|
|
1009
|
+
return t.StreamId = "", t.Description = "", t.SourceType = "", t.Codec = Nt.H264, t.CodecDetails = "", t.Width = 0, t.Height = 0, t.Framerate = 30, t;
|
|
1000
1010
|
}
|
|
1001
|
-
function
|
|
1011
|
+
function Xs(t, e) {
|
|
1002
1012
|
const s = e ?? Pt();
|
|
1003
|
-
return bt(s),
|
|
1013
|
+
return bt(s), zs(t, s), s;
|
|
1004
1014
|
}
|
|
1005
|
-
function
|
|
1015
|
+
function zs(t, e) {
|
|
1006
1016
|
let s;
|
|
1007
1017
|
for (; (s = t.next()) !== null; )
|
|
1008
1018
|
switch (s.fieldId) {
|
|
1009
|
-
case
|
|
1019
|
+
case Vs: {
|
|
1010
1020
|
if (s.isNull) throw new Error();
|
|
1011
|
-
e.
|
|
1021
|
+
e.StreamId = s.asString();
|
|
1012
1022
|
break;
|
|
1013
1023
|
}
|
|
1014
|
-
case
|
|
1024
|
+
case Bs: {
|
|
1015
1025
|
if (s.isNull) throw new Error();
|
|
1016
|
-
e.
|
|
1026
|
+
e.Framerate = s.asFloat64();
|
|
1017
1027
|
break;
|
|
1018
1028
|
}
|
|
1019
|
-
case
|
|
1029
|
+
case xs: {
|
|
1020
1030
|
if (s.isNull) throw new Error();
|
|
1021
|
-
e.
|
|
1031
|
+
e.Description = s.asString();
|
|
1022
1032
|
break;
|
|
1023
1033
|
}
|
|
1024
|
-
case
|
|
1034
|
+
case Hs: {
|
|
1025
1035
|
if (s.isNull) throw new Error();
|
|
1026
|
-
e.
|
|
1036
|
+
e.CodecDetails = s.asString();
|
|
1027
1037
|
break;
|
|
1028
1038
|
}
|
|
1029
|
-
case
|
|
1039
|
+
case Ys: {
|
|
1030
1040
|
if (s.isNull) throw new Error();
|
|
1031
1041
|
e.Height = s.asInt32();
|
|
1032
1042
|
break;
|
|
1033
1043
|
}
|
|
1034
|
-
case
|
|
1044
|
+
case $s: {
|
|
1045
|
+
if (s.isNull) throw new Error();
|
|
1046
|
+
e.SourceType = s.asString();
|
|
1047
|
+
break;
|
|
1048
|
+
}
|
|
1049
|
+
case Ks: {
|
|
1035
1050
|
if (s.isNull) throw new Error();
|
|
1036
1051
|
e.Codec = s.asInt32();
|
|
1037
1052
|
break;
|
|
1038
1053
|
}
|
|
1039
|
-
case
|
|
1054
|
+
case js: {
|
|
1040
1055
|
if (s.isNull) throw new Error();
|
|
1041
1056
|
e.Width = s.asInt32();
|
|
1042
1057
|
break;
|
|
1043
1058
|
}
|
|
1044
1059
|
}
|
|
1045
1060
|
}
|
|
1046
|
-
const
|
|
1047
|
-
function
|
|
1061
|
+
const Ws = 65539, Js = 693643444, qs = 1144553441, Qs = 1497620243, Zs = 1559330978, tr = 1976546434, er = 1999510636, sr = 2271236852, rr = 2277643855, nr = 2469008121, ir = 3042922213, or = 3064612128, ar = 3219210453, lr = 3504054055, Ir = 3678477544, cr = 3696445035, Er = 3707543140, _r = 3712281496, fr = 3895362455, hr = 3897397815, ur = 4225107827;
|
|
1062
|
+
function Tr(t) {
|
|
1048
1063
|
const e = {};
|
|
1049
1064
|
return Ft(e), e;
|
|
1050
1065
|
}
|
|
1051
1066
|
function Ft(t) {
|
|
1052
|
-
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.SessionId = "", t.ChannelUrl = "", t.FirstUserId = "", t.PrimaryUserId = "", t.OrganisationName = "", t.SpaceName = "", t.ChannelName = "", t.ServerRunType =
|
|
1067
|
+
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.SessionId = "", t.ChannelUrl = "", t.SessionChannelUrl = "", t.FirstUserId = "", t.PrimaryUserId = "", t.OrganisationName = "", t.SpaceName = "", t.ChannelName = "", t.ServerRunType = St.Local, t.AppSourceType = dt.Bundle, t.PublicAccess = !1, t.DebugMode = !1, t;
|
|
1053
1068
|
}
|
|
1054
|
-
function
|
|
1069
|
+
function Nr(t, e) {
|
|
1055
1070
|
const s = L.create(t);
|
|
1056
|
-
return
|
|
1071
|
+
return Ar(s, e);
|
|
1057
1072
|
}
|
|
1058
|
-
function
|
|
1059
|
-
const s = e ??
|
|
1060
|
-
return Ft(s),
|
|
1073
|
+
function Ar(t, e) {
|
|
1074
|
+
const s = e ?? Tr();
|
|
1075
|
+
return Ft(s), Sr(t, s), s;
|
|
1061
1076
|
}
|
|
1062
|
-
function
|
|
1077
|
+
function Sr(t, e) {
|
|
1063
1078
|
let s;
|
|
1064
1079
|
for (; (s = t.next()) !== null; )
|
|
1065
1080
|
switch (s.fieldId) {
|
|
1066
|
-
case
|
|
1081
|
+
case Js: {
|
|
1067
1082
|
if (s.isNull) throw new Error();
|
|
1068
1083
|
e.FirstUserId = s.asString();
|
|
1069
1084
|
break;
|
|
1070
1085
|
}
|
|
1071
|
-
case
|
|
1086
|
+
case qs: {
|
|
1072
1087
|
if (s.isNull) throw new Error();
|
|
1073
|
-
e.Clients =
|
|
1088
|
+
e.Clients = yr(s.asDictionary());
|
|
1074
1089
|
break;
|
|
1075
1090
|
}
|
|
1076
|
-
case
|
|
1091
|
+
case Qs: {
|
|
1077
1092
|
if (s.isNull) throw new Error();
|
|
1078
|
-
e.TrackingStreams =
|
|
1093
|
+
e.TrackingStreams = wr(s.asDictionary());
|
|
1079
1094
|
break;
|
|
1080
1095
|
}
|
|
1081
|
-
case
|
|
1096
|
+
case Zs: {
|
|
1082
1097
|
if (s.isNull) throw new Error();
|
|
1083
1098
|
e.ChannelId = s.asString();
|
|
1084
1099
|
break;
|
|
1085
1100
|
}
|
|
1086
|
-
case
|
|
1101
|
+
case tr: {
|
|
1087
1102
|
if (s.isNull) throw new Error();
|
|
1088
1103
|
e.AppSourceType = s.asInt32();
|
|
1089
1104
|
break;
|
|
1090
1105
|
}
|
|
1091
|
-
case
|
|
1106
|
+
case er: {
|
|
1092
1107
|
if (s.isNull) throw new Error();
|
|
1093
1108
|
e.SessionId = s.asString();
|
|
1094
1109
|
break;
|
|
1095
1110
|
}
|
|
1096
|
-
case
|
|
1111
|
+
case sr: {
|
|
1112
|
+
if (s.isNull) throw new Error();
|
|
1113
|
+
e.SessionChannelUrl = s.asString();
|
|
1114
|
+
break;
|
|
1115
|
+
}
|
|
1116
|
+
case rr: {
|
|
1097
1117
|
if (s.isNull) throw new Error();
|
|
1098
1118
|
e.ChannelUrl = s.asString();
|
|
1099
1119
|
break;
|
|
1100
1120
|
}
|
|
1101
|
-
case
|
|
1121
|
+
case nr: {
|
|
1102
1122
|
if (s.isNull) throw new Error();
|
|
1103
1123
|
e.ChannelName = s.asString();
|
|
1104
1124
|
break;
|
|
1105
1125
|
}
|
|
1106
|
-
case
|
|
1126
|
+
case ir: {
|
|
1107
1127
|
if (s.isNull) throw new Error();
|
|
1108
1128
|
e.PublicAccess = s.asBool();
|
|
1109
1129
|
break;
|
|
1110
1130
|
}
|
|
1111
|
-
case
|
|
1131
|
+
case or: {
|
|
1112
1132
|
if (s.isNull) throw new Error();
|
|
1113
1133
|
e.ServerRunType = s.asInt32();
|
|
1114
1134
|
break;
|
|
1115
1135
|
}
|
|
1116
|
-
case
|
|
1136
|
+
case ar: {
|
|
1117
1137
|
if (s.isNull) throw new Error();
|
|
1118
1138
|
e.OrganisationName = s.asString();
|
|
1119
1139
|
break;
|
|
1120
1140
|
}
|
|
1121
|
-
case
|
|
1141
|
+
case lr: {
|
|
1122
1142
|
if (s.isNull) throw new Error();
|
|
1123
1143
|
e.DebugMode = s.asBool();
|
|
1124
1144
|
break;
|
|
1125
1145
|
}
|
|
1126
|
-
case
|
|
1146
|
+
case Ir: {
|
|
1127
1147
|
if (s.isNull) throw new Error();
|
|
1128
|
-
e.Functions =
|
|
1148
|
+
e.Functions = Cr(s.asDictionary());
|
|
1129
1149
|
break;
|
|
1130
1150
|
}
|
|
1131
|
-
case
|
|
1151
|
+
case cr: {
|
|
1132
1152
|
if (s.isNull) throw new Error();
|
|
1133
|
-
e.UIStreams =
|
|
1153
|
+
e.UIStreams = Dr(s.asDictionary());
|
|
1134
1154
|
break;
|
|
1135
1155
|
}
|
|
1136
|
-
case
|
|
1156
|
+
case Er: {
|
|
1137
1157
|
if (s.isNull) throw new Error();
|
|
1138
1158
|
e.SpaceId = s.asString();
|
|
1139
1159
|
break;
|
|
1140
1160
|
}
|
|
1141
|
-
case
|
|
1161
|
+
case _r: {
|
|
1142
1162
|
if (s.isNull) throw new Error();
|
|
1143
1163
|
e.PrimaryUserId = s.asString();
|
|
1144
1164
|
break;
|
|
1145
1165
|
}
|
|
1146
|
-
case
|
|
1166
|
+
case fr: {
|
|
1147
1167
|
if (s.isNull) throw new Error();
|
|
1148
|
-
e.AudioStreams =
|
|
1168
|
+
e.AudioStreams = Ur(s.asDictionary());
|
|
1149
1169
|
break;
|
|
1150
1170
|
}
|
|
1151
|
-
case
|
|
1171
|
+
case hr: {
|
|
1152
1172
|
if (s.isNull) throw new Error();
|
|
1153
|
-
e.VideoStreams =
|
|
1173
|
+
e.VideoStreams = Rr(s.asDictionary());
|
|
1154
1174
|
break;
|
|
1155
1175
|
}
|
|
1156
|
-
case
|
|
1176
|
+
case ur: {
|
|
1157
1177
|
if (s.isNull) throw new Error();
|
|
1158
1178
|
e.SpaceName = s.asString();
|
|
1159
1179
|
break;
|
|
1160
1180
|
}
|
|
1161
1181
|
}
|
|
1162
1182
|
}
|
|
1163
|
-
async function
|
|
1164
|
-
const s = await $(t,
|
|
1165
|
-
return
|
|
1183
|
+
async function dr(t, e) {
|
|
1184
|
+
const s = await $(t, Ws);
|
|
1185
|
+
return Nr(s, e);
|
|
1166
1186
|
}
|
|
1167
|
-
function
|
|
1187
|
+
function yr(t) {
|
|
1168
1188
|
const e = /* @__PURE__ */ Object.create(null);
|
|
1169
1189
|
let s;
|
|
1170
1190
|
for (; (s = t.next()) !== null; ) {
|
|
1171
1191
|
const r = s.key.asInt32();
|
|
1172
|
-
e[r] =
|
|
1192
|
+
e[r] = ts(s.value.asObject());
|
|
1173
1193
|
}
|
|
1174
1194
|
return e;
|
|
1175
1195
|
}
|
|
1176
|
-
function
|
|
1196
|
+
function wr(t) {
|
|
1177
1197
|
const e = /* @__PURE__ */ Object.create(null);
|
|
1178
1198
|
let s;
|
|
1179
1199
|
for (; (s = t.next()) !== null; ) {
|
|
1180
1200
|
const r = s.key.asString();
|
|
1181
|
-
e[r] =
|
|
1201
|
+
e[r] = tn(s.value.asObject());
|
|
1182
1202
|
}
|
|
1183
1203
|
return e;
|
|
1184
1204
|
}
|
|
1185
|
-
function
|
|
1205
|
+
function Cr(t) {
|
|
1186
1206
|
const e = /* @__PURE__ */ Object.create(null);
|
|
1187
1207
|
let s;
|
|
1188
1208
|
for (; (s = t.next()) !== null; ) {
|
|
1189
1209
|
const r = s.key.asInt32();
|
|
1190
|
-
e[r] =
|
|
1210
|
+
e[r] = mr(s.value.asArray());
|
|
1191
1211
|
}
|
|
1192
1212
|
return e;
|
|
1193
1213
|
}
|
|
1194
|
-
function
|
|
1214
|
+
function Dr(t) {
|
|
1195
1215
|
const e = /* @__PURE__ */ Object.create(null);
|
|
1196
1216
|
let s;
|
|
1197
1217
|
for (; (s = t.next()) !== null; ) {
|
|
1198
1218
|
const r = s.key.asString();
|
|
1199
|
-
e[r] =
|
|
1219
|
+
e[r] = Fr(s.value.asObject());
|
|
1200
1220
|
}
|
|
1201
1221
|
return e;
|
|
1202
1222
|
}
|
|
1203
|
-
function
|
|
1223
|
+
function Ur(t) {
|
|
1204
1224
|
const e = /* @__PURE__ */ Object.create(null);
|
|
1205
1225
|
let s;
|
|
1206
1226
|
for (; (s = t.next()) !== null; ) {
|
|
1207
1227
|
const r = s.key.asString();
|
|
1208
|
-
e[r] =
|
|
1228
|
+
e[r] = Br(s.value.asObject());
|
|
1209
1229
|
}
|
|
1210
1230
|
return e;
|
|
1211
1231
|
}
|
|
1212
|
-
function
|
|
1232
|
+
function Rr(t) {
|
|
1213
1233
|
const e = /* @__PURE__ */ Object.create(null);
|
|
1214
1234
|
let s;
|
|
1215
1235
|
for (; (s = t.next()) !== null; ) {
|
|
1216
1236
|
const r = s.key.asString();
|
|
1217
|
-
e[r] =
|
|
1237
|
+
e[r] = Xr(s.value.asObject());
|
|
1218
1238
|
}
|
|
1219
1239
|
return e;
|
|
1220
1240
|
}
|
|
1221
|
-
function
|
|
1241
|
+
function mr(t) {
|
|
1222
1242
|
const e = [];
|
|
1223
1243
|
let s;
|
|
1224
1244
|
for (; (s = t.next()) !== null; )
|
|
1225
|
-
e.push(
|
|
1245
|
+
e.push(us(s.asObject()));
|
|
1226
1246
|
return e;
|
|
1227
1247
|
}
|
|
1228
|
-
const
|
|
1229
|
-
function
|
|
1248
|
+
const Lr = 161083277, gr = 325678206, Or = 3469892363, Pr = 3645544153;
|
|
1249
|
+
function br(t) {
|
|
1230
1250
|
const e = {};
|
|
1231
1251
|
return pt(e), e;
|
|
1232
1252
|
}
|
|
1233
1253
|
function pt(t) {
|
|
1234
1254
|
return t.StreamId = "", t.ClientSessionId = 0, t.TrackId = 0, t.Info = gt(), t;
|
|
1235
1255
|
}
|
|
1236
|
-
function
|
|
1237
|
-
const s = e ??
|
|
1238
|
-
return pt(s),
|
|
1256
|
+
function Fr(t, e) {
|
|
1257
|
+
const s = e ?? br();
|
|
1258
|
+
return pt(s), pr(t, s), s;
|
|
1239
1259
|
}
|
|
1240
|
-
function
|
|
1260
|
+
function pr(t, e) {
|
|
1241
1261
|
let s;
|
|
1242
1262
|
for (; (s = t.next()) !== null; )
|
|
1243
1263
|
switch (s.fieldId) {
|
|
1244
|
-
case
|
|
1264
|
+
case Lr: {
|
|
1245
1265
|
if (s.isNull) throw new Error();
|
|
1246
1266
|
e.StreamId = s.asString();
|
|
1247
1267
|
break;
|
|
1248
1268
|
}
|
|
1249
|
-
case
|
|
1269
|
+
case gr: {
|
|
1250
1270
|
if (s.isNull) throw new Error();
|
|
1251
1271
|
e.ClientSessionId = s.asInt32();
|
|
1252
1272
|
break;
|
|
1253
1273
|
}
|
|
1254
|
-
case
|
|
1274
|
+
case Or: {
|
|
1255
1275
|
if (s.isNull) throw new Error();
|
|
1256
1276
|
e.TrackId = s.asInt32();
|
|
1257
1277
|
break;
|
|
1258
1278
|
}
|
|
1259
|
-
case
|
|
1279
|
+
case Pr: {
|
|
1260
1280
|
if (s.isNull) throw new Error();
|
|
1261
|
-
e.Info =
|
|
1281
|
+
e.Info = ks(s.asObject());
|
|
1262
1282
|
break;
|
|
1263
1283
|
}
|
|
1264
1284
|
}
|
|
1265
1285
|
}
|
|
1266
|
-
const
|
|
1267
|
-
function
|
|
1286
|
+
const vr = 161083277, Mr = 325678206, kr = 3469892363, Gr = 3645544153;
|
|
1287
|
+
function Vr(t) {
|
|
1268
1288
|
const e = {};
|
|
1269
1289
|
return vt(e), e;
|
|
1270
1290
|
}
|
|
1271
1291
|
function vt(t) {
|
|
1272
1292
|
return t.StreamId = "", t.ClientSessionId = 0, t.TrackId = 0, t.Info = yt(), t;
|
|
1273
1293
|
}
|
|
1274
|
-
function
|
|
1275
|
-
const s = e ??
|
|
1276
|
-
return vt(s),
|
|
1294
|
+
function Br(t, e) {
|
|
1295
|
+
const s = e ?? Vr();
|
|
1296
|
+
return vt(s), xr(t, s), s;
|
|
1277
1297
|
}
|
|
1278
|
-
function
|
|
1298
|
+
function xr(t, e) {
|
|
1279
1299
|
let s;
|
|
1280
1300
|
for (; (s = t.next()) !== null; )
|
|
1281
1301
|
switch (s.fieldId) {
|
|
1282
|
-
case
|
|
1302
|
+
case vr: {
|
|
1283
1303
|
if (s.isNull) throw new Error();
|
|
1284
1304
|
e.StreamId = s.asString();
|
|
1285
1305
|
break;
|
|
1286
1306
|
}
|
|
1287
|
-
case
|
|
1307
|
+
case Mr: {
|
|
1288
1308
|
if (s.isNull) throw new Error();
|
|
1289
1309
|
e.ClientSessionId = s.asInt32();
|
|
1290
1310
|
break;
|
|
1291
1311
|
}
|
|
1292
|
-
case
|
|
1312
|
+
case kr: {
|
|
1293
1313
|
if (s.isNull) throw new Error();
|
|
1294
1314
|
e.TrackId = s.asInt32();
|
|
1295
1315
|
break;
|
|
1296
1316
|
}
|
|
1297
|
-
case
|
|
1317
|
+
case Gr: {
|
|
1298
1318
|
if (s.isNull) throw new Error();
|
|
1299
|
-
e.Info =
|
|
1319
|
+
e.Info = Se(s.asObject());
|
|
1300
1320
|
break;
|
|
1301
1321
|
}
|
|
1302
1322
|
}
|
|
1303
1323
|
}
|
|
1304
|
-
const
|
|
1305
|
-
function
|
|
1324
|
+
const Hr = 161083277, Yr = 325678206, $r = 3469892363, Kr = 3645544153;
|
|
1325
|
+
function jr(t) {
|
|
1306
1326
|
const e = {};
|
|
1307
1327
|
return Mt(e), e;
|
|
1308
1328
|
}
|
|
1309
1329
|
function Mt(t) {
|
|
1310
1330
|
return t.StreamId = "", t.ClientSessionId = 0, t.TrackId = 0, t.Info = Pt(), t;
|
|
1311
1331
|
}
|
|
1312
|
-
function
|
|
1313
|
-
const s = e ??
|
|
1314
|
-
return Mt(s),
|
|
1332
|
+
function Xr(t, e) {
|
|
1333
|
+
const s = e ?? jr();
|
|
1334
|
+
return Mt(s), zr(t, s), s;
|
|
1315
1335
|
}
|
|
1316
|
-
function
|
|
1336
|
+
function zr(t, e) {
|
|
1317
1337
|
let s;
|
|
1318
1338
|
for (; (s = t.next()) !== null; )
|
|
1319
1339
|
switch (s.fieldId) {
|
|
1320
|
-
case
|
|
1340
|
+
case Hr: {
|
|
1321
1341
|
if (s.isNull) throw new Error();
|
|
1322
1342
|
e.StreamId = s.asString();
|
|
1323
1343
|
break;
|
|
1324
1344
|
}
|
|
1325
|
-
case
|
|
1345
|
+
case Yr: {
|
|
1326
1346
|
if (s.isNull) throw new Error();
|
|
1327
1347
|
e.ClientSessionId = s.asInt32();
|
|
1328
1348
|
break;
|
|
1329
1349
|
}
|
|
1330
|
-
case
|
|
1350
|
+
case $r: {
|
|
1331
1351
|
if (s.isNull) throw new Error();
|
|
1332
1352
|
e.TrackId = s.asInt32();
|
|
1333
1353
|
break;
|
|
1334
1354
|
}
|
|
1335
|
-
case
|
|
1355
|
+
case Kr: {
|
|
1336
1356
|
if (s.isNull) throw new Error();
|
|
1337
|
-
e.Info =
|
|
1357
|
+
e.Info = Xs(s.asObject());
|
|
1338
1358
|
break;
|
|
1339
1359
|
}
|
|
1340
1360
|
}
|
|
1341
1361
|
}
|
|
1342
|
-
const
|
|
1343
|
-
function
|
|
1362
|
+
const Wr = 161083277, Jr = 325678206, qr = 3469892363, Qr = 3645544153;
|
|
1363
|
+
function Zr(t) {
|
|
1344
1364
|
const e = {};
|
|
1345
1365
|
return kt(e), e;
|
|
1346
1366
|
}
|
|
1347
1367
|
function kt(t) {
|
|
1348
1368
|
return t.StreamId = "", t.ClientSessionId = 0, t.TrackId = 0, t.Info = mt(), t;
|
|
1349
1369
|
}
|
|
1350
|
-
function
|
|
1351
|
-
const s = e ??
|
|
1352
|
-
return kt(s),
|
|
1370
|
+
function tn(t, e) {
|
|
1371
|
+
const s = e ?? Zr();
|
|
1372
|
+
return kt(s), en(t, s), s;
|
|
1353
1373
|
}
|
|
1354
|
-
function
|
|
1374
|
+
function en(t, e) {
|
|
1355
1375
|
let s;
|
|
1356
1376
|
for (; (s = t.next()) !== null; )
|
|
1357
1377
|
switch (s.fieldId) {
|
|
1358
|
-
case
|
|
1378
|
+
case Wr: {
|
|
1359
1379
|
if (s.isNull) throw new Error();
|
|
1360
1380
|
e.StreamId = s.asString();
|
|
1361
1381
|
break;
|
|
1362
1382
|
}
|
|
1363
|
-
case
|
|
1383
|
+
case Jr: {
|
|
1364
1384
|
if (s.isNull) throw new Error();
|
|
1365
1385
|
e.ClientSessionId = s.asInt32();
|
|
1366
1386
|
break;
|
|
1367
1387
|
}
|
|
1368
|
-
case
|
|
1388
|
+
case qr: {
|
|
1369
1389
|
if (s.isNull) throw new Error();
|
|
1370
1390
|
e.TrackId = s.asInt32();
|
|
1371
1391
|
break;
|
|
1372
1392
|
}
|
|
1373
|
-
case
|
|
1393
|
+
case Qr: {
|
|
1374
1394
|
if (s.isNull) throw new Error();
|
|
1375
|
-
e.Info =
|
|
1395
|
+
e.Info = Fs(s.asObject());
|
|
1376
1396
|
break;
|
|
1377
1397
|
}
|
|
1378
1398
|
}
|
|
1379
1399
|
}
|
|
1380
|
-
const
|
|
1381
|
-
function
|
|
1400
|
+
const sn = 1405462580, rn = 2968276160;
|
|
1401
|
+
function nn(t) {
|
|
1382
1402
|
const e = {};
|
|
1383
|
-
return
|
|
1403
|
+
return Gt(e), e;
|
|
1384
1404
|
}
|
|
1385
|
-
function
|
|
1405
|
+
function Gt(t) {
|
|
1386
1406
|
return t.MimeType = "", t.Value = new Uint8Array(0), t;
|
|
1387
1407
|
}
|
|
1388
|
-
function
|
|
1389
|
-
const s = e ??
|
|
1390
|
-
return
|
|
1408
|
+
function on(t, e) {
|
|
1409
|
+
const s = e ?? nn();
|
|
1410
|
+
return Gt(s), an(t, s), s;
|
|
1391
1411
|
}
|
|
1392
|
-
function
|
|
1412
|
+
function an(t, e) {
|
|
1393
1413
|
let s;
|
|
1394
1414
|
for (; (s = t.next()) !== null; )
|
|
1395
1415
|
switch (s.fieldId) {
|
|
1396
|
-
case
|
|
1416
|
+
case sn: {
|
|
1397
1417
|
if (s.isNull) throw new Error();
|
|
1398
1418
|
e.Value = s.asBinary();
|
|
1399
1419
|
break;
|
|
1400
1420
|
}
|
|
1401
|
-
case
|
|
1421
|
+
case rn: {
|
|
1402
1422
|
if (s.isNull) throw new Error();
|
|
1403
1423
|
e.MimeType = s.asString();
|
|
1404
1424
|
break;
|
|
1405
1425
|
}
|
|
1406
1426
|
}
|
|
1407
1427
|
}
|
|
1408
|
-
const
|
|
1409
|
-
function
|
|
1428
|
+
const ln = 2097188, In = 979822885, cn = 2374537704;
|
|
1429
|
+
function En(t) {
|
|
1410
1430
|
const e = {};
|
|
1411
|
-
return
|
|
1431
|
+
return Vt(e), e;
|
|
1412
1432
|
}
|
|
1413
|
-
function
|
|
1433
|
+
function Vt(t) {
|
|
1414
1434
|
return t.StyleId = "", t.Style = /* @__PURE__ */ Object.create(null), t;
|
|
1415
1435
|
}
|
|
1416
|
-
function
|
|
1436
|
+
function _n(t, e) {
|
|
1417
1437
|
const s = L.create(t);
|
|
1418
|
-
return
|
|
1438
|
+
return fn(s, e);
|
|
1419
1439
|
}
|
|
1420
|
-
function
|
|
1421
|
-
const s = e ??
|
|
1422
|
-
return
|
|
1440
|
+
function fn(t, e) {
|
|
1441
|
+
const s = e ?? En();
|
|
1442
|
+
return Vt(s), hn(t, s), s;
|
|
1423
1443
|
}
|
|
1424
|
-
function
|
|
1444
|
+
function hn(t, e) {
|
|
1425
1445
|
let s;
|
|
1426
1446
|
for (; (s = t.next()) !== null; )
|
|
1427
1447
|
switch (s.fieldId) {
|
|
1428
|
-
case
|
|
1448
|
+
case In: {
|
|
1429
1449
|
if (s.isNull) throw new Error();
|
|
1430
1450
|
e.StyleId = s.asString();
|
|
1431
1451
|
break;
|
|
1432
1452
|
}
|
|
1433
|
-
case
|
|
1453
|
+
case cn: {
|
|
1434
1454
|
if (s.isNull) throw new Error();
|
|
1435
|
-
e.Style =
|
|
1455
|
+
e.Style = Tn(s.asDictionary());
|
|
1436
1456
|
break;
|
|
1437
1457
|
}
|
|
1438
1458
|
}
|
|
1439
1459
|
}
|
|
1440
|
-
async function
|
|
1441
|
-
const s = await $(t,
|
|
1442
|
-
return
|
|
1460
|
+
async function un(t, e) {
|
|
1461
|
+
const s = await $(t, ln);
|
|
1462
|
+
return _n(s, e);
|
|
1443
1463
|
}
|
|
1444
|
-
function
|
|
1464
|
+
function Tn(t) {
|
|
1445
1465
|
const e = /* @__PURE__ */ Object.create(null);
|
|
1446
1466
|
let s;
|
|
1447
1467
|
for (; (s = t.next()) !== null; ) {
|
|
@@ -1450,73 +1470,73 @@ function _n(t) {
|
|
|
1450
1470
|
}
|
|
1451
1471
|
return e;
|
|
1452
1472
|
}
|
|
1453
|
-
const
|
|
1454
|
-
function
|
|
1473
|
+
const Nn = 2097192, An = 2136687806;
|
|
1474
|
+
function Sn(t) {
|
|
1455
1475
|
const e = {};
|
|
1456
1476
|
return Bt(e), e;
|
|
1457
1477
|
}
|
|
1458
1478
|
function Bt(t) {
|
|
1459
1479
|
return t.Styles = [], t;
|
|
1460
1480
|
}
|
|
1461
|
-
function
|
|
1481
|
+
function dn(t, e) {
|
|
1462
1482
|
const s = L.create(t);
|
|
1463
|
-
return
|
|
1483
|
+
return yn(s, e);
|
|
1464
1484
|
}
|
|
1465
|
-
function
|
|
1466
|
-
const s = e ??
|
|
1467
|
-
return Bt(s),
|
|
1485
|
+
function yn(t, e) {
|
|
1486
|
+
const s = e ?? Sn();
|
|
1487
|
+
return Bt(s), wn(t, s), s;
|
|
1468
1488
|
}
|
|
1469
|
-
function
|
|
1489
|
+
function wn(t, e) {
|
|
1470
1490
|
let s;
|
|
1471
1491
|
for (; (s = t.next()) !== null; )
|
|
1472
1492
|
switch (s.fieldId) {
|
|
1473
|
-
case
|
|
1493
|
+
case An: {
|
|
1474
1494
|
if (s.isNull) throw new Error();
|
|
1475
|
-
e.Styles =
|
|
1495
|
+
e.Styles = Dn(s.asArray());
|
|
1476
1496
|
break;
|
|
1477
1497
|
}
|
|
1478
1498
|
}
|
|
1479
1499
|
}
|
|
1480
|
-
async function
|
|
1481
|
-
const s = await $(t,
|
|
1482
|
-
return
|
|
1500
|
+
async function Cn(t, e) {
|
|
1501
|
+
const s = await $(t, Nn);
|
|
1502
|
+
return dn(s, e);
|
|
1483
1503
|
}
|
|
1484
|
-
function
|
|
1504
|
+
function Dn(t) {
|
|
1485
1505
|
const e = [];
|
|
1486
1506
|
let s;
|
|
1487
1507
|
for (; (s = t.next()) !== null; )
|
|
1488
|
-
e.push(
|
|
1508
|
+
e.push(Ln(s.asObject()));
|
|
1489
1509
|
return e;
|
|
1490
1510
|
}
|
|
1491
|
-
const
|
|
1492
|
-
function
|
|
1511
|
+
const Un = 979822885, Rn = 2374537704;
|
|
1512
|
+
function mn(t) {
|
|
1493
1513
|
const e = {};
|
|
1494
1514
|
return xt(e), e;
|
|
1495
1515
|
}
|
|
1496
1516
|
function xt(t) {
|
|
1497
1517
|
return t.StyleId = "", t.Style = /* @__PURE__ */ Object.create(null), t;
|
|
1498
1518
|
}
|
|
1499
|
-
function
|
|
1500
|
-
const s = e ??
|
|
1501
|
-
return xt(s),
|
|
1519
|
+
function Ln(t, e) {
|
|
1520
|
+
const s = e ?? mn();
|
|
1521
|
+
return xt(s), gn(t, s), s;
|
|
1502
1522
|
}
|
|
1503
|
-
function
|
|
1523
|
+
function gn(t, e) {
|
|
1504
1524
|
let s;
|
|
1505
1525
|
for (; (s = t.next()) !== null; )
|
|
1506
1526
|
switch (s.fieldId) {
|
|
1507
|
-
case
|
|
1527
|
+
case Un: {
|
|
1508
1528
|
if (s.isNull) throw new Error();
|
|
1509
1529
|
e.StyleId = s.asString();
|
|
1510
1530
|
break;
|
|
1511
1531
|
}
|
|
1512
|
-
case
|
|
1532
|
+
case Rn: {
|
|
1513
1533
|
if (s.isNull) throw new Error();
|
|
1514
|
-
e.Style =
|
|
1534
|
+
e.Style = On(s.asDictionary());
|
|
1515
1535
|
break;
|
|
1516
1536
|
}
|
|
1517
1537
|
}
|
|
1518
1538
|
}
|
|
1519
|
-
function
|
|
1539
|
+
function On(t) {
|
|
1520
1540
|
const e = /* @__PURE__ */ Object.create(null);
|
|
1521
1541
|
let s;
|
|
1522
1542
|
for (; (s = t.next()) !== null; ) {
|
|
@@ -1525,86 +1545,86 @@ function Rn(t) {
|
|
|
1525
1545
|
}
|
|
1526
1546
|
return e;
|
|
1527
1547
|
}
|
|
1528
|
-
const
|
|
1529
|
-
function
|
|
1548
|
+
const Pn = 2097193, bn = 1415642792;
|
|
1549
|
+
function Fn(t) {
|
|
1530
1550
|
const e = {};
|
|
1531
1551
|
return Ht(e), e;
|
|
1532
1552
|
}
|
|
1533
1553
|
function Ht(t) {
|
|
1534
1554
|
return t.StyleIds = [], t;
|
|
1535
1555
|
}
|
|
1536
|
-
function
|
|
1556
|
+
function pn(t, e) {
|
|
1537
1557
|
const s = L.create(t);
|
|
1538
|
-
return
|
|
1558
|
+
return vn(s, e);
|
|
1539
1559
|
}
|
|
1540
|
-
function
|
|
1541
|
-
const s = e ??
|
|
1542
|
-
return Ht(s),
|
|
1560
|
+
function vn(t, e) {
|
|
1561
|
+
const s = e ?? Fn();
|
|
1562
|
+
return Ht(s), Mn(t, s), s;
|
|
1543
1563
|
}
|
|
1544
|
-
function
|
|
1564
|
+
function Mn(t, e) {
|
|
1545
1565
|
let s;
|
|
1546
1566
|
for (; (s = t.next()) !== null; )
|
|
1547
1567
|
switch (s.fieldId) {
|
|
1548
|
-
case
|
|
1568
|
+
case bn: {
|
|
1549
1569
|
if (s.isNull) throw new Error();
|
|
1550
|
-
e.StyleIds =
|
|
1570
|
+
e.StyleIds = Gn(s.asArray());
|
|
1551
1571
|
break;
|
|
1552
1572
|
}
|
|
1553
1573
|
}
|
|
1554
1574
|
}
|
|
1555
|
-
async function
|
|
1556
|
-
const s = await $(t,
|
|
1557
|
-
return
|
|
1575
|
+
async function kn(t, e) {
|
|
1576
|
+
const s = await $(t, Pn);
|
|
1577
|
+
return pn(s, e);
|
|
1558
1578
|
}
|
|
1559
|
-
function
|
|
1579
|
+
function Gn(t) {
|
|
1560
1580
|
const e = [];
|
|
1561
1581
|
let s;
|
|
1562
1582
|
for (; (s = t.next()) !== null; )
|
|
1563
1583
|
e.push(s.asString());
|
|
1564
1584
|
return e;
|
|
1565
1585
|
}
|
|
1566
|
-
const
|
|
1567
|
-
function
|
|
1586
|
+
const Vn = 2097190, Bn = 425183262, xn = 653781469;
|
|
1587
|
+
function Hn(t) {
|
|
1568
1588
|
const e = {};
|
|
1569
1589
|
return Yt(e), e;
|
|
1570
1590
|
}
|
|
1571
1591
|
function Yt(t) {
|
|
1572
1592
|
return t.Json = "", t.Payloads = /* @__PURE__ */ Object.create(null), t;
|
|
1573
1593
|
}
|
|
1574
|
-
function
|
|
1594
|
+
function Yn(t, e) {
|
|
1575
1595
|
const s = L.create(t);
|
|
1576
|
-
return
|
|
1596
|
+
return $n(s, e);
|
|
1577
1597
|
}
|
|
1578
|
-
function
|
|
1579
|
-
const s = e ??
|
|
1580
|
-
return Yt(s),
|
|
1598
|
+
function $n(t, e) {
|
|
1599
|
+
const s = e ?? Hn();
|
|
1600
|
+
return Yt(s), Kn(t, s), s;
|
|
1581
1601
|
}
|
|
1582
|
-
function
|
|
1602
|
+
function Kn(t, e) {
|
|
1583
1603
|
let s;
|
|
1584
1604
|
for (; (s = t.next()) !== null; )
|
|
1585
1605
|
switch (s.fieldId) {
|
|
1586
|
-
case
|
|
1606
|
+
case Bn: {
|
|
1587
1607
|
if (s.isNull) throw new Error();
|
|
1588
1608
|
e.Json = s.asString();
|
|
1589
1609
|
break;
|
|
1590
1610
|
}
|
|
1591
|
-
case
|
|
1611
|
+
case xn: {
|
|
1592
1612
|
if (s.isNull) throw new Error();
|
|
1593
|
-
e.Payloads =
|
|
1613
|
+
e.Payloads = Xn(s.asDictionary());
|
|
1594
1614
|
break;
|
|
1595
1615
|
}
|
|
1596
1616
|
}
|
|
1597
1617
|
}
|
|
1598
|
-
async function
|
|
1599
|
-
const s = await $(t,
|
|
1600
|
-
return
|
|
1618
|
+
async function jn(t, e) {
|
|
1619
|
+
const s = await $(t, Vn);
|
|
1620
|
+
return Yn(s, e);
|
|
1601
1621
|
}
|
|
1602
|
-
function
|
|
1622
|
+
function Xn(t) {
|
|
1603
1623
|
const e = /* @__PURE__ */ Object.create(null);
|
|
1604
1624
|
let s;
|
|
1605
1625
|
for (; (s = t.next()) !== null; ) {
|
|
1606
1626
|
const r = s.key.asString();
|
|
1607
|
-
e[r] =
|
|
1627
|
+
e[r] = on(s.value.asObject());
|
|
1608
1628
|
}
|
|
1609
1629
|
return e;
|
|
1610
1630
|
}
|
|
@@ -1664,7 +1684,7 @@ function ot(t, e) {
|
|
|
1664
1684
|
styleIds: l ?? []
|
|
1665
1685
|
};
|
|
1666
1686
|
}
|
|
1667
|
-
function
|
|
1687
|
+
function zn(t, e) {
|
|
1668
1688
|
if (!y(t))
|
|
1669
1689
|
throw new Error(`Invalid text delta at ${e}`);
|
|
1670
1690
|
const s = t.NodeId, r = t.PropertyName, n = t.Start, i = t.End, o = t.InsertedText;
|
|
@@ -1691,7 +1711,7 @@ function $n(t, e) {
|
|
|
1691
1711
|
insertedText: o
|
|
1692
1712
|
};
|
|
1693
1713
|
}
|
|
1694
|
-
function
|
|
1714
|
+
function Wn(t, e) {
|
|
1695
1715
|
if (!y(t))
|
|
1696
1716
|
throw new Error(`Invalid child insert at ${e}`);
|
|
1697
1717
|
const s = t.Index, r = t.Node;
|
|
@@ -1704,7 +1724,7 @@ function Kn(t, e) {
|
|
|
1704
1724
|
node: ot(r, `${e}.node`)
|
|
1705
1725
|
};
|
|
1706
1726
|
}
|
|
1707
|
-
function
|
|
1727
|
+
function Jn(t, e) {
|
|
1708
1728
|
if (!y(t))
|
|
1709
1729
|
throw new Error(`Invalid child move at ${e}`);
|
|
1710
1730
|
const s = t.NodeId, r = t.FromIndex, n = t.ToIndex;
|
|
@@ -1720,7 +1740,7 @@ function jn(t, e) {
|
|
|
1720
1740
|
toIndex: n
|
|
1721
1741
|
};
|
|
1722
1742
|
}
|
|
1723
|
-
function
|
|
1743
|
+
function qn(t, e) {
|
|
1724
1744
|
if (!y(t))
|
|
1725
1745
|
throw new Error(`Invalid child remove at ${e}`);
|
|
1726
1746
|
const s = t.NodeId, r = t.Index;
|
|
@@ -1733,18 +1753,18 @@ function Xn(t, e) {
|
|
|
1733
1753
|
index: r
|
|
1734
1754
|
};
|
|
1735
1755
|
}
|
|
1736
|
-
function
|
|
1756
|
+
function Qn(t, e) {
|
|
1737
1757
|
if (!y(t))
|
|
1738
1758
|
throw new Error(`Invalid node change at ${e}`);
|
|
1739
1759
|
const s = t.nodeId;
|
|
1740
1760
|
if (typeof s != "string" || s.length === 0)
|
|
1741
1761
|
throw new Error(`Invalid node change nodeId at ${e}`);
|
|
1742
1762
|
const r = Array.isArray(t.inserts) ? t.inserts.map(
|
|
1743
|
-
(I, E) =>
|
|
1763
|
+
(I, E) => Wn(I ?? {}, `${e}.inserts[${E}]`)
|
|
1744
1764
|
) : void 0, n = Array.isArray(t.moves) ? t.moves.map(
|
|
1745
|
-
(I, E) =>
|
|
1765
|
+
(I, E) => Jn(I ?? {}, `${e}.moves[${E}]`)
|
|
1746
1766
|
) : void 0, i = Array.isArray(t.removals) ? t.removals.map(
|
|
1747
|
-
(I, E) =>
|
|
1767
|
+
(I, E) => qn(I ?? {}, `${e}.removals[${E}]`)
|
|
1748
1768
|
) : void 0;
|
|
1749
1769
|
let o;
|
|
1750
1770
|
if (y(t.changedProps)) {
|
|
@@ -1757,7 +1777,7 @@ function zn(t, e) {
|
|
|
1757
1777
|
}
|
|
1758
1778
|
}
|
|
1759
1779
|
const a = Array.isArray(t.textUpdates) ? t.textUpdates.map(
|
|
1760
|
-
(I, E) =>
|
|
1780
|
+
(I, E) => zn(I ?? {}, `${e}.textUpdates[${E}]`)
|
|
1761
1781
|
) : void 0, c = t.styleIds, l = c !== void 0 ? Kt(c, e, s, !0) : void 0;
|
|
1762
1782
|
return {
|
|
1763
1783
|
nodeId: s,
|
|
@@ -1769,19 +1789,19 @@ function zn(t, e) {
|
|
|
1769
1789
|
...l !== void 0 ? { styleIds: l } : {}
|
|
1770
1790
|
};
|
|
1771
1791
|
}
|
|
1772
|
-
function
|
|
1792
|
+
function Zn(t) {
|
|
1773
1793
|
const e = /* @__PURE__ */ new Map();
|
|
1774
1794
|
for (const [s, r] of Object.entries(t))
|
|
1775
1795
|
e.set(s, r);
|
|
1776
1796
|
return e;
|
|
1777
1797
|
}
|
|
1778
|
-
function
|
|
1798
|
+
function ti(t, e, s) {
|
|
1779
1799
|
if (!t || typeof t != "object")
|
|
1780
1800
|
throw new D("UI update graph is missing");
|
|
1781
1801
|
const r = ot(t, "graph");
|
|
1782
1802
|
if (r.type !== "root")
|
|
1783
1803
|
throw new D('UI update root element must have type "root"');
|
|
1784
|
-
const n =
|
|
1804
|
+
const n = si(r.props, e);
|
|
1785
1805
|
return {
|
|
1786
1806
|
type: "full",
|
|
1787
1807
|
version: s,
|
|
@@ -1789,7 +1809,7 @@ function Jn(t, e, s) {
|
|
|
1789
1809
|
metadata: n
|
|
1790
1810
|
};
|
|
1791
1811
|
}
|
|
1792
|
-
function
|
|
1812
|
+
function ei(t, e, s) {
|
|
1793
1813
|
if (!Array.isArray(t))
|
|
1794
1814
|
throw new D("UI diff changes must be an array");
|
|
1795
1815
|
if (!y(e))
|
|
@@ -1798,7 +1818,7 @@ function qn(t, e, s) {
|
|
|
1798
1818
|
if (typeof r != "string" || r.length === 0)
|
|
1799
1819
|
throw new D("UI diff metadata is missing viewId");
|
|
1800
1820
|
const n = t.map(
|
|
1801
|
-
(E, _) =>
|
|
1821
|
+
(E, _) => Qn(E ?? {}, `changes[${_}]`)
|
|
1802
1822
|
), i = e.optimisticActionId === null || typeof e.optimisticActionId == "string" ? e.optimisticActionId : void 0, o = typeof e.isOptimistic == "boolean" ? e.isOptimistic : void 0, a = typeof e.isUpdate == "boolean" ? e.isUpdate : void 0, c = Q(e.optimisticPatch), l = Z(e.optimisticReconcile), I = {
|
|
1803
1823
|
viewId: r,
|
|
1804
1824
|
...i !== void 0 ? { optimisticActionId: i } : {},
|
|
@@ -1814,7 +1834,7 @@ function qn(t, e, s) {
|
|
|
1814
1834
|
metadata: I
|
|
1815
1835
|
};
|
|
1816
1836
|
}
|
|
1817
|
-
function
|
|
1837
|
+
function si(t, e) {
|
|
1818
1838
|
const s = t.viewId;
|
|
1819
1839
|
if (typeof s != "string" || s.length === 0)
|
|
1820
1840
|
throw new D("UI update root is missing viewId");
|
|
@@ -1872,7 +1892,7 @@ class D extends Error {
|
|
|
1872
1892
|
super(e), this.causeError = s, this.name = "UiUpdateParseError", s instanceof Error && (this.stack = s.stack);
|
|
1873
1893
|
}
|
|
1874
1894
|
}
|
|
1875
|
-
function
|
|
1895
|
+
function ri(t) {
|
|
1876
1896
|
let e;
|
|
1877
1897
|
try {
|
|
1878
1898
|
e = JSON.parse(t.Json);
|
|
@@ -1886,13 +1906,13 @@ function Zn(t) {
|
|
|
1886
1906
|
throw new D(`Unknown UI update type: ${String(s)}`);
|
|
1887
1907
|
if (typeof r != "number")
|
|
1888
1908
|
throw new D("UI update version must be a number");
|
|
1889
|
-
const n = s === "full" ?
|
|
1909
|
+
const n = s === "full" ? ti(e.graph, e.metadata, r) : ei(e.changes, e.metadata, r), i = t.Payloads ? Zn(t.Payloads) : /* @__PURE__ */ new Map();
|
|
1890
1910
|
return {
|
|
1891
1911
|
snapshot: n,
|
|
1892
1912
|
payloads: i
|
|
1893
1913
|
};
|
|
1894
1914
|
}
|
|
1895
|
-
class
|
|
1915
|
+
class ni {
|
|
1896
1916
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1897
1917
|
cache = /* @__PURE__ */ new Map();
|
|
1898
1918
|
/**
|
|
@@ -1973,7 +1993,7 @@ class ti {
|
|
|
1973
1993
|
return this.cache.size;
|
|
1974
1994
|
}
|
|
1975
1995
|
}
|
|
1976
|
-
class
|
|
1996
|
+
class ii {
|
|
1977
1997
|
views = /* @__PURE__ */ new Map();
|
|
1978
1998
|
listeners = /* @__PURE__ */ new Set();
|
|
1979
1999
|
payloads = /* @__PURE__ */ new Map();
|
|
@@ -1995,7 +2015,7 @@ class ei {
|
|
|
1995
2015
|
patchesDirty = !0;
|
|
1996
2016
|
payloadsDirty = !0;
|
|
1997
2017
|
// Handler cache for stable event handlers
|
|
1998
|
-
handlerCache = new
|
|
2018
|
+
handlerCache = new ni();
|
|
1999
2019
|
getSortedPatches(e) {
|
|
2000
2020
|
const s = this.buildPatchCacheKey(e.patches);
|
|
2001
2021
|
if (e.sortedPatchesCacheKey === s && e.sortedPatchesCache)
|
|
@@ -2064,8 +2084,8 @@ class ei {
|
|
|
2064
2084
|
const E = J(I, s.changes);
|
|
2065
2085
|
E !== I ? (o.baseline = E, c = !0, this.viewsDirty = !0) : o.baseline = E, o.baselineVersion = n.optimisticReconcile?.baseVersion ?? s.version;
|
|
2066
2086
|
let _ = o.baseline ?? E;
|
|
2067
|
-
const
|
|
2068
|
-
for (const h of
|
|
2087
|
+
const N = this.getSortedPatches(o);
|
|
2088
|
+
for (const h of N) {
|
|
2069
2089
|
const w = J(_, h.changes);
|
|
2070
2090
|
w !== _ && (c = !0, this.viewsDirty = !0), _ = w, h.baseVersion = o.baselineVersion;
|
|
2071
2091
|
}
|
|
@@ -2096,25 +2116,25 @@ class ei {
|
|
|
2096
2116
|
for (const _ of e.deleteViews)
|
|
2097
2117
|
a().delete(_) && (r = !0, this.structureChanged = !0);
|
|
2098
2118
|
if (e.upsertViews && e.upsertViews.length > 0)
|
|
2099
|
-
for (const [_,
|
|
2119
|
+
for (const [_, N] of e.upsertViews) {
|
|
2100
2120
|
const h = a(), w = h.get(_);
|
|
2101
|
-
w !==
|
|
2121
|
+
w !== N && (h.set(_, N), r = !0, w ? X(w, N, this.changedNodeIds) : (b(N, this.changedNodeIds), this.structureChanged = !0));
|
|
2102
2122
|
}
|
|
2103
2123
|
if (e.deletePayloads && e.deletePayloads.length > 0)
|
|
2104
2124
|
for (const _ of e.deletePayloads)
|
|
2105
2125
|
c().delete(_) && (r = !0);
|
|
2106
2126
|
if (e.upsertPayloads && e.upsertPayloads.length > 0)
|
|
2107
|
-
for (const [_,
|
|
2127
|
+
for (const [_, N] of e.upsertPayloads) {
|
|
2108
2128
|
const h = c();
|
|
2109
|
-
h.get(_) !==
|
|
2129
|
+
h.get(_) !== N && (h.set(_, N), r = !0);
|
|
2110
2130
|
}
|
|
2111
2131
|
if (e.deleteOptimisticPatchesForViews && e.deleteOptimisticPatchesForViews.length > 0)
|
|
2112
2132
|
for (const _ of e.deleteOptimisticPatchesForViews)
|
|
2113
2133
|
l().delete(_) && (r = !0);
|
|
2114
2134
|
if (e.upsertOptimisticPatches && e.upsertOptimisticPatches.length > 0)
|
|
2115
|
-
for (const [_,
|
|
2135
|
+
for (const [_, N] of e.upsertOptimisticPatches) {
|
|
2116
2136
|
const h = l(), w = h.get(_);
|
|
2117
|
-
|
|
2137
|
+
Ii(w, N) || (h.set(_, N), r = !0);
|
|
2118
2138
|
}
|
|
2119
2139
|
const I = e.rootViewId ?? this.snapshot.rootViewId;
|
|
2120
2140
|
I !== this.snapshot.rootViewId && (r = !0, this.structureChanged = !0);
|
|
@@ -2241,7 +2261,7 @@ class ei {
|
|
|
2241
2261
|
}
|
|
2242
2262
|
}
|
|
2243
2263
|
}
|
|
2244
|
-
class
|
|
2264
|
+
class oi {
|
|
2245
2265
|
streams = /* @__PURE__ */ new Map();
|
|
2246
2266
|
listeners = /* @__PURE__ */ new Set();
|
|
2247
2267
|
apply(e, s) {
|
|
@@ -2305,7 +2325,7 @@ class si {
|
|
|
2305
2325
|
}
|
|
2306
2326
|
getOrCreateStreamEntry(e) {
|
|
2307
2327
|
let s = this.streams.get(e);
|
|
2308
|
-
return s || (s = { store: new
|
|
2328
|
+
return s || (s = { store: new ii() }, this.streams.set(e, s)), s;
|
|
2309
2329
|
}
|
|
2310
2330
|
notify(e) {
|
|
2311
2331
|
for (const s of this.listeners)
|
|
@@ -2324,20 +2344,20 @@ function jt(t, e, s) {
|
|
|
2324
2344
|
const r = e.get(t.id);
|
|
2325
2345
|
let n = t, i = !1;
|
|
2326
2346
|
if (r?.textUpdates && r.textUpdates.length > 0) {
|
|
2327
|
-
const f =
|
|
2347
|
+
const f = Ei(t, r.textUpdates);
|
|
2328
2348
|
n = f.node, i = f.changed;
|
|
2329
2349
|
}
|
|
2330
2350
|
let o = !1, a = n.props;
|
|
2331
2351
|
if (r?.changedProps && r.changedProps.size > 0)
|
|
2332
|
-
for (const [f,
|
|
2352
|
+
for (const [f, S] of r.changedProps.entries()) {
|
|
2333
2353
|
const u = a[f];
|
|
2334
|
-
if (
|
|
2354
|
+
if (S === void 0)
|
|
2335
2355
|
(u !== void 0 || f in a) && (o || (a = k(a), o = !0), delete a[f]);
|
|
2336
|
-
else if (tt(
|
|
2337
|
-
const
|
|
2338
|
-
v(
|
|
2356
|
+
else if (tt(S)) {
|
|
2357
|
+
const A = k(S);
|
|
2358
|
+
v(A, u) || (o || (a = k(a), o = !0), a[f] = A);
|
|
2339
2359
|
} else
|
|
2340
|
-
v(
|
|
2360
|
+
v(S, u) || (o || (a = k(a), o = !0), a[f] = S);
|
|
2341
2361
|
}
|
|
2342
2362
|
let c = !1, l = n.styleIds;
|
|
2343
2363
|
r?.styleIds !== void 0 && (Wt(n.styleIds, r.styleIds) || (l = r.styleIds, c = !0));
|
|
@@ -2346,31 +2366,31 @@ function jt(t, e, s) {
|
|
|
2346
2366
|
if (r?.removals && r.removals.length > 0 || r?.moves && r.moves.length > 0 || r?.inserts && r.inserts.length > 0) {
|
|
2347
2367
|
const f = E.slice();
|
|
2348
2368
|
if (r?.removals && r.removals.length > 0) {
|
|
2349
|
-
const
|
|
2350
|
-
for (const u of
|
|
2369
|
+
const S = [...r.removals].sort((u, A) => A.index - u.index);
|
|
2370
|
+
for (const u of S)
|
|
2351
2371
|
u.index >= 0 && u.index < f.length && f.splice(u.index, 1);
|
|
2352
2372
|
_ = !0;
|
|
2353
2373
|
}
|
|
2354
2374
|
if (r?.moves && r.moves.length > 0) {
|
|
2355
|
-
const
|
|
2356
|
-
for (const
|
|
2357
|
-
const m = f.findIndex((W) => W.id ===
|
|
2358
|
-
m >= 0 && (u.set(
|
|
2375
|
+
const S = [...r.moves].sort((A, m) => A.toIndex - m.toIndex), u = /* @__PURE__ */ new Map();
|
|
2376
|
+
for (const A of S) {
|
|
2377
|
+
const m = f.findIndex((W) => W.id === A.nodeId);
|
|
2378
|
+
m >= 0 && (u.set(A.nodeId, f[m]), f.splice(m, 1));
|
|
2359
2379
|
}
|
|
2360
|
-
for (const
|
|
2361
|
-
const m = u.get(
|
|
2380
|
+
for (const A of S) {
|
|
2381
|
+
const m = u.get(A.nodeId);
|
|
2362
2382
|
if (m) {
|
|
2363
|
-
const W = Math.min(
|
|
2383
|
+
const W = Math.min(A.toIndex, f.length);
|
|
2364
2384
|
f.splice(W, 0, m);
|
|
2365
2385
|
}
|
|
2366
2386
|
}
|
|
2367
2387
|
_ = !0;
|
|
2368
2388
|
}
|
|
2369
2389
|
if (r?.inserts && r.inserts.length > 0) {
|
|
2370
|
-
const
|
|
2371
|
-
for (const u of
|
|
2372
|
-
const
|
|
2373
|
-
f.splice(
|
|
2390
|
+
const S = [...r.inserts].sort((u, A) => u.index - A.index);
|
|
2391
|
+
for (const u of S) {
|
|
2392
|
+
const A = Math.min(u.index, f.length);
|
|
2393
|
+
f.splice(A, 0, u.node);
|
|
2374
2394
|
}
|
|
2375
2395
|
_ = !0;
|
|
2376
2396
|
}
|
|
@@ -2378,8 +2398,8 @@ function jt(t, e, s) {
|
|
|
2378
2398
|
}
|
|
2379
2399
|
let h;
|
|
2380
2400
|
for (let f = 0; f < E.length; f++) {
|
|
2381
|
-
const
|
|
2382
|
-
u !==
|
|
2401
|
+
const S = E[f], u = jt(S, e);
|
|
2402
|
+
u !== S && (h || (h = E.slice()), h[f] = u);
|
|
2383
2403
|
}
|
|
2384
2404
|
return h && (E = h, _ = !0), i || o || c || _ ? !o && !_ && !c ? n : {
|
|
2385
2405
|
id: t.id,
|
|
@@ -2395,7 +2415,7 @@ function b(t, e) {
|
|
|
2395
2415
|
b(s, e);
|
|
2396
2416
|
}
|
|
2397
2417
|
const j = [];
|
|
2398
|
-
function
|
|
2418
|
+
function ai(t) {
|
|
2399
2419
|
for (; j.length <= t; )
|
|
2400
2420
|
j.push(/* @__PURE__ */ new Map());
|
|
2401
2421
|
return j[t].clear(), j[t];
|
|
@@ -2406,10 +2426,10 @@ function X(t, e, s) {
|
|
|
2406
2426
|
function Xt(t, e, s, r) {
|
|
2407
2427
|
if (t === e)
|
|
2408
2428
|
return;
|
|
2409
|
-
(t.type !== e.type || !
|
|
2429
|
+
(t.type !== e.type || !li(t.props, e.props) || !Wt(t.styleIds, e.styleIds)) && s.add(e.id);
|
|
2410
2430
|
const i = t.children ?? [], o = e.children ?? [];
|
|
2411
2431
|
if (i !== o) {
|
|
2412
|
-
const a =
|
|
2432
|
+
const a = ai(r);
|
|
2413
2433
|
for (const l of i)
|
|
2414
2434
|
a.set(l.id, l);
|
|
2415
2435
|
let c = !1;
|
|
@@ -2420,7 +2440,7 @@ function Xt(t, e, s, r) {
|
|
|
2420
2440
|
(i.length !== o.length || c) && s.add(e.id);
|
|
2421
2441
|
}
|
|
2422
2442
|
}
|
|
2423
|
-
function
|
|
2443
|
+
function li(t, e) {
|
|
2424
2444
|
return v(t, e);
|
|
2425
2445
|
}
|
|
2426
2446
|
function zt(t, e) {
|
|
@@ -2436,7 +2456,7 @@ function zt(t, e) {
|
|
|
2436
2456
|
function Wt(t, e) {
|
|
2437
2457
|
return v(t, e);
|
|
2438
2458
|
}
|
|
2439
|
-
function
|
|
2459
|
+
function Ii(t, e) {
|
|
2440
2460
|
if (t === e) return !0;
|
|
2441
2461
|
if (!t || !e || t.length !== e.length) return !1;
|
|
2442
2462
|
for (let s = 0; s < t.length; s++) {
|
|
@@ -2446,7 +2466,7 @@ function ii(t, e) {
|
|
|
2446
2466
|
}
|
|
2447
2467
|
return !0;
|
|
2448
2468
|
}
|
|
2449
|
-
function
|
|
2469
|
+
function ci(t, e) {
|
|
2450
2470
|
if (e.length === 0)
|
|
2451
2471
|
return t;
|
|
2452
2472
|
const s = [...e].sort((i, o) => i.start - o.start);
|
|
@@ -2454,7 +2474,7 @@ function oi(t, e) {
|
|
|
2454
2474
|
for (const i of s) {
|
|
2455
2475
|
const o = lt(i.start + n, 0, r.length);
|
|
2456
2476
|
if (i.end == null) {
|
|
2457
|
-
const I = r.slice(o), E =
|
|
2477
|
+
const I = r.slice(o), E = _i(I, i.insertedText);
|
|
2458
2478
|
r = r.slice(0, o) + i.insertedText + I.slice(E), n += i.insertedText.length - E;
|
|
2459
2479
|
continue;
|
|
2460
2480
|
}
|
|
@@ -2463,7 +2483,7 @@ function oi(t, e) {
|
|
|
2463
2483
|
}
|
|
2464
2484
|
return r;
|
|
2465
2485
|
}
|
|
2466
|
-
function
|
|
2486
|
+
function Ei(t, e, s) {
|
|
2467
2487
|
if (e.length === 0)
|
|
2468
2488
|
return { node: t, changed: !1 };
|
|
2469
2489
|
const r = /* @__PURE__ */ new Map();
|
|
@@ -2483,7 +2503,7 @@ function Jt(t, e, s) {
|
|
|
2483
2503
|
E ? E.push(I) : l.set(I.propertyName, [I]);
|
|
2484
2504
|
}
|
|
2485
2505
|
for (const [I, E] of l.entries()) {
|
|
2486
|
-
const _ = i[I], h =
|
|
2506
|
+
const _ = i[I], h = ci(typeof _ == "string" ? _ : "", E);
|
|
2487
2507
|
n || (i = k(i), n = !0), i[I] = h;
|
|
2488
2508
|
}
|
|
2489
2509
|
}
|
|
@@ -2512,7 +2532,7 @@ function Jt(t, e, s) {
|
|
|
2512
2532
|
function lt(t, e, s) {
|
|
2513
2533
|
return Math.max(e, Math.min(s, t));
|
|
2514
2534
|
}
|
|
2515
|
-
function
|
|
2535
|
+
function _i(t, e) {
|
|
2516
2536
|
const s = Math.min(t.length, e.length);
|
|
2517
2537
|
let r = 0;
|
|
2518
2538
|
for (; r < s && t.charCodeAt(r) === e.charCodeAt(r); )
|
|
@@ -2552,20 +2572,20 @@ function v(t, e) {
|
|
|
2552
2572
|
}
|
|
2553
2573
|
return !1;
|
|
2554
2574
|
}
|
|
2555
|
-
const
|
|
2556
|
-
let qt =
|
|
2575
|
+
const fi = 16, hi = 50, O = new oi(), H = /* @__PURE__ */ new Map(), Y = /* @__PURE__ */ new Map();
|
|
2576
|
+
let qt = fi, Qt = hi, G = [], V = null, B = null, R = 0, z = 0;
|
|
2557
2577
|
const x = /* @__PURE__ */ new Map();
|
|
2558
|
-
function
|
|
2578
|
+
function ui() {
|
|
2559
2579
|
return typeof performance < "u" ? performance.now() : Date.now();
|
|
2560
2580
|
}
|
|
2561
|
-
function
|
|
2581
|
+
function Ti() {
|
|
2562
2582
|
try {
|
|
2563
2583
|
return crypto.randomUUID();
|
|
2564
2584
|
} catch {
|
|
2565
2585
|
return `${Date.now()}_${Math.random().toString(16).slice(2)}`;
|
|
2566
2586
|
}
|
|
2567
2587
|
}
|
|
2568
|
-
function
|
|
2588
|
+
function Ni(t) {
|
|
2569
2589
|
const e = [];
|
|
2570
2590
|
for (const n of t.views)
|
|
2571
2591
|
e.push(n);
|
|
@@ -2585,7 +2605,7 @@ function fi(t) {
|
|
|
2585
2605
|
optimisticPatches: r
|
|
2586
2606
|
};
|
|
2587
2607
|
}
|
|
2588
|
-
function
|
|
2608
|
+
function Ai(t, e) {
|
|
2589
2609
|
if (t === e) return !0;
|
|
2590
2610
|
if (!t || !e || t.length !== e.length) return !1;
|
|
2591
2611
|
for (let s = 0; s < t.length; s++) {
|
|
@@ -2595,9 +2615,9 @@ function hi(t, e) {
|
|
|
2595
2615
|
}
|
|
2596
2616
|
return !0;
|
|
2597
2617
|
}
|
|
2598
|
-
function
|
|
2618
|
+
function Si(t, e, s) {
|
|
2599
2619
|
if (!s || s.version === -1)
|
|
2600
|
-
return { type: "ReplaceStreamSnapshot", snapshot:
|
|
2620
|
+
return { type: "ReplaceStreamSnapshot", snapshot: Ni(e) };
|
|
2601
2621
|
let r, n;
|
|
2602
2622
|
for (const [l, I] of e.views)
|
|
2603
2623
|
s.views.get(l) !== I && (r ??= []).push([l, I]);
|
|
@@ -2611,7 +2631,7 @@ function ui(t, e, s) {
|
|
|
2611
2631
|
let a, c;
|
|
2612
2632
|
for (const [l, I] of e.optimisticPatches) {
|
|
2613
2633
|
const E = s.optimisticPatches.get(l);
|
|
2614
|
-
|
|
2634
|
+
Ai(E, I) || (a ??= []).push([l, I.slice()]);
|
|
2615
2635
|
}
|
|
2616
2636
|
for (const l of s.optimisticPatches.keys())
|
|
2617
2637
|
e.optimisticPatches.has(l) || (c ??= []).push(l);
|
|
@@ -2631,13 +2651,13 @@ function ui(t, e, s) {
|
|
|
2631
2651
|
};
|
|
2632
2652
|
}
|
|
2633
2653
|
function Zt() {
|
|
2634
|
-
|
|
2654
|
+
V || (V = setTimeout(It, qt)), B || (B = setTimeout(It, Qt));
|
|
2635
2655
|
}
|
|
2636
2656
|
function P(t) {
|
|
2637
|
-
|
|
2657
|
+
G.push(t), Zt();
|
|
2638
2658
|
}
|
|
2639
2659
|
function It() {
|
|
2640
|
-
if (
|
|
2660
|
+
if (V && (clearTimeout(V), V = null), B && (clearTimeout(B), B = null), G.length === 0 && x.size === 0) {
|
|
2641
2661
|
R = 0, z = 0;
|
|
2642
2662
|
return;
|
|
2643
2663
|
}
|
|
@@ -2645,19 +2665,19 @@ function It() {
|
|
|
2645
2665
|
for (const [s, r] of x)
|
|
2646
2666
|
t.push({ trackId: s, version: r.version, senderId: r.senderId });
|
|
2647
2667
|
const e = {
|
|
2648
|
-
batchId:
|
|
2649
|
-
createdAtMs:
|
|
2650
|
-
ops:
|
|
2668
|
+
batchId: Ti(),
|
|
2669
|
+
createdAtMs: ui(),
|
|
2670
|
+
ops: G,
|
|
2651
2671
|
...t.length > 0 ? { acks: t } : {},
|
|
2652
2672
|
stats: { uiMessagesConsumed: R, bytesConsumed: z }
|
|
2653
2673
|
};
|
|
2654
|
-
|
|
2674
|
+
G = [], R = 0, z = 0, x.clear(), self.postMessage(e);
|
|
2655
2675
|
}
|
|
2656
2676
|
function te(t) {
|
|
2657
2677
|
return `${t.senderId}_${t.trackId}`;
|
|
2658
2678
|
}
|
|
2659
|
-
async function
|
|
2660
|
-
const e = await
|
|
2679
|
+
async function di(t) {
|
|
2680
|
+
const e = await dr(t), s = /* @__PURE__ */ new Set();
|
|
2661
2681
|
for (const r of Object.values(e.UIStreams ?? {})) {
|
|
2662
2682
|
const n = r.StreamId;
|
|
2663
2683
|
s.add(n);
|
|
@@ -2667,18 +2687,18 @@ async function Ti(t) {
|
|
|
2667
2687
|
for (const r of O.getSnapshots())
|
|
2668
2688
|
s.has(r.streamId) || (O.remove(r.streamId), Y.delete(r.streamId), P({ type: "RemoveStream", streamId: r.streamId }));
|
|
2669
2689
|
}
|
|
2670
|
-
async function
|
|
2671
|
-
const e = et(t), s = te(e), r = await
|
|
2690
|
+
async function yi(t) {
|
|
2691
|
+
const e = et(t), s = te(e), r = await jn(t), n = ri(r), i = x.get(e.trackId);
|
|
2672
2692
|
if ((i === void 0 || n.snapshot.version > i.version) && (x.set(e.trackId, { version: n.snapshot.version, senderId: e.senderId }), Zt()), !O.apply(s, n))
|
|
2673
2693
|
return;
|
|
2674
2694
|
const a = O.getSnapshot(s);
|
|
2675
2695
|
if (!a)
|
|
2676
2696
|
return;
|
|
2677
2697
|
const c = Y.get(s);
|
|
2678
|
-
Y.set(s, a), P(
|
|
2698
|
+
Y.set(s, a), P(Si(s, a, c));
|
|
2679
2699
|
}
|
|
2680
|
-
async function
|
|
2681
|
-
const e = await
|
|
2700
|
+
async function wi(t) {
|
|
2701
|
+
const e = await un(t);
|
|
2682
2702
|
if (!e.StyleId)
|
|
2683
2703
|
return;
|
|
2684
2704
|
const s = {
|
|
@@ -2688,8 +2708,8 @@ async function Ni(t) {
|
|
|
2688
2708
|
}, r = H.get(s.styleId);
|
|
2689
2709
|
r && r.css === s.css && r.common === s.common || (H.set(s.styleId, s), P({ type: "UpsertUiStyle", style: s }));
|
|
2690
2710
|
}
|
|
2691
|
-
async function
|
|
2692
|
-
const e = await
|
|
2711
|
+
async function Ci(t) {
|
|
2712
|
+
const e = await Cn(t);
|
|
2693
2713
|
if (e.Styles)
|
|
2694
2714
|
for (const s of e.Styles) {
|
|
2695
2715
|
if (!s.StyleId)
|
|
@@ -2702,27 +2722,27 @@ async function di(t) {
|
|
|
2702
2722
|
n && n.css === r.css && n.common === r.common || (H.set(r.styleId, r), P({ type: "UpsertUiStyle", style: r }));
|
|
2703
2723
|
}
|
|
2704
2724
|
}
|
|
2705
|
-
function
|
|
2725
|
+
function Di(t) {
|
|
2706
2726
|
const e = et(t), s = te(e);
|
|
2707
2727
|
O.clear(s), Y.delete(s), P({ type: "ClearStream", streamId: s });
|
|
2708
2728
|
}
|
|
2709
|
-
async function
|
|
2710
|
-
const e = await
|
|
2729
|
+
async function Ui(t) {
|
|
2730
|
+
const e = await kn(t);
|
|
2711
2731
|
if (!(!e.StyleIds || e.StyleIds.length === 0))
|
|
2712
2732
|
for (const s of e.StyleIds)
|
|
2713
2733
|
H.delete(s) && P({ type: "RemoveUiStyle", styleId: s });
|
|
2714
2734
|
}
|
|
2715
|
-
async function
|
|
2735
|
+
async function Ri(t) {
|
|
2716
2736
|
const e = new Uint8Array(t);
|
|
2717
2737
|
z += e.byteLength;
|
|
2718
2738
|
const s = e;
|
|
2719
2739
|
switch (se(s)) {
|
|
2720
2740
|
case g.CORE_GLOBAL_STATE:
|
|
2721
|
-
await
|
|
2741
|
+
await di(s), R++;
|
|
2722
2742
|
return;
|
|
2723
2743
|
case g.UI_UPDATE:
|
|
2724
2744
|
try {
|
|
2725
|
-
await
|
|
2745
|
+
await yi(s);
|
|
2726
2746
|
} catch (n) {
|
|
2727
2747
|
return n instanceof D, void 0;
|
|
2728
2748
|
} finally {
|
|
@@ -2730,16 +2750,16 @@ async function wi(t) {
|
|
|
2730
2750
|
}
|
|
2731
2751
|
return;
|
|
2732
2752
|
case g.UI_STYLES:
|
|
2733
|
-
await
|
|
2753
|
+
await wi(s), R++;
|
|
2734
2754
|
return;
|
|
2735
2755
|
case g.UI_STYLES_BATCH:
|
|
2736
|
-
await
|
|
2756
|
+
await Ci(s), R++;
|
|
2737
2757
|
return;
|
|
2738
2758
|
case g.UI_STYLES_DELETE:
|
|
2739
|
-
await
|
|
2759
|
+
await Ui(s), R++;
|
|
2740
2760
|
return;
|
|
2741
2761
|
case g.ACTION_UI_CLEAR_STREAM:
|
|
2742
|
-
|
|
2762
|
+
Di(s), R++;
|
|
2743
2763
|
return;
|
|
2744
2764
|
default:
|
|
2745
2765
|
return;
|
|
@@ -2752,9 +2772,9 @@ self.addEventListener("message", (t) => {
|
|
|
2752
2772
|
return;
|
|
2753
2773
|
}
|
|
2754
2774
|
if (e.type === "clear") {
|
|
2755
|
-
|
|
2775
|
+
G = [], Y.clear();
|
|
2756
2776
|
return;
|
|
2757
2777
|
}
|
|
2758
|
-
e.type === "protocol" &&
|
|
2778
|
+
e.type === "protocol" && Ri(e.message).catch(() => {
|
|
2759
2779
|
});
|
|
2760
2780
|
});
|