/* Metro module 1069; source: unknown; dependencies: [77, 1067, 1042, 1043, 826] */ function _fun11205(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#11205, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1196:6, offset: 0x00da4984, size: 110 bytes, params: 8, frame: 19 const env0_0 = require; const closure = _sendStandaloneLcpSpan; const env0_2 = require(77) /* metro dependency 77 */; const Object = global.Object; const defineProperty = Object.defineProperty; const Symbol = global.Symbol; Reflect.apply(defineProperty, Object, [exports, Symbol.toStringTag, {value: 'Module'}]); exports._sendStandaloneLcpSpan = closure; exports.trackLcpAsStandaloneSpan = trackLcpAsStandaloneSpan; } function _sendStandaloneLcpSpan(a0, a1, a2, a3) { // fn#11206, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1196:44, offset: 0x00da49f2, size: 715 bytes, params: 5, frame: 26 var r10; var moduleValue4; var moduleValue5; var addEvent; var value; const value2 = undefined; if ((require(1043) /* metro dependency 1043 */).DEBUG_BUILD) { (require(826) /* metro dependency 826 */).debug.log('Sending LCP span (' + a0 + ')'); } const moduleValue = require(1067) /* metro dependency 1067 */; const msToSec = moduleValue.msToSec; const r8 = (require(826) /* metro dependency 826 */).browserPerformanceTimeOrigin() || 0; let startTime = a1 == null ? value2 : a1.startTime; startTime = !startTime ? 0 : startTime; const value6 = Reflect.apply(msToSec, moduleValue, [r8 + startTime]); const currentScope = (require(826) /* metro dependency 826 */).getCurrentScope(); const getScopeData = currentScope.getScopeData; const transactionName = Reflect.apply(getScopeData, currentScope, []).transactionName; if (a1) { moduleValue4 = require(826) /* metro dependency 826 */; r10 = moduleValue4.htmlTreeAsString(a1.element); } else { r10 = 'Largest contentful paint'; } let binding = env0_2; const SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN = (require(826) /* metro dependency 826 */).SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN; const value10 = binding({}, SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN, 'auto.http.browser.lcp'); const SEMANTIC_ATTRIBUTE_SENTRY_OP = (require(826) /* metro dependency 826 */).SEMANTIC_ATTRIBUTE_SENTRY_OP; const value11 = binding(value10, SEMANTIC_ATTRIBUTE_SENTRY_OP, 'ui.webvital.lcp'); const SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME = (require(826) /* metro dependency 826 */).SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME; const value14 = binding(binding(binding(value11, SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME, 0), 'sentry.pageload.span_id', a2), 'sentry.report_event', a3); if (a1) { if (a1.element) { moduleValue5 = require(826) /* metro dependency 826 */; value14['lcp.element'] = moduleValue5.htmlTreeAsString(a1.element); } if (a1.id) { value14['lcp.id'] = a1.id; } if (a1.url) { value14['lcp.url'] = a1.url; } if (a1.loadTime != null) { value14['lcp.loadTime'] = a1.loadTime; } if (a1.renderTime != null) { value14['lcp.renderTime'] = a1.renderTime; } if (a1.size != null) { value14['lcp.size'] = a1.size; } } const moduleValue6 = moduleValue; const value15 = moduleValue6.startStandaloneWebVitalSpan({name: r10, transaction: transactionName, attributes: value14, startTime: value6}); if (value15) { addEvent = value15.addEvent; binding = env0_2; value = binding({}, (require(826) /* metro dependency 826 */).SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT, 'millisecond'); value = binding(value, (require(826) /* metro dependency 826 */).SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE, a0); Reflect.apply(addEvent, value15, ['lcp', value]); value15.end(value6); } return value2; } function trackLcpAsStandaloneSpan(a0) { // fn#11207, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1196:1266, offset: 0x00da4cbd, size: 127 bytes, params: 2, frame: 18 var value; const moduleValue = require(1067) /* metro dependency 1067 */; if (moduleValue.supportsWebVital('largest-contentful-paint')) { value = require(1042) /* metro dependency 1042 */; var env0_2 = value.addLcpInstrumentationHandler(_fun11208, true); value = moduleValue; value.listenForWebVitalReportEvents(a0, _fun11209); } }