"use strict";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
function getStartOfWeek(date, firstDayOfWeek = 1) {
  const value = new Date(date);
  while (value.getDay() !== firstDayOfWeek) {
    value.setDate(value.getDate() - 1);
  }
  return value;
}
exports.getStartOfWeek = getStartOfWeek;
