const e=(e,t)=>{if(!t)return!1;const a=new Date(e);return((new Date).getTime()-a.getTime())/36e5<24},t=e=>{const t=new Date(e),a=((new Date).getTime()-t.getTime())/36e5,r=Math.max(0,24-a);return 0===r?"":r<1?`${Math.floor(60*r)}m`:`${Math.floor(r)}h`},a=(t,a)=>e(t,a),r=t=>t.sort((t,a)=>{const r=e(t.created_at,t.is_breaking),n=e(a.created_at,a.is_breaking);return r&&!n?-1:!r&&n?1:new Date(a.created_at).getTime()-new Date(t.created_at).getTime()});export{a,t as g,e as i,r as s};
