"use strict";
exports.__esModule = true;
exports.maxDateDefault = exports.minDateDefault = exports.getStartAndEndDate = exports.dateComparer = exports.leapYear = void 0;
var tslib_1 = require("tslib");
var setYear_1 = (0, tslib_1.__importDefault)(require("date-fns/setYear"));
exports.leapYear = 2020;
var dateComparer = function (a, b) { var _a, _b; return ((_a = a === null || a === void 0 ? void 0 : a.getTime()) !== null && _a !== void 0 ? _a : 0) - ((_b = b === null || b === void 0 ? void 0 : b.getTime()) !== null && _b !== void 0 ? _b : 0); };
exports.dateComparer = dateComparer;
var getStartAndEndDate = function (date1, date2) {
    return [date1, date2].sort(exports.dateComparer);
};
exports.getStartAndEndDate = getStartAndEndDate;
exports.minDateDefault = (0, setYear_1["default"])(new Date(1970, 0, 1, 0, 0, 0, 0), 1);
exports.maxDateDefault = new Date(9999, 11, 31, 23, 59, 59);
(0, tslib_1.__exportStar)(require("./isInMinMaxDade"), exports);
(0, tslib_1.__exportStar)(require("./isDateRange"), exports);
(0, tslib_1.__exportStar)(require("./isOnlyOneDateInRange"), exports);
(0, tslib_1.__exportStar)(require("./getCentury"), exports);
(0, tslib_1.__exportStar)(require("./startOfCentury"), exports);
(0, tslib_1.__exportStar)(require("./endOfCentury"), exports);
(0, tslib_1.__exportStar)(require("./isEqualDate"), exports);
