296 lines
13 KiB
React
296 lines
13 KiB
React
/* Metro module 1084; source: unknown; dependencies: [826, 1036] */
|
|
function _fun11294(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#11294, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1211:6, offset: 0x00da826e, size: 141 bytes, params: 8, frame: 19
|
|
let env0_0 = require;
|
|
const _wrapTimeFunction = function(a0) {
|
|
var env0_0 = a0;
|
|
return _fun11296;
|
|
};
|
|
const _wrapRAF = function(a0) {
|
|
var env0_0 = a0;
|
|
return _fun11298;
|
|
};
|
|
const _wrapXHR = function(a0) {
|
|
var env0_0 = a0;
|
|
return _fun11300;
|
|
};
|
|
let Object = global.Object;
|
|
const defineProperty = Object.defineProperty;
|
|
const Symbol = global.Symbol;
|
|
Reflect.apply(defineProperty, Object, [exports, Symbol.toStringTag, {value: 'Module'}]);
|
|
const env0_2 = ['EventTarget', 'Window', 'Node', 'ApplicationCache', 'AudioTrackList', 'BroadcastChannel',
|
|
'ChannelMergerNode', 'CryptoOperation', 'EventSource', 'FileReader', 'HTMLUnknownElement', 'IDBDatabase',
|
|
'IDBRequest', 'IDBTransaction', 'KeyOperation', 'MediaController', 'MessagePort', 'ModalWindow', 'Notification',
|
|
'SVGElementInstance', 'Screen', 'SharedWorker', 'TextTrack', 'TextTrackCue', 'TextTrackList', 'WebSocket',
|
|
'WebSocketWorker', 'Worker', 'XMLHttpRequest', 'XMLHttpRequestEventTarget', 'XMLHttpRequestUpload'];
|
|
exports.browserApiErrorsIntegration = (require(826) /* metro dependency 826 */).defineIntegration(function() {
|
|
var r4;
|
|
r4 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
var Object = global.Object;
|
|
var env0_0 = Object.assign({'XMLHttpRequest': true, 'eventTarget': true, 'requestAnimationFrame': true,
|
|
'setInterval': true, 'setTimeout': true, 'unregisterOriginalCallbacks': false}, r4);
|
|
return {name: 'BrowserApiErrors', setupOnce: _fun11304};
|
|
});
|
|
}
|
|
|
|
function _wrapTimeFunction(a0) { // fn#11295, offset: 0x00da82fb, size: 16 bytes, params: 2, frame: 2
|
|
const env0_0 = a0;
|
|
return _fun11296;
|
|
}
|
|
|
|
function _wrapRAF(a0) { // fn#11297, offset: 0x00da83ca, size: 16 bytes, params: 2, frame: 2
|
|
const env0_0 = a0;
|
|
return _fun11298;
|
|
}
|
|
|
|
function _wrapXHR(a0) { // fn#11299, offset: 0x00da8458, size: 16 bytes, params: 2, frame: 2
|
|
const env0_0 = a0;
|
|
return _fun11300;
|
|
}
|
|
|
|
function _browserApiErrorsIntegration() { // fn#11303, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1211:614, offset: 0x00da8602, size: 92 bytes, params: 1, frame: 14
|
|
const r4 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
const Object = global.Object;
|
|
const env0_0 = Object.assign({'XMLHttpRequest': true, 'eventTarget': true, 'requestAnimationFrame': true,
|
|
'setInterval': true, 'setTimeout': true, 'unregisterOriginalCallbacks': false}, r4);
|
|
return {name: 'BrowserApiErrors', setupOnce: setupOnce_11304};
|
|
}
|
|
|
|
function _fun11296() { // fn#11296, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1211:2440, offset: 0x00da830b, size: 191 bytes, params: 1, frame: 21
|
|
var r0;
|
|
var value5;
|
|
let value = arguments.length;
|
|
const Array = global.Array;
|
|
const array = new Array(value);
|
|
const value4 = 0;
|
|
if (value4 < value) {
|
|
for (r0 = value4; true; r0 = value5) {
|
|
array[r0] = arguments[r0];
|
|
value5 = typeof r0 === 'bigint' ? r0 + 1n : +r0 + 1;
|
|
if (!(value5 < value)) {
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
const property = array[value4];
|
|
value = environment.__proto__;
|
|
value = require(1036) /* metro dependency 1036 */;
|
|
const wrap = value.wrap;
|
|
const moduleValue = require(dependencyMap[value4]);
|
|
const getFunctionName = moduleValue.getFunctionName;
|
|
const binding = env0_0;
|
|
array[value4] = Reflect.apply(wrap, value, [property, {mechanism: {handled: false,
|
|
type: 'auto.browser.browserapierrors.' + Reflect.apply(getFunctionName, moduleValue, [binding])}}]);
|
|
return binding.apply(this, array);
|
|
}
|
|
|
|
function _fun11298(a0) { // fn#11298, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1211:2699, offset: 0x00da83da, size: 126 bytes, params: 2, frame: 20
|
|
const binding = env0_0;
|
|
const apply = binding.apply;
|
|
let value = environment.__proto__;
|
|
const wrap = (require(1036) /* metro dependency 1036 */).wrap;
|
|
const object = {};
|
|
object.handler = (require(826) /* metro dependency 826 */).getFunctionName(binding);
|
|
value = Reflect.apply(wrap, value, [a0, {mechanism: {'data': null, 'handled': false,
|
|
'type': 'auto.browser.browserapierrors.requestAnimationFrame', data: object}}]);
|
|
return Reflect.apply(apply, binding, [this, [value]]);
|
|
}
|
|
|
|
function _fun11300() { // fn#11300, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1211:2905, offset: 0x00da8468, size: 113 bytes, params: 1, frame: 15
|
|
var r0;
|
|
var value5;
|
|
const env0_0 = this;
|
|
['onload', 'onerror', 'onprogress', 'onreadystatechange'].forEach(_fun11301);
|
|
const length = arguments.length;
|
|
const Array = global.Array;
|
|
const array = new Array(length);
|
|
const value4 = 0;
|
|
if (value4 < length) {
|
|
for (r0 = value4; true; r0 = value5) {
|
|
array[r0] = arguments[r0];
|
|
value5 = typeof r0 === 'bigint' ? r0 + 1n : +r0 + 1;
|
|
if (!(value5 < length)) {
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
return env0_0.apply(this, array);
|
|
}
|
|
|
|
function _browserApiErrorsIntegrationSetupOnce() { // fn#11304, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1211:898, owner: _browserApiErrorsIntegration.setupOnce, offset: 0x00da865e, size: 408 bytes, params: 1, frame: 18
|
|
var environment;
|
|
var value2;
|
|
var moduleValue;
|
|
const WINDOW = (require(1036) /* metro dependency 1036 */).WINDOW;
|
|
var value3;
|
|
var moduleValue2;
|
|
var value4;
|
|
var moduleValue3;
|
|
var value7;
|
|
var moduleValue4;
|
|
var Array;
|
|
if (env0_0.setTimeout) {
|
|
value2 = environment.__proto__;
|
|
moduleValue = require(826) /* metro dependency 826 */;
|
|
moduleValue.fill(WINDOW, 'setTimeout', _wrapTimeFunction);
|
|
}
|
|
if (env0_0.setInterval) {
|
|
value3 = environment.__proto__;
|
|
moduleValue2 = require(826) /* metro dependency 826 */;
|
|
moduleValue2.fill(WINDOW, 'setInterval', _wrapTimeFunction);
|
|
}
|
|
if (env0_0.requestAnimationFrame) {
|
|
value4 = environment.__proto__;
|
|
moduleValue3 = require(826) /* metro dependency 826 */;
|
|
moduleValue3.fill(WINDOW, 'requestAnimationFrame', _wrapRAF);
|
|
}
|
|
const XMLHttpRequest = env0_0.XMLHttpRequest;
|
|
if (XMLHttpRequest && 'XMLHttpRequest' in WINDOW) {
|
|
value7 = environment.__proto__;
|
|
moduleValue4 = require(826) /* metro dependency 826 */;
|
|
moduleValue4.fill(global.XMLHttpRequest.prototype, 'send', _wrapXHR);
|
|
}
|
|
const eventTarget = env0_0.eventTarget;
|
|
if (eventTarget) {
|
|
Array = global.Array;
|
|
(Array.isArray(eventTarget) ? eventTarget : env1_2).forEach(_fun11305);
|
|
}
|
|
}
|
|
|
|
function _fun11301(a0) { // fn#11301, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1211:2991, offset: 0x00da84d9, size: 95 bytes, params: 2, frame: 16
|
|
var environment;
|
|
var value4;
|
|
var moduleValue;
|
|
const env0_0 = a0;
|
|
if (a0 in env0_0 && typeof env0_0[a0] === 'function') {
|
|
value4 = environment.__proto__.__proto__;
|
|
moduleValue = require(826) /* metro dependency 826 */;
|
|
moduleValue.fill(env0_0, a0, _fun11302);
|
|
}
|
|
}
|
|
|
|
function _fun11305(a0) { // fn#11305, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1211:1319, offset: 0x00da87f6, size: 27 bytes, params: 2, frame: 13
|
|
_wrapEventTarget(a0, env1_0);
|
|
}
|
|
|
|
function _fun11302(a0) { // fn#11302, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1211:3054, offset: 0x00da8538, size: 202 bytes, params: 2, frame: 20
|
|
const object2 = {};
|
|
const object4 = {};
|
|
const value = environment.__proto__.__proto__.__proto__;
|
|
object4.handler = (require(826) /* metro dependency 826 */).getFunctionName(a0);
|
|
object2.mechanism = {data: object4, handled: false, type: 'auto.browser.browserapierrors.xhr.' + env0_0};
|
|
const originalFunction = (require(826) /* metro dependency 826 */).getOriginalFunction(a0);
|
|
if (originalFunction) {
|
|
object2.mechanism.data.handler = (require(826) /* metro dependency 826 */).getFunctionName(originalFunction);
|
|
}
|
|
return (require(1036) /* metro dependency 1036 */).wrap(a0, object2);
|
|
}
|
|
|
|
function _wrapEventTarget(a0, a1) { // fn#11306, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1211:1338, offset: 0x00da8811, size: 171 bytes, params: 3, frame: 20
|
|
var environment;
|
|
let env0_0 = a0;
|
|
const env0_1 = a1;
|
|
let value = environment.__proto__.__proto__.__proto__;
|
|
const value2 = undefined;
|
|
const WINDOW = (require(1036) /* metro dependency 1036 */).WINDOW;
|
|
const property = WINDOW[a0];
|
|
const prototype = property == null ? value2 : property.prototype;
|
|
if (prototype != null) {
|
|
if (prototype.hasOwnProperty == null) {
|
|
return value2;
|
|
}
|
|
if (prototype.hasOwnProperty('addEventListener')) {
|
|
value = require(826) /* metro dependency 826 */;
|
|
value.fill(prototype, 'addEventListener', function(a0) {
|
|
var env0_0 = a0;
|
|
return _fun11308;
|
|
});
|
|
value = require(826) /* metro dependency 826 */;
|
|
value.fill(prototype, 'removeEventListener', _fun11309);
|
|
return value2;
|
|
}
|
|
}
|
|
return value2;
|
|
}
|
|
|
|
function _fun11307(a0) { // fn#11307, offset: 0x00da88bc, size: 16 bytes, params: 2, frame: 2
|
|
const env0_0 = a0;
|
|
return _fun11308;
|
|
}
|
|
|
|
function _fun11309(a0) { // fn#11309, offset: 0x00da8a4c, size: 16 bytes, params: 2, frame: 2
|
|
const env0_0 = a0;
|
|
return _fun11310;
|
|
}
|
|
|
|
function _fun11308(a0, a1, a2) { // fn#11308, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1211:1563, offset: 0x00da88cc, size: 384 bytes, params: 4, frame: 25
|
|
var r1;
|
|
var handleEvent;
|
|
var value2;
|
|
var value3;
|
|
var property;
|
|
var moduleValue;
|
|
var wrap;
|
|
var moduleValue2;
|
|
var functionName;
|
|
var value5;
|
|
var binding;
|
|
var value6;
|
|
var error;
|
|
const value = this;
|
|
try {
|
|
handleEvent = a1.handleEvent;
|
|
value2 = typeof handleEvent !== 'function';
|
|
if (!value2) {
|
|
value3 = environment.__proto__.__proto__.__proto__.__proto__.__proto__;
|
|
property = dependencyMap[1];
|
|
moduleValue = require(property);
|
|
wrap = moduleValue.wrap;
|
|
handleEvent = a1.handleEvent;
|
|
property = dependencyMap[0];
|
|
moduleValue2 = require(property);
|
|
functionName = moduleValue2.getFunctionName(a1);
|
|
value5 = environment.__proto__;
|
|
binding = env1_0;
|
|
value6 = Reflect.apply(wrap, moduleValue, [handleEvent, {mechanism: {'data': null, 'handled': false,
|
|
'type': 'auto.browser.browserapierrors.handleEvent', data: {handler: functionName, target: binding}}}]);
|
|
a1.handleEvent = value6;
|
|
}
|
|
} catch (error) {
|
|
}
|
|
if (require.unregisterOriginalCallbacks) {
|
|
r1 = value && typeof value === 'object';
|
|
r1 = r1 && 'removeEventListener' in value;
|
|
r1 = r1 && typeof value.removeEventListener === 'function';
|
|
if (r1) {
|
|
value.removeEventListener(a0, a1);
|
|
}
|
|
}
|
|
binding = env0_0;
|
|
const apply = binding.apply;
|
|
const moduleValue3 = require(dependencyMap[1]);
|
|
wrap = moduleValue3.wrap;
|
|
const object = {};
|
|
object.handler = require(dependencyMap[0]).getFunctionName(a1);
|
|
object.target = env1_0;
|
|
return Reflect.apply(apply, binding, [value, [a0, Reflect.apply(wrap, moduleValue3, [a1, {mechanism: {'data': null,
|
|
'handled': false, 'type': 'auto.browser.browserapierrors.addEventListener', data: object}}]), a2]]);
|
|
}
|
|
|
|
function _fun11310(a0, a1, a2) { // fn#11310, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1211:2280, offset: 0x00da8a5c, size: 96 bytes, params: 4, frame: 20
|
|
var __sentry_wrapped__;
|
|
var value;
|
|
var binding;
|
|
var error;
|
|
try {
|
|
__sentry_wrapped__ = a1.__sentry_wrapped__;
|
|
if (__sentry_wrapped__) {
|
|
value = environment;
|
|
binding = env0_0;
|
|
binding.call(this, a0, __sentry_wrapped__, a2);
|
|
}
|
|
} catch (error) {
|
|
}
|
|
return env0_0.call(this, a0, a1, a2);
|
|
}
|
|
|