@ikonai/sdk-ui 1.0.52 → 1.0.54

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.js CHANGED
@@ -25,7 +25,7 @@ function Qt(t) {
25
25
  flags: E
26
26
  };
27
27
  }
28
- async function V(t, e, r) {
28
+ async function p(t, e, r) {
29
29
  const s = G(t), n = Qt(s);
30
30
  if (e !== void 0 && n.opcode !== e)
31
31
  throw new Error(`Unexpected opcode ${n.opcode}`);
@@ -486,10 +486,10 @@ class m {
486
486
  const n = P(s);
487
487
  let i;
488
488
  if (n >= 0)
489
- S(this.buffer, this.offset, n), i = this.buffer.subarray(this.offset, this.offset + n), this.offset += n;
489
+ N(this.buffer, this.offset, n), i = this.buffer.subarray(this.offset, this.offset + n), this.offset += n;
490
490
  else {
491
491
  const a = { offset: this.offset }, o = y(this.buffer, a, "InvalidLength");
492
- S(this.buffer, a.offset, o), i = this.buffer.subarray(a.offset, a.offset + o), this.offset = a.offset + o;
492
+ N(this.buffer, a.offset, o), i = this.buffer.subarray(a.offset, a.offset + o), this.offset = a.offset + o;
493
493
  }
494
494
  return new se(e, s, i);
495
495
  }
@@ -633,20 +633,20 @@ class J {
633
633
  case 6:
634
634
  case 14: {
635
635
  const e = P(this.elementType);
636
- S(this.payload, this.offset, e);
636
+ N(this.payload, this.offset, e);
637
637
  const r = this.payload.subarray(this.offset, this.offset + e);
638
638
  return this.offset += e, new M(this.elementType, r);
639
639
  }
640
640
  case 12:
641
641
  case 13: {
642
642
  const e = { offset: this.offset }, r = y(this.payload, e, "ArrayMalformed");
643
- S(this.payload, e.offset, r);
643
+ N(this.payload, e.offset, r);
644
644
  const s = this.payload.subarray(e.offset, e.offset + r);
645
645
  return this.offset = e.offset + r, new M(this.elementType, s);
646
646
  }
647
647
  case 11: {
648
648
  const e = { offset: this.offset }, r = y(this.payload, e, "ArrayMalformed");
649
- S(this.payload, e.offset, r);
649
+ N(this.payload, e.offset, r);
650
650
  const s = this.payload.subarray(e.offset, e.offset + r);
651
651
  return this.offset = e.offset + r, new M(11, s);
652
652
  }
@@ -699,13 +699,13 @@ class q {
699
699
  readKey() {
700
700
  const e = P(this.keyType);
701
701
  if (e >= 0) {
702
- S(this.payload, this.offset, e);
702
+ N(this.payload, this.offset, e);
703
703
  const r = this.payload.subarray(this.offset, this.offset + e);
704
704
  return this.offset += e, new O(this.keyType, r);
705
705
  }
706
706
  if (this.keyType === 12 || this.keyType === 13) {
707
707
  const r = { offset: this.offset }, s = y(this.payload, r, "DictMalformed");
708
- S(this.payload, r.offset, s);
708
+ N(this.payload, r.offset, s);
709
709
  const n = this.payload.subarray(r.offset, r.offset + s);
710
710
  return this.offset = r.offset + s, new O(this.keyType, n);
711
711
  }
@@ -716,13 +716,13 @@ class q {
716
716
  case 12:
717
717
  case 13: {
718
718
  const e = { offset: this.offset }, r = y(this.payload, e, "DictMalformed");
719
- S(this.payload, e.offset, r);
719
+ N(this.payload, e.offset, r);
720
720
  const s = this.payload.subarray(e.offset, e.offset + r);
721
721
  return this.offset = e.offset + r, new O(this.valueType, s);
722
722
  }
723
723
  case 11: {
724
724
  const e = { offset: this.offset }, r = y(this.payload, e, "DictMalformed");
725
- S(this.payload, e.offset, r);
725
+ N(this.payload, e.offset, r);
726
726
  const s = this.payload.subarray(e.offset, e.offset + r);
727
727
  return this.offset = e.offset + r, new O(11, s);
728
728
  }
@@ -744,7 +744,7 @@ class q {
744
744
  case 14:
745
745
  case 1: {
746
746
  const e = P(this.valueType);
747
- S(this.payload, this.offset, e);
747
+ N(this.payload, this.offset, e);
748
748
  const r = this.payload.subarray(this.offset, this.offset + e);
749
749
  return this.offset += e, new O(this.valueType, r);
750
750
  }
@@ -931,7 +931,7 @@ function Q(t) {
931
931
  if (t === 9 || t === 11 || t === 10 || t === 1)
932
932
  throw new Error("Dictionary keys must be primitive Teleport types");
933
933
  }
934
- function S(t, e, r) {
934
+ function N(t, e, r) {
935
935
  if (e < 0 || r < 0 || e + r > t.length)
936
936
  throw new Error("Teleport payload exceeds bounds");
937
937
  }
@@ -947,7 +947,7 @@ function Z(t, e) {
947
947
  const n = { offset: e + 1 }, i = y(t, n, "ArrayMalformed"), a = P(s);
948
948
  if (a >= 0) {
949
949
  const I = a * i;
950
- return S(t, n.offset, I), n.offset + I - e;
950
+ return N(t, n.offset, I), n.offset + I - e;
951
951
  }
952
952
  let o = n.offset;
953
953
  for (let I = 0; I < i; I++)
@@ -970,16 +970,16 @@ function tt(t, e) {
970
970
  function j(t, e, r, s) {
971
971
  const n = P(t);
972
972
  if (n >= 0)
973
- return S(e, r, n), r + n;
973
+ return N(e, r, n), r + n;
974
974
  switch (t) {
975
975
  case 12:
976
976
  case 13: {
977
977
  const i = { offset: r }, a = y(e, i, s);
978
- return S(e, i.offset, a), i.offset + a;
978
+ return N(e, i.offset, a), i.offset + a;
979
979
  }
980
980
  case 11: {
981
981
  const i = { offset: r }, a = y(e, i, s);
982
- return S(e, i.offset, a), i.offset + a;
982
+ return N(e, i.offset, a), i.offset + a;
983
983
  }
984
984
  case 9:
985
985
  return r + Z(e, r);
@@ -995,20 +995,20 @@ function st(t) {
995
995
  function G(t) {
996
996
  return t instanceof Uint8Array ? t : new Uint8Array(t);
997
997
  }
998
- var ot = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.Opus = 1] = "Opus", t[t.Mp3 = 2] = "Mp3", t[t.RawPcm16 = 3] = "RawPcm16", t))(ot || {}), lt = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.MobileWeb = 1] = "MobileWeb", t[t.MobileApp = 2] = "MobileApp", t[t.DesktopWeb = 3] = "DesktopWeb", t[t.DesktopApp = 4] = "DesktopApp", t))(lt || {}), It = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.Backend = 2] = "Backend", t[t.Server = 4] = "Server", t[t.Plugin = 8] = "Plugin", t[t.Browser = 16] = "Browser", t))(It || {}), Et = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.MessagePack = 1] = "MessagePack", t[t.MemoryPack = 2] = "MemoryPack", t[t.Json = 4] = "Json", t[t.Teleport = 8] = "Teleport", t[t.All = 15] = "All", t))(Et || {}), _t = /* @__PURE__ */ ((t) => (t[t.Face = 0] = "Face", t[t.Hands = 1] = "Hands", t[t.Pose = 2] = "Pose", t[t.All = 3] = "All", t))(_t || {}), ht = /* @__PURE__ */ ((t) => (t[t.Css = 0] = "Css", t[t.Flutter = 1] = "Flutter", t))(ht || {}), ut = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.Machine = 1] = "Machine", t[t.Human = 2] = "Human", t))(ut || {}), ct = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.H264 = 1] = "H264", t[t.Vp8 = 2] = "Vp8", t[t.Vp9 = 3] = "Vp9", t[t.Av1 = 4] = "Av1", t))(ct || {}), ft = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.DotNet = 1] = "DotNet", t[t.TypeScript = 2] = "TypeScript", t[t.Cpp = 3] = "Cpp", t[t.Dart = 4] = "Dart", t[t.Rust = 5] = "Rust", t))(ft || {}), Tt = /* @__PURE__ */ ((t) => (t[t.Local = 0] = "Local", t[t.Cloud = 1] = "Cloud", t))(Tt || {}), At = /* @__PURE__ */ ((t) => (t[t.Bundle = 0] = "Bundle", t[t.GitSource = 1] = "GitSource", t))(At || {}), L = /* @__PURE__ */ ((t) => (t[t.NONE = 0] = "NONE", t[t.CONSTANT_GROUP_BITS = 15] = "CONSTANT_GROUP_BITS", t[t.CONSTANT_GROUP_OFFSET = 16] = "CONSTANT_GROUP_OFFSET", t[t.GROUP_CORE = 65536] = "GROUP_CORE", t[t.CORE_AUTH_RESPONSE = 65537] = "CORE_AUTH_RESPONSE", t[t.CORE_AUTH_TICKET = 65538] = "CORE_AUTH_TICKET", t[t.CORE_GLOBAL_STATE = 65539] = "CORE_GLOBAL_STATE", t[t.CORE_ON_SERVER_STATUS_PING = 65540] = "CORE_ON_SERVER_STATUS_PING", t[t.CORE_ON_USER_JOINED = 65541] = "CORE_ON_USER_JOINED", t[t.CORE_ON_USER_LEFT = 65542] = "CORE_ON_USER_LEFT", t[t.CORE_ON_CLIENT_JOINED = 65543] = "CORE_ON_CLIENT_JOINED", t[t.CORE_ON_CLIENT_LEFT = 65544] = "CORE_ON_CLIENT_LEFT", t[t.CORE_ON_SERVER_STARTED = 65545] = "CORE_ON_SERVER_STARTED", t[t.CORE_ON_SERVER_STOPPED = 65546] = "CORE_ON_SERVER_STOPPED", t[t.CORE_ON_SERVER_STOPPING = 65547] = "CORE_ON_SERVER_STOPPING", t[t.CORE_ON_CLIENT_READY = 65548] = "CORE_ON_CLIENT_READY", t[t.CORE_CLIENT_READY = 65549] = "CORE_CLIENT_READY", t[t.CORE_SERVER_INIT = 65550] = "CORE_SERVER_INIT", t[t.CORE_ON_PLUGIN_RELOADED = 65551] = "CORE_ON_PLUGIN_RELOADED", t[t.CORE_SERVER_START = 65552] = "CORE_SERVER_START", t[t.CORE_SERVER_STOP = 65553] = "CORE_SERVER_STOP", t[t.CORE_ON_HOSTED_SERVER_EXIT = 65554] = "CORE_ON_HOSTED_SERVER_EXIT", t[t.CORE_DYNAMIC_CONFIG = 65555] = "CORE_DYNAMIC_CONFIG", t[t.CORE_PROXY_RPC_AUTH_TICKET = 65556] = "CORE_PROXY_RPC_AUTH_TICKET", t[t.CORE_SERVER_INIT2 = 65557] = "CORE_SERVER_INIT2", t[t.CORE_UPDATE_CLIENT_CONTEXT = 65558] = "CORE_UPDATE_CLIENT_CONTEXT", t[t.CORE_BACKGROUND_WORK_ACTIVE = 65559] = "CORE_BACKGROUND_WORK_ACTIVE", t[t.CORE_WEBRTC_OFFER = 65566] = "CORE_WEBRTC_OFFER", t[t.CORE_WEBRTC_ANSWER = 65567] = "CORE_WEBRTC_ANSWER", t[t.CORE_WEBRTC_ICE_CANDIDATE = 65568] = "CORE_WEBRTC_ICE_CANDIDATE", t[t.CORE_WEBRTC_READY = 65569] = "CORE_WEBRTC_READY", t[t.CORE_WEBRTC_AUDIO_SEGMENT = 65570] = "CORE_WEBRTC_AUDIO_SEGMENT", t[t.CORE_WEBRTC_TRACK_MAP = 65571] = "CORE_WEBRTC_TRACK_MAP", t[t.CORE_WEBRTC_VIDEO_CAPTURE = 65572] = "CORE_WEBRTC_VIDEO_CAPTURE", t[t.CORE_RELAY_AGENT_AUTH = 65576] = "CORE_RELAY_AGENT_AUTH", t[t.CORE_RELAY_AGENT_AUTH_RESULT = 65577] = "CORE_RELAY_AGENT_AUTH_RESULT", t[t.CORE_RELAY_HEARTBEAT = 65578] = "CORE_RELAY_HEARTBEAT", t[t.CORE_RELAY_TCP_CONNECTION_OPENED = 65579] = "CORE_RELAY_TCP_CONNECTION_OPENED", t[t.CORE_RELAY_TCP_CONNECTION_CLOSED = 65580] = "CORE_RELAY_TCP_CONNECTION_CLOSED", t[t.CORE_RELAY_TCP_DATA = 65581] = "CORE_RELAY_TCP_DATA", t[t.CORE_RELAY_UDP_DATA = 65582] = "CORE_RELAY_UDP_DATA", t[t.CORE_RELAY_ADD_TUNNEL = 65583] = "CORE_RELAY_ADD_TUNNEL", t[t.CORE_RELAY_TUNNEL_ADDED = 65584] = "CORE_RELAY_TUNNEL_ADDED", t[t.CORE_RELAY_REMOVE_TUNNEL = 65585] = "CORE_RELAY_REMOVE_TUNNEL", t[t.GROUP_KEEPALIVE = 131072] = "GROUP_KEEPALIVE", t[t.KEEPALIVE_REQUEST = 131073] = "KEEPALIVE_REQUEST", t[t.KEEPALIVE_RESPONSE = 131074] = "KEEPALIVE_RESPONSE", t[t.GROUP_EVENTS = 262144] = "GROUP_EVENTS", t[t.EVENTS_PROFILE_UPDATE = 262145] = "EVENTS_PROFILE_UPDATE", t[t.EVENTS_CHANNEL_COMPLETE = 262146] = "EVENTS_CHANNEL_COMPLETE", t[t.EVENTS_SPEECH_PLAYBACK_COMPLETE = 262147] = "EVENTS_SPEECH_PLAYBACK_COMPLETE", t[t.GROUP_ANALYTICS = 524288] = "GROUP_ANALYTICS", t[t.ANALYTICS_LOGS = 524289] = "ANALYTICS_LOGS", t[t.ANALYTICS_EVENTS = 524290] = "ANALYTICS_EVENTS", t[t.ANALYTICS_USAGES = 524291] = "ANALYTICS_USAGES", t[t.ANALYTICS_USAGE = 524292] = "ANALYTICS_USAGE", t[t.ANALYTICS_SPECIAL_LOG = 524293] = "ANALYTICS_SPECIAL_LOG", t[t.ANALYTICS_PROCESSING_UPDATE = 524294] = "ANALYTICS_PROCESSING_UPDATE", t[t.ANALYTICS_REACTIVE_PROCESSING_UPDATE = 524295] = "ANALYTICS_REACTIVE_PROCESSING_UPDATE", t[t.ANALYTICS_IKON_PROXY_SERVER_STATS = 524296] = "ANALYTICS_IKON_PROXY_SERVER_STATS", t[t.ANALYTICS_IKON_RELAY_SERVER_STATS = 524297] = "ANALYTICS_IKON_RELAY_SERVER_STATS", t[t.ANALYTICS_IKON_TURN_SERVER_STATS = 524298] = "ANALYTICS_IKON_TURN_SERVER_STATS", t[t.GROUP_ACTIONS = 1048576] = "GROUP_ACTIONS", t[t.ACTION_CALL = 1048577] = "ACTION_CALL", t[t.ACTION_ACTIVE = 1048578] = "ACTION_ACTIVE", t[t.ACTION_TEXT_OUTPUT = 1048579] = "ACTION_TEXT_OUTPUT", t[t.ACTION_TEXT_OUTPUT_DELTA = 1048580] = "ACTION_TEXT_OUTPUT_DELTA", t[t.ACTION_TEXT_OUTPUT_DELTA_FULL = 1048581] = "ACTION_TEXT_OUTPUT_DELTA_FULL", t[t.ACTION_SET_STATE = 1048582] = "ACTION_SET_STATE", t[t.ACTION_TAP = 1048583] = "ACTION_TAP", t[t.ACTION_PAN = 1048584] = "ACTION_PAN", t[t.ACTION_ZOOM = 1048585] = "ACTION_ZOOM", t[t.ACTION_FILE_UPLOAD_BEGIN = 1048586] = "ACTION_FILE_UPLOAD_BEGIN", t[t.ACTION_FILE_UPLOAD_DATA = 1048587] = "ACTION_FILE_UPLOAD_DATA", t[t.ACTION_FILE_UPLOAD_ACK = 1048588] = "ACTION_FILE_UPLOAD_ACK", t[t.ACTION_FILE_UPLOAD_END = 1048589] = "ACTION_FILE_UPLOAD_END", t[t.ACTION_FILE_UPLOAD_RESULT = 1048590] = "ACTION_FILE_UPLOAD_RESULT", t[t.ACTION_OPEN_CHANNEL = 1048591] = "ACTION_OPEN_CHANNEL", t[t.ACTION_OPEN_EXTERNAL_URL = 1048592] = "ACTION_OPEN_EXTERNAL_URL", t[t.ACTION_UI_OPEN_VIEW = 1048593] = "ACTION_UI_OPEN_VIEW", t[t.ACTION_UI_CLOSE_VIEW = 1048594] = "ACTION_UI_CLOSE_VIEW", t[t.ACTION_UI_BLOCKING_BEGIN = 1048595] = "ACTION_UI_BLOCKING_BEGIN", t[t.ACTION_UI_BLOCKING_END = 1048596] = "ACTION_UI_BLOCKING_END", t[t.ACTION_UI_UPDATE_TEXT_DELTA = 1048597] = "ACTION_UI_UPDATE_TEXT_DELTA", t[t.ACTION_UI_DELETE_CONTAINER = 1048598] = "ACTION_UI_DELETE_CONTAINER", t[t.ACTION_UPDATE_GFX_SHADER = 1048599] = "ACTION_UPDATE_GFX_SHADER", t[t.ACTION_FUNCTION_REGISTER = 1048600] = "ACTION_FUNCTION_REGISTER", t[t.ACTION_FUNCTION_CALL = 1048601] = "ACTION_FUNCTION_CALL", t[t.ACTION_FUNCTION_RESULT = 1048602] = "ACTION_FUNCTION_RESULT", t[t.ACTION_GENERATE_ANSWER = 1048603] = "ACTION_GENERATE_ANSWER", t[t.ACTION_REGENERATE_ANSWER = 1048604] = "ACTION_REGENERATE_ANSWER", t[t.ACTION_CLEAR_CHAT_MESSAGE_HISTORY = 1048605] = "ACTION_CLEAR_CHAT_MESSAGE_HISTORY", t[t.ACTION_CLEAR_STATE = 1048606] = "ACTION_CLEAR_STATE", t[t.ACTION_RELOAD_CHANNELS = 1048607] = "ACTION_RELOAD_CHANNELS", t[t.ACTION_RELOAD_PROFILE = 1048608] = "ACTION_RELOAD_PROFILE", t[t.ACTION_CLASSIFICATION_RESULT = 1048609] = "ACTION_CLASSIFICATION_RESULT", t[t.ACTION_AUDIO_STOP = 1048610] = "ACTION_AUDIO_STOP", t[t.ACTION_CALL_TEXT = 1048611] = "ACTION_CALL_TEXT", t[t.ACTION_RELOAD_APPLICATION = 1048612] = "ACTION_RELOAD_APPLICATION", t[t.ACTION_CANCEL_GENERATION = 1048613] = "ACTION_CANCEL_GENERATION", t[t.ACTION_UI_SET_CONTAINER_STABLE = 1048614] = "ACTION_UI_SET_CONTAINER_STABLE", t[t.ACTION_SPEECH_RECOGNIZED = 1048615] = "ACTION_SPEECH_RECOGNIZED", t[t.ACTION_CALL_RESULT = 1048616] = "ACTION_CALL_RESULT", t[t.ACTION_RELOAD_PROVIDER = 1048617] = "ACTION_RELOAD_PROVIDER", t[t.ACTION_DOWNLOAD = 1048618] = "ACTION_DOWNLOAD", t[t.ACTION_SCROLL_TO_CONTAINER = 1048619] = "ACTION_SCROLL_TO_CONTAINER", t[t.ACTION_UI_CLEAR_STREAM = 1048620] = "ACTION_UI_CLEAR_STREAM", t[t.ACTION_PLAY_SOUND = 1048621] = "ACTION_PLAY_SOUND", t[t.ACTION_ENTER_FULLSCREEN = 1048622] = "ACTION_ENTER_FULLSCREEN", t[t.ACTION_STOP_SOUND = 1048623] = "ACTION_STOP_SOUND", t[t.ACTION_START_RECORDING = 1048624] = "ACTION_START_RECORDING", t[t.ACTION_STOP_RECORDING = 1048625] = "ACTION_STOP_RECORDING", t[t.ACTION_FUNCTION_ENUMERATION_ITEM = 1048627] = "ACTION_FUNCTION_ENUMERATION_ITEM", t[t.ACTION_FUNCTION_ENUMERATION_END = 1048628] = "ACTION_FUNCTION_ENUMERATION_END", t[t.ACTION_FUNCTION_CANCEL = 1048629] = "ACTION_FUNCTION_CANCEL", t[t.ACTION_FUNCTION_DISPOSE = 1048630] = "ACTION_FUNCTION_DISPOSE", t[t.ACTION_FUNCTION_ERROR = 1048631] = "ACTION_FUNCTION_ERROR", t[t.ACTION_FUNCTION_ACK = 1048632] = "ACTION_FUNCTION_ACK", t[t.ACTION_FUNCTION_AWAITING_APPROVAL = 1048633] = "ACTION_FUNCTION_AWAITING_APPROVAL", t[t.ACTION_FUNCTION_APPROVAL_REQUIRED = 1048634] = "ACTION_FUNCTION_APPROVAL_REQUIRED", t[t.ACTION_FUNCTION_APPROVAL_RESPONSE = 1048635] = "ACTION_FUNCTION_APPROVAL_RESPONSE", t[t.UI_UPDATE_ACK = 1048636] = "UI_UPDATE_ACK", t[t.ACTION_CALL2 = 1048637] = "ACTION_CALL2", t[t.ACTION_FUNCTION_REGISTER_BATCH = 1048638] = "ACTION_FUNCTION_REGISTER_BATCH", t[t.ACTION_TRIGGER_GIT_PULL = 1048639] = "ACTION_TRIGGER_GIT_PULL", t[t.ACTION_FILE_UPLOAD_CALLBACK = 1048640] = "ACTION_FILE_UPLOAD_CALLBACK", t[t.ACTION_CUSTOM_USER_MESSAGE = 1048641] = "ACTION_CUSTOM_USER_MESSAGE", t[t.ACTION_URL_CHANGED = 1048642] = "ACTION_URL_CHANGED", t[t.ACTION_FILE_UPLOAD_PRE_START2 = 1048643] = "ACTION_FILE_UPLOAD_PRE_START2", t[t.ACTION_FILE_UPLOAD_PRE_START_RESPONSE2 = 1048644] = "ACTION_FILE_UPLOAD_PRE_START_RESPONSE2", t[t.ACTION_FILE_UPLOAD_START2 = 1048645] = "ACTION_FILE_UPLOAD_START2", t[t.ACTION_FILE_UPLOAD_START_RESPONSE2 = 1048646] = "ACTION_FILE_UPLOAD_START_RESPONSE2", t[t.ACTION_FILE_UPLOAD_DATA2 = 1048647] = "ACTION_FILE_UPLOAD_DATA2", t[t.ACTION_FILE_UPLOAD_ACK2 = 1048648] = "ACTION_FILE_UPLOAD_ACK2", t[t.ACTION_FILE_UPLOAD_END2 = 1048649] = "ACTION_FILE_UPLOAD_END2", t[t.ACTION_FILE_UPLOAD_COMPLETE2 = 1048650] = "ACTION_FILE_UPLOAD_COMPLETE2", t[t.ACTION_FUNCTION_ENUMERATION_ITEM_BATCH = 1048651] = "ACTION_FUNCTION_ENUMERATION_ITEM_BATCH", t[t.ACTION_CALL_ACK = 1048652] = "ACTION_CALL_ACK", t[t.GROUP_UI = 2097152] = "GROUP_UI", t[t.UI_STREAM_BEGIN = 2097153] = "UI_STREAM_BEGIN", t[t.UI_STREAM_END = 2097154] = "UI_STREAM_END", t[t.UI_CONTAINER_BEGIN = 2097155] = "UI_CONTAINER_BEGIN", t[t.UI_CONTAINER_END = 2097156] = "UI_CONTAINER_END", t[t.UI_SECTION_BEGIN = 2097157] = "UI_SECTION_BEGIN", t[t.UI_SECTION_END = 2097158] = "UI_SECTION_END", t[t.UI_LIST_BEGIN = 2097159] = "UI_LIST_BEGIN", t[t.UI_LIST_ITEM = 2097160] = "UI_LIST_ITEM", t[t.UI_LIST_END = 2097161] = "UI_LIST_END", t[t.UI_TEXT = 2097162] = "UI_TEXT", t[t.UI_HEADER = 2097163] = "UI_HEADER", t[t.UI_SEPARATOR = 2097164] = "UI_SEPARATOR", t[t.UI_BUTTON = 2097165] = "UI_BUTTON", t[t.UI_ICON_BUTTON = 2097166] = "UI_ICON_BUTTON", t[t.UI_IMAGE = 2097167] = "UI_IMAGE", t[t.UI_FILE = 2097168] = "UI_FILE", t[t.UI_BADGE = 2097169] = "UI_BADGE", t[t.UI_CONTENT_LINK = 2097170] = "UI_CONTENT_LINK", t[t.UI_MAP = 2097171] = "UI_MAP", t[t.UI_VEGA_CHART = 2097172] = "UI_VEGA_CHART", t[t.UI_ICON = 2097173] = "UI_ICON", t[t.UI_FILE_UPLOAD_SECTION_BEGIN = 2097174] = "UI_FILE_UPLOAD_SECTION_BEGIN", t[t.UI_FILE_UPLOAD_SECTION_END = 2097175] = "UI_FILE_UPLOAD_SECTION_END", t[t.UI_MATERIAL_SYMBOL = 2097176] = "UI_MATERIAL_SYMBOL", t[t.UI_BUTTON_BEGIN = 2097177] = "UI_BUTTON_BEGIN", t[t.UI_BUTTON_END = 2097178] = "UI_BUTTON_END", t[t.UI_CONTAINER_DELETE = 2097179] = "UI_CONTAINER_DELETE", t[t.UI_INPUT_TEXT = 2097180] = "UI_INPUT_TEXT", t[t.UI_PROGRESS_BAR = 2097181] = "UI_PROGRESS_BAR", t[t.UI_UPDATE_BEGIN = 2097182] = "UI_UPDATE_BEGIN", t[t.UI_UPDATE_END = 2097183] = "UI_UPDATE_END", t[t.UI_AUTOCOMPLETE = 2097184] = "UI_AUTOCOMPLETE", t[t.UI_CHECKBOX = 2097185] = "UI_CHECKBOX", t[t.UI_QS = 2097186] = "UI_QS", t[t.UI_ELEMENT = 2097187] = "UI_ELEMENT", t[t.UI_STYLES = 2097188] = "UI_STYLES", t[t.UI_SVG = 2097189] = "UI_SVG", t[t.UI_UPDATE = 2097190] = "UI_UPDATE", t[t.UI_INIT = 2097191] = "UI_INIT", t[t.UI_STYLES_BATCH = 2097192] = "UI_STYLES_BATCH", t[t.UI_STYLES_DELETE = 2097193] = "UI_STYLES_DELETE", t[t.GROUP_COMMON = 4128768] = "GROUP_COMMON", t[t.GROUP_AUDIO = 4194304] = "GROUP_AUDIO", t[t.AUDIO_STREAM_BEGIN = 4194305] = "AUDIO_STREAM_BEGIN", t[t.AUDIO_STREAM_END = 4194306] = "AUDIO_STREAM_END", t[t.AUDIO_FRAME = 4194307] = "AUDIO_FRAME", t[t.AUDIO_FRAME_VOLUME = 4194308] = "AUDIO_FRAME_VOLUME", t[t.AUDIO_FRAME2 = 4194309] = "AUDIO_FRAME2", t[t.AUDIO_SHAPE_FRAME = 4194310] = "AUDIO_SHAPE_FRAME", t[t.GROUP_VIDEO = 8388608] = "GROUP_VIDEO", t[t.VIDEO_STREAM_BEGIN = 8388609] = "VIDEO_STREAM_BEGIN", t[t.VIDEO_STREAM_END = 8388610] = "VIDEO_STREAM_END", t[t.VIDEO_FRAME = 8388611] = "VIDEO_FRAME", t[t.VIDEO_REQUEST_IDR_FRAME = 8388612] = "VIDEO_REQUEST_IDR_FRAME", t[t.VIDEO_INVALIDATE_FRAME = 8388613] = "VIDEO_INVALIDATE_FRAME", t[t.GROUP_TRACKING = 16777216] = "GROUP_TRACKING", t[t.TRACKING_STREAM_BEGIN = 16777217] = "TRACKING_STREAM_BEGIN", t[t.TRACKING_STREAM_END = 16777218] = "TRACKING_STREAM_END", t[t.TRACKING_FRAME = 16777219] = "TRACKING_FRAME", t[t.GROUP_SCENE = 33554432] = "GROUP_SCENE", t[t.SCENE_MESH = 33554433] = "SCENE_MESH", t[t.SCENE_ARRAY = 33554434] = "SCENE_ARRAY", t[t.GROUP_ALL = 67043328] = "GROUP_ALL", t[t.GROUP_APP_LOCAL = 1073741824] = "GROUP_APP_LOCAL", t[t.CONSTANT_GROUP_MASK = 2147418112] = "CONSTANT_GROUP_MASK", t))(L || {});
998
+ var ot = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.Opus = 1] = "Opus", t[t.Mp3 = 2] = "Mp3", t[t.RawPcm16 = 3] = "RawPcm16", t))(ot || {}), lt = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.MobileWeb = 1] = "MobileWeb", t[t.MobileApp = 2] = "MobileApp", t[t.DesktopWeb = 3] = "DesktopWeb", t[t.DesktopApp = 4] = "DesktopApp", t))(lt || {}), It = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.Backend = 2] = "Backend", t[t.Server = 4] = "Server", t[t.Plugin = 8] = "Plugin", t[t.Browser = 16] = "Browser", t))(It || {}), Et = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.MessagePack = 1] = "MessagePack", t[t.MemoryPack = 2] = "MemoryPack", t[t.Json = 4] = "Json", t[t.Teleport = 8] = "Teleport", t[t.All = 15] = "All", t))(Et || {}), _t = /* @__PURE__ */ ((t) => (t[t.Face = 0] = "Face", t[t.Hands = 1] = "Hands", t[t.Pose = 2] = "Pose", t[t.All = 3] = "All", t))(_t || {}), ht = /* @__PURE__ */ ((t) => (t[t.Css = 0] = "Css", t[t.Flutter = 1] = "Flutter", t))(ht || {}), ut = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.Machine = 1] = "Machine", t[t.Human = 2] = "Human", t))(ut || {}), ct = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.H264 = 1] = "H264", t[t.Vp8 = 2] = "Vp8", t[t.Vp9 = 3] = "Vp9", t[t.Av1 = 4] = "Av1", t))(ct || {}), ft = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.DotNet = 1] = "DotNet", t[t.TypeScript = 2] = "TypeScript", t[t.Cpp = 3] = "Cpp", t[t.Dart = 4] = "Dart", t[t.Rust = 5] = "Rust", t))(ft || {}), Tt = /* @__PURE__ */ ((t) => (t[t.Local = 0] = "Local", t[t.Cloud = 1] = "Cloud", t))(Tt || {}), At = /* @__PURE__ */ ((t) => (t[t.Bundle = 0] = "Bundle", t[t.GitSource = 1] = "GitSource", t))(At || {}), L = /* @__PURE__ */ ((t) => (t[t.NONE = 0] = "NONE", t[t.CONSTANT_GROUP_BITS = 15] = "CONSTANT_GROUP_BITS", t[t.CONSTANT_GROUP_OFFSET = 16] = "CONSTANT_GROUP_OFFSET", t[t.GROUP_CORE = 65536] = "GROUP_CORE", t[t.CORE_AUTH_RESPONSE = 65537] = "CORE_AUTH_RESPONSE", t[t.CORE_AUTH_TICKET = 65538] = "CORE_AUTH_TICKET", t[t.CORE_GLOBAL_STATE = 65539] = "CORE_GLOBAL_STATE", t[t.CORE_ON_SERVER_STATUS_PING = 65540] = "CORE_ON_SERVER_STATUS_PING", t[t.CORE_ON_USER_JOINED = 65541] = "CORE_ON_USER_JOINED", t[t.CORE_ON_USER_LEFT = 65542] = "CORE_ON_USER_LEFT", t[t.CORE_ON_CLIENT_JOINED = 65543] = "CORE_ON_CLIENT_JOINED", t[t.CORE_ON_CLIENT_LEFT = 65544] = "CORE_ON_CLIENT_LEFT", t[t.CORE_ON_SERVER_STARTED = 65545] = "CORE_ON_SERVER_STARTED", t[t.CORE_ON_SERVER_STOPPED = 65546] = "CORE_ON_SERVER_STOPPED", t[t.CORE_ON_SERVER_STOPPING = 65547] = "CORE_ON_SERVER_STOPPING", t[t.CORE_ON_CLIENT_READY = 65548] = "CORE_ON_CLIENT_READY", t[t.CORE_CLIENT_READY = 65549] = "CORE_CLIENT_READY", t[t.CORE_SERVER_INIT = 65550] = "CORE_SERVER_INIT", t[t.CORE_ON_PLUGIN_RELOADED = 65551] = "CORE_ON_PLUGIN_RELOADED", t[t.CORE_SERVER_START = 65552] = "CORE_SERVER_START", t[t.CORE_SERVER_STOP = 65553] = "CORE_SERVER_STOP", t[t.CORE_ON_HOSTED_SERVER_EXIT = 65554] = "CORE_ON_HOSTED_SERVER_EXIT", t[t.CORE_DYNAMIC_CONFIG = 65555] = "CORE_DYNAMIC_CONFIG", t[t.CORE_PROXY_RPC_AUTH_TICKET = 65556] = "CORE_PROXY_RPC_AUTH_TICKET", t[t.CORE_SERVER_INIT2 = 65557] = "CORE_SERVER_INIT2", t[t.CORE_UPDATE_CLIENT_CONTEXT = 65558] = "CORE_UPDATE_CLIENT_CONTEXT", t[t.CORE_BACKGROUND_WORK_ACTIVE = 65559] = "CORE_BACKGROUND_WORK_ACTIVE", t[t.CORE_ON_CLIENT_LEFT_AFTER_GRACE_PERIOD = 65560] = "CORE_ON_CLIENT_LEFT_AFTER_GRACE_PERIOD", t[t.CORE_WEBRTC_OFFER = 65566] = "CORE_WEBRTC_OFFER", t[t.CORE_WEBRTC_ANSWER = 65567] = "CORE_WEBRTC_ANSWER", t[t.CORE_WEBRTC_ICE_CANDIDATE = 65568] = "CORE_WEBRTC_ICE_CANDIDATE", t[t.CORE_WEBRTC_READY = 65569] = "CORE_WEBRTC_READY", t[t.CORE_WEBRTC_AUDIO_SEGMENT = 65570] = "CORE_WEBRTC_AUDIO_SEGMENT", t[t.CORE_WEBRTC_TRACK_MAP = 65571] = "CORE_WEBRTC_TRACK_MAP", t[t.CORE_WEBRTC_VIDEO_CAPTURE = 65572] = "CORE_WEBRTC_VIDEO_CAPTURE", t[t.CORE_RELAY_AGENT_AUTH = 65576] = "CORE_RELAY_AGENT_AUTH", t[t.CORE_RELAY_AGENT_AUTH_RESULT = 65577] = "CORE_RELAY_AGENT_AUTH_RESULT", t[t.CORE_RELAY_HEARTBEAT = 65578] = "CORE_RELAY_HEARTBEAT", t[t.CORE_RELAY_TCP_CONNECTION_OPENED = 65579] = "CORE_RELAY_TCP_CONNECTION_OPENED", t[t.CORE_RELAY_TCP_CONNECTION_CLOSED = 65580] = "CORE_RELAY_TCP_CONNECTION_CLOSED", t[t.CORE_RELAY_TCP_DATA = 65581] = "CORE_RELAY_TCP_DATA", t[t.CORE_RELAY_UDP_DATA = 65582] = "CORE_RELAY_UDP_DATA", t[t.CORE_RELAY_ADD_TUNNEL = 65583] = "CORE_RELAY_ADD_TUNNEL", t[t.CORE_RELAY_TUNNEL_ADDED = 65584] = "CORE_RELAY_TUNNEL_ADDED", t[t.CORE_RELAY_REMOVE_TUNNEL = 65585] = "CORE_RELAY_REMOVE_TUNNEL", t[t.CORE_IKON_SERVER_ENDPOINT_HOST_INFO = 65586] = "CORE_IKON_SERVER_ENDPOINT_HOST_INFO", t[t.GROUP_KEEPALIVE = 131072] = "GROUP_KEEPALIVE", t[t.KEEPALIVE_REQUEST = 131073] = "KEEPALIVE_REQUEST", t[t.KEEPALIVE_RESPONSE = 131074] = "KEEPALIVE_RESPONSE", t[t.GROUP_EVENTS = 262144] = "GROUP_EVENTS", t[t.EVENTS_PROFILE_UPDATE = 262145] = "EVENTS_PROFILE_UPDATE", t[t.EVENTS_CHANNEL_COMPLETE = 262146] = "EVENTS_CHANNEL_COMPLETE", t[t.EVENTS_SPEECH_PLAYBACK_COMPLETE = 262147] = "EVENTS_SPEECH_PLAYBACK_COMPLETE", t[t.GROUP_ANALYTICS = 524288] = "GROUP_ANALYTICS", t[t.ANALYTICS_LOGS = 524289] = "ANALYTICS_LOGS", t[t.ANALYTICS_EVENTS = 524290] = "ANALYTICS_EVENTS", t[t.ANALYTICS_USAGES = 524291] = "ANALYTICS_USAGES", t[t.ANALYTICS_USAGE = 524292] = "ANALYTICS_USAGE", t[t.ANALYTICS_SPECIAL_LOG = 524293] = "ANALYTICS_SPECIAL_LOG", t[t.ANALYTICS_PROCESSING_UPDATE = 524294] = "ANALYTICS_PROCESSING_UPDATE", t[t.ANALYTICS_REACTIVE_PROCESSING_UPDATE = 524295] = "ANALYTICS_REACTIVE_PROCESSING_UPDATE", t[t.ANALYTICS_IKON_PROXY_SERVER_STATS = 524296] = "ANALYTICS_IKON_PROXY_SERVER_STATS", t[t.ANALYTICS_IKON_RELAY_SERVER_STATS = 524297] = "ANALYTICS_IKON_RELAY_SERVER_STATS", t[t.ANALYTICS_IKON_TURN_SERVER_STATS = 524298] = "ANALYTICS_IKON_TURN_SERVER_STATS", t[t.GROUP_ACTIONS = 1048576] = "GROUP_ACTIONS", t[t.ACTION_CALL = 1048577] = "ACTION_CALL", t[t.ACTION_ACTIVE = 1048578] = "ACTION_ACTIVE", t[t.ACTION_TEXT_OUTPUT = 1048579] = "ACTION_TEXT_OUTPUT", t[t.ACTION_TEXT_OUTPUT_DELTA = 1048580] = "ACTION_TEXT_OUTPUT_DELTA", t[t.ACTION_TEXT_OUTPUT_DELTA_FULL = 1048581] = "ACTION_TEXT_OUTPUT_DELTA_FULL", t[t.ACTION_SET_STATE = 1048582] = "ACTION_SET_STATE", t[t.ACTION_TAP = 1048583] = "ACTION_TAP", t[t.ACTION_PAN = 1048584] = "ACTION_PAN", t[t.ACTION_ZOOM = 1048585] = "ACTION_ZOOM", t[t.ACTION_FILE_UPLOAD_BEGIN = 1048586] = "ACTION_FILE_UPLOAD_BEGIN", t[t.ACTION_FILE_UPLOAD_DATA = 1048587] = "ACTION_FILE_UPLOAD_DATA", t[t.ACTION_FILE_UPLOAD_ACK = 1048588] = "ACTION_FILE_UPLOAD_ACK", t[t.ACTION_FILE_UPLOAD_END = 1048589] = "ACTION_FILE_UPLOAD_END", t[t.ACTION_FILE_UPLOAD_RESULT = 1048590] = "ACTION_FILE_UPLOAD_RESULT", t[t.ACTION_OPEN_CHANNEL = 1048591] = "ACTION_OPEN_CHANNEL", t[t.ACTION_OPEN_EXTERNAL_URL = 1048592] = "ACTION_OPEN_EXTERNAL_URL", t[t.ACTION_UI_OPEN_VIEW = 1048593] = "ACTION_UI_OPEN_VIEW", t[t.ACTION_UI_CLOSE_VIEW = 1048594] = "ACTION_UI_CLOSE_VIEW", t[t.ACTION_UI_BLOCKING_BEGIN = 1048595] = "ACTION_UI_BLOCKING_BEGIN", t[t.ACTION_UI_BLOCKING_END = 1048596] = "ACTION_UI_BLOCKING_END", t[t.ACTION_UI_UPDATE_TEXT_DELTA = 1048597] = "ACTION_UI_UPDATE_TEXT_DELTA", t[t.ACTION_UI_DELETE_CONTAINER = 1048598] = "ACTION_UI_DELETE_CONTAINER", t[t.ACTION_UPDATE_GFX_SHADER = 1048599] = "ACTION_UPDATE_GFX_SHADER", t[t.ACTION_FUNCTION_REGISTER = 1048600] = "ACTION_FUNCTION_REGISTER", t[t.ACTION_FUNCTION_CALL = 1048601] = "ACTION_FUNCTION_CALL", t[t.ACTION_FUNCTION_RESULT = 1048602] = "ACTION_FUNCTION_RESULT", t[t.ACTION_GENERATE_ANSWER = 1048603] = "ACTION_GENERATE_ANSWER", t[t.ACTION_REGENERATE_ANSWER = 1048604] = "ACTION_REGENERATE_ANSWER", t[t.ACTION_CLEAR_CHAT_MESSAGE_HISTORY = 1048605] = "ACTION_CLEAR_CHAT_MESSAGE_HISTORY", t[t.ACTION_CLEAR_STATE = 1048606] = "ACTION_CLEAR_STATE", t[t.ACTION_RELOAD_CHANNELS = 1048607] = "ACTION_RELOAD_CHANNELS", t[t.ACTION_RELOAD_PROFILE = 1048608] = "ACTION_RELOAD_PROFILE", t[t.ACTION_CLASSIFICATION_RESULT = 1048609] = "ACTION_CLASSIFICATION_RESULT", t[t.ACTION_AUDIO_STOP = 1048610] = "ACTION_AUDIO_STOP", t[t.ACTION_CALL_TEXT = 1048611] = "ACTION_CALL_TEXT", t[t.ACTION_RELOAD_APPLICATION = 1048612] = "ACTION_RELOAD_APPLICATION", t[t.ACTION_CANCEL_GENERATION = 1048613] = "ACTION_CANCEL_GENERATION", t[t.ACTION_UI_SET_CONTAINER_STABLE = 1048614] = "ACTION_UI_SET_CONTAINER_STABLE", t[t.ACTION_SPEECH_RECOGNIZED = 1048615] = "ACTION_SPEECH_RECOGNIZED", t[t.ACTION_CALL_RESULT = 1048616] = "ACTION_CALL_RESULT", t[t.ACTION_RELOAD_PROVIDER = 1048617] = "ACTION_RELOAD_PROVIDER", t[t.ACTION_DOWNLOAD = 1048618] = "ACTION_DOWNLOAD", t[t.ACTION_SCROLL_TO_CONTAINER = 1048619] = "ACTION_SCROLL_TO_CONTAINER", t[t.ACTION_UI_CLEAR_STREAM = 1048620] = "ACTION_UI_CLEAR_STREAM", t[t.ACTION_PLAY_SOUND = 1048621] = "ACTION_PLAY_SOUND", t[t.ACTION_ENTER_FULLSCREEN = 1048622] = "ACTION_ENTER_FULLSCREEN", t[t.ACTION_STOP_SOUND = 1048623] = "ACTION_STOP_SOUND", t[t.ACTION_START_RECORDING = 1048624] = "ACTION_START_RECORDING", t[t.ACTION_STOP_RECORDING = 1048625] = "ACTION_STOP_RECORDING", t[t.ACTION_FUNCTION_ENUMERATION_ITEM = 1048627] = "ACTION_FUNCTION_ENUMERATION_ITEM", t[t.ACTION_FUNCTION_ENUMERATION_END = 1048628] = "ACTION_FUNCTION_ENUMERATION_END", t[t.ACTION_FUNCTION_CANCEL = 1048629] = "ACTION_FUNCTION_CANCEL", t[t.ACTION_FUNCTION_DISPOSE = 1048630] = "ACTION_FUNCTION_DISPOSE", t[t.ACTION_FUNCTION_ERROR = 1048631] = "ACTION_FUNCTION_ERROR", t[t.ACTION_FUNCTION_ACK = 1048632] = "ACTION_FUNCTION_ACK", t[t.ACTION_FUNCTION_AWAITING_APPROVAL = 1048633] = "ACTION_FUNCTION_AWAITING_APPROVAL", t[t.ACTION_FUNCTION_APPROVAL_REQUIRED = 1048634] = "ACTION_FUNCTION_APPROVAL_REQUIRED", t[t.ACTION_FUNCTION_APPROVAL_RESPONSE = 1048635] = "ACTION_FUNCTION_APPROVAL_RESPONSE", t[t.UI_UPDATE_ACK = 1048636] = "UI_UPDATE_ACK", t[t.ACTION_CALL2 = 1048637] = "ACTION_CALL2", t[t.ACTION_FUNCTION_REGISTER_BATCH = 1048638] = "ACTION_FUNCTION_REGISTER_BATCH", t[t.ACTION_TRIGGER_GIT_PULL = 1048639] = "ACTION_TRIGGER_GIT_PULL", t[t.ACTION_FILE_UPLOAD_CALLBACK = 1048640] = "ACTION_FILE_UPLOAD_CALLBACK", t[t.ACTION_CUSTOM_USER_MESSAGE = 1048641] = "ACTION_CUSTOM_USER_MESSAGE", t[t.ACTION_URL_CHANGED = 1048642] = "ACTION_URL_CHANGED", t[t.ACTION_FILE_UPLOAD_PRE_START2 = 1048643] = "ACTION_FILE_UPLOAD_PRE_START2", t[t.ACTION_FILE_UPLOAD_PRE_START_RESPONSE2 = 1048644] = "ACTION_FILE_UPLOAD_PRE_START_RESPONSE2", t[t.ACTION_FILE_UPLOAD_START2 = 1048645] = "ACTION_FILE_UPLOAD_START2", t[t.ACTION_FILE_UPLOAD_START_RESPONSE2 = 1048646] = "ACTION_FILE_UPLOAD_START_RESPONSE2", t[t.ACTION_FILE_UPLOAD_DATA2 = 1048647] = "ACTION_FILE_UPLOAD_DATA2", t[t.ACTION_FILE_UPLOAD_ACK2 = 1048648] = "ACTION_FILE_UPLOAD_ACK2", t[t.ACTION_FILE_UPLOAD_END2 = 1048649] = "ACTION_FILE_UPLOAD_END2", t[t.ACTION_FILE_UPLOAD_COMPLETE2 = 1048650] = "ACTION_FILE_UPLOAD_COMPLETE2", t[t.ACTION_FUNCTION_ENUMERATION_ITEM_BATCH = 1048651] = "ACTION_FUNCTION_ENUMERATION_ITEM_BATCH", t[t.ACTION_CALL_ACK = 1048652] = "ACTION_CALL_ACK", t[t.GROUP_UI = 2097152] = "GROUP_UI", t[t.UI_STREAM_BEGIN = 2097153] = "UI_STREAM_BEGIN", t[t.UI_STREAM_END = 2097154] = "UI_STREAM_END", t[t.UI_CONTAINER_BEGIN = 2097155] = "UI_CONTAINER_BEGIN", t[t.UI_CONTAINER_END = 2097156] = "UI_CONTAINER_END", t[t.UI_SECTION_BEGIN = 2097157] = "UI_SECTION_BEGIN", t[t.UI_SECTION_END = 2097158] = "UI_SECTION_END", t[t.UI_LIST_BEGIN = 2097159] = "UI_LIST_BEGIN", t[t.UI_LIST_ITEM = 2097160] = "UI_LIST_ITEM", t[t.UI_LIST_END = 2097161] = "UI_LIST_END", t[t.UI_TEXT = 2097162] = "UI_TEXT", t[t.UI_HEADER = 2097163] = "UI_HEADER", t[t.UI_SEPARATOR = 2097164] = "UI_SEPARATOR", t[t.UI_BUTTON = 2097165] = "UI_BUTTON", t[t.UI_ICON_BUTTON = 2097166] = "UI_ICON_BUTTON", t[t.UI_IMAGE = 2097167] = "UI_IMAGE", t[t.UI_FILE = 2097168] = "UI_FILE", t[t.UI_BADGE = 2097169] = "UI_BADGE", t[t.UI_CONTENT_LINK = 2097170] = "UI_CONTENT_LINK", t[t.UI_MAP = 2097171] = "UI_MAP", t[t.UI_VEGA_CHART = 2097172] = "UI_VEGA_CHART", t[t.UI_ICON = 2097173] = "UI_ICON", t[t.UI_FILE_UPLOAD_SECTION_BEGIN = 2097174] = "UI_FILE_UPLOAD_SECTION_BEGIN", t[t.UI_FILE_UPLOAD_SECTION_END = 2097175] = "UI_FILE_UPLOAD_SECTION_END", t[t.UI_MATERIAL_SYMBOL = 2097176] = "UI_MATERIAL_SYMBOL", t[t.UI_BUTTON_BEGIN = 2097177] = "UI_BUTTON_BEGIN", t[t.UI_BUTTON_END = 2097178] = "UI_BUTTON_END", t[t.UI_CONTAINER_DELETE = 2097179] = "UI_CONTAINER_DELETE", t[t.UI_INPUT_TEXT = 2097180] = "UI_INPUT_TEXT", t[t.UI_PROGRESS_BAR = 2097181] = "UI_PROGRESS_BAR", t[t.UI_UPDATE_BEGIN = 2097182] = "UI_UPDATE_BEGIN", t[t.UI_UPDATE_END = 2097183] = "UI_UPDATE_END", t[t.UI_AUTOCOMPLETE = 2097184] = "UI_AUTOCOMPLETE", t[t.UI_CHECKBOX = 2097185] = "UI_CHECKBOX", t[t.UI_QS = 2097186] = "UI_QS", t[t.UI_ELEMENT = 2097187] = "UI_ELEMENT", t[t.UI_STYLES = 2097188] = "UI_STYLES", t[t.UI_SVG = 2097189] = "UI_SVG", t[t.UI_UPDATE = 2097190] = "UI_UPDATE", t[t.UI_INIT = 2097191] = "UI_INIT", t[t.UI_STYLES_BATCH = 2097192] = "UI_STYLES_BATCH", t[t.UI_STYLES_DELETE = 2097193] = "UI_STYLES_DELETE", t[t.GROUP_COMMON = 4128768] = "GROUP_COMMON", t[t.GROUP_AUDIO = 4194304] = "GROUP_AUDIO", t[t.AUDIO_STREAM_BEGIN = 4194305] = "AUDIO_STREAM_BEGIN", t[t.AUDIO_STREAM_END = 4194306] = "AUDIO_STREAM_END", t[t.AUDIO_FRAME = 4194307] = "AUDIO_FRAME", t[t.AUDIO_FRAME_VOLUME = 4194308] = "AUDIO_FRAME_VOLUME", t[t.AUDIO_FRAME2 = 4194309] = "AUDIO_FRAME2", t[t.AUDIO_SHAPE_FRAME = 4194310] = "AUDIO_SHAPE_FRAME", t[t.GROUP_VIDEO = 8388608] = "GROUP_VIDEO", t[t.VIDEO_STREAM_BEGIN = 8388609] = "VIDEO_STREAM_BEGIN", t[t.VIDEO_STREAM_END = 8388610] = "VIDEO_STREAM_END", t[t.VIDEO_FRAME = 8388611] = "VIDEO_FRAME", t[t.VIDEO_REQUEST_IDR_FRAME = 8388612] = "VIDEO_REQUEST_IDR_FRAME", t[t.VIDEO_INVALIDATE_FRAME = 8388613] = "VIDEO_INVALIDATE_FRAME", t[t.GROUP_TRACKING = 16777216] = "GROUP_TRACKING", t[t.TRACKING_STREAM_BEGIN = 16777217] = "TRACKING_STREAM_BEGIN", t[t.TRACKING_STREAM_END = 16777218] = "TRACKING_STREAM_END", t[t.TRACKING_FRAME = 16777219] = "TRACKING_FRAME", t[t.GROUP_SCENE = 33554432] = "GROUP_SCENE", t[t.SCENE_MESH = 33554433] = "SCENE_MESH", t[t.SCENE_ARRAY = 33554434] = "SCENE_ARRAY", t[t.GROUP_ALL = 67043328] = "GROUP_ALL", t[t.GROUP_APP_LOCAL = 1073741824] = "GROUP_APP_LOCAL", t[t.CONSTANT_GROUP_MASK = 2147418112] = "CONSTANT_GROUP_MASK", t))(L || {});
999
999
  const le = 161083277, Ie = 265814330, Ee = 1368629611, _e = 2431514951, he = 2514959030, ue = 2745379226, ce = 3282782683, fe = 3284746250, Te = 4101844078;
