/* Metro module 7851; source: unknown; dependencies: [5, 6, 7, 15, 17, 18, 57, 31, 33, 7852, 7853] */ function _fun62660(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#62660, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8029:6, offset: 0x01b62bd9, size: 569 bytes, params: 8, frame: 25 const env0_0 = require; const missingTag = function() { return null; }; const closure = SvgAst; const closure2 = SvgXml; const closure3 = getStyle; const closure4 = astToReact; const repeat_62672 = function(a0, a1) { var r2; var r3; var r0; var value4; var value5; var value = typeof a1 === 'bigint' ? a1 : +a1; var value2 = typeof value === 'bigint' ? value - 1n : +value - 1; var value3 = ''; if (value) { r2 = value3; for (r3 = value2; true; r3 = value5) { value = r2 + a0; value4 = typeof r3 === 'bigint' ? r3 : +r3; value5 = typeof value4 === 'bigint' ? value4 - 1n : +value4 - 1; if (!value4) { r0 = value; break; } r2 = value; } } else { r0 = value3; } return r0; }; const closure5 = parse_62673; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); const env0_2 = importDefault(5) /* metro dependency 5 */; const env0_3 = importDefault(6) /* metro dependency 6 */; const env0_4 = importDefault(7) /* metro dependency 7 */; const env0_5 = importDefault(15) /* metro dependency 15 */; const env0_6 = importDefault(17) /* metro dependency 17 */; const env0_7 = importDefault(18) /* metro dependency 18 */; const env0_8 = importDefault(57) /* metro dependency 57 */; importAll(31) /* metro dependency 31 */; let value = require(31) /* metro dependency 31 */; const Component = value.Component; const env0_9 = value.useEffect; const env0_10 = value.useMemo; const env0_11 = value.useState; const env0_12 = (require(33) /* metro dependency 33 */).jsx; const error = global.console.error; const env0_13 = error.bind(global.console); value = _fun62684(Component); let value2 = _fun62690(Component); const upperCase = function(a0, a1) { return a1.toUpperCase(); }; const closure6 = function(a0) { return a0.replace(RegExp('[:-]([a-z])', 'g'), upperCase); }; const toSpaces = function(a0) { return repeat_62672(' ', a0.length); }; const env0_18 = RegExp('[a-zA-Z0-9:_-]', ''); const env0_19 = RegExp('', env0_6); if (!~value2) { parse_62673Error('expected -->'); } env0_6 = value2 + 2; return neutral; } function cdata() { // fn#62678, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8029:4937, owner: parse_62673.cdata, offset: 0x01b636ed, size: 109 bytes, params: 1, frame: 17 let binding = env0_0; const value2 = binding.indexOf(']]>', env0_6); if (!~value2) { parse_62673Error('expected ]]>'); } binding = env0_4; const push = binding.push; const binding2 = env0_0; Reflect.apply(push, binding, [binding2.slice(env0_6 + 7, value2)]); env0_6 = value2 + 2; return neutral; } function closingTag() { // fn#62679, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8029:5048, owner: parse_62673.closingTag, offset: 0x01b6375a, size: 211 bytes, params: 1, frame: 20 var children; const value2 = parse_62673GetName(); if (!value2) { parse_62673Error('Expected tag name'); } let binding = env0_3; if (binding && value2 !== env0_3.tag) { parse_62673Error('Expected closing tag to match opening tag <' + env0_3.tag + '>'); } allowSpaces(); if (env0_0[env0_6] !== '>') { parse_62673Error('Expected >'); } env0_5.pop(); binding = env0_5; const property = binding[binding.length - 1]; if (property) { children = property.children; } return neutral; } function parse_62673GetName() { // fn#62680, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8029:5303, owner: parse_62673.getName, offset: 0x01b6382d, size: 136 bytes, params: 1, frame: 19 var r2; var r3; var r0; var value3; var test; var property; var value5; var value6; var binding3; let binding = env0_6; const lengthBinding = length; const value2 = ''; if (binding < lengthBinding) { value3 = environment.__proto__; binding = env1_18; test = binding.test; property = env0_0[env0_6]; if (Reflect.apply(test, binding, [property])) { r2 = value2; r3 = property; while (true) { value5 = r2 + r3; value6 = env0_6 + 1; env0_6 = value6; if (!(value6 < length)) { r0 = value5; break; } binding = env1_18; test = binding.test; binding3 = env0_0; property = binding3[env0_6]; if (Reflect.apply(test, binding, [property])) { r2 = value5; r3 = property; continue; } r0 = value5; break; } } else { r0 = value2; } } else { r0 = value2; } return r0; } function getAttributeValue() { // fn#62681, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8029:5377, owner: parse_62673.getAttributeValue, offset: 0x01b638b5, size: 267 bytes, params: 1, frame: 21 var r4; var r0; var r5; var r3; var r2; var r1; var property; var value4; var value5; var binding3; var value6; var value7; var binding4; var value8; var property2; var value9; var value10; var value11; var value12; var HermesInternal; var concat; var value13; var value14; let binding = env1_21; const value2 = binding.test(env0_0[env0_6]); const value3 = ''; if (value2) { binding = env0_0; binding3 = env0_6; value6 = typeof binding3 === 'bigint' ? binding3 : +binding3; value7 = typeof value6 === 'bigint' ? value6 + 1n : +value6 + 1; env0_6 = value7; if (value7 < length) { r5 = value3; loopExit7: while (true) { binding = env0_0; binding4 = env0_6; value8 = typeof binding4 === 'bigint' ? binding4 : +binding4; env0_6 = typeof value8 === 'bigint' ? value8 + 1n : +value8 + 1; property2 = binding[value8]; if (property2 === binding[value6]) { r1 = r5; break loopExit7; } value9 = property2 !== '\\'; if (value9) { r3 = value9; continue; } value10 = false; r3 = value10; value11 = false; if (r3) { r4 = value11; continue; } value12 = true; r4 = value12; if (!r4) { r3 = property2; continue; } HermesInternal = global.HermesInternal; concat = HermesInternal.concat; value13 = '\\' + property2; r3 = value13; value14 = r5 + r3; binding = env0_6; if (binding < length) { r5 = value14; continue; } r2 = value14; r1 = r2; break loopExit7; } } else { r1 = value3; } r0 = r1; } else { r4 = value3; while (true) { binding = env0_0; property = binding[env0_6]; if (property === ' ') { r0 = r4; break; } if (property === '>') { r0 = r4; break; } if (property === '/') { r0 = r4; break; } value4 = r4 + property; value5 = env0_6 + 1; env0_6 = value5; if (value5 < length) { r4 = value4; continue; } r0 = value4; break; } } return r0; } function allowSpaces() { // fn#62682, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8029:5714, owner: parse_62673.allowSpaces, offset: 0x01b639c0, size: 103 bytes, params: 1, frame: 15 var value2; var test; var value4; var binding3; let binding = env0_6; if (binding < length) { value2 = environment.__proto__; binding = env1_20; test = binding.test; if (Reflect.apply(test, binding, [env0_0[env0_6]])) { while (true) { value4 = env0_6 + 1; env0_6 = value4; if (!(value4 < length)) { break; } binding = env1_20; test = binding.test; binding3 = env0_0; if (Reflect.apply(test, binding, [binding3[env0_6]])) { continue; } break; } } } } function metadata() { // fn#62683, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8029:3352, owner: parse_62673.metadata, offset: 0x01b63a27, size: 257 bytes, params: 1, frame: 18 var binding; var value3; var test; var binding2; var binding3; var slice; var binding4; var value4; var value5; var value6; var binding5; var binding6; var binding7; reducibleJoin8: while (true) { if (!(env0_6 + 1 < length)) { break reducibleJoin8; } binding = env0_0; if (binding[env0_6] === '<') { value3 = environment.__proto__; binding = env1_18; test = binding.test; binding2 = env0_0; if (Reflect.apply(test, binding, [binding2[env0_6 + 1]])) { break reducibleJoin8; } binding = env1_19; test = binding.test; binding3 = env0_0; slice = binding3.slice; binding4 = env0_6; if (Reflect.apply(test, binding, [Reflect.apply(slice, binding3, [binding4, binding4 + 4])])) { break reducibleJoin8; } } reducibleLoop4: while (true) { binding = env0_6; value4 = typeof binding === 'bigint' ? binding + 1n : +binding + 1; env0_6 = value4; value5 = value4 + 1; if (value5 < length) { binding = env0_0; if (binding[env0_6] !== '<') { continue reducibleLoop4; } value6 = environment.__proto__; binding = env1_18; test = binding.test; binding5 = env0_0; if (Reflect.apply(test, binding, [binding5[env0_6 + 1]])) { break reducibleJoin8; } binding = env1_19; test = binding.test; binding6 = env0_0; slice = binding6.slice; binding7 = env0_6; if (Reflect.apply(test, binding, [Reflect.apply(slice, binding6, [binding7, binding7 + 4])])) { break reducibleJoin8; } continue reducibleLoop4; } break reducibleJoin8; } } return neutral(); } function SvgFromXml() { // fn#62685, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8029:1078, offset: 0x01b63bb1, size: 131 bytes, params: 1, frame: 19 var r2; var value7; let value = environment.__proto__; env1_3(this, SvgFromXml); const length = arguments.length; const Array = global.Array; const array = new Array(length); const value6 = 0; if (value6 < length) { for (r2 = value6; true; r2 = value7) { array[r2] = arguments[r2]; value7 = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1; if (!(value7 < length)) { break; } } } const _callSuper_62661Binding = _callSuper_62661; const items = []; value = _callSuper_62661Binding(this, SvgFromXml, items.concat(array)); value.state = {ast: null}; return value; } function value_62688(a0) { // fn#62688, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8029:1523, offset: 0x01b63c7b, size: 142 bytes, params: 2, frame: 19 var r2; var r5; var value; var setState; var error; var Object; var assign; var message; const onError = this.props.onError; if (onError !== undefined) { r2 = onError; } else { value = environment.__proto__; r2 = env1_13; } try { setState = this.setState; value = null; if (a0) { value = environment.__proto__; value = parse_62673(a0); r5 = value; } else { r5 = value; } Reflect.apply(setState, this, [{ast: r5}]); } catch (error) { Object = global.Object; assign = Object.assign; message = error.message; r2(Reflect.apply(assign, Object, [{}, error, {message: "[RNSVG] Couldn't parse SVG, reason: " + message}])); } } function value_62689() { // fn#62689, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8029:1749, offset: 0x01b63d09, size: 64 bytes, params: 1, frame: 15 const props = this.props; return ; } function SvgFromUri() { // fn#62691, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8029:1871, offset: 0x01b63de4, size: 131 bytes, params: 1, frame: 19 var r2; var value7; let value = environment.__proto__; env1_3(this, SvgFromUri); const length = arguments.length; const Array = global.Array; const array = new Array(length); const value6 = 0; if (value6 < length) { for (r2 = value6; true; r2 = value7) { array[r2] = arguments[r2]; value7 = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1; if (!(value7 < length)) { break; } } } const _callSuper_62661Binding = _callSuper_62661; const items = []; value = _callSuper_62661Binding(this, SvgFromUri, items.concat(array)); value.state = {xml: null}; return value; } function* _fun62695(a0) { // fn#62695, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8029:2322, offset: 0x01b63eb4, size: 121 bytes, params: 2, frame: 17 var r5; var setState; var object2; var binding; var binding2; var property; var fetchText; var value3; var error; var console; var error2; if (true) { reducibleJoin3: while (true) { reduciblePort21: while (true) { exceptionLanding20: while (true) { try { setState = this.setState; } catch (error) { break exceptionLanding20; } break reducibleJoin3; } console = global.console; error2 = console.error; Reflect.apply(error2, console, [error]); break reduciblePort21; } return undefined; } try { object2 = {}; } catch (error) { break exceptionLanding20; } value = null; if (a0) { value = environment.__proto__.__proto__; try { binding = env2_0; } catch (error) { break exceptionLanding20; } try { binding2 = env2_1; } catch (error) { break exceptionLanding20; } try { property = binding2[10]; } catch (error) { break exceptionLanding20; } try { value = binding(property); } catch (error) { break exceptionLanding20; } try { fetchText = value.fetchText; } catch (error) { break exceptionLanding20; } try { value = Reflect.apply(fetchText, value, [a0]); } catch (error) { break exceptionLanding20; } yield value; try { value = undefined; value3 = false; } catch (error) { break exceptionLanding20; } reducibleJoin17: while (true) { if (value3) { return value; } r5 = value; break reducibleJoin17; } } else { r5 = value; } try { object2.xml = r5; } catch (error) { break exceptionLanding20; } try { Reflect.apply(setState, this, [object2]); } catch (error) { break exceptionLanding20; } } } function value_62697() { // fn#62697, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8029:2497, offset: 0x01b63f2d, size: 63 bytes, params: 1, frame: 14 const props = this.props; return ((Component) => )(env1_14); } function _fun62702() { // fn#62702, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8029:6168, offset: 0x01b64091, size: 102 bytes, params: 1, frame: 13 var environment; var value2; var moduleValue; var value; if (uri) { value2 = environment.__proto__; moduleValue = require(7853) /* metro dependency 7853 */; value = moduleValue.fetchText(uri); value = value.then(_fun62703); value.catch(_fun62704); } else { env0_3(null); } } function _fun62703(a0) { // fn#62703, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8029:6209, offset: 0x01b640f7, size: 55 bytes, params: 2, frame: 12 env1_3(a0); if (env1_4) { env1_5(false); } if (onLoad != null) { onLoad(); } } function _fun62704(a0) { // fn#62704, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8029:6258, offset: 0x01b6412e, size: 30 bytes, params: 2, frame: 12 env1_0(a0); env1_5(true); }