import{Va as u,zg as e}from"./chunk-QIQJDAPQ.js";import{i as l}from"./chunk-3HGMGVFC.js";var v=(()=>{let t=class t{transform(o){let n=new Date(o),a=Math.trunc((Date.now()-n.getTime())/1e3),r=Math.trunc(a/31536e3);return r>=1?e("{interval, plural, =1 {1\u5E74\u524D} other {{interval}\u5E74\u524D}}",{interval:r}):r<=-1?e("{interval, plural, =1 {in 1 year} other {in {interval} years}}",{interval:-r}):(r=Math.trunc(a/2419200),r>=12?"1\u5E74\u524D":r<=-12?"in 1 year":r>=1?e("{interval, plural, =1 {1\u30F6\u6708\u524D} other {{interval}\u30F6\u6708\u524D}}",{interval:r}):r<=-1?e("{interval, plural, =1 {in 1 month} other {in {interval} months}}",{interval:-r}):(r=Math.trunc(a/604800),r>=4?"1\u30F6\u6708\u524D":r<=-4?"1 month from now":r>=1?e("{interval, plural, =1 {1\u9031\u9593\u524D} other {{interval}\u9031\u9593\u524D}}",{interval:r}):r<=-1?e("{interval, plural, =1 {in 1 week} other {in {interval} weeks}}",{interval:-r}):(r=Math.trunc(a/86400),r>=1?e("{interval, plural, =1 {1\u65E5\u524D} other {{interval}\u65E5\u524D}}",{interval:r}):r<=-1?e("{interval, plural, =1 {in 1 day} other {in {interval} days}}",{interval:-r}):(r=Math.trunc(a/3600),r>=1?e("{interval, plural, =1 {1\u6642\u9593\u524D} other {{interval}\u6642\u9593\u524D}}",{interval:r}):r<=-1?e("{interval, plural, =1 {in 1 hour} other {in {interval} hours}}",{interval:-r}):(r=Math.trunc(a/60),r>=1?""+r+"\u5206\u524D ":r<=-1?"in "+-r+" min":"\u3061\u3087\u3046\u3069\u4ECA")))));}};l(t,"\u0275fac",function(n){return new(n||t)();}),l(t,"\u0275pipe",u({name:"myFromNow",type:t,pure:!0}));let i=t;return i;})();export{v as a};/**i18n:d946b30bd8b2b104e368c275b91cb34bb911fa22291c946a5e8c8a6facd9306d*///# sourceMappingURL=chunk-YIR4YKUV.js.map