261 lines
12 KiB
JavaScript
261 lines
12 KiB
JavaScript
/* Metro module 146; source: unknown; dependencies: [] */
|
|
function _fun2351(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#2351, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:171:6, offset: 0x00c7ea2d, size: 67 bytes, params: 8, frame: 17
|
|
const deepDiffer2 = deepDiffer;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
deepDiffer2.unstable_setLogListeners = function(a0) {
|
|
env0_0 = a0;
|
|
};
|
|
exports.default = deepDiffer2;
|
|
function deepDiffer(a0, a1) { // fn#2352, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:171:49, offset: 0x00c7ea70, size: 511 bytes, params: 3, frame: 28
|
|
var r1;
|
|
var r5;
|
|
var r7;
|
|
var r11;
|
|
var r9;
|
|
var r6;
|
|
var unsafelyIgnoreFunctions;
|
|
var value3;
|
|
var value5;
|
|
var constructor;
|
|
var constructor2;
|
|
var Array;
|
|
var isArray;
|
|
var value8;
|
|
var properties;
|
|
var properties2;
|
|
var properties3;
|
|
var propertyName;
|
|
var propertyName2;
|
|
var deepDifferBinding;
|
|
var property;
|
|
var property2;
|
|
var properties4;
|
|
var properties5;
|
|
var propertyName3;
|
|
var length;
|
|
var length2;
|
|
var value9;
|
|
var property3;
|
|
var value10;
|
|
var binding;
|
|
var value11;
|
|
var onDifferentFunctionsIgnored;
|
|
var value12;
|
|
var value13;
|
|
var value14;
|
|
var name;
|
|
var name2;
|
|
let value = undefined;
|
|
const value2 = -1;
|
|
reducibleJoin3: while (true) {
|
|
if (arguments.length > 2) {
|
|
if (value === arguments[2]) {
|
|
r1 = value2;
|
|
break reducibleJoin3;
|
|
}
|
|
value3 = arguments[2];
|
|
r1 = value3;
|
|
break reducibleJoin3;
|
|
}
|
|
r1 = value2;
|
|
break reducibleJoin3;
|
|
}
|
|
const value4 = typeof r1 === 'number';
|
|
reducibleJoin7: while (true) {
|
|
if (value4) {
|
|
reducibleJoin6: while (true) {
|
|
if (arguments.length > 3) {
|
|
value5 = arguments[3];
|
|
r5 = value5;
|
|
break reducibleJoin6;
|
|
}
|
|
r5 = value;
|
|
break reducibleJoin6;
|
|
}
|
|
r7 = r5;
|
|
break reducibleJoin7;
|
|
}
|
|
r7 = r1;
|
|
break reducibleJoin7;
|
|
}
|
|
const r8 = value4 ? r1 : value2;
|
|
const value6 = 0;
|
|
if (value6 === r8) {
|
|
return true;
|
|
}
|
|
if (a0 === a1) {
|
|
return false;
|
|
}
|
|
const value7 = typeof a0;
|
|
if (value7 === 'function') {
|
|
reducibleJoin12: while (true) {
|
|
if (typeof a1 === 'function') {
|
|
reducibleJoin39: while (true) {
|
|
if (r7 == null) {
|
|
unsafelyIgnoreFunctions = value;
|
|
break reducibleJoin39;
|
|
}
|
|
unsafelyIgnoreFunctions = r7.unsafelyIgnoreFunctions;
|
|
break reducibleJoin39;
|
|
}
|
|
reducibleJoin48: while (true) {
|
|
if (unsafelyIgnoreFunctions != null) {
|
|
break reducibleJoin48;
|
|
}
|
|
value = environment;
|
|
binding = env0_0;
|
|
value11 = !binding;
|
|
reducibleJoin42: while (true) {
|
|
if (binding) {
|
|
onDifferentFunctionsIgnored = env0_0.onDifferentFunctionsIgnored;
|
|
value12 = !onDifferentFunctionsIgnored;
|
|
r5 = value12;
|
|
break reducibleJoin42;
|
|
}
|
|
r5 = value11;
|
|
break reducibleJoin42;
|
|
}
|
|
reducibleJoin46: while (true) {
|
|
if (r5) {
|
|
break reducibleJoin46;
|
|
}
|
|
reducibleJoin45: while (true) {
|
|
if (r7) {
|
|
value13 = 'unsafelyIgnoreFunctions' in r7;
|
|
r1 = value13;
|
|
break reducibleJoin45;
|
|
}
|
|
r1 = r7;
|
|
break reducibleJoin45;
|
|
}
|
|
r5 = r1;
|
|
break reducibleJoin46;
|
|
}
|
|
value14 = true;
|
|
if (r5) {
|
|
unsafelyIgnoreFunctions = value14;
|
|
break reducibleJoin48;
|
|
}
|
|
binding = env0_0;
|
|
onDifferentFunctionsIgnored = binding.onDifferentFunctionsIgnored;
|
|
name = a0.name;
|
|
name2 = a1.name;
|
|
Reflect.apply(onDifferentFunctionsIgnored, binding, [name, name2]);
|
|
unsafelyIgnoreFunctions = value14;
|
|
break reducibleJoin48;
|
|
}
|
|
return !unsafelyIgnoreFunctions;
|
|
}
|
|
break reducibleJoin12;
|
|
}
|
|
}
|
|
if (value7 === 'object') {
|
|
reducibleJoin36: while (true) {
|
|
if (a0 !== null) {
|
|
if (typeof a1 === 'object') {
|
|
reducibleJoin35: while (true) {
|
|
if (a1 !== null) {
|
|
constructor = a0.constructor;
|
|
constructor2 = a1.constructor;
|
|
if (constructor !== constructor2) {
|
|
return true;
|
|
}
|
|
Array = global.Array;
|
|
isArray = Array.isArray;
|
|
if (Reflect.apply(isArray, Array, [a0])) {
|
|
length = a0.length;
|
|
length2 = a1.length;
|
|
if (length2 !== length) {
|
|
return true;
|
|
}
|
|
value9 = environment;
|
|
reducibleJoin31: while (true) {
|
|
if (!(value6 < length)) {
|
|
break reducibleJoin31;
|
|
}
|
|
r6 = value6;
|
|
reducibleLoop29: while (true) {
|
|
deepDifferBinding = deepDiffer;
|
|
property = a0[r6];
|
|
property3 = a1[r6];
|
|
if (deepDifferBinding(property, property3, r8 - 1, r7)) {
|
|
return true;
|
|
}
|
|
value10 = typeof r6 === 'bigint' ? r6 + 1n : +r6 + 1;
|
|
if (value10 < length) {
|
|
r6 = value10;
|
|
continue reducibleLoop29;
|
|
}
|
|
break reducibleJoin31;
|
|
}
|
|
}
|
|
} else {
|
|
value8 = environment;
|
|
properties = Object.keys(a0);
|
|
properties2 = 0;
|
|
properties3 = properties.length;
|
|
reducibleJoin31: while (true) {
|
|
reducibleJoin22: while (true) {
|
|
if (properties === value) {
|
|
break reducibleJoin22;
|
|
}
|
|
r11 = properties2;
|
|
reducibleLoop19: while (true) {
|
|
propertyName = properties[r11];
|
|
propertyName2 = r11 + 1;
|
|
if (propertyName === value) {
|
|
break reducibleJoin22;
|
|
}
|
|
deepDifferBinding = deepDiffer;
|
|
property = a0[propertyName];
|
|
property2 = a1[propertyName];
|
|
if (deepDifferBinding(property, property2, r8 - 1, r7)) {
|
|
return true;
|
|
}
|
|
r11 = propertyName2;
|
|
continue reducibleLoop19;
|
|
}
|
|
}
|
|
properties = Object.keys(a1);
|
|
properties4 = 0;
|
|
properties5 = properties.length;
|
|
if (properties === value) {
|
|
break reducibleJoin31;
|
|
}
|
|
r9 = properties4;
|
|
reducibleLoop23: while (true) {
|
|
propertyName = properties[r9];
|
|
propertyName3 = r9 + 1;
|
|
if (propertyName === value) {
|
|
break reducibleJoin31;
|
|
}
|
|
if (value !== a0[propertyName]) {
|
|
r9 = propertyName3;
|
|
continue reducibleLoop23;
|
|
}
|
|
if (value !== a1[propertyName]) {
|
|
return true;
|
|
}
|
|
r9 = propertyName3;
|
|
continue reducibleLoop23;
|
|
}
|
|
}
|
|
}
|
|
return false;
|
|
}
|
|
break reducibleJoin35;
|
|
}
|
|
}
|
|
return true;
|
|
}
|
|
break reducibleJoin36;
|
|
}
|
|
}
|
|
return a0 !== a1;
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun2351, 146, []) /* metro module 146 */;
|