import { subDays as d } from "./subDays.js";
import { subMonths as h } from "./subMonths.js";
import { constructFrom as p } from "./constructFrom.js";
function W(t, o) {
  const {
    years: s = 0,
    months: n = 0,
    weeks: e = 0,
    days: u = 0,
    hours: c = 0,
    minutes: r = 0,
    seconds: m = 0
  } = o, a = h(t, n + s * 12), i = d(a, u + e * 7), b = r + c * 60, f = (m + b * 60) * 1e3;
  return p(t, i.getTime() - f);
}
export {
  W as default,
  W as sub
};
