/* Metro module 1075; source: unknown; dependencies: [1047, 826, 1043] */ function _fun11244(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#11244, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1202:6, offset: 0x00da6232, size: 121 bytes, params: 8, frame: 18 const env0_0 = require; const closure = getNativeImplementation; const Object = global.Object; const defineProperty = Object.defineProperty; const Symbol = global.Symbol; Reflect.apply(defineProperty, Object, [exports, Symbol.toStringTag, {value: 'Module'}]); const env0_2 = {}; exports.clearCachedImplementation = clearCachedImplementation; exports.fetch = fetch; exports.getNativeImplementation = closure; exports.setTimeout = setTimeout_11248; } function getNativeImplementation(a0) { // fn#11245, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1202:102, offset: 0x00da62ab, size: 487 bytes, params: 2, frame: 25 var r11; var r4; var r3; var createElement; var element; var head; var appendChild; var contentWindow; var value2; var property2; var removeChild; var error; const DEBUG_BUILD = (require(1043) /* metro dependency 1043 */).DEBUG_BUILD; const debug = (require(826) /* metro dependency 826 */).debug; var binding; let value = environment; let property = env0_2[a0]; if (property) { return property; } const WINDOW = (require(1047) /* metro dependency 1047 */).WINDOW; property = WINDOW[a0]; const moduleValue = require(826) /* metro dependency 826 */; if (moduleValue.isNativeFunction(property)) { binding = env0_2; value = property.bind(WINDOW); binding[a0] = value; return value; } const document = WINDOW.document; if (document) { createElement = document.createElement; if (typeof createElement !== 'function') { r4 = property; } else { try { createElement = document.createElement; } catch (error) { r4 = property; if (DEBUG_BUILD) { debug.warn('Could not create sandbox iframe for ' + a0 + ' check, bailing to window.' + a0 + ': ', error); } if (r4) { binding = env0_2; value = r4.bind(WINDOW); binding[a0] = value; r3 = value; } else { r3 = r4; } return r3; } try { element = Reflect.apply(createElement, document, ['iframe']); } catch (error) { r4 = property; if (DEBUG_BUILD) { debug.warn('Could not create sandbox iframe for ' + a0 + ' check, bailing to window.' + a0 + ': ', error); } if (r4) { binding = env0_2; value = r4.bind(WINDOW); binding[a0] = value; r3 = value; } else { r3 = r4; } return r3; } try { element.hidden = true; } catch (error) { r4 = property; if (DEBUG_BUILD) { debug.warn('Could not create sandbox iframe for ' + a0 + ' check, bailing to window.' + a0 + ': ', error); } if (r4) { binding = env0_2; value = r4.bind(WINDOW); binding[a0] = value; r3 = value; } else { r3 = r4; } return r3; } try { head = document.head; } catch (error) { r4 = property; if (DEBUG_BUILD) { debug.warn('Could not create sandbox iframe for ' + a0 + ' check, bailing to window.' + a0 + ': ', error); } if (r4) { binding = env0_2; value = r4.bind(WINDOW); binding[a0] = value; r3 = value; } else { r3 = r4; } return r3; } try { appendChild = head.appendChild; } catch (error) { r4 = property; if (DEBUG_BUILD) { debug.warn('Could not create sandbox iframe for ' + a0 + ' check, bailing to window.' + a0 + ': ', error); } if (r4) { binding = env0_2; value = r4.bind(WINDOW); binding[a0] = value; r3 = value; } else { r3 = r4; } return r3; } try { Reflect.apply(appendChild, head, [element]); } catch (error) { r4 = property; if (DEBUG_BUILD) { debug.warn('Could not create sandbox iframe for ' + a0 + ' check, bailing to window.' + a0 + ': ', error); } if (r4) { binding = env0_2; value = r4.bind(WINDOW); binding[a0] = value; r3 = value; } else { r3 = r4; } return r3; } try { contentWindow = element.contentWindow; } catch (error) { r4 = property; if (DEBUG_BUILD) { debug.warn('Could not create sandbox iframe for ' + a0 + ' check, bailing to window.' + a0 + ': ', error); } if (r4) { binding = env0_2; value = r4.bind(WINDOW); binding[a0] = value; r3 = value; } else { r3 = r4; } return r3; } try { value2 = contentWindow != null; } catch (error) { r4 = property; if (DEBUG_BUILD) { debug.warn('Could not create sandbox iframe for ' + a0 + ' check, bailing to window.' + a0 + ': ', error); } if (r4) { binding = env0_2; value = r4.bind(WINDOW); binding[a0] = value; r3 = value; } else { r3 = r4; } return r3; } if (value2) { try { property2 = contentWindow[a0]; r11 = property2; } catch (error) { r4 = property; if (DEBUG_BUILD) { debug.warn('Could not create sandbox iframe for ' + a0 + ' check, bailing to window.' + a0 + ': ', error); } if (r4) { binding = env0_2; value = r4.bind(WINDOW); binding[a0] = value; r3 = value; } else { r3 = r4; } return r3; } if (r11) { try { property = contentWindow[a0]; r4 = property; } catch (error) { r4 = property; if (DEBUG_BUILD) { debug.warn('Could not create sandbox iframe for ' + a0 + ' check, bailing to window.' + a0 + ': ', error); } if (r4) { binding = env0_2; value = r4.bind(WINDOW); binding[a0] = value; r3 = value; } else { r3 = r4; } return r3; } try { head = document.head; } catch (error) { if (DEBUG_BUILD) { debug.warn('Could not create sandbox iframe for ' + a0 + ' check, bailing to window.' + a0 + ': ', error); } if (r4) { binding = env0_2; value = r4.bind(WINDOW); binding[a0] = value; r3 = value; } else { r3 = r4; } return r3; } try { removeChild = head.removeChild; } catch (error) { if (DEBUG_BUILD) { debug.warn('Could not create sandbox iframe for ' + a0 + ' check, bailing to window.' + a0 + ': ', error); } if (r4) { binding = env0_2; value = r4.bind(WINDOW); binding[a0] = value; r3 = value; } else { r3 = r4; } return r3; } try { Reflect.apply(removeChild, head, [element]); } catch (error) { if (DEBUG_BUILD) { debug.warn('Could not create sandbox iframe for ' + a0 + ' check, bailing to window.' + a0 + ': ', error); } } } else { r4 = property; try { head = document.head; } catch (error) { if (DEBUG_BUILD) { debug.warn('Could not create sandbox iframe for ' + a0 + ' check, bailing to window.' + a0 + ': ', error); } if (r4) { binding = env0_2; value = r4.bind(WINDOW); binding[a0] = value; r3 = value; } else { r3 = r4; } return r3; } try { removeChild = head.removeChild; } catch (error) { if (DEBUG_BUILD) { debug.warn('Could not create sandbox iframe for ' + a0 + ' check, bailing to window.' + a0 + ': ', error); } if (r4) { binding = env0_2; value = r4.bind(WINDOW); binding[a0] = value; r3 = value; } else { r3 = r4; } return r3; } try { Reflect.apply(removeChild, head, [element]); } catch (error) { if (DEBUG_BUILD) { debug.warn('Could not create sandbox iframe for ' + a0 + ' check, bailing to window.' + a0 + ': ', error); } } } } else if (value2) { try { property = contentWindow[a0]; r4 = property; } catch (error) { r4 = property; if (DEBUG_BUILD) { debug.warn('Could not create sandbox iframe for ' + a0 + ' check, bailing to window.' + a0 + ': ', error); } if (r4) { binding = env0_2; value = r4.bind(WINDOW); binding[a0] = value; r3 = value; } else { r3 = r4; } return r3; } try { head = document.head; } catch (error) { if (DEBUG_BUILD) { debug.warn('Could not create sandbox iframe for ' + a0 + ' check, bailing to window.' + a0 + ': ', error); } if (r4) { binding = env0_2; value = r4.bind(WINDOW); binding[a0] = value; r3 = value; } else { r3 = r4; } return r3; } try { removeChild = head.removeChild; } catch (error) { if (DEBUG_BUILD) { debug.warn('Could not create sandbox iframe for ' + a0 + ' check, bailing to window.' + a0 + ': ', error); } if (r4) { binding = env0_2; value = r4.bind(WINDOW); binding[a0] = value; r3 = value; } else { r3 = r4; } return r3; } try { Reflect.apply(removeChild, head, [element]); } catch (error) { if (DEBUG_BUILD) { debug.warn('Could not create sandbox iframe for ' + a0 + ' check, bailing to window.' + a0 + ': ', error); } } } else { r4 = property; try { head = document.head; } catch (error) { if (DEBUG_BUILD) { debug.warn('Could not create sandbox iframe for ' + a0 + ' check, bailing to window.' + a0 + ': ', error); } if (r4) { binding = env0_2; value = r4.bind(WINDOW); binding[a0] = value; r3 = value; } else { r3 = r4; } return r3; } try { removeChild = head.removeChild; } catch (error) { if (DEBUG_BUILD) { debug.warn('Could not create sandbox iframe for ' + a0 + ' check, bailing to window.' + a0 + ': ', error); } if (r4) { binding = env0_2; value = r4.bind(WINDOW); binding[a0] = value; r3 = value; } else { r3 = r4; } return r3; } try { Reflect.apply(removeChild, head, [element]); } catch (error) { if (DEBUG_BUILD) { debug.warn('Could not create sandbox iframe for ' + a0 + ' check, bailing to window.' + a0 + ': ', error); } } } } } else { r4 = property; } if (r4) { binding = env0_2; value = r4.bind(WINDOW); binding[a0] = value; r3 = value; } else { r3 = r4; } return r3; } function clearCachedImplementation(a0) { // fn#11246, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1202:657, offset: 0x00da6492, size: 18 bytes, params: 2, frame: 3 env0_2[a0] = undefined; } function fetch() { // fn#11247, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1202:717, offset: 0x00da64a4, size: 35 bytes, params: 1, frame: 14 return getNativeImplementation('fetch').apply(undefined, arguments); } function setTimeout_11248() { // fn#11248, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1202:864, offset: 0x00da64c7, size: 35 bytes, params: 1, frame: 14 return getNativeImplementation('setTimeout').apply(undefined, arguments); }