angular.module("c8y.ui").filter("relativeDate",function(){return function(t){var r,e=t;return e=(r=t?moment(t):r)&&r.isValid()?r.fromNow():e}}).filter("relativeDateShort",function(){return function(t){var r,e,n=t;return t&&(r=moment(t).locale("en"),e=moment(t)),n=r&&r.isValid()?((t=r.fromNow()).match(/day/)?5<parseInt(t,10):t.match(/day|month|year/))?e.format("dddd, D MMMM YYYY, HH:mm:ss"):e.fromNow():n}});