// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPL-3.0-or-later // @source: https://gitlab.com/soapbox-pub/ditto/-/tree/f0a3877c function e(e){let t=Math.floor(Date.now()/1e3)-e;return t<60?`${t}s`:t<3600?`${Math.floor(t/60)}m`:t<86400?`${Math.floor(t/3600)}h`:t<604800?`${Math.floor(t/86400)}d`:t<2592e3?`${Math.floor(t/604800)}w`:new Date(e*1e3).toLocaleDateString(`en-US`,{month:`short`,day:`numeric`})}export{e as t}; // @license-end