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