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

136 lines
6.6 KiB
JavaScript

/* Metro module 857; source: unknown; dependencies: [834, 850, 852, 838] */
import * as Module00834Module from './module-00834.js'; /* Metro dependency 834 */
import * as Module00850Module from './module-00850.js'; /* Metro dependency 850 */
import * as ScopeModule from './module-00852-Scope.js'; /* Metro dependency 852 */
function _fun9252(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#9252, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:984:6, offset: 0x00d612ca, size: 148 bytes, params: 8, frame: 18
const env0_0 = require;
const getCurrentScope2 = getCurrentScope;
const Object = global.Object;
const defineProperty = Object.defineProperty;
const Symbol = global.Symbol;
Reflect.apply(defineProperty, Object, [exports, Symbol.toStringTag, {value: 'Module'}]);
exports.getClient = getClient;
exports.getCurrentScope = getCurrentScope2;
exports.getGlobalScope = getGlobalScope;
exports.getIsolationScope = getIsolationScope;
exports.getTraceContextFromScope = getTraceContextFromScope;
exports.withIsolationScope = withIsolationScope_9259;
exports.withScope = withScope_9260;
function getCurrentScope() { // fn#9253, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:984:30, offset: 0x00d6135e, size: 69 bytes, params: 1, frame: 13
let value = Module00834Module;
value = value.getMainCarrier();
value = (require(850) /* metro dependency 850 */).getAsyncContextStrategy(value);
return value.getCurrentScope();
}
function getClient() { // fn#9254, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:984:221, offset: 0x00d613a3, size: 25 bytes, params: 1, frame: 9
return getCurrentScope().getClient();
}
function getGlobalScope() { // fn#9255, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:984:331, offset: 0x00d613bc, size: 51 bytes, params: 1, frame: 13
return (Module00834Module).getGlobalSingleton('globalScope', _fun9256);
function _fun9256() { // fn#9256, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:984:406, offset: 0x00d613ef, size: 53 bytes, params: 1, frame: 11
let value = environment.__proto__;
const Scope = (ScopeModule).Scope;
value = Object.create(Scope.prototype, {constructor: {value: Scope}});
const scope = new Scope();
return scope instanceof Object ? scope : value;
}
}
function getIsolationScope() { // fn#9257, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:984:467, offset: 0x00d61424, size: 69 bytes, params: 1, frame: 13
let value = Module00834Module;
value = value.getMainCarrier();
value = (require(850) /* metro dependency 850 */).getAsyncContextStrategy(value);
return value.getIsolationScope();
}
function getTraceContextFromScope(a0) { // fn#9258, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:984:617, offset: 0x00d61469, size: 92 bytes, params: 2, frame: 14
var r2;
let value = a0.getPropagationContext();
const traceId = value.traceId;
const parentSpanId = value.parentSpanId;
const object = {trace_id: traceId};
const propagationSpanId = value.propagationSpanId;
if (propagationSpanId) {
r2 = propagationSpanId;
} else {
value = require(838) /* metro dependency 838 */;
value = value.generateSpanId();
r2 = value;
}
object.span_id = r2;
if (parentSpanId) {
object.parent_span_id = parentSpanId;
}
return object;
}
function withIsolationScope_9259() { // fn#9259, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:984:839, offset: 0x00d614c5, size: 184 bytes, params: 1, frame: 17
var r3;
var value7;
var property;
var property2;
const value = 0;
const asyncContextStrategy = (Module00850Module).getAsyncContextStrategy(require(dependencyMap[value]).getMainCarrier());
const length = arguments.length;
const Array = global.Array;
const array = new Array(length);
if (value < length) {
r3 = value;
reducibleLoop1: while (true) {
array[r3] = arguments[r3];
value7 = typeof r3 === 'bigint' ? r3 + 1n : +r3 + 1;
if (value7 < length) {
r3 = value7;
continue reducibleLoop1;
}
break reducibleLoop1;
}
}
if (array.length === 2) {
property = array[value];
property2 = array[1];
return property ? asyncContextStrategy.withSetIsolationScope(property,
property2) : asyncContextStrategy.withIsolationScope(property2);
}
return asyncContextStrategy.withIsolationScope(array[value]);
}
function withScope_9260() { // fn#9260, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:984:1149, offset: 0x00d6157d, size: 184 bytes, params: 1, frame: 17
var r3;
var value7;
var property;
var property2;
const value = 0;
const asyncContextStrategy = (Module00850Module).getAsyncContextStrategy(require(dependencyMap[value]).getMainCarrier());
const length = arguments.length;
const Array = global.Array;
const array = new Array(length);
if (value < length) {
r3 = value;
reducibleLoop1: while (true) {
array[r3] = arguments[r3];
value7 = typeof r3 === 'bigint' ? r3 + 1n : +r3 + 1;
if (value7 < length) {
r3 = value7;
continue reducibleLoop1;
}
break reducibleLoop1;
}
}
if (array.length === 2) {
property = array[value];
property2 = array[1];
return property ? asyncContextStrategy.withSetScope(property,
property2) : asyncContextStrategy.withScope(property2);
}
return asyncContextStrategy.withScope(array[value]);
}
}
global.__d(_fun9252, 857, [834, 850, 852, 838]) /* metro module 857, dependencies: [834, 850, 852, 838] */;