import{aF as c,r as l,b as D,c as m,j as o,a6 as v}from"./index-vDL8KyrI.js";var s=[60,60,24,7,365/7/12,12];function g(e){return e instanceof Date?e:!isNaN(e)||/^\d+$/.test(e)?new Date(parseInt(e)):(e=(e||"").trim().replace(/\.\d+/,"").replace(/-/,"/").replace(/-/,"/").replace(/(\d)T(\d)/,"$1 $2").replace(/Z/," UTC").replace(/([+-]\d\d):?(\d\d)/," $1$2"),new Date(e))}function p(e,t){var n=e<0?1:0;e=Math.abs(e);for(var r=e,a=0;e>=s[a]&&a<s.length;a++)e/=s[a];return e=Math.floor(e),a*=2,e>(a===0?9:1)&&(a+=1),t(e,a,r)[n].replace("%s",e.toString())}function u(e,t){var n=new Date;return(+n-+g(e))/1e3}var x=function(e,t,n){var r=u(e);return p(r,c(t))};const h=l.memo(({lastSeen:e,config:t})=>{const{i18n:n}=D(),r=m(e,t);return r?o.jsx("span",{title:v(r),children:x(r,n.language)}):o.jsx(o.Fragment,{children:"N/A"})});export{h as L};
