1import{a as e}from"./DH_oPWig.js";import{hn as t}from"./BaBhFZm2.js";var n={__name:`TDateFormat`,props:{date:{type:String,required:!0}},setup(n){let{$format_date:r}=e(),i=n;function a(e){let t=new Date(e),n=new Date,a=String(new Date().getFullYear())===r(e,`yyyy`),o=t.getTime()-n.getTime(),s=Math.abs(t.getTime()-n.getTime()),c=o<0,l=Math.round(s/1e3),u=Math.round(l/60),d=Math.round(u/60);return l<60?c?l+`s ago`:`in `+l+`s`:u<60?c?u+`m ago`:`in `+u+`m`:d<12?c?d+`h ago`:`in `+d+`h`:r(i.date,a?`MMM d`:`MMM d, yyyy`)}return(e,n)=>t(a(i.date))}};export{n as t};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.