261 lines
9.8 KiB
React
261 lines
9.8 KiB
React
/* Metro module 1120; source: unknown; dependencies: [65, 1121, 1010, 1009, 826] */
|
|
function _fun12517(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#12517, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1247:6, offset: 0x00dcd9fb, size: 219 bytes, params: 8, frame: 19
|
|
var object3;
|
|
var closure;
|
|
let value = this;
|
|
let env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
let env0_2 = importDefault(65) /* metro dependency 65 */;
|
|
if (!(value && value.__awaiter)) {
|
|
closure = function(a0, a1, a2, a3) {
|
|
var r2;
|
|
var value = a2;
|
|
var env0_0 = a0;
|
|
var env0_1 = a1;
|
|
var env0_2 = value;
|
|
var env0_3 = a3;
|
|
r2 = value || global.Promise;
|
|
value = Object.create(r2.prototype, {constructor: {value: r2}});
|
|
var value2 = new r2(_fun12519);
|
|
return value2 instanceof Object ? value2 : value;
|
|
};
|
|
}
|
|
object3 = {};
|
|
const SDK_NAME = (require(1121) /* metro dependency 1121 */).SDK_NAME;
|
|
object3.name = SDK_NAME;
|
|
const object4 = {};
|
|
const SDK_PACKAGE_NAME = (require(1121) /* metro dependency 1121 */).SDK_PACKAGE_NAME;
|
|
object4.name = SDK_PACKAGE_NAME;
|
|
const SDK_VERSION = (require(1121) /* metro dependency 1121 */).SDK_VERSION;
|
|
object4.version = SDK_VERSION;
|
|
object3.packages = [object4];
|
|
object3.version = SDK_VERSION;
|
|
exports.defaultSdkInfo = object3;
|
|
exports.sdkInfoIntegration = function() {
|
|
var env0_0 = _fun12526();
|
|
return {name: 'SdkInfo', setupOnce: _fun12531, processEvent: _fun12532};
|
|
};
|
|
}
|
|
|
|
function _fun12518(a0, a1, a2, a3) { // fn#12518, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1247:132, offset: 0x00dcdad6, size: 75 bytes, params: 5, frame: 12
|
|
let value = a2;
|
|
const env0_0 = a0;
|
|
const env0_1 = a1;
|
|
const env0_3 = a3;
|
|
let r2 = value || global.Promise;
|
|
value = Object.create(r2.prototype, {constructor: {value: r2}});
|
|
r2 = new r2(_fun12519);
|
|
return r2 instanceof Object ? r2 : value;
|
|
}
|
|
|
|
function sdkInfoIntegration() { // fn#12525, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1247:650, offset: 0x00dcdc06, size: 51 bytes, params: 1, frame: 10
|
|
const env0_0 = createCachedFetchNativeSdkInfo();
|
|
return {name: 'SdkInfo', setupOnce: function() {
|
|
}, processEvent: processEvent_12532};
|
|
}
|
|
|
|
function _fun12519(a0, a1) { // fn#12519, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1247:178, offset: 0x00dcdb21, size: 98 bytes, params: 3, frame: 16
|
|
const env0_0 = a0;
|
|
const env0_1 = a1;
|
|
const closure = step_12522;
|
|
const value2 = importAll.apply(env0_0, require || []);
|
|
closure(value2.next());
|
|
}
|
|
|
|
function createCachedFetchNativeSdkInfo() { // fn#12526, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1247:686, owner: sdkInfoIntegration.createCachedFetchNativeSdkInfo, offset: 0x00dcdc39, size: 103 bytes, params: 1, frame: 14
|
|
var environment;
|
|
let value = environment.__proto__;
|
|
const moduleValue = require(1010) /* metro dependency 1010 */;
|
|
if (moduleValue.notWeb()) {
|
|
value = moduleValue;
|
|
if (value.isExpoGo()) {
|
|
return function() {
|
|
var Promise = global.Promise;
|
|
return Promise.resolve(null);
|
|
};
|
|
}
|
|
return _fun12528;
|
|
}
|
|
return function() {
|
|
var Promise = global.Promise;
|
|
return Promise.resolve(null);
|
|
};
|
|
}
|
|
|
|
function sdkInfoIntegrationProcessEvent(a0) { // fn#12532, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1247:1117, owner: sdkInfoIntegration.processEvent, offset: 0x00dcdd7c, size: 27 bytes, params: 2, frame: 13
|
|
return _processEvent(a0, env0_0);
|
|
}
|
|
|
|
function step_12522(a0) { // fn#12522, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1247:306, offset: 0x00dcdb83, size: 77 bytes, params: 2, frame: 14
|
|
var value;
|
|
if (a0.done) {
|
|
env0_0(a0.value);
|
|
} else {
|
|
value = a0.value;
|
|
value = step_12522Adopt(value);
|
|
value.then(fulfilled_12520, rejected_12521);
|
|
}
|
|
}
|
|
|
|
function _fun12528() { // fn#12528, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1247:851, offset: 0x00dcdcb6, size: 33 bytes, params: 1, frame: 15
|
|
return env2_3(env0_0, undefined, undefined, _fun12530);
|
|
}
|
|
|
|
function _processEvent(a0, a1) { // fn#12533, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1247:1149, owner: sdkInfoIntegration.processEvent._processEvent, offset: 0x00dcdd97, size: 43 bytes, params: 3, frame: 15
|
|
const env0_0 = a0;
|
|
const env0_1 = a1;
|
|
return env2_3(this, undefined, undefined, _fun12535);
|
|
}
|
|
|
|
function step_12522Adopt(a0) { // fn#12523, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1247:341, owner: step_12522.adopt, offset: 0x00dcdbd0, size: 54 bytes, params: 2, frame: 12
|
|
const value = a0;
|
|
return value instanceof env2_2 ? value : new env2_2(_fun12524);
|
|
}
|
|
|
|
function* _fun12530() { // fn#12530, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1247:888, offset: 0x00dcdce0, size: 156 bytes, params: 1, frame: 15
|
|
var binding;
|
|
var binding2;
|
|
var property;
|
|
var value4;
|
|
var NATIVE;
|
|
var fetchNativeSdkInfo;
|
|
var nativeSdkInfo;
|
|
var value5;
|
|
var value6;
|
|
var error;
|
|
var debug;
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
value = environment.__proto__.__proto__;
|
|
if (!env2_1) {
|
|
try {
|
|
binding = env4_0;
|
|
} catch (error) {
|
|
binding = env4_0;
|
|
debug = binding(env4_1[4]).debug;
|
|
debug.warn('Could not fetch native sdk info.', error);
|
|
return env2_2;
|
|
}
|
|
try {
|
|
binding2 = env4_1;
|
|
} catch (error) {
|
|
binding = env4_0;
|
|
debug = binding(env4_1[4]).debug;
|
|
debug.warn('Could not fetch native sdk info.', error);
|
|
return env2_2;
|
|
}
|
|
try {
|
|
property = binding2[3];
|
|
} catch (error) {
|
|
binding = env4_0;
|
|
debug = binding(env4_1[4]).debug;
|
|
debug.warn('Could not fetch native sdk info.', error);
|
|
return env2_2;
|
|
}
|
|
try {
|
|
value4 = binding(property);
|
|
} catch (error) {
|
|
binding = env4_0;
|
|
debug = binding(env4_1[4]).debug;
|
|
debug.warn('Could not fetch native sdk info.', error);
|
|
return env2_2;
|
|
}
|
|
try {
|
|
NATIVE = value4.NATIVE;
|
|
} catch (error) {
|
|
binding = env4_0;
|
|
debug = binding(env4_1[4]).debug;
|
|
debug.warn('Could not fetch native sdk info.', error);
|
|
return env2_2;
|
|
}
|
|
try {
|
|
fetchNativeSdkInfo = NATIVE.fetchNativeSdkInfo;
|
|
} catch (error) {
|
|
binding = env4_0;
|
|
debug = binding(env4_1[4]).debug;
|
|
debug.warn('Could not fetch native sdk info.', error);
|
|
return env2_2;
|
|
}
|
|
try {
|
|
nativeSdkInfo = Reflect.apply(fetchNativeSdkInfo, NATIVE, []);
|
|
} catch (error) {
|
|
binding = env4_0;
|
|
debug = binding(env4_1[4]).debug;
|
|
debug.warn('Could not fetch native sdk info.', error);
|
|
return env2_2;
|
|
}
|
|
yield nativeSdkInfo;
|
|
try {
|
|
value5 = undefined;
|
|
value6 = false;
|
|
} catch (error) {
|
|
binding = env4_0;
|
|
debug = binding(env4_1[4]).debug;
|
|
debug.warn('Could not fetch native sdk info.', error);
|
|
return env2_2;
|
|
}
|
|
if (value6) {
|
|
return value5;
|
|
}
|
|
try {
|
|
env2_2 = value5;
|
|
} catch (error) {
|
|
binding = env4_0;
|
|
debug = binding(env4_1[4]).debug;
|
|
debug.warn('Could not fetch native sdk info.', error);
|
|
return env2_2;
|
|
}
|
|
try {
|
|
env2_1 = true;
|
|
} catch (error) {
|
|
binding = env4_0;
|
|
debug = binding(env4_1[4]).debug;
|
|
debug.warn('Could not fetch native sdk info.', error);
|
|
}
|
|
}
|
|
return env2_2;
|
|
}
|
|
|
|
function* _fun12535() { // fn#12535, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1247:1206, offset: 0x00dcddcb, size: 274 bytes, params: 1, frame: 21
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
value = environment.__proto__;
|
|
yield env1_1();
|
|
const value3 = undefined;
|
|
if (false) {
|
|
return value3;
|
|
}
|
|
let binding = env1_0;
|
|
let platform = binding.platform;
|
|
platform = !platform ? 'javascript' : platform;
|
|
binding.platform = platform;
|
|
binding = env1_0;
|
|
let sdk = binding.sdk;
|
|
let r3 = sdk || ({});
|
|
binding.sdk = r3;
|
|
binding = env1_0;
|
|
sdk = binding.sdk;
|
|
let name = binding.sdk.name;
|
|
name = !name ? env4_4.name : name;
|
|
sdk.name = name;
|
|
binding = env1_0;
|
|
sdk = binding.sdk;
|
|
let version = binding.sdk.version;
|
|
version = !version ? env4_4.version : version;
|
|
sdk.version = version;
|
|
binding = env1_0;
|
|
sdk = binding.sdk;
|
|
const items = [];
|
|
const concat = items.concat;
|
|
const value9 = env4_2(binding.sdk.packages || []);
|
|
binding = env4_2;
|
|
r3 = value3 && [value3];
|
|
r3 = !r3 ? [] : r3;
|
|
sdk.packages = Reflect.apply(concat, items, [value9, binding(r3)]);
|
|
return env1_0;
|
|
}
|
|
|