const e=()=>{let e=new Date;return new Date(e.getFullYear(),e.getMonth()+1,0).getDate()},t=t=>{let n=e();return t>n?n:t},n=e=>{let n=new Date,r=n.getDate(),i=n.getMonth(),a=n.getFullYear(),o=t(e);if(r<=o){let e=i===0?11:i-1,t=i===0?a-1:a;return new Date(t,e,o)}else return new Date(a,i,o)};export{n,e as r,t};
//# sourceMappingURL=billing-utils-eMTiGLzG.mjs.map