/* Metro module 1297; source: unknown; dependencies: [6, 7, 15, 17, 18, 57, 31, 1286] */ function _fun14316(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#14316, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1424:6, offset: 0x00e019c2, size: 315 bytes, params: 8, frame: 21 let env0_0 = require; const createReactBuilder = function(a0) { var env0_0 = a0; var FormatBuilder = require(dependencyMap[7]).FormatBuilder; return _fun14321(FormatBuilder); }; const closure = function(a0, a1, a2) { var r0; var value = a0; if (typeof value === 'string') { r0 = value; } else { value = this.bindFormatValues(a2, value, a1); r0 = value; } return r0; }; const closure2 = function(a0) { var object = {}; object.format = formatReact; object.builder = createReactBuilder(a0); return object; }; const env0_2 = require(6) /* metro dependency 6 */; const env0_3 = require(7) /* metro dependency 7 */; const env0_4 = require(15) /* metro dependency 15 */; const env0_5 = require(17) /* metro dependency 17 */; const env0_6 = require(18) /* metro dependency 18 */; const env0_7 = require(57) /* metro dependency 57 */; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); exports.DEFAULT_REACT_RICH_TEXT_ELEMENTS = undefined; exports.reactFormatter = undefined; exports.formatReact = closure; exports.makeReactFormatter = closure2; const env0_8 = (require(31) /* metro dependency 31 */).createElement; exports.DEFAULT_REACT_RICH_TEXT_ELEMENTS = {$b: function(a0, a1) { return createElement('strong', {key: a1}, a0); }, $i: function(a0, a1) { return createElement('em', {key: a1}, a0); }, $del: function(a0, a1) { return createElement('del', {key: a1}, a0); }, $code: function(a0, a1) { return createElement('code', {key: a1}, a0); }, $link: $link_14333, $p: function(a0, a1) { return createElement('p', {key: a1}, a0); }}; const DEFAULT_REACT_RICH_TEXT_ELEMENTS = exports.DEFAULT_REACT_RICH_TEXT_ELEMENTS; exports.reactFormatter = closure2(DEFAULT_REACT_RICH_TEXT_ELEMENTS); } function _isNativeReflectConstruct_14317() { // fn#14317, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1424:108, offset: 0x00e01afd, 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_14317_isNativeReflectConstruct = function() { return !!result; })(); } function createReactBuilder(a0) { // fn#14320, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1424:534, offset: 0x00e01b5b, size: 52 bytes, params: 2, frame: 12 const env0_0 = a0; const FormatBuilder = (require(1286) /* metro dependency 1286 */).FormatBuilder; return _fun14321(FormatBuilder); } function $link_14333(a0, a1, a2) { // fn#14333, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1424:1722, offset: 0x00e01e41, size: 61 bytes, params: 4, frame: 15 return createElement('a', {href: env0_7(a2, 1)[0], key: a1}, a0); } function _fun14321(a0) { // fn#14321, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1424:572, offset: 0x00e01b8f, size: 139 bytes, params: 2, frame: 16 const closure = _class; env1_6(closure, a0); return env1_3(closure, [{key: 'pushRichTextTag', value: value_14323}, {key: 'pushLiteralText', value: function(a0) { if (typeof this.result[this.result.length - 1] === 'string') { this.result[this.result.length - 1] += a0; } else { this.result.push(a0); } }}, {key: 'pushObject', value: function(a0) { this.result.push(a0); }}, {key: 'finish', value: function() { return this.result; }}]); } function _class() { // fn#14322, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1424:584, offset: 0x00e01c1a, size: 131 bytes, params: 1, frame: 20 let value = environment.__proto__.__proto__; const binding = env2_2; const _classBinding = _class; binding(this, _classBinding); const value3 = env2_5(_classBinding); value = env2_4(this, _isNativeReflectConstruct_14317() ? global.Reflect.construct(value3, arguments, env2_5(this).constructor) : value3.apply(this, arguments)); value._nodeKey = 0; value.result = []; return value; } function value_14323(a0, a1, a2) { // fn#14323, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1424:872, offset: 0x00e01c9d, size: 109 bytes, params: 4, frame: 19 const result = this.result; const push = result.push; let value = environment.__proto__; const binding = env1_0; const keyPrefix = this.context.keyPrefix; const _nodeKey = this._nodeKey; value = typeof _nodeKey === 'bigint' ? _nodeKey : +_nodeKey; this._nodeKey = typeof value === 'bigint' ? value + 1n : +value + 1; value = '' + keyPrefix + '.tag-' + value; Reflect.apply(push, result, [binding[a0](a1, value, a2)]); }