/* Metro module 6467; source: unknown; dependencies: [] */ function _fun50835(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#50835, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6645:6, offset: 0x012231e1, size: 316 bytes, params: 8, frame: 15 let value = global; const isObject_50836 = function(a0) { var value = typeof a0; return a0 ? value === 'object' || value === 'function' : !!a0; }; const env0_0 = RegExp('^\\s+|\\s+$', 'g'); const env0_1 = RegExp('^[-+]0x[0-9a-f]+$', 'i'); const env0_2 = RegExp('^0b[01]+$', 'i'); const env0_3 = RegExp('^0o[0-7]+$', 'i'); const env0_4 = global.parseInt; let r2 = typeof value === 'object' && value && value.Object === global.Object && value; r2 = !r2 ? typeof global.self === 'object' && global.self && global.self.Object === global.Object && global.self : r2; if (!r2) { value = global.Function('return this')(); } const Object = global.Object; const env0_6 = Object.prototype.toString; let Math = global.Math; const env0_7 = Math.max; Math = global.Math; const env0_8 = Math.min; module.exports = exports_50840; } function toNumber(a0) { // fn#50837, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6645:416, offset: 0x01223344, size: 263 bytes, params: 2, frame: 18 var r1; var r2; var parseIntBinding; var value4; let value = a0; if (typeof value === 'number') { return value; } if (toNumberIsSymbol(value)) { return global.NaN; } if (isObject_50836(value)) { if (typeof value.valueOf !== 'function') { r1 = value; } else { value = value.valueOf(); r1 = value; } r1 = isObject_50836(r1) ? String(r1) : r1; r2 = r1; } else { r2 = value; } if (typeof r2 !== 'string') { r1 = r2 === 0 ? r2 : Number(r2); } else { value = r2.replace(env0_0, ''); var binding = env0_2; var value3 = binding.test(value); if (value3) { parseIntBinding = parseInt; value4 = 2; value = value.slice(value4); value = parseIntBinding(value, value3 ? value4 : 8); r1 = value; } else { binding = env0_3; if (binding.test(value)) { parseIntBinding = parseInt; value4 = 2; value = value.slice(value4); value = parseIntBinding(value, value3 ? value4 : 8); r1 = value; } else { binding = env0_1; if (binding.test(value)) { r1 = global.NaN; } else { value = Number(value); r1 = value; } } } } return r1; } function now_50839() { // fn#50839, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6645:304, offset: 0x0122348e, size: 23 bytes, params: 1, frame: 9 const Date = env0_5.Date; return Date.now(); } function exports_50840(a0, a1, a2) { // fn#50840, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6645:849, offset: 0x012234a5, size: 287 bytes, params: 4, frame: 20 var r2; const env0_0 = a0; const env0_1 = a1; const closure = exports_50840Debounced; let value = 0; var env0_9; const value2 = true; if (typeof a0 !== 'function') { throw new global.TypeError('Expected a function'); } if (isObject_50836(a2)) { env0_9 = !!a2.leading; if ('maxWait' in a2) { value = max(toNumber(a2.maxWait) || value, toNumber(a1) || value); } r2 = 'trailing' in a2 ? !!a2.trailing : value2; } closure.cancel = cancel_50846; closure.flush = flush_50847; return closure; } function toNumberIsSymbol(a0) { // fn#50838, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6645:471, owner: toNumber.isSymbol, offset: 0x0122344b, size: 67 bytes, params: 2, frame: 13 var r1; var r0; let value = typeof a0; const value2 = value === 'symbol'; if (value2) { r0 = value2; } else { if (a0) { value = value === 'object'; r1 = value; } else { r1 = !!a0; } if (r1) { value = environment.__proto__; value = toString.call(a0); value = value == '[object Symbol]'; r1 = value; } r0 = r1; } return r0; } function exports_50840TimerExpired() { // fn#50843, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6645:1123, owner: exports_50840.timerExpired, offset: 0x012235c4, size: 115 bytes, params: 1, frame: 19 const value = environment.__proto__; const value2 = now_50839(); if (exports_50840ShouldInvoke(value2)) { return exports_50840TrailingEdge(value2); } const setTimeout = global.setTimeout; const exports_50840TimerExpiredBinding = exports_50840TimerExpired; const value4 = require - (value2 - env0_7); env0_6 = setTimeout(exports_50840TimerExpiredBinding, env0_10 ? min(value4, env0_4 - (value2 - env0_8)) : value4); } function exports_50840Debounced() { // fn#50845, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6645:1369, owner: exports_50840.debounced, offset: 0x01223637, size: 200 bytes, params: 1, frame: 15 var binding; let value = environment.__proto__; value = now_50839(); const value3 = exports_50840ShouldInvoke(value); env0_2 = arguments; env0_7 = value; if (value3) { if (env0_6 === undefined) { binding = env0_7; env0_6 = global.setTimeout(exports_50840TimerExpired, require); return env0_9 ? exports_50840InvokeFunc(binding) : env0_5; } if (env0_10) { env0_6 = global.setTimeout(exports_50840TimerExpired, require); return exports_50840InvokeFunc(env0_7); } } if (env0_6 === undefined) { env0_6 = global.setTimeout(exports_50840TimerExpired, require); } return env0_5; } function exports_50840Flush() { // fn#50847, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6645:1895, owner: exports_50840.flush, offset: 0x012236ff, size: 41 bytes, params: 1, frame: 12 var r0; var exports_50840TrailingEdgeBinding; var value; if (env0_6 === undefined) { r0 = env0_5; } else { exports_50840TrailingEdgeBinding = exports_50840TrailingEdge; value = environment.__proto__; value = exports_50840TrailingEdgeBinding(now_50839()); r0 = value; } return r0; }