/* Metro module 1170; source: unknown; dependencies: [1009, 1171, 826, 1130] */ import * as Module00826Module from './module-00826.js'; /* Metro dependency 826 */ import * as Module01009Module from './module-01009.js'; /* Metro dependency 1009 */ import * as AsyncExpiringMapModule from './module-01171-AsyncExpiringMap.js'; /* Metro dependency 1171 */ function _fun12984(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#12984, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1297:6, offset: 0x00ddceac, size: 136 bytes, params: 8, frame: 17 var closure; let value = this; let env0_0 = require; const fetchNativeFrames_12985 = function() { var Promise = global.Promise; var value = Object.create(Promise.prototype, {constructor: {value: Promise}}); var value2 = new Promise(_fun12986); return value2 instanceof Object ? value2 : value; }; const isClose = function(a0, a1) { var Math = global.Math; return Math.abs(a0 - a1) < 0.05; }; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); if (!(value && value.__awaiter)) { closure = function(a0, a1, a2, a3) { var r2; var value = a2; var env0_0 = a0; var env0_1 = a1; var env0_2 = value; var env0_3 = a3; r2 = value || global.Promise; value = Object.create(r2.prototype, {constructor: {value: r2}}); var value2 = new r2(_fun12992); return value2 instanceof Object ? value2 : value; }; } closure = nativeFramesIntegration; exports.createNativeFramesIntegrations = createNativeFramesIntegrations; exports.nativeFramesIntegration = closure; function fetchNativeFrames_12985() { // fn#12985, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1297:3835, offset: 0x00ddcf34, size: 37 bytes, params: 1, frame: 11 const Promise = global.Promise; const value = Object.create(Promise.prototype, {constructor: {value: Promise}}); const promise = new Promise(_fun12986); return promise instanceof Object ? promise : value; function _fun12986(a0, a1) { // fn#12986, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1297:3884, offset: 0x00ddcf59, size: 124 bytes, params: 3, frame: 14 var environment; const env0_0 = a0; const env0_1 = a1; const env0_3 = global.setTimeout(_fun12987, 2000); let value = environment.__proto__; const NATIVE = (Module01009Module).NATIVE; value = NATIVE.fetchNativeFrames(); value = value.then(_fun12988); value.then(undefined, _fun12989); function _fun12987() { // fn#12987, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1297:3921, offset: 0x00ddcfd5, size: 37 bytes, params: 1, frame: 11 if (!env0_2) { require('Fetching native frames took too long. Dropping frames.'); } } function _fun12988(a0) { // fn#12988, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1297:4050, offset: 0x00ddcffa, size: 71 bytes, params: 2, frame: 13 if (!env0_2) { global.clearTimeout(env0_3); if (a0) { env0_0(a0); } else { require('Native frames response is null.'); } } } function _fun12989(a0) { // fn#12989, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1297:4148, offset: 0x00ddd041, size: 51 bytes, params: 2, frame: 12 if (!env0_2) { global.clearTimeout(env0_3); require(a0); } } } } function _fun12991(a0, a1, a2, a3) { // fn#12991, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1297:122, offset: 0x00ddd0a1, size: 75 bytes, params: 5, frame: 12 let value = a2; const env0_0 = a0; const env0_1 = a1; const env0_3 = a3; let r2 = value || global.Promise; value = Object.create(r2.prototype, {constructor: {value: r2}}); r2 = new r2(_fun12992); return r2 instanceof Object ? r2 : value; function _fun12992(a0, a1) { // fn#12992, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1297:168, offset: 0x00ddd0ec, size: 98 bytes, params: 3, frame: 16 const env0_0 = a0; const env0_1 = a1; const step_129952 = step_12995; const value2 = importAll.apply(env0_0, require || []); step_129952(value2.next()); function fulfilled_12993(a0) { // fn#12993, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1297:182, offset: 0x00d57fb9, size: 56 bytes, params: 2, frame: 12 var value; var step_12995Binding; var value2; var next; var value3; var error; try { value = environment; step_12995Binding = step_12995; value2 = environment.__proto__; next = importAll.next; value3 = Reflect.apply(next, importAll, [a0]); step_12995Binding(value3); } catch (error) { require(error); } } function rejected_12994(a0) { // fn#12994, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1297:239, offset: 0x00d57ff1, size: 57 bytes, params: 2, frame: 12 var value; var step_12995Binding; var value2; var value3; var error; try { value = environment; step_12995Binding = step_12995; value2 = environment.__proto__; value3 = importAll.throw(a0); step_12995Binding(value3); } catch (error) { require(error); } } function step_12995(a0) { // fn#12995, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1297:296, offset: 0x00ddd14e, size: 77 bytes, params: 2, frame: 14 var value; if (a0.done) { env0_0(a0.value); } else { value = a0.value; value = step_12995Adopt(value); value.then(fulfilled_12993, rejected_12994); } function step_12995Adopt(a0) { // fn#12996, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1297:331, owner: step_12995.adopt, offset: 0x00ddd19b, size: 54 bytes, params: 2, frame: 12 const value = a0; return value instanceof env2_2 ? value : new env2_2(_fun12997); function _fun12997(a0) { // fn#12997, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1297:380, offset: 0x00cd9b0e, size: 19 bytes, params: 2, frame: 11 a0(env0_0); } } } } } function nativeFramesIntegration() { // fn#12998, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1297:492, offset: 0x00ddd1d1, size: 184 bytes, params: 1, frame: 17 const AsyncExpiringMap = (AsyncExpiringMapModule).AsyncExpiringMap; let asyncExpiringMap = new AsyncExpiringMap({ttl: 60000}); asyncExpiringMap = new AsyncExpiringMap({ttl: 2000}); return {name: env0_3, setup: setup_13009, processEvent: processEvent_13010}; function fetchStartFramesForSpan(a0) { // fn#12999, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1297:626, owner: nativeFramesIntegration.fetchStartFramesForSpan, offset: 0x00ddd289, size: 205 bytes, params: 2, frame: 25 var environment; const spanId = a0.spanContext().spanId; const value = environment.__proto__; const r11 = (require(1130) /* metro dependency 1130 */).isRootSpan(a0) ? 'root' : 'child'; const debug = (Module00826Module).debug; const log = debug.log; let binding = env1_3; Reflect.apply(log, debug, ['[' + binding + '] Fetching frames for ' + r11 + ' span start (' + spanId + ').']); binding = env0_1; const set = binding.set; const Promise = global.Promise; Reflect.apply(set, binding, [spanId, new Promise(_fun13000)]); function _fun13000(a0) { // fn#13000, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1297:823, offset: 0x00ddd356, size: 55 bytes, params: 2, frame: 14 var environment; const env0_0 = a0; let value = environment.__proto__.__proto__; value = fetchNativeFrames_12985(); value = value.then(_fun13001); value.then(undefined, _fun13002); function _fun13001(a0) { // fn#13001, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1297:861, offset: 0x00c3fb7a, size: 19 bytes, params: 2, frame: 11 return env0_0(a0); } function _fun13002(a0) { // fn#13002, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1297:901, offset: 0x00ddd38d, size: 95 bytes, params: 2, frame: 16 const value = environment.__proto__.__proto__.__proto__; const debug = (Module00826Module).debug; debug.log('[' + env3_3 + '] Error while fetching native frames.', a0); env0_0(null); } } } function fetchEndFramesForSpan(a0) { // fn#13003, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1297:997, owner: nativeFramesIntegration.fetchEndFramesForSpan, offset: 0x00ddd3ec, size: 35 bytes, params: 2, frame: 14 const env0_0 = a0; return env1_2(undefined, undefined, undefined, _fun13005); function* _fun13005() { // fn#13005, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1297:1062, offset: 0x00ddd418, size: 815 bytes, params: 1, frame: 41 var environment; var r16; var r14; var binding; var value3; var timestampInSeconds; var value4; var value5; var spanContext; var spanId; var value6; var has; var value7; var isRootSpan; var debug; var log; var HermesInternal; var concat; var set; var Promise; var prototype; var value8; var closure; var promise; var value9; var get; var value10; var value11; var value12; var binding2; var property; var value13; var value14; var value15; var value16; var value17; var totalFrames; var totalFrames2; var value18; var slowFrames; var slowFrames2; var value19; var frozenFrames; var frozenFrames2; var value20; var value21; var value22; var value23; var setAttribute; var binding3; var value24; var value25; var binding4; var value26; var isRootSpan2; var object; var error; if (true) { reduciblePort89: while (true) { exceptionLanding88: while (true) { var env0_0 = undefined; value = environment.__proto__.__proto__.__proto__; binding = env3_0; value3 = binding(env3_1[2]); timestampInSeconds = value3.timestampInSeconds; value4 = Reflect.apply(timestampInSeconds, value3, []); env0_0 = value4; value5 = environment.__proto__; binding = env1_0; spanContext = binding.spanContext; spanId = Reflect.apply(spanContext, binding, []).spanId; value6 = environment.__proto__.__proto__; has = dependencyMap.has; if (Reflect.apply(has, dependencyMap, [spanId])) { binding = env3_0; value7 = binding(env3_1[3]); isRootSpan = value7.isRootSpan; reducibleJoin4: while (true) { if (Reflect.apply(isRootSpan, value7, [env1_0])) { binding = env3_0; debug = binding(env3_1[2]).debug; log = debug.log; binding = env3_3; HermesInternal = global.HermesInternal; concat = HermesInternal.concat; Reflect.apply(log, debug, ['[' + binding + '] Fetch frames for root span end (' + spanId + ').']); binding = env2_2; set = binding.set; Promise = global.Promise; prototype = Promise.prototype; value8 = Object.create(prototype, {constructor: {value: Promise}}); closure = _fun13006; promise = new Promise(); value9 = promise instanceof Object ? promise : value8; Reflect.apply(set, binding, [spanId, value9]); break reducibleJoin4; } break reducibleJoin4; } try { } catch (error) { break exceptionLanding88; } try { get = dependencyMap.get; } catch (error) { break exceptionLanding88; } try { value10 = Reflect.apply(get, dependencyMap, [spanId]); } catch (error) { break exceptionLanding88; } yield value10; try { value11 = undefined; value12 = false; } catch (error) { break exceptionLanding88; } if (value12) { return value11; } if (!value11) { try { binding = env3_0; } catch (error) { break exceptionLanding88; } try { binding2 = env3_1; } catch (error) { break exceptionLanding88; } try { property = binding2[2]; } catch (error) { break exceptionLanding88; } try { value13 = binding(property); } catch (error) { break exceptionLanding88; } try { debug = value13.debug; } catch (error) { break exceptionLanding88; } try { log = debug.log; } catch (error) { break exceptionLanding88; } try { binding = env3_3; } catch (error) { break exceptionLanding88; } try { HermesInternal = global.HermesInternal; } catch (error) { break exceptionLanding88; } try { concat = HermesInternal.concat; } catch (error) { break exceptionLanding88; } try { value14 = '[' + binding + '] No start frames found for span ' + spanId + ', skipping frame data.'; } catch (error) { break exceptionLanding88; } try { Reflect.apply(log, debug, [value14]); } catch (error) { break exceptionLanding88; } return undefined; } try { binding = env3_5; } catch (error) { break exceptionLanding88; } try { value15 = binding(); } catch (error) { break exceptionLanding88; } yield value15; try { value16 = undefined; value17 = false; } catch (error) { break exceptionLanding88; } if (value17) { return value16; } try { totalFrames = value16.totalFrames; } catch (error) { break exceptionLanding88; } try { totalFrames2 = value11.totalFrames; } catch (error) { break exceptionLanding88; } try { value18 = totalFrames - totalFrames2; } catch (error) { break exceptionLanding88; } try { slowFrames = value16.slowFrames; } catch (error) { break exceptionLanding88; } try { slowFrames2 = value11.slowFrames; } catch (error) { break exceptionLanding88; } try { value19 = slowFrames - slowFrames2; } catch (error) { break exceptionLanding88; } try { frozenFrames = value16.frozenFrames; } catch (error) { break exceptionLanding88; } try { frozenFrames2 = value11.frozenFrames; } catch (error) { break exceptionLanding88; } try { value20 = frozenFrames - frozenFrames2; } catch (error) { break exceptionLanding88; } try { value21 = value18 > 0; } catch (error) { break exceptionLanding88; } reducibleJoin47: while (true) { if (value21) { r16 = value21; break reducibleJoin47; } try { value22 = value19 > 0; } catch (error) { break exceptionLanding88; } r16 = value22; break reducibleJoin47; } reducibleJoin50: while (true) { if (r16) { r14 = r16; break reducibleJoin50; } try { value23 = value20 > 0; } catch (error) { break exceptionLanding88; } r14 = value23; break reducibleJoin50; } reducibleJoin74: while (true) { if (r14) { try { binding = env1_0; } catch (error) { break exceptionLanding88; } try { setAttribute = binding.setAttribute; } catch (error) { break exceptionLanding88; } try { Reflect.apply(setAttribute, binding, ['frames.total', value18]); } catch (error) { break exceptionLanding88; } try { setAttribute = binding.setAttribute; } catch (error) { break exceptionLanding88; } try { Reflect.apply(setAttribute, binding, ['frames.slow', value19]); } catch (error) { break exceptionLanding88; } try { setAttribute = binding.setAttribute; } catch (error) { break exceptionLanding88; } try { Reflect.apply(setAttribute, binding, ['frames.frozen', value20]); } catch (error) { break exceptionLanding88; } try { binding = env3_0; } catch (error) { break exceptionLanding88; } try { binding3 = env3_1; } catch (error) { break exceptionLanding88; } try { property = binding3[2]; } catch (error) { break exceptionLanding88; } try { value24 = binding(property); } catch (error) { break exceptionLanding88; } try { debug = value24.debug; } catch (error) { break exceptionLanding88; } try { log = debug.log; } catch (error) { break exceptionLanding88; } try { binding = env3_3; } catch (error) { break exceptionLanding88; } try { HermesInternal = global.HermesInternal; } catch (error) { break exceptionLanding88; } try { concat = HermesInternal.concat; } catch (error) { break exceptionLanding88; } try { value25 = '[' + binding + '] Attached frame data to span ' + spanId + ': total=' + value18 + ', slow=' + value19 + ', frozen=' + value20; } catch (error) { break exceptionLanding88; } try { Reflect.apply(log, debug, [value25]); } catch (error) { break exceptionLanding88; } break reducibleJoin74; } break reducibleJoin74; } try { binding = env3_0; } catch (error) { break exceptionLanding88; } try { binding4 = env3_1; } catch (error) { break exceptionLanding88; } try { property = binding4[3]; } catch (error) { break exceptionLanding88; } try { value26 = binding(property); } catch (error) { break exceptionLanding88; } try { isRootSpan = value26.isRootSpan; } catch (error) { break exceptionLanding88; } try { binding = env1_0; } catch (error) { break exceptionLanding88; } try { isRootSpan2 = Reflect.apply(isRootSpan, value26, [binding]); } catch (error) { break exceptionLanding88; } if (isRootSpan2) { break reduciblePort89; } try { object = {}; } catch (error) { break exceptionLanding88; } try { object.timestamp = value4; } catch (error) { break exceptionLanding88; } try { object.nativeFrames = value16; } catch (error) { break exceptionLanding88; } try { env2_0 = object; } catch (error) { break exceptionLanding88; } break reduciblePort89; } break reduciblePort89; } binding = env3_0; debug = binding(env3_1[2]).debug; log = debug.log; binding = env3_3; HermesInternal = global.HermesInternal; concat = HermesInternal.concat; Reflect.apply(log, debug, ['[' + binding + '] Error while capturing end frames for span ' + spanId + '.', error]); break reduciblePort89; } } function _fun13006(a0) { // fn#13006, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1297:1259, offset: 0x00ddd747, size: 55 bytes, params: 2, frame: 14 var environment; const env0_0 = a0; let value = environment.__proto__.__proto__.__proto__.__proto__; value = env4_5(); value = value.then(_fun13007); value.then(undefined, _fun13008); function _fun13007(a0) { // fn#13007, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1297:1297, offset: 0x00ddd77e, size: 38 bytes, params: 2, frame: 11 env0_0({timestamp: env1_0, nativeFrames: a0}); } function _fun13008(a0) { // fn#13008, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1297:1357, offset: 0x00ddd7a4, size: 95 bytes, params: 2, frame: 16 const value = environment.__proto__.__proto__.__proto__.__proto__.__proto__; const debug = env5_0(env5_1[2]).debug; debug.log('[' + env5_3 + '] Error while fetching native frames.', a0); env0_0(null); } } } } function nativeFramesIntegrationSetup(a0) { // fn#13009, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1297:2086, owner: nativeFramesIntegration.setup, offset: 0x00ddd803, size: 187 bytes, params: 2, frame: 20 var debug; const NATIVE = (Module01009Module).NATIVE; if (NATIVE.enableNative) { NATIVE.enableNativeFramesTracking(); a0.on('spanStart', fetchStartFramesForSpan); a0.on('spanEnd', fetchEndFramesForSpan); } else { debug = (require(826) /* metro dependency 826 */).debug; debug.warn('[' + env1_3 + '] This is not available on the Web, Expo Go and other platforms without native modules.'); } } function nativeFramesIntegrationProcessEvent(a0) { // fn#13010, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1297:2345, owner: nativeFramesIntegration.processEvent, offset: 0x00ddd8be, size: 35 bytes, params: 2, frame: 14 const env0_0 = a0; return env1_2(undefined, undefined, undefined, _fun13012); function* _fun13012() { // fn#13012, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1297:2401, offset: 0x00ddd8ea, size: 1104 bytes, params: 1, frame: 34 var nativeFrames; var r3; var contexts; var trace; var span_id; var binding; var op; var value3; var value4; var value6; var debug; var warn; var binding2; var value7; var value9; var value10; var value11; var log; var object; var value15; var binding3; var Object; var assign; var Object2; var assign2; var measurements; var value17; if (false) { return undefined; } value = environment.__proto__; if (env1_0.type === 'transaction') { if (env1_0.transaction) { contexts = env1_0.contexts; if (contexts) { contexts = env1_0.contexts; trace = contexts.trace; if (trace) { if (env1_0.timestamp) { contexts = env1_0.contexts; trace = contexts.trace; span_id = trace.span_id; if (span_id) { binding = env1_0; contexts = binding.contexts; trace = contexts.trace; op = trace.op; contexts = binding.contexts; trace = contexts.trace; span_id = trace.span_id; value3 = environment.__proto__.__proto__; yield dependencyMap.pop(span_id); value4 = undefined; if (false) { return value4; } if (value4) { binding = env2_2; yield binding.pop(span_id); value7 = undefined; if (false) { return value7; } if (value7) { value9 = environment.__proto__.__proto__.__proto__; binding = env3_6; if (binding(value7.timestamp, env1_0.timestamp)) { binding = env3_0; debug = binding(env3_1[2]).debug; log = debug.log; binding = env3_3; Reflect.apply(log, debug, ['[' + binding + '] Using frames from root span end (spanId, ' + span_id + ').']); nativeFrames = value7.nativeFrames; object = {}; object.frames_total = {value: nativeFrames.totalFrames - value4.totalFrames, unit: 'none'}; object.frames_frozen = {value: nativeFrames.frozenFrames - value4.frozenFrames, unit: 'none'}; object.frames_slow = {value: nativeFrames.slowFrames - value4.slowFrames, unit: 'none'}; if (object.frames_frozen.value <= 0) { if (object.frames_slow.value <= 0) { if (object.frames_total.value <= 0) { value17 = environment.__proto__.__proto__.__proto__; binding = env3_0; debug = binding(env3_1[2]).debug; warn = debug.warn; binding = env3_3; Reflect.apply(warn, debug, ['[' + binding + '] Detected zero slow or frozen frames. Not adding measurements to spanId (' + span_id + ').']); binding = env1_0; r3 = binding; } else { value15 = environment.__proto__.__proto__.__proto__; binding = env3_0; debug = binding(env3_1[2]).debug; log = debug.log; binding = env3_3; binding3 = env1_0; Reflect.apply(log, debug, ['[' + binding + '] Adding measurements to ' + op + ' transaction ' + binding3.transaction + ': ' + global.JSON.stringify(object, undefined, 2)]); Object = global.Object; assign = Object.assign; Object2 = global.Object; assign2 = Object2.assign; measurements = binding3.measurements; binding3.measurements = Reflect.apply(assign, Object, [Reflect.apply(assign2, Object2, [{}, measurements === null ? {} : measurements !== undefined ? measurements : {}]), object]); binding = env1_0; r3 = binding; } } else { value15 = environment.__proto__.__proto__.__proto__; binding = env3_0; debug = binding(env3_1[2]).debug; log = debug.log; binding = env3_3; binding3 = env1_0; Reflect.apply(log, debug, ['[' + binding + '] Adding measurements to ' + op + ' transaction ' + binding3.transaction + ': ' + global.JSON.stringify(object, undefined, 2)]); Object = global.Object; assign = Object.assign; Object2 = global.Object; assign2 = Object2.assign; measurements = binding3.measurements; binding3.measurements = Reflect.apply(assign, Object, [Reflect.apply(assign2, Object2, [{}, measurements === null ? {} : measurements !== undefined ? measurements : {}]), object]); binding = env1_0; r3 = binding; } } else { value15 = environment.__proto__.__proto__.__proto__; binding = env3_0; debug = binding(env3_1[2]).debug; log = debug.log; binding = env3_3; binding3 = env1_0; Reflect.apply(log, debug, ['[' + binding + '] Adding measurements to ' + op + ' transaction ' + binding3.transaction + ': ' + global.JSON.stringify(object, undefined, 2)]); Object = global.Object; assign = Object.assign; Object2 = global.Object; assign2 = Object2.assign; measurements = binding3.measurements; binding3.measurements = Reflect.apply(assign, Object, [Reflect.apply(assign2, Object2, [{}, measurements === null ? {} : measurements !== undefined ? measurements : {}]), object]); binding = env1_0; r3 = binding; } return r3; } if (require) { value10 = environment.__proto__.__proto__.__proto__; binding = env3_6; if (binding(require.timestamp, env1_0.timestamp)) { binding = env3_0; debug = binding(env3_1[2]).debug; log = debug.log; binding = env3_3; Reflect.apply(log, debug, ['[' + binding + '] Using native frames from last child span end (spanId, ' + span_id + ').']); nativeFrames = require.nativeFrames; object = {}; object.frames_total = {value: nativeFrames.totalFrames - value4.totalFrames, unit: 'none'}; object.frames_frozen = {value: nativeFrames.frozenFrames - value4.frozenFrames, unit: 'none'}; object.frames_slow = {value: nativeFrames.slowFrames - value4.slowFrames, unit: 'none'}; if (object.frames_frozen.value <= 0) { if (object.frames_slow.value <= 0) { if (object.frames_total.value <= 0) { value17 = environment.__proto__.__proto__.__proto__; binding = env3_0; debug = binding(env3_1[2]).debug; warn = debug.warn; binding = env3_3; Reflect.apply(warn, debug, ['[' + binding + '] Detected zero slow or frozen frames. Not adding measurements to spanId (' + span_id + ').']); binding = env1_0; r3 = binding; } else { value15 = environment.__proto__.__proto__.__proto__; binding = env3_0; debug = binding(env3_1[2]).debug; log = debug.log; binding = env3_3; binding3 = env1_0; Reflect.apply(log, debug, ['[' + binding + '] Adding measurements to ' + op + ' transaction ' + binding3.transaction + ': ' + global.JSON.stringify(object, undefined, 2)]); Object = global.Object; assign = Object.assign; Object2 = global.Object; assign2 = Object2.assign; measurements = binding3.measurements; binding3.measurements = Reflect.apply(assign, Object, [Reflect.apply(assign2, Object2, [{}, measurements === null ? {} : measurements !== undefined ? measurements : {}]), object]); binding = env1_0; r3 = binding; } } else { value15 = environment.__proto__.__proto__.__proto__; binding = env3_0; debug = binding(env3_1[2]).debug; log = debug.log; binding = env3_3; binding3 = env1_0; Reflect.apply(log, debug, ['[' + binding + '] Adding measurements to ' + op + ' transaction ' + binding3.transaction + ': ' + global.JSON.stringify(object, undefined, 2)]); Object = global.Object; assign = Object.assign; Object2 = global.Object; assign2 = Object2.assign; measurements = binding3.measurements; binding3.measurements = Reflect.apply(assign, Object, [Reflect.apply(assign2, Object2, [{}, measurements === null ? {} : measurements !== undefined ? measurements : {}]), object]); binding = env1_0; r3 = binding; } } else { value15 = environment.__proto__.__proto__.__proto__; binding = env3_0; debug = binding(env3_1[2]).debug; log = debug.log; binding = env3_3; binding3 = env1_0; Reflect.apply(log, debug, ['[' + binding + '] Adding measurements to ' + op + ' transaction ' + binding3.transaction + ': ' + global.JSON.stringify(object, undefined, 2)]); Object = global.Object; assign = Object.assign; Object2 = global.Object; assign2 = Object2.assign; measurements = binding3.measurements; binding3.measurements = Reflect.apply(assign, Object, [Reflect.apply(assign2, Object2, [{}, measurements === null ? {} : measurements !== undefined ? measurements : {}]), object]); binding = env1_0; r3 = binding; } return r3; } value11 = environment.__proto__.__proto__.__proto__; binding = env3_0; debug = binding(env3_1[2]).debug; warn = debug.warn; binding = env3_3; Reflect.apply(warn, debug, ['[' + binding + '] Frames were collected within larger than margin of error delay for spanId (' + span_id + '). Dropping the inaccurate values.']); return env1_0; } value11 = environment.__proto__.__proto__.__proto__; binding = env3_0; debug = binding(env3_1[2]).debug; warn = debug.warn; binding = env3_3; Reflect.apply(warn, debug, ['[' + binding + '] Frames were collected within larger than margin of error delay for spanId (' + span_id + '). Dropping the inaccurate values.']); return env1_0; } if (require) { value10 = environment.__proto__.__proto__.__proto__; binding = env3_6; if (binding(require.timestamp, env1_0.timestamp)) { binding = env3_0; debug = binding(env3_1[2]).debug; log = debug.log; binding = env3_3; Reflect.apply(log, debug, ['[' + binding + '] Using native frames from last child span end (spanId, ' + span_id + ').']); nativeFrames = require.nativeFrames; object = {}; object.frames_total = {value: nativeFrames.totalFrames - value4.totalFrames, unit: 'none'}; object.frames_frozen = {value: nativeFrames.frozenFrames - value4.frozenFrames, unit: 'none'}; object.frames_slow = {value: nativeFrames.slowFrames - value4.slowFrames, unit: 'none'}; if (object.frames_frozen.value <= 0) { if (object.frames_slow.value <= 0) { if (object.frames_total.value <= 0) { value17 = environment.__proto__.__proto__.__proto__; binding = env3_0; debug = binding(env3_1[2]).debug; warn = debug.warn; binding = env3_3; Reflect.apply(warn, debug, ['[' + binding + '] Detected zero slow or frozen frames. Not adding measurements to spanId (' + span_id + ').']); binding = env1_0; r3 = binding; } else { value15 = environment.__proto__.__proto__.__proto__; binding = env3_0; debug = binding(env3_1[2]).debug; log = debug.log; binding = env3_3; binding3 = env1_0; Reflect.apply(log, debug, ['[' + binding + '] Adding measurements to ' + op + ' transaction ' + binding3.transaction + ': ' + global.JSON.stringify(object, undefined, 2)]); Object = global.Object; assign = Object.assign; Object2 = global.Object; assign2 = Object2.assign; measurements = binding3.measurements; binding3.measurements = Reflect.apply(assign, Object, [Reflect.apply(assign2, Object2, [{}, measurements === null ? {} : measurements !== undefined ? measurements : {}]), object]); binding = env1_0; r3 = binding; } } else { value15 = environment.__proto__.__proto__.__proto__; binding = env3_0; debug = binding(env3_1[2]).debug; log = debug.log; binding = env3_3; binding3 = env1_0; Reflect.apply(log, debug, ['[' + binding + '] Adding measurements to ' + op + ' transaction ' + binding3.transaction + ': ' + global.JSON.stringify(object, undefined, 2)]); Object = global.Object; assign = Object.assign; Object2 = global.Object; assign2 = Object2.assign; measurements = binding3.measurements; binding3.measurements = Reflect.apply(assign, Object, [Reflect.apply(assign2, Object2, [{}, measurements === null ? {} : measurements !== undefined ? measurements : {}]), object]); binding = env1_0; r3 = binding; } } else { value15 = environment.__proto__.__proto__.__proto__; binding = env3_0; debug = binding(env3_1[2]).debug; log = debug.log; binding = env3_3; binding3 = env1_0; Reflect.apply(log, debug, ['[' + binding + '] Adding measurements to ' + op + ' transaction ' + binding3.transaction + ': ' + global.JSON.stringify(object, undefined, 2)]); Object = global.Object; assign = Object.assign; Object2 = global.Object; assign2 = Object2.assign; measurements = binding3.measurements; binding3.measurements = Reflect.apply(assign, Object, [Reflect.apply(assign2, Object2, [{}, measurements === null ? {} : measurements !== undefined ? measurements : {}]), object]); binding = env1_0; r3 = binding; } return r3; } value11 = environment.__proto__.__proto__.__proto__; binding = env3_0; debug = binding(env3_1[2]).debug; warn = debug.warn; binding = env3_3; Reflect.apply(warn, debug, ['[' + binding + '] Frames were collected within larger than margin of error delay for spanId (' + span_id + '). Dropping the inaccurate values.']); return env1_0; } value11 = environment.__proto__.__proto__.__proto__; binding = env3_0; debug = binding(env3_1[2]).debug; warn = debug.warn; binding = env3_3; Reflect.apply(warn, debug, ['[' + binding + '] Frames were collected within larger than margin of error delay for spanId (' + span_id + '). Dropping the inaccurate values.']); return env1_0; } value6 = environment.__proto__.__proto__.__proto__; binding = env3_0; debug = binding(env3_1[2]).debug; warn = debug.warn; binding = env3_3; binding2 = env1_0; Reflect.apply(warn, debug, ['[' + binding + '] Start frames of transaction ' + binding2.transaction + ' (eventId, ' + binding2.event_id + ') are missing, but the transaction already ended.']); return binding2; } return env1_0; } return env1_0; } return env1_0; } return env1_0; } } return env1_0; } } } function createNativeFramesIntegrations(a0) { // fn#13013, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1297:4278, offset: 0x00dddd3a, size: 95 bytes, params: 2, frame: 13 if (!a0) { var NATIVE = (require(1009) /* metro dependency 1009 */).NATIVE; if (NATIVE.enableNative) { NATIVE.disableNativeFramesTracking(); return undefined; } } return nativeFramesIntegration(); } } global.__d(_fun12984, 1170, [1009, 1171, 826, 1130]) /* metro module 1170, dependencies: [1009, 1171, 826, 1130] */;