Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,692 @@
|
||||
/* Metro module 4005; source: modules/client_themes/CustomThemesRandomUtils.tsx; dependencies: [674, 2] */
|
||||
function _fun32969(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#32969, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4163:6, offset: 0x010239f5, size: 305 bytes, params: 8, frame: 19
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = [0, 45, 90, 135, 180, 225, 270, 315];
|
||||
const env0_4 = [20, 40, 60, 80];
|
||||
const object = {TWO_COLOR: 'two-color', ANALOGOUS: 'analogous', COMPLEMENTARY: 'complementary',
|
||||
SPLIT_COMPLEMENTARY: 'split-complementary', TRIADIC: 'triadic'};
|
||||
const ANALOGOUS = object.ANALOGOUS;
|
||||
const items2 = [ANALOGOUS];
|
||||
const COMPLEMENTARY = object.COMPLEMENTARY;
|
||||
items2[1] = COMPLEMENTARY;
|
||||
const SPLIT_COMPLEMENTARY = object.SPLIT_COMPLEMENTARY;
|
||||
items2[2] = SPLIT_COMPLEMENTARY;
|
||||
const TRIADIC = object.TRIADIC;
|
||||
items2[3] = TRIADIC;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/client_themes/CustomThemesRandomUtils.tsx');
|
||||
exports.COLOR_PALETTE = ['#94E0CF', '#9AF0B1', '#9A90FF', '#9A53FF', '#FDA6E4', '#FFE6C0', '#EFB4AA', '#56B69F',
|
||||
'#29C566', '#5348CA', '#6D24D4', '#CA48C8', '#F0AE29', '#DF4232'];
|
||||
exports.ColorType = {SOLID: 'solid', GRADIENT: 'gradient'};
|
||||
exports.GradientType = object;
|
||||
exports.generateRandomColorOptions = generateRandomColorOptions;
|
||||
}
|
||||
|
||||
function generateRandomColorOptions() { // fn#32970, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4163:751, offset: 0x01023b26, size: 528 bytes, params: 1, frame: 19
|
||||
var r5;
|
||||
var value6;
|
||||
var value10;
|
||||
var value11;
|
||||
var value12;
|
||||
var value13;
|
||||
var Math8;
|
||||
var value14;
|
||||
var value15;
|
||||
let binding = env0_4;
|
||||
let Math = global.Math;
|
||||
let floor = Math.floor;
|
||||
const Math2 = global.Math;
|
||||
const value2 = Math2.random();
|
||||
let length = binding.length;
|
||||
const property = binding[Reflect.apply(floor, Math, [value2 * length])];
|
||||
binding = env0_3;
|
||||
Math = global.Math;
|
||||
floor = Math.floor;
|
||||
const Math3 = global.Math;
|
||||
const property2 = binding[Reflect.apply(floor, Math, [Math3.random() * binding.length])];
|
||||
Math = global.Math;
|
||||
reducibleJoin2: while (true) {
|
||||
if (Math.random() < 0.2) {
|
||||
value6 = 'path1';
|
||||
r5 = value6;
|
||||
break reducibleJoin2;
|
||||
}
|
||||
r5 = 'path2';
|
||||
break reducibleJoin2;
|
||||
}
|
||||
if (r5 === 'path1') {
|
||||
Math = global.Math;
|
||||
floor = Math.floor;
|
||||
value10 = global.Math.random();
|
||||
binding = env0_2;
|
||||
length = binding.length;
|
||||
value11 = Reflect.apply(floor, Math, [value10 * length]);
|
||||
Math = global.Math;
|
||||
floor = Math.floor;
|
||||
value12 = global.Math.random();
|
||||
length = binding.length;
|
||||
value13 = Reflect.apply(floor, Math, [value12 * length]);
|
||||
if (value13 !== value11) {
|
||||
r5 = value13;
|
||||
} else {
|
||||
reducibleLoop5: while (true) {
|
||||
Math = global.Math;
|
||||
floor = Math.floor;
|
||||
Math8 = global.Math;
|
||||
value14 = Math8.random();
|
||||
length = env0_2.length;
|
||||
value15 = Reflect.apply(floor, Math, [value14 * length]);
|
||||
if (value15 === value11) {
|
||||
continue reducibleLoop5;
|
||||
}
|
||||
r5 = value15;
|
||||
break reducibleLoop5;
|
||||
}
|
||||
}
|
||||
binding = env0_2;
|
||||
return {type: env0_5.GRADIENT, colors: [binding[value11], binding[r5]], angle: property2, intensity: property,
|
||||
gradientType: env0_6.TWO_COLOR};
|
||||
}
|
||||
binding = env0_2;
|
||||
Math = global.Math;
|
||||
floor = Math.floor;
|
||||
const Math4 = global.Math;
|
||||
const property3 = binding[Reflect.apply(floor, Math, [Math4.random() * binding.length])];
|
||||
binding = env0_7;
|
||||
Math = global.Math;
|
||||
floor = Math.floor;
|
||||
const Math5 = global.Math;
|
||||
const property4 = binding[Reflect.apply(floor, Math, [Math5.random() * binding.length])];
|
||||
const value9 = generateColorHarmony(property3, property4);
|
||||
const GRADIENT = env0_5.GRADIENT;
|
||||
return {type: GRADIENT, colors: value9, angle: property2, intensity: property, gradientType: property4};
|
||||
}
|
||||
|
||||
function generateColorHarmony(a0, a1) { // fn#32971, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4163:1230, owner: generateRandomColorOptions.generateColorHarmony, offset: 0x01023d36, size: 690 bytes, params: 3, frame: 27
|
||||
var property;
|
||||
var defaultImport;
|
||||
var value2;
|
||||
var get;
|
||||
var value3;
|
||||
var value4;
|
||||
var value5;
|
||||
var binding;
|
||||
var ANALOGOUS;
|
||||
var value6;
|
||||
var COMPLEMENTARY;
|
||||
var value7;
|
||||
var SPLIT_COMPLEMENTARY;
|
||||
var value8;
|
||||
var TRIADIC;
|
||||
var value9;
|
||||
var items2;
|
||||
var hsl;
|
||||
var value10;
|
||||
var value11;
|
||||
var hex;
|
||||
var value12;
|
||||
var value13;
|
||||
var value14;
|
||||
var value15;
|
||||
var value16;
|
||||
var value17;
|
||||
var value18;
|
||||
var value19;
|
||||
var defaultImport2;
|
||||
var mix;
|
||||
var value20;
|
||||
var value21;
|
||||
var value22;
|
||||
var value23;
|
||||
var error;
|
||||
let value = environment.__proto__;
|
||||
try {
|
||||
} catch (error) {
|
||||
return [a0];
|
||||
}
|
||||
try {
|
||||
} catch (error) {
|
||||
return [a0];
|
||||
}
|
||||
try {
|
||||
property = dependencyMap[0];
|
||||
} catch (error) {
|
||||
return [a0];
|
||||
}
|
||||
try {
|
||||
defaultImport = importDefault(property);
|
||||
} catch (error) {
|
||||
return [a0];
|
||||
}
|
||||
try {
|
||||
value2 = defaultImport(a0);
|
||||
} catch (error) {
|
||||
return [a0];
|
||||
}
|
||||
try {
|
||||
get = value2.get;
|
||||
} catch (error) {
|
||||
return [a0];
|
||||
}
|
||||
try {
|
||||
value3 = Reflect.apply(get, value2, ['hsl.h']);
|
||||
} catch (error) {
|
||||
return [a0];
|
||||
}
|
||||
try {
|
||||
get = value2.get;
|
||||
} catch (error) {
|
||||
return [a0];
|
||||
}
|
||||
try {
|
||||
value4 = Reflect.apply(get, value2, ['hsl.s']);
|
||||
} catch (error) {
|
||||
return [a0];
|
||||
}
|
||||
try {
|
||||
get = value2.get;
|
||||
} catch (error) {
|
||||
return [a0];
|
||||
}
|
||||
try {
|
||||
value5 = Reflect.apply(get, value2, ['hsl.l']);
|
||||
} catch (error) {
|
||||
return [a0];
|
||||
}
|
||||
try {
|
||||
binding = env1_6;
|
||||
} catch (error) {
|
||||
return [a0];
|
||||
}
|
||||
try {
|
||||
ANALOGOUS = binding.ANALOGOUS;
|
||||
} catch (error) {
|
||||
return [a0];
|
||||
}
|
||||
try {
|
||||
value6 = ANALOGOUS === a1;
|
||||
} catch (error) {
|
||||
return [a0];
|
||||
}
|
||||
if (value6) {
|
||||
try {
|
||||
} catch (error) {
|
||||
return [a0];
|
||||
}
|
||||
try {
|
||||
} catch (error) {
|
||||
return [a0];
|
||||
}
|
||||
try {
|
||||
property = dependencyMap[0];
|
||||
} catch (error) {
|
||||
return [a0];
|
||||
}
|
||||
try {
|
||||
value = importDefault(property);
|
||||
} catch (error) {
|
||||
return [a0];
|
||||
}
|
||||
try {
|
||||
hsl = value.hsl;
|
||||
} catch (error) {
|
||||
return [a0];
|
||||
}
|
||||
try {
|
||||
value22 = value3 - 30;
|
||||
} catch (error) {
|
||||
return [a0];
|
||||
}
|
||||
try {
|
||||
value = Reflect.apply(hsl, value, [value22, value4, value5]);
|
||||
} catch (error) {
|
||||
return [a0];
|
||||
}
|
||||
try {
|
||||
hex = value.hex;
|
||||
} catch (error) {
|
||||
return [a0];
|
||||
}
|
||||
try {
|
||||
value = Reflect.apply(hex, value, []);
|
||||
} catch (error) {
|
||||
return [a0];
|
||||
}
|
||||
try {
|
||||
items2 = [];
|
||||
} catch (error) {
|
||||
return [a0];
|
||||
}
|
||||
try {
|
||||
items2[0] = value;
|
||||
} catch (error) {
|
||||
return [a0];
|
||||
}
|
||||
try {
|
||||
items2[1] = a0;
|
||||
} catch (error) {
|
||||
return [a0];
|
||||
}
|
||||
try {
|
||||
property = dependencyMap[0];
|
||||
} catch (error) {
|
||||
return [a0];
|
||||
}
|
||||
try {
|
||||
value = importDefault(property);
|
||||
} catch (error) {
|
||||
return [a0];
|
||||
}
|
||||
try {
|
||||
hsl = value.hsl;
|
||||
} catch (error) {
|
||||
return [a0];
|
||||
}
|
||||
try {
|
||||
value23 = value3 + 30;
|
||||
} catch (error) {
|
||||
return [a0];
|
||||
}
|
||||
try {
|
||||
value = Reflect.apply(hsl, value, [value23, value4, value5]);
|
||||
} catch (error) {
|
||||
return [a0];
|
||||
}
|
||||
try {
|
||||
hex = value.hex;
|
||||
} catch (error) {
|
||||
return [a0];
|
||||
}
|
||||
try {
|
||||
value = Reflect.apply(hex, value, []);
|
||||
} catch (error) {
|
||||
return [a0];
|
||||
}
|
||||
try {
|
||||
items2[2] = value;
|
||||
} catch (error) {
|
||||
return [a0];
|
||||
}
|
||||
} else {
|
||||
try {
|
||||
binding = env1_6;
|
||||
} catch (error) {
|
||||
return [a0];
|
||||
}
|
||||
try {
|
||||
COMPLEMENTARY = binding.COMPLEMENTARY;
|
||||
} catch (error) {
|
||||
return [a0];
|
||||
}
|
||||
try {
|
||||
value7 = COMPLEMENTARY === a1;
|
||||
} catch (error) {
|
||||
return [a0];
|
||||
}
|
||||
if (value7) {
|
||||
try {
|
||||
} catch (error) {
|
||||
return [a0];
|
||||
}
|
||||
try {
|
||||
} catch (error) {
|
||||
return [a0];
|
||||
}
|
||||
try {
|
||||
property = dependencyMap[0];
|
||||
} catch (error) {
|
||||
return [a0];
|
||||
}
|
||||
try {
|
||||
value = importDefault(property);
|
||||
} catch (error) {
|
||||
return [a0];
|
||||
}
|
||||
try {
|
||||
hsl = value.hsl;
|
||||
} catch (error) {
|
||||
return [a0];
|
||||
}
|
||||
try {
|
||||
value18 = value3 + 180;
|
||||
} catch (error) {
|
||||
return [a0];
|
||||
}
|
||||
try {
|
||||
value19 = value18 % 360;
|
||||
} catch (error) {
|
||||
return [a0];
|
||||
}
|
||||
try {
|
||||
value = Reflect.apply(hsl, value, [value19, value4, value5]);
|
||||
} catch (error) {
|
||||
return [a0];
|
||||
}
|
||||
try {
|
||||
hex = value.hex;
|
||||
} catch (error) {
|
||||
return [a0];
|
||||
}
|
||||
try {
|
||||
value = Reflect.apply(hex, value, []);
|
||||
} catch (error) {
|
||||
return [a0];
|
||||
}
|
||||
try {
|
||||
items2 = [];
|
||||
} catch (error) {
|
||||
return [a0];
|
||||
}
|
||||
try {
|
||||
items2[0] = a0;
|
||||
} catch (error) {
|
||||
return [a0];
|
||||
}
|
||||
try {
|
||||
property = dependencyMap[0];
|
||||
} catch (error) {
|
||||
return [a0];
|
||||
}
|
||||
try {
|
||||
defaultImport2 = importDefault(property);
|
||||
} catch (error) {
|
||||
return [a0];
|
||||
}
|
||||
try {
|
||||
mix = defaultImport2.mix;
|
||||
} catch (error) {
|
||||
return [a0];
|
||||
}
|
||||
try {
|
||||
value20 = Reflect.apply(mix, defaultImport2, [a0, value, 0.5]);
|
||||
} catch (error) {
|
||||
return [a0];
|
||||
}
|
||||
try {
|
||||
hex = value20.hex;
|
||||
} catch (error) {
|
||||
return [a0];
|
||||
}
|
||||
try {
|
||||
value21 = Reflect.apply(hex, value20, []);
|
||||
} catch (error) {
|
||||
return [a0];
|
||||
}
|
||||
try {
|
||||
items2[1] = value21;
|
||||
} catch (error) {
|
||||
return [a0];
|
||||
}
|
||||
try {
|
||||
items2[2] = value;
|
||||
} catch (error) {
|
||||
return [a0];
|
||||
}
|
||||
return items2;
|
||||
}
|
||||
try {
|
||||
binding = env1_6;
|
||||
} catch (error) {
|
||||
return [a0];
|
||||
}
|
||||
try {
|
||||
SPLIT_COMPLEMENTARY = binding.SPLIT_COMPLEMENTARY;
|
||||
} catch (error) {
|
||||
return [a0];
|
||||
}
|
||||
try {
|
||||
value8 = SPLIT_COMPLEMENTARY === a1;
|
||||
} catch (error) {
|
||||
return [a0];
|
||||
}
|
||||
if (value8) {
|
||||
try {
|
||||
items2 = [];
|
||||
} catch (error) {
|
||||
return [a0];
|
||||
}
|
||||
try {
|
||||
items2[0] = a0;
|
||||
} catch (error) {
|
||||
return [a0];
|
||||
}
|
||||
try {
|
||||
} catch (error) {
|
||||
return [a0];
|
||||
}
|
||||
try {
|
||||
} catch (error) {
|
||||
return [a0];
|
||||
}
|
||||
try {
|
||||
property = dependencyMap[0];
|
||||
} catch (error) {
|
||||
return [a0];
|
||||
}
|
||||
try {
|
||||
value = importDefault(property);
|
||||
} catch (error) {
|
||||
return [a0];
|
||||
}
|
||||
try {
|
||||
hsl = value.hsl;
|
||||
} catch (error) {
|
||||
return [a0];
|
||||
}
|
||||
try {
|
||||
value14 = value3 + 150;
|
||||
} catch (error) {
|
||||
return [a0];
|
||||
}
|
||||
try {
|
||||
value15 = value14 % 360;
|
||||
} catch (error) {
|
||||
return [a0];
|
||||
}
|
||||
try {
|
||||
value = Reflect.apply(hsl, value, [value15, value4, value5]);
|
||||
} catch (error) {
|
||||
return [a0];
|
||||
}
|
||||
try {
|
||||
hex = value.hex;
|
||||
} catch (error) {
|
||||
return [a0];
|
||||
}
|
||||
try {
|
||||
value = Reflect.apply(hex, value, []);
|
||||
} catch (error) {
|
||||
return [a0];
|
||||
}
|
||||
try {
|
||||
items2[1] = value;
|
||||
} catch (error) {
|
||||
return [a0];
|
||||
}
|
||||
try {
|
||||
property = dependencyMap[0];
|
||||
} catch (error) {
|
||||
return [a0];
|
||||
}
|
||||
try {
|
||||
value = importDefault(property);
|
||||
} catch (error) {
|
||||
return [a0];
|
||||
}
|
||||
try {
|
||||
hsl = value.hsl;
|
||||
} catch (error) {
|
||||
return [a0];
|
||||
}
|
||||
try {
|
||||
value16 = value3 + 210;
|
||||
} catch (error) {
|
||||
return [a0];
|
||||
}
|
||||
try {
|
||||
value17 = value16 % 360;
|
||||
} catch (error) {
|
||||
return [a0];
|
||||
}
|
||||
try {
|
||||
value = Reflect.apply(hsl, value, [value17, value4, value5]);
|
||||
} catch (error) {
|
||||
return [a0];
|
||||
}
|
||||
try {
|
||||
hex = value.hex;
|
||||
} catch (error) {
|
||||
return [a0];
|
||||
}
|
||||
try {
|
||||
value = Reflect.apply(hex, value, []);
|
||||
} catch (error) {
|
||||
return [a0];
|
||||
}
|
||||
try {
|
||||
items2[2] = value;
|
||||
} catch (error) {
|
||||
return [a0];
|
||||
}
|
||||
return items2;
|
||||
}
|
||||
try {
|
||||
binding = env1_6;
|
||||
} catch (error) {
|
||||
return [a0];
|
||||
}
|
||||
try {
|
||||
TRIADIC = binding.TRIADIC;
|
||||
} catch (error) {
|
||||
return [a0];
|
||||
}
|
||||
try {
|
||||
value9 = TRIADIC === a1;
|
||||
} catch (error) {
|
||||
return [a0];
|
||||
}
|
||||
if (value9) {
|
||||
try {
|
||||
items2 = [];
|
||||
} catch (error) {
|
||||
return [a0];
|
||||
}
|
||||
try {
|
||||
items2[0] = a0;
|
||||
} catch (error) {
|
||||
return [a0];
|
||||
}
|
||||
try {
|
||||
} catch (error) {
|
||||
return [a0];
|
||||
}
|
||||
try {
|
||||
} catch (error) {
|
||||
return [a0];
|
||||
}
|
||||
try {
|
||||
property = dependencyMap[0];
|
||||
} catch (error) {
|
||||
return [a0];
|
||||
}
|
||||
try {
|
||||
value = importDefault(property);
|
||||
} catch (error) {
|
||||
return [a0];
|
||||
}
|
||||
try {
|
||||
hsl = value.hsl;
|
||||
} catch (error) {
|
||||
return [a0];
|
||||
}
|
||||
try {
|
||||
value10 = value3 + 120;
|
||||
} catch (error) {
|
||||
return [a0];
|
||||
}
|
||||
try {
|
||||
value11 = value10 % 360;
|
||||
} catch (error) {
|
||||
return [a0];
|
||||
}
|
||||
try {
|
||||
value = Reflect.apply(hsl, value, [value11, value4, value5]);
|
||||
} catch (error) {
|
||||
return [a0];
|
||||
}
|
||||
try {
|
||||
hex = value.hex;
|
||||
} catch (error) {
|
||||
return [a0];
|
||||
}
|
||||
try {
|
||||
value = Reflect.apply(hex, value, []);
|
||||
} catch (error) {
|
||||
return [a0];
|
||||
}
|
||||
try {
|
||||
items2[1] = value;
|
||||
} catch (error) {
|
||||
return [a0];
|
||||
}
|
||||
try {
|
||||
property = dependencyMap[0];
|
||||
} catch (error) {
|
||||
return [a0];
|
||||
}
|
||||
try {
|
||||
value = importDefault(property);
|
||||
} catch (error) {
|
||||
return [a0];
|
||||
}
|
||||
try {
|
||||
hsl = value.hsl;
|
||||
} catch (error) {
|
||||
return [a0];
|
||||
}
|
||||
try {
|
||||
value12 = value3 + 240;
|
||||
} catch (error) {
|
||||
return [a0];
|
||||
}
|
||||
try {
|
||||
value13 = value12 % 360;
|
||||
} catch (error) {
|
||||
return [a0];
|
||||
}
|
||||
try {
|
||||
value = Reflect.apply(hsl, value, [value13, value4, value5]);
|
||||
} catch (error) {
|
||||
return [a0];
|
||||
}
|
||||
try {
|
||||
hex = value.hex;
|
||||
} catch (error) {
|
||||
return [a0];
|
||||
}
|
||||
try {
|
||||
value = Reflect.apply(hex, value, []);
|
||||
} catch (error) {
|
||||
return [a0];
|
||||
}
|
||||
try {
|
||||
items2[2] = value;
|
||||
} catch (error) {
|
||||
return [a0];
|
||||
}
|
||||
return items2;
|
||||
}
|
||||
try {
|
||||
items2 = [];
|
||||
} catch (error) {
|
||||
return [a0];
|
||||
}
|
||||
try {
|
||||
items2[0] = a0;
|
||||
} catch (error) {
|
||||
return [a0];
|
||||
}
|
||||
}
|
||||
return items2;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user