wforc.in Open in urlscan Pro
103.170.3.5  Public Scan

URL: https://wforc.in/wp-content/themes/dt-the7/js/main.min.js?ver=4.2.2
Submission: On August 24 via api from US — Scanned from DE

Form analysis 0 forms found in the DOM

Text Content

function Layzr(a){this._lastScroll=0,this._ticking=!1,a=a||{},this._optionsContainer=document.querySelector(a.container)||window,this._optionsSelector=a.selector||"[data-layzr]",this._optionsAttr=a.attr||"data-layzr",this._optionsAttrSrcSet=a.attrSrcSet||"data-layzr-srcset",this._optionsAttrRetina=a.retinaAttr||"data-layzr-retina",this._optionsAttrBg=a.bgAttr||"data-layzr-bg",this._optionsAttrHidden=a.hiddenAttr||"data-layzr-hidden",this._optionsThreshold=a.threshold||0,this._optionsBefore=a.before||null,this._optionsAfter=a.after||null,this._optionsCallback=a.callback||null,this._retina=window.devicePixelRatio>1,this._srcAttr=this._retina?this._optionsAttrRetina:this._optionsAttr,this._nodes=document.querySelectorAll(this._optionsSelector),this._handlerBind=this._requestScroll.bind(this),this._create()}function simple_tooltip(a,b){jQuery(a).each(function(a){jQuery("body").append("<div class='"+b+"' id='"+b+a+"'>"+jQuery(this).find("span.tooltip-c").html()+"</div>");var c=jQuery("#"+b+a);jQuery(this).removeAttr("title").mouseover(function(){c.css({opacity:1,display:"none"}).fadeIn(400)}).mousemove(function(a){var b,d,e=jQuery(window).scrollTop(),f=jQuery(window).width(),g=15;b=f-2*g>=c.width()+a.pageX?a.pageX+g:f-c.width()-g,d=e+2*g>=a.pageY-c.height()?e+g:a.pageY-c.height()-2.2*g,c.css({left:b,top:d})}).mouseout(function(){c.css({left:"-9999px"})})})}jQuery.easing.jswing=jQuery.easing.swing,jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(a,b,c,d,e){return jQuery.easing[jQuery.easing.def](a,b,c,d,e)},easeInQuad:function(a,b,c,d,e){return d*(b/=e)*b+c},easeOutQuad:function(a,b,c,d,e){return-d*(b/=e)*(b-2)+c},easeInOutQuad:function(a,b,c,d,e){return(b/=e/2)<1?d/2*b*b+c:-d/2*(--b*(b-2)-1)+c},easeInCubic:function(a,b,c,d,e){return d*(b/=e)*b*b+c},easeOutCubic:function(a,b,c,d,e){return d*((b=b/e-1)*b*b+1)+c},easeInOutCubic:function(a,b,c,d,e){return(b/=e/2)<1?d/2*b*b*b+c:d/2*((b-=2)*b*b+2)+c},easeInQuart:function(a,b,c,d,e){return d*(b/=e)*b*b*b+c},easeOutQuart:function(a,b,c,d,e){return-d*((b=b/e-1)*b*b*b-1)+c},easeInOutQuart:function(a,b,c,d,e){return(b/=e/2)<1?d/2*b*b*b*b+c:-d/2*((b-=2)*b*b*b-2)+c},easeInQuint:function(a,b,c,d,e){return d*(b/=e)*b*b*b*b+c},easeOutQuint:function(a,b,c,d,e){return d*((b=b/e-1)*b*b*b*b+1)+c},easeInOutQuint:function(a,b,c,d,e){return(b/=e/2)<1?d/2*b*b*b*b*b+c:d/2*((b-=2)*b*b*b*b+2)+c},easeInSine:function(a,b,c,d,e){return-d*Math.cos(b/e*(Math.PI/2))+d+c},easeOutSine:function(a,b,c,d,e){return d*Math.sin(b/e*(Math.PI/2))+c},easeInOutSine:function(a,b,c,d,e){return-d/2*(Math.cos(Math.PI*b/e)-1)+c},easeInExpo:function(a,b,c,d,e){return 0==b?c:d*Math.pow(2,10*(b/e-1))+c},easeOutExpo:function(a,b,c,d,e){return b==e?c+d:d*(-Math.pow(2,-10*b/e)+1)+c},easeInOutExpo:function(a,b,c,d,e){return 0==b?c:b==e?c+d:(b/=e/2)<1?d/2*Math.pow(2,10*(b-1))+c:d/2*(-Math.pow(2,-10*--b)+2)+c},easeInCirc:function(a,b,c,d,e){return-d*(Math.sqrt(1-(b/=e)*b)-1)+c},easeOutCirc:function(a,b,c,d,e){return d*Math.sqrt(1-(b=b/e-1)*b)+c},easeInOutCirc:function(a,b,c,d,e){return(b/=e/2)<1?-d/2*(Math.sqrt(1-b*b)-1)+c:d/2*(Math.sqrt(1-(b-=2)*b)+1)+c},easeInElastic:function(a,b,c,d,e){var f=1.70158,g=0,h=d;if(0==b)return c;if(1==(b/=e))return c+d;if(g||(g=.3*e),h<Math.abs(d)){h=d;var f=g/4}else var f=g/(2*Math.PI)*Math.asin(d/h);return-(h*Math.pow(2,10*(b-=1))*Math.sin(2*(b*e-f)*Math.PI/g))+c},easeOutElastic:function(a,b,c,d,e){var f=1.70158,g=0,h=d;if(0==b)return c;if(1==(b/=e))return c+d;if(g||(g=.3*e),h<Math.abs(d)){h=d;var f=g/4}else var f=g/(2*Math.PI)*Math.asin(d/h);return h*Math.pow(2,-10*b)*Math.sin(2*(b*e-f)*Math.PI/g)+d+c},easeInOutElastic:function(a,b,c,d,e){var f=1.70158,g=0,h=d;if(0==b)return c;if(2==(b/=e/2))return c+d;if(g||(g=.3*e*1.5),h<Math.abs(d)){h=d;var f=g/4}else var f=g/(2*Math.PI)*Math.asin(d/h);return b<1?-.5*h*Math.pow(2,10*(b-=1))*Math.sin(2*(b*e-f)*Math.PI/g)+c:h*Math.pow(2,-10*(b-=1))*Math.sin(2*(b*e-f)*Math.PI/g)*.5+d+c},easeInBack:function(a,b,c,d,e,f){return void 0==f&&(f=1.70158),d*(b/=e)*b*((f+1)*b-f)+c},easeOutBack:function(a,b,c,d,e,f){return void 0==f&&(f=1.70158),d*((b=b/e-1)*b*((f+1)*b+f)+1)+c},easeInOutBack:function(a,b,c,d,e,f){return void 0==f&&(f=1.70158),(b/=e/2)<1?d/2*b*b*(((f*=1.525)+1)*b-f)+c:d/2*((b-=2)*b*(((f*=1.525)+1)*b+f)+2)+c},easeInBounce:function(a,b,c,d,e){return d-jQuery.easing.easeOutBounce(a,e-b,0,d,e)+c},easeOutBounce:function(a,b,c,d,e){return(b/=e)<1/2.75?7.5625*d*b*b+c:b<2/2.75?d*(7.5625*(b-=1.5/2.75)*b+.75)+c:b<2.5/2.75?d*(7.5625*(b-=2.25/2.75)*b+.9375)+c:d*(7.5625*(b-=2.625/2.75)*b+.984375)+c},easeInOutBounce:function(a,b,c,d,e){return b<e/2?.5*jQuery.easing.easeInBounce(a,2*b,0,d,e)+c:.5*jQuery.easing.easeOutBounce(a,2*b-e,0,d,e)+.5*d+c}}),!function(a){function b(a){var b=a.length,d=c.type(a);return"function"!==d&&!c.isWindow(a)&&(!(1!==a.nodeType||!b)||("array"===d||0===b||"number"==typeof b&&b>0&&b-1 in a))}if(!a.jQuery){var c=function(a,b){return new c.fn.init(a,b)};c.isWindow=function(a){return null!=a&&a==a.window},c.type=function(a){return null==a?a+"":"object"==typeof a||"function"==typeof a?e[g.call(a)]||"object":typeof a},c.isArray=Array.isArray||function(a){return"array"===c.type(a)},c.isPlainObject=function(a){var b;if(!a||"object"!==c.type(a)||a.nodeType||c.isWindow(a))return!1;try{if(a.constructor&&!f.call(a,"constructor")&&!f.call(a.constructor.prototype,"isPrototypeOf"))return!1}catch(a){return!1}for(b in a);return void 0===b||f.call(a,b)},c.each=function(a,c,d){var e,f=0,g=a.length,h=b(a);if(d){if(h)for(;g>f&&(e=c.apply(a[f],d),e!==!1);f++);else for(f in a)if(e=c.apply(a[f],d),e===!1)break}else if(h)for(;g>f&&(e=c.call(a[f],f,a[f]),e!==!1);f++);else for(f in a)if(e=c.call(a[f],f,a[f]),e===!1)break;return a},c.data=function(a,b,e){if(void 0===e){var f=a[c.expando],g=f&&d[f];if(void 0===b)return g;if(g&&b in g)return g[b]}else if(void 0!==b){var f=a[c.expando]||(a[c.expando]=++c.uuid);return d[f]=d[f]||{},d[f][b]=e,e}},c.removeData=function(a,b){var e=a[c.expando],f=e&&d[e];f&&c.each(b,function(a,b){delete f[b]})},c.extend=function(){var a,b,d,e,f,g,h=arguments[0]||{},i=1,j=arguments.length,k=!1;for("boolean"==typeof h&&(k=h,h=arguments[i]||{},i++),"object"!=typeof h&&"function"!==c.type(h)&&(h={}),i===j&&(h=this,i--);j>i;i++)if(null!=(f=arguments[i]))for(e in f)a=h[e],d=f[e],h!==d&&(k&&d&&(c.isPlainObject(d)||(b=c.isArray(d)))?(b?(b=!1,g=a&&c.isArray(a)?a:[]):g=a&&c.isPlainObject(a)?a:{},h[e]=c.extend(k,g,d)):void 0!==d&&(h[e]=d));return h},c.queue=function(a,d,e){function f(a,c){var d=c||[];return null!=a&&(b(Object(a))?!function(a,b){for(var c=+b.length,d=0,e=a.length;c>d;)a[e++]=b[d++];if(c!==c)for(;void 0!==b[d];)a[e++]=b[d++];return a.length=e,a}(d,"string"==typeof a?[a]:a):[].push.call(d,a)),d}if(a){d=(d||"fx")+"queue";var g=c.data(a,d);return e?(!g||c.isArray(e)?g=c.data(a,d,f(e)):g.push(e),g):g||[]}},c.dequeue=function(a,b){c.each(a.nodeType?[a]:a,function(a,d){b=b||"fx";var e=c.queue(d,b),f=e.shift();"inprogress"===f&&(f=e.shift()),f&&("fx"===b&&e.unshift("inprogress"),f.call(d,function(){c.dequeue(d,b)}))})},c.fn=c.prototype={init:function(a){if(a.nodeType)return this[0]=a,this;throw new Error("Not a DOM node.")},offset:function(){var b=this[0].getBoundingClientRect?this[0].getBoundingClientRect():{top:0,left:0};return{top:b.top+(a.pageYOffset||document.scrollTop||0)-(document.clientTop||0),left:b.left+(a.pageXOffset||document.scrollLeft||0)-(document.clientLeft||0)}},position:function(){function a(){for(var a=this.offsetParent||document;a&&"html"===!a.nodeType.toLowerCase&&"static"===a.style.position;)a=a.offsetParent;return a||document}var b=this[0],a=a.apply(b),d=this.offset(),e=/^(?:body|html)$/i.test(a.nodeName)?{top:0,left:0}:c(a).offset();return d.top-=parseFloat(b.style.marginTop)||0,d.left-=parseFloat(b.style.marginLeft)||0,a.style&&(e.top+=parseFloat(a.style.borderTopWidth)||0,e.left+=parseFloat(a.style.borderLeftWidth)||0),{top:d.top-e.top,left:d.left-e.left}}};var d={};c.expando="velocity"+(new Date).getTime(),c.uuid=0;for(var e={},f=e.hasOwnProperty,g=e.toString,h="Boolean Number String Function Array Date RegExp Object Error".split(" "),i=0;i<h.length;i++)e["[object "+h[i]+"]"]=h[i].toLowerCase();c.fn.init.prototype=c.fn,a.Velocity={Utilities:c}}}(window),function(a){"object"==typeof module&&"object"==typeof module.exports?module.exports=a():"function"==typeof define&&define.amd?define(a):a()}(function(){return function(a,b,c,d){function e(a){for(var b=-1,c=a?a.length:0,d=[];++b<c;){var e=a[b];e&&d.push(e)}return d}function f(a){return p.isWrapped(a)?a=[].slice.call(a):p.isNode(a)&&(a=[a]),a}function g(a){var b=m.data(a,"velocity");return null===b?d:b}function h(a){return function(b){return Math.round(b*a)*(1/a)}}function i(a,c,d,e){function f(a,b){return 1-3*b+3*a}function g(a,b){return 3*b-6*a}function h(a){return 3*a}function i(a,b,c){return((f(b,c)*a+g(b,c))*a+h(b))*a}function j(a,b,c){return 3*f(b,c)*a*a+2*g(b,c)*a+h(b)}function k(b,c){for(var e=0;p>e;++e){var f=j(c,a,d);if(0===f)return c;var g=i(c,a,d)-b;c-=g/f}return c}function l(){for(var b=0;t>b;++b)x[b]=i(b*u,a,d)}function m(b,c,e){var f,g,h=0;do g=c+(e-c)/2,f=i(g,a,d)-b,f>0?e=g:c=g;while(Math.abs(f)>r&&++h<s);return g}function n(b){for(var c=0,e=1,f=t-1;e!=f&&x[e]<=b;++e)c+=u;--e;var g=(b-x[e])/(x[e+1]-x[e]),h=c+g*u,i=j(h,a,d);return i>=q?k(b,h):0==i?h:m(b,c,c+u)}function o(){y=!0,(a!=c||d!=e)&&l()}var p=4,q=.001,r=1e-7,s=10,t=11,u=1/(t-1),v="Float32Array"in b;if(4!==arguments.length)return!1;for(var w=0;4>w;++w)if("number"!=typeof arguments[w]||isNaN(arguments[w])||!isFinite(arguments[w]))return!1;a=Math.min(a,1),d=Math.min(d,1),a=Math.max(a,0),d=Math.max(d,0);var x=v?new Float32Array(t):new Array(t),y=!1,z=function(b){return y||o(),a===c&&d===e?b:0===b?0:1===b?1:i(n(b),c,e)};z.getControlPoints=function(){return[{x:a,y:c},{x:d,y:e}]};var A="generateBezier("+[a,c,d,e]+")";return z.toString=function(){return A},z}function j(a,b){var c=a;return p.isString(a)?t.Easings[a]||(c=!1):c=p.isArray(a)&&1===a.length?h.apply(null,a):p.isArray(a)&&2===a.length?u.apply(null,a.concat([b])):!(!p.isArray(a)||4!==a.length)&&i.apply(null,a),c===!1&&(c=t.Easings[t.defaults.easing]?t.defaults.easing:s),c}function k(a){if(a){var b=(new Date).getTime(),c=t.State.calls.length;c>1e4&&(t.State.calls=e(t.State.calls));for(var f=0;c>f;f++)if(t.State.calls[f]){var h=t.State.calls[f],i=h[0],j=h[2],n=h[3],o=!!n,q=null;n||(n=t.State.calls[f][3]=b-16);for(var r=Math.min((b-n)/j.duration,1),s=0,u=i.length;u>s;s++){var w=i[s],y=w.element;if(g(y)){var z=!1;if(j.display!==d&&null!==j.display&&"none"!==j.display){if("flex"===j.display){var A=["-webkit-box","-moz-box","-ms-flexbox","-webkit-flex"];m.each(A,function(a,b){v.setPropertyValue(y,"display",b)})}v.setPropertyValue(y,"display",j.display)}j.visibility!==d&&"hidden"!==j.visibility&&v.setPropertyValue(y,"visibility",j.visibility);for(var B in w)if("element"!==B){var C,D=w[B],E=p.isString(D.easing)?t.Easings[D.easing]:D.easing;if(1===r)C=D.endValue;else{var F=D.endValue-D.startValue;if(C=D.startValue+F*E(r,j,F),!o&&C===D.currentValue)continue}if(D.currentValue=C,"tween"===B)q=C;else{if(v.Hooks.registered[B]){var G=v.Hooks.getRoot(B),H=g(y).rootPropertyValueCache[G];H&&(D.rootPropertyValue=H)}var I=v.setPropertyValue(y,B,D.currentValue+(0===parseFloat(C)?"":D.unitType),D.rootPropertyValue,D.scrollData);v.Hooks.registered[B]&&(g(y).rootPropertyValueCache[G]=v.Normalizations.registered[G]?v.Normalizations.registered[G]("extract",null,I[1]):I[1]),"transform"===I[0]&&(z=!0)}}j.mobileHA&&g(y).transformCache.translate3d===d&&(g(y).transformCache.translate3d="(0px, 0px, 0px)",z=!0),z&&v.flushTransformCache(y)}}j.display!==d&&"none"!==j.display&&(t.State.calls[f][2].display=!1),j.visibility!==d&&"hidden"!==j.visibility&&(t.State.calls[f][2].visibility=!1),j.progress&&j.progress.call(h[1],h[1],r,Math.max(0,n+j.duration-b),n,q),1===r&&l(f)}}t.State.isTicking&&x(k)}function l(a,b){if(!t.State.calls[a])return!1;for(var c=t.State.calls[a][0],e=t.State.calls[a][1],f=t.State.calls[a][2],h=t.State.calls[a][4],i=!1,j=0,k=c.length;k>j;j++){var l=c[j].element;if(b||f.loop||("none"===f.display&&v.setPropertyValue(l,"display",f.display),"hidden"===f.visibility&&v.setPropertyValue(l,"visibility",f.visibility)),f.loop!==!0&&(m.queue(l)[1]===d||!/\.velocityQueueEntryFlag/i.test(m.queue(l)[1]))&&g(l)){g(l).isAnimating=!1,g(l).rootPropertyValueCache={};var n=!1;m.each(v.Lists.transforms3D,function(a,b){var c=/^scale/.test(b)?1:0,e=g(l).transformCache[b];g(l).transformCache[b]!==d&&new RegExp("^\\("+c+"[^.]").test(e)&&(n=!0,delete g(l).transformCache[b])}),f.mobileHA&&(n=!0,delete g(l).transformCache.translate3d),n&&v.flushTransformCache(l),v.Values.removeClass(l,"velocity-animating")}if(!b&&f.complete&&!f.loop&&j===k-1)try{f.complete.call(e,e)}catch(a){setTimeout(function(){throw a},1)}h&&f.loop!==!0&&h(e),g(l)&&f.loop===!0&&!b&&(m.each(g(l).tweensContainer,function(a,b){/^rotate/.test(a)&&360===parseFloat(b.endValue)&&(b.endValue=0,b.startValue=360),/^backgroundPosition/.test(a)&&100===parseFloat(b.endValue)&&"%"===b.unitType&&(b.endValue=0,b.startValue=100)}),t(l,"reverse",{loop:!0,delay:f.delay})),f.queue!==!1&&m.dequeue(l,f.queue)}t.State.calls[a]=!1;for(var o=0,p=t.State.calls.length;p>o;o++)if(t.State.calls[o]!==!1){i=!0;break}i===!1&&(t.State.isTicking=!1,delete t.State.calls,t.State.calls=[])}var m,n=function(){if(c.documentMode)return c.documentMode;for(var a=7;a>4;a--){var b=c.createElement("div");if(b.innerHTML="<!--[if IE "+a+"]><span></span><![endif]-->",b.getElementsByTagName("span").length)return b=null,a}return d}(),o=function(){var a=0;return b.webkitRequestAnimationFrame||b.mozRequestAnimationFrame||function(b){var c,d=(new Date).getTime();return c=Math.max(0,16-(d-a)),a=d+c,setTimeout(function(){b(d+c)},c)}}(),p={isString:function(a){return"string"==typeof a},isArray:Array.isArray||function(a){return"[object Array]"===Object.prototype.toString.call(a)},isFunction:function(a){return"[object Function]"===Object.prototype.toString.call(a)},isNode:function(a){return a&&a.nodeType},isNodeList:function(a){return"object"==typeof a&&/^\[object (HTMLCollection|NodeList|Object)\]$/.test(Object.prototype.toString.call(a))&&a.length!==d&&(0===a.length||"object"==typeof a[0]&&a[0].nodeType>0)},isWrapped:function(a){return a&&(a.jquery||b.Zepto&&b.Zepto.zepto.isZ(a))},isSVG:function(a){return b.SVGElement&&a instanceof b.SVGElement},isEmptyObject:function(a){for(var b in a)return!1;return!0}},q=!1;if(a.fn&&a.fn.jquery?(m=a,q=!0):m=b.Velocity.Utilities,8>=n&&!q)throw new Error("Velocity: IE8 and below require jQuery to be loaded before Velocity.");if(7>=n)return void(jQuery.fn.velocity=jQuery.fn.animate);var r=400,s="swing",t={State:{isMobile:/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),isAndroid:/Android/i.test(navigator.userAgent),isGingerbread:/Android 2\.3\.[3-7]/i.test(navigator.userAgent),isChrome:b.chrome,isFirefox:/Firefox/i.test(navigator.userAgent),prefixElement:c.createElement("div"),prefixMatches:{},scrollAnchor:null,scrollPropertyLeft:null,scrollPropertyTop:null,isTicking:!1,calls:[]},CSS:{},Utilities:m,Redirects:{},Easings:{},Promise:b.Promise,defaults:{queue:"",duration:r,easing:s,begin:d,complete:d,progress:d,display:d,visibility:d,loop:!1,delay:!1,mobileHA:!0,_cacheValues:!0},init:function(a){m.data(a,"velocity",{isSVG:p.isSVG(a),isAnimating:!1,computedStyle:null,tweensContainer:null,rootPropertyValueCache:{},transformCache:{}})},hook:null,mock:!1,version:{major:1,minor:2,patch:2},debug:!1};b.pageYOffset!==d?(t.State.scrollAnchor=b,t.State.scrollPropertyLeft="pageXOffset",t.State.scrollPropertyTop="pageYOffset"):(t.State.scrollAnchor=c.documentElement||c.body.parentNode||c.body,t.State.scrollPropertyLeft="scrollLeft",t.State.scrollPropertyTop="scrollTop");var u=function(){function a(a){return-a.tension*a.x-a.friction*a.v}function b(b,c,d){var e={x:b.x+d.dx*c,v:b.v+d.dv*c,tension:b.tension,friction:b.friction};return{dx:e.v,dv:a(e)}}function c(c,d){var e={dx:c.v,dv:a(c)},f=b(c,.5*d,e),g=b(c,.5*d,f),h=b(c,d,g),i=1/6*(e.dx+2*(f.dx+g.dx)+h.dx),j=1/6*(e.dv+2*(f.dv+g.dv)+h.dv);return c.x=c.x+i*d,c.v=c.v+j*d,c}return function a(b,d,e){var f,g,h,i={x:-1,v:0,tension:null,friction:null},j=[0],k=0,l=1e-4,m=.016;for(b=parseFloat(b)||500,d=parseFloat(d)||20,e=e||null,i.tension=b,i.friction=d,f=null!==e,f?(k=a(b,d),g=k/e*m):g=m;h=c(h||i,g),j.push(1+h.x),k+=16,Math.abs(h.x)>l&&Math.abs(h.v)>l;);return f?function(a){return j[a*(j.length-1)|0]}:k}}();t.Easings={linear:function(a){return a},swing:function(a){return.5-Math.cos(a*Math.PI)/2},spring:function(a){return 1-Math.cos(4.5*a*Math.PI)*Math.exp(6*-a)}},m.each([["ease",[.25,.1,.25,1]],["ease-in",[.42,0,1,1]],["ease-out",[0,0,.58,1]],["ease-in-out",[.42,0,.58,1]],["easeInSine",[.47,0,.745,.715]],["easeOutSine",[.39,.575,.565,1]],["easeInOutSine",[.445,.05,.55,.95]],["easeInQuad",[.55,.085,.68,.53]],["easeOutQuad",[.25,.46,.45,.94]],["easeInOutQuad",[.455,.03,.515,.955]],["easeInCubic",[.55,.055,.675,.19]],["easeOutCubic",[.215,.61,.355,1]],["easeInOutCubic",[.645,.045,.355,1]],["easeInQuart",[.895,.03,.685,.22]],["easeOutQuart",[.165,.84,.44,1]],["easeInOutQuart",[.77,0,.175,1]],["easeInQuint",[.755,.05,.855,.06]],["easeOutQuint",[.23,1,.32,1]],["easeInOutQuint",[.86,0,.07,1]],["easeInExpo",[.95,.05,.795,.035]],["easeOutExpo",[.19,1,.22,1]],["easeInOutExpo",[1,0,0,1]],["easeInCirc",[.6,.04,.98,.335]],["easeOutCirc",[.075,.82,.165,1]],["easeInOutCirc",[.785,.135,.15,.86]]],function(a,b){t.Easings[b[0]]=i.apply(null,b[1])});var v=t.CSS={RegEx:{isHex:/^#([A-f\d]{3}){1,2}$/i,valueUnwrap:/^[A-z]+\((.*)\)$/i,wrappedValueAlreadyExtracted:/[0-9.]+ [0-9.]+ [0-9.]+( [0-9.]+)?/,valueSplit:/([A-z]+\(.+\))|(([A-z0-9#-.]+?)(?=\s|$))/gi},Lists:{colors:["fill","stroke","stopColor","color","backgroundColor","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor","outlineColor"],transformsBase:["translateX","translateY","scale","scaleX","scaleY","skewX","skewY","rotateZ"],transforms3D:["transformPerspective","translateZ","scaleZ","rotateX","rotateY"]},Hooks:{templates:{textShadow:["Color X Y Blur","black 0px 0px 0px"],boxShadow:["Color X Y Blur Spread","black 0px 0px 0px 0px"],clip:["Top Right Bottom Left","0px 0px 0px 0px"],backgroundPosition:["X Y","0% 0%"],transformOrigin:["X Y Z","50% 50% 0px"],perspectiveOrigin:["X Y","50% 50%"]},registered:{},register:function(){for(var a=0;a<v.Lists.colors.length;a++){var b="color"===v.Lists.colors[a]?"0 0 0 1":"255 255 255 1";v.Hooks.templates[v.Lists.colors[a]]=["Red Green Blue Alpha",b]}var c,d,e;if(n)for(c in v.Hooks.templates){d=v.Hooks.templates[c],e=d[0].split(" ");var f=d[1].match(v.RegEx.valueSplit);"Color"===e[0]&&(e.push(e.shift()),f.push(f.shift()),v.Hooks.templates[c]=[e.join(" "),f.join(" ")])}for(c in v.Hooks.templates){d=v.Hooks.templates[c],e=d[0].split(" ");for(var a in e){var g=c+e[a],h=a;v.Hooks.registered[g]=[c,h]}}},getRoot:function(a){var b=v.Hooks.registered[a];return b?b[0]:a},cleanRootPropertyValue:function(a,b){return v.RegEx.valueUnwrap.test(b)&&(b=b.match(v.RegEx.valueUnwrap)[1]),v.Values.isCSSNullValue(b)&&(b=v.Hooks.templates[a][1]),b},extractValue:function(a,b){var c=v.Hooks.registered[a];if(c){var d=c[0],e=c[1];return b=v.Hooks.cleanRootPropertyValue(d,b),b.toString().match(v.RegEx.valueSplit)[e]}return b},injectValue:function(a,b,c){var d=v.Hooks.registered[a];if(d){var e,f,g=d[0],h=d[1];return c=v.Hooks.cleanRootPropertyValue(g,c),e=c.toString().match(v.RegEx.valueSplit),e[h]=b,f=e.join(" ")}return c}},Normalizations:{registered:{clip:function(a,b,c){switch(a){case"name":return"clip";case"extract":var d;return v.RegEx.wrappedValueAlreadyExtracted.test(c)?d=c:(d=c.toString().match(v.RegEx.valueUnwrap),d=d?d[1].replace(/,(\s+)?/g," "):c),d;case"inject":return"rect("+c+")"}},blur:function(a,b,c){switch(a){case"name":return t.State.isFirefox?"filter":"-webkit-filter";case"extract":var d=parseFloat(c);if(!d&&0!==d){var e=c.toString().match(/blur\(([0-9]+[A-z]+)\)/i);d=e?e[1]:0}return d;case"inject":return parseFloat(c)?"blur("+c+")":"none"}},opacity:function(a,b,c){if(8>=n)switch(a){case"name":return"filter";case"extract":var d=c.toString().match(/alpha\(opacity=(.*)\)/i);return c=d?d[1]/100:1;case"inject":return b.style.zoom=1,parseFloat(c)>=1?"":"alpha(opacity="+parseInt(100*parseFloat(c),10)+")"}else switch(a){case"name":return"opacity";case"extract":return c;case"inject":return c}}},register:function(){9>=n||t.State.isGingerbread||(v.Lists.transformsBase=v.Lists.transformsBase.concat(v.Lists.transforms3D));for(var a=0;a<v.Lists.transformsBase.length;a++)!function(){var b=v.Lists.transformsBase[a];v.Normalizations.registered[b]=function(a,c,e){switch(a){case"name":return"transform";case"extract":return g(c)===d||g(c).transformCache[b]===d?/^scale/i.test(b)?1:0:g(c).transformCache[b].replace(/[()]/g,"");case"inject":var f=!1;switch(b.substr(0,b.length-1)){case"translate":f=!/(%|px|em|rem|vw|vh|\d)$/i.test(e);break;case"scal":case"scale":t.State.isAndroid&&g(c).transformCache[b]===d&&1>e&&(e=1),f=!/(\d)$/i.test(e);break;case"skew":f=!/(deg|\d)$/i.test(e);break;case"rotate":f=!/(deg|\d)$/i.test(e)}return f||(g(c).transformCache[b]="("+e+")"),g(c).transformCache[b]}}}();for(var a=0;a<v.Lists.colors.length;a++)!function(){var b=v.Lists.colors[a];v.Normalizations.registered[b]=function(a,c,e){switch(a){case"name":return b;case"extract":var f;if(v.RegEx.wrappedValueAlreadyExtracted.test(e))f=e;else{var g,h={black:"rgb(0, 0, 0)",blue:"rgb(0, 0, 255)",gray:"rgb(128, 128, 128)",green:"rgb(0, 128, 0)",red:"rgb(255, 0, 0)",white:"rgb(255, 255, 255)"};/^[A-z]+$/i.test(e)?g=h[e]!==d?h[e]:h.black:v.RegEx.isHex.test(e)?g="rgb("+v.Values.hexToRgb(e).join(" ")+")":/^rgba?\(/i.test(e)||(g=h.black),f=(g||e).toString().match(v.RegEx.valueUnwrap)[1].replace(/,(\s+)?/g," ")}return 8>=n||3!==f.split(" ").length||(f+=" 1"),f;case"inject":return 8>=n?4===e.split(" ").length&&(e=e.split(/\s+/).slice(0,3).join(" ")):3===e.split(" ").length&&(e+=" 1"),(8>=n?"rgb":"rgba")+"("+e.replace(/\s+/g,",").replace(/\.(\d)+(?=,)/g,"")+")"}}}()}},Names:{camelCase:function(a){return a.replace(/-(\w)/g,function(a,b){return b.toUpperCase()})},SVGAttribute:function(a){var b="width|height|x|y|cx|cy|r|rx|ry|x1|x2|y1|y2";return(n||t.State.isAndroid&&!t.State.isChrome)&&(b+="|transform"),new RegExp("^("+b+")$","i").test(a)},prefixCheck:function(a){if(t.State.prefixMatches[a])return[t.State.prefixMatches[a],!0];for(var b=["","Webkit","Moz","ms","O"],c=0,d=b.length;d>c;c++){var e;if(e=0===c?a:b[c]+a.replace(/^\w/,function(a){return a.toUpperCase()}),p.isString(t.State.prefixElement.style[e]))return t.State.prefixMatches[a]=e,[e,!0]}return[a,!1]}},Values:{hexToRgb:function(a){var b,c=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,d=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i;return a=a.replace(c,function(a,b,c,d){return b+b+c+c+d+d}),b=d.exec(a),b?[parseInt(b[1],16),parseInt(b[2],16),parseInt(b[3],16)]:[0,0,0]},isCSSNullValue:function(a){return 0==a||/^(none|auto|transparent|(rgba\(0, ?0, ?0, ?0\)))$/i.test(a)},getUnitType:function(a){return/^(rotate|skew)/i.test(a)?"deg":/(^(scale|scaleX|scaleY|scaleZ|alpha|flexGrow|flexHeight|zIndex|fontWeight)$)|((opacity|red|green|blue|alpha)$)/i.test(a)?"":"px"},getDisplayType:function(a){var b=a&&a.tagName.toString().toLowerCase();return/^(b|big|i|small|tt|abbr|acronym|cite|code|dfn|em|kbd|strong|samp|var|a|bdo|br|img|map|object|q|script|span|sub|sup|button|input|label|select|textarea)$/i.test(b)?"inline":/^(li)$/i.test(b)?"list-item":/^(tr)$/i.test(b)?"table-row":/^(table)$/i.test(b)?"table":/^(tbody)$/i.test(b)?"table-row-group":"block"},addClass:function(a,b){a.classList?a.classList.add(b):a.className+=(a.className.length?" ":"")+b},removeClass:function(a,b){a.classList?a.classList.remove(b):a.className=a.className.toString().replace(new RegExp("(^|\\s)"+b.split(" ").join("|")+"(\\s|$)","gi")," ")}},getPropertyValue:function(a,c,e,f){function h(a,c){function e(){j&&v.setPropertyValue(a,"display","none")}var i=0;if(8>=n)i=m.css(a,c);else{var j=!1;if(/^(width|height)$/.test(c)&&0===v.getPropertyValue(a,"display")&&(j=!0,v.setPropertyValue(a,"display",v.Values.getDisplayType(a))),!f){if("height"===c&&"border-box"!==v.getPropertyValue(a,"boxSizing").toString().toLowerCase()){var k=a.offsetHeight-(parseFloat(v.getPropertyValue(a,"borderTopWidth"))||0)-(parseFloat(v.getPropertyValue(a,"borderBottomWidth"))||0)-(parseFloat(v.getPropertyValue(a,"paddingTop"))||0)-(parseFloat(v.getPropertyValue(a,"paddingBottom"))||0);return e(),k}if("width"===c&&"border-box"!==v.getPropertyValue(a,"boxSizing").toString().toLowerCase()){var l=a.offsetWidth-(parseFloat(v.getPropertyValue(a,"borderLeftWidth"))||0)-(parseFloat(v.getPropertyValue(a,"borderRightWidth"))||0)-(parseFloat(v.getPropertyValue(a,"paddingLeft"))||0)-(parseFloat(v.getPropertyValue(a,"paddingRight"))||0);return e(),l}}var o;o=g(a)===d?b.getComputedStyle(a,null):g(a).computedStyle?g(a).computedStyle:g(a).computedStyle=b.getComputedStyle(a,null),"borderColor"===c&&(c="borderTopColor"),i=9===n&&"filter"===c?o.getPropertyValue(c):o[c],(""===i||null===i)&&(i=a.style[c]),e()}if("auto"===i&&/^(top|right|bottom|left)$/i.test(c)){var p=h(a,"position");("fixed"===p||"absolute"===p&&/top|left/i.test(c))&&(i=m(a).position()[c]+"px")}return i}var i;if(v.Hooks.registered[c]){var j=c,k=v.Hooks.getRoot(j);e===d&&(e=v.getPropertyValue(a,v.Names.prefixCheck(k)[0])),v.Normalizations.registered[k]&&(e=v.Normalizations.registered[k]("extract",a,e)),i=v.Hooks.extractValue(j,e)}else if(v.Normalizations.registered[c]){var l,o;l=v.Normalizations.registered[c]("name",a),"transform"!==l&&(o=h(a,v.Names.prefixCheck(l)[0]),v.Values.isCSSNullValue(o)&&v.Hooks.templates[c]&&(o=v.Hooks.templates[c][1])),i=v.Normalizations.registered[c]("extract",a,o)}if(!/^[\d-]/.test(i))if(g(a)&&g(a).isSVG&&v.Names.SVGAttribute(c))if(/^(height|width)$/i.test(c))try{i=a.getBBox()[c]}catch(a){i=0}else i=a.getAttribute(c);else i=h(a,v.Names.prefixCheck(c)[0]);return v.Values.isCSSNullValue(i)&&(i=0),t.debug>=2&&console.log("Get "+c+": "+i),i},setPropertyValue:function(a,c,d,e,f){var h=c;if("scroll"===c)f.container?f.container["scroll"+f.direction]=d:"Left"===f.direction?b.scrollTo(d,f.alternateValue):b.scrollTo(f.alternateValue,d);else if(v.Normalizations.registered[c]&&"transform"===v.Normalizations.registered[c]("name",a))v.Normalizations.registered[c]("inject",a,d),h="transform",d=g(a).transformCache[c];else{if(v.Hooks.registered[c]){var i=c,j=v.Hooks.getRoot(c);e=e||v.getPropertyValue(a,j),d=v.Hooks.injectValue(i,d,e),c=j}if(v.Normalizations.registered[c]&&(d=v.Normalizations.registered[c]("inject",a,d),c=v.Normalizations.registered[c]("name",a)),h=v.Names.prefixCheck(c)[0],8>=n)try{a.style[h]=d}catch(a){t.debug&&console.log("Browser does not support ["+d+"] for ["+h+"]")}else g(a)&&g(a).isSVG&&v.Names.SVGAttribute(c)?a.setAttribute(c,d):a.style[h]=d;t.debug>=2&&console.log("Set "+c+" ("+h+"): "+d)}return[h,d]},flushTransformCache:function(a){function b(b){return parseFloat(v.getPropertyValue(a,b))}var c="";if((n||t.State.isAndroid&&!t.State.isChrome)&&g(a).isSVG){var d={translate:[b("translateX"),b("translateY")],skewX:[b("skewX")],skewY:[b("skewY")],scale:1!==b("scale")?[b("scale"),b("scale")]:[b("scaleX"),b("scaleY")],rotate:[b("rotateZ"),0,0]};m.each(g(a).transformCache,function(a){/^translate/i.test(a)?a="translate":/^scale/i.test(a)?a="scale":/^rotate/i.test(a)&&(a="rotate"),d[a]&&(c+=a+"("+d[a].join(" ")+") ",delete d[a])})}else{var e,f;m.each(g(a).transformCache,function(b){return e=g(a).transformCache[b],"transformPerspective"===b?(f=e,!0):(9===n&&"rotateZ"===b&&(b="rotate"),void(c+=b+e+" "))}),f&&(c="perspective"+f+" "+c)}v.setPropertyValue(a,"transform",c)}};v.Hooks.register(),v.Normalizations.register(),t.hook=function(a,b,c){var e=d;return a=f(a),m.each(a,function(a,f){if(g(f)===d&&t.init(f),c===d)e===d&&(e=t.CSS.getPropertyValue(f,b));else{var h=t.CSS.setPropertyValue(f,b,c);"transform"===h[0]&&t.CSS.flushTransformCache(f),e=h}}),e};var w=function(){function a(){return h?B.promise||null:i}function e(){function a(){function a(a,b){var c=d,e=d,g=d;return p.isArray(a)?(c=a[0],!p.isArray(a[1])&&/^[\d-]/.test(a[1])||p.isFunction(a[1])||v.RegEx.isHex.test(a[1])?g=a[1]:(p.isString(a[1])&&!v.RegEx.isHex.test(a[1])||p.isArray(a[1]))&&(e=b?a[1]:j(a[1],h.duration),a[2]!==d&&(g=a[2]))):c=a,b||(e=e||h.easing),p.isFunction(c)&&(c=c.call(f,y,x)),p.isFunction(g)&&(g=g.call(f,y,x)),[c||0,e,g]}function l(a,b){var c,d;return d=(b||"0").toString().toLowerCase().replace(/[%A-z]+$/,function(a){return c=a,""}),c||(c=v.Values.getUnitType(a)),[d,c]}function n(){var a={myParent:f.parentNode||c.body,position:v.getPropertyValue(f,"position"),fontSize:v.getPropertyValue(f,"fontSize")},d=a.position===I.lastPosition&&a.myParent===I.lastParent,e=a.fontSize===I.lastFontSize;I.lastParent=a.myParent,I.lastPosition=a.position,I.lastFontSize=a.fontSize;var h=100,i={};if(e&&d)i.emToPx=I.lastEmToPx,i.percentToPxWidth=I.lastPercentToPxWidth,i.percentToPxHeight=I.lastPercentToPxHeight;else{var j=g(f).isSVG?c.createElementNS("http://www.w3.org/2000/svg","rect"):c.createElement("div");t.init(j),a.myParent.appendChild(j),m.each(["overflow","overflowX","overflowY"],function(a,b){t.CSS.setPropertyValue(j,b,"hidden")}),t.CSS.setPropertyValue(j,"position",a.position),t.CSS.setPropertyValue(j,"fontSize",a.fontSize),t.CSS.setPropertyValue(j,"boxSizing","content-box"),m.each(["minWidth","maxWidth","width","minHeight","maxHeight","height"],function(a,b){t.CSS.setPropertyValue(j,b,h+"%")}),t.CSS.setPropertyValue(j,"paddingLeft",h+"em"),i.percentToPxWidth=I.lastPercentToPxWidth=(parseFloat(v.getPropertyValue(j,"width",null,!0))||1)/h,i.percentToPxHeight=I.lastPercentToPxHeight=(parseFloat(v.getPropertyValue(j,"height",null,!0))||1)/h,i.emToPx=I.lastEmToPx=(parseFloat(v.getPropertyValue(j,"paddingLeft"))||1)/h,a.myParent.removeChild(j)}return null===I.remToPx&&(I.remToPx=parseFloat(v.getPropertyValue(c.body,"fontSize"))||16),null===I.vwToPx&&(I.vwToPx=parseFloat(b.innerWidth)/100,I.vhToPx=parseFloat(b.innerHeight)/100),i.remToPx=I.remToPx,i.vwToPx=I.vwToPx,i.vhToPx=I.vhToPx,t.debug>=1&&console.log("Unit ratios: "+JSON.stringify(i),f),i}if(h.begin&&0===y)try{h.begin.call(o,o)}catch(a){setTimeout(function(){throw a},1)}if("scroll"===C){var r,u,w,z=/^x$/i.test(h.axis)?"Left":"Top",A=parseFloat(h.offset)||0;h.container?p.isWrapped(h.container)||p.isNode(h.container)?(h.container=h.container[0]||h.container,r=h.container["scroll"+z],w=r+m(f).position()[z.toLowerCase()]+A):h.container=null:(r=t.State.scrollAnchor[t.State["scrollProperty"+z]],u=t.State.scrollAnchor[t.State["scrollProperty"+("Left"===z?"Top":"Left")]],w=m(f).offset()[z.toLowerCase()]+A),i={scroll:{rootPropertyValue:!1,startValue:r,currentValue:r,endValue:w,unitType:"",easing:h.easing,scrollData:{container:h.container,direction:z,alternateValue:u}},element:f},t.debug&&console.log("tweensContainer (scroll): ",i.scroll,f)}else if("reverse"===C){if(!g(f).tweensContainer)return void m.dequeue(f,h.queue);"none"===g(f).opts.display&&(g(f).opts.display="auto"),"hidden"===g(f).opts.visibility&&(g(f).opts.visibility="visible"),g(f).opts.loop=!1,g(f).opts.begin=null,g(f).opts.complete=null,s.easing||delete h.easing,s.duration||delete h.duration,h=m.extend({},g(f).opts,h);var D=m.extend(!0,{},g(f).tweensContainer);for(var E in D)if("element"!==E){var F=D[E].startValue;D[E].startValue=D[E].currentValue=D[E].endValue,D[E].endValue=F,p.isEmptyObject(s)||(D[E].easing=h.easing),t.debug&&console.log("reverse tweensContainer ("+E+"): "+JSON.stringify(D[E]),f)}i=D}else if("start"===C){var D;g(f).tweensContainer&&g(f).isAnimating===!0&&(D=g(f).tweensContainer),m.each(q,function(b,c){if(RegExp("^"+v.Lists.colors.join("$|^")+"$").test(b)){var e=a(c,!0),f=e[0],g=e[1],h=e[2];if(v.RegEx.isHex.test(f)){for(var i=["Red","Green","Blue"],j=v.Values.hexToRgb(f),k=h?v.Values.hexToRgb(h):d,l=0;l<i.length;l++){var m=[j[l]];g&&m.push(g),k!==d&&m.push(k[l]),q[b+i[l]]=m}delete q[b];
}}});for(var G in q){var H=a(q[G]),K=H[0],L=H[1],M=H[2];G=v.Names.camelCase(G);var N=v.Hooks.getRoot(G),O=!1;if(g(f).isSVG||"tween"===N||v.Names.prefixCheck(N)[1]!==!1||v.Normalizations.registered[N]!==d){(h.display!==d&&null!==h.display&&"none"!==h.display||h.visibility!==d&&"hidden"!==h.visibility)&&/opacity|filter/.test(G)&&!M&&0!==K&&(M=0),h._cacheValues&&D&&D[G]?(M===d&&(M=D[G].endValue+D[G].unitType),O=g(f).rootPropertyValueCache[N]):v.Hooks.registered[G]?M===d?(O=v.getPropertyValue(f,N),M=v.getPropertyValue(f,G,O)):O=v.Hooks.templates[N][1]:M===d&&(M=v.getPropertyValue(f,G));var P,Q,R,S=!1;if(P=l(G,M),M=P[0],R=P[1],P=l(G,K),K=P[0].replace(/^([+-\/*])=/,function(a,b){return S=b,""}),Q=P[1],M=parseFloat(M)||0,K=parseFloat(K)||0,"%"===Q&&(/^(fontSize|lineHeight)$/.test(G)?(K/=100,Q="em"):/^scale/.test(G)?(K/=100,Q=""):/(Red|Green|Blue)$/i.test(G)&&(K=K/100*255,Q="")),/[\/*]/.test(S))Q=R;else if(R!==Q&&0!==M)if(0===K)Q=R;else{e=e||n();var T=/margin|padding|left|right|width|text|word|letter/i.test(G)||/X$/.test(G)||"x"===G?"x":"y";switch(R){case"%":M*="x"===T?e.percentToPxWidth:e.percentToPxHeight;break;case"px":break;default:M*=e[R+"ToPx"]}switch(Q){case"%":M*=1/("x"===T?e.percentToPxWidth:e.percentToPxHeight);break;case"px":break;default:M*=1/e[Q+"ToPx"]}}switch(S){case"+":K=M+K;break;case"-":K=M-K;break;case"*":K*=M;break;case"/":K=M/K}i[G]={rootPropertyValue:O,startValue:M,currentValue:M,endValue:K,unitType:Q,easing:L},t.debug&&console.log("tweensContainer ("+G+"): "+JSON.stringify(i[G]),f)}else t.debug&&console.log("Skipping ["+N+"] due to a lack of browser support.")}i.element=f}i.element&&(v.Values.addClass(f,"velocity-animating"),J.push(i),""===h.queue&&(g(f).tweensContainer=i,g(f).opts=h),g(f).isAnimating=!0,y===x-1?(t.State.calls.push([J,o,h,null,B.resolver]),t.State.isTicking===!1&&(t.State.isTicking=!0,k())):y++)}var e,f=this,h=m.extend({},t.defaults,s),i={};switch(g(f)===d&&t.init(f),parseFloat(h.delay)&&h.queue!==!1&&m.queue(f,h.queue,function(a){t.velocityQueueEntryFlag=!0,g(f).delayTimer={setTimeout:setTimeout(a,parseFloat(h.delay)),next:a}}),h.duration.toString().toLowerCase()){case"fast":h.duration=200;break;case"normal":h.duration=r;break;case"slow":h.duration=600;break;default:h.duration=parseFloat(h.duration)||1}t.mock!==!1&&(t.mock===!0?h.duration=h.delay=1:(h.duration*=parseFloat(t.mock)||1,h.delay*=parseFloat(t.mock)||1)),h.easing=j(h.easing,h.duration),h.begin&&!p.isFunction(h.begin)&&(h.begin=null),h.progress&&!p.isFunction(h.progress)&&(h.progress=null),h.complete&&!p.isFunction(h.complete)&&(h.complete=null),h.display!==d&&null!==h.display&&(h.display=h.display.toString().toLowerCase(),"auto"===h.display&&(h.display=t.CSS.Values.getDisplayType(f))),h.visibility!==d&&null!==h.visibility&&(h.visibility=h.visibility.toString().toLowerCase()),h.mobileHA=h.mobileHA&&t.State.isMobile&&!t.State.isGingerbread,h.queue===!1?h.delay?setTimeout(a,h.delay):a():m.queue(f,h.queue,function(b,c){return c===!0?(B.promise&&B.resolver(o),!0):(t.velocityQueueEntryFlag=!0,void a(b))}),""!==h.queue&&"fx"!==h.queue||"inprogress"===m.queue(f)[0]||m.dequeue(f)}var h,i,n,o,q,s,u=arguments[0]&&(arguments[0].p||m.isPlainObject(arguments[0].properties)&&!arguments[0].properties.names||p.isString(arguments[0].properties));if(p.isWrapped(this)?(h=!1,n=0,o=this,i=this):(h=!0,n=1,o=u?arguments[0].elements||arguments[0].e:arguments[0]),o=f(o)){u?(q=arguments[0].properties||arguments[0].p,s=arguments[0].options||arguments[0].o):(q=arguments[n],s=arguments[n+1]);var x=o.length,y=0;if(!/^(stop|finish|finishAll)$/i.test(q)&&!m.isPlainObject(s)){var z=n+1;s={};for(var A=z;A<arguments.length;A++)p.isArray(arguments[A])||!/^(fast|normal|slow)$/i.test(arguments[A])&&!/^\d/.test(arguments[A])?p.isString(arguments[A])||p.isArray(arguments[A])?s.easing=arguments[A]:p.isFunction(arguments[A])&&(s.complete=arguments[A]):s.duration=arguments[A]}var B={promise:null,resolver:null,rejecter:null};h&&t.Promise&&(B.promise=new t.Promise(function(a,b){B.resolver=a,B.rejecter=b}));var C;switch(q){case"scroll":C="scroll";break;case"reverse":C="reverse";break;case"finish":case"finishAll":case"stop":m.each(o,function(a,b){g(b)&&g(b).delayTimer&&(clearTimeout(g(b).delayTimer.setTimeout),g(b).delayTimer.next&&g(b).delayTimer.next(),delete g(b).delayTimer),"finishAll"!==q||s!==!0&&!p.isString(s)||(m.each(m.queue(b,p.isString(s)?s:""),function(a,b){p.isFunction(b)&&b()}),m.queue(b,p.isString(s)?s:"",[]))});var D=[];return m.each(t.State.calls,function(a,b){b&&m.each(b[1],function(c,e){var f=s===d?"":s;return f!==!0&&b[2].queue!==f&&(s!==d||b[2].queue!==!1)||void m.each(o,function(c,d){d===e&&((s===!0||p.isString(s))&&(m.each(m.queue(d,p.isString(s)?s:""),function(a,b){p.isFunction(b)&&b(null,!0)}),m.queue(d,p.isString(s)?s:"",[])),"stop"===q?(g(d)&&g(d).tweensContainer&&f!==!1&&m.each(g(d).tweensContainer,function(a,b){b.endValue=b.currentValue}),D.push(a)):("finish"===q||"finishAll"===q)&&(b[2].duration=1))})})}),"stop"===q&&(m.each(D,function(a,b){l(b,!0)}),B.promise&&B.resolver(o)),a();default:if(!m.isPlainObject(q)||p.isEmptyObject(q)){if(p.isString(q)&&t.Redirects[q]){var E=m.extend({},s),F=E.duration,G=E.delay||0;return E.backwards===!0&&(o=m.extend(!0,[],o).reverse()),m.each(o,function(a,b){parseFloat(E.stagger)?E.delay=G+parseFloat(E.stagger)*a:p.isFunction(E.stagger)&&(E.delay=G+E.stagger.call(b,a,x)),E.drag&&(E.duration=parseFloat(F)||(/^(callout|transition)/.test(q)?1e3:r),E.duration=Math.max(E.duration*(E.backwards?1-a/x:(a+1)/x),.75*E.duration,200)),t.Redirects[q].call(b,b,E||{},a,x,o,B.promise?B:d)}),a()}var H="Velocity: First argument ("+q+") was not a property map, a known action, or a registered redirect. Aborting.";return B.promise?B.rejecter(new Error(H)):console.log(H),a()}C="start"}var I={lastParent:null,lastPosition:null,lastFontSize:null,lastPercentToPxWidth:null,lastPercentToPxHeight:null,lastEmToPx:null,remToPx:null,vwToPx:null,vhToPx:null},J=[];m.each(o,function(a,b){p.isNode(b)&&e.call(b)});var K,E=m.extend({},t.defaults,s);if(E.loop=parseInt(E.loop),K=2*E.loop-1,E.loop)for(var L=0;K>L;L++){var M={delay:E.delay,progress:E.progress};L===K-1&&(M.display=E.display,M.visibility=E.visibility,M.complete=E.complete),w(o,"reverse",M)}return a()}};t=m.extend(w,t),t.animate=w;var x=b.requestAnimationFrame||o;return t.State.isMobile||c.hidden===d||c.addEventListener("visibilitychange",function(){c.hidden?(x=function(a){return setTimeout(function(){a(!0)},16)},k()):x=b.requestAnimationFrame||o}),a.Velocity=t,a!==b&&(a.fn.velocity=w,a.fn.velocity.defaults=t.defaults),m.each(["Down","Up"],function(a,b){t.Redirects["slide"+b]=function(a,c,e,f,g,h){var i=m.extend({},c),j=i.begin,k=i.complete,l={height:"",marginTop:"",marginBottom:"",paddingTop:"",paddingBottom:""},n={};i.display===d&&(i.display="Down"===b?"inline"===t.CSS.Values.getDisplayType(a)?"inline-block":"block":"none"),i.begin=function(){j&&j.call(g,g);for(var c in l){n[c]=a.style[c];var d=t.CSS.getPropertyValue(a,c);l[c]="Down"===b?[d,0]:[0,d]}n.overflow=a.style.overflow,a.style.overflow="hidden"},i.complete=function(){for(var b in n)a.style[b]=n[b];k&&k.call(g,g),h&&h.resolver(g)},t(a,l,i)}}),m.each(["In","Out"],function(a,b){t.Redirects["fade"+b]=function(a,c,e,f,g,h){var i=m.extend({},c),j={opacity:"In"===b?1:0},k=i.complete;i.complete=e!==f-1?i.begin=null:function(){k&&k.call(g,g),h&&h.resolver(g)},i.display===d&&(i.display="In"===b?"auto":"none"),t(this,j,i)}}),t}(window.jQuery||window.Zepto||window,window,document)}),function(a,b){a.support.borderRadius=!1,a.support.transition=!1,a(function(){a.each(["borderRadius","BorderRadius","MozBorderRadius","WebkitBorderRadius","OBorderRadius","KhtmlBorderRadius"],function(b,c){return void 0!==document.body.style[c]&&(a.support.borderRadius=!0),!a.support.borderRadius});var b=a("<div>");a.support.transition="string"==typeof b.css("transitionProperty")}),a.extend({ripple:{$textSpan:a('<span class="text-wrap">').css({position:"relative","z-index":2}),$rippleWrap:a("<span>",{class:"rippleWrap"}).css({position:"absolute","z-index":1,left:0,top:0,overflow:"hidden"}).append(a("<span>",{class:"rippleAnimate"}).css({position:"absolute",left:0,top:0,width:0,height:0,"border-radius":"50%"})),is:function(){return a.support.borderRadius&&a.support.transition},core:function(a,c){this.$target=a,this._v_duration=400,this._h_duration=400,this._timer=null,c!==b&&Object.prototype.hasOwnProperty.call(c,"v_duration")&&this.set_view_duration(c.v_duration),c!==b&&Object.prototype.hasOwnProperty.call(c,"h_duration")&&this.set_hide_duration(c.h_duration),this.init()}}}),a.ripple.core.prototype={set_view_duration:function(a){this._v_duration=a},set_hide_duration:function(a){this._h_duration=a},init:function(){var b=this;"static"===this.$target.css("position")&&this.$target.css("position","relative"),this.$target.css("-webkit-tap-highlight-color","rgba( 0, 0, 0, 0 )"),this.$target.hasClass("rollover")||this.$target.hasClass("rollover-video")||this.$target.hasClass("post-rollover")||this.$target.hasClass("benefits-grid-ico")||this.$target.wrapInner(a.ripple.$textSpan),this.$target.append(a.ripple.$rippleWrap.clone()),this.$rippleWrap=this.$target.find(".rippleWrap"),this.$rippleAnimate=this.$target.find(".rippleAnimate"),this.$rippleWrap.css("border-radius",this.$target.css("border-radius")),this.$target.find(".rippleAnimate").css("background-color",this.$target.attr("data-color")),"ontouchstart"in window?(this.$target.bind("touchstart.ripple",function(a){b.view(a.originalEvent.touches[0])}),this.$target.bind("touchend.ripple",function(a){b.hidden(a.originalEvent.touches[0])}),this.$target.bind("mouseleave.ripple",function(a){b.hidden(a)})):(this.$target.bind("mousedown.ripple",function(a){b.view(a)}),this.$target.bind("mouseup.ripple mouseleave.ripple",function(a){b.hidden(a)}))},remove:function(){},view:function(a){clearTimeout(this._timer);var b=this.$target.outerWidth(),c=this.$target.outerHeight();this.$rippleWrap.stop(!0,!1).width(b).height(c).css({opacity:1,transition:"none"});var d=2.8,e=Math.max(b,c),f=a.pageX-this.$target.offset().left,g=a.pageY-this.$target.offset().top;this.$rippleAnimate.css({width:e,height:e,transform:"scale3d( 0, 0, 1 )",left:f-e/2,top:g-e/2,transition:"none"});var h={};h.transform="scale3d( "+d+", "+d+", 1 )",h.transition=this._v_duration/1e3+"s ease-out",this.$rippleAnimate.show().css(h)},hidden:function(a){var b=this;this.$rippleWrap.stop(!0,!1).css({opacity:0,transition:"opacity "+this._h_duration/1e3+"s ease-out"}),clearTimeout(this._timer),this._timer=setTimeout(function(){b.$rippleWrap.css({opacity:1,transition:"none"}),b.$rippleAnimate.css({transform:"scale3d( 0, 0, 1 )",transition:"none"})},this._v_duration)}},a.fn.extend({ripple:function(b){return a.ripple.is()?(a(this).each(function(){new a.ripple.core(a(this),b)}),a(this)):a(this)}})}(jQuery),function(a){function b(a){return null!==a&&a===a.window}function c(a){return b(a)?a:9===a.nodeType&&a.defaultView}function d(a){var b,d,e={top:0,left:0},f=a&&a.ownerDocument;return b=f.documentElement,"undefined"!=typeof a.getBoundingClientRect&&(e=a.getBoundingClientRect()),d=c(f),{top:e.top+d.pageYOffset-b.clientTop,left:e.left+d.pageXOffset-b.clientLeft}}function e(a){var b="";for(var c in a)a.hasOwnProperty(c)&&(b+=c+":"+a[c]+";");return b}function f(a){if(k.allowEvent(a)===!1)return null;for(var b=null,c=a.target||a.srcElement;null!==c.parentElement;){if(!(c instanceof SVGElement||c.className.indexOf("waves-effect")===-1)){b=c;break}if(c.classList.contains("waves-effect")){b=c;break}c=c.parentElement}return b}function g(b){var c=f(b);null!==c&&(j.show(b,c),"ontouchstart"in a&&(c.addEventListener("touchend",j.hide,!1),c.addEventListener("touchcancel",j.hide,!1)),c.addEventListener("mouseup",j.hide,!1),c.addEventListener("mouseleave",j.hide,!1))}if(!jQuery("html").hasClass("old-ie")){var h=h||{},i=document.querySelectorAll.bind(document),j={duration:300,show:function(a,b){if(2===a.button)return!1;var c=b||this,f=document.createElement("div");f.className="waves-ripple",c.appendChild(f);var g=d(c),h=a.pageY-g.top,i=a.pageX-g.left,k="scale(1)";"touches"in a&&(h=a.touches[0].pageY-g.top,i=a.touches[0].pageX-g.left),f.setAttribute("data-hold",Date.now()),f.setAttribute("data-scale",k),f.setAttribute("data-x",i),f.setAttribute("data-y",h);var l={top:h+"px",left:i+"px"};f.className=f.className+" waves-notransition",f.setAttribute("style",e(l)),f.className=f.className.replace("waves-notransition",""),l["-webkit-transform"]=k,l["-moz-transform"]=k,l["-ms-transform"]=k,l["-o-transform"]=k,l.transform=k,l.opacity="1",l["-webkit-transition-duration"]=j.duration+"ms",l["-moz-transition-duration"]=j.duration+"ms",l["-o-transition-duration"]=j.duration+"ms",l["transition-duration"]=j.duration+"ms",f.setAttribute("style",e(l))},hide:function(a){k.touchup(a);var b=this,c=(1.4*b.clientWidth,null),d=b.getElementsByClassName("waves-ripple");if(!(d.length>0))return!1;c=d[d.length-1];var f=c.getAttribute("data-x"),g=c.getAttribute("data-y"),h=c.getAttribute("data-scale"),i=Date.now()-Number(c.getAttribute("data-hold")),l=350-i;l<0&&(l=0),setTimeout(function(){var a={top:g+"px",left:f+"px",opacity:"0","-webkit-transition-duration":j.duration+"ms","-moz-transition-duration":j.duration+"ms","-o-transition-duration":j.duration+"ms","transition-duration":j.duration+"ms","-webkit-transform":h,"-moz-transform":h,"-ms-transform":h,"-o-transform":h,transform:h};c.setAttribute("style",e(a)),setTimeout(function(){try{b.removeChild(c)}catch(a){return!1}},j.duration)},l)},wrapInput:function(a){for(var b=0;b<a.length;b++){var c=a[b];if("input"===c.tagName.toLowerCase()){var d=c.parentNode;if("i"===d.tagName.toLowerCase()&&d.className.indexOf("waves-effect")!==-1)continue;var e=document.createElement("i");e.className=c.className+" waves-input-wrapper";var f=c.getAttribute("style");f||(f=""),e.setAttribute("style",f),c.className="waves-button-input",c.removeAttribute("style"),d.replaceChild(e,c),e.appendChild(c)}}}},k={touches:0,allowEvent:function(a){var b=!0;return"touchstart"===a.type?k.touches+=1:"touchend"===a.type||"touchcancel"===a.type?setTimeout(function(){k.touches>0&&(k.touches-=1)},500):"mousedown"===a.type&&k.touches>0&&(b=!1),b},touchup:function(a){k.allowEvent(a)}};h.displayEffect=function(b){b=b||{},"duration"in b&&(j.duration=b.duration),j.wrapInput(i(".waves-effect")),"ontouchstart"in a&&document.body.addEventListener("touchstart",g,!1),document.body.addEventListener("mousedown",g,!1)},h.attach=function(b){"input"===b.tagName.toLowerCase()&&(j.wrapInput([b]),b=b.parentElement),"ontouchstart"in a&&b.addEventListener("touchstart",g,!1),b.addEventListener("mousedown",g,!1)},a.Waves=h}}(window),function(){for(var a=0,b=["ms","moz","webkit","o"],c=0;c<b.length&&!window.requestAnimationFrame;++c)window.requestAnimationFrame=window[b[c]+"RequestAnimationFrame"],window.cancelAnimationFrame=window[b[c]+"CancelAnimationFrame"]||window[b[c]+"CancelRequestAnimationFrame"];window.requestAnimationFrame||(window.requestAnimationFrame=function(b,c){var d=(new Date).getTime(),e=Math.max(0,16-(d-a)),f=window.setTimeout(function(){b(d+e)},e);return a=d+e,f}),window.cancelAnimationFrame||(window.cancelAnimationFrame=function(a){clearTimeout(a)})}(),Layzr.prototype._requestScroll=function(){this._optionsContainer===window?this._lastScroll=window.pageYOffset:this._lastScroll=this._optionsContainer.scrollTop+this._getOffset(this._optionsContainer),this._requestTick()},Layzr.prototype._requestTick=function(){this._ticking||(requestAnimationFrame(this.update.bind(this)),this._ticking=!0)},Layzr.prototype._getOffset=function(a){if(a.hasAttribute("data-src"))var b=a.getAttribute("data-src"),c=b.substring(b.lastIndexOf(".")+1);return"png"==c&&a.parentNode.classList.add("layzr-bg-transparent"),a.getBoundingClientRect().top+window.pageYOffset},Layzr.prototype._getContainerHeight=function(){return this._optionsContainer.innerHeight||this._optionsContainer.offsetHeight},Layzr.prototype._create=function(){this._handlerBind(),this._optionsContainer.addEventListener("scroll",this._handlerBind,!1),this._optionsContainer.addEventListener("resize",this._handlerBind,!1)},Layzr.prototype._destroy=function(){this._optionsContainer.removeEventListener("scroll",this._handlerBind,!1),this._optionsContainer.removeEventListener("resize",this._handlerBind,!1)},Layzr.prototype._inViewport=function(a){var b=this._lastScroll,c=b+this._getContainerHeight(),d=this._getOffset(a),e=d+this._getContainerHeight(),f=this._optionsThreshold/100*window.innerHeight;return e>=b-f&&d<=c+f&&!a.hasAttribute(this._optionsAttrHidden)},Layzr.prototype.inView=function(a){var b=window;obj=this;var c=dtGlobals.winScrollTop,d=this._optionsThreshold/100*window.innerHeight,e=dtGlobals.winScrollTop+b.innerHeight,f=this._getOffset(a)+d;return e>=f&&c<=f},Layzr.prototype._reveal=function(a){var b=a.getAttribute(this._srcAttr)||a.getAttribute(this._optionsAttr),c=this;if("function"==typeof this._optionsCallback){a.addEventListener?a.addEventListener("load",function(){c._optionsCallback.call(a)}):a.attachEvent("onload",function(){c._optionsCallback.call(a)})}"function"==typeof this._optionsBefore&&this._optionsBefore.call(a),a.hasAttribute(this._optionsAttrBg)?a.style.backgroundImage="url("+b+")":(b&&a.setAttribute("src",b),a.hasAttribute(this._optionsAttrSrcSet)&&a.setAttribute("srcset",a.getAttribute(this._optionsAttrSrcSet))),"function"==typeof this._optionsAfter&&this._optionsAfter.call(a),a.removeAttribute(this._optionsAttr),a.removeAttribute(this._optionsAttrSrcSet),a.removeAttribute(this._optionsAttrRetina),a.removeAttribute(this._optionsAttrBg),a.removeAttribute(this._optionsAttrHidden)},Layzr.prototype.updateSelector=function(){this._nodes=document.querySelectorAll(this._optionsSelector)},Layzr.prototype.update=function(){for(var a=this._nodes.length,b=0;b<a;b++){var c=this._nodes[b];(c.hasAttribute(this._optionsAttr)||c.hasAttribute(this._optionsAttrSrcSet)||c.hasAttribute(this._optionsAttrRetina))&&this._inViewport(c)&&this._reveal(c)}this._ticking=!1},function(a){"function"==typeof define&&define.amd?define(["jquery"],a):a("object"==typeof exports?require("jquery"):window.jQuery||window.Zepto)}(function(a){var b,c,d,e,f,g,h="Close",i="BeforeClose",j="AfterClose",k="BeforeAppend",l="MarkupParse",m="Open",n="Change",o="mfp",p="."+o,q="mfp-ready",r="mfp-removing",s="mfp-prevent-close",t=function(){},u=!!window.jQuery,v=a(window),w=function(a,c){b.ev.on(o+a+p,c)},x=function(b,c,d,e){var f=document.createElement("div");return f.className="mfp-"+b,d&&(f.innerHTML=d),e?c&&c.appendChild(f):(f=a(f),c&&f.appendTo(c)),f},y=function(c,d){b.ev.triggerHandler(o+c,d),b.st.callbacks&&(c=c.charAt(0).toLowerCase()+c.slice(1),b.st.callbacks[c]&&b.st.callbacks[c].apply(b,a.isArray(d)?d:[d]))},z=function(c){return c===g&&b.currTemplate.closeBtn||(b.currTemplate.closeBtn=a(b.st.closeMarkup.replace("%title%",b.st.tClose)),g=c),b.currTemplate.closeBtn},A=function(){a.magnificPopup.instance||(b=new t,b.init(),a.magnificPopup.instance=b)},B=function(){var a=document.createElement("p").style,b=["ms","O","Moz","Webkit"];if(void 0!==a.transition)return!0;for(;b.length;)if(b.pop()+"Transition"in a)return!0;return!1};t.prototype={constructor:t,init:function(){var c=navigator.appVersion;b.isLowIE=b.isIE8=document.all&&!document.addEventListener,b.isAndroid=/android/gi.test(c),b.isIOS=/iphone|ipad|ipod/gi.test(c),b.supportsTransition=B(),b.probablyMobile=b.isAndroid||b.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent),d=a(document),b.popupsCache={}},open:function(c){var e;if(c.isObj===!1){b.items=c.items.toArray(),b.index=0;var g,h=c.items;for(e=0;e<h.length;e++)if(g=h[e],g.parsed&&(g=g.el[0]),g===c.el[0]){b.index=e;break}}else b.items=a.isArray(c.items)?c.items:[c.items],b.index=c.index||0;if(b.isOpen)return void b.updateItemHTML();b.types=[],f="",c.mainEl&&c.mainEl.length?b.ev=c.mainEl.eq(0):b.ev=d,c.key?(b.popupsCache[c.key]||(b.popupsCache[c.key]={}),b.currTemplate=b.popupsCache[c.key]):b.currTemplate={},b.st=a.extend(!0,{},a.magnificPopup.defaults,c),b.fixedContentPos="auto"===b.st.fixedContentPos?!b.probablyMobile:b.st.fixedContentPos,b.st.modal&&(b.st.closeOnContentClick=!1,b.st.closeOnBgClick=!1,b.st.showCloseBtn=!1,b.st.enableEscapeKey=!1),b.bgOverlay||(b.bgOverlay=x("bg").on("click"+p,function(){b.close()}),b.wrap=x("wrap").attr("tabindex",-1).on("click"+p,function(a){b._checkIfClose(a.target)&&b.close()}),b.container=x("container",b.wrap)),b.contentContainer=x("content"),b.st.preloader&&(b.preloader=x("preloader",b.container,b.st.tLoading));var i=a.magnificPopup.modules;for(e=0;e<i.length;e++){var j=i[e];j=j.charAt(0).toUpperCase()+j.slice(1),b["init"+j].call(b)}y("BeforeOpen"),b.st.showCloseBtn&&(b.st.closeBtnInside?(w(l,function(a,b,c,d){c.close_replaceWith=z(d.type)}),f+=" mfp-close-btn-in"):b.wrap.append(z())),b.st.alignTop&&(f+=" mfp-align-top"),b.fixedContentPos?b.wrap.css({overflow:b.st.overflowY,overflowX:"hidden",overflowY:b.st.overflowY}):b.wrap.css({top:v.scrollTop(),position:"absolute"}),(b.st.fixedBgPos===!1||"auto"===b.st.fixedBgPos&&!b.fixedContentPos)&&b.bgOverlay.css({height:d.height(),position:"absolute"}),b.st.enableEscapeKey&&d.on("keyup"+p,function(a){27===a.keyCode&&b.close()}),v.on("resize"+p,function(){b.updateSize()}),b.st.closeOnContentClick||(f+=" mfp-auto-cursor"),f&&b.wrap.addClass(f);var k=b.wH=v.height(),n={};if(b.fixedContentPos&&b._hasScrollBar(k)){var o=b._getScrollbarSize();o&&(n.marginRight=o)}b.fixedContentPos&&(b.isIE7?a("body, html").css("overflow","hidden"):n.overflow="hidden");var r=b.st.mainClass;return b.isIE7&&(r+=" mfp-ie7"),r&&b._addClassToMFP(r),b.updateItemHTML(),y("BuildControls"),a("html").css(n),b.bgOverlay.add(b.wrap).prependTo(b.st.prependTo||a(document.body)),b._lastFocusedEl=document.activeElement,setTimeout(function(){b.content?(b._addClassToMFP(q),b._setFocus()):b.bgOverlay.addClass(q),d.on("focusin"+p,b._onFocusIn)},16),b.isOpen=!0,b.updateSize(k),y(m),c},close:function(){b.isOpen&&(y(i),b.isOpen=!1,b.st.removalDelay&&!b.isLowIE&&b.supportsTransition?(b._addClassToMFP(r),setTimeout(function(){b._close()},b.st.removalDelay)):b._close())},_close:function(){y(h);var c=r+" "+q+" ";if(b.bgOverlay.detach(),b.wrap.detach(),b.container.empty(),b.st.mainClass&&(c+=b.st.mainClass+" "),b._removeClassFromMFP(c),b.fixedContentPos){var e={marginRight:""};b.isIE7?a("body, html").css("overflow",""):e.overflow="",a("html").css(e)}d.off("keyup"+p+" focusin"+p),b.ev.off(p),b.wrap.attr("class","mfp-wrap").removeAttr("style"),b.bgOverlay.attr("class","mfp-bg"),b.container.attr("class","mfp-container"),!b.st.showCloseBtn||b.st.closeBtnInside&&b.currTemplate[b.currItem.type]!==!0||b.currTemplate.closeBtn&&b.currTemplate.closeBtn.detach(),b.st.autoFocusLast&&b._lastFocusedEl&&a(b._lastFocusedEl).focus(),b.currItem=null,b.content=null,b.currTemplate=null,b.prevHeight=0,y(j)},updateSize:function(a){if(b.isIOS){var c=document.documentElement.clientWidth/window.innerWidth,d=window.innerHeight*c;b.wrap.css("height",d),b.wH=d}else b.wH=a||v.height();b.fixedContentPos||b.wrap.css("height",b.wH),y("Resize")},updateItemHTML:function(){var c=b.items[b.index];b.contentContainer.detach(),b.content&&b.content.detach(),c.parsed||(c=b.parseEl(b.index));var d=c.type;if(y("BeforeChange",[b.currItem?b.currItem.type:"",d]),b.currItem=c,!b.currTemplate[d]){var f=!!b.st[d]&&b.st[d].markup;y("FirstMarkupParse",f),f?b.currTemplate[d]=a(f):b.currTemplate[d]=!0}e&&e!==c.type&&b.container.removeClass("mfp-"+e+"-holder");var g=b["get"+d.charAt(0).toUpperCase()+d.slice(1)](c,b.currTemplate[d]);b.appendContent(g,d),c.preloaded=!0,y(n,c),e=c.type,b.container.prepend(b.contentContainer),y("AfterChange")},appendContent:function(a,c){b.content=a,a?b.st.showCloseBtn&&b.st.closeBtnInside&&b.currTemplate[c]===!0?b.content.find(".mfp-close").length||b.content.append(z()):b.content=a:b.content="",y(k),b.container.addClass("mfp-"+c+"-holder"),b.contentContainer.append(b.content)},parseEl:function(c){var d,e=b.items[c];if(e.tagName?e={el:a(e)}:(d=e.type,e={data:e,src:e.src}),e.el){for(var f=b.types,g=0;g<f.length;g++)if(e.el.hasClass("mfp-"+f[g])){d=f[g];break}e.src=e.el.attr("data-mfp-src"),e.src||(e.src=e.el.attr("href"))}return e.type=d||b.st.type||"inline",e.index=c,e.parsed=!0,b.items[c]=e,y("ElementParse",e),b.items[c]},addGroup:function(a,c){var d=function(d){d.mfpEl=this,b._openClick(d,a,c)};c||(c={});var e="click.magnificPopup";c.mainEl=a,c.items?(c.isObj=!0,a.off(e).on(e,d)):(c.isObj=!1,c.delegate?a.off(e).on(e,c.delegate,d):(c.items=a,a.off(e).on(e,d)))},_openClick:function(c,d,e){var f=void 0!==e.midClick?e.midClick:a.magnificPopup.defaults.midClick;if(f||!(2===c.which||c.ctrlKey||c.metaKey||c.altKey||c.shiftKey)){var g=void 0!==e.disableOn?e.disableOn:a.magnificPopup.defaults.disableOn;if(g)if(a.isFunction(g)){if(!g.call(b))return!0}else if(v.width()<g)return!0;c.type&&(c.preventDefault(),b.isOpen&&c.stopPropagation()),e.el=a(c.mfpEl),e.delegate&&(e.items=d.find(e.delegate)),b.open(e)}},updateStatus:function(a,d){if(b.preloader){c!==a&&b.container.removeClass("mfp-s-"+c),d||"loading"!==a||(d=b.st.tLoading);var e={status:a,text:d};y("UpdateStatus",e),a=e.status,d=e.text,b.preloader.html(d),b.preloader.find("a").on("click",function(a){a.stopImmediatePropagation()}),b.container.addClass("mfp-s-"+a),c=a}},_checkIfClose:function(c){if(!a(c).hasClass(s)){var d=b.st.closeOnContentClick,e=b.st.closeOnBgClick;if(d&&e)return!0;if(!b.content||a(c).hasClass("mfp-close")||b.preloader&&c===b.preloader[0])return!0;if(c===b.content[0]||a.contains(b.content[0],c)){if(d)return!0}else if(e&&a.contains(document,c))return!0;return!1}},_addClassToMFP:function(a){b.bgOverlay.addClass(a),b.wrap.addClass(a)},_removeClassFromMFP:function(a){this.bgOverlay.removeClass(a),b.wrap.removeClass(a)},_hasScrollBar:function(a){return(b.isIE7?d.height():document.body.scrollHeight)>(a||v.height())},_setFocus:function(){(b.st.focus?b.content.find(b.st.focus).eq(0):b.wrap).focus()},_onFocusIn:function(c){if(c.target!==b.wrap[0]&&!a.contains(b.wrap[0],c.target))return b._setFocus(),!1},_parseMarkup:function(b,c,d){var e;d.data&&(c=a.extend(d.data,c)),y(l,[b,c,d]),a.each(c,function(c,d){if(void 0===d||d===!1)return!0;if(e=c.split("_"),e.length>1){var f=b.find(p+"-"+e[0]);if(f.length>0){var g=e[1];"replaceWith"===g?f[0]!==d[0]&&f.replaceWith(d):"img"===g?f.is("img")?f.attr("src",d):f.replaceWith(a("<img>").attr("src",d).attr("class",f.attr("class"))):f.attr(e[1],d)}}else b.find(p+"-"+c).html(d)})},_getScrollbarSize:function(){if(void 0===b.scrollbarSize){var a=document.createElement("div");a.style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;",document.body.appendChild(a),b.scrollbarSize=a.offsetWidth-a.clientWidth,document.body.removeChild(a)}return b.scrollbarSize}},a.magnificPopup={instance:null,proto:t.prototype,modules:[],open:function(b,c){return A(),b=b?a.extend(!0,{},b):{},b.isObj=!0,b.index=c||0,this.instance.open(b)},close:function(){return a.magnificPopup.instance&&a.magnificPopup.instance.close()},registerModule:function(b,c){c.options&&(a.magnificPopup.defaults[b]=c.options),a.extend(this.proto,c.proto),this.modules.push(b)},defaults:{disableOn:0,key:null,midClick:!1,mainClass:"",preloader:!0,focus:"",closeOnContentClick:!1,closeOnBgClick:!0,closeBtnInside:!0,showCloseBtn:!0,enableEscapeKey:!0,modal:!1,alignTop:!1,removalDelay:0,prependTo:null,fixedContentPos:"auto",fixedBgPos:"auto",overflowY:"auto",closeMarkup:'<button title="%title%" type="button" class="mfp-close">&#215;</button>',tClose:"Close (Esc)",tLoading:"Loading...",autoFocusLast:!0}},a.fn.magnificPopup=function(c){A();var d=a(this);if("string"==typeof c)if("open"===c){var e,f=u?d.data("magnificPopup"):d[0].magnificPopup,g=parseInt(arguments[1],10)||0;f.items?e=f.items[g]:(e=d,f.delegate&&(e=e.find(f.delegate)),e=e.eq(g)),b._openClick({mfpEl:e},d,f)}else b.isOpen&&b[c].apply(b,Array.prototype.slice.call(arguments,1));else c=a.extend(!0,{},c),u?d.data("magnificPopup",c):d[0].magnificPopup=c,b.addGroup(d,c);return d};var C,D,E,F="inline",G=function(){E&&(D.after(E.addClass(C)).detach(),E=null)};a.magnificPopup.registerModule(F,{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){b.types.push(F),w(h+"."+F,function(){G()})},getInline:function(c,d){if(G(),c.src){var e=b.st.inline,f=a(c.src);if(f.length){var g=f[0].parentNode;g&&g.tagName&&(D||(C=e.hiddenClass,D=x(C),C="mfp-"+C),E=f.after(D).detach().removeClass(C)),b.updateStatus("ready")}else b.updateStatus("error",e.tNotFound),f=a("<div>");return c.inlineElement=f,f}return b.updateStatus("ready"),b._parseMarkup(d,{},c),d}}});var H,I="ajax",J=function(){H&&a(document.body).removeClass(H)},K=function(){J(),b.req&&b.req.abort()};a.magnificPopup.registerModule(I,{options:{settings:null,cursor:"mfp-ajax-cur",tError:'<a href="%url%">The content</a> could not be loaded.'},proto:{initAjax:function(){b.types.push(I),H=b.st.ajax.cursor,w(h+"."+I,K),w("BeforeChange."+I,K)},getAjax:function(c){H&&a(document.body).addClass(H),b.updateStatus("loading");var d=a.extend({url:c.src,success:function(d,e,f){var g={data:d,xhr:f};y("ParseAjax",g),b.appendContent(a(g.data),I),c.finished=!0,J(),b._setFocus(),setTimeout(function(){b.wrap.addClass(q)},16),b.updateStatus("ready"),y("AjaxContentAdded")},error:function(){J(),c.finished=c.loadError=!0,b.updateStatus("error",b.st.ajax.tError.replace("%url%",c.src))}},b.st.ajax.settings);return b.req=a.ajax(d),""}}});var L,M=function(c){if(c.data&&void 0!==c.data.title)return c.data.title;var d=b.st.image.titleSrc;if(d){if(a.isFunction(d))return d.call(b,c);if(c.el)return c.el.attr(d)||""}return""};a.magnificPopup.registerModule("image",{options:{markup:'<div class="mfp-figure"><div class="mfp-close"></div><figure><div class="mfp-img"></div><figcaption><div class="mfp-bottom-bar"><div class="mfp-title"></div><div class="mfp-counter"></div></div></figcaption></figure></div>',cursor:"mfp-zoom-out-cur",titleSrc:"title",verticalFit:!0,tError:'<a href="%url%">The image</a> could not be loaded.'},proto:{initImage:function(){var c=b.st.image,d=".image";b.types.push("image"),w(m+d,function(){"image"===b.currItem.type&&c.cursor&&a(document.body).addClass(c.cursor)}),w(h+d,function(){c.cursor&&a(document.body).removeClass(c.cursor),v.off("resize"+p)}),w("Resize"+d,b.resizeImage),b.isLowIE&&w("AfterChange",b.resizeImage)},resizeImage:function(){var a=b.currItem;if(a&&a.img&&b.st.image.verticalFit){var c=0;b.isLowIE&&(c=parseInt(a.img.css("padding-top"),10)+parseInt(a.img.css("padding-bottom"),10)),a.img.css("max-height",b.wH-c)}},_onImageHasSize:function(a){a.img&&(a.hasSize=!0,L&&clearInterval(L),a.isCheckingImgSize=!1,y("ImageHasSize",a),a.imgHidden&&(b.content&&b.content.removeClass("mfp-loading"),a.imgHidden=!1))},findImageSize:function(a){var c=0,d=a.img[0],e=function(f){L&&clearInterval(L),L=setInterval(function(){return d.naturalWidth>0?void b._onImageHasSize(a):(c>200&&clearInterval(L),c++,void(3===c?e(10):40===c?e(50):100===c&&e(500)))},f)};e(1)},getImage:function(c,d){var e=0,f=function(){c&&(c.img[0].complete?(c.img.off(".mfploader"),c===b.currItem&&(b._onImageHasSize(c),b.updateStatus("ready")),c.hasSize=!0,c.loaded=!0,y("ImageLoadComplete")):(e++,e<200?setTimeout(f,100):g()))},g=function(){c&&(c.img.off(".mfploader"),c===b.currItem&&(b._onImageHasSize(c),b.updateStatus("error",h.tError.replace("%url%",c.src))),c.hasSize=!0,c.loaded=!0,c.loadError=!0)},h=b.st.image,i=d.find(".mfp-img");if(i.length){var j=document.createElement("img");j.className="mfp-img",c.el&&c.el.find("img").length&&(j.alt=c.el.find("img").attr("alt")),c.img=a(j).on("load.mfploader",f).on("error.mfploader",g),j.src=c.src,i.is("img")&&(c.img=c.img.clone()),j=c.img[0],j.naturalWidth>0?c.hasSize=!0:j.width||(c.hasSize=!1)}return b._parseMarkup(d,{title:M(c),img_replaceWith:c.img},c),b.resizeImage(),c.hasSize?(L&&clearInterval(L),
c.loadError?(d.addClass("mfp-loading"),b.updateStatus("error",h.tError.replace("%url%",c.src))):(d.removeClass("mfp-loading"),b.updateStatus("ready")),d):(b.updateStatus("loading"),c.loading=!0,c.hasSize||(c.imgHidden=!0,d.addClass("mfp-loading"),b.findImageSize(c)),d)}}});var N,O=function(){return void 0===N&&(N=void 0!==document.createElement("p").style.MozTransform),N};a.magnificPopup.registerModule("zoom",{options:{enabled:!1,easing:"ease-in-out",duration:300,opener:function(a){return a.is("img")?a:a.find("img")}},proto:{initZoom:function(){var a,c=b.st.zoom,d=".zoom";if(c.enabled&&b.supportsTransition){var e,f,g=c.duration,j=function(a){var b=a.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),d="all "+c.duration/1e3+"s "+c.easing,e={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},f="transition";return e["-webkit-"+f]=e["-moz-"+f]=e["-o-"+f]=e[f]=d,b.css(e),b},k=function(){b.content.css("visibility","visible")};w("BuildControls"+d,function(){if(b._allowZoom()){if(clearTimeout(e),b.content.css("visibility","hidden"),a=b._getItemToZoom(),!a)return void k();f=j(a),f.css(b._getOffset()),b.wrap.append(f),e=setTimeout(function(){f.css(b._getOffset(!0)),e=setTimeout(function(){k(),setTimeout(function(){f.remove(),a=f=null,y("ZoomAnimationEnded")},16)},g)},16)}}),w(i+d,function(){if(b._allowZoom()){if(clearTimeout(e),b.st.removalDelay=g,!a){if(a=b._getItemToZoom(),!a)return;f=j(a)}f.css(b._getOffset(!0)),b.wrap.append(f),b.content.css("visibility","hidden"),setTimeout(function(){f.css(b._getOffset())},16)}}),w(h+d,function(){b._allowZoom()&&(k(),f&&f.remove(),a=null)})}},_allowZoom:function(){return"image"===b.currItem.type},_getItemToZoom:function(){return!!b.currItem.hasSize&&b.currItem.img},_getOffset:function(c){var d;d=c?b.currItem.img:b.st.zoom.opener(b.currItem.el||b.currItem);var e=d.offset(),f=parseInt(d.css("padding-top"),10),g=parseInt(d.css("padding-bottom"),10);e.top-=a(window).scrollTop()-f;var h={width:d.width(),height:(u?d.innerHeight():d[0].offsetHeight)-g-f};return O()?h["-moz-transform"]=h.transform="translate("+e.left+"px,"+e.top+"px)":(h.left=e.left,h.top=e.top),h}}});var P="iframe",Q="//about:blank",R=function(a){if(b.currTemplate[P]){var c=b.currTemplate[P].find("iframe");c.length&&(a||(c[0].src=Q),b.isIE8&&c.css("display",a?"block":"none"))}};a.magnificPopup.registerModule(P,{options:{markup:'<div class="mfp-iframe-scaler"><div class="mfp-close"></div><iframe class="mfp-iframe" src="//about:blank" frameborder="0" allowfullscreen></iframe></div>',srcAction:"iframe_src",patterns:{youtube:{index:"youtube.com",id:"v=",src:"//www.youtube.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:"/",src:"//player.vimeo.com/video/%id%?autoplay=1"},gmaps:{index:"//maps.google.",src:"%id%&output=embed"}}},proto:{initIframe:function(){b.types.push(P),w("BeforeChange",function(a,b,c){b!==c&&(b===P?R():c===P&&R(!0))}),w(h+"."+P,function(){R()})},getIframe:function(c,d){var e=c.src,f=b.st.iframe;a.each(f.patterns,function(){if(e.indexOf(this.index)>-1)return this.id&&(e="string"==typeof this.id?e.substr(e.lastIndexOf(this.id)+this.id.length,e.length):this.id.call(this,e)),e=this.src.replace("%id%",e),!1});var g={};return f.srcAction&&(g[f.srcAction]=e),b._parseMarkup(d,g,c),b.updateStatus("ready"),d}}});var S=function(a){var c=b.items.length;return a>c-1?a-c:a<0?c+a:a},T=function(a,b,c){return a.replace(/%curr%/gi,b+1).replace(/%total%/gi,c)};a.magnificPopup.registerModule("gallery",{options:{enabled:!1,arrowMarkup:'<button title="%title%" type="button" class="mfp-arrow mfp-arrow-%dir%"></button>',preload:[0,2],navigateByImgClick:!0,arrows:!0,tPrev:"Previous (Left arrow key)",tNext:"Next (Right arrow key)",tCounter:"%curr% of %total%"},proto:{initGallery:function(){var c=b.st.gallery,e=".mfp-gallery";return b.direction=!0,!(!c||!c.enabled)&&(f+=" mfp-gallery",w(m+e,function(){c.navigateByImgClick&&b.wrap.on("click"+e,".mfp-img",function(){if(b.items.length>1)return b.next(),!1}),d.on("keydown"+e,function(a){37===a.keyCode?b.prev():39===a.keyCode&&b.next()})}),w("UpdateStatus"+e,function(a,c){c.text&&(c.text=T(c.text,b.currItem.index,b.items.length))}),w(l+e,function(a,d,e,f){var g=b.items.length;e.counter=g>1?T(c.tCounter,f.index,g):""}),w("BuildControls"+e,function(){if(b.items.length>1&&c.arrows&&!b.arrowLeft){var d=c.arrowMarkup,e=b.arrowLeft=a(d.replace(/%title%/gi,c.tPrev).replace(/%dir%/gi,"left")).addClass(s),f=b.arrowRight=a(d.replace(/%title%/gi,c.tNext).replace(/%dir%/gi,"right")).addClass(s);e.click(function(){b.prev()}),f.click(function(){b.next()}),b.container.append(e.add(f))}}),w(n+e,function(){b._preloadTimeout&&clearTimeout(b._preloadTimeout),b._preloadTimeout=setTimeout(function(){b.preloadNearbyImages(),b._preloadTimeout=null},16)}),void w(h+e,function(){d.off(e),b.wrap.off("click"+e),b.arrowRight=b.arrowLeft=null}))},next:function(){b.direction=!0,b.index=S(b.index+1),b.updateItemHTML()},prev:function(){b.direction=!1,b.index=S(b.index-1),b.updateItemHTML()},goTo:function(a){b.direction=a>=b.index,b.index=a,b.updateItemHTML()},preloadNearbyImages:function(){var a,c=b.st.gallery.preload,d=Math.min(c[0],b.items.length),e=Math.min(c[1],b.items.length);for(a=1;a<=(b.direction?e:d);a++)b._preloadItem(b.index+a);for(a=1;a<=(b.direction?d:e);a++)b._preloadItem(b.index-a)},_preloadItem:function(c){if(c=S(c),!b.items[c].preloaded){var d=b.items[c];d.parsed||(d=b.parseEl(c)),y("LazyLoad",d),"image"===d.type&&(d.img=a('<img class="mfp-img" />').on("load.mfploader",function(){d.hasSize=!0}).on("error.mfploader",function(){d.hasSize=!0,d.loadError=!0,y("LazyLoadError",d)}).attr("src",d.src)),d.preloaded=!0}}}});var U="retina";a.magnificPopup.registerModule(U,{options:{replaceSrc:function(a){return a.src.replace(/\.\w+$/,function(a){return"@2x"+a})},ratio:1},proto:{initRetina:function(){if(window.devicePixelRatio>1){var a=b.st.retina,c=a.ratio;c=isNaN(c)?c():c,c>1&&(w("ImageHasSize."+U,function(a,b){b.img.css({"max-width":b.img[0].naturalWidth/c,width:"100%"})}),w("ElementParse."+U,function(b,d){d.src=a.replaceSrc(d,c)}))}}}}),A()}),jQuery(document).ready(function(a){dtGlobals.magnificPopupBaseConfig={type:"image",tLoading:"Loading image ...",mainClass:"mfp-img-mobile",removalDelay:300,image:{tError:'<a href="%url%">The image #%curr%</a> could not be loaded.',titleSrc:function(a){return this.st.dt.getItemTitle(a)}},iframe:{markup:'<div class="mfp-iframe-scaler"><div class="mfp-close"></div><iframe class="mfp-iframe" frameborder="0" allowfullscreen></iframe><div class="mfp-bottom-bar"><div class="mfp-title"></div><div class="mfp-counter"></div></div></div>'},callbacks:{markupParse:function(a,b,c){"iframe"==c.type&&a.find(".mfp-title").html(this.st.dt.getItemTitle(c)),this.ev.attr("data-pretty-share")||a.addClass("no-share-buttons")},change:function(){this.isOpen&&this.wrap.addClass("mfp-open")},beforeClose:function(){a("body, html").css("overflow",""),this.wrap.removeClass("mfp-open"),this.content.addClass("mfp-removing")},close:function(){this.content.removeClass("mfp-removing")},beforeOpen:function(){var a=this;"undefined"==typeof this.st.dt&&(this.st.dt={}),this.st.dt.shareButtonsList=this.ev.attr("data-pretty-share")?this.ev.attr("data-pretty-share").split(","):new Array,this.st.dt.shareButtonsTemplates={twitter:'<a href="https://twitter.com/share?text={share_title}&url={location_href}" class="share-button twitter" target="_blank" title="twitter"> <svg class="icon" viewBox="0 0 24 24"><use xlink:href="#twitter"></use></svg></a>',facebook:'<a href="http://www.facebook.com/sharer.php?u={location_href}&t={share_title}" class="share-button facebook" target="_blank" title="facebook"><svg class="icon" viewBox="0 0 24 24"><use xlink:href="#facebook"></use></svg></a>',google:'<a href="////plus.google.com/share?url={location_href}&title={share_title}" class="share-button google" target="_blank" title="google+"><svg class="icon" viewBox="0 0 24 24"><use xlink:href="#google"></use></svg></a>',pinterest:'<a href="//pinterest.com/pin/create/button/?url={location_href}&description={share_title}&media={image_src}" class="share-button pinterest" target="_blank" title="pin it"><svg class="icon" viewBox="0 0 24 24"><use xlink:href="#pinterest"></use></svg></a>',linkedin:'<a href="//www.linkedin.com/shareArticle?mini=true&url={location_href}&title={share_title}" class="share-button linkedin" target="_blank" ><svg class="icon" viewBox="0 0 24 24"><use xlink:href="#linkedin"></use></svg></a>'},this.st.dt.getShareButtons=function(b){for(var c=a.st.dt.shareButtonsList,d=-1,e=c.length,f="",g=0;g<c.length;g++)if("pinterest"==c[g]){d=g;break}if(e<=0)return"";for(var g=0;g<e;g++)if("iframe"!=b.type||d!=g){var h=b.title,i=b.src,j=b.location;"google"==c[g]&&(h=h.replace(" ","+")),f+=a.st.dt.shareButtonsTemplates[c[g]].replace("{location_href}",encodeURIComponent(j)).replace("{share_title}",encodeURIComponent(h)).replace("{image_src}",encodeURIComponent(i))}return'<div class="entry-share"><div class="soc-ico">'+f+"<div></div>"},this.st.dt.getItemTitle=function(b){var c=b.el.attr("title")||"",d=b.el.attr("href"),e=b.el.attr("data-dt-img-description")||"",f=b.el.attr("data-dt-location")||location.href,g=a.st.dt.getShareButtons({title:e,src:d,type:b.type,location:f});return'<div class="mfp-title-wrap">'+c+"<small>"+e+"</small></div>"+g}}}},a(".dt-gallery-mfp-popup, .dt-trigger-first-mfp").addClass("mfp-ready").on("click",function(){var b=a(this),c=b.parents("article.post").first();if(!b.parents(".ts-wrap").hasClass("ts-interceptClicks")){if(c.length>0){if(c.find(".dt-gallery-container").length>0)var d=c.find(".dt-gallery-container a.dt-mfp-item");else var d=c.find("a.dt-mfp-item");d.length>0&&d.first().trigger("click")}return!1}}),a(".dt-single-image").addClass("mfp-ready").magnificPopup({type:"image"}),a(".dt-single-video").addClass("mfp-ready").magnificPopup({type:"iframe"}),a(".dt-single-mfp-popup").on("click",function(b){var c=a(this);if(c.parents(".ts-wrap").hasClass("ts-interceptClicks")&&(b.preventDefault(),b.stopImmediatePropagation()),c.parents(".photo-scroller").length>0){var d=c.parents(".photo-scroller"),e=d.find(".auto-play-btn");e.hasClass("paused")&&(d.addClass("mfp-opened"),d.find(".auto-play-btn.paused").trigger("click"))}if(c.parents("#main-slideshow").length>0){var d=c.parents("#main-slideshow"),e=d.find(".progress-wrapper");e.hasClass("paused")||(d.addClass("mfp-opened"),d.find(".progress-wrapper").trigger("click"))}if(c.parents(".slider-wrapper").length>0){var f=c.parents(".slider-wrapper"),g=f.find(".auto-play-btn");g.hasClass("paused")&&(f.addClass("mfp-opened"),f.find(".auto-play-btn.paused").trigger("click"))}}),a(".dt-single-mfp-popup").addClass("mfp-ready").magnificPopup(a.extend(!0,dtGlobals.magnificPopupBaseConfig,{callbacks:{close:function(){a(".photo-scroller.mfp-opened").find(".auto-play-btn").trigger("click"),a(".photo-scroller").removeClass("mfp-opened"),a("#main-slideshow.mfp-opened").find(".progress-wrapper").trigger("click"),a("#main-slideshow").removeClass("mfp-opened"),a(".slider-wrapper.mfp-opened").find(".auto-play-btn").trigger("click"),a(".slider-wrapper").removeClass("mfp-opened")}}})),a(".dt-gallery-container").each(function(){if(a(this).parents(".slider-wrapper").length>0)var b=a(this).parents(".slider-wrapper");else var b=a(this);var c=b.find(".auto-play-btn");a(this).addClass("mfp-ready").magnificPopup(a.extend(!0,dtGlobals.magnificPopupBaseConfig,{delegate:"a.dt-mfp-item",tLoading:"Loading image #%curr%...",gallery:{enabled:!0,navigateByImgClick:!0,preload:[0,1]},callbacks:{open:function(){var a="true"===b.attr("data-autoslide");a&&c.hasClass("paused")&&(b.addClass("mfp-opened"),b.find(".auto-play-btn.paused").trigger("click"))},close:function(){b.hasClass("mfp-opened")&&(b.find(".auto-play-btn").trigger("click"),b.removeClass("mfp-opened"))}}}))})}),jQuery(document).ready(function(a){a(".twentytwenty-container").length>0&&(a.fn.twentytwenty=function(b){var b=a.extend({default_offset_pct:.5,orientation:"horizontal",navigation_follow:!1},b);return this.each(function(){var c=b.default_offset_pct,d=a(this),e=b.orientation,f="vertical"===e?"down":"left",g="vertical"===e?"up":"right",h=b.navigation_follow;d.wrap("<div class='twentytwenty-wrapper twentytwenty-"+e+"'></div>");var i=d.find("img:first"),j=d.find("img:last"),k=i.attr("title"),l=j.attr("title");d.append("<div class='twentytwenty-handle'></div>");var m=d.find(".twentytwenty-handle");m.append("<span class='twentytwenty-"+f+"-arrow'></span>"),m.append("<span class='twentytwenty-"+g+"-arrow'></span>"),d.addClass("twentytwenty-container"),i.addClass("twentytwenty-before"),j.addClass("twentytwenty-after"),"undefined"!=typeof k&&k&&k.length>0&&d.append("<div class='twentytwenty-before-label'>"+k+"</div>"),"undefined"!=typeof l&&l&&l.length>0&&d.append("<div class='twentytwenty-after-label'>"+l+"</div>");var n=function(a){var b=i.width(),c=i.height();return{w:b+"px",h:c+"px",cw:a*b+"px",ch:a*c+"px"}},o=function(a){"vertical"===e?i.css("clip","rect(0,"+a.w+","+a.ch+",0)"):i.css("clip","rect(0,"+a.cw+","+a.h+",0)"),d.css("height",a.h)},p=function(a){var b=n(a);m.css("vertical"===e?"top":"left","vertical"===e?b.ch:b.cw),o(b)};a(window).on("resize.twentytwenty",function(a){p(c)});var q=0,r=0;m.on("movestart",function(a){(a.distX>a.distY&&a.distX<-a.distY||a.distX<a.distY&&a.distX>-a.distY)&&"vertical"!==e?a.preventDefault():(a.distX<a.distY&&a.distX<-a.distY||a.distX>a.distY&&a.distX>-a.distY)&&"vertical"===e&&a.preventDefault(),d.addClass("active"),d.removeClass("active-click"),q=d.offset().left,offsetY=d.offset().top,r=i.width(),imgHeight=i.height()}),m.on("moveend",function(a){d.removeClass("active")}),m.on("move",function(a){d.hasClass("active")&&(c="vertical"===e?(a.pageY-offsetY)/imgHeight:(a.pageX-q)/r,c<0&&(c=0),c>1&&(c=1),p(c))}),h||d.hasClass("active")||(d.on("mouseup",function(a){d.removeClass("active-click")}),d.on("mousedown",function(a){d.addClass("active-click"),q=d.offset().left,offsetY=d.offset().top,r=i.width(),imgHeight=i.height(),c="vertical"===e?(a.pageY-offsetY)/imgHeight:(a.pageX-q)/r,c<0&&(c=0),c>1&&(c=1),p(c)})),d.find("img").on("mousedown",function(a){a.preventDefault()}),h&&(d.on("mouseenter",function(a){d.addClass("active"),q=d.offset().left,offsetY=d.offset().top,r=i.width(),imgHeight=i.height()}),d.on("mouseleave",function(a){d.removeClass("active")}),d.on("mousemove",function(a){d.hasClass("active")&&(c="vertical"===e?(a.pageY-offsetY)/imgHeight:(a.pageX-q)/r,c<0&&(c=0),c>1&&(c=1),p(c))})),a(window).trigger("resize.twentytwenty")})})}),jQuery(document).ready(function(a){"ontouchstart"in window||!("on"==dtLocal.themeSettings.smoothScroll||"on_parallax"==dtLocal.themeSettings.smoothScroll&&a(".stripe-parallax-bg").length>0)||a("body").css({"scroll-behavior":"smooth"})}),jQuery(document).ready(function(a){var b=a(window),c=b.height();b.resize(function(){c=b.height()}),a.fn.parallax=function(d,e,f){function g(){var f=b.scrollTop();k.each(function(){var b=a(this),g=b.offset().top,i=h(b);g+i<f||g>f+c||k.css("backgroundPosition",d+" "+Math.round((g-f)*e)+"px")})}var h,i,j,k=a(this);k.each(function(){i=k.offset().top}),h=f?function(a){return a.outerHeight(!0)}:function(a){return a.height()},(arguments.length<1||null===d)&&(d="50%"),(arguments.length<2||null===e)&&(e=.1),(arguments.length<3||null===f)&&(f=!0),b.bind("scroll",g).resize(function(){g()}).bind("debouncedresize",function(){clearTimeout(j),j=setTimeout(function(){g()},20)}),g(),setTimeout(function(){!window.bgGlitchFixed&&a.browser.webkit&&(b.scrollTop(b.scrollTop()+1),window.bgGlitchFixed=!0)},20)}}),function(a){"use strict";"function"==typeof define&&define.amd?define(["jquery"],a):"undefined"!=typeof exports?module.exports=a(require("jquery")):a(jQuery)}(function(a){Date.now||(Date.now=function(){return(new Date).getTime()}),window.requestAnimationFrame||function(){"use strict";for(var a=["webkit","moz"],b=0;b<a.length&&!window.requestAnimationFrame;++b){var c=a[b];window.requestAnimationFrame=window[c+"RequestAnimationFrame"],window.cancelAnimationFrame=window[c+"CancelAnimationFrame"]||window[c+"CancelRequestAnimationFrame"]}if(/iP(ad|hone|od).*OS 6/.test(window.navigator.userAgent)||!window.requestAnimationFrame||!window.cancelAnimationFrame){var d=0;window.requestAnimationFrame=function(a){var b=Date.now(),c=Math.max(d+16,b);return setTimeout(function(){a(d=c)},c-b)},window.cancelAnimationFrame=clearTimeout}}();var b=function(){for(var a="transform WebkitTransform MozTransform OTransform msTransform".split(" "),b=document.createElement("div"),c=0;c<a.length;c++)if(b&&void 0!==b.style[a[c]])return a[c];return!1}(),c=function(){if(!window.getComputedStyle)return!1;var a,b=document.createElement("p"),c={webkitTransform:"-webkit-transform",OTransform:"-o-transform",msTransform:"-ms-transform",MozTransform:"-moz-transform",transform:"transform"};(document.body||document.documentElement).insertBefore(b,null);for(var d in c)void 0!==b.style[d]&&(b.style[d]="translate3d(1px,1px,1px)",a=window.getComputedStyle(b).getPropertyValue(c[d]));return(document.body||document.documentElement).removeChild(b),void 0!==a&&a.length>0&&"none"!==a}(),d=navigator.userAgent.toLowerCase().indexOf("android")>-1,e=!!window.opera,f=[],g=function(){function b(b,g){var h,i=this;i.$item=a(b),i.defaults={speed:.5,imgSrc:null,imgWidth:null,imgHeight:null,enableTransform:!0,zIndex:-100},h=i.$item.data("jarallax")||{},i.options=a.extend({},i.defaults,h,g),i.options.speed=Math.min(1,Math.max(-1,parseFloat(i.options.speed))),i.instanceID=c++,i.image={src:i.options.imgSrc||null,$container:null,$item:null,width:i.options.imgWidth||null,height:i.options.imgHeight||null,useImgTag:d||e},i.initImg()&&(i.init(),f.push(i))}var c=0;return b}();g.prototype.initImg=function(){var a=this;return null===a.image.src&&(a.image.src=a.$item.css("background-image").replace(/^url\(['"]?/g,"").replace(/['"]?\)$/g,"")),!(!a.image.src||"none"===a.image.src)},g.prototype.init=function(){function c(){f.coverImage(),f.clipContainer(),f.onScroll(!0),f.$item.data("jarallax-original-styles",f.$item.attr("style")),setTimeout(function(){f.$item.css({"background-image":"none","background-attachment":"scroll","background-size":"auto"})},0)}if(a(".header-side-line").length>0)var d=a(".side-header-v-stroke").width();else if(!a("body").hasClass("sticky-header")&&!a("body").hasClass("overlay-navigation")&&a(".side-header").length>0)var d=a(".side-header").width();else var d=0;var e="absolute",f=this;if("stripe"==f.$item[0].classList[0])var g=2e3+d;else var g=a(".content").offset().left+22;var h=(a("#page").width(),g-a(".content").offset().left-22,{position:"absolute",top:0,left:0,width:"100%",height:"100%",overflow:"hidden","pointer-events":"none",transition:"transform linear -1ms, -webkit-transform linear -1ms"}),i={position:e,left:"50%"};f.image.$container=a("<div>").css(h).css({visibility:"hidden","z-index":f.options.zIndex}).attr("id","jarallax-container-"+f.instanceID).prependTo(f.$item),f.image.useImgTag&&b?(f.image.$item=a("<img>").attr("src",f.image.src),i=a.extend({"max-width":"none"},h,i)):(f.image.$item=a("<div>"),i=a.extend({"background-position":"inherit","background-repeat":"inherit","background-image":'url("'+f.image.src+'")'},h,i)),f.image.$item.css(i).prependTo(f.image.$container),f.image.width&&f.image.height?c():f.getImageSize(f.image.src,function(a,b){f.image.width=a,f.image.height=b,c()})},g.prototype.destroy=function(){for(var b=this,c=0,d=f.length;c<d;c++)if(f[c].instanceID===b.instanceID){f.splice(c,1);break}a("head #jarallax-clip-"+b.instanceID).remove(),b.$item.attr("style",b.$item.data("jarallax-original-styles")),b.$item.removeData("jarallax-original-styles"),b.image.$container.remove(),delete b.$item[0].jarallax},g.prototype.round=function(a){return Math.floor(100*a)/100},g.prototype.getImageSize=function(a,b){if(!a||!b)return!1;var c=new Image;c.onload=function(){b(c.width,c.height)},c.src=a},g.prototype.clipContainer=function(){var b=this,c=b.image.$container.outerWidth(!0),d=b.image.$container.outerHeight(!0),e=a("head #jarallax-clip-"+b.instanceID);e.length||(a("head").append('<style type="text/css" id="jarallax-clip-'+b.instanceID+'"></style>'),e=a("head #jarallax-clip-"+b.instanceID));var f=["#jarallax-container-"+b.instanceID+" {","   clip: rect(0px "+c+"px "+d+"px 0);","   clip: rect(0px, "+c+"px, "+d+"px, 0);","}"].join("\n");e[0].styleSheet?e[0].styleSheet.cssText=f:e.html(f)},g.prototype.coverImage=function(){var c=this;if(c.image.width&&c.image.height){if(a("body").hasClass("transparent"))var d=0+a("#wpadminbar").height();else var d=a(".masthead:not(.side-header):not(.side-header-v-stroke)").height()+a("#wpadminbar").height();if(a(".side-header-v-stroke").length>0){a(".side-header-v-stroke").width()}else;console.log(d+"headerH");var e,f,g=c.image.$container.outerWidth(!0),h=c.image.$container.outerHeight(!0),i=a(window).outerWidth(!0),j=a(window).outerHeight(!0),k=c.image.width,l=c.image.height;if("stripe"==c.$item[0].classList[0])var g=c.image.$container.outerWidth(!0)-4e3;var m={width:1*Math.max(i,g),height:Math.max(j,h)*Math.max(c.options.speed,1)};m.width/m.height>k/l?(e=m.width,f=m.width*l/k):(e=m.height*k/l,f=m.height),c.image.useImgTag&&b?(m.width=c.round(e),m.height=c.round(f),m.marginLeft=c.round(-(e-g)/2),m.marginTop=c.round(-(f-h)/2)):m.backgroundSize=c.round(e)+"px "+c.round(f)+"px",c.image.$item.css(m)}},g.prototype.onScroll=function(d){var e=this;if(e.image.width&&e.image.height){var f=a(window).scrollTop(),g=a(window).scrollLeft(),h=(a(window).width(),a(window).height()),i=e.$item.offset().top,j=e.$item.offset().left,k=e.$item.outerHeight(!0),l={visibility:"visible",backgroundPosition:"inherit"},m=!d&&(i+k<f||i>f+h);if(!m){var n=-(f-i)*e.options.speed,o=-(g-j)*e.options.speed;n=e.round(n),o=e.round(o),console.log(i+"top offset",e.options.speed+" speed",e.image.$item.css("position")),b&&e.options.enableTransform?(l.transform="translateY("+n+"px) translateX("+o+"px)",c&&(l.transform="translate3d(-50%, "+n+"px, 0)")):l.backgroundPosition=o+"px "+n+"px",e.image.$item.css(l)}}},function(){a(window).on("scroll.jarallax",function(){window.requestAnimationFrame(function(){for(var a=0,b=f.length;a<b;a++)f[a].onScroll()})});var b;a(window).on("resize.jarallax orientationchange.jarallax load.jarallax",function(){clearTimeout(b),b=setTimeout(function(){window.requestAnimationFrame(function(){for(var a=0,b=f.length;a<b;a++){var c=f[a];c.coverImage(),c.clipContainer(),c.onScroll()}})},100)})}();var h=a.fn.jarallax;a.fn.jarallax=function(){var a,b=this,c=arguments[0],d=Array.prototype.slice.call(arguments,1),e=b.length,f=0;for(f;f<e;f++)if("object"==typeof c||"undefined"==typeof c?b[f].jarallax||(b[f].jarallax=new g(b[f],c)):a=b[f].jarallax?b[f].jarallax[c].apply(b[f].jarallax,d):void 0,"undefined"!=typeof a)return a;return this},a.fn.jarallax.noConflict=function(){return a.fn.jarallax=h,this},a(document).on("ready.data-jarallax",function(){a("[data-jarallax]").jarallax()})}),function(a){"undefined"!=typeof module&&module.exports?module.exports=a:a(jQuery,window,document)}(function(a){!function(b){var c="function"==typeof define&&define.amd,d="undefined"!=typeof module&&module.exports,e=("https:"==document.location.protocol?"https:":"http:",dtLocal.themeUrl+"/js/atoms/plugins/jquery.mousewheel.min.js",document.createElement("SCRIPT"));e.src=dtLocal.themeUrl+"/js/atoms/plugins/jquery.mousewheel.min.js",c||(d?require("jquery-mousewheel")(a):a.event.special.mousewheel||document.getElementsByTagName("head")[0].appendChild(e)),b()}(function(){var b,c="mCustomScrollbar",d="mCS",e=".mCustomScrollbar",f={setTop:0,setLeft:0,axis:"y",scrollbarPosition:"inside",scrollInertia:950,autoDraggerLength:!0,alwaysShowScrollbar:0,snapOffset:0,mouseWheel:{enable:!0,scrollAmount:"auto",axis:"y",deltaFactor:"auto",disableOver:["select","option","keygen","datalist","textarea"]},scrollButtons:{scrollType:"stepless",scrollAmount:"auto"},keyboard:{enable:!0,scrollType:"stepless",scrollAmount:"auto"},contentTouchScroll:25,advanced:{autoScrollOnFocus:"input,textarea,select,button,datalist,keygen,a[tabindex],area,object,[contenteditable='true']",updateOnContentResize:!0,updateOnImageLoad:!0,autoUpdateTimeout:60},theme:"light",callbacks:{onTotalScrollOffset:0,onTotalScrollBackOffset:0,alwaysTriggerOffsets:!0}},g=0,h={},i=window.attachEvent&&!window.addEventListener?1:0,j=!1,k=["mCSB_dragger_onDrag","mCSB_scrollTools_onDrag","mCS_img_loaded","mCS_disabled","mCS_destroyed","mCS_no_scrollbar","mCS-autoHide","mCS-dir-rtl","mCS_no_scrollbar_y","mCS_no_scrollbar_x","mCS_y_hidden","mCS_x_hidden","mCSB_draggerContainer","mCSB_buttonUp","mCSB_buttonDown","mCSB_buttonLeft","mCSB_buttonRight"],l={init:function(b){var b=a.extend(!0,{},f,b),c=m.call(this);if(b.live){var i=b.liveSelector||this.selector||e,j=a(i);if("off"===b.live)return void o(i);h[i]=setTimeout(function(){j.mCustomScrollbar(b),"once"===b.live&&j.length&&o(i)},500)}else o(i);return b.setWidth=b.set_width?b.set_width:b.setWidth,b.setHeight=b.set_height?b.set_height:b.setHeight,b.axis=b.horizontalScroll?"x":p(b.axis),b.scrollInertia=b.scrollInertia>0&&b.scrollInertia<17?17:b.scrollInertia,"object"!=typeof b.mouseWheel&&1==b.mouseWheel&&(b.mouseWheel={enable:!0,scrollAmount:"auto",axis:"y",preventDefault:!1,deltaFactor:"auto",normalizeDelta:!1,invert:!1}),b.mouseWheel.scrollAmount=b.mouseWheelPixels?b.mouseWheelPixels:b.mouseWheel.scrollAmount,b.mouseWheel.normalizeDelta=b.advanced.normalizeMouseWheelDelta?b.advanced.normalizeMouseWheelDelta:b.mouseWheel.normalizeDelta,b.scrollButtons.scrollType=q(b.scrollButtons.scrollType),n(b),a(c).each(function(){var c=a(this);if(!c.data(d)){c.data(d,{idx:++g,opt:b,scrollRatio:{y:null,x:null},overflowed:null,contentReset:{y:null,x:null},bindEvents:!1,tweenRunning:!1,sequential:{},langDir:c.css("direction"),cbOffsets:null,trigger:null});var e=c.data(d),f=e.opt,h=c.data("mcs-axis"),i=c.data("mcs-scrollbar-position"),j=c.data("mcs-theme");h&&(f.axis=h),i&&(f.scrollbarPosition=i),j&&(f.theme=j,n(f)),r.call(this),a("#mCSB_"+e.idx+"_container img:not(."+k[2]+")").addClass(k[2]),l.update.call(null,c)}})},update:function(b,c){var e=b||m.call(this);return a(e).each(function(){var b=a(this);if(b.data(d)){var e=b.data(d),f=e.opt,g=a("#mCSB_"+e.idx+"_container"),h=[a("#mCSB_"+e.idx+"_dragger_vertical"),a("#mCSB_"+e.idx+"_dragger_horizontal")];if(!g.length)return;e.tweenRunning&&V(b),b.hasClass(k[3])&&b.removeClass(k[3]),b.hasClass(k[4])&&b.removeClass(k[4]),v.call(this),t.call(this),"y"===f.axis||f.advanced.autoExpandHorizontalScroll||g.css("width",s(g.children())),e.overflowed=z.call(this),D.call(this),f.autoDraggerLength&&w.call(this),x.call(this),B.call(this);var i=[Math.abs(g[0].offsetTop),Math.abs(g[0].offsetLeft)];"x"!==f.axis&&(e.overflowed[0]?h[0].height()>h[0].parent().height()?A.call(this):(W(b,i[0].toString(),{dir:"y",dur:0,overwrite:"none"}),e.contentReset.y=null):(A.call(this),"y"===f.axis?C.call(this):"yx"===f.axis&&e.overflowed[1]&&W(b,i[1].toString(),{dir:"x",dur:0,overwrite:"none"}))),"y"!==f.axis&&(e.overflowed[1]?h[1].width()>h[1].parent().width()?A.call(this):(W(b,i[1].toString(),{dir:"x",dur:0,overwrite:"none"}),e.contentReset.x=null):(A.call(this),"x"===f.axis?C.call(this):"yx"===f.axis&&e.overflowed[0]&&W(b,i[0].toString(),{dir:"y",dur:0,overwrite:"none"}))),c&&e&&(2===c&&f.callbacks.onImageLoad&&"function"==typeof f.callbacks.onImageLoad?f.callbacks.onImageLoad.call(this):3===c&&f.callbacks.onSelectorChange&&"function"==typeof f.callbacks.onSelectorChange?f.callbacks.onSelectorChange.call(this):f.callbacks.onUpdate&&"function"==typeof f.callbacks.onUpdate&&f.callbacks.onUpdate.call(this)),T.call(this)}})},scrollTo:function(b,c){if("undefined"!=typeof b&&null!=b){var e=m.call(this);return a(e).each(function(){var e=a(this);if(e.data(d)){var f=e.data(d),g=f.opt,h={trigger:"external",scrollInertia:g.scrollInertia,scrollEasing:"mcsEaseInOut",moveDragger:!1,timeout:60,callbacks:!0,onStart:!0,onUpdate:!0,onComplete:!0},i=a.extend(!0,{},h,c),j=R.call(this,b),k=i.scrollInertia>0&&i.scrollInertia<17?17:i.scrollInertia;j[0]=S.call(this,j[0],"y"),j[1]=S.call(this,j[1],"x"),i.moveDragger&&(j[0]*=f.scrollRatio.y,j[1]*=f.scrollRatio.x),i.dur=k,setTimeout(function(){null!==j[0]&&"undefined"!=typeof j[0]&&"x"!==g.axis&&f.overflowed[0]&&(i.dir="y",i.overwrite="all",W(e,j[0].toString(),i)),null!==j[1]&&"undefined"!=typeof j[1]&&"y"!==g.axis&&f.overflowed[1]&&(i.dir="x",i.overwrite="none",W(e,j[1].toString(),i))},i.timeout)}})}},stop:function(){var b=m.call(this);return a(b).each(function(){var b=a(this);b.data(d)&&V(b)})},disable:function(b){var c=m.call(this);return a(c).each(function(){var c=a(this);if(c.data(d)){c.data(d);T.call(this,"remove"),C.call(this),b&&A.call(this),D.call(this,!0),c.addClass(k[3])}})},destroy:function(){var b=m.call(this);return a(b).each(function(){var e=a(this);if(e.data(d)){var f=e.data(d),g=f.opt,h=a("#mCSB_"+f.idx),i=a("#mCSB_"+f.idx+"_container"),j=a(".mCSB_"+f.idx+"_scrollbar");g.live&&o(g.liveSelector||a(b).selector),T.call(this,"remove"),C.call(this),A.call(this),e.removeData(d),$(this,"mcs"),j.remove(),i.find("img."+k[2]).removeClass(k[2]),h.replaceWith(i.contents()),e.removeClass(c+" _"+d+"_"+f.idx+" "+k[6]+" "+k[7]+" "+k[5]+" "+k[3]).addClass(k[4])}})}},m=function(){return"object"!=typeof a(this)||a(this).length<1?e:this},n=function(b){var c=["rounded","rounded-dark","rounded-dots","rounded-dots-dark"],d=["rounded-dots","rounded-dots-dark","3d","3d-dark","3d-thick","3d-thick-dark","inset","inset-dark","inset-2","inset-2-dark","inset-3","inset-3-dark"],e=["minimal","minimal-dark"],f=["minimal","minimal-dark"],g=["minimal","minimal-dark"];b.autoDraggerLength=!(a.inArray(b.theme,c)>-1)&&b.autoDraggerLength,b.autoExpandScrollbar=!(a.inArray(b.theme,d)>-1)&&b.autoExpandScrollbar,b.scrollButtons.enable=!(a.inArray(b.theme,e)>-1)&&b.scrollButtons.enable,b.autoHideScrollbar=a.inArray(b.theme,f)>-1||b.autoHideScrollbar,b.scrollbarPosition=a.inArray(b.theme,g)>-1?"outside":b.scrollbarPosition},o=function(a){h[a]&&(clearTimeout(h[a]),$(h,a))},p=function(a){return"yx"===a||"xy"===a||"auto"===a?"yx":"x"===a||"horizontal"===a?"x":"y"},q=function(a){return"stepped"===a||"pixels"===a||"step"===a||"click"===a?"stepped":"stepless"},r=function(){var b=a(this),e=b.data(d),f=e.opt,g=f.autoExpandScrollbar?" "+k[1]+"_expand":"",h=["<div id='mCSB_"+e.idx+"_scrollbar_vertical' class='mCSB_scrollTools mCSB_"+e.idx+"_scrollbar mCS-"+f.theme+" mCSB_scrollTools_vertical"+g+"'><div class='"+k[12]+"'><div id='mCSB_"+e.idx+"_dragger_vertical' class='mCSB_dragger' style='position:absolute;' oncontextmenu='return false;'><div class='mCSB_dragger_bar' /></div><div class='mCSB_draggerRail' /></div></div>","<div id='mCSB_"+e.idx+"_scrollbar_horizontal' class='mCSB_scrollTools mCSB_"+e.idx+"_scrollbar mCS-"+f.theme+" mCSB_scrollTools_horizontal"+g+"'><div class='"+k[12]+"'><div id='mCSB_"+e.idx+"_dragger_horizontal' class='mCSB_dragger' style='position:absolute;' oncontextmenu='return false;'><div class='mCSB_dragger_bar' /></div><div class='mCSB_draggerRail' /></div></div>"],i="yx"===f.axis?"mCSB_vertical_horizontal":"x"===f.axis?"mCSB_horizontal":"mCSB_vertical",j="yx"===f.axis?h[0]+h[1]:"x"===f.axis?h[1]:h[0],l="yx"===f.axis?"<div id='mCSB_"+e.idx+"_container_wrapper' class='mCSB_container_wrapper' />":"",m=f.autoHideScrollbar?" "+k[6]:"",n="x"!==f.axis&&"rtl"===e.langDir?" "+k[7]:"";f.setWidth&&b.css("width",f.setWidth),f.setHeight&&b.css("height",f.setHeight),f.setLeft="y"!==f.axis&&"rtl"===e.langDir?"989999px":f.setLeft,b.addClass(c+" _"+d+"_"+e.idx+m+n).wrapInner("<div id='mCSB_"+e.idx+"' class='mCustomScrollBox mCS-"+f.theme+" "+i+"'><div id='mCSB_"+e.idx+"_container' class='mCSB_container' style='position:relative; top:"+f.setTop+"; left:"+f.setLeft+";' dir="+e.langDir+" /></div>");var o=a("#mCSB_"+e.idx),p=a("#mCSB_"+e.idx+"_container");"y"===f.axis||f.advanced.autoExpandHorizontalScroll||p.css("width",s(p.children())),"outside"===f.scrollbarPosition?("static"===b.css("position")&&b.css("position","relative"),
b.css("overflow","visible"),o.addClass("mCSB_outside").after(j)):(o.addClass("mCSB_inside").append(j),p.wrap(l)),u.call(this);var q=[a("#mCSB_"+e.idx+"_dragger_vertical"),a("#mCSB_"+e.idx+"_dragger_horizontal")];q[0].css("min-height",q[0].height()),q[1].css("min-width",q[1].width())},s=function(b){return Math.max.apply(Math,b.map(function(){return a(this).outerWidth(!0)}).get())},t=function(){var b=a(this),c=b.data(d),e=c.opt,f=a("#mCSB_"+c.idx+"_container");e.advanced.autoExpandHorizontalScroll&&"y"!==e.axis&&f.css({position:"absolute",width:"auto"}).wrap("<div class='mCSB_h_wrapper' style='position:relative; left:0; width:999999px;' />").css({width:Math.ceil(f[0].getBoundingClientRect().right+.4)-Math.floor(f[0].getBoundingClientRect().left),position:"relative"}).unwrap()},u=function(){var b=a(this),c=b.data(d),e=c.opt,f=a(".mCSB_"+c.idx+"_scrollbar:first"),g=ba(e.scrollButtons.tabindex)?"tabindex='"+e.scrollButtons.tabindex+"'":"",h=["<a href='#' class='"+k[13]+"' oncontextmenu='return false;' "+g+" />","<a href='#' class='"+k[14]+"' oncontextmenu='return false;' "+g+" />","<a href='#' class='"+k[15]+"' oncontextmenu='return false;' "+g+" />","<a href='#' class='"+k[16]+"' oncontextmenu='return false;' "+g+" />"],i=["x"===e.axis?h[2]:h[0],"x"===e.axis?h[3]:h[1],h[2],h[3]];e.scrollButtons.enable&&f.prepend(i[0]).append(i[1]).next(".mCSB_scrollTools").prepend(i[2]).append(i[3])},v=function(){var b=a(this),c=b.data(d),e=a("#mCSB_"+c.idx),f=b.css("max-height")||"none",g=f.indexOf("%")!==-1,h=b.css("box-sizing");if("none"!==f){var i=g?b.parent().height()*parseInt(f)/100:parseInt(f);"border-box"===h&&(i-=b.innerHeight()-b.height()+(b.outerHeight()-b.innerHeight())),e.css("max-height",Math.round(i))}},w=function(){var b=a(this),c=b.data(d),e=a("#mCSB_"+c.idx),f=a("#mCSB_"+c.idx+"_container"),g=[a("#mCSB_"+c.idx+"_dragger_vertical"),a("#mCSB_"+c.idx+"_dragger_horizontal")],h=[e.height()/f.outerHeight(!1),e.width()/f.outerWidth(!1)],j=[parseInt(g[0].css("min-height")),Math.round(h[0]*g[0].parent().height()),parseInt(g[1].css("min-width")),Math.round(h[1]*g[1].parent().width())],k=i&&j[1]<j[0]?j[0]:j[1],l=i&&j[3]<j[2]?j[2]:j[3];g[0].css({height:k,"max-height":g[0].parent().height()-10}).find(".mCSB_dragger_bar").css({"line-height":j[0]+"px"}),g[1].css({width:l,"max-width":g[1].parent().width()-10})},x=function(){var b=a(this),c=b.data(d),e=a("#mCSB_"+c.idx),f=a("#mCSB_"+c.idx+"_container"),g=[a("#mCSB_"+c.idx+"_dragger_vertical"),a("#mCSB_"+c.idx+"_dragger_horizontal")],h=[f.outerHeight(!1)-e.height(),f.outerWidth(!1)-e.width()],i=[h[0]/(g[0].parent().height()-g[0].height()),h[1]/(g[1].parent().width()-g[1].width())];c.scrollRatio={y:i[0],x:i[1]}},y=function(a,b,c){var d=c?k[0]+"_expanded":"",e=a.closest(".mCSB_scrollTools");"active"===b?(a.toggleClass(k[0]+" "+d),e.toggleClass(k[1]),a[0]._draggable=a[0]._draggable?0:1):a[0]._draggable||("hide"===b?(a.removeClass(k[0]),e.removeClass(k[1])):(a.addClass(k[0]),e.addClass(k[1])))},z=function(){var b=a(this),c=b.data(d),e=a("#mCSB_"+c.idx),f=a("#mCSB_"+c.idx+"_container"),g=null==c.overflowed?f.height():f.outerHeight(!1),h=null==c.overflowed?f.width():f.outerWidth(!1);return[g>e.height(),h>e.width()]},A=function(){var b=a(this),c=b.data(d),e=c.opt,f=a("#mCSB_"+c.idx),g=a("#mCSB_"+c.idx+"_container"),h=[a("#mCSB_"+c.idx+"_dragger_vertical"),a("#mCSB_"+c.idx+"_dragger_horizontal")];if(V(b),("x"!==e.axis&&!c.overflowed[0]||"y"===e.axis&&c.overflowed[0])&&(h[0].add(g).css("top",0),W(b,"_resetY")),"y"!==e.axis&&!c.overflowed[1]||"x"===e.axis&&c.overflowed[1]){var i=dx=0;"rtl"===c.langDir&&(i=f.width()-g.outerWidth(!1),dx=Math.abs(i/c.scrollRatio.x)),g.css("left",i),h[1].css("left",dx),W(b,"_resetX")}},B=function(){function b(){g=setTimeout(function(){a.event.special.mousewheel?(clearTimeout(g),I.call(c[0])):b()},100)}var c=a(this),e=c.data(d),f=e.opt;if(!e.bindEvents){if(F.call(this),f.contentTouchScroll&&G.call(this),H.call(this),f.mouseWheel.enable){var g;b()}L.call(this),N.call(this),f.advanced.autoScrollOnFocus&&M.call(this),f.scrollButtons.enable&&O.call(this),f.keyboard.enable&&P.call(this),e.bindEvents=!0}},C=function(){var b=a(this),c=b.data(d),e=c.opt,f=d+"_"+c.idx,g=".mCSB_"+c.idx+"_scrollbar",h=a("#mCSB_"+c.idx+",#mCSB_"+c.idx+"_container,#mCSB_"+c.idx+"_container_wrapper,"+g+" ."+k[12]+",#mCSB_"+c.idx+"_dragger_vertical,#mCSB_"+c.idx+"_dragger_horizontal,"+g+">a"),i=a("#mCSB_"+c.idx+"_container");e.advanced.releaseDraggableSelectors&&h.add(a(e.advanced.releaseDraggableSelectors)),c.bindEvents&&(a(document).unbind("."+f),h.each(function(){a(this).unbind("."+f)}),clearTimeout(b[0]._focusTimeout),$(b[0],"_focusTimeout"),clearTimeout(c.sequential.step),$(c.sequential,"step"),clearTimeout(i[0].onCompleteTimeout),$(i[0],"onCompleteTimeout"),c.bindEvents=!1)},D=function(b){var c=a(this),e=c.data(d),f=e.opt,g=a("#mCSB_"+e.idx+"_container_wrapper"),h=g.length?g:a("#mCSB_"+e.idx+"_container"),i=[a("#mCSB_"+e.idx+"_scrollbar_vertical"),a("#mCSB_"+e.idx+"_scrollbar_horizontal")],j=[i[0].find(".mCSB_dragger"),i[1].find(".mCSB_dragger")];"x"!==f.axis&&(e.overflowed[0]&&!b?(i[0].add(j[0]).add(i[0].children("a")).css("display","block"),h.removeClass(k[8]+" "+k[10])):(f.alwaysShowScrollbar?(2!==f.alwaysShowScrollbar&&j[0].css("display","none"),h.removeClass(k[10])):(i[0].css("display","none"),h.addClass(k[10])),h.addClass(k[8]))),"y"!==f.axis&&(e.overflowed[1]&&!b?(i[1].add(j[1]).add(i[1].children("a")).css("display","block"),h.removeClass(k[9]+" "+k[11])):(f.alwaysShowScrollbar?(2!==f.alwaysShowScrollbar&&j[1].css("display","none"),h.removeClass(k[11])):(i[1].css("display","none"),h.addClass(k[11])),h.addClass(k[9]))),e.overflowed[0]||e.overflowed[1]?c.removeClass(k[5]):c.addClass(k[5])},E=function(a){var b=a.type;switch(b){case"pointerdown":case"MSPointerDown":case"pointermove":case"MSPointerMove":case"pointerup":case"MSPointerUp":return a.target.ownerDocument!==document?[a.originalEvent.screenY,a.originalEvent.screenX,!1]:[a.originalEvent.pageY,a.originalEvent.pageX,!1];case"touchstart":case"touchmove":case"touchend":var c=a.originalEvent.touches[0]||a.originalEvent.changedTouches[0],d=a.originalEvent.touches.length||a.originalEvent.changedTouches.length;return a.target.ownerDocument!==document?[c.screenY,c.screenX,d>1]:[c.pageY,c.pageX,d>1];default:return[a.pageY,a.pageX,!1]}},F=function(){function b(a){var b=o.find("iframe");if(b.length){var c=a?"auto":"none";b.css("pointer-events",c)}}function c(a,b,c,d){if(o[0].idleTimer=l.scrollInertia<233?250:0,e.attr("id")===n[1])var f="x",g=(e[0].offsetLeft-b+d)*k.scrollRatio.x;else var f="y",g=(e[0].offsetTop-a+c)*k.scrollRatio.y;W(h,g.toString(),{dir:f,drag:!0})}var e,f,g,h=a(this),k=h.data(d),l=k.opt,m=d+"_"+k.idx,n=["mCSB_"+k.idx+"_dragger_vertical","mCSB_"+k.idx+"_dragger_horizontal"],o=a("#mCSB_"+k.idx+"_container"),p=a("#"+n[0]+",#"+n[1]),q=l.advanced.releaseDraggableSelectors?p.add(a(l.advanced.releaseDraggableSelectors)):p;p.bind("mousedown."+m+" touchstart."+m+" pointerdown."+m+" MSPointerDown."+m,function(c){if(c.stopImmediatePropagation(),c.preventDefault(),_(c)){j=!0,i&&(document.onselectstart=function(){return!1}),b(!1),V(h),e=a(this);var d=e.offset(),k=E(c)[0]-d.top,m=E(c)[1]-d.left,n=e.height()+d.top,o=e.width()+d.left;k<n&&k>0&&m<o&&m>0&&(f=k,g=m),y(e,"active",l.autoExpandScrollbar)}}).bind("touchmove."+m,function(a){a.stopImmediatePropagation(),a.preventDefault();var b=e.offset(),d=E(a)[0]-b.top,h=E(a)[1]-b.left;c(f,g,d,h)}),a(document).bind("mousemove."+m+" pointermove."+m+" MSPointerMove."+m,function(a){if(e){var b=e.offset(),d=E(a)[0]-b.top,h=E(a)[1]-b.left;if(f===d)return;c(f,g,d,h)}}).add(q).bind("mouseup."+m+" touchend."+m+" pointerup."+m+" MSPointerUp."+m,function(a){e&&(y(e,"active",l.autoExpandScrollbar),e=null),j=!1,i&&(document.onselectstart=null),b(!0)})},G=function(){function c(a){if(!aa(a)||j||E(a)[2])return void(b=0);b=1,v=0,w=0,x.removeClass("mCS_touch_action");var c=C.offset();k=E(a)[0]-c.top,l=E(a)[1]-c.left,K=[E(a)[0],E(a)[1]]}function e(a){if(aa(a)&&!j&&!E(a)[2]&&(a.stopImmediatePropagation(),!w||v)){p=Y();var b=B.offset(),c=E(a)[0]-b.top,d=E(a)[1]-b.left,e="mcsLinearOut";if(F.push(c),G.push(d),K[2]=Math.abs(E(a)[0]-K[0]),K[3]=Math.abs(E(a)[1]-K[1]),y.overflowed[0])var f=D[0].parent().height()-D[0].height(),g=k-c>0&&c-k>-(f*y.scrollRatio.y)&&(2*K[3]<K[2]||"yx"===z.axis);if(y.overflowed[1])var h=D[1].parent().width()-D[1].width(),m=l-d>0&&d-l>-(h*y.scrollRatio.x)&&(2*K[2]<K[3]||"yx"===z.axis);g||m?(a.preventDefault(),v=1):(w=1,x.addClass("mCS_touch_action")),t="yx"===z.axis?[k-c,l-d]:"x"===z.axis?[null,l-d]:[k-c,null],C[0].idleTimer=250,y.overflowed[0]&&i(t[0],H,e,"y","all",!0),y.overflowed[1]&&i(t[1],H,e,"x",I,!0)}}function f(a){if(!aa(a)||j||E(a)[2])return void(b=0);b=1,a.stopImmediatePropagation(),V(x),o=Y();var c=B.offset();m=E(a)[0]-c.top,n=E(a)[1]-c.left,F=[],G=[]}function g(a){if(aa(a)&&!j&&!E(a)[2]){a.stopImmediatePropagation(),v=0,w=0,q=Y();var b=B.offset(),c=E(a)[0]-b.top,d=E(a)[1]-b.left;if(!(q-p>30)){s=1e3/(q-o);var e="mcsEaseOut",f=s<2.5,g=f?[F[F.length-2],G[G.length-2]]:[0,0];r=f?[c-g[0],d-g[1]]:[c-m,d-n];var k=[Math.abs(r[0]),Math.abs(r[1])];s=f?[Math.abs(r[0]/4),Math.abs(r[1]/4)]:[s,s];var l=[Math.abs(C[0].offsetTop)-r[0]*h(k[0]/s[0],s[0]),Math.abs(C[0].offsetLeft)-r[1]*h(k[1]/s[1],s[1])];t="yx"===z.axis?[l[0],l[1]]:"x"===z.axis?[null,l[1]]:[l[0],null],u=[4*k[0]+z.scrollInertia,4*k[1]+z.scrollInertia];var x=parseInt(z.contentTouchScroll)||0;t[0]=k[0]>x?t[0]:0,t[1]=k[1]>x?t[1]:0,y.overflowed[0]&&i(t[0],u[0],e,"y",I,!1),y.overflowed[1]&&i(t[1],u[1],e,"x",I,!1)}}}function h(a,b){var c=[1.5*b,2*b,b/1.5,b/2];return a>90?b>4?c[0]:c[3]:a>60?b>3?c[3]:c[2]:a>30?b>8?c[1]:b>6?c[0]:b>4?b:c[2]:b>8?b:c[3]}function i(a,b,c,d,e,f){a&&W(x,a.toString(),{dur:b,scrollEasing:c,dir:d,overwrite:e,drag:f})}var k,l,m,n,o,p,q,r,s,t,u,v,w,x=a(this),y=x.data(d),z=y.opt,A=d+"_"+y.idx,B=a("#mCSB_"+y.idx),C=a("#mCSB_"+y.idx+"_container"),D=[a("#mCSB_"+y.idx+"_dragger_vertical"),a("#mCSB_"+y.idx+"_dragger_horizontal")],F=[],G=[],H=0,I="yx"===z.axis?"none":"all",K=[],L=C.find("iframe"),M=["touchstart."+A+" pointerdown."+A+" MSPointerDown."+A,"touchmove."+A+" pointermove."+A+" MSPointerMove."+A,"touchend."+A+" pointerup."+A+" MSPointerUp."+A];C.bind(M[0],function(a){c(a)}).bind(M[1],function(a){e(a)}),B.bind(M[0],function(a){f(a)}).bind(M[2],function(a){g(a)}),L.length&&L.each(function(){a(this).load(function(){J(this)&&a(this.contentDocument||this.contentWindow.document).bind(M[0],function(a){c(a),f(a)}).bind(M[1],function(a){e(a)}).bind(M[2],function(a){g(a)})})})},H=function(){function c(){return window.getSelection?window.getSelection().toString():document.selection&&"Control"!=document.selection.type?document.selection.createRange().text:0}function e(a,b,c){k.type=c&&f?"stepped":"stepless",k.scrollAmount=10,Q(g,a,b,"mcsLinearOut",c?60:null)}var f,g=a(this),h=g.data(d),i=h.opt,k=h.sequential,l=d+"_"+h.idx,m=a("#mCSB_"+h.idx+"_container"),n=m.parent();m.bind("mousedown."+l,function(a){b||f||(f=1,j=!0)}).add(document).bind("mousemove."+l,function(a){if(!b&&f&&c()){var d=m.offset(),g=E(a)[0]-d.top+m[0].offsetTop,j=E(a)[1]-d.left+m[0].offsetLeft;g>0&&g<n.height()&&j>0&&j<n.width()?k.step&&e("off",null,"stepped"):("x"!==i.axis&&h.overflowed[0]&&(g<0?e("on",38):g>n.height()&&e("on",40)),"y"!==i.axis&&h.overflowed[1]&&(j<0?e("on",37):j>n.width()&&e("on",39)))}}).bind("mouseup."+l,function(a){b||(f&&(f=0,e("off",null)),j=!1)})},I=function(){function b(b,d){if(V(c),!K(c,b.target)){var g="auto"!==f.mouseWheel.deltaFactor?parseInt(f.mouseWheel.deltaFactor):i&&b.deltaFactor<100?100:b.deltaFactor||100;if("x"===f.axis||"x"===f.mouseWheel.axis)var k="x",l=[Math.round(g*e.scrollRatio.x),parseInt(f.mouseWheel.scrollAmount)],m="auto"!==f.mouseWheel.scrollAmount?l[1]:l[0]>=h.width()?.9*h.width():l[0],n=Math.abs(a("#mCSB_"+e.idx+"_container")[0].offsetLeft),o=j[1][0].offsetLeft,p=j[1].parent().width()-j[1].width(),q=b.deltaX||b.deltaY||d;else var k="y",l=[Math.round(g*e.scrollRatio.y),parseInt(f.mouseWheel.scrollAmount)],m="auto"!==f.mouseWheel.scrollAmount?l[1]:l[0]>=h.height()?.9*h.height():l[0],n=Math.abs(a("#mCSB_"+e.idx+"_container")[0].offsetTop),o=j[0][0].offsetTop,p=j[0].parent().height()-j[0].height(),q=b.deltaY||d;"y"===k&&!e.overflowed[0]||"x"===k&&!e.overflowed[1]||((f.mouseWheel.invert||b.webkitDirectionInvertedFromDevice)&&(q=-q),f.mouseWheel.normalizeDelta&&(q=q<0?-1:1),(q>0&&0!==o||q<0&&o!==p||f.mouseWheel.preventDefault)&&(b.stopImmediatePropagation(),b.preventDefault()),W(c,(n-q*m).toString(),{dir:k}))}}if(a(this).data(d)){var c=a(this),e=c.data(d),f=e.opt,g=d+"_"+e.idx,h=a("#mCSB_"+e.idx),j=[a("#mCSB_"+e.idx+"_dragger_vertical"),a("#mCSB_"+e.idx+"_dragger_horizontal")],k=a("#mCSB_"+e.idx+"_container").find("iframe");k.length&&k.each(function(){a(this).load(function(){J(this)&&a(this.contentDocument||this.contentWindow.document).bind("mousewheel."+g,function(a,c){b(a,c)})})}),h.bind("mousewheel."+g,function(a,c){b(a,c)})}},J=function(a){var b=null;try{var c=a.contentDocument||a.contentWindow.document;b=c.body.innerHTML}catch(a){}return null!==b},K=function(b,c){var e=c.nodeName.toLowerCase(),f=b.data(d).opt.mouseWheel.disableOver,g=["select","textarea"];return a.inArray(e,f)>-1&&!(a.inArray(e,g)>-1&&!a(c).is(":focus"))},L=function(){var b=a(this),c=b.data(d),e=d+"_"+c.idx,f=a("#mCSB_"+c.idx+"_container"),g=f.parent(),h=a(".mCSB_"+c.idx+"_scrollbar ."+k[12]);h.bind("touchstart."+e+" pointerdown."+e+" MSPointerDown."+e,function(a){j=!0}).bind("touchend."+e+" pointerup."+e+" MSPointerUp."+e,function(a){j=!1}).bind("click."+e,function(d){if(a(d.target).hasClass(k[12])||a(d.target).hasClass("mCSB_draggerRail")){V(b);var e=a(this),h=e.find(".mCSB_dragger");if(e.parent(".mCSB_scrollTools_horizontal").length>0){if(!c.overflowed[1])return;var i="x",j=d.pageX>h.offset().left?-1:1,l=Math.abs(f[0].offsetLeft)-j*(.9*g.width())}else{if(!c.overflowed[0])return;var i="y",j=d.pageY>h.offset().top?-1:1,l=Math.abs(f[0].offsetTop)-j*(.9*g.height())}W(b,l.toString(),{dir:i,scrollEasing:"mcsEaseInOut"})}})},M=function(){var b=a(this),c=b.data(d),e=c.opt,f=d+"_"+c.idx,g=a("#mCSB_"+c.idx+"_container"),h=g.parent();g.bind("focusin."+f,function(c){var d=a(document.activeElement),f=g.find(".mCustomScrollBox").length,i=0;d.is(e.advanced.autoScrollOnFocus)&&(V(b),clearTimeout(b[0]._focusTimeout),b[0]._focusTimer=f?(i+17)*f:0,b[0]._focusTimeout=setTimeout(function(){var a=[ca(d)[0],ca(d)[1]],c=[g[0].offsetTop,g[0].offsetLeft],f=[c[0]+a[0]>=0&&c[0]+a[0]<h.height()-d.outerHeight(!1),c[1]+a[1]>=0&&c[0]+a[1]<h.width()-d.outerWidth(!1)],j="yx"!==e.axis||f[0]||f[1]?"all":"none";"x"===e.axis||f[0]||W(b,a[0].toString(),{dir:"y",scrollEasing:"mcsEaseInOut",overwrite:j,dur:i}),"y"===e.axis||f[1]||W(b,a[1].toString(),{dir:"x",scrollEasing:"mcsEaseInOut",overwrite:j,dur:i})},b[0]._focusTimer))})},N=function(){var b=a(this),c=b.data(d),e=d+"_"+c.idx,f=a("#mCSB_"+c.idx+"_container").parent();f.bind("scroll."+e,function(b){0===f.scrollTop()&&0===f.scrollLeft()||a(".mCSB_"+c.idx+"_scrollbar").css("visibility","hidden")})},O=function(){var b=a(this),c=b.data(d),e=c.opt,f=c.sequential,g=d+"_"+c.idx,h=".mCSB_"+c.idx+"_scrollbar",i=a(h+">a");i.bind("mousedown."+g+" touchstart."+g+" pointerdown."+g+" MSPointerDown."+g+" mouseup."+g+" touchend."+g+" pointerup."+g+" MSPointerUp."+g+" mouseout."+g+" pointerout."+g+" MSPointerOut."+g+" click."+g,function(d){function g(a,c){f.scrollAmount=e.snapAmount||e.scrollButtons.scrollAmount,Q(b,a,c)}if(d.preventDefault(),_(d)){var h=a(this).attr("class");switch(f.type=e.scrollButtons.scrollType,d.type){case"mousedown":case"touchstart":case"pointerdown":case"MSPointerDown":if("stepped"===f.type)return;j=!0,c.tweenRunning=!1,g("on",h);break;case"mouseup":case"touchend":case"pointerup":case"MSPointerUp":case"mouseout":case"pointerout":case"MSPointerOut":if("stepped"===f.type)return;j=!1,f.dir&&g("off",h);break;case"click":if("stepped"!==f.type||c.tweenRunning)return;g("on",h)}}})},P=function(){function b(b){function d(a,b){g.type=f.keyboard.scrollType,g.scrollAmount=f.snapAmount||f.keyboard.scrollAmount,"stepped"===g.type&&e.tweenRunning||Q(c,a,b)}switch(b.type){case"blur":e.tweenRunning&&g.dir&&d("off",null);break;case"keydown":case"keyup":var h=b.keyCode?b.keyCode:b.which,i="on";if("x"!==f.axis&&(38===h||40===h)||"y"!==f.axis&&(37===h||39===h)){if((38===h||40===h)&&!e.overflowed[0]||(37===h||39===h)&&!e.overflowed[1])return;"keyup"===b.type&&(i="off"),a(document.activeElement).is(l)||(b.preventDefault(),b.stopImmediatePropagation(),d(i,h))}else if(33===h||34===h){if((e.overflowed[0]||e.overflowed[1])&&(b.preventDefault(),b.stopImmediatePropagation()),"keyup"===b.type){V(c);var m=34===h?-1:1;if("x"===f.axis||"yx"===f.axis&&e.overflowed[1]&&!e.overflowed[0])var n="x",o=Math.abs(j[0].offsetLeft)-m*(.9*k.width());else var n="y",o=Math.abs(j[0].offsetTop)-m*(.9*k.height());W(c,o.toString(),{dir:n,scrollEasing:"mcsEaseInOut"})}}else if((35===h||36===h)&&!a(document.activeElement).is(l)&&((e.overflowed[0]||e.overflowed[1])&&(b.preventDefault(),b.stopImmediatePropagation()),"keyup"===b.type)){if("x"===f.axis||"yx"===f.axis&&e.overflowed[1]&&!e.overflowed[0])var n="x",o=35===h?Math.abs(k.width()-j.outerWidth(!1)):0;else var n="y",o=35===h?Math.abs(k.height()-j.outerHeight(!1)):0;W(c,o.toString(),{dir:n,scrollEasing:"mcsEaseInOut"})}}}var c=a(this),e=c.data(d),f=e.opt,g=e.sequential,h=d+"_"+e.idx,i=a("#mCSB_"+e.idx),j=a("#mCSB_"+e.idx+"_container"),k=j.parent(),l="input,textarea,select,datalist,keygen,[contenteditable='true']",m=j.find("iframe"),n=["blur."+h+" keydown."+h+" keyup."+h];m.length&&m.each(function(){a(this).load(function(){J(this)&&a(this.contentDocument||this.contentWindow.document).bind(n[0],function(a){b(a)})})}),i.attr("tabindex","0").bind(n[0],function(a){b(a)})},Q=function(b,c,e,f,g){function h(a){var c="stepped"!==m.type,d=g?g:a?c?p/1.5:q:1e3/60,e=a?c?7.5:40:2.5,i=[Math.abs(n[0].offsetTop),Math.abs(n[0].offsetLeft)],k=[j.scrollRatio.y>10?10:j.scrollRatio.y,j.scrollRatio.x>10?10:j.scrollRatio.x],l="x"===m.dir[0]?i[1]+m.dir[1]*(k[1]*e):i[0]+m.dir[1]*(k[0]*e),o="x"===m.dir[0]?i[1]+m.dir[1]*parseInt(m.scrollAmount):i[0]+m.dir[1]*parseInt(m.scrollAmount),r="auto"!==m.scrollAmount?o:l,s=f?f:a?c?"mcsLinearOut":"mcsEaseInOut":"mcsLinear",t=!!a;return a&&d<17&&(r="x"===m.dir[0]?i[1]:i[0]),W(b,r.toString(),{dir:m.dir[0],scrollEasing:s,dur:d,onComplete:t}),a?void(m.dir=!1):(clearTimeout(m.step),void(m.step=setTimeout(function(){h()},d)))}function i(){clearTimeout(m.step),$(m,"step"),V(b)}var j=b.data(d),l=j.opt,m=j.sequential,n=a("#mCSB_"+j.idx+"_container"),o="stepped"===m.type,p=l.scrollInertia<26?26:l.scrollInertia,q=l.scrollInertia<1?17:l.scrollInertia;switch(c){case"on":if(m.dir=[e===k[16]||e===k[15]||39===e||37===e?"x":"y",e===k[13]||e===k[15]||38===e||37===e?-1:1],V(b),ba(e)&&"stepped"===m.type)return;h(o);break;case"off":i(),(o||j.tweenRunning&&m.dir)&&h(!0)}},R=function(b){var c=a(this).data(d).opt,e=[];return"function"==typeof b&&(b=b()),b instanceof Array?e=b.length>1?[b[0],b[1]]:"x"===c.axis?[null,b[0]]:[b[0],null]:(e[0]=b.y?b.y:b.x||"x"===c.axis?null:b,e[1]=b.x?b.x:b.y||"y"===c.axis?null:b),"function"==typeof e[0]&&(e[0]=e[0]()),"function"==typeof e[1]&&(e[1]=e[1]()),e},S=function(b,c){if(null!=b&&"undefined"!=typeof b){var e=a(this),f=e.data(d),g=f.opt,h=a("#mCSB_"+f.idx+"_container"),i=h.parent(),j=typeof b;c||(c="x"===g.axis?"x":"y");var k="x"===c?h.outerWidth(!1):h.outerHeight(!1),m="x"===c?h[0].offsetLeft:h[0].offsetTop,n="x"===c?"left":"top";switch(j){case"function":return b();case"object":var o=b.jquery?b:a(b);if(!o.length)return;return"x"===c?ca(o)[1]:ca(o)[0];case"string":case"number":if(ba(b))return Math.abs(b);if(b.indexOf("%")!==-1)return Math.abs(k*parseInt(b)/100);if(b.indexOf("-=")!==-1)return Math.abs(m-parseInt(b.split("-=")[1]));if(b.indexOf("+=")!==-1){var p=m+parseInt(b.split("+=")[1]);return p>=0?0:Math.abs(p)}if(b.indexOf("px")!==-1&&ba(b.split("px")[0]))return Math.abs(b.split("px")[0]);if("top"===b||"left"===b)return 0;if("bottom"===b)return Math.abs(i.height()-h.outerHeight(!1));if("right"===b)return Math.abs(i.width()-h.outerWidth(!1));if("first"===b||"last"===b){var o=h.find(":"+b);return"x"===c?ca(o)[1]:ca(o)[0]}return a(b).length?"x"===c?ca(a(b))[1]:ca(a(b))[0]:(h.css(n,b),void l.update.call(null,e[0]))}}},T=function(b){function c(){return clearTimeout(n[0].autoUpdate),0===i.parents("html").length?void(i=null):void(n[0].autoUpdate=setTimeout(function(){return m.advanced.updateOnSelectorChange&&(o=g(),o!==u)?(h(3),void(u=o)):(m.advanced.updateOnContentResize&&(p=[n.outerHeight(!1),n.outerWidth(!1),r.height(),r.width(),t()[0],t()[1]],p[0]===v[0]&&p[1]===v[1]&&p[2]===v[2]&&p[3]===v[3]&&p[4]===v[4]&&p[5]===v[5]||(h(p[0]!==v[0]||p[1]!==v[1]),v=p)),m.advanced.updateOnImageLoad&&(q=e(),q!==w&&(n.find("img").each(function(){f(this)}),w=q)),void((m.advanced.updateOnSelectorChange||m.advanced.updateOnContentResize||m.advanced.updateOnImageLoad)&&c()))},m.advanced.autoUpdateTimeout))}function e(){var a=0;return m.advanced.updateOnImageLoad&&(a=n.find("img").length),a}function f(b){function c(a,b){return function(){return b.apply(a,arguments)}}function d(){this.onload=null,a(b).addClass(k[2]),h(2)}if(a(b).hasClass(k[2]))return void h();var e=new Image;e.onload=c(e,d),e.src=b.src}function g(){m.advanced.updateOnSelectorChange===!0&&(m.advanced.updateOnSelectorChange="*");var b=0,c=n.find(m.advanced.updateOnSelectorChange);return m.advanced.updateOnSelectorChange&&c.length>0&&c.each(function(){b+=a(this).height()+a(this).width()}),b}function h(a){clearTimeout(n[0].autoUpdate),l.update.call(null,i[0],a)}var i=a(this),j=i.data(d),m=j.opt,n=a("#mCSB_"+j.idx+"_container");if(b)return clearTimeout(n[0].autoUpdate),void $(n[0],"autoUpdate");var o,p,q,r=n.parent(),s=[a("#mCSB_"+j.idx+"_scrollbar_vertical"),a("#mCSB_"+j.idx+"_scrollbar_horizontal")],t=function(){return[s[0].is(":visible")?s[0].outerHeight(!0):0,s[1].is(":visible")?s[1].outerWidth(!0):0]},u=g(),v=[n.outerHeight(!1),n.outerWidth(!1),r.height(),r.width(),t()[0],t()[1]],w=e();c()},U=function(a,b,c){return Math.round(a/b)*b-c},V=function(b){var c=b.data(d),e=a("#mCSB_"+c.idx+"_container,#mCSB_"+c.idx+"_container_wrapper,#mCSB_"+c.idx+"_dragger_vertical,#mCSB_"+c.idx+"_dragger_horizontal");e.each(function(){Z.call(this)})},W=function(b,c,e){function f(a){return i&&j.callbacks[a]&&"function"==typeof j.callbacks[a]}function g(){return[j.callbacks.alwaysTriggerOffsets||t>=u[0]+w,j.callbacks.alwaysTriggerOffsets||t<=-x]}function h(){var a=[n[0].offsetTop,n[0].offsetLeft],c=[r[0].offsetTop,r[0].offsetLeft],d=[n.outerHeight(!1),n.outerWidth(!1)],f=[m.height(),m.width()];b[0].mcs={content:n,top:a[0],left:a[1],draggerTop:c[0],draggerLeft:c[1],topPct:Math.round(100*Math.abs(a[0])/(Math.abs(d[0])-f[0])),leftPct:Math.round(100*Math.abs(a[1])/(Math.abs(d[1])-f[1])),direction:e.dir}}var i=b.data(d),j=i.opt,k={trigger:"internal",dir:"y",scrollEasing:"mcsEaseOut",drag:!1,dur:j.scrollInertia,overwrite:"all",callbacks:!0,onStart:!0,onUpdate:!0,onComplete:!0},e=a.extend(k,e),l=[e.dur,e.drag?0:e.dur],m=a("#mCSB_"+i.idx),n=a("#mCSB_"+i.idx+"_container"),o=n.parent(),p=j.callbacks.onTotalScrollOffset?R.call(b,j.callbacks.onTotalScrollOffset):[0,0],q=j.callbacks.onTotalScrollBackOffset?R.call(b,j.callbacks.onTotalScrollBackOffset):[0,0];if(i.trigger=e.trigger,0===o.scrollTop()&&0===o.scrollLeft()||(a(".mCSB_"+i.idx+"_scrollbar").css("visibility","visible"),o.scrollTop(0).scrollLeft(0)),"_resetY"!==c||i.contentReset.y||(f("onOverflowYNone")&&j.callbacks.onOverflowYNone.call(b[0]),i.contentReset.y=1),"_resetX"!==c||i.contentReset.x||(f("onOverflowXNone")&&j.callbacks.onOverflowXNone.call(b[0]),i.contentReset.x=1),"_resetY"!==c&&"_resetX"!==c){switch(!i.contentReset.y&&b[0].mcs||!i.overflowed[0]||(f("onOverflowY")&&j.callbacks.onOverflowY.call(b[0]),i.contentReset.x=null),!i.contentReset.x&&b[0].mcs||!i.overflowed[1]||(f("onOverflowX")&&j.callbacks.onOverflowX.call(b[0]),i.contentReset.x=null),j.snapAmount&&(c=U(c,j.snapAmount,j.snapOffset)),e.dir){case"x":var r=a("#mCSB_"+i.idx+"_dragger_horizontal"),s="left",t=n[0].offsetLeft,u=[m.width()-n.outerWidth(!1),r.parent().width()-r.width()],v=[c,0===c?0:c/i.scrollRatio.x],w=p[1],x=q[1],z=w>0?w/i.scrollRatio.x:0,A=x>0?x/i.scrollRatio.x:0;break;case"y":var r=a("#mCSB_"+i.idx+"_dragger_vertical"),s="top",t=n[0].offsetTop,u=[m.height()-n.outerHeight(!1),r.parent().height()-r.height()],v=[c,0===c?0:c/i.scrollRatio.y],w=p[0],x=q[0],z=w>0?w/i.scrollRatio.y:0,A=x>0?x/i.scrollRatio.y:0}v[1]<0||0===v[0]&&0===v[1]?v=[0,0]:v[1]>=u[1]?v=[u[0],u[1]]:v[0]=-v[0],b[0].mcs||(h(),f("onInit")&&j.callbacks.onInit.call(b[0])),clearTimeout(n[0].onCompleteTimeout),!i.tweenRunning&&(0===t&&v[0]>=0||t===u[0]&&v[0]<=u[0])||(X(r[0],s,Math.round(v[1]),l[1],e.scrollEasing),X(n[0],s,Math.round(v[0]),l[0],e.scrollEasing,e.overwrite,{onStart:function(){e.callbacks&&e.onStart&&!i.tweenRunning&&(f("onScrollStart")&&(h(),j.callbacks.onScrollStart.call(b[0])),i.tweenRunning=!0,y(r),i.cbOffsets=g())},onUpdate:function(){e.callbacks&&e.onUpdate&&f("whileScrolling")&&(h(),j.callbacks.whileScrolling.call(b[0]))},onComplete:function(){if(e.callbacks&&e.onComplete){"yx"===j.axis&&clearTimeout(n[0].onCompleteTimeout);var a=n[0].idleTimer||0;n[0].onCompleteTimeout=setTimeout(function(){f("onScroll")&&(h(),j.callbacks.onScroll.call(b[0])),f("onTotalScroll")&&v[1]>=u[1]-z&&i.cbOffsets[0]&&(h(),j.callbacks.onTotalScroll.call(b[0])),f("onTotalScrollBack")&&v[1]<=A&&i.cbOffsets[1]&&(h(),j.callbacks.onTotalScrollBack.call(b[0])),i.tweenRunning=!1,n[0].idleTimer=0,y(r,"hide")},a)}}}))}},X=function(a,b,c,d,e,f,g){function h(){v.stop||(s||o.call(),s=Y()-r,i(),s>=v.time&&(v.time=s>v.time?s+m-(s-v.time):s+m-1,v.time<s+1&&(v.time=s+1)),v.time<d?v.id=n(h):q.call())}function i(){d>0?(v.currVal=l(v.time,t,w,d,e),u[b]=Math.round(v.currVal)+"px"):u[b]=c+"px",p.call()}function j(){m=1e3/60,v.time=s+m,n=window.requestAnimationFrame?window.requestAnimationFrame:function(a){return i(),setTimeout(a,.01)},v.id=n(h)}function k(){null!=v.id&&(window.requestAnimationFrame?window.cancelAnimationFrame(v.id):clearTimeout(v.id),v.id=null)}function l(a,b,c,d,e){switch(e){case"linear":case"mcsLinear":return c*a/d+b;case"mcsLinearOut":return a/=d,a--,c*Math.sqrt(1-a*a)+b;case"easeInOutSmooth":return a/=d/2,a<1?c/2*a*a+b:(a--,-c/2*(a*(a-2)-1)+b);case"easeInOutStrong":return a/=d/2,a<1?c/2*Math.pow(2,10*(a-1))+b:(a--,c/2*(-Math.pow(2,-10*a)+2)+b);case"easeInOut":case"mcsEaseInOut":return a/=d/2,a<1?c/2*a*a*a+b:(a-=2,c/2*(a*a*a+2)+b);case"easeOutSmooth":return a/=d,a--,-c*(a*a*a*a-1)+b;case"easeOutStrong":return c*(-Math.pow(2,-10*a/d)+1)+b;case"easeOut":case"mcsEaseOut":default:var f=(a/=d)*a,g=f*a;return b+c*(.499999999999997*g*f+-2.5*f*f+5.5*g+-6.5*f+4*a)}}a._mTween||(a._mTween={top:{},left:{}});var m,n,g=g||{},o=g.onStart||function(){},p=g.onUpdate||function(){},q=g.onComplete||function(){},r=Y(),s=0,t=a.offsetTop,u=a.style,v=a._mTween[b];"left"===b&&(t=a.offsetLeft);var w=c-t;v.stop=0,"none"!==f&&k(),j()},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 a=this;a._mTween||(a._mTween={top:{},left:{}});for(var b=["top","left"],c=0;c<b.length;c++){var d=b[c];a._mTween[d].id&&(window.requestAnimationFrame?window.cancelAnimationFrame(a._mTween[d].id):clearTimeout(a._mTween[d].id),a._mTween[d].id=null,a._mTween[d].stop=1)}},$=function(a,b){try{delete a[b]}catch(c){a[b]=null}},_=function(a){return!(a.which&&1!==a.which)},aa=function(a){var b=a.originalEvent.pointerType;return!(b&&"touch"!==b&&2!==b)},ba=function(a){return!isNaN(parseFloat(a))&&isFinite(a)},ca=function(a){var b=a.parents(".mCSB_container");return[a.offset().top-b.offset().top,a.offset().left-b.offset().left]};a.fn[c]=function(b){return l[b]?l[b].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof b&&b?void a.error("Method "+b+" does not exist"):l.init.apply(this,arguments)},a[c]=function(b){return l[b]?l[b].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof b&&b?void a.error("Method "+b+" does not exist"):l.init.apply(this,arguments)},a[c].defaults=f,window[c]=!0,a(window).load(function(){a(e)[c](),a.extend(a.expr[":"],{mcsInView:a.expr[":"].mcsInView||function(b){var c,d,e=a(b),f=e.parents(".mCSB_container");if(f.length)return c=f.parent(),d=[f[0].offsetTop,f[0].offsetLeft],d[0]+ca(e)[0]>=0&&d[0]+ca(e)[0]<c.height()-e.outerHeight(!1)&&d[1]+ca(e)[1]>=0&&d[1]+ca(e)[1]<c.width()-e.outerWidth(!1)},mcsOverflow:a.expr[":"].mcsOverflow||function(b){var c=a(b).data(d);if(c)return c.overflowed[0]||c.overflowed[1]}})})})}),jQuery(document).ready(function(a){a.fn.extend({customSelect:function(b){if("undefined"==typeof document.body.style.maxHeight)return this;var c={customClass:"customSelect",mapClass:!0,mapStyle:!0},b=a.extend(c,b),d=b.customClass,e=function(b,c){var d=b.find(":selected"),e=c.children(":first"),g=d.html()||"&nbsp;";e.html(g),d.attr("disabled")?c.addClass(f("DisabledOption")):c.removeClass(f("DisabledOption")),setTimeout(function(){c.removeClass(f("Open")),a(document).off("mouseup."+f("Open"))},60)},f=function(a){return d+a};return this.each(function(){var c=a(this),g=a("<span />").addClass(f("Inner")),h=a("<span />");c.after(h.append(g)),h.addClass(d),b.mapClass&&h.addClass(c.attr("class")),b.mapStyle&&h.attr("style",c.attr("style")),c.addClass("hasCustomSelect").on("update",function(){e(c,h);var a=parseInt(c.outerWidth(),10)-(parseInt(h.outerWidth(),10)-parseInt(h.width(),10));h.css({display:"inline-block"});var b=h.outerHeight();c.attr("disabled")?h.addClass(f("Disabled")):h.removeClass(f("Disabled")),g.css({width:a,display:"inline-block"}),c.css({"-webkit-appearance":"menulist-button",width:h.outerWidth(),position:"absolute",opacity:0,height:b,fontSize:h.css("font-size")})}).on("change",function(){h.addClass(f("Changed")),e(c,h)}).on("keyup",function(a){h.hasClass(f("Open"))?13!=a.which&&27!=a.which||e(c,h):(c.blur(),c.focus())}).on("mousedown",function(a){h.removeClass(f("Changed"))}).on("mouseup",function(b){h.hasClass(f("Open"))||(a("."+f("Open")).not(h).length>0&&"undefined"!=typeof InstallTrigger?c.focus():(h.addClass(f("Open")),b.stopPropagation(),a(document).one("mouseup."+f("Open"),function(b){b.target!=c.get(0)&&a.inArray(b.target,c.find("*").get())<0?c.blur():e(c,h)})))}).focus(function(){h.removeClass(f("Changed")).addClass(f("Focus"))}).blur(function(){h.removeClass(f("Focus")+" "+f("Open"))}).hover(function(){h.addClass(f("Hover"))},function(){h.removeClass(f("Hover"))}).trigger("update")})}})}),function(a,b){"use strict";"function"==typeof define&&define.amd?define("jquery-bridget/jquery-bridget",["jquery"],function(c){b(a,c)}):"object"==typeof module&&module.exports?module.exports=b(a,require("jquery")):a.jQueryBridget=b(a,a.jQuery)}(window,function(a,b){"use strict";function c(c,f,h){function i(a,b,d){var e,f="$()."+c+'("'+b+'")';return a.each(function(a,i){var j=h.data(i,c);if(!j)return void g(c+" not initialized. Cannot call methods, i.e. "+f);var k=j[b];if(!k||"_"==b.charAt(0))return void g(f+" is not a valid method");var l=k.apply(j,d);e=void 0===e?l:e}),void 0!==e?e:a}function j(a,b){a.each(function(a,d){var e=h.data(d,c);e?(e.option(b),e._init()):(e=new f(d,b),h.data(d,c,e))})}h=h||b||a.jQuery,h&&(f.prototype.option||(f.prototype.option=function(a){h.isPlainObject(a)&&(this.options=h.extend(!0,this.options,a))}),h.fn[c]=function(a){if("string"==typeof a){var b=e.call(arguments,1);return i(this,a,b)}return j(this,a),this},d(h))}function d(a){!a||a&&a.bridget||(a.bridget=c)}var e=Array.prototype.slice,f=a.console,g="undefined"==typeof f?function(){}:function(a){f.error(a)};return d(b||a.jQuery),c}),function(a,b){"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",b):"object"==typeof module&&module.exports?module.exports=b():a.EvEmitter=b()}(this,function(){function a(){}
var b=a.prototype;return b.on=function(a,b){if(a&&b){var c=this._events=this._events||{},d=c[a]=c[a]||[];return d.indexOf(b)==-1&&d.push(b),this}},b.once=function(a,b){if(a&&b){this.on(a,b);var c=this._onceEvents=this._onceEvents||{},d=c[a]=c[a]||{};return d[b]=!0,this}},b.off=function(a,b){var c=this._events&&this._events[a];if(c&&c.length){var d=c.indexOf(b);return d!=-1&&c.splice(d,1),this}},b.emitEvent=function(a,b){var c=this._events&&this._events[a];if(c&&c.length){var d=0,e=c[d];b=b||[];for(var f=this._onceEvents&&this._onceEvents[a];e;){var g=f&&f[e];g&&(this.off(a,e),delete f[e]),e.apply(this,b),d+=g?0:1,e=c[d]}return this}},a}),function(a,b){"use strict";"function"==typeof define&&define.amd?define("get-size/get-size",[],function(){return b()}):"object"==typeof module&&module.exports?module.exports=b():a.getSize=b()}(window,function(){"use strict";function a(a){var b=parseFloat(a),c=a.indexOf("%")==-1&&!isNaN(b);return c&&b}function b(){}function c(){for(var a={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},b=0;b<j;b++){var c=i[b];a[c]=0}return a}function d(a){var b=getComputedStyle(a);return b||h("Style returned "+b+". Are you running this code in a hidden iframe on Firefox? See http://bit.ly/getsizebug1"),b}function e(){if(!k){k=!0;var b=document.createElement("div");b.style.width="200px",b.style.padding="1px 2px 3px 4px",b.style.borderStyle="solid",b.style.borderWidth="1px 2px 3px 4px",b.style.boxSizing="border-box";var c=document.body||document.documentElement;c.appendChild(b);var e=d(b);f.isBoxSizeOuter=g=200==a(e.width),c.removeChild(b)}}function f(b){if(e(),"string"==typeof b&&(b=document.querySelector(b)),b&&"object"==typeof b&&b.nodeType){var f=d(b);if("none"==f.display)return c();var h={};h.width=b.offsetWidth,h.height=b.offsetHeight;for(var k=h.isBorderBox="border-box"==f.boxSizing,l=0;l<j;l++){var m=i[l],n=f[m],o=parseFloat(n);h[m]=isNaN(o)?0:o}var p=h.paddingLeft+h.paddingRight,q=h.paddingTop+h.paddingBottom,r=h.marginLeft+h.marginRight,s=h.marginTop+h.marginBottom,t=h.borderLeftWidth+h.borderRightWidth,u=h.borderTopWidth+h.borderBottomWidth,v=k&&g,w=a(f.width);w!==!1&&(h.width=w+(v?0:p+t));var x=a(f.height);return x!==!1&&(h.height=x+(v?0:q+u)),h.innerWidth=h.width-(p+t),h.innerHeight=h.height-(q+u),h.outerWidth=h.width+r,h.outerHeight=h.height+s,h}}var g,h="undefined"==typeof console?b:function(a){console.error(a)},i=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],j=i.length,k=!1;return f}),function(a,b){"use strict";"function"==typeof define&&define.amd?define("desandro-matches-selector/matches-selector",b):"object"==typeof module&&module.exports?module.exports=b():a.matchesSelector=b()}(window,function(){"use strict";var a=function(){var a=Element.prototype;if(a.matches)return"matches";if(a.matchesSelector)return"matchesSelector";for(var b=["webkit","moz","ms","o"],c=0;c<b.length;c++){var d=b[c],e=d+"MatchesSelector";if(a[e])return e}}();return function(b,c){return b[a](c)}}),function(a,b){"function"==typeof define&&define.amd?define("fizzy-ui-utils/utils",["desandro-matches-selector/matches-selector"],function(c){return b(a,c)}):"object"==typeof module&&module.exports?module.exports=b(a,require("desandro-matches-selector")):a.fizzyUIUtils=b(a,a.matchesSelector)}(window,function(a,b){var c={};c.extend=function(a,b){for(var c in b)a[c]=b[c];return a},c.modulo=function(a,b){return(a%b+b)%b},c.makeArray=function(a){var b=[];if(Array.isArray(a))b=a;else if(a&&"number"==typeof a.length)for(var c=0;c<a.length;c++)b.push(a[c]);else b.push(a);return b},c.removeFrom=function(a,b){var c=a.indexOf(b);c!=-1&&a.splice(c,1)},c.getParent=function(a,c){for(;a!=document.body;)if(a=a.parentNode,b(a,c))return a},c.getQueryElement=function(a){return"string"==typeof a?document.querySelector(a):a},c.handleEvent=function(a){var b="on"+a.type;this[b]&&this[b](a)},c.filterFindElements=function(a,d){a=c.makeArray(a);var e=[];return a.forEach(function(a){if(a instanceof HTMLElement){if(!d)return void e.push(a);b(a,d)&&e.push(a);for(var c=a.querySelectorAll(d),f=0;f<c.length;f++)e.push(c[f])}}),e},c.debounceMethod=function(a,b,c){var d=a.prototype[b],e=b+"Timeout";a.prototype[b]=function(){var a=this[e];a&&clearTimeout(a);var b=arguments,f=this;this[e]=setTimeout(function(){d.apply(f,b),delete f[e]},c||100)}},c.docReady=function(a){"complete"==document.readyState?a():document.addEventListener("DOMContentLoaded",a)},c.toDashed=function(a){return a.replace(/(.)([A-Z])/g,function(a,b,c){return b+"-"+c}).toLowerCase()};var d=a.console;return c.htmlInit=function(b,e){c.docReady(function(){var f=c.toDashed(e),g="data-"+f,h=document.querySelectorAll("["+g+"]"),i=document.querySelectorAll(".js-"+f),j=c.makeArray(h).concat(c.makeArray(i)),k=g+"-options",l=a.jQuery;j.forEach(function(a){var c,f=a.getAttribute(g)||a.getAttribute(k);try{c=f&&JSON.parse(f)}catch(b){return void(d&&d.error("Error parsing "+g+" on "+a.className+": "+b))}var h=new b(a,c);l&&l.data(a,e,h)})})},c}),function(a,b){"function"==typeof define&&define.amd?define("outlayer/item",["ev-emitter/ev-emitter","get-size/get-size"],b):"object"==typeof module&&module.exports?module.exports=b(require("ev-emitter"),require("get-size")):(a.Outlayer={},a.Outlayer.Item=b(a.EvEmitter,a.getSize))}(window,function(a,b){"use strict";function c(a){for(var b in a)return!1;return b=null,!0}function d(a,b){a&&(this.element=a,this.layout=b,this.position={x:0,y:0},this._create())}function e(a){return a.replace(/([A-Z])/g,function(a){return"-"+a.toLowerCase()})}var f=document.documentElement.style,g="string"==typeof f.transition?"transition":"WebkitTransition",h="string"==typeof f.transform?"transform":"WebkitTransform",i={WebkitTransition:"webkitTransitionEnd",transition:"transitionend"}[g],j={transform:h,transition:g,transitionDuration:g+"Duration",transitionProperty:g+"Property",transitionDelay:g+"Delay"},k=d.prototype=Object.create(a.prototype);k.constructor=d,k._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}},this.css({position:"absolute"})},k.handleEvent=function(a){var b="on"+a.type;this[b]&&this[b](a)},k.getSize=function(){this.size=b(this.element)},k.css=function(a){var b=this.element.style;for(var c in a){var d=j[c]||c;b[d]=a[c]}},k.getPosition=function(){var a=getComputedStyle(this.element),b=this.layout._getOption("originLeft"),c=this.layout._getOption("originTop"),d=a[b?"left":"right"],e=a[c?"top":"bottom"],f=this.layout.size,g=d.indexOf("%")!=-1?parseFloat(d)/100*f.width:parseInt(d,10),h=e.indexOf("%")!=-1?parseFloat(e)/100*f.height:parseInt(e,10);g=isNaN(g)?0:g,h=isNaN(h)?0:h,g-=b?f.paddingLeft:f.paddingRight,h-=c?f.paddingTop:f.paddingBottom,this.position.x=g,this.position.y=h},k.layoutPosition=function(){var a=this.layout.size,b={},c=this.layout._getOption("originLeft"),d=this.layout._getOption("originTop"),e=c?"paddingLeft":"paddingRight",f=c?"left":"right",g=c?"right":"left",h=this.position.x+a[e];b[f]=this.getXValue(h),b[g]="";var i=d?"paddingTop":"paddingBottom",j=d?"top":"bottom",k=d?"bottom":"top",l=this.position.y+a[i];b[j]=this.getYValue(l),b[k]="",this.css(b),this.emitEvent("layout",[this])},k.getXValue=function(a){var b=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&!b?a/this.layout.size.width*100+"%":a+"px"},k.getYValue=function(a){var b=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&b?a/this.layout.size.height*100+"%":a+"px"},k._transitionTo=function(a,b){this.getPosition();var c=this.position.x,d=this.position.y,e=parseInt(a,10),f=parseInt(b,10),g=e===this.position.x&&f===this.position.y;if(this.setPosition(a,b),g&&!this.isTransitioning)return void this.layoutPosition();var h=a-c,i=b-d,j={};j.transform=this.getTranslate(h,i),this.transition({to:j,onTransitionEnd:{transform:this.layoutPosition},isCleaning:!0})},k.getTranslate=function(a,b){var c=this.layout._getOption("originLeft"),d=this.layout._getOption("originTop");return a=c?a:-a,b=d?b:-b,"translate3d("+a+"px, "+b+"px, 0)"},k.goTo=function(a,b){this.setPosition(a,b),this.layoutPosition()},k.moveTo=k._transitionTo,k.setPosition=function(a,b){this.position.x=parseInt(a,10),this.position.y=parseInt(b,10)},k._nonTransition=function(a){this.css(a.to),a.isCleaning&&this._removeStyles(a.to);for(var b in a.onTransitionEnd)a.onTransitionEnd[b].call(this)},k.transition=function(a){if(!parseFloat(this.layout.options.transitionDuration))return void this._nonTransition(a);var b=this._transn;for(var c in a.onTransitionEnd)b.onEnd[c]=a.onTransitionEnd[c];for(c in a.to)b.ingProperties[c]=!0,a.isCleaning&&(b.clean[c]=!0);if(a.from){this.css(a.from);var d=this.element.offsetHeight;d=null}this.enableTransition(a.to),this.css(a.to),this.isTransitioning=!0};var l="opacity,"+e(h);k.enableTransition=function(){if(!this.isTransitioning){var a=this.layout.options.transitionDuration;a="number"==typeof a?a+"ms":a,this.css({transitionProperty:l,transitionDuration:a,transitionDelay:this.staggerDelay||0}),this.element.addEventListener(i,this,!1)}},k.onwebkitTransitionEnd=function(a){this.ontransitionend(a)},k.onotransitionend=function(a){this.ontransitionend(a)};var m={"-webkit-transform":"transform"};k.ontransitionend=function(a){if(a.target===this.element){var b=this._transn,d=m[a.propertyName]||a.propertyName;if(delete b.ingProperties[d],c(b.ingProperties)&&this.disableTransition(),d in b.clean&&(this.element.style[a.propertyName]="",delete b.clean[d]),d in b.onEnd){var e=b.onEnd[d];e.call(this),delete b.onEnd[d]}this.emitEvent("transitionEnd",[this])}},k.disableTransition=function(){this.removeTransitionStyles(),this.element.removeEventListener(i,this,!1),this.isTransitioning=!1},k._removeStyles=function(a){var b={};for(var c in a)b[c]="";this.css(b)};var n={transitionProperty:"",transitionDuration:"",transitionDelay:""};return k.removeTransitionStyles=function(){this.css(n)},k.stagger=function(a){a=isNaN(a)?0:a,this.staggerDelay=a+"ms"},k.removeElem=function(){this.element.parentNode.removeChild(this.element),this.css({display:""}),this.emitEvent("remove",[this])},k.remove=function(){return g&&parseFloat(this.layout.options.transitionDuration)?(this.once("transitionEnd",function(){this.removeElem()}),void this.hide()):void this.removeElem()},k.reveal=function(){delete this.isHidden,this.css({display:""});var a=this.layout.options,b={},c=this.getHideRevealTransitionEndProperty("visibleStyle");b[c]=this.onRevealTransitionEnd,this.transition({from:a.hiddenStyle,to:a.visibleStyle,isCleaning:!0,onTransitionEnd:b})},k.onRevealTransitionEnd=function(){this.isHidden||this.emitEvent("reveal")},k.getHideRevealTransitionEndProperty=function(a){var b=this.layout.options[a];if(b.opacity)return"opacity";for(var c in b)return c},k.hide=function(){this.isHidden=!0,this.css({display:""});var a=this.layout.options,b={},c=this.getHideRevealTransitionEndProperty("hiddenStyle");b[c]=this.onHideTransitionEnd,this.transition({from:a.visibleStyle,to:a.hiddenStyle,isCleaning:!0,onTransitionEnd:b})},k.onHideTransitionEnd=function(){this.isHidden&&(this.css({display:"none"}),this.emitEvent("hide"))},k.destroy=function(){this.css({position:"",left:"",right:"",top:"",bottom:"",transition:"",transform:""})},d}),function(a,b){"use strict";"function"==typeof define&&define.amd?define("outlayer/outlayer",["ev-emitter/ev-emitter","get-size/get-size","fizzy-ui-utils/utils","./item"],function(c,d,e,f){return b(a,c,d,e,f)}):"object"==typeof module&&module.exports?module.exports=b(a,require("ev-emitter"),require("get-size"),require("fizzy-ui-utils"),require("./item")):a.Outlayer=b(a,a.EvEmitter,a.getSize,a.fizzyUIUtils,a.Outlayer.Item)}(window,function(a,b,c,d,e){"use strict";function f(a,b){var c=d.getQueryElement(a);if(!c)return void(i&&i.error("Bad element for "+this.constructor.namespace+": "+(c||a)));this.element=c,j&&(this.$element=j(this.element)),this.options=d.extend({},this.constructor.defaults),this.option(b);var e=++l;this.element.outlayerGUID=e,m[e]=this,this._create();var f=this._getOption("initLayout");f&&this.layout()}function g(a){function b(){a.apply(this,arguments)}return b.prototype=Object.create(a.prototype),b.prototype.constructor=b,b}function h(a){if("number"==typeof a)return a;var b=a.match(/(^\d*\.?\d*)(\w*)/),c=b&&b[1],d=b&&b[2];if(!c.length)return 0;c=parseFloat(c);var e=o[d]||1;return c*e}var i=a.console,j=a.jQuery,k=function(){},l=0,m={};f.namespace="outlayer",f.Item=e,f.defaults={containerStyle:{position:"relative"},initLayout:!0,originLeft:!0,originTop:!0,resize:!0,resizeContainer:!0,equalheight:!1,transitionDuration:"0.4s",hiddenStyle:{opacity:0,transform:"scale(0.001)"},visibleStyle:{opacity:1,transform:"scale(1)"}};var n=f.prototype;d.extend(n,b.prototype),n.option=function(a){d.extend(this.options,a)},n._getOption=function(a){var b=this.constructor.compatOptions[a];return b&&void 0!==this.options[b]?this.options[b]:this.options[a]},f.compatOptions={initLayout:"isInitLayout",horizontal:"isHorizontal",layoutInstant:"isLayoutInstant",originLeft:"isOriginLeft",originTop:"isOriginTop",resize:"isResizeBound",resizeContainer:"isResizingContainer"},n._create=function(){this.reloadItems(),this.stamps=[],this.stamp(this.options.stamp),d.extend(this.element.style,this.options.containerStyle);var a=this._getOption("resize");a&&this.bindResize()},n.reloadItems=function(){this.items=this._itemize(this.element.children)},n._itemize=function(a){for(var b=this._filterFindItemElements(a),c=this.constructor.Item,d=[],e=0;e<b.length;e++){var f=b[e],g=new c(f,this);d.push(g)}return d},n._filterFindItemElements=function(a){return d.filterFindElements(a,this.options.itemSelector)},n.getItemElements=function(){return this.items.map(function(a){return a.element})},n.layout=function(){this._resetLayout(),this._manageStamps();var a=this._getOption("layoutInstant"),b=void 0!==a?a:!this._isLayoutInited;this.layoutItems(this.items,b),this._isLayoutInited=!0},n._init=n.layout,n._resetLayout=function(){this.getSize()},n.getSize=function(){this.size=c(this.element)},n._getMeasurement=function(a,b){var d,e=this.options[a];e?("string"==typeof e?d=this.element.querySelector(e):e instanceof HTMLElement&&(d=e),this[a]=d?c(d)[b]:e):this[a]=0},n.layoutItems=function(a,b){a=this._getItemsForLayout(a),this._layoutItems(a,b),this._postLayout()},n._getItemsForLayout=function(a){return a.filter(function(a){return!a.isIgnored})},n._layoutItems=function(a,b){if(this._emitCompleteOnItems("layout",a),a&&a.length){var c=[];a.forEach(function(a){var d=this._getItemLayoutPosition(a);d.item=a,d.isInstant=b||a.isLayoutInstant,c.push(d)},this),this._processLayoutQueue(c)}},n._getItemLayoutPosition=function(){return{x:0,y:0}},n._processLayoutQueue=function(a){this.updateStagger(),a.forEach(function(a,b){this._positionItem(a.item,a.x,a.y,a.isInstant,b)},this)},n.updateStagger=function(){var a=this.options.stagger;return null===a||void 0===a?void(this.stagger=0):(this.stagger=h(a),this.stagger)},n._positionItem=function(a,b,c,d,e){d?a.goTo(b,c):(a.stagger(e*this.stagger),a.moveTo(b,c))},n._postLayout=function(){this.resizeContainer()},n.resizeContainer=function(){var a=this._getOption("resizeContainer");if(a){var b=this._getContainerSize();b&&(this._setContainerMeasure(b.width,!0),this._setContainerMeasure(b.height,!1))}},n._getContainerSize=k,n._setContainerMeasure=function(a,b){if(void 0!==a){var c=this.size;c.isBorderBox&&(a+=b?c.paddingLeft+c.paddingRight+c.borderLeftWidth+c.borderRightWidth:c.paddingBottom+c.paddingTop+c.borderTopWidth+c.borderBottomWidth),a=Math.max(a,0),this.element.style[b?"width":"height"]=a+"px"}},n._emitCompleteOnItems=function(a,b){function c(){e.dispatchEvent(a+"Complete",null,[b])}function d(){g++,g==f&&c()}var e=this,f=b.length;if(!b||!f)return void c();var g=0;b.forEach(function(b){b.once(a,d)})},n.dispatchEvent=function(a,b,c){var d=b?[b].concat(c):c;if(this.emitEvent(a,d),j)if(this.$element=this.$element||j(this.element),b){var e=j.Event(b);e.type=a,this.$element.trigger(e,c)}else this.$element.trigger(a,c)},n.ignore=function(a){var b=this.getItem(a);b&&(b.isIgnored=!0)},n.unignore=function(a){var b=this.getItem(a);b&&delete b.isIgnored},n.stamp=function(a){a=this._find(a),a&&(this.stamps=this.stamps.concat(a),a.forEach(this.ignore,this))},n.unstamp=function(a){a=this._find(a),a&&a.forEach(function(a){d.removeFrom(this.stamps,a),this.unignore(a)},this)},n._find=function(a){if(a)return"string"==typeof a&&(a=this.element.querySelectorAll(a)),a=d.makeArray(a)},n._manageStamps=function(){this.stamps&&this.stamps.length&&(this._getBoundingRect(),this.stamps.forEach(this._manageStamp,this))},n._getBoundingRect=function(){var a=this.element.getBoundingClientRect(),b=this.size;this._boundingRect={left:a.left+b.paddingLeft+b.borderLeftWidth,top:a.top+b.paddingTop+b.borderTopWidth,right:a.right-(b.paddingRight+b.borderRightWidth),bottom:a.bottom-(b.paddingBottom+b.borderBottomWidth)}},n._manageStamp=k,n._getElementOffset=function(a){var b=a.getBoundingClientRect(),d=this._boundingRect,e=c(a),f={left:b.left-d.left-e.marginLeft,top:b.top-d.top-e.marginTop,right:d.right-b.right-e.marginRight,bottom:d.bottom-b.bottom-e.marginBottom};return f},n.handleEvent=d.handleEvent,n.bindResize=function(){a.addEventListener("resize",this),this.isResizeBound=!0},n.unbindResize=function(){a.removeEventListener("resize",this),this.isResizeBound=!1},n.onresize=function(){this.resize()},d.debounceMethod(f,"onresize",100),n.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&this.layout()},n.needsResizeLayout=function(){var a=c(this.element),b=this.size&&a;return b&&a.innerWidth!==this.size.innerWidth},n.addItems=function(a){var b=this._itemize(a);return b.length&&(this.items=this.items.concat(b)),b},n.appended=function(a){var b=this.addItems(a);b.length&&(this.layoutItems(b,!0),this.reveal(b))},n.prepended=function(a){var b=this._itemize(a);if(b.length){var c=this.items.slice(0);this.items=b.concat(c),this._resetLayout(),this._manageStamps(),this.layoutItems(b,!0),this.reveal(b),this.layoutItems(c)}},n.reveal=function(a){if(this._emitCompleteOnItems("reveal",a),a&&a.length){var b=this.updateStagger();a.forEach(function(a,c){a.stagger(c*b),a.reveal()})}},n.hide=function(a){if(this._emitCompleteOnItems("hide",a),a&&a.length){var b=this.updateStagger();a.forEach(function(a,c){a.stagger(c*b),a.hide()})}},n.revealItemElements=function(a){var b=this.getItems(a);this.reveal(b)},n.hideItemElements=function(a){var b=this.getItems(a);this.hide(b)},n.getItem=function(a){for(var b=0;b<this.items.length;b++){var c=this.items[b];if(c.element==a)return c}},n.getItems=function(a){a=d.makeArray(a);var b=[];return a.forEach(function(a){var c=this.getItem(a);c&&b.push(c)},this),b},n.remove=function(a){var b=this.getItems(a);this._emitCompleteOnItems("remove",b),b&&b.length&&b.forEach(function(a){a.remove(),d.removeFrom(this.items,a)},this)},n.destroy=function(){var a=this.element.style;a.height="",a.position="",a.width="",this.items.forEach(function(a){a.destroy()}),this.unbindResize();var b=this.element.outlayerGUID;delete m[b],delete this.element.outlayerGUID,j&&j.removeData(this.element,this.constructor.namespace)},f.data=function(a){a=d.getQueryElement(a);var b=a&&a.outlayerGUID;return b&&m[b]},f.create=function(a,b){var c=g(f);return c.defaults=d.extend({},f.defaults),d.extend(c.defaults,b),c.compatOptions=d.extend({},f.compatOptions),c.namespace=a,c.data=f.data,c.Item=g(e),d.htmlInit(c,a),j&&j.bridget&&j.bridget(a,c),c};var o={ms:1,s:1e3};return f.Item=e,f}),function(a,b){"function"==typeof define&&define.amd?define("isotope/item",["outlayer/outlayer"],b):"object"==typeof module&&module.exports?module.exports=b(require("outlayer")):(a.Isotope=a.Isotope||{},a.Isotope.Item=b(a.Outlayer))}(window,function(a){"use strict";function b(){a.Item.apply(this,arguments)}var c=b.prototype=Object.create(a.Item.prototype),d=c._create;c._create=function(){this.id=this.layout.itemGUID++,d.call(this),this.sortData={}},c.updateSortData=function(){if(!this.isIgnored){this.sortData.id=this.id,this.sortData["original-order"]=this.id,this.sortData.random=Math.random();var a=this.layout.options.getSortData,b=this.layout._sorters;for(var c in a){var d=b[c];this.sortData[c]=d(this.element,this)}}};var e=c.destroy;return c.destroy=function(){e.apply(this,arguments),this.css({display:""})},b}),function(a,b){"function"==typeof define&&define.amd?define("isotope/layout-mode",["get-size/get-size","outlayer/outlayer"],b):"object"==typeof module&&module.exports?module.exports=b(require("get-size"),require("outlayer")):(a.Isotope=a.Isotope||{},a.Isotope.LayoutMode=b(a.getSize,a.Outlayer))}(window,function(a,b){"use strict";function c(a){this.isotope=a,a&&(this.options=a.options[this.namespace],this.element=a.element,this.items=a.filteredItems,this.size=a.size)}var d=c.prototype,e=["_resetLayout","_getItemLayoutPosition","_manageStamp","_getContainerSize","_getElementOffset","needsResizeLayout","_getOption"];return e.forEach(function(a){d[a]=function(){return b.prototype[a].apply(this.isotope,arguments)}}),d.needsVerticalResizeLayout=function(){var b=a(this.isotope.element),c=this.isotope.size&&b;return c&&b.innerHeight!=this.isotope.size.innerHeight},d._getMeasurement=function(){this.isotope._getMeasurement.apply(this,arguments)},d.getColumnWidth=function(){this.getSegmentSize("column","Width")},d.getRowHeight=function(){this.getSegmentSize("row","Height")},d.getSegmentSize=function(a,b){var c=a+b,d="outer"+b;if(this._getMeasurement(c,d),!this[c]){var e=this.getFirstItemSize();this[c]=e&&e[d]||this.isotope.size["inner"+b]}},d.getFirstItemSize=function(){var b=this.isotope.filteredItems[0];return b&&b.element&&a(b.element)},d.layout=function(){this.isotope.layout.apply(this.isotope,arguments)},d.getSize=function(){this.isotope.getSize(),this.size=this.isotope.size},c.modes={},c.create=function(a,b){function e(){c.apply(this,arguments)}return e.prototype=Object.create(d),e.prototype.constructor=e,b&&(e.options=b),e.prototype.namespace=a,c.modes[a]=e,e},c}),function(a,b){"function"==typeof define&&define.amd?define("masonry/masonry",["outlayer/outlayer","get-size/get-size"],b):"object"==typeof module&&module.exports?module.exports=b(require("outlayer"),require("get-size")):a.Masonry=b(a.Outlayer,a.getSize)}(window,function(a,b){var c=a.create("masonry");return c.compatOptions.fitWidth="isFitWidth",c.prototype._resetLayout=function(){this.getSize(),this._getMeasurement("columnWidth","outerWidth"),this._getMeasurement("gutter","outerWidth"),this.measureColumns(),this.colYs=[];for(var a=0;a<this.cols;a++)this.colYs.push(0);this.maxY=0},c.prototype.measureColumns=function(){if(this.getContainerWidth(),!this.columnWidth){var a=this.items[0],c=a&&a.element;this.columnWidth=c&&b(c).outerWidth||this.containerWidth}var d=this.columnWidth+=this.gutter,e=this.containerWidth+this.gutter,f=e/d,g=d-e%d,h=g&&g<1?"round":"floor";f=Math[h](f),this.cols=Math.max(f,1)},c.prototype.getContainerWidth=function(){var a=this._getOption("fitWidth"),c=a?this.element.parentNode:this.element,d=b(c);this.containerWidth=d&&d.innerWidth},c.prototype._getItemLayoutPosition=function(a){a.getSize();var b=a.size.outerWidth%this.columnWidth,c=b&&b<1?"round":"ceil",d=Math[c](a.size.outerWidth/this.columnWidth);d=Math.min(d,this.cols);for(var e=this._getColGroup(d),f=Math.min.apply(Math,e),g=e.indexOf(f),h={x:this.columnWidth*g,y:f},i=f+a.size.outerHeight,j=this.cols+1-e.length,k=0;k<j;k++)this.colYs[g+k]=i;return h},c.prototype._getColGroup=function(a){if(a<2)return this.colYs;for(var b=[],c=this.cols+1-a,d=0;d<c;d++){var e=this.colYs.slice(d,d+a);b[d]=Math.max.apply(Math,e)}return b},c.prototype._manageStamp=function(a){var c=b(a),d=this._getElementOffset(a),e=this._getOption("originLeft"),f=e?d.left:d.right,g=f+c.outerWidth,h=Math.floor(f/this.columnWidth);h=Math.max(0,h);var i=Math.floor(g/this.columnWidth);i-=g%this.columnWidth?0:1,i=Math.min(this.cols-1,i);for(var j=this._getOption("originTop"),k=(j?d.top:d.bottom)+c.outerHeight,l=h;l<=i;l++)this.colYs[l]=Math.max(k,this.colYs[l])},c.prototype._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var a={height:this.maxY};return this._getOption("fitWidth")&&(a.width=this._getContainerFitWidth()),a},c.prototype._getContainerFitWidth=function(){for(var a=0,b=this.cols;--b&&0===this.colYs[b];)a++;return(this.cols-a)*this.columnWidth-this.gutter},c.prototype.needsResizeLayout=function(){var a=this.containerWidth;return this.getContainerWidth(),a!=this.containerWidth},c}),function(a,b){"function"==typeof define&&define.amd?define("isotope/layout-modes/masonry",["../layout-mode","masonry/masonry"],b):"object"==typeof module&&module.exports?module.exports=b(require("../layout-mode"),require("masonry-layout")):b(a.Isotope.LayoutMode,a.Masonry)}(window,function(a,b){"use strict";var c=a.create("masonry"),d=c.prototype,e={_getElementOffset:!0,layout:!0,_getMeasurement:!0};for(var f in b.prototype)e[f]||(d[f]=b.prototype[f]);var g=d.measureColumns;d.measureColumns=function(){this.items=this.isotope.filteredItems,g.call(this)};var h=d._getOption;return d._getOption=function(a){return"fitWidth"==a?void 0!==this.options.isFitWidth?this.options.isFitWidth:this.options.fitWidth:h.apply(this.isotope,arguments)},c}),function(a,b){"function"==typeof define&&define.amd?define("isotope/layout-modes/fit-rows",["../layout-mode"],b):"object"==typeof exports?module.exports=b(require("../layout-mode")):b(a.Isotope.LayoutMode)}(window,function(a){"use strict";var b=a.create("fitRows"),c=b.prototype;return c._resetLayout=function(){this.x=0,this.y=0,this.maxY=0,this._getMeasurement("gutter","outerWidth")},c._getItemLayoutPosition=function(a){a.getSize();var b=a.size.outerWidth+this.gutter,c=this.isotope.size.innerWidth+this.gutter;0!==this.x&&b+this.x>c&&(this.x=0,this.y=this.maxY);var d={x:this.x,y:this.y};return this.maxY=Math.max(this.maxY,this.y+a.size.outerHeight),this.x+=b,d},c._getContainerSize=function(){return{height:this.maxY}},b}),function(a,b){"function"==typeof define&&define.amd?define("isotope/layout-modes/vertical",["../layout-mode"],b):"object"==typeof module&&module.exports?module.exports=b(require("../layout-mode")):b(a.Isotope.LayoutMode)}(window,function(a){"use strict";var b=a.create("vertical",{horizontalAlignment:0}),c=b.prototype;return c._resetLayout=function(){this.y=0},c._getItemLayoutPosition=function(a){a.getSize();var b=(this.isotope.size.innerWidth-a.size.outerWidth)*this.options.horizontalAlignment,c=this.y;return this.y+=a.size.outerHeight,{x:b,y:c}},c._getContainerSize=function(){return{height:this.y}},b}),function(a,b){"function"==typeof define&&define.amd?define(["outlayer/outlayer","get-size/get-size","desandro-matches-selector/matches-selector","fizzy-ui-utils/utils","./item","./layout-mode","./layout-modes/masonry","./layout-modes/fit-rows","./layout-modes/vertical"],function(c,d,e,f,g,h){return b(a,c,d,e,f,g,h)}):"object"==typeof module&&module.exports?module.exports=b(a,require("outlayer"),require("get-size"),require("desandro-matches-selector"),require("fizzy-ui-utils"),require("./item"),require("./layout-mode"),require("./layout-modes/masonry"),require("./layout-modes/fit-rows"),require("./layout-modes/vertical")):a.Isotope=b(a,a.Outlayer,a.getSize,a.matchesSelector,a.fizzyUIUtils,a.Isotope.Item,a.Isotope.LayoutMode)}(window,function(a,b,c,d,e,f,g){function h(a,b){return function(c,d){for(var e=0;e<a.length;e++){var f=a[e],g=c.sortData[f],h=d.sortData[f];if(g>h||g<h){var i=void 0!==b[f]?b[f]:b,j=i?1:-1;return(g>h?1:-1)*j}}return 0}}function i(a){var b=a.create("fitRows");return b.prototype._resetLayout=function(){if(this.x=0,this.y=0,this.maxY=0,this.row=0,this.rows=[],this._getMeasurement("gutter","outerWidth"),this.isotope.options.equalheight)for(var a=0;a<this.isotope.items.length;a++)this.isotope.items[a].css({height:"auto"});console.log(this.isotope.options.equalheight)},b.prototype._getItemLayoutPosition=function(a){a.getSize();var b=a.size.outerWidth,c=Math.ceil(this.isotope.size.innerWidth+1);0!==this.x&&b+this.x>c&&(this.x=0,this.y=this.maxY),0==this.x&&0!=this.y&&this.row++;var d={x:this.x,y:this.y};return this.maxY=Math.max(this.maxY,this.y+a.size.outerHeight),this.x+=b,"undefined"==typeof this.rows[this.row]?(this.rows[this.row]=[],this.rows[this.row].start=this.y,this.rows[this.row].end=this.maxY):this.rows[this.row].end=Math.max(this.rows[this.row].end,this.maxY),a.row=this.row,d},b.prototype._equalHeight=function(){for(var a=0;a<this.isotope.items.length;a++){var b=this.isotope.items[a].row,c=this.rows[b];if(c){var d=c.end-c.start;d-=this.isotope.items[a].size.borderTopWidth+this.isotope.items[a].size.borderBottomWidth,d-=this.isotope.items[a].size.marginTop+this.isotope.items[a].size.marginBottom,d-=this.gutter.height||0,0==this.isotope.items[a].size.isBorderBox&&(d-=this.isotope.items[a].size.paddingTop+this.isotope.items[a].size.paddingBottom),this.isotope.items[a].size.height=d,this.isotope.items[a].css({height:d.toString()+"px"})}}},b.prototype._getContainerSize=function(){return this.isotope.options.equalheight&&this._equalHeight(),{height:this.maxY}},b}var j=a.jQuery,k=String.prototype.trim?function(a){return a.trim()}:function(a){return a.replace(/^\s+|\s+$/g,"")},l=b.create("isotope",{layoutMode:"masonry",isJQueryFiltering:!0,sortAscending:!0});l.Item=f,l.LayoutMode=g;var m=l.prototype;m._create=function(){this.itemGUID=0,this._sorters={},this._getSorters(),b.prototype._create.call(this),this.modes={},this.filteredItems=this.items,this.sortHistory=["original-order"];for(var a in g.modes)this._initLayoutMode(a)},m.reloadItems=function(){this.itemGUID=0,b.prototype.reloadItems.call(this)},m._itemize=function(){for(var a=b.prototype._itemize.apply(this,arguments),c=0;c<a.length;c++){var d=a[c];d.id=this.itemGUID++}return this._updateItemsSortData(a),a},m._initLayoutMode=function(a){var b=g.modes[a],c=this.options[a]||{};this.options[a]=b.options?e.extend(b.options,c):c,this.modes[a]=new b(this)},m.layout=function(){return!this._isLayoutInited&&this._getOption("initLayout")?void this.arrange():void this._layout()},m._layout=function(){var a=this._getIsInstant();this._resetLayout(),this._manageStamps(),this.layoutItems(this.filteredItems,a),this._isLayoutInited=!0},m.arrange=function(a){this.option(a),this._getIsInstant();var b=this._filter(this.items);this.filteredItems=b.matches,this._bindArrangeComplete(),this._isInstant?this._noTransition(this._hideReveal,[b]):this._hideReveal(b),this._sort(),this._layout()},m._init=m.arrange,m._hideReveal=function(a){this.reveal(a.needReveal),this.hide(a.needHide)},m._getIsInstant=function(){var a=this._getOption("layoutInstant"),b=void 0!==a?a:!this._isLayoutInited;return this._isInstant=b,b},m._bindArrangeComplete=function(){function a(){b&&c&&d&&e.dispatchEvent("arrangeComplete",null,[e.filteredItems])}var b,c,d,e=this;this.once("layoutComplete",function(){b=!0,a()}),this.once("hideComplete",function(){c=!0,a()}),this.once("revealComplete",function(){d=!0,a()})},m._filter=function(a){var b=this.options.filter;b=b||"*";for(var c=[],d=[],e=[],f=this._getFilterTest(b),g=0;g<a.length;g++){var h=a[g];if(!h.isIgnored){var i=f(h);i&&c.push(h),i&&h.isHidden?d.push(h):i||h.isHidden||e.push(h)}}return{matches:c,needReveal:d,needHide:e}},m._getFilterTest=function(a){return j&&this.options.isJQueryFiltering?function(b){return j(b.element).is(a)}:"function"==typeof a?function(b){return a(b.element)}:function(b){return d(b.element,a)}},m.updateSortData=function(a){var b;a?(a=e.makeArray(a),b=this.getItems(a)):b=this.items,this._getSorters(),this._updateItemsSortData(b)},m._getSorters=function(){var a=this.options.getSortData;for(var b in a){var c=a[b];this._sorters[b]=n(c)}},m._updateItemsSortData=function(a){for(var b=a&&a.length,c=0;b&&c<b;c++){var d=a[c];d.updateSortData()}};var n=function(){function a(a){if("string"!=typeof a)return a;
var c=k(a).split(" "),d=c[0],e=d.match(/^\[(.+)\]$/),f=e&&e[1],g=b(f,d),h=l.sortDataParsers[c[1]];return a=h?function(a){return a&&h(g(a))}:function(a){return a&&g(a)}}function b(a,b){return a?function(b){return b.getAttribute(a)}:function(a){var c=a.querySelector(b);return c&&c.textContent}}return a}();l.sortDataParsers={parseInt:function(a){return parseInt(a,10)},parseFloat:function(a){return parseFloat(a)}},m._sort=function(){var a=this.options.sortBy;if(a){var b=[].concat.apply(a,this.sortHistory),c=h(b,this.options.sortAscending);this.filteredItems.sort(c),a!=this.sortHistory[0]&&this.sortHistory.unshift(a)}},m._mode=function(){var a=this.options.layoutMode,b=this.modes[a];if(!b)throw new Error("No layout mode: "+a);return b.options=this.options[a],b},m._resetLayout=function(){b.prototype._resetLayout.call(this),this._mode()._resetLayout()},m._getItemLayoutPosition=function(a){return this._mode()._getItemLayoutPosition(a)},m._manageStamp=function(a){this._mode()._manageStamp(a)},m._getContainerSize=function(){return this._mode()._getContainerSize()},m.needsResizeLayout=function(){return this._mode().needsResizeLayout()},m.appended=function(a){var b=this.addItems(a);if(b.length){var c=this._filterRevealAdded(b);this.filteredItems=this.filteredItems.concat(c)}},m.prepended=function(a){var b=this._itemize(a);if(b.length){this._resetLayout(),this._manageStamps();var c=this._filterRevealAdded(b);this.layoutItems(this.filteredItems),this.filteredItems=c.concat(this.filteredItems),this.items=b.concat(this.items)}},m._filterRevealAdded=function(a){var b=this._filter(a);return this.hide(b.needHide),this.reveal(b.matches),this.layoutItems(b.matches,!0),b.matches},m.insert=function(a){var b=this.addItems(a);if(b.length){var c,d,e=b.length;for(c=0;c<e;c++)d=b[c],this.element.appendChild(d.element);var f=this._filter(b).matches;for(c=0;c<e;c++)b[c].isLayoutInstant=!0;for(this.arrange(),c=0;c<e;c++)delete b[c].isLayoutInstant;this.reveal(f)}};var o=m.remove;return m.remove=function(a){a=e.makeArray(a);var b=this.getItems(a);o.call(this,a);for(var c=b&&b.length,d=0;c&&d<c;d++){var f=b[d];e.removeFrom(this.filteredItems,f)}},m.shuffle=function(){for(var a=0;a<this.items.length;a++){var b=this.items[a];b.sortData.random=Math.random()}this.options.sortBy="random",this._sort(),this._layout()},m._noTransition=function(a,b){var c=this.options.transitionDuration;this.options.transitionDuration=0;var d=a.apply(this,b);return this.options.transitionDuration=c,d},m.getFilteredItemElements=function(){return this.filteredItems.map(function(a){return a.element})},"function"==typeof define&&define.amd?define(["../layout-mode"],i):"object"==typeof exports?module.exports=i(require("../layout-mode")):i(a.Isotope.LayoutMode),l}),function(a,b,c,d){var e=(a(c),a(b));return a.fn.Filterade=function(b){var c,d,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y;return i={useFilters:!1,useSorting:!1,filterControls:".filter-controls",sortControls:".sort-controls",orderControls:".order-controls",controlsSelecter:"input",controlsSelecterChecked:'input[checked="checked"]',defaultFilter:"all",defaultSort:"date",defaultOrder:"desc",selectAll:"all",paginationMode:"pages",pageLimit:15,pageControls:".page-controls",previousButtonClass:"nav-prev",previousButtonLabel:'<i class="fa fa-long-arrow-left" aria-hidden="true"></i>',nextButtonClass:"nav-next",nextButtonLabel:'<i class="fa fa-long-arrow-right" aria-hidden="true"></i>',loadMoreButtonClass:"button-load-more",loadMoreButtonLabel:"Load more",pagerClass:"page",activeClass:"act",log:!1},h=a(this),s=b.paginationMode||i.paginationMode,t=a(b.pageControls||i.pageControls),j=a(b.filterControls||i.filterControls),k=a(b.sortControls||i.sortControls),l=a(b.orderControls||i.orderControls),m=b.controlsSelecter||i.controlsSelecter,n=b.controlsSelecterChecked||i.controlsSelecterChecked,d=1,r=a([]),r.$nodesCache=a([]),h.children("article").each(function(){var b=a(this);r.push({node:this,$node:b,name:b.attr("data-name"),date:new Date(b.attr("data-date"))}),r.$nodesCache.push(this)}),u=Math.ceil(r.length/b.pageLimit),p=function(){var a;"pages"!==s&&"load-more"!==s||(a=0,r.each(function(){if(this.$node.hasClass("visible"))return a++}),u=Math.ceil(a/(b.pageLimit||i.pageLimit)))},v=function(){if("pages"===s){var c,e;if(t.empty(),u>1){1!==d&&t.prepend('<a href="#" class="'+(b.previousButtonClass||i.previousButtonClass)+'">'+(b.previousButtonLabel||i.previousButtonLabel)+"</a>");var f=5,g=f-1,j=Math.floor(g/2),k=Math.ceil(g/2),l=Math.max(d-j,1),m=d+k;l<=j&&(m=l+g),m>u&&(l=Math.max(u-g,1),m=u);var n=a('<div style="display: none;"></div>'),o=a('<div style="display: none;"></div>');for(c=e=1;1<=u?e<=u:e>=u;c=1<=u?++e:--e)c<l&&1!=c?n.append('<a href="#" class="'+(b.pagerClass||i.pagerClass)+'" data-page="'+ +c+'">'+c+"</a>"):(c==l&&n.children().length&&t.append(n),c>m&&c!=u?o.append('<a href="#" class="'+(b.pagerClass||i.pagerClass)+'" data-page="'+ +c+'">'+c+"</a>"):(c==u&&o.children().length&&t.append(o),t.append('<a href="#" class="'+(b.pagerClass||i.pagerClass)+'" data-page="'+ +c+'">'+c+"</a>")));return d<u&&t.append('<a href="#" class="'+(b.nextButtonClass||i.nextButtonClass)+'">'+(b.nextButtonLabel||i.nextButtonLabel)+"</a>"),t.find('a[data-page="'+d+'"]').addClass(b.activeClass||i.activeClass),t.find("a."+(b.pagerClass||i.pagerClass)).click(function(c){c.preventDefault(),d=parseInt(a(this).attr("data-page")),t.find("a."+(b.activeClass||i.activeClass)).removeClass(b.activeClass||i.activeClass),t.find('a[data-page="'+d+'"]').addClass(b.activeClass||i.activeClass);var e=h.offset().top-40;return a("html, body").animate({scrollTop:e-a("#phantom").height()},400),x()}),t.find("a."+(b.previousButtonClass||i.previousButtonClass)).click(function(b){b.preventDefault(),d--;var c=h.offset().top-40;return a("html, body").animate({scrollTop:c-a("#phantom").height()},400),x()}),t.find("a."+(b.nextButtonClass||i.nextButtonClass)).click(function(b){b.preventDefault(),d++;var c=h.offset().top-40;return a("html, body").animate({scrollTop:c-a("#phantom").height()},400),x()})}}else if("load-more"===s&&(t.empty(),u>1))return d<u?t.append('<a href="#" class="'+(b.loadMoreButtonClass||i.loadMoreButtonClass)+'"><span class="stick"></span><span class="button-caption">'+(b.loadMoreButtonLabel||i.loadMoreButtonLabel)+"</span></a>"):t.css("display","none"),t.find("a."+(b.loadMoreButtonClass||i.loadMoreButtonClass)).click(function(a){return a.preventDefault(),d++,x()})},w=function(){if("pages"===s||"load-more"===s){var c=0,e=a([]),f=a([]);r.each(function(a){this.$node.hasClass("visible")&&(c++,"pages"===s&&c>d*(b.pageLimit||i.pageLimit)-(b.pageLimit||i.pageLimit)&&c<=(b.pageLimit||i.pageLimit)*d?f.push(this.node):"load-more"===s&&c<=(b.pageLimit||i.pageLimit)*d?f.push(this.node):e.push(this.node))}),e.removeClass("visible").addClass("hidden"),f.removeClass("hidden").addClass("visible"),f.removeClass("first"),f.first().addClass("first")}},o=function(){var d=a([]),e=a([]);b.useFilters||i.useFilters?c===(b.selectAll||i.selectAll)?e=r.$nodesCache:r.each(function(a){this.$node.hasClass(c)?e.push(this.node):d.push(this.node)}):e=r.$nodesCache,d.removeClass("visible").addClass("hidden"),e.removeClass("hidden").addClass("visible")},y=function(){"date"===f&&"desc"===g?r.sort(function(a,b){return b.date-a.date}):"date"===f&&"asc"===g?r.sort(function(a,b){return a.date-b.date}):"name"===f&&"desc"===g?r.sort(function(a,b){var c=a.name.toLowerCase(),d=b.name.toLowerCase();return c>d?-1:c<d?1:0}):"name"===f&&"asc"===g&&r.sort(function(a,b){var c=a.name.toLowerCase(),d=b.name.toLowerCase();return c<d?-1:c>d?1:0}),r.$nodesCache=a([]),r.each(function(){r.$nodesCache.push(this.node)}),h.find(".paginator").length>0?r.$nodesCache.detach().insertBefore(h.find(".paginator")):r.$nodesCache.detach().appendTo(h)},x=function(){if(o(),p(),w(),v(),h.hasClass("lazy-loading-mode")){var b=h.find(".button-load-more").offset();b&&dtGlobals.winScrollTop>(b.top-e.height())/2&&h.find(".button-load-more").trigger("click")}a(".layzr-loading-on .blog-shortcode.jquery-filter.mode-list .visible:not(.shown)").layzrBlogInitialisation()},(q=function(){return(b.useFilters||i.useFilters)&&(c=j.find(n).attr("data-filter")||b.defaultFilter||i.defaultFilter,j.find(m).click(function(b){c=a(this).attr("data-filter"),d=1,x()})),(b.useSorting||i.useSorting)&&(f=k.find(n).attr("data-by")||b.defaultSort||i.defaultSort,g=l.find(n).attr("data-sort")||b.defaultOrder||i.defaultOrder,k.find(m).click(function(a){f="date"===this.getAttribute("data-by")?"date":"name",y(),d=1,x()}),l.find(m).click(function(a){g="desc"===this.getAttribute("data-sort")?"desc":"asc",y(),d=1,x()})),x()})()}}(jQuery,window,document),jQuery(document).ready(function(a){function b(){if(dtGlobals.isMobile)a(".skills").animateSkills();else if(a(".animation-at-the-same-time").length>0||a(".animate-element").length>0){var b=-1;a(".animation-at-the-same-time:in-viewport").each(function(){var b=a(this),c=b.find(".animate-element");c.addClass("animation-triggered"),b.find(".animate-element:not(.start-animation)").addClass("start-animation")}),a(".animate-element:not(.start-animation):in-viewport").each(function(){var c=a(this);!c.parents(".animation-at-the-same-time").length>0&&(c.hasClass("start-animation")||c.hasClass("animation-triggered")||(c.addClass("animation-triggered"),b++,setTimeout(function(){c.addClass("start-animation"),c.hasClass("skills")&&c.animateSkills()},200*b)))})}}function c(){var b=q.width(),c=(b-t.innerWidth())/2,d=a(".side-header-menu-icon").length>0;s.hasClass("header-side-right")&&t.hasClass("boxed")&&(!G.length>0&&y.css({right:c}),d&&(S.css({right:c}),a(".branding").css({left:c}))),s.hasClass("header-side-left")&&t.hasClass("boxed")&&d&&(a(".floating-logo .branding").css({right:c}),S.css({left:c})),F.length>0&&d&&t.hasClass("boxed")&&(S.css({right:c}),a(".floating-logo .branding").css({left:c}))}function d(){Ua=window.innerWidth<dtLocal.themeSettings.mobileHeader.firstSwitchPoint?a(".sticky-mobile-header").length>0?Ma.height():0:"block"==Ma.css("display")||ma&&!na||ma&&oa?Ma.height():0}function e(){a(".full-width-wrap").length>0&&a(".full-width-wrap").each(function(){var b,c,d=a(this),e=window.innerWidth,f=q.width(),g=a(".content").width();if(a(".boxed").length>0)b=(parseInt(a("#main").width())-parseInt(g))/2;else if(a(".side-header-v-stroke").length&&e>dtLocal.themeSettings.mobileHeader.firstSwitchPoint){var h=e<=parseInt(g)?parseInt(g):f-a(".side-header-v-stroke").width();b=Math.ceil((h-parseInt(g))/2)}else if(a(".sticky-header .side-header").length&&e>dtLocal.themeSettings.mobileHeader.firstSwitchPoint){var h=f<=parseInt(g)?parseInt(g):f;b=Math.ceil((f-parseInt(g))/2)}else if((a(".header-side-left").length&&e||a(".header-side-right").length&&e)>dtLocal.themeSettings.mobileHeader.firstSwitchPoint){var h=e<=parseInt(g)?parseInt(g):f-a(".side-header").width();b=Math.ceil((h-parseInt(g))/2)}else{var h=f<=parseInt(g)?parseInt(g):f;b=Math.ceil((f-parseInt(g))/2)}a(".sidebar-left").length>0||a(".sidebar-right").length>0?(c=a(".content").width(),b=0):c=a("#main").innerWidth();var i=s.hasClass("rtl")?"margin-right":"margin-left";d.css({width:c,opacity:1}),d.css(i,-b),d.find(".full-width-wrap").css({width:"",opacity:1,"padding-left":b}),d.find(".full-width-wrap").css(i,""),d.find(".ts-wrap").each(function(){var b=a(this).data("thePhotoSlider");"undefined"!=typeof b&&b.update()})})}function f(){dtGlobals.isMobile&&a(".skills").animateSkills()}function g(a){if("undefined"!=typeof window.addEventListener)window.addEventListener("load",a,!1);else if("undefined"!=typeof window.attachEvent)window.attachEvent("onload",a);else if(null!=window.onload){var b=window.onload;window.onload=function(c){b(c),window[a]()}}else window.onload=a}function h(){a(".album-share-overlay, .project-share-overlay:not(.allways-visible-icons)").each(function(){var b=a(this);b.find(".share-button").on("click",function(a){a.preventDefault()}),b.on("mouseover tap",function(b){"tap"==b.type&&b.stopPropagation();var c=a(this);c.addClass("dt-hovered"),clearTimeout(ab),clearTimeout(bb),ab=setTimeout(function(){c.hasClass("dt-hovered")&&(c.find(".soc-ico a").css("display","inline-block"),c.find(".soc-ico").stop().css("visibility","visible").animate({opacity:1},200))},100)}),b.on("mouseleave ",function(b){var c=a(this);c.removeClass("dt-hovered"),clearTimeout(ab),clearTimeout(bb),bb=setTimeout(function(){c.hasClass("dt-hovered")||c.find(".soc-ico").stop().animate({opacity:0},150,function(){c.find(".soc-ico a").css("display","none"),a(this).css("visibility","hidden")})},50)})})}function j(){a(".project-slider .preload-me").loaded(null,function(){var b=a(".floating-content");if(a(".floating-content").length>0){var c=b.offset();if(a(".top-bar").length>0&&a(".phantom-sticky").length>0)var d=a(".top-bar").height();else var d=0;var e=a(".project-post").offset();q.on("scroll",function(){window.innerWidth>1050?dtGlobals.winScrollTop+Ma.height()>c.top?dtGlobals.winScrollTop+Ma.height()+db+40<e.top+cb?b.stop().velocity({translateY:dtGlobals.winScrollTop-c.top+Ma.height()+5-d},300):b.stop().velocity({translateY:cb-db-40-d},300):b.stop().velocity({translateY:0},300):b.css({transform:"translateY(0)","-webkit-transform":"translateY(0)"})})}},!0)}function k(){var b=a(".dt-isotope"),c=a(".iso-grid .wf-cell:not(.shown)");if(c.exists()&&l(c),b.exists()){var d=0;b.each(function(){d++;var b=a(this).find(".wf-cell");b.exists()&&l(b,function(){})})}else{var e=a(".iso-item:not(.shown)");if(!e.exists())return;l(e)}}function l(b,c){var d=0;b.each(function(){var b=a(this);a(".mobile-true").length>0||b.parents(".loading-effect-none").length>0?b.hasClass("shown")||b.hasClass("animation-triggered")||(b.addClass("animation-triggered"),setTimeout(function(){b.hasClass("animation-triggered")&&b.removeClass("animation-triggered").addClass("shown")},200)):b.hasClass("shown")||b.hasClass("animation-triggered")||!b.inView()||(b.addClass("animation-triggered"),d++,setTimeout(function(){b.hasClass("animation-triggered")&&b.removeClass("animation-triggered").addClass("shown")},100*d)),"function"==typeof c&&c.call(this)})}function m(b){var c=b.find(".filter.with-ajax").first(),d=b.find(".wf-container.with-ajax, .articles-list.with-ajax").first(),e=c.find(".filter-categories a.act"),f=c.find(".filter-by a.act"),g=c.find(".filter-sorting a.act"),h=parseInt(d.attr("data-cur-page")),i=new Array,j=e.length>0?e.attr("data-filter").replace(".category-","").replace("*",""):"";return"0"==j&&(j="none"),d.hasClass("dt-isotope")&&a(".wf-cell",d).each(function(){i.push(a(this).attr("data-post-id"))}),{visibleItems:i,postID:dtLocal.postID,paged:h,term:j,orderBy:f.length>0?f.attr("data-by"):"",order:g.length>0?g.attr("data-sort"):"",ajaxurl:dtLocal.ajaxurl,nonce:dtLocal.ajaxNonce,pageData:dtLocal.pageData,layout:dtLocal.pageData.layout,targetContainer:d,isPhone:dtGlobals.isPhone}}function n(){if(dtGlobals.loadMoreButton&&dtGlobals.loadMoreButton.exists()){var a=dtGlobals.loadMoreButton.offset();a&&q.scrollTop()>(a.top-q.height())/2&&!dtGlobals.loadMoreButton.hasClass("animate-load")&&dtGlobals.loadMoreButton.trigger("click")}}var o,p=a(document),q=a(window),r=a("html"),s=a("body"),t=a("#page");!dtGlobals.isMobile||dtGlobals.isWindowsPhone||dtGlobals.isAndroid?q.on("resize",function(){clearTimeout(o),o=setTimeout(function(){q.trigger("debouncedresize")},200)}):q.bind("orientationchange",function(a){clearTimeout(o),o=setTimeout(function(){q.trigger("debouncedresize")},200)}),a.fn.layzrInitialisation=function(b){return this.each(function(){a(this),new Layzr({container:b,selector:".lazy-load",attr:"data-src",attrSrcSet:"data-srcset",retinaAttr:"data-src-retina",hiddenAttr:"data-src-hidden",threshold:0,callback:function(){this.classList.add("is-loaded");var b=a(this);setTimeout(function(){b.parents().removeClass("layzr-bg")},350),b.parents().hasClass("owl-carousel")&&b.parents(".owl-carousel").trigger("refresh.owl.carousel")},after:function(){var b=a(this);this.complete&&!b.hasClass("is-loaded")&&(this.classList.add("is-loaded"),setTimeout(function(){var b=a(this);b.parents().removeClass("layzr-bg")},350))}})})},a(".layzr-loading-on, .vc_single_image-img").layzrInitialisation(),a.fn.layzrBlogInitialisation=function(b){return this.each(function(){var c=a(this);a(".blog-shortcode.jquery-filter article").removeClass("shown"),c.addClass("shown"),c.find("img").addClass("blog-thumb-lazy-load-show");new Layzr({container:b,selector:".blog-thumb-lazy-load-show",attr:"data-src",attrSrcSet:"data-srcset",retinaAttr:"data-src-retina",hiddenAttr:"data-src-hidden",threshold:30,callback:function(){if(a(this).parents(".post").first().hasClass("visible")){this.classList.add("is-loaded");var b=a(this);setTimeout(function(){b.parent().removeClass("layzr-bg")},350)}}})})},a(".layzr-loading-on .blog-shortcode.jquery-filter.mode-list .visible").layzrBlogInitialisation(),a('div[data-vc-stretch-content="true"]').length>0&&a('div[data-vc-full-width-init="false"]').length>0&&vc_rowBehaviour(),dtGlobals.touches={},dtGlobals.touches.touching=!1,dtGlobals.touches.touch=!1,dtGlobals.touches.currX=0,dtGlobals.touches.currY=0,dtGlobals.touches.cachedX=0,dtGlobals.touches.cachedY=0,dtGlobals.touches.count=0,dtGlobals.resizeCounter=0,p.on("touchstart",function(b){1==b.originalEvent.touches.length&&(dtGlobals.touches.touch=b.originalEvent.touches[0],dtGlobals.touches.cachedX=dtGlobals.touches.touch.pageX,dtGlobals.touches.cachedY=dtGlobals.touches.touch.pageY,dtGlobals.touches.touching=!0,setTimeout(function(){dtGlobals.touches.currX=dtGlobals.touches.touch.pageX,dtGlobals.touches.currY=dtGlobals.touches.touch.pageY,dtGlobals.touches.cachedX!==dtGlobals.touches.currX||dtGlobals.touches.touching||dtGlobals.touches.cachedY!==dtGlobals.touches.currY||(dtGlobals.touches.count++,a(b.target).trigger("tap"))},200))}),p.on("touchend touchcancel",function(a){dtGlobals.touches.touching=!1}),p.on("touchmove",function(a){dtGlobals.touches.touch=a.originalEvent.touches[0],dtGlobals.touches.touching}),p.on("tap",function(b){a(".dt-hovered").trigger("mouseout")}),function(a){"function"==typeof define&&define.amd?define(["jquery"],a):a(jQuery)}(function(a,b){function c(a){function b(a){d?(c(),M(b),e=!0,d=!1):e=!1}var c=a,d=!1,e=!1;this.kick=function(a){d=!0,e||b()},this.end=function(a){var b=c;a&&(e?(c=d?function(){b(),a()}:a,d=!0):a())}}function d(){return!0}function e(){return!1}function f(a){a.preventDefault()}function g(a){N[a.target.tagName.toLowerCase()]||a.preventDefault()}function h(a){return 1===a.which&&!a.ctrlKey&&!a.altKey}function i(a,b){var c,d;if(a.identifiedTouch)return a.identifiedTouch(b);for(c=-1,d=a.length;++c<d;)if(a[c].identifier===b)return a[c]}function j(a,b){var c=i(a.changedTouches,b.identifier);if(c&&(c.pageX!==b.pageX||c.pageY!==b.pageY))return c}function k(a){var b;h(a)&&(b={target:a.target,startX:a.pageX,startY:a.pageY,timeStamp:a.timeStamp},J(document,O.move,l,b),J(document,O.cancel,m,b))}function l(a){var b=a.data;s(a,b,a,n)}function m(a){n()}function n(){K(document,O.move,l),K(document,O.cancel,m)}function o(a){var b,c;N[a.target.tagName.toLowerCase()]||(b=a.changedTouches[0],c={target:b.target,startX:b.pageX,startY:b.pageY,timeStamp:a.timeStamp,identifier:b.identifier},J(document,P.move+"."+b.identifier,p,c),J(document,P.cancel+"."+b.identifier,q,c))}function p(a){var b=a.data,c=j(a,b);c&&s(a,b,c,r)}function q(a){var b=a.data,c=i(a.changedTouches,b.identifier);c&&r(b.identifier)}function r(a){K(document,"."+a,p),K(document,"."+a,q)}function s(a,b,c,d){var e=c.pageX-b.startX,f=c.pageY-b.startY;e*e+f*f<I*I||v(a,b,c,e,f,d)}function t(){return this._handled=d,!1}function u(a){a._handled()}function v(a,b,c,d,e,f){var g,h;b.target;g=a.targetTouches,h=a.timeStamp-b.timeStamp,b.type="movestart",b.distX=d,b.distY=e,b.deltaX=d,b.deltaY=e,b.pageX=c.pageX,b.pageY=c.pageY,b.velocityX=d/h,b.velocityY=e/h,b.targetTouches=g,b.finger=g?g.length:1,b._handled=t,b._preventTouchmoveDefault=function(){a.preventDefault()},L(b.target,b),f(b.identifier)}function w(a){var b=a.data.timer;a.data.touch=a,a.data.timeStamp=a.timeStamp,b.kick()}function x(a){var b=a.data.event,c=a.data.timer;y(),D(b,c,function(){setTimeout(function(){K(b.target,"click",e)},0)})}function y(a){K(document,O.move,w),K(document,O.end,x)}function z(a){var b=a.data.event,c=a.data.timer,d=j(a,b);d&&(a.preventDefault(),b.targetTouches=a.targetTouches,a.data.touch=d,a.data.timeStamp=a.timeStamp,c.kick())}function A(a){var b=a.data.event,c=a.data.timer,d=i(a.changedTouches,b.identifier);d&&(B(b),D(b,c))}function B(a){K(document,"."+a.identifier,z),K(document,"."+a.identifier,A)}function C(a,b,c,d){var e=c-a.timeStamp;a.type="move",a.distX=b.pageX-a.startX,a.distY=b.pageY-a.startY,a.deltaX=b.pageX-a.pageX,a.deltaY=b.pageY-a.pageY,a.velocityX=.3*a.velocityX+.7*a.deltaX/e,a.velocityY=.3*a.velocityY+.7*a.deltaY/e,a.pageX=b.pageX,a.pageY=b.pageY}function D(a,b,c){b.end(function(){return a.type="moveend",L(a.target,a),c&&c()})}function E(a,b,c){return J(this,"movestart.move",u),!0}function F(a){return K(this,"dragstart drag",f),K(this,"mousedown touchstart",g),K(this,"movestart",u),!0}function G(a){"move"!==a.namespace&&"moveend"!==a.namespace&&(J(this,"dragstart."+a.guid+" drag."+a.guid,f,b,a.selector),J(this,"mousedown."+a.guid,g,b,a.selector))}function H(a){"move"!==a.namespace&&"moveend"!==a.namespace&&(K(this,"dragstart."+a.guid+" drag."+a.guid),K(this,"mousedown."+a.guid))}var I=6,J=a.event.add,K=a.event.remove,L=function(b,c,d){a.event.trigger(c,d,b)},M=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(a,b){return window.setTimeout(function(){a()},25)}}(),N={textarea:!0,input:!0,select:!0,button:!0},O={move:"mousemove",cancel:"mouseup dragstart",end:"mouseup"},P={move:"touchmove",cancel:"touchend",end:"touchend"};a.event.special.movestart={setup:E,teardown:F,add:G,remove:H,_default:function(a){function d(b){C(f,g.touch,g.timeStamp),L(a.target,f)}var f,g;a._handled()&&(f={target:a.target,startX:a.startX,startY:a.startY,pageX:a.pageX,pageY:a.pageY,distX:a.distX,distY:a.distY,deltaX:a.deltaX,deltaY:a.deltaY,velocityX:a.velocityX,velocityY:a.velocityY,timeStamp:a.timeStamp,identifier:a.identifier,targetTouches:a.targetTouches,finger:a.finger},g={event:f,timer:new c(d),touch:b,timeStamp:b},a.identifier===b?(J(a.target,"click",e),J(document,O.move,w,g),J(document,O.end,x,g)):(a._preventTouchmoveDefault(),J(document,P.move+"."+a.identifier,z,g),J(document,P.end+"."+a.identifier,A,g)))}},a.event.special.move={setup:function(){J(this,"movestart.move",a.noop)},teardown:function(){K(this,"movestart.move",a.noop)}},a.event.special.moveend={setup:function(){J(this,"movestart.moveend",a.noop)},teardown:function(){K(this,"movestart.moveend",a.noop)}},J(document,"mousedown.move",k),J(document,"touchstart.move",o),"function"==typeof Array.prototype.indexOf&&!function(a,b){for(var c=["changedTouches","targetTouches"],d=c.length;d--;)a.event.props.indexOf(c[d])===-1&&a.event.props.push(c[d])}(a)}),a.belowthefold=function(b,c){var d=q.height()+q.scrollTop();return d<=a(b).offset().top-c.threshold},a.abovethetop=function(b,c){var d=q.scrollTop();return d>=a(b).offset().top+a(b).height()-c.threshold},a.rightofscreen=function(b,c){var d=q.width()+q.scrollLeft();return d<=a(b).offset().left-c.threshold},a.leftofscreen=function(b,c){var d=q.scrollLeft();return d>=a(b).offset().left+a(b).width()-c.threshold},a.inviewport=function(b,c){return!(a.rightofscreen(b,c)||a.leftofscreen(b,c)||a.belowthefold(b,c)||a.abovethetop(b,c))},a.extend(a.expr[":"],{"below-the-fold":function(b,c,d){return a.belowthefold(b,{threshold:0})},"above-the-top":function(b,c,d){return a.abovethetop(b,{threshold:0})},"left-of-screen":function(b,c,d){return a.leftofscreen(b,{threshold:0})},"right-of-screen":function(b,c,d){return a.rightofscreen(b,{threshold:0})},"in-viewport":function(b,c,d){return a.inviewport(b,{threshold:-30})}}),setTimeout(function(){b()},50),dtGlobals.isMobile||q.on("scroll",function(){b()}),a.fn.exists=function(){return a(this).length>0},a.fn.loaded=function(b,c,d){var e=this.length;return e>0?this.each(function(){var d=this,f=a(d);f.on("load.dt",function(d){a(this).off("load.dt"),"function"==typeof b&&b.call(this),--e<=0&&"function"==typeof c&&c.call(this)}),d.complete&&void 0!==d.complete?f.trigger("load.dt"):d.src=d.src}):d?("function"==typeof c&&c.call(this),this):void 0},a.fn.exists=function(){return a(this).length>0},a.fn.loaded=function(b,c,d){var e=this.length;return e>0?this.each(function(){var d=this,f=a(d);f.on("load.dt",function(d){a(this).off("load.dt"),"function"==typeof b&&b.call(this),--e<=0&&"function"==typeof c&&c.call(this)}),d.complete&&void 0!==d.complete?f.trigger("load.dt"):d.src=d.src}):d?("function"==typeof c&&c.call(this),this):void 0},a.rsCSS3Easing={easeOutSine:"cubic-bezier(0.390, 0.575, 0.565, 1.000)",easeInOutSine:"cubic-bezier(0.445, 0.050, 0.550, 0.950)"},a.extend(jQuery.easing,{easeInOutSine:function(a,b,c,d,e){return-d/2*(Math.cos(Math.PI*b/e)-1)+c},easeOutSine:function(a,b,c,d,e){return d*Math.sin(b/e*(Math.PI/2))+c},easeOutCubic:function(a,b,c,d,e){return d*((b=b/e-1)*b*b+1)+c}}),a.thePhotoSlider=function(b,c){var d=a(b).data("thePhotoSlider");d?d.update():this._init(b,c)},a.thePhotoSlider.defaults={mode:{type:"slider"},responsive:!0,height:!1,width:!1,sidePaddings:0,storeHTML:!1,autoPlay:!1,threshold:20,resizeImg:!1,imageScaleMode:"none",imageAlignCenter:!1,collapsePoint:700,transformEnable:!0,calcAutoHeight:!1,columBasedResize:!1,resizeHeight:!1},a.thePhotoSlider.prototype={_init:function(b,c){var d=this;if(d.st=a.extend({},a.thePhotoSlider.defaults,c),d.ev=a(d),d.autoPlay={enabled:!1,delay:2e3,loop:!0},d.currSlide=0,d.noSlide=!0,d.lockLeft=!0,d.lockRight=!0,d.sliderLock=!1,d.lockTimeout=!1,d.wrap={},d.wrap.$el=a(b),d.wrap.width=0,d.wrap.height=!1,d.wrap.$el.data("thePhotoSlider",d),d.viewport=d.wrap.$el.find(".ts-viewport"),d.cont={},d.cont.$el=d.viewport.find(".ts-cont"),d.cont.width=0,d.cont.startX=0,d.cont.instantX=0,d.slides={},d.slides.$items=d.cont.$el.children(),d.slides.number=d.slides.$items.length,d.slides.position=[],d.slides.width=[],d.slides.isLoaded=[],d.drag={},d.drag.isMoving=!1,d.drag.startX=0,d.drag.startY=0,d.drag.offsetX=0,d.drag.offsetY=0,d.drag.lockX=!1,d.drag.lockY=!1,d.features={},d._featureDetection(),d.st.storeHTML&&(d.origHTML=d.wrap.$el.html()),d._buildHTML(),d._calcSliderSize(),d._resizeImage(),d.wrap.height||d.wrap.$el.addClass("ts-autoHeight"),d._setSliderWidth(),d._adjustSlides(),d._setSliderHeight(),d.slideTo(0,!0),d.noSlide||d._bindEvents(),setTimeout(function(){d.wrap.$el.addClass("ts-ready"),d.ev.trigger("sliderReady")},20),d.st.responsive)if("onorientationchange"in window){var e=window.orientation;a(window).on("orientationchange",function(a){var b=window.orientation;b!==e&&(e=b,d.update())})}else{var f;a(window).on("resize",function(a){clearTimeout(f),f=setTimeout(function(){d.update()},200)})}d.st.autoPlay.enabled&&d.play()},_featureDetection:function(){var a,b=this,c=document.createElement("div").style,d=["webkit","Moz","ms","O"];for(b.features.vendor="",i=0;i<d.length;i++)a=d[i],!b.features.vendor&&a+"Transform"in c&&(b.features.vendor="-"+a.toLowerCase()+"-");navigator.userAgent.indexOf("Safari")==-1||navigator.userAgent.indexOf("Chrome")!=-1||"ontouchstart"in window?"undefined"!=typeof Modernizr&&(b.features.css3d=Modernizr.csstransforms3d):b.features.css3d=Modernizr.csstransforms3d},_buildHTML:function(){var a=this;"centered"===a.st.mode.type&&a.wrap.$el.addClass("ts-centered"),"slider"===a.st.mode.type?a.slides.$items.addClass("ts-slide"):"scroller"!==a.st.mode.type&&"centered"!==a.st.mode.type&&"carousel"!==a.st.mode.type||a.slides.$items.addClass("ts-cell")},_calcSliderSize:function(){var a=this,b=typeof a.st.width,c=typeof a.st.height,d=!1,e=!1;a.wrap.width=a.wrap.$el.width(),"function"===b?d=a.st.width(this):"number"===b&&(d=a.st.width),"function"===c?e=a.st.height(this):"number"===c&&(e=a.st.height),e&&!d?a.wrap.height=e:e&&d?a.wrap.height=e*a.wrap.width/d:a.wrap.height=!1},_resizeImage:function(){var b=this;a(b.slides.$items[i]);b.st.resizeImg===!0&&(b.cont.width=0,b.slides.$items.each(function(c){var d=a(b.slides.$items[c]),e=d.find("img"),f=b.st.imageAlignCenter,g=b.st.imageScaleMode;if(e){var h=parseInt(e.attr("width")),i=parseInt(e.attr("height"));if("none"!==g){var j,k,l,m,n,o=b.wrap.width,p=b.wrap.height,q={};"fit-if-smaller"===g&&(h>o||i>p)&&(g="fit"),"fill"===g||"fit"===g?(j=o/h,k=p/i,l="fill"==g?j>k?j:k:"fit"==g?j<k?j:k:1,m=Math.ceil(h*l,10),n=Math.ceil(i*l,10)):(m=h,n=i),"none"!==g&&(q.width=m,q.height=n),f&&(q.marginLeft=Math.floor((o-m)/2),q.marginTop=Math.floor((p-n)/2)),e.css(q)}}}))},_setSliderWidth:function(){var a=this;"centered"!==a.st.mode.type?a.viewport.css({width:a.wrap.width}):a.wrap.width>a.st.collapsePoint?a.wrap.$el.removeClass("ts-collapsed"):a.wrap.$el.addClass("ts-collapsed")},_setSliderHeight:function(){var b=this;if("number"==typeof b.wrap.height)b.viewport.css({height:b.wrap.height});else if("scroller"===b.st.mode.type||"centered"===b.st.mode.type||"carousel"===b.st.mode.type){if(b.st.resizeHeight){var c=a(b.viewport).find("article").map(function(){return a(this).height()}).get(),d=Math.max.apply(null,c);b.viewport.css({height:d}),a(b.slides.$items).css({height:d})}"0px"!==b.viewport.css("height")&&0!=b.viewport.css("height")&&b.viewport.css("height")||b.viewport.css({height:Math.max.apply(null,b.slides.height)})}else if(b.slides.isLoaded[b.currSlide]){var e=a(b.slides.$items[b.currSlide]).height();e>0?b.viewport.css({height:e}):b.viewport.css({height:"auto"})}else{var e=a(b.slides.$items[b.currSlide]).height();e>0?b.viewport.css({height:e}):b.viewport.css({height:auto})}},_adjustSlides:function(){var b=this;if("slider"===b.st.mode.type)b.cont.width=0,b.slides.$items.each(function(c){var d=a(b.slides.$items[c]),e={};b.slides.position[c]=-b.cont.width-b.st.sidePaddings/2,b.cont.width=b.cont.width+b.wrap.width+b.st.sidePaddings,e.left=-b.slides.position[c],b.slides.isLoaded[c]||d.find("img").loaded(!1,function(){b.slides.isLoaded[c]=!0,d.addClass("ts-loaded")},!0),d.css(e)});else if("centered"===b.st.mode.type){if(b.cont.width=0,b.slides.contRatio=[],b.slides.ratio=[],b.st.mode.lsMinW||b.st.mode.lsMaxW)var c=b.wrap.width/100*b.st.mode.lsMinW,d=b.wrap.width/100*b.st.mode.lsMaxW;if(b.st.mode.ptMinW||b.st.mode.ptMaxW)var e=b.wrap.width/100*b.st.mode.ptMinW,f=b.wrap.width/100*b.st.mode.ptMaxW;b.slides.$items.each(function(g){var h=a(b.slides.$items[g]),i={},j=h.attr("data-width")?parseFloat(h.attr("data-width")):h.width(),k=h.attr("data-height")?parseFloat(h.attr("data-height")):h.height();b.slides.contRatio[g]||(b.slides.contRatio[g]=j/k,b.slides.contRatio[g]>1?h.addClass("ts-ls"):h.addClass("ts-pt")),b.wrap.width>b.st.collapsePoint?(k=b.wrap.height,j=b.wrap.height*b.slides.contRatio[g],(c||d)&&j>k?c===d||j>d?j=d:j<c&&(j=c):(e||f)&&j<=k&&(e===f||j>f?j=f:j<e&&(j=e)),b.slides.ratio[g]=j/k,i.height=b.wrap.height,i.width=b.slides.width[g]=j,b.slides.position[g]=-b.cont.width,b.cont.width=b.cont.width+b.slides.width[g]+b.st.sidePaddings,i.left=-b.slides.position[g]):(k=i.height=b.wrap.height,j=b.slides.width[g]=i.width=b.wrap.width,b.slides.ratio[g]=j/k,b.slides.position[g]=-b.cont.width,b.cont.width=b.cont.width+b.slides.width[g],i.left=-b.slides.position[g]),b.slides.position[g]=b.slides.position[g]-b.slides.width[g]/2,b.slides.ratio[g]>b.slides.contRatio[g]?(h.removeClass("ts-narrow"),h.addClass("ts-wide")):(h.removeClass("ts-wide"),h.addClass("ts-narrow")),b.slides.isLoaded[g]||h.find("img").loaded(!1,function(){b.slides.isLoaded[g]=!0,h.addClass("ts-loaded")},!0),h.css(i)})}else if("scroller"===b.st.mode.type){if(b.cont.width=0,b.slides.ratio=[],"number"!=typeof b.wrap.height&&(b.slides.height=[]),"undefined"!=typeof b.slides.$items.parents(".slider-wrapper").attr("data-max-width"))var g=b.slides.$items.parents(".slider-wrapper").width()*parseFloat(b.slides.$items.parents(".slider-wrapper").attr("data-max-width"))/100;
b.slides.$items.each(function(c){var d=a(b.slides.$items[c]),e={},f=d.attr("data-width")?parseFloat(d.attr("data-width")):d.width(),h=d.attr("data-height")?parseFloat(d.attr("data-height")):d.height();if(f>g)var f=g;f>0&&h>0?b.slides.ratio[c]=f/h:b.slides.ratio[c]=1,"number"==typeof b.wrap.height?(b.slides.width[c]=b.wrap.height*b.slides.ratio[c],e.width=b.slides.width[c],e.height=b.slides.width[c]/b.slides.ratio[c]):f>0&&h>0?(b.slides.width[c]||(e.width=b.slides.width[c]=f),b.slides.height[c]||b.st.resizeHeight||(e.height="100%"),b.slides.height[c]=h):(d.css("height","auto"),b.slides.width[c]=d.width(),b.slides.height[c]=d.height(),e.height="100%"),b.st.columBasedResize&&(b.slides.width[c]=d.width()),b.slides.position[c]=-b.cont.width,b.cont.width=b.cont.width+b.slides.width[c],c<b.slides.number-1&&(b.cont.width+=b.st.sidePaddings),e.left=-b.slides.position[c],b.slides.isLoaded[c]||d.find("img").loaded(!1,function(){b.slides.isLoaded[c]=!0,d.addClass("ts-loaded")},!0),d.css(e)})}else if("carousel"===b.st.mode.type){b.cont.width=0;for(var h=b.st.mode.perView,i=b.st.mode.minWidth,j=b.wrap.width/h;j<i&&h>.31;)h--,h<1&&(h=1),j=b.wrap.width/h;b.perView=h,b.slides.$items.each(function(c){var d=a(b.slides.$items[c]),e={};b.slides.position[c]=-b.cont.width,b.cont.width=b.cont.width+j,e.width=j-b.st.sidePaddings,e.left=-b.slides.position[c]+b.st.sidePaddings/2,d.css(e)})}"centered"!==b.st.mode.type&&b.cont.width<=b.wrap.width?(b.noSlide=!0,b._transitionStart(0,0,"easeInOutSine",!0),b.cont.$el.css("left",(b.wrap.width-b.cont.width)/2),b.lockLeft=!0,b.lockRight=!0,b.ev.trigger("updateNav")):"centered"===b.st.mode.type&&b.slides.number<2?(b.noSlide=!0,b._transitionStart(0,0,"easeInOutSine",!0),b.cont.$el.css("left",-b.cont.width/2),b.lockLeft=!0,b.lockRight=!0,b.ev.trigger("updateNav")):(b.noSlide=!1,b.cont.$el.css("left",""),b.lockRight?(b.lockLeft=!1,b.lockRight=!0,b.ev.trigger("lockRight").trigger("updateNav")):b.currSlide<=0?(b.lockLeft=!0,b.lockRight=!1,b.ev.trigger("lockLeft").trigger("updateNav")):b.currSlide>0&&(b.lockLeft=!1,b.lockRight=!1,b.ev.trigger("updateNav")))},_unifiedEvent:function(a){return void 0!==a.originalEvent.touches&&a.originalEvent.touches[0]&&(a.pageX=a.originalEvent.touches[0].pageX,a.pageY=a.originalEvent.touches[0].pageY),a},_unifiedX:function(){var a=this,b=0,c=a.cont.$el.css("transform");if(c)var d=c.split(", ");return b=a.features.css3d&&"none"!==c&&"matrix(1"===d[0]?parseFloat(d[4]):a.features.css3d&&"none"!==c&&"matrix3d(1"===d[0]?parseFloat(d[12]):parseFloat(a.cont.$el.css("left"))},_bindEvents:function(){var b=this;b.st.transformEnable&&b.wrap.$el.on("mousedown.theSlider touchstart.theSlider",function(c){"touchstart"!=c.type&&c.preventDefault(),b._onStart(b._unifiedEvent(c)),a(document).on("mousemove.theSlider touchmove.theSlider",function(a){b._onMove(b._unifiedEvent(a))}),a(document).on("mouseup.theSlider mouseleave.theSlider touchend.theSlider touchcancel.theSlider",function(c){a(document).off("mousemove.theSlider mouseup.theSlider mouseleave.theSlider touchmove.theSlider touchend.theSlider touchcancel.theSlider"),b._onStop(b._unifiedEvent(c))})})},_unbindEvents:function(){var b=this;b.wrap.$el.off("mousedown.theSlider touchstart.theSlider"),a(document).off("mousemove.theSlider mouseup.theSlider mouseleave.theSlider touchmove.theSlider touchend.theSlider touchcancel.theSlider")},_onStart:function(a){var b=this;b.drag.isMoving||b.sliderLock||(b.drag.isMoving=!0,b.drag.startX=a.pageX,b.drag.startY=a.pageY,b.cont.startX=b._unifiedX(),b.drag.offsetX=0,b.drag.offsetY=0,b.drag.lockX=!1,b.drag.lockY=!1)},_onMove:function(a){var b=this,c=0;b.ev.trigger("psOnMove"),b.drag.isMoving&&(b.drag.offsetX=a.pageX-b.drag.startX,b.drag.offsetY=a.pageY-b.drag.startY,Math.abs(b.drag.offsetX)>=b.st.threshold-1&&Math.abs(b.drag.offsetX)>Math.abs(b.drag.offsetY)&&!b.drag.lockX?(b.drag.lockX=!1,b.drag.lockY=!0,"touchmove"==a.type&&(b.drag.offsetY=0)):Math.abs(b.drag.offsetY)>=b.st.threshold-1&&Math.abs(b.drag.offsetX)<Math.abs(b.drag.offsetY)&&!b.drag.lockY&&(b.drag.lockX=!0,b.drag.lockY=!1,"touchmove"==a.type&&(b.drag.offsetX=0)),b.drag.lockX&&"touchmove"==a.type?b.drag.offsetX=0:b.drag.lockY&&"touchmove"==a.type&&(b.drag.offsetY=0),b.drag.lockY&&a.preventDefault(),b.cont.instantX=b.cont.startX+b.drag.offsetX,c=b.cont.instantX<0&&b.cont.instantX>-b.cont.width+b.viewport.width()?b.cont.instantX:b.cont.instantX>=0?b.cont.instantX/4:-b.cont.width+b.viewport.width()+(b.cont.width-b.viewport.width()+b.cont.instantX)/4,b._doDrag(c)),b.st.autoPlay.enabled&&b.pause()},_onStop:function(a){var b=this;return b.ev.trigger("psOnStop"),b.drag.isMoving&&(b.cont.instantX=b.cont.startX+b.drag.offsetX,Math.abs(b.drag.offsetX)>b.st.threshold&&(b.wrap.$el.addClass("ts-interceptClicks"),b.wrap.$el.one("click.preventClick",function(a){a.preventDefault(),a.stopImmediatePropagation(),a.stopPropagation()}),window.setTimeout(function(){b.wrap.$el.off("click.preventClick"),b.wrap.$el.removeClass("ts-interceptClicks")},301)),b._autoAdjust(),b._setSliderHeight(),b.cont.startX=0,b.cont.instantX=0,b.drag.isMoving=!1,b.drag.startX=0,b.drag.startY=0,b.drag.offsetX=0,b.drag.offsetY=0,b.drag.lockX=!1,b.drag.lockY=!1),b.st.autoPlay.enabled&&b.play(),!1},_doDrag:function(a){var b=this;if(b.st.transformEnable)if(b.features.css3d){var c={};c[b.features.vendor+"transform"]="translate3d("+a+"px,0,0)",c.transform="translate3d("+a+"px,0,0)",c[b.vendor+"transition"]="",c.transition="",b.cont.$el.css(c)}else b.cont.$el.css({left:a})},_calcCurrSlide:function(a){var b=this,c=b.slides.number-1;return b.slides.$items.each(function(d){if(a>b.slides.position[d])return c=d-1,!1}),c<0&&(c=0),c},_isRightExceed:function(a){var b=this,c=0;return c="centered"===b.st.mode.type?b.slides.position[b.slides.number-1]:-b.cont.width+b.viewport.width(),a<c},_autoAdjust:function(){var a=this,b=0,c=0,d=a.slides.number-1;if(a.cont.instantX>=0)b=a.slides.position[0],a.currSlide=0,a.lockLeft=!0,a.lockRight=!1,a.ev.trigger("lockLeft").trigger("updateNav");else if(a._isRightExceed(a.cont.instantX))b="centered"===a.st.mode.type?a.slides.position[a.slides.number-1]:-a.cont.width+a.viewport.width(),a.currSlide=a._calcCurrSlide(b),a.lockLeft=!1,a.lockRight=!0,a.ev.trigger("lockRight").trigger("updateNav");else if(a.drag.offsetX<-a.st.threshold){if(d=a._calcCurrSlide(a.cont.instantX)+1,a._isRightExceed(a.slides.position[d])){for(b=-a.cont.width+a.viewport.width(),i=d;i>=0;i--)if(!a._isRightExceed(a.slides.position[i])){d=i;break}a.lockLeft=!1,a.lockRight=!0,a.ev.trigger("lockRight").trigger("updateNav")}else b=a.slides.position[d],d<a.slides.number-1?(a.lockLeft=!1,a.lockRight=!1,a.ev.trigger("updateNav")):(a.lockLeft=!1,a.lockRight=!0,a.ev.trigger("lockRight").trigger("updateNav"));a.currSlide=d}else a.drag.offsetX>a.st.threshold?(a.currSlide=a._calcCurrSlide(a.cont.instantX),b=a.slides.position[a.currSlide],a.currSlide>0?(a.lockLeft=!1,a.lockRight=!1,a.ev.trigger("updateNav")):(a.lockLeft=!0,a.lockRight=!1,a.ev.trigger("lockLeft").trigger("updateNav"))):b=a.cont.startX;c=10*Math.sqrt(Math.abs(a.cont.instantX-b))+100,a._transitionStart(b,c,"easeOutSine")},_transitionStart:function(b,c,d,e){var f=this,g={},h=a.rsCSS3Easing[d];return f._transitionEnd(),f.ev.trigger("beforeTransition"),e?(f.st.transformEnable&&(f.features.css3d?(g[f.features.vendor+"transform"]="translate3d("+b+"px,0,0)",g.transform="translate3d("+b+"px,0,0)"):g.left=b),f.cont.$el.css(g),!1):(f.ev.trigger("beforeTransition"),f.sliderLock=!0,clearTimeout(f.lockTimeout),f.lockTimeout=setTimeout(function(){f.sliderLock=!1,f.ev.trigger("afterTransition")},c),void(f.st.transformEnable&&(f.features.css3d?(g[f.features.vendor+"transform"]="translate3d("+b+"px,0,0)",g.transform="translate3d("+b+"px,0,0)",g[f.features.vendor+"transition"]="all "+c+"ms "+h,g.transition="all "+c+"ms "+h,f.cont.$el.css(g),f.cont.$el.one("webkitTransitionEnd otransitionend oTransitionEnd msTransitionEnd transitionend",function(){})):f.cont.$el.animate({left:b},c,d))))},_transitionEnd:function(){var a=this;if(a.ev.trigger("psTransitionEnd"),a.st.transformEnable)if(a.features.css3d){var b={};b[a.vendor+"transition"]="",b.transition="",a.cont.$el.css(b)}else a.cont.$el.stop()},_transitionCancel:function(){var a=this,b=a.cont.$el.position().left,c={};if(c[a.vendor+"transition"]="",c.transition="",a.cont.$el.off("webkitTransitionEnd otransitionend oTransitionEnd msTransitionEnd transitionend"),a.st.transformEnable)if(a.features.css3d){var d=a.cont.$el.css("transform"),e=d.split(", ");b=e[4],c[a.features.vendor+"transform"]="translate3d("+b+"px,0,0)",c.transform="translate3d("+b+"px,0,0)",a.cont.$el.css(c)}else a.cont.$el.stop(),a.cont.$el.animate({left:b},duration,easing)},pause:function(){var a=this;a.ev.trigger("autoPlayPause"),a._autoPlayRunning=!1,a._autoPlayTimeout&&(clearTimeout(a._autoPlayTimeout),a._autoPlayTimeout=null)},slideTo:function(a,b){var c=this,d=c.slides.position[a],e=0,f=c.currSlide;return c.pause(),c.ev.trigger("psBeforeAnimStart"),!c.noSlide&&(c._transitionEnd(),d>=c.slides.position[0]?(c.currSlide=0,c.lockLeft=!0,c.lockRight=!1,c.ev.trigger("lockLeft").trigger("updateNav")):c._isRightExceed(d)||a>=c.slides.number-1?("centered"===c.st.mode.type?(d=c.slides.position[a],c.currSlide=a):(d=-c.cont.width+c.viewport.width(),c.currSlide=c._calcCurrSlide(d)),c.lockLeft=!1,c.lockRight=!0,c.ev.trigger("lockRight").trigger("updateNav")):(c.currSlide=a,c.lockLeft=!1,c.lockRight=!1,c.ev.trigger("updateNav")),e=10*Math.sqrt(Math.abs(c.slides.position[f]-d))+100,c._transitionStart(d,e,"easeInOutSine",b),c.st.autoPlay.enabled&&c.play(),void(c.st.calcAutoHeight&&c._setSliderHeight()))},startPlay:function(){var a=this;a.ev.trigger("autoPlayPlay"),a.currSlide+1<=a.slides.number-1&&!a.lockRight?a.slideTo(a.currSlide+1):a.currSlide>=a.slides.number-1&&a.st.autoPlay.loop?a.slideTo(0):a.lockRight&&a.st.autoPlay.loop&&a.slideTo(0)},play:function(){var a=this;a.ev.trigger("autoPlayPlay"),a._autoPlayRunning=!0,a._autoPlayTimeout&&clearTimeout(a._autoPlayTimeout),a._autoPlayTimeout=setTimeout(function(){a.startPlay()},a.st.autoPlay.delay)},slideNext:function(){var a=this;return a.currSlide+1<=a.slides.number-1&&void a.slideTo(a.currSlide+1)},slidePrev:function(){var a=this;if(a.currSlide-1>=0)a.slideTo(a.currSlide-1);else{if(0!=a.currSlide||0!=a.lockLeft)return!1;a.slideTo(a.currSlide)}},update:function(){var a=this;a._calcSliderSize(),a._resizeImage(),a._setSliderWidth(),a._adjustSlides(),a._setSliderHeight(),a._doDrag(),a.noSlide?(a.slideTo(0,!0),a._unbindEvents()):(a.slideTo(a.currSlide,!0),a._bindEvents())}},a.fn.thePhotoSlider=function(b){return this.each(function(){new a.thePhotoSlider(this,b)})},function(a,b,c,d){function e(b,c){this.settings=null,this.options=a.extend({},e.Defaults,c),this.$element=a(b),this._handlers={},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._widths=[],this._invalidated={},this._pipe=[],this._drag={time:null,target:null,pointer:null,stage:{start:null,current:null},direction:null},this._states={current:{},tags:{initializing:["busy"],animating:["busy"],dragging:["interacting"]}},a.each(["onResize","onThrottledResize"],a.proxy(function(b,c){this._handlers[c]=a.proxy(this[c],this)},this)),a.each(e.Plugins,a.proxy(function(a,b){this._plugins[a.charAt(0).toLowerCase()+a.slice(1)]=new b(this)},this)),a.each(e.Workers,a.proxy(function(b,c){this._pipe.push({filter:c.filter,run:a.proxy(c.run,this)})},this)),this.setup(),this.initialize()}e.Defaults={items:3,loop:!1,center:!1,rewind:!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:b,fallbackEasing:"swing",info:!1,nestedItemSelector:!1,itemElement:"div",stageElement:"div",refreshClass:"owl-refresh",loadedClass:"owl-loaded",loadingClass:"owl-loading",rtlClass:"owl-rtl",responsiveClass:"owl-responsive",dragClass:"owl-drag",itemClass:"owl-item",stageClass:"owl-stage",stageOuterClass:"owl-stage-outer",grabClass:"owl-grab"},e.Width={Default:"default",Inner:"inner",Outer:"outer"},e.Type={Event:"event",State:"state"},e.Plugins={},e.Workers=[{filter:["width","settings"],run:function(){this._width=this.$element.width()}},{filter:["width","items","settings"],run:function(a){a.current=this._items&&this._items[this.relative(this._current)]}},{filter:["items","settings"],run:function(){this.$stage.children(".cloned").remove()}},{filter:["width","items","settings"],run:function(a){var b=this.settings.margin||"",c=!this.settings.autoWidth,d=this.settings.rtl,e={width:"auto","margin-left":d?b:"","margin-right":d?"":b};!c&&this.$stage.children().css(e),a.css=e}},{filter:["width","items","settings"],run:function(a){var b=(this.width()/this.settings.items).toFixed(3)-this.settings.margin,c=null,d=this._items.length,e=!this.settings.autoWidth,f=[];for(a.items={merge:!1,width:b};d--;)c=this._mergers[d],c=this.settings.mergeFit&&Math.min(c,this.settings.items)||c,a.items.merge=c>1||a.items.merge,f[d]=e?b*c:this._items[d].width();this._widths=f}},{filter:["items","settings"],run:function(){var b=[],c=this._items,d=this.settings,e=Math.max(2*d.items,4),f=2*Math.ceil(c.length/2),g=d.loop&&c.length?d.rewind?e:Math.max(e,f):0,h="",i="";for(g/=2;g--;)b.push(this.normalize(b.length/2,!0)),h+=c[b[b.length-1]][0].outerHTML,b.push(this.normalize(c.length-1-(b.length-1)/2,!0)),i=c[b[b.length-1]][0].outerHTML+i;this._clones=b,a(h).addClass("cloned").appendTo(this.$stage),a(i).addClass("cloned").prependTo(this.$stage)}},{filter:["width","items","settings"],run:function(){for(var a=this.settings.rtl?1:-1,b=this._clones.length+this._items.length,c=-1,d=0,e=0,f=[];++c<b;)d=f[c-1]||0,e=this._widths[this.relative(c)]+this.settings.margin,f.push(d+e*a);this._coordinates=f}},{filter:["width","items","settings"],run:function(){var a=this.settings.stagePadding,b=this._coordinates,c={width:Math.ceil(Math.abs(b[b.length-1]))+2*a,"padding-left":a||"","padding-right":a||""};this.$stage.css(c)}},{filter:["width","items","settings"],run:function(a){var b=this._coordinates.length,c=!this.settings.autoWidth,d=this.$stage.children();if(c&&a.items.merge)for(;b--;)a.css.width=this._widths[this.relative(b)],d.eq(b).css(a.css);else c&&(a.css.width=a.items.width,d.css(a.css))}},{filter:["items"],run:function(){this._coordinates.length<1&&this.$stage.removeAttr("style")}},{filter:["width","items","settings"],run:function(a){a.current=a.current?this.$stage.children().index(a.current):0,a.current=Math.max(this.minimum(),Math.min(this.maximum(),a.current)),this.reset(a.current)}},{filter:["position"],run:function(){this.animate(this.coordinates(this._current))}},{filter:["width","position","items","settings"],run:function(){var a,b,c,d,e=this.settings.rtl?1:-1,f=2*this.settings.stagePadding,g=this.coordinates(this.current())+f,h=g+this.width()*e,i=[];for(c=0,d=this._coordinates.length;c<d;c++)a=this._coordinates[c-1]||0,b=Math.abs(this._coordinates[c])+f*e,(this.op(a,"<=",g)&&this.op(a,">",h)||this.op(b,"<",g)&&this.op(b,">",h))&&i.push(c);this.$stage.children(".active").removeClass("active"),this.$stage.children(":eq("+i.join("), :eq(")+")").addClass("active"),this.settings.center&&(this.$stage.children(".center").removeClass("center"),this.$stage.children().eq(this.current()).addClass("center"))}}],e.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 b,c,e;b=this.$element.find("img"),c=this.settings.nestedItemSelector?"."+this.settings.nestedItemSelector:d,e=this.$element.children(c).width(),b.length&&e<=0&&this.preloadAutoWidthImages(b)}this.$element.addClass(this.options.loadingClass),this.$stage=a("<"+this.settings.stageElement+' class="'+this.settings.stageClass+'"/>').wrap('<div class="'+this.settings.stageOuterClass+'"/>'),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")},e.prototype.setup=function(){var b=this.viewport(),c=this.options.responsive,d=-1,e=null;c?(a.each(c,function(a){a<=b&&a>d&&(d=Number(a))}),e=a.extend({},this.options,c[d]),"function"==typeof e.stagePadding&&(e.stagePadding=e.stagePadding()),delete e.responsive,e.responsiveClass&&this.$element.attr("class",this.$element.attr("class").replace(new RegExp("("+this.options.responsiveClass+"-)\\S+\\s","g"),"$1"+d))):e=a.extend({},this.options),this.trigger("change",{property:{name:"settings",value:e}}),this._breakpoint=d,this.settings=e,this.invalidate("settings"),this.trigger("changed",{property:{name:"settings",value:this.settings}})},e.prototype.optionsLogic=function(){this.settings.autoWidth&&(this.settings.stagePadding=!1,this.settings.merge=!1)},e.prototype.prepare=function(b){var c=this.trigger("prepare",{content:b});return c.data||(c.data=a("<"+this.settings.itemElement+"/>").addClass(this.options.itemClass).append(b)),this.trigger("prepared",{content:c.data}),c.data},e.prototype.update=function(){for(var b=0,c=this._pipe.length,d=a.proxy(function(a){return this[a]},this._invalidated),e={};b<c;)(this._invalidated.all||a.grep(this._pipe[b].filter,d).length>0)&&this._pipe[b].run(e),b++;this._invalidated={},!this.is("valid")&&this.enter("valid")},e.prototype.width=function(a){switch(a=a||e.Width.Default){case e.Width.Inner:case e.Width.Outer:return this._width;default:return this._width-2*this.settings.stagePadding+this.settings.margin}},e.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")},e.prototype.onThrottledResize=function(){b.clearTimeout(this.resizeTimer),this.resizeTimer=b.setTimeout(this._handlers.onResize,this.settings.responsiveRefreshRate)},e.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")))))},e.prototype.registerEventHandlers=function(){a.support.transition&&this.$stage.on(a.support.transition.end+".owl.core",a.proxy(this.onTransitionEnd,this)),this.settings.responsive!==!1&&this.on(b,"resize",this._handlers.onThrottledResize),this.settings.mouseDrag&&(this.$element.addClass(this.options.dragClass),this.$stage.on("mousedown.owl.core",a.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",a.proxy(this.onDragStart,this)),this.$stage.on("touchcancel.owl.core",a.proxy(this.onDragEnd,this)))},e.prototype.onDragStart=function(b){var d=null;3!==b.which&&(a.support.transform?(d=this.$stage.css("transform").replace(/.*\(|\)| /g,"").split(","),d={x:d[16===d.length?12:4],y:d[16===d.length?13:5]}):(d=this.$stage.position(),d={x:this.settings.rtl?d.left+this.$stage.width()-this.width()+this.settings.margin:d.left,y:d.top}),this.is("animating")&&(a.support.transform?this.animate(d.x):this.$stage.stop(),this.invalidate("position")),this.$element.toggleClass(this.options.grabClass,"mousedown"===b.type),this.speed(0),this._drag.time=(new Date).getTime(),this._drag.target=a(b.target),this._drag.stage.start=d,this._drag.stage.current=d,this._drag.pointer=this.pointer(b),a(c).on("mouseup.owl.core touchend.owl.core",a.proxy(this.onDragEnd,this)),a(c).one("mousemove.owl.core touchmove.owl.core",a.proxy(function(b){var d=this.difference(this._drag.pointer,this.pointer(b));a(c).on("mousemove.owl.core touchmove.owl.core",a.proxy(this.onDragMove,this)),Math.abs(d.x)<Math.abs(d.y)&&this.is("valid")||(b.preventDefault(),this.enter("dragging"),this.trigger("drag"))},this)))},e.prototype.onDragMove=function(a){var b=null,c=null,d=null,e=this.difference(this._drag.pointer,this.pointer(a)),f=this.difference(this._drag.stage.start,e);this.is("dragging")&&(a.preventDefault(),this.settings.loop?(b=this.coordinates(this.minimum()),c=this.coordinates(this.maximum()+1)-b,f.x=((f.x-b)%c+c)%c+b):(b=this.settings.rtl?this.coordinates(this.maximum()):this.coordinates(this.minimum()),c=this.settings.rtl?this.coordinates(this.minimum()):this.coordinates(this.maximum()),d=this.settings.pullDrag?-1*e.x/5:0,f.x=Math.max(Math.min(f.x,b+d),c+d)),this._drag.stage.current=f,this.animate(f.x))},e.prototype.onDragEnd=function(b){var d=this.difference(this._drag.pointer,this.pointer(b)),e=this._drag.stage.current,f=d.x>0^this.settings.rtl?"left":"right";a(c).off(".owl.core"),this.$element.removeClass(this.options.grabClass),(0!==d.x&&this.is("dragging")||!this.is("valid"))&&(this.speed(this.settings.dragEndSpeed||this.settings.smartSpeed),this.current(this.closest(e.x,0!==d.x?f:this._drag.direction)),this.invalidate("position"),this.update(),this._drag.direction=f,(Math.abs(d.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"))},e.prototype.closest=function(b,c){var d=-1,e=30,f=this.width(),g=this.coordinates();return this.settings.freeDrag||a.each(g,a.proxy(function(a,h){return"left"===c&&b>h-e&&b<h+e?d=a:"right"===c&&b>h-f-e&&b<h-f+e?d=a+1:this.op(b,"<",h)&&this.op(b,">",g[a+1]||h-f)&&(d="left"===c?a+1:a),d===-1},this)),this.settings.loop||(this.op(b,">",g[this.minimum()])?d=b=this.minimum():this.op(b,"<",g[this.maximum()])&&(d=b=this.maximum())),d},e.prototype.animate=function(b){var c=this.speed()>0;this.is("animating")&&this.onTransitionEnd(),c&&(this.enter("animating"),this.trigger("translate")),a.support.transform3d&&a.support.transition?this.$stage.css({transform:"translate3d("+b+"px,0px,0px)",transition:this.speed()/1e3+"s"}):c?this.$stage.animate({left:b+"px"},this.speed(),this.settings.fallbackEasing,a.proxy(this.onTransitionEnd,this)):this.$stage.css({left:b+"px"})},e.prototype.is=function(a){return this._states.current[a]&&this._states.current[a]>0},e.prototype.current=function(a){if(a===d)return this._current;if(0===this._items.length)return d;if(a=this.normalize(a),this._current!==a){var b=this.trigger("change",{property:{name:"position",value:a}});b.data!==d&&(a=this.normalize(b.data)),this._current=a,this.invalidate("position"),this.trigger("changed",{property:{name:"position",value:this._current}})}return this._current},e.prototype.invalidate=function(b){return"string"===a.type(b)&&(this._invalidated[b]=!0,this.is("valid")&&this.leave("valid")),a.map(this._invalidated,function(a,b){return b})},e.prototype.reset=function(a){a=this.normalize(a),a!==d&&(this._speed=0,this._current=a,this.suppress(["translate","translated"]),this.animate(this.coordinates(a)),this.release(["translate","translated"]))},e.prototype.normalize=function(a,b){var c=this._items.length,e=b?0:this._clones.length;return!this.isNumeric(a)||c<1?a=d:(a<0||a>=c+e)&&(a=((a-e/2)%c+c)%c+e/2),a},e.prototype.relative=function(a){return a-=this._clones.length/2,this.normalize(a,!0)},e.prototype.maximum=function(a){var b,c,d,e=this.settings,f=this._coordinates.length;if(e.loop)f=this._clones.length/2+this._items.length-1;else if(e.autoWidth||e.merge){for(b=this._items.length,c=this._items[--b].width(),d=this.$element.width();b--&&(c+=this._items[b].width()+this.settings.margin,!(c>d)););f=b+1}else f=e.center?this._items.length-1:this._items.length-e.items;return a&&(f-=this._clones.length/2),Math.max(f,0)},e.prototype.minimum=function(a){return a?0:this._clones.length/2},e.prototype.items=function(a){return a===d?this._items.slice():(a=this.normalize(a,!0),this._items[a])},e.prototype.mergers=function(a){return a===d?this._mergers.slice():(a=this.normalize(a,!0),this._mergers[a])},e.prototype.clones=function(b){var c=this._clones.length/2,e=c+this._items.length,f=function(a){return a%2===0?e+a/2:c-(a+1)/2};return b===d?a.map(this._clones,function(a,b){return f(b)}):a.map(this._clones,function(a,c){return a===b?f(c):null})},e.prototype.speed=function(a){return a!==d&&(this._speed=a),this._speed},e.prototype.coordinates=function(b){var c,e=1,f=b-1;return b===d?a.map(this._coordinates,a.proxy(function(a,b){return this.coordinates(b)},this)):(this.settings.center?(this.settings.rtl&&(e=-1,f=b+1),c=this._coordinates[b],c+=(this.width()-c+(this._coordinates[f]||0))/2*e):c=this._coordinates[f]||0,c=Math.ceil(c))},e.prototype.duration=function(a,b,c){return 0===c?0:Math.min(Math.max(Math.abs(b-a),1),6)*Math.abs(c||this.settings.smartSpeed)},e.prototype.to=function(a,b){var c=this.current(),d=null,e=a-this.relative(c),f=(e>0)-(e<0),g=this._items.length,h=this.minimum(),i=this.maximum();this.settings.loop?(!this.settings.rewind&&Math.abs(e)>g/2&&(e+=f*-1*g),a=c+e,d=((a-h)%g+g)%g+h,d!==a&&d-e<=i&&d-e>0&&(c=d-e,a=d,this.reset(c))):this.settings.rewind?(i+=1,a=(a%i+i)%i):a=Math.max(h,Math.min(i,a)),this.speed(this.duration(c,a,b)),this.current(a),this.$element.is(":visible")&&this.update()},e.prototype.next=function(a){a=a||!1,this.to(this.relative(this.current())+1,a)},e.prototype.prev=function(a){a=a||!1,this.to(this.relative(this.current())-1,a)},e.prototype.onTransitionEnd=function(a){return(a===d||(a.stopPropagation(),(a.target||a.srcElement||a.originalTarget)===this.$stage.get(0)))&&(this.leave("animating"),void this.trigger("translated"))},e.prototype.viewport=function(){var d;if(this.options.responsiveBaseElement!==b)d=a(this.options.responsiveBaseElement).width();else if(b.innerWidth)d=b.innerWidth;else{if(!c.documentElement||!c.documentElement.clientWidth)throw"Can not detect viewport width.";d=c.documentElement.clientWidth}return d},e.prototype.replace=function(b){this.$stage.empty(),this._items=[],b&&(b=b instanceof jQuery?b:a(b)),this.settings.nestedItemSelector&&(b=b.find("."+this.settings.nestedItemSelector)),b.filter(function(){return 1===this.nodeType}).each(a.proxy(function(a,b){b=this.prepare(b),this.$stage.append(b),this._items.push(b),this._mergers.push(1*b.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)},this)),this.reset(this.isNumeric(this.settings.startPosition)?this.settings.startPosition:0),this.invalidate("items")},e.prototype.add=function(b,c){var e=this.relative(this._current);c=c===d?this._items.length:this.normalize(c,!0),b=b instanceof jQuery?b:a(b),this.trigger("add",{content:b,position:c}),b=this.prepare(b),0===this._items.length||c===this._items.length?(0===this._items.length&&this.$stage.append(b),0!==this._items.length&&this._items[c-1].after(b),this._items.push(b),this._mergers.push(1*b.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)):(this._items[c].before(b),this._items.splice(c,0,b),this._mergers.splice(c,0,1*b.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)),this._items[e]&&this.reset(this._items[e].index()),this.invalidate("items"),this.trigger("added",{content:b,position:c})},e.prototype.remove=function(a){a=this.normalize(a,!0),a!==d&&(this.trigger("remove",{content:this._items[a],position:a}),this._items[a].remove(),this._items.splice(a,1),this._mergers.splice(a,1),this.invalidate("items"),this.trigger("removed",{content:null,position:a}))},e.prototype.preloadAutoWidthImages=function(b){b.each(a.proxy(function(b,c){this.enter("pre-loading"),c=a(c),a(new Image).one("load",a.proxy(function(a){c.attr("src",a.target.src),c.css("opacity",1),this.leave("pre-loading"),!this.is("pre-loading")&&!this.is("initializing")&&this.refresh()},this)).attr("src",c.attr("src")||c.attr("data-src")||c.attr("data-src-retina"))},this))},e.prototype.destroy=function(){this.$element.off(".owl.core"),this.$stage.off(".owl.core"),a(c).off(".owl.core"),this.settings.responsive!==!1&&(b.clearTimeout(this.resizeTimer),this.off(b,"resize",this._handlers.onThrottledResize));for(var d in this._plugins)this._plugins[d].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")},e.prototype.op=function(a,b,c){var d=this.settings.rtl;switch(b){case"<":return d?a>c:a<c;case">":return d?a<c:a>c;case">=":return d?a<=c:a>=c;case"<=":return d?a>=c:a<=c}},e.prototype.on=function(a,b,c,d){a.addEventListener?a.addEventListener(b,c,d):a.attachEvent&&a.attachEvent("on"+b,c)},e.prototype.off=function(a,b,c,d){a.removeEventListener?a.removeEventListener(b,c,d):a.detachEvent&&a.detachEvent("on"+b,c)},e.prototype.trigger=function(b,c,d,f,g){var h={item:{count:this._items.length,index:this.current()}},i=a.camelCase(a.grep(["on",b,d],function(a){return a}).join("-").toLowerCase()),j=a.Event([b,"owl",d||"carousel"].join(".").toLowerCase(),a.extend({relatedTarget:this},h,c));return this._supress[b]||(a.each(this._plugins,function(a,b){b.onTrigger&&b.onTrigger(j)}),this.register({type:e.Type.Event,name:b}),this.$element.trigger(j),this.settings&&"function"==typeof this.settings[i]&&this.settings[i].call(this,j)),j},e.prototype.enter=function(b){a.each([b].concat(this._states.tags[b]||[]),a.proxy(function(a,b){this._states.current[b]===d&&(this._states.current[b]=0),this._states.current[b]++},this))},e.prototype.leave=function(b){a.each([b].concat(this._states.tags[b]||[]),a.proxy(function(a,b){this._states.current[b]--},this))},e.prototype.register=function(b){if(b.type===e.Type.Event){if(a.event.special[b.name]||(a.event.special[b.name]={}),!a.event.special[b.name].owl){var c=a.event.special[b.name]._default;a.event.special[b.name]._default=function(a){return!c||!c.apply||a.namespace&&a.namespace.indexOf("owl")!==-1?a.namespace&&a.namespace.indexOf("owl")>-1:c.apply(this,arguments)},a.event.special[b.name].owl=!0}}else b.type===e.Type.State&&(this._states.tags[b.name]?this._states.tags[b.name]=this._states.tags[b.name].concat(b.tags):this._states.tags[b.name]=b.tags,this._states.tags[b.name]=a.grep(this._states.tags[b.name],a.proxy(function(c,d){return a.inArray(c,this._states.tags[b.name])===d},this)))},e.prototype.suppress=function(b){a.each(b,a.proxy(function(a,b){this._supress[b]=!0},this))},e.prototype.release=function(b){a.each(b,a.proxy(function(a,b){delete this._supress[b]},this))},e.prototype.pointer=function(a){var c={x:null,y:null};return a=a.originalEvent||a||b.event,a=a.touches&&a.touches.length?a.touches[0]:a.changedTouches&&a.changedTouches.length?a.changedTouches[0]:a,a.pageX?(c.x=a.pageX,c.y=a.pageY):(c.x=a.clientX,c.y=a.clientY),c},e.prototype.isNumeric=function(a){return!isNaN(parseFloat(a))},e.prototype.difference=function(a,b){return{x:a.x-b.x,y:a.y-b.y}},a.fn.owlCarousel=function(b){var c=Array.prototype.slice.call(arguments,1);return this.each(function(){var d=a(this),f=d.data("owl.carousel");f||(f=new e(this,"object"==typeof b&&b),d.data("owl.carousel",f),a.each(["next","prev","to","destroy","refresh","replace","add","remove"],function(b,c){f.register({type:e.Type.Event,name:c}),f.$element.on(c+".owl.carousel.core",a.proxy(function(a){a.namespace&&a.relatedTarget!==this&&(this.suppress([c]),f[c].apply(this,[].slice.call(arguments,1)),this.release([c]))},f))})),"string"==typeof b&&"_"!==b.charAt(0)&&f[b].apply(f,c);
})},a.fn.owlCarousel.Constructor=e}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){var e=function(b){this._core=b,this._interval=null,this._visible=null,this._handlers={"initialized.owl.carousel":a.proxy(function(a){a.namespace&&this._core.settings.autoRefresh&&this.watch()},this)},this._core.options=a.extend({},e.Defaults,this._core.options),this._core.$element.on(this._handlers)};e.Defaults={autoRefresh:!0,autoRefreshInterval:500},e.prototype.watch=function(){this._interval||(this._visible=this._core.$element.is(":visible"),this._interval=b.setInterval(a.proxy(this.refresh,this),this._core.settings.autoRefreshInterval))},e.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())},e.prototype.destroy=function(){var a,c;b.clearInterval(this._interval);for(a in this._handlers)this._core.$element.off(a,this._handlers[a]);for(c in Object.getOwnPropertyNames(this))"function"!=typeof this[c]&&(this[c]=null)},a.fn.owlCarousel.Constructor.Plugins.AutoRefresh=e}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){var e=function(b){this._core=b,this._handlers={"initialized.owl.carousel refreshed.owl.carousel":a.proxy(function(a){a.namespace&&this._core.settings.autoHeight&&this.update()},this),"changed.owl.carousel":a.proxy(function(a){a.namespace&&this._core.settings.autoHeight&&"position"==a.property.name&&this.update()},this),"loaded.owl.lazy":a.proxy(function(a){a.namespace&&this._core.settings.autoHeight&&a.element.closest("."+this._core.settings.itemClass).index()===this._core.current()&&this.update()},this)},this._core.options=a.extend({},e.Defaults,this._core.options),this._core.$element.on(this._handlers)};e.Defaults={autoHeight:!1,autoHeightClass:"owl-height"},e.prototype.update=function(){var b=this._core._current,c=b+this._core.settings.items,d=this._core.$stage.children().toArray().slice(b,c),e=[],f=0;a.each(d,function(b,c){e.push(a(c).height())}),f=Math.max.apply(null,e),this._core.$stage.parent().height(f).addClass(this._core.settings.autoHeightClass)},e.prototype.destroy=function(){var a,b;for(a in this._handlers)this._core.$element.off(a,this._handlers[a]);for(b in Object.getOwnPropertyNames(this))"function"!=typeof this[b]&&(this[b]=null)},a.fn.owlCarousel.Constructor.Plugins.AutoHeight=e}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){var e=function(b){this.core=b,this.core.options=a.extend({},e.Defaults,this.core.options),this.swapping=!0,this.previous=d,this.next=d,this.handlers={"change.owl.carousel":a.proxy(function(a){a.namespace&&"position"==a.property.name&&(this.previous=this.core.current(),this.next=a.property.value)},this),"drag.owl.carousel dragged.owl.carousel translated.owl.carousel":a.proxy(function(a){a.namespace&&(this.swapping="translated"==a.type)},this),"translate.owl.carousel":a.proxy(function(a){a.namespace&&this.swapping&&(this.core.options.animateOut||this.core.options.animateIn)&&this.swap()},this)},this.core.$element.on(this.handlers)};e.Defaults={animateOut:!1,animateIn:!1},e.prototype.swap=function(){if(1===this.core.settings.items&&a.support.animation&&a.support.transition){this.core.speed(0);var b,c=a.proxy(this.clear,this),d=this.core.$stage.children().eq(this.previous),e=this.core.$stage.children().eq(this.next),f=this.core.settings.animateIn,g=this.core.settings.animateOut;this.core.current()!==this.previous&&(g&&(b=this.core.coordinates(this.previous)-this.core.coordinates(this.next),d.one(a.support.animation.end,c).css({left:b+"px"}).addClass("animated owl-animated-out").addClass(g)),f&&e.one(a.support.animation.end,c).addClass("animated owl-animated-in").addClass(f))}},e.prototype.clear=function(b){a(b.target).css({left:""}).removeClass("animated owl-animated-out owl-animated-in").removeClass(this.core.settings.animateIn).removeClass(this.core.settings.animateOut),this.core.onTransitionEnd()},e.prototype.destroy=function(){var a,b;for(a in this.handlers)this.core.$element.off(a,this.handlers[a]);for(b in Object.getOwnPropertyNames(this))"function"!=typeof this[b]&&(this[b]=null)},a.fn.owlCarousel.Constructor.Plugins.Animate=e}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){var e=function(b){this._core=b,this._timeout=null,this._paused=!1,this._handlers={"changed.owl.carousel":a.proxy(function(a){a.namespace&&"settings"===a.property.name?this._core.settings.autoplay?this.play():this.stop():a.namespace&&"position"===a.property.name&&this._core.settings.autoplay&&this._setAutoPlayInterval()},this),"initialized.owl.carousel":a.proxy(function(a){a.namespace&&this._core.settings.autoplay&&this.play()},this),"play.owl.autoplay":a.proxy(function(a,b,c){a.namespace&&this.play(b,c)},this),"stop.owl.autoplay":a.proxy(function(a){a.namespace&&this.stop()},this),"mouseover.owl.autoplay":a.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.pause()},this),"mouseleave.owl.autoplay":a.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.play()},this),"touchstart.owl.core":a.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.pause()},this),"touchend.owl.core":a.proxy(function(){this._core.settings.autoplayHoverPause&&this.play()},this)},this._core.$element.on(this._handlers),this._core.options=a.extend({},e.Defaults,this._core.options)};e.Defaults={autoplay:!1,autoplayTimeout:5e3,autoplayHoverPause:!1,autoplaySpeed:!1},e.prototype.play=function(a,b){this._paused=!1,this._core.is("rotating")||(this._core.enter("rotating"),this._setAutoPlayInterval())},e.prototype._getNextTimeout=function(d,e){return this._timeout&&b.clearTimeout(this._timeout),b.setTimeout(a.proxy(function(){this._paused||this._core.is("busy")||this._core.is("interacting")||c.hidden||this._core.next(e||this._core.settings.autoplaySpeed)},this),d||this._core.settings.autoplayTimeout)},e.prototype._setAutoPlayInterval=function(){this._timeout=this._getNextTimeout()},e.prototype.stop=function(){this._core.is("rotating")&&(b.clearTimeout(this._timeout),this._core.leave("rotating"))},e.prototype.pause=function(){this._core.is("rotating")&&(this._paused=!0)},e.prototype.destroy=function(){var a,b;this.stop();for(a in this._handlers)this._core.$element.off(a,this._handlers[a]);for(b in Object.getOwnPropertyNames(this))"function"!=typeof this[b]&&(this[b]=null)},a.fn.owlCarousel.Constructor.Plugins.autoplay=e}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){"use strict";var e=function(b){this._core=b,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":a.proxy(function(b){b.namespace&&this._core.settings.dotsData&&this._templates.push('<div class="'+this._core.settings.dotClass+'">'+a(b.content).find("[data-dot]").addBack("[data-dot]").attr("data-dot")+"</div>")},this),"added.owl.carousel":a.proxy(function(a){a.namespace&&this._core.settings.dotsData&&this._templates.splice(a.position,0,this._templates.pop())},this),"remove.owl.carousel":a.proxy(function(a){a.namespace&&this._core.settings.dotsData&&this._templates.splice(a.position,1)},this),"changed.owl.carousel":a.proxy(function(a){a.namespace&&"position"==a.property.name&&this.draw()},this),"initialized.owl.carousel":a.proxy(function(a){a.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":a.proxy(function(a){a.namespace&&this._initialized&&(this._core.trigger("refresh",null,"navigation"),this.update(),this.draw(),this._core.trigger("refreshed",null,"navigation"))},this)},this._core.options=a.extend({},e.Defaults,this._core.options),this.$element.on(this._handlers)};e.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},e.prototype.initialize=function(){var b,c=this._core.settings;this._controls.$relative=(c.navContainer?a(c.navContainer):a("<div>").addClass(c.navContainerClass).appendTo(this.$element)).addClass("disabled"),this._controls.$previous=a("<"+c.navElement+">").addClass(c.navClass[0]).html(c.navText[0]).prependTo(this._controls.$relative).on("click",a.proxy(function(a){this.prev(c.navSpeed)},this)),this._controls.$next=a("<"+c.navElement+">").addClass(c.navClass[1]).html(c.navText[1]).appendTo(this._controls.$relative).on("click",a.proxy(function(a){this.next(c.navSpeed)},this)),c.dotsData||(this._templates=[a("<div>").addClass(c.dotClass).append(a("<span>")).prop("outerHTML")]),this._controls.$absolute=(c.dotsContainer?a(c.dotsContainer):a("<div>").addClass(c.dotsClass).appendTo(this.$element)).addClass("disabled"),this._controls.$absolute.on("click","div",a.proxy(function(b){var d=a(b.target).parent().is(this._controls.$absolute)?a(b.target).index():a(b.target).parent().index();b.preventDefault(),this.to(d,c.dotsSpeed)},this));for(b in this._overrides)this._core[b]=a.proxy(this[b],this)},e.prototype.destroy=function(){var a,b,c,d;for(a in this._handlers)this.$element.off(a,this._handlers[a]);for(b in this._controls)this._controls[b].remove();for(d in this.overides)this._core[d]=this._overrides[d];for(c in Object.getOwnPropertyNames(this))"function"!=typeof this[c]&&(this[c]=null)},e.prototype.update=function(){var a,b,c,d=this._core.clones().length/2,e=d+this._core.items().length,f=this._core.maximum(!0),g=this._core.settings,h=g.center||g.autoWidth||g.dotsData?1:g.dotsEach||g.items;if("page"!==g.slideBy&&(g.slideBy=Math.min(g.slideBy,g.items)),g.dots||"page"==g.slideBy)for(this._pages=[],a=d,b=0,c=0;a<e;a++){if(b>=h||0===b){if(this._pages.push({start:Math.min(f,a-d),end:a-d+h-1}),Math.min(f,a-d)===f)break;b=0,++c}b+=this._core.mergers(this._core.relative(a))}},e.prototype.draw=function(){var b,c=this._core.settings,d=this._core.items().length<=c.items,e=this._core.relative(this._core.current()),f=c.loop||c.rewind;this._controls.$relative.toggleClass("disabled",!c.nav||d),c.nav&&(this._controls.$previous.toggleClass("disabled",!f&&e<=this._core.minimum(!0)),this._controls.$next.toggleClass("disabled",!f&&e>=this._core.maximum(!0))),this._controls.$absolute.toggleClass("disabled",!c.dots||d),c.dots&&(b=this._pages.length-this._controls.$absolute.children().length,c.dotsData&&0!==b?this._controls.$absolute.html(this._templates.join("")):b>0?this._controls.$absolute.append(new Array(b+1).join(this._templates[0])):b<0&&this._controls.$absolute.children().slice(b).remove(),this._controls.$absolute.find(".active").removeClass("active"),this._controls.$absolute.children().eq(a.inArray(this.current(),this._pages)).addClass("active"))},e.prototype.onTrigger=function(b){var c=this._core.settings;b.page={index:a.inArray(this.current(),this._pages),count:this._pages.length,size:c&&(c.center||c.autoWidth||c.dotsData?1:c.dotsEach||c.items)}},e.prototype.current=function(){var b=this._core.relative(this._core.current());return a.grep(this._pages,a.proxy(function(a,c){return a.start<=b&&a.end>=b},this)).pop()},e.prototype.getPosition=function(b){var c,d,e=this._core.settings;return"page"==e.slideBy?(c=a.inArray(this.current(),this._pages),d=this._pages.length,b?++c:--c,c=this._pages[(c%d+d)%d].start):(c=this._core.relative(this._core.current()),d=this._core.items().length,b?c+=e.slideBy:c-=e.slideBy),c},e.prototype.next=function(b){a.proxy(this._overrides.to,this._core)(this.getPosition(!0),b)},e.prototype.prev=function(b){a.proxy(this._overrides.to,this._core)(this.getPosition(!1),b)},e.prototype.to=function(b,c,d){var e;!d&&this._pages.length?(e=this._pages.length,a.proxy(this._overrides.to,this._core)(this._pages[(b%e+e)%e].start,c)):a.proxy(this._overrides.to,this._core)(b,c)},a.fn.owlCarousel.Constructor.Plugins.Navigation=e}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){function e(b,c){var e=!1,f=b.charAt(0).toUpperCase()+b.slice(1);return a.each((b+" "+h.join(f+" ")+f).split(" "),function(a,b){if(g[b]!==d)return e=!c||b,!1}),e}function f(a){return e(a,!0)}var g=a("<support>").get(0).style,h="Webkit Moz O ms".split(" "),i={transition:{end:{WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd",transition:"transitionend"}},animation:{end:{WebkitAnimation:"webkitAnimationEnd",MozAnimation:"animationend",OAnimation:"oAnimationEnd",animation:"animationend"}}},j={csstransforms:function(){return!!e("transform")},csstransforms3d:function(){return!!e("perspective")},csstransitions:function(){return!!e("transition")},cssanimations:function(){return!!e("animation")}};j.csstransitions()&&(a.support.transition=new String(f("transition")),a.support.transition.end=i.transition.end[a.support.transition]),j.cssanimations()&&(a.support.animation=new String(f("animation")),a.support.animation.end=i.animation.end[a.support.animation]),j.csstransforms()&&(a.support.transform=new String(f("transform")),a.support.transform3d=j.csstransforms3d())}(window.Zepto||window.jQuery,window,document),a.fn.scrollerSlideSize=function(){return this.each(function(){var b=a(this),c=b.find("img").eq(0),d=parseInt(c.attr("width")),e=parseInt(c.attr("height")),f=b.parents(".slider-wrapper"),g=f.width(),h=f.attr("data-max-width"),i=parseInt(f.attr("data-padding-side")),j=parseInt(c.parents(".wf-td").eq(0).css("paddingLeft")),k=parseInt(c.parents(".wf-td").eq(0).css("paddingRight")),l=0;if(j>0&&k>0&&(l=j+k),"undefined"!=typeof h)var m=g*parseFloat(h)/100-l-i;if(d>m)var n=m;else{var n=parseInt(c.attr("width"));c.exists()||(n=280)}b.attr("data-width",n+l).css({width:n+l,opacity:1});var o=c.parent("a, .rollover-video"),p=o.width(),q=e*p/d;c.parent("a, .rollover-video").css({height:q}),a(".fs-entry-content:not(.buttons-on-img)",b).css("opacity","1")})},a(".fullwidth-slider .fs-entry").not(".text-on-img .fullwidth-slider .fs-entry").scrollerSlideSize(),q.on("debouncedresize",function(b){a(".fullwidth-slider .fs-entry").not(".text-on-img .fullwidth-slider .fs-entry").scrollerSlideSize(),a(".fullwidth-slider").find(".ts-wrap").each(function(){var b=a(this).data("thePhotoSlider");"undefined"!=typeof b&&b.update()}),a(".photoSlider").parents(".ts-wrap").each(function(){var b=a(this).data("thePhotoSlider");"undefined"!=typeof b&&b.update()}),a(".text-on-img .fullwidth-slider .fs-entry, .description-on-hover .fs-entry, .dt-photos-shortcode .fs-entry").each(function(){var b=a(this);a(".rollover-project",b).css({width:b.attr("data-width"),height:b.attr("data-height")})})}),a.fn.shortcodesScroller=function(){var b=a(this),c={};c.$items=b.children(".fs-entry"),c.count=c.$items.length,b.addClass("ts-cont"),b.wrap('<div class="ts-wrap"><div class="ts-viewport"></div></div>');var d=b.parents(".ts-wrap"),e=b.parents(".slider-wrapper"),f=(q.width(),e.attr("data-padding-side")?parseInt(e.attr("data-padding-side")):0),g="true"===e.attr("data-autoslide"),h=e.attr("data-delay")&&parseInt(e.attr("data-delay"))>999?parseInt(e.attr("data-delay")):5e3,i="true"===e.attr("data-loop"),j=!(dtGlobals.isMobile&&!e.hasClass("enable-mobile-arrows")),k=(!e.hasClass("resize-by-browser-width"),"undefined"!=typeof e.attr("data-max-width")),l=!!e.parents().hasClass("infinit-scrolle"),m=d.thePhotoSlider({mode:{type:"scroller"},columBasedResize:k,infinite:l,resizeHeight:k,sidePaddings:f,autoPlay:{enabled:g,delay:h,loop:i},transformEnable:j}).data("thePhotoSlider");a(".prev",e).click(function(){m.noSlide||m.slidePrev()}),a(".next",e).click(function(){m.noSlide||m.slideNext()}),m.ev.on("updateNav sliderReady",function(){m.lockRight?a(".next",e).addClass("disabled"):a(".next",e).removeClass("disabled"),m.lockLeft?a(".prev",e).addClass("disabled"):a(".prev",e).removeClass("disabled"),m.lockRight&&m.lockLeft&&e.addClass("hide-arrows")}),d.hover(function(){g&&(m._autoPlayPaused=!1,m.pause(),m._pausedByHover=!0)},function(){g&&(m._pausedByHover=!1,m._pausedByClick||m.play())})},a(".slider-wrapper .blog-media").css({height:""}),a(".fullwidth-slider ul.clearfix").each(function(){a(this).shortcodesScroller()});var u=a(".slider-wrapper");u.css("visibility","visible"),u.each(function(){var b=a(this),c=b.find(".ts-wrap").data("thePhotoSlider");b.append('<a href="#" class="auto-play-btn"></a>'),b.on("mouseenter",function(a){b.addClass("show-arrows")}),b.on("mouseleave",function(a){b.removeClass("show-arrows")}),a(".auto-play-btn",b).on("click",function(b){b.preventDefault();var d=a(this);d.hasClass("paused")?(d.removeClass("paused"),c._pausedByClick=!0,c.noSlide||c.pause(),c.st.autoPlay.enabled=!1):(d.addClass("paused"),c._pausedByClick=!1,c.noSlide||c.play(),c.st.autoPlay.enabled=!0)})}),a.fn.postTypeScroller=function(){var b=a(this),c={};c.$items=b.children("li"),c.count=c.$items.length,b.addClass("ts-cont"),b.wrap('<div class="ts-wrap"><div class="ts-viewport photoSlider-wrap"></div></div>'),b.hasClass("shortcode-photo-slider")&&b.parents(".ts-wrap").addClass("shortcode-slider-wrap");var d=b.parents(".ts-wrap"),e=b,f=(q.width(),e.attr("data-padding-side")?parseInt(e.attr("data-padding-side")):0,"true"!=e.attr("data-paused")&&"undefined"!=typeof e.attr("data-autoslide")),g=("true"!==e.attr("data-paused"),e.attr("data-autoslide")&&parseInt(e.attr("data-autoslide"))>999?parseInt(e.attr("data-autoslide")):5e3),h="undefined"!=typeof e.attr("data-autoslide"),i=e.attr("data-width")?parseInt(e.attr("data-width")):800,j=e.attr("data-height")?parseInt(e.attr("data-height")):400,k=e.attr("data-img-mode")?e.attr("data-img-mode"):"fill",l=d.thePhotoSlider({mode:{type:"slider"},height:j,width:i,resizeImg:!0,imageScaleMode:k,imageAlignCenter:!0,autoPlay:{enabled:f,delay:g,loop:h}}).data("thePhotoSlider");a('<div class="leftArrow"></div><div class="rightArrow"></div>').insertAfter(b),"undefined"!=typeof e.attr("data-autoslide")&&a('<div class="psPlay"></div>').insertAfter(b),"true"===e.attr("data-paused")&&a(".psPlay",d).addClass("paused"),a(".psPlay",d).on("click",function(b){b.preventDefault();var c=a(this);c.hasClass("paused")?(c.removeClass("paused"),l.noSlide||l.play(),l.st.autoPlay.enabled=!0):(c.addClass("paused"),l.noSlide||l.pause(),l.st.autoPlay.enabled=!1)}),a(".leftArrow",d).click(function(){l.noSlide||l.slidePrev()}),a(".rightArrow",d).click(function(){l.noSlide||l.slideNext()}),l.ev.on("updateNav sliderReady",function(){l.lockRight?a(".rightArrow",d).addClass("disabled"):a(".rightArrow",d).removeClass("disabled"),l.lockLeft?a(".leftArrow",d).addClass("disabled"):a(".leftArrow",d).removeClass("disabled"),l.lockRight&&l.lockLeft&&e.addClass("hide-arrows")})},a("ul.photoSlider:not(.slider-masonry)").each(function(){a(this).postTypeScroller()}),a("ul.photoSlider").css("visibility","visible"),a.fn.postTypeContentScroller=function(){var b=a(this),c={};c.$items=b.children("li"),c.count=c.$items.length,b.addClass("ts-cont"),b.wrap('<div class="ts-wrap contentSlider-wrap"><div class="ts-viewport"></div></div>');var d=b.parents(".ts-wrap"),e=b,f=(q.width(),e.attr("data-padding-side")?parseInt(e.attr("data-padding-side")):0,"true"!=e.attr("data-paused")&&"undefined"!=typeof e.attr("data-autoslide")),g=("true"!==e.attr("data-paused"),e.attr("data-autoslide")&&parseInt(e.attr("data-autoslide"))>999?parseInt(e.attr("data-autoslide")):5e3),h="undefined"!=typeof e.attr("data-autoslide"),i=(e.attr("data-width")?parseInt(e.attr("data-width")):800,e.attr("data-height")?parseInt(e.attr("data-height")):400,e.attr("data-img-mode")?e.attr("data-img-mode"):"none",d.thePhotoSlider({mode:{type:"slider"},height:"auto",resizeImg:!0,imageScaleMode:"none",imageAlignCenter:!0,calcAutoHeight:!0,autoPlay:{enabled:f,delay:g,loop:h}}).data("thePhotoSlider"));a('<div class="leftArrow"></div><div class="rightArrow"></div>').insertAfter(b),a(".leftArrow",d).click(function(){i.noSlide||i.slidePrev()}),a(".rightArrow",d).click(function(){i.noSlide||i.slideNext()}),i.ev.on("updateNav sliderReady",function(){i.lockRight?a(".rightArrow",d).addClass("disabled"):a(".rightArrow",d).removeClass("disabled"),i.lockLeft?a(".leftArrow",d).addClass("disabled"):a(".leftArrow",d).removeClass("disabled"),i.lockRight&&i.lockLeft&&e.addClass("hide-arrows")});var j='<div class="psBullet"></div>';e.addClass("psWithBullets");for(var k='<div class="psNav psBullets">',l=0;l<i.slides.$items.length;l++)k+=j;i._controlNav=k=a(k+"</div>"),k.appendTo(d),i.ev.on("sliderReady beforeTransition",function(){i._controlNav.find(".psBullet").removeClass("act"),i._controlNav.find(".psBullet").eq(i.currSlide).addClass("act")}),i._controlNav.find(".psBullet").each(function(b){a(this).on("click",function(c){var d=a(this);d.parents(".ts-wrap").hasClass("ts-interceptClicks")||i.slideTo(b)})})},a(".slider-content").each(function(){a(this).postTypeContentScroller()}),a(".slider-content").css("visibility","visible"),a(".owl-carousel").each(function(){var b=a(this),c=b.attr("data-col-gap")?parseInt(b.attr("data-col-gap")):0,d="true"===b.attr("data-auto-height"),e=b.attr("data-speed")?parseInt(b.attr("data-speed")):600,f="true"===b.attr("data-autoplay"),g=b.attr("data-autoplay-timeout")?parseInt(b.attr("data-autoplay-timeout")):6e3,h="true"===b.attr("data-arrows"),i="true"===b.attr("data-bullet"),j=b.attr("data-col-num")?parseInt(b.attr("data-col-num")):3,k=b.attr("data-laptop-col")?parseInt(b.attr("data-laptop-col")):3,l=b.attr("data-h-tablet-columns-num")?parseInt(b.attr("data-h-tablet-columns-num")):3,m=b.attr("data-v-tablet-columns-num")?parseInt(b.attr("data-v-tablet-columns-num")):2,n=b.attr("data-phone-columns-num")?parseInt(b.attr("data-phone-columns-num")):1,o="rtl"==jQuery(document).attr("dir"),p="1"==b.attr("data-scroll-mode")?parseInt(b.attr("data-scroll-mode")):"page",r=b.attr("data-next-icon")?b.attr("data-next-icon"):"icon-ar-002-r",s=b.attr("data-prev-icon")?b.attr("data-prev-icon"):"icon-ar-001-l",t=!("1"!=b.attr("data-scroll-mode")||!i);b.owlCarousel({rtl:o,items:j,autoHeight:d,margin:c,loadedClass:"owl-loaded",slideBy:p,loop:!0,smartSpeed:e,responsive:{0:{items:n},481:{items:m},751:{items:l},1025:{items:k},1100:{items:j}},autoplay:f,autoplayTimeout:g,autoplayHoverPause:!0,nav:h,navElement:"a",navText:["<i class="+s+" ></i>","<i class="+r+" ></i>"],dots:i,dotsEach:t}),b.hasClass("content-rollover-layout-list")&&!b.hasClass("disable-layout-hover")&&b.find(".post-entry-wrapper").each(function(){var b=a(this),c=b.find(".entry-excerpt").height()+b.find(".post-details").height();b.stop().velocity({translateY:c},0),b.parents(".post").first().on("mouseenter",function(a){b.stop().velocity({translateY:0},0)}),b.parents(".post").first().on("mouseleave",function(a){b.stop().velocity({translateY:c},0)})}),setTimeout(function(){b.trigger("refresh.owl.carousel")},e),q.on("load",function(c){b.trigger("refresh.owl.carousel"),a(".owl-item.cloned").layzrInitialisation(),b.hasClass("content-rollover-layout-list")&&!b.hasClass("disable-layout-hover")&&b.find(".post-entry-wrapper").each(function(){var b=a(this),c=b.find(".entry-excerpt").height()+b.find(".post-details").height();b.stop().velocity({translateY:c},0),b.parents(".post").first().on("mouseenter",function(a){b.stop().velocity({translateY:0},0)}),b.parents(".post").first().on("mouseleave",function(a){b.stop().velocity({translateY:c},0)})})})}),a(".l-to-r-line > li:not(.menu-item-language) > a > span").not(".l-to-r-line > li > a > span.mega-icon").append("<i class='underline'></i>"),a(".btn-material .dt-btn, .btn-material a.button, .no-touchevents .masthead:not(.sub-downwards) .animate-click-decoration > .menu-item > a:not(.not-clickable-item), .no-touchevents .masthead:not(.sub-downwards) .main-nav .hover-style-click-bg > li > a:not(.not-clickable-item)").each(function(){var b,c=a(this);c.addClass("ripple"),c.ripple();var d=a(".rippleWrap",c);c.on("click",function(a){!d.parent('a[href^="#"]').length>0&&a.preventDefault()}).on("mousedown",function(e){if(3==e.which);else if(e.shiftKey||e.ctrlKey||e.metaKey)window.open(c.attr("href"),"_blank");else{e.preventDefault();var f=c.attr("target")?c.attr("target"):"_self";clearTimeout(b),b=setTimeout(function(){return!d.parent('a[href^="#"]').length>0?(window.open(c.attr("href"),f),!1):(a(this).parent("a").trigger("click"),!1)},200)}})}),a(".not-clickable-item").on("click",function(a){a.preventDefault(),a.stopPropagation()}),(a(".active-line-decoration").length>0||a(".hover-line-decoration").length>0)&&a(".main-nav > .menu-item > a").append("<span class='decoration-line'></span>");var v=a(".main-nav, .mini-nav, .mini-wpml .wpml-ls-item-legacy-dropdown"),w=a(".masthead:not(.sub-downwards) .main-nav, .mini-nav, .mini-wpml .wpml-ls-item-legacy-dropdown"),x=a(".main-nav"),y=a(".side-header");a(".menu-item-language").each(function(){var b=a(this);b.children(".submenu-languages").length>0&&b.addClass("has-children")});x.clone(),a(".mini-nav").clone();a(".mini-nav select").change(function(){window.location.href=a(this).val()}),dtGlobals.isHovering=!1,a(".main-nav li",y).each(function(){var b=a(this);if(b.hasClass("new-column")){var c=b.prev().find(" > .sub-nav");a(" > .sub-nav > *",b).appendTo(c)}}),a(".sub-downwards .main-nav > li").each(function(){var b=a(this),c=b.find(" > .dt-mega-menu-wrap > .sub-nav");c.unwrap()});var z=a(".select-type-menu, .mini-wpml .wpml-ls-item-legacy-dropdown");if(a(".masthead").find(".sub-nav").length>0)var A=a(".masthead").find(".sub-nav").attr("class");else var A="sub-nav";z.find("> ul").addClass(A).css("visibility","visible"),a(".mini-wpml .wpml-ls-item-legacy-dropdown").find("> ul").addClass(A),w.each(function(){var b=a(this);a(".act",b).parents("li").addClass("act"),a(" li.has-children ",b).each(function(){var b=a(this);if(b.parent().hasClass("main-nav")&&!b.parents().hasClass("side-header"))var c=b.find("> a");else if(b.parent().hasClass("main-nav")&&b.parents().hasClass("side-header"))var c=b;else if(b.parent().hasClass("sub-nav")||b.parents().hasClass("mini-nav"))var c=b;(dtGlobals.isMobile||dtGlobals.isWindowsPhone)&&b.find("> a").on("click",function(b){a(this).hasClass("dt-clicked")?b.stopPropagation():(b.preventDefault(),v.find(".dt-clicked").removeClass("dt-clicked"),a(this).addClass("dt-clicked"))});var d,e;c.on("mouseenter tap",function(b){var c=a(this);if("tap"==b.type&&b.stopPropagation(),c.parent("li").length>0)var f=c.parent(),g=c.siblings("div, ul");else var f=c,h=c.find("> a"),g=h.siblings("div, ul");var i=c.offset().left,h=c.offset().left,j=c.parents(".masthead");if(f.addClass("dt-hovered"),f.hasClass("dt-mega-menu")&&f.addClass("show-mega-menu"),dtGlobals.isHovering=!0,t.width()-(g.offset().left-t.offset().left)-g.width()<0&&g.addClass("right-overflow"),q.height()-(g.offset().top-dtGlobals.winScrollTop)-g.innerHeight()<0&&g.addClass("bottom-overflow"),!y.length>0&&g.not(".right-overflow").css({left:h-i}),f.hasClass("mega-auto-width")){var k=(f.width(),j.offset().left),l=f.offset().left;if($_this_parents_ofs=f.offset().left-k,!y.length){var m=t.width();if(a(".boxed").length>0)var l=f.position().left;else var l=f.offset().left;g.width()>m-f.position().left&&g.css({left:-(g.innerWidth()-(m-l))}),g.width()>m&&(a(".boxed").length>0?g.css({width:j.width(),left:-f.position().left}):g.css({width:j.width(),left:-(l-k)}))}}if(f.hasClass("mega-full-width")){var l=f.offset().left;if(c.parents(".header-bar").length>0)var n=c.parents(".header-bar").innerWidth(),k=c.parents(".header-bar").offset().left;else var n=c.parents(".ph-wrap").innerWidth(),k=c.parents(".ph-wrap").offset().left;!y.length>0&&g.css({width:n,left:-(l-k)})}clearTimeout(d),clearTimeout(e),d=setTimeout(function(){f.hasClass("dt-hovered")&&g.stop().css("visibility","visible").animate({opacity:1},150)},100)}),b.on("mouseleave",function(b){var c=a(this),f=c.find("> a"),g=f.siblings("div, ul");c.removeClass("dt-hovered"),dtGlobals.isHovering=!1,clearTimeout(d),clearTimeout(e),e=setTimeout(function(){c.hasClass("dt-hovered")||(g.stop().animate({opacity:0},150,function(){a(this).css("visibility","hidden")}),c.removeClass("show-mega-menu"),setTimeout(function(){c.hasClass("dt-hovered")||(g.removeClass("right-overflow"),g.removeClass("bottom-overflow"),c.hasClass("mega-auto-width")&&g.css({width:"",left:""}))},400))},150),c.find("> a").removeClass("dt-clicked")})})}),a.fn.touchMenuItem=function(){return this.each(function(){var b=a(this);if(!b.hasClass("item-ready")){s.on("touchend",function(b){a(".mobile-true .has-children > a").removeClass("is-clicked")});var c=a(this),d=c.attr("target")?c.attr("target"):"_self";c.on("touchstart",function(a){origY=a.originalEvent.touches[0].pageY,origX=a.originalEvent.touches[0].pageX}),c.on("touchend",function(b){var e=b.originalEvent.changedTouches[0].pageX,f=b.originalEvent.changedTouches[0].pageY;if(origY==f||origX==e)if(c.hasClass("is-clicked"));else if(c.parent().hasClass("dt-hovered"))return b.preventDefault(),a(".mobile-true .has-children > a").removeClass("is-clicked"),c.addClass("is-clicked"),window.open(c.attr("href"),d),!1}),b.addClass("item-ready")}})},a(".mobile-true .has-children > a").touchMenuItem();var B,C;z.on("mouseenter tap",function(b){"tap"==b.type&&b.stopPropagation();var c=a(this);c.addClass("dt-hovered"),t.width()-(c.children(".sub-nav").offset().left-t.offset().left)-c.find(" > .sub-nav").width()<0&&c.children(".sub-nav").addClass("right-overflow"),q.height()-(c.children(".sub-nav").offset().top-dtGlobals.winScrollTop)-c.children(".sub-nav").height()<0&&c.children(".sub-nav").addClass("bottom-overflow"),dtGlobals.isHovering=!0,clearTimeout(B),clearTimeout(C),B=setTimeout(function(){c.hasClass("dt-hovered")&&c.children(".sub-nav").stop().css("visibility","visible").animate({opacity:1},150)},100)}),z.on("mouseleave",function(b){var c=a(this);c.removeClass("dt-hovered"),dtGlobals.isHovering=!1,clearTimeout(B),clearTimeout(C),C=setTimeout(function(){c.hasClass("dt-hovered")||(c.parents().hasClass("dt-mega-menu")||c.children(".sub-nav").stop().animate({opacity:0},150,function(){a(this).css("visibility","hidden")}),setTimeout(function(){c.hasClass("dt-hovered")||(c.children(".sub-nav").removeClass("right-overflow"),c.children(".sub-nav").removeClass("bottom-overflow"))},400))},150)});var D=a(".top-bar"),E=a(".masthead"),F=a(".overlay-navigation"),G=a(".sticky-header"),H=a("#main-slideshow, .photo-scroller"),I=a(".header-side-left").length>0,J=a(".header-side-right").length>0,K=a("#main, #main-slideshow, .photo-scroller, .page-title, .fancy-header, .footer"),L=a(".floating-logo.side-header-menu-icon .branding, .side-header-h-stroke, #phantom"),y=a(".side-header"),M=a(".move-header-animation").length>0,N=a(".page-template-template-microsite").length>0;if(a(".side-header-v-stroke").length>0)var O=y.width()-a(".side-header-v-stroke").width(),P=200;else var O=y.width(),P=0;if($overlapContent=a(".overlap #content"),!a.browser.webkit||dtGlobals.isMobile||($overlapContent.find(">:first-child").css({position:"relative","z-index":"4"}),$overlapContent.find(">:first-child").height()<36&&$overlapContent.find("> :nth-child(2)").css({position:"relative","z-index":"4"})),a.closeSideHeader=function(){t.removeClass("show-header"),t.addClass("closed-header"),s.removeClass("show-sticky-header"),a(".sticky-header-overlay").removeClass("active"),M&&(I?y.velocity({translateX:"-100%"},400):y.velocity({translateX:"100%"},400),K.velocity({translateX:""},400,function(){K.css({transform:"none"})}),L.velocity({translateX:""},400))},a.closeMobileHeader=function(){t.removeClass("show-mobile-header"),t.addClass("closed-mobile-header"),s.removeClass("show-sticky-mobile-header show-overlay-mobile-header").addClass("closed-overlay-mobile-header"),a(".mobile-sticky-header-overlay, .dt-mobile-menu-icon, .menu-toggle").removeClass("active")},G.length>0||F.length>0){
if(a('<div class="lines-button x"><span class="lines"></span></div>').appendTo(".menu-toggle"),G.length>0&&(s.append('<div class="sticky-header-overlay"></div>'),!a(".side-header-h-stroke").length>0&&!a(".header-under-side-line").length>0&&a(".mixed-header").length>0)){var Q=a(".mixed-header").find(".menu-toggle").position().top;a(".mixed-header").find(".menu-toggle").clone(!0).prependTo(".side-header").css({top:Q})}M&&(I?y.velocity({translateX:"-100%"},0):J&&y.velocity({translateX:"100%"},0)),F.length>0&&(a(y).append('<div class="hide-overlay"></div>'),a('<div class="lines-button x"><span class="lines"></span></div>').appendTo(".hide-overlay"));var R=a(".menu-toggle .lines-button"),S=a(".menu-toggle"),T=a(".sticky-header-overlay");R.on("click",function(){if(!a(".header-under-side-line").length>0)var b=a(".side-header .menu-toggle");else var b=a(".menu-toggle");b.hasClass("active")?(b.removeClass("active"),t.removeClass("show-header").addClass("closed-header"),b.parents("body").removeClass("show-sticky-header"),T.removeClass("active"),a(".hide-overlay").removeClass("active"),M&&(I?y.velocity({translateX:"-100%"},{duration:400,delay:P}):y.velocity({translateX:"100%"},{duration:400,delay:P}),t.hasClass("boxed")||(K.velocity({translateX:""},400,function(){K.css({transform:"none"})}),L.velocity({translateX:""},400)))):(S.removeClass("active"),b.addClass("active"),t.addClass("show-header").removeClass("closed-header"),b.parents("body").addClass("show-sticky-header"),T.addClass("active"),a(".hide-overlay").addClass("active"),M&&(I?(y.velocity({translateX:""},400),t.hasClass("boxed")||(K.velocity({translateX:O},{duration:400,delay:P}),L.velocity({translateX:O},{duration:400,delay:P}))):(y.velocity({translateX:""},400),t.hasClass("boxed")||(K.velocity({translateX:-O},{duration:400,delay:P}),L.velocity({translateX:-O},{duration:400,delay:P})))))}),T.on("click",function(){a(this).hasClass("active")&&(S.removeClass("active"),t.removeClass("show-header").addClass("closed-header"),s.removeClass("show-sticky-header"),T.removeClass("active"),M&&(I?y.velocity({translateX:"-100%"},{duration:400,delay:P}):y.velocity({translateX:"100%"},{duration:400,delay:P}),K.velocity({translateX:""},400,function(){K.css({transform:"none"})}),L.velocity({translateX:""},400)))}),a(".hide-overlay").on("click",function(){a(this).hasClass("active")&&(S.removeClass("active"),t.removeClass("show-header"),t.addClass("closed-header"),s.removeClass("show-sticky-header"),T.removeClass("active"),M&&(I?y.velocity({translateX:"-100%"},{duration:400,delay:P}):y.velocity({translateX:"100%"},{duration:400,delay:P}),K.velocity({translateX:""},400,function(){K.css({transform:"none"})}),L.velocity({translateX:""},400)))})}if(c(),q.on("resize",function(){c()}),a(".mixed-header").length>0)var U=a(".mixed-header");else var U=a(".masthead");var V=0;window.clickMenuToggle=function(b,c){if(a(".show-mobile-header").length>0)var d=a(".dt-mobile-header");else var d=y;N?r.hasClass("onepage-menu-open")?r.removeClass("onepage-menu-open"):r.addClass("onepage-menu-open"):r.hasClass("menu-open")?(r.removeClass("menu-open"),dtGlobals.isiOS?(q.off("touchstart.dt"),q.off("touchmove.dt")):(s.css("margin-top",0),q.scrollTop(V))):(V=dtGlobals.winScrollTop,r.addClass("menu-open"),dtGlobals.isiOS?q.on("touchstart.dt",function(a){q.off("touchmove.dt"),d[0].offsetHeight>=d[0].scrollHeight?q.on("touchmove.dt",function(a){a.preventDefault()}):d[0].scrollTop<=0?d[0].scrollTop+=1:d[0].scrollTop+d[0].offsetHeight>=d[0].scrollHeight&&(d[0].scrollTop-=1)}):s.css("margin-top",-V))},s.on("click",".menu-toggle .lines-button, .sticky-header-overlay, .hide-overlay",function(b){clickMenuToggle(a(this),b)}),a(".side-header .header-bar").wrap("<div class='header-scrollbar-wrap'></div>"),y.length>0&&!dtGlobals.isMobile&&a(".header-scrollbar-wrap").mCustomScrollbar({scrollInertia:150}),y.length>0&&!a(".mCSB_container").length>0&&a(".side-header .header-scrollbar-wrap .header-bar").wrap("<div class='mCSB_container'></div>"),dtGlobals.desktopProcessed=!1,dtGlobals.mobileProcessed=!1;var W=a(".floating-navigation-below-slider").exists(),X=s.hasClass("transparent");a.headerBelowSlider=function(){if(W){var b=a(".masthead:not(.side-header):not(#phantom)");window.innerWidth>dtLocal.themeSettings.mobileHeader.secondSwitchPoint&&!dtGlobals.desktopProcessed?(dtGlobals.desktopProcessed=!0,dtGlobals.mobileProcessed=!1,X?(b.insertAfter("#main-slideshow, .photo-scroller").velocity({translateY:"-100%"},0,function(){}),b.css({visibility:"visible",opacity:1,top:"auto"})):b.insertAfter("#main-slideshow, .photo-scroller").css({visibility:"visible",opacity:1})):window.innerWidth<=dtLocal.themeSettings.mobileHeader.secondSwitchPoint&&!dtGlobals.mobileProcessed&&(dtGlobals.desktopProcessed=!1,dtGlobals.mobileProcessed=!0,b.insertBefore("#main-slideshow, .photo-scroller").css({visibility:"visible",opacity:1,transform:"","-webkit-transform":""}),!a(".mobile-header-space").length>0&&(a("<div class='mobile-header-space'></div>").insertBefore(b),a(".mobile-header-space").css({height:b.height()})))}},a.headerBelowSlider();var Y=a(".sticky-mobile-header").exists();q.scroll(function(){if(W&&Y){if(s.hasClass("transparent"))var b=dtGlobals.winScrollTop>H.height()-a(".masthead:not(.side-header)").height();else var b=dtGlobals.winScrollTop>H.height();b?s.addClass("fixed-mobile-header"):s.removeClass("fixed-mobile-header")}});var Z=['<g id="social-500px"><path d="M9.63,14.894c-0.984,0.068-1.756,0.847-1.756,1.771v2.645c0,0.358,0.373,0.358,0.495,0.358c0.328,0,0.495-0.121,0.495-0.358v-2.648c0-0.431,0.364-0.811,0.813-0.848c0.27-0.024,0.53,0.052,0.724,0.208c0.187,0.151,0.294,0.367,0.294,0.591c0,0.047-0.034,0.265-0.197,0.462c-0.191,0.227-0.464,0.341-0.823,0.341c-0.188,0-0.407,0.051-0.428,0.437c-0.014,0.159-0.038,0.425,0.315,0.472c0.35,0.043,0.712-0.017,1.055-0.179c0.601-0.276,1.006-0.812,1.057-1.399c0.042-0.507-0.162-1.004-0.561-1.364C10.717,15.034,10.187,14.846,9.63,14.894z"/><path d="M17.593,6.979c-1.642,0-2.977,1.411-2.977,3.146c0,1.735,1.335,3.146,2.977,3.146c1.643,0,2.979-1.412,2.979-3.146C20.572,8.391,19.235,6.979,17.593,6.979z M17.593,12.294c-1.12,0-2.031-0.973-2.031-2.169c0-1.195,0.911-2.167,2.031-2.167c1.121,0,2.033,0.972,2.033,2.167C19.626,11.321,18.714,12.294,17.593,12.294z"/><path d="M8.464,10.741C8.332,9.713,7.426,8.894,6.262,8.748C5.676,8.676,5.091,8.775,4.575,9.035v-1.02h2.917c0.356,0,0.362-0.355,0.364-0.487c0.003-0.171-0.035-0.296-0.117-0.379C7.64,7.046,7.515,7.046,7.468,7.046H4.061c-0.284,0-0.482,0.188-0.482,0.457v2.418c0,0.278,0.272,0.318,0.404,0.338l0.09,0.015c0.052,0.01,0.109,0.015,0.168,0.015c0.098,0,0.337-0.013,0.473-0.153c0.285-0.357,0.729-0.507,1.34-0.44c0.716,0.072,1.296,0.558,1.378,1.151c0.046,0.377-0.088,0.739-0.376,1.017c-0.295,0.286-0.72,0.45-1.165,0.45c-0.644,0-1.217-0.347-1.459-0.883c-0.062-0.143-0.176-0.215-0.338-0.215c-0.068,0-0.148,0.015-0.279,0.052c-0.124,0.038-0.295,0.106-0.361,0.257c-0.026,0.059-0.045,0.154,0.006,0.259c0.375,0.895,1.353,1.496,2.432,1.496c0.726,0,1.426-0.273,1.921-0.75C8.318,12.036,8.55,11.401,8.464,10.741z"/><path d="M14.407,10.125c0-1.734-1.337-3.146-2.979-3.146c-1.641,0-2.976,1.411-2.976,3.146c0,1.735,1.335,3.146,2.976,3.146C13.07,13.271,14.407,11.86,14.407,10.125z M11.428,12.294c-1.121,0-2.032-0.973-2.032-2.169c0-1.195,0.911-2.167,2.032-2.167c1.121,0,2.033,0.972,2.033,2.167C13.461,11.321,12.549,12.294,11.428,12.294z"/><path d="M16.013,15.422c-0.003-0.11-0.062-0.216-0.182-0.322c-0.125-0.112-0.387-0.251-0.603-0.068l-1.103,0.982l-1.092-0.98c-0.066-0.066-0.152-0.102-0.247-0.102c-0.141,0-0.257,0.086-0.341,0.161c-0.082,0.072-0.191,0.186-0.194,0.336c-0.002,0.092,0.036,0.175,0.117,0.251l1.068,0.956l-1.066,0.948c-0.034,0.033-0.113,0.11-0.113,0.241c0,0.158,0.113,0.277,0.201,0.355c0.074,0.063,0.188,0.147,0.33,0.147c0.133,0,0.22-0.074,0.269-0.115l1.071-0.969l1.086,0.96c0.042,0.055,0.136,0.118,0.262,0.118c0.153,0,0.275-0.091,0.361-0.166c0.117-0.113,0.174-0.223,0.173-0.336c-0.001-0.089-0.037-0.167-0.11-0.234l-1.076-0.959l1.076-0.956C15.931,15.64,16.016,15.558,16.013,15.422z"/></g>','<g id="vk"><path d="M12.235 16.191c0.372 0 0.524-0.248 0.516-0.56c-0.017-1.17 0.438-1.797 1.258-0.978 c0.908 0.9 1.1 1.5 2.1 1.502c0.418 0 1.5 0 1.9 0c1.528 0 0.166-1.54-0.916-2.54c-1.024-0.952-1.071-0.979-0.189-2.123 c1.102-1.425 2.535-3.26 1.266-3.26c-0.246 0-0.072 0-2.428 0c-0.471 0-0.501 0.277-0.672 0.7 c-0.604 1.429-1.758 3.28-2.195 3.001c-0.46-0.295-0.248-1.3-0.213-3.038c0.014-0.459 0.01-0.774-0.694-0.94 c-1.92-0.447-3.578 0.431-2.9 0.537c0.954 0.2 0.9 2 0.6 2.98c-0.387 1.558-1.851-1.235-2.457-2.623 C7.25 8.5 7.2 8.3 6.7 8.277c-0.29 0-1.558 0-1.986 0c-0.382 0-0.569 0.177-0.434 0.531c0.133 0.3 1.7 3.8 3.4 5.8 c1.718 1.7 3.4 1.6 4.6 1.597H12.235L12.235 16.191z"/></g>','<g id="tripedvisor"><path fill="none" d="M15.825 9.215c-1.584 0-2.873 1.291-2.873 2.874c0 1.6 1.3 2.9 2.9 2.876s2.873-1.292 2.873-2.876 C18.698 10.5 17.4 9.2 15.8 9.215z M15.879 13.729c-0.423 0-0.82-0.164-1.118-0.464c-0.299-0.301-0.465-0.697-0.465-1.121 c0-0.421 0.166-0.818 0.465-1.119c0.298-0.298 0.695-0.461 1.118-0.461c0.873 0 1.6 0.7 1.6 1.6 C17.464 13 16.8 13.7 15.9 13.729z"/><path fill="none" d="M8.26 9.251c-1.592 0-2.887 1.296-2.887 2.888c0 1.6 1.3 2.9 2.9 2.9 c1.591 0 2.886-1.299 2.886-2.887C11.146 10.5 9.9 9.3 8.3 9.251z M8.253 13.706c-0.421 0-0.816-0.163-1.113-0.461 c-0.3-0.296-0.462-0.691-0.462-1.114c0-0.419 0.164-0.814 0.462-1.113c0.297-0.296 0.693-0.457 1.113-0.462 c0.87 0 1.6 0.7 1.6 1.574S9.123 13.7 8.3 13.706z"/><path d="M8.253 10.556c-0.42 0.005-0.816 0.166-1.113 0.463c-0.299 0.299-0.462 0.694-0.462 1.113c0 0.4 0.2 0.8 0.5 1.1 c0.297 0.3 0.7 0.5 1.1 0.461c0.87 0 1.576-0.708 1.576-1.577S9.123 10.6 8.3 10.556z"/><path d="M15.879 10.563c-0.423 0-0.82 0.163-1.118 0.461c-0.299 0.301-0.465 0.698-0.465 1.119c0 0.4 0.2 0.8 0.5 1.1 c0.298 0.3 0.7 0.5 1.1 0.464c0.873 0 1.585-0.708 1.585-1.582S16.752 10.6 15.9 10.563z"/><path d="M20.172 8.047l-3.177 0.365c-0.042-0.013-0.085-0.021-0.127-0.034c-0.138-0.216-1.087-1.44-4.881-1.44 c-4.164 0-4.9 1.475-4.9 1.475l-3.165-0.35c0.339 0.3 1 1.3 1.1 1.733c-0.49 0.649-0.867 1.475-0.859 2.4 c0.016 1.8 0.7 3.9 3.7 4.338c1.375-0.019 2.048-0.344 3.064-1.133l1.109 2.461l1.169-2.439 c0.776 0.6 1.2 1 2.6 1.096c3.047-0.125 3.981-2.578 4.029-4.321c0.002-0.933-0.238-1.729-0.781-2.396 C19.256 9.3 19.9 8.4 20.2 8.047z M8.26 15.025c-1.592 0-2.887-1.299-2.887-2.887c0-1.592 1.295-2.888 2.887-2.888 c1.591 0 2.9 1.3 2.9 2.888C11.146 13.7 9.9 15 8.3 15.025z M15.825 14.965c-1.584 0-2.873-1.29-2.873-2.876 c0-1.583 1.289-2.874 2.873-2.874c1.586 0 2.9 1.3 2.9 2.874C18.698 13.7 17.4 15 15.8 14.965z"/></g>','<g id="foursquare"><path d="M18.511 13.164l-5.351 5.353c-0.643 0.641-1.688 0.641-2.326 0L5.48 13.164c-0.639-0.645-0.639-1.688 0-2.329l5.354-5.354 c0.638-0.638 1.685-0.638 2.3 0l2.417 2.418l-3.631 3.631l-1.707-1.712c-0.239-0.24-0.57-0.377-0.907-0.377 c-0.339 0-0.667 0.137-0.907 0.375l-1.096 1.094c-0.243 0.243-0.378 0.565-0.378 0.909c0 0.3 0.1 0.7 0.4 0.906l3.707 3.7 c0.167 0.2 0.4 0.3 0.6 0.34l0.053 0.035l0.25 0.002c0.341 0 0.666-0.134 0.905-0.376l5.636-5.635h0.023 c0.689 0.7 0.7 1.6 0.1 2.333L18.511 13.164L18.511 13.164z"/><path d="M18.571 9.409l-6.367 6.373c-0.085 0.079-0.196 0.129-0.315 0.129l0 0c-0.002 0-0.002 0-0.004 0 c-0.017 0-0.034-0.002-0.048-0.005c-0.101-0.012-0.192-0.057-0.262-0.124l-3.547-3.558c-0.173-0.171-0.171-0.452 0-0.622 l1.049-1.048c0.083-0.081 0.195-0.128 0.311-0.129c0.117 0 0.2 0.1 0.3 0.131l2.191 2.195l5.009-5.009 c0.083-0.084 0.193-0.13 0.312-0.13c0.117 0 0.2 0 0.3 0.13l1.045 1.049c0.221 0.1 0.2 0.4 0.1 0.619L18.571 9.4 L18.571 9.409z"/></g>','<g id="website"><path d="M8.639 10.095c0.251-0.252 0.53-0.46 0.827-0.625c1.654-0.912 3.778-0.425 4.8 1.187l-1.287 1.3 c-0.371-0.844-1.288-1.323-2.198-1.118c-0.342 0.077-0.67 0.249-0.936 0.512l-2.468 2.467c-0.75 0.748-0.75 2 0 2.7 c0.75 0.8 2 0.8 2.7 0l0.762-0.76c0.689 0.2 1.4 0.3 2.2 0.324l-1.679 1.682c-1.439 1.438-3.771 1.438-5.211 0 c-1.439-1.438-1.439-3.771 0-5.211L8.639 10.095z M12.557 6.177l-1.681 1.677c0.732-0.054 1.4 0.1 2.2 0.331l0.764-0.761 c0.75-0.749 1.97-0.749 2.7 0c0.75 0.8 0.8 2 0 2.717l-2.465 2.466c-0.753 0.752-1.974 0.744-2.719 0 c-0.173-0.174-0.323-0.393-0.417-0.604l-1.287 1.284c0.136 0.2 0.3 0.4 0.4 0.562c0.465 0.4 1.1 0.8 1.8 1 c0.882 0.2 1.9 0.1 2.644-0.354c0.298-0.16 0.577-0.369 0.828-0.621l2.47-2.465c1.437-1.439 1.437-3.773 0-5.21 c-1.479-1.438-3.761-1.438-5.292-0.008L12.557 6.177L12.557 6.177z"/></g>','<g id="mail"><path d="M5 6.984v10.031h0.012h13.954H19V6.984H5z M17.414 8.134l-5.416 4.012L6.586 8.134H17.414 z M6.188 9.289l2.902 2.151L6.188 14.25V9.289z M6.2 15.864l3.842-3.719l1.957 1.45l1.946-1.442l3.834 3.712L6.2 15.864L6.2 15.864z M17.812 14.271l-2.916-2.824l2.916-2.159V14.271z"/></g>','<g id="behance"><path d="M11.429 8.664c0.27 0.4 0.4 0.8 0.4 1.385c0 0.554-0.138 0.999-0.407 1.3 c-0.152 0.188-0.374 0.36-0.671 0.499c0.45 0.2 0.8 0.4 1 0.804c0.229 0.4 0.3 0.8 0.3 1.3 c0 0.535-0.133 1.021-0.39 1.397c-0.164 0.282-0.374 0.522-0.62 0.722c-0.282 0.217-0.61 0.363-0.992 0.5 c-0.381 0.076-0.794 0.128-1.236 0.128H4.836V7.694H9.07c1.156-0.03 1.9 0.4 2.4 0.97H11.429z M6.686 9.345v2.015h2.145 c0.382 0 0.694-0.078 0.931-0.227c0.241-0.149 0.36-0.417 0.36-0.804c0-0.422-0.159-0.707-0.475-0.841 C9.374 9.4 9 9.3 8.6 9.345l-1.92 0.017V9.345z M6.686 12.874v2.438h2.142c0.385 0 0.682-0.055 0.894-0.164 c0.387-0.201 0.581-0.573 0.581-1.137c0-0.479-0.188-0.812-0.563-0.984c-0.209-0.098-0.501-0.146-0.883-0.152L6.686 12.9 L6.686 12.874z M17.494 10.061c0.445 0.2 0.8 0.5 1.1 0.979c0.262 0.4 0.4 0.9 0.5 1.4 c0.041 0.3 0.1 0.7 0.1 1.312h-4.637c0.023 0.7 0.3 1.1 0.7 1.396c0.248 0.2 0.6 0.2 0.9 0.2 c0.383 0 0.688-0.104 0.924-0.309c0.133-0.104 0.188-0.164 0.289-0.354h1.734c-0.041 0.396-0.232 0.688-0.598 1.1 c-0.568 0.646-1.363 0.97-2.396 0.999c-0.848 0-1.596-0.271-2.236-0.812c-0.652-0.543-0.835-1.439-0.835-2.659 c0-1.144 0.147-2.012 0.735-2.621c0.584-0.611 1.344-0.916 2.275-0.916c0.559-0.023 1.1 0.1 1.5 0.293L17.494 10.061z M14.811 11.632c-0.232 0.256-0.328 0.775-0.391 1.198l3.064 0.034c-0.033-0.468-0.074-0.964-0.412-1.413 c-0.271-0.244-0.752-0.295-1.156-0.295c-0.438 0.003-0.818 0.203-1.113 0.477L14.811 11.632L14.811 11.632z M18.586 7.207h-4.707 v1.584h4.707V7.207z"/></g>','<g id="stumbleupon"><path d="M12.719 10.35l0.917 0.499l1.456-0.477v-0.96c0-1.656-1.422-2.944-3.11-2.944 c-1.687 0-3.116 1.205-3.116 2.949c0 1.7 0 4.4 0 4.384c0 0.401-0.332 0.723-0.738 0.723c-0.409 0-0.74-0.318-0.74-0.723v-1.855 H5v1.896c0 1.7 1.4 3.1 3.2 3.034c1.71 0 3.096-1.336 3.121-2.991V9.517c0-0.396 0.331-0.718 0.74-0.718 c0.407 0 0.7 0.3 0.7 0.718v0.833H12.719z M16.573 11.918v1.943c0 0.396-0.33 0.719-0.738 0.7 c-0.41 0-0.737-0.32-0.737-0.723v-1.906l-1.459 0.478l-0.916-0.499v1.891c0.02 1.7 1.4 3.1 3.2 3.1 c1.719 0 3.117-1.362 3.117-3.032c0-0.025 0-1.887 0-1.887L16.573 11.918L16.573 11.918z"/></g>','<g id="instagram"><rect x="3" y="3" display="none" opacity="0.7" fill="#27AAE1" enable-background="new    " width="16" height="16"/><path d="M15.121 11.582l3.023-0.032v4.181c0 1.334-1.095 2.42-2.437 2.42H8.283c-1.344 0-2.434-1.086-2.434-2.42v-4.173h3.097 c-0.08 0.677-0.096 0.745-0.056 1.052c0.233 1.8 1.8 2.6 3.2 2.652c1.672 0.1 2.703-0.996 3.123-2.927 c-0.045-0.729-0.017 0.085-0.017-0.752L15.121 11.582L15.121 11.582z M8.226 5.851C8.246 5.8 8.3 5.8 8.3 5.85h0.393 M8.279 5.85h7.431c1.343 0 2.4 1.1 2.4 2.421l0.002 2.33h-3.375c-0.527-0.672-1.499-1.71-2.784-1.674 c-1.755 0.048-2.28 1.089-2.663 1.727L5.85 10.56V8.271c0-0.816 0.317-2.02 1.821-2.419 M16.739 7.5 c0-0.191-0.155-0.342-0.345-0.342h-1.166c-0.19 0-0.34 0.15-0.34 0.342v1.181c0 0.2 0.1 0.3 0.3 0.343h1.164 c0.188 0 0.345-0.155 0.345-0.343V7.5l0.037 0.039V7.5z M10.207 12.054c0 1 0.8 1.8 1.8 1.9 c0.986 0 1.788-0.891 1.788-1.88c0-0.983-0.802-1.779-1.789-1.779c-1.029 0.011-1.867 0.823-1.867 1.779H10.207z"/></g>','<g id="github"><path d="M15.604 5.666c-0.662 0.286-1.369 0.442-2.124 0.472C13 5.9 12.4 5.7 11.8 5.666c-1.562 0-3.112 1.052-3.177 2.8 c-0.047 1.3 0.5 2.2 1.6 2.788c-0.475 0.219-0.664 0.723-0.664 1.217c0 0.5 0.3 1 0.6 1.2 C9.041 14.2 8.4 14.9 8.4 15.889c0 3.2 7 3.3 7.004-0.136c0-1.271-0.875-2.188-3.03-2.538 c-0.852-0.118-1.304-1.413-0.046-1.647c1.803-0.296 3.015-1.998 2.38-3.867c0.269-0.04 0.537-0.105 0.801-0.196l0.097-1.818V5.666 H15.604z M12.002 14.818c0.982-0.02 1.6 0.3 1.6 0.951c0.014 0.674-0.539 0.979-1.482 0.9 c-1.049-0.003-1.643-0.292-1.664-0.986c0.004-0.549 0.484-0.861 1.631-0.902H12.002L12.002 14.818z M11.856 10 c-0.831 0.012-1.212-0.445-1.213-1.329c0-0.806 0.369-1.309 1.194-1.314c0.738-0.003 1.1 0.5 1.1 1.4 C13.041 9.5 12.6 10 11.8 9.98L11.856 9.96z"/></g>','<g id="skype"><path d="M18.412 12.034c0-3.541-2.889-6.412-6.447-6.412c-0.353 0-0.7 0.028-1.038 0.083c-0.604-0.394-1.323-0.623-2.101-0.623 c-2.124 0-3.846 1.723-3.846 3.847c0 0.8 0.2 1.5 0.6 2.094c-0.053 0.33-0.079 0.667-0.079 1 c0 3.5 2.9 6.4 6.4 6.414c0.402 0 0.795-0.041 1.176-0.107c0.589 0.4 1.3 0.6 2 0.6 c2.126 0 3.849-1.725 3.849-3.848c0-0.803-0.246-1.551-0.668-2.167C18.391 12.6 18.4 12.3 18.4 12.034z M12.568 16.8 c-2.049 0.105-3.007-0.348-3.886-1.172c-0.98-0.918-0.587-1.969 0.213-2.021c0.798-0.053 1.3 0.9 1.7 1.2 c0.427 0.3 2 0.9 2.901-0.104c0.933-1.062-0.621-1.614-1.758-1.782C10.121 12.6 8.1 11.7 8.2 10 c0.159-1.729 1.468-2.617 2.847-2.742c1.757-0.159 2.9 0.3 3.8 1.037c1.046 0.9 0.5 1.89-0.187 2 c-0.664 0.079-1.411-1.468-2.874-1.49c-1.509-0.022-2.528 1.571-0.665 2.024c1.861 0.5 3.9 0.6 4.6 2.3 C16.455 14.8 14.6 16.7 12.6 16.76z"/></g>','<g id="devian"><path d="M11.747 10.649c2.892-0.069 5.2 1.4 5.6 3.778l-2.893 0.058l-0.02-1.923c-0.629-0.337-0.83-0.45-1.492-0.523 l-0.035 3.913H20c-0.374-3.838-3.814-6.841-8.001-6.841c-0.073 0-0.146 0-0.216 0.001L11.8 7.1 c-0.66-0.056-1.126 0.276-1.757 0.629l-0.012 1.624C6.868 10.1 4.3 12.8 4 15.95h7.785v-5.301H11.747z M10.072 14.4 l-3.359 0.086c0.262-1.62 1.974-3.136 3.333-3.597L10.072 14.37z"/></g>','<g id="pinterest"><path d="M8.317 13.361c0.703-1.242-0.227-1.515-0.372-2.416c-0.596-3.68 4.244-6.193 6.779-3.622 c1.754 1.8 0.6 7.256-2.229 6.687c-2.71-0.545 1.325-4.901-0.836-5.756c-1.757-0.696-2.689 2.126-1.856 3.5 c-0.489 2.411-1.541 4.682-1.114 7.708c1.381-1.002 1.847-2.924 2.228-4.924c0.695 0.4 1.1 0.9 2 0.9 c3.264 0.3 5.089-3.258 4.641-6.5c-0.396-2.872-3.259-4.335-6.313-3.992c-2.415 0.27-4.822 2.222-4.922 5 C6.211 11.7 6.7 13 8.3 13.361z"/></g>','<g id="tumbler"><path d="M10.493 5.792c-0.073 0.618-0.211 1.126-0.41 1.526C9.884 7.7 9.6 8.1 9.3 8.35c-0.328 0.289-0.72 0.507-1.18 0.7 v1.71h1.285v4.198c0 0.5 0.1 0.9 0.2 1.252c0.111 0.3 0.3 0.5 0.6 0.828c0.289 0.2 0.6 0.4 1 0.6 c0.412 0.1 0.9 0.2 1.4 0.205c0.47 0 0.911-0.049 1.313-0.146c0.401-0.097 0.858-0.266 1.358-0.508v-1.896 c-0.586 0.396-1.176 0.589-1.771 0.589c-0.335 0-0.63-0.078-0.89-0.235c-0.195-0.117-0.331-0.281-0.405-0.479 c-0.068-0.196-0.106-0.641-0.106-1.336v-3.073h2.784V8.824H12.21V5.792H10.493z"/></g>','<g id="vimeo"><path d="M17.732 9.417c-0.051 1.179-0.83 2.796-2.342 4.85c-1.561 2.144-2.878 3.215-3.959 3.258c-0.668 0-1.235-0.65-1.697-1.959 c-0.306-1.195-0.617-2.396-0.925-3.587c-0.34-1.373-0.678-1.984-1.085-1.984c-0.086 0-0.386 0.192-0.899 0.571L6.268 9.8 c0.565-0.526 1.15-1.036 1.66-1.576c0.754-0.688 1.321-1.053 1.7-1.088c0.893-0.091 1.4 0.5 1.6 1.9 c0.225 1.5 0.4 2.4 0.5 2.779c0.256 1.2 0.5 1.8 0.8 1.834c0.24 0 0.601-0.402 1.082-1.206 c0.481-0.802 0.739-1.413 0.772-1.834c0.066-0.689-0.188-1.037-0.772-1.037c-0.276 0-0.561 0.065-0.85 0.2 c0.565-1.953 1.645-2.901 3.232-2.846c1.198 0.1 1.8 0.9 1.7 2.447H17.732z"/></g>','<g id="linkedin"><path d="M9.269 7.02c0 0.714-0.586 1.293-1.307 1.293c-0.722 0-1.307-0.579-1.307-1.293 c0-0.712 0.585-1.291 1.307-1.291C8.683 5.7 9.3 6.3 9.3 7.02H9.269z M9.061 9.279H6.873v7.392h2.188V9.279z M12.91 9.3 h-1.795l-0.027 7.392h2.044c0 0 0-2.742 0-3.879c0-1.04 0.775-1.79 1.7-1.665c0.824 0.1 1.1 0.6 1.1 1.7 c0 1.028-0.021 3.915-0.021 3.89h2.025c0 0 0.025-2.729 0.025-4.708c0-1.981-1.006-2.78-2.604-2.78 c-1.599 0-2.248 1.096-2.248 1.096v-1H12.91z"/></g>','<g id="lastfm"><path d="M11.217 15.157l-0.538-1.458c0 0-0.87 0.972-2.177 0.972c-1.159 0-1.979-1.009-1.979-2.621c0-2.064 1.04-2.807 2.063-2.807 c1.475 0 1.9 1 2.3 2.185l0.538 1.678c0.535 1.6 1.5 2.9 4.4 2.938c2.082 0 3.488-0.638 3.488-2.318 c0-1.357-0.771-2.063-2.216-2.4l-1.071-0.233c-0.739-0.17-0.953-0.472-0.953-0.973c0-0.572 0.453-0.907 1.188-0.907 c0.808 0 1.2 0.3 1.3 1.023l1.681-0.201c-0.088-1.521-1.174-2.125-2.884-2.135c-1.512 0-2.987 0.571-2.987 2.4 c0 1.1 0.5 1.9 1.9 2.203l1.141 0.27c0.854 0.2 1.1 0.6 1.1 1.042c0 0.624-0.603 0.877-1.739 0.9 c-1.697 0-2.399-0.893-2.802-2.116l-0.555-1.677c-0.702-2.184-1.826-2.99-4.058-2.99c-2.467 0-3.771 1.562-3.771 4.2 c0 2.5 1.3 3.9 3.6 3.93c2.041-0.041 2.903-0.947 2.903-0.94h0.042V15.157z"/></g>','<g id="forrst"><polygon points="11.404,15.574 9.438,13.961 10.031,13.381 11.404,14.055 11.404,10.815 12.492,10.815 12.492,12.521 14.07,12.043 14.365,12.904 12.596,13.67 12.596,14.715 15.158,13.766 15.548,14.625 12.596,16.053 12.596,17.771 17.913,17.771 12,4.229 6.087,17.771 11.404,17.771 "/></g>','<g id="flickr"><circle cx="8.3" cy="12" r="2.8"/><circle cx="15.7" cy="12" r="2.8"/></g>','<g id="delicious"><path d="M16.553 6H7.457C6.652 6 6 6.7 6 7.454v9.089c0 0.9 0.6 1.5 1.4 1.455h9.095c0.806 0 1.458-0.651 1.458-1.455 V7.454C18.014 6.7 17.4 6 16.6 6H16.553z M16.906 16.327c0 0.252-0.344 0.605-0.594 0.582H12V12H7.219L7.188 7.8 c0-0.251 0.407-0.646 0.656-0.646H12v4.844h4.938L16.906 16.327L16.906 16.327z"/></g>','<g id="rss"><path d="M9.258 16.374c0 0.894-0.728 1.62-1.625 1.62s-1.625-0.729-1.625-1.62c0-0.896 0.729-1.618 1.625-1.618 c0.898-0.027 1.7 0.7 1.7 1.618H9.258z M6.007 10.099v2.4c3.026 0 5.4 2.5 5.6 5.496h2.408 c-0.075-4.356-3.594-7.841-7.949-7.896H6.007z M6.007 8.419c2.556 0 5 1 6.8 2.812c1.812 1.9 2.8 4.2 2.8 6.751H18 C17.982 11.4 12.6 6 6 6.005L6.007 8.419L6.007 8.419z"/></g>','<g id="you-tube"><path d="M18.877 9.35c-0.22-1.924-0.96-2.189-2.438-2.292c-2.101-0.147-6.781-0.147-8.88 0C6.084 7.2 5.3 7.4 5.1 9.3 c-0.163 1.429-0.164 3.9 0 5.298c0.22 1.9 1 2.2 2.4 2.294c2.099 0.1 6.8 0.1 8.9 0 c1.477-0.104 2.217-0.369 2.437-2.294C19.041 13.2 19 10.8 18.9 9.35z M9.69 15.335v-6.65l5.623 3.324L9.69 15.335z"/></g>','<g id="dribbble"><path d="M12.012 5C8.139 5 5 8.1 5 12c0 3.8 3.1 7 7 7C15.861 19 19 15.9 19 12c0.025-3.857-3.075-7-7.012-7H12.012 z M17.787 11.674c-1.506-0.246-2.889-0.259-4.15-0.043c-0.145-0.329-0.291-0.656-0.447-0.979c1.352-0.583 2.438-1.376 3.244-2.378 c0.787 1 1.3 2.1 1.4 3.401L17.787 11.674L17.787 11.674z M15.54 7.456c-0.701 0.907-1.671 1.624-2.91 2.1 c-0.595-1.086-1.273-2.143-2.038-3.173c0.455-0.115 0.928-0.185 1.42-0.185c1.331-0.066 2.5 0.4 3.5 1.18L15.54 7.456z M9.398 6.847c0.779 1 1.5 2.1 2.1 3.138c-1.419 0.418-3.115 0.631-5.073 0.688c0.405-1.743 1.56-3.118 3.037-3.826H9.398 z M6.217 12c0-0.052 0.007-0.1 0.01-0.151c2.247-0.004 4.187-0.263 5.812-0.771c0.136 0.3 0.3 0.6 0.4 0.8 c-1.975 0.615-3.603 1.877-4.868 3.781C6.725 14.7 6.2 13.4 6.2 12H6.217z M8.458 16.6 c1.15-1.799 2.619-2.971 4.437-3.512c0.543 1.4 1 2.8 1.2 4.354c-0.646 0.246-1.348 0.39-2.077 0.4 c-1.329-0.055-2.571-0.546-3.555-1.273L8.458 16.593z M15.229 16.807c-0.258-1.371-0.636-2.716-1.121-4.021 c1.094-0.157 2.305-0.112 3.6 0.112c-0.273 1.634-1.23 3.009-2.516 3.908H15.229L15.229 16.807z"/></g>','<g id="google"><path d="M19.02 10.145h-1.953l0.021 1.958h-1.344l-0.021-1.937l-1.854-0.019l-0.023-1.258l1.896-0.008V6.864h1.343V8.86 l1.938 0.042v1.243H19.02z M13.254 15.303c0 1.217-1.107 2.698-3.899 2.698c-2.043 0-3.748-0.884-3.748-2.364 c0-1.146 0.725-2.624 4.107-2.624c-0.5-0.412-0.625-0.985-0.318-1.604c-1.98 0-2.995-1.166-2.995-2.645 c0-1.447 1.076-2.762 3.271-2.762c0.557 0 3.5 0 3.5 0l-0.809 0.823h-0.923c0.651 0.4 1 1.1 1 2 c0 0.778-0.427 1.407-1.036 1.874c-1.085 0.838-0.807 1.4 0.3 2.133c1.091 0.8 1.5 1.5 1.5 2.48L13.254 15.3 L13.254 15.303z M10.863 8.771C10.712 7.8 10 7.1 9.1 7.068c-0.872-0.021-1.457 0.687-1.307 1.6 c0.151 0.9 0.9 1.6 1.9 1.562c0.848 0.1 1.305-0.531 1.201-1.458L10.863 8.771z M11.544 15.5 c0-0.707-0.78-1.379-2.087-1.379c-1.178-0.017-2.179 0.615-2.179 1.354c0 0.7 0.8 1.4 2 1.4 c1.56-0.031 2.338-0.553 2.338-1.334H11.544z"/></g>','<g id="twitter"><path d="M18.614 6.604c-0.556 0.325-1.171 0.561-1.822 0.688c-0.526-0.551-1.271-0.896-2.099-0.896 c-1.586 0-2.875 1.269-2.875 2.83c0 0.2 0 0.4 0.1 0.646c-2.385-0.119-4.5-1.247-5.916-2.959 C5.729 7.3 5.6 7.8 5.6 8.336c0 1 0.5 1.9 1.3 2.354c-0.47-0.014-0.912-0.141-1.3-0.354c0 0 0 0 0 0 c0 1.4 1 2.5 2.3 2.774c-0.241 0.062-0.495 0.102-0.756 0.102c-0.186 0-0.365-0.02-0.541-0.055 c0.365 1.1 1.4 1.9 2.7 1.971c-0.982 0.756-2.222 1.208-3.567 1.208c-0.232 0-0.461-0.016-0.686-0.04 c1.271 0.8 2.8 1.3 4.4 1.272c5.286 0 8.171-4.312 8.171-8.055c0-0.123-0.003-0.246-0.009-0.367 C18.127 8.8 18.6 8.3 19 7.72c-0.516 0.225-1.068 0.378-1.648 0.446C17.943 7.8 18.4 7.3 18.6 6.604z"/></g>','<g id="facebook"><path d="M14.545 11.521l-1.74 0.002l0.052 6.648h-2.453l0.014-6.648H8.824V9.421h1.592l-0.001-1.236 c0-1.713 0.485-2.756 2.592-2.756h1.758V7.53h-1.098c-0.824 0-0.863 0.293-0.863 0.84l-0.004 1.051h1.975L14.545 11.521z"/></g>','<g id="xing"><polygon points="18.2,5 15.3,5 10.6,13.4 13.7,19 16.6,19 13.4,13.4"/><polygon points="9.5,7.6 6.6,7.6 8.2,10.3 5.8,14.6 8.7,14.6 11.2,10.3"/></g>','<g id="odnoklassniki"><path d="M12.001 12.212c1.819 0 3.299-1.542 3.299-3.442c0-1.897-1.479-3.442-3.299-3.442c-1.822 0-3.302 1.544-3.302 3.4 C8.699 10.7 10.2 12.2 12 12.212z M12.001 7.346c0.753 0 1.4 0.6 1.4 1.424c0 0.788-0.612 1.426-1.365 1.4 s-1.367-0.638-1.367-1.426C10.634 8 11.2 7.3 12 7.346z"/><path d="M15.557 12.802c-0.285-0.47-0.883-0.613-1.334-0.315c-1.353 0.888-3.094 0.886-4.444 0 c-0.454-0.298-1.049-0.155-1.333 0.315c-0.286 0.473-0.149 1.1 0.3 1.393c0.597 0.4 1.2 0.7 1.9 0.826l-1.847 1.9 c-0.376 0.393-0.376 1 0 1.426c0.19 0.2 0.4 0.3 0.7 0.295c0.25 0 0.498-0.101 0.685-0.295l1.815-1.894l1.812 1.9 c0.377 0.4 1 0.4 1.4 0c0.379-0.396 0.379-1.033 0-1.426l-1.849-1.929c0.675-0.156 1.319-0.437 1.918-0.826 C15.704 13.9 15.8 13.3 15.6 12.802z"/></g>','<g id="weibo"><path fill="none" d="M10.852 10.982c-0.188 0.001-0.379 0.012-0.571 0.03c-2.466 0.231-4.341 1.763-4.188 3.4 c0.153 1.7 2.3 2.8 4.7 2.582c2.469-0.23 4.344-1.766 4.188-3.42C14.884 12.1 13.1 11 10.9 10.982z M11.108 16.211c-1.224 0.528-2.753 0.096-3.123-0.938c-0.37-1.034 0.026-2.414 1.641-2.95c0.216-0.071 0.472-0.111 0.736-0.112 c0.795 0 1.7 0.3 2.1 1.232C12.883 14.4 12.3 15.7 11.1 16.211z"/><path fill="none" d="M10.749 13.609c-0.063 0-0.129 0.016-0.192 0.048c-0.169 0.091-0.25 0.274-0.181 0.4 c0.067 0.1 0.3 0.2 0.4 0.086c0.169-0.092 0.251-0.274 0.182-0.41C10.943 13.7 10.9 13.6 10.7 13.609z"/><path fill="none" d="M9.57 13.982c-0.158 0-0.328 0.043-0.494 0.14c-0.443 0.257-0.518 0.696-0.329 1.1 c0.133 0.3 0.7 0.4 1.1 0.14c0.443-0.258 0.483-0.799 0.309-1.08C10.059 14.1 9.8 14 9.6 13.982z"/><path d="M16.672 10.558c0.605 0.2 0.823-0.293 0.791-1.008c-0.023-0.497-0.229-0.817-0.35-1.026 c-0.319-0.541-0.963-0.885-1.555-0.893c-0.109-0.001-0.218 0.008-0.32 0.031c-0.283 0.061-0.624 0.182-0.494 0.7 c0.143 0.5 0.9 0.2 1.3 0.427s0.374 0.4 0.4 0.714C16.499 9.9 16.2 10.4 16.7 10.558z"/><path d="M19.473 9.129c-0.088-1.024-0.719-2.061-1.505-2.708c-0.653-0.54-1.608-0.859-2.464-0.864 c-0.122 0-0.242 0.006-0.359 0.019c-0.463 0.049-0.938 0.153-0.945 0.692c-0.012 0.5 0.4 0.6 0.6 0.6 c0.859-0.037 1.621-0.222 2.6 0.649c0.574 0.5 1 1.5 0.9 2.076c-0.168 1.098-0.326 1.5 0.2 1.7 C19.574 11.6 19.5 9.9 19.5 9.129z"/><path d="M10.362 12.211c-0.266 0.001-0.52 0.04-0.736 0.112c-1.615 0.536-2.011 1.916-1.641 3 c0.37 1 1.9 1.5 3.1 0.938c1.223-0.529 1.774-1.787 1.344-2.768C12.063 12.6 11.2 12.2 10.4 12.211z M9.858 15.354c-0.442 0.256-0.979 0.144-1.111-0.14c-0.189-0.396-0.112-0.835 0.329-1.092c0.165-0.097 0.336-0.14 0.493-0.14 c0.263 0 0.5 0.1 0.6 0.291C10.34 14.6 10.3 15.1 9.9 15.354z"/><path d="M15.493 11.402c-0.163-0.054 0.651-1.638-0.241-2.087c-1.504-0.756-3.555 0.668-3.464 0.3 c0.168-0.719 0.526-2.196-0.743-2.264c-0.087-0.009-0.176-0.013-0.265-0.012c-2.777 0.022-6.688 4.516-6.246 6.9 c0.479 2.6 3.6 3.8 6.7 3.658c2.804 0 6.714-2.161 6.292-4.678C17.516 12.4 16.6 11.8 15.5 11.402z M10.837 17.016c-2.466 0.23-4.589-0.927-4.743-2.582c-0.153-1.657 1.72-3.188 4.188-3.419c0.193-0.019 0.383-0.029 0.571-0.03 c2.212-0.018 4 1.1 4.2 2.615C15.18 15.3 13.3 16.8 10.8 17.016z"/></g>','<g id="research-gate"><path d="M11.338,16.022c-0.048-0.261-0.078-0.633-0.087-1.129c-0.007-0.49-0.033-0.906-0.07-1.242c-0.039-0.34-0.111-0.614-0.216-0.842c-0.104-0.221-0.252-0.387-0.44-0.501c-0.194-0.119-0.45-0.196-0.772-0.239v-0.027c0.531-0.114,0.922-0.365,1.174-0.758c0.252-0.394,0.377-0.901,0.377-1.522c0-0.808-0.215-1.404-0.651-1.8c-0.435-0.396-1.039-0.591-1.825-0.591H5.358v9.262h1.879v-3.916h0.994c0.384,0,0.66,0.101,0.821,0.312c0.165,0.209,0.253,0.494,0.271,0.856l0.053,1.774c0.007,0.188,0.024,0.357,0.051,0.523c0.024,0.17,0.089,0.318,0.185,0.449h2.057V16.56C11.495,16.463,11.386,16.28,11.338,16.022z M9.062,11.142c-0.244,0.214-0.592,0.317-1.041,0.317H7.237V8.787h0.887c0.869,0,1.302,0.428,1.302,1.285C9.426,10.574,9.306,10.932,9.062,11.142z"/><path d="M15.606,11.641v1.374h1.235v0.947c0,0.247-0.036,0.467-0.114,0.654c-0.08,0.188-0.177,0.338-0.295,0.458c-0.115,0.125-0.242,0.214-0.38,0.271c-0.131,0.066-0.256,0.096-0.368,0.096c-0.269,0-0.486-0.09-0.656-0.25c-0.174-0.17-0.299-0.414-0.396-0.73c-0.092-0.314-0.155-0.693-0.188-1.141c-0.033-0.446-0.051-0.95-0.051-1.509c0-1.162,0.1-1.991,0.305-2.491c0.193-0.502,0.521-0.753,0.973-0.753c0.193,0,0.357,0.05,0.49,0.147c0.133,0.102,0.246,0.225,0.332,0.376c0.088,0.152,0.148,0.319,0.189,0.506s0.057,0.361,0.057,0.525h1.801c0-0.943-0.225-1.666-0.678-2.172c-0.451-0.507-1.189-0.761-2.217-0.761c-0.601,0-1.103,0.101-1.5,0.302c-0.398,0.196-0.724,0.494-0.965,0.887c-0.242,0.394-0.416,0.885-0.513,1.473c-0.104,0.588-0.151,1.271-0.151,2.047c0,0.808,0.032,1.512,0.104,2.122c0.065,0.606,0.205,1.123,0.409,1.537c0.199,0.413,0.486,0.729,0.847,0.938c0.358,0.214,0.834,0.317,1.403,0.317c0.439,0,0.822-0.078,1.142-0.244c0.313-0.162,0.588-0.426,0.812-0.791h0.029v0.855h1.379v-4.991H15.606z"/></g>','<g id="yelp"><path d="M8.378,5.342c0.739-0.581,2.159-0.747,2.743-0.633c0.586,0.112,0.891,0.439,0.895,0.838l0.034,5.08c0.003,0.399-0.205,0.767-0.461,0.815c-0.258,0.049-0.637-0.188-0.845-0.528L8.079,6.558C7.873,6.218,7.455,6.068,8.378,5.342 M7.493,15.003l2.684-0.949c0.373-0.134,0.708-0.504,0.746-0.823c0.036-0.32-0.235-0.701-0.604-0.847l-2.834-1.125c-0.369-0.146-0.795,0.2-0.907,0.767c0,0-0.068,1.972,0,2.379C6.645,14.812,7.119,15.135,7.493,15.003 M12.174,15.477c0.008-0.4-0.206-0.745-0.475-0.77c-0.27-0.025-0.696,0.205-0.951,0.51l-1.872,2.244c-0.256,0.305-0.129,1.021,0.243,1.157l1.957,0.68c0.373,0.137,1.028-0.266,1.036-0.664L12.174,15.477z M16.826,14.955l-2.347-0.676c-0.381-0.108-0.813-0.099-0.96,0.025c-0.146,0.122-0.108,0.51,0.082,0.857l1.481,2.712c0.192,0.349,0.958,0.289,1.169-0.05c0,0,0.893-1.317,1.057-1.811C17.473,15.519,17.207,15.063,16.826,14.955 M17.398,11.142c-0.105-0.343-0.841-1.354-1.237-1.698c-0.397-0.346-0.852-0.303-1.107,0.001l-1.514,1.802c-0.256,0.304-0.324,0.784-0.152,1.067c0.17,0.282,0.627,0.442,1.013,0.356l2.617-0.485C17.489,12.071,17.506,11.484,17.398,11.142"/></g>','<g id="blogger"><path d="M6.031,14.114c0,2.131,1.739,3.854,3.882,3.854h4.179c2.145,0,3.877-1.724,3.877-3.854v-2.732c0-0.425-0.342-0.77-0.771-0.77h-0.654c-0.426,0-0.76-0.318-0.787-0.717c-0.004-2.14-1.742-3.865-3.886-3.865H9.913c-2.144,0-3.88,1.725-3.882,3.855V14.114z M13.086,10c0,0.62-0.345,1.125-0.77,1.125h-2.261c-0.423,0-0.768-0.505-0.768-1.125c0-0.623,0.345-1.125,0.768-1.125h2.261C12.741,8.875,13.086,9.376,13.086,10z M15.256,14.078c0,0.597-0.326,1.089-0.725,1.089h-4.523c-0.399,0-0.721-0.492-0.721-1.089S9.608,13,10.008,13h4.523C14.93,13,15.256,13.481,15.256,14.078z"/></g>','<g id="soundcloud"><path d="M7.521,16.146h1.119V9.094c-0.42,0.119-0.798,0.335-1.119,0.618V16.146z M5.282,11.375v4.762l0.072,0.009h1.047v-4.778H5.354L5.282,11.375z M3.042,13.755c0,0.867,0.451,1.621,1.12,2.04v-4.076C3.493,12.138,3.042,12.891,3.042,13.755z M9.761,16.146h1.12V9.405c-0.335-0.209-0.715-0.346-1.12-0.399V16.146z M18.646,11.367h-0.629c0.032-0.194,0.051-0.393,0.051-0.596c0-1.979-1.552-3.583-3.467-3.583c-1.039,0-1.966,0.478-2.602,1.227v7.731h6.646c1.276,0,2.312-1.07,2.312-2.391C20.958,12.437,19.922,11.367,18.646,11.367z"/></g>'],Z=a('<svg id="svg-source" height="0" version="1.1" xmlns="http://www.w3.org/2000/svg" style="position:absolute; margin-left: -100%" xmlns:xlink="http://www.w3.org/1999/xlink">'+Z+"</svg>");
a(document.body).prepend(a(Z)),a(".soc-ico a").not(".entry-share .soc-ico a").html('<svg class="icon" viewBox="0 0 24 24"><use xlink:href="#social-500px"></use></svg>'),a(".entry-share .soc-ico a").append('<svg class="icon" viewBox="0 0 24 24"><use xlink:href="#social-500px"></use></svg>');var $=a(".soc-ico a svg use");a(".px-500").find($).attr("xlink:href","#social-500px"),a(".tripedvisor").find($).attr("xlink:href","#tripedvisor"),a(".vk").find($).attr("xlink:href","#vk"),a(".foursquare").find($).attr("xlink:href","#foursquare"),a(".website").find($).attr("xlink:href","#website"),a(".mail").find($).attr("xlink:href","#mail"),a(".behance").find($).attr("xlink:href","#behance"),a(".stumbleupon").find($).attr("xlink:href","#stumbleupon"),a(".instagram").find($).attr("xlink:href","#instagram"),a(".github").find($).attr("xlink:href","#github"),a(".skype").find($).attr("xlink:href","#skype"),a(".devian").find($).attr("xlink:href","#devian"),a(".pinterest").find($).attr("xlink:href","#pinterest"),a(".tumbler").find($).attr("xlink:href","#tumbler"),a(".vimeo").find($).attr("xlink:href","#vimeo"),a(".linkedin").find($).attr("xlink:href","#linkedin"),a(".lastfm").find($).attr("xlink:href","#lastfm"),a(".forrst").find($).attr("xlink:href","#forrst"),a(".flickr").find($).attr("xlink:href","#flickr"),a(".delicious").find($).attr("xlink:href","#delicious"),a(".rss").find($).attr("xlink:href","#rss"),a(".you-tube").find($).attr("xlink:href","#you-tube"),a(".dribbble").find($).attr("xlink:href","#dribbble"),a(".google").find($).attr("xlink:href","#google"),a(".twitter").find($).attr("xlink:href","#twitter"),a(".facebook").find($).attr("xlink:href","#facebook"),a(".xing").find($).attr("xlink:href","#xing"),a(".odnoklassniki").find($).attr("xlink:href","#odnoklassniki"),a(".weibo").find($).attr("xlink:href","#weibo"),a(".research-gate").find($).attr("xlink:href","#research-gate"),a(".yelp").find($).attr("xlink:href","#yelp"),a(".blogger").find($).attr("xlink:href","#blogger"),a(".soundcloud").find($).attr("xlink:href","#soundcloud"),a(".soc-ico a").css("visibility","visible");var _=a(".mixed-header"),aa=a(".masthead:not(.side-header) .header-bar .mini-widgets > * ").clone(!0),ba=a(".side-header .header-bar .mini-widgets ").clone(!0),ca=(a(".masthead .near-logo-first-switch").clone(!0).addClass("show-on-first-switch"),a(".masthead .near-logo-second-switch").clone(!0).addClass("show-on-second-switch")),da=E.find(".in-menu-first-switch, .in-menu-second-switch").clone(!0);E.find(".near-logo-first-switch, .near-logo-second-switch ").clone(!0).addClass("show-on-second-switch");if(_.length>0)var ea=_.find(".branding > a, .branding > img").clone(!0),U=_;else var ea=a(".masthead:not(.mixed-header)").find(".branding > a, .branding > img").clone(!0),U=E;if(D.length>0&&"none"!=D.css("display"))var fa=D.innerHeight();else var fa=0;a("<div class='mobile-header-bar'><div class='mobile-navigation'></div><div class='mobile-mini-widgets'></div><div class='mobile-branding'></div></div>").appendTo(".masthead"),a(".mobile-header-bar .mobile-navigation").append("<a href='#' class='dt-mobile-menu-icon'><span class='lines'></span></a>"),a(".mobile-header-bar .mobile-mini-widgets").append(aa),a(".mobile-header-bar .mobile-branding").append(ea);var ga=a(".dt-mobile-header");if(ga.siblings().hasClass("dt-parent-menu-clickable")&&ga.addClass("dt-parent-menu-clickable"),a(da).appendTo(".mobile-mini-widgets-in-menu"),a(ca).appendTo(".mobile-mini-widgets"),ga.append(ba),a(".mobile-main-nav ").find("li").each(function(){var b=a(this),c=b.find(" > .dt-mega-menu-wrap > .sub-nav");if(b.hasClass("new-column")){var d=b.prev().find(" > .sub-nav");a(" > .sub-nav > *",b).appendTo(d)}c.unwrap()}).removeClass("dt-mega-menu dt-mega-parent hide-mega-title").find(" > .sub-nav").removeClass("hover-style-click-bg hover-style-bg"),ga.length>0){dtGlobals.mobileMenuPoint=50;var ha=a(".dt-mobile-header"),ia=a(".dt-mobile-menu-icon");if(!a(".floating-btn").length>0&&a(".floating-mobile-menu-icon").length>0){var ja=ia.first().clone(!0);ja.insertBefore(ia).addClass("floating-btn")}var ka=a(".floating-btn");q.scroll(function(){dtGlobals.mobileMenuPoint=U.offset().top+U.height()+50,dtGlobals.winScrollTop>dtGlobals.mobileMenuPoint?ka.parents(".masthead").addClass("show-floating-icon"):ka.parents(".masthead").removeClass("show-floating-icon"),dtGlobals.winScrollTop>a(".masthead:not(.side-header)").height()?ha.addClass("stick-to-top"):ha.removeClass("stick-to-top")});var ia=a(".dt-mobile-menu-icon");!a(".mobile-sticky-header-overlay").length>0&&s.append('<div class="mobile-sticky-header-overlay"></div>');var la=a(".mobile-sticky-header-overlay");ia.on("click",function(b){b.preventDefault();var c=a(this);c.hasClass("active")?(c.removeClass("active"),t.removeClass("show-mobile-header").addClass("closed-mobile-header"),s.removeClass("show-mobile-overlay-header").addClass("closed-overlay-mobile-header"),c.parents("body").removeClass("show-sticky-mobile-header"),la.removeClass("active")):(ia.removeClass("active"),c.addClass("active"),t.addClass("show-mobile-header").removeClass("closed-mobile-header"),s.removeClass("closed-overlay-mobile-header").addClass("show-overlay-mobile-header"),la.removeClass("active"),c.parents("body").addClass("show-sticky-mobile-header"),la.addClass("active"))}),la.on("click",function(){a(this).hasClass("active")&&(ia.removeClass("active"),t.removeClass("show-mobile-header").addClass("closed-mobile-header"),s.removeClass("show-sticky-mobile-header").addClass("closed-overlay-mobile-header").addClass("closed-overlay-mobile-header"),la.removeClass("active"))}),a(".dt-close-mobile-menu-icon span").on("click",function(){t.removeClass("show-mobile-header"),t.addClass("closed-mobile-header"),s.removeClass("show-sticky-mobile-header"),s.removeClass("show-overlay-mobile-header").addClass("closed-overlay-mobile-header"),la.removeClass("active"),ia.removeClass("active")}),a(".dt-mobile-header").wrapInner("<div class='mobile-header-scrollbar-wrap'></div>"),dtGlobals.isMobile||a(".mobile-header-scrollbar-wrap").mCustomScrollbar({scrollInertia:150})}a.mobileHeader=function(){if(D.length>0&&"none"!=D.css("display")){D.innerHeight()}else;if(a(".sticky-mobile-header ").length>0){if(a(".mixed-header").length>0)var b=a(".mixed-header").height();else var b=E.height();var c=a(".masthead").first();!a(".mobile-header-space").length>0&&!a(".floating-navigation-below-slider").length>0&&a("<div class='mobile-header-space'></div>").insertBefore(c),a(".mobile-header-space").css({height:b})}},a.mobileHeader(),dtGlobals.isMobile&&!dtGlobals.isiPad&&(dtLocal.themeSettings.floatingHeader.showMenu=!1);var X=s.hasClass("transparent"),ma=a(".phantom-sticky").exists(),na=a(".side-header").exists(),oa=a(".side-header-h-stroke").exists(),pa=a(".floating-navigation-below-slider").exists();if(dtLocal.themeSettings.floatingHeader.showMenu&&(ma&&!na||ma&&oa)){var D=a(".top-bar"),fa=0,qa=a(".masthead").height(),ra=a(".masthead:not(.side-header) .branding a").attr("href"),G=a(".masthead:not(.side-header)"),sa=G.find(".header-bar"),ta=G.find(".branding"),ua=a(".side-header-h-stroke"),va=ua.exists(),wa=a(".header-space"),xa=a("#main-slideshow, .photo-scroller"),ya=a(".classic-header").length>0;pa||ya||a("<div class='animate-sticky'></div>").prependTo(sa);var za=a(".animate-sticky");va&&(qa=ua.height(),G=ua),wa.exists()||(a("<div class='header-space'></div>").insertBefore(G),wa=a(".header-space")),va&&wa.addClass("top-line-space"),wa.css({height:qa}),za.css({height:sa.height()}),s.addClass("sticky-off fixed-masthead"),!a(".sticky-logo").length>0&&dtLocal.themeSettings.floatingHeader.logo.html&&dtLocal.themeSettings.floatingHeader.logo.showLogo&&(void 0==ra?a(dtLocal.themeSettings.floatingHeader.logo.html).addClass("sticky-logo").prependTo(ta):a('<a class="sticky-logo" href="'+ra+'">'+dtLocal.themeSettings.floatingHeader.logo.html+" </a>").prependTo(ta));var ta=a(".phantom-custom-logo-on .sticky-logo"),Aa=(a(".phantom-custom-logo-on").find(".branding > a:not(.sticky-logo), .branding > img:not(.sticky-logo)",G),!1),Ba=a(".admin-bar").exists();if(Ba)var Ca=32;else var Ca=0;!D.exists()||D.is(":hidden")||pa||(fa=D.innerHeight());var Da=G.height();q.on("scroll",function(){var a,b,c=dtGlobals.winScrollTop;pa&&!X?(a=xa.height(),b=c>a):pa&&X?(a=xa.height()-Ca-Da,b=c>a):b=c>dtLocal.themeSettings.floatingHeader.showAfter,!b||Aa||dtGlobals.mobileProcessed?b||!Aa||dtGlobals.mobileProcessed?dtGlobals.mobileProcessed&&(G.css({bottom:"auto",top:"auto",transform:"","-webkit-transform":""}),wa.css({display:"none"}),s.removeClass("sticky-on").addClass("sticky-off")):(Aa=!1,pa?X?r.hasClass("menu-open")||(G.css({bottom:"auto",top:"auto",transform:"translateY(-100%)","-webkit-transform":"translateY(-100%)"}),wa.css({display:"none"})):(G.stop(!0,!0).velocity({translateY:-fa},0),r.hasClass("menu-open")||za.stop().velocity({height:qa},0),wa.css({height:qa})):(G.velocity({translateY:0},0),r.hasClass("menu-open")||za.stop().velocity({height:qa},0),X?wa.css({display:"none"}):wa.css({height:qa})),r.hasClass("menu-open")||(s.removeClass("sticky-on").addClass("sticky-off"),za.stop().velocity({height:sa.height()},0))):(Aa=!0,pa?X?(G.velocity({translateY:""},0,function(){G.css({top:Ca,transform:"","-webkit-transform":""})}),za.stop().velocity({height:dtLocal.themeSettings.floatingHeader.height},300),wa.css({display:"none"})):(G.stop(!0,!0).velocity({translateY:-fa},300),za.stop().velocity({height:dtLocal.themeSettings.floatingHeader.height},300),wa.css({height:qa})):(G.stop(!0,!0).velocity({translateY:-fa},300),za.stop().velocity({height:dtLocal.themeSettings.floatingHeader.height},300),X?wa.css({display:"none"}):wa.css({height:qa})),s.removeClass("sticky-off").addClass("sticky-on"))})}if(dtLocal.themeSettings.floatingHeader.showMenu&&(dtLocal.themeSettings.floatingHeader.showMenu&&(!na||ma)||dtLocal.themeSettings.floatingHeader.showMenu&&oa&&!ma)){var Ea=a(".phantom-fade").exists(),Fa=a(".phantom-slide").exists(),Ga=a(".split-header").exists(),xa=a("#main-slideshow, .photo-scroller"),Ha=a(".masthead:not(.side-header)");if(Ea||Fa){var Ia=a(".masthead:not(#phantom) .main-nav").clone(!0),ra=a(".masthead:not(.side-header) .branding a").attr("href"),Ja=!1;if(oa||Ga){var Ka=a(".side-header-h-stroke, .split-header"),La=Ka.attr("class"),Ma=(Ia.parent(),a('<div id="phantom" class="'+La+'"><div class="ph-wrap"></div></div>').appendTo("body")),Na=Ma.find(".ph-wrap"),Oa=Ma.find(".widget-box"),Pa=Ia.find(".mini-widgets"),Qa=Ka.find(".branding");a(".phantom-custom-logo-on").length>0&&dtLocal.themeSettings.floatingHeader.logo.html&&dtLocal.themeSettings.floatingHeader.logo.showLogo&&(void 0==ra?a(dtLocal.themeSettings.floatingHeader.logo.html).prependTo(Qa):a('<a class="phantom-top-line-logo" href="'+ra+'">'+dtLocal.themeSettings.floatingHeader.logo.html+" </a>").prependTo(Qa));var Ia=a(".side-header-h-stroke .header-bar, .split-header .header-bar").clone(!0);Ia.appendTo(Na)}else{var La=a(".masthead").attr("class"),Ma=(Ia.parent(),a('<div id="phantom" class="'+La+'"><div class="ph-wrap"><div class="logo-box"></div><div class="menu-box"></div><div class="widget-box"></div></div></div>').appendTo("body")),Na=Ma.find(".menu-box"),Oa=Ma.find(".widget-box");if(a(".classic-header").length>0)var Pa=a(".header-bar .navigation .mini-widgets").clone(!0);else if(Ga);else var Pa=a(".header-bar .mini-widgets").clone(!0);Ia.appendTo(Na),Pa.appendTo(Oa),dtLocal.themeSettings.floatingHeader.logo.html&&dtLocal.themeSettings.floatingHeader.logo.showLogo&&(Ma.find(".ph-wrap").addClass("with-logo"),void 0==ra?Ma.find(".logo-box").html(dtLocal.themeSettings.floatingHeader.logo.html):Ma.find(".logo-box").html('<a href="'+ra+'">'+dtLocal.themeSettings.floatingHeader.logo.html+" </a>"))}t.hasClass("boxed")&&Ma.addClass("boxed").velocity({translateX:"-50%"},0).find(".ph-wrap").addClass("boxed"),s.removeClass("phantom-on").addClass("phantom-off");var Aa=!1;Fa&&Ma.velocity({translateY:-Ma.height()},0),q.on("scroll",function(){var a=dtGlobals.winScrollTop,b=xa.height(),c=Ha.height();if(pa&&X)var d=a>b&&Ja===!1,e=a<=b&&Ja===!0;else if(pa)var d=a>b+c&&Ja===!1,e=a<=b+c&&Ja===!0;else var d=a>dtLocal.themeSettings.floatingHeader.showAfter&&Ja===!1,e=a<=dtLocal.themeSettings.floatingHeader.showAfter&&Ja===!0;d?r.hasClass("menu-open")||dtGlobals.isHovering||Aa||(Aa=!0,Ea?Ma.stop().css({visibility:"visible"}).velocity({opacity:1},350):Fa&&Ma.stop(!0,!0).css({visibility:"visible"}).velocity({translateY:0,opacity:1},{duration:400}),s.removeClass("phantom-off").addClass("phantom-on"),Ja=!0):e&&Aa&&(r.hasClass("menu-open")||(Aa=!1,s.removeClass("phantom-on").addClass("phantom-off"),Ea?Ma.stop().velocity({opacity:0},120,function(){Ma.css({visibility:""})}):Fa&&Ma.velocity({opacity:0},0,function(){Ma.css({visibility:""}).velocity({translateY:-Ma.height()},0)}),Ja=!1))})}}var Ra;if(a(".dt-parent-menu-clickable").length>0){var Sa=a(".main-nav li.has-children > a, .mobile-main-nav li.has-children > a");a("<i class='next-level-button'></i>").insertAfter(Sa),a(".sub-downwards .main-nav li.has-children, .mobile-main-nav li.has-children").each(function(){var b=a(this),c=b.find(" > .sub-nav, .sub-menu");b.find(".sub-nav li, .sub-menu li").hasClass("act")&&b.addClass("active"),b.find(".sub-nav li.act, .sub-menu li.act").hasClass("act")&&(b.addClass("open-sub"),c.stop(!0,!0).slideDown(100)),b.find(" > .next-level-button").on("click",function(b){var d=a(this).parent();d.hasClass("active")?(c.stop(!0,!0).slideUp(500),d.removeClass("active"),d.removeClass("open-sub")):(d.siblings().find(" .sub-nav, .dt-mega-menu-wrap, .sub-menu").stop(!0,!0).slideUp(400),c.stop(!0,!0).slideDown(500),d.siblings().removeClass("active"),d.addClass("active"),d.siblings().removeClass("open-sub"),d.addClass("open-sub"))})})}else a(".sub-downwards .main-nav li > a, .mobile-main-nav li.has-children > a").each(function(){var b=a(this);b.parent("li").find(".sub-nav li, .sub-menu li").hasClass("act")&&b.addClass("act"),b.parent("li").find(".sub-nav li.act, .sub-menu li.act").hasClass("act")&&(b.parent("li").addClass("open-sub"),b.siblings(".sub-nav, .sub-menu").stop(!0,!0).slideDown(100)),b.on("click",function(c){$menuItem=b.parent(),$menuItem.hasClass("has-children menu-item-language")&&c.preventDefault(),b.hasClass("act")?(b.siblings(".sub-nav, .sub-menu").stop(!0,!0).slideUp(500),b.removeClass("act"),b.parent("li").removeClass("open-sub")):(b.parent().siblings().find(".sub-nav, .dt-mega-menu-wrap, .sub-menu").stop(!0,!0).slideUp(400),b.siblings(".sub-nav, .sub-menu").stop(!0,!0).slideDown(500),b.parent().siblings().find("> a").removeClass("act"),b.addClass("act"),b.parent("li").siblings().removeClass("open-sub"),b.parent("li").addClass("open-sub")),a(".header-bar").mCustomScrollbar("update")})});a(".custom-nav > li > a").click(function(b){$menuItem=a(this).parent(),$menuItem.hasClass("has-children")&&b.preventDefault(),"active"!=a(this).attr("class")?(a(".custom-nav > li > ul").stop(!0,!0).slideUp(400),a(this).next().stop(!0,!0).slideDown(500),a(".custom-nav > li > a").removeClass("active"),a(this).addClass("active")):(a(this).next().stop(!0,!0).slideUp(500),a(this).removeClass("active")),$menuItem.siblings().removeClass("act"),$menuItem.addClass("act")}),a(".custom-nav > li > ul").each(function(){clearTimeout(Ra),$this=a(this),$thisChildren=$this.find("li"),$thisChildren.hasClass("act")&&($this.prev().addClass("active"),$this.parent().siblings().removeClass("act"),$this.parent().addClass("act"),a(this).slideDown(500))}),a(".filter-categories").each(function(){var b=a(this);b.find("> a").on("click",function(b){var c=a(this);if("undefined"==typeof arguments.callee.dtPreventD){var d=c.parents(".filter").first();d.hasClass("without-isotope")?arguments.callee.dtPreventD=!!d.hasClass("with-ajax"):arguments.callee.dtPreventD=!0}b.preventDefault(),c.trigger("mouseleave"),c.hasClass("act")&&!c.hasClass("show-all")?(b.stopImmediatePropagation(),c.removeClass("act"),c.siblings("a.show-all").trigger("click")):(c.siblings().removeClass("act"),c.addClass("act"),arguments.callee.dtPreventD||(window.location.href=c.attr("href")))})}),a(".filter-extras .filter-switch").each(function(){var b=a(this);b.prev(".act").length>0?b.addClass("left-act"):b.next(".act").length>0?b.addClass("right-act"):(b.removeClass("right-act"),b.removeClass("left-act"))}),a(".filter-extras").each(function(){a(this).find("a").on("click",function(b){var c=a(this);if("undefined"==typeof arguments.callee.dtPreventD){var d=c.parents(".filter").first();d.hasClass("without-isotope")?arguments.callee.dtPreventD=!!d.hasClass("with-ajax"):arguments.callee.dtPreventD=!0}arguments.callee.dtPreventD&&b.preventDefault(),c.siblings().removeClass("act"),c.addClass("act"),a(".filter-extras .filter-switch").each(function(){var b=a(this);b.prev(c).hasClass("act")?(b.addClass("left-act"),b.removeClass("right-act")):b.next(c).hasClass("act")?(b.addClass("right-act"),b.removeClass("left-act")):(b.removeClass("right-act"),b.removeClass("left-act"))})})}),a(".filter-extras .filter-switch").each(function(){var b=a(this),c=b.parents(".filter").first();b.on("click",function(){c.hasClass("without-isotope")?b.hasClass("right-act")?b.prev("a")[0].click():b.hasClass("left-act")&&b.next("a")[0].click():b.hasClass("right-act")?b.prev("a").trigger("click"):b.hasClass("left-act")&&b.next("a").trigger("click")})}),a(".mode-list .filter-categories > a:not(.show-all)").each(function(){$this=a(this),$dataFiltr=$this.attr("data-filter"),$newDataFilter=$dataFiltr.substring(1,$dataFiltr.length),$this.attr("data-filter",$newDataFilter)}),a.fn.shortcodesFilter=function(){function b(){if(c.hasClass("lazy-loading-mode")){var a=c.find(".button-load-more").offset();a&&q.scrollTop()>(a.top-q.height())/2&&c.find(".button-load-more").trigger("click")}}var c=a(this),d=c.find(".filter-categories"),e=c.find(".paginator"),f=c.find(".filter-by"),g=c.find(".filter-sorting"),h=c.find(".filter-by .act").attr("data-by"),i=c.find(".filter-sorting .act").attr("data-sort"),j=c.attr("data-pagination-mode"),k=c.attr("data-post-limit");c.Filterade({pageLimit:k,paginationMode:j,useFilters:!0,useSorting:!0,filterControls:d,sortControls:f,orderControls:g,pageControls:e,controlsSelecter:"a",controlsSelecterChecked:"a.act",defaultFilter:"*",selectAll:"*",defaultSort:h,defaultOrder:i}),q.on("scroll",function(){b()}),b()},a(".blog-shortcode.mode-list.jquery-filter").each(function(){var b=a(this);b.shortcodesFilter()});var Ta=a("html");if(a(".phantom-sticky").length>0)var Ma=a(".masthead:not(.side-header):not(.side-header-v-stroke)");else{var Ma=a("#phantom");"block"==Ma.css("display")}var ma=a(".phantom-sticky").exists(),na=a(".side-header").exists(),oa=a(".side-header-h-stroke").exists(),Ua=0;if("none"!==a(".mobile-header-bar").css("display")){var Va=a(".mobile-header-bar");if(a(".phantom-sticky").length>0)if(a(".sticky-header .masthead.side-header").length>0||a(".overlay-navigation .masthead.side-header").length>0)var Ma=a(".mobile-header-bar").parent(".masthead:not(.side-header)");else var Ma=a(".mobile-header-bar").parent()}else var Va=a(".masthead:not(.side-header):not(.side-header-v-stroke) .header-bar");d(),jQuery(window).load(function(){var b=window.location.hash;if(b.match("^#!"))var c=b.substring(3);"undefined"!=typeof c&&c.length>0?("up"==c?(a.closeMobileHeader(),Ta.stop().velocity("scroll",{offset:0,duration:600,mobileHA:!1,complete:function(b){a.closeSideHeader()}})):setTimeout(function(){Ta.stop().velocity("scroll",{offset:a("#"+c).offset().top-Ua,duration:600,mobileHA:!1,complete:function(b){window.innerWidth<dtLocal.themeSettings.mobileHeader.firstSwitchPoint?a(".sticky-mobile-header").length>0&&Ta.stop().velocity("scroll",{offset:a("#"+c).offset().top-a(Va,Ma).height(),duration:650,mobileHA:!1}):(ma&&!na||ma&&oa)&&Ta.stop().velocity("scroll",{offset:a("#"+c).offset().top-a(Va,Ma).height(),duration:650,mobileHA:!1})}})},300),a(".menu-item a").parent("li").removeClass("act"),a('.menu-item a[href="'+b+'"]').parent("li").addClass("act")):"undefined"==c&&a('.menu-item > a[href="#!/up"]').length>0&&a('.menu-item > a[href="#!/up"]').parent("li").addClass("act")}),jQuery(window).on("resize",function(){d()});var Wa=(a(".stripe"),a('.menu-item > a[href^="#!"]'));window.clickAnchorLink=function(b,c){var e=b.attr("href"),f=e.substring(3),g=600,h=g;if(d(),"undefined"!=typeof f&&f&&f.length>0){if(location.hash=e,a("#"+f).length>0){var i=a("#"+f).offset().top+1,j=b.offset(),k=a("#"+f).offset(),l=Math.abs(k.top-j.top),h=150*Math.log(1.022^l);$newScrollPosition=i-Ua}return"up"==f?s.hasClass("overlay-navigation")?(a.closeMobileHeader(),a.closeSideHeader(),Ta.stop().velocity("scroll",{offset:i-Ua,duration:h,mobileHA:!1})):(a.closeMobileHeader(),Ta.stop().velocity("scroll",{offset:0,duration:h,mobileHA:!1,complete:function(b){a.closeSideHeader()}})):s.hasClass("overlay-navigation")?(a.closeMobileHeader(),a.closeSideHeader(),Ta.stop().velocity("scroll",{offset:i-Ua,duration:h,mobileHA:!1,complete:function(b){window.innerWidth<dtLocal.themeSettings.mobileHeader.firstSwitchPoint?a(".sticky-mobile-header").length>0&&($newScrollPosition=i-a(Va,Ma).height(),Ta.stop().velocity("scroll",{offset:$newScrollPosition,duration:650,mobileHA:!1})):(ma&&!na||ma&&oa)&&($newScrollPosition=i-a(Va,Ma).height(),Ta.stop().velocity("scroll",{offset:$newScrollPosition,duration:650,mobileHA:!1}))}})):(a.closeMobileHeader(),Ta.stop().velocity("scroll",{offset:i-Ua,duration:h,mobileHA:!1,complete:function(b){a.closeSideHeader(),window.innerWidth<dtLocal.themeSettings.mobileHeader.firstSwitchPoint?a(".sticky-mobile-header").length>0&&($newScrollPosition=i-a(Va,Ma).height(),Ta.stop().velocity("scroll",{offset:$newScrollPosition,duration:650,mobileHA:!1})):(ma&&!na||ma&&oa)&&($newScrollPosition=i-a(Va,Ma).height(),Ta.stop().velocity("scroll",{offset:$newScrollPosition,duration:650,mobileHA:!1}))}})),a(".menu-item a").parent("li").removeClass("act"),b.parent("li").addClass("act"),c.preventDefault(),!1}},s.on("click",'.anchor-link[href^="#!"], .anchor-link a[href^="#!"], .logo-box a[href^="#!"], .branding a[href^="#!"], #branding-bottom a[href^="#!"]',function(b){clickAnchorLink(a(this),b)}),Wa.on("click",function(b){clickAnchorLink(a(this),b)}),(a('.one-page-row div[data-anchor^="#"]').length>0||a(".vc_row[id]").length>0)&&a(".one-page-row").length>0&&q.scroll(function(b){var c=null;if(!s.hasClass("is-scroll")){var c;a('.one-page-row .vc_row[id], .one-page-row div[data-anchor^="#"]').each(function(){var b=a(this),d=b.attr("id");dtGlobals.winScrollTop>=a(".one-page-row div[id='"+d+"']").offset().top-Ma.height()-1&&(c="#!/"+d)}),a('.menu-item a[href^="#!"]').parent("li").removeClass("act"),a('.menu-item a[href="'+c+'"]').parent("li").addClass("act"),a(".one-page-row div[data-anchor^='#']").length>0?dtGlobals.winScrollTop<a(".one-page-row div[data-anchor^='#']").first().offset().top-Ma.height()&&a('.menu-item > a[href="#!/up"]').length>0&&a('.menu-item > a[href="#!/up"]').parent("li").addClass("act"):a(".vc_row[id]").length>0&&dtGlobals.winScrollTop<a(".one-page-row .vc_row[id]").first().offset().top-Ma.height()&&a('.menu-item > a[href="#!/up"]').length>0&&a('.menu-item > a[href="#!/up"]').parent("li").addClass("act"),a('.menu-item a[href="#"]').length&&null==c&&a('.menu-item a[href="#"]').parent("li").addClass("act")}}),a.fn.addRollover=function(){return this.each(function(){var b=a(this);b.hasClass("this-ready")||(b.append("<i></i>"),b.find(".rollover-thumbnails").length&&b.addClass("rollover-thumbnails-on"),b.parent().find(".links-container").length&&b.addClass("rollover-buttons-on"),b.addClass("this-ready"))})},a(".rollover, .rollover-video, .post-rollover, .rollover-project .show-content, .vc-item .vc-inner > a").addRollover(),a(".filter-grayscale .slider-masonry").on("mouseenter tap",function(b){"tap"==b.type&&b.stopPropagation(),a(this).addClass("dt-hovered")}),a(".filter-grayscale .slider-masonry").on("mouseleave",function(b){a(this).removeClass("dt-hovered")}),a.fn.scaleInHover=function(){return this.each(function(){var b=a(this);if(!b.hasClass("scale-ready")){var c=b.find("img.preload-me"),d=parseInt(c.attr("width")),e=parseInt(c.attr("height")),f=d/e;f<2&&f>=1.5?b.addClass("ratio_3-2"):f<1.5&&f>=1?b.addClass("ratio_4-3"):f<1&&f>=.75?b.addClass("ratio_3-4"):f<.75&&f>=.6?b.addClass("ratio_2-3"):b.removeClass("ratio_2-3").removeClass("ratio_3-2").removeClass("ratio-2").removeClass("ratio_4-3").removeClass("ratio_3-4"),f>=2&&b.addClass("ratio-2"),1==f&&b.removeClass("ratio_2-3").removeClass("ratio-2").removeClass("ratio_3-2").removeClass("ratio_4-3").removeClass("ratio_3-4"),b.addClass("scale-ready")}})},a(".hover-scale .rollover-project").scaleInHover(),a.fn.touchNewHover=function(){return this.each(function(){var b=a(this);b.hasClass("this-ready")||((a(".rollover-content",this).length>0||a(".woocom-rollover-content",this).length>0)&&(s.on("touchend",function(b){a(".mobile-true .rollover-content, .mobile-true .rollover-project, .mobile-true .woocom-rollover-content, .mobile-true .woocom-project").removeClass("is-clicked")}),b.on("touchstart",function(a){origY=a.originalEvent.touches[0].pageY,origX=a.originalEvent.touches[0].pageX}),b.on("touchend",function(c){var d=c.originalEvent.changedTouches[0].pageX,e=c.originalEvent.changedTouches[0].pageY;if(origY==e||origX==d){if(!b.hasClass("is-clicked"))return a(".links-container > a",b).on("touchend",function(a){a.stopPropagation(),b.addClass("is-clicked")}),c.preventDefault(),a(".mobile-true .rollover-content, .mobile-true .rollover-project, .mobile-true .woocom-rollover-content, .mobile-true .woocom-project").removeClass("is-clicked"),b.addClass("is-clicked"),b.find(".rollover-content").addClass("is-clicked"),b.find(".woocom-rollover-content").addClass("is-clicked"),!1;if(b.find(".dt-gallery-container").length>0&&b.find(".rollover-content").on("click.dtAlbums",function(c){b.find(".rollover-content").off("click.dtAlbums"),a(this).find("a.dt-gallery-mfp-popup, .dt-trigger-first-mfp, .dt-mfp-item").first().trigger("click")}),a(this).find(".rollover-click-target.go-to").length>0)window.location.href=a(this).find(".rollover-click-target.go-to").attr("href");else if(a(this).hasClass("woocom-project")){if(a(c.target).is(".add_to_cart_button"))return!0;window.location.href=a(this).find(" > a").attr("href")}}})),b.addClass("this-ready"))})},a(".mobile-true .rollover-project, .mobile-true .woocom-project").touchNewHover(),a(".hover-style-one article:not(.description-off) .rollover-project > a, .hover-style-two article:not(.description-off) .rollover-project > a, .mobile-true .cart-btn-on-img .buttons-on-img > a, .hover-style-three article:not(.description-off) .rollover-project > a").on("click",function(a){a.preventDefault()}),a(".mobile-false .albums .rollover-content a:not(.portfolio-categories a), .mobile-false .media .rollover-content, .mobile-false .dt-gallery-container .rollover-content").on("click",function(b){return!!a(b.target).is("a")||void a(this).siblings("a.dt-single-mfp-popup, a.dt-gallery-mfp-popup, a.dt-mfp-item").first().click()}),a.fn.touchWooHoverImage=function(){return this.each(function(){var b=a(this);if(!b.hasClass("woo-ready")){s.on("touchend",function(b){a(".mobile-true .cart-btn-on-img .buttons-on-img").removeClass("is-clicked")});var c=a(this);c.on("touchstart",function(a){origY=a.originalEvent.touches[0].pageY,origX=a.originalEvent.touches[0].pageX}),c.on("touchend",function(b){var d=b.originalEvent.changedTouches[0].pageX,e=b.originalEvent.changedTouches[0].pageY;if(origY==e||origX==d){if(!c.hasClass("is-clicked"))return b.preventDefault(),a(".mobile-true .cart-btn-on-img .buttons-on-img").removeClass("is-clicked"),c.addClass("is-clicked"),!1;a(b.target).parent().hasClass("woo-buttons")?a(b.target).trigger("click"):window.location.href=c.find("a").first().attr("href")}}),b.addClass("woo-ready")}})},a(".mobile-true .cart-btn-on-img .buttons-on-img").touchWooHoverImage(),a.fn.triggerPostClick=function(){return this.each(function(){var b=a(this);if(!b.hasClass("post-ready")){var c=b.find(".post-thumbnail-rollover").first(),d=b.find(".entry-meta a, .fancy-date a, .fancy-categories a");if(c.length>0){c.on("click",function(a){a.preventDefault(),a.stopPropagation(),c.parents(".ts-wrap").hasClass("ts-interceptClicks")});var e=!1;b.on("click",function(){if(!b.parents(".ts-wrap").hasClass("ts-interceptClicks"))return e||(e=!0,window.location.href=c.attr("href"),e=!1),!1}),b.find(d).click(function(a){a.stopPropagation(),window.location.href=d.attr("href")})}b.addClass("post-ready")}})},a(".mobile-false .content-rollover-layout-list .post, .mobile-false .gradient-overlay-layout-list .post").triggerPostClick(),a.fn.touchTriggerPostClick=function(){return this.each(function(){var b=a(this);if(!b.hasClass("touch-post-ready")){var c=b.find(".post-thumbnail-rollover").first();b.find(".entry-meta a, .fancy-date a, .fancy-categories a"),b.find(".entry-excerpt").height()+b.find(".post-details").height();s.on("touchend",function(b){a(".mobile-true .post").removeClass("is-clicked")}),b.on("touchstart",function(a){origY=a.originalEvent.touches[0].pageY,origX=a.originalEvent.touches[0].pageX}),b.on("touchend",function(d){var e=d.originalEvent.changedTouches[0].pageX,f=d.originalEvent.changedTouches[0].pageY;if(origY==f||origX==e)if(b.parents().hasClass("disable-layout-hover"))"a"===d.target.tagName.toLowerCase()?a(d.target).trigger("click"):window.location.href=c.attr("href");else{if(!b.hasClass("is-clicked"))return d.preventDefault(),"a"===d.target.tagName.toLowerCase()&&a(d.target).trigger("click"),a(".mobile-ture .post").removeClass("is-clicked"),b.addClass("is-clicked"),b.parent().siblings().find(".post").removeClass("is-clicked"),!1;window.location.href=c.attr("href")}}),b.addClass("touch-post-ready")}})},a(".mobile-true .content-rollover-layout-list .post, .mobile-true .gradient-overlay-layout-list .post").touchTriggerPostClick(),a.fn.triggerPostClickOnBefore=function(){return this.each(function(){var b=a(this),c=b.parents(".post");if(!b.hasClass("post-before-ready")){var d=c.find(".post-thumbnail-rollover").first(),e=c.find(".entry-meta a, .fancy-date a, .fancy-categories a");if(d.length>0){d.on("click",function(a){a.preventDefault(),a.stopPropagation(),d.parents(".ts-wrap").hasClass("ts-interceptClicks")});var f=!1;b.on("mouseenter mousemove",function(a){var d=b.offset().top,e=a.pageY;d-10<=e&&d+125>=e?c.hasClass("on-hover")||c.addClass("on-hover"):c.removeClass("on-hover")}),b.on("mouseleave",function(a){b.offset().top,a.pageY;c.removeClass("on-hover")}),b.on("click",function(){if(c.hasClass("on-hover"))return f||(f=!0,window.location.href=d.attr("href"),f=!1),!1}),b.find(e).click(function(a){c.hasClass("on-hover")&&(a.stopPropagation(),window.location.href=e.attr("href"))})}b.addClass("post-before-ready")}})},a(".mobile-false .gradient-overlap-layout-list .post-entry-content").triggerPostClickOnBefore();var Xa=a("#commentform");Xa.on("click","a.clear-form",function(b){return b.preventDefault(),Xa.find('input[type="text"], textarea').val(""),a(".contact-form-material").length>0&&Xa.find('input[type="text"], textarea').parent().removeClass("is-focused"),!1}),Xa.on("click"," a.dt-btn.dt-btn-m",function(a){return a.preventDefault(),Xa.find("#submit").trigger("click"),!1}),a.browser.msie&&(a('input[type="text"][placeholder], textarea[placeholder]').each(function(){var b=a(this);""!=b.attr("placeholder")&&(b.addClass("IePlaceHolder"),""==a.trim(b.val())&&"password"!=b.attr("type")&&b.val(b.attr("placeholder")))}),a(".IePlaceHolder").focus(function(){var b=a(this);b.val()==b.attr("placeholder")&&b.val("")}),a(".IePlaceHolder").blur(function(){var b=a(this);""==a.trim(b.val())&&b.val(b.attr("placeholder"))})),a(".contact-form-material").length>0&&a(".form-fields input, textarea, .comment-form-author input, .comment-form-email input").each(function(b){var c=a(this),d=c.parent("span, p"),e=c.parents(".dt-form");e.find(".clear-form").on("click",function(){d.removeClass("is-focused").removeClass("active");
}),c.focus(function(){d.addClass("is-focused").addClass("active"),c.attr("placeholder","")}),c.change(function(){0!==c.val().length&&(d.addClass("is-focused").removeClass("active"),c.attr("placeholder",""))}),c.blur(function(){d.removeClass("active"),""===c.val()&&d.removeClass("is-focused").removeClass("active")})}),a(".full-width-wrap").length>0&&(dtGlobals.isiOS?q.bind("orientationchange",function(){e()}).trigger("orientationchange"):(q.on("resize",function(){e()}),e())),window.vc_rowBehaviour=function(){function a(){var a=e('[data-vc-full-width="true"]');e.each(a,function(a,b){var c=e(this);c.addClass("vc_hidden");var d=c.next(".vc_row-full-width");d.length||(d=c.parent().next(".vc_row-full-width"));var f,g,h=parseInt(c.css("margin-left"),10),i=parseInt(c.css("margin-right"),10),j=0-d.offset().left-h,k=(e(window).width(),window.innerWidth),l=q.width(),m=e(".content").width();if(e(".boxed").length>0)f=(parseInt(e("#main").width())-parseInt(m))/2;else if(e(".side-header-v-stroke").length&&k>dtLocal.themeSettings.mobileHeader.firstSwitchPoint){var n=k<=parseInt(m)?parseInt(m):l-e(".side-header-v-stroke").width();f=Math.ceil((n-parseInt(m))/2)}else if(e(".sticky-header .side-header").length&&k>dtLocal.themeSettings.mobileHeader.firstSwitchPoint){var n=l<=parseInt(m)?parseInt(m):l;f=Math.ceil((l-parseInt(m))/2)}else if((e(".header-side-left").length&&k||e(".header-side-right").length&&k)>dtLocal.themeSettings.mobileHeader.firstSwitchPoint){var n=k<=parseInt(m)?parseInt(m):l-e(".side-header").width();f=Math.ceil((n-parseInt(m))/2)}else{var n=l<=parseInt(m)?parseInt(m):l;f=Math.ceil((l-parseInt(m))/2)}e(".sidebar-left").length>0||e(".sidebar-right").length>0?(g=e(".content").width(),f=0):g=e("#main").innerWidth();var j=0-f-h,o="rtl"==jQuery(document).attr("dir")?"right":"left";if(c.css(o,j),c.css({position:"relative","box-sizing":"border-box",width:g}),!c.data("vcStretchContent")){var p=-1*j;0>p&&(p=0);var r=g-p-d.width()+h+i;0>r&&(r=0),c.css({"padding-left":p+"px","padding-right":r+"px"})}c.attr("data-vc-full-width-init","true"),c.removeClass("vc_hidden"),c.find(".ts-wrap").each(function(){var a=e(this).data("thePhotoSlider");"undefined"!=typeof a&&a.update()})})}function b(){var a,b=!1;return window.vcParallaxSkroll&&window.vcParallaxSkroll.destroy(),e(".vc_parallax-inner").remove(),e("[data-5p-top-bottom]").removeAttr("data-5p-top-bottom data-30p-top-bottom"),e("[data-vc-parallax]").each(function(){var a,c,d,f,g,h,i;b=!0,"on"===e(this).data("vcParallaxOFade")&&e(this).children().attr("data-5p-top-bottom","opacity:0;").attr("data-30p-top-bottom","opacity:1;"),c=100*e(this).data("vcParallax"),g=e("<div />").addClass("vc_parallax-inner").appendTo(e(this)),g.height(c+"%"),h=e(this).data("vcParallaxImage"),i=vcExtractYoutubeId(h),i?insertYoutubeVideoAsBackground(g,i):"undefined"!=typeof h&&g.css("background-image","url("+h+")"),a=c-100,d=-a,f=0,g.attr("data-bottom-top","top: "+d+"%;").attr("data-top-bottom","top: "+f+"%;")}),!(!b||!window.skrollr)&&(a={forceHeight:!1,smoothScrolling:!1,mobileCheck:function(){return!1}},window.vcParallaxSkroll=skrollr.init(a),window.vcParallaxSkroll)}function c(){e(".vc_row-o-full-height:first").each(function(){var a,b,c,d;a=e(window),b=a.height(),c=e(this).offset().top,b>c&&(d=100-c/(b/100),e(this).css("min-height",d+"vh"))})}function d(){var a=window.navigator.userAgent,b=a.indexOf("MSIE ");(b>0||navigator.userAgent.match(/Trident.*rv\:11\./))&&e(".vc_row-o-full-height").each(function(){"flex"===e(this).css("display")&&e(this).wrap('<div class="vc_ie-flexbox-fixer"></div>')})}var e=window.jQuery;e(window).off("resize.vcRowBehaviour").on("resize.vcRowBehaviour",a).on("resize.vcRowBehaviour",c),a(),c(),d(),vc_initVideoBackgrounds(),b()},q.trigger("dt.removeLoading"),a("img").on("dragstart",function(a){a.preventDefault()});var xa=a("#main-slideshow");!xa.find("> div").length>0&&xa.addClass("empty-slider"),a(".rev_slider_wrapper").length>0&&(xa.find("> .rev_slider_wrapper")&&xa.addClass("fix rv-slider"),(a(".rev_slider_wrapper").hasClass("fullscreen-container")||a(".rev_slider_wrapper").hasClass("fullwidthbanner-container"))&&xa.removeClass("fix"));var Ya,Za;if(a(".shopping-cart.show-sub-cart").find(".buttons").first().clone(!0).addClass("top-position").insertBefore(".shopping-cart-inner .cart_list"),a(".shopping-cart.show-sub-cart").each(function(){var b=a(this),c=b.children(".shopping-cart-wrap");(dtGlobals.isMobile||dtGlobals.isWindowsPhone)&&b.find("> a").on("click",function(b){a(this).hasClass("dt-clicked")?b.stopPropagation():(b.preventDefault(),a(".shopping-cart").find(".dt-clicked").removeClass("dt-clicked"),a(this).addClass("dt-clicked"))}),b.on("mouseenter tap",function(d){"tap"==d.type&&d.stopPropagation(),b.addClass("dt-hovered"),t.width()-(c.offset().left-t.offset().left)-c.width()<0&&c.addClass("right-overflow"),q.height()-(c.offset().top-dtGlobals.winScrollTop)-c.innerHeight()<0&&c.addClass("bottom-overflow"),b.parents(".dt-mobile-header").length>0&&c.css({top:b.position().top-13-c.height()}),c.height()>q.height()-c.position().top&&c.addClass("show-top-buttons"),a(".searchform .submit",$a).removeClass("act"),a(".mini-search").removeClass("act"),a(".mini-search .field",$a).stop().animate({opacity:0},150,function(){a(this).css("visibility","hidden")}),clearTimeout(Ya),clearTimeout(Za),Ya=setTimeout(function(){b.hasClass("dt-hovered")&&c.stop().css("visibility","visible").animate({opacity:1},150)},100)}),b.on("mouseleave",function(b){var c=a(this),d=c.children(".shopping-cart-wrap");c.removeClass("dt-hovered"),clearTimeout(Ya),clearTimeout(Za),Za=setTimeout(function(){c.hasClass("dt-hovered")||(d.stop().animate({opacity:0},150,function(){a(this).css("visibility","hidden")}),setTimeout(function(){c.hasClass("dt-hovered")||(d.removeClass("right-overflow"),d.removeClass("bottom-overflow"),d.removeClass("show-top-buttons"))},400))},150)})}),a(".mini-search").length>0){var $a=a(".masthead, .dt-mobile-header");s.on("click",function(b){var c=a(b.target);c.is(".mini-search .field",$a)||(a(".searchform .submit",$a).removeClass("act"),a(".mini-search",$a).removeClass("act"),a(".mini-search .field",$a).stop().animate({opacity:0},150,function(){a(this).css("visibility","hidden")}),setTimeout(function(){a(".mini-search .field",$a).removeClass("right-overflow"),a(".mini-search .field",$a).removeClass("bottom-overflow")},400))}),a(".searchform .submit",$a).on("click",function(b){b.preventDefault(),b.stopPropagation();var c=a(this);c.hasClass("act")?(c.removeClass("act"),c.parents(".mini-search").removeClass("act"),c.siblings(".searchform-s").stop().animate({opacity:0},150,function(){a(this).css("visibility","hidden")}),setTimeout(function(){c.siblings(".searchform-s").removeClass("right-overflow"),c.siblings(".searchform-s").removeClass("bottom-overflow"),c.siblings(".searchform-s").css({right:""})},400)):(c.addClass("act"),c.parents(".mini-search").addClass("act"),c.parents(".dt-mobile-header").length>0&&c.siblings(".searchform-s").css({top:c.parents(".mini-search").position().top-c.siblings(".searchform-s").height()-18}),t.width()-(c.siblings(".searchform-s").offset().left-t.offset().left)-c.siblings(".searchform-s").width()<0&&(c.siblings(".searchform-s").addClass("right-overflow"),t.width()<=340&&c.siblings(".searchform-s").css({right:-(t.width()-c.parent(".searchform").offset().left-c.parent(".searchform").width()-10)})),console.log(t.width()-c.parent(".searchform").offset().left-c.parent(".searchform").width()),q.height()-(c.siblings(".searchform-s").offset().top-dtGlobals.winScrollTop)-c.siblings(".searchform-s").innerHeight()<0&&c.siblings(".searchform-s").addClass("bottom-overflow"),c.siblings(".searchform-s").stop().css("visibility","visible").animate({opacity:1},150).focus())})}if(a(".twentytwenty-container .preload-me").loaded(null,function(){a(".twentytwenty-container").each(function(){var b=a(this),c=b.attr("data-orientation").length>0?b.attr("data-orientation"):"horizontal",d="undefined"!=typeof b.attr("data-offset")&&b.attr("data-offset").length>0?b.attr("data-offset"):.5,e=!!b.attr("data-navigation");b.twentytwenty({default_offset_pct:d,orientation:c,navigation_follow:e})})},!0),a(".wpb_tabs .iso-container").length>0){var _a;a(".wpb_tour_tabs_wrapper").each(function(){var b=a(this),c=b.parents(".wpb_tabs").find(".iso-container");b.tabs({activate:function(a,b){c.isotope("layout")}}),b.find("li").each(function(){a(this).on("click",function(){clearTimeout(_a),q.trigger("debouncedresize"),a(this).parents(".wpb_tabs").find(".iso-container").isotope("layout")})})})}a(".tab-style-four .wpb_tabs_nav a").each(function(){var b=a(this);b.addClass("ripple"),b.ripple()}),a.fn.calcPics=function(){var b=a(".instagram-photos");return!(b.length<1)&&this.each(function(){var b=b?b:parseInt(a(this).attr("data-image-max-width"));parseInt(a(this).find("> a").css("margin-left"));a(this).find(" > a").css({"max-width":b,opacity:1});var c=a(this),d=c.width(),e=100/Math.ceil(d/b);c.find("a").css({width:e+"%"})})},a(".instagram-photos").calcPics(),a(".st-accordion").each(function(){var b=a(this);b.find("ul > li > a").on("click",function(c){c.preventDefault();var d=a(this),e=d.next();a(".st-content",b).not(e).slideUp("fast"),e.slideToggle("fast")})}),simple_tooltip(".shortcode-tooltip","shortcode-tooltip-content"),a(".widget .searchform .submit").on("click",function(b){return b.preventDefault(),a(this).siblings("input.searchsubmit").click(),!1}),a.fn.animateSkills=function(){a(".skill-value",this).each(function(){var b=a(this),c=b.data("width");b.css({width:c+"%"})})},a.fn.animateSkills=function(){a(".skill-value",this).each(function(){var b=a(this),c=b.data("width");b.css({width:c+"%"})})},f();var ab,bb;a(".project-share-overlay.allways-visible-icons .share-button").on("click",function(a){a.preventDefault()}),g(function(){h()});var cb,db,eb=a(".floating-content");a(".project-post");j();var fb=a(".transparent #fancy-header").exists(),gb=a(".transparent .page-title").exists();a.fancyFeaderCalc=function(){a(".branding .preload-me").loaded(null,function(){fb&&a(".transparent #fancy-header > .wf-wrap").css({"padding-top":a(".masthead:not(.side-header)").height()}),gb&&(a(".transparent .page-title > .wf-wrap").css({"padding-top":a(".masthead:not(.side-header)").height()}),a(".transparent .page-title").css("visibility","visible"))},!0)};var hb=a('.paginator[role="navigation"]'),ib=hb.find("a.dots");ib.on("click",function(){hb.find("div:hidden").show().find("a").unwrap(),ib.remove()}),a(".share-buttons a.pinit-marklet").click(function(b){b.preventDefault(),a("#pinmarklet").remove();var c=document.createElement("script");c.setAttribute("type","text/javascript"),c.setAttribute("charset","UTF-8"),c.setAttribute("id","pinmarklet"),c.setAttribute("async","async"),c.setAttribute("defer","defer"),c.setAttribute("src","//assets.pinterest.com/js/pinmarklet.js?r="+99999999*Math.random()),document.body.appendChild(c)}),q.on("debouncedresize",function(){window.innerWidth>dtLocal.themeSettings.mobileHeader.firstSwitchPoint?a(".masthead:not(.side-header):not(.mixed-header)").length>0?dtGlobals.showTopBtn=a(".masthead:not(.side-header):not(.mixed-header)").height()+150:a(".masthead.side-header-h-stroke").length>0?dtGlobals.showTopBtn=a(".side-header-h-stroke").height()+150:dtGlobals.showTopBtn=500:a(".masthead:not(.mixed-header)").length>0?dtGlobals.showTopBtn=a(".masthead:not(.mixed-header)").height()+150:a(".masthead.mixed-header").length>0?dtGlobals.showTopBtn=a(".mixed-header").height()+150:dtGlobals.showTopBtn=500}),q.scroll(function(){dtGlobals.winScrollTop>dtGlobals.showTopBtn?a(".scroll-top").removeClass("off").addClass("on"):a(".scroll-top").removeClass("on").addClass("off")}),a(".scroll-top").click(function(b){return b.preventDefault(),a("html, body").animate({scrollTop:0},"slow"),!1}),a("<select />").prependTo("#bottom-bar .mini-nav .menu-select"),a("<option />",{selected:"selected",value:"",text:"———"}).appendTo(".mini-nav .menu-select select"),a("#bottom-bar .mini-nav").each(function(){var b=a(this),c=b.find("select");a("a",b).each(function(){var b=a(this);a("<option />",{value:b.attr("href"),text:b.text(),"data-level":b.attr("data-level")}).appendTo(c)})}),a(".mini-nav select").change(function(){window.location=a(this).find("option:selected").val()}),a(".mini-nav select option").each(function(){var b=a(this),c=window.location.href;b.attr("value")==c&&b.attr("selected","selected")}),a(".woocommerce.widget_layered_nav select, .woocommerce-ordering-div select, #bottom-bar .mini-nav select, .widget_product_categories select").each(function(){a(this).customSelect()}),a(".menu-select select, .mini-nav .customSelect1, .vc_pie_chart .vc_pie_wrapper").css("visibility","visible"),a(".mini-nav option").each(function(){var b=a(this),c=b.text(),d="";switch(parseInt(b.attr("data-level"))){case 1:d="";break;case 2:d="— ";break;case 3:d="—— ";break;case 4:d="——— ";break;case 5:d="———— "}b.text(d+c)});var jb=navigator.userAgent,kb=jb.match(/iPhone/i)?"touchstart":"click";a(".project-navigation a, .mobile-sticky-header-overlay").bind(kb,function(a){}),a(".menu-material-style > li > a, .menu-material-style .sub-nav > ul > li > a, .menu-material-underline-style > li > a, .menu-material-underline-style .sub-nav > ul > li > a").each(function(){var b=a(this);b.addClass("ripple"),b.ripple()}),a.fn.clickEffectPics=function(){return this.each(function(){$this=a(this),a(".click-effect-on-img").length>0&&$this.addClass("material-click-effect")})},a(".rollover, .post-rollover, .rollover-video").clickEffectPics(),a(function(){a.fn.clickMaterialEffect=function(){return this.each(function(){var b,c,d,e,f=a(this),g=null,h=null;0===f.find(".ink").length&&f.prepend("<span class='ink'></span>"),f.addClass("ripplelink"),b=f.find(".ink"),b.removeClass("animate"),b.height()||b.width()||(c=Math.max(a(this).outerWidth(),f.outerHeight()),b.css({height:c,width:c})),f.bind("mousedown",function(a){clearTimeout(g),d=a.pageX-f.offset().left-b.width()/2,e=a.pageY-f.offset().top-b.height()/2,b.css({top:e+"px",left:d+"px"}).addClass("animate")}),f.bind("mouseup mouseleave",function(a){clearTimeout(h),clearTimeout(g),f._timer=setTimeout(function(){b.removeClass("animate")},400)})})},a(".rollover.material-click-effect, .post-rollover.material-click-effect, .rollover-video.material-click-effect").clickMaterialEffect()}),a(".small-portfolio-icons").length>0&&(a(".links-container a").each(function(){var b=a(this);b.addClass("waves-effect")}),Waves.displayEffect()),a(".filter").length>0&&(a(".filter-switch").append("<span class='filter-switch-toggle'></span>"),Modernizr.touch?a(".filter-switch").on("touchstart",function(b){a(".filter-switch").removeClass("pressed"),a(this).addClass("pressed")}):a(".filter-switch").on("mousedown",function(b){a(".filter-switch").removeClass("pressed"),a(this).addClass("pressed"),setTimeout(function(){a(this).removeClass("pressed")},600)}),a(".filter-switch .filter-switch-toggle").on("animationend webkitAnimationEnd oanimationend MSAnimationEnd",function(b){a(this).parent().removeClass("pressed")}),Modernizr.touch?a(".filter-extras a").on("touchstart",function(b){a(".filter-extras").removeClass("pressed"),a(this).parent(".filter-extras").addClass("pressed")}):a(".filter-extras a").each(function(){a(this).on("mousedown",function(b){a(".filter-extras").removeClass("pressed"),a(this).addClass("pressed"),setTimeout(function(){a(this).removeClass("pressed")},600)})}),a(".filter-extras a").on("animationend webkitAnimationEnd oanimationend MSAnimationEnd",function(b){a(this).removeClass("pressed")}));var lb=function(){var a={};return function(b,c,d){d||(d="Don't call this twice without a uniqueId"),a[d]&&clearTimeout(a[d]),a[d]=setTimeout(b,c)}}();if(!dtGlobals.isMobile){a(".stripe-parallax-bg, .fancy-parallax-bg, .page-title-parallax-bg").each(function(){var b=a(this),c=b.data("prlx-speed");b.parallax("50%",c),b.addClass("parallax-bg-done"),b.css("opacity","1")});var mb=-1;a("#fancy-header .fancy-title:not(.start-animation), #fancy-header .fancy-subtitle:not(.start-animation), #fancy-header .breadcrumbs:not(.start-animation)").each(function(){var b=a(this);b.hasClass("start-animation")||b.hasClass("start-animation-done")||(b.addClass("start-animation-done"),mb++,setTimeout(function(){b.addClass("start-animation")},300*mb))}),a("video.stripe-video-bg:in-viewport").each(function(){var b=a(this).parent(".stripe"),c=b.find("video");c.length>0&&c.get(0).play()}),q.on("scroll",function(){a("video.stripe-video-bg").length>0&&a("video.stripe-video-bg").each(function(){var b=a(this);b.is(":in-viewport")?b.get(0).play():b.get(0).pause()})})}a(".footer-overlap .footer").css({opacity:1}),(a(".page-inner").length>0&&a(".side-header").length>0||a(".page-inner").length>0&&a(".dt-mobile-header").length>0)&&a(".side-header, .mixed-header, .dt-mobile-header, .dt-close-mobile-menu-icon").insertBefore(".page-inner"),!a(".footer .widget").length>0&&a(".footer").addClass("empty-footer"),a.fn.calculateColumns=function(b,c,d,e,f,g,h,i){return this.each(function(){var j=a(this),k=j.width()-1,l=d!==!1?d:20,m=j.attr("data-cont-id"),n="";if(j.parent().hasClass("blog-shortcode"))var o=j.parent(),p=a(".cont-id-"+m).parent();else var o=j,p=a(".cont-id-"+m);for("undefined"==typeof b&&(b=200),"undefined"==typeof c&&(c=6);Math.floor(k/c)<b&&(c--,!(c<=1)););if(a("#col-style-id-"+m).exists())var q=document.getElementById("col-style-id-"+m);else{var q=document.createElement("style");q.id="col-style-id-"+m,q.appendChild(document.createTextNode("")),document.head.appendChild(q)}var r,s,t,u,v,w,x=a("#col-style-id-"+m);l<10?(u=0,w=0):(w=l-5,u=l-10),v=0==l?0:-l,o.hasClass("resize-by-browser-width")?Modernizr.mq("only screen and (max-width:767px)")?(r=Math.floor(k/h)+"px",s=2*Math.floor(k/h)+"px",t=h):Modernizr.mq("(min-width:768px) and (max-width:991px)")?(r=Math.floor(k/g)+"px",s=2*Math.floor(k/g)+"px",t=g):Modernizr.mq("(min-width:992px) and (max-width:1199px)")?(r=Math.floor(k/f)+"px",s=2*Math.floor(k/f)+"px",t=f):(r=Math.floor(k/e)+"px",s=2*Math.floor(k/e)+"px",t=e):"px"==i?(r=Math.floor(k/c)+"px",s=2*Math.floor(k/c)+"px",t=c):(r=Math.floor(1e5/c)/1e3+"%",s=2*Math.floor(1e5/c)/1e3+"%"),n=p.not(".bg-under-post, .content-bg-on").hasClass("description-under-image")?t>1?" \t\t\t\t\t\t\t.cont-id-"+m+" { margin: -"+w+"px  -"+l+"px -"+u+"px ; } \t\t\t\t\t\t\t.full-width-wrap .cont-id-"+m+" { margin: "+-w+"px "+l+"px "+-u+"px ; } \t\t\t\t\t\t\t.cont-id-"+m+"  .wf-cell { width: "+r+"; padding: "+w+"px "+l+"px "+u+"px; } \t\t\t\t\t\t\t.cont-id-"+m+"  .wf-cell.double-width { width: "+s+"; } \t\t\t\t\t\t":" \t\t\t\t\t\t\t.cont-id-"+m+" { margin: -"+w+"px  -"+u+"px -"+l+"px ; } \t\t\t\t\t\t\t.full-width-wrap .cont-id-"+m+" { margin: "+-w+"px "+l+"px "+-u+"px ; } \t\t\t\t\t\t\t.cont-id-"+m+"  .wf-cell { width: "+r+"; padding: "+w+"px "+u+"px "+l+"px; } \t\t\t\t\t\t":t>1?" \t\t\t\t\t\t\t.cont-id-"+m+" { margin: -"+l+"px; } \t\t\t\t\t\t\t.full-width-wrap .cont-id-"+m+" { margin: "+v+"px  "+l+"px; } \t\t\t\t\t\t\t.cont-id-"+m+" .wf-cell { width: "+r+";  padding: "+l+"px; } \t\t\t\t\t\t\t.cont-id-"+m+" .wf-cell.double-width { width: "+s+"; } \t\t\t\t\t\t":" \t\t\t\t\t\t\t.cont-id-"+m+" { margin: -"+l+"px; } \t\t\t\t\t\t\t.full-width-wrap .cont-id-"+m+" { margin: "+v+"px "+l+"px; } \t\t\t\t\t\t\t.cont-id-"+m+" .wf-cell { width: "+r+"; padding: "+l+"px; } \t\t\t\t\t\t",x.html(n);var y=q.sheet.cssRules.length;q.sheet.insertRule(".webkit-hack { }",y),q.sheet.deleteRule(y),j.trigger("columnsReady")})},a.fn.initSlider=function(){return this.each(function(){var b=a(this);b.data("width"),b.data("height");b.hasClass("royalReady")||(b.postTypeScroller(),b.addClass("royalReady"))})};var nb=Isotope.prototype._positionItem;Isotope.prototype._positionItem=function(a,b,c,d){nb(a,b,c,!0)},a.fn.IsoLayzrInitialisation=function(b){return this.each(function(){a(this),new Layzr({container:b,selector:".iso-lazy-load",attr:"data-src",attrSrcSet:"data-srcset",retinaAttr:"data-src-retina",threshold:30,before:function(){var b=a(this).attr("data-src").substring(a(this).attr("data-src").lastIndexOf(".")+1);"png"==b&&a(this).parent().addClass("layzr-bg-transparent"),this.setAttribute("sizes",this.width+"px")},callback:function(){this.classList.add("iso-layzr-loaded");var b=a(this);b.one("webkitTransitionEnd otransitionend oTransitionEnd msTransitionEnd transitionend",function(a){setTimeout(function(){b.parent().removeClass("layzr-bg")},200)})}})})};var ob=a(".iso-container"),pb=a(".iso-grid:not(.jg-container, .iso-container), .blog.layout-grid .wf-container.description-under-image:not(.jg-container, .iso-container), .grid-masonry:not(.iso-container), .shortcode-blog-posts.iso-grid"),qb=ob.add(pb),rb=dtGlobals.isoPreloader=a('<div class="iso-preloader pace pace-active"><div class="pace-activity"></div></div>').appendTo("body").hide();qb.not(".blog-grid-shortcode").addClass("dt-isotope"),qb.exists()&&qb.each(function(b){var c=a(this);if(c.parent().hasClass("blog-shortcode"))var d=c.parent();else var d=c;var e=a(this),f=parseInt(d.attr("data-width")),g=parseInt(d.attr("data-columns")),h=parseInt(d.attr("data-desktop-columns-num")),i=parseInt(d.attr("data-h-tablet-columns-num")),j=parseInt(d.attr("data-v-tablet-columns-num")),k=parseInt(d.attr("data-phone-columns-num")),l=parseInt(d.attr("data-padding"));e.addClass("cont-id-"+b).attr("data-cont-id",b),e.calculateColumns(f,g,l,h,i,j,k,"px"),l>10&&e.addClass("mobile-paddings"),q.on("debouncedresize",function(){e.calculateColumns(f,g,l,h,i,j,k,"px"),l>10&&e.addClass("mobile-paddings")})}),a.fn.heightHack=function(){return this.each(function(){var b=a(this);if(!(b.hasClass("height-ready")||b.parents(".post-rollover").exists()||b.parents(".slider-masonry").exists())){var c=parseInt(b.attr("width")),d=parseInt(b.attr("height")),e=c/d;b.parents(".testimonial-vcard, .dt-format-gallery, .shortcode-blog-posts.iso-grid ").exists()&&b.wrap("<div />"),b.parent().css({"padding-bottom":100/e+"%",height:0,display:"block"}),b.attr("data-ratio",e).addClass("height-ready")}})},a.fn.IsoInitialisation=function(b,c,d,e){return this.each(function(){var d=a(this);d.hasClass("iso-item-ready")||(d.isotope({itemSelector:b,layoutMode:c,stagger:30,resize:!1,transitionDuration:0,equalheight:e,hiddenStyle:{opacity:0},visibleStyle:{opacity:1},masonry:{columnWidth:1},getSortData:{date:function(b){return a(b).attr("data-date")},name:function(b){return a(b).attr("data-name")}}}),d.addClass("iso-item-ready"))})},a(".iso-container, .portfolio-grid").each(function(){if(a(this).parent().hasClass("blog-shortcode"))var b=null;else var b=a(this);a(".filter:not(.iso-filter):not(.without-isotope):not(.with-ajax) .filter-categories a").on("click.presscorFilterCategories",function(c){var d=a(this).attr("data-filter");return null!=b&&b.isotope({filter:d}),!1}),a(".filter:not(.iso-filter):not(.without-isotope):not(.with-ajax) .filter-extras .filter-by a").on("click",function(c){var d=a(this).attr("data-by"),e=a(this).parents(".filter-extras").find(".filter-sorting > a.act").first().attr("data-sort");return null!=b&&b.isotope({sortBy:d,sortAscending:"asc"==e}),!1}),a(".filter:not(.iso-filter):not(.without-isotope):not(.with-ajax) .filter-extras .filter-sorting a").on("click",function(c){var d=a(this).attr("data-sort"),e=a(this).parents(".filter-extras").find(".filter-by > a.act").first().attr("data-by");return null!=b&&b.isotope({sortBy:e,sortAscending:"asc"==d}),!1})}),(ob.exists()||pb.exists())&&(rb.fadeIn(50),qb.not(".blog-grid-shortcode").each(function(){var b=a(this);if(b.hasClass("blog-shortcode"))var c=b.find(".dt-isotope");else var c=b;a(".preload-me",c).heightHack(),a(".slider-masonry",c).initSlider(),c.one("columnsReady",function(){if(c.hasClass("iso-container"))c.IsoInitialisation(".iso-item","masonry",400);else{if(c.parent().hasClass("gradient-overlay-layout-list")||c.parent().hasClass("content-rollover-layout-list"))var d=!1;else var d=!0;c.IsoInitialisation(".wf-cell","fitRows",400,d)}c.isotope("on","layoutComplete",function(b){for(var d=0;d<b.length;d++){b[d],a(this);c.trigger("IsoReady")}}),c.parent().hasClass("content-rollover-layout-list")&&!c.parent().hasClass("disable-layout-hover")&&b.find(".post-entry-wrapper").each(function(){var b=a(this),c=b.find(".entry-excerpt").height()+b.find(".post-details").height();b.stop().velocity({translateY:c},0),b.parents(".post").first().on("mouseenter",function(a){b.stop().velocity({translateY:0},0)}),b.parents(".post").first().on("mouseleave",function(a){b.stop().velocity({translateY:c},0)})}),c.one("IsoReady",function(){c.isotope("layout"),c.IsoLayzrInitialisation(),setTimeout(function(){c.isotope("layout")},350)}),q.on("columnsReady",function(){a(".slider-masonry",c).hasClass("royalReady")&&a(".slider-masonry",c).each(function(){var b=a(this).parents(".ts-wrap").data("thePhotoSlider");"undefined"!=typeof b&&b.update()}),c.parent().hasClass("content-rollover-layout-list")&&!c.parent().hasClass("disable-layout-hover")&&b.find(".post-entry-wrapper").each(function(){var b=a(this),c=b.find(".entry-excerpt").height()+b.find(".post-details").height();b.stop().velocity({translateY:c},0),b.parents(".post").first().on("mouseenter",function(a){b.stop().velocity({translateY:0},0)}),b.parents(".post").first().on("mouseleave",function(a){b.stop().velocity({translateY:c},0)})}),c.isotope("layout")})})}),rb.stop().fadeOut(300)),q.on("debouncedresize",function(b){dtGlobals.resizeCounter++,a.isFunction(a.fn.calcPics)&&a(".instagram-photos").calcPics(),a.mobileHeader(),a.headerBelowSlider(),window.innerWidth>=dtLocal.themeSettings.mobileHeader.firstSwitchPoint&&(t.removeClass("show-mobile-header"),t.addClass("closed-mobile-header"),s.removeClass("show-sticky-mobile-header"),s.removeClass("show-overlay-mobile-header").addClass("closed-overlay-mobile-header"),a(".mobile-sticky-header-overlay").removeClass("active"),a(".dt-mobile-menu-icon").removeClass("active"),r.removeClass("menu-open"),W||X||a(".masthead:not(.mixed-header):not(#phantom):not(.side-header)").velocity({translateY:""},0)),window.innerWidth<=dtLocal.themeSettings.mobileHeader.firstSwitchPoint?a(".masthead:not(.mixed-header):not(#phantom)").addClass("masthead-mobile"):a(".masthead:not(.mixed-header):not(#phantom)").removeClass("masthead-mobile"),a(".mini-nav select").trigger("render"),a.fancyFeaderCalc(),a(".mini-widgets, .mobile-mini-widgets").find(" > *").removeClass("first last"),a(".mini-widgets, .mobile-mini-widgets").find(" > *:visible:first").addClass("first"),a(".mini-widgets, .mobile-mini-widgets").find(" > *:visible:last").addClass("last"),a(".stripe-video-bg > video").each(function(){if(a(".header-side-line").length>0&&!a(".boxed").length>0)var b=a(".side-header-v-stroke").width();else if(!a("body").hasClass("sticky-header")&&!a("body").hasClass("overlay-navigation")&&a(".side-header").length>0)var b=a(".side-header").width();else var b=0;var c=2e3+b,d=c-a(".content").position().left-22,e=a(this),f=(e.height(),a("#page").width());e.css({left:d,width:f})}),a(".stripe, .dt-default").each(function(){var b=a(this),c=b.attr("data-min-height");a.isNumeric(c)?b.css({minHeight:c+"px"}):c?c.search("%")>0?b.css({minHeight:q.height()*(parseInt(c)/100)+"px"}):b.css({minHeight:c}):b.css({minHeight:0})}),cb=eb.parent().height(),db=eb.height(),a(".mobile-false .footer-overlap .page-inner").css({"min-height":window.innerHeight-a(".footer").innerHeight(),"margin-bottom":a(".footer").innerHeight()})}).trigger("debouncedresize"),a.fn.inView=function(){var b=a(window);obj=a(this);var c=b.scrollTop(),d=b.scrollTop()+b.height(),e=obj.offset().top+20;return d>=e&&c<=e},a.fn.resetEffects=function(b){return this.each(function(){var b=a(this);b.find(".iso-item.shown, .wf-cell.shown").removeClass("start-animation").removeClass("animation-triggered").removeClass("shown")})};var sb={xhr:!1,settings:!1,lunch:function(b){var c=this;b&&(this.settings=b),this.xhr&&this.xhr.abort();var d="presscore_template_ajax";this.xhr=a.post(b.ajaxurl,{action:d,postID:b.postID,paged:b.paged,targetPage:b.targetPage,term:b.term,orderby:b.orderBy,order:b.order,nonce:b.nonce,visibleItems:b.visibleItems,contentType:b.contentType,pageData:b.pageData,sender:b.sender},function(d){if(d.success){var e=jQuery(d.html),f=b.targetContainer;parseInt(f.attr("data-width")),parseInt(f.attr("data-max-width")),parseInt(f.attr("data-padding"));if(isIsotope="grid"==b.layout||"masonry"==b.layout,itemsToDeleteLength=0,trashItems=new Array,sortBy=d.orderby.replace("title","name"),sortAscending="asc"==d.order.toString(),d.newNonce&&(dtLocal.ajaxNonce=d.newNonce),"undefined"!=typeof d.itemsToDelete&&(itemsToDeleteLength=d.itemsToDelete.length),isIsotope&&itemsToDeleteLength>0){for(var g=0;g<d.itemsToDelete.length;g++)trashItems.push('.wf-cell[data-post-id="'+d.itemsToDelete[g]+'"]');f.isotope("remove",f.find(trashItems.join(",")))}else isIsotope||"filter"!=b.sender&&"paginator"!=b.sender||f.find(".wf-cell, article").remove();e.length>0?(f.append(e),dtGlobals.ajaxContainerItems=f.find("div.wf-cell, .project-even, .project-odd").not(".animation-triggered"),isIsotope?(a(".preload-me",f).heightHack(),a(".slider-masonry",f).initSlider(),a(".slider-masonry",f).css("visibility","visible"),f.isotope("addItems",e),"media"!=b.contentType?f.isotope({sortBy:sortBy,sortAscending:sortAscending}):f.isotope({sortBy:"original-order"}),f.isotope("layout"),c.init(),f.layzrInitialisation(),f.IsoLayzrInitialisation()):(a(".slider-masonry",f).initSlider(),a("ul.photoSlider:not(.slider-masonry)").each(function(){a(this).postTypeScroller()}),a("ul.photoSlider").css("visibility","visible"),"jgrid"==b.layout&&f.collagePlus(dtGlobals.jGrid),c.init(),f.layzrInitialisation(),f.IsoLayzrInitialisation(".mobile-true")),"undefined"!=typeof b.afterSuccessInit&&b.afterSuccessInit(d),q.trigger("dt.ajax.content.appended")):isIsotope&&f.isotope({sortBy:sortBy,sortAscending:sortAscending})}"undefined"!=typeof b.afterResponce&&b.afterResponce(d),k()})},init:function(){switch(this.settings.contentType){case"portfolio":this.initPortfolio();break;case"albums":this.initAlbums();break;case"media":this.initMedia();break;case"blog":this.basicInit();break;case"testimonials":this.basicInit()}},initPortfolio:function(){this.basicInit()},initAlbums:function(){this.basicInit()},initMedia:function(){this.basicInit(),a(".mobile-false .albums .rollover-content, .mobile-false .media .rollover-content").on("click",function(b){return!!a(b.target).is("a")||void a(this).siblings("a.dt-single-mfp-popup, a.dt-gallery-mfp-popup, a.dt-mfp-item").first().click()})},basicInit:function(){var b=this.settings.targetContainer;a(".dt-gallery-mfp-popup",b).not(".mfp-ready").on("click",function(){var b=a(this),c=b.parents("article.post");if(c.length>0){var d=c.find(".dt-gallery-container a.dt-mfp-item");d.length>0&&d.first().trigger("click")}return!1}).addClass("mfp-ready"),a(".dt-trigger-first-mfp",b).not(".mfp-ready").on("click",function(){var b=a(this),c=b.parents("article.post");if(c.length>0){var d=c.find("a.dt-mfp-item");d.length>0&&d.first().trigger("click")}return!1}).addClass("mfp-ready"),a(".dt-single-image",b).not(".mfp-ready").magnificPopup({type:"image"}).addClass("mfp-ready"),a(".dt-single-video",b).not(".mfp-ready").magnificPopup({type:"iframe"}).addClass("mfp-ready"),a(".dt-single-mfp-popup",b).not(".mfp-ready").magnificPopup({type:"image"}).addClass("mfp-ready"),a(".dt-gallery-container",b).not(".mfp-ready").each(function(){a(this).addClass("mfp-ready").magnificPopup(a.extend({},dtGlobals.magnificPopupBaseConfig,{delegate:"a.dt-mfp-item",gallery:{enabled:!0,navigateByImgClick:!0,preload:[0,1]}}))}),a(".rollover, .rollover-video, .post-rollover, .rollover-project .show-content",b).addRollover(),a.isFunction(a.fn.hoverdir)&&(a(".mobile-false .hover-grid .rollover-project").each(function(){a(this).hoverdir()}),a(".mobile-false .hover-grid-reverse .rollover-project ").each(function(){a(this).hoverdir({inverse:!0})})),a(".mobile-true .rollover-project a.link.show-content, .hover-style-one article:not(.description-off) .rollover-project > a, .hover-style-two article:not(.description-off) .rollover-project > a, .hover-style-three article:not(.description-off) .rollover-project > a").on("click",function(a){
a.preventDefault()}),a(".rollover, .post-rollover, .rollover-video").clickEffectPics(),a(".rollover.material-click-effect, .post-rollover.material-click-effect, .rollover-video.material-click-effect").clickMaterialEffect(),a(".small-portfolio-icons").length>0&&(a(".links-container a").each(function(){var b=a(this);b.addClass("waves-effect")}),Waves.displayEffect()),a(".mobile-true .rollover-project").touchNewHover(),a.isFunction(a.fn.triggerHoverClick)&&a(".mobile-false .rollover-project:not(.rollover-active) .rollover-content, .buttons-on-img:not(.rollover-active) .rollover-content").triggerHoverClick(),a.isFunction(a.fn.triggerHoverClick)&&a(".mobile-false .rollover-project.forward-post").triggerHoverClick(),a.isFunction(a.fn.triggerHoverClick)&&a(".mobile-false .rollover-project.rollover-active, .mobile-false .buttons-on-img.rollover-active").followCurentLink(),a.isFunction(a.fn.triggerAlbumsClick)&&a(".albums .rollover-project, .albums .buttons-on-img, .archive .type-dt_gallery .buttons-on-img").triggerAlbumsClick(),a.isFunction(a.fn.triggerPostClick)&&a(".mobile-false .content-rollover-layout-list .post, .mobile-false .gradient-overlay-layout-list .post").triggerPostClick(),a.isFunction(a.fn.touchforwardToPost)&&a(".mobile-true .rollover-project.forward-post").touchforwardToPost(),a.isFunction(a.fn.touchHoverImage)&&a(".mobile-true .buttons-on-img").touchHoverImage(),a(".hover-scale .rollover-project").scaleInHover(),a.isFunction(a.fn.hoverLinks)&&a(".links-container a").hoverLinks(),a(".style-material-design").length>0&&(a(".links-container a, .paginator .page-nav a").each(function(){var b=a(this);b.addClass("waves-effect")}),Waves.displayEffect())}};if(a("#content").on("click",".paginator.with-ajax a",function(b){if(b.preventDefault(),!a(b.target).hasClass("dots")&&!a(b.target).hasClass("disabled")){var c=a(this),d=c.closest(".paginator"),e=d.parent(),f=e.find(".wf-container.with-ajax, .articles-list.with-ajax").first(),g=a(".button-load-more"),h=g.find(".button-caption").text(),i=d.hasClass("paginator-more-button")?"more":"paginator",j="more"==i,k=m(e),l=j?k.paged+1:c.attr("data-page-num"),n=dtGlobals.isoPreloader;if(g.addClass("animate-load").find(".button-caption").text(dtLocal.moreButtonText.loading),n&&!a(".paginator-more-button").length&&dtGlobals.isoPreloader.fadeIn(50),j)a("html, body").scrollTop(q.scrollTop()+1);else{var o=e.find(".filter.with-ajax").first(),p=44;o.exists()||(o=f,p=50),a("html, body").animate({scrollTop:o.offset().top-a("#phantom").height()-p},400)}sb.lunch(a.extend({},k,{contentType:k.pageData.template,targetPage:l,sender:i,visibleItems:j?new Array:k.visibleItems,afterResponce:function(b){d.length>0?(b.paginationHtml?(d.html(a(b.paginationHtml).html()).show(),a(".filter-style-material").length>0&&(a(".paginator .page-links a").each(function(){var b=a(this);b.addClass("ripple")}),a(".page-links a.ripple").ripple(),a(".paginator .page-nav a").each(function(){var b=a(this);b.addClass("waves-effect")}),Waves.displayEffect())):d.html("").hide(),setTimeout(function(){a(".button-load-more").removeClass("animate-load").find(".button-caption").text(h)},200)):b.paginationHtml&&f.parent().append(a(b.paginationHtml)),d.find(".dots").on("click",function(){d.find("div:hidden").show().find("a").unwrap(),a(this).remove()}),f.attr("data-cur-page",b.currentPage),dtGlobals.isoPreloader.stop().fadeOut(300),dtGlobals.loadMoreButton=a(".button-load-more")}}))}}),a(".filter.with-ajax .filter-categories a, .filter.with-ajax .filter-extras a").on("click",function(b){b.preventDefault();var c=a(this),d=c.closest(".filter"),e=d.parent(),f=e.find(".wf-container.with-ajax").first(),g=e.find(".paginator").first(),h=m(e),i=dtGlobals.isoPreloader;f.resetEffects(),i&&dtGlobals.isoPreloader.fadeIn(50),sb.lunch(a.extend({},h,{contentType:h.pageData.template,targetPage:1,paged:1,sender:"filter",afterResponce:function(b){g.length>0?b.paginationHtml?g.html(a(b.paginationHtml).html()).show():g.html("").hide():b.paginationHtml&&f.parent().append(a(b.paginationHtml)),g.find(".dots").on("click",function(){g.find("div:hidden").show().find("a").unwrap(),a(this).remove()}),f.attr("data-cur-page",b.currentPage),dtGlobals.isoPreloader.stop().fadeOut(300),dtGlobals.loadMoreButton=a(".button-load-more")}}))}),"undefined"!=typeof dtLocal.themeSettings.lazyLoading&&dtLocal.themeSettings.lazyLoading){dtGlobals.loadMoreButton=a(".button-load-more");q.on("scroll",function(){n()}),n()}var lb=function(){var a={};return function(b,c,d){d||(d="Don't call this twice without a uniqueId"),a[d]&&clearTimeout(a[d]),a[d]=setTimeout(b,c)}}();q.resize(function(){a(".iso-item, .iso-grid .wf-cell").addClass("animate-position"),lb(function(){a(".iso-item, .iso-grid .wf-cell").removeClass("animate-position")},2500,"")});var tb=a(".dt-isotope"),ub=a(".iso-item:not(.shown):not(.is-visible)"),vb=a(".iso-grid .wf-cell:not(.shown):not(.is-visible)");(tb.exists()||ub.exists()||vb.exists())&&(setTimeout(function(){k()},100),q.on("scroll",function(){k()}));var wb=function(){function b(){this.timeouts={},this.config={postsContainer:null,categoryContainer:null,paginatorContainer:null,curPage:1,curCategory:"*",postsPerPage:-1,items:[]}}return b.prototype.init=function(b){a.extend(this.config,b),this._setPostsPerPage(),this._setCategory(),this._setCurPage(),this._setItems(),this.setup()},b.prototype.setup=function(){a("a",this.config.paginatorContainer).on("click.dtPostsPaginationFilter",{self:this},this.paginationFilter),a("a",this.config.categoryContainer).on("click.dtPostsCategoryFilter",{self:this},this.categoryFilter),this._getActiveElement(this.config.paginatorContainer).trigger("click.dtPostsPaginationFilter",{onSetup:!0})},b.prototype.paginationFilter=function(b,c){b.preventDefault();var d=a(this),e=b.data.self;e._setAsActive(d),e._setCurPage(),c?e._filterPosts():e._scrollToTopOfContainer(e._filterPosts)},b.prototype.categoryFilter=function(b){b.preventDefault();var c=a(this),d=b.data.self;d._setAsActive(c),d._setCategory(),d._setAsActive(d.config.paginatorContainer.find("a").first()),d._setCurPage(1),d._showPagination(),d._filterPosts()},b.prototype._showPagination=function(){if(this.config.curCategory&&"*"!=this.config.curCategory){var b=this.config.postsContainer.find("> "+this.config.curCategory).length,c=Math.ceil(b/this.config.postsPerPage);1==c?this.config.paginatorContainer.find("a").hide():this.config.paginatorContainer.find("a").each(function(b){var d=a(this);b+1>c?d.hide():d.show()})}else this.config.paginatorContainer.find("a").show()},b.prototype._filterPosts=function(){var b=this;b.config.items.css("display","none");var c=0;b.config.items.filter(b.config.curCategory).each(function(){b._showOnCurPage(++c)&&a(this).css("display","block")})},b.prototype._setPostsPerPage=function(){this.config.postsPerPage=parseInt(this.config.postsContainer.attr("data-posts-per-page"))},b.prototype._setCategory=function(){this.config.curCategory=this._getActiveElement(this.config.categoryContainer).attr("data-filter")||this.config.curCategory},b.prototype._setCurPage=function(a){this.config.curPage=a?a:this._getActiveElement(this.config.paginatorContainer).attr("data-page-num")},b.prototype._setItems=function(){this.config.items=a(".wf-cell",this.config.postsContainer)},b.prototype._showOnCurPage=function(a){return this.config.postsPerPage<=0||this.config.postsPerPage*(this.config.curPage-1)<a&&a<=this.config.postsPerPage*this.config.curPage},b.prototype._setAsActive=function(a){a.addClass("act").siblings().removeClass("act")},b.prototype._getActiveElement=function(a){return a.find("a.act").first()},b.prototype._isActive=function(a){return a.hasClass("act")},b.prototype._scrollToTopOfContainer=function(b){var c=this.config.postsContainer.parent();a("html, body").animate({scrollTop:c.offset().top-a("#phantom").height()-50},400,b?b.bind(this):void 0)},b.prototype._setTimeout=function(a,b,c){var d=this;a||b.bind(d),this.timeouts[a]&&window.clearTimeout(this.timeouts[a]),this.timeouts[a]=window.setTimeout(b.bind(d),c)},b}(),xb=function(){function b(){wb.call(this),this.config={postsContainer:null,categoryContainer:null,orderByContainer:null,orderContainer:null,paginatorContainer:null,curPage:1,curCategory:"*",initialOrder:"",order:"",orderBy:"",postsPerPage:-1,items:[],isPhone:!1}}return b.prototype=new wb,b.prototype.init=function(b){a.extend(this.config,b),this._setPostsPerPage(),this._setCategory(),this._setOrderBy(),this._setOrder(),this._setCurPage(),this._setItems(),this.config.initialOrder=this.config.order,this.setup()},b.prototype.setup=function(){a("a",this.config.paginatorContainer).on("click.dtPostsPaginationFilter",{self:this},this.paginationFilter),a("a",this.config.categoryContainer).on("click.dtPostsCategoryFilter",{self:this},this.categoryFilter),a("a",this.config.orderContainer).on("click.dtPostsOrderFilter",{self:this},this.orderFilter),a("a",this.config.orderByContainer).on("click.dtPostsOrderByFilter",{self:this},this.orderByFilter),this._getActiveElement(this.config.paginatorContainer).trigger("click.dtPostsPaginationFilter",{onSetup:!0})},b.prototype.orderFilter=function(b){b.preventDefault();var c=a(this),d=b.data.self;d._setAsActive(c),d._setOrder(),d._filterPosts()},b.prototype.orderByFilter=function(b){b.preventDefault();var c=a(this),d=b.data.self;d._setAsActive(c),d._setOrderBy(),d._filterPosts()},b.prototype._filterPosts=function(){var b=this;b.config.postsContainer.resetEffects(),b.config.postsContainer.isotope({filter:b.config.curCategory,sortAscending:"asc"==b.config.order,sortBy:b.config.orderBy}),b.config.curPage&&b._filterByCurPage(),setTimeout(function(){a(".iso-container").isotope("layout")},800),b.config.postsContainer.IsoLayzrInitialisation(),k()},b.prototype._filterByCurPage=function(){var a=this.config.items.slice(0);this.config.initialOrder&&this.config.initialOrder!=this.config.order&&a.reverse();var b=0;a.map(function(a){a.isHidden||this._showOnCurPage(++b)||a.hide()},this),this.config.postsContainer.isotope("layout")},b.prototype._setOrderBy=function(){this.config.orderBy=this._getActiveElement(this.config.orderByContainer).attr("data-by")},b.prototype._setOrder=function(){this.config.order=this._getActiveElement(this.config.orderContainer).attr("data-sort")},b.prototype._setItems=function(){this.config.items=this.config.postsContainer.isotope("getItemElements").map(function(a){return this.config.postsContainer.isotope("getItem",a)},this)},b}(),yb=function(){function b(){}return b.prototype=new wb,b.prototype._filterPosts=function(){var b=this;b.config.items.css("display","none");var c=0,d=[];b.config.items.filter(b.config.curCategory).each(function(){b._showOnCurPage(++c)&&(a(this).css("display","block"),d.push(this))}),d=a(d),b.config.postsContainer.data("visibleItems",d),b.config.postsContainer.collage({images:d})},b.prototype._setItems=function(){this.config.items=a(".wf-cell",this.config.postsContainer)},b}(),zb=function(){function b(b){var c={paginatorContainer:null,postLimit:1,curPage:1,items:[],onPaginate:function(){}};this.config=a.extend(c,b)}return b.prototype.setCurPage=function(a){this.config.curPage=parseInt(a)},b.prototype.getCurPage=function(){return this.config.curPage},b.prototype.reset=function(a){this.config.items=a,this.setCurPage(1),this.appendControls(),this._filterByCurPage()},b.prototype.appendControls=function(){},b.prototype._filterByCurPage=function(){this.showItem(this.config.items)},b.prototype.hideItem=function(a){a.removeClass("visible").addClass("hidden").hide()},b.prototype.showItem=function(a){a.addClass("visible").removeClass("hidden").show()},b}(),Ab=function(){function b(b){zb.call(this,b);var c={previousButtonClass:"",previousButtonLabel:"",pagerClass:"",nextButtonClass:"",nextButtonLabel:"",activeClass:"act",pagesToShow:5};this.config=a.extend(c,b),this.appendControls(),a("a.act",this.config.paginatorContainer).trigger("click.dtPostsPaginationFilter",{onSetup:!0})}return b.prototype=new zb,b.prototype.addEvents=function(){a("a",this.config.paginatorContainer).not(".dots").on("click.dtPostsPaginationFilter",{self:this},this.config.onPaginate),a("a.dots",this.config.paginatorContainer).on("click.dtPostsPaginationDots",{self:this},function(a){a.preventDefault(),a.data.self.config.paginatorContainer.find("div:hidden a").unwrap(),a.data.self.config.paginatorContainer.find("a.dots").remove()})},b.prototype.appendControls=function(){var b=this.config.paginatorContainer,c=Math.ceil(this.config.items.length/this.config.postLimit),d=this.config.curPage;if(b.empty(),!(c<=1)){var e,f;1!==d&&b.prepend('<a href="#" class="'+this.config.previousButtonClass+'" data-page-num="'+(d-1)+'">'+this.config.previousButtonLabel+"</a>");var g=5|this.config.pagesToShow,h=g-1,i=Math.floor(h/2),j=Math.ceil(h/2),k=Math.max(d-i,1),l=d+j;k<=i&&(l=k+h),l>c&&(k=Math.max(c-h,1),l=c);var m='<a href="javascript:void(0);" class="dots">…</a>',n=a('<div style="display: none;"></div>'),o=a('<div style="display: none;"></div>');for(e=f=1;1<=c?f<=c:f>=c;e=1<=c?++f:--f)e<k&&1!=e?n.append('<a href="#" class="'+this.config.pagerClass+'" data-page-num="'+ +e+'">'+e+"</a>"):(e==k&&n.children().length&&b.append(n).append(a(m)),e>l&&e!=c?o.append('<a href="#" class="'+this.config.pagerClass+'" data-page-num="'+ +e+'">'+e+"</a>"):(e==c&&o.children().length&&b.append(o).append(a(m)),b.append('<a href="#" class="'+this.config.pagerClass+'" data-page-num="'+ +e+'">'+e+"</a>")));d<c&&b.append('<a href="#" class="'+this.config.nextButtonClass+'" data-page-num="'+(d+1)+'">'+this.config.nextButtonLabel+"</a>"),b.find('a[data-page-num="'+d+'"]').addClass(this.config.activeClass),this.addEvents()}},b.prototype._filterByCurPage=function(){var b=this;this.config.items.get().map(function(c,d){b._showOnCurPage(d+1)?b.showItem(a(c)):b.hideItem(a(c))})},b.prototype._showOnCurPage=function(a){return this.config.postLimit<=0||this.config.postLimit*(this.getCurPage()-1)<a&&a<=this.config.postLimit*this.getCurPage()},b.prototype._setAsActive=function(a){a.addClass("act").siblings().removeClass("act")},b}(),Bb=function(){function b(b){zb.call(this,b);var c={loadMoreButtonClass:"",loadMoreButtonLabel:"Load more"};this.config=a.extend(c,b),this.appendControls(),a("a.act",this.config.paginatorContainer).trigger("click.dtPostsPaginationFilter",{onSetup:!0})}return b.prototype=new zb,b.prototype.addEvents=function(){a("a",this.config.paginatorContainer).on("click.dtPostsPaginationFilter",{self:this},this.config.onPaginate)},b.prototype.appendControls=function(){var a=this.config.paginatorContainer,b=Math.ceil(this.config.items.length/this.config.postLimit),c=this.config.curPage;a.empty(),b<=1||(c<b?a.append('<a href="#" class="'+this.config.loadMoreButtonClass+'"><span class="stick"></span><span class="button-caption">'+this.config.loadMoreButtonLabel+"</span></a>").css("display","flex"):a.css("display","none"),this.addEvents())},b.prototype._filterByCurPage=function(){var b=this,c=b.getCurPage()*b.config.postLimit;this.config.items.get().map(function(d,e){e<c?b.showItem(a(d)):b.hideItem(a(d))})},b}(),Cb=function(){function b(b){var c={onCategoryFilter:function(){},onOrderFilter:function(){},onOrderByFilter:function(){},categoryContainer:null,orderContainer:null,orderByContainer:null,postsContainer:null,order:"desc",orderBy:"date",curCategory:"*"};this.config=a.extend(c,b),this.addEvents()}return b.prototype.addEvents=function(){a("a",this.config.categoryContainer).on("click.dtPostsCategoryFilter",{self:this},this.config.onCategoryFilter),a("a",this.config.orderContainer).on("click.dtPostsOrderFilter",{self:this},this.config.onOrderFilter),a("a",this.config.orderByContainer).on("click.dtPostsOrderByFilter",{self:this},this.config.onOrderByFilter)},b.prototype.setOrder=function(a){this.config.order=a},b.prototype.setOrderBy=function(a){this.config.orderBy=a},b.prototype.setCurCategory=function(a){this.config.curCategory=a},b.prototype.getFilteredItems=function(){return a(this.config.postsContainer.isotope("getFilteredItemElements"))},b.prototype.getItems=function(){return a(this.config.postsContainer.isotope("getItemElements"))},b.prototype.layout=function(){this.config.postsContainer.isotope("layout")},b.prototype.scrollToTopOfContainer=function(b,c){var d=this.config.postsContainer.parent();a("html, body").animate({scrollTop:d.offset().top-a("#phantom").height()-50},400,b?b.bind(c|this):void 0)},b.prototype._filterPosts=function(){this.config.postsContainer.isotope({filter:this.config.curCategory,sortAscending:"asc"==this.config.order,sortBy:this.config.orderBy})},b.prototype._setAsActive=function(a){a.addClass("act").siblings().removeClass("act")},b}();(function(){function b(a){Cb.call(this,a),this.items=this.config.postsContainer.find(".wf-cell"),this.filteredItems=this.items}return b.prototype=new Cb,b.prototype.getFilteredItems=function(){return this.filteredItems},b.prototype.getItems=function(){return this.items},b.prototype.layout=function(){},b.prototype._filterPosts=function(){this.items.hide(),this.filteredItems=this._sortItems(this.items.filter(this.config.curCategory)),this.filteredItems.detach().prependTo(this.config.postsContainer),this.filteredItems.show()},b.prototype._sortItems=function(b){var c=this.config.orderBy,d=this.config.order,e=a([]);return e.$nodesCache=a([]),b.each(function(){var b=a(this);e.push({node:this,$node:b,name:b.attr("data-name"),date:new Date(b.attr("data-date"))})}),"date"===c&&"desc"===d?e.sort(function(a,b){return b.date-a.date}):"date"===c&&"asc"===d?e.sort(function(a,b){return a.date-b.date}):"name"===c&&"desc"===d?e.sort(function(a,b){var c=a.name.toLowerCase(),d=b.name.toLowerCase();return c>d?-1:c<d?1:0}):"name"===c&&"asc"===d&&e.sort(function(a,b){var c=a.name.toLowerCase(),d=b.name.toLowerCase();return c<d?-1:c>d?1:0}),e.each(function(){e.$nodesCache.push(this.node)}),e.$nodesCache},b})();a(".dt-shortcode.with-isotope").each(function(){var b=a(this),c=b.find(".iso-grid, .iso-container"),d={postsContainer:c,categoryContainer:b.find(".filter-categories"),paginatorContainer:b.find(".iso-paginator")};if(c.hasClass("dt-isotope")){var e=new xb;a.extend(d,{orderByContainer:b.find(".filter-extras .filter-by"),orderContainer:b.find(".filter-extras .filter-sorting"),isPhone:dtGlobals.isPhone})}else var e=new yb;e.init(d)}),a(".blog-shortcode.mode-masonry.jquery-filter, .blog-shortcode.mode-grid.jquery-filter").each(function(){function b(){if(c.hasClass("lazy-loading-mode")){var a=c.find(".button-load-more").offset();a&&q.scrollTop()>(a.top-q.height())/2&&c.find(".button-load-more").trigger("click")}}var c=a(this),d=c.find(".iso-grid, .iso-container"),e={order:c.find(".filter-extras .filter-sorting a.act").attr("data-sort"),orderBy:c.find(".filter-extras .filter-by a.act").attr("data-by"),curCategory:c.find(".filter-categories a.act").attr("data-filter"),postsContainer:d,categoryContainer:c.find(".filter-categories"),orderByContainer:c.find(".filter-extras .filter-by"),orderContainer:c.find(".filter-extras .filter-sorting"),onCategoryFilter:function(c){c.preventDefault();var d=a(this),e=c.data.self;e.config.postsContainer.resetEffects(),e._setAsActive(d),e.setCurCategory(d.attr("data-filter")),e._filterPosts(),g.hideItem(e.getItems()),g.reset(e.getFilteredItems()),e.layout(),e.config.postsContainer.IsoLayzrInitialisation(),b(),k()},onOrderFilter:function(c){c.preventDefault();var d=a(this),e=c.data.self;e.config.postsContainer.resetEffects(),e._setAsActive(d),e.setOrder(d.attr("data-sort")),e._filterPosts(),g.hideItem(e.getItems()),g.reset(e.getFilteredItems()),e.layout(),e.config.postsContainer.IsoLayzrInitialisation(),b(),k()},onOrderByFilter:function(c){c.preventDefault();var d=a(this),e=c.data.self;e.config.postsContainer.resetEffects(),e._setAsActive(d),e.setOrderBy(d.attr("data-by")),e._filterPosts(),g.hideItem(e.getItems()),g.reset(e.getFilteredItems()),e.layout(),e.config.postsContainer.IsoLayzrInitialisation(),b(),k()}},f=new Cb(e);switch(c.attr("data-pagination-mode")){case"load-more":var g=new Bb({loadMoreButtonClass:"act button-load-more",loadMoreButtonLabel:"Load more",postLimit:c.attr("data-post-limit"),curPage:0,items:f.getFilteredItems(),paginatorContainer:c.find(".paginator"),onPaginate:function(a,b){a.preventDefault();var c=a.data.self;c.setCurPage(c.getCurPage()+1),c._filterByCurPage(),f.layout(),b||c.appendControls()}});break;case"pages":var g=new Ab({previousButtonClass:"nav-prev",previousButtonLabel:'<i class="fa fa-long-arrow-left" aria-hidden="true"></i>',nextButtonClass:"nav-next",nextButtonLabel:'<i class="fa fa-long-arrow-right" aria-hidden="true"></i>',postLimit:c.attr("data-post-limit"),curPage:1,pagesToShow:c.hasClass("show-all-pages")?999:5,items:f.getFilteredItems(),paginatorContainer:c.find(".paginator"),onPaginate:function(b,c){b.preventDefault();var d=a(this),e=b.data.self;e._setAsActive(d),e.setCurPage(d.attr("data-page-num")),e._filterByCurPage(),f.layout(),c||(e.appendControls(),f.scrollToTopOfContainer())}});break;default:var g=new zb}q.on("scroll",function(){b()}),b()})});