Files
discord-decomp/sources/by-id/module-00943.jsx
T
2026-07-27 16:20:00 +03:00

102 lines
4.1 KiB
React

/* Metro module 943; source: unknown; dependencies: [5, 944, 857, 831, 945, 956] */
function _fun10025(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#10025, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1070:6, offset: 0x00d79f1d, size: 123 bytes, params: 8, frame: 19
const env0_0 = require;
const env0_2 = require(5) /* metro dependency 5 */;
const Object = global.Object;
const defineProperty = Object.defineProperty;
const Symbol = global.Symbol;
Reflect.apply(defineProperty, Object, [exports, Symbol.toStringTag, {value: 'Module'}]);
const WeakSet = global.WeakSet;
const weakSet = new WeakSet();
exports.wrapMcpServerWithSentry = wrapMcpServerWithSentry;
}
function wrapMcpServerWithSentry(a0, a1) { // fn#10026, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1070:149, offset: 0x00d79f98, size: 285 bytes, params: 3, frame: 21
var client;
var value4;
var object2;
const binding = env0_3;
if (!binding.has(a0)) {
var value2 = undefined;
var moduleValue = require(944) /* metro dependency 944 */;
if (moduleValue.validateMcpServerInstance(a0)) {
client = (require(857) /* metro dependency 857 */).getClient();
value4 = global.Boolean(client == null ? value2 : client.getOptions().sendDefaultPii);
object2 = {};
object2.recordInputs = (a1 == null ? value2 : a1.recordInputs) ?? value4;
object2.recordOutputs = (a1 == null ? value2 : a1.recordOutputs) ?? value4;
(require(831) /* metro dependency 831 */).fill(a0, 'connect', function(a0) {
var env0_0 = a0;
return _fun10028();
});
(require(956) /* metro dependency 956 */).wrapAllMCPHandlers(a0);
env0_3.add(a0);
return a0;
}
}
return a0;
}
function _fun10027(a0) { // fn#10027, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1070:505, offset: 0x00d7a0b5, size: 22 bytes, params: 2, frame: 9
const env0_0 = a0;
return _fun10028();
}
function _fun10028() { // fn#10028, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1070:524, offset: 0x00d7a0cb, size: 32 bytes, params: 1, frame: 12
const env0_0 = env2_2(_fun10030);
return _fun10031;
}
function* _fun10030(a0) { // fn#10030, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1070:544, offset: 0x00d7a0f4, size: 269 bytes, params: 2, frame: 20
var r1;
var value5;
var value8;
var value9;
if (false) {
return undefined;
}
value = arguments.length;
const Array = global.Array;
const value3 = 1;
reducibleJoin3: while (true) {
if (value > value3) {
value5 = value - value3;
r1 = value5;
break reducibleJoin3;
}
r1 = 0;
break reducibleJoin3;
}
const array = new Array();
if (value3 < value) {
r1 = value3;
reducibleLoop4: while (true) {
value8 = r1 - value3;
array[value8] = arguments[r1];
value9 = typeof r1 === 'bigint' ? r1 + 1n : +r1 + 1;
if (value9 < value) {
r1 = value9;
continue reducibleLoop4;
}
break reducibleLoop4;
}
}
value = environment.__proto__.__proto__;
let binding = env2_0;
const call = binding.call;
const apply = call.apply;
const items2 = [this, a0];
yield Reflect.apply(apply, call, [binding, items2.concat(array)]);
value = undefined;
if (true) {
binding = env4_0;
var binding2 = env4_1;
binding(binding2[4]).wrapTransportOnMessage(a0, require);
binding(binding2[4]).wrapTransportSend(a0, require);
binding(binding2[4]).wrapTransportOnClose(a0);
binding(binding2[4]).wrapTransportError(a0);
}
return value;
}