decord/source/__polyfill/03xxx/module_3796.js
github-actions da5b5e5efe chore: update source for alpha 346.6
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4821.js (118.4 MB)
2026-09-12 13:45:10 +00:00

40 lines
2.1 KiB
JavaScript

// Module ID: 3796
// Function ID: 3797
// Dependencies: []
// Exports: default
// Module 3796
let closure_0 = { lessThanXSeconds: { one: "1\u79D2\u672A\u6E80", other: "{{count}}\u79D2\u672A\u6E80", oneWithSuffix: "\u7D041\u79D2", otherWithSuffix: "\u7D04{{count}}\u79D2" }, xSeconds: { one: "1\u79D2", other: "{{count}}\u79D2" }, halfAMinute: "30\u79D2", lessThanXMinutes: { one: "1\u5206\u672A\u6E80", other: "{{count}}\u5206\u672A\u6E80", oneWithSuffix: "\u7D041\u5206", otherWithSuffix: "\u7D04{{count}}\u5206" }, xMinutes: { one: "1\u5206", other: "{{count}}\u5206" }, aboutXHours: { one: "\u7D041\u6642\u9593", other: "\u7D04{{count}}\u6642\u9593" }, xHours: { one: "1\u6642\u9593", other: "{{count}}\u6642\u9593" }, xDays: { one: "1\u65E5", other: "{{count}}\u65E5" }, aboutXWeeks: { one: "\u7D041\u9031\u9593", other: "\u7D04{{count}}\u9031\u9593" }, xWeeks: { one: "1\u9031\u9593", other: "{{count}}\u9031\u9593" }, aboutXMonths: { one: "\u7D041\u304B\u6708", other: "\u7D04{{count}}\u304B\u6708" }, xMonths: { one: "1\u304B\u6708", other: "{{count}}\u304B\u6708" }, aboutXYears: { one: "\u7D041\u5E74", other: "\u7D04{{count}}\u5E74" }, xYears: { one: "1\u5E74", other: "{{count}}\u5E74" }, overXYears: { one: "1\u5E74\u4EE5\u4E0A", other: "{{count}}\u5E74\u4EE5\u4E0A" }, almostXYears: { one: "1\u5E74\u8FD1\u304F", other: "{{count}}\u5E74\u8FD1\u304F" } };
export default function formatDistance(arg0, arg1, arg2) {
let obj = arg2;
if (!arg2) {
obj = {};
}
if (typeof closure_0[arg0] === "string") {
if (!obj.addSuffix) {
return tmp2;
} else {
if (!obj.comparison) {
let text = `${tmp}前`;
}
text = `${tmp}後`;
}
} else {
if (1 !== arg1) {
if (obj.addSuffix) {
if (tmp.otherWithSuffix) {
const _String2 = String;
let replaced = tmp.otherWithSuffix.replace("{{count}}", String(arg1));
}
}
const _String = String;
replaced = tmp.other.replace("{{count}}", String(arg1));
}
if (!obj.addSuffix) {
const one = tmp.one;
}
const oneWithSuffix = tmp.oneWithSuffix;
}
};
export default exports.default;