/* Metro module 881; source: unknown; dependencies: [6, 7, 836] */ function _fun9498(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#9498, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1008:6, offset: 0x00d6948b, size: 139 bytes, params: 8, frame: 18 const env0_0 = require; const env0_2 = require(6) /* metro dependency 6 */; const env0_3 = require(7) /* metro dependency 7 */; const Object = global.Object; const defineProperty = Object.defineProperty; const Symbol = global.Symbol; Reflect.apply(defineProperty, Object, [exports, Symbol.toStringTag, {value: 'Module'}]); exports.SyncPromise = _fun9499(); exports.rejectedSyncPromise = rejectedSyncPromise; exports.resolvedSyncPromise = resolvedSyncPromise; } function _fun9499() { // fn#9499, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1008:123, offset: 0x00d69516, size: 149 bytes, params: 1, frame: 15 return env0_3(SyncPromise, [{key: 'then', value: value_9501}, {key: 'catch', value: function(a0) { return this.then(_fun9506, a0); }}, {key: 'finally', value: value_9507}, {key: '_executeHandlers', value: function() { var value; var env0_0 = this; if (this._state !== 0) { value = this._handlers.slice(); this._handlers = []; value.forEach(_fun9513); } }}, {key: '_runExecutor', value: function(a0) { var error; var env0_0 = this; var env0_1 = _fun9515; var closure = _fun9516; var env0_2 = closure; var closure2 = _fun9517; var env0_3 = closure2; try { a0(closure, closure2); } catch (error) { closure2(error); } }}]); } function rejectedSyncPromise(a0) { // fn#9518, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1008:1361, offset: 0x00d699a6, size: 43 bytes, params: 2, frame: 11 const env0_0 = a0; const binding = env0_4; const value = Object.create(binding.prototype, {constructor: {value: binding}}); const binding2 = new binding(_fun9519); return binding2 instanceof Object ? binding2 : value; } function resolvedSyncPromise(a0) { // fn#9520, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1008:1453, offset: 0x00d699d1, size: 43 bytes, params: 2, frame: 11 const env0_0 = a0; const binding = env0_4; const value = Object.create(binding.prototype, {constructor: {value: binding}}); const binding2 = new binding(_fun9521); return binding2 instanceof Object ? binding2 : value; } function SyncPromise(a0) { // fn#9500, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1008:147, offset: 0x00d695ab, size: 61 bytes, params: 2, frame: 13 env1_2(this, SyncPromise); this._state = 0; this._handlers = []; this._runExecutor(a0); } function value_9501(a0, a1) { // fn#9501, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1008:284, offset: 0x00d695e8, size: 57 bytes, params: 3, frame: 11 const env0_0 = a0; const env0_1 = a1; const value = Object.create(SyncPromise.prototype, {constructor: {value: SyncPromise}}); const syncPromise = new SyncPromise(_fun9502); return syncPromise instanceof Object ? syncPromise : value; } function value_9505(a0) { // fn#9505, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1008:528, offset: 0x00d6970c, size: 26 bytes, params: 2, frame: 13 return this.then(function(a0) { return a0; }, a0); } function value_9507(a0) { // fn#9507, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1008:614, offset: 0x00d69726, size: 50 bytes, params: 2, frame: 11 const env0_0 = a0; const value = Object.create(SyncPromise.prototype, {constructor: {value: SyncPromise}}); const syncPromise = new SyncPromise(_fun9508); return syncPromise instanceof Object ? syncPromise : value; } function value_9512() { // fn#9512, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1008:836, offset: 0x00d69813, size: 65 bytes, params: 1, frame: 12 var value; if (this._state !== 0) { value = this._handlers.slice(); this._handlers = []; value.forEach(_fun9513); } } function value_9514(a0) { // fn#9514, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1008:1071, offset: 0x00d698b5, size: 80 bytes, params: 2, frame: 15 var error; const closure = function(a0) { setResult(1, a0); }; const closure2 = function(a0) { setResult(2, a0); }; try { a0(closure, closure2); } catch (error) { closure2(error); } } function _fun9502(a0, a1) { // fn#9502, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1008:338, offset: 0x00d69621, size: 81 bytes, params: 3, frame: 14 const env0_0 = a0; const env0_1 = a1; const binding = env0_2; binding._handlers.push([false, _fun9503, _fun9504]); binding._executeHandlers(); } function _fun9508(a0, a1) { // fn#9508, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1008:670, offset: 0x00d69758, size: 61 bytes, params: 3, frame: 14 const env0_0 = a0; return a1.then(_fun9509, _fun9510).then(_fun9511); } function _fun9513(a0) { // fn#9513, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1008:953, offset: 0x00d69854, size: 97 bytes, params: 2, frame: 13 var _state; if (!a0[0]) { _state = env0_0._state; if (_state === 1) { a0[1](env0_0._value); } _state = env0_0._state; if (_state === 2) { a0[2](env0_0._value); } a0[0] = true; } } function setResult(a0, a1) { // fn#9515, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1008:1109, owner: value_9514.setResult, offset: 0x00d69905, size: 115 bytes, params: 3, frame: 14 var value2; var moduleValue; var binding; if (env0_0._state === 0) { value2 = environment.__proto__.__proto__; moduleValue = require(836) /* metro dependency 836 */; if (moduleValue.isThenable(a1)) { a1.then(value_9514Resolve, value_9514Reject); } else { binding = env0_0; binding._state = a0; binding._value = a1; binding._executeHandlers(); } } }