@ikonai/sdk 0.0.43 → 1.0.1

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.
Files changed (2) hide show
  1. package/index.js +645 -829
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- function Dl(t) {
1
+ function El(t) {
2
2
  return t;
3
3
  }
4
4
  function ue(t) {
@@ -13,22 +13,22 @@ function ne(t) {
13
13
  const e = se(t), r = new DataView(e.buffer, e.byteOffset, e.byteLength);
14
14
  if (e.length < 27)
15
15
  throw new Error("Protocol payload too short");
16
- const n = r.getUint32(0, !0), s = r.getUint32(4, !0), i = r.getUint32(8, !0), o = r.getUint32(12, !0), a = r.getUint32(16, !0), c = r.getUint32(20, !0), u = r.getUint8(24), p = r.getUint8(25), d = r.getUint8(26);
16
+ const n = r.getUint32(0, !0), s = r.getUint32(4, !0), i = r.getUint32(8, !0), o = r.getUint32(12, !0), a = r.getUint32(16, !0), c = r.getUint32(20, !0), u = r.getUint8(24), f = r.getUint8(25), d = r.getUint8(26);
17
17
  if (27 + c * 4 > e.length)
18
18
  throw new Error("Protocol header exceeds payload length");
19
- const f = [];
20
- let E = 27;
19
+ const E = [];
20
+ let p = 27;
21
21
  for (let I = 0; I < c; I++)
22
- f.push(r.getUint32(E, !0)), E += 4;
22
+ E.push(r.getUint32(p, !0)), p += 4;
23
23
  return {
24
24
  length: n,
25
25
  opcode: s,
26
26
  senderId: i,
27
27
  trackId: o,
28
28
  sequenceId: a,
29
- targetIds: f,
29
+ targetIds: E,
30
30
  payloadVersion: u,
31
- payloadType: p,
31
+ payloadType: f,
32
32
  flags: d
33
33
  };
34
34
  }
@@ -44,15 +44,15 @@ function Me(t, e, r) {
44
44
  return n.subarray(i, s.length);
45
45
  }
46
46
  function P(t, e, r, n, s) {
47
- const i = s?.trackId ?? 0, o = s?.sequenceId ?? 0, a = s?.flags ?? 0, c = s?.targetIds ?? [], u = s?.payloadType ?? 8, p = 27 + c.length * 4, d = p + e.length, h = new Uint8Array(d), f = new DataView(h.buffer);
48
- f.setUint32(0, d, !0), f.setUint32(4, t >>> 0, !0), f.setUint32(8, n >>> 0, !0), f.setUint32(12, i >>> 0, !0), f.setUint32(16, o >>> 0, !0), f.setUint32(20, c.length >>> 0, !0), f.setUint8(24, r & 255), f.setUint8(25, u & 255), f.setUint8(26, a & 255);
49
- let E = 27;
47
+ const i = s?.trackId ?? 0, o = s?.sequenceId ?? 0, a = s?.flags ?? 0, c = s?.targetIds ?? [], u = s?.payloadType ?? 8, f = 27 + c.length * 4, d = f + e.length, h = new Uint8Array(d), E = new DataView(h.buffer);
48
+ E.setUint32(0, d, !0), E.setUint32(4, t >>> 0, !0), E.setUint32(8, n >>> 0, !0), E.setUint32(12, i >>> 0, !0), E.setUint32(16, o >>> 0, !0), E.setUint32(20, c.length >>> 0, !0), E.setUint8(24, r & 255), E.setUint8(25, u & 255), E.setUint8(26, a & 255);
49
+ let p = 27;
50
50
  for (let I = 0; I < c.length; I++)
51
- f.setUint32(E, c[I] >>> 0, !0), E += 4;
52
- return h.set(e, p), h;
51
+ E.setUint32(p, c[I] >>> 0, !0), p += 4;
52
+ return h.set(e, f), h;
53
53
  }
54
- var b = /* @__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))(b || {});
55
- const ht = 161, dt = 162, he = new TextEncoder(), Gr = new TextDecoder("utf-8", { fatal: !0 });
54
+ var R = /* @__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))(R || {});
55
+ const ht = 161, dt = 162, he = new TextEncoder(), xr = new TextDecoder("utf-8", { fatal: !0 });
56
56
  class D {
57
57
  constructor(e = 1) {
58
58
  this.version = e, this.buffer.writeByte(ht), this.buffer.writeVarUInt(e >>> 0);
@@ -233,7 +233,7 @@ class _e {
233
233
  }
234
234
  ensureElementType(e) {
235
235
  if (this.elementType !== e)
236
- throw new Error(`Array element type is ${b[this.elementType]}, expected ${b[e]}`);
236
+ throw new Error(`Array element type is ${R[this.elementType]}, expected ${R[e]}`);
237
237
  }
238
238
  }
239
239
  class Oe {
@@ -441,11 +441,11 @@ class Vr {
441
441
  }
442
442
  ensureKeyType(e) {
443
443
  if (this.keyType !== e)
444
- throw new Error(`Dictionary key type is ${b[this.keyType]}, expected ${b[e]}`);
444
+ throw new Error(`Dictionary key type is ${R[this.keyType]}, expected ${R[e]}`);
445
445
  }
446
446
  ensureValueType(e) {
447
447
  if (this.valueType !== e)
448
- throw new Error(`Dictionary value type is ${b[this.valueType]}, expected ${b[e]}`);
448
+ throw new Error(`Dictionary value type is ${R[this.valueType]}, expected ${R[e]}`);
449
449
  }
450
450
  }
451
451
  class z {
@@ -546,7 +546,7 @@ class F {
546
546
  return this.ensureType(
547
547
  12
548
548
  /* String */
549
- ), Gr.decode(this.payload);
549
+ ), xr.decode(this.payload);
550
550
  }
551
551
  asGuid() {
552
552
  return this.ensureType(
@@ -564,17 +564,17 @@ class F {
564
564
  return this.ensureType(
565
565
  9
566
566
  /* Array */
567
- ), ve.create(this.payload);
567
+ ), Le.create(this.payload);
568
568
  }
569
569
  asDictionary() {
570
570
  return this.ensureType(
571
571
  10
572
572
  /* Dict */
573
- ), Le.create(this.payload);
573
+ ), ve.create(this.payload);
574
574
  }
575
575
  ensureType(e) {
576
576
  if (this.type !== e)
577
- throw new Error(`Teleport value has type ${b[this.type]}, expected ${b[e]}`);
577
+ throw new Error(`Teleport value has type ${R[this.type]}, expected ${R[e]}`);
578
578
  }
579
579
  }
580
580
  class Wr extends F {
@@ -585,7 +585,7 @@ class Wr extends F {
585
585
  return this.type === 1;
586
586
  }
587
587
  }
588
- class ve {
588
+ class Le {
589
589
  payload;
590
590
  elementType;
591
591
  count;
@@ -601,7 +601,7 @@ class ve {
601
601
  this.count = U(e, n, "ArrayMalformed"), this.offset = n.offset;
602
602
  }
603
603
  static create(e) {
604
- return new ve(se(e));
604
+ return new Le(se(e));
605
605
  }
606
606
  next() {
607
607
  if (this.index >= this.count) {
@@ -625,40 +625,40 @@ class ve {
625
625
  const e = Y(this.elementType);
626
626
  C(this.payload, this.offset, e);
627
627
  const r = this.payload.subarray(this.offset, this.offset + e);
628
- return this.offset += e, new Z(this.elementType, r);
628
+ return this.offset += e, new q(this.elementType, r);
629
629
  }
630
630
  case 12:
631
631
  case 13: {
632
632
  const e = { offset: this.offset }, r = U(this.payload, e, "ArrayMalformed");
633
633
  C(this.payload, e.offset, r);
634
634
  const n = this.payload.subarray(e.offset, e.offset + r);
635
- return this.offset = e.offset + r, new Z(this.elementType, n);
635
+ return this.offset = e.offset + r, new q(this.elementType, n);
636
636
  }
637
637
  case 11: {
638
638
  const e = { offset: this.offset }, r = U(this.payload, e, "ArrayMalformed");
639
639
  C(this.payload, e.offset, r);
640
640
  const n = this.payload.subarray(e.offset, e.offset + r);
641
- return this.offset = e.offset + r, new Z(11, n);
641
+ return this.offset = e.offset + r, new q(11, n);
642
642
  }
643
643
  case 9: {
644
644
  const e = Pe(this.payload, this.offset), r = this.payload.subarray(this.offset, this.offset + e);
645
- return this.offset += e, new Z(9, r);
645
+ return this.offset += e, new q(9, r);
646
646
  }
647
647
  case 10: {
648
648
  const e = Be(this.payload, this.offset), r = this.payload.subarray(this.offset, this.offset + e);
649
- return this.offset += e, new Z(10, r);
649
+ return this.offset += e, new q(10, r);
650
650
  }
651
651
  default:
652
- throw new Error(`Unsupported array element type ${b[this.elementType]}`);
652
+ throw new Error(`Unsupported array element type ${R[this.elementType]}`);
653
653
  }
654
654
  }
655
655
  }
656
- class Z extends F {
656
+ class q extends F {
657
657
  constructor(e, r) {
658
658
  super(e, r);
659
659
  }
660
660
  }
661
- class Le {
661
+ class ve {
662
662
  payload;
663
663
  keyType;
664
664
  valueType;
@@ -675,7 +675,7 @@ class Le {
675
675
  this.count = U(e, r, "DictMalformed"), this.offset = r.offset;
676
676
  }
677
677
  static create(e) {
678
- return new Le(se(e));
678
+ return new ve(se(e));
679
679
  }
680
680
  next() {
681
681
  if (this.index >= this.count) {
@@ -739,7 +739,7 @@ class Le {
739
739
  return this.offset += e, new F(this.valueType, r);
740
740
  }
741
741
  default:
742
- throw new Error(`Unsupported dictionary value type ${b[this.valueType]}`);
742
+ throw new Error(`Unsupported dictionary value type ${R[this.valueType]}`);
743
743
  }
744
744
  }
745
745
  }
@@ -976,7 +976,7 @@ function ye(t, e, r, n) {
976
976
  case 10:
977
977
  return r + Be(e, r);
978
978
  default:
979
- throw new Error(`Unsupported Teleport type ${b[t]}`);
979
+ throw new Error(`Unsupported Teleport type ${R[t]}`);
980
980
  }
981
981
  }
982
982
  function ze(t) {
@@ -985,36 +985,36 @@ function ze(t) {
985
985
  function se(t) {
986
986
  return t instanceof Uint8Array ? t : new Uint8Array(t);
987
987
  }
988
- var ft = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.Opus = 1] = "Opus", t[t.Mp3 = 2] = "Mp3", t[t.RawPcm16 = 3] = "RawPcm16", t))(ft || {}), X = /* @__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))(X || {}), J = /* @__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))(J || {}), k = /* @__PURE__ */ ((t) => (t[t.None = 0] = "None", t[t.WebSocket = 1] = "WebSocket", t[t.WebSocketProxy = 2] = "WebSocketProxy", t[t.WebTransport = 4] = "WebTransport", t[t.WebTransportProxy = 8] = "WebTransportProxy", t[t.Tcp = 16] = "Tcp", t[t.TcpProxy = 32] = "TcpProxy", t[t.Https = 64] = "Https", t))(k || {}), Q = /* @__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))(Q || {}), pt = /* @__PURE__ */ ((t) => (t[t.Face = 0] = "Face", t[t.Hands = 1] = "Hands", t[t.Pose = 2] = "Pose", t[t.All = 3] = "All", t))(pt || {}), q = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.Machine = 1] = "Machine", t[t.Human = 2] = "Human", t))(q || {}), Et = /* @__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))(Et || {}), xe = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.DotNet = 1] = "DotNet", t[t.TypeScript = 2] = "TypeScript", t[t.Cpp = 3] = "Cpp", t))(xe || {}), T = /* @__PURE__ */ ((t) => (t[t.NONE = 0] = "NONE", t[t.CONSTANT_GROUP_BITS = 15] = "CONSTANT_GROUP_BITS", t[t.CONSTANT_GROUP_OFFSET = 16] = "CONSTANT_GROUP_OFFSET", t[t.GROUP_CORE = 65536] = "GROUP_CORE", t[t.CORE_AUTH_RESPONSE = 65537] = "CORE_AUTH_RESPONSE", t[t.CORE_AUTH_TICKET = 65538] = "CORE_AUTH_TICKET", t[t.CORE_GLOBAL_STATE = 65539] = "CORE_GLOBAL_STATE", t[t.CORE_ON_SERVER_STATUS_PING = 65540] = "CORE_ON_SERVER_STATUS_PING", t[t.CORE_ON_USER_JOINED = 65541] = "CORE_ON_USER_JOINED", t[t.CORE_ON_USER_LEFT = 65542] = "CORE_ON_USER_LEFT", t[t.CORE_ON_CLIENT_JOINED = 65543] = "CORE_ON_CLIENT_JOINED", t[t.CORE_ON_CLIENT_LEFT = 65544] = "CORE_ON_CLIENT_LEFT", t[t.CORE_ON_SERVER_STARTED = 65545] = "CORE_ON_SERVER_STARTED", t[t.CORE_ON_SERVER_STOPPED = 65546] = "CORE_ON_SERVER_STOPPED", t[t.CORE_ON_SERVER_STOPPING = 65547] = "CORE_ON_SERVER_STOPPING", t[t.CORE_ON_CLIENT_READY = 65548] = "CORE_ON_CLIENT_READY", t[t.CORE_CLIENT_READY = 65549] = "CORE_CLIENT_READY", t[t.CORE_SERVER_INIT = 65550] = "CORE_SERVER_INIT", t[t.CORE_ON_PLUGIN_RELOADED = 65551] = "CORE_ON_PLUGIN_RELOADED", t[t.CORE_SERVER_START = 65552] = "CORE_SERVER_START", t[t.CORE_SERVER_STOP = 65553] = "CORE_SERVER_STOP", t[t.CORE_ON_HOSTED_SERVER_EXIT = 65554] = "CORE_ON_HOSTED_SERVER_EXIT", t[t.CORE_DYNAMIC_CONFIG = 65555] = "CORE_DYNAMIC_CONFIG", t[t.CORE_PROXY_RPC_AUTH_TICKET = 65556] = "CORE_PROXY_RPC_AUTH_TICKET", t[t.CORE_SERVER_INIT2 = 65557] = "CORE_SERVER_INIT2", t[t.GROUP_KEEPALIVE = 131072] = "GROUP_KEEPALIVE", t[t.KEEPALIVE_REQUEST = 131073] = "KEEPALIVE_REQUEST", t[t.KEEPALIVE_RESPONSE = 131074] = "KEEPALIVE_RESPONSE", t[t.GROUP_EVENTS = 262144] = "GROUP_EVENTS", t[t.EVENTS_PROFILE_UPDATE = 262145] = "EVENTS_PROFILE_UPDATE", t[t.EVENTS_CHANNEL_COMPLETE = 262146] = "EVENTS_CHANNEL_COMPLETE", t[t.EVENTS_SPEECH_PLAYBACK_COMPLETE = 262147] = "EVENTS_SPEECH_PLAYBACK_COMPLETE", t[t.GROUP_ANALYTICS = 524288] = "GROUP_ANALYTICS", t[t.ANALYTICS_LOGS = 524289] = "ANALYTICS_LOGS", t[t.ANALYTICS_EVENTS = 524290] = "ANALYTICS_EVENTS", t[t.ANALYTICS_USAGES = 524291] = "ANALYTICS_USAGES", t[t.ANALYTICS_USAGE = 524292] = "ANALYTICS_USAGE", t[t.ANALYTICS_SPECIAL_LOG = 524293] = "ANALYTICS_SPECIAL_LOG", t[t.ANALYTICS_PROCESSING_UPDATE = 524294] = "ANALYTICS_PROCESSING_UPDATE", t[t.ANALYTICS_REACTIVE_PROCESSING_UPDATE = 524295] = "ANALYTICS_REACTIVE_PROCESSING_UPDATE", t[t.ANALYTICS_IKON_PROXY_SERVER_STATS = 524296] = "ANALYTICS_IKON_PROXY_SERVER_STATS", t[t.GROUP_ACTIONS = 1048576] = "GROUP_ACTIONS", t[t.ACTION_CALL = 1048577] = "ACTION_CALL", t[t.ACTION_ACTIVE = 1048578] = "ACTION_ACTIVE", t[t.ACTION_TEXT_OUTPUT = 1048579] = "ACTION_TEXT_OUTPUT", t[t.ACTION_TEXT_OUTPUT_DELTA = 1048580] = "ACTION_TEXT_OUTPUT_DELTA", t[t.ACTION_TEXT_OUTPUT_DELTA_FULL = 1048581] = "ACTION_TEXT_OUTPUT_DELTA_FULL", t[t.ACTION_SET_STATE = 1048582] = "ACTION_SET_STATE", t[t.ACTION_TAP = 1048583] = "ACTION_TAP", t[t.ACTION_PAN = 1048584] = "ACTION_PAN", t[t.ACTION_ZOOM = 1048585] = "ACTION_ZOOM", t[t.ACTION_FILE_UPLOAD_BEGIN = 1048586] = "ACTION_FILE_UPLOAD_BEGIN", t[t.ACTION_FILE_UPLOAD_DATA = 1048587] = "ACTION_FILE_UPLOAD_DATA", t[t.ACTION_FILE_UPLOAD_ACK = 1048588] = "ACTION_FILE_UPLOAD_ACK", t[t.ACTION_FILE_UPLOAD_END = 1048589] = "ACTION_FILE_UPLOAD_END", t[t.ACTION_FILE_UPLOAD_RESULT = 1048590] = "ACTION_FILE_UPLOAD_RESULT", t[t.ACTION_OPEN_CHANNEL = 1048591] = "ACTION_OPEN_CHANNEL", t[t.ACTION_OPEN_EXTERNAL_URL = 1048592] = "ACTION_OPEN_EXTERNAL_URL", t[t.ACTION_UI_OPEN_VIEW = 1048593] = "ACTION_UI_OPEN_VIEW", t[t.ACTION_UI_CLOSE_VIEW = 1048594] = "ACTION_UI_CLOSE_VIEW", t[t.ACTION_UI_BLOCKING_BEGIN = 1048595] = "ACTION_UI_BLOCKING_BEGIN", t[t.ACTION_UI_BLOCKING_END = 1048596] = "ACTION_UI_BLOCKING_END", t[t.ACTION_UI_UPDATE_TEXT_DELTA = 1048597] = "ACTION_UI_UPDATE_TEXT_DELTA", t[t.ACTION_UI_DELETE_CONTAINER = 1048598] = "ACTION_UI_DELETE_CONTAINER", t[t.ACTION_UPDATE_GFX_SHADER = 1048599] = "ACTION_UPDATE_GFX_SHADER", t[t.ACTION_FUNCTION_REGISTER = 1048600] = "ACTION_FUNCTION_REGISTER", t[t.ACTION_FUNCTION_CALL = 1048601] = "ACTION_FUNCTION_CALL", t[t.ACTION_FUNCTION_RESULT = 1048602] = "ACTION_FUNCTION_RESULT", t[t.ACTION_GENERATE_ANSWER = 1048603] = "ACTION_GENERATE_ANSWER", t[t.ACTION_REGENERATE_ANSWER = 1048604] = "ACTION_REGENERATE_ANSWER", t[t.ACTION_CLEAR_CHAT_MESSAGE_HISTORY = 1048605] = "ACTION_CLEAR_CHAT_MESSAGE_HISTORY", t[t.ACTION_CLEAR_STATE = 1048606] = "ACTION_CLEAR_STATE", t[t.ACTION_RELOAD_CHANNELS = 1048607] = "ACTION_RELOAD_CHANNELS", t[t.ACTION_RELOAD_PROFILE = 1048608] = "ACTION_RELOAD_PROFILE", t[t.ACTION_CLASSIFICATION_RESULT = 1048609] = "ACTION_CLASSIFICATION_RESULT", t[t.ACTION_AUDIO_STOP = 1048610] = "ACTION_AUDIO_STOP", t[t.ACTION_CALL_TEXT = 1048611] = "ACTION_CALL_TEXT", t[t.ACTION_RELOAD_APPLICATION = 1048612] = "ACTION_RELOAD_APPLICATION", t[t.ACTION_CANCEL_GENERATION = 1048613] = "ACTION_CANCEL_GENERATION", t[t.ACTION_UI_SET_CONTAINER_STABLE = 1048614] = "ACTION_UI_SET_CONTAINER_STABLE", t[t.ACTION_SPEECH_RECOGNIZED = 1048615] = "ACTION_SPEECH_RECOGNIZED", t[t.ACTION_CALL_RESULT = 1048616] = "ACTION_CALL_RESULT", t[t.ACTION_RELOAD_PROVIDER = 1048617] = "ACTION_RELOAD_PROVIDER", t[t.ACTION_DOWNLOAD = 1048618] = "ACTION_DOWNLOAD", t[t.ACTION_SCROLL_TO_CONTAINER = 1048619] = "ACTION_SCROLL_TO_CONTAINER", t[t.ACTION_UI_CLEAR_STREAM = 1048620] = "ACTION_UI_CLEAR_STREAM", t[t.ACTION_PLAY_SOUND = 1048621] = "ACTION_PLAY_SOUND", t[t.ACTION_ENTER_FULLSCREEN = 1048622] = "ACTION_ENTER_FULLSCREEN", t[t.ACTION_STOP_SOUND = 1048623] = "ACTION_STOP_SOUND", t[t.ACTION_START_RECORDING = 1048624] = "ACTION_START_RECORDING", t[t.ACTION_STOP_RECORDING = 1048625] = "ACTION_STOP_RECORDING", t[t.ACTION_OPTIMISTIC_CLIENT_CALLS = 1048626] = "ACTION_OPTIMISTIC_CLIENT_CALLS", t[t.ACTION_FUNCTION_ENUMERATION_ITEM = 1048627] = "ACTION_FUNCTION_ENUMERATION_ITEM", t[t.ACTION_FUNCTION_ENUMERATION_END = 1048628] = "ACTION_FUNCTION_ENUMERATION_END", t[t.ACTION_FUNCTION_CANCEL = 1048629] = "ACTION_FUNCTION_CANCEL", t[t.ACTION_FUNCTION_DISPOSE = 1048630] = "ACTION_FUNCTION_DISPOSE", t[t.ACTION_FUNCTION_ERROR = 1048631] = "ACTION_FUNCTION_ERROR", t[t.ACTION_FUNCTION_ACK = 1048632] = "ACTION_FUNCTION_ACK", t[t.ACTION_FUNCTION_AWAITING_APPROVAL = 1048633] = "ACTION_FUNCTION_AWAITING_APPROVAL", t[t.ACTION_FUNCTION_APPROVAL_REQUIRED = 1048634] = "ACTION_FUNCTION_APPROVAL_REQUIRED", t[t.ACTION_FUNCTION_APPROVAL_RESPONSE = 1048635] = "ACTION_FUNCTION_APPROVAL_RESPONSE", t[t.UI_UPDATE_ACK = 1048636] = "UI_UPDATE_ACK", t[t.ACTION_CALL2 = 1048637] = "ACTION_CALL2", t[t.ACTION_FUNCTION_REGISTER_BATCH = 1048638] = "ACTION_FUNCTION_REGISTER_BATCH", t[t.ACTION_TRIGGER_GIT_PULL = 1048639] = "ACTION_TRIGGER_GIT_PULL", t[t.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))(T || {});
989
- const mt = 1, jr = 1048637, zr = 727023925, Xr = 3395085689;
988
+ var ft = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.Opus = 1] = "Opus", t[t.Mp3 = 2] = "Mp3", t[t.RawPcm16 = 3] = "RawPcm16", t))(ft || {}), X = /* @__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))(X || {}), J = /* @__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))(J || {}), k = /* @__PURE__ */ ((t) => (t[t.None = 0] = "None", t[t.WebSocket = 1] = "WebSocket", t[t.WebSocketProxy = 2] = "WebSocketProxy", t[t.WebTransport = 4] = "WebTransport", t[t.WebTransportProxy = 8] = "WebTransportProxy", t[t.Tcp = 16] = "Tcp", t[t.TcpProxy = 32] = "TcpProxy", t[t.Https = 64] = "Https", t))(k || {}), Q = /* @__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))(Q || {}), Et = /* @__PURE__ */ ((t) => (t[t.Face = 0] = "Face", t[t.Hands = 1] = "Hands", t[t.Pose = 2] = "Pose", t[t.All = 3] = "All", t))(Et || {}), Z = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.Machine = 1] = "Machine", t[t.Human = 2] = "Human", t))(Z || {}), pt = /* @__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))(pt || {}), Ge = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.DotNet = 1] = "DotNet", t[t.TypeScript = 2] = "TypeScript", t[t.Cpp = 3] = "Cpp", t))(Ge || {}), S = /* @__PURE__ */ ((t) => (t[t.NONE = 0] = "NONE", t[t.CONSTANT_GROUP_BITS = 15] = "CONSTANT_GROUP_BITS", t[t.CONSTANT_GROUP_OFFSET = 16] = "CONSTANT_GROUP_OFFSET", t[t.GROUP_CORE = 65536] = "GROUP_CORE", t[t.CORE_AUTH_RESPONSE = 65537] = "CORE_AUTH_RESPONSE", t[t.CORE_AUTH_TICKET = 65538] = "CORE_AUTH_TICKET", t[t.CORE_GLOBAL_STATE = 65539] = "CORE_GLOBAL_STATE", t[t.CORE_ON_SERVER_STATUS_PING = 65540] = "CORE_ON_SERVER_STATUS_PING", t[t.CORE_ON_USER_JOINED = 65541] = "CORE_ON_USER_JOINED", t[t.CORE_ON_USER_LEFT = 65542] = "CORE_ON_USER_LEFT", t[t.CORE_ON_CLIENT_JOINED = 65543] = "CORE_ON_CLIENT_JOINED", t[t.CORE_ON_CLIENT_LEFT = 65544] = "CORE_ON_CLIENT_LEFT", t[t.CORE_ON_SERVER_STARTED = 65545] = "CORE_ON_SERVER_STARTED", t[t.CORE_ON_SERVER_STOPPED = 65546] = "CORE_ON_SERVER_STOPPED", t[t.CORE_ON_SERVER_STOPPING = 65547] = "CORE_ON_SERVER_STOPPING", t[t.CORE_ON_CLIENT_READY = 65548] = "CORE_ON_CLIENT_READY", t[t.CORE_CLIENT_READY = 65549] = "CORE_CLIENT_READY", t[t.CORE_SERVER_INIT = 65550] = "CORE_SERVER_INIT", t[t.CORE_ON_PLUGIN_RELOADED = 65551] = "CORE_ON_PLUGIN_RELOADED", t[t.CORE_SERVER_START = 65552] = "CORE_SERVER_START", t[t.CORE_SERVER_STOP = 65553] = "CORE_SERVER_STOP", t[t.CORE_ON_HOSTED_SERVER_EXIT = 65554] = "CORE_ON_HOSTED_SERVER_EXIT", t[t.CORE_DYNAMIC_CONFIG = 65555] = "CORE_DYNAMIC_CONFIG", t[t.CORE_PROXY_RPC_AUTH_TICKET = 65556] = "CORE_PROXY_RPC_AUTH_TICKET", t[t.CORE_SERVER_INIT2 = 65557] = "CORE_SERVER_INIT2", t[t.GROUP_KEEPALIVE = 131072] = "GROUP_KEEPALIVE", t[t.KEEPALIVE_REQUEST = 131073] = "KEEPALIVE_REQUEST", t[t.KEEPALIVE_RESPONSE = 131074] = "KEEPALIVE_RESPONSE", t[t.GROUP_EVENTS = 262144] = "GROUP_EVENTS", t[t.EVENTS_PROFILE_UPDATE = 262145] = "EVENTS_PROFILE_UPDATE", t[t.EVENTS_CHANNEL_COMPLETE = 262146] = "EVENTS_CHANNEL_COMPLETE", t[t.EVENTS_SPEECH_PLAYBACK_COMPLETE = 262147] = "EVENTS_SPEECH_PLAYBACK_COMPLETE", t[t.GROUP_ANALYTICS = 524288] = "GROUP_ANALYTICS", t[t.ANALYTICS_LOGS = 524289] = "ANALYTICS_LOGS", t[t.ANALYTICS_EVENTS = 524290] = "ANALYTICS_EVENTS", t[t.ANALYTICS_USAGES = 524291] = "ANALYTICS_USAGES", t[t.ANALYTICS_USAGE = 524292] = "ANALYTICS_USAGE", t[t.ANALYTICS_SPECIAL_LOG = 524293] = "ANALYTICS_SPECIAL_LOG", t[t.ANALYTICS_PROCESSING_UPDATE = 524294] = "ANALYTICS_PROCESSING_UPDATE", t[t.ANALYTICS_REACTIVE_PROCESSING_UPDATE = 524295] = "ANALYTICS_REACTIVE_PROCESSING_UPDATE", t[t.ANALYTICS_IKON_PROXY_SERVER_STATS = 524296] = "ANALYTICS_IKON_PROXY_SERVER_STATS", t[t.GROUP_ACTIONS = 1048576] = "GROUP_ACTIONS", t[t.ACTION_CALL = 1048577] = "ACTION_CALL", t[t.ACTION_ACTIVE = 1048578] = "ACTION_ACTIVE", t[t.ACTION_TEXT_OUTPUT = 1048579] = "ACTION_TEXT_OUTPUT", t[t.ACTION_TEXT_OUTPUT_DELTA = 1048580] = "ACTION_TEXT_OUTPUT_DELTA", t[t.ACTION_TEXT_OUTPUT_DELTA_FULL = 1048581] = "ACTION_TEXT_OUTPUT_DELTA_FULL", t[t.ACTION_SET_STATE = 1048582] = "ACTION_SET_STATE", t[t.ACTION_TAP = 1048583] = "ACTION_TAP", t[t.ACTION_PAN = 1048584] = "ACTION_PAN", t[t.ACTION_ZOOM = 1048585] = "ACTION_ZOOM", t[t.ACTION_FILE_UPLOAD_BEGIN = 1048586] = "ACTION_FILE_UPLOAD_BEGIN", t[t.ACTION_FILE_UPLOAD_DATA = 1048587] = "ACTION_FILE_UPLOAD_DATA", t[t.ACTION_FILE_UPLOAD_ACK = 1048588] = "ACTION_FILE_UPLOAD_ACK", t[t.ACTION_FILE_UPLOAD_END = 1048589] = "ACTION_FILE_UPLOAD_END", t[t.ACTION_FILE_UPLOAD_RESULT = 1048590] = "ACTION_FILE_UPLOAD_RESULT", t[t.ACTION_OPEN_CHANNEL = 1048591] = "ACTION_OPEN_CHANNEL", t[t.ACTION_OPEN_EXTERNAL_URL = 1048592] = "ACTION_OPEN_EXTERNAL_URL", t[t.ACTION_UI_OPEN_VIEW = 1048593] = "ACTION_UI_OPEN_VIEW", t[t.ACTION_UI_CLOSE_VIEW = 1048594] = "ACTION_UI_CLOSE_VIEW", t[t.ACTION_UI_BLOCKING_BEGIN = 1048595] = "ACTION_UI_BLOCKING_BEGIN", t[t.ACTION_UI_BLOCKING_END = 1048596] = "ACTION_UI_BLOCKING_END", t[t.ACTION_UI_UPDATE_TEXT_DELTA = 1048597] = "ACTION_UI_UPDATE_TEXT_DELTA", t[t.ACTION_UI_DELETE_CONTAINER = 1048598] = "ACTION_UI_DELETE_CONTAINER", t[t.ACTION_UPDATE_GFX_SHADER = 1048599] = "ACTION_UPDATE_GFX_SHADER", t[t.ACTION_FUNCTION_REGISTER = 1048600] = "ACTION_FUNCTION_REGISTER", t[t.ACTION_FUNCTION_CALL = 1048601] = "ACTION_FUNCTION_CALL", t[t.ACTION_FUNCTION_RESULT = 1048602] = "ACTION_FUNCTION_RESULT", t[t.ACTION_GENERATE_ANSWER = 1048603] = "ACTION_GENERATE_ANSWER", t[t.ACTION_REGENERATE_ANSWER = 1048604] = "ACTION_REGENERATE_ANSWER", t[t.ACTION_CLEAR_CHAT_MESSAGE_HISTORY = 1048605] = "ACTION_CLEAR_CHAT_MESSAGE_HISTORY", t[t.ACTION_CLEAR_STATE = 1048606] = "ACTION_CLEAR_STATE", t[t.ACTION_RELOAD_CHANNELS = 1048607] = "ACTION_RELOAD_CHANNELS", t[t.ACTION_RELOAD_PROFILE = 1048608] = "ACTION_RELOAD_PROFILE", t[t.ACTION_CLASSIFICATION_RESULT = 1048609] = "ACTION_CLASSIFICATION_RESULT", t[t.ACTION_AUDIO_STOP = 1048610] = "ACTION_AUDIO_STOP", t[t.ACTION_CALL_TEXT = 1048611] = "ACTION_CALL_TEXT", t[t.ACTION_RELOAD_APPLICATION = 1048612] = "ACTION_RELOAD_APPLICATION", t[t.ACTION_CANCEL_GENERATION = 1048613] = "ACTION_CANCEL_GENERATION", t[t.ACTION_UI_SET_CONTAINER_STABLE = 1048614] = "ACTION_UI_SET_CONTAINER_STABLE", t[t.ACTION_SPEECH_RECOGNIZED = 1048615] = "ACTION_SPEECH_RECOGNIZED", t[t.ACTION_CALL_RESULT = 1048616] = "ACTION_CALL_RESULT", t[t.ACTION_RELOAD_PROVIDER = 1048617] = "ACTION_RELOAD_PROVIDER", t[t.ACTION_DOWNLOAD = 1048618] = "ACTION_DOWNLOAD", t[t.ACTION_SCROLL_TO_CONTAINER = 1048619] = "ACTION_SCROLL_TO_CONTAINER", t[t.ACTION_UI_CLEAR_STREAM = 1048620] = "ACTION_UI_CLEAR_STREAM", t[t.ACTION_PLAY_SOUND = 1048621] = "ACTION_PLAY_SOUND", t[t.ACTION_ENTER_FULLSCREEN = 1048622] = "ACTION_ENTER_FULLSCREEN", t[t.ACTION_STOP_SOUND = 1048623] = "ACTION_STOP_SOUND", t[t.ACTION_START_RECORDING = 1048624] = "ACTION_START_RECORDING", t[t.ACTION_STOP_RECORDING = 1048625] = "ACTION_STOP_RECORDING", t[t.ACTION_OPTIMISTIC_CLIENT_CALLS = 1048626] = "ACTION_OPTIMISTIC_CLIENT_CALLS", t[t.ACTION_FUNCTION_ENUMERATION_ITEM = 1048627] = "ACTION_FUNCTION_ENUMERATION_ITEM", t[t.ACTION_FUNCTION_ENUMERATION_END = 1048628] = "ACTION_FUNCTION_ENUMERATION_END", t[t.ACTION_FUNCTION_CANCEL = 1048629] = "ACTION_FUNCTION_CANCEL", t[t.ACTION_FUNCTION_DISPOSE = 1048630] = "ACTION_FUNCTION_DISPOSE", t[t.ACTION_FUNCTION_ERROR = 1048631] = "ACTION_FUNCTION_ERROR", t[t.ACTION_FUNCTION_ACK = 1048632] = "ACTION_FUNCTION_ACK", t[t.ACTION_FUNCTION_AWAITING_APPROVAL = 1048633] = "ACTION_FUNCTION_AWAITING_APPROVAL", t[t.ACTION_FUNCTION_APPROVAL_REQUIRED = 1048634] = "ACTION_FUNCTION_APPROVAL_REQUIRED", t[t.ACTION_FUNCTION_APPROVAL_RESPONSE = 1048635] = "ACTION_FUNCTION_APPROVAL_RESPONSE", t[t.UI_UPDATE_ACK = 1048636] = "UI_UPDATE_ACK", t[t.ACTION_CALL2 = 1048637] = "ACTION_CALL2", t[t.ACTION_FUNCTION_REGISTER_BATCH = 1048638] = "ACTION_FUNCTION_REGISTER_BATCH", t[t.ACTION_TRIGGER_GIT_PULL = 1048639] = "ACTION_TRIGGER_GIT_PULL", t[t.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))(S || {});
989
+ const It = 1, jr = 1048637, zr = 727023925, Xr = 3395085689;
990
990
  function Jr(t) {
991
- const e = new D(mt);
991
+ const e = new D(It);
992
992
  return Qr(t, e), e.finish();
993
993
  }
994
994
  function Qr(t, e) {
995
995
  e.writeGuidField(zr, t.ActionId), e.writeStringField(Xr, t.PayloadJson);
996
996
  }
997
- function qr(t, e, r) {
997
+ function Zr(t, e, r) {
998
998
  const n = Jr(t);
999
- return P(jr, n, mt, e, r);
999
+ return P(jr, n, It, e, r);
1000
1000
  }
1001
- const Zr = 467348717, en = 972460562, tn = 1911490601, rn = 2603556958, nn = 3609695522, sn = 4094837378, on = 4257460908;
1001
+ const qr = 467348717, en = 972460562, tn = 1911490601, rn = 2603556958, nn = 3609695522, sn = 4094837378, on = 4257460908;
1002
1002
  function an(t) {
1003
1003
  const e = {};
1004
- return It(e), e;
1004
+ return mt(e), e;
1005
1005
  }
1006
- function It(t) {
1006
+ function mt(t) {
1007
1007
  return t.ParameterIndex = 0, t.TypeName = "", t.ValueJson = "", t.ValueData = new Uint8Array(0), t.IsEnumerable = !1, t.EnumerableItemTypeName = "", t.EnumerationId = m.fromBytes(new Uint8Array(16)), t;
1008
1008
  }
1009
1009
  function cn(t, e) {
1010
1010
  const r = e ?? an();
1011
- return It(r), ln(t, r), r;
1011
+ return mt(r), ln(t, r), r;
1012
1012
  }
1013
1013
  function ln(t, e) {
1014
1014
  let r;
1015
1015
  for (; (r = t.next()) !== null; )
1016
1016
  switch (r.fieldId) {
1017
- case Zr: {
1017
+ case qr: {
1018
1018
  if (r.isNull) throw new Error();
1019
1019
  e.EnumerationId = r.asGuid();
1020
1020
  break;
@@ -1051,7 +1051,7 @@ function ln(t, e) {
1051
1051
  }
1052
1052
  }
1053
1053
  }
1054
- const un = 265814330, hn = 1368629611, dn = 2431514951, fn = 2914494629, pn = 3284746250, En = 4101844078;
1054
+ const un = 265814330, hn = 1368629611, dn = 2431514951, fn = 2914494629, En = 3284746250, pn = 4101844078;
1055
1055
  function _t(t) {
1056
1056
  const e = {};
1057
1057
  return Tt(e), e;
@@ -1059,11 +1059,11 @@ function _t(t) {
1059
1059
  function Tt(t) {
1060
1060
  return t.Description = "", t.Codec = ft.Unknown, t.SampleRate = 0, t.Channels = 0, t.BitDepth = 0, t.ShapeSets = void 0, t;
1061
1061
  }
1062
- function mn(t, e) {
1062
+ function In(t, e) {
1063
1063
  const r = e ?? _t();
1064
- return Tt(r), In(t, r), r;
1064
+ return Tt(r), mn(t, r), r;
1065
1065
  }
1066
- function In(t, e) {
1066
+ function mn(t, e) {
1067
1067
  let r;
1068
1068
  for (; (r = t.next()) !== null; )
1069
1069
  switch (r.fieldId) {
@@ -1090,12 +1090,12 @@ function In(t, e) {
1090
1090
  e.BitDepth = r.asInt32();
1091
1091
  break;
1092
1092
  }
1093
- case pn: {
1093
+ case En: {
1094
1094
  if (r.isNull) throw new Error();
1095
1095
  e.Codec = r.asInt32();
1096
1096
  break;
1097
1097
  }
1098
- case En: {
1098
+ case pn: {
1099
1099
  if (r.isNull) throw new Error();
1100
1100
  e.SampleRate = r.asInt32();
1101
1101
  break;
@@ -1149,13 +1149,13 @@ function gn(t) {
1149
1149
  e.push(r.asString());
1150
1150
  return e;
1151
1151
  }
1152
- const Cn = 76337612, bn = 185396121, Rn = 388632637, kn = 417197284, Un = 469070965, Dn = 470595159, Mn = 781727218, On = 834078886, vn = 1043273762, Ln = 1236999138, Fn = 1368629611, Pn = 1715899485, Bn = 1942830531, xn = 1999510636, Gn = 2079864626, Vn = 2142346422, Wn = 2598291686, Hn = 2719718823, $n = 2810953526, Kn = 2840065720, Yn = 2885165957, jn = 3586157513, zn = 3717933110, Xn = 4062655306;
1152
+ const Cn = 76337612, Rn = 185396121, bn = 388632637, kn = 417197284, Un = 469070965, Dn = 470595159, Mn = 781727218, On = 834078886, Ln = 1043273762, vn = 1236999138, Fn = 1368629611, Pn = 1715899485, Bn = 1942830531, Gn = 1999510636, xn = 2079864626, Vn = 2142346422, Wn = 2598291686, Hn = 2719718823, $n = 2810953526, Kn = 2840065720, Yn = 2885165957, jn = 3586157513, zn = 3717933110, Xn = 4062655306;
1153
1153
  function Ne(t) {
1154
1154
  const e = {};
1155
1155
  return wt(e), e;
1156
1156
  }
1157
1157
  function wt(t) {
1158
- return t.ContextType = J.Unknown, t.UserType = q.Unknown, t.PayloadType = Q.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 = X.Unknown, t.UniqueSessionId = "", t.Parameters = /* @__PURE__ */ Object.create(null), t.SdkType = xe.Unknown, t;
1158
+ return t.ContextType = J.Unknown, t.UserType = Z.Unknown, t.PayloadType = Q.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 = X.Unknown, t.UniqueSessionId = "", t.Parameters = /* @__PURE__ */ Object.create(null), t.SdkType = Ge.Unknown, t;
1159
1159
  }
1160
1160
  function ge(t, e) {
1161
1161
  const r = e ?? Ne();
@@ -1170,12 +1170,12 @@ function Jn(t, e) {
1170
1170
  e.DeviceId = r.asString();
1171
1171
  break;
1172
1172
  }
1173
- case bn: {
1173
+ case Rn: {
1174
1174
  if (r.isNull) throw new Error();
1175
1175
  e.InstallId = r.asString();
1176
1176
  break;
1177
1177
  }
1178
- case Rn: {
1178
+ case bn: {
1179
1179
  if (r.isNull) throw new Error();
1180
1180
  e.UserAgent = r.asString();
1181
1181
  break;
@@ -1205,12 +1205,12 @@ function Jn(t, e) {
1205
1205
  e.ProductId = r.asString();
1206
1206
  break;
1207
1207
  }
1208
- case vn: {
1208
+ case Ln: {
1209
1209
  if (r.isNull) throw new Error();
1210
1210
  e.AuthSessionId = r.asString();
1211
1211
  break;
1212
1212
  }
1213
- case Ln: {
1213
+ case vn: {
1214
1214
  if (r.isNull) throw new Error();
1215
1215
  e.ReceiveAllMessages = r.asBool();
1216
1216
  break;
@@ -1230,12 +1230,12 @@ function Jn(t, e) {
1230
1230
  e.SdkType = r.asInt32();
1231
1231
  break;
1232
1232
  }
1233
- case xn: {
1233
+ case Gn: {
1234
1234
  if (r.isNull) throw new Error();
1235
1235
  e.SessionId = r.asInt32();
1236
1236
  break;
1237
1237
  }
1238
- case Gn: {
1238
+ case xn: {
1239
1239
  if (r.isNull) throw new Error();
1240
1240
  e.PreciseJoinedAt = r.asUInt64();
1241
1241
  break;
@@ -1296,13 +1296,13 @@ function Qn(t) {
1296
1296
  }
1297
1297
  return e;
1298
1298
  }
1299
- const qn = 746516514, Zn = 877841741, es = 1175184220, ts = 1368629611, rs = 2341021724, ns = 3167053791, ss = 3686066300;
1299
+ const Zn = 746516514, qn = 877841741, es = 1175184220, ts = 1368629611, rs = 2341021724, ns = 3167053791, ss = 3686066300;
1300
1300
  function is(t) {
1301
1301
  const e = {};
1302
1302
  return At(e), e;
1303
1303
  }
1304
1304
  function At(t) {
1305
- return t.Type = k.None, t.Uri = "", t.OpcodeGroupsFromServer = T.NONE, t.OpcodeGroupsToServer = T.NONE, t.Priority = 0, t.Description = "", t.AuthTicket = new Uint8Array(0), t;
1305
+ return t.Type = k.None, t.Uri = "", t.OpcodeGroupsFromServer = S.NONE, t.OpcodeGroupsToServer = S.NONE, t.Priority = 0, t.Description = "", t.AuthTicket = new Uint8Array(0), t;
1306
1306
  }
1307
1307
  function os(t, e) {
1308
1308
  const r = e ?? is();
@@ -1312,12 +1312,12 @@ function as(t, e) {
1312
1312
  let r;
1313
1313
  for (; (r = t.next()) !== null; )
1314
1314
  switch (r.fieldId) {
1315
- case qn: {
1315
+ case Zn: {
1316
1316
  if (r.isNull) throw new Error();
1317
1317
  e.AuthTicket = r.asBinary();
1318
1318
  break;
1319
1319
  }
1320
- case Zn: {
1320
+ case qn: {
1321
1321
  if (r.isNull) throw new Error();
1322
1322
  e.Priority = r.asInt32();
1323
1323
  break;
@@ -1349,7 +1349,7 @@ function as(t, e) {
1349
1349
  }
1350
1350
  }
1351
1351
  }
1352
- const cs = 5, ls = 65537, us = 166277978, hs = 1482635149, ds = 1559330978, fs = 2802434353, ps = 3085883711, Es = 3669484338, ms = 3707543140, Is = 3712281496, _s = 4160646707;
1352
+ const cs = 5, ls = 65537, us = 166277978, hs = 1482635149, ds = 1559330978, fs = 2802434353, Es = 3085883711, ps = 3669484338, Is = 3707543140, ms = 3712281496, _s = 4160646707;
1353
1353
  function Ts(t) {
1354
1354
  const e = {};
1355
1355
  return yt(e), e;
@@ -1389,22 +1389,22 @@ function As(t, e) {
1389
1389
  e.ClientContext = ge(r.asObject());
1390
1390
  break;
1391
1391
  }
1392
- case ps: {
1392
+ case Es: {
1393
1393
  if (r.isNull) throw new Error();
1394
1394
  e.ServerContext = ge(r.asObject());
1395
1395
  break;
1396
1396
  }
1397
- case Es: {
1397
+ case ps: {
1398
1398
  if (r.isNull) throw new Error();
1399
1399
  e.FeatureFlags = gs(r.asDictionary());
1400
1400
  break;
1401
1401
  }
1402
- case ms: {
1402
+ case Is: {
1403
1403
  if (r.isNull) throw new Error();
1404
1404
  e.SpaceId = r.asString();
1405
1405
  break;
1406
1406
  }
1407
- case Is: {
1407
+ case ms: {
1408
1408
  if (r.isNull) throw new Error();
1409
1409
  e.PrimaryUserId = r.asString();
1410
1410
  break;
@@ -1438,12 +1438,12 @@ function gs(t) {
1438
1438
  }
1439
1439
  function Cs(t) {
1440
1440
  const e = {};
1441
- return bs(e), t && Object.assign(e, t), e;
1441
+ return Rs(e), t && Object.assign(e, t), e;
1442
1442
  }
1443
- function bs(t) {
1444
- return t.ServerSessionId = "", t.ContextType = J.Unknown, t.UserType = q.Unknown, t.PayloadType = Q.Unknown, t.IsInternal = !1, t.Description = "", t.UserId = "", t.DeviceId = "", t.ProductId = "", t.VersionId = "", t.InstallId = "", t.Locale = "", t.OpcodeGroupsFromServer = T.NONE, t.OpcodeGroupsToServer = T.NONE, t.ProtocolVersion = 0, t.HasInput = !1, t.ChannelLocale = "", t.EmbeddedSpaceId = "", t.AuthSessionId = "", t.ReceiveAllMessages = !1, t.UserAgent = "", t.ClientType = X.Unknown, t.Parameters = /* @__PURE__ */ Object.create(null), t.SdkType = xe.Unknown, t;
1443
+ function Rs(t) {
1444
+ return t.ServerSessionId = "", t.ContextType = J.Unknown, t.UserType = Z.Unknown, t.PayloadType = Q.Unknown, t.IsInternal = !1, t.Description = "", t.UserId = "", t.DeviceId = "", t.ProductId = "", t.VersionId = "", t.InstallId = "", t.Locale = "", t.OpcodeGroupsFromServer = S.NONE, t.OpcodeGroupsToServer = S.NONE, t.ProtocolVersion = 0, t.HasInput = !1, t.ChannelLocale = "", t.EmbeddedSpaceId = "", t.AuthSessionId = "", t.ReceiveAllMessages = !1, t.UserAgent = "", t.ClientType = X.Unknown, t.Parameters = /* @__PURE__ */ Object.create(null), t.SdkType = Ge.Unknown, t;
1445
1445
  }
1446
- const Nt = 1, Rs = 1048632, ks = 3748161056, Us = 4289118421;
1446
+ const Nt = 1, bs = 1048632, ks = 3748161056, Us = 4289118421;
1447
1447
  function Ds(t) {
1448
1448
  const e = {};
1449
1449
  return Ms(e), t && Object.assign(e, t), e;
@@ -1453,16 +1453,16 @@ function Ms(t) {
1453
1453
  }
1454
1454
  function Os(t) {
1455
1455
  const e = new D(Nt);
1456
- return vs(t, e), e.finish();
1456
+ return Ls(t, e), e.finish();
1457
1457
  }
1458
- function vs(t, e) {
1458
+ function Ls(t, e) {
1459
1459
  e.writeGuidField(ks, t.CallId), e.writeGuidField(Us, t.InstanceId);
1460
1460
  }
1461
- function Ls(t, e, r) {
1461
+ function vs(t, e, r) {
1462
1462
  const n = Os(t);
1463
- return P(Rs, n, Nt, e, r);
1463
+ return P(bs, n, Nt, e, r);
1464
1464
  }
1465
- const Fs = 1, Ps = 1048601, Bs = 112005851, xs = 814454131, Gs = 976255570, Vs = 1123310456, Ws = 2885165957, Hs = 3748161056, $s = 4289118421;
1465
+ const Fs = 1, Ps = 1048601, Bs = 112005851, Gs = 814454131, xs = 976255570, Vs = 1123310456, Ws = 2885165957, Hs = 3748161056, $s = 4289118421;
1466
1466
  function Ks(t) {
1467
1467
  const e = {};
1468
1468
  return gt(e), e;
@@ -1487,12 +1487,12 @@ function zs(t, e) {
1487
1487
  e.Scopes = Js(r.asArray());
1488
1488
  break;
1489
1489
  }
1490
- case xs: {
1490
+ case Gs: {
1491
1491
  if (r.isNull) throw new Error();
1492
1492
  e.FunctionName = r.asString();
1493
1493
  break;
1494
1494
  }
1495
- case Gs: {
1495
+ case xs: {
1496
1496
  if (r.isNull) throw new Error();
1497
1497
  e.FunctionId = r.asGuid();
1498
1498
  break;
@@ -1537,7 +1537,7 @@ function Qs(t) {
1537
1537
  e.push(cn(r.asObject()));
1538
1538
  return e;
1539
1539
  }
1540
- const qs = 2994044322, Zs = 3167053791;
1540
+ const Zs = 2994044322, qs = 3167053791;
1541
1541
  function ei(t) {
1542
1542
  const e = {};
1543
1543
  return Ct(e), e;
@@ -1553,19 +1553,19 @@ function ri(t, e) {
1553
1553
  let r;
1554
1554
  for (; (r = t.next()) !== null; )
1555
1555
  switch (r.fieldId) {
1556
- case qs: {
1556
+ case Zs: {
1557
1557
  if (r.isNull) throw new Error();
1558
1558
  e.Id = r.asString();
1559
1559
  break;
1560
1560
  }
1561
- case Zs: {
1561
+ case qs: {
1562
1562
  if (r.isNull) throw new Error();
1563
1563
  e.Type = r.asString();
1564
1564
  break;
1565
1565
  }
1566
1566
  }
1567
1567
  }
1568
- const bt = 1, ni = 1048631, si = 2205234621, ii = 2838554230, oi = 3748161056, ai = 4194102057, ci = 4289118421;
1568
+ const Rt = 1, ni = 1048631, si = 2205234621, ii = 2838554230, oi = 3748161056, ai = 4194102057, ci = 4289118421;
1569
1569
  function li(t) {
1570
1570
  const e = {};
1571
1571
  return ui(e), t && Object.assign(e, t), e;
@@ -1574,7 +1574,7 @@ function ui(t) {
1574
1574
  return t.CallId = m.fromBytes(new Uint8Array(16)), t.InstanceId = m.fromBytes(new Uint8Array(16)), t.ErrorMessage = "", t.ErrorTypeName = "", t.StackTrace = "", t;
1575
1575
  }
1576
1576
  function hi(t) {
1577
- const e = new D(bt);
1577
+ const e = new D(Rt);
1578
1578
  return di(t, e), e.finish();
1579
1579
  }
1580
1580
  function di(t, e) {
@@ -1582,37 +1582,37 @@ function di(t, e) {
1582
1582
  }
1583
1583
  function fi(t, e, r) {
1584
1584
  const n = hi(t);
1585
- return P(ni, n, bt, e, r);
1585
+ return P(ni, n, Rt, e, r);
1586
1586
  }
1587
- const Ge = 1, pi = 1048600, Rt = 703025676, kt = 814454131, Ut = 972460562, Dt = 976255570, Mt = 1368629611, Ot = 1479280922, vt = 1533537016, Lt = 2274386296, Ft = 2603556958, Pt = 2885165957, Bt = 3568439632;
1588
- function Ei(t) {
1587
+ const xe = 1, Ei = 1048600, bt = 703025676, kt = 814454131, Ut = 972460562, Dt = 976255570, Mt = 1368629611, Ot = 1479280922, Lt = 1533537016, vt = 2274386296, Ft = 2603556958, Pt = 2885165957, Bt = 3568439632;
1588
+ function pi(t) {
1589
1589
  const e = {};
1590
- return xt(e), e;
1590
+ return Gt(e), e;
1591
1591
  }
1592
- function xt(t) {
1592
+ function Gt(t) {
1593
1593
  return t.FunctionId = m.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;
1594
1594
  }
1595
- function mi(t) {
1596
- const e = new D(Ge);
1597
- return Gt(t, e), e.finish();
1595
+ function Ii(t) {
1596
+ const e = new D(xe);
1597
+ return xt(t, e), e.finish();
1598
1598
  }
1599
- function Gt(t, e) {
1600
- e.writeStringField(Rt, t.ResultTypeName), e.writeStringField(kt, t.FunctionName), e.writeStringField(Ut, t.EnumerableItemTypeName), e.writeGuidField(Dt, t.FunctionId), e.writeStringField(Mt, t.Description), e.writeBoolField(Ot, t.IsCancellable), e.writeBoolField(vt, t.RequiresInstance), e.writeBoolField(Lt, t.LlmInlineResult), e.writeBoolField(Ft, t.IsEnumerable), e.writeArrayField(Pt, b.Object, (r) => {
1599
+ function xt(t, e) {
1600
+ e.writeStringField(bt, t.ResultTypeName), e.writeStringField(kt, t.FunctionName), e.writeStringField(Ut, t.EnumerableItemTypeName), e.writeGuidField(Dt, t.FunctionId), e.writeStringField(Mt, t.Description), e.writeBoolField(Ot, t.IsCancellable), e.writeBoolField(Lt, t.RequiresInstance), e.writeBoolField(vt, t.LlmInlineResult), e.writeBoolField(Ft, t.IsEnumerable), e.writeArrayField(Pt, R.Object, (r) => {
1601
1601
  for (const n of t.Parameters)
1602
1602
  r.writeObject(wi, (s) => {
1603
1603
  yi(n, s);
1604
1604
  });
1605
1605
  }), e.writeBoolField(Bt, t.LlmCallOnlyOnce);
1606
1606
  }
1607
- function Ii(t, e) {
1608
- const r = e ?? Ei();
1609
- return xt(r), _i(t, r), r;
1607
+ function mi(t, e) {
1608
+ const r = e ?? pi();
1609
+ return Gt(r), _i(t, r), r;
1610
1610
  }
1611
1611
  function _i(t, e) {
1612
1612
  let r;
1613
1613
  for (; (r = t.next()) !== null; )
1614
1614
  switch (r.fieldId) {
1615
- case Rt: {
1615
+ case bt: {
1616
1616
  if (r.isNull) throw new Error();
1617
1617
  e.ResultTypeName = r.asString();
1618
1618
  break;
@@ -1642,12 +1642,12 @@ function _i(t, e) {
1642
1642
  e.IsCancellable = r.asBool();
1643
1643
  break;
1644
1644
  }
1645
- case vt: {
1645
+ case Lt: {
1646
1646
  if (r.isNull) throw new Error();
1647
1647
  e.RequiresInstance = r.asBool();
1648
1648
  break;
1649
1649
  }
1650
- case Lt: {
1650
+ case vt: {
1651
1651
  if (r.isNull) throw new Error();
1652
1652
  e.LlmInlineResult = r.asBool();
1653
1653
  break;
@@ -1670,8 +1670,8 @@ function _i(t, e) {
1670
1670
  }
1671
1671
  }
1672
1672
  function Ti(t, e, r) {
1673
- const n = mi(t);
1674
- return P(pi, n, Ge, e, r);
1673
+ const n = Ii(t);
1674
+ return P(Ei, n, xe, e, r);
1675
1675
  }
1676
1676
  function Si(t) {
1677
1677
  const e = [];
@@ -1746,8 +1746,8 @@ function gi(t, e) {
1746
1746
  }
1747
1747
  }
1748
1748
  }
1749
- const Qt = 1, Ci = 1048638, bi = 3678477544;
1750
- function Ri(t) {
1749
+ const Qt = 1, Ci = 1048638, Ri = 3678477544;
1750
+ function bi(t) {
1751
1751
  const e = {};
1752
1752
  return ki(e), t && Object.assign(e, t), e;
1753
1753
  }
@@ -1759,10 +1759,10 @@ function Ui(t) {
1759
1759
  return Di(t, e), e.finish();
1760
1760
  }
1761
1761
  function Di(t, e) {
1762
- e.writeArrayField(bi, b.Object, (r) => {
1762
+ e.writeArrayField(Ri, R.Object, (r) => {
1763
1763
  for (const n of t.Functions)
1764
- r.writeObject(Ge, (s) => {
1765
- Gt(n, s);
1764
+ r.writeObject(xe, (s) => {
1765
+ xt(n, s);
1766
1766
  });
1767
1767
  });
1768
1768
  }
@@ -1770,35 +1770,35 @@ function Mi(t, e, r) {
1770
1770
  const n = Ui(t);
1771
1771
  return P(Ci, n, Qt, e, r);
1772
1772
  }
1773
- const qt = 1, Oi = 1048602, vi = 349453957, Li = 703025676, Fi = 3403385840, Pi = 3748161056, Bi = 4289118421;
1774
- function xi(t) {
1773
+ const Zt = 1, Oi = 1048602, Li = 349453957, vi = 703025676, Fi = 3403385840, Pi = 3748161056, Bi = 4289118421;
1774
+ function Gi(t) {
1775
1775
  const e = {};
1776
- return Gi(e), t && Object.assign(e, t), e;
1776
+ return xi(e), t && Object.assign(e, t), e;
1777
1777
  }
1778
- function Gi(t) {
1778
+ function xi(t) {
1779
1779
  return t.CallId = m.fromBytes(new Uint8Array(16)), t.InstanceId = m.fromBytes(new Uint8Array(16)), t.ResultTypeName = "", t.ResultJson = "", t.ResultData = new Uint8Array(0), t;
1780
1780
  }
1781
1781
  function Vi(t) {
1782
- const e = new D(qt);
1782
+ const e = new D(Zt);
1783
1783
  return Wi(t, e), e.finish();
1784
1784
  }
1785
1785
  function Wi(t, e) {
1786
- e.writeBinaryField(vi, t.ResultData), e.writeStringField(Li, t.ResultTypeName), e.writeStringField(Fi, t.ResultJson), e.writeGuidField(Pi, t.CallId), e.writeGuidField(Bi, t.InstanceId);
1786
+ e.writeBinaryField(Li, t.ResultData), e.writeStringField(vi, t.ResultTypeName), e.writeStringField(Fi, t.ResultJson), e.writeGuidField(Pi, t.CallId), e.writeGuidField(Bi, t.InstanceId);
1787
1787
  }
1788
1788
  function Hi(t, e, r) {
1789
1789
  const n = Vi(t);
1790
- return P(Oi, n, qt, e, r);
1790
+ return P(Oi, n, Zt, e, r);
1791
1791
  }
1792
- const Zt = 1, $i = 65549;
1792
+ const qt = 1, $i = 65549;
1793
1793
  function Xe(t) {
1794
1794
  return {};
1795
1795
  }
1796
1796
  function Ki(t) {
1797
- return new D(Zt).finish();
1797
+ return new D(qt).finish();
1798
1798
  }
1799
1799
  function Je(t, e, r) {
1800
1800
  const n = Ki();
1801
- return P($i, n, Zt, e, r);
1801
+ return P($i, n, qt, e, r);
1802
1802
  }
1803
1803
  const Yi = 3167053791, ji = 3342364356, zi = 3612929027;
1804
1804
  function er(t) {
@@ -1806,7 +1806,7 @@ function er(t) {
1806
1806
  return tr(e), e;
1807
1807
  }
1808
1808
  function tr(t) {
1809
- return t.Category = "", t.Type = pt.Face, t.FaceBlendshapes = [], t;
1809
+ return t.Category = "", t.Type = Et.Face, t.FaceBlendshapes = [], t;
1810
1810
  }
1811
1811
  function Xi(t, e) {
1812
1812
  const r = e ?? er();
@@ -1840,7 +1840,7 @@ function Qi(t) {
1840
1840
  e.push(r.asString());
1841
1841
  return e;
1842
1842
  }
1843
- const qi = 3612929027;
1843
+ const Zi = 3612929027;
1844
1844
  function rr(t) {
1845
1845
  const e = {};
1846
1846
  return nr(e), e;
@@ -1848,7 +1848,7 @@ function rr(t) {
1848
1848
  function nr(t) {
1849
1849
  return t.Category = "", t;
1850
1850
  }
1851
- function Zi(t, e) {
1851
+ function qi(t, e) {
1852
1852
  const r = e ?? rr();
1853
1853
  return nr(r), eo(t, r), r;
1854
1854
  }
@@ -1856,7 +1856,7 @@ function eo(t, e) {
1856
1856
  let r;
1857
1857
  for (; (r = t.next()) !== null; )
1858
1858
  switch (r.fieldId) {
1859
- case qi: {
1859
+ case Zi: {
1860
1860
  if (r.isNull) throw new Error();
1861
1861
  e.Category = r.asString();
1862
1862
  break;
@@ -1869,7 +1869,7 @@ function sr(t) {
1869
1869
  return ir(e), e;
1870
1870
  }
1871
1871
  function ir(t) {
1872
- return t.Description = "", t.Codec = Et.H264, t.Width = 0, t.Height = 0, t.Framerate = 30, t.Bitrate = 0, t.IsHardwareAccelerated = !1, t;
1872
+ return t.Description = "", t.Codec = pt.H264, t.Width = 0, t.Height = 0, t.Framerate = 30, t.Bitrate = 0, t.IsHardwareAccelerated = !1, t;
1873
1873
  }
1874
1874
  function co(t, e) {
1875
1875
  const r = e ?? sr();
@@ -1916,23 +1916,23 @@ function lo(t, e) {
1916
1916
  }
1917
1917
  }
1918
1918
  }
1919
- const uo = 3, ho = 65539, fo = 693643444, po = 1144553441, Eo = 1497620243, mo = 1559330978, Io = 1999510636, _o = 2277643855, To = 2469008121, So = 3219210453, wo = 3678477544, Ao = 3696445035, yo = 3707543140, No = 3712281496, go = 3823842552, Co = 3895362455, bo = 3897397815, Ro = 4225107827;
1920
- function ko(t) {
1919
+ const uo = 3, ho = 65539, fo = 693643444, Eo = 1144553441, po = 1497620243, Io = 1559330978, mo = 1999510636, _o = 2277643855, To = 2469008121, So = 2589786682, wo = 3219210453, Ao = 3678477544, yo = 3696445035, No = 3707543140, go = 3712281496, Co = 3823842552, Ro = 3895362455, bo = 3897397815, ko = 4225107827;
1920
+ function Uo(t) {
1921
1921
  const e = {};
1922
1922
  return or(e), e;
1923
1923
  }
1924
1924
  function or(t) {
1925
- return t.Clients = /* @__PURE__ */ Object.create(null), t.UIStreams = /* @__PURE__ */ Object.create(null), t.AudioStreams = /* @__PURE__ */ Object.create(null), t.VideoStreams = /* @__PURE__ */ Object.create(null), t.TrackingStreams = /* @__PURE__ */ Object.create(null), t.SpaceId = "", t.ChannelInstanceId = "", t.FirstUserId = "", t.ChannelUrl = "", t.ChannelId = "", t.PrimaryUserId = "", t.OrganisationName = "", t.SpaceName = "", t.ChannelName = "", t.SessionId = "", t.Functions = /* @__PURE__ */ Object.create(null), t;
1926
- }
1927
- function Uo(t, e) {
1928
- const r = z.create(t);
1929
- return Do(r, e);
1925
+ return t.Clients = /* @__PURE__ */ Object.create(null), t.UIStreams = /* @__PURE__ */ Object.create(null), t.AudioStreams = /* @__PURE__ */ Object.create(null), t.VideoStreams = /* @__PURE__ */ Object.create(null), t.TrackingStreams = /* @__PURE__ */ Object.create(null), t.SpaceId = "", t.ChannelInstanceId = "", t.FirstUserId = "", t.ChannelUrl = "", t.ChannelId = "", t.PrimaryUserId = "", t.OrganisationName = "", t.SpaceName = "", t.ChannelName = "", t.SessionId = "", t.IsGitSourceMode = !1, t.Functions = /* @__PURE__ */ Object.create(null), t;
1930
1926
  }
1931
1927
  function Do(t, e) {
1932
- const r = e ?? ko();
1933
- return or(r), Mo(t, r), r;
1928
+ const r = z.create(t);
1929
+ return Mo(r, e);
1934
1930
  }
1935
1931
  function Mo(t, e) {
1932
+ const r = e ?? Uo();
1933
+ return or(r), Oo(t, r), r;
1934
+ }
1935
+ function Oo(t, e) {
1936
1936
  let r;
1937
1937
  for (; (r = t.next()) !== null; )
1938
1938
  switch (r.fieldId) {
@@ -1941,22 +1941,22 @@ function Mo(t, e) {
1941
1941
  e.FirstUserId = r.asString();
1942
1942
  break;
1943
1943
  }
1944
- case po: {
1944
+ case Eo: {
1945
1945
  if (r.isNull) throw new Error();
1946
1946
  e.Clients = vo(r.asDictionary());
1947
1947
  break;
1948
1948
  }
1949
- case Eo: {
1949
+ case po: {
1950
1950
  if (r.isNull) throw new Error();
1951
- e.TrackingStreams = Lo(r.asDictionary());
1951
+ e.TrackingStreams = Fo(r.asDictionary());
1952
1952
  break;
1953
1953
  }
1954
- case mo: {
1954
+ case Io: {
1955
1955
  if (r.isNull) throw new Error();
1956
1956
  e.ChannelId = r.asString();
1957
1957
  break;
1958
1958
  }
1959
- case Io: {
1959
+ case mo: {
1960
1960
  if (r.isNull) throw new Error();
1961
1961
  e.SessionId = r.asString();
1962
1962
  break;
@@ -1973,37 +1973,42 @@ function Mo(t, e) {
1973
1973
  }
1974
1974
  case So: {
1975
1975
  if (r.isNull) throw new Error();
1976
- e.OrganisationName = r.asString();
1976
+ e.IsGitSourceMode = r.asBool();
1977
1977
  break;
1978
1978
  }
1979
1979
  case wo: {
1980
1980
  if (r.isNull) throw new Error();
1981
- e.Functions = Fo(r.asDictionary());
1981
+ e.OrganisationName = r.asString();
1982
1982
  break;
1983
1983
  }
1984
1984
  case Ao: {
1985
1985
  if (r.isNull) throw new Error();
1986
- e.UIStreams = Po(r.asDictionary());
1986
+ e.Functions = Po(r.asDictionary());
1987
1987
  break;
1988
1988
  }
1989
1989
  case yo: {
1990
1990
  if (r.isNull) throw new Error();
1991
- e.SpaceId = r.asString();
1991
+ e.UIStreams = Bo(r.asDictionary());
1992
1992
  break;
1993
1993
  }
1994
1994
  case No: {
1995
1995
  if (r.isNull) throw new Error();
1996
- e.PrimaryUserId = r.asString();
1996
+ e.SpaceId = r.asString();
1997
1997
  break;
1998
1998
  }
1999
1999
  case go: {
2000
2000
  if (r.isNull) throw new Error();
2001
- e.ChannelInstanceId = r.asString();
2001
+ e.PrimaryUserId = r.asString();
2002
2002
  break;
2003
2003
  }
2004
2004
  case Co: {
2005
2005
  if (r.isNull) throw new Error();
2006
- e.AudioStreams = Bo(r.asDictionary());
2006
+ e.ChannelInstanceId = r.asString();
2007
+ break;
2008
+ }
2009
+ case Ro: {
2010
+ if (r.isNull) throw new Error();
2011
+ e.AudioStreams = Go(r.asDictionary());
2007
2012
  break;
2008
2013
  }
2009
2014
  case bo: {
@@ -2011,16 +2016,16 @@ function Mo(t, e) {
2011
2016
  e.VideoStreams = xo(r.asDictionary());
2012
2017
  break;
2013
2018
  }
2014
- case Ro: {
2019
+ case ko: {
2015
2020
  if (r.isNull) throw new Error();
2016
2021
  e.SpaceName = r.asString();
2017
2022
  break;
2018
2023
  }
2019
2024
  }
2020
2025
  }
2021
- function Oo(t, e) {
2026
+ function Lo(t, e) {
2022
2027
  const r = Me(t, ho, uo);
2023
- return Uo(r, e);
2028
+ return Do(r, e);
2024
2029
  }
2025
2030
  function vo(t) {
2026
2031
  const e = /* @__PURE__ */ Object.create(null);
@@ -2031,39 +2036,39 @@ function vo(t) {
2031
2036
  }
2032
2037
  return e;
2033
2038
  }
2034
- function Lo(t) {
2039
+ function Fo(t) {
2035
2040
  const e = /* @__PURE__ */ Object.create(null);
2036
2041
  let r;
2037
2042
  for (; (r = t.next()) !== null; ) {
2038
2043
  const n = r.key.asString();
2039
- e[n] = fa(r.value.asObject());
2044
+ e[n] = Ea(r.value.asObject());
2040
2045
  }
2041
2046
  return e;
2042
2047
  }
2043
- function Fo(t) {
2048
+ function Po(t) {
2044
2049
  const e = /* @__PURE__ */ Object.create(null);
2045
2050
  let r;
2046
2051
  for (; (r = t.next()) !== null; ) {
2047
2052
  const n = r.key.asInt32();
2048
- e[n] = Go(r.value.asArray());
2053
+ e[n] = Vo(r.value.asArray());
2049
2054
  }
2050
2055
  return e;
2051
2056
  }
2052
- function Po(t) {
2057
+ function Bo(t) {
2053
2058
  const e = /* @__PURE__ */ Object.create(null);
2054
2059
  let r;
2055
2060
  for (; (r = t.next()) !== null; ) {
2056
2061
  const n = r.key.asString();
2057
- e[n] = Yo(r.value.asObject());
2062
+ e[n] = jo(r.value.asObject());
2058
2063
  }
2059
2064
  return e;
2060
2065
  }
2061
- function Bo(t) {
2066
+ function Go(t) {
2062
2067
  const e = /* @__PURE__ */ Object.create(null);
2063
2068
  let r;
2064
2069
  for (; (r = t.next()) !== null; ) {
2065
2070
  const n = r.key.asString();
2066
- e[n] = Zo(r.value.asObject());
2071
+ e[n] = ea(r.value.asObject());
2067
2072
  }
2068
2073
  return e;
2069
2074
  }
@@ -2072,56 +2077,56 @@ function xo(t) {
2072
2077
  let r;
2073
2078
  for (; (r = t.next()) !== null; ) {
2074
2079
  const n = r.key.asString();
2075
- e[n] = oa(r.value.asObject());
2080
+ e[n] = aa(r.value.asObject());
2076
2081
  }
2077
2082
  return e;
2078
2083
  }
2079
- function Go(t) {
2084
+ function Vo(t) {
2080
2085
  const e = [];
2081
2086
  let r;
2082
2087
  for (; (r = t.next()) !== null; )
2083
- e.push(Ii(r.asObject()));
2088
+ e.push(mi(r.asObject()));
2084
2089
  return e;
2085
2090
  }
2086
- const Vo = 161083277, Wo = 325678206, Ho = 3469892363, $o = 3645544153;
2087
- function Ko(t) {
2091
+ const Wo = 161083277, Ho = 325678206, $o = 3469892363, Ko = 3645544153;
2092
+ function Yo(t) {
2088
2093
  const e = {};
2089
2094
  return ar(e), e;
2090
2095
  }
2091
2096
  function ar(t) {
2092
2097
  return t.StreamId = "", t.ClientSessionId = 0, t.TrackId = 0, t.Info = rr(), t;
2093
2098
  }
2094
- function Yo(t, e) {
2095
- const r = e ?? Ko();
2096
- return ar(r), jo(t, r), r;
2097
- }
2098
2099
  function jo(t, e) {
2100
+ const r = e ?? Yo();
2101
+ return ar(r), zo(t, r), r;
2102
+ }
2103
+ function zo(t, e) {
2099
2104
  let r;
2100
2105
  for (; (r = t.next()) !== null; )
2101
2106
  switch (r.fieldId) {
2102
- case Vo: {
2107
+ case Wo: {
2103
2108
  if (r.isNull) throw new Error();
2104
2109
  e.StreamId = r.asString();
2105
2110
  break;
2106
2111
  }
2107
- case Wo: {
2112
+ case Ho: {
2108
2113
  if (r.isNull) throw new Error();
2109
2114
  e.ClientSessionId = r.asInt32();
2110
2115
  break;
2111
2116
  }
2112
- case Ho: {
2117
+ case $o: {
2113
2118
  if (r.isNull) throw new Error();
2114
2119
  e.TrackId = r.asInt32();
2115
2120
  break;
2116
2121
  }
2117
- case $o: {
2122
+ case Ko: {
2118
2123
  if (r.isNull) throw new Error();
2119
- e.Info = Zi(r.asObject());
2124
+ e.Info = qi(r.asObject());
2120
2125
  break;
2121
2126
  }
2122
2127
  }
2123
2128
  }
2124
- const zo = 161083277, Xo = 325678206, Jo = 3469892363, Qo = 3645544153;
2129
+ const Xo = 161083277, Jo = 325678206, Qo = 3469892363, Zo = 3645544153;
2125
2130
  function qo(t) {
2126
2131
  const e = {};
2127
2132
  return cr(e), e;
@@ -2129,113 +2134,113 @@ function qo(t) {
2129
2134
  function cr(t) {
2130
2135
  return t.StreamId = "", t.ClientSessionId = 0, t.TrackId = 0, t.Info = _t(), t;
2131
2136
  }
2132
- function Zo(t, e) {
2137
+ function ea(t, e) {
2133
2138
  const r = e ?? qo();
2134
- return cr(r), ea(t, r), r;
2139
+ return cr(r), ta(t, r), r;
2135
2140
  }
2136
- function ea(t, e) {
2141
+ function ta(t, e) {
2137
2142
  let r;
2138
2143
  for (; (r = t.next()) !== null; )
2139
2144
  switch (r.fieldId) {
2140
- case zo: {
2145
+ case Xo: {
2141
2146
  if (r.isNull) throw new Error();
2142
2147
  e.StreamId = r.asString();
2143
2148
  break;
2144
2149
  }
2145
- case Xo: {
2150
+ case Jo: {
2146
2151
  if (r.isNull) throw new Error();
2147
2152
  e.ClientSessionId = r.asInt32();
2148
2153
  break;
2149
2154
  }
2150
- case Jo: {
2155
+ case Qo: {
2151
2156
  if (r.isNull) throw new Error();
2152
2157
  e.TrackId = r.asInt32();
2153
2158
  break;
2154
2159
  }
2155
- case Qo: {
2160
+ case Zo: {
2156
2161
  if (r.isNull) throw new Error();
2157
- e.Info = mn(r.asObject());
2162
+ e.Info = In(r.asObject());
2158
2163
  break;
2159
2164
  }
2160
2165
  }
2161
2166
  }
2162
- const ta = 161083277, ra = 325678206, na = 3469892363, sa = 3645544153;
2163
- function ia(t) {
2167
+ const ra = 161083277, na = 325678206, sa = 3469892363, ia = 3645544153;
2168
+ function oa(t) {
2164
2169
  const e = {};
2165
2170
  return lr(e), e;
2166
2171
  }
2167
2172
  function lr(t) {
2168
2173
  return t.StreamId = "", t.ClientSessionId = 0, t.TrackId = 0, t.Info = sr(), t;
2169
2174
  }
2170
- function oa(t, e) {
2171
- const r = e ?? ia();
2172
- return lr(r), aa(t, r), r;
2173
- }
2174
2175
  function aa(t, e) {
2176
+ const r = e ?? oa();
2177
+ return lr(r), ca(t, r), r;
2178
+ }
2179
+ function ca(t, e) {
2175
2180
  let r;
2176
2181
  for (; (r = t.next()) !== null; )
2177
2182
  switch (r.fieldId) {
2178
- case ta: {
2183
+ case ra: {
2179
2184
  if (r.isNull) throw new Error();
2180
2185
  e.StreamId = r.asString();
2181
2186
  break;
2182
2187
  }
2183
- case ra: {
2188
+ case na: {
2184
2189
  if (r.isNull) throw new Error();
2185
2190
  e.ClientSessionId = r.asInt32();
2186
2191
  break;
2187
2192
  }
2188
- case na: {
2193
+ case sa: {
2189
2194
  if (r.isNull) throw new Error();
2190
2195
  e.TrackId = r.asInt32();
2191
2196
  break;
2192
2197
  }
2193
- case sa: {
2198
+ case ia: {
2194
2199
  if (r.isNull) throw new Error();
2195
2200
  e.Info = co(r.asObject());
2196
2201
  break;
2197
2202
  }
2198
2203
  }
2199
2204
  }
2200
- const ca = 161083277, la = 325678206, ua = 3469892363, ha = 3645544153;
2201
- function da(t) {
2205
+ const la = 161083277, ua = 325678206, ha = 3469892363, da = 3645544153;
2206
+ function fa(t) {
2202
2207
  const e = {};
2203
2208
  return ur(e), e;
2204
2209
  }
2205
2210
  function ur(t) {
2206
2211
  return t.StreamId = "", t.ClientSessionId = 0, t.TrackId = 0, t.Info = er(), t;
2207
2212
  }
2208
- function fa(t, e) {
2209
- const r = e ?? da();
2213
+ function Ea(t, e) {
2214
+ const r = e ?? fa();
2210
2215
  return ur(r), pa(t, r), r;
2211
2216
  }
2212
2217
  function pa(t, e) {
2213
2218
  let r;
2214
2219
  for (; (r = t.next()) !== null; )
2215
2220
  switch (r.fieldId) {
2216
- case ca: {
2221
+ case la: {
2217
2222
  if (r.isNull) throw new Error();
2218
2223
  e.StreamId = r.asString();
2219
2224
  break;
2220
2225
  }
2221
- case la: {
2226
+ case ua: {
2222
2227
  if (r.isNull) throw new Error();
2223
2228
  e.ClientSessionId = r.asInt32();
2224
2229
  break;
2225
2230
  }
2226
- case ua: {
2231
+ case ha: {
2227
2232
  if (r.isNull) throw new Error();
2228
2233
  e.TrackId = r.asInt32();
2229
2234
  break;
2230
2235
  }
2231
- case ha: {
2236
+ case da: {
2232
2237
  if (r.isNull) throw new Error();
2233
2238
  e.Info = Xi(r.asObject());
2234
2239
  break;
2235
2240
  }
2236
2241
  }
2237
2242
  }
2238
- const hr = 1, Ea = 131074;
2243
+ const hr = 1, Ia = 131074;
2239
2244
  function dr(t) {
2240
2245
  return {};
2241
2246
  }
@@ -2244,20 +2249,20 @@ function ma(t) {
2244
2249
  }
2245
2250
  function fr(t, e, r) {
2246
2251
  const n = ma();
2247
- return P(Ea, n, hr, e, r);
2252
+ return P(Ia, n, hr, e, r);
2248
2253
  }
2249
- const pr = 1, Ia = 8388612;
2250
- function _a(t) {
2254
+ const Er = 1, _a = 8388612;
2255
+ function Ta(t) {
2251
2256
  return {};
2252
2257
  }
2253
- function Ta(t) {
2254
- return new D(pr).finish();
2258
+ function Sa(t) {
2259
+ return new D(Er).finish();
2255
2260
  }
2256
- function Sa(t, e, r) {
2257
- const n = Ta();
2258
- return P(Ia, n, pr, e, r);
2261
+ function wa(t, e, r) {
2262
+ const n = Sa();
2263
+ return P(_a, n, Er, e, r);
2259
2264
  }
2260
- function wa(t) {
2265
+ function Aa(t) {
2261
2266
  return new Worker(
2262
2267
  "" + new URL("assets/protocol-worker-DKSTqFKg.js", import.meta.url).href,
2263
2268
  {
@@ -2286,32 +2291,32 @@ class We extends W {
2286
2291
  super(`No keepalive received within ${e}ms`), this.name = "KeepaliveTimeoutError";
2287
2292
  }
2288
2293
  }
2289
- class Aa extends Ve {
2294
+ class ya extends Ve {
2290
2295
  constructor(e) {
2291
2296
  super(`Maximum reconnection attempts (${e}) exceeded`), this.name = "MaxRetriesExceededError";
2292
2297
  }
2293
2298
  }
2294
- class ya extends y {
2299
+ class Na extends y {
2295
2300
  constructor(e) {
2296
2301
  super(`Channel provisioning timeout after ${e}ms`), this.name = "ProvisioningTimeoutError";
2297
2302
  }
2298
2303
  }
2299
- class Ml extends y {
2304
+ class pl extends y {
2300
2305
  constructor(e) {
2301
2306
  super(`Channel not found: ${e}`), this.name = "ChannelNotFoundError";
2302
2307
  }
2303
2308
  }
2304
- class Ol extends y {
2309
+ class Il extends y {
2305
2310
  constructor(e) {
2306
2311
  super(`Space not found for domain: ${e}`), this.name = "SpaceNotFoundError";
2307
2312
  }
2308
2313
  }
2309
- class vl extends y {
2314
+ class ml extends y {
2310
2315
  constructor() {
2311
2316
  super("No channels available in this space"), this.name = "NoChannelsError";
2312
2317
  }
2313
2318
  }
2314
- function Er(t, e) {
2319
+ function pr(t, e) {
2315
2320
  return new Promise((r, n) => {
2316
2321
  const s = () => {
2317
2322
  clearTimeout(i), n(new Error("Aborted"));
@@ -2325,32 +2330,32 @@ function Er(t, e) {
2325
2330
  e?.addEventListener("abort", s, { once: !0 });
2326
2331
  });
2327
2332
  }
2328
- var mr = /* @__PURE__ */ ((t) => (t[t.DEBUG = 0] = "DEBUG", t[t.INFO = 1] = "INFO", t[t.WARN = 2] = "WARN", t[t.ERROR = 3] = "ERROR", t[t.NONE = 4] = "NONE", t))(mr || {});
2333
+ var Ir = /* @__PURE__ */ ((t) => (t[t.DEBUG = 0] = "DEBUG", t[t.INFO = 1] = "INFO", t[t.WARN = 2] = "WARN", t[t.ERROR = 3] = "ERROR", t[t.NONE = 4] = "NONE", t))(Ir || {});
2329
2334
  let He = 1, fe = null;
2330
- function Ll(t) {
2335
+ function _l(t) {
2331
2336
  He = t;
2332
2337
  }
2333
- function Fl() {
2338
+ function Tl() {
2334
2339
  return He;
2335
2340
  }
2336
- function Na(t) {
2341
+ function ga(t) {
2337
2342
  fe = t;
2338
2343
  }
2339
- function Pl() {
2344
+ function Sl() {
2340
2345
  return fe;
2341
2346
  }
2342
- const ga = {
2347
+ const Ca = {
2343
2348
  0: "DEBUG",
2344
2349
  1: "INFO",
2345
2350
  2: "WARN",
2346
2351
  3: "ERROR",
2347
2352
  4: "NONE"
2348
2353
  };
2349
- function Ca(t, e) {
2354
+ function Ra(t, e) {
2350
2355
  return `[${t}] ${e}`;
2351
2356
  }
2352
2357
  function ie(t, e, r, n) {
2353
- const s = (/* @__PURE__ */ new Date()).toISOString(), i = ga[t];
2358
+ const s = (/* @__PURE__ */ new Date()).toISOString(), i = Ca[t];
2354
2359
  if (fe && fe({
2355
2360
  timestamp: s,
2356
2361
  level: t,
@@ -2359,7 +2364,7 @@ function ie(t, e, r, n) {
2359
2364
  message: r,
2360
2365
  args: n
2361
2366
  }), He <= t) {
2362
- const o = Ca(e, r);
2367
+ const o = Ra(e, r);
2363
2368
  switch (t) {
2364
2369
  case 0:
2365
2370
  console.debug(o, ...n);
@@ -2376,7 +2381,7 @@ function ie(t, e, r, n) {
2376
2381
  }
2377
2382
  }
2378
2383
  }
2379
- function v(t) {
2384
+ function L(t) {
2380
2385
  return {
2381
2386
  debug(e, ...r) {
2382
2387
  ie(0, t, e, r);
@@ -2392,8 +2397,8 @@ function v(t) {
2392
2397
  }
2393
2398
  };
2394
2399
  }
2395
- const oe = v("WebSocketTransport"), ba = 1e4;
2396
- class Ra {
2400
+ const oe = L("WebSocketTransport"), ba = 1e4;
2401
+ class ka {
2397
2402
  ws = null;
2398
2403
  keepaliveTimeout = null;
2399
2404
  // Pre-allocated keepalive response message to avoid allocation per keepalive
@@ -2430,8 +2435,8 @@ class Ra {
2430
2435
  o = !0, a(), s(new W("WebSocket connection closed before opening"));
2431
2436
  return;
2432
2437
  }
2433
- const p = u.wasClean && (u.code === 1e3 || u.code === 1001), d = u.code === 1e3 || u.code === 1001, h = u.reason || `code=${u.code}`;
2434
- this.callbacks.onClose(h, p, d);
2438
+ const f = u.wasClean && (u.code === 1e3 || u.code === 1001), d = u.code === 1e3 || u.code === 1001, h = u.reason || `code=${u.code}`;
2439
+ this.callbacks.onClose(h, f, d);
2435
2440
  }, this.ws.onmessage = (u) => {
2436
2441
  this.handleProtocolMessage(new Uint8Array(u.data));
2437
2442
  };
@@ -2451,7 +2456,7 @@ class Ra {
2451
2456
  }
2452
2457
  handleProtocolMessage(e) {
2453
2458
  try {
2454
- if (ne(e).opcode === T.KEEPALIVE_REQUEST) {
2459
+ if (ne(e).opcode === S.KEEPALIVE_REQUEST) {
2455
2460
  this.send(this.getKeepaliveResponse()), this.resetKeepaliveTimeout();
2456
2461
  return;
2457
2462
  }
@@ -2469,11 +2474,11 @@ class Ra {
2469
2474
  this.keepaliveTimeout && (clearTimeout(this.keepaliveTimeout), this.keepaliveTimeout = null);
2470
2475
  }
2471
2476
  }
2472
- const B = v("WebTransportTransport"), Qe = 4, ka = 65536;
2473
- function Ir() {
2477
+ const B = L("WebTransportTransport"), Qe = 4, Ua = 65536;
2478
+ function mr() {
2474
2479
  return typeof WebTransport < "u";
2475
2480
  }
2476
- class Ua {
2481
+ class Da {
2477
2482
  transport = null;
2478
2483
  stream = null;
2479
2484
  reader = null;
@@ -2481,7 +2486,7 @@ class Ua {
2481
2486
  keepaliveTimeout = null;
2482
2487
  readLoopActive = !1;
2483
2488
  // Grow-only receive buffer with offset/length tracking to minimize allocations
2484
- receiveBuffer = new Uint8Array(ka);
2489
+ receiveBuffer = new Uint8Array(Ua);
2485
2490
  receiveBufferOffset = 0;
2486
2491
  receiveBufferLength = 0;
2487
2492
  // Cached DataView to avoid allocation per message
@@ -2499,7 +2504,7 @@ class Ua {
2499
2504
  return this.transport !== null && this.writer !== null;
2500
2505
  }
2501
2506
  async connect(e, r) {
2502
- if (!Ir())
2507
+ if (!mr())
2503
2508
  throw new W("WebTransport is not supported in this browser");
2504
2509
  try {
2505
2510
  this.transport = new WebTransport(e), await this.transport.ready, B.debug(`Connected to WebTransport entrypoint: ${e}`), this.transport.closed.then(() => {
@@ -2593,7 +2598,7 @@ class Ua {
2593
2598
  */
2594
2599
  handleProtocolMessage(e) {
2595
2600
  try {
2596
- if (ne(e).opcode === T.KEEPALIVE_REQUEST) {
2601
+ if (ne(e).opcode === S.KEEPALIVE_REQUEST) {
2597
2602
  this.send(this.getKeepaliveResponse()), this.resetKeepaliveTimeout();
2598
2603
  return;
2599
2604
  }
@@ -2635,8 +2640,8 @@ class Ua {
2635
2640
  }
2636
2641
  }
2637
2642
  }
2638
- const ee = v("Channel");
2639
- class Da {
2643
+ const ee = L("Channel");
2644
+ class Ma {
2640
2645
  state = "disconnected";
2641
2646
  transport = null;
2642
2647
  config;
@@ -2713,13 +2718,13 @@ class Da {
2713
2718
  switch (e.Type) {
2714
2719
  case k.WebSocket:
2715
2720
  case k.WebSocketProxy:
2716
- this.transport = new Ra(r);
2721
+ this.transport = new ka(r);
2717
2722
  break;
2718
2723
  case k.WebTransport:
2719
2724
  case k.WebTransportProxy:
2720
- if (!Ir())
2725
+ if (!mr())
2721
2726
  throw new Error("WebTransport is not supported in this browser");
2722
- this.transport = new Ua(r);
2727
+ this.transport = new Da(r);
2723
2728
  break;
2724
2729
  default:
2725
2730
  throw new Error(`Unsupported entrypoint type: ${k[e.Type]}`);
@@ -2732,7 +2737,7 @@ class Da {
2732
2737
  handleProtocolMessage(e) {
2733
2738
  try {
2734
2739
  const r = e;
2735
- if (ue(r) === T.CORE_ON_SERVER_STOPPING) {
2740
+ if (ue(r) === S.CORE_ON_SERVER_STOPPING) {
2736
2741
  ee.debug("Received server stopping message"), this.setState("stopped"), this.transport?.close();
2737
2742
  return;
2738
2743
  }
@@ -2760,8 +2765,8 @@ class Da {
2760
2765
  this.state !== e && (this.state = e, this.config.onStateChange?.(e));
2761
2766
  }
2762
2767
  }
2763
- const x = v("ChannelManager");
2764
- class Ma {
2768
+ const G = L("ChannelManager");
2769
+ class Oa {
2765
2770
  channels = /* @__PURE__ */ new Map();
2766
2771
  // keyed by opcode group
2767
2772
  activeType = null;
@@ -2811,7 +2816,7 @@ class Ma {
2811
2816
  s.send(e);
2812
2817
  return;
2813
2818
  }
2814
- x.warn("No channel found for message");
2819
+ G.warn("No channel found for message");
2815
2820
  }
2816
2821
  /**
2817
2822
  * Send a protocol message to all channels (for broadcast messages).
@@ -2842,10 +2847,10 @@ class Ma {
2842
2847
  await this.connectAllChannels(i), this.config.endpointSelector?.rememberWorkingType(s), this.config.onRememberWorkingType?.(s), this.activeType = s, this.reconnectAttempts = 0, this.setState("connected");
2843
2848
  return;
2844
2849
  } catch (o) {
2845
- x.warn(`Failed to connect using ${k[s]}: ${o}`), this.disconnectAll();
2850
+ G.warn(`Failed to connect using ${k[s]}: ${o}`), this.disconnectAll();
2846
2851
  }
2847
2852
  }
2848
- throw x.error("All endpoint types failed"), e || this.setState("offline"), new Error("Failed to connect using any endpoint type");
2853
+ throw G.error("All endpoint types failed"), e || this.setState("offline"), new Error("Failed to connect using any endpoint type");
2849
2854
  }
2850
2855
  /**
2851
2856
  * Connect all channels for a given endpoint type in parallel.
@@ -2863,7 +2868,7 @@ class Ma {
2863
2868
  * Connect a single channel.
2864
2869
  */
2865
2870
  async connectChannel(e) {
2866
- const r = new Da({
2871
+ const r = new Ma({
2867
2872
  entrypoint: e,
2868
2873
  sessionId: this.config.sessionId,
2869
2874
  keepaliveTimeoutMs: this.config.keepaliveTimeoutMs,
@@ -2905,10 +2910,10 @@ class Ma {
2905
2910
  handleChannelClose(e, r, n, s) {
2906
2911
  if (!(this.state === "idle" || this.state === "stopped" || this.state === "offline")) {
2907
2912
  if (n || s) {
2908
- x.debug("Channel closed by server"), this.shouldReconnect = !1, this.disconnectAll(), this.setState("stopped");
2913
+ G.debug("Channel closed by server"), this.shouldReconnect = !1, this.disconnectAll(), this.setState("stopped");
2909
2914
  return;
2910
2915
  }
2911
- this.state === "connected" && (x.error("Channel closed unexpectedly, attempting reconnect"), this.disconnectAll(), this.attemptReconnect());
2916
+ this.state === "connected" && (G.error("Channel closed unexpectedly, attempting reconnect"), this.disconnectAll(), this.attemptReconnect());
2912
2917
  }
2913
2918
  }
2914
2919
  /**
@@ -2918,16 +2923,16 @@ class Ma {
2918
2923
  if (!this.shouldReconnect)
2919
2924
  return;
2920
2925
  if (this.reconnectAttempts >= this.config.maxReconnectAttempts) {
2921
- x.error(`Max reconnect attempts (${this.config.maxReconnectAttempts}) reached`), this.setState("offline"), this.config.onError?.(new Aa(this.config.maxReconnectAttempts));
2926
+ G.error(`Max reconnect attempts (${this.config.maxReconnectAttempts}) reached`), this.setState("offline"), this.config.onError?.(new ya(this.config.maxReconnectAttempts));
2922
2927
  return;
2923
2928
  }
2924
2929
  this.setState("reconnecting"), this.reconnectAttempts++;
2925
2930
  const e = this.config.reconnectBackoffMs * Math.pow(2, this.reconnectAttempts - 1);
2926
- if (x.info(`Reconnecting in ${e}ms (attempt ${this.reconnectAttempts}/${this.config.maxReconnectAttempts})`), await Er(e, this.abortController?.signal), !!this.shouldReconnect)
2931
+ if (G.info(`Reconnecting in ${e}ms (attempt ${this.reconnectAttempts}/${this.config.maxReconnectAttempts})`), await pr(e, this.abortController?.signal), !!this.shouldReconnect)
2927
2932
  try {
2928
2933
  await this.connectInternal(!0);
2929
2934
  } catch (r) {
2930
- x.error("Reconnect failed:", r), await this.attemptReconnect();
2935
+ G.error("Reconnect failed:", r), await this.attemptReconnect();
2931
2936
  }
2932
2937
  }
2933
2938
  /**
@@ -2945,7 +2950,7 @@ class Ma {
2945
2950
  this.state !== e && (this.state = e, this.config.onStateChange?.(e));
2946
2951
  }
2947
2952
  }
2948
- const Oa = 5e3, va = 3e4, qe = 35e3, Ze = 500, et = 6, _r = 6e4, Ce = "ikon_device_id";
2953
+ const La = 5e3, va = 3e4, Ze = 35e3, qe = 500, et = 6, _r = 6e4, Ce = "ikon_device_id";
2949
2954
  function $e() {
2950
2955
  if (typeof window > "u" || typeof localStorage > "u")
2951
2956
  return crypto.randomUUID();
@@ -2956,14 +2961,14 @@ function $e() {
2956
2961
  return crypto.randomUUID();
2957
2962
  }
2958
2963
  }
2959
- function Bl() {
2964
+ function wl() {
2960
2965
  if (!(typeof localStorage > "u"))
2961
2966
  try {
2962
2967
  localStorage.removeItem(Ce);
2963
2968
  } catch {
2964
2969
  }
2965
2970
  }
2966
- function xl(t) {
2971
+ function Al(t) {
2967
2972
  try {
2968
2973
  const e = t.split(".");
2969
2974
  return e.length !== 3 ? null : JSON.parse(atob(e[1])).id ?? null;
@@ -2971,23 +2976,23 @@ function xl(t) {
2971
2976
  return null;
2972
2977
  }
2973
2978
  }
2974
- const pe = {}, be = "https://api.prod.ikon.live", Ee = "https://api.dev.ikon.live", tt = "https://auth.ikonai.com", rt = "https://auth.dev.ikonai.com", Gl = "https://auth.ikonai.com";
2979
+ const Ee = {}, Re = "https://api.prod.ikon.live", pe = "https://api.dev.ikon.live", tt = "https://auth.ikonai.com", rt = "https://auth.dev.ikonai.com", yl = "https://auth.ikonai.com";
2975
2980
  function Tr(t) {
2976
- return t === "development" ? Ee : be;
2981
+ return t === "development" ? pe : Re;
2977
2982
  }
2978
- function Vl() {
2979
- const t = typeof import.meta < "u" ? pe?.VITE_IKON_BACKEND_URL : void 0;
2980
- return t || (typeof window > "u" ? be : !Ke() || window.location.hostname.includes(".dev.") ? Ee : be);
2983
+ function Nl() {
2984
+ const t = typeof import.meta < "u" ? Ee?.VITE_IKON_BACKEND_URL : void 0;
2985
+ return t || (typeof window > "u" ? Re : !Ke() || window.location.hostname.includes(".dev.") ? pe : Re);
2981
2986
  }
2982
- function Wl() {
2983
- const t = typeof import.meta < "u" ? pe?.VITE_IKON_BACKEND_TYPE : void 0;
2987
+ function gl() {
2988
+ const t = typeof import.meta < "u" ? Ee?.VITE_IKON_BACKEND_TYPE : void 0;
2984
2989
  if (t === "development" || t === "production")
2985
2990
  return t;
2986
- const e = typeof import.meta < "u" ? pe?.VITE_IKON_BACKEND_URL : void 0;
2991
+ const e = typeof import.meta < "u" ? Ee?.VITE_IKON_BACKEND_URL : void 0;
2987
2992
  return e ? e.includes(".dev.") ? "development" : "production" : typeof window > "u" ? "production" : Ke() ? window.location.hostname.includes(".dev.") ? "development" : "production" : "development";
2988
2993
  }
2989
- function Hl() {
2990
- const t = typeof import.meta < "u" ? pe?.VITE_IKON_AUTH_URL : void 0;
2994
+ function Cl() {
2995
+ const t = typeof import.meta < "u" ? Ee?.VITE_IKON_AUTH_URL : void 0;
2991
2996
  return t || (typeof window > "u" ? tt : !Ke() || window.location.hostname.includes(".dev.") ? rt : tt);
2992
2997
  }
2993
2998
  function Sr() {
@@ -2998,8 +3003,8 @@ function Sr() {
2998
3003
  e[r] = n;
2999
3004
  return e;
3000
3005
  }
3001
- const La = ["ikon_token", "ikon_provider", "error"];
3002
- function $l() {
3006
+ const Fa = ["ikon_token", "ikon_provider", "error"];
3007
+ function Rl() {
3003
3008
  if (typeof window > "u")
3004
3009
  return { parameters: {} };
3005
3010
  const t = window.location.pathname;
@@ -3011,7 +3016,7 @@ function $l() {
3011
3016
  throw new Error("URL cannot contain both /s/[sessionId] and /c/[channelKey]");
3012
3017
  const i = Sr(), o = {};
3013
3018
  for (const [a, c] of Object.entries(i))
3014
- La.includes(a) || (o[a] = c);
3019
+ Fa.includes(a) || (o[a] = c);
3015
3020
  return { sessionId: e, channelKey: r, parameters: o };
3016
3021
  }
3017
3022
  function Ke() {
@@ -3026,10 +3031,10 @@ function Ke() {
3026
3031
  }
3027
3032
  return !0;
3028
3033
  }
3029
- const me = v("Authenticator"), j = T.GROUP_CORE | T.GROUP_KEEPALIVE | T.GROUP_EVENTS | T.GROUP_ACTIONS | T.GROUP_UI | T.GROUP_AUDIO | T.GROUP_VIDEO, Fa = 1e3, Pa = 5e3;
3030
- async function Ba(t) {
3034
+ const Ie = L("Authenticator"), j = S.GROUP_CORE | S.GROUP_KEEPALIVE | S.GROUP_EVENTS | S.GROUP_ACTIONS | S.GROUP_UI | S.GROUP_AUDIO | S.GROUP_VIDEO, Pa = 1e3, Ba = 5e3;
3035
+ async function Ga(t) {
3031
3036
  try {
3032
- const e = await fetch(`${Ee}/users/me`, {
3037
+ const e = await fetch(`${pe}/users/me`, {
3033
3038
  credentials: "include",
3034
3039
  signal: t
3035
3040
  });
@@ -3073,17 +3078,17 @@ async function xa(t, e, r, n) {
3073
3078
  }
3074
3079
  async function yr(t, e, r, n, s) {
3075
3080
  const i = Date.now();
3076
- let o = Fa;
3081
+ let o = Pa;
3077
3082
  for (; ; ) {
3078
3083
  if (s?.aborted)
3079
3084
  throw new y("Connection aborted");
3080
3085
  if (Date.now() - i >= r)
3081
- throw new ya(r);
3086
+ throw new Na(r);
3082
3087
  const c = await xa(t, e, n, s), u = c.state?.toLowerCase();
3083
3088
  if (u === "running")
3084
3089
  return c;
3085
3090
  if (u === "provisioning") {
3086
- await Er(o, s), o = Math.min(o * 1.5, Pa);
3091
+ await pr(o, s), o = Math.min(o * 1.5, Ba);
3087
3092
  continue;
3088
3093
  }
3089
3094
  throw new y(`Unexpected channel state: ${c.state}`);
@@ -3098,12 +3103,12 @@ async function Ye(t, e) {
3098
3103
  const n = await r.arrayBuffer(), s = new Uint8Array(n);
3099
3104
  return { authResponse: ys(s) };
3100
3105
  }
3101
- function Ga(t, e) {
3106
+ function Va(t, e) {
3102
3107
  return Cs({
3103
3108
  ServerSessionId: "",
3104
3109
  // Server will fill this in
3105
3110
  ContextType: J.Browser,
3106
- UserType: q.Human,
3111
+ UserType: Z.Human,
3107
3112
  PayloadType: Q.Teleport,
3108
3113
  IsInternal: !1,
3109
3114
  Description: t.description ?? "Ikon SDK TypeScript",
@@ -3126,7 +3131,7 @@ function Ga(t, e) {
3126
3131
  Parameters: t.parameters ?? {}
3127
3132
  });
3128
3133
  }
3129
- function Va(t) {
3134
+ function Wa(t) {
3130
3135
  return {
3131
3136
  ServerSessionId: t.ServerSessionId,
3132
3137
  ContextType: t.ContextType,
@@ -3153,13 +3158,13 @@ function Va(t) {
3153
3158
  Parameters: t.Parameters
3154
3159
  };
3155
3160
  }
3156
- async function Wa(t, e) {
3161
+ async function Ha(t, e) {
3157
3162
  const r = `https://${t.host}:${t.httpsPort}`;
3158
- me.debug(`Authenticating with local server: ${r}`);
3163
+ Ie.debug(`Authenticating with local server: ${r}`);
3159
3164
  const s = { ...Sr(), ...t.parameters };
3160
3165
  let i = t.userId;
3161
- i || (i = await Ba(e), i || (i = "local", me.warn('Could not determine user ID. Using fallback "local". To fix: either provide userId in config, or log in to the Ikon portal at https://portal.dev.ikon.live')));
3162
- const o = Ga({ ...t, parameters: s }, i), a = Va(o), c = await fetch(`${r}/connect-token`, {
3166
+ i || (i = await Ga(e), i || (i = "local", Ie.warn('Could not determine user ID. Using fallback "local". To fix: either provide userId in config, or log in to the Ikon portal at https://portal.dev.ikon.live')));
3167
+ const o = Va({ ...t, parameters: s }, i), a = Wa(o), c = await fetch(`${r}/connect-token`, {
3163
3168
  method: "POST",
3164
3169
  headers: {
3165
3170
  "Content-Type": "application/json"
@@ -3171,17 +3176,17 @@ async function Wa(t, e) {
3171
3176
  const h = await c.text().catch(() => "Unknown error");
3172
3177
  throw new y(`Failed to get connect token: ${c.status} ${h}`);
3173
3178
  }
3174
- const p = (await c.json()).token;
3175
- if (!p)
3179
+ const f = (await c.json()).token;
3180
+ if (!f)
3176
3181
  throw new y("Server did not return a token");
3177
- const d = `${r}/connect?token=${encodeURIComponent(p)}`;
3182
+ const d = `${r}/connect?token=${encodeURIComponent(f)}`;
3178
3183
  return Ye(d, e);
3179
3184
  }
3180
- async function Ha(t, e) {
3185
+ async function $a(t, e) {
3181
3186
  if (t.sessionId && t.channelKey)
3182
3187
  throw new y("Cannot specify both sessionId and channelKey. Use sessionId for precomputed sessions or channelKey to select a channel.");
3183
3188
  const r = Tr(t.backendType);
3184
- me.debug(`Authenticating with cloud server: ${r}, space ID: ${t.spaceId}`);
3189
+ Ie.debug(`Authenticating with cloud server: ${r}, space ID: ${t.spaceId}`);
3185
3190
  const n = await fetch(`${r}/auth/api-key`, {
3186
3191
  method: "POST",
3187
3192
  headers: {
@@ -3215,7 +3220,7 @@ async function Ha(t, e) {
3215
3220
  const c = {
3216
3221
  code: (await Ar(r, t.spaceId, t.channelKey, t.parameters, t.sessionId, i, e)).code,
3217
3222
  contextType: J.Plugin,
3218
- userType: t.userType ?? q.Human,
3223
+ userType: t.userType ?? Z.Human,
3219
3224
  clientType: t.clientType ?? X.DesktopWeb,
3220
3225
  payloadType: Q.Teleport,
3221
3226
  description: t.description ?? "Ikon SDK TypeScript",
@@ -3231,17 +3236,17 @@ async function Ha(t, e) {
3231
3236
  launchParams: t.parameters,
3232
3237
  hash: t.sessionId,
3233
3238
  waitForRunning: !0
3234
- }, u = t.provisioningTimeoutMs ?? _r, p = await yr(r, c, u, i, e);
3235
- if (!p.configuration?.url)
3239
+ }, u = t.provisioningTimeoutMs ?? _r, f = await yr(r, c, u, i, e);
3240
+ if (!f.configuration?.url)
3236
3241
  throw new y("Backend did not return a connect URL");
3237
- const d = p.configuration.url;
3242
+ const d = f.configuration.url;
3238
3243
  return Ye(d, e);
3239
3244
  }
3240
- async function $a(t, e) {
3245
+ async function Ka(t, e) {
3241
3246
  if (t.sessionId && t.channelKey)
3242
3247
  throw new y("Cannot specify both sessionId and channelKey. Use sessionId for precomputed sessions or channelKey to select a channel.");
3243
3248
  const r = Tr(t.backendType), n = t.token;
3244
- me.debug(`Authenticating with session token to: ${r}, space ID: ${t.spaceId}`);
3249
+ Ie.debug(`Authenticating with session token to: ${r}, space ID: ${t.spaceId}`);
3245
3250
  const s = await fetch(`${r}/profiles/me?space=${encodeURIComponent(t.spaceId)}`, {
3246
3251
  method: "GET",
3247
3252
  headers: {
@@ -3250,13 +3255,13 @@ async function $a(t, e) {
3250
3255
  signal: e
3251
3256
  });
3252
3257
  if (!s.ok) {
3253
- const p = await s.text().catch(() => "Unknown error");
3254
- throw new y(`Failed to get or create profile: ${s.status} ${p}`);
3258
+ const f = await s.text().catch(() => "Unknown error");
3259
+ throw new y(`Failed to get or create profile: ${s.status} ${f}`);
3255
3260
  }
3256
3261
  const o = {
3257
3262
  code: (await Ar(r, t.spaceId, t.channelKey, t.parameters, t.sessionId, n, e)).code,
3258
3263
  contextType: J.Browser,
3259
- userType: q.Human,
3264
+ userType: Z.Human,
3260
3265
  clientType: X.DesktopWeb,
3261
3266
  payloadType: Q.Teleport,
3262
3267
  description: t.description ?? "Ikon SDK TypeScript",
@@ -3278,22 +3283,22 @@ async function $a(t, e) {
3278
3283
  const u = c.configuration.url;
3279
3284
  return Ye(u, e);
3280
3285
  }
3281
- const Nr = "ikon.theme", Re = "ikon.theme-user", Ka = "ikon.theme-change";
3286
+ const Nr = "ikon.theme", be = "ikon.theme-user", Ya = "ikon.theme-change";
3282
3287
  function gr(t) {
3283
3288
  typeof document < "u" && document.documentElement && document.documentElement.setAttribute("data-theme", t);
3284
3289
  }
3285
- const Ya = {
3290
+ const ja = {
3286
3291
  name: "ikon.client.getTheme",
3287
3292
  description: "Get the currently selected client theme",
3288
3293
  returnType: { kind: "string", nullable: !0 }
3289
3294
  };
3290
- function ja() {
3295
+ function za() {
3291
3296
  if (typeof window > "u" || !window.localStorage)
3292
3297
  return null;
3293
- const t = window.localStorage.getItem(Re) ?? window.localStorage.getItem(Nr) ?? "light";
3298
+ const t = window.localStorage.getItem(be) ?? window.localStorage.getItem(Nr) ?? "light";
3294
3299
  return gr(t), t;
3295
3300
  }
3296
- const za = {
3301
+ const Xa = {
3297
3302
  name: "ikon.client.setTheme",
3298
3303
  description: "Update the client UI theme",
3299
3304
  returnType: { kind: "boolean" },
@@ -3302,140 +3307,49 @@ const za = {
3302
3307
  { name: "persist", type: { kind: "boolean", nullable: !0 }, description: "Whether to persist as user preference" }
3303
3308
  ]
3304
3309
  };
3305
- function Xa(t, e) {
3310
+ function Ja(t, e) {
3306
3311
  if (typeof window > "u" || !window.localStorage || typeof t != "string")
3307
3312
  return !1;
3308
3313
  const r = t.trim().toLowerCase();
3309
3314
  if (!r)
3310
3315
  return !1;
3311
3316
  const n = e === void 0 ? !0 : !!e, s = window.localStorage;
3312
- n ? s.setItem(Re, r) : s.removeItem(Re), s.setItem(Nr, r);
3317
+ n ? s.setItem(be, r) : s.removeItem(be), s.setItem(Nr, r);
3313
3318
  try {
3314
- window.dispatchEvent(new CustomEvent(Ka, { detail: { mode: r } }));
3319
+ window.dispatchEvent(new CustomEvent(Ya, { detail: { mode: r } }));
3315
3320
  } catch {
3316
3321
  }
3317
3322
  return gr(r), !0;
3318
3323
  }
3319
- const Ja = {
3320
- name: "ikon.client.getLocation",
3321
- description: "Retrieve the current geolocation coordinates from the browser",
3322
- returnType: {
3323
- kind: "dictionary",
3324
- keyType: "string",
3325
- value: { kind: "number" },
3326
- nullable: !0
3327
- }
3328
- };
3329
- async function Qa() {
3330
- if (typeof navigator > "u" || !navigator.geolocation)
3331
- return null;
3332
- try {
3333
- const t = await new Promise((e, r) => {
3334
- navigator.geolocation.getCurrentPosition(e, r, {
3335
- enableHighAccuracy: !0,
3336
- timeout: 1e4
3337
- });
3338
- });
3339
- return {
3340
- latitude: t.coords.latitude,
3341
- longitude: t.coords.longitude,
3342
- accuracy: t.coords.accuracy
3343
- };
3344
- } catch {
3345
- return null;
3346
- }
3347
- }
3348
- const qa = {
3349
- name: "ikon.client.share",
3350
- description: "Open the Web Share dialog when supported",
3351
- returnType: { kind: "boolean" },
3352
- parameters: [
3353
- { name: "title", type: { kind: "string", nullable: !0 }, description: "Share title" },
3354
- { name: "text", type: { kind: "string", nullable: !0 }, description: "Share text" },
3355
- { name: "url", type: { kind: "string", nullable: !0 }, description: "Share URL" }
3356
- ]
3357
- };
3358
- async function Za(t, e, r) {
3359
- if (typeof navigator > "u" || typeof navigator.share != "function")
3360
- return !1;
3361
- const n = typeof t == "string" ? t.trim() : "", s = typeof e == "string" ? e.trim() : "", i = typeof r == "string" ? r.trim() : "", o = {};
3362
- if (n && (o.title = n), s && (o.text = s), i && (o.url = i), !o.title && !o.text && !o.url)
3363
- return !1;
3364
- try {
3365
- return await navigator.share(o), !0;
3366
- } catch {
3367
- return !1;
3368
- }
3369
- }
3370
- const ec = {
3371
- name: "ikon.client.pickContacts",
3372
- description: "Launch the native contact picker when available",
3373
- returnType: { kind: "string", nullable: !0 },
3374
- parameters: [{ name: "multiple", type: { kind: "boolean", nullable: !0 }, description: "Allow multiple contacts" }]
3375
- };
3376
- async function tc(t) {
3377
- if (typeof navigator > "u")
3378
- return null;
3379
- const e = navigator, r = e.contacts?.select;
3380
- if (!r)
3381
- return null;
3382
- try {
3383
- const n = await r.call(e.contacts, ["name", "email", "tel"], {
3384
- multiple: !!t
3385
- }), s = (o) => Array.isArray(o) ? o.filter((a) => typeof a == "string" && a.length > 0) : [], i = n.map((o) => ({
3386
- names: s(o.name),
3387
- emails: s(o.email),
3388
- phones: s(o.tel)
3389
- }));
3390
- return JSON.stringify(i);
3391
- } catch {
3392
- return null;
3393
- }
3394
- }
3395
- const rc = {
3324
+ const Qa = {
3396
3325
  name: "ikon.client.getLanguage",
3397
3326
  description: "Get the browser language preference",
3398
3327
  returnType: { kind: "string" }
3399
3328
  };
3400
- function nc() {
3329
+ function Za() {
3401
3330
  return typeof navigator > "u" ? "en-US" : navigator.language || "en-US";
3402
3331
  }
3403
- const sc = {
3332
+ const qa = {
3404
3333
  name: "ikon.client.getTimezone",
3405
3334
  description: "Get the browser timezone (IANA format)",
3406
3335
  returnType: { kind: "string" }
3407
3336
  };
3408
- function ic() {
3337
+ function ec() {
3409
3338
  try {
3410
3339
  return Intl.DateTimeFormat().resolvedOptions().timeZone;
3411
3340
  } catch {
3412
3341
  return "UTC";
3413
3342
  }
3414
3343
  }
3415
- const oc = {
3416
- name: "ikon.client.copyToClipboard",
3417
- description: "Copy text to clipboard",
3418
- returnType: { kind: "boolean" },
3419
- parameters: [{ name: "text", type: { kind: "string" }, description: "Text to copy" }]
3420
- };
3421
- async function ac(t) {
3422
- if (typeof navigator > "u" || !navigator.clipboard || typeof t != "string")
3423
- return !1;
3424
- try {
3425
- return await navigator.clipboard.writeText(t), !0;
3426
- } catch {
3427
- return !1;
3428
- }
3429
- }
3430
- const cc = {
3344
+ const tc = {
3431
3345
  name: "ikon.client.getUrl",
3432
3346
  description: "Get the current browser URL path and query string",
3433
3347
  returnType: { kind: "string", nullable: !0 }
3434
3348
  };
3435
- function lc() {
3349
+ function rc() {
3436
3350
  return typeof window > "u" ? null : window.location.pathname + window.location.search;
3437
3351
  }
3438
- const uc = {
3352
+ const nc = {
3439
3353
  name: "ikon.client.setUrl",
3440
3354
  description: "Update the browser URL without triggering a page reload",
3441
3355
  returnType: { kind: "boolean" },
@@ -3444,7 +3358,7 @@ const uc = {
3444
3358
  { name: "replace", type: { kind: "boolean", nullable: !0 }, description: "If true, replaces current history entry instead of adding new one" }
3445
3359
  ]
3446
3360
  };
3447
- function hc(t, e) {
3361
+ function sc(t, e) {
3448
3362
  if (typeof window > "u" || !window.history || typeof t != "string")
3449
3363
  return !1;
3450
3364
  const r = t.trim();
@@ -3456,13 +3370,13 @@ function hc(t, e) {
3456
3370
  return !1;
3457
3371
  }
3458
3372
  }
3459
- const dc = {
3373
+ const ic = {
3460
3374
  name: "ikon.client.vibrate",
3461
3375
  description: "Trigger haptic feedback on supported devices",
3462
3376
  returnType: { kind: "boolean" },
3463
3377
  parameters: [{ name: "pattern", type: { kind: "string" }, description: 'Duration in ms, or comma-separated pattern (e.g., "200" or "100,50,100")' }]
3464
3378
  };
3465
- function fc(t) {
3379
+ function oc(t) {
3466
3380
  if (typeof navigator > "u" || !navigator.vibrate || typeof t != "string")
3467
3381
  return !1;
3468
3382
  try {
@@ -3472,105 +3386,14 @@ function fc(t) {
3472
3386
  return !1;
3473
3387
  }
3474
3388
  }
3475
- const pc = {
3476
- name: "ikon.client.playSound",
3477
- description: "Play audio from a URL",
3478
- returnType: { kind: "boolean" },
3479
- parameters: [
3480
- { name: "url", type: { kind: "string" }, description: "URL of the audio file" },
3481
- { name: "volume", type: { kind: "number", nullable: !0 }, description: "Volume level from 0.0 to 1.0" }
3482
- ]
3483
- };
3484
- async function Ec(t, e) {
3485
- if (typeof window > "u" || typeof Audio > "u" || typeof t != "string" || !t.trim())
3486
- return !1;
3487
- try {
3488
- const r = new Audio(t.trim());
3489
- return r.volume = typeof e == "number" ? Math.max(0, Math.min(1, e)) : 1, await r.play(), !0;
3490
- } catch {
3491
- return !1;
3492
- }
3493
- }
3494
- const mc = {
3495
- name: "ikon.client.showNotification",
3496
- description: "Show a browser notification (requests permission if needed)",
3497
- returnType: { kind: "boolean" },
3498
- parameters: [
3499
- { name: "title", type: { kind: "string" }, description: "Notification title" },
3500
- { name: "body", type: { kind: "string", nullable: !0 }, description: "Notification body text" },
3501
- { name: "icon", type: { kind: "string", nullable: !0 }, description: "URL of notification icon" }
3502
- ]
3503
- };
3504
- async function Ic(t, e, r) {
3505
- if (typeof window > "u" || !("Notification" in window) || typeof t != "string" || !t.trim())
3506
- return !1;
3507
- try {
3508
- let n = Notification.permission;
3509
- if (n === "default" && (n = await Notification.requestPermission()), n !== "granted")
3510
- return !1;
3511
- const s = {};
3512
- return typeof e == "string" && e.trim() && (s.body = e.trim()), typeof r == "string" && r.trim() && (s.icon = r.trim()), new Notification(t.trim(), s), !0;
3513
- } catch {
3514
- return !1;
3515
- }
3516
- }
3517
- const _c = {
3518
- name: "ikon.client.requestFullscreen",
3519
- description: "Enter fullscreen mode",
3520
- returnType: { kind: "boolean" }
3521
- };
3522
- async function Tc() {
3523
- if (typeof document > "u" || !document.documentElement)
3524
- return !1;
3525
- try {
3526
- const t = document.documentElement, e = t.requestFullscreen || t.webkitRequestFullscreen || t.msRequestFullscreen;
3527
- return e ? (await e.call(t), !0) : !1;
3528
- } catch {
3529
- return !1;
3530
- }
3531
- }
3532
- const Sc = {
3533
- name: "ikon.client.exitFullscreen",
3534
- description: "Exit fullscreen mode",
3535
- returnType: { kind: "boolean" }
3536
- };
3537
- function wc() {
3538
- if (typeof document > "u")
3539
- return !1;
3540
- try {
3541
- const t = document.exitFullscreen || document.webkitExitFullscreen || document.msExitFullscreen;
3542
- return t ? (t.call(document), !0) : !1;
3543
- } catch {
3544
- return !1;
3545
- }
3546
- }
3547
- const Ac = {
3548
- name: "ikon.client.downloadFile",
3549
- description: "Trigger a file download",
3550
- returnType: { kind: "boolean" },
3551
- parameters: [
3552
- { name: "url", type: { kind: "string" }, description: "URL of the file to download" },
3553
- { name: "filename", type: { kind: "string", nullable: !0 }, description: "Suggested filename for the download" }
3554
- ]
3555
- };
3556
- function yc(t, e) {
3557
- if (typeof document > "u" || typeof t != "string" || !t.trim())
3558
- return !1;
3559
- try {
3560
- const r = document.createElement("a");
3561
- return r.href = t.trim(), r.download = typeof e == "string" && e.trim() ? e.trim() : "", r.style.display = "none", document.body.appendChild(r), r.click(), document.body.removeChild(r), !0;
3562
- } catch {
3563
- return !1;
3564
- }
3565
- }
3566
3389
  let te = null;
3567
- const Nc = {
3390
+ const ac = {
3568
3391
  name: "ikon.client.keepScreenAwake",
3569
3392
  description: "Prevent or allow the screen to sleep",
3570
3393
  returnType: { kind: "boolean" },
3571
3394
  parameters: [{ name: "enabled", type: { kind: "boolean" }, description: "Whether to keep the screen awake" }]
3572
3395
  };
3573
- async function gc(t) {
3396
+ async function cc(t) {
3574
3397
  if (typeof navigator > "u" || !("wakeLock" in navigator))
3575
3398
  return !1;
3576
3399
  try {
@@ -3579,15 +3402,15 @@ async function gc(t) {
3579
3402
  return !1;
3580
3403
  }
3581
3404
  }
3582
- const Cc = {
3405
+ const lc = {
3583
3406
  name: "ikon.client.getVisibility",
3584
3407
  description: "Get the current page visibility state",
3585
3408
  returnType: { kind: "string", nullable: !0 }
3586
3409
  };
3587
- function bc() {
3410
+ function uc() {
3588
3411
  return typeof document > "u" ? null : document.visibilityState || null;
3589
3412
  }
3590
- const Rc = {
3413
+ const hc = {
3591
3414
  name: "ikon.client.scrollTo",
3592
3415
  description: "Scroll the page to a specific position",
3593
3416
  returnType: { kind: "boolean" },
@@ -3597,7 +3420,7 @@ const Rc = {
3597
3420
  { name: "smooth", type: { kind: "boolean", nullable: !0 }, description: "Whether to animate the scroll" }
3598
3421
  ]
3599
3422
  };
3600
- function kc(t, e, r) {
3423
+ function dc(t, e, r) {
3601
3424
  if (typeof window > "u" || typeof t != "number" || typeof e != "number")
3602
3425
  return !1;
3603
3426
  try {
@@ -3610,12 +3433,12 @@ function kc(t, e, r) {
3610
3433
  return !1;
3611
3434
  }
3612
3435
  }
3613
- const Uc = {
3436
+ const fc = {
3614
3437
  name: "ikon.client.getBatteryLevel",
3615
3438
  description: "Get the current battery level (0-100)",
3616
3439
  returnType: { kind: "number", nullable: !0 }
3617
3440
  };
3618
- async function Dc() {
3441
+ async function Ec() {
3619
3442
  if (typeof navigator > "u" || !("getBattery" in navigator))
3620
3443
  return null;
3621
3444
  try {
@@ -3625,61 +3448,52 @@ async function Dc() {
3625
3448
  return null;
3626
3449
  }
3627
3450
  }
3628
- const Mc = {
3451
+ const pc = {
3629
3452
  name: "ikon.client.getNetworkType",
3630
3453
  description: "Get the current network connection type",
3631
3454
  returnType: { kind: "string", nullable: !0 }
3632
3455
  };
3633
- function Oc() {
3456
+ function Ic() {
3634
3457
  if (typeof navigator > "u")
3635
3458
  return null;
3636
3459
  const t = navigator.connection;
3637
3460
  return t && (t.effectiveType || t.type) || null;
3638
3461
  }
3639
- const vc = [
3640
- { definition: Ya, handler: ja },
3641
- { definition: za, handler: Xa },
3642
- { definition: Ja, handler: Qa },
3643
- { definition: qa, handler: Za },
3644
- { definition: ec, handler: tc },
3645
- { definition: rc, handler: nc },
3646
- { definition: sc, handler: ic },
3647
- { definition: oc, handler: ac },
3648
- { definition: cc, handler: lc },
3649
- { definition: uc, handler: hc },
3650
- { definition: dc, handler: fc },
3651
- { definition: pc, handler: Ec },
3652
- { definition: mc, handler: Ic },
3653
- { definition: _c, handler: Tc },
3654
- { definition: Sc, handler: wc },
3655
- { definition: Ac, handler: yc },
3656
- { definition: Nc, handler: gc },
3657
- { definition: Cc, handler: bc },
3658
- { definition: Rc, handler: kc },
3659
- { definition: Uc, handler: Dc },
3660
- { definition: Mc, handler: Oc }
3462
+ const mc = [
3463
+ { definition: ja, handler: za },
3464
+ { definition: Xa, handler: Ja },
3465
+ { definition: Qa, handler: Za },
3466
+ { definition: qa, handler: ec },
3467
+ { definition: tc, handler: rc },
3468
+ { definition: nc, handler: sc },
3469
+ { definition: ic, handler: oc },
3470
+ { definition: ac, handler: cc },
3471
+ { definition: lc, handler: uc },
3472
+ { definition: hc, handler: dc },
3473
+ { definition: fc, handler: Ec },
3474
+ { definition: pc, handler: Ic }
3661
3475
  ];
3662
- function Lc(t) {
3663
- const e = vc.map(({ definition: r, handler: n }) => t.register(r, n));
3476
+ function _c(t) {
3477
+ const e = mc.map(({ definition: r, handler: n }) => t.register(r, n));
3664
3478
  return () => e.forEach((r) => r());
3665
3479
  }
3666
3480
  function nt() {
3667
3481
  return typeof window < "u" && typeof navigator < "u";
3668
3482
  }
3669
- const Fc = new Uint8Array(0);
3670
- function Ie(t) {
3483
+ const Tc = new Uint8Array(0);
3484
+ function me(t) {
3671
3485
  switch (t.kind) {
3672
3486
  case "array":
3673
3487
  return {
3674
3488
  kind: "array",
3675
- element: Ie(t.element),
3489
+ element: me(t.element),
3676
3490
  nullable: t.nullable ?? !1
3677
3491
  };
3678
3492
  case "dictionary":
3679
3493
  return {
3680
3494
  kind: "dictionary",
3681
3495
  keyType: t.keyType ?? "string",
3682
- value: Ie(t.value),
3496
+ value: me(t.value),
3683
3497
  nullable: t.nullable ?? !1
3684
3498
  };
3685
3499
  default:
@@ -3726,9 +3540,9 @@ function Cr(t, e) {
3726
3540
  }
3727
3541
  return JSON.stringify(t);
3728
3542
  }
3729
- function Pc(t, e) {
3543
+ function Sc(t, e) {
3730
3544
  const r = (t.parameters ?? []).map((i) => {
3731
- const o = Ie(i.type), a = Object.prototype.hasOwnProperty.call(i, "defaultValue"), c = a ? Cr(i.defaultValue, o) : "";
3545
+ const o = me(i.type), a = Object.prototype.hasOwnProperty.call(i, "defaultValue"), c = a ? Cr(i.defaultValue, o) : "";
3732
3546
  return {
3733
3547
  name: i.name,
3734
3548
  descriptor: o,
@@ -3736,7 +3550,7 @@ function Pc(t, e) {
3736
3550
  defaultValueJson: c,
3737
3551
  description: i.description
3738
3552
  };
3739
- }), n = Ie(t.returnType), s = {
3553
+ }), n = me(t.returnType), s = {
3740
3554
  FunctionId: m.createRandom(),
3741
3555
  FunctionName: t.name,
3742
3556
  Description: t.description ?? "",
@@ -3753,7 +3567,7 @@ function Pc(t, e) {
3753
3567
  TypeName: re(i.descriptor),
3754
3568
  HasDefaultValue: i.hasDefaultValue,
3755
3569
  DefaultValueJson: i.defaultValueJson,
3756
- DefaultValueData: Fc,
3570
+ DefaultValueData: Tc,
3757
3571
  IsEnumerable: !1,
3758
3572
  EnumerableItemTypeName: "",
3759
3573
  Description: i.description ?? ""
@@ -3767,11 +3581,11 @@ function Pc(t, e) {
3767
3581
  returnType: n
3768
3582
  };
3769
3583
  }
3770
- const it = v("FunctionRegistry"), Bc = new Uint8Array(0);
3771
- function xc(t) {
3584
+ const it = L("FunctionRegistry"), wc = new Uint8Array(0);
3585
+ function Ac(t) {
3772
3586
  return !t || typeof t != "object" ? !1 : t.data instanceof Uint8Array;
3773
3587
  }
3774
- class Gc {
3588
+ class yc {
3775
3589
  functions = /* @__PURE__ */ new Map();
3776
3590
  config = null;
3777
3591
  isConnected = !1;
@@ -3793,7 +3607,7 @@ class Gc {
3793
3607
  * If already connected, sends registration to server immediately.
3794
3608
  */
3795
3609
  register(e, r) {
3796
- const n = Pc(e, r);
3610
+ const n = Sc(e, r);
3797
3611
  return this.functions.set(e.name, n), this.isConnected && this.config && this.sendRegistration(n), () => this.unregister(e.name);
3798
3612
  }
3799
3613
  /**
@@ -3825,7 +3639,7 @@ class Gc {
3825
3639
  * Returns true if the message was handled.
3826
3640
  */
3827
3641
  handleProtocolMessage(e, r) {
3828
- if (r === T.ACTION_FUNCTION_CALL) {
3642
+ if (r === S.ACTION_FUNCTION_CALL) {
3829
3643
  const n = ne(e);
3830
3644
  return this.handleFunctionCall(e, n.senderId), !0;
3831
3645
  }
@@ -3838,7 +3652,7 @@ class Gc {
3838
3652
  sendAllRegistrations() {
3839
3653
  if (!this.config || this.functions.size === 0)
3840
3654
  return;
3841
- const e = Array.from(this.functions.values()).map((s) => s.registerPayload), r = Ri({ Functions: e }), n = Mi(r, this.config.sessionId);
3655
+ const e = Array.from(this.functions.values()).map((s) => s.registerPayload), r = bi({ Functions: e }), n = Mi(r, this.config.sessionId);
3842
3656
  this.config.sendProtocolMessage(n);
3843
3657
  }
3844
3658
  /**
@@ -3868,12 +3682,12 @@ class Gc {
3868
3682
  try {
3869
3683
  const s = [];
3870
3684
  for (let u = 0; u < e.parameters.length; u++) {
3871
- const p = e.parameters[u], h = r.Parameters?.[u]?.ValueJson;
3872
- h === void 0 || h === "" ? p.hasDefaultValue ? s.push(st(p.defaultValueJson, p.descriptor)) : s.push(void 0) : s.push(st(h, p.descriptor));
3685
+ const f = e.parameters[u], h = r.Parameters?.[u]?.ValueJson;
3686
+ h === void 0 || h === "" ? f.hasDefaultValue ? s.push(st(f.defaultValueJson, f.descriptor)) : s.push(void 0) : s.push(st(h, f.descriptor));
3873
3687
  }
3874
3688
  const i = await e.handler(...s);
3875
- let o = i, a = Bc;
3876
- xc(i) && (o = i.value, a = new Uint8Array(i.data));
3689
+ let o = i, a = wc;
3690
+ Ac(i) && (o = i.value, a = new Uint8Array(i.data));
3877
3691
  const c = Cr(o, e.returnType);
3878
3692
  this.sendResult(r.CallId, r.InstanceId, n, e, c, a);
3879
3693
  } catch (s) {
@@ -3886,7 +3700,7 @@ class Gc {
3886
3700
  sendAck(e, r, n) {
3887
3701
  if (!this.config)
3888
3702
  return;
3889
- const s = Ls(Ds({ CallId: e, InstanceId: r }), this.config.sessionId, { targetIds: [n] });
3703
+ const s = vs(Ds({ CallId: e, InstanceId: r }), this.config.sessionId, { targetIds: [n] });
3890
3704
  this.config.sendProtocolMessage(s);
3891
3705
  }
3892
3706
  /**
@@ -3896,7 +3710,7 @@ class Gc {
3896
3710
  if (!this.config)
3897
3711
  return;
3898
3712
  const a = Hi(
3899
- xi({
3713
+ Gi({
3900
3714
  CallId: e,
3901
3715
  InstanceId: r,
3902
3716
  ResultTypeName: re(s.returnType),
@@ -3928,7 +3742,7 @@ class Gc {
3928
3742
  this.config.sendProtocolMessage(i);
3929
3743
  }
3930
3744
  }
3931
- function Vc(t, e) {
3745
+ function Nc(t, e) {
3932
3746
  return { value: t, data: e };
3933
3747
  }
3934
3748
  function Se(t) {
@@ -3944,7 +3758,7 @@ const Te = {
3944
3758
  StartAudioCapture: "ikon.client.startAudioCapture",
3945
3759
  StopCapture: "ikon.client.stopCapture",
3946
3760
  CaptureImage: "ikon.client.captureImage"
3947
- }, Wc = {
3761
+ }, gc = {
3948
3762
  name: Te.StartVideoCapture,
3949
3763
  description: "Start camera or screen capture and stream video frames to the server",
3950
3764
  returnType: { kind: "string" },
@@ -3952,26 +3766,26 @@ const Te = {
3952
3766
  { name: "source", type: { kind: "string", nullable: !0 }, description: "camera or screen" },
3953
3767
  { name: "optionsJson", type: { kind: "string", nullable: !0 }, description: "JSON encoded capture options" }
3954
3768
  ]
3955
- }, Hc = {
3769
+ }, Cc = {
3956
3770
  name: Te.StartAudioCapture,
3957
3771
  description: "Start microphone capture and stream audio frames to the server",
3958
3772
  returnType: { kind: "string" },
3959
3773
  parameters: [{ name: "optionsJson", type: { kind: "string", nullable: !0 }, description: "JSON encoded capture options" }]
3960
- }, $c = {
3774
+ }, Rc = {
3961
3775
  name: Te.StopCapture,
3962
3776
  description: "Stop a previously started capture by captureId",
3963
3777
  returnType: { kind: "boolean" },
3964
3778
  parameters: [{ name: "captureId", type: { kind: "string" }, description: "Capture ID to stop" }]
3965
- }, Kc = {
3779
+ }, bc = {
3966
3780
  name: Te.CaptureImage,
3967
3781
  description: "Capture a single image from the camera and return metadata (JSON) plus binary image data",
3968
3782
  returnType: { kind: "string" },
3969
3783
  parameters: [{ name: "optionsJson", type: { kind: "string", nullable: !0 }, description: "JSON encoded capture options" }]
3970
3784
  };
3971
- function Yc(t, e) {
3785
+ function kc(t, e) {
3972
3786
  const r = [];
3973
3787
  return r.push(
3974
- t.register(Wc, async (n, s) => {
3788
+ t.register(gc, async (n, s) => {
3975
3789
  const i = e.mediaCapture;
3976
3790
  if (!i)
3977
3791
  throw new Error("Media capture is not available in this environment");
@@ -3979,7 +3793,7 @@ function Yc(t, e) {
3979
3793
  return ((typeof n == "string" && n.trim().toLowerCase() === "screen" ? "screen" : "camera") === "screen" ? await i.video.startScreen({ userGesture: !1, options: o, constraints: o?.constraints }) : await i.video.startCamera({ userGesture: !1, options: o, constraints: o?.constraints })).captureId;
3980
3794
  })
3981
3795
  ), r.push(
3982
- t.register(Hc, async (n) => {
3796
+ t.register(Cc, async (n) => {
3983
3797
  const s = e.mediaCapture;
3984
3798
  if (!s)
3985
3799
  throw new Error("Media capture is not available in this environment");
@@ -3987,7 +3801,7 @@ function Yc(t, e) {
3987
3801
  return (await s.audio.startMic({ userGesture: !1, options: i, constraints: i?.constraints })).captureId;
3988
3802
  })
3989
3803
  ), r.push(
3990
- t.register($c, async (n) => {
3804
+ t.register(Rc, async (n) => {
3991
3805
  const s = e.mediaCapture;
3992
3806
  if (!s || typeof n != "string" || !n.trim())
3993
3807
  return !1;
@@ -3995,7 +3809,7 @@ function Yc(t, e) {
3995
3809
  return i || o;
3996
3810
  })
3997
3811
  ), r.push(
3998
- t.register(Kc, async (n) => {
3812
+ t.register(bc, async (n) => {
3999
3813
  const s = e.mediaCapture;
4000
3814
  if (!s)
4001
3815
  throw new Error("Media capture is not available in this environment");
@@ -4007,21 +3821,21 @@ function Yc(t, e) {
4007
3821
  width: i.width,
4008
3822
  height: i.height
4009
3823
  }), a = JSON.stringify({ mime: o.mime, width: o.width, height: o.height });
4010
- return Vc(a, o.data);
3824
+ return Nc(a, o.data);
4011
3825
  })
4012
3826
  ), () => {
4013
3827
  for (const n of r)
4014
3828
  n();
4015
3829
  };
4016
3830
  }
4017
- const br = () => {
3831
+ const Rr = () => {
4018
3832
  if (typeof navigator > "u")
4019
3833
  return !1;
4020
3834
  const t = navigator.userAgent, e = /iPad|iPhone|iPod/.test(t), r = t.includes("Macintosh") && typeof navigator.maxTouchPoints == "number" && navigator.maxTouchPoints > 1;
4021
3835
  return e || r;
4022
- }, jc = globalThis;
3836
+ }, Uc = globalThis;
4023
3837
  function le() {
4024
- if (typeof SharedArrayBuffer > "u" || typeof Atomics > "u" || jc.crossOriginIsolated === !1)
3838
+ if (typeof SharedArrayBuffer > "u" || typeof Atomics > "u" || Uc.crossOriginIsolated === !1)
4025
3839
  return !1;
4026
3840
  try {
4027
3841
  new SharedArrayBuffer(1);
@@ -4030,10 +3844,10 @@ function le() {
4030
3844
  }
4031
3845
  return !0;
4032
3846
  }
4033
- function Rr(t) {
3847
+ function br(t) {
4034
3848
  return typeof AudioWorkletNode != "function" ? !1 : typeof t.audioWorklet?.addModule == "function";
4035
3849
  }
4036
- function zc(t) {
3850
+ function Dc(t) {
4037
3851
  return new Worker(
4038
3852
  "" + new URL("assets/audio-playback-worker-Cwm3GaAx.js", import.meta.url).href,
4039
3853
  {
@@ -4042,7 +3856,7 @@ function zc(t) {
4042
3856
  }
4043
3857
  );
4044
3858
  }
4045
- const ae = 48e3, R = 2, kr = 1500, ot = 512, at = "playback", Xc = 120, Jc = 300, Qc = 4, qc = 200, Zc = 100, el = 8e3, tl = 10, Ur = 100, ke = 50, Dr = 128, rl = 20, nl = !0, G = 1500, sl = -20, il = -100, ol = 200, g = v("IkonAudioPlayback"), al = () => {
3859
+ const ae = 48e3, b = 2, kr = 1500, ot = 512, at = "playback", Mc = 120, Oc = 300, Lc = 4, vc = 200, Fc = 100, Pc = 8e3, Bc = 10, Ur = 100, ke = 50, Dr = 128, Gc = 20, xc = !0, x = 1500, Vc = -20, Wc = -100, Hc = 200, g = L("IkonAudioPlayback"), $c = () => {
4046
3860
  if (typeof navigator > "u" || typeof window > "u")
4047
3861
  return !1;
4048
3862
  const t = navigator.userAgent, e = /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(t), r = t.includes("Macintosh") && typeof navigator.maxTouchPoints == "number" && navigator.maxTouchPoints > 1;
@@ -4054,19 +3868,19 @@ const ae = 48e3, R = 2, kr = 1500, ot = 512, at = "playback", Xc = 120, Jc = 300
4054
3868
  function K(t) {
4055
3869
  return t instanceof Error ? `${t.name}: ${t.message}` : String(t);
4056
3870
  }
4057
- function cl(t) {
3871
+ function Kc(t) {
4058
3872
  return `
4059
3873
  // Audio buffer constants
4060
3874
  const OUTPUT_SAMPLE_RATE_HZ = ${t.outputSampleRateHz};
4061
3875
  const DEFAULT_FRAME_SAMPLES_PER_CHANNEL = Math.max(1, Math.round(OUTPUT_SAMPLE_RATE_HZ * 0.02));
4062
- const BUFFER_TARGET_MIN_MS = ${Xc};
4063
- const BUFFER_TARGET_MAX_MS = ${Jc};
4064
- const JITTER_MULTIPLIER = ${Qc};
3876
+ const BUFFER_TARGET_MIN_MS = ${Mc};
3877
+ const BUFFER_TARGET_MAX_MS = ${Oc};
3878
+ const JITTER_MULTIPLIER = ${Lc};
4065
3879
  const LOCAL_BUFFER_MAX_MS = ${kr};
4066
- const CONTROL_PERIOD_MS = ${qc};
4067
- const UNDERRUN_JUMP_MS = ${Zc};
4068
- const STABLE_TIME_TO_DECREASE_MS = ${el};
4069
- const DECREASE_STEP_MS = ${tl};
3880
+ const CONTROL_PERIOD_MS = ${vc};
3881
+ const UNDERRUN_JUMP_MS = ${Fc};
3882
+ const STABLE_TIME_TO_DECREASE_MS = ${Pc};
3883
+ const DECREASE_STEP_MS = ${Bc};
4070
3884
  const DEFAULT_STATS_INTERVAL_SAMPLES = OUTPUT_SAMPLE_RATE_HZ;
4071
3885
 
4072
3886
  // Pre-computed reciprocals for division-free calculations
@@ -4085,7 +3899,7 @@ const FADE_OUT_INCREMENT = 1.0 / FADE_OUT_DURATION_SAMPLES;
4085
3899
  const RENDER_QUANTUM_SIZE = ${Dr};
4086
3900
 
4087
3901
  // Buffer reduction crossfade constants (align to quantum boundary to avoid partial quanta)
4088
- const BUFFER_REDUCTION_CROSSFADE_MS = ${rl};
3902
+ const BUFFER_REDUCTION_CROSSFADE_MS = ${Gc};
4089
3903
  const BUFFER_REDUCTION_CROSSFADE_SAMPLES_RAW = Math.round(OUTPUT_SAMPLE_RATE_HZ * BUFFER_REDUCTION_CROSSFADE_MS / 1000);
4090
3904
  const BUFFER_REDUCTION_CROSSFADE_SAMPLES = Math.ceil(BUFFER_REDUCTION_CROSSFADE_SAMPLES_RAW / RENDER_QUANTUM_SIZE) * RENDER_QUANTUM_SIZE;
4091
3905
 
@@ -4296,7 +4110,7 @@ class IkonAudioPlayerProcessor extends AudioWorkletProcessor {
4296
4110
  this.statsIntervalSamples = Math.max(1, Math.round((OUTPUT_SAMPLE_RATE_HZ * statusIntervalMs) / 1000));
4297
4111
 
4298
4112
  // Normalization config (hardcoded)
4299
- this.normalizationEnabled = ${nl};
4113
+ this.normalizationEnabled = ${xc};
4300
4114
 
4301
4115
  // Stream states for audio buffer
4302
4116
  this.streams = new Map();
@@ -4972,7 +4786,7 @@ class je {
4972
4786
  config;
4973
4787
  enabled = !1;
4974
4788
  stateUnsubscribe = null;
4975
- isMobile = al();
4789
+ isMobile = $c();
4976
4790
  boundVisibilityChange = null;
4977
4791
  boundPageHide = null;
4978
4792
  unlockHandler = null;
@@ -5083,7 +4897,7 @@ class je {
5083
4897
  * (e.g., button click/release) to ensure the AudioContext can be recreated.
5084
4898
  */
5085
4899
  requestRecovery() {
5086
- if (this.enabled && br() && this.audioContext) {
4900
+ if (this.enabled && Rr() && this.audioContext) {
5087
4901
  this.stopAudioGraph();
5088
4902
  try {
5089
4903
  const e = new AudioContext({
@@ -5177,31 +4991,31 @@ class je {
5177
4991
  const e = this.audioContext;
5178
4992
  if (!e)
5179
4993
  return null;
5180
- const r = e.currentTime, n = e.sampleRate, s = R;
4994
+ const r = e.currentTime, n = e.sampleRate, s = b;
5181
4995
  for (const i of this.visemeBuffers.values()) {
5182
4996
  if (!i.timingEstablished || i.count === 0)
5183
4997
  continue;
5184
4998
  const o = r - i.playbackStartContextTime;
5185
4999
  if (o < 0)
5186
5000
  continue;
5187
- const a = o * n * s, c = i.frames, u = i.count, d = (i.head - u + G) % G;
5188
- let h = null, f = null;
5001
+ const a = o * n * s, c = i.frames, u = i.count, d = (i.head - u + x) % x;
5002
+ let h = null, E = null;
5189
5003
  for (let l = 0; l < u; l++) {
5190
- const N = (d + l) % G, S = c[N], L = S.samplePosition + Math.max(S.frameSamples, 1);
5191
- if (S.samplePosition <= a && (h = S), L > a && !f && (f = S, S.samplePosition <= a))
5004
+ const N = (d + l) % x, w = c[N], v = w.samplePosition + Math.max(w.frameSamples, 1);
5005
+ if (w.samplePosition <= a && (h = w), v > a && !E && (E = w, w.samplePosition <= a))
5192
5006
  break;
5193
5007
  }
5194
5008
  if (!h)
5195
5009
  continue;
5196
- const E = h.samplePosition + Math.max(h.frameSamples, 1);
5197
- if (a > E && !f)
5010
+ const p = h.samplePosition + Math.max(h.frameSamples, 1);
5011
+ if (a > p && !E)
5198
5012
  continue;
5199
- if (!f)
5013
+ if (!E)
5200
5014
  return this._visemeResult.mouthOpenY = h.mouthOpenY, this._visemeResult.mouthForm = h.mouthForm, this._visemeResult;
5201
- const I = h.samplePosition, w = Math.max(h.frameSamples, 1), _ = I + w;
5202
- if (h !== f && f.samplePosition > h.samplePosition && _ > I) {
5015
+ const I = h.samplePosition, T = Math.max(h.frameSamples, 1), _ = I + T;
5016
+ if (h !== E && E.samplePosition > h.samplePosition && _ > I) {
5203
5017
  const l = Math.min(1, Math.max(0, (a - I) / (_ - I)));
5204
- this._visemeResult.mouthOpenY = h.mouthOpenY + l * (f.mouthOpenY - h.mouthOpenY), this._visemeResult.mouthForm = h.mouthForm + l * (f.mouthForm - h.mouthForm);
5018
+ this._visemeResult.mouthOpenY = h.mouthOpenY + l * (E.mouthOpenY - h.mouthOpenY), this._visemeResult.mouthForm = h.mouthForm + l * (E.mouthForm - h.mouthForm);
5205
5019
  } else
5206
5020
  this._visemeResult.mouthOpenY = h.mouthOpenY, this._visemeResult.mouthForm = h.mouthForm;
5207
5021
  return this._visemeResult;
@@ -5232,21 +5046,21 @@ class je {
5232
5046
  } catch (u) {
5233
5047
  try {
5234
5048
  this.audioContext = new AudioContext({ latencyHint: c });
5235
- } catch (p) {
5049
+ } catch (f) {
5236
5050
  try {
5237
5051
  this.audioContext = new AudioContext();
5238
5052
  } catch (d) {
5239
5053
  g.warn(`Failed to create AudioContext: ${K(d)}`), this.audioContext = null;
5240
5054
  return;
5241
5055
  }
5242
- g.debug(`AudioContext latencyHint unsupported: ${K(p)}`);
5056
+ g.debug(`AudioContext latencyHint unsupported: ${K(f)}`);
5243
5057
  }
5244
5058
  g.debug(`AudioContext sample rate request unsupported: ${K(u)}`);
5245
5059
  }
5246
5060
  this.outputSampleRateHz = this.audioContext.sampleRate || ae, this.outputSampleRateHz !== a && g.debug(`AudioContext running at ${this.outputSampleRateHz}Hz (requested ${a}Hz)`), this.attachAudioContextHealthHandlers(this.audioContext);
5247
5061
  }
5248
5062
  const n = this.audioContext, s = this.resolveDiagnosticsConfig();
5249
- if ((this.config.performance?.preferAudioWorklet ?? !0) && Rr(n)) {
5063
+ if ((this.config.performance?.preferAudioWorklet ?? !0) && br(n)) {
5250
5064
  await this.ensureAudioWorklet(n, s, e, r);
5251
5065
  return;
5252
5066
  }
@@ -5296,9 +5110,9 @@ class je {
5296
5110
  setupMediaSession() {
5297
5111
  if (!(typeof document > "u")) {
5298
5112
  if (!this.silentAudioElement) {
5299
- const s = new ArrayBuffer(882044), i = new DataView(s), o = (u, p) => {
5300
- for (let d = 0; d < p.length; d++)
5301
- i.setUint8(u + d, p.charCodeAt(d));
5113
+ const s = new ArrayBuffer(882044), i = new DataView(s), o = (u, f) => {
5114
+ for (let d = 0; d < f.length; d++)
5115
+ i.setUint8(u + d, f.charCodeAt(d));
5302
5116
  };
5303
5117
  o(0, "RIFF"), i.setUint32(4, 36 + 441e3 * 2, !0), o(8, "WAVE"), o(12, "fmt "), i.setUint32(16, 16, !0), i.setUint16(20, 1, !0), i.setUint16(22, 1, !0), i.setUint32(24, 44100, !0), i.setUint32(28, 44100 * 2, !0), i.setUint16(32, 2, !0), i.setUint16(34, 16, !0), o(36, "data"), i.setUint32(40, 441e3 * 2, !0);
5304
5118
  const a = new Blob([s], { type: "audio/wav" }), c = URL.createObjectURL(a);
@@ -5399,17 +5213,17 @@ class je {
5399
5213
  await this.resumeWithTimeout(e), this.getContextState(e) === "running" && this.removeUnlockHandler();
5400
5214
  } catch {
5401
5215
  }
5402
- const i = `${this.outputSampleRateHz}_${R}`;
5216
+ const i = `${this.outputSampleRateHz}_${b}`;
5403
5217
  if (!this.workletModuleUrl || this.workletModuleKey !== i) {
5404
5218
  if (this.workletModuleUrl)
5405
5219
  try {
5406
5220
  URL.revokeObjectURL(this.workletModuleUrl);
5407
5221
  } catch {
5408
5222
  }
5409
- this.workletModuleKey = i, this.workletReady = null, this.workletModuleUrl = URL.createObjectURL(new Blob([cl({ outputSampleRateHz: this.outputSampleRateHz, outputChannels: R })], { type: "text/javascript" }));
5223
+ this.workletModuleKey = i, this.workletReady = null, this.workletModuleUrl = URL.createObjectURL(new Blob([Kc({ outputSampleRateHz: this.outputSampleRateHz, outputChannels: b })], { type: "text/javascript" }));
5410
5224
  }
5411
- this.workletReady || (this.workletReady = e.audioWorklet.addModule(this.workletModuleUrl).catch((p) => {
5412
- throw g.warn(`Failed to load AudioWorklet module, falling back: ${K(p)}`), p;
5225
+ this.workletReady || (this.workletReady = e.audioWorklet.addModule(this.workletModuleUrl).catch((f) => {
5226
+ throw g.warn(`Failed to load AudioWorklet module, falling back: ${K(f)}`), f;
5413
5227
  }));
5414
5228
  try {
5415
5229
  await this.workletReady;
@@ -5422,14 +5236,14 @@ class je {
5422
5236
  this.audioWorkletNode = new AudioWorkletNode(e, "ikon-audio-player", {
5423
5237
  numberOfInputs: 0,
5424
5238
  numberOfOutputs: 1,
5425
- outputChannelCount: [R],
5239
+ outputChannelCount: [b],
5426
5240
  processorOptions: {
5427
5241
  outputAudioConfig: { diagnostics: r },
5428
5242
  useSharedArrayBuffer: a,
5429
- outputChannels: R
5243
+ outputChannels: b
5430
5244
  }
5431
- }), this.audioWorkletNode.port.onmessage = (p) => {
5432
- const d = p.data;
5245
+ }), this.audioWorkletNode.port.onmessage = (f) => {
5246
+ const d = f.data;
5433
5247
  if (!(!d || typeof d != "object")) {
5434
5248
  if (d.type === "stats") {
5435
5249
  if (!r.enabled)
@@ -5446,8 +5260,8 @@ class je {
5446
5260
  }
5447
5261
  }, this.audioWorkletNode.connect(e.destination), this.stopScriptProcessorDiagnostics(), await this.resumeAudioContextIfPossible(e, n, s), this.rebindWorkerTransportIfNeeded();
5448
5262
  const c = this.pendingWorkletMessages.splice(0);
5449
- for (const p of c)
5450
- this.postToWorklet(p);
5263
+ for (const f of c)
5264
+ this.postToWorklet(f);
5451
5265
  const u = this.getContextState(e) === "running";
5452
5266
  this.notifyPlaybackActive(u);
5453
5267
  }
@@ -5455,59 +5269,59 @@ class je {
5455
5269
  if (this.scriptProcessorNode)
5456
5270
  return;
5457
5271
  this.stopAudioWorklet(), this.pendingWorkletMessages = [];
5458
- const n = 1024, s = new Float32Array(n * R), i = Math.round(this.outputSampleRateHz * Ur / 1e3), o = Math.round(this.outputSampleRateHz * ke / 1e3), a = 1 / i, c = 1 / o, u = new Array(R), p = [], d = e.createScriptProcessor(n, 0, R);
5272
+ const n = 1024, s = new Float32Array(n * b), i = Math.round(this.outputSampleRateHz * Ur / 1e3), o = Math.round(this.outputSampleRateHz * ke / 1e3), a = 1 / i, c = 1 / o, u = new Array(b), f = [], d = e.createScriptProcessor(n, 0, b);
5459
5273
  d.onaudioprocess = (h) => {
5460
- const f = h.outputBuffer, E = f.numberOfChannels, I = f.length;
5461
- for (let _ = 0; _ < E; _++) {
5462
- const l = f.getChannelData(_);
5274
+ const E = h.outputBuffer, p = E.numberOfChannels, I = E.length;
5275
+ for (let _ = 0; _ < p; _++) {
5276
+ const l = E.getChannelData(_);
5463
5277
  l.fill(0), u[_] = l;
5464
5278
  }
5465
- let w = 0;
5466
- p.length = 0;
5279
+ let T = 0;
5280
+ f.length = 0;
5467
5281
  for (const [_, l] of this.fallbackQueues.entries()) {
5468
- l.totalSamples > 0 && (w += 1), (l.ending || l.inputDrained) && l.fadeDirection !== "out" && l.totalSamples / E * 1e3 / this.outputSampleRateHz <= ke * 2 && (l.fadeDirection = "out"), this.readFromFallbackQueue(l, s), (l.totalSamples > 0 || !l.hasLastOut) && ((!l.lastOut || l.lastOut.length !== s.length) && (l.lastOut = new Float32Array(s.length)), l.lastOut.set(s), l.hasLastOut = !0);
5469
- for (let S = 0; S < I; S++) {
5282
+ l.totalSamples > 0 && (T += 1), (l.ending || l.inputDrained) && l.fadeDirection !== "out" && l.totalSamples / p * 1e3 / this.outputSampleRateHz <= ke * 2 && (l.fadeDirection = "out"), this.readFromFallbackQueue(l, s), (l.totalSamples > 0 || !l.hasLastOut) && ((!l.lastOut || l.lastOut.length !== s.length) && (l.lastOut = new Float32Array(s.length)), l.lastOut.set(s), l.hasLastOut = !0);
5283
+ for (let w = 0; w < I; w++) {
5470
5284
  l.fadeDirection === "in" ? (l.fadeGain = Math.min(1, l.fadeGain + a), l.fadeGain >= 1 && (l.fadeDirection = "none")) : l.fadeDirection === "out" && (l.fadeGain = Math.max(0, l.fadeGain - c), l.fadeGain <= 0 && (l.fadeDirection = "none"));
5471
- for (let L = 0; L < E; L++) {
5472
- const M = s[S * E + L];
5473
- u[L][S] += M * l.fadeGain;
5285
+ for (let v = 0; v < p; v++) {
5286
+ const M = s[w * p + v];
5287
+ u[v][w] += M * l.fadeGain;
5474
5288
  }
5475
5289
  }
5476
5290
  const N = l.ending || l.inputDrained;
5477
5291
  if (N && l.totalSamples <= 0) {
5478
5292
  if (l.fadeDirection === "out" && l.fadeGain > 1e-3) {
5479
- for (let S = 0; S < I; S++)
5293
+ for (let w = 0; w < I; w++)
5480
5294
  if (l.fadeGain = Math.max(0, l.fadeGain - c), l.fadeGain <= 1e-3) {
5481
5295
  l.fadeGain = 0, l.fadeDirection = "none";
5482
5296
  break;
5483
5297
  }
5484
5298
  }
5485
- l.fadeGain <= 1e-3 && l.ending && p.push(_);
5299
+ l.fadeGain <= 1e-3 && l.ending && f.push(_);
5486
5300
  } else if (!N && l.totalSamples <= 0 && l.hasLastOut && l.lastOut && l.fadeGain > 1e-3) {
5487
5301
  l.fadeDirection = "out", l.underrunPending = !0;
5488
- const S = l.lastOut, L = I - 1;
5302
+ const w = l.lastOut, v = I - 1;
5489
5303
  for (let M = 0; M < I; M++) {
5490
5304
  l.fadeGain = Math.max(0, l.fadeGain - c), l.fadeGain <= 0 && (l.fadeDirection = "none");
5491
- for (let $ = 0; $ < E; $++) {
5492
- const xr = S[L * E + $];
5493
- u[$][M] += xr * l.fadeGain;
5305
+ for (let $ = 0; $ < p; $++) {
5306
+ const Gr = w[v * p + $];
5307
+ u[$][M] += Gr * l.fadeGain;
5494
5308
  }
5495
5309
  }
5496
5310
  }
5497
5311
  }
5498
- if (p.length > 0) {
5499
- for (const _ of p)
5312
+ if (f.length > 0) {
5313
+ for (const _ of f)
5500
5314
  this.fallbackQueues.delete(_), this.activeStreams.delete(_);
5501
5315
  this.activeStreams.size === 0 && this.removeUnlockHandler();
5502
5316
  }
5503
- if (w > 1) {
5504
- const _ = 1 / Math.sqrt(w);
5317
+ if (T > 1) {
5318
+ const _ = 1 / Math.sqrt(T);
5505
5319
  for (let l = 0; l < I; l++)
5506
- for (let N = 0; N < E; N++)
5320
+ for (let N = 0; N < p; N++)
5507
5321
  u[N][l] *= _;
5508
5322
  }
5509
5323
  for (let _ = 0; _ < I; _++)
5510
- for (let l = 0; l < E; l++) {
5324
+ for (let l = 0; l < p; l++) {
5511
5325
  const N = u[l][_];
5512
5326
  u[l][_] = N > 1 ? 1 : N < -1 ? -1 : N;
5513
5327
  }
@@ -5531,7 +5345,7 @@ class je {
5531
5345
  e.totalSamples < 0 && (e.totalSamples = 0), this.compactFallbackQueue(e);
5532
5346
  }
5533
5347
  trimFallbackQueue(e) {
5534
- const r = Math.floor(this.outputSampleRateHz * R * kr / 1e3), n = e.totalSamples - r;
5348
+ const r = Math.floor(this.outputSampleRateHz * b * kr / 1e3), n = e.totalSamples - r;
5535
5349
  n <= 0 || this.skipFromFallbackQueue(e, n);
5536
5350
  }
5537
5351
  stopScriptProcessorDiagnostics() {
@@ -5550,7 +5364,7 @@ class je {
5550
5364
  for (const [n, s] of this.fallbackQueues.entries()) {
5551
5365
  if (s.totalSamples <= 0)
5552
5366
  continue;
5553
- const o = s.totalSamples / R * 1e3 / this.outputSampleRateHz;
5367
+ const o = s.totalSamples / b * 1e3 / this.outputSampleRateHz;
5554
5368
  g.debug(`[Audio] stream=${n.substring(0, 8)} buffer=${o.toFixed(0)}ms renderer=ScriptProcessor`);
5555
5369
  }
5556
5370
  }, r);
@@ -5633,7 +5447,7 @@ class je {
5633
5447
  type: "rebind",
5634
5448
  transport: s,
5635
5449
  outputSampleRate: this.outputSampleRateHz,
5636
- outputChannels: R
5450
+ outputChannels: b
5637
5451
  });
5638
5452
  } catch {
5639
5453
  }
@@ -5645,39 +5459,39 @@ class je {
5645
5459
  g.warn("Audio decode worker unavailable (Workers not supported)");
5646
5460
  return;
5647
5461
  }
5648
- const e = this.client.createProtocolMessagePort({ opcodeGroupsMask: T.GROUP_AUDIO });
5462
+ const e = this.client.createProtocolMessagePort({ opcodeGroupsMask: S.GROUP_AUDIO });
5649
5463
  if (!e) {
5650
5464
  this.enabled && g.debug("Audio pipeline waiting for client connection");
5651
5465
  return;
5652
5466
  }
5653
5467
  this.protocolPort = e;
5654
5468
  try {
5655
- this.audioWorker = new zc();
5469
+ this.audioWorker = new Dc();
5656
5470
  } catch (d) {
5657
5471
  g.warn(`Failed to create audio worker: ${K(d)}`), this.protocolPort.close(), this.protocolPort = null;
5658
5472
  return;
5659
5473
  }
5660
5474
  const r = this.audioWorker;
5661
5475
  r.addEventListener("message", (d) => this.onAudioWorkerMessage(d.data)), r.addEventListener("error", (d) => {
5662
- const h = [d.message, d.filename, d.lineno, d.colno].filter((f) => f != null && String(f).length > 0);
5476
+ const h = [d.message, d.filename, d.lineno, d.colno].filter((E) => E != null && String(E).length > 0);
5663
5477
  g.error(`Audio worker failed: ${h.join(" ")}`.trim());
5664
5478
  });
5665
5479
  const s = (this.config.performance?.preferSharedArrayBuffer ?? !0) && !!this.audioWorkletNode && le(), i = this.config.performance?.preferWebCodecs ?? !0, o = {
5666
5480
  type: "configure",
5667
5481
  transport: s ? "sab" : "pcm",
5668
5482
  outputSampleRate: this.outputSampleRateHz,
5669
- outputChannels: R,
5483
+ outputChannels: b,
5670
5484
  preferWebCodecs: i
5671
5485
  };
5672
5486
  r.postMessage(o), r.postMessage({ type: "attachProtocolPort", port: e.port }, [e.port]);
5673
- const a = this.audioWorkletNode ? "AudioWorklet" : "ScriptProcessor", c = s ? "SharedArrayBuffer" : "MessagePort", p = i && typeof AudioDecoder < "u" ? "WebCodecs" : "WASM Opus";
5674
- g.debug(`Audio initialized: renderer=${a}, transport=${c}, decoder=${p}, output=${this.outputSampleRateHz}Hz/${R}ch`);
5487
+ const a = this.audioWorkletNode ? "AudioWorklet" : "ScriptProcessor", c = s ? "SharedArrayBuffer" : "MessagePort", f = i && typeof AudioDecoder < "u" ? "WebCodecs" : "WASM Opus";
5488
+ g.debug(`Audio initialized: renderer=${a}, transport=${c}, decoder=${f}, output=${this.outputSampleRateHz}Hz/${b}ch`);
5675
5489
  }
5676
5490
  onAudioWorkerMessage(e) {
5677
5491
  if (e.type === "streamBegin") {
5678
5492
  if (this.activeStreams.add(e.streamId), e.shapeSets && e.shapeSets.length > 0 && (this.streamShapeSets.set(e.streamId, e.shapeSets), this.currentShapeSetValues.set(e.streamId, /* @__PURE__ */ new Map()), e.shapeSets.some((s) => s.Name === "Viseme"))) {
5679
- const s = new Array(G);
5680
- for (let i = 0; i < G; i++)
5493
+ const s = new Array(x);
5494
+ for (let i = 0; i < x; i++)
5681
5495
  s[i] = { samplePosition: 0, frameSamples: 0, mouthOpenY: 0, mouthForm: 0 };
5682
5496
  this.visemeBuffers.set(e.streamId, {
5683
5497
  frames: s,
@@ -5736,14 +5550,14 @@ class je {
5736
5550
  s.epochTimestampSamples = e.timestampInterleavedSamples;
5737
5551
  const c = this.audioContext;
5738
5552
  if (c) {
5739
- const u = (c.outputLatency ?? 0) + (c.baseLatency ?? 0), p = sl + u * 1e3, d = Math.min(ol, Math.max(il, p));
5553
+ const u = (c.outputLatency ?? 0) + (c.baseLatency ?? 0), f = Vc + u * 1e3, d = Math.min(Hc, Math.max(Wc, f));
5740
5554
  s.playbackStartContextTime = c.currentTime + d / 1e3;
5741
5555
  }
5742
5556
  s.timingEstablished = !0;
5743
5557
  }
5744
5558
  if (e.frameSizeInterleavedSamples > 0) {
5745
5559
  const c = s.frames[s.head];
5746
- c.samplePosition = e.timestampInterleavedSamples - s.epochTimestampSamples, c.frameSamples = e.frameSizeInterleavedSamples, c.mouthOpenY = a.Values[0], c.mouthForm = a.Values[1], s.head = (s.head + 1) % G, s.count < G && s.count++;
5560
+ c.samplePosition = e.timestampInterleavedSamples - s.epochTimestampSamples, c.frameSamples = e.frameSizeInterleavedSamples, c.mouthOpenY = a.Values[0], c.mouthForm = a.Values[1], s.head = (s.head + 1) % x, s.count < x && s.count++;
5747
5561
  }
5748
5562
  }
5749
5563
  }
@@ -5859,7 +5673,7 @@ class je {
5859
5673
  }));
5860
5674
  }
5861
5675
  }
5862
- function ll(t) {
5676
+ function Yc(t) {
5863
5677
  return new Worker(
5864
5678
  "" + new URL("assets/video-playback-worker-Bfm3r5xW.js", import.meta.url).href,
5865
5679
  {
@@ -5868,11 +5682,11 @@ function ll(t) {
5868
5682
  }
5869
5683
  );
5870
5684
  }
5871
- const V = v("IkonVideoPlayback");
5685
+ const V = L("IkonVideoPlayback");
5872
5686
  function we(t) {
5873
5687
  return t instanceof Error ? `${t.name}: ${t.message}` : String(t);
5874
5688
  }
5875
- class ul {
5689
+ class jc {
5876
5690
  client;
5877
5691
  config;
5878
5692
  enabled = !0;
@@ -5947,7 +5761,7 @@ class ul {
5947
5761
  }
5948
5762
  let e;
5949
5763
  try {
5950
- e = new ll();
5764
+ e = new Yc();
5951
5765
  } catch (r) {
5952
5766
  V.warn(`Failed to create video worker: ${we(r)}`);
5953
5767
  return;
@@ -6036,7 +5850,7 @@ class ul {
6036
5850
  const r = this.parseStreamId(e);
6037
5851
  if (!r)
6038
5852
  return;
6039
- const n = Sa(_a(), this.client.sessionId ?? 0, {
5853
+ const n = wa(Ta(), this.client.sessionId ?? 0, {
6040
5854
  trackId: r.trackId,
6041
5855
  targetIds: [r.senderId]
6042
5856
  });
@@ -6061,7 +5875,7 @@ class ul {
6061
5875
  ensureProtocolPort() {
6062
5876
  if (!this.worker || this.protocolPort)
6063
5877
  return;
6064
- const e = this.client.createProtocolMessagePort({ opcodeGroupsMask: T.GROUP_VIDEO });
5878
+ const e = this.client.createProtocolMessagePort({ opcodeGroupsMask: S.GROUP_VIDEO });
6065
5879
  if (e) {
6066
5880
  this.protocolPort = e;
6067
5881
  try {
@@ -6096,11 +5910,11 @@ class ul {
6096
5910
  }));
6097
5911
  }
6098
5912
  }
6099
- class hl {
5913
+ class zc {
6100
5914
  audio;
6101
5915
  video;
6102
5916
  constructor(e, r) {
6103
- this.audio = new je(e, r?.audio), this.video = new ul(e, r?.video), r?.mediaSession && this.audio.setMediaSession(r.mediaSession);
5917
+ this.audio = new je(e, r?.audio), this.video = new jc(e, r?.video), r?.mediaSession && this.audio.setMediaSession(r.mediaSession);
6104
5918
  }
6105
5919
  /**
6106
5920
  * Releases media resources (workers, audio graph, decoders).
@@ -6111,7 +5925,7 @@ class hl {
6111
5925
  this.audio.dispose(), this.video.dispose();
6112
5926
  }
6113
5927
  }
6114
- class dl {
5928
+ class Xc {
6115
5929
  static getStorageForCapacity(e, r) {
6116
5930
  const n = Int32Array.BYTES_PER_ELEMENT * 2, s = r.BYTES_PER_ELEMENT * e;
6117
5931
  return new SharedArrayBuffer(n + s);
@@ -6165,7 +5979,7 @@ class dl {
6165
5979
  return n = (n + r) % this.capacity, Atomics.store(this.readWrite, 0, n), r;
6166
5980
  }
6167
5981
  }
6168
- function fl(t) {
5982
+ function Jc(t) {
6169
5983
  return new Worker(
6170
5984
  "" + new URL("assets/audio-capture-worker-kpORDYGU.js", import.meta.url).href,
6171
5985
  {
@@ -6174,12 +5988,12 @@ function fl(t) {
6174
5988
  }
6175
5989
  );
6176
5990
  }
6177
- const pl = v("IkonAudioCapture");
6178
- function El() {
5991
+ const Qc = L("IkonAudioCapture");
5992
+ function Zc() {
6179
5993
  const t = globalThis.crypto;
6180
5994
  return t?.randomUUID ? t.randomUUID() : `cap_${Date.now()}_${Math.floor(Math.random() * 1e9)}`;
6181
5995
  }
6182
- function ml() {
5996
+ function qc() {
6183
5997
  return `
6184
5998
  class RingBuffer {
6185
5999
  static getStorageForCapacity(capacity, type) {
@@ -6308,7 +6122,7 @@ class IkonAudioCaptureProcessor extends AudioWorkletProcessor {
6308
6122
  registerProcessor('ikon-audio-capture', IkonAudioCaptureProcessor);
6309
6123
  `;
6310
6124
  }
6311
- class Il {
6125
+ class el {
6312
6126
  constructor(e, r) {
6313
6127
  this.client = e, this.config = r ?? {};
6314
6128
  }
@@ -6328,12 +6142,12 @@ class Il {
6328
6142
  ensureWorker() {
6329
6143
  if (this.worker)
6330
6144
  return this.worker;
6331
- const e = new fl();
6145
+ const e = new Jc();
6332
6146
  return this.worker = e, e.addEventListener("message", (r) => {
6333
6147
  const n = r.data;
6334
6148
  if (n?.type === "error") {
6335
6149
  const s = n.error;
6336
- pl.warn(`Audio capture worker error: ${s?.name ?? "Error"} ${s?.message ?? ""}`);
6150
+ Qc.warn(`Audio capture worker error: ${s?.name ?? "Error"} ${s?.message ?? ""}`);
6337
6151
  }
6338
6152
  }), e;
6339
6153
  }
@@ -6342,7 +6156,7 @@ class Il {
6342
6156
  throw new Error("Cannot start audio capture before client is connected");
6343
6157
  const r = this.ensureWorker();
6344
6158
  if (!this.sendPort) {
6345
- const n = this.client.createProtocolSendPort({ opcodeGroupsMask: T.GROUP_AUDIO });
6159
+ const n = this.client.createProtocolSendPort({ opcodeGroupsMask: S.GROUP_AUDIO });
6346
6160
  if (!n)
6347
6161
  throw new Error("Failed to create protocol send port for audio capture");
6348
6162
  this.sendPort = n, r.postMessage({ type: "attachSendPort", port: n.port }, [n.port]);
@@ -6369,9 +6183,9 @@ class Il {
6369
6183
  return await navigator.mediaDevices.getUserMedia({ audio: n });
6370
6184
  }
6371
6185
  async ensureWorklet(e) {
6372
- if (!Rr(e))
6186
+ if (!br(e))
6373
6187
  throw new Error("AudioWorklet is not supported in this browser");
6374
- this.workletModuleUrl || (this.workletModuleUrl = URL.createObjectURL(new Blob([ml()], { type: "text/javascript" }))), (!this.workletReady || this.workletContext !== e) && (this.workletContext = e, this.workletReady = e.audioWorklet.addModule(this.workletModuleUrl));
6188
+ this.workletModuleUrl || (this.workletModuleUrl = URL.createObjectURL(new Blob([qc()], { type: "text/javascript" }))), (!this.workletReady || this.workletContext !== e) && (this.workletContext = e, this.workletReady = e.audioWorklet.addModule(this.workletModuleUrl));
6375
6189
  try {
6376
6190
  await this.workletReady;
6377
6191
  } catch (r) {
@@ -6387,16 +6201,16 @@ class Il {
6387
6201
  if (!i)
6388
6202
  throw s.getTracks().forEach((_) => _.stop()), new Error("No audio track available");
6389
6203
  await this.ensureWorklet(n);
6390
- const o = El(), a = this.allocateTrackId(), c = n.createMediaStreamSource(s), u = n.createGain();
6204
+ const o = Zc(), a = this.allocateTrackId(), c = n.createMediaStreamSource(s), u = n.createGain();
6391
6205
  u.gain.value = 0, u.connect(n.destination);
6392
6206
  const h = le() ? "sab" : "pcm";
6393
- let f;
6207
+ let E;
6394
6208
  if (h === "sab") {
6395
6209
  const _ = Math.floor(n.sampleRate * 2);
6396
- f = dl.getStorageForCapacity(_, Float32Array);
6210
+ E = Xc.getStorageForCapacity(_, Float32Array);
6397
6211
  }
6398
- const E = this.ensureWorker();
6399
- E.postMessage({
6212
+ const p = this.ensureWorker();
6213
+ p.postMessage({
6400
6214
  type: "start",
6401
6215
  captureId: o,
6402
6216
  senderId: r,
@@ -6408,21 +6222,21 @@ class Il {
6408
6222
  preferWebCodecs: this.config.performance?.preferWebCodecs
6409
6223
  },
6410
6224
  transport: h,
6411
- sharedArrayBuffer: f
6225
+ sharedArrayBuffer: E
6412
6226
  }), await new Promise((_, l) => {
6413
6227
  const N = setTimeout(() => {
6414
- E.removeEventListener("message", S), l(new Error("Audio capture worker start timeout"));
6415
- }, 1e4), S = (L) => {
6416
- const M = L.data;
6228
+ p.removeEventListener("message", w), l(new Error("Audio capture worker start timeout"));
6229
+ }, 1e4), w = (v) => {
6230
+ const M = v.data;
6417
6231
  if (M?.type === "started" && M.captureId === o)
6418
- clearTimeout(N), E.removeEventListener("message", S), _();
6232
+ clearTimeout(N), p.removeEventListener("message", w), _();
6419
6233
  else if (M?.type === "error" && M.captureId === o) {
6420
- clearTimeout(N), E.removeEventListener("message", S);
6234
+ clearTimeout(N), p.removeEventListener("message", w);
6421
6235
  const $ = M.error;
6422
6236
  l(new Error($?.message ?? "Audio capture failed to start"));
6423
6237
  }
6424
6238
  };
6425
- E.addEventListener("message", S);
6239
+ p.addEventListener("message", w);
6426
6240
  });
6427
6241
  const I = new AudioWorkletNode(n, "ikon-audio-capture", {
6428
6242
  numberOfInputs: 1,
@@ -6431,17 +6245,17 @@ class Il {
6431
6245
  processorOptions: {
6432
6246
  transport: h,
6433
6247
  channels: 1,
6434
- sharedArrayBuffer: f
6248
+ sharedArrayBuffer: E
6435
6249
  }
6436
6250
  });
6437
6251
  c.connect(I), I.connect(u), h === "pcm" && (I.port.onmessage = (_) => {
6438
6252
  const l = _.data;
6439
6253
  if (!(!l || typeof l != "object") && l.type === "pcm" && l.pcm instanceof Float32Array) {
6440
6254
  const N = l.pcm;
6441
- E.postMessage({ type: "pcm", captureId: o, pcm: N }, [N.buffer]);
6255
+ p.postMessage({ type: "pcm", captureId: o, pcm: N }, [N.buffer]);
6442
6256
  }
6443
6257
  });
6444
- const w = {
6258
+ const T = {
6445
6259
  captureId: o,
6446
6260
  trackId: a,
6447
6261
  stream: s,
@@ -6452,14 +6266,14 @@ class Il {
6452
6266
  gain: u,
6453
6267
  stopped: !1,
6454
6268
  startSegment: () => {
6455
- w.stopped || E.postMessage({ type: "startSegment", captureId: o });
6269
+ T.stopped || p.postMessage({ type: "startSegment", captureId: o });
6456
6270
  },
6457
6271
  endSegment: () => {
6458
- w.stopped || (E.postMessage({ type: "endSegment", captureId: o }), br() && w.stop());
6272
+ T.stopped || (p.postMessage({ type: "endSegment", captureId: o }), Rr() && T.stop());
6459
6273
  },
6460
6274
  stop: async () => {
6461
- if (!w.stopped) {
6462
- w.stopped = !0, this.captures.delete(o);
6275
+ if (!T.stopped) {
6276
+ T.stopped = !0, this.captures.delete(o);
6463
6277
  try {
6464
6278
  c.disconnect();
6465
6279
  } catch {
@@ -6476,20 +6290,20 @@ class Il {
6476
6290
  s.getTracks().forEach((_) => _.stop());
6477
6291
  } catch {
6478
6292
  }
6479
- E.postMessage({ type: "stop", captureId: o });
6293
+ p.postMessage({ type: "stop", captureId: o });
6480
6294
  }
6481
6295
  }
6482
6296
  };
6483
6297
  return i.addEventListener("ended", () => {
6484
- w.stop();
6485
- }), this.captures.set(o, w), {
6298
+ T.stop();
6299
+ }), this.captures.set(o, T), {
6486
6300
  captureId: o,
6487
6301
  get isActive() {
6488
- return !w.stopped;
6302
+ return !T.stopped;
6489
6303
  },
6490
- startSegment: w.startSegment,
6491
- endSegment: w.endSegment,
6492
- stop: w.stop
6304
+ startSegment: T.startSegment,
6305
+ endSegment: T.endSegment,
6306
+ stop: T.stop
6493
6307
  };
6494
6308
  }
6495
6309
  async stop(e) {
@@ -6534,9 +6348,9 @@ class Il {
6534
6348
  }
6535
6349
  }
6536
6350
  }
6537
- const Mr = 1280, Or = 720, _l = 30, vr = "image/jpeg", Tl = 0.92;
6538
- async function Sl(t, e) {
6539
- const r = e.mime ?? vr, n = e.quality ?? Tl;
6351
+ const Mr = 1280, Or = 720, tl = 30, Lr = "image/jpeg", rl = 0.92;
6352
+ async function nl(t, e) {
6353
+ const r = e.mime ?? Lr, n = e.quality ?? rl;
6540
6354
  if (typeof OffscreenCanvas < "u" && t instanceof OffscreenCanvas)
6541
6355
  try {
6542
6356
  return await t.convertToBlob({ type: r, quality: n });
@@ -6553,7 +6367,7 @@ async function Sl(t, e) {
6553
6367
  );
6554
6368
  });
6555
6369
  }
6556
- class wl {
6370
+ class sl {
6557
6371
  async acquireCameraStream(e) {
6558
6372
  if (!navigator.mediaDevices)
6559
6373
  throw new Error("Media devices are not available in this environment");
@@ -6570,9 +6384,9 @@ class wl {
6570
6384
  } catch {
6571
6385
  }
6572
6386
  try {
6573
- await new Promise((f, E) => {
6574
- const I = () => f(), w = () => E(new Error("Failed to load video element"));
6575
- s.addEventListener("loadedmetadata", I, { once: !0 }), s.addEventListener("error", w, { once: !0 });
6387
+ await new Promise((E, p) => {
6388
+ const I = () => E(), T = () => p(new Error("Failed to load video element"));
6389
+ s.addEventListener("loadedmetadata", I, { once: !0 }), s.addEventListener("error", T, { once: !0 });
6576
6390
  });
6577
6391
  try {
6578
6392
  await s.play();
@@ -6583,16 +6397,16 @@ class wl {
6583
6397
  if (typeof OffscreenCanvas < "u")
6584
6398
  u = new OffscreenCanvas(a, c);
6585
6399
  else {
6586
- const f = document.createElement("canvas");
6587
- f.width = a, f.height = c, u = f;
6400
+ const E = document.createElement("canvas");
6401
+ E.width = a, E.height = c, u = E;
6588
6402
  }
6589
- const p = u.getContext("2d", { alpha: !1 });
6590
- if (!p)
6403
+ const f = u.getContext("2d", { alpha: !1 });
6404
+ if (!f)
6591
6405
  throw new Error("2D canvas context unavailable");
6592
- p.drawImage(s, 0, 0, a, c);
6593
- const d = await Sl(u, e), h = await d.arrayBuffer();
6406
+ f.drawImage(s, 0, 0, a, c);
6407
+ const d = await nl(u, e), h = await d.arrayBuffer();
6594
6408
  return {
6595
- mime: d.type || e.mime || vr,
6409
+ mime: d.type || e.mime || Lr,
6596
6410
  width: a,
6597
6411
  height: c,
6598
6412
  data: new Uint8Array(h)
@@ -6617,7 +6431,7 @@ class wl {
6617
6431
  }
6618
6432
  }
6619
6433
  }
6620
- function Al(t) {
6434
+ function il(t) {
6621
6435
  return new Worker(
6622
6436
  "" + new URL("assets/video-capture-worker-BBs_62Fq.js", import.meta.url).href,
6623
6437
  {
@@ -6626,18 +6440,18 @@ function Al(t) {
6626
6440
  }
6627
6441
  );
6628
6442
  }
6629
- const lt = v("IkonVideoCapture");
6630
- function yl() {
6443
+ const lt = L("IkonVideoCapture");
6444
+ function ol() {
6631
6445
  const t = globalThis.crypto;
6632
6446
  return t?.randomUUID ? t.randomUUID() : `cap_${Date.now()}_${Math.floor(Math.random() * 1e9)}`;
6633
6447
  }
6634
- function Nl() {
6448
+ function al() {
6635
6449
  const t = globalThis.MediaStreamTrackProcessor;
6636
6450
  if (!t)
6637
6451
  throw new Error("MediaStreamTrackProcessor is not available in this browser");
6638
6452
  return t;
6639
6453
  }
6640
- class gl {
6454
+ class cl {
6641
6455
  constructor(e) {
6642
6456
  this.client = e;
6643
6457
  }
@@ -6653,7 +6467,7 @@ class gl {
6653
6467
  ensureWorker() {
6654
6468
  if (this.worker)
6655
6469
  return this.worker;
6656
- const e = new Al();
6470
+ const e = new il();
6657
6471
  return this.worker = e, e.addEventListener("message", (r) => {
6658
6472
  const n = r.data;
6659
6473
  if (n?.type === "error") {
@@ -6667,20 +6481,20 @@ class gl {
6667
6481
  throw new Error("Cannot start video capture before client is connected");
6668
6482
  const r = this.ensureWorker();
6669
6483
  if (!this.sendPort) {
6670
- const n = this.client.createProtocolSendPort({ opcodeGroupsMask: T.GROUP_VIDEO });
6484
+ const n = this.client.createProtocolSendPort({ opcodeGroupsMask: S.GROUP_VIDEO });
6671
6485
  if (!n)
6672
6486
  throw new Error("Failed to create protocol send port for video capture");
6673
6487
  this.sendPort = n, r.postMessage({ type: "attachSendPort", port: n.port }, [n.port]);
6674
6488
  }
6675
6489
  if (!this.protocolPort) {
6676
- const n = this.client.createProtocolMessagePort({ opcodeGroupsMask: T.GROUP_VIDEO });
6490
+ const n = this.client.createProtocolMessagePort({ opcodeGroupsMask: S.GROUP_VIDEO });
6677
6491
  n && (this.protocolPort = n, r.postMessage({ type: "attachProtocolPort", port: n.port }, [n.port]));
6678
6492
  }
6679
6493
  }
6680
6494
  async getMediaStream(e) {
6681
6495
  if (!navigator.mediaDevices)
6682
6496
  throw new Error("Media devices are not available in this environment");
6683
- const r = e.constraints ?? {}, n = e.options?.framerate ?? _l, s = {
6497
+ const r = e.constraints ?? {}, n = e.options?.framerate ?? tl, s = {
6684
6498
  ...r,
6685
6499
  frameRate: r.frameRate ?? { ideal: n }
6686
6500
  };
@@ -6691,11 +6505,11 @@ class gl {
6691
6505
  if (!r)
6692
6506
  throw new Error("Cannot start video capture before client is connected");
6693
6507
  this.ensurePorts();
6694
- const n = yl(), s = await this.getMediaStream(e), i = s.getVideoTracks()[0];
6508
+ const n = ol(), s = await this.getMediaStream(e), i = s.getVideoTracks()[0];
6695
6509
  if (!i)
6696
6510
  throw s.getTracks().forEach((I) => I.stop()), new Error("No video track available");
6697
- const o = i.getSettings(), a = e.options?.width ?? o.width ?? Mr, c = e.options?.height ?? o.height ?? Or, u = Nl(), d = new u({ track: i }).readable, h = this.allocateTrackId(), f = this.ensureWorker();
6698
- f.postMessage(
6511
+ const o = i.getSettings(), a = e.options?.width ?? o.width ?? Mr, c = e.options?.height ?? o.height ?? Or, u = al(), d = new u({ track: i }).readable, h = this.allocateTrackId(), E = this.ensureWorker();
6512
+ E.postMessage(
6699
6513
  {
6700
6514
  type: "start",
6701
6515
  captureId: n,
@@ -6714,26 +6528,26 @@ class gl {
6714
6528
  },
6715
6529
  [d]
6716
6530
  );
6717
- const E = {
6531
+ const p = {
6718
6532
  captureId: n,
6719
6533
  trackId: h,
6720
6534
  stream: s,
6721
6535
  track: i,
6722
6536
  stopped: !1,
6723
6537
  stop: async () => {
6724
- if (!E.stopped) {
6725
- E.stopped = !0, this.captures.delete(n);
6538
+ if (!p.stopped) {
6539
+ p.stopped = !0, this.captures.delete(n);
6726
6540
  try {
6727
6541
  s.getTracks().forEach((I) => I.stop());
6728
6542
  } catch {
6729
6543
  }
6730
- f.postMessage({ type: "stop", captureId: n });
6544
+ E.postMessage({ type: "stop", captureId: n });
6731
6545
  }
6732
6546
  }
6733
6547
  };
6734
6548
  return i.addEventListener("ended", () => {
6735
- E.stop();
6736
- }), this.captures.set(n, E), { captureId: n, stop: E.stop };
6549
+ p.stop();
6550
+ }), this.captures.set(n, p), { captureId: n, stop: p.stop };
6737
6551
  }
6738
6552
  async startCamera(e) {
6739
6553
  return this.start({ source: "camera", ...e });
@@ -6762,12 +6576,12 @@ class gl {
6762
6576
  this.protocolPort?.close(), this.protocolPort = null, this.sendPort?.close(), this.sendPort = null;
6763
6577
  }
6764
6578
  }
6765
- class Cl {
6579
+ class ll {
6766
6580
  audio;
6767
6581
  video;
6768
6582
  image;
6769
6583
  constructor(e, r) {
6770
- this.audio = new Il(e, r?.audio), this.video = new gl(e), this.image = new wl();
6584
+ this.audio = new el(e, r?.audio), this.video = new cl(e), this.image = new sl();
6771
6585
  }
6772
6586
  dispose() {
6773
6587
  this.audio.dispose(), this.video.dispose();
@@ -6779,7 +6593,7 @@ const ut = {
6779
6593
  [k.WebTransportProxy]: 2,
6780
6594
  [k.WebSocketProxy]: 3
6781
6595
  }, Ae = "ikon_endpoint_type";
6782
- class bl {
6596
+ class ul {
6783
6597
  isLocal;
6784
6598
  workingEndpointType = null;
6785
6599
  constructor(e) {
@@ -6840,8 +6654,8 @@ class bl {
6840
6654
  }
6841
6655
  }
6842
6656
  }
6843
- const A = v("IkonClient");
6844
- class Kl {
6657
+ const A = L("IkonClient");
6658
+ class bl {
6845
6659
  channelManager = null;
6846
6660
  protocolWorker = null;
6847
6661
  workerManagerState = null;
@@ -6896,27 +6710,27 @@ class Kl {
6896
6710
  return this._mediaCapture;
6897
6711
  }
6898
6712
  constructor(e) {
6899
- this.config = e, this.slowConnectionThresholdMs = e.timeouts?.slowConnectionThresholdMs ?? Oa, this.connectionTimeoutMs = e.timeouts?.connectionTimeoutMs ?? va;
6713
+ this.config = e, this.slowConnectionThresholdMs = e.timeouts?.slowConnectionThresholdMs ?? La, this.connectionTimeoutMs = e.timeouts?.connectionTimeoutMs ?? va;
6900
6714
  const r = [e.local, e.apiKey, e.sessionToken].filter(Boolean).length;
6901
6715
  if (r === 0)
6902
6716
  throw new Error('IkonClient requires one of: "local", "apiKey", or "sessionToken" configuration');
6903
6717
  if (r > 1)
6904
6718
  throw new Error('IkonClient accepts only one of: "local", "apiKey", or "sessionToken" configuration');
6905
- this.endpointSelector = new bl({
6719
+ this.endpointSelector = new ul({
6906
6720
  local: e.local
6907
- }), this._functionRegistry = new Gc(), nt() && !e.disableBrowserFunctions && (this.unregisterBrowserFunctions = Lc(this._functionRegistry));
6721
+ }), this._functionRegistry = new yc(), nt() && !e.disableBrowserFunctions && (this.unregisterBrowserFunctions = _c(this._functionRegistry));
6908
6722
  const n = e.audio ? {
6909
6723
  performance: e.audio.performance,
6910
6724
  background: e.audio.background,
6911
6725
  diagnostics: e.audio.diagnostics
6912
6726
  } : void 0, s = e.video ? { performance: e.video.performance } : void 0;
6913
- this._media = new hl(this, { audio: n, video: s, mediaSession: e.mediaSession }), this._media.audio.setEnabled(!0), this._media.video.setEnabled(!0), nt() && (this._mediaCapture = new Cl(this, {
6727
+ this._media = new zc(this, { audio: n, video: s, mediaSession: e.mediaSession }), this._media.audio.setEnabled(!0), this._media.video.setEnabled(!0), nt() && (this._mediaCapture = new ll(this, {
6914
6728
  audio: {
6915
6729
  performance: {
6916
6730
  preferWebCodecs: e.audio?.performance?.preferWebCodecs
6917
6731
  }
6918
6732
  }
6919
- }), this.unregisterMediaCaptureFunctions = Yc(this._functionRegistry, this));
6733
+ }), this.unregisterMediaCaptureFunctions = kc(this._functionRegistry, this));
6920
6734
  }
6921
6735
  _lastError = void 0;
6922
6736
  /**
@@ -6981,7 +6795,7 @@ class Kl {
6981
6795
  A.info("Disconnecting from Ikon server"), this.clearTimers(), this.cleanupLifecycleHandlers(), this._mediaCapture?.dispose(), this.unregisterMediaCaptureFunctions && (this.unregisterMediaCaptureFunctions(), this.unregisterMediaCaptureFunctions = null), this.unregisterBrowserFunctions && (this.unregisterBrowserFunctions(), this.unregisterBrowserFunctions = null), this.abortController?.abort(), this.abortController = null, this.disconnectProtocol(), this.authResponse = null, this._sessionId = void 0, this._globalState = null, this._globalStateReceived = !1, this._channelsConnected = !1, this._joinedHandled = !1, this._functionRegistry.detach(), this.setState("idle");
6982
6796
  }
6983
6797
  sendActionCall(e, r) {
6984
- const n = qr(
6798
+ const n = Zr(
6985
6799
  {
6986
6800
  ActionId: m.fromString(e),
6987
6801
  PayloadJson: r ?? "{}"
@@ -7157,11 +6971,11 @@ class Kl {
7157
6971
  async authenticate() {
7158
6972
  const e = this.abortController?.signal;
7159
6973
  if (this.config.local)
7160
- return Wa(this.config.local, e);
6974
+ return Ha(this.config.local, e);
7161
6975
  if (this.config.apiKey)
7162
- return Ha(this.config.apiKey, e);
6976
+ return $a(this.config.apiKey, e);
7163
6977
  if (this.config.sessionToken)
7164
- return $a(this.config.sessionToken, e);
6978
+ return Ka(this.config.sessionToken, e);
7165
6979
  throw new Error("No connection configuration provided (need local, apiKey, or sessionToken)");
7166
6980
  }
7167
6981
  /**
@@ -7173,9 +6987,9 @@ class Kl {
7173
6987
  this.notifyMessageSubscribers(e, r, n);
7174
6988
  return;
7175
6989
  }
7176
- if (r === T.CORE_GLOBAL_STATE)
6990
+ if (r === S.CORE_GLOBAL_STATE)
7177
6991
  try {
7178
- this._globalState = Oo(e), this._globalStateReceived || (this._globalStateReceived = !0, this.tryHandleJoined());
6992
+ this._globalState = Lo(e), this._globalStateReceived || (this._globalStateReceived = !0, this.tryHandleJoined());
7179
6993
  } catch (s) {
7180
6994
  A.error("Failed to parse GlobalState:", s);
7181
6995
  }
@@ -7263,38 +7077,40 @@ class Kl {
7263
7077
  }
7264
7078
  let r;
7265
7079
  try {
7266
- r = new wa();
7267
- } catch (c) {
7268
- A.warn(`Failed to create protocol worker, falling back to main thread: ${c}`), await this.connectProtocolOnMainThread(e);
7080
+ r = new Aa();
7081
+ } catch (f) {
7082
+ A.warn(`Failed to create protocol worker, falling back to main thread: ${f}`), await this.connectProtocolOnMainThread(e);
7269
7083
  return;
7270
7084
  }
7271
7085
  this.channelManager = null, this.protocolWorker = r, this.workerManagerState = "idle";
7272
- const n = new Promise((c, u) => {
7273
- const p = (d) => {
7274
- const h = d.data;
7275
- if (h?.type === "protocol" && h.message instanceof ArrayBuffer) {
7276
- const f = new Uint8Array(h.message);
7277
- this.handleProtocolMessage(f);
7086
+ const n = new Promise((f, d) => {
7087
+ const h = (E) => {
7088
+ const p = E.data;
7089
+ if (p?.type === "protocol" && p.message instanceof ArrayBuffer) {
7090
+ const I = new Uint8Array(p.message);
7091
+ this.handleProtocolMessage(I);
7278
7092
  return;
7279
7093
  }
7280
- if (h?.type === "state") {
7281
- const f = h.state;
7282
- this.workerManagerState = f;
7283
- const E = h.activeType;
7284
- E !== void 0 && this.endpointSelector.rememberWorkingType(E), this.handleChannelManagerStateChange(f), f === "connected" && c();
7094
+ if (p?.type === "state") {
7095
+ const I = p.state;
7096
+ this.workerManagerState = I;
7097
+ const T = p.activeType;
7098
+ T !== void 0 && this.endpointSelector.rememberWorkingType(T), this.handleChannelManagerStateChange(I), I === "connected" && f();
7285
7099
  return;
7286
7100
  }
7287
- if (h?.type === "error") {
7288
- const f = h.error, E = new Error(String(f?.message ?? "Worker error"));
7289
- E.name = String(f?.name ?? "Error"), u(E);
7101
+ if (p?.type === "error") {
7102
+ const I = p.error, T = new Error(String(I?.message ?? "Worker error"));
7103
+ T.name = String(I?.name ?? "Error"), d(T);
7290
7104
  }
7291
7105
  };
7292
- r.addEventListener("message", p), r.addEventListener("error", (d) => {
7293
- const h = [d.message, d.filename, d.lineno, d.colno].filter((f) => f != null && String(f).length > 0);
7294
- u(new Error(`Protocol worker failed: ${h.join(" ")}`.trim()));
7106
+ r.addEventListener("message", h), r.addEventListener("error", (E) => {
7107
+ const p = [E.message, E.filename, E.lineno, E.colno].filter((I) => I != null && String(I).length > 0);
7108
+ d(new Error(`Protocol worker failed: ${p.join(" ")}`.trim()));
7295
7109
  });
7296
- }), s = this.computeOrderedEndpointTypes(e), i = this.config.timeouts?.keepaliveTimeoutMs ?? qe, o = this.config.timeouts?.reconnectBackoffMs ?? Ze, a = this.config.timeouts?.maxReconnectAttempts ?? et;
7297
- this.updateWorkerInterestMask(), this.config.debug?.devtools && r.postMessage({ type: "enableDevtools", enabled: !0 }), r.postMessage({
7110
+ }), s = this.computeOrderedEndpointTypes(e), i = this.config.timeouts?.keepaliveTimeoutMs ?? Ze, o = this.config.timeouts?.reconnectBackoffMs ?? qe, a = this.config.timeouts?.maxReconnectAttempts ?? et;
7111
+ this.updateWorkerInterestMask();
7112
+ const c = typeof window < "u" ? new URLSearchParams(window.location.search) : null;
7113
+ (this.config.debug?.devtools || c?.get("devtools") === "true") && r.postMessage({ type: "enableDevtools", enabled: !0 }), r.postMessage({
7298
7114
  type: "connect",
7299
7115
  sessionId: this._sessionId,
7300
7116
  entrypoints: e,
@@ -7305,15 +7121,15 @@ class Kl {
7305
7121
  });
7306
7122
  try {
7307
7123
  await n;
7308
- } catch (c) {
7309
- A.warn(`Protocol worker connect failed, falling back to main thread: ${c}`), this.disconnectProtocol(), await this.connectProtocolOnMainThread(e);
7124
+ } catch (f) {
7125
+ A.warn(`Protocol worker connect failed, falling back to main thread: ${f}`), this.disconnectProtocol(), await this.connectProtocolOnMainThread(e);
7310
7126
  }
7311
7127
  }
7312
7128
  async connectProtocolOnMainThread(e) {
7313
- this.workerManagerState = null, this.protocolWorker = null, this.channelManager = new Ma({
7129
+ this.workerManagerState = null, this.protocolWorker = null, this.channelManager = new Oa({
7314
7130
  sessionId: this._sessionId,
7315
- keepaliveTimeoutMs: this.config.timeouts?.keepaliveTimeoutMs ?? qe,
7316
- reconnectBackoffMs: this.config.timeouts?.reconnectBackoffMs ?? Ze,
7131
+ keepaliveTimeoutMs: this.config.timeouts?.keepaliveTimeoutMs ?? Ze,
7132
+ reconnectBackoffMs: this.config.timeouts?.reconnectBackoffMs ?? qe,
7317
7133
  maxReconnectAttempts: this.config.timeouts?.maxReconnectAttempts ?? et,
7318
7134
  endpointSelector: this.endpointSelector,
7319
7135
  onProtocolMessage: (r) => {
@@ -7352,7 +7168,7 @@ class Kl {
7352
7168
  this.protocolWorker.postMessage({ type: "setInterest", opcodeGroupsMask: void 0 });
7353
7169
  return;
7354
7170
  }
7355
- let e = T.GROUP_CORE | T.GROUP_ACTIONS;
7171
+ let e = S.GROUP_CORE | S.GROUP_ACTIONS;
7356
7172
  for (const [, r] of this.messageSubscribers.entries()) {
7357
7173
  if (!r || r.opcodeGroupsMask === void 0) {
7358
7174
  this.protocolWorker.postMessage({ type: "setInterest", opcodeGroupsMask: void 0 });
@@ -7441,121 +7257,121 @@ class Kl {
7441
7257
  }
7442
7258
  }
7443
7259
  }
7444
- function Yl(t) {
7260
+ function kl(t) {
7445
7261
  return t === "connecting" || t === "connectingSlow" || t === "reconnecting";
7446
7262
  }
7447
- function jl(t) {
7263
+ function Ul(t) {
7448
7264
  return t === "connected";
7449
7265
  }
7450
- function zl(t) {
7266
+ function Dl(t) {
7451
7267
  return t === "offline" || t === "offlineError" || t === "idle";
7452
7268
  }
7453
- function Xl(t) {
7269
+ function Ml(t) {
7454
7270
  return t === "offlineError";
7455
7271
  }
7456
- const Lr = /* @__PURE__ */ new Map();
7457
- for (const [t, e] of Object.entries(T))
7458
- typeof e == "number" && Lr.set(e, t);
7459
- function Jl(t) {
7460
- return Lr.get(t) ?? `UNKNOWN_${t}`;
7272
+ const vr = /* @__PURE__ */ new Map();
7273
+ for (const [t, e] of Object.entries(S))
7274
+ typeof e == "number" && vr.set(e, t);
7275
+ function Ol(t) {
7276
+ return vr.get(t) ?? `UNKNOWN_${t}`;
7461
7277
  }
7462
- const Fr = 1e3, Pr = mr.INFO;
7278
+ const Fr = 1e3, Pr = Ir.INFO;
7463
7279
  let O = [], Ue = Fr, Br = Pr, De = null;
7464
- function Rl(t) {
7280
+ function hl(t) {
7465
7281
  t.level < Br || (O.push(t), O.length > Ue && (O = O.slice(-Ue)));
7466
7282
  }
7467
- function kl(t) {
7468
- Ue = t?.maxBufferSize ?? Fr, Br = t?.minLevel ?? Pr, O = [], Na(Rl);
7283
+ function dl(t) {
7284
+ Ue = t?.maxBufferSize ?? Fr, Br = t?.minLevel ?? Pr, O = [], ga(hl);
7469
7285
  }
7470
- function Ql(t) {
7286
+ function Ll(t) {
7471
7287
  De = t;
7472
7288
  }
7473
- function ql() {
7289
+ function vl() {
7474
7290
  return O;
7475
7291
  }
7476
- function Ul() {
7292
+ function fl() {
7477
7293
  const t = O;
7478
7294
  return O = [], t;
7479
7295
  }
7480
- function Zl() {
7296
+ function Fl() {
7481
7297
  if (!De || O.length === 0)
7482
7298
  return 0;
7483
- const t = Ul();
7299
+ const t = fl();
7484
7300
  return De(t), t.length;
7485
7301
  }
7486
- function eu() {
7302
+ function Pl() {
7487
7303
  O = [];
7488
7304
  }
7489
- function tu() {
7305
+ function Bl() {
7490
7306
  return O.length;
7491
7307
  }
7492
- kl();
7308
+ dl();
7493
7309
  export {
7494
7310
  y as AuthenticationError,
7495
- Da as Channel,
7496
- Ma as ChannelManager,
7497
- Ml as ChannelNotFoundError,
7311
+ Ma as Channel,
7312
+ Oa as ChannelManager,
7313
+ pl as ChannelNotFoundError,
7498
7314
  X as ClientType,
7499
7315
  Ve as ConnectionError,
7500
7316
  J as ContextType,
7501
- bl as EndpointSelector,
7317
+ ul as EndpointSelector,
7502
7318
  k as EntrypointType,
7503
- Gc as FunctionRegistry,
7504
- Gl as IKON_AUTH_BASE_URL,
7319
+ yc as FunctionRegistry,
7320
+ yl as IKON_AUTH_BASE_URL,
7505
7321
  rt as IKON_AUTH_URL_DEV,
7506
7322
  tt as IKON_AUTH_URL_PROD,
7507
- Ee as IKON_BACKEND_URL_DEV,
7508
- be as IKON_BACKEND_URL_PROD,
7509
- Il as IkonAudioCapture,
7323
+ pe as IKON_BACKEND_URL_DEV,
7324
+ Re as IKON_BACKEND_URL_PROD,
7325
+ el as IkonAudioCapture,
7510
7326
  je as IkonAudioPlayback,
7511
- Kl as IkonClient,
7512
- wl as IkonImageCapture,
7513
- hl as IkonMedia,
7514
- Cl as IkonMediaCapture,
7515
- gl as IkonVideoCapture,
7516
- ul as IkonVideoPlayback,
7327
+ bl as IkonClient,
7328
+ sl as IkonImageCapture,
7329
+ zc as IkonMedia,
7330
+ ll as IkonMediaCapture,
7331
+ cl as IkonVideoCapture,
7332
+ jc as IkonVideoPlayback,
7517
7333
  We as KeepaliveTimeoutError,
7518
- mr as LogLevel,
7519
- Aa as MaxRetriesExceededError,
7520
- vl as NoChannelsError,
7521
- T as Opcode,
7522
- ya as ProvisioningTimeoutError,
7523
- Ol as SpaceNotFoundError,
7334
+ Ir as LogLevel,
7335
+ ya as MaxRetriesExceededError,
7336
+ ml as NoChannelsError,
7337
+ S as Opcode,
7338
+ Na as ProvisioningTimeoutError,
7339
+ Il as SpaceNotFoundError,
7524
7340
  W as TransportError,
7525
- q as UserType,
7526
- Dl as asProtocolMessage,
7527
- Bl as clearDeviceId,
7528
- eu as clearLogBuffer,
7529
- v as createLogger,
7530
- Hl as deriveAuthUrl,
7531
- Wl as deriveBackendType,
7532
- Vl as deriveBackendUrl,
7533
- xl as extractUserIdFromToken,
7534
- Zl as flushLogs,
7535
- ql as getBufferedLogs,
7536
- tu as getLogBufferSize,
7537
- Fl as getLogLevel,
7538
- Pl as getLogSink,
7539
- Jl as getOpcodeName,
7341
+ Z as UserType,
7342
+ El as asProtocolMessage,
7343
+ wl as clearDeviceId,
7344
+ Pl as clearLogBuffer,
7345
+ L as createLogger,
7346
+ Cl as deriveAuthUrl,
7347
+ gl as deriveBackendType,
7348
+ Nl as deriveBackendUrl,
7349
+ Al as extractUserIdFromToken,
7350
+ Fl as flushLogs,
7351
+ vl as getBufferedLogs,
7352
+ Bl as getLogBufferSize,
7353
+ Tl as getLogLevel,
7354
+ Sl as getLogSink,
7355
+ Ol as getOpcodeName,
7540
7356
  $e as getOrCreateDeviceId,
7541
- kl as initializeLogSink,
7542
- Rr as isAudioWorkletSupported,
7357
+ dl as initializeLogSink,
7358
+ br as isAudioWorkletSupported,
7543
7359
  nt as isBrowserEnvironment,
7544
7360
  Ke as isCloudEnvironment,
7545
- jl as isConnected,
7546
- Yl as isConnecting,
7547
- Xl as isError,
7548
- zl as isOffline,
7361
+ Ul as isConnected,
7362
+ kl as isConnecting,
7363
+ Ml as isError,
7364
+ Dl as isOffline,
7549
7365
  le as isSharedArrayBufferSupported,
7550
- Ir as isWebTransportSupported,
7551
- $l as parseUrlParams,
7366
+ mr as isWebTransportSupported,
7367
+ Rl as parseUrlParams,
7552
7368
  ue as readOpcode,
7553
7369
  ce as readOpcodeGroup,
7554
7370
  ne as readProtocolMessageHeaders,
7555
- Lc as registerBrowserFunctions,
7556
- Ll as setLogLevel,
7557
- Na as setLogSink,
7558
- Ql as setSendLogsCallback,
7559
- Ul as takeBufferedLogs,
7560
- Vc as withResultData
7371
+ _c as registerBrowserFunctions,
7372
+ _l as setLogLevel,
7373
+ ga as setLogSink,
7374
+ Ll as setSendLogsCallback,
7375
+ fl as takeBufferedLogs,
7376
+ Nc as withResultData
7561
7377
  };