const o=60,n=o=>o?Math.max(0,Math.ceil((o-Date.now())/1e3)):0,t=o=>{var n,l;const a=((null==o?void 0:o.additional_errors)||[]).find((o=>"verification_code.email.blocked_duplicate"===(null==o?void 0:o.code))),t=parseInt(null===(l=null===(n=null==a?void 0:a.data)||void 0===n?void 0:n.options)||void 0===l?void 0:l.seconds,10);return t>0?t:null},l=n=>{const l=null==n?o:Math.max(0,n);return Date.now()+1e3*l};export{o as R,t as g,l as r,n as s};