0&&f
0&&(i=l,r=f),x(n,”active”,u.autoExpandScrollbar)}}).bind(“touchmove.”+l,function(e){e.stopImmediatePropagation(),e.preventDefault();var o=n.offset(),a=E(e)[0]-o.top,s=E(e)[1]-o.left;t(i,r,a,s)}),e(document).add(m).bind(“mousemove.”+l+” pointermove.”+l+” MSPointerMove.”+l,function(e){if(n){var o=n.offset(),a=E(e)[0]-o.top,s=E(e)[1]-o.left;if(i===a&&r===s)return;t(i,r,a,s)}}).add(p).bind(“mouseup.”+l+” touchend.”+l+” pointerup.”+l+” MSPointerUp.”+l,function(t){n&&(x(n,”active”,u.autoExpandScrollbar),n=null),s=!1,a&&(document.onselectstart=null),L.call(d,!0)})},A=function(){function n(e){if(!Q(e)||s||E(e)[2])return void(t=0);t=1,x=0,_=0,u=1,C.removeClass(“mCS_touch_action”);var n=A.offset();l=E(e)[0]-n.top,f=E(e)[1]-n.left,N=[E(e)[0],E(e)[1]]}function i(t){if(Q(t)&&!s&&!E(t)[2]&&(k.documentTouchScroll||t.preventDefault(),t.stopImmediatePropagation(),(!_||x)&&u)){m=Y();var e=O.offset(),n=E(t)[0]-e.top,i=E(t)[1]-e.left;if(P.push(n),M.push(i),N[2]=Math.abs(E(t)[0]-N[0]),N[3]=Math.abs(E(t)[1]-N[1]),S.overflowed[0])var r=j[0].parent().height()-j[0].height(),o=l-n>0&&n-l>-r*S.scrollRatio.y&&(2*N[3]0&&i-f>-a*S.scrollRatio.x&&(2*N[2]30)){y=1e3/(g-p);var r=y<2.5,o=r?[P[P.length-2],M[M.length-2]]:[0,0];v=r?[n-o[0],i-o[1]]:[n-d,i-h];var l=[Math.abs(v[0]),Math.abs(v[1])];y=r?[Math.abs(v[0]/4),Math.abs(v[1]/4)]:[y,y];var f=[Math.abs(A[0].offsetTop)-v[0]*a(l[0]/y[0],y[0]),Math.abs(A[0].offsetLeft)-v[1]*a(l[1]/y[1],y[1])];w="yx"===k.axis?[f[0],f[1]]:"x"===k.axis?[null,f[1]]:[f[0],null],b=[4*l[0]+k.scrollInertia,4*l[1]+k.scrollInertia];var C=parseInt(k.contentTouchScroll)||0;w[0]=l[0]>C?w[0]:0,w[1]=l[1]>C?w[1]:0,S.overflowed[0]&&c(w[0],b[0],”mcsEaseOut”,”y”,D,!1),S.overflowed[1]&&c(w[1],b[1],”mcsEaseOut”,”x”,D,!1)}}}function a(t,e){var n=[1.5*e,2*e,e/1.5,e/2];return t>90?e>4?n[0]:n[3]:t>60?e>3?n[3]:n[2]:t>30?e>8?n[1]:e>6?n[0]:e>4?e:n[2]:e>8?e:n[3]}function c(t,e,n,i,r,o){t&&G(C,t.toString(),{dur:e,scrollEasing:n,dir:i,overwrite:r,drag:o})}var u,l,f,d,h,p,m,g,v,y,w,b,x,_,C=e(this),S=C.data(“mCS”),k=S.opt,T=”mCS_”+S.idx,O=e(“#mCSB_”+S.idx),A=e(“#mCSB_”+S.idx+”_container”),j=[e(“#mCSB_”+S.idx+”_dragger_vertical”),e(“#mCSB_”+S.idx+”_dragger_horizontal”)],P=[],M=[],L=0,D=”yx”===k.axis?”none”:”all”,N=[],R=A.find(“iframe”),z=[“touchstart.”+T+” pointerdown.”+T+” MSPointerDown.”+T,”touchmove.”+T+” pointermove.”+T+” MSPointerMove.”+T,”touchend.”+T+” pointerup.”+T+” MSPointerUp.”+T],B=void 0!==document.body.style.touchAction&&””!==document.body.style.touchAction;A.bind(z[0],function(t){n(t)}).bind(z[1],function(t){i(t)}),O.bind(z[0],function(t){r(t)}).bind(z[2],function(t){o(t)}),R.length&&R.each(function(){e(this).bind(“load”,function(){I(this)&&e(this.contentDocument||this.contentWindow.document).bind(z[0],function(t){n(t),r(t)}).bind(z[1],function(t){i(t)}).bind(z[2],function(t){o(t)})})})},j=function(){function n(){return window.getSelection?window.getSelection().toString():document.selection&&”Control”!=document.selection.type?document.selection.createRange().text:0}function i(t,e,n){u.type=n&&r?”stepped”:”stepless”,u.scrollAmount=10,$(o,t,e,”mcsLinearOut”,n?60:null)}var r,o=e(this),a=o.data(“mCS”),c=a.opt,u=a.sequential,l=”mCS_”+a.idx,f=e(“#mCSB_”+a.idx+”_container”),d=f.parent();f.bind(“mousedown.”+l,function(e){t||r||(r=1,s=!0)}).add(document).bind(“mousemove.”+l,function(e){if(!t&&r&&n()){var o=f.offset(),s=E(e)[0]-o.top+f[0].offsetTop,l=E(e)[1]-o.left+f[0].offsetLeft;s>0&&s0&&ld.height()&&i(“on”,40)),”y”!==c.axis&&a.overflowed[1]&&(l<0?i("on",37):l>d.width()&&i(“on”,39)))}}).bind(“mouseup.”+l+” dragend.”+l,function(e){t||(r&&(r=0,i(“off”,null)),s=!1)})},P=function(){function t(t,o){if(V(n),!D(n,t.target)){var u=”auto”!==r.mouseWheel.deltaFactor?parseInt(r.mouseWheel.deltaFactor):a&&t.deltaFactor<100?100:t.deltaFactor||100,l=r.scrollInertia;if("x"===r.axis||"x"===r.mouseWheel.axis)var f="x",d=[Math.round(u*i.scrollRatio.x),parseInt(r.mouseWheel.scrollAmount)],h="auto"!==r.mouseWheel.scrollAmount?d[1]:d[0]>=s.width()?.9*s.width():d[0],p=Math.abs(e(“#mCSB_”+i.idx+”_container”)[0].offsetLeft),m=c[1][0].offsetLeft,g=c[1].parent().width()-c[1].width(),v=”y”===r.mouseWheel.axis?t.deltaY||o:t.deltaX;else var f=”y”,d=[Math.round(u*i.scrollRatio.y),parseInt(r.mouseWheel.scrollAmount)],h=”auto”!==r.mouseWheel.scrollAmount?d[1]:d[0]>=s.height()?.9*s.height():d[0],p=Math.abs(e(“#mCSB_”+i.idx+”_container”)[0].offsetTop),m=c[0][0].offsetTop,g=c[0].parent().height()-c[0].height(),v=t.deltaY||o;”y”===f&&!i.overflowed[0]||”x”===f&&!i.overflowed[1]||((r.mouseWheel.invert||t.webkitDirectionInvertedFromDevice)&&(v=-v),r.mouseWheel.normalizeDelta&&(v=v<0?-1:1),(v>0&&0!==m||v<0&&m!==g||r.mouseWheel.preventDefault)&&(t.stopImmediatePropagation(),t.preventDefault()),t.deltaFactor<5&&!r.mouseWheel.normalizeDelta&&(h=t.deltaFactor,l=17),G(n,(p-v*h).toString(),{dir:f,dur:l}))}}if(e(this).data("mCS")){var n=e(this),i=n.data("mCS"),r=i.opt,o="mCS_"+i.idx,s=e("#mCSB_"+i.idx),c=[e("#mCSB_"+i.idx+"_dragger_vertical"),e("#mCSB_"+i.idx+"_dragger_horizontal")],u=e("#mCSB_"+i.idx+"_container").find("iframe");u.length&&u.each(function(){e(this).bind("load",function(){I(this)&&e(this.contentDocument||this.contentWindow.document).bind("mousewheel."+o,function(e,n){t(e,n)})})}),s.bind("mousewheel."+o,function(e,n){t(e,n)})}},M=new Object,I=function(t){var n=!1,i=!1,r=null;if(void 0===t?i="#empty":void 0!==e(t).attr("id")&&(i=e(t).attr("id")),!1!==i&&void 0!==M[i])return M[i];if(t){try{var o=t.contentDocument||t.contentWindow.document;r=o.body.innerHTML}catch(t){}n=null!==r}else{try{var o=top.document;r=o.body.innerHTML}catch(t){}n=null!==r}return!1!==i&&(M[i]=n),n},L=function(t){var e=this.find("iframe");if(e.length){var n=t?"auto":"none";e.css("pointer-events",n)}},D=function(t,n){var i=n.nodeName.toLowerCase(),r=t.data("mCS").opt.mouseWheel.disableOver,o=["select","textarea"];return e.inArray(i,r)>-1&&!(e.inArray(i,o)>-1&&!e(n).is(“:focus”))},N=function(){var t,n=e(this),i=n.data(“mCS”),r=”mCS_”+i.idx,o=e(“#mCSB_”+i.idx+”_container”),a=o.parent(),u=e(“.mCSB_”+i.idx+”_scrollbar .”+c[12]);u.bind(“mousedown.”+r+” touchstart.”+r+” pointerdown.”+r+” MSPointerDown.”+r,function(n){s=!0,e(n.target).hasClass(“mCSB_dragger”)||(t=1)}).bind(“touchend.”+r+” pointerup.”+r+” MSPointerUp.”+r,function(t){s=!1}).bind(“click.”+r,function(r){if(t&&(t=0,e(r.target).hasClass(c[12])||e(r.target).hasClass(“mCSB_draggerRail”))){V(n);var s=e(this),u=s.find(“.mCSB_dragger”);if(s.parent(“.mCSB_scrollTools_horizontal”).length>0){if(!i.overflowed[1])return;var l=”x”,f=r.pageX>u.offset().left?-1:1,d=Math.abs(o[0].offsetLeft)-f*(.9*a.width())}else{if(!i.overflowed[0])return;var l=”y”,f=r.pageY>u.offset().top?-1:1,d=Math.abs(o[0].offsetTop)-f*(.9*a.height())}G(n,d.toString(),{dir:l,scrollEasing:”mcsEaseInOut”})}})},R=function(){var t=e(this),n=t.data(“mCS”),i=n.opt,r=”mCS_”+n.idx,o=e(“#mCSB_”+n.idx+”_container”),a=o.parent();o.bind(“focusin.”+r,function(n){var r=e(document.activeElement),s=o.find(“.mCustomScrollBox”).length;r.is(i.advanced.autoScrollOnFocus)&&(V(t),clearTimeout(t[0]._focusTimeout),t[0]._focusTimer=s?17*s:0,t[0]._focusTimeout=setTimeout(function(){var e=[et(r)[0],et(r)[1]],n=[o[0].offsetTop,o[0].offsetLeft],s=[n[0]+e[0]>=0&&n[0]+e[0]=0&&n[0]+e[1]a”).bind(“contextmenu.”+o,function(t){t.preventDefault()}).bind(“mousedown.”+o+” touchstart.”+o+” pointerdown.”+o+” MSPointerDown.”+o+” mouseup.”+o+” touchend.”+o+” pointerup.”+o+” MSPointerUp.”+o+” mouseout.”+o+” pointerout.”+o+” MSPointerOut.”+o+” click.”+o,function(o){function a(e,n){r.scrollAmount=i.scrollButtons.scrollAmount,$(t,e,n)}if(o.preventDefault(),J(o)){var c=e(this).attr(“class”);switch(r.type=i.scrollButtons.scrollType,o.type){case”mousedown”:case”touchstart”:case”pointerdown”:case”MSPointerDown”:if(“stepped”===r.type)return;s=!0,n.tweenRunning=!1,a(“on”,c);break;case”mouseup”:case”touchend”:case”pointerup”:case”MSPointerUp”:case”mouseout”:case”pointerout”:case”MSPointerOut”:if(“stepped”===r.type)return;s=!1,r.dir&&a(“off”,c);break;case”click”:if(“stepped”!==r.type||n.tweenRunning)return;a(“on”,c)}}})},F=function(){function t(t){function a(t,e){o.type=r.keyboard.scrollType,o.scrollAmount=r.keyboard.scrollAmount,”stepped”===o.type&&i.tweenRunning||$(n,t,e)}switch(t.type){case”blur”:i.tweenRunning&&o.dir&&a(“off”,null);break;case”keydown”:case”keyup”:var s=t.keyCode?t.keyCode:t.which,f=”on”;if(“x”!==r.axis&&(38===s||40===s)||”y”!==r.axis&&(37===s||39===s)){if((38===s||40===s)&&!i.overflowed[0]||(37===s||39===s)&&!i.overflowed[1])return;”keyup”===t.type&&(f=”off”),e(document.activeElement).is(l)||(t.preventDefault(),t.stopImmediatePropagation(),a(f,s))}else if(33===s||34===s){if((i.overflowed[0]||i.overflowed[1])&&(t.preventDefault(),t.stopImmediatePropagation()),”keyup”===t.type){V(n);var d=34===s?-1:1;if(“x”===r.axis||”yx”===r.axis&&i.overflowed[1]&&!i.overflowed[0])var h=”x”,p=Math.abs(c[0].offsetLeft)-d*(.9*u.width());else var h=”y”,p=Math.abs(c[0].offsetTop)-d*(.9*u.height());G(n,p.toString(),{dir:h,scrollEasing:”mcsEaseInOut”})}}else if((35===s||36===s)&&!e(document.activeElement).is(l)&&((i.overflowed[0]||i.overflowed[1])&&(t.preventDefault(),t.stopImmediatePropagation()),”keyup”===t.type)){if(“x”===r.axis||”yx”===r.axis&&i.overflowed[1]&&!i.overflowed[0])var h=”x”,p=35===s?Math.abs(u.width()-c.outerWidth(!1)):0;else var h=”y”,p=35===s?Math.abs(u.height()-c.outerHeight(!1)):0;G(n,p.toString(),{dir:h,scrollEasing:”mcsEaseInOut”})}}}var n=e(this),i=n.data(“mCS”),r=i.opt,o=i.sequential,a=”mCS_”+i.idx,s=e(“#mCSB_”+i.idx),c=e(“#mCSB_”+i.idx+”_container”),u=c.parent(),l=”input,textarea,select,datalist,keygen,[contenteditable=’true’]”,f=c.find(“iframe”),d=[“blur.”+a+” keydown.”+a+” keyup.”+a];f.length&&f.each(function(){e(this).bind(“load”,function(){I(this)&&e(this.contentDocument||this.contentWindow.document).bind(d[0],function(e){t(e)})})}),s.attr(“tabindex”,”0″).bind(d[0],function(e){t(e)})},$=function(t,n,i,r,o){function a(e){u.snapAmount&&(l.scrollAmount=u.snapAmount instanceof Array?”x”===l.dir[0]?u.snapAmount[1]:u.snapAmount[0]:u.snapAmount);var n=”stepped”!==l.type,i=o||(e?n?h/1.5:p:1e3/60),c=e?n?7.5:40:2.5,d=[Math.abs(f[0].offsetTop),Math.abs(f[0].offsetLeft)],m=[s.scrollRatio.y>10?10:s.scrollRatio.y,s.scrollRatio.x>10?10:s.scrollRatio.x],g=”x”===l.dir[0]?d[1]+l.dir[1]*(m[1]*c):d[0]+l.dir[1]*(m[0]*c),v=”x”===l.dir[0]?d[1]+l.dir[1]*parseInt(l.scrollAmount):d[0]+l.dir[1]*parseInt(l.scrollAmount),y=”auto”!==l.scrollAmount?v:g,w=r||(e?n?”mcsLinearOut”:”mcsEaseInOut”:”mcsLinear”),b=!!e;if(e&&i<17&&(y="x"===l.dir[0]?d[1]:d[0]),G(t,y.toString(),{dir:l.dir[0],scrollEasing:w,dur:i,onComplete:b}),e)return void(l.dir=!1);clearTimeout(l.step),l.step=setTimeout(function(){a()},i)}var s=t.data("mCS"),u=s.opt,l=s.sequential,f=e("#mCSB_"+s.idx+"_container"),d="stepped"===l.type,h=u.scrollInertia<26?26:u.scrollInertia,p=u.scrollInertia<1?17:u.scrollInertia;switch(n){case"on":if(l.dir=[i===c[16]||i===c[15]||39===i||37===i?"x":"y",i===c[13]||i===c[15]||38===i||37===i?-1:1],V(t),tt(i)&&"stepped"===l.type)return;a(d);break;case"off":!function(){clearTimeout(l.step),K(l,"step"),V(t)}(),(d||s.tweenRunning&&l.dir)&&a(!0)}},q=function(t){var n=e(this).data("mCS").opt,i=[];return"function"==typeof t&&(t=t()),t instanceof Array?i=t.length>1?[t[0],t[1]]:”x”===n.axis?[null,t[0]]:[t[0],null]:(i[0]=t.y?t.y:t.x||”x”===n.axis?null:t,i[1]=t.x?t.x:t.y||”y”===n.axis?null:t),”function”==typeof i[0]&&(i[0]=i[0]()),”function”==typeof i[1]&&(i[1]=i[1]()),i},W=function(t,n){if(null!=t&&void 0!==t){var i=e(this),r=i.data(“mCS”),o=r.opt,a=e(“#mCSB_”+r.idx+”_container”),s=a.parent(),c=typeof t;n||(n=”x”===o.axis?”x”:”y”);var l=”x”===n?a.outerWidth(!1)-s.width():a.outerHeight(!1)-s.height(),f=”x”===n?a[0].offsetLeft:a[0].offsetTop,d=”x”===n?”left”:”top”;switch(c){case”function”:return t();case”object”:var h=t.jquery?t:e(t);if(!h.length)return;return”x”===n?et(h)[1]:et(h)[0];case”string”:case”number”:if(tt(t))return Math.abs(t);if(-1!==t.indexOf(“%”))return Math.abs(l*parseInt(t)/100);if(-1!==t.indexOf(“-=”))return Math.abs(f-parseInt(t.split(“-=”)[1]));if(-1!==t.indexOf(“+=”)){var p=f+parseInt(t.split(“+=”)[1]);return p>=0?0:Math.abs(p)}if(-1!==t.indexOf(“px”)&&tt(t.split(“px”)[0]))return Math.abs(t.split(“px”)[0]);if(“top”===t||”left”===t)return 0;if(“bottom”===t)return Math.abs(s.height()-a.outerHeight(!1));if(“right”===t)return Math.abs(s.width()-a.outerWidth(!1));if(“first”===t||”last”===t){var h=a.find(“:”+t);return”x”===n?et(h)[1]:et(h)[0]}return e(t).length?”x”===n?et(e(t))[1]:et(e(t))[0]:(a.css(d,t),void u.update.call(null,i[0]))}}},H=function(t){function n(){if(clearTimeout(f[0].autoUpdate),0===a.parents(“html”).length)return void(a=null);f[0].autoUpdate=setTimeout(function(){return l.advanced.updateOnSelectorChange&&(s.poll.change.n=r(),s.poll.change.n!==s.poll.change.o)?(s.poll.change.o=s.poll.change.n,void o(3)):l.advanced.updateOnContentResize&&(s.poll.size.n=a[0].scrollHeight+a[0].scrollWidth+f[0].offsetHeight+a[0].offsetHeight+a[0].offsetWidth,s.poll.size.n!==s.poll.size.o)?(s.poll.size.o=s.poll.size.n,void o(1)):!l.advanced.updateOnImageLoad||”auto”===l.advanced.updateOnImageLoad&&”y”===l.axis||(s.poll.img.n=f.find(“img”).length,s.poll.img.n===s.poll.img.o)?void((l.advanced.updateOnSelectorChange||l.advanced.updateOnContentResize||l.advanced.updateOnImageLoad)&&n()):(s.poll.img.o=s.poll.img.n,void f.find(“img”).each(function(){i(this)}))},l.advanced.autoUpdateTimeout)}function i(t){function n(){this.onload=null,e(t).addClass(c[2]),o(2)}if(e(t).hasClass(c[2]))return void o();var i=new Image;i.onload=function(t,e){return function(){return e.apply(t,arguments)}}(i,n),i.src=t.src}function r(){!0===l.advanced.updateOnSelectorChange&&(l.advanced.updateOnSelectorChange=”*”);var t=0,e=f.find(l.advanced.updateOnSelectorChange);return l.advanced.updateOnSelectorChange&&e.length>0&&e.each(function(){t+=this.offsetHeight+this.offsetWidth}),t}function o(t){clearTimeout(f[0].autoUpdate),u.update.call(null,a[0],t)}var a=e(this),s=a.data(“mCS”),l=s.opt,f=e(“#mCSB_”+s.idx+”_container”);if(t)return clearTimeout(f[0].autoUpdate),void K(f[0],”autoUpdate”);n()},U=function(t,e,n){return Math.round(t/e)*e-n},V=function(t){var n=t.data(“mCS”);e(“#mCSB_”+n.idx+”_container,#mCSB_”+n.idx+”_container_wrapper,#mCSB_”+n.idx+”_dragger_vertical,#mCSB_”+n.idx+”_dragger_horizontal”).each(function(){Z.call(this)})},G=function(t,n,i){function r(t){return s&&c.callbacks[t]&&”function”==typeof c.callbacks[t]}function o(){return[c.callbacks.alwaysTriggerOffsets||w>=b[0]+C,c.callbacks.alwaysTriggerOffsets||w<=-S]}function a(){var e=[d[0].offsetTop,d[0].offsetLeft],n=[v[0].offsetTop,v[0].offsetLeft],r=[d.outerHeight(!1),d.outerWidth(!1)],o=[f.height(),f.width()];t[0].mcs={content:d,top:e[0],left:e[1],draggerTop:n[0],draggerLeft:n[1],topPct:Math.round(100*Math.abs(e[0])/(Math.abs(r[0])-o[0])),leftPct:Math.round(100*Math.abs(e[1])/(Math.abs(r[1])-o[1])),direction:i.dir}}var s=t.data("mCS"),c=s.opt,u={trigger:"internal",dir:"y",scrollEasing:"mcsEaseOut",drag:!1,dur:c.scrollInertia,overwrite:"all",callbacks:!0,onStart:!0,onUpdate:!0,onComplete:!0},i=e.extend(u,i),l=[i.dur,i.drag?0:i.dur],f=e("#mCSB_"+s.idx),d=e("#mCSB_"+s.idx+"_container"),h=d.parent(),p=c.callbacks.onTotalScrollOffset?q.call(t,c.callbacks.onTotalScrollOffset):[0,0],m=c.callbacks.onTotalScrollBackOffset?q.call(t,c.callbacks.onTotalScrollBackOffset):[0,0];if(s.trigger=i.trigger,0===h.scrollTop()&&0===h.scrollLeft()||(e(".mCSB_"+s.idx+"_scrollbar").css("visibility","visible"),h.scrollTop(0).scrollLeft(0)),"_resetY"!==n||s.contentReset.y||(r("onOverflowYNone")&&c.callbacks.onOverflowYNone.call(t[0]),s.contentReset.y=1),"_resetX"!==n||s.contentReset.x||(r("onOverflowXNone")&&c.callbacks.onOverflowXNone.call(t[0]),s.contentReset.x=1),"_resetY"!==n&&"_resetX"!==n){if(!s.contentReset.y&&t[0].mcs||!s.overflowed[0]||(r("onOverflowY")&&c.callbacks.onOverflowY.call(t[0]),s.contentReset.x=null),!s.contentReset.x&&t[0].mcs||!s.overflowed[1]||(r("onOverflowX")&&c.callbacks.onOverflowX.call(t[0]),s.contentReset.x=null),c.snapAmount){var g=c.snapAmount instanceof Array?"x"===i.dir?c.snapAmount[1]:c.snapAmount[0]:c.snapAmount;n=U(n,g,c.snapOffset)}switch(i.dir){case"x":var v=e("#mCSB_"+s.idx+"_dragger_horizontal"),y="left",w=d[0].offsetLeft,b=[f.width()-d.outerWidth(!1),v.parent().width()-v.width()],_=[n,0===n?0:n/s.scrollRatio.x],C=p[1],S=m[1],k=C>0?C/s.scrollRatio.x:0,T=S>0?S/s.scrollRatio.x:0;break;case”y”:var v=e(“#mCSB_”+s.idx+”_dragger_vertical”),y=”top”,w=d[0].offsetTop,b=[f.height()-d.outerHeight(!1),v.parent().height()-v.height()],_=[n,0===n?0:n/s.scrollRatio.y],C=p[0],S=m[0],k=C>0?C/s.scrollRatio.y:0,T=S>0?S/s.scrollRatio.y:0}_[1]<0||0===_[0]&&0===_[1]?_=[0,0]:_[1]>=b[1]?_=[b[0],b[1]]:_[0]=-_[0],t[0].mcs||(a(),r(“onInit”)&&c.callbacks.onInit.call(t[0])),clearTimeout(d[0].onCompleteTimeout),X(v[0],y,Math.round(_[1]),l[1],i.scrollEasing),!s.tweenRunning&&(0===w&&_[0]>=0||w===b[0]&&_[0]<=b[0])||X(d[0],y,Math.round(_[0]),l[0],i.scrollEasing,i.overwrite,{onStart:function(){i.callbacks&&i.onStart&&!s.tweenRunning&&(r("onScrollStart")&&(a(),c.callbacks.onScrollStart.call(t[0])),s.tweenRunning=!0,x(v),s.cbOffsets=o())},onUpdate:function(){i.callbacks&&i.onUpdate&&r("whileScrolling")&&(a(),c.callbacks.whileScrolling.call(t[0]))},onComplete:function(){if(i.callbacks&&i.onComplete){"yx"===c.axis&&clearTimeout(d[0].onCompleteTimeout);var e=d[0].idleTimer||0;d[0].onCompleteTimeout=setTimeout(function(){r("onScroll")&&(a(),c.callbacks.onScroll.call(t[0])),r("onTotalScroll")&&_[1]>=b[1]-k&&s.cbOffsets[0]&&(a(),c.callbacks.onTotalScroll.call(t[0])),r(“onTotalScrollBack”)&&_[1]<=T&&s.cbOffsets[1]&&(a(),c.callbacks.onTotalScrollBack.call(t[0])),s.tweenRunning=!1,d[0].idleTimer=0,x(v,"hide")},e)}}})}},X=function(t,e,n,i,r,o,a){function s(){w.stop||(g||d.call(),g=Y()-m,c(),g>=w.time&&(w.time=g>w.time?g+l-(g-w.time):g+l-1,w.time0?(w.currVal=u(w.time,v,b,i,r),y[e]=Math.round(w.currVal)+”px”):y[e]=n+”px”,h.call()}function u(t,e,n,i,r){switch(r){case”linear”:case”mcsLinear”:return n*t/i+e;case”mcsLinearOut”:return t/=i,t–,n*Math.sqrt(1-t*t)+e;case”easeInOutSmooth”:return(t/=i/2)<1?n/2*t*t+e:(t--,-n/2*(t*(t-2)-1)+e);case"easeInOutStrong":return(t/=i/2)<1?n/2*Math.pow(2,10*(t-1))+e:(t--,n/2*(2-Math.pow(2,-10*t))+e);case"easeInOut":case"mcsEaseInOut":return(t/=i/2)<1?n/2*t*t*t+e:(t-=2,n/2*(t*t*t+2)+e);case"easeOutSmooth":return t/=i,t--,-n*(t*t*t*t-1)+e;case"easeOutStrong":return n*(1-Math.pow(2,-10*t/i))+e;case"easeOut":case"mcsEaseOut":default:var o=(t/=i)*t,a=o*t;return e+n*(.499999999999997*a*o+-2.5*o*o+5.5*a+-6.5*o+4*t)}}t._mTween||(t._mTween={top:{},left:{}});var l,f,a=a||{},d=a.onStart||function(){},h=a.onUpdate||function(){},p=a.onComplete||function(){},m=Y(),g=0,v=t.offsetTop,y=t.style,w=t._mTween[e];"left"===e&&(v=t.offsetLeft);var b=n-v;w.stop=0,"none"!==o&&function(){null!=w.id&&(window.requestAnimationFrame?window.cancelAnimationFrame(w.id):clearTimeout(w.id),w.id=null)}(),function(){l=1e3/60,w.time=g+l,f=window.requestAnimationFrame?window.requestAnimationFrame:function(t){return c(),setTimeout(t,.01)},w.id=f(s)}()},Y=function(){return window.performance&&window.performance.now?window.performance.now():window.performance&&window.performance.webkitNow?window.performance.webkitNow():Date.now?Date.now():(new Date).getTime()},Z=function(){var t=this;t._mTween||(t._mTween={top:{},left:{}});for(var e=["top","left"],n=0;n=0&&i[0]+et(r)[0]=0&&i[1]+et(r)[1]=0&&a[1]-o[1]*s[1][0]<0&&a[1]+r[1]-o[1]*s[1][1]>=0},mcsOverflow:e.expr[“:”].mcsOverflow||function(t){var n=e(t).data(“mCS”);if(n)return n.overflowed[0]||n.overflowed[1]}})})}()}()})},function(t,e,n){“use strict”;function i(t){if(null===t||void 0===t)throw new TypeError(“Object.assign cannot be called with null or undefined”);return Object(t)}var r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;t.exports=function(){try{if(!Object.assign)return!1;var t=new String(“abc”);if(t[5]=”de”,”5″===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(e).map(function(t){return e[t]}).join(""))return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach(function(t){i[t]=t}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},i)).join("")}catch(t){return!1}}()?Object.assign:function(t,e){for(var n,s,c=i(t),u=1;u1||t.items.merge,o[i]=r?e*n:this._items[i].width();this._widths=o}},{filter:["items","settings"],run:function(){var e=[],n=this._items,i=this.settings,r=Math.max(2*i.items,4),o=2*Math.ceil(n.length/2),a=i.loop&&n.length?i.rewind?r:Math.max(r,o):0,s="",c="";for(a/=2;a--;)e.push(this.normalize(e.length/2,!0)),s+=n[e[e.length-1]][0].outerHTML,e.push(this.normalize(n.length-1-(e.length-1)/2,!0)),c=n[e[e.length-1]][0].outerHTML+c;this._clones=e,t(s).addClass("cloned").appendTo(this.$stage),t(c).addClass("cloned").prependTo(this.$stage)}},{filter:["width","items","settings"],run:function(){for(var t=this.settings.rtl?1:-1,e=this._clones.length+this._items.length,n=-1,i=0,r=0,o=[];++n",s)||this.op(e,"<",a)&&this.op(e,">“,s))&&c.push(n);this.$stage.children(“.active”).removeClass(“active”),this.$stage.children(“:eq(“+c.join(“), :eq(“)+”)”).addClass(“active”),this.settings.center&&(this.$stage.children(“.center”).removeClass(“center”),this.$stage.children().eq(this.current()).addClass(“center”))}}],o.prototype.initialize=function(){if(this.enter(“initializing”),this.trigger(“initialize”),this.$element.toggleClass(this.settings.rtlClass,this.settings.rtl),this.settings.autoWidth&&!this.is(“pre-loading”)){var e,n,i;e=this.$element.find(“img”),n=this.settings.nestedItemSelector?”.”+this.settings.nestedItemSelector:void 0,i=this.$element.children(n).width(),e.length&&i<=0&&this.preloadAutoWidthImages(e)}this.$element.addClass(this.options.loadingClass),this.$stage=t("<"+this.settings.stageElement+' class="'+this.settings.stageClass+'"/>‘).wrap(”),this.$element.append(this.$stage.parent()),this.replace(this.$element.children().not(this.$stage.parent())),this.$element.is(“:visible”)?this.refresh():this.invalidate(“width”),this.$element.removeClass(this.options.loadingClass).addClass(this.options.loadedClass),this.registerEventHandlers(),this.leave(“initializing”),this.trigger(“initialized”)},o.prototype.setup=function(){var e=this.viewport(),n=this.options.responsive,i=-1,r=null;n?(t.each(n,function(t){t<=e&&t>i&&(i=Number(t))}),r=t.extend({},this.options,n[i]),delete r.responsive,r.responsiveClass&&this.$element.attr(“class”,this.$element.attr(“class”).replace(new RegExp(“(“+this.options.responsiveClass+”-)\S+\s”,”g”),”$1″+i))):r=t.extend({},this.options),null!==this.settings&&this._breakpoint===i||(this.trigger(“change”,{property:{name:”settings”,value:r}}),this._breakpoint=i,this.settings=r,this.invalidate(“settings”),this.trigger(“changed”,{property:{name:”settings”,value:this.settings}}))},o.prototype.optionsLogic=function(){this.settings.autoWidth&&(this.settings.stagePadding=!1,this.settings.merge=!1)},o.prototype.prepare=function(e){var n=this.trigger(“prepare”,{content:e});return n.data||(n.data=t(“<"+this.settings.itemElement+"/>“).addClass(this.options.itemClass).append(e)),this.trigger(“prepared”,{content:n.data}),n.data},o.prototype.update=function(){for(var e=0,n=this._pipe.length,i=t.proxy(function(t){return this[t]},this._invalidated),r={};e0)&&this._pipe[e].run(r),e++;this._invalidated={},!this.is(“valid”)&&this.enter(“valid”)},o.prototype.width=function(t){switch(t=t||o.Width.Default){case o.Width.Inner:case o.Width.Outer:return this._width;default:return this._width-2*this.settings.stagePadding+this.settings.margin}},o.prototype.refresh=function(){this.enter(“refreshing”),this.trigger(“refresh”),this.setup(),this.optionsLogic(),this.$element.addClass(this.options.refreshClass),this.update(),this.$element.removeClass(this.options.refreshClass),this.leave(“refreshing”),this.trigger(“refreshed”)},o.prototype.onThrottledResize=function(){n.clearTimeout(this.resizeTimer),this.resizeTimer=n.setTimeout(this._handlers.onResize,this.settings.responsiveRefreshRate)},o.prototype.onResize=function(){return!!this._items.length&&(this._width!==this.$element.width()&&(!!this.$element.is(“:visible”)&&(this.enter(“resizing”),this.trigger(“resize”).isDefaultPrevented()?(this.leave(“resizing”),!1):(this.invalidate(“width”),this.refresh(),this.leave(“resizing”),void this.trigger(“resized”)))))},o.prototype.registerEventHandlers=function(){t.support.transition&&this.$stage.on(t.support.transition.end+”.owl.core”,t.proxy(this.onTransitionEnd,this)),!1!==this.settings.responsive&&this.on(n,”resize”,this._handlers.onThrottledResize),this.settings.mouseDrag&&(this.$element.addClass(this.options.dragClass),this.$stage.on(“mousedown.owl.core”,t.proxy(this.onDragStart,this)),this.$stage.on(“dragstart.owl.core selectstart.owl.core”,function(){return!1})),this.settings.touchDrag&&(this.$stage.on(“touchstart.owl.core”,t.proxy(this.onDragStart,this)),this.$stage.on(“touchcancel.owl.core”,t.proxy(this.onDragEnd,this)))},o.prototype.onDragStart=function(e){var n=null;3!==e.which&&(t.support.transform?(n=this.$stage.css(“transform”).replace(/.*(|)| /g,””).split(“,”),n={x:n[16===n.length?12:4],y:n[16===n.length?13:5]}):(n=this.$stage.position(),n={x:this.settings.rtl?n.left+this.$stage.width()-this.width()+this.settings.margin:n.left,y:n.top}),this.is(“animating”)&&(t.support.transform?this.animate(n.x):this.$stage.stop(),this.invalidate(“position”)),this.$element.toggleClass(this.options.grabClass,”mousedown”===e.type),this.speed(0),this._drag.time=(new Date).getTime(),this._drag.target=t(e.target),this._drag.stage.start=n,this._drag.stage.current=n,this._drag.pointer=this.pointer(e),t(i).on(“mouseup.owl.core touchend.owl.core”,t.proxy(this.onDragEnd,this)),t(i).one(“mousemove.owl.core touchmove.owl.core”,t.proxy(function(e){var n=this.difference(this._drag.pointer,this.pointer(e));t(i).on(“mousemove.owl.core touchmove.owl.core”,t.proxy(this.onDragMove,this)),Math.abs(n.x)0^this.settings.rtl?”left”:”right”;t(i).off(“.owl.core”),this.$element.removeClass(this.options.grabClass),(0!==n.x&&this.is(“dragging”)||!this.is(“valid”))&&(this.speed(this.settings.dragEndSpeed||this.settings.smartSpeed),this.current(this.closest(r.x,0!==n.x?o:this._drag.direction)),this.invalidate(“position”),this.update(),this._drag.direction=o,(Math.abs(n.x)>3||(new Date).getTime()-this._drag.time>300)&&this._drag.target.one(“click.owl.core”,function(){return!1})),this.is(“dragging”)&&(this.leave(“dragging”),this.trigger(“dragged”))},o.prototype.closest=function(e,n){var i=-1,r=this.width(),o=this.coordinates();return this.settings.freeDrag||t.each(o,t.proxy(function(t,a){return”left”===n&&e>a-30&&ea-r-30&&e”,o[t+1]||a-r)&&(i=”left”===n?t+1:t),-1===i},this)),this.settings.loop||(this.op(e,”>”,o[this.minimum()])?i=e=this.minimum():this.op(e,”<",o[this.maximum()])&&(i=e=this.maximum())),i},o.prototype.animate=function(e){var n=this.speed()>0;this.is(“animating”)&&this.onTransitionEnd(),n&&(this.enter(“animating”),this.trigger(“translate”)),t.support.transform3d&&t.support.transition?this.$stage.css({transform:”translate3d(“+e+”px,0px,0px)”,transition:this.speed()/1e3+”s”}):n?this.$stage.animate({left:e+”px”},this.speed(),this.settings.fallbackEasing,t.proxy(this.onTransitionEnd,this)):this.$stage.css({left:e+”px”})},o.prototype.is=function(t){return this._states.current[t]&&this._states.current[t]>0},o.prototype.current=function(t){if(void 0===t)return this._current;if(0!==this._items.length){if(t=this.normalize(t),this._current!==t){var e=this.trigger(“change”,{property:{name:”position”,value:t}});void 0!==e.data&&(t=this.normalize(e.data)),this._current=t,this.invalidate(“position”),this.trigger(“changed”,{property:{name:”position”,value:this._current}})}return this._current}},o.prototype.invalidate=function(e){return”string”===t.type(e)&&(this._invalidated[e]=!0,this.is(“valid”)&&this.leave(“valid”)),t.map(this._invalidated,function(t,e){return e})},o.prototype.reset=function(t){void 0!==(t=this.normalize(t))&&(this._speed=0,this._current=t,this.suppress([“translate”,”translated”]),this.animate(this.coordinates(t)),this.release([“translate”,”translated”]))},o.prototype.normalize=function(t,e){var n=this._items.length,i=e?0:this._clones.length;return!this.isNumeric(t)||n<1?t=void 0:(t<0||t>=n+i)&&(t=((t-i/2)%n+n)%n+i/2),t},o.prototype.relative=function(t){return t-=this._clones.length/2,this.normalize(t,!0)},o.prototype.maximum=function(t){var e,n=this.settings,i=this._coordinates.length,r=Math.abs(this._coordinates[i-1])-this._width,o=-1;if(n.loop)i=this._clones.length/2+this._items.length-1;else if(n.autoWidth||n.merge)for(;i-o>1;)Math.abs(this._coordinates[e=i+o>>1])0)-(r<0),a=this._items.length,s=this.minimum(),c=this.maximum();this.settings.loop?(!this.settings.rewind&&Math.abs(r)>a/2&&(r+=-1*o*a),t=n+r,(i=((t-s)%a+a)%a+s)!==t&&i-r<=c&&i-r>0&&(n=i-r,t=i,this.reset(n))):this.settings.rewind?(c+=1,t=(t%c+c)%c):t=Math.max(s,Math.min(c,t)),this.speed(this.duration(n,t,e)),this.current(t),this.$element.is(“:visible”)&&this.update()},o.prototype.next=function(t){t=t||!1,this.to(this.relative(this.current())+1,t)},o.prototype.prev=function(t){t=t||!1,this.to(this.relative(this.current())-1,t)},o.prototype.onTransitionEnd=function(t){if(void 0!==t&&(t.stopPropagation(),(t.target||t.srcElement||t.originalTarget)!==this.$stage.get(0)))return!1;this.leave(“animating”),this.trigger(“translated”)},o.prototype.viewport=function(){var e;if(this.options.responsiveBaseElement!==n)e=t(this.options.responsiveBaseElement).width();else if(n.innerWidth)e=n.innerWidth;else{if(!i.documentElement||!i.documentElement.clientWidth)throw”Can not detect viewport width.”;e=i.documentElement.clientWidth}return e},o.prototype.replace=function(n){this.$stage.empty(),this._items=[],n&&(n=n instanceof e?n:t(n)),this.settings.nestedItemSelector&&(n=n.find(“.”+this.settings.nestedItemSelector)),n.filter(function(){return 1===this.nodeType}).each(t.proxy(function(t,e){e=this.prepare(e),this.$stage.append(e),this._items.push(e),this._mergers.push(1*e.find(“[data-merge]”).andSelf(“[data-merge]”).attr(“data-merge”)||1)},this)),this.reset(this.isNumeric(this.settings.startPosition)?this.settings.startPosition:0),this.invalidate(“items”)},o.prototype.add=function(n,i){var r=this.relative(this._current);i=void 0===i?this._items.length:this.normalize(i,!0),n=n instanceof e?n:t(n),this.trigger(“add”,{content:n,position:i}),n=this.prepare(n),0===this._items.length||i===this._items.length?(0===this._items.length&&this.$stage.append(n),0!==this._items.length&&this._items[i-1].after(n),this._items.push(n),this._mergers.push(1*n.find(“[data-merge]”).andSelf(“[data-merge]”).attr(“data-merge”)||1)):(this._items[i].before(n),this._items.splice(i,0,n),this._mergers.splice(i,0,1*n.find(“[data-merge]”).andSelf(“[data-merge]”).attr(“data-merge”)||1)),this._items[r]&&this.reset(this._items[r].index()),this.invalidate(“items”),this.trigger(“added”,{content:n,position:i})},o.prototype.remove=function(t){void 0!==(t=this.normalize(t,!0))&&(this.trigger(“remove”,{content:this._items[t],position:t}),this._items[t].remove(),this._items.splice(t,1),this._mergers.splice(t,1),this.invalidate(“items”),this.trigger(“removed”,{content:null,position:t}))},o.prototype.preloadAutoWidthImages=function(e){e.each(t.proxy(function(e,n){this.enter(“pre-loading”),n=t(n),t(new Image).one(“load”,t.proxy(function(t){n.attr(“src”,t.target.src),n.css(“opacity”,1),this.leave(“pre-loading”),!this.is(“pre-loading”)&&!this.is(“initializing”)&&this.refresh()},this)).attr(“src”,n.attr(“src”)||n.attr(“data-src”)||n.attr(“data-src-retina”))},this))},o.prototype.destroy=function(){this.$element.off(“.owl.core”),this.$stage.off(“.owl.core”),t(i).off(“.owl.core”),!1!==this.settings.responsive&&(n.clearTimeout(this.resizeTimer),this.off(n,”resize”,this._handlers.onThrottledResize));for(var e in this._plugins)this._plugins[e].destroy();this.$stage.children(“.cloned”).remove(),this.$stage.unwrap(),this.$stage.children().contents().unwrap(),this.$stage.children().unwrap(),this.$element.removeClass(this.options.refreshClass).removeClass(this.options.loadingClass).removeClass(this.options.loadedClass).removeClass(this.options.rtlClass).removeClass(this.options.dragClass).removeClass(this.options.grabClass).attr(“class”,this.$element.attr(“class”).replace(new RegExp(this.options.responsiveClass+”-\S+\s”,”g”),””)).removeData(“owl.carousel”)},o.prototype.op=function(t,e,n){var i=this.settings.rtl;switch(e){case”<":return i?t>n:t”:return i?tn;case”>=”:return i?t<=n:t>=n;case”<=":return i?t>=n:t<=n}},o.prototype.on=function(t,e,n,i){t.addEventListener?t.addEventListener(e,n,i):t.attachEvent&&t.attachEvent("on"+e,n)},o.prototype.off=function(t,e,n,i){t.removeEventListener?t.removeEventListener(e,n,i):t.detachEvent&&t.detachEvent("on"+e,n)},o.prototype.trigger=function(e,n,i,r,a){var s={item:{count:this._items.length,index:this.current()}},c=t.camelCase(t.grep(["on",e,i],function(t){return t}).join("-").toLowerCase()),u=t.Event([e,"owl",i||"carousel"].join(".").toLowerCase(),t.extend({relatedTarget:this},s,n));return this._supress[e]||(t.each(this._plugins,function(t,e){e.onTrigger&&e.onTrigger(u)}),this.register({type:o.Type.Event,name:e}),this.$element.trigger(u),this.settings&&"function"==typeof this.settings[c]&&this.settings[c].call(this,u)),u},o.prototype.enter=function(e){t.each([e].concat(this._states.tags[e]||[]),t.proxy(function(t,e){void 0===this._states.current[e]&&(this._states.current[e]=0),this._states.current[e]++},this))},o.prototype.leave=function(e){t.each([e].concat(this._states.tags[e]||[]),t.proxy(function(t,e){this._states.current[e]--},this))},o.prototype.register=function(e){if(e.type===o.Type.Event){if(t.event.special[e.name]||(t.event.special[e.name]={}),!t.event.special[e.name].owl){var n=t.event.special[e.name]._default;t.event.special[e.name]._default=function(t){return!n||!n.apply||t.namespace&&-1!==t.namespace.indexOf("owl")?t.namespace&&t.namespace.indexOf("owl")>-1:n.apply(this,arguments)},t.event.special[e.name].owl=!0}}else e.type===o.Type.State&&(this._states.tags[e.name]?this._states.tags[e.name]=this._states.tags[e.name].concat(e.tags):this._states.tags[e.name]=e.tags,this._states.tags[e.name]=t.grep(this._states.tags[e.name],t.proxy(function(n,i){return t.inArray(n,this._states.tags[e.name])===i},this)))},o.prototype.suppress=function(e){t.each(e,t.proxy(function(t,e){this._supress[e]=!0},this))},o.prototype.release=function(e){t.each(e,t.proxy(function(t,e){delete this._supress[e]},this))},o.prototype.pointer=function(t){var e={x:null,y:null};return t=t.originalEvent||t||n.event,t=t.touches&&t.touches.length?t.touches[0]:t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t,t.pageX?(e.x=t.pageX,e.y=t.pageY):(e.x=t.clientX,e.y=t.clientY),e},o.prototype.isNumeric=function(t){return!isNaN(parseFloat(t))},o.prototype.difference=function(t,e){return{x:t.x-e.x,y:t.y-e.y}},t.fn.owlCarousel=function(e){var n=Array.prototype.slice.call(arguments,1);return this.each(function(){var i=t(this),r=i.data(“owl.carousel”);r||(r=new o(this,”object”==typeof e&&e),i.data(“owl.carousel”,r),t.each([“next”,”prev”,”to”,”destroy”,”refresh”,”replace”,”add”,”remove”],function(e,n){r.register({type:o.Type.Event,name:n}),r.$element.on(n+”.owl.carousel.core”,t.proxy(function(t){t.namespace&&t.relatedTarget!==this&&(this.suppress([n]),r[n].apply(this,[].slice.call(arguments,1)),this.release([n]))},r))})),”string”==typeof e&&”_”!==e.charAt(0)&&r[e].apply(r,n)})},t.fn.owlCarousel.Constructor=o}(window.Zepto||t,window,document),function(t,e,n,i){var r=function(e){this._core=e,this._interval=null,this._visible=null,this._handlers={“initialized.owl.carousel”:t.proxy(function(t){t.namespace&&this._core.settings.autoRefresh&&this.watch()},this)},this._core.options=t.extend({},r.Defaults,this._core.options),this._core.$element.on(this._handlers)};r.Defaults={autoRefresh:!0,autoRefreshInterval:500},r.prototype.watch=function(){this._interval||(this._visible=this._core.$element.is(“:visible”),this._interval=e.setInterval(t.proxy(this.refresh,this),this._core.settings.autoRefreshInterval))},r.prototype.refresh=function(){this._core.$element.is(“:visible”)!==this._visible&&(this._visible=!this._visible,this._core.$element.toggleClass(“owl-hidden”,!this._visible),this._visible&&this._core.invalidate(“width”)&&this._core.refresh())},r.prototype.destroy=function(){var t,n;e.clearInterval(this._interval);for(t in this._handlers)this._core.$element.off(t,this._handlers[t]);for(n in Object.getOwnPropertyNames(this))”function”!=typeof this[n]&&(this[n]=null)},t.fn.owlCarousel.Constructor.Plugins.AutoRefresh=r}(window.Zepto||t,window,document),function(t,e,n,i){var r=function(e){this._core=e,this._loaded=[],this._handlers={“initialized.owl.carousel change.owl.carousel resized.owl.carousel”:t.proxy(function(e){if(e.namespace&&this._core.settings&&this._core.settings.lazyLoad&&(e.property&&”position”==e.property.name||”initialized”==e.type))for(var n=this._core.settings,i=n.center&&Math.ceil(n.items/2)||n.items,r=n.center&&-1*i||0,o=(e.property&&void 0!==e.property.value?e.property.value:this._core.current())+r,a=this._core.clones().length,s=t.proxy(function(t,e){this.load(e)},this);r++-1||(r.each(t.proxy(function(n,i){var r,o=t(i),a=e.devicePixelRatio>1&&o.attr(“data-src-retina”)||o.attr(“data-src”);this._core.trigger(“load”,{element:o,url:a},”lazy”),o.is(“img”)?o.one(“load.owl.lazy”,t.proxy(function(){o.css(“opacity”,1),this._core.trigger(“loaded”,{element:o,url:a},”lazy”)},this)).attr(“src”,a):(r=new Image,r.onload=t.proxy(function(){o.css({“background-image”:”url(“+a+”)”,opacity:”1″}),this._core.trigger(“loaded”,{element:o,url:a},”lazy”)},this),r.src=a)},this)),this._loaded.push(i.get(0)))},r.prototype.destroy=function(){var t,e;for(t in this.handlers)this._core.$element.off(t,this.handlers[t]);for(e in Object.getOwnPropertyNames(this))”function”!=typeof this[e]&&(this[e]=null)},t.fn.owlCarousel.Constructor.Plugins.Lazy=r}(window.Zepto||t,window,document),function(t,e,n,i){var r=function(e){this._core=e,this._handlers={“initialized.owl.carousel refreshed.owl.carousel”:t.proxy(function(t){t.namespace&&this._core.settings.autoHeight&&this.update()},this),”changed.owl.carousel”:t.proxy(function(t){t.namespace&&this._core.settings.autoHeight&&”position”==t.property.name&&this.update()},this),”loaded.owl.lazy”:t.proxy(function(t){t.namespace&&this._core.settings.autoHeight&&t.element.closest(“.”+this._core.settings.itemClass).index()===this._core.current()&&this.update()},this)},this._core.options=t.extend({},r.Defaults,this._core.options),this._core.$element.on(this._handlers)};r.Defaults={autoHeight:!1,autoHeightClass:”owl-height”},r.prototype.update=function(){var e=this._core._current,n=e+this._core.settings.items,i=this._core.$stage.children().toArray().slice(e,n),r=[],o=0;t.each(i,function(e,n){r.push(t(n).height())}),o=Math.max.apply(null,r),this._core.$stage.parent().height(o).addClass(this._core.settings.autoHeightClass)},r.prototype.destroy=function(){var t,e;for(t in this._handlers)this._core.$element.off(t,this._handlers[t]);for(e in Object.getOwnPropertyNames(this))”function”!=typeof this[e]&&(this[e]=null)},t.fn.owlCarousel.Constructor.Plugins.AutoHeight=r}(window.Zepto||t,window,document),function(t,e,n,i){var r=function(e){this._core=e,this._videos={},this._playing=null,this._handlers={“initialized.owl.carousel”:t.proxy(function(t){t.namespace&&this._core.register({type:”state”,name:”playing”,tags:[“interacting”]})},this),”resize.owl.carousel”:t.proxy(function(t){t.namespace&&this._core.settings.video&&this.isInFullScreen()&&t.preventDefault()},this),”refreshed.owl.carousel”:t.proxy(function(t){t.namespace&&this._core.is(“resizing”)&&this._core.$stage.find(“.cloned .owl-video-frame”).remove()},this),”changed.owl.carousel”:t.proxy(function(t){t.namespace&&”position”===t.property.name&&this._playing&&this.stop()},this),”prepared.owl.carousel”:t.proxy(function(e){if(e.namespace){var n=t(e.content).find(“.owl-video”);n.length&&(n.css(“display”,”none”),this.fetch(n,t(e.content)))}},this)},this._core.options=t.extend({},r.Defaults,this._core.options),this._core.$element.on(this._handlers),this._core.$element.on(“click.owl.video”,”.owl-video-play-icon”,t.proxy(function(t){this.play(t)},this))};r.Defaults={video:!1,videoHeight:!1,videoWidth:!1},r.prototype.fetch=function(t,e){var n=function(){return t.attr(“data-vimeo-id”)?”vimeo”:t.attr(“data-vzaar-id”)?”vzaar”:”youtube”}(),i=t.attr(“data-vimeo-id”)||t.attr(“data-youtube-id”)||t.attr(“data-vzaar-id”),r=t.attr(“data-width”)||this._core.settings.videoWidth,o=t.attr(“data-height”)||this._core.settings.videoHeight,a=t.attr(“href”);if(!a)throw new Error(“Missing video URL.”);if(i=a.match(/(http:|https:|)//(player.|www.|app.)?(vimeo.com|youtu(be.com|.be|be.googleapis.com)|vzaar.com)/(video/|videos/|embed/|channels/.+/|groups/.+/|watch?v=|v/)?([A-Za-z0-9._%-]*)(&S+)?/),i[3].indexOf(“youtu”)>-1)n=”youtube”;else if(i[3].indexOf(“vimeo”)>-1)n=”vimeo”;else{if(!(i[3].indexOf(“vzaar”)>-1))throw new Error(“Video URL not supported.”);n=”vzaar”}i=i[6],this._videos[a]={type:n,id:i,width:r,height:o},e.attr(“data-video”,a),this.thumbnail(t,this._videos[a])},r.prototype.thumbnail=function(e,n){var i,r,o,a=n.width&&n.height?’style=”width:’+n.width+”px;height:”+n.height+’px;”‘:””,s=e.find(“img”),c=”src”,u=””,l=this._core.settings,f=function(t){r=’‘,i=l.lazyLoad?”:”,e.after(i),e.after(r)};if(e.wrap(‘”),this._core.settings.lazyLoad&&(c=”data-src”,u=”owl-lazy”),s.length)return f(s.attr(c)),s.remove(),!1;”youtube”===n.type?(o=”//img.youtube.com/vi/”+n.id+”/hqdefault.jpg”,f(o)):”vimeo”===n.type?t.ajax({type:”GET”,url:”//vimeo.com/api/v2/video/”+n.id+”.json”,jsonp:”callback”,dataType:”jsonp”,success:function(t){o=t[0].thumbnail_large,f(o)}}):”vzaar”===n.type&&t.ajax({type:”GET”,url:”//vzaar.com/api/videos/”+n.id+”.json”,jsonp:”callback”,dataType:”jsonp”,success:function(t){o=t.framegrab_url,f(o)}})},r.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,this._core.leave(“playing”),this._core.trigger(“stopped”,null,”video”)},r.prototype.play=function(e){var n,i=t(e.target),r=i.closest(“.”+this._core.settings.itemClass),o=this._videos[r.attr(“data-video”)],a=o.width||”100%”,s=o.height||this._core.$stage.height();this._playing||(this._core.enter(“playing”),this._core.trigger(“play”,null,”video”),r=this._core.items(this._core.relative(r.index())),this._core.reset(r.index()),”youtube”===o.type?n=’‘:”vimeo”===o.type?n=’‘:”vzaar”===o.type&&(n=’‘),t(‘
‘+n+”
“).insertAfter(r.find(“.owl-video”)),this._playing=r.addClass(“owl-video-playing”))},r.prototype.isInFullScreen=function(){var e=n.fullscreenElement||n.mozFullScreenElement||n.webkitFullscreenElement;return e&&t(e).parent().hasClass(“owl-video-frame”)},r.prototype.destroy=function(){var t,e;this._core.$element.off(“click.owl.video”);for(t in this._handlers)this._core.$element.off(t,this._handlers[t]);for(e in Object.getOwnPropertyNames(this))”function”!=typeof this[e]&&(this[e]=null)},t.fn.owlCarousel.Constructor.Plugins.Video=r}(window.Zepto||t,window,document),function(t,e,n,i){var r=function(e){this.core=e,this.core.options=t.extend({},r.Defaults,this.core.options),this.swapping=!0,this.previous=void 0,this.next=void 0,this.handlers={“change.owl.carousel”:t.proxy(function(t){t.namespace&&”position”==t.property.name&&(this.previous=this.core.current(),this.next=t.property.value)},this),”drag.owl.carousel dragged.owl.carousel translated.owl.carousel”:t.proxy(function(t){t.namespace&&(this.swapping=”translated”==t.type)},this),”translate.owl.carousel”:t.proxy(function(t){t.namespace&&this.swapping&&(this.core.options.animateOut||this.core.options.animateIn)&&this.swap()},this)},this.core.$element.on(this.handlers)};r.Defaults={animateOut:!1,animateIn:!1},r.prototype.swap=function(){if(1===this.core.settings.items&&t.support.animation&&t.support.transition){this.core.speed(0);var e,n=t.proxy(this.clear,this),i=this.core.$stage.children().eq(this.previous),r=this.core.$stage.children().eq(this.next),o=this.core.settings.animateIn,a=this.core.settings.animateOut;this.core.current()!==this.previous&&(a&&(e=this.core.coordinates(this.previous)-this.core.coordinates(this.next),i.one(t.support.animation.end,n).css({left:e+”px”}).addClass(“animated owl-animated-out”).addClass(a)),o&&r.one(t.support.animation.end,n).addClass(“animated owl-animated-in”).addClass(o))}},r.prototype.clear=function(e){t(e.target).css({left:””}).removeClass(“animated owl-animated-out owl-animated-in”).removeClass(this.core.settings.animateIn).removeClass(this.core.settings.animateOut),this.core.onTransitionEnd()},r.prototype.destroy=function(){var t,e;for(t in this.handlers)this.core.$element.off(t,this.handlers[t]);for(e in Object.getOwnPropertyNames(this))”function”!=typeof this[e]&&(this[e]=null)},t.fn.owlCarousel.Constructor.Plugins.Animate=r}(window.Zepto||t,window,document),function(t,e,n,i){var r=function(e){this._core=e,this._timeout=null,this._paused=!1,this._handlers={“changed.owl.carousel”:t.proxy(function(t){t.namespace&&”settings”===t.property.name?this._core.settings.autoplay?this.play():this.stop():t.namespace&&”position”===t.property.name&&this._core.settings.autoplay&&this._setAutoPlayInterval()},this),”initialized.owl.carousel”:t.proxy(function(t){t.namespace&&this._core.settings.autoplay&&this.play()},this),”play.owl.autoplay”:t.proxy(function(t,e,n){t.namespace&&this.play(e,n)},this),”stop.owl.autoplay”:t.proxy(function(t){t.namespace&&this.stop()},this),”mouseover.owl.autoplay”:t.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is(“rotating”)&&this.pause()},this),”mouseleave.owl.autoplay”:t.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is(“rotating”)&&this.play()},this),”touchstart.owl.core”:t.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is(“rotating”)&&this.pause()},this),”touchend.owl.core”:t.proxy(function(){this._core.settings.autoplayHoverPause&&this.play()},this)},this._core.$element.on(this._handlers),this._core.options=t.extend({},r.Defaults,this._core.options)};r.Defaults={autoplay:!1,autoplayTimeout:5e3,autoplayHoverPause:!1,autoplaySpeed:!1},r.prototype.play=function(t,e){this._paused=!1,this._core.is(“rotating”)||(this._core.enter(“rotating”),this._setAutoPlayInterval())},r.prototype._getNextTimeout=function(i,r){return this._timeout&&e.clearTimeout(this._timeout),e.setTimeout(t.proxy(function(){this._paused||this._core.is(“busy”)||this._core.is(“interacting”)||n.hidden||this._core.next(r||this._core.settings.autoplaySpeed)},this),i||this._core.settings.autoplayTimeout)},r.prototype._setAutoPlayInterval=function(){this._timeout=this._getNextTimeout()},r.prototype.stop=function(){this._core.is(“rotating”)&&(e.clearTimeout(this._timeout),this._core.leave(“rotating”))},r.prototype.pause=function(){this._core.is(“rotating”)&&(this._paused=!0)},r.prototype.destroy=function(){var t,e;this.stop();for(t in this._handlers)this._core.$element.off(t,this._handlers[t]);for(e in Object.getOwnPropertyNames(this))”function”!=typeof this[e]&&(this[e]=null)},t.fn.owlCarousel.Constructor.Plugins.autoplay=r}(window.Zepto||t,window,document),function(t,e,n,i){“use strict”;var r=function(e){this._core=e,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”:t.proxy(function(e){e.namespace&&this._core.settings.dotsData&&this._templates.push(‘
‘+t(e.content).find(“[data-dot]”).addBack(“[data-dot]”).attr(“data-dot”)+”
“)},this),”added.owl.carousel”:t.proxy(function(t){t.namespace&&this._core.settings.dotsData&&this._templates.splice(t.position,0,this._templates.pop())},this),”remove.owl.carousel”:t.proxy(function(t){t.namespace&&this._core.settings.dotsData&&this._templates.splice(t.position,1)},this),”changed.owl.carousel”:t.proxy(function(t){t.namespace&&”position”==t.property.name&&this.draw()},this),”initialized.owl.carousel”:t.proxy(function(t){t.namespace&&!this._initialized&&(this._core.trigger(“initialize”,null,”navigation”),this.initialize(),this.update(),this.draw(),this._initialized=!0,this._core.trigger(“initialized”,null,”navigation”))},this),”refreshed.owl.carousel”:t.proxy(function(t){t.namespace&&this._initialized&&(this._core.trigger(“refresh”,null,”navigation”),this.update(),this.draw(),this._core.trigger(“refreshed”,null,”navigation”))},this)},this._core.options=t.extend({},r.Defaults,this._core.options),this.$element.on(this._handlers)};r.Defaults={nav:!1,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,dotsData:!1,dotsSpeed:!1,dotsContainer:!1},r.prototype.initialize=function(){var e,n=this._core.settings;this._controls.$relative=(n.navContainer?t(n.navContainer):t(“”).addClass(n.navContainerClass).appendTo(this.$element)).addClass(“disabled”),this._controls.$previous=t(“<"+n.navElement+">“).addClass(n.navClass[0]).html(n.navText[0]).prependTo(this._controls.$relative).on(“click”,t.proxy(function(t){this.prev(n.navSpeed)},this)),this._controls.$next=t(“<"+n.navElement+">“).addClass(n.navClass[1]).html(n.navText[1]).appendTo(this._controls.$relative).on(“click”,t.proxy(function(t){this.next(n.navSpeed)},this)),n.dotsData||(this._templates=[t(“”).addClass(n.dotClass).append(t(“”)).prop(“outerHTML”)]),this._controls.$absolute=(n.dotsContainer?t(n.dotsContainer):t(“”).addClass(n.dotsClass).appendTo(this.$element)).addClass(“disabled”),this._controls.$absolute.on(“click”,”div”,t.proxy(function(e){var i=t(e.target).parent().is(this._controls.$absolute)?t(e.target).index():t(e.target).parent().index();e.preventDefault(),this.to(i,n.dotsSpeed)},this));for(e in this._overrides)this._core[e]=t.proxy(this[e],this)},r.prototype.destroy=function(){var t,e,n,i;for(t in this._handlers)this.$element.off(t,this._handlers[t]);for(e in this._controls)this._controls[e].remove();for(i in this.overides)this._core[i]=this._overrides[i];for(n in Object.getOwnPropertyNames(this))”function”!=typeof this[n]&&(this[n]=null)},r.prototype.update=function(){var t,e,n,i=this._core.clones().length/2,r=i+this._core.items().length,o=this._core.maximum(!0),a=this._core.settings,s=a.center||a.autoWidth||a.dotsData?1:a.dotsEach||a.items;if(“page”!==a.slideBy&&(a.slideBy=Math.min(a.slideBy,a.items)),a.dots||”page”==a.slideBy)for(this._pages=[],t=i,e=0,n=0;t=s||0===e){if(this._pages.push({start:Math.min(o,t-i),end:t-i+s-1}),Math.min(o,t-i)===o)break;e=0,++n}e+=this._core.mergers(this._core.relative(t))}},r.prototype.draw=function(){var e,n=this._core.settings,i=this._core.items().length<=n.items,r=this._core.relative(this._core.current()),o=n.loop||n.rewind;this._controls.$relative.toggleClass("disabled",!n.nav||i),n.nav&&(this._controls.$previous.toggleClass("disabled",!o&&r<=this._core.minimum(!0)),this._controls.$next.toggleClass("disabled",!o&&r>=this._core.maximum(!0))),this._controls.$absolute.toggleClass(“disabled”,!n.dots||i),n.dots&&(e=this._pages.length-this._controls.$absolute.children().length,n.dotsData&&0!==e?this._controls.$absolute.html(this._templates.join(“”)):e>0?this._controls.$absolute.append(new Array(e+1).join(this._templates[0])):e<0&&this._controls.$absolute.children().slice(e).remove(),this._controls.$absolute.find(".active").removeClass("active"),this._controls.$absolute.children().eq(t.inArray(this.current(),this._pages)).addClass("active"))},r.prototype.onTrigger=function(e){var n=this._core.settings;e.page={index:t.inArray(this.current(),this._pages),count:this._pages.length,size:n&&(n.center||n.autoWidth||n.dotsData?1:n.dotsEach||n.items)}},r.prototype.current=function(){var e=this._core.relative(this._core.current());return t.grep(this._pages,t.proxy(function(t,n){return t.start<=e&&t.end>=e},this)).pop()},r.prototype.getPosition=function(e){var n,i,r=this._core.settings;return”page”==r.slideBy?(n=t.inArray(this.current(),this._pages),i=this._pages.length,e?++n:–n,n=this._pages[(n%i+i)%i].start):(n=this._core.relative(this._core.current()),i=this._core.items().length,e?n+=r.slideBy:n-=r.slideBy),n},r.prototype.next=function(e){t.proxy(this._overrides.to,this._core)(this.getPosition(!0),e)},r.prototype.prev=function(e){t.proxy(this._overrides.to,this._core)(this.getPosition(!1),e)},r.prototype.to=function(e,n,i){var r;!i&&this._pages.length?(r=this._pages.length,t.proxy(this._overrides.to,this._core)(this._pages[(e%r+r)%r].start,n)):t.proxy(this._overrides.to,this._core)(e,n)},t.fn.owlCarousel.Constructor.Plugins.Navigation=r}(window.Zepto||t,window,document),function(t,e,n,i){“use strict”;var r=function(n){this._core=n,this._hashes={},this.$element=this._core.$element,this._handlers={“initialized.owl.carousel”:t.proxy(function(n){n.namespace&&”URLHash”===this._core.settings.startPosition&&t(e).trigger(“hashchange.owl.navigation”)},this),”prepared.owl.carousel”:t.proxy(function(e){if(e.namespace){var n=t(e.content).find(“[data-hash]”).addBack(“[data-hash]”).attr(“data-hash”);if(!n)return;this._hashes[n]=e.content}},this),”changed.owl.carousel”:t.proxy(function(n){if(n.namespace&&”position”===n.property.name){var i=this._core.items(this._core.relative(this._core.current())),r=t.map(this._hashes,function(t,e){return t===i?e:null}).join();if(!r||e.location.hash.slice(1)===r)return;e.location.hash=r}},this)},this._core.options=t.extend({},r.Defaults,this._core.options),this.$element.on(this._handlers),t(e).on(“hashchange.owl.navigation”,t.proxy(function(t){var n=e.location.hash.substring(1),i=this._core.$stage.children(),r=this._hashes[n]&&i.index(this._hashes[n]);void 0!==r&&r!==this._core.current()&&this._core.to(this._core.relative(r),!1,!0)},this))};r.Defaults={URLhashListener:!1},r.prototype.destroy=function(){var n,i;t(e).off(“hashchange.owl.navigation”);for(n in this._handlers)this._core.$element.off(n,this._handlers[n]);for(i in Object.getOwnPropertyNames(this))”function”!=typeof this[i]&&(this[i]=null)},t.fn.owlCarousel.Constructor.Plugins.Hash=r}(window.Zepto||t,window,document),function(t,e,n,i){function r(e,n){var r=!1,o=e.charAt(0).toUpperCase()+e.slice(1);return t.each((e+” “+s.join(o+” “)+o).split(” “),function(t,e){if(a[e]!==i)return r=!n||e,!1}),r}function o(t){return r(t,!0)}var a=t(“”).get(0).style,s=”Webkit Moz O ms”.split(” “),c={transition:{end:{WebkitTransition:”webkitTransitionEnd”,MozTransition:”transitionend”,OTransition:”oTransitionEnd”,transition:”transitionend”}},animation:{end:{WebkitAnimation:”webkitAnimationEnd”,MozAnimation:”animationend”,OAnimation:”oAnimationEnd”,animation:”animationend”}}},u={csstransforms:function(){return!!r(“transform”)},csstransforms3d:function(){return!!r(“perspective”)},csstransitions:function(){return!!r(“transition”)},cssanimations:function(){return!!r(“animation”)}};u.csstransitions()&&(t.support.transition=new String(o(“transition”)),t.support.transition.end=c.transition.end[t.support.transition]),u.cssanimations()&&(t.support.animation=new String(o(“animation”)),t.support.animation.end=c.animation.end[t.support.animation]),u.csstransforms()&&(t.support.transform=new String(o(“transform”)),t.support.transform3d=u.csstransforms3d())}(window.Zepto||t,window,document)}).call(e,n(1),n(1))},function(t,e,n){“use strict”;function i(t){switch(t.arrayFormat){case”index”:return function(e,n,i){return null===n?[o(e,t),”[“,i,”]”].join(“”):[o(e,t),”[“,o(i,t),”]=”,o(n,t)].join(“”)};case”bracket”:return function(e,n){return null===n?o(e,t):[o(e,t),”[]=”,o(n,t)].join(“”)};default:return function(e,n){return null===n?o(e,t):[o(e,t),”=”,o(n,t)].join(“”)}}}function r(t){var e;switch(t.arrayFormat){case”index”:return function(t,n,i){if(e=/[(d*)]$/.exec(t),t=t.replace(/[d*]$/,””),!e)return void(i[t]=n);void 0===i[t]&&(i[t]={}),i[t][e[1]]=n};case”bracket”:return function(t,n,i){return e=/([])$/.exec(t),t=t.replace(/[]$/,””),e?void 0===i[t]?void(i[t]=[n]):void(i[t]=[].concat(i[t],n)):void(i[t]=n)};default:return function(t,e,n){if(void 0===n[t])return void(n[t]=e);n[t]=[].concat(n[t],e)}}}function o(t,e){return e.encode?e.strict?u(t):encodeURIComponent(t):t}function a(t){return Array.isArray(t)?t.sort():”object”==typeof t?a(Object.keys(t)).sort(function(t,e){return Number(t)-Number(e)}).map(function(e){return t[e]}):t}function s(t){var e=t.indexOf(“?”);return-1===e?””:t.slice(e+1)}function c(t,e){e=l({arrayFormat:”none”},e);var n=r(e),i=Object.create(null);return”string”!=typeof t?i:(t=t.trim().replace(/^[?#&]/,””))?(t.split(“&”).forEach(function(t){var e=t.replace(/+/g,” “).split(“=”),r=e.shift(),o=e.length>0?e.join(“=”):void 0;o=void 0===o?null:f(o),n(f(r),o,i)}),Object.keys(i).sort().reduce(function(t,e){var n=i[e];return Boolean(n)&&”object”==typeof n&&!Array.isArray(n)?t[e]=a(n):t[e]=n,t},Object.create(null))):i}var u=n(368),l=n(364),f=n(324);e.extract=s,e.parse=c,e.stringify=function(t,e){e=l({encode:!0,strict:!0,arrayFormat:”none”},e),!1===e.sort&&(e.sort=function(){});var n=i(e);return t?Object.keys(t).sort(e.sort).map(function(i){var r=t[i];if(void 0===r)return””;if(null===r)return o(i,e);if(Array.isArray(r)){var a=[];return r.slice().forEach(function(t){void 0!==t&&a.push(n(i,t,a.length))}),a.join(“&”)}return o(i,e)+”=”+o(r,e)}).filter(function(t){return t.length>0}).join(“&”):””},e.parseUrl=function(t,e){return{url:t.split(“?”)[0]||””,query:c(s(t),e)}}},function(t,e,n){(function(t,e){!function(t,n){“use strict”;function i(t){“function”!=typeof t&&(t=new Function(“”+t));for(var e=new Array(arguments.length-1),n=0;n=0&&(t._idleTimeoutId=setTimeout(function(){t._onTimeout&&t._onTimeout()},e))},n(367),e.setImmediate=”undefined”!=typeof self&&self.setImmediate||void 0!==t&&t.setImmediate||this&&this.setImmediate,e.clearImmediate=”undefined”!=typeof self&&self.clearImmediate||void 0!==t&&t.clearImmediate||this&&this.clearImmediate}).call(e,n(44))},function(t,e){t.exports=function(t){if(!t.webpackPolyfill){var e=Object.create(t);e.children||(e.children=[]),Object.defineProperty(e,”loaded”,{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,”id”,{enumerable:!0,get:function(){return e.i}}),Object.defineProperty(e,”exports”,{enumerable:!0}),e.webpackPolyfill=1}return e}},function(t,e,n){var i,r,o;!function(n,a){r=[t,e],i=a,void 0!==(o=”function”==typeof i?i.apply(e,r):i)&&(t.exports=o)}(0,function(t,e){“use strict”;function n(t,e){if(!(t instanceof e))throw new TypeError(“Cannot call a class as a function”)}function i(t,e){return e.indexOf(t)>=0}function r(t,e){for(var n in e)if(null==t[n]){var i=e[n];t[n]=i}return t}function o(t){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(t)}function a(t){var e=!(arguments.length<=1||void 0===arguments[1])&&arguments[1],n=!(arguments.length<=2||void 0===arguments[2])&&arguments[2],i=arguments.length<=3||void 0===arguments[3]?null:arguments[3],r=void 0;return null!=document.createEvent?(r=document.createEvent("CustomEvent"),r.initCustomEvent(t,e,n,i)):null!=document.createEventObject?(r=document.createEventObject(),r.eventType=t):r.eventName=t,r}function s(t,e){null!=t.dispatchEvent?t.dispatchEvent(e):e in(null!=t)?t[e]():"on"+e in(null!=t)&&t["on"+e]()}function c(t,e,n){null!=t.addEventListener?t.addEventListener(e,n,!1):null!=t.attachEvent?t.attachEvent("on"+e,n):t[e]=n}function u(t,e,n){null!=t.removeEventListener?t.removeEventListener(e,n,!1):null!=t.detachEvent?t.detachEvent("on"+e,n):delete t[e]}function l(){return"innerHeight"in window?window.innerHeight:document.documentElement.clientHeight}Object.defineProperty(e,"__esModule",{value:!0});var f,d,h=function(){function t(t,e){for(var n=0;n=0){var e=t.target||t.srcElement;e.className=e.className.replace(this.config.animateClass,"").trim()}}},{key:"customStyle",value:function(t,e,n,i,r){return e&&this.cacheAnimationName(t),t.style.visibility=e?"hidden":"visible",n&&this.vendorSet(t.style,{animationDuration:n}),i&&this.vendorSet(t.style,{animationDelay:i}),r&&this.vendorSet(t.style,{animationIterationCount:r}),this.vendorSet(t.style,{animationName:e?"none":this.cachedAnimationName(t)}),t}},{key:"vendorSet",value:function(t,e){for(var n in e)if(e.hasOwnProperty(n)){var i=e[n];t[""+n]=i;for(var r=0;r=n}},{key:"disabled",value:function(){return!this.config.mobile&&o(navigator.userAgent)}}]),t}();e.default=v,t.exports=e.default})}]);
‘, // contents for images column (HTML supported) images: ‘
‘ }); //Position #2 menuItem(2).HaloMegaMenu({ dropAlign: ‘fullWidth’, // Dropdown MegaMenu Alignment: left, right, center, fullWidth dropWidth: ‘800px’, // Width of Dropdown MegaMenu (if dropAlign: fullWidth => dropWidth auto set 100%) dropType: ‘imageRight’, // Type of Dropdown MegaMenu content: imageLeft, imageRight, noImage cateAreaWidth: ‘65%’, // width of categories area imageAreaWidth: ‘35%’, // width of images area cateColumns: 3, // columns of categories area – max 5 columns bottomCates: ‘‘, // contents for images column (HTML supported) images: ‘
- Additional Information
‘ }); //Position #3 menuItem(3).HaloMegaMenu({ dropAlign: ‘fullWidth’, // Dropdown MegaMenu Alignment: left, right, center, fullWidth dropWidth: ‘800px’, // Width of Dropdown MegaMenu (if dropAlign: fullWidth => dropWidth auto set 100%) dropType: ‘imageRight’, // Type of Dropdown MegaMenu content: imageLeft, imageRight, noImage cateAreaWidth: ‘65%’, // width of categories area imageAreaWidth: ‘35%’, // width of images area cateColumns: 3, // columns of categories area – max 5 columns bottomCates: ‘
‘, // contents for images column (HTML supported) images: ‘
- Additional Information
‘ }); //Position #4 menuItem(4).HaloMegaMenu({ dropAlign: ‘fullWidth’, // Dropdown MegaMenu Alignment: left, right, center, fullWidth dropWidth: ‘800px’, // Width of Dropdown MegaMenu (if dropAlign: fullWidth => dropWidth auto set 100%) dropType: ‘imageRight’, // Type of Dropdown MegaMenu content: imageLeft, imageRight, noImage cateAreaWidth: ‘75%’, // width of categories area imageAreaWidth: ‘25%’, // width of images area cateColumns: 4, // columns of categories area – max 5 columns // contents for images column (HTML supported) images: ‘
- Top Rated
- Additional Information
‘ }); //Position #5 menuItem(5).HaloMegaMenu({ dropAlign: ‘fullWidth’, // Dropdown MegaMenu Alignment: left, right, center, fullWidth dropWidth: ‘800px’, // Width of Dropdown MegaMenu (if dropAlign: fullWidth => dropWidth auto set 100%) dropType: ‘imageRight’, // Type of Dropdown MegaMenu content: imageLeft, imageRight, noImage cateAreaWidth: ‘100%’, // width of categories area imageAreaWidth: ‘0%’, // width of images area cateColumns: 5, // columns of categories area – max 5 columns // contents for images column (HTML supported) images: ” }); //Position #6 menuItem(6).HaloMegaMenu({ dropAlign: ‘fullWidth’, // Dropdown MegaMenu Alignment: left, right, center, fullWidth dropWidth: ‘800px’, // Width of Dropdown MegaMenu (if dropAlign: fullWidth => dropWidth auto set 100%) dropType: ‘imageRight’, // Type of Dropdown MegaMenu content: imageLeft, imageRight, noImage cateAreaWidth: ‘75%’, // width of categories area imageAreaWidth: ‘25%’, // width of images area cateColumns: 4, // columns of categories area – max 5 columns // contents for images column (HTML supported) images: ” }); //Position #6 menuItem(7).HaloMegaMenu({ dropAlign: ‘fullWidth’, // Dropdown MegaMenu Alignment: left, right, center, fullWidth dropWidth: ‘800px’, // Width of Dropdown MegaMenu (if dropAlign: fullWidth => dropWidth auto set 100%) dropType: ‘imageRight’, // Type of Dropdown MegaMenu content: imageLeft, imageRight, noImage cateAreaWidth: ‘75%’, // width of categories area imageAreaWidth: ‘25%’, // width of images area cateColumns: 4, // columns of categories area – max 5 columns // contents for images column (HTML supported) images: ‘
- Additional Information
‘ }); //Position #7 menuItem(8).HaloMegaMenu({ dropAlign: ‘fullWidth’, // Dropdown MegaMenu Alignment: left, right, center, fullWidth dropWidth: ‘800px’, // Width of Dropdown MegaMenu (if dropAlign: fullWidth => dropWidth auto set 100%) dropType: ‘imageRight’, // Type of Dropdown MegaMenu content: imageLeft, imageRight, noImage cateAreaWidth: ‘100%’, // width of categories area imageAreaWidth: ‘0%’, // width of images area cateColumns: 4, // columns of categories area – max 5 columns // contents for images column (HTML supported) images: ” }); }); ul’).html()); $(‘#mobile-categories ul’).css(‘max-height’, screen.height); $(‘#mobile-categories ul li’).has(‘ul li’).addClass(‘hasSub’).prepend(”); $(‘#mobile-categories ul li.hasSub > span’).click(function() { if ($(this).hasClass(‘toggle-expand’)) { $(this).siblings(‘.subMegaMenu’).addClass(‘sub-expand’); $(this).parent().addClass(‘expanded’); $(this).attr(‘class’, ‘toggle-close’); } else if ($(this).hasClass(‘toggle-close’)) { $(this).siblings(‘.subMegaMenu’).removeClass(‘sub-expand’); $(this).parent().removeClass(‘expanded’); $(this).attr(‘class’, ‘toggle-expand’); } }); }); ]]]]]]]]>]]]]]]>]]]]>]]> { return origFetch(url, data) .then(response => { if (url && url.includes(‘/api/storefront/checkouts’) || url.includes(‘/api/storefront/carts’)) { response.clone().text().then(function(data) { const json = JSON.parse(data); if (json.length) { json[0].id && forceUpdateCheckout(json[0].id); } else { json.id && forceUpdateCheckout(json.id); } }); } else if (url && url.includes(‘/cart/add’) || url.includes(‘/cart/update’)) { window.fetch(‘/api/storefront/carts’) .then(response => response.json().then(json => { json.length && json[0].id && forceUpdateCheckout(json[0].id); })); } return response; }); } XMLHttpRequest.prototype.open = function() { this.addEventListener(‘load’, function() { const url = this.responseURL; if (url && url.includes(‘/api/storefront/checkouts’) || url.includes(‘/api/storefront/carts’)) { const json = JSON.parse(this.responseText); if (json.length) { json[0].id && forceUpdateCheckout(json[0].id); } else { json.id && forceUpdateCheckout(json.id); } } else if (url && url.includes(‘/cart/add’) || url.includes(‘/cart/update’)) { window.fetch(‘/api/storefront/carts’) .then(response => response.json().then(json => { json.length && json[0].id && forceUpdateCheckout(json[0].id); })); } }); origOpen.apply(this, arguments); }; function getCookie(cname) { var name = cname + “=”; var decodedCookie = decodeURIComponent(document.cookie); var ca = decodedCookie.split(‘;’); for (var i = 0; i ]]]]]]>]]]]>]]> { if (url && url.includes(‘/api/storefront/checkouts’) || url.includes(‘/api/storefront/carts’)) { response.clone().text().then(function(data) { const json = JSON.parse(data); if (json.length) { json[0].id && forceUpdateCheckout(json[0].id); } else { json.id && forceUpdateCheckout(json.id); } }); } else if (url && url.includes(‘/cart/add’) || url.includes(‘/cart/update’)) { window.fetch(‘/api/storefront/carts’) .then(response => response.json().then(json => { json.length && json[0].id && forceUpdateCheckout(json[0].id); })); } return response; }); } setInterval(() => { XMLHttpRequest.prototype.open = function() { this.addEventListener(‘load’, function() { const url = this.responseURL; if (url && url.includes(‘/api/storefront/checkouts’) || url.includes(‘/api/storefront/carts’)) { const json = JSON.parse(this.responseText); if (json.length) { json[0].id && forceUpdateCheckout(json[0].id); } else { json.id && forceUpdateCheckout(json.id); } } else if (url && url.includes(‘/cart/add’) || url.includes(‘/cart/update’)) { window.fetch(‘/api/storefront/carts’) .then(response => response.json().then(json => { json.length && json[0].id && forceUpdateCheckout(json[0].id); })); } }); origOpen.apply(this, arguments); }; }, 100); function getCookie(cname) { var name = cname + “=”; var decodedCookie = decodeURIComponent(document.cookie); var ca = decodedCookie.split(‘;’); for (var i = 0; i ]]]]]]>]]]]>]]> { $.get({ url: ‘/customer/current.jwt?app_client_id=qbwksajte9ec5bceih54u0207z7j6sv’, success: function (response) { req_data.is_user_logged_in = 1 req_data.user_token = response getPopupContent(); }, error: function (error) { console.log(‘failed to get current user’) console.log(error); getPopupContent(); } }) function getPopupContent() { $.get(‘/api/storefront/carts’, function(cart_data) { if (cart_data && cart_data.length > 0) { for (var cart_item of cart_data) { if (cart_item.coupons.length > 0) { req_data.is_has_coupons_in_cart = 1; break; } } cart_id = cart_data[0][‘id’]; cart_items = cart_data[0][“lineItems”][“physicalItems”].concat(cart_data[0][“lineItems”][“digitalItems”].concat(cart_data[0][“lineItems”][“customItems”])); req_data.products_in_cart = cart_items.map(x => x.productId); req_data.cartValue = cart_data[0][‘baseAmount’]; req_data.qtyCart = getQtyCart(cart_items); if (position == 2) { req_data.trigger_product_ids = cart_items.map(x => x.productId); localStorage.setItem(‘cart_items’, req_data.trigger_product_ids); localStorage.setItem(‘cartValue’, req_data.cartValue); localStorage.setItem(‘qtyCart’, req_data.qtyCart); if (localStorage.getItem(‘offer_showed_before_co’)) { return false; } } if (position == 4) { req_data.trigger_product_ids = cart_items.map(x => x.productId); if (localStorage.getItem(‘offer_showed_in_cart’)) { return false; } } } localStorage.removeItem(‘offer_showed_before_co’); localStorage.removeItem(‘offer_showed_in_cart’); if (position == 3 && localStorage.getItem(‘cart_items’)) { req_data.trigger_product_ids = localStorage.getItem(‘cart_items’).split(“,”); req_data.products_in_cart = req_data.trigger_product_ids.slice(); req_data.cartValue = localStorage.getItem(‘cartValue’); req_data.qtyCart = localStorage.getItem(‘qtyCart’); localStorage.removeItem(‘cart_items’); localStorage.removeItem(‘cartValue’); localStorage.removeItem(‘qtyCart’); } // dest_currency_code = $(‘#currencySelection strong’).parent().attr(‘data-currency-code’) dest_currency_code = $(‘.body’).attr(‘data-currency-code’); console.log(dest_currency_code); if (typeof dest_currency_code !== “undefined” && dest_currency_code !== base_currency_code) { req_data.currency_code = dest_currency_code; localStorage.setItem(‘dest_currency_code’, dest_currency_code); } else if (typeof dest_currency_code !== “undefined” && dest_currency_code === base_currency_code) { dest_currency_code = base_currency_code; localStorage.setItem(‘dest_currency_code’, dest_currency_code); } else { if (localStorage.getItem(‘dest_currency_code’) && localStorage.getItem(‘dest_currency_code’) !== base_currency_code) { dest_currency_code = localStorage.getItem(‘dest_currency_code’); req_data.currency_code = dest_currency_code; } else { dest_currency_code = base_currency_code; } } let offerIDs = getCookieMatch(‘_v1_offerId_’); req_data.offerIDs = offerIDs; if (req_data.trigger_product_ids.length < 1 && product_id == null) { console.log('Request data invalid. Request fail.'); hasOffer = false; return false; } $.ajax({ url: apiUri + "/api/popup-content", headers: { "Access-Control-Allow-Headers": "*" }, type: "GET", crossDomain: true, data: req_data, dataType: "json", success: function(res) { if (res.responseText) { handleOfferExist(res); } console.log("Load completed. Request time: ", new Date().getTime() - start_time); }, error: function(res) { $('.ult-upsell-modal-body').html(res.responseText); console.log("Error occured. Request time: ", new Date().getTime() - start_time); console.log(res); }, }); }) } }) });