import{t,c as e}from"./format-6bc33007.js";function r(r,a){const n=t(r);if(isNaN(a))return e(r,NaN);if(!a)return n;const o=n.getDate(),s=e(r,n.getTime());s.setMonth(n.getMonth()+a+1,0);return o>=s.getDate()?s:(n.setFullYear(s.getFullYear(),s.getMonth(),o),n)}function a(e){return t(e).getDate()}export{r as a,a as g};
//# sourceMappingURL=getDate-b28f462e.js.map