!function(e){var n={nodiff:"",year:"year",years:"years",month:"month",months:"months",day:"day",days:"days",hour:"hour",hours:"hours",minute:"minute",minutes:"minutes",second:"second",seconds:"seconds",delimiter:" "};e.fn.preciseDiff=function(n){return e.preciseDiff(this,n)},e.preciseDiff=function(r,t){function s(e,r){return e+" "+n[r+(1===e?"":"s")]}var o=e(r),i=e(t);if(o.isSame(i))return n.nodiff;if(o.isAfter(i)){var u=o;o=i,i=u}var a=i.year()-o.year(),h=i.month()-o.month(),d=i.date()-o.date(),m=i.hour()-o.hour(),f=i.minute()-o.minute(),c=i.second()-o.second();if(0>c&&(c=60+c,f--),0>f&&(f=60+f,m--),0>m&&(m=24+m,d--),0>d){var y=e(i.year()+"-"+(i.month()+1),"YYYY-MM").subtract(1,"M").daysInMonth();d=y<o.date()?y+d+(o.date()-y):y+d,h--}0>h&&(h=12+h,a--);var p=[];return a&&p.push(s(a,"year")),h&&p.push(s(h,"month")),d&&p.push(s(d,"day")),m&&p.push(s(m,"hour")),f&&p.push(s(f,"minute")),c&&p.push(s(c,"second")),p.join(n.delimiter)}}(moment);