Files
2026-07-28 01:06:53 +03:00

397 lines
14 KiB
JavaScript

/* Metro module 929; source: unknown; dependencies: [832, 833, 895, 842] */
import * as Module00842Module from './module-00842.js'; /* Metro dependency 842 */
import * as Module00895Module from './module-00895.js'; /* Metro dependency 895 */
function _fun9895(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#9895, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1056:6, offset: 0x00d7550c, size: 143 bytes, params: 8, frame: 20
const env0_0 = require;
const _shouldDropEvent_98962 = _shouldDropEvent_9896;
const _isSameFingerprint = function({fingerprint}, {fingerprint}) {
var join;
var value;
var value2;
var error;
if (fingerprint) {
if (fingerprint) {
if (fingerprint) {
if (fingerprint) {
try {
value = fingerprint.join('');
fingerprint = fingerprint.join;
value2 = Reflect.apply(fingerprint, fingerprint, ['']);
} catch (error) {
return false;
}
return !(value !== value2);
}
if (fingerprint) {
return false;
}
try {
join = fingerprint.join;
} catch (error) {
return false;
}
try {
value = Reflect.apply(join, fingerprint, ['']);
} catch (error) {
return false;
}
try {
fingerprint = fingerprint.join;
} catch (error) {
return false;
}
try {
value2 = Reflect.apply(fingerprint, fingerprint, ['']);
} catch (error) {
return false;
}
return !(value !== value2);
}
return false;
}
if (fingerprint) {
try {
join = fingerprint.join;
} catch (error) {
return false;
}
try {
value = Reflect.apply(join, fingerprint, ['']);
} catch (error) {
return false;
}
try {
fingerprint = fingerprint.join;
} catch (error) {
return false;
}
try {
value2 = Reflect.apply(fingerprint, fingerprint, ['']);
} catch (error) {
return false;
}
return !(value !== value2);
}
if (fingerprint) {
return false;
}
try {
join = fingerprint.join;
} catch (error) {
return false;
}
try {
value = Reflect.apply(join, fingerprint, ['']);
} catch (error) {
return false;
}
try {
fingerprint = fingerprint.join;
} catch (error) {
return false;
}
try {
value2 = Reflect.apply(fingerprint, fingerprint, ['']);
} catch (error) {
return false;
}
return !(value !== value2);
}
if (fingerprint) {
if (fingerprint) {
if (fingerprint) {
if (fingerprint) {
try {
join = fingerprint.join;
} catch (error) {
return false;
}
try {
value = Reflect.apply(join, fingerprint, ['']);
} catch (error) {
return false;
}
try {
fingerprint = fingerprint.join;
} catch (error) {
return false;
}
try {
value2 = Reflect.apply(fingerprint, fingerprint, ['']);
} catch (error) {
return false;
}
return !(value !== value2);
}
if (fingerprint) {
return false;
}
try {
join = fingerprint.join;
} catch (error) {
return false;
}
try {
value = Reflect.apply(join, fingerprint, ['']);
} catch (error) {
return false;
}
try {
fingerprint = fingerprint.join;
} catch (error) {
return false;
}
try {
value2 = Reflect.apply(fingerprint, fingerprint, ['']);
} catch (error) {
return false;
}
return !(value !== value2);
}
return false;
}
if (fingerprint) {
try {
join = fingerprint.join;
} catch (error) {
return false;
}
try {
value = Reflect.apply(join, fingerprint, ['']);
} catch (error) {
return false;
}
try {
fingerprint = fingerprint.join;
} catch (error) {
return false;
}
try {
value2 = Reflect.apply(fingerprint, fingerprint, ['']);
} catch (error) {
return false;
}
return !(value !== value2);
}
if (fingerprint) {
return false;
}
try {
join = fingerprint.join;
} catch (error) {
return false;
}
try {
value = Reflect.apply(join, fingerprint, ['']);
} catch (error) {
return false;
}
try {
fingerprint = fingerprint.join;
} catch (error) {
return false;
}
try {
value2 = Reflect.apply(fingerprint, fingerprint, ['']);
} catch (error) {
return false;
}
return !(value !== value2);
}
return true;
};
const _getExceptionFromEvent = function({exception}) {
return exception == null || exception.values == null ? undefined : exception.values[0];
};
const Object = global.Object;
const defineProperty = Object.defineProperty;
const Symbol = global.Symbol;
Reflect.apply(defineProperty, Object, [exports, Symbol.toStringTag, {value: 'Module'}]);
let value = Module00895Module;
value = value.defineIntegration(function() {
return {name: 'Dedupe', processEvent: _fun9901};
});
exports._shouldDropEvent = _shouldDropEvent_98962;
exports.dedupeIntegration = value;
function _shouldDropEvent_9896(a0, a1) { // fn#9896, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1056:418, offset: 0x00d7559b, size: 208 bytes, params: 3, frame: 21
var r2;
var r1;
var r0;
var message;
var message2;
var _getExceptionFromEventBinding;
var value3;
var value4;
var value5;
if (a1) {
message = a0.message;
message2 = a1.message;
r2 = (message || message2) && (message ? message2 && (message ? !(message !== message2) && (_isSameFingerprint(a0,
a1) && _isSameStacktrace(a0, a1) && true) : !(message2 || message !== message2) && (_isSameFingerprint(a0,
a1) && _isSameStacktrace(a0, a1) && true)) : message ? !(message !== message2) && (_isSameFingerprint(a0,
a1) && _isSameStacktrace(a0, a1) && true) : !(message2 || message !== message2) && (_isSameFingerprint(a0,
a1) && _isSameStacktrace(a0, a1) && true));
if (r2) {
r1 = !!r2;
} else {
_getExceptionFromEventBinding = _getExceptionFromEvent;
value3 = _getExceptionFromEventBinding(a1);
value4 = _getExceptionFromEventBinding(a0);
value5 = false;
r1 = !!(value3 && value4 ? value3.type !== value4.type || value3.value !== value4.value ? value5 : _isSameFingerprint(a0,
a1) && _isSameStacktrace(a0, a1) || value5 : value5);
}
r0 = r1;
} else {
r0 = !!a1;
}
return r0;
}
function _isSameStacktrace(a0, a1) { // fn#9897, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1056:929, offset: 0x00d7566b, size: 212 bytes, params: 3, frame: 15
var r1;
var property;
var property2;
var filename;
var filename2;
var lineno;
var lineno2;
var colno;
var colno2;
var value4;
let value = Module00842Module;
value = value.getFramesFromEvent(a0);
const framesFromEvent = (Module00842Module).getFramesFromEvent(a1);
if (!value) {
reducibleJoin3: while (true) {
if (!framesFromEvent) {
return true;
}
break reducibleJoin3;
}
}
if (value) {
reducibleJoin5: while (true) {
if (!framesFromEvent) {
return false;
}
break reducibleJoin5;
}
}
if (!value) {
reducibleJoin8: while (true) {
if (framesFromEvent) {
return false;
}
break reducibleJoin8;
}
}
let length = framesFromEvent.length;
if (length !== value.length) {
return false;
}
length = framesFromEvent.length;
const value3 = 0;
if (value3 < length) {
r1 = value3;
reducibleLoop10: while (true) {
property = framesFromEvent[r1];
property2 = value[r1];
filename = property.filename;
filename2 = property2.filename;
if (filename !== filename2) {
return false;
}
lineno = property.lineno;
lineno2 = property2.lineno;
if (lineno !== lineno2) {
return false;
}
colno = property.colno;
colno2 = property2.colno;
if (colno !== colno2) {
return false;
}
property = property.function;
if (property !== property2.function) {
return false;
}
value4 = typeof r1 === 'bigint' ? r1 + 1n : +r1 + 1;
length = framesFromEvent.length;
if (!(value4 < length)) {
return true;
}
r1 = value4;
continue reducibleLoop10;
}
}
return true;
}
function _dedupeIntegration() { // fn#9900, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1056:125, offset: 0x00d757ae, size: 26 bytes, params: 1, frame: 2
return {name: 'Dedupe', processEvent: processEvent_9901};
function _dedupeIntegrationProcessEvent(a0) { // fn#9901, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1056:195, owner: _dedupeIntegration.processEvent, offset: 0x00d757c8, size: 134 bytes, params: 2, frame: 15
var _shouldDropEvent_9896Binding;
var binding;
var value3;
var property;
var moduleValue;
var DEBUG_BUILD;
var debug;
var error;
if (!a0.type) {
var value = environment.__proto__;
try {
_shouldDropEvent_9896Binding = _shouldDropEvent_9896;
} catch (error) {
value = environment;
env0_0 = a0;
return a0;
}
try {
binding = env0_0;
} catch (error) {
value = environment;
env0_0 = a0;
return a0;
}
try {
value3 = _shouldDropEvent_9896Binding(a0, binding);
} catch (error) {
value = environment;
env0_0 = a0;
return a0;
}
if (value3) {
try {
property = dependencyMap[0];
moduleValue = require(property);
DEBUG_BUILD = moduleValue.DEBUG_BUILD;
if (DEBUG_BUILD) {
property = dependencyMap[1];
value = require(property);
debug = value.debug;
debug.warn('Event dropped due to being a duplicate of previously captured event.');
}
} catch (error) {
value = environment;
env0_0 = a0;
return a0;
}
return null;
}
env0_0 = a0;
}
return a0;
}
}
}
global.__d(_fun9895, 929, [832, 833, 895, 842]) /* metro module 929, dependencies: [832, 833, 895, 842] */;