{"version":3,"file":"angular-scroll.min.js","sources":["angular-scroll.min.js"],"names":["duScrollDefaultEasing","x","Math","pow","angular","module","value","run","$window","requestAnimation","duScrollEasing","proto","element","prototype","this","$get","unwrap","el","HTMLElement","HTMLDocument","scrollTo","left","top","duration","isElement","scrollToElement","scrollToAnimated","apply","arguments","scrollLeft","scrollTop","easing","startLeft","startTop","deltaLeft","round","deltaTop","frame","frames","ceil","animate","percent","bind","target","offset","getBoundingClientRect","isNumber","scrollX","document","documentElement","body","scrollY","factory","$timeout","requestAnimationFrame","webkitRequestAnimationFrame","mozRequestAnimationFrame","oRequestAnimationFrame","msRequestAnimationFrame","callback","$rootScope","scrollContainerAPI","createScrollHandler","context","container","containerEl","containerOffset","i","currentlyActive","toBeActive","spies","spy","pos","undefined","length","getTargetPosition","height","$element","removeClass","$broadcast","addClass","contexts","createContext","$scope","id","$id","handler","$on","destroyContext","off","defaultContextId","getContextForScope","scope","$parent","getContextForSpy","addSpy","push","getContainer","on","triggerHandler","removeSpy","indexOf","splice","$document","containers","setContainer","getContainerId","removeContainer","directive","duScrollDuration","link","$attr","e","href","getElementById","replace","substring","stopPropagation","preventDefault","parseInt","isNaN","spyAPI","restrict","compile","pre","iElement","iAttrs","$observe","isString","Spy","targetElementOrId","targetId","getTargetElement","flushTargetCache","ngHref","duScrollspy"],"mappings":"AAAA,GAAIA,uBAAwB,SAAUC,GACpC,MAAQ,GAAJA,EACKC,KAAKC,IAAQ,EAAJF,EAAO,GAAK,EAEvB,EAAIC,KAAKC,IAAc,GAAT,EAAIF,GAAQ,GAAK,EAExCG,SAAQC,OAAO,YACb,qBACA,4BACA,wBACA,2BACA,2BACCC,MAAM,mBAAoB,KAAMA,MAAM,iBAAkBN,uBAC3DI,QAAQC,OAAO,6BAA8BE,KAC3C,UACA,mBACA,iBACA,SAAUC,EAASC,EAAkBC,GACnC,GAAIC,GAAQP,QAAQQ,QAAQC,SAC5BC,MAAKC,KAAO,WACV,MAAOJ,GAET,IAAIK,GAAS,S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