Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,241 @@
|
||||
/* Metro module 4889; source: modules/app_database/util/ExtendedMemoryLru.tsx; dependencies: [57, 6, 7, 4890, 4891, 2] */
|
||||
function _fun43027(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#43027, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5067:6, offset: 0x0114896f, size: 173 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const _arrayLikeToArray_43030 = function(a0, a1) {
|
||||
var r0;
|
||||
var r1;
|
||||
var r2;
|
||||
var value3;
|
||||
var length;
|
||||
var value5;
|
||||
var value = undefined;
|
||||
var value2 = value == null;
|
||||
reducibleJoin2: while (true) {
|
||||
if (value2) {
|
||||
r0 = value2;
|
||||
break reducibleJoin2;
|
||||
}
|
||||
value3 = value > a0.length;
|
||||
r0 = value3;
|
||||
break reducibleJoin2;
|
||||
}
|
||||
reducibleJoin4: while (true) {
|
||||
if (r0) {
|
||||
length = a0.length;
|
||||
r1 = length;
|
||||
break reducibleJoin4;
|
||||
}
|
||||
r1 = value;
|
||||
break reducibleJoin4;
|
||||
}
|
||||
value = (0, global.Array)(r1);
|
||||
var value4 = 0;
|
||||
if (value4 < r1) {
|
||||
r2 = value4;
|
||||
reducibleLoop5: while (true) {
|
||||
value[r2] = a0[r2];
|
||||
value5 = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1;
|
||||
if (value5 < r1) {
|
||||
r2 = value5;
|
||||
continue reducibleLoop5;
|
||||
}
|
||||
break reducibleLoop5;
|
||||
}
|
||||
}
|
||||
return value;
|
||||
};
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(57) /* metro dependency 57 */;
|
||||
const env0_4 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_5 = importDefault(7) /* metro dependency 7 */;
|
||||
let value = _fun43031();
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/app_database/util/ExtendedMemoryLru.tsx');
|
||||
exports.ExtendedMemoryLru = value;
|
||||
}
|
||||
|
||||
function _createForOfIteratorHelperLoose_43028(a0, a1) { // fn#43028, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5067:130, offset: 0x01148a1c, size: 370 bytes, params: 3, frame: 20
|
||||
var r6;
|
||||
var r9;
|
||||
var r5;
|
||||
var value3;
|
||||
var regexp;
|
||||
const env0_0 = a0;
|
||||
const Symbol = global.Symbol;
|
||||
let value = typeof Symbol !== 'undefined';
|
||||
let r1 = value && a0[global.Symbol.iterator];
|
||||
r1 = !r1 ? a0['@@iterator'] : r1;
|
||||
if (r1) {
|
||||
value = r1.call(a0);
|
||||
return value.next.bind(value);
|
||||
}
|
||||
const Array = global.Array;
|
||||
if (Array.isArray(a0)) {
|
||||
if (r1) {
|
||||
}
|
||||
return _fun43029;
|
||||
}
|
||||
value = undefined;
|
||||
if (a0) {
|
||||
if (typeof a0 === 'string') {
|
||||
value = _arrayLikeToArray_43030(a0, value);
|
||||
r5 = value;
|
||||
} else {
|
||||
value3 = ({}).toString.call(a0).slice(8, -1);
|
||||
r6 = value3 === 'Object' && a0.constructor;
|
||||
r9 = r6 ? a0.constructor.name : value3;
|
||||
if (r9 === 'Map') {
|
||||
r6 = global.Array.from(a0);
|
||||
} else if (r9 === 'Set') {
|
||||
r6 = global.Array.from(a0);
|
||||
} else if (r9 === 'Arguments') {
|
||||
value = _arrayLikeToArray_43030(a0, value);
|
||||
r6 = value;
|
||||
} else {
|
||||
regexp = RegExp('^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$', '');
|
||||
if (regexp.test(r9)) {
|
||||
value = _arrayLikeToArray_43030(a0, value);
|
||||
r6 = value;
|
||||
} else {
|
||||
r6 = value;
|
||||
}
|
||||
}
|
||||
r5 = r6;
|
||||
}
|
||||
} else {
|
||||
r5 = value;
|
||||
}
|
||||
if (r5) {
|
||||
if (r5) {
|
||||
}
|
||||
return _fun43029;
|
||||
}
|
||||
const TypeError = global.TypeError;
|
||||
throw new TypeError('Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.');
|
||||
}
|
||||
|
||||
function _fun43031() { // fn#43031, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5067:1046, offset: 0x01148b8e, size: 431 bytes, params: 1, frame: 15
|
||||
return env0_5(ExtendedMemoryLru, [{key: 'totalLength', get: function() {
|
||||
return this.primary.length + this.extended.length;
|
||||
}}, {key: 'primaryCapacity', get: function() {
|
||||
return this.primary.capacity;
|
||||
}}, {key: 'extendedCapacity', get: function() {
|
||||
return this.extended.capacity;
|
||||
}}, {key: 'clear', value: function() {
|
||||
this.primary.clear();
|
||||
this.extended.clear();
|
||||
}}, {key: 'has', value: function(a0) {
|
||||
return this.primary.has(a0);
|
||||
}}, {key: 'hasExtended', value: function(a0) {
|
||||
return this.primary.has(a0) || this.extended.has(a0);
|
||||
}}, {key: 'get', value: function(a0) {
|
||||
return this.primary.get(a0);
|
||||
}}, {key: 'put', value: function(a0, a1) {
|
||||
var value = this.primary.put(a0, a1);
|
||||
if (value !== undefined) {
|
||||
this.extended.put(value[0], value[1]);
|
||||
}
|
||||
}}, {key: 'delete', value: function(a0) {
|
||||
var value = this.primary.delete(a0);
|
||||
var value2 = this.extended.delete(a0);
|
||||
this.upstreamItems();
|
||||
return value || value2;
|
||||
}}, {key: 'upstreamItems', value: value_43042}, {key: 'canUpstreamItems', value: function() {
|
||||
return this.primary.length < this.primary.capacity && this.extended.length > 0;
|
||||
}}, {key: 'entries', value: function() {
|
||||
return this.primary.entries();
|
||||
}}, {key: 'keys', value: function() {
|
||||
return this.primary.keys();
|
||||
}}, {key: 'values', value: function() {
|
||||
return this.primary.values();
|
||||
}}, {key: 'allEntries', value: value_43047}, {key: 'allKeys', value: value_43048}, {key: 'allValues',
|
||||
value: value_43049}]);
|
||||
}
|
||||
|
||||
function ExtendedMemoryLru(a0, a1) { // fn#43032, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5067:1067, offset: 0x01148d3d, size: 126 bytes, params: 3, frame: 17
|
||||
const value = environment.__proto__;
|
||||
env1_4(this, ExtendedMemoryLru);
|
||||
const Lru = (require(4890) /* metro dependency 4890: Lru */).Lru;
|
||||
this.primary = new Lru(a0);
|
||||
this.extended = new Lru(a1);
|
||||
}
|
||||
|
||||
function value_43042() { // fn#43042, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5067:1951, offset: 0x01148efa, size: 158 bytes, params: 1, frame: 21
|
||||
var r1;
|
||||
var value;
|
||||
var _createForOfIteratorHelperLoose_43028Binding;
|
||||
var extended;
|
||||
var value3;
|
||||
var value4;
|
||||
var done;
|
||||
var value5;
|
||||
var value6;
|
||||
var property;
|
||||
var property2;
|
||||
var primary;
|
||||
var value7;
|
||||
let canUpstreamItems = this.canUpstreamItems;
|
||||
if (Reflect.apply(canUpstreamItems, this, [])) {
|
||||
value = environment.__proto__;
|
||||
_createForOfIteratorHelperLoose_43028Binding = _createForOfIteratorHelperLoose_43028;
|
||||
extended = this.extended;
|
||||
value3 = _createForOfIteratorHelperLoose_43028Binding(extended.entries());
|
||||
value4 = value3();
|
||||
done = value4.done;
|
||||
if (!done) {
|
||||
r1 = value4;
|
||||
while (true) {
|
||||
value5 = r1.value;
|
||||
value6 = env1_3(value5, 2);
|
||||
property = value6[0];
|
||||
property2 = value6[1];
|
||||
primary = this.primary;
|
||||
primary.put(property, property2);
|
||||
extended = this.extended;
|
||||
extended.delete(property);
|
||||
canUpstreamItems = this.canUpstreamItems;
|
||||
if (!Reflect.apply(canUpstreamItems, this, [])) {
|
||||
break;
|
||||
}
|
||||
value7 = value3();
|
||||
done = value7.done;
|
||||
if (done) {
|
||||
break;
|
||||
}
|
||||
r1 = value7;
|
||||
continue;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function value_43047() { // fn#43047, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5067:2518, offset: 0x01149009, size: 74 bytes, params: 1, frame: 14
|
||||
let value = environment.__proto__;
|
||||
value = importAll(4891) /* metro dependency 4891: Iterable */;
|
||||
const chain = value.chain;
|
||||
const extended = this.extended;
|
||||
const value2 = extended.entries();
|
||||
const primary = this.primary;
|
||||
return Reflect.apply(chain, value, [value2, primary.entries()]);
|
||||
}
|
||||
|
||||
function value_43048() { // fn#43048, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5067:2622, offset: 0x01149053, size: 72 bytes, params: 1, frame: 14
|
||||
let value = environment.__proto__;
|
||||
value = importAll(4891) /* metro dependency 4891: Iterable */;
|
||||
const chain = value.chain;
|
||||
const extended = this.extended;
|
||||
const value2 = extended.keys();
|
||||
const primary = this.primary;
|
||||
return Reflect.apply(chain, value, [value2, primary.keys()]);
|
||||
}
|
||||
|
||||
function value_43049() { // fn#43049, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5067:2722, offset: 0x0114909b, size: 72 bytes, params: 1, frame: 14
|
||||
let value = environment.__proto__;
|
||||
value = importAll(4891) /* metro dependency 4891: Iterable */;
|
||||
const chain = value.chain;
|
||||
const extended = this.extended;
|
||||
const value2 = extended.values();
|
||||
const primary = this.primary;
|
||||
return Reflect.apply(chain, value, [value2, primary.values()]);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,55 @@
|
||||
/* Metro module 4891; source: modules/app_database/util/Iterable.tsx; dependencies: [6, 7, 2] */
|
||||
function _fun43066(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#43066, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5069:6, offset: 0x0114947b, size: 133 bytes, params: 8, frame: 18
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_0 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_1 = importDefault(7) /* metro dependency 7 */;
|
||||
const env0_2 = _fun43067();
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/app_database/util/Iterable.tsx');
|
||||
exports.chain = chain;
|
||||
}
|
||||
|
||||
function _fun43067() { // fn#43067, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5069:118, offset: 0x01149500, size: 88 bytes, params: 1, frame: 15
|
||||
const binding = env0_1;
|
||||
const closure = Chained;
|
||||
const Symbol = global.Symbol;
|
||||
return binding(closure, [{key: Symbol.iterator, value: function() {
|
||||
return this;
|
||||
}}, {key: 'next', value: function() {
|
||||
var value;
|
||||
var property = this.index;
|
||||
if (property < this.items.length) {
|
||||
loopExit1: while (true) {
|
||||
property = this.items;
|
||||
property = property[this.index];
|
||||
value = property.next();
|
||||
if (value.done) {
|
||||
this.index += 1;
|
||||
property = this.index;
|
||||
if (!(property < this.items.length)) {
|
||||
return {done: true, value: undefined};
|
||||
}
|
||||
continue;
|
||||
}
|
||||
break loopExit1;
|
||||
}
|
||||
return value;
|
||||
}
|
||||
return {done: true, value: undefined};
|
||||
}}]);
|
||||
}
|
||||
|
||||
function chain(a0) { // fn#43071, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5069:507, offset: 0x011495f3, size: 35 bytes, params: 2, frame: 11
|
||||
let value = copyRestArgs(0, undefined);
|
||||
const binding = env0_2;
|
||||
const value3 = Object.create(binding.prototype, {constructor: {value: binding}});
|
||||
value = new binding(value);
|
||||
return value instanceof Object ? value : value3;
|
||||
}
|
||||
|
||||
function Chained(a0) { // fn#43068, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5069:139, offset: 0x01149558, size: 44 bytes, params: 2, frame: 13
|
||||
env1_0(this, Chained);
|
||||
this.index = 0;
|
||||
this.items = a0;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,69 @@
|
||||
/* Metro module 4890; source: modules/app_database/util/Lru.tsx; dependencies: [6, 7, 2] */
|
||||
function _fun43050(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#43050, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5068:6, offset: 0x011490e3, size: 124 bytes, params: 8, frame: 18
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_0 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_1 = importDefault(7) /* metro dependency 7 */;
|
||||
const value = _fun43051();
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/app_database/util/Lru.tsx');
|
||||
exports.Lru = value;
|
||||
}
|
||||
|
||||
function _fun43051() { // fn#43051, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5068:118, offset: 0x0114915f, size: 343 bytes, params: 1, frame: 15
|
||||
const binding = env0_1;
|
||||
const closure = Lru;
|
||||
const Symbol = global.Symbol;
|
||||
return binding(closure, [{key: 'length', get: function() {
|
||||
return this.items.size;
|
||||
}}, {key: 'capacity', get: function() {
|
||||
return this.limit;
|
||||
}}, {key: Symbol.iterator, value: function() {
|
||||
return this.items.entries();
|
||||
}}, {key: 'entries', value: function() {
|
||||
return this.items.entries();
|
||||
}}, {key: 'keys', value: function() {
|
||||
return this.items.keys();
|
||||
}}, {key: 'values', value: function() {
|
||||
return this.items.values();
|
||||
}}, {key: 'ordered', value: function() {
|
||||
var r2;
|
||||
var value = this.items.values();
|
||||
var items2 = [];
|
||||
arraySpread(items2, value, 0, r2);
|
||||
return items2.reverse();
|
||||
}}, {key: 'clear', value: function() {
|
||||
this.items.clear();
|
||||
}}, {key: 'has', value: function(a0) {
|
||||
return this.items.has(a0);
|
||||
}}, {key: 'get', value: function(a0) {
|
||||
return this.items.get(a0);
|
||||
}}, {key: 'put', value: function(a0, a1) {
|
||||
var value;
|
||||
var value2;
|
||||
var property = this.items;
|
||||
property.delete(a0);
|
||||
this.items.set(a0, a1);
|
||||
property = this.items.size;
|
||||
if (property > this.limit) {
|
||||
value = this.oldestKey();
|
||||
property = this.items;
|
||||
value2 = property.get(value);
|
||||
property = this.items;
|
||||
property.delete(value);
|
||||
return [value, value2];
|
||||
}
|
||||
}}, {key: 'delete', value: function(a0) {
|
||||
return this.items.delete(a0);
|
||||
}}, {key: 'oldestKey', value: function() {
|
||||
return this.items.keys().next().value;
|
||||
}}]);
|
||||
}
|
||||
|
||||
function Lru(a0) { // fn#43052, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5068:139, offset: 0x011492b6, size: 70 bytes, params: 2, frame: 13
|
||||
const value = environment.__proto__;
|
||||
env1_0(this, Lru);
|
||||
const Map = global.Map;
|
||||
this.items = new Map();
|
||||
this.limit = a0;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user