New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

angular-smooth-scrollbar

Package Overview
Dependencies
Maintainers
1
Versions
64
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

angular-smooth-scrollbar - npm Package Compare versions

Comparing version 1.0.2 to 2.0.0

11

bower.json
{
"name": "angular-smooth-scrollbar",
"version": "1.0.2",
"version": "2.0.0",
"authors": [

@@ -8,6 +8,3 @@ "Dolphin Wood <dolphin.w.e@gmail.com>"

"description": "An angular module that allows you customize smooth scrollbars",
"main": [
"dist/angular-smooth-scrollbar.js",
"dist/angular-smooth-scrollbar.css"
],
"main": "dist/angular-smooth-scrollbar.js",
"moduleType": [

@@ -34,7 +31,5 @@ "es6"

"dependencies": {
"angular": "~1.4.3"
},
"devDependencies": {
"angular": "~1.4.3",
"smooth-scrollbar": "~1.0.0"
}
}

@@ -1,2 +0,178 @@

!function(t){function e(n){if(r[n])return r[n].exports;var o=r[n]={exports:{},id:n,loaded:!1};return t[n].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}var r={};return e.m=t,e.c=r,e.p="",e(0)}([function(t,e,r){"use strict";var n=r(1)["default"],o=r(5)["default"],i=r(6)["default"],a=r(7),u=i(a);angular.module("SmoothScrollbar",[]).service("ScrollbarService",function(){function t(e){o(this,t),this.scrollbarInstances={},this.deferreds={},this.$q=e}return n(t,null,[{key:"$inject",value:["$q"],enumerable:!0}]),n(t,[{key:"getInstance",value:function(t){var e=this.scrollbarInstances,r=this.deferreds,n=this.$q;if(e.hasOwnProperty(t))return(n.resolve||n.when)(e[t]);var o=r[t]=r[t]||n.defer();return o.promise}},{key:"createInstance",value:function(t,e,r){var n=this.scrollbarInstances,o=this.deferreds;if(n.hasOwnProperty(t))return n[t];var i=n[t]=new u["default"](e,r);return o.hasOwnProperty(t)&&o[t].resolve(i),i}},{key:"destroyInstance",value:function(t){var e=this.scrollbarInstances,r=this.deferreds,n=e[t];n&&(n.destroy(),delete e[t],delete r[t])}}]),t}()).directive("scrollbar",["ScrollbarService",function(t){return{restrict:"AE",transclude:!0,template:'\n <article class="scroll-content" ng-transclude></article>\n <aside class="scrollbar-track scrollbar-track-x">\n <div class="scrollbar-thumb scrollbar-thumb-x"></div>\n </aside>\n <aside class="scrollbar-track scrollbar-track-y">\n <div class="scrollbar-thumb scrollbar-thumb-y"></div>\n </aside>\n ',scope:{speed:"@",stepLength:"@",easingDuration:"@",easingCurve:"@"},link:function(e,r,n){var o=e.speed,i=e.stepLength,a=e.easingDuration,u=e.easingCurve,s=n.scrollbar||n.name||Date.now().toString(32),c=t.createInstance(s,r[0],{speed:o,stepLength:i,easingDuration:a,easingCurve:u}),l={update:c.update,scrollTo:c.scrollTo,addListener:c.addListener,infiniteScroll:c.infiniteScroll},f=function(t){return"function"==typeof t?function(){t.apply(void 0,arguments),e.$apply()}:void 0};c.update=function(t){l.update.call(c,f(t))},c.scrollTo=function(t,e,r,n){l.scrollTo.call(c,t,e,r,f(n))},c.addListener=function(t){"function"==typeof t&&l.addListener.call(c,f(t))},c.infiniteScroll=function(t,e){"function"==typeof t&&l.infiniteScroll.call(c,f(t))},e.$on("$destroy",function(){t.destroyInstance(s)})}}}])},function(t,e,r){"use strict";var n=r(2)["default"];e["default"]=function(){function t(t,e){for(var r=0;r<e.length;r++){var o=e[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),n(t,o.key,o)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),e.__esModule=!0},function(t,e,r){t.exports={"default":r(3),__esModule:!0}},function(t,e,r){var n=r(4);t.exports=function(t,e,r){return n.setDesc(t,e,r)}},function(t,e){var r=Object;t.exports={create:r.create,getProto:r.getPrototypeOf,isEnum:{}.propertyIsEnumerable,getDesc:r.getOwnPropertyDescriptor,setDesc:r.defineProperty,setDescs:r.defineProperties,getKeys:r.keys,getNames:r.getOwnPropertyNames,getSymbols:r.getOwnPropertySymbols,each:[].forEach}},function(t,e){"use strict";e["default"]=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},e.__esModule=!0},function(t,e){"use strict";e["default"]=function(t){return t&&t.__esModule?t:{"default":t}},e.__esModule=!0},function(t,e,r){!function(e,r){t.exports=r()}(this,function(){return function(t){function e(n){if(r[n])return r[n].exports;var o=r[n]={exports:{},id:n,loaded:!1};return t[n].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}var r={};return e.m=t,e.c=r,e.p="",e(0)}([function(t,e,r){"use strict";var n=r(1)["default"];Object.defineProperty(e,"__esModule",{value:!0});var o=r(39),i=r(98);r(100),r(108),r(103),e["default"]=o.SmoothScrollbar,o.SmoothScrollbar.init=function(t,e){if(!t||1!==t.nodeType)throw new TypeError("expect element to be DOM Element, but got "+typeof t);if(i.sbList.has(t))return i.sbList.get(t);t.setAttribute("data-scrollbar","");var r=[].concat(n(t.children));t.innerHTML='\n <article class="scroll-content"></article>\n <aside class="scrollbar-track scrollbar-track-x">\n <div class="scrollbar-thumb scrollbar-thumb-x"></div>\n </aside>\n <aside class="scrollbar-track scrollbar-track-y">\n <div class="scrollbar-thumb scrollbar-thumb-y"></div>\n </aside>\n ';var a=t.querySelector(".scroll-content");return r.forEach(function(t){return a.appendChild(t)}),new o.SmoothScrollbar(t,e)},o.SmoothScrollbar.initAll=function(t){return[].concat(n(document.querySelectorAll(i.selectors))).map(function(e){return o.SmoothScrollbar.init(e,t)})},o.SmoothScrollbar.has=function(t){return i.sbList.has(t)},o.SmoothScrollbar.get=function(t){return i.sbList.get(t)},o.SmoothScrollbar.getAll=function(){return[].concat(n(i.sbList.values()))},o.SmoothScrollbar.destroy=function(t){return o.SmoothScrollbar.has(t)&&o.SmoothScrollbar.get(t).destroy()},o.SmoothScrollbar.destroyAll=function(){i.sbList.forEach(function(t){t.destroy()})},t.exports=e["default"]},function(t,e,r){"use strict";var n=r(2)["default"];e["default"]=function(t){if(Array.isArray(t)){for(var e=0,r=Array(t.length);e<t.length;e++)r[e]=t[e];return r}return n(t)},e.__esModule=!0},function(t,e,r){t.exports={"default":r(3),__esModule:!0}},function(t,e,r){r(4),r(28),t.exports=r(12).Array.from},function(t,e,r){"use strict";var n=r(5)(!0);r(8)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,r=this._i;return r>=e.length?{value:void 0,done:!0}:(t=n(e,r),this._i+=t.length,{value:t,done:!1})})},function(t,e,r){var n=r(6),o=r(7);t.exports=function(t){return function(e,r){var i,a,u=String(o(e)),s=n(r),c=u.length;return 0>s||s>=c?t?"":void 0:(i=u.charCodeAt(s),55296>i||i>56319||s+1===c||(a=u.charCodeAt(s+1))<56320||a>57343?t?u.charAt(s):i:t?u.slice(s,s+2):(i-55296<<10)+(a-56320)+65536)}}},function(t,e){var r=Math.ceil,n=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?n:r)(t)}},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,r){"use strict";var n=r(9),o=r(10),i=r(15),a=r(16),u=r(21),s=r(22),c=r(23),l=r(24),f=r(17).getProto,h=r(25)("iterator"),d=!([].keys&&"next"in[].keys()),v="@@iterator",p="keys",_="values",y=function(){return this};t.exports=function(t,e,r,g,b,m,S){c(r,e,g);var x,w,O=function(t){if(!d&&t in T)return T[t];switch(t){case p:return function(){return new r(this,t)};case _:return function(){return new r(this,t)}}return function(){return new r(this,t)}},P=e+" Iterator",M=b==_,E=!1,T=t.prototype,k=T[h]||T[v]||b&&T[b],j=k||O(b);if(k){var A=f(j.call(new t));l(A,P,!0),!n&&u(T,v)&&a(A,h,y),M&&k.name!==_&&(E=!0,j=function(){return k.call(this)})}if(n&&!S||!d&&!E&&T[h]||a(T,h,j),s[e]=j,s[P]=y,b)if(x={values:M?j:O(_),keys:m?j:O(p),entries:M?O("entries"):j},S)for(w in x)w in T||i(T,w,x[w]);else o(o.P+o.F*(d||E),e,x);return x}},function(t,e){t.exports=!0},function(t,e,r){var n=r(11),o=r(12),i=r(13),a="prototype",u=function(t,e,r){var s,c,l,f=t&u.F,h=t&u.G,d=t&u.S,v=t&u.P,p=t&u.B,_=t&u.W,y=h?o:o[e]||(o[e]={}),g=h?n:d?n[e]:(n[e]||{})[a];h&&(r=e);for(s in r)c=!f&&g&&s in g,c&&s in y||(l=c?g[s]:r[s],y[s]=h&&"function"!=typeof g[s]?r[s]:p&&c?i(l,n):_&&g[s]==l?function(t){var e=function(e){return this instanceof t?new t(e):t(e)};return e[a]=t[a],e}(l):v&&"function"==typeof l?i(Function.call,l):l,v&&((y[a]||(y[a]={}))[s]=l))};u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,t.exports=u},function(t,e){var r=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=r)},function(t,e){var r=t.exports={version:"1.2.6"};"number"==typeof __e&&(__e=r)},function(t,e,r){var n=r(14);t.exports=function(t,e,r){if(n(t),void 0===e)return t;switch(r){case 1:return function(r){return t.call(e,r)};case 2:return function(r,n){return t.call(e,r,n)};case 3:return function(r,n,o){return t.call(e,r,n,o)}}return function(){return t.apply(e,arguments)}}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,r){t.exports=r(16)},function(t,e,r){var n=r(17),o=r(18);t.exports=r(19)?function(t,e,r){return n.setDesc(t,e,o(1,r))}:function(t,e,r){return t[e]=r,t}},function(t,e){var r=Object;t.exports={create:r.create,getProto:r.getPrototypeOf,isEnum:{}.propertyIsEnumerable,getDesc:r.getOwnPropertyDescriptor,setDesc:r.defineProperty,setDescs:r.defineProperties,getKeys:r.keys,getNames:r.getOwnPropertyNames,getSymbols:r.getOwnPropertySymbols,each:[].forEach}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,r){t.exports=!r(20)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e){t.exports=function(t){try{return!!t()}catch(e){return!0}}},function(t,e){var r={}.hasOwnProperty;t.exports=function(t,e){return r.call(t,e)}},function(t,e){t.exports={}},function(t,e,r){"use strict";var n=r(17),o=r(18),i=r(24),a={};r(16)(a,r(25)("iterator"),function(){return this}),t.exports=function(t,e,r){t.prototype=n.create(a,{next:o(1,r)}),i(t,e+" Iterator")}},function(t,e,r){var n=r(17).setDesc,o=r(21),i=r(25)("toStringTag");t.exports=function(t,e,r){t&&!o(t=r?t:t.prototype,i)&&n(t,i,{configurable:!0,value:e})}},function(t,e,r){var n=r(26)("wks"),o=r(27),i=r(11).Symbol;t.exports=function(t){return n[t]||(n[t]=i&&i[t]||(i||o)("Symbol."+t))}},function(t,e,r){var n=r(11),o="__core-js_shared__",i=n[o]||(n[o]={});t.exports=function(t){return i[t]||(i[t]={})}},function(t,e){var r=0,n=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++r+n).toString(36))}},function(t,e,r){"use strict";var n=r(13),o=r(10),i=r(29),a=r(30),u=r(33),s=r(34),c=r(35);o(o.S+o.F*!r(38)(function(t){Array.from(t)}),"Array",{from:function(t){var e,r,o,l,f=i(t),h="function"==typeof this?this:Array,d=arguments,v=d.length,p=v>1?d[1]:void 0,_=void 0!==p,y=0,g=c(f);if(_&&(p=n(p,v>2?d[2]:void 0,2)),void 0==g||h==Array&&u(g))for(e=s(f.length),r=new h(e);e>y;y++)r[y]=_?p(f[y],y):f[y];else for(l=g.call(f),r=new h;!(o=l.next()).done;y++)r[y]=_?a(l,p,[o.value,y],!0):o.value;return r.length=y,r}})},function(t,e,r){var n=r(7);t.exports=function(t){return Object(n(t))}},function(t,e,r){var n=r(31);t.exports=function(t,e,r,o){try{return o?e(n(r)[0],r[1]):e(r)}catch(i){var a=t["return"];throw void 0!==a&&n(a.call(t)),i}}},function(t,e,r){var n=r(32);t.exports=function(t){if(!n(t))throw TypeError(t+" is not an object!");return t}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,r){var n=r(22),o=r(25)("iterator"),i=Array.prototype;t.exports=function(t){return void 0!==t&&(n.Array===t||i[o]===t)}},function(t,e,r){var n=r(6),o=Math.min;t.exports=function(t){return t>0?o(n(t),9007199254740991):0}},function(t,e,r){var n=r(36),o=r(25)("iterator"),i=r(22);t.exports=r(12).getIteratorMethod=function(t){return void 0!=t?t[o]||t["@@iterator"]||i[n(t)]:void 0}},function(t,e,r){var n=r(37),o=r(25)("toStringTag"),i="Arguments"==n(function(){return arguments}());t.exports=function(t){var e,r,a;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=(e=Object(t))[o])?r:i?n(e):"Object"==(a=n(e))&&"function"==typeof e.callee?"Arguments":a}},function(t,e){var r={}.toString;t.exports=function(t){return r.call(t).slice(8,-1)}},function(t,e,r){var n=r(25)("iterator"),o=!1;try{var i=[7][n]();i["return"]=function(){o=!0},Array.from(i,function(){throw 2})}catch(a){}t.exports=function(t,e){if(!e&&!o)return!1;var r=!1;try{var i=[7],a=i[n]();a.next=function(){r=!0},i[n]=function(){return a},t(i)}catch(u){}return r}},function(t,e,r){"use strict";var n=r(40)["default"],o=r(41)["default"],i=r(45)["default"];Object.defineProperty(e,"__esModule",{value:!0});var a=r(47),u=r(84),s=r(85),c=function l(t){var e=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],r=e.speed,c=e.stepLength,f=e.easingDuration,h=e.easingCurve;n(this,l),s.sbList.set(t,this),t.setAttribute("tabindex","1"),t.scrollTop=t.scrollLeft=0,a.setStyle(t,{overflow:"hidden",outline:"none"});var d=a.findChild(t,"scrollbar-track-x"),v=a.findChild(t,"scrollbar-track-y");this.__readonly("targets",o({container:t,content:a.findChild(t,"scroll-content"),xAxis:o({track:d,thumb:a.findChild(d,"scrollbar-thumb-x")}),yAxis:o({track:v,thumb:a.findChild(v,"scrollbar-thumb-y")})})).__readonly("offset",{x:0,y:0}).__readonly("limit",{x:1/0,y:1/0}).__readonly("size",this.getSize()),i(this,{__motionBuilder:{value:a.motionBuilder(h)},__updateThrottle:{value:a.debounce(this.update.bind(this))},__listeners:{value:[]},__handlers:{value:[]},__children:{value:[]},__timerID:{value:{}}}),this.__initScrollbar({speed:parseFloat(r)||u.DEFAULT_OPTIONS.SPEED,stepLength:parseFloat(c)||u.DEFAULT_OPTIONS.STEP_LENGTH,easingDuration:parseFloat(f)||u.DEFAULT_OPTIONS.EASING_DURATION})};e.SmoothScrollbar=c},function(t,e){"use strict";e["default"]=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},e.__esModule=!0},function(t,e,r){t.exports={"default":r(42),__esModule:!0}},function(t,e,r){r(43),t.exports=r(12).Object.freeze},function(t,e,r){var n=r(32);r(44)("freeze",function(t){return function(e){return t&&n(e)?t(e):e}})},function(t,e,r){var n=r(10),o=r(12),i=r(20);t.exports=function(t,e){var r=(o.Object||{})[t]||Object[t],a={};a[t]=e(r),n(n.S+n.F*i(function(){r(1)}),"Object",a)}},function(t,e,r){t.exports={"default":r(46),__esModule:!0}},function(t,e,r){var n=r(17);t.exports=function(t,e){return n.setDescs(t,e)}},function(t,e,r){"use strict";var n=r(48)["default"],o=r(60)["default"];Object.defineProperty(e,"__esModule",{value:!0});var i=r(61);n(e,o(i,n));var a=r(62);n(e,o(a,n));var u=r(66);n(e,o(u,n));var s=r(68);n(e,o(s,n));var c=r(76);n(e,o(c,n));var l=r(78);n(e,o(l,n));var f=r(79);n(e,o(f,n));var h=r(80);n(e,o(h,n));var d=r(77);n(e,o(d,n));var v=r(67);n(e,o(v,n))},function(t,e,r){"use strict";var n=r(49)["default"],o=r(55)["default"],i=r(58)["default"];e["default"]=function(t,e){for(var r=n(e),a=0;a<r.length;a++){var u=r[a],s=o(e,u);s&&s.configurable&&void 0===t[u]&&i(t,u,s)}return t},e.__esModule=!0},function(t,e,r){t.exports={"default":r(50),__esModule:!0}},function(t,e,r){var n=r(17);r(51),t.exports=function(t){return n.getNames(t)}},function(t,e,r){r(44)("getOwnPropertyNames",function(){return r(52).get})},function(t,e,r){var n=r(53),o=r(17).getNames,i={}.toString,a="object"==typeof window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],u=function(t){try{return o(t)}catch(e){return a.slice()}};t.exports.get=function(t){return a&&"[object Window]"==i.call(t)?u(t):o(n(t))}},function(t,e,r){var n=r(54),o=r(7);t.exports=function(t){return n(o(t))}},function(t,e,r){var n=r(37);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==n(t)?t.split(""):Object(t)}},function(t,e,r){t.exports={"default":r(56),__esModule:!0}},function(t,e,r){var n=r(17);r(57),t.exports=function(t,e){return n.getDesc(t,e)}},function(t,e,r){var n=r(53);r(44)("getOwnPropertyDescriptor",function(t){return function(e,r){return t(n(e),r)}})},function(t,e,r){t.exports={"default":r(59),__esModule:!0}},function(t,e,r){var n=r(17);t.exports=function(t,e,r){return n.setDesc(t,e,r)}},function(t,e){"use strict";e["default"]=function(t,e){var r=e({},t);return delete r["default"],r},e.__esModule=!0},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=100,n=function(t){var e=arguments.length<=1||void 0===arguments[1]?r:arguments[1],n=arguments.length<=2||void 0===arguments[2]?!0:arguments[2];if("function"==typeof t){var o=void 0;return function(){for(var r=arguments.length,i=Array(r),a=0;r>a;a++)i[a]=arguments[a];!o&&n&&setTimeout(function(){return t.apply(void 0,i)}),clearTimeout(o),o=setTimeout(function(){o=void 0,t.apply(void 0,i)},e)}}};e.debounce=n},function(t,e,r){"use strict";var n=r(63)["default"];Object.defineProperty(e,"__esModule",{value:!0});var o=function(t,e){n(e).forEach(function(r){var n=r.replace(/^-/,"").replace(/-([a-z])/g,function(t,e){return e.toUpperCase()});t.style[n]=e[r]})};e.setStyle=o},function(t,e,r){t.exports={"default":r(64),__esModule:!0}},function(t,e,r){r(65),t.exports=r(12).Object.keys},function(t,e,r){var n=r(29);r(44)("keys",function(t){return function(e){return t(n(e))}})},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(67),o={STANDARD:40,OTHERS:-120},i={DOM_DELTA_PIXEL:1,DOM_DELTA_LINE:20,DOM_DELTA_PAGE:window.innerHeight},a={0:"DOM_DELTA_PIXEL",1:"DOM_DELTA_LINE",2:"DOM_DELTA_PAGE"},u=function(t){return i[a[t]]||i.DOM_DELTA_PIXEL},s=function(t){if(t=n.getOriginalEvent(t),"deltaX"in t){var e=u(t.deltaMode);return{x:t.deltaX/o.STANDARD*e,y:t.deltaY/o.STANDARD*e}}return"wheelDeltaX"in t?{x:t.wheelDeltaX/o.OTHERS,y:t.wheelDeltaY/o.OTHERS}:{x:0,y:t.wheelDelta/o.OTHERS}};e.getDelta=s},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(t){return t.originalEvent||t};e.getOriginalEvent=r},function(t,e,r){"use strict";var n=r(69)["default"];Object.defineProperty(e,"__esModule",{value:!0});var o=function(t,e){var r=t.children;if(!r)return null;var o=!0,i=!1,a=void 0;try{for(var u,s=n(r);!(o=(u=s.next()).done);o=!0){var c=u.value;if(c.className.match(e))return c}}catch(l){i=!0,a=l}finally{try{!o&&s["return"]&&s["return"]()}finally{if(i)throw a}}return null};e.findChild=o},function(t,e,r){t.exports={"default":r(70),__esModule:!0}},function(t,e,r){r(71),r(4),t.exports=r(75)},function(t,e,r){r(72);var n=r(22);n.NodeList=n.HTMLCollection=n.Array},function(t,e,r){"use strict";var n=r(73),o=r(74),i=r(22),a=r(53);t.exports=r(8)(Array,"Array",function(t,e){this._t=a(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,r=this._i++;return!t||r>=t.length?(this._t=void 0,o(1)):"keys"==e?o(0,r):"values"==e?o(0,t[r]):o(0,[r,t[r]])},"values"),i.Arguments=i.Array,n("keys"),n("values"),n("entries")},function(t,e){t.exports=function(){}},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,r){var n=r(31),o=r(35);t.exports=r(12).getIterator=function(t){var e=o(t);if("function"!=typeof e)throw TypeError(t+" is not iterable!");return n(e.call(t))}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(67),o=r(77),i=function(t){t=n.getOriginalEvent(t);var e=o.getPointerData(t);return e.identifier};e.getTouchID=i},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(67),o=function(t){return t=n.getOriginalEvent(t),t.touches?t.touches[t.touches.length-1]:t};e.getPointerData=o},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(67),o=r(77),i=function(t){t=n.getOriginalEvent(t);var e=o.getPointerData(t);return{x:e.clientX,y:e.clientY}};e.getPosition=i},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(t){var e=arguments.length<=1||void 0===arguments[1]?0:arguments[1],r=arguments.length<=2||void 0===arguments[2]?0:arguments[2];return Math.max(e,Math.min(t,r))};e.pickInRange=r},function(t,e,r){"use strict";var n=r(1)["default"],o=r(81)["default"],i=r(82)["default"];Object.defineProperty(e,"__esModule",{value:!0});var a=r(83),u=i(a),s=r(84),c="function"==typeof Float32Array?Float32Array:Array,l=["ease","linear","ease-in","ease-out","ease-in-out"],f={easeInSine:[.47,0,.745,.715],easeOutSine:[.39,.575,.565,1],easeInOutSine:[.445,.05,.55,.95],easeInQuad:[.55,.085,.68,.53],easeOutQuad:[.25,.46,.45,.94],easeInOutQuad:[.455,.03,.515,.955],easeInCubic:[.55,.055,.675,.19],easeOutCubic:[.215,.61,.355,1],easeInOutCubic:[.645,.045,.355,1],easeInQuart:[.895,.03,.685,.22],easeOutQuart:[.165,.84,.44,1],easeInOutQuart:[.77,0,.175,1],easeInQuint:[.755,.05,.855,.06],easeOutQuint:[.23,1,.32,1],easeInOutQuint:[.86,0,.07,1],easeInExpo:[.95,.05,.795,.035],easeOutExpo:[.19,1,.22,1],easeInOutExpo:[1,0,0,1],easeInCirc:[.6,.04,.98,.335],easeOutCirc:[.075,.82,.165,1],easeInOutCirc:[.785,.135,.15,.86],easeInBack:[.6,-.28,.735,.045],easeOutBack:[.175,.885,.32,1.275],easeInOutBack:[.68,-.55,.265,1.55]},h=function(t){if(t=t||s.DEFAULT_OPTIONS.EASING_CURVE,-1!==l.indexOf(t))return u["default"][t.replace(/\-[a-z]/g,function(t){return t[1].toUpperCase()})];if(f.hasOwnProperty(t))return new(o.apply(u["default"],[null].concat(n(f[t]))));if(/^cubic\-bezier/i.test(t)){var e=t.match(/-?[0-9.]+/g)||defaultCurve;return new(o.apply(u["default"],[null].concat(n(e.map(function(t){return parseFloat(t)})))))}return u["default"].linear},d=function(t){var e=h(t);return function(t,r,n){for(var o=Math.floor(n/1e3*60+1),i=new c(o),a=1;o>=a;a++)i[a-1]=t+r*e.get(a/o);return i}};e.motionBuilder=d},function(t,e){"use strict";e["default"]=Function.prototype.bind,e.__esModule=!0},function(t,e){"use strict";e["default"]=function(t){return t&&t.__esModule?t:{"default":t}},e.__esModule=!0},function(t,e){function r(t,e){return 1-3*e+3*t}function n(t,e){return 3*e-6*t}function o(t){return 3*t}function i(t,e,i){return((r(e,i)*t+n(e,i))*t+o(e))*t}function a(t,e,i){return 3*r(e,i)*t*t+2*n(e,i)*t+o(e)}function u(t,e,r,n,o){var a,u,s=0;do u=e+(r-e)/2,a=i(u,n,o)-t,a>0?r=u:e=u;while(Math.abs(a)>h&&++s<d);return u}function s(t,e,r,n){for(var o=0;l>o;++o){var u=a(e,r,n);if(0===u)return e;var s=i(e,r,n)-t;e-=s/u}return e}function c(t,e,r,n){if(4===arguments.length)return new c([t,e,r,n]);if(!(this instanceof c))return new c(t);if(!t||4!==t.length)throw new Error("BezierEasing: points must contains 4 values");for(var o=0;4>o;++o)if("number"!=typeof t[o]||isNaN(t[o])||!isFinite(t[o]))throw new Error("BezierEasing: points should be integers.");if(t[0]<0||t[0]>1||t[2]<0||t[2]>1)throw new Error("BezierEasing x values must be in [0, 1] range.");this._str="BezierEasing("+t+")",this._css="cubic-bezier("+t+")",this._p=t,this._mSampleValues=_?new Float32Array(v):new Array(v),this._precomputed=!1,this.get=this.get.bind(this)}var l=4,f=.001,h=1e-7,d=10,v=11,p=1/(v-1),_="function"==typeof Float32Array;c.prototype={get:function(t){var e=this._p[0],r=this._p[1],n=this._p[2],o=this._p[3];return this._precomputed||this._precompute(),e===r&&n===o?t:0===t?0:1===t?1:i(this._getTForX(t),r,o)},getPoints:function(){return this._p},toString:function(){return this._str},toCSS:function(){return this._css},_precompute:function(){var t=this._p[0],e=this._p[1],r=this._p[2],n=this._p[3];this._precomputed=!0,(t!==e||r!==n)&&this._calcSampleValues()},_calcSampleValues:function(){for(var t=this._p[0],e=this._p[2],r=0;v>r;++r)this._mSampleValues[r]=i(r*p,t,e)},_getTForX:function(t){for(var e=this._p[0],r=this._p[2],n=this._mSampleValues,o=0,i=1,c=v-1;i!==c&&n[i]<=t;++i)o+=p;--i;var l=(t-n[i])/(n[i+1]-n[i]),h=o+l*p,d=a(h,e,r);return d>=f?s(t,h,e,r):0===d?h:u(t,o,o+p,e,r)}},c.css={ease:c.ease=c(.25,.1,.25,1),linear:c.linear=c(0,0,1,1),"ease-in":c.easeIn=c(.42,0,1,1),"ease-out":c.easeOut=c(0,0,.58,1),"ease-in-out":c.easeInOut=c(.42,0,.58,1)},t.exports=c},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r={SPEED:1,STEP_LENGTH:50,EASING_DURATION:1e3,EASING_CURVE:"cubic-bezier(0.1, 0.57, 0.1, 1)"};e.DEFAULT_OPTIONS=r},function(t,e,r){"use strict";var n=r(86)["default"];Object.defineProperty(e,"__esModule",{value:!0});var o=new n,i=o.set.bind(o);o.update=function(){o.forEach(function(t){requestAnimationFrame(function(){t.__updateChildren()})})},o.set=function(){var t=i.apply(void 0,arguments);return o.update(),t},e.sbList=o},function(t,e,r){t.exports={"default":r(87),__esModule:!0}},function(t,e,r){r(88),r(4),r(71),r(89),r(96),t.exports=r(12).Map},function(t,e){},function(t,e,r){"use strict";var n=r(90);r(95)("Map",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{get:function(t){var e=n.getEntry(this,t);return e&&e.v},set:function(t,e){return n.def(this,0===t?0:t,e)}},n,!0)},function(t,e,r){"use strict";var n=r(17),o=r(16),i=r(91),a=r(13),u=r(92),s=r(7),c=r(93),l=r(8),f=r(74),h=r(27)("id"),d=r(21),v=r(32),p=r(94),_=r(19),y=Object.isExtensible||v,g=_?"_s":"size",b=0,m=function(t,e){if(!v(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!d(t,h)){if(!y(t))return"F";if(!e)return"E";o(t,h,++b)}return"O"+t[h]},S=function(t,e){var r,n=m(e);if("F"!==n)return t._i[n];for(r=t._f;r;r=r.n)if(r.k==e)return r};t.exports={getConstructor:function(t,e,r,o){var l=t(function(t,i){u(t,l,e),t._i=n.create(null),t._f=void 0,t._l=void 0,t[g]=0,void 0!=i&&c(i,r,t[o],t)});return i(l.prototype,{clear:function(){for(var t=this,e=t._i,r=t._f;r;r=r.n)r.r=!0,r.p&&(r.p=r.p.n=void 0),delete e[r.i];t._f=t._l=void 0,t[g]=0},"delete":function(t){var e=this,r=S(e,t);if(r){var n=r.n,o=r.p;delete e._i[r.i],r.r=!0,o&&(o.n=n),n&&(n.p=o),e._f==r&&(e._f=n),e._l==r&&(e._l=o),e[g]--}return!!r},forEach:function(t){for(var e,r=a(t,arguments.length>1?arguments[1]:void 0,3);e=e?e.n:this._f;)for(r(e.v,e.k,this);e&&e.r;)e=e.p},has:function(t){return!!S(this,t)}}),_&&n.setDesc(l.prototype,"size",{get:function(){return s(this[g])}}),l},def:function(t,e,r){var n,o,i=S(t,e);return i?i.v=r:(t._l=i={i:o=m(e,!0),k:e,v:r,p:n=t._l,n:void 0,r:!1},t._f||(t._f=i),n&&(n.n=i),t[g]++,"F"!==o&&(t._i[o]=i)),t},getEntry:S,setStrong:function(t,e,r){l(t,e,function(t,e){this._t=t,this._k=e,this._l=void 0},function(){for(var t=this,e=t._k,r=t._l;r&&r.r;)r=r.p;return t._t&&(t._l=r=r?r.n:t._t._f)?"keys"==e?f(0,r.k):"values"==e?f(0,r.v):f(0,[r.k,r.v]):(t._t=void 0,f(1))},r?"entries":"values",!r,!0),p(e)}}},function(t,e,r){var n=r(15);t.exports=function(t,e){for(var r in e)n(t,r,e[r]);return t}},function(t,e){t.exports=function(t,e,r){if(!(t instanceof e))throw TypeError(r+": use the 'new' operator!");return t}},function(t,e,r){var n=r(13),o=r(30),i=r(33),a=r(31),u=r(34),s=r(35);t.exports=function(t,e,r,c){var l,f,h,d=s(t),v=n(r,c,e?2:1),p=0;if("function"!=typeof d)throw TypeError(t+" is not iterable!");if(i(d))for(l=u(t.length);l>p;p++)e?v(a(f=t[p])[0],f[1]):v(t[p]);else for(h=d.call(t);!(f=h.next()).done;)o(h,v,f.value,e)}},function(t,e,r){"use strict";var n=r(12),o=r(17),i=r(19),a=r(25)("species");t.exports=function(t){var e=n[t];i&&e&&!e[a]&&o.setDesc(e,a,{configurable:!0,get:function(){return this}})}},function(t,e,r){"use strict";var n=r(17),o=r(11),i=r(10),a=r(20),u=r(16),s=r(91),c=r(93),l=r(92),f=r(32),h=r(24),d=r(19);t.exports=function(t,e,r,v,p,_){var y=o[t],g=y,b=p?"set":"add",m=g&&g.prototype,S={};return d&&"function"==typeof g&&(_||m.forEach&&!a(function(){(new g).entries().next()}))?(g=e(function(e,r){l(e,g,t),e._c=new y,void 0!=r&&c(r,p,e[b],e)}),n.each.call("add,clear,delete,forEach,get,has,set,keys,values,entries".split(","),function(t){var e="add"==t||"set"==t;t in m&&(!_||"clear"!=t)&&u(g.prototype,t,function(r,n){if(!e&&_&&!f(r))return"get"==t?void 0:!1;var o=this._c[t](0===r?0:r,n);return e?this:o})}),"size"in m&&n.setDesc(g.prototype,"size",{get:function(){return this._c.size}})):(g=v.getConstructor(e,t,p,b),s(g.prototype,r)),h(g,t),S[t]=g,i(i.G+i.W+i.F,S),_||v.setStrong(g,t,p),g}},function(t,e,r){var n=r(10);n(n.P,"Map",{toJSON:r(97)("Map")})},function(t,e,r){var n=r(93),o=r(36);t.exports=function(t){return function(){if(o(this)!=t)throw TypeError(t+"#toJSON isn't generic");var e=[];return n(this,!1,e.push,e),e}}},function(t,e,r){"use strict";var n=r(48)["default"],o=r(60)["default"];Object.defineProperty(e,"__esModule",{value:!0});var i=r(84);n(e,o(i,n));var a=r(85);n(e,o(a,n));var u=r(99);n(e,o(u,n))},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r="scrollbar, [scrollbar], [data-scrollbar]";e.selectors=r},function(t,e,r){"use strict";var n=r(48)["default"],o=r(60)["default"];Object.defineProperty(e,"__esModule",{value:!0});var i=r(101);n(e,o(i,n));var a=r(127);n(e,o(a,n));var u=r(102);n(e,o(u,n));var s=r(128);n(e,o(s,n));var c=r(110);n(e,o(c,n));var l=r(111);n(e,o(l,n));var f=r(129);n(e,o(f,n));var h=r(130);n(e,o(h,n));var d=r(131);n(e,o(d,n))},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),r(102),r(103);var n=r(47),o=r(39);e.SmoothScrollbar=o.SmoothScrollbar,o.SmoothScrollbar.prototype.update=function(t){var e=this;requestAnimationFrame(function(){var r=e.getSize();e.__readonly("size",r);var o={x:r.content.width-r.container.width,y:r.content.height-r.container.height};if(!e.limit||o.x!==e.limit.x||o.y!==e.limit.y){e.__readonly("limit",o);var i=e.targets,a=i.xAxis,u=i.yAxis;n.setStyle(a.track,{display:r.content.width<=r.container.width?"none":"block"}),n.setStyle(u.track,{display:r.content.height<=r.container.height?"none":"block"}),n.setStyle(a.thumb,{width:100*n.pickInRange(r.container.width/r.content.width,0,1)+"%"}),n.setStyle(u.thumb,{height:100*n.pickInRange(r.container.height/r.content.height,0,1)+"%"}),e.__setThumbPosition(),"function"==typeof t&&t(e)}})}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(39);e.SmoothScrollbar=n.SmoothScrollbar,n.SmoothScrollbar.prototype.getSize=function(){var t=this.targets.container,e=this.targets.content;return{container:{width:t.clientWidth,height:t.clientHeight},content:{width:e.offsetWidth,height:e.offsetHeight}}}},function(t,e,r){"use strict";var n=r(48)["default"],o=r(60)["default"];Object.defineProperty(e,"__esModule",{value:!0});var i=r(104);n(e,o(i,n));var a=r(105);n(e,o(a,n));var u=r(106);n(e,o(u,n));var s=r(107);n(e,o(s,n));var c=r(126);n(e,o(c,n));var l=r(117);n(e,o(l,n))},function(t,e,r){"use strict";function n(t,e,r){var n=this;if(!e||"function"!=typeof e.addEventListener)throw new TypeError("expect elem to be a DOM element, but got "+e);t.split(/\s+/g).forEach(function(t){n.__handlers.push({evt:t,elem:e,handler:r}),e.addEventListener(t,r)})}Object.defineProperty(e,"__esModule",{value:!0});var o=r(39);e.SmoothScrollbar=o.SmoothScrollbar,Object.defineProperty(o.SmoothScrollbar.prototype,"$on",{value:n,writable:!0,configurable:!0})},function(t,e,r){"use strict";function n(t,e){return o(this,t,{enumerable:!0,configurable:!0,get:function(){return e}})}var o=r(58)["default"];Object.defineProperty(e,"__esModule",{value:!0});var i=r(39);e.SmoothScrollbar=i.SmoothScrollbar,Object.defineProperty(i.SmoothScrollbar.prototype,"__readonly",{value:n,writable:!0,configurable:!0})},function(t,e,r){"use strict";function n(){var t=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],e=i.getOriginalEvent(t),r=e.target;return r?this.children.some(function(t){return t.contains(r)}):!1}Object.defineProperty(e,"__esModule",{value:!0});var o=r(39),i=r(47);e.SmoothScrollbar=o.SmoothScrollbar,Object.defineProperty(o.SmoothScrollbar.prototype,"__fromChild",{value:n,writable:!0,configurable:!0})},function(t,e,r){"use strict";function n(t){this.update(),this.__keyboardHandler(t),this.__mouseHandler(t),this.__resizeHandler(t),this.__touchHandler(t),this.__wheelHandler(t)}Object.defineProperty(e,"__esModule",{value:!0}),r(108);var o=r(39);e.SmoothScrollbar=o.SmoothScrollbar,Object.defineProperty(o.SmoothScrollbar.prototype,"__initScrollbar",{value:n,writable:!0,configurable:!0})},function(t,e,r){"use strict";var n=r(48)["default"],o=r(60)["default"];Object.defineProperty(e,"__esModule",{value:!0});var i=r(109);n(e,o(i,n));var a=r(118);n(e,o(a,n));var u=r(119);n(e,o(u,n));var s=r(120);n(e,o(s,n));var c=r(121);n(e,o(c,n))},function(t,e,r){"use strict";var n=r(63)["default"];Object.defineProperty(e,"__esModule",{value:!0}),r(110),r(111);var o=r(39),i=r(47);e.SmoothScrollbar=o.SmoothScrollbar;var a=function(t){var e=this,r=t.easingDuration,o=this.targets.container,a=void 0,u=void 0,s={},c={},l={},f=function(t){var e=i.getOriginalEvent(t).touches;n(e).forEach(function(t){if("length"!==t){var r=e[t];l[r.identifier]=i.getPosition(r)}})};this.$on("touchstart",o,function(t){cancelAnimationFrame(e.scrollAnimation),f(t),u=i.getTouchID(t),c=i.getPosition(t),a=(new Date).getTime(),s.x=s.y=0}),this.$on("touchmove",o,function(t){if(!e.__fromChild(t)){
f(t);var r=i.getTouchID(t),n=e.offset,o=e.limit;if(void 0===u)u=r,c=l[r],a=(new Date).getTime();else if(r!==u)return;if(c){var h=(new Date).getTime()-a,d=c,v=d.x,p=d.y,_=c=i.getPosition(t),y=_.x,g=_.y;h=h||1,s.x=(v-y)/h,s.y=(p-g)/h;var b=i.pickInRange(v-y+n.x,0,o.x),m=i.pickInRange(p-g+n.y,0,o.y);if(Math.abs(b-n.x)<1&&Math.abs(m-n.y)<1)return e.__updateThrottle();t.preventDefault(),e.setPosition(b,m)}}}),this.$on("touchend",o,function(t){if(!e.__fromChild(t)){delete l[u],u=void 0;var n=s.x,o=s.y,i=.01;(Math.abs(n)>i||Math.abs(o)>i)&&e.scrollTo(n*r+e.offset.x,o*r+e.offset.y,r),s.x=s.y=0}})};Object.defineProperty(o.SmoothScrollbar.prototype,"__touchHandler",{value:a,writable:!0,configurable:!0})},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),r(111);var n=r(47),o=r(39);e.SmoothScrollbar=o.SmoothScrollbar,o.SmoothScrollbar.prototype.scrollTo=function(){var t=arguments.length<=0||void 0===arguments[0]?this.offset.x:arguments[0],e=arguments.length<=1||void 0===arguments[1]?this.offset.y:arguments[1],r=this,o=arguments.length<=2||void 0===arguments[2]?0:arguments[2],i=arguments.length<=3||void 0===arguments[3]?null:arguments[3],a=this.offset,u=this.limit,s=this.__timerID,c=n.pickInRange(t,0,u.x),l=n.pickInRange(e,0,u.y);if(c!==a.x||l!==a.y){var f={x:this.__motionBuilder(a.x,c-a.x,o),y:this.__motionBuilder(a.y,l-a.y,o)},h=0,d=f.x.length,v=function p(){return h===d?"function"==typeof i&&i(r):(r.setPosition(f.x[h],f.y[h]),h++,void(s.scrollAnimation=requestAnimationFrame(p)))};v()}}},function(t,e,r){"use strict";var n=r(112)["default"];Object.defineProperty(e,"__esModule",{value:!0}),r(117);var o=r(47),i=r(39);e.SmoothScrollbar=i.SmoothScrollbar,i.SmoothScrollbar.prototype.setPosition=function(){var t=arguments.length<=0||void 0===arguments[0]?this.offset.x:arguments[0],e=arguments.length<=1||void 0===arguments[1]?this.offset.y:arguments[1];cancelAnimationFrame(this.__timerID.scrollAnimation),this.__updateThrottle();var r={},i=this.offset,a=this.limit,u=this.targets,s=this.__listeners;if(Math.abs(t-i.x)>1&&this.showTrack("x"),Math.abs(e-i.y)>1&&this.showTrack("y"),t=o.pickInRange(t,0,a.x),e=o.pickInRange(e,0,a.y),this.hideTrack(),t!==i.x||e!==i.y){r.direction={x:t===i.x?"none":t>i.x?"right":"left",y:e===i.y?"none":e>i.y?"down":"up"},r.limit=n({},a),i.x=t,i.y=e,r.offset=n({},i),this.__setThumbPosition();var c="translate3d("+-t+"px, "+-e+"px, 0)";o.setStyle(u.content,{"-webkit-transform":c,transform:c}),s.forEach(function(t){requestAnimationFrame(function(){t(r)})})}}},function(t,e,r){"use strict";var n=r(113)["default"];e["default"]=n||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},e.__esModule=!0},function(t,e,r){t.exports={"default":r(114),__esModule:!0}},function(t,e,r){r(115),t.exports=r(12).Object.assign},function(t,e,r){var n=r(10);n(n.S+n.F,"Object",{assign:r(116)})},function(t,e,r){var n=r(17),o=r(29),i=r(54);t.exports=r(20)(function(){var t=Object.assign,e={},r={},n=Symbol(),o="abcdefghijklmnopqrst";return e[n]=7,o.split("").forEach(function(t){r[t]=t}),7!=t({},e)[n]||Object.keys(t({},r)).join("")!=o})?function(t,e){for(var r=o(t),a=arguments,u=a.length,s=1,c=n.getKeys,l=n.getSymbols,f=n.isEnum;u>s;)for(var h,d=i(a[s++]),v=l?c(d).concat(l(d)):c(d),p=v.length,_=0;p>_;)f.call(d,h=v[_++])&&(r[h]=d[h]);return r}:Object.assign},function(t,e,r){"use strict";function n(){var t=this.offset,e=t.x,r=t.y,n=this.targets,i=n.xAxis,a=n.yAxis,u="translate3d("+e/this.size.content.width*this.size.container.width+"px, 0, 0)",s="translate3d(0, "+r/this.size.content.height*this.size.container.height+"px, 0)";o.setStyle(i.thumb,{"-webkit-transform":u,transform:u}),o.setStyle(a.thumb,{"-webkit-transform":s,transform:s})}Object.defineProperty(e,"__esModule",{value:!0});var o=r(47),i=r(39);e.SmoothScrollbar=i.SmoothScrollbar,Object.defineProperty(i.SmoothScrollbar.prototype,"__setThumbPosition",{value:n,writable:!0,configurable:!0})},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),r(102),r(110),r(111);var n=r(39),o=r(47);e.SmoothScrollbar=n.SmoothScrollbar;var i=function(t){var e=t.match(/scrollbar\-(?:track|thumb)\-([xy])/);return e&&e[1]},a=function(t){var e=this,r=t.speed,n=void 0,a=void 0,u=void 0,s=void 0,c=void 0,l=this.targets.container;this.$on("click",l,function(t){if(!a&&/track/.test(t.target.className)&&!e.__fromChild(t)){var n=t.target,u=i(n.className),s=n.getBoundingClientRect(),c=o.getPosition(t),l=e.size,f=e.offset,h=1e3/r;if("x"===u){var d=o.pickInRange(l.container.width/l.content.width,0,1),v=(c.x-s.left)/l.container.width;return e.scrollTo((v-d/2)*l.content.width,f.y,h)}var p=o.pickInRange(l.container.height/l.content.height,0,1),_=(c.y-s.top)/l.container.height;e.scrollTo(f.x,(_-p/2)*l.content.height,h)}}),this.$on("mousedown",l,function(t){if(/thumb/.test(t.target.className)&&!e.__fromChild(t)){n=!0;var r=o.getPosition(t),a=t.target.getBoundingClientRect();s=i(t.target.className),u={x:r.x-a.left,y:r.y-a.top},c=e.targets.container.getBoundingClientRect()}}),this.$on("mousemove",window,function(t){if(n){a=!0,t.preventDefault();var r=e.size,i=e.offset,l=o.getPosition(t);return"x"===s?void e.setPosition((l.x-u.x-c.left)/(c.right-c.left)*r.content.width,i.y):void e.setPosition(i.x,(l.y-u.y-c.top)/(c.bottom-c.top)*r.content.height)}}),this.$on("mouseup blur",window,function(){n=a=!1})};Object.defineProperty(n.SmoothScrollbar.prototype,"__mouseHandler",{value:a,writable:!0,configurable:!0})},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),r(110);var n=r(39),o=r(47);e.SmoothScrollbar=n.SmoothScrollbar;var i="onwheel"in window?"wheel":"mousewheel",a=function(t){var e=this,r=t.speed,n=t.stepLength,a=this.targets.container;this.$on(i,a,function(t){var i=e.offset,a=e.limit,u=o.getDelta(t),s=u.x,c=u.y,l=o.pickInRange(s*r*n+i.x,0,a.x),f=o.pickInRange(c*r*n+i.y,0,a.y);if(Math.abs(l-i.x)<1&&Math.abs(f-i.y)<1)return e.__updateThrottle();t.preventDefault(),t.stopPropagation();var h=120*Math.sqrt(Math.max(Math.abs(s),Math.abs(c)));e.scrollTo(l,f,h/r)})};Object.defineProperty(n.SmoothScrollbar.prototype,"__wheelHandler",{value:a,writable:!0,configurable:!0})},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(39);e.SmoothScrollbar=n.SmoothScrollbar;var o=function(){this.$on("resize",window,this.__updateThrottle)};Object.defineProperty(n.SmoothScrollbar.prototype,"__resizeHandler",{value:o,writable:!0,configurable:!0})},function(t,e,r){"use strict";var n=r(122)["default"];Object.defineProperty(e,"__esModule",{value:!0}),r(110);var o=r(47),i=r(39);e.SmoothScrollbar=i.SmoothScrollbar;var a={37:[-1,0],38:[0,-1],39:[1,0],40:[0,1]},u=function(t){var e=this,r=t.speed,i=t.stepLength,u=!1,s=this.targets.container;this.$on("focus",s,function(){u=!0}),this.$on("blur",s,function(){u=!1}),this.$on("keydown",s,function(t){if(u){t=o.getOriginalEvent(t);var s=t.keyCode||t.which;if(a.hasOwnProperty(s)){var c=e.offset,l=e.limit,f=n(a[s],2),h=f[0],d=f[1],v=o.pickInRange(h*r*i+c.x,0,l.x),p=o.pickInRange(d*r*i+c.y,0,l.y);if(Math.abs(v-c.x)<1&&Math.abs(p-c.y)<1)return e.__updateThrottle();t.preventDefault(),e.scrollTo(v,p,600/r)}}})};Object.defineProperty(i.SmoothScrollbar.prototype,"__keyboardHandler",{value:u,writable:!0,configurable:!0})},function(t,e,r){"use strict";var n=r(69)["default"],o=r(123)["default"];e["default"]=function(){function t(t,e){var r=[],o=!0,i=!1,a=void 0;try{for(var u,s=n(t);!(o=(u=s.next()).done)&&(r.push(u.value),!e||r.length!==e);o=!0);}catch(c){i=!0,a=c}finally{try{!o&&s["return"]&&s["return"]()}finally{if(i)throw a}}return r}return function(e,r){if(Array.isArray(e))return e;if(o(Object(e)))return t(e,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),e.__esModule=!0},function(t,e,r){t.exports={"default":r(124),__esModule:!0}},function(t,e,r){r(71),r(4),t.exports=r(125)},function(t,e,r){var n=r(36),o=r(25)("iterator"),i=r(22);t.exports=r(12).isIterable=function(t){var e=Object(t);return void 0!==e[o]||"@@iterator"in e||i.hasOwnProperty(n(e))}},function(t,e,r){"use strict";function n(){this.__readonly("children",[].concat(o(this.targets.content.querySelectorAll(a.selectors))))}var o=r(1)["default"];Object.defineProperty(e,"__esModule",{value:!0}),r(103);var i=r(39),a=r(99);e.SmoothScrollbar=i.SmoothScrollbar,Object.defineProperty(i.SmoothScrollbar.prototype,"__updateChildren",{value:n,writable:!0,configurable:!0})},function(t,e,r){"use strict";var n=r(1)["default"];Object.defineProperty(e,"__esModule",{value:!0});var o=r(39),i=r(47),a=r(98);e.SmoothScrollbar=o.SmoothScrollbar,o.SmoothScrollbar.prototype.destroy=function(){var t=this.__listeners,e=this.__handlers,r=this.targets,o=r.container,u=r.content;e.forEach(function(t){var e=t.evt,r=t.elem,n=t.handler;r.removeEventListener(e,n)}),e.length=t.length=0,i.setStyle(o,{overflow:"auto"}),o.scrollTop=o.scrollLeft=0;var s=[].concat(n(u.children));o.innerHTML="",s.forEach(function(t){return o.appendChild(t)}),a.sbList["delete"](o)}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(39);e.SmoothScrollbar=n.SmoothScrollbar,n.SmoothScrollbar.prototype.addListener=function(t){"function"==typeof t&&this.__listeners.push(t)},n.SmoothScrollbar.prototype.removeListener=function(t){"function"==typeof t&&this.__listeners.some(function(e,r,n){return e===t&&n.splice(r,1)})}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(39);e.SmoothScrollbar=n.SmoothScrollbar,n.SmoothScrollbar.prototype.showTrack=function(){var t=arguments.length<=0||void 0===arguments[0]?"both":arguments[0],e=this.targets,r=e.container,n=e.xAxis,o=e.yAxis;t=t.toLowerCase(),r.classList.add("scrolling"),"both"===t&&(n.track.classList.add("show"),o.track.classList.add("show")),"x"===t&&n.track.classList.add("show"),"y"===t&&o.track.classList.add("show")},n.SmoothScrollbar.prototype.hideTrack=function(){var t=this.targets,e=this.__timerID,r=t.container,n=t.xAxis,o=t.yAxis;clearTimeout(e.track),e.track=setTimeout(function(){r.classList.remove("scrolling"),n.track.classList.remove("show"),o.track.classList.remove("show")},300)}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),r(128);var n=r(39);e.SmoothScrollbar=n.SmoothScrollbar,n.SmoothScrollbar.prototype.infiniteScroll=function(t){var e=arguments.length<=1||void 0===arguments[1]?50:arguments[1];if("function"==typeof t){var r={x:0,y:0},n=!1;this.addListener(function(o){var i=o.offset,a=o.limit;a.y-i.y<=e&&i.y>r.y&&!n&&(n=!0,setTimeout(function(){return t(o)})),a.y-i.y>e&&(n=!1),r=i})}}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(39);e.SmoothScrollbar=n.SmoothScrollbar,n.SmoothScrollbar.prototype.getContentElem=function(){return this.targets.content}}])})}]);
(function(root, factory) {
if (typeof define === 'function' && define.amd) {
define(["angular","smooth-scrollbar"], factory);
} else if (typeof exports === 'object') {
module.exports = factory(require('angular'), require('smooth-scrollbar'));
} else {
root.undefined = factory(root.angular, root.Scrollbar);
}
}(this, function(angular, Scrollbar) {
'use strict';
var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();
var _class, _temp;
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
angular.module('SmoothScrollbar', []).service('ScrollbarService', (_temp = _class = (function () {
function ScrollbarService($q) {
_classCallCheck(this, ScrollbarService);
this.scrollbarInstances = {};
this.deferreds = {};
this.$q = $q;
}
/**
* @method
* Get scrollbar instance
* If instance isn't existed,
* callback wiil be invoked after instance is created
*
* @param {String} name: scrollbar name
*/
_createClass(ScrollbarService, [{
key: 'getInstance',
value: function getInstance(name) {
var scrollbarInstances = this.scrollbarInstances;
var deferreds = this.deferreds;
var $q = this.$q;
if (scrollbarInstances.hasOwnProperty(name)) {
return ($q.resolve || $q.when)(scrollbarInstances[name]);
}
var deferred = deferreds[name] = deferreds[name] || $q.defer();
return deferred.promise;
}
/**
* @method
* Create scrollbar instance
*
* @param {String} name: scrollbar name
* @param {Element} elem: container element
* @param {Object} options: as is explained in scrollbar constructor
*
* @return {Scrollbar} scrollbar instance
*/
}, {
key: 'createInstance',
value: function createInstance(name, elem, options) {
var scrollbarInstances = this.scrollbarInstances;
var deferreds = this.deferreds;
if (scrollbarInstances.hasOwnProperty(name)) {
return scrollbarInstances[name];
}
var instance = scrollbarInstances[name] = new Scrollbar(elem, options);
if (deferreds.hasOwnProperty(name)) {
deferreds[name].resolve(instance);
}
return instance;
}
/**
* @method
* Destroy scrollbar instance
*
* @param {String} name: scrollbar name
*/
}, {
key: 'destroyInstance',
value: function destroyInstance(name) {
var scrollbarInstances = this.scrollbarInstances;
var deferreds = this.deferreds;
var instance = scrollbarInstances[name];
if (instance) {
instance.destroy();
delete scrollbarInstances[name];
delete deferreds[name];
}
}
}]);
return ScrollbarService;
})(), _class.$inject = ['$q'], _temp)).directive('scrollbar', ['ScrollbarService', function (ScrollbarService) {
return {
restrict: 'AE',
transclude: true,
template: '\n <article class="scroll-content" ng-transclude></article>\n <aside class="scrollbar-track scrollbar-track-x">\n <div class="scrollbar-thumb scrollbar-thumb-x"></div>\n </aside>\n <aside class="scrollbar-track scrollbar-track-y">\n <div class="scrollbar-thumb scrollbar-thumb-y"></div>\n </aside>\n ',
scope: {
speed: '@',
stepLength: '@',
easingDuration: '@',
easingCurve: '@'
},
link: function link(scope, elem, attrs) {
var speed = scope.speed;
var stepLength = scope.stepLength;
var easingDuration = scope.easingDuration;
var easingCurve = scope.easingCurve;
var name = attrs.scrollbar || attrs.name || Date.now().toString(32);
var scrollbar = ScrollbarService.createInstance(name, elem[0], {
speed: speed,
stepLength: stepLength,
easingDuration: easingDuration,
easingCurve: easingCurve
});
var original = {
update: scrollbar.update.bind(scrollbar),
scrollTo: scrollbar.scrollTo.bind(scrollbar),
addListener: scrollbar.addListener.bind(scrollbar),
infiniteScroll: scrollbar.infiniteScroll.bind(scrollbar)
};
var applyChange = function applyChange(cb) {
if (typeof cb !== 'function') return;
return function () {
cb.apply(undefined, arguments);
scope.$apply();
};
};
scrollbar.update = function (cb) {
original.update(applyChange(cb));
};
scrollbar.scrollTo = function (x, y, duration, cb) {
original.scrollTo(x, y, duration, applyChange(cb));
};
scrollbar.addListener = function (cb) {
if (typeof cb !== 'function') return;
original.addListener(applyChange(cb));
};
scrollbar.infiniteScroll = function (cb, threshold) {
if (typeof cb !== 'function') return;
original.infiniteScroll(applyChange(cb), threshold);
};
scope.$on('$destroy', function () {
ScrollbarService.destroyInstance(name);
});
}
};
}]);
return undefined;
}));
var gulp = require('gulp');
var util = require('gulp-util');
var stylus = require('gulp-stylus');
var uglify = require('gulp-uglify');
var babel = require('gulp-babel');
var eslint = require('gulp-eslint');
var rename = require('gulp-rename');
var replace = require('gulp-replace');
var webpack = require('webpack-stream');
var sizereport = require('gulp-sizereport');
var autoprefixer = require('gulp-autoprefixer');
var wrapUMD = require('gulp-wrap-umd');
var browserSync = require('browser-sync').create();
var friendlyFormatter = require("eslint-friendly-formatter");
var compile = function(watch, done) {
var options = {
watch: watch,
output: {
filename: 'angular-smooth-scrollbar.js'
},
module: {
preLoaders: [{
test: /\.js$/,
exclude: /(node_modules|bower_components)/,
loader: 'eslint-loader'
}],
loaders: [{
test: /\.js$/,
exclude: /(node_modules|bower_components)/,
loader: 'babel-loader?optional[]=runtime&stage=0'
gulp.task('compile', function() {
return gulp.src('index.js')
.pipe(babel({
presets: ['es2015', 'stage-0']
}))
.pipe(wrapUMD({
exports: 'undefined', // export nothing
namespace: 'undefined',
deps: [{
name: 'angular',
globalName: 'angular',
paramName: 'angular'
}, {
name: 'smooth-scrollbar',
globalName: 'Scrollbar',
paramName: 'Scrollbar'
}]
}
};
if (watch) {
options.devtool = 'inline-source-map';
}
return webpack(options, null, function(err, stats) {
if (err) throw new util.PluginError('webpack', err);
util.log('[webpack]', stats.toString({
colors: util.colors.supportsColor,
chunks: false,
hash: false,
version: false
}));
browserSync.reload();
if (watch) {
watch = false;
done();
}
});
};
gulp.task('scripts:watch', function(done) {
return gulp.src('index.js')
.pipe(compile(true, done))
.pipe(gulp.dest('build/'));
}))
.pipe(rename({
basename: 'angular-smooth-scrollbar'
}))
.pipe(gulp.dest('dist'))
.pipe(browserSync.stream())
});
gulp.task('scripts:build', function() {
gulp.task('lint', function() {
return gulp.src('index.js')
.pipe(compile(false))
.pipe(gulp.dest('build/'));
.pipe(eslint())
.pipe(eslint.format(friendlyFormatter));
});
gulp.task('scripts:release', ['scripts:build'], function() {
return gulp.src('index.js')
.pipe(compile(false))
.pipe(uglify())
.pipe(gulp.dest('dist/'));
});
gulp.task('replace', function() {
return gulp.src('test/index.html')
.pipe(replace(/build/g, 'dist'))
.pipe(gulp.dest('demo/'));
});
gulp.task('serve', ['scripts:watch'], function() {
gulp.task('serve', ['compile', 'lint'], function() {
browserSync.init({

@@ -85,23 +45,6 @@ server: ['./test', '.']

gulp.watch('index.js', ['compile', 'lint']);
gulp.watch('test/*.*').on('change', browserSync.reload);
});
gulp.task('copy:release', function() {
return gulp.src('bower_components/smooth-scrollbar/dist/smooth_scrollbar.css')
.pipe(rename({
basename: 'angular-smooth-scrollbar'
}))
.pipe(gulp.dest('dist/'))
});
gulp.task('copy:demo', ['copy:release'], function() {
return gulp.src(['test/**/*.*', '!test/**/*.html'])
.pipe(gulp.dest('demo/'));
});
gulp.task('release', ['scripts:release', 'replace', 'copy:demo'], function() {
return gulp.src('dist/**/*.*')
.pipe(sizereport());
});
gulp.task('default', ['release']);
gulp.task('default', ['serve']);

@@ -1,3 +0,1 @@

import SmoothScrollbar from 'smooth-scrollbar';
angular.module('SmoothScrollbar', [])

@@ -50,3 +48,3 @@ .service('ScrollbarService', class ScrollbarService{

let instance = scrollbarInstances[name] = new SmoothScrollbar(elem, options);
let instance = scrollbarInstances[name] = new Scrollbar(elem, options);

@@ -108,6 +106,6 @@ if (deferreds.hasOwnProperty(name)) {

let original = {
update: scrollbar.update,
scrollTo: scrollbar.scrollTo,
addListener: scrollbar.addListener,
infiniteScroll: scrollbar.infiniteScroll
update: ::scrollbar.update,
scrollTo: ::scrollbar.scrollTo,
addListener: ::scrollbar.addListener,
infiniteScroll: ::scrollbar.infiniteScroll
};

@@ -125,7 +123,7 @@

scrollbar.update = (cb) => {
original.update.call(scrollbar, applyChange(cb));
original.update(applyChange(cb));
};
scrollbar.scrollTo = (x, y, duration, cb) => {
original.scrollTo.call(scrollbar, x, y, duration, applyChange(cb));
original.scrollTo(x, y, duration, applyChange(cb));
};

@@ -136,3 +134,3 @@

original.addListener.call(scrollbar, applyChange(cb));
original.addListener(applyChange(cb));
};

@@ -143,3 +141,3 @@

original.infiniteScroll.call(scrollbar, applyChange(cb));
original.infiniteScroll(applyChange(cb), threshold);
};

@@ -146,0 +144,0 @@

{
"name": "angular-smooth-scrollbar",
"version": "1.0.2",
"version": "2.0.0",
"description": "An angular module that allows you customize smooth scrollbars",

@@ -27,3 +27,2 @@ "main": "dist/angular-smooth-scrollbar.js",

"dependencies": {
"babel-runtime": "^5.8.20",
"bezier-easing": "^1.1.1",

@@ -35,13 +34,13 @@ "smooth-scrollbar": "^1.0.0"

"babel-eslint": "^4.0.5",
"babel-loader": "^5.3.2",
"babel-preset-es2015": "^6.3.13",
"babel-preset-stage-0": "^6.3.13",
"browser-sync": "^2.8.2",
"eslint": "^1.1.0",
"eslint-loader": "^1.0.0",
"eslint-friendly-formatter": "^1.2.2",
"gulp": "^3.9.0",
"gulp-babel": "^6.1.1",
"gulp-eslint": "^1.1.1",
"gulp-rename": "^1.2.2",
"gulp-replace": "^0.5.4",
"gulp-sizereport": "^1.1.3",
"gulp-uglify": "^1.2.0",
"gulp-util": "^3.0.6",
"webpack-stream": "^2.1.0"
"gulp-wrap-umd": "^0.2.1"
},

@@ -48,0 +47,0 @@ "ignore": [

# angular-smooth-scrollbar
An angular module that helps you to customize high performance scrollbar.
[smooth-scrollbar](https://github.com/idiotWu/smooth-scrollbar) for angular projects.

@@ -11,3 +11,11 @@ ## Requirements

Via npm:
```
npm install angular-smooth-scrollbar --save
```
Or via bower:
```
bower install angular-smooth-scrollbar --save

@@ -23,8 +31,10 @@ ```

1. Include the script and stylesheet in your page file:
1. Include all dependencies in your page file:
```html
<link rel="stylesheet" href="dist/angular-smooth-scrollbar.css">
<link rel="stylesheet" href="smooth-scrollbar/dist/smooth_scrollbar.css">
<script src="dist/angular-smooth-scrollbar.js"></script>
<script src="angular.js"></script>
<script src="smooth-scrollbar/dist/smooth_scrollbar.js"></script>
<script src="angular-smooth-scrollbar/dist/index.js"></script>
```

@@ -31,0 +41,0 @@

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc