decord/source/__polyfill/03xxx/module_3725.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

78 lines
2.1 KiB
JavaScript

// Module ID: 3725
// Function ID: 3726
// Dependencies: [3726]
// Exports: default
// Module 3725
import requiredArgs_mod from "requiredArgs" /* 3726 */;
function _typeof(arg0) {
if (typeof Symbol === "function") {
let _Symbol = Symbol;
if (typeof Symbol.iterator === "symbol") {
_typeof = function _typeof(arg0) {
return typeof arg0;
};
}
return _typeof(arg0);
}
_typeof = function _typeof(arg0) {
if (arg0) {
const _Symbol = Symbol;
if (typeof Symbol === "function") {
const _Symbol3 = Symbol;
if (arg0.constructor === Symbol) {
const _Symbol2 = Symbol;
let str = "symbol";
}
return str;
}
}
str = typeof arg0;
};
}
let requiredArgs = requiredArgs_mod;
if (!requiredArgs) {
const obj = { default: requiredArgs };
let tmp3 = obj;
} else {
tmp3 = requiredArgs;
}
requiredArgs = tmp3;
export default function toDate(getTime) {
requiredArgs.default(1, arguments);
const call = toString.call;
const tmp2 = typeof call === "unknown" ? toString() : call(getTime);
if (!(getTime instanceof Date)) {
if ("object" === _typeof(getTime)) {
return date;
}
if (typeof getTime !== "number") {
if ("[object Number]" !== tmp2) {
let tmp4 = typeof getTime !== "string";
if (typeof getTime !== "string") {
tmp4 = "[object String]" !== tmp2;
}
if (!tmp4) {
const _console = console;
tmp4 = typeof console === "undefined";
}
if (!tmp4) {
const _console2 = console;
console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments");
const _console3 = console;
const _Error = Error;
const error = new Error();
console.warn(error.stack);
}
const _Date = Date;
date = new Date(NaN);
}
}
const _Date2 = Date;
date = new Date(getTime);
}
date = new Date(getTime.getTime());
};
export default exports.default;