@ikonai/sdk-ui 1.0.64 → 1.0.66
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/{ui-worker-BCMvLBtA.js → ui-worker-BjXx6Rl0.js} +117 -100
- package/ikon-ui-core.d.ts +1 -0
- package/index.js +85 -67
- package/package.json +1 -1
- package/ui-store.d.ts +2 -0
package/ikon-ui-core.d.ts
CHANGED
|
@@ -34,6 +34,7 @@ export declare class IkonUiCore {
|
|
|
34
34
|
constructor(config?: IkonUiCoreConfig);
|
|
35
35
|
dispose(): void;
|
|
36
36
|
private clearAllState;
|
|
37
|
+
private enterSnapshotMode;
|
|
37
38
|
subscribeToUiUpdates(listener: IkonUiUpdateListener): () => void;
|
|
38
39
|
subscribeToUiStreamCleared(listener: IkonUiStreamListener): () => void;
|
|
39
40
|
subscribeToUiStyles(listener: UiStyleListener): () => void;
|
package/index.js
CHANGED
|
@@ -25,7 +25,7 @@ function Qt(t) {
|
|
|
25
25
|
flags: E
|
|
26
26
|
};
|
|
27
27
|
}
|
|
28
|
-
async function
|
|
28
|
+
async function V(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}`);
|
|
@@ -61,7 +61,7 @@ async function te(t) {
|
|
|
61
61
|
a.set(i[_], I), I += i[_].length;
|
|
62
62
|
return a;
|
|
63
63
|
}
|
|
64
|
-
var
|
|
64
|
+
var U = /* @__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))(U || {});
|
|
65
65
|
const ot = 161, at = 162, H = new TextEncoder(), ee = new TextDecoder("utf-8", { fatal: !0 });
|
|
66
66
|
class v {
|
|
67
67
|
constructor(e = 1) {
|
|
@@ -243,7 +243,7 @@ class W {
|
|
|
243
243
|
}
|
|
244
244
|
ensureElementType(e) {
|
|
245
245
|
if (this.elementType !== e)
|
|
246
|
-
throw new Error(`Array element type is ${
|
|
246
|
+
throw new Error(`Array element type is ${U[this.elementType]}, expected ${U[e]}`);
|
|
247
247
|
}
|
|
248
248
|
}
|
|
249
249
|
class z {
|
|
@@ -451,11 +451,11 @@ class re {
|
|
|
451
451
|
}
|
|
452
452
|
ensureKeyType(e) {
|
|
453
453
|
if (this.keyType !== e)
|
|
454
|
-
throw new Error(`Dictionary key type is ${
|
|
454
|
+
throw new Error(`Dictionary key type is ${U[this.keyType]}, expected ${U[e]}`);
|
|
455
455
|
}
|
|
456
456
|
ensureValueType(e) {
|
|
457
457
|
if (this.valueType !== e)
|
|
458
|
-
throw new Error(`Dictionary value type is ${
|
|
458
|
+
throw new Error(`Dictionary value type is ${U[this.valueType]}, expected ${U[e]}`);
|
|
459
459
|
}
|
|
460
460
|
}
|
|
461
461
|
class m {
|
|
@@ -584,7 +584,7 @@ class O {
|
|
|
584
584
|
}
|
|
585
585
|
ensureType(e) {
|
|
586
586
|
if (this.type !== e)
|
|
587
|
-
throw new Error(`Teleport value has type ${
|
|
587
|
+
throw new Error(`Teleport value has type ${U[this.type]}, expected ${U[e]}`);
|
|
588
588
|
}
|
|
589
589
|
}
|
|
590
590
|
class se extends O {
|
|
@@ -659,7 +659,7 @@ class J {
|
|
|
659
659
|
return this.offset += e, new M(10, r);
|
|
660
660
|
}
|
|
661
661
|
default:
|
|
662
|
-
throw new Error(`Unsupported array element type ${
|
|
662
|
+
throw new Error(`Unsupported array element type ${U[this.elementType]}`);
|
|
663
663
|
}
|
|
664
664
|
}
|
|
665
665
|
}
|
|
@@ -749,7 +749,7 @@ class q {
|
|
|
749
749
|
return this.offset += e, new O(this.valueType, r);
|
|
750
750
|
}
|
|
751
751
|
default:
|
|
752
|
-
throw new Error(`Unsupported dictionary value type ${
|
|
752
|
+
throw new Error(`Unsupported dictionary value type ${U[this.valueType]}`);
|
|
753
753
|
}
|
|
754
754
|
}
|
|
755
755
|
}
|
|
@@ -986,7 +986,7 @@ function X(t, e, r, s) {
|
|
|
986
986
|
case 10:
|
|
987
987
|
return r + tt(e, r);
|
|
988
988
|
default:
|
|
989
|
-
throw new Error(`Unsupported Teleport type ${
|
|
989
|
+
throw new Error(`Unsupported Teleport type ${U[t]}`);
|
|
990
990
|
}
|
|
991
991
|
}
|
|
992
992
|
function st(t) {
|
|
@@ -995,7 +995,7 @@ function st(t) {
|
|
|
995
995
|
function G(t) {
|
|
996
996
|
return t instanceof Uint8Array ? t : new Uint8Array(t);
|
|
997
997
|
}
|
|
998
|
-
var lt = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.Opus = 1] = "Opus", t[t.Mp3 = 2] = "Mp3", t[t.RawPcm16 = 3] = "RawPcm16", t))(lt || {}), It = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.MobileWeb = 1] = "MobileWeb", t[t.MobileApp = 2] = "MobileApp", t[t.DesktopWeb = 3] = "DesktopWeb", t[t.DesktopApp = 4] = "DesktopApp", t))(It || {}), Et = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.Backend = 2] = "Backend", t[t.Server = 4] = "Server", t[t.Plugin = 8] = "Plugin", t[t.Browser = 16] = "Browser", t))(Et || {}), _t = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.MessagePack = 1] = "MessagePack", t[t.MemoryPack = 2] = "MemoryPack", t[t.Json = 4] = "Json", t[t.Teleport = 8] = "Teleport", t[t.All = 15] = "All", t))(_t || {}), ht = /* @__PURE__ */ ((t) => (t[t.Face = 0] = "Face", t[t.Hands = 1] = "Hands", t[t.Pose = 2] = "Pose", t[t.All = 3] = "All", t))(ht || {}), ut = /* @__PURE__ */ ((t) => (t[t.Css = 0] = "Css", t[t.Flutter = 1] = "Flutter", t))(ut || {}), ct = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.Machine = 1] = "Machine", t[t.Human = 2] = "Human", t))(ct || {}), ft = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.H264 = 1] = "H264", t[t.Vp8 = 2] = "Vp8", t[t.Vp9 = 3] = "Vp9", t[t.Av1 = 4] = "Av1", t))(ft || {}), Tt = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.DotNet = 1] = "DotNet", t[t.TypeScript = 2] = "TypeScript", t[t.Cpp = 3] = "Cpp", t[t.Dart = 4] = "Dart", t[t.Rust = 5] = "Rust", t))(Tt || {}), At = /* @__PURE__ */ ((t) => (t[t.Local = 0] = "Local", t[t.Cloud = 1] = "Cloud", t))(At || {}), Nt = /* @__PURE__ */ ((t) => (t[t.Bundle = 0] = "Bundle", t[t.GitSource = 1] = "GitSource", t))(Nt || {}), L = /* @__PURE__ */ ((t) => (t[t.NONE = 0] = "NONE", t[t.CONSTANT_GROUP_BITS = 15] = "CONSTANT_GROUP_BITS", t[t.CONSTANT_GROUP_OFFSET = 16] = "CONSTANT_GROUP_OFFSET", t[t.GROUP_CORE = 65536] = "GROUP_CORE", t[t.CORE_AUTH_RESPONSE = 65537] = "CORE_AUTH_RESPONSE", t[t.CORE_AUTH_TICKET = 65538] = "CORE_AUTH_TICKET", t[t.CORE_GLOBAL_STATE = 65539] = "CORE_GLOBAL_STATE", t[t.CORE_ON_SERVER_STATUS_PING = 65540] = "CORE_ON_SERVER_STATUS_PING", t[t.CORE_ON_USER_JOINED = 65541] = "CORE_ON_USER_JOINED", t[t.CORE_ON_USER_LEFT = 65542] = "CORE_ON_USER_LEFT", t[t.CORE_ON_CLIENT_JOINED = 65543] = "CORE_ON_CLIENT_JOINED", t[t.CORE_ON_CLIENT_LEFT = 65544] = "CORE_ON_CLIENT_LEFT", t[t.CORE_ON_SERVER_STARTED = 65545] = "CORE_ON_SERVER_STARTED", t[t.CORE_ON_SERVER_STOPPED = 65546] = "CORE_ON_SERVER_STOPPED", t[t.CORE_ON_SERVER_STOPPING = 65547] = "CORE_ON_SERVER_STOPPING", t[t.CORE_ON_CLIENT_READY = 65548] = "CORE_ON_CLIENT_READY", t[t.CORE_CLIENT_READY = 65549] = "CORE_CLIENT_READY", t[t.CORE_SERVER_INIT = 65550] = "CORE_SERVER_INIT", t[t.CORE_ON_PLUGIN_RELOADED = 65551] = "CORE_ON_PLUGIN_RELOADED", t[t.CORE_SERVER_START = 65552] = "CORE_SERVER_START", t[t.CORE_SERVER_STOP = 65553] = "CORE_SERVER_STOP", t[t.CORE_ON_HOSTED_SERVER_EXIT = 65554] = "CORE_ON_HOSTED_SERVER_EXIT", t[t.CORE_DYNAMIC_CONFIG = 65555] = "CORE_DYNAMIC_CONFIG", t[t.CORE_PROXY_RPC_AUTH_TICKET = 65556] = "CORE_PROXY_RPC_AUTH_TICKET", t[t.CORE_SERVER_INIT2 = 65557] = "CORE_SERVER_INIT2", t[t.CORE_UPDATE_CLIENT_CONTEXT = 65558] = "CORE_UPDATE_CLIENT_CONTEXT", t[t.CORE_BACKGROUND_WORK_ACTIVE = 65559] = "CORE_BACKGROUND_WORK_ACTIVE", t[t.CORE_RESET_IDLE = 65560] = "CORE_RESET_IDLE", t[t.CORE_CLIENT_DISCONNECTING = 65561] = "CORE_CLIENT_DISCONNECTING", t[t.CORE_ON_APP_READY = 65562] = "CORE_ON_APP_READY", t[t.CORE_ON_FRONTEND_RELOADED = 65563] = "CORE_ON_FRONTEND_RELOADED", t[t.CORE_WEBRTC_OFFER = 65566] = "CORE_WEBRTC_OFFER", t[t.CORE_WEBRTC_ANSWER = 65567] = "CORE_WEBRTC_ANSWER", t[t.CORE_WEBRTC_ICE_CANDIDATE = 65568] = "CORE_WEBRTC_ICE_CANDIDATE", t[t.CORE_WEBRTC_READY = 65569] = "CORE_WEBRTC_READY", t[t.CORE_WEBRTC_AUDIO_SEGMENT = 65570] = "CORE_WEBRTC_AUDIO_SEGMENT", t[t.CORE_WEBRTC_TRACK_MAP = 65571] = "CORE_WEBRTC_TRACK_MAP", t[t.CORE_WEBRTC_VIDEO_CAPTURE = 65572] = "CORE_WEBRTC_VIDEO_CAPTURE", t[t.CORE_RELAY_AGENT_AUTH = 65576] = "CORE_RELAY_AGENT_AUTH", t[t.CORE_RELAY_AGENT_AUTH_RESULT = 65577] = "CORE_RELAY_AGENT_AUTH_RESULT", t[t.CORE_RELAY_HEARTBEAT = 65578] = "CORE_RELAY_HEARTBEAT", t[t.CORE_RELAY_TCP_CONNECTION_OPENED = 65579] = "CORE_RELAY_TCP_CONNECTION_OPENED", t[t.CORE_RELAY_TCP_CONNECTION_CLOSED = 65580] = "CORE_RELAY_TCP_CONNECTION_CLOSED", t[t.CORE_RELAY_TCP_DATA = 65581] = "CORE_RELAY_TCP_DATA", t[t.CORE_RELAY_UDP_DATA = 65582] = "CORE_RELAY_UDP_DATA", t[t.CORE_RELAY_ADD_TUNNEL = 65583] = "CORE_RELAY_ADD_TUNNEL", t[t.CORE_RELAY_TUNNEL_ADDED = 65584] = "CORE_RELAY_TUNNEL_ADDED", t[t.CORE_RELAY_REMOVE_TUNNEL = 65585] = "CORE_RELAY_REMOVE_TUNNEL", t[t.CORE_IKON_SERVER_ENDPOINT_HOST_INFO = 65586] = "CORE_IKON_SERVER_ENDPOINT_HOST_INFO", t[t.CORE_CLIENT_INITIALIZATION = 65587] = "CORE_CLIENT_INITIALIZATION", t[t.CORE_CLIENT_LIFECYCLE_BATCH = 65588] = "CORE_CLIENT_LIFECYCLE_BATCH", t[t.CORE_APP_CONFIG = 65589] = "CORE_APP_CONFIG", t[t.GROUP_KEEPALIVE = 131072] = "GROUP_KEEPALIVE", t[t.KEEPALIVE_REQUEST = 131073] = "KEEPALIVE_REQUEST", t[t.KEEPALIVE_RESPONSE = 131074] = "KEEPALIVE_RESPONSE", t[t.GROUP_EVENTS = 262144] = "GROUP_EVENTS", t[t.EVENTS_PROFILE_UPDATE = 262145] = "EVENTS_PROFILE_UPDATE", t[t.EVENTS_CHANNEL_COMPLETE = 262146] = "EVENTS_CHANNEL_COMPLETE", t[t.EVENTS_SPEECH_PLAYBACK_COMPLETE = 262147] = "EVENTS_SPEECH_PLAYBACK_COMPLETE", t[t.GROUP_ANALYTICS = 524288] = "GROUP_ANALYTICS", t[t.ANALYTICS_LOGS = 524289] = "ANALYTICS_LOGS", t[t.ANALYTICS_EVENTS = 524290] = "ANALYTICS_EVENTS", t[t.ANALYTICS_USAGES = 524291] = "ANALYTICS_USAGES", t[t.ANALYTICS_USAGE = 524292] = "ANALYTICS_USAGE", t[t.ANALYTICS_SPECIAL_LOG = 524293] = "ANALYTICS_SPECIAL_LOG", t[t.ANALYTICS_PROCESSING_UPDATE = 524294] = "ANALYTICS_PROCESSING_UPDATE", t[t.ANALYTICS_REACTIVE_PROCESSING_UPDATE = 524295] = "ANALYTICS_REACTIVE_PROCESSING_UPDATE", t[t.ANALYTICS_IKON_PROXY_SERVER_STATS = 524296] = "ANALYTICS_IKON_PROXY_SERVER_STATS", t[t.ANALYTICS_IKON_RELAY_SERVER_STATS = 524297] = "ANALYTICS_IKON_RELAY_SERVER_STATS", t[t.ANALYTICS_IKON_TURN_SERVER_STATS = 524298] = "ANALYTICS_IKON_TURN_SERVER_STATS", t[t.GROUP_ACTIONS = 1048576] = "GROUP_ACTIONS", t[t.ACTION_CALL = 1048577] = "ACTION_CALL", t[t.ACTION_ACTIVE = 1048578] = "ACTION_ACTIVE", t[t.ACTION_TEXT_OUTPUT = 1048579] = "ACTION_TEXT_OUTPUT", t[t.ACTION_TEXT_OUTPUT_DELTA = 1048580] = "ACTION_TEXT_OUTPUT_DELTA", t[t.ACTION_TEXT_OUTPUT_DELTA_FULL = 1048581] = "ACTION_TEXT_OUTPUT_DELTA_FULL", t[t.ACTION_SET_STATE = 1048582] = "ACTION_SET_STATE", t[t.ACTION_TAP = 1048583] = "ACTION_TAP", t[t.ACTION_PAN = 1048584] = "ACTION_PAN", t[t.ACTION_ZOOM = 1048585] = "ACTION_ZOOM", t[t.ACTION_FILE_UPLOAD_BEGIN = 1048586] = "ACTION_FILE_UPLOAD_BEGIN", t[t.ACTION_FILE_UPLOAD_DATA = 1048587] = "ACTION_FILE_UPLOAD_DATA", t[t.ACTION_FILE_UPLOAD_ACK = 1048588] = "ACTION_FILE_UPLOAD_ACK", t[t.ACTION_FILE_UPLOAD_END = 1048589] = "ACTION_FILE_UPLOAD_END", t[t.ACTION_FILE_UPLOAD_RESULT = 1048590] = "ACTION_FILE_UPLOAD_RESULT", t[t.ACTION_OPEN_CHANNEL = 1048591] = "ACTION_OPEN_CHANNEL", t[t.ACTION_OPEN_EXTERNAL_URL = 1048592] = "ACTION_OPEN_EXTERNAL_URL", t[t.ACTION_UI_OPEN_VIEW = 1048593] = "ACTION_UI_OPEN_VIEW", t[t.ACTION_UI_CLOSE_VIEW = 1048594] = "ACTION_UI_CLOSE_VIEW", t[t.ACTION_UI_BLOCKING_BEGIN = 1048595] = "ACTION_UI_BLOCKING_BEGIN", t[t.ACTION_UI_BLOCKING_END = 1048596] = "ACTION_UI_BLOCKING_END", t[t.ACTION_UI_UPDATE_TEXT_DELTA = 1048597] = "ACTION_UI_UPDATE_TEXT_DELTA", t[t.ACTION_UI_DELETE_CONTAINER = 1048598] = "ACTION_UI_DELETE_CONTAINER", t[t.ACTION_UPDATE_GFX_SHADER = 1048599] = "ACTION_UPDATE_GFX_SHADER", t[t.ACTION_FUNCTION_REGISTER = 1048600] = "ACTION_FUNCTION_REGISTER", t[t.ACTION_FUNCTION_CALL = 1048601] = "ACTION_FUNCTION_CALL", t[t.ACTION_FUNCTION_RESULT = 1048602] = "ACTION_FUNCTION_RESULT", t[t.ACTION_GENERATE_ANSWER = 1048603] = "ACTION_GENERATE_ANSWER", t[t.ACTION_REGENERATE_ANSWER = 1048604] = "ACTION_REGENERATE_ANSWER", t[t.ACTION_CLEAR_CHAT_MESSAGE_HISTORY = 1048605] = "ACTION_CLEAR_CHAT_MESSAGE_HISTORY", t[t.ACTION_CLEAR_STATE = 1048606] = "ACTION_CLEAR_STATE", t[t.ACTION_RELOAD_CHANNELS = 1048607] = "ACTION_RELOAD_CHANNELS", t[t.ACTION_RELOAD_PROFILE = 1048608] = "ACTION_RELOAD_PROFILE", t[t.ACTION_CLASSIFICATION_RESULT = 1048609] = "ACTION_CLASSIFICATION_RESULT", t[t.ACTION_AUDIO_STOP = 1048610] = "ACTION_AUDIO_STOP", t[t.ACTION_CALL_TEXT = 1048611] = "ACTION_CALL_TEXT", t[t.ACTION_RELOAD_APPLICATION = 1048612] = "ACTION_RELOAD_APPLICATION", t[t.ACTION_CANCEL_GENERATION = 1048613] = "ACTION_CANCEL_GENERATION", t[t.ACTION_UI_SET_CONTAINER_STABLE = 1048614] = "ACTION_UI_SET_CONTAINER_STABLE", t[t.ACTION_SPEECH_RECOGNIZED = 1048615] = "ACTION_SPEECH_RECOGNIZED", t[t.ACTION_CALL_RESULT = 1048616] = "ACTION_CALL_RESULT", t[t.ACTION_RELOAD_PROVIDER = 1048617] = "ACTION_RELOAD_PROVIDER", t[t.ACTION_DOWNLOAD = 1048618] = "ACTION_DOWNLOAD", t[t.ACTION_SCROLL_TO_CONTAINER = 1048619] = "ACTION_SCROLL_TO_CONTAINER", t[t.ACTION_UI_CLEAR_STREAM = 1048620] = "ACTION_UI_CLEAR_STREAM", t[t.ACTION_PLAY_SOUND = 1048621] = "ACTION_PLAY_SOUND", t[t.ACTION_ENTER_FULLSCREEN = 1048622] = "ACTION_ENTER_FULLSCREEN", t[t.ACTION_STOP_SOUND = 1048623] = "ACTION_STOP_SOUND", t[t.ACTION_START_RECORDING = 1048624] = "ACTION_START_RECORDING", t[t.ACTION_STOP_RECORDING = 1048625] = "ACTION_STOP_RECORDING", t[t.ACTION_FUNCTION_ENUMERATION_ITEM = 1048627] = "ACTION_FUNCTION_ENUMERATION_ITEM", t[t.ACTION_FUNCTION_ENUMERATION_END = 1048628] = "ACTION_FUNCTION_ENUMERATION_END", t[t.ACTION_FUNCTION_CANCEL = 1048629] = "ACTION_FUNCTION_CANCEL", t[t.ACTION_FUNCTION_DISPOSE = 1048630] = "ACTION_FUNCTION_DISPOSE", t[t.ACTION_FUNCTION_ERROR = 1048631] = "ACTION_FUNCTION_ERROR", t[t.ACTION_FUNCTION_ACK = 1048632] = "ACTION_FUNCTION_ACK", t[t.ACTION_FUNCTION_AWAITING_APPROVAL = 1048633] = "ACTION_FUNCTION_AWAITING_APPROVAL", t[t.ACTION_FUNCTION_APPROVAL_REQUIRED = 1048634] = "ACTION_FUNCTION_APPROVAL_REQUIRED", t[t.ACTION_FUNCTION_APPROVAL_RESPONSE = 1048635] = "ACTION_FUNCTION_APPROVAL_RESPONSE", t[t.UI_UPDATE_ACK = 1048636] = "UI_UPDATE_ACK", t[t.ACTION_CALL2 = 1048637] = "ACTION_CALL2", t[t.ACTION_FUNCTION_REGISTER_BATCH = 1048638] = "ACTION_FUNCTION_REGISTER_BATCH", t[t.ACTION_TRIGGER_GIT_PULL = 1048639] = "ACTION_TRIGGER_GIT_PULL", t[t.ACTION_FILE_UPLOAD_CALLBACK = 1048640] = "ACTION_FILE_UPLOAD_CALLBACK", t[t.ACTION_CUSTOM_USER_MESSAGE = 1048641] = "ACTION_CUSTOM_USER_MESSAGE", t[t.ACTION_URL_CHANGED = 1048642] = "ACTION_URL_CHANGED", t[t.ACTION_FILE_UPLOAD_PRE_START2 = 1048643] = "ACTION_FILE_UPLOAD_PRE_START2", t[t.ACTION_FILE_UPLOAD_PRE_START_RESPONSE2 = 1048644] = "ACTION_FILE_UPLOAD_PRE_START_RESPONSE2", t[t.ACTION_FILE_UPLOAD_START2 = 1048645] = "ACTION_FILE_UPLOAD_START2", t[t.ACTION_FILE_UPLOAD_START_RESPONSE2 = 1048646] = "ACTION_FILE_UPLOAD_START_RESPONSE2", t[t.ACTION_FILE_UPLOAD_DATA2 = 1048647] = "ACTION_FILE_UPLOAD_DATA2", t[t.ACTION_FILE_UPLOAD_ACK2 = 1048648] = "ACTION_FILE_UPLOAD_ACK2", t[t.ACTION_FILE_UPLOAD_END2 = 1048649] = "ACTION_FILE_UPLOAD_END2", t[t.ACTION_FILE_UPLOAD_COMPLETE2 = 1048650] = "ACTION_FILE_UPLOAD_COMPLETE2", t[t.ACTION_FUNCTION_ENUMERATION_ITEM_BATCH = 1048651] = "ACTION_FUNCTION_ENUMERATION_ITEM_BATCH", t[t.ACTION_CALL_ACK = 1048652] = "ACTION_CALL_ACK", t[t.ACTION_TRIGGER_CRON = 1048653] = "ACTION_TRIGGER_CRON", t[t.GROUP_UI = 2097152] = "GROUP_UI", t[t.UI_STREAM_BEGIN = 2097153] = "UI_STREAM_BEGIN", t[t.UI_STREAM_END = 2097154] = "UI_STREAM_END", t[t.UI_CONTAINER_BEGIN = 2097155] = "UI_CONTAINER_BEGIN", t[t.UI_CONTAINER_END = 2097156] = "UI_CONTAINER_END", t[t.UI_SECTION_BEGIN = 2097157] = "UI_SECTION_BEGIN", t[t.UI_SECTION_END = 2097158] = "UI_SECTION_END", t[t.UI_LIST_BEGIN = 2097159] = "UI_LIST_BEGIN", t[t.UI_LIST_ITEM = 2097160] = "UI_LIST_ITEM", t[t.UI_LIST_END = 2097161] = "UI_LIST_END", t[t.UI_TEXT = 2097162] = "UI_TEXT", t[t.UI_HEADER = 2097163] = "UI_HEADER", t[t.UI_SEPARATOR = 2097164] = "UI_SEPARATOR", t[t.UI_BUTTON = 2097165] = "UI_BUTTON", t[t.UI_ICON_BUTTON = 2097166] = "UI_ICON_BUTTON", t[t.UI_IMAGE = 2097167] = "UI_IMAGE", t[t.UI_FILE = 2097168] = "UI_FILE", t[t.UI_BADGE = 2097169] = "UI_BADGE", t[t.UI_CONTENT_LINK = 2097170] = "UI_CONTENT_LINK", t[t.UI_MAP = 2097171] = "UI_MAP", t[t.UI_VEGA_CHART = 2097172] = "UI_VEGA_CHART", t[t.UI_ICON = 2097173] = "UI_ICON", t[t.UI_FILE_UPLOAD_SECTION_BEGIN = 2097174] = "UI_FILE_UPLOAD_SECTION_BEGIN", t[t.UI_FILE_UPLOAD_SECTION_END = 2097175] = "UI_FILE_UPLOAD_SECTION_END", t[t.UI_MATERIAL_SYMBOL = 2097176] = "UI_MATERIAL_SYMBOL", t[t.UI_BUTTON_BEGIN = 2097177] = "UI_BUTTON_BEGIN", t[t.UI_BUTTON_END = 2097178] = "UI_BUTTON_END", t[t.UI_CONTAINER_DELETE = 2097179] = "UI_CONTAINER_DELETE", t[t.UI_INPUT_TEXT = 2097180] = "UI_INPUT_TEXT", t[t.UI_PROGRESS_BAR = 2097181] = "UI_PROGRESS_BAR", t[t.UI_UPDATE_BEGIN = 2097182] = "UI_UPDATE_BEGIN", t[t.UI_UPDATE_END = 2097183] = "UI_UPDATE_END", t[t.UI_AUTOCOMPLETE = 2097184] = "UI_AUTOCOMPLETE", t[t.UI_CHECKBOX = 2097185] = "UI_CHECKBOX", t[t.UI_QS = 2097186] = "UI_QS", t[t.UI_ELEMENT = 2097187] = "UI_ELEMENT", t[t.UI_STYLES = 2097188] = "UI_STYLES", t[t.UI_SVG = 2097189] = "UI_SVG", t[t.UI_UPDATE = 2097190] = "UI_UPDATE", t[t.UI_INIT = 2097191] = "UI_INIT", t[t.UI_STYLES_BATCH = 2097192] = "UI_STYLES_BATCH", t[t.UI_STYLES_DELETE = 2097193] = "UI_STYLES_DELETE", t[t.GROUP_COMMON = 4128768] = "GROUP_COMMON", t[t.GROUP_AUDIO = 4194304] = "GROUP_AUDIO", t[t.AUDIO_STREAM_BEGIN = 4194305] = "AUDIO_STREAM_BEGIN", t[t.AUDIO_STREAM_END = 4194306] = "AUDIO_STREAM_END", t[t.AUDIO_FRAME = 4194307] = "AUDIO_FRAME", t[t.AUDIO_FRAME_VOLUME = 4194308] = "AUDIO_FRAME_VOLUME", t[t.AUDIO_FRAME2 = 4194309] = "AUDIO_FRAME2", t[t.AUDIO_SHAPE_FRAME = 4194310] = "AUDIO_SHAPE_FRAME", t[t.GROUP_VIDEO = 8388608] = "GROUP_VIDEO", t[t.VIDEO_STREAM_BEGIN = 8388609] = "VIDEO_STREAM_BEGIN", t[t.VIDEO_STREAM_END = 8388610] = "VIDEO_STREAM_END", t[t.VIDEO_FRAME = 8388611] = "VIDEO_FRAME", t[t.VIDEO_REQUEST_IDR_FRAME = 8388612] = "VIDEO_REQUEST_IDR_FRAME", t[t.VIDEO_INVALIDATE_FRAME = 8388613] = "VIDEO_INVALIDATE_FRAME", t[t.GROUP_TRACKING = 16777216] = "GROUP_TRACKING", t[t.TRACKING_STREAM_BEGIN = 16777217] = "TRACKING_STREAM_BEGIN", t[t.TRACKING_STREAM_END = 16777218] = "TRACKING_STREAM_END", t[t.TRACKING_FRAME = 16777219] = "TRACKING_FRAME", t[t.GROUP_SCENE = 33554432] = "GROUP_SCENE", t[t.SCENE_MESH = 33554433] = "SCENE_MESH", t[t.SCENE_ARRAY = 33554434] = "SCENE_ARRAY", t[t.GROUP_ALL = 67043328] = "GROUP_ALL", t[t.GROUP_APP_LOCAL = 1073741824] = "GROUP_APP_LOCAL", t[t.CONSTANT_GROUP_MASK = 2147418112] = "CONSTANT_GROUP_MASK", t))(L || {});
|
|
998
|
+
var lt = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.Opus = 1] = "Opus", t[t.Mp3 = 2] = "Mp3", t[t.RawPcm16 = 3] = "RawPcm16", t))(lt || {}), It = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.MobileWeb = 1] = "MobileWeb", t[t.MobileApp = 2] = "MobileApp", t[t.DesktopWeb = 3] = "DesktopWeb", t[t.DesktopApp = 4] = "DesktopApp", t))(It || {}), Et = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.Backend = 2] = "Backend", t[t.Server = 4] = "Server", t[t.Plugin = 8] = "Plugin", t[t.Browser = 16] = "Browser", t[t.Native = 32] = "Native", t))(Et || {}), _t = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.MessagePack = 1] = "MessagePack", t[t.MemoryPack = 2] = "MemoryPack", t[t.Json = 4] = "Json", t[t.Teleport = 8] = "Teleport", t[t.All = 15] = "All", t))(_t || {}), ht = /* @__PURE__ */ ((t) => (t[t.Face = 0] = "Face", t[t.Hands = 1] = "Hands", t[t.Pose = 2] = "Pose", t[t.All = 3] = "All", t))(ht || {}), ut = /* @__PURE__ */ ((t) => (t[t.Css = 0] = "Css", t[t.Flutter = 1] = "Flutter", t))(ut || {}), ct = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.Machine = 1] = "Machine", t[t.Human = 2] = "Human", t))(ct || {}), ft = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.H264 = 1] = "H264", t[t.Vp8 = 2] = "Vp8", t[t.Vp9 = 3] = "Vp9", t[t.Av1 = 4] = "Av1", t))(ft || {}), Tt = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.DotNet = 1] = "DotNet", t[t.TypeScript = 2] = "TypeScript", t[t.Cpp = 3] = "Cpp", t[t.Dart = 4] = "Dart", t[t.Rust = 5] = "Rust", t))(Tt || {}), At = /* @__PURE__ */ ((t) => (t[t.Local = 0] = "Local", t[t.Cloud = 1] = "Cloud", t))(At || {}), Nt = /* @__PURE__ */ ((t) => (t[t.Bundle = 0] = "Bundle", t[t.GitSource = 1] = "GitSource", t))(Nt || {}), L = /* @__PURE__ */ ((t) => (t[t.NONE = 0] = "NONE", t[t.CONSTANT_GROUP_BITS = 15] = "CONSTANT_GROUP_BITS", t[t.CONSTANT_GROUP_OFFSET = 16] = "CONSTANT_GROUP_OFFSET", t[t.GROUP_CORE = 65536] = "GROUP_CORE", t[t.CORE_AUTH_RESPONSE = 65537] = "CORE_AUTH_RESPONSE", t[t.CORE_AUTH_TICKET = 65538] = "CORE_AUTH_TICKET", t[t.CORE_GLOBAL_STATE = 65539] = "CORE_GLOBAL_STATE", t[t.CORE_ON_SERVER_STATUS_PING = 65540] = "CORE_ON_SERVER_STATUS_PING", t[t.CORE_ON_USER_JOINED = 65541] = "CORE_ON_USER_JOINED", t[t.CORE_ON_USER_LEFT = 65542] = "CORE_ON_USER_LEFT", t[t.CORE_ON_CLIENT_JOINED = 65543] = "CORE_ON_CLIENT_JOINED", t[t.CORE_ON_CLIENT_LEFT = 65544] = "CORE_ON_CLIENT_LEFT", t[t.CORE_ON_SERVER_STARTED = 65545] = "CORE_ON_SERVER_STARTED", t[t.CORE_ON_SERVER_STOPPED = 65546] = "CORE_ON_SERVER_STOPPED", t[t.CORE_ON_SERVER_STOPPING = 65547] = "CORE_ON_SERVER_STOPPING", t[t.CORE_ON_CLIENT_READY = 65548] = "CORE_ON_CLIENT_READY", t[t.CORE_CLIENT_READY = 65549] = "CORE_CLIENT_READY", t[t.CORE_SERVER_INIT = 65550] = "CORE_SERVER_INIT", t[t.CORE_ON_PLUGIN_RELOADED = 65551] = "CORE_ON_PLUGIN_RELOADED", t[t.CORE_SERVER_START = 65552] = "CORE_SERVER_START", t[t.CORE_SERVER_STOP = 65553] = "CORE_SERVER_STOP", t[t.CORE_ON_HOSTED_SERVER_EXIT = 65554] = "CORE_ON_HOSTED_SERVER_EXIT", t[t.CORE_DYNAMIC_CONFIG = 65555] = "CORE_DYNAMIC_CONFIG", t[t.CORE_PROXY_RPC_AUTH_TICKET = 65556] = "CORE_PROXY_RPC_AUTH_TICKET", t[t.CORE_SERVER_INIT2 = 65557] = "CORE_SERVER_INIT2", t[t.CORE_UPDATE_CLIENT_CONTEXT = 65558] = "CORE_UPDATE_CLIENT_CONTEXT", t[t.CORE_BACKGROUND_WORK_ACTIVE = 65559] = "CORE_BACKGROUND_WORK_ACTIVE", t[t.CORE_RESET_IDLE = 65560] = "CORE_RESET_IDLE", t[t.CORE_CLIENT_DISCONNECTING = 65561] = "CORE_CLIENT_DISCONNECTING", t[t.CORE_ON_APP_READY = 65562] = "CORE_ON_APP_READY", t[t.CORE_ON_FRONTEND_RELOADED = 65563] = "CORE_ON_FRONTEND_RELOADED", t[t.CORE_WEBRTC_OFFER = 65566] = "CORE_WEBRTC_OFFER", t[t.CORE_WEBRTC_ANSWER = 65567] = "CORE_WEBRTC_ANSWER", t[t.CORE_WEBRTC_ICE_CANDIDATE = 65568] = "CORE_WEBRTC_ICE_CANDIDATE", t[t.CORE_WEBRTC_READY = 65569] = "CORE_WEBRTC_READY", t[t.CORE_WEBRTC_AUDIO_SEGMENT = 65570] = "CORE_WEBRTC_AUDIO_SEGMENT", t[t.CORE_WEBRTC_TRACK_MAP = 65571] = "CORE_WEBRTC_TRACK_MAP", t[t.CORE_WEBRTC_VIDEO_CAPTURE = 65572] = "CORE_WEBRTC_VIDEO_CAPTURE", t[t.CORE_RELAY_AGENT_AUTH = 65576] = "CORE_RELAY_AGENT_AUTH", t[t.CORE_RELAY_AGENT_AUTH_RESULT = 65577] = "CORE_RELAY_AGENT_AUTH_RESULT", t[t.CORE_RELAY_HEARTBEAT = 65578] = "CORE_RELAY_HEARTBEAT", t[t.CORE_RELAY_TCP_CONNECTION_OPENED = 65579] = "CORE_RELAY_TCP_CONNECTION_OPENED", t[t.CORE_RELAY_TCP_CONNECTION_CLOSED = 65580] = "CORE_RELAY_TCP_CONNECTION_CLOSED", t[t.CORE_RELAY_TCP_DATA = 65581] = "CORE_RELAY_TCP_DATA", t[t.CORE_RELAY_UDP_DATA = 65582] = "CORE_RELAY_UDP_DATA", t[t.CORE_RELAY_ADD_TUNNEL = 65583] = "CORE_RELAY_ADD_TUNNEL", t[t.CORE_RELAY_TUNNEL_ADDED = 65584] = "CORE_RELAY_TUNNEL_ADDED", t[t.CORE_RELAY_REMOVE_TUNNEL = 65585] = "CORE_RELAY_REMOVE_TUNNEL", t[t.CORE_IKON_SERVER_ENDPOINT_HOST_INFO = 65586] = "CORE_IKON_SERVER_ENDPOINT_HOST_INFO", t[t.CORE_CLIENT_INITIALIZATION = 65587] = "CORE_CLIENT_INITIALIZATION", t[t.CORE_CLIENT_LIFECYCLE_BATCH = 65588] = "CORE_CLIENT_LIFECYCLE_BATCH", t[t.CORE_APP_CONFIG = 65589] = "CORE_APP_CONFIG", t[t.GROUP_KEEPALIVE = 131072] = "GROUP_KEEPALIVE", t[t.KEEPALIVE_REQUEST = 131073] = "KEEPALIVE_REQUEST", t[t.KEEPALIVE_RESPONSE = 131074] = "KEEPALIVE_RESPONSE", t[t.GROUP_EVENTS = 262144] = "GROUP_EVENTS", t[t.EVENTS_PROFILE_UPDATE = 262145] = "EVENTS_PROFILE_UPDATE", t[t.EVENTS_CHANNEL_COMPLETE = 262146] = "EVENTS_CHANNEL_COMPLETE", t[t.EVENTS_SPEECH_PLAYBACK_COMPLETE = 262147] = "EVENTS_SPEECH_PLAYBACK_COMPLETE", t[t.GROUP_ANALYTICS = 524288] = "GROUP_ANALYTICS", t[t.ANALYTICS_LOGS = 524289] = "ANALYTICS_LOGS", t[t.ANALYTICS_EVENTS = 524290] = "ANALYTICS_EVENTS", t[t.ANALYTICS_USAGES = 524291] = "ANALYTICS_USAGES", t[t.ANALYTICS_USAGE = 524292] = "ANALYTICS_USAGE", t[t.ANALYTICS_SPECIAL_LOG = 524293] = "ANALYTICS_SPECIAL_LOG", t[t.ANALYTICS_PROCESSING_UPDATE = 524294] = "ANALYTICS_PROCESSING_UPDATE", t[t.ANALYTICS_REACTIVE_PROCESSING_UPDATE = 524295] = "ANALYTICS_REACTIVE_PROCESSING_UPDATE", t[t.ANALYTICS_IKON_PROXY_SERVER_STATS = 524296] = "ANALYTICS_IKON_PROXY_SERVER_STATS", t[t.ANALYTICS_IKON_RELAY_SERVER_STATS = 524297] = "ANALYTICS_IKON_RELAY_SERVER_STATS", t[t.ANALYTICS_IKON_TURN_SERVER_STATS = 524298] = "ANALYTICS_IKON_TURN_SERVER_STATS", t[t.GROUP_ACTIONS = 1048576] = "GROUP_ACTIONS", t[t.ACTION_CALL = 1048577] = "ACTION_CALL", t[t.ACTION_ACTIVE = 1048578] = "ACTION_ACTIVE", t[t.ACTION_TEXT_OUTPUT = 1048579] = "ACTION_TEXT_OUTPUT", t[t.ACTION_TEXT_OUTPUT_DELTA = 1048580] = "ACTION_TEXT_OUTPUT_DELTA", t[t.ACTION_TEXT_OUTPUT_DELTA_FULL = 1048581] = "ACTION_TEXT_OUTPUT_DELTA_FULL", t[t.ACTION_SET_STATE = 1048582] = "ACTION_SET_STATE", t[t.ACTION_TAP = 1048583] = "ACTION_TAP", t[t.ACTION_PAN = 1048584] = "ACTION_PAN", t[t.ACTION_ZOOM = 1048585] = "ACTION_ZOOM", t[t.ACTION_FILE_UPLOAD_BEGIN = 1048586] = "ACTION_FILE_UPLOAD_BEGIN", t[t.ACTION_FILE_UPLOAD_DATA = 1048587] = "ACTION_FILE_UPLOAD_DATA", t[t.ACTION_FILE_UPLOAD_ACK = 1048588] = "ACTION_FILE_UPLOAD_ACK", t[t.ACTION_FILE_UPLOAD_END = 1048589] = "ACTION_FILE_UPLOAD_END", t[t.ACTION_FILE_UPLOAD_RESULT = 1048590] = "ACTION_FILE_UPLOAD_RESULT", t[t.ACTION_OPEN_CHANNEL = 1048591] = "ACTION_OPEN_CHANNEL", t[t.ACTION_OPEN_EXTERNAL_URL = 1048592] = "ACTION_OPEN_EXTERNAL_URL", t[t.ACTION_UI_OPEN_VIEW = 1048593] = "ACTION_UI_OPEN_VIEW", t[t.ACTION_UI_CLOSE_VIEW = 1048594] = "ACTION_UI_CLOSE_VIEW", t[t.ACTION_UI_BLOCKING_BEGIN = 1048595] = "ACTION_UI_BLOCKING_BEGIN", t[t.ACTION_UI_BLOCKING_END = 1048596] = "ACTION_UI_BLOCKING_END", t[t.ACTION_UI_UPDATE_TEXT_DELTA = 1048597] = "ACTION_UI_UPDATE_TEXT_DELTA", t[t.ACTION_UI_DELETE_CONTAINER = 1048598] = "ACTION_UI_DELETE_CONTAINER", t[t.ACTION_UPDATE_GFX_SHADER = 1048599] = "ACTION_UPDATE_GFX_SHADER", t[t.ACTION_FUNCTION_REGISTER = 1048600] = "ACTION_FUNCTION_REGISTER", t[t.ACTION_FUNCTION_CALL = 1048601] = "ACTION_FUNCTION_CALL", t[t.ACTION_FUNCTION_RESULT = 1048602] = "ACTION_FUNCTION_RESULT", t[t.ACTION_GENERATE_ANSWER = 1048603] = "ACTION_GENERATE_ANSWER", t[t.ACTION_REGENERATE_ANSWER = 1048604] = "ACTION_REGENERATE_ANSWER", t[t.ACTION_CLEAR_CHAT_MESSAGE_HISTORY = 1048605] = "ACTION_CLEAR_CHAT_MESSAGE_HISTORY", t[t.ACTION_CLEAR_STATE = 1048606] = "ACTION_CLEAR_STATE", t[t.ACTION_RELOAD_CHANNELS = 1048607] = "ACTION_RELOAD_CHANNELS", t[t.ACTION_RELOAD_PROFILE = 1048608] = "ACTION_RELOAD_PROFILE", t[t.ACTION_CLASSIFICATION_RESULT = 1048609] = "ACTION_CLASSIFICATION_RESULT", t[t.ACTION_AUDIO_STOP = 1048610] = "ACTION_AUDIO_STOP", t[t.ACTION_CALL_TEXT = 1048611] = "ACTION_CALL_TEXT", t[t.ACTION_RELOAD_APPLICATION = 1048612] = "ACTION_RELOAD_APPLICATION", t[t.ACTION_CANCEL_GENERATION = 1048613] = "ACTION_CANCEL_GENERATION", t[t.ACTION_UI_SET_CONTAINER_STABLE = 1048614] = "ACTION_UI_SET_CONTAINER_STABLE", t[t.ACTION_SPEECH_RECOGNIZED = 1048615] = "ACTION_SPEECH_RECOGNIZED", t[t.ACTION_CALL_RESULT = 1048616] = "ACTION_CALL_RESULT", t[t.ACTION_RELOAD_PROVIDER = 1048617] = "ACTION_RELOAD_PROVIDER", t[t.ACTION_DOWNLOAD = 1048618] = "ACTION_DOWNLOAD", t[t.ACTION_SCROLL_TO_CONTAINER = 1048619] = "ACTION_SCROLL_TO_CONTAINER", t[t.ACTION_UI_CLEAR_STREAM = 1048620] = "ACTION_UI_CLEAR_STREAM", t[t.ACTION_PLAY_SOUND = 1048621] = "ACTION_PLAY_SOUND", t[t.ACTION_ENTER_FULLSCREEN = 1048622] = "ACTION_ENTER_FULLSCREEN", t[t.ACTION_STOP_SOUND = 1048623] = "ACTION_STOP_SOUND", t[t.ACTION_START_RECORDING = 1048624] = "ACTION_START_RECORDING", t[t.ACTION_STOP_RECORDING = 1048625] = "ACTION_STOP_RECORDING", t[t.ACTION_FUNCTION_ENUMERATION_ITEM = 1048627] = "ACTION_FUNCTION_ENUMERATION_ITEM", t[t.ACTION_FUNCTION_ENUMERATION_END = 1048628] = "ACTION_FUNCTION_ENUMERATION_END", t[t.ACTION_FUNCTION_CANCEL = 1048629] = "ACTION_FUNCTION_CANCEL", t[t.ACTION_FUNCTION_DISPOSE = 1048630] = "ACTION_FUNCTION_DISPOSE", t[t.ACTION_FUNCTION_ERROR = 1048631] = "ACTION_FUNCTION_ERROR", t[t.ACTION_FUNCTION_ACK = 1048632] = "ACTION_FUNCTION_ACK", t[t.ACTION_FUNCTION_AWAITING_APPROVAL = 1048633] = "ACTION_FUNCTION_AWAITING_APPROVAL", t[t.ACTION_FUNCTION_APPROVAL_REQUIRED = 1048634] = "ACTION_FUNCTION_APPROVAL_REQUIRED", t[t.ACTION_FUNCTION_APPROVAL_RESPONSE = 1048635] = "ACTION_FUNCTION_APPROVAL_RESPONSE", t[t.UI_UPDATE_ACK = 1048636] = "UI_UPDATE_ACK", t[t.ACTION_CALL2 = 1048637] = "ACTION_CALL2", t[t.ACTION_FUNCTION_REGISTER_BATCH = 1048638] = "ACTION_FUNCTION_REGISTER_BATCH", t[t.ACTION_TRIGGER_GIT_PULL = 1048639] = "ACTION_TRIGGER_GIT_PULL", t[t.ACTION_FILE_UPLOAD_CALLBACK = 1048640] = "ACTION_FILE_UPLOAD_CALLBACK", t[t.ACTION_CUSTOM_USER_MESSAGE = 1048641] = "ACTION_CUSTOM_USER_MESSAGE", t[t.ACTION_URL_CHANGED = 1048642] = "ACTION_URL_CHANGED", t[t.ACTION_FILE_UPLOAD_PRE_START2 = 1048643] = "ACTION_FILE_UPLOAD_PRE_START2", t[t.ACTION_FILE_UPLOAD_PRE_START_RESPONSE2 = 1048644] = "ACTION_FILE_UPLOAD_PRE_START_RESPONSE2", t[t.ACTION_FILE_UPLOAD_START2 = 1048645] = "ACTION_FILE_UPLOAD_START2", t[t.ACTION_FILE_UPLOAD_START_RESPONSE2 = 1048646] = "ACTION_FILE_UPLOAD_START_RESPONSE2", t[t.ACTION_FILE_UPLOAD_DATA2 = 1048647] = "ACTION_FILE_UPLOAD_DATA2", t[t.ACTION_FILE_UPLOAD_ACK2 = 1048648] = "ACTION_FILE_UPLOAD_ACK2", t[t.ACTION_FILE_UPLOAD_END2 = 1048649] = "ACTION_FILE_UPLOAD_END2", t[t.ACTION_FILE_UPLOAD_COMPLETE2 = 1048650] = "ACTION_FILE_UPLOAD_COMPLETE2", t[t.ACTION_FUNCTION_ENUMERATION_ITEM_BATCH = 1048651] = "ACTION_FUNCTION_ENUMERATION_ITEM_BATCH", t[t.ACTION_CALL_ACK = 1048652] = "ACTION_CALL_ACK", t[t.ACTION_TRIGGER_CRON = 1048653] = "ACTION_TRIGGER_CRON", t[t.GROUP_UI = 2097152] = "GROUP_UI", t[t.UI_STREAM_BEGIN = 2097153] = "UI_STREAM_BEGIN", t[t.UI_STREAM_END = 2097154] = "UI_STREAM_END", t[t.UI_CONTAINER_BEGIN = 2097155] = "UI_CONTAINER_BEGIN", t[t.UI_CONTAINER_END = 2097156] = "UI_CONTAINER_END", t[t.UI_SECTION_BEGIN = 2097157] = "UI_SECTION_BEGIN", t[t.UI_SECTION_END = 2097158] = "UI_SECTION_END", t[t.UI_LIST_BEGIN = 2097159] = "UI_LIST_BEGIN", t[t.UI_LIST_ITEM = 2097160] = "UI_LIST_ITEM", t[t.UI_LIST_END = 2097161] = "UI_LIST_END", t[t.UI_TEXT = 2097162] = "UI_TEXT", t[t.UI_HEADER = 2097163] = "UI_HEADER", t[t.UI_SEPARATOR = 2097164] = "UI_SEPARATOR", t[t.UI_BUTTON = 2097165] = "UI_BUTTON", t[t.UI_ICON_BUTTON = 2097166] = "UI_ICON_BUTTON", t[t.UI_IMAGE = 2097167] = "UI_IMAGE", t[t.UI_FILE = 2097168] = "UI_FILE", t[t.UI_BADGE = 2097169] = "UI_BADGE", t[t.UI_CONTENT_LINK = 2097170] = "UI_CONTENT_LINK", t[t.UI_MAP = 2097171] = "UI_MAP", t[t.UI_VEGA_CHART = 2097172] = "UI_VEGA_CHART", t[t.UI_ICON = 2097173] = "UI_ICON", t[t.UI_FILE_UPLOAD_SECTION_BEGIN = 2097174] = "UI_FILE_UPLOAD_SECTION_BEGIN", t[t.UI_FILE_UPLOAD_SECTION_END = 2097175] = "UI_FILE_UPLOAD_SECTION_END", t[t.UI_MATERIAL_SYMBOL = 2097176] = "UI_MATERIAL_SYMBOL", t[t.UI_BUTTON_BEGIN = 2097177] = "UI_BUTTON_BEGIN", t[t.UI_BUTTON_END = 2097178] = "UI_BUTTON_END", t[t.UI_CONTAINER_DELETE = 2097179] = "UI_CONTAINER_DELETE", t[t.UI_INPUT_TEXT = 2097180] = "UI_INPUT_TEXT", t[t.UI_PROGRESS_BAR = 2097181] = "UI_PROGRESS_BAR", t[t.UI_UPDATE_BEGIN = 2097182] = "UI_UPDATE_BEGIN", t[t.UI_UPDATE_END = 2097183] = "UI_UPDATE_END", t[t.UI_AUTOCOMPLETE = 2097184] = "UI_AUTOCOMPLETE", t[t.UI_CHECKBOX = 2097185] = "UI_CHECKBOX", t[t.UI_QS = 2097186] = "UI_QS", t[t.UI_ELEMENT = 2097187] = "UI_ELEMENT", t[t.UI_STYLES = 2097188] = "UI_STYLES", t[t.UI_SVG = 2097189] = "UI_SVG", t[t.UI_UPDATE = 2097190] = "UI_UPDATE", t[t.UI_INIT = 2097191] = "UI_INIT", t[t.UI_STYLES_BATCH = 2097192] = "UI_STYLES_BATCH", t[t.UI_STYLES_DELETE = 2097193] = "UI_STYLES_DELETE", t[t.GROUP_COMMON = 4128768] = "GROUP_COMMON", t[t.GROUP_AUDIO = 4194304] = "GROUP_AUDIO", t[t.AUDIO_STREAM_BEGIN = 4194305] = "AUDIO_STREAM_BEGIN", t[t.AUDIO_STREAM_END = 4194306] = "AUDIO_STREAM_END", t[t.AUDIO_FRAME = 4194307] = "AUDIO_FRAME", t[t.AUDIO_FRAME_VOLUME = 4194308] = "AUDIO_FRAME_VOLUME", t[t.AUDIO_FRAME2 = 4194309] = "AUDIO_FRAME2", t[t.AUDIO_SHAPE_FRAME = 4194310] = "AUDIO_SHAPE_FRAME", t[t.GROUP_VIDEO = 8388608] = "GROUP_VIDEO", t[t.VIDEO_STREAM_BEGIN = 8388609] = "VIDEO_STREAM_BEGIN", t[t.VIDEO_STREAM_END = 8388610] = "VIDEO_STREAM_END", t[t.VIDEO_FRAME = 8388611] = "VIDEO_FRAME", t[t.VIDEO_REQUEST_IDR_FRAME = 8388612] = "VIDEO_REQUEST_IDR_FRAME", t[t.VIDEO_INVALIDATE_FRAME = 8388613] = "VIDEO_INVALIDATE_FRAME", t[t.GROUP_TRACKING = 16777216] = "GROUP_TRACKING", t[t.TRACKING_STREAM_BEGIN = 16777217] = "TRACKING_STREAM_BEGIN", t[t.TRACKING_STREAM_END = 16777218] = "TRACKING_STREAM_END", t[t.TRACKING_FRAME = 16777219] = "TRACKING_FRAME", t[t.GROUP_SCENE = 33554432] = "GROUP_SCENE", t[t.SCENE_MESH = 33554433] = "SCENE_MESH", t[t.SCENE_ARRAY = 33554434] = "SCENE_ARRAY", t[t.GROUP_ALL = 67043328] = "GROUP_ALL", t[t.GROUP_APP_LOCAL = 1073741824] = "GROUP_APP_LOCAL", t[t.CONSTANT_GROUP_MASK = 2147418112] = "CONSTANT_GROUP_MASK", t))(L || {});
|
|
999
999
|
const le = 161083277, Ie = 265814330, Ee = 1368629611, _e = 2431514951, he = 2514959030, ue = 2745379226, ce = 3282782683, fe = 3284746250, Te = 4101844078;
|
|
1000
1000
|
function St(t) {
|
|
1001
1001
|
const e = {};
|
|
@@ -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 = 425972532, Pe = 469070965, ke = 470595159, Me = 594855258, Be = 617065367,
|
|
1115
|
+
const Le = 76337612, Oe = 185396121, me = 250031587, ge = 388632637, Fe = 417197284, be = 425972532, Pe = 469070965, ke = 470595159, Me = 594855258, Be = 617065367, pe = 661691032, Ve = 781727218, ve = 834078886, Ge = 1043273762, xe = 1236999138, He = 1286979607, Ye = 1368629611, We = 1437068682, Ke = 1715899485, $e = 1942830531, Xe = 1999510636, je = 2033288346, ze = 2079864626, Je = 2142346422, qe = 2228539873, Qe = 2232517119, Ze = 2598291686, tr = 2719718823, er = 2810953526, rr = 2840065720, sr = 2885165957, nr = 3542818975, ir = 3586157513, or = 3717933110, ar = 4062655306;
|
|
1116
1116
|
function lr(t) {
|
|
1117
1117
|
const e = {};
|
|
1118
1118
|
return wt(e), e;
|
|
@@ -1178,12 +1178,12 @@ function Er(t, e) {
|
|
|
1178
1178
|
e.IsSoftDisconnected = r.asBool();
|
|
1179
1179
|
break;
|
|
1180
1180
|
}
|
|
1181
|
-
case
|
|
1181
|
+
case pe: {
|
|
1182
1182
|
if (r.isNull) throw new Error();
|
|
1183
1183
|
e.SupportsCompression = r.asBool();
|
|
1184
1184
|
break;
|
|
1185
1185
|
}
|
|
1186
|
-
case
|
|
1186
|
+
case Ve: {
|
|
1187
1187
|
if (r.isNull) throw new Error();
|
|
1188
1188
|
e.UserId = r.asString();
|
|
1189
1189
|
break;
|
|
@@ -1406,8 +1406,8 @@ function Or(t) {
|
|
|
1406
1406
|
e.push(vr(r.asObject()));
|
|
1407
1407
|
return e;
|
|
1408
1408
|
}
|
|
1409
|
-
const mr = 607861992, gr = 894485888, Fr = 972460562, br = 1368629611, Pr = 1883521406, kr = 2603556958, Mr = 3609695522, Br = 4075263697,
|
|
1410
|
-
function
|
|
1409
|
+
const mr = 607861992, gr = 894485888, Fr = 972460562, br = 1368629611, Pr = 1883521406, kr = 2603556958, Mr = 3609695522, Br = 4075263697, pr = 4257460908;
|
|
1410
|
+
function Vr(t) {
|
|
1411
1411
|
const e = {};
|
|
1412
1412
|
return Ut(e), e;
|
|
1413
1413
|
}
|
|
@@ -1415,7 +1415,7 @@ function Ut(t) {
|
|
|
1415
1415
|
return t.ParameterIndex = 0, t.ParameterName = "", t.TypeName = "", t.HasDefaultValue = !1, t.DefaultValueJson = "", t.DefaultValueData = new Uint8Array(0), t.IsEnumerable = !1, t.EnumerableItemTypeName = "", t.Description = "", t;
|
|
1416
1416
|
}
|
|
1417
1417
|
function vr(t, e) {
|
|
1418
|
-
const r = e ??
|
|
1418
|
+
const r = e ?? Vr();
|
|
1419
1419
|
return Ut(r), Gr(t, r), r;
|
|
1420
1420
|
}
|
|
1421
1421
|
function Gr(t, e) {
|
|
@@ -1462,7 +1462,7 @@ function Gr(t, e) {
|
|
|
1462
1462
|
e.ParameterName = r.asString();
|
|
1463
1463
|
break;
|
|
1464
1464
|
}
|
|
1465
|
-
case
|
|
1465
|
+
case pr: {
|
|
1466
1466
|
if (r.isNull) throw new Error();
|
|
1467
1467
|
e.ParameterIndex = r.asInt32();
|
|
1468
1468
|
break;
|
|
@@ -1593,7 +1593,7 @@ function as(t, e) {
|
|
|
1593
1593
|
}
|
|
1594
1594
|
}
|
|
1595
1595
|
async function ls(t, e) {
|
|
1596
|
-
const r = await
|
|
1596
|
+
const r = await V(t, es);
|
|
1597
1597
|
return is(r, e);
|
|
1598
1598
|
}
|
|
1599
1599
|
function Is(t) {
|
|
@@ -1633,7 +1633,7 @@ function fs(t, e) {
|
|
|
1633
1633
|
}
|
|
1634
1634
|
}
|
|
1635
1635
|
async function Ts(t, e) {
|
|
1636
|
-
const r = await
|
|
1636
|
+
const r = await V(t, Es);
|
|
1637
1637
|
return us(r, e);
|
|
1638
1638
|
}
|
|
1639
1639
|
function As(t) {
|
|
@@ -1708,7 +1708,7 @@ function ms(t, e) {
|
|
|
1708
1708
|
}
|
|
1709
1709
|
}
|
|
1710
1710
|
async function gs(t, e) {
|
|
1711
|
-
const r = await
|
|
1711
|
+
const r = await V(t, Us);
|
|
1712
1712
|
return Ls(r, e);
|
|
1713
1713
|
}
|
|
1714
1714
|
function Fs(t) {
|
|
@@ -1728,13 +1728,13 @@ function kt(t) {
|
|
|
1728
1728
|
}
|
|
1729
1729
|
function Bs(t, e) {
|
|
1730
1730
|
const r = m.create(t);
|
|
1731
|
-
return
|
|
1731
|
+
return ps(r, e);
|
|
1732
1732
|
}
|
|
1733
|
-
function
|
|
1733
|
+
function ps(t, e) {
|
|
1734
1734
|
const r = e ?? Ms();
|
|
1735
|
-
return kt(r),
|
|
1735
|
+
return kt(r), Vs(t, r), r;
|
|
1736
1736
|
}
|
|
1737
|
-
function
|
|
1737
|
+
function Vs(t, e) {
|
|
1738
1738
|
let r;
|
|
1739
1739
|
for (; (r = t.next()) !== null; )
|
|
1740
1740
|
switch (r.fieldId) {
|
|
@@ -1751,7 +1751,7 @@ function ps(t, e) {
|
|
|
1751
1751
|
}
|
|
1752
1752
|
}
|
|
1753
1753
|
async function vs(t, e) {
|
|
1754
|
-
const r = await
|
|
1754
|
+
const r = await V(t, bs);
|
|
1755
1755
|
return Bs(r, e);
|
|
1756
1756
|
}
|
|
1757
1757
|
function Gs(t) {
|
|
@@ -1778,14 +1778,14 @@ function Ks(t, e, r) {
|
|
|
1778
1778
|
const $s = 161083277, Xs = 164808083, js = 1368629611, zs = 2514959030, Js = 2745379226, qs = 2950031986, Qs = 3282782683, Zs = 3284746250, tn = 4065070594;
|
|
1779
1779
|
function Bt(t) {
|
|
1780
1780
|
const e = {};
|
|
1781
|
-
return
|
|
1781
|
+
return pt(e), e;
|
|
1782
1782
|
}
|
|
1783
|
-
function
|
|
1783
|
+
function pt(t) {
|
|
1784
1784
|
return t.StreamId = "", t.Description = "", t.SourceType = "", t.Codec = ft.H264, t.CodecDetails = "", t.Width = 0, t.Height = 0, t.Framerate = 30, t.CorrelationId = void 0, t;
|
|
1785
1785
|
}
|
|
1786
1786
|
function en(t, e) {
|
|
1787
1787
|
const r = e ?? Bt();
|
|
1788
|
-
return
|
|
1788
|
+
return pt(r), rn(t, r), r;
|
|
1789
1789
|
}
|
|
1790
1790
|
function rn(t, e) {
|
|
1791
1791
|
let r;
|
|
@@ -1844,9 +1844,9 @@ function rn(t, e) {
|
|
|
1844
1844
|
const sn = 65539, nn = 693643444, on = 976837618, an = 1144553441, ln = 1497620243, In = 1559330978, En = 1976546434, _n = 2271236852, hn = 2277643855, un = 2469008121, cn = 3042922213, fn = 3064612128, Tn = 3219210453, An = 3504054055, Nn = 3678477544, Sn = 3696445035, dn = 3707543140, yn = 3712281496, wn = 3895362455, Cn = 3897397815, Un = 3914217035, Dn = 4225107827;
|
|
1845
1845
|
function Rn(t) {
|
|
1846
1846
|
const e = {};
|
|
1847
|
-
return
|
|
1847
|
+
return Vt(e), e;
|
|
1848
1848
|
}
|
|
1849
|
-
function
|
|
1849
|
+
function Vt(t) {
|
|
1850
1850
|
return t.Clients = /* @__PURE__ */ Object.create(null), t.Functions = /* @__PURE__ */ Object.create(null), t.UIStreams = /* @__PURE__ */ Object.create(null), t.AudioStreams = /* @__PURE__ */ Object.create(null), t.VideoStreams = /* @__PURE__ */ Object.create(null), t.TrackingStreams = /* @__PURE__ */ Object.create(null), t.SpaceId = "", t.ChannelId = "", t.ServerSessionId = "", t.SessionHash = "", t.ChannelUrl = "", t.SessionChannelUrl = "", t.FirstUserId = "", t.PrimaryUserId = "", t.OrganisationName = "", t.SpaceName = "", t.ChannelName = "", t.ServerRunType = At.Local, t.AppSourceType = Nt.Bundle, t.PublicAccess = !1, t.DebugMode = !1, t;
|
|
1851
1851
|
}
|
|
1852
1852
|
function Ln(t, e) {
|
|
@@ -1855,7 +1855,7 @@ function Ln(t, e) {
|
|
|
1855
1855
|
}
|
|
1856
1856
|
function On(t, e) {
|
|
1857
1857
|
const r = e ?? Rn();
|
|
1858
|
-
return
|
|
1858
|
+
return Vt(r), mn(t, r), r;
|
|
1859
1859
|
}
|
|
1860
1860
|
function mn(t, e) {
|
|
1861
1861
|
let r;
|
|
@@ -1969,7 +1969,7 @@ function mn(t, e) {
|
|
|
1969
1969
|
}
|
|
1970
1970
|
}
|
|
1971
1971
|
async function gn(t, e) {
|
|
1972
|
-
const r = await
|
|
1972
|
+
const r = await V(t, sn);
|
|
1973
1973
|
return Ln(r, e);
|
|
1974
1974
|
}
|
|
1975
1975
|
function Fn(t) {
|
|
@@ -1995,7 +1995,7 @@ function Pn(t) {
|
|
|
1995
1995
|
let r;
|
|
1996
1996
|
for (; (r = t.next()) !== null; ) {
|
|
1997
1997
|
const s = r.key.asInt32();
|
|
1998
|
-
e[s] =
|
|
1998
|
+
e[s] = pn(r.value.asArray());
|
|
1999
1999
|
}
|
|
2000
2000
|
return e;
|
|
2001
2001
|
}
|
|
@@ -2026,14 +2026,14 @@ function Bn(t) {
|
|
|
2026
2026
|
}
|
|
2027
2027
|
return e;
|
|
2028
2028
|
}
|
|
2029
|
-
function
|
|
2029
|
+
function pn(t) {
|
|
2030
2030
|
const e = [];
|
|
2031
2031
|
let r;
|
|
2032
2032
|
for (; (r = t.next()) !== null; )
|
|
2033
2033
|
e.push(Dr(r.asObject()));
|
|
2034
2034
|
return e;
|
|
2035
2035
|
}
|
|
2036
|
-
const
|
|
2036
|
+
const Vn = 161083277, vn = 325678206, Gn = 3469892363, xn = 3645544153;
|
|
2037
2037
|
function Hn(t) {
|
|
2038
2038
|
const e = {};
|
|
2039
2039
|
return vt(e), e;
|
|
@@ -2049,7 +2049,7 @@ function Wn(t, e) {
|
|
|
2049
2049
|
let r;
|
|
2050
2050
|
for (; (r = t.next()) !== null; )
|
|
2051
2051
|
switch (r.fieldId) {
|
|
2052
|
-
case
|
|
2052
|
+
case Vn: {
|
|
2053
2053
|
if (r.isNull) throw new Error();
|
|
2054
2054
|
e.StreamId = r.asString();
|
|
2055
2055
|
break;
|
|
@@ -2185,7 +2185,7 @@ function _i(t, e) {
|
|
|
2185
2185
|
}
|
|
2186
2186
|
}
|
|
2187
2187
|
}
|
|
2188
|
-
function
|
|
2188
|
+
function D(t) {
|
|
2189
2189
|
return typeof t == "object" && t !== null && !Array.isArray(t);
|
|
2190
2190
|
}
|
|
2191
2191
|
function Yt(t) {
|
|
@@ -2224,7 +2224,7 @@ function et(t, e) {
|
|
|
2224
2224
|
throw new Error(`Invalid or missing node type for ${r}`);
|
|
2225
2225
|
let a = {};
|
|
2226
2226
|
if (n != null) {
|
|
2227
|
-
if (!
|
|
2227
|
+
if (!D(n))
|
|
2228
2228
|
throw new Error(`Invalid props for node ${r}`);
|
|
2229
2229
|
a = Yt(n);
|
|
2230
2230
|
}
|
|
@@ -2243,7 +2243,7 @@ function et(t, e) {
|
|
|
2243
2243
|
};
|
|
2244
2244
|
}
|
|
2245
2245
|
function hi(t, e) {
|
|
2246
|
-
if (!
|
|
2246
|
+
if (!D(t))
|
|
2247
2247
|
throw new Error(`Invalid text delta at ${e}`);
|
|
2248
2248
|
const r = t.NodeId, s = t.PropertyName, n = t.Start, i = t.End, o = t.InsertedText;
|
|
2249
2249
|
if (typeof r != "string" || r.length === 0)
|
|
@@ -2270,12 +2270,12 @@ function hi(t, e) {
|
|
|
2270
2270
|
};
|
|
2271
2271
|
}
|
|
2272
2272
|
function ui(t, e) {
|
|
2273
|
-
if (!
|
|
2273
|
+
if (!D(t))
|
|
2274
2274
|
throw new Error(`Invalid child insert at ${e}`);
|
|
2275
2275
|
const r = t.Index, s = t.Node;
|
|
2276
2276
|
if (typeof r != "number" || !Number.isFinite(r))
|
|
2277
2277
|
throw new Error(`Invalid child insert index at ${e}`);
|
|
2278
|
-
if (!
|
|
2278
|
+
if (!D(s))
|
|
2279
2279
|
throw new Error(`Invalid child insert node at ${e}`);
|
|
2280
2280
|
return {
|
|
2281
2281
|
index: r,
|
|
@@ -2283,7 +2283,7 @@ function ui(t, e) {
|
|
|
2283
2283
|
};
|
|
2284
2284
|
}
|
|
2285
2285
|
function ci(t, e) {
|
|
2286
|
-
if (!
|
|
2286
|
+
if (!D(t))
|
|
2287
2287
|
throw new Error(`Invalid child move at ${e}`);
|
|
2288
2288
|
const r = t.NodeId, s = t.FromIndex, n = t.ToIndex;
|
|
2289
2289
|
if (typeof r != "string" || r.length === 0)
|
|
@@ -2299,7 +2299,7 @@ function ci(t, e) {
|
|
|
2299
2299
|
};
|
|
2300
2300
|
}
|
|
2301
2301
|
function fi(t, e) {
|
|
2302
|
-
if (!
|
|
2302
|
+
if (!D(t))
|
|
2303
2303
|
throw new Error(`Invalid child remove at ${e}`);
|
|
2304
2304
|
const r = t.NodeId, s = t.Index;
|
|
2305
2305
|
if (typeof r != "string" || r.length === 0)
|
|
@@ -2312,7 +2312,7 @@ function fi(t, e) {
|
|
|
2312
2312
|
};
|
|
2313
2313
|
}
|
|
2314
2314
|
function Ti(t, e) {
|
|
2315
|
-
if (!
|
|
2315
|
+
if (!D(t))
|
|
2316
2316
|
throw new Error(`Invalid node change at ${e}`);
|
|
2317
2317
|
const r = t.nodeId;
|
|
2318
2318
|
if (typeof r != "string" || r.length === 0)
|
|
@@ -2325,13 +2325,13 @@ function Ti(t, e) {
|
|
|
2325
2325
|
(l, E) => fi(l ?? {}, `${e}.removals[${E}]`)
|
|
2326
2326
|
) : void 0;
|
|
2327
2327
|
let o;
|
|
2328
|
-
if (
|
|
2328
|
+
if (D(t.changedProps)) {
|
|
2329
2329
|
o = /* @__PURE__ */ new Map();
|
|
2330
2330
|
for (const [l, E] of Object.entries(t.changedProps)) {
|
|
2331
|
-
if (!
|
|
2331
|
+
if (!D(E))
|
|
2332
2332
|
continue;
|
|
2333
2333
|
const h = E.New;
|
|
2334
|
-
h === void 0 ? o.set(l, void 0) :
|
|
2334
|
+
h === void 0 ? o.set(l, void 0) : D(h) ? o.set(l, Yt(h)) : o.set(l, h);
|
|
2335
2335
|
}
|
|
2336
2336
|
}
|
|
2337
2337
|
const a = Array.isArray(t.textUpdates) ? t.textUpdates.map(
|
|
@@ -2370,7 +2370,7 @@ function Ni(t, e, r) {
|
|
|
2370
2370
|
function Si(t, e, r) {
|
|
2371
2371
|
if (!Array.isArray(t))
|
|
2372
2372
|
throw new R("UI diff changes must be an array");
|
|
2373
|
-
if (!
|
|
2373
|
+
if (!D(e))
|
|
2374
2374
|
throw new R("UI diff metadata must be an object");
|
|
2375
2375
|
const s = e.viewId;
|
|
2376
2376
|
if (typeof s != "string" || s.length === 0)
|
|
@@ -2393,7 +2393,7 @@ function di(t, e) {
|
|
|
2393
2393
|
if (typeof r != "string" || r.length === 0)
|
|
2394
2394
|
throw new R("UI update root is missing viewId");
|
|
2395
2395
|
let s = r, n = typeof t.isUpdate == "boolean" ? t.isUpdate : void 0;
|
|
2396
|
-
return
|
|
2396
|
+
return D(e) && (typeof e.viewId == "string" && e.viewId.length > 0 && (s = e.viewId), typeof e.isUpdate == "boolean" && (n = e.isUpdate)), {
|
|
2397
2397
|
viewId: s,
|
|
2398
2398
|
...n !== void 0 ? { isUpdate: n } : {}
|
|
2399
2399
|
};
|
|
@@ -2548,7 +2548,7 @@ class Ui {
|
|
|
2548
2548
|
this.rootViewId || (this.rootViewId = i, I = !0, this.structureChanged = !0);
|
|
2549
2549
|
const _ = o.root;
|
|
2550
2550
|
if (r.type === "full")
|
|
2551
|
-
o.root = r.root, o.version = r.version, I = !0, this.viewsDirty = !0, this.structureChanged = !0, r.root &&
|
|
2551
|
+
o.root = r.root, o.version = r.version, I = !0, this.viewsDirty = !0, this.structureChanged = !0, r.root && p(r.root, this.changedNodeIds);
|
|
2552
2552
|
else {
|
|
2553
2553
|
if (!_)
|
|
2554
2554
|
return !1;
|
|
@@ -2559,6 +2559,13 @@ class Ui {
|
|
|
2559
2559
|
this.payloads.get(l) !== E && (this.payloads.set(l, E), I = !0, this.payloadsDirty = !0);
|
|
2560
2560
|
return I ? (this.commitSnapshot(), this.notify(), !0) : (o.version = r.version, !1);
|
|
2561
2561
|
}
|
|
2562
|
+
// Ignore further diffs (keeping the current tree visible) until the next full snapshot arrives,
|
|
2563
|
+
// which then replaces the tree wholesale. Used on soft reconnect: the cached tree may be missing
|
|
2564
|
+
// diffs lost while the transport was down, so incoming diffs can no longer be trusted — but the
|
|
2565
|
+
// tree stays on screen (no blank) until the server's resync full snapshot lands.
|
|
2566
|
+
enterSnapshotMode() {
|
|
2567
|
+
this.snapshotMode = !0;
|
|
2568
|
+
}
|
|
2562
2569
|
replaceFromWire(e) {
|
|
2563
2570
|
const r = {
|
|
2564
2571
|
rootViewId: e.rootViewId,
|
|
@@ -2581,7 +2588,7 @@ class Ui {
|
|
|
2581
2588
|
if (e.upsertViews && e.upsertViews.length > 0)
|
|
2582
2589
|
for (const [l, E] of e.upsertViews) {
|
|
2583
2590
|
const h = o(), T = h.get(l);
|
|
2584
|
-
T !== E && (h.set(l, E), s = !0, T ? $(T, E, this.changedNodeIds) : (
|
|
2591
|
+
T !== E && (h.set(l, E), s = !0, T ? $(T, E, this.changedNodeIds) : (p(E, this.changedNodeIds), this.structureChanged = !0));
|
|
2585
2592
|
}
|
|
2586
2593
|
if (e.deletePayloads && e.deletePayloads.length > 0)
|
|
2587
2594
|
for (const l of e.deletePayloads)
|
|
@@ -2611,7 +2618,7 @@ class Ui {
|
|
|
2611
2618
|
(r.rootViewId !== e.rootViewId || r.views.size !== e.views.size) && (this.structureChanged = !0);
|
|
2612
2619
|
for (const [n, i] of e.views) {
|
|
2613
2620
|
const o = r.views.get(n);
|
|
2614
|
-
o ? $(o, i, this.changedNodeIds) : (
|
|
2621
|
+
o ? $(o, i, this.changedNodeIds) : (p(i, this.changedNodeIds), this.structureChanged = !0);
|
|
2615
2622
|
}
|
|
2616
2623
|
for (const n of this.changedNodeIds)
|
|
2617
2624
|
this.nodeVersions.set(n, (this.nodeVersions.get(n) ?? 0) + 1);
|
|
@@ -2728,6 +2735,12 @@ class Di {
|
|
|
2728
2735
|
remove(e) {
|
|
2729
2736
|
this.streams.delete(e) && this.notify(e);
|
|
2730
2737
|
}
|
|
2738
|
+
// Puts every existing stream into snapshot mode (see UiStreamStore.enterSnapshotMode) so each one
|
|
2739
|
+
// keeps its current tree visible and ignores diffs until the server's next full snapshot resyncs it.
|
|
2740
|
+
enterSnapshotModeAll() {
|
|
2741
|
+
for (const e of this.streams.values())
|
|
2742
|
+
e.store.enterSnapshotMode();
|
|
2743
|
+
}
|
|
2731
2744
|
setCategory(e, r) {
|
|
2732
2745
|
const s = this.getOrCreateStreamEntry(e);
|
|
2733
2746
|
s.category !== r && (s.category = r, this.notify(e));
|
|
@@ -2850,10 +2863,10 @@ function Kt(t, e, r) {
|
|
|
2850
2863
|
...t.sourceMarker ? { sourceMarker: t.sourceMarker } : {}
|
|
2851
2864
|
} : t;
|
|
2852
2865
|
}
|
|
2853
|
-
function
|
|
2866
|
+
function p(t, e) {
|
|
2854
2867
|
if (e.add(t.id), t.children)
|
|
2855
2868
|
for (const r of t.children)
|
|
2856
|
-
|
|
2869
|
+
p(r, e);
|
|
2857
2870
|
}
|
|
2858
2871
|
const x = [];
|
|
2859
2872
|
function Li(t) {
|
|
@@ -2876,7 +2889,7 @@ function $t(t, e, r, s) {
|
|
|
2876
2889
|
let I = !1;
|
|
2877
2890
|
for (let _ = 0; _ < o.length; _++) {
|
|
2878
2891
|
const l = o[_], E = a.get(l.id);
|
|
2879
|
-
E ? ($t(E, l, r, s + 1), !I && _ < i.length && i[_].id !== l.id && (I = !0)) : (
|
|
2892
|
+
E ? ($t(E, l, r, s + 1), !I && _ < i.length && i[_].id !== l.id && (I = !0)) : (p(l, r), I = !0);
|
|
2880
2893
|
}
|
|
2881
2894
|
(i.length !== o.length || I) && r.add(e.id);
|
|
2882
2895
|
}
|
|
@@ -3006,14 +3019,14 @@ function k(t, e) {
|
|
|
3006
3019
|
}
|
|
3007
3020
|
function bi(t) {
|
|
3008
3021
|
return new Worker(
|
|
3009
|
-
"" + new URL("assets/ui-worker-
|
|
3022
|
+
"" + new URL("assets/ui-worker-BjXx6Rl0.js", import.meta.url).href,
|
|
3010
3023
|
{
|
|
3011
3024
|
type: "module",
|
|
3012
3025
|
name: t?.name
|
|
3013
3026
|
}
|
|
3014
3027
|
);
|
|
3015
3028
|
}
|
|
3016
|
-
const
|
|
3029
|
+
const C = it("IkonUiCore");
|
|
3017
3030
|
class Mi {
|
|
3018
3031
|
unsubscribeProtocolMessages;
|
|
3019
3032
|
unsubscribeState;
|
|
@@ -3040,6 +3053,11 @@ class Mi {
|
|
|
3040
3053
|
this.uiStore.remove(e.streamId), this.notifyUiStreamCleared(e.streamId);
|
|
3041
3054
|
this.uiStyles.clear();
|
|
3042
3055
|
}
|
|
3056
|
+
// Keeps the current tree on screen but makes every stream ignore diffs until the next full
|
|
3057
|
+
// snapshot, which replaces it wholesale. Used on soft reconnect (see subscribeToState).
|
|
3058
|
+
enterSnapshotMode() {
|
|
3059
|
+
this.uiWorker && this.uiWorker.postMessage({ type: "snapshotMode" }), this.uiStore.enterSnapshotModeAll();
|
|
3060
|
+
}
|
|
3043
3061
|
subscribeToUiUpdates(e) {
|
|
3044
3062
|
return this.uiUpdateListeners.add(e), () => {
|
|
3045
3063
|
this.uiUpdateListeners.delete(e);
|
|
@@ -3081,7 +3099,7 @@ class Mi {
|
|
|
3081
3099
|
}
|
|
3082
3100
|
if (n === "connected") {
|
|
3083
3101
|
const i = this.client?.sessionId;
|
|
3084
|
-
this.lastConnectedSessionId !== void 0 && i !== this.lastConnectedSessionId
|
|
3102
|
+
this.lastConnectedSessionId !== void 0 && (i !== this.lastConnectedSessionId ? (C.info(`SessionId changed (${this.lastConnectedSessionId} → ${i}), clearing UI cache so the server can resend a fresh snapshot under the new SessionId`), this.clearAllState()) : (C.info("Soft reconnect (same SessionId), gating UI store on the server resync snapshot"), this.enterSnapshotMode())), this.lastConnectedSessionId = i;
|
|
3085
3103
|
}
|
|
3086
3104
|
});
|
|
3087
3105
|
}
|
|
@@ -3089,7 +3107,7 @@ class Mi {
|
|
|
3089
3107
|
try {
|
|
3090
3108
|
this.uiWorker = new bi();
|
|
3091
3109
|
} catch (n) {
|
|
3092
|
-
|
|
3110
|
+
C.warn("Failed to create UI worker, falling back to main thread", n), this.uiWorker = null;
|
|
3093
3111
|
return;
|
|
3094
3112
|
}
|
|
3095
3113
|
const r = e?.threading?.flushIntervalMs, s = e?.threading?.maxLatencyMs;
|
|
@@ -3097,7 +3115,7 @@ class Mi {
|
|
|
3097
3115
|
this.handleUiStoreOpBatch(n.data);
|
|
3098
3116
|
}), this.uiWorker.addEventListener("error", (n) => {
|
|
3099
3117
|
const i = [n.message, n.filename, n.lineno, n.colno].filter((o) => o != null && String(o).length > 0);
|
|
3100
|
-
|
|
3118
|
+
C.warn(`UI worker failed, falling back to main thread: ${i.join(" ")}`.trim()), this.uiWorker?.terminate(), this.uiWorker = null, this.rehydrateStoresForMainThread();
|
|
3101
3119
|
});
|
|
3102
3120
|
}
|
|
3103
3121
|
rehydrateStoresForMainThread() {
|
|
@@ -3125,7 +3143,7 @@ class Mi {
|
|
|
3125
3143
|
const r = e.slice().buffer;
|
|
3126
3144
|
this.uiWorker.postMessage({ type: "protocol", message: r }, [r]);
|
|
3127
3145
|
} catch (r) {
|
|
3128
|
-
|
|
3146
|
+
C.warn("Failed to forward message to UI worker", r);
|
|
3129
3147
|
}
|
|
3130
3148
|
}
|
|
3131
3149
|
handleUiStoreOpBatch(e) {
|
|
@@ -3210,7 +3228,7 @@ class Mi {
|
|
|
3210
3228
|
for (const n of this.uiStore.getSnapshots())
|
|
3211
3229
|
s.has(n.streamId) || (this.uiStore.remove(n.streamId), this.notifyUiStreamCleared(n.streamId));
|
|
3212
3230
|
}).catch((r) => {
|
|
3213
|
-
|
|
3231
|
+
C.error("Failed to handle global state", r);
|
|
3214
3232
|
});
|
|
3215
3233
|
}
|
|
3216
3234
|
handleUiUpdate(e) {
|
|
@@ -3219,7 +3237,7 @@ class Mi {
|
|
|
3219
3237
|
const i = yi(n);
|
|
3220
3238
|
this.notifyUiUpdate(s, i), this.uiStore.apply(s, i), this.sendUiUpdateAck(r.trackId, i.snapshot.version, r.senderId);
|
|
3221
3239
|
}).catch((n) => {
|
|
3222
|
-
n instanceof R ?
|
|
3240
|
+
n instanceof R ? C.warn("Failed to parse UI update", n.causeError ?? n) : C.error("Failed to apply UI update", n);
|
|
3223
3241
|
});
|
|
3224
3242
|
}
|
|
3225
3243
|
handleUiStyles(e) {
|
|
@@ -3232,7 +3250,7 @@ class Mi {
|
|
|
3232
3250
|
};
|
|
3233
3251
|
this.uiStyles.set(s.styleId, s), this.notifyUiStyle(s);
|
|
3234
3252
|
}).catch((r) => {
|
|
3235
|
-
|
|
3253
|
+
C.error("Failed to handle UI styles", r);
|
|
3236
3254
|
});
|
|
3237
3255
|
}
|
|
3238
3256
|
handleUiStylesBatch(e) {
|
|
@@ -3248,7 +3266,7 @@ class Mi {
|
|
|
3248
3266
|
this.uiStyles.set(n.styleId, n), this.notifyUiStyle(n);
|
|
3249
3267
|
}
|
|
3250
3268
|
}).catch((r) => {
|
|
3251
|
-
|
|
3269
|
+
C.error("Failed to handle UI styles batch", r);
|
|
3252
3270
|
});
|
|
3253
3271
|
}
|
|
3254
3272
|
handleUiStylesDelete(e) {
|
|
@@ -3259,7 +3277,7 @@ class Mi {
|
|
|
3259
3277
|
this.notifyUiStyleDelete(r.StyleIds);
|
|
3260
3278
|
}
|
|
3261
3279
|
}).catch((r) => {
|
|
3262
|
-
|
|
3280
|
+
C.error("Failed to handle UI styles delete", r);
|
|
3263
3281
|
});
|
|
3264
3282
|
}
|
|
3265
3283
|
handleClearStream(e) {
|
|
@@ -3288,7 +3306,7 @@ class Mi {
|
|
|
3288
3306
|
const n = s !== void 0 ? { trackId: e, targetIds: [s] } : { trackId: e }, i = Ks({ Version: r }, this.client.sessionId ?? 0, n);
|
|
3289
3307
|
this.client.sendProtocolMessage(i);
|
|
3290
3308
|
} catch (n) {
|
|
3291
|
-
|
|
3309
|
+
C.warn("Failed to send UI update ack", n);
|
|
3292
3310
|
}
|
|
3293
3311
|
}
|
|
3294
3312
|
}
|
package/package.json
CHANGED
package/ui-store.d.ts
CHANGED
|
@@ -23,6 +23,7 @@ export declare class UiStreamStore {
|
|
|
23
23
|
private payloadsDirty;
|
|
24
24
|
readonly handlerCache: HandlerCache;
|
|
25
25
|
apply(update: ParsedUiUpdate): boolean;
|
|
26
|
+
enterSnapshotMode(): void;
|
|
26
27
|
replaceFromWire(wire: UiStreamSnapshotWire): boolean;
|
|
27
28
|
patchFromOp(op: Extract<UiStoreOp, {
|
|
28
29
|
type: 'PatchStreamSnapshot';
|
|
@@ -46,6 +47,7 @@ export declare class UiStore {
|
|
|
46
47
|
applyStoreOps(ops: readonly UiStoreOp[]): void;
|
|
47
48
|
clear(streamId: string): void;
|
|
48
49
|
remove(streamId: string): void;
|
|
50
|
+
enterSnapshotModeAll(): void;
|
|
49
51
|
setCategory(streamId: string, category?: string): void;
|
|
50
52
|
getSnapshot(streamId: string): StreamSnapshot | undefined;
|
|
51
53
|
getSnapshots(): StreamSnapshot[];
|