61 lines
2.2 KiB
JavaScript
61 lines
2.2 KiB
JavaScript
// Metro module 3415 (f3416).
|
|
import * as _addDays from "./addDays";
|
|
import { __esModule } from "./addDays";
|
|
import * as _addMonths from "./addMonths";
|
|
import * as _toDate from "./toDate";
|
|
import * as _requiredArgs from "./requiredArgs";
|
|
import * as _toInteger from "./toInteger";
|
|
let c1774_0, c1774_1, c1774_2, c1774_3, c1774_4;
|
|
const _typeof2 = function _typeof(a0) {
|
|
_typeof2 = typeof globalThis.Symbol === "function" && typeof Symbol.iterator === "symbol" ? function _typeof(a0) {
|
|
return typeof a0;
|
|
} : function _typeof(a0) {
|
|
return a0 && typeof globalThis.Symbol === "function" && a0.constructor === Symbol ? a0 === Symbol.prototype ? typeof a0 : "symbol" : typeof a0;
|
|
};
|
|
return _typeof2(a0);
|
|
};
|
|
export default function add(a0, a1) {
|
|
(0, c1774_3.default)(2, arguments);
|
|
if (a1 && _typeof2(a1) === "object") {
|
|
const r13 = a1.years ? (0, c1774_4.default)(a1.years) : 0;
|
|
const r6 = a1.months ? (0, c1774_4.default)(a1.months) : 0;
|
|
const r10 = a1.weeks ? (0, c1774_4.default)(a1.weeks) : 0;
|
|
const r7 = a1.days ? (0, c1774_4.default)(a1.days) : 0;
|
|
const r39 = a1.hours ? (0, c1774_4.default)(a1.hours) : 0;
|
|
const r43 = a1.minutes ? (0, c1774_4.default)(a1.minutes) : 0;
|
|
const r47 = a1.seconds ? (0, c1774_4.default)(a1.seconds) : 0;
|
|
const r54 = (0, c1774_2.default)(a0);
|
|
const r55 = r6 ? (0, c1774_1.default)(r54, r6 + 12 * r13) : r13 ? (0, c1774_1.default)(r54, r6 + 12 * r13) : r54;
|
|
const r61 = r7 ? (0, c1774_0.default)(r55, r7 + 7 * r10) : r10 ? (0, c1774_0.default)(r55, r7 + 7 * r10) : r55;
|
|
const r70 = r47 + 60 * (r43 + 60 * r39);
|
|
return new Date(r61.getTime() + 1000 * r70);
|
|
}
|
|
return new Date(NaN);
|
|
};
|
|
c1774_0 = _addDays ? __esModule ? _addDays : {
|
|
default: _addDays
|
|
} : {
|
|
default: _addDays
|
|
};
|
|
c1774_1 = _addMonths ? _addMonths.__esModule ? _addMonths : {
|
|
default: _addMonths
|
|
} : {
|
|
default: _addMonths
|
|
};
|
|
c1774_2 = _toDate ? _toDate.__esModule ? _toDate : {
|
|
default: _toDate
|
|
} : {
|
|
default: _toDate
|
|
};
|
|
c1774_3 = _requiredArgs ? _requiredArgs.__esModule ? _requiredArgs : {
|
|
default: _requiredArgs
|
|
} : {
|
|
default: _requiredArgs
|
|
};
|
|
c1774_4 = _toInteger ? _toInteger.__esModule ? _toInteger : {
|
|
default: _toInteger
|
|
} : {
|
|
default: _toInteger
|
|
};
|
|
module.exports = exports.default;
|