Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4821.js (118.4 MB)
130 lines
3.2 KiB
JavaScript
130 lines
3.2 KiB
JavaScript
// Module ID: 3872
|
|
// Function ID: 3873
|
|
// Dependencies: [3873, 3874, 3725, 3726, 3729]
|
|
// Exports: default
|
|
|
|
// Module 3872
|
|
import module_3873_mod from "module_3873" /* 3873 */;
|
|
import module_3874_mod from "module_3874" /* 3874 */;
|
|
import _typeof_mod from "module_3725" /* 3725 */;
|
|
import requiredArgs_mod from "requiredArgs" /* 3726 */;
|
|
import module_3729_mod from "module_3729" /* 3729 */;
|
|
|
|
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 module_3873 = module_3873_mod;
|
|
if (!module_3873) {
|
|
const obj = { default: module_3873 };
|
|
let tmp3 = obj;
|
|
} else {
|
|
tmp3 = module_3873;
|
|
}
|
|
module_3873 = tmp3;
|
|
let module_3874 = module_3874_mod;
|
|
if (!module_3874) {
|
|
const obj2 = { default: module_3874 };
|
|
let tmp5 = obj2;
|
|
} else {
|
|
tmp5 = module_3874;
|
|
}
|
|
module_3874 = tmp5;
|
|
let _typeof = _typeof_mod;
|
|
if (!_typeof) {
|
|
const obj3 = { default: _typeof };
|
|
let tmp7 = obj3;
|
|
} else {
|
|
tmp7 = _typeof;
|
|
}
|
|
_typeof = tmp7;
|
|
let requiredArgs = requiredArgs_mod;
|
|
if (!requiredArgs) {
|
|
const obj4 = { default: requiredArgs };
|
|
let tmp9 = obj4;
|
|
} else {
|
|
tmp9 = requiredArgs;
|
|
}
|
|
requiredArgs = tmp9;
|
|
let module_3729 = module_3729_mod;
|
|
if (!module_3729) {
|
|
const obj5 = { default: module_3729 };
|
|
let tmp11 = obj5;
|
|
} else {
|
|
tmp11 = module_3729;
|
|
}
|
|
module_3729 = tmp11;
|
|
|
|
export default function add(arg0, years) {
|
|
requiredArgs.default(2, arguments);
|
|
if (years) {
|
|
if ("object" === _typeof(years)) {
|
|
let num = 0;
|
|
if (years.years) {
|
|
num = module_3729.default(years.years);
|
|
}
|
|
let num2 = 0;
|
|
if (years.months) {
|
|
num2 = module_3729.default(years.months);
|
|
}
|
|
let num3 = 0;
|
|
if (years.weeks) {
|
|
num3 = module_3729.default(years.weeks);
|
|
}
|
|
let num4 = 0;
|
|
if (years.days) {
|
|
num4 = module_3729.default(years.days);
|
|
}
|
|
let num5 = 0;
|
|
if (years.hours) {
|
|
num5 = module_3729.default(years.hours);
|
|
}
|
|
let num6 = 0;
|
|
if (years.minutes) {
|
|
num6 = module_3729.default(years.minutes);
|
|
}
|
|
let num7 = 0;
|
|
if (years.seconds) {
|
|
num7 = module_3729.default(years.seconds);
|
|
}
|
|
const defaultResult1 = _typeof.default(arg0);
|
|
if (num2) {
|
|
let defaultResult2 = module_3874.default(defaultResult1, num2 + 12 * num);
|
|
} else {
|
|
defaultResult2 = defaultResult1;
|
|
}
|
|
if (num4) {
|
|
let defaultResult3 = module_3873.default(defaultResult2, num4 + 7 * num3);
|
|
} else {
|
|
defaultResult3 = defaultResult2;
|
|
}
|
|
const _Date = Date;
|
|
const sum = num7 + 60 * (num6 + 60 * num5);
|
|
const date = new Date(defaultResult3.getTime() + 1000 * sum);
|
|
return date;
|
|
}
|
|
}
|
|
return new Date(NaN);
|
|
};
|
|
export default exports.default;
|