@ikonai/sdk-ui 1.0.26 → 1.0.28
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.
|
@@ -57,11 +57,11 @@ async function re(t) {
|
|
|
57
57
|
a.set(i[l], c), c += i[l].length;
|
|
58
58
|
return a;
|
|
59
59
|
}
|
|
60
|
-
var
|
|
60
|
+
var p = /* @__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))(p || {});
|
|
61
61
|
const ne = 161, ie = 162;
|
|
62
62
|
new TextEncoder();
|
|
63
63
|
const oe = new TextDecoder("utf-8", { fatal: !0 });
|
|
64
|
-
class
|
|
64
|
+
class O {
|
|
65
65
|
constructor(s, e, r) {
|
|
66
66
|
this.buffer = s, this.version = e, this.offset = r, this.end = s.length - 1;
|
|
67
67
|
}
|
|
@@ -74,7 +74,7 @@ class L {
|
|
|
74
74
|
if (e[0] !== ne || e[e.length - 1] !== ie)
|
|
75
75
|
throw new Error("Teleport object missing markers");
|
|
76
76
|
const r = { offset: 1 }, n = w(e, r, "InvalidLength");
|
|
77
|
-
return new
|
|
77
|
+
return new O(e, n, r.offset);
|
|
78
78
|
}
|
|
79
79
|
next() {
|
|
80
80
|
if (this.offset >= this.end)
|
|
@@ -86,7 +86,7 @@ class L {
|
|
|
86
86
|
const e = this.buffer[this.offset++], r = e >> 4 & 15;
|
|
87
87
|
if ((e & 15) !== 0)
|
|
88
88
|
throw new Error("Teleport field flags must be zero");
|
|
89
|
-
const n =
|
|
89
|
+
const n = v(r);
|
|
90
90
|
let i;
|
|
91
91
|
if (n >= 0)
|
|
92
92
|
d(this.buffer, this.offset, n), i = this.buffer.subarray(this.offset, this.offset + n), this.offset += n;
|
|
@@ -171,7 +171,7 @@ class R {
|
|
|
171
171
|
return this.ensureType(
|
|
172
172
|
11
|
|
173
173
|
/* Object */
|
|
174
|
-
),
|
|
174
|
+
), O.create(this.payload);
|
|
175
175
|
}
|
|
176
176
|
asArray() {
|
|
177
177
|
return this.ensureType(
|
|
@@ -187,7 +187,7 @@ class R {
|
|
|
187
187
|
}
|
|
188
188
|
ensureType(s) {
|
|
189
189
|
if (this.type !== s)
|
|
190
|
-
throw new Error(`Teleport value has type ${
|
|
190
|
+
throw new Error(`Teleport value has type ${p[this.type]}, expected ${p[s]}`);
|
|
191
191
|
}
|
|
192
192
|
}
|
|
193
193
|
class ae extends R {
|
|
@@ -235,38 +235,38 @@ class st {
|
|
|
235
235
|
case 4:
|
|
236
236
|
case 6:
|
|
237
237
|
case 14: {
|
|
238
|
-
const s =
|
|
238
|
+
const s = v(this.elementType);
|
|
239
239
|
d(this.payload, this.offset, s);
|
|
240
240
|
const e = this.payload.subarray(this.offset, this.offset + s);
|
|
241
|
-
return this.offset += s, new
|
|
241
|
+
return this.offset += s, new V(this.elementType, e);
|
|
242
242
|
}
|
|
243
243
|
case 12:
|
|
244
244
|
case 13: {
|
|
245
245
|
const s = { offset: this.offset }, e = w(this.payload, s, "ArrayMalformed");
|
|
246
246
|
d(this.payload, s.offset, e);
|
|
247
247
|
const r = this.payload.subarray(s.offset, s.offset + e);
|
|
248
|
-
return this.offset = s.offset + e, new
|
|
248
|
+
return this.offset = s.offset + e, new V(this.elementType, r);
|
|
249
249
|
}
|
|
250
250
|
case 11: {
|
|
251
251
|
const s = { offset: this.offset }, e = w(this.payload, s, "ArrayMalformed");
|
|
252
252
|
d(this.payload, s.offset, e);
|
|
253
253
|
const r = this.payload.subarray(s.offset, s.offset + e);
|
|
254
|
-
return this.offset = s.offset + e, new
|
|
254
|
+
return this.offset = s.offset + e, new V(11, r);
|
|
255
255
|
}
|
|
256
256
|
case 9: {
|
|
257
257
|
const s = nt(this.payload, this.offset), e = this.payload.subarray(this.offset, this.offset + s);
|
|
258
|
-
return this.offset += s, new
|
|
258
|
+
return this.offset += s, new V(9, e);
|
|
259
259
|
}
|
|
260
260
|
case 10: {
|
|
261
261
|
const s = it(this.payload, this.offset), e = this.payload.subarray(this.offset, this.offset + s);
|
|
262
|
-
return this.offset += s, new
|
|
262
|
+
return this.offset += s, new V(10, e);
|
|
263
263
|
}
|
|
264
264
|
default:
|
|
265
|
-
throw new Error(`Unsupported array element type ${
|
|
265
|
+
throw new Error(`Unsupported array element type ${p[this.elementType]}`);
|
|
266
266
|
}
|
|
267
267
|
}
|
|
268
268
|
}
|
|
269
|
-
class
|
|
269
|
+
class V extends R {
|
|
270
270
|
constructor(s, e) {
|
|
271
271
|
super(s, e);
|
|
272
272
|
}
|
|
@@ -300,7 +300,7 @@ class rt {
|
|
|
300
300
|
return this.index++, new le(s, e);
|
|
301
301
|
}
|
|
302
302
|
readKey() {
|
|
303
|
-
const s =
|
|
303
|
+
const s = v(this.keyType);
|
|
304
304
|
if (s >= 0) {
|
|
305
305
|
d(this.payload, this.offset, s);
|
|
306
306
|
const e = this.payload.subarray(this.offset, this.offset + s);
|
|
@@ -346,13 +346,13 @@ class rt {
|
|
|
346
346
|
case 6:
|
|
347
347
|
case 14:
|
|
348
348
|
case 1: {
|
|
349
|
-
const s =
|
|
349
|
+
const s = v(this.valueType);
|
|
350
350
|
d(this.payload, this.offset, s);
|
|
351
351
|
const e = this.payload.subarray(this.offset, this.offset + s);
|
|
352
352
|
return this.offset += s, new R(this.valueType, e);
|
|
353
353
|
}
|
|
354
354
|
default:
|
|
355
|
-
throw new Error(`Unsupported dictionary value type ${
|
|
355
|
+
throw new Error(`Unsupported dictionary value type ${p[this.valueType]}`);
|
|
356
356
|
}
|
|
357
357
|
}
|
|
358
358
|
}
|
|
@@ -450,7 +450,7 @@ function w(t, s, e) {
|
|
|
450
450
|
function Ie(t) {
|
|
451
451
|
return t < 128 ? 1 : t < 16384 ? 2 : t < 2097152 ? 3 : t < 268435456 ? 4 : 5;
|
|
452
452
|
}
|
|
453
|
-
function
|
|
453
|
+
function v(t) {
|
|
454
454
|
switch (t) {
|
|
455
455
|
case 3:
|
|
456
456
|
case 5:
|
|
@@ -487,7 +487,7 @@ function nt(t, s) {
|
|
|
487
487
|
const e = t[s], r = e >> 4 & 15;
|
|
488
488
|
if ((e & 15) !== 0)
|
|
489
489
|
throw new Error("Array flags must be zero");
|
|
490
|
-
const n = { offset: s + 1 }, i = w(t, n, "ArrayMalformed"), o =
|
|
490
|
+
const n = { offset: s + 1 }, i = w(t, n, "ArrayMalformed"), o = v(r);
|
|
491
491
|
if (o >= 0) {
|
|
492
492
|
const c = o * i;
|
|
493
493
|
return d(t, n.offset, c), n.offset + c - s;
|
|
@@ -511,7 +511,7 @@ function it(t, s) {
|
|
|
511
511
|
return o - s;
|
|
512
512
|
}
|
|
513
513
|
function q(t, s, e, r) {
|
|
514
|
-
const n =
|
|
514
|
+
const n = v(t);
|
|
515
515
|
if (n >= 0)
|
|
516
516
|
return d(s, e, n), e + n;
|
|
517
517
|
switch (t) {
|
|
@@ -529,7 +529,7 @@ function q(t, s, e, r) {
|
|
|
529
529
|
case 10:
|
|
530
530
|
return e + it(s, e);
|
|
531
531
|
default:
|
|
532
|
-
throw new Error(`Unsupported Teleport type ${
|
|
532
|
+
throw new Error(`Unsupported Teleport type ${p[t]}`);
|
|
533
533
|
}
|
|
534
534
|
}
|
|
535
535
|
function at(t) {
|
|
@@ -538,7 +538,7 @@ function at(t) {
|
|
|
538
538
|
function K(t) {
|
|
539
539
|
return t instanceof Uint8Array ? t : new Uint8Array(t);
|
|
540
540
|
}
|
|
541
|
-
var Et = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.Opus = 1] = "Opus", t[t.Mp3 = 2] = "Mp3", t[t.RawPcm16 = 3] = "RawPcm16", t))(Et || {}), _t = /* @__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))(_t || {}), ft = /* @__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))(ft || {}), ht = /* @__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))(ht || {}), ut = /* @__PURE__ */ ((t) => (t[t.Face = 0] = "Face", t[t.Hands = 1] = "Hands", t[t.Pose = 2] = "Pose", t[t.All = 3] = "All", t))(ut || {}), Tt = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.Machine = 1] = "Machine", t[t.Human = 2] = "Human", t))(Tt || {}), Nt = /* @__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))(Nt || {}), At = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.DotNet = 1] = "DotNet", t[t.TypeScript = 2] = "TypeScript", t[t.Cpp = 3] = "Cpp", t))(At || {}), St = /* @__PURE__ */ ((t) => (t[t.Local = 0] = "Local", t[t.Cloud = 1] = "Cloud", t))(St || {}), dt = /* @__PURE__ */ ((t) => (t[t.Bundle = 0] = "Bundle", t[t.GitSource = 1] = "GitSource", t))(dt || {}), O = /* @__PURE__ */ ((t) => (t[t.NONE = 0] = "NONE", t[t.CONSTANT_GROUP_BITS = 15] = "CONSTANT_GROUP_BITS", t[t.CONSTANT_GROUP_OFFSET = 16] = "CONSTANT_GROUP_OFFSET", t[t.GROUP_CORE = 65536] = "GROUP_CORE", t[t.CORE_AUTH_RESPONSE = 65537] = "CORE_AUTH_RESPONSE", t[t.CORE_AUTH_TICKET = 65538] = "CORE_AUTH_TICKET", t[t.CORE_GLOBAL_STATE = 65539] = "CORE_GLOBAL_STATE", t[t.CORE_ON_SERVER_STATUS_PING = 65540] = "CORE_ON_SERVER_STATUS_PING", t[t.CORE_ON_USER_JOINED = 65541] = "CORE_ON_USER_JOINED", t[t.CORE_ON_USER_LEFT = 65542] = "CORE_ON_USER_LEFT", t[t.CORE_ON_CLIENT_JOINED = 65543] = "CORE_ON_CLIENT_JOINED", t[t.CORE_ON_CLIENT_LEFT = 65544] = "CORE_ON_CLIENT_LEFT", t[t.CORE_ON_SERVER_STARTED = 65545] = "CORE_ON_SERVER_STARTED", t[t.CORE_ON_SERVER_STOPPED = 65546] = "CORE_ON_SERVER_STOPPED", t[t.CORE_ON_SERVER_STOPPING = 65547] = "CORE_ON_SERVER_STOPPING", t[t.CORE_ON_CLIENT_READY = 65548] = "CORE_ON_CLIENT_READY", t[t.CORE_CLIENT_READY = 65549] = "CORE_CLIENT_READY", t[t.CORE_SERVER_INIT = 65550] = "CORE_SERVER_INIT", t[t.CORE_ON_PLUGIN_RELOADED = 65551] = "CORE_ON_PLUGIN_RELOADED", t[t.CORE_SERVER_START = 65552] = "CORE_SERVER_START", t[t.CORE_SERVER_STOP = 65553] = "CORE_SERVER_STOP", t[t.CORE_ON_HOSTED_SERVER_EXIT = 65554] = "CORE_ON_HOSTED_SERVER_EXIT", t[t.CORE_DYNAMIC_CONFIG = 65555] = "CORE_DYNAMIC_CONFIG", t[t.CORE_PROXY_RPC_AUTH_TICKET = 65556] = "CORE_PROXY_RPC_AUTH_TICKET", t[t.CORE_SERVER_INIT2 = 65557] = "CORE_SERVER_INIT2", t[t.CORE_UPDATE_CLIENT_CONTEXT = 65558] = "CORE_UPDATE_CLIENT_CONTEXT", t[t.CORE_BACKGROUND_WORK_ACTIVE = 65559] = "CORE_BACKGROUND_WORK_ACTIVE", t[t.CORE_WEBRTC_OFFER = 65566] = "CORE_WEBRTC_OFFER", t[t.CORE_WEBRTC_ANSWER = 65567] = "CORE_WEBRTC_ANSWER", t[t.CORE_WEBRTC_ICE_CANDIDATE = 65568] = "CORE_WEBRTC_ICE_CANDIDATE", t[t.CORE_WEBRTC_READY = 65569] = "CORE_WEBRTC_READY", t[t.CORE_WEBRTC_AUDIO_SEGMENT = 65570] = "CORE_WEBRTC_AUDIO_SEGMENT", t[t.CORE_WEBRTC_TRACK_MAP = 65571] = "CORE_WEBRTC_TRACK_MAP", t[t.GROUP_KEEPALIVE = 131072] = "GROUP_KEEPALIVE", t[t.KEEPALIVE_REQUEST = 131073] = "KEEPALIVE_REQUEST", t[t.KEEPALIVE_RESPONSE = 131074] = "KEEPALIVE_RESPONSE", t[t.GROUP_EVENTS = 262144] = "GROUP_EVENTS", t[t.EVENTS_PROFILE_UPDATE = 262145] = "EVENTS_PROFILE_UPDATE", t[t.EVENTS_CHANNEL_COMPLETE = 262146] = "EVENTS_CHANNEL_COMPLETE", t[t.EVENTS_SPEECH_PLAYBACK_COMPLETE = 262147] = "EVENTS_SPEECH_PLAYBACK_COMPLETE", t[t.GROUP_ANALYTICS = 524288] = "GROUP_ANALYTICS", t[t.ANALYTICS_LOGS = 524289] = "ANALYTICS_LOGS", t[t.ANALYTICS_EVENTS = 524290] = "ANALYTICS_EVENTS", t[t.ANALYTICS_USAGES = 524291] = "ANALYTICS_USAGES", t[t.ANALYTICS_USAGE = 524292] = "ANALYTICS_USAGE", t[t.ANALYTICS_SPECIAL_LOG = 524293] = "ANALYTICS_SPECIAL_LOG", t[t.ANALYTICS_PROCESSING_UPDATE = 524294] = "ANALYTICS_PROCESSING_UPDATE", t[t.ANALYTICS_REACTIVE_PROCESSING_UPDATE = 524295] = "ANALYTICS_REACTIVE_PROCESSING_UPDATE", t[t.ANALYTICS_IKON_PROXY_SERVER_STATS = 524296] = "ANALYTICS_IKON_PROXY_SERVER_STATS", t[t.GROUP_ACTIONS = 1048576] = "GROUP_ACTIONS", t[t.ACTION_CALL = 1048577] = "ACTION_CALL", t[t.ACTION_ACTIVE = 1048578] = "ACTION_ACTIVE", t[t.ACTION_TEXT_OUTPUT = 1048579] = "ACTION_TEXT_OUTPUT", t[t.ACTION_TEXT_OUTPUT_DELTA = 1048580] = "ACTION_TEXT_OUTPUT_DELTA", t[t.ACTION_TEXT_OUTPUT_DELTA_FULL = 1048581] = "ACTION_TEXT_OUTPUT_DELTA_FULL", t[t.ACTION_SET_STATE = 1048582] = "ACTION_SET_STATE", t[t.ACTION_TAP = 1048583] = "ACTION_TAP", t[t.ACTION_PAN = 1048584] = "ACTION_PAN", t[t.ACTION_ZOOM = 1048585] = "ACTION_ZOOM", t[t.ACTION_FILE_UPLOAD_BEGIN = 1048586] = "ACTION_FILE_UPLOAD_BEGIN", t[t.ACTION_FILE_UPLOAD_DATA = 1048587] = "ACTION_FILE_UPLOAD_DATA", t[t.ACTION_FILE_UPLOAD_ACK = 1048588] = "ACTION_FILE_UPLOAD_ACK", t[t.ACTION_FILE_UPLOAD_END = 1048589] = "ACTION_FILE_UPLOAD_END", t[t.ACTION_FILE_UPLOAD_RESULT = 1048590] = "ACTION_FILE_UPLOAD_RESULT", t[t.ACTION_OPEN_CHANNEL = 1048591] = "ACTION_OPEN_CHANNEL", t[t.ACTION_OPEN_EXTERNAL_URL = 1048592] = "ACTION_OPEN_EXTERNAL_URL", t[t.ACTION_UI_OPEN_VIEW = 1048593] = "ACTION_UI_OPEN_VIEW", t[t.ACTION_UI_CLOSE_VIEW = 1048594] = "ACTION_UI_CLOSE_VIEW", t[t.ACTION_UI_BLOCKING_BEGIN = 1048595] = "ACTION_UI_BLOCKING_BEGIN", t[t.ACTION_UI_BLOCKING_END = 1048596] = "ACTION_UI_BLOCKING_END", t[t.ACTION_UI_UPDATE_TEXT_DELTA = 1048597] = "ACTION_UI_UPDATE_TEXT_DELTA", t[t.ACTION_UI_DELETE_CONTAINER = 1048598] = "ACTION_UI_DELETE_CONTAINER", t[t.ACTION_UPDATE_GFX_SHADER = 1048599] = "ACTION_UPDATE_GFX_SHADER", t[t.ACTION_FUNCTION_REGISTER = 1048600] = "ACTION_FUNCTION_REGISTER", t[t.ACTION_FUNCTION_CALL = 1048601] = "ACTION_FUNCTION_CALL", t[t.ACTION_FUNCTION_RESULT = 1048602] = "ACTION_FUNCTION_RESULT", t[t.ACTION_GENERATE_ANSWER = 1048603] = "ACTION_GENERATE_ANSWER", t[t.ACTION_REGENERATE_ANSWER = 1048604] = "ACTION_REGENERATE_ANSWER", t[t.ACTION_CLEAR_CHAT_MESSAGE_HISTORY = 1048605] = "ACTION_CLEAR_CHAT_MESSAGE_HISTORY", t[t.ACTION_CLEAR_STATE = 1048606] = "ACTION_CLEAR_STATE", t[t.ACTION_RELOAD_CHANNELS = 1048607] = "ACTION_RELOAD_CHANNELS", t[t.ACTION_RELOAD_PROFILE = 1048608] = "ACTION_RELOAD_PROFILE", t[t.ACTION_CLASSIFICATION_RESULT = 1048609] = "ACTION_CLASSIFICATION_RESULT", t[t.ACTION_AUDIO_STOP = 1048610] = "ACTION_AUDIO_STOP", t[t.ACTION_CALL_TEXT = 1048611] = "ACTION_CALL_TEXT", t[t.ACTION_RELOAD_APPLICATION = 1048612] = "ACTION_RELOAD_APPLICATION", t[t.ACTION_CANCEL_GENERATION = 1048613] = "ACTION_CANCEL_GENERATION", t[t.ACTION_UI_SET_CONTAINER_STABLE = 1048614] = "ACTION_UI_SET_CONTAINER_STABLE", t[t.ACTION_SPEECH_RECOGNIZED = 1048615] = "ACTION_SPEECH_RECOGNIZED", t[t.ACTION_CALL_RESULT = 1048616] = "ACTION_CALL_RESULT", t[t.ACTION_RELOAD_PROVIDER = 1048617] = "ACTION_RELOAD_PROVIDER", t[t.ACTION_DOWNLOAD = 1048618] = "ACTION_DOWNLOAD", t[t.ACTION_SCROLL_TO_CONTAINER = 1048619] = "ACTION_SCROLL_TO_CONTAINER", t[t.ACTION_UI_CLEAR_STREAM = 1048620] = "ACTION_UI_CLEAR_STREAM", t[t.ACTION_PLAY_SOUND = 1048621] = "ACTION_PLAY_SOUND", t[t.ACTION_ENTER_FULLSCREEN = 1048622] = "ACTION_ENTER_FULLSCREEN", t[t.ACTION_STOP_SOUND = 1048623] = "ACTION_STOP_SOUND", t[t.ACTION_START_RECORDING = 1048624] = "ACTION_START_RECORDING", t[t.ACTION_STOP_RECORDING = 1048625] = "ACTION_STOP_RECORDING", t[t.ACTION_OPTIMISTIC_CLIENT_CALLS = 1048626] = "ACTION_OPTIMISTIC_CLIENT_CALLS", t[t.ACTION_FUNCTION_ENUMERATION_ITEM = 1048627] = "ACTION_FUNCTION_ENUMERATION_ITEM", t[t.ACTION_FUNCTION_ENUMERATION_END = 1048628] = "ACTION_FUNCTION_ENUMERATION_END", t[t.ACTION_FUNCTION_CANCEL = 1048629] = "ACTION_FUNCTION_CANCEL", t[t.ACTION_FUNCTION_DISPOSE = 1048630] = "ACTION_FUNCTION_DISPOSE", t[t.ACTION_FUNCTION_ERROR = 1048631] = "ACTION_FUNCTION_ERROR", t[t.ACTION_FUNCTION_ACK = 1048632] = "ACTION_FUNCTION_ACK", t[t.ACTION_FUNCTION_AWAITING_APPROVAL = 1048633] = "ACTION_FUNCTION_AWAITING_APPROVAL", t[t.ACTION_FUNCTION_APPROVAL_REQUIRED = 1048634] = "ACTION_FUNCTION_APPROVAL_REQUIRED", t[t.ACTION_FUNCTION_APPROVAL_RESPONSE = 1048635] = "ACTION_FUNCTION_APPROVAL_RESPONSE", t[t.UI_UPDATE_ACK = 1048636] = "UI_UPDATE_ACK", t[t.ACTION_CALL2 = 1048637] = "ACTION_CALL2", t[t.ACTION_FUNCTION_REGISTER_BATCH = 1048638] = "ACTION_FUNCTION_REGISTER_BATCH", t[t.ACTION_TRIGGER_GIT_PULL = 1048639] = "ACTION_TRIGGER_GIT_PULL", t[t.ACTION_FILE_UPLOAD_CALLBACK = 1048640] = "ACTION_FILE_UPLOAD_CALLBACK", t[t.ACTION_CUSTOM_USER_MESSAGE = 1048641] = "ACTION_CUSTOM_USER_MESSAGE", t[t.ACTION_URL_CHANGED = 1048642] = "ACTION_URL_CHANGED", t[t.GROUP_UI = 2097152] = "GROUP_UI", t[t.UI_STREAM_BEGIN = 2097153] = "UI_STREAM_BEGIN", t[t.UI_STREAM_END = 2097154] = "UI_STREAM_END", t[t.UI_CONTAINER_BEGIN = 2097155] = "UI_CONTAINER_BEGIN", t[t.UI_CONTAINER_END = 2097156] = "UI_CONTAINER_END", t[t.UI_SECTION_BEGIN = 2097157] = "UI_SECTION_BEGIN", t[t.UI_SECTION_END = 2097158] = "UI_SECTION_END", t[t.UI_LIST_BEGIN = 2097159] = "UI_LIST_BEGIN", t[t.UI_LIST_ITEM = 2097160] = "UI_LIST_ITEM", t[t.UI_LIST_END = 2097161] = "UI_LIST_END", t[t.UI_TEXT = 2097162] = "UI_TEXT", t[t.UI_HEADER = 2097163] = "UI_HEADER", t[t.UI_SEPARATOR = 2097164] = "UI_SEPARATOR", t[t.UI_BUTTON = 2097165] = "UI_BUTTON", t[t.UI_ICON_BUTTON = 2097166] = "UI_ICON_BUTTON", t[t.UI_IMAGE = 2097167] = "UI_IMAGE", t[t.UI_FILE = 2097168] = "UI_FILE", t[t.UI_BADGE = 2097169] = "UI_BADGE", t[t.UI_CONTENT_LINK = 2097170] = "UI_CONTENT_LINK", t[t.UI_MAP = 2097171] = "UI_MAP", t[t.UI_VEGA_CHART = 2097172] = "UI_VEGA_CHART", t[t.UI_ICON = 2097173] = "UI_ICON", t[t.UI_FILE_UPLOAD_SECTION_BEGIN = 2097174] = "UI_FILE_UPLOAD_SECTION_BEGIN", t[t.UI_FILE_UPLOAD_SECTION_END = 2097175] = "UI_FILE_UPLOAD_SECTION_END", t[t.UI_MATERIAL_SYMBOL = 2097176] = "UI_MATERIAL_SYMBOL", t[t.UI_BUTTON_BEGIN = 2097177] = "UI_BUTTON_BEGIN", t[t.UI_BUTTON_END = 2097178] = "UI_BUTTON_END", t[t.UI_CONTAINER_DELETE = 2097179] = "UI_CONTAINER_DELETE", t[t.UI_INPUT_TEXT = 2097180] = "UI_INPUT_TEXT", t[t.UI_PROGRESS_BAR = 2097181] = "UI_PROGRESS_BAR", t[t.UI_UPDATE_BEGIN = 2097182] = "UI_UPDATE_BEGIN", t[t.UI_UPDATE_END = 2097183] = "UI_UPDATE_END", t[t.UI_AUTOCOMPLETE = 2097184] = "UI_AUTOCOMPLETE", t[t.UI_CHECKBOX = 2097185] = "UI_CHECKBOX", t[t.UI_QS = 2097186] = "UI_QS", t[t.UI_ELEMENT = 2097187] = "UI_ELEMENT", t[t.UI_STYLES = 2097188] = "UI_STYLES", t[t.UI_SVG = 2097189] = "UI_SVG", t[t.UI_UPDATE = 2097190] = "UI_UPDATE", t[t.UI_INIT = 2097191] = "UI_INIT", t[t.UI_STYLES_BATCH = 2097192] = "UI_STYLES_BATCH", t[t.UI_STYLES_DELETE = 2097193] = "UI_STYLES_DELETE", t[t.GROUP_COMMON = 4128768] = "GROUP_COMMON", t[t.GROUP_AUDIO = 4194304] = "GROUP_AUDIO", t[t.AUDIO_STREAM_BEGIN = 4194305] = "AUDIO_STREAM_BEGIN", t[t.AUDIO_STREAM_END = 4194306] = "AUDIO_STREAM_END", t[t.AUDIO_FRAME = 4194307] = "AUDIO_FRAME", t[t.AUDIO_FRAME_VOLUME = 4194308] = "AUDIO_FRAME_VOLUME", t[t.AUDIO_FRAME2 = 4194309] = "AUDIO_FRAME2", t[t.GROUP_VIDEO = 8388608] = "GROUP_VIDEO", t[t.VIDEO_STREAM_BEGIN = 8388609] = "VIDEO_STREAM_BEGIN", t[t.VIDEO_STREAM_END = 8388610] = "VIDEO_STREAM_END", t[t.VIDEO_FRAME = 8388611] = "VIDEO_FRAME", t[t.VIDEO_REQUEST_IDR_FRAME = 8388612] = "VIDEO_REQUEST_IDR_FRAME", t[t.VIDEO_INVALIDATE_FRAME = 8388613] = "VIDEO_INVALIDATE_FRAME", t[t.GROUP_TRACKING = 16777216] = "GROUP_TRACKING", t[t.TRACKING_STREAM_BEGIN = 16777217] = "TRACKING_STREAM_BEGIN", t[t.TRACKING_STREAM_END = 16777218] = "TRACKING_STREAM_END", t[t.TRACKING_FRAME = 16777219] = "TRACKING_FRAME", t[t.GROUP_SCENE = 33554432] = "GROUP_SCENE", t[t.SCENE_MESH = 33554433] = "SCENE_MESH", t[t.SCENE_ARRAY = 33554434] = "SCENE_ARRAY", t[t.GROUP_ALL = 67043328] = "GROUP_ALL", t[t.CONSTANT_GROUP_MASK = 2147418112] = "CONSTANT_GROUP_MASK", t))(O || {});
|
|
541
|
+
var Et = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.Opus = 1] = "Opus", t[t.Mp3 = 2] = "Mp3", t[t.RawPcm16 = 3] = "RawPcm16", t))(Et || {}), _t = /* @__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))(_t || {}), ft = /* @__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))(ft || {}), ht = /* @__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))(ht || {}), ut = /* @__PURE__ */ ((t) => (t[t.Face = 0] = "Face", t[t.Hands = 1] = "Hands", t[t.Pose = 2] = "Pose", t[t.All = 3] = "All", t))(ut || {}), Tt = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.Machine = 1] = "Machine", t[t.Human = 2] = "Human", t))(Tt || {}), Nt = /* @__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))(Nt || {}), At = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.DotNet = 1] = "DotNet", t[t.TypeScript = 2] = "TypeScript", t[t.Cpp = 3] = "Cpp", t))(At || {}), St = /* @__PURE__ */ ((t) => (t[t.Local = 0] = "Local", t[t.Cloud = 1] = "Cloud", t))(St || {}), dt = /* @__PURE__ */ ((t) => (t[t.Bundle = 0] = "Bundle", t[t.GitSource = 1] = "GitSource", t))(dt || {}), g = /* @__PURE__ */ ((t) => (t[t.NONE = 0] = "NONE", t[t.CONSTANT_GROUP_BITS = 15] = "CONSTANT_GROUP_BITS", t[t.CONSTANT_GROUP_OFFSET = 16] = "CONSTANT_GROUP_OFFSET", t[t.GROUP_CORE = 65536] = "GROUP_CORE", t[t.CORE_AUTH_RESPONSE = 65537] = "CORE_AUTH_RESPONSE", t[t.CORE_AUTH_TICKET = 65538] = "CORE_AUTH_TICKET", t[t.CORE_GLOBAL_STATE = 65539] = "CORE_GLOBAL_STATE", t[t.CORE_ON_SERVER_STATUS_PING = 65540] = "CORE_ON_SERVER_STATUS_PING", t[t.CORE_ON_USER_JOINED = 65541] = "CORE_ON_USER_JOINED", t[t.CORE_ON_USER_LEFT = 65542] = "CORE_ON_USER_LEFT", t[t.CORE_ON_CLIENT_JOINED = 65543] = "CORE_ON_CLIENT_JOINED", t[t.CORE_ON_CLIENT_LEFT = 65544] = "CORE_ON_CLIENT_LEFT", t[t.CORE_ON_SERVER_STARTED = 65545] = "CORE_ON_SERVER_STARTED", t[t.CORE_ON_SERVER_STOPPED = 65546] = "CORE_ON_SERVER_STOPPED", t[t.CORE_ON_SERVER_STOPPING = 65547] = "CORE_ON_SERVER_STOPPING", t[t.CORE_ON_CLIENT_READY = 65548] = "CORE_ON_CLIENT_READY", t[t.CORE_CLIENT_READY = 65549] = "CORE_CLIENT_READY", t[t.CORE_SERVER_INIT = 65550] = "CORE_SERVER_INIT", t[t.CORE_ON_PLUGIN_RELOADED = 65551] = "CORE_ON_PLUGIN_RELOADED", t[t.CORE_SERVER_START = 65552] = "CORE_SERVER_START", t[t.CORE_SERVER_STOP = 65553] = "CORE_SERVER_STOP", t[t.CORE_ON_HOSTED_SERVER_EXIT = 65554] = "CORE_ON_HOSTED_SERVER_EXIT", t[t.CORE_DYNAMIC_CONFIG = 65555] = "CORE_DYNAMIC_CONFIG", t[t.CORE_PROXY_RPC_AUTH_TICKET = 65556] = "CORE_PROXY_RPC_AUTH_TICKET", t[t.CORE_SERVER_INIT2 = 65557] = "CORE_SERVER_INIT2", t[t.CORE_UPDATE_CLIENT_CONTEXT = 65558] = "CORE_UPDATE_CLIENT_CONTEXT", t[t.CORE_BACKGROUND_WORK_ACTIVE = 65559] = "CORE_BACKGROUND_WORK_ACTIVE", t[t.CORE_WEBRTC_OFFER = 65566] = "CORE_WEBRTC_OFFER", t[t.CORE_WEBRTC_ANSWER = 65567] = "CORE_WEBRTC_ANSWER", t[t.CORE_WEBRTC_ICE_CANDIDATE = 65568] = "CORE_WEBRTC_ICE_CANDIDATE", t[t.CORE_WEBRTC_READY = 65569] = "CORE_WEBRTC_READY", t[t.CORE_WEBRTC_AUDIO_SEGMENT = 65570] = "CORE_WEBRTC_AUDIO_SEGMENT", t[t.CORE_WEBRTC_TRACK_MAP = 65571] = "CORE_WEBRTC_TRACK_MAP", t[t.GROUP_KEEPALIVE = 131072] = "GROUP_KEEPALIVE", t[t.KEEPALIVE_REQUEST = 131073] = "KEEPALIVE_REQUEST", t[t.KEEPALIVE_RESPONSE = 131074] = "KEEPALIVE_RESPONSE", t[t.GROUP_EVENTS = 262144] = "GROUP_EVENTS", t[t.EVENTS_PROFILE_UPDATE = 262145] = "EVENTS_PROFILE_UPDATE", t[t.EVENTS_CHANNEL_COMPLETE = 262146] = "EVENTS_CHANNEL_COMPLETE", t[t.EVENTS_SPEECH_PLAYBACK_COMPLETE = 262147] = "EVENTS_SPEECH_PLAYBACK_COMPLETE", t[t.GROUP_ANALYTICS = 524288] = "GROUP_ANALYTICS", t[t.ANALYTICS_LOGS = 524289] = "ANALYTICS_LOGS", t[t.ANALYTICS_EVENTS = 524290] = "ANALYTICS_EVENTS", t[t.ANALYTICS_USAGES = 524291] = "ANALYTICS_USAGES", t[t.ANALYTICS_USAGE = 524292] = "ANALYTICS_USAGE", t[t.ANALYTICS_SPECIAL_LOG = 524293] = "ANALYTICS_SPECIAL_LOG", t[t.ANALYTICS_PROCESSING_UPDATE = 524294] = "ANALYTICS_PROCESSING_UPDATE", t[t.ANALYTICS_REACTIVE_PROCESSING_UPDATE = 524295] = "ANALYTICS_REACTIVE_PROCESSING_UPDATE", t[t.ANALYTICS_IKON_PROXY_SERVER_STATS = 524296] = "ANALYTICS_IKON_PROXY_SERVER_STATS", t[t.GROUP_ACTIONS = 1048576] = "GROUP_ACTIONS", t[t.ACTION_CALL = 1048577] = "ACTION_CALL", t[t.ACTION_ACTIVE = 1048578] = "ACTION_ACTIVE", t[t.ACTION_TEXT_OUTPUT = 1048579] = "ACTION_TEXT_OUTPUT", t[t.ACTION_TEXT_OUTPUT_DELTA = 1048580] = "ACTION_TEXT_OUTPUT_DELTA", t[t.ACTION_TEXT_OUTPUT_DELTA_FULL = 1048581] = "ACTION_TEXT_OUTPUT_DELTA_FULL", t[t.ACTION_SET_STATE = 1048582] = "ACTION_SET_STATE", t[t.ACTION_TAP = 1048583] = "ACTION_TAP", t[t.ACTION_PAN = 1048584] = "ACTION_PAN", t[t.ACTION_ZOOM = 1048585] = "ACTION_ZOOM", t[t.ACTION_FILE_UPLOAD_BEGIN = 1048586] = "ACTION_FILE_UPLOAD_BEGIN", t[t.ACTION_FILE_UPLOAD_DATA = 1048587] = "ACTION_FILE_UPLOAD_DATA", t[t.ACTION_FILE_UPLOAD_ACK = 1048588] = "ACTION_FILE_UPLOAD_ACK", t[t.ACTION_FILE_UPLOAD_END = 1048589] = "ACTION_FILE_UPLOAD_END", t[t.ACTION_FILE_UPLOAD_RESULT = 1048590] = "ACTION_FILE_UPLOAD_RESULT", t[t.ACTION_OPEN_CHANNEL = 1048591] = "ACTION_OPEN_CHANNEL", t[t.ACTION_OPEN_EXTERNAL_URL = 1048592] = "ACTION_OPEN_EXTERNAL_URL", t[t.ACTION_UI_OPEN_VIEW = 1048593] = "ACTION_UI_OPEN_VIEW", t[t.ACTION_UI_CLOSE_VIEW = 1048594] = "ACTION_UI_CLOSE_VIEW", t[t.ACTION_UI_BLOCKING_BEGIN = 1048595] = "ACTION_UI_BLOCKING_BEGIN", t[t.ACTION_UI_BLOCKING_END = 1048596] = "ACTION_UI_BLOCKING_END", t[t.ACTION_UI_UPDATE_TEXT_DELTA = 1048597] = "ACTION_UI_UPDATE_TEXT_DELTA", t[t.ACTION_UI_DELETE_CONTAINER = 1048598] = "ACTION_UI_DELETE_CONTAINER", t[t.ACTION_UPDATE_GFX_SHADER = 1048599] = "ACTION_UPDATE_GFX_SHADER", t[t.ACTION_FUNCTION_REGISTER = 1048600] = "ACTION_FUNCTION_REGISTER", t[t.ACTION_FUNCTION_CALL = 1048601] = "ACTION_FUNCTION_CALL", t[t.ACTION_FUNCTION_RESULT = 1048602] = "ACTION_FUNCTION_RESULT", t[t.ACTION_GENERATE_ANSWER = 1048603] = "ACTION_GENERATE_ANSWER", t[t.ACTION_REGENERATE_ANSWER = 1048604] = "ACTION_REGENERATE_ANSWER", t[t.ACTION_CLEAR_CHAT_MESSAGE_HISTORY = 1048605] = "ACTION_CLEAR_CHAT_MESSAGE_HISTORY", t[t.ACTION_CLEAR_STATE = 1048606] = "ACTION_CLEAR_STATE", t[t.ACTION_RELOAD_CHANNELS = 1048607] = "ACTION_RELOAD_CHANNELS", t[t.ACTION_RELOAD_PROFILE = 1048608] = "ACTION_RELOAD_PROFILE", t[t.ACTION_CLASSIFICATION_RESULT = 1048609] = "ACTION_CLASSIFICATION_RESULT", t[t.ACTION_AUDIO_STOP = 1048610] = "ACTION_AUDIO_STOP", t[t.ACTION_CALL_TEXT = 1048611] = "ACTION_CALL_TEXT", t[t.ACTION_RELOAD_APPLICATION = 1048612] = "ACTION_RELOAD_APPLICATION", t[t.ACTION_CANCEL_GENERATION = 1048613] = "ACTION_CANCEL_GENERATION", t[t.ACTION_UI_SET_CONTAINER_STABLE = 1048614] = "ACTION_UI_SET_CONTAINER_STABLE", t[t.ACTION_SPEECH_RECOGNIZED = 1048615] = "ACTION_SPEECH_RECOGNIZED", t[t.ACTION_CALL_RESULT = 1048616] = "ACTION_CALL_RESULT", t[t.ACTION_RELOAD_PROVIDER = 1048617] = "ACTION_RELOAD_PROVIDER", t[t.ACTION_DOWNLOAD = 1048618] = "ACTION_DOWNLOAD", t[t.ACTION_SCROLL_TO_CONTAINER = 1048619] = "ACTION_SCROLL_TO_CONTAINER", t[t.ACTION_UI_CLEAR_STREAM = 1048620] = "ACTION_UI_CLEAR_STREAM", t[t.ACTION_PLAY_SOUND = 1048621] = "ACTION_PLAY_SOUND", t[t.ACTION_ENTER_FULLSCREEN = 1048622] = "ACTION_ENTER_FULLSCREEN", t[t.ACTION_STOP_SOUND = 1048623] = "ACTION_STOP_SOUND", t[t.ACTION_START_RECORDING = 1048624] = "ACTION_START_RECORDING", t[t.ACTION_STOP_RECORDING = 1048625] = "ACTION_STOP_RECORDING", t[t.ACTION_OPTIMISTIC_CLIENT_CALLS = 1048626] = "ACTION_OPTIMISTIC_CLIENT_CALLS", t[t.ACTION_FUNCTION_ENUMERATION_ITEM = 1048627] = "ACTION_FUNCTION_ENUMERATION_ITEM", t[t.ACTION_FUNCTION_ENUMERATION_END = 1048628] = "ACTION_FUNCTION_ENUMERATION_END", t[t.ACTION_FUNCTION_CANCEL = 1048629] = "ACTION_FUNCTION_CANCEL", t[t.ACTION_FUNCTION_DISPOSE = 1048630] = "ACTION_FUNCTION_DISPOSE", t[t.ACTION_FUNCTION_ERROR = 1048631] = "ACTION_FUNCTION_ERROR", t[t.ACTION_FUNCTION_ACK = 1048632] = "ACTION_FUNCTION_ACK", t[t.ACTION_FUNCTION_AWAITING_APPROVAL = 1048633] = "ACTION_FUNCTION_AWAITING_APPROVAL", t[t.ACTION_FUNCTION_APPROVAL_REQUIRED = 1048634] = "ACTION_FUNCTION_APPROVAL_REQUIRED", t[t.ACTION_FUNCTION_APPROVAL_RESPONSE = 1048635] = "ACTION_FUNCTION_APPROVAL_RESPONSE", t[t.UI_UPDATE_ACK = 1048636] = "UI_UPDATE_ACK", t[t.ACTION_CALL2 = 1048637] = "ACTION_CALL2", t[t.ACTION_FUNCTION_REGISTER_BATCH = 1048638] = "ACTION_FUNCTION_REGISTER_BATCH", t[t.ACTION_TRIGGER_GIT_PULL = 1048639] = "ACTION_TRIGGER_GIT_PULL", t[t.ACTION_FILE_UPLOAD_CALLBACK = 1048640] = "ACTION_FILE_UPLOAD_CALLBACK", t[t.ACTION_CUSTOM_USER_MESSAGE = 1048641] = "ACTION_CUSTOM_USER_MESSAGE", t[t.ACTION_URL_CHANGED = 1048642] = "ACTION_URL_CHANGED", t[t.GROUP_UI = 2097152] = "GROUP_UI", t[t.UI_STREAM_BEGIN = 2097153] = "UI_STREAM_BEGIN", t[t.UI_STREAM_END = 2097154] = "UI_STREAM_END", t[t.UI_CONTAINER_BEGIN = 2097155] = "UI_CONTAINER_BEGIN", t[t.UI_CONTAINER_END = 2097156] = "UI_CONTAINER_END", t[t.UI_SECTION_BEGIN = 2097157] = "UI_SECTION_BEGIN", t[t.UI_SECTION_END = 2097158] = "UI_SECTION_END", t[t.UI_LIST_BEGIN = 2097159] = "UI_LIST_BEGIN", t[t.UI_LIST_ITEM = 2097160] = "UI_LIST_ITEM", t[t.UI_LIST_END = 2097161] = "UI_LIST_END", t[t.UI_TEXT = 2097162] = "UI_TEXT", t[t.UI_HEADER = 2097163] = "UI_HEADER", t[t.UI_SEPARATOR = 2097164] = "UI_SEPARATOR", t[t.UI_BUTTON = 2097165] = "UI_BUTTON", t[t.UI_ICON_BUTTON = 2097166] = "UI_ICON_BUTTON", t[t.UI_IMAGE = 2097167] = "UI_IMAGE", t[t.UI_FILE = 2097168] = "UI_FILE", t[t.UI_BADGE = 2097169] = "UI_BADGE", t[t.UI_CONTENT_LINK = 2097170] = "UI_CONTENT_LINK", t[t.UI_MAP = 2097171] = "UI_MAP", t[t.UI_VEGA_CHART = 2097172] = "UI_VEGA_CHART", t[t.UI_ICON = 2097173] = "UI_ICON", t[t.UI_FILE_UPLOAD_SECTION_BEGIN = 2097174] = "UI_FILE_UPLOAD_SECTION_BEGIN", t[t.UI_FILE_UPLOAD_SECTION_END = 2097175] = "UI_FILE_UPLOAD_SECTION_END", t[t.UI_MATERIAL_SYMBOL = 2097176] = "UI_MATERIAL_SYMBOL", t[t.UI_BUTTON_BEGIN = 2097177] = "UI_BUTTON_BEGIN", t[t.UI_BUTTON_END = 2097178] = "UI_BUTTON_END", t[t.UI_CONTAINER_DELETE = 2097179] = "UI_CONTAINER_DELETE", t[t.UI_INPUT_TEXT = 2097180] = "UI_INPUT_TEXT", t[t.UI_PROGRESS_BAR = 2097181] = "UI_PROGRESS_BAR", t[t.UI_UPDATE_BEGIN = 2097182] = "UI_UPDATE_BEGIN", t[t.UI_UPDATE_END = 2097183] = "UI_UPDATE_END", t[t.UI_AUTOCOMPLETE = 2097184] = "UI_AUTOCOMPLETE", t[t.UI_CHECKBOX = 2097185] = "UI_CHECKBOX", t[t.UI_QS = 2097186] = "UI_QS", t[t.UI_ELEMENT = 2097187] = "UI_ELEMENT", t[t.UI_STYLES = 2097188] = "UI_STYLES", t[t.UI_SVG = 2097189] = "UI_SVG", t[t.UI_UPDATE = 2097190] = "UI_UPDATE", t[t.UI_INIT = 2097191] = "UI_INIT", t[t.UI_STYLES_BATCH = 2097192] = "UI_STYLES_BATCH", t[t.UI_STYLES_DELETE = 2097193] = "UI_STYLES_DELETE", t[t.GROUP_COMMON = 4128768] = "GROUP_COMMON", t[t.GROUP_AUDIO = 4194304] = "GROUP_AUDIO", t[t.AUDIO_STREAM_BEGIN = 4194305] = "AUDIO_STREAM_BEGIN", t[t.AUDIO_STREAM_END = 4194306] = "AUDIO_STREAM_END", t[t.AUDIO_FRAME = 4194307] = "AUDIO_FRAME", t[t.AUDIO_FRAME_VOLUME = 4194308] = "AUDIO_FRAME_VOLUME", t[t.AUDIO_FRAME2 = 4194309] = "AUDIO_FRAME2", t[t.GROUP_VIDEO = 8388608] = "GROUP_VIDEO", t[t.VIDEO_STREAM_BEGIN = 8388609] = "VIDEO_STREAM_BEGIN", t[t.VIDEO_STREAM_END = 8388610] = "VIDEO_STREAM_END", t[t.VIDEO_FRAME = 8388611] = "VIDEO_FRAME", t[t.VIDEO_REQUEST_IDR_FRAME = 8388612] = "VIDEO_REQUEST_IDR_FRAME", t[t.VIDEO_INVALIDATE_FRAME = 8388613] = "VIDEO_INVALIDATE_FRAME", t[t.GROUP_TRACKING = 16777216] = "GROUP_TRACKING", t[t.TRACKING_STREAM_BEGIN = 16777217] = "TRACKING_STREAM_BEGIN", t[t.TRACKING_STREAM_END = 16777218] = "TRACKING_STREAM_END", t[t.TRACKING_FRAME = 16777219] = "TRACKING_FRAME", t[t.GROUP_SCENE = 33554432] = "GROUP_SCENE", t[t.SCENE_MESH = 33554433] = "SCENE_MESH", t[t.SCENE_ARRAY = 33554434] = "SCENE_ARRAY", t[t.GROUP_ALL = 67043328] = "GROUP_ALL", t[t.CONSTANT_GROUP_MASK = 2147418112] = "CONSTANT_GROUP_MASK", t))(g || {});
|
|
542
542
|
const Ee = 161083277, _e = 265814330, fe = 1368629611, he = 2431514951, ue = 2745379226, Te = 3282782683, Ne = 3284746250, Ae = 4101844078;
|
|
543
543
|
function Ct(t) {
|
|
544
544
|
const s = {};
|
|
@@ -1109,7 +1109,7 @@ function Ft(t) {
|
|
|
1109
1109
|
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 = St.Local, t.AppSourceType = dt.Bundle, t.PublicAccess = !1, t.DebugMode = !1, t;
|
|
1110
1110
|
}
|
|
1111
1111
|
function Rr(t, s) {
|
|
1112
|
-
const e =
|
|
1112
|
+
const e = O.create(t);
|
|
1113
1113
|
return Ur(e, s);
|
|
1114
1114
|
}
|
|
1115
1115
|
function Ur(t, s) {
|
|
@@ -1476,7 +1476,7 @@ function Gt(t) {
|
|
|
1476
1476
|
return t.StyleId = "", t.Style = /* @__PURE__ */ Object.create(null), t;
|
|
1477
1477
|
}
|
|
1478
1478
|
function dn(t, s) {
|
|
1479
|
-
const e =
|
|
1479
|
+
const e = O.create(t);
|
|
1480
1480
|
return Cn(e, s);
|
|
1481
1481
|
}
|
|
1482
1482
|
function Cn(t, s) {
|
|
@@ -1521,7 +1521,7 @@ function Bt(t) {
|
|
|
1521
1521
|
return t.Styles = [], t;
|
|
1522
1522
|
}
|
|
1523
1523
|
function Ln(t, s) {
|
|
1524
|
-
const e =
|
|
1524
|
+
const e = O.create(t);
|
|
1525
1525
|
return On(e, s);
|
|
1526
1526
|
}
|
|
1527
1527
|
function On(t, s) {
|
|
@@ -1596,7 +1596,7 @@ function Ht(t) {
|
|
|
1596
1596
|
return t.StyleIds = [], t;
|
|
1597
1597
|
}
|
|
1598
1598
|
function Hn(t, s) {
|
|
1599
|
-
const e =
|
|
1599
|
+
const e = O.create(t);
|
|
1600
1600
|
return Yn(e, s);
|
|
1601
1601
|
}
|
|
1602
1602
|
function Yn(t, s) {
|
|
@@ -1634,7 +1634,7 @@ function Yt(t) {
|
|
|
1634
1634
|
return t.Json = "", t.Payloads = /* @__PURE__ */ Object.create(null), t;
|
|
1635
1635
|
}
|
|
1636
1636
|
function qn(t, s) {
|
|
1637
|
-
const e =
|
|
1637
|
+
const e = O.create(t);
|
|
1638
1638
|
return Qn(e, s);
|
|
1639
1639
|
}
|
|
1640
1640
|
function Qn(t, s) {
|
|
@@ -2394,12 +2394,12 @@ function Xt(t, s, e) {
|
|
|
2394
2394
|
for (const [f, S] of r.changedProps.entries()) {
|
|
2395
2395
|
const u = a[f];
|
|
2396
2396
|
if (S === void 0)
|
|
2397
|
-
(u !== void 0 || f in a) && (o || (a =
|
|
2397
|
+
(u !== void 0 || f in a) && (o || (a = G(a), o = !0), delete a[f]);
|
|
2398
2398
|
else if (tt(S)) {
|
|
2399
|
-
const A =
|
|
2400
|
-
|
|
2399
|
+
const A = G(S);
|
|
2400
|
+
M(A, u) || (o || (a = G(a), o = !0), a[f] = A);
|
|
2401
2401
|
} else
|
|
2402
|
-
|
|
2402
|
+
M(S, u) || (o || (a = G(a), o = !0), a[f] = S);
|
|
2403
2403
|
}
|
|
2404
2404
|
let c = !1, l = n.styleIds;
|
|
2405
2405
|
r?.styleIds !== void 0 && (zt(n.styleIds, r.styleIds) || (l = r.styleIds, c = !0));
|
|
@@ -2414,16 +2414,16 @@ function Xt(t, s, e) {
|
|
|
2414
2414
|
_ = !0;
|
|
2415
2415
|
}
|
|
2416
2416
|
if (r?.moves && r.moves.length > 0) {
|
|
2417
|
-
const S = [...r.moves].sort((A,
|
|
2417
|
+
const S = [...r.moves].sort((A, L) => A.toIndex - L.toIndex), u = /* @__PURE__ */ new Map();
|
|
2418
2418
|
for (const A of S) {
|
|
2419
|
-
const
|
|
2420
|
-
|
|
2419
|
+
const L = f.findIndex((z) => z.id === A.nodeId);
|
|
2420
|
+
L >= 0 && (u.set(A.nodeId, f[L]), f.splice(L, 1));
|
|
2421
2421
|
}
|
|
2422
2422
|
for (const A of S) {
|
|
2423
|
-
const
|
|
2424
|
-
if (
|
|
2423
|
+
const L = u.get(A.nodeId);
|
|
2424
|
+
if (L) {
|
|
2425
2425
|
const z = Math.min(A.toIndex, f.length);
|
|
2426
|
-
f.splice(z, 0,
|
|
2426
|
+
f.splice(z, 0, L);
|
|
2427
2427
|
}
|
|
2428
2428
|
}
|
|
2429
2429
|
_ = !0;
|
|
@@ -2483,7 +2483,7 @@ function jt(t, s, e, r) {
|
|
|
2483
2483
|
}
|
|
2484
2484
|
}
|
|
2485
2485
|
function Ti(t, s) {
|
|
2486
|
-
return
|
|
2486
|
+
return M(t, s);
|
|
2487
2487
|
}
|
|
2488
2488
|
function Wt(t, s) {
|
|
2489
2489
|
if (t.id === s)
|
|
@@ -2496,7 +2496,7 @@ function Wt(t, s) {
|
|
|
2496
2496
|
}
|
|
2497
2497
|
}
|
|
2498
2498
|
function zt(t, s) {
|
|
2499
|
-
return
|
|
2499
|
+
return M(t, s);
|
|
2500
2500
|
}
|
|
2501
2501
|
function Ni(t, s) {
|
|
2502
2502
|
if (t === s) return !0;
|
|
@@ -2546,7 +2546,7 @@ function Jt(t, s, e) {
|
|
|
2546
2546
|
}
|
|
2547
2547
|
for (const [I, E] of l.entries()) {
|
|
2548
2548
|
const _ = i[I], h = Ai(typeof _ == "string" ? _ : "", E);
|
|
2549
|
-
n || (i =
|
|
2549
|
+
n || (i = G(i), n = !0), i[I] = h;
|
|
2550
2550
|
}
|
|
2551
2551
|
}
|
|
2552
2552
|
let o = !1;
|
|
@@ -2581,7 +2581,7 @@ function di(t, s) {
|
|
|
2581
2581
|
r++;
|
|
2582
2582
|
return r;
|
|
2583
2583
|
}
|
|
2584
|
-
function
|
|
2584
|
+
function G(t) {
|
|
2585
2585
|
const s = {}, e = Object.keys(t);
|
|
2586
2586
|
for (let r = 0; r < e.length; r++) {
|
|
2587
2587
|
const n = e[r];
|
|
@@ -2592,14 +2592,14 @@ function k(t) {
|
|
|
2592
2592
|
function tt(t) {
|
|
2593
2593
|
return typeof t == "object" && t !== null && !Array.isArray(t);
|
|
2594
2594
|
}
|
|
2595
|
-
function
|
|
2595
|
+
function M(t, s) {
|
|
2596
2596
|
if (Object.is(t, s))
|
|
2597
2597
|
return !0;
|
|
2598
2598
|
if (Array.isArray(t) && Array.isArray(s)) {
|
|
2599
2599
|
if (t.length !== s.length)
|
|
2600
2600
|
return !1;
|
|
2601
2601
|
for (let e = 0; e < t.length; e++)
|
|
2602
|
-
if (!
|
|
2602
|
+
if (!M(t[e], s[e]))
|
|
2603
2603
|
return !1;
|
|
2604
2604
|
return !0;
|
|
2605
2605
|
}
|
|
@@ -2608,15 +2608,15 @@ function v(t, s) {
|
|
|
2608
2608
|
if (e.length !== r.length)
|
|
2609
2609
|
return !1;
|
|
2610
2610
|
for (const n of e)
|
|
2611
|
-
if (!
|
|
2611
|
+
if (!M(t[n], s[n]))
|
|
2612
2612
|
return !1;
|
|
2613
2613
|
return !0;
|
|
2614
2614
|
}
|
|
2615
2615
|
return !1;
|
|
2616
2616
|
}
|
|
2617
|
-
const Ci = 16, yi = 50,
|
|
2618
|
-
let qt = Ci, Qt = yi,
|
|
2619
|
-
const
|
|
2617
|
+
const Ci = 16, yi = 50, m = new hi(), k = /* @__PURE__ */ new Map(), Y = /* @__PURE__ */ new Map();
|
|
2618
|
+
let qt = Ci, Qt = yi, B = [], x = null, H = null, U = 0, W = 0;
|
|
2619
|
+
const F = /* @__PURE__ */ new Map();
|
|
2620
2620
|
function wi() {
|
|
2621
2621
|
return typeof performance < "u" ? performance.now() : Date.now();
|
|
2622
2622
|
}
|
|
@@ -2693,27 +2693,27 @@ function mi(t, s, e) {
|
|
|
2693
2693
|
};
|
|
2694
2694
|
}
|
|
2695
2695
|
function Zt() {
|
|
2696
|
-
|
|
2696
|
+
x || (x = setTimeout(It, qt)), H || (H = setTimeout(It, Qt));
|
|
2697
2697
|
}
|
|
2698
2698
|
function P(t) {
|
|
2699
|
-
|
|
2699
|
+
B.push(t), Zt();
|
|
2700
2700
|
}
|
|
2701
2701
|
function It() {
|
|
2702
|
-
if (
|
|
2702
|
+
if (x && (clearTimeout(x), x = null), H && (clearTimeout(H), H = null), B.length === 0 && F.size === 0) {
|
|
2703
2703
|
U = 0, W = 0;
|
|
2704
2704
|
return;
|
|
2705
2705
|
}
|
|
2706
2706
|
const t = [];
|
|
2707
|
-
for (const [e, r] of
|
|
2707
|
+
for (const [e, r] of F)
|
|
2708
2708
|
t.push({ trackId: e, version: r.version, senderId: r.senderId });
|
|
2709
2709
|
const s = {
|
|
2710
2710
|
batchId: Di(),
|
|
2711
2711
|
createdAtMs: wi(),
|
|
2712
|
-
ops:
|
|
2712
|
+
ops: B,
|
|
2713
2713
|
...t.length > 0 ? { acks: t } : {},
|
|
2714
2714
|
stats: { uiMessagesConsumed: U, bytesConsumed: W }
|
|
2715
2715
|
};
|
|
2716
|
-
|
|
2716
|
+
B = [], U = 0, W = 0, F.clear(), self.postMessage(s);
|
|
2717
2717
|
}
|
|
2718
2718
|
function te(t) {
|
|
2719
2719
|
return `${t.senderId}_${t.trackId}`;
|
|
@@ -2724,16 +2724,16 @@ async function Li(t) {
|
|
|
2724
2724
|
const n = r.StreamId;
|
|
2725
2725
|
e.add(n);
|
|
2726
2726
|
const i = r.Info?.Category;
|
|
2727
|
-
|
|
2727
|
+
m.getSnapshot(n)?.category !== i && (m.setCategory(n, i), P({ type: "SetStreamCategory", streamId: n, category: i }));
|
|
2728
2728
|
}
|
|
2729
|
-
for (const r of
|
|
2730
|
-
e.has(r.streamId) || (
|
|
2729
|
+
for (const r of m.getSnapshots())
|
|
2730
|
+
e.has(r.streamId) || (m.remove(r.streamId), Y.delete(r.streamId), P({ type: "RemoveStream", streamId: r.streamId }));
|
|
2731
2731
|
}
|
|
2732
2732
|
async function Oi(t) {
|
|
2733
|
-
const s = et(t), e = te(s), r = await ti(t), n = Ei(r), i =
|
|
2734
|
-
if ((i === void 0 || n.snapshot.version > i.version) && (
|
|
2733
|
+
const s = et(t), e = te(s), r = await ti(t), n = Ei(r), i = F.get(s.trackId);
|
|
2734
|
+
if ((i === void 0 || n.snapshot.version > i.version) && (F.set(s.trackId, { version: n.snapshot.version, senderId: s.senderId }), Zt()), !m.apply(e, n))
|
|
2735
2735
|
return;
|
|
2736
|
-
const a =
|
|
2736
|
+
const a = m.getSnapshot(e);
|
|
2737
2737
|
if (!a)
|
|
2738
2738
|
return;
|
|
2739
2739
|
const c = Y.get(e);
|
|
@@ -2747,8 +2747,8 @@ async function gi(t) {
|
|
|
2747
2747
|
styleId: s.StyleId,
|
|
2748
2748
|
css: s.Style?.css,
|
|
2749
2749
|
common: s.Style?.common
|
|
2750
|
-
}, r =
|
|
2751
|
-
r && r.css === e.css && r.common === e.common || (
|
|
2750
|
+
}, r = k.get(e.styleId);
|
|
2751
|
+
r && r.css === e.css && r.common === e.common || (k.set(e.styleId, e), P({ type: "UpsertUiStyle", style: e }));
|
|
2752
2752
|
}
|
|
2753
2753
|
async function Pi(t) {
|
|
2754
2754
|
const s = await Pn(t);
|
|
@@ -2760,29 +2760,29 @@ async function Pi(t) {
|
|
|
2760
2760
|
styleId: e.StyleId,
|
|
2761
2761
|
css: e.Style?.css,
|
|
2762
2762
|
common: e.Style?.common
|
|
2763
|
-
}, n =
|
|
2764
|
-
n && n.css === r.css && n.common === r.common || (
|
|
2763
|
+
}, n = k.get(r.styleId);
|
|
2764
|
+
n && n.css === r.css && n.common === r.common || (k.set(r.styleId, r), P({ type: "UpsertUiStyle", style: r }));
|
|
2765
2765
|
}
|
|
2766
2766
|
}
|
|
2767
2767
|
function bi(t) {
|
|
2768
2768
|
const s = et(t), e = te(s);
|
|
2769
|
-
|
|
2769
|
+
m.clear(e), Y.delete(e), P({ type: "ClearStream", streamId: e });
|
|
2770
2770
|
}
|
|
2771
2771
|
async function Fi(t) {
|
|
2772
2772
|
const s = await Kn(t);
|
|
2773
2773
|
if (!(!s.StyleIds || s.StyleIds.length === 0))
|
|
2774
2774
|
for (const e of s.StyleIds)
|
|
2775
|
-
|
|
2775
|
+
k.delete(e) && P({ type: "RemoveUiStyle", styleId: e });
|
|
2776
2776
|
}
|
|
2777
2777
|
async function pi(t) {
|
|
2778
2778
|
const s = new Uint8Array(t);
|
|
2779
2779
|
W += s.byteLength;
|
|
2780
2780
|
const e = s;
|
|
2781
2781
|
switch (se(e)) {
|
|
2782
|
-
case
|
|
2782
|
+
case g.CORE_GLOBAL_STATE:
|
|
2783
2783
|
await Li(e), U++;
|
|
2784
2784
|
return;
|
|
2785
|
-
case
|
|
2785
|
+
case g.UI_UPDATE:
|
|
2786
2786
|
try {
|
|
2787
2787
|
await Oi(e);
|
|
2788
2788
|
} catch (n) {
|
|
@@ -2791,16 +2791,16 @@ async function pi(t) {
|
|
|
2791
2791
|
U++;
|
|
2792
2792
|
}
|
|
2793
2793
|
return;
|
|
2794
|
-
case
|
|
2794
|
+
case g.UI_STYLES:
|
|
2795
2795
|
await gi(e), U++;
|
|
2796
2796
|
return;
|
|
2797
|
-
case
|
|
2797
|
+
case g.UI_STYLES_BATCH:
|
|
2798
2798
|
await Pi(e), U++;
|
|
2799
2799
|
return;
|
|
2800
|
-
case
|
|
2800
|
+
case g.UI_STYLES_DELETE:
|
|
2801
2801
|
await Fi(e), U++;
|
|
2802
2802
|
return;
|
|
2803
|
-
case
|
|
2803
|
+
case g.ACTION_UI_CLEAR_STREAM:
|
|
2804
2804
|
bi(e), U++;
|
|
2805
2805
|
return;
|
|
2806
2806
|
default:
|
|
@@ -2814,7 +2814,9 @@ self.addEventListener("message", (t) => {
|
|
|
2814
2814
|
return;
|
|
2815
2815
|
}
|
|
2816
2816
|
if (s.type === "clear") {
|
|
2817
|
-
|
|
2817
|
+
B = [], Y.clear(), F.clear(), k.clear();
|
|
2818
|
+
for (const e of m.getSnapshots())
|
|
2819
|
+
m.remove(e.streamId);
|
|
2818
2820
|
return;
|
|
2819
2821
|
}
|
|
2820
2822
|
s.type === "protocol" && pi(s.message).catch(() => {
|
package/ikon-ui-core.d.ts
CHANGED
|
@@ -20,6 +20,7 @@ export interface UiStylePayload {
|
|
|
20
20
|
}
|
|
21
21
|
export declare class IkonUiCore {
|
|
22
22
|
private unsubscribeProtocolMessages?;
|
|
23
|
+
private unsubscribeState?;
|
|
23
24
|
private client;
|
|
24
25
|
readonly uiStore: UiStore;
|
|
25
26
|
private uiWorker;
|
|
@@ -31,6 +32,7 @@ export declare class IkonUiCore {
|
|
|
31
32
|
private readonly useUiWorker;
|
|
32
33
|
constructor(config?: IkonUiCoreConfig);
|
|
33
34
|
dispose(): void;
|
|
35
|
+
private clearAllState;
|
|
34
36
|
subscribeToUiUpdates(listener: IkonUiUpdateListener): () => void;
|
|
35
37
|
subscribeToUiStreamCleared(listener: IkonUiStreamListener): () => void;
|
|
36
38
|
subscribeToUiStyles(listener: UiStyleListener): () => void;
|
package/index.js
CHANGED
|
@@ -3085,7 +3085,7 @@ function k(e, t) {
|
|
|
3085
3085
|
}
|
|
3086
3086
|
function Dn(e) {
|
|
3087
3087
|
return new Worker(
|
|
3088
|
-
"" + new URL("assets/ui-worker-
|
|
3088
|
+
"" + new URL("assets/ui-worker-CVAjgDT2.js", import.meta.url).href,
|
|
3089
3089
|
{
|
|
3090
3090
|
type: "module",
|
|
3091
3091
|
name: e?.name
|
|
@@ -3095,6 +3095,7 @@ function Dn(e) {
|
|
|
3095
3095
|
const R = qt("IkonUiCore");
|
|
3096
3096
|
class Ln {
|
|
3097
3097
|
unsubscribeProtocolMessages;
|
|
3098
|
+
unsubscribeState;
|
|
3098
3099
|
client = null;
|
|
3099
3100
|
uiStore = new yn();
|
|
3100
3101
|
uiWorker = null;
|
|
@@ -3109,7 +3110,13 @@ class Ln {
|
|
|
3109
3110
|
this.useUiWorker = s !== "disabled" && typeof Worker < "u", t?.client && this.initialize(t.client, t);
|
|
3110
3111
|
}
|
|
3111
3112
|
dispose() {
|
|
3112
|
-
this.unsubscribeProtocolMessages?.(), this.uiWorker?.terminate(), this.uiWorker = null, this.client = null, this.uiStyleListeners.clear(), this.uiStyleDeleteListeners.clear(), this.uiStyles.clear();
|
|
3113
|
+
this.unsubscribeProtocolMessages?.(), this.unsubscribeState?.(), this.uiWorker?.terminate(), this.uiWorker = null, this.client = null, this.uiStyleListeners.clear(), this.uiStyleDeleteListeners.clear(), this.uiStyles.clear();
|
|
3114
|
+
}
|
|
3115
|
+
clearAllState() {
|
|
3116
|
+
this.uiWorker && this.uiWorker.postMessage({ type: "clear" });
|
|
3117
|
+
for (const t of this.uiStore.getSnapshots())
|
|
3118
|
+
this.uiStore.remove(t.streamId), this.notifyUiStreamCleared(t.streamId);
|
|
3119
|
+
this.uiStyles.clear();
|
|
3113
3120
|
}
|
|
3114
3121
|
subscribeToUiUpdates(t) {
|
|
3115
3122
|
return this.uiUpdateListeners.add(t), () => {
|
|
@@ -3139,13 +3146,17 @@ class Ln {
|
|
|
3139
3146
|
const r = {
|
|
3140
3147
|
opcodeGroupsMask: m.GROUP_CORE | m.GROUP_UI | m.GROUP_ACTIONS
|
|
3141
3148
|
};
|
|
3142
|
-
this.unsubscribeProtocolMessages = t.subscribeToProtocolMessages((
|
|
3149
|
+
this.unsubscribeProtocolMessages = t.subscribeToProtocolMessages((n) => {
|
|
3143
3150
|
if (this.uiWorker) {
|
|
3144
|
-
this.forwardMessageToWorker(
|
|
3151
|
+
this.forwardMessageToWorker(n);
|
|
3145
3152
|
return;
|
|
3146
3153
|
}
|
|
3147
|
-
this.handleProtocolMessage(
|
|
3154
|
+
this.handleProtocolMessage(n);
|
|
3148
3155
|
}, r);
|
|
3156
|
+
let i = !1;
|
|
3157
|
+
this.unsubscribeState = t.subscribeToState((n) => {
|
|
3158
|
+
n === "reconnecting" ? i = !0 : n === "connected" && i ? (i = !1, this.clearAllState()) : i = !1;
|
|
3159
|
+
});
|
|
3149
3160
|
}
|
|
3150
3161
|
startUiWorker(t) {
|
|
3151
3162
|
try {
|