/* Metro module 1070; source: unknown; dependencies: [77, 1067, 1042, 1043, 826] */ function _fun11210(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#11210, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1197:6, offset: 0x00da4da2, size: 110 bytes, params: 8, frame: 19 const env0_0 = require; const closure = _sendStandaloneClsSpan; 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._sendStandaloneClsSpan = closure; exports.trackClsAsStandaloneSpan = trackClsAsStandaloneSpan; } function _sendStandaloneClsSpan(a0, a1, a2, a3) { // fn#11211, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1197:44, offset: 0x00da4e10, size: 631 bytes, params: 5, frame: 25 var r3; var r10; var moduleValue2; var moduleValue5; var htmlTreeAsString; var property; var addEvent; var value; const value2 = undefined; if ((require(1043) /* metro dependency 1043 */).DEBUG_BUILD) { (require(826) /* metro dependency 826 */).debug.log('Sending CLS span (' + a0 + ')'); } if (a1) { moduleValue2 = require(1067) /* metro dependency 1067 */; r3 = moduleValue2.msToSec(((require(826) /* metro dependency 826 */).browserPerformanceTimeOrigin() || 0) + a1.startTime); } else { r3 = (require(826) /* metro dependency 826 */).timestampInSeconds(); } const currentScope = (require(826) /* metro dependency 826 */).getCurrentScope(); const getScopeData = currentScope.getScopeData; const transactionName = Reflect.apply(getScopeData, currentScope, []).transactionName; if (a1) { moduleValue5 = require(826) /* metro dependency 826 */; htmlTreeAsString = moduleValue5.htmlTreeAsString; property = a1.sources[0]; r10 = Reflect.apply(htmlTreeAsString, moduleValue5, [property == null ? value2 : property.node]); } else { r10 = 'Layout shift'; } 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.cls'); const SEMANTIC_ATTRIBUTE_SENTRY_OP = (require(826) /* metro dependency 826 */).SEMANTIC_ATTRIBUTE_SENTRY_OP; const value11 = binding(value10, SEMANTIC_ATTRIBUTE_SENTRY_OP, 'ui.webvital.cls'); 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 != null && a1.sources) { a1.sources.forEach(_fun11212); } const moduleValue6 = require(1067) /* metro dependency 1067 */; const value16 = moduleValue6.startStandaloneWebVitalSpan({name: r10, transaction: transactionName, attributes: value14, startTime: r3}); if (value16) { addEvent = value16.addEvent; binding = env0_2; value = binding({}, (require(826) /* metro dependency 826 */).SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT, ''); value = binding(value, (require(826) /* metro dependency 826 */).SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE, a0); Reflect.apply(addEvent, value16, ['cls', value]); value16.end(r3); } return value2; } function trackClsAsStandaloneSpan(a0) { // fn#11213, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1197:1132, offset: 0x00da50e3, size: 127 bytes, params: 2, frame: 18 var value; const moduleValue = require(1067) /* metro dependency 1067 */; if (moduleValue.supportsWebVital('layout-shift')) { value = require(1042) /* metro dependency 1042 */; var env0_2 = value.addClsInstrumentationHandler(_fun11214, true); value = moduleValue; value.listenForWebVitalReportEvents(a0, _fun11215); } } function _fun11212({node}, a1) { // fn#11212, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1197:683, offset: 0x00da5087, size: 92 bytes, params: 3, frame: 14 const binding = env0_0; let value = a1 + 1; value = 'cls.source.' + value; const moduleValue = require(826) /* metro dependency 826 */; binding[value] = moduleValue.htmlTreeAsString(node); }