1145 lines
46 KiB
JavaScript
1145 lines
46 KiB
JavaScript
/* Metro module 4766; source: unknown; dependencies: [57, 7, 6, 15, 17, 18, 162, 4731, 4767, 4768, 4769] */
|
|
import ClassCallCheck from './module-00006-ClassCallCheck.js'; /* Metro dependency 6 */
|
|
import CreateClass from './module-00007-CreateClass.js'; /* Metro dependency 7 */
|
|
import PossibleConstructorReturn from './module-00015-PossibleConstructorReturn.js'; /* Metro dependency 15 */
|
|
import Module00017 from './module-00017.js'; /* Metro dependency 17 */
|
|
import Inherits from './module-00018-Inherits.js'; /* Metro dependency 18 */
|
|
import Module00057 from './module-00057.js'; /* Metro dependency 57 */
|
|
import Module00162 from './module-00162.js'; /* Metro dependency 162 */
|
|
import Module04767 from './module-04767.js'; /* Metro dependency 4767 */
|
|
import * as Module04731Module from './module-04731.js'; /* Metro dependency 4731 */
|
|
|
|
function _fun41151(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#41151, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4944:6, offset: 0x01116748, size: 446 bytes, params: 8, frame: 19
|
|
const env0_0 = require;
|
|
const getAttributes = function(a0) {
|
|
var r4;
|
|
var nodeName;
|
|
var decodeURIComponent;
|
|
var escape;
|
|
var object = {};
|
|
var value = 0;
|
|
if (value < a0.attributes.length) {
|
|
for (r4 = value; true; r4 = value) {
|
|
nodeName = a0.attributes[r4].nodeName;
|
|
decodeURIComponent = global.decodeURIComponent;
|
|
escape = global.escape;
|
|
object[nodeName] = decodeURIComponent(escape(a0.attributes[r4].value));
|
|
value = typeof r4 === 'bigint' ? r4 + 1n : +r4 + 1;
|
|
if (!(value < a0.attributes.length)) {
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
return object;
|
|
};
|
|
const parseXMPObject = function(a0) {
|
|
var r11;
|
|
var propertyName;
|
|
var property;
|
|
var Array;
|
|
if (typeof a0 === 'string') {
|
|
return a0;
|
|
}
|
|
for (propertyName in a0) {
|
|
property = a0[propertyName];
|
|
Array = global.Array;
|
|
if (Array.isArray(property)) {
|
|
r11 = property;
|
|
continue;
|
|
}
|
|
[property].forEach(_fun41166);
|
|
}
|
|
return {};
|
|
};
|
|
const parseNodeAttributesAsTags = function(a0) {
|
|
var r4;
|
|
var propertyName;
|
|
var propertyName2;
|
|
var isTagAttribute2;
|
|
var value2;
|
|
var object2;
|
|
var property;
|
|
var getDescriptionBinding;
|
|
var value3;
|
|
var error;
|
|
var object = {};
|
|
for (propertyName in a0) {
|
|
try {
|
|
isTagAttribute2 = isTagAttribute(propertyName);
|
|
if (isTagAttribute2) {
|
|
value2 = getLocalName(propertyName);
|
|
object2 = {};
|
|
property = a0[propertyName];
|
|
object2.value = property;
|
|
object2.attributes = {};
|
|
getDescriptionBinding = getDescription;
|
|
property = a0[propertyName];
|
|
value3 = getDescriptionBinding(property, propertyName);
|
|
object2.description = value3;
|
|
object[value2] = object2;
|
|
r4 = propertyName2;
|
|
break;
|
|
}
|
|
r4 = propertyName2;
|
|
break;
|
|
} catch (error) {
|
|
r4 = propertyName2;
|
|
}
|
|
}
|
|
return object;
|
|
};
|
|
const isNamespaceDefinition = function(a0) {
|
|
return a0.split(':')[0] === 'xmlns';
|
|
};
|
|
const getLocalName = function(a0) {
|
|
return RegExp('^MicrosoftPhoto(_\\d+_)?:Rating$', 'i').test(a0) ? 'RatingPercent' : a0.split(':')[1];
|
|
};
|
|
const parseNodeChildrenAsTags = function(a0) {
|
|
var r4;
|
|
var propertyName;
|
|
var propertyName2;
|
|
var isNamespaceDefinition2;
|
|
var value2;
|
|
var parseNodeAsTagBinding;
|
|
var property;
|
|
var nodeAsTag;
|
|
var error;
|
|
var object = {};
|
|
for (propertyName in a0) {
|
|
try {
|
|
isNamespaceDefinition2 = isNamespaceDefinition(propertyName);
|
|
if (isNamespaceDefinition2) {
|
|
r4 = propertyName2;
|
|
break;
|
|
}
|
|
value2 = getLocalName(propertyName);
|
|
parseNodeAsTagBinding = parseNodeAsTag;
|
|
property = a0[propertyName];
|
|
nodeAsTag = parseNodeAsTagBinding(property, propertyName);
|
|
object[value2] = nodeAsTag;
|
|
r4 = propertyName2;
|
|
break;
|
|
} catch (error) {
|
|
r4 = propertyName2;
|
|
}
|
|
}
|
|
return object;
|
|
};
|
|
const hasNestedSimpleRdfDescription = function(a0) {
|
|
var r0;
|
|
r0 = a0.attributes['rdf:parseType'] === 'Resource' && a0.value['rdf:value'] !== undefined;
|
|
r0 = !r0 ? a0.value['rdf:Description'] !== undefined && a0.value['rdf:Description'].value['rdf:value'] !== undefined : r0;
|
|
return r0;
|
|
};
|
|
const parseNodeAttributes = function(a0) {
|
|
var r7;
|
|
var r11;
|
|
var propertyName;
|
|
var propertyName2;
|
|
var value2;
|
|
var value3;
|
|
var isNamespaceDefinition2;
|
|
var value4;
|
|
var object = {};
|
|
for (propertyName in a0.attributes) {
|
|
value2 = propertyName === 'rdf:parseType';
|
|
if (value2) {
|
|
r11 = value2;
|
|
continue;
|
|
}
|
|
value3 = propertyName === 'rdf:resource';
|
|
r11 = value3;
|
|
if (r11) {
|
|
continue;
|
|
}
|
|
isNamespaceDefinition2 = isNamespaceDefinition(propertyName);
|
|
r11 = isNamespaceDefinition2;
|
|
if (r11) {
|
|
r7 = propertyName2;
|
|
continue;
|
|
}
|
|
value4 = getLocalName(propertyName);
|
|
object[value4] = a0.attributes[propertyName];
|
|
r7 = propertyName2;
|
|
}
|
|
return object;
|
|
};
|
|
const hasNestedStructureRdfDescription = function(a0) {
|
|
return a0.attributes['rdf:parseType'] === 'Resource' || a0.value['rdf:Description'] !== undefined && a0.value['rdf:Description'].value['rdf:value'] === undefined;
|
|
};
|
|
const isCompactStructure = function(a0) {
|
|
var property = global.Object;
|
|
property = property.keys(a0.value).length;
|
|
return property === 0 && a0.attributes['xml:lang'] === undefined && a0.attributes['rdf:resource'] === undefined;
|
|
};
|
|
const parseNodeAsCompactStructure = function(a0, a1) {
|
|
var nodeAttributesAsTags = parseNodeAttributesAsTags(a0.attributes);
|
|
var object = {value: nodeAttributesAsTags, attributes: {}};
|
|
object.description = getDescription(nodeAttributesAsTags, a1);
|
|
return object;
|
|
};
|
|
const getArrayChild = function(a0) {
|
|
var r0;
|
|
r0 = a0['rdf:Bag'] || a0['rdf:Seq'];
|
|
r0 = !r0 ? a0['rdf:Alt'] : r0;
|
|
return r0;
|
|
};
|
|
const parseNodeAsSimpleValue = function(a0, a1) {
|
|
var r3;
|
|
r3 = getURIValue(a0) || parseXMPObject(a0.value);
|
|
var object = {value: r3};
|
|
object.attributes = parseNodeAttributes(a0);
|
|
object.description = getDescription(r3, a1);
|
|
return object;
|
|
};
|
|
const getURIValue = function(a0) {
|
|
return a0.attributes && a0.attributes['rdf:resource'];
|
|
};
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
object = {read: read_41189};
|
|
let value = Module00162;
|
|
const Error = global.Error;
|
|
value = value(Error);
|
|
const env0_9 = _fun41190(value);
|
|
exports.default = object;
|
|
function _isNativeReflectConstruct_41152() { // fn#41152, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4944:165, offset: 0x01116906, size: 94 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_41152_isNativeReflectConstruct = function() {
|
|
return !!result;
|
|
})();
|
|
}
|
|
|
|
function combineChunks(a0, a1) { // fn#41155, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4944:1077, offset: 0x01116964, size: 203 bytes, params: 3, frame: 21
|
|
var r3;
|
|
var r4;
|
|
var property;
|
|
var buffer;
|
|
var slice;
|
|
var dataOffset;
|
|
var dataOffset2;
|
|
var set;
|
|
var value5;
|
|
var value6;
|
|
let value = 0;
|
|
const value2 = a1.reduce(function(a0, a1) {
|
|
return a0 + a1.length;
|
|
}, value);
|
|
let Uint8Array = global.Uint8Array;
|
|
let prototype = Uint8Array.prototype;
|
|
const value3 = Object.create(prototype, {constructor: {value: Uint8Array}});
|
|
let uint8Array = new Uint8Array(value2);
|
|
const value4 = uint8Array instanceof Object ? uint8Array : value3;
|
|
let length = a1.length;
|
|
if (value < length) {
|
|
r3 = value;
|
|
for (r4 = value; true; r4 = value) {
|
|
property = a1[r3];
|
|
buffer = a0.buffer;
|
|
slice = buffer.slice;
|
|
dataOffset = property.dataOffset;
|
|
dataOffset2 = property.dataOffset;
|
|
length = property.length;
|
|
value = Reflect.apply(slice, buffer, [dataOffset, dataOffset2 + length]);
|
|
set = value4.set;
|
|
Uint8Array = global.Uint8Array;
|
|
prototype = Uint8Array.prototype;
|
|
value5 = Object.create(prototype, {constructor: {value: Uint8Array}});
|
|
uint8Array = new Uint8Array(value);
|
|
value = uint8Array instanceof Object ? uint8Array : value5;
|
|
Reflect.apply(set, value4, [value, r4]);
|
|
length = property.length;
|
|
value = r4 + length;
|
|
value6 = typeof r3 === 'bigint' ? r3 + 1n : +r3 + 1;
|
|
length = a1.length;
|
|
if (!(value6 < length)) {
|
|
break;
|
|
}
|
|
r3 = value6;
|
|
}
|
|
}
|
|
const DataView = global.DataView;
|
|
buffer = value4.buffer;
|
|
value = Object.create(DataView.prototype, {constructor: {value: DataView}});
|
|
const dataView = new DataView();
|
|
return dataView instanceof Object ? dataView : value;
|
|
}
|
|
|
|
function readTags(a0, a1, a2) { // fn#41157, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4944:1339, offset: 0x01116a2f, size: 150 bytes, params: 4, frame: 17
|
|
var environment;
|
|
var r4;
|
|
var getDocument2;
|
|
var value;
|
|
var doc;
|
|
var raw;
|
|
var _raw;
|
|
var rDF;
|
|
var property;
|
|
var moduleValue;
|
|
var objectAssign;
|
|
var parseXMPObjectBinding;
|
|
var error;
|
|
try {
|
|
getDocument2 = getDocument;
|
|
value = getDocument2(a1, a2);
|
|
doc = value.doc;
|
|
raw = value.raw;
|
|
_raw = a0._raw;
|
|
r4 = _raw || '';
|
|
value = r4 + raw;
|
|
a0._raw = value;
|
|
value = environment;
|
|
rDF = getRDF(doc);
|
|
property = dependencyMap[7];
|
|
moduleValue = require(property);
|
|
objectAssign = moduleValue.objectAssign;
|
|
parseXMPObjectBinding = parseXMPObject;
|
|
value = convertToObject(rDF, true);
|
|
value = parseXMPObjectBinding(value);
|
|
Reflect.apply(objectAssign, moduleValue, [a0, value]);
|
|
} catch (error) {
|
|
return false;
|
|
}
|
|
return true;
|
|
function getDocument(a0, a1) { // fn#41158, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4944:1374, owner: readTags.getDocument, offset: 0x01116ac5, size: 230 bytes, params: 3, frame: 19
|
|
var r1;
|
|
var moduleValue;
|
|
var parseFromStringBinding;
|
|
let value = a0;
|
|
const value3 = (Module04767).get(a1);
|
|
if (value3) {
|
|
if (typeof value === 'string') {
|
|
r1 = value;
|
|
} else {
|
|
moduleValue = require(4731) /* metro dependency 4731 */;
|
|
value = moduleValue.getStringFromDataView(value, 0, value.byteLength);
|
|
r1 = value;
|
|
}
|
|
parseFromStringBinding = parseFromString;
|
|
value = r1.replace(RegExp('^.+(<\\?xpacket begin)', ''), '$1');
|
|
value = parseFromStringBinding(value3, value.replace(RegExp('(<\\?xpacket end=".*"\\?>).+$', ''), '$1'));
|
|
return {doc: value, raw: r1};
|
|
}
|
|
global.console.warn('Warning: DOMParser is not available. It is needed to be able to parse XMP tags.');
|
|
const Error = global.Error;
|
|
throw new Error();
|
|
}
|
|
|
|
}
|
|
|
|
function parseFromString(a0, a1) { // fn#41159, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4944:1928, offset: 0x01116bab, size: 259 bytes, params: 3, frame: 22
|
|
var r10;
|
|
var r6;
|
|
var parseFromString2;
|
|
var getElementsByTagName;
|
|
var value2;
|
|
var length;
|
|
var value3;
|
|
var binding;
|
|
var property;
|
|
var textContent;
|
|
var prototype;
|
|
var binding2;
|
|
var error;
|
|
var name;
|
|
var moduleValue;
|
|
var isMissingNamespaceError;
|
|
var parseFromStringBinding;
|
|
let value = arguments.length > 2;
|
|
if (value) {
|
|
value = arguments[2] !== undefined;
|
|
r10 = value;
|
|
} else {
|
|
r10 = value;
|
|
}
|
|
if (r10) {
|
|
value = arguments[2];
|
|
r6 = value;
|
|
} else {
|
|
r6 = r10;
|
|
}
|
|
try {
|
|
parseFromString2 = a0.parseFromString;
|
|
} catch (error) {
|
|
name = error.name;
|
|
if (name !== 'ParseError') {
|
|
throw error;
|
|
}
|
|
value = environment;
|
|
moduleValue = require(4768) /* metro dependency 4768 */;
|
|
isMissingNamespaceError = moduleValue.isMissingNamespaceError;
|
|
if (Reflect.apply(isMissingNamespaceError, moduleValue, [error])) {
|
|
if (r6) {
|
|
throw error;
|
|
}
|
|
parseFromStringBinding = parseFromString;
|
|
value = require(4768) /* metro dependency 4768 */;
|
|
value = value.addMissingNamespaces(a1);
|
|
return parseFromStringBinding(a0, value, true);
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
value = Reflect.apply(parseFromString2, a0, [a1, 'application/xml']);
|
|
} catch (error) {
|
|
name = error.name;
|
|
if (name !== 'ParseError') {
|
|
throw error;
|
|
}
|
|
value = environment;
|
|
moduleValue = require(4768) /* metro dependency 4768 */;
|
|
isMissingNamespaceError = moduleValue.isMissingNamespaceError;
|
|
if (Reflect.apply(isMissingNamespaceError, moduleValue, [error])) {
|
|
if (r6) {
|
|
throw error;
|
|
}
|
|
parseFromStringBinding = parseFromString;
|
|
value = require(4768) /* metro dependency 4768 */;
|
|
value = value.addMissingNamespaces(a1);
|
|
return parseFromStringBinding(a0, value, true);
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
getElementsByTagName = value.getElementsByTagName;
|
|
} catch (error) {
|
|
name = error.name;
|
|
if (name !== 'ParseError') {
|
|
throw error;
|
|
}
|
|
value = environment;
|
|
moduleValue = require(4768) /* metro dependency 4768 */;
|
|
isMissingNamespaceError = moduleValue.isMissingNamespaceError;
|
|
if (Reflect.apply(isMissingNamespaceError, moduleValue, [error])) {
|
|
if (r6) {
|
|
throw error;
|
|
}
|
|
parseFromStringBinding = parseFromString;
|
|
value = require(4768) /* metro dependency 4768 */;
|
|
value = value.addMissingNamespaces(a1);
|
|
return parseFromStringBinding(a0, value, true);
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
value2 = Reflect.apply(getElementsByTagName, value, ['parsererror']);
|
|
} catch (error) {
|
|
name = error.name;
|
|
if (name !== 'ParseError') {
|
|
throw error;
|
|
}
|
|
value = environment;
|
|
moduleValue = require(4768) /* metro dependency 4768 */;
|
|
isMissingNamespaceError = moduleValue.isMissingNamespaceError;
|
|
if (Reflect.apply(isMissingNamespaceError, moduleValue, [error])) {
|
|
if (r6) {
|
|
throw error;
|
|
}
|
|
parseFromStringBinding = parseFromString;
|
|
value = require(4768) /* metro dependency 4768 */;
|
|
value = value.addMissingNamespaces(a1);
|
|
return parseFromStringBinding(a0, value, true);
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
length = value2.length;
|
|
} catch (error) {
|
|
name = error.name;
|
|
if (name !== 'ParseError') {
|
|
throw error;
|
|
}
|
|
value = environment;
|
|
moduleValue = require(4768) /* metro dependency 4768 */;
|
|
isMissingNamespaceError = moduleValue.isMissingNamespaceError;
|
|
if (Reflect.apply(isMissingNamespaceError, moduleValue, [error])) {
|
|
if (r6) {
|
|
throw error;
|
|
}
|
|
parseFromStringBinding = parseFromString;
|
|
value = require(4768) /* metro dependency 4768 */;
|
|
value = value.addMissingNamespaces(a1);
|
|
return parseFromStringBinding(a0, value, true);
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
value3 = length > 0;
|
|
} catch (error) {
|
|
name = error.name;
|
|
if (name !== 'ParseError') {
|
|
throw error;
|
|
}
|
|
value = environment;
|
|
moduleValue = require(4768) /* metro dependency 4768 */;
|
|
isMissingNamespaceError = moduleValue.isMissingNamespaceError;
|
|
if (Reflect.apply(isMissingNamespaceError, moduleValue, [error])) {
|
|
if (r6) {
|
|
throw error;
|
|
}
|
|
parseFromStringBinding = parseFromString;
|
|
value = require(4768) /* metro dependency 4768 */;
|
|
value = value.addMissingNamespaces(a1);
|
|
return parseFromStringBinding(a0, value, true);
|
|
}
|
|
throw error;
|
|
}
|
|
if (!value3) {
|
|
return value;
|
|
}
|
|
value = environment;
|
|
try {
|
|
binding = env0_9;
|
|
} catch (error) {
|
|
name = error.name;
|
|
if (name !== 'ParseError') {
|
|
throw error;
|
|
}
|
|
value = environment;
|
|
moduleValue = require(4768) /* metro dependency 4768 */;
|
|
isMissingNamespaceError = moduleValue.isMissingNamespaceError;
|
|
if (Reflect.apply(isMissingNamespaceError, moduleValue, [error])) {
|
|
if (r6) {
|
|
throw error;
|
|
}
|
|
parseFromStringBinding = parseFromString;
|
|
value = require(4768) /* metro dependency 4768 */;
|
|
value = value.addMissingNamespaces(a1);
|
|
return parseFromStringBinding(a0, value, true);
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
property = value2[0];
|
|
} catch (error) {
|
|
name = error.name;
|
|
if (name !== 'ParseError') {
|
|
throw error;
|
|
}
|
|
value = environment;
|
|
moduleValue = require(4768) /* metro dependency 4768 */;
|
|
isMissingNamespaceError = moduleValue.isMissingNamespaceError;
|
|
if (Reflect.apply(isMissingNamespaceError, moduleValue, [error])) {
|
|
if (r6) {
|
|
throw error;
|
|
}
|
|
parseFromStringBinding = parseFromString;
|
|
value = require(4768) /* metro dependency 4768 */;
|
|
value = value.addMissingNamespaces(a1);
|
|
return parseFromStringBinding(a0, value, true);
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
textContent = property.textContent;
|
|
} catch (error) {
|
|
name = error.name;
|
|
if (name !== 'ParseError') {
|
|
throw error;
|
|
}
|
|
value = environment;
|
|
moduleValue = require(4768) /* metro dependency 4768 */;
|
|
isMissingNamespaceError = moduleValue.isMissingNamespaceError;
|
|
if (Reflect.apply(isMissingNamespaceError, moduleValue, [error])) {
|
|
if (r6) {
|
|
throw error;
|
|
}
|
|
parseFromStringBinding = parseFromString;
|
|
value = require(4768) /* metro dependency 4768 */;
|
|
value = value.addMissingNamespaces(a1);
|
|
return parseFromStringBinding(a0, value, true);
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
prototype = binding.prototype;
|
|
} catch (error) {
|
|
name = error.name;
|
|
if (name !== 'ParseError') {
|
|
throw error;
|
|
}
|
|
value = environment;
|
|
moduleValue = require(4768) /* metro dependency 4768 */;
|
|
isMissingNamespaceError = moduleValue.isMissingNamespaceError;
|
|
if (Reflect.apply(isMissingNamespaceError, moduleValue, [error])) {
|
|
if (r6) {
|
|
throw error;
|
|
}
|
|
parseFromStringBinding = parseFromString;
|
|
value = require(4768) /* metro dependency 4768 */;
|
|
value = value.addMissingNamespaces(a1);
|
|
return parseFromStringBinding(a0, value, true);
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
name = error.name;
|
|
if (name !== 'ParseError') {
|
|
throw error;
|
|
}
|
|
value = environment;
|
|
moduleValue = require(4768) /* metro dependency 4768 */;
|
|
isMissingNamespaceError = moduleValue.isMissingNamespaceError;
|
|
if (Reflect.apply(isMissingNamespaceError, moduleValue, [error])) {
|
|
if (r6) {
|
|
throw error;
|
|
}
|
|
parseFromStringBinding = parseFromString;
|
|
value = require(4768) /* metro dependency 4768 */;
|
|
value = value.addMissingNamespaces(a1);
|
|
return parseFromStringBinding(a0, value, true);
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
binding2 = new binding();
|
|
} catch (error) {
|
|
name = error.name;
|
|
if (name !== 'ParseError') {
|
|
throw error;
|
|
}
|
|
value = environment;
|
|
moduleValue = require(4768) /* metro dependency 4768 */;
|
|
isMissingNamespaceError = moduleValue.isMissingNamespaceError;
|
|
if (Reflect.apply(isMissingNamespaceError, moduleValue, [error])) {
|
|
if (r6) {
|
|
throw error;
|
|
}
|
|
parseFromStringBinding = parseFromString;
|
|
value = require(4768) /* metro dependency 4768 */;
|
|
value = value.addMissingNamespaces(a1);
|
|
return parseFromStringBinding(a0, value, true);
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
value = binding2 instanceof Object ? binding2 : value;
|
|
} catch (error) {
|
|
name = error.name;
|
|
if (name !== 'ParseError') {
|
|
throw error;
|
|
}
|
|
value = environment;
|
|
moduleValue = require(4768) /* metro dependency 4768 */;
|
|
isMissingNamespaceError = moduleValue.isMissingNamespaceError;
|
|
if (Reflect.apply(isMissingNamespaceError, moduleValue, [error])) {
|
|
if (r6) {
|
|
throw error;
|
|
}
|
|
parseFromStringBinding = parseFromString;
|
|
value = require(4768) /* metro dependency 4768 */;
|
|
value = value.addMissingNamespaces(a1);
|
|
return parseFromStringBinding(a0, value, true);
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
throw value;
|
|
} catch (error) {
|
|
name = error.name;
|
|
if (name !== 'ParseError') {
|
|
throw error;
|
|
}
|
|
value = environment;
|
|
moduleValue = require(4768) /* metro dependency 4768 */;
|
|
isMissingNamespaceError = moduleValue.isMissingNamespaceError;
|
|
if (Reflect.apply(isMissingNamespaceError, moduleValue, [error])) {
|
|
if (r6) {
|
|
throw error;
|
|
}
|
|
parseFromStringBinding = parseFromString;
|
|
value = require(4768) /* metro dependency 4768 */;
|
|
value = value.addMissingNamespaces(a1);
|
|
return parseFromStringBinding(a0, value, true);
|
|
}
|
|
throw error;
|
|
}
|
|
}
|
|
|
|
function getRDF(a0) { // fn#41160, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4944:2306, offset: 0x01116cae, size: 164 bytes, params: 2, frame: 14
|
|
var r5;
|
|
var tagName;
|
|
let childNodes = a0.childNodes;
|
|
let length = childNodes.length;
|
|
let value = 0;
|
|
if (value < length) {
|
|
r5 = value;
|
|
loopExit1: while (true) {
|
|
childNodes = a0.childNodes;
|
|
tagName = childNodes[r5].tagName;
|
|
if (tagName === 'x:xmpmeta') {
|
|
value = environment;
|
|
return getRDF(a0.childNodes[r5]);
|
|
}
|
|
childNodes = a0.childNodes;
|
|
tagName = childNodes[r5].tagName;
|
|
if (tagName === 'rdf:RDF') {
|
|
return a0.childNodes[r5];
|
|
}
|
|
value = typeof r5 === 'bigint' ? r5 + 1n : +r5 + 1;
|
|
childNodes = a0.childNodes;
|
|
length = childNodes.length;
|
|
if (value < length) {
|
|
r5 = value;
|
|
continue;
|
|
}
|
|
break loopExit1;
|
|
}
|
|
}
|
|
const Error = global.Error;
|
|
throw new Error();
|
|
}
|
|
|
|
function convertToObject(a0) { // fn#41161, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4944:2514, offset: 0x01116d52, size: 170 bytes, params: 2, frame: 17
|
|
var r3;
|
|
var r6;
|
|
var r0;
|
|
var push;
|
|
var value2;
|
|
var nodeName;
|
|
var value4;
|
|
let value = arguments.length > 1;
|
|
reducibleJoin2: while (true) {
|
|
if (value) {
|
|
value = arguments[1] !== undefined;
|
|
r3 = value;
|
|
break reducibleJoin2;
|
|
}
|
|
r3 = value;
|
|
break reducibleJoin2;
|
|
}
|
|
reducibleJoin4: while (true) {
|
|
if (r3) {
|
|
value = arguments[1];
|
|
r3 = value;
|
|
break reducibleJoin4;
|
|
}
|
|
break reducibleJoin4;
|
|
}
|
|
const items2 = [];
|
|
let childNodes = a0.childNodes;
|
|
let length = childNodes.length;
|
|
value = 0;
|
|
if (value < length) {
|
|
r6 = value;
|
|
reducibleLoop5: while (true) {
|
|
push = items2.push;
|
|
childNodes = a0.childNodes;
|
|
Reflect.apply(push, items2, [childNodes[r6]]);
|
|
value2 = typeof r6 === 'bigint' ? r6 + 1n : +r6 + 1;
|
|
childNodes = a0.childNodes;
|
|
length = childNodes.length;
|
|
if (value2 < length) {
|
|
r6 = value2;
|
|
continue reducibleLoop5;
|
|
}
|
|
break reducibleLoop5;
|
|
}
|
|
}
|
|
const value3 = items2.length === 1;
|
|
reducibleJoin8: while (true) {
|
|
if (value3) {
|
|
nodeName = items2[value].nodeName;
|
|
value4 = nodeName === '#text';
|
|
r0 = value4;
|
|
break reducibleJoin8;
|
|
}
|
|
r0 = value3;
|
|
break reducibleJoin8;
|
|
}
|
|
r0 = r0 ? r3 ? {} : items2[value].nodeValue : ((a0) => {
|
|
a0.forEach(_fun41163);
|
|
return {};
|
|
})(items2);
|
|
return r0;
|
|
function getElementsFromNodes(a0) { // fn#41162, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4944:2855, owner: convertToObject.getElementsFromNodes, offset: 0x01116dfc, size: 28 bytes, params: 2, frame: 12
|
|
a0.forEach(_fun41163);
|
|
return {};
|
|
function _fun41163(a0) { // fn#41163, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4944:2915, offset: 0x01116e18, size: 200 bytes, params: 2, frame: 15
|
|
var value;
|
|
var object;
|
|
var binding;
|
|
var Array;
|
|
var isArray;
|
|
let nodeName = a0.nodeName;
|
|
if (nodeName && a0.nodeName !== '#text') {
|
|
object = {};
|
|
value = environment.__proto__.__proto__;
|
|
object.attributes = getAttributes(a0);
|
|
object.value = convertToObject(a0);
|
|
binding = env0_0;
|
|
nodeName = a0.nodeName;
|
|
if (binding[nodeName] !== undefined) {
|
|
Array = global.Array;
|
|
isArray = Array.isArray;
|
|
binding = env0_0;
|
|
nodeName = a0.nodeName;
|
|
if (!Reflect.apply(isArray, Array, [binding[nodeName]])) {
|
|
binding = env0_0;
|
|
binding[a0.nodeName] = [binding[a0.nodeName]];
|
|
}
|
|
binding = env0_0;
|
|
nodeName = a0.nodeName;
|
|
binding[nodeName].push(object);
|
|
} else {
|
|
env0_0[a0.nodeName] = object;
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function parseXMPObject(a0) { // fn#41165, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4944:3390, offset: 0x01116f4a, size: 105 bytes, params: 2, frame: 20
|
|
var r11;
|
|
var propertyName;
|
|
var property;
|
|
var Array;
|
|
var isArray;
|
|
if (typeof a0 === 'string') {
|
|
return a0;
|
|
}
|
|
for (propertyName in a0) {
|
|
property = a0[propertyName];
|
|
Array = global.Array;
|
|
isArray = Array.isArray;
|
|
if (Reflect.apply(isArray, Array, [property])) {
|
|
r11 = property;
|
|
continue;
|
|
}
|
|
[property].forEach(_fun41166);
|
|
}
|
|
return {};
|
|
function _fun41166(a0) { // fn#41166, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4944:3521, offset: 0x01116fb3, size: 127 bytes, params: 2, frame: 19
|
|
var moduleValue2;
|
|
const value = environment.__proto__;
|
|
Module04731Module.objectAssign(env0_0, parseNodeAttributesAsTags(a0.attributes));
|
|
if (typeof a0.value === 'object') {
|
|
moduleValue2 = Module04731Module;
|
|
moduleValue2.objectAssign(env0_0, parseNodeChildrenAsTags(a0.value));
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
function isTagAttribute(a0) { // fn#41168, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4944:3879, offset: 0x011170a8, size: 33 bytes, params: 2, frame: 12
|
|
return a0 !== 'rdf:parseType' && !isNamespaceDefinition(a0);
|
|
}
|
|
|
|
function getDescription(a0) { // fn#41171, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4944:4131, offset: 0x01117127, size: 409 bytes, params: 2, frame: 29
|
|
var environment;
|
|
var value3;
|
|
var property;
|
|
var defaultImport;
|
|
var value4;
|
|
var decodeURIComponent;
|
|
var escape;
|
|
var value5;
|
|
var error;
|
|
var items2;
|
|
var propertyName;
|
|
var push;
|
|
var clearTextKey;
|
|
var getDescriptionBinding;
|
|
var value8;
|
|
var descriptionBinding;
|
|
var value10;
|
|
let value = undefined;
|
|
let r0 = arguments.length > 1 ? value === arguments[1] ? value : arguments[1] : value;
|
|
const Array = global.Array;
|
|
if (Array.isArray(a0)) {
|
|
value10 = ((a0) => a0.map(_fun41173).join(', '))(a0);
|
|
if (r0) {
|
|
if (typeof importDefault(dependencyMap[10])[r0] !== 'function') {
|
|
r0 = value10;
|
|
} else {
|
|
value = importDefault(dependencyMap[10]);
|
|
value = value[r0](a0, value10);
|
|
r0 = value;
|
|
}
|
|
} else {
|
|
r0 = value10;
|
|
}
|
|
} else {
|
|
if (typeof a0 === 'object') {
|
|
items2 = [];
|
|
for (propertyName in a0) {
|
|
push = items2.push;
|
|
clearTextKey = getClearTextKey(propertyName);
|
|
getDescriptionBinding = getDescription;
|
|
value8 = a0[propertyName].value;
|
|
descriptionBinding = getDescriptionBinding(value8);
|
|
Reflect.apply(push, items2, ['' + clearTextKey + ': ' + descriptionBinding]);
|
|
}
|
|
return items2.join('; ');
|
|
}
|
|
try {
|
|
if (r0) {
|
|
value3 = environment;
|
|
property = dependencyMap[10];
|
|
defaultImport = importDefault(property);
|
|
property = defaultImport[r0];
|
|
value4 = typeof property === 'function';
|
|
if (value4) {
|
|
property = dependencyMap[10];
|
|
value = importDefault(property);
|
|
value = value[r0](a0);
|
|
r0 = value;
|
|
} else {
|
|
decodeURIComponent = global.decodeURIComponent;
|
|
escape = global.escape;
|
|
value5 = escape(a0);
|
|
value = decodeURIComponent(value5);
|
|
r0 = value;
|
|
}
|
|
} else {
|
|
decodeURIComponent = global.decodeURIComponent;
|
|
escape = global.escape;
|
|
value5 = escape(a0);
|
|
value = decodeURIComponent(value5);
|
|
r0 = value;
|
|
}
|
|
} catch (error) {
|
|
return a0;
|
|
}
|
|
}
|
|
return r0;
|
|
function getDescriptionOfArray(a0) { // fn#41172, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4944:4253, owner: getDescription.getDescriptionOfArray, offset: 0x011172c0, size: 38 bytes, params: 2, frame: 11
|
|
return a0.map(_fun41173).join(', ');
|
|
function _fun41173(a0) { // fn#41173, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4944:4301, offset: 0x011172e6, size: 47 bytes, params: 2, frame: 12
|
|
var r0;
|
|
var getDescriptionBinding;
|
|
let value = a0.value;
|
|
if (value !== undefined) {
|
|
value = environment.__proto__.__proto__;
|
|
getDescriptionBinding = getDescription;
|
|
value = a0.value;
|
|
value = getDescriptionBinding(value);
|
|
r0 = value;
|
|
} else {
|
|
value = environment.__proto__.__proto__;
|
|
value = getDescription(a0);
|
|
r0 = value;
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function parseNodeAsTag(a0, a1) { // fn#41176, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4944:5208, offset: 0x01117416, size: 285 bytes, params: 3, frame: 15
|
|
var r0;
|
|
var value;
|
|
const Array = global.Array;
|
|
if (Array.isArray(a0)) {
|
|
r0 = parseNodeAsSimpleValue(a0[a0.length - 1], a1);
|
|
} else {
|
|
value = a0.attributes['rdf:parseType'] === 'Resource';
|
|
if (value) {
|
|
value = a0.value;
|
|
value = typeof value === 'string';
|
|
r0 = value;
|
|
} else {
|
|
r0 = value;
|
|
}
|
|
if (r0) {
|
|
value = a0.value;
|
|
value = value.trim();
|
|
value = value === '';
|
|
r0 = value;
|
|
}
|
|
r0 = r0 ? {'value': '', 'attributes': null, 'description': '',
|
|
attributes: {}} : hasNestedSimpleRdfDescription(a0) ? parseNodeAsSimpleRdfDescription(a0,
|
|
a1) : hasNestedStructureRdfDescription(a0) ? parseNodeAsStructureRdfDescription(a0,
|
|
a1) : isCompactStructure(a0) ? parseNodeAsCompactStructure(a0,
|
|
a1) : getArrayChild(a0.value) !== undefined ? parseNodeAsArray(a0, a1) : parseNodeAsSimpleValue(a0, a1);
|
|
}
|
|
return r0;
|
|
function parseNodeAsArray(a0, a1) { // fn#41177, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4944:5825, owner: parseNodeAsTag.parseNodeAsArray, offset: 0x01117533, size: 144 bytes, params: 3, frame: 17
|
|
const property = getArrayChild(a0.value).value['rdf:li'];
|
|
const nodeAttributes = parseNodeAttributes(a0);
|
|
const items2 = [];
|
|
(property === undefined ? [] : global.Array.isArray(property) ? property : [property]).forEach(_fun41178);
|
|
const object = {value: items2, attributes: nodeAttributes};
|
|
object.description = getDescription(items2, a1);
|
|
return object;
|
|
function _fun41178(a0) { // fn#41178, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4944:5991, offset: 0x011175c3, size: 115 bytes, params: 2, frame: 15
|
|
const binding = env0_0;
|
|
const push = binding.push;
|
|
const value = environment.__proto__.__proto__;
|
|
Reflect.apply(push, binding,
|
|
[hasNestedSimpleRdfDescription(a0) ? parseNodeAsSimpleRdfDescription(a0) : hasNestedStructureRdfDescription(a0) ? parseNodeAsStructureRdfDescription(a0).value : isCompactStructure(a0) ? parseNodeAsCompactStructure(a0).value : parseNodeAsSimpleValue(a0)]);
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function parseNodeAsSimpleRdfDescription(a0, a1) { // fn#41180, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4944:6620, offset: 0x01117699, size: 236 bytes, params: 3, frame: 27
|
|
var r11;
|
|
var r14;
|
|
var r3;
|
|
var propertyName;
|
|
var propertyName2;
|
|
var value5;
|
|
var isNamespaceDefinition2;
|
|
var localName;
|
|
var value7;
|
|
var value8;
|
|
let value = a0;
|
|
const nodeAttributes = parseNodeAttributes(value);
|
|
const r0 = value.value['rdf:Description'] === undefined ? value : value.value['rdf:Description'];
|
|
value = require(4731) /* metro dependency 4731 */;
|
|
const objectAssign = value.objectAssign;
|
|
const nodeAttributes2 = parseNodeAttributes(r0);
|
|
let object = {};
|
|
for (propertyName in r0.value) {
|
|
value5 = propertyName === 'rdf:value';
|
|
if (value5) {
|
|
r14 = value5;
|
|
continue;
|
|
}
|
|
isNamespaceDefinition2 = isNamespaceDefinition(propertyName);
|
|
r14 = isNamespaceDefinition2;
|
|
if (r14) {
|
|
r11 = propertyName2;
|
|
continue;
|
|
}
|
|
localName = getLocalName(propertyName);
|
|
value7 = r0.value;
|
|
value8 = value7[propertyName].value;
|
|
object[localName] = value8;
|
|
r11 = propertyName2;
|
|
}
|
|
Reflect.apply(objectAssign, value, [nodeAttributes, nodeAttributes2, object]);
|
|
const getURIValueBinding = getURIValue;
|
|
value = r0.value;
|
|
value = getURIValueBinding(value['rdf:value']);
|
|
if (value) {
|
|
r3 = value;
|
|
} else {
|
|
value = r0.value;
|
|
value = value['rdf:value'].value;
|
|
r3 = value;
|
|
}
|
|
object = {value: r3, attributes: nodeAttributes};
|
|
object.description = getDescription(r3, a1);
|
|
return object;
|
|
}
|
|
|
|
function parseNodeAsStructureRdfDescription(a0, a1) { // fn#41183, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4944:7509, offset: 0x01117835, size: 231 bytes, params: 3, frame: 22
|
|
var r2;
|
|
var moduleValue;
|
|
var objectAssign;
|
|
var value4;
|
|
var parseNodeAttributesAsTagsBinding;
|
|
var attributes;
|
|
var moduleValue2;
|
|
let value = a0;
|
|
const object = {value: {}, attributes: {}};
|
|
if (value.value['rdf:Description'] === undefined) {
|
|
r2 = value;
|
|
} else {
|
|
moduleValue = require(4731) /* metro dependency 4731 */;
|
|
objectAssign = moduleValue.objectAssign;
|
|
value4 = object.value;
|
|
parseNodeAttributesAsTagsBinding = parseNodeAttributesAsTags;
|
|
attributes = value.value['rdf:Description'].attributes;
|
|
Reflect.apply(objectAssign, moduleValue, [value4, parseNodeAttributesAsTagsBinding(attributes)]);
|
|
moduleValue2 = require(4731) /* metro dependency 4731 */;
|
|
objectAssign = moduleValue2.objectAssign;
|
|
attributes = object.attributes;
|
|
Reflect.apply(objectAssign, moduleValue2, [attributes, parseNodeAttributes(value)]);
|
|
value = value.value;
|
|
r2 = value['rdf:Description'];
|
|
}
|
|
const moduleValue3 = require(4731) /* metro dependency 4731 */;
|
|
moduleValue3.objectAssign(object.value, parseNodeChildrenAsTags(r2.value));
|
|
object.description = getDescription(object.value, a1);
|
|
return object;
|
|
}
|
|
|
|
function read_41189(a0, a1, a2) { // fn#41189, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4944:396, offset: 0x01117a2c, size: 233 bytes, params: 4, frame: 22
|
|
var r9;
|
|
var items2;
|
|
const object = {};
|
|
if (typeof a0 === 'string') {
|
|
readTags(object, a0, a2);
|
|
} else {
|
|
if (a1.length === 0) {
|
|
r9 = [];
|
|
} else {
|
|
items2 = [combineChunks(a0, a1.slice(0, 1))];
|
|
if (a1.length > 1) {
|
|
items2.push(combineChunks(a0, a1.slice(1)));
|
|
r9 = items2;
|
|
} else {
|
|
r9 = items2;
|
|
}
|
|
}
|
|
var value4 = Module00057(r9, 2);
|
|
var property = value4[0];
|
|
var property2 = value4[1];
|
|
if (property2) {
|
|
if (!(readTags(object, property, a2) || readTags(object, property2, a2))) {
|
|
delete object._raw;
|
|
readTags(object, combineChunks(a0, a1), a2);
|
|
}
|
|
}
|
|
}
|
|
return object;
|
|
}
|
|
|
|
function _fun41190(a0) { // fn#41190, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4944:778, offset: 0x01117b15, size: 40 bytes, params: 2, frame: 14
|
|
const ParseError2 = ParseError;
|
|
Inherits(ParseError2, a0);
|
|
return CreateClass(ParseError2);
|
|
function ParseError(a0) { // fn#41191, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4944:790, offset: 0x01117b3d, size: 127 bytes, params: 2, frame: 19
|
|
let value = environment.__proto__;
|
|
env1_5(this, ParseError);
|
|
const items2 = [a0];
|
|
const value3 = env1_7(ParseError);
|
|
value = env1_6(this, _isNativeReflectConstruct_41152() ? global.Reflect.construct(value3, items2,
|
|
env1_7(this).constructor) : value3.apply(this, items2));
|
|
value.name = 'ParseError';
|
|
return value;
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function getClearTextKey(a0) { // fn#41174, offset: 0x01117315, size: 160 bytes, params: 2, frame: 10
|
|
const value = a0;
|
|
return value === 'CiAdrCity' ? 'CreatorCity' : value === 'CiAdrCtry' ? 'CreatorCountry' : value === 'CiAdrExtadr' ? 'CreatorAddress' : value === 'CiAdrPcode' ? 'CreatorPostalCode' : value === 'CiAdrRegion' ? 'CreatorRegion' : value === 'CiEmailWork' ? 'CreatorWorkEmail' : value === 'CiTelWork' ? 'CreatorWorkPhone' : value === 'CiUrlWork' ? 'CreatorWorkUrl' : value;
|
|
}
|
|
|
|
global.__d(_fun41151, 4766, [57, 7, 6, 15, 17, 18, 162, 4731, 4767, 4768,
|
|
4769]) /* metro module 4766, dependencies: [57, 7, 6, 15, 17, 18, 162, 4731, 4767, 4768, 4769] */;
|