text: import requiredArgs from '../requiredArgs/index.esm.js';
  import toDate from '../../toDate/index.esm.js';
  
  // See issue: https://github.com/date-fns/date-fns/issues/376
  
  function startOfUTCISOWeek(dirtyDate) {
    requiredArgs(1, arguments);
    var weekStartsOn = 1;
    var date = toDate(dirtyDate);
    var day = date.getUTCDay();
    var diff = (day < weekStartsOn ? 7 : 0) + day - weekStartsOn;
    date.setUTCDate(date.getUTCDate() - diff);
    date.setUTCHours(0, 0, 0, 0);
    return date;
  }
  
  export default startOfUTCISOWeek;
  //# sourceMappingURL=index.esm.js.map
  