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 0.3.9 to 0.4.0

2

bower.json
{
"name": "angular-smooth-scrollbar",
"version": "0.3.9",
"version": "0.4.0",
"authors": [

@@ -5,0 +5,0 @@ "Dolphin Wood <dolphin.w.e@gmail.com>"

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

!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);r(83),r(98),r(108),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(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 a=n[t]=new i.SmoothScrollbar(e,r);return o.hasOwnProperty(t)&&o[t].resolve(a),a}},{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:{name:"@scrollbar",speed:"@",stepLength:"@",easingDuration:"@",easingCurve:"@"},link:function(e,r){var n=e.name,o=e.speed,i=e.stepLength,a=e.easingDuration,u=e.easingCurve;if(!n)throw new Error("scrollbar name is required");var s=t.createInstance(n,r[0],{speed:o,stepLength:i,easingDuration:a,easingCurve:u}),c={update:s.update,scrollTo:s.scrollTo,addListener:s.addListener,infiniteScroll:s.infiniteScroll},l=function(t){return"function"==typeof t?function(){t.apply(void 0,arguments),e.$apply()}:void 0};s.update=function(t){c.update.call(s,l(t))},s.scrollTo=function(t,e,r,n){c.scrollTo.call(s,t,e,r,l(n))},s.addListener=function(t){"function"==typeof t&&c.addListener.call(s,l(t))},s.infiniteScroll=function(t,e){"function"==typeof t&&c.infiniteScroll.call(s,l(t))},e.$on("$destroy",function(){t.destroyInstance(n)})}}}])},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,r){"use strict";var n=r(5)["default"],o=r(7)["default"];Object.defineProperty(e,"__esModule",{value:!0});var i=r(9),a=r(82),u=[],s=function(){u.forEach(function(t){return t.__updateChildren()})},c=function l(t,e){var r=e.speed,c=e.stepLength,f=e.easingDuration,h=e.easingCurve;n(this,l),t.setAttribute("tabindex","1"),i.setStyle(t,{outline:"none"});var d=i.findChild(t,"scrollbar-track-x"),v=i.findChild(t,"scrollbar-track-y");o(this,{__target:{value:{container:t,content:i.findChild(t,"scroll-content"),xAxis:{track:d,thumb:i.findChild(d,"scrollbar-thumb-x")},yAxis:{track:v,thumb:i.findChild(v,"scrollbar-thumb-y")}}},__listeners:{value:[],writable:!0},__handlers:{value:[],writable:!0},__motionBuilder:{value:i.motionBuilder(h)},__updateThrottle:{value:i.debounce(this.update.bind(this))},__scrollAnimation:{writable:!0}}),this.offset={x:0,y:0},this.limit={x:1/0,y:1/0},this.size=this.getSize(),this.showTrack=function(){var e=arguments.length<=0||void 0===arguments[0]?"both":arguments[0];e=e.toLowerCase(),t.classList.add("scrolling"),"both"===e&&(d.classList.add("show"),v.classList.add("show")),"x"===e&&d.classList.add("show"),"y"===e&&v.classList.add("show")},this.hideTrack=i.debounce(function(){t.classList.remove("scrolling"),d.classList.remove("show"),v.classList.remove("show")},300,!1),this.__initScrollbar({speed:parseFloat(r)||a.DEFAULT_OPTIONS.SPEED,stepLength:parseFloat(c)||a.DEFAULT_OPTIONS.STEP_LENGTH,easingDuration:parseFloat(f)||a.DEFAULT_OPTIONS.EASING_DURATION}),u.push(this),s()};e.SmoothScrollbar=c},function(t,e,r){t.exports={"default":r(8),__esModule:!0}},function(t,e,r){var n=r(4);t.exports=function(t,e){return n.setDescs(t,e)}},function(t,e,r){"use strict";var n=r(10)["default"],o=r(27)["default"];Object.defineProperty(e,"__esModule",{value:!0});var i=r(28);n(e,o(i,n));var a=r(29);n(e,o(a,n));var u=r(34);n(e,o(u,n));var s=r(36);n(e,o(s,n));var c=r(64);n(e,o(c,n));var l=r(66);n(e,o(l,n));var f=r(67);n(e,o(f,n));var h=r(68);n(e,o(h,n));var d=r(65);n(e,o(d,n));var v=r(35);n(e,o(v,n))},function(t,e,r){"use strict";var n=r(11)["default"],o=r(24)["default"],i=r(2)["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(12),__esModule:!0}},function(t,e,r){var n=r(4);r(13),t.exports=function(t){return n.getNames(t)}},function(t,e,r){r(14)("getOwnPropertyNames",function(){return r(19).get})},function(t,e,r){t.exports=function(t,e){var n=r(15),o=(r(17).Object||{})[t]||Object[t],i={};i[t]=e(o),n(n.S+n.F*r(18)(function(){o(1)}),"Object",i)}},function(t,e,r){var n=r(16),o=r(17),i="prototype",a=function(t,e){return function(){return t.apply(e,arguments)}},u=function(t,e,r){var s,c,l,f,h=t&u.G,d=t&u.P,v=h?n:t&u.S?n[e]:(n[e]||{})[i],p=h?o:o[e]||(o[e]={});h&&(r=e);for(s in r)c=!(t&u.F)&&v&&s in v,c&&s in p||(l=c?v[s]:r[s],h&&"function"!=typeof v[s]?f=r[s]:t&u.B&&c?f=a(l,n):t&u.W&&v[s]==l?!function(t){f=function(e){return this instanceof t?new t(e):t(e)},f[i]=t[i]}(l):f=d&&"function"==typeof l?a(Function.call,l):l,p[s]=f,d&&((p[i]||(p[i]={}))[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="undefined",n=t.exports=typeof window!=r&&window.Math==Math?window:typeof self!=r&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e){var r=t.exports={version:"1.2.1"};"number"==typeof __e&&(__e=r)},function(t,e){t.exports=function(t){try{return!!t()}catch(e){return!0}}},function(t,e,r){var n={}.toString,o=r(20),i=r(4).getNames,a="object"==typeof window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],u=function(t){try{return i(t)}catch(e){return a.slice()}};t.exports.get=function(t){return a&&"[object Window]"==n.call(t)?u(t):i(o(t))}},function(t,e,r){var n=r(21),o=r(23);t.exports=function(t){return n(o(t))}},function(t,e,r){var n=r(22);t.exports=0 in Object("z")?Object:function(t){return"String"==n(t)?t.split(""):Object(t)}},function(t,e){var r={}.toString;t.exports=function(t){return r.call(t).slice(8,-1)}},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){t.exports={"default":r(25),__esModule:!0}},function(t,e,r){var n=r(4);r(26),t.exports=function(t,e){return n.getDesc(t,e)}},function(t,e,r){var n=r(20);r(14)("getOwnPropertyDescriptor",function(t){return function(e,r){return t(n(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(30)["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(31),__esModule:!0}},function(t,e,r){r(32),t.exports=r(17).Object.keys},function(t,e,r){var n=r(33);r(14)("keys",function(t){return function(e){return t(n(e))}})},function(t,e,r){var n=r(23);t.exports=function(t){return Object(n(t))}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(35),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(37)["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(38),__esModule:!0}},function(t,e,r){r(39),r(56),t.exports=r(59)},function(t,e,r){r(40);var n=r(43);n.NodeList=n.HTMLCollection=n.Array},function(t,e,r){"use strict";var n=r(41),o=r(42),i=r(43),a=r(20);r(44)(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){t.exports={}},function(t,e,r){"use strict";var n=r(45),o=r(15),i=r(46),a=r(47),u=r(50),s=r(51)("iterator"),c=r(43),l=!([].keys&&"next"in[].keys()),f="@@iterator",h="keys",d="values",v=function(){return this};t.exports=function(t,e,p,_,g,y,m){r(54)(p,e,_);var b,S,x=function(t){switch(t){case h:return function(){return new p(this,t)};case d:return function(){return new p(this,t)}}return function(){return new p(this,t)}},w=e+" Iterator",O=t.prototype,P=O[s]||O[f]||g&&O[g],M=P||x(g);if(P){var E=r(4).getProto(M.call(new t));r(55)(E,w,!0),!n&&u(O,f)&&a(E,s,v)}if((!n||m)&&a(O,s,M),c[e]=M,c[w]=v,g)if(b={keys:y?M:x(h),values:g==d?M:x(d),entries:g!=d?M:x("entries")},m)for(S in b)S in O||i(O,S,b[S]);else o(o.P+o.F*l,e,b)}},function(t,e){t.exports=!0},function(t,e,r){t.exports=r(47)},function(t,e,r){var n=r(4),o=r(48);t.exports=r(49)?function(t,e,r){return n.setDesc(t,e,o(1,r))}:function(t,e,r){return t[e]=r,t}},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(18)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e){var r={}.hasOwnProperty;t.exports=function(t,e){return r.call(t,e)}},function(t,e,r){var n=r(52)("wks"),o=r(16).Symbol;t.exports=function(t){return n[t]||(n[t]=o&&o[t]||(o||r(53))("Symbol."+t))}},function(t,e,r){var n=r(16),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(4),o={};r(47)(o,r(51)("iterator"),function(){return this}),t.exports=function(t,e,i){t.prototype=n.create(o,{next:r(48)(1,i)}),r(55)(t,e+" Iterator")}},function(t,e,r){var n=r(50),o=r(47),i=r(51)("toStringTag");t.exports=function(t,e,r){t&&!n(t=r?t:t.prototype,i)&&o(t,i,e)}},function(t,e,r){"use strict";var n=r(57)(!0);r(44)(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(58),o=r(23);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,r){var n=r(60),o=r(62);t.exports=r(17).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){var n=r(61);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(63),o=r(51)("iterator"),i=r(43);t.exports=r(17).getIteratorMethod=function(t){return void 0!=t?t[o]||t["@@iterator"]||i[n(t)]:void 0}},function(t,e,r){var n=r(22),o=r(51)("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,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(35),o=r(65),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(35),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(35),o=r(65),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(69)["default"],o=r(79)["default"],i=r(80)["default"];Object.defineProperty(e,"__esModule",{value:!0});var a=r(81),u=i(a),s=r(82),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,r){"use strict";var n=r(70)["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(71),__esModule:!0}},function(t,e,r){r(56),r(72),t.exports=r(17).Array.from},function(t,e,r){"use strict";var n=r(73),o=r(15),i=r(33),a=r(75),u=r(76),s=r(77),c=r(62);o(o.S+o.F*!r(78)(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[1],v=void 0!==d,p=0,_=c(f);if(v&&(d=n(d,arguments[2],2)),void 0==_||h==Array&&u(_))for(e=s(f.length),r=new h(e);e>p;p++)r[p]=v?d(f[p],p):f[p];else for(l=_.call(f),r=new h;!(o=l.next()).done;p++)r[p]=v?a(l,d,[o.value,p],!0):o.value;return r.length=p,r}})},function(t,e,r){var n=r(74);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){var n=r(60);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(43),o=r(51)("iterator");t.exports=function(t){return(n.Array||Array.prototype[o])===t}},function(t,e,r){var n=r(58),o=Math.min;t.exports=function(t){return t>0?o(n(t),9007199254740991):0}},function(t,e,r){var n=r(51)("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){if(!o)return!1;var e=!1;try{var r=[7],i=r[n]();i.next=function(){e=!0},r[n]=function(){return i},t(r)}catch(a){}return e}},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:40,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(10)["default"],o=r(27)["default"];Object.defineProperty(e,"__esModule",{value:!0});var i=r(84);n(e,o(i,n));var a=r(87);n(e,o(a,n));var u=r(85);n(e,o(u,n));var s=r(88);n(e,o(s,n));var c=r(89);n(e,o(c,n));var l=r(90);n(e,o(l,n));var f=r(97);n(e,o(f,n))},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),r(85),r(86);var n=r(9),o=r(6);e.SmoothScrollbar=o.SmoothScrollbar,o.SmoothScrollbar.prototype.update=function(t){var e=this;requestAnimationFrame(function(){var r=e.size=e.getSize(),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.limit=o;var i=e.__target,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(6);e.SmoothScrollbar=n.SmoothScrollbar,n.SmoothScrollbar.prototype.getSize=function(){var t=this.__target.container,e=this.__target.content;return{container:{width:t.clientWidth,height:t.clientHeight},content:{width:e.offsetWidth,height:e.offsetHeight}}}},function(t,e,r){"use strict";function n(){var t=this.offset,e=t.x,r=t.y,n=this.__target,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(9),i=r(6);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});var n=r(6);e.SmoothScrollbar=n.SmoothScrollbar,n.SmoothScrollbar.prototype.destroy=function(){this.__listeners.length=0,this.__handlers.forEach(function(t){var e=t.evt,r=t.elem,n=t.handler;r.removeEventListener(e,n)})}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(6);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}),r(90);var n=r(9),o=r(6);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=n.pickInRange(t,0,u.x),c=n.pickInRange(e,0,u.y);if(s!==a.x||c!==a.y){var l={x:this.__motionBuilder(a.x,s-a.x,o),y:this.__motionBuilder(a.y,c-a.y,o)},f=0,h=l.x.length,d=function v(){return f===h?"function"==typeof i&&i(r):(r.setPosition(l.x[f],l.y[f]),f++,void(r.__scrollAnimation=requestAnimationFrame(v)))};d()}}},function(t,e,r){"use strict";var n=r(91)["default"];Object.defineProperty(e,"__esModule",{value:!0}),r(86);var o=r(9),i=r(6);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.__scrollAnimation),this.__updateThrottle();var r={},i=this.offset,a=this.limit,u=this.__target,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(92)["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(93),__esModule:!0}},function(t,e,r){r(94),t.exports=r(17).Object.assign},function(t,e,r){var n=r(15);n(n.S+n.F,"Object",{assign:r(95)})},function(t,e,r){var n=r(33),o=r(21),i=r(96),a=r(50);t.exports=r(18)(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=n(t),u=arguments.length,s=1;u>s;)for(var c,l=o(arguments[s++]),f=i(l),h=f.length,d=0;h>d;)a(l,c=f[d++])&&(r[c]=l[c]);return r}:Object.assign},function(t,e,r){var n=r(4);t.exports=function(t){var e=n.getKeys(t),r=n.getSymbols;if(r)for(var o,i=r(t),a=n.isEnum,u=0;i.length>u;)a.call(t,o=i[u++])&&e.push(o);return e}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),r(88);var n=r(6);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";var n=r(10)["default"],o=r(27)["default"];Object.defineProperty(e,"__esModule",{value:!0});var i=r(99);n(e,o(i,n));var a=r(100);n(e,o(a,n));var u=r(101);n(e,o(u,n));var s=r(102);n(e,o(s,n));var c=r(103);n(e,o(c,n))},function(t,e,r){"use strict";var n=r(30)["default"];Object.defineProperty(e,"__esModule",{value:!0}),r(89),r(90);var o=r(6),i=r(9);e.SmoothScrollbar=o.SmoothScrollbar;var a=function(t){var e=this,r=t.easingDuration,o=this.__target.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),g=_.x,y=_.y;h=h||1,s.x=(v-g)/h,s.y=(p-y)/h;var m=i.pickInRange(v-g+n.x,0,o.x),b=i.pickInRange(p-y+n.y,0,o.y);if(Math.abs(m-n.x)<1&&Math.abs(b-n.y)<1)return e.__updateThrottle();t.preventDefault(),e.setPosition(m,b)}}}),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(85),r(89),r(90);var n=r(6),o=r(9);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.__target.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.__target.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(89);var n=r(6),o=r(9);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.__target.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(6);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(104)["default"];Object.defineProperty(e,"__esModule",{value:!0}),r(89);var o=r(9),i=r(6);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.__target.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(37)["default"],o=r(105)["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(106),__esModule:!0}},function(t,e,r){r(39),r(56),t.exports=r(107)},function(t,e,r){var n=r(63),o=r(51)("iterator"),i=r(43);t.exports=r(17).isIterable=function(t){var e=Object(t);return o in e||"@@iterator"in e||i.hasOwnProperty(n(e))}},function(t,e,r){"use strict";var n=r(10)["default"],o=r(27)["default"];Object.defineProperty(e,"__esModule",{value:!0});var i=r(109);n(e,o(i,n));var a=r(110);n(e,o(a,n));var u=r(111);n(e,o(u,n));var s=r(112);n(e,o(s,n));var c=r(86);n(e,o(c,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(6);e.SmoothScrollbar=o.SmoothScrollbar,Object.defineProperty(o.SmoothScrollbar.prototype,"$on",{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(6),i=r(9);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(98);var o=r(6);e.SmoothScrollbar=o.SmoothScrollbar,Object.defineProperty(o.SmoothScrollbar.prototype,"__initScrollbar",{value:n,writable:!0,configurable:!0})},function(t,e,r){"use strict";function n(){Object.defineProperty(this,"__children",{value:[].concat(o(this.__target.content.querySelectorAll("[scrollbar]"))),writable:!0})}var o=r(69)["default"];Object.defineProperty(e,"__esModule",{value:!0});var i=r(6);e.SmoothScrollbar=i.SmoothScrollbar,Object.defineProperty(i.SmoothScrollbar.prototype,"__updateChildren",{value:n,writable:!0,configurable:!0})}]);
!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);r(83),r(98),r(108),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(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 a=n[t]=new i.SmoothScrollbar(e,r);return o.hasOwnProperty(t)&&o[t].resolve(a),a}},{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,r){"use strict";var n=r(5)["default"],o=r(7)["default"];Object.defineProperty(e,"__esModule",{value:!0});var i=r(9),a=r(82),u=[],s=function(){u.forEach(function(t){return t.__updateChildren()})},c=function l(t,e){var r=e.speed,c=e.stepLength,f=e.easingDuration,h=e.easingCurve;n(this,l),t.setAttribute("tabindex","1"),i.setStyle(t,{outline:"none"});var d=i.findChild(t,"scrollbar-track-x"),v=i.findChild(t,"scrollbar-track-y");o(this,{__target:{value:{container:t,content:i.findChild(t,"scroll-content"),xAxis:{track:d,thumb:i.findChild(d,"scrollbar-thumb-x")},yAxis:{track:v,thumb:i.findChild(v,"scrollbar-thumb-y")}}},__listeners:{value:[],writable:!0},__handlers:{value:[],writable:!0},__motionBuilder:{value:i.motionBuilder(h)},__updateThrottle:{value:i.debounce(this.update.bind(this))},__scrollAnimation:{writable:!0}}),this.offset={x:0,y:0},this.limit={x:1/0,y:1/0},this.size=this.getSize(),this.showTrack=function(){var e=arguments.length<=0||void 0===arguments[0]?"both":arguments[0];e=e.toLowerCase(),t.classList.add("scrolling"),"both"===e&&(d.classList.add("show"),v.classList.add("show")),"x"===e&&d.classList.add("show"),"y"===e&&v.classList.add("show")},this.hideTrack=i.debounce(function(){t.classList.remove("scrolling"),d.classList.remove("show"),v.classList.remove("show")},300,!1),this.__initScrollbar({speed:parseFloat(r)||a.DEFAULT_OPTIONS.SPEED,stepLength:parseFloat(c)||a.DEFAULT_OPTIONS.STEP_LENGTH,easingDuration:parseFloat(f)||a.DEFAULT_OPTIONS.EASING_DURATION}),u.push(this),s()};e.SmoothScrollbar=c},function(t,e,r){t.exports={"default":r(8),__esModule:!0}},function(t,e,r){var n=r(4);t.exports=function(t,e){return n.setDescs(t,e)}},function(t,e,r){"use strict";var n=r(10)["default"],o=r(27)["default"];Object.defineProperty(e,"__esModule",{value:!0});var i=r(28);n(e,o(i,n));var a=r(29);n(e,o(a,n));var u=r(34);n(e,o(u,n));var s=r(36);n(e,o(s,n));var c=r(64);n(e,o(c,n));var l=r(66);n(e,o(l,n));var f=r(67);n(e,o(f,n));var h=r(68);n(e,o(h,n));var d=r(65);n(e,o(d,n));var v=r(35);n(e,o(v,n))},function(t,e,r){"use strict";var n=r(11)["default"],o=r(24)["default"],i=r(2)["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(12),__esModule:!0}},function(t,e,r){var n=r(4);r(13),t.exports=function(t){return n.getNames(t)}},function(t,e,r){r(14)("getOwnPropertyNames",function(){return r(19).get})},function(t,e,r){t.exports=function(t,e){var n=r(15),o=(r(17).Object||{})[t]||Object[t],i={};i[t]=e(o),n(n.S+n.F*r(18)(function(){o(1)}),"Object",i)}},function(t,e,r){var n=r(16),o=r(17),i="prototype",a=function(t,e){return function(){return t.apply(e,arguments)}},u=function(t,e,r){var s,c,l,f,h=t&u.G,d=t&u.P,v=h?n:t&u.S?n[e]:(n[e]||{})[i],p=h?o:o[e]||(o[e]={});h&&(r=e);for(s in r)c=!(t&u.F)&&v&&s in v,c&&s in p||(l=c?v[s]:r[s],h&&"function"!=typeof v[s]?f=r[s]:t&u.B&&c?f=a(l,n):t&u.W&&v[s]==l?!function(t){f=function(e){return this instanceof t?new t(e):t(e)},f[i]=t[i]}(l):f=d&&"function"==typeof l?a(Function.call,l):l,p[s]=f,d&&((p[i]||(p[i]={}))[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="undefined",n=t.exports=typeof window!=r&&window.Math==Math?window:typeof self!=r&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e){var r=t.exports={version:"1.2.1"};"number"==typeof __e&&(__e=r)},function(t,e){t.exports=function(t){try{return!!t()}catch(e){return!0}}},function(t,e,r){var n={}.toString,o=r(20),i=r(4).getNames,a="object"==typeof window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],u=function(t){try{return i(t)}catch(e){return a.slice()}};t.exports.get=function(t){return a&&"[object Window]"==n.call(t)?u(t):i(o(t))}},function(t,e,r){var n=r(21),o=r(23);t.exports=function(t){return n(o(t))}},function(t,e,r){var n=r(22);t.exports=0 in Object("z")?Object:function(t){return"String"==n(t)?t.split(""):Object(t)}},function(t,e){var r={}.toString;t.exports=function(t){return r.call(t).slice(8,-1)}},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){t.exports={"default":r(25),__esModule:!0}},function(t,e,r){var n=r(4);r(26),t.exports=function(t,e){return n.getDesc(t,e)}},function(t,e,r){var n=r(20);r(14)("getOwnPropertyDescriptor",function(t){return function(e,r){return t(n(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(30)["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(31),__esModule:!0}},function(t,e,r){r(32),t.exports=r(17).Object.keys},function(t,e,r){var n=r(33);r(14)("keys",function(t){return function(e){return t(n(e))}})},function(t,e,r){var n=r(23);t.exports=function(t){return Object(n(t))}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(35),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(37)["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(38),__esModule:!0}},function(t,e,r){r(39),r(56),t.exports=r(59)},function(t,e,r){r(40);var n=r(43);n.NodeList=n.HTMLCollection=n.Array},function(t,e,r){"use strict";var n=r(41),o=r(42),i=r(43),a=r(20);r(44)(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){t.exports={}},function(t,e,r){"use strict";var n=r(45),o=r(15),i=r(46),a=r(47),u=r(50),s=r(51)("iterator"),c=r(43),l=!([].keys&&"next"in[].keys()),f="@@iterator",h="keys",d="values",v=function(){return this};t.exports=function(t,e,p,_,g,y,m){r(54)(p,e,_);var b,S,x=function(t){switch(t){case h:return function(){return new p(this,t)};case d:return function(){return new p(this,t)}}return function(){return new p(this,t)}},w=e+" Iterator",O=t.prototype,P=O[s]||O[f]||g&&O[g],M=P||x(g);if(P){var E=r(4).getProto(M.call(new t));r(55)(E,w,!0),!n&&u(O,f)&&a(E,s,v)}if((!n||m)&&a(O,s,M),c[e]=M,c[w]=v,g)if(b={keys:y?M:x(h),values:g==d?M:x(d),entries:g!=d?M:x("entries")},m)for(S in b)S in O||i(O,S,b[S]);else o(o.P+o.F*l,e,b)}},function(t,e){t.exports=!0},function(t,e,r){t.exports=r(47)},function(t,e,r){var n=r(4),o=r(48);t.exports=r(49)?function(t,e,r){return n.setDesc(t,e,o(1,r))}:function(t,e,r){return t[e]=r,t}},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(18)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e){var r={}.hasOwnProperty;t.exports=function(t,e){return r.call(t,e)}},function(t,e,r){var n=r(52)("wks"),o=r(16).Symbol;t.exports=function(t){return n[t]||(n[t]=o&&o[t]||(o||r(53))("Symbol."+t))}},function(t,e,r){var n=r(16),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(4),o={};r(47)(o,r(51)("iterator"),function(){return this}),t.exports=function(t,e,i){t.prototype=n.create(o,{next:r(48)(1,i)}),r(55)(t,e+" Iterator")}},function(t,e,r){var n=r(50),o=r(47),i=r(51)("toStringTag");t.exports=function(t,e,r){t&&!n(t=r?t:t.prototype,i)&&o(t,i,e)}},function(t,e,r){"use strict";var n=r(57)(!0);r(44)(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(58),o=r(23);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,r){var n=r(60),o=r(62);t.exports=r(17).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){var n=r(61);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(63),o=r(51)("iterator"),i=r(43);t.exports=r(17).getIteratorMethod=function(t){return void 0!=t?t[o]||t["@@iterator"]||i[n(t)]:void 0}},function(t,e,r){var n=r(22),o=r(51)("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,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(35),o=r(65),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(35),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(35),o=r(65),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(69)["default"],o=r(79)["default"],i=r(80)["default"];Object.defineProperty(e,"__esModule",{value:!0});var a=r(81),u=i(a),s=r(82),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,r){"use strict";var n=r(70)["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(71),__esModule:!0}},function(t,e,r){r(56),r(72),t.exports=r(17).Array.from},function(t,e,r){"use strict";var n=r(73),o=r(15),i=r(33),a=r(75),u=r(76),s=r(77),c=r(62);o(o.S+o.F*!r(78)(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[1],v=void 0!==d,p=0,_=c(f);if(v&&(d=n(d,arguments[2],2)),void 0==_||h==Array&&u(_))for(e=s(f.length),r=new h(e);e>p;p++)r[p]=v?d(f[p],p):f[p];else for(l=_.call(f),r=new h;!(o=l.next()).done;p++)r[p]=v?a(l,d,[o.value,p],!0):o.value;return r.length=p,r}})},function(t,e,r){var n=r(74);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){var n=r(60);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(43),o=r(51)("iterator");t.exports=function(t){return(n.Array||Array.prototype[o])===t}},function(t,e,r){var n=r(58),o=Math.min;t.exports=function(t){return t>0?o(n(t),9007199254740991):0}},function(t,e,r){var n=r(51)("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){if(!o)return!1;var e=!1;try{var r=[7],i=r[n]();i.next=function(){e=!0},r[n]=function(){return i},t(r)}catch(a){}return e}},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:40,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(10)["default"],o=r(27)["default"];Object.defineProperty(e,"__esModule",{value:!0});var i=r(84);n(e,o(i,n));var a=r(87);n(e,o(a,n));var u=r(85);n(e,o(u,n));var s=r(88);n(e,o(s,n));var c=r(89);n(e,o(c,n));var l=r(90);n(e,o(l,n));var f=r(97);n(e,o(f,n))},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),r(85),r(86);var n=r(9),o=r(6);e.SmoothScrollbar=o.SmoothScrollbar,o.SmoothScrollbar.prototype.update=function(t){var e=this;requestAnimationFrame(function(){var r=e.size=e.getSize(),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.limit=o;var i=e.__target,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(6);e.SmoothScrollbar=n.SmoothScrollbar,n.SmoothScrollbar.prototype.getSize=function(){var t=this.__target.container,e=this.__target.content;return{container:{width:t.clientWidth,height:t.clientHeight},content:{width:e.offsetWidth,height:e.offsetHeight}}}},function(t,e,r){"use strict";function n(){var t=this.offset,e=t.x,r=t.y,n=this.__target,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(9),i=r(6);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});var n=r(6);e.SmoothScrollbar=n.SmoothScrollbar,n.SmoothScrollbar.prototype.destroy=function(){this.__listeners.length=0,this.__handlers.forEach(function(t){var e=t.evt,r=t.elem,n=t.handler;r.removeEventListener(e,n)})}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(6);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}),r(90);var n=r(9),o=r(6);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=n.pickInRange(t,0,u.x),c=n.pickInRange(e,0,u.y);if(s!==a.x||c!==a.y){var l={x:this.__motionBuilder(a.x,s-a.x,o),y:this.__motionBuilder(a.y,c-a.y,o)},f=0,h=l.x.length,d=function v(){return f===h?"function"==typeof i&&i(r):(r.setPosition(l.x[f],l.y[f]),f++,void(r.__scrollAnimation=requestAnimationFrame(v)))};d()}}},function(t,e,r){"use strict";var n=r(91)["default"];Object.defineProperty(e,"__esModule",{value:!0}),r(86);var o=r(9),i=r(6);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.__scrollAnimation),this.__updateThrottle();var r={},i=this.offset,a=this.limit,u=this.__target,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(92)["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(93),__esModule:!0}},function(t,e,r){r(94),t.exports=r(17).Object.assign},function(t,e,r){var n=r(15);n(n.S+n.F,"Object",{assign:r(95)})},function(t,e,r){var n=r(33),o=r(21),i=r(96),a=r(50);t.exports=r(18)(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=n(t),u=arguments.length,s=1;u>s;)for(var c,l=o(arguments[s++]),f=i(l),h=f.length,d=0;h>d;)a(l,c=f[d++])&&(r[c]=l[c]);return r}:Object.assign},function(t,e,r){var n=r(4);t.exports=function(t){var e=n.getKeys(t),r=n.getSymbols;if(r)for(var o,i=r(t),a=n.isEnum,u=0;i.length>u;)a.call(t,o=i[u++])&&e.push(o);return e}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),r(88);var n=r(6);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";var n=r(10)["default"],o=r(27)["default"];Object.defineProperty(e,"__esModule",{value:!0});var i=r(99);n(e,o(i,n));var a=r(100);n(e,o(a,n));var u=r(101);n(e,o(u,n));var s=r(102);n(e,o(s,n));var c=r(103);n(e,o(c,n))},function(t,e,r){"use strict";var n=r(30)["default"];Object.defineProperty(e,"__esModule",{value:!0}),r(89),r(90);var o=r(6),i=r(9);e.SmoothScrollbar=o.SmoothScrollbar;var a=function(t){var e=this,r=t.easingDuration,o=this.__target.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),g=_.x,y=_.y;h=h||1,s.x=(v-g)/h,s.y=(p-y)/h;var m=i.pickInRange(v-g+n.x,0,o.x),b=i.pickInRange(p-y+n.y,0,o.y);if(Math.abs(m-n.x)<1&&Math.abs(b-n.y)<1)return e.__updateThrottle();t.preventDefault(),e.setPosition(m,b)}}}),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(85),r(89),r(90);var n=r(6),o=r(9);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.__target.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.__target.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(89);var n=r(6),o=r(9);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.__target.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(6);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(104)["default"];Object.defineProperty(e,"__esModule",{value:!0}),r(89);var o=r(9),i=r(6);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.__target.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(37)["default"],o=r(105)["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(106),__esModule:!0}},function(t,e,r){r(39),r(56),t.exports=r(107)},function(t,e,r){var n=r(63),o=r(51)("iterator"),i=r(43);t.exports=r(17).isIterable=function(t){var e=Object(t);return o in e||"@@iterator"in e||i.hasOwnProperty(n(e))}},function(t,e,r){"use strict";var n=r(10)["default"],o=r(27)["default"];Object.defineProperty(e,"__esModule",{value:!0});var i=r(109);n(e,o(i,n));var a=r(110);n(e,o(a,n));var u=r(111);n(e,o(u,n));var s=r(112);n(e,o(s,n));var c=r(86);n(e,o(c,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(6);e.SmoothScrollbar=o.SmoothScrollbar,Object.defineProperty(o.SmoothScrollbar.prototype,"$on",{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(6),i=r(9);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(98);var o=r(6);e.SmoothScrollbar=o.SmoothScrollbar,Object.defineProperty(o.SmoothScrollbar.prototype,"__initScrollbar",{value:n,writable:!0,configurable:!0})},function(t,e,r){"use strict";function n(){Object.defineProperty(this,"__children",{value:[].concat(o(this.__target.content.querySelectorAll("[scrollbar]"))),writable:!0})}var o=r(69)["default"];Object.defineProperty(e,"__esModule",{value:!0});var i=r(6);e.SmoothScrollbar=i.SmoothScrollbar,Object.defineProperty(i.SmoothScrollbar.prototype,"__updateChildren",{value:n,writable:!0,configurable:!0})}]);
{
"name": "angular-smooth-scrollbar",
"version": "0.3.9",
"version": "0.4.0",
"description": "An angular module that allows you customize smooth scrollbars",

@@ -27,3 +27,4 @@ "main": "dist/smooth_scrollbar.js",

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

@@ -30,0 +31,0 @@ "devDependencies": {

@@ -39,11 +39,21 @@ # angular-smooth-scrollbar

```html
<section scrollbar="scrollbarName">
...
</section>
```
- As element:
```html
<scrollbar name="scrollbarName">
...
</scrollbar>
```
- As attribute:
```html
<section scrollbar="scrollbarName">
...
</section>
```
### Available Options
- name**(required)**: passed through `scrollbar` attribute, determine the name for this scrollbar instance.
- name: passed through `scrollbar` or `name` attribute, determine the name for this scrollbar instance.
- speed: scrolling speed, default is `1`.

@@ -56,3 +66,3 @@ - stepLength: wheel scroll step length(px/delta), default is `40`.

You can access your scrollbar instances through `ScrollbarService`.
By given scrollbar a name via attribute, you can access your scrollbar instances through `ScrollbarService`.

@@ -92,3 +102,3 @@ ### ScrollbarService.getInstance( name )

If you don't do this manually, scrollbar will be updated everytime you start scrolling (a rest(100ms) after continuous scrolling will terminate current scroll action, and when you start scrolling again, `update` will be called).
If you don't do this manually, scrollbar will be updated with 100ms debounce.

@@ -95,0 +105,0 @@ Callback will be invoked with scroolbar instance after scrollbar updated.

@@ -94,3 +94,2 @@ import { SmoothScrollbar } from './smooth_scrollbar';

scope: {
name: '@scrollbar',
speed: '@',

@@ -101,5 +100,5 @@ stepLength: '@',

},
link(scope, elem) {
let { name, speed, stepLength, easingDuration, easingCurve } = scope;
if (!name) throw new Error('scrollbar name is required');
link(scope, elem, attrs) {
const { speed, stepLength, easingDuration, easingCurve } = scope;
const name = attrs.scrollbar || attrs.name || Date.now().toString(32);

@@ -106,0 +105,0 @@ let scrollbar = ScrollbarService.createInstance(name, elem[0], {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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