text: angular.module("duScroll",["duScroll.scroller","duScroll.scrollPosition","duScroll.scrollspy","duScroll.requestAnimation","duScroll.smoothScroll"]),angular.module("duScroll.requestAnimation",[]).factory("requestAnimation",["$window","$timeout",function(a,b){return a.requestAnimationFrame||a.webkitRequestAnimationFrame||a.mozRequestAnimationFrame||a.oRequestAnimationFrame||a.msRequestAnimationFrame||function(a){b(a,1e3/60)}}]),angular.module("duScroll.scrollPosition",["duScroll.requestAnimation"]).factory("scrollPosition",["$document","$window","requestAnimation",function(a,b,c){var d=[],e=0,f=0,g=function(){f=e;for(var a=0;a<d.length;a++)d[a](f)},h=function(){return b.scrollY||document.documentElement.scrollTop||document.body.scrollTop},i=function(){return b.scrollX||document.documentElement.scrollLeft||document.body.scrollLeft};return angular.element(a).on("scroll",function(){e=h(),e!==f&&c(g)}),{observe:function(a){d.push(a)},x:i,y:h}}]),angular.module("duScroll.scroller",["duScroll.requestAnimation"]).factory("scroller",["$window","requestAnimation","scrollPosition",function(a,b,c){function d(a){return Math.pow(a,.7)}function e(e,f,g){if(!g)return a.scrollTo(e,f),void 0;var h={y:c.y(),x:c.x()},i={y:Math.round(f-h.y),x:Math.round(e-h.x)};if(i.x||i.y){var j=0,k=Math.ceil(g/60),l=function(){j++;var c=j===k?1:d(j/k);a.scrollTo(h.x+Math.ceil(i.x*c),h.y+Math.ceil(i.y*c)),k>j&&b(l)};l()}}function f(a,b,d){e(c.x()+(a||0),c.y()+(b||0),d)}function g(a,b,c){if(a&&a.getBoundingClientRect){var d=a.getBoundingClientRect();f(0,d.top+(!b||isNaN(b)?0:-b),c)}}return{scrollTo:e,scrollToElement:g,scrollDelta:f}}]),angular.module("duScroll.smoothScroll",["duScroll.scroller"]).directive("duSmoothScroll",["scroller",function(a){return{link:function(b,c,d){var e=angular.element(c[0]);e.on("click",function(b){if(d.href&&-1!==d.href.indexOf("#")){var c=document.getElementById(d.href.replace(/.*(?=#[^\s]+$)/,"").substring(1));if(c&&c.getBoundingClientRect){b.stopPropagation&&b.stopPropagation(),b.preventDefault&&b.preventDefault();var e=-(d.offset?parseInt(d.offset,10):0),f=c.getBoundingClientRect();a.scrollDelta(0,f.top+(isNaN(e)?0:e),1e3)}}})}}}]),angular.module("duScroll.scrollspy",["duScroll.scrollPosition"]).directive("duScrollspy",["scrollPosition",function(a){function b(){for(var a,b,c,f=0;f<e.length;f++)b=e[f],c=b.target.getBoundingClientRect(),c.top+b.offset<20&&-1*c.top<c.height&&(!a||a.top<c.top)&&(a={top:c.top,spy:b});a&&(a=a.spy),d!==a&&(d&&d.$element.removeClass("active"),a&&a.$element.addClass("active"),d=a)}function c(c,d,f){e.length||a.observe(b),e.push({target:c,$element:d,element:angular.element(d[0]),offset:f})}var d,e=[];return{link:function(a,b,d){if(d.href&&-1!==d.href.indexOf("#")){var e=document.getElementById(d.href.replace(/.*(?=#[^\s]+$)/,"").substring(1));e&&c(e,b,-(d.offset?parseInt(d.offset,10):0))}}}}]);
  //# sourceMappingURL=angular-scroll.min.js.map