Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,26 @@
|
||||
/* Metro module 4700; source: modules/media/web/utils/DiscordImageFactory.tsx; dependencies: [6, 7, 4701, 4728, 2] */
|
||||
function _fun40639(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#40639, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4878:6, offset: 0x01106d2b, size: 132 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_2 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_3 = importDefault(7) /* metro dependency 7 */;
|
||||
const value = _fun40640();
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/media/web/utils/DiscordImageFactory.tsx');
|
||||
exports.DiscordImageFactory = value;
|
||||
}
|
||||
|
||||
function _fun40640() { // fn#40640, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4878:118, offset: 0x01106daf, size: 58 bytes, params: 1, frame: 15
|
||||
return env0_3(DiscordImageFactory, null, [{key: 'create', value: value_40642}]);
|
||||
}
|
||||
|
||||
function value_40642(a0) { // fn#40642, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4878:226, offset: 0x01106de9, size: 165 bytes, params: 2, frame: 17
|
||||
const Uint8Array = global.Uint8Array;
|
||||
const Math = global.Math;
|
||||
let uint8Array = new Uint8Array(a0, 0, Math.min(64, a0.byteLength));
|
||||
const value4 = undefined;
|
||||
uint8Array = (require(4701) /* metro dependency 4701 */).detectFile(uint8Array);
|
||||
const value5 = null;
|
||||
return (value5 == uint8Array ? value4 : uint8Array.mimeType) !== 'image/png' ? value5 : (require(4728) /* metro dependency 4728: DiscordImagePng */).DiscordImagePng.create(a0);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,166 @@
|
||||
/* Metro module 4728; source: modules/media/web/utils/DiscordImagePng.tsx; dependencies: [5, 6, 7, 1907, 4729, 2] */
|
||||
function _fun40792(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#40792, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4906:6, offset: 0x0110b569, size: 152 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(5) /* metro dependency 5 */;
|
||||
const env0_4 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_5 = importDefault(7) /* metro dependency 7 */;
|
||||
const value = _fun40793();
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/media/web/utils/DiscordImagePng.tsx');
|
||||
exports.DiscordImagePng = value;
|
||||
}
|
||||
|
||||
function _fun40793() { // fn#40793, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4906:136, offset: 0x0110b601, size: 201 bytes, params: 1, frame: 18
|
||||
const closure = DiscordImagePng;
|
||||
const binding = env0_5;
|
||||
const items2 = [{key: 'hasTransparency', value: value_40795}];
|
||||
items2[1] = {key: 'isAnimated', value: function() {
|
||||
return this.img.tabs.acTL != null;
|
||||
}};
|
||||
items2[2] = {key: 'isPng8', value: function() {
|
||||
return this.img.ctype === 3 && this.img.depth <= 8;
|
||||
}};
|
||||
const env0_0 = env0_3(_fun40799);
|
||||
items2[3] = {key: 'hasSrgbIccProfile', value: value_40800};
|
||||
items2[4] = {key: 'getBuffer', value: function() {
|
||||
return this.originalBuffer;
|
||||
}};
|
||||
return binding(closure, items2, [{key: 'create', value: value_40802}]);
|
||||
}
|
||||
|
||||
function DiscordImagePng(a0, a1) { // fn#40794, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4906:147, offset: 0x0110b6ca, size: 45 bytes, params: 3, frame: 13
|
||||
env1_4(this, DiscordImagePng);
|
||||
this.img = a0;
|
||||
this.originalBuffer = a1;
|
||||
}
|
||||
|
||||
function value_40795() { // fn#40795, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4906:289, offset: 0x0110b6f7, size: 165 bytes, params: 1, frame: 14
|
||||
var r3;
|
||||
if (this.img.ctype !== 4) {
|
||||
reducibleJoin2: while (true) {
|
||||
if (this.img.ctype !== 6) {
|
||||
return false;
|
||||
}
|
||||
break reducibleJoin2;
|
||||
}
|
||||
}
|
||||
let value = environment.__proto__;
|
||||
const defaultImport = importDefault(1907) /* metro dependency 1907 */;
|
||||
const value2 = defaultImport.toRGBA8(this.img);
|
||||
const Uint8Array = global.Uint8Array;
|
||||
const uint8Array = new Uint8Array(value2[0]);
|
||||
let length = uint8Array.length;
|
||||
if (value < length) {
|
||||
r3 = value;
|
||||
reducibleLoop3: while (true) {
|
||||
if (uint8Array[r3] < 255) {
|
||||
return true;
|
||||
}
|
||||
value = r3 + 4;
|
||||
length = uint8Array.length;
|
||||
if (!(value < length)) {
|
||||
return false;
|
||||
}
|
||||
r3 = value;
|
||||
continue reducibleLoop3;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
function* _fun40799() { // fn#40799, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4906:648, offset: 0x0110b7f0, size: 269 bytes, params: 1, frame: 24
|
||||
var r9;
|
||||
var description;
|
||||
var property;
|
||||
var property2;
|
||||
var value8;
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
value = environment.__proto__.__proto__;
|
||||
const binding = env2_0;
|
||||
value = undefined;
|
||||
const value3 = binding(env2_2[4]);
|
||||
yield value3.load(this.originalBuffer, {'async': true, 'expanded': true, 'includeUnknown': true});
|
||||
const value4 = undefined;
|
||||
if (false) {
|
||||
return value4;
|
||||
}
|
||||
let icc = value4.icc;
|
||||
if (icc == null) {
|
||||
return true;
|
||||
}
|
||||
icc = value4.icc;
|
||||
const Object = global.Object;
|
||||
const value6 = Object.keys(icc);
|
||||
let length = value6.length;
|
||||
const value7 = 0;
|
||||
if (value7 < length) {
|
||||
r9 = value7;
|
||||
reducibleLoop5: while (true) {
|
||||
property = value6[r9];
|
||||
if (property === 'ICC Description') {
|
||||
property2 = icc[property];
|
||||
reducibleJoin8: while (true) {
|
||||
if (property2 == null) {
|
||||
description = value;
|
||||
break reducibleJoin8;
|
||||
}
|
||||
description = property2.description;
|
||||
break reducibleJoin8;
|
||||
}
|
||||
reducibleJoin10: while (true) {
|
||||
if (description == null) {
|
||||
break reducibleJoin10;
|
||||
}
|
||||
description = icc[property].description;
|
||||
if (description !== '') {
|
||||
description = icc[property].description;
|
||||
value = description.toLowerCase();
|
||||
return !!value.includes('srgb');
|
||||
}
|
||||
break reducibleJoin10;
|
||||
}
|
||||
}
|
||||
value8 = typeof r9 === 'bigint' ? r9 + 1n : +r9 + 1;
|
||||
length = value6.length;
|
||||
if (!(value8 < length)) {
|
||||
return false;
|
||||
}
|
||||
r9 = value8;
|
||||
continue reducibleLoop5;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
function value_40802(a0) { // fn#40802, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4906:1146, offset: 0x0110b908, size: 77 bytes, params: 2, frame: 15
|
||||
var r0;
|
||||
var value2;
|
||||
var value3;
|
||||
var property;
|
||||
var defaultImport;
|
||||
var value4;
|
||||
var prototype;
|
||||
var value5;
|
||||
var discordImagePng;
|
||||
var value6;
|
||||
var error;
|
||||
try {
|
||||
value2 = environment;
|
||||
value3 = environment.__proto__;
|
||||
property = dependencyMap[3];
|
||||
defaultImport = importDefault(property);
|
||||
value4 = defaultImport.decode(a0);
|
||||
prototype = DiscordImagePng.prototype;
|
||||
value5 = Object.create(prototype, {constructor: {value: DiscordImagePng}});
|
||||
discordImagePng = new DiscordImagePng(value4, a0);
|
||||
value6 = discordImagePng instanceof Object ? discordImagePng : value5;
|
||||
r0 = value6;
|
||||
} catch (error) {
|
||||
r0 = null;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user