import { constructFrom as f } from "./constructFrom.js";
import { toDate as m } from "./toDate.js";
function N(a, u, r) {
  const e = m(a, r == null ? void 0 : r.in);
  return isNaN(+e) ? f((r == null ? void 0 : r.in) || a, NaN) : (e.setFullYear(u), e);
}
export {
  N as default,
  N as setYear
};
