Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4823.js (118.4 MB)
110 lines
2.9 KiB
JavaScript
110 lines
2.9 KiB
JavaScript
// Module ID: 4138
|
|
// Function ID: 4139
|
|
// Dependencies: [3726, 4139, 3730, 3727]
|
|
// Exports: default
|
|
|
|
// Module 4138
|
|
import _typeof_mod from "module_3726" /* 3726 */;
|
|
import module_4139_mod from "module_4139" /* 4139 */;
|
|
import module_3730_mod from "module_3730" /* 3730 */;
|
|
import requiredArgs_mod from "requiredArgs" /* 3727 */;
|
|
|
|
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 _typeof = _typeof_mod;
|
|
if (!_typeof) {
|
|
const obj = { default: _typeof };
|
|
let tmp3 = obj;
|
|
} else {
|
|
tmp3 = _typeof;
|
|
}
|
|
_typeof = tmp3;
|
|
let module_4139 = module_4139_mod;
|
|
if (!module_4139) {
|
|
const obj2 = { default: module_4139 };
|
|
let tmp5 = obj2;
|
|
} else {
|
|
tmp5 = module_4139;
|
|
}
|
|
module_4139 = tmp5;
|
|
let module_3730 = module_3730_mod;
|
|
if (!module_3730) {
|
|
const obj3 = { default: module_3730 };
|
|
let tmp7 = obj3;
|
|
} else {
|
|
tmp7 = module_3730;
|
|
}
|
|
module_3730 = tmp7;
|
|
let requiredArgs = requiredArgs_mod;
|
|
if (!requiredArgs) {
|
|
const obj4 = { default: requiredArgs };
|
|
let tmp9 = obj4;
|
|
} else {
|
|
tmp9 = requiredArgs;
|
|
}
|
|
requiredArgs = tmp9;
|
|
|
|
export default function set(arg0, year) {
|
|
requiredArgs.default(2, arguments);
|
|
if ("object" === _typeof(year)) {
|
|
if (null !== year) {
|
|
const defaultResult1 = _typeof.default(arg0);
|
|
const _isNaN = isNaN;
|
|
if (isNaN(defaultResult1.getTime())) {
|
|
const _Date = Date;
|
|
const date = new Date(NaN);
|
|
return date;
|
|
} else {
|
|
if (null != year.year) {
|
|
defaultResult1.setFullYear(year.year);
|
|
}
|
|
let defaultResult2 = defaultResult1;
|
|
if (null != year.month) {
|
|
defaultResult2 = module_4139.default(defaultResult1, year.month);
|
|
}
|
|
if (null != year.date) {
|
|
defaultResult2.setDate(module_3730.default(year.date));
|
|
}
|
|
if (null != year.hours) {
|
|
defaultResult2.setHours(module_3730.default(year.hours));
|
|
}
|
|
if (null != year.minutes) {
|
|
defaultResult2.setMinutes(module_3730.default(year.minutes));
|
|
}
|
|
if (null != year.seconds) {
|
|
defaultResult2.setSeconds(module_3730.default(year.seconds));
|
|
}
|
|
if (null != year.milliseconds) {
|
|
defaultResult2.setMilliseconds(module_3730.default(year.milliseconds));
|
|
}
|
|
return defaultResult2;
|
|
}
|
|
}
|
|
}
|
|
const rangeError = new RangeError("values parameter must be an object");
|
|
throw rangeError;
|
|
};
|
|
export default exports.default;
|