Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,180 @@
|
||||
/* Metro module 1201; source: unknown; dependencies: [826, 1173, 1163, 1166] */
|
||||
function _fun13322(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#13322, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1328:6, offset: 0x00de7c7e, size: 144 bytes, params: 8, frame: 16
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_4 = {'NUMBER_OF_POINTERS': 'numberOfPointers', 'NUMBER_OF_TOUCHES': 'numberOfTouches', 'FORCE': 'force',
|
||||
'FORCE_CHANGE': 'forceChange', 'ROTATION': 'rotation', 'ROTATION_CHANGE': 'rotationChange', 'SCALE': 'scale',
|
||||
'SCALE_CHANGE': 'scaleChange', 'DURATION': 'duration', 'VELOCITY': 'velocity', 'VELOCITY_X': 'velocityX',
|
||||
'VELOCITY_Y': 'velocityY'};
|
||||
exports.DEFAULT_BREADCRUMB_CATEGORY = 'gesture';
|
||||
exports.DEFAULT_BREADCRUMB_TYPE = 'user';
|
||||
exports.GESTURE_POSTFIX_LENGTH = 14;
|
||||
exports.ACTION_GESTURE_FALLBACK = 'gesture';
|
||||
exports.sentryTraceGesture = sentryTraceGesture;
|
||||
}
|
||||
|
||||
function addGestureBreadcrumb(a0, a1) { // fn#13323, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1328:129, offset: 0x00de7d0e, size: 254 bytes, params: 3, frame: 19
|
||||
var r5;
|
||||
var event;
|
||||
var name;
|
||||
var object3;
|
||||
var value;
|
||||
var object4;
|
||||
var Object;
|
||||
var keys;
|
||||
var iterator;
|
||||
var iterator2;
|
||||
var item;
|
||||
var item2;
|
||||
var binding;
|
||||
var property;
|
||||
var value2;
|
||||
var property2;
|
||||
var error;
|
||||
var addBreadcrumb;
|
||||
var debug;
|
||||
var log;
|
||||
var message;
|
||||
var HermesInternal;
|
||||
var concat;
|
||||
exceptionSkip11: while (true) {
|
||||
exceptionLanding11: while (true) {
|
||||
event = a1.event;
|
||||
name = a1.name;
|
||||
object3 = {message: a0, level: 'info'};
|
||||
value = environment;
|
||||
object3.type = env0_3;
|
||||
object3.category = env0_2;
|
||||
if (event) {
|
||||
object4 = {gesture: name};
|
||||
Object = global.Object;
|
||||
keys = Object.keys;
|
||||
iterator = Reflect.apply(keys, Object, [env0_4])[Symbol.iterator]();
|
||||
iterator2 = iterator.next;
|
||||
r5 = iterator;
|
||||
while (true) {
|
||||
item2 = Reflect.apply(iterator2, r5, []);
|
||||
item = item2.value;
|
||||
item2 = item2.done ? undefined : r5;
|
||||
if (item2 === undefined) {
|
||||
break;
|
||||
}
|
||||
try {
|
||||
binding = env0_4;
|
||||
} catch (error) {
|
||||
break exceptionLanding11;
|
||||
}
|
||||
try {
|
||||
property = binding[item];
|
||||
} catch (error) {
|
||||
break exceptionLanding11;
|
||||
}
|
||||
try {
|
||||
value2 = property in event;
|
||||
} catch (error) {
|
||||
break exceptionLanding11;
|
||||
}
|
||||
if (!value2) {
|
||||
r5 = item2;
|
||||
continue;
|
||||
}
|
||||
try {
|
||||
property2 = event[property];
|
||||
} catch (error) {
|
||||
break exceptionLanding11;
|
||||
}
|
||||
try {
|
||||
object4[property] = property2;
|
||||
} catch (error) {
|
||||
break exceptionLanding11;
|
||||
}
|
||||
r5 = item2;
|
||||
}
|
||||
object3.data = object4;
|
||||
}
|
||||
value = require(826) /* metro dependency 826 */;
|
||||
addBreadcrumb = value.addBreadcrumb;
|
||||
Reflect.apply(addBreadcrumb, value, [object3]);
|
||||
debug = (require(826) /* metro dependency 826 */).debug;
|
||||
log = debug.log;
|
||||
message = object3.message;
|
||||
HermesInternal = global.HermesInternal;
|
||||
concat = HermesInternal.concat;
|
||||
Reflect.apply(log, debug, ['[GestureTracing] ' + message]);
|
||||
return undefined;
|
||||
break exceptionSkip11;
|
||||
}
|
||||
try {
|
||||
item2.return();
|
||||
} catch {
|
||||
}
|
||||
throw error;
|
||||
break exceptionSkip11;
|
||||
}
|
||||
}
|
||||
|
||||
function sentryTraceGesture(a0, a1) { // fn#13324, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1328:841, offset: 0x00de7e0c, size: 313 bytes, params: 3, frame: 16
|
||||
var value;
|
||||
const debug = (require(826) /* metro dependency 826 */).debug;
|
||||
var handlers;
|
||||
var handlerName;
|
||||
var onBegin;
|
||||
var onEnd;
|
||||
const env0_0 = a0;
|
||||
if (a1) {
|
||||
handlers = a1.handlers;
|
||||
if (handlers) {
|
||||
if (a0) {
|
||||
handlerName = a1.handlerName;
|
||||
if (handlerName.length > 14) {
|
||||
handlerName = a1.handlerName;
|
||||
value = handlerName.substring(0, a1.handlerName.length - 14);
|
||||
value = value.toLowerCase();
|
||||
}
|
||||
handlers = a1.handlers;
|
||||
onBegin = handlers.onBegin;
|
||||
handlers = a1.handlers;
|
||||
handlers.onBegin = onBegin;
|
||||
handlers = a1.handlers;
|
||||
onEnd = handlers.onEnd;
|
||||
handlers = a1.handlers;
|
||||
handlers.onEnd = onEnd_13326;
|
||||
return a1;
|
||||
}
|
||||
debug.warn('[GestureTracing] Can not wrap gesture without name.');
|
||||
return a1;
|
||||
}
|
||||
debug.warn('[GestureTracing] Can not wrap gesture without handlers. If you want to wrap a gesture composition wrap individual gestures.');
|
||||
} else {
|
||||
debug.warn('[GestureTracing] Gesture can not be undefined');
|
||||
}
|
||||
return a1;
|
||||
}
|
||||
|
||||
function onBegin(a0) { // fn#13325, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1328:1361, owner: sentryTraceGesture.onBegin, offset: 0x00de7f45, size: 241 bytes, params: 2, frame: 23
|
||||
const value = environment.__proto__;
|
||||
const moduleValue = require(1173) /* metro dependency 1173 */;
|
||||
const startUserInteractionSpan = moduleValue.startUserInteractionSpan;
|
||||
const object2 = {};
|
||||
object2.elementId = env0_0;
|
||||
const UI_ACTION = (require(1163) /* metro dependency 1163 */).UI_ACTION;
|
||||
object2.op = '' + UI_ACTION + '.' + env0_1;
|
||||
const value3 = Reflect.apply(startUserInteractionSpan, moduleValue, [object2]);
|
||||
if (value3) {
|
||||
value3.setAttribute((require(826) /* metro dependency 826 */).SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,
|
||||
(require(1166) /* metro dependency 1166 */).SPAN_ORIGIN_AUTO_INTERACTION);
|
||||
}
|
||||
addGestureBreadcrumb('Gesture ' + env0_0 + ' begin.', {event: a0, name: env0_1});
|
||||
if (onBegin) {
|
||||
onBegin(a0);
|
||||
}
|
||||
}
|
||||
|
||||
function sentryTraceGestureOnEnd(a0) { // fn#13326, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1328:1672, owner: sentryTraceGesture.onEnd, offset: 0x00de8036, size: 89 bytes, params: 2, frame: 16
|
||||
addGestureBreadcrumb('Gesture ' + env0_0 + ' end.', {event: a0, name: env0_1});
|
||||
if (onEnd) {
|
||||
onEnd(a0);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user