@ikonai/sdk-ui 1.0.59 → 1.0.61
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/audio-capture-worker-Brmt2Z7a.js +1279 -0
- package/assets/audio-playback-worker-BhikbMvg.js +1590 -0
- package/assets/index-Ca9sTcGt.js +119 -0
- package/assets/index-D_vz6N3U.js +267 -0
- package/assets/libopus-ChbDZJKA.js +139 -0
- package/assets/protocol-worker-C1bzc65g.js +1674 -0
- package/assets/{ui-worker-D4hZvsPd.js → ui-worker-Cnoq4Ubv.js} +632 -548
- package/assets/video-capture-worker-aMgUqmMd.js +1126 -0
- package/assets/video-playback-worker-Cfg2cyD1.js +1005 -0
- package/index.js +643 -621
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { createLogger as it, readOpcode as Jt, readProtocolMessageHeaders as rt } from "@ikonai/sdk";
|
|
2
2
|
const b = 27, qt = {
|
|
3
3
|
Compressed: 8
|
|
4
4
|
};
|
|
@@ -6,7 +6,7 @@ function Qt(t) {
|
|
|
6
6
|
const e = G(t), r = new DataView(e.buffer, e.byteOffset, e.byteLength);
|
|
7
7
|
if (e.length < b)
|
|
8
8
|
throw new Error("Protocol payload too short");
|
|
9
|
-
const s = r.getUint32(0, !0), n = r.getUint32(4, !0), i = r.getUint32(8, !0),
|
|
9
|
+
const s = r.getUint32(0, !0), n = r.getUint32(4, !0), i = r.getUint32(8, !0), o = r.getUint32(12, !0), a = r.getUint32(16, !0), I = r.getUint32(20, !0), _ = r.getUint8(24), l = r.getUint8(25), E = r.getUint8(26);
|
|
10
10
|
if (b + I * 4 > e.length)
|
|
11
11
|
throw new Error("Protocol header exceeds payload length");
|
|
12
12
|
const T = [];
|
|
@@ -17,8 +17,8 @@ function Qt(t) {
|
|
|
17
17
|
length: s,
|
|
18
18
|
opcode: n,
|
|
19
19
|
senderId: i,
|
|
20
|
-
trackId:
|
|
21
|
-
sequenceId:
|
|
20
|
+
trackId: o,
|
|
21
|
+
sequenceId: a,
|
|
22
22
|
targetIds: T,
|
|
23
23
|
payloadVersion: _,
|
|
24
24
|
payloadType: l,
|
|
@@ -32,12 +32,12 @@ async function p(t, e, r) {
|
|
|
32
32
|
if (n.payloadType !== 8)
|
|
33
33
|
throw new Error(`Unexpected payload type ${n.payloadType}`);
|
|
34
34
|
const i = b + n.targetIds.length * 4;
|
|
35
|
-
let
|
|
36
|
-
return (n.flags & qt.Compressed) !== 0 && (
|
|
35
|
+
let o = s.subarray(i, n.length);
|
|
36
|
+
return (n.flags & qt.Compressed) !== 0 && (o = await te(o)), o;
|
|
37
37
|
}
|
|
38
38
|
function Zt(t, e, r, s, n) {
|
|
39
|
-
const i = n?.trackId ?? 0,
|
|
40
|
-
T.setUint32(0, E, !0), T.setUint32(4, t >>> 0, !0), T.setUint32(8, s >>> 0, !0), T.setUint32(12, i >>> 0, !0), T.setUint32(16,
|
|
39
|
+
const i = n?.trackId ?? 0, o = n?.sequenceId ?? 0, a = n?.flags ?? 0, I = n?.targetIds ?? [], _ = n?.payloadType ?? 8, l = b + I.length * 4, E = l + e.length, h = new Uint8Array(E), T = new DataView(h.buffer);
|
|
40
|
+
T.setUint32(0, E, !0), T.setUint32(4, t >>> 0, !0), T.setUint32(8, s >>> 0, !0), T.setUint32(12, i >>> 0, !0), T.setUint32(16, o >>> 0, !0), T.setUint32(20, I.length >>> 0, !0), T.setUint8(24, r & 255), T.setUint8(25, _ & 255), T.setUint8(26, a & 255);
|
|
41
41
|
let d = b;
|
|
42
42
|
for (let g = 0; g < I.length; g++)
|
|
43
43
|
T.setUint32(d, I[g] >>> 0, !0), d += 4;
|
|
@@ -49,23 +49,23 @@ async function te(t) {
|
|
|
49
49
|
const e = new DecompressionStream("gzip"), r = e.writable.getWriter(), s = new Uint8Array(t);
|
|
50
50
|
r.write(s), r.close();
|
|
51
51
|
const n = e.readable.getReader(), i = [];
|
|
52
|
-
let
|
|
52
|
+
let o = 0;
|
|
53
53
|
for (; ; ) {
|
|
54
54
|
const { done: _, value: l } = await n.read();
|
|
55
55
|
if (_) break;
|
|
56
|
-
i.push(l),
|
|
56
|
+
i.push(l), o += l.length;
|
|
57
57
|
}
|
|
58
|
-
const
|
|
58
|
+
const a = new Uint8Array(o);
|
|
59
59
|
let I = 0;
|
|
60
60
|
for (let _ = 0; _ < i.length; _++)
|
|
61
|
-
|
|
62
|
-
return
|
|
61
|
+
a.set(i[_], I), I += i[_].length;
|
|
62
|
+
return a;
|
|
63
63
|
}
|
|
64
|
-
var
|
|
65
|
-
const
|
|
64
|
+
var C = /* @__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))(C || {});
|
|
65
|
+
const ot = 161, at = 162, H = new TextEncoder(), ee = new TextDecoder("utf-8", { fatal: !0 });
|
|
66
66
|
class v {
|
|
67
67
|
constructor(e = 1) {
|
|
68
|
-
this.version = e, this.buffer.writeByte(
|
|
68
|
+
this.version = e, this.buffer.writeByte(ot), this.buffer.writeVarUInt(e >>> 0);
|
|
69
69
|
}
|
|
70
70
|
buffer = new F();
|
|
71
71
|
closed = !1;
|
|
@@ -92,7 +92,7 @@ class v {
|
|
|
92
92
|
this.writeFixedField(e, 2, () => this.buffer.writeByte(r ? 1 : 0));
|
|
93
93
|
}
|
|
94
94
|
writeGuidField(e, r) {
|
|
95
|
-
const s = r instanceof
|
|
95
|
+
const s = r instanceof f ? r.asBytes() : r;
|
|
96
96
|
if (s.length !== 16)
|
|
97
97
|
throw new Error("Guid payload must be 16 bytes");
|
|
98
98
|
this.writeFixedField(e, 14, () => this.buffer.writeBytes(s));
|
|
@@ -119,8 +119,8 @@ class v {
|
|
|
119
119
|
writeDictionaryField(e, r, s, n) {
|
|
120
120
|
const i = new z(r, s);
|
|
121
121
|
n(i);
|
|
122
|
-
const
|
|
123
|
-
this.writeVariableField(e, 10,
|
|
122
|
+
const o = i.finish();
|
|
123
|
+
this.writeVariableField(e, 10, o);
|
|
124
124
|
}
|
|
125
125
|
finish() {
|
|
126
126
|
return this.closed || (this.buffer.writeByte(at), this.closed = !0, this.cached = this.buffer.toUint8Array()), this.cached;
|
|
@@ -132,7 +132,7 @@ class v {
|
|
|
132
132
|
this.writeFieldHeader(e, r, s.length), this.buffer.writeBytes(s);
|
|
133
133
|
}
|
|
134
134
|
writeFieldHeader(e, r, s) {
|
|
135
|
-
this.buffer.writeUInt32(e >>> 0), this.buffer.writeByte(Y(r)),
|
|
135
|
+
this.buffer.writeUInt32(e >>> 0), this.buffer.writeByte(Y(r)), oe(r) && this.buffer.writeVarUInt(s >>> 0);
|
|
136
136
|
}
|
|
137
137
|
}
|
|
138
138
|
class W {
|
|
@@ -188,7 +188,7 @@ class W {
|
|
|
188
188
|
14
|
|
189
189
|
/* Guid */
|
|
190
190
|
), this.count++;
|
|
191
|
-
const r = e instanceof
|
|
191
|
+
const r = e instanceof f ? e.asBytes() : e;
|
|
192
192
|
if (r.length !== 16)
|
|
193
193
|
throw new Error("Guid payload must be 16 bytes");
|
|
194
194
|
this.payload.writeBytes(r);
|
|
@@ -243,7 +243,7 @@ class W {
|
|
|
243
243
|
}
|
|
244
244
|
ensureElementType(e) {
|
|
245
245
|
if (this.elementType !== e)
|
|
246
|
-
throw new Error(`Array element type is ${
|
|
246
|
+
throw new Error(`Array element type is ${C[this.elementType]}, expected ${C[e]}`);
|
|
247
247
|
}
|
|
248
248
|
}
|
|
249
249
|
class z {
|
|
@@ -321,7 +321,7 @@ class re {
|
|
|
321
321
|
14
|
|
322
322
|
/* Guid */
|
|
323
323
|
);
|
|
324
|
-
const r = e instanceof
|
|
324
|
+
const r = e instanceof f ? e.asBytes() : e;
|
|
325
325
|
if (r.length !== 16)
|
|
326
326
|
throw new Error("Guid payload must be 16 bytes");
|
|
327
327
|
this.payload.writeBytes(r), this.keyWritten = !0;
|
|
@@ -387,7 +387,7 @@ class re {
|
|
|
387
387
|
14
|
|
388
388
|
/* Guid */
|
|
389
389
|
);
|
|
390
|
-
const r = e instanceof
|
|
390
|
+
const r = e instanceof f ? e.asBytes() : e;
|
|
391
391
|
if (r.length !== 16)
|
|
392
392
|
throw new Error("Guid payload must be 16 bytes");
|
|
393
393
|
this.payload.writeBytes(r), this.valueWritten = !0;
|
|
@@ -451,11 +451,11 @@ class re {
|
|
|
451
451
|
}
|
|
452
452
|
ensureKeyType(e) {
|
|
453
453
|
if (this.keyType !== e)
|
|
454
|
-
throw new Error(`Dictionary key type is ${
|
|
454
|
+
throw new Error(`Dictionary key type is ${C[this.keyType]}, expected ${C[e]}`);
|
|
455
455
|
}
|
|
456
456
|
ensureValueType(e) {
|
|
457
457
|
if (this.valueType !== e)
|
|
458
|
-
throw new Error(`Dictionary value type is ${
|
|
458
|
+
throw new Error(`Dictionary value type is ${C[this.valueType]}, expected ${C[e]}`);
|
|
459
459
|
}
|
|
460
460
|
}
|
|
461
461
|
class m {
|
|
@@ -468,7 +468,7 @@ class m {
|
|
|
468
468
|
const r = G(e);
|
|
469
469
|
if (r.length < 2)
|
|
470
470
|
throw new Error("Teleport payload too short");
|
|
471
|
-
if (r[0] !==
|
|
471
|
+
if (r[0] !== ot || r[r.length - 1] !== at)
|
|
472
472
|
throw new Error("Teleport object missing markers");
|
|
473
473
|
const s = { offset: 1 }, n = y(r, s, "InvalidLength");
|
|
474
474
|
return new m(r, n, s.offset);
|
|
@@ -478,7 +478,7 @@ class m {
|
|
|
478
478
|
return null;
|
|
479
479
|
if (this.offset + 5 > this.buffer.length)
|
|
480
480
|
throw new Error("Teleport object truncated");
|
|
481
|
-
const e =
|
|
481
|
+
const e = ae(this.buffer, this.offset);
|
|
482
482
|
this.offset += 4;
|
|
483
483
|
const r = this.buffer[this.offset++], s = r >> 4 & 15;
|
|
484
484
|
if ((r & 15) !== 0)
|
|
@@ -486,10 +486,10 @@ class m {
|
|
|
486
486
|
const n = P(s);
|
|
487
487
|
let i;
|
|
488
488
|
if (n >= 0)
|
|
489
|
-
|
|
489
|
+
S(this.buffer, this.offset, n), i = this.buffer.subarray(this.offset, this.offset + n), this.offset += n;
|
|
490
490
|
else {
|
|
491
|
-
const
|
|
492
|
-
|
|
491
|
+
const o = { offset: this.offset }, a = y(this.buffer, o, "InvalidLength");
|
|
492
|
+
S(this.buffer, o.offset, a), i = this.buffer.subarray(o.offset, o.offset + a), this.offset = o.offset + a;
|
|
493
493
|
}
|
|
494
494
|
return new se(e, s, i);
|
|
495
495
|
}
|
|
@@ -562,7 +562,7 @@ class O {
|
|
|
562
562
|
return this.ensureType(
|
|
563
563
|
14
|
|
564
564
|
/* Guid */
|
|
565
|
-
),
|
|
565
|
+
), f.fromBytes(this.payload);
|
|
566
566
|
}
|
|
567
567
|
asObject() {
|
|
568
568
|
return this.ensureType(
|
|
@@ -584,7 +584,7 @@ class O {
|
|
|
584
584
|
}
|
|
585
585
|
ensureType(e) {
|
|
586
586
|
if (this.type !== e)
|
|
587
|
-
throw new Error(`Teleport value has type ${
|
|
587
|
+
throw new Error(`Teleport value has type ${C[this.type]}, expected ${C[e]}`);
|
|
588
588
|
}
|
|
589
589
|
}
|
|
590
590
|
class se extends O {
|
|
@@ -633,20 +633,20 @@ class J {
|
|
|
633
633
|
case 6:
|
|
634
634
|
case 14: {
|
|
635
635
|
const e = P(this.elementType);
|
|
636
|
-
|
|
636
|
+
S(this.payload, this.offset, e);
|
|
637
637
|
const r = this.payload.subarray(this.offset, this.offset + e);
|
|
638
638
|
return this.offset += e, new M(this.elementType, r);
|
|
639
639
|
}
|
|
640
640
|
case 12:
|
|
641
641
|
case 13: {
|
|
642
642
|
const e = { offset: this.offset }, r = y(this.payload, e, "ArrayMalformed");
|
|
643
|
-
|
|
643
|
+
S(this.payload, e.offset, r);
|
|
644
644
|
const s = this.payload.subarray(e.offset, e.offset + r);
|
|
645
645
|
return this.offset = e.offset + r, new M(this.elementType, s);
|
|
646
646
|
}
|
|
647
647
|
case 11: {
|
|
648
648
|
const e = { offset: this.offset }, r = y(this.payload, e, "ArrayMalformed");
|
|
649
|
-
|
|
649
|
+
S(this.payload, e.offset, r);
|
|
650
650
|
const s = this.payload.subarray(e.offset, e.offset + r);
|
|
651
651
|
return this.offset = e.offset + r, new M(11, s);
|
|
652
652
|
}
|
|
@@ -659,7 +659,7 @@ class J {
|
|
|
659
659
|
return this.offset += e, new M(10, r);
|
|
660
660
|
}
|
|
661
661
|
default:
|
|
662
|
-
throw new Error(`Unsupported array element type ${
|
|
662
|
+
throw new Error(`Unsupported array element type ${C[this.elementType]}`);
|
|
663
663
|
}
|
|
664
664
|
}
|
|
665
665
|
}
|
|
@@ -699,13 +699,13 @@ class q {
|
|
|
699
699
|
readKey() {
|
|
700
700
|
const e = P(this.keyType);
|
|
701
701
|
if (e >= 0) {
|
|
702
|
-
|
|
702
|
+
S(this.payload, this.offset, e);
|
|
703
703
|
const r = this.payload.subarray(this.offset, this.offset + e);
|
|
704
704
|
return this.offset += e, new O(this.keyType, r);
|
|
705
705
|
}
|
|
706
706
|
if (this.keyType === 12 || this.keyType === 13) {
|
|
707
707
|
const r = { offset: this.offset }, s = y(this.payload, r, "DictMalformed");
|
|
708
|
-
|
|
708
|
+
S(this.payload, r.offset, s);
|
|
709
709
|
const n = this.payload.subarray(r.offset, r.offset + s);
|
|
710
710
|
return this.offset = r.offset + s, new O(this.keyType, n);
|
|
711
711
|
}
|
|
@@ -716,13 +716,13 @@ class q {
|
|
|
716
716
|
case 12:
|
|
717
717
|
case 13: {
|
|
718
718
|
const e = { offset: this.offset }, r = y(this.payload, e, "DictMalformed");
|
|
719
|
-
|
|
719
|
+
S(this.payload, e.offset, r);
|
|
720
720
|
const s = this.payload.subarray(e.offset, e.offset + r);
|
|
721
721
|
return this.offset = e.offset + r, new O(this.valueType, s);
|
|
722
722
|
}
|
|
723
723
|
case 11: {
|
|
724
724
|
const e = { offset: this.offset }, r = y(this.payload, e, "DictMalformed");
|
|
725
|
-
|
|
725
|
+
S(this.payload, e.offset, r);
|
|
726
726
|
const s = this.payload.subarray(e.offset, e.offset + r);
|
|
727
727
|
return this.offset = e.offset + r, new O(11, s);
|
|
728
728
|
}
|
|
@@ -744,12 +744,12 @@ class q {
|
|
|
744
744
|
case 14:
|
|
745
745
|
case 1: {
|
|
746
746
|
const e = P(this.valueType);
|
|
747
|
-
|
|
747
|
+
S(this.payload, this.offset, e);
|
|
748
748
|
const r = this.payload.subarray(this.offset, this.offset + e);
|
|
749
749
|
return this.offset += e, new O(this.valueType, r);
|
|
750
750
|
}
|
|
751
751
|
default:
|
|
752
|
-
throw new Error(`Unsupported dictionary value type ${
|
|
752
|
+
throw new Error(`Unsupported dictionary value type ${C[this.valueType]}`);
|
|
753
753
|
}
|
|
754
754
|
}
|
|
755
755
|
}
|
|
@@ -758,7 +758,7 @@ class ne {
|
|
|
758
758
|
this.key = e, this.value = r;
|
|
759
759
|
}
|
|
760
760
|
}
|
|
761
|
-
class
|
|
761
|
+
class f {
|
|
762
762
|
constructor(e) {
|
|
763
763
|
this.bytes = e;
|
|
764
764
|
}
|
|
@@ -768,19 +768,19 @@ class c {
|
|
|
768
768
|
const r = e.replace(/-/g, "");
|
|
769
769
|
if (r.length !== 32)
|
|
770
770
|
throw new Error("Guid string must be 32 hex characters");
|
|
771
|
-
const s = new Uint8Array(16), n =
|
|
772
|
-
|
|
773
|
-
for (let
|
|
774
|
-
s[8 +
|
|
775
|
-
return new
|
|
771
|
+
const s = new Uint8Array(16), n = f.parseHexSlice(r, 0, 8), i = f.parseHexSlice(r, 8, 4), o = f.parseHexSlice(r, 12, 4);
|
|
772
|
+
f.writeUInt32LE(s, 0, n), f.writeUInt16LE(s, 4, i), f.writeUInt16LE(s, 6, o);
|
|
773
|
+
for (let a = 0; a < 8; a++)
|
|
774
|
+
s[8 + a] = f.parseHexSlice(r, 16 + a * 2, 2);
|
|
775
|
+
return new f(s);
|
|
776
776
|
}
|
|
777
777
|
static fromBytes(e) {
|
|
778
778
|
if (e.length !== 16)
|
|
779
779
|
throw new Error("Guid byte array must be 16 bytes");
|
|
780
|
-
return new
|
|
780
|
+
return new f(Uint8Array.from(e));
|
|
781
781
|
}
|
|
782
782
|
static createZero() {
|
|
783
|
-
return new
|
|
783
|
+
return new f(new Uint8Array(16));
|
|
784
784
|
}
|
|
785
785
|
static createRandom() {
|
|
786
786
|
const e = new Uint8Array(16), r = globalThis.crypto;
|
|
@@ -789,14 +789,14 @@ class c {
|
|
|
789
789
|
else
|
|
790
790
|
for (let s = 0; s < e.length; s++)
|
|
791
791
|
e[s] = Math.floor(Math.random() * 256);
|
|
792
|
-
return e[6] = e[6] & 15 | 64, e[8] = e[8] & 63 | 128, new
|
|
792
|
+
return e[6] = e[6] & 15 | 64, e[8] = e[8] & 63 | 128, new f(e);
|
|
793
793
|
}
|
|
794
794
|
toString() {
|
|
795
795
|
const e = this.bytes;
|
|
796
796
|
return [
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
797
|
+
f.toHex(f.readUInt32LE(e, 0), 8),
|
|
798
|
+
f.toHex(f.readUInt16LE(e, 4), 4),
|
|
799
|
+
f.toHex(f.readUInt16LE(e, 6), 4),
|
|
800
800
|
st(e.subarray(8, 10)),
|
|
801
801
|
st(e.subarray(10, 16))
|
|
802
802
|
].join("-");
|
|
@@ -885,8 +885,8 @@ function y(t, e, r) {
|
|
|
885
885
|
throw new Error(r);
|
|
886
886
|
let s = 0, n = 0, i = 0;
|
|
887
887
|
for (; e.offset < t.length; ) {
|
|
888
|
-
const
|
|
889
|
-
if (i++, s |= (
|
|
888
|
+
const o = t[e.offset++];
|
|
889
|
+
if (i++, s |= (o & 127) << n, (o & 128) === 0) {
|
|
890
890
|
if (i !== ie(s))
|
|
891
891
|
throw new Error("Teleport VarUInt is not canonical");
|
|
892
892
|
return s >>> 0;
|
|
@@ -904,7 +904,7 @@ function Y(t, e = 0) {
|
|
|
904
904
|
throw new Error("Teleport flags must fit into 4 bits");
|
|
905
905
|
return (t & 15) << 4 | e & 15;
|
|
906
906
|
}
|
|
907
|
-
function
|
|
907
|
+
function oe(t) {
|
|
908
908
|
return t === 12 || t === 13 || t === 9 || t === 11 || t === 10;
|
|
909
909
|
}
|
|
910
910
|
function P(t) {
|
|
@@ -931,11 +931,11 @@ function Q(t) {
|
|
|
931
931
|
if (t === 9 || t === 11 || t === 10 || t === 1)
|
|
932
932
|
throw new Error("Dictionary keys must be primitive Teleport types");
|
|
933
933
|
}
|
|
934
|
-
function
|
|
934
|
+
function S(t, e, r) {
|
|
935
935
|
if (e < 0 || r < 0 || e + r > t.length)
|
|
936
936
|
throw new Error("Teleport payload exceeds bounds");
|
|
937
937
|
}
|
|
938
|
-
function
|
|
938
|
+
function ae(t, e) {
|
|
939
939
|
return (t[e] | t[e + 1] << 8 | t[e + 2] << 16 | t[e + 3] << 24) >>> 0;
|
|
940
940
|
}
|
|
941
941
|
function Z(t, e) {
|
|
@@ -944,15 +944,15 @@ function Z(t, e) {
|
|
|
944
944
|
const r = t[e], s = r >> 4 & 15;
|
|
945
945
|
if ((r & 15) !== 0)
|
|
946
946
|
throw new Error("Array flags must be zero");
|
|
947
|
-
const n = { offset: e + 1 }, i = y(t, n, "ArrayMalformed"),
|
|
948
|
-
if (
|
|
949
|
-
const I =
|
|
950
|
-
return
|
|
947
|
+
const n = { offset: e + 1 }, i = y(t, n, "ArrayMalformed"), o = P(s);
|
|
948
|
+
if (o >= 0) {
|
|
949
|
+
const I = o * i;
|
|
950
|
+
return S(t, n.offset, I), n.offset + I - e;
|
|
951
951
|
}
|
|
952
|
-
let
|
|
952
|
+
let a = n.offset;
|
|
953
953
|
for (let I = 0; I < i; I++)
|
|
954
|
-
|
|
955
|
-
return
|
|
954
|
+
a = X(s, t, a, "ArrayMalformed");
|
|
955
|
+
return a - e;
|
|
956
956
|
}
|
|
957
957
|
function tt(t, e) {
|
|
958
958
|
if (e + 2 > t.length)
|
|
@@ -962,31 +962,31 @@ function tt(t, e) {
|
|
|
962
962
|
throw new Error("Dictionary key/value flags must be zero");
|
|
963
963
|
Q(r);
|
|
964
964
|
const n = { offset: e + 2 }, i = y(t, n, "DictMalformed");
|
|
965
|
-
let
|
|
966
|
-
for (let
|
|
967
|
-
|
|
968
|
-
return
|
|
965
|
+
let o = n.offset;
|
|
966
|
+
for (let a = 0; a < i; a++)
|
|
967
|
+
o = X(r, t, o, "DictMalformed"), o = X(s, t, o, "DictMalformed");
|
|
968
|
+
return o - e;
|
|
969
969
|
}
|
|
970
|
-
function
|
|
970
|
+
function X(t, e, r, s) {
|
|
971
971
|
const n = P(t);
|
|
972
972
|
if (n >= 0)
|
|
973
|
-
return
|
|
973
|
+
return S(e, r, n), r + n;
|
|
974
974
|
switch (t) {
|
|
975
975
|
case 12:
|
|
976
976
|
case 13: {
|
|
977
|
-
const i = { offset: r },
|
|
978
|
-
return
|
|
977
|
+
const i = { offset: r }, o = y(e, i, s);
|
|
978
|
+
return S(e, i.offset, o), i.offset + o;
|
|
979
979
|
}
|
|
980
980
|
case 11: {
|
|
981
|
-
const i = { offset: r },
|
|
982
|
-
return
|
|
981
|
+
const i = { offset: r }, o = y(e, i, s);
|
|
982
|
+
return S(e, i.offset, o), i.offset + o;
|
|
983
983
|
}
|
|
984
984
|
case 9:
|
|
985
985
|
return r + Z(e, r);
|
|
986
986
|
case 10:
|
|
987
987
|
return r + tt(e, r);
|
|
988
988
|
default:
|
|
989
|
-
throw new Error(`Unsupported Teleport type ${
|
|
989
|
+
throw new Error(`Unsupported Teleport type ${C[t]}`);
|
|
990
990
|
}
|
|
991
991
|
}
|
|
992
992
|
function st(t) {
|
|
@@ -995,20 +995,20 @@ function st(t) {
|
|
|
995
995
|
function G(t) {
|
|
996
996
|
return t instanceof Uint8Array ? t : new Uint8Array(t);
|
|
997
997
|
}
|
|
998
|
-
var ot = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.Opus = 1] = "Opus", t[t.Mp3 = 2] = "Mp3", t[t.RawPcm16 = 3] = "RawPcm16", t))(ot || {}), lt = /* @__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))(lt || {}), It = /* @__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))(It || {}), Et = /* @__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))(Et || {}), _t = /* @__PURE__ */ ((t) => (t[t.Face = 0] = "Face", t[t.Hands = 1] = "Hands", t[t.Pose = 2] = "Pose", t[t.All = 3] = "All", t))(_t || {}), ht = /* @__PURE__ */ ((t) => (t[t.Css = 0] = "Css", t[t.Flutter = 1] = "Flutter", t))(ht || {}), ut = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.Machine = 1] = "Machine", t[t.Human = 2] = "Human", t))(ut || {}), ct = /* @__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))(ct || {}), ft = /* @__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))(ft || {}), Tt = /* @__PURE__ */ ((t) => (t[t.Local = 0] = "Local", t[t.Cloud = 1] = "Cloud", t))(Tt || {}), At = /* @__PURE__ */ ((t) => (t[t.Bundle = 0] = "Bundle", t[t.GitSource = 1] = "GitSource", t))(At || {}), L = /* @__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_ON_CLIENT_LEFT_AFTER_GRACE_PERIOD = 65560] = "CORE_ON_CLIENT_LEFT_AFTER_GRACE_PERIOD", 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.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.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))(L || {});
|
|
998
|
+
var lt = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.Opus = 1] = "Opus", t[t.Mp3 = 2] = "Mp3", t[t.RawPcm16 = 3] = "RawPcm16", t))(lt || {}), 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 || {}), Et = /* @__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))(Et || {}), _t = /* @__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))(_t || {}), ht = /* @__PURE__ */ ((t) => (t[t.Face = 0] = "Face", t[t.Hands = 1] = "Hands", t[t.Pose = 2] = "Pose", t[t.All = 3] = "All", t))(ht || {}), ut = /* @__PURE__ */ ((t) => (t[t.Css = 0] = "Css", t[t.Flutter = 1] = "Flutter", t))(ut || {}), ct = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.Machine = 1] = "Machine", t[t.Human = 2] = "Human", t))(ct || {}), ft = /* @__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))(ft || {}), Tt = /* @__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))(Tt || {}), At = /* @__PURE__ */ ((t) => (t[t.Local = 0] = "Local", t[t.Cloud = 1] = "Cloud", t))(At || {}), Nt = /* @__PURE__ */ ((t) => (t[t.Bundle = 0] = "Bundle", t[t.GitSource = 1] = "GitSource", t))(Nt || {}), L = /* @__PURE__ */ ((t) => (t[t.NONE = 0] = "NONE", t[t.CONSTANT_GROUP_BITS = 15] = "CONSTANT_GROUP_BITS", t[t.CONSTANT_GROUP_OFFSET = 16] = "CONSTANT_GROUP_OFFSET", t[t.GROUP_CORE = 65536] = "GROUP_CORE", t[t.CORE_AUTH_RESPONSE = 65537] = "CORE_AUTH_RESPONSE", t[t.CORE_AUTH_TICKET = 65538] = "CORE_AUTH_TICKET", t[t.CORE_GLOBAL_STATE = 65539] = "CORE_GLOBAL_STATE", t[t.CORE_ON_SERVER_STATUS_PING = 65540] = "CORE_ON_SERVER_STATUS_PING", t[t.CORE_ON_USER_JOINED = 65541] = "CORE_ON_USER_JOINED", t[t.CORE_ON_USER_LEFT = 65542] = "CORE_ON_USER_LEFT", t[t.CORE_ON_CLIENT_JOINED = 65543] = "CORE_ON_CLIENT_JOINED", t[t.CORE_ON_CLIENT_LEFT = 65544] = "CORE_ON_CLIENT_LEFT", t[t.CORE_ON_SERVER_STARTED = 65545] = "CORE_ON_SERVER_STARTED", t[t.CORE_ON_SERVER_STOPPED = 65546] = "CORE_ON_SERVER_STOPPED", t[t.CORE_ON_SERVER_STOPPING = 65547] = "CORE_ON_SERVER_STOPPING", t[t.CORE_ON_CLIENT_READY = 65548] = "CORE_ON_CLIENT_READY", t[t.CORE_CLIENT_READY = 65549] = "CORE_CLIENT_READY", t[t.CORE_SERVER_INIT = 65550] = "CORE_SERVER_INIT", t[t.CORE_ON_PLUGIN_RELOADED = 65551] = "CORE_ON_PLUGIN_RELOADED", t[t.CORE_SERVER_START = 65552] = "CORE_SERVER_START", t[t.CORE_SERVER_STOP = 65553] = "CORE_SERVER_STOP", t[t.CORE_ON_HOSTED_SERVER_EXIT = 65554] = "CORE_ON_HOSTED_SERVER_EXIT", t[t.CORE_DYNAMIC_CONFIG = 65555] = "CORE_DYNAMIC_CONFIG", t[t.CORE_PROXY_RPC_AUTH_TICKET = 65556] = "CORE_PROXY_RPC_AUTH_TICKET", t[t.CORE_SERVER_INIT2 = 65557] = "CORE_SERVER_INIT2", t[t.CORE_UPDATE_CLIENT_CONTEXT = 65558] = "CORE_UPDATE_CLIENT_CONTEXT", t[t.CORE_BACKGROUND_WORK_ACTIVE = 65559] = "CORE_BACKGROUND_WORK_ACTIVE", t[t.CORE_RESET_IDLE = 65560] = "CORE_RESET_IDLE", t[t.CORE_CLIENT_DISCONNECTING = 65561] = "CORE_CLIENT_DISCONNECTING", t[t.CORE_ON_APP_READY = 65562] = "CORE_ON_APP_READY", t[t.CORE_WEBRTC_OFFER = 65566] = "CORE_WEBRTC_OFFER", t[t.CORE_WEBRTC_ANSWER = 65567] = "CORE_WEBRTC_ANSWER", t[t.CORE_WEBRTC_ICE_CANDIDATE = 65568] = "CORE_WEBRTC_ICE_CANDIDATE", t[t.CORE_WEBRTC_READY = 65569] = "CORE_WEBRTC_READY", t[t.CORE_WEBRTC_AUDIO_SEGMENT = 65570] = "CORE_WEBRTC_AUDIO_SEGMENT", t[t.CORE_WEBRTC_TRACK_MAP = 65571] = "CORE_WEBRTC_TRACK_MAP", t[t.CORE_WEBRTC_VIDEO_CAPTURE = 65572] = "CORE_WEBRTC_VIDEO_CAPTURE", t[t.CORE_RELAY_AGENT_AUTH = 65576] = "CORE_RELAY_AGENT_AUTH", t[t.CORE_RELAY_AGENT_AUTH_RESULT = 65577] = "CORE_RELAY_AGENT_AUTH_RESULT", t[t.CORE_RELAY_HEARTBEAT = 65578] = "CORE_RELAY_HEARTBEAT", t[t.CORE_RELAY_TCP_CONNECTION_OPENED = 65579] = "CORE_RELAY_TCP_CONNECTION_OPENED", t[t.CORE_RELAY_TCP_CONNECTION_CLOSED = 65580] = "CORE_RELAY_TCP_CONNECTION_CLOSED", t[t.CORE_RELAY_TCP_DATA = 65581] = "CORE_RELAY_TCP_DATA", t[t.CORE_RELAY_UDP_DATA = 65582] = "CORE_RELAY_UDP_DATA", t[t.CORE_RELAY_ADD_TUNNEL = 65583] = "CORE_RELAY_ADD_TUNNEL", t[t.CORE_RELAY_TUNNEL_ADDED = 65584] = "CORE_RELAY_TUNNEL_ADDED", t[t.CORE_RELAY_REMOVE_TUNNEL = 65585] = "CORE_RELAY_REMOVE_TUNNEL", t[t.CORE_IKON_SERVER_ENDPOINT_HOST_INFO = 65586] = "CORE_IKON_SERVER_ENDPOINT_HOST_INFO", t[t.CORE_CLIENT_INITIALIZATION = 65587] = "CORE_CLIENT_INITIALIZATION", t[t.CORE_CLIENT_LIFECYCLE_BATCH = 65588] = "CORE_CLIENT_LIFECYCLE_BATCH", t[t.CORE_APP_CONFIG = 65589] = "CORE_APP_CONFIG", t[t.GROUP_KEEPALIVE = 131072] = "GROUP_KEEPALIVE", t[t.KEEPALIVE_REQUEST = 131073] = "KEEPALIVE_REQUEST", t[t.KEEPALIVE_RESPONSE = 131074] = "KEEPALIVE_RESPONSE", t[t.GROUP_EVENTS = 262144] = "GROUP_EVENTS", t[t.EVENTS_PROFILE_UPDATE = 262145] = "EVENTS_PROFILE_UPDATE", t[t.EVENTS_CHANNEL_COMPLETE = 262146] = "EVENTS_CHANNEL_COMPLETE", t[t.EVENTS_SPEECH_PLAYBACK_COMPLETE = 262147] = "EVENTS_SPEECH_PLAYBACK_COMPLETE", t[t.GROUP_ANALYTICS = 524288] = "GROUP_ANALYTICS", t[t.ANALYTICS_LOGS = 524289] = "ANALYTICS_LOGS", t[t.ANALYTICS_EVENTS = 524290] = "ANALYTICS_EVENTS", t[t.ANALYTICS_USAGES = 524291] = "ANALYTICS_USAGES", t[t.ANALYTICS_USAGE = 524292] = "ANALYTICS_USAGE", t[t.ANALYTICS_SPECIAL_LOG = 524293] = "ANALYTICS_SPECIAL_LOG", t[t.ANALYTICS_PROCESSING_UPDATE = 524294] = "ANALYTICS_PROCESSING_UPDATE", t[t.ANALYTICS_REACTIVE_PROCESSING_UPDATE = 524295] = "ANALYTICS_REACTIVE_PROCESSING_UPDATE", t[t.ANALYTICS_IKON_PROXY_SERVER_STATS = 524296] = "ANALYTICS_IKON_PROXY_SERVER_STATS", t[t.ANALYTICS_IKON_RELAY_SERVER_STATS = 524297] = "ANALYTICS_IKON_RELAY_SERVER_STATS", t[t.ANALYTICS_IKON_TURN_SERVER_STATS = 524298] = "ANALYTICS_IKON_TURN_SERVER_STATS", t[t.GROUP_ACTIONS = 1048576] = "GROUP_ACTIONS", t[t.ACTION_CALL = 1048577] = "ACTION_CALL", t[t.ACTION_ACTIVE = 1048578] = "ACTION_ACTIVE", t[t.ACTION_TEXT_OUTPUT = 1048579] = "ACTION_TEXT_OUTPUT", t[t.ACTION_TEXT_OUTPUT_DELTA = 1048580] = "ACTION_TEXT_OUTPUT_DELTA", t[t.ACTION_TEXT_OUTPUT_DELTA_FULL = 1048581] = "ACTION_TEXT_OUTPUT_DELTA_FULL", t[t.ACTION_SET_STATE = 1048582] = "ACTION_SET_STATE", t[t.ACTION_TAP = 1048583] = "ACTION_TAP", t[t.ACTION_PAN = 1048584] = "ACTION_PAN", t[t.ACTION_ZOOM = 1048585] = "ACTION_ZOOM", t[t.ACTION_FILE_UPLOAD_BEGIN = 1048586] = "ACTION_FILE_UPLOAD_BEGIN", t[t.ACTION_FILE_UPLOAD_DATA = 1048587] = "ACTION_FILE_UPLOAD_DATA", t[t.ACTION_FILE_UPLOAD_ACK = 1048588] = "ACTION_FILE_UPLOAD_ACK", t[t.ACTION_FILE_UPLOAD_END = 1048589] = "ACTION_FILE_UPLOAD_END", t[t.ACTION_FILE_UPLOAD_RESULT = 1048590] = "ACTION_FILE_UPLOAD_RESULT", t[t.ACTION_OPEN_CHANNEL = 1048591] = "ACTION_OPEN_CHANNEL", t[t.ACTION_OPEN_EXTERNAL_URL = 1048592] = "ACTION_OPEN_EXTERNAL_URL", t[t.ACTION_UI_OPEN_VIEW = 1048593] = "ACTION_UI_OPEN_VIEW", t[t.ACTION_UI_CLOSE_VIEW = 1048594] = "ACTION_UI_CLOSE_VIEW", t[t.ACTION_UI_BLOCKING_BEGIN = 1048595] = "ACTION_UI_BLOCKING_BEGIN", t[t.ACTION_UI_BLOCKING_END = 1048596] = "ACTION_UI_BLOCKING_END", t[t.ACTION_UI_UPDATE_TEXT_DELTA = 1048597] = "ACTION_UI_UPDATE_TEXT_DELTA", t[t.ACTION_UI_DELETE_CONTAINER = 1048598] = "ACTION_UI_DELETE_CONTAINER", t[t.ACTION_UPDATE_GFX_SHADER = 1048599] = "ACTION_UPDATE_GFX_SHADER", t[t.ACTION_FUNCTION_REGISTER = 1048600] = "ACTION_FUNCTION_REGISTER", t[t.ACTION_FUNCTION_CALL = 1048601] = "ACTION_FUNCTION_CALL", t[t.ACTION_FUNCTION_RESULT = 1048602] = "ACTION_FUNCTION_RESULT", t[t.ACTION_GENERATE_ANSWER = 1048603] = "ACTION_GENERATE_ANSWER", t[t.ACTION_REGENERATE_ANSWER = 1048604] = "ACTION_REGENERATE_ANSWER", t[t.ACTION_CLEAR_CHAT_MESSAGE_HISTORY = 1048605] = "ACTION_CLEAR_CHAT_MESSAGE_HISTORY", t[t.ACTION_CLEAR_STATE = 1048606] = "ACTION_CLEAR_STATE", t[t.ACTION_RELOAD_CHANNELS = 1048607] = "ACTION_RELOAD_CHANNELS", t[t.ACTION_RELOAD_PROFILE = 1048608] = "ACTION_RELOAD_PROFILE", t[t.ACTION_CLASSIFICATION_RESULT = 1048609] = "ACTION_CLASSIFICATION_RESULT", t[t.ACTION_AUDIO_STOP = 1048610] = "ACTION_AUDIO_STOP", t[t.ACTION_CALL_TEXT = 1048611] = "ACTION_CALL_TEXT", t[t.ACTION_RELOAD_APPLICATION = 1048612] = "ACTION_RELOAD_APPLICATION", t[t.ACTION_CANCEL_GENERATION = 1048613] = "ACTION_CANCEL_GENERATION", t[t.ACTION_UI_SET_CONTAINER_STABLE = 1048614] = "ACTION_UI_SET_CONTAINER_STABLE", t[t.ACTION_SPEECH_RECOGNIZED = 1048615] = "ACTION_SPEECH_RECOGNIZED", t[t.ACTION_CALL_RESULT = 1048616] = "ACTION_CALL_RESULT", t[t.ACTION_RELOAD_PROVIDER = 1048617] = "ACTION_RELOAD_PROVIDER", t[t.ACTION_DOWNLOAD = 1048618] = "ACTION_DOWNLOAD", t[t.ACTION_SCROLL_TO_CONTAINER = 1048619] = "ACTION_SCROLL_TO_CONTAINER", t[t.ACTION_UI_CLEAR_STREAM = 1048620] = "ACTION_UI_CLEAR_STREAM", t[t.ACTION_PLAY_SOUND = 1048621] = "ACTION_PLAY_SOUND", t[t.ACTION_ENTER_FULLSCREEN = 1048622] = "ACTION_ENTER_FULLSCREEN", t[t.ACTION_STOP_SOUND = 1048623] = "ACTION_STOP_SOUND", t[t.ACTION_START_RECORDING = 1048624] = "ACTION_START_RECORDING", t[t.ACTION_STOP_RECORDING = 1048625] = "ACTION_STOP_RECORDING", t[t.ACTION_FUNCTION_ENUMERATION_ITEM = 1048627] = "ACTION_FUNCTION_ENUMERATION_ITEM", t[t.ACTION_FUNCTION_ENUMERATION_END = 1048628] = "ACTION_FUNCTION_ENUMERATION_END", t[t.ACTION_FUNCTION_CANCEL = 1048629] = "ACTION_FUNCTION_CANCEL", t[t.ACTION_FUNCTION_DISPOSE = 1048630] = "ACTION_FUNCTION_DISPOSE", t[t.ACTION_FUNCTION_ERROR = 1048631] = "ACTION_FUNCTION_ERROR", t[t.ACTION_FUNCTION_ACK = 1048632] = "ACTION_FUNCTION_ACK", t[t.ACTION_FUNCTION_AWAITING_APPROVAL = 1048633] = "ACTION_FUNCTION_AWAITING_APPROVAL", t[t.ACTION_FUNCTION_APPROVAL_REQUIRED = 1048634] = "ACTION_FUNCTION_APPROVAL_REQUIRED", t[t.ACTION_FUNCTION_APPROVAL_RESPONSE = 1048635] = "ACTION_FUNCTION_APPROVAL_RESPONSE", t[t.UI_UPDATE_ACK = 1048636] = "UI_UPDATE_ACK", t[t.ACTION_CALL2 = 1048637] = "ACTION_CALL2", t[t.ACTION_FUNCTION_REGISTER_BATCH = 1048638] = "ACTION_FUNCTION_REGISTER_BATCH", t[t.ACTION_TRIGGER_GIT_PULL = 1048639] = "ACTION_TRIGGER_GIT_PULL", t[t.ACTION_FILE_UPLOAD_CALLBACK = 1048640] = "ACTION_FILE_UPLOAD_CALLBACK", t[t.ACTION_CUSTOM_USER_MESSAGE = 1048641] = "ACTION_CUSTOM_USER_MESSAGE", t[t.ACTION_URL_CHANGED = 1048642] = "ACTION_URL_CHANGED", t[t.ACTION_FILE_UPLOAD_PRE_START2 = 1048643] = "ACTION_FILE_UPLOAD_PRE_START2", t[t.ACTION_FILE_UPLOAD_PRE_START_RESPONSE2 = 1048644] = "ACTION_FILE_UPLOAD_PRE_START_RESPONSE2", t[t.ACTION_FILE_UPLOAD_START2 = 1048645] = "ACTION_FILE_UPLOAD_START2", t[t.ACTION_FILE_UPLOAD_START_RESPONSE2 = 1048646] = "ACTION_FILE_UPLOAD_START_RESPONSE2", t[t.ACTION_FILE_UPLOAD_DATA2 = 1048647] = "ACTION_FILE_UPLOAD_DATA2", t[t.ACTION_FILE_UPLOAD_ACK2 = 1048648] = "ACTION_FILE_UPLOAD_ACK2", t[t.ACTION_FILE_UPLOAD_END2 = 1048649] = "ACTION_FILE_UPLOAD_END2", t[t.ACTION_FILE_UPLOAD_COMPLETE2 = 1048650] = "ACTION_FILE_UPLOAD_COMPLETE2", t[t.ACTION_FUNCTION_ENUMERATION_ITEM_BATCH = 1048651] = "ACTION_FUNCTION_ENUMERATION_ITEM_BATCH", t[t.ACTION_CALL_ACK = 1048652] = "ACTION_CALL_ACK", t[t.ACTION_TRIGGER_CRON = 1048653] = "ACTION_TRIGGER_CRON", t[t.GROUP_UI = 2097152] = "GROUP_UI", t[t.UI_STREAM_BEGIN = 2097153] = "UI_STREAM_BEGIN", t[t.UI_STREAM_END = 2097154] = "UI_STREAM_END", t[t.UI_CONTAINER_BEGIN = 2097155] = "UI_CONTAINER_BEGIN", t[t.UI_CONTAINER_END = 2097156] = "UI_CONTAINER_END", t[t.UI_SECTION_BEGIN = 2097157] = "UI_SECTION_BEGIN", t[t.UI_SECTION_END = 2097158] = "UI_SECTION_END", t[t.UI_LIST_BEGIN = 2097159] = "UI_LIST_BEGIN", t[t.UI_LIST_ITEM = 2097160] = "UI_LIST_ITEM", t[t.UI_LIST_END = 2097161] = "UI_LIST_END", t[t.UI_TEXT = 2097162] = "UI_TEXT", t[t.UI_HEADER = 2097163] = "UI_HEADER", t[t.UI_SEPARATOR = 2097164] = "UI_SEPARATOR", t[t.UI_BUTTON = 2097165] = "UI_BUTTON", t[t.UI_ICON_BUTTON = 2097166] = "UI_ICON_BUTTON", t[t.UI_IMAGE = 2097167] = "UI_IMAGE", t[t.UI_FILE = 2097168] = "UI_FILE", t[t.UI_BADGE = 2097169] = "UI_BADGE", t[t.UI_CONTENT_LINK = 2097170] = "UI_CONTENT_LINK", t[t.UI_MAP = 2097171] = "UI_MAP", t[t.UI_VEGA_CHART = 2097172] = "UI_VEGA_CHART", t[t.UI_ICON = 2097173] = "UI_ICON", t[t.UI_FILE_UPLOAD_SECTION_BEGIN = 2097174] = "UI_FILE_UPLOAD_SECTION_BEGIN", t[t.UI_FILE_UPLOAD_SECTION_END = 2097175] = "UI_FILE_UPLOAD_SECTION_END", t[t.UI_MATERIAL_SYMBOL = 2097176] = "UI_MATERIAL_SYMBOL", t[t.UI_BUTTON_BEGIN = 2097177] = "UI_BUTTON_BEGIN", t[t.UI_BUTTON_END = 2097178] = "UI_BUTTON_END", t[t.UI_CONTAINER_DELETE = 2097179] = "UI_CONTAINER_DELETE", t[t.UI_INPUT_TEXT = 2097180] = "UI_INPUT_TEXT", t[t.UI_PROGRESS_BAR = 2097181] = "UI_PROGRESS_BAR", t[t.UI_UPDATE_BEGIN = 2097182] = "UI_UPDATE_BEGIN", t[t.UI_UPDATE_END = 2097183] = "UI_UPDATE_END", t[t.UI_AUTOCOMPLETE = 2097184] = "UI_AUTOCOMPLETE", t[t.UI_CHECKBOX = 2097185] = "UI_CHECKBOX", t[t.UI_QS = 2097186] = "UI_QS", t[t.UI_ELEMENT = 2097187] = "UI_ELEMENT", t[t.UI_STYLES = 2097188] = "UI_STYLES", t[t.UI_SVG = 2097189] = "UI_SVG", t[t.UI_UPDATE = 2097190] = "UI_UPDATE", t[t.UI_INIT = 2097191] = "UI_INIT", t[t.UI_STYLES_BATCH = 2097192] = "UI_STYLES_BATCH", t[t.UI_STYLES_DELETE = 2097193] = "UI_STYLES_DELETE", t[t.GROUP_COMMON = 4128768] = "GROUP_COMMON", t[t.GROUP_AUDIO = 4194304] = "GROUP_AUDIO", t[t.AUDIO_STREAM_BEGIN = 4194305] = "AUDIO_STREAM_BEGIN", t[t.AUDIO_STREAM_END = 4194306] = "AUDIO_STREAM_END", t[t.AUDIO_FRAME = 4194307] = "AUDIO_FRAME", t[t.AUDIO_FRAME_VOLUME = 4194308] = "AUDIO_FRAME_VOLUME", t[t.AUDIO_FRAME2 = 4194309] = "AUDIO_FRAME2", t[t.AUDIO_SHAPE_FRAME = 4194310] = "AUDIO_SHAPE_FRAME", t[t.GROUP_VIDEO = 8388608] = "GROUP_VIDEO", t[t.VIDEO_STREAM_BEGIN = 8388609] = "VIDEO_STREAM_BEGIN", t[t.VIDEO_STREAM_END = 8388610] = "VIDEO_STREAM_END", t[t.VIDEO_FRAME = 8388611] = "VIDEO_FRAME", t[t.VIDEO_REQUEST_IDR_FRAME = 8388612] = "VIDEO_REQUEST_IDR_FRAME", t[t.VIDEO_INVALIDATE_FRAME = 8388613] = "VIDEO_INVALIDATE_FRAME", t[t.GROUP_TRACKING = 16777216] = "GROUP_TRACKING", t[t.TRACKING_STREAM_BEGIN = 16777217] = "TRACKING_STREAM_BEGIN", t[t.TRACKING_STREAM_END = 16777218] = "TRACKING_STREAM_END", t[t.TRACKING_FRAME = 16777219] = "TRACKING_FRAME", t[t.GROUP_SCENE = 33554432] = "GROUP_SCENE", t[t.SCENE_MESH = 33554433] = "SCENE_MESH", t[t.SCENE_ARRAY = 33554434] = "SCENE_ARRAY", t[t.GROUP_ALL = 67043328] = "GROUP_ALL", t[t.GROUP_APP_LOCAL = 1073741824] = "GROUP_APP_LOCAL", t[t.CONSTANT_GROUP_MASK = 2147418112] = "CONSTANT_GROUP_MASK", t))(L || {});
|
|
999
999
|
const le = 161083277, Ie = 265814330, Ee = 1368629611, _e = 2431514951, he = 2514959030, ue = 2745379226, ce = 3282782683, fe = 3284746250, Te = 4101844078;
|
|
1000
1000
|
function St(t) {
|
|
1001
1001
|
const e = {};
|
|
1002
|
-
return
|
|
1002
|
+
return dt(e), e;
|
|
1003
1003
|
}
|
|
1004
|
-
function
|
|
1005
|
-
return t.StreamId = "", t.Description = "", t.SourceType = "", t.Codec =
|
|
1004
|
+
function dt(t) {
|
|
1005
|
+
return t.StreamId = "", t.Description = "", t.SourceType = "", t.Codec = lt.Unknown, t.CodecDetails = "", t.SampleRate = 0, t.Channels = 0, t.ShapeSets = void 0, t.CorrelationId = void 0, t;
|
|
1006
1006
|
}
|
|
1007
1007
|
function Ae(t, e) {
|
|
1008
1008
|
const r = e ?? St();
|
|
1009
|
-
return
|
|
1009
|
+
return dt(r), Ne(t, r), r;
|
|
1010
1010
|
}
|
|
1011
|
-
function
|
|
1011
|
+
function Ne(t, e) {
|
|
1012
1012
|
let r;
|
|
1013
1013
|
for (; (r = t.next()) !== null; )
|
|
1014
1014
|
switch (r.fieldId) {
|
|
@@ -1022,7 +1022,7 @@ function Se(t, e) {
|
|
|
1022
1022
|
e.ShapeSets = void 0;
|
|
1023
1023
|
break;
|
|
1024
1024
|
}
|
|
1025
|
-
e.ShapeSets =
|
|
1025
|
+
e.ShapeSets = Se(r.asArray());
|
|
1026
1026
|
break;
|
|
1027
1027
|
}
|
|
1028
1028
|
case Ee: {
|
|
@@ -1065,7 +1065,7 @@ function Se(t, e) {
|
|
|
1065
1065
|
}
|
|
1066
1066
|
}
|
|
1067
1067
|
}
|
|
1068
|
-
function
|
|
1068
|
+
function Se(t) {
|
|
1069
1069
|
const e = [];
|
|
1070
1070
|
let r;
|
|
1071
1071
|
for (; (r = t.next()) !== null; )
|
|
@@ -1075,14 +1075,14 @@ function Ne(t) {
|
|
|
1075
1075
|
const de = 1107713536, ye = 1154362099, we = 1185721362;
|
|
1076
1076
|
function Ce(t) {
|
|
1077
1077
|
const e = {};
|
|
1078
|
-
return
|
|
1078
|
+
return yt(e), e;
|
|
1079
1079
|
}
|
|
1080
|
-
function
|
|
1080
|
+
function yt(t) {
|
|
1081
1081
|
return t.SetId = 0, t.Name = "", t.ShapeNames = [], t;
|
|
1082
1082
|
}
|
|
1083
1083
|
function Ue(t, e) {
|
|
1084
1084
|
const r = e ?? Ce();
|
|
1085
|
-
return
|
|
1085
|
+
return yt(r), De(t, r), r;
|
|
1086
1086
|
}
|
|
1087
1087
|
function De(t, e) {
|
|
1088
1088
|
let r;
|
|
@@ -1112,19 +1112,19 @@ function Re(t) {
|
|
|
1112
1112
|
e.push(r.asString());
|
|
1113
1113
|
return e;
|
|
1114
1114
|
}
|
|
1115
|
-
const Le = 76337612, Oe = 185396121, me = 250031587, ge = 388632637, Fe = 417197284, be =
|
|
1116
|
-
function
|
|
1115
|
+
const Le = 76337612, Oe = 185396121, me = 250031587, ge = 388632637, Fe = 417197284, be = 425972532, Pe = 469070965, ke = 470595159, Me = 594855258, Be = 617065367, Ve = 661691032, pe = 781727218, ve = 834078886, Ge = 1043273762, xe = 1236999138, He = 1286979607, Ye = 1368629611, We = 1437068682, Ke = 1715899485, $e = 1942830531, Xe = 1999510636, je = 2033288346, ze = 2079864626, Je = 2142346422, qe = 2228539873, Qe = 2232517119, Ze = 2598291686, tr = 2719718823, er = 2810953526, rr = 2840065720, sr = 2885165957, nr = 3542818975, ir = 3586157513, or = 3717933110, ar = 4062655306;
|
|
1116
|
+
function lr(t) {
|
|
1117
1117
|
const e = {};
|
|
1118
|
-
return
|
|
1118
|
+
return wt(e), e;
|
|
1119
1119
|
}
|
|
1120
|
-
function
|
|
1121
|
-
return t.ContextType =
|
|
1120
|
+
function wt(t) {
|
|
1121
|
+
return t.ContextType = Et.Unknown, t.UserType = ct.Unknown, t.PayloadType = _t.Unknown, t.Description = "", t.UserId = "", t.DeviceId = "", t.ProductId = "", t.VersionId = "", t.InstallId = "", t.Locale = "", t.SessionId = -1, t.IsInternal = !1, t.IsReady = !1, t.HasInput = !1, t.ChannelLocale = "", t.EmbeddedSpaceId = "", t.AuthSessionId = "", t.ReceiveAllMessages = !1, t.PreciseJoinedAt = 0n, t.UserAgent = "", t.ClientType = It.Unknown, t.UniqueSessionId = "", t.Parameters = /* @__PURE__ */ Object.create(null), t.SdkType = Tt.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;
|
|
1122
1122
|
}
|
|
1123
|
-
function
|
|
1124
|
-
const r = e ??
|
|
1125
|
-
return
|
|
1123
|
+
function Ir(t, e) {
|
|
1124
|
+
const r = e ?? lr();
|
|
1125
|
+
return wt(r), Er(t, r), r;
|
|
1126
1126
|
}
|
|
1127
|
-
function
|
|
1127
|
+
function Er(t, e) {
|
|
1128
1128
|
let r;
|
|
1129
1129
|
for (; (r = t.next()) !== null; )
|
|
1130
1130
|
switch (r.fieldId) {
|
|
@@ -1155,137 +1155,157 @@ function ar(t, e) {
|
|
|
1155
1155
|
}
|
|
1156
1156
|
case be: {
|
|
1157
1157
|
if (r.isNull) throw new Error();
|
|
1158
|
-
e.
|
|
1158
|
+
e.SoftDisconnectAt = r.asUInt64();
|
|
1159
1159
|
break;
|
|
1160
1160
|
}
|
|
1161
1161
|
case Pe: {
|
|
1162
1162
|
if (r.isNull) throw new Error();
|
|
1163
|
-
e.
|
|
1163
|
+
e.HasInput = r.asBool();
|
|
1164
1164
|
break;
|
|
1165
1165
|
}
|
|
1166
1166
|
case ke: {
|
|
1167
1167
|
if (r.isNull) throw new Error();
|
|
1168
|
-
e.
|
|
1168
|
+
e.UserType = r.asInt32();
|
|
1169
1169
|
break;
|
|
1170
1170
|
}
|
|
1171
1171
|
case Me: {
|
|
1172
1172
|
if (r.isNull) throw new Error();
|
|
1173
|
-
e.
|
|
1173
|
+
e.InitialPath = r.asString();
|
|
1174
|
+
break;
|
|
1175
|
+
}
|
|
1176
|
+
case Be: {
|
|
1177
|
+
if (r.isNull) throw new Error();
|
|
1178
|
+
e.IsSoftDisconnected = r.asBool();
|
|
1174
1179
|
break;
|
|
1175
1180
|
}
|
|
1176
1181
|
case Ve: {
|
|
1182
|
+
if (r.isNull) throw new Error();
|
|
1183
|
+
e.SupportsCompression = r.asBool();
|
|
1184
|
+
break;
|
|
1185
|
+
}
|
|
1186
|
+
case pe: {
|
|
1187
|
+
if (r.isNull) throw new Error();
|
|
1188
|
+
e.UserId = r.asString();
|
|
1189
|
+
break;
|
|
1190
|
+
}
|
|
1191
|
+
case ve: {
|
|
1177
1192
|
if (r.isNull) throw new Error();
|
|
1178
1193
|
e.ProductId = r.asString();
|
|
1179
1194
|
break;
|
|
1180
1195
|
}
|
|
1181
|
-
case
|
|
1196
|
+
case Ge: {
|
|
1182
1197
|
if (r.isNull) throw new Error();
|
|
1183
1198
|
e.AuthSessionId = r.asString();
|
|
1184
1199
|
break;
|
|
1185
1200
|
}
|
|
1186
|
-
case
|
|
1201
|
+
case xe: {
|
|
1187
1202
|
if (r.isNull) throw new Error();
|
|
1188
1203
|
e.ReceiveAllMessages = r.asBool();
|
|
1189
1204
|
break;
|
|
1190
1205
|
}
|
|
1191
|
-
case
|
|
1206
|
+
case He: {
|
|
1192
1207
|
if (r.isNull) throw new Error();
|
|
1193
1208
|
e.ViewportHeight = r.asInt32();
|
|
1194
1209
|
break;
|
|
1195
1210
|
}
|
|
1196
|
-
case
|
|
1211
|
+
case Ye: {
|
|
1197
1212
|
if (r.isNull) throw new Error();
|
|
1198
1213
|
e.Description = r.asString();
|
|
1199
1214
|
break;
|
|
1200
1215
|
}
|
|
1201
|
-
case
|
|
1216
|
+
case We: {
|
|
1217
|
+
if (r.isNull) throw new Error();
|
|
1218
|
+
e.SdkCapability = r.asInt32();
|
|
1219
|
+
break;
|
|
1220
|
+
}
|
|
1221
|
+
case Ke: {
|
|
1202
1222
|
if (r.isNull) throw new Error();
|
|
1203
1223
|
e.Locale = r.asString();
|
|
1204
1224
|
break;
|
|
1205
1225
|
}
|
|
1206
|
-
case
|
|
1226
|
+
case $e: {
|
|
1207
1227
|
if (r.isNull) throw new Error();
|
|
1208
1228
|
e.SdkType = r.asInt32();
|
|
1209
1229
|
break;
|
|
1210
1230
|
}
|
|
1211
|
-
case
|
|
1231
|
+
case Xe: {
|
|
1212
1232
|
if (r.isNull) throw new Error();
|
|
1213
1233
|
e.SessionId = r.asInt32();
|
|
1214
1234
|
break;
|
|
1215
1235
|
}
|
|
1216
|
-
case
|
|
1236
|
+
case je: {
|
|
1217
1237
|
if (r.isNull) throw new Error();
|
|
1218
1238
|
e.ViewportWidth = r.asInt32();
|
|
1219
1239
|
break;
|
|
1220
1240
|
}
|
|
1221
|
-
case
|
|
1241
|
+
case ze: {
|
|
1222
1242
|
if (r.isNull) throw new Error();
|
|
1223
1243
|
e.PreciseJoinedAt = r.asUInt64();
|
|
1224
1244
|
break;
|
|
1225
1245
|
}
|
|
1226
|
-
case
|
|
1246
|
+
case Je: {
|
|
1227
1247
|
if (r.isNull) throw new Error();
|
|
1228
1248
|
e.PayloadType = r.asInt32();
|
|
1229
1249
|
break;
|
|
1230
1250
|
}
|
|
1231
|
-
case
|
|
1251
|
+
case qe: {
|
|
1232
1252
|
if (r.isNull) throw new Error();
|
|
1233
1253
|
e.StyleFormat = r.asInt32();
|
|
1234
1254
|
break;
|
|
1235
1255
|
}
|
|
1236
|
-
case
|
|
1256
|
+
case Qe: {
|
|
1237
1257
|
if (r.isNull) throw new Error();
|
|
1238
1258
|
e.IsTouchDevice = r.asBool();
|
|
1239
1259
|
break;
|
|
1240
1260
|
}
|
|
1241
|
-
case
|
|
1261
|
+
case Ze: {
|
|
1242
1262
|
if (r.isNull) throw new Error();
|
|
1243
1263
|
e.VersionId = r.asString();
|
|
1244
1264
|
break;
|
|
1245
1265
|
}
|
|
1246
|
-
case
|
|
1266
|
+
case tr: {
|
|
1247
1267
|
if (r.isNull) throw new Error();
|
|
1248
1268
|
e.UniqueSessionId = r.asString();
|
|
1249
1269
|
break;
|
|
1250
1270
|
}
|
|
1251
|
-
case
|
|
1271
|
+
case er: {
|
|
1252
1272
|
if (r.isNull) throw new Error();
|
|
1253
1273
|
e.ClientType = r.asInt32();
|
|
1254
1274
|
break;
|
|
1255
1275
|
}
|
|
1256
|
-
case
|
|
1276
|
+
case rr: {
|
|
1257
1277
|
if (r.isNull) throw new Error();
|
|
1258
1278
|
e.IsReady = r.asBool();
|
|
1259
1279
|
break;
|
|
1260
1280
|
}
|
|
1261
|
-
case
|
|
1281
|
+
case sr: {
|
|
1262
1282
|
if (r.isNull) throw new Error();
|
|
1263
|
-
e.Parameters =
|
|
1283
|
+
e.Parameters = _r(r.asDictionary());
|
|
1264
1284
|
break;
|
|
1265
1285
|
}
|
|
1266
|
-
case
|
|
1286
|
+
case nr: {
|
|
1267
1287
|
if (r.isNull) throw new Error();
|
|
1268
1288
|
e.Timezone = r.asString();
|
|
1269
1289
|
break;
|
|
1270
1290
|
}
|
|
1271
|
-
case
|
|
1291
|
+
case ir: {
|
|
1272
1292
|
if (r.isNull) throw new Error();
|
|
1273
1293
|
e.IsInternal = r.asBool();
|
|
1274
1294
|
break;
|
|
1275
1295
|
}
|
|
1276
|
-
case
|
|
1296
|
+
case or: {
|
|
1277
1297
|
if (r.isNull) throw new Error();
|
|
1278
1298
|
e.ChannelLocale = r.asString();
|
|
1279
1299
|
break;
|
|
1280
1300
|
}
|
|
1281
|
-
case
|
|
1301
|
+
case ar: {
|
|
1282
1302
|
if (r.isNull) throw new Error();
|
|
1283
1303
|
e.EmbeddedSpaceId = r.asString();
|
|
1284
1304
|
break;
|
|
1285
1305
|
}
|
|
1286
1306
|
}
|
|
1287
1307
|
}
|
|
1288
|
-
function
|
|
1308
|
+
function _r(t) {
|
|
1289
1309
|
const e = /* @__PURE__ */ Object.create(null);
|
|
1290
1310
|
let r;
|
|
1291
1311
|
for (; (r = t.next()) !== null; ) {
|
|
@@ -1294,289 +1314,289 @@ function or(t) {
|
|
|
1294
1314
|
}
|
|
1295
1315
|
return e;
|
|
1296
1316
|
}
|
|
1297
|
-
const
|
|
1298
|
-
function
|
|
1317
|
+
const hr = 703025676, ur = 814454131, cr = 972460562, fr = 976255570, Tr = 1368629611, Ar = 1479280922, Nr = 1533537016, Sr = 1909301063, dr = 2274386296, yr = 2603556958, wr = 2885165957, Cr = 3568439632;
|
|
1318
|
+
function Ur(t) {
|
|
1299
1319
|
const e = {};
|
|
1300
|
-
return
|
|
1320
|
+
return Ct(e), e;
|
|
1301
1321
|
}
|
|
1302
|
-
function
|
|
1303
|
-
return t.FunctionId =
|
|
1322
|
+
function Ct(t) {
|
|
1323
|
+
return t.FunctionId = f.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;
|
|
1304
1324
|
}
|
|
1305
|
-
function
|
|
1306
|
-
const r = e ??
|
|
1307
|
-
return
|
|
1325
|
+
function Dr(t, e) {
|
|
1326
|
+
const r = e ?? Ur();
|
|
1327
|
+
return Ct(r), Rr(t, r), r;
|
|
1308
1328
|
}
|
|
1309
|
-
function
|
|
1329
|
+
function Rr(t, e) {
|
|
1310
1330
|
let r;
|
|
1311
1331
|
for (; (r = t.next()) !== null; )
|
|
1312
1332
|
switch (r.fieldId) {
|
|
1313
|
-
case
|
|
1333
|
+
case hr: {
|
|
1314
1334
|
if (r.isNull) throw new Error();
|
|
1315
1335
|
e.ResultTypeName = r.asString();
|
|
1316
1336
|
break;
|
|
1317
1337
|
}
|
|
1318
|
-
case
|
|
1338
|
+
case ur: {
|
|
1319
1339
|
if (r.isNull) throw new Error();
|
|
1320
1340
|
e.FunctionName = r.asString();
|
|
1321
1341
|
break;
|
|
1322
1342
|
}
|
|
1323
|
-
case
|
|
1343
|
+
case cr: {
|
|
1324
1344
|
if (r.isNull) throw new Error();
|
|
1325
1345
|
e.EnumerableItemTypeName = r.asString();
|
|
1326
1346
|
break;
|
|
1327
1347
|
}
|
|
1328
|
-
case
|
|
1348
|
+
case fr: {
|
|
1329
1349
|
if (r.isNull) throw new Error();
|
|
1330
1350
|
e.FunctionId = r.asGuid();
|
|
1331
1351
|
break;
|
|
1332
1352
|
}
|
|
1333
|
-
case
|
|
1353
|
+
case Tr: {
|
|
1334
1354
|
if (r.isNull) throw new Error();
|
|
1335
1355
|
e.Description = r.asString();
|
|
1336
1356
|
break;
|
|
1337
1357
|
}
|
|
1338
|
-
case
|
|
1358
|
+
case Ar: {
|
|
1339
1359
|
if (r.isNull) throw new Error();
|
|
1340
1360
|
e.IsCancellable = r.asBool();
|
|
1341
1361
|
break;
|
|
1342
1362
|
}
|
|
1343
|
-
case
|
|
1363
|
+
case Nr: {
|
|
1344
1364
|
if (r.isNull) throw new Error();
|
|
1345
1365
|
e.RequiresInstance = r.asBool();
|
|
1346
1366
|
break;
|
|
1347
1367
|
}
|
|
1348
|
-
case
|
|
1368
|
+
case Sr: {
|
|
1349
1369
|
if (r.isNull) throw new Error();
|
|
1350
|
-
e.Versions =
|
|
1370
|
+
e.Versions = Lr(r.asArray());
|
|
1351
1371
|
break;
|
|
1352
1372
|
}
|
|
1353
|
-
case
|
|
1373
|
+
case dr: {
|
|
1354
1374
|
if (r.isNull) throw new Error();
|
|
1355
1375
|
e.LlmInlineResult = r.asBool();
|
|
1356
1376
|
break;
|
|
1357
1377
|
}
|
|
1358
|
-
case
|
|
1378
|
+
case yr: {
|
|
1359
1379
|
if (r.isNull) throw new Error();
|
|
1360
1380
|
e.IsEnumerable = r.asBool();
|
|
1361
1381
|
break;
|
|
1362
1382
|
}
|
|
1363
|
-
case
|
|
1383
|
+
case wr: {
|
|
1364
1384
|
if (r.isNull) throw new Error();
|
|
1365
|
-
e.Parameters =
|
|
1385
|
+
e.Parameters = Or(r.asArray());
|
|
1366
1386
|
break;
|
|
1367
1387
|
}
|
|
1368
|
-
case
|
|
1388
|
+
case Cr: {
|
|
1369
1389
|
if (r.isNull) throw new Error();
|
|
1370
1390
|
e.LlmCallOnlyOnce = r.asBool();
|
|
1371
1391
|
break;
|
|
1372
1392
|
}
|
|
1373
1393
|
}
|
|
1374
1394
|
}
|
|
1375
|
-
function
|
|
1395
|
+
function Lr(t) {
|
|
1376
1396
|
const e = [];
|
|
1377
1397
|
let r;
|
|
1378
1398
|
for (; (r = t.next()) !== null; )
|
|
1379
1399
|
e.push(r.asString());
|
|
1380
1400
|
return e;
|
|
1381
1401
|
}
|
|
1382
|
-
function
|
|
1402
|
+
function Or(t) {
|
|
1383
1403
|
const e = [];
|
|
1384
1404
|
let r;
|
|
1385
1405
|
for (; (r = t.next()) !== null; )
|
|
1386
|
-
e.push(
|
|
1406
|
+
e.push(vr(r.asObject()));
|
|
1387
1407
|
return e;
|
|
1388
1408
|
}
|
|
1389
|
-
const
|
|
1390
|
-
function
|
|
1409
|
+
const mr = 607861992, gr = 894485888, Fr = 972460562, br = 1368629611, Pr = 1883521406, kr = 2603556958, Mr = 3609695522, Br = 4075263697, Vr = 4257460908;
|
|
1410
|
+
function pr(t) {
|
|
1391
1411
|
const e = {};
|
|
1392
|
-
return
|
|
1412
|
+
return Ut(e), e;
|
|
1393
1413
|
}
|
|
1394
|
-
function
|
|
1414
|
+
function Ut(t) {
|
|
1395
1415
|
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;
|
|
1396
1416
|
}
|
|
1397
|
-
function
|
|
1398
|
-
const r = e ??
|
|
1399
|
-
return
|
|
1417
|
+
function vr(t, e) {
|
|
1418
|
+
const r = e ?? pr();
|
|
1419
|
+
return Ut(r), Gr(t, r), r;
|
|
1400
1420
|
}
|
|
1401
|
-
function
|
|
1421
|
+
function Gr(t, e) {
|
|
1402
1422
|
let r;
|
|
1403
1423
|
for (; (r = t.next()) !== null; )
|
|
1404
1424
|
switch (r.fieldId) {
|
|
1405
|
-
case
|
|
1425
|
+
case mr: {
|
|
1406
1426
|
if (r.isNull) throw new Error();
|
|
1407
1427
|
e.HasDefaultValue = r.asBool();
|
|
1408
1428
|
break;
|
|
1409
1429
|
}
|
|
1410
|
-
case
|
|
1430
|
+
case gr: {
|
|
1411
1431
|
if (r.isNull) throw new Error();
|
|
1412
1432
|
e.DefaultValueJson = r.asString();
|
|
1413
1433
|
break;
|
|
1414
1434
|
}
|
|
1415
|
-
case
|
|
1435
|
+
case Fr: {
|
|
1416
1436
|
if (r.isNull) throw new Error();
|
|
1417
1437
|
e.EnumerableItemTypeName = r.asString();
|
|
1418
1438
|
break;
|
|
1419
1439
|
}
|
|
1420
|
-
case
|
|
1440
|
+
case br: {
|
|
1421
1441
|
if (r.isNull) throw new Error();
|
|
1422
1442
|
e.Description = r.asString();
|
|
1423
1443
|
break;
|
|
1424
1444
|
}
|
|
1425
|
-
case
|
|
1445
|
+
case Pr: {
|
|
1426
1446
|
if (r.isNull) throw new Error();
|
|
1427
1447
|
e.DefaultValueData = r.asBinary();
|
|
1428
1448
|
break;
|
|
1429
1449
|
}
|
|
1430
|
-
case
|
|
1450
|
+
case kr: {
|
|
1431
1451
|
if (r.isNull) throw new Error();
|
|
1432
1452
|
e.IsEnumerable = r.asBool();
|
|
1433
1453
|
break;
|
|
1434
1454
|
}
|
|
1435
|
-
case
|
|
1455
|
+
case Mr: {
|
|
1436
1456
|
if (r.isNull) throw new Error();
|
|
1437
1457
|
e.TypeName = r.asString();
|
|
1438
1458
|
break;
|
|
1439
1459
|
}
|
|
1440
|
-
case
|
|
1460
|
+
case Br: {
|
|
1441
1461
|
if (r.isNull) throw new Error();
|
|
1442
1462
|
e.ParameterName = r.asString();
|
|
1443
1463
|
break;
|
|
1444
1464
|
}
|
|
1445
|
-
case
|
|
1465
|
+
case Vr: {
|
|
1446
1466
|
if (r.isNull) throw new Error();
|
|
1447
1467
|
e.ParameterIndex = r.asInt32();
|
|
1448
1468
|
break;
|
|
1449
1469
|
}
|
|
1450
1470
|
}
|
|
1451
1471
|
}
|
|
1452
|
-
const
|
|
1453
|
-
function
|
|
1472
|
+
const xr = 3167053791, Hr = 3342364356, Yr = 3612929027;
|
|
1473
|
+
function Dt(t) {
|
|
1454
1474
|
const e = {};
|
|
1455
|
-
return
|
|
1475
|
+
return Rt(e), e;
|
|
1456
1476
|
}
|
|
1457
|
-
function
|
|
1458
|
-
return t.Category = "", t.Type =
|
|
1477
|
+
function Rt(t) {
|
|
1478
|
+
return t.Category = "", t.Type = ht.Face, t.FaceBlendshapes = [], t;
|
|
1459
1479
|
}
|
|
1460
|
-
function
|
|
1461
|
-
const r = e ??
|
|
1462
|
-
return
|
|
1480
|
+
function Wr(t, e) {
|
|
1481
|
+
const r = e ?? Dt();
|
|
1482
|
+
return Rt(r), Kr(t, r), r;
|
|
1463
1483
|
}
|
|
1464
|
-
function
|
|
1484
|
+
function Kr(t, e) {
|
|
1465
1485
|
let r;
|
|
1466
1486
|
for (; (r = t.next()) !== null; )
|
|
1467
1487
|
switch (r.fieldId) {
|
|
1468
|
-
case
|
|
1488
|
+
case xr: {
|
|
1469
1489
|
if (r.isNull) throw new Error();
|
|
1470
1490
|
e.Type = r.asInt32();
|
|
1471
1491
|
break;
|
|
1472
1492
|
}
|
|
1473
|
-
case
|
|
1493
|
+
case Hr: {
|
|
1474
1494
|
if (r.isNull) throw new Error();
|
|
1475
|
-
e.FaceBlendshapes =
|
|
1495
|
+
e.FaceBlendshapes = $r(r.asArray());
|
|
1476
1496
|
break;
|
|
1477
1497
|
}
|
|
1478
|
-
case
|
|
1498
|
+
case Yr: {
|
|
1479
1499
|
if (r.isNull) throw new Error();
|
|
1480
1500
|
e.Category = r.asString();
|
|
1481
1501
|
break;
|
|
1482
1502
|
}
|
|
1483
1503
|
}
|
|
1484
1504
|
}
|
|
1485
|
-
function
|
|
1505
|
+
function $r(t) {
|
|
1486
1506
|
const e = [];
|
|
1487
1507
|
let r;
|
|
1488
1508
|
for (; (r = t.next()) !== null; )
|
|
1489
1509
|
e.push(r.asString());
|
|
1490
1510
|
return e;
|
|
1491
1511
|
}
|
|
1492
|
-
const
|
|
1493
|
-
function
|
|
1512
|
+
const Xr = 1405462580, jr = 2968276160;
|
|
1513
|
+
function zr(t) {
|
|
1494
1514
|
const e = {};
|
|
1495
|
-
return
|
|
1515
|
+
return Lt(e), e;
|
|
1496
1516
|
}
|
|
1497
|
-
function
|
|
1517
|
+
function Lt(t) {
|
|
1498
1518
|
return t.MimeType = "", t.Value = new Uint8Array(0), t;
|
|
1499
1519
|
}
|
|
1500
|
-
function
|
|
1501
|
-
const r = e ??
|
|
1502
|
-
return
|
|
1520
|
+
function Jr(t, e) {
|
|
1521
|
+
const r = e ?? zr();
|
|
1522
|
+
return Lt(r), qr(t, r), r;
|
|
1503
1523
|
}
|
|
1504
|
-
function
|
|
1524
|
+
function qr(t, e) {
|
|
1505
1525
|
let r;
|
|
1506
1526
|
for (; (r = t.next()) !== null; )
|
|
1507
1527
|
switch (r.fieldId) {
|
|
1508
|
-
case
|
|
1528
|
+
case Xr: {
|
|
1509
1529
|
if (r.isNull) throw new Error();
|
|
1510
1530
|
e.Value = r.asBinary();
|
|
1511
1531
|
break;
|
|
1512
1532
|
}
|
|
1513
|
-
case
|
|
1533
|
+
case jr: {
|
|
1514
1534
|
if (r.isNull) throw new Error();
|
|
1515
1535
|
e.MimeType = r.asString();
|
|
1516
1536
|
break;
|
|
1517
1537
|
}
|
|
1518
1538
|
}
|
|
1519
1539
|
}
|
|
1520
|
-
const
|
|
1521
|
-
function
|
|
1540
|
+
const Qr = 3612929027;
|
|
1541
|
+
function Ot(t) {
|
|
1522
1542
|
const e = {};
|
|
1523
|
-
return
|
|
1543
|
+
return mt(e), e;
|
|
1524
1544
|
}
|
|
1525
|
-
function
|
|
1545
|
+
function mt(t) {
|
|
1526
1546
|
return t.Category = "", t;
|
|
1527
1547
|
}
|
|
1528
|
-
function
|
|
1529
|
-
const r = e ??
|
|
1530
|
-
return
|
|
1548
|
+
function Zr(t, e) {
|
|
1549
|
+
const r = e ?? Ot();
|
|
1550
|
+
return mt(r), ts(t, r), r;
|
|
1531
1551
|
}
|
|
1532
|
-
function
|
|
1552
|
+
function ts(t, e) {
|
|
1533
1553
|
let r;
|
|
1534
1554
|
for (; (r = t.next()) !== null; )
|
|
1535
1555
|
switch (r.fieldId) {
|
|
1536
|
-
case
|
|
1556
|
+
case Qr: {
|
|
1537
1557
|
if (r.isNull) throw new Error();
|
|
1538
1558
|
e.Category = r.asString();
|
|
1539
1559
|
break;
|
|
1540
1560
|
}
|
|
1541
1561
|
}
|
|
1542
1562
|
}
|
|
1543
|
-
const
|
|
1544
|
-
function
|
|
1563
|
+
const es = 2097188, rs = 979822885, ss = 2374537704;
|
|
1564
|
+
function ns(t) {
|
|
1545
1565
|
const e = {};
|
|
1546
|
-
return
|
|
1566
|
+
return gt(e), e;
|
|
1547
1567
|
}
|
|
1548
|
-
function
|
|
1568
|
+
function gt(t) {
|
|
1549
1569
|
return t.StyleId = "", t.Style = /* @__PURE__ */ Object.create(null), t;
|
|
1550
1570
|
}
|
|
1551
|
-
function
|
|
1571
|
+
function is(t, e) {
|
|
1552
1572
|
const r = m.create(t);
|
|
1553
|
-
return
|
|
1573
|
+
return os(r, e);
|
|
1554
1574
|
}
|
|
1555
|
-
function
|
|
1556
|
-
const r = e ??
|
|
1557
|
-
return
|
|
1575
|
+
function os(t, e) {
|
|
1576
|
+
const r = e ?? ns();
|
|
1577
|
+
return gt(r), as(t, r), r;
|
|
1558
1578
|
}
|
|
1559
|
-
function
|
|
1579
|
+
function as(t, e) {
|
|
1560
1580
|
let r;
|
|
1561
1581
|
for (; (r = t.next()) !== null; )
|
|
1562
1582
|
switch (r.fieldId) {
|
|
1563
|
-
case
|
|
1583
|
+
case rs: {
|
|
1564
1584
|
if (r.isNull) throw new Error();
|
|
1565
1585
|
e.StyleId = r.asString();
|
|
1566
1586
|
break;
|
|
1567
1587
|
}
|
|
1568
|
-
case
|
|
1588
|
+
case ss: {
|
|
1569
1589
|
if (r.isNull) throw new Error();
|
|
1570
|
-
e.Style =
|
|
1590
|
+
e.Style = Is(r.asDictionary());
|
|
1571
1591
|
break;
|
|
1572
1592
|
}
|
|
1573
1593
|
}
|
|
1574
1594
|
}
|
|
1575
|
-
async function
|
|
1576
|
-
const r = await p(t,
|
|
1577
|
-
return
|
|
1595
|
+
async function ls(t, e) {
|
|
1596
|
+
const r = await p(t, es);
|
|
1597
|
+
return is(r, e);
|
|
1578
1598
|
}
|
|
1579
|
-
function
|
|
1599
|
+
function Is(t) {
|
|
1580
1600
|
const e = /* @__PURE__ */ Object.create(null);
|
|
1581
1601
|
let r;
|
|
1582
1602
|
for (; (r = t.next()) !== null; ) {
|
|
@@ -1585,73 +1605,73 @@ function is(t) {
|
|
|
1585
1605
|
}
|
|
1586
1606
|
return e;
|
|
1587
1607
|
}
|
|
1588
|
-
const
|
|
1589
|
-
function
|
|
1608
|
+
const Es = 2097192, _s = 2136687806;
|
|
1609
|
+
function hs(t) {
|
|
1590
1610
|
const e = {};
|
|
1591
|
-
return
|
|
1611
|
+
return Ft(e), e;
|
|
1592
1612
|
}
|
|
1593
|
-
function
|
|
1613
|
+
function Ft(t) {
|
|
1594
1614
|
return t.Styles = [], t;
|
|
1595
1615
|
}
|
|
1596
|
-
function
|
|
1616
|
+
function us(t, e) {
|
|
1597
1617
|
const r = m.create(t);
|
|
1598
|
-
return
|
|
1618
|
+
return cs(r, e);
|
|
1599
1619
|
}
|
|
1600
|
-
function
|
|
1601
|
-
const r = e ??
|
|
1602
|
-
return
|
|
1620
|
+
function cs(t, e) {
|
|
1621
|
+
const r = e ?? hs();
|
|
1622
|
+
return Ft(r), fs(t, r), r;
|
|
1603
1623
|
}
|
|
1604
|
-
function
|
|
1624
|
+
function fs(t, e) {
|
|
1605
1625
|
let r;
|
|
1606
1626
|
for (; (r = t.next()) !== null; )
|
|
1607
1627
|
switch (r.fieldId) {
|
|
1608
|
-
case
|
|
1628
|
+
case _s: {
|
|
1609
1629
|
if (r.isNull) throw new Error();
|
|
1610
|
-
e.Styles =
|
|
1630
|
+
e.Styles = As(r.asArray());
|
|
1611
1631
|
break;
|
|
1612
1632
|
}
|
|
1613
1633
|
}
|
|
1614
1634
|
}
|
|
1615
|
-
async function
|
|
1616
|
-
const r = await p(t,
|
|
1617
|
-
return
|
|
1635
|
+
async function Ts(t, e) {
|
|
1636
|
+
const r = await p(t, Es);
|
|
1637
|
+
return us(r, e);
|
|
1618
1638
|
}
|
|
1619
|
-
function
|
|
1639
|
+
function As(t) {
|
|
1620
1640
|
const e = [];
|
|
1621
1641
|
let r;
|
|
1622
1642
|
for (; (r = t.next()) !== null; )
|
|
1623
|
-
e.push(
|
|
1643
|
+
e.push(ys(r.asObject()));
|
|
1624
1644
|
return e;
|
|
1625
1645
|
}
|
|
1626
|
-
const
|
|
1627
|
-
function
|
|
1646
|
+
const Ns = 979822885, Ss = 2374537704;
|
|
1647
|
+
function ds(t) {
|
|
1628
1648
|
const e = {};
|
|
1629
|
-
return
|
|
1649
|
+
return bt(e), e;
|
|
1630
1650
|
}
|
|
1631
|
-
function
|
|
1651
|
+
function bt(t) {
|
|
1632
1652
|
return t.StyleId = "", t.Style = /* @__PURE__ */ Object.create(null), t;
|
|
1633
1653
|
}
|
|
1634
|
-
function
|
|
1635
|
-
const r = e ??
|
|
1636
|
-
return
|
|
1654
|
+
function ys(t, e) {
|
|
1655
|
+
const r = e ?? ds();
|
|
1656
|
+
return bt(r), ws(t, r), r;
|
|
1637
1657
|
}
|
|
1638
|
-
function
|
|
1658
|
+
function ws(t, e) {
|
|
1639
1659
|
let r;
|
|
1640
1660
|
for (; (r = t.next()) !== null; )
|
|
1641
1661
|
switch (r.fieldId) {
|
|
1642
|
-
case
|
|
1662
|
+
case Ns: {
|
|
1643
1663
|
if (r.isNull) throw new Error();
|
|
1644
1664
|
e.StyleId = r.asString();
|
|
1645
1665
|
break;
|
|
1646
1666
|
}
|
|
1647
|
-
case
|
|
1667
|
+
case Ss: {
|
|
1648
1668
|
if (r.isNull) throw new Error();
|
|
1649
|
-
e.Style =
|
|
1669
|
+
e.Style = Cs(r.asDictionary());
|
|
1650
1670
|
break;
|
|
1651
1671
|
}
|
|
1652
1672
|
}
|
|
1653
1673
|
}
|
|
1654
|
-
function
|
|
1674
|
+
function Cs(t) {
|
|
1655
1675
|
const e = /* @__PURE__ */ Object.create(null);
|
|
1656
1676
|
let r;
|
|
1657
1677
|
for (; (r = t.next()) !== null; ) {
|
|
@@ -1660,133 +1680,133 @@ function Ns(t) {
|
|
|
1660
1680
|
}
|
|
1661
1681
|
return e;
|
|
1662
1682
|
}
|
|
1663
|
-
const
|
|
1664
|
-
function
|
|
1683
|
+
const Us = 2097193, Ds = 1415642792;
|
|
1684
|
+
function Rs(t) {
|
|
1665
1685
|
const e = {};
|
|
1666
|
-
return
|
|
1686
|
+
return Pt(e), e;
|
|
1667
1687
|
}
|
|
1668
|
-
function
|
|
1688
|
+
function Pt(t) {
|
|
1669
1689
|
return t.StyleIds = [], t;
|
|
1670
1690
|
}
|
|
1671
|
-
function
|
|
1691
|
+
function Ls(t, e) {
|
|
1672
1692
|
const r = m.create(t);
|
|
1673
|
-
return
|
|
1693
|
+
return Os(r, e);
|
|
1674
1694
|
}
|
|
1675
|
-
function
|
|
1676
|
-
const r = e ??
|
|
1677
|
-
return
|
|
1695
|
+
function Os(t, e) {
|
|
1696
|
+
const r = e ?? Rs();
|
|
1697
|
+
return Pt(r), ms(t, r), r;
|
|
1678
1698
|
}
|
|
1679
|
-
function
|
|
1699
|
+
function ms(t, e) {
|
|
1680
1700
|
let r;
|
|
1681
1701
|
for (; (r = t.next()) !== null; )
|
|
1682
1702
|
switch (r.fieldId) {
|
|
1683
|
-
case
|
|
1703
|
+
case Ds: {
|
|
1684
1704
|
if (r.isNull) throw new Error();
|
|
1685
|
-
e.StyleIds =
|
|
1705
|
+
e.StyleIds = Fs(r.asArray());
|
|
1686
1706
|
break;
|
|
1687
1707
|
}
|
|
1688
1708
|
}
|
|
1689
1709
|
}
|
|
1690
|
-
async function
|
|
1691
|
-
const r = await p(t,
|
|
1692
|
-
return
|
|
1710
|
+
async function gs(t, e) {
|
|
1711
|
+
const r = await p(t, Us);
|
|
1712
|
+
return Ls(r, e);
|
|
1693
1713
|
}
|
|
1694
|
-
function
|
|
1714
|
+
function Fs(t) {
|
|
1695
1715
|
const e = [];
|
|
1696
1716
|
let r;
|
|
1697
1717
|
for (; (r = t.next()) !== null; )
|
|
1698
1718
|
e.push(r.asString());
|
|
1699
1719
|
return e;
|
|
1700
1720
|
}
|
|
1701
|
-
const
|
|
1702
|
-
function
|
|
1721
|
+
const bs = 2097190, Ps = 425183262, ks = 653781469;
|
|
1722
|
+
function Ms(t) {
|
|
1703
1723
|
const e = {};
|
|
1704
|
-
return
|
|
1724
|
+
return kt(e), e;
|
|
1705
1725
|
}
|
|
1706
|
-
function
|
|
1726
|
+
function kt(t) {
|
|
1707
1727
|
return t.Json = "", t.Payloads = /* @__PURE__ */ Object.create(null), t;
|
|
1708
1728
|
}
|
|
1709
|
-
function
|
|
1729
|
+
function Bs(t, e) {
|
|
1710
1730
|
const r = m.create(t);
|
|
1711
|
-
return
|
|
1731
|
+
return Vs(r, e);
|
|
1712
1732
|
}
|
|
1713
|
-
function
|
|
1714
|
-
const r = e ??
|
|
1715
|
-
return
|
|
1733
|
+
function Vs(t, e) {
|
|
1734
|
+
const r = e ?? Ms();
|
|
1735
|
+
return kt(r), ps(t, r), r;
|
|
1716
1736
|
}
|
|
1717
|
-
function
|
|
1737
|
+
function ps(t, e) {
|
|
1718
1738
|
let r;
|
|
1719
1739
|
for (; (r = t.next()) !== null; )
|
|
1720
1740
|
switch (r.fieldId) {
|
|
1721
|
-
case
|
|
1741
|
+
case Ps: {
|
|
1722
1742
|
if (r.isNull) throw new Error();
|
|
1723
1743
|
e.Json = r.asString();
|
|
1724
1744
|
break;
|
|
1725
1745
|
}
|
|
1726
|
-
case
|
|
1746
|
+
case ks: {
|
|
1727
1747
|
if (r.isNull) throw new Error();
|
|
1728
|
-
e.Payloads =
|
|
1748
|
+
e.Payloads = Gs(r.asDictionary());
|
|
1729
1749
|
break;
|
|
1730
1750
|
}
|
|
1731
1751
|
}
|
|
1732
1752
|
}
|
|
1733
|
-
async function
|
|
1734
|
-
const r = await p(t,
|
|
1735
|
-
return
|
|
1753
|
+
async function vs(t, e) {
|
|
1754
|
+
const r = await p(t, bs);
|
|
1755
|
+
return Bs(r, e);
|
|
1736
1756
|
}
|
|
1737
|
-
function
|
|
1757
|
+
function Gs(t) {
|
|
1738
1758
|
const e = /* @__PURE__ */ Object.create(null);
|
|
1739
1759
|
let r;
|
|
1740
1760
|
for (; (r = t.next()) !== null; ) {
|
|
1741
1761
|
const s = r.key.asString();
|
|
1742
|
-
e[s] =
|
|
1762
|
+
e[s] = Jr(r.value.asObject());
|
|
1743
1763
|
}
|
|
1744
1764
|
return e;
|
|
1745
1765
|
}
|
|
1746
|
-
const
|
|
1747
|
-
function
|
|
1748
|
-
const e = new v(
|
|
1749
|
-
return
|
|
1766
|
+
const Mt = 1, xs = 1048636, Hs = 2610786289;
|
|
1767
|
+
function Ys(t) {
|
|
1768
|
+
const e = new v(Mt);
|
|
1769
|
+
return Ws(t, e), e.finish();
|
|
1750
1770
|
}
|
|
1751
|
-
function
|
|
1752
|
-
e.writeUInt32Field(
|
|
1771
|
+
function Ws(t, e) {
|
|
1772
|
+
e.writeUInt32Field(Hs, t.Version >>> 0);
|
|
1753
1773
|
}
|
|
1754
|
-
function
|
|
1755
|
-
const s =
|
|
1756
|
-
return Zt(
|
|
1774
|
+
function Ks(t, e, r) {
|
|
1775
|
+
const s = Ys(t);
|
|
1776
|
+
return Zt(xs, s, Mt, e, r);
|
|
1757
1777
|
}
|
|
1758
|
-
const
|
|
1759
|
-
function
|
|
1778
|
+
const $s = 161083277, Xs = 164808083, js = 1368629611, zs = 2514959030, Js = 2745379226, qs = 2950031986, Qs = 3282782683, Zs = 3284746250, tn = 4065070594;
|
|
1779
|
+
function Bt(t) {
|
|
1760
1780
|
const e = {};
|
|
1761
1781
|
return Vt(e), e;
|
|
1762
1782
|
}
|
|
1763
1783
|
function Vt(t) {
|
|
1764
|
-
return t.StreamId = "", t.Description = "", t.SourceType = "", t.Codec =
|
|
1784
|
+
return t.StreamId = "", t.Description = "", t.SourceType = "", t.Codec = ft.H264, t.CodecDetails = "", t.Width = 0, t.Height = 0, t.Framerate = 30, t.CorrelationId = void 0, t;
|
|
1765
1785
|
}
|
|
1766
|
-
function
|
|
1767
|
-
const r = e ??
|
|
1768
|
-
return Vt(r),
|
|
1786
|
+
function en(t, e) {
|
|
1787
|
+
const r = e ?? Bt();
|
|
1788
|
+
return Vt(r), rn(t, r), r;
|
|
1769
1789
|
}
|
|
1770
|
-
function
|
|
1790
|
+
function rn(t, e) {
|
|
1771
1791
|
let r;
|
|
1772
1792
|
for (; (r = t.next()) !== null; )
|
|
1773
1793
|
switch (r.fieldId) {
|
|
1774
|
-
case
|
|
1794
|
+
case $s: {
|
|
1775
1795
|
if (r.isNull) throw new Error();
|
|
1776
1796
|
e.StreamId = r.asString();
|
|
1777
1797
|
break;
|
|
1778
1798
|
}
|
|
1779
|
-
case
|
|
1799
|
+
case Xs: {
|
|
1780
1800
|
if (r.isNull) throw new Error();
|
|
1781
1801
|
e.Framerate = r.asFloat64();
|
|
1782
1802
|
break;
|
|
1783
1803
|
}
|
|
1784
|
-
case
|
|
1804
|
+
case js: {
|
|
1785
1805
|
if (r.isNull) throw new Error();
|
|
1786
1806
|
e.Description = r.asString();
|
|
1787
1807
|
break;
|
|
1788
1808
|
}
|
|
1789
|
-
case
|
|
1809
|
+
case zs: {
|
|
1790
1810
|
if (r.isNull) {
|
|
1791
1811
|
e.CorrelationId = void 0;
|
|
1792
1812
|
break;
|
|
@@ -1794,381 +1814,381 @@ function Qs(t, e) {
|
|
|
1794
1814
|
e.CorrelationId = r.asString();
|
|
1795
1815
|
break;
|
|
1796
1816
|
}
|
|
1797
|
-
case
|
|
1817
|
+
case Js: {
|
|
1798
1818
|
if (r.isNull) throw new Error();
|
|
1799
1819
|
e.CodecDetails = r.asString();
|
|
1800
1820
|
break;
|
|
1801
1821
|
}
|
|
1802
|
-
case
|
|
1822
|
+
case qs: {
|
|
1803
1823
|
if (r.isNull) throw new Error();
|
|
1804
1824
|
e.Height = r.asInt32();
|
|
1805
1825
|
break;
|
|
1806
1826
|
}
|
|
1807
|
-
case
|
|
1827
|
+
case Qs: {
|
|
1808
1828
|
if (r.isNull) throw new Error();
|
|
1809
1829
|
e.SourceType = r.asString();
|
|
1810
1830
|
break;
|
|
1811
1831
|
}
|
|
1812
|
-
case
|
|
1832
|
+
case Zs: {
|
|
1813
1833
|
if (r.isNull) throw new Error();
|
|
1814
1834
|
e.Codec = r.asInt32();
|
|
1815
1835
|
break;
|
|
1816
1836
|
}
|
|
1817
|
-
case
|
|
1837
|
+
case tn: {
|
|
1818
1838
|
if (r.isNull) throw new Error();
|
|
1819
1839
|
e.Width = r.asInt32();
|
|
1820
1840
|
break;
|
|
1821
1841
|
}
|
|
1822
1842
|
}
|
|
1823
1843
|
}
|
|
1824
|
-
const
|
|
1825
|
-
function
|
|
1844
|
+
const sn = 65539, nn = 693643444, on = 976837618, an = 1144553441, ln = 1497620243, In = 1559330978, En = 1976546434, _n = 2271236852, hn = 2277643855, un = 2469008121, cn = 3042922213, fn = 3064612128, Tn = 3219210453, An = 3504054055, Nn = 3678477544, Sn = 3696445035, dn = 3707543140, yn = 3712281496, wn = 3895362455, Cn = 3897397815, Un = 3914217035, Dn = 4225107827;
|
|
1845
|
+
function Rn(t) {
|
|
1826
1846
|
const e = {};
|
|
1827
|
-
return
|
|
1847
|
+
return pt(e), e;
|
|
1828
1848
|
}
|
|
1829
|
-
function
|
|
1830
|
-
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 =
|
|
1849
|
+
function pt(t) {
|
|
1850
|
+
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 = At.Local, t.AppSourceType = Nt.Bundle, t.PublicAccess = !1, t.DebugMode = !1, t;
|
|
1831
1851
|
}
|
|
1832
|
-
function
|
|
1852
|
+
function Ln(t, e) {
|
|
1833
1853
|
const r = m.create(t);
|
|
1834
|
-
return
|
|
1854
|
+
return On(r, e);
|
|
1835
1855
|
}
|
|
1836
|
-
function
|
|
1837
|
-
const r = e ??
|
|
1838
|
-
return
|
|
1856
|
+
function On(t, e) {
|
|
1857
|
+
const r = e ?? Rn();
|
|
1858
|
+
return pt(r), mn(t, r), r;
|
|
1839
1859
|
}
|
|
1840
|
-
function
|
|
1860
|
+
function mn(t, e) {
|
|
1841
1861
|
let r;
|
|
1842
1862
|
for (; (r = t.next()) !== null; )
|
|
1843
1863
|
switch (r.fieldId) {
|
|
1844
|
-
case
|
|
1864
|
+
case nn: {
|
|
1845
1865
|
if (r.isNull) throw new Error();
|
|
1846
1866
|
e.FirstUserId = r.asString();
|
|
1847
1867
|
break;
|
|
1848
1868
|
}
|
|
1849
|
-
case
|
|
1869
|
+
case on: {
|
|
1850
1870
|
if (r.isNull) throw new Error();
|
|
1851
1871
|
e.SessionHash = r.asString();
|
|
1852
1872
|
break;
|
|
1853
1873
|
}
|
|
1854
|
-
case
|
|
1874
|
+
case an: {
|
|
1855
1875
|
if (r.isNull) throw new Error();
|
|
1856
|
-
e.Clients =
|
|
1876
|
+
e.Clients = Fn(r.asDictionary());
|
|
1857
1877
|
break;
|
|
1858
1878
|
}
|
|
1859
|
-
case
|
|
1879
|
+
case ln: {
|
|
1860
1880
|
if (r.isNull) throw new Error();
|
|
1861
|
-
e.TrackingStreams =
|
|
1881
|
+
e.TrackingStreams = bn(r.asDictionary());
|
|
1862
1882
|
break;
|
|
1863
1883
|
}
|
|
1864
|
-
case
|
|
1884
|
+
case In: {
|
|
1865
1885
|
if (r.isNull) throw new Error();
|
|
1866
1886
|
e.ChannelId = r.asString();
|
|
1867
1887
|
break;
|
|
1868
1888
|
}
|
|
1869
|
-
case
|
|
1889
|
+
case En: {
|
|
1870
1890
|
if (r.isNull) throw new Error();
|
|
1871
1891
|
e.AppSourceType = r.asInt32();
|
|
1872
1892
|
break;
|
|
1873
1893
|
}
|
|
1874
|
-
case
|
|
1894
|
+
case _n: {
|
|
1875
1895
|
if (r.isNull) throw new Error();
|
|
1876
1896
|
e.SessionChannelUrl = r.asString();
|
|
1877
1897
|
break;
|
|
1878
1898
|
}
|
|
1879
|
-
case
|
|
1899
|
+
case hn: {
|
|
1880
1900
|
if (r.isNull) throw new Error();
|
|
1881
1901
|
e.ChannelUrl = r.asString();
|
|
1882
1902
|
break;
|
|
1883
1903
|
}
|
|
1884
|
-
case
|
|
1904
|
+
case un: {
|
|
1885
1905
|
if (r.isNull) throw new Error();
|
|
1886
1906
|
e.ChannelName = r.asString();
|
|
1887
1907
|
break;
|
|
1888
1908
|
}
|
|
1889
|
-
case
|
|
1909
|
+
case cn: {
|
|
1890
1910
|
if (r.isNull) throw new Error();
|
|
1891
1911
|
e.PublicAccess = r.asBool();
|
|
1892
1912
|
break;
|
|
1893
1913
|
}
|
|
1894
|
-
case
|
|
1914
|
+
case fn: {
|
|
1895
1915
|
if (r.isNull) throw new Error();
|
|
1896
1916
|
e.ServerRunType = r.asInt32();
|
|
1897
1917
|
break;
|
|
1898
1918
|
}
|
|
1899
|
-
case
|
|
1919
|
+
case Tn: {
|
|
1900
1920
|
if (r.isNull) throw new Error();
|
|
1901
1921
|
e.OrganisationName = r.asString();
|
|
1902
1922
|
break;
|
|
1903
1923
|
}
|
|
1904
|
-
case
|
|
1924
|
+
case An: {
|
|
1905
1925
|
if (r.isNull) throw new Error();
|
|
1906
1926
|
e.DebugMode = r.asBool();
|
|
1907
1927
|
break;
|
|
1908
1928
|
}
|
|
1909
|
-
case
|
|
1929
|
+
case Nn: {
|
|
1910
1930
|
if (r.isNull) throw new Error();
|
|
1911
|
-
e.Functions =
|
|
1931
|
+
e.Functions = Pn(r.asDictionary());
|
|
1912
1932
|
break;
|
|
1913
1933
|
}
|
|
1914
|
-
case
|
|
1934
|
+
case Sn: {
|
|
1915
1935
|
if (r.isNull) throw new Error();
|
|
1916
|
-
e.UIStreams =
|
|
1936
|
+
e.UIStreams = kn(r.asDictionary());
|
|
1917
1937
|
break;
|
|
1918
1938
|
}
|
|
1919
|
-
case
|
|
1939
|
+
case dn: {
|
|
1920
1940
|
if (r.isNull) throw new Error();
|
|
1921
1941
|
e.SpaceId = r.asString();
|
|
1922
1942
|
break;
|
|
1923
1943
|
}
|
|
1924
|
-
case
|
|
1944
|
+
case yn: {
|
|
1925
1945
|
if (r.isNull) throw new Error();
|
|
1926
1946
|
e.PrimaryUserId = r.asString();
|
|
1927
1947
|
break;
|
|
1928
1948
|
}
|
|
1929
|
-
case
|
|
1949
|
+
case wn: {
|
|
1930
1950
|
if (r.isNull) throw new Error();
|
|
1931
|
-
e.AudioStreams =
|
|
1951
|
+
e.AudioStreams = Mn(r.asDictionary());
|
|
1932
1952
|
break;
|
|
1933
1953
|
}
|
|
1934
|
-
case
|
|
1954
|
+
case Cn: {
|
|
1935
1955
|
if (r.isNull) throw new Error();
|
|
1936
|
-
e.VideoStreams =
|
|
1956
|
+
e.VideoStreams = Bn(r.asDictionary());
|
|
1937
1957
|
break;
|
|
1938
1958
|
}
|
|
1939
|
-
case
|
|
1959
|
+
case Un: {
|
|
1940
1960
|
if (r.isNull) throw new Error();
|
|
1941
1961
|
e.ServerSessionId = r.asString();
|
|
1942
1962
|
break;
|
|
1943
1963
|
}
|
|
1944
|
-
case
|
|
1964
|
+
case Dn: {
|
|
1945
1965
|
if (r.isNull) throw new Error();
|
|
1946
1966
|
e.SpaceName = r.asString();
|
|
1947
1967
|
break;
|
|
1948
1968
|
}
|
|
1949
1969
|
}
|
|
1950
1970
|
}
|
|
1951
|
-
async function
|
|
1952
|
-
const r = await p(t,
|
|
1953
|
-
return
|
|
1971
|
+
async function gn(t, e) {
|
|
1972
|
+
const r = await p(t, sn);
|
|
1973
|
+
return Ln(r, e);
|
|
1954
1974
|
}
|
|
1955
|
-
function
|
|
1975
|
+
function Fn(t) {
|
|
1956
1976
|
const e = /* @__PURE__ */ Object.create(null);
|
|
1957
1977
|
let r;
|
|
1958
1978
|
for (; (r = t.next()) !== null; ) {
|
|
1959
1979
|
const s = r.key.asInt32();
|
|
1960
|
-
e[s] =
|
|
1980
|
+
e[s] = Ir(r.value.asObject());
|
|
1961
1981
|
}
|
|
1962
1982
|
return e;
|
|
1963
1983
|
}
|
|
1964
|
-
function
|
|
1984
|
+
function bn(t) {
|
|
1965
1985
|
const e = /* @__PURE__ */ Object.create(null);
|
|
1966
1986
|
let r;
|
|
1967
1987
|
for (; (r = t.next()) !== null; ) {
|
|
1968
1988
|
const s = r.key.asString();
|
|
1969
|
-
e[s] =
|
|
1989
|
+
e[s] = Ei(r.value.asObject());
|
|
1970
1990
|
}
|
|
1971
1991
|
return e;
|
|
1972
1992
|
}
|
|
1973
|
-
function
|
|
1993
|
+
function Pn(t) {
|
|
1974
1994
|
const e = /* @__PURE__ */ Object.create(null);
|
|
1975
1995
|
let r;
|
|
1976
1996
|
for (; (r = t.next()) !== null; ) {
|
|
1977
1997
|
const s = r.key.asInt32();
|
|
1978
|
-
e[s] =
|
|
1998
|
+
e[s] = Vn(r.value.asArray());
|
|
1979
1999
|
}
|
|
1980
2000
|
return e;
|
|
1981
2001
|
}
|
|
1982
|
-
function
|
|
2002
|
+
function kn(t) {
|
|
1983
2003
|
const e = /* @__PURE__ */ Object.create(null);
|
|
1984
2004
|
let r;
|
|
1985
2005
|
for (; (r = t.next()) !== null; ) {
|
|
1986
2006
|
const s = r.key.asString();
|
|
1987
|
-
e[s] =
|
|
2007
|
+
e[s] = Yn(r.value.asObject());
|
|
1988
2008
|
}
|
|
1989
2009
|
return e;
|
|
1990
2010
|
}
|
|
1991
|
-
function
|
|
2011
|
+
function Mn(t) {
|
|
1992
2012
|
const e = /* @__PURE__ */ Object.create(null);
|
|
1993
2013
|
let r;
|
|
1994
2014
|
for (; (r = t.next()) !== null; ) {
|
|
1995
2015
|
const s = r.key.asString();
|
|
1996
|
-
e[s] =
|
|
2016
|
+
e[s] = Jn(r.value.asObject());
|
|
1997
2017
|
}
|
|
1998
2018
|
return e;
|
|
1999
2019
|
}
|
|
2000
|
-
function
|
|
2020
|
+
function Bn(t) {
|
|
2001
2021
|
const e = /* @__PURE__ */ Object.create(null);
|
|
2002
2022
|
let r;
|
|
2003
2023
|
for (; (r = t.next()) !== null; ) {
|
|
2004
2024
|
const s = r.key.asString();
|
|
2005
|
-
e[s] =
|
|
2025
|
+
e[s] = si(r.value.asObject());
|
|
2006
2026
|
}
|
|
2007
2027
|
return e;
|
|
2008
2028
|
}
|
|
2009
|
-
function
|
|
2029
|
+
function Vn(t) {
|
|
2010
2030
|
const e = [];
|
|
2011
2031
|
let r;
|
|
2012
2032
|
for (; (r = t.next()) !== null; )
|
|
2013
|
-
e.push(
|
|
2033
|
+
e.push(Dr(r.asObject()));
|
|
2014
2034
|
return e;
|
|
2015
2035
|
}
|
|
2016
|
-
const
|
|
2017
|
-
function
|
|
2036
|
+
const pn = 161083277, vn = 325678206, Gn = 3469892363, xn = 3645544153;
|
|
2037
|
+
function Hn(t) {
|
|
2018
2038
|
const e = {};
|
|
2019
|
-
return
|
|
2039
|
+
return vt(e), e;
|
|
2020
2040
|
}
|
|
2021
|
-
function
|
|
2022
|
-
return t.StreamId = "", t.ClientSessionId = 0, t.TrackId = 0, t.Info =
|
|
2041
|
+
function vt(t) {
|
|
2042
|
+
return t.StreamId = "", t.ClientSessionId = 0, t.TrackId = 0, t.Info = Ot(), t;
|
|
2023
2043
|
}
|
|
2024
|
-
function
|
|
2025
|
-
const r = e ??
|
|
2026
|
-
return
|
|
2044
|
+
function Yn(t, e) {
|
|
2045
|
+
const r = e ?? Hn();
|
|
2046
|
+
return vt(r), Wn(t, r), r;
|
|
2027
2047
|
}
|
|
2028
|
-
function
|
|
2048
|
+
function Wn(t, e) {
|
|
2029
2049
|
let r;
|
|
2030
2050
|
for (; (r = t.next()) !== null; )
|
|
2031
2051
|
switch (r.fieldId) {
|
|
2032
|
-
case
|
|
2052
|
+
case pn: {
|
|
2033
2053
|
if (r.isNull) throw new Error();
|
|
2034
2054
|
e.StreamId = r.asString();
|
|
2035
2055
|
break;
|
|
2036
2056
|
}
|
|
2037
|
-
case
|
|
2057
|
+
case vn: {
|
|
2038
2058
|
if (r.isNull) throw new Error();
|
|
2039
2059
|
e.ClientSessionId = r.asInt32();
|
|
2040
2060
|
break;
|
|
2041
2061
|
}
|
|
2042
|
-
case
|
|
2062
|
+
case Gn: {
|
|
2043
2063
|
if (r.isNull) throw new Error();
|
|
2044
2064
|
e.TrackId = r.asInt32();
|
|
2045
2065
|
break;
|
|
2046
2066
|
}
|
|
2047
|
-
case
|
|
2067
|
+
case xn: {
|
|
2048
2068
|
if (r.isNull) throw new Error();
|
|
2049
|
-
e.Info =
|
|
2069
|
+
e.Info = Zr(r.asObject());
|
|
2050
2070
|
break;
|
|
2051
2071
|
}
|
|
2052
2072
|
}
|
|
2053
2073
|
}
|
|
2054
|
-
const
|
|
2055
|
-
function
|
|
2074
|
+
const Kn = 161083277, $n = 325678206, Xn = 3469892363, jn = 3645544153;
|
|
2075
|
+
function zn(t) {
|
|
2056
2076
|
const e = {};
|
|
2057
|
-
return
|
|
2077
|
+
return Gt(e), e;
|
|
2058
2078
|
}
|
|
2059
|
-
function
|
|
2079
|
+
function Gt(t) {
|
|
2060
2080
|
return t.StreamId = "", t.ClientSessionId = 0, t.TrackId = 0, t.Info = St(), t;
|
|
2061
2081
|
}
|
|
2062
|
-
function
|
|
2063
|
-
const r = e ??
|
|
2064
|
-
return
|
|
2082
|
+
function Jn(t, e) {
|
|
2083
|
+
const r = e ?? zn();
|
|
2084
|
+
return Gt(r), qn(t, r), r;
|
|
2065
2085
|
}
|
|
2066
|
-
function
|
|
2086
|
+
function qn(t, e) {
|
|
2067
2087
|
let r;
|
|
2068
2088
|
for (; (r = t.next()) !== null; )
|
|
2069
2089
|
switch (r.fieldId) {
|
|
2070
|
-
case
|
|
2090
|
+
case Kn: {
|
|
2071
2091
|
if (r.isNull) throw new Error();
|
|
2072
2092
|
e.StreamId = r.asString();
|
|
2073
2093
|
break;
|
|
2074
2094
|
}
|
|
2075
|
-
case
|
|
2095
|
+
case $n: {
|
|
2076
2096
|
if (r.isNull) throw new Error();
|
|
2077
2097
|
e.ClientSessionId = r.asInt32();
|
|
2078
2098
|
break;
|
|
2079
2099
|
}
|
|
2080
|
-
case
|
|
2100
|
+
case Xn: {
|
|
2081
2101
|
if (r.isNull) throw new Error();
|
|
2082
2102
|
e.TrackId = r.asInt32();
|
|
2083
2103
|
break;
|
|
2084
2104
|
}
|
|
2085
|
-
case
|
|
2105
|
+
case jn: {
|
|
2086
2106
|
if (r.isNull) throw new Error();
|
|
2087
2107
|
e.Info = Ae(r.asObject());
|
|
2088
2108
|
break;
|
|
2089
2109
|
}
|
|
2090
2110
|
}
|
|
2091
2111
|
}
|
|
2092
|
-
const
|
|
2093
|
-
function
|
|
2112
|
+
const Qn = 161083277, Zn = 325678206, ti = 3469892363, ei = 3645544153;
|
|
2113
|
+
function ri(t) {
|
|
2094
2114
|
const e = {};
|
|
2095
|
-
return
|
|
2115
|
+
return xt(e), e;
|
|
2096
2116
|
}
|
|
2097
|
-
function
|
|
2098
|
-
return t.StreamId = "", t.ClientSessionId = 0, t.TrackId = 0, t.Info =
|
|
2117
|
+
function xt(t) {
|
|
2118
|
+
return t.StreamId = "", t.ClientSessionId = 0, t.TrackId = 0, t.Info = Bt(), t;
|
|
2099
2119
|
}
|
|
2100
|
-
function
|
|
2101
|
-
const r = e ??
|
|
2102
|
-
return
|
|
2120
|
+
function si(t, e) {
|
|
2121
|
+
const r = e ?? ri();
|
|
2122
|
+
return xt(r), ni(t, r), r;
|
|
2103
2123
|
}
|
|
2104
|
-
function
|
|
2124
|
+
function ni(t, e) {
|
|
2105
2125
|
let r;
|
|
2106
2126
|
for (; (r = t.next()) !== null; )
|
|
2107
2127
|
switch (r.fieldId) {
|
|
2108
|
-
case
|
|
2128
|
+
case Qn: {
|
|
2109
2129
|
if (r.isNull) throw new Error();
|
|
2110
2130
|
e.StreamId = r.asString();
|
|
2111
2131
|
break;
|
|
2112
2132
|
}
|
|
2113
|
-
case
|
|
2133
|
+
case Zn: {
|
|
2114
2134
|
if (r.isNull) throw new Error();
|
|
2115
2135
|
e.ClientSessionId = r.asInt32();
|
|
2116
2136
|
break;
|
|
2117
2137
|
}
|
|
2118
|
-
case
|
|
2138
|
+
case ti: {
|
|
2119
2139
|
if (r.isNull) throw new Error();
|
|
2120
2140
|
e.TrackId = r.asInt32();
|
|
2121
2141
|
break;
|
|
2122
2142
|
}
|
|
2123
|
-
case
|
|
2143
|
+
case ei: {
|
|
2124
2144
|
if (r.isNull) throw new Error();
|
|
2125
|
-
e.Info =
|
|
2145
|
+
e.Info = en(r.asObject());
|
|
2126
2146
|
break;
|
|
2127
2147
|
}
|
|
2128
2148
|
}
|
|
2129
2149
|
}
|
|
2130
|
-
const
|
|
2131
|
-
function
|
|
2150
|
+
const ii = 161083277, oi = 325678206, ai = 3469892363, li = 3645544153;
|
|
2151
|
+
function Ii(t) {
|
|
2132
2152
|
const e = {};
|
|
2133
|
-
return
|
|
2153
|
+
return Ht(e), e;
|
|
2134
2154
|
}
|
|
2135
|
-
function
|
|
2136
|
-
return t.StreamId = "", t.ClientSessionId = 0, t.TrackId = 0, t.Info =
|
|
2155
|
+
function Ht(t) {
|
|
2156
|
+
return t.StreamId = "", t.ClientSessionId = 0, t.TrackId = 0, t.Info = Dt(), t;
|
|
2137
2157
|
}
|
|
2138
|
-
function
|
|
2139
|
-
const r = e ??
|
|
2140
|
-
return
|
|
2158
|
+
function Ei(t, e) {
|
|
2159
|
+
const r = e ?? Ii();
|
|
2160
|
+
return Ht(r), _i(t, r), r;
|
|
2141
2161
|
}
|
|
2142
|
-
function
|
|
2162
|
+
function _i(t, e) {
|
|
2143
2163
|
let r;
|
|
2144
2164
|
for (; (r = t.next()) !== null; )
|
|
2145
2165
|
switch (r.fieldId) {
|
|
2146
|
-
case
|
|
2166
|
+
case ii: {
|
|
2147
2167
|
if (r.isNull) throw new Error();
|
|
2148
2168
|
e.StreamId = r.asString();
|
|
2149
2169
|
break;
|
|
2150
2170
|
}
|
|
2151
|
-
case
|
|
2171
|
+
case oi: {
|
|
2152
2172
|
if (r.isNull) throw new Error();
|
|
2153
2173
|
e.ClientSessionId = r.asInt32();
|
|
2154
2174
|
break;
|
|
2155
2175
|
}
|
|
2156
|
-
case
|
|
2176
|
+
case ai: {
|
|
2157
2177
|
if (r.isNull) throw new Error();
|
|
2158
2178
|
e.TrackId = r.asInt32();
|
|
2159
2179
|
break;
|
|
2160
2180
|
}
|
|
2161
|
-
case
|
|
2181
|
+
case li: {
|
|
2162
2182
|
if (r.isNull) throw new Error();
|
|
2163
|
-
e.Info =
|
|
2183
|
+
e.Info = Wr(r.asObject());
|
|
2164
2184
|
break;
|
|
2165
2185
|
}
|
|
2166
2186
|
}
|
|
2167
2187
|
}
|
|
2168
|
-
function
|
|
2188
|
+
function U(t) {
|
|
2169
2189
|
return typeof t == "object" && t !== null && !Array.isArray(t);
|
|
2170
2190
|
}
|
|
2171
|
-
function
|
|
2191
|
+
function Yt(t) {
|
|
2172
2192
|
const e = {}, r = Object.keys(t);
|
|
2173
2193
|
for (let s = 0; s < r.length; s++) {
|
|
2174
2194
|
const n = r[s];
|
|
@@ -2176,16 +2196,16 @@ function Ht(t) {
|
|
|
2176
2196
|
}
|
|
2177
2197
|
return e;
|
|
2178
2198
|
}
|
|
2179
|
-
function
|
|
2199
|
+
function Wt(t, e, r, s) {
|
|
2180
2200
|
if (!(t === void 0 && s)) {
|
|
2181
2201
|
if (Array.isArray(t)) {
|
|
2182
2202
|
const n = [];
|
|
2183
2203
|
for (let i = 0; i < t.length; i++) {
|
|
2184
|
-
const
|
|
2185
|
-
if (typeof
|
|
2204
|
+
const o = t[i];
|
|
2205
|
+
if (typeof o != "string")
|
|
2186
2206
|
throw new Error(`Invalid styleIds entry at ${e}.styleIds[${i}] for element ${r}`);
|
|
2187
|
-
const
|
|
2188
|
-
|
|
2207
|
+
const a = o.trim();
|
|
2208
|
+
a.length !== 0 && n.push(a);
|
|
2189
2209
|
}
|
|
2190
2210
|
return n;
|
|
2191
2211
|
}
|
|
@@ -2197,73 +2217,73 @@ function Yt(t, e, r, s) {
|
|
|
2197
2217
|
function et(t, e) {
|
|
2198
2218
|
if (!t || typeof t != "object")
|
|
2199
2219
|
throw new Error(`Invalid UI node at ${e}`);
|
|
2200
|
-
const r = t.Id, s = t.Type, n = t.Props, i = t.Children,
|
|
2220
|
+
const r = t.Id, s = t.Type, n = t.Props, i = t.Children, o = t.StyleIds;
|
|
2201
2221
|
if (typeof r != "string")
|
|
2202
2222
|
throw new Error(`Invalid or missing node id at ${e}`);
|
|
2203
2223
|
if (typeof s != "string")
|
|
2204
2224
|
throw new Error(`Invalid or missing node type for ${r}`);
|
|
2205
|
-
let
|
|
2225
|
+
let a = {};
|
|
2206
2226
|
if (n != null) {
|
|
2207
|
-
if (!
|
|
2227
|
+
if (!U(n))
|
|
2208
2228
|
throw new Error(`Invalid props for node ${r}`);
|
|
2209
|
-
|
|
2229
|
+
a = Yt(n);
|
|
2210
2230
|
}
|
|
2211
2231
|
let I = [];
|
|
2212
2232
|
Array.isArray(i) && (I = i.map(
|
|
2213
2233
|
(E, h) => et(E ?? {}, `${e}.children[${h}]`)
|
|
2214
2234
|
));
|
|
2215
|
-
const _ =
|
|
2235
|
+
const _ = Wt(o, e, r, !1), l = typeof t.SourceMarker == "string" ? t.SourceMarker : void 0;
|
|
2216
2236
|
return {
|
|
2217
2237
|
id: r,
|
|
2218
2238
|
type: s,
|
|
2219
|
-
props:
|
|
2239
|
+
props: a,
|
|
2220
2240
|
children: I,
|
|
2221
2241
|
styleIds: _ ?? [],
|
|
2222
2242
|
...l ? { sourceMarker: l } : {}
|
|
2223
2243
|
};
|
|
2224
2244
|
}
|
|
2225
|
-
function
|
|
2226
|
-
if (!
|
|
2245
|
+
function hi(t, e) {
|
|
2246
|
+
if (!U(t))
|
|
2227
2247
|
throw new Error(`Invalid text delta at ${e}`);
|
|
2228
|
-
const r = t.NodeId, s = t.PropertyName, n = t.Start, i = t.End,
|
|
2248
|
+
const r = t.NodeId, s = t.PropertyName, n = t.Start, i = t.End, o = t.InsertedText;
|
|
2229
2249
|
if (typeof r != "string" || r.length === 0)
|
|
2230
2250
|
throw new Error(`Invalid text delta node id at ${e}`);
|
|
2231
2251
|
if (typeof s != "string" || s.length === 0)
|
|
2232
2252
|
throw new Error(`Invalid text delta property name at ${e}`);
|
|
2233
2253
|
if (typeof n != "number" || !Number.isFinite(n))
|
|
2234
2254
|
throw new Error(`Invalid text delta start at ${e}`);
|
|
2235
|
-
if (typeof
|
|
2255
|
+
if (typeof o != "string")
|
|
2236
2256
|
throw new Error(`Invalid text delta inserted text at ${e}`);
|
|
2237
|
-
let
|
|
2257
|
+
let a;
|
|
2238
2258
|
if (typeof i == "number") {
|
|
2239
2259
|
if (!Number.isFinite(i))
|
|
2240
2260
|
throw new Error(`Invalid text delta end at ${e}`);
|
|
2241
|
-
|
|
2261
|
+
a = i;
|
|
2242
2262
|
} else if (i != null)
|
|
2243
2263
|
throw new Error(`Invalid text delta end at ${e}`);
|
|
2244
2264
|
return {
|
|
2245
2265
|
nodeId: r,
|
|
2246
2266
|
propertyName: s,
|
|
2247
2267
|
start: n,
|
|
2248
|
-
end:
|
|
2249
|
-
insertedText:
|
|
2268
|
+
end: a,
|
|
2269
|
+
insertedText: o
|
|
2250
2270
|
};
|
|
2251
2271
|
}
|
|
2252
|
-
function
|
|
2253
|
-
if (!
|
|
2272
|
+
function ui(t, e) {
|
|
2273
|
+
if (!U(t))
|
|
2254
2274
|
throw new Error(`Invalid child insert at ${e}`);
|
|
2255
2275
|
const r = t.Index, s = t.Node;
|
|
2256
2276
|
if (typeof r != "number" || !Number.isFinite(r))
|
|
2257
2277
|
throw new Error(`Invalid child insert index at ${e}`);
|
|
2258
|
-
if (!
|
|
2278
|
+
if (!U(s))
|
|
2259
2279
|
throw new Error(`Invalid child insert node at ${e}`);
|
|
2260
2280
|
return {
|
|
2261
2281
|
index: r,
|
|
2262
2282
|
node: et(s, `${e}.node`)
|
|
2263
2283
|
};
|
|
2264
2284
|
}
|
|
2265
|
-
function
|
|
2266
|
-
if (!
|
|
2285
|
+
function ci(t, e) {
|
|
2286
|
+
if (!U(t))
|
|
2267
2287
|
throw new Error(`Invalid child move at ${e}`);
|
|
2268
2288
|
const r = t.NodeId, s = t.FromIndex, n = t.ToIndex;
|
|
2269
2289
|
if (typeof r != "string" || r.length === 0)
|
|
@@ -2278,8 +2298,8 @@ function Ei(t, e) {
|
|
|
2278
2298
|
toIndex: n
|
|
2279
2299
|
};
|
|
2280
2300
|
}
|
|
2281
|
-
function
|
|
2282
|
-
if (!
|
|
2301
|
+
function fi(t, e) {
|
|
2302
|
+
if (!U(t))
|
|
2283
2303
|
throw new Error(`Invalid child remove at ${e}`);
|
|
2284
2304
|
const r = t.NodeId, s = t.Index;
|
|
2285
2305
|
if (typeof r != "string" || r.length === 0)
|
|
@@ -2291,55 +2311,55 @@ function _i(t, e) {
|
|
|
2291
2311
|
index: s
|
|
2292
2312
|
};
|
|
2293
2313
|
}
|
|
2294
|
-
function
|
|
2295
|
-
if (!
|
|
2314
|
+
function Ti(t, e) {
|
|
2315
|
+
if (!U(t))
|
|
2296
2316
|
throw new Error(`Invalid node change at ${e}`);
|
|
2297
2317
|
const r = t.nodeId;
|
|
2298
2318
|
if (typeof r != "string" || r.length === 0)
|
|
2299
2319
|
throw new Error(`Invalid node change nodeId at ${e}`);
|
|
2300
2320
|
const s = Array.isArray(t.inserts) ? t.inserts.map(
|
|
2301
|
-
(l, E) =>
|
|
2321
|
+
(l, E) => ui(l ?? {}, `${e}.inserts[${E}]`)
|
|
2302
2322
|
) : void 0, n = Array.isArray(t.moves) ? t.moves.map(
|
|
2303
|
-
(l, E) =>
|
|
2323
|
+
(l, E) => ci(l ?? {}, `${e}.moves[${E}]`)
|
|
2304
2324
|
) : void 0, i = Array.isArray(t.removals) ? t.removals.map(
|
|
2305
|
-
(l, E) =>
|
|
2325
|
+
(l, E) => fi(l ?? {}, `${e}.removals[${E}]`)
|
|
2306
2326
|
) : void 0;
|
|
2307
|
-
let
|
|
2308
|
-
if (
|
|
2309
|
-
|
|
2327
|
+
let o;
|
|
2328
|
+
if (U(t.changedProps)) {
|
|
2329
|
+
o = /* @__PURE__ */ new Map();
|
|
2310
2330
|
for (const [l, E] of Object.entries(t.changedProps)) {
|
|
2311
|
-
if (!
|
|
2331
|
+
if (!U(E))
|
|
2312
2332
|
continue;
|
|
2313
2333
|
const h = E.New;
|
|
2314
|
-
h === void 0 ?
|
|
2334
|
+
h === void 0 ? o.set(l, void 0) : U(h) ? o.set(l, Yt(h)) : o.set(l, h);
|
|
2315
2335
|
}
|
|
2316
2336
|
}
|
|
2317
|
-
const
|
|
2318
|
-
(l, E) =>
|
|
2319
|
-
) : void 0, I = t.styleIds, _ = I !== void 0 ?
|
|
2337
|
+
const a = Array.isArray(t.textUpdates) ? t.textUpdates.map(
|
|
2338
|
+
(l, E) => hi(l ?? {}, `${e}.textUpdates[${E}]`)
|
|
2339
|
+
) : void 0, I = t.styleIds, _ = I !== void 0 ? Wt(I, e, r, !0) : void 0;
|
|
2320
2340
|
return {
|
|
2321
2341
|
nodeId: r,
|
|
2322
2342
|
...s && s.length > 0 ? { inserts: s } : {},
|
|
2323
2343
|
...n && n.length > 0 ? { moves: n } : {},
|
|
2324
2344
|
...i && i.length > 0 ? { removals: i } : {},
|
|
2325
|
-
...
|
|
2326
|
-
...
|
|
2345
|
+
...o && o.size > 0 ? { changedProps: o } : {},
|
|
2346
|
+
...a && a.length > 0 ? { textUpdates: a } : {},
|
|
2327
2347
|
..._ !== void 0 ? { styleIds: _ } : {}
|
|
2328
2348
|
};
|
|
2329
2349
|
}
|
|
2330
|
-
function
|
|
2350
|
+
function Ai(t) {
|
|
2331
2351
|
const e = /* @__PURE__ */ new Map();
|
|
2332
2352
|
for (const [r, s] of Object.entries(t))
|
|
2333
2353
|
e.set(r, s);
|
|
2334
2354
|
return e;
|
|
2335
2355
|
}
|
|
2336
|
-
function
|
|
2356
|
+
function Ni(t, e, r) {
|
|
2337
2357
|
if (!t || typeof t != "object")
|
|
2338
|
-
throw new
|
|
2358
|
+
throw new R("UI update graph is missing");
|
|
2339
2359
|
const s = et(t, "graph");
|
|
2340
2360
|
if (s.type !== "root")
|
|
2341
|
-
throw new
|
|
2342
|
-
const n =
|
|
2361
|
+
throw new R('UI update root element must have type "root"');
|
|
2362
|
+
const n = di(s.props, e);
|
|
2343
2363
|
return {
|
|
2344
2364
|
type: "full",
|
|
2345
2365
|
version: r,
|
|
@@ -2347,17 +2367,17 @@ function ci(t, e, r) {
|
|
|
2347
2367
|
metadata: n
|
|
2348
2368
|
};
|
|
2349
2369
|
}
|
|
2350
|
-
function
|
|
2370
|
+
function Si(t, e, r) {
|
|
2351
2371
|
if (!Array.isArray(t))
|
|
2352
|
-
throw new
|
|
2353
|
-
if (!
|
|
2354
|
-
throw new
|
|
2372
|
+
throw new R("UI diff changes must be an array");
|
|
2373
|
+
if (!U(e))
|
|
2374
|
+
throw new R("UI diff metadata must be an object");
|
|
2355
2375
|
const s = e.viewId;
|
|
2356
2376
|
if (typeof s != "string" || s.length === 0)
|
|
2357
|
-
throw new
|
|
2377
|
+
throw new R("UI diff metadata is missing viewId");
|
|
2358
2378
|
const n = t.map(
|
|
2359
|
-
(
|
|
2360
|
-
), i = typeof e.isUpdate == "boolean" ? e.isUpdate : void 0,
|
|
2379
|
+
(a, I) => Ti(a ?? {}, `changes[${I}]`)
|
|
2380
|
+
), i = typeof e.isUpdate == "boolean" ? e.isUpdate : void 0, o = {
|
|
2361
2381
|
viewId: s,
|
|
2362
2382
|
...i !== void 0 ? { isUpdate: i } : {}
|
|
2363
2383
|
};
|
|
@@ -2365,45 +2385,45 @@ function fi(t, e, r) {
|
|
|
2365
2385
|
type: "diff",
|
|
2366
2386
|
version: r,
|
|
2367
2387
|
changes: n,
|
|
2368
|
-
metadata:
|
|
2388
|
+
metadata: o
|
|
2369
2389
|
};
|
|
2370
2390
|
}
|
|
2371
|
-
function
|
|
2391
|
+
function di(t, e) {
|
|
2372
2392
|
const r = t.viewId;
|
|
2373
2393
|
if (typeof r != "string" || r.length === 0)
|
|
2374
|
-
throw new
|
|
2394
|
+
throw new R("UI update root is missing viewId");
|
|
2375
2395
|
let s = r, n = typeof t.isUpdate == "boolean" ? t.isUpdate : void 0;
|
|
2376
|
-
return
|
|
2396
|
+
return U(e) && (typeof e.viewId == "string" && e.viewId.length > 0 && (s = e.viewId), typeof e.isUpdate == "boolean" && (n = e.isUpdate)), {
|
|
2377
2397
|
viewId: s,
|
|
2378
2398
|
...n !== void 0 ? { isUpdate: n } : {}
|
|
2379
2399
|
};
|
|
2380
2400
|
}
|
|
2381
|
-
class
|
|
2401
|
+
class R extends Error {
|
|
2382
2402
|
constructor(e, r) {
|
|
2383
2403
|
super(e), this.causeError = r, this.name = "UiUpdateParseError", r instanceof Error && (this.stack = r.stack);
|
|
2384
2404
|
}
|
|
2385
2405
|
}
|
|
2386
|
-
function
|
|
2406
|
+
function yi(t) {
|
|
2387
2407
|
let e;
|
|
2388
2408
|
try {
|
|
2389
2409
|
e = JSON.parse(t.Json);
|
|
2390
|
-
} catch (
|
|
2391
|
-
throw new
|
|
2410
|
+
} catch (o) {
|
|
2411
|
+
throw new R("Failed to parse UIUpdate.Json payload", o);
|
|
2392
2412
|
}
|
|
2393
2413
|
if (!e || typeof e != "object")
|
|
2394
|
-
throw new
|
|
2414
|
+
throw new R("UI update snapshot must be an object");
|
|
2395
2415
|
const { type: r, version: s } = e;
|
|
2396
2416
|
if (r !== "full" && r !== "diff")
|
|
2397
|
-
throw new
|
|
2417
|
+
throw new R(`Unknown UI update type: ${String(r)}`);
|
|
2398
2418
|
if (typeof s != "number")
|
|
2399
|
-
throw new
|
|
2400
|
-
const n = r === "full" ?
|
|
2419
|
+
throw new R("UI update version must be a number");
|
|
2420
|
+
const n = r === "full" ? Ni(e.graph, e.metadata, s) : Si(e.changes, e.metadata, s), i = t.Payloads ? Ai(t.Payloads) : /* @__PURE__ */ new Map();
|
|
2401
2421
|
return {
|
|
2402
2422
|
snapshot: n,
|
|
2403
2423
|
payloads: i
|
|
2404
2424
|
};
|
|
2405
2425
|
}
|
|
2406
|
-
class
|
|
2426
|
+
class wi {
|
|
2407
2427
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
2408
2428
|
cache = /* @__PURE__ */ new Map();
|
|
2409
2429
|
/**
|
|
@@ -2422,7 +2442,7 @@ class Si {
|
|
|
2422
2442
|
getHandlerWithPayload(e, r, s) {
|
|
2423
2443
|
const n = `${e}:${r}:payload`;
|
|
2424
2444
|
let i = this.cache.get(n);
|
|
2425
|
-
return i || (i = (
|
|
2445
|
+
return i || (i = (o) => s(r, o), this.cache.set(n, i)), i;
|
|
2426
2446
|
}
|
|
2427
2447
|
/**
|
|
2428
2448
|
* Get a cached handler for boolean payloads.
|
|
@@ -2454,7 +2474,7 @@ class Si {
|
|
|
2454
2474
|
getNullableBooleanHandler(e, r, s) {
|
|
2455
2475
|
const n = `${e}:${r}:nullable-bool`;
|
|
2456
2476
|
let i = this.cache.get(n);
|
|
2457
|
-
return i || (i = (
|
|
2477
|
+
return i || (i = (o) => s(r, o ?? null), this.cache.set(n, i)), i;
|
|
2458
2478
|
}
|
|
2459
2479
|
/**
|
|
2460
2480
|
* Invalidate all cached handlers for a specific node.
|
|
@@ -2484,7 +2504,8 @@ class Si {
|
|
|
2484
2504
|
return this.cache.size;
|
|
2485
2505
|
}
|
|
2486
2506
|
}
|
|
2487
|
-
|
|
2507
|
+
const Ci = it("UiStreamStore");
|
|
2508
|
+
class Ui {
|
|
2488
2509
|
views = /* @__PURE__ */ new Map();
|
|
2489
2510
|
listeners = /* @__PURE__ */ new Set();
|
|
2490
2511
|
payloads = /* @__PURE__ */ new Map();
|
|
@@ -2504,7 +2525,7 @@ class Ni {
|
|
|
2504
2525
|
viewsDirty = !0;
|
|
2505
2526
|
payloadsDirty = !0;
|
|
2506
2527
|
// Handler cache for stable event handlers
|
|
2507
|
-
handlerCache = new
|
|
2528
|
+
handlerCache = new wi();
|
|
2508
2529
|
apply(e) {
|
|
2509
2530
|
if (this.snapshotMode) {
|
|
2510
2531
|
if (e.snapshot.type !== "full")
|
|
@@ -2516,27 +2537,27 @@ class Ni {
|
|
|
2516
2537
|
};
|
|
2517
2538
|
}
|
|
2518
2539
|
const { snapshot: r, payloads: s } = e, { metadata: n } = r, { viewId: i } = n;
|
|
2519
|
-
let
|
|
2520
|
-
|
|
2540
|
+
let o = this.views.get(i);
|
|
2541
|
+
o || (o = {
|
|
2521
2542
|
version: 0
|
|
2522
|
-
}, this.views.set(i,
|
|
2523
|
-
const
|
|
2524
|
-
if (r.version <
|
|
2543
|
+
}, this.views.set(i, o));
|
|
2544
|
+
const a = r.type === "diff" && n.isUpdate === !0;
|
|
2545
|
+
if (r.version < o.version || r.version === o.version && !a)
|
|
2525
2546
|
return !1;
|
|
2526
2547
|
let I = !1;
|
|
2527
2548
|
this.rootViewId || (this.rootViewId = i, I = !0, this.structureChanged = !0);
|
|
2528
|
-
const _ =
|
|
2549
|
+
const _ = o.root;
|
|
2529
2550
|
if (r.type === "full")
|
|
2530
|
-
|
|
2551
|
+
o.root = r.root, o.version = r.version, I = !0, this.viewsDirty = !0, this.structureChanged = !0, r.root && V(r.root, this.changedNodeIds);
|
|
2531
2552
|
else {
|
|
2532
2553
|
if (!_)
|
|
2533
2554
|
return !1;
|
|
2534
|
-
const l =
|
|
2535
|
-
l !== _ ? (
|
|
2555
|
+
const l = Ri(_, r.changes);
|
|
2556
|
+
l !== _ ? (o.root = l, I = !0, this.viewsDirty = !0, $(_, l, this.changedNodeIds)) : o.root = l, o.version = r.version;
|
|
2536
2557
|
}
|
|
2537
2558
|
for (const [l, E] of s)
|
|
2538
2559
|
this.payloads.get(l) !== E && (this.payloads.set(l, E), I = !0, this.payloadsDirty = !0);
|
|
2539
|
-
return I ? (this.commitSnapshot(), this.notify(), !0) : (
|
|
2560
|
+
return I ? (this.commitSnapshot(), this.notify(), !0) : (o.version = r.version, !1);
|
|
2540
2561
|
}
|
|
2541
2562
|
replaceFromWire(e) {
|
|
2542
2563
|
const r = {
|
|
@@ -2553,21 +2574,21 @@ class Ni {
|
|
|
2553
2574
|
if (r !== void 0 && this.snapshot.version !== r)
|
|
2554
2575
|
return !1;
|
|
2555
2576
|
let s = !1, n = null, i = null;
|
|
2556
|
-
const
|
|
2577
|
+
const o = () => (n || (n = new Map(this.snapshot.views)), n), a = () => (i || (i = new Map(this.snapshot.payloads)), i);
|
|
2557
2578
|
if (e.deleteViews && e.deleteViews.length > 0)
|
|
2558
2579
|
for (const l of e.deleteViews)
|
|
2559
|
-
|
|
2580
|
+
o().delete(l) && (s = !0, this.structureChanged = !0);
|
|
2560
2581
|
if (e.upsertViews && e.upsertViews.length > 0)
|
|
2561
2582
|
for (const [l, E] of e.upsertViews) {
|
|
2562
|
-
const h =
|
|
2563
|
-
T !== E && (h.set(l, E), s = !0, T ? $(T, E, this.changedNodeIds) : (
|
|
2583
|
+
const h = o(), T = h.get(l);
|
|
2584
|
+
T !== E && (h.set(l, E), s = !0, T ? $(T, E, this.changedNodeIds) : (V(E, this.changedNodeIds), this.structureChanged = !0));
|
|
2564
2585
|
}
|
|
2565
2586
|
if (e.deletePayloads && e.deletePayloads.length > 0)
|
|
2566
2587
|
for (const l of e.deletePayloads)
|
|
2567
|
-
|
|
2588
|
+
a().delete(l) && (s = !0);
|
|
2568
2589
|
if (e.upsertPayloads && e.upsertPayloads.length > 0)
|
|
2569
2590
|
for (const [l, E] of e.upsertPayloads) {
|
|
2570
|
-
const h =
|
|
2591
|
+
const h = a();
|
|
2571
2592
|
h.get(l) !== E && (h.set(l, E), s = !0);
|
|
2572
2593
|
}
|
|
2573
2594
|
const I = e.rootViewId ?? this.snapshot.rootViewId;
|
|
@@ -2589,8 +2610,8 @@ class Ni {
|
|
|
2589
2610
|
const r = this.snapshot, s = r.version !== e.version || r.rootViewId !== e.rootViewId || r.views.size !== e.views.size || r.payloads.size !== e.payloads.size;
|
|
2590
2611
|
(r.rootViewId !== e.rootViewId || r.views.size !== e.views.size) && (this.structureChanged = !0);
|
|
2591
2612
|
for (const [n, i] of e.views) {
|
|
2592
|
-
const
|
|
2593
|
-
|
|
2613
|
+
const o = r.views.get(n);
|
|
2614
|
+
o ? $(o, i, this.changedNodeIds) : (V(i, this.changedNodeIds), this.structureChanged = !0);
|
|
2594
2615
|
}
|
|
2595
2616
|
for (const n of this.changedNodeIds)
|
|
2596
2617
|
this.nodeVersions.set(n, (this.nodeVersions.get(n) ?? 0) + 1);
|
|
@@ -2622,7 +2643,7 @@ class Ni {
|
|
|
2622
2643
|
if (r)
|
|
2623
2644
|
return r;
|
|
2624
2645
|
for (const s of this.snapshot.views.values()) {
|
|
2625
|
-
const n =
|
|
2646
|
+
const n = Xt(s, e);
|
|
2626
2647
|
if (n)
|
|
2627
2648
|
return n;
|
|
2628
2649
|
}
|
|
@@ -2647,8 +2668,8 @@ class Ni {
|
|
|
2647
2668
|
let e, r;
|
|
2648
2669
|
if (this.viewsDirty) {
|
|
2649
2670
|
const n = /* @__PURE__ */ new Map();
|
|
2650
|
-
for (const [i,
|
|
2651
|
-
|
|
2671
|
+
for (const [i, o] of this.views)
|
|
2672
|
+
o.root && n.set(i, o.root);
|
|
2652
2673
|
e = n, this.viewsDirty = !1;
|
|
2653
2674
|
} else
|
|
2654
2675
|
e = this.snapshot.views;
|
|
@@ -2674,7 +2695,7 @@ class Ni {
|
|
|
2674
2695
|
}
|
|
2675
2696
|
}
|
|
2676
2697
|
}
|
|
2677
|
-
class
|
|
2698
|
+
class Di {
|
|
2678
2699
|
streams = /* @__PURE__ */ new Map();
|
|
2679
2700
|
listeners = /* @__PURE__ */ new Set();
|
|
2680
2701
|
apply(e, r) {
|
|
@@ -2738,39 +2759,39 @@ class di {
|
|
|
2738
2759
|
}
|
|
2739
2760
|
getOrCreateStreamEntry(e) {
|
|
2740
2761
|
let r = this.streams.get(e);
|
|
2741
|
-
return r || (r = { store: new
|
|
2762
|
+
return r || (r = { store: new Ui() }, this.streams.set(e, r)), r;
|
|
2742
2763
|
}
|
|
2743
2764
|
notify(e) {
|
|
2744
2765
|
for (const r of this.listeners)
|
|
2745
2766
|
r(e);
|
|
2746
2767
|
}
|
|
2747
2768
|
}
|
|
2748
|
-
function
|
|
2769
|
+
function Ri(t, e, r) {
|
|
2749
2770
|
if (e.length === 0)
|
|
2750
2771
|
return t;
|
|
2751
2772
|
const s = /* @__PURE__ */ new Map();
|
|
2752
2773
|
for (const n of e)
|
|
2753
2774
|
s.set(n.nodeId, n);
|
|
2754
|
-
return
|
|
2775
|
+
return Kt(t, s);
|
|
2755
2776
|
}
|
|
2756
|
-
function
|
|
2777
|
+
function Kt(t, e, r) {
|
|
2757
2778
|
const s = e.get(t.id);
|
|
2758
2779
|
let n = t, i = !1;
|
|
2759
2780
|
if (s?.textUpdates && s.textUpdates.length > 0) {
|
|
2760
|
-
const u =
|
|
2781
|
+
const u = gi(t, s.textUpdates);
|
|
2761
2782
|
n = u.node, i = u.changed;
|
|
2762
2783
|
}
|
|
2763
|
-
let
|
|
2784
|
+
let o = !1, a = n.props;
|
|
2764
2785
|
if (s?.changedProps && s.changedProps.size > 0)
|
|
2765
|
-
for (const [u,
|
|
2766
|
-
const
|
|
2767
|
-
if (
|
|
2768
|
-
(
|
|
2769
|
-
else if (
|
|
2770
|
-
const A =
|
|
2771
|
-
k(A,
|
|
2786
|
+
for (const [u, N] of s.changedProps.entries()) {
|
|
2787
|
+
const c = a[u];
|
|
2788
|
+
if (N === void 0)
|
|
2789
|
+
(c !== void 0 || u in a) && (o || (a = B(a), o = !0), delete a[u]);
|
|
2790
|
+
else if (j(N)) {
|
|
2791
|
+
const A = B(N);
|
|
2792
|
+
k(A, c) || (o || (a = B(a), o = !0), a[u] = A);
|
|
2772
2793
|
} else
|
|
2773
|
-
k(
|
|
2794
|
+
k(N, c) || (o || (a = B(a), o = !0), a[u] = N);
|
|
2774
2795
|
}
|
|
2775
2796
|
let I = !1, _ = n.styleIds;
|
|
2776
2797
|
s?.styleIds !== void 0 && (jt(n.styleIds, s.styleIds) || (_ = s.styleIds, I = !0));
|
|
@@ -2779,36 +2800,37 @@ function Wt(t, e, r) {
|
|
|
2779
2800
|
if (s?.removals && s.removals.length > 0 || s?.moves && s.moves.length > 0 || s?.inserts && s.inserts.length > 0) {
|
|
2780
2801
|
const u = E.slice();
|
|
2781
2802
|
if (s?.removals && s.removals.length > 0) {
|
|
2782
|
-
const
|
|
2783
|
-
for (const
|
|
2784
|
-
if (
|
|
2785
|
-
u.splice(
|
|
2803
|
+
const N = [...s.removals].sort((c, A) => A.index - c.index);
|
|
2804
|
+
for (const c of N)
|
|
2805
|
+
if (c.index >= 0 && c.index < u.length && u[c.index].id === c.nodeId)
|
|
2806
|
+
u.splice(c.index, 1);
|
|
2786
2807
|
else {
|
|
2787
|
-
const A = u.findIndex((
|
|
2808
|
+
const A = u.findIndex((w) => w.id === c.nodeId);
|
|
2788
2809
|
A >= 0 && u.splice(A, 1);
|
|
2789
2810
|
}
|
|
2790
2811
|
h = !0;
|
|
2791
2812
|
}
|
|
2792
2813
|
if (s?.moves && s.moves.length > 0) {
|
|
2793
|
-
const
|
|
2794
|
-
for (const A of
|
|
2795
|
-
const
|
|
2796
|
-
|
|
2797
|
-
}
|
|
2798
|
-
for (const A of
|
|
2799
|
-
const
|
|
2800
|
-
if (
|
|
2814
|
+
const N = [...s.moves].sort((A, w) => A.toIndex - w.toIndex), c = /* @__PURE__ */ new Map();
|
|
2815
|
+
for (const A of N) {
|
|
2816
|
+
const w = u.findIndex((K) => K.id === A.nodeId);
|
|
2817
|
+
w >= 0 && (c.set(A.nodeId, u[w]), u.splice(w, 1));
|
|
2818
|
+
}
|
|
2819
|
+
for (const A of N) {
|
|
2820
|
+
const w = c.get(A.nodeId);
|
|
2821
|
+
if (w) {
|
|
2801
2822
|
const K = Math.min(A.toIndex, u.length);
|
|
2802
|
-
u.splice(K, 0,
|
|
2823
|
+
u.splice(K, 0, w);
|
|
2803
2824
|
}
|
|
2804
2825
|
}
|
|
2805
2826
|
h = !0;
|
|
2806
2827
|
}
|
|
2807
2828
|
if (s?.inserts && s.inserts.length > 0) {
|
|
2808
|
-
const
|
|
2809
|
-
for (const
|
|
2810
|
-
|
|
2811
|
-
|
|
2829
|
+
const N = [...s.inserts].sort((c, A) => c.index - A.index);
|
|
2830
|
+
for (const c of N) {
|
|
2831
|
+
u.some((w) => w.id === c.node.id) && Ci.warn(`Duplicate node id '${c.node.id}' (type '${c.node.type}') inserted next to an existing sibling — UI tree diverged from the server`);
|
|
2832
|
+
const A = Math.min(c.index, u.length);
|
|
2833
|
+
u.splice(A, 0, c.node);
|
|
2812
2834
|
}
|
|
2813
2835
|
h = !0;
|
|
2814
2836
|
}
|
|
@@ -2816,58 +2838,58 @@ function Wt(t, e, r) {
|
|
|
2816
2838
|
}
|
|
2817
2839
|
let d;
|
|
2818
2840
|
for (let u = 0; u < E.length; u++) {
|
|
2819
|
-
const
|
|
2820
|
-
|
|
2841
|
+
const N = E[u], c = Kt(N, e);
|
|
2842
|
+
c !== N && (d || (d = E.slice()), d[u] = c);
|
|
2821
2843
|
}
|
|
2822
|
-
return d && (E = d, h = !0), i ||
|
|
2844
|
+
return d && (E = d, h = !0), i || o || I || h ? !o && !h && !I ? n : {
|
|
2823
2845
|
id: t.id,
|
|
2824
2846
|
type: t.type,
|
|
2825
|
-
props:
|
|
2847
|
+
props: o ? a : n.props,
|
|
2826
2848
|
children: h ? E : l,
|
|
2827
2849
|
styleIds: I ? _ : n.styleIds,
|
|
2828
2850
|
...t.sourceMarker ? { sourceMarker: t.sourceMarker } : {}
|
|
2829
2851
|
} : t;
|
|
2830
2852
|
}
|
|
2831
|
-
function
|
|
2853
|
+
function V(t, e) {
|
|
2832
2854
|
if (e.add(t.id), t.children)
|
|
2833
2855
|
for (const r of t.children)
|
|
2834
|
-
|
|
2856
|
+
V(r, e);
|
|
2835
2857
|
}
|
|
2836
2858
|
const x = [];
|
|
2837
|
-
function
|
|
2859
|
+
function Li(t) {
|
|
2838
2860
|
for (; x.length <= t; )
|
|
2839
2861
|
x.push(/* @__PURE__ */ new Map());
|
|
2840
2862
|
return x[t].clear(), x[t];
|
|
2841
2863
|
}
|
|
2842
2864
|
function $(t, e, r) {
|
|
2843
|
-
|
|
2865
|
+
$t(t, e, r, 0);
|
|
2844
2866
|
}
|
|
2845
|
-
function
|
|
2867
|
+
function $t(t, e, r, s) {
|
|
2846
2868
|
if (t === e)
|
|
2847
2869
|
return;
|
|
2848
|
-
(t.type !== e.type || !
|
|
2849
|
-
const i = t.children ?? [],
|
|
2850
|
-
if (i !==
|
|
2851
|
-
const
|
|
2870
|
+
(t.type !== e.type || !Oi(t.props, e.props) || !jt(t.styleIds, e.styleIds)) && r.add(e.id);
|
|
2871
|
+
const i = t.children ?? [], o = e.children ?? [];
|
|
2872
|
+
if (i !== o) {
|
|
2873
|
+
const a = Li(s);
|
|
2852
2874
|
for (const _ of i)
|
|
2853
|
-
|
|
2875
|
+
a.set(_.id, _);
|
|
2854
2876
|
let I = !1;
|
|
2855
|
-
for (let _ = 0; _ <
|
|
2856
|
-
const l =
|
|
2857
|
-
E ? (
|
|
2877
|
+
for (let _ = 0; _ < o.length; _++) {
|
|
2878
|
+
const l = o[_], E = a.get(l.id);
|
|
2879
|
+
E ? ($t(E, l, r, s + 1), !I && _ < i.length && i[_].id !== l.id && (I = !0)) : (V(l, r), I = !0);
|
|
2858
2880
|
}
|
|
2859
|
-
(i.length !==
|
|
2881
|
+
(i.length !== o.length || I) && r.add(e.id);
|
|
2860
2882
|
}
|
|
2861
2883
|
}
|
|
2862
|
-
function
|
|
2884
|
+
function Oi(t, e) {
|
|
2863
2885
|
return k(t, e);
|
|
2864
2886
|
}
|
|
2865
|
-
function
|
|
2887
|
+
function Xt(t, e) {
|
|
2866
2888
|
if (t.id === e)
|
|
2867
2889
|
return t;
|
|
2868
2890
|
if (t.children)
|
|
2869
2891
|
for (const r of t.children) {
|
|
2870
|
-
const s =
|
|
2892
|
+
const s = Xt(r, e);
|
|
2871
2893
|
if (s)
|
|
2872
2894
|
return s;
|
|
2873
2895
|
}
|
|
@@ -2875,24 +2897,24 @@ function $t(t, e) {
|
|
|
2875
2897
|
function jt(t, e) {
|
|
2876
2898
|
return k(t, e);
|
|
2877
2899
|
}
|
|
2878
|
-
function
|
|
2900
|
+
function mi(t, e) {
|
|
2879
2901
|
if (e.length === 0)
|
|
2880
2902
|
return t;
|
|
2881
|
-
const r = [...e].sort((i,
|
|
2903
|
+
const r = [...e].sort((i, o) => i.start - o.start);
|
|
2882
2904
|
let s = t, n = 0;
|
|
2883
2905
|
for (const i of r) {
|
|
2884
|
-
const
|
|
2906
|
+
const o = nt(i.start + n, 0, s.length);
|
|
2885
2907
|
if (i.end == null) {
|
|
2886
|
-
const l = s.slice(
|
|
2887
|
-
s = s.slice(0,
|
|
2908
|
+
const l = s.slice(o), E = Fi(l, i.insertedText);
|
|
2909
|
+
s = s.slice(0, o) + i.insertedText + l.slice(E), n += i.insertedText.length - E;
|
|
2888
2910
|
continue;
|
|
2889
2911
|
}
|
|
2890
|
-
const
|
|
2891
|
-
s = s.slice(0,
|
|
2912
|
+
const a = i.end + n, I = nt(a, o, s.length), _ = I - o;
|
|
2913
|
+
s = s.slice(0, o) + i.insertedText + s.slice(I), n += i.insertedText.length - _;
|
|
2892
2914
|
}
|
|
2893
2915
|
return s;
|
|
2894
2916
|
}
|
|
2895
|
-
function
|
|
2917
|
+
function gi(t, e, r) {
|
|
2896
2918
|
if (e.length === 0)
|
|
2897
2919
|
return { node: t, changed: !1 };
|
|
2898
2920
|
const s = /* @__PURE__ */ new Map();
|
|
@@ -2900,9 +2922,9 @@ function Di(t, e, r) {
|
|
|
2900
2922
|
const i = s.get(n.nodeId);
|
|
2901
2923
|
i ? i.push(n) : s.set(n.nodeId, [n]);
|
|
2902
2924
|
}
|
|
2903
|
-
return
|
|
2925
|
+
return zt(t, s);
|
|
2904
2926
|
}
|
|
2905
|
-
function
|
|
2927
|
+
function zt(t, e, r) {
|
|
2906
2928
|
const s = e.get(t.id) ?? [];
|
|
2907
2929
|
let n = !1, i = t.props;
|
|
2908
2930
|
if (s.length > 0) {
|
|
@@ -2912,27 +2934,27 @@ function Xt(t, e, r) {
|
|
|
2912
2934
|
E ? E.push(l) : _.set(l.propertyName, [l]);
|
|
2913
2935
|
}
|
|
2914
2936
|
for (const [l, E] of _.entries()) {
|
|
2915
|
-
const h = i[l], d =
|
|
2916
|
-
n || (i =
|
|
2937
|
+
const h = i[l], d = mi(typeof h == "string" ? h : "", E);
|
|
2938
|
+
n || (i = B(i), n = !0), i[l] = d;
|
|
2917
2939
|
}
|
|
2918
2940
|
}
|
|
2919
|
-
let
|
|
2920
|
-
const
|
|
2921
|
-
let I =
|
|
2922
|
-
if (
|
|
2941
|
+
let o = !1;
|
|
2942
|
+
const a = t.children ?? [];
|
|
2943
|
+
let I = a;
|
|
2944
|
+
if (a.length > 0) {
|
|
2923
2945
|
let _;
|
|
2924
|
-
for (let l = 0; l <
|
|
2925
|
-
const E =
|
|
2926
|
-
h.changed && (_ || (_ = [...
|
|
2946
|
+
for (let l = 0; l < a.length; l++) {
|
|
2947
|
+
const E = a[l], h = zt(E, e);
|
|
2948
|
+
h.changed && (_ || (_ = [...a]), _[l] = h.node);
|
|
2927
2949
|
}
|
|
2928
|
-
_ && (I = _,
|
|
2950
|
+
_ && (I = _, o = !0);
|
|
2929
2951
|
}
|
|
2930
|
-
return !n && !
|
|
2952
|
+
return !n && !o ? { node: t, changed: !1 } : {
|
|
2931
2953
|
node: {
|
|
2932
2954
|
id: t.id,
|
|
2933
2955
|
type: t.type,
|
|
2934
2956
|
props: n ? i : t.props,
|
|
2935
|
-
children:
|
|
2957
|
+
children: o ? I : a,
|
|
2936
2958
|
styleIds: t.styleIds,
|
|
2937
2959
|
...t.sourceMarker ? { sourceMarker: t.sourceMarker } : {}
|
|
2938
2960
|
},
|
|
@@ -2942,14 +2964,14 @@ function Xt(t, e, r) {
|
|
|
2942
2964
|
function nt(t, e, r) {
|
|
2943
2965
|
return Math.max(e, Math.min(r, t));
|
|
2944
2966
|
}
|
|
2945
|
-
function
|
|
2967
|
+
function Fi(t, e) {
|
|
2946
2968
|
const r = Math.min(t.length, e.length);
|
|
2947
2969
|
let s = 0;
|
|
2948
2970
|
for (; s < r && t.charCodeAt(s) === e.charCodeAt(s); )
|
|
2949
2971
|
s++;
|
|
2950
2972
|
return s;
|
|
2951
2973
|
}
|
|
2952
|
-
function
|
|
2974
|
+
function B(t) {
|
|
2953
2975
|
const e = {}, r = Object.keys(t);
|
|
2954
2976
|
for (let s = 0; s < r.length; s++) {
|
|
2955
2977
|
const n = r[s];
|
|
@@ -2957,7 +2979,7 @@ function V(t) {
|
|
|
2957
2979
|
}
|
|
2958
2980
|
return e;
|
|
2959
2981
|
}
|
|
2960
|
-
function
|
|
2982
|
+
function j(t) {
|
|
2961
2983
|
return typeof t == "object" && t !== null && !Array.isArray(t);
|
|
2962
2984
|
}
|
|
2963
2985
|
function k(t, e) {
|
|
@@ -2971,7 +2993,7 @@ function k(t, e) {
|
|
|
2971
2993
|
return !1;
|
|
2972
2994
|
return !0;
|
|
2973
2995
|
}
|
|
2974
|
-
if (
|
|
2996
|
+
if (j(t) && j(e)) {
|
|
2975
2997
|
const r = Object.keys(t), s = Object.keys(e);
|
|
2976
2998
|
if (r.length !== s.length)
|
|
2977
2999
|
return !1;
|
|
@@ -2982,22 +3004,22 @@ function k(t, e) {
|
|
|
2982
3004
|
}
|
|
2983
3005
|
return !1;
|
|
2984
3006
|
}
|
|
2985
|
-
function
|
|
3007
|
+
function bi(t) {
|
|
2986
3008
|
return new Worker(
|
|
2987
|
-
"" + new URL("assets/ui-worker-
|
|
3009
|
+
"" + new URL("assets/ui-worker-Cnoq4Ubv.js", import.meta.url).href,
|
|
2988
3010
|
{
|
|
2989
3011
|
type: "module",
|
|
2990
3012
|
name: t?.name
|
|
2991
3013
|
}
|
|
2992
3014
|
);
|
|
2993
3015
|
}
|
|
2994
|
-
const
|
|
2995
|
-
class
|
|
3016
|
+
const D = it("IkonUiCore");
|
|
3017
|
+
class Mi {
|
|
2996
3018
|
unsubscribeProtocolMessages;
|
|
2997
3019
|
unsubscribeState;
|
|
2998
3020
|
client = null;
|
|
2999
3021
|
lastConnectedSessionId = void 0;
|
|
3000
|
-
uiStore = new
|
|
3022
|
+
uiStore = new Di();
|
|
3001
3023
|
uiWorker = null;
|
|
3002
3024
|
uiStyles = /* @__PURE__ */ new Map();
|
|
3003
3025
|
uiUpdateListeners = /* @__PURE__ */ new Set();
|
|
@@ -3059,23 +3081,23 @@ class gi {
|
|
|
3059
3081
|
}
|
|
3060
3082
|
if (n === "connected") {
|
|
3061
3083
|
const i = this.client?.sessionId;
|
|
3062
|
-
this.lastConnectedSessionId !== void 0 && i !== this.lastConnectedSessionId && (
|
|
3084
|
+
this.lastConnectedSessionId !== void 0 && i !== this.lastConnectedSessionId && (D.info(`SessionId changed (${this.lastConnectedSessionId} → ${i}), clearing UI cache so the server can resend a fresh snapshot under the new SessionId`), this.clearAllState()), this.lastConnectedSessionId = i;
|
|
3063
3085
|
}
|
|
3064
3086
|
});
|
|
3065
3087
|
}
|
|
3066
3088
|
startUiWorker(e) {
|
|
3067
3089
|
try {
|
|
3068
|
-
this.uiWorker = new
|
|
3090
|
+
this.uiWorker = new bi();
|
|
3069
3091
|
} catch (n) {
|
|
3070
|
-
|
|
3092
|
+
D.warn("Failed to create UI worker, falling back to main thread", n), this.uiWorker = null;
|
|
3071
3093
|
return;
|
|
3072
3094
|
}
|
|
3073
3095
|
const r = e?.threading?.flushIntervalMs, s = e?.threading?.maxLatencyMs;
|
|
3074
3096
|
this.uiWorker.postMessage({ type: "configure", flushIntervalMs: r, maxLatencyMs: s }), this.uiWorker.addEventListener("message", (n) => {
|
|
3075
3097
|
this.handleUiStoreOpBatch(n.data);
|
|
3076
3098
|
}), this.uiWorker.addEventListener("error", (n) => {
|
|
3077
|
-
const i = [n.message, n.filename, n.lineno, n.colno].filter((
|
|
3078
|
-
|
|
3099
|
+
const i = [n.message, n.filename, n.lineno, n.colno].filter((o) => o != null && String(o).length > 0);
|
|
3100
|
+
D.warn(`UI worker failed, falling back to main thread: ${i.join(" ")}`.trim()), this.uiWorker?.terminate(), this.uiWorker = null, this.rehydrateStoresForMainThread();
|
|
3079
3101
|
});
|
|
3080
3102
|
}
|
|
3081
3103
|
rehydrateStoresForMainThread() {
|
|
@@ -3103,7 +3125,7 @@ class gi {
|
|
|
3103
3125
|
const r = e.slice().buffer;
|
|
3104
3126
|
this.uiWorker.postMessage({ type: "protocol", message: r }, [r]);
|
|
3105
3127
|
} catch (r) {
|
|
3106
|
-
|
|
3128
|
+
D.warn("Failed to forward message to UI worker", r);
|
|
3107
3129
|
}
|
|
3108
3130
|
}
|
|
3109
3131
|
handleUiStoreOpBatch(e) {
|
|
@@ -3143,7 +3165,7 @@ class gi {
|
|
|
3143
3165
|
const i = n.views.get(n.rootViewId);
|
|
3144
3166
|
if (!i)
|
|
3145
3167
|
return;
|
|
3146
|
-
const
|
|
3168
|
+
const o = {
|
|
3147
3169
|
snapshot: {
|
|
3148
3170
|
type: "full",
|
|
3149
3171
|
version: n.version ?? 0,
|
|
@@ -3152,12 +3174,12 @@ class gi {
|
|
|
3152
3174
|
},
|
|
3153
3175
|
payloads: n.payloads
|
|
3154
3176
|
};
|
|
3155
|
-
this.notifyUiUpdate(s,
|
|
3177
|
+
this.notifyUiUpdate(s, o);
|
|
3156
3178
|
return;
|
|
3157
3179
|
}
|
|
3158
3180
|
}
|
|
3159
3181
|
handleProtocolMessage(e) {
|
|
3160
|
-
switch (
|
|
3182
|
+
switch (Jt(e)) {
|
|
3161
3183
|
case L.CORE_GLOBAL_STATE:
|
|
3162
3184
|
this.handleGlobalState(e);
|
|
3163
3185
|
return;
|
|
@@ -3181,27 +3203,27 @@ class gi {
|
|
|
3181
3203
|
}
|
|
3182
3204
|
}
|
|
3183
3205
|
handleGlobalState(e) {
|
|
3184
|
-
|
|
3206
|
+
gn(e).then((r) => {
|
|
3185
3207
|
const s = /* @__PURE__ */ new Set();
|
|
3186
3208
|
for (const n of Object.values(r.UIStreams ?? {}))
|
|
3187
3209
|
s.add(n.StreamId), this.uiStore.setCategory(n.StreamId, n.Info?.Category);
|
|
3188
3210
|
for (const n of this.uiStore.getSnapshots())
|
|
3189
3211
|
s.has(n.streamId) || (this.uiStore.remove(n.streamId), this.notifyUiStreamCleared(n.streamId));
|
|
3190
3212
|
}).catch((r) => {
|
|
3191
|
-
|
|
3213
|
+
D.error("Failed to handle global state", r);
|
|
3192
3214
|
});
|
|
3193
3215
|
}
|
|
3194
3216
|
handleUiUpdate(e) {
|
|
3195
3217
|
const r = rt(e), s = `${r.senderId}_${r.trackId}`;
|
|
3196
|
-
|
|
3197
|
-
const i =
|
|
3218
|
+
vs(e).then((n) => {
|
|
3219
|
+
const i = yi(n);
|
|
3198
3220
|
this.notifyUiUpdate(s, i), this.uiStore.apply(s, i), this.sendUiUpdateAck(r.trackId, i.snapshot.version, r.senderId);
|
|
3199
3221
|
}).catch((n) => {
|
|
3200
|
-
n instanceof
|
|
3222
|
+
n instanceof R ? D.warn("Failed to parse UI update", n.causeError ?? n) : D.error("Failed to apply UI update", n);
|
|
3201
3223
|
});
|
|
3202
3224
|
}
|
|
3203
3225
|
handleUiStyles(e) {
|
|
3204
|
-
|
|
3226
|
+
ls(e).then((r) => {
|
|
3205
3227
|
if (!r.StyleId) return;
|
|
3206
3228
|
const s = {
|
|
3207
3229
|
styleId: r.StyleId,
|
|
@@ -3210,11 +3232,11 @@ class gi {
|
|
|
3210
3232
|
};
|
|
3211
3233
|
this.uiStyles.set(s.styleId, s), this.notifyUiStyle(s);
|
|
3212
3234
|
}).catch((r) => {
|
|
3213
|
-
|
|
3235
|
+
D.error("Failed to handle UI styles", r);
|
|
3214
3236
|
});
|
|
3215
3237
|
}
|
|
3216
3238
|
handleUiStylesBatch(e) {
|
|
3217
|
-
|
|
3239
|
+
Ts(e).then((r) => {
|
|
3218
3240
|
if (r.Styles)
|
|
3219
3241
|
for (const s of r.Styles) {
|
|
3220
3242
|
if (!s.StyleId) continue;
|
|
@@ -3226,18 +3248,18 @@ class gi {
|
|
|
3226
3248
|
this.uiStyles.set(n.styleId, n), this.notifyUiStyle(n);
|
|
3227
3249
|
}
|
|
3228
3250
|
}).catch((r) => {
|
|
3229
|
-
|
|
3251
|
+
D.error("Failed to handle UI styles batch", r);
|
|
3230
3252
|
});
|
|
3231
3253
|
}
|
|
3232
3254
|
handleUiStylesDelete(e) {
|
|
3233
|
-
|
|
3255
|
+
gs(e).then((r) => {
|
|
3234
3256
|
if (!(!r.StyleIds || r.StyleIds.length === 0)) {
|
|
3235
3257
|
for (const s of r.StyleIds)
|
|
3236
3258
|
this.uiStyles.delete(s);
|
|
3237
3259
|
this.notifyUiStyleDelete(r.StyleIds);
|
|
3238
3260
|
}
|
|
3239
3261
|
}).catch((r) => {
|
|
3240
|
-
|
|
3262
|
+
D.error("Failed to handle UI styles delete", r);
|
|
3241
3263
|
});
|
|
3242
3264
|
}
|
|
3243
3265
|
handleClearStream(e) {
|
|
@@ -3263,18 +3285,18 @@ class gi {
|
|
|
3263
3285
|
sendUiUpdateAck(e, r, s) {
|
|
3264
3286
|
if (this.client && !(!Number.isFinite(r) || r < 0))
|
|
3265
3287
|
try {
|
|
3266
|
-
const n = s !== void 0 ? { trackId: e, targetIds: [s] } : { trackId: e }, i =
|
|
3288
|
+
const n = s !== void 0 ? { trackId: e, targetIds: [s] } : { trackId: e }, i = Ks({ Version: r }, this.client.sessionId ?? 0, n);
|
|
3267
3289
|
this.client.sendProtocolMessage(i);
|
|
3268
3290
|
} catch (n) {
|
|
3269
|
-
|
|
3291
|
+
D.warn("Failed to send UI update ack", n);
|
|
3270
3292
|
}
|
|
3271
3293
|
}
|
|
3272
3294
|
}
|
|
3273
3295
|
export {
|
|
3274
|
-
|
|
3275
|
-
|
|
3276
|
-
|
|
3277
|
-
|
|
3278
|
-
|
|
3279
|
-
|
|
3296
|
+
wi as HandlerCache,
|
|
3297
|
+
Mi as IkonUiCore,
|
|
3298
|
+
Di as UiStore,
|
|
3299
|
+
Ui as UiStreamStore,
|
|
3300
|
+
R as UiUpdateParseError,
|
|
3301
|
+
yi as parseUiUpdate
|
|
3280
3302
|
};
|