Files
discord-decomp/sources/by-id/module-01148-hoistNonReactStatics.js
T
2026-07-28 01:06:53 +03:00

261 lines
11 KiB
JavaScript

/* Metro module 1148; source: unknown; dependencies: [] */
function _fun12730(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#12730, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1275:6, offset: 0x00dd3ba2, size: 378 bytes, params: 8, frame: 18
let Object = global.Object;
let defineProperty = Object.defineProperty;
let Symbol = global.Symbol;
Reflect.apply(defineProperty, Object, [exports, Symbol.toStringTag, {value: 'Module'}]);
const env0_0 = {'childContextTypes': true, 'contextType': true, 'contextTypes': true, 'defaultProps': true,
'displayName': true, 'getDefaultProps': true, 'getDerivedStateFromError': true,
'getDerivedStateFromProps': true, 'mixins': true, 'propTypes': true, 'type': true};
const env0_1 = {'name': true, 'length': true, 'prototype': true, 'caller': true, 'callee': true, 'arguments': true,
'arity': true};
Symbol = global.Symbol;
let value = Symbol.for('react.forward_ref');
Symbol = global.Symbol;
const value2 = Symbol.for('react.memo');
const object2 = {};
object2[value] = {'$$typeof': true, 'render': true, 'defaultProps': true, 'displayName': true, 'propTypes': true};
object2[value2] = {'$$typeof': true, 'compare': true, 'defaultProps': true, 'displayName': true, 'propTypes': true,
'type': true};
Object = global.Object;
defineProperty = Object.defineProperty;
let bind = defineProperty.bind;
Object = global.Object;
const env0_5 = Reflect.apply(bind, defineProperty, [Object]);
Object = global.Object;
const getOwnPropertyNames = Object.getOwnPropertyNames;
bind = getOwnPropertyNames.bind;
Object = global.Object;
const env0_6 = Reflect.apply(bind, getOwnPropertyNames, [Object]);
Object = global.Object;
const getOwnPropertySymbols = Object.getOwnPropertySymbols;
value = undefined;
const env0_7 = getOwnPropertySymbols == null ? value : getOwnPropertySymbols.bind(global.Object);
Object = global.Object;
const getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
bind = getOwnPropertyDescriptor.bind;
Object = global.Object;
const env0_8 = Reflect.apply(bind, getOwnPropertyDescriptor, [Object]);
Object = global.Object;
const getPrototypeOf = Object.getPrototypeOf;
bind = getPrototypeOf.bind;
Object = global.Object;
const env0_9 = Reflect.apply(bind, getPrototypeOf, [Object]);
Object = global.Object;
const env0_10 = Object.prototype;
exports.hoistNonReactStatics = hoistNonReactStatics;
return value;
function getStatics(a0) { // fn#12731, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1275:522, offset: 0x00dd3d1c, size: 90 bytes, params: 2, frame: 4
if (typeof a0 === 'object' && a0 !== null && a0.$$typeof === env0_3) {
return env0_2;
}
const $$typeof = a0.$$typeof;
let r0 = $$typeof && env0_4[$$typeof];
r0 = !r0 ? env0_0 : r0;
return r0;
}
function hoistNonReactStatics(a0, a1, a2) { // fn#12732, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1275:1019, offset: 0x00dd3d76, size: 322 bytes, params: 4, frame: 27
var r1;
var r2;
var value;
var value2;
var value3;
var value4;
var concat;
var value5;
var getStaticsBinding;
var staticsBinding;
var staticsBinding2;
var iterator;
var iterator2;
var item;
var item2;
var String;
var value8;
var binding;
var property;
var value9;
var value10;
var value11;
var value12;
var error;
exceptionLanding40: while (true) {
reducibleJoin41: while (true) {
if (typeof a1 === 'string') {
break reducibleJoin41;
}
value = environment;
reducibleJoin6: while (true) {
if (prototype) {
value2 = env0_9(a1);
reducibleJoin4: while (true) {
if (value2) {
value3 = value2 !== prototype;
r1 = value3;
break reducibleJoin4;
}
r1 = value2;
break reducibleJoin4;
}
if (r1) {
hoistNonReactStatics(a0, value2);
break reducibleJoin6;
}
break reducibleJoin6;
}
break reducibleJoin6;
}
value4 = env0_6(a1);
reducibleJoin8: while (true) {
if (env0_7) {
concat = value4.concat;
value5 = Reflect.apply(concat, value4, [env0_7(a1)]);
r1 = value5;
break reducibleJoin8;
}
r1 = value4;
break reducibleJoin8;
}
getStaticsBinding = getStatics;
staticsBinding = getStaticsBinding(a0);
staticsBinding2 = getStaticsBinding(a1);
iterator = r1[Symbol.iterator]();
iterator2 = iterator.next;
r2 = iterator;
reducibleLoop9: while (true) {
exceptionLanding39: while (true) {
item2 = Reflect.apply(iterator2, r2, []);
item = item2.value;
item2 = item2.done ? undefined : r2;
if (item2 === undefined) {
break reducibleJoin41;
}
try {
String = global.String;
} catch (error) {
break exceptionLanding40;
}
try {
value8 = String(item);
} catch (error) {
break exceptionLanding40;
}
try {
binding = env0_1;
} catch (error) {
break exceptionLanding40;
}
try {
property = binding[value8];
} catch (error) {
break exceptionLanding40;
}
if (property) {
r2 = item2;
continue reducibleLoop9;
}
try {
value9 = staticsBinding2 == null;
} catch (error) {
break exceptionLanding40;
}
if (!value9) {
try {
property = staticsBinding2[value8];
} catch (error) {
break exceptionLanding40;
}
reducibleJoin22: while (true) {
if (property) {
r2 = item2;
continue reducibleLoop9;
}
break reducibleJoin22;
}
}
try {
value10 = staticsBinding == null;
} catch (error) {
break exceptionLanding40;
}
if (!value10) {
try {
property = staticsBinding[value8];
} catch (error) {
break exceptionLanding40;
}
reducibleJoin27: while (true) {
if (property) {
r2 = item2;
continue reducibleLoop9;
}
break reducibleJoin27;
}
}
try {
binding = env0_8;
} catch (error) {
break exceptionLanding40;
}
try {
value11 = binding(a0, item);
} catch (error) {
break exceptionLanding40;
}
if (value11) {
r2 = item2;
continue reducibleLoop9;
}
try {
binding = env0_8;
} catch (error) {
break exceptionLanding40;
}
try {
value12 = binding(a1, item);
} catch (error) {
break exceptionLanding40;
}
if (value12) {
try {
try {
binding = env0_5;
} catch (error) {
break exceptionLanding39;
}
} catch (error) {
break exceptionLanding40;
}
try {
try {
binding(a0, item, value12);
} catch (error) {
break exceptionLanding39;
}
} catch (error) {
break exceptionLanding40;
}
r2 = item2;
continue reducibleLoop9;
}
r2 = item2;
continue reducibleLoop9;
}
r2 = item2;
continue reducibleLoop9;
}
}
return a0;
}
try {
item2.return();
} catch {
}
throw error;
}
}
global.__d(_fun12730, 1148, []) /* metro module 1148 */;