/*! xnCarousel - v1.0.1 - 2014-01-16, 2:20:36 PM * Copyright (c) 2014 X-Team / NaN Labs;*/ !function(a,b){var c;c=function d(a,b,e){function f(h,i){if(!b[h]){if(!a[h]){var j="function"==typeof c&&c;if(!i&&j)return j(h,!0);if(g)return g(h,!0);throw new Error("Cannot find module '"+h+"'")}var k=b[h]={exports:{}};a[h][0].call(k.exports,function(b){var c=a[h][1][b];return f(c?c:b)},k,k.exports,d,a,b,e)}return b[h].exports}for(var g="function"==typeof c&&c,h=0;h<e.length;h++)f(e[h]);return f}({1:[function(a,b,c){!function(a,d){"object"==typeof c?b.exports=d():a.Spinner=d()}(this,function(){"use strict";function a(a,b){var c,d=document.createElement(a||"div");for(c in b)d[c]=b[c];return d}function b(a){for(var b=1,c=arguments.length;c>b;b++)a.appendChild(arguments[b]);return a}function c(a,b,c,d){var e=["opacity",b,~~(100*a),c,d].join("-"),f=.01+c/d*100,g=Math.max(1-(1-a)/b*(100-f),a),h=k.substring(0,k.indexOf("Animation")).toLowerCase(),i=h&&"-"+h+"-"||"";return m[e]||(n.insertRule("@"+i+"keyframes "+e+"{0%{opacity:"+g+"}"+f+"%{opacity:"+a+"}"+(f+.01)+"%{opacity:1}"+(f+b)%100+"%{opacity:"+a+"}100%{opacity:"+g+"}}",n.cssRules.length),m[e]=1),e}function d(a,b){var c,d,e=a.style;for(b=b.charAt(0).toUpperCase()+b.slice(1),d=0;d<l.length;d++)if(c=l[d]+b,void 0!==e[c])return c;return void 0!==e[b]?b:void 0}function e(a,b){for(var c in b)a.style[d(a,c)||c]=b[c];return a}function f(a){for(var b=1;b<arguments.length;b++){var c=arguments[b];for(var d in c)void 0===a[d]&&(a[d]=c[d])}return a}function g(a){for(var b={x:a.offsetLeft,y:a.offsetTop};a=a.offsetParent;)b.x+=a.offsetLeft,b.y+=a.offsetTop;return b}function h(a,b){return"string"==typeof a?a:a[b%a.length]}function i(a){return"undefined"==typeof this?new i(a):(this.opts=f(a||{},i.defaults,o),void 0)}function j(){function c(b,c){return a("<"+b+' xmlns="urn:schemas-microsoft.com:vml" class="spin-vml">',c)}n.addRule(".spin-vml","behavior:url(#default#VML)"),i.prototype.lines=function(a,d){function f(){return e(c("group",{coordsize:k+" "+k,coordorigin:-j+" "+-j}),{width:k,height:k})}function g(a,g,i){b(m,b(e(f(),{rotation:360/d.lines*a+"deg",left:~~g}),b(e(c("roundrect",{arcsize:d.corners}),{width:j,height:d.width,left:d.radius,top:-d.width>>1,filter:i}),c("fill",{color:h(d.color,a),opacity:d.opacity}),c("stroke",{opacity:0}))))}var i,j=d.length+d.width,k=2*j,l=2*-(d.width+d.length)+"px",m=e(f(),{position:"absolute",top:l,left:l});if(d.shadow)for(i=1;i<=d.lines;i++)g(i,-2,"progid:DXImageTransform.Microsoft.Blur(pixelradius=2,makeshadow=1,shadowopacity=.3)");for(i=1;i<=d.lines;i++)g(i);return b(a,m)},i.prototype.opacity=function(a,b,c,d){var e=a.firstChild;d=d.shadow&&d.lines||0,e&&b+d<e.childNodes.length&&(e=e.childNodes[b+d],e=e&&e.firstChild,e=e&&e.firstChild,e&&(e.opacity=c))}}var k,l=["webkit","Moz","ms","O"],m={},n=function(){var c=a("style",{type:"text/css"});return b(document.getElementsByTagName("head")[0],c),c.sheet||c.styleSheet}(),o={lines:12,length:7,width:5,radius:10,rotate:0,corners:1,color:"#000",direction:1,speed:1,trail:100,opacity:.25,fps:20,zIndex:2e9,className:"spinner",top:"auto",left:"auto",position:"relative"};i.defaults={},f(i.prototype,{spin:function(b){this.stop();var c,d,f=this,h=f.opts,i=f.el=e(a(0,{className:h.className}),{position:h.position,width:0,zIndex:h.zIndex}),j=h.radius+h.length+h.width;if(b&&(b.insertBefore(i,b.firstChild||null),d=g(b),c=g(i),e(i,{left:("auto"==h.left?d.x-c.x+(b.offsetWidth>>1):parseInt(h.left,10)+j)+"px",top:("auto"==h.top?d.y-c.y+(b.offsetHeight>>1):parseInt(h.top,10)+j)+"px"})),i.setAttribute("role","progressbar"),f.lines(i,f.opts),!k){var l,m=0,n=(h.lines-1)*(1-h.direction)/2,o=h.fps,p=o/h.speed,q=(1-h.opacity)/(p*h.trail/100),r=p/h.lines;!function s(){m++;for(var a=0;a<h.lines;a++)l=Math.max(1-(m+(h.lines-a)*r)%p*q,h.opacity),f.opacity(i,a*h.direction+n,l,h);f.timeout=f.el&&setTimeout(s,~~(1e3/o))}()}return f},stop:function(){var a=this.el;return a&&(clearTimeout(this.timeout),a.parentNode&&a.parentNode.removeChild(a),this.el=void 0),this},lines:function(d,f){function g(b,c){return e(a(),{position:"absolute",width:f.length+f.width+"px",height:f.width+"px",background:b,boxShadow:c,transformOrigin:"left",transform:"rotate("+~~(360/f.lines*j+f.rotate)+"deg) translate("+f.radius+"px,0)",borderRadius:(f.corners*f.width>>1)+"px"})}for(var i,j=0,l=(f.lines-1)*(1-f.direction)/2;j<f.lines;j++)i=e(a(),{position:"absolute",top:1+~(f.width/2)+"px",transform:f.hwaccel?"translate3d(0,0,0)":"",opacity:f.opacity,animation:k&&c(f.opacity,f.trail,l+j*f.direction,f.lines)+" "+1/f.speed+"s linear infinite"}),f.shadow&&b(i,e(g("#000","0 0 4px #000"),{top:"2px"})),b(d,b(i,g(h(f.color,j),"0 0 1px rgba(0,0,0,.1)")));return d},opacity:function(a,b,c){b<a.childNodes.length&&(a.childNodes[b].style.opacity=c)}});var p=e(a("group"),{behavior:"url(#default#VML)"});return!d(p,"transform")&&p.adj?j():k=d(p,"animation"),i})},{}],2:[function(a,b){var c=a("./lib/Modernizr"),d=a("./lib/ModernizrProto"),e=a("./lib/classes"),f=a("./lib/testRunner"),g=a("./lib/setClasses");f(),g(e),delete d.addTest,delete d.addAsyncTest;for(var h=0;h<c._q.length;h++)c._q[h]();b.exports=c},{"./lib/Modernizr":3,"./lib/ModernizrProto":4,"./lib/classes":5,"./lib/setClasses":21,"./lib/testRunner":27}],3:[function(a,b){var c=a("./ModernizrProto"),d=function(){};d.prototype=c,d=new d,b.exports=d},{"./ModernizrProto":4}],4:[function(a,b){var c=a("./tests"),d={_version:"v3.0.0pre",_config:{classPrefix:"",enableClasses:!0},_q:[],on:function(a,b){setTimeout(function(){b(this[a])},0)},addTest:function(a,b,d){c.push({name:a,fn:b,options:d})},addAsyncTest:function(a){c.push({name:null,fn:a})}};b.exports=d},{"./tests":28}],5:[function(a,b){var c=[];b.exports=c},{}],6:[function(a,b){function c(a,b){return!!~(""+a).indexOf(b)}b.exports=c},{}],7:[function(a,b){var c=function(){return document.createElement.apply(document,arguments)};b.exports=c},{}],8:[function(a,b){var c=a("./ModernizrProto"),d=a("./omPrefixes"),e=d.split(" ");c._cssomPrefixes=e,b.exports=e},{"./ModernizrProto":4,"./omPrefixes":19}],9:[function(a,b){var c=document.documentElement;b.exports=c},{}],10:[function(a,b){var c=a("./ModernizrProto"),d=a("./omPrefixes"),e=d.toLowerCase().split(" ");c._domPrefixes=e,b.exports=e},{"./ModernizrProto":4,"./omPrefixes":19}],11:[function(a,b){function c(a){return a.replace(/([A-Z])/g,function(a,b){return"-"+b.toLowerCase()}).replace(/^ms-/,"-ms-")}b.exports=c},{}],12:[function(a,b){var c=a("./slice");Function.prototype.bind||(Function.prototype.bind=function(a){var b=this;if("function"!=typeof b)throw new TypeError;var d=c.call(arguments,1),e=function(){if(this instanceof e){var f=function(){};f.prototype=b.prototype;var g=new f,h=b.apply(g,d.concat(c.call(arguments)));return Object(h)===h?h:g}return b.apply(a,d.concat(c.call(arguments)))};return e}),b.exports=Function.prototype.bind},{"./slice":22}],13:[function(a,b){function c(){var a=document.body;return a||(a=d("body"),a.fake=!0),a}var d=a("./createElement");b.exports=c},{"./createElement":7}],14:[function(a,b){function c(a,b,c,g){var h,i,j,k,l="modernizr",m=e("div"),n=f();if(parseInt(c,10))for(;c--;)j=e("div"),j.id=g?g[c]:l+(c+1),m.appendChild(j);return h=["­",'<style id="s',l,'">',a,"</style>"].join(""),m.id=l,(n.fake?n:m).innerHTML+=h,n.appendChild(m),n.fake&&(n.style.background="",n.style.overflow="hidden",k=d.style.overflow,d.style.overflow="hidden",d.appendChild(n)),i=b(m,a),n.fake?(n.parentNode.removeChild(n),d.style.overflow=k,d.offsetHeight):m.parentNode.removeChild(m),!!i}var d=(a("./ModernizrProto"),a("./docElement")),e=a("./createElement"),f=a("./getBody");b.exports=c},{"./ModernizrProto":4,"./createElement":7,"./docElement":9,"./getBody":13}],15:[function(a,b){function c(a,b){return typeof a===b}b.exports=c},{}],16:[function(a,b){var c=a("./Modernizr"),d=a("./modElem"),e={style:d.elem.style};c._q.unshift(function(){delete e.style}),b.exports=e},{"./Modernizr":3,"./modElem":17}],17:[function(a,b){var c=a("./Modernizr"),d=a("./createElement"),e={elem:d("modernizr")};c._q.push(function(){delete e.elem}),b.exports=e},{"./Modernizr":3,"./createElement":7}],18:[function(b,c){function d(b,c){var d=b.length;if("CSS"in a&&"supports"in a.CSS){for(;d--;)if(a.CSS.supports(f(b[d]),c))return!0;return!1}if("CSSSupportsRule"in a){for(var g=[];d--;)g.push("("+f(b[d])+":"+c+")");return g=g.join(" or "),e("@supports ("+g+") { #modernizr { position: absolute; } }",function(b){return"absolute"==(a.getComputedStyle?getComputedStyle(b,null):b.currentStyle).position})}return void 0}var e=b("./injectElementWithStyles"),f=b("./domToHyphenated");c.exports=d},{"./domToHyphenated":11,"./injectElementWithStyles":14}],19:[function(a,b){var c="Webkit Moz O ms";b.exports=c},{}],20:[function(a,b){var c=a("./ModernizrProto"),d=" -webkit- -moz- -o- -ms- ".split(" ");c._prefixes=d,b.exports=d},{"./ModernizrProto":4}],21:[function(a,b){function c(a){var b=e.className,c=d._config.classPrefix||"",f=new RegExp("(^|\\s)"+c+"no-js(\\s|$)");b=b.replace(f,"$1"+c+"js$2"),d._config.enableClasses&&(b+=" "+c+a.join(" "+c),e.className=b)}var d=a("./Modernizr"),e=a("./docElement");b.exports=c},{"./Modernizr":3,"./docElement":9}],22:[function(a,b){var c=a("./classes"),d=c.slice;b.exports=d},{"./classes":5}],23:[function(a,b){function c(a,b,c){return e(a,void 0,void 0,b,c)}var d=a("./ModernizrProto"),e=a("./testPropsAll");d.testAllProps=c,b.exports=c},{"./ModernizrProto":4,"./testPropsAll":26}],24:[function(a,b){function c(a,b,c){var e;for(var f in a)if(a[f]in b)return c===!1?a[f]:(e=b[a[f]],d(e,"function")&&"bind"in e?e.bind(c||b):e);return!1}var d=a("./is");a("./fnBind"),b.exports=c},{"./fnBind":12,"./is":15}],25:[function(a,b){function c(a,b,c,i){function j(){l&&(delete e.style,delete e.modElem)}if(i=h(i,"undefined")?!1:i,!h(c,"undefined")){var k=g(a,c);if(!h(k,"undefined"))return k}var l,m,n,o;e.style||(l=!0,e.modElem=f("modernizr"),e.style=e.modElem.style);for(m in a)if(n=a[m],o=e.style[n],!d(n,"-")&&void 0!==e.style[n]){if(i||h(c,"undefined"))return j(),"pfx"==b?n:!0;try{e.style[n]=c}catch(p){}if(e.style[n]!=o)return j(),"pfx"==b?n:!0}return j(),!1}var d=a("./contains"),e=a("./mStyle"),f=a("./createElement"),g=a("./nativeTestProps"),h=a("./is");b.exports=c},{"./contains":6,"./createElement":7,"./is":15,"./mStyle":16,"./nativeTestProps":18}],26:[function(a,b){function c(a,b,c,d,j){var k=a.charAt(0).toUpperCase()+a.slice(1),l=(a+" "+e.join(k+" ")+k).split(" ");return f(b,"string")||f(b,"undefined")?g(l,b,d,j):(l=(a+" "+h.join(k+" ")+k).split(" "),i(l,b,c))}{var d=a("./ModernizrProto"),e=a("./cssomPrefixes"),f=a("./is"),g=a("./testProps"),h=a("./domPrefixes"),i=a("./testDOMProps");a("./prefixes")}d.testAllProps=c,b.exports=c},{"./ModernizrProto":4,"./cssomPrefixes":8,"./domPrefixes":10,"./is":15,"./prefixes":20,"./testDOMProps":24,"./testProps":25}],27:[function(a,b){function c(){var a,b,c,h,i,j,k;for(var l in d){if(a=[],b=d[l],b.name&&(a.push(b.name.toLowerCase()),b.options&&b.options.aliases&&b.options.aliases.length))for(c=0;c<b.options.aliases.length;c++)a.push(b.options.aliases[c].toLowerCase());for(h=g(b.fn,"function")?b.fn():b.fn,i=0;i<a.length;i++)j=a[i],k=j.split("."),1===k.length?e[k[0]]=h:2===k.length&&(e[k[0]][k[1]]=h),f.push((h?"":"no-")+k.join("-"))}}var d=a("./tests"),e=a("./Modernizr"),f=a("./classes"),g=a("./is");b.exports=c},{"./Modernizr":3,"./classes":5,"./is":15,"./tests":28}],28:[function(a,b){var c=[];b.exports=c},{}],29:[function(a){var b=a("./../../lib/Modernizr"),c=a("./../../lib/testAllProps");b.addTest("csstransitions",c("transition","all",!0))},{"./../../lib/Modernizr":3,"./../../lib/testAllProps":23}],30:[function(a,b){b.exports={wrap:function(a,b,c){if(!c)throw Error("jQuery not found");var d="plugin_"+a;c.fn[a]=function(e){var f=this.data(d);if(f&&f[e]){var g=f[e].apply(f,[].slice.call(arguments,1));return"undefined"==typeof g&&(g=this),g}return"object"!=typeof e&&e?(c.error("Method "+e+" does not exist on "+a),void 0):($elems=this.each(function(){c.data(this,d)||c.data(this,d,new b(this,e))}),e&&e.api&&this.length>0?this.eq(0).data(d):$elems)}}}},{}],GXCbp8:[function(a,b){!function(){var a=!1,b=/xyz/.test(function(){})?/\b_super\b/:/.*/;this.Class=function(){},Class.extend=function(c){function d(){!a&&this.init&&this.init.apply(this,arguments)}var e=this.prototype;a=!0;var f=new this;a=!1;for(var g in c)f[g]="function"==typeof c[g]&&"function"==typeof e[g]&&b.test(c[g])?function(a,b){return function(){var c=this._super;this._super=e[a];var d=b.apply(this,arguments);return this._super=c,d}}(g,c[g]):c[g];return d.prototype=f,d.constructor=d,d.extend=arguments.callee,d}}(),b.exports=Class},{}],"class":[function(a,b){b.exports=a("GXCbp8")},{}],33:[function(a,b){var c=a("class");a("browsernizr/test/css/transitions");var d=a("browsernizr");b.exports=c.extend({init:function(a){this.animationObject=a,this.afterAnimationCallback=this.animationObject.afterAnimation,this.Modernizr=d},animateToPage:function(){throw"This method should be implemented by the subclass"},setItemVisible:function(){},initItem:function(){},calculateItemOffset:function(){},animatePartial:function(){},getPixels:function(a,b){var c=a[0].style[b];return"%"===c[c.length-1]?parseFloat(c.slice(0,-1),10):parseFloat(c.slice(0,-2),10)},supportsTouch:function(){}})},{browsernizr:2,"browsernizr/test/css/transitions":29,"class":"GXCbp8"}],34:[function(a,b){var c,d=a("jquery"),e=a("class"),f=a("./fade-strategy"),g=a("./slider-strategy"),h=a("./no-animation-strategy");b.exports=e.extend({init:function(a,b){this.carouselApi=a,this.$overview=a.container,this.animationType=b.animationType,this.animationSpeed=b.animationSpeed,this.afterAnimationCallback=b.afterAnimationCallback,this.size=b.size,this.pageSize=b.pageSize,this.pagingAnimation=!1,this.animationStrategy=this._getStrategy(),c=a.getLogger()},updatePageSize:function(a){this.pageSize=a},animate:function(a,b){this._performPreanimationActions();var c=this.carouselApi.getItemsForPage(a),d=this.carouselApi.getItemsForPage(b);this.animationStrategy.animateToPage(this.$overview,c,d)},animateToCurrentPage:function(){this.animate(this.carouselApi.getCurrentPage(),this.carouselApi.getCurrentPage())},afterAnimation:function(){this._performPostanimationActions();var a=this.afterAnimationCallback,b=this;a&&a.call(b)},setItemVisible:function(a){this.animationStrategy.setItemVisible(a)},calculateItemOffset:function(a){return this.animationStrategy.calculateItemOffset(a)},initItem:function(a){var b=this.calculateItemOffset(a);this.animationStrategy.initItem(a),a.css({left:b+this.size.unitType})},updateAfterRemoval:function(a){var b=this;a.each(function(){b.initItem(d(this))})},supportsTouch:function(){return this.animationStrategy.supportsTouch()},animatePartial:function(a){this.animationStrategy.animatePartial(this.$overview,a,this.carouselApi.getItemsForCurrentPage())},_getStrategy:function(){return"slide"===this.animationType?new g(this):"fade"===this.animationType?new f(this):new h(this)},_performPreanimationActions:function(){this.pagingAnimation=!0,this.$overview.trigger("animation:started")},_performPostanimationActions:function(){this.pagingAnimation=!1,this.$overview.trigger("animation:finished"),c.log("Post animation actions executed")}})},{"./fade-strategy":35,"./no-animation-strategy":36,"./slider-strategy":37,"class":"GXCbp8",jquery:"xlgdQ9"}],35:[function(a,b){var c,d=a("./abstract-strategy");b.exports=d.extend({init:function(a){this._super(a),c=a.carouselApi.getLogger()},animateToPage:function(a,b,c){this._animateItem(b,c),this._disabled=!1},setItemVisible:function(a){a.show(),a.css("opacity",1),a.css("z-index",1)},initItem:function(a){a.css("opacity",0),a.css("z-index",0)},calculateItemOffset:function(a){var b=a.index()%this.animationObject.pageSize;return"px"===this.animationObject.size.unitType?a.outerWidth(!0)*b:this.animationObject.size.initialItemWidth*b},_animateItem:function(a,b){var c=this.animationObject.afterAnimation,d=this.animationObject,e=function(){b.off("transitionend",e),b.off("webkitTransitionEnd",e),b.css("transition",""),b.css("-webkit-transition",""),"0"===a.css("z-index")&&a.css("opacity",0),c.call(d)};a.css("z-index",0),b.css("z-index",1),this.Modernizr.csstransitions===!0?(b.css("transition","opacity "+this.animationObject.animationSpeed+"ms ease-out"),b.css("-webkit-transition","opacity "+this.animationObject.animationSpeed+"ms ease-out"),b.on("transitionend",e),b.on("webkitTransitionEnd",e),b.css("opacity",1)):b.animate({opacity:1},this.animationObject.animationSpeed,e)},supportsTouch:function(){return!0},animatePartial:function(a,b,c){if(!this._disabled){this._disabled=!0;var d=Math.abs(b)<.8?Math.abs(b):.8;c.css("opacity",1-d)}}})},{"./abstract-strategy":33}],36:[function(a,b){var c,d=a("./slider-strategy"),e=d.extend({init:function(a){this._super(a),c=a.carouselApi.getLogger()},_animate:function(a,b){var c=this.animationObject.afterAnimation,d=this.animationObject;a.css("left",b+this.animationObject.size.unitType),c.call(d)},animatePartial:function(){}});b.exports=e},{"./slider-strategy":37}],37:[function(a,b){var c,d=a("./abstract-strategy"),e=a("jquery");b.exports=d.extend({init:function(a){this._super(a),c=a.carouselApi.getLogger()},animateToPage:function(a,b,d){var f,g=this.getPixels(a,"left"),h=b.length>0?this.getPixels(b,"left"):-1*g;if(-1!==a.children()[0].style.width.indexOf("px")&&this.animationObject.carouselApi.getCurrentPage()===this.animationObject.carouselApi.getPageCount()-1){var i=e(a.children()[0]).outerWidth(!0),j=a.children().length,k=d.length,l=k*i,m=l-a.outerWidth(!0);f=j*i-l+m}else f=this.getPixels(d,"left");var n=h-f,o=g;0!==n?o=h+(0>n)?-f:f:(h=-h,g!==h&&(o=h)),c.log("AnimateToPage, offset: "+f+", difference: "+n+", position: "+o),this._animate(a,o)},_animate:function(a,b){var d=this.animationObject.afterAnimation,e=this.animationObject,f=function(){c.log("Transition End"),a.off("transitionend",f),a.off("webkitTransitionEnd",f),a.css("transition",""),a.css("-webkit-transition",""),d.call(e)};b+=this.animationObject.size.unitType,this.Modernizr.csstransitions===!0?(a.css("transition","left "+this.animationObject.animationSpeed+"ms ease-out"),a.css("-webkit-transition","left "+this.animationObject.animationSpeed+"ms ease-out"),a.on("transitionend",f),a.on("webkitTransitionEnd",f),a.css("left",b)):a.animate({left:b},this.animationObject.animationSpeed,f)},calculateItemOffset:function(a){return"px"===this.animationObject.size.unitType?a.outerWidth(!0)*a.index():this.animationObject.size.initialItemWidth*a.index()},supportsTouch:function(){return!0},animatePartial:function(a,b){a.css("left",b+this.animationObject.size.unitType)}})},{"./abstract-strategy":33,jquery:"xlgdQ9"}],38:[function(b,c){var d,e=b("jquery"),f=b("class"),g=b("./util"),h=b("./console-shim-module"),i=b("./dragging-module"),j=b("./pagination/paging-module"),k=b("./animation/animation-module"),l=b("./loading/loading-module"),m='<div class="xn-left-indicator"><div class="xn-triangle-left"></div></div>',n='<div class="xn-right-indicator"><div class="xn-triangle-right"></div></div>',o='<div class="xn-overview"></div>',p="selected",q="xn-viewport",r="xn-carousel-item";c.exports=f.extend({init:function(b,c){var f={touchEnabled:!1,pageSize:1,breakpointsConfiguration:null,itemWidth:null,animationType:"none",loadingType:"lazy",moveSpeed:1e3,pagingIndicators:!1,pageInterval:0,showNavigationArrows:"auto",circularNavigation:!1,paginationContainerSelector:null,showLogs:!1,itemTemplate:function(){return"<div></div>"}};this.$viewport=e(b),this.$viewport.addClass(q),this.settings=e.extend({},f,c),d=h(this.settings.showLogs),this.size={},this._updateConfiguration(),this.size.contentWidth=0,this.size.overviewWidth=0,this.size.initialItemWidth=this.settings.itemWidth?this.settings.itemWidth:100/this.settings.pageSize,this.size.itemWidth=null,this.size.unitType=this.settings.itemWidth?"px":"%",this.settings.itemWidth&&(this.settings.pageSize=~~(this.$viewport.width()/this.settings.itemWidth),this.settings.pageSize=this.settings.pageSize>0?this.settings.pageSize:1),e(a).resize(e.proxy(this._updatePaginator,this)),this._initPaginationModule(),this.leftIndicatorClickHandler=e.proxy(this.leftIndicatorClickHandler,this),this.rightIndicatorClickHandler=e.proxy(this.rightIndicatorClickHandler,this),this._trigger("carousel:initialized")},on:function(a,b){e(this).on(a,b)},off:function(a,b){e(this).off(a,b)},goToPage:function(a){this._trigger("carousel:pageChangeStart",[this.pagingModule.getCurrentPage(),a]),this.pagingModule.goToPage(a),this.loadingModule.loadItem(this._getDOMItemsForCurrentPage()),this.animationModule.animate(this.pagingModule.getPrevCurrentPage(),a),this._trigger("carousel:pageChanged",[a])},goNext:function(){this.goToPage(this.pagingModule.getNextPage())},goBack:function(){this.goToPage(this.pagingModule.getPrevPage())},goToLastPage:function(){this.goToPage(this.pagingModule.getLastPage())},goToFirstPage:function(){this.goToPage(0)},getCurrentPage:function(){return this.pagingModule.getCurrentPage()},getItemCount:function(){return this.getItems().length},getPageCount:function(){return this.pagingModule.getPageCount()},getPageIndex:function(a){return this.pagingModule.getPageIndex(a)},getItems:function(){return this.$overview.children("."+r)},getLastItemIndex:function(){return this.getItemCount()-1},getItemIndicesForPage:function(a){var b=this.pagingModule.getIndicesForPage(a);return this.settings.itemWidth&&"slide"===this.settings.animationType&&b.length>0&&b[b.length-1]<this.getItemCount()-1&&b.push(b[b.length-1]+1),b},getItemIndicesForCurrentPage:function(){return this.getItemIndicesForPage(this.getCurrentPage())},clear:function(a){this.$overview.empty(),this.$overview.css("left","0%"),this.refreshContentWidth(),this._updateNavigators(),this.pagingModule.clear(),a&&a.silent||this._trigger("carousel:itemsCleared")},isValidItemIndex:function(a){return a>=0&&a<this.getItemCount()},removeItem:function(a){if(this.isValidItemIndex(a)){var b=this.getItems()[a];if(b){var c=this.getPageCount(),d=e(b),f=d.nextAll();d.remove(),f.length>0&&(this.animationModule.updateAfterRemoval(f),this.animationModule.setItemVisible(this._getDOMItemsForCurrentPage()),this.loadingModule.loadItem(this._getDOMItemsForCurrentPage()));var g=this.getPageCount();c>g&&(this.pagingModule.removePage(),g>0&&this.getCurrentPage()>=g&&this.goToLastPage(),this._trigger("carousel:pageRemoved")),this.refreshContentWidth(),this._updateNavigators(),this._trigger("carousel:itemRemoved")}}},refreshContentWidth:function(){var a=this.getItems(),b=0;a.each(function(){b+=e(this).outerWidth(!0)}),this.size.contentWidth=b},selectItem:function(a,b){if(!this.isValidItemIndex(a))return d.error("Cannot select item. Invalid index: %d",a),void 0;this.clearSelection({silent:!0});var c=this.getItems();e(c[a]).addClass(p),b&&b.silent||this._trigger("carousel:itemSelected",a)},clearSelection:function(a){this._getSelectedDOMItems().removeClass(p),a&&a.silent||this._trigger("carousel:selectionClear")},getSelectedIndex:function(){var a=this._getSelectedDOMItems();return a?a.index():-1},addItem:function(a,b){var c;"object"==typeof a&&(c=a,a=this.settings.itemTemplate(a));var d=this.getPageCount(),f=e('<div class="'+r+'"></div>');if(this.loadingModule.preLoadItem(f,a),f.click(e.proxy(this.selectItemHandlerMouse,this)),f.on("itemTouched",e.proxy(this.selectItemHandlerTouch,this)),!b){this.loadingModule.loadItem(f),this._processAddedItem(f);var g=this.pagingModule.getPageIndex(f.index());g===d&&(this.pagingModule.addPage(),this._trigger("carousel:pageAdded",[g])),g===this.getCurrentPage()&&(this.pagingModule.updateUI(),this.animationModule.setItemVisible(f)),this._updateNavigators(),this._trigger("carousel:itemAdded",[c||a,f])}},render:function(b){var c="";if("undefined"==typeof b){var d=this.$viewport.find(".xn-items");b=[],c=d.attr("class").replace(/\s*xn-items/g,""),e.each(d.children(),function(a,c){b.push(c.outerHTML)}),d.remove()}this._createContainer(),""!==c&&this.$overview.attr("class",this.$overview.attr("class")+" "+c);var f=function(a){var b=a.outerHeight(!0);a.parents("."+q).height(b)};this._initLoadingModule(f),this.clear({silent:!0});var g=this;e.each(b,function(a,b){g.addItem(b,!0)}),e(a).resize(function(){f(e(g.$overview.children().get(0)))}),this._initAnimationModule(),this.animationModule.supportsTouch()?this.settings.touchEnabled&&(this._initDraggingModule(),this._hideIndicators()):this._isTouchDevice()&&this._showNavigationArrows(),this._processAddedItems(),this.settings.pagingIndicators&&this.pagingModule.renderIndicator(),this._makeFirstPageVisible(),this.size.overviewWidth=this._getOverviewWidth(),this.refreshContentWidth(),this._updateNavigators(),this._startAutomaticPaging(),this._buildLastPage(),this._trigger("carousel:rendered")},_initPaginationModule:function(){var a={getLogger:function(){return d},container:this.$viewport,getItemCount:e.proxy(this.getItemCount,this),getItemsForPage:e.proxy(this._getDOMItemsForPage,this),getItemsForCurrentPage:e.proxy(this._getDOMItemsForCurrentPage,this),getContainerSize:e.proxy(this._getCarouselSize,this)};this.pagingModule=new j(a,{pageSize:this.settings.pageSize,circularNavigation:this.settings.circularNavigation,onPageSelected:e.proxy(function(a){this._disableNavigators(),this.goToPage(a)},this),paginationContainerSelector:this.settings.paginationContainerSelector,paginationItemSelector:this.settings.paginationItemSelector})},_updateConfiguration:function(){var a=this._getIntervalsProperty(this.settings.breakpointsConfiguration),b=!1;return a&&("undefined"!=typeof a.itemWidth?a.itemWidth!==this.settings.itemWidth&&(b=!0,this.settings.itemWidth=a.itemWidth):this.settings.itemWidth=null,"undefined"!=typeof a.pageSize&&(("px"===this.size.unitType||this.settings.pageSize!==a.pageSize)&&(b=!0),this.settings.pageSize=a.pageSize),this.size.unitType=this.settings.itemWidth?"px":"%"),b},_updatePaginator:function(){var a=this._updateConfiguration(),b=a===!0?this.settings.pageSize:0;if(this.settings.itemWidth&&(b=~~(this.$viewport.width()/this.settings.itemWidth),b=b>0?b:1),a===!0||b!==this.settings.pageSize&&b>0){var c=this.pagingModule.getCurrentPage(),d=this;this.settings.pageSize=b,this.pagingModule.updatePageSize(b),this.animationModule.updatePageSize(b),this.size.initialItemWidth=this.settings.itemWidth?this.settings.itemWidth:100/b,this._processAddedItems(),this.animationModule.updateAfterRemoval(this.$viewport.find("."+r)),this.settings.pagingIndicators===!0&&(this.pagingModule.renderIndicator(),this.pagingModule.pagingIndicator.select(c)),setTimeout(function(){var a=d.getPageCount();d.goToPage(a>c?c:a-1)},0)}},_getCarouselSize:function(){return this.size},_initAnimationModule:function(){var a={getLogger:function(){return d},container:this.$overview,getCurrentPage:e.proxy(this.getCurrentPage,this),getPageCount:e.proxy(this.getPageCount,this),getItemsForPage:e.proxy(this._getDOMItemsForPage,this),getItemsForCurrentPage:e.proxy(this._getDOMItemsForCurrentPage,this)},b={animationType:this.settings.animationType,animationSpeed:this.settings.moveSpeed,pageSize:this.settings.pageSize,size:this.size,afterAnimationCallback:e.proxy(function(){this._updateNavigators(),this._updatePagingIndicator()},this)};this.animationModule=new k(a,b);var c=function(){this._trigger("carousel:pageChangeEnded",[this.pagingModule.getPrevCurrentPage(),this.pagingModule.getCurrentPage()])};c=e.proxy(c,this),this.$overview.on("animation:finished",c)},_initDraggingModule:function(){var a={api:{getLogger:function(){return d}},onDrag:e.proxy(this.updatePageWhileDragging,this),onDragFinish:e.proxy(this.updatePageAfterDragging,this)};this.dragModule=new i(this.$overview,a);var b=function(){this.dragModule.disableDragging()},c=function(){this.dragModule.enableDragging()};b=e.proxy(b,this),c=e.proxy(c,this),this.$overview.on("animation:started",b),this.$overview.on("animation:finished",c),this.$viewport[0].ontouchstart=function(a){a.stopPropagation()},this.$viewport[0].ontouchend=function(a){a.stopPropagation()}},_initLoadingModule:function(a){var b={getLogger:function(){return d},container:this.$overview,getCurrentPage:e.proxy(this.getCurrentPage,this),getItemsForPage:e.proxy(this._getDOMItemsForPage,this),getItemsForCurrentPage:e.proxy(this._getDOMItemsForCurrentPage,this),getItemClass:function(){return r}},c=function(b,c){"error"!==c.type&&a(b.parents("."+r),c)},f={loadingType:this.settings.loadingType,afterLoadedCallback:c};this.loadingModule=new l(b,f)},_createContainer:function(){this.$leftIndicator=this.$viewport.children(".xn-left-indicator"),this.$rightIndicator=this.$viewport.children(".xn-right-indicator"),0===this.$leftIndicator.length&&(this.$viewport.append(m),this.$leftIndicator=this.$viewport.children(".xn-left-indicator")),0===this.$rightIndicator.length&&(this.$viewport.append(n),this.$rightIndicator=this.$viewport.children(".xn-right-indicator")),this.$overview=this.$viewport.children(".xn-overview"),0===this.$overview.length&&(this.$viewport.prepend(o),this.$overview=this.$viewport.children(".xn-overview")),this.$overview.css("left","0%")},_processAddedItems:function(){for(var a=this.getItems(),b=0;b<a.length;b++){var c=e(a[b]);this._processAddedItem(c),this.size.itemWidth=c.outerWidth(!0)}},_processAddedItem:function(a){a.css({width:this.size.initialItemWidth+this.size.unitType}),this.animationModule.initItem(a)},_hasNextPage:function(){return this.pagingModule.hasNextPage()},_hasPrevPage:function(){return this.pagingModule.hasPrevPage()},_updateNavigators:function(){this.$leftIndicator.off("click",this.leftIndicatorClickHandler),this.$rightIndicator.off("click",this.rightIndicatorClickHandler);var a=this.settings.showNavigationArrows&&"auto"!==this.settings.showNavigationArrows,b=this.settings.circularNavigation||a,c=!this.settings.showNavigationArrows,d=this.getItemIndicesForPage(this.pagingModule.getLastPage()),e=this.pagingModule.getCurrentPage()!==this.pagingModule.getPageCount()-1||this.$overview.find(".active").last().index()!==d[d.length-1];b?(this.$rightIndicator.css("display","block"),this.$leftIndicator.css("display","block")):c?(this.$rightIndicator.css("display","none"),this.$leftIndicator.css("display","none")):(this.$leftIndicator.css("display",this._hasPrevPage()?"block":"none"),this.$rightIndicator.css("display",e?"block":"none")),a&&this._showNavigationArrows();var f=this.settings.circularNavigation;f?(this.$leftIndicator.on("click",this.leftIndicatorClickHandler),this.$rightIndicator.on("click",this.rightIndicatorClickHandler)):c||(this._hasPrevPage()&&this.$leftIndicator.on("click",this.leftIndicatorClickHandler),e===!0&&this.$rightIndicator.on("click",this.rightIndicatorClickHandler))},_getOverviewWidth:function(){return this.$viewport.width()},_updatePagingIndicator:function(){this.pagingModule.updateUI(),this.pagingModule.enableUI()},_makeFirstPageVisible:function(){this.loadingModule.loadItem(this._getDOMItemsForCurrentPage()),this.pagingModule.goToPage(this.getCurrentPage(),{force:!0}),this.animationModule.setItemVisible(this._getDOMItemsForCurrentPage())},_getCurrentOffset:function(){return g.getPixels(this.$overview,"left")},_isTouchDevice:function(){try{return document.createEvent("TouchEvent"),!0}catch(a){return!1}},_startAutomaticPaging:function(){if(this.settings.pageInterval>0){var a=function(){this.goToPage(this.pagingModule.getNextPage())},b=function(){this.pagingInterval&&clearInterval(this.pagingInterval)},c=function(){this.pagingInterval=setInterval(a,this.settings.pageInterval)};a=e.proxy(a,this),b=e.proxy(b,this),c=e.proxy(c,this),this.pagingInterval=setInterval(a,this.settings.pageInterval),this._isTouchDevice()?(this.$viewport[0].ontouchstart=b,this.$viewport[0].ontouchend=c):(this.$viewport.on("mouseenter",b),this.$viewport.on("mouseleave",c))}},_showNavigationArrows:function(){var a=.7;this.$leftIndicator.css("opacity",a),this.$rightIndicator.css("opacity",a)},_hideIndicators:function(){this.$leftIndicator.css("display","none"),this.$rightIndicator.css("display","none")},_disableNavigators:function(){this.$leftIndicator.off("click",this.leftIndicatorClickHandler),this.$rightIndicator.off("click",this.rightIndicatorClickHandler),this.pagingModule.disableUI() },_trigger:function(a,b){e(this).trigger(a,b),this.$viewport.trigger(a,b)},_getCarouselSelectors:function(){function a(a,b,c){var d=[],e=function(a,b){for(var f=0;f<b.length;f++)d.push(a+b[f]),e(a+b[f]+c,b.slice(f+1))};return e(b,a),d}function b(a){e.each(a,function(b,c){a[b]={className:c,weight:c.split(".").length}});var b,c,d,f=[];for(c=0;c<a.length;c+=1){for(d=a.length-2;d>=c;d-=1)a[d+1].weight>a[d].weight&&(b=a[d],a[d]=a[d+1],a[d+1]=b);f.push(a[c].className)}return f}function c(a){function b(a){var e,f;for(e=0;e<a.length;e+=1)f=a.splice(e,1)[0],d.push(f),0===a.length&&c.push(d.slice()),b(a),a.splice(e,0,f),d.pop();return c}var c=[],d=[],f=[];return c=b(a),e.each(c,function(a,b){f.push(b.join(""))}),f}function d(a){var b=a[0];return a.length>1&&e.each(a,function(c){if(c>0){var d=[];e.each(b,function(b,f){a.hasOwnProperty(c)&&e.each(a[c],function(a,b){d.push(f+" "+b)})}),b=d}}),b}function f(d){var f,g=[];return"undefined"!=typeof d.attr("class")?(f=(" "+d.attr("class")).replace(/\s/g," .").split(" "),f=f.slice(1,f.length),f=a(f,"",""),e.each(f,function(a,b){var d=b.replace(/\./g,",.").split(",");d=d.slice(1,d.length),g=d.length>1?g.concat(c(d)):g.concat(d)}),b(g)):void 0}if(!this.carouselSelectors){var g,h=[],i=[],j=this.$viewport.parentsUntil("html"),k=f(this.$viewport);if(j&&j.length>0){for(g=j.length-1;g>=0;g--)j.hasOwnProperty(g)&&"undefined"!=typeof e(j[g]).attr("class")&&h.push(f(e(j[g])));if(h.length>0){var l=[];for(g=-1;l.push(g+=1)<h.length;);l=a(l,"","#");var m;e.each(l,function(a,b){m=b.split("#"),m=m.map(function(a){return h[a]}),m.push(k),i=i.concat(d(m))})}}this.carouselSelectors=i.concat(k)}return this.carouselSelectors},_getCarouselStylesheet:function(){var a,b=this._getCarouselSelectors();return e.each(document.styleSheets,function(c,d){var f=!1;return d.cssRules&&e.each(d.cssRules,function(c,e){return-1!==b.indexOf(e.selectorText)?(a=d,f=!0,!f):void 0}),!f}),a},_getSelectedDOMItems:function(){return this.$overview.children("."+p)},_getDOMItemsForPage:function(a){var b=this.getItems();return e(e.map(this.getItemIndicesForPage(a),function(a){return b[a]}))},_getDOMItemsForCurrentPage:function(){return this._getDOMItemsForPage(this.getCurrentPage())},_buildLastPage:function(){if(!this.settings.itemWidth&&"fade"===this.settings.animationType&&this.$overview.children().length/this.pagingModule.getPageCount()%2!==1){var a,b=this._getDOMItemsForPage(this.pagingModule.getLastPage()).not(this._getDOMItemsForPage(this.pagingModule.getLastPage()-1)).get(),c=this._getDOMItemsForPage(this.pagingModule.getLastPage()-1).not(this._getDOMItemsForPage(this.pagingModule.getLastPage())).get(),d=this._getDOMItemsForPage(this.pagingModule.getLastPage()-1).not(c).get();d=e(d).clone(),e(b[0]).before(d),a=d.add(b);var f=this.settings.itemWidth?e(b[0]).outerWidth(!0):parseFloat(b[0].style.width,10),g=0,h=this;e.each(a,function(a,b){e(b).css("left",g+h.size.unitType),g+=f})}},_getIntervalsProperty:function(b){var c,d=/\*\.\.([0-9]+)/,e=/([0-9]+)\.\.\*/,f=/([0-9]+)\.\.([0-9]+)/,g=a.innerWidth;for(c in b)if(b.hasOwnProperty(c)){if(d.test(c)===!0&&g<=d.exec(c)[1])return b[c];if(f.test(c)===!0&&g>=f.exec(c)[1]&&g<=f.exec(c)[2])return b[c];if(e.test(c)===!0&&g>=e.exec(c)[1])return b[c]}},selectItemHandlerTouch:function(a){return this.selectItemCommonHandler(a)},selectItemHandlerMouse:function(a){return this.dragModule&&this.dragModule.finishDragging?(this.dragModule.finishDragging=!1,!1):this.selectItemCommonHandler(a)},selectItemCommonHandler:function(a){var b=e(a.currentTarget),c=b.index();return d.debug("Item of position %d selected",c),this.animationModule.pagingAnimation=!1,this.selectItem(c),!1},leftIndicatorClickHandler:function(){return this.animationModule.pagingAnimation?(d.debug("Carousel is currently moving. This backwards movement has been cancelled"),!1):(this._disableNavigators(),this.goToPage(this.pagingModule.getPrevPage()),void 0)},rightIndicatorClickHandler:function(){return this.animationModule.pagingAnimation?(d.debug("Carousel is currently moving. This forward movement has been cancelled"),!1):(this._disableNavigators(),this.goToPage(this.pagingModule.getNextPage()),void 0)},updatePageWhileDragging:function(a){var b=this._getCurrentOffset(),c=this.$overview.width(),e=this.settings.itemWidth?a:100*a/c,f=b-e;d.log("updatePageWhileDragging, currentOffset: "+this.$overview[0].style.left+", difference: "+f),(f>=30||f>-(this.size.contentWidth+30))&&(this.animationModule.animatePartial(f),this._updateNavigators())},updatePageAfterDragging:function(a,b){var c=this.getCurrentPage(),e=this.pagingModule.getLastPage(),f=a-b.pageX,g=f>0;c===e&&g?(d.log("Move to last page"),this.goToLastPage()):0!==c||g?Math.abs(f)>this.size.itemWidth/4?g?(d.log("Move forward"),this.goToPage(this.pagingModule.getNextPage())):(d.log("Move backward"),this.goToPage(this.pagingModule.getPrevPage())):(d.log("Stay in the same page"),this.animationModule.animateToCurrentPage()):(d.log("Move to first page"),this.goToPage(0))},afterAnimationHandler:function(){},loadProxies:function(){this.loadingModule(this._getDOMItemsForCurrentPage())}})},{"./animation/animation-module":34,"./console-shim-module":39,"./dragging-module":40,"./loading/loading-module":48,"./pagination/paging-module":51,"./util":52,"class":"GXCbp8",jquery:"xlgdQ9"}],39:[function(b,c){var d=b("./util"),e=function(a,b){var c=Array.prototype.slice.call(arguments,2);return function(){var d=c.concat(Array.prototype.slice.call(arguments,0));a.apply(b,d)}},f=function(b){a.console||(a.console={});var c=a.console;if(!c.log)if(a.log4javascript){var f=a.log4javascript.getDefaultLogger();c.log=e(f.info,f),c.debug=e(f.debug,f),c.info=e(f.info,f),c.warn=e(f.warn,f),c.error=e(f.error,f)}else c.log=function(){};c.debug||(c.debug=c.log),c.info||(c.info=c.log),c.warn||(c.warn=c.log),c.error||(c.error=c.log);var g=d.isIE();if(null!=a.__consoleShimTest__||g!==!1&&9>=g){var h=function(b){var d,e,f,g;if(b=Array.prototype.slice.call(arguments,0),g=b.shift(),e=b.length,e>1&&a.__consoleShimTest__!==!1)for("string"!=typeof b[0]&&(b.unshift("%o"),e+=1),f=b[0].match(/%[a-z]/g),d=f?f.length+1:1;e>d;d+=1)b[0]+=" %o";Function.apply.call(g,c,b)};c.log=e(h,a,c.log),c.debug=e(h,a,c.debug),c.info=e(h,a,c.info),c.warn=e(h,a,c.warn),c.error=e(h,a,c.error)}if(c.assert||(c.assert=function(){var a=Array.prototype.slice.call(arguments,0),b=a.shift();b||(a[0]="Assertion failed: "+a[0],c.error.apply(c,a))}),c.dir||(c.dir=c.log),c.dirxml||(c.dirxml=c.log),c.exception||(c.exception=c.error),!c.time||!c.timeEnd){var i={};c.time=function(a){i[a]=(new Date).getTime()},c.timeEnd=function(a){var b=i[a];b&&(c.log(a+": "+((new Date).getTime()-b)+"ms"),delete i[a])}}c.table||(c.table=function(a,b){var d,e,f,g,h,i;if(a&&a instanceof Array&&a.length){if(!(b&&b instanceof Array)){b=[];for(i in a[0])a[0].hasOwnProperty(i)&&b.push(i)}for(d=0,e=a.length;e>d;d+=1){for(f=[],g=0,h=b.length;h>g;g+=1)f.push(a[d][b[g]]);Function.apply.call(c.log,c,f)}}}),c.clear||(c.clear=function(){}),c.trace||(c.trace=function(){}),c.group||(c.group=function(){}),c.groupCollapsed||(c.groupCollapsed=function(){}),c.groupEnd||(c.groupEnd=function(){}),c.timeStamp||(c.timeStamp=function(){}),c.profile||(c.profile=function(){}),c.profileEnd||(c.profileEnd=function(){}),c.count||(c.count=function(){});var j={},k="undefined"==typeof b?!0:b;return j.log=k===!1||"function"==typeof k.indexOf&&-1===k.indexOf("log")?function(){}:e(c.log,c),j.warn=k===!1||"function"==typeof k.indexOf&&-1===k.indexOf("warn")?function(){}:e(c.warn,c),j.debug=k===!1||"function"==typeof k.indexOf&&-1===k.indexOf("debug")?function(){}:e(c.debug,c),j.error=k===!1||"function"==typeof k.indexOf&&-1===k.indexOf("error")?function(){}:e(c.error,c),j};c.exports=f},{"./util":52}],40:[function(a,b){var c,d=a("jquery"),e=a("class"),f=e.extend({touchClickDelayMS:300,init:function(a,b){this.onDrag=b.onDrag,this.onDragFinish=b.onDragFinish,this.$element=a,this.initialPageX=0,this.currentPageX=0,this.isDragging=!1,this.finishDragging=!1,this.startTouchHandler=d.proxy(this.startTouchHandler,this),this.mouseDownHandler=d.proxy(this.mouseDownHandler,this),this.dragHandler=d.proxy(this.dragHandler,this),this.endTouchHandler=d.proxy(this.endTouchHandler,this),this.mouseUpHandler=d.proxy(this.mouseUpHandler,this),c=b.api.getLogger(),this._enableStartEvents()},isTouchDevice:function(){try{return document.createEvent("TouchEvent"),!0}catch(a){return!1}},startTouchHandler:function(a){this.touchStartTime=new Date,d("body").addClass("noSelect");var b=a.touches[0];this.$element[0].ontouchmove=this.dragHandler,this.$element[0].ontouchend=this.endTouchHandler,this.$element[0].ontouchcancel=this.endTouchHandler,document.ontouchmove=this.dragHandler,document.ontouchend=this.endTouchHandler,document.ontouchcancel=this.endTouchHandler,c.debug("Start touch handler, pageX: "+b.pageX),this.initialPageX=this.currentPageX=b.pageX},mouseDownHandler:function(a){return this.touchStartTime=new Date,a.stopPropagation(),d("body").addClass("noSelect"),this.$element.on("mousemove",this.dragHandler),this.$element.on("mouseup",this.mouseUpHandler),d(document).on("mousemove",this.dragHandler),d(document).on("mouseup",this.mouseUpHandler),c.debug("Start touch handler, pageX: "+a.pageX),this.initialPageX=this.currentPageX=a.pageX,!1},dragHandler:function(a){a.preventDefault(),this.isDragging=!0;var b=a;this.isTouchDevice()&&(b=a.touches[0]);var d=this.currentPageX-b.pageX;return this.currentPageX=b.pageX,0===d?!1:(c.debug("Move touch handler, pageX:",this.currentPageX),this.onDrag(d),this.finishDragging=!0,!1)},endTouchHandler:function(a){c.debug("End touch handler");var b=new Date,e=a;this.isTouchDevice()&&(e=a.changedTouches[0]);var f=this.initialPageX-e.pageX;d("body").removeClass("noSelect"),this.$element[0].ontouchmove=null,this.$element[0].ontouchend=null,document.ontouchmove=null,document.ontouchend=null,(0===f||!this.isDragging)&&b.getTime()-this.touchStartTime.getTime()<this.touchClickDelayMS?d(a.target).trigger("itemTouched"):this.onDragFinish(this.initialPageX,e),this.isDragging=!1},mouseUpHandler:function(a){c.debug("End touch handler");var b=new Date,e=this.initialPageX-a.pageX,f=b.getTime()-this.touchStartTime.getTime();return d("body").removeClass("noSelect"),this.$element.off("mousemove",this.dragHandler),this.$element.off("mouseup",this.mouseUpHandler),d(document).off("mousemove",this.dragHandler),d(document).off("mouseup",this.mouseUpHandler),0===e&&f>0&&f<this.touchClickDelayMS?d(a.target).trigger("itemTouched"):this.onDragFinish(this.initialPageX,a),!1},_enableStartEvents:function(){this.isTouchDevice()?this.$element[0].ontouchstart=this.startTouchHandler:this.$element.on("mousedown",this.mouseDownHandler)},_disableStartEvents:function(){this.isTouchDevice()?this.$element[0].ontouchstart=null:this.$element.off("mousedown",this.mouseDownHandler)},disableDragging:function(){c.log("Disable dragging"),this._disableStartEvents()},enableDragging:function(){c.log("Enable dragging"),this._enableStartEvents()}});b.exports=f},{"class":"GXCbp8",jquery:"xlgdQ9"}],wrapper:[function(a,b){b.exports=a("kV8X1M")},{}],kV8X1M:[function(a,b){var c=a("./carousel");a("jquery-plugin-wrapper").wrap("xnCarousel",c,a("jquery")),b.exports=c},{"./carousel":38,jquery:"xlgdQ9","jquery-plugin-wrapper":30}],xlgdQ9:[function(a,c){c.exports=b},{}],jquery:[function(a,b){b.exports=a("xlgdQ9")},{}],45:[function(a,b){var c=a("class");b.exports=c.extend({init:function(a){this.loadingObject=a},preLoad:function(){},load:function(){},postLoad:function(){}})},{"class":"GXCbp8"}],46:[function(a,b){var c,d=a("jquery"),e=a("./abstract-strategy"),f=a("./spinner");b.exports=e.extend({init:function(a,b){this._super(a),this.spinner=new f,this.itemClass=b.getItemClass(),c=b.getLogger()},preLoad:function(a,b){c.log("Preloading item");var e=b.replace(" src="," data-src="),f=d(e);a.append(f),a.addClass("loading"),this.loadingObject.$overview.append(a);var g=this;a.find("img").each(function(){if(d(this).error(g,g.postLoad).load(g,g.postLoad),g.spinner.showSpinner(d(this)),this.hasAttribute("data-src")){var a=d(this).attr("data-src");d(this).attr("src",a),d(this).removeAttr("data-src")}})},load:function(a){c.log("Loading item",a)},postLoad:function(a){c.log("After loaded"),d(this).parents("."+this.itemClass).removeClass("loading");var b=a.data;b.spinner.setSpinnerSize({spinnerHeight:d(this).height(),spinnerWidth:d(this).width()}),b.spinner.hideSpinner(d(this)),b.loadingObject.afterLoaded(d(this),a)}})},{"./abstract-strategy":45,"./spinner":49,jquery:"xlgdQ9"}],47:[function(a,b){var c,d=a("jquery"),e=a("./abstract-strategy"),f=a("./spinner");b.exports=e.extend({init:function(a,b){this._super(a),this.spinner=new f,this.itemClass=b.getItemClass(),c=b.getLogger()},preLoad:function(a,b){c.debug("Preloading item");var e=b.replace(" src="," data-src="),f=d(e);a.append(f),a.addClass("proxy"),this.loadingObject.$overview.append(a)},load:function(a){c.debug("Loading item");var b=this;a=a.filter(function(){return d(this).hasClass("proxy")}),a.removeClass("proxy"),a.addClass("loading"),a.find("img").each(function(){if(d(this).error(b,b.postLoad).load(b,b.postLoad),b.spinner.showSpinner(d(this)),this.hasAttribute("data-src")){var a=d(this).attr("data-src");d(this).attr("src",a),d(this).removeAttr("data-src")}})},postLoad:function(a){c.debug("After loaded");var b=a.data;d(this).parents("."+this.itemClass).removeClass("loading"),b.spinner.setSpinnerSize({spinnerHeight:d(this).height(),spinnerWidth:d(this).width()}),b.spinner.hideSpinner(d(this)),b.loadingObject.afterLoaded(d(this),a)}})},{"./abstract-strategy":45,"./spinner":49,jquery:"xlgdQ9"}],48:[function(a,b){var c=a("class"),d=a("./lazy-strategy"),e=a("./eager-strategy");b.exports=c.extend({init:function(a,b){this.carouselApi=a,this.$overview=a.container,this.loadingType=b.loadingType,this.afterLoadedCallback=b.afterLoadedCallback,this.loadingStrategy=this._getStrategy()},preLoadItem:function(a,b){this.loadingStrategy.preLoad(a,b)},loadItem:function(a){this.loadingStrategy.load(a)},afterLoaded:function(a,b){var c=this.afterLoadedCallback;c&&c.call(this,a,b)},_getStrategy:function(){return"lazy"===this.loadingType?new d(this,this.carouselApi):new e(this,this.carouselApi)}})},{"./eager-strategy":46,"./lazy-strategy":47,"class":"GXCbp8"}],49:[function(b,c){var d=b("class"),e=b("../../../libs/spin.js"),f=b("jquery");c.exports=d.extend({init:function(a){var b={lines:11,length:3,width:5,radius:8,corners:1,rotate:0,direction:1,color:"#000",speed:2,trail:30,shadow:!1,hwaccel:!0,className:"spinner",zIndex:99,top:"0",left:"0"};this.options=f.extend({},b,a),this.loadingElements=[],this.$spinners=[]},showSpinner:function(b){var c,d,g,h,i=f("<div></div>");this.loadingElements.push(b[0]),i.addClass("spinnerElement"),new e(this.options).spin(i[0]),this.$spinners.push(i),d=a.getComputedStyle(b[0]),f.each(["position","margin","padding"],function(a,b){i.css(b,d[b])}),b.parent().append(i[0]),g=this.size?this.size.spinnerHeight:b[0].clientHeight,h=this.size?this.size.spinnerWidth:b[0].clientWidth,i.css("height",g+"px"),i.css("width",h+"px"),c=i.find(".spinner"),c.css("height","100%"),c.css("width","100%");var j,k=this;f.each(c.children(),function(a,b){j=f(b),j.height("100%"),j.width("100%");var c=11;g=k.options.length,h=k.options.width,.01*h*j.width()>c&&(h=c/1.2*100/j.width(),g=2.3*100/j.height()),f(j.children()[0]).css("width",h+"%"),f(j.children()[0]).css("height",g+"%")}),c.css("top","50%"),c.css("left","50%"),b.hide()},hideSpinner:function(a){var b=this.$spinners[this.loadingElements.indexOf(a[0])];b.remove(),a.show()},setSpinnerSize:function(a){this.size=a}})},{"../../../libs/spin.js":1,"class":"GXCbp8",jquery:"xlgdQ9"}],50:[function(a,b){var c,d=a("jquery"),e=a("class"),f=".xn-pagination .item-container",g=".item",h='<div class="xn-pagination"><div class="item-container"></div></div>',i='<div class="item"></div>',j="selected",k={onPageSelected:function(){},pageCount:0};b.exports=e.extend({itemCount:0,init:function(a){this.options=d.extend({},k,a),this.paginationContainerSelector=a.paginationContainerSelector||f,this.paginationItemSelector=a.paginationItemSelector||g,this.notifyPageSelected=a.onPageSelected,c=a.api.getLogger()},render:function(a){return this.$itemContainer=this.options.paginationContainerSelector?this.$itemContainer||d(this.options.paginationContainerSelector):this.$itemContainer||this._renderContainer(a),this.options.paginationItemSelector||this._renderPageItems(this.$itemContainer,this.options.getPageCount()),this.enablePaginationUI(),this._getItems().first().addClass(j),this.$itemContainer},_renderContainer:function(a){var b=h;return a.append(b),a.find(f)},_renderPageItems:function(a,b){if(this.clear(),b>1)for(var c=0;b>c;c++)this.addItem()},_getItems:function(){return this.$itemContainer.find(g)},addItem:function(){this.$itemContainer.append(d(i)),this.itemCount++},removeItem:function(){return 0===this.itemCount?(c.warn("There are no page indicators to remove"),void 0):(this._getItems().last().remove(),this.itemCount--,void 0)},clear:function(){this.itemCount=0,this._getItems().remove()},select:function(a){var b=this._getItems();b.removeClass(j),b.eq(a).addClass(j)},onPageItemClick:function(a){var b=d(a.currentTarget);if(!b.hasClass(j)){var e=b.index();c.debug("Page item clicked: "+e),this.select(e),this.notifyPageSelected(e),a.preventDefault()}},enablePaginationUI:function(){this.disablePaginationUI(),this.$itemContainer.on("click",g,d.proxy(this.onPageItemClick,this))},disablePaginationUI:function(){this.$itemContainer.off("click",g)}})},{"class":"GXCbp8",jquery:"xlgdQ9"}],51:[function(a,b){var c,d=a("class"),e=a("./paging-indicator.js"),f=a("jquery"),g="active";b.exports=d.extend({init:function(a,b){this.carouselApi=a,this.onPageSelected=b.onPageSelected,this.pageSize=b.pageSize,this.circularNavigation=b.circularNavigation,this.paginationContainerSelector=b.paginationContainerSelector||null,this.paginationItemSelector=b.paginationItemSelector||null,this.currentPage=0,this.prevCurrentPage=0,c=a.getLogger()},renderIndicator:function(){this.pagingIndicator=this.pagingIndicator||new e({api:this.carouselApi,getPageCount:f.proxy(this.getPageCount,this),onPageSelected:this.onPageSelected,paginationContainerSelector:this.paginationContainerSelector||null,paginationItemSelector:this.paginationItemSelector||null}),this.pagingIndicator.render(this.carouselApi.container)},getPageCount:function(){return 0===this.pageSize?0:Math.ceil(this.carouselApi.getItemCount()/this.pageSize)},updatePageSize:function(a){this.pageSize=a},getPageIndex:function(a){return~~(a/this.pageSize)},goToPage:function(a,b){return b&&b.force||!(0>a||a>=this.getPageCount())?(this.carouselApi.getItemsForCurrentPage().removeClass(g),this.prevCurrentPage=this.currentPage,this.currentPage=a,this.carouselApi.getItemsForCurrentPage().addClass(g),void 0):(c.error("Cannot go to page %d. Invalid page",a),void 0)},getCurrentPage:function(){return this.currentPage},getPrevCurrentPage:function(){return this.prevCurrentPage},getLastPage:function(){return this.getPageCount()-1},hasPrevPage:function(){return this.circularNavigation?!0:this.currentPage>0},hasNextPage:function(){if(this.circularNavigation)return!0;var a=this.getPageCount();return this.currentPage<a-1},getNextPage:function(){return this.circularNavigation||this.hasNextPage()?(this.currentPage+1)%this.getPageCount():this.currentPage},getPrevPage:function(){if(!this.circularNavigation&&!this.hasPrevPage())return this.currentPage;var a=this.currentPage-1;return-1===a&&(a=this.getPageCount()-1),a},getIndicesForPage:function(a){if(0>a)return[];var b=this.pageSize*a,c=Math.min(b+this.pageSize,this.carouselApi.getItemCount())-1;if(b>c)return[];c-b<this.pageSize-1&&(b-=this.pageSize-1-(c-b));for(var d=[],e=b;c>=e;e++)d.push(e);return d},addPage:function(){this.pagingIndicator&&this.pagingIndicator.addItem()},removePage:function(){this.pagingIndicator&&this.pagingIndicator.removeItem()},clear:function(){this.currentPage=0,this.prevCurrentPage=0,this.pagingIndicator&&this.pagingIndicator.clear()},updateUI:function(){this.pagingIndicator&&this.pagingIndicator.select(this.currentPage)},enableUI:function(){this.pagingIndicator&&this.pagingIndicator.enablePaginationUI()},disableUI:function(){this.pagingIndicator&&this.pagingIndicator.disablePaginationUI()}})},{"./paging-indicator.js":50,"class":"GXCbp8",jquery:"xlgdQ9"}],52:[function(b,c,d){d.getDependency=function(a,b,c){return a=a||{},a[b]||c},d.trim=function(a){return a?(a+"").replace(/(?:(?:^|\n)\s+|\s+(?:$|\n))/g,"").replace(/\s+/g," "):""},d.isEmpty=function(a){return!d.trim(a)},d.isString=function(a){return"string"==typeof a},d.createDeepVariable=function(b,c){c=c||a;var e,f=b.split(".");return 1===f.length?e=f.shift():(e=f.pop(),c=d.createNS(f.join("."),c)),{parent:c,item:e}},d.createNS=function(b,c){var e=b.split("."),f=e.shift();return c=c||a,c[f]=c[f]||{},e.length?d.createNS(e.join("."),c[f]):c[f]},d.getDeepValue=function(b,c){var d=c||a;if(!d)return null;for(var e=b.split("."),f=0;f<e.length;f++)if(d=d[e[f]],!d)return null;return d},d.isInt=function(a){return"number"==typeof a&&a%1===0},d.getPixels=function(a,b){var c=a[0].style[b];return"%"===c[c.length-1]?parseFloat(c.slice(0,-1),10):parseFloat(c.slice(0,-2),10)},d.isIE=function(){var a=navigator.userAgent.toLowerCase();return-1!==a.indexOf("msie")?parseFloat(a.split("msie")[1],10):!1}},{}]},{},["kV8X1M"])}(this,jQuery);