170 lines
6.5 KiB
JavaScript
170 lines
6.5 KiB
JavaScript
/* Metro module 4768; source: unknown; dependencies: [] */
|
|
function _fun41194(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#41194, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4946:6, offset: 0x01117c74, size: 81 bytes, params: 8, frame: 16
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const env0_0 = {'xmp': 'http://ns.adobe.com/xap/1.0/', 'tiff': 'http://ns.adobe.com/tiff/1.0/',
|
|
'exif': 'http://ns.adobe.com/exif/1.0/', 'dc': 'http://purl.org/dc/elements/1.1/',
|
|
'xmpMM': 'http://ns.adobe.com/xap/1.0/mm/', 'stEvt': 'http://ns.adobe.com/xap/1.0/sType/ResourceEvent#',
|
|
'stRef': 'http://ns.adobe.com/xap/1.0/sType/ResourceRef#', 'photoshop': 'http://ns.adobe.com/photoshop/1.0/'};
|
|
exports.isMissingNamespaceError = function(a0) {
|
|
var r2;
|
|
var RegExp;
|
|
var property;
|
|
var value2;
|
|
var items = ['prefix is non-null and namespace is null', 'prefix not bound to a namespace',
|
|
'prefix inte bundet till en namnrymd'];
|
|
items[3] = RegExp('Namespace prefix .+ is not defined', '');
|
|
var value = 0;
|
|
if (value < items.length) {
|
|
r2 = value;
|
|
loopExit1: while (true) {
|
|
RegExp = global.RegExp;
|
|
property = items[r2];
|
|
value2 = new RegExp();
|
|
if (value2.test(a0.message)) {
|
|
return true;
|
|
}
|
|
value2 = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1;
|
|
if (value2 < items.length) {
|
|
r2 = value2;
|
|
continue;
|
|
}
|
|
break loopExit1;
|
|
}
|
|
}
|
|
return false;
|
|
};
|
|
exports.addMissingNamespaces = addMissingNamespaces;
|
|
function addMissingNamespaces(a0) { // fn#41196, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4946:771, offset: 0x01117d38, size: 467 bytes, params: 2, frame: 23
|
|
var r2;
|
|
var r1;
|
|
var r11;
|
|
var r10;
|
|
var r13;
|
|
var r0;
|
|
var property;
|
|
var items2;
|
|
var regexp;
|
|
var value3;
|
|
var indexOf;
|
|
var value4;
|
|
var value5;
|
|
var property2;
|
|
var value6;
|
|
var value7;
|
|
var value8;
|
|
var value9;
|
|
var length;
|
|
var value10;
|
|
var property3;
|
|
var property4;
|
|
var value12;
|
|
var value13;
|
|
var value14;
|
|
var RegExp;
|
|
var value15;
|
|
var value16;
|
|
var regExp;
|
|
let value = a0;
|
|
const value2 = value.match(RegExp('<([A-Za-z_][A-Za-z0-9._-]*)([^>]*)>', ''));
|
|
if (value2) {
|
|
property = value2[1];
|
|
items2 = [];
|
|
regexp = RegExp('xmlns:([\\w-]+)=["\'][^"\']+["\']', 'g');
|
|
value3 = regexp.exec(value);
|
|
if (value3 !== null) {
|
|
r2 = value3;
|
|
while (true) {
|
|
indexOf = items2.indexOf;
|
|
if (Reflect.apply(indexOf, items2, [r2[1]]) === -1) {
|
|
items2.push(r2[1]);
|
|
}
|
|
value4 = regexp.exec(value);
|
|
if (value4 !== null) {
|
|
r2 = value4;
|
|
continue;
|
|
}
|
|
break;
|
|
}
|
|
}
|
|
var items3 = items2;
|
|
items2 = [];
|
|
regexp = RegExp('\\b([A-Za-z_][A-Za-z0-9._-]*):[A-Za-z_][A-Za-z0-9._-]*\\b', 'g');
|
|
value5 = regexp.exec(value);
|
|
if (value5 !== null) {
|
|
r1 = value5;
|
|
while (true) {
|
|
property2 = r1[1];
|
|
value6 = property2 !== 'xmlns';
|
|
if (value6) {
|
|
value7 = property2 !== 'xml';
|
|
r11 = value7;
|
|
} else {
|
|
r11 = value6;
|
|
}
|
|
if (!r11) {
|
|
continue;
|
|
}
|
|
indexOf = items2.indexOf;
|
|
if (Reflect.apply(indexOf, items2, [property2]) !== -1) {
|
|
continue;
|
|
}
|
|
items2.push(property2);
|
|
value8 = regexp.exec(value);
|
|
if (value8 !== null) {
|
|
r1 = value8;
|
|
continue;
|
|
}
|
|
break;
|
|
}
|
|
}
|
|
value9 = items2.filter(_fun41197);
|
|
length = value9.length;
|
|
value10 = 0;
|
|
if (value10 === length) {
|
|
r0 = value;
|
|
} else {
|
|
items2 = [];
|
|
length = value9.length;
|
|
if (value10 < length) {
|
|
r10 = value10;
|
|
while (true) {
|
|
property3 = value9[r10];
|
|
property4 = items3[property3];
|
|
if (property4) {
|
|
r13 = property4;
|
|
} else {
|
|
value12 = 'http://fallback.namespace/' + property3;
|
|
r13 = value12;
|
|
}
|
|
items2.push(' xmlns:' + property3 + '="' + r13 + '"');
|
|
value13 = typeof r10 === 'bigint' ? r10 + 1n : +r10 + 1;
|
|
length = value9.length;
|
|
if (value13 < length) {
|
|
r10 = value13;
|
|
continue;
|
|
}
|
|
break;
|
|
}
|
|
}
|
|
value14 = items2.join('');
|
|
RegExp = global.RegExp;
|
|
value15 = '<' + property;
|
|
value16 = Object.create(RegExp.prototype, {constructor: {value: RegExp}});
|
|
regExp = new RegExp(value15 + '([^>]*)>');
|
|
value = value.replace(regExp instanceof Object ? regExp : value16, '<' + property + '$1' + value14 + '>');
|
|
r0 = value;
|
|
}
|
|
return r0;
|
|
}
|
|
return value;
|
|
function _fun41197(a0) { // fn#41197, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4946:1276, offset: 0x01117f0b, size: 33 bytes, params: 2, frame: 11
|
|
return env0_0.indexOf(a0) === -1;
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun41194, 4768, []) /* metro module 4768 */;
|