File "owl.min.js"
Full Path: /var/www/bvnghean.vn/save_bvnghean.vn/wp-content/themes/magone/assets/js/owl.min.js
File size: 39.52 KB
MIME-type: text/plain
Charset: utf-8
!function(D,C,B,A){function z(a,d){this.settings=null,this.options=D.extend({},z.Defaults,d),this.$element=D(a),this.drag=D.extend({},r),this.state=D.extend({},q),this.e=D.extend({},p),this._plugins={},this._supress={},this._current=null,this._speed=null,this._coordinates=[],this._breakpoint=null,this._width=null,this._items=[],this._clones=[],this._mergers=[],this._invalidated={},this._pipe=[],D.each(z.Plugins,D.proxy(function(e,c){this._plugins[e[0].toLowerCase()+e.slice(1)]=new c(this)},this)),D.each(z.Pipe,D.proxy(function(e,f){this._pipe.push({filter:f.filter,run:D.proxy(f.run,this)})},this)),this.setup(),this.initialize()}function y(b){if(b.touches!==A){return{x:b.touches[0].pageX,y:b.touches[0].pageY}}if(b.touches===A){if(b.pageX!==A){return{x:b.pageX,y:b.pageY}}if(b.pageX===A){return{x:b.clientX,y:b.clientY}}}}function x(g){var c,j,i=B.createElement("div"),h=g;for(c in h){if(j=h[c],"undefined"!=typeof i.style[j]){return i=null,[j,c]}}return[!1]}function w(){return x(["transition","WebkitTransition","MozTransition","OTransition"])[1]}function v(){return x(["transform","WebkitTransform","MozTransform","OTransform","msTransform"])[0]}function u(){return x(["perspective","webkitPerspective","MozPerspective","OPerspective","MsPerspective"])[0]}function t(){return"ontouchstart" in C||!!navigator.msMaxTouchPoints}function s(){return C.navigator.msPointerEnabled}var r,q,p;r={start:0,startX:0,startY:0,current:0,currentX:0,currentY:0,offsetX:0,offsetY:0,distance:null,startTime:0,endTime:0,updatedX:0,targetEl:null},q={isTouch:!1,isScrolling:!1,isSwiping:!1,direction:!1,inMotion:!1},p={_onDragStart:null,_onDragMove:null,_onDragEnd:null,_transitionEnd:null,_resizer:null,_responsiveCall:null,_goToLoop:null,_checkVisibile:null},z.Defaults={items:3,loop:!1,center:!1,mouseDrag:!0,touchDrag:!0,pullDrag:!0,freeDrag:!1,margin:0,stagePadding:0,merge:!1,mergeFit:!0,autoWidth:!1,startPosition:0,rtl:!1,smartSpeed:250,fluidSpeed:!1,dragEndSpeed:!1,responsive:{},responsiveRefreshRate:200,responsiveBaseElement:C,responsiveClass:!1,fallbackEasing:"swing",info:!1,nestedItemSelector:!1,itemElement:"div",stageElement:"div",themeClass:"owl-theme",baseClass:"owl-carousel",itemClass:"owl-item",centerClass:"center",activeClass:"active"},z.Width={Default:"default",Inner:"inner",Outer:"outer"},z.Plugins={},z.Pipe=[{filter:["width","items","settings"],run:function(b){b.current=this._items&&this._items[this.relative(this._current)]}},{filter:["items","settings"],run:function(){var d=this._clones,c=this.$stage.children(".cloned");(c.length!==d.length||!this.settings.loop&&d.length>0)&&(this.$stage.children(".cloned").remove(),this._clones=[])}},{filter:["items","settings"],run:function(){var g,f,j=this._clones,i=this._items,h=this.settings.loop?j.length-Math.max(2*this.settings.items,4):0;for(g=0,f=Math.abs(h/2);f>g;g++){h>0?(this.$stage.children().eq(i.length+j.length-1).remove(),j.pop(),this.$stage.children().eq(0).remove(),j.pop()):(j.push(j.length/2),this.$stage.append(i[j[j.length-1]].clone().addClass("cloned")),j.push(i.length-1-(j.length-1)/2),this.$stage.prepend(i[j[j.length-1]].clone().addClass("cloned")))}}},{filter:["width","items","settings"],run:function(){var h,g,l,k=this.settings.rtl?1:-1,j=(this.width()/this.settings.items).toFixed(3),i=0;for(this._coordinates=[],g=0,l=this._clones.length+this._items.length;l>g;g++){h=this._mergers[this.relative(g)],h=this.settings.mergeFit&&Math.min(h,this.settings.items)||h,i+=(this.settings.autoWidth?this._items[this.relative(g)].width()+this.settings.margin:j*h)*k,this._coordinates.push(i)}}},{filter:["width","items","settings"],run:function(){var a,h,g=(this.width()/this.settings.items).toFixed(3),f={width:Math.abs(this._coordinates[this._coordinates.length-1])+2*this.settings.stagePadding,"padding-left":this.settings.stagePadding||"","padding-right":this.settings.stagePadding||""};if(this.$stage.css(f),f={width:this.settings.autoWidth?"auto":g-this.settings.margin},f[this.settings.rtl?"margin-left":"margin-right"]=this.settings.margin,!this.settings.autoWidth&&D.grep(this._mergers,function(b){return b>1}).length>0){for(a=0,h=this._coordinates.length;h>a;a++){f.width=Math.abs(this._coordinates[a])-Math.abs(this._coordinates[a-1]||0)-this.settings.margin,this.$stage.children().eq(a).css(f)}}else{this.$stage.children().css(f)}}},{filter:["width","items","settings"],run:function(b){b.current&&this.reset(this.$stage.children().index(b.current))}},{filter:["position"],run:function(){this.animate(this.coordinates(this._current))}},{filter:["width","position","items","settings"],run:function(){var G,F,E,o,n=this.settings.rtl?1:-1,m=2*this.settings.stagePadding,l=this.coordinates(this.current())+m,k=l+this.width()*n,j=[];for(E=0,o=this._coordinates.length;o>E;E++){G=this._coordinates[E-1]||0,F=Math.abs(this._coordinates[E])+m*n,(this.op(G,"<=",l)&&this.op(G,">",k)||this.op(F,"<",l)&&this.op(F,">",k))&&j.push(E)}this.$stage.children("."+this.settings.activeClass).removeClass(this.settings.activeClass),this.$stage.children(":eq("+j.join("), :eq(")+")").addClass(this.settings.activeClass),this.settings.center&&(this.$stage.children("."+this.settings.centerClass).removeClass(this.settings.centerClass),this.$stage.children().eq(this.current()).addClass(this.settings.centerClass))}}],z.prototype.initialize=function(){if(this.trigger("initialize"),this.$element.addClass(this.settings.baseClass).addClass(this.settings.themeClass).toggleClass("owl-rtl",this.settings.rtl),this.browserSupport(),this.settings.autoWidth&&this.state.imagesLoaded!==!0){var a,f,d;if(a=this.$element.find("img"),f=this.settings.nestedItemSelector?"."+this.settings.nestedItemSelector:A,d=this.$element.children(f).width(),a.length&&0>=d){return this.preloadAutoWidthImages(a),!1}}this.$element.addClass("owl-loading"),this.$stage=D("<"+this.settings.stageElement+' class="owl-stage"/>').wrap('<div class="owl-stage-outer">'),this.$element.append(this.$stage.parent()),this.replace(this.$element.children().not(this.$stage.parent())),this._width=this.$element.width(),this.refresh(),this.$element.removeClass("owl-loading").addClass("owl-loaded"),this.eventsCall(),this.internalEvents(),this.addTriggerableEvents(),this.trigger("initialized")},z.prototype.setup=function(){var a=this.viewport(),h=this.options.responsive,g=-1,f=null;h?(D.each(h,function(b){a>=b&&b>g&&(g=Number(b))}),f=D.extend({},this.options,h[g]),delete f.responsive,f.responsiveClass&&this.$element.attr("class",function(d,c){return c.replace(/\b owl-responsive-\S+/g,"")}).addClass("owl-responsive-"+g)):f=D.extend({},this.options),(null===this.settings||this._breakpoint!==g)&&(this.trigger("change",{property:{name:"settings",value:f}}),this._breakpoint=g,this.settings=f,this.invalidate("settings"),this.trigger("changed",{property:{name:"settings",value:this.settings}}))},z.prototype.optionsLogic=function(){this.$element.toggleClass("owl-center",this.settings.center),this.settings.loop&&this._items.length<this.settings.items&&(this.settings.loop=!1),this.settings.autoWidth&&(this.settings.stagePadding=!1,this.settings.merge=!1)},z.prototype.prepare=function(a){var d=this.trigger("prepare",{content:a});return d.data||(d.data=D("<"+this.settings.itemElement+"/>").addClass(this.settings.itemClass).append(a)),this.trigger("prepared",{content:d.data}),d.data},z.prototype.update=function(){for(var a=0,h=this._pipe.length,g=D.proxy(function(b){return this[b]},this._invalidated),f={};h>a;){(this._invalidated.all||D.grep(this._pipe[a].filter,g).length>0)&&this._pipe[a].run(f),a++}this._invalidated={}},z.prototype.width=function(b){switch(b=b||z.Width.Default){case z.Width.Inner:case z.Width.Outer:return this._width;default:return this._width-2*this.settings.stagePadding+this.settings.margin}},z.prototype.refresh=function(){if(0===this._items.length){return !1}(new Date).getTime();this.trigger("refresh"),this.setup(),this.optionsLogic(),this.$stage.addClass("owl-refresh"),this.update(),this.$stage.removeClass("owl-refresh"),this.state.orientation=C.orientation,this.watchVisibility(),this.trigger("refreshed")},z.prototype.eventsCall=function(){this.e._onDragStart=D.proxy(function(b){this.onDragStart(b)},this),this.e._onDragMove=D.proxy(function(b){this.onDragMove(b)},this),this.e._onDragEnd=D.proxy(function(b){this.onDragEnd(b)},this),this.e._onResize=D.proxy(function(b){this.onResize(b)},this),this.e._transitionEnd=D.proxy(function(b){this.transitionEnd(b)},this),this.e._preventClick=D.proxy(function(b){this.preventClick(b)},this)},z.prototype.onThrottledResize=function(){C.clearTimeout(this.resizeTimer),this.resizeTimer=C.setTimeout(this.e._onResize,this.settings.responsiveRefreshRate)},z.prototype.onResize=function(){return this._items.length?this._width===this.$element.width()?!1:this.trigger("resize").isDefaultPrevented()?!1:(this._width=this.$element.width(),this.invalidate("width"),this.refresh(),void this.trigger("resized")):!1},z.prototype.eventsRouter=function(d){var c=d.type;"mousedown"===c||"touchstart"===c?this.onDragStart(d):"mousemove"===c||"touchmove"===c?this.onDragMove(d):"mouseup"===c||"touchend"===c?this.onDragEnd(d):"touchcancel"===c&&this.onDragEnd(d)},z.prototype.internalEvents=function(){var a=(t(),s());this.settings.mouseDrag?(this.$stage.on("mousedown",D.proxy(function(b){this.eventsRouter(b)},this)),this.$stage.on("dragstart",function(){return !1}),this.$stage.get(0).onselectstart=function(){return !1}):this.$element.addClass("owl-text-select-on"),this.settings.touchDrag&&!a&&this.$stage.on("touchstart touchcancel",D.proxy(function(b){this.eventsRouter(b)},this)),this.transitionEndVendor&&this.on(this.$stage.get(0),this.transitionEndVendor,this.e._transitionEnd,!1),this.settings.responsive!==!1&&this.on(C,"resize",D.proxy(this.onThrottledResize,this))},z.prototype.onDragStart=function(j){var f,c,b,a;if(f=j.originalEvent||j||C.event,3===f.which||this.state.isTouch){return !1}if("mousedown"===f.type&&this.$stage.addClass("owl-grab"),this.trigger("drag"),this.drag.startTime=(new Date).getTime(),this.speed(0),this.state.isTouch=!0,this.state.isScrolling=!1,this.state.isSwiping=!1,this.drag.distance=0,c=y(f).x,b=y(f).y,this.drag.offsetX=this.$stage.position().left,this.drag.offsetY=this.$stage.position().top,this.settings.rtl&&(this.drag.offsetX=this.$stage.position().left+this.$stage.width()-this.width()+this.settings.margin),this.state.inMotion&&this.support3d){a=this.getTransformProperty(),this.drag.offsetX=a,this.animate(a),this.state.inMotion=!0}else{if(this.state.inMotion&&!this.support3d){return this.state.inMotion=!1,!1}}this.drag.startX=c-this.drag.offsetX,this.drag.startY=b-this.drag.offsetY,this.drag.start=c-this.drag.startX,this.drag.targetEl=f.target||f.srcElement,this.drag.updatedX=this.drag.start,("IMG"===this.drag.targetEl.tagName||"A"===this.drag.targetEl.tagName)&&(this.drag.targetEl.draggable=!1),D(B).on("mousemove.owl.dragEvents mouseup.owl.dragEvents touchmove.owl.dragEvents touchend.owl.dragEvents",D.proxy(function(d){this.eventsRouter(d)},this))},z.prototype.onDragMove=function(b){var n,m,l,k,f,d;this.state.isTouch&&(this.state.isScrolling||(n=b.originalEvent||b||C.event,m=y(n).x,l=y(n).y,this.drag.currentX=m-this.drag.startX,this.drag.currentY=l-this.drag.startY,this.drag.distance=this.drag.currentX-this.drag.offsetX,this.drag.distance<0?this.state.direction=this.settings.rtl?"right":"left":this.drag.distance>0&&(this.state.direction=this.settings.rtl?"left":"right"),this.settings.loop?this.op(this.drag.currentX,">",this.coordinates(this.minimum()))&&"right"===this.state.direction?this.drag.currentX-=(this.settings.center&&this.coordinates(0))-this.coordinates(this._items.length):this.op(this.drag.currentX,"<",this.coordinates(this.maximum()))&&"left"===this.state.direction&&(this.drag.currentX+=(this.settings.center&&this.coordinates(0))-this.coordinates(this._items.length)):(k=this.coordinates(this.settings.rtl?this.maximum():this.minimum()),f=this.coordinates(this.settings.rtl?this.minimum():this.maximum()),d=this.settings.pullDrag?this.drag.distance/5:0,this.drag.currentX=Math.max(Math.min(this.drag.currentX,k+d),f+d)),(this.drag.distance>8||this.drag.distance<-8)&&(n.preventDefault!==A?n.preventDefault():n.returnValue=!1,this.state.isSwiping=!0),this.drag.updatedX=this.drag.currentX,(this.drag.currentY>16||this.drag.currentY<-16)&&this.state.isSwiping===!1&&(this.state.isScrolling=!0,this.drag.updatedX=this.drag.start),this.animate(this.drag.updatedX)))},z.prototype.onDragEnd=function(a){var h,g,c;if(this.state.isTouch){if("mouseup"===a.type&&this.$stage.removeClass("owl-grab"),this.trigger("dragged"),this.drag.targetEl.removeAttribute("draggable"),this.state.isTouch=!1,this.state.isScrolling=!1,this.state.isSwiping=!1,0===this.drag.distance&&this.state.inMotion!==!0){return this.state.inMotion=!1,!1}this.drag.endTime=(new Date).getTime(),h=this.drag.endTime-this.drag.startTime,g=Math.abs(this.drag.distance),(g>3||h>300)&&this.removeClick(this.drag.targetEl),c=this.closest(this.drag.updatedX),this.speed(this.settings.dragEndSpeed||this.settings.smartSpeed),this.current(c),this.invalidate("position"),this.update(),this.settings.pullDrag||this.drag.updatedX!==this.coordinates(c)||this.transitionEnd(),this.drag.distance=0,D(B).off(".owl.dragEvents")}},z.prototype.removeClick=function(a){this.drag.targetEl=a,D(a).on("click.preventClick",this.e._preventClick),C.setTimeout(function(){D(a).off("click.preventClick")},300)},z.prototype.preventClick=function(a){a.preventDefault?a.preventDefault():a.returnValue=!1,a.stopPropagation&&a.stopPropagation(),D(a.target).off("click.preventClick")},z.prototype.getTransformProperty=function(){var b,d;return b=C.getComputedStyle(this.$stage.get(0),null).getPropertyValue(this.vendorName+"transform"),b=b.replace(/matrix(3d)?\(|\)/g,"").split(","),d=16===b.length,d!==!0?b[4]:b[12]},z.prototype.closest=function(a){var j=-1,i=30,h=this.width(),g=this.coordinates();return this.settings.freeDrag||D.each(g,D.proxy(function(b,c){return a>c-i&&c+i>a?j=b:this.op(a,"<",c)&&this.op(a,">",g[b+1]||c-h)&&(j="left"===this.state.direction?b+1:b),-1===j},this)),this.settings.loop||(this.op(a,">",g[this.minimum()])?j=a=this.minimum():this.op(a,"<",g[this.maximum()])&&(j=a=this.maximum())),j},z.prototype.animate=function(a){this.trigger("translate"),this.state.inMotion=this.speed()>0,this.support3d?this.$stage.css({transform:"translate3d("+a+"px,0px, 0px)",transition:this.speed()/1000+"s"}):this.state.isTouch?this.$stage.css({left:a+"px"}):this.$stage.animate({left:a},this.speed()/1000,this.settings.fallbackEasing,D.proxy(function(){this.state.inMotion&&this.transitionEnd()},this))},z.prototype.current=function(d){if(d===A){return this._current}if(0===this._items.length){return A}if(d=this.normalize(d),this._current!==d){var c=this.trigger("change",{property:{name:"position",value:d}});c.data!==A&&(d=this.normalize(c.data)),this._current=d,this.invalidate("position"),this.trigger("changed",{property:{name:"position",value:this._current}})}return this._current},z.prototype.invalidate=function(b){this._invalidated[b]=!0},z.prototype.reset=function(b){b=this.normalize(b),b!==A&&(this._speed=0,this._current=b,this.suppress(["translate","translated"]),this.animate(this.coordinates(b)),this.release(["translate","translated"]))},z.prototype.normalize=function(a,f){var d=f?this._items.length:this._items.length+this._clones.length;return !D.isNumeric(a)||1>d?A:a=this._clones.length?(a%d+d)%d:Math.max(this.minimum(f),Math.min(this.maximum(f),a))},z.prototype.relative=function(b){return b=this.normalize(b),b-=this._clones.length/2,this.normalize(b,!0)},z.prototype.maximum=function(h){var g,l,k,j=0,i=this.settings;if(h){return this._items.length-1}if(!i.loop&&i.center){g=this._items.length-1}else{if(i.loop||i.center){if(i.loop||i.center){g=this._items.length+i.items}else{if(!i.autoWidth&&!i.merge){throw"Can not detect maximum absolute position."}for(revert=i.rtl?1:-1,l=this.$stage.width()-this.$element.width();(k=this.coordinates(j))&&!(k*revert>=l);){g=++j}}}else{g=this._items.length-i.items}}return g},z.prototype.minimum=function(b){return b?0:this._clones.length/2},z.prototype.items=function(b){return b===A?this._items.slice():(b=this.normalize(b,!0),this._items[b])},z.prototype.mergers=function(b){return b===A?this._mergers.slice():(b=this.normalize(b,!0),this._mergers[b])},z.prototype.clones=function(a){var h=this._clones.length/2,g=h+this._items.length,d=function(b){return b%2===0?g+b/2:h-(b+1)/2};return a===A?D.map(this._clones,function(e,c){return d(c)}):D.map(this._clones,function(b,e){return b===a?d(e):null})},z.prototype.speed=function(b){return b!==A&&(this._speed=b),this._speed},z.prototype.coordinates=function(a){var d=null;return a===A?D.map(this._coordinates,D.proxy(function(e,c){return this.coordinates(c)},this)):(this.settings.center?(d=this._coordinates[a],d+=(this.width()-d+(this._coordinates[a-1]||0))/2*(this.settings.rtl?-1:1)):d=this._coordinates[a-1]||0,d)},z.prototype.duration=function(e,d,f){return Math.min(Math.max(Math.abs(d-e),1),6)*Math.abs(f||this.settings.smartSpeed)},z.prototype.to=function(E,o){if(this.settings.loop){var n=E-this.relative(this.current()),m=this.current(),l=this.current(),k=this.current()+n,b=0>l-k?!0:!1,a=this._clones.length+this._items.length;k<this.settings.items&&b===!1?(m=l+this._items.length,this.reset(m)):k>=a-this.settings.items&&b===!0&&(m=l-this._items.length,this.reset(m)),C.clearTimeout(this.e._goToLoop),this.e._goToLoop=C.setTimeout(D.proxy(function(){this.speed(this.duration(this.current(),m+n,o)),this.current(m+n),this.update()},this),30)}else{this.speed(this.duration(this.current(),E,o)),this.current(E),this.update()}},z.prototype.next=function(b){b=b||!1,this.to(this.relative(this.current())+1,b)},z.prototype.prev=function(b){b=b||!1,this.to(this.relative(this.current())-1,b)},z.prototype.transitionEnd=function(b){return b!==A&&(b.stopPropagation(),(b.target||b.srcElement||b.originalTarget)!==this.$stage.get(0))?!1:(this.state.inMotion=!1,void this.trigger("translated"))},z.prototype.viewport=function(){var a;if(this.options.responsiveBaseElement!==C){a=D(this.options.responsiveBaseElement).width()}else{if(C.innerWidth){a=C.innerWidth}else{if(!B.documentElement||!B.documentElement.clientWidth){throw"Can not detect viewport width."}a=B.documentElement.clientWidth}}return a},z.prototype.replace=function(a){this.$stage.empty(),this._items=[],a&&(a=a instanceof jQuery?a:D(a)),this.settings.nestedItemSelector&&(a=a.find("."+this.settings.nestedItemSelector)),a.filter(function(){return 1===this.nodeType}).each(D.proxy(function(d,c){c=this.prepare(c),this.$stage.append(c),this._items.push(c),this._mergers.push(1*c.find("[data-merge]").andSelf("[data-merge]").attr("data-merge")||1)},this)),this.reset(D.isNumeric(this.settings.startPosition)?this.settings.startPosition:0),this.invalidate("items")},z.prototype.add=function(d,c){c=c===A?this._items.length:this.normalize(c,!0),this.trigger("add",{content:d,position:c}),0===this._items.length||c===this._items.length?(this.$stage.append(d),this._items.push(d),this._mergers.push(1*d.find("[data-merge]").andSelf("[data-merge]").attr("data-merge")||1)):(this._items[c].before(d),this._items.splice(c,0,d),this._mergers.splice(c,0,1*d.find("[data-merge]").andSelf("[data-merge]").attr("data-merge")||1)),this.invalidate("items"),this.trigger("added",{content:d,position:c})},z.prototype.remove=function(b){b=this.normalize(b,!0),b!==A&&(this.trigger("remove",{content:this._items[b],position:b}),this._items[b].remove(),this._items.splice(b,1),this._mergers.splice(b,1),this.invalidate("items"),this.trigger("removed",{content:null,position:b}))},z.prototype.addTriggerableEvents=function(){var a=D.proxy(function(d,e){return D.proxy(function(b){b.relatedTarget!==this&&(this.suppress([e]),d.apply(this,[].slice.call(arguments,1)),this.release([e]))},this)},this);D.each({next:this.next,prev:this.prev,to:this.to,destroy:this.destroy,refresh:this.refresh,replace:this.replace,add:this.add,remove:this.remove},D.proxy(function(b,d){this.$element.on(b+".owl.carousel",a(d,b+".owl.carousel"))},this))},z.prototype.watchVisibility=function(){function b(c){return c.offsetWidth>0&&c.offsetHeight>0}function a(){b(this.$element.get(0))&&(this.$element.removeClass("owl-hidden"),this.refresh(),C.clearInterval(this.e._checkVisibile))}b(this.$element.get(0))||(this.$element.addClass("owl-hidden"),C.clearInterval(this.e._checkVisibile),this.e._checkVisibile=C.setInterval(D.proxy(a,this),500))},z.prototype.preloadAutoWidthImages=function(a){var j,i,h,g;j=0,i=this,a.each(function(c,b){h=D(b),g=new Image,g.onload=function(){j++,h.attr("src",g.src),h.css("opacity",1),j>=a.length&&(i.state.imagesLoaded=!0,i.initialize())},g.src=h.attr("src")||h.attr("data-src")||h.attr("data-src-retina")})},z.prototype.destroy=function(){this.$element.hasClass(this.settings.themeClass)&&this.$element.removeClass(this.settings.themeClass),this.settings.responsive!==!1&&D(C).off("resize.owl.carousel"),this.transitionEndVendor&&this.off(this.$stage.get(0),this.transitionEndVendor,this.e._transitionEnd);for(var a in this._plugins){this._plugins[a].destroy()}(this.settings.mouseDrag||this.settings.touchDrag)&&(this.$stage.off("mousedown touchstart touchcancel"),D(B).off(".owl.dragEvents"),this.$stage.get(0).onselectstart=function(){},this.$stage.off("dragstart",function(){return !1})),this.$element.off(".owl"),this.$stage.children(".cloned").remove(),this.e=null,this.$element.removeData("owlCarousel"),this.$stage.children().contents().unwrap(),this.$stage.children().unwrap(),this.$stage.unwrap()},z.prototype.op=function(f,e,h){var g=this.settings.rtl;switch(e){case"<":return g?f>h:h>f;case">":return g?h>f:f>h;case">=":return g?h>=f:f>=h;case"<=":return g?f>=h:h>=f}},z.prototype.on=function(f,e,h,g){f.addEventListener?f.addEventListener(e,h,g):f.attachEvent&&f.attachEvent("on"+e,h)},z.prototype.off=function(f,e,h,g){f.removeEventListener?f.removeEventListener(e,h,g):f.detachEvent&&f.detachEvent("on"+e,h)},z.prototype.trigger=function(a,l,k){var j={item:{count:this._items.length,index:this.current()}},i=D.camelCase(D.grep(["on",a,k],function(b){return b}).join("-").toLowerCase()),h=D.Event([a,"owl",k||"carousel"].join(".").toLowerCase(),D.extend({relatedTarget:this},j,l));return this._supress[a]||(D.each(this._plugins,function(d,c){c.onTrigger&&c.onTrigger(h)}),this.$element.trigger(h),this.settings&&"function"==typeof this.settings[i]&&this.settings[i].apply(this,h)),h},z.prototype.suppress=function(a){D.each(a,D.proxy(function(d,c){this._supress[c]=!0},this))},z.prototype.release=function(a){D.each(a,D.proxy(function(d,c){delete this._supress[c]},this))},z.prototype.browserSupport=function(){if(this.support3d=u(),this.support3d){this.transformVendor=v();var b=["transitionend","webkitTransitionEnd","transitionend","oTransitionEnd"];this.transitionEndVendor=b[w()],this.vendorName=this.transformVendor.replace(/Transform/i,""),this.vendorName=""!==this.vendorName?"-"+this.vendorName.toLowerCase()+"-":""}this.state.orientation=C.orientation},D.fn.owlCarousel=function(a){return this.each(function(){D(this).data("owlCarousel")||D(this).data("owlCarousel",new z(this,a))})},D.fn.owlCarousel.Constructor=z}(window.Zepto||window.jQuery,window,document),function(e,d){var f=function(a){this._core=a,this._loaded=[],this._handlers={"initialized.owl.carousel change.owl.carousel":e.proxy(function(i){if(i.namespace&&this._core.settings&&this._core.settings.lazyLoad&&(i.property&&"position"==i.property.name||"initialized"==i.type)){for(var o=this._core.settings,n=o.center&&Math.ceil(o.items/2)||o.items,m=o.center&&-1*n||0,l=(i.property&&i.property.value||this._core.current())+m,k=this._core.clones().length,j=e.proxy(function(g,c){this.load(c)},this);m++<n;){this.load(k/2+this._core.relative(l)),k&&e.each(this._core.clones(this._core.relative(l++)),j)}}},this)},this._core.options=e.extend({},f.Defaults,this._core.options),this._core.$element.on(this._handlers)};f.Defaults={lazyLoad:!1},f.prototype.load=function(g){var b=this._core.$stage.children().eq(g),a=b&&b.find(".owl-lazy");!a||e.inArray(b.get(0),this._loaded)>-1||(a.each(e.proxy(function(l,k){var j,i=e(k),h=d.devicePixelRatio>1&&i.attr("data-src-retina")||i.attr("data-src");this._core.trigger("load",{element:i,url:h},"lazy"),i.is("img")?i.one("load.owl.lazy",e.proxy(function(){i.css("opacity",1),this._core.trigger("loaded",{element:i,url:h},"lazy")},this)).attr("src",h):(j=new Image,j.onload=e.proxy(function(){i.css({"background-image":"url("+h+")",opacity:"1"}),this._core.trigger("loaded",{element:i,url:h},"lazy")},this),j.src=h)},this)),this._loaded.push(b.get(0)))},f.prototype.destroy=function(){var g,c;for(g in this.handlers){this._core.$element.off(g,this.handlers[g])}for(c in Object.getOwnPropertyNames(this)){"function"!=typeof this[c]&&(this[c]=null)}},e.fn.owlCarousel.Constructor.Plugins.Lazy=f}(window.Zepto||window.jQuery,window,document),function(d){var c=function(a){this._core=a,this._handlers={"initialized.owl.carousel":d.proxy(function(){this._core.settings.autoHeight&&this.update()},this),"changed.owl.carousel":d.proxy(function(b){this._core.settings.autoHeight&&"position"==b.property.name&&this.update()},this),"loaded.owl.lazy":d.proxy(function(b){this._core.settings.autoHeight&&b.element.closest("."+this._core.settings.itemClass)===this._core.$stage.children().eq(this._core.current())&&this.update()},this)},this._core.options=d.extend({},c.Defaults,this._core.options),this._core.$element.on(this._handlers)};c.Defaults={autoHeight:!1,autoHeightClass:"owl-height"},c.prototype.update=function(){this._core.$stage.parent().height(this._core.$stage.children().eq(this._core.current()).height()).addClass(this._core.settings.autoHeightClass)},c.prototype.destroy=function(){var f,e;for(f in this._handlers){this._core.$element.off(f,this._handlers[f])}for(e in Object.getOwnPropertyNames(this)){"function"!=typeof this[e]&&(this[e]=null)}},d.fn.owlCarousel.Constructor.Plugins.AutoHeight=c}(window.Zepto||window.jQuery,window,document),function(f,e,h){var g=function(a){this._core=a,this._videos={},this._playing=null,this._fullscreen=!1,this._handlers={"resize.owl.carousel":f.proxy(function(b){this._core.settings.video&&!this.isInFullScreen()&&b.preventDefault()},this),"refresh.owl.carousel changed.owl.carousel":f.proxy(function(){this._playing&&this.stop()},this),"prepared.owl.carousel":f.proxy(function(d){var i=f(d.content).find(".owl-video");i.length&&(i.css("display","none"),this.fetch(i,f(d.content)))},this)},this._core.options=f.extend({},g.Defaults,this._core.options),this._core.$element.on(this._handlers),this._core.$element.on("click.owl.video",".owl-video-play-icon",f.proxy(function(b){this.play(b)},this))};g.Defaults={video:!1,videoHeight:!1,videoWidth:!1},g.prototype.fetch=function(j,i){var o=j.attr("data-vimeo-id")?"vimeo":"youtube",n=j.attr("data-vimeo-id")||j.attr("data-youtube-id"),m=j.attr("data-width")||this._core.settings.videoWidth,l=j.attr("data-height")||this._core.settings.videoHeight,k=j.attr("href");if(!k){throw new Error("Missing video URL.")}if(n=k.match(/(http:|https:|)\/\/(player.|www.)?(vimeo\.com|youtu(be\.com|\.be|be\.googleapis\.com))\/(video\/|embed\/|watch\?v=|v\/)?([A-Za-z0-9._%-]*)(\&\S+)?/),n[3].indexOf("youtu")>-1){o="youtube"}else{if(!(n[3].indexOf("vimeo")>-1)){throw new Error("Video URL not supported.")}o="vimeo"}n=n[6],this._videos[k]={type:o,id:n,width:m,height:l},i.attr("data-video",k),this.thumbnail(j,this._videos[k])},g.prototype.thumbnail=function(v,u){var t,s,r,q=u.width&&u.height?'style="width:'+u.width+"px;height:"+u.height+'px;"':"",p=v.find("img"),o="src",n="",m=this._core.settings,a=function(b){s='<div class="owl-video-play-icon"></div>',t=m.lazyLoad?'<div class="owl-video-tn '+n+'" '+o+'="'+b+'"></div>':'<div class="owl-video-tn" style="opacity:1;background-image:url('+b+')"></div>',v.after(t),v.after(s)};return v.wrap('<div class="owl-video-wrapper"'+q+"></div>"),this._core.settings.lazyLoad&&(o="data-src",n="owl-lazy"),p.length?(a(p.attr(o)),p.remove(),!1):void ("youtube"===u.type?(r="http://img.youtube.com/vi/"+u.id+"/hqdefault.jpg",a(r)):"vimeo"===u.type&&f.ajax({type:"GET",url:"http://vimeo.com/api/v2/video/"+u.id+".json",jsonp:"callback",dataType:"jsonp",success:function(b){r=b[0].thumbnail_large,a(r)}}))},g.prototype.stop=function(){this._core.trigger("stop",null,"video"),this._playing.find(".owl-video-frame").remove(),this._playing.removeClass("owl-video-playing"),this._playing=null},g.prototype.play=function(a){this._core.trigger("play",null,"video"),this._playing&&this.stop();var p,o,n=f(a.target||a.srcElement),m=n.closest("."+this._core.settings.itemClass),l=this._videos[m.attr("data-video")],k=l.width||"100%",j=l.height||this._core.$stage.height();"youtube"===l.type?p='<iframe width="'+k+'" height="'+j+'" src="http://www.youtube.com/embed/'+l.id+"?autoplay=1&v="+l.id+'" frameborder="0" allowfullscreen></iframe>':"vimeo"===l.type&&(p='<iframe src="http://player.vimeo.com/video/'+l.id+'?autoplay=1" width="'+k+'" height="'+j+'" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>'),m.addClass("owl-video-playing"),this._playing=m,o=f('<div style="height:'+j+"px; width:"+k+'px" class="owl-video-frame">'+p+"</div>"),n.after(o)},g.prototype.isInFullScreen=function(){var a=h.fullscreenElement||h.mozFullScreenElement||h.webkitFullscreenElement;return a&&f(a).parent().hasClass("owl-video-frame")&&(this._core.speed(0),this._fullscreen=!0),a&&this._fullscreen&&this._playing?!1:this._fullscreen?(this._fullscreen=!1,!1):this._playing&&this._core.state.orientation!==e.orientation?(this._core.state.orientation=e.orientation,!1):!0},g.prototype.destroy=function(){var d,c;this._core.$element.off("click.owl.video");for(d in this._handlers){this._core.$element.off(d,this._handlers[d])}for(c in Object.getOwnPropertyNames(this)){"function"!=typeof this[c]&&(this[c]=null)}},f.fn.owlCarousel.Constructor.Plugins.Video=g}(window.Zepto||window.jQuery,window,document),function(g,f,j,i){var h=function(a){this.core=a,this.core.options=g.extend({},h.Defaults,this.core.options),this.swapping=!0,this.previous=i,this.next=i,this.handlers={"change.owl.carousel":g.proxy(function(b){"position"==b.property.name&&(this.previous=this.core.current(),this.next=b.property.value)},this),"drag.owl.carousel dragged.owl.carousel translated.owl.carousel":g.proxy(function(b){this.swapping="translated"==b.type},this),"translate.owl.carousel":g.proxy(function(){this.swapping&&(this.core.options.animateOut||this.core.options.animateIn)&&this.swap()},this)},this.core.$element.on(this.handlers)};h.Defaults={animateOut:!1,animateIn:!1},h.prototype.swap=function(){if(1===this.core.settings.items&&this.core.support3d){this.core.speed(0);var a,o=g.proxy(this.clear,this),n=this.core.$stage.children().eq(this.previous),m=this.core.$stage.children().eq(this.next),l=this.core.settings.animateIn,k=this.core.settings.animateOut;this.core.current()!==this.previous&&(k&&(a=this.core.coordinates(this.previous)-this.core.coordinates(this.next),n.css({left:a+"px"}).addClass("animated owl-animated-out").addClass(k).one("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",o)),l&&m.addClass("animated owl-animated-in").addClass(l).one("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",o))}},h.prototype.clear=function(a){g(a.target).css({left:""}).removeClass("animated owl-animated-out owl-animated-in").removeClass(this.core.settings.animateIn).removeClass(this.core.settings.animateOut),this.core.transitionEnd()},h.prototype.destroy=function(){var d,c;for(d in this.handlers){this.core.$element.off(d,this.handlers[d])}for(c in Object.getOwnPropertyNames(this)){"function"!=typeof this[c]&&(this[c]=null)}},g.fn.owlCarousel.Constructor.Plugins.Animate=h}(window.Zepto||window.jQuery,window,document),function(f,e,h){var g=function(a){this.core=a,this.core.options=f.extend({},g.Defaults,this.core.options),this.handlers={"translated.owl.carousel refreshed.owl.carousel":f.proxy(function(){this.autoplay()},this),"play.owl.autoplay":f.proxy(function(i,d,j){this.play(d,j)},this),"stop.owl.autoplay":f.proxy(function(){this.stop()},this),"mouseover.owl.autoplay":f.proxy(function(){this.core.settings.autoplayHoverPause&&this.pause()},this),"mouseleave.owl.autoplay":f.proxy(function(){this.core.settings.autoplayHoverPause&&this.autoplay()},this)},this.core.$element.on(this.handlers)};g.Defaults={autoplay:!1,autoplayTimeout:5000,autoplayHoverPause:!1,autoplaySpeed:!1},g.prototype.autoplay=function(){this.core.settings.autoplay&&!this.core.state.videoPlay?(e.clearInterval(this.interval),this.interval=e.setInterval(f.proxy(function(){this.play()},this),this.core.settings.autoplayTimeout)):e.clearInterval(this.interval)},g.prototype.play=function(){return h.hidden===!0||this.core.state.isTouch||this.core.state.isScrolling||this.core.state.isSwiping||this.core.state.inMotion?void 0:this.core.settings.autoplay===!1?void e.clearInterval(this.interval):void this.core.next(this.core.settings.autoplaySpeed)},g.prototype.stop=function(){e.clearInterval(this.interval)},g.prototype.pause=function(){e.clearInterval(this.interval)},g.prototype.destroy=function(){var b,d;e.clearInterval(this.interval);for(b in this.handlers){this.core.$element.off(b,this.handlers[b])}for(d in Object.getOwnPropertyNames(this)){"function"!=typeof this[d]&&(this[d]=null)}},f.fn.owlCarousel.Constructor.Plugins.autoplay=g}(window.Zepto||window.jQuery,window,document),function(d){var c=function(a){this._core=a,this._initialized=!1,this._pages=[],this._controls={},this._templates=[],this.$element=this._core.$element,this._overrides={next:this._core.next,prev:this._core.prev,to:this._core.to},this._handlers={"prepared.owl.carousel":d.proxy(function(e){this._core.settings.dotsData&&this._templates.push(d(e.content).find("[data-dot]").andSelf("[data-dot]").attr("data-dot"))},this),"add.owl.carousel":d.proxy(function(e){this._core.settings.dotsData&&this._templates.splice(e.position,0,d(e.content).find("[data-dot]").andSelf("[data-dot]").attr("data-dot"))},this),"remove.owl.carousel prepared.owl.carousel":d.proxy(function(b){this._core.settings.dotsData&&this._templates.splice(b.position,1)},this),"change.owl.carousel":d.proxy(function(f){if("position"==f.property.name&&!this._core.state.revert&&!this._core.settings.loop&&this._core.settings.navRewind){var e=this._core.current(),h=this._core.maximum(),g=this._core.minimum();f.data=f.property.value>h?e>=h?g:h:f.property.value<g?h:f.property.value}},this),"changed.owl.carousel":d.proxy(function(b){"position"==b.property.name&&this.draw()},this),"refreshed.owl.carousel":d.proxy(function(){this._initialized||(this.initialize(),this._initialized=!0),this._core.trigger("refresh",null,"navigation"),this.update(),this.draw(),this._core.trigger("refreshed",null,"navigation")},this)},this._core.options=d.extend({},c.Defaults,this._core.options),this.$element.on(this._handlers)};c.Defaults={nav:!1,navRewind:!0,navText:["prev","next"],navSpeed:!1,navElement:"div",navContainer:!1,navContainerClass:"owl-nav",navClass:["owl-prev","owl-next"],slideBy:1,dotClass:"owl-dot",dotsClass:"owl-dots",dots:!0,dotsEach:!1,dotData:!1,dotsSpeed:!1,dotsContainer:!1,controlsClass:"owl-controls"},c.prototype.initialize=function(){var a,f,e=this._core.settings;e.dotsData||(this._templates=[d("<div>").addClass(e.dotClass).append(d("<span>")).prop("outerHTML")]),e.navContainer&&e.dotsContainer||(this._controls.$container=d("<div>").addClass(e.controlsClass).appendTo(this.$element)),this._controls.$indicators=e.dotsContainer?d(e.dotsContainer):d("<div>").hide().addClass(e.dotsClass).appendTo(this._controls.$container),this._controls.$indicators.on("click","div",d.proxy(function(g){var h=d(g.target).parent().is(this._controls.$indicators)?d(g.target).index():d(g.target).parent().index();g.preventDefault(),this.to(h,e.dotsSpeed)},this)),a=e.navContainer?d(e.navContainer):d("<div>").addClass(e.navContainerClass).prependTo(this._controls.$container),this._controls.$next=d("<"+e.navElement+">"),this._controls.$previous=this._controls.$next.clone(),this._controls.$previous.addClass(e.navClass[0]).html(e.navText[0]).hide().prependTo(a).on("click",d.proxy(function(){this.prev(e.navSpeed)},this)),this._controls.$next.addClass(e.navClass[1]).html(e.navText[1]).hide().appendTo(a).on("click",d.proxy(function(){this.next(e.navSpeed)},this));for(f in this._overrides){this._core[f]=d.proxy(this[f],this)}},c.prototype.destroy=function(){var f,e,h,g;for(f in this._handlers){this.$element.off(f,this._handlers[f])}for(e in this._controls){this._controls[e].remove()}for(g in this.overides){this._core[g]=this._overrides[g]}for(h in Object.getOwnPropertyNames(this)){"function"!=typeof this[h]&&(this[h]=null)}},c.prototype.update=function(){var i,h,n,m=this._core.settings,l=this._core.clones().length/2,k=l+this._core.items().length,j=m.center||m.autoWidth||m.dotData?1:m.dotsEach||m.items;if("page"!==m.slideBy&&(m.slideBy=Math.min(m.slideBy,m.items)),m.dots||"page"==m.slideBy){for(this._pages=[],i=l,h=0,n=0;k>i;i++){(h>=j||0===h)&&(this._pages.push({start:i-l,end:i-l+j-1}),h=0,++n),h+=this._core.mergers(this._core.relative(i))}}},c.prototype.draw=function(){var a,j,i="",h=this._core.settings,g=(this._core.$stage.children(),this._core.relative(this._core.current()));if(!h.nav||h.loop||h.navRewind||(this._controls.$previous.toggleClass("disabled",0>=g),this._controls.$next.toggleClass("disabled",g>=this._core.maximum())),this._controls.$previous.toggle(h.nav),this._controls.$next.toggle(h.nav),h.dots){if(a=this._pages.length-this._controls.$indicators.children().length,h.dotData&&0!==a){for(j=0;j<this._controls.$indicators.children().length;j++){i+=this._templates[this._core.relative(j)]}this._controls.$indicators.html(i)}else{a>0?(i=new Array(a+1).join(this._templates[0]),this._controls.$indicators.append(i)):0>a&&this._controls.$indicators.children().slice(a).remove()}this._controls.$indicators.find(".active").removeClass("active"),this._controls.$indicators.children().eq(d.inArray(this.current(),this._pages)).addClass("active")}this._controls.$indicators.toggle(h.dots)},c.prototype.onTrigger=function(a){var e=this._core.settings;a.page={index:d.inArray(this.current(),this._pages),count:this._pages.length,size:e&&(e.center||e.autoWidth||e.dotData?1:e.dotsEach||e.items)}},c.prototype.current=function(){var a=this._core.relative(this._core.current());return d.grep(this._pages,function(b){return b.start<=a&&b.end>=a}).pop()},c.prototype.getPosition=function(a){var h,g,f=this._core.settings;return"page"==f.slideBy?(h=d.inArray(this.current(),this._pages),g=this._pages.length,a?++h:--h,h=this._pages[(h%g+g)%g].start):(h=this._core.relative(this._core.current()),g=this._core.items().length,a?h+=f.slideBy:h-=f.slideBy),h},c.prototype.next=function(a){d.proxy(this._overrides.to,this._core)(this.getPosition(!0),a)},c.prototype.prev=function(a){d.proxy(this._overrides.to,this._core)(this.getPosition(!1),a)},c.prototype.to=function(a,h,g){var f;g?d.proxy(this._overrides.to,this._core)(a,h):(f=this._pages.length,d.proxy(this._overrides.to,this._core)(this._pages[(a%f+f)%f].start,h))},d.fn.owlCarousel.Constructor.Plugins.Navigation=c}(window.Zepto||window.jQuery,window,document),function(e,d){var f=function(a){this._core=a,this._hashes={},this.$element=this._core.$element,this._handlers={"initialized.owl.carousel":e.proxy(function(){"URLHash"==this._core.settings.startPosition&&e(d).trigger("hashchange.owl.navigation")},this),"prepared.owl.carousel":e.proxy(function(g){var h=e(g.content).find("[data-hash]").andSelf("[data-hash]").attr("data-hash");this._hashes[h]=g.content},this)},this._core.options=e.extend({},f.Defaults,this._core.options),this.$element.on(this._handlers),e(d).on("hashchange.owl.navigation",e.proxy(function(){var b=d.location.hash.substring(1),h=this._core.$stage.children(),g=this._hashes[b]&&h.index(this._hashes[b])||0;return b?void this._core.to(g,!1,!0):!1},this))};f.Defaults={URLhashListener:!1},f.prototype.destroy=function(){var b,a;e(d).off("hashchange.owl.navigation");for(b in this._handlers){this._core.$element.off(b,this._handlers[b])}for(a in Object.getOwnPropertyNames(this)){"function"!=typeof this[a]&&(this[a]=null)}},e.fn.owlCarousel.Constructor.Plugins.Hash=f}(window.Zepto||window.jQuery,window,document);