155 lines
8.3 KiB
React
155 lines
8.3 KiB
React
/* Metro module 1328; source: unknown; dependencies: [6, 7, 1329, 1331, 1333, 1335, 1336, 1338, 1339, 1340, 1341, 1321, 1326, 1324, 1317] */
|
|
function _fun15177(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#15177, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1455:6, offset: 0x00e25883, size: 107 bytes, params: 8, frame: 17
|
|
const env0_0 = require;
|
|
const env0_2 = require(6) /* metro dependency 6 */;
|
|
const env0_3 = require(7) /* metro dependency 7 */;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
exports.MessageType = undefined;
|
|
exports.MessageType = _fun15178();
|
|
}
|
|
|
|
function _fun15178() { // fn#15178, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1455:145, offset: 0x00e258ee, size: 406 bytes, params: 1, frame: 15
|
|
return env0_3(MessageType, [{key: 'create', value: value_15180}, {key: 'clone', value: function(a0) {
|
|
var value = this.create();
|
|
require(dependencyMap[9]).reflectionMergePartial(this, value, a0);
|
|
return value;
|
|
}}, {key: 'equals', value: value_15182}, {key: 'is', value: function(a0) {
|
|
return this.refTypeCheck.is(a0,
|
|
arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : this.defaultCheckDepth, false);
|
|
}}, {key: 'isAssignable', value: function(a0) {
|
|
return this.refTypeCheck.is(a0,
|
|
arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : this.defaultCheckDepth, true);
|
|
}}, {key: 'mergePartial', value: value_15185}, {key: 'fromBinary', value: value_15186}, {key: 'fromJson',
|
|
value: value_15187}, {key: 'fromJsonString', value: function(a0, a1) {
|
|
var JSON = global.JSON;
|
|
return this.fromJson(JSON.parse(a0), a1);
|
|
}}, {key: 'toJson', value: value_15189}, {key: 'toJsonString', value: function(a0, a1) {
|
|
var r5;
|
|
var value = this.toJson(a0, a1);
|
|
var JSON = global.JSON;
|
|
var stringify = JSON.stringify;
|
|
var value2 = undefined;
|
|
r5 = a1 == null ? value2 : a1.prettySpaces;
|
|
return Reflect.apply(stringify, JSON, [value, null, r5 === null || value2 === r5 ? 0 : r5]);
|
|
}}, {key: 'toBinary', value: value_15191}, {key: 'internalJsonRead', value: value_15192}, {key: 'internalJsonWrite',
|
|
value: function(a0, a1) {
|
|
return this.refJsonWriter.write(a0, a1);
|
|
}}, {key: 'internalBinaryWrite', value: function(a0, a1, a2) {
|
|
this.refBinWriter.write(a0, a1, a2);
|
|
return a1;
|
|
}}, {key: 'internalBinaryRead', value: function(a0, a1, a2, a3) {
|
|
var r0;
|
|
r0 = a3 ?? this.create();
|
|
this.refBinReader.read(a0, r0, a2, a1);
|
|
return r0;
|
|
}}]);
|
|
}
|
|
|
|
function MessageType(a0, a1, a2) { // fn#15179, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1455:166, offset: 0x00e25a84, size: 350 bytes, params: 4, frame: 18
|
|
const value = a2;
|
|
env1_2(this, MessageType);
|
|
this.defaultCheckDepth = 16;
|
|
this.typeName = a0;
|
|
this.fields = a1.map((require(1329) /* metro dependency 1329 */).normalizeFieldInfo);
|
|
this.options = value ?? ({});
|
|
const ReflectionTypeCheck = (require(1331) /* metro dependency 1331 */).ReflectionTypeCheck;
|
|
this.refTypeCheck = new ReflectionTypeCheck(this);
|
|
const ReflectionJsonReader = (require(1333) /* metro dependency 1333 */).ReflectionJsonReader;
|
|
this.refJsonReader = new ReflectionJsonReader(this);
|
|
const ReflectionJsonWriter = (require(1335) /* metro dependency 1335 */).ReflectionJsonWriter;
|
|
this.refJsonWriter = new ReflectionJsonWriter(this);
|
|
const ReflectionBinaryReader = (require(1336) /* metro dependency 1336 */).ReflectionBinaryReader;
|
|
this.refBinReader = new ReflectionBinaryReader(this);
|
|
const ReflectionBinaryWriter = (require(1338) /* metro dependency 1338 */).ReflectionBinaryWriter;
|
|
this.refBinWriter = new ReflectionBinaryWriter(this);
|
|
}
|
|
|
|
function value_15180(a0) { // fn#15180, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1455:646, offset: 0x00e25be2, size: 81 bytes, params: 2, frame: 17
|
|
const value = environment.__proto__;
|
|
const value2 = (require(1339) /* metro dependency 1339 */).reflectionCreate(this);
|
|
if (a0 !== undefined) {
|
|
(require(1340) /* metro dependency 1340 */).reflectionMergePartial(this, value2, a0);
|
|
}
|
|
return value2;
|
|
}
|
|
|
|
function value_15182(a0, a1) { // fn#15182, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1455:895, offset: 0x00e25c6a, size: 49 bytes, params: 3, frame: 15
|
|
const value = environment.__proto__;
|
|
return (require(1341) /* metro dependency 1341 */).reflectionEquals(this, a0, a1);
|
|
}
|
|
|
|
function value_15185(a0, a1) { // fn#15185, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1455:1313, offset: 0x00e25d19, size: 49 bytes, params: 3, frame: 16
|
|
const value = environment.__proto__;
|
|
(require(1340) /* metro dependency 1340 */).reflectionMergePartial(this, a0, a1);
|
|
}
|
|
|
|
function value_15186(a0, a1) { // fn#15186, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1455:1407, offset: 0x00e25d4a, size: 77 bytes, params: 3, frame: 15
|
|
let value = environment.__proto__;
|
|
value = require(1321) /* metro dependency 1321 */;
|
|
value = value.binaryReadOptions(a1);
|
|
return this.internalBinaryRead(value.readerFactory(a0), a0.byteLength, value);
|
|
}
|
|
|
|
function value_15187(a0, a1) { // fn#15187, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1455:1558, offset: 0x00e25d97, size: 59 bytes, params: 3, frame: 14
|
|
const internalJsonRead = this.internalJsonRead;
|
|
let value = environment.__proto__;
|
|
value = require(1326) /* metro dependency 1326 */;
|
|
value = value.jsonReadOptions(a1);
|
|
return Reflect.apply(internalJsonRead, this, [a0, value]);
|
|
}
|
|
|
|
function value_15189(a0, a1) { // fn#15189, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1455:1768, offset: 0x00e25dfc, size: 59 bytes, params: 3, frame: 14
|
|
const internalJsonWrite = this.internalJsonWrite;
|
|
let value = environment.__proto__;
|
|
value = require(1326) /* metro dependency 1326 */;
|
|
value = value.jsonWriteOptions(a1);
|
|
return Reflect.apply(internalJsonWrite, this, [a0, value]);
|
|
}
|
|
|
|
function value_15191(a0, a1) { // fn#15191, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1455:2042, offset: 0x00e25e87, size: 80 bytes, params: 3, frame: 15
|
|
let value = environment.__proto__;
|
|
value = require(1324) /* metro dependency 1324 */;
|
|
value = value.binaryWriteOptions(a1);
|
|
value = this.internalBinaryWrite(a0, value.writerFactory(), value);
|
|
return value.finish();
|
|
}
|
|
|
|
function value_15192(a0, a1, a2) { // fn#15192, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1455:2198, offset: 0x00e25ed7, size: 190 bytes, params: 4, frame: 18
|
|
var Error;
|
|
var typeName;
|
|
let value = a2;
|
|
if (a0 === null) {
|
|
Error = global.Error;
|
|
typeName = this.typeName;
|
|
value = environment.__proto__;
|
|
value = require(1317) /* metro dependency 1317 */;
|
|
value = value.typeofJsonValue(a0);
|
|
value = 'Unable to parse message ' + typeName + ' from JSON ' + value + '.';
|
|
throw new Error(value);
|
|
}
|
|
if (typeof a0 !== 'object') {
|
|
Error = global.Error;
|
|
typeName = this.typeName;
|
|
value = environment.__proto__;
|
|
value = require(1317) /* metro dependency 1317 */;
|
|
value = value.typeofJsonValue(a0);
|
|
value = 'Unable to parse message ' + typeName + ' from JSON ' + value + '.';
|
|
throw new Error(value);
|
|
}
|
|
const Array = global.Array;
|
|
if (Array.isArray(a0)) {
|
|
Error = global.Error;
|
|
typeName = this.typeName;
|
|
value = environment.__proto__;
|
|
value = require(1317) /* metro dependency 1317 */;
|
|
value = value.typeofJsonValue(a0);
|
|
value = 'Unable to parse message ' + typeName + ' from JSON ' + value + '.';
|
|
throw new Error(value);
|
|
}
|
|
const r0 = value ?? this.create();
|
|
this.refJsonReader.read(a0, r0, a1);
|
|
return r0;
|
|
}
|
|
|