Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,66 @@
|
||||
/* Metro module 12843; source: modules/errors/CommonSentryInitUtils.tsx; dependencies: [2] */
|
||||
function _fun97994(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#97994, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13033:6, offset: 0x02198578, size: 103 bytes, params: 8, frame: 15
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/errors/CommonSentryInitUtils.tsx');
|
||||
exports.IGNORE_ANALYTICS_BREADCRUMB_EVENTS = ['notification_clicked', 'experiment_user_triggered',
|
||||
'experiment_dm_triggered', 'experiment_guild_triggered', 'device_event', 'react_soft_exception',
|
||||
'network_capabilities_changed', 'foreground_service', 'app_lifecycle', 'ui_lifecycle', 'touch_event',
|
||||
'http_request', 'websocket_message_received'];
|
||||
exports.filterThrottle = function({maxBudgetMinute, maxBudgetHour}) {
|
||||
var env0_2 = {minute: {'slot': 0, 'budgetUsed': 0}, hour: {'slot': 0, 'budgetUsed': 0}};
|
||||
return _fun97996;
|
||||
};
|
||||
}
|
||||
|
||||
function filterThrottle({maxBudgetMinute, maxBudgetHour}) { // fn#97995, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13033:507, offset: 0x021985df, size: 78 bytes, params: 2, frame: 3
|
||||
const env0_2 = {minute: {'slot': 0, 'budgetUsed': 0}, hour: {'slot': 0, 'budgetUsed': 0}};
|
||||
return _fun97996;
|
||||
}
|
||||
|
||||
function _fun97996() { // fn#97996, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13033:638, offset: 0x0219862d, size: 285 bytes, params: 1, frame: 15
|
||||
var r0;
|
||||
var binding;
|
||||
const Date = global.Date;
|
||||
let value = Date.now();
|
||||
let Math = global.Math;
|
||||
const value2 = Math.round(value / 1000 / 60);
|
||||
Math = global.Math;
|
||||
value = Math.round(value / 1000 / 60 / 60);
|
||||
let minute = env0_2.minute;
|
||||
if (minute.slot !== value2) {
|
||||
binding = env0_2;
|
||||
minute = binding.minute;
|
||||
minute.slot = value2;
|
||||
minute = binding.minute;
|
||||
minute.budgetUsed = 0;
|
||||
}
|
||||
let hour = env0_2.hour;
|
||||
if (hour.slot !== value) {
|
||||
binding = env0_2;
|
||||
hour = binding.hour;
|
||||
hour.slot = value;
|
||||
hour = binding.hour;
|
||||
hour.budgetUsed = 0;
|
||||
}
|
||||
let budgetUsed = env0_2.minute.budgetUsed;
|
||||
value = budgetUsed < maxBudgetMinute;
|
||||
if (value) {
|
||||
binding = env0_2;
|
||||
minute = binding.minute;
|
||||
budgetUsed = minute.budgetUsed;
|
||||
minute.budgetUsed = typeof budgetUsed === 'bigint' ? budgetUsed + 1n : +budgetUsed + 1;
|
||||
budgetUsed = binding.hour.budgetUsed;
|
||||
r0 = budgetUsed < maxBudgetHour;
|
||||
} else {
|
||||
r0 = value;
|
||||
}
|
||||
if (r0) {
|
||||
hour = env0_2.hour;
|
||||
budgetUsed = hour.budgetUsed;
|
||||
hour.budgetUsed = typeof budgetUsed === 'bigint' ? budgetUsed + 1n : +budgetUsed + 1;
|
||||
r0 = true;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,25 @@
|
||||
/* Metro module 8104; source: modules/errors/EmbeddedActivityClientError.tsx; dependencies: [7, 6, 2] */
|
||||
function _fun64967(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#64967, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8289:6, offset: 0x01bbb3c2, size: 175 bytes, params: 8, frame: 19
|
||||
var object2;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
let value = importDefault(7) /* metro dependency 7 */;
|
||||
const env0_0 = importDefault(6) /* metro dependency 6 */;
|
||||
object2 = {PRIMARY_APP_COMMAND_NOT_FOUND: 0};
|
||||
object2[0] = 'PRIMARY_APP_COMMAND_NOT_FOUND';
|
||||
object2.LEGACY_LAUNCH_CLIENT_VALIDATION_FAILED = 1;
|
||||
object2[1] = 'LEGACY_LAUNCH_CLIENT_VALIDATION_FAILED';
|
||||
object2.INVALID_CHANNEL = 2;
|
||||
object2[2] = 'INVALID_CHANNEL';
|
||||
value = value(EmbeddedActivityClientError);
|
||||
value.Reasons = object2;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/errors/EmbeddedActivityClientError.tsx');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
function EmbeddedActivityClientError(a0, a1) { // fn#64968, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8289:349, offset: 0x01bbb471, size: 42 bytes, params: 3, frame: 13
|
||||
env0_0(this, EmbeddedActivityClientError);
|
||||
this.reason = a0;
|
||||
this.detailCode = a1;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,58 @@
|
||||
/* Metro module 8059; source: modules/errors/InteractionCallbackError.tsx; dependencies: [7, 6, 2] */
|
||||
function _fun63956(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#63956, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8237:6, offset: 0x01b972ca, size: 483 bytes, params: 8, frame: 19
|
||||
var object2;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
let value = importDefault(7) /* metro dependency 7 */;
|
||||
const env0_0 = importDefault(6) /* metro dependency 6 */;
|
||||
object2 = {UNKNOWN: 1};
|
||||
object2[1] = 'UNKNOWN';
|
||||
object2.TIMEOUT = 2;
|
||||
object2[2] = 'TIMEOUT';
|
||||
object2.ACTIVITY_LAUNCH_UNKNOWN_APPLICATION = 3;
|
||||
object2[3] = 'ACTIVITY_LAUNCH_UNKNOWN_APPLICATION';
|
||||
object2.ACTIVITY_LAUNCH_UNKNOWN_CHANNEL = 4;
|
||||
object2[4] = 'ACTIVITY_LAUNCH_UNKNOWN_CHANNEL';
|
||||
object2.ACTIVITY_LAUNCH_UNKNOWN_GUILD = 5;
|
||||
object2[5] = 'ACTIVITY_LAUNCH_UNKNOWN_GUILD';
|
||||
object2.ACTIVITY_LAUNCH_INVALID_PLATFORM = 6;
|
||||
object2[6] = 'ACTIVITY_LAUNCH_INVALID_PLATFORM';
|
||||
object2.ACTIVITY_LAUNCH_NOT_IN_EXPERIMENT = 7;
|
||||
object2[7] = 'ACTIVITY_LAUNCH_NOT_IN_EXPERIMENT';
|
||||
object2.ACTIVITY_LAUNCH_INVALID_CHANNEL_TYPE = 8;
|
||||
object2[8] = 'ACTIVITY_LAUNCH_INVALID_CHANNEL_TYPE';
|
||||
object2.ACTIVITY_LAUNCH_INVALID_CHANNEL_NO_AFK = 9;
|
||||
object2[9] = 'ACTIVITY_LAUNCH_INVALID_CHANNEL_NO_AFK';
|
||||
object2.ACTIVITY_LAUNCH_INVALID_DEV_PREVIEW_GUILD_SIZE = 10;
|
||||
object2[10] = 'ACTIVITY_LAUNCH_INVALID_DEV_PREVIEW_GUILD_SIZE';
|
||||
object2.ACTIVITY_LAUNCH_INVALID_USER_AGE_GATE = 11;
|
||||
object2[11] = 'ACTIVITY_LAUNCH_INVALID_USER_AGE_GATE';
|
||||
object2.ACTIVITY_LAUNCH_INVALID_USER_VERIFICATION_LEVEL = 12;
|
||||
object2[12] = 'ACTIVITY_LAUNCH_INVALID_USER_VERIFICATION_LEVEL';
|
||||
object2.ACTIVITY_LAUNCH_INVALID_USER_PERMISSIONS = 13;
|
||||
object2[13] = 'ACTIVITY_LAUNCH_INVALID_USER_PERMISSIONS';
|
||||
object2.ACTIVITY_LAUNCH_INVALID_CONFIGURATION_NOT_EMBEDDED = 14;
|
||||
object2[14] = 'ACTIVITY_LAUNCH_INVALID_CONFIGURATION_NOT_EMBEDDED';
|
||||
object2.ACTIVITY_LAUNCH_INVALID_CONFIGURATION_PLATFORM_NOT_SUPPORTED = 15;
|
||||
object2[15] = 'ACTIVITY_LAUNCH_INVALID_CONFIGURATION_PLATFORM_NOT_SUPPORTED';
|
||||
object2.ACTIVITY_LAUNCH_INVALID_CONFIGURATION_PLATFORM_NOT_RELEASED = 16;
|
||||
object2[16] = 'ACTIVITY_LAUNCH_INVALID_CONFIGURATION_PLATFORM_NOT_RELEASED';
|
||||
object2.ACTIVITY_LAUNCH_FAILED_TO_LAUNCH = 17;
|
||||
object2[17] = 'ACTIVITY_LAUNCH_FAILED_TO_LAUNCH';
|
||||
object2.ACTIVITY_LAUNCH_INVALID_USER_NO_ACCESS_TO_ACTIVITY = 18;
|
||||
object2[18] = 'ACTIVITY_LAUNCH_INVALID_USER_NO_ACCESS_TO_ACTIVITY';
|
||||
object2.ACTIVITY_LAUNCH_INVALID_LOCATION_TYPE = 19;
|
||||
object2[19] = 'ACTIVITY_LAUNCH_INVALID_LOCATION_TYPE';
|
||||
object2.ACTIVITY_LAUNCH_INVALID_USER_REGION_FOR_APPLICATION = 20;
|
||||
object2[20] = 'ACTIVITY_LAUNCH_INVALID_USER_REGION_FOR_APPLICATION';
|
||||
value = value(InteractionCallbackError);
|
||||
value.ReasonCodes = object2;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/errors/InteractionCallbackError.tsx');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
function InteractionCallbackError(a0) { // fn#63957, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8237:1897, offset: 0x01b974ad, size: 33 bytes, params: 2, frame: 13
|
||||
env0_0(this, InteractionCallbackError);
|
||||
this.reason = a0;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,65 @@
|
||||
/* Metro module 11545; source: modules/errors/UploaderError.tsx; dependencies: [7, 6, 15, 17, 18, 4132, 2] */
|
||||
function _fun88493(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#88493, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11731:6, offset: 0x01fe592d, size: 198 bytes, params: 8, frame: 18
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_0 = importDefault(7) /* metro dependency 7 */;
|
||||
const env0_1 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_2 = importDefault(15) /* metro dependency 15 */;
|
||||
const env0_3 = importDefault(17) /* metro dependency 17 */;
|
||||
const env0_4 = importDefault(18) /* metro dependency 18 */;
|
||||
let value = importDefault(4132) /* metro dependency 4132: APIError */;
|
||||
value = _fun88497(value);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/errors/UploaderError.tsx');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
function _isNativeReflectConstruct_88494() { // fn#88494, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11731:148, offset: 0x01fe59f3, size: 98 bytes, params: 1, frame: 18
|
||||
var Boolean;
|
||||
var prototype;
|
||||
var valueOf;
|
||||
var call;
|
||||
var Reflect;
|
||||
var construct;
|
||||
var closure;
|
||||
var value;
|
||||
var error;
|
||||
try {
|
||||
Boolean = global.Boolean;
|
||||
prototype = Boolean.prototype;
|
||||
valueOf = prototype.valueOf;
|
||||
call = valueOf.call;
|
||||
Reflect = global.Reflect;
|
||||
construct = Reflect.construct;
|
||||
Boolean = global.Boolean;
|
||||
closure = function() {
|
||||
};
|
||||
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
|
||||
value = Reflect.apply(call, valueOf, [value]);
|
||||
var result = !value;
|
||||
} catch (error) {
|
||||
}
|
||||
return (_isNativeReflectConstruct_88494_isNativeReflectConstruct = function() {
|
||||
return !!result;
|
||||
})();
|
||||
}
|
||||
|
||||
function _fun88497(a0) { // fn#88497, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11731:347, offset: 0x01fe5a55, size: 42 bytes, params: 2, frame: 14
|
||||
const closure = UploaderError;
|
||||
env0_4(closure, a0);
|
||||
return env0_0(closure);
|
||||
}
|
||||
|
||||
function UploaderError(a0, a1) { // fn#88498, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11731:359, offset: 0x01fe5a7f, size: 181 bytes, params: 3, frame: 20
|
||||
let value = environment.__proto__;
|
||||
env1_1(this, UploaderError);
|
||||
const items2 = [a0, a1];
|
||||
const value3 = env1_3(UploaderError);
|
||||
value = env1_2(this, _isNativeReflectConstruct_88494() ? global.Reflect.construct(value3, items2,
|
||||
env1_3(this).constructor) : value3.apply(this, items2));
|
||||
value.attachments = [];
|
||||
if (a0.body != null && a0.body.attachments != null) {
|
||||
value.attachments = a0.body.attachments;
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
/* Metro module 10685; source: modules/errors/VideoStreamReadyActionCreators.tsx; dependencies: [694, 2] */
|
||||
function _fun82157(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#82157, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10871:6, offset: 0x01eecc81, size: 112 bytes, params: 8, frame: 17
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/errors/VideoStreamReadyActionCreators.tsx');
|
||||
exports.videoStreamTimedOut = videoStreamTimedOut;
|
||||
exports.clearVideoStreamTimeout = clearVideoStreamTimeout;
|
||||
}
|
||||
|
||||
function videoStreamTimedOut(a0, a1, a2, a3) { // fn#82158, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10871:197, offset: 0x01eeccf1, size: 77 bytes, params: 5, frame: 13
|
||||
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'VIDEO_STREAM_READY_TIMEOUT',
|
||||
videoStreamId: a0, mediaContext: a2, userId: a1, streamKey: a3});
|
||||
}
|
||||
|
||||
function clearVideoStreamTimeout(a0, a1) { // fn#82159, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10871:368, offset: 0x01eecd3e, size: 61 bytes, params: 3, frame: 13
|
||||
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'CLEAR_VIDEO_STREAM_READY_TIMEOUT',
|
||||
mediaContext: a0, userId: a1});
|
||||
}
|
||||
|
||||
@@ -0,0 +1,270 @@
|
||||
/* Metro module 9235; source: modules/errors/av_errors/AVError.tsx; dependencies: [29, 3, 694, 2] */
|
||||
function _fun72233(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#72233, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9420:6, offset: 0x01d3eed9, size: 2046 bytes, params: 8, frame: 23
|
||||
var object5;
|
||||
const env0_2 = ['type'];
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(29) /* metro dependency 29 */;
|
||||
let value = importDefault(3) /* metro dependency 3: Logger */;
|
||||
value = new value('AVError');
|
||||
object5 = {STREAM_FAILED_TO_START: 'stream-failed-to-start', NO_INPUT_DEVICES: 'no-input-devices',
|
||||
NO_AUDIO_INPUT_DETECTED: 'no-audio-input-detected', DEBUG_LOG_UPLOAD_FAILED: 'debug-log-upload-failed',
|
||||
STREAM_VIEW_LOW_FPS: 'stream-view-low-fps', STREAM_VIEW_HIGH_PACKET_LOSS: 'stream-view-high-packet-loss',
|
||||
STREAM_SEND_LOW_FPS: 'stream-send-low-encode-fps', STREAM_SEND_HIGH_PACKET_LOSS: 'stream-send-high-packet-loss',
|
||||
STREAM_BAD_NETWORK_QUALITY: 'stream-send-network-quality', STREAM_SOUNDSHARE_FAILED: 'stream-soundshare-failed',
|
||||
NOISE_CANCELLER_ERROR: 'noise-canceller-error', SCREENSHARE_OS_NOT_SUPPORTED: 'screenshare-min-os-requirement',
|
||||
STREAM_RECONNECTING: 'stream-reconnecting', VIDEO_DECODE_ERROR: 'video-decode-error',
|
||||
VIDEO_ENCODE_ERROR: 'video-encode-error', STREAM_FULL: 'stream-full',
|
||||
AUDIO_CAPTURE_SAMPLE_RATE_MISMATCH: 'audio-capture-sample-rate-mismatch',
|
||||
VIDEO_STREAM_SENDER_READY_TIMEOUT: 'video-stream-sender-ready-timeout',
|
||||
VIDEO_STREAM_RECEIVER_READY_TIMEOUT: 'video-stream-receiver-ready-timeout',
|
||||
VIDEO_STREAM_SENDER_READY_TIMEOUT_NO_STREAM: 'video-stream-sender-ready-timeout-no-stream',
|
||||
VIDEO_STREAM_RECEIVER_READY_TIMEOUT_NO_STREAM: 'video-stream-receiver-ready-timeout-no-stream',
|
||||
CAMERA_SEND_LOW_FPS: 'camera-send-low-encode-fps', SCREENSHARE_OS_ERROR: 'screenshare-os-error',
|
||||
VIDEO_BACKGROUND_UNAVAILABLE: 'video-background-unavailable'};
|
||||
const object6 = {Audio: 'audio', Video: 'video', Devices: 'devices', Debug: 'debug'};
|
||||
const object7 = {Critical: 'critical', Warning: 'warning', Info: 'info'};
|
||||
const object8 = {};
|
||||
const STREAM_SOUNDSHARE_FAILED = object5.STREAM_SOUNDSHARE_FAILED;
|
||||
let Warning = object7.Warning;
|
||||
let Audio = object6.Audio;
|
||||
object8[STREAM_SOUNDSHARE_FAILED] = {errorCode: 1001, severity: Warning, category: Audio, isErrorOutbound: true};
|
||||
const NOISE_CANCELLER_ERROR = object5.NOISE_CANCELLER_ERROR;
|
||||
Warning = object7.Warning;
|
||||
Audio = object6.Audio;
|
||||
object8[NOISE_CANCELLER_ERROR] = {errorCode: 1002, severity: Warning, category: Audio, isErrorOutbound: true};
|
||||
const AUDIO_CAPTURE_SAMPLE_RATE_MISMATCH = object5.AUDIO_CAPTURE_SAMPLE_RATE_MISMATCH;
|
||||
Warning = object7.Warning;
|
||||
Audio = object6.Audio;
|
||||
object8[AUDIO_CAPTURE_SAMPLE_RATE_MISMATCH] = {errorCode: 1003, severity: Warning, category: Audio,
|
||||
isErrorOutbound: true};
|
||||
const STREAM_FAILED_TO_START = object5.STREAM_FAILED_TO_START;
|
||||
let Critical = object7.Critical;
|
||||
let Video = object6.Video;
|
||||
object8[STREAM_FAILED_TO_START] = {errorCode: 2001, severity: Critical, category: Video, isErrorOutbound: true};
|
||||
const STREAM_VIEW_LOW_FPS = object5.STREAM_VIEW_LOW_FPS;
|
||||
Warning = object7.Warning;
|
||||
Video = object6.Video;
|
||||
object8[STREAM_VIEW_LOW_FPS] = {errorCode: 2002, severity: Warning, category: Video, isErrorOutbound: false};
|
||||
const STREAM_VIEW_HIGH_PACKET_LOSS = object5.STREAM_VIEW_HIGH_PACKET_LOSS;
|
||||
Warning = object7.Warning;
|
||||
Video = object6.Video;
|
||||
object8[STREAM_VIEW_HIGH_PACKET_LOSS] = {errorCode: 2003, severity: Warning, category: Video,
|
||||
isErrorOutbound: false};
|
||||
const STREAM_SEND_HIGH_PACKET_LOSS = object5.STREAM_SEND_HIGH_PACKET_LOSS;
|
||||
Warning = object7.Warning;
|
||||
Video = object6.Video;
|
||||
object8[STREAM_SEND_HIGH_PACKET_LOSS] = {errorCode: 2004, severity: Warning, category: Video, isErrorOutbound: true};
|
||||
const STREAM_SEND_LOW_FPS = object5.STREAM_SEND_LOW_FPS;
|
||||
Warning = object7.Warning;
|
||||
Video = object6.Video;
|
||||
object8[STREAM_SEND_LOW_FPS] = {errorCode: 2005, severity: Warning, category: Video, isErrorOutbound: true};
|
||||
const STREAM_BAD_NETWORK_QUALITY = object5.STREAM_BAD_NETWORK_QUALITY;
|
||||
Warning = object7.Warning;
|
||||
Video = object6.Video;
|
||||
object8[STREAM_BAD_NETWORK_QUALITY] = {errorCode: 2006, severity: Warning, category: Video, isErrorOutbound: true};
|
||||
const STREAM_RECONNECTING = object5.STREAM_RECONNECTING;
|
||||
Warning = object7.Warning;
|
||||
Video = object6.Video;
|
||||
object8[STREAM_RECONNECTING] = {errorCode: 2007, severity: Warning, category: Video, isErrorOutbound: false};
|
||||
const VIDEO_DECODE_ERROR = object5.VIDEO_DECODE_ERROR;
|
||||
Warning = object7.Warning;
|
||||
Video = object6.Video;
|
||||
object8[VIDEO_DECODE_ERROR] = {errorCode: 2008, severity: Warning, category: Video, isErrorOutbound: false};
|
||||
const VIDEO_ENCODE_ERROR = object5.VIDEO_ENCODE_ERROR;
|
||||
Warning = object7.Warning;
|
||||
Video = object6.Video;
|
||||
object8[VIDEO_ENCODE_ERROR] = {errorCode: 2009, severity: Warning, category: Video, isErrorOutbound: true};
|
||||
const STREAM_FULL = object5.STREAM_FULL;
|
||||
Critical = object7.Critical;
|
||||
Video = object6.Video;
|
||||
object8[STREAM_FULL] = {errorCode: 2010, severity: Critical, category: Video, isErrorOutbound: false};
|
||||
const VIDEO_STREAM_SENDER_READY_TIMEOUT = object5.VIDEO_STREAM_SENDER_READY_TIMEOUT;
|
||||
Critical = object7.Critical;
|
||||
Video = object6.Video;
|
||||
object8[VIDEO_STREAM_SENDER_READY_TIMEOUT] = {errorCode: 2011, severity: Critical, category: Video,
|
||||
isErrorOutbound: true};
|
||||
const VIDEO_STREAM_RECEIVER_READY_TIMEOUT = object5.VIDEO_STREAM_RECEIVER_READY_TIMEOUT;
|
||||
Critical = object7.Critical;
|
||||
Video = object6.Video;
|
||||
object8[VIDEO_STREAM_RECEIVER_READY_TIMEOUT] = {errorCode: 2012, severity: Critical, category: Video,
|
||||
isErrorOutbound: false};
|
||||
const CAMERA_SEND_LOW_FPS = object5.CAMERA_SEND_LOW_FPS;
|
||||
Warning = object7.Warning;
|
||||
Video = object6.Video;
|
||||
object8[CAMERA_SEND_LOW_FPS] = {errorCode: 2013, severity: Warning, category: Video, isErrorOutbound: true};
|
||||
const VIDEO_STREAM_SENDER_READY_TIMEOUT_NO_STREAM = object5.VIDEO_STREAM_SENDER_READY_TIMEOUT_NO_STREAM;
|
||||
Critical = object7.Critical;
|
||||
Video = object6.Video;
|
||||
object8[VIDEO_STREAM_SENDER_READY_TIMEOUT_NO_STREAM] = {errorCode: 2014, severity: Critical, category: Video,
|
||||
isErrorOutbound: true};
|
||||
const VIDEO_STREAM_RECEIVER_READY_TIMEOUT_NO_STREAM = object5.VIDEO_STREAM_RECEIVER_READY_TIMEOUT_NO_STREAM;
|
||||
Critical = object7.Critical;
|
||||
Video = object6.Video;
|
||||
object8[VIDEO_STREAM_RECEIVER_READY_TIMEOUT_NO_STREAM] = {errorCode: 2015, severity: Critical, category: Video,
|
||||
isErrorOutbound: false};
|
||||
const VIDEO_BACKGROUND_UNAVAILABLE = object5.VIDEO_BACKGROUND_UNAVAILABLE;
|
||||
Warning = object7.Warning;
|
||||
Video = object6.Video;
|
||||
object8[VIDEO_BACKGROUND_UNAVAILABLE] = {errorCode: 2016, severity: Warning, category: Video, isErrorOutbound: true};
|
||||
const NO_INPUT_DEVICES = object5.NO_INPUT_DEVICES;
|
||||
Critical = object7.Critical;
|
||||
let Devices = object6.Devices;
|
||||
object8[NO_INPUT_DEVICES] = {errorCode: 3001, severity: Critical, category: Devices, isErrorOutbound: true};
|
||||
const NO_AUDIO_INPUT_DETECTED = object5.NO_AUDIO_INPUT_DETECTED;
|
||||
Critical = object7.Critical;
|
||||
Devices = object6.Devices;
|
||||
object8[NO_AUDIO_INPUT_DETECTED] = {errorCode: 3002, severity: Critical, category: Devices, isErrorOutbound: true};
|
||||
const SCREENSHARE_OS_NOT_SUPPORTED = object5.SCREENSHARE_OS_NOT_SUPPORTED;
|
||||
Critical = object7.Critical;
|
||||
Devices = object6.Devices;
|
||||
object8[SCREENSHARE_OS_NOT_SUPPORTED] = {errorCode: 3003, severity: Critical, category: Devices,
|
||||
isErrorOutbound: true};
|
||||
const SCREENSHARE_OS_ERROR = object5.SCREENSHARE_OS_ERROR;
|
||||
Critical = object7.Critical;
|
||||
Devices = object6.Devices;
|
||||
object8[SCREENSHARE_OS_ERROR] = {errorCode: 3004, severity: Critical, category: Devices, isErrorOutbound: true};
|
||||
const DEBUG_LOG_UPLOAD_FAILED = object5.DEBUG_LOG_UPLOAD_FAILED;
|
||||
const Info = object7.Info;
|
||||
const Debug = object6.Debug;
|
||||
object8[DEBUG_LOG_UPLOAD_FAILED] = {errorCode: 4001, severity: Info, category: Debug, isErrorOutbound: true};
|
||||
validateUniqueErrorCodes();
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/errors/av_errors/AVError.tsx');
|
||||
exports.AVError = object5;
|
||||
exports.AVErrorCategory = object6;
|
||||
exports.AVErrorSeverity = object7;
|
||||
exports.AVUnderlyingError = {Unknown: 'Unknown', UploadErrorGeneral: 'UploadErrorCodes.GENERAL',
|
||||
UploadErrorNoFile: 'UploadErrorCodes.NO_FILE', UploadErrorProgress: 'UploadErrorCodes.PROGRESS',
|
||||
UploadErrorUpload: 'UploadErrorCodes.UPLOAD', UploadErrorRead: 'UploadErrorCodes.READ',
|
||||
KrispCpuOveruse: 'NoiseCancellerError.CPU_OVERUSE', KrispFailed: 'NoiseCancellerError.FAILED',
|
||||
KrispVadCpuOveruse: 'NoiseCancellerError.VAD_CPU_OVERUSE', KrispInitError: 'NoiseCancellerError.INIT_ERROR',
|
||||
KrispInitErrorNative: 'NoiseCancellerError.INIT_ERROR_NATIVE',
|
||||
KrispInitErrorSse4NotSupported: 'NoiseCancellerError.KRISP_INIT_ERROR_SSE4_NOT_SUPPORTED',
|
||||
KrispInitErrorAvx2NotSupported: 'NoiseCancellerError.KRISP_INIT_ERROR_AVX2_NOT_SUPPORTED',
|
||||
KrispInitErrorUnsigned: 'NoiseCancellerError.KRISP_INIT_ERROR_UNSIGNED',
|
||||
KrispInitErrorGlobalInit: 'NoiseCancellerError.KRISP_INIT_ERROR_GLOBAL_INIT',
|
||||
KrispInitErrorWeight8k: 'NoiseCancellerError.KRISP_INIT_ERROR_WEIGHT_8K',
|
||||
KrispInitErrorWeight16k: 'NoiseCancellerError.KRISP_INIT_ERROR_WEIGHT_16K',
|
||||
KrispInitErrorWeight32k: 'NoiseCancellerError.KRISP_INIT_ERROR_WEIGHT_32K',
|
||||
KrispInitErrorWeightVad: 'NoiseCancellerError.KRISP_INIT_ERROR_WEIGHT_VAD',
|
||||
VideoBackgroundUnsupported: 'VideoBackgroundError.UNSUPPORTED',
|
||||
VideoBackgroundInitFailed: 'VideoBackgroundError.INIT_FAILED'};
|
||||
exports.reportAVError = reportAVError;
|
||||
exports.getErrorInfo = getErrorInfo;
|
||||
}
|
||||
|
||||
function validateUniqueErrorCodes() { // fn#72234, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9420:5494, offset: 0x01d3f6d7, size: 235 bytes, params: 1, frame: 14
|
||||
var Error;
|
||||
const Object = global.Object;
|
||||
var value;
|
||||
let value3 = Object.values(env0_5).map(function(a0) {
|
||||
return a0.errorCode;
|
||||
});
|
||||
const Set = global.Set;
|
||||
const value4 = Object.create(Set.prototype, {constructor: {value: Set}});
|
||||
const set = new Set(value3);
|
||||
if (value3.length !== (set instanceof Object ? set : value4).size) {
|
||||
var env0_1 = value3.filter(_fun72236);
|
||||
value = global.Object.entries(env0_5);
|
||||
value = value.filter(_fun72237);
|
||||
value = value.map(function(a0) {
|
||||
var r0;
|
||||
var r1;
|
||||
var r2;
|
||||
var item3;
|
||||
var value3;
|
||||
var iterator = a0[Symbol.iterator]();
|
||||
var iterator2 = iterator.next;
|
||||
var item2 = Reflect.apply(iterator2, iterator, []);
|
||||
var item = item2.value;
|
||||
item2 = item2.done ? undefined : iterator;
|
||||
var value = undefined;
|
||||
var value2 = item2 === value;
|
||||
var r4 = value2 ? value : item;
|
||||
if (value2) {
|
||||
r0 = value;
|
||||
r1 = item2;
|
||||
r2 = value2;
|
||||
} else {
|
||||
item3 = Reflect.apply(iterator2, item2, []);
|
||||
item = item3.value;
|
||||
item3 = item3.done ? undefined : item2;
|
||||
value3 = item3 === value;
|
||||
if (value3) {
|
||||
r0 = value;
|
||||
r1 = item3;
|
||||
r2 = value3;
|
||||
} else {
|
||||
r0 = item;
|
||||
r1 = item3;
|
||||
r2 = value3;
|
||||
}
|
||||
}
|
||||
if (!r2) {
|
||||
r1.return();
|
||||
}
|
||||
return '' + r4 + ': ' + r0.errorCode;
|
||||
});
|
||||
Error = global.Error;
|
||||
value = value.join('\n');
|
||||
value = 'Duplicate AV error codes found:\n' + value;
|
||||
throw new Error();
|
||||
}
|
||||
}
|
||||
|
||||
function reportAVError(a0) { // fn#72239, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9420:5986, offset: 0x01d3f8a0, size: 181 bytes, params: 2, frame: 20
|
||||
const type = a0.type;
|
||||
let binding = env0_3;
|
||||
const value2 = binding(a0, env0_2);
|
||||
binding = env0_4;
|
||||
const error = binding.error;
|
||||
const JSON = global.JSON;
|
||||
Reflect.apply(error, binding, ['AV error reported: ' + type + ' ' + JSON.stringify(value2)]);
|
||||
const property = env0_5[type];
|
||||
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'REPORT_AV_ERROR', error: type,
|
||||
errorCode: property.errorCode, severity: property.severity, category: property.category, context: a0});
|
||||
}
|
||||
|
||||
function _fun72236(a0, a1) { // fn#72236, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9420:5626, offset: 0x01d3f7cd, size: 30 bytes, params: 3, frame: 11
|
||||
return env0_0.indexOf(a0) !== a1;
|
||||
}
|
||||
|
||||
function _fun72237(a0) { // fn#72237, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9420:5680, offset: 0x01d3f7eb, size: 80 bytes, params: 2, frame: 14
|
||||
var r0;
|
||||
var r1;
|
||||
var r2;
|
||||
var item3;
|
||||
var value3;
|
||||
const iterator = a0[Symbol.iterator]();
|
||||
const iterator2 = iterator.next;
|
||||
let item2 = Reflect.apply(iterator2, iterator, []);
|
||||
let item = item2.value;
|
||||
item2 = item2.done ? undefined : iterator;
|
||||
const value = undefined;
|
||||
const value2 = item2 === value;
|
||||
if (value2) {
|
||||
r0 = value;
|
||||
r1 = item2;
|
||||
r2 = value2;
|
||||
} else {
|
||||
item3 = Reflect.apply(iterator2, item2, []);
|
||||
item = item3.value;
|
||||
item3 = item3.done ? undefined : item2;
|
||||
value3 = item3 === value;
|
||||
if (value3) {
|
||||
r0 = value;
|
||||
r1 = item3;
|
||||
r2 = value3;
|
||||
} else {
|
||||
r0 = item;
|
||||
r1 = item3;
|
||||
r2 = value3;
|
||||
}
|
||||
}
|
||||
if (!r2) {
|
||||
r1.return();
|
||||
}
|
||||
const binding = env0_1;
|
||||
return binding.includes(r0.errorCode);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,550 @@
|
||||
/* Metro module 16188; source: modules/errors/av_errors/AVErrorAnalytics.tsx; dependencies: [57, 4394, 4289, 4399, 1379, 4259, 4294, 4402, 1934, 4395, 661, 4291, 9235, 4285, 4482, 22, 7130, 10682, 5256, 4488, 683, 2] */
|
||||
function _fun125067(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#125067, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16396:6, offset: 0x025cc324, size: 388 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const getInboundVideoStats = function(a0, a1) {
|
||||
var r1;
|
||||
var value4;
|
||||
var value = null;
|
||||
if (value == a1) {
|
||||
return value;
|
||||
}
|
||||
var value3 = MediaEngineStatsStore.getConnectionStats(a0);
|
||||
if (value == value3) {
|
||||
return value;
|
||||
}
|
||||
var property = value3.stats.rtp.inbound[a1];
|
||||
if (value == property) {
|
||||
r1 = value;
|
||||
} else {
|
||||
value4 = property.find(_fun125071);
|
||||
r1 = value != value4 ? value4 : value;
|
||||
}
|
||||
return r1;
|
||||
};
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(57) /* metro dependency 57 */;
|
||||
const mediaEngineStatsStore = importDefault(4394) /* metro dependency 4394: MediaEngineStatsStore */;
|
||||
const env0_5 = (require(4289) /* metro dependency 4289: SystemAnalyticsStoreNative */).getSystemAnalyticsInfo;
|
||||
const applicationStreamingSettingsStore = importDefault(4399) /* metro dependency 4399: ApplicationStreamingSettingsStore */;
|
||||
const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */;
|
||||
const mediaEngineStore = importDefault(4259) /* metro dependency 4259: MediaEngineStore */;
|
||||
const rtcConnectionStore = importDefault(4294) /* metro dependency 4294: RTCConnectionStore */;
|
||||
const rtcRegionStore = importDefault(4402) /* metro dependency 4402: RTCRegionStore */;
|
||||
const selectedChannelStore = importDefault(1934) /* metro dependency 1934: SelectedChannelStore */;
|
||||
const streamRTCConnectionStore = importDefault(4395) /* metro dependency 4395: StreamRTCConnectionStore */;
|
||||
const env0_13 = (require(661) /* metro dependency 661: Constants */).AnalyticEvents;
|
||||
const constantsModule = require(4291) /* metro dependency 4291: Constants */;
|
||||
const env0_14 = constantsModule.MediaEngineContextTypes;
|
||||
const env0_15 = constantsModule.SIMULCAST_HQ_QUALITY;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/errors/av_errors/AVErrorAnalytics.tsx');
|
||||
exports.sendAVErrorAnalyticsEvent = sendAVErrorAnalyticsEvent;
|
||||
}
|
||||
|
||||
function getOutboundVideoStats(a0) { // fn#125068, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16396:309, offset: 0x025cc4a8, size: 87 bytes, params: 2, frame: 13
|
||||
var r0;
|
||||
let value = MediaEngineStatsStore.getConnectionStats(a0);
|
||||
const value2 = null;
|
||||
if (value2 == value) {
|
||||
r0 = value2;
|
||||
} else {
|
||||
value = value.stats.rtp.outbound.find(function(a0) {
|
||||
return a0.type === 'video';
|
||||
});
|
||||
r0 = value2 != value ? value : value2;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function getInboundVideoStats(a0, a1) { // fn#125070, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16396:461, offset: 0x025cc4ff, size: 106 bytes, params: 3, frame: 13
|
||||
var r1;
|
||||
var value4;
|
||||
const value = null;
|
||||
if (value == a1) {
|
||||
return value;
|
||||
}
|
||||
const connectionStats = MediaEngineStatsStore.getConnectionStats(a0);
|
||||
if (value == connectionStats) {
|
||||
return value;
|
||||
}
|
||||
const property = connectionStats.stats.rtp.inbound[a1];
|
||||
if (value == property) {
|
||||
r1 = value;
|
||||
} else {
|
||||
value4 = property.find(function(a0) {
|
||||
return a0.type === 'video';
|
||||
});
|
||||
r1 = value != value4 ? value4 : value;
|
||||
}
|
||||
return r1;
|
||||
}
|
||||
|
||||
function getVideoStats(a0, a1, a2) { // fn#125072, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16396:674, offset: 0x025cc569, size: 42 bytes, params: 4, frame: 14
|
||||
return a0 ? getOutboundVideoStats(a1) : getInboundVideoStats(a1, a2);
|
||||
}
|
||||
|
||||
function getLatestOutboundBitrateEstimate(a0) { // fn#125073, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16396:764, offset: 0x025cc593, size: 64 bytes, params: 2, frame: 12
|
||||
const connectionStats = MediaEngineStatsStore.getConnectionStats(a0);
|
||||
const value2 = null;
|
||||
const outboundBitrateEstimate = value2 == connectionStats ? undefined : connectionStats.stats.transport.outboundBitrateEstimate;
|
||||
return value2 != outboundBitrateEstimate ? outboundBitrateEstimate : value2;
|
||||
}
|
||||
|
||||
function getLatestInboundBitrateEstimate(a0) { // fn#125074, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16396:924, offset: 0x025cc5d3, size: 64 bytes, params: 2, frame: 12
|
||||
const connectionStats = MediaEngineStatsStore.getConnectionStats(a0);
|
||||
const value2 = null;
|
||||
const inboundBitrateEstimate = value2 == connectionStats ? undefined : connectionStats.stats.transport.inboundBitrateEstimate;
|
||||
return value2 != inboundBitrateEstimate ? inboundBitrateEstimate : value2;
|
||||
}
|
||||
|
||||
function getCurrentScreenshareCaptureMethod(a0) { // fn#125075, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16396:1082, offset: 0x025cc613, size: 300 bytes, params: 2, frame: 24
|
||||
var r2;
|
||||
var r1;
|
||||
var r9;
|
||||
var r10;
|
||||
var r5;
|
||||
var r6;
|
||||
var r7;
|
||||
var property;
|
||||
var stats;
|
||||
var screenshare;
|
||||
var property2;
|
||||
var property3;
|
||||
var value7;
|
||||
var value10;
|
||||
var property4;
|
||||
var value11;
|
||||
const connectionStats = MediaEngineStatsStore.getConnectionStats(a0);
|
||||
const lastConnectionStats = MediaEngineStatsStore.getLastConnectionStats(a0);
|
||||
const value4 = null;
|
||||
if (value4 == connectionStats) {
|
||||
return value4;
|
||||
}
|
||||
if (value4 == lastConnectionStats) {
|
||||
return value4;
|
||||
}
|
||||
const object2 = {};
|
||||
const items2 = ['videohookFrames', 'hybridDxgiFrames', 'hybridGdiFrames', 'hybridVideohookFrames',
|
||||
'hybridGraphicsCaptureFrames', 'hybridGdiBitBltFrames', 'hybridGdiPrintWindowFrames', 'quartzFrames',
|
||||
'screenCaptureKitFrames'];
|
||||
let length = items2.length;
|
||||
const value5 = 0;
|
||||
const value6 = undefined;
|
||||
if (value5 < length) {
|
||||
r2 = value5;
|
||||
while (true) {
|
||||
property = items2[r2];
|
||||
stats = lastConnectionStats.stats;
|
||||
screenshare = stats.screenshare;
|
||||
if (value4 == screenshare) {
|
||||
r1 = value6;
|
||||
} else {
|
||||
property2 = screenshare[property];
|
||||
r1 = property2;
|
||||
}
|
||||
if (value4 != r1) {
|
||||
r9 = r1;
|
||||
continue;
|
||||
}
|
||||
r9 = value5;
|
||||
continue;
|
||||
stats = connectionStats.stats;
|
||||
screenshare = stats.screenshare;
|
||||
if (value4 == screenshare) {
|
||||
r10 = value6;
|
||||
continue;
|
||||
}
|
||||
property3 = screenshare[property];
|
||||
r10 = property3;
|
||||
if (value4 != r10) {
|
||||
r1 = r10;
|
||||
continue;
|
||||
}
|
||||
r1 = value5;
|
||||
continue;
|
||||
object2[property] = r1 - r9;
|
||||
value7 = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1;
|
||||
length = items2.length;
|
||||
if (value7 < length) {
|
||||
r2 = value7;
|
||||
continue;
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
const Object = global.Object;
|
||||
const value8 = Object.entries(object2);
|
||||
length = value8.length;
|
||||
const value9 = -1;
|
||||
if (value5 < length) {
|
||||
r5 = value5;
|
||||
r6 = value4;
|
||||
r7 = value9;
|
||||
while (true) {
|
||||
property = value8[r5];
|
||||
value10 = env0_3(property, 2);
|
||||
property = value10[value5];
|
||||
property4 = value10[1];
|
||||
if (property4 > r7) {
|
||||
r6 = property;
|
||||
r7 = property4;
|
||||
}
|
||||
value11 = typeof r5 === 'bigint' ? r5 + 1n : +r5 + 1;
|
||||
length = value8.length;
|
||||
if (value11 < length) {
|
||||
r5 = value11;
|
||||
continue;
|
||||
}
|
||||
r1 = r7;
|
||||
r2 = r6;
|
||||
break;
|
||||
}
|
||||
} else {
|
||||
r1 = value9;
|
||||
r2 = value4;
|
||||
}
|
||||
r1 = r1 > value5 ? r2 : value4;
|
||||
return r1;
|
||||
}
|
||||
|
||||
function sendAVErrorAnalyticsEvent(a0, a1) { // fn#125076, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16396:1839, offset: 0x025cc73f, size: 1048 bytes, params: 3, frame: 24
|
||||
var r9;
|
||||
var r4;
|
||||
var value15;
|
||||
var defaultImport;
|
||||
var maxBy;
|
||||
var value17;
|
||||
var value18;
|
||||
var outboundStats;
|
||||
var value21;
|
||||
const env0_0 = a0;
|
||||
const value2 = undefined;
|
||||
const errorInfo = (require(9235) /* metro dependency 9235: AVError */).getErrorInfo(a0);
|
||||
const voiceChannelId = SelectedChannelStore.getVoiceChannelId();
|
||||
const channelId = 'channelId' in a1 ? a1.channelId : value2;
|
||||
const value5 = null;
|
||||
const r3 = value5 == channelId ? voiceChannelId : channelId;
|
||||
let r8 = value5 != r3 ? r3 : value5;
|
||||
const env0_4 = ChannelStore.getChannel(r8);
|
||||
const streamKey = 'streamKey' in a1 ? a1.streamKey : value2;
|
||||
const mediaContext = 'mediaContext' in a1 ? a1.mediaContext : value2;
|
||||
const env0_6 = 'underlyingError' in a1 ? a1.underlyingError : value2;
|
||||
const env0_7 = 'errorMessage' in a1 ? a1.errorMessage : value2;
|
||||
const env0_8 = 'mediaSessionId' in a1 ? a1.mediaSessionId : value2;
|
||||
const env0_9 = 'rtcConnectionId' in a1 ? a1.rtcConnectionId : value2;
|
||||
const env0_10 = 'videoCodec' in a1 ? a1.videoCodec : value2;
|
||||
const env0_11 = 'videoEncoder' in a1 ? a1.videoEncoder : value2;
|
||||
const env0_12 = 'videoDecoder' in a1 ? a1.videoDecoder : value2;
|
||||
const env0_13 = 'audioCaptureSampleRateMismatchPercent' in a1 ? a1.audioCaptureSampleRateMismatchPercent : value2;
|
||||
const env0_14 = 'audioInputDeviceName' in a1 ? a1.audioInputDeviceName : value2;
|
||||
const env0_15 = 'audioOutputDeviceName' in a1 ? a1.audioOutputDeviceName : value2;
|
||||
const env0_16 = 'videoDeviceName' in a1 ? a1.videoDeviceName : value2;
|
||||
const userId = 'userId' in a1 ? a1.userId : value2;
|
||||
const r5 = value5 != streamKey ? (require(4285) /* metro dependency 4285: StreamKeyUtils */).decodeStreamKey(streamKey) : value5;
|
||||
const r12 = value5 != streamKey ? StreamRTCConnectionStore.getRTCConnection(streamKey) : value5;
|
||||
r8 = value5 != streamKey ? r12 : RTCConnectionStore.getRTCConnection();
|
||||
const r13 = value5 != streamKey ? value5 == r12 || value5 == r12.analyticsContext ? value2 : r12.analyticsContext.streamApplication : value5;
|
||||
const state = ApplicationStreamingSettingsStore.getState();
|
||||
const env0_20 = state.resolution;
|
||||
const env0_21 = state.fps;
|
||||
const runningGameAnalytics = (require(4482) /* metro dependency 4482: GameAnalyticsUtils */).getRunningGameAnalytics(r13);
|
||||
const env0_22 = runningGameAnalytics.gameName;
|
||||
const env0_23 = runningGameAnalytics.gameId;
|
||||
const env0_24 = runningGameAnalytics.exe;
|
||||
const env0_25 = runningGameAnalytics.distributor;
|
||||
const isErrorOutbound = errorInfo.isErrorOutbound;
|
||||
let r7 = value5 != mediaContext ? mediaContext : MediaEngineContextTypes.DEFAULT;
|
||||
const r10 = value5 == r5 ? userId : r5.ownerId;
|
||||
if (value5 != r12) {
|
||||
if (value5 == r12) {
|
||||
r9 = value2;
|
||||
} else {
|
||||
r9 = r12.getVoiceParticipantType();
|
||||
}
|
||||
} else {
|
||||
r7 = isErrorOutbound ? 'sender' : 'receiver';
|
||||
}
|
||||
r9 = value5 == r8 ? value2 : r8.getMediaEngineConnectionId();
|
||||
r7 = value5 != r9 ? r9 : value5;
|
||||
if (value5 == streamKey) {
|
||||
if (isErrorOutbound) {
|
||||
defaultImport = importDefault(22) /* metro dependency 22 */;
|
||||
maxBy = defaultImport.maxBy;
|
||||
r9 = value5 == r8 ? value2 : r8.getOutboundStats();
|
||||
r9 = value5 == r9 ? [] : r9;
|
||||
value17 = Reflect.apply(maxBy, defaultImport, [r9, function(a0) {
|
||||
return a0.num_frames;
|
||||
}]);
|
||||
r7 = value5 != value17 ? value17 : value5;
|
||||
} else if (value5 != r10) {
|
||||
if (value5 != r8) {
|
||||
value15 = r8.getInboundStats(r10);
|
||||
}
|
||||
}
|
||||
} else if (value5 != r5) {
|
||||
value18 = value5 == r8;
|
||||
if (isErrorOutbound) {
|
||||
if (!value18) {
|
||||
outboundStats = r8.getOutboundStats();
|
||||
if (value5 != outboundStats) {
|
||||
value21 = outboundStats.find(_fun125077);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
r4 = value18 ? value2 : r8.getInboundStats(r5.ownerId);
|
||||
}
|
||||
} else if (isErrorOutbound) {
|
||||
defaultImport = importDefault(22) /* metro dependency 22 */;
|
||||
maxBy = defaultImport.maxBy;
|
||||
r9 = value5 == r8 ? value2 : r8.getOutboundStats();
|
||||
r9 = value5 == r9 ? [] : r9;
|
||||
value17 = Reflect.apply(maxBy, defaultImport, [r9, _fun125078]);
|
||||
r7 = value5 != value17 ? value17 : value5;
|
||||
} else if (value5 != r10) {
|
||||
if (value5 != r8) {
|
||||
value15 = r8.getInboundStats(r10);
|
||||
}
|
||||
}
|
||||
getSystemAnalyticsInfo().then(_fun125079);
|
||||
return value2;
|
||||
}
|
||||
|
||||
function _fun125077({quality}) { // fn#125077, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16396:3367, offset: 0x025ccb57, size: 22 bytes, params: 2, frame: 2
|
||||
return quality === SIMULCAST_HQ_QUALITY;
|
||||
}
|
||||
|
||||
function _fun125078(a0) { // fn#125078, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16396:3509, offset: 0x025ccb6d, size: 11 bytes, params: 2, frame: 1
|
||||
return a0.num_frames;
|
||||
}
|
||||
|
||||
function _fun125079(a0) { // fn#125079, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16396:3596, offset: 0x025ccb78, size: 2944 bytes, params: 2, frame: 22
|
||||
var bitrateTarget;
|
||||
var frameRateDecode;
|
||||
var frameRateEncode;
|
||||
var moduleValue;
|
||||
var parseCodecType;
|
||||
var videoStats;
|
||||
var moduleValue2;
|
||||
var parseEncoder;
|
||||
var outboundVideoStats;
|
||||
var moduleValue3;
|
||||
var parseDecoder;
|
||||
var inboundVideoStats;
|
||||
var outboundVideoStats2;
|
||||
var inboundVideoStats2;
|
||||
var outboundVideoStats3;
|
||||
var property;
|
||||
const object2 = {};
|
||||
let binding = env0_0;
|
||||
object2.error_name = binding.valueOf();
|
||||
binding = env0_2;
|
||||
object2.error_code = binding.errorCode;
|
||||
object2.error_severity = binding.severity;
|
||||
object2.error_category = binding.category;
|
||||
const underlyingErrorBinding = underlyingError;
|
||||
const value2 = null;
|
||||
object2.underlying_error = value2 != underlyingErrorBinding ? underlyingError : value2;
|
||||
object2.error_message = value2 != errorMessage ? errorMessage : value2;
|
||||
const value3 = undefined;
|
||||
const guild_id = value2 == env0_4 ? value3 : env0_4.guild_id;
|
||||
object2.guild_id = value2 != guild_id ? guild_id : value2;
|
||||
object2.channel_id = value2 != env0_3 ? env0_3 : value2;
|
||||
const type = value2 == env0_4 ? value3 : env0_4.type;
|
||||
object2.channel_type = value2 != type ? type : value2;
|
||||
object2.rtc_connection_id = value2 != rtcConnectionId ? rtcConnectionId : value2;
|
||||
let r6 = value2 != mediaSessionId ? mediaSessionId : RTCConnectionStore.getMediaSessionId();
|
||||
object2.media_session_id = value2 != r6 ? r6 : value2;
|
||||
const parentMediaSessionId = value2 == env0_18 ? value3 : env0_18.parentMediaSessionId;
|
||||
object2.parent_media_session_id = value2 != parentMediaSessionId ? parentMediaSessionId : value2;
|
||||
object2.context = value2 != mediaContext ? mediaContext : value2;
|
||||
const rTCConnection = RTCConnectionStore.getRTCConnection();
|
||||
let r7 = value2 == rTCConnection ? value3 : rTCConnection.getVoiceVersion();
|
||||
object2.voice_backend_version = value2 != r7 ? r7 : value2;
|
||||
const rTCConnection2 = RTCConnectionStore.getRTCConnection();
|
||||
r7 = value2 == rTCConnection2 ? value3 : rTCConnection2.getRtcWorkerVersion();
|
||||
object2.rtc_worker_backend_version = value2 != r7 ? r7 : value2;
|
||||
const getRegion = RTCRegionStore.getRegion;
|
||||
const getHostname = RTCConnectionStore.getHostname;
|
||||
const value11 = Reflect.apply(getRegion, RTCRegionStore, [Reflect.apply(getHostname, RTCConnectionStore, [])]);
|
||||
object2.guild_region = value2 != value11 ? value11 : value2;
|
||||
const hostname = RTCConnectionStore.getHostname();
|
||||
object2.hostname = value2 != hostname ? hostname : value2;
|
||||
r7 = value2 == env0_19 ? value3 : env0_19.getDurationSeconds();
|
||||
object2.duration = value2 != r7 ? r7 : value2;
|
||||
object2.participant_type = value2 != env0_29 ? env0_29 : value2;
|
||||
binding = env0_1;
|
||||
const num_frames = value2 == binding ? value3 : binding.num_frames;
|
||||
const value14 = 0;
|
||||
object2.num_frames = value2 != num_frames ? num_frames : value14;
|
||||
binding = env0_1;
|
||||
const num_packets = value2 == binding ? value3 : binding.num_packets;
|
||||
object2.num_packets = value2 != num_packets ? num_packets : value14;
|
||||
binding = env0_1;
|
||||
const num_bytes = value2 == binding ? value3 : binding.num_bytes;
|
||||
object2.num_bytes = value2 != num_bytes ? num_bytes : value14;
|
||||
const videoStats2 = getVideoStats(isErrorOutbound, env0_30, env0_28);
|
||||
const packetsLost = value2 == videoStats2 ? value3 : videoStats2.packetsLost;
|
||||
object2.num_packets_lost = value2 != packetsLost ? packetsLost : value14;
|
||||
if (value2 != videoCodec) {
|
||||
r7 = videoCodec;
|
||||
} else {
|
||||
moduleValue = require(7130) /* metro dependency 7130: VideoQualityStats */;
|
||||
parseCodecType = moduleValue.parseCodecType;
|
||||
videoStats = getVideoStats(isErrorOutbound, env0_30, env0_28);
|
||||
r7 = Reflect.apply(parseCodecType, moduleValue, [value2 == videoStats ? value3 : videoStats.codec.name]);
|
||||
}
|
||||
object2.video_codec = value2 != r7 ? r7 : value2;
|
||||
if (value2 != videoEncoder) {
|
||||
r7 = videoEncoder;
|
||||
} else {
|
||||
moduleValue2 = require(7130) /* metro dependency 7130: VideoQualityStats */;
|
||||
parseEncoder = moduleValue2.parseEncoder;
|
||||
outboundVideoStats = getOutboundVideoStats(env0_30);
|
||||
r7 = Reflect.apply(parseEncoder, moduleValue2,
|
||||
[value2 == outboundVideoStats ? value3 : outboundVideoStats.encoderImplementationName]);
|
||||
}
|
||||
object2.video_encoder = value2 != r7 ? r7 : value2;
|
||||
if (value2 != videoDecoder) {
|
||||
r7 = videoDecoder;
|
||||
} else {
|
||||
moduleValue3 = require(7130) /* metro dependency 7130: VideoQualityStats */;
|
||||
parseDecoder = moduleValue3.parseDecoder;
|
||||
inboundVideoStats = getInboundVideoStats(env0_30, env0_28);
|
||||
r7 = Reflect.apply(parseDecoder, moduleValue3,
|
||||
[value2 == inboundVideoStats ? value3 : inboundVideoStats.decoderImplementationName]);
|
||||
}
|
||||
object2.video_decoder = value2 != r7 ? r7 : value2;
|
||||
object2.audio_capture_sample_rate_mismatch_percent = value2 != audioCaptureSampleRateMismatchPercent ? audioCaptureSampleRateMismatchPercent : value2;
|
||||
const WindowVisibilityVideoManager = (require(10682) /* metro dependency 10682: WindowVisibilityVideoManager */).WindowVisibilityVideoManager;
|
||||
object2.incoming_video_stopped_for_occlusion = !WindowVisibilityVideoManager.isIncomingVideoEnabled();
|
||||
const videoStats3 = getVideoStats(isErrorOutbound, env0_30, env0_28);
|
||||
const bitrate = value2 == videoStats3 ? value3 : videoStats3.bitrate;
|
||||
object2.bitrate = value2 != bitrate ? bitrate : value2;
|
||||
if (isErrorOutbound) {
|
||||
outboundVideoStats2 = getOutboundVideoStats(env0_30);
|
||||
bitrateTarget = value2 == outboundVideoStats2 ? value3 : outboundVideoStats2.bitrateTarget;
|
||||
r6 = value2 != bitrateTarget ? bitrateTarget : value2;
|
||||
} else {
|
||||
r6 = value2;
|
||||
}
|
||||
object2.target_bitrate = r6;
|
||||
isErrorOutboundBinding = isErrorOutbound;
|
||||
binding = env0_27;
|
||||
if (isErrorOutboundBinding) {
|
||||
outboundVideoStats3 = getOutboundVideoStats(binding);
|
||||
frameRateEncode = value2 == outboundVideoStats3 ? value3 : outboundVideoStats3.frameRateEncode;
|
||||
r7 = value2 != frameRateEncode ? frameRateEncode : value2;
|
||||
} else {
|
||||
inboundVideoStats2 = getInboundVideoStats(binding, env0_28);
|
||||
frameRateDecode = value2 == inboundVideoStats2 ? value3 : inboundVideoStats2.frameRateDecode;
|
||||
r7 = value2 != frameRateDecode ? frameRateDecode : value2;
|
||||
}
|
||||
object2.fps = value2 != r7 ? r7 : value2;
|
||||
binding = env0_27;
|
||||
const STREAM = MediaEngineContextTypes.STREAM;
|
||||
object2.target_fps = binding !== STREAM ? value2 : isErrorOutbound ? fps : value2;
|
||||
const ownerId = value2 == env0_17 ? value3 : env0_17.ownerId;
|
||||
object2.sender_user_id = value2 != ownerId ? ownerId : value2;
|
||||
r7 = value2 == env0_18 ? value3 : env0_18.getRegion();
|
||||
object2.stream_region = value2 != r7 ? r7 : value2;
|
||||
object2.stream_source_type = isErrorOutbound && value2 != (value2 == env0_18 || value2 == env0_18.analyticsContext ? value3 : env0_18.analyticsContext.streamSourceType) ? value2 == env0_18 || value2 == env0_18.analyticsContext ? value3 : env0_18.analyticsContext.streamSourceType : value2;
|
||||
const numViewers = value2 == env0_18 || value2 == env0_18.analyticsContext ? value3 : env0_18.analyticsContext.numViewers;
|
||||
object2.num_stream_viewers = value2 != numViewers ? numViewers : value2;
|
||||
object2.video_input_resolution_height = isErrorOutbound && value2 != resolution ? resolution : value2;
|
||||
object2.video_input_frame_rate = isErrorOutbound && value2 != fps ? fps : value2;
|
||||
object2.screenshare_capture_method = getCurrentScreenshareCaptureMethod(env0_30);
|
||||
object2.share_application_name = value2 != gameName ? gameName : value2;
|
||||
object2.share_application_id = value2 != gameId ? gameId : value2;
|
||||
object2.share_application_executable = value2 != exe ? exe : value2;
|
||||
object2.share_application_distributor = value2 != distributor ? distributor : value2;
|
||||
const cpu_brand = value2 == a0 ? value3 : a0.cpu_brand;
|
||||
object2.cpu_brand = value2 != cpu_brand ? cpu_brand : value2;
|
||||
const cpu_vendor = value2 == a0 ? value3 : a0.cpu_vendor;
|
||||
object2.cpu_vendor = value2 != cpu_vendor ? cpu_vendor : value2;
|
||||
const cpu_memory = value2 == a0 ? value3 : a0.cpu_memory;
|
||||
object2.cpu_memory = value2 != cpu_memory ? cpu_memory : value2;
|
||||
const gpu_brand = value2 == a0 ? value3 : a0.gpu_brand;
|
||||
object2.gpu_brand = value2 != gpu_brand ? gpu_brand : value2;
|
||||
const gpu_count = value2 == a0 ? value3 : a0.gpu_count;
|
||||
object2.gpu_count = value2 != gpu_count ? gpu_count : value2;
|
||||
const gpu_memory = value2 == a0 ? value3 : a0.gpu_memory;
|
||||
object2.gpu_memory = value2 != gpu_memory ? gpu_memory : value2;
|
||||
const gpu_device_vendor_id = value2 == a0 ? value3 : a0.gpu_device_vendor_id;
|
||||
object2.gpu_device_vendor_id = value2 != gpu_device_vendor_id ? gpu_device_vendor_id : value2;
|
||||
const gpu_device_device_id = value2 == a0 ? value3 : a0.gpu_device_device_id;
|
||||
object2.gpu_device_device_id = value2 != gpu_device_device_id ? gpu_device_device_id : value2;
|
||||
const gpu_device_sub_sys_id = value2 == a0 ? value3 : a0.gpu_device_sub_sys_id;
|
||||
object2.gpu_device_sub_sys_id = value2 != gpu_device_sub_sys_id ? gpu_device_sub_sys_id : value2;
|
||||
const gpu_device_revision = value2 == a0 ? value3 : a0.gpu_device_revision;
|
||||
object2.gpu_device_revision = value2 != gpu_device_revision ? gpu_device_revision : value2;
|
||||
const gpu_driver_version = value2 == a0 ? value3 : a0.gpu_driver_version;
|
||||
let r3 = value2 != gpu_driver_version ? gpu_driver_version : value2;
|
||||
object2.gpu_driver_version = r3;
|
||||
const currentCPUUsagePercent = (importDefault(5256) /* metro dependency 5256: ProcessUtilsNative */).getCurrentCPUUsagePercent();
|
||||
object2.cpu_usage = value2 != currentCPUUsagePercent ? currentCPUUsagePercent : value2;
|
||||
const currentMemoryUsageKB = (importDefault(5256) /* metro dependency 5256: ProcessUtilsNative */).getCurrentMemoryUsageKB();
|
||||
object2.memory_usage = value2 != currentMemoryUsageKB ? currentMemoryUsageKB : value2;
|
||||
object2.outbound_bitrate_estimate = getLatestOutboundBitrateEstimate(env0_30);
|
||||
object2.inbound_bitrate_estimate = getLatestInboundBitrateEstimate(env0_30);
|
||||
object2.hardware_enabled = MediaEngineStore.getHardwareEncoding();
|
||||
if (value2 != audioInputDeviceName) {
|
||||
r3 = audioInputDeviceName;
|
||||
} else {
|
||||
property = MediaEngineStore.getInputDevices()[MediaEngineStore.getInputDeviceId()];
|
||||
r3 = value2 == property ? value3 : property.name;
|
||||
}
|
||||
object2.audio_input_device_name = r3;
|
||||
if (value2 != audioOutputDeviceName) {
|
||||
r3 = audioOutputDeviceName;
|
||||
} else {
|
||||
property = MediaEngineStore.getOutputDevices()[MediaEngineStore.getOutputDeviceId()];
|
||||
r3 = value2 == property ? value3 : property.name;
|
||||
}
|
||||
object2.audio_output_device_name = r3;
|
||||
if (value2 != videoDeviceName) {
|
||||
r3 = videoDeviceName;
|
||||
} else {
|
||||
property = MediaEngineStore.getVideoDevices()[MediaEngineStore.getVideoDeviceId()];
|
||||
r3 = value2 == property ? value3 : property.name;
|
||||
}
|
||||
object2.video_device_name = r3;
|
||||
object2.audio_subsystem = MediaEngineStore.getMediaEngine().getAudioSubsystem();
|
||||
let getSettings = MediaEngineStore.getSettings;
|
||||
object2.automatic_audio_subsystem = Reflect.apply(getSettings, MediaEngineStore, []).automaticAudioSubsystem;
|
||||
object2.audio_layer = MediaEngineStore.getMediaEngine().getAudioLayer();
|
||||
getSettings = MediaEngineStore.getSettings;
|
||||
object2.audio_input_mode = Reflect.apply(getSettings, MediaEngineStore, []).mode;
|
||||
getSettings = MediaEngineStore.getSettings;
|
||||
object2.automatic_audio_input_sensitivity_enabled = Reflect.apply(getSettings, MediaEngineStore,
|
||||
[]).modeOptions.autoThreshold;
|
||||
getSettings = MediaEngineStore.getSettings;
|
||||
object2.audio_input_sensitivity = Reflect.apply(getSettings, MediaEngineStore, []).modeOptions.threshold;
|
||||
object2.echo_cancellation_enabled = MediaEngineStore.getEchoCancellation();
|
||||
object2.noise_suppression_enabled = MediaEngineStore.getNoiseSuppression();
|
||||
object2.noise_cancellation_enabled = MediaEngineStore.getNoiseCancellation();
|
||||
object2.automatic_gain_control_enabled = MediaEngineStore.getAutomaticGainControl();
|
||||
object2.sidechain_compression_enabled = MediaEngineStore.getSidechainCompression();
|
||||
object2.input_volume = MediaEngineStore.getInputVolume();
|
||||
object2.output_volume = MediaEngineStore.getOutputVolume();
|
||||
let Object = global.Object;
|
||||
let keys = Object.keys;
|
||||
const getInputDevices = MediaEngineStore.getInputDevices;
|
||||
object2.audio_input_device_count = Reflect.apply(keys, Object, [Reflect.apply(getInputDevices, MediaEngineStore,
|
||||
[])]).length;
|
||||
Object = global.Object;
|
||||
keys = Object.keys;
|
||||
const getOutputDevices = MediaEngineStore.getOutputDevices;
|
||||
object2.audio_output_device_count = Reflect.apply(keys, Object, [Reflect.apply(getOutputDevices, MediaEngineStore,
|
||||
[])]).length;
|
||||
object2.app_hardware_acceleration_enabled = (importDefault(4488) /* metro dependency 4488: CrossPlatformNativeUtilsNative */).getAppHardwareAccelerationEnabled();
|
||||
let value = MediaEngineStore.getInputDeviceOSMuted();
|
||||
object2.input_device_os_muted = value2 != value ? value : value2;
|
||||
value = MediaEngineStore.getInputDeviceOSVolume();
|
||||
object2.input_device_os_volume = value2 != value ? value : value2;
|
||||
value = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
|
||||
const track = value.track;
|
||||
const AV_ERROR_REPORTED = AnalyticEvents.AV_ERROR_REPORTED;
|
||||
Reflect.apply(track, value, [AV_ERROR_REPORTED, object2]);
|
||||
return value3;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,67 @@
|
||||
/* Metro module 16170; source: modules/errors/av_errors/AVErrorContext.tsx; dependencies: [4259, 4294, 1934, 4395, 4406, 4285, 2] */
|
||||
function _fun124993(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#124993, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16378:6, offset: 0x025ca271, size: 194 bytes, params: 8, frame: 20
|
||||
const env0_0 = require;
|
||||
const closure = getCommonErrorContext;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const mediaEngineStore = importDefault(4259) /* metro dependency 4259: MediaEngineStore */;
|
||||
const rtcConnectionStore = importDefault(4294) /* metro dependency 4294: RTCConnectionStore */;
|
||||
const selectedChannelStore = importDefault(1934) /* metro dependency 1934: SelectedChannelStore */;
|
||||
const streamRTCConnectionStore = importDefault(4395) /* metro dependency 4395: StreamRTCConnectionStore */;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/errors/av_errors/AVErrorContext.tsx');
|
||||
exports.getVoiceChannelErrorContext = getVoiceChannelErrorContext;
|
||||
exports.getStreamErrorContext = getStreamErrorContext;
|
||||
exports.getCommonErrorContext = closure;
|
||||
}
|
||||
|
||||
function getCommonErrorContext() { // fn#124994, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16378:136, offset: 0x025ca333, size: 162 bytes, params: 1, frame: 14
|
||||
const object2 = {};
|
||||
const videoDevices = MediaEngineStore.getVideoDevices();
|
||||
const getVideoDeviceId = MediaEngineStore.getVideoDeviceId;
|
||||
let property = videoDevices[Reflect.apply(getVideoDeviceId, MediaEngineStore, [])];
|
||||
const value3 = undefined;
|
||||
object2.videoDeviceName = property == null ? value3 : property.name;
|
||||
const inputDevices = MediaEngineStore.getInputDevices();
|
||||
const getInputDeviceId = MediaEngineStore.getInputDeviceId;
|
||||
property = inputDevices[Reflect.apply(getInputDeviceId, MediaEngineStore, [])];
|
||||
object2.audioInputDeviceName = property == null ? value3 : property.name;
|
||||
const outputDevices = MediaEngineStore.getOutputDevices();
|
||||
const getOutputDeviceId = MediaEngineStore.getOutputDeviceId;
|
||||
property = outputDevices[Reflect.apply(getOutputDeviceId, MediaEngineStore, [])];
|
||||
object2.audioOutputDeviceName = property == null ? value3 : property.name;
|
||||
return object2;
|
||||
}
|
||||
|
||||
function getVoiceChannelErrorContext() { // fn#124995, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16378:553, offset: 0x025ca3d5, size: 143 bytes, params: 1, frame: 16
|
||||
const voiceChannelId = SelectedChannelStore.getVoiceChannelId();
|
||||
const object2 = {};
|
||||
const value3 = voiceChannelId != null;
|
||||
const value4 = undefined;
|
||||
object2.channelId = value3 ? voiceChannelId : value4;
|
||||
object2.mediaSessionId = RTCConnectionStore.getMediaSessionId() ?? value4;
|
||||
object2.rtcConnectionId = RTCConnectionStore.getRTCConnectionId();
|
||||
const MediaEngineContextTypes = (require(4406) /* metro dependency 4406: mediaEngine */).MediaEngineContextTypes;
|
||||
const DEFAULT = MediaEngineContextTypes.DEFAULT;
|
||||
object2.mediaContext = DEFAULT;
|
||||
copyDataProperties(object2, getCommonErrorContext(), value3);
|
||||
return object2;
|
||||
}
|
||||
|
||||
function getStreamErrorContext(a0) { // fn#124996, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16378:857, offset: 0x025ca464, size: 196 bytes, params: 2, frame: 19
|
||||
const value2 = undefined;
|
||||
const {channelId, ownerId} = (require(4285) /* metro dependency 4285: StreamKeyUtils */).decodeStreamKey(a0);
|
||||
const rTCConnection = StreamRTCConnectionStore.getRTCConnection(a0);
|
||||
const object2 = {channelId: channelId};
|
||||
const r8 = rTCConnection == null ? value2 : rTCConnection.getMediaSessionId();
|
||||
const value6 = r8 != null;
|
||||
object2.mediaSessionId = value6 ? r8 : value2;
|
||||
object2.rtcConnectionId = rTCConnection == null ? value2 : rTCConnection.getRTCConnectionId();
|
||||
const MediaEngineContextTypes = (require(4406) /* metro dependency 4406: mediaEngine */).MediaEngineContextTypes;
|
||||
const STREAM = MediaEngineContextTypes.STREAM;
|
||||
object2.mediaContext = STREAM;
|
||||
object2.streamKey = a0;
|
||||
object2.userId = ownerId;
|
||||
copyDataProperties(object2, getCommonErrorContext(), value6);
|
||||
return object2;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,567 @@
|
||||
/* Metro module 16167; source: modules/errors/av_errors/AVErrorManager.tsx; dependencies: [29, 6, 7, 15, 17, 18, 4492, 1934, 4297, 10672, 3, 16168, 9235, 694, 16188, 4860, 2] */
|
||||
function _fun124976(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#124976, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16375:6, offset: 0x025c934d, size: 410 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const _arrayLikeToArray_124982 = function(a0, a1) {
|
||||
var r0;
|
||||
var r1;
|
||||
var r2;
|
||||
var value3;
|
||||
var length;
|
||||
var value5;
|
||||
var value = undefined;
|
||||
var value2 = value == null;
|
||||
reducibleJoin2: while (true) {
|
||||
if (value2) {
|
||||
r0 = value2;
|
||||
break reducibleJoin2;
|
||||
}
|
||||
value3 = value > a0.length;
|
||||
r0 = value3;
|
||||
break reducibleJoin2;
|
||||
}
|
||||
reducibleJoin4: while (true) {
|
||||
if (r0) {
|
||||
length = a0.length;
|
||||
r1 = length;
|
||||
break reducibleJoin4;
|
||||
}
|
||||
r1 = value;
|
||||
break reducibleJoin4;
|
||||
}
|
||||
value = (0, global.Array)(r1);
|
||||
var value4 = 0;
|
||||
if (value4 < r1) {
|
||||
r2 = value4;
|
||||
reducibleLoop5: while (true) {
|
||||
value[r2] = a0[r2];
|
||||
value5 = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1;
|
||||
if (value5 < r1) {
|
||||
r2 = value5;
|
||||
continue reducibleLoop5;
|
||||
}
|
||||
break reducibleLoop5;
|
||||
}
|
||||
}
|
||||
return value;
|
||||
};
|
||||
const setDifference = function(a0, a1) {
|
||||
var r2;
|
||||
var value6;
|
||||
var property = global.Set;
|
||||
var value2 = new property();
|
||||
var value4 = _createForOfIteratorHelperLoose_124980(a0);
|
||||
var value5 = value4();
|
||||
if (!value5.done) {
|
||||
r2 = value5;
|
||||
while (true) {
|
||||
property = r2.value;
|
||||
if (!a1.has(property)) {
|
||||
value2.add(property);
|
||||
}
|
||||
value6 = value4();
|
||||
if (value6.done) {
|
||||
break;
|
||||
}
|
||||
r2 = value6;
|
||||
continue;
|
||||
}
|
||||
}
|
||||
return value2;
|
||||
};
|
||||
const env0_3 = ['type'];
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_4 = importDefault(29) /* metro dependency 29 */;
|
||||
const env0_5 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_6 = importDefault(7) /* metro dependency 7 */;
|
||||
const env0_7 = importDefault(15) /* metro dependency 15 */;
|
||||
const env0_8 = importDefault(17) /* metro dependency 17 */;
|
||||
const env0_9 = importDefault(18) /* metro dependency 18 */;
|
||||
const applicationStreamingStore = importDefault(4492) /* metro dependency 4492: ApplicationStreamingStore */;
|
||||
const selectedChannelStore = importDefault(1934) /* metro dependency 1934: SelectedChannelStore */;
|
||||
const voiceStateStore = importDefault(4297) /* metro dependency 4297: VoiceStateStore */;
|
||||
const avErrorStore = importDefault(10672) /* metro dependency 10672: AVErrorStore */;
|
||||
let value = importDefault(3) /* metro dependency 3: Logger */;
|
||||
value = new value('AVErrorManager');
|
||||
value = importDefault(4860) /* metro dependency 4860: AutomaticLifecycleManager */;
|
||||
value = _fun124985(value);
|
||||
value = new value();
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/errors/av_errors/AVErrorManager.tsx');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
function _isNativeReflectConstruct_124977() { // fn#124977, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16375:215, offset: 0x025c94e7, size: 98 bytes, params: 1, frame: 18
|
||||
var Boolean;
|
||||
var prototype;
|
||||
var valueOf;
|
||||
var call;
|
||||
var Reflect;
|
||||
var construct;
|
||||
var closure;
|
||||
var value;
|
||||
var error;
|
||||
try {
|
||||
Boolean = global.Boolean;
|
||||
prototype = Boolean.prototype;
|
||||
valueOf = prototype.valueOf;
|
||||
call = valueOf.call;
|
||||
Reflect = global.Reflect;
|
||||
construct = Reflect.construct;
|
||||
Boolean = global.Boolean;
|
||||
closure = function() {
|
||||
};
|
||||
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
|
||||
value = Reflect.apply(call, valueOf, [value]);
|
||||
var result = !value;
|
||||
} catch (error) {
|
||||
}
|
||||
return (_isNativeReflectConstruct_124977_isNativeReflectConstruct = function() {
|
||||
return !!result;
|
||||
})();
|
||||
}
|
||||
|
||||
function _createForOfIteratorHelperLoose_124980(a0, a1) { // fn#124980, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16375:408, offset: 0x025c9549, size: 372 bytes, params: 3, frame: 20
|
||||
var r6;
|
||||
var r9;
|
||||
var r5;
|
||||
var value3;
|
||||
var regexp;
|
||||
const env0_0 = a0;
|
||||
const Symbol = global.Symbol;
|
||||
let value = typeof Symbol !== 'undefined';
|
||||
let r1 = value && a0[global.Symbol.iterator];
|
||||
r1 = !r1 ? a0['@@iterator'] : r1;
|
||||
if (r1) {
|
||||
value = r1.call(a0);
|
||||
return value.next.bind(value);
|
||||
}
|
||||
const Array = global.Array;
|
||||
if (Array.isArray(a0)) {
|
||||
if (r1) {
|
||||
}
|
||||
return _fun124981;
|
||||
}
|
||||
value = undefined;
|
||||
if (a0) {
|
||||
if (typeof a0 === 'string') {
|
||||
value = _arrayLikeToArray_124982(a0, value);
|
||||
r5 = value;
|
||||
} else {
|
||||
value3 = ({}).toString.call(a0).slice(8, -1);
|
||||
r6 = value3 === 'Object' && a0.constructor;
|
||||
r9 = r6 ? a0.constructor.name : value3;
|
||||
if (r9 === 'Map') {
|
||||
r6 = global.Array.from(a0);
|
||||
} else if (r9 === 'Set') {
|
||||
r6 = global.Array.from(a0);
|
||||
} else if (r9 === 'Arguments') {
|
||||
value = _arrayLikeToArray_124982(a0, value);
|
||||
r6 = value;
|
||||
} else {
|
||||
regexp = RegExp('^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$', '');
|
||||
if (regexp.test(r9)) {
|
||||
value = _arrayLikeToArray_124982(a0, value);
|
||||
r6 = value;
|
||||
} else {
|
||||
r6 = value;
|
||||
}
|
||||
}
|
||||
r5 = r6;
|
||||
}
|
||||
} else {
|
||||
r5 = value;
|
||||
}
|
||||
if (r5) {
|
||||
if (r5) {
|
||||
}
|
||||
return _fun124981;
|
||||
}
|
||||
const TypeError = global.TypeError;
|
||||
throw new TypeError('Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.');
|
||||
}
|
||||
|
||||
function makeErrorKey(a0) { // fn#124984, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16375:1499, offset: 0x025c9726, size: 98 bytes, params: 2, frame: 15
|
||||
const value = undefined;
|
||||
const ErrorDefinitions = (require(16168) /* metro dependency 16168: definitions */).ErrorDefinitions;
|
||||
const property = ErrorDefinitions[a0.type];
|
||||
return '' + a0.type + ':' + (property == null ? value : property.makeErrorContextKey(a0));
|
||||
}
|
||||
|
||||
function _fun124985(a0) { // fn#124985, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16375:1673, offset: 0x025c9788, size: 99 bytes, params: 2, frame: 16
|
||||
const closure = AVErrorManager;
|
||||
env0_9(closure, a0);
|
||||
return env0_6(closure, [{key: 'updateActiveErrors', value: value_124987}, {key: 'handleReportAVError',
|
||||
value: value_124988}]);
|
||||
}
|
||||
|
||||
function AVErrorManager(a0) { // fn#124986, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16375:1685, offset: 0x025c97eb, size: 417 bytes, params: 2, frame: 19
|
||||
var r0;
|
||||
var Reflect;
|
||||
let value = copyRestArgs(0, undefined);
|
||||
let binding = env1_5;
|
||||
binding(this, AVErrorManager);
|
||||
const items = [];
|
||||
arraySpread(items, value, 0, items);
|
||||
value = env1_8(AVErrorManager);
|
||||
binding = env1_7;
|
||||
if (_isNativeReflectConstruct_124977()) {
|
||||
Reflect = global.Reflect;
|
||||
value = Reflect.construct(value, items, env1_8(this).constructor);
|
||||
r0 = value;
|
||||
} else {
|
||||
value = value.apply(this, items);
|
||||
r0 = value;
|
||||
}
|
||||
value = binding(this, r0);
|
||||
value.actions = {MEDIA_ENGINE_SET_AUDIO_ENABLED: value.updateActiveErrors,
|
||||
AUDIO_INPUT_DETECTED: value.updateActiveErrors, AUDIO_SET_DISPLAY_SILENCE_WARNING: value.updateActiveErrors,
|
||||
CERTIFIED_DEVICES_SET: value.updateActiveErrors, AUDIO_SET_INPUT_DEVICE: value.updateActiveErrors,
|
||||
AUDIO_SET_OUTPUT_DEVICE: value.updateActiveErrors, MEDIA_ENGINE_DEVICES: value.updateActiveErrors,
|
||||
RTC_CONNECTION_STATE: value.updateActiveErrors, VOICE_STATE_UPDATES: value.updateActiveErrors,
|
||||
MEDIA_ENGINE_SET_GO_LIVE_SOURCE: value.updateActiveErrors,
|
||||
MEDIA_ENGINE_SOUNDSHARE_FAILED: value.updateActiveErrors,
|
||||
MEDIA_ENGINE_NOISE_CANCELLATION_ERROR: value.updateActiveErrors,
|
||||
MEDIA_ENGINE_VOICE_ACTIVITY_DETECTION_ERROR: value.updateActiveErrors,
|
||||
MEDIA_ENGINE_VIDEO_FILTER_ERROR: value.updateActiveErrors,
|
||||
MEDIA_ENGINE_VIDEO_STATE_CHANGED: value.updateActiveErrors,
|
||||
NATIVE_SCREEN_SHARE_PICKER_UPDATE: value.updateActiveErrors,
|
||||
NATIVE_SCREEN_SHARE_PICKER_ERROR: value.updateActiveErrors, MEDIA_SESSION_JOINED: value.updateActiveErrors,
|
||||
RTC_CONNECTION_UPDATE_ID: value.updateActiveErrors, RTC_CONNECTION_VIDEO: value.updateActiveErrors,
|
||||
RTC_CONNECTION_REMOTE_VIDEO_SINK_WANTS: value.updateActiveErrors,
|
||||
VIDEO_STREAM_READY_TIMEOUT: value.updateActiveErrors,
|
||||
CLEAR_VIDEO_STREAM_READY_TIMEOUT: value.updateActiveErrors, REPORT_AV_ERROR: value.handleReportAVError,
|
||||
STREAM_CLOSE: value.updateActiveErrors};
|
||||
return value;
|
||||
}
|
||||
|
||||
function value_124987() { // fn#124987, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16375:3219, offset: 0x025c998c, size: 815 bytes, params: 1, frame: 28
|
||||
var r12;
|
||||
var r7;
|
||||
var r14;
|
||||
var r3;
|
||||
var getVoiceStateForChannel;
|
||||
var value4;
|
||||
var property;
|
||||
var getActiveErrors;
|
||||
var value10;
|
||||
var value11;
|
||||
var value12;
|
||||
var done;
|
||||
var value13;
|
||||
var set;
|
||||
var value14;
|
||||
var value15;
|
||||
var binding;
|
||||
var HermesInternal;
|
||||
var concat;
|
||||
var size;
|
||||
var Set;
|
||||
var keys;
|
||||
var value17;
|
||||
var value18;
|
||||
var value19;
|
||||
var value20;
|
||||
var value21;
|
||||
var value22;
|
||||
var size2;
|
||||
var value23;
|
||||
var value24;
|
||||
var value25;
|
||||
var get;
|
||||
var value26;
|
||||
var moduleValue;
|
||||
var reportAVError;
|
||||
var value27;
|
||||
var size3;
|
||||
var value28;
|
||||
var value29;
|
||||
var value30;
|
||||
var value31;
|
||||
var type;
|
||||
var value32;
|
||||
var info;
|
||||
var JSON;
|
||||
var stringify;
|
||||
var value33;
|
||||
var value34;
|
||||
var dispatch;
|
||||
let value = environment.__proto__;
|
||||
const voiceChannelId = SelectedChannelStore.getVoiceChannelId();
|
||||
const value3 = null;
|
||||
const r13 = value3 != voiceChannelId ? voiceChannelId : value3;
|
||||
reducibleJoin3: while (true) {
|
||||
if (value3 != r13) {
|
||||
getVoiceStateForChannel = VoiceStateStore.getVoiceStateForChannel;
|
||||
value4 = Reflect.apply(getVoiceStateForChannel, VoiceStateStore, [r13]);
|
||||
if (value3 != value4) {
|
||||
r12 = value4;
|
||||
break reducibleJoin3;
|
||||
}
|
||||
r12 = value3;
|
||||
break reducibleJoin3;
|
||||
}
|
||||
r12 = value3;
|
||||
break reducibleJoin3;
|
||||
}
|
||||
const allActiveStreams = ApplicationStreamingStore.getAllActiveStreams();
|
||||
let Map = global.Map;
|
||||
let prototype = Map.prototype;
|
||||
const value6 = Object.create(prototype, {constructor: {value: Map}});
|
||||
const map = new Map();
|
||||
const value7 = map instanceof Object ? map : value6;
|
||||
const Object = global.Object;
|
||||
const values = Object.values;
|
||||
const ErrorDefinitions = (require(16168) /* metro dependency 16168: definitions */).ErrorDefinitions;
|
||||
const value8 = Reflect.apply(values, Object, [ErrorDefinitions]);
|
||||
let length = value8.length;
|
||||
const value9 = 0;
|
||||
if (value9 < length) {
|
||||
r7 = value9;
|
||||
reducibleLoop4: while (true) {
|
||||
property = value8[r7];
|
||||
getActiveErrors = property.getActiveErrors;
|
||||
value10 = Reflect.apply(getActiveErrors, property, [{voiceChannelId: r13, voiceState: r12,
|
||||
activeStreams: allActiveStreams}]);
|
||||
reducibleJoin7: while (true) {
|
||||
if (value3 == value10) {
|
||||
break reducibleJoin7;
|
||||
}
|
||||
value11 = _createForOfIteratorHelperLoose_124980(value10);
|
||||
value12 = value11();
|
||||
done = value12.done;
|
||||
if (done) {
|
||||
break reducibleJoin7;
|
||||
}
|
||||
r14 = value12;
|
||||
reducibleLoop6: while (true) {
|
||||
value13 = r14.value;
|
||||
set = value7.set;
|
||||
Reflect.apply(set, value7, [makeErrorKey(value13), value13]);
|
||||
value14 = value11();
|
||||
done = value14.done;
|
||||
if (done) {
|
||||
break reducibleJoin7;
|
||||
}
|
||||
r14 = value14;
|
||||
continue reducibleLoop6;
|
||||
}
|
||||
}
|
||||
value15 = typeof r7 === 'bigint' ? r7 + 1n : +r7 + 1;
|
||||
length = value8.length;
|
||||
if (value15 < length) {
|
||||
r7 = value15;
|
||||
continue reducibleLoop4;
|
||||
}
|
||||
break reducibleLoop4;
|
||||
}
|
||||
}
|
||||
const activeErrors = AVErrorStore.getActiveErrors();
|
||||
Map = global.Map;
|
||||
if (activeErrors instanceof Map) {
|
||||
size = value7.size;
|
||||
reducibleJoin23: while (true) {
|
||||
reducibleJoin22: while (true) {
|
||||
if (value9 !== size) {
|
||||
Set = global.Set;
|
||||
keys = value7.keys;
|
||||
value17 = Reflect.apply(keys, value7, []);
|
||||
prototype = Set.prototype;
|
||||
value18 = Object.create(prototype, {constructor: {value: Set}});
|
||||
set = new Set();
|
||||
value19 = set instanceof Object ? set : value18;
|
||||
Set = global.Set;
|
||||
keys = activeErrors.keys;
|
||||
value20 = Reflect.apply(keys, activeErrors, []);
|
||||
prototype = Set.prototype;
|
||||
value21 = Object.create(prototype, {constructor: {value: Set}});
|
||||
set = new Set();
|
||||
value22 = set instanceof Object ? set : value21;
|
||||
size = value19.size;
|
||||
size2 = value22.size;
|
||||
reducibleJoin17: while (true) {
|
||||
if (!(size > size2)) {
|
||||
break reducibleJoin17;
|
||||
}
|
||||
value23 = _createForOfIteratorHelperLoose_124980(setDifference(value19, value22));
|
||||
value24 = value23();
|
||||
done = value24.done;
|
||||
if (done) {
|
||||
break reducibleJoin17;
|
||||
}
|
||||
r3 = value24;
|
||||
reducibleLoop14: while (true) {
|
||||
value25 = r3.value;
|
||||
get = value7.get;
|
||||
value26 = Reflect.apply(get, value7, [value25]);
|
||||
reducibleJoin16: while (true) {
|
||||
if (value3 == value26) {
|
||||
break reducibleJoin16;
|
||||
}
|
||||
moduleValue = require(9235) /* metro dependency 9235: AVError */;
|
||||
reportAVError = moduleValue.reportAVError;
|
||||
Reflect.apply(reportAVError, moduleValue, [value26]);
|
||||
break reducibleJoin16;
|
||||
}
|
||||
value27 = value23();
|
||||
done = value27.done;
|
||||
if (done) {
|
||||
break reducibleJoin17;
|
||||
}
|
||||
r3 = value27;
|
||||
continue reducibleLoop14;
|
||||
}
|
||||
}
|
||||
size = value22.size;
|
||||
size3 = value19.size;
|
||||
if (!(size > size3)) {
|
||||
break reducibleJoin22;
|
||||
}
|
||||
value28 = _createForOfIteratorHelperLoose_124980(setDifference(value22, value19));
|
||||
value29 = value28();
|
||||
done = value29.done;
|
||||
if (done) {
|
||||
break reducibleJoin22;
|
||||
}
|
||||
r3 = value29;
|
||||
reducibleLoop19: while (true) {
|
||||
value30 = r3.value;
|
||||
get = activeErrors.get;
|
||||
value31 = Reflect.apply(get, activeErrors, [value30]);
|
||||
reducibleJoin21: while (true) {
|
||||
if (value3 == value31) {
|
||||
break reducibleJoin21;
|
||||
}
|
||||
type = value31.type;
|
||||
binding = env1_4;
|
||||
value32 = binding(value31, env1_3);
|
||||
binding = env1_14;
|
||||
info = binding.info;
|
||||
JSON = global.JSON;
|
||||
stringify = JSON.stringify;
|
||||
value33 = Reflect.apply(stringify, JSON, [value32]);
|
||||
HermesInternal = global.HermesInternal;
|
||||
concat = HermesInternal.concat;
|
||||
Reflect.apply(info, binding, ['Error resolved: ' + type + ' ' + value33]);
|
||||
break reducibleJoin21;
|
||||
}
|
||||
value34 = value28();
|
||||
done = value34.done;
|
||||
if (done) {
|
||||
break reducibleJoin22;
|
||||
}
|
||||
r3 = value34;
|
||||
continue reducibleLoop19;
|
||||
}
|
||||
} else {
|
||||
size = activeErrors.size;
|
||||
if (value9 === size) {
|
||||
break reducibleJoin23;
|
||||
}
|
||||
Set = global.Set;
|
||||
keys = value7.keys;
|
||||
value17 = Reflect.apply(keys, value7, []);
|
||||
prototype = Set.prototype;
|
||||
value18 = Object.create(prototype, {constructor: {value: Set}});
|
||||
set = new Set();
|
||||
value19 = set instanceof Object ? set : value18;
|
||||
Set = global.Set;
|
||||
keys = activeErrors.keys;
|
||||
value20 = Reflect.apply(keys, activeErrors, []);
|
||||
prototype = Set.prototype;
|
||||
value21 = Object.create(prototype, {constructor: {value: Set}});
|
||||
set = new Set();
|
||||
value22 = set instanceof Object ? set : value21;
|
||||
size = value19.size;
|
||||
size2 = value22.size;
|
||||
reducibleJoin17: while (true) {
|
||||
if (!(size > size2)) {
|
||||
break reducibleJoin17;
|
||||
}
|
||||
value23 = _createForOfIteratorHelperLoose_124980(setDifference(value19, value22));
|
||||
value24 = value23();
|
||||
done = value24.done;
|
||||
if (done) {
|
||||
break reducibleJoin17;
|
||||
}
|
||||
r3 = value24;
|
||||
reducibleLoop14: while (true) {
|
||||
value25 = r3.value;
|
||||
get = value7.get;
|
||||
value26 = Reflect.apply(get, value7, [value25]);
|
||||
reducibleJoin16: while (true) {
|
||||
if (value3 == value26) {
|
||||
break reducibleJoin16;
|
||||
}
|
||||
moduleValue = require(9235) /* metro dependency 9235: AVError */;
|
||||
reportAVError = moduleValue.reportAVError;
|
||||
Reflect.apply(reportAVError, moduleValue, [value26]);
|
||||
break reducibleJoin16;
|
||||
}
|
||||
value27 = value23();
|
||||
done = value27.done;
|
||||
if (done) {
|
||||
break reducibleJoin17;
|
||||
}
|
||||
r3 = value27;
|
||||
continue reducibleLoop14;
|
||||
}
|
||||
}
|
||||
size = value22.size;
|
||||
size3 = value19.size;
|
||||
if (!(size > size3)) {
|
||||
break reducibleJoin22;
|
||||
}
|
||||
value28 = _createForOfIteratorHelperLoose_124980(setDifference(value22, value19));
|
||||
value29 = value28();
|
||||
done = value29.done;
|
||||
if (done) {
|
||||
break reducibleJoin22;
|
||||
}
|
||||
r3 = value29;
|
||||
reducibleLoop19: while (true) {
|
||||
value30 = r3.value;
|
||||
get = activeErrors.get;
|
||||
value31 = Reflect.apply(get, activeErrors, [value30]);
|
||||
reducibleJoin21: while (true) {
|
||||
if (value3 == value31) {
|
||||
break reducibleJoin21;
|
||||
}
|
||||
type = value31.type;
|
||||
binding = env1_4;
|
||||
value32 = binding(value31, env1_3);
|
||||
binding = env1_14;
|
||||
info = binding.info;
|
||||
JSON = global.JSON;
|
||||
stringify = JSON.stringify;
|
||||
value33 = Reflect.apply(stringify, JSON, [value32]);
|
||||
HermesInternal = global.HermesInternal;
|
||||
concat = HermesInternal.concat;
|
||||
Reflect.apply(info, binding, ['Error resolved: ' + type + ' ' + value33]);
|
||||
break reducibleJoin21;
|
||||
}
|
||||
value34 = value28();
|
||||
done = value34.done;
|
||||
if (done) {
|
||||
break reducibleJoin22;
|
||||
}
|
||||
r3 = value34;
|
||||
continue reducibleLoop19;
|
||||
}
|
||||
}
|
||||
}
|
||||
value = importDefault(694) /* metro dependency 694: Dispatcher */;
|
||||
dispatch = value.dispatch;
|
||||
Reflect.apply(dispatch, value, [{type: 'ACTIVE_AV_ERRORS_CHANGED', activeErrors: value7}]);
|
||||
break reducibleJoin23;
|
||||
}
|
||||
} else {
|
||||
binding = env1_14;
|
||||
binding.error('existingErrors is not a Map: ' + activeErrors + ' type: ' + global.Object.prototype.toString.call(activeErrors));
|
||||
}
|
||||
}
|
||||
|
||||
function value_124988({error, context}) { // fn#124988, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16375:4312, offset: 0x025c9cbb, size: 52 bytes, params: 2, frame: 14
|
||||
const value = environment.__proto__;
|
||||
(require(16188) /* metro dependency 16188: AVErrorAnalytics */).sendAVErrorAnalyticsEvent(error, context);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,320 @@
|
||||
/* Metro module 10672; source: modules/errors/av_errors/AVErrorStore.tsx; dependencies: [57, 6, 7, 15, 17, 18, 566, 1421, 694, 2] */
|
||||
function _fun82064(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#82064, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10858:6, offset: 0x01ee9c25, size: 384 bytes, params: 8, frame: 20
|
||||
const env0_0 = require;
|
||||
const _arrayLikeToArray_82067 = function(a0, a1) {
|
||||
var r0;
|
||||
var r1;
|
||||
var r2;
|
||||
var value3;
|
||||
var length;
|
||||
var value5;
|
||||
var value = undefined;
|
||||
var value2 = value == null;
|
||||
reducibleJoin2: while (true) {
|
||||
if (value2) {
|
||||
r0 = value2;
|
||||
break reducibleJoin2;
|
||||
}
|
||||
value3 = value > a0.length;
|
||||
r0 = value3;
|
||||
break reducibleJoin2;
|
||||
}
|
||||
reducibleJoin4: while (true) {
|
||||
if (r0) {
|
||||
length = a0.length;
|
||||
r1 = length;
|
||||
break reducibleJoin4;
|
||||
}
|
||||
r1 = value;
|
||||
break reducibleJoin4;
|
||||
}
|
||||
value = (0, global.Array)(r1);
|
||||
var value4 = 0;
|
||||
if (value4 < r1) {
|
||||
r2 = value4;
|
||||
reducibleLoop5: while (true) {
|
||||
value[r2] = a0[r2];
|
||||
value5 = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1;
|
||||
if (value5 < r1) {
|
||||
r2 = value5;
|
||||
continue reducibleLoop5;
|
||||
}
|
||||
break reducibleLoop5;
|
||||
}
|
||||
}
|
||||
return value;
|
||||
};
|
||||
const isAVErrorContextOfType = function(a0, a1) {
|
||||
return a0.type === a1;
|
||||
};
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_2 = importDefault(57) /* metro dependency 57 */;
|
||||
const env0_3 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_4 = importDefault(7) /* metro dependency 7 */;
|
||||
const env0_5 = importDefault(15) /* metro dependency 15 */;
|
||||
const env0_6 = importDefault(17) /* metro dependency 17 */;
|
||||
const env0_7 = importDefault(18) /* metro dependency 18 */;
|
||||
let Map = global.Map;
|
||||
let map = new Map();
|
||||
Map = global.Map;
|
||||
map = new Map();
|
||||
const Store = (importDefault(566) /* metro dependency 566: flux */).Store;
|
||||
_fun82072(Store).displayName = 'AVErrorStore';
|
||||
map = new map(importDefault(694) /* metro dependency 694: Dispatcher */,
|
||||
{ACTIVE_AV_ERRORS_CHANGED: ACTIVE_AV_ERRORS_CHANGED});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/errors/av_errors/AVErrorStore.tsx');
|
||||
exports.default = map;
|
||||
}
|
||||
|
||||
function _createForOfIteratorHelperLoose_82065(a0, a1) { // fn#82065, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10858:160, offset: 0x01ee9da5, size: 372 bytes, params: 3, frame: 20
|
||||
var r6;
|
||||
var r9;
|
||||
var r5;
|
||||
var value3;
|
||||
var regexp;
|
||||
const env0_0 = a0;
|
||||
const Symbol = global.Symbol;
|
||||
let value = typeof Symbol !== 'undefined';
|
||||
let r1 = value && a0[global.Symbol.iterator];
|
||||
r1 = !r1 ? a0['@@iterator'] : r1;
|
||||
if (r1) {
|
||||
value = r1.call(a0);
|
||||
return value.next.bind(value);
|
||||
}
|
||||
const Array = global.Array;
|
||||
if (Array.isArray(a0)) {
|
||||
if (r1) {
|
||||
}
|
||||
return _fun82066;
|
||||
}
|
||||
value = undefined;
|
||||
if (a0) {
|
||||
if (typeof a0 === 'string') {
|
||||
value = _arrayLikeToArray_82067(a0, value);
|
||||
r5 = value;
|
||||
} else {
|
||||
value3 = ({}).toString.call(a0).slice(8, -1);
|
||||
r6 = value3 === 'Object' && a0.constructor;
|
||||
r9 = r6 ? a0.constructor.name : value3;
|
||||
if (r9 === 'Map') {
|
||||
r6 = global.Array.from(a0);
|
||||
} else if (r9 === 'Set') {
|
||||
r6 = global.Array.from(a0);
|
||||
} else if (r9 === 'Arguments') {
|
||||
value = _arrayLikeToArray_82067(a0, value);
|
||||
r6 = value;
|
||||
} else {
|
||||
regexp = RegExp('^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$', '');
|
||||
if (regexp.test(r9)) {
|
||||
value = _arrayLikeToArray_82067(a0, value);
|
||||
r6 = value;
|
||||
} else {
|
||||
r6 = value;
|
||||
}
|
||||
}
|
||||
r5 = r6;
|
||||
}
|
||||
} else {
|
||||
r5 = value;
|
||||
}
|
||||
if (r5) {
|
||||
if (r5) {
|
||||
}
|
||||
return _fun82066;
|
||||
}
|
||||
const TypeError = global.TypeError;
|
||||
throw new TypeError('Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.');
|
||||
}
|
||||
|
||||
function _isNativeReflectConstruct_82068() { // fn#82068, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10858:1070, offset: 0x01ee9f19, size: 98 bytes, params: 1, frame: 18
|
||||
var Boolean;
|
||||
var prototype;
|
||||
var valueOf;
|
||||
var call;
|
||||
var Reflect;
|
||||
var construct;
|
||||
var closure;
|
||||
var value;
|
||||
var error;
|
||||
try {
|
||||
Boolean = global.Boolean;
|
||||
prototype = Boolean.prototype;
|
||||
valueOf = prototype.valueOf;
|
||||
call = valueOf.call;
|
||||
Reflect = global.Reflect;
|
||||
construct = Reflect.construct;
|
||||
Boolean = global.Boolean;
|
||||
closure = function() {
|
||||
};
|
||||
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
|
||||
value = Reflect.apply(call, valueOf, [value]);
|
||||
var result = !value;
|
||||
} catch (error) {
|
||||
}
|
||||
return (_isNativeReflectConstruct_82068_isNativeReflectConstruct = function() {
|
||||
return !!result;
|
||||
})();
|
||||
}
|
||||
|
||||
function _fun82072(a0) { // fn#82072, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10858:1348, offset: 0x01ee9f8c, size: 124 bytes, params: 2, frame: 16
|
||||
const closure = AVErrorStore;
|
||||
env0_7(closure, a0);
|
||||
return env0_4(closure, [{key: 'hasActiveErrorOfType', value: value_82074}, {key: 'getActiveErrors',
|
||||
value: value_82075}, {key: 'getActiveErrorsOfType', value: value_82076}]);
|
||||
}
|
||||
|
||||
function ACTIVE_AV_ERRORS_CHANGED({activeErrors}) { // fn#82077, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10858:2117, offset: 0x01eea0e6, size: 372 bytes, params: 2, frame: 22
|
||||
var r2;
|
||||
var r11;
|
||||
var binding;
|
||||
var prototype;
|
||||
var map;
|
||||
var Set;
|
||||
var value4;
|
||||
var value5;
|
||||
var set;
|
||||
var value6;
|
||||
var value7;
|
||||
var value8;
|
||||
var value9;
|
||||
var moduleValue;
|
||||
var value10;
|
||||
var _createForOfIteratorHelperLoose_82065Binding;
|
||||
var value12;
|
||||
var value13;
|
||||
var done;
|
||||
var value14;
|
||||
var value15;
|
||||
var property;
|
||||
var property2;
|
||||
var get;
|
||||
var type;
|
||||
var value16;
|
||||
var value17;
|
||||
let Map = global.Map;
|
||||
if (activeErrors instanceof Map) {
|
||||
binding = env0_8;
|
||||
Map = global.Map;
|
||||
if (!(binding instanceof Map)) {
|
||||
map = new global.Map();
|
||||
}
|
||||
Set = global.Set;
|
||||
value4 = activeErrors.keys();
|
||||
prototype = Set.prototype;
|
||||
value5 = Object.create(prototype, {constructor: {value: Set}});
|
||||
set = new Set();
|
||||
value6 = set instanceof Object ? set : value5;
|
||||
Set = global.Set;
|
||||
binding = env0_8;
|
||||
value7 = binding.keys();
|
||||
prototype = Set.prototype;
|
||||
value8 = Object.create(prototype, {constructor: {value: Set}});
|
||||
set = new Set();
|
||||
value9 = set instanceof Object ? set : value8;
|
||||
moduleValue = require(1421) /* metro dependency 1421: SetUtils */;
|
||||
if (moduleValue.areSetsEqual(value6, value9)) {
|
||||
return false;
|
||||
}
|
||||
env0_8 = activeErrors;
|
||||
Map = global.Map;
|
||||
prototype = Map.prototype;
|
||||
value10 = Object.create(prototype, {constructor: {value: Map}});
|
||||
map = new Map();
|
||||
env0_9 = map instanceof Object ? map : value10;
|
||||
_createForOfIteratorHelperLoose_82065Binding = _createForOfIteratorHelperLoose_82065;
|
||||
binding = env0_8;
|
||||
value12 = _createForOfIteratorHelperLoose_82065Binding(binding.entries());
|
||||
value13 = value12();
|
||||
done = value13.done;
|
||||
if (!done) {
|
||||
r2 = value13;
|
||||
while (true) {
|
||||
value14 = r2.value;
|
||||
value15 = env0_2(value14, 2);
|
||||
property = value15[0];
|
||||
property2 = value15[1];
|
||||
binding = env0_9;
|
||||
get = binding.get;
|
||||
type = property2.type;
|
||||
value16 = Reflect.apply(get, binding, [type]);
|
||||
r11 = value16 ?? [];
|
||||
r11.push(property);
|
||||
binding = env0_9;
|
||||
set = binding.set;
|
||||
type = property2.type;
|
||||
Reflect.apply(set, binding, [type, r11]);
|
||||
value17 = value12();
|
||||
done = value17.done;
|
||||
if (done) {
|
||||
break;
|
||||
}
|
||||
r2 = value17;
|
||||
continue;
|
||||
}
|
||||
}
|
||||
return undefined;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
function value_82074(a0) { // fn#82074, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10858:1648, offset: 0x01eea008, size: 43 bytes, params: 2, frame: 11
|
||||
const value = environment.__proto__;
|
||||
return (env1_9.get(a0) ?? []).length > 0;
|
||||
}
|
||||
|
||||
function value_82075() { // fn#82075, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10858:1738, offset: 0x01eea033, size: 58 bytes, params: 1, frame: 11
|
||||
var map;
|
||||
const binding = env1_8;
|
||||
const Map = global.Map;
|
||||
if (!(binding instanceof Map)) {
|
||||
map = new global.Map();
|
||||
}
|
||||
return env1_8;
|
||||
}
|
||||
|
||||
function value_82076(a0) { // fn#82076, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10858:1825, offset: 0x01eea06d, size: 121 bytes, params: 2, frame: 19
|
||||
var r2;
|
||||
var r1;
|
||||
var value5;
|
||||
var value6;
|
||||
var value7;
|
||||
var isAVErrorContextOfType2;
|
||||
var value8;
|
||||
const items2 = [];
|
||||
let binding = env1_9;
|
||||
const value2 = binding.get(a0);
|
||||
if (value2 != null) {
|
||||
var value3 = _createForOfIteratorHelperLoose_82065(value2);
|
||||
var value4 = value3();
|
||||
var done = value4.done;
|
||||
if (!done) {
|
||||
r2 = value4;
|
||||
while (true) {
|
||||
value5 = r2.value;
|
||||
binding = env1_8;
|
||||
value6 = binding.get(value5);
|
||||
value7 = value6 != null;
|
||||
if (value7) {
|
||||
isAVErrorContextOfType2 = isAVErrorContextOfType(value6, a0);
|
||||
r1 = isAVErrorContextOfType2;
|
||||
} else {
|
||||
r1 = value7;
|
||||
}
|
||||
if (!r1) {
|
||||
continue;
|
||||
}
|
||||
items2.push(value6);
|
||||
value8 = value3();
|
||||
done = value8.done;
|
||||
if (done) {
|
||||
break;
|
||||
}
|
||||
r2 = value8;
|
||||
continue;
|
||||
}
|
||||
}
|
||||
}
|
||||
return items2;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,35 @@
|
||||
/* Metro module 16173; source: modules/errors/av_errors/AVErrorUtils.tsx; dependencies: [4394, 672, 10682, 2] */
|
||||
function _fun125004(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#125004, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16381:6, offset: 0x025ca9f7, size: 175 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const mediaEngineStatsStore = importDefault(4394) /* metro dependency 4394: MediaEngineStatsStore */;
|
||||
const Millis = (importDefault(672) /* metro dependency 672: Durations */).Millis;
|
||||
const SECOND = Millis.SECOND;
|
||||
const env0_3 = 10 * SECOND;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/errors/av_errors/AVErrorUtils.tsx');
|
||||
exports.getReportInboundErrors = getReportInboundErrors;
|
||||
exports.getAccumulatedStatsWithMinDatapoints = getAccumulatedStatsWithMinDatapoints;
|
||||
exports.getWarningFrameRate = function() {
|
||||
var r4;
|
||||
var value = a0;
|
||||
r4 = value !== undefined ? value : 30;
|
||||
return r4 <= 5 ? 3 : r4 <= 15 ? 8 : r4 <= 30 ? 15 : 30;
|
||||
};
|
||||
}
|
||||
|
||||
function getReportInboundErrors() { // fn#125005, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16381:233, offset: 0x025caaa6, size: 110 bytes, params: 1, frame: 15
|
||||
const WindowVisibilityVideoManager = (require(10682) /* metro dependency 10682: WindowVisibilityVideoManager */).WindowVisibilityVideoManager;
|
||||
return WindowVisibilityVideoManager.isIncomingVideoEnabled() && global.performance.now() - WindowVisibilityVideoManager.lastIncomingVideoEnabledChangeTime() > env0_3;
|
||||
}
|
||||
|
||||
function getAccumulatedStatsWithMinDatapoints(a0, a1) { // fn#125006, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16381:471, offset: 0x025cab14, size: 126 bytes, params: 3, frame: 17
|
||||
let value = a2;
|
||||
const r5 = value !== undefined ? value : 15;
|
||||
value = MediaEngineStatsStore.getAccumulatedPerformanceStats(a0, a1, 'short');
|
||||
const accumulatedPerformanceStats = MediaEngineStatsStore.getAccumulatedPerformanceStats(a0, a1, 'long');
|
||||
const value3 = null;
|
||||
return value3 == value || value3 == accumulatedPerformanceStats || (value.numDatapoints < r5 || accumulatedPerformanceStats.numDatapoints < r5) ? value3 : {short: value,
|
||||
long: accumulatedPerformanceStats};
|
||||
}
|
||||
|
||||
+64
@@ -0,0 +1,64 @@
|
||||
/* Metro module 16182; source: modules/errors/av_errors/definitions/AVErrorAudioCaptureSampleRateMismatch.tsx; dependencies: [4394, 4259, 4294, 672, 9235, 16170, 2] */
|
||||
function _fun125040(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#125040, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16390:6, offset: 0x025cb9b2, size: 200 bytes, params: 8, frame: 19
|
||||
var object2;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const mediaEngineStatsStore = importDefault(4394) /* metro dependency 4394: MediaEngineStatsStore */;
|
||||
const mediaEngineStore = importDefault(4259) /* metro dependency 4259: MediaEngineStore */;
|
||||
const rtcConnectionStore = importDefault(4294) /* metro dependency 4294: RTCConnectionStore */;
|
||||
const Millis = (importDefault(672) /* metro dependency 672: Durations */).Millis;
|
||||
const SECOND = Millis.SECOND;
|
||||
const env0_5 = 10 * SECOND;
|
||||
object2 = {getActiveErrors: getActiveErrors_125041, makeErrorContextKey: function({mediaSessionId,
|
||||
audioInputDeviceName}) {
|
||||
return '' + mediaSessionId + ':' + audioInputDeviceName;
|
||||
}};
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/errors/av_errors/definitions/AVErrorAudioCaptureSampleRateMismatch.tsx');
|
||||
exports.AVErrorAudioCaptureSampleRateMismatchDefinition = object2;
|
||||
}
|
||||
|
||||
function getActiveErrors_125041() { // fn#125041, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16390:172, offset: 0x025cba7a, size: 348 bytes, params: 1, frame: 20
|
||||
var sampleRateMismatchPercent;
|
||||
var value11;
|
||||
var object2;
|
||||
var value;
|
||||
const rTCConnection = RTCConnectionStore.getRTCConnection();
|
||||
const value3 = undefined;
|
||||
const r3 = rTCConnection == null ? value3 : rTCConnection.getDurationSeconds();
|
||||
const value5 = 0;
|
||||
if ((r3 ?? value5) < 30) {
|
||||
return value3;
|
||||
}
|
||||
const value6 = global.performance.now();
|
||||
const getLastAudioInputDeviceChangeTimestamp = MediaEngineStore.getLastAudioInputDeviceChangeTimestamp;
|
||||
if (value6 - Reflect.apply(getLastAudioInputDeviceChangeTimestamp, MediaEngineStore, []) < env0_5) {
|
||||
return value3;
|
||||
}
|
||||
const getConnectionStats = MediaEngineStatsStore.getConnectionStats;
|
||||
const rTCConnection2 = RTCConnectionStore.getRTCConnection();
|
||||
const value10 = Reflect.apply(getConnectionStats, MediaEngineStatsStore,
|
||||
[rTCConnection2 == null ? value3 : rTCConnection2.getMediaEngineConnectionId()]);
|
||||
if (value10 == null) {
|
||||
sampleRateMismatchPercent = value3;
|
||||
} else {
|
||||
value11 = value10.stats.rtp.outbound.find(function(a0) {
|
||||
return a0.type === 'audio';
|
||||
});
|
||||
sampleRateMismatchPercent = value11 == null ? value3 : value11.sampleRateMismatchPercent;
|
||||
}
|
||||
let r1 = sampleRateMismatchPercent ?? value5;
|
||||
const Math = global.Math;
|
||||
if (Math.abs(r1) > 30) {
|
||||
object2 = {};
|
||||
object2.type = (require(9235) /* metro dependency 9235: AVError */).AVError.AUDIO_CAPTURE_SAMPLE_RATE_MISMATCH;
|
||||
object2.audioCaptureSampleRateMismatchPercent = r1;
|
||||
value = require(16170) /* metro dependency 16170: AVErrorContext */;
|
||||
copyDataProperties(object2, value.getVoiceChannelErrorContext(), rTCConnection2);
|
||||
r1 = [object2];
|
||||
} else {
|
||||
r1 = value3;
|
||||
}
|
||||
return r1;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,110 @@
|
||||
/* Metro module 16187; source: modules/errors/av_errors/definitions/AVErrorCameraSendLowFPS.tsx; dependencies: [1226, 4259, 4294, 672, 16173, 9235, 16170, 2] */
|
||||
function _fun125064(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#125064, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16395:6, offset: 0x025cc10e, size: 200 bytes, params: 8, frame: 19
|
||||
var object2;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const authenticationStore = importDefault(1226) /* metro dependency 1226: AuthenticationStore */;
|
||||
const mediaEngineStore = importDefault(4259) /* metro dependency 4259: MediaEngineStore */;
|
||||
const rtcConnectionStore = importDefault(4294) /* metro dependency 4294: RTCConnectionStore */;
|
||||
const Millis = (importDefault(672) /* metro dependency 672: Durations */).Millis;
|
||||
const SECOND = Millis.SECOND;
|
||||
const env0_5 = 20 * SECOND;
|
||||
object2 = {getActiveErrors: getActiveErrors_125065, makeErrorContextKey: function({mediaSessionId}) {
|
||||
return '' + mediaSessionId;
|
||||
}};
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/errors/av_errors/definitions/AVErrorCameraSendLowFPS.tsx');
|
||||
exports.AVErrorCameraSendLowFPSDefinition = object2;
|
||||
}
|
||||
|
||||
function getActiveErrors_125065() { // fn#125065, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16395:172, offset: 0x025cc1d6, size: 334 bytes, params: 1, frame: 18
|
||||
var r2;
|
||||
var r1;
|
||||
var lastNonZeroRemoteVideoSinkWantsTime;
|
||||
var performance;
|
||||
var value7;
|
||||
var moduleValue;
|
||||
var value8;
|
||||
var object2;
|
||||
const AVError = (require(9235) /* metro dependency 9235: AVError */).AVError;
|
||||
var value;
|
||||
const rTCConnection = RTCConnectionStore.getRTCConnection();
|
||||
const value3 = null;
|
||||
if (value3 != rTCConnection) {
|
||||
var mediaEngineConnectionId = rTCConnection.getMediaEngineConnectionId();
|
||||
if (value3 == mediaEngineConnectionId) {
|
||||
return value3;
|
||||
}
|
||||
if (MediaEngineStore.isVideoEnabled()) {
|
||||
lastNonZeroRemoteVideoSinkWantsTime = RTCConnectionStore.getLastNonZeroRemoteVideoSinkWantsTime();
|
||||
if (value3 == lastNonZeroRemoteVideoSinkWantsTime) {
|
||||
if (rTCConnection.hasActiveRemoteWants()) {
|
||||
value7 = undefined;
|
||||
moduleValue = require(16173) /* metro dependency 16173: AVErrorUtils */;
|
||||
value8 = moduleValue.getAccumulatedStatsWithMinDatapoints(mediaEngineConnectionId,
|
||||
AuthenticationStore.getId());
|
||||
if (value3 == value8) {
|
||||
r1 = value3;
|
||||
} else {
|
||||
if (value8.short.frameRate < 10) {
|
||||
object2 = {};
|
||||
object2.type = AVError.CAMERA_SEND_LOW_FPS;
|
||||
object2.userId = AuthenticationStore.getId();
|
||||
value = require(16170) /* metro dependency 16170: AVErrorContext */;
|
||||
copyDataProperties(object2, value.getVoiceChannelErrorContext(), AuthenticationStore);
|
||||
r2 = [object2];
|
||||
} else if (value8.long.frameRate < 10) {
|
||||
object2 = {};
|
||||
object2.type = AVError.CAMERA_SEND_LOW_FPS;
|
||||
object2.userId = AuthenticationStore.getId();
|
||||
value = require(16170) /* metro dependency 16170: AVErrorContext */;
|
||||
copyDataProperties(object2, value.getVoiceChannelErrorContext(), AuthenticationStore);
|
||||
r2 = [object2];
|
||||
} else {
|
||||
r2 = value7;
|
||||
}
|
||||
r1 = r2;
|
||||
}
|
||||
return r1;
|
||||
}
|
||||
return value3;
|
||||
}
|
||||
performance = global.performance;
|
||||
if (performance.now() - lastNonZeroRemoteVideoSinkWantsTime < env0_5) {
|
||||
return value3;
|
||||
}
|
||||
if (rTCConnection.hasActiveRemoteWants()) {
|
||||
value7 = undefined;
|
||||
moduleValue = require(16173) /* metro dependency 16173: AVErrorUtils */;
|
||||
value8 = moduleValue.getAccumulatedStatsWithMinDatapoints(mediaEngineConnectionId,
|
||||
AuthenticationStore.getId());
|
||||
if (value3 == value8) {
|
||||
r1 = value3;
|
||||
} else {
|
||||
if (value8.short.frameRate < 10) {
|
||||
object2 = {};
|
||||
object2.type = AVError.CAMERA_SEND_LOW_FPS;
|
||||
object2.userId = AuthenticationStore.getId();
|
||||
value = require(16170) /* metro dependency 16170: AVErrorContext */;
|
||||
copyDataProperties(object2, value.getVoiceChannelErrorContext(), AuthenticationStore);
|
||||
r2 = [object2];
|
||||
} else if (value8.long.frameRate < 10) {
|
||||
object2 = {};
|
||||
object2.type = AVError.CAMERA_SEND_LOW_FPS;
|
||||
object2.userId = AuthenticationStore.getId();
|
||||
value = require(16170) /* metro dependency 16170: AVErrorContext */;
|
||||
copyDataProperties(object2, value.getVoiceChannelErrorContext(), AuthenticationStore);
|
||||
r2 = [object2];
|
||||
} else {
|
||||
r2 = value7;
|
||||
}
|
||||
r1 = r2;
|
||||
}
|
||||
return r1;
|
||||
}
|
||||
return value3;
|
||||
}
|
||||
}
|
||||
return value3;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,70 @@
|
||||
/* Metro module 16169; source: modules/errors/av_errors/definitions/AVErrorNoAudioInputDetected.tsx; dependencies: [1379, 4259, 4294, 661, 9235, 16170, 2] */
|
||||
function _fun124990(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#124990, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16377:6, offset: 0x025ca02e, size: 197 bytes, params: 8, frame: 19
|
||||
var object2;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */;
|
||||
const mediaEngineStore = importDefault(4259) /* metro dependency 4259: MediaEngineStore */;
|
||||
const rtcConnectionStore = importDefault(4294) /* metro dependency 4294: RTCConnectionStore */;
|
||||
const constantsModule = require(661) /* metro dependency 661: Constants */;
|
||||
const env0_5 = constantsModule.InputModes;
|
||||
const env0_6 = constantsModule.RTCConnectionStates;
|
||||
object2 = {getActiveErrors: getActiveErrors, makeErrorContextKey: function({mediaSessionId, audioInputDeviceName}) {
|
||||
return '' + mediaSessionId + ':' + audioInputDeviceName;
|
||||
}};
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/errors/av_errors/definitions/AVErrorNoAudioInputDetected.tsx');
|
||||
exports.AVErrorNoAudioInputDetectedDefinition = object2;
|
||||
}
|
||||
|
||||
function getActiveErrors({voiceChannelId, voiceState}) { // fn#124991, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16377:194, offset: 0x025ca0f3, size: 337 bytes, params: 2, frame: 17
|
||||
var r7;
|
||||
var value4;
|
||||
var object2;
|
||||
var value;
|
||||
const channel = ChannelStore.getChannel(voiceChannelId);
|
||||
let r2 = channel?.isGuildStageVoice();
|
||||
if (r2) {
|
||||
value4 = voiceState == null;
|
||||
r2 = value4 ? undefined : voiceState.suppress;
|
||||
r7 = value4;
|
||||
}
|
||||
if (channel != null) {
|
||||
if (RTCConnectionStore.getMediaSessionId() == null) {
|
||||
return undefined;
|
||||
}
|
||||
var getInputDetectedThisConnection = MediaEngineStore.getInputDetectedThisConnection;
|
||||
if (Reflect.apply(getInputDetectedThisConnection, MediaEngineStore, [])) {
|
||||
return undefined;
|
||||
}
|
||||
var state = RTCConnectionStore.getState();
|
||||
var RTC_CONNECTED = RTCConnectionStates.RTC_CONNECTED;
|
||||
if (state !== RTC_CONNECTED) {
|
||||
return undefined;
|
||||
}
|
||||
var getSettings = MediaEngineStore.getSettings;
|
||||
var mode = Reflect.apply(getSettings, MediaEngineStore, []).mode;
|
||||
var VOICE_ACTIVITY = InputModes.VOICE_ACTIVITY;
|
||||
if (mode !== VOICE_ACTIVITY) {
|
||||
return undefined;
|
||||
}
|
||||
getSettings = MediaEngineStore.getSettings;
|
||||
if (Reflect.apply(getSettings, MediaEngineStore, []).silenceWarning) {
|
||||
if (MediaEngineStore.getInputDetected() !== false) {
|
||||
return undefined;
|
||||
}
|
||||
if (r2) {
|
||||
return undefined;
|
||||
}
|
||||
if (MediaEngineStore.isSelfMute()) {
|
||||
return undefined;
|
||||
}
|
||||
object2 = {};
|
||||
object2.type = (require(9235) /* metro dependency 9235: AVError */).AVError.NO_AUDIO_INPUT_DETECTED;
|
||||
value = require(16170) /* metro dependency 16170: AVErrorContext */;
|
||||
copyDataProperties(object2, value.getVoiceChannelErrorContext(), r7);
|
||||
return [object2];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,46 @@
|
||||
/* Metro module 16171; source: modules/errors/av_errors/definitions/AVErrorNoInputDevices.tsx; dependencies: [1379, 4259, 4294, 9235, 16170, 2] */
|
||||
function _fun124997(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#124997, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16379:6, offset: 0x025ca528, size: 165 bytes, params: 8, frame: 19
|
||||
var object2;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */;
|
||||
const mediaEngineStore = importDefault(4259) /* metro dependency 4259: MediaEngineStore */;
|
||||
const rtcConnectionStore = importDefault(4294) /* metro dependency 4294: RTCConnectionStore */;
|
||||
object2 = {getActiveErrors: getActiveErrors_124998, makeErrorContextKey: function({mediaSessionId}) {
|
||||
return '' + mediaSessionId;
|
||||
}};
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/errors/av_errors/definitions/AVErrorNoInputDevices.tsx');
|
||||
exports.AVErrorNoInputDevicesDefinition = object2;
|
||||
}
|
||||
|
||||
function getActiveErrors_124998({voiceChannelId, voiceState}) { // fn#124998, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16379:145, offset: 0x025ca5cd, size: 223 bytes, params: 2, frame: 18
|
||||
const channel = ChannelStore.getChannel(voiceChannelId);
|
||||
const r2 = channel?.isGuildStageVoice() && voiceState?.suppress;
|
||||
const Object = global.Object;
|
||||
const keys = Object.keys;
|
||||
const getInputDevices = MediaEngineStore.getInputDevices;
|
||||
const length = Reflect.apply(keys, Object, [Reflect.apply(getInputDevices, MediaEngineStore, [])]).length;
|
||||
const mediaSessionId = RTCConnectionStore.getMediaSessionId();
|
||||
if (length !== 0) {
|
||||
return undefined;
|
||||
}
|
||||
if (channel == null) {
|
||||
return undefined;
|
||||
}
|
||||
if (mediaSessionId == null) {
|
||||
return undefined;
|
||||
}
|
||||
if (r2) {
|
||||
return undefined;
|
||||
}
|
||||
const object2 = {};
|
||||
const AVError = (require(9235) /* metro dependency 9235: AVError */).AVError;
|
||||
const NO_INPUT_DEVICES = AVError.NO_INPUT_DEVICES;
|
||||
object2.type = NO_INPUT_DEVICES;
|
||||
const avErrorContextModule = require(16170) /* metro dependency 16170: AVErrorContext */;
|
||||
const getVoiceChannelErrorContext = avErrorContextModule.getVoiceChannelErrorContext;
|
||||
copyDataProperties(object2, Reflect.apply(getVoiceChannelErrorContext, avErrorContextModule, []), MediaEngineStore);
|
||||
return [object2];
|
||||
}
|
||||
|
||||
@@ -0,0 +1,38 @@
|
||||
/* Metro module 16181; source: modules/errors/av_errors/definitions/AVErrorScreenshareOSError.tsx; dependencies: [477, 9235, 16170, 4285, 2] */
|
||||
function _fun125035(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#125035, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16389:6, offset: 0x025cb82a, size: 136 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const BigInt = global.BigInt;
|
||||
const env0_2 = BigInt(-3821);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/errors/av_errors/definitions/AVErrorScreenshareOSError.tsx');
|
||||
exports.AVErrorScreenshareOSErrorDefinition = {getActiveErrors: function({activeStreams}) {
|
||||
return activeStreams.filter(_fun125037).map(_fun125038);
|
||||
}, makeErrorContextKey: function({streamKey, mediaSessionId}) {
|
||||
return '' + streamKey + ':' + mediaSessionId;
|
||||
}};
|
||||
}
|
||||
|
||||
function getActiveErrors_125036({activeStreams}) { // fn#125036, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16389:135, offset: 0x025cb8b2, size: 47 bytes, params: 2, frame: 12
|
||||
return activeStreams.filter(function(a0) {
|
||||
return a0.errorCode != null;
|
||||
}).map(_fun125038);
|
||||
}
|
||||
|
||||
function _fun125038(a0) { // fn#125038, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16389:194, offset: 0x025cb8f2, size: 192 bytes, params: 2, frame: 18
|
||||
const object2 = {};
|
||||
let value = environment.__proto__;
|
||||
const AVError = (require(9235) /* metro dependency 9235: AVError */).AVError;
|
||||
const SCREENSHARE_OS_ERROR = AVError.SCREENSHARE_OS_ERROR;
|
||||
object2.type = SCREENSHARE_OS_ERROR;
|
||||
const errorCode = a0.errorCode;
|
||||
const platformUtilsModule = require(477) /* metro dependency 477: PlatformUtils */;
|
||||
object2.errorMessage = platformUtilsModule.isMac() && errorCode === env1_2 ? '' + errorCode + ' - your Mac may be low on disk space' : errorCode.toString();
|
||||
value = require(16170) /* metro dependency 16170: AVErrorContext */;
|
||||
const getStreamErrorContext = value.getStreamErrorContext;
|
||||
const streamKeyUtilsModule = require(4285) /* metro dependency 4285: StreamKeyUtils */;
|
||||
copyDataProperties(object2, Reflect.apply(getStreamErrorContext, value, [streamKeyUtilsModule.encodeStreamKey(a0)]),
|
||||
errorCode);
|
||||
return object2;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,38 @@
|
||||
/* Metro module 16177; source: modules/errors/av_errors/definitions/AVErrorStreamBadNetworkQuality.tsx; dependencies: [4395, 661, 9235, 16170, 1360, 2] */
|
||||
function _fun125018(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#125018, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16385:6, offset: 0x025cb300, size: 155 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const streamRTCConnectionStore = importDefault(4395) /* metro dependency 4395: StreamRTCConnectionStore */;
|
||||
const env0_3 = (require(661) /* metro dependency 661: Constants */).RTCConnectionQuality;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/errors/av_errors/definitions/AVErrorStreamBadNetworkQuality.tsx');
|
||||
exports.AVErrorStreamBadNetworkQualityDefinition = {getActiveErrors: function() {
|
||||
return StreamRTCConnectionStore.getAllActiveStreamKeys().map(_fun125020).filter(require(dependencyMap[4]).isNotNullish);
|
||||
}, makeErrorContextKey: function({streamKey, mediaSessionId}) {
|
||||
return '' + streamKey + ':' + mediaSessionId;
|
||||
}};
|
||||
}
|
||||
|
||||
function getActiveErrors_125019() { // fn#125019, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16385:156, offset: 0x025cb39b, size: 76 bytes, params: 1, frame: 13
|
||||
const value3 = StreamRTCConnectionStore.getAllActiveStreamKeys().map(_fun125020);
|
||||
return value3.filter((require(1360) /* metro dependency 1360: GlobalUtils */).isNotNullish);
|
||||
}
|
||||
|
||||
function _fun125020(a0) { // fn#125020, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16385:192, offset: 0x025cb3e7, size: 112 bytes, params: 2, frame: 16
|
||||
var r0;
|
||||
var object2;
|
||||
let value = environment.__proto__;
|
||||
const quality = StreamRTCConnectionStore.getQuality(a0);
|
||||
const BAD = RTCConnectionQuality.BAD;
|
||||
if (quality !== BAD) {
|
||||
r0 = null;
|
||||
} else {
|
||||
object2 = {};
|
||||
object2.type = require(dependencyMap[2]).AVError.STREAM_BAD_NETWORK_QUALITY;
|
||||
value = require(dependencyMap[3]);
|
||||
copyDataProperties(object2, value.getStreamErrorContext(a0), dependencyMap);
|
||||
r0 = object2;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,39 @@
|
||||
/* Metro module 16179; source: modules/errors/av_errors/definitions/AVErrorStreamFailedToStart.tsx; dependencies: [661, 9235, 16170, 4285, 2] */
|
||||
function _fun125025(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#125025, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16387:6, offset: 0x025cb5ad, size: 136 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_2 = (require(661) /* metro dependency 661: Constants */).ApplicationStreamStates;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/errors/av_errors/definitions/AVErrorStreamFailedToStart.tsx');
|
||||
exports.AVErrorStreamFailedToStartDefinition = {getActiveErrors: function({activeStreams}) {
|
||||
return activeStreams.filter(_fun125027).map(_fun125028);
|
||||
}, makeErrorContextKey: function({streamKey, mediaSessionId}) {
|
||||
return '' + streamKey + ':' + mediaSessionId;
|
||||
}};
|
||||
}
|
||||
|
||||
function getActiveErrors_125026({activeStreams}) { // fn#125026, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16387:149, offset: 0x025cb635, size: 47 bytes, params: 2, frame: 12
|
||||
return activeStreams.filter(_fun125027).map(_fun125028);
|
||||
}
|
||||
|
||||
function _fun125027(a0) { // fn#125027, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16387:180, offset: 0x025cb664, size: 42 bytes, params: 2, frame: 3
|
||||
const state = a0.state;
|
||||
const value = environment.__proto__;
|
||||
const FAILED = ApplicationStreamStates.FAILED;
|
||||
return state === FAILED && a0.errorCode == null;
|
||||
}
|
||||
|
||||
function _fun125028(a0) { // fn#125028, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16387:228, offset: 0x025cb68e, size: 101 bytes, params: 2, frame: 16
|
||||
const object2 = {};
|
||||
let value = environment.__proto__;
|
||||
const AVError = require(dependencyMap[1]).AVError;
|
||||
const STREAM_FAILED_TO_START = AVError.STREAM_FAILED_TO_START;
|
||||
object2.type = STREAM_FAILED_TO_START;
|
||||
value = require(dependencyMap[2]);
|
||||
const getStreamErrorContext = value.getStreamErrorContext;
|
||||
const moduleValue = require(dependencyMap[3]);
|
||||
copyDataProperties(object2, Reflect.apply(getStreamErrorContext, value, [moduleValue.encodeStreamKey(a0)]),
|
||||
dependencyMap);
|
||||
return object2;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,34 @@
|
||||
/* Metro module 16180; source: modules/errors/av_errors/definitions/AVErrorStreamReconnecting.tsx; dependencies: [661, 9235, 16170, 4285, 2] */
|
||||
function _fun125030(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#125030, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16388:6, offset: 0x025cb6f3, size: 136 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_2 = (require(661) /* metro dependency 661: Constants */).ApplicationStreamStates;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/errors/av_errors/definitions/AVErrorStreamReconnecting.tsx');
|
||||
exports.AVErrorStreamReconnectingDefinition = {getActiveErrors: function({activeStreams}) {
|
||||
return activeStreams.filter(_fun125032).map(_fun125033);
|
||||
}, makeErrorContextKey: function({streamKey, mediaSessionId}) {
|
||||
return '' + streamKey + ':' + mediaSessionId;
|
||||
}};
|
||||
}
|
||||
|
||||
function getActiveErrors_125031({activeStreams}) { // fn#125031, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16388:149, offset: 0x025cb77b, size: 47 bytes, params: 2, frame: 12
|
||||
return activeStreams.filter(function({state}) {
|
||||
return state === ApplicationStreamStates.RECONNECTING;
|
||||
}).map(_fun125033);
|
||||
}
|
||||
|
||||
function _fun125033(a0) { // fn#125033, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16388:215, offset: 0x025cb7c5, size: 101 bytes, params: 2, frame: 16
|
||||
const object2 = {};
|
||||
let value = environment.__proto__;
|
||||
const AVError = require(dependencyMap[1]).AVError;
|
||||
const STREAM_RECONNECTING = AVError.STREAM_RECONNECTING;
|
||||
object2.type = STREAM_RECONNECTING;
|
||||
value = require(dependencyMap[2]);
|
||||
const getStreamErrorContext = value.getStreamErrorContext;
|
||||
const moduleValue = require(dependencyMap[3]);
|
||||
copyDataProperties(object2, Reflect.apply(getStreamErrorContext, value, [moduleValue.encodeStreamKey(a0)]),
|
||||
dependencyMap);
|
||||
return object2;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,72 @@
|
||||
/* Metro module 16175; source: modules/errors/av_errors/definitions/AVErrorStreamSendHighPacketLoss.tsx; dependencies: [4492, 4395, 4285, 16173, 9235, 16170, 2] */
|
||||
function _fun125012(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#125012, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16383:6, offset: 0x025cadf6, size: 149 bytes, params: 8, frame: 19
|
||||
var object2;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const applicationStreamingStore = importDefault(4492) /* metro dependency 4492: ApplicationStreamingStore */;
|
||||
const streamRTCConnectionStore = importDefault(4395) /* metro dependency 4395: StreamRTCConnectionStore */;
|
||||
object2 = {getActiveErrors: getActiveErrors_125013, makeErrorContextKey: function({streamKey, mediaSessionId}) {
|
||||
return '' + streamKey + ':' + mediaSessionId;
|
||||
}};
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/errors/av_errors/definitions/AVErrorStreamSendHighPacketLoss.tsx');
|
||||
exports.AVErrorStreamSendHighPacketLossDefinition = object2;
|
||||
}
|
||||
|
||||
function getActiveErrors_125013() { // fn#125013, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16383:135, offset: 0x025cae8b, size: 337 bytes, params: 1, frame: 20
|
||||
var r2;
|
||||
var r1;
|
||||
var object2;
|
||||
const AVError = (require(9235) /* metro dependency 9235: AVError */).AVError;
|
||||
var getStreamErrorContext;
|
||||
var moduleValue3;
|
||||
var value;
|
||||
const currentUserActiveStream = ApplicationStreamingStore.getCurrentUserActiveStream();
|
||||
const value3 = null;
|
||||
if (value3 == currentUserActiveStream) {
|
||||
return value3;
|
||||
}
|
||||
const getViewerIds = ApplicationStreamingStore.getViewerIds;
|
||||
if (Reflect.apply(getViewerIds, ApplicationStreamingStore, [currentUserActiveStream]).length === 0) {
|
||||
return value3;
|
||||
}
|
||||
const getRTCConnection = StreamRTCConnectionStore.getRTCConnection;
|
||||
const value4 = undefined;
|
||||
const streamKeyUtilsModule = require(4285) /* metro dependency 4285: StreamKeyUtils */;
|
||||
const value5 = Reflect.apply(getRTCConnection, StreamRTCConnectionStore,
|
||||
[streamKeyUtilsModule.encodeStreamKey(currentUserActiveStream)]);
|
||||
const r5 = value3 == value5 ? value4 : value5.getMediaEngineConnectionId();
|
||||
if (value3 == r5) {
|
||||
return value3;
|
||||
}
|
||||
const accumulatedStatsWithMinDatapoints = (require(16173) /* metro dependency 16173: AVErrorUtils */).getAccumulatedStatsWithMinDatapoints(r5,
|
||||
currentUserActiveStream.ownerId);
|
||||
if (value3 == accumulatedStatsWithMinDatapoints) {
|
||||
r1 = value3;
|
||||
} else {
|
||||
if (100 * accumulatedStatsWithMinDatapoints.short.packetLossRate > 10) {
|
||||
object2 = {};
|
||||
object2.type = AVError.STREAM_SEND_HIGH_PACKET_LOSS;
|
||||
value = require(16170) /* metro dependency 16170: AVErrorContext */;
|
||||
getStreamErrorContext = value.getStreamErrorContext;
|
||||
moduleValue3 = streamKeyUtilsModule;
|
||||
copyDataProperties(object2, Reflect.apply(getStreamErrorContext, value,
|
||||
[moduleValue3.encodeStreamKey(currentUserActiveStream)]), 2);
|
||||
r2 = [object2];
|
||||
} else if (100 * accumulatedStatsWithMinDatapoints.long.packetLossRate > 10) {
|
||||
object2 = {};
|
||||
object2.type = AVError.STREAM_SEND_HIGH_PACKET_LOSS;
|
||||
value = require(16170) /* metro dependency 16170: AVErrorContext */;
|
||||
getStreamErrorContext = value.getStreamErrorContext;
|
||||
moduleValue3 = require(4285) /* metro dependency 4285: StreamKeyUtils */;
|
||||
copyDataProperties(object2, Reflect.apply(getStreamErrorContext, value,
|
||||
[moduleValue3.encodeStreamKey(currentUserActiveStream)]), 2);
|
||||
r2 = [object2];
|
||||
} else {
|
||||
r2 = value4;
|
||||
}
|
||||
r1 = r2;
|
||||
}
|
||||
return r1;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,171 @@
|
||||
/* Metro module 16176; source: modules/errors/av_errors/definitions/AVErrorStreamSendLowFPS.tsx; dependencies: [4606, 4492, 4395, 661, 672, 4285, 16173, 8912, 9235, 16170, 2] */
|
||||
function _fun125015(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#125015, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16384:6, offset: 0x025cafdc, size: 222 bytes, params: 8, frame: 19
|
||||
var object2;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const channelRTCStore = importDefault(4606) /* metro dependency 4606: ChannelRTCStore */;
|
||||
const applicationStreamingStore = importDefault(4492) /* metro dependency 4492: ApplicationStreamingStore */;
|
||||
const streamRTCConnectionStore = importDefault(4395) /* metro dependency 4395: StreamRTCConnectionStore */;
|
||||
const env0_5 = (require(661) /* metro dependency 661: Constants */).ApplicationStreamStates;
|
||||
const Millis = (importDefault(672) /* metro dependency 672: Durations */).Millis;
|
||||
const SECOND = Millis.SECOND;
|
||||
const env0_6 = 20 * SECOND;
|
||||
object2 = {getActiveErrors: getActiveErrors_125016, makeErrorContextKey: function({streamKey, mediaSessionId}) {
|
||||
return '' + streamKey + ':' + mediaSessionId;
|
||||
}};
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/errors/av_errors/definitions/AVErrorStreamSendLowFPS.tsx');
|
||||
exports.AVErrorStreamSendLowFPSDefinition = object2;
|
||||
}
|
||||
|
||||
function getActiveErrors_125016() { // fn#125016, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16384:206, offset: 0x025cb0ba, size: 582 bytes, params: 1, frame: 22
|
||||
var r2;
|
||||
var r1;
|
||||
var getParticipant;
|
||||
var channelId;
|
||||
var moduleValue2;
|
||||
var value9;
|
||||
var moduleValue3;
|
||||
var value10;
|
||||
var maxQuality;
|
||||
var frameRate;
|
||||
var moduleValue5;
|
||||
var moduleValue6;
|
||||
var object2;
|
||||
const AVError = (require(9235) /* metro dependency 9235: AVError */).AVError;
|
||||
var getStreamErrorContext;
|
||||
var moduleValue7;
|
||||
var value;
|
||||
const currentUserActiveStream = ApplicationStreamingStore.getCurrentUserActiveStream();
|
||||
const value3 = null;
|
||||
if (value3 != currentUserActiveStream) {
|
||||
var state = currentUserActiveStream.state;
|
||||
var PAUSED = ApplicationStreamStates.PAUSED;
|
||||
if (state === PAUSED) {
|
||||
return value3;
|
||||
}
|
||||
var getViewerIds = ApplicationStreamingStore.getViewerIds;
|
||||
if (Reflect.apply(getViewerIds, ApplicationStreamingStore, [currentUserActiveStream]).length === 0) {
|
||||
return value3;
|
||||
}
|
||||
var value4 = (require(4285) /* metro dependency 4285: StreamKeyUtils */).encodeStreamKey(currentUserActiveStream);
|
||||
var rTCConnection = StreamRTCConnectionStore.getRTCConnection(value4);
|
||||
if (value3 == rTCConnection) {
|
||||
return value3;
|
||||
}
|
||||
var mediaEngineConnectionId = rTCConnection.getMediaEngineConnectionId();
|
||||
if (value3 == mediaEngineConnectionId) {
|
||||
return value3;
|
||||
}
|
||||
var lastNonZeroRemoteVideoSinkWantsTime = StreamRTCConnectionStore.getLastNonZeroRemoteVideoSinkWantsTime(value4);
|
||||
if (value3 == lastNonZeroRemoteVideoSinkWantsTime) {
|
||||
if (rTCConnection.hasActiveRemoteWants()) {
|
||||
getParticipant = ChannelRTCStore.getParticipant;
|
||||
channelId = currentUserActiveStream.channelId;
|
||||
moduleValue2 = require(4285) /* metro dependency 4285: StreamKeyUtils */;
|
||||
value9 = Reflect.apply(getParticipant, ChannelRTCStore, [channelId,
|
||||
moduleValue2.encodeStreamKey(currentUserActiveStream)]);
|
||||
if (value3 == value9) {
|
||||
return value3;
|
||||
}
|
||||
moduleValue3 = require(16173) /* metro dependency 16173: AVErrorUtils */;
|
||||
value10 = moduleValue3.getAccumulatedStatsWithMinDatapoints(mediaEngineConnectionId,
|
||||
currentUserActiveStream.ownerId);
|
||||
if (value3 == value10) {
|
||||
return value3;
|
||||
}
|
||||
maxQuality = (require(8912) /* metro dependency 8912: StreamQualityUtils */).getMaxQuality(value9);
|
||||
if (value3 == maxQuality) {
|
||||
r1 = value3;
|
||||
} else {
|
||||
frameRate = value10.short.frameRate;
|
||||
moduleValue5 = require(16173) /* metro dependency 16173: AVErrorUtils */;
|
||||
if (frameRate < moduleValue5.getWarningFrameRate(maxQuality.maxFrameRate)) {
|
||||
object2 = {};
|
||||
object2.type = AVError.STREAM_SEND_LOW_FPS;
|
||||
value = require(16170) /* metro dependency 16170: AVErrorContext */;
|
||||
getStreamErrorContext = value.getStreamErrorContext;
|
||||
moduleValue7 = require(4285) /* metro dependency 4285: StreamKeyUtils */;
|
||||
copyDataProperties(object2, Reflect.apply(getStreamErrorContext, value,
|
||||
[moduleValue7.encodeStreamKey(currentUserActiveStream)]), moduleValue5);
|
||||
r2 = [object2];
|
||||
} else {
|
||||
frameRate = value10.long.frameRate;
|
||||
moduleValue6 = require(16173) /* metro dependency 16173: AVErrorUtils */;
|
||||
if (frameRate < moduleValue6.getWarningFrameRate(maxQuality.maxFrameRate)) {
|
||||
object2 = {};
|
||||
object2.type = AVError.STREAM_SEND_LOW_FPS;
|
||||
value = require(16170) /* metro dependency 16170: AVErrorContext */;
|
||||
getStreamErrorContext = value.getStreamErrorContext;
|
||||
moduleValue7 = require(4285) /* metro dependency 4285: StreamKeyUtils */;
|
||||
copyDataProperties(object2, Reflect.apply(getStreamErrorContext, value,
|
||||
[moduleValue7.encodeStreamKey(currentUserActiveStream)]), moduleValue5);
|
||||
r2 = [object2];
|
||||
} else {
|
||||
r2 = value3;
|
||||
}
|
||||
}
|
||||
r1 = r2;
|
||||
}
|
||||
return r1;
|
||||
}
|
||||
return value3;
|
||||
}
|
||||
var performance = global.performance;
|
||||
if (performance.now() - lastNonZeroRemoteVideoSinkWantsTime < env0_6) {
|
||||
return value3;
|
||||
}
|
||||
if (rTCConnection.hasActiveRemoteWants()) {
|
||||
getParticipant = ChannelRTCStore.getParticipant;
|
||||
channelId = currentUserActiveStream.channelId;
|
||||
moduleValue2 = require(4285) /* metro dependency 4285: StreamKeyUtils */;
|
||||
value9 = Reflect.apply(getParticipant, ChannelRTCStore, [channelId,
|
||||
moduleValue2.encodeStreamKey(currentUserActiveStream)]);
|
||||
if (value3 == value9) {
|
||||
return value3;
|
||||
}
|
||||
moduleValue3 = require(16173) /* metro dependency 16173: AVErrorUtils */;
|
||||
value10 = moduleValue3.getAccumulatedStatsWithMinDatapoints(mediaEngineConnectionId,
|
||||
currentUserActiveStream.ownerId);
|
||||
if (value3 == value10) {
|
||||
return value3;
|
||||
}
|
||||
maxQuality = (require(8912) /* metro dependency 8912: StreamQualityUtils */).getMaxQuality(value9);
|
||||
if (value3 == maxQuality) {
|
||||
r1 = value3;
|
||||
} else {
|
||||
frameRate = value10.short.frameRate;
|
||||
moduleValue5 = require(16173) /* metro dependency 16173: AVErrorUtils */;
|
||||
if (frameRate < moduleValue5.getWarningFrameRate(maxQuality.maxFrameRate)) {
|
||||
object2 = {};
|
||||
object2.type = AVError.STREAM_SEND_LOW_FPS;
|
||||
value = require(16170) /* metro dependency 16170: AVErrorContext */;
|
||||
getStreamErrorContext = value.getStreamErrorContext;
|
||||
moduleValue7 = require(4285) /* metro dependency 4285: StreamKeyUtils */;
|
||||
copyDataProperties(object2, Reflect.apply(getStreamErrorContext, value,
|
||||
[moduleValue7.encodeStreamKey(currentUserActiveStream)]), moduleValue5);
|
||||
r2 = [object2];
|
||||
} else {
|
||||
frameRate = value10.long.frameRate;
|
||||
moduleValue6 = require(16173) /* metro dependency 16173: AVErrorUtils */;
|
||||
if (frameRate < moduleValue6.getWarningFrameRate(maxQuality.maxFrameRate)) {
|
||||
object2 = {};
|
||||
object2.type = AVError.STREAM_SEND_LOW_FPS;
|
||||
value = require(16170) /* metro dependency 16170: AVErrorContext */;
|
||||
getStreamErrorContext = value.getStreamErrorContext;
|
||||
moduleValue7 = require(4285) /* metro dependency 4285: StreamKeyUtils */;
|
||||
copyDataProperties(object2, Reflect.apply(getStreamErrorContext, value,
|
||||
[moduleValue7.encodeStreamKey(currentUserActiveStream)]), moduleValue5);
|
||||
r2 = [object2];
|
||||
} else {
|
||||
r2 = value3;
|
||||
}
|
||||
}
|
||||
r1 = r2;
|
||||
}
|
||||
return r1;
|
||||
}
|
||||
}
|
||||
return value3;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,43 @@
|
||||
/* Metro module 16178; source: modules/errors/av_errors/definitions/AVErrorStreamSoundshareFailed.tsx; dependencies: [4492, 4400, 661, 9235, 16170, 4285, 2] */
|
||||
function _fun125022(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#125022, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16386:6, offset: 0x025cb457, size: 171 bytes, params: 8, frame: 19
|
||||
var object2;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const applicationStreamingStore = importDefault(4492) /* metro dependency 4492: ApplicationStreamingStore */;
|
||||
const hookErrorStore = importDefault(4400) /* metro dependency 4400: HookErrorStore */;
|
||||
const env0_4 = (require(661) /* metro dependency 661: Constants */).MediaEngineHookTypes;
|
||||
object2 = {getActiveErrors: getActiveErrors_125023, makeErrorContextKey: function({streamKey, mediaSessionId}) {
|
||||
return '' + streamKey + ':' + mediaSessionId;
|
||||
}};
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/errors/av_errors/definitions/AVErrorStreamSoundshareFailed.tsx');
|
||||
exports.AVErrorStreamSoundshareFailedDefinition = object2;
|
||||
}
|
||||
|
||||
function getActiveErrors_125023() { // fn#125023, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16386:166, offset: 0x025cb502, size: 171 bytes, params: 1, frame: 18
|
||||
var r0;
|
||||
var object2;
|
||||
var getStreamErrorContext;
|
||||
var moduleValue;
|
||||
var moduleValue2;
|
||||
const currentUserActiveStream = ApplicationStreamingStore.getCurrentUserActiveStream();
|
||||
const value3 = undefined;
|
||||
if (currentUserActiveStream != null) {
|
||||
if (HookErrorStore.getHookError(MediaEngineHookTypes.SOUND) != null) {
|
||||
object2 = {};
|
||||
object2.type = require(dependencyMap[3]).AVError.STREAM_SOUNDSHARE_FAILED;
|
||||
moduleValue2 = require(dependencyMap[4]);
|
||||
getStreamErrorContext = moduleValue2.getStreamErrorContext;
|
||||
moduleValue = require(dependencyMap[5]);
|
||||
copyDataProperties(object2, Reflect.apply(getStreamErrorContext, moduleValue2,
|
||||
[moduleValue.encodeStreamKey(currentUserActiveStream)]), dependencyMap);
|
||||
r0 = [object2];
|
||||
} else {
|
||||
r0 = value3;
|
||||
}
|
||||
} else {
|
||||
r0 = value3;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,80 @@
|
||||
/* Metro module 16174; source: modules/errors/av_errors/definitions/AVErrorStreamViewHighPacketLoss.tsx; dependencies: [4492, 1226, 4395, 16173, 4285, 9235, 16170, 2] */
|
||||
function _fun125008(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#125008, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16382:6, offset: 0x025cabcd, size: 165 bytes, params: 8, frame: 19
|
||||
var object2;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const applicationStreamingStore = importDefault(4492) /* metro dependency 4492: ApplicationStreamingStore */;
|
||||
const authenticationStore = importDefault(1226) /* metro dependency 1226: AuthenticationStore */;
|
||||
const streamRTCConnectionStore = importDefault(4395) /* metro dependency 4395: StreamRTCConnectionStore */;
|
||||
object2 = {getActiveErrors: getActiveErrors_125009, makeErrorContextKey: function({streamKey, mediaSessionId}) {
|
||||
return '' + streamKey + ':' + mediaSessionId;
|
||||
}};
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/errors/av_errors/definitions/AVErrorStreamViewHighPacketLoss.tsx');
|
||||
exports.AVErrorStreamViewHighPacketLossDefinition = object2;
|
||||
}
|
||||
|
||||
function getActiveErrors_125009() { // fn#125009, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16382:145, offset: 0x025cac72, size: 81 bytes, params: 1, frame: 14
|
||||
var r0;
|
||||
var value;
|
||||
if ((require(16173) /* metro dependency 16173: AVErrorUtils */).getReportInboundErrors()) {
|
||||
value = ApplicationStreamingStore.getAllActiveStreams();
|
||||
value = value.reduce(_fun125010, []);
|
||||
r0 = value;
|
||||
} else {
|
||||
r0 = null;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function _fun125010(a0, a1) { // fn#125010, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16382:214, offset: 0x025cacc3, size: 307 bytes, params: 3, frame: 19
|
||||
var push;
|
||||
var object2;
|
||||
const AVError = (require(9235) /* metro dependency 9235: AVError */).AVError;
|
||||
var getStreamErrorContext;
|
||||
var moduleValue3;
|
||||
let value = environment.__proto__;
|
||||
const getRTCConnection = StreamRTCConnectionStore.getRTCConnection;
|
||||
const value2 = undefined;
|
||||
const streamKeyUtilsModule = require(4285) /* metro dependency 4285: StreamKeyUtils */;
|
||||
const value3 = Reflect.apply(getRTCConnection, StreamRTCConnectionStore, [streamKeyUtilsModule.encodeStreamKey(a1)]);
|
||||
const r6 = value3 == null ? value2 : value3.getMediaEngineConnectionId();
|
||||
if (r6 != null) {
|
||||
var ownerId = a1.ownerId;
|
||||
var getId = AuthenticationStore.getId;
|
||||
if (ownerId === Reflect.apply(getId, AuthenticationStore, [])) {
|
||||
return a0;
|
||||
}
|
||||
var moduleValue2 = require(16173) /* metro dependency 16173: AVErrorUtils */;
|
||||
var getAccumulatedStatsWithMinDatapoints = moduleValue2.getAccumulatedStatsWithMinDatapoints;
|
||||
ownerId = a1.ownerId;
|
||||
var value5 = Reflect.apply(getAccumulatedStatsWithMinDatapoints, moduleValue2, [r6, ownerId]);
|
||||
if (value5 != null) {
|
||||
if (100 * value5.short.packetLossRate > 10) {
|
||||
push = a0.push;
|
||||
object2 = {};
|
||||
object2.type = AVError.STREAM_VIEW_HIGH_PACKET_LOSS;
|
||||
value = require(16170) /* metro dependency 16170: AVErrorContext */;
|
||||
getStreamErrorContext = value.getStreamErrorContext;
|
||||
moduleValue3 = streamKeyUtilsModule;
|
||||
copyDataProperties(object2, Reflect.apply(getStreamErrorContext, value,
|
||||
[moduleValue3.encodeStreamKey(a1)]),
|
||||
4);
|
||||
Reflect.apply(push, a0, [object2]);
|
||||
} else if (100 * value5.long.packetLossRate > 10) {
|
||||
push = a0.push;
|
||||
object2 = {};
|
||||
object2.type = AVError.STREAM_VIEW_HIGH_PACKET_LOSS;
|
||||
value = require(16170) /* metro dependency 16170: AVErrorContext */;
|
||||
getStreamErrorContext = value.getStreamErrorContext;
|
||||
moduleValue3 = require(4285) /* metro dependency 4285: StreamKeyUtils */;
|
||||
copyDataProperties(object2, Reflect.apply(getStreamErrorContext, value,
|
||||
[moduleValue3.encodeStreamKey(a1)]),
|
||||
4);
|
||||
Reflect.apply(push, a0, [object2]);
|
||||
}
|
||||
}
|
||||
}
|
||||
return a0;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,107 @@
|
||||
/* Metro module 16172; source: modules/errors/av_errors/definitions/AVErrorStreamViewLowFPS.tsx; dependencies: [4606, 4492, 1226, 4395, 661, 16173, 4285, 8912, 9235, 16170, 2] */
|
||||
function _fun125000(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#125000, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16380:6, offset: 0x025ca6cd, size: 203 bytes, params: 8, frame: 19
|
||||
var object2;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const channelRTCStore = importDefault(4606) /* metro dependency 4606: ChannelRTCStore */;
|
||||
const applicationStreamingStore = importDefault(4492) /* metro dependency 4492: ApplicationStreamingStore */;
|
||||
const authenticationStore = importDefault(1226) /* metro dependency 1226: AuthenticationStore */;
|
||||
const streamRTCConnectionStore = importDefault(4395) /* metro dependency 4395: StreamRTCConnectionStore */;
|
||||
const env0_6 = (require(661) /* metro dependency 661: Constants */).ApplicationStreamStates;
|
||||
object2 = {getActiveErrors: getActiveErrors_125001, makeErrorContextKey: function({streamKey, mediaSessionId}) {
|
||||
return '' + streamKey + ':' + mediaSessionId;
|
||||
}};
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/errors/av_errors/definitions/AVErrorStreamViewLowFPS.tsx');
|
||||
exports.AVErrorStreamViewLowFPSDefinition = object2;
|
||||
}
|
||||
|
||||
function getActiveErrors_125001() { // fn#125001, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16380:189, offset: 0x025ca798, size: 81 bytes, params: 1, frame: 14
|
||||
var r0;
|
||||
var value;
|
||||
if ((require(16173) /* metro dependency 16173: AVErrorUtils */).getReportInboundErrors()) {
|
||||
value = ApplicationStreamingStore.getAllActiveStreams();
|
||||
value = value.reduce(_fun125002, []);
|
||||
r0 = value;
|
||||
} else {
|
||||
r0 = null;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function _fun125002(a0, a1) { // fn#125002, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16380:258, offset: 0x025ca7e9, size: 481 bytes, params: 3, frame: 22
|
||||
var frameRate;
|
||||
var moduleValue5;
|
||||
var moduleValue6;
|
||||
var push;
|
||||
var object2;
|
||||
const AVError = (require(9235) /* metro dependency 9235: AVError */).AVError;
|
||||
var getStreamErrorContext;
|
||||
var moduleValue7;
|
||||
let value = environment.__proto__;
|
||||
const getRTCConnection = StreamRTCConnectionStore.getRTCConnection;
|
||||
const value2 = undefined;
|
||||
const streamKeyUtilsModule = require(4285) /* metro dependency 4285: StreamKeyUtils */;
|
||||
const value3 = Reflect.apply(getRTCConnection, StreamRTCConnectionStore, [streamKeyUtilsModule.encodeStreamKey(a1)]);
|
||||
const r10 = value3 == null ? value2 : value3.getMediaEngineConnectionId();
|
||||
if (r10 != null) {
|
||||
var ownerId = a1.ownerId;
|
||||
var getId = AuthenticationStore.getId;
|
||||
if (ownerId === Reflect.apply(getId, AuthenticationStore, [])) {
|
||||
return a0;
|
||||
}
|
||||
var state = a1.state;
|
||||
var PAUSED = ApplicationStreamStates.PAUSED;
|
||||
if (state === PAUSED) {
|
||||
return a0;
|
||||
}
|
||||
var moduleValue2 = require(16173) /* metro dependency 16173: AVErrorUtils */;
|
||||
var getAccumulatedStatsWithMinDatapoints = moduleValue2.getAccumulatedStatsWithMinDatapoints;
|
||||
ownerId = a1.ownerId;
|
||||
var value5 = Reflect.apply(getAccumulatedStatsWithMinDatapoints, moduleValue2, [r10, ownerId]);
|
||||
if (value5 == null) {
|
||||
return a0;
|
||||
}
|
||||
var getParticipant = ChannelRTCStore.getParticipant;
|
||||
var channelId = a1.channelId;
|
||||
var moduleValue3 = streamKeyUtilsModule;
|
||||
var value6 = Reflect.apply(getParticipant, ChannelRTCStore, [channelId, moduleValue3.encodeStreamKey(a1)]);
|
||||
if (value6 == null) {
|
||||
return a0;
|
||||
}
|
||||
var maxQuality = (require(8912) /* metro dependency 8912: StreamQualityUtils */).getMaxQuality(value6);
|
||||
if (maxQuality != null) {
|
||||
frameRate = value5.short.frameRate;
|
||||
moduleValue5 = require(16173) /* metro dependency 16173: AVErrorUtils */;
|
||||
if (frameRate < moduleValue5.getWarningFrameRate(maxQuality.maxFrameRate)) {
|
||||
push = a0.push;
|
||||
object2 = {};
|
||||
object2.type = AVError.STREAM_VIEW_LOW_FPS;
|
||||
value = require(16170) /* metro dependency 16170: AVErrorContext */;
|
||||
getStreamErrorContext = value.getStreamErrorContext;
|
||||
moduleValue7 = require(4285) /* metro dependency 4285: StreamKeyUtils */;
|
||||
copyDataProperties(object2, Reflect.apply(getStreamErrorContext, value,
|
||||
[moduleValue7.encodeStreamKey(a1)]),
|
||||
moduleValue3);
|
||||
Reflect.apply(push, a0, [object2]);
|
||||
} else {
|
||||
frameRate = value5.long.frameRate;
|
||||
moduleValue6 = require(16173) /* metro dependency 16173: AVErrorUtils */;
|
||||
if (frameRate < moduleValue6.getWarningFrameRate(maxQuality.maxFrameRate)) {
|
||||
push = a0.push;
|
||||
object2 = {};
|
||||
object2.type = AVError.STREAM_VIEW_LOW_FPS;
|
||||
value = require(16170) /* metro dependency 16170: AVErrorContext */;
|
||||
getStreamErrorContext = value.getStreamErrorContext;
|
||||
moduleValue7 = require(4285) /* metro dependency 4285: StreamKeyUtils */;
|
||||
copyDataProperties(object2, Reflect.apply(getStreamErrorContext, value,
|
||||
[moduleValue7.encodeStreamKey(a1)]),
|
||||
moduleValue3);
|
||||
Reflect.apply(push, a0, [object2]);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return a0;
|
||||
}
|
||||
|
||||
+34
@@ -0,0 +1,34 @@
|
||||
/* Metro module 16184; source: modules/errors/av_errors/definitions/AVErrorVideoStreamReceiverReadyTimeout.tsx; dependencies: [1226, 4609, 9235, 2] */
|
||||
function _fun125049(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#125049, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16392:6, offset: 0x025cbd45, size: 149 bytes, params: 8, frame: 19
|
||||
var object2;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const authenticationStore = importDefault(1226) /* metro dependency 1226: AuthenticationStore */;
|
||||
const videoStreamStore = importDefault(4609) /* metro dependency 4609: VideoStreamStore */;
|
||||
object2 = {getActiveErrors: getActiveErrors_125050, makeErrorContextKey: function({mediaContext, userId}) {
|
||||
return '' + mediaContext + ':' + userId;
|
||||
}};
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/errors/av_errors/definitions/AVErrorVideoStreamReceiverReadyTimeout.tsx');
|
||||
exports.AVErrorVideoStreamReceiverReadyTimeoutDefinition = object2;
|
||||
}
|
||||
|
||||
function getActiveErrors_125050() { // fn#125050, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16392:135, offset: 0x025cbdda, size: 73 bytes, params: 1, frame: 12
|
||||
let value = VideoStreamStore.getTimedoutVideos();
|
||||
const Object = global.Object;
|
||||
value = Object.values(value);
|
||||
value = value.filter(_fun125051);
|
||||
return value.map(function(a0) {
|
||||
var object = {};
|
||||
object.type = require(dependencyMap[2]).AVError.VIDEO_STREAM_RECEIVER_READY_TIMEOUT;
|
||||
copyDataProperties(object, a0, require);
|
||||
return object;
|
||||
});
|
||||
}
|
||||
|
||||
function _fun125051({userId, videoStreamId}) { // fn#125051, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16392:200, offset: 0x025cbe23, size: 46 bytes, params: 2, frame: 11
|
||||
const value = environment.__proto__;
|
||||
const getId = AuthenticationStore.getId;
|
||||
return Reflect.apply(getId, AuthenticationStore, []) !== userId && videoStreamId != null;
|
||||
}
|
||||
|
||||
+34
@@ -0,0 +1,34 @@
|
||||
/* Metro module 16186; source: modules/errors/av_errors/definitions/AVErrorVideoStreamReceiverReadyTimeoutNoStream.tsx; dependencies: [1226, 4609, 9235, 2] */
|
||||
function _fun125059(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#125059, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16394:6, offset: 0x025cbfcb, size: 149 bytes, params: 8, frame: 19
|
||||
var object2;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const authenticationStore = importDefault(1226) /* metro dependency 1226: AuthenticationStore */;
|
||||
const videoStreamStore = importDefault(4609) /* metro dependency 4609: VideoStreamStore */;
|
||||
object2 = {getActiveErrors: getActiveErrors_125060, makeErrorContextKey: function({mediaContext, userId}) {
|
||||
return '' + mediaContext + ':' + userId;
|
||||
}};
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/errors/av_errors/definitions/AVErrorVideoStreamReceiverReadyTimeoutNoStream.tsx');
|
||||
exports.AVErrorVideoStreamReceiverReadyTimeoutNoStreamDefinition = object2;
|
||||
}
|
||||
|
||||
function getActiveErrors_125060() { // fn#125060, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16394:135, offset: 0x025cc060, size: 73 bytes, params: 1, frame: 12
|
||||
let value = VideoStreamStore.getTimedoutVideos();
|
||||
const Object = global.Object;
|
||||
value = Object.values(value);
|
||||
value = value.filter(_fun125061);
|
||||
return value.map(function(a0) {
|
||||
var object = {};
|
||||
object.type = require(dependencyMap[2]).AVError.VIDEO_STREAM_RECEIVER_READY_TIMEOUT_NO_STREAM;
|
||||
copyDataProperties(object, a0, require);
|
||||
return object;
|
||||
});
|
||||
}
|
||||
|
||||
function _fun125061({userId, videoStreamId}) { // fn#125061, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16394:200, offset: 0x025cc0a9, size: 46 bytes, params: 2, frame: 11
|
||||
const value = environment.__proto__;
|
||||
const getId = AuthenticationStore.getId;
|
||||
return Reflect.apply(getId, AuthenticationStore, []) !== userId && videoStreamId == null;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,34 @@
|
||||
/* Metro module 16183; source: modules/errors/av_errors/definitions/AVErrorVideoStreamSenderReadyTimeout.tsx; dependencies: [1226, 4609, 9235, 2] */
|
||||
function _fun125044(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#125044, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16391:6, offset: 0x025cbbd6, size: 149 bytes, params: 8, frame: 19
|
||||
var object2;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const authenticationStore = importDefault(1226) /* metro dependency 1226: AuthenticationStore */;
|
||||
const videoStreamStore = importDefault(4609) /* metro dependency 4609: VideoStreamStore */;
|
||||
object2 = {getActiveErrors: getActiveErrors_125045, makeErrorContextKey: function({mediaContext, userId}) {
|
||||
return '' + mediaContext + ':' + userId;
|
||||
}};
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/errors/av_errors/definitions/AVErrorVideoStreamSenderReadyTimeout.tsx');
|
||||
exports.AVErrorVideoStreamSenderReadyTimeoutDefinition = object2;
|
||||
}
|
||||
|
||||
function getActiveErrors_125045() { // fn#125045, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16391:135, offset: 0x025cbc6b, size: 73 bytes, params: 1, frame: 12
|
||||
let value = VideoStreamStore.getTimedoutVideos();
|
||||
const Object = global.Object;
|
||||
value = Object.values(value);
|
||||
value = value.filter(_fun125046);
|
||||
return value.map(function(a0) {
|
||||
var object = {};
|
||||
object.type = require(dependencyMap[2]).AVError.VIDEO_STREAM_SENDER_READY_TIMEOUT;
|
||||
copyDataProperties(object, a0, require);
|
||||
return object;
|
||||
});
|
||||
}
|
||||
|
||||
function _fun125046({userId, videoStreamId}) { // fn#125046, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16391:200, offset: 0x025cbcb4, size: 46 bytes, params: 2, frame: 11
|
||||
const value = environment.__proto__;
|
||||
const getId = AuthenticationStore.getId;
|
||||
return Reflect.apply(getId, AuthenticationStore, []) === userId && videoStreamId != null;
|
||||
}
|
||||
|
||||
+34
@@ -0,0 +1,34 @@
|
||||
/* Metro module 16185; source: modules/errors/av_errors/definitions/AVErrorVideoStreamSenderReadyTimeoutNoStream.tsx; dependencies: [1226, 4609, 9235, 2] */
|
||||
function _fun125054(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#125054, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16393:6, offset: 0x025cbe88, size: 149 bytes, params: 8, frame: 19
|
||||
var object2;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const authenticationStore = importDefault(1226) /* metro dependency 1226: AuthenticationStore */;
|
||||
const videoStreamStore = importDefault(4609) /* metro dependency 4609: VideoStreamStore */;
|
||||
object2 = {getActiveErrors: getActiveErrors_125055, makeErrorContextKey: function({mediaContext, userId}) {
|
||||
return '' + mediaContext + ':' + userId;
|
||||
}};
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/errors/av_errors/definitions/AVErrorVideoStreamSenderReadyTimeoutNoStream.tsx');
|
||||
exports.AVErrorVideoStreamSenderReadyTimeoutNoStreamDefinition = object2;
|
||||
}
|
||||
|
||||
function getActiveErrors_125055() { // fn#125055, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16393:135, offset: 0x025cbf1d, size: 73 bytes, params: 1, frame: 12
|
||||
let value = VideoStreamStore.getTimedoutVideos();
|
||||
const Object = global.Object;
|
||||
value = Object.values(value);
|
||||
value = value.filter(_fun125056);
|
||||
return value.map(function(a0) {
|
||||
var object = {};
|
||||
object.type = require(dependencyMap[2]).AVError.VIDEO_STREAM_SENDER_READY_TIMEOUT_NO_STREAM;
|
||||
copyDataProperties(object, a0, require);
|
||||
return object;
|
||||
});
|
||||
}
|
||||
|
||||
function _fun125056({userId, videoStreamId}) { // fn#125056, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16393:200, offset: 0x025cbf66, size: 46 bytes, params: 2, frame: 11
|
||||
const value = environment.__proto__;
|
||||
const getId = AuthenticationStore.getId;
|
||||
return Reflect.apply(getId, AuthenticationStore, []) === userId && videoStreamId == null;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,62 @@
|
||||
/* Metro module 16168; source: modules/errors/av_errors/definitions/index.tsx; dependencies: [9235, 16169, 16171, 16172, 16174, 16175, 16176, 16177, 16178, 16179, 16180, 16181, 16182, 16183, 16184, 16185, 16186, 16187, 2] */
|
||||
function _fun124989(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#124989, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16376:6, offset: 0x025c9cef, size: 831 bytes, params: 8, frame: 18
|
||||
var object2;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
object2 = {};
|
||||
const AVError = (require(9235) /* metro dependency 9235: AVError */).AVError;
|
||||
const NO_AUDIO_INPUT_DETECTED = AVError.NO_AUDIO_INPUT_DETECTED;
|
||||
const AVErrorNoAudioInputDetectedDefinition = (require(16169) /* metro dependency 16169: AVErrorNoAudioInputDetected */).AVErrorNoAudioInputDetectedDefinition;
|
||||
object2[NO_AUDIO_INPUT_DETECTED] = AVErrorNoAudioInputDetectedDefinition;
|
||||
const NO_INPUT_DEVICES = AVError.NO_INPUT_DEVICES;
|
||||
const AVErrorNoInputDevicesDefinition = (require(16171) /* metro dependency 16171: AVErrorNoInputDevices */).AVErrorNoInputDevicesDefinition;
|
||||
object2[NO_INPUT_DEVICES] = AVErrorNoInputDevicesDefinition;
|
||||
const STREAM_VIEW_LOW_FPS = AVError.STREAM_VIEW_LOW_FPS;
|
||||
const AVErrorStreamViewLowFPSDefinition = (require(16172) /* metro dependency 16172: AVErrorStreamViewLowFPS */).AVErrorStreamViewLowFPSDefinition;
|
||||
object2[STREAM_VIEW_LOW_FPS] = AVErrorStreamViewLowFPSDefinition;
|
||||
const STREAM_VIEW_HIGH_PACKET_LOSS = AVError.STREAM_VIEW_HIGH_PACKET_LOSS;
|
||||
const AVErrorStreamViewHighPacketLossDefinition = (require(16174) /* metro dependency 16174: AVErrorStreamViewHighPacketLoss */).AVErrorStreamViewHighPacketLossDefinition;
|
||||
object2[STREAM_VIEW_HIGH_PACKET_LOSS] = AVErrorStreamViewHighPacketLossDefinition;
|
||||
const STREAM_SEND_HIGH_PACKET_LOSS = AVError.STREAM_SEND_HIGH_PACKET_LOSS;
|
||||
const AVErrorStreamSendHighPacketLossDefinition = (require(16175) /* metro dependency 16175: AVErrorStreamSendHighPacketLoss */).AVErrorStreamSendHighPacketLossDefinition;
|
||||
object2[STREAM_SEND_HIGH_PACKET_LOSS] = AVErrorStreamSendHighPacketLossDefinition;
|
||||
const STREAM_SEND_LOW_FPS = AVError.STREAM_SEND_LOW_FPS;
|
||||
const AVErrorStreamSendLowFPSDefinition = (require(16176) /* metro dependency 16176: AVErrorStreamSendLowFPS */).AVErrorStreamSendLowFPSDefinition;
|
||||
object2[STREAM_SEND_LOW_FPS] = AVErrorStreamSendLowFPSDefinition;
|
||||
const STREAM_BAD_NETWORK_QUALITY = AVError.STREAM_BAD_NETWORK_QUALITY;
|
||||
const AVErrorStreamBadNetworkQualityDefinition = (require(16177) /* metro dependency 16177: AVErrorStreamBadNetworkQuality */).AVErrorStreamBadNetworkQualityDefinition;
|
||||
object2[STREAM_BAD_NETWORK_QUALITY] = AVErrorStreamBadNetworkQualityDefinition;
|
||||
const STREAM_SOUNDSHARE_FAILED = AVError.STREAM_SOUNDSHARE_FAILED;
|
||||
const AVErrorStreamSoundshareFailedDefinition = (require(16178) /* metro dependency 16178: AVErrorStreamSoundshareFailed */).AVErrorStreamSoundshareFailedDefinition;
|
||||
object2[STREAM_SOUNDSHARE_FAILED] = AVErrorStreamSoundshareFailedDefinition;
|
||||
const STREAM_FAILED_TO_START = AVError.STREAM_FAILED_TO_START;
|
||||
const AVErrorStreamFailedToStartDefinition = (require(16179) /* metro dependency 16179: AVErrorStreamFailedToStart */).AVErrorStreamFailedToStartDefinition;
|
||||
object2[STREAM_FAILED_TO_START] = AVErrorStreamFailedToStartDefinition;
|
||||
const STREAM_RECONNECTING = AVError.STREAM_RECONNECTING;
|
||||
const AVErrorStreamReconnectingDefinition = (require(16180) /* metro dependency 16180: AVErrorStreamReconnecting */).AVErrorStreamReconnectingDefinition;
|
||||
object2[STREAM_RECONNECTING] = AVErrorStreamReconnectingDefinition;
|
||||
const SCREENSHARE_OS_ERROR = AVError.SCREENSHARE_OS_ERROR;
|
||||
const AVErrorScreenshareOSErrorDefinition = (require(16181) /* metro dependency 16181: AVErrorScreenshareOSError */).AVErrorScreenshareOSErrorDefinition;
|
||||
object2[SCREENSHARE_OS_ERROR] = AVErrorScreenshareOSErrorDefinition;
|
||||
const AUDIO_CAPTURE_SAMPLE_RATE_MISMATCH = AVError.AUDIO_CAPTURE_SAMPLE_RATE_MISMATCH;
|
||||
const AVErrorAudioCaptureSampleRateMismatchDefinition = (require(16182) /* metro dependency 16182: AVErrorAudioCaptureSampleRateMismatch */).AVErrorAudioCaptureSampleRateMismatchDefinition;
|
||||
object2[AUDIO_CAPTURE_SAMPLE_RATE_MISMATCH] = AVErrorAudioCaptureSampleRateMismatchDefinition;
|
||||
const VIDEO_STREAM_SENDER_READY_TIMEOUT = AVError.VIDEO_STREAM_SENDER_READY_TIMEOUT;
|
||||
const AVErrorVideoStreamSenderReadyTimeoutDefinition = (require(16183) /* metro dependency 16183: AVErrorVideoStreamSenderReadyTimeout */).AVErrorVideoStreamSenderReadyTimeoutDefinition;
|
||||
object2[VIDEO_STREAM_SENDER_READY_TIMEOUT] = AVErrorVideoStreamSenderReadyTimeoutDefinition;
|
||||
const VIDEO_STREAM_RECEIVER_READY_TIMEOUT = AVError.VIDEO_STREAM_RECEIVER_READY_TIMEOUT;
|
||||
const AVErrorVideoStreamReceiverReadyTimeoutDefinition = (require(16184) /* metro dependency 16184: AVErrorVideoStreamReceiverReadyTimeout */).AVErrorVideoStreamReceiverReadyTimeoutDefinition;
|
||||
object2[VIDEO_STREAM_RECEIVER_READY_TIMEOUT] = AVErrorVideoStreamReceiverReadyTimeoutDefinition;
|
||||
const VIDEO_STREAM_SENDER_READY_TIMEOUT_NO_STREAM = AVError.VIDEO_STREAM_SENDER_READY_TIMEOUT_NO_STREAM;
|
||||
const AVErrorVideoStreamSenderReadyTimeoutNoStreamDefinition = (require(16185) /* metro dependency 16185: AVErrorVideoStreamSenderReadyTimeoutNoStream */).AVErrorVideoStreamSenderReadyTimeoutNoStreamDefinition;
|
||||
object2[VIDEO_STREAM_SENDER_READY_TIMEOUT_NO_STREAM] = AVErrorVideoStreamSenderReadyTimeoutNoStreamDefinition;
|
||||
const VIDEO_STREAM_RECEIVER_READY_TIMEOUT_NO_STREAM = AVError.VIDEO_STREAM_RECEIVER_READY_TIMEOUT_NO_STREAM;
|
||||
const AVErrorVideoStreamReceiverReadyTimeoutNoStreamDefinition = (require(16186) /* metro dependency 16186: AVErrorVideoStreamReceiverReadyTimeoutNoStream */).AVErrorVideoStreamReceiverReadyTimeoutNoStreamDefinition;
|
||||
object2[VIDEO_STREAM_RECEIVER_READY_TIMEOUT_NO_STREAM] = AVErrorVideoStreamReceiverReadyTimeoutNoStreamDefinition;
|
||||
const CAMERA_SEND_LOW_FPS = AVError.CAMERA_SEND_LOW_FPS;
|
||||
const AVErrorCameraSendLowFPSDefinition = (require(16187) /* metro dependency 16187: AVErrorCameraSendLowFPS */).AVErrorCameraSendLowFPSDefinition;
|
||||
object2[CAMERA_SEND_LOW_FPS] = AVErrorCameraSendLowFPSDefinition;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/errors/av_errors/definitions/index.tsx');
|
||||
exports.ErrorDefinitions = object2;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,33 @@
|
||||
/* Metro module 15491; source: modules/errors/hooks/useCameraEncodeError.tsx; dependencies: [1226, 10672, 566, 9235, 2] */
|
||||
function _fun118627(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#118627, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15688:6, offset: 0x024e53d6, size: 130 bytes, params: 8, frame: 19
|
||||
let env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const authenticationStore = importDefault(1226) /* metro dependency 1226: AuthenticationStore */;
|
||||
const avErrorStore = importDefault(10672) /* metro dependency 10672: AVErrorStore */;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/errors/hooks/useCameraEncodeError.tsx');
|
||||
exports.default = function(a0) {
|
||||
var env0_0 = a0;
|
||||
return require(dependencyMap[2]).useStateFromStores([AVErrorStore, AuthenticationStore], _fun118629);
|
||||
};
|
||||
}
|
||||
|
||||
function useCameraEncodeError(a0) { // fn#118628, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15688:205, offset: 0x024e5458, size: 74 bytes, params: 2, frame: 15
|
||||
const env0_0 = a0;
|
||||
return (require(566) /* metro dependency 566: flux */).useStateFromStores([AVErrorStore, AuthenticationStore],
|
||||
_fun118629);
|
||||
}
|
||||
|
||||
function _fun118629() { // fn#118629, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15688:279, offset: 0x024e54a2, size: 103 bytes, params: 1, frame: 13
|
||||
var getActiveErrorsOfType;
|
||||
var property;
|
||||
let value = environment.__proto__;
|
||||
if (AuthenticationStore.getId() === env0_0) {
|
||||
getActiveErrorsOfType = AVErrorStore.getActiveErrorsOfType;
|
||||
value = undefined;
|
||||
property = Reflect.apply(getActiveErrorsOfType, AVErrorStore,
|
||||
[(require(9235) /* metro dependency 9235: AVError */).AVError.CAMERA_SEND_LOW_FPS])[0];
|
||||
return property == null ? value : property.type;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,65 @@
|
||||
/* Metro module 10681; source: modules/errors/hooks/useVideoReadyTimeout.tsx; dependencies: [31, 672, 4041, 10680, 4406, 10682, 10685, 2] */
|
||||
function _fun82121(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#82121, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10867:6, offset: 0x01eec051, size: 152 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_2 = importAll(31) /* metro dependency 31 */;
|
||||
const Millis = (importDefault(672) /* metro dependency 672: Durations */).Millis;
|
||||
const SECOND = Millis.SECOND;
|
||||
const env0_3 = 20 * SECOND;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/errors/hooks/useVideoReadyTimeout.tsx');
|
||||
exports.default = useVideoReadyTimeout;
|
||||
}
|
||||
|
||||
function useVideoReadyTimeout({streamId, userId, videoSpinnerContext, streamKey, loading, paused}) { // fn#82122, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10867:222, offset: 0x01eec0e9, size: 363 bytes, params: 2, frame: 24
|
||||
const MediaEngineContextTypes = (require(4406) /* metro dependency 4406: mediaEngine */).MediaEngineContextTypes;
|
||||
const env0_2 = streamKey;
|
||||
paused = !(paused === undefined) && paused;
|
||||
let binding = env0_2;
|
||||
const useRef = binding.useRef;
|
||||
const Timeout = (require(4041) /* metro dependency 4041: Timers */).Timeout;
|
||||
const value2 = Object.create(Timeout.prototype, {constructor: {value: Timeout}});
|
||||
const timeout = new Timeout();
|
||||
const env0_5 = Reflect.apply(useRef, binding, [timeout instanceof Object ? timeout : value2]);
|
||||
const VideoSpinnerContext = (require(10680) /* metro dependency 10680: VideoSpinnerTimer */).VideoSpinnerContext;
|
||||
const SELF_STREAM = VideoSpinnerContext.SELF_STREAM;
|
||||
const r5 = videoSpinnerContext === SELF_STREAM || videoSpinnerContext === VideoSpinnerContext.REMOTE_STREAM ? MediaEngineContextTypes.STREAM : MediaEngineContextTypes.DEFAULT;
|
||||
binding = env0_2;
|
||||
binding.useEffect(_fun82123, [paused, streamId, loading, r5, streamKey, userId]);
|
||||
const useCallback = binding.useCallback;
|
||||
return {onReady: Reflect.apply(useCallback, binding, [_fun82126, [userId, r5]])};
|
||||
}
|
||||
|
||||
function _fun82123() { // fn#82123, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10867:560, offset: 0x01eec254, size: 111 bytes, params: 1, frame: 15
|
||||
var environment;
|
||||
var value2;
|
||||
var WindowVisibilityVideoManager;
|
||||
var current;
|
||||
if (loading) {
|
||||
if (paused) {
|
||||
return undefined;
|
||||
}
|
||||
value2 = environment.__proto__;
|
||||
WindowVisibilityVideoManager = (require(10682) /* metro dependency 10682: WindowVisibilityVideoManager */).WindowVisibilityVideoManager;
|
||||
if (WindowVisibilityVideoManager.isIncomingVideoEnabled()) {
|
||||
current = env0_5.current;
|
||||
current.start(env1_3, _fun82124);
|
||||
return function() {
|
||||
current.stop();
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function _fun82126() { // fn#82126, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10867:774, offset: 0x01eec313, size: 69 bytes, params: 1, frame: 14
|
||||
env0_5.current.stop();
|
||||
const videoStreamReadyActionCreatorsModule = require(10685) /* metro dependency 10685: VideoStreamReadyActionCreators */;
|
||||
videoStreamReadyActionCreatorsModule.clearVideoStreamTimeout(env0_6, userId);
|
||||
}
|
||||
|
||||
function _fun82124() { // fn#82124, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10867:672, offset: 0x01eec2c3, size: 59 bytes, params: 1, frame: 18
|
||||
let value = environment.__proto__.__proto__;
|
||||
value = require(10685) /* metro dependency 10685: VideoStreamReadyActionCreators */;
|
||||
value.videoStreamTimedOut(streamId, userId, env1_6, streamKey);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,89 @@
|
||||
/* Metro module 10671; source: modules/errors/hooks/useVideoStreamError.tsx; dependencies: [1226, 10672, 4291, 566, 9235, 2] */
|
||||
function _fun82060(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#82060, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10857:6, offset: 0x01ee9979, size: 171 bytes, params: 8, frame: 20
|
||||
let env0_0 = require;
|
||||
const closure = function(a0, a1) {
|
||||
var env0_0 = a0;
|
||||
var env0_1 = a1;
|
||||
return require(dependencyMap[3]).useStateFromStores([AVErrorStore, AuthenticationStore], _fun82062);
|
||||
};
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const authenticationStore = importDefault(1226) /* metro dependency 1226: AuthenticationStore */;
|
||||
const avErrorStore = importDefault(10672) /* metro dependency 10672: AVErrorStore */;
|
||||
const env0_4 = (require(4291) /* metro dependency 4291: Constants */).MediaEngineContextTypes;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/errors/hooks/useVideoStreamError.tsx');
|
||||
exports.default = useVideoStreamError;
|
||||
exports.useVideoStreamErrorContext = closure;
|
||||
}
|
||||
|
||||
function useVideoStreamErrorContext(a0, a1) { // fn#82061, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10857:150, offset: 0x01ee9a24, size: 81 bytes, params: 3, frame: 15
|
||||
const env0_0 = a0;
|
||||
const env0_1 = a1;
|
||||
return (require(566) /* metro dependency 566: flux */).useStateFromStores([AVErrorStore, AuthenticationStore],
|
||||
_fun82062);
|
||||
}
|
||||
|
||||
function useVideoStreamError(a0, a1) { // fn#82063, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10857:850, offset: 0x01ee9c00, size: 37 bytes, params: 3, frame: 13
|
||||
const value = undefined;
|
||||
const value2 = useVideoStreamErrorContext(a0, a1);
|
||||
return value2 == null ? value : value2.type;
|
||||
}
|
||||
|
||||
function _fun82062() { // fn#82062, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10857:232, offset: 0x01ee9a75, size: 395 bytes, params: 1, frame: 22
|
||||
var r2;
|
||||
var r3;
|
||||
var getActiveErrorsOfType;
|
||||
const AVError = (require(9235) /* metro dependency 9235: AVError */).AVError;
|
||||
var activeErrorsOfType;
|
||||
var items2;
|
||||
var value7;
|
||||
var value8;
|
||||
var property;
|
||||
var mediaContext;
|
||||
var userId;
|
||||
let value = environment.__proto__;
|
||||
if (AuthenticationStore.getId() === require) {
|
||||
r2 = env0_0 === MediaEngineContextTypes.STREAM ? AVErrorStore.getActiveErrorsOfType(AVError.SCREENSHARE_OS_ERROR) : [];
|
||||
items2 = [];
|
||||
value7 = arraySpread(items2, r2, 0, undefined);
|
||||
getActiveErrorsOfType = AVErrorStore.getActiveErrorsOfType;
|
||||
value8 = arraySpread(items2, Reflect.apply(getActiveErrorsOfType, AVErrorStore,
|
||||
[AVError.VIDEO_STREAM_SENDER_READY_TIMEOUT]), value7, AVErrorStore);
|
||||
getActiveErrorsOfType = AVErrorStore.getActiveErrorsOfType;
|
||||
arraySpread(items2, Reflect.apply(getActiveErrorsOfType, AVErrorStore,
|
||||
[AVError.VIDEO_STREAM_SENDER_READY_TIMEOUT_NO_STREAM]), value8, AVErrorStore);
|
||||
r3 = items2;
|
||||
} else {
|
||||
activeErrorsOfType = AVErrorStore.getActiveErrorsOfType(AVError.VIDEO_STREAM_RECEIVER_READY_TIMEOUT);
|
||||
items2 = [];
|
||||
arraySpread(items2, AVErrorStore.getActiveErrorsOfType(AVError.VIDEO_STREAM_RECEIVER_READY_TIMEOUT_NO_STREAM),
|
||||
arraySpread(items2, activeErrorsOfType, 0, undefined), undefined);
|
||||
r3 = items2;
|
||||
}
|
||||
let length = r3.length;
|
||||
value = 0;
|
||||
if (value < length) {
|
||||
r2 = value;
|
||||
reducibleLoop7: while (true) {
|
||||
property = r3[r2];
|
||||
mediaContext = property.mediaContext;
|
||||
if (mediaContext === env0_0) {
|
||||
userId = property.userId;
|
||||
reducibleJoin9: while (true) {
|
||||
if (userId === require) {
|
||||
return property;
|
||||
}
|
||||
break reducibleJoin9;
|
||||
}
|
||||
}
|
||||
value = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1;
|
||||
length = r3.length;
|
||||
if (!(value < length)) {
|
||||
return undefined;
|
||||
}
|
||||
r2 = value;
|
||||
continue reducibleLoop7;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
Reference in new issue
Block a user