@ikonai/sdk 1.0.39 → 1.0.41

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.
@@ -5,7 +5,7 @@ function Z(t) {
5
5
  const r = g(t), e = new DataView(r.buffer, r.byteOffset, r.byteLength);
6
6
  if (r.length < 27)
7
7
  throw new Error("Protocol payload too short");
8
- const n = e.getUint32(0, !0), s = e.getUint32(4, !0), _ = e.getUint32(8, !0), E = e.getUint32(12, !0), i = e.getUint32(16, !0), N = e.getUint32(20, !0), C = e.getUint8(24), m = e.getUint8(25), Q = e.getUint8(26);
8
+ const n = e.getUint32(0, !0), _ = e.getUint32(4, !0), s = e.getUint32(8, !0), E = e.getUint32(12, !0), i = e.getUint32(16, !0), N = e.getUint32(20, !0), f = e.getUint8(24), m = e.getUint8(25), Q = e.getUint8(26);
9
9
  if (27 + N * 4 > r.length)
10
10
  throw new Error("Protocol header exceeds payload length");
11
11
  const H = [];
@@ -14,42 +14,42 @@ function Z(t) {
14
14
  H.push(e.getUint32(K, !0)), K += 4;
15
15
  return {
16
16
  length: n,
17
- opcode: s,
18
- senderId: _,
17
+ opcode: _,
18
+ senderId: s,
19
19
  trackId: E,
20
20
  sequenceId: i,
21
21
  targetIds: H,
22
- payloadVersion: C,
22
+ payloadVersion: f,
23
23
  payloadType: m,
24
24
  flags: Q
25
25
  };
26
26
  }
27
27
  async function k(t, r, e) {
28
- const n = g(t), s = Z(n);
29
- if (r !== void 0 && s.opcode !== r)
30
- throw new Error(`Unexpected opcode ${s.opcode}`);
31
- if (s.payloadType !== 8)
32
- throw new Error(`Unexpected payload type ${s.payloadType}`);
33
- const _ = 27 + s.targetIds.length * 4;
34
- let E = n.subarray(_, s.length);
35
- return (s.flags & J.Compressed) !== 0 && (E = await p(E)), E;
28
+ const n = g(t), _ = Z(n);
29
+ if (r !== void 0 && _.opcode !== r)
30
+ throw new Error(`Unexpected opcode ${_.opcode}`);
31
+ if (_.payloadType !== 8)
32
+ throw new Error(`Unexpected payload type ${_.payloadType}`);
33
+ const s = 27 + _.targetIds.length * 4;
34
+ let E = n.subarray(s, _.length);
35
+ return (_.flags & J.Compressed) !== 0 && (E = await p(E)), E;
36
36
  }
37
37
  async function p(t) {
38
38
  if (typeof DecompressionStream > "u")
39
39
  throw new Error("DecompressionStream not supported");
40
40
  const r = new DecompressionStream("gzip"), e = r.writable.getWriter(), n = new Uint8Array(t);
41
41
  e.write(n), e.close();
42
- const s = r.readable.getReader(), _ = [];
42
+ const _ = r.readable.getReader(), s = [];
43
43
  let E = 0;
44
44
  for (; ; ) {
45
- const { done: C, value: m } = await s.read();
46
- if (C) break;
47
- _.push(m), E += m.length;
45
+ const { done: f, value: m } = await _.read();
46
+ if (f) break;
47
+ s.push(m), E += m.length;
48
48
  }
49
49
  const i = new Uint8Array(E);
50
50
  let N = 0;
51
- for (let C = 0; C < _.length; C++)
52
- i.set(_[C], N), N += _[C].length;
51
+ for (let f = 0; f < s.length; f++)
52
+ i.set(s[f], N), N += s[f].length;
53
53
  return i;
54
54
  }
55
55
  var l = /* @__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))(l || {});
@@ -68,8 +68,8 @@ class P {
68
68
  throw new Error("Teleport payload too short");
69
69
  if (e[0] !== tt || e[e.length - 1] !== rt)
70
70
  throw new Error("Teleport object missing markers");
71
- const n = { offset: 1 }, s = A(e, n, "InvalidLength");
72
- return new P(e, s, n.offset);
71
+ const n = { offset: 1 }, _ = A(e, n, "InvalidLength");
72
+ return new P(e, _, n.offset);
73
73
  }
74
74
  next() {
75
75
  if (this.offset >= this.end)
@@ -81,18 +81,18 @@ class P {
81
81
  const e = this.buffer[this.offset++], n = e >> 4 & 15;
82
82
  if ((e & 15) !== 0)
83
83
  throw new Error("Teleport field flags must be zero");
84
- const s = S(n);
85
- let _;
86
- if (s >= 0)
87
- a(this.buffer, this.offset, s), _ = this.buffer.subarray(this.offset, this.offset + s), this.offset += s;
84
+ const _ = S(n);
85
+ let s;
86
+ if (_ >= 0)
87
+ a(this.buffer, this.offset, _), s = this.buffer.subarray(this.offset, this.offset + _), this.offset += _;
88
88
  else {
89
89
  const E = { offset: this.offset }, i = A(this.buffer, E, "InvalidLength");
90
- a(this.buffer, E.offset, i), _ = this.buffer.subarray(E.offset, E.offset + i), this.offset = E.offset + i;
90
+ a(this.buffer, E.offset, i), s = this.buffer.subarray(E.offset, E.offset + i), this.offset = E.offset + i;
91
91
  }
92
- return new nt(r, n, _);
92
+ return new nt(r, n, s);
93
93
  }
94
94
  }
95
- class f {
95
+ class C {
96
96
  constructor(r, e) {
97
97
  this.type = r, this.payload = e;
98
98
  }
@@ -185,7 +185,7 @@ class f {
185
185
  throw new Error(`Teleport value has type ${l[this.type]}, expected ${l[r]}`);
186
186
  }
187
187
  }
188
- class nt extends f {
188
+ class nt extends C {
189
189
  constructor(r, e, n) {
190
190
  super(e, n), this.fieldId = r;
191
191
  }
@@ -261,7 +261,7 @@ class V {
261
261
  }
262
262
  }
263
263
  }
264
- class D extends f {
264
+ class D extends C {
265
265
  constructor(r, e) {
266
266
  super(r, e);
267
267
  }
@@ -292,20 +292,20 @@ class G {
292
292
  return null;
293
293
  }
294
294
  const r = this.readKey(), e = this.readValue();
295
- return this.index++, new st(r, e);
295
+ return this.index++, new _t(r, e);
296
296
  }
297
297
  readKey() {
298
298
  const r = S(this.keyType);
299
299
  if (r >= 0) {
300
300
  a(this.payload, this.offset, r);
301
301
  const e = this.payload.subarray(this.offset, this.offset + r);
302
- return this.offset += r, new f(this.keyType, e);
302
+ return this.offset += r, new C(this.keyType, e);
303
303
  }
304
304
  if (this.keyType === 12 || this.keyType === 13) {
305
305
  const e = { offset: this.offset }, n = A(this.payload, e, "DictMalformed");
306
306
  a(this.payload, e.offset, n);
307
- const s = this.payload.subarray(e.offset, e.offset + n);
308
- return this.offset = e.offset + n, new f(this.keyType, s);
307
+ const _ = this.payload.subarray(e.offset, e.offset + n);
308
+ return this.offset = e.offset + n, new C(this.keyType, _);
309
309
  }
310
310
  throw new Error("Unsupported dictionary key type");
311
311
  }
@@ -316,21 +316,21 @@ class G {
316
316
  const r = { offset: this.offset }, e = A(this.payload, r, "DictMalformed");
317
317
  a(this.payload, r.offset, e);
318
318
  const n = this.payload.subarray(r.offset, r.offset + e);
319
- return this.offset = r.offset + e, new f(this.valueType, n);
319
+ return this.offset = r.offset + e, new C(this.valueType, n);
320
320
  }
321
321
  case 11: {
322
322
  const r = { offset: this.offset }, e = A(this.payload, r, "DictMalformed");
323
323
  a(this.payload, r.offset, e);
324
324
  const n = this.payload.subarray(r.offset, r.offset + e);
325
- return this.offset = r.offset + e, new f(11, n);
325
+ return this.offset = r.offset + e, new C(11, n);
326
326
  }
327
327
  case 9: {
328
328
  const r = B(this.payload, this.offset), e = this.payload.subarray(this.offset, this.offset + r);
329
- return this.offset += r, new f(9, e);
329
+ return this.offset += r, new C(9, e);
330
330
  }
331
331
  case 10: {
332
332
  const r = b(this.payload, this.offset), e = this.payload.subarray(this.offset, this.offset + r);
333
- return this.offset += r, new f(10, e);
333
+ return this.offset += r, new C(10, e);
334
334
  }
335
335
  case 3:
336
336
  case 5:
@@ -344,14 +344,14 @@ class G {
344
344
  const r = S(this.valueType);
345
345
  a(this.payload, this.offset, r);
346
346
  const e = this.payload.subarray(this.offset, this.offset + r);
347
- return this.offset += r, new f(this.valueType, e);
347
+ return this.offset += r, new C(this.valueType, e);
348
348
  }
349
349
  default:
350
350
  throw new Error(`Unsupported dictionary value type ${l[this.valueType]}`);
351
351
  }
352
352
  }
353
353
  }
354
- class st {
354
+ class _t {
355
355
  constructor(r, e) {
356
356
  this.key = r, this.value = e;
357
357
  }
@@ -366,8 +366,8 @@ class I {
366
366
  const e = r.replace(/-/g, "");
367
367
  if (e.length !== 32)
368
368
  throw new Error("Guid string must be 32 hex characters");
369
- const n = new Uint8Array(16), s = I.parseHexSlice(e, 0, 8), _ = I.parseHexSlice(e, 8, 4), E = I.parseHexSlice(e, 12, 4);
370
- I.writeUInt32LE(n, 0, s), I.writeUInt16LE(n, 4, _), I.writeUInt16LE(n, 6, E);
369
+ const n = new Uint8Array(16), _ = I.parseHexSlice(e, 0, 8), s = I.parseHexSlice(e, 8, 4), E = I.parseHexSlice(e, 12, 4);
370
+ I.writeUInt32LE(n, 0, _), I.writeUInt16LE(n, 4, s), I.writeUInt16LE(n, 6, E);
371
371
  for (let i = 0; i < 8; i++)
372
372
  n[8 + i] = I.parseHexSlice(e, 16 + i * 2, 2);
373
373
  return new I(n);
@@ -403,18 +403,18 @@ class I {
403
403
  return this.bytes.slice();
404
404
  }
405
405
  static parseHexSlice(r, e, n) {
406
- const s = r.substr(e, n), _ = Number.parseInt(s, 16);
407
- if (Number.isNaN(_))
406
+ const _ = r.substr(e, n), s = Number.parseInt(_, 16);
407
+ if (Number.isNaN(s))
408
408
  throw new Error("Guid string contains invalid characters");
409
- return _ >>> 0;
409
+ return s >>> 0;
410
410
  }
411
411
  static writeUInt32LE(r, e, n) {
412
- const s = n >>> 0;
413
- r[e] = s & 255, r[e + 1] = s >>> 8 & 255, r[e + 2] = s >>> 16 & 255, r[e + 3] = s >>> 24 & 255;
412
+ const _ = n >>> 0;
413
+ r[e] = _ & 255, r[e + 1] = _ >>> 8 & 255, r[e + 2] = _ >>> 16 & 255, r[e + 3] = _ >>> 24 & 255;
414
414
  }
415
415
  static writeUInt16LE(r, e, n) {
416
- const s = n & 65535;
417
- r[e] = s & 255, r[e + 1] = s >>> 8 & 255;
416
+ const _ = n & 65535;
417
+ r[e] = _ & 255, r[e + 1] = _ >>> 8 & 255;
418
418
  }
419
419
  static readUInt32LE(r, e) {
420
420
  return (r[e] | r[e + 1] << 8 | r[e + 2] << 16 | r[e + 3] << 24) >>> 0;
@@ -429,20 +429,20 @@ class I {
429
429
  function A(t, r, e) {
430
430
  if (r.offset >= t.length)
431
431
  throw new Error(e);
432
- let n = 0, s = 0, _ = 0;
432
+ let n = 0, _ = 0, s = 0;
433
433
  for (; r.offset < t.length; ) {
434
434
  const E = t[r.offset++];
435
- if (_++, n |= (E & 127) << s, (E & 128) === 0) {
436
- if (_ !== _t(n))
435
+ if (s++, n |= (E & 127) << _, (E & 128) === 0) {
436
+ if (s !== st(n))
437
437
  throw new Error("Teleport VarUInt is not canonical");
438
438
  return n >>> 0;
439
439
  }
440
- if (s += 7, s >= 35)
440
+ if (_ += 7, _ >= 35)
441
441
  throw new Error("Teleport VarUInt exceeds 32-bit range");
442
442
  }
443
443
  throw new Error(e);
444
444
  }
445
- function _t(t) {
445
+ function st(t) {
446
446
  return t < 128 ? 1 : t < 16384 ? 2 : t < 2097152 ? 3 : t < 268435456 ? 4 : 5;
447
447
  }
448
448
  function S(t) {
@@ -482,13 +482,13 @@ function B(t, r) {
482
482
  const e = t[r], n = e >> 4 & 15;
483
483
  if ((e & 15) !== 0)
484
484
  throw new Error("Array flags must be zero");
485
- const s = { offset: r + 1 }, _ = A(t, s, "ArrayMalformed"), E = S(n);
485
+ const _ = { offset: r + 1 }, s = A(t, _, "ArrayMalformed"), E = S(n);
486
486
  if (E >= 0) {
487
- const N = E * _;
488
- return a(t, s.offset, N), s.offset + N - r;
487
+ const N = E * s;
488
+ return a(t, _.offset, N), _.offset + N - r;
489
489
  }
490
- let i = s.offset;
491
- for (let N = 0; N < _; N++)
490
+ let i = _.offset;
491
+ for (let N = 0; N < s; N++)
492
492
  i = d(n, t, i, "ArrayMalformed");
493
493
  return i - r;
494
494
  }
@@ -499,25 +499,25 @@ function b(t, r) {
499
499
  if ((t[r] & 15) !== 0 || (t[r + 1] & 15) !== 0)
500
500
  throw new Error("Dictionary key/value flags must be zero");
501
501
  W(e);
502
- const s = { offset: r + 2 }, _ = A(t, s, "DictMalformed");
503
- let E = s.offset;
504
- for (let i = 0; i < _; i++)
502
+ const _ = { offset: r + 2 }, s = A(t, _, "DictMalformed");
503
+ let E = _.offset;
504
+ for (let i = 0; i < s; i++)
505
505
  E = d(e, t, E, "DictMalformed"), E = d(n, t, E, "DictMalformed");
506
506
  return E - r;
507
507
  }
508
508
  function d(t, r, e, n) {
509
- const s = S(t);
510
- if (s >= 0)
511
- return a(r, e, s), e + s;
509
+ const _ = S(t);
510
+ if (_ >= 0)
511
+ return a(r, e, _), e + _;
512
512
  switch (t) {
513
513
  case 12:
514
514
  case 13: {
515
- const _ = { offset: e }, E = A(r, _, n);
516
- return a(r, _.offset, E), _.offset + E;
515
+ const s = { offset: e }, E = A(r, s, n);
516
+ return a(r, s.offset, E), s.offset + E;
517
517
  }
518
518
  case 11: {
519
- const _ = { offset: e }, E = A(r, _, n);
520
- return a(r, _.offset, E), _.offset + E;
519
+ const s = { offset: e }, E = A(r, s, n);
520
+ return a(r, s.offset, E), s.offset + E;
521
521
  }
522
522
  case 9:
523
523
  return e + B(r, e);
@@ -533,8 +533,8 @@ function v(t) {
533
533
  function g(t) {
534
534
  return t instanceof Uint8Array ? t : new Uint8Array(t);
535
535
  }
536
- var h = /* @__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))(h || {}), 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_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.GROUP_KEEPALIVE = 131072] = "GROUP_KEEPALIVE", t[t.KEEPALIVE_REQUEST = 131073] = "KEEPALIVE_REQUEST", t[t.KEEPALIVE_RESPONSE = 131074] = "KEEPALIVE_RESPONSE", t[t.GROUP_EVENTS = 262144] = "GROUP_EVENTS", t[t.EVENTS_PROFILE_UPDATE = 262145] = "EVENTS_PROFILE_UPDATE", t[t.EVENTS_CHANNEL_COMPLETE = 262146] = "EVENTS_CHANNEL_COMPLETE", t[t.EVENTS_SPEECH_PLAYBACK_COMPLETE = 262147] = "EVENTS_SPEECH_PLAYBACK_COMPLETE", t[t.GROUP_ANALYTICS = 524288] = "GROUP_ANALYTICS", t[t.ANALYTICS_LOGS = 524289] = "ANALYTICS_LOGS", t[t.ANALYTICS_EVENTS = 524290] = "ANALYTICS_EVENTS", t[t.ANALYTICS_USAGES = 524291] = "ANALYTICS_USAGES", t[t.ANALYTICS_USAGE = 524292] = "ANALYTICS_USAGE", t[t.ANALYTICS_SPECIAL_LOG = 524293] = "ANALYTICS_SPECIAL_LOG", t[t.ANALYTICS_PROCESSING_UPDATE = 524294] = "ANALYTICS_PROCESSING_UPDATE", t[t.ANALYTICS_REACTIVE_PROCESSING_UPDATE = 524295] = "ANALYTICS_REACTIVE_PROCESSING_UPDATE", t[t.ANALYTICS_IKON_PROXY_SERVER_STATS = 524296] = "ANALYTICS_IKON_PROXY_SERVER_STATS", t[t.GROUP_ACTIONS = 1048576] = "GROUP_ACTIONS", t[t.ACTION_CALL = 1048577] = "ACTION_CALL", t[t.ACTION_ACTIVE = 1048578] = "ACTION_ACTIVE", t[t.ACTION_TEXT_OUTPUT = 1048579] = "ACTION_TEXT_OUTPUT", t[t.ACTION_TEXT_OUTPUT_DELTA = 1048580] = "ACTION_TEXT_OUTPUT_DELTA", t[t.ACTION_TEXT_OUTPUT_DELTA_FULL = 1048581] = "ACTION_TEXT_OUTPUT_DELTA_FULL", t[t.ACTION_SET_STATE = 1048582] = "ACTION_SET_STATE", t[t.ACTION_TAP = 1048583] = "ACTION_TAP", t[t.ACTION_PAN = 1048584] = "ACTION_PAN", t[t.ACTION_ZOOM = 1048585] = "ACTION_ZOOM", t[t.ACTION_FILE_UPLOAD_BEGIN = 1048586] = "ACTION_FILE_UPLOAD_BEGIN", t[t.ACTION_FILE_UPLOAD_DATA = 1048587] = "ACTION_FILE_UPLOAD_DATA", t[t.ACTION_FILE_UPLOAD_ACK = 1048588] = "ACTION_FILE_UPLOAD_ACK", t[t.ACTION_FILE_UPLOAD_END = 1048589] = "ACTION_FILE_UPLOAD_END", t[t.ACTION_FILE_UPLOAD_RESULT = 1048590] = "ACTION_FILE_UPLOAD_RESULT", t[t.ACTION_OPEN_CHANNEL = 1048591] = "ACTION_OPEN_CHANNEL", t[t.ACTION_OPEN_EXTERNAL_URL = 1048592] = "ACTION_OPEN_EXTERNAL_URL", t[t.ACTION_UI_OPEN_VIEW = 1048593] = "ACTION_UI_OPEN_VIEW", t[t.ACTION_UI_CLOSE_VIEW = 1048594] = "ACTION_UI_CLOSE_VIEW", t[t.ACTION_UI_BLOCKING_BEGIN = 1048595] = "ACTION_UI_BLOCKING_BEGIN", t[t.ACTION_UI_BLOCKING_END = 1048596] = "ACTION_UI_BLOCKING_END", t[t.ACTION_UI_UPDATE_TEXT_DELTA = 1048597] = "ACTION_UI_UPDATE_TEXT_DELTA", t[t.ACTION_UI_DELETE_CONTAINER = 1048598] = "ACTION_UI_DELETE_CONTAINER", t[t.ACTION_UPDATE_GFX_SHADER = 1048599] = "ACTION_UPDATE_GFX_SHADER", t[t.ACTION_FUNCTION_REGISTER = 1048600] = "ACTION_FUNCTION_REGISTER", t[t.ACTION_FUNCTION_CALL = 1048601] = "ACTION_FUNCTION_CALL", t[t.ACTION_FUNCTION_RESULT = 1048602] = "ACTION_FUNCTION_RESULT", t[t.ACTION_GENERATE_ANSWER = 1048603] = "ACTION_GENERATE_ANSWER", t[t.ACTION_REGENERATE_ANSWER = 1048604] = "ACTION_REGENERATE_ANSWER", t[t.ACTION_CLEAR_CHAT_MESSAGE_HISTORY = 1048605] = "ACTION_CLEAR_CHAT_MESSAGE_HISTORY", t[t.ACTION_CLEAR_STATE = 1048606] = "ACTION_CLEAR_STATE", t[t.ACTION_RELOAD_CHANNELS = 1048607] = "ACTION_RELOAD_CHANNELS", t[t.ACTION_RELOAD_PROFILE = 1048608] = "ACTION_RELOAD_PROFILE", t[t.ACTION_CLASSIFICATION_RESULT = 1048609] = "ACTION_CLASSIFICATION_RESULT", t[t.ACTION_AUDIO_STOP = 1048610] = "ACTION_AUDIO_STOP", t[t.ACTION_CALL_TEXT = 1048611] = "ACTION_CALL_TEXT", t[t.ACTION_RELOAD_APPLICATION = 1048612] = "ACTION_RELOAD_APPLICATION", t[t.ACTION_CANCEL_GENERATION = 1048613] = "ACTION_CANCEL_GENERATION", t[t.ACTION_UI_SET_CONTAINER_STABLE = 1048614] = "ACTION_UI_SET_CONTAINER_STABLE", t[t.ACTION_SPEECH_RECOGNIZED = 1048615] = "ACTION_SPEECH_RECOGNIZED", t[t.ACTION_CALL_RESULT = 1048616] = "ACTION_CALL_RESULT", t[t.ACTION_RELOAD_PROVIDER = 1048617] = "ACTION_RELOAD_PROVIDER", t[t.ACTION_DOWNLOAD = 1048618] = "ACTION_DOWNLOAD", t[t.ACTION_SCROLL_TO_CONTAINER = 1048619] = "ACTION_SCROLL_TO_CONTAINER", t[t.ACTION_UI_CLEAR_STREAM = 1048620] = "ACTION_UI_CLEAR_STREAM", t[t.ACTION_PLAY_SOUND = 1048621] = "ACTION_PLAY_SOUND", t[t.ACTION_ENTER_FULLSCREEN = 1048622] = "ACTION_ENTER_FULLSCREEN", t[t.ACTION_STOP_SOUND = 1048623] = "ACTION_STOP_SOUND", t[t.ACTION_START_RECORDING = 1048624] = "ACTION_START_RECORDING", t[t.ACTION_STOP_RECORDING = 1048625] = "ACTION_STOP_RECORDING", t[t.ACTION_OPTIMISTIC_CLIENT_CALLS = 1048626] = "ACTION_OPTIMISTIC_CLIENT_CALLS", t[t.ACTION_FUNCTION_ENUMERATION_ITEM = 1048627] = "ACTION_FUNCTION_ENUMERATION_ITEM", t[t.ACTION_FUNCTION_ENUMERATION_END = 1048628] = "ACTION_FUNCTION_ENUMERATION_END", t[t.ACTION_FUNCTION_CANCEL = 1048629] = "ACTION_FUNCTION_CANCEL", t[t.ACTION_FUNCTION_DISPOSE = 1048630] = "ACTION_FUNCTION_DISPOSE", t[t.ACTION_FUNCTION_ERROR = 1048631] = "ACTION_FUNCTION_ERROR", t[t.ACTION_FUNCTION_ACK = 1048632] = "ACTION_FUNCTION_ACK", t[t.ACTION_FUNCTION_AWAITING_APPROVAL = 1048633] = "ACTION_FUNCTION_AWAITING_APPROVAL", t[t.ACTION_FUNCTION_APPROVAL_REQUIRED = 1048634] = "ACTION_FUNCTION_APPROVAL_REQUIRED", t[t.ACTION_FUNCTION_APPROVAL_RESPONSE = 1048635] = "ACTION_FUNCTION_APPROVAL_RESPONSE", t[t.UI_UPDATE_ACK = 1048636] = "UI_UPDATE_ACK", t[t.ACTION_CALL2 = 1048637] = "ACTION_CALL2", t[t.ACTION_FUNCTION_REGISTER_BATCH = 1048638] = "ACTION_FUNCTION_REGISTER_BATCH", t[t.ACTION_TRIGGER_GIT_PULL = 1048639] = "ACTION_TRIGGER_GIT_PULL", t[t.ACTION_FILE_UPLOAD_CALLBACK = 1048640] = "ACTION_FILE_UPLOAD_CALLBACK", t[t.ACTION_CUSTOM_USER_MESSAGE = 1048641] = "ACTION_CUSTOM_USER_MESSAGE", t[t.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.GROUP_UI = 2097152] = "GROUP_UI", t[t.UI_STREAM_BEGIN = 2097153] = "UI_STREAM_BEGIN", t[t.UI_STREAM_END = 2097154] = "UI_STREAM_END", t[t.UI_CONTAINER_BEGIN = 2097155] = "UI_CONTAINER_BEGIN", t[t.UI_CONTAINER_END = 2097156] = "UI_CONTAINER_END", t[t.UI_SECTION_BEGIN = 2097157] = "UI_SECTION_BEGIN", t[t.UI_SECTION_END = 2097158] = "UI_SECTION_END", t[t.UI_LIST_BEGIN = 2097159] = "UI_LIST_BEGIN", t[t.UI_LIST_ITEM = 2097160] = "UI_LIST_ITEM", t[t.UI_LIST_END = 2097161] = "UI_LIST_END", t[t.UI_TEXT = 2097162] = "UI_TEXT", t[t.UI_HEADER = 2097163] = "UI_HEADER", t[t.UI_SEPARATOR = 2097164] = "UI_SEPARATOR", t[t.UI_BUTTON = 2097165] = "UI_BUTTON", t[t.UI_ICON_BUTTON = 2097166] = "UI_ICON_BUTTON", t[t.UI_IMAGE = 2097167] = "UI_IMAGE", t[t.UI_FILE = 2097168] = "UI_FILE", t[t.UI_BADGE = 2097169] = "UI_BADGE", t[t.UI_CONTENT_LINK = 2097170] = "UI_CONTENT_LINK", t[t.UI_MAP = 2097171] = "UI_MAP", t[t.UI_VEGA_CHART = 2097172] = "UI_VEGA_CHART", t[t.UI_ICON = 2097173] = "UI_ICON", t[t.UI_FILE_UPLOAD_SECTION_BEGIN = 2097174] = "UI_FILE_UPLOAD_SECTION_BEGIN", t[t.UI_FILE_UPLOAD_SECTION_END = 2097175] = "UI_FILE_UPLOAD_SECTION_END", t[t.UI_MATERIAL_SYMBOL = 2097176] = "UI_MATERIAL_SYMBOL", t[t.UI_BUTTON_BEGIN = 2097177] = "UI_BUTTON_BEGIN", t[t.UI_BUTTON_END = 2097178] = "UI_BUTTON_END", t[t.UI_CONTAINER_DELETE = 2097179] = "UI_CONTAINER_DELETE", t[t.UI_INPUT_TEXT = 2097180] = "UI_INPUT_TEXT", t[t.UI_PROGRESS_BAR = 2097181] = "UI_PROGRESS_BAR", t[t.UI_UPDATE_BEGIN = 2097182] = "UI_UPDATE_BEGIN", t[t.UI_UPDATE_END = 2097183] = "UI_UPDATE_END", t[t.UI_AUTOCOMPLETE = 2097184] = "UI_AUTOCOMPLETE", t[t.UI_CHECKBOX = 2097185] = "UI_CHECKBOX", t[t.UI_QS = 2097186] = "UI_QS", t[t.UI_ELEMENT = 2097187] = "UI_ELEMENT", t[t.UI_STYLES = 2097188] = "UI_STYLES", t[t.UI_SVG = 2097189] = "UI_SVG", t[t.UI_UPDATE = 2097190] = "UI_UPDATE", t[t.UI_INIT = 2097191] = "UI_INIT", t[t.UI_STYLES_BATCH = 2097192] = "UI_STYLES_BATCH", t[t.UI_STYLES_DELETE = 2097193] = "UI_STYLES_DELETE", t[t.GROUP_COMMON = 4128768] = "GROUP_COMMON", t[t.GROUP_AUDIO = 4194304] = "GROUP_AUDIO", t[t.AUDIO_STREAM_BEGIN = 4194305] = "AUDIO_STREAM_BEGIN", t[t.AUDIO_STREAM_END = 4194306] = "AUDIO_STREAM_END", t[t.AUDIO_FRAME = 4194307] = "AUDIO_FRAME", t[t.AUDIO_FRAME_VOLUME = 4194308] = "AUDIO_FRAME_VOLUME", t[t.AUDIO_FRAME2 = 4194309] = "AUDIO_FRAME2", t[t.GROUP_VIDEO = 8388608] = "GROUP_VIDEO", t[t.VIDEO_STREAM_BEGIN = 8388609] = "VIDEO_STREAM_BEGIN", t[t.VIDEO_STREAM_END = 8388610] = "VIDEO_STREAM_END", t[t.VIDEO_FRAME = 8388611] = "VIDEO_FRAME", t[t.VIDEO_REQUEST_IDR_FRAME = 8388612] = "VIDEO_REQUEST_IDR_FRAME", t[t.VIDEO_INVALIDATE_FRAME = 8388613] = "VIDEO_INVALIDATE_FRAME", t[t.GROUP_TRACKING = 16777216] = "GROUP_TRACKING", t[t.TRACKING_STREAM_BEGIN = 16777217] = "TRACKING_STREAM_BEGIN", t[t.TRACKING_STREAM_END = 16777218] = "TRACKING_STREAM_END", t[t.TRACKING_FRAME = 16777219] = "TRACKING_FRAME", t[t.GROUP_SCENE = 33554432] = "GROUP_SCENE", t[t.SCENE_MESH = 33554433] = "SCENE_MESH", t[t.SCENE_ARRAY = 33554434] = "SCENE_ARRAY", t[t.GROUP_ALL = 67043328] = "GROUP_ALL", t[t.CONSTANT_GROUP_MASK = 2147418112] = "CONSTANT_GROUP_MASK", t))(L || {});
537
- const it = 8388609, It = 161083277, at = 164808083, At = 1368629611, Tt = 2745379226, Nt = 2950031986, ft = 3282782683, Ct = 3284746250, ot = 4065070594;
536
+ var h = /* @__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))(h || {}), 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_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.GROUP_KEEPALIVE = 131072] = "GROUP_KEEPALIVE", t[t.KEEPALIVE_REQUEST = 131073] = "KEEPALIVE_REQUEST", t[t.KEEPALIVE_RESPONSE = 131074] = "KEEPALIVE_RESPONSE", t[t.GROUP_EVENTS = 262144] = "GROUP_EVENTS", t[t.EVENTS_PROFILE_UPDATE = 262145] = "EVENTS_PROFILE_UPDATE", t[t.EVENTS_CHANNEL_COMPLETE = 262146] = "EVENTS_CHANNEL_COMPLETE", t[t.EVENTS_SPEECH_PLAYBACK_COMPLETE = 262147] = "EVENTS_SPEECH_PLAYBACK_COMPLETE", t[t.GROUP_ANALYTICS = 524288] = "GROUP_ANALYTICS", t[t.ANALYTICS_LOGS = 524289] = "ANALYTICS_LOGS", t[t.ANALYTICS_EVENTS = 524290] = "ANALYTICS_EVENTS", t[t.ANALYTICS_USAGES = 524291] = "ANALYTICS_USAGES", t[t.ANALYTICS_USAGE = 524292] = "ANALYTICS_USAGE", t[t.ANALYTICS_SPECIAL_LOG = 524293] = "ANALYTICS_SPECIAL_LOG", t[t.ANALYTICS_PROCESSING_UPDATE = 524294] = "ANALYTICS_PROCESSING_UPDATE", t[t.ANALYTICS_REACTIVE_PROCESSING_UPDATE = 524295] = "ANALYTICS_REACTIVE_PROCESSING_UPDATE", t[t.ANALYTICS_IKON_PROXY_SERVER_STATS = 524296] = "ANALYTICS_IKON_PROXY_SERVER_STATS", t[t.GROUP_ACTIONS = 1048576] = "GROUP_ACTIONS", t[t.ACTION_CALL = 1048577] = "ACTION_CALL", t[t.ACTION_ACTIVE = 1048578] = "ACTION_ACTIVE", t[t.ACTION_TEXT_OUTPUT = 1048579] = "ACTION_TEXT_OUTPUT", t[t.ACTION_TEXT_OUTPUT_DELTA = 1048580] = "ACTION_TEXT_OUTPUT_DELTA", t[t.ACTION_TEXT_OUTPUT_DELTA_FULL = 1048581] = "ACTION_TEXT_OUTPUT_DELTA_FULL", t[t.ACTION_SET_STATE = 1048582] = "ACTION_SET_STATE", t[t.ACTION_TAP = 1048583] = "ACTION_TAP", t[t.ACTION_PAN = 1048584] = "ACTION_PAN", t[t.ACTION_ZOOM = 1048585] = "ACTION_ZOOM", t[t.ACTION_FILE_UPLOAD_BEGIN = 1048586] = "ACTION_FILE_UPLOAD_BEGIN", t[t.ACTION_FILE_UPLOAD_DATA = 1048587] = "ACTION_FILE_UPLOAD_DATA", t[t.ACTION_FILE_UPLOAD_ACK = 1048588] = "ACTION_FILE_UPLOAD_ACK", t[t.ACTION_FILE_UPLOAD_END = 1048589] = "ACTION_FILE_UPLOAD_END", t[t.ACTION_FILE_UPLOAD_RESULT = 1048590] = "ACTION_FILE_UPLOAD_RESULT", t[t.ACTION_OPEN_CHANNEL = 1048591] = "ACTION_OPEN_CHANNEL", t[t.ACTION_OPEN_EXTERNAL_URL = 1048592] = "ACTION_OPEN_EXTERNAL_URL", t[t.ACTION_UI_OPEN_VIEW = 1048593] = "ACTION_UI_OPEN_VIEW", t[t.ACTION_UI_CLOSE_VIEW = 1048594] = "ACTION_UI_CLOSE_VIEW", t[t.ACTION_UI_BLOCKING_BEGIN = 1048595] = "ACTION_UI_BLOCKING_BEGIN", t[t.ACTION_UI_BLOCKING_END = 1048596] = "ACTION_UI_BLOCKING_END", t[t.ACTION_UI_UPDATE_TEXT_DELTA = 1048597] = "ACTION_UI_UPDATE_TEXT_DELTA", t[t.ACTION_UI_DELETE_CONTAINER = 1048598] = "ACTION_UI_DELETE_CONTAINER", t[t.ACTION_UPDATE_GFX_SHADER = 1048599] = "ACTION_UPDATE_GFX_SHADER", t[t.ACTION_FUNCTION_REGISTER = 1048600] = "ACTION_FUNCTION_REGISTER", t[t.ACTION_FUNCTION_CALL = 1048601] = "ACTION_FUNCTION_CALL", t[t.ACTION_FUNCTION_RESULT = 1048602] = "ACTION_FUNCTION_RESULT", t[t.ACTION_GENERATE_ANSWER = 1048603] = "ACTION_GENERATE_ANSWER", t[t.ACTION_REGENERATE_ANSWER = 1048604] = "ACTION_REGENERATE_ANSWER", t[t.ACTION_CLEAR_CHAT_MESSAGE_HISTORY = 1048605] = "ACTION_CLEAR_CHAT_MESSAGE_HISTORY", t[t.ACTION_CLEAR_STATE = 1048606] = "ACTION_CLEAR_STATE", t[t.ACTION_RELOAD_CHANNELS = 1048607] = "ACTION_RELOAD_CHANNELS", t[t.ACTION_RELOAD_PROFILE = 1048608] = "ACTION_RELOAD_PROFILE", t[t.ACTION_CLASSIFICATION_RESULT = 1048609] = "ACTION_CLASSIFICATION_RESULT", t[t.ACTION_AUDIO_STOP = 1048610] = "ACTION_AUDIO_STOP", t[t.ACTION_CALL_TEXT = 1048611] = "ACTION_CALL_TEXT", t[t.ACTION_RELOAD_APPLICATION = 1048612] = "ACTION_RELOAD_APPLICATION", t[t.ACTION_CANCEL_GENERATION = 1048613] = "ACTION_CANCEL_GENERATION", t[t.ACTION_UI_SET_CONTAINER_STABLE = 1048614] = "ACTION_UI_SET_CONTAINER_STABLE", t[t.ACTION_SPEECH_RECOGNIZED = 1048615] = "ACTION_SPEECH_RECOGNIZED", t[t.ACTION_CALL_RESULT = 1048616] = "ACTION_CALL_RESULT", t[t.ACTION_RELOAD_PROVIDER = 1048617] = "ACTION_RELOAD_PROVIDER", t[t.ACTION_DOWNLOAD = 1048618] = "ACTION_DOWNLOAD", t[t.ACTION_SCROLL_TO_CONTAINER = 1048619] = "ACTION_SCROLL_TO_CONTAINER", t[t.ACTION_UI_CLEAR_STREAM = 1048620] = "ACTION_UI_CLEAR_STREAM", t[t.ACTION_PLAY_SOUND = 1048621] = "ACTION_PLAY_SOUND", t[t.ACTION_ENTER_FULLSCREEN = 1048622] = "ACTION_ENTER_FULLSCREEN", t[t.ACTION_STOP_SOUND = 1048623] = "ACTION_STOP_SOUND", t[t.ACTION_START_RECORDING = 1048624] = "ACTION_START_RECORDING", t[t.ACTION_STOP_RECORDING = 1048625] = "ACTION_STOP_RECORDING", t[t.ACTION_OPTIMISTIC_CLIENT_CALLS = 1048626] = "ACTION_OPTIMISTIC_CLIENT_CALLS", t[t.ACTION_FUNCTION_ENUMERATION_ITEM = 1048627] = "ACTION_FUNCTION_ENUMERATION_ITEM", t[t.ACTION_FUNCTION_ENUMERATION_END = 1048628] = "ACTION_FUNCTION_ENUMERATION_END", t[t.ACTION_FUNCTION_CANCEL = 1048629] = "ACTION_FUNCTION_CANCEL", t[t.ACTION_FUNCTION_DISPOSE = 1048630] = "ACTION_FUNCTION_DISPOSE", t[t.ACTION_FUNCTION_ERROR = 1048631] = "ACTION_FUNCTION_ERROR", t[t.ACTION_FUNCTION_ACK = 1048632] = "ACTION_FUNCTION_ACK", t[t.ACTION_FUNCTION_AWAITING_APPROVAL = 1048633] = "ACTION_FUNCTION_AWAITING_APPROVAL", t[t.ACTION_FUNCTION_APPROVAL_REQUIRED = 1048634] = "ACTION_FUNCTION_APPROVAL_REQUIRED", t[t.ACTION_FUNCTION_APPROVAL_RESPONSE = 1048635] = "ACTION_FUNCTION_APPROVAL_RESPONSE", t[t.UI_UPDATE_ACK = 1048636] = "UI_UPDATE_ACK", t[t.ACTION_CALL2 = 1048637] = "ACTION_CALL2", t[t.ACTION_FUNCTION_REGISTER_BATCH = 1048638] = "ACTION_FUNCTION_REGISTER_BATCH", t[t.ACTION_TRIGGER_GIT_PULL = 1048639] = "ACTION_TRIGGER_GIT_PULL", t[t.ACTION_FILE_UPLOAD_CALLBACK = 1048640] = "ACTION_FILE_UPLOAD_CALLBACK", t[t.ACTION_CUSTOM_USER_MESSAGE = 1048641] = "ACTION_CUSTOM_USER_MESSAGE", t[t.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.GROUP_UI = 2097152] = "GROUP_UI", t[t.UI_STREAM_BEGIN = 2097153] = "UI_STREAM_BEGIN", t[t.UI_STREAM_END = 2097154] = "UI_STREAM_END", t[t.UI_CONTAINER_BEGIN = 2097155] = "UI_CONTAINER_BEGIN", t[t.UI_CONTAINER_END = 2097156] = "UI_CONTAINER_END", t[t.UI_SECTION_BEGIN = 2097157] = "UI_SECTION_BEGIN", t[t.UI_SECTION_END = 2097158] = "UI_SECTION_END", t[t.UI_LIST_BEGIN = 2097159] = "UI_LIST_BEGIN", t[t.UI_LIST_ITEM = 2097160] = "UI_LIST_ITEM", t[t.UI_LIST_END = 2097161] = "UI_LIST_END", t[t.UI_TEXT = 2097162] = "UI_TEXT", t[t.UI_HEADER = 2097163] = "UI_HEADER", t[t.UI_SEPARATOR = 2097164] = "UI_SEPARATOR", t[t.UI_BUTTON = 2097165] = "UI_BUTTON", t[t.UI_ICON_BUTTON = 2097166] = "UI_ICON_BUTTON", t[t.UI_IMAGE = 2097167] = "UI_IMAGE", t[t.UI_FILE = 2097168] = "UI_FILE", t[t.UI_BADGE = 2097169] = "UI_BADGE", t[t.UI_CONTENT_LINK = 2097170] = "UI_CONTENT_LINK", t[t.UI_MAP = 2097171] = "UI_MAP", t[t.UI_VEGA_CHART = 2097172] = "UI_VEGA_CHART", t[t.UI_ICON = 2097173] = "UI_ICON", t[t.UI_FILE_UPLOAD_SECTION_BEGIN = 2097174] = "UI_FILE_UPLOAD_SECTION_BEGIN", t[t.UI_FILE_UPLOAD_SECTION_END = 2097175] = "UI_FILE_UPLOAD_SECTION_END", t[t.UI_MATERIAL_SYMBOL = 2097176] = "UI_MATERIAL_SYMBOL", t[t.UI_BUTTON_BEGIN = 2097177] = "UI_BUTTON_BEGIN", t[t.UI_BUTTON_END = 2097178] = "UI_BUTTON_END", t[t.UI_CONTAINER_DELETE = 2097179] = "UI_CONTAINER_DELETE", t[t.UI_INPUT_TEXT = 2097180] = "UI_INPUT_TEXT", t[t.UI_PROGRESS_BAR = 2097181] = "UI_PROGRESS_BAR", t[t.UI_UPDATE_BEGIN = 2097182] = "UI_UPDATE_BEGIN", t[t.UI_UPDATE_END = 2097183] = "UI_UPDATE_END", t[t.UI_AUTOCOMPLETE = 2097184] = "UI_AUTOCOMPLETE", t[t.UI_CHECKBOX = 2097185] = "UI_CHECKBOX", t[t.UI_QS = 2097186] = "UI_QS", t[t.UI_ELEMENT = 2097187] = "UI_ELEMENT", t[t.UI_STYLES = 2097188] = "UI_STYLES", t[t.UI_SVG = 2097189] = "UI_SVG", t[t.UI_UPDATE = 2097190] = "UI_UPDATE", t[t.UI_INIT = 2097191] = "UI_INIT", t[t.UI_STYLES_BATCH = 2097192] = "UI_STYLES_BATCH", t[t.UI_STYLES_DELETE = 2097193] = "UI_STYLES_DELETE", t[t.GROUP_COMMON = 4128768] = "GROUP_COMMON", t[t.GROUP_AUDIO = 4194304] = "GROUP_AUDIO", t[t.AUDIO_STREAM_BEGIN = 4194305] = "AUDIO_STREAM_BEGIN", t[t.AUDIO_STREAM_END = 4194306] = "AUDIO_STREAM_END", t[t.AUDIO_FRAME = 4194307] = "AUDIO_FRAME", t[t.AUDIO_FRAME_VOLUME = 4194308] = "AUDIO_FRAME_VOLUME", t[t.AUDIO_FRAME2 = 4194309] = "AUDIO_FRAME2", t[t.GROUP_VIDEO = 8388608] = "GROUP_VIDEO", t[t.VIDEO_STREAM_BEGIN = 8388609] = "VIDEO_STREAM_BEGIN", t[t.VIDEO_STREAM_END = 8388610] = "VIDEO_STREAM_END", t[t.VIDEO_FRAME = 8388611] = "VIDEO_FRAME", t[t.VIDEO_REQUEST_IDR_FRAME = 8388612] = "VIDEO_REQUEST_IDR_FRAME", t[t.VIDEO_INVALIDATE_FRAME = 8388613] = "VIDEO_INVALIDATE_FRAME", t[t.GROUP_TRACKING = 16777216] = "GROUP_TRACKING", t[t.TRACKING_STREAM_BEGIN = 16777217] = "TRACKING_STREAM_BEGIN", t[t.TRACKING_STREAM_END = 16777218] = "TRACKING_STREAM_END", t[t.TRACKING_FRAME = 16777219] = "TRACKING_FRAME", t[t.GROUP_SCENE = 33554432] = "GROUP_SCENE", t[t.SCENE_MESH = 33554433] = "SCENE_MESH", t[t.SCENE_ARRAY = 33554434] = "SCENE_ARRAY", t[t.GROUP_ALL = 67043328] = "GROUP_ALL", t[t.CONSTANT_GROUP_MASK = 2147418112] = "CONSTANT_GROUP_MASK", t))(L || {});
537
+ const it = 8388609, It = 161083277, at = 164808083, At = 1368629611, Tt = 2745379226, Nt = 2950031986, Ct = 3282782683, ft = 3284746250, ot = 4065070594;
538
538
  function ut(t) {
539
539
  const r = {};
540
540
  return X(r), r;
@@ -579,12 +579,12 @@ function Ut(t, r) {
579
579
  r.Height = e.asInt32();
580
580
  break;
581
581
  }
582
- case ft: {
582
+ case Ct: {
583
583
  if (e.isNull) throw new Error();
584
584
  r.SourceType = e.asString();
585
585
  break;
586
586
  }
587
- case Ct: {
587
+ case ft: {
588
588
  if (e.isNull) throw new Error();
589
589
  r.Codec = e.asInt32();
590
590
  break;
@@ -726,17 +726,17 @@ async function Ht(t, r, e) {
726
726
  };
727
727
  if (typeof VideoDecoder?.isConfigSupported != "function")
728
728
  return { config: { ...n, hardwareAcceleration: "prefer-hardware" }, isHardwareAccelerated: !0 };
729
- const s = { ...n, hardwareAcceleration: "prefer-hardware" };
729
+ const _ = { ...n, hardwareAcceleration: "prefer-hardware" };
730
730
  try {
731
- const _ = await VideoDecoder.isConfigSupported(s);
732
- if (_.supported)
733
- return { config: _.config ?? s, isHardwareAccelerated: !0 };
731
+ const s = await VideoDecoder.isConfigSupported(_);
732
+ if (s.supported)
733
+ return { config: s.config ?? _, isHardwareAccelerated: !0 };
734
734
  } catch {
735
735
  }
736
736
  try {
737
- const _ = await VideoDecoder.isConfigSupported(n);
738
- if (_.supported)
739
- return { config: _.config ?? n, isHardwareAccelerated: !1 };
737
+ const s = await VideoDecoder.isConfigSupported(n);
738
+ if (s.supported)
739
+ return { config: s.config ?? n, isHardwareAccelerated: !1 };
740
740
  } catch {
741
741
  }
742
742
  return null;
@@ -764,8 +764,8 @@ function F(t) {
764
764
  if (t.ctx2d && t.surface) {
765
765
  try {
766
766
  t.ctx2d.drawImage(r, 0, 0, e, n);
767
- } catch (s) {
768
- R(s);
767
+ } catch (_) {
768
+ R(_);
769
769
  } finally {
770
770
  t.pendingDecodeCount--;
771
771
  try {
@@ -807,7 +807,7 @@ async function y(t) {
807
807
  t.decoder = F(t);
808
808
  }
809
809
  try {
810
- const s = await Ht(r, t.width, t.height);
810
+ const _ = await Ht(r, t.width, t.height);
811
811
  if (Y(t.codec) !== r) {
812
812
  if (t.decoder && t.decoder.state !== "closed")
813
813
  try {
@@ -817,14 +817,14 @@ async function y(t) {
817
817
  t.decoder = null, t.decoderCodec = null, t.decoderWidth = 0, t.decoderHeight = 0;
818
818
  return;
819
819
  }
820
- if (!s) {
820
+ if (!_) {
821
821
  R(new Error(`Decoder not supported for codec ${r}`));
822
822
  return;
823
823
  }
824
824
  (!t.decoder || t.decoder.state === "closed") && (t.decoder = F(t)), t.decoderCodec = r, t.decoderWidth = t.width, t.decoderHeight = t.height;
825
825
  try {
826
- t.decoder.configure(s.config), t.isKeyFrameRequired = !0, u(t.streamId);
827
- const E = s.isHardwareAccelerated ? "hardware" : "software", i = t.framerate > 0 ? `@${Math.round(t.framerate)}fps` : "";
826
+ t.decoder.configure(_.config), t.isKeyFrameRequired = !0, u(t.streamId);
827
+ const E = _.isHardwareAccelerated ? "hardware" : "software", i = t.framerate > 0 ? `@${Math.round(t.framerate)}fps` : "";
828
828
  c({ type: "debug", message: `Decoder configured: codec=${r}, ${t.width}x${t.height}${i}, hw=${E}` });
829
829
  } catch (E) {
830
830
  R(E);
@@ -835,8 +835,8 @@ async function y(t) {
835
835
  }
836
836
  }
837
837
  async function Kt(t, r) {
838
- const e = await lt(t), n = e.StreamId, s = w(r.senderId, r.trackId), _ = M(n);
839
- _.numericKey = s, _.codec = e.Codec, _.width = e.Width, _.height = e.Height, _.framerate = e.Framerate, o.set(s, n), c({ type: "streamBegin", streamId: n, width: e.Width, height: e.Height, codec: e.Codec }), _.watched ? (_.surface && _.ctx2d && e.Width > 0 && e.Height > 0 && (_.surface.width !== e.Width || _.surface.height !== e.Height) && (_.surface.width = e.Width, _.surface.height = e.Height), y(_)) : _.isReconfiguring = !1;
838
+ const e = await lt(t), n = e.StreamId, _ = w(r.senderId, r.trackId), s = M(n);
839
+ s.numericKey = _, s.codec = e.Codec, s.width = e.Width, s.height = e.Height, s.framerate = e.Framerate, o.set(_, n), c({ type: "streamBegin", streamId: n, width: e.Width, height: e.Height, codec: e.Codec }), s.watched ? (s.surface && s.ctx2d && e.Width > 0 && e.Height > 0 && (s.surface.width !== e.Width || s.surface.height !== e.Height) && (s.surface.width = e.Width, s.surface.height = e.Height), y(s)) : s.isReconfiguring = !1;
840
840
  }
841
841
  function xt(t) {
842
842
  const r = w(t.senderId, t.trackId), e = o.get(r);
@@ -876,31 +876,31 @@ async function vt(t, r) {
876
876
  const e = w(r.senderId, r.trackId), n = o.get(e);
877
877
  if (!n)
878
878
  return;
879
- const s = T.get(n);
880
- if (!s || !O || !s.watched || s.isReconfiguring || ((!s.decoder || !s.decoderCodec) && y(s), !s.decoder || !s.decoderCodec))
879
+ const _ = T.get(n);
880
+ if (!_ || !O || !_.watched || _.isReconfiguring || ((!_.decoder || !_.decoderCodec) && y(_), !_.decoder || !_.decoderCodec))
881
881
  return;
882
- const _ = await Ft(t);
883
- if (!(s.isReconfiguring || !s.decoder || !s.decoderCodec) && s.decoder.state !== "closed") {
884
- if (s.isKeyFrameRequired) {
885
- if (!_.IsKey)
882
+ const s = await Ft(t);
883
+ if (!(_.isReconfiguring || !_.decoder || !_.decoderCodec) && _.decoder.state !== "closed") {
884
+ if (_.isKeyFrameRequired) {
885
+ if (!s.IsKey)
886
886
  return;
887
- s.isKeyFrameRequired = !1;
887
+ _.isKeyFrameRequired = !1;
888
888
  }
889
889
  try {
890
- if (s.decoder.state === "closed")
890
+ if (_.decoder.state === "closed")
891
891
  return;
892
- s.decoder.decode(
892
+ _.decoder.decode(
893
893
  new EncodedVideoChunk({
894
- type: _.IsKey ? "key" : "delta",
895
- timestamp: Number(_.TimestampInUs),
896
- duration: _.DurationInUs,
897
- data: _.Data
894
+ type: s.IsKey ? "key" : "delta",
895
+ timestamp: Number(s.TimestampInUs),
896
+ duration: s.DurationInUs,
897
+ data: s.Data
898
898
  })
899
899
  );
900
900
  } catch (E) {
901
901
  if (E instanceof DOMException && E.message.includes("closed"))
902
902
  return;
903
- s.isKeyFrameRequired = !0, u(s.streamId), R(E);
903
+ _.isKeyFrameRequired = !0, u(_.streamId), R(E);
904
904
  }
905
905
  }
906
906
  }
@@ -916,8 +916,8 @@ function kt(t, r) {
916
916
  case L.VIDEO_STREAM_BEGIN: {
917
917
  const e = w(r.senderId, r.trackId), n = o.get(e);
918
918
  if (n) {
919
- const s = T.get(n);
920
- s && (s.isReconfiguring = !0);
919
+ const _ = T.get(n);
920
+ _ && (_.isReconfiguring = !0);
921
921
  }
922
922
  Kt(t, r);
923
923
  return;
@@ -958,8 +958,8 @@ self.addEventListener("message", (t) => {
958
958
  n.watched = !0, n.surface = r.canvas;
959
959
  try {
960
960
  n.ctx2d = n.surface.getContext("2d", { alpha: !1, desynchronized: !0 });
961
- } catch (s) {
962
- R(s), n.ctx2d = null;
961
+ } catch (_) {
962
+ R(_), n.ctx2d = null;
963
963
  }
964
964
  n.isKeyFrameRequired = !0, y(n), u(e);
965
965
  return;
package/index.d.ts CHANGED
@@ -13,7 +13,8 @@ export { isWebTransportSupported } from './transport/web-transport-transport';
13
13
  export { setLogLevel, setLogSink, getLogLevel, getLogSink, createLogger, LogLevel, subscribeToLogEvents } from './utils/logger';
14
14
  export type { LogEntry, LogSink, Logger, LogEventListener, LogEventSubscriptionOptions } from './utils/logger';
15
15
  export { initializeDebugMode, isDebugModeEnabled } from './utils/debug-mode';
16
- export { getLangParam, getProxyParam, getWebSocketParam, getWebTransportParam, getDebugParam, getServerUrlParam, getAudioParam, getVideoParam, getWebRtcParam, setSdkUrlParam, IKON_PARAM_PROXY, IKON_PARAM_WEBSOCKET, IKON_PARAM_WEBTRANSPORT, IKON_PARAM_DEBUG, IKON_PARAM_LANG, IKON_PARAM_SERVER_URL, IKON_PARAM_GIT_SOURCE, IKON_PARAM_GIT_BRANCH, IKON_PARAM_AUDIO, IKON_PARAM_VIDEO, IKON_PARAM_WEBRTC } from './utils/query-params';
16
+ export { initializeInspectMode, isInspectModeEnabled, enableInspectMode } from './utils/inspect-mode';
17
+ export { getLangParam, getProxyParam, getWebSocketParam, getWebTransportParam, getDebugParam, getServerUrlParam, getAudioParam, getVideoParam, getWebRtcParam, getInspectParam, setSdkUrlParam, IKON_PARAM_PROXY, IKON_PARAM_WEBSOCKET, IKON_PARAM_WEBTRANSPORT, IKON_PARAM_DEBUG, IKON_PARAM_LANG, IKON_PARAM_SERVER_URL, IKON_PARAM_GIT_SOURCE, IKON_PARAM_GIT_BRANCH, IKON_PARAM_AUDIO, IKON_PARAM_VIDEO, IKON_PARAM_WEBRTC, IKON_PARAM_INSPECT } from './utils/query-params';
17
18
  export { getOpcodeName } from './utils/opcode-names';
18
19
  export { initializeLogSink, setSendLogsCallback, getBufferedLogs, takeBufferedLogs, flushLogs, clearLogBuffer, getLogBufferSize } from './utils/log-sink';
19
20
  export type { LogSinkConfig } from './utils/log-sink';