214 lines
8.1 KiB
TypeScript
214 lines
8.1 KiB
TypeScript
/* Metro module 9276; source: modules/rtc/SecureFramesPersistedStore.tsx; dependencies: [6, 7, 15, 17, 18, 566, 694, 2] */
|
|
function _fun72539(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#72539, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9462:6, offset: 0x01d494fa, size: 341 bytes, params: 8, frame: 18
|
|
const _arrayLikeToArray_72545 = 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_0 = importDefault(6) /* metro dependency 6 */;
|
|
const env0_1 = importDefault(7) /* metro dependency 7 */;
|
|
const env0_2 = importDefault(15) /* metro dependency 15 */;
|
|
const env0_3 = importDefault(17) /* metro dependency 17 */;
|
|
const env0_4 = importDefault(18) /* metro dependency 18 */;
|
|
object = [];
|
|
const PersistedStore = (importDefault(566) /* metro dependency 566: flux */).PersistedStore;
|
|
let value = _fun72546(PersistedStore);
|
|
value.displayName = 'SecureFramesPersistedStore';
|
|
value.persistKey = 'SecureFramesPersistedStore';
|
|
value = new value(importDefault(694) /* metro dependency 694: Dispatcher */,
|
|
{SECURE_FRAMES_SETTINGS_UPDATE: function(a0) {
|
|
env0_6 = a0.persistentCodesEnabled;
|
|
}, SECURE_FRAMES_UPLOADED_KEY_VERSION_ADD: SECURE_FRAMES_UPLOADED_KEY_VERSION_ADD,
|
|
SECURE_FRAMES_UPLOADED_KEY_VERSION_CLEAR: SECURE_FRAMES_UPLOADED_KEY_VERSION_CLEAR});
|
|
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/rtc/SecureFramesPersistedStore.tsx');
|
|
exports.default = value;
|
|
}
|
|
|
|
function _isNativeReflectConstruct_72540() { // fn#72540, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9462:150, offset: 0x01d4964f, size: 98 bytes, params: 1, frame: 18
|
|
var Boolean;
|
|
var prototype;
|
|
var valueOf;
|
|
var call;
|
|
var Reflect;
|
|
var construct;
|
|
var closure;
|
|
var value;
|
|
var error;
|
|
try {
|
|
Boolean = global.Boolean;
|
|
prototype = Boolean.prototype;
|
|
valueOf = prototype.valueOf;
|
|
call = valueOf.call;
|
|
Reflect = global.Reflect;
|
|
construct = Reflect.construct;
|
|
Boolean = global.Boolean;
|
|
closure = function() {
|
|
};
|
|
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
|
|
value = Reflect.apply(call, valueOf, [value]);
|
|
var result = !value;
|
|
} catch (error) {
|
|
}
|
|
return (_isNativeReflectConstruct_72540_isNativeReflectConstruct = function() {
|
|
return !!result;
|
|
})();
|
|
}
|
|
|
|
function _createForOfIteratorHelperLoose_72543(a0, a1) { // fn#72543, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9462:343, offset: 0x01d496b1, size: 372 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 _fun72544;
|
|
}
|
|
value = undefined;
|
|
if (a0) {
|
|
if (typeof a0 === 'string') {
|
|
value = _arrayLikeToArray_72545(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_72545(a0, value);
|
|
r6 = value;
|
|
} else {
|
|
regexp = RegExp('^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$', '');
|
|
if (regexp.test(r9)) {
|
|
value = _arrayLikeToArray_72545(a0, value);
|
|
r6 = value;
|
|
} else {
|
|
r6 = value;
|
|
}
|
|
}
|
|
r5 = r6;
|
|
}
|
|
} else {
|
|
r5 = value;
|
|
}
|
|
if (r5) {
|
|
if (r5) {
|
|
}
|
|
return _fun72544;
|
|
}
|
|
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 _fun72546(a0) { // fn#72546, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9462:1277, offset: 0x01d49825, size: 149 bytes, params: 2, frame: 16
|
|
const closure = SecureFramesPersistedStore;
|
|
env0_4(closure, a0);
|
|
return env0_1(closure, [{key: 'initialize', value: value_72548}, {key: 'getState', value: value_72549},
|
|
{key: 'getPersistentCodesEnabled', value: value_72550}, {key: 'getUploadedKeyVersionsCached',
|
|
value: value_72551}]);
|
|
}
|
|
|
|
function SECURE_FRAMES_UPLOADED_KEY_VERSION_ADD(a0) { // fn#72553, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9462:2257, offset: 0x01d4992b, size: 103 bytes, params: 2, frame: 16
|
|
var value4;
|
|
var keyVersion;
|
|
var push;
|
|
var value5;
|
|
const items2 = [];
|
|
const value2 = _createForOfIteratorHelperLoose_72543(env0_7);
|
|
const value3 = value2();
|
|
let done = value3.done;
|
|
if (done) {
|
|
items2.push(a0.keyVersion);
|
|
} else {
|
|
var r5 = value3;
|
|
loopExit1: while (true) {
|
|
value4 = r5.value;
|
|
keyVersion = a0.keyVersion;
|
|
if (value4 === keyVersion) {
|
|
break loopExit1;
|
|
}
|
|
push = items2.push;
|
|
Reflect.apply(push, items2, [value4]);
|
|
value5 = value2();
|
|
done = value5.done;
|
|
if (done) {
|
|
items2.push(a0.keyVersion);
|
|
env0_7 = items2;
|
|
return undefined;
|
|
}
|
|
r5 = value5;
|
|
continue;
|
|
}
|
|
}
|
|
}
|
|
|
|
function SECURE_FRAMES_UPLOADED_KEY_VERSION_CLEAR() { // fn#72554, offset: 0x01d49992, size: 15 bytes, params: 1, frame: 2
|
|
}
|
|
|
|
function value_72548(a0) { // fn#72548, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9462:1637, offset: 0x01d498ba, size: 68 bytes, params: 2, frame: 6
|
|
const value = undefined;
|
|
const persistentCodesEnabled = a0 == null ? value : a0.persistentCodesEnabled;
|
|
let r1 = persistentCodesEnabled != null && persistentCodesEnabled;
|
|
r1 = (a0 == null ? value : a0.uploadedKeyVersions) ?? env1_5;
|
|
return value;
|
|
}
|
|
|
|
function value_72549() { // fn#72549, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9462:1789, offset: 0x01d498fe, size: 25 bytes, params: 1, frame: 3
|
|
return {persistentCodesEnabled: env1_6, uploadedKeyVersions: env1_7};
|
|
}
|
|
|