Files
2026-07-28 01:06:53 +03:00

1780 lines
84 KiB
JavaScript

/* Metro module 3855; source: unknown; dependencies: [] */
function _fun31788(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#31788, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3994:6, offset: 0x01003828, size: 120 bytes, params: 8, frame: 15
const value = this;
const t_317892 = t_31789;
if (typeof exports !== 'object') {
if (typeof global.define !== 'function') {
(value || global.self).SimpleMarkdown = t_317892();
} else if (global.define.amd) {
global.define(t_317892);
} else {
(value || global.self).SimpleMarkdown = t_317892();
}
} else if (module !== undefined) {
module.exports = t_317892();
} else if (typeof global.define !== 'function') {
(value || global.self).SimpleMarkdown = t_317892();
} else if (global.define.amd) {
global.define(t_317892);
} else {
(value || global.self).SimpleMarkdown = t_317892();
}
function t_31789() { // fn#31789, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3994:50, offset: 0x010038a0, size: 3259 bytes, params: 1, frame: 35
var RegExp;
var error;
const env0_7 = RegExp('\\r\\n?', 'g');
const env0_8 = RegExp('\\t', 'g');
const env0_9 = RegExp('\\f', 'g');
const preprocess2 = preprocess;
const populateInitialState = function(a0, a1) {
var r0;
var r4;
var propertyName;
var propertyName2;
var hasOwnProperty;
r0 = a0 || ({});
if (a1 != null) {
for (propertyName in a1) {
hasOwnProperty = global.Object.prototype.hasOwnProperty;
if (!hasOwnProperty.call(a1, propertyName)) {
r4 = propertyName2;
continue;
}
r0[propertyName] = a1[propertyName];
r4 = propertyName2;
}
}
return r0;
};
const parserFor2 = parserFor;
const closure3 = function(a0) {
var env0_0 = a0;
var closure = _fun31799;
closure.regex = a0;
return closure;
};
const closure4 = function(a0) {
var env0_0 = a0;
var closure = _fun31801;
closure.regex = a0;
return closure;
};
const closure5 = function(a0) {
var env0_0 = a0;
var closure = _fun31803;
closure.regex = a0;
return closure;
};
const Symbol = global.Symbol;
const env0_12 = typeof Symbol === 'function' && global.Symbol.for && global.Symbol.for('react.transitional.element') || 60103;
const reactElement2 = reactElement;
const htmlTag2 = htmlTag;
const env0_15 = {};
const sanitizeUrl2 = sanitizeUrl;
const env0_17 = RegExp('[<>&"\']', 'g');
const env0_18 = {'<': '&lt;', '>': '&gt;', '&': '&amp;', '"': '&quot;', "'": '&#x27;', '/': '&#x2F;', '`': '&#96;'};
const sanitizeText2 = sanitizeText;
const env0_20 = RegExp('\\\\([^0-9A-Za-z\\s])', 'g');
const unescapeUrl2 = unescapeUrl;
const closure11 = function(a0, a1, a2) {
var r1;
var value;
r1 = a2.inline || false;
a2.inline = true;
value = a0(a1, a2);
a2.inline = r1;
return value;
};
const closure12 = function(a0, a1, a2) {
var object = {};
object.content = parseInline(a1, a0[1], a2);
return object;
};
const closure13 = function() {
return {};
};
RegExp = global.RegExp;
let prototype = RegExp.prototype;
value = Object.create(prototype, {constructor: {value: RegExp}});
let regExp = new RegExp('^( *)((?:[*+-]|\\d+\\.)) +');
value = regExp instanceof Object ? regExp : value;
RegExp = global.RegExp;
regExp = new RegExp('( *)((?:[*+-]|\\d+\\.)) +[^\\n]*(?:\\n(?!\\1(?:[*+-]|\\d+\\.) )[^\\n]*)*(\n|$)', 'gm');
const regexp = RegExp('\\n{2,}$', '');
const env0_26 = RegExp('^ (?= *`)|(` *) $', 'g');
const env0_28 = RegExp(' *\\n+$', '');
RegExp = global.RegExp;
regExp = new RegExp('^( *)((?:[*+-]|\\d+\\.)) [\\s\\S]+?(?:\n{2,}(?! )(?!\\1(?:[*+-]|\\d+\\.) )\\n*|\\s*\n*$)');
const env0_30 = RegExp('(?:^|\\n)( *)$', '');
let env0_0 = RegExp('^ *\\| *| *\\| *$', 'g');
let env0_1 = RegExp(' *$', '');
const env0_2 = RegExp('^ *-+: *$', '');
const env0_3 = RegExp('^ *:-+: *$', '');
const env0_4 = RegExp('^ *:-+ *$', '');
const parseTableRow = function(a0, a1, a2, a3) {
var env0_0 = a3;
var inTable = a2.inTable;
a2.inTable = true;
var value = a0.trim();
value = a1(value, a2);
var env0_1 = value;
a2.inTable = inTable;
value.forEach(_fun31815);
return [[]];
};
let object = {};
const closure14 = function(a0) {
var env0_0 = a0;
return _fun31817;
};
object.parseTable = closure14(true);
object.parseNpTable = closure14(false);
object.TABLE_REGEX = RegExp('^ *(\\|.+)\\n *\\|( *[-:]+[-| :]*)\\n((?: *\\|.*(?:\\n|$))*)\\n*', '');
object.NPTABLE_REGEX = RegExp('^ *(\\S.*\\|.*)\\n *([-:]+ *\\|[-| :]*)\\n((?:.*\\|.*(?:\\n|$))*)\\n*', '');
const env0_31 = RegExp('mailto:', 'i');
try {
RegExp = global.RegExp;
prototype = RegExp.prototype;
Object.create(prototype, {constructor: {value: RegExp}});
new RegExp('(?<=a)');
RegExp = global.RegExp;
prototype = RegExp.prototype;
Object.create(prototype, {constructor: {value: RegExp}});
new RegExp('(?<!a)');
} catch (error) {
}
const object2 = {};
object2.Array = {react: react, html: html};
object2.heading = {order: 0, match: closure4(RegExp('^ *(#{1,6})([^\\n]+?)#* *(?:\\n *)+\\n', '')),
parse: parse_31823, react: react_31824, html: html_31825};
const object5 = {'order': 1, 'match': null, 'parse': null, 'react': null, 'html': null};
const NPTABLE_REGEX = object.NPTABLE_REGEX;
object5.match = closure4(NPTABLE_REGEX);
object5.parse = object.parseNpTable;
object2.nptable = object5;
const object6 = {'order': 2, 'match': null, 'parse': null, 'react': null, 'html': null};
object6.match = closure4(RegExp('^([^\\n]+)\\n *(=|-){3,} *(?:\\n *)+\\n', ''));
object6.parse = parse_31826;
object2.lheading = object6;
object2.hr = {order: 3, match: closure4(RegExp('^( *[-*_]){3,} *(?:\\n *)+\\n', '')), parse: closure13,
react: react_31827, html: function(a0, a1, a2) {
return '<hr>';
}};
object2.codeBlock = {order: 4, match: closure4(RegExp('^(?: [^\\n]+\\n*)+(?:\\n *)+\\n', '')),
parse: function(a0, a1, a2) {
var object = {lang: undefined};
object.content = a0[0].replace(RegExp('^ ', 'gm'), '').replace(RegExp('\\n+$', ''), '');
return object;
}, react: function(a0, a1, a2) {
var r5;
r5 = a0.lang ? 'markdown-code-' + a0.lang : undefined;
var reactElementBinding = reactElement;
var key = a2.key;
var object = {};
object.children = reactElement('code', null, {className: r5, children: a0.content});
return reactElementBinding('pre', key, object);
}, html: function(a0, a1, a2) {
return htmlTag('pre', htmlTag('code', sanitizeText(a0.content),
{class: a0.lang ? 'markdown-code-' + a0.lang : undefined}));
}};
const object9 = {'order': 5, 'match': null, 'parse': null, 'react': null, 'html': null};
object9.match = closure4(RegExp('^ *(`{3,}|~{3,}) *(?:(\\S+) *)?\\n([\\s\\S]+?)\\n?\\1 *(?:\\n *)+\\n', ''));
object9.parse = function(a0, a1, a2) {
return {type: 'codeBlock', lang: a0[2] || undefined, content: a0[3]};
};
object2.fence = object9;
object2.blockQuote = {order: 6, match: closure4(RegExp('^( *>[^\\n]+(\\n[^\\n]+)*\\n*)+\\n{2,}', '')),
parse: function(a0, a1, a2) {
var object = {};
object.content = a1(a0[0].replace(RegExp('^ *> ?', 'gm'), ''), a2);
return object;
}, react: function(a0, a1, a2) {
return reactElement('blockquote', a2.key, {children: a1(a0.content, a2)});
}, html: html_31835};
object2.list = {order: 7, match: match, parse: parse_31837, react: react_31839, html: function(a0, a1, a2) {
var env0_0 = a1;
var env0_1 = a2;
var value = a0.items.map(_fun31842);
value = value.join('');
return htmlTag(a0.ordered ? 'ol' : 'ul', value, {start: a0.start});
}};
object2.def = {order: 8,
match: closure4(RegExp('^ *\\[([^\\]]+)\\]: *<?([^\\s>]*)>?(?: +["(]([^\\n]+)[")])? *\\n(?: *\\n)*', '')),
parse: parse_31843, react: function() {
return null;
}, html: function() {
return '';
}};
const object12 = {order: 9};
const TABLE_REGEX = object.TABLE_REGEX;
object12.match = closure4(TABLE_REGEX);
object12.parse = object.parseTable;
object12.react = react_31847;
object12.html = html_31852;
object2.table = object12;
object2.newline = {order: 10, requiredFirstCharacters: ['\n'], match: closure4(RegExp('^(?:\\n *)*\\n', '')),
parse: closure13, react: function(a0, a1, a2) {
return '\n';
}, html: function(a0, a1, a2) {
return '\n';
}};
object2.paragraph = {order: 11, match: closure4(RegExp('^((?:[^\\n]|\\n(?! *\\n))+)(?:\\n *)+\\n', '')),
parse: closure12, react: function(a0, a1, a2) {
return reactElement('div', a2.key, {className: 'paragraph', children: a1(a0.content, a2)});
}, html: html_31860};
object = {'order': 12, 'requiredFirstCharacters': null, 'match': null, 'parse': null, 'react': null, 'html': null};
object.requiredFirstCharacters = ['\\'];
object.match = closure3(RegExp('^\\\\([^0-9A-Za-z\\s])', ''));
object.parse = function(a0, a1, a2) {
return {type: 'text', content: a0[1]};
};
object2.escape = object;
object2.tableSeparator = {order: 13, match: function(a0, a1) {
return a1.inTable ? RegExp('^ *\\| *', '').exec(a0) : null;
}, parse: function() {
return {type: 'tableSeparator'};
}, react: function() {
return ' | ';
}, html: function() {
return ' &vert; ';
}};
object = {'order': 14, 'requiredFirstCharacters': null, 'match': null, 'parse': null, 'react': null, 'html': null};
object.requiredFirstCharacters = ['<'];
object.match = closure3(RegExp('^<([^: >]+:\\/[^ >]+)>', ''));
object.parse = function(a0, a1, a2) {
return {type: 'link', content: [{type: 'text', content: a0[1]}], target: a0[1]};
};
object2.autolink = object;
object = {'order': 15, 'match': null, 'parse': null, 'react': null, 'html': null};
object.match = closure3(RegExp('^<([^ >]+@[^ >]+)>', ''));
object.parse = parse_31867;
object2.mailto = object;
object = {'order': 16, 'requiredFirstCharacters': null, 'match': null, 'parse': null, 'react': null, 'html': null};
object.requiredFirstCharacters = ['h'];
object.match = closure3(RegExp('^(https?:\\/\\/[^\\s<]+[^<.,:;"\')\\]\\s])', ''));
object.parse = function(a0, a1, a2) {
return {type: 'link', content: [{type: 'text', content: a0[1]}], target: a0[1], title: undefined};
};
object2.url = object;
object = {order: 17, requiredFirstCharacters: ['[']};
RegExp = global.RegExp;
object.match = closure3(new RegExp('^\\[((?:\\[[^\\]]*\\]|[^\\[\\]]|\\](?=[^\\[]*\\]))*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+[\'"]([\\s\\S]*?)[\'"])?\\s*\\)'));
object.parse = function(a0, a1, a2) {
var object = {content: a1(a0[1], a2)};
object.target = unescapeUrl(a0[2]);
object.title = a0[3];
return object;
};
object.react = function(a0, a1, a2) {
var reactElementBinding = reactElement;
var key = a2.key;
var object = {};
object.href = sanitizeUrl(a0.target);
object.title = a0.title;
object.children = a1(a0.content, a2);
return reactElementBinding('a', key, object);
};
object.html = html_31871;
object2.link = object;
object = {order: 18};
RegExp = global.RegExp;
object.match = closure3(new RegExp('^!\\[((?:\\[[^\\]]*\\]|[^\\[\\]]|\\](?=[^\\[]*\\]))*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+[\'"]([\\s\\S]*?)[\'"])?\\s*\\)'));
object.parse = function(a0, a1, a2) {
var object = {alt: a0[1]};
object.target = unescapeUrl(a0[2]);
object.title = a0[3];
return object;
};
object.react = function(a0, a1, a2) {
var reactElementBinding = reactElement;
var key = a2.key;
var object = {};
object.src = sanitizeUrl(a0.target);
object.alt = a0.alt;
object.title = a0.title;
return reactElementBinding('img', key, object);
};
object.html = function(a0, a1, a2) {
var object = {};
object.src = sanitizeUrl(a0.target);
object.alt = a0.alt;
object.title = a0.title;
return htmlTag('img', '', object, false);
};
object2.image = object;
object = {'order': 19, 'match': null, 'parse': null, 'react': null, 'html': null};
RegExp = global.RegExp;
object.match = closure3(new RegExp('^\\[((?:\\[[^\\]]*\\]|[^\\[\\]]|\\](?=[^\\[]*\\]))*)\\]\\s*\\[([^\\]]*)\\]'));
object.parse = function(a0, a1, a2) {
return parseRef(a0, a2, {type: 'link', content: a1(a0[1], a2)});
};
object2.reflink = object;
object = {'order': 20, 'match': null, 'parse': null, 'react': null, 'html': null};
RegExp = global.RegExp;
object.match = closure3(new RegExp('^!\\[((?:\\[[^\\]]*\\]|[^\\[\\]]|\\](?=[^\\[]*\\]))*)\\]\\s*\\[([^\\]]*)\\]'));
object.parse = function(a0, a1, a2) {
return parseRef(a0, a2, {type: 'image', alt: a0[1]});
};
object2.refimage = object;
object = {order: 21};
RegExp = global.RegExp;
object.match = closure3(new RegExp('^\\b_((?:__|\\\\[\\s\\S]|[^\\\\_])+?)_\\b' + '|^\\*(?=\\S)((?:\\*\\*|\\\\[\\s\\S]|\\s+(?:\\\\[\\s\\S]|[^\\s\\*\\\\]|\\*\\*)|[^\\s\\*\\\\])+?)\\*(?!\\*)'));
object.quality = function(a0) {
return a0[0].length + 0.2;
};
object.parse = function(a0, a1, a2) {
var object = {};
object.content = a1(a0[2] || a0[1], a2);
return object;
};
object.react = function(a0, a1, a2) {
return reactElement('em', a2.key, {children: a1(a0.content, a2)});
};
object.html = html_31880;
object2.em = object;
object2.strong = {order: 21, requiredFirstCharacters: ['*'],
match: closure3(RegExp('^\\*\\*((?:\\\\[\\s\\S]|[^\\\\])+?)\\*\\*(?!\\*)', '')), quality: function(a0) {
return a0[0].length + 0.1;
}, parse: closure12, react: function(a0, a1, a2) {
return reactElement('strong', a2.key, {children: a1(a0.content, a2)});
}, html: html_31883};
object = {};
regExp = typeof 21 === 'bigint' ? 21 : +21;
const value3 = typeof regExp === 'bigint' ? regExp + 1n : +regExp + 1;
object.order = regExp;
object.requiredFirstCharacters = ['_'];
object.match = closure3(RegExp('^__((?:\\\\[\\s\\S]|[^\\\\])+?)__(?!_)', ''));
object.quality = function(a0) {
return a0[0].length;
};
object.parse = closure12;
object.react = function(a0, a1, a2) {
return reactElement('u', a2.key, {children: a1(a0.content, a2)});
};
object.html = html_31886;
object2.u = object;
object = {};
regExp = typeof value3 === 'bigint' ? value3 : +value3;
const value4 = typeof regExp === 'bigint' ? regExp + 1n : +regExp + 1;
object.order = regExp;
object.requiredFirstCharacters = ['~'];
object.match = closure3(RegExp('^~~(?=\\S)((?:\\\\[\\s\\S]|~(?!~)|[^\\s~]|\\s(?!~~))+?)~~', ''));
object.parse = closure12;
object.react = function(a0, a1, a2) {
return reactElement('del', a2.key, {children: a1(a0.content, a2)});
};
object.html = html_31888;
object2.del = object;
object = {};
regExp = typeof value4 === 'bigint' ? value4 : +value4;
const value5 = typeof regExp === 'bigint' ? regExp + 1n : +regExp + 1;
object.order = regExp;
object.requiredFirstCharacters = ['`'];
object.match = closure3(RegExp('^(`+)([\\s\\S]*?[^`])\\1(?!`)', ''));
object.parse = parse_31889;
object.react = function(a0, a1, a2) {
return reactElement('code', a2.key, {children: a0.content});
};
object.html = html_31891;
object2.inlineCode = object;
object = {};
regExp = typeof value5 === 'bigint' ? value5 : +value5;
const value6 = typeof regExp === 'bigint' ? regExp + 1n : +regExp + 1;
object.order = regExp;
object.requiredFirstCharacters = [' '];
object.match = closure5(RegExp('^ {2,}\\n', ''));
object.parse = closure13;
object.react = react_31892;
object.html = function(a0, a1, a2) {
return '<br>';
};
object2.br = object;
object = {};
regExp = typeof value6 === 'bigint' ? value6 : +value6;
typeof regExp === 'bigint' ? regExp + 1n : +regExp + 1;
object.order = regExp;
object.match = closure5(RegExp('^[\\s\\S]+?(?=[^0-9A-Za-z\\s\\u00c0-\\uffff]|\\n\\n| {2,}\\n|\\w+:\\S|$)', ''));
object.parse = function(a0, a1, a2) {
return {content: a0[0]};
};
object.react = function(a0, a1, a2) {
return a0.content;
};
object.html = function(a0, a1, a2) {
return sanitizeText(a0.content);
};
object2.text = object;
const outputFor2 = outputFor;
return {defaultRules: object2, parserFor: parserFor2, outputFor: outputFor2, inlineRegex: closure3,
blockRegex: closure4, anyScopeRegex: closure5, parseInline: closure11, parseBlock: function(a0, a1, a2) {
var r1;
var value;
r1 = a2.inline || false;
a2.inline = false;
value = a0(a1 + '\n\n', a2);
a2.inline = r1;
return value;
}, markdownToReact: markdownToReact, markdownToHtml: markdownToHtml, ReactMarkdown: ReactMarkdown,
defaultBlockParse: defaultBlockParse, defaultInlineParse: defaultInlineParse,
defaultImplicitParse: defaultImplicitParse, defaultReactOutput: outputFor2(object2, 'react'),
defaultHtmlOutput: outputFor2(object2, 'html'), preprocess: preprocess2, sanitizeText: sanitizeText2,
sanitizeUrl: sanitizeUrl2, unescapeUrl: unescapeUrl2, htmlTag: htmlTag2, reactElement: reactElement2,
defaultRawParse: parserFor2(object2), ruleOutput: function(a0, a1) {
var value = a1;
var env0_0 = a0;
var env0_1 = value;
if (!(value || typeof global.console === 'undefined')) {
global.console.warn("simple-markdown ruleOutput should take 'react' or 'html' as the second argument.");
}
return _fun31908;
}, reactFor: function(a0) {
var env0_0 = a0;
var closure = _fun31910;
var env0_1 = closure;
return closure;
}, htmlFor: function(a0) {
var env0_0 = a0;
var closure = _fun31912;
var env0_1 = closure;
return closure;
}, defaultParse: function() {
if (typeof global.console !== 'undefined') {
global.console.warn('defaultParse is deprecated, please use `defaultImplicitParse`');
}
return defaultImplicitParse.apply(null, arguments);
}, defaultOutput: defaultOutput};
function preprocess(a0) { // fn#31790, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3994:123, owner: t_31789.preprocess, offset: 0x0100455b, size: 67 bytes, params: 2, frame: 14
return a0.replace(env0_7, '\n').replace(env0_9, '').replace(env0_8, ' ');
}
function parserFor(a0, a1) { // fn#31792, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3994:346, owner: t_31789.parserFor, offset: 0x010045f3, size: 212 bytes, params: 3, frame: 18
var r4;
var property;
var requiredFirstCharacters;
var value5;
const env0_0 = a0;
const env0_1 = a1;
const Object = global.Object;
let value = Object.keys(a0);
value = value.filter(_fun31793);
value.sort(_fun31794);
const Map = global.Map;
const map = new Map();
const items2 = [];
let length = value.length;
const value4 = 0;
if (value4 < length) {
r4 = value4;
while (true) {
property = value[r4];
var env0_6 = property;
requiredFirstCharacters = a0[property].requiredFirstCharacters;
if (requiredFirstCharacters == null) {
items2.push(property);
} else {
requiredFirstCharacters.map(_fun31795);
}
value5 = typeof r4 === 'bigint' ? r4 + 1n : +r4 + 1;
length = value.length;
if (value5 < length) {
r4 = value5;
continue;
}
break;
}
}
const nestedParse2 = nestedParse;
const outerParse2 = outerParse;
nestedParse2.rules = a0;
outerParse2.rules = a0;
return outerParse2;
function _fun31793(a0) { // fn#31793, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3994:399, offset: 0x010046c7, size: 156 bytes, params: 2, frame: 14
var console;
const property = env0_0[a0];
if (property == null) {
return false;
}
if (property.match == null) {
return false;
}
const order = property.order;
let r0 = typeof order === 'number' && global.isFinite(order);
r0 = !r0 ? typeof global.console === 'undefined' : r0;
if (!r0) {
console = global.console;
console.warn('simple-markdown: Invalid order for rule `' + a0 + '`: ' + global.String(order));
}
return true;
}
function _fun31794(a0, a1) { // fn#31794, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3994:629, offset: 0x01004763, size: 114 bytes, params: 3, frame: 9
const binding = env0_0;
const property = binding[a0];
const property2 = binding[a1];
const order = property.order;
const order2 = property2.order;
if (order !== order2) {
return order - order2;
}
const quality = property.quality;
const value = 1;
const r4 = quality ? 0 : value;
const r3 = property2.quality ? 0 : value;
return r4 !== r3 ? r4 - r3 : a0 < a1 ? -1 : a0 > a1 ? value : 0;
}
function _fun31795(a0) { // fn#31795, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3994:884, offset: 0x010047d5, size: 87 bytes, params: 2, frame: 14
let value = a0.charCodeAt(0);
const binding = env0_4;
if (!binding.has(value)) {
env0_4.set(value, []);
}
value = env0_4.get(value);
value.push(env0_6);
}
function nestedParse(a0, a1) { // fn#31796, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3994:966, owner: t_31789.parserFor.nestedParse, offset: 0x0100482c, size: 1019 bytes, params: 3, frame: 82
var r9;
var r5;
var r32;
var r33;
var r34;
var r35;
var r36;
var r37;
var r54;
var r55;
var r56;
var r57;
var r58;
var r59;
var r23;
var r60;
var r67;
var r68;
var r69;
var r70;
var r71;
var r47;
var r48;
var r49;
var r50;
var r51;
var r21;
var r22;
var r25;
var binding;
var get;
var charCodeAt;
var items2;
var length;
var property;
var property2;
var property3;
var order;
var prevCapture;
var property4;
var quality;
var value12;
var value13;
var value14;
var index;
var Array;
var isArray;
var type;
var push;
var prototype;
var substring;
var Error;
let value = a0;
const value2 = a1;
const items3 = [];
if (value2) {
r9 = value2;
} else {
binding = env0_3;
r9 = binding;
}
const _parseDepth = r9._parseDepth;
const value5 = null;
const value6 = 0;
const value7 = (value5 != _parseDepth ? _parseDepth : value6) + 1;
if (value7 > 1000) {
if (value) {
items3.push({type: 'text', content: value});
}
} else {
var Object = global.Object;
var value8 = Object.assign({}, r9, {_parseDepth: value7});
if (value) {
r5 = value;
while (true) {
binding = env0_4;
get = binding.get;
charCodeAt = r5.charCodeAt;
value = Reflect.apply(get, binding, [Reflect.apply(charCodeAt, r5, [value6])]);
items2 = [value, env0_5];
length = items2.length;
if (value6 < length) {
r32 = value6;
r33 = 100000;
r34 = -100000;
r35 = value5;
r36 = value5;
r37 = value5;
while (true) {
property = items2[r32];
if (value5 == property) {
r47 = r35;
r48 = r36;
r49 = r37;
r50 = r33;
r51 = r34;
} else {
length = property.length;
if (!(value6 < length)) {
r47 = r35;
r48 = r36;
r49 = r37;
r50 = r33;
r51 = r34;
break;
}
r54 = value6;
r55 = r33;
r56 = r34;
r57 = r35;
r58 = r36;
r59 = r37;
while (true) {
property2 = property[r54];
property3 = env0_0[property2];
order = property3.order;
if (order > r55) {
r47 = r57;
r48 = r58;
r49 = r59;
r50 = r55;
r51 = r56;
break;
}
prevCapture = value8.prevCapture;
if (value5 == prevCapture) {
r23 = '';
continue;
}
prevCapture = value8.prevCapture;
property4 = prevCapture[value6];
r23 = property4;
value = property3.match(r5, value8, r23);
if (value) {
quality = property3.quality;
if (!quality) {
r23 = value6;
continue;
}
value12 = property3.quality(value, value8, r23);
r23 = value12;
value13 = order < r55;
if (value13) {
r60 = value13;
continue;
}
value14 = r23 > r56;
r60 = value14;
if (r60) {
r67 = order;
r68 = r23;
r69 = value;
r70 = property3;
r71 = property2;
continue;
}
r67 = r55;
r68 = r56;
r69 = r57;
r70 = r58;
r71 = r59;
continue;
}
r67 = r55;
r68 = r56;
r69 = r57;
r70 = r58;
r71 = r59;
continue;
value = typeof r54 === 'bigint' ? r54 + 1n : +r54 + 1;
length = property.length;
if (value < length) {
r54 = value;
r55 = r67;
r56 = r68;
r57 = r69;
r58 = r70;
r59 = r71;
continue;
}
r47 = r69;
r48 = r70;
r49 = r71;
r50 = r67;
r51 = r68;
break;
}
}
value = typeof r32 === 'bigint' ? r32 + 1n : +r32 + 1;
length = items2.length;
if (value < length) {
r32 = value;
r33 = r50;
r34 = r51;
r35 = r47;
r36 = r48;
r37 = r49;
continue;
}
r21 = r47;
r22 = r49;
r25 = r48;
break;
}
} else {
r21 = value5;
r22 = value5;
r25 = value5;
}
if (value5 == r25) {
Error = global.Error;
binding = env0_2;
throw new Error("Could not find a matching rule for the below content. The rule with highest `order` should always match content provided to it. Check the definition of `match` for '" + binding[binding.length - 1] + "'. It seems to not match the following source:\n" + r5);
}
if (value5 == r21) {
Error = global.Error;
binding = env0_2;
throw new Error("Could not find a matching rule for the below content. The rule with highest `order` should always match content provided to it. Check the definition of `match` for '" + binding[binding.length - 1] + "'. It seems to not match the following source:\n" + r5);
}
index = r21.index;
if (index) {
throw new global.Error('`match` must return a capture starting at index 0 (the current parse index). Did you forget a ^ at the start of the RegExp?');
}
value = r25.parse(r21, nestedParse, value8);
Array = global.Array;
isArray = Array.isArray;
if (Reflect.apply(isArray, Array, [value])) {
Array = global.Array;
prototype = Array.prototype;
push = prototype.push;
push.apply(items3, value);
} else {
type = value.type;
if (value5 != type) {
continue;
}
value.type = r22;
items3.push(value);
}
value8.prevCapture = r21;
substring = r5.substring;
prevCapture = value8.prevCapture;
length = prevCapture[value6].length;
value = Reflect.apply(substring, r5, [length]);
if (value) {
r5 = value;
continue;
}
break;
}
return items3;
}
}
return items3;
}
function outerParse(a0, a1) { // fn#31797, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3994:2075, owner: t_31789.parserFor.outerParse, offset: 0x01004c27, size: 104 bytes, params: 3, frame: 16
var r4;
let value = a0;
const value4 = populateInitialState(a1, require);
env0_3 = value4;
if (value4.inline || env0_3.disableAutoBlockNewlines) {
r4 = value;
} else {
value += '\n\n';
r4 = value;
}
env0_3.prevCapture = null;
return nestedParse(preprocess(r4), env0_3);
}
}
function inlineRegex(a0) { // fn#31798, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3994:2227, owner: t_31789.inlineRegex, offset: 0x01004c8f, size: 22 bytes, params: 2, frame: 3
const env0_0 = a0;
const inlineRegexMatch2 = inlineRegexMatch;
inlineRegexMatch2.regex = a0;
return inlineRegexMatch2;
function inlineRegexMatch(a0, {inline}) { // fn#31799, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3994:2257, owner: t_31789.inlineRegex.match, offset: 0x01004ca5, size: 37 bytes, params: 3, frame: 12
return inline ? env0_0.exec(a0) : null;
}
}
function blockRegex(a0) { // fn#31800, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3994:2331, owner: t_31789.blockRegex, offset: 0x01004cca, size: 22 bytes, params: 2, frame: 3
const env0_0 = a0;
const blockRegexMatch2 = blockRegexMatch;
blockRegexMatch2.regex = a0;
return blockRegexMatch2;
function blockRegexMatch(a0, {inline}) { // fn#31801, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3994:2360, owner: t_31789.blockRegex.match, offset: 0x01004ce0, size: 37 bytes, params: 3, frame: 12
return inline ? null : env0_0.exec(a0);
}
}
function anyScopeRegex(a0) { // fn#31802, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3994:2434, owner: t_31789.anyScopeRegex, offset: 0x01004d05, size: 22 bytes, params: 2, frame: 3
const env0_0 = a0;
const anyScopeRegexMatch2 = anyScopeRegexMatch;
anyScopeRegexMatch2.regex = a0;
return anyScopeRegexMatch2;
function anyScopeRegexMatch(a0, a1) { // fn#31803, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3994:2466, owner: t_31789.anyScopeRegex.match, offset: 0x01004d1b, size: 23 bytes, params: 3, frame: 11
return env0_0.exec(a0);
}
}
function reactElement(a0, a1, a2) { // fn#31804, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3994:2615, owner: t_31789.reactElement, offset: 0x01004d32, size: 62 bytes, params: 4, frame: 5
return {$$typeof: env0_12, type: a0, key: a1 ?? undefined, ref: null, props: a2, _owner: null};
}
function htmlTag(a0, a1, a2, a3) { // fn#31805, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3994:2723, owner: t_31789.htmlTag, offset: 0x01004d70, size: 220 bytes, params: 5, frame: 30
var r0;
var r11;
var r16;
var r2;
var propertyName;
var propertyName2;
var property;
var Object;
var prototype;
var hasOwnProperty;
var value4;
let value = a2;
const value2 = a3;
const r15 = value || ({});
const r1 = value2 === undefined || value2;
value = '';
const properties = Object.keys(r15);
const properties2 = 0;
const properties3 = properties.length;
if (properties === undefined) {
r2 = value;
} else {
r0 = value;
r11 = properties2;
while (true) {
propertyName = properties[r11];
propertyName2 = r11 + 1;
if (propertyName === undefined) {
r2 = r0;
break;
}
property = r15[propertyName];
Object = global.Object;
prototype = Object.prototype;
hasOwnProperty = prototype.hasOwnProperty;
value = hasOwnProperty.call(r15, propertyName);
if (value) {
r16 = property;
continue;
}
r16 = value;
continue;
if (!r16) {
r11 = propertyName2;
continue;
}
value = ' ' + sanitizeText(propertyName);
value4 = sanitizeText(property);
value = r0 + (value + '="' + value4 + '"');
r0 = value;
r11 = propertyName2;
}
}
value = '<' + a0 + r2 + '>';
return r1 ? value + a1 + '</' + a0 + '>' : value;
}
function sanitizeText(a0) { // fn#31807, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3994:3263, owner: t_31789.sanitizeText, offset: 0x01004eda, size: 45 bytes, params: 2, frame: 13
const String = global.String;
const value = String(a0);
return value.replace(env0_17, _fun31808);
function _fun31808(a0) { // fn#31808, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3994:3316, offset: 0x00f8578e, size: 16 bytes, params: 2, frame: 2
return env1_18[a0];
}
}
function unescapeUrl(a0) { // fn#31809, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3994:3370, owner: t_31789.unescapeUrl, offset: 0x01004f07, size: 29 bytes, params: 2, frame: 13
return a0.replace(env0_20, '$1');
}
function parseTableAlignCapture(a0) { // fn#31813, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3994:4011, owner: t_31789.parseTableAlignCapture, offset: 0x01004f78, size: 79 bytes, params: 2, frame: 13
return env0_2.test(a0) ? 'right' : env0_3.test(a0) ? 'center' : env0_4.test(a0) ? 'left' : null;
}
function parseTableRow(a0, a1, a2, a3) { // fn#31814, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3994:4115, owner: t_31789.parseTableRow, offset: 0x01004fc7, size: 93 bytes, params: 5, frame: 15
const env0_0 = a3;
const inTable = a2.inTable;
a2.inTable = true;
let value = a0.trim();
value = a1(value, a2);
a2.inTable = inTable;
value.forEach(_fun31815);
return [[]];
function _fun31815(a0, a1) { // fn#31815, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3994:4237, offset: 0x01005024, size: 232 bytes, params: 3, frame: 17
var value;
var binding;
var content;
var replace;
if (a0.type === 'tableSeparator') {
if (importAll ? a1 !== 0 && a1 !== env0_1.length - 1 : !importAll) {
env0_2.push([]);
}
} else {
value = a0.type !== 'text';
if (!(value || env0_1[a1 + 1] != null && env0_1[a1 + 1].type !== 'tableSeparator')) {
content = a0.content;
replace = content.replace;
value = environment.__proto__;
a0.content = Reflect.apply(replace, content, [env1_1, '']);
}
binding = env0_2;
binding[binding.length - 1].push(a0);
}
}
}
function parseTable(a0) { // fn#31816, owner: t_31789.parseTable, offset: 0x0100510c, size: 16 bytes, params: 2, frame: 2
const env0_0 = a0;
return _fun31817;
function _fun31817([, property, property, property], a1, a2) { // fn#31817, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3994:4491, offset: 0x0100511c, size: 186 bytes, params: 4, frame: 23
var environment;
a2.inline = true;
let value = environment.__proto__;
const parseTableRowBinding = parseTableRow;
const binding = env0_0;
const tableRow = parseTableRowBinding(property, a1, a2, binding);
const value5 = (binding ? property.replace(env1_0, '') : property).trim().split('|');
value = value5.map(parseTableAlignCapture);
const value6 = ((a0, a1, a2, a3) => {
var env0_0 = a1;
var env0_1 = a2;
var env0_2 = a3;
var value = a0.trim();
value = value.split('\n');
return value.map(_fun31819);
})(property, a1, a2, binding);
a2.inline = false;
return {type: 'table', header: tableRow, align: value, cells: value6};
function parseTableCells(a0, a1, a2, a3) { // fn#31818, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3994:4647, offset: 0x010051d6, size: 67 bytes, params: 5, frame: 12
const env0_0 = a1;
const env0_1 = a2;
const env0_2 = a3;
let value = a0.trim();
value = value.split('\n');
return value.map(function(a0) {
return parseTableRow(a0, require, importDefault, importAll);
});
function _fun31819(a0) { // fn#31819, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3994:4714, offset: 0x01005219, size: 33 bytes, params: 2, frame: 17
return parseTableRow(a0, require, importDefault, importAll);
}
}
}
}
function t_31789Parse_31823(a0, a1, a2) { // fn#31823, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3994:5863, owner: t_31789.parse, offset: 0x010054db, size: 67 bytes, params: 4, frame: 16
const object = {};
object.level = a0[1].length;
object.content = parseInline(a1, a0[2].trim(), a2);
return object;
}
function t_31789React_31824({level, content}, a1, a2) { // fn#31824, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3994:5945, owner: t_31789.react, offset: 0x0100551e, size: 63 bytes, params: 4, frame: 18
const reactElementBinding = reactElement;
const value = 'h' + level;
const key = a2.key;
const object = {};
object.children = a1(content, a2);
return reactElementBinding(value, key, object);
}
function t_31789Html_31825({level, content}, a1, a2) { // fn#31825, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3994:6027, owner: t_31789.html, offset: 0x0100555d, size: 51 bytes, params: 4, frame: 15
return htmlTag('h' + level, a1(content, a2));
}
function t_31789Parse_31826(a0, a1, a2) { // fn#31826, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3994:6247, owner: t_31789.parse, offset: 0x01005590, size: 71 bytes, params: 4, frame: 16
const object = {type: 'heading'};
const value = 2;
object.level = a0[value] !== '=' ? value : 1;
object.content = parseInline(a1, a0[1], a2);
return object;
}
function t_31789React_31827(a0, a1, {key}) { // fn#31827, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3994:6423, owner: t_31789.react, offset: 0x010055d7, size: 34 bytes, params: 4, frame: 15
return reactElement('hr', key, env0_15);
}
function t_31789Html_31835({content}, a1, a2) { // fn#31835, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3994:7385, owner: t_31789.html, offset: 0x010057a7, size: 43 bytes, params: 4, frame: 14
return htmlTag('blockquote', a1(content, a2));
}
function t_31789Match(a0, a1) { // fn#31836, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3994:7468, owner: t_31789.match, offset: 0x010057d2, size: 111 bytes, params: 3, frame: 14
var r0;
const prevCapture = a1.prevCapture;
let value = null;
const value4 = env0_30.exec(value == prevCapture ? '' : a1.prevCapture[0]);
if (value4) {
if (a1._list || !a1.inline) {
value = value4[1] + a0;
value = env0_29.exec(value);
r0 = value;
} else {
r0 = value;
}
} else {
r0 = value;
}
return r0;
}
function t_31789Parse_31837([property, , property], a1, a2) { // fn#31837, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3994:7612, owner: t_31789.parse, offset: 0x01005841, size: 132 bytes, params: 4, frame: 17
const env0_0 = a1;
const env0_1 = a2;
const value = property.length > 1;
const r2 = value ? Number(property) : undefined;
const value6 = property.replace(env0_27, '\n').match(env0_24);
const object = {ordered: value, start: r2};
object.items = value6.map(_fun31838);
return object;
function _fun31838(a0, a1) { // fn#31838, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3994:7747, offset: 0x010058c5, size: 298 bytes, params: 3, frame: 19
let value = environment.__proto__;
const value2 = env1_23.exec(a0);
const value3 = 0;
const length = value2 ? value2[value3].length : value3;
const RegExp = global.RegExp;
const value4 = '^ {1,' + length;
const value5 = Object.create(RegExp.prototype, {constructor: {value: RegExp}});
const regExp = new RegExp(value4 + '}', 'gm');
const value9 = a0.replace(regExp instanceof Object ? regExp : value5, '').replace(env1_23, '');
let r5 = value9.indexOf('\n\n') !== -1 || a1 === env0_2.length - 1 && env0_3;
const inline = importDefault.inline;
const _list = importDefault._list;
importDefault._list = true;
if (r5) {
importDefault.inline = false;
r5 = value9.replace(env1_28, '\n\n');
} else {
importDefault.inline = true;
r5 = value9.replace(env1_28, '');
}
value = require(r5, importDefault);
importDefault.inline = inline;
importDefault._list = _list;
return value;
}
}
function t_31789React_31839({ordered, start, items}, a1, a2) { // fn#31839, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3994:8074, owner: t_31789.react, offset: 0x010059ef, size: 99 bytes, params: 4, frame: 17
const env0_0 = a1;
const env0_1 = a2;
const r4 = ordered ? 'ol' : 'ul';
const reactElementBinding = reactElement;
const key = a2.key;
const object = {};
object.start = start;
object.children = items.map(_fun31840);
return reactElementBinding(r4, key, object);
function _fun31840(a0, a1) { // fn#31840, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3994:8176, offset: 0x01005a52, size: 54 bytes, params: 3, frame: 17
let value = environment.__proto__;
const reactElementBinding = reactElement;
value = String(a1);
const object = {};
object.children = require(a0, importDefault);
return reactElementBinding('li', value, object);
}
}
function t_31789Html_31841({items, ordered, start}, a1, a2) { // fn#31841, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3994:8239, owner: t_31789.html, offset: 0x01005a88, size: 104 bytes, params: 4, frame: 15
const env0_0 = a1;
const env0_1 = a2;
let value = items.map(_fun31842);
value = value.join('');
return htmlTag(ordered ? 'ol' : 'ul', value, {start: start});
function _fun31842(a0) { // fn#31842, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3994:8279, offset: 0x01005af0, size: 41 bytes, params: 2, frame: 14
const value = environment.__proto__;
return htmlTag('li', require(a0, importDefault));
}
}
function t_31789Parse_31843([, property, property, property2], a1, a2) { // fn#31843, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3994:8483, owner: t_31789.parse, offset: 0x01005b19, size: 181 bytes, params: 4, frame: 16
let value = property.replace(RegExp('\\s+', 'g'), ' ');
value = value.toLowerCase();
if (a2._refs && a2._refs[value]) {
a2._refs[value].forEach(_fun31844);
}
a2._defs = a2._defs || ({});
a2._defs[value] = {target: property, title: property2};
return {def: value, target: property, title: property2};
function _fun31844(a0) { // fn#31844, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3994:8612, offset: 0x01005bce, size: 30 bytes, params: 2, frame: 3
a0.target = env0_0;
a0.title = env0_1;
}
}
function t_31789React_31847(a0, a1, a2) { // fn#31847, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3994:8857, owner: t_31789.react, offset: 0x01005bec, size: 183 bytes, params: 4, frame: 21
const env0_0 = a0;
const env0_1 = a1;
const env0_2 = a2;
const value = a0.header.map(_fun31849);
const value2 = a0.cells.map(_fun31850);
const reactElementBinding = reactElement;
const key = a2.key;
const reactElementBinding2 = reactElement;
const object2 = {};
object2.children = reactElementBinding2('tr', null, {children: value});
const items2 = [reactElementBinding2('thead', 'thead', object2)];
items2[1] = reactElement('tbody', 'tbody', {children: value2});
return reactElementBinding('table', key, {children: items2});
function reactGetStyle(a0) { // fn#31848, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3994:8885, owner: t_31789.react.getStyle, offset: 0x01005ca3, size: 52 bytes, params: 2, frame: 4
return env0_0.align[a0] == null ? {} : {textAlign: env0_0.align[a0]};
}
function _fun31849(a0, a1) { // fn#31849, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3994:8973, offset: 0x01005cd7, size: 76 bytes, params: 3, frame: 17
let value = environment.__proto__;
const reactElementBinding = reactElement;
value = String(a1);
const object = {};
object.style = reactGetStyle(a1);
object.scope = 'col';
object.children = require(a0, importDefault);
return reactElementBinding('th', value, object);
}
function _fun31850(a0, a1) { // fn#31850, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3994:9066, offset: 0x01005d23, size: 54 bytes, params: 3, frame: 16
var environment;
let value = environment.__proto__;
const reactElementBinding = reactElement;
value = String(a1);
const object = {};
object.children = a0.map(_fun31851);
return reactElementBinding('tr', value, object);
function _fun31851(a0, a1) { // fn#31851, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3994:9116, offset: 0x01005d59, size: 67 bytes, params: 3, frame: 17
let value = environment.__proto__.__proto__;
const reactElementBinding = reactElement;
value = String(a1);
const object = {};
object.style = reactGetStyle(a1);
object.children = require(a0, importDefault);
return reactElementBinding('td', value, object);
}
}
}
function t_31789Html_31852(a0, a1, a2) { // fn#31852, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3994:9318, owner: t_31789.html, offset: 0x01005d9c, size: 164 bytes, params: 4, frame: 15
const env0_0 = a0;
const env0_1 = a1;
const env0_2 = a2;
let value = a0.header.map(function(a0, a1) {
var htmlTagBinding = htmlTag;
var moduleValue = require(a0, importDefault);
var object = {};
object.style = htmlGetStyle(a1);
object.scope = 'col';
return htmlTagBinding('th', moduleValue, object);
});
value = value.join('');
const value3 = a0.cells.map(function(a0) {
var value = a0.map(_fun31856);
value = value.join('');
return htmlTag('tr', value);
}).join('');
let htmlTagBinding = htmlTag;
value = htmlTagBinding('tr', value);
value = htmlTagBinding('thead', value);
return htmlTag('table', value + htmlTag('tbody', value3));
function htmlGetStyle(a0) { // fn#31853, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3994:9345, owner: t_31789.html.getStyle, offset: 0x01005e40, size: 67 bytes, params: 2, frame: 4
return env0_0.align[a0] == null ? '' : 'text-align:' + env0_0.align[a0] + ';';
}
function _fun31855(a0) { // fn#31855, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3994:9527, offset: 0x01005ec8, size: 55 bytes, params: 2, frame: 13
let value = a0.map(function(a0, a1) {
var htmlTagBinding = htmlTag;
var moduleValue = require(a0, importDefault);
var object = {};
object.style = htmlGetStyle(a1);
return htmlTagBinding('td', moduleValue, object);
});
value = value.join('');
return htmlTag('tr', value);
function _fun31856(a0, a1) { // fn#31856, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3994:9552, offset: 0x01005eff, size: 60 bytes, params: 3, frame: 16
const htmlTagBinding = htmlTag;
const moduleValue = require(a0, importDefault);
const object = {};
object.style = htmlGetStyle(a1);
return htmlTagBinding('td', moduleValue, object);
}
}
}
function t_31789Html_31860({content}, a1, a2) { // fn#31860, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3994:10045, owner: t_31789.html, offset: 0x01005f7f, size: 53 bytes, params: 4, frame: 15
return htmlTag('div', a1(content, a2), {class: 'paragraph'});
}
function t_31789Parse_31867(a0, a1, a2) { // fn#31867, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3994:10763, owner: t_31789.parse, offset: 0x01006051, size: 90 bytes, params: 4, frame: 13
const property = a0[1];
const property2 = a0[1];
const binding = env0_31;
return {type: 'link', content: [{type: 'text', content: property}],
target: binding.test(property2) ? property2 : 'mailto:' + property2};
}
function t_31789Html_31871({target, title, content}, a1, a2) { // fn#31871, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3994:11545, owner: t_31789.html, offset: 0x0100617f, size: 73 bytes, params: 4, frame: 16
const object = {};
object.href = sanitizeUrl(target);
object.title = title;
return htmlTag('a', a1(content, a2), object);
}
function t_31789Html_31880({content}, a1, a2) { // fn#31880, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3994:12957, owner: t_31789.html, offset: 0x01006377, size: 41 bytes, params: 4, frame: 14
return htmlTag('em', a1(content, a2));
}
function t_31789Html_31883({content}, a1, a2) { // fn#31883, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3994:13249, owner: t_31789.html, offset: 0x010063f3, size: 41 bytes, params: 4, frame: 14
return htmlTag('strong', a1(content, a2));
}
function t_31789Html_31886({content}, a1, a2) { // fn#31886, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3994:13529, owner: t_31789.html, offset: 0x01006461, size: 41 bytes, params: 4, frame: 14
return htmlTag('u', a1(content, a2));
}
function t_31789Html_31888({content}, a1, a2) { // fn#31888, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3994:13778, owner: t_31789.html, offset: 0x010064bf, size: 41 bytes, params: 4, frame: 14
return htmlTag('del', a1(content, a2));
}
function t_31789Parse_31889([, , property], a1, a2) { // fn#31889, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3994:13928, owner: t_31789.parse, offset: 0x010064e8, size: 42 bytes, params: 4, frame: 14
const object = {};
object.content = property.replace(env0_26, '$1');
return object;
}
function t_31789Html_31891({content}, a1, a2) { // fn#31891, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3994:14066, owner: t_31789.html, offset: 0x0100653e, size: 38 bytes, params: 4, frame: 13
return htmlTag('code', sanitizeText(content));
}
function t_31789React_31892(a0, a1, {key}) { // fn#31892, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3994:14197, owner: t_31789.react, offset: 0x01006564, size: 34 bytes, params: 4, frame: 15
return reactElement('br', key, env0_15);
}
function outputFor(a0, a1, a2) { // fn#31897, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3994:14521, owner: t_31789.outputFor, offset: 0x010065c1, size: 159 bytes, params: 4, frame: 14
var Array;
var Error;
var value;
var error;
var value2;
const env0_0 = a0;
const env0_1 = a1;
const env0_2 = a2;
if (a1) {
Array = a0.Array;
Array = !Array ? env0_33.Array : Array;
if (Array[a1]) {
return function(a0, a1) {
var value2 = populateInitialState(a1, importDefault);
env0_3 = value2;
return nestedOutput(a0, value2);
};
}
Error = global.Error;
value = 'simple-markdown: outputFor: to join nodes of type `' + a1;
value2 = Object.create(Error.prototype, {constructor: {value: Error}});
value += '` you must provide an `Array:` joiner rule with that type, Please see the docs for details on specifying an Array rule.';
error = new Error();
value = error instanceof Object ? error : value2;
throw value;
}
Error = global.Error;
throw new Error('simple-markdown: outputFor: `property` must be defined. if you just upgraded, you probably need to replace `outputFor` with `reactFor`');
function nestedOutput(a0, a1) { // fn#31898, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3994:14948, owner: t_31789.outputFor.nestedOutput, offset: 0x01006660, size: 97 bytes, params: 3, frame: 16
const r4 = a1 || env0_3;
const Array = global.Array;
return Array.isArray(a0) ? env0_4(a0, nestedOutput, r4) : env0_0[a0.type][require](a0, nestedOutput, r4);
}
}
function defaultBlockParse(a0, a1) { // fn#31900, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3994:15105, owner: t_31789.defaultBlockParse, offset: 0x010066ed, size: 36 bytes, params: 3, frame: 13
const r3 = a1 || ({});
r3.inline = false;
return env0_34(a0, r3);
}
function defaultImplicitParse(a0, a1) { // fn#31901, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3994:15173, owner: t_31789.defaultImplicitParse, offset: 0x01006711, size: 51 bytes, params: 3, frame: 14
const value = a1;
const value3 = env0_25.test(a0);
const r2 = value || ({});
r2.inline = !value3;
return env0_34(a0, r2);
}
function markdownToReact(a0, a1) { // fn#31902, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3994:15290, owner: t_31789.markdownToReact, offset: 0x01006744, size: 33 bytes, params: 3, frame: 14
return env0_37(defaultBlockParse(a0, a1), a1);
}
function markdownToHtml(a0, a1) { // fn#31904, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3994:15584, owner: t_31789.markdownToHtml, offset: 0x0100679b, size: 33 bytes, params: 3, frame: 14
return env0_38(defaultBlockParse(a0, a1), a1);
}
function ReactMarkdown(a0) { // fn#31905, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3994:15647, owner: t_31789.ReactMarkdown, offset: 0x010067bc, size: 126 bytes, params: 2, frame: 23
var r6;
var r9;
var propertyName;
var propertyName2;
var value;
var Object;
var prototype;
var hasOwnProperty;
const object = {};
for (propertyName in a0) {
value = propertyName !== 'source';
if (!value) {
r9 = value;
continue;
}
Object = global.Object;
prototype = Object.prototype;
hasOwnProperty = prototype.hasOwnProperty;
value = hasOwnProperty.call(a0, propertyName);
r9 = value;
if (!r9) {
r6 = propertyName2;
continue;
}
object[propertyName] = a0[propertyName];
r6 = propertyName2;
}
object.children = markdownToReact(a0.source);
return reactElement('div', null, object);
}
function defaultInlineParse(a0, a1) { // fn#31906, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3994:15853, owner: t_31789.defaultInlineParse, offset: 0x0100683a, size: 36 bytes, params: 3, frame: 13
const r3 = a1 || ({});
r3.inline = true;
return env0_34(a0, r3);
}
function ruleOutput(a0, a1) { // fn#31907, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3994:16094, owner: t_31789.ruleOutput, offset: 0x0100685e, size: 72 bytes, params: 3, frame: 12
const value = a1;
const env0_0 = a0;
if (!(value || typeof global.console === 'undefined')) {
global.console.warn("simple-markdown ruleOutput should take 'react' or 'html' as the second argument.");
}
return nestedRuleOutput;
function nestedRuleOutput(a0, a1, a2) { // fn#31908, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3994:16255, owner: t_31789.ruleOutput.nestedRuleOutput, offset: 0x010068a6, size: 42 bytes, params: 4, frame: 15
return env0_0[a0.type][require](a0, a1, a2);
}
}
function reactFor(a0) { // fn#31909, owner: t_31789.reactFor, offset: 0x010068d0, size: 20 bytes, params: 2, frame: 2
const env0_0 = a0;
return reactForNestedOutput;
function reactForNestedOutput(a0, a1) { // fn#31910, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3994:16353, owner: t_31789.reactFor.nestedOutput, offset: 0x010068e4, size: 186 bytes, params: 3, frame: 23
var r2;
var r8;
var r9;
var r11;
var items2;
var key;
var length;
var push;
let value = a1;
reducibleJoin2: while (true) {
if (value) {
r2 = value;
break reducibleJoin2;
}
r2 = {};
break reducibleJoin2;
}
const Array = global.Array;
if (Array.isArray(a0)) {
key = r2.key;
items2 = [];
length = a0.length;
value = 0;
if (value < length) {
r8 = null;
r9 = value;
reducibleLoop5: while (true) {
r2.key = String(r9);
value = reactForNestedOutput(a0[r9], r2);
reducibleJoin9: while (true) {
reducibleJoin7: while (true) {
if (typeof value !== 'string') {
break reducibleJoin7;
}
if (typeof r8 === 'string') {
value = r8 + value;
length = items2.length;
items2[length - 1] = value;
r11 = value;
break reducibleJoin9;
}
break reducibleJoin7;
}
push = items2.push;
Reflect.apply(push, items2, [value]);
r11 = value;
break reducibleJoin9;
}
value = typeof r9 === 'bigint' ? r9 + 1n : +r9 + 1;
length = a0.length;
if (value < length) {
r8 = r11;
r9 = value;
continue reducibleLoop5;
}
break reducibleLoop5;
}
}
r2.key = key;
return items2;
}
return env0_0(a0, reactForNestedOutput, r2);
}
}
function htmlFor(a0) { // fn#31911, owner: t_31789.htmlFor, offset: 0x0100699e, size: 20 bytes, params: 2, frame: 2
const env0_0 = a0;
return htmlForNestedOutput;
function htmlForNestedOutput(a0, a1) { // fn#31912, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3994:16640, owner: t_31789.htmlFor.nestedOutput, offset: 0x010069b2, size: 95 bytes, params: 3, frame: 16
var r0;
let value = a1;
const r5 = value || ({});
const env0_0 = r5;
const Array = global.Array;
if (Array.isArray(a0)) {
value = a0.map(function(a0) {
return htmlForNestedOutput(a0, require);
});
value = value.join('');
r0 = value;
} else {
r0 = env0_0(a0, htmlForNestedOutput, r5);
}
return r0;
}
}
function defaultOutput() { // fn#31915, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3994:16953, owner: t_31789.defaultOutput, offset: 0x01006a72, size: 70 bytes, params: 1, frame: 13
if (typeof global.console !== 'undefined') {
global.console.warn('defaultOutput is deprecated, please use `defaultReactOutput`');
}
return env0_37.apply(null, arguments);
}
}
}
function sanitizeUrl(a0) { // fn#31806, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3994:2935, owner: t_31789.sanitizeUrl, offset: 0x01004e4c, size: 142 bytes, params: 2, frame: 16
var URL;
var prototype;
var value;
var uRL;
var protocol;
var indexOf;
var error;
if (a0 == null) {
return null;
}
try {
URL = global.URL;
} catch (error) {
return null;
}
try {
prototype = URL.prototype;
} catch (error) {
return null;
}
try {
} catch (error) {
return null;
}
try {
uRL = new URL(a0, 'https://localhost');
} catch (error) {
return null;
}
try {
value = uRL instanceof Object ? uRL : value;
} catch (error) {
return null;
}
try {
protocol = value.protocol;
} catch (error) {
return null;
}
try {
indexOf = protocol.indexOf;
} catch (error) {
return null;
}
try {
value = Reflect.apply(indexOf, protocol, ['javascript:']);
} catch (error) {
return null;
}
try {
value = value === 0;
} catch (error) {
return null;
}
if (value) {
return null;
}
try {
indexOf = protocol.indexOf;
} catch (error) {
return null;
}
try {
value = Reflect.apply(indexOf, protocol, ['vbscript:']);
} catch (error) {
return null;
}
try {
value = value === 0;
} catch (error) {
return null;
}
if (value) {
return null;
}
try {
indexOf = protocol.indexOf;
} catch (error) {
return null;
}
try {
value = Reflect.apply(indexOf, protocol, ['data:']);
} catch (error) {
return null;
}
try {
value = value === 0;
} catch (error) {
return null;
}
return value ? null : a0;
}
function parseRef(a0, a1, a2) { // fn#31820, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3994:5012, owner: t_31789.parseRef, offset: 0x0100523a, size: 188 bytes, params: 4, frame: 15
let property = a0[2];
let value = (property || a0[1]).replace(RegExp('\\s+', 'g'), ' ');
value = value.toLowerCase();
if (a1._defs) {
if (a1._defs[value]) {
property = a1._defs[value];
a2.target = property.target;
a2.title = property.title;
}
}
a1._refs = a1._refs || ({});
a1._refs[value] = a1._refs[value] || [];
a1._refs[value].push(a2);
return a2;
}
function t_31789React(a0, a1, a2) { // fn#31821, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3994:5330, owner: t_31789.react, offset: 0x010052f6, size: 255 bytes, params: 4, frame: 26
var r4;
var r5;
var r13;
var r3;
var r11;
var property;
var type;
var object;
var content;
var content2;
var value2;
var value3;
const key = a2.key;
const items2 = [];
let length = a0.length;
let value = 0;
if (value < length) {
r4 = value;
r5 = value;
while (true) {
a2.key = String(r5);
property = a0[r5];
type = property.type;
if (type !== 'text') {
r3 = r5;
r11 = property;
} else {
object = {type: 'text'};
content = property.content;
object.content = content;
value = r5 + 1;
length = a0.length;
if (!(value < length)) {
r3 = r5;
r11 = object;
break;
}
type = a0[r5 + 1].type;
if (type !== 'text') {
r3 = r5;
r11 = object;
break;
}
r13 = r5;
while (true) {
content = object.content;
content2 = a0[r13 + 1].content;
object.content = content + content2;
value = typeof r13 === 'bigint' ? r13 + 1n : +r13 + 1;
value2 = value + 1;
length = a0.length;
if (!(value2 < length)) {
r3 = value;
r11 = object;
break;
}
type = a0[value + 1].type;
if (type === 'text') {
r13 = value;
continue;
}
r3 = value;
r11 = object;
break;
}
}
items2.push(a1(r11, a2));
value = typeof r3 === 'bigint' ? r3 + 1n : +r3 + 1;
value3 = typeof r4 === 'bigint' ? r4 + 1n : +r4 + 1;
length = a0.length;
if (value < length) {
r4 = value3;
r5 = value;
continue;
}
break;
}
}
a2.key = key;
return items2;
}
function t_31789Html(a0, a1, a2) { // fn#31822, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3994:5583, owner: t_31789.html, offset: 0x010053f5, size: 230 bytes, params: 4, frame: 25
var r2;
var r6;
var r12;
var r1;
var r10;
var r0;
var property;
var type;
var object;
var content;
var content2;
var value3;
var value4;
let length = a0.length;
let value = 0;
const value2 = '';
if (value < length) {
r2 = value2;
r6 = value;
while (true) {
property = a0[r6];
type = property.type;
if (type !== 'text') {
r1 = r6;
r10 = property;
} else {
object = {type: 'text'};
content = property.content;
object.content = content;
value = r6 + 1;
length = a0.length;
if (!(value < length)) {
r1 = r6;
r10 = object;
break;
}
type = a0[r6 + 1].type;
if (type !== 'text') {
r1 = r6;
r10 = object;
break;
}
r12 = r6;
while (true) {
content = object.content;
content2 = a0[r12 + 1].content;
object.content = content + content2;
value = typeof r12 === 'bigint' ? r12 + 1n : +r12 + 1;
value3 = value + 1;
length = a0.length;
if (!(value3 < length)) {
r1 = value;
r10 = object;
break;
}
type = a0[value + 1].type;
if (type === 'text') {
r12 = value;
continue;
}
r1 = value;
r10 = object;
break;
}
}
value = r2 + a1(r10, a2);
value4 = typeof r1 === 'bigint' ? r1 + 1n : +r1 + 1;
length = a0.length;
if (value4 < length) {
r2 = value;
r6 = value4;
continue;
}
r0 = value;
break;
}
} else {
r0 = value2;
}
return r0;
}
global.__d(_fun31788, 3855, []) /* metro module 3855 */;