1000
- function Nt(t) {
1000
+ function St(t) {
1001
1001
  const e = {};
1002
- return St(e), e;
1002
+ return Nt(e), e;
1003
1003
  }
1004
- function St(t) {
1004
+ function Nt(t) {
1005
1005
  return t.StreamId = "", t.Description = "", t.SourceType = "", t.Codec = ot.Unknown, t.CodecDetails = "", t.SampleRate = 0, t.Channels = 0, t.ShapeSets = void 0, t.CorrelationId = void 0, t;
1006
1006
  }
1007
1007
  function Ae(t, e) {
1008
- const r = e ?? Nt();
1009
- return St(r), Ne(t, r), r;
1008
+ const r = e ?? St();
1009
+ return Nt(r), Se(t, r), r;
1010
1010
  }
1011
- function Ne(t, e) {
1011
+ function Se(t, e) {
1012
1012
  let r;
1013
1013
  for (; (r = t.next()) !== null; )
1014
1014
  switch (r.fieldId) {
@@ -1022,7 +1022,7 @@ function Ne(t, e) {
1022
1022
  e.ShapeSets = void 0;
1023
1023
  break;
1024
1024
  }
1025
- e.ShapeSets = Se(r.asArray());
1025
+ e.ShapeSets = Ne(r.asArray());
1026
1026
  break;
1027
1027
  }
1028
1028
  case Ee: {
@@ -1065,7 +1065,7 @@ function Ne(t, e) {
1065
1065
  }
1066
1066
  }
1067
1067
  }
1068
- function Se(t) {
1068
+ function Ne(t) {
1069
1069
  const e = [];
1070
1070
  let r;
1071
1071
  for (; (r = t.next()) !== null; )
@@ -1112,7 +1112,7 @@ function Re(t) {
1112
1112
  e.push(r.asString());
1113
1113
  return e;
1114
1114
  }
1115
- const Le = 76337612, Oe = 185396121, me = 250031587, ge = 388632637, Fe = 417197284, be = 469070965, Pe = 470595159, ke = 594855258, Me = 781727218, pe = 834078886, Be = 1043273762, Ve = 1236999138, ve = 1286979607, Ge = 1368629611, xe = 1715899485, He = 1942830531, Ye = 1999510636, We = 2033288346, Ke = 2079864626, $e = 2142346422, je = 2228539873, Xe = 2232517119, ze = 2598291686, Je = 2719718823, qe = 2810953526, Qe = 2840065720, Ze = 2885165957, tr = 3542818975, er = 3586157513, rr = 3717933110, sr = 4062655306;
1115
+ const Le = 76337612, Oe = 185396121, me = 250031587, ge = 388632637, Fe = 417197284, be = 469070965, Pe = 470595159, ke = 594855258, Me = 781727218, Ve = 834078886, Be = 1043273762, pe = 1236999138, ve = 1286979607, Ge = 1368629611, xe = 1715899485, He = 1942830531, Ye = 1999510636, We = 2033288346, Ke = 2079864626, $e = 2142346422, je = 2228539873, Xe = 2232517119, ze = 2598291686, Je = 2719718823, qe = 2810953526, Qe = 2840065720, Ze = 2885165957, tr = 3542818975, er = 3586157513, rr = 3717933110, sr = 4062655306;
1116
1116
  function nr(t) {
1117
1117
  const e = {};
1118
1118
  return yt(e), e;
@@ -1173,7 +1173,7 @@ function ar(t, e) {
1173
1173
  e.UserId = r.asString();
1174
1174
  break;
1175
1175
  }
1176
- case pe: {
1176
+ case Ve: {
1177
1177
  if (r.isNull) throw new Error();
1178
1178
  e.ProductId = r.asString();
1179
1179
  break;
@@ -1183,7 +1183,7 @@ function ar(t, e) {
1183
1183
  e.AuthSessionId = r.asString();
1184
1184
  break;
1185
1185
  }
1186
- case Ve: {
1186
+ case pe: {
1187
1187
  if (r.isNull) throw new Error();
1188
1188
  e.ReceiveAllMessages = r.asBool();
1189
1189
  break;
@@ -1294,7 +1294,7 @@ function or(t) {
1294
1294
  }
1295
1295
  return e;
1296
1296
  }
1297
- const lr = 703025676, Ir = 814454131, Er = 972460562, _r = 976255570, hr = 1368629611, ur = 1479280922, cr = 1533537016, fr = 1909301063, Tr = 2274386296, Ar = 2603556958, Nr = 2885165957, Sr = 3568439632;
1297
+ const lr = 703025676, Ir = 814454131, Er = 972460562, _r = 976255570, hr = 1368629611, ur = 1479280922, cr = 1533537016, fr = 1909301063, Tr = 2274386296, Ar = 2603556958, Sr = 2885165957, Nr = 3568439632;
1298
1298
  function dr(t) {
1299
1299
  const e = {};
1300
1300
  return wt(e), e;
@@ -1360,12 +1360,12 @@ function wr(t, e) {
1360
1360
  e.IsEnumerable = r.asBool();
1361
1361
  break;
1362
1362
  }
1363
- case Nr: {
1363
+ case Sr: {
1364
1364
  if (r.isNull) throw new Error();
1365
1365
  e.Parameters = Ur(r.asArray());
1366
1366
  break;
1367
1367
  }
1368
- case Sr: {
1368
+ case Nr: {
1369
1369
  if (r.isNull) throw new Error();
1370
1370
  e.LlmCallOnlyOnce = r.asBool();
1371
1371
  break;
@@ -1396,9 +1396,9 @@ function Ct(t) {
1396
1396
  }
1397
1397
  function Mr(t, e) {
1398
1398
  const r = e ?? kr();
1399
- return Ct(r), pr(t, r), r;
1399
+ return Ct(r), Vr(t, r), r;
1400
1400
  }
1401
- function pr(t, e) {
1401
+ function Vr(t, e) {
1402
1402
  let r;
1403
1403
  for (; (r = t.next()) !== null; )
1404
1404
  switch (r.fieldId) {
@@ -1449,7 +1449,7 @@ function pr(t, e) {
1449
1449
  }
1450
1450
  }
1451
1451
  }
1452
- const Br = 3167053791, Vr = 3342364356, vr = 3612929027;
1452
+ const Br = 3167053791, pr = 3342364356, vr = 3612929027;
1453
1453
  function Ut(t) {
1454
1454
  const e = {};
1455
1455
  return Dt(e), e;
@@ -1470,7 +1470,7 @@ function xr(t, e) {
1470
1470
  e.Type = r.asInt32();
1471
1471
  break;
1472
1472
  }
1473
- case Vr: {
1473
+ case pr: {
1474
1474
  if (r.isNull) throw new Error();
1475
1475
  e.FaceBlendshapes = Hr(r.asArray());
1476
1476
  break;
@@ -1573,7 +1573,7 @@ function ss(t, e) {
1573
1573
  }
1574
1574
  }
1575
1575
  async function ns(t, e) {
1576
- const r = await V(t, qr);
1576
+ const r = await p(t, qr);
1577
1577
  return es(r, e);
1578
1578
  }
1579
1579
  function is(t) {
@@ -1613,7 +1613,7 @@ function _s(t, e) {
1613
1613
  }
1614
1614
  }
1615
1615
  async function hs(t, e) {
1616
- const r = await V(t, as);
1616
+ const r = await p(t, as);
1617
1617
  return Is(r, e);
1618
1618
  }
1619
1619
  function us(t) {
@@ -1633,9 +1633,9 @@ function Ft(t) {
1633
1633
  }
1634
1634
  function As(t, e) {
1635
1635
  const r = e ?? Ts();
1636
- return Ft(r), Ns(t, r), r;
1636
+ return Ft(r), Ss(t, r), r;
1637
1637
  }
1638
- function Ns(t, e) {
1638
+ function Ss(t, e) {
1639
1639
  let r;
1640
1640
  for (; (r = t.next()) !== null; )
1641
1641
  switch (r.fieldId) {
@@ -1646,12 +1646,12 @@ function Ns(t, e) {
1646
1646
  }
1647
1647
  case fs: {
1648
1648
  if (r.isNull) throw new Error();
1649
- e.Style = Ss(r.asDictionary());
1649
+ e.Style = Ns(r.asDictionary());
1650
1650
  break;
1651
1651
  }
1652
1652
  }
1653
1653
  }
1654
- function Ss(t) {
1654
+ function Ns(t) {
1655
1655
  const e = /* @__PURE__ */ Object.create(null);
1656
1656
  let r;
1657
1657
  for (; (r = t.next()) !== null; ) {
@@ -1688,7 +1688,7 @@ function Ds(t, e) {
1688
1688
  }
1689
1689
  }
1690
1690
  async function Rs(t, e) {
1691
- const r = await V(t, ds);
1691
+ const r = await p(t, ds);
1692
1692
  return Cs(r, e);
1693
1693
  }
1694
1694
  function Ls(t) {
@@ -1725,16 +1725,16 @@ function ks(t, e) {
1725
1725
  }
1726
1726
  case gs: {
1727
1727
  if (r.isNull) throw new Error();
1728
- e.Payloads = ps(r.asDictionary());
1728
+ e.Payloads = Vs(r.asDictionary());
1729
1729
  break;
1730
1730
  }
1731
1731
  }
1732
1732
  }
1733
1733
  async function Ms(t, e) {
1734
- const r = await V(t, Os);
1734
+ const r = await p(t, Os);
1735
1735
  return bs(r, e);
1736
1736
  }
1737
- function ps(t) {
1737
+ function Vs(t) {
1738
1738
  const e = /* @__PURE__ */ Object.create(null);
1739
1739
  let r;
1740
1740
  for (; (r = t.next()) !== null; ) {
@@ -1743,13 +1743,13 @@ function ps(t) {
1743
1743
  }
1744
1744
  return e;
1745
1745
  }
1746
- const kt = 1, Bs = 1048636, Vs = 2610786289;
1746
+ const kt = 1, Bs = 1048636, ps = 2610786289;
1747
1747
  function vs(t) {
1748
1748
  const e = new v(kt);
1749
1749
  return Gs(t, e), e.finish();
1750
1750
  }
1751
1751
  function Gs(t, e) {
1752
- e.writeUInt32Field(Vs, t.Version >>> 0);
1752
+ e.writeUInt32Field(ps, t.Version >>> 0);
1753
1753
  }
1754
1754
  function xs(t, e, r) {
1755
1755
  const s = vs(t);
@@ -1758,14 +1758,14 @@ function xs(t, e, r) {
1758
1758
  const Hs = 161083277, Ys = 164808083, Ws = 1368629611, Ks = 2514959030, $s = 2745379226, js = 2950031986, Xs = 3282782683, zs = 3284746250, Js = 4065070594;
1759
1759
  function Mt(t) {
1760
1760
  const e = {};
1761
- return pt(e), e;
1761
+ return Vt(e), e;
1762
1762
  }
1763
- function pt(t) {
1763
+ function Vt(t) {
1764
1764
  return t.StreamId = "", t.Description = "", t.SourceType = "", t.Codec = ct.H264, t.CodecDetails = "", t.Width = 0, t.Height = 0, t.Framerate = 30, t.CorrelationId = void 0, t;
1765
1765
  }
1766
1766
  function qs(t, e) {
1767
1767
  const r = e ?? Mt();
1768
- return pt(r), Qs(t, r), r;
1768
+ return Vt(r), Qs(t, r), r;
1769
1769
  }
1770
1770
  function Qs(t, e) {
1771
1771
  let r;
@@ -1821,23 +1821,23 @@ function Qs(t, e) {
1821
1821
  }
1822
1822
  }
1823
1823
  }
1824
- const Zs = 65539, tn = 693643444, en = 1144553441, rn = 1497620243, sn = 1559330978, nn = 1976546434, an = 1999510636, on = 2271236852, ln = 2277643855, In = 2469008121, En = 3042922213, _n = 3064612128, hn = 3219210453, un = 3504054055, cn = 3678477544, fn = 3696445035, Tn = 3707543140, An = 3712281496, Nn = 3895362455, Sn = 3897397815, dn = 4225107827;
1825
- function yn(t) {
1824
+ const Zs = 65539, tn = 693643444, en = 976837618, rn = 1144553441, sn = 1497620243, nn = 1559330978, an = 1976546434, on = 2271236852, ln = 2277643855, In = 2469008121, En = 3042922213, _n = 3064612128, hn = 3219210453, un = 3504054055, cn = 3678477544, fn = 3696445035, Tn = 3707543140, An = 3712281496, Sn = 3895362455, Nn = 3897397815, dn = 3914217035, yn = 4225107827;
1825
+ function wn(t) {
1826
1826
  const e = {};
1827
1827
  return Bt(e), e;
1828
1828
  }
1829
1829
  function Bt(t) {
1830
- return t.Clients = /* @__PURE__ */ Object.create(null), t.Functions = /* @__PURE__ */ Object.create(null), t.UIStreams = /* @__PURE__ */ Object.create(null), t.AudioStreams = /* @__PURE__ */ Object.create(null), t.VideoStreams = /* @__PURE__ */ Object.create(null), t.TrackingStreams = /* @__PURE__ */ Object.create(null), t.SpaceId = "", t.ChannelId = "", t.SessionId = "", t.ChannelUrl = "", t.SessionChannelUrl = "", t.FirstUserId = "", t.PrimaryUserId = "", t.OrganisationName = "", t.SpaceName = "", t.ChannelName = "", t.ServerRunType = Tt.Local, t.AppSourceType = At.Bundle, t.PublicAccess = !1, t.DebugMode = !1, t;
1831
- }
1832
- function wn(t, e) {
1833
- const r = m.create(t);
1834
- return Cn(r, e);
1830
+ return t.Clients = /* @__PURE__ */ Object.create(null), t.Functions = /* @__PURE__ */ Object.create(null), t.UIStreams = /* @__PURE__ */ Object.create(null), t.AudioStreams = /* @__PURE__ */ Object.create(null), t.VideoStreams = /* @__PURE__ */ Object.create(null), t.TrackingStreams = /* @__PURE__ */ Object.create(null), t.SpaceId = "", t.ChannelId = "", t.ServerSessionId = "", t.SessionHash = "", t.ChannelUrl = "", t.SessionChannelUrl = "", t.FirstUserId = "", t.PrimaryUserId = "", t.OrganisationName = "", t.SpaceName = "", t.ChannelName = "", t.ServerRunType = Tt.Local, t.AppSourceType = At.Bundle, t.PublicAccess = !1, t.DebugMode = !1, t;
1835
1831
  }
1836
1832
  function Cn(t, e) {
1837
- const r = e ?? yn();
1838
- return Bt(r), Un(t, r), r;
1833
+ const r = m.create(t);
1834
+ return Un(r, e);
1839
1835
  }
1840
1836
  function Un(t, e) {
1837
+ const r = e ?? wn();
1838
+ return Bt(r), Dn(t, r), r;
1839
+ }
1840
+ function Dn(t, e) {
1841
1841
  let r;
1842
1842
  for (; (r = t.next()) !== null; )
1843
1843
  switch (r.fieldId) {
@@ -1848,27 +1848,27 @@ function Un(t, e) {
1848
1848
  }
1849
1849
  case en: {
1850
1850
  if (r.isNull) throw new Error();
1851
- e.Clients = Rn(r.asDictionary());
1851
+ e.SessionHash = r.asString();
1852
1852
  break;
1853
1853
  }
1854
1854
  case rn: {
1855
1855
  if (r.isNull) throw new Error();
1856
- e.TrackingStreams = Ln(r.asDictionary());
1856
+ e.Clients = Ln(r.asDictionary());
1857
1857
  break;
1858
1858
  }
1859
1859
  case sn: {
1860
1860
  if (r.isNull) throw new Error();
1861
- e.ChannelId = r.asString();
1861
+ e.TrackingStreams = On(r.asDictionary());
1862
1862
  break;
1863
1863
  }
1864
1864
  case nn: {
1865
1865
  if (r.isNull) throw new Error();
1866
- e.AppSourceType = r.asInt32();
1866
+ e.ChannelId = r.asString();
1867
1867
  break;
1868
1868
  }
1869
1869
  case an: {
1870
1870
  if (r.isNull) throw new Error();
1871
- e.SessionId = r.asString();
1871
+ e.AppSourceType = r.asInt32();
1872
1872
  break;
1873
1873
  }
1874
1874
  case on: {
@@ -1908,12 +1908,12 @@ function Un(t, e) {
1908
1908
  }
1909
1909
  case cn: {
1910
1910
  if (r.isNull) throw new Error();
1911
- e.Functions = On(r.asDictionary());
1911
+ e.Functions = mn(r.asDictionary());
1912
1912
  break;
1913
1913
  }
1914
1914
  case fn: {
1915
1915
  if (r.isNull) throw new Error();
1916
- e.UIStreams = mn(r.asDictionary());
1916
+ e.UIStreams = gn(r.asDictionary());
1917
1917
  break;
1918
1918
  }
1919
1919
  case Tn: {
@@ -1926,28 +1926,33 @@ function Un(t, e) {
1926
1926
  e.PrimaryUserId = r.asString();
1927
1927
  break;
1928
1928
  }
1929
- case Nn: {
1929
+ case Sn: {
1930
1930
  if (r.isNull) throw new Error();
1931
- e.AudioStreams = gn(r.asDictionary());
1931
+ e.AudioStreams = Fn(r.asDictionary());
1932
1932
  break;
1933
1933
  }
1934
- case Sn: {
1934
+ case Nn: {
1935
1935
  if (r.isNull) throw new Error();
1936
- e.VideoStreams = Fn(r.asDictionary());
1936
+ e.VideoStreams = bn(r.asDictionary());
1937
1937
  break;
1938
1938
  }
1939
1939
  case dn: {
1940
+ if (r.isNull) throw new Error();
1941
+ e.ServerSessionId = r.asString();
1942
+ break;
1943
+ }
1944
+ case yn: {
1940
1945
  if (r.isNull) throw new Error();
1941
1946
  e.SpaceName = r.asString();
1942
1947
  break;
1943
1948
  }
1944
1949
  }
1945
1950
  }
1946
- async function Dn(t, e) {
1947
- const r = await V(t, Zs);
1948
- return wn(r, e);
1951
+ async function Rn(t, e) {
1952
+ const r = await p(t, Zs);
1953
+ return Cn(r, e);
1949
1954
  }
1950
- function Rn(t) {
1955
+ function Ln(t) {
1951
1956
  const e = /* @__PURE__ */ Object.create(null);
1952
1957
  let r;
1953
1958
  for (; (r = t.next()) !== null; ) {
@@ -1956,204 +1961,204 @@ function Rn(t) {
1956
1961
  }
1957
1962
  return e;
1958
1963
  }
1959
- function Ln(t) {
1964
+ function On(t) {
1960
1965
  const e = /* @__PURE__ */ Object.create(null);
1961
1966
  let r;
1962
1967
  for (; (r = t.next()) !== null; ) {
1963
1968
  const s = r.key.asString();
1964
- e[s] = ii(r.value.asObject());
1969
+ e[s] = ai(r.value.asObject());
1965
1970
  }
1966
1971
  return e;
1967
1972
  }
1968
- function On(t) {
1973
+ function mn(t) {
1969
1974
  const e = /* @__PURE__ */ Object.create(null);
1970
1975
  let r;
1971
1976
  for (; (r = t.next()) !== null; ) {
1972
1977
  const s = r.key.asInt32();
1973
- e[s] = bn(r.value.asArray());
1978
+ e[s] = Pn(r.value.asArray());
1974
1979
  }
1975
1980
  return e;
1976
1981
  }
1977
- function mn(t) {
1982
+ function gn(t) {
1978
1983
  const e = /* @__PURE__ */ Object.create(null);
1979
1984
  let r;
1980
1985
  for (; (r = t.next()) !== null; ) {
1981
1986
  const s = r.key.asString();
1982
- e[s] = Vn(r.value.asObject());
1987
+ e[s] = vn(r.value.asObject());
1983
1988
  }
1984
1989
  return e;
1985
1990
  }
1986
- function gn(t) {
1991
+ function Fn(t) {
1987
1992
  const e = /* @__PURE__ */ Object.create(null);
1988
1993
  let r;
1989
1994
  for (; (r = t.next()) !== null; ) {
1990
1995
  const s = r.key.asString();
1991
- e[s] = Kn(r.value.asObject());
1996
+ e[s] = $n(r.value.asObject());
1992
1997
  }
1993
1998
  return e;
1994
1999
  }
1995
- function Fn(t) {
2000
+ function bn(t) {
1996
2001
  const e = /* @__PURE__ */ Object.create(null);
1997
2002
  let r;
1998
2003
  for (; (r = t.next()) !== null; ) {
1999
2004
  const s = r.key.asString();
2000
- e[s] = Qn(r.value.asObject());
2005
+ e[s] = Zn(r.value.asObject());
2001
2006
  }
2002
2007
  return e;
2003
2008
  }
2004
- function bn(t) {
2009
+ function Pn(t) {
2005
2010
  const e = [];
2006
2011
  let r;
2007
2012
  for (; (r = t.next()) !== null; )
2008
2013
  e.push(yr(r.asObject()));
2009
2014
  return e;
2010
2015
  }
2011
- const Pn = 161083277, kn = 325678206, Mn = 3469892363, pn = 3645544153;
2012
- function Bn(t) {
2016
+ const kn = 161083277, Mn = 325678206, Vn = 3469892363, Bn = 3645544153;
2017
+ function pn(t) {
2013
2018
  const e = {};
2014
- return Vt(e), e;
2019
+ return pt(e), e;
2015
2020
  }
2016
- function Vt(t) {
2021
+ function pt(t) {
2017
2022
  return t.StreamId = "", t.ClientSessionId = 0, t.TrackId = 0, t.Info = Lt(), t;
2018
2023
  }
2019
- function Vn(t, e) {
2020
- const r = e ?? Bn();
2021
- return Vt(r), vn(t, r), r;
2022
- }
2023
2024
  function vn(t, e) {
2025
+ const r = e ?? pn();
2026
+ return pt(r), Gn(t, r), r;
2027
+ }
2028
+ function Gn(t, e) {
2024
2029
  let r;
2025
2030
  for (; (r = t.next()) !== null; )
2026
2031
  switch (r.fieldId) {
2027
- case Pn: {
2032
+ case kn: {
2028
2033
  if (r.isNull) throw new Error();
2029
2034
  e.StreamId = r.asString();
2030
2035
  break;
2031
2036
  }
2032
- case kn: {
2037
+ case Mn: {
2033
2038
  if (r.isNull) throw new Error();
2034
2039
  e.ClientSessionId = r.asInt32();
2035
2040
  break;
2036
2041
  }
2037
- case Mn: {
2042
+ case Vn: {
2038
2043
  if (r.isNull) throw new Error();
2039
2044
  e.TrackId = r.asInt32();
2040
2045
  break;
2041
2046
  }
2042
- case pn: {
2047
+ case Bn: {
2043
2048
  if (r.isNull) throw new Error();
2044
2049
  e.Info = zr(r.asObject());
2045
2050
  break;
2046
2051
  }
2047
2052
  }
2048
2053
  }
2049
- const Gn = 161083277, xn = 325678206, Hn = 3469892363, Yn = 3645544153;
2050
- function Wn(t) {
2054
+ const xn = 161083277, Hn = 325678206, Yn = 3469892363, Wn = 3645544153;
2055
+ function Kn(t) {
2051
2056
  const e = {};
2052
2057
  return vt(e), e;
2053
2058
  }
2054
2059
  function vt(t) {
2055
- return t.StreamId = "", t.ClientSessionId = 0, t.TrackId = 0, t.Info = Nt(), t;
2056
- }
2057
- function Kn(t, e) {
2058
- const r = e ?? Wn();
2059
- return vt(r), $n(t, r), r;
2060
+ return t.StreamId = "", t.ClientSessionId = 0, t.TrackId = 0, t.Info = St(), t;
2060
2061
  }
2061
2062
  function $n(t, e) {
2063
+ const r = e ?? Kn();
2064
+ return vt(r), jn(t, r), r;
2065
+ }
2066
+ function jn(t, e) {
2062
2067
  let r;
2063
2068
  for (; (r = t.next()) !== null; )
2064
2069
  switch (r.fieldId) {
2065
- case Gn: {
2070
+ case xn: {
2066
2071
  if (r.isNull) throw new Error();
2067
2072
  e.StreamId = r.asString();
2068
2073
  break;
2069
2074
  }
2070
- case xn: {
2075
+ case Hn: {
2071
2076
  if (r.isNull) throw new Error();
2072
2077
  e.ClientSessionId = r.asInt32();
2073
2078
  break;
2074
2079
  }
2075
- case Hn: {
2080
+ case Yn: {
2076
2081
  if (r.isNull) throw new Error();
2077
2082
  e.TrackId = r.asInt32();
2078
2083
  break;
2079
2084
  }
2080
- case Yn: {
2085
+ case Wn: {
2081
2086
  if (r.isNull) throw new Error();
2082
2087
  e.Info = Ae(r.asObject());
2083
2088
  break;
2084
2089
  }
2085
2090
  }
2086
2091
  }
2087
- const jn = 161083277, Xn = 325678206, zn = 3469892363, Jn = 3645544153;
2088
- function qn(t) {
2092
+ const Xn = 161083277, zn = 325678206, Jn = 3469892363, qn = 3645544153;
2093
+ function Qn(t) {
2089
2094
  const e = {};
2090
2095
  return Gt(e), e;
2091
2096
  }
2092
2097
  function Gt(t) {
2093
2098
  return t.StreamId = "", t.ClientSessionId = 0, t.TrackId = 0, t.Info = Mt(), t;
2094
2099
  }
2095
- function Qn(t, e) {
2096
- const r = e ?? qn();
2097
- return Gt(r), Zn(t, r), r;
2098
- }
2099
2100
  function Zn(t, e) {
2101
+ const r = e ?? Qn();
2102
+ return Gt(r), ti(t, r), r;
2103
+ }
2104
+ function ti(t, e) {
2100
2105
  let r;
2101
2106
  for (; (r = t.next()) !== null; )
2102
2107
  switch (r.fieldId) {
2103
- case jn: {
2108
+ case Xn: {
2104
2109
  if (r.isNull) throw new Error();
2105
2110
  e.StreamId = r.asString();
2106
2111
  break;
2107
2112
  }
2108
- case Xn: {
2113
+ case zn: {
2109
2114
  if (r.isNull) throw new Error();
2110
2115
  e.ClientSessionId = r.asInt32();
2111
2116
  break;
2112
2117
  }
2113
- case zn: {
2118
+ case Jn: {
2114
2119
  if (r.isNull) throw new Error();
2115
2120
  e.TrackId = r.asInt32();
2116
2121
  break;
2117
2122
  }
2118
- case Jn: {
2123
+ case qn: {
2119
2124
  if (r.isNull) throw new Error();
2120
2125
  e.Info = qs(r.asObject());
2121
2126
  break;
2122
2127
  }
2123
2128
  }
2124
2129
  }
2125
- const ti = 161083277, ei = 325678206, ri = 3469892363, si = 3645544153;
2126
- function ni(t) {
2130
+ const ei = 161083277, ri = 325678206, si = 3469892363, ni = 3645544153;
2131
+ function ii(t) {
2127
2132
  const e = {};
2128
2133
  return xt(e), e;
2129
2134
  }
2130
2135
  function xt(t) {
2131
2136
  return t.StreamId = "", t.ClientSessionId = 0, t.TrackId = 0, t.Info = Ut(), t;
2132
2137
  }
2133
- function ii(t, e) {
2134
- const r = e ?? ni();
2135
- return xt(r), ai(t, r), r;
2136
- }
2137
2138
  function ai(t, e) {
2139
+ const r = e ?? ii();
2140
+ return xt(r), oi(t, r), r;
2141
+ }
2142
+ function oi(t, e) {
2138
2143
  let r;
2139
2144
  for (; (r = t.next()) !== null; )
2140
2145
  switch (r.fieldId) {
2141
- case ti: {
2146
+ case ei: {
2142
2147
  if (r.isNull) throw new Error();
2143
2148
  e.StreamId = r.asString();
2144
2149
  break;
2145
2150
  }
2146
- case ei: {
2151
+ case ri: {
2147
2152
  if (r.isNull) throw new Error();
2148
2153
  e.ClientSessionId = r.asInt32();
2149
2154
  break;
2150
2155
  }
2151
- case ri: {
2156
+ case si: {
2152
2157
  if (r.isNull) throw new Error();
2153
2158
  e.TrackId = r.asInt32();
2154
2159
  break;
2155
2160
  }
2156
- case si: {
2161
+ case ni: {
2157
2162
  if (r.isNull) throw new Error();
2158
2163
  e.Info = Gr(r.asObject());
2159
2164
  break;
@@ -2217,7 +2222,7 @@ function et(t, e) {
2217
2222
  ...l ? { sourceMarker: l } : {}
2218
2223
  };
2219
2224
  }
2220
- function oi(t, e) {
2225
+ function li(t, e) {
2221
2226
  if (!C(t))
2222
2227
  throw new Error(`Invalid text delta at ${e}`);
2223
2228
  const r = t.NodeId, s = t.PropertyName, n = t.Start, i = t.End, a = t.InsertedText;
@@ -2244,7 +2249,7 @@ function oi(t, e) {
2244
2249
  insertedText: a
2245
2250
  };
2246
2251
  }
2247
- function li(t, e) {
2252
+ function Ii(t, e) {
2248
2253
  if (!C(t))
2249
2254
  throw new Error(`Invalid child insert at ${e}`);
2250
2255
  const r = t.Index, s = t.Node;
@@ -2257,7 +2262,7 @@ function li(t, e) {
2257
2262
  node: et(s, `${e}.node`)
2258
2263
  };
2259
2264
  }
2260
- function Ii(t, e) {
2265
+ function Ei(t, e) {
2261
2266
  if (!C(t))
2262
2267
  throw new Error(`Invalid child move at ${e}`);
2263
2268
  const r = t.NodeId, s = t.FromIndex, n = t.ToIndex;
@@ -2273,7 +2278,7 @@ function Ii(t, e) {
2273
2278
  toIndex: n
2274
2279
  };
2275
2280
  }
2276
- function Ei(t, e) {
2281
+ function _i(t, e) {
2277
2282
  if (!C(t))
2278
2283
  throw new Error(`Invalid child remove at ${e}`);
2279
2284
  const r = t.NodeId, s = t.Index;
@@ -2286,18 +2291,18 @@ function Ei(t, e) {
2286
2291
  index: s
2287
2292
  };
2288
2293
  }
2289
- function _i(t, e) {
2294
+ function hi(t, e) {
2290
2295
  if (!C(t))
2291
2296
  throw new Error(`Invalid node change at ${e}`);
2292
2297
  const r = t.nodeId;
2293
2298
  if (typeof r != "string" || r.length === 0)
2294
2299
  throw new Error(`Invalid node change nodeId at ${e}`);
2295
2300
  const s = Array.isArray(t.inserts) ? t.inserts.map(
2296
- (l, E) => li(l ?? {}, `${e}.inserts[${E}]`)
2301
+ (l, E) => Ii(l ?? {}, `${e}.inserts[${E}]`)
2297
2302
  ) : void 0, n = Array.isArray(t.moves) ? t.moves.map(
2298
- (l, E) => Ii(l ?? {}, `${e}.moves[${E}]`)
2303
+ (l, E) => Ei(l ?? {}, `${e}.moves[${E}]`)
2299
2304
  ) : void 0, i = Array.isArray(t.removals) ? t.removals.map(
2300
- (l, E) => Ei(l ?? {}, `${e}.removals[${E}]`)
2305
+ (l, E) => _i(l ?? {}, `${e}.removals[${E}]`)
2301
2306
  ) : void 0;
2302
2307
  let a;
2303
2308
  if (C(t.changedProps)) {
@@ -2310,7 +2315,7 @@ function _i(t, e) {
2310
2315
  }
2311
2316
  }
2312
2317
  const o = Array.isArray(t.textUpdates) ? t.textUpdates.map(
2313
- (l, E) => oi(l ?? {}, `${e}.textUpdates[${E}]`)
2318
+ (l, E) => li(l ?? {}, `${e}.textUpdates[${E}]`)
2314
2319
  ) : void 0, I = t.styleIds, _ = I !== void 0 ? Yt(I, e, r, !0) : void 0;
2315
2320
  return {
2316
2321
  nodeId: r,
@@ -2322,19 +2327,19 @@ function _i(t, e) {
2322
2327
  ..._ !== void 0 ? { styleIds: _ } : {}
2323
2328
  };
2324
2329
  }
2325
- function hi(t) {
2330
+ function ui(t) {
2326
2331
  const e = /* @__PURE__ */ new Map();
2327
2332
  for (const [r, s] of Object.entries(t))
2328
2333
  e.set(r, s);
2329
2334
  return e;
2330
2335
  }
2331
- function ui(t, e, r) {
2336
+ function ci(t, e, r) {
2332
2337
  if (!t || typeof t != "object")
2333
- throw new U("UI update graph is missing");
2338
+ throw new D("UI update graph is missing");
2334
2339
  const s = et(t, "graph");
2335
2340
  if (s.type !== "root")
2336
- throw new U('UI update root element must have type "root"');
2337
- const n = fi(s.props, e);
2341
+ throw new D('UI update root element must have type "root"');
2342
+ const n = Ti(s.props, e);
2338
2343
  return {
2339
2344
  type: "full",
2340
2345
  version: r,
@@ -2342,16 +2347,16 @@ function ui(t, e, r) {
2342
2347
  metadata: n
2343
2348
  };
2344
2349
  }
2345
- function ci(t, e, r) {
2350
+ function fi(t, e, r) {
2346
2351
  if (!Array.isArray(t))
2347
- throw new U("UI diff changes must be an array");
2352
+ throw new D("UI diff changes must be an array");
2348
2353
  if (!C(e))
2349
- throw new U("UI diff metadata must be an object");
2354
+ throw new D("UI diff metadata must be an object");
2350
2355
  const s = e.viewId;
2351
2356
  if (typeof s != "string" || s.length === 0)
2352
- throw new U("UI diff metadata is missing viewId");
2357
+ throw new D("UI diff metadata is missing viewId");
2353
2358
  const n = t.map(
2354
- (o, I) => _i(o ?? {}, `changes[${I}]`)
2359
+ (o, I) => hi(o ?? {}, `changes[${I}]`)
2355
2360
  ), i = typeof e.isUpdate == "boolean" ? e.isUpdate : void 0, a = {
2356
2361
  viewId: s,
2357
2362
  ...i !== void 0 ? { isUpdate: i } : {}
@@ -2363,42 +2368,42 @@ function ci(t, e, r) {
2363
2368
  metadata: a
2364
2369
  };
2365
2370
  }
2366
- function fi(t, e) {
2371
+ function Ti(t, e) {
2367
2372
  const r = t.viewId;
2368
2373
  if (typeof r != "string" || r.length === 0)
2369
- throw new U("UI update root is missing viewId");
2374
+ throw new D("UI update root is missing viewId");
2370
2375
  let s = r, n = typeof t.isUpdate == "boolean" ? t.isUpdate : void 0;
2371
2376
  return C(e) && (typeof e.viewId == "string" && e.viewId.length > 0 && (s = e.viewId), typeof e.isUpdate == "boolean" && (n = e.isUpdate)), {
2372
2377
  viewId: s,
2373
2378
  ...n !== void 0 ? { isUpdate: n } : {}
2374
2379
  };
2375
2380
  }
2376
- class U extends Error {
2381
+ class D extends Error {
2377
2382
  constructor(e, r) {
2378
2383
  super(e), this.causeError = r, this.name = "UiUpdateParseError", r instanceof Error && (this.stack = r.stack);
2379
2384
  }
2380
2385
  }
2381
- function Ti(t) {
2386
+ function Ai(t) {
2382
2387
  let e;
2383
2388
  try {
2384
2389
  e = JSON.parse(t.Json);
2385
2390
  } catch (a) {
2386
- throw new U("Failed to parse UIUpdate.Json payload", a);
2391
+ throw new D("Failed to parse UIUpdate.Json payload", a);
2387
2392
  }
2388
2393
  if (!e || typeof e != "object")
2389
- throw new U("UI update snapshot must be an object");
2394
+ throw new D("UI update snapshot must be an object");
2390
2395
  const { type: r, version: s } = e;
2391
2396
  if (r !== "full" && r !== "diff")
2392
- throw new U(`Unknown UI update type: ${String(r)}`);
2397
+ throw new D(`Unknown UI update type: ${String(r)}`);
2393
2398
  if (typeof s != "number")
2394
- throw new U("UI update version must be a number");
2395
- const n = r === "full" ? ui(e.graph, e.metadata, s) : ci(e.changes, e.metadata, s), i = t.Payloads ? hi(t.Payloads) : /* @__PURE__ */ new Map();
2399
+ throw new D("UI update version must be a number");
2400
+ const n = r === "full" ? ci(e.graph, e.metadata, s) : fi(e.changes, e.metadata, s), i = t.Payloads ? ui(t.Payloads) : /* @__PURE__ */ new Map();
2396
2401
  return {
2397
2402
  snapshot: n,
2398
2403
  payloads: i
2399
2404
  };
2400
2405
  }
2401
- class Ai {
2406
+ class Si {
2402
2407
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
2403
2408
  cache = /* @__PURE__ */ new Map();
2404
2409
  /**
@@ -2499,7 +2504,7 @@ class Ni {
2499
2504
  viewsDirty = !0;
2500
2505
  payloadsDirty = !0;
2501
2506
  // Handler cache for stable event handlers
2502
- handlerCache = new Ai();
2507
+ handlerCache = new Si();
2503
2508
  apply(e) {
2504
2509
  if (this.snapshotMode) {
2505
2510
  if (e.snapshot.type !== "full")
@@ -2526,7 +2531,7 @@ class Ni {
2526
2531
  else {
2527
2532
  if (!_)
2528
2533
  return !1;
2529
- const l = di(_, r.changes);
2534
+ const l = yi(_, r.changes);
2530
2535
  l !== _ ? (a.root = l, I = !0, this.viewsDirty = !0, $(_, l, this.changedNodeIds)) : a.root = l, a.version = r.version;
2531
2536
  }
2532
2537
  for (const [l, E] of s)
@@ -2669,7 +2674,7 @@ class Ni {
2669
2674
  }
2670
2675
  }
2671
2676
  }
2672
- class Si {
2677
+ class di {
2673
2678
  streams = /* @__PURE__ */ new Map();
2674
2679
  listeners = /* @__PURE__ */ new Set();
2675
2680
  apply(e, r) {
@@ -2740,7 +2745,7 @@ class Si {
2740
2745
  r(e);
2741
2746
  }
2742
2747
  }
2743
- function di(t, e, r) {
2748
+ function yi(t, e, r) {
2744
2749
  if (e.length === 0)
2745
2750
  return t;
2746
2751
  const s = /* @__PURE__ */ new Map();
@@ -2752,20 +2757,20 @@ function Wt(t, e, r) {
2752
2757
  const s = e.get(t.id);
2753
2758
  let n = t, i = !1;
2754
2759
  if (s?.textUpdates && s.textUpdates.length > 0) {
2755
- const u = Ui(t, s.textUpdates);
2760
+ const u = Di(t, s.textUpdates);
2756
2761
  n = u.node, i = u.changed;
2757
2762
  }
2758
2763
  let a = !1, o = n.props;
2759
2764
  if (s?.changedProps && s.changedProps.size > 0)
2760
- for (const [u, N] of s.changedProps.entries()) {
2765
+ for (const [u, S] of s.changedProps.entries()) {
2761
2766
  const f = o[u];
2762
- if (N === void 0)
2763
- (f !== void 0 || u in o) && (a || (o = p(o), a = !0), delete o[u]);
2764
- else if (X(N)) {
2765
- const A = p(N);
2766
- k(A, f) || (a || (o = p(o), a = !0), o[u] = A);
2767
+ if (S === void 0)
2768
+ (f !== void 0 || u in o) && (a || (o = V(o), a = !0), delete o[u]);
2769
+ else if (X(S)) {
2770
+ const A = V(S);
2771
+ k(A, f) || (a || (o = V(o), a = !0), o[u] = A);
2767
2772
  } else
2768
- k(N, f) || (a || (o = p(o), a = !0), o[u] = N);
2773
+ k(S, f) || (a || (o = V(o), a = !0), o[u] = S);
2769
2774
  }
2770
2775
  let I = !1, _ = n.styleIds;
2771
2776
  s?.styleIds !== void 0 && (jt(n.styleIds, s.styleIds) || (_ = s.styleIds, I = !0));
@@ -2774,34 +2779,34 @@ function Wt(t, e, r) {
2774
2779
  if (s?.removals && s.removals.length > 0 || s?.moves && s.moves.length > 0 || s?.inserts && s.inserts.length > 0) {
2775
2780
  const u = E.slice();
2776
2781
  if (s?.removals && s.removals.length > 0) {
2777
- const N = [...s.removals].sort((f, A) => A.index - f.index);
2778
- for (const f of N)
2782
+ const S = [...s.removals].sort((f, A) => A.index - f.index);
2783
+ for (const f of S)
2779
2784
  if (f.index >= 0 && f.index < u.length && u[f.index].id === f.nodeId)
2780
2785
  u.splice(f.index, 1);
2781
2786
  else {
2782
- const A = u.findIndex((D) => D.id === f.nodeId);
2787
+ const A = u.findIndex((R) => R.id === f.nodeId);
2783
2788
  A >= 0 && u.splice(A, 1);
2784
2789
  }
2785
2790
  h = !0;
2786
2791
  }
2787
2792
  if (s?.moves && s.moves.length > 0) {
2788
- const N = [...s.moves].sort((A, D) => A.toIndex - D.toIndex), f = /* @__PURE__ */ new Map();
2789
- for (const A of N) {
2790
- const D = u.findIndex((K) => K.id === A.nodeId);
2791
- D >= 0 && (f.set(A.nodeId, u[D]), u.splice(D, 1));
2792
- }
2793
- for (const A of N) {
2794
- const D = f.get(A.nodeId);
2795
- if (D) {
2793
+ const S = [...s.moves].sort((A, R) => A.toIndex - R.toIndex), f = /* @__PURE__ */ new Map();
2794
+ for (const A of S) {
2795
+ const R = u.findIndex((K) => K.id === A.nodeId);
2796
+ R >= 0 && (f.set(A.nodeId, u[R]), u.splice(R, 1));
2797
+ }
2798
+ for (const A of S) {
2799
+ const R = f.get(A.nodeId);
2800
+ if (R) {
2796
2801
  const K = Math.min(A.toIndex, u.length);
2797
- u.splice(K, 0, D);
2802
+ u.splice(K, 0, R);
2798
2803
  }
2799
2804
  }
2800
2805
  h = !0;
2801
2806
  }
2802
2807
  if (s?.inserts && s.inserts.length > 0) {
2803
- const N = [...s.inserts].sort((f, A) => f.index - A.index);
2804
- for (const f of N) {
2808
+ const S = [...s.inserts].sort((f, A) => f.index - A.index);
2809
+ for (const f of S) {
2805
2810
  const A = Math.min(f.index, u.length);
2806
2811
  u.splice(A, 0, f.node);
2807
2812
  }
@@ -2811,8 +2816,8 @@ function Wt(t, e, r) {
2811
2816
  }
2812
2817
  let d;
2813
2818
  for (let u = 0; u < E.length; u++) {
2814
- const N = E[u], f = Wt(N, e);
2815
- f !== N && (d || (d = E.slice()), d[u] = f);
2819
+ const S = E[u], f = Wt(S, e);
2820
+ f !== S && (d || (d = E.slice()), d[u] = f);
2816
2821
  }
2817
2822
  return d && (E = d, h = !0), i || a || I || h ? !a && !h && !I ? n : {
2818
2823
  id: t.id,
@@ -2829,7 +2834,7 @@ function B(t, e) {
2829
2834
  B(r, e);
2830
2835
  }
2831
2836
  const x = [];
2832
- function yi(t) {
2837
+ function wi(t) {
2833
2838
  for (; x.length <= t; )
2834
2839
  x.push(/* @__PURE__ */ new Map());
2835
2840
  return x[t].clear(), x[t];
@@ -2840,10 +2845,10 @@ function $(t, e, r) {
2840
2845
  function Kt(t, e, r, s) {
2841
2846
  if (t === e)
2842
2847
  return;
2843
- (t.type !== e.type || !wi(t.props, e.props) || !jt(t.styleIds, e.styleIds)) && r.add(e.id);
2848
+ (t.type !== e.type || !Ci(t.props, e.props) || !jt(t.styleIds, e.styleIds)) && r.add(e.id);
2844
2849
  const i = t.children ?? [], a = e.children ?? [];
2845
2850
  if (i !== a) {
2846
- const o = yi(s);
2851
+ const o = wi(s);
2847
2852
  for (const _ of i)
2848
2853
  o.set(_.id, _);
2849
2854
  let I = !1;
@@ -2854,7 +2859,7 @@ function Kt(t, e, r, s) {
2854
2859
  (i.length !== a.length || I) && r.add(e.id);
2855
2860
  }
2856
2861
  }
2857
- function wi(t, e) {
2862
+ function Ci(t, e) {
2858
2863
  return k(t, e);
2859
2864
  }
2860
2865
  function $t(t, e) {
@@ -2870,7 +2875,7 @@ function $t(t, e) {
2870
2875
  function jt(t, e) {
2871
2876
  return k(t, e);
2872
2877
  }
2873
- function Ci(t, e) {
2878
+ function Ui(t, e) {
2874
2879
  if (e.length === 0)
2875
2880
  return t;
2876
2881
  const r = [...e].sort((i, a) => i.start - a.start);
@@ -2878,7 +2883,7 @@ function Ci(t, e) {
2878
2883
  for (const i of r) {
2879
2884
  const a = nt(i.start + n, 0, s.length);
2880
2885
  if (i.end == null) {
2881
- const l = s.slice(a), E = Di(l, i.insertedText);
2886
+ const l = s.slice(a), E = Ri(l, i.insertedText);
2882
2887
  s = s.slice(0, a) + i.insertedText + l.slice(E), n += i.insertedText.length - E;
2883
2888
  continue;
2884
2889
  }
@@ -2887,7 +2892,7 @@ function Ci(t, e) {
2887
2892
  }
2888
2893
  return s;
2889
2894
  }
2890
- function Ui(t, e, r) {
2895
+ function Di(t, e, r) {
2891
2896
  if (e.length === 0)
2892
2897
  return { node: t, changed: !1 };
2893
2898
  const s = /* @__PURE__ */ new Map();
@@ -2907,8 +2912,8 @@ function Xt(t, e, r) {
2907
2912
  E ? E.push(l) : _.set(l.propertyName, [l]);
2908
2913
  }
2909
2914
  for (const [l, E] of _.entries()) {
2910
- const h = i[l], d = Ci(typeof h == "string" ? h : "", E);
2911
- n || (i = p(i), n = !0), i[l] = d;
2915
+ const h = i[l], d = Ui(typeof h == "string" ? h : "", E);
2916
+ n || (i = V(i), n = !0), i[l] = d;
2912
2917
  }
2913
2918
  }
2914
2919
  let a = !1;
@@ -2937,14 +2942,14 @@ function Xt(t, e, r) {
2937
2942
  function nt(t, e, r) {
2938
2943
  return Math.max(e, Math.min(r, t));
2939
2944
  }
2940
- function Di(t, e) {
2945
+ function Ri(t, e) {
2941
2946
  const r = Math.min(t.length, e.length);
2942
2947
  let s = 0;
2943
2948
  for (; s < r && t.charCodeAt(s) === e.charCodeAt(s); )
2944
2949
  s++;
2945
2950
  return s;
2946
2951
  }
2947
- function p(t) {
2952
+ function V(t) {
2948
2953
  const e = {}, r = Object.keys(t);
2949
2954
  for (let s = 0; s < r.length; s++) {
2950
2955
  const n = r[s];
@@ -2977,21 +2982,22 @@ function k(t, e) {
2977
2982
  }
2978
2983
  return !1;
2979
2984
  }
2980
- function Ri(t) {
2985
+ function Li(t) {
2981
2986
  return new Worker(
2982
- "" + new URL("assets/ui-worker-Ci6o-6Bv.js", import.meta.url).href,
2987
+ "" + new URL("assets/ui-worker-D4hZvsPd.js", import.meta.url).href,
2983
2988
  {
2984
2989
  type: "module",
2985
2990
  name: t?.name
2986
2991
  }
2987
2992
  );
2988
2993
  }
2989
- const R = Jt("IkonUiCore");
2990
- class mi {
2994
+ const U = Jt("IkonUiCore");
2995
+ class gi {
2991
2996
  unsubscribeProtocolMessages;
2992
2997
  unsubscribeState;
2993
2998
  client = null;
2994
- uiStore = new Si();
2999
+ lastConnectedSessionId = void 0;
3000
+ uiStore = new di();
2995
3001
  uiWorker = null;
2996
3002
  uiStyles = /* @__PURE__ */ new Map();
2997
3003
  uiUpdateListeners = /* @__PURE__ */ new Set();
@@ -3047,14 +3053,21 @@ class mi {
3047
3053
  }
3048
3054
  this.handleProtocolMessage(n);
3049
3055
  }, s), this.unsubscribeState = e.subscribeToState((n) => {
3050
- (n === "offline" || n === "offlineError") && this.clearAllState();
3056
+ if (n === "offline" || n === "offlineError") {
3057
+ this.clearAllState(), this.lastConnectedSessionId = void 0;
3058
+ return;
3059
+ }
3060
+ if (n === "connected") {
3061
+ const i = this.client?.sessionId;
3062
+ this.lastConnectedSessionId !== void 0 && i !== this.lastConnectedSessionId && (U.info(`SessionId changed (${this.lastConnectedSessionId} → ${i}), clearing UI cache so the server can resend a fresh snapshot under the new SessionId`), this.clearAllState()), this.lastConnectedSessionId = i;
3063
+ }
3051
3064
  });
3052
3065
  }
3053
3066
  startUiWorker(e) {
3054
3067
  try {
3055
- this.uiWorker = new Ri();
3068
+ this.uiWorker = new Li();
3056
3069
  } catch (n) {
3057
- R.warn("Failed to create UI worker, falling back to main thread", n), this.uiWorker = null;
3070
+ U.warn("Failed to create UI worker, falling back to main thread", n), this.uiWorker = null;
3058
3071
  return;
3059
3072
  }
3060
3073
  const r = e?.threading?.flushIntervalMs, s = e?.threading?.maxLatencyMs;
@@ -3062,7 +3075,7 @@ class mi {
3062
3075
  this.handleUiStoreOpBatch(n.data);
3063
3076
  }), this.uiWorker.addEventListener("error", (n) => {
3064
3077
  const i = [n.message, n.filename, n.lineno, n.colno].filter((a) => a != null && String(a).length > 0);
3065
- R.warn(`UI worker failed, falling back to main thread: ${i.join(" ")}`.trim()), this.uiWorker?.terminate(), this.uiWorker = null, this.rehydrateStoresForMainThread();
3078
+ U.warn(`UI worker failed, falling back to main thread: ${i.join(" ")}`.trim()), this.uiWorker?.terminate(), this.uiWorker = null, this.rehydrateStoresForMainThread();
3066
3079
  });
3067
3080
  }
3068
3081
  rehydrateStoresForMainThread() {
@@ -3090,7 +3103,7 @@ class mi {
3090
3103
  const r = e.slice().buffer;
3091
3104
  this.uiWorker.postMessage({ type: "protocol", message: r }, [r]);
3092
3105
  } catch (r) {
3093
- R.warn("Failed to forward message to UI worker", r);
3106
+ U.warn("Failed to forward message to UI worker", r);
3094
3107
  }
3095
3108
  }
3096
3109
  handleUiStoreOpBatch(e) {
@@ -3168,23 +3181,23 @@ class mi {
3168
3181
  }
3169
3182
  }
3170
3183
  handleGlobalState(e) {
3171
- Dn(e).then((r) => {
3184
+ Rn(e).then((r) => {
3172
3185
  const s = /* @__PURE__ */ new Set();
3173
3186
  for (const n of Object.values(r.UIStreams ?? {}))
3174
3187
  s.add(n.StreamId), this.uiStore.setCategory(n.StreamId, n.Info?.Category);
3175
3188
  for (const n of this.uiStore.getSnapshots())
3176
3189
  s.has(n.streamId) || (this.uiStore.remove(n.streamId), this.notifyUiStreamCleared(n.streamId));
3177
3190
  }).catch((r) => {
3178
- R.error("Failed to handle global state", r);
3191
+ U.error("Failed to handle global state", r);
3179
3192
  });
3180
3193
  }
3181
3194
  handleUiUpdate(e) {
3182
3195
  const r = rt(e), s = `${r.senderId}_${r.trackId}`;
3183
3196
  Ms(e).then((n) => {
3184
- const i = Ti(n);
3197
+ const i = Ai(n);
3185
3198
  this.notifyUiUpdate(s, i), this.uiStore.apply(s, i), this.sendUiUpdateAck(r.trackId, i.snapshot.version, r.senderId);
3186
3199
  }).catch((n) => {
3187
- n instanceof U ? R.warn("Failed to parse UI update", n.causeError ?? n) : R.error("Failed to apply UI update", n);
3200
+ n instanceof D ? U.warn("Failed to parse UI update", n.causeError ?? n) : U.error("Failed to apply UI update", n);
3188
3201
  });
3189
3202
  }
3190
3203
  handleUiStyles(e) {
@@ -3197,7 +3210,7 @@ class mi {
3197
3210
  };
3198
3211
  this.uiStyles.set(s.styleId, s), this.notifyUiStyle(s);
3199
3212
  }).catch((r) => {
3200
- R.error("Failed to handle UI styles", r);
3213
+ U.error("Failed to handle UI styles", r);
3201
3214
  });
3202
3215
  }
3203
3216
  handleUiStylesBatch(e) {
@@ -3213,7 +3226,7 @@ class mi {
3213
3226
  this.uiStyles.set(n.styleId, n), this.notifyUiStyle(n);
3214
3227
  }
3215
3228
  }).catch((r) => {
3216
- R.error("Failed to handle UI styles batch", r);
3229
+ U.error("Failed to handle UI styles batch", r);
3217
3230
  });
3218
3231
  }
3219
3232
  handleUiStylesDelete(e) {
@@ -3224,7 +3237,7 @@ class mi {
3224
3237
  this.notifyUiStyleDelete(r.StyleIds);
3225
3238
  }
3226
3239
  }).catch((r) => {
3227
- R.error("Failed to handle UI styles delete", r);
3240
+ U.error("Failed to handle UI styles delete", r);
3228
3241
  });
3229
3242
  }
3230
3243
  handleClearStream(e) {
@@ -3253,15 +3266,15 @@ class mi {
3253
3266
  const n = s !== void 0 ? { trackId: e, targetIds: [s] } : { trackId: e }, i = xs({ Version: r }, this.client.sessionId ?? 0, n);
3254
3267
  this.client.sendProtocolMessage(i);
3255
3268
  } catch (n) {
3256
- R.warn("Failed to send UI update ack", n);
3269
+ U.warn("Failed to send UI update ack", n);
3257
3270
  }
3258
3271
  }
3259
3272
  }
3260
3273
  export {
3261
- Ai as HandlerCache,
3262
- mi as IkonUiCore,
3263
- Si as UiStore,
3274
+ Si as HandlerCache,
3275
+ gi as IkonUiCore,
3276
+ di as UiStore,
3264
3277
  Ni as UiStreamStore,
3265
- U as UiUpdateParseError,
3266
- Ti as parseUiUpdate
3278
+ D as UiUpdateParseError,
3279
+ Ai as parseUiUpdate
3267
3280
  };