75 lines
4.5 KiB
TypeScript
75 lines
4.5 KiB
TypeScript
/* Metro module 21; source: utils/SnowflakeUtils.tsx; dependencies: [22, 23, 2] */
|
|
function _fun282(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#282, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:26:6, offset: 0x00c3e633, size: 304 bytes, params: 8, frame: 18
|
|
var object2;
|
|
let Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
object2 = {age: age, extractTimestamp: extractTimestamp, compare: compare,
|
|
atPreviousMillisecond: atPreviousMillisecond, atNextMillisecond: atNextMillisecond,
|
|
fromTimestamp: fromTimestamp, fromTimestampWithSequence: fromTimestampWithSequence, keys: function(a0) {
|
|
var Object = global.Object;
|
|
return Object.keys(a0);
|
|
}, forEach: forEach, forEachKey: function(a0, a1) {
|
|
var propertyName;
|
|
for (propertyName in a0) {
|
|
a1(propertyName);
|
|
}
|
|
}, entries: function(a0) {
|
|
var Object = global.Object;
|
|
return Object.entries(a0);
|
|
}, isProbablyAValidSnowflake: isProbablyAValidSnowflake, castChannelIdAsMessageId: function(a0) {
|
|
return a0;
|
|
}, castMessageIdAsChannelId: function(a0) {
|
|
return a0;
|
|
}, castGuildIdAsEveryoneGuildRoleId: function(a0) {
|
|
return a0;
|
|
}, cast: function(a0) {
|
|
return a0;
|
|
}};
|
|
(require(2) /* metro dependency 2 */).fileFinishedImporting('utils/SnowflakeUtils.tsx');
|
|
exports.default = object2;
|
|
const DISCORD_EPOCH = (require(23) /* metro dependency 23: SnowflakeUtils */).DISCORD_EPOCH;
|
|
exports.DISCORD_EPOCH = DISCORD_EPOCH;
|
|
const SnowflakeSequence = (require(23) /* metro dependency 23: SnowflakeUtils */).SnowflakeSequence;
|
|
exports.SnowflakeSequence = SnowflakeSequence;
|
|
}
|
|
|
|
function age(a0) { // fn#284, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:26:129, offset: 0x00c3e763, size: 41 bytes, params: 2, frame: 11
|
|
return (importAll(23) /* metro dependency 23: SnowflakeUtils */).age(a0);
|
|
}
|
|
|
|
function extractTimestamp(a0) { // fn#285, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:26:185, offset: 0x00c3e78c, size: 41 bytes, params: 2, frame: 11
|
|
return (importAll(23) /* metro dependency 23: SnowflakeUtils */).extractTimestamp(a0);
|
|
}
|
|
|
|
function compare(a0, a1) { // fn#286, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:26:258, offset: 0x00c3e7b5, size: 45 bytes, params: 3, frame: 13
|
|
return (importAll(23) /* metro dependency 23: SnowflakeUtils */).compare(a0, a1);
|
|
}
|
|
|
|
function atPreviousMillisecond(a0) { // fn#287, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:26:331, offset: 0x00c3e7e2, size: 41 bytes, params: 2, frame: 11
|
|
return (importAll(23) /* metro dependency 23: SnowflakeUtils */).atPreviousMillisecond(a0);
|
|
}
|
|
|
|
function atNextMillisecond(a0) { // fn#288, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:26:424, offset: 0x00c3e80b, size: 41 bytes, params: 2, frame: 11
|
|
return (importAll(23) /* metro dependency 23: SnowflakeUtils */).atNextMillisecond(a0);
|
|
}
|
|
|
|
function fromTimestamp(a0) { // fn#289, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:26:505, offset: 0x00c3e834, size: 41 bytes, params: 2, frame: 11
|
|
return (importAll(23) /* metro dependency 23: SnowflakeUtils */).fromTimestamp(a0);
|
|
}
|
|
|
|
function fromTimestampWithSequence(a0, a1) { // fn#290, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:26:590, offset: 0x00c3e85d, size: 45 bytes, params: 3, frame: 13
|
|
return (importAll(23) /* metro dependency 23: SnowflakeUtils */).fromTimestampWithSequence(a0, a1);
|
|
}
|
|
|
|
function forEach(a0, a1) { // fn#292, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:26:730, offset: 0x00c3e8a1, size: 54 bytes, params: 3, frame: 14
|
|
const env0_0 = a1;
|
|
(importDefault(22) /* metro dependency 22 */).forEach(a0, function(a0, a1) {
|
|
return require(a0, a1);
|
|
});
|
|
}
|
|
|
|
function isProbablyAValidSnowflake(a0) { // fn#296, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:26:925, offset: 0x00c3e92b, size: 41 bytes, params: 2, frame: 11
|
|
return (importAll(23) /* metro dependency 23: SnowflakeUtils */).isProbablyAValidSnowflake(a0);
|
|
}
|
|
|