@ikonai/sdk 1.0.43 → 1.0.45
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/{audio-capture-worker-Dmgg-yWd.js → audio-capture-worker-BnmgtUMV.js} +1 -1
- package/assets/{audio-playback-worker-MsPNs6k4.js → audio-playback-worker-os3j8TEw.js} +102 -102
- package/assets/{index-Cns_7uAI.js → index-Ca9sTcGt.js} +1 -1
- package/assets/{index-D2GAzJKe.js → index-D_vz6N3U.js} +165 -29
- package/assets/{libopus-BEPFPIM_.js → libopus-ChbDZJKA.js} +3 -3
- package/assets/{protocol-worker-4bSKGT40.js → protocol-worker-CMTcdGdm.js} +307 -262
- package/assets/{video-capture-worker-Bitll1TI.js → video-capture-worker-CUqzL0P7.js} +181 -181
- package/assets/{video-playback-worker-BQSKswID.js → video-playback-worker-BoE6foO2.js} +188 -188
- package/channel/channel-manager.d.ts +15 -0
- package/client/endpoint-selector.d.ts +7 -0
- package/client/ikon-client-config.d.ts +4 -2
- package/client/ikon-client.d.ts +6 -3
- package/connection/urls.d.ts +5 -3
- package/functions/function-registry.d.ts +16 -1
- package/functions/index.d.ts +1 -1
- package/functions/types.d.ts +2 -1
- package/index.d.ts +5 -3
- package/index.js +2377 -2009
- package/login/index.d.ts +4 -0
- package/login/login-error-interceptor.d.ts +13 -0
- package/login/login-store.d.ts +17 -0
- package/login/reprovision.d.ts +22 -0
- package/media/ikon-image-capture.d.ts +5 -0
- package/media/ikon-video-capture.d.ts +4 -0
- package/package.json +1 -1
- package/utils/query-params.d.ts +6 -0
- package/webrtc/index.d.ts +1 -1
- package/webrtc/webrtc-config.d.ts +0 -1
- package/webrtc/webrtc-connection.d.ts +1 -0
- package/webrtc/webrtc-signaling.d.ts +5 -0
|
@@ -739,7 +739,7 @@ class $ {
|
|
|
739
739
|
}
|
|
740
740
|
async initialize() {
|
|
741
741
|
try {
|
|
742
|
-
const { OpusEncoder: e, OPUS_APPLICATION_VOIP: r, getOpusModule: n } = await import("./index-
|
|
742
|
+
const { OpusEncoder: e, OPUS_APPLICATION_VOIP: r, getOpusModule: n } = await import("./index-D_vz6N3U.js");
|
|
743
743
|
await n(), this.encoder = new e({
|
|
744
744
|
sampleRate: this.sampleRate,
|
|
745
745
|
channels: this.channels,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const ct = {
|
|
2
2
|
Compressed: 8
|
|
3
3
|
};
|
|
4
4
|
function St(t) {
|
|
@@ -10,7 +10,7 @@ function rt(t) {
|
|
|
10
10
|
const e = B(t), r = new DataView(e.buffer, e.byteOffset, e.byteLength);
|
|
11
11
|
if (e.length < 27)
|
|
12
12
|
throw new Error("Protocol payload too short");
|
|
13
|
-
const s = r.getUint32(0, !0), n = r.getUint32(4, !0), i = r.getUint32(8, !0), a = r.getUint32(12, !0), _ = r.getUint32(16, !0), E = r.getUint32(20, !0), o = r.getUint8(24),
|
|
13
|
+
const s = r.getUint32(0, !0), n = r.getUint32(4, !0), i = r.getUint32(8, !0), a = r.getUint32(12, !0), _ = r.getUint32(16, !0), E = r.getUint32(20, !0), o = r.getUint8(24), A = r.getUint8(25), I = r.getUint8(26);
|
|
14
14
|
if (27 + E * 4 > e.length)
|
|
15
15
|
throw new Error("Protocol header exceeds payload length");
|
|
16
16
|
const S = [];
|
|
@@ -25,11 +25,11 @@ function rt(t) {
|
|
|
25
25
|
sequenceId: _,
|
|
26
26
|
targetIds: S,
|
|
27
27
|
payloadVersion: o,
|
|
28
|
-
payloadType:
|
|
29
|
-
flags:
|
|
28
|
+
payloadType: A,
|
|
29
|
+
flags: I
|
|
30
30
|
};
|
|
31
31
|
}
|
|
32
|
-
async function
|
|
32
|
+
async function x(t, e, r) {
|
|
33
33
|
const s = B(t), n = rt(s);
|
|
34
34
|
if (e !== void 0 && n.opcode !== e)
|
|
35
35
|
throw new Error(`Unexpected opcode ${n.opcode}`);
|
|
@@ -37,7 +37,7 @@ async function Y(t, e, r) {
|
|
|
37
37
|
throw new Error(`Unexpected payload type ${n.payloadType}`);
|
|
38
38
|
const i = 27 + n.targetIds.length * 4;
|
|
39
39
|
let a = s.subarray(i, n.length);
|
|
40
|
-
return (n.flags &
|
|
40
|
+
return (n.flags & ct.Compressed) !== 0 && (a = await Ct(a)), a;
|
|
41
41
|
}
|
|
42
42
|
async function Ct(t) {
|
|
43
43
|
if (typeof DecompressionStream > "u")
|
|
@@ -47,9 +47,9 @@ async function Ct(t) {
|
|
|
47
47
|
const n = e.readable.getReader(), i = [];
|
|
48
48
|
let a = 0;
|
|
49
49
|
for (; ; ) {
|
|
50
|
-
const { done: o, value:
|
|
50
|
+
const { done: o, value: A } = await n.read();
|
|
51
51
|
if (o) break;
|
|
52
|
-
i.push(
|
|
52
|
+
i.push(A), a += A.length;
|
|
53
53
|
}
|
|
54
54
|
const _ = new Uint8Array(a);
|
|
55
55
|
let E = 0;
|
|
@@ -165,7 +165,7 @@ class C {
|
|
|
165
165
|
return this.ensureType(
|
|
166
166
|
14
|
|
167
167
|
/* Guid */
|
|
168
|
-
),
|
|
168
|
+
), l.fromBytes(this.payload);
|
|
169
169
|
}
|
|
170
170
|
asObject() {
|
|
171
171
|
return this.ensureType(
|
|
@@ -361,7 +361,7 @@ class Dt {
|
|
|
361
361
|
this.key = e, this.value = r;
|
|
362
362
|
}
|
|
363
363
|
}
|
|
364
|
-
class
|
|
364
|
+
class l {
|
|
365
365
|
constructor(e) {
|
|
366
366
|
this.bytes = e;
|
|
367
367
|
}
|
|
@@ -371,19 +371,19 @@ class A {
|
|
|
371
371
|
const r = e.replace(/-/g, "");
|
|
372
372
|
if (r.length !== 32)
|
|
373
373
|
throw new Error("Guid string must be 32 hex characters");
|
|
374
|
-
const s = new Uint8Array(16), n =
|
|
375
|
-
|
|
374
|
+
const s = new Uint8Array(16), n = l.parseHexSlice(r, 0, 8), i = l.parseHexSlice(r, 8, 4), a = l.parseHexSlice(r, 12, 4);
|
|
375
|
+
l.writeUInt32LE(s, 0, n), l.writeUInt16LE(s, 4, i), l.writeUInt16LE(s, 6, a);
|
|
376
376
|
for (let _ = 0; _ < 8; _++)
|
|
377
|
-
s[8 + _] =
|
|
378
|
-
return new
|
|
377
|
+
s[8 + _] = l.parseHexSlice(r, 16 + _ * 2, 2);
|
|
378
|
+
return new l(s);
|
|
379
379
|
}
|
|
380
380
|
static fromBytes(e) {
|
|
381
381
|
if (e.length !== 16)
|
|
382
382
|
throw new Error("Guid byte array must be 16 bytes");
|
|
383
|
-
return new
|
|
383
|
+
return new l(Uint8Array.from(e));
|
|
384
384
|
}
|
|
385
385
|
static createZero() {
|
|
386
|
-
return new
|
|
386
|
+
return new l(new Uint8Array(16));
|
|
387
387
|
}
|
|
388
388
|
static createRandom() {
|
|
389
389
|
const e = new Uint8Array(16), r = globalThis.crypto;
|
|
@@ -392,14 +392,14 @@ class A {
|
|
|
392
392
|
else
|
|
393
393
|
for (let s = 0; s < e.length; s++)
|
|
394
394
|
e[s] = Math.floor(Math.random() * 256);
|
|
395
|
-
return e[6] = e[6] & 15 | 64, e[8] = e[8] & 63 | 128, new
|
|
395
|
+
return e[6] = e[6] & 15 | 64, e[8] = e[8] & 63 | 128, new l(e);
|
|
396
396
|
}
|
|
397
397
|
toString() {
|
|
398
398
|
const e = this.bytes;
|
|
399
399
|
return [
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
400
|
+
l.toHex(l.readUInt32LE(e, 0), 8),
|
|
401
|
+
l.toHex(l.readUInt16LE(e, 4), 4),
|
|
402
|
+
l.toHex(l.readUInt16LE(e, 6), 4),
|
|
403
403
|
Q(e.subarray(8, 10)),
|
|
404
404
|
Q(e.subarray(10, 16))
|
|
405
405
|
].join("-");
|
|
@@ -494,7 +494,7 @@ function z(t, e) {
|
|
|
494
494
|
}
|
|
495
495
|
let _ = n.offset;
|
|
496
496
|
for (let E = 0; E < i; E++)
|
|
497
|
-
_ =
|
|
497
|
+
_ = Y(s, t, _, "ArrayMalformed");
|
|
498
498
|
return _ - e;
|
|
499
499
|
}
|
|
500
500
|
function X(t, e) {
|
|
@@ -507,10 +507,10 @@ function X(t, e) {
|
|
|
507
507
|
const n = { offset: e + 2 }, i = f(t, n, "DictMalformed");
|
|
508
508
|
let a = n.offset;
|
|
509
509
|
for (let _ = 0; _ < i; _++)
|
|
510
|
-
a =
|
|
510
|
+
a = Y(r, t, a, "DictMalformed"), a = Y(s, t, a, "DictMalformed");
|
|
511
511
|
return a - e;
|
|
512
512
|
}
|
|
513
|
-
function
|
|
513
|
+
function Y(t, e, r, s) {
|
|
514
514
|
const n = O(t);
|
|
515
515
|
if (n >= 0)
|
|
516
516
|
return h(e, r, n), r + n;
|
|
@@ -538,7 +538,7 @@ function Q(t) {
|
|
|
538
538
|
function B(t) {
|
|
539
539
|
return t instanceof Uint8Array ? t : new Uint8Array(t);
|
|
540
540
|
}
|
|
541
|
-
var c = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.Opus = 1] = "Opus", t[t.Mp3 = 2] = "Mp3", t[t.RawPcm16 = 3] = "RawPcm16", t))(c || {}), 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.CORE_RELAY_AGENT_HELLO = 65576] = "CORE_RELAY_AGENT_HELLO", t[t.CORE_RELAY_HELLO = 65577] = "CORE_RELAY_HELLO", 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.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.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.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.CONSTANT_GROUP_MASK = 2147418112] = "CONSTANT_GROUP_MASK", t))(g || {});
|
|
541
|
+
var N = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.Opus = 1] = "Opus", t[t.Mp3 = 2] = "Mp3", t[t.RawPcm16 = 3] = "RawPcm16", t))(N || {}), 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.CORE_RELAY_AGENT_AUTH = 65576] = "CORE_RELAY_AGENT_AUTH", t[t.CORE_RELAY_AGENT_AUTH_RESULT = 65577] = "CORE_RELAY_AGENT_AUTH_RESULT", t[t.CORE_RELAY_HEARTBEAT = 65578] = "CORE_RELAY_HEARTBEAT", t[t.CORE_RELAY_TCP_CONNECTION_OPENED = 65579] = "CORE_RELAY_TCP_CONNECTION_OPENED", t[t.CORE_RELAY_TCP_CONNECTION_CLOSED = 65580] = "CORE_RELAY_TCP_CONNECTION_CLOSED", t[t.CORE_RELAY_TCP_DATA = 65581] = "CORE_RELAY_TCP_DATA", t[t.CORE_RELAY_UDP_DATA = 65582] = "CORE_RELAY_UDP_DATA", t[t.CORE_RELAY_ADD_TUNNEL = 65583] = "CORE_RELAY_ADD_TUNNEL", t[t.CORE_RELAY_TUNNEL_ADDED = 65584] = "CORE_RELAY_TUNNEL_ADDED", t[t.CORE_RELAY_REMOVE_TUNNEL = 65585] = "CORE_RELAY_REMOVE_TUNNEL", t[t.GROUP_KEEPALIVE = 131072] = "GROUP_KEEPALIVE", t[t.KEEPALIVE_REQUEST = 131073] = "KEEPALIVE_REQUEST", t[t.KEEPALIVE_RESPONSE = 131074] = "KEEPALIVE_RESPONSE", t[t.GROUP_EVENTS = 262144] = "GROUP_EVENTS", t[t.EVENTS_PROFILE_UPDATE = 262145] = "EVENTS_PROFILE_UPDATE", t[t.EVENTS_CHANNEL_COMPLETE = 262146] = "EVENTS_CHANNEL_COMPLETE", t[t.EVENTS_SPEECH_PLAYBACK_COMPLETE = 262147] = "EVENTS_SPEECH_PLAYBACK_COMPLETE", t[t.GROUP_ANALYTICS = 524288] = "GROUP_ANALYTICS", t[t.ANALYTICS_LOGS = 524289] = "ANALYTICS_LOGS", t[t.ANALYTICS_EVENTS = 524290] = "ANALYTICS_EVENTS", t[t.ANALYTICS_USAGES = 524291] = "ANALYTICS_USAGES", t[t.ANALYTICS_USAGE = 524292] = "ANALYTICS_USAGE", t[t.ANALYTICS_SPECIAL_LOG = 524293] = "ANALYTICS_SPECIAL_LOG", t[t.ANALYTICS_PROCESSING_UPDATE = 524294] = "ANALYTICS_PROCESSING_UPDATE", t[t.ANALYTICS_REACTIVE_PROCESSING_UPDATE = 524295] = "ANALYTICS_REACTIVE_PROCESSING_UPDATE", t[t.ANALYTICS_IKON_PROXY_SERVER_STATS = 524296] = "ANALYTICS_IKON_PROXY_SERVER_STATS", t[t.ANALYTICS_IKON_RELAY_SERVER_STATS = 524297] = "ANALYTICS_IKON_RELAY_SERVER_STATS", t[t.ANALYTICS_IKON_TURN_SERVER_STATS = 524298] = "ANALYTICS_IKON_TURN_SERVER_STATS", t[t.GROUP_ACTIONS = 1048576] = "GROUP_ACTIONS", t[t.ACTION_CALL = 1048577] = "ACTION_CALL", t[t.ACTION_ACTIVE = 1048578] = "ACTION_ACTIVE", t[t.ACTION_TEXT_OUTPUT = 1048579] = "ACTION_TEXT_OUTPUT", t[t.ACTION_TEXT_OUTPUT_DELTA = 1048580] = "ACTION_TEXT_OUTPUT_DELTA", t[t.ACTION_TEXT_OUTPUT_DELTA_FULL = 1048581] = "ACTION_TEXT_OUTPUT_DELTA_FULL", t[t.ACTION_SET_STATE = 1048582] = "ACTION_SET_STATE", t[t.ACTION_TAP = 1048583] = "ACTION_TAP", t[t.ACTION_PAN = 1048584] = "ACTION_PAN", t[t.ACTION_ZOOM = 1048585] = "ACTION_ZOOM", t[t.ACTION_FILE_UPLOAD_BEGIN = 1048586] = "ACTION_FILE_UPLOAD_BEGIN", t[t.ACTION_FILE_UPLOAD_DATA = 1048587] = "ACTION_FILE_UPLOAD_DATA", t[t.ACTION_FILE_UPLOAD_ACK = 1048588] = "ACTION_FILE_UPLOAD_ACK", t[t.ACTION_FILE_UPLOAD_END = 1048589] = "ACTION_FILE_UPLOAD_END", t[t.ACTION_FILE_UPLOAD_RESULT = 1048590] = "ACTION_FILE_UPLOAD_RESULT", t[t.ACTION_OPEN_CHANNEL = 1048591] = "ACTION_OPEN_CHANNEL", t[t.ACTION_OPEN_EXTERNAL_URL = 1048592] = "ACTION_OPEN_EXTERNAL_URL", t[t.ACTION_UI_OPEN_VIEW = 1048593] = "ACTION_UI_OPEN_VIEW", t[t.ACTION_UI_CLOSE_VIEW = 1048594] = "ACTION_UI_CLOSE_VIEW", t[t.ACTION_UI_BLOCKING_BEGIN = 1048595] = "ACTION_UI_BLOCKING_BEGIN", t[t.ACTION_UI_BLOCKING_END = 1048596] = "ACTION_UI_BLOCKING_END", t[t.ACTION_UI_UPDATE_TEXT_DELTA = 1048597] = "ACTION_UI_UPDATE_TEXT_DELTA", t[t.ACTION_UI_DELETE_CONTAINER = 1048598] = "ACTION_UI_DELETE_CONTAINER", t[t.ACTION_UPDATE_GFX_SHADER = 1048599] = "ACTION_UPDATE_GFX_SHADER", t[t.ACTION_FUNCTION_REGISTER = 1048600] = "ACTION_FUNCTION_REGISTER", t[t.ACTION_FUNCTION_CALL = 1048601] = "ACTION_FUNCTION_CALL", t[t.ACTION_FUNCTION_RESULT = 1048602] = "ACTION_FUNCTION_RESULT", t[t.ACTION_GENERATE_ANSWER = 1048603] = "ACTION_GENERATE_ANSWER", t[t.ACTION_REGENERATE_ANSWER = 1048604] = "ACTION_REGENERATE_ANSWER", t[t.ACTION_CLEAR_CHAT_MESSAGE_HISTORY = 1048605] = "ACTION_CLEAR_CHAT_MESSAGE_HISTORY", t[t.ACTION_CLEAR_STATE = 1048606] = "ACTION_CLEAR_STATE", t[t.ACTION_RELOAD_CHANNELS = 1048607] = "ACTION_RELOAD_CHANNELS", t[t.ACTION_RELOAD_PROFILE = 1048608] = "ACTION_RELOAD_PROFILE", t[t.ACTION_CLASSIFICATION_RESULT = 1048609] = "ACTION_CLASSIFICATION_RESULT", t[t.ACTION_AUDIO_STOP = 1048610] = "ACTION_AUDIO_STOP", t[t.ACTION_CALL_TEXT = 1048611] = "ACTION_CALL_TEXT", t[t.ACTION_RELOAD_APPLICATION = 1048612] = "ACTION_RELOAD_APPLICATION", t[t.ACTION_CANCEL_GENERATION = 1048613] = "ACTION_CANCEL_GENERATION", t[t.ACTION_UI_SET_CONTAINER_STABLE = 1048614] = "ACTION_UI_SET_CONTAINER_STABLE", t[t.ACTION_SPEECH_RECOGNIZED = 1048615] = "ACTION_SPEECH_RECOGNIZED", t[t.ACTION_CALL_RESULT = 1048616] = "ACTION_CALL_RESULT", t[t.ACTION_RELOAD_PROVIDER = 1048617] = "ACTION_RELOAD_PROVIDER", t[t.ACTION_DOWNLOAD = 1048618] = "ACTION_DOWNLOAD", t[t.ACTION_SCROLL_TO_CONTAINER = 1048619] = "ACTION_SCROLL_TO_CONTAINER", t[t.ACTION_UI_CLEAR_STREAM = 1048620] = "ACTION_UI_CLEAR_STREAM", t[t.ACTION_PLAY_SOUND = 1048621] = "ACTION_PLAY_SOUND", t[t.ACTION_ENTER_FULLSCREEN = 1048622] = "ACTION_ENTER_FULLSCREEN", t[t.ACTION_STOP_SOUND = 1048623] = "ACTION_STOP_SOUND", t[t.ACTION_START_RECORDING = 1048624] = "ACTION_START_RECORDING", t[t.ACTION_STOP_RECORDING = 1048625] = "ACTION_STOP_RECORDING", t[t.ACTION_FUNCTION_ENUMERATION_ITEM = 1048627] = "ACTION_FUNCTION_ENUMERATION_ITEM", t[t.ACTION_FUNCTION_ENUMERATION_END = 1048628] = "ACTION_FUNCTION_ENUMERATION_END", t[t.ACTION_FUNCTION_CANCEL = 1048629] = "ACTION_FUNCTION_CANCEL", t[t.ACTION_FUNCTION_DISPOSE = 1048630] = "ACTION_FUNCTION_DISPOSE", t[t.ACTION_FUNCTION_ERROR = 1048631] = "ACTION_FUNCTION_ERROR", t[t.ACTION_FUNCTION_ACK = 1048632] = "ACTION_FUNCTION_ACK", t[t.ACTION_FUNCTION_AWAITING_APPROVAL = 1048633] = "ACTION_FUNCTION_AWAITING_APPROVAL", t[t.ACTION_FUNCTION_APPROVAL_REQUIRED = 1048634] = "ACTION_FUNCTION_APPROVAL_REQUIRED", t[t.ACTION_FUNCTION_APPROVAL_RESPONSE = 1048635] = "ACTION_FUNCTION_APPROVAL_RESPONSE", t[t.UI_UPDATE_ACK = 1048636] = "UI_UPDATE_ACK", t[t.ACTION_CALL2 = 1048637] = "ACTION_CALL2", t[t.ACTION_FUNCTION_REGISTER_BATCH = 1048638] = "ACTION_FUNCTION_REGISTER_BATCH", t[t.ACTION_TRIGGER_GIT_PULL = 1048639] = "ACTION_TRIGGER_GIT_PULL", t[t.ACTION_FILE_UPLOAD_CALLBACK = 1048640] = "ACTION_FILE_UPLOAD_CALLBACK", t[t.ACTION_CUSTOM_USER_MESSAGE = 1048641] = "ACTION_CUSTOM_USER_MESSAGE", t[t.ACTION_URL_CHANGED = 1048642] = "ACTION_URL_CHANGED", t[t.ACTION_FILE_UPLOAD_PRE_START2 = 1048643] = "ACTION_FILE_UPLOAD_PRE_START2", t[t.ACTION_FILE_UPLOAD_PRE_START_RESPONSE2 = 1048644] = "ACTION_FILE_UPLOAD_PRE_START_RESPONSE2", t[t.ACTION_FILE_UPLOAD_START2 = 1048645] = "ACTION_FILE_UPLOAD_START2", t[t.ACTION_FILE_UPLOAD_START_RESPONSE2 = 1048646] = "ACTION_FILE_UPLOAD_START_RESPONSE2", t[t.ACTION_FILE_UPLOAD_DATA2 = 1048647] = "ACTION_FILE_UPLOAD_DATA2", t[t.ACTION_FILE_UPLOAD_ACK2 = 1048648] = "ACTION_FILE_UPLOAD_ACK2", t[t.ACTION_FILE_UPLOAD_END2 = 1048649] = "ACTION_FILE_UPLOAD_END2", t[t.ACTION_FILE_UPLOAD_COMPLETE2 = 1048650] = "ACTION_FILE_UPLOAD_COMPLETE2", t[t.ACTION_FUNCTION_ENUMERATION_ITEM_BATCH = 1048651] = "ACTION_FUNCTION_ENUMERATION_ITEM_BATCH", t[t.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))(g || {});
|
|
542
542
|
const Ot = 4194309, dt = 205938238, wt = 1594075008, Ft = 2026534360, Mt = 3409001585, gt = 3466650495, Bt = 4007456593, bt = 4017217601, Gt = 4065417427, Vt = 4086360332;
|
|
543
543
|
function vt(t) {
|
|
544
544
|
const e = {};
|
|
@@ -549,13 +549,13 @@ function nt(t) {
|
|
|
549
549
|
}
|
|
550
550
|
function kt(t, e) {
|
|
551
551
|
const r = d.create(t);
|
|
552
|
-
return
|
|
552
|
+
return Ht(r, e);
|
|
553
553
|
}
|
|
554
|
-
function
|
|
554
|
+
function Ht(t, e) {
|
|
555
555
|
const r = e ?? vt();
|
|
556
|
-
return nt(r),
|
|
556
|
+
return nt(r), pt(t, r), r;
|
|
557
557
|
}
|
|
558
|
-
function
|
|
558
|
+
function pt(t, e) {
|
|
559
559
|
let r;
|
|
560
560
|
for (; (r = t.next()) !== null; )
|
|
561
561
|
switch (r.fieldId) {
|
|
@@ -606,11 +606,11 @@ function Ht(t, e) {
|
|
|
606
606
|
}
|
|
607
607
|
}
|
|
608
608
|
}
|
|
609
|
-
async function
|
|
610
|
-
const r = await
|
|
609
|
+
async function Yt(t, e) {
|
|
610
|
+
const r = await x(t, Ot);
|
|
611
611
|
return kt(r, e);
|
|
612
612
|
}
|
|
613
|
-
const
|
|
613
|
+
const xt = 4194310, Wt = 717315017, Kt = 2026534360, zt = 4007456593, Xt = 4065417427, $t = 4086360332;
|
|
614
614
|
function jt(t) {
|
|
615
615
|
const e = {};
|
|
616
616
|
return at(e), e;
|
|
@@ -658,7 +658,7 @@ function Zt(t, e) {
|
|
|
658
658
|
}
|
|
659
659
|
}
|
|
660
660
|
async function Jt(t, e) {
|
|
661
|
-
const r = await
|
|
661
|
+
const r = await x(t, xt);
|
|
662
662
|
return Qt(r, e);
|
|
663
663
|
}
|
|
664
664
|
function te(t) {
|
|
@@ -703,19 +703,19 @@ function ie(t) {
|
|
|
703
703
|
e.push(r.asFloat32());
|
|
704
704
|
return e;
|
|
705
705
|
}
|
|
706
|
-
const _e = 4194305, Ee = 161083277, oe = 265814330,
|
|
706
|
+
const _e = 4194305, Ee = 161083277, oe = 265814330, Ae = 1368629611, Ie = 2431514951, le = 2745379226, ue = 3282782683, he = 3284746250, fe = 4101844078;
|
|
707
707
|
function Te(t) {
|
|
708
708
|
const e = {};
|
|
709
709
|
return _t(e), e;
|
|
710
710
|
}
|
|
711
711
|
function _t(t) {
|
|
712
|
-
return t.StreamId = "", t.Description = "", t.SourceType = "", t.Codec =
|
|
712
|
+
return t.StreamId = "", t.Description = "", t.SourceType = "", t.Codec = N.Unknown, t.CodecDetails = "", t.SampleRate = 0, t.Channels = 0, t.ShapeSets = void 0, t;
|
|
713
713
|
}
|
|
714
|
-
function
|
|
714
|
+
function Ne(t, e) {
|
|
715
715
|
const r = d.create(t);
|
|
716
|
-
return
|
|
716
|
+
return ce(r, e);
|
|
717
717
|
}
|
|
718
|
-
function
|
|
718
|
+
function ce(t, e) {
|
|
719
719
|
const r = e ?? Te();
|
|
720
720
|
return _t(r), Se(t, r), r;
|
|
721
721
|
}
|
|
@@ -736,17 +736,17 @@ function Se(t, e) {
|
|
|
736
736
|
e.ShapeSets = Re(r.asArray());
|
|
737
737
|
break;
|
|
738
738
|
}
|
|
739
|
-
case
|
|
739
|
+
case Ae: {
|
|
740
740
|
if (r.isNull) throw new Error();
|
|
741
741
|
e.Description = r.asString();
|
|
742
742
|
break;
|
|
743
743
|
}
|
|
744
|
-
case
|
|
744
|
+
case Ie: {
|
|
745
745
|
if (r.isNull) throw new Error();
|
|
746
746
|
e.Channels = r.asInt32();
|
|
747
747
|
break;
|
|
748
748
|
}
|
|
749
|
-
case
|
|
749
|
+
case le: {
|
|
750
750
|
if (r.isNull) throw new Error();
|
|
751
751
|
e.CodecDetails = r.asString();
|
|
752
752
|
break;
|
|
@@ -769,8 +769,8 @@ function Se(t, e) {
|
|
|
769
769
|
}
|
|
770
770
|
}
|
|
771
771
|
async function Ce(t, e) {
|
|
772
|
-
const r = await
|
|
773
|
-
return
|
|
772
|
+
const r = await x(t, _e);
|
|
773
|
+
return Ne(r, e);
|
|
774
774
|
}
|
|
775
775
|
function Re(t) {
|
|
776
776
|
const e = [];
|
|
@@ -950,10 +950,10 @@ function Be() {
|
|
|
950
950
|
}
|
|
951
951
|
return !0;
|
|
952
952
|
}
|
|
953
|
-
const
|
|
953
|
+
const At = 48e3, It = 2, be = 1500, Ge = 10, Z = 80, Ve = 50, J = 64, $ = ot("AudioPlaybackWorker"), m = (t, e) => {
|
|
954
954
|
self.postMessage(t, e ?? []);
|
|
955
955
|
}, ve = Be();
|
|
956
|
-
let v = "pcm",
|
|
956
|
+
let v = "pcm", lt = !0, ut = !1, R = At, c = It, P = null;
|
|
957
957
|
function D(t, e) {
|
|
958
958
|
const r = t instanceof Error ? t : new Error(String(t));
|
|
959
959
|
m({ type: "error", error: { name: r.name, message: r.message, stack: r.stack }, streamId: e });
|
|
@@ -975,7 +975,7 @@ class ke {
|
|
|
975
975
|
pcmBatchOffset = 0;
|
|
976
976
|
lastPcmFlushTimeMs = 0;
|
|
977
977
|
constructor(e) {
|
|
978
|
-
this.streamId = e, this.mode = "pcm", this.outputSampleRate = R, this.outputChannels =
|
|
978
|
+
this.streamId = e, this.mode = "pcm", this.outputSampleRate = R, this.outputChannels = c, this.rebind(v);
|
|
979
979
|
}
|
|
980
980
|
close() {
|
|
981
981
|
this.closed = !0, this.pcmBatchBuffer = null, this.pcmBatchOffset = 0, this.ring = null, this.sab = void 0;
|
|
@@ -1033,18 +1033,18 @@ class ke {
|
|
|
1033
1033
|
this.closed || (this.pcmBatchOffset = 0, this.lastPcmFlushTimeMs = 0, this.ring?.flush());
|
|
1034
1034
|
}
|
|
1035
1035
|
}
|
|
1036
|
-
function
|
|
1036
|
+
function He(t) {
|
|
1037
1037
|
switch (t) {
|
|
1038
|
-
case
|
|
1038
|
+
case N.Opus:
|
|
1039
1039
|
return "opus";
|
|
1040
|
-
case
|
|
1040
|
+
case N.Mp3:
|
|
1041
1041
|
return "mp3";
|
|
1042
1042
|
default:
|
|
1043
1043
|
return null;
|
|
1044
1044
|
}
|
|
1045
1045
|
}
|
|
1046
1046
|
let M = null;
|
|
1047
|
-
function
|
|
1047
|
+
function pe(t) {
|
|
1048
1048
|
const e = new DataView(t.buffer, t.byteOffset, t.byteLength), r = Math.floor(t.byteLength / 2);
|
|
1049
1049
|
(!M || M.length < r) && (M = new Float32Array(r));
|
|
1050
1050
|
for (let s = 0; s < r; s++)
|
|
@@ -1079,52 +1079,52 @@ class j {
|
|
|
1079
1079
|
}
|
|
1080
1080
|
convertAudioData(e) {
|
|
1081
1081
|
const r = e.numberOfFrames, s = e.numberOfChannels, n = e.format, i = typeof n == "string" && n.includes("planar"), a = "f32-planar", _ = "f32", E = () => {
|
|
1082
|
-
const
|
|
1082
|
+
const I = new Array(s);
|
|
1083
1083
|
for (let u = 0; u < s; u++) {
|
|
1084
1084
|
const S = new Float32Array(r);
|
|
1085
|
-
e.copyTo(S, { planeIndex: u, format: a }),
|
|
1085
|
+
e.copyTo(S, { planeIndex: u, format: a }), I[u] = S;
|
|
1086
1086
|
}
|
|
1087
|
-
return tr(
|
|
1087
|
+
return tr(I, r);
|
|
1088
1088
|
}, o = () => {
|
|
1089
|
-
const
|
|
1090
|
-
return e.copyTo(
|
|
1089
|
+
const I = new Float32Array(r * s);
|
|
1090
|
+
return e.copyTo(I, { planeIndex: 0, format: _ }), I;
|
|
1091
1091
|
};
|
|
1092
|
-
let
|
|
1092
|
+
let A;
|
|
1093
1093
|
if (i)
|
|
1094
1094
|
try {
|
|
1095
|
-
|
|
1096
|
-
} catch (
|
|
1097
|
-
$.debug(`Failed to read planar audio data, falling back to interleaved copy: ${
|
|
1095
|
+
A = E();
|
|
1096
|
+
} catch (I) {
|
|
1097
|
+
$.debug(`Failed to read planar audio data, falling back to interleaved copy: ${I}`), A = o();
|
|
1098
1098
|
}
|
|
1099
1099
|
else
|
|
1100
|
-
|
|
1101
|
-
return
|
|
1100
|
+
A = o();
|
|
1101
|
+
return A;
|
|
1102
1102
|
}
|
|
1103
1103
|
convertPcmBuffer(e, r, s) {
|
|
1104
1104
|
if (e.length === 0)
|
|
1105
1105
|
return e;
|
|
1106
1106
|
let n = e, i = e.length, a = r;
|
|
1107
1107
|
if (s !== R) {
|
|
1108
|
-
const _ = i / a, o = Math.max(1, Math.round(_ * R / s)) * a,
|
|
1109
|
-
i = rr(n,
|
|
1108
|
+
const _ = i / a, o = Math.max(1, Math.round(_ * R / s)) * a, A = this.getResampleBuffer(o);
|
|
1109
|
+
i = rr(n, A, a, s, R), n = A;
|
|
1110
1110
|
}
|
|
1111
|
-
if (a !==
|
|
1112
|
-
const E = i / a *
|
|
1113
|
-
i = sr(n.subarray(0, i), o, a,
|
|
1111
|
+
if (a !== c) {
|
|
1112
|
+
const E = i / a * c, o = this.getRemixBuffer(E);
|
|
1113
|
+
i = sr(n.subarray(0, i), o, a, c), n = o, a = c;
|
|
1114
1114
|
}
|
|
1115
1115
|
return n.subarray(0, i);
|
|
1116
1116
|
}
|
|
1117
1117
|
}
|
|
1118
|
-
class
|
|
1118
|
+
class Ye extends j {
|
|
1119
1119
|
feedChunk(e) {
|
|
1120
1120
|
e.isFirst && this.reset();
|
|
1121
|
-
const r =
|
|
1121
|
+
const r = pe(e.data);
|
|
1122
1122
|
this.writeConvertedPcm(r, this.inputChannels, this.inputSampleRate), e.isLast && this.reset();
|
|
1123
1123
|
}
|
|
1124
1124
|
close() {
|
|
1125
1125
|
}
|
|
1126
1126
|
}
|
|
1127
|
-
class
|
|
1127
|
+
class xe extends j {
|
|
1128
1128
|
decoder;
|
|
1129
1129
|
codec;
|
|
1130
1130
|
constructor(e) {
|
|
@@ -1189,7 +1189,7 @@ class We extends j {
|
|
|
1189
1189
|
decoderSampleRate = 48e3;
|
|
1190
1190
|
pendingChunks = [];
|
|
1191
1191
|
async initialise(e, r) {
|
|
1192
|
-
const { OpusDecoder: s, getOpusModule: n } = await import("./index-
|
|
1192
|
+
const { OpusDecoder: s, getOpusModule: n } = await import("./index-Ca9sTcGt.js");
|
|
1193
1193
|
await n();
|
|
1194
1194
|
const a = [8e3, 12e3, 16e3, 24e3, 48e3].reduce((_, E) => Math.abs(E - r) < Math.abs(_ - r) ? E : _);
|
|
1195
1195
|
this.decoderSampleRate = a, this.decoder = new s({ channels: e, sampleRate: this.decoderSampleRate }), await this.decoder.ready, this.isReady = !0, this.flushPendingChunks();
|
|
@@ -1223,16 +1223,16 @@ class We extends j {
|
|
|
1223
1223
|
return;
|
|
1224
1224
|
const _ = i * a, E = this.getInterleavedBuffer(_);
|
|
1225
1225
|
if (a === 2) {
|
|
1226
|
-
const o = n[0],
|
|
1227
|
-
for (let
|
|
1228
|
-
E[u++] = o[
|
|
1226
|
+
const o = n[0], A = n[1];
|
|
1227
|
+
for (let I = 0, u = 0; I < i; I++)
|
|
1228
|
+
E[u++] = o[I], E[u++] = A[I];
|
|
1229
1229
|
} else if (a === 1)
|
|
1230
1230
|
E.set(n[0].subarray(0, i));
|
|
1231
1231
|
else {
|
|
1232
1232
|
let o = 0;
|
|
1233
|
-
for (let
|
|
1234
|
-
for (let
|
|
1235
|
-
E[o++] = n[
|
|
1233
|
+
for (let A = 0; A < i; A++)
|
|
1234
|
+
for (let I = 0; I < a; I++)
|
|
1235
|
+
E[o++] = n[I][A];
|
|
1236
1236
|
}
|
|
1237
1237
|
this.writeConvertedPcm(E.subarray(0, _), a, this.decoderSampleRate), e.isLast && this.reset();
|
|
1238
1238
|
} catch (r) {
|
|
@@ -1258,17 +1258,17 @@ const T = /* @__PURE__ */ new Map();
|
|
|
1258
1258
|
async function Ke(t) {
|
|
1259
1259
|
if (t.closed || t.decoder)
|
|
1260
1260
|
return;
|
|
1261
|
-
if (t.codec ===
|
|
1262
|
-
t.decoder = new
|
|
1261
|
+
if (t.codec === N.RawPcm16) {
|
|
1262
|
+
t.decoder = new Ye({ inputChannels: t.inputChannels, inputSampleRate: t.inputSampleRate, sink: t.sink });
|
|
1263
1263
|
return;
|
|
1264
1264
|
}
|
|
1265
|
-
if (t.codec !==
|
|
1266
|
-
throw new Error(`Unsupported audio codec: ${
|
|
1267
|
-
const e =
|
|
1268
|
-
if (
|
|
1265
|
+
if (t.codec !== N.Opus && t.codec !== N.Mp3)
|
|
1266
|
+
throw new Error(`Unsupported audio codec: ${N[t.codec] ?? t.codec}`);
|
|
1267
|
+
const e = He(t.codec);
|
|
1268
|
+
if (lt && typeof AudioDecoder < "u" && e !== null)
|
|
1269
1269
|
try {
|
|
1270
1270
|
if ((await AudioDecoder.isConfigSupported({ codec: e, numberOfChannels: t.inputChannels, sampleRate: t.inputSampleRate })).supported) {
|
|
1271
|
-
const n = new
|
|
1271
|
+
const n = new xe({
|
|
1272
1272
|
codec: e,
|
|
1273
1273
|
inputChannels: t.inputChannels,
|
|
1274
1274
|
inputSampleRate: t.inputSampleRate,
|
|
@@ -1284,7 +1284,7 @@ async function Ke(t) {
|
|
|
1284
1284
|
} catch (s) {
|
|
1285
1285
|
$.warn(`WebCodecs AudioDecoder failed, falling back to WASM: ${s instanceof Error ? s.message : String(s)}`);
|
|
1286
1286
|
}
|
|
1287
|
-
if (t.codec ===
|
|
1287
|
+
if (t.codec === N.Opus) {
|
|
1288
1288
|
const s = new We({ inputChannels: t.inputChannels, inputSampleRate: t.inputSampleRate, sink: t.sink });
|
|
1289
1289
|
if (await s.initialise(t.inputChannels, t.inputSampleRate), t.closed) {
|
|
1290
1290
|
s.close();
|
|
@@ -1293,7 +1293,7 @@ async function Ke(t) {
|
|
|
1293
1293
|
t.decoder = s;
|
|
1294
1294
|
return;
|
|
1295
1295
|
}
|
|
1296
|
-
throw new Error(`No available decoder for codec: ${
|
|
1296
|
+
throw new Error(`No available decoder for codec: ${N[t.codec] ?? t.codec}`);
|
|
1297
1297
|
}
|
|
1298
1298
|
function ze(t) {
|
|
1299
1299
|
if (t.closed) {
|
|
@@ -1326,7 +1326,7 @@ function ht(t, e) {
|
|
|
1326
1326
|
t.jitterMs = t.jitterMs + (S - t.jitterMs) / Ge;
|
|
1327
1327
|
}
|
|
1328
1328
|
t.lastArrivalTimeMs = i;
|
|
1329
|
-
const a = t.inputSampleRate * t.inputChannels, _ = R *
|
|
1329
|
+
const a = t.inputSampleRate * t.inputChannels, _ = R * c, E = Math.round(s * _ / a), o = Math.round(n * _ / a), A = Math.round(s * 1e6 / a), I = Math.round(n * 1e6 / a);
|
|
1330
1330
|
m({
|
|
1331
1331
|
type: "frame",
|
|
1332
1332
|
streamId: t.streamId,
|
|
@@ -1340,8 +1340,8 @@ function ht(t, e) {
|
|
|
1340
1340
|
data: e.Samples,
|
|
1341
1341
|
isFirst: e.IsFirst,
|
|
1342
1342
|
isLast: e.IsLast,
|
|
1343
|
-
timestampUs:
|
|
1344
|
-
durationUs:
|
|
1343
|
+
timestampUs: A,
|
|
1344
|
+
durationUs: I
|
|
1345
1345
|
});
|
|
1346
1346
|
}
|
|
1347
1347
|
async function Xe(t) {
|
|
@@ -1410,7 +1410,7 @@ async function Qe(t) {
|
|
|
1410
1410
|
const e = k(t), r = T.get(e);
|
|
1411
1411
|
if (!r || r.closed)
|
|
1412
1412
|
return;
|
|
1413
|
-
const s = await
|
|
1413
|
+
const s = await Yt(t);
|
|
1414
1414
|
if (!ut) {
|
|
1415
1415
|
if (!r.decoder) {
|
|
1416
1416
|
if (r.pendingFrames.length >= J) {
|
|
@@ -1428,7 +1428,7 @@ async function Qe(t) {
|
|
|
1428
1428
|
async function qe(t) {
|
|
1429
1429
|
const e = k(t), r = T.get(e);
|
|
1430
1430
|
if (!r || r.closed) return;
|
|
1431
|
-
const s = await Jt(t), n = r.inputSampleRate * r.inputChannels, i = R *
|
|
1431
|
+
const s = await Jt(t), n = r.inputSampleRate * r.inputChannels, i = R * c;
|
|
1432
1432
|
m({
|
|
1433
1433
|
type: "shapeFrame",
|
|
1434
1434
|
streamId: e,
|
|
@@ -1487,7 +1487,7 @@ function Je() {
|
|
|
1487
1487
|
self.addEventListener("message", (t) => {
|
|
1488
1488
|
const e = t.data;
|
|
1489
1489
|
if (e.type === "configure") {
|
|
1490
|
-
v = e.transport,
|
|
1490
|
+
v = e.transport, lt = e.preferWebCodecs ?? !0, ut = e.webRtcEnabled ?? !1, R = Number.isFinite(e.outputSampleRate) && e.outputSampleRate > 0 ? e.outputSampleRate : At, c = Number.isFinite(e.outputChannels) && e.outputChannels > 0 ? e.outputChannels : It;
|
|
1491
1491
|
return;
|
|
1492
1492
|
}
|
|
1493
1493
|
if (e.type === "attachProtocolPort") {
|
|
@@ -1498,9 +1498,9 @@ self.addEventListener("message", (t) => {
|
|
|
1498
1498
|
return;
|
|
1499
1499
|
}
|
|
1500
1500
|
if (e.type === "rebind") {
|
|
1501
|
-
v = e.transport, typeof e.outputSampleRate == "number" && Number.isFinite(e.outputSampleRate) && e.outputSampleRate > 0 && (R = e.outputSampleRate), typeof e.outputChannels == "number" && Number.isFinite(e.outputChannels) && e.outputChannels > 0 && (
|
|
1501
|
+
v = e.transport, typeof e.outputSampleRate == "number" && Number.isFinite(e.outputSampleRate) && e.outputSampleRate > 0 && (R = e.outputSampleRate), typeof e.outputChannels == "number" && Number.isFinite(e.outputChannels) && e.outputChannels > 0 && (c = e.outputChannels);
|
|
1502
1502
|
for (const r of T.values())
|
|
1503
|
-
r.sink.setOutputFormat(R,
|
|
1503
|
+
r.sink.setOutputFormat(R, c), r.sink.rebind(v);
|
|
1504
1504
|
$e();
|
|
1505
1505
|
return;
|
|
1506
1506
|
}
|
|
@@ -1538,21 +1538,21 @@ function rr(t, e, r, s, n) {
|
|
|
1538
1538
|
if (s === n)
|
|
1539
1539
|
return e.set(t), t.length;
|
|
1540
1540
|
const i = t.length / r, a = Math.max(1, Math.round(i * n / s)), _ = s / n, E = _ > 1 ? _ : 1, o = Math.ceil(tt * E);
|
|
1541
|
-
for (let
|
|
1542
|
-
for (let
|
|
1543
|
-
const u =
|
|
1541
|
+
for (let A = 0; A < r; A++)
|
|
1542
|
+
for (let I = 0; I < a; I++) {
|
|
1543
|
+
const u = I * _, S = Math.floor(u);
|
|
1544
1544
|
let w = 0, L = 0;
|
|
1545
|
-
for (let
|
|
1546
|
-
const b = S +
|
|
1545
|
+
for (let H = -o + 1; H <= o; H++) {
|
|
1546
|
+
const b = S + H;
|
|
1547
1547
|
if (b < 0 || b >= i)
|
|
1548
1548
|
continue;
|
|
1549
|
-
const Tt = (u - b) / E,
|
|
1550
|
-
if (
|
|
1551
|
-
const
|
|
1552
|
-
w +=
|
|
1549
|
+
const Tt = (u - b) / E, p = er(Tt, tt);
|
|
1550
|
+
if (p !== 0) {
|
|
1551
|
+
const Nt = t[b * r + A] ?? 0;
|
|
1552
|
+
w += Nt * p, L += p;
|
|
1553
1553
|
}
|
|
1554
1554
|
}
|
|
1555
|
-
e[
|
|
1555
|
+
e[I * r + A] = L > 0 ? w / L : 0;
|
|
1556
1556
|
}
|
|
1557
1557
|
return a * r;
|
|
1558
1558
|
}
|
|
@@ -2,7 +2,7 @@ var w = "data:application/wasm;base64,AGFzbQEAAAABmQMpYAR/f39/AGADf39/AGAFf39/f3
|
|
|
2
2
|
let E = null, Q = null;
|
|
3
3
|
async function F() {
|
|
4
4
|
return Q || (E || (E = (async () => {
|
|
5
|
-
const A = (await import("./libopus-
|
|
5
|
+
const A = (await import("./libopus-ChbDZJKA.js")).default;
|
|
6
6
|
return Q = await A({
|
|
7
7
|
locateFile: (I) => I.endsWith(".wasm") ? w : I
|
|
8
8
|
}), Q;
|