254 lines
11 KiB
React
254 lines
11 KiB
React
/* Metro module 1134; source: unknown; dependencies: [65, 1009, 826] */
|
|
function _fun12620(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#12620, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1261:6, offset: 0x00dd0d27, size: 148 bytes, params: 8, frame: 18
|
|
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(_fun12625);
|
|
return value2 instanceof Object ? value2 : value;
|
|
};
|
|
}
|
|
exports.viewHierarchyIntegration = function() {
|
|
return {name: 'ViewHierarchy', setupOnce: _fun12632, processEvent: processEvent_12621};
|
|
};
|
|
}
|
|
|
|
function processEvent_12621(a0, a1) { // fn#12621, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1261:553, offset: 0x00dd0dbb, size: 43 bytes, params: 3, frame: 15
|
|
const env0_0 = a0;
|
|
const env0_1 = a1;
|
|
return env0_3(this, undefined, undefined, _fun12623);
|
|
}
|
|
|
|
function _fun12624(a0, a1, a2, a3) { // fn#12624, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1261:132, offset: 0x00dd0f2e, 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(_fun12625);
|
|
return r2 instanceof Object ? r2 : value;
|
|
}
|
|
|
|
function viewHierarchyIntegration() { // fn#12631, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1261:1017, offset: 0x00dd105e, size: 38 bytes, params: 1, frame: 2
|
|
return {name: 'ViewHierarchy', setupOnce: function() {
|
|
}, processEvent: processEvent_12621};
|
|
}
|
|
|
|
function* _fun12623() { // fn#12623, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1261:615, offset: 0x00dd0def, size: 319 bytes, params: 1, frame: 19
|
|
var r5;
|
|
var attachments;
|
|
var r2;
|
|
var value5;
|
|
var binding;
|
|
var binding2;
|
|
var property;
|
|
var value6;
|
|
var NATIVE;
|
|
var fetchViewHierarchy;
|
|
var viewHierarchy;
|
|
var value7;
|
|
var value8;
|
|
var error;
|
|
var debug;
|
|
var items2;
|
|
var concat;
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
value = undefined;
|
|
const exception = require.exception;
|
|
env1_2 = exception;
|
|
const value4 = null;
|
|
if (value4 === exception || value === env1_2 ? value : env1_2.values) {
|
|
if (require.exception.values.length > 0) {
|
|
value5 = environment.__proto__.__proto__;
|
|
try {
|
|
binding = env2_0;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
debug = binding(env2_1[2]).debug;
|
|
debug.error('Failed to get view hierarchy from native.', error);
|
|
r5 = value4;
|
|
if (r5) {
|
|
items2 = [{filename: env2_4, contentType: env2_5, attachmentType: env2_6, data: r5}];
|
|
concat = items2.concat;
|
|
binding = env2_2;
|
|
attachments = value4 == dependencyMap ? value : dependencyMap.attachments;
|
|
r2 = attachments || [];
|
|
dependencyMap.attachments = Reflect.apply(concat, items2, [binding(r2)]);
|
|
}
|
|
return require;
|
|
}
|
|
try {
|
|
binding2 = env2_1;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
debug = binding(env2_1[2]).debug;
|
|
debug.error('Failed to get view hierarchy from native.', error);
|
|
r5 = value4;
|
|
if (r5) {
|
|
items2 = [{filename: env2_4, contentType: env2_5, attachmentType: env2_6, data: r5}];
|
|
concat = items2.concat;
|
|
binding = env2_2;
|
|
attachments = value4 == dependencyMap ? value : dependencyMap.attachments;
|
|
r2 = attachments || [];
|
|
dependencyMap.attachments = Reflect.apply(concat, items2, [binding(r2)]);
|
|
}
|
|
return require;
|
|
}
|
|
try {
|
|
property = binding2[1];
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
debug = binding(env2_1[2]).debug;
|
|
debug.error('Failed to get view hierarchy from native.', error);
|
|
r5 = value4;
|
|
if (r5) {
|
|
items2 = [{filename: env2_4, contentType: env2_5, attachmentType: env2_6, data: r5}];
|
|
concat = items2.concat;
|
|
binding = env2_2;
|
|
attachments = value4 == dependencyMap ? value : dependencyMap.attachments;
|
|
r2 = attachments || [];
|
|
dependencyMap.attachments = Reflect.apply(concat, items2, [binding(r2)]);
|
|
}
|
|
return require;
|
|
}
|
|
try {
|
|
value6 = binding(property);
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
debug = binding(env2_1[2]).debug;
|
|
debug.error('Failed to get view hierarchy from native.', error);
|
|
r5 = value4;
|
|
if (r5) {
|
|
items2 = [{filename: env2_4, contentType: env2_5, attachmentType: env2_6, data: r5}];
|
|
concat = items2.concat;
|
|
binding = env2_2;
|
|
attachments = value4 == dependencyMap ? value : dependencyMap.attachments;
|
|
r2 = attachments || [];
|
|
dependencyMap.attachments = Reflect.apply(concat, items2, [binding(r2)]);
|
|
}
|
|
return require;
|
|
}
|
|
try {
|
|
NATIVE = value6.NATIVE;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
debug = binding(env2_1[2]).debug;
|
|
debug.error('Failed to get view hierarchy from native.', error);
|
|
r5 = value4;
|
|
if (r5) {
|
|
items2 = [{filename: env2_4, contentType: env2_5, attachmentType: env2_6, data: r5}];
|
|
concat = items2.concat;
|
|
binding = env2_2;
|
|
attachments = value4 == dependencyMap ? value : dependencyMap.attachments;
|
|
r2 = attachments || [];
|
|
dependencyMap.attachments = Reflect.apply(concat, items2, [binding(r2)]);
|
|
}
|
|
return require;
|
|
}
|
|
try {
|
|
fetchViewHierarchy = NATIVE.fetchViewHierarchy;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
debug = binding(env2_1[2]).debug;
|
|
debug.error('Failed to get view hierarchy from native.', error);
|
|
r5 = value4;
|
|
if (r5) {
|
|
items2 = [{filename: env2_4, contentType: env2_5, attachmentType: env2_6, data: r5}];
|
|
concat = items2.concat;
|
|
binding = env2_2;
|
|
attachments = value4 == dependencyMap ? value : dependencyMap.attachments;
|
|
r2 = attachments || [];
|
|
dependencyMap.attachments = Reflect.apply(concat, items2, [binding(r2)]);
|
|
}
|
|
return require;
|
|
}
|
|
try {
|
|
viewHierarchy = Reflect.apply(fetchViewHierarchy, NATIVE, []);
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
debug = binding(env2_1[2]).debug;
|
|
debug.error('Failed to get view hierarchy from native.', error);
|
|
r5 = value4;
|
|
if (r5) {
|
|
items2 = [{filename: env2_4, contentType: env2_5, attachmentType: env2_6, data: r5}];
|
|
concat = items2.concat;
|
|
binding = env2_2;
|
|
attachments = value4 == dependencyMap ? value : dependencyMap.attachments;
|
|
r2 = attachments || [];
|
|
dependencyMap.attachments = Reflect.apply(concat, items2, [binding(r2)]);
|
|
}
|
|
return require;
|
|
}
|
|
yield viewHierarchy;
|
|
try {
|
|
value7 = undefined;
|
|
value8 = false;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
debug = binding(env2_1[2]).debug;
|
|
debug.error('Failed to get view hierarchy from native.', error);
|
|
r5 = value4;
|
|
if (r5) {
|
|
items2 = [{filename: env2_4, contentType: env2_5, attachmentType: env2_6, data: r5}];
|
|
concat = items2.concat;
|
|
binding = env2_2;
|
|
attachments = value4 == dependencyMap ? value : dependencyMap.attachments;
|
|
r2 = attachments || [];
|
|
dependencyMap.attachments = Reflect.apply(concat, items2, [binding(r2)]);
|
|
}
|
|
return require;
|
|
}
|
|
if (value8) {
|
|
return value7;
|
|
}
|
|
r5 = value7;
|
|
if (r5) {
|
|
items2 = [{filename: env2_4, contentType: env2_5, attachmentType: env2_6, data: r5}];
|
|
dependencyMap.attachments = items2.concat(env2_2((value4 == dependencyMap ? value : dependencyMap.attachments) || []));
|
|
}
|
|
return require;
|
|
}
|
|
}
|
|
return require;
|
|
}
|
|
|
|
function _fun12625(a0, a1) { // fn#12625, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1261:178, offset: 0x00dd0f79, size: 98 bytes, params: 3, frame: 16
|
|
const env0_0 = a0;
|
|
const env0_1 = a1;
|
|
const closure = step_12628;
|
|
const value2 = importAll.apply(env0_0, require || []);
|
|
closure(value2.next());
|
|
}
|
|
|
|
function step_12628(a0) { // fn#12628, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1261:306, offset: 0x00dd0fdb, size: 77 bytes, params: 2, frame: 14
|
|
var value;
|
|
if (a0.done) {
|
|
env0_0(a0.value);
|
|
} else {
|
|
value = a0.value;
|
|
value = step_12628Adopt(value);
|
|
value.then(fulfilled_12626, rejected_12627);
|
|
}
|
|
}
|
|
|
|
function step_12628Adopt(a0) { // fn#12629, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1261:341, owner: step_12628.adopt, offset: 0x00dd1028, size: 54 bytes, params: 2, frame: 12
|
|
const value = a0;
|
|
return value instanceof env2_2 ? value : new env2_2(_fun12630);
|
|
}
|
|
|