@ikonai/sdk-ui 1.0.66 → 1.0.68
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-BjXx6Rl0.js → ui-worker-BemkVCay.js} +666 -636
- package/ikon-ui-core.d.ts +26 -0
- package/index.d.ts +2 -1
- package/index.js +1606 -1379
- package/live-snapshot.d.ts +71 -0
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
const
|
|
1
|
+
const re = {
|
|
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,13 +10,13 @@ function Z(t) {
|
|
|
10
10
|
const r = K(t), e = new DataView(r.buffer, r.byteOffset, r.byteLength);
|
|
11
11
|
if (r.length < 27)
|
|
12
12
|
throw new Error("Protocol payload too short");
|
|
13
|
-
const s = e.getUint32(0, !0), n = e.getUint32(4, !0), i = e.getUint32(8, !0), o = e.getUint32(12, !0), a = e.getUint32(16, !0),
|
|
14
|
-
if (27 +
|
|
13
|
+
const s = e.getUint32(0, !0), n = e.getUint32(4, !0), i = e.getUint32(8, !0), o = e.getUint32(12, !0), a = e.getUint32(16, !0), I = e.getUint32(20, !0), _ = e.getUint8(24), E = e.getUint8(25), l = e.getUint8(26);
|
|
14
|
+
if (27 + I * 4 > r.length)
|
|
15
15
|
throw new Error("Protocol header exceeds payload length");
|
|
16
16
|
const L = [];
|
|
17
|
-
let
|
|
18
|
-
for (let W = 0; W <
|
|
19
|
-
L.push(e.getUint32(
|
|
17
|
+
let w = 27;
|
|
18
|
+
for (let W = 0; W < I; W++)
|
|
19
|
+
L.push(e.getUint32(w, !0)), w += 4;
|
|
20
20
|
return {
|
|
21
21
|
length: s,
|
|
22
22
|
opcode: n,
|
|
@@ -24,12 +24,12 @@ function Z(t) {
|
|
|
24
24
|
trackId: o,
|
|
25
25
|
sequenceId: a,
|
|
26
26
|
targetIds: L,
|
|
27
|
-
payloadVersion:
|
|
27
|
+
payloadVersion: _,
|
|
28
28
|
payloadType: E,
|
|
29
29
|
flags: l
|
|
30
30
|
};
|
|
31
31
|
}
|
|
32
|
-
async function
|
|
32
|
+
async function Y(t, r, e) {
|
|
33
33
|
const s = K(t), n = Z(s);
|
|
34
34
|
if (r !== void 0 && n.opcode !== r)
|
|
35
35
|
throw new Error(`Unexpected opcode ${n.opcode}`);
|
|
@@ -37,9 +37,9 @@ async function p(t, r, e) {
|
|
|
37
37
|
throw new Error(`Unexpected payload type ${n.payloadType}`);
|
|
38
38
|
const i = 27 + n.targetIds.length * 4;
|
|
39
39
|
let o = s.subarray(i, n.length);
|
|
40
|
-
return (n.flags &
|
|
40
|
+
return (n.flags & re.Compressed) !== 0 && (o = await ne(o)), o;
|
|
41
41
|
}
|
|
42
|
-
async function
|
|
42
|
+
async function ne(t) {
|
|
43
43
|
if (typeof DecompressionStream > "u")
|
|
44
44
|
throw new Error("DecompressionStream not supported");
|
|
45
45
|
const r = new DecompressionStream("gzip"), e = r.writable.getWriter(), s = new Uint8Array(t);
|
|
@@ -47,21 +47,21 @@ async function re(t) {
|
|
|
47
47
|
const n = r.readable.getReader(), i = [];
|
|
48
48
|
let o = 0;
|
|
49
49
|
for (; ; ) {
|
|
50
|
-
const { done:
|
|
51
|
-
if (
|
|
50
|
+
const { done: _, value: E } = await n.read();
|
|
51
|
+
if (_) break;
|
|
52
52
|
i.push(E), o += E.length;
|
|
53
53
|
}
|
|
54
54
|
const a = new Uint8Array(o);
|
|
55
|
-
let
|
|
56
|
-
for (let
|
|
57
|
-
a.set(i[
|
|
55
|
+
let I = 0;
|
|
56
|
+
for (let _ = 0; _ < i.length; _++)
|
|
57
|
+
a.set(i[_], I), I += i[_].length;
|
|
58
58
|
return a;
|
|
59
59
|
}
|
|
60
|
-
var
|
|
61
|
-
const
|
|
60
|
+
var M = /* @__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))(M || {});
|
|
61
|
+
const ie = 161, oe = 162;
|
|
62
62
|
new TextEncoder();
|
|
63
|
-
const
|
|
64
|
-
class
|
|
63
|
+
const ae = new TextDecoder("utf-8", { fatal: !0 });
|
|
64
|
+
class P {
|
|
65
65
|
constructor(r, e, s) {
|
|
66
66
|
this.buffer = r, this.version = e, this.offset = s, this.end = r.length - 1;
|
|
67
67
|
}
|
|
@@ -71,33 +71,33 @@ class O {
|
|
|
71
71
|
const e = K(r);
|
|
72
72
|
if (e.length < 2)
|
|
73
73
|
throw new Error("Teleport payload too short");
|
|
74
|
-
if (e[0] !==
|
|
74
|
+
if (e[0] !== ie || e[e.length - 1] !== oe)
|
|
75
75
|
throw new Error("Teleport object missing markers");
|
|
76
|
-
const s = { offset: 1 }, n =
|
|
77
|
-
return new
|
|
76
|
+
const s = { offset: 1 }, n = C(e, s, "InvalidLength");
|
|
77
|
+
return new P(e, n, s.offset);
|
|
78
78
|
}
|
|
79
79
|
next() {
|
|
80
80
|
if (this.offset >= this.end)
|
|
81
81
|
return null;
|
|
82
82
|
if (this.offset + 5 > this.buffer.length)
|
|
83
83
|
throw new Error("Teleport object truncated");
|
|
84
|
-
const r =
|
|
84
|
+
const r = le(this.buffer, this.offset);
|
|
85
85
|
this.offset += 4;
|
|
86
86
|
const e = this.buffer[this.offset++], s = e >> 4 & 15;
|
|
87
87
|
if ((e & 15) !== 0)
|
|
88
88
|
throw new Error("Teleport field flags must be zero");
|
|
89
|
-
const n =
|
|
89
|
+
const n = v(s);
|
|
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;
|
|
93
93
|
else {
|
|
94
|
-
const o = { offset: this.offset }, a =
|
|
95
|
-
|
|
94
|
+
const o = { offset: this.offset }, a = C(this.buffer, o, "InvalidLength");
|
|
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 Ee(r, s, i);
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
|
-
class
|
|
100
|
+
class U {
|
|
101
101
|
constructor(r, e) {
|
|
102
102
|
this.type = r, this.payload = e;
|
|
103
103
|
}
|
|
@@ -159,7 +159,7 @@ class y {
|
|
|
159
159
|
return this.ensureType(
|
|
160
160
|
12
|
|
161
161
|
/* String */
|
|
162
|
-
),
|
|
162
|
+
), ae.decode(this.payload);
|
|
163
163
|
}
|
|
164
164
|
asGuid() {
|
|
165
165
|
return this.ensureType(
|
|
@@ -171,7 +171,7 @@ class y {
|
|
|
171
171
|
return this.ensureType(
|
|
172
172
|
11
|
|
173
173
|
/* Object */
|
|
174
|
-
),
|
|
174
|
+
), P.create(this.payload);
|
|
175
175
|
}
|
|
176
176
|
asArray() {
|
|
177
177
|
return this.ensureType(
|
|
@@ -187,10 +187,10 @@ class y {
|
|
|
187
187
|
}
|
|
188
188
|
ensureType(r) {
|
|
189
189
|
if (this.type !== r)
|
|
190
|
-
throw new Error(`Teleport value has type ${
|
|
190
|
+
throw new Error(`Teleport value has type ${M[this.type]}, expected ${M[r]}`);
|
|
191
191
|
}
|
|
192
192
|
}
|
|
193
|
-
class
|
|
193
|
+
class Ee extends U {
|
|
194
194
|
constructor(r, e, s) {
|
|
195
195
|
super(e, s), this.fieldId = r;
|
|
196
196
|
}
|
|
@@ -211,7 +211,7 @@ class tt {
|
|
|
211
211
|
if (this.elementType = e >> 4 & 15, (e & 15) !== 0)
|
|
212
212
|
throw new Error("Array flags must be zero");
|
|
213
213
|
const s = { offset: 1 };
|
|
214
|
-
this.count =
|
|
214
|
+
this.count = C(r, s, "ArrayMalformed"), this.offset = s.offset;
|
|
215
215
|
}
|
|
216
216
|
static create(r) {
|
|
217
217
|
return new tt(K(r));
|
|
@@ -235,38 +235,38 @@ class tt {
|
|
|
235
235
|
case 4:
|
|
236
236
|
case 6:
|
|
237
237
|
case 14: {
|
|
238
|
-
const r =
|
|
239
|
-
|
|
238
|
+
const r = v(this.elementType);
|
|
239
|
+
S(this.payload, this.offset, r);
|
|
240
240
|
const e = this.payload.subarray(this.offset, this.offset + r);
|
|
241
|
-
return this.offset += r, new
|
|
241
|
+
return this.offset += r, new G(this.elementType, e);
|
|
242
242
|
}
|
|
243
243
|
case 12:
|
|
244
244
|
case 13: {
|
|
245
|
-
const r = { offset: this.offset }, e =
|
|
246
|
-
|
|
245
|
+
const r = { offset: this.offset }, e = C(this.payload, r, "ArrayMalformed");
|
|
246
|
+
S(this.payload, r.offset, e);
|
|
247
247
|
const s = this.payload.subarray(r.offset, r.offset + e);
|
|
248
|
-
return this.offset = r.offset + e, new
|
|
248
|
+
return this.offset = r.offset + e, new G(this.elementType, s);
|
|
249
249
|
}
|
|
250
250
|
case 11: {
|
|
251
|
-
const r = { offset: this.offset }, e =
|
|
252
|
-
|
|
251
|
+
const r = { offset: this.offset }, e = C(this.payload, r, "ArrayMalformed");
|
|
252
|
+
S(this.payload, r.offset, e);
|
|
253
253
|
const s = this.payload.subarray(r.offset, r.offset + e);
|
|
254
|
-
return this.offset = r.offset + e, new
|
|
254
|
+
return this.offset = r.offset + e, new G(11, s);
|
|
255
255
|
}
|
|
256
256
|
case 9: {
|
|
257
257
|
const r = rt(this.payload, this.offset), e = this.payload.subarray(this.offset, this.offset + r);
|
|
258
|
-
return this.offset += r, new
|
|
258
|
+
return this.offset += r, new G(9, e);
|
|
259
259
|
}
|
|
260
260
|
case 10: {
|
|
261
261
|
const r = st(this.payload, this.offset), e = this.payload.subarray(this.offset, this.offset + r);
|
|
262
|
-
return this.offset += r, new
|
|
262
|
+
return this.offset += r, new G(10, e);
|
|
263
263
|
}
|
|
264
264
|
default:
|
|
265
|
-
throw new Error(`Unsupported array element type ${
|
|
265
|
+
throw new Error(`Unsupported array element type ${M[this.elementType]}`);
|
|
266
266
|
}
|
|
267
267
|
}
|
|
268
268
|
}
|
|
269
|
-
class
|
|
269
|
+
class G extends U {
|
|
270
270
|
constructor(r, e) {
|
|
271
271
|
super(r, e);
|
|
272
272
|
}
|
|
@@ -285,7 +285,7 @@ class et {
|
|
|
285
285
|
throw new Error("Dictionary key/value flags must be zero");
|
|
286
286
|
Et(this.keyType);
|
|
287
287
|
const e = { offset: 2 };
|
|
288
|
-
this.count =
|
|
288
|
+
this.count = C(r, e, "DictMalformed"), this.offset = e.offset;
|
|
289
289
|
}
|
|
290
290
|
static create(r) {
|
|
291
291
|
return new et(K(r));
|
|
@@ -297,20 +297,20 @@ class et {
|
|
|
297
297
|
return null;
|
|
298
298
|
}
|
|
299
299
|
const r = this.readKey(), e = this.readValue();
|
|
300
|
-
return this.index++, new
|
|
300
|
+
return this.index++, new Ie(r, e);
|
|
301
301
|
}
|
|
302
302
|
readKey() {
|
|
303
|
-
const r =
|
|
303
|
+
const r = v(this.keyType);
|
|
304
304
|
if (r >= 0) {
|
|
305
|
-
|
|
305
|
+
S(this.payload, this.offset, r);
|
|
306
306
|
const e = this.payload.subarray(this.offset, this.offset + r);
|
|
307
|
-
return this.offset += r, new
|
|
307
|
+
return this.offset += r, new U(this.keyType, e);
|
|
308
308
|
}
|
|
309
309
|
if (this.keyType === 12 || this.keyType === 13) {
|
|
310
|
-
const e = { offset: this.offset }, s =
|
|
311
|
-
|
|
310
|
+
const e = { offset: this.offset }, s = C(this.payload, e, "DictMalformed");
|
|
311
|
+
S(this.payload, e.offset, s);
|
|
312
312
|
const n = this.payload.subarray(e.offset, e.offset + s);
|
|
313
|
-
return this.offset = e.offset + s, new
|
|
313
|
+
return this.offset = e.offset + s, new U(this.keyType, n);
|
|
314
314
|
}
|
|
315
315
|
throw new Error("Unsupported dictionary key type");
|
|
316
316
|
}
|
|
@@ -318,24 +318,24 @@ class et {
|
|
|
318
318
|
switch (this.valueType) {
|
|
319
319
|
case 12:
|
|
320
320
|
case 13: {
|
|
321
|
-
const r = { offset: this.offset }, e =
|
|
322
|
-
|
|
321
|
+
const r = { offset: this.offset }, e = C(this.payload, r, "DictMalformed");
|
|
322
|
+
S(this.payload, r.offset, e);
|
|
323
323
|
const s = this.payload.subarray(r.offset, r.offset + e);
|
|
324
|
-
return this.offset = r.offset + e, new
|
|
324
|
+
return this.offset = r.offset + e, new U(this.valueType, s);
|
|
325
325
|
}
|
|
326
326
|
case 11: {
|
|
327
|
-
const r = { offset: this.offset }, e =
|
|
328
|
-
|
|
327
|
+
const r = { offset: this.offset }, e = C(this.payload, r, "DictMalformed");
|
|
328
|
+
S(this.payload, r.offset, e);
|
|
329
329
|
const s = this.payload.subarray(r.offset, r.offset + e);
|
|
330
|
-
return this.offset = r.offset + e, new
|
|
330
|
+
return this.offset = r.offset + e, new U(11, s);
|
|
331
331
|
}
|
|
332
332
|
case 9: {
|
|
333
333
|
const r = rt(this.payload, this.offset), e = this.payload.subarray(this.offset, this.offset + r);
|
|
334
|
-
return this.offset += r, new
|
|
334
|
+
return this.offset += r, new U(9, e);
|
|
335
335
|
}
|
|
336
336
|
case 10: {
|
|
337
337
|
const r = st(this.payload, this.offset), e = this.payload.subarray(this.offset, this.offset + r);
|
|
338
|
-
return this.offset += r, new
|
|
338
|
+
return this.offset += r, new U(10, e);
|
|
339
339
|
}
|
|
340
340
|
case 3:
|
|
341
341
|
case 5:
|
|
@@ -346,17 +346,17 @@ class et {
|
|
|
346
346
|
case 6:
|
|
347
347
|
case 14:
|
|
348
348
|
case 1: {
|
|
349
|
-
const r =
|
|
350
|
-
|
|
349
|
+
const r = v(this.valueType);
|
|
350
|
+
S(this.payload, this.offset, r);
|
|
351
351
|
const e = this.payload.subarray(this.offset, this.offset + r);
|
|
352
|
-
return this.offset += r, new
|
|
352
|
+
return this.offset += r, new U(this.valueType, e);
|
|
353
353
|
}
|
|
354
354
|
default:
|
|
355
|
-
throw new Error(`Unsupported dictionary value type ${
|
|
355
|
+
throw new Error(`Unsupported dictionary value type ${M[this.valueType]}`);
|
|
356
356
|
}
|
|
357
357
|
}
|
|
358
358
|
}
|
|
359
|
-
class
|
|
359
|
+
class Ie {
|
|
360
360
|
constructor(r, e) {
|
|
361
361
|
this.key = r, this.value = e;
|
|
362
362
|
}
|
|
@@ -431,14 +431,14 @@ class T {
|
|
|
431
431
|
return (r >>> 0).toString(16).padStart(e, "0");
|
|
432
432
|
}
|
|
433
433
|
}
|
|
434
|
-
function
|
|
434
|
+
function C(t, r, e) {
|
|
435
435
|
if (r.offset >= t.length)
|
|
436
436
|
throw new Error(e);
|
|
437
437
|
let s = 0, n = 0, i = 0;
|
|
438
438
|
for (; r.offset < t.length; ) {
|
|
439
439
|
const o = t[r.offset++];
|
|
440
440
|
if (i++, s |= (o & 127) << n, (o & 128) === 0) {
|
|
441
|
-
if (i !==
|
|
441
|
+
if (i !== _e(s))
|
|
442
442
|
throw new Error("Teleport VarUInt is not canonical");
|
|
443
443
|
return s >>> 0;
|
|
444
444
|
}
|
|
@@ -447,10 +447,10 @@ function S(t, r, e) {
|
|
|
447
447
|
}
|
|
448
448
|
throw new Error(e);
|
|
449
449
|
}
|
|
450
|
-
function
|
|
450
|
+
function _e(t) {
|
|
451
451
|
return t < 128 ? 1 : t < 16384 ? 2 : t < 2097152 ? 3 : t < 268435456 ? 4 : 5;
|
|
452
452
|
}
|
|
453
|
-
function
|
|
453
|
+
function v(t) {
|
|
454
454
|
switch (t) {
|
|
455
455
|
case 3:
|
|
456
456
|
case 5:
|
|
@@ -474,11 +474,11 @@ function Et(t) {
|
|
|
474
474
|
if (t === 9 || t === 11 || t === 10 || t === 1)
|
|
475
475
|
throw new Error("Dictionary keys must be primitive Teleport types");
|
|
476
476
|
}
|
|
477
|
-
function
|
|
477
|
+
function S(t, r, e) {
|
|
478
478
|
if (r < 0 || e < 0 || r + e > t.length)
|
|
479
479
|
throw new Error("Teleport payload exceeds bounds");
|
|
480
480
|
}
|
|
481
|
-
function
|
|
481
|
+
function le(t, r) {
|
|
482
482
|
return (t[r] | t[r + 1] << 8 | t[r + 2] << 16 | t[r + 3] << 24) >>> 0;
|
|
483
483
|
}
|
|
484
484
|
function rt(t, r) {
|
|
@@ -487,13 +487,13 @@ function rt(t, r) {
|
|
|
487
487
|
const e = t[r], s = e >> 4 & 15;
|
|
488
488
|
if ((e & 15) !== 0)
|
|
489
489
|
throw new Error("Array flags must be zero");
|
|
490
|
-
const n = { offset: r + 1 }, i =
|
|
490
|
+
const n = { offset: r + 1 }, i = C(t, n, "ArrayMalformed"), o = v(s);
|
|
491
491
|
if (o >= 0) {
|
|
492
|
-
const
|
|
493
|
-
return
|
|
492
|
+
const I = o * i;
|
|
493
|
+
return S(t, n.offset, I), n.offset + I - r;
|
|
494
494
|
}
|
|
495
495
|
let a = n.offset;
|
|
496
|
-
for (let
|
|
496
|
+
for (let I = 0; I < i; I++)
|
|
497
497
|
a = Q(s, t, a, "ArrayMalformed");
|
|
498
498
|
return a - r;
|
|
499
499
|
}
|
|
@@ -504,32 +504,32 @@ function st(t, r) {
|
|
|
504
504
|
if ((t[r] & 15) !== 0 || (t[r + 1] & 15) !== 0)
|
|
505
505
|
throw new Error("Dictionary key/value flags must be zero");
|
|
506
506
|
Et(e);
|
|
507
|
-
const n = { offset: r + 2 }, i =
|
|
507
|
+
const n = { offset: r + 2 }, i = C(t, n, "DictMalformed");
|
|
508
508
|
let o = n.offset;
|
|
509
509
|
for (let a = 0; a < i; a++)
|
|
510
510
|
o = Q(e, t, o, "DictMalformed"), o = Q(s, t, o, "DictMalformed");
|
|
511
511
|
return o - r;
|
|
512
512
|
}
|
|
513
513
|
function Q(t, r, e, s) {
|
|
514
|
-
const n =
|
|
514
|
+
const n = v(t);
|
|
515
515
|
if (n >= 0)
|
|
516
|
-
return
|
|
516
|
+
return S(r, e, n), e + n;
|
|
517
517
|
switch (t) {
|
|
518
518
|
case 12:
|
|
519
519
|
case 13: {
|
|
520
|
-
const i = { offset: e }, o =
|
|
521
|
-
return
|
|
520
|
+
const i = { offset: e }, o = C(r, i, s);
|
|
521
|
+
return S(r, i.offset, o), i.offset + o;
|
|
522
522
|
}
|
|
523
523
|
case 11: {
|
|
524
|
-
const i = { offset: e }, o =
|
|
525
|
-
return
|
|
524
|
+
const i = { offset: e }, o = C(r, i, s);
|
|
525
|
+
return S(r, i.offset, o), i.offset + o;
|
|
526
526
|
}
|
|
527
527
|
case 9:
|
|
528
528
|
return e + rt(r, e);
|
|
529
529
|
case 10:
|
|
530
530
|
return e + st(r, e);
|
|
531
531
|
default:
|
|
532
|
-
throw new Error(`Unsupported Teleport type ${
|
|
532
|
+
throw new Error(`Unsupported Teleport type ${M[t]}`);
|
|
533
533
|
}
|
|
534
534
|
}
|
|
535
535
|
function it(t) {
|
|
@@ -538,47 +538,47 @@ function it(t) {
|
|
|
538
538
|
function K(t) {
|
|
539
539
|
return t instanceof Uint8Array ? t : new Uint8Array(t);
|
|
540
540
|
}
|
|
541
|
-
var _t = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.Opus = 1] = "Opus", t[t.Mp3 = 2] = "Mp3", t[t.RawPcm16 = 3] = "RawPcm16", t))(_t || {}), It = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.MobileWeb = 1] = "MobileWeb", t[t.MobileApp = 2] = "MobileApp", t[t.DesktopWeb = 3] = "DesktopWeb", t[t.DesktopApp = 4] = "DesktopApp", t))(It || {}), lt = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.Backend = 2] = "Backend", t[t.Server = 4] = "Server", t[t.Plugin = 8] = "Plugin", t[t.Browser = 16] = "Browser", t[t.Native = 32] = "Native", t))(lt || {}), ct = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.MessagePack = 1] = "MessagePack", t[t.MemoryPack = 2] = "MemoryPack", t[t.Json = 4] = "Json", t[t.Teleport = 8] = "Teleport", t[t.All = 15] = "All", t))(ct || {}), ft = /* @__PURE__ */ ((t) => (t[t.Face = 0] = "Face", t[t.Hands = 1] = "Hands", t[t.Pose = 2] = "Pose", t[t.All = 3] = "All", t))(ft || {}), ut = /* @__PURE__ */ ((t) => (t[t.Css = 0] = "Css", t[t.Flutter = 1] = "Flutter", t))(ut || {}), Tt = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.Machine = 1] = "Machine", t[t.Human = 2] = "Human", t))(Tt || {}), ht = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.H264 = 1] = "H264", t[t.Vp8 = 2] = "Vp8", t[t.Vp9 = 3] = "Vp9", t[t.Av1 = 4] = "Av1", t))(ht || {}), At = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.DotNet = 1] = "DotNet", t[t.TypeScript = 2] = "TypeScript", t[t.Cpp = 3] = "Cpp", t[t.Dart = 4] = "Dart", t[t.Rust = 5] = "Rust", t))(At || {}), Nt = /* @__PURE__ */ ((t) => (t[t.Local = 0] = "Local", t[t.Cloud = 1] = "Cloud", t))(Nt || {}), St = /* @__PURE__ */ ((t) => (t[t.Bundle = 0] = "Bundle", t[t.GitSource = 1] = "GitSource", t))(St || {}), m = /* @__PURE__ */ ((t) => (t[t.NONE = 0] = "NONE", t[t.CONSTANT_GROUP_BITS = 15] = "CONSTANT_GROUP_BITS", t[t.CONSTANT_GROUP_OFFSET = 16] = "CONSTANT_GROUP_OFFSET", t[t.GROUP_CORE = 65536] = "GROUP_CORE", t[t.CORE_AUTH_RESPONSE = 65537] = "CORE_AUTH_RESPONSE", t[t.CORE_AUTH_TICKET = 65538] = "CORE_AUTH_TICKET", t[t.CORE_GLOBAL_STATE = 65539] = "CORE_GLOBAL_STATE", t[t.CORE_ON_SERVER_STATUS_PING = 65540] = "CORE_ON_SERVER_STATUS_PING", t[t.CORE_ON_USER_JOINED = 65541] = "CORE_ON_USER_JOINED", t[t.CORE_ON_USER_LEFT = 65542] = "CORE_ON_USER_LEFT", t[t.CORE_ON_CLIENT_JOINED = 65543] = "CORE_ON_CLIENT_JOINED", t[t.CORE_ON_CLIENT_LEFT = 65544] = "CORE_ON_CLIENT_LEFT", t[t.CORE_ON_SERVER_STARTED = 65545] = "CORE_ON_SERVER_STARTED", t[t.CORE_ON_SERVER_STOPPED = 65546] = "CORE_ON_SERVER_STOPPED", t[t.CORE_ON_SERVER_STOPPING = 65547] = "CORE_ON_SERVER_STOPPING", t[t.CORE_ON_CLIENT_READY = 65548] = "CORE_ON_CLIENT_READY", t[t.CORE_CLIENT_READY = 65549] = "CORE_CLIENT_READY", t[t.CORE_SERVER_INIT = 65550] = "CORE_SERVER_INIT", t[t.CORE_ON_PLUGIN_RELOADED = 65551] = "CORE_ON_PLUGIN_RELOADED", t[t.CORE_SERVER_START = 65552] = "CORE_SERVER_START", t[t.CORE_SERVER_STOP = 65553] = "CORE_SERVER_STOP", t[t.CORE_ON_HOSTED_SERVER_EXIT = 65554] = "CORE_ON_HOSTED_SERVER_EXIT", t[t.CORE_DYNAMIC_CONFIG = 65555] = "CORE_DYNAMIC_CONFIG", t[t.CORE_PROXY_RPC_AUTH_TICKET = 65556] = "CORE_PROXY_RPC_AUTH_TICKET", t[t.CORE_SERVER_INIT2 = 65557] = "CORE_SERVER_INIT2", t[t.CORE_UPDATE_CLIENT_CONTEXT = 65558] = "CORE_UPDATE_CLIENT_CONTEXT", t[t.CORE_BACKGROUND_WORK_ACTIVE = 65559] = "CORE_BACKGROUND_WORK_ACTIVE", t[t.CORE_RESET_IDLE = 65560] = "CORE_RESET_IDLE", t[t.CORE_CLIENT_DISCONNECTING = 65561] = "CORE_CLIENT_DISCONNECTING", t[t.CORE_ON_APP_READY = 65562] = "CORE_ON_APP_READY", t[t.CORE_ON_FRONTEND_RELOADED = 65563] = "CORE_ON_FRONTEND_RELOADED", t[t.CORE_WEBRTC_OFFER = 65566] = "CORE_WEBRTC_OFFER", t[t.CORE_WEBRTC_ANSWER = 65567] = "CORE_WEBRTC_ANSWER", t[t.CORE_WEBRTC_ICE_CANDIDATE = 65568] = "CORE_WEBRTC_ICE_CANDIDATE", t[t.CORE_WEBRTC_READY = 65569] = "CORE_WEBRTC_READY", t[t.CORE_WEBRTC_AUDIO_SEGMENT = 65570] = "CORE_WEBRTC_AUDIO_SEGMENT", t[t.CORE_WEBRTC_TRACK_MAP = 65571] = "CORE_WEBRTC_TRACK_MAP", t[t.CORE_WEBRTC_VIDEO_CAPTURE = 65572] = "CORE_WEBRTC_VIDEO_CAPTURE", t[t.CORE_RELAY_AGENT_AUTH = 65576] = "CORE_RELAY_AGENT_AUTH", t[t.CORE_RELAY_AGENT_AUTH_RESULT = 65577] = "CORE_RELAY_AGENT_AUTH_RESULT", t[t.CORE_RELAY_HEARTBEAT = 65578] = "CORE_RELAY_HEARTBEAT", t[t.CORE_RELAY_TCP_CONNECTION_OPENED = 65579] = "CORE_RELAY_TCP_CONNECTION_OPENED", t[t.CORE_RELAY_TCP_CONNECTION_CLOSED = 65580] = "CORE_RELAY_TCP_CONNECTION_CLOSED", t[t.CORE_RELAY_TCP_DATA = 65581] = "CORE_RELAY_TCP_DATA", t[t.CORE_RELAY_UDP_DATA = 65582] = "CORE_RELAY_UDP_DATA", t[t.CORE_RELAY_ADD_TUNNEL = 65583] = "CORE_RELAY_ADD_TUNNEL", t[t.CORE_RELAY_TUNNEL_ADDED = 65584] = "CORE_RELAY_TUNNEL_ADDED", t[t.CORE_RELAY_REMOVE_TUNNEL = 65585] = "CORE_RELAY_REMOVE_TUNNEL", t[t.CORE_IKON_SERVER_ENDPOINT_HOST_INFO = 65586] = "CORE_IKON_SERVER_ENDPOINT_HOST_INFO", t[t.CORE_CLIENT_INITIALIZATION = 65587] = "CORE_CLIENT_INITIALIZATION", t[t.CORE_CLIENT_LIFECYCLE_BATCH = 65588] = "CORE_CLIENT_LIFECYCLE_BATCH", t[t.CORE_APP_CONFIG = 65589] = "CORE_APP_CONFIG", t[t.GROUP_KEEPALIVE = 131072] = "GROUP_KEEPALIVE", t[t.KEEPALIVE_REQUEST = 131073] = "KEEPALIVE_REQUEST", t[t.KEEPALIVE_RESPONSE = 131074] = "KEEPALIVE_RESPONSE", t[t.GROUP_EVENTS = 262144] = "GROUP_EVENTS", t[t.EVENTS_PROFILE_UPDATE = 262145] = "EVENTS_PROFILE_UPDATE", t[t.EVENTS_CHANNEL_COMPLETE = 262146] = "EVENTS_CHANNEL_COMPLETE", t[t.EVENTS_SPEECH_PLAYBACK_COMPLETE = 262147] = "EVENTS_SPEECH_PLAYBACK_COMPLETE", t[t.GROUP_ANALYTICS = 524288] = "GROUP_ANALYTICS", t[t.ANALYTICS_LOGS = 524289] = "ANALYTICS_LOGS", t[t.ANALYTICS_EVENTS = 524290] = "ANALYTICS_EVENTS", t[t.ANALYTICS_USAGES = 524291] = "ANALYTICS_USAGES", t[t.ANALYTICS_USAGE = 524292] = "ANALYTICS_USAGE", t[t.ANALYTICS_SPECIAL_LOG = 524293] = "ANALYTICS_SPECIAL_LOG", t[t.ANALYTICS_PROCESSING_UPDATE = 524294] = "ANALYTICS_PROCESSING_UPDATE", t[t.ANALYTICS_REACTIVE_PROCESSING_UPDATE = 524295] = "ANALYTICS_REACTIVE_PROCESSING_UPDATE", t[t.ANALYTICS_IKON_PROXY_SERVER_STATS = 524296] = "ANALYTICS_IKON_PROXY_SERVER_STATS", t[t.ANALYTICS_IKON_RELAY_SERVER_STATS = 524297] = "ANALYTICS_IKON_RELAY_SERVER_STATS", t[t.ANALYTICS_IKON_TURN_SERVER_STATS = 524298] = "ANALYTICS_IKON_TURN_SERVER_STATS", t[t.GROUP_ACTIONS = 1048576] = "GROUP_ACTIONS", t[t.ACTION_CALL = 1048577] = "ACTION_CALL", t[t.ACTION_ACTIVE = 1048578] = "ACTION_ACTIVE", t[t.ACTION_TEXT_OUTPUT = 1048579] = "ACTION_TEXT_OUTPUT", t[t.ACTION_TEXT_OUTPUT_DELTA = 1048580] = "ACTION_TEXT_OUTPUT_DELTA", t[t.ACTION_TEXT_OUTPUT_DELTA_FULL = 1048581] = "ACTION_TEXT_OUTPUT_DELTA_FULL", t[t.ACTION_SET_STATE = 1048582] = "ACTION_SET_STATE", t[t.ACTION_TAP = 1048583] = "ACTION_TAP", t[t.ACTION_PAN = 1048584] = "ACTION_PAN", t[t.ACTION_ZOOM = 1048585] = "ACTION_ZOOM", t[t.ACTION_FILE_UPLOAD_BEGIN = 1048586] = "ACTION_FILE_UPLOAD_BEGIN", t[t.ACTION_FILE_UPLOAD_DATA = 1048587] = "ACTION_FILE_UPLOAD_DATA", t[t.ACTION_FILE_UPLOAD_ACK = 1048588] = "ACTION_FILE_UPLOAD_ACK", t[t.ACTION_FILE_UPLOAD_END = 1048589] = "ACTION_FILE_UPLOAD_END", t[t.ACTION_FILE_UPLOAD_RESULT = 1048590] = "ACTION_FILE_UPLOAD_RESULT", t[t.ACTION_OPEN_CHANNEL = 1048591] = "ACTION_OPEN_CHANNEL", t[t.ACTION_OPEN_EXTERNAL_URL = 1048592] = "ACTION_OPEN_EXTERNAL_URL", t[t.ACTION_UI_OPEN_VIEW = 1048593] = "ACTION_UI_OPEN_VIEW", t[t.ACTION_UI_CLOSE_VIEW = 1048594] = "ACTION_UI_CLOSE_VIEW", t[t.ACTION_UI_BLOCKING_BEGIN = 1048595] = "ACTION_UI_BLOCKING_BEGIN", t[t.ACTION_UI_BLOCKING_END = 1048596] = "ACTION_UI_BLOCKING_END", t[t.ACTION_UI_UPDATE_TEXT_DELTA = 1048597] = "ACTION_UI_UPDATE_TEXT_DELTA", t[t.ACTION_UI_DELETE_CONTAINER = 1048598] = "ACTION_UI_DELETE_CONTAINER", t[t.ACTION_UPDATE_GFX_SHADER = 1048599] = "ACTION_UPDATE_GFX_SHADER", t[t.ACTION_FUNCTION_REGISTER = 1048600] = "ACTION_FUNCTION_REGISTER", t[t.ACTION_FUNCTION_CALL = 1048601] = "ACTION_FUNCTION_CALL", t[t.ACTION_FUNCTION_RESULT = 1048602] = "ACTION_FUNCTION_RESULT", t[t.ACTION_GENERATE_ANSWER = 1048603] = "ACTION_GENERATE_ANSWER", t[t.ACTION_REGENERATE_ANSWER = 1048604] = "ACTION_REGENERATE_ANSWER", t[t.ACTION_CLEAR_CHAT_MESSAGE_HISTORY = 1048605] = "ACTION_CLEAR_CHAT_MESSAGE_HISTORY", t[t.ACTION_CLEAR_STATE = 1048606] = "ACTION_CLEAR_STATE", t[t.ACTION_RELOAD_CHANNELS = 1048607] = "ACTION_RELOAD_CHANNELS", t[t.ACTION_RELOAD_PROFILE = 1048608] = "ACTION_RELOAD_PROFILE", t[t.ACTION_CLASSIFICATION_RESULT = 1048609] = "ACTION_CLASSIFICATION_RESULT", t[t.ACTION_AUDIO_STOP = 1048610] = "ACTION_AUDIO_STOP", t[t.ACTION_CALL_TEXT = 1048611] = "ACTION_CALL_TEXT", t[t.ACTION_RELOAD_APPLICATION = 1048612] = "ACTION_RELOAD_APPLICATION", t[t.ACTION_CANCEL_GENERATION = 1048613] = "ACTION_CANCEL_GENERATION", t[t.ACTION_UI_SET_CONTAINER_STABLE = 1048614] = "ACTION_UI_SET_CONTAINER_STABLE", t[t.ACTION_SPEECH_RECOGNIZED = 1048615] = "ACTION_SPEECH_RECOGNIZED", t[t.ACTION_CALL_RESULT = 1048616] = "ACTION_CALL_RESULT", t[t.ACTION_RELOAD_PROVIDER = 1048617] = "ACTION_RELOAD_PROVIDER", t[t.ACTION_DOWNLOAD = 1048618] = "ACTION_DOWNLOAD", t[t.ACTION_SCROLL_TO_CONTAINER = 1048619] = "ACTION_SCROLL_TO_CONTAINER", t[t.ACTION_UI_CLEAR_STREAM = 1048620] = "ACTION_UI_CLEAR_STREAM", t[t.ACTION_PLAY_SOUND = 1048621] = "ACTION_PLAY_SOUND", t[t.ACTION_ENTER_FULLSCREEN = 1048622] = "ACTION_ENTER_FULLSCREEN", t[t.ACTION_STOP_SOUND = 1048623] = "ACTION_STOP_SOUND", t[t.ACTION_START_RECORDING = 1048624] = "ACTION_START_RECORDING", t[t.ACTION_STOP_RECORDING = 1048625] = "ACTION_STOP_RECORDING", t[t.ACTION_FUNCTION_ENUMERATION_ITEM = 1048627] = "ACTION_FUNCTION_ENUMERATION_ITEM", t[t.ACTION_FUNCTION_ENUMERATION_END = 1048628] = "ACTION_FUNCTION_ENUMERATION_END", t[t.ACTION_FUNCTION_CANCEL = 1048629] = "ACTION_FUNCTION_CANCEL", t[t.ACTION_FUNCTION_DISPOSE = 1048630] = "ACTION_FUNCTION_DISPOSE", t[t.ACTION_FUNCTION_ERROR = 1048631] = "ACTION_FUNCTION_ERROR", t[t.ACTION_FUNCTION_ACK = 1048632] = "ACTION_FUNCTION_ACK", t[t.ACTION_FUNCTION_AWAITING_APPROVAL = 1048633] = "ACTION_FUNCTION_AWAITING_APPROVAL", t[t.ACTION_FUNCTION_APPROVAL_REQUIRED = 1048634] = "ACTION_FUNCTION_APPROVAL_REQUIRED", t[t.ACTION_FUNCTION_APPROVAL_RESPONSE = 1048635] = "ACTION_FUNCTION_APPROVAL_RESPONSE", t[t.UI_UPDATE_ACK = 1048636] = "UI_UPDATE_ACK", t[t.ACTION_CALL2 = 1048637] = "ACTION_CALL2", t[t.ACTION_FUNCTION_REGISTER_BATCH = 1048638] = "ACTION_FUNCTION_REGISTER_BATCH", t[t.ACTION_TRIGGER_GIT_PULL = 1048639] = "ACTION_TRIGGER_GIT_PULL", t[t.ACTION_FILE_UPLOAD_CALLBACK = 1048640] = "ACTION_FILE_UPLOAD_CALLBACK", t[t.ACTION_CUSTOM_USER_MESSAGE = 1048641] = "ACTION_CUSTOM_USER_MESSAGE", t[t.ACTION_URL_CHANGED = 1048642] = "ACTION_URL_CHANGED", t[t.ACTION_FILE_UPLOAD_PRE_START2 = 1048643] = "ACTION_FILE_UPLOAD_PRE_START2", t[t.ACTION_FILE_UPLOAD_PRE_START_RESPONSE2 = 1048644] = "ACTION_FILE_UPLOAD_PRE_START_RESPONSE2", t[t.ACTION_FILE_UPLOAD_START2 = 1048645] = "ACTION_FILE_UPLOAD_START2", t[t.ACTION_FILE_UPLOAD_START_RESPONSE2 = 1048646] = "ACTION_FILE_UPLOAD_START_RESPONSE2", t[t.ACTION_FILE_UPLOAD_DATA2 = 1048647] = "ACTION_FILE_UPLOAD_DATA2", t[t.ACTION_FILE_UPLOAD_ACK2 = 1048648] = "ACTION_FILE_UPLOAD_ACK2", t[t.ACTION_FILE_UPLOAD_END2 = 1048649] = "ACTION_FILE_UPLOAD_END2", t[t.ACTION_FILE_UPLOAD_COMPLETE2 = 1048650] = "ACTION_FILE_UPLOAD_COMPLETE2", t[t.ACTION_FUNCTION_ENUMERATION_ITEM_BATCH = 1048651] = "ACTION_FUNCTION_ENUMERATION_ITEM_BATCH", t[t.ACTION_CALL_ACK = 1048652] = "ACTION_CALL_ACK", t[t.ACTION_TRIGGER_CRON = 1048653] = "ACTION_TRIGGER_CRON", t[t.GROUP_UI = 2097152] = "GROUP_UI", t[t.UI_STREAM_BEGIN = 2097153] = "UI_STREAM_BEGIN", t[t.UI_STREAM_END = 2097154] = "UI_STREAM_END", t[t.UI_CONTAINER_BEGIN = 2097155] = "UI_CONTAINER_BEGIN", t[t.UI_CONTAINER_END = 2097156] = "UI_CONTAINER_END", t[t.UI_SECTION_BEGIN = 2097157] = "UI_SECTION_BEGIN", t[t.UI_SECTION_END = 2097158] = "UI_SECTION_END", t[t.UI_LIST_BEGIN = 2097159] = "UI_LIST_BEGIN", t[t.UI_LIST_ITEM = 2097160] = "UI_LIST_ITEM", t[t.UI_LIST_END = 2097161] = "UI_LIST_END", t[t.UI_TEXT = 2097162] = "UI_TEXT", t[t.UI_HEADER = 2097163] = "UI_HEADER", t[t.UI_SEPARATOR = 2097164] = "UI_SEPARATOR", t[t.UI_BUTTON = 2097165] = "UI_BUTTON", t[t.UI_ICON_BUTTON = 2097166] = "UI_ICON_BUTTON", t[t.UI_IMAGE = 2097167] = "UI_IMAGE", t[t.UI_FILE = 2097168] = "UI_FILE", t[t.UI_BADGE = 2097169] = "UI_BADGE", t[t.UI_CONTENT_LINK = 2097170] = "UI_CONTENT_LINK", t[t.UI_MAP = 2097171] = "UI_MAP", t[t.UI_VEGA_CHART = 2097172] = "UI_VEGA_CHART", t[t.UI_ICON = 2097173] = "UI_ICON", t[t.UI_FILE_UPLOAD_SECTION_BEGIN = 2097174] = "UI_FILE_UPLOAD_SECTION_BEGIN", t[t.UI_FILE_UPLOAD_SECTION_END = 2097175] = "UI_FILE_UPLOAD_SECTION_END", t[t.UI_MATERIAL_SYMBOL = 2097176] = "UI_MATERIAL_SYMBOL", t[t.UI_BUTTON_BEGIN = 2097177] = "UI_BUTTON_BEGIN", t[t.UI_BUTTON_END = 2097178] = "UI_BUTTON_END", t[t.UI_CONTAINER_DELETE = 2097179] = "UI_CONTAINER_DELETE", t[t.UI_INPUT_TEXT = 2097180] = "UI_INPUT_TEXT", t[t.UI_PROGRESS_BAR = 2097181] = "UI_PROGRESS_BAR", t[t.UI_UPDATE_BEGIN = 2097182] = "UI_UPDATE_BEGIN", t[t.UI_UPDATE_END = 2097183] = "UI_UPDATE_END", t[t.UI_AUTOCOMPLETE = 2097184] = "UI_AUTOCOMPLETE", t[t.UI_CHECKBOX = 2097185] = "UI_CHECKBOX", t[t.UI_QS = 2097186] = "UI_QS", t[t.UI_ELEMENT = 2097187] = "UI_ELEMENT", t[t.UI_STYLES = 2097188] = "UI_STYLES", t[t.UI_SVG = 2097189] = "UI_SVG", t[t.UI_UPDATE = 2097190] = "UI_UPDATE", t[t.UI_INIT = 2097191] = "UI_INIT", t[t.UI_STYLES_BATCH = 2097192] = "UI_STYLES_BATCH", t[t.UI_STYLES_DELETE = 2097193] = "UI_STYLES_DELETE", t[t.GROUP_COMMON = 4128768] = "GROUP_COMMON", t[t.GROUP_AUDIO = 4194304] = "GROUP_AUDIO", t[t.AUDIO_STREAM_BEGIN = 4194305] = "AUDIO_STREAM_BEGIN", t[t.AUDIO_STREAM_END = 4194306] = "AUDIO_STREAM_END", t[t.AUDIO_FRAME = 4194307] = "AUDIO_FRAME", t[t.AUDIO_FRAME_VOLUME = 4194308] = "AUDIO_FRAME_VOLUME", t[t.AUDIO_FRAME2 = 4194309] = "AUDIO_FRAME2", t[t.AUDIO_SHAPE_FRAME = 4194310] = "AUDIO_SHAPE_FRAME", t[t.GROUP_VIDEO = 8388608] = "GROUP_VIDEO", t[t.VIDEO_STREAM_BEGIN = 8388609] = "VIDEO_STREAM_BEGIN", t[t.VIDEO_STREAM_END = 8388610] = "VIDEO_STREAM_END", t[t.VIDEO_FRAME = 8388611] = "VIDEO_FRAME", t[t.VIDEO_REQUEST_IDR_FRAME = 8388612] = "VIDEO_REQUEST_IDR_FRAME", t[t.VIDEO_INVALIDATE_FRAME = 8388613] = "VIDEO_INVALIDATE_FRAME", t[t.GROUP_TRACKING = 16777216] = "GROUP_TRACKING", t[t.TRACKING_STREAM_BEGIN = 16777217] = "TRACKING_STREAM_BEGIN", t[t.TRACKING_STREAM_END = 16777218] = "TRACKING_STREAM_END", t[t.TRACKING_FRAME = 16777219] = "TRACKING_FRAME", t[t.GROUP_SCENE = 33554432] = "GROUP_SCENE", t[t.SCENE_MESH = 33554433] = "SCENE_MESH", t[t.SCENE_ARRAY = 33554434] = "SCENE_ARRAY", t[t.GROUP_ALL = 67043328] = "GROUP_ALL", t[t.GROUP_APP_LOCAL = 1073741824] = "GROUP_APP_LOCAL", t[t.CONSTANT_GROUP_MASK = 2147418112] = "CONSTANT_GROUP_MASK", t))(m || {});
|
|
542
|
-
const
|
|
541
|
+
var It = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.Opus = 1] = "Opus", t[t.Mp3 = 2] = "Mp3", t[t.RawPcm16 = 3] = "RawPcm16", t))(It || {}), _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 || {}), lt = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.Backend = 2] = "Backend", t[t.Server = 4] = "Server", t[t.Plugin = 8] = "Plugin", t[t.Browser = 16] = "Browser", t[t.Native = 32] = "Native", t))(lt || {}), ct = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.MessagePack = 1] = "MessagePack", t[t.MemoryPack = 2] = "MemoryPack", t[t.Json = 4] = "Json", t[t.Teleport = 8] = "Teleport", t[t.All = 15] = "All", t))(ct || {}), ft = /* @__PURE__ */ ((t) => (t[t.Face = 0] = "Face", t[t.Hands = 1] = "Hands", t[t.Pose = 2] = "Pose", t[t.All = 3] = "All", t))(ft || {}), ut = /* @__PURE__ */ ((t) => (t[t.Css = 0] = "Css", t[t.Flutter = 1] = "Flutter", t))(ut || {}), Tt = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.Machine = 1] = "Machine", t[t.Human = 2] = "Human", t))(Tt || {}), ht = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.H264 = 1] = "H264", t[t.Vp8 = 2] = "Vp8", t[t.Vp9 = 3] = "Vp9", t[t.Av1 = 4] = "Av1", t))(ht || {}), At = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.DotNet = 1] = "DotNet", t[t.TypeScript = 2] = "TypeScript", t[t.Cpp = 3] = "Cpp", t[t.Dart = 4] = "Dart", t[t.Rust = 5] = "Rust", t))(At || {}), Nt = /* @__PURE__ */ ((t) => (t[t.Local = 0] = "Local", t[t.Cloud = 1] = "Cloud", t))(Nt || {}), St = /* @__PURE__ */ ((t) => (t[t.Bundle = 0] = "Bundle", t[t.GitSource = 1] = "GitSource", t))(St || {}), 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.CORE_UPDATE_CLIENT_CONTEXT = 65558] = "CORE_UPDATE_CLIENT_CONTEXT", t[t.CORE_BACKGROUND_WORK_ACTIVE = 65559] = "CORE_BACKGROUND_WORK_ACTIVE", t[t.CORE_RESET_IDLE = 65560] = "CORE_RESET_IDLE", t[t.CORE_CLIENT_DISCONNECTING = 65561] = "CORE_CLIENT_DISCONNECTING", t[t.CORE_ON_APP_READY = 65562] = "CORE_ON_APP_READY", t[t.CORE_ON_FRONTEND_RELOADED = 65563] = "CORE_ON_FRONTEND_RELOADED", t[t.CORE_WEBRTC_OFFER = 65566] = "CORE_WEBRTC_OFFER", t[t.CORE_WEBRTC_ANSWER = 65567] = "CORE_WEBRTC_ANSWER", t[t.CORE_WEBRTC_ICE_CANDIDATE = 65568] = "CORE_WEBRTC_ICE_CANDIDATE", t[t.CORE_WEBRTC_READY = 65569] = "CORE_WEBRTC_READY", t[t.CORE_WEBRTC_AUDIO_SEGMENT = 65570] = "CORE_WEBRTC_AUDIO_SEGMENT", t[t.CORE_WEBRTC_TRACK_MAP = 65571] = "CORE_WEBRTC_TRACK_MAP", t[t.CORE_WEBRTC_VIDEO_CAPTURE = 65572] = "CORE_WEBRTC_VIDEO_CAPTURE", t[t.CORE_RELAY_AGENT_AUTH = 65576] = "CORE_RELAY_AGENT_AUTH", t[t.CORE_RELAY_AGENT_AUTH_RESULT = 65577] = "CORE_RELAY_AGENT_AUTH_RESULT", t[t.CORE_RELAY_HEARTBEAT = 65578] = "CORE_RELAY_HEARTBEAT", t[t.CORE_RELAY_TCP_CONNECTION_OPENED = 65579] = "CORE_RELAY_TCP_CONNECTION_OPENED", t[t.CORE_RELAY_TCP_CONNECTION_CLOSED = 65580] = "CORE_RELAY_TCP_CONNECTION_CLOSED", t[t.CORE_RELAY_TCP_DATA = 65581] = "CORE_RELAY_TCP_DATA", t[t.CORE_RELAY_UDP_DATA = 65582] = "CORE_RELAY_UDP_DATA", t[t.CORE_RELAY_ADD_TUNNEL = 65583] = "CORE_RELAY_ADD_TUNNEL", t[t.CORE_RELAY_TUNNEL_ADDED = 65584] = "CORE_RELAY_TUNNEL_ADDED", t[t.CORE_RELAY_REMOVE_TUNNEL = 65585] = "CORE_RELAY_REMOVE_TUNNEL", t[t.CORE_IKON_SERVER_ENDPOINT_HOST_INFO = 65586] = "CORE_IKON_SERVER_ENDPOINT_HOST_INFO", t[t.CORE_CLIENT_INITIALIZATION = 65587] = "CORE_CLIENT_INITIALIZATION", t[t.CORE_CLIENT_LIFECYCLE_BATCH = 65588] = "CORE_CLIENT_LIFECYCLE_BATCH", t[t.CORE_APP_CONFIG = 65589] = "CORE_APP_CONFIG", t[t.GROUP_KEEPALIVE = 131072] = "GROUP_KEEPALIVE", t[t.KEEPALIVE_REQUEST = 131073] = "KEEPALIVE_REQUEST", t[t.KEEPALIVE_RESPONSE = 131074] = "KEEPALIVE_RESPONSE", t[t.GROUP_EVENTS = 262144] = "GROUP_EVENTS", t[t.EVENTS_PROFILE_UPDATE = 262145] = "EVENTS_PROFILE_UPDATE", t[t.EVENTS_CHANNEL_COMPLETE = 262146] = "EVENTS_CHANNEL_COMPLETE", t[t.EVENTS_SPEECH_PLAYBACK_COMPLETE = 262147] = "EVENTS_SPEECH_PLAYBACK_COMPLETE", t[t.GROUP_ANALYTICS = 524288] = "GROUP_ANALYTICS", t[t.ANALYTICS_LOGS = 524289] = "ANALYTICS_LOGS", t[t.ANALYTICS_EVENTS = 524290] = "ANALYTICS_EVENTS", t[t.ANALYTICS_USAGES = 524291] = "ANALYTICS_USAGES", t[t.ANALYTICS_USAGE = 524292] = "ANALYTICS_USAGE", t[t.ANALYTICS_SPECIAL_LOG = 524293] = "ANALYTICS_SPECIAL_LOG", t[t.ANALYTICS_PROCESSING_UPDATE = 524294] = "ANALYTICS_PROCESSING_UPDATE", t[t.ANALYTICS_REACTIVE_PROCESSING_UPDATE = 524295] = "ANALYTICS_REACTIVE_PROCESSING_UPDATE", t[t.ANALYTICS_IKON_PROXY_SERVER_STATS = 524296] = "ANALYTICS_IKON_PROXY_SERVER_STATS", t[t.ANALYTICS_IKON_RELAY_SERVER_STATS = 524297] = "ANALYTICS_IKON_RELAY_SERVER_STATS", t[t.ANALYTICS_IKON_TURN_SERVER_STATS = 524298] = "ANALYTICS_IKON_TURN_SERVER_STATS", t[t.GROUP_ACTIONS = 1048576] = "GROUP_ACTIONS", t[t.ACTION_CALL = 1048577] = "ACTION_CALL", t[t.ACTION_ACTIVE = 1048578] = "ACTION_ACTIVE", t[t.ACTION_TEXT_OUTPUT = 1048579] = "ACTION_TEXT_OUTPUT", t[t.ACTION_TEXT_OUTPUT_DELTA = 1048580] = "ACTION_TEXT_OUTPUT_DELTA", t[t.ACTION_TEXT_OUTPUT_DELTA_FULL = 1048581] = "ACTION_TEXT_OUTPUT_DELTA_FULL", t[t.ACTION_SET_STATE = 1048582] = "ACTION_SET_STATE", t[t.ACTION_TAP = 1048583] = "ACTION_TAP", t[t.ACTION_PAN = 1048584] = "ACTION_PAN", t[t.ACTION_ZOOM = 1048585] = "ACTION_ZOOM", t[t.ACTION_FILE_UPLOAD_BEGIN = 1048586] = "ACTION_FILE_UPLOAD_BEGIN", t[t.ACTION_FILE_UPLOAD_DATA = 1048587] = "ACTION_FILE_UPLOAD_DATA", t[t.ACTION_FILE_UPLOAD_ACK = 1048588] = "ACTION_FILE_UPLOAD_ACK", t[t.ACTION_FILE_UPLOAD_END = 1048589] = "ACTION_FILE_UPLOAD_END", t[t.ACTION_FILE_UPLOAD_RESULT = 1048590] = "ACTION_FILE_UPLOAD_RESULT", t[t.ACTION_OPEN_CHANNEL = 1048591] = "ACTION_OPEN_CHANNEL", t[t.ACTION_OPEN_EXTERNAL_URL = 1048592] = "ACTION_OPEN_EXTERNAL_URL", t[t.ACTION_UI_OPEN_VIEW = 1048593] = "ACTION_UI_OPEN_VIEW", t[t.ACTION_UI_CLOSE_VIEW = 1048594] = "ACTION_UI_CLOSE_VIEW", t[t.ACTION_UI_BLOCKING_BEGIN = 1048595] = "ACTION_UI_BLOCKING_BEGIN", t[t.ACTION_UI_BLOCKING_END = 1048596] = "ACTION_UI_BLOCKING_END", t[t.ACTION_UI_UPDATE_TEXT_DELTA = 1048597] = "ACTION_UI_UPDATE_TEXT_DELTA", t[t.ACTION_UI_DELETE_CONTAINER = 1048598] = "ACTION_UI_DELETE_CONTAINER", t[t.ACTION_UPDATE_GFX_SHADER = 1048599] = "ACTION_UPDATE_GFX_SHADER", t[t.ACTION_FUNCTION_REGISTER = 1048600] = "ACTION_FUNCTION_REGISTER", t[t.ACTION_FUNCTION_CALL = 1048601] = "ACTION_FUNCTION_CALL", t[t.ACTION_FUNCTION_RESULT = 1048602] = "ACTION_FUNCTION_RESULT", t[t.ACTION_GENERATE_ANSWER = 1048603] = "ACTION_GENERATE_ANSWER", t[t.ACTION_REGENERATE_ANSWER = 1048604] = "ACTION_REGENERATE_ANSWER", t[t.ACTION_CLEAR_CHAT_MESSAGE_HISTORY = 1048605] = "ACTION_CLEAR_CHAT_MESSAGE_HISTORY", t[t.ACTION_CLEAR_STATE = 1048606] = "ACTION_CLEAR_STATE", t[t.ACTION_RELOAD_CHANNELS = 1048607] = "ACTION_RELOAD_CHANNELS", t[t.ACTION_RELOAD_PROFILE = 1048608] = "ACTION_RELOAD_PROFILE", t[t.ACTION_CLASSIFICATION_RESULT = 1048609] = "ACTION_CLASSIFICATION_RESULT", t[t.ACTION_AUDIO_STOP = 1048610] = "ACTION_AUDIO_STOP", t[t.ACTION_CALL_TEXT = 1048611] = "ACTION_CALL_TEXT", t[t.ACTION_RELOAD_APPLICATION = 1048612] = "ACTION_RELOAD_APPLICATION", t[t.ACTION_CANCEL_GENERATION = 1048613] = "ACTION_CANCEL_GENERATION", t[t.ACTION_UI_SET_CONTAINER_STABLE = 1048614] = "ACTION_UI_SET_CONTAINER_STABLE", t[t.ACTION_SPEECH_RECOGNIZED = 1048615] = "ACTION_SPEECH_RECOGNIZED", t[t.ACTION_CALL_RESULT = 1048616] = "ACTION_CALL_RESULT", t[t.ACTION_RELOAD_PROVIDER = 1048617] = "ACTION_RELOAD_PROVIDER", t[t.ACTION_DOWNLOAD = 1048618] = "ACTION_DOWNLOAD", t[t.ACTION_SCROLL_TO_CONTAINER = 1048619] = "ACTION_SCROLL_TO_CONTAINER", t[t.ACTION_UI_CLEAR_STREAM = 1048620] = "ACTION_UI_CLEAR_STREAM", t[t.ACTION_PLAY_SOUND = 1048621] = "ACTION_PLAY_SOUND", t[t.ACTION_ENTER_FULLSCREEN = 1048622] = "ACTION_ENTER_FULLSCREEN", t[t.ACTION_STOP_SOUND = 1048623] = "ACTION_STOP_SOUND", t[t.ACTION_START_RECORDING = 1048624] = "ACTION_START_RECORDING", t[t.ACTION_STOP_RECORDING = 1048625] = "ACTION_STOP_RECORDING", t[t.ACTION_FUNCTION_ENUMERATION_ITEM = 1048627] = "ACTION_FUNCTION_ENUMERATION_ITEM", t[t.ACTION_FUNCTION_ENUMERATION_END = 1048628] = "ACTION_FUNCTION_ENUMERATION_END", t[t.ACTION_FUNCTION_CANCEL = 1048629] = "ACTION_FUNCTION_CANCEL", t[t.ACTION_FUNCTION_DISPOSE = 1048630] = "ACTION_FUNCTION_DISPOSE", t[t.ACTION_FUNCTION_ERROR = 1048631] = "ACTION_FUNCTION_ERROR", t[t.ACTION_FUNCTION_ACK = 1048632] = "ACTION_FUNCTION_ACK", t[t.ACTION_FUNCTION_AWAITING_APPROVAL = 1048633] = "ACTION_FUNCTION_AWAITING_APPROVAL", t[t.ACTION_FUNCTION_APPROVAL_REQUIRED = 1048634] = "ACTION_FUNCTION_APPROVAL_REQUIRED", t[t.ACTION_FUNCTION_APPROVAL_RESPONSE = 1048635] = "ACTION_FUNCTION_APPROVAL_RESPONSE", t[t.UI_UPDATE_ACK = 1048636] = "UI_UPDATE_ACK", t[t.ACTION_CALL2 = 1048637] = "ACTION_CALL2", t[t.ACTION_FUNCTION_REGISTER_BATCH = 1048638] = "ACTION_FUNCTION_REGISTER_BATCH", t[t.ACTION_TRIGGER_GIT_PULL = 1048639] = "ACTION_TRIGGER_GIT_PULL", t[t.ACTION_FILE_UPLOAD_CALLBACK = 1048640] = "ACTION_FILE_UPLOAD_CALLBACK", t[t.ACTION_CUSTOM_USER_MESSAGE = 1048641] = "ACTION_CUSTOM_USER_MESSAGE", t[t.ACTION_URL_CHANGED = 1048642] = "ACTION_URL_CHANGED", t[t.ACTION_FILE_UPLOAD_PRE_START2 = 1048643] = "ACTION_FILE_UPLOAD_PRE_START2", t[t.ACTION_FILE_UPLOAD_PRE_START_RESPONSE2 = 1048644] = "ACTION_FILE_UPLOAD_PRE_START_RESPONSE2", t[t.ACTION_FILE_UPLOAD_START2 = 1048645] = "ACTION_FILE_UPLOAD_START2", t[t.ACTION_FILE_UPLOAD_START_RESPONSE2 = 1048646] = "ACTION_FILE_UPLOAD_START_RESPONSE2", t[t.ACTION_FILE_UPLOAD_DATA2 = 1048647] = "ACTION_FILE_UPLOAD_DATA2", t[t.ACTION_FILE_UPLOAD_ACK2 = 1048648] = "ACTION_FILE_UPLOAD_ACK2", t[t.ACTION_FILE_UPLOAD_END2 = 1048649] = "ACTION_FILE_UPLOAD_END2", t[t.ACTION_FILE_UPLOAD_COMPLETE2 = 1048650] = "ACTION_FILE_UPLOAD_COMPLETE2", t[t.ACTION_FUNCTION_ENUMERATION_ITEM_BATCH = 1048651] = "ACTION_FUNCTION_ENUMERATION_ITEM_BATCH", t[t.ACTION_CALL_ACK = 1048652] = "ACTION_CALL_ACK", t[t.ACTION_TRIGGER_CRON = 1048653] = "ACTION_TRIGGER_CRON", t[t.GROUP_UI = 2097152] = "GROUP_UI", t[t.UI_STREAM_BEGIN = 2097153] = "UI_STREAM_BEGIN", t[t.UI_STREAM_END = 2097154] = "UI_STREAM_END", t[t.UI_CONTAINER_BEGIN = 2097155] = "UI_CONTAINER_BEGIN", t[t.UI_CONTAINER_END = 2097156] = "UI_CONTAINER_END", t[t.UI_SECTION_BEGIN = 2097157] = "UI_SECTION_BEGIN", t[t.UI_SECTION_END = 2097158] = "UI_SECTION_END", t[t.UI_LIST_BEGIN = 2097159] = "UI_LIST_BEGIN", t[t.UI_LIST_ITEM = 2097160] = "UI_LIST_ITEM", t[t.UI_LIST_END = 2097161] = "UI_LIST_END", t[t.UI_TEXT = 2097162] = "UI_TEXT", t[t.UI_HEADER = 2097163] = "UI_HEADER", t[t.UI_SEPARATOR = 2097164] = "UI_SEPARATOR", t[t.UI_BUTTON = 2097165] = "UI_BUTTON", t[t.UI_ICON_BUTTON = 2097166] = "UI_ICON_BUTTON", t[t.UI_IMAGE = 2097167] = "UI_IMAGE", t[t.UI_FILE = 2097168] = "UI_FILE", t[t.UI_BADGE = 2097169] = "UI_BADGE", t[t.UI_CONTENT_LINK = 2097170] = "UI_CONTENT_LINK", t[t.UI_MAP = 2097171] = "UI_MAP", t[t.UI_VEGA_CHART = 2097172] = "UI_VEGA_CHART", t[t.UI_ICON = 2097173] = "UI_ICON", t[t.UI_FILE_UPLOAD_SECTION_BEGIN = 2097174] = "UI_FILE_UPLOAD_SECTION_BEGIN", t[t.UI_FILE_UPLOAD_SECTION_END = 2097175] = "UI_FILE_UPLOAD_SECTION_END", t[t.UI_MATERIAL_SYMBOL = 2097176] = "UI_MATERIAL_SYMBOL", t[t.UI_BUTTON_BEGIN = 2097177] = "UI_BUTTON_BEGIN", t[t.UI_BUTTON_END = 2097178] = "UI_BUTTON_END", t[t.UI_CONTAINER_DELETE = 2097179] = "UI_CONTAINER_DELETE", t[t.UI_INPUT_TEXT = 2097180] = "UI_INPUT_TEXT", t[t.UI_PROGRESS_BAR = 2097181] = "UI_PROGRESS_BAR", t[t.UI_UPDATE_BEGIN = 2097182] = "UI_UPDATE_BEGIN", t[t.UI_UPDATE_END = 2097183] = "UI_UPDATE_END", t[t.UI_AUTOCOMPLETE = 2097184] = "UI_AUTOCOMPLETE", t[t.UI_CHECKBOX = 2097185] = "UI_CHECKBOX", t[t.UI_QS = 2097186] = "UI_QS", t[t.UI_ELEMENT = 2097187] = "UI_ELEMENT", t[t.UI_STYLES = 2097188] = "UI_STYLES", t[t.UI_SVG = 2097189] = "UI_SVG", t[t.UI_UPDATE = 2097190] = "UI_UPDATE", t[t.UI_INIT = 2097191] = "UI_INIT", t[t.UI_STYLES_BATCH = 2097192] = "UI_STYLES_BATCH", t[t.UI_STYLES_DELETE = 2097193] = "UI_STYLES_DELETE", t[t.GROUP_COMMON = 4128768] = "GROUP_COMMON", t[t.GROUP_AUDIO = 4194304] = "GROUP_AUDIO", t[t.AUDIO_STREAM_BEGIN = 4194305] = "AUDIO_STREAM_BEGIN", t[t.AUDIO_STREAM_END = 4194306] = "AUDIO_STREAM_END", t[t.AUDIO_FRAME = 4194307] = "AUDIO_FRAME", t[t.AUDIO_FRAME_VOLUME = 4194308] = "AUDIO_FRAME_VOLUME", t[t.AUDIO_FRAME2 = 4194309] = "AUDIO_FRAME2", t[t.AUDIO_SHAPE_FRAME = 4194310] = "AUDIO_SHAPE_FRAME", t[t.GROUP_VIDEO = 8388608] = "GROUP_VIDEO", t[t.VIDEO_STREAM_BEGIN = 8388609] = "VIDEO_STREAM_BEGIN", t[t.VIDEO_STREAM_END = 8388610] = "VIDEO_STREAM_END", t[t.VIDEO_FRAME = 8388611] = "VIDEO_FRAME", t[t.VIDEO_REQUEST_IDR_FRAME = 8388612] = "VIDEO_REQUEST_IDR_FRAME", t[t.VIDEO_INVALIDATE_FRAME = 8388613] = "VIDEO_INVALIDATE_FRAME", t[t.GROUP_TRACKING = 16777216] = "GROUP_TRACKING", t[t.TRACKING_STREAM_BEGIN = 16777217] = "TRACKING_STREAM_BEGIN", t[t.TRACKING_STREAM_END = 16777218] = "TRACKING_STREAM_END", t[t.TRACKING_FRAME = 16777219] = "TRACKING_FRAME", t[t.GROUP_SCENE = 33554432] = "GROUP_SCENE", t[t.SCENE_MESH = 33554433] = "SCENE_MESH", t[t.SCENE_ARRAY = 33554434] = "SCENE_ARRAY", t[t.GROUP_ALL = 67043328] = "GROUP_ALL", t[t.GROUP_APP_LOCAL = 1073741824] = "GROUP_APP_LOCAL", t[t.CONSTANT_GROUP_MASK = 2147418112] = "CONSTANT_GROUP_MASK", t))(g || {});
|
|
542
|
+
const ce = 161083277, fe = 265814330, ue = 1368629611, Te = 2431514951, he = 2514959030, Ae = 2745379226, Ne = 3282782683, Se = 3284746250, Ce = 4101844078;
|
|
543
543
|
function Ct(t) {
|
|
544
544
|
const r = {};
|
|
545
|
-
return
|
|
545
|
+
return Rt(r), r;
|
|
546
546
|
}
|
|
547
|
-
function
|
|
548
|
-
return t.StreamId = "", t.Description = "", t.SourceType = "", t.Codec =
|
|
547
|
+
function Rt(t) {
|
|
548
|
+
return t.StreamId = "", t.Description = "", t.SourceType = "", t.Codec = It.Unknown, t.CodecDetails = "", t.SampleRate = 0, t.Channels = 0, t.ShapeSets = void 0, t.CorrelationId = void 0, t;
|
|
549
549
|
}
|
|
550
|
-
function
|
|
550
|
+
function Re(t, r) {
|
|
551
551
|
const e = r ?? Ct();
|
|
552
|
-
return
|
|
552
|
+
return Rt(e), De(t, e), e;
|
|
553
553
|
}
|
|
554
|
-
function
|
|
554
|
+
function De(t, r) {
|
|
555
555
|
let e;
|
|
556
556
|
for (; (e = t.next()) !== null; )
|
|
557
557
|
switch (e.fieldId) {
|
|
558
|
-
case
|
|
558
|
+
case ce: {
|
|
559
559
|
if (e.isNull) throw new Error();
|
|
560
560
|
r.StreamId = e.asString();
|
|
561
561
|
break;
|
|
562
562
|
}
|
|
563
|
-
case
|
|
563
|
+
case fe: {
|
|
564
564
|
if (e.isNull) {
|
|
565
565
|
r.ShapeSets = void 0;
|
|
566
566
|
break;
|
|
567
567
|
}
|
|
568
|
-
r.ShapeSets =
|
|
568
|
+
r.ShapeSets = de(e.asArray());
|
|
569
569
|
break;
|
|
570
570
|
}
|
|
571
|
-
case
|
|
571
|
+
case ue: {
|
|
572
572
|
if (e.isNull) throw new Error();
|
|
573
573
|
r.Description = e.asString();
|
|
574
574
|
break;
|
|
575
575
|
}
|
|
576
|
-
case
|
|
576
|
+
case Te: {
|
|
577
577
|
if (e.isNull) throw new Error();
|
|
578
578
|
r.Channels = e.asInt32();
|
|
579
579
|
break;
|
|
580
580
|
}
|
|
581
|
-
case
|
|
581
|
+
case he: {
|
|
582
582
|
if (e.isNull) {
|
|
583
583
|
r.CorrelationId = void 0;
|
|
584
584
|
break;
|
|
@@ -586,269 +586,274 @@ function Ce(t, r) {
|
|
|
586
586
|
r.CorrelationId = e.asString();
|
|
587
587
|
break;
|
|
588
588
|
}
|
|
589
|
-
case
|
|
589
|
+
case Ae: {
|
|
590
590
|
if (e.isNull) throw new Error();
|
|
591
591
|
r.CodecDetails = e.asString();
|
|
592
592
|
break;
|
|
593
593
|
}
|
|
594
|
-
case
|
|
594
|
+
case Ne: {
|
|
595
595
|
if (e.isNull) throw new Error();
|
|
596
596
|
r.SourceType = e.asString();
|
|
597
597
|
break;
|
|
598
598
|
}
|
|
599
|
-
case
|
|
599
|
+
case Se: {
|
|
600
600
|
if (e.isNull) throw new Error();
|
|
601
601
|
r.Codec = e.asInt32();
|
|
602
602
|
break;
|
|
603
603
|
}
|
|
604
|
-
case
|
|
604
|
+
case Ce: {
|
|
605
605
|
if (e.isNull) throw new Error();
|
|
606
606
|
r.SampleRate = e.asInt32();
|
|
607
607
|
break;
|
|
608
608
|
}
|
|
609
609
|
}
|
|
610
610
|
}
|
|
611
|
-
function
|
|
611
|
+
function de(t) {
|
|
612
612
|
const r = [];
|
|
613
613
|
let e;
|
|
614
614
|
for (; (e = t.next()) !== null; )
|
|
615
|
-
r.push(
|
|
615
|
+
r.push(Oe(e.asObject()));
|
|
616
616
|
return r;
|
|
617
617
|
}
|
|
618
|
-
const
|
|
619
|
-
function
|
|
618
|
+
const we = 1107713536, ye = 1154362099, Le = 1185721362;
|
|
619
|
+
function Ue(t) {
|
|
620
620
|
const r = {};
|
|
621
|
-
return
|
|
621
|
+
return Dt(r), r;
|
|
622
622
|
}
|
|
623
|
-
function
|
|
623
|
+
function Dt(t) {
|
|
624
624
|
return t.SetId = 0, t.Name = "", t.ShapeNames = [], t;
|
|
625
625
|
}
|
|
626
|
-
function
|
|
627
|
-
const e = r ??
|
|
628
|
-
return
|
|
626
|
+
function Oe(t, r) {
|
|
627
|
+
const e = r ?? Ue();
|
|
628
|
+
return Dt(e), me(t, e), e;
|
|
629
629
|
}
|
|
630
|
-
function
|
|
630
|
+
function me(t, r) {
|
|
631
631
|
let e;
|
|
632
632
|
for (; (e = t.next()) !== null; )
|
|
633
633
|
switch (e.fieldId) {
|
|
634
|
-
case
|
|
634
|
+
case we: {
|
|
635
635
|
if (e.isNull) throw new Error();
|
|
636
636
|
r.Name = e.asString();
|
|
637
637
|
break;
|
|
638
638
|
}
|
|
639
|
-
case
|
|
639
|
+
case ye: {
|
|
640
640
|
if (e.isNull) throw new Error();
|
|
641
641
|
r.SetId = e.asUInt32();
|
|
642
642
|
break;
|
|
643
643
|
}
|
|
644
|
-
case
|
|
644
|
+
case Le: {
|
|
645
645
|
if (e.isNull) throw new Error();
|
|
646
|
-
r.ShapeNames =
|
|
646
|
+
r.ShapeNames = Pe(e.asArray());
|
|
647
647
|
break;
|
|
648
648
|
}
|
|
649
649
|
}
|
|
650
650
|
}
|
|
651
|
-
function
|
|
651
|
+
function Pe(t) {
|
|
652
652
|
const r = [];
|
|
653
653
|
let e;
|
|
654
654
|
for (; (e = t.next()) !== null; )
|
|
655
655
|
r.push(e.asString());
|
|
656
656
|
return r;
|
|
657
657
|
}
|
|
658
|
-
const
|
|
659
|
-
function
|
|
658
|
+
const ge = 76337612, Fe = 185396121, be = 250031587, Me = 388632637, ve = 417197284, ke = 425972532, Ge = 469070965, Be = 470595159, Ve = 594855258, xe = 617065367, pe = 661691032, He = 781727218, Ye = 834078886, Ke = 1043273762, $e = 1236999138, Xe = 1286979607, je = 1368629611, We = 1437068682, ze = 1668375353, Je = 1715899485, Qe = 1942830531, qe = 1999510636, Ze = 2033288346, tr = 2079864626, er = 2142346422, rr = 2228539873, sr = 2232517119, nr = 2598291686, ir = 2719718823, or = 2810953526, ar = 2840065720, Er = 2885165957, Ir = 3542818975, _r = 3586157513, lr = 3717933110, cr = 4062655306;
|
|
659
|
+
function fr(t) {
|
|
660
660
|
const r = {};
|
|
661
661
|
return dt(r), r;
|
|
662
662
|
}
|
|
663
663
|
function dt(t) {
|
|
664
|
-
return t.ContextType = lt.Unknown, t.UserType = Tt.Unknown, t.PayloadType = ct.Unknown, t.Description = "", t.UserId = "", t.DeviceId = "", t.ProductId = "", t.VersionId = "", t.InstallId = "", t.Locale = "", t.SessionId = -1, t.IsInternal = !1, t.IsReady = !1, t.HasInput = !1, t.ChannelLocale = "", t.EmbeddedSpaceId = "", t.AuthSessionId = "", t.ReceiveAllMessages = !1, t.PreciseJoinedAt = 0n, t.UserAgent = "", t.ClientType =
|
|
664
|
+
return t.ContextType = lt.Unknown, t.UserType = Tt.Unknown, t.PayloadType = ct.Unknown, t.Description = "", t.UserId = "", t.DeviceId = "", t.ProductId = "", t.VersionId = "", t.InstallId = "", t.Locale = "", t.SessionId = -1, t.IsInternal = !1, t.IsSnapshot = !1, t.IsReady = !1, t.HasInput = !1, t.ChannelLocale = "", t.EmbeddedSpaceId = "", t.AuthSessionId = "", t.ReceiveAllMessages = !1, t.PreciseJoinedAt = 0n, t.UserAgent = "", t.ClientType = _t.Unknown, t.UniqueSessionId = "", t.Parameters = /* @__PURE__ */ Object.create(null), t.SdkType = At.Unknown, t.SdkCapability = 0, t.ViewportWidth = 0, t.ViewportHeight = 0, t.Theme = "", t.Timezone = "", t.IsTouchDevice = !1, t.InitialPath = "", t.StyleFormat = ut.Css, t.SupportsCompression = !0, t.IsSoftDisconnected = !1, t.SoftDisconnectAt = 0n, t;
|
|
665
665
|
}
|
|
666
|
-
function
|
|
667
|
-
const e = r ??
|
|
668
|
-
return dt(e),
|
|
666
|
+
function ur(t, r) {
|
|
667
|
+
const e = r ?? fr();
|
|
668
|
+
return dt(e), Tr(t, e), e;
|
|
669
669
|
}
|
|
670
|
-
function
|
|
670
|
+
function Tr(t, r) {
|
|
671
671
|
let e;
|
|
672
672
|
for (; (e = t.next()) !== null; )
|
|
673
673
|
switch (e.fieldId) {
|
|
674
|
-
case
|
|
674
|
+
case ge: {
|
|
675
675
|
if (e.isNull) throw new Error();
|
|
676
676
|
r.DeviceId = e.asString();
|
|
677
677
|
break;
|
|
678
678
|
}
|
|
679
|
-
case
|
|
679
|
+
case Fe: {
|
|
680
680
|
if (e.isNull) throw new Error();
|
|
681
681
|
r.InstallId = e.asString();
|
|
682
682
|
break;
|
|
683
683
|
}
|
|
684
|
-
case
|
|
684
|
+
case be: {
|
|
685
685
|
if (e.isNull) throw new Error();
|
|
686
686
|
r.Theme = e.asString();
|
|
687
687
|
break;
|
|
688
688
|
}
|
|
689
|
-
case
|
|
689
|
+
case Me: {
|
|
690
690
|
if (e.isNull) throw new Error();
|
|
691
691
|
r.UserAgent = e.asString();
|
|
692
692
|
break;
|
|
693
693
|
}
|
|
694
|
-
case
|
|
694
|
+
case ve: {
|
|
695
695
|
if (e.isNull) throw new Error();
|
|
696
696
|
r.ContextType = e.asInt32();
|
|
697
697
|
break;
|
|
698
698
|
}
|
|
699
|
-
case
|
|
699
|
+
case ke: {
|
|
700
700
|
if (e.isNull) throw new Error();
|
|
701
701
|
r.SoftDisconnectAt = e.asUInt64();
|
|
702
702
|
break;
|
|
703
703
|
}
|
|
704
|
-
case
|
|
704
|
+
case Ge: {
|
|
705
705
|
if (e.isNull) throw new Error();
|
|
706
706
|
r.HasInput = e.asBool();
|
|
707
707
|
break;
|
|
708
708
|
}
|
|
709
|
-
case
|
|
709
|
+
case Be: {
|
|
710
710
|
if (e.isNull) throw new Error();
|
|
711
711
|
r.UserType = e.asInt32();
|
|
712
712
|
break;
|
|
713
713
|
}
|
|
714
|
-
case
|
|
714
|
+
case Ve: {
|
|
715
715
|
if (e.isNull) throw new Error();
|
|
716
716
|
r.InitialPath = e.asString();
|
|
717
717
|
break;
|
|
718
718
|
}
|
|
719
|
-
case
|
|
719
|
+
case xe: {
|
|
720
720
|
if (e.isNull) throw new Error();
|
|
721
721
|
r.IsSoftDisconnected = e.asBool();
|
|
722
722
|
break;
|
|
723
723
|
}
|
|
724
|
-
case
|
|
724
|
+
case pe: {
|
|
725
725
|
if (e.isNull) throw new Error();
|
|
726
726
|
r.SupportsCompression = e.asBool();
|
|
727
727
|
break;
|
|
728
728
|
}
|
|
729
|
-
case
|
|
729
|
+
case He: {
|
|
730
730
|
if (e.isNull) throw new Error();
|
|
731
731
|
r.UserId = e.asString();
|
|
732
732
|
break;
|
|
733
733
|
}
|
|
734
|
-
case
|
|
734
|
+
case Ye: {
|
|
735
735
|
if (e.isNull) throw new Error();
|
|
736
736
|
r.ProductId = e.asString();
|
|
737
737
|
break;
|
|
738
738
|
}
|
|
739
|
-
case
|
|
739
|
+
case Ke: {
|
|
740
740
|
if (e.isNull) throw new Error();
|
|
741
741
|
r.AuthSessionId = e.asString();
|
|
742
742
|
break;
|
|
743
743
|
}
|
|
744
|
-
case
|
|
744
|
+
case $e: {
|
|
745
745
|
if (e.isNull) throw new Error();
|
|
746
746
|
r.ReceiveAllMessages = e.asBool();
|
|
747
747
|
break;
|
|
748
748
|
}
|
|
749
|
-
case
|
|
749
|
+
case Xe: {
|
|
750
750
|
if (e.isNull) throw new Error();
|
|
751
751
|
r.ViewportHeight = e.asInt32();
|
|
752
752
|
break;
|
|
753
753
|
}
|
|
754
|
-
case
|
|
754
|
+
case je: {
|
|
755
755
|
if (e.isNull) throw new Error();
|
|
756
756
|
r.Description = e.asString();
|
|
757
757
|
break;
|
|
758
758
|
}
|
|
759
|
-
case
|
|
759
|
+
case We: {
|
|
760
760
|
if (e.isNull) throw new Error();
|
|
761
761
|
r.SdkCapability = e.asInt32();
|
|
762
762
|
break;
|
|
763
763
|
}
|
|
764
|
-
case
|
|
764
|
+
case ze: {
|
|
765
|
+
if (e.isNull) throw new Error();
|
|
766
|
+
r.IsSnapshot = e.asBool();
|
|
767
|
+
break;
|
|
768
|
+
}
|
|
769
|
+
case Je: {
|
|
765
770
|
if (e.isNull) throw new Error();
|
|
766
771
|
r.Locale = e.asString();
|
|
767
772
|
break;
|
|
768
773
|
}
|
|
769
|
-
case
|
|
774
|
+
case Qe: {
|
|
770
775
|
if (e.isNull) throw new Error();
|
|
771
776
|
r.SdkType = e.asInt32();
|
|
772
777
|
break;
|
|
773
778
|
}
|
|
774
|
-
case
|
|
779
|
+
case qe: {
|
|
775
780
|
if (e.isNull) throw new Error();
|
|
776
781
|
r.SessionId = e.asInt32();
|
|
777
782
|
break;
|
|
778
783
|
}
|
|
779
|
-
case
|
|
784
|
+
case Ze: {
|
|
780
785
|
if (e.isNull) throw new Error();
|
|
781
786
|
r.ViewportWidth = e.asInt32();
|
|
782
787
|
break;
|
|
783
788
|
}
|
|
784
|
-
case
|
|
789
|
+
case tr: {
|
|
785
790
|
if (e.isNull) throw new Error();
|
|
786
791
|
r.PreciseJoinedAt = e.asUInt64();
|
|
787
792
|
break;
|
|
788
793
|
}
|
|
789
|
-
case
|
|
794
|
+
case er: {
|
|
790
795
|
if (e.isNull) throw new Error();
|
|
791
796
|
r.PayloadType = e.asInt32();
|
|
792
797
|
break;
|
|
793
798
|
}
|
|
794
|
-
case
|
|
799
|
+
case rr: {
|
|
795
800
|
if (e.isNull) throw new Error();
|
|
796
801
|
r.StyleFormat = e.asInt32();
|
|
797
802
|
break;
|
|
798
803
|
}
|
|
799
|
-
case
|
|
804
|
+
case sr: {
|
|
800
805
|
if (e.isNull) throw new Error();
|
|
801
806
|
r.IsTouchDevice = e.asBool();
|
|
802
807
|
break;
|
|
803
808
|
}
|
|
804
|
-
case
|
|
809
|
+
case nr: {
|
|
805
810
|
if (e.isNull) throw new Error();
|
|
806
811
|
r.VersionId = e.asString();
|
|
807
812
|
break;
|
|
808
813
|
}
|
|
809
|
-
case
|
|
814
|
+
case ir: {
|
|
810
815
|
if (e.isNull) throw new Error();
|
|
811
816
|
r.UniqueSessionId = e.asString();
|
|
812
817
|
break;
|
|
813
818
|
}
|
|
814
|
-
case
|
|
819
|
+
case or: {
|
|
815
820
|
if (e.isNull) throw new Error();
|
|
816
821
|
r.ClientType = e.asInt32();
|
|
817
822
|
break;
|
|
818
823
|
}
|
|
819
|
-
case
|
|
824
|
+
case ar: {
|
|
820
825
|
if (e.isNull) throw new Error();
|
|
821
826
|
r.IsReady = e.asBool();
|
|
822
827
|
break;
|
|
823
828
|
}
|
|
824
|
-
case
|
|
829
|
+
case Er: {
|
|
825
830
|
if (e.isNull) throw new Error();
|
|
826
|
-
r.Parameters =
|
|
831
|
+
r.Parameters = hr(e.asDictionary());
|
|
827
832
|
break;
|
|
828
833
|
}
|
|
829
|
-
case
|
|
834
|
+
case Ir: {
|
|
830
835
|
if (e.isNull) throw new Error();
|
|
831
836
|
r.Timezone = e.asString();
|
|
832
837
|
break;
|
|
833
838
|
}
|
|
834
|
-
case
|
|
839
|
+
case _r: {
|
|
835
840
|
if (e.isNull) throw new Error();
|
|
836
841
|
r.IsInternal = e.asBool();
|
|
837
842
|
break;
|
|
838
843
|
}
|
|
839
|
-
case
|
|
844
|
+
case lr: {
|
|
840
845
|
if (e.isNull) throw new Error();
|
|
841
846
|
r.ChannelLocale = e.asString();
|
|
842
847
|
break;
|
|
843
848
|
}
|
|
844
|
-
case
|
|
849
|
+
case cr: {
|
|
845
850
|
if (e.isNull) throw new Error();
|
|
846
851
|
r.EmbeddedSpaceId = e.asString();
|
|
847
852
|
break;
|
|
848
853
|
}
|
|
849
854
|
}
|
|
850
855
|
}
|
|
851
|
-
function
|
|
856
|
+
function hr(t) {
|
|
852
857
|
const r = /* @__PURE__ */ Object.create(null);
|
|
853
858
|
let e;
|
|
854
859
|
for (; (e = t.next()) !== null; ) {
|
|
@@ -857,230 +862,230 @@ function fr(t) {
|
|
|
857
862
|
}
|
|
858
863
|
return r;
|
|
859
864
|
}
|
|
860
|
-
const
|
|
861
|
-
function
|
|
865
|
+
const Ar = 703025676, Nr = 814454131, Sr = 972460562, Cr = 976255570, Rr = 1368629611, Dr = 1479280922, dr = 1533537016, wr = 1909301063, yr = 2274386296, Lr = 2603556958, Ur = 2885165957, Or = 3568439632;
|
|
866
|
+
function mr(t) {
|
|
862
867
|
const r = {};
|
|
863
868
|
return wt(r), r;
|
|
864
869
|
}
|
|
865
870
|
function wt(t) {
|
|
866
871
|
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.Versions = [], t;
|
|
867
872
|
}
|
|
868
|
-
function
|
|
869
|
-
const e = r ??
|
|
870
|
-
return wt(e),
|
|
873
|
+
function Pr(t, r) {
|
|
874
|
+
const e = r ?? mr();
|
|
875
|
+
return wt(e), gr(t, e), e;
|
|
871
876
|
}
|
|
872
|
-
function
|
|
877
|
+
function gr(t, r) {
|
|
873
878
|
let e;
|
|
874
879
|
for (; (e = t.next()) !== null; )
|
|
875
880
|
switch (e.fieldId) {
|
|
876
|
-
case
|
|
881
|
+
case Ar: {
|
|
877
882
|
if (e.isNull) throw new Error();
|
|
878
883
|
r.ResultTypeName = e.asString();
|
|
879
884
|
break;
|
|
880
885
|
}
|
|
881
|
-
case
|
|
886
|
+
case Nr: {
|
|
882
887
|
if (e.isNull) throw new Error();
|
|
883
888
|
r.FunctionName = e.asString();
|
|
884
889
|
break;
|
|
885
890
|
}
|
|
886
|
-
case
|
|
891
|
+
case Sr: {
|
|
887
892
|
if (e.isNull) throw new Error();
|
|
888
893
|
r.EnumerableItemTypeName = e.asString();
|
|
889
894
|
break;
|
|
890
895
|
}
|
|
891
|
-
case
|
|
896
|
+
case Cr: {
|
|
892
897
|
if (e.isNull) throw new Error();
|
|
893
898
|
r.FunctionId = e.asGuid();
|
|
894
899
|
break;
|
|
895
900
|
}
|
|
896
|
-
case
|
|
901
|
+
case Rr: {
|
|
897
902
|
if (e.isNull) throw new Error();
|
|
898
903
|
r.Description = e.asString();
|
|
899
904
|
break;
|
|
900
905
|
}
|
|
901
|
-
case
|
|
906
|
+
case Dr: {
|
|
902
907
|
if (e.isNull) throw new Error();
|
|
903
908
|
r.IsCancellable = e.asBool();
|
|
904
909
|
break;
|
|
905
910
|
}
|
|
906
|
-
case
|
|
911
|
+
case dr: {
|
|
907
912
|
if (e.isNull) throw new Error();
|
|
908
913
|
r.RequiresInstance = e.asBool();
|
|
909
914
|
break;
|
|
910
915
|
}
|
|
911
|
-
case
|
|
916
|
+
case wr: {
|
|
912
917
|
if (e.isNull) throw new Error();
|
|
913
|
-
r.Versions =
|
|
918
|
+
r.Versions = Fr(e.asArray());
|
|
914
919
|
break;
|
|
915
920
|
}
|
|
916
|
-
case
|
|
921
|
+
case yr: {
|
|
917
922
|
if (e.isNull) throw new Error();
|
|
918
923
|
r.LlmInlineResult = e.asBool();
|
|
919
924
|
break;
|
|
920
925
|
}
|
|
921
|
-
case
|
|
926
|
+
case Lr: {
|
|
922
927
|
if (e.isNull) throw new Error();
|
|
923
928
|
r.IsEnumerable = e.asBool();
|
|
924
929
|
break;
|
|
925
930
|
}
|
|
926
|
-
case
|
|
931
|
+
case Ur: {
|
|
927
932
|
if (e.isNull) throw new Error();
|
|
928
|
-
r.Parameters =
|
|
933
|
+
r.Parameters = br(e.asArray());
|
|
929
934
|
break;
|
|
930
935
|
}
|
|
931
|
-
case
|
|
936
|
+
case Or: {
|
|
932
937
|
if (e.isNull) throw new Error();
|
|
933
938
|
r.LlmCallOnlyOnce = e.asBool();
|
|
934
939
|
break;
|
|
935
940
|
}
|
|
936
941
|
}
|
|
937
942
|
}
|
|
938
|
-
function
|
|
943
|
+
function Fr(t) {
|
|
939
944
|
const r = [];
|
|
940
945
|
let e;
|
|
941
946
|
for (; (e = t.next()) !== null; )
|
|
942
947
|
r.push(e.asString());
|
|
943
948
|
return r;
|
|
944
949
|
}
|
|
945
|
-
function
|
|
950
|
+
function br(t) {
|
|
946
951
|
const r = [];
|
|
947
952
|
let e;
|
|
948
953
|
for (; (e = t.next()) !== null; )
|
|
949
|
-
r.push(
|
|
954
|
+
r.push(Kr(e.asObject()));
|
|
950
955
|
return r;
|
|
951
956
|
}
|
|
952
|
-
const
|
|
953
|
-
function
|
|
957
|
+
const Mr = 607861992, vr = 894485888, kr = 972460562, Gr = 1368629611, Br = 1883521406, Vr = 2603556958, xr = 3609695522, pr = 4075263697, Hr = 4257460908;
|
|
958
|
+
function Yr(t) {
|
|
954
959
|
const r = {};
|
|
955
|
-
return
|
|
960
|
+
return yt(r), r;
|
|
956
961
|
}
|
|
957
|
-
function
|
|
962
|
+
function yt(t) {
|
|
958
963
|
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;
|
|
959
964
|
}
|
|
960
|
-
function
|
|
961
|
-
const e = r ??
|
|
962
|
-
return
|
|
965
|
+
function Kr(t, r) {
|
|
966
|
+
const e = r ?? Yr();
|
|
967
|
+
return yt(e), $r(t, e), e;
|
|
963
968
|
}
|
|
964
|
-
function
|
|
969
|
+
function $r(t, r) {
|
|
965
970
|
let e;
|
|
966
971
|
for (; (e = t.next()) !== null; )
|
|
967
972
|
switch (e.fieldId) {
|
|
968
|
-
case
|
|
973
|
+
case Mr: {
|
|
969
974
|
if (e.isNull) throw new Error();
|
|
970
975
|
r.HasDefaultValue = e.asBool();
|
|
971
976
|
break;
|
|
972
977
|
}
|
|
973
|
-
case
|
|
978
|
+
case vr: {
|
|
974
979
|
if (e.isNull) throw new Error();
|
|
975
980
|
r.DefaultValueJson = e.asString();
|
|
976
981
|
break;
|
|
977
982
|
}
|
|
978
|
-
case
|
|
983
|
+
case kr: {
|
|
979
984
|
if (e.isNull) throw new Error();
|
|
980
985
|
r.EnumerableItemTypeName = e.asString();
|
|
981
986
|
break;
|
|
982
987
|
}
|
|
983
|
-
case
|
|
988
|
+
case Gr: {
|
|
984
989
|
if (e.isNull) throw new Error();
|
|
985
990
|
r.Description = e.asString();
|
|
986
991
|
break;
|
|
987
992
|
}
|
|
988
|
-
case
|
|
993
|
+
case Br: {
|
|
989
994
|
if (e.isNull) throw new Error();
|
|
990
995
|
r.DefaultValueData = e.asBinary();
|
|
991
996
|
break;
|
|
992
997
|
}
|
|
993
|
-
case
|
|
998
|
+
case Vr: {
|
|
994
999
|
if (e.isNull) throw new Error();
|
|
995
1000
|
r.IsEnumerable = e.asBool();
|
|
996
1001
|
break;
|
|
997
1002
|
}
|
|
998
|
-
case
|
|
1003
|
+
case xr: {
|
|
999
1004
|
if (e.isNull) throw new Error();
|
|
1000
1005
|
r.TypeName = e.asString();
|
|
1001
1006
|
break;
|
|
1002
1007
|
}
|
|
1003
|
-
case
|
|
1008
|
+
case pr: {
|
|
1004
1009
|
if (e.isNull) throw new Error();
|
|
1005
1010
|
r.ParameterName = e.asString();
|
|
1006
1011
|
break;
|
|
1007
1012
|
}
|
|
1008
|
-
case
|
|
1013
|
+
case Hr: {
|
|
1009
1014
|
if (e.isNull) throw new Error();
|
|
1010
1015
|
r.ParameterIndex = e.asInt32();
|
|
1011
1016
|
break;
|
|
1012
1017
|
}
|
|
1013
1018
|
}
|
|
1014
1019
|
}
|
|
1015
|
-
const
|
|
1016
|
-
function
|
|
1020
|
+
const Xr = 3167053791, jr = 3342364356, Wr = 3612929027;
|
|
1021
|
+
function Lt(t) {
|
|
1017
1022
|
const r = {};
|
|
1018
1023
|
return Ut(r), r;
|
|
1019
1024
|
}
|
|
1020
1025
|
function Ut(t) {
|
|
1021
1026
|
return t.Category = "", t.Type = ft.Face, t.FaceBlendshapes = [], t;
|
|
1022
1027
|
}
|
|
1023
|
-
function
|
|
1024
|
-
const e = r ??
|
|
1025
|
-
return Ut(e),
|
|
1028
|
+
function zr(t, r) {
|
|
1029
|
+
const e = r ?? Lt();
|
|
1030
|
+
return Ut(e), Jr(t, e), e;
|
|
1026
1031
|
}
|
|
1027
|
-
function
|
|
1032
|
+
function Jr(t, r) {
|
|
1028
1033
|
let e;
|
|
1029
1034
|
for (; (e = t.next()) !== null; )
|
|
1030
1035
|
switch (e.fieldId) {
|
|
1031
|
-
case
|
|
1036
|
+
case Xr: {
|
|
1032
1037
|
if (e.isNull) throw new Error();
|
|
1033
1038
|
r.Type = e.asInt32();
|
|
1034
1039
|
break;
|
|
1035
1040
|
}
|
|
1036
|
-
case
|
|
1041
|
+
case jr: {
|
|
1037
1042
|
if (e.isNull) throw new Error();
|
|
1038
|
-
r.FaceBlendshapes =
|
|
1043
|
+
r.FaceBlendshapes = Qr(e.asArray());
|
|
1039
1044
|
break;
|
|
1040
1045
|
}
|
|
1041
|
-
case
|
|
1046
|
+
case Wr: {
|
|
1042
1047
|
if (e.isNull) throw new Error();
|
|
1043
1048
|
r.Category = e.asString();
|
|
1044
1049
|
break;
|
|
1045
1050
|
}
|
|
1046
1051
|
}
|
|
1047
1052
|
}
|
|
1048
|
-
function
|
|
1053
|
+
function Qr(t) {
|
|
1049
1054
|
const r = [];
|
|
1050
1055
|
let e;
|
|
1051
1056
|
for (; (e = t.next()) !== null; )
|
|
1052
1057
|
r.push(e.asString());
|
|
1053
1058
|
return r;
|
|
1054
1059
|
}
|
|
1055
|
-
const
|
|
1056
|
-
function
|
|
1060
|
+
const qr = 1405462580, Zr = 2968276160;
|
|
1061
|
+
function ts(t) {
|
|
1057
1062
|
const r = {};
|
|
1058
1063
|
return Ot(r), r;
|
|
1059
1064
|
}
|
|
1060
1065
|
function Ot(t) {
|
|
1061
1066
|
return t.MimeType = "", t.Value = new Uint8Array(0), t;
|
|
1062
1067
|
}
|
|
1063
|
-
function
|
|
1064
|
-
const e = r ??
|
|
1065
|
-
return Ot(e),
|
|
1068
|
+
function es(t, r) {
|
|
1069
|
+
const e = r ?? ts();
|
|
1070
|
+
return Ot(e), rs(t, e), e;
|
|
1066
1071
|
}
|
|
1067
|
-
function
|
|
1072
|
+
function rs(t, r) {
|
|
1068
1073
|
let e;
|
|
1069
1074
|
for (; (e = t.next()) !== null; )
|
|
1070
1075
|
switch (e.fieldId) {
|
|
1071
|
-
case
|
|
1076
|
+
case qr: {
|
|
1072
1077
|
if (e.isNull) throw new Error();
|
|
1073
1078
|
r.Value = e.asBinary();
|
|
1074
1079
|
break;
|
|
1075
1080
|
}
|
|
1076
|
-
case
|
|
1081
|
+
case Zr: {
|
|
1077
1082
|
if (e.isNull) throw new Error();
|
|
1078
1083
|
r.MimeType = e.asString();
|
|
1079
1084
|
break;
|
|
1080
1085
|
}
|
|
1081
1086
|
}
|
|
1082
1087
|
}
|
|
1083
|
-
const
|
|
1088
|
+
const ss = 3612929027;
|
|
1084
1089
|
function mt(t) {
|
|
1085
1090
|
const r = {};
|
|
1086
1091
|
return Pt(r), r;
|
|
@@ -1088,58 +1093,58 @@ function mt(t) {
|
|
|
1088
1093
|
function Pt(t) {
|
|
1089
1094
|
return t.Category = "", t;
|
|
1090
1095
|
}
|
|
1091
|
-
function
|
|
1096
|
+
function ns(t, r) {
|
|
1092
1097
|
const e = r ?? mt();
|
|
1093
|
-
return Pt(e),
|
|
1098
|
+
return Pt(e), is(t, e), e;
|
|
1094
1099
|
}
|
|
1095
|
-
function
|
|
1100
|
+
function is(t, r) {
|
|
1096
1101
|
let e;
|
|
1097
1102
|
for (; (e = t.next()) !== null; )
|
|
1098
1103
|
switch (e.fieldId) {
|
|
1099
|
-
case
|
|
1104
|
+
case ss: {
|
|
1100
1105
|
if (e.isNull) throw new Error();
|
|
1101
1106
|
r.Category = e.asString();
|
|
1102
1107
|
break;
|
|
1103
1108
|
}
|
|
1104
1109
|
}
|
|
1105
1110
|
}
|
|
1106
|
-
const
|
|
1107
|
-
function
|
|
1111
|
+
const os = 2097188, as = 979822885, Es = 2374537704;
|
|
1112
|
+
function Is(t) {
|
|
1108
1113
|
const r = {};
|
|
1109
1114
|
return gt(r), r;
|
|
1110
1115
|
}
|
|
1111
1116
|
function gt(t) {
|
|
1112
1117
|
return t.StyleId = "", t.Style = /* @__PURE__ */ Object.create(null), t;
|
|
1113
1118
|
}
|
|
1114
|
-
function
|
|
1115
|
-
const e =
|
|
1116
|
-
return
|
|
1119
|
+
function _s(t, r) {
|
|
1120
|
+
const e = P.create(t);
|
|
1121
|
+
return ls(e, r);
|
|
1117
1122
|
}
|
|
1118
|
-
function
|
|
1119
|
-
const e = r ??
|
|
1120
|
-
return gt(e),
|
|
1123
|
+
function ls(t, r) {
|
|
1124
|
+
const e = r ?? Is();
|
|
1125
|
+
return gt(e), cs(t, e), e;
|
|
1121
1126
|
}
|
|
1122
|
-
function
|
|
1127
|
+
function cs(t, r) {
|
|
1123
1128
|
let e;
|
|
1124
1129
|
for (; (e = t.next()) !== null; )
|
|
1125
1130
|
switch (e.fieldId) {
|
|
1126
|
-
case
|
|
1131
|
+
case as: {
|
|
1127
1132
|
if (e.isNull) throw new Error();
|
|
1128
1133
|
r.StyleId = e.asString();
|
|
1129
1134
|
break;
|
|
1130
1135
|
}
|
|
1131
|
-
case
|
|
1136
|
+
case Es: {
|
|
1132
1137
|
if (e.isNull) throw new Error();
|
|
1133
|
-
r.Style =
|
|
1138
|
+
r.Style = us(e.asDictionary());
|
|
1134
1139
|
break;
|
|
1135
1140
|
}
|
|
1136
1141
|
}
|
|
1137
1142
|
}
|
|
1138
|
-
async function
|
|
1139
|
-
const e = await
|
|
1140
|
-
return
|
|
1143
|
+
async function fs(t, r) {
|
|
1144
|
+
const e = await Y(t, os);
|
|
1145
|
+
return _s(e, r);
|
|
1141
1146
|
}
|
|
1142
|
-
function
|
|
1147
|
+
function us(t) {
|
|
1143
1148
|
const r = /* @__PURE__ */ Object.create(null);
|
|
1144
1149
|
let e;
|
|
1145
1150
|
for (; (e = t.next()) !== null; ) {
|
|
@@ -1148,73 +1153,73 @@ function ls(t) {
|
|
|
1148
1153
|
}
|
|
1149
1154
|
return r;
|
|
1150
1155
|
}
|
|
1151
|
-
const
|
|
1152
|
-
function
|
|
1156
|
+
const Ts = 2097192, hs = 2136687806;
|
|
1157
|
+
function As(t) {
|
|
1153
1158
|
const r = {};
|
|
1154
1159
|
return Ft(r), r;
|
|
1155
1160
|
}
|
|
1156
1161
|
function Ft(t) {
|
|
1157
1162
|
return t.Styles = [], t;
|
|
1158
1163
|
}
|
|
1159
|
-
function
|
|
1160
|
-
const e =
|
|
1161
|
-
return
|
|
1164
|
+
function Ns(t, r) {
|
|
1165
|
+
const e = P.create(t);
|
|
1166
|
+
return Ss(e, r);
|
|
1162
1167
|
}
|
|
1163
|
-
function
|
|
1164
|
-
const e = r ??
|
|
1165
|
-
return Ft(e),
|
|
1168
|
+
function Ss(t, r) {
|
|
1169
|
+
const e = r ?? As();
|
|
1170
|
+
return Ft(e), Cs(t, e), e;
|
|
1166
1171
|
}
|
|
1167
|
-
function
|
|
1172
|
+
function Cs(t, r) {
|
|
1168
1173
|
let e;
|
|
1169
1174
|
for (; (e = t.next()) !== null; )
|
|
1170
1175
|
switch (e.fieldId) {
|
|
1171
|
-
case
|
|
1176
|
+
case hs: {
|
|
1172
1177
|
if (e.isNull) throw new Error();
|
|
1173
|
-
r.Styles =
|
|
1178
|
+
r.Styles = Ds(e.asArray());
|
|
1174
1179
|
break;
|
|
1175
1180
|
}
|
|
1176
1181
|
}
|
|
1177
1182
|
}
|
|
1178
|
-
async function
|
|
1179
|
-
const e = await
|
|
1180
|
-
return
|
|
1183
|
+
async function Rs(t, r) {
|
|
1184
|
+
const e = await Y(t, Ts);
|
|
1185
|
+
return Ns(e, r);
|
|
1181
1186
|
}
|
|
1182
|
-
function
|
|
1187
|
+
function Ds(t) {
|
|
1183
1188
|
const r = [];
|
|
1184
1189
|
let e;
|
|
1185
1190
|
for (; (e = t.next()) !== null; )
|
|
1186
|
-
r.push(
|
|
1191
|
+
r.push(Ls(e.asObject()));
|
|
1187
1192
|
return r;
|
|
1188
1193
|
}
|
|
1189
|
-
const
|
|
1190
|
-
function
|
|
1194
|
+
const ds = 979822885, ws = 2374537704;
|
|
1195
|
+
function ys(t) {
|
|
1191
1196
|
const r = {};
|
|
1192
1197
|
return bt(r), r;
|
|
1193
1198
|
}
|
|
1194
1199
|
function bt(t) {
|
|
1195
1200
|
return t.StyleId = "", t.Style = /* @__PURE__ */ Object.create(null), t;
|
|
1196
1201
|
}
|
|
1197
|
-
function
|
|
1198
|
-
const e = r ??
|
|
1199
|
-
return bt(e),
|
|
1202
|
+
function Ls(t, r) {
|
|
1203
|
+
const e = r ?? ys();
|
|
1204
|
+
return bt(e), Us(t, e), e;
|
|
1200
1205
|
}
|
|
1201
|
-
function
|
|
1206
|
+
function Us(t, r) {
|
|
1202
1207
|
let e;
|
|
1203
1208
|
for (; (e = t.next()) !== null; )
|
|
1204
1209
|
switch (e.fieldId) {
|
|
1205
|
-
case
|
|
1210
|
+
case ds: {
|
|
1206
1211
|
if (e.isNull) throw new Error();
|
|
1207
1212
|
r.StyleId = e.asString();
|
|
1208
1213
|
break;
|
|
1209
1214
|
}
|
|
1210
|
-
case
|
|
1215
|
+
case ws: {
|
|
1211
1216
|
if (e.isNull) throw new Error();
|
|
1212
|
-
r.Style =
|
|
1217
|
+
r.Style = Os(e.asDictionary());
|
|
1213
1218
|
break;
|
|
1214
1219
|
}
|
|
1215
1220
|
}
|
|
1216
1221
|
}
|
|
1217
|
-
function
|
|
1222
|
+
function Os(t) {
|
|
1218
1223
|
const r = /* @__PURE__ */ Object.create(null);
|
|
1219
1224
|
let e;
|
|
1220
1225
|
for (; (e = t.next()) !== null; ) {
|
|
@@ -1223,90 +1228,90 @@ function Ls(t) {
|
|
|
1223
1228
|
}
|
|
1224
1229
|
return r;
|
|
1225
1230
|
}
|
|
1226
|
-
const
|
|
1227
|
-
function
|
|
1231
|
+
const ms = 2097193, Ps = 1415642792;
|
|
1232
|
+
function gs(t) {
|
|
1228
1233
|
const r = {};
|
|
1229
1234
|
return Mt(r), r;
|
|
1230
1235
|
}
|
|
1231
1236
|
function Mt(t) {
|
|
1232
1237
|
return t.StyleIds = [], t;
|
|
1233
1238
|
}
|
|
1234
|
-
function
|
|
1235
|
-
const e =
|
|
1236
|
-
return
|
|
1239
|
+
function Fs(t, r) {
|
|
1240
|
+
const e = P.create(t);
|
|
1241
|
+
return bs(e, r);
|
|
1237
1242
|
}
|
|
1238
|
-
function
|
|
1239
|
-
const e = r ??
|
|
1240
|
-
return Mt(e),
|
|
1243
|
+
function bs(t, r) {
|
|
1244
|
+
const e = r ?? gs();
|
|
1245
|
+
return Mt(e), Ms(t, e), e;
|
|
1241
1246
|
}
|
|
1242
|
-
function
|
|
1247
|
+
function Ms(t, r) {
|
|
1243
1248
|
let e;
|
|
1244
1249
|
for (; (e = t.next()) !== null; )
|
|
1245
1250
|
switch (e.fieldId) {
|
|
1246
|
-
case
|
|
1251
|
+
case Ps: {
|
|
1247
1252
|
if (e.isNull) throw new Error();
|
|
1248
|
-
r.StyleIds =
|
|
1253
|
+
r.StyleIds = ks(e.asArray());
|
|
1249
1254
|
break;
|
|
1250
1255
|
}
|
|
1251
1256
|
}
|
|
1252
1257
|
}
|
|
1253
|
-
async function
|
|
1254
|
-
const e = await
|
|
1255
|
-
return
|
|
1258
|
+
async function vs(t, r) {
|
|
1259
|
+
const e = await Y(t, ms);
|
|
1260
|
+
return Fs(e, r);
|
|
1256
1261
|
}
|
|
1257
|
-
function
|
|
1262
|
+
function ks(t) {
|
|
1258
1263
|
const r = [];
|
|
1259
1264
|
let e;
|
|
1260
1265
|
for (; (e = t.next()) !== null; )
|
|
1261
1266
|
r.push(e.asString());
|
|
1262
1267
|
return r;
|
|
1263
1268
|
}
|
|
1264
|
-
const
|
|
1265
|
-
function
|
|
1269
|
+
const Gs = 2097190, Bs = 425183262, Vs = 653781469;
|
|
1270
|
+
function xs(t) {
|
|
1266
1271
|
const r = {};
|
|
1267
1272
|
return vt(r), r;
|
|
1268
1273
|
}
|
|
1269
1274
|
function vt(t) {
|
|
1270
1275
|
return t.Json = "", t.Payloads = /* @__PURE__ */ Object.create(null), t;
|
|
1271
1276
|
}
|
|
1272
|
-
function
|
|
1273
|
-
const e =
|
|
1274
|
-
return
|
|
1277
|
+
function ps(t, r) {
|
|
1278
|
+
const e = P.create(t);
|
|
1279
|
+
return Hs(e, r);
|
|
1275
1280
|
}
|
|
1276
|
-
function
|
|
1277
|
-
const e = r ??
|
|
1278
|
-
return vt(e),
|
|
1281
|
+
function Hs(t, r) {
|
|
1282
|
+
const e = r ?? xs();
|
|
1283
|
+
return vt(e), Ys(t, e), e;
|
|
1279
1284
|
}
|
|
1280
|
-
function
|
|
1285
|
+
function Ys(t, r) {
|
|
1281
1286
|
let e;
|
|
1282
1287
|
for (; (e = t.next()) !== null; )
|
|
1283
1288
|
switch (e.fieldId) {
|
|
1284
|
-
case
|
|
1289
|
+
case Bs: {
|
|
1285
1290
|
if (e.isNull) throw new Error();
|
|
1286
1291
|
r.Json = e.asString();
|
|
1287
1292
|
break;
|
|
1288
1293
|
}
|
|
1289
|
-
case
|
|
1294
|
+
case Vs: {
|
|
1290
1295
|
if (e.isNull) throw new Error();
|
|
1291
|
-
r.Payloads =
|
|
1296
|
+
r.Payloads = $s(e.asDictionary());
|
|
1292
1297
|
break;
|
|
1293
1298
|
}
|
|
1294
1299
|
}
|
|
1295
1300
|
}
|
|
1296
|
-
async function
|
|
1297
|
-
const e = await
|
|
1298
|
-
return
|
|
1301
|
+
async function Ks(t, r) {
|
|
1302
|
+
const e = await Y(t, Gs);
|
|
1303
|
+
return ps(e, r);
|
|
1299
1304
|
}
|
|
1300
|
-
function
|
|
1305
|
+
function $s(t) {
|
|
1301
1306
|
const r = /* @__PURE__ */ Object.create(null);
|
|
1302
1307
|
let e;
|
|
1303
1308
|
for (; (e = t.next()) !== null; ) {
|
|
1304
1309
|
const s = e.key.asString();
|
|
1305
|
-
r[s] =
|
|
1310
|
+
r[s] = es(e.value.asObject());
|
|
1306
1311
|
}
|
|
1307
1312
|
return r;
|
|
1308
1313
|
}
|
|
1309
|
-
const
|
|
1314
|
+
const Xs = 161083277, js = 164808083, Ws = 1368629611, zs = 2514959030, Js = 2745379226, Qs = 2950031986, qs = 3282782683, Zs = 3284746250, tn = 4065070594;
|
|
1310
1315
|
function kt(t) {
|
|
1311
1316
|
const r = {};
|
|
1312
1317
|
return Gt(r), r;
|
|
@@ -1314,30 +1319,30 @@ function kt(t) {
|
|
|
1314
1319
|
function Gt(t) {
|
|
1315
1320
|
return t.StreamId = "", t.Description = "", t.SourceType = "", t.Codec = ht.H264, t.CodecDetails = "", t.Width = 0, t.Height = 0, t.Framerate = 30, t.CorrelationId = void 0, t;
|
|
1316
1321
|
}
|
|
1317
|
-
function
|
|
1322
|
+
function en(t, r) {
|
|
1318
1323
|
const e = r ?? kt();
|
|
1319
|
-
return Gt(e),
|
|
1324
|
+
return Gt(e), rn(t, e), e;
|
|
1320
1325
|
}
|
|
1321
|
-
function
|
|
1326
|
+
function rn(t, r) {
|
|
1322
1327
|
let e;
|
|
1323
1328
|
for (; (e = t.next()) !== null; )
|
|
1324
1329
|
switch (e.fieldId) {
|
|
1325
|
-
case
|
|
1330
|
+
case Xs: {
|
|
1326
1331
|
if (e.isNull) throw new Error();
|
|
1327
1332
|
r.StreamId = e.asString();
|
|
1328
1333
|
break;
|
|
1329
1334
|
}
|
|
1330
|
-
case
|
|
1335
|
+
case js: {
|
|
1331
1336
|
if (e.isNull) throw new Error();
|
|
1332
1337
|
r.Framerate = e.asFloat64();
|
|
1333
1338
|
break;
|
|
1334
1339
|
}
|
|
1335
|
-
case
|
|
1340
|
+
case Ws: {
|
|
1336
1341
|
if (e.isNull) throw new Error();
|
|
1337
1342
|
r.Description = e.asString();
|
|
1338
1343
|
break;
|
|
1339
1344
|
}
|
|
1340
|
-
case
|
|
1345
|
+
case zs: {
|
|
1341
1346
|
if (e.isNull) {
|
|
1342
1347
|
r.CorrelationId = void 0;
|
|
1343
1348
|
break;
|
|
@@ -1345,373 +1350,373 @@ function Zs(t, r) {
|
|
|
1345
1350
|
r.CorrelationId = e.asString();
|
|
1346
1351
|
break;
|
|
1347
1352
|
}
|
|
1348
|
-
case
|
|
1353
|
+
case Js: {
|
|
1349
1354
|
if (e.isNull) throw new Error();
|
|
1350
1355
|
r.CodecDetails = e.asString();
|
|
1351
1356
|
break;
|
|
1352
1357
|
}
|
|
1353
|
-
case
|
|
1358
|
+
case Qs: {
|
|
1354
1359
|
if (e.isNull) throw new Error();
|
|
1355
1360
|
r.Height = e.asInt32();
|
|
1356
1361
|
break;
|
|
1357
1362
|
}
|
|
1358
|
-
case
|
|
1363
|
+
case qs: {
|
|
1359
1364
|
if (e.isNull) throw new Error();
|
|
1360
1365
|
r.SourceType = e.asString();
|
|
1361
1366
|
break;
|
|
1362
1367
|
}
|
|
1363
|
-
case
|
|
1368
|
+
case Zs: {
|
|
1364
1369
|
if (e.isNull) throw new Error();
|
|
1365
1370
|
r.Codec = e.asInt32();
|
|
1366
1371
|
break;
|
|
1367
1372
|
}
|
|
1368
|
-
case
|
|
1373
|
+
case tn: {
|
|
1369
1374
|
if (e.isNull) throw new Error();
|
|
1370
1375
|
r.Width = e.asInt32();
|
|
1371
1376
|
break;
|
|
1372
1377
|
}
|
|
1373
1378
|
}
|
|
1374
1379
|
}
|
|
1375
|
-
const
|
|
1376
|
-
function
|
|
1380
|
+
const sn = 65539, nn = 693643444, on = 976837618, an = 1144553441, En = 1497620243, In = 1559330978, _n = 1976546434, ln = 2271236852, cn = 2277643855, fn = 2469008121, un = 3042922213, Tn = 3064612128, hn = 3219210453, An = 3504054055, Nn = 3678477544, Sn = 3696445035, Cn = 3707543140, Rn = 3712281496, Dn = 3895362455, dn = 3897397815, wn = 3914217035, yn = 4225107827;
|
|
1381
|
+
function Ln(t) {
|
|
1377
1382
|
const r = {};
|
|
1378
1383
|
return Bt(r), r;
|
|
1379
1384
|
}
|
|
1380
1385
|
function Bt(t) {
|
|
1381
1386
|
return t.Clients = /* @__PURE__ */ Object.create(null), t.Functions = /* @__PURE__ */ Object.create(null), t.UIStreams = /* @__PURE__ */ Object.create(null), t.AudioStreams = /* @__PURE__ */ Object.create(null), t.VideoStreams = /* @__PURE__ */ Object.create(null), t.TrackingStreams = /* @__PURE__ */ Object.create(null), t.SpaceId = "", t.ChannelId = "", t.ServerSessionId = "", t.SessionHash = "", t.ChannelUrl = "", t.SessionChannelUrl = "", t.FirstUserId = "", t.PrimaryUserId = "", t.OrganisationName = "", t.SpaceName = "", t.ChannelName = "", t.ServerRunType = Nt.Local, t.AppSourceType = St.Bundle, t.PublicAccess = !1, t.DebugMode = !1, t;
|
|
1382
1387
|
}
|
|
1383
|
-
function
|
|
1384
|
-
const e =
|
|
1385
|
-
return
|
|
1388
|
+
function Un(t, r) {
|
|
1389
|
+
const e = P.create(t);
|
|
1390
|
+
return On(e, r);
|
|
1386
1391
|
}
|
|
1387
|
-
function
|
|
1388
|
-
const e = r ??
|
|
1389
|
-
return Bt(e),
|
|
1392
|
+
function On(t, r) {
|
|
1393
|
+
const e = r ?? Ln();
|
|
1394
|
+
return Bt(e), mn(t, e), e;
|
|
1390
1395
|
}
|
|
1391
|
-
function
|
|
1396
|
+
function mn(t, r) {
|
|
1392
1397
|
let e;
|
|
1393
1398
|
for (; (e = t.next()) !== null; )
|
|
1394
1399
|
switch (e.fieldId) {
|
|
1395
|
-
case
|
|
1400
|
+
case nn: {
|
|
1396
1401
|
if (e.isNull) throw new Error();
|
|
1397
1402
|
r.FirstUserId = e.asString();
|
|
1398
1403
|
break;
|
|
1399
1404
|
}
|
|
1400
|
-
case
|
|
1405
|
+
case on: {
|
|
1401
1406
|
if (e.isNull) throw new Error();
|
|
1402
1407
|
r.SessionHash = e.asString();
|
|
1403
1408
|
break;
|
|
1404
1409
|
}
|
|
1405
|
-
case
|
|
1410
|
+
case an: {
|
|
1406
1411
|
if (e.isNull) throw new Error();
|
|
1407
|
-
r.Clients =
|
|
1412
|
+
r.Clients = gn(e.asDictionary());
|
|
1408
1413
|
break;
|
|
1409
1414
|
}
|
|
1410
|
-
case
|
|
1415
|
+
case En: {
|
|
1411
1416
|
if (e.isNull) throw new Error();
|
|
1412
|
-
r.TrackingStreams =
|
|
1417
|
+
r.TrackingStreams = Fn(e.asDictionary());
|
|
1413
1418
|
break;
|
|
1414
1419
|
}
|
|
1415
|
-
case
|
|
1420
|
+
case In: {
|
|
1416
1421
|
if (e.isNull) throw new Error();
|
|
1417
1422
|
r.ChannelId = e.asString();
|
|
1418
1423
|
break;
|
|
1419
1424
|
}
|
|
1420
|
-
case
|
|
1425
|
+
case _n: {
|
|
1421
1426
|
if (e.isNull) throw new Error();
|
|
1422
1427
|
r.AppSourceType = e.asInt32();
|
|
1423
1428
|
break;
|
|
1424
1429
|
}
|
|
1425
|
-
case
|
|
1430
|
+
case ln: {
|
|
1426
1431
|
if (e.isNull) throw new Error();
|
|
1427
1432
|
r.SessionChannelUrl = e.asString();
|
|
1428
1433
|
break;
|
|
1429
1434
|
}
|
|
1430
|
-
case
|
|
1435
|
+
case cn: {
|
|
1431
1436
|
if (e.isNull) throw new Error();
|
|
1432
1437
|
r.ChannelUrl = e.asString();
|
|
1433
1438
|
break;
|
|
1434
1439
|
}
|
|
1435
|
-
case
|
|
1440
|
+
case fn: {
|
|
1436
1441
|
if (e.isNull) throw new Error();
|
|
1437
1442
|
r.ChannelName = e.asString();
|
|
1438
1443
|
break;
|
|
1439
1444
|
}
|
|
1440
|
-
case
|
|
1445
|
+
case un: {
|
|
1441
1446
|
if (e.isNull) throw new Error();
|
|
1442
1447
|
r.PublicAccess = e.asBool();
|
|
1443
1448
|
break;
|
|
1444
1449
|
}
|
|
1445
|
-
case
|
|
1450
|
+
case Tn: {
|
|
1446
1451
|
if (e.isNull) throw new Error();
|
|
1447
1452
|
r.ServerRunType = e.asInt32();
|
|
1448
1453
|
break;
|
|
1449
1454
|
}
|
|
1450
|
-
case
|
|
1455
|
+
case hn: {
|
|
1451
1456
|
if (e.isNull) throw new Error();
|
|
1452
1457
|
r.OrganisationName = e.asString();
|
|
1453
1458
|
break;
|
|
1454
1459
|
}
|
|
1455
|
-
case
|
|
1460
|
+
case An: {
|
|
1456
1461
|
if (e.isNull) throw new Error();
|
|
1457
1462
|
r.DebugMode = e.asBool();
|
|
1458
1463
|
break;
|
|
1459
1464
|
}
|
|
1460
|
-
case
|
|
1465
|
+
case Nn: {
|
|
1461
1466
|
if (e.isNull) throw new Error();
|
|
1462
|
-
r.Functions =
|
|
1467
|
+
r.Functions = bn(e.asDictionary());
|
|
1463
1468
|
break;
|
|
1464
1469
|
}
|
|
1465
|
-
case
|
|
1470
|
+
case Sn: {
|
|
1466
1471
|
if (e.isNull) throw new Error();
|
|
1467
|
-
r.UIStreams =
|
|
1472
|
+
r.UIStreams = Mn(e.asDictionary());
|
|
1468
1473
|
break;
|
|
1469
1474
|
}
|
|
1470
|
-
case
|
|
1475
|
+
case Cn: {
|
|
1471
1476
|
if (e.isNull) throw new Error();
|
|
1472
1477
|
r.SpaceId = e.asString();
|
|
1473
1478
|
break;
|
|
1474
1479
|
}
|
|
1475
|
-
case
|
|
1480
|
+
case Rn: {
|
|
1476
1481
|
if (e.isNull) throw new Error();
|
|
1477
1482
|
r.PrimaryUserId = e.asString();
|
|
1478
1483
|
break;
|
|
1479
1484
|
}
|
|
1480
|
-
case
|
|
1485
|
+
case Dn: {
|
|
1481
1486
|
if (e.isNull) throw new Error();
|
|
1482
|
-
r.AudioStreams =
|
|
1487
|
+
r.AudioStreams = vn(e.asDictionary());
|
|
1483
1488
|
break;
|
|
1484
1489
|
}
|
|
1485
|
-
case
|
|
1490
|
+
case dn: {
|
|
1486
1491
|
if (e.isNull) throw new Error();
|
|
1487
|
-
r.VideoStreams =
|
|
1492
|
+
r.VideoStreams = kn(e.asDictionary());
|
|
1488
1493
|
break;
|
|
1489
1494
|
}
|
|
1490
|
-
case
|
|
1495
|
+
case wn: {
|
|
1491
1496
|
if (e.isNull) throw new Error();
|
|
1492
1497
|
r.ServerSessionId = e.asString();
|
|
1493
1498
|
break;
|
|
1494
1499
|
}
|
|
1495
|
-
case
|
|
1500
|
+
case yn: {
|
|
1496
1501
|
if (e.isNull) throw new Error();
|
|
1497
1502
|
r.SpaceName = e.asString();
|
|
1498
1503
|
break;
|
|
1499
1504
|
}
|
|
1500
1505
|
}
|
|
1501
1506
|
}
|
|
1502
|
-
async function
|
|
1503
|
-
const e = await
|
|
1504
|
-
return
|
|
1507
|
+
async function Pn(t, r) {
|
|
1508
|
+
const e = await Y(t, sn);
|
|
1509
|
+
return Un(e, r);
|
|
1505
1510
|
}
|
|
1506
|
-
function
|
|
1511
|
+
function gn(t) {
|
|
1507
1512
|
const r = /* @__PURE__ */ Object.create(null);
|
|
1508
1513
|
let e;
|
|
1509
1514
|
for (; (e = t.next()) !== null; ) {
|
|
1510
1515
|
const s = e.key.asInt32();
|
|
1511
|
-
r[s] =
|
|
1516
|
+
r[s] = ur(e.value.asObject());
|
|
1512
1517
|
}
|
|
1513
1518
|
return r;
|
|
1514
1519
|
}
|
|
1515
|
-
function
|
|
1520
|
+
function Fn(t) {
|
|
1516
1521
|
const r = /* @__PURE__ */ Object.create(null);
|
|
1517
1522
|
let e;
|
|
1518
1523
|
for (; (e = t.next()) !== null; ) {
|
|
1519
1524
|
const s = e.key.asString();
|
|
1520
|
-
r[s] =
|
|
1525
|
+
r[s] = _i(e.value.asObject());
|
|
1521
1526
|
}
|
|
1522
1527
|
return r;
|
|
1523
1528
|
}
|
|
1524
|
-
function
|
|
1529
|
+
function bn(t) {
|
|
1525
1530
|
const r = /* @__PURE__ */ Object.create(null);
|
|
1526
1531
|
let e;
|
|
1527
1532
|
for (; (e = t.next()) !== null; ) {
|
|
1528
1533
|
const s = e.key.asInt32();
|
|
1529
|
-
r[s] =
|
|
1534
|
+
r[s] = Gn(e.value.asArray());
|
|
1530
1535
|
}
|
|
1531
1536
|
return r;
|
|
1532
1537
|
}
|
|
1533
|
-
function
|
|
1538
|
+
function Mn(t) {
|
|
1534
1539
|
const r = /* @__PURE__ */ Object.create(null);
|
|
1535
1540
|
let e;
|
|
1536
1541
|
for (; (e = t.next()) !== null; ) {
|
|
1537
1542
|
const s = e.key.asString();
|
|
1538
|
-
r[s] =
|
|
1543
|
+
r[s] = Yn(e.value.asObject());
|
|
1539
1544
|
}
|
|
1540
1545
|
return r;
|
|
1541
1546
|
}
|
|
1542
|
-
function
|
|
1547
|
+
function vn(t) {
|
|
1543
1548
|
const r = /* @__PURE__ */ Object.create(null);
|
|
1544
1549
|
let e;
|
|
1545
1550
|
for (; (e = t.next()) !== null; ) {
|
|
1546
1551
|
const s = e.key.asString();
|
|
1547
|
-
r[s] =
|
|
1552
|
+
r[s] = Jn(e.value.asObject());
|
|
1548
1553
|
}
|
|
1549
1554
|
return r;
|
|
1550
1555
|
}
|
|
1551
|
-
function
|
|
1556
|
+
function kn(t) {
|
|
1552
1557
|
const r = /* @__PURE__ */ Object.create(null);
|
|
1553
1558
|
let e;
|
|
1554
1559
|
for (; (e = t.next()) !== null; ) {
|
|
1555
1560
|
const s = e.key.asString();
|
|
1556
|
-
r[s] =
|
|
1561
|
+
r[s] = si(e.value.asObject());
|
|
1557
1562
|
}
|
|
1558
1563
|
return r;
|
|
1559
1564
|
}
|
|
1560
|
-
function
|
|
1565
|
+
function Gn(t) {
|
|
1561
1566
|
const r = [];
|
|
1562
1567
|
let e;
|
|
1563
1568
|
for (; (e = t.next()) !== null; )
|
|
1564
|
-
r.push(
|
|
1569
|
+
r.push(Pr(e.asObject()));
|
|
1565
1570
|
return r;
|
|
1566
1571
|
}
|
|
1567
|
-
const
|
|
1568
|
-
function
|
|
1572
|
+
const Bn = 161083277, Vn = 325678206, xn = 3469892363, pn = 3645544153;
|
|
1573
|
+
function Hn(t) {
|
|
1569
1574
|
const r = {};
|
|
1570
1575
|
return Vt(r), r;
|
|
1571
1576
|
}
|
|
1572
1577
|
function Vt(t) {
|
|
1573
1578
|
return t.StreamId = "", t.ClientSessionId = 0, t.TrackId = 0, t.Info = mt(), t;
|
|
1574
1579
|
}
|
|
1575
|
-
function
|
|
1576
|
-
const e = r ??
|
|
1577
|
-
return Vt(e),
|
|
1580
|
+
function Yn(t, r) {
|
|
1581
|
+
const e = r ?? Hn();
|
|
1582
|
+
return Vt(e), Kn(t, e), e;
|
|
1578
1583
|
}
|
|
1579
|
-
function
|
|
1584
|
+
function Kn(t, r) {
|
|
1580
1585
|
let e;
|
|
1581
1586
|
for (; (e = t.next()) !== null; )
|
|
1582
1587
|
switch (e.fieldId) {
|
|
1583
|
-
case
|
|
1588
|
+
case Bn: {
|
|
1584
1589
|
if (e.isNull) throw new Error();
|
|
1585
1590
|
r.StreamId = e.asString();
|
|
1586
1591
|
break;
|
|
1587
1592
|
}
|
|
1588
|
-
case
|
|
1593
|
+
case Vn: {
|
|
1589
1594
|
if (e.isNull) throw new Error();
|
|
1590
1595
|
r.ClientSessionId = e.asInt32();
|
|
1591
1596
|
break;
|
|
1592
1597
|
}
|
|
1593
|
-
case
|
|
1598
|
+
case xn: {
|
|
1594
1599
|
if (e.isNull) throw new Error();
|
|
1595
1600
|
r.TrackId = e.asInt32();
|
|
1596
1601
|
break;
|
|
1597
1602
|
}
|
|
1598
|
-
case
|
|
1603
|
+
case pn: {
|
|
1599
1604
|
if (e.isNull) throw new Error();
|
|
1600
|
-
r.Info =
|
|
1605
|
+
r.Info = ns(e.asObject());
|
|
1601
1606
|
break;
|
|
1602
1607
|
}
|
|
1603
1608
|
}
|
|
1604
1609
|
}
|
|
1605
|
-
const
|
|
1606
|
-
function
|
|
1610
|
+
const $n = 161083277, Xn = 325678206, jn = 3469892363, Wn = 3645544153;
|
|
1611
|
+
function zn(t) {
|
|
1607
1612
|
const r = {};
|
|
1608
1613
|
return xt(r), r;
|
|
1609
1614
|
}
|
|
1610
1615
|
function xt(t) {
|
|
1611
1616
|
return t.StreamId = "", t.ClientSessionId = 0, t.TrackId = 0, t.Info = Ct(), t;
|
|
1612
1617
|
}
|
|
1613
|
-
function
|
|
1614
|
-
const e = r ??
|
|
1615
|
-
return xt(e),
|
|
1618
|
+
function Jn(t, r) {
|
|
1619
|
+
const e = r ?? zn();
|
|
1620
|
+
return xt(e), Qn(t, e), e;
|
|
1616
1621
|
}
|
|
1617
|
-
function
|
|
1622
|
+
function Qn(t, r) {
|
|
1618
1623
|
let e;
|
|
1619
1624
|
for (; (e = t.next()) !== null; )
|
|
1620
1625
|
switch (e.fieldId) {
|
|
1621
|
-
case
|
|
1626
|
+
case $n: {
|
|
1622
1627
|
if (e.isNull) throw new Error();
|
|
1623
1628
|
r.StreamId = e.asString();
|
|
1624
1629
|
break;
|
|
1625
1630
|
}
|
|
1626
|
-
case
|
|
1631
|
+
case Xn: {
|
|
1627
1632
|
if (e.isNull) throw new Error();
|
|
1628
1633
|
r.ClientSessionId = e.asInt32();
|
|
1629
1634
|
break;
|
|
1630
1635
|
}
|
|
1631
|
-
case
|
|
1636
|
+
case jn: {
|
|
1632
1637
|
if (e.isNull) throw new Error();
|
|
1633
1638
|
r.TrackId = e.asInt32();
|
|
1634
1639
|
break;
|
|
1635
1640
|
}
|
|
1636
|
-
case
|
|
1641
|
+
case Wn: {
|
|
1637
1642
|
if (e.isNull) throw new Error();
|
|
1638
|
-
r.Info =
|
|
1643
|
+
r.Info = Re(e.asObject());
|
|
1639
1644
|
break;
|
|
1640
1645
|
}
|
|
1641
1646
|
}
|
|
1642
1647
|
}
|
|
1643
|
-
const
|
|
1644
|
-
function
|
|
1648
|
+
const qn = 161083277, Zn = 325678206, ti = 3469892363, ei = 3645544153;
|
|
1649
|
+
function ri(t) {
|
|
1645
1650
|
const r = {};
|
|
1646
|
-
return
|
|
1651
|
+
return pt(r), r;
|
|
1647
1652
|
}
|
|
1648
|
-
function
|
|
1653
|
+
function pt(t) {
|
|
1649
1654
|
return t.StreamId = "", t.ClientSessionId = 0, t.TrackId = 0, t.Info = kt(), t;
|
|
1650
1655
|
}
|
|
1651
|
-
function
|
|
1652
|
-
const e = r ??
|
|
1653
|
-
return
|
|
1656
|
+
function si(t, r) {
|
|
1657
|
+
const e = r ?? ri();
|
|
1658
|
+
return pt(e), ni(t, e), e;
|
|
1654
1659
|
}
|
|
1655
|
-
function
|
|
1660
|
+
function ni(t, r) {
|
|
1656
1661
|
let e;
|
|
1657
1662
|
for (; (e = t.next()) !== null; )
|
|
1658
1663
|
switch (e.fieldId) {
|
|
1659
|
-
case
|
|
1664
|
+
case qn: {
|
|
1660
1665
|
if (e.isNull) throw new Error();
|
|
1661
1666
|
r.StreamId = e.asString();
|
|
1662
1667
|
break;
|
|
1663
1668
|
}
|
|
1664
|
-
case
|
|
1669
|
+
case Zn: {
|
|
1665
1670
|
if (e.isNull) throw new Error();
|
|
1666
1671
|
r.ClientSessionId = e.asInt32();
|
|
1667
1672
|
break;
|
|
1668
1673
|
}
|
|
1669
|
-
case
|
|
1674
|
+
case ti: {
|
|
1670
1675
|
if (e.isNull) throw new Error();
|
|
1671
1676
|
r.TrackId = e.asInt32();
|
|
1672
1677
|
break;
|
|
1673
1678
|
}
|
|
1674
|
-
case
|
|
1679
|
+
case ei: {
|
|
1675
1680
|
if (e.isNull) throw new Error();
|
|
1676
|
-
r.Info =
|
|
1681
|
+
r.Info = en(e.asObject());
|
|
1677
1682
|
break;
|
|
1678
1683
|
}
|
|
1679
1684
|
}
|
|
1680
1685
|
}
|
|
1681
|
-
const
|
|
1682
|
-
function
|
|
1686
|
+
const ii = 161083277, oi = 325678206, ai = 3469892363, Ei = 3645544153;
|
|
1687
|
+
function Ii(t) {
|
|
1683
1688
|
const r = {};
|
|
1684
|
-
return
|
|
1689
|
+
return Ht(r), r;
|
|
1685
1690
|
}
|
|
1686
|
-
function
|
|
1687
|
-
return t.StreamId = "", t.ClientSessionId = 0, t.TrackId = 0, t.Info =
|
|
1691
|
+
function Ht(t) {
|
|
1692
|
+
return t.StreamId = "", t.ClientSessionId = 0, t.TrackId = 0, t.Info = Lt(), t;
|
|
1688
1693
|
}
|
|
1689
|
-
function
|
|
1690
|
-
const e = r ??
|
|
1691
|
-
return
|
|
1694
|
+
function _i(t, r) {
|
|
1695
|
+
const e = r ?? Ii();
|
|
1696
|
+
return Ht(e), li(t, e), e;
|
|
1692
1697
|
}
|
|
1693
|
-
function
|
|
1698
|
+
function li(t, r) {
|
|
1694
1699
|
let e;
|
|
1695
1700
|
for (; (e = t.next()) !== null; )
|
|
1696
1701
|
switch (e.fieldId) {
|
|
1697
|
-
case
|
|
1702
|
+
case ii: {
|
|
1698
1703
|
if (e.isNull) throw new Error();
|
|
1699
1704
|
r.StreamId = e.asString();
|
|
1700
1705
|
break;
|
|
1701
1706
|
}
|
|
1702
|
-
case
|
|
1707
|
+
case oi: {
|
|
1703
1708
|
if (e.isNull) throw new Error();
|
|
1704
1709
|
r.ClientSessionId = e.asInt32();
|
|
1705
1710
|
break;
|
|
1706
1711
|
}
|
|
1707
|
-
case
|
|
1712
|
+
case ai: {
|
|
1708
1713
|
if (e.isNull) throw new Error();
|
|
1709
1714
|
r.TrackId = e.asInt32();
|
|
1710
1715
|
break;
|
|
1711
1716
|
}
|
|
1712
|
-
case
|
|
1717
|
+
case Ei: {
|
|
1713
1718
|
if (e.isNull) throw new Error();
|
|
1714
|
-
r.Info =
|
|
1719
|
+
r.Info = zr(e.asObject());
|
|
1715
1720
|
break;
|
|
1716
1721
|
}
|
|
1717
1722
|
}
|
|
@@ -1719,7 +1724,7 @@ function Ei(t, r) {
|
|
|
1719
1724
|
function D(t) {
|
|
1720
1725
|
return typeof t == "object" && t !== null && !Array.isArray(t);
|
|
1721
1726
|
}
|
|
1722
|
-
function
|
|
1727
|
+
function Yt(t) {
|
|
1723
1728
|
const r = {}, e = Object.keys(t);
|
|
1724
1729
|
for (let s = 0; s < e.length; s++) {
|
|
1725
1730
|
const n = e[s];
|
|
@@ -1757,23 +1762,23 @@ function nt(t, r) {
|
|
|
1757
1762
|
if (n != null) {
|
|
1758
1763
|
if (!D(n))
|
|
1759
1764
|
throw new Error(`Invalid props for node ${e}`);
|
|
1760
|
-
a =
|
|
1765
|
+
a = Yt(n);
|
|
1761
1766
|
}
|
|
1762
|
-
let
|
|
1763
|
-
Array.isArray(i) && (
|
|
1767
|
+
let I = [];
|
|
1768
|
+
Array.isArray(i) && (I = i.map(
|
|
1764
1769
|
(l, c) => nt(l ?? {}, `${r}.children[${c}]`)
|
|
1765
1770
|
));
|
|
1766
|
-
const
|
|
1771
|
+
const _ = Kt(o, r, e, !1), E = typeof t.SourceMarker == "string" ? t.SourceMarker : void 0;
|
|
1767
1772
|
return {
|
|
1768
1773
|
id: e,
|
|
1769
1774
|
type: s,
|
|
1770
1775
|
props: a,
|
|
1771
|
-
children:
|
|
1772
|
-
styleIds:
|
|
1776
|
+
children: I,
|
|
1777
|
+
styleIds: _ ?? [],
|
|
1773
1778
|
...E ? { sourceMarker: E } : {}
|
|
1774
1779
|
};
|
|
1775
1780
|
}
|
|
1776
|
-
function
|
|
1781
|
+
function ci(t, r) {
|
|
1777
1782
|
if (!D(t))
|
|
1778
1783
|
throw new Error(`Invalid text delta at ${r}`);
|
|
1779
1784
|
const e = t.NodeId, s = t.PropertyName, n = t.Start, i = t.End, o = t.InsertedText;
|
|
@@ -1800,7 +1805,7 @@ function _i(t, r) {
|
|
|
1800
1805
|
insertedText: o
|
|
1801
1806
|
};
|
|
1802
1807
|
}
|
|
1803
|
-
function
|
|
1808
|
+
function fi(t, r) {
|
|
1804
1809
|
if (!D(t))
|
|
1805
1810
|
throw new Error(`Invalid child insert at ${r}`);
|
|
1806
1811
|
const e = t.Index, s = t.Node;
|
|
@@ -1813,7 +1818,7 @@ function Ii(t, r) {
|
|
|
1813
1818
|
node: nt(s, `${r}.node`)
|
|
1814
1819
|
};
|
|
1815
1820
|
}
|
|
1816
|
-
function
|
|
1821
|
+
function ui(t, r) {
|
|
1817
1822
|
if (!D(t))
|
|
1818
1823
|
throw new Error(`Invalid child move at ${r}`);
|
|
1819
1824
|
const e = t.NodeId, s = t.FromIndex, n = t.ToIndex;
|
|
@@ -1829,7 +1834,7 @@ function li(t, r) {
|
|
|
1829
1834
|
toIndex: n
|
|
1830
1835
|
};
|
|
1831
1836
|
}
|
|
1832
|
-
function
|
|
1837
|
+
function Ti(t, r) {
|
|
1833
1838
|
if (!D(t))
|
|
1834
1839
|
throw new Error(`Invalid child remove at ${r}`);
|
|
1835
1840
|
const e = t.NodeId, s = t.Index;
|
|
@@ -1842,18 +1847,18 @@ function ci(t, r) {
|
|
|
1842
1847
|
index: s
|
|
1843
1848
|
};
|
|
1844
1849
|
}
|
|
1845
|
-
function
|
|
1850
|
+
function hi(t, r) {
|
|
1846
1851
|
if (!D(t))
|
|
1847
1852
|
throw new Error(`Invalid node change at ${r}`);
|
|
1848
1853
|
const e = t.nodeId;
|
|
1849
1854
|
if (typeof e != "string" || e.length === 0)
|
|
1850
1855
|
throw new Error(`Invalid node change nodeId at ${r}`);
|
|
1851
1856
|
const s = Array.isArray(t.inserts) ? t.inserts.map(
|
|
1852
|
-
(E, l) =>
|
|
1857
|
+
(E, l) => fi(E ?? {}, `${r}.inserts[${l}]`)
|
|
1853
1858
|
) : void 0, n = Array.isArray(t.moves) ? t.moves.map(
|
|
1854
|
-
(E, l) =>
|
|
1859
|
+
(E, l) => ui(E ?? {}, `${r}.moves[${l}]`)
|
|
1855
1860
|
) : void 0, i = Array.isArray(t.removals) ? t.removals.map(
|
|
1856
|
-
(E, l) =>
|
|
1861
|
+
(E, l) => Ti(E ?? {}, `${r}.removals[${l}]`)
|
|
1857
1862
|
) : void 0;
|
|
1858
1863
|
let o;
|
|
1859
1864
|
if (D(t.changedProps)) {
|
|
@@ -1862,12 +1867,12 @@ function fi(t, r) {
|
|
|
1862
1867
|
if (!D(l))
|
|
1863
1868
|
continue;
|
|
1864
1869
|
const c = l.New;
|
|
1865
|
-
c === void 0 ? o.set(E, void 0) : D(c) ? o.set(E,
|
|
1870
|
+
c === void 0 ? o.set(E, void 0) : D(c) ? o.set(E, Yt(c)) : o.set(E, c);
|
|
1866
1871
|
}
|
|
1867
1872
|
}
|
|
1868
1873
|
const a = Array.isArray(t.textUpdates) ? t.textUpdates.map(
|
|
1869
|
-
(E, l) =>
|
|
1870
|
-
) : void 0,
|
|
1874
|
+
(E, l) => ci(E ?? {}, `${r}.textUpdates[${l}]`)
|
|
1875
|
+
) : void 0, I = t.styleIds, _ = I !== void 0 ? Kt(I, r, e, !0) : void 0;
|
|
1871
1876
|
return {
|
|
1872
1877
|
nodeId: e,
|
|
1873
1878
|
...s && s.length > 0 ? { inserts: s } : {},
|
|
@@ -1875,22 +1880,22 @@ function fi(t, r) {
|
|
|
1875
1880
|
...i && i.length > 0 ? { removals: i } : {},
|
|
1876
1881
|
...o && o.size > 0 ? { changedProps: o } : {},
|
|
1877
1882
|
...a && a.length > 0 ? { textUpdates: a } : {},
|
|
1878
|
-
...
|
|
1883
|
+
..._ !== void 0 ? { styleIds: _ } : {}
|
|
1879
1884
|
};
|
|
1880
1885
|
}
|
|
1881
|
-
function
|
|
1886
|
+
function Ai(t) {
|
|
1882
1887
|
const r = /* @__PURE__ */ new Map();
|
|
1883
1888
|
for (const [e, s] of Object.entries(t))
|
|
1884
1889
|
r.set(e, s);
|
|
1885
1890
|
return r;
|
|
1886
1891
|
}
|
|
1887
|
-
function
|
|
1892
|
+
function Ni(t, r, e) {
|
|
1888
1893
|
if (!t || typeof t != "object")
|
|
1889
|
-
throw new
|
|
1894
|
+
throw new d("UI update graph is missing");
|
|
1890
1895
|
const s = nt(t, "graph");
|
|
1891
1896
|
if (s.type !== "root")
|
|
1892
|
-
throw new
|
|
1893
|
-
const n =
|
|
1897
|
+
throw new d('UI update root element must have type "root"');
|
|
1898
|
+
const n = Ci(s.props, r);
|
|
1894
1899
|
return {
|
|
1895
1900
|
type: "full",
|
|
1896
1901
|
version: e,
|
|
@@ -1898,16 +1903,16 @@ function Ti(t, r, e) {
|
|
|
1898
1903
|
metadata: n
|
|
1899
1904
|
};
|
|
1900
1905
|
}
|
|
1901
|
-
function
|
|
1906
|
+
function Si(t, r, e) {
|
|
1902
1907
|
if (!Array.isArray(t))
|
|
1903
|
-
throw new
|
|
1908
|
+
throw new d("UI diff changes must be an array");
|
|
1904
1909
|
if (!D(r))
|
|
1905
|
-
throw new
|
|
1910
|
+
throw new d("UI diff metadata must be an object");
|
|
1906
1911
|
const s = r.viewId;
|
|
1907
1912
|
if (typeof s != "string" || s.length === 0)
|
|
1908
|
-
throw new
|
|
1913
|
+
throw new d("UI diff metadata is missing viewId");
|
|
1909
1914
|
const n = t.map(
|
|
1910
|
-
(a,
|
|
1915
|
+
(a, I) => hi(a ?? {}, `changes[${I}]`)
|
|
1911
1916
|
), i = typeof r.isUpdate == "boolean" ? r.isUpdate : void 0, o = {
|
|
1912
1917
|
viewId: s,
|
|
1913
1918
|
...i !== void 0 ? { isUpdate: i } : {}
|
|
@@ -1919,54 +1924,54 @@ function hi(t, r, e) {
|
|
|
1919
1924
|
metadata: o
|
|
1920
1925
|
};
|
|
1921
1926
|
}
|
|
1922
|
-
function
|
|
1927
|
+
function Ci(t, r) {
|
|
1923
1928
|
const e = t.viewId;
|
|
1924
1929
|
if (typeof e != "string" || e.length === 0)
|
|
1925
|
-
throw new
|
|
1930
|
+
throw new d("UI update root is missing viewId");
|
|
1926
1931
|
let s = e, n = typeof t.isUpdate == "boolean" ? t.isUpdate : void 0;
|
|
1927
1932
|
return D(r) && (typeof r.viewId == "string" && r.viewId.length > 0 && (s = r.viewId), typeof r.isUpdate == "boolean" && (n = r.isUpdate)), {
|
|
1928
1933
|
viewId: s,
|
|
1929
1934
|
...n !== void 0 ? { isUpdate: n } : {}
|
|
1930
1935
|
};
|
|
1931
1936
|
}
|
|
1932
|
-
class
|
|
1937
|
+
class d extends Error {
|
|
1933
1938
|
constructor(r, e) {
|
|
1934
1939
|
super(r), this.causeError = e, this.name = "UiUpdateParseError", e instanceof Error && (this.stack = e.stack);
|
|
1935
1940
|
}
|
|
1936
1941
|
}
|
|
1937
|
-
function
|
|
1942
|
+
function $t(t) {
|
|
1938
1943
|
let r;
|
|
1939
1944
|
try {
|
|
1940
1945
|
r = JSON.parse(t.Json);
|
|
1941
1946
|
} catch (o) {
|
|
1942
|
-
throw new
|
|
1947
|
+
throw new d("Failed to parse UIUpdate.Json payload", o);
|
|
1943
1948
|
}
|
|
1944
1949
|
if (!r || typeof r != "object")
|
|
1945
|
-
throw new
|
|
1950
|
+
throw new d("UI update snapshot must be an object");
|
|
1946
1951
|
const { type: e, version: s } = r;
|
|
1947
1952
|
if (e !== "full" && e !== "diff")
|
|
1948
|
-
throw new
|
|
1953
|
+
throw new d(`Unknown UI update type: ${String(e)}`);
|
|
1949
1954
|
if (typeof s != "number")
|
|
1950
|
-
throw new
|
|
1951
|
-
const n = e === "full" ?
|
|
1955
|
+
throw new d("UI update version must be a number");
|
|
1956
|
+
const n = e === "full" ? Ni(r.graph, r.metadata, s) : Si(r.changes, r.metadata, s), i = t.Payloads ? Ai(t.Payloads) : /* @__PURE__ */ new Map();
|
|
1952
1957
|
return {
|
|
1953
1958
|
snapshot: n,
|
|
1954
1959
|
payloads: i
|
|
1955
1960
|
};
|
|
1956
1961
|
}
|
|
1957
|
-
let
|
|
1958
|
-
const
|
|
1962
|
+
let Ri = 1;
|
|
1963
|
+
const Di = /* @__PURE__ */ new Map(), di = {
|
|
1959
1964
|
0: "DEBUG",
|
|
1960
1965
|
1: "INFO",
|
|
1961
1966
|
2: "WARN",
|
|
1962
1967
|
3: "ERROR",
|
|
1963
1968
|
4: "NONE"
|
|
1964
1969
|
};
|
|
1965
|
-
function
|
|
1970
|
+
function wi(t, r) {
|
|
1966
1971
|
return `[${t}] ${r}`;
|
|
1967
1972
|
}
|
|
1968
1973
|
function $(t, r, e, s) {
|
|
1969
|
-
const n = (/* @__PURE__ */ new Date()).toISOString(), i =
|
|
1974
|
+
const n = (/* @__PURE__ */ new Date()).toISOString(), i = di[t], o = {
|
|
1970
1975
|
timestamp: n,
|
|
1971
1976
|
level: t,
|
|
1972
1977
|
levelName: i,
|
|
@@ -1974,16 +1979,16 @@ function $(t, r, e, s) {
|
|
|
1974
1979
|
message: e,
|
|
1975
1980
|
args: s
|
|
1976
1981
|
};
|
|
1977
|
-
for (const [a,
|
|
1978
|
-
const
|
|
1979
|
-
if (t >=
|
|
1982
|
+
for (const [a, I] of Di) {
|
|
1983
|
+
const _ = I?.minLevel ?? 2;
|
|
1984
|
+
if (t >= _)
|
|
1980
1985
|
try {
|
|
1981
1986
|
a(o);
|
|
1982
1987
|
} catch {
|
|
1983
1988
|
}
|
|
1984
1989
|
}
|
|
1985
|
-
if (
|
|
1986
|
-
const a =
|
|
1990
|
+
if (Ri <= t) {
|
|
1991
|
+
const a = wi(r, e);
|
|
1987
1992
|
switch (t) {
|
|
1988
1993
|
case 0:
|
|
1989
1994
|
console.debug(a, ...s);
|
|
@@ -2000,7 +2005,7 @@ function $(t, r, e, s) {
|
|
|
2000
2005
|
}
|
|
2001
2006
|
}
|
|
2002
2007
|
}
|
|
2003
|
-
function
|
|
2008
|
+
function yi(t) {
|
|
2004
2009
|
return {
|
|
2005
2010
|
debug(r, ...e) {
|
|
2006
2011
|
$(0, t, r, e);
|
|
@@ -2016,7 +2021,7 @@ function di(t) {
|
|
|
2016
2021
|
}
|
|
2017
2022
|
};
|
|
2018
2023
|
}
|
|
2019
|
-
class
|
|
2024
|
+
class Li {
|
|
2020
2025
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
2021
2026
|
cache = /* @__PURE__ */ new Map();
|
|
2022
2027
|
/**
|
|
@@ -2097,8 +2102,8 @@ class wi {
|
|
|
2097
2102
|
return this.cache.size;
|
|
2098
2103
|
}
|
|
2099
2104
|
}
|
|
2100
|
-
const
|
|
2101
|
-
class
|
|
2105
|
+
const Ui = yi("UiStreamStore");
|
|
2106
|
+
class Oi {
|
|
2102
2107
|
views = /* @__PURE__ */ new Map();
|
|
2103
2108
|
listeners = /* @__PURE__ */ new Set();
|
|
2104
2109
|
payloads = /* @__PURE__ */ new Map();
|
|
@@ -2118,7 +2123,7 @@ class yi {
|
|
|
2118
2123
|
viewsDirty = !0;
|
|
2119
2124
|
payloadsDirty = !0;
|
|
2120
2125
|
// Handler cache for stable event handlers
|
|
2121
|
-
handlerCache = new
|
|
2126
|
+
handlerCache = new Li();
|
|
2122
2127
|
apply(r) {
|
|
2123
2128
|
if (this.snapshotMode) {
|
|
2124
2129
|
if (r.snapshot.type !== "full")
|
|
@@ -2137,20 +2142,20 @@ class yi {
|
|
|
2137
2142
|
const a = e.type === "diff" && n.isUpdate === !0;
|
|
2138
2143
|
if (e.version < o.version || e.version === o.version && !a)
|
|
2139
2144
|
return !1;
|
|
2140
|
-
let
|
|
2141
|
-
this.rootViewId || (this.rootViewId = i,
|
|
2142
|
-
const
|
|
2145
|
+
let I = !1;
|
|
2146
|
+
this.rootViewId || (this.rootViewId = i, I = !0, this.structureChanged = !0);
|
|
2147
|
+
const _ = o.root;
|
|
2143
2148
|
if (e.type === "full")
|
|
2144
|
-
o.root = e.root, o.version = e.version,
|
|
2149
|
+
o.root = e.root, o.version = e.version, I = !0, this.viewsDirty = !0, this.structureChanged = !0, e.root && V(e.root, this.changedNodeIds);
|
|
2145
2150
|
else {
|
|
2146
|
-
if (!
|
|
2151
|
+
if (!_)
|
|
2147
2152
|
return !1;
|
|
2148
|
-
const E =
|
|
2149
|
-
E !==
|
|
2153
|
+
const E = Pi(_, e.changes);
|
|
2154
|
+
E !== _ ? (o.root = E, I = !0, this.viewsDirty = !0, J(_, E, this.changedNodeIds)) : o.root = E, o.version = e.version;
|
|
2150
2155
|
}
|
|
2151
2156
|
for (const [E, l] of s)
|
|
2152
|
-
this.payloads.get(E) !== l && (this.payloads.set(E, l),
|
|
2153
|
-
return
|
|
2157
|
+
this.payloads.get(E) !== l && (this.payloads.set(E, l), I = !0, this.payloadsDirty = !0);
|
|
2158
|
+
return I ? (this.commitSnapshot(), this.notify(), !0) : (o.version = e.version, !1);
|
|
2154
2159
|
}
|
|
2155
2160
|
// Ignore further diffs (keeping the current tree visible) until the next full snapshot arrives,
|
|
2156
2161
|
// which then replaces the tree wholesale. Used on soft reconnect: the cached tree may be missing
|
|
@@ -2181,7 +2186,7 @@ class yi {
|
|
|
2181
2186
|
if (r.upsertViews && r.upsertViews.length > 0)
|
|
2182
2187
|
for (const [E, l] of r.upsertViews) {
|
|
2183
2188
|
const c = o(), L = c.get(E);
|
|
2184
|
-
L !== l && (c.set(E, l), s = !0, L ? J(L, l, this.changedNodeIds) : (
|
|
2189
|
+
L !== l && (c.set(E, l), s = !0, L ? J(L, l, this.changedNodeIds) : (V(l, this.changedNodeIds), this.structureChanged = !0));
|
|
2185
2190
|
}
|
|
2186
2191
|
if (r.deletePayloads && r.deletePayloads.length > 0)
|
|
2187
2192
|
for (const E of r.deletePayloads)
|
|
@@ -2191,18 +2196,18 @@ class yi {
|
|
|
2191
2196
|
const c = a();
|
|
2192
2197
|
c.get(E) !== l && (c.set(E, l), s = !0);
|
|
2193
2198
|
}
|
|
2194
|
-
const
|
|
2195
|
-
|
|
2196
|
-
const
|
|
2197
|
-
if (
|
|
2198
|
-
return this.snapshot = { ...this.snapshot, version:
|
|
2199
|
+
const I = r.rootViewId ?? this.snapshot.rootViewId;
|
|
2200
|
+
I !== this.snapshot.rootViewId && (s = !0, this.structureChanged = !0);
|
|
2201
|
+
const _ = r.nextVersion;
|
|
2202
|
+
if (_ !== this.snapshot.version && (s = !0), !s)
|
|
2203
|
+
return this.snapshot = { ...this.snapshot, version: _ }, !1;
|
|
2199
2204
|
for (const E of this.changedNodeIds)
|
|
2200
2205
|
this.nodeVersions.set(E, (this.nodeVersions.get(E) ?? 0) + 1);
|
|
2201
2206
|
return this.snapshot = {
|
|
2202
|
-
rootViewId:
|
|
2207
|
+
rootViewId: I,
|
|
2203
2208
|
views: n ?? new Map(this.snapshot.views),
|
|
2204
2209
|
payloads: i ?? new Map(this.snapshot.payloads),
|
|
2205
|
-
version:
|
|
2210
|
+
version: _
|
|
2206
2211
|
}, this.notify(), !0;
|
|
2207
2212
|
}
|
|
2208
2213
|
replaceSnapshot(r) {
|
|
@@ -2211,7 +2216,7 @@ class yi {
|
|
|
2211
2216
|
(e.rootViewId !== r.rootViewId || e.views.size !== r.views.size) && (this.structureChanged = !0);
|
|
2212
2217
|
for (const [n, i] of r.views) {
|
|
2213
2218
|
const o = e.views.get(n);
|
|
2214
|
-
o ? J(o, i, this.changedNodeIds) : (
|
|
2219
|
+
o ? J(o, i, this.changedNodeIds) : (V(i, this.changedNodeIds), this.structureChanged = !0);
|
|
2215
2220
|
}
|
|
2216
2221
|
for (const n of this.changedNodeIds)
|
|
2217
2222
|
this.nodeVersions.set(n, (this.nodeVersions.get(n) ?? 0) + 1);
|
|
@@ -2243,7 +2248,7 @@ class yi {
|
|
|
2243
2248
|
if (e)
|
|
2244
2249
|
return e;
|
|
2245
2250
|
for (const s of this.snapshot.views.values()) {
|
|
2246
|
-
const n =
|
|
2251
|
+
const n = Wt(s, r);
|
|
2247
2252
|
if (n)
|
|
2248
2253
|
return n;
|
|
2249
2254
|
}
|
|
@@ -2295,7 +2300,7 @@ class yi {
|
|
|
2295
2300
|
}
|
|
2296
2301
|
}
|
|
2297
2302
|
}
|
|
2298
|
-
class
|
|
2303
|
+
class mi {
|
|
2299
2304
|
streams = /* @__PURE__ */ new Map();
|
|
2300
2305
|
listeners = /* @__PURE__ */ new Set();
|
|
2301
2306
|
apply(r, e) {
|
|
@@ -2365,76 +2370,76 @@ class Ui {
|
|
|
2365
2370
|
}
|
|
2366
2371
|
getOrCreateStreamEntry(r) {
|
|
2367
2372
|
let e = this.streams.get(r);
|
|
2368
|
-
return e || (e = { store: new
|
|
2373
|
+
return e || (e = { store: new Oi() }, this.streams.set(r, e)), e;
|
|
2369
2374
|
}
|
|
2370
2375
|
notify(r) {
|
|
2371
2376
|
for (const e of this.listeners)
|
|
2372
2377
|
e(r);
|
|
2373
2378
|
}
|
|
2374
2379
|
}
|
|
2375
|
-
function
|
|
2380
|
+
function Pi(t, r, e) {
|
|
2376
2381
|
if (r.length === 0)
|
|
2377
2382
|
return t;
|
|
2378
2383
|
const s = /* @__PURE__ */ new Map();
|
|
2379
2384
|
for (const n of r)
|
|
2380
2385
|
s.set(n.nodeId, n);
|
|
2381
|
-
return
|
|
2386
|
+
return Xt(t, s);
|
|
2382
2387
|
}
|
|
2383
|
-
function
|
|
2388
|
+
function Xt(t, r, e) {
|
|
2384
2389
|
const s = r.get(t.id);
|
|
2385
2390
|
let n = t, i = !1;
|
|
2386
2391
|
if (s?.textUpdates && s.textUpdates.length > 0) {
|
|
2387
|
-
const f =
|
|
2392
|
+
const f = Mi(t, s.textUpdates);
|
|
2388
2393
|
n = f.node, i = f.changed;
|
|
2389
2394
|
}
|
|
2390
2395
|
let o = !1, a = n.props;
|
|
2391
2396
|
if (s?.changedProps && s.changedProps.size > 0)
|
|
2392
|
-
for (const [f,
|
|
2397
|
+
for (const [f, N] of s.changedProps.entries()) {
|
|
2393
2398
|
const u = a[f];
|
|
2394
|
-
if (
|
|
2395
|
-
(u !== void 0 || f in a) && (o || (a =
|
|
2396
|
-
else if (q(
|
|
2397
|
-
const h =
|
|
2398
|
-
|
|
2399
|
+
if (N === void 0)
|
|
2400
|
+
(u !== void 0 || f in a) && (o || (a = B(a), o = !0), delete a[f]);
|
|
2401
|
+
else if (q(N)) {
|
|
2402
|
+
const h = B(N);
|
|
2403
|
+
k(h, u) || (o || (a = B(a), o = !0), a[f] = h);
|
|
2399
2404
|
} else
|
|
2400
|
-
|
|
2405
|
+
k(N, u) || (o || (a = B(a), o = !0), a[f] = N);
|
|
2401
2406
|
}
|
|
2402
|
-
let
|
|
2403
|
-
s?.styleIds !== void 0 && (
|
|
2407
|
+
let I = !1, _ = n.styleIds;
|
|
2408
|
+
s?.styleIds !== void 0 && (zt(n.styleIds, s.styleIds) || (_ = s.styleIds, I = !0));
|
|
2404
2409
|
const E = n.children ?? [];
|
|
2405
2410
|
let l = E, c = !1;
|
|
2406
2411
|
if (s?.removals && s.removals.length > 0 || s?.moves && s.moves.length > 0 || s?.inserts && s.inserts.length > 0) {
|
|
2407
2412
|
const f = l.slice();
|
|
2408
2413
|
if (s?.removals && s.removals.length > 0) {
|
|
2409
|
-
const
|
|
2410
|
-
for (const u of
|
|
2414
|
+
const N = [...s.removals].sort((u, h) => h.index - u.index);
|
|
2415
|
+
for (const u of N)
|
|
2411
2416
|
if (u.index >= 0 && u.index < f.length && f[u.index].id === u.nodeId)
|
|
2412
2417
|
f.splice(u.index, 1);
|
|
2413
2418
|
else {
|
|
2414
|
-
const h = f.findIndex((
|
|
2419
|
+
const h = f.findIndex((R) => R.id === u.nodeId);
|
|
2415
2420
|
h >= 0 && f.splice(h, 1);
|
|
2416
2421
|
}
|
|
2417
2422
|
c = !0;
|
|
2418
2423
|
}
|
|
2419
2424
|
if (s?.moves && s.moves.length > 0) {
|
|
2420
|
-
const
|
|
2421
|
-
for (const h of
|
|
2422
|
-
const
|
|
2423
|
-
|
|
2424
|
-
}
|
|
2425
|
-
for (const h of
|
|
2426
|
-
const
|
|
2427
|
-
if (
|
|
2425
|
+
const N = [...s.moves].sort((h, R) => h.toIndex - R.toIndex), u = /* @__PURE__ */ new Map();
|
|
2426
|
+
for (const h of N) {
|
|
2427
|
+
const R = f.findIndex((z) => z.id === h.nodeId);
|
|
2428
|
+
R >= 0 && (u.set(h.nodeId, f[R]), f.splice(R, 1));
|
|
2429
|
+
}
|
|
2430
|
+
for (const h of N) {
|
|
2431
|
+
const R = u.get(h.nodeId);
|
|
2432
|
+
if (R) {
|
|
2428
2433
|
const z = Math.min(h.toIndex, f.length);
|
|
2429
|
-
f.splice(z, 0,
|
|
2434
|
+
f.splice(z, 0, R);
|
|
2430
2435
|
}
|
|
2431
2436
|
}
|
|
2432
2437
|
c = !0;
|
|
2433
2438
|
}
|
|
2434
2439
|
if (s?.inserts && s.inserts.length > 0) {
|
|
2435
|
-
const
|
|
2436
|
-
for (const u of
|
|
2437
|
-
f.some((
|
|
2440
|
+
const N = [...s.inserts].sort((u, h) => u.index - h.index);
|
|
2441
|
+
for (const u of N) {
|
|
2442
|
+
f.some((R) => R.id === u.node.id) && Ui.warn(`Duplicate node id '${u.node.id}' (type '${u.node.type}') inserted next to an existing sibling — UI tree diverged from the server`);
|
|
2438
2443
|
const h = Math.min(u.index, f.length);
|
|
2439
2444
|
f.splice(h, 0, u.node);
|
|
2440
2445
|
}
|
|
@@ -2442,68 +2447,68 @@ function $t(t, r, e) {
|
|
|
2442
2447
|
}
|
|
2443
2448
|
l = f;
|
|
2444
2449
|
}
|
|
2445
|
-
let
|
|
2450
|
+
let w;
|
|
2446
2451
|
for (let f = 0; f < l.length; f++) {
|
|
2447
|
-
const
|
|
2448
|
-
u !==
|
|
2452
|
+
const N = l[f], u = Xt(N, r);
|
|
2453
|
+
u !== N && (w || (w = l.slice()), w[f] = u);
|
|
2449
2454
|
}
|
|
2450
|
-
return
|
|
2455
|
+
return w && (l = w, c = !0), i || o || I || c ? !o && !c && !I ? n : {
|
|
2451
2456
|
id: t.id,
|
|
2452
2457
|
type: t.type,
|
|
2453
2458
|
props: o ? a : n.props,
|
|
2454
2459
|
children: c ? l : E,
|
|
2455
|
-
styleIds:
|
|
2460
|
+
styleIds: I ? _ : n.styleIds,
|
|
2456
2461
|
...t.sourceMarker ? { sourceMarker: t.sourceMarker } : {}
|
|
2457
2462
|
} : t;
|
|
2458
2463
|
}
|
|
2459
|
-
function
|
|
2464
|
+
function V(t, r) {
|
|
2460
2465
|
if (r.add(t.id), t.children)
|
|
2461
2466
|
for (const e of t.children)
|
|
2462
|
-
|
|
2467
|
+
V(e, r);
|
|
2463
2468
|
}
|
|
2464
2469
|
const X = [];
|
|
2465
|
-
function
|
|
2470
|
+
function gi(t) {
|
|
2466
2471
|
for (; X.length <= t; )
|
|
2467
2472
|
X.push(/* @__PURE__ */ new Map());
|
|
2468
2473
|
return X[t].clear(), X[t];
|
|
2469
2474
|
}
|
|
2470
2475
|
function J(t, r, e) {
|
|
2471
|
-
|
|
2476
|
+
jt(t, r, e, 0);
|
|
2472
2477
|
}
|
|
2473
|
-
function
|
|
2478
|
+
function jt(t, r, e, s) {
|
|
2474
2479
|
if (t === r)
|
|
2475
2480
|
return;
|
|
2476
|
-
(t.type !== r.type || !
|
|
2481
|
+
(t.type !== r.type || !Fi(t.props, r.props) || !zt(t.styleIds, r.styleIds)) && e.add(r.id);
|
|
2477
2482
|
const i = t.children ?? [], o = r.children ?? [];
|
|
2478
2483
|
if (i !== o) {
|
|
2479
|
-
const a =
|
|
2480
|
-
for (const
|
|
2481
|
-
a.set(
|
|
2482
|
-
let
|
|
2483
|
-
for (let
|
|
2484
|
-
const E = o[
|
|
2485
|
-
l ? (
|
|
2484
|
+
const a = gi(s);
|
|
2485
|
+
for (const _ of i)
|
|
2486
|
+
a.set(_.id, _);
|
|
2487
|
+
let I = !1;
|
|
2488
|
+
for (let _ = 0; _ < o.length; _++) {
|
|
2489
|
+
const E = o[_], l = a.get(E.id);
|
|
2490
|
+
l ? (jt(l, E, e, s + 1), !I && _ < i.length && i[_].id !== E.id && (I = !0)) : (V(E, e), I = !0);
|
|
2486
2491
|
}
|
|
2487
|
-
(i.length !== o.length ||
|
|
2492
|
+
(i.length !== o.length || I) && e.add(r.id);
|
|
2488
2493
|
}
|
|
2489
2494
|
}
|
|
2490
|
-
function
|
|
2491
|
-
return
|
|
2495
|
+
function Fi(t, r) {
|
|
2496
|
+
return k(t, r);
|
|
2492
2497
|
}
|
|
2493
|
-
function
|
|
2498
|
+
function Wt(t, r) {
|
|
2494
2499
|
if (t.id === r)
|
|
2495
2500
|
return t;
|
|
2496
2501
|
if (t.children)
|
|
2497
2502
|
for (const e of t.children) {
|
|
2498
|
-
const s =
|
|
2503
|
+
const s = Wt(e, r);
|
|
2499
2504
|
if (s)
|
|
2500
2505
|
return s;
|
|
2501
2506
|
}
|
|
2502
2507
|
}
|
|
2503
|
-
function
|
|
2504
|
-
return
|
|
2508
|
+
function zt(t, r) {
|
|
2509
|
+
return k(t, r);
|
|
2505
2510
|
}
|
|
2506
|
-
function
|
|
2511
|
+
function bi(t, r) {
|
|
2507
2512
|
if (r.length === 0)
|
|
2508
2513
|
return t;
|
|
2509
2514
|
const e = [...r].sort((i, o) => i.start - o.start);
|
|
@@ -2511,16 +2516,16 @@ function gi(t, r) {
|
|
|
2511
2516
|
for (const i of e) {
|
|
2512
2517
|
const o = ot(i.start + n, 0, s.length);
|
|
2513
2518
|
if (i.end == null) {
|
|
2514
|
-
const E = s.slice(o), l =
|
|
2519
|
+
const E = s.slice(o), l = vi(E, i.insertedText);
|
|
2515
2520
|
s = s.slice(0, o) + i.insertedText + E.slice(l), n += i.insertedText.length - l;
|
|
2516
2521
|
continue;
|
|
2517
2522
|
}
|
|
2518
|
-
const a = i.end + n,
|
|
2519
|
-
s = s.slice(0, o) + i.insertedText + s.slice(
|
|
2523
|
+
const a = i.end + n, I = ot(a, o, s.length), _ = I - o;
|
|
2524
|
+
s = s.slice(0, o) + i.insertedText + s.slice(I), n += i.insertedText.length - _;
|
|
2520
2525
|
}
|
|
2521
2526
|
return s;
|
|
2522
2527
|
}
|
|
2523
|
-
function
|
|
2528
|
+
function Mi(t, r, e) {
|
|
2524
2529
|
if (r.length === 0)
|
|
2525
2530
|
return { node: t, changed: !1 };
|
|
2526
2531
|
const s = /* @__PURE__ */ new Map();
|
|
@@ -2528,39 +2533,39 @@ function Fi(t, r, e) {
|
|
|
2528
2533
|
const i = s.get(n.nodeId);
|
|
2529
2534
|
i ? i.push(n) : s.set(n.nodeId, [n]);
|
|
2530
2535
|
}
|
|
2531
|
-
return
|
|
2536
|
+
return Jt(t, s);
|
|
2532
2537
|
}
|
|
2533
|
-
function
|
|
2538
|
+
function Jt(t, r, e) {
|
|
2534
2539
|
const s = r.get(t.id) ?? [];
|
|
2535
2540
|
let n = !1, i = t.props;
|
|
2536
2541
|
if (s.length > 0) {
|
|
2537
|
-
const
|
|
2542
|
+
const _ = /* @__PURE__ */ new Map();
|
|
2538
2543
|
for (const E of s) {
|
|
2539
|
-
const l =
|
|
2540
|
-
l ? l.push(E) :
|
|
2544
|
+
const l = _.get(E.propertyName);
|
|
2545
|
+
l ? l.push(E) : _.set(E.propertyName, [E]);
|
|
2541
2546
|
}
|
|
2542
|
-
for (const [E, l] of
|
|
2543
|
-
const c = i[E],
|
|
2544
|
-
n || (i =
|
|
2547
|
+
for (const [E, l] of _.entries()) {
|
|
2548
|
+
const c = i[E], w = bi(typeof c == "string" ? c : "", l);
|
|
2549
|
+
n || (i = B(i), n = !0), i[E] = w;
|
|
2545
2550
|
}
|
|
2546
2551
|
}
|
|
2547
2552
|
let o = !1;
|
|
2548
2553
|
const a = t.children ?? [];
|
|
2549
|
-
let
|
|
2554
|
+
let I = a;
|
|
2550
2555
|
if (a.length > 0) {
|
|
2551
|
-
let
|
|
2556
|
+
let _;
|
|
2552
2557
|
for (let E = 0; E < a.length; E++) {
|
|
2553
|
-
const l = a[E], c =
|
|
2554
|
-
c.changed && (
|
|
2558
|
+
const l = a[E], c = Jt(l, r);
|
|
2559
|
+
c.changed && (_ || (_ = [...a]), _[E] = c.node);
|
|
2555
2560
|
}
|
|
2556
|
-
|
|
2561
|
+
_ && (I = _, o = !0);
|
|
2557
2562
|
}
|
|
2558
2563
|
return !n && !o ? { node: t, changed: !1 } : {
|
|
2559
2564
|
node: {
|
|
2560
2565
|
id: t.id,
|
|
2561
2566
|
type: t.type,
|
|
2562
2567
|
props: n ? i : t.props,
|
|
2563
|
-
children: o ?
|
|
2568
|
+
children: o ? I : a,
|
|
2564
2569
|
styleIds: t.styleIds,
|
|
2565
2570
|
...t.sourceMarker ? { sourceMarker: t.sourceMarker } : {}
|
|
2566
2571
|
},
|
|
@@ -2570,14 +2575,14 @@ function zt(t, r, e) {
|
|
|
2570
2575
|
function ot(t, r, e) {
|
|
2571
2576
|
return Math.max(r, Math.min(e, t));
|
|
2572
2577
|
}
|
|
2573
|
-
function
|
|
2578
|
+
function vi(t, r) {
|
|
2574
2579
|
const e = Math.min(t.length, r.length);
|
|
2575
2580
|
let s = 0;
|
|
2576
2581
|
for (; s < e && t.charCodeAt(s) === r.charCodeAt(s); )
|
|
2577
2582
|
s++;
|
|
2578
2583
|
return s;
|
|
2579
2584
|
}
|
|
2580
|
-
function
|
|
2585
|
+
function B(t) {
|
|
2581
2586
|
const r = {}, e = Object.keys(t);
|
|
2582
2587
|
for (let s = 0; s < e.length; s++) {
|
|
2583
2588
|
const n = e[s];
|
|
@@ -2588,14 +2593,14 @@ function G(t) {
|
|
|
2588
2593
|
function q(t) {
|
|
2589
2594
|
return typeof t == "object" && t !== null && !Array.isArray(t);
|
|
2590
2595
|
}
|
|
2591
|
-
function
|
|
2596
|
+
function k(t, r) {
|
|
2592
2597
|
if (Object.is(t, r))
|
|
2593
2598
|
return !0;
|
|
2594
2599
|
if (Array.isArray(t) && Array.isArray(r)) {
|
|
2595
2600
|
if (t.length !== r.length)
|
|
2596
2601
|
return !1;
|
|
2597
2602
|
for (let e = 0; e < t.length; e++)
|
|
2598
|
-
if (!
|
|
2603
|
+
if (!k(t[e], r[e]))
|
|
2599
2604
|
return !1;
|
|
2600
2605
|
return !0;
|
|
2601
2606
|
}
|
|
@@ -2604,26 +2609,26 @@ function M(t, r) {
|
|
|
2604
2609
|
if (e.length !== s.length)
|
|
2605
2610
|
return !1;
|
|
2606
2611
|
for (const n of e)
|
|
2607
|
-
if (!
|
|
2612
|
+
if (!k(t[n], r[n]))
|
|
2608
2613
|
return !1;
|
|
2609
2614
|
return !0;
|
|
2610
2615
|
}
|
|
2611
2616
|
return !1;
|
|
2612
2617
|
}
|
|
2613
|
-
const
|
|
2614
|
-
let
|
|
2615
|
-
const
|
|
2616
|
-
function
|
|
2618
|
+
const ki = 16, Gi = 50, A = new mi(), m = /* @__PURE__ */ new Map(), F = /* @__PURE__ */ new Map();
|
|
2619
|
+
let Qt = ki, qt = Gi, x = [], p = null, H = null, O = 0, j = 0;
|
|
2620
|
+
const b = /* @__PURE__ */ new Map();
|
|
2621
|
+
function Bi() {
|
|
2617
2622
|
return typeof performance < "u" ? performance.now() : Date.now();
|
|
2618
2623
|
}
|
|
2619
|
-
function
|
|
2624
|
+
function Vi() {
|
|
2620
2625
|
try {
|
|
2621
2626
|
return crypto.randomUUID();
|
|
2622
2627
|
} catch {
|
|
2623
2628
|
return `${Date.now()}_${Math.random().toString(16).slice(2)}`;
|
|
2624
2629
|
}
|
|
2625
2630
|
}
|
|
2626
|
-
function
|
|
2631
|
+
function Zt(t) {
|
|
2627
2632
|
const r = [];
|
|
2628
2633
|
for (const s of t.views)
|
|
2629
2634
|
r.push(s);
|
|
@@ -2639,17 +2644,17 @@ function Bi(t) {
|
|
|
2639
2644
|
payloads: e
|
|
2640
2645
|
};
|
|
2641
2646
|
}
|
|
2642
|
-
function
|
|
2647
|
+
function xi(t, r, e) {
|
|
2643
2648
|
if (!e || e.version === -1)
|
|
2644
|
-
return { type: "ReplaceStreamSnapshot", snapshot:
|
|
2649
|
+
return { type: "ReplaceStreamSnapshot", snapshot: Zt(r) };
|
|
2645
2650
|
let s, n;
|
|
2646
|
-
for (const [a,
|
|
2647
|
-
e.views.get(a) !==
|
|
2651
|
+
for (const [a, I] of r.views)
|
|
2652
|
+
e.views.get(a) !== I && (s ??= []).push([a, I]);
|
|
2648
2653
|
for (const a of e.views.keys())
|
|
2649
2654
|
r.views.has(a) || (n ??= []).push(a);
|
|
2650
2655
|
let i, o;
|
|
2651
|
-
for (const [a,
|
|
2652
|
-
e.payloads.get(a) !==
|
|
2656
|
+
for (const [a, I] of r.payloads)
|
|
2657
|
+
e.payloads.get(a) !== I && (i ??= []).push([a, I]);
|
|
2653
2658
|
for (const a of e.payloads.keys())
|
|
2654
2659
|
r.payloads.has(a) || (o ??= []).push(a);
|
|
2655
2660
|
return {
|
|
@@ -2665,66 +2670,66 @@ function Vi(t, r, e) {
|
|
|
2665
2670
|
deletePayloads: o
|
|
2666
2671
|
};
|
|
2667
2672
|
}
|
|
2668
|
-
function
|
|
2669
|
-
|
|
2673
|
+
function te() {
|
|
2674
|
+
p || (p = setTimeout(at, Qt)), H || (H = setTimeout(at, qt));
|
|
2670
2675
|
}
|
|
2671
|
-
function
|
|
2672
|
-
|
|
2676
|
+
function y(t) {
|
|
2677
|
+
x.push(t), te();
|
|
2673
2678
|
}
|
|
2674
2679
|
function at() {
|
|
2675
|
-
if (
|
|
2676
|
-
|
|
2680
|
+
if (p && (clearTimeout(p), p = null), H && (clearTimeout(H), H = null), x.length === 0 && b.size === 0) {
|
|
2681
|
+
O = 0, j = 0;
|
|
2677
2682
|
return;
|
|
2678
2683
|
}
|
|
2679
2684
|
const t = [];
|
|
2680
|
-
for (const [e, s] of
|
|
2685
|
+
for (const [e, s] of b)
|
|
2681
2686
|
t.push({ trackId: e, version: s.version, senderId: s.senderId });
|
|
2682
2687
|
const r = {
|
|
2683
|
-
batchId:
|
|
2684
|
-
createdAtMs:
|
|
2685
|
-
ops:
|
|
2688
|
+
batchId: Vi(),
|
|
2689
|
+
createdAtMs: Bi(),
|
|
2690
|
+
ops: x,
|
|
2686
2691
|
...t.length > 0 ? { acks: t } : {},
|
|
2687
|
-
stats: { uiMessagesConsumed:
|
|
2692
|
+
stats: { uiMessagesConsumed: O, bytesConsumed: j }
|
|
2688
2693
|
};
|
|
2689
|
-
|
|
2694
|
+
x = [], O = 0, j = 0, b.clear(), self.postMessage(r);
|
|
2690
2695
|
}
|
|
2691
|
-
function
|
|
2696
|
+
function ee(t) {
|
|
2692
2697
|
return `${t.senderId}_${t.trackId}`;
|
|
2693
2698
|
}
|
|
2694
|
-
async function
|
|
2695
|
-
const r = await
|
|
2699
|
+
async function pi(t) {
|
|
2700
|
+
const r = await Pn(t), e = /* @__PURE__ */ new Set();
|
|
2696
2701
|
for (const s of Object.values(r.UIStreams ?? {})) {
|
|
2697
2702
|
const n = s.StreamId;
|
|
2698
2703
|
e.add(n);
|
|
2699
2704
|
const i = s.Info?.Category;
|
|
2700
|
-
|
|
2705
|
+
A.getSnapshot(n)?.category !== i && (A.setCategory(n, i), y({ type: "SetStreamCategory", streamId: n, category: i }));
|
|
2701
2706
|
}
|
|
2702
|
-
for (const s of
|
|
2703
|
-
e.has(s.streamId) || (
|
|
2707
|
+
for (const s of A.getSnapshots())
|
|
2708
|
+
e.has(s.streamId) || (A.remove(s.streamId), F.delete(s.streamId), y({ type: "RemoveStream", streamId: s.streamId }));
|
|
2704
2709
|
}
|
|
2705
2710
|
async function Hi(t) {
|
|
2706
|
-
const r = Z(t), e =
|
|
2707
|
-
if ((i === void 0 || n.snapshot.version > i.version) && (
|
|
2711
|
+
const r = Z(t), e = ee(r), s = await Ks(t), n = $t(s), i = b.get(r.trackId);
|
|
2712
|
+
if ((i === void 0 || n.snapshot.version > i.version) && (b.set(r.trackId, { version: n.snapshot.version, senderId: r.senderId }), te()), !A.apply(e, n))
|
|
2708
2713
|
return;
|
|
2709
|
-
const a =
|
|
2714
|
+
const a = A.getSnapshot(e);
|
|
2710
2715
|
if (!a)
|
|
2711
2716
|
return;
|
|
2712
|
-
const
|
|
2713
|
-
|
|
2717
|
+
const I = F.get(e);
|
|
2718
|
+
F.set(e, a), y(xi(e, a, I));
|
|
2714
2719
|
}
|
|
2715
2720
|
async function Yi(t) {
|
|
2716
|
-
const r = await
|
|
2721
|
+
const r = await fs(t);
|
|
2717
2722
|
if (!r.StyleId)
|
|
2718
2723
|
return;
|
|
2719
2724
|
const e = {
|
|
2720
2725
|
styleId: r.StyleId,
|
|
2721
2726
|
css: r.Style?.css,
|
|
2722
2727
|
common: r.Style?.common
|
|
2723
|
-
}, s =
|
|
2724
|
-
s && s.css === e.css && s.common === e.common || (
|
|
2728
|
+
}, s = m.get(e.styleId);
|
|
2729
|
+
s && s.css === e.css && s.common === e.common || (m.set(e.styleId, e), y({ type: "UpsertUiStyle", style: e }));
|
|
2725
2730
|
}
|
|
2726
|
-
async function
|
|
2727
|
-
const r = await
|
|
2731
|
+
async function Ki(t) {
|
|
2732
|
+
const r = await Rs(t);
|
|
2728
2733
|
if (r.Styles)
|
|
2729
2734
|
for (const e of r.Styles) {
|
|
2730
2735
|
if (!e.StyleId)
|
|
@@ -2733,48 +2738,69 @@ async function pi(t) {
|
|
|
2733
2738
|
styleId: e.StyleId,
|
|
2734
2739
|
css: e.Style?.css,
|
|
2735
2740
|
common: e.Style?.common
|
|
2736
|
-
}, n =
|
|
2737
|
-
n && n.css === s.css && n.common === s.common || (
|
|
2741
|
+
}, n = m.get(s.styleId);
|
|
2742
|
+
n && n.css === s.css && n.common === s.common || (m.set(s.styleId, s), y({ type: "UpsertUiStyle", style: s }));
|
|
2738
2743
|
}
|
|
2739
2744
|
}
|
|
2740
|
-
function
|
|
2741
|
-
const r = Z(t), e =
|
|
2742
|
-
|
|
2745
|
+
function $i(t) {
|
|
2746
|
+
const r = Z(t), e = ee(r);
|
|
2747
|
+
A.clear(e), F.delete(e), y({ type: "ClearStream", streamId: e });
|
|
2743
2748
|
}
|
|
2744
|
-
async function
|
|
2745
|
-
const r = await
|
|
2749
|
+
async function Xi(t) {
|
|
2750
|
+
const r = await vs(t);
|
|
2746
2751
|
if (!(!r.StyleIds || r.StyleIds.length === 0))
|
|
2747
2752
|
for (const e of r.StyleIds)
|
|
2748
|
-
|
|
2753
|
+
m.delete(e) && y({ type: "RemoveUiStyle", styleId: e });
|
|
2749
2754
|
}
|
|
2750
|
-
|
|
2755
|
+
function ji(t) {
|
|
2756
|
+
if (!A.getSnapshots().some((r) => r.rootViewId)) {
|
|
2757
|
+
for (const r of t.styles) {
|
|
2758
|
+
const e = m.get(r.styleId);
|
|
2759
|
+
e && e.css === r.css && e.common === r.common || (m.set(r.styleId, r), y({ type: "UpsertUiStyle", style: r }));
|
|
2760
|
+
}
|
|
2761
|
+
if (t.bootJson && t.bootStreamId) {
|
|
2762
|
+
const r = $t({ Json: t.bootJson });
|
|
2763
|
+
if (A.apply(t.bootStreamId, r)) {
|
|
2764
|
+
const e = A.getSnapshot(t.bootStreamId);
|
|
2765
|
+
e && (F.set(t.bootStreamId, e), y({ type: "ReplaceStreamSnapshot", snapshot: Zt(e) }));
|
|
2766
|
+
}
|
|
2767
|
+
}
|
|
2768
|
+
for (const r of t.liveStreams ?? [])
|
|
2769
|
+
if (A.applyStoreOp({ type: "ReplaceStreamSnapshot", snapshot: r })) {
|
|
2770
|
+
const e = A.getSnapshot(r.streamId);
|
|
2771
|
+
e && F.set(r.streamId, e), y({ type: "ReplaceStreamSnapshot", snapshot: r });
|
|
2772
|
+
}
|
|
2773
|
+
A.enterSnapshotModeAll();
|
|
2774
|
+
}
|
|
2775
|
+
}
|
|
2776
|
+
async function Wi(t) {
|
|
2751
2777
|
const r = new Uint8Array(t);
|
|
2752
2778
|
j += r.byteLength;
|
|
2753
2779
|
const e = r;
|
|
2754
|
-
switch (
|
|
2755
|
-
case
|
|
2756
|
-
await
|
|
2780
|
+
switch (se(e)) {
|
|
2781
|
+
case g.CORE_GLOBAL_STATE:
|
|
2782
|
+
await pi(e), O++;
|
|
2757
2783
|
return;
|
|
2758
|
-
case
|
|
2784
|
+
case g.UI_UPDATE:
|
|
2759
2785
|
try {
|
|
2760
2786
|
await Hi(e);
|
|
2761
2787
|
} catch (n) {
|
|
2762
|
-
return n instanceof
|
|
2788
|
+
return n instanceof d, void 0;
|
|
2763
2789
|
} finally {
|
|
2764
|
-
|
|
2790
|
+
O++;
|
|
2765
2791
|
}
|
|
2766
2792
|
return;
|
|
2767
|
-
case
|
|
2768
|
-
await Yi(e),
|
|
2793
|
+
case g.UI_STYLES:
|
|
2794
|
+
await Yi(e), O++;
|
|
2769
2795
|
return;
|
|
2770
|
-
case
|
|
2771
|
-
await
|
|
2796
|
+
case g.UI_STYLES_BATCH:
|
|
2797
|
+
await Ki(e), O++;
|
|
2772
2798
|
return;
|
|
2773
|
-
case
|
|
2774
|
-
await
|
|
2799
|
+
case g.UI_STYLES_DELETE:
|
|
2800
|
+
await Xi(e), O++;
|
|
2775
2801
|
return;
|
|
2776
|
-
case
|
|
2777
|
-
|
|
2802
|
+
case g.ACTION_UI_CLEAR_STREAM:
|
|
2803
|
+
$i(e), O++;
|
|
2778
2804
|
return;
|
|
2779
2805
|
default:
|
|
2780
2806
|
return;
|
|
@@ -2783,19 +2809,23 @@ async function Xi(t) {
|
|
|
2783
2809
|
self.addEventListener("message", (t) => {
|
|
2784
2810
|
const r = t.data;
|
|
2785
2811
|
if (r.type === "configure") {
|
|
2786
|
-
typeof r.flushIntervalMs == "number" && Number.isFinite(r.flushIntervalMs) && r.flushIntervalMs >= 0 && (
|
|
2812
|
+
typeof r.flushIntervalMs == "number" && Number.isFinite(r.flushIntervalMs) && r.flushIntervalMs >= 0 && (Qt = r.flushIntervalMs), typeof r.maxLatencyMs == "number" && Number.isFinite(r.maxLatencyMs) && r.maxLatencyMs >= 0 && (qt = r.maxLatencyMs);
|
|
2787
2813
|
return;
|
|
2788
2814
|
}
|
|
2789
2815
|
if (r.type === "clear") {
|
|
2790
|
-
|
|
2791
|
-
for (const e of
|
|
2792
|
-
|
|
2816
|
+
x = [], F.clear(), b.clear(), m.clear();
|
|
2817
|
+
for (const e of A.getSnapshots())
|
|
2818
|
+
A.remove(e.streamId);
|
|
2793
2819
|
return;
|
|
2794
2820
|
}
|
|
2795
2821
|
if (r.type === "snapshotMode") {
|
|
2796
|
-
|
|
2822
|
+
A.enterSnapshotModeAll();
|
|
2823
|
+
return;
|
|
2824
|
+
}
|
|
2825
|
+
if (r.type === "seed") {
|
|
2826
|
+
ji(r);
|
|
2797
2827
|
return;
|
|
2798
2828
|
}
|
|
2799
|
-
r.type === "protocol" &&
|
|
2829
|
+
r.type === "protocol" && Wi(r.message).catch(() => {
|
|
2800
2830
|
});
|
|
2801
2831
|
});
|