//#region src/utils/date.ts
var e = [
	"Su",
	"Mo",
	"Tu",
	"We",
	"Th",
	"Fr",
	"Sa"
], t = [
	"Mo",
	"Tu",
	"We",
	"Th",
	"Fr",
	"Sa",
	"Su"
], n = [
	"January",
	"February",
	"March",
	"April",
	"May",
	"June",
	"July",
	"August",
	"September",
	"October",
	"November",
	"December"
];
function r(e) {
	return new Date(e.getFullYear(), e.getMonth(), e.getDate());
}
function i(e, t) {
	return e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth() && e.getDate() === t.getDate();
}
function a(e, t, n) {
	let i = r(e).getTime(), a = r(t).getTime(), o = r(n).getTime();
	return i > Math.min(a, o) && i < Math.max(a, o);
}
function o(e, t, n) {
	let r = new Date(e, t, 1), i = r.getDay();
	n === 1 && (i = i === 0 ? 6 : i - 1);
	let a = new Date(r);
	a.setDate(a.getDate() - i);
	let o = [];
	for (let e = 0; e < 42; e++) {
		let t = new Date(a);
		t.setDate(t.getDate() + e), o.push(t);
	}
	return o;
}
function s(e, t, n, a) {
	let o = r(e);
	return t != null && o < r(t) || n != null && o > r(n) ? !0 : a === void 0 ? !1 : typeof a == "function" ? a(o) : a.some((e) => i(e, o));
}
//#endregion
export { a, r as c, o as i, e as n, s as o, n as r, i as s, t };

//# sourceMappingURL=date-BJE0WA9Z.js.map