From 1ca1d62118d57ac08227ab48e910ca8638f90fd5 Mon Sep 17 00:00:00 2001 From: Wojciech Sielski Date: Thu, 17 Mar 2016 11:53:15 +0100 Subject: [PATCH 1/3] swipeTransitionDuration - additional parameter allowing for specify duration of transition for swipe action --- dist/angular-carousel.js | 11 ++++++----- src/directives/rn-carousel.js | 11 ++++++----- 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/dist/angular-carousel.js b/dist/angular-carousel.js index b496994..489d747 100644 --- a/dist/angular-carousel.js +++ b/dist/angular-carousel.js @@ -267,6 +267,7 @@ angular.module('angular-carousel').run(['$templateCache', function($templateCach transitionType: iAttributes.rnCarouselTransition || 'slide', transitionEasing: iAttributes.rnCarouselEasing || 'easeTo', transitionDuration: parseInt(iAttributes.rnCarouselDuration, 10) || 300, + swipeTransitionDuration: parseInt(iAttributes.rnCarouselSwipeTransitionDuration, 10) || false, isSequential: true, autoSlideDuration: 3, bufferSize: 5, @@ -346,7 +347,7 @@ angular.module('angular-carousel').run(['$templateCache', function($templateCach goToSlide(index, slideOptions); }; - function goToSlide(index, slideOptions) { + function goToSlide(index, slideOptions, isSwipe) { //console.log('goToSlide', arguments); // move a to the given slide index if (index === undefined) { @@ -371,7 +372,7 @@ angular.module('angular-carousel').run(['$templateCache', function($templateCach to: { 'x': index * -100 }, - duration: options.transitionDuration, + duration: (isSwipe && options.swipeTransitionDuration ? options.swipeTransitionDuration : options.transitionDuration), easing: options.transitionEasing, step: function(state) { if (isFinite(state.x)) { @@ -599,14 +600,14 @@ angular.module('angular-carousel').run(['$templateCache', function($templateCach destination = (scope.carouselIndex + moveOffset); - goToSlide(destination); + goToSlide(destination, {}, 1); if(iAttributes.rnCarouselOnInfiniteScrollRight!==undefined && slidesMove === 0 && scope.carouselIndex !== 0) { $parse(iAttributes.rnCarouselOnInfiniteScrollRight)(scope) - goToSlide(0); + goToSlide(0, {}, 1); } if(iAttributes.rnCarouselOnInfiniteScrollLeft!==undefined && slidesMove === 0 && scope.carouselIndex === 0 && moveOffset === 0) { $parse(iAttributes.rnCarouselOnInfiniteScrollLeft)(scope) - goToSlide(currentSlides.length); + goToSlide(currentSlides.length, {}, 1); } } else { diff --git a/src/directives/rn-carousel.js b/src/directives/rn-carousel.js index 7f13d03..b03bdce 100755 --- a/src/directives/rn-carousel.js +++ b/src/directives/rn-carousel.js @@ -188,6 +188,7 @@ transitionType: iAttributes.rnCarouselTransition || 'slide', transitionEasing: iAttributes.rnCarouselEasing || 'easeTo', transitionDuration: parseInt(iAttributes.rnCarouselDuration, 10) || 300, + swipeTransitionDuration: parseInt(iAttributes.rnCarouselSwipeTransitionDuration, 10) || false, isSequential: true, autoSlideDuration: 3, bufferSize: 5, @@ -267,7 +268,7 @@ goToSlide(index, slideOptions); }; - function goToSlide(index, slideOptions) { + function goToSlide(index, slideOptions, isSwipe) { //console.log('goToSlide', arguments); // move a to the given slide index if (index === undefined) { @@ -292,7 +293,7 @@ to: { 'x': index * -100 }, - duration: options.transitionDuration, + duration: (isSwipe && options.swipeTransitionDuration ? options.swipeTransitionDuration : options.transitionDuration), easing: options.transitionEasing, step: function(state) { if (isFinite(state.x)) { @@ -520,14 +521,14 @@ destination = (scope.carouselIndex + moveOffset); - goToSlide(destination); + goToSlide(destination, {}, 1); if(iAttributes.rnCarouselOnInfiniteScrollRight!==undefined && slidesMove === 0 && scope.carouselIndex !== 0) { $parse(iAttributes.rnCarouselOnInfiniteScrollRight)(scope) - goToSlide(0); + goToSlide(0, {}, 1); } if(iAttributes.rnCarouselOnInfiniteScrollLeft!==undefined && slidesMove === 0 && scope.carouselIndex === 0 && moveOffset === 0) { $parse(iAttributes.rnCarouselOnInfiniteScrollLeft)(scope) - goToSlide(currentSlides.length); + goToSlide(currentSlides.length, {}, 1); } } else { From bed8cc71b570a4613a66f41b45f963d9ad7a6208 Mon Sep 17 00:00:00 2001 From: Wojciech Sielski Date: Thu, 17 Mar 2016 11:55:52 +0100 Subject: [PATCH 2/3] Readme file update --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 609044c..515bab3 100644 --- a/README.md +++ b/README.md @@ -72,6 +72,7 @@ angular.module('MyApp', ['angular-carousel']); library](https://github.com/jeremyckahn/shifty/blob/master/src/shifty.formulas.js) (default=easeIn) - `rn-carousel-duration`: add this attribute to set the duration of the transition (default=300) - `rn-carousel-controls-allow-loop`: add this attribute to allow looping through slides from prev/next controls + - `rn-carousel-swipe-transition-duration`: add this attribute to set the duration of the transition for swipe actions (if not given default carousel transition duration is taken) ## Indicators From b699fac9c6c1b14d24a07f110f7388d071916517 Mon Sep 17 00:00:00 2001 From: Wojciech Sielski Date: Fri, 18 Mar 2016 15:03:03 +0100 Subject: [PATCH 3/3] min file updated --- dist/angular-carousel.js | 2 +- dist/angular-carousel.min.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dist/angular-carousel.js b/dist/angular-carousel.js index 489d747..50e9da0 100644 --- a/dist/angular-carousel.js +++ b/dist/angular-carousel.js @@ -1,6 +1,6 @@ /** * Angular Carousel - Mobile friendly touch carousel for AngularJS - * @version v1.0.1 - 2016-03-05 + * @version v1.0.1 - 2016-03-18 * @link http://revolunet.github.com/angular-carousel * @author Julien Bouquillon * @license MIT License, http://www.opensource.org/licenses/MIT diff --git a/dist/angular-carousel.min.js b/dist/angular-carousel.min.js index f67c467..59bb563 100644 --- a/dist/angular-carousel.min.js +++ b/dist/angular-carousel.min.js @@ -1,8 +1,8 @@ /** * Angular Carousel - Mobile friendly touch carousel for AngularJS - * @version v1.0.1 - 2016-03-05 + * @version v1.0.1 - 2016-03-18 * @link http://revolunet.github.com/angular-carousel * @author Julien Bouquillon * @license MIT License, http://www.opensource.org/licenses/MIT */ -angular.module("angular-carousel",["ngTouch","angular-carousel.shifty"]),angular.module("angular-carousel").directive("rnCarouselAutoSlide",["$interval",function(a){return{restrict:"A",link:function(b,c,d){var e=function(){b.autoSlider&&(a.cancel(b.autoSlider),b.autoSlider=null)},f=function(){b.autoSlide()};b.$watch("carouselIndex",f),d.hasOwnProperty("rnCarouselPauseOnHover")&&"false"!==d.rnCarouselPauseOnHover&&(c.on("mouseenter",e),c.on("mouseleave",f)),b.$on("$destroy",function(){e(),c.off("mouseenter",e),c.off("mouseleave",f)})}}}]),angular.module("angular-carousel").directive("rnCarouselIndicators",["$parse",function(a){return{restrict:"A",scope:{slides:"=",index:"=rnCarouselIndex"},templateUrl:"carousel-indicators.html",link:function(b,c,d){var e=a(d.rnCarouselIndex);b.goToSlide=function(a){e.assign(b.$parent.$parent,a)}}}}]),angular.module("angular-carousel").run(["$templateCache",function(a){a.put("carousel-indicators.html",'')}]),function(){"use strict";angular.module("angular-carousel").service("DeviceCapabilities",function(){function a(){var a="transform",b="webkitTransform";return"undefined"!=typeof document.body.style[a]?["webkit","moz","o","ms"].every(function(b){var c="-"+b+"-transform";return"undefined"!=typeof document.body.style[c]?(a=c,!1):!0}):a="undefined"!=typeof document.body.style[b]?"-webkit-transform":void 0,a}function b(){var a,b=document.createElement("p"),c={webkitTransform:"-webkit-transform",msTransform:"-ms-transform",transform:"transform"};document.body.insertBefore(b,null);for(var d in c)void 0!==b.style[d]&&(b.style[d]="translate3d(1px,1px,1px)",a=window.getComputedStyle(b).getPropertyValue(c[d]));return document.body.removeChild(b),void 0!==a&&a.length>0&&"none"!==a}return{has3d:b(),transformProperty:a()}}).service("computeCarouselSlideStyle",["DeviceCapabilities",function(a){return function(b,c,d){var e,f={display:"inline-block"},g=100*b+c,h=a.has3d?"translate3d("+g+"%, 0, 0)":"translate3d("+g+"%, 0)",i=(100-Math.abs(g))/100;if(a.transformProperty)if("fadeAndSlide"==d)f[a.transformProperty]=h,e=0,Math.abs(g)<100&&(e=.3+.7*i),f.opacity=e;else if("hexagon"==d){var j=100,k=0,l=60*(i-1);j=-100*b>c?100:0,k=-100*b>c?l:-l,f[a.transformProperty]=h+" rotateY("+k+"deg)",f[a.transformProperty+"-origin"]=j+"% 50%"}else if("zoom"==d){f[a.transformProperty]=h;var m=1;Math.abs(g)<100&&(m=1+2*(1-i)),f[a.transformProperty]+=" scale("+m+")",f[a.transformProperty+"-origin"]="50% 50%",e=0,Math.abs(g)<100&&(e=.3+.7*i),f.opacity=e}else f[a.transformProperty]=h;else f["margin-left"]=g+"%";return f}}]).service("createStyleString",function(){return function(a){var b=[];return angular.forEach(a,function(a,c){b.push(c+":"+a)}),b.join(";")}}).directive("rnCarousel",["$swipe","$window","$document","$parse","$compile","$timeout","$interval","computeCarouselSlideStyle","createStyleString","Tweenable",function(a,b,c,d,e,f,g,h,i,j){function k(a,b,c){var d=c;return a.every(function(a,c){return angular.equals(a,b)?(d=c,!1):!0}),d}var l=0;b.requestAnimationFrame||b.webkitRequestAnimationFrame||b.mozRequestAnimationFrame;return{restrict:"A",scope:!0,compile:function(m,n){var o,p,q=m[0].querySelector("li"),r=q?q.attributes:[],s=!1,t=!1;return["ng-repeat","data-ng-repeat","ng:repeat","x-ng-repeat"].every(function(a){var b=r[a];if(angular.isDefined(b)){var c=b.value.match(/^\s*([\s\S]+?)\s+in\s+([\s\S]+?)(?:\s+track\s+by\s+([\s\S]+?))?\s*$/),d=c[3];if(o=c[1],p=c[2],o)return angular.isDefined(n.rnCarouselBuffered)&&(t=!0,b.value=o+" in "+p+"|carouselSlice:carouselBufferIndex:carouselBufferSize",d&&(b.value+=" track by "+d)),s=!0,!1}return!0}),function(m,o,q,r){function u(){return o[0].querySelectorAll("ul[rn-carousel] > li")}function v(a){O=!0,E({x:a.clientX,y:a.clientY},a)}function w(a){var b=100*m.carouselBufferIndex+a;angular.forEach(u(),function(a,c){a.style.cssText=i(h(c,b,L.transitionType))})}function x(a,b){if(void 0===a&&(a=m.carouselIndex),b=b||{},b.animate===!1||"none"===L.transitionType)return T=!1,N=-100*a,m.carouselIndex=a,void F();T=!0;var c=new j;c.tween({from:{x:N},to:{x:-100*a},duration:L.transitionDuration,easing:L.transitionEasing,step:function(a){isFinite(a.x)&&w(a.x)},finish:function(){m.$apply(function(){m.carouselIndex=a,N=-100*a,F(),f(function(){T=!1},0,!1)})}})}function y(){var a=o[0].getBoundingClientRect();return a.width?a.width:a.right-a.left}function z(){Q=y()}function A(){S||(S=!0,c.bind("mouseup",v))}function B(){S&&(S=!1,c.unbind("mouseup",v))}function C(a,b){return T||P.length<=1?void 0:(z(),R=o[0].querySelector("li").getBoundingClientRect().left,H=!0,I=a.x,!1)}function D(a,b){var c,d;if(A(),H&&(c=a.x,d=I-c,d>2||-2>d)){O=!0;var e=N+100*-d/Q;w(e)}return!1}function E(a,b,c){if((!b||O)&&(B(),H=!1,O=!1,J=I-a.x,0!==J&&!T))if(N+=100*-J/Q,L.isSequential){var e=L.moveTreshold*Q,f=-J,g=-Math[f>=0?"ceil":"floor"](f/Q),h=Math.abs(f)>e;P&&g+m.carouselIndex>=P.length&&(g=P.length-1-m.carouselIndex),g+m.carouselIndex<0&&(g=-m.carouselIndex);var i=h?g:0;J=m.carouselIndex+i,x(J),void 0!==q.rnCarouselOnInfiniteScrollRight&&0===g&&0!==m.carouselIndex&&(d(q.rnCarouselOnInfiniteScrollRight)(m),x(0)),void 0!==q.rnCarouselOnInfiniteScrollLeft&&0===g&&0===m.carouselIndex&&0===i&&(d(q.rnCarouselOnInfiniteScrollLeft)(m),x(P.length))}else m.$apply(function(){m.carouselIndex=parseInt(-N/100,10),F()})}function F(){var a=0,b=(m.carouselBufferSize-1)/2;t?(a=m.carouselIndex<=b?0:P&&P.lengthP.length-m.carouselBufferSize?P.length-m.carouselBufferSize:m.carouselIndex-b,m.carouselBufferIndex=a,f(function(){w(N)},0,!1)):f(function(){w(N)},0,!1)}function G(){z(),x()}l++;var H,I,J,K={transitionType:q.rnCarouselTransition||"slide",transitionEasing:q.rnCarouselEasing||"easeTo",transitionDuration:parseInt(q.rnCarouselDuration,10)||300,isSequential:!0,autoSlideDuration:3,bufferSize:5,moveTreshold:.1,defaultIndex:0},L=angular.extend({},K),M=!1,N=0,O=!1,P=[],Q=null,R=null,S=!1,T=!1;"true"!==q.rnSwipeDisabled&&a.bind(o,{start:C,move:D,end:E,cancel:function(a){E({},a)}}),m.nextSlide=function(a){var b=m.carouselIndex+1;b>P.length-1&&(b=0),T||x(b,a)},m.prevSlide=function(a){var b=m.carouselIndex-1;0>b&&(b=P.length-1),x(b,a)};var U=!0;if(m.carouselIndex=0,s||(P=[],angular.forEach(u(),function(a,b){P.push({id:b})})),void 0!==q.rnCarouselControls){var V=(s?m.$eval(p.replace("::","")).length:P.length)>1?angular.isDefined(n.rnCarouselControlsAllowLoop):!1,W=s?"("+p.replace("::","")+").length - 1":P.length-1,X='';o.parent().append(e(angular.element(X))(m))}if(void 0!==q.rnCarouselAutoSlide){var Y=parseInt(q.rnCarouselAutoSlide,10)||L.autoSlideDuration;m.autoSlide=function(){m.autoSlider&&(g.cancel(m.autoSlider),m.autoSlider=null),m.autoSlider=g(function(){T||H||m.nextSlide()},1e3*Y)}}if(q.rnCarouselDefaultIndex){var Z=d(q.rnCarouselDefaultIndex);L.defaultIndex=Z(m.$parent)||0}if(q.rnCarouselIndex){var $=function(a){_.assign(m.$parent,a)},_=d(q.rnCarouselIndex);angular.isFunction(_.assign)?(m.$watch("carouselIndex",function(a){$(a)}),m.$parent.$watch(_,function(a,b){void 0!==a&&null!==a&&(P&&P.length>0&&a>=P.length?(a=P.length-1,$(a)):P&&0>a&&(a=0,$(a)),T||x(a,{animate:!U}),U=!1)}),M=!0,L.defaultIndex&&x(L.defaultIndex,{animate:!U})):isNaN(q.rnCarouselIndex)||x(parseInt(q.rnCarouselIndex,10),{animate:!1})}else x(L.defaultIndex,{animate:!U}),U=!1;if(q.rnCarouselLocked&&m.$watch(q.rnCarouselLocked,function(a,b){T=a===!0?!0:!1}),s){var aa=void 0!==q.rnCarouselDeepWatch;m[aa?"$watch":"$watchCollection"](p,function(a,b){if(P=a,!angular.isArray(P))throw Error("the slides collection must be an Array");if(aa&&angular.isArray(a)){var c=b[m.carouselIndex],d=k(a,c,m.carouselIndex);x(d,{animate:!1})}else x(m.carouselIndex,{animate:!1})},!0)}m.$on("$destroy",function(){B()}),m.carouselBufferIndex=0,m.carouselBufferSize=L.bufferSize;var ba=angular.element(b);ba.bind("orientationchange",G),ba.bind("resize",G),m.$on("$destroy",function(){B(),ba.unbind("orientationchange",G),ba.unbind("resize",G)})}}}}])}(),angular.module("angular-carousel.shifty",[]).factory("Tweenable",function(){return function(a){var b=function(){"use strict";function b(){}function c(a,b){var c;for(c in a)Object.hasOwnProperty.call(a,c)&&b(c)}function d(a,b){return c(b,function(c){a[c]=b[c]}),a}function e(a,b){c(b,function(c){"undefined"==typeof a[c]&&(a[c]=b[c])})}function f(a,b,c,d,e,f,h){var i,j=(a-f)/e;for(i in b)b.hasOwnProperty(i)&&(b[i]=g(c[i],d[i],l[h[i]],j));return b}function g(a,b,c,d){return a+(b-a)*c(d)}function h(a,b){var d=k.prototype.filter,e=a._filterArgs;c(d,function(c){"undefined"!=typeof d[c][b]&&d[c][b].apply(a,e)})}function i(a,b,c,d,e,g,i,j,k){s=b+c,t=Math.min(r(),s),u=t>=s,v=c-(s-t),a.isPlaying()&&!u?(a._scheduleId=k(a._timeoutHandler,p),h(a,"beforeTween"),f(t,d,e,g,c,b,i),h(a,"afterTween"),j(d,a._attachment,v)):u&&(j(g,a._attachment,v),a.stop(!0))}function j(a,b){var d={};return"string"==typeof b?c(a,function(a){d[a]=b}):c(a,function(a){d[a]||(d[a]=b[a]||n)}),d}function k(a,b){this._currentState=a||{},this._configured=!1,this._scheduleFunction=m,"undefined"!=typeof b&&this.setConfig(b)}var l,m,n="linear",o=500,p=1e3/60,q=Date.now?Date.now:function(){return+new Date},r="undefined"!=typeof SHIFTY_DEBUG_NOW?SHIFTY_DEBUG_NOW:q;m="undefined"!=typeof window?window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||window.mozCancelRequestAnimationFrame&&window.mozRequestAnimationFrame||setTimeout:setTimeout;var s,t,u,v;return k.prototype.tween=function(a){return this._isTweening?this:(void 0===a&&this._configured||this.setConfig(a),this._timestamp=r(),this._start(this.get(),this._attachment),this.resume())},k.prototype.setConfig=function(a){a=a||{},this._configured=!0,this._attachment=a.attachment,this._pausedAtTime=null,this._scheduleId=null,this._start=a.start||b,this._step=a.step||b,this._finish=a.finish||b,this._duration=a.duration||o,this._currentState=a.from||this.get(),this._originalState=this.get(),this._targetState=a.to||this.get();var c=this._currentState,d=this._targetState;return e(d,c),this._easing=j(c,a.easing||n),this._filterArgs=[c,this._originalState,d,this._easing],h(this,"tweenCreated"),this},k.prototype.get=function(){return d({},this._currentState)},k.prototype.set=function(a){this._currentState=a},k.prototype.pause=function(){return this._pausedAtTime=r(),this._isPaused=!0,this},k.prototype.resume=function(){this._isPaused&&(this._timestamp+=r()-this._pausedAtTime),this._isPaused=!1,this._isTweening=!0;var a=this;return this._timeoutHandler=function(){i(a,a._timestamp,a._duration,a._currentState,a._originalState,a._targetState,a._easing,a._step,a._scheduleFunction)},this._timeoutHandler(),this},k.prototype.seek=function(a){return this._timestamp=r()-a,this.isPlaying()||(this._isTweening=!0,this._isPaused=!1,i(this,this._timestamp,this._duration,this._currentState,this._originalState,this._targetState,this._easing,this._step,this._scheduleFunction),this._timeoutHandler(),this.pause()),this},k.prototype.stop=function(c){return this._isTweening=!1,this._isPaused=!1,this._timeoutHandler=b,(a.cancelAnimationFrame||a.webkitCancelAnimationFrame||a.oCancelAnimationFrame||a.msCancelAnimationFrame||a.mozCancelRequestAnimationFrame||a.clearTimeout)(this._scheduleId),c&&(d(this._currentState,this._targetState),h(this,"afterTweenEnd"),this._finish.call(this,this._currentState,this._attachment)),this},k.prototype.isPlaying=function(){return this._isTweening&&!this._isPaused},k.prototype.setScheduleFunction=function(a){this._scheduleFunction=a},k.prototype.dispose=function(){var a;for(a in this)this.hasOwnProperty(a)&&delete this[a]},k.prototype.filter={},k.prototype.formula={linear:function(a){return a}},l=k.prototype.formula,d(k,{now:r,each:c,tweenProps:f,tweenProp:g,applyFilter:h,shallowCopy:d,defaults:e,composeEasingObject:j}),a.Tweenable=k,k}();!function(){b.shallowCopy(b.prototype.formula,{easeInQuad:function(a){return Math.pow(a,2)},easeOutQuad:function(a){return-(Math.pow(a-1,2)-1)},easeInOutQuad:function(a){return(a/=.5)<1?.5*Math.pow(a,2):-.5*((a-=2)*a-2)},easeInCubic:function(a){return Math.pow(a,3)},easeOutCubic:function(a){return Math.pow(a-1,3)+1},easeInOutCubic:function(a){return(a/=.5)<1?.5*Math.pow(a,3):.5*(Math.pow(a-2,3)+2)},easeInQuart:function(a){return Math.pow(a,4)},easeOutQuart:function(a){return-(Math.pow(a-1,4)-1)},easeInOutQuart:function(a){return(a/=.5)<1?.5*Math.pow(a,4):-.5*((a-=2)*Math.pow(a,3)-2)},easeInQuint:function(a){return Math.pow(a,5)},easeOutQuint:function(a){return Math.pow(a-1,5)+1},easeInOutQuint:function(a){return(a/=.5)<1?.5*Math.pow(a,5):.5*(Math.pow(a-2,5)+2)},easeInSine:function(a){return-Math.cos(a*(Math.PI/2))+1},easeOutSine:function(a){return Math.sin(a*(Math.PI/2))},easeInOutSine:function(a){return-.5*(Math.cos(Math.PI*a)-1)},easeInExpo:function(a){return 0===a?0:Math.pow(2,10*(a-1))},easeOutExpo:function(a){return 1===a?1:-Math.pow(2,-10*a)+1},easeInOutExpo:function(a){return 0===a?0:1===a?1:(a/=.5)<1?.5*Math.pow(2,10*(a-1)):.5*(-Math.pow(2,-10*--a)+2)},easeInCirc:function(a){return-(Math.sqrt(1-a*a)-1)},easeOutCirc:function(a){return Math.sqrt(1-Math.pow(a-1,2))},easeInOutCirc:function(a){return(a/=.5)<1?-.5*(Math.sqrt(1-a*a)-1):.5*(Math.sqrt(1-(a-=2)*a)+1)},easeOutBounce:function(a){return 1/2.75>a?7.5625*a*a:2/2.75>a?7.5625*(a-=1.5/2.75)*a+.75:2.5/2.75>a?7.5625*(a-=2.25/2.75)*a+.9375:7.5625*(a-=2.625/2.75)*a+.984375},easeInBack:function(a){var b=1.70158;return a*a*((b+1)*a-b)},easeOutBack:function(a){var b=1.70158;return(a-=1)*a*((b+1)*a+b)+1},easeInOutBack:function(a){var b=1.70158;return(a/=.5)<1?.5*(a*a*(((b*=1.525)+1)*a-b)):.5*((a-=2)*a*(((b*=1.525)+1)*a+b)+2)},elastic:function(a){return-1*Math.pow(4,-8*a)*Math.sin((6*a-1)*(2*Math.PI)/2)+1},swingFromTo:function(a){var b=1.70158;return(a/=.5)<1?.5*(a*a*(((b*=1.525)+1)*a-b)):.5*((a-=2)*a*(((b*=1.525)+1)*a+b)+2)},swingFrom:function(a){var b=1.70158;return a*a*((b+1)*a-b)},swingTo:function(a){var b=1.70158;return(a-=1)*a*((b+1)*a+b)+1},bounce:function(a){return 1/2.75>a?7.5625*a*a:2/2.75>a?7.5625*(a-=1.5/2.75)*a+.75:2.5/2.75>a?7.5625*(a-=2.25/2.75)*a+.9375:7.5625*(a-=2.625/2.75)*a+.984375},bouncePast:function(a){return 1/2.75>a?7.5625*a*a:2/2.75>a?2-(7.5625*(a-=1.5/2.75)*a+.75):2.5/2.75>a?2-(7.5625*(a-=2.25/2.75)*a+.9375):2-(7.5625*(a-=2.625/2.75)*a+.984375)},easeFromTo:function(a){return(a/=.5)<1?.5*Math.pow(a,4):-.5*((a-=2)*Math.pow(a,3)-2)},easeFrom:function(a){return Math.pow(a,4)},easeTo:function(a){return Math.pow(a,.25)}})}(),function(){function a(a,b,c,d,e,f){function g(a){return((n*a+o)*a+p)*a}function h(a){return((q*a+r)*a+s)*a}function i(a){return(3*n*a+2*o)*a+p}function j(a){return 1/(200*a)}function k(a,b){return h(m(a,b))}function l(a){return a>=0?a:0-a}function m(a,b){var c,d,e,f,h,j;for(e=a,j=0;8>j;j++){if(f=g(e)-a,l(f)e)return c;if(e>d)return d;for(;d>c;){if(f=g(e),l(f-a)f?c=e:d=e,e=.5*(d-c)+c}return e}var n=0,o=0,p=0,q=0,r=0,s=0;return p=3*b,o=3*(d-b)-p,n=1-p-o,s=3*c,r=3*(e-c)-s,q=1-s-r,k(a,j(f))}function c(b,c,d,e){return function(f){return a(f,b,c,d,e,1)}}b.setBezierFunction=function(a,d,e,f,g){var h=c(d,e,f,g);return h.x1=d,h.y1=e,h.x2=f,h.y2=g,b.prototype.formula[a]=h},b.unsetBezierFunction=function(a){delete b.prototype.formula[a]}}(),function(){function a(a,c,d,e,f){return b.tweenProps(e,c,a,d,1,0,f)}var c=new b;c._filterArgs=[],b.interpolate=function(d,e,f,g){var h=b.shallowCopy({},d),i=b.composeEasingObject(d,g||"linear");c.set({});var j=c._filterArgs;j.length=0,j[0]=h,j[1]=d,j[2]=e,j[3]=i,b.applyFilter(c,"tweenCreated"),b.applyFilter(c,"beforeTween");var k=a(d,h,e,f,i);return b.applyFilter(c,"afterTween"),k}}(),function(a){function b(a,b){B.length=0;var c,d=a.length;for(c=0;d>c;c++)B.push("_"+b+"_"+c);return B}function c(a){var b=a.match(v);return b?(1===b.length||a[0].match(u))&&b.unshift(""):b=["",""],b.join(A)}function d(b){a.each(b,function(a){var c=b[a];"string"==typeof c&&c.match(z)&&(b[a]=e(c))})}function e(a){return i(z,a,f)}function f(a){var b=g(a);return"rgb("+b[0]+","+b[1]+","+b[2]+")"}function g(a){return a=a.replace(/#/,""),3===a.length&&(a=a.split(""),a=a[0]+a[0]+a[1]+a[1]+a[2]+a[2]),C[0]=h(a.substr(0,2)),C[1]=h(a.substr(2,2)),C[2]=h(a.substr(4,2)),C}function h(a){return parseInt(a,16)}function i(a,b,c){var d=b.match(a),e=b.replace(a,A);if(d)for(var f,g=d.length,h=0;g>h;h++)f=d.shift(),e=e.replace(A,c(f));return e}function j(a){return i(x,a,k)}function k(a){for(var b=a.match(w),c=b.length,d=a.match(y)[0],e=0;c>e;e++)d+=parseInt(b[e],10)+",";return d=d.slice(0,-1)+")"}function l(d){var e={};return a.each(d,function(a){var f=d[a];if("string"==typeof f){var g=r(f);e[a]={formatString:c(f),chunkNames:b(g,a)}}}),e}function m(b,c){a.each(c,function(a){for(var d=b[a],e=r(d),f=e.length,g=0;f>g;g++)b[c[a].chunkNames[g]]=+e[g];delete b[a]})}function n(b,c){a.each(c,function(a){var d=b[a],e=o(b,c[a].chunkNames),f=p(e,c[a].chunkNames);d=q(c[a].formatString,f),b[a]=j(d)})}function o(a,b){for(var c,d={},e=b.length,f=0;e>f;f++)c=b[f],d[c]=a[c],delete a[c];return d}function p(a,b){D.length=0;for(var c=b.length,d=0;c>d;d++)D.push(a[b[d]]);return D}function q(a,b){for(var c=a,d=b.length,e=0;d>e;e++)c=c.replace(A,+b[e].toFixed(4));return c}function r(a){return a.match(w)}function s(b,c){a.each(c,function(a){for(var d=c[a],e=d.chunkNames,f=e.length,g=b[a].split(" "),h=g[g.length-1],i=0;f>i;i++)b[e[i]]=g[i]||h;delete b[a]})}function t(b,c){a.each(c,function(a){for(var d=c[a],e=d.chunkNames,f=e.length,g="",h=0;f>h;h++)g+=" "+b[e[h]],delete b[e[h]];b[a]=g.substr(1)})}var u=/(\d|\-|\.)/,v=/([^\-0-9\.]+)/g,w=/[0-9.\-]+/g,x=new RegExp("rgb\\("+w.source+/,\s*/.source+w.source+/,\s*/.source+w.source+"\\)","g"),y=/^.*\(/,z=/#([0-9]|[a-f]){3,6}/gi,A="VAL",B=[],C=[],D=[];a.prototype.filter.token={tweenCreated:function(a,b,c,e){d(a),d(b),d(c),this._tokenData=l(a)},beforeTween:function(a,b,c,d){s(d,this._tokenData),m(a,this._tokenData),m(b,this._tokenData),m(c,this._tokenData)},afterTween:function(a,b,c,d){n(a,this._tokenData),n(b,this._tokenData),n(c,this._tokenData),t(d,this._tokenData)}}}(b)}(window),window.Tweenable}),function(){"use strict";angular.module("angular-carousel").filter("carouselSlice",function(){return function(a,b,c){return angular.isArray(a)?a.slice(b,b+c):angular.isObject(a)?a:void 0}})}(); \ No newline at end of file +angular.module("angular-carousel",["ngTouch","angular-carousel.shifty"]),angular.module("angular-carousel").directive("rnCarouselAutoSlide",["$interval",function(e){return{restrict:"A",link:function(n,t,r){var i=function(){n.autoSlider&&(e.cancel(n.autoSlider),n.autoSlider=null)},a=function(){n.autoSlide()};n.$watch("carouselIndex",a),r.hasOwnProperty("rnCarouselPauseOnHover")&&"false"!==r.rnCarouselPauseOnHover&&(t.on("mouseenter",i),t.on("mouseleave",a)),n.$on("$destroy",function(){i(),t.off("mouseenter",i),t.off("mouseleave",a)})}}}]),angular.module("angular-carousel").directive("rnCarouselIndicators",["$parse",function(e){return{restrict:"A",scope:{slides:"=",index:"=rnCarouselIndex"},templateUrl:"carousel-indicators.html",link:function(n,t,r){var i=e(r.rnCarouselIndex);n.goToSlide=function(e){i.assign(n.$parent.$parent,e)}}}}]),angular.module("angular-carousel").run(["$templateCache",function(e){e.put("carousel-indicators.html",'')}]),function(){"use strict";angular.module("angular-carousel").service("DeviceCapabilities",function(){function e(){var e="transform",n="webkitTransform";return"undefined"!=typeof document.body.style[e]?["webkit","moz","o","ms"].every(function(n){var t="-"+n+"-transform";return"undefined"!=typeof document.body.style[t]?(e=t,!1):!0}):e="undefined"!=typeof document.body.style[n]?"-webkit-transform":void 0,e}function n(){var e,n=document.createElement("p"),t={webkitTransform:"-webkit-transform",msTransform:"-ms-transform",transform:"transform"};document.body.insertBefore(n,null);for(var r in t)void 0!==n.style[r]&&(n.style[r]="translate3d(1px,1px,1px)",e=window.getComputedStyle(n).getPropertyValue(t[r]));return document.body.removeChild(n),void 0!==e&&e.length>0&&"none"!==e}return{has3d:n(),transformProperty:e()}}).service("computeCarouselSlideStyle",["DeviceCapabilities",function(e){return function(n,t,r){var i,a={display:"inline-block"},o=100*n+t,u=e.has3d?"translate3d("+o+"%, 0, 0)":"translate3d("+o+"%, 0)",s=(100-Math.abs(o))/100;if(e.transformProperty)if("fadeAndSlide"==r)a[e.transformProperty]=u,i=0,Math.abs(o)<100&&(i=.3+.7*s),a.opacity=i;else if("hexagon"==r){var c=100,l=0,f=60*(s-1);c=-100*n>t?100:0,l=-100*n>t?f:-f,a[e.transformProperty]=u+" rotateY("+l+"deg)",a[e.transformProperty+"-origin"]=c+"% 50%"}else if("zoom"==r){a[e.transformProperty]=u;var h=1;Math.abs(o)<100&&(h=1+2*(1-s)),a[e.transformProperty]+=" scale("+h+")",a[e.transformProperty+"-origin"]="50% 50%",i=0,Math.abs(o)<100&&(i=.3+.7*s),a.opacity=i}else a[e.transformProperty]=u;else a["margin-left"]=o+"%";return a}}]).service("createStyleString",function(){return function(e){var n=[];return angular.forEach(e,function(e,t){n.push(t+":"+e)}),n.join(";")}}).directive("rnCarousel",["$swipe","$window","$document","$parse","$compile","$timeout","$interval","computeCarouselSlideStyle","createStyleString","Tweenable",function(e,n,t,r,i,a,o,u,s,c){function l(e,n,t){var r=t;return e.every(function(e,t){return angular.equals(e,n)?(r=t,!1):!0}),r}var f=0;n.requestAnimationFrame||n.webkitRequestAnimationFrame||n.mozRequestAnimationFrame;return{restrict:"A",scope:!0,compile:function(h,d){var p,m,g=h[0].querySelector("li"),v=g?g.attributes:[],w=!1,y=!1;return["ng-repeat","data-ng-repeat","ng:repeat","x-ng-repeat"].every(function(e){var n=v[e];if(angular.isDefined(n)){var t=n.value.match(/^\s*([\s\S]+?)\s+in\s+([\s\S]+?)(?:\s+track\s+by\s+([\s\S]+?))?\s*$/),r=t[3];if(p=t[1],m=t[2],p)return angular.isDefined(d.rnCarouselBuffered)&&(y=!0,n.value=p+" in "+m+"|carouselSlice:carouselBufferIndex:carouselBufferSize",r&&(n.value+=" track by "+r)),w=!0,!1}return!0}),function(h,p,g,v){function _(){return p[0].querySelectorAll("ul[rn-carousel] > li")}function S(e){N=!0,F({x:e.clientX,y:e.clientY},e)}function I(e){var n=100*h.carouselBufferIndex+e;angular.forEach(_(),function(e,t){e.style.cssText=s(u(t,n,z.transitionType))})}function x(e,n,t){if(void 0===e&&(e=h.carouselIndex),n=n||{},n.animate===!1||"none"===z.transitionType)return Y=!1,R=-100*e,h.carouselIndex=e,void O();Y=!0;var r=new c;r.tween({from:{x:R},to:{x:-100*e},duration:t&&z.swipeTransitionDuration?z.swipeTransitionDuration:z.transitionDuration,easing:z.transitionEasing,step:function(e){isFinite(e.x)&&I(e.x)},finish:function(){h.$apply(function(){h.carouselIndex=e,R=-100*e,O(),a(function(){Y=!1},0,!1)})}})}function C(){var e=p[0].getBoundingClientRect();return e.width?e.width:e.right-e.left}function b(){Q=C()}function T(){L||(L=!0,t.bind("mouseup",S))}function M(){L&&(L=!1,t.unbind("mouseup",S))}function k(e,n){return Y||H.length<=1?void 0:(b(),j=p[0].querySelector("li").getBoundingClientRect().left,$=!0,D=e.x,!1)}function A(e,n){var t,r;if(T(),$&&(t=e.x,r=D-t,r>2||-2>r)){N=!0;var i=R+100*-r/Q;I(i)}return!1}function F(e,n,t){if((!n||N)&&(M(),$=!1,N=!1,B=D-e.x,0!==B&&!Y))if(R+=100*-B/Q,z.isSequential){var i=z.moveTreshold*Q,a=-B,o=-Math[a>=0?"ceil":"floor"](a/Q),u=Math.abs(a)>i;H&&o+h.carouselIndex>=H.length&&(o=H.length-1-h.carouselIndex),o+h.carouselIndex<0&&(o=-h.carouselIndex);var s=u?o:0;B=h.carouselIndex+s,x(B,{},1),void 0!==g.rnCarouselOnInfiniteScrollRight&&0===o&&0!==h.carouselIndex&&(r(g.rnCarouselOnInfiniteScrollRight)(h),x(0,{},1)),void 0!==g.rnCarouselOnInfiniteScrollLeft&&0===o&&0===h.carouselIndex&&0===s&&(r(g.rnCarouselOnInfiniteScrollLeft)(h),x(H.length,{},1))}else h.$apply(function(){h.carouselIndex=parseInt(-R/100,10),O()})}function O(){var e=0,n=(h.carouselBufferSize-1)/2;y?(e=h.carouselIndex<=n?0:H&&H.lengthH.length-h.carouselBufferSize?H.length-h.carouselBufferSize:h.carouselIndex-n,h.carouselBufferIndex=e,a(function(){I(R)},0,!1)):a(function(){I(R)},0,!1)}function P(){b(),x()}f++;var $,D,B,q={transitionType:g.rnCarouselTransition||"slide",transitionEasing:g.rnCarouselEasing||"easeTo",transitionDuration:parseInt(g.rnCarouselDuration,10)||300,swipeTransitionDuration:parseInt(g.rnCarouselSwipeTransitionDuration,10)||!1,isSequential:!0,autoSlideDuration:3,bufferSize:5,moveTreshold:.1,defaultIndex:0},z=angular.extend({},q),E=!1,R=0,N=!1,H=[],Q=null,j=null,L=!1,Y=!1;"true"!==g.rnSwipeDisabled&&e.bind(p,{start:k,move:A,end:F,cancel:function(e){F({},e)}}),h.nextSlide=function(e){var n=h.carouselIndex+1;n>H.length-1&&(n=0),Y||x(n,e)},h.prevSlide=function(e){var n=h.carouselIndex-1;0>n&&(n=H.length-1),x(n,e)};var U=!0;if(h.carouselIndex=0,w||(H=[],angular.forEach(_(),function(e,n){H.push({id:n})})),void 0!==g.rnCarouselControls){var W=(w?h.$eval(m.replace("::","")).length:H.length)>1?angular.isDefined(d.rnCarouselControlsAllowLoop):!1,G=w?"("+m.replace("::","")+").length - 1":H.length-1,V='';p.parent().append(i(angular.element(V))(h))}if(void 0!==g.rnCarouselAutoSlide){var X=parseInt(g.rnCarouselAutoSlide,10)||z.autoSlideDuration;h.autoSlide=function(){h.autoSlider&&(o.cancel(h.autoSlider),h.autoSlider=null),h.autoSlider=o(function(){Y||$||h.nextSlide()},1e3*X)}}if(g.rnCarouselDefaultIndex){var J=r(g.rnCarouselDefaultIndex);z.defaultIndex=J(h.$parent)||0}if(g.rnCarouselIndex){var K=function(e){Z.assign(h.$parent,e)},Z=r(g.rnCarouselIndex);angular.isFunction(Z.assign)?(h.$watch("carouselIndex",function(e){K(e)}),h.$parent.$watch(Z,function(e,n){void 0!==e&&null!==e&&(H&&H.length>0&&e>=H.length?(e=H.length-1,K(e)):H&&0>e&&(e=0,K(e)),Y||x(e,{animate:!U}),U=!1)}),E=!0,z.defaultIndex&&x(z.defaultIndex,{animate:!U})):isNaN(g.rnCarouselIndex)||x(parseInt(g.rnCarouselIndex,10),{animate:!1})}else x(z.defaultIndex,{animate:!U}),U=!1;if(g.rnCarouselLocked&&h.$watch(g.rnCarouselLocked,function(e,n){Y=e===!0?!0:!1}),w){var ee=void 0!==g.rnCarouselDeepWatch;h[ee?"$watch":"$watchCollection"](m,function(e,n){if(H=e,!angular.isArray(H))throw Error("the slides collection must be an Array");if(ee&&angular.isArray(e)){var t=n[h.carouselIndex],r=l(e,t,h.carouselIndex);x(r,{animate:!1})}else x(h.carouselIndex,{animate:!1})},!0)}h.$on("$destroy",function(){M()}),h.carouselBufferIndex=0,h.carouselBufferSize=z.bufferSize;var ne=angular.element(n);ne.bind("orientationchange",P),ne.bind("resize",P),h.$on("$destroy",function(){M(),ne.unbind("orientationchange",P),ne.unbind("resize",P)})}}}}])}(),angular.module("angular-carousel.shifty",[]).factory("Tweenable",function(){return function(e){var n=function(){"use strict";function n(){}function t(e,n){var t;for(t in e)Object.hasOwnProperty.call(e,t)&&n(t)}function r(e,n){return t(n,function(t){e[t]=n[t]}),e}function i(e,n){t(n,function(t){"undefined"==typeof e[t]&&(e[t]=n[t])})}function a(e,n,t,r,i,a,u){var s,c=(e-a)/i;for(s in n)n.hasOwnProperty(s)&&(n[s]=o(t[s],r[s],f[u[s]],c));return n}function o(e,n,t,r){return e+(n-e)*t(r)}function u(e,n){var r=l.prototype.filter,i=e._filterArgs;t(r,function(t){"undefined"!=typeof r[t][n]&&r[t][n].apply(e,i)})}function s(e,n,t,r,i,o,s,c,l){w=n+t,y=Math.min(v(),w),_=y>=w,S=t-(w-y),e.isPlaying()&&!_?(e._scheduleId=l(e._timeoutHandler,m),u(e,"beforeTween"),a(y,r,i,o,t,n,s),u(e,"afterTween"),c(r,e._attachment,S)):_&&(c(o,e._attachment,S),e.stop(!0))}function c(e,n){var r={};return"string"==typeof n?t(e,function(e){r[e]=n}):t(e,function(e){r[e]||(r[e]=n[e]||d)}),r}function l(e,n){this._currentState=e||{},this._configured=!1,this._scheduleFunction=h,"undefined"!=typeof n&&this.setConfig(n)}var f,h,d="linear",p=500,m=1e3/60,g=Date.now?Date.now:function(){return+new Date},v="undefined"!=typeof SHIFTY_DEBUG_NOW?SHIFTY_DEBUG_NOW:g;h="undefined"!=typeof window?window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||window.mozCancelRequestAnimationFrame&&window.mozRequestAnimationFrame||setTimeout:setTimeout;var w,y,_,S;return l.prototype.tween=function(e){return this._isTweening?this:(void 0===e&&this._configured||this.setConfig(e),this._timestamp=v(),this._start(this.get(),this._attachment),this.resume())},l.prototype.setConfig=function(e){e=e||{},this._configured=!0,this._attachment=e.attachment,this._pausedAtTime=null,this._scheduleId=null,this._start=e.start||n,this._step=e.step||n,this._finish=e.finish||n,this._duration=e.duration||p,this._currentState=e.from||this.get(),this._originalState=this.get(),this._targetState=e.to||this.get();var t=this._currentState,r=this._targetState;return i(r,t),this._easing=c(t,e.easing||d),this._filterArgs=[t,this._originalState,r,this._easing],u(this,"tweenCreated"),this},l.prototype.get=function(){return r({},this._currentState)},l.prototype.set=function(e){this._currentState=e},l.prototype.pause=function(){return this._pausedAtTime=v(),this._isPaused=!0,this},l.prototype.resume=function(){this._isPaused&&(this._timestamp+=v()-this._pausedAtTime),this._isPaused=!1,this._isTweening=!0;var e=this;return this._timeoutHandler=function(){s(e,e._timestamp,e._duration,e._currentState,e._originalState,e._targetState,e._easing,e._step,e._scheduleFunction)},this._timeoutHandler(),this},l.prototype.seek=function(e){return this._timestamp=v()-e,this.isPlaying()||(this._isTweening=!0,this._isPaused=!1,s(this,this._timestamp,this._duration,this._currentState,this._originalState,this._targetState,this._easing,this._step,this._scheduleFunction),this._timeoutHandler(),this.pause()),this},l.prototype.stop=function(t){return this._isTweening=!1,this._isPaused=!1,this._timeoutHandler=n,(e.cancelAnimationFrame||e.webkitCancelAnimationFrame||e.oCancelAnimationFrame||e.msCancelAnimationFrame||e.mozCancelRequestAnimationFrame||e.clearTimeout)(this._scheduleId),t&&(r(this._currentState,this._targetState),u(this,"afterTweenEnd"),this._finish.call(this,this._currentState,this._attachment)),this},l.prototype.isPlaying=function(){return this._isTweening&&!this._isPaused},l.prototype.setScheduleFunction=function(e){this._scheduleFunction=e},l.prototype.dispose=function(){var e;for(e in this)this.hasOwnProperty(e)&&delete this[e]},l.prototype.filter={},l.prototype.formula={linear:function(e){return e}},f=l.prototype.formula,r(l,{now:v,each:t,tweenProps:a,tweenProp:o,applyFilter:u,shallowCopy:r,defaults:i,composeEasingObject:c}),e.Tweenable=l,l}();!function(){n.shallowCopy(n.prototype.formula,{easeInQuad:function(e){return Math.pow(e,2)},easeOutQuad:function(e){return-(Math.pow(e-1,2)-1)},easeInOutQuad:function(e){return(e/=.5)<1?.5*Math.pow(e,2):-.5*((e-=2)*e-2)},easeInCubic:function(e){return Math.pow(e,3)},easeOutCubic:function(e){return Math.pow(e-1,3)+1},easeInOutCubic:function(e){return(e/=.5)<1?.5*Math.pow(e,3):.5*(Math.pow(e-2,3)+2)},easeInQuart:function(e){return Math.pow(e,4)},easeOutQuart:function(e){return-(Math.pow(e-1,4)-1)},easeInOutQuart:function(e){return(e/=.5)<1?.5*Math.pow(e,4):-.5*((e-=2)*Math.pow(e,3)-2)},easeInQuint:function(e){return Math.pow(e,5)},easeOutQuint:function(e){return Math.pow(e-1,5)+1},easeInOutQuint:function(e){return(e/=.5)<1?.5*Math.pow(e,5):.5*(Math.pow(e-2,5)+2)},easeInSine:function(e){return-Math.cos(e*(Math.PI/2))+1},easeOutSine:function(e){return Math.sin(e*(Math.PI/2))},easeInOutSine:function(e){return-.5*(Math.cos(Math.PI*e)-1)},easeInExpo:function(e){return 0===e?0:Math.pow(2,10*(e-1))},easeOutExpo:function(e){return 1===e?1:-Math.pow(2,-10*e)+1},easeInOutExpo:function(e){return 0===e?0:1===e?1:(e/=.5)<1?.5*Math.pow(2,10*(e-1)):.5*(-Math.pow(2,-10*--e)+2)},easeInCirc:function(e){return-(Math.sqrt(1-e*e)-1)},easeOutCirc:function(e){return Math.sqrt(1-Math.pow(e-1,2))},easeInOutCirc:function(e){return(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},easeOutBounce:function(e){return 1/2.75>e?7.5625*e*e:2/2.75>e?7.5625*(e-=1.5/2.75)*e+.75:2.5/2.75>e?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},easeInBack:function(e){var n=1.70158;return e*e*((n+1)*e-n)},easeOutBack:function(e){var n=1.70158;return(e-=1)*e*((n+1)*e+n)+1},easeInOutBack:function(e){var n=1.70158;return(e/=.5)<1?.5*(e*e*(((n*=1.525)+1)*e-n)):.5*((e-=2)*e*(((n*=1.525)+1)*e+n)+2)},elastic:function(e){return-1*Math.pow(4,-8*e)*Math.sin((6*e-1)*(2*Math.PI)/2)+1},swingFromTo:function(e){var n=1.70158;return(e/=.5)<1?.5*(e*e*(((n*=1.525)+1)*e-n)):.5*((e-=2)*e*(((n*=1.525)+1)*e+n)+2)},swingFrom:function(e){var n=1.70158;return e*e*((n+1)*e-n)},swingTo:function(e){var n=1.70158;return(e-=1)*e*((n+1)*e+n)+1},bounce:function(e){return 1/2.75>e?7.5625*e*e:2/2.75>e?7.5625*(e-=1.5/2.75)*e+.75:2.5/2.75>e?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},bouncePast:function(e){return 1/2.75>e?7.5625*e*e:2/2.75>e?2-(7.5625*(e-=1.5/2.75)*e+.75):2.5/2.75>e?2-(7.5625*(e-=2.25/2.75)*e+.9375):2-(7.5625*(e-=2.625/2.75)*e+.984375)},easeFromTo:function(e){return(e/=.5)<1?.5*Math.pow(e,4):-.5*((e-=2)*Math.pow(e,3)-2)},easeFrom:function(e){return Math.pow(e,4)},easeTo:function(e){return Math.pow(e,.25)}})}(),function(){function e(e,n,t,r,i,a){function o(e){return((d*e+p)*e+m)*e}function u(e){return((g*e+v)*e+w)*e}function s(e){return(3*d*e+2*p)*e+m}function c(e){return 1/(200*e)}function l(e,n){return u(h(e,n))}function f(e){return e>=0?e:0-e}function h(e,n){var t,r,i,a,u,c;for(i=e,c=0;8>c;c++){if(a=o(i)-e,f(a)i)return t;if(i>r)return r;for(;r>t;){if(a=o(i),f(a-e)a?t=i:r=i,i=.5*(r-t)+t}return i}var d=0,p=0,m=0,g=0,v=0,w=0;return m=3*n,p=3*(r-n)-m,d=1-m-p,w=3*t,v=3*(i-t)-w,g=1-w-v,l(e,c(a))}function t(n,t,r,i){return function(a){return e(a,n,t,r,i,1)}}n.setBezierFunction=function(e,r,i,a,o){var u=t(r,i,a,o);return u.x1=r,u.y1=i,u.x2=a,u.y2=o,n.prototype.formula[e]=u},n.unsetBezierFunction=function(e){delete n.prototype.formula[e]}}(),function(){function e(e,t,r,i,a){return n.tweenProps(i,t,e,r,1,0,a)}var t=new n;t._filterArgs=[],n.interpolate=function(r,i,a,o){var u=n.shallowCopy({},r),s=n.composeEasingObject(r,o||"linear");t.set({});var c=t._filterArgs;c.length=0,c[0]=u,c[1]=r,c[2]=i,c[3]=s,n.applyFilter(t,"tweenCreated"),n.applyFilter(t,"beforeTween");var l=e(r,u,i,a,s);return n.applyFilter(t,"afterTween"),l}}(),function(e){function n(e,n){M.length=0;var t,r=e.length;for(t=0;r>t;t++)M.push("_"+n+"_"+t);return M}function t(e){var n=e.match(S);return n?(1===n.length||e[0].match(_))&&n.unshift(""):n=["",""],n.join(T)}function r(n){e.each(n,function(e){var t=n[e];"string"==typeof t&&t.match(b)&&(n[e]=i(t))})}function i(e){return s(b,e,a)}function a(e){var n=o(e);return"rgb("+n[0]+","+n[1]+","+n[2]+")"}function o(e){return e=e.replace(/#/,""),3===e.length&&(e=e.split(""),e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]),k[0]=u(e.substr(0,2)),k[1]=u(e.substr(2,2)),k[2]=u(e.substr(4,2)),k}function u(e){return parseInt(e,16)}function s(e,n,t){var r=n.match(e),i=n.replace(e,T);if(r)for(var a,o=r.length,u=0;o>u;u++)a=r.shift(),i=i.replace(T,t(a));return i}function c(e){return s(x,e,l)}function l(e){for(var n=e.match(I),t=n.length,r=e.match(C)[0],i=0;t>i;i++)r+=parseInt(n[i],10)+",";return r=r.slice(0,-1)+")"}function f(r){var i={};return e.each(r,function(e){var a=r[e];if("string"==typeof a){var o=v(a);i[e]={formatString:t(a),chunkNames:n(o,e)}}}),i}function h(n,t){e.each(t,function(e){for(var r=n[e],i=v(r),a=i.length,o=0;a>o;o++)n[t[e].chunkNames[o]]=+i[o];delete n[e]})}function d(n,t){e.each(t,function(e){var r=n[e],i=p(n,t[e].chunkNames),a=m(i,t[e].chunkNames);r=g(t[e].formatString,a),n[e]=c(r)})}function p(e,n){for(var t,r={},i=n.length,a=0;i>a;a++)t=n[a],r[t]=e[t],delete e[t];return r}function m(e,n){A.length=0;for(var t=n.length,r=0;t>r;r++)A.push(e[n[r]]);return A}function g(e,n){for(var t=e,r=n.length,i=0;r>i;i++)t=t.replace(T,+n[i].toFixed(4));return t}function v(e){return e.match(I)}function w(n,t){e.each(t,function(e){for(var r=t[e],i=r.chunkNames,a=i.length,o=n[e].split(" "),u=o[o.length-1],s=0;a>s;s++)n[i[s]]=o[s]||u;delete n[e]})}function y(n,t){e.each(t,function(e){for(var r=t[e],i=r.chunkNames,a=i.length,o="",u=0;a>u;u++)o+=" "+n[i[u]],delete n[i[u]];n[e]=o.substr(1)})}var _=/(\d|\-|\.)/,S=/([^\-0-9\.]+)/g,I=/[0-9.\-]+/g,x=new RegExp("rgb\\("+I.source+/,\s*/.source+I.source+/,\s*/.source+I.source+"\\)","g"),C=/^.*\(/,b=/#([0-9]|[a-f]){3,6}/gi,T="VAL",M=[],k=[],A=[];e.prototype.filter.token={tweenCreated:function(e,n,t,i){r(e),r(n),r(t),this._tokenData=f(e)},beforeTween:function(e,n,t,r){w(r,this._tokenData),h(e,this._tokenData),h(n,this._tokenData),h(t,this._tokenData)},afterTween:function(e,n,t,r){d(e,this._tokenData),d(n,this._tokenData),d(t,this._tokenData),y(r,this._tokenData)}}}(n)}(window),window.Tweenable}),function(){"use strict";angular.module("angular-carousel").filter("carouselSlice",function(){return function(e,n,t){return angular.isArray(e)?e.slice(n,n+t):angular.isObject(e)?e:void 0}})}();