@ikonai/sdk-ui 1.0.5 → 1.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/{ui-worker-BrV3-vz5.js → ui-worker-BuVlRjBH.js} +363 -372
- package/index.js +368 -377
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
const
|
|
1
|
+
const ee = {
|
|
2
2
|
Compressed: 8
|
|
3
3
|
};
|
|
4
|
-
function
|
|
4
|
+
function se(t) {
|
|
5
5
|
if (t.length < 8)
|
|
6
6
|
throw new Error("Protocol message too short");
|
|
7
7
|
return (t[4] | t[5] << 8 | t[6] << 16 | t[7] << 24) >>> 0;
|
|
@@ -10,12 +10,12 @@ function et(t) {
|
|
|
10
10
|
const e = K(t), s = new DataView(e.buffer, e.byteOffset, e.byteLength);
|
|
11
11
|
if (e.length < 27)
|
|
12
12
|
throw new Error("Protocol payload too short");
|
|
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),
|
|
14
|
-
if (27 +
|
|
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
|
+
if (27 + c * 4 > e.length)
|
|
15
15
|
throw new Error("Protocol header exceeds payload length");
|
|
16
16
|
const A = [];
|
|
17
17
|
let h = 27;
|
|
18
|
-
for (let w = 0; w <
|
|
18
|
+
for (let w = 0; w < c; w++)
|
|
19
19
|
A.push(s.getUint32(h, !0)), h += 4;
|
|
20
20
|
return {
|
|
21
21
|
length: r,
|
|
@@ -25,7 +25,7 @@ function et(t) {
|
|
|
25
25
|
sequenceId: a,
|
|
26
26
|
targetIds: A,
|
|
27
27
|
payloadVersion: l,
|
|
28
|
-
payloadType:
|
|
28
|
+
payloadType: I,
|
|
29
29
|
flags: E
|
|
30
30
|
};
|
|
31
31
|
}
|
|
@@ -37,9 +37,9 @@ async function $(t, e, s) {
|
|
|
37
37
|
throw new Error(`Unexpected payload type ${n.payloadType}`);
|
|
38
38
|
const i = 27 + n.targetIds.length * 4;
|
|
39
39
|
let o = r.subarray(i, n.length);
|
|
40
|
-
return (n.flags &
|
|
40
|
+
return (n.flags & ee.Compressed) !== 0 && (o = await re(o)), o;
|
|
41
41
|
}
|
|
42
|
-
async function
|
|
42
|
+
async function re(t) {
|
|
43
43
|
if (typeof DecompressionStream > "u")
|
|
44
44
|
throw new Error("DecompressionStream not supported");
|
|
45
45
|
const e = new DecompressionStream("gzip"), s = e.writable.getWriter(), r = new Uint8Array(t);
|
|
@@ -47,20 +47,20 @@ async function ee(t) {
|
|
|
47
47
|
const n = e.readable.getReader(), i = [];
|
|
48
48
|
let o = 0;
|
|
49
49
|
for (; ; ) {
|
|
50
|
-
const { done: l, value:
|
|
50
|
+
const { done: l, value: I } = await n.read();
|
|
51
51
|
if (l) break;
|
|
52
|
-
i.push(
|
|
52
|
+
i.push(I), o += I.length;
|
|
53
53
|
}
|
|
54
54
|
const a = new Uint8Array(o);
|
|
55
|
-
let
|
|
55
|
+
let c = 0;
|
|
56
56
|
for (let l = 0; l < i.length; l++)
|
|
57
|
-
a.set(i[l],
|
|
57
|
+
a.set(i[l], c), c += i[l].length;
|
|
58
58
|
return a;
|
|
59
59
|
}
|
|
60
|
-
var
|
|
61
|
-
const
|
|
60
|
+
var F = /* @__PURE__ */ ((t) => (t[t.Null = 1] = "Null", t[t.Bool = 2] = "Bool", t[t.Int32 = 3] = "Int32", t[t.Int64 = 4] = "Int64", t[t.UInt32 = 5] = "UInt32", t[t.UInt64 = 6] = "UInt64", t[t.Float32 = 7] = "Float32", t[t.Float64 = 8] = "Float64", t[t.Array = 9] = "Array", t[t.Dict = 10] = "Dict", t[t.Object = 11] = "Object", t[t.String = 12] = "String", t[t.Binary = 13] = "Binary", t[t.Guid = 14] = "Guid", t))(F || {});
|
|
61
|
+
const ne = 161, ie = 162;
|
|
62
62
|
new TextEncoder();
|
|
63
|
-
const
|
|
63
|
+
const oe = new TextDecoder("utf-8", { fatal: !0 });
|
|
64
64
|
class L {
|
|
65
65
|
constructor(e, s, r) {
|
|
66
66
|
this.buffer = e, this.version = s, this.offset = r, this.end = e.length - 1;
|
|
@@ -71,7 +71,7 @@ class L {
|
|
|
71
71
|
const s = K(e);
|
|
72
72
|
if (s.length < 2)
|
|
73
73
|
throw new Error("Teleport payload too short");
|
|
74
|
-
if (s[0] !==
|
|
74
|
+
if (s[0] !== ne || s[s.length - 1] !== ie)
|
|
75
75
|
throw new Error("Teleport object missing markers");
|
|
76
76
|
const r = { offset: 1 }, n = C(s, r, "InvalidLength");
|
|
77
77
|
return new L(s, n, r.offset);
|
|
@@ -81,12 +81,12 @@ class L {
|
|
|
81
81
|
return null;
|
|
82
82
|
if (this.offset + 5 > this.buffer.length)
|
|
83
83
|
throw new Error("Teleport object truncated");
|
|
84
|
-
const e =
|
|
84
|
+
const e = ce(this.buffer, this.offset);
|
|
85
85
|
this.offset += 4;
|
|
86
86
|
const s = this.buffer[this.offset++], r = s >> 4 & 15;
|
|
87
87
|
if ((s & 15) !== 0)
|
|
88
88
|
throw new Error("Teleport field flags must be zero");
|
|
89
|
-
const n =
|
|
89
|
+
const n = p(r);
|
|
90
90
|
let i;
|
|
91
91
|
if (n >= 0)
|
|
92
92
|
S(this.buffer, this.offset, n), i = this.buffer.subarray(this.offset, this.offset + n), this.offset += n;
|
|
@@ -94,7 +94,7 @@ class L {
|
|
|
94
94
|
const o = { offset: this.offset }, a = C(this.buffer, o, "InvalidLength");
|
|
95
95
|
S(this.buffer, o.offset, a), i = this.buffer.subarray(o.offset, o.offset + a), this.offset = o.offset + a;
|
|
96
96
|
}
|
|
97
|
-
return new
|
|
97
|
+
return new ae(e, r, i);
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
100
|
class U {
|
|
@@ -159,7 +159,7 @@ class U {
|
|
|
159
159
|
return this.ensureType(
|
|
160
160
|
12
|
|
161
161
|
/* String */
|
|
162
|
-
),
|
|
162
|
+
), oe.decode(this.payload);
|
|
163
163
|
}
|
|
164
164
|
asGuid() {
|
|
165
165
|
return this.ensureType(
|
|
@@ -187,10 +187,10 @@ class U {
|
|
|
187
187
|
}
|
|
188
188
|
ensureType(e) {
|
|
189
189
|
if (this.type !== e)
|
|
190
|
-
throw new Error(`Teleport value has type ${
|
|
190
|
+
throw new Error(`Teleport value has type ${F[this.type]}, expected ${F[e]}`);
|
|
191
191
|
}
|
|
192
192
|
}
|
|
193
|
-
class
|
|
193
|
+
class ae extends U {
|
|
194
194
|
constructor(e, s, r) {
|
|
195
195
|
super(s, r), this.fieldId = e;
|
|
196
196
|
}
|
|
@@ -235,7 +235,7 @@ class st {
|
|
|
235
235
|
case 4:
|
|
236
236
|
case 6:
|
|
237
237
|
case 14: {
|
|
238
|
-
const e =
|
|
238
|
+
const e = p(this.elementType);
|
|
239
239
|
S(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);
|
|
@@ -262,7 +262,7 @@ class st {
|
|
|
262
262
|
return this.offset += e, new M(10, s);
|
|
263
263
|
}
|
|
264
264
|
default:
|
|
265
|
-
throw new Error(`Unsupported array element type ${
|
|
265
|
+
throw new Error(`Unsupported array element type ${F[this.elementType]}`);
|
|
266
266
|
}
|
|
267
267
|
}
|
|
268
268
|
}
|
|
@@ -297,10 +297,10 @@ class rt {
|
|
|
297
297
|
return null;
|
|
298
298
|
}
|
|
299
299
|
const e = this.readKey(), s = this.readValue();
|
|
300
|
-
return this.index++, new
|
|
300
|
+
return this.index++, new le(e, s);
|
|
301
301
|
}
|
|
302
302
|
readKey() {
|
|
303
|
-
const e =
|
|
303
|
+
const e = p(this.keyType);
|
|
304
304
|
if (e >= 0) {
|
|
305
305
|
S(this.payload, this.offset, e);
|
|
306
306
|
const s = this.payload.subarray(this.offset, this.offset + e);
|
|
@@ -346,17 +346,17 @@ class rt {
|
|
|
346
346
|
case 6:
|
|
347
347
|
case 14:
|
|
348
348
|
case 1: {
|
|
349
|
-
const e =
|
|
349
|
+
const e = p(this.valueType);
|
|
350
350
|
S(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
|
}
|
|
354
354
|
default:
|
|
355
|
-
throw new Error(`Unsupported dictionary value type ${
|
|
355
|
+
throw new Error(`Unsupported dictionary value type ${F[this.valueType]}`);
|
|
356
356
|
}
|
|
357
357
|
}
|
|
358
358
|
}
|
|
359
|
-
class
|
|
359
|
+
class le {
|
|
360
360
|
constructor(e, s) {
|
|
361
361
|
this.key = e, this.value = s;
|
|
362
362
|
}
|
|
@@ -438,7 +438,7 @@ function C(t, e, s) {
|
|
|
438
438
|
for (; e.offset < t.length; ) {
|
|
439
439
|
const o = t[e.offset++];
|
|
440
440
|
if (i++, r |= (o & 127) << n, (o & 128) === 0) {
|
|
441
|
-
if (i !==
|
|
441
|
+
if (i !== Ie(r))
|
|
442
442
|
throw new Error("Teleport VarUInt is not canonical");
|
|
443
443
|
return r >>> 0;
|
|
444
444
|
}
|
|
@@ -447,10 +447,10 @@ function C(t, e, s) {
|
|
|
447
447
|
}
|
|
448
448
|
throw new Error(s);
|
|
449
449
|
}
|
|
450
|
-
function
|
|
450
|
+
function Ie(t) {
|
|
451
451
|
return t < 128 ? 1 : t < 16384 ? 2 : t < 2097152 ? 3 : t < 268435456 ? 4 : 5;
|
|
452
452
|
}
|
|
453
|
-
function
|
|
453
|
+
function p(t) {
|
|
454
454
|
switch (t) {
|
|
455
455
|
case 3:
|
|
456
456
|
case 5:
|
|
@@ -478,7 +478,7 @@ function S(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
|
}
|
|
481
|
-
function
|
|
481
|
+
function ce(t, e) {
|
|
482
482
|
return (t[e] | t[e + 1] << 8 | t[e + 2] << 16 | t[e + 3] << 24) >>> 0;
|
|
483
483
|
}
|
|
484
484
|
function nt(t, e) {
|
|
@@ -487,13 +487,13 @@ function nt(t, e) {
|
|
|
487
487
|
const s = t[e], r = s >> 4 & 15;
|
|
488
488
|
if ((s & 15) !== 0)
|
|
489
489
|
throw new Error("Array flags must be zero");
|
|
490
|
-
const n = { offset: e + 1 }, i = C(t, n, "ArrayMalformed"), o =
|
|
490
|
+
const n = { offset: e + 1 }, i = C(t, n, "ArrayMalformed"), o = p(r);
|
|
491
491
|
if (o >= 0) {
|
|
492
|
-
const
|
|
493
|
-
return S(t, n.offset,
|
|
492
|
+
const c = o * i;
|
|
493
|
+
return S(t, n.offset, c), n.offset + c - e;
|
|
494
494
|
}
|
|
495
495
|
let a = n.offset;
|
|
496
|
-
for (let
|
|
496
|
+
for (let c = 0; c < i; c++)
|
|
497
497
|
a = q(r, t, a, "ArrayMalformed");
|
|
498
498
|
return a - e;
|
|
499
499
|
}
|
|
@@ -511,7 +511,7 @@ function it(t, e) {
|
|
|
511
511
|
return o - e;
|
|
512
512
|
}
|
|
513
513
|
function q(t, e, s, r) {
|
|
514
|
-
const n =
|
|
514
|
+
const n = p(t);
|
|
515
515
|
if (n >= 0)
|
|
516
516
|
return S(e, s, n), s + n;
|
|
517
517
|
switch (t) {
|
|
@@ -529,7 +529,7 @@ function q(t, e, s, r) {
|
|
|
529
529
|
case 10:
|
|
530
530
|
return s + it(e, s);
|
|
531
531
|
default:
|
|
532
|
-
throw new Error(`Unsupported Teleport type ${
|
|
532
|
+
throw new Error(`Unsupported Teleport type ${F[t]}`);
|
|
533
533
|
}
|
|
534
534
|
}
|
|
535
535
|
function at(t) {
|
|
@@ -538,244 +538,244 @@ 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 || {}), 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.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
|
|
543
|
-
function
|
|
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.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 = 265814330, _e = 1368629611, fe = 2431514951, he = 2914494629, ue = 3284746250, Te = 4101844078;
|
|
543
|
+
function yt(t) {
|
|
544
544
|
const e = {};
|
|
545
|
-
return
|
|
545
|
+
return wt(e), e;
|
|
546
546
|
}
|
|
547
|
-
function
|
|
547
|
+
function wt(t) {
|
|
548
548
|
return t.Description = "", t.Codec = Et.Unknown, t.SampleRate = 0, t.Channels = 0, t.BitDepth = 0, t.ShapeSets = void 0, t;
|
|
549
549
|
}
|
|
550
|
-
function
|
|
551
|
-
const s = e ??
|
|
552
|
-
return
|
|
550
|
+
function Ae(t, e) {
|
|
551
|
+
const s = e ?? yt();
|
|
552
|
+
return wt(s), Ne(t, s), s;
|
|
553
553
|
}
|
|
554
|
-
function
|
|
554
|
+
function Ne(t, e) {
|
|
555
555
|
let s;
|
|
556
556
|
for (; (s = t.next()) !== null; )
|
|
557
557
|
switch (s.fieldId) {
|
|
558
|
-
case
|
|
558
|
+
case Ee: {
|
|
559
559
|
if (s.isNull) {
|
|
560
560
|
e.ShapeSets = void 0;
|
|
561
561
|
break;
|
|
562
562
|
}
|
|
563
|
-
e.ShapeSets =
|
|
563
|
+
e.ShapeSets = de(s.asArray());
|
|
564
564
|
break;
|
|
565
565
|
}
|
|
566
|
-
case
|
|
566
|
+
case _e: {
|
|
567
567
|
if (s.isNull) throw new Error();
|
|
568
568
|
e.Description = s.asString();
|
|
569
569
|
break;
|
|
570
570
|
}
|
|
571
|
-
case
|
|
571
|
+
case fe: {
|
|
572
572
|
if (s.isNull) throw new Error();
|
|
573
573
|
e.Channels = s.asInt32();
|
|
574
574
|
break;
|
|
575
575
|
}
|
|
576
|
-
case
|
|
576
|
+
case he: {
|
|
577
577
|
if (s.isNull) throw new Error();
|
|
578
578
|
e.BitDepth = s.asInt32();
|
|
579
579
|
break;
|
|
580
580
|
}
|
|
581
|
-
case
|
|
581
|
+
case ue: {
|
|
582
582
|
if (s.isNull) throw new Error();
|
|
583
583
|
e.Codec = s.asInt32();
|
|
584
584
|
break;
|
|
585
585
|
}
|
|
586
|
-
case
|
|
586
|
+
case Te: {
|
|
587
587
|
if (s.isNull) throw new Error();
|
|
588
588
|
e.SampleRate = s.asInt32();
|
|
589
589
|
break;
|
|
590
590
|
}
|
|
591
591
|
}
|
|
592
592
|
}
|
|
593
|
-
function
|
|
593
|
+
function de(t) {
|
|
594
594
|
const e = [];
|
|
595
595
|
let s;
|
|
596
596
|
for (; (s = t.next()) !== null; )
|
|
597
|
-
e.push(
|
|
597
|
+
e.push(De(s.asObject()));
|
|
598
598
|
return e;
|
|
599
599
|
}
|
|
600
|
-
const
|
|
601
|
-
function
|
|
600
|
+
const Se = 1107713536, ye = 1154362099, we = 1185721362;
|
|
601
|
+
function Ce(t) {
|
|
602
602
|
const e = {};
|
|
603
|
-
return
|
|
603
|
+
return Ct(e), e;
|
|
604
604
|
}
|
|
605
|
-
function
|
|
605
|
+
function Ct(t) {
|
|
606
606
|
return t.SetId = 0, t.Name = "", t.ShapeNames = [], t;
|
|
607
607
|
}
|
|
608
|
-
function
|
|
609
|
-
const s = e ??
|
|
610
|
-
return
|
|
608
|
+
function De(t, e) {
|
|
609
|
+
const s = e ?? Ce();
|
|
610
|
+
return Ct(s), Ue(t, s), s;
|
|
611
611
|
}
|
|
612
|
-
function
|
|
612
|
+
function Ue(t, e) {
|
|
613
613
|
let s;
|
|
614
614
|
for (; (s = t.next()) !== null; )
|
|
615
615
|
switch (s.fieldId) {
|
|
616
|
-
case
|
|
616
|
+
case Se: {
|
|
617
617
|
if (s.isNull) throw new Error();
|
|
618
618
|
e.Name = s.asString();
|
|
619
619
|
break;
|
|
620
620
|
}
|
|
621
|
-
case
|
|
621
|
+
case ye: {
|
|
622
622
|
if (s.isNull) throw new Error();
|
|
623
623
|
e.SetId = s.asUInt32();
|
|
624
624
|
break;
|
|
625
625
|
}
|
|
626
|
-
case
|
|
626
|
+
case we: {
|
|
627
627
|
if (s.isNull) throw new Error();
|
|
628
|
-
e.ShapeNames =
|
|
628
|
+
e.ShapeNames = Re(s.asArray());
|
|
629
629
|
break;
|
|
630
630
|
}
|
|
631
631
|
}
|
|
632
632
|
}
|
|
633
|
-
function
|
|
633
|
+
function Re(t) {
|
|
634
634
|
const e = [];
|
|
635
635
|
let s;
|
|
636
636
|
for (; (s = t.next()) !== null; )
|
|
637
637
|
e.push(s.asString());
|
|
638
638
|
return e;
|
|
639
639
|
}
|
|
640
|
-
const
|
|
641
|
-
function
|
|
640
|
+
const me = 76337612, Le = 185396121, ge = 388632637, Oe = 417197284, Pe = 469070965, be = 470595159, Fe = 781727218, pe = 834078886, ve = 1043273762, Me = 1236999138, ke = 1368629611, Ve = 1715899485, Ge = 1942830531, Be = 1999510636, xe = 2079864626, He = 2142346422, Ye = 2598291686, $e = 2719718823, Ke = 2810953526, je = 2840065720, Xe = 2885165957, ze = 3586157513, We = 3717933110, Je = 4062655306;
|
|
641
|
+
function qe(t) {
|
|
642
642
|
const e = {};
|
|
643
|
-
return
|
|
643
|
+
return Dt(e), e;
|
|
644
644
|
}
|
|
645
|
-
function
|
|
645
|
+
function Dt(t) {
|
|
646
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 = Nt.Unknown, t;
|
|
647
647
|
}
|
|
648
|
-
function
|
|
649
|
-
const s = e ??
|
|
650
|
-
return
|
|
648
|
+
function Qe(t, e) {
|
|
649
|
+
const s = e ?? qe();
|
|
650
|
+
return Dt(s), Ze(t, s), s;
|
|
651
651
|
}
|
|
652
|
-
function
|
|
652
|
+
function Ze(t, e) {
|
|
653
653
|
let s;
|
|
654
654
|
for (; (s = t.next()) !== null; )
|
|
655
655
|
switch (s.fieldId) {
|
|
656
|
-
case
|
|
656
|
+
case me: {
|
|
657
657
|
if (s.isNull) throw new Error();
|
|
658
658
|
e.DeviceId = s.asString();
|
|
659
659
|
break;
|
|
660
660
|
}
|
|
661
|
-
case
|
|
661
|
+
case Le: {
|
|
662
662
|
if (s.isNull) throw new Error();
|
|
663
663
|
e.InstallId = s.asString();
|
|
664
664
|
break;
|
|
665
665
|
}
|
|
666
|
-
case
|
|
666
|
+
case ge: {
|
|
667
667
|
if (s.isNull) throw new Error();
|
|
668
668
|
e.UserAgent = s.asString();
|
|
669
669
|
break;
|
|
670
670
|
}
|
|
671
|
-
case
|
|
671
|
+
case Oe: {
|
|
672
672
|
if (s.isNull) throw new Error();
|
|
673
673
|
e.ContextType = s.asInt32();
|
|
674
674
|
break;
|
|
675
675
|
}
|
|
676
|
-
case
|
|
676
|
+
case Pe: {
|
|
677
677
|
if (s.isNull) throw new Error();
|
|
678
678
|
e.HasInput = s.asBool();
|
|
679
679
|
break;
|
|
680
680
|
}
|
|
681
|
-
case
|
|
681
|
+
case be: {
|
|
682
682
|
if (s.isNull) throw new Error();
|
|
683
683
|
e.UserType = s.asInt32();
|
|
684
684
|
break;
|
|
685
685
|
}
|
|
686
|
-
case
|
|
686
|
+
case Fe: {
|
|
687
687
|
if (s.isNull) throw new Error();
|
|
688
688
|
e.UserId = s.asString();
|
|
689
689
|
break;
|
|
690
690
|
}
|
|
691
|
-
case
|
|
691
|
+
case pe: {
|
|
692
692
|
if (s.isNull) throw new Error();
|
|
693
693
|
e.ProductId = s.asString();
|
|
694
694
|
break;
|
|
695
695
|
}
|
|
696
|
-
case
|
|
696
|
+
case ve: {
|
|
697
697
|
if (s.isNull) throw new Error();
|
|
698
698
|
e.AuthSessionId = s.asString();
|
|
699
699
|
break;
|
|
700
700
|
}
|
|
701
|
-
case
|
|
701
|
+
case Me: {
|
|
702
702
|
if (s.isNull) throw new Error();
|
|
703
703
|
e.ReceiveAllMessages = s.asBool();
|
|
704
704
|
break;
|
|
705
705
|
}
|
|
706
|
-
case
|
|
706
|
+
case ke: {
|
|
707
707
|
if (s.isNull) throw new Error();
|
|
708
708
|
e.Description = s.asString();
|
|
709
709
|
break;
|
|
710
710
|
}
|
|
711
|
-
case
|
|
711
|
+
case Ve: {
|
|
712
712
|
if (s.isNull) throw new Error();
|
|
713
713
|
e.Locale = s.asString();
|
|
714
714
|
break;
|
|
715
715
|
}
|
|
716
|
-
case
|
|
716
|
+
case Ge: {
|
|
717
717
|
if (s.isNull) throw new Error();
|
|
718
718
|
e.SdkType = s.asInt32();
|
|
719
719
|
break;
|
|
720
720
|
}
|
|
721
|
-
case
|
|
721
|
+
case Be: {
|
|
722
722
|
if (s.isNull) throw new Error();
|
|
723
723
|
e.SessionId = s.asInt32();
|
|
724
724
|
break;
|
|
725
725
|
}
|
|
726
|
-
case
|
|
726
|
+
case xe: {
|
|
727
727
|
if (s.isNull) throw new Error();
|
|
728
728
|
e.PreciseJoinedAt = s.asUInt64();
|
|
729
729
|
break;
|
|
730
730
|
}
|
|
731
|
-
case
|
|
731
|
+
case He: {
|
|
732
732
|
if (s.isNull) throw new Error();
|
|
733
733
|
e.PayloadType = s.asInt32();
|
|
734
734
|
break;
|
|
735
735
|
}
|
|
736
|
-
case
|
|
736
|
+
case Ye: {
|
|
737
737
|
if (s.isNull) throw new Error();
|
|
738
738
|
e.VersionId = s.asString();
|
|
739
739
|
break;
|
|
740
740
|
}
|
|
741
|
-
case
|
|
741
|
+
case $e: {
|
|
742
742
|
if (s.isNull) throw new Error();
|
|
743
743
|
e.UniqueSessionId = s.asString();
|
|
744
744
|
break;
|
|
745
745
|
}
|
|
746
|
-
case
|
|
746
|
+
case Ke: {
|
|
747
747
|
if (s.isNull) throw new Error();
|
|
748
748
|
e.ClientType = s.asInt32();
|
|
749
749
|
break;
|
|
750
750
|
}
|
|
751
|
-
case
|
|
751
|
+
case je: {
|
|
752
752
|
if (s.isNull) throw new Error();
|
|
753
753
|
e.IsReady = s.asBool();
|
|
754
754
|
break;
|
|
755
755
|
}
|
|
756
|
-
case
|
|
756
|
+
case Xe: {
|
|
757
757
|
if (s.isNull) throw new Error();
|
|
758
|
-
e.Parameters =
|
|
758
|
+
e.Parameters = ts(s.asDictionary());
|
|
759
759
|
break;
|
|
760
760
|
}
|
|
761
|
-
case
|
|
761
|
+
case ze: {
|
|
762
762
|
if (s.isNull) throw new Error();
|
|
763
763
|
e.IsInternal = s.asBool();
|
|
764
764
|
break;
|
|
765
765
|
}
|
|
766
|
-
case
|
|
766
|
+
case We: {
|
|
767
767
|
if (s.isNull) throw new Error();
|
|
768
768
|
e.ChannelLocale = s.asString();
|
|
769
769
|
break;
|
|
770
770
|
}
|
|
771
|
-
case
|
|
771
|
+
case Je: {
|
|
772
772
|
if (s.isNull) throw new Error();
|
|
773
773
|
e.EmbeddedSpaceId = s.asString();
|
|
774
774
|
break;
|
|
775
775
|
}
|
|
776
776
|
}
|
|
777
777
|
}
|
|
778
|
-
function
|
|
778
|
+
function ts(t) {
|
|
779
779
|
const e = /* @__PURE__ */ Object.create(null);
|
|
780
780
|
let s;
|
|
781
781
|
for (; (s = t.next()) !== null; ) {
|
|
@@ -784,272 +784,272 @@ function Qe(t) {
|
|
|
784
784
|
}
|
|
785
785
|
return e;
|
|
786
786
|
}
|
|
787
|
-
const
|
|
788
|
-
function
|
|
787
|
+
const es = 703025676, ss = 814454131, rs = 972460562, ns = 976255570, is = 1368629611, os = 1479280922, as = 1533537016, ls = 2274386296, Is = 2603556958, cs = 2885165957, Es = 3568439632;
|
|
788
|
+
function _s(t) {
|
|
789
789
|
const e = {};
|
|
790
|
-
return
|
|
790
|
+
return Ut(e), e;
|
|
791
791
|
}
|
|
792
|
-
function
|
|
792
|
+
function Ut(t) {
|
|
793
793
|
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
794
|
}
|
|
795
|
-
function
|
|
796
|
-
const s = e ??
|
|
797
|
-
return
|
|
795
|
+
function fs(t, e) {
|
|
796
|
+
const s = e ?? _s();
|
|
797
|
+
return Ut(s), hs(t, s), s;
|
|
798
798
|
}
|
|
799
|
-
function
|
|
799
|
+
function hs(t, e) {
|
|
800
800
|
let s;
|
|
801
801
|
for (; (s = t.next()) !== null; )
|
|
802
802
|
switch (s.fieldId) {
|
|
803
|
-
case
|
|
803
|
+
case es: {
|
|
804
804
|
if (s.isNull) throw new Error();
|
|
805
805
|
e.ResultTypeName = s.asString();
|
|
806
806
|
break;
|
|
807
807
|
}
|
|
808
|
-
case
|
|
808
|
+
case ss: {
|
|
809
809
|
if (s.isNull) throw new Error();
|
|
810
810
|
e.FunctionName = s.asString();
|
|
811
811
|
break;
|
|
812
812
|
}
|
|
813
|
-
case
|
|
813
|
+
case rs: {
|
|
814
814
|
if (s.isNull) throw new Error();
|
|
815
815
|
e.EnumerableItemTypeName = s.asString();
|
|
816
816
|
break;
|
|
817
817
|
}
|
|
818
|
-
case
|
|
818
|
+
case ns: {
|
|
819
819
|
if (s.isNull) throw new Error();
|
|
820
820
|
e.FunctionId = s.asGuid();
|
|
821
821
|
break;
|
|
822
822
|
}
|
|
823
|
-
case
|
|
823
|
+
case is: {
|
|
824
824
|
if (s.isNull) throw new Error();
|
|
825
825
|
e.Description = s.asString();
|
|
826
826
|
break;
|
|
827
827
|
}
|
|
828
|
-
case
|
|
828
|
+
case os: {
|
|
829
829
|
if (s.isNull) throw new Error();
|
|
830
830
|
e.IsCancellable = s.asBool();
|
|
831
831
|
break;
|
|
832
832
|
}
|
|
833
|
-
case
|
|
833
|
+
case as: {
|
|
834
834
|
if (s.isNull) throw new Error();
|
|
835
835
|
e.RequiresInstance = s.asBool();
|
|
836
836
|
break;
|
|
837
837
|
}
|
|
838
|
-
case
|
|
838
|
+
case ls: {
|
|
839
839
|
if (s.isNull) throw new Error();
|
|
840
840
|
e.LlmInlineResult = s.asBool();
|
|
841
841
|
break;
|
|
842
842
|
}
|
|
843
|
-
case
|
|
843
|
+
case Is: {
|
|
844
844
|
if (s.isNull) throw new Error();
|
|
845
845
|
e.IsEnumerable = s.asBool();
|
|
846
846
|
break;
|
|
847
847
|
}
|
|
848
|
-
case
|
|
848
|
+
case cs: {
|
|
849
849
|
if (s.isNull) throw new Error();
|
|
850
|
-
e.Parameters =
|
|
850
|
+
e.Parameters = us(s.asArray());
|
|
851
851
|
break;
|
|
852
852
|
}
|
|
853
|
-
case
|
|
853
|
+
case Es: {
|
|
854
854
|
if (s.isNull) throw new Error();
|
|
855
855
|
e.LlmCallOnlyOnce = s.asBool();
|
|
856
856
|
break;
|
|
857
857
|
}
|
|
858
858
|
}
|
|
859
859
|
}
|
|
860
|
-
function
|
|
860
|
+
function us(t) {
|
|
861
861
|
const e = [];
|
|
862
862
|
let s;
|
|
863
863
|
for (; (s = t.next()) !== null; )
|
|
864
|
-
e.push(
|
|
864
|
+
e.push(Rs(s.asObject()));
|
|
865
865
|
return e;
|
|
866
866
|
}
|
|
867
|
-
const
|
|
868
|
-
function
|
|
867
|
+
const Ts = 607861992, As = 894485888, Ns = 972460562, ds = 1368629611, Ss = 1883521406, ys = 2603556958, ws = 3609695522, Cs = 4075263697, Ds = 4257460908;
|
|
868
|
+
function Us(t) {
|
|
869
869
|
const e = {};
|
|
870
|
-
return
|
|
870
|
+
return Rt(e), e;
|
|
871
871
|
}
|
|
872
|
-
function
|
|
872
|
+
function Rt(t) {
|
|
873
873
|
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
874
|
}
|
|
875
|
-
function
|
|
876
|
-
const s = e ??
|
|
877
|
-
return
|
|
875
|
+
function Rs(t, e) {
|
|
876
|
+
const s = e ?? Us();
|
|
877
|
+
return Rt(s), ms(t, s), s;
|
|
878
878
|
}
|
|
879
|
-
function
|
|
879
|
+
function ms(t, e) {
|
|
880
880
|
let s;
|
|
881
881
|
for (; (s = t.next()) !== null; )
|
|
882
882
|
switch (s.fieldId) {
|
|
883
|
-
case
|
|
883
|
+
case Ts: {
|
|
884
884
|
if (s.isNull) throw new Error();
|
|
885
885
|
e.HasDefaultValue = s.asBool();
|
|
886
886
|
break;
|
|
887
887
|
}
|
|
888
|
-
case
|
|
888
|
+
case As: {
|
|
889
889
|
if (s.isNull) throw new Error();
|
|
890
890
|
e.DefaultValueJson = s.asString();
|
|
891
891
|
break;
|
|
892
892
|
}
|
|
893
|
-
case
|
|
893
|
+
case Ns: {
|
|
894
894
|
if (s.isNull) throw new Error();
|
|
895
895
|
e.EnumerableItemTypeName = s.asString();
|
|
896
896
|
break;
|
|
897
897
|
}
|
|
898
|
-
case
|
|
898
|
+
case ds: {
|
|
899
899
|
if (s.isNull) throw new Error();
|
|
900
900
|
e.Description = s.asString();
|
|
901
901
|
break;
|
|
902
902
|
}
|
|
903
|
-
case
|
|
903
|
+
case Ss: {
|
|
904
904
|
if (s.isNull) throw new Error();
|
|
905
905
|
e.DefaultValueData = s.asBinary();
|
|
906
906
|
break;
|
|
907
907
|
}
|
|
908
|
-
case
|
|
908
|
+
case ys: {
|
|
909
909
|
if (s.isNull) throw new Error();
|
|
910
910
|
e.IsEnumerable = s.asBool();
|
|
911
911
|
break;
|
|
912
912
|
}
|
|
913
|
-
case
|
|
913
|
+
case ws: {
|
|
914
914
|
if (s.isNull) throw new Error();
|
|
915
915
|
e.TypeName = s.asString();
|
|
916
916
|
break;
|
|
917
917
|
}
|
|
918
|
-
case
|
|
918
|
+
case Cs: {
|
|
919
919
|
if (s.isNull) throw new Error();
|
|
920
920
|
e.ParameterName = s.asString();
|
|
921
921
|
break;
|
|
922
922
|
}
|
|
923
|
-
case
|
|
923
|
+
case Ds: {
|
|
924
924
|
if (s.isNull) throw new Error();
|
|
925
925
|
e.ParameterIndex = s.asInt32();
|
|
926
926
|
break;
|
|
927
927
|
}
|
|
928
928
|
}
|
|
929
929
|
}
|
|
930
|
-
const
|
|
931
|
-
function
|
|
930
|
+
const Ls = 3167053791, gs = 3342364356, Os = 3612929027;
|
|
931
|
+
function mt(t) {
|
|
932
932
|
const e = {};
|
|
933
|
-
return
|
|
933
|
+
return Lt(e), e;
|
|
934
934
|
}
|
|
935
|
-
function
|
|
935
|
+
function Lt(t) {
|
|
936
936
|
return t.Category = "", t.Type = ut.Face, t.FaceBlendshapes = [], t;
|
|
937
937
|
}
|
|
938
|
-
function
|
|
939
|
-
const s = e ??
|
|
940
|
-
return
|
|
938
|
+
function Ps(t, e) {
|
|
939
|
+
const s = e ?? mt();
|
|
940
|
+
return Lt(s), bs(t, s), s;
|
|
941
941
|
}
|
|
942
|
-
function
|
|
942
|
+
function bs(t, e) {
|
|
943
943
|
let s;
|
|
944
944
|
for (; (s = t.next()) !== null; )
|
|
945
945
|
switch (s.fieldId) {
|
|
946
|
-
case
|
|
946
|
+
case Ls: {
|
|
947
947
|
if (s.isNull) throw new Error();
|
|
948
948
|
e.Type = s.asInt32();
|
|
949
949
|
break;
|
|
950
950
|
}
|
|
951
|
-
case
|
|
951
|
+
case gs: {
|
|
952
952
|
if (s.isNull) throw new Error();
|
|
953
|
-
e.FaceBlendshapes =
|
|
953
|
+
e.FaceBlendshapes = Fs(s.asArray());
|
|
954
954
|
break;
|
|
955
955
|
}
|
|
956
|
-
case
|
|
956
|
+
case Os: {
|
|
957
957
|
if (s.isNull) throw new Error();
|
|
958
958
|
e.Category = s.asString();
|
|
959
959
|
break;
|
|
960
960
|
}
|
|
961
961
|
}
|
|
962
962
|
}
|
|
963
|
-
function
|
|
963
|
+
function Fs(t) {
|
|
964
964
|
const e = [];
|
|
965
965
|
let s;
|
|
966
966
|
for (; (s = t.next()) !== null; )
|
|
967
967
|
e.push(s.asString());
|
|
968
968
|
return e;
|
|
969
969
|
}
|
|
970
|
-
const
|
|
971
|
-
function
|
|
970
|
+
const ps = 3612929027;
|
|
971
|
+
function gt(t) {
|
|
972
972
|
const e = {};
|
|
973
|
-
return
|
|
973
|
+
return Ot(e), e;
|
|
974
974
|
}
|
|
975
|
-
function
|
|
975
|
+
function Ot(t) {
|
|
976
976
|
return t.Category = "", t;
|
|
977
977
|
}
|
|
978
|
-
function
|
|
979
|
-
const s = e ??
|
|
980
|
-
return
|
|
978
|
+
function vs(t, e) {
|
|
979
|
+
const s = e ?? gt();
|
|
980
|
+
return Ot(s), Ms(t, s), s;
|
|
981
981
|
}
|
|
982
|
-
function
|
|
982
|
+
function Ms(t, e) {
|
|
983
983
|
let s;
|
|
984
984
|
for (; (s = t.next()) !== null; )
|
|
985
985
|
switch (s.fieldId) {
|
|
986
|
-
case
|
|
986
|
+
case ps: {
|
|
987
987
|
if (s.isNull) throw new Error();
|
|
988
988
|
e.Category = s.asString();
|
|
989
989
|
break;
|
|
990
990
|
}
|
|
991
991
|
}
|
|
992
992
|
}
|
|
993
|
-
const
|
|
994
|
-
function
|
|
993
|
+
const ks = 164808083, Vs = 1368629611, Gs = 2739413426, Bs = 2768375929, xs = 2950031986, Hs = 3284746250, Ys = 4065070594;
|
|
994
|
+
function Pt(t) {
|
|
995
995
|
const e = {};
|
|
996
|
-
return
|
|
996
|
+
return bt(e), e;
|
|
997
997
|
}
|
|
998
|
-
function
|
|
998
|
+
function bt(t) {
|
|
999
999
|
return t.Description = "", t.Codec = At.H264, t.Width = 0, t.Height = 0, t.Framerate = 30, t.Bitrate = 0, t.IsHardwareAccelerated = !1, t;
|
|
1000
1000
|
}
|
|
1001
|
-
function
|
|
1002
|
-
const s = e ??
|
|
1003
|
-
return
|
|
1001
|
+
function $s(t, e) {
|
|
1002
|
+
const s = e ?? Pt();
|
|
1003
|
+
return bt(s), Ks(t, s), s;
|
|
1004
1004
|
}
|
|
1005
|
-
function
|
|
1005
|
+
function Ks(t, e) {
|
|
1006
1006
|
let s;
|
|
1007
1007
|
for (; (s = t.next()) !== null; )
|
|
1008
1008
|
switch (s.fieldId) {
|
|
1009
|
-
case
|
|
1009
|
+
case ks: {
|
|
1010
1010
|
if (s.isNull) throw new Error();
|
|
1011
1011
|
e.Framerate = s.asInt32();
|
|
1012
1012
|
break;
|
|
1013
1013
|
}
|
|
1014
|
-
case
|
|
1014
|
+
case Vs: {
|
|
1015
1015
|
if (s.isNull) throw new Error();
|
|
1016
1016
|
e.Description = s.asString();
|
|
1017
1017
|
break;
|
|
1018
1018
|
}
|
|
1019
|
-
case
|
|
1019
|
+
case Gs: {
|
|
1020
1020
|
if (s.isNull) throw new Error();
|
|
1021
1021
|
e.IsHardwareAccelerated = s.asBool();
|
|
1022
1022
|
break;
|
|
1023
1023
|
}
|
|
1024
|
-
case
|
|
1024
|
+
case Bs: {
|
|
1025
1025
|
if (s.isNull) throw new Error();
|
|
1026
1026
|
e.Bitrate = s.asInt32();
|
|
1027
1027
|
break;
|
|
1028
1028
|
}
|
|
1029
|
-
case
|
|
1029
|
+
case xs: {
|
|
1030
1030
|
if (s.isNull) throw new Error();
|
|
1031
1031
|
e.Height = s.asInt32();
|
|
1032
1032
|
break;
|
|
1033
1033
|
}
|
|
1034
|
-
case
|
|
1034
|
+
case Hs: {
|
|
1035
1035
|
if (s.isNull) throw new Error();
|
|
1036
1036
|
e.Codec = s.asInt32();
|
|
1037
1037
|
break;
|
|
1038
1038
|
}
|
|
1039
|
-
case
|
|
1039
|
+
case Ys: {
|
|
1040
1040
|
if (s.isNull) throw new Error();
|
|
1041
1041
|
e.Width = s.asInt32();
|
|
1042
1042
|
break;
|
|
1043
1043
|
}
|
|
1044
1044
|
}
|
|
1045
1045
|
}
|
|
1046
|
-
const
|
|
1046
|
+
const js = 65539, Xs = 693643444, zs = 1144553441, Ws = 1497620243, Js = 1559330978, qs = 1976546434, Qs = 1999510636, Zs = 2277643855, tr = 2469008121, er = 3042922213, sr = 3064612128, rr = 3219210453, nr = 3504054055, ir = 3678477544, or = 3696445035, ar = 3707543140, lr = 3712281496, Ir = 3895362455, cr = 3897397815, Er = 4225107827;
|
|
1047
1047
|
function _r(t) {
|
|
1048
1048
|
const e = {};
|
|
1049
|
-
return
|
|
1049
|
+
return Ft(e), e;
|
|
1050
1050
|
}
|
|
1051
|
-
function
|
|
1052
|
-
return t.Clients = /* @__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.
|
|
1051
|
+
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 = dt.Local, t.AppSourceType = St.Bundle, t.PublicAccess = !1, t.DebugMode = !1, t;
|
|
1053
1053
|
}
|
|
1054
1054
|
function fr(t, e) {
|
|
1055
1055
|
const s = L.create(t);
|
|
@@ -1057,100 +1057,90 @@ function fr(t, e) {
|
|
|
1057
1057
|
}
|
|
1058
1058
|
function hr(t, e) {
|
|
1059
1059
|
const s = e ?? _r();
|
|
1060
|
-
return
|
|
1060
|
+
return Ft(s), ur(t, s), s;
|
|
1061
1061
|
}
|
|
1062
1062
|
function ur(t, e) {
|
|
1063
1063
|
let s;
|
|
1064
1064
|
for (; (s = t.next()) !== null; )
|
|
1065
1065
|
switch (s.fieldId) {
|
|
1066
|
-
case Ks: {
|
|
1067
|
-
if (s.isNull) throw new Error();
|
|
1068
|
-
e.IsGitSource = s.asBool();
|
|
1069
|
-
break;
|
|
1070
|
-
}
|
|
1071
|
-
case js: {
|
|
1072
|
-
if (s.isNull) throw new Error();
|
|
1073
|
-
e.FirstUserId = s.asString();
|
|
1074
|
-
break;
|
|
1075
|
-
}
|
|
1076
1066
|
case Xs: {
|
|
1077
1067
|
if (s.isNull) throw new Error();
|
|
1078
|
-
e.
|
|
1068
|
+
e.FirstUserId = s.asString();
|
|
1079
1069
|
break;
|
|
1080
1070
|
}
|
|
1081
1071
|
case zs: {
|
|
1082
1072
|
if (s.isNull) throw new Error();
|
|
1083
|
-
e.
|
|
1073
|
+
e.Clients = Ar(s.asDictionary());
|
|
1084
1074
|
break;
|
|
1085
1075
|
}
|
|
1086
1076
|
case Ws: {
|
|
1087
1077
|
if (s.isNull) throw new Error();
|
|
1088
|
-
e.
|
|
1078
|
+
e.TrackingStreams = Nr(s.asDictionary());
|
|
1089
1079
|
break;
|
|
1090
1080
|
}
|
|
1091
1081
|
case Js: {
|
|
1092
1082
|
if (s.isNull) throw new Error();
|
|
1093
|
-
e.
|
|
1083
|
+
e.ChannelId = s.asString();
|
|
1094
1084
|
break;
|
|
1095
1085
|
}
|
|
1096
1086
|
case qs: {
|
|
1097
1087
|
if (s.isNull) throw new Error();
|
|
1098
|
-
e.
|
|
1088
|
+
e.AppSourceType = s.asInt32();
|
|
1099
1089
|
break;
|
|
1100
1090
|
}
|
|
1101
1091
|
case Qs: {
|
|
1102
1092
|
if (s.isNull) throw new Error();
|
|
1103
|
-
e.
|
|
1093
|
+
e.SessionId = s.asString();
|
|
1104
1094
|
break;
|
|
1105
1095
|
}
|
|
1106
1096
|
case Zs: {
|
|
1107
1097
|
if (s.isNull) throw new Error();
|
|
1108
|
-
e.
|
|
1098
|
+
e.ChannelUrl = s.asString();
|
|
1109
1099
|
break;
|
|
1110
1100
|
}
|
|
1111
1101
|
case tr: {
|
|
1112
1102
|
if (s.isNull) throw new Error();
|
|
1113
|
-
e.
|
|
1103
|
+
e.ChannelName = s.asString();
|
|
1114
1104
|
break;
|
|
1115
1105
|
}
|
|
1116
1106
|
case er: {
|
|
1117
1107
|
if (s.isNull) throw new Error();
|
|
1118
|
-
e.
|
|
1108
|
+
e.PublicAccess = s.asBool();
|
|
1119
1109
|
break;
|
|
1120
1110
|
}
|
|
1121
1111
|
case sr: {
|
|
1122
1112
|
if (s.isNull) throw new Error();
|
|
1123
|
-
e.
|
|
1113
|
+
e.ServerRunType = s.asInt32();
|
|
1124
1114
|
break;
|
|
1125
1115
|
}
|
|
1126
1116
|
case rr: {
|
|
1127
1117
|
if (s.isNull) throw new Error();
|
|
1128
|
-
e.
|
|
1118
|
+
e.OrganisationName = s.asString();
|
|
1129
1119
|
break;
|
|
1130
1120
|
}
|
|
1131
1121
|
case nr: {
|
|
1132
1122
|
if (s.isNull) throw new Error();
|
|
1133
|
-
e.
|
|
1123
|
+
e.DebugMode = s.asBool();
|
|
1134
1124
|
break;
|
|
1135
1125
|
}
|
|
1136
1126
|
case ir: {
|
|
1137
1127
|
if (s.isNull) throw new Error();
|
|
1138
|
-
e.
|
|
1128
|
+
e.Functions = dr(s.asDictionary());
|
|
1139
1129
|
break;
|
|
1140
1130
|
}
|
|
1141
1131
|
case or: {
|
|
1142
1132
|
if (s.isNull) throw new Error();
|
|
1143
|
-
e.
|
|
1133
|
+
e.UIStreams = Sr(s.asDictionary());
|
|
1144
1134
|
break;
|
|
1145
1135
|
}
|
|
1146
1136
|
case ar: {
|
|
1147
1137
|
if (s.isNull) throw new Error();
|
|
1148
|
-
e.
|
|
1138
|
+
e.SpaceId = s.asString();
|
|
1149
1139
|
break;
|
|
1150
1140
|
}
|
|
1151
1141
|
case lr: {
|
|
1152
1142
|
if (s.isNull) throw new Error();
|
|
1153
|
-
e.
|
|
1143
|
+
e.PrimaryUserId = s.asString();
|
|
1154
1144
|
break;
|
|
1155
1145
|
}
|
|
1156
1146
|
case Ir: {
|
|
@@ -1171,7 +1161,7 @@ function ur(t, e) {
|
|
|
1171
1161
|
}
|
|
1172
1162
|
}
|
|
1173
1163
|
async function Tr(t, e) {
|
|
1174
|
-
const s = await $(t,
|
|
1164
|
+
const s = await $(t, js);
|
|
1175
1165
|
return fr(s, e);
|
|
1176
1166
|
}
|
|
1177
1167
|
function Ar(t) {
|
|
@@ -1179,7 +1169,7 @@ function Ar(t) {
|
|
|
1179
1169
|
let s;
|
|
1180
1170
|
for (; (s = t.next()) !== null; ) {
|
|
1181
1171
|
const r = s.key.asInt32();
|
|
1182
|
-
e[r] =
|
|
1172
|
+
e[r] = Qe(s.value.asObject());
|
|
1183
1173
|
}
|
|
1184
1174
|
return e;
|
|
1185
1175
|
}
|
|
@@ -1232,20 +1222,20 @@ function Cr(t) {
|
|
|
1232
1222
|
const e = [];
|
|
1233
1223
|
let s;
|
|
1234
1224
|
for (; (s = t.next()) !== null; )
|
|
1235
|
-
e.push(
|
|
1225
|
+
e.push(fs(s.asObject()));
|
|
1236
1226
|
return e;
|
|
1237
1227
|
}
|
|
1238
1228
|
const Dr = 161083277, Ur = 325678206, Rr = 3469892363, mr = 3645544153;
|
|
1239
1229
|
function Lr(t) {
|
|
1240
1230
|
const e = {};
|
|
1241
|
-
return
|
|
1231
|
+
return pt(e), e;
|
|
1242
1232
|
}
|
|
1243
|
-
function
|
|
1244
|
-
return t.StreamId = "", t.ClientSessionId = 0, t.TrackId = 0, t.Info =
|
|
1233
|
+
function pt(t) {
|
|
1234
|
+
return t.StreamId = "", t.ClientSessionId = 0, t.TrackId = 0, t.Info = gt(), t;
|
|
1245
1235
|
}
|
|
1246
1236
|
function gr(t, e) {
|
|
1247
1237
|
const s = e ?? Lr();
|
|
1248
|
-
return
|
|
1238
|
+
return pt(s), Or(t, s), s;
|
|
1249
1239
|
}
|
|
1250
1240
|
function Or(t, e) {
|
|
1251
1241
|
let s;
|
|
@@ -1268,22 +1258,22 @@ function Or(t, e) {
|
|
|
1268
1258
|
}
|
|
1269
1259
|
case mr: {
|
|
1270
1260
|
if (s.isNull) throw new Error();
|
|
1271
|
-
e.Info =
|
|
1261
|
+
e.Info = vs(s.asObject());
|
|
1272
1262
|
break;
|
|
1273
1263
|
}
|
|
1274
1264
|
}
|
|
1275
1265
|
}
|
|
1276
|
-
const Pr = 161083277, br = 325678206,
|
|
1266
|
+
const Pr = 161083277, br = 325678206, Fr = 3469892363, pr = 3645544153;
|
|
1277
1267
|
function vr(t) {
|
|
1278
1268
|
const e = {};
|
|
1279
|
-
return
|
|
1269
|
+
return vt(e), e;
|
|
1280
1270
|
}
|
|
1281
|
-
function
|
|
1282
|
-
return t.StreamId = "", t.ClientSessionId = 0, t.TrackId = 0, t.Info =
|
|
1271
|
+
function vt(t) {
|
|
1272
|
+
return t.StreamId = "", t.ClientSessionId = 0, t.TrackId = 0, t.Info = yt(), t;
|
|
1283
1273
|
}
|
|
1284
1274
|
function Mr(t, e) {
|
|
1285
1275
|
const s = e ?? vr();
|
|
1286
|
-
return
|
|
1276
|
+
return vt(s), kr(t, s), s;
|
|
1287
1277
|
}
|
|
1288
1278
|
function kr(t, e) {
|
|
1289
1279
|
let s;
|
|
@@ -1299,14 +1289,14 @@ function kr(t, e) {
|
|
|
1299
1289
|
e.ClientSessionId = s.asInt32();
|
|
1300
1290
|
break;
|
|
1301
1291
|
}
|
|
1302
|
-
case
|
|
1292
|
+
case Fr: {
|
|
1303
1293
|
if (s.isNull) throw new Error();
|
|
1304
1294
|
e.TrackId = s.asInt32();
|
|
1305
1295
|
break;
|
|
1306
1296
|
}
|
|
1307
|
-
case
|
|
1297
|
+
case pr: {
|
|
1308
1298
|
if (s.isNull) throw new Error();
|
|
1309
|
-
e.Info =
|
|
1299
|
+
e.Info = Ae(s.asObject());
|
|
1310
1300
|
break;
|
|
1311
1301
|
}
|
|
1312
1302
|
}
|
|
@@ -1314,14 +1304,14 @@ function kr(t, e) {
|
|
|
1314
1304
|
const Vr = 161083277, Gr = 325678206, Br = 3469892363, xr = 3645544153;
|
|
1315
1305
|
function Hr(t) {
|
|
1316
1306
|
const e = {};
|
|
1317
|
-
return
|
|
1307
|
+
return Mt(e), e;
|
|
1318
1308
|
}
|
|
1319
|
-
function
|
|
1320
|
-
return t.StreamId = "", t.ClientSessionId = 0, t.TrackId = 0, t.Info =
|
|
1309
|
+
function Mt(t) {
|
|
1310
|
+
return t.StreamId = "", t.ClientSessionId = 0, t.TrackId = 0, t.Info = Pt(), t;
|
|
1321
1311
|
}
|
|
1322
1312
|
function Yr(t, e) {
|
|
1323
1313
|
const s = e ?? Hr();
|
|
1324
|
-
return
|
|
1314
|
+
return Mt(s), $r(t, s), s;
|
|
1325
1315
|
}
|
|
1326
1316
|
function $r(t, e) {
|
|
1327
1317
|
let s;
|
|
@@ -1344,7 +1334,7 @@ function $r(t, e) {
|
|
|
1344
1334
|
}
|
|
1345
1335
|
case xr: {
|
|
1346
1336
|
if (s.isNull) throw new Error();
|
|
1347
|
-
e.Info =
|
|
1337
|
+
e.Info = $s(s.asObject());
|
|
1348
1338
|
break;
|
|
1349
1339
|
}
|
|
1350
1340
|
}
|
|
@@ -1352,14 +1342,14 @@ function $r(t, e) {
|
|
|
1352
1342
|
const Kr = 161083277, jr = 325678206, Xr = 3469892363, zr = 3645544153;
|
|
1353
1343
|
function Wr(t) {
|
|
1354
1344
|
const e = {};
|
|
1355
|
-
return
|
|
1345
|
+
return kt(e), e;
|
|
1356
1346
|
}
|
|
1357
|
-
function
|
|
1358
|
-
return t.StreamId = "", t.ClientSessionId = 0, t.TrackId = 0, t.Info =
|
|
1347
|
+
function kt(t) {
|
|
1348
|
+
return t.StreamId = "", t.ClientSessionId = 0, t.TrackId = 0, t.Info = mt(), t;
|
|
1359
1349
|
}
|
|
1360
1350
|
function Jr(t, e) {
|
|
1361
1351
|
const s = e ?? Wr();
|
|
1362
|
-
return
|
|
1352
|
+
return kt(s), qr(t, s), s;
|
|
1363
1353
|
}
|
|
1364
1354
|
function qr(t, e) {
|
|
1365
1355
|
let s;
|
|
@@ -1382,7 +1372,7 @@ function qr(t, e) {
|
|
|
1382
1372
|
}
|
|
1383
1373
|
case zr: {
|
|
1384
1374
|
if (s.isNull) throw new Error();
|
|
1385
|
-
e.Info =
|
|
1375
|
+
e.Info = Ps(s.asObject());
|
|
1386
1376
|
break;
|
|
1387
1377
|
}
|
|
1388
1378
|
}
|
|
@@ -1390,14 +1380,14 @@ function qr(t, e) {
|
|
|
1390
1380
|
const Qr = 1405462580, Zr = 2968276160;
|
|
1391
1381
|
function tn(t) {
|
|
1392
1382
|
const e = {};
|
|
1393
|
-
return
|
|
1383
|
+
return Vt(e), e;
|
|
1394
1384
|
}
|
|
1395
|
-
function
|
|
1385
|
+
function Vt(t) {
|
|
1396
1386
|
return t.MimeType = "", t.Value = new Uint8Array(0), t;
|
|
1397
1387
|
}
|
|
1398
1388
|
function en(t, e) {
|
|
1399
1389
|
const s = e ?? tn();
|
|
1400
|
-
return
|
|
1390
|
+
return Vt(s), sn(t, s), s;
|
|
1401
1391
|
}
|
|
1402
1392
|
function sn(t, e) {
|
|
1403
1393
|
let s;
|
|
@@ -1418,9 +1408,9 @@ function sn(t, e) {
|
|
|
1418
1408
|
const rn = 2097188, nn = 979822885, on = 2374537704;
|
|
1419
1409
|
function an(t) {
|
|
1420
1410
|
const e = {};
|
|
1421
|
-
return
|
|
1411
|
+
return Gt(e), e;
|
|
1422
1412
|
}
|
|
1423
|
-
function
|
|
1413
|
+
function Gt(t) {
|
|
1424
1414
|
return t.StyleId = "", t.Style = /* @__PURE__ */ Object.create(null), t;
|
|
1425
1415
|
}
|
|
1426
1416
|
function ln(t, e) {
|
|
@@ -1429,7 +1419,7 @@ function ln(t, e) {
|
|
|
1429
1419
|
}
|
|
1430
1420
|
function In(t, e) {
|
|
1431
1421
|
const s = e ?? an();
|
|
1432
|
-
return
|
|
1422
|
+
return Gt(s), cn(t, s), s;
|
|
1433
1423
|
}
|
|
1434
1424
|
function cn(t, e) {
|
|
1435
1425
|
let s;
|
|
@@ -1463,9 +1453,9 @@ function _n(t) {
|
|
|
1463
1453
|
const fn = 2097192, hn = 2136687806;
|
|
1464
1454
|
function un(t) {
|
|
1465
1455
|
const e = {};
|
|
1466
|
-
return
|
|
1456
|
+
return Bt(e), e;
|
|
1467
1457
|
}
|
|
1468
|
-
function
|
|
1458
|
+
function Bt(t) {
|
|
1469
1459
|
return t.Styles = [], t;
|
|
1470
1460
|
}
|
|
1471
1461
|
function Tn(t, e) {
|
|
@@ -1474,7 +1464,7 @@ function Tn(t, e) {
|
|
|
1474
1464
|
}
|
|
1475
1465
|
function An(t, e) {
|
|
1476
1466
|
const s = e ?? un();
|
|
1477
|
-
return
|
|
1467
|
+
return Bt(s), Nn(t, s), s;
|
|
1478
1468
|
}
|
|
1479
1469
|
function Nn(t, e) {
|
|
1480
1470
|
let s;
|
|
@@ -1501,14 +1491,14 @@ function Sn(t) {
|
|
|
1501
1491
|
const yn = 979822885, wn = 2374537704;
|
|
1502
1492
|
function Cn(t) {
|
|
1503
1493
|
const e = {};
|
|
1504
|
-
return
|
|
1494
|
+
return xt(e), e;
|
|
1505
1495
|
}
|
|
1506
|
-
function
|
|
1496
|
+
function xt(t) {
|
|
1507
1497
|
return t.StyleId = "", t.Style = /* @__PURE__ */ Object.create(null), t;
|
|
1508
1498
|
}
|
|
1509
1499
|
function Dn(t, e) {
|
|
1510
1500
|
const s = e ?? Cn();
|
|
1511
|
-
return
|
|
1501
|
+
return xt(s), Un(t, s), s;
|
|
1512
1502
|
}
|
|
1513
1503
|
function Un(t, e) {
|
|
1514
1504
|
let s;
|
|
@@ -1538,9 +1528,9 @@ function Rn(t) {
|
|
|
1538
1528
|
const mn = 2097193, Ln = 1415642792;
|
|
1539
1529
|
function gn(t) {
|
|
1540
1530
|
const e = {};
|
|
1541
|
-
return
|
|
1531
|
+
return Ht(e), e;
|
|
1542
1532
|
}
|
|
1543
|
-
function
|
|
1533
|
+
function Ht(t) {
|
|
1544
1534
|
return t.StyleIds = [], t;
|
|
1545
1535
|
}
|
|
1546
1536
|
function On(t, e) {
|
|
@@ -1549,7 +1539,7 @@ function On(t, e) {
|
|
|
1549
1539
|
}
|
|
1550
1540
|
function Pn(t, e) {
|
|
1551
1541
|
const s = e ?? gn();
|
|
1552
|
-
return
|
|
1542
|
+
return Ht(s), bn(t, s), s;
|
|
1553
1543
|
}
|
|
1554
1544
|
function bn(t, e) {
|
|
1555
1545
|
let s;
|
|
@@ -1557,16 +1547,16 @@ function bn(t, e) {
|
|
|
1557
1547
|
switch (s.fieldId) {
|
|
1558
1548
|
case Ln: {
|
|
1559
1549
|
if (s.isNull) throw new Error();
|
|
1560
|
-
e.StyleIds =
|
|
1550
|
+
e.StyleIds = pn(s.asArray());
|
|
1561
1551
|
break;
|
|
1562
1552
|
}
|
|
1563
1553
|
}
|
|
1564
1554
|
}
|
|
1565
|
-
async function
|
|
1555
|
+
async function Fn(t, e) {
|
|
1566
1556
|
const s = await $(t, mn);
|
|
1567
1557
|
return On(s, e);
|
|
1568
1558
|
}
|
|
1569
|
-
function
|
|
1559
|
+
function pn(t) {
|
|
1570
1560
|
const e = [];
|
|
1571
1561
|
let s;
|
|
1572
1562
|
for (; (s = t.next()) !== null; )
|
|
@@ -1576,9 +1566,9 @@ function Fn(t) {
|
|
|
1576
1566
|
const vn = 2097190, Mn = 425183262, kn = 653781469;
|
|
1577
1567
|
function Vn(t) {
|
|
1578
1568
|
const e = {};
|
|
1579
|
-
return
|
|
1569
|
+
return Yt(e), e;
|
|
1580
1570
|
}
|
|
1581
|
-
function
|
|
1571
|
+
function Yt(t) {
|
|
1582
1572
|
return t.Json = "", t.Payloads = /* @__PURE__ */ Object.create(null), t;
|
|
1583
1573
|
}
|
|
1584
1574
|
function Gn(t, e) {
|
|
@@ -1587,7 +1577,7 @@ function Gn(t, e) {
|
|
|
1587
1577
|
}
|
|
1588
1578
|
function Bn(t, e) {
|
|
1589
1579
|
const s = e ?? Vn();
|
|
1590
|
-
return
|
|
1580
|
+
return Yt(s), xn(t, s), s;
|
|
1591
1581
|
}
|
|
1592
1582
|
function xn(t, e) {
|
|
1593
1583
|
let s;
|
|
@@ -1621,7 +1611,7 @@ function Yn(t) {
|
|
|
1621
1611
|
function y(t) {
|
|
1622
1612
|
return typeof t == "object" && t !== null && !Array.isArray(t);
|
|
1623
1613
|
}
|
|
1624
|
-
function
|
|
1614
|
+
function $t(t) {
|
|
1625
1615
|
const e = {}, s = Object.keys(t);
|
|
1626
1616
|
for (let r = 0; r < s.length; r++) {
|
|
1627
1617
|
const n = s[r];
|
|
@@ -1629,7 +1619,7 @@ function Ht(t) {
|
|
|
1629
1619
|
}
|
|
1630
1620
|
return e;
|
|
1631
1621
|
}
|
|
1632
|
-
function
|
|
1622
|
+
function Kt(t, e, s, r) {
|
|
1633
1623
|
if (!(t === void 0 && r)) {
|
|
1634
1624
|
if (Array.isArray(t)) {
|
|
1635
1625
|
const n = [];
|
|
@@ -1659,18 +1649,18 @@ function ot(t, e) {
|
|
|
1659
1649
|
if (n != null) {
|
|
1660
1650
|
if (!y(n))
|
|
1661
1651
|
throw new Error(`Invalid props for node ${s}`);
|
|
1662
|
-
a =
|
|
1652
|
+
a = $t(n);
|
|
1663
1653
|
}
|
|
1664
|
-
let
|
|
1665
|
-
Array.isArray(i) && (
|
|
1666
|
-
(
|
|
1654
|
+
let c = [];
|
|
1655
|
+
Array.isArray(i) && (c = i.map(
|
|
1656
|
+
(I, E) => ot(I ?? {}, `${e}.children[${E}]`)
|
|
1667
1657
|
));
|
|
1668
|
-
const l =
|
|
1658
|
+
const l = Kt(o, e, s, !1);
|
|
1669
1659
|
return {
|
|
1670
1660
|
id: s,
|
|
1671
1661
|
type: r,
|
|
1672
1662
|
props: a,
|
|
1673
|
-
children:
|
|
1663
|
+
children: c,
|
|
1674
1664
|
styleIds: l ?? []
|
|
1675
1665
|
};
|
|
1676
1666
|
}
|
|
@@ -1750,25 +1740,25 @@ function zn(t, e) {
|
|
|
1750
1740
|
if (typeof s != "string" || s.length === 0)
|
|
1751
1741
|
throw new Error(`Invalid node change nodeId at ${e}`);
|
|
1752
1742
|
const r = Array.isArray(t.inserts) ? t.inserts.map(
|
|
1753
|
-
(
|
|
1743
|
+
(I, E) => Kn(I ?? {}, `${e}.inserts[${E}]`)
|
|
1754
1744
|
) : void 0, n = Array.isArray(t.moves) ? t.moves.map(
|
|
1755
|
-
(
|
|
1745
|
+
(I, E) => jn(I ?? {}, `${e}.moves[${E}]`)
|
|
1756
1746
|
) : void 0, i = Array.isArray(t.removals) ? t.removals.map(
|
|
1757
|
-
(
|
|
1747
|
+
(I, E) => Xn(I ?? {}, `${e}.removals[${E}]`)
|
|
1758
1748
|
) : void 0;
|
|
1759
1749
|
let o;
|
|
1760
1750
|
if (y(t.changedProps)) {
|
|
1761
1751
|
o = /* @__PURE__ */ new Map();
|
|
1762
|
-
for (const [
|
|
1752
|
+
for (const [I, E] of Object.entries(t.changedProps)) {
|
|
1763
1753
|
if (!y(E))
|
|
1764
1754
|
continue;
|
|
1765
1755
|
const _ = E.New;
|
|
1766
|
-
_ === void 0 ? o.set(
|
|
1756
|
+
_ === void 0 ? o.set(I, void 0) : y(_) ? o.set(I, $t(_)) : o.set(I, _);
|
|
1767
1757
|
}
|
|
1768
1758
|
}
|
|
1769
1759
|
const a = Array.isArray(t.textUpdates) ? t.textUpdates.map(
|
|
1770
|
-
(
|
|
1771
|
-
) : void 0,
|
|
1760
|
+
(I, E) => $n(I ?? {}, `${e}.textUpdates[${E}]`)
|
|
1761
|
+
) : void 0, c = t.styleIds, l = c !== void 0 ? Kt(c, e, s, !0) : void 0;
|
|
1772
1762
|
return {
|
|
1773
1763
|
nodeId: s,
|
|
1774
1764
|
...r && r.length > 0 ? { inserts: r } : {},
|
|
@@ -1809,33 +1799,33 @@ function qn(t, e, s) {
|
|
|
1809
1799
|
throw new D("UI diff metadata is missing viewId");
|
|
1810
1800
|
const n = t.map(
|
|
1811
1801
|
(E, _) => zn(E ?? {}, `changes[${_}]`)
|
|
1812
|
-
), 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,
|
|
1802
|
+
), 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 = {
|
|
1813
1803
|
viewId: r,
|
|
1814
1804
|
...i !== void 0 ? { optimisticActionId: i } : {},
|
|
1815
1805
|
...o !== void 0 ? { isOptimistic: o } : {},
|
|
1816
1806
|
...a !== void 0 ? { isUpdate: a } : {},
|
|
1817
|
-
...
|
|
1807
|
+
...c ? { optimisticPatch: c } : {},
|
|
1818
1808
|
...l ? { optimisticReconcile: l } : {}
|
|
1819
1809
|
};
|
|
1820
1810
|
return {
|
|
1821
1811
|
type: "diff",
|
|
1822
1812
|
version: s,
|
|
1823
1813
|
changes: n,
|
|
1824
|
-
metadata:
|
|
1814
|
+
metadata: I
|
|
1825
1815
|
};
|
|
1826
1816
|
}
|
|
1827
1817
|
function Qn(t, e) {
|
|
1828
1818
|
const s = t.viewId;
|
|
1829
1819
|
if (typeof s != "string" || s.length === 0)
|
|
1830
1820
|
throw new D("UI update root is missing viewId");
|
|
1831
|
-
let r = s, n = t.optimisticActionId === null || typeof t.optimisticActionId == "string" ? t.optimisticActionId : void 0, i = typeof t.isOptimistic == "boolean" ? t.isOptimistic : void 0, o = typeof t.isUpdate == "boolean" ? t.isUpdate : void 0, a = Q(t.optimisticPatch),
|
|
1832
|
-
return y(e) && (typeof e.viewId == "string" && e.viewId.length > 0 && (r = e.viewId), (e.optimisticActionId === null || typeof e.optimisticActionId == "string") && (n = e.optimisticActionId), typeof e.isOptimistic == "boolean" && (i = e.isOptimistic), typeof e.isUpdate == "boolean" && (o = e.isUpdate), e.optimisticPatch !== void 0 && (a = Q(e.optimisticPatch)), e.optimisticReconcile !== void 0 && (
|
|
1821
|
+
let r = s, n = t.optimisticActionId === null || typeof t.optimisticActionId == "string" ? t.optimisticActionId : void 0, i = typeof t.isOptimistic == "boolean" ? t.isOptimistic : void 0, o = typeof t.isUpdate == "boolean" ? t.isUpdate : void 0, a = Q(t.optimisticPatch), c = Z(t.optimisticReconcile);
|
|
1822
|
+
return y(e) && (typeof e.viewId == "string" && e.viewId.length > 0 && (r = e.viewId), (e.optimisticActionId === null || typeof e.optimisticActionId == "string") && (n = e.optimisticActionId), typeof e.isOptimistic == "boolean" && (i = e.isOptimistic), typeof e.isUpdate == "boolean" && (o = e.isUpdate), e.optimisticPatch !== void 0 && (a = Q(e.optimisticPatch)), e.optimisticReconcile !== void 0 && (c = Z(e.optimisticReconcile))), {
|
|
1833
1823
|
viewId: r,
|
|
1834
1824
|
...n !== void 0 ? { optimisticActionId: n } : {},
|
|
1835
1825
|
...i !== void 0 ? { isOptimistic: i } : {},
|
|
1836
1826
|
...o !== void 0 ? { isUpdate: o } : {},
|
|
1837
1827
|
...a ? { optimisticPatch: a } : {},
|
|
1838
|
-
...
|
|
1828
|
+
...c ? { optimisticReconcile: c } : {}
|
|
1839
1829
|
};
|
|
1840
1830
|
}
|
|
1841
1831
|
function Q(t) {
|
|
@@ -1846,10 +1836,10 @@ function Q(t) {
|
|
|
1846
1836
|
return;
|
|
1847
1837
|
let a;
|
|
1848
1838
|
if (Array.isArray(o)) {
|
|
1849
|
-
const
|
|
1839
|
+
const c = [];
|
|
1850
1840
|
for (const l of o)
|
|
1851
|
-
typeof l == "string" && l.length > 0 &&
|
|
1852
|
-
a =
|
|
1841
|
+
typeof l == "string" && l.length > 0 && c.push(l);
|
|
1842
|
+
a = c;
|
|
1853
1843
|
}
|
|
1854
1844
|
return {
|
|
1855
1845
|
id: s,
|
|
@@ -2044,21 +2034,21 @@ class ei {
|
|
|
2044
2034
|
const a = s.type === "diff" && n.isUpdate === !0;
|
|
2045
2035
|
if (s.version < o.version || s.version === o.version && !a)
|
|
2046
2036
|
return !1;
|
|
2047
|
-
let
|
|
2048
|
-
if (this.rootViewId || (this.rootViewId = i,
|
|
2049
|
-
for (const
|
|
2050
|
-
o.patches.delete(
|
|
2037
|
+
let c = !1;
|
|
2038
|
+
if (this.rootViewId || (this.rootViewId = i, c = !0, this.structureChanged = !0), n.optimisticReconcile?.drop)
|
|
2039
|
+
for (const I of n.optimisticReconcile.drop)
|
|
2040
|
+
o.patches.delete(I) && (c = !0, this.patchesDirty = !0, this.invalidatePatchCache(o));
|
|
2051
2041
|
if (n.optimisticPatch?.supersedes)
|
|
2052
|
-
for (const
|
|
2053
|
-
o.patches.delete(
|
|
2042
|
+
for (const I of n.optimisticPatch.supersedes)
|
|
2043
|
+
o.patches.delete(I) && (c = !0, this.patchesDirty = !0, this.invalidatePatchCache(o));
|
|
2054
2044
|
const l = o.composite ?? o.baseline;
|
|
2055
2045
|
if (s.type === "full")
|
|
2056
|
-
o.baseline = s.root, o.composite = s.root, o.baselineVersion = n.optimisticReconcile?.baseVersion ?? s.version, o.patches.clear(), this.invalidatePatchCache(o), o.version = s.version,
|
|
2046
|
+
o.baseline = s.root, o.composite = s.root, o.baselineVersion = n.optimisticReconcile?.baseVersion ?? s.version, o.patches.clear(), this.invalidatePatchCache(o), o.version = s.version, c = !0, this.viewsDirty = !0, this.patchesDirty = !0, this.structureChanged = !0, s.root && b(s.root, this.changedNodeIds);
|
|
2057
2047
|
else if (n.optimisticPatch) {
|
|
2058
2048
|
if (!l)
|
|
2059
2049
|
return !1;
|
|
2060
|
-
const
|
|
2061
|
-
|
|
2050
|
+
const I = J(l, s.changes);
|
|
2051
|
+
I !== l && (o.composite = I, c = !0, this.viewsDirty = !0, X(l, I, this.changedNodeIds));
|
|
2062
2052
|
const E = n.optimisticPatch, _ = {
|
|
2063
2053
|
id: E.id,
|
|
2064
2054
|
actionId: E.actionId,
|
|
@@ -2066,24 +2056,24 @@ class ei {
|
|
|
2066
2056
|
baseVersion: E.baseVersion,
|
|
2067
2057
|
changes: s.changes
|
|
2068
2058
|
};
|
|
2069
|
-
o.patches.set(_.id, _), this.invalidatePatchCache(o),
|
|
2059
|
+
o.patches.set(_.id, _), this.invalidatePatchCache(o), c = !0, this.patchesDirty = !0, o.version = s.version;
|
|
2070
2060
|
} else {
|
|
2071
|
-
const
|
|
2072
|
-
if (!
|
|
2061
|
+
const I = o.baseline ?? l;
|
|
2062
|
+
if (!I)
|
|
2073
2063
|
return !1;
|
|
2074
|
-
const E = J(
|
|
2075
|
-
E !==
|
|
2064
|
+
const E = J(I, s.changes);
|
|
2065
|
+
E !== I ? (o.baseline = E, c = !0, this.viewsDirty = !0) : o.baseline = E, o.baselineVersion = n.optimisticReconcile?.baseVersion ?? s.version;
|
|
2076
2066
|
let _ = o.baseline ?? E;
|
|
2077
2067
|
const A = this.getSortedPatches(o);
|
|
2078
2068
|
for (const h of A) {
|
|
2079
2069
|
const w = J(_, h.changes);
|
|
2080
|
-
w !== _ && (
|
|
2070
|
+
w !== _ && (c = !0, this.viewsDirty = !0), _ = w, h.baseVersion = o.baselineVersion;
|
|
2081
2071
|
}
|
|
2082
|
-
o.composite !== _ && (o.composite = _,
|
|
2072
|
+
o.composite !== _ && (o.composite = _, c = !0, this.viewsDirty = !0), l && _ ? X(l, _, this.changedNodeIds) : _ && b(_, this.changedNodeIds), o.version = s.version;
|
|
2083
2073
|
}
|
|
2084
|
-
for (const [
|
|
2085
|
-
this.payloads.get(
|
|
2086
|
-
return
|
|
2074
|
+
for (const [I, E] of r)
|
|
2075
|
+
this.payloads.get(I) !== E && (this.payloads.set(I, E), c = !0, this.payloadsDirty = !0);
|
|
2076
|
+
return c ? (this.commitSnapshot(), this.notify(), !0) : (o.version = s.version, !1);
|
|
2087
2077
|
}
|
|
2088
2078
|
replaceFromWire(e) {
|
|
2089
2079
|
const s = {
|
|
@@ -2101,7 +2091,7 @@ class ei {
|
|
|
2101
2091
|
if (s !== void 0 && this.snapshot.version !== s)
|
|
2102
2092
|
return !1;
|
|
2103
2093
|
let r = !1, n = null, i = null, o = null;
|
|
2104
|
-
const a = () => (n || (n = new Map(this.snapshot.views)), n),
|
|
2094
|
+
const a = () => (n || (n = new Map(this.snapshot.views)), n), c = () => (i || (i = new Map(this.snapshot.payloads)), i), l = () => (o || (o = new Map(this.snapshot.optimisticPatches)), o);
|
|
2105
2095
|
if (e.deleteViews && e.deleteViews.length > 0)
|
|
2106
2096
|
for (const _ of e.deleteViews)
|
|
2107
2097
|
a().delete(_) && (r = !0, this.structureChanged = !0);
|
|
@@ -2112,10 +2102,10 @@ class ei {
|
|
|
2112
2102
|
}
|
|
2113
2103
|
if (e.deletePayloads && e.deletePayloads.length > 0)
|
|
2114
2104
|
for (const _ of e.deletePayloads)
|
|
2115
|
-
|
|
2105
|
+
c().delete(_) && (r = !0);
|
|
2116
2106
|
if (e.upsertPayloads && e.upsertPayloads.length > 0)
|
|
2117
2107
|
for (const [_, A] of e.upsertPayloads) {
|
|
2118
|
-
const h =
|
|
2108
|
+
const h = c();
|
|
2119
2109
|
h.get(_) !== A && (h.set(_, A), r = !0);
|
|
2120
2110
|
}
|
|
2121
2111
|
if (e.deleteOptimisticPatchesForViews && e.deleteOptimisticPatchesForViews.length > 0)
|
|
@@ -2126,15 +2116,15 @@ class ei {
|
|
|
2126
2116
|
const h = l(), w = h.get(_);
|
|
2127
2117
|
ii(w, A) || (h.set(_, A), r = !0);
|
|
2128
2118
|
}
|
|
2129
|
-
const
|
|
2130
|
-
|
|
2119
|
+
const I = e.rootViewId ?? this.snapshot.rootViewId;
|
|
2120
|
+
I !== this.snapshot.rootViewId && (r = !0, this.structureChanged = !0);
|
|
2131
2121
|
const E = e.nextVersion;
|
|
2132
2122
|
if (E !== this.snapshot.version && (r = !0), !r)
|
|
2133
2123
|
return this.snapshot = { ...this.snapshot, version: E }, !1;
|
|
2134
2124
|
for (const _ of this.changedNodeIds)
|
|
2135
2125
|
this.nodeVersions.set(_, (this.nodeVersions.get(_) ?? 0) + 1);
|
|
2136
2126
|
return this.snapshot = {
|
|
2137
|
-
rootViewId:
|
|
2127
|
+
rootViewId: I,
|
|
2138
2128
|
views: n ?? new Map(this.snapshot.views),
|
|
2139
2129
|
payloads: i ?? new Map(this.snapshot.payloads),
|
|
2140
2130
|
optimisticPatches: o ?? new Map(this.snapshot.optimisticPatches),
|
|
@@ -2180,7 +2170,7 @@ class ei {
|
|
|
2180
2170
|
if (s)
|
|
2181
2171
|
return s;
|
|
2182
2172
|
for (const r of this.snapshot.views.values()) {
|
|
2183
|
-
const n =
|
|
2173
|
+
const n = zt(r, e);
|
|
2184
2174
|
if (n)
|
|
2185
2175
|
return n;
|
|
2186
2176
|
}
|
|
@@ -2214,10 +2204,10 @@ class ei {
|
|
|
2214
2204
|
const i = /* @__PURE__ */ new Map();
|
|
2215
2205
|
for (const [o, a] of this.views)
|
|
2216
2206
|
if (a.patches.size > 0) {
|
|
2217
|
-
const
|
|
2207
|
+
const c = this.getSortedPatches(a);
|
|
2218
2208
|
i.set(
|
|
2219
2209
|
o,
|
|
2220
|
-
|
|
2210
|
+
c.map((l) => ({
|
|
2221
2211
|
id: l.id,
|
|
2222
2212
|
actionId: l.actionId,
|
|
2223
2213
|
ordinal: l.ordinal,
|
|
@@ -2328,9 +2318,9 @@ function J(t, e, s) {
|
|
|
2328
2318
|
const r = /* @__PURE__ */ new Map();
|
|
2329
2319
|
for (const n of e)
|
|
2330
2320
|
r.set(n.nodeId, n);
|
|
2331
|
-
return
|
|
2321
|
+
return jt(t, r);
|
|
2332
2322
|
}
|
|
2333
|
-
function
|
|
2323
|
+
function jt(t, e, s) {
|
|
2334
2324
|
const r = e.get(t.id);
|
|
2335
2325
|
let n = t, i = !1;
|
|
2336
2326
|
if (r?.textUpdates && r.textUpdates.length > 0) {
|
|
@@ -2349,10 +2339,10 @@ function $t(t, e, s) {
|
|
|
2349
2339
|
} else
|
|
2350
2340
|
v(d, u) || (o || (a = k(a), o = !0), a[f] = d);
|
|
2351
2341
|
}
|
|
2352
|
-
let
|
|
2353
|
-
r?.styleIds !== void 0 && (
|
|
2354
|
-
const
|
|
2355
|
-
let E =
|
|
2342
|
+
let c = !1, l = n.styleIds;
|
|
2343
|
+
r?.styleIds !== void 0 && (Wt(n.styleIds, r.styleIds) || (l = r.styleIds, c = !0));
|
|
2344
|
+
const I = n.children ?? [];
|
|
2345
|
+
let E = I, _ = !1;
|
|
2356
2346
|
if (r?.removals && r.removals.length > 0 || r?.moves && r.moves.length > 0 || r?.inserts && r.inserts.length > 0) {
|
|
2357
2347
|
const f = E.slice();
|
|
2358
2348
|
if (r?.removals && r.removals.length > 0) {
|
|
@@ -2388,15 +2378,15 @@ function $t(t, e, s) {
|
|
|
2388
2378
|
}
|
|
2389
2379
|
let h;
|
|
2390
2380
|
for (let f = 0; f < E.length; f++) {
|
|
2391
|
-
const d = E[f], u =
|
|
2381
|
+
const d = E[f], u = jt(d, e);
|
|
2392
2382
|
u !== d && (h || (h = E.slice()), h[f] = u);
|
|
2393
2383
|
}
|
|
2394
|
-
return h && (E = h, _ = !0), i || o ||
|
|
2384
|
+
return h && (E = h, _ = !0), i || o || c || _ ? !o && !_ && !c ? n : {
|
|
2395
2385
|
id: t.id,
|
|
2396
2386
|
type: t.type,
|
|
2397
2387
|
props: o ? a : n.props,
|
|
2398
|
-
children: _ ? E :
|
|
2399
|
-
styleIds:
|
|
2388
|
+
children: _ ? E : I,
|
|
2389
|
+
styleIds: c ? l : n.styleIds
|
|
2400
2390
|
} : t;
|
|
2401
2391
|
}
|
|
2402
2392
|
function b(t, e) {
|
|
@@ -2411,38 +2401,39 @@ function ri(t) {
|
|
|
2411
2401
|
return j[t].clear(), j[t];
|
|
2412
2402
|
}
|
|
2413
2403
|
function X(t, e, s) {
|
|
2414
|
-
|
|
2404
|
+
Xt(t, e, s, 0);
|
|
2415
2405
|
}
|
|
2416
|
-
function
|
|
2406
|
+
function Xt(t, e, s, r) {
|
|
2417
2407
|
if (t === e)
|
|
2418
2408
|
return;
|
|
2419
|
-
(t.type !== e.type || !ni(t.props, e.props) || !
|
|
2409
|
+
(t.type !== e.type || !ni(t.props, e.props) || !Wt(t.styleIds, e.styleIds)) && s.add(e.id);
|
|
2420
2410
|
const i = t.children ?? [], o = e.children ?? [];
|
|
2421
2411
|
if (i !== o) {
|
|
2422
2412
|
const a = ri(r);
|
|
2423
|
-
for (const
|
|
2424
|
-
a.set(
|
|
2425
|
-
|
|
2426
|
-
|
|
2427
|
-
|
|
2413
|
+
for (const l of i)
|
|
2414
|
+
a.set(l.id, l);
|
|
2415
|
+
let c = !1;
|
|
2416
|
+
for (const l of o) {
|
|
2417
|
+
const I = a.get(l.id);
|
|
2418
|
+
I ? Xt(I, l, s, r + 1) : (b(l, s), c = !0);
|
|
2428
2419
|
}
|
|
2429
|
-
i.length !== o.length && s.add(e.id);
|
|
2420
|
+
(i.length !== o.length || c) && s.add(e.id);
|
|
2430
2421
|
}
|
|
2431
2422
|
}
|
|
2432
2423
|
function ni(t, e) {
|
|
2433
2424
|
return v(t, e);
|
|
2434
2425
|
}
|
|
2435
|
-
function
|
|
2426
|
+
function zt(t, e) {
|
|
2436
2427
|
if (t.id === e)
|
|
2437
2428
|
return t;
|
|
2438
2429
|
if (t.children)
|
|
2439
2430
|
for (const s of t.children) {
|
|
2440
|
-
const r =
|
|
2431
|
+
const r = zt(s, e);
|
|
2441
2432
|
if (r)
|
|
2442
2433
|
return r;
|
|
2443
2434
|
}
|
|
2444
2435
|
}
|
|
2445
|
-
function
|
|
2436
|
+
function Wt(t, e) {
|
|
2446
2437
|
return v(t, e);
|
|
2447
2438
|
}
|
|
2448
2439
|
function ii(t, e) {
|
|
@@ -2463,12 +2454,12 @@ function oi(t, e) {
|
|
|
2463
2454
|
for (const i of s) {
|
|
2464
2455
|
const o = lt(i.start + n, 0, r.length);
|
|
2465
2456
|
if (i.end == null) {
|
|
2466
|
-
const
|
|
2467
|
-
r = r.slice(0, o) + i.insertedText +
|
|
2457
|
+
const I = r.slice(o), E = li(I, i.insertedText);
|
|
2458
|
+
r = r.slice(0, o) + i.insertedText + I.slice(E), n += i.insertedText.length - E;
|
|
2468
2459
|
continue;
|
|
2469
2460
|
}
|
|
2470
|
-
const a = i.end + n,
|
|
2471
|
-
r = r.slice(0, o) + i.insertedText + r.slice(
|
|
2461
|
+
const a = i.end + n, c = lt(a, o, r.length), l = c - o;
|
|
2462
|
+
r = r.slice(0, o) + i.insertedText + r.slice(c), n += i.insertedText.length - l;
|
|
2472
2463
|
}
|
|
2473
2464
|
return r;
|
|
2474
2465
|
}
|
|
@@ -2480,39 +2471,39 @@ function ai(t, e, s) {
|
|
|
2480
2471
|
const i = r.get(n.nodeId);
|
|
2481
2472
|
i ? i.push(n) : r.set(n.nodeId, [n]);
|
|
2482
2473
|
}
|
|
2483
|
-
return
|
|
2474
|
+
return Jt(t, r);
|
|
2484
2475
|
}
|
|
2485
|
-
function
|
|
2476
|
+
function Jt(t, e, s) {
|
|
2486
2477
|
const r = e.get(t.id) ?? [];
|
|
2487
2478
|
let n = !1, i = t.props;
|
|
2488
2479
|
if (r.length > 0) {
|
|
2489
2480
|
const l = /* @__PURE__ */ new Map();
|
|
2490
|
-
for (const
|
|
2491
|
-
const E = l.get(
|
|
2492
|
-
E ? E.push(
|
|
2481
|
+
for (const I of r) {
|
|
2482
|
+
const E = l.get(I.propertyName);
|
|
2483
|
+
E ? E.push(I) : l.set(I.propertyName, [I]);
|
|
2493
2484
|
}
|
|
2494
|
-
for (const [
|
|
2495
|
-
const _ = i[
|
|
2496
|
-
n || (i = k(i), n = !0), i[
|
|
2485
|
+
for (const [I, E] of l.entries()) {
|
|
2486
|
+
const _ = i[I], h = oi(typeof _ == "string" ? _ : "", E);
|
|
2487
|
+
n || (i = k(i), n = !0), i[I] = h;
|
|
2497
2488
|
}
|
|
2498
2489
|
}
|
|
2499
2490
|
let o = !1;
|
|
2500
2491
|
const a = t.children ?? [];
|
|
2501
|
-
let
|
|
2492
|
+
let c = a;
|
|
2502
2493
|
if (a.length > 0) {
|
|
2503
2494
|
let l;
|
|
2504
|
-
for (let
|
|
2505
|
-
const E = a[
|
|
2506
|
-
_.changed && (l || (l = [...a]), l[
|
|
2495
|
+
for (let I = 0; I < a.length; I++) {
|
|
2496
|
+
const E = a[I], _ = Jt(E, e);
|
|
2497
|
+
_.changed && (l || (l = [...a]), l[I] = _.node);
|
|
2507
2498
|
}
|
|
2508
|
-
l && (
|
|
2499
|
+
l && (c = l, o = !0);
|
|
2509
2500
|
}
|
|
2510
2501
|
return !n && !o ? { node: t, changed: !1 } : {
|
|
2511
2502
|
node: {
|
|
2512
2503
|
id: t.id,
|
|
2513
2504
|
type: t.type,
|
|
2514
2505
|
props: n ? i : t.props,
|
|
2515
|
-
children: o ?
|
|
2506
|
+
children: o ? c : a,
|
|
2516
2507
|
styleIds: t.styleIds
|
|
2517
2508
|
},
|
|
2518
2509
|
changed: !0
|
|
@@ -2562,7 +2553,7 @@ function v(t, e) {
|
|
|
2562
2553
|
return !1;
|
|
2563
2554
|
}
|
|
2564
2555
|
const Ii = 16, ci = 50, O = new si(), H = /* @__PURE__ */ new Map(), Y = /* @__PURE__ */ new Map();
|
|
2565
|
-
let
|
|
2556
|
+
let qt = Ii, Qt = ci, V = [], G = null, B = null, R = 0, z = 0;
|
|
2566
2557
|
const x = /* @__PURE__ */ new Map();
|
|
2567
2558
|
function Ei() {
|
|
2568
2559
|
return typeof performance < "u" ? performance.now() : Date.now();
|
|
@@ -2608,22 +2599,22 @@ function ui(t, e, s) {
|
|
|
2608
2599
|
if (!s || s.version === -1)
|
|
2609
2600
|
return { type: "ReplaceStreamSnapshot", snapshot: fi(e) };
|
|
2610
2601
|
let r, n;
|
|
2611
|
-
for (const [l,
|
|
2612
|
-
s.views.get(l) !==
|
|
2602
|
+
for (const [l, I] of e.views)
|
|
2603
|
+
s.views.get(l) !== I && (r ??= []).push([l, I]);
|
|
2613
2604
|
for (const l of s.views.keys())
|
|
2614
2605
|
e.views.has(l) || (n ??= []).push(l);
|
|
2615
2606
|
let i, o;
|
|
2616
|
-
for (const [l,
|
|
2617
|
-
s.payloads.get(l) !==
|
|
2607
|
+
for (const [l, I] of e.payloads)
|
|
2608
|
+
s.payloads.get(l) !== I && (i ??= []).push([l, I]);
|
|
2618
2609
|
for (const l of s.payloads.keys())
|
|
2619
2610
|
e.payloads.has(l) || (o ??= []).push(l);
|
|
2620
|
-
let a,
|
|
2621
|
-
for (const [l,
|
|
2611
|
+
let a, c;
|
|
2612
|
+
for (const [l, I] of e.optimisticPatches) {
|
|
2622
2613
|
const E = s.optimisticPatches.get(l);
|
|
2623
|
-
hi(E,
|
|
2614
|
+
hi(E, I) || (a ??= []).push([l, I.slice()]);
|
|
2624
2615
|
}
|
|
2625
2616
|
for (const l of s.optimisticPatches.keys())
|
|
2626
|
-
e.optimisticPatches.has(l) || (
|
|
2617
|
+
e.optimisticPatches.has(l) || (c ??= []).push(l);
|
|
2627
2618
|
return {
|
|
2628
2619
|
type: "PatchStreamSnapshot",
|
|
2629
2620
|
streamId: t,
|
|
@@ -2636,14 +2627,14 @@ function ui(t, e, s) {
|
|
|
2636
2627
|
upsertPayloads: i,
|
|
2637
2628
|
deletePayloads: o,
|
|
2638
2629
|
upsertOptimisticPatches: a,
|
|
2639
|
-
deleteOptimisticPatchesForViews:
|
|
2630
|
+
deleteOptimisticPatchesForViews: c
|
|
2640
2631
|
};
|
|
2641
2632
|
}
|
|
2642
|
-
function
|
|
2643
|
-
G || (G = setTimeout(It,
|
|
2633
|
+
function Zt() {
|
|
2634
|
+
G || (G = setTimeout(It, qt)), B || (B = setTimeout(It, Qt));
|
|
2644
2635
|
}
|
|
2645
2636
|
function P(t) {
|
|
2646
|
-
V.push(t),
|
|
2637
|
+
V.push(t), Zt();
|
|
2647
2638
|
}
|
|
2648
2639
|
function It() {
|
|
2649
2640
|
if (G && (clearTimeout(G), G = null), B && (clearTimeout(B), B = null), V.length === 0 && x.size === 0) {
|
|
@@ -2662,7 +2653,7 @@ function It() {
|
|
|
2662
2653
|
};
|
|
2663
2654
|
V = [], R = 0, z = 0, x.clear(), self.postMessage(e);
|
|
2664
2655
|
}
|
|
2665
|
-
function
|
|
2656
|
+
function te(t) {
|
|
2666
2657
|
return `${t.senderId}_${t.trackId}`;
|
|
2667
2658
|
}
|
|
2668
2659
|
async function Ti(t) {
|
|
@@ -2677,14 +2668,14 @@ async function Ti(t) {
|
|
|
2677
2668
|
s.has(r.streamId) || (O.remove(r.streamId), Y.delete(r.streamId), P({ type: "RemoveStream", streamId: r.streamId }));
|
|
2678
2669
|
}
|
|
2679
2670
|
async function Ai(t) {
|
|
2680
|
-
const e = et(t), s =
|
|
2681
|
-
if ((i === void 0 || n.snapshot.version > i) && (x.set(e.trackId, n.snapshot.version),
|
|
2671
|
+
const e = et(t), s = te(e), r = await Hn(t), n = Zn(r), i = x.get(e.trackId);
|
|
2672
|
+
if ((i === void 0 || n.snapshot.version > i) && (x.set(e.trackId, n.snapshot.version), Zt()), !O.apply(s, n))
|
|
2682
2673
|
return;
|
|
2683
2674
|
const a = O.getSnapshot(s);
|
|
2684
2675
|
if (!a)
|
|
2685
2676
|
return;
|
|
2686
|
-
const
|
|
2687
|
-
Y.set(s, a), P(ui(s, a,
|
|
2677
|
+
const c = Y.get(s);
|
|
2678
|
+
Y.set(s, a), P(ui(s, a, c));
|
|
2688
2679
|
}
|
|
2689
2680
|
async function Ni(t) {
|
|
2690
2681
|
const e = await En(t);
|
|
@@ -2712,11 +2703,11 @@ async function di(t) {
|
|
|
2712
2703
|
}
|
|
2713
2704
|
}
|
|
2714
2705
|
function Si(t) {
|
|
2715
|
-
const e = et(t), s =
|
|
2706
|
+
const e = et(t), s = te(e);
|
|
2716
2707
|
O.clear(s), Y.delete(s), P({ type: "ClearStream", streamId: s });
|
|
2717
2708
|
}
|
|
2718
2709
|
async function yi(t) {
|
|
2719
|
-
const e = await
|
|
2710
|
+
const e = await Fn(t);
|
|
2720
2711
|
if (!(!e.StyleIds || e.StyleIds.length === 0))
|
|
2721
2712
|
for (const s of e.StyleIds)
|
|
2722
2713
|
H.delete(s) && P({ type: "RemoveUiStyle", styleId: s });
|
|
@@ -2725,7 +2716,7 @@ async function wi(t) {
|
|
|
2725
2716
|
const e = new Uint8Array(t);
|
|
2726
2717
|
z += e.byteLength;
|
|
2727
2718
|
const s = e;
|
|
2728
|
-
switch (
|
|
2719
|
+
switch (se(s)) {
|
|
2729
2720
|
case g.CORE_GLOBAL_STATE:
|
|
2730
2721
|
await Ti(s), R++;
|
|
2731
2722
|
return;
|
|
@@ -2757,7 +2748,7 @@ async function wi(t) {
|
|
|
2757
2748
|
self.addEventListener("message", (t) => {
|
|
2758
2749
|
const e = t.data;
|
|
2759
2750
|
if (e.type === "configure") {
|
|
2760
|
-
typeof e.flushIntervalMs == "number" && Number.isFinite(e.flushIntervalMs) && e.flushIntervalMs >= 0 && (
|
|
2751
|
+
typeof e.flushIntervalMs == "number" && Number.isFinite(e.flushIntervalMs) && e.flushIntervalMs >= 0 && (qt = e.flushIntervalMs), typeof e.maxLatencyMs == "number" && Number.isFinite(e.maxLatencyMs) && e.maxLatencyMs >= 0 && (Qt = e.maxLatencyMs);
|
|
2761
2752
|
return;
|
|
2762
2753
|
}
|
|
2763
2754
|
if (e.type === "clear") {
|