!function(t,e){"object"==typeof module&&module.exports?module.exports=e():t.EvEmitter=e()}("undefined"!=typeof window?window:this,(function(){function t(){}let e=t.prototype;return e.on=function(t,e){if(!t||!e)return this;let i=this._events=this._events||{},s=i[t]=i[t]||[];return s.includes(e)||s.push(e),this},e.once=function(t,e){if(!t||!e)return this;this.on(t,e);let i=this._onceEvents=this._onceEvents||{};return(i[t]=i[t]||{})[e]=!0,this},e.off=function(t,e){let i=this._events&&this._events[t];if(!i||!i.length)return this;let s=i.indexOf(e);return-1!=s&&i.splice(s,1),this},e.emitEvent=function(t,e){let i=this._events&&this._events[t];if(!i||!i.length)return this;i=i.slice(0),e=e||[];let s=this._onceEvents&&this._onceEvents[t];for(let n of i){s&&s[n]&&(this.off(t,n),delete s[n]),n.apply(this,e)}return this},e.allOff=function(){return delete this._events,delete this._onceEvents,this},t})),
function(t,e){"object"==typeof module&&module.exports?module.exports=e(t,require("ev-emitter")):t.imagesLoaded=e(t,t.EvEmitter)}("undefined"!=typeof window?window:this,(function(t,e){let i=t.jQuery,s=t.console;function n(t,e,o){if(!(this instanceof n))return new n(t,e,o);let r=t;var h;("string"==typeof t&&(r=document.querySelectorAll(t)),r)?(this.elements=(h=r,Array.isArray(h)?h:"object"==typeof h&&"number"==typeof h.length?[...h]:[h]),this.options={},"function"==typeof e?o=e:Object.assign(this.options,e),o&&this.on("always",o),this.getImages(),i&&(this.jqDeferred=new i.Deferred),setTimeout(this.check.bind(this))):s.error(`Bad element for imagesLoaded ${r||t}`)}n.prototype=Object.create(e.prototype),n.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)};const o=[1,9,11];n.prototype.addElementImages=function(t){"IMG"===t.nodeName&&this.addImage(t),!0===this.options.background&&this.addElementBackgroundImages(t);let{nodeType:e}=t;if(!e||!o.includes(e))return;let i=t.querySelectorAll("img");for(let t of i)this.addImage(t);if("string"==typeof this.options.background){let e=t.querySelectorAll(this.options.background);for(let t of e)this.addElementBackgroundImages(t)}};const r=/url\((['"])?(.*?)\1\)/gi;function h(t){this.img=t}function d(t,e){this.url=t,this.element=e,this.img=new Image}return n.prototype.addElementBackgroundImages=function(t){let e=getComputedStyle(t);if(!e)return;let i=r.exec(e.backgroundImage);for(;null!==i;){let s=i&&i[2];s&&this.addBackground(s,t),i=r.exec(e.backgroundImage)}},n.prototype.addImage=function(t){let e=new h(t);this.images.push(e)},n.prototype.addBackground=function(t,e){let i=new d(t,e);this.images.push(i)},n.prototype.check=function(){if(this.progressedCount=0,this.hasAnyBroken=!1,!this.images.length)return void this.complete();let t=(t,e,i)=>{setTimeout((()=>{this.progress(t,e,i)}))};this.images.forEach((function(e){e.once("progress",t),e.check()}))},n.prototype.progress=function(t,e,i){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!t.isLoaded,this.emitEvent("progress",[this,t,e]),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,t),this.progressedCount===this.images.length&&this.complete(),this.options.debug&&s&&s.log(`progress: ${i}`,t,e)},n.prototype.complete=function(){let t=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emitEvent(t,[this]),this.emitEvent("always",[this]),this.jqDeferred){let t=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[t](this)}},h.prototype=Object.create(e.prototype),h.prototype.check=function(){this.getIsImageComplete()?this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image,this.img.crossOrigin&&(this.proxyImage.crossOrigin=this.img.crossOrigin),this.proxyImage.addEventListener("load",this),this.proxyImage.addEventListener("error",this),this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.proxyImage.src=this.img.currentSrc||this.img.src)},h.prototype.getIsImageComplete=function(){return this.img.complete&&this.img.naturalWidth},h.prototype.confirm=function(t,e){this.isLoaded=t;let{parentNode:i}=this.img,s="PICTURE"===i.nodeName?i:this.img;this.emitEvent("progress",[this,s,e])},h.prototype.handleEvent=function(t){let e="on"+t.type;this[e]&&this[e](t)},h.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},h.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},h.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this),this.proxyImage.removeEventListener("error",this),this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},d.prototype=Object.create(h.prototype),d.prototype.check=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.img.src=this.url,this.getIsImageComplete()&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},d.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},d.prototype.confirm=function(t,e){this.isLoaded=t,this.emitEvent("progress",[this,this.element,e])},n.makeJQueryPlugin=function(e){(e=e||t.jQuery)&&(i=e,i.fn.imagesLoaded=function(t,e){return new n(this,t,e).jqDeferred.promise(i(this))})},n.makeJQueryPlugin(),n}));
function vlog_playwire(){Bolt.playMedia("vlog_playwire"),$(document).trigger("playwire-ready")}window.Modernizr=function(t,d,h){function L(t){a.cssText=t}function p(t,e){return typeof t===e}function u(t,e){for(var i in t){i=t[i];if(!~(""+i).indexOf("-")&&a[i]!==h)return"pfx"!=e||i}return!1}function o(t,e,i){var o=t.charAt(0).toUpperCase()+t.slice(1),s=(t+" "+m.join(o+" ")+o).split(" ");if(p(e,"string")||void 0===e)return u(s,e);var n,a=s=(t+" "+v.join(o+" ")+o).split(" "),r=e,l=i;for(n in a){var c=r[a[n]];if(c!==h)return!1===l?a[n]:p(c,"function")?c.bind(l||r):c}return!1}function i(t,e,i,o){var s,n,a,r=d.createElement("div"),l=d.body,c=l||d.createElement("body");if(parseInt(i,10))for(;i--;)(n=d.createElement("div")).id=o?o[i]:f+(i+1),r.appendChild(n);return s=["&#173;",'<style id="s',f,'">',t,"</style>"].join(""),r.id=f,(l?r:c).innerHTML+=s,c.appendChild(r),l||(c.style.background="",c.style.overflow="hidden",a=g.style.overflow,g.style.overflow="hidden",g.appendChild(c)),s=e(r,t),l?r.parentNode.removeChild(r):(c.parentNode.removeChild(c),g.style.overflow=a),!!s}var e,s,n={},g=d.documentElement,f="modernizr",a=d.createElement(f).style,r=" -webkit- -moz- -o- -ms- ".split(" "),l="Webkit Moz O ms",m=l.split(" "),v=l.toLowerCase().split(" "),c={},w=[],y=w.slice,_={}.hasOwnProperty,C=void 0!==_&&void 0!==_.call?function(t,e){return _.call(t,e)}:function(t,e){return e in t&&void 0===t.constructor.prototype[e]};for(s in Function.prototype.bind||(Function.prototype.bind=function(i){var o=this;if("function"!=typeof o)throw new TypeError;var s=y.call(arguments,1),n=function(){var t,e;return this instanceof n?((t=function(){}).prototype=o.prototype,t=new t,e=o.apply(t,s.concat(y.call(arguments))),Object(e)===e?e:t):o.apply(i,s.concat(y.call(arguments)))};return n}),c.touch=function(){var e;return"ontouchstart"in t||t.DocumentTouch&&d instanceof DocumentTouch?e=!0:i(["@media (",r.join("touch-enabled),("),f,")","{#modernizr{top:9px;position:absolute}}"].join(""),function(t){e=9===t.offsetTop}),e},c.cssanimations=function(){return o("animationName")},c.csstransitions=function(){return o("transition")},c)C(c,s)&&(e=s.toLowerCase(),n[e]=c[s](),w.push((n[e]?"":"no-")+e));n.addTest=function(t,e){if("object"==typeof t)for(var i in t)C(t,i)&&n.addTest(i,t[i]);else{if(t=t.toLowerCase(),n[t]!==h)return n;e="function"==typeof e?e():e,g.className+=" "+(e?"":"no-")+t,n[t]=e}return n},L("");var l=this,b=d;function x(){var t=D.elements;return"string"==typeof t?t.split(" "):t}function k(t){var e=z[t[j]];return e||(e={},M++,t[j]=M,z[M]=e),e}function E(t,e,i){return e=e||b,$?e.createElement(t):(e=(i=i||k(e)).cache[t]?i.cache[t].cloneNode():N.test(t)?(i.cache[t]=i.createElem(t)).cloneNode():i.createElem(t)).canHaveChildren&&!A.test(t)?i.frag.appendChild(e):e}function T(t){var e,i,o,s,n,a=k(t=t||b);return!D.shivCSS||I||a.hasCSS||(a.hasCSS=(s="article,aside,figcaption,figure,footer,header,hgroup,nav,section{display:block}mark{background:#FF0;color:#000}",n=(o=t).createElement("p"),o=o.getElementsByTagName("head")[0]||o.documentElement,n.innerHTML="x<style>"+s+"</style>",!!o.insertBefore(n.lastChild,o.firstChild))),$||(e=t,(i=a).cache||(i.cache={},i.createElem=e.createElement,i.createFrag=e.createDocumentFragment,i.frag=i.createFrag()),e.createElement=function(t){return D.shivMethods?E(t,e,i):i.createElem(t)},e.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+x().join().replace(/\w+/g,function(t){return i.createElem(t),i.frag.createElement(t),'c("'+t+'")'})+");return n}")(D,i.frag)),t}var I,$,P,S=l.html5||{},A=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,N=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,j="_html5shiv",M=0,z={};try{var O=b.createElement("a");O.innerHTML="<xyz></xyz>",I="hidden"in O,$=1==O.childNodes.length||(b.createElement("a"),void 0===(P=b.createDocumentFragment()).cloneNode||void 0===P.createDocumentFragment||void 0===P.createElement)}catch(t){$=I=!0}var D={elements:S.elements||"abbr article aside audio bdi canvas data datalist details figcaption figure footer header hgroup mark meter nav output progress section summary time video",shivCSS:!1!==S.shivCSS,supportsUnknownElements:$,shivMethods:!1!==S.shivMethods,type:"default",shivDocument:T,createElement:E,createDocumentFragment:function(t,e){if(t=t||b,$)return t.createDocumentFragment();for(var i=(e=e||k(t)).frag.cloneNode(),o=0,s=x(),n=s.length;o<n;o++)i.createElement(s[o]);return i}};return l.html5=D,T(b),n._version="2.6.2",n._prefixes=r,n._domPrefixes=v,n._cssomPrefixes=m,n.testProp=function(t){return u([t])},n.testAllProps=o,n.testStyles=i,n.prefixed=function(t,e,i){return e?o(t,e,i):o(t,"pfx")},g.className=g.className.replace(/(^|\s)no-js(\s|$)/,"$1$2")+(" js "+w.join(" ")),n}(this,this.document),function(t,u){function h(t){return"[object Function]"==s.call(t)}function g(t){return"string"==typeof t}function p(){}function f(t){return!t||"loaded"==t||"complete"==t||"uninitialized"==t}function m(){var t=y.shift();_=1,t?t.t?v(function(){("c"==t.t?T.injectCss:T.injectJs)(t.s,0,t.a,t.x,t.e,1)},0):(t(),m()):_=0}function e(t,e,i,o,s){return _=0,e=e||"j",g(t)?(a="c"==e?k:x,r=t,e=e,l=this.i++,i=i,o=o,s=(s=s)||T.errorTimeout,c=u.createElement(a),h=d=0,p={t:e,s:r,e:i,a:o,x:s},1===E[r]&&(h=1,E[r]=[]),"object"==a?c.data=r:(c.src=r,c.type=a),c.width=c.height="0",c.onerror=c.onload=c.onreadystatechange=function(){n.call(this,h)},y.splice(l,0,p),"img"!=a&&(h||2===E[r]?(b.insertBefore(c,C?null:w),v(n,s)):E[r].push(c))):(y.splice(this.i++,0,t),1==y.length&&m()),this;function n(t){if(!d&&f(c.readyState)&&(p.r=d=1,_||m(),c.onload=c.onreadystatechange=null,t))for(var e in"img"!=a&&v(function(){b.removeChild(c)},50),E[r])E[r].hasOwnProperty(e)&&E[r][e].onload()}var a,r,l,c,d,h,p}function r(){var t=T;return t.loader={load:e,i:0},t}var i,o=u.documentElement,v=t.setTimeout,w=u.getElementsByTagName("script")[0],s={}.toString,y=[],_=0,n="MozAppearance"in o.style,C=n&&!!u.createRange().compareNode,b=C?o:w.parentNode,o=t.opera&&"[object Opera]"==s.call(t.opera),o=!!u.attachEvent&&!o,x=n?"object":o?"script":"img",k=o?"script":x,a=Array.isArray||function(t){return"[object Array]"==s.call(t)},l=[],E={},c={timeout:function(t,e){return e.length&&(t.timeout=e[0]),t}},T=function(t){function d(t,e,i,o,s){var n=function(t){for(var e,i,t=t.split("!"),o=l.length,s=t.pop(),n=t.length,s={url:s,origUrl:s,prefixes:t},a=0;a<n;a++)i=t[a].split("="),(e=c[i.shift()])&&(s=e(s,i));for(a=0;a<o;a++)s=l[a](s);return s}(t),a=n.autoCallback;n.url.split(".").pop().split("?").shift(),n.bypass||(e=e&&(h(e)?e:e[t]||e[o]||e[t.split("/").pop().split("?")[0]]),n.instead?n.instead(t,e,i,o,s):(E[n.url]?n.noexec=!0:E[n.url]=1,i.load(n.url,n.forceCSS||!n.forceJS&&"css"==n.url.split(".").pop().split("?").shift()?"c":void 0,n.noexec,n.attrs,n.timeout),(h(e)||h(a))&&i.load(function(){r(),e&&e(n.origUrl,s,o),a&&a(n.origUrl,s,o),E[n.url]=2})))}function e(t,e){function i(i,t){if(i){if(g(i))d(i,r=t?r:function(){var t=[].slice.call(arguments);l.apply(this,t),c()},e,0,n);else if(Object(i)===i)for(s in o=function(){var t,e=0;for(t in i)i.hasOwnProperty(t)&&e++;return e}(),i)i.hasOwnProperty(s)&&(t||--o||(h(r)?r=function(){var t=[].slice.call(arguments);l.apply(this,t),c()}:r[s]=function(e){return function(){var t=[].slice.call(arguments);e&&e.apply(this,t),c()}}(l[s])),d(i[s],r,e,s,n))}else t||c()}var o,s,n=!!t.test,a=t.load||t.both,r=t.callback||p,l=r,c=t.complete||p;i(n?t.yep:t.nope,!!a),a&&i(a)}var i,o,s=this.yepnope.loader;if(g(t))d(t,0,s,0);else if(a(t))for(i=0;i<t.length;i++)g(o=t[i])?d(o,0,s,0):a(o)?T(o):Object(o)===o&&e(o,s);else Object(t)===t&&e(t,s)};T.addPrefix=function(t,e){c[t]=e},T.addFilter=function(t){l.push(t)},T.errorTimeout=1e4,null==u.readyState&&u.addEventListener&&(u.readyState="loading",u.addEventListener("DOMContentLoaded",i=function(){u.removeEventListener("DOMContentLoaded",i,0),u.readyState="complete"},0)),t.yepnope=r(),t.yepnope.executeStack=m,t.yepnope.injectJs=function(t,e,i,o,s,n){var a,r,l=u.createElement("script"),o=o||T.errorTimeout;for(r in l.src=t,i)l.setAttribute(r,i[r]);e=n?m:e||p,l.onreadystatechange=l.onload=function(){!a&&f(l.readyState)&&(a=1,e(),l.onload=l.onreadystatechange=null)},v(function(){a||e(a=1)},o),s?l.onload():w.parentNode.insertBefore(l,w)},t.yepnope.injectCss=function(t,e,i,o,s,n){var a,e=n?m:e||p;for(a in(o=u.createElement("link")).href=t,o.rel="stylesheet",o.type="text/css",i)o.setAttribute(a,i[a]);s||(w.parentNode.insertBefore(o,w),v(e,0))}}(this,document),Modernizr.load=function(){yepnope.apply(window,[].slice.call(arguments,0))},function(r,e){"use strict";function o(t){e.console&&e.console.error(t)}var i=e.Modernizr;r("body"),r.DLMenu=function(t,e){this.$el=r(e),this._init(t)},r(".vlog-mob-nav li").each(function(){r(this).hasClass("menu-item-has-children")&&r(this).prepend('<a href="#" class="vlog-menu-forward"></a>')}),r.DLMenu.defaults={animationClasses:{classin:"dl-animate-in-1",classout:"dl-animate-out-1"},onLevelClick:function(t,e){return!1},onLinkClick:function(t,e){return!1}},r.DLMenu.prototype={_init:function(t){this.options=r.extend(!0,{},r.DLMenu.defaults,t),this._config();this.animEndEventName={WebkitAnimation:"webkitAnimationEnd",OAnimation:"oAnimationEnd",msAnimation:"MSAnimationEnd",animation:"animationend"}[i.prefixed("animation")]+".dlmenu",this.transEndEventName={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd",msTransition:"MSTransitionEnd",transition:"transitionend"}[i.prefixed("transition")]+".dlmenu",this.supportAnimations=i.cssanimations,this.supportTransitions=i.csstransitions,this._initEvents()},_config:function(){this.open=!1,this.$trigger=this.$el.children(".dl-trigger"),this.$menu=this.$el.children("ul.dl-menu"),this.$menuitems=this.$menu.find("li:not(.dl-back)"),this.$el.find("ul.sub-menu").prepend('<li class="dl-back"><a href="#"><i class="fa fa-angle-left"></i></a></li>'),this.$back=this.$menu.find("li.dl-back")},_initEvents:function(){var a=this;this.$trigger.on("click.dlmenu",function(){return a.open?(a._closeMenu(),r(".vlog-responsive-header").removeClass("vlog-res-open")):(a._openMenu(),r(".vlog-responsive-header").addClass("vlog-res-open"),r(".vlog-action-search").hasClass("active")&&(r(".vlog-action-search").removeClass("active"),r(".vlog-action-search").find("i").toggleClass("fv-close","fv-search")),r(".vlog-responsive-header .vlog-watch-later").hasClass("active")&&r(".vlog-responsive-header .vlog-watch-later").removeClass("active"),r(".vlog-responsive-header .vlog-listen-later").hasClass("active")&&r(".vlog-responsive-header .vlog-listen-later").removeClass("active")),!1}),this.$menuitems.on("click.dlmenu",function(t){if(r(t.target).is("a.vlog-menu-forward")){t.stopPropagation();var e,i,o=r(this),s=o.children("ul.sub-menu");if(0<s.length)return e=s.clone().css("opacity",0).insertAfter(a.$menu),i=function(){a.$menu.off(a.animEndEventName).removeClass(a.options.animationClasses.classout).addClass("dl-subview"),o.addClass("dl-subviewopen").parents(".dl-subviewopen:first").removeClass("dl-subviewopen").addClass("dl-subview"),e.remove()},setTimeout(function(){e.addClass(a.options.animationClasses.classin),a.$menu.addClass(a.options.animationClasses.classout),a.supportAnimations?a.$menu.on(a.animEndEventName,i):i.call(),a.options.onLevelClick(o,o.children("a:first").text())}),!1;a.options.onLinkClick(o,t)}else console.log("1")}),this.$back.on("click.dlmenu",function(t){function e(){a.$menu.off(a.animEndEventName).removeClass(a.options.animationClasses.classin),n.remove()}var i=r(this),o=i.parents("ul.sub-menu:first"),s=o.parent(),n=o.clone().insertAfter(a.$menu);return setTimeout(function(){n.addClass(a.options.animationClasses.classout),a.$menu.addClass(a.options.animationClasses.classin),a.supportAnimations?a.$menu.on(a.animEndEventName,e):e.call(),s.removeClass("dl-subviewopen");var t=i.parents(".dl-subview:first");t.is("li")&&t.addClass("dl-subviewopen"),t.removeClass("dl-subview")}),!1})},closeMenu:function(){this.open&&this._closeMenu()},_closeMenu:function(){function t(){e.$menu.off(e.transEndEventName),e._resetMenu()}var e=this;this.$menu.removeClass("dl-menuopen"),this.$menu.addClass("dl-menu-toggle"),this.$trigger.removeClass("dl-active"),r(".dl-trigger").find("i").toggleClass("fv-close","fv-bars"),this.supportTransitions?this.$menu.on(this.transEndEventName,t):t.call(),this.open=!1},openMenu:function(){this.open||this._openMenu()},_openMenu:function(){this.$menu.addClass("dl-menuopen dl-menu-toggle").on(this.transEndEventName,function(){r(this).removeClass("dl-menu-toggle")}),this.$trigger.addClass("dl-active"),r(".dl-trigger").find("i").toggleClass("fv-close","fv-bars"),this.open=!0},_resetMenu:function(){this.$menu.removeClass("dl-subview"),this.$menuitems.removeClass("dl-subview dl-subviewopen")}};r.fn.dlmenu=function(e){var i;return"string"==typeof e?(i=Array.prototype.slice.call(arguments,1),this.each(function(){var t=r.data(this,"dlmenu");t?r.isFunction(t[e])&&"_"!==e.charAt(0)?t[e].apply(t,i):o("no such method '"+e+"' for dlmenu instance"):o("cannot call methods on dlmenu prior to initialization; attempted to call method '"+e+"'")})):this.each(function(){var t=r.data(this,"dlmenu");t?t._init():r.data(this,"dlmenu",new r.DLMenu(e,this))}),this}}(jQuery,window),function(n){"use strict";n.fn.fitVids=function(t){var e,i,s={customSelector:null,ignore:null};return document.getElementById("fit-vids-style")||(e=document.head||document.getElementsByTagName("head")[0],(i=document.createElement("div")).innerHTML='<p>x</p><style id="fit-vids-style">.fluid-width-video-wrapper{width:100%;position:relative;padding:0;}.fluid-width-video-wrapper iframe,.fluid-width-video-wrapper object,.fluid-width-video-wrapper embed {position:absolute;top:0;left:0;width:100%;height:100%;}</style>',e.appendChild(i.childNodes[1])),t&&n.extend(s,t),this.each(function(){var t=['iframe[src*="player.vimeo.com"]','iframe[src*="youtube.com"]','iframe[src*="youtube-nocookie.com"]','iframe[src*="kickstarter.com"][src*="video.html"]',"object","embed"],o=(s.customSelector&&t.push(s.customSelector),".fitvidsignore"),t=(s.ignore&&(o=o+", "+s.ignore),n(this).find(t.join(",")));(t=(t=t.not("object object")).not(o)).each(function(){var t,e,i=n(this);0<i.parents(o).length||"embed"===this.tagName.toLowerCase()&&i.parent("object").length||i.parent(".fluid-width-video-wrapper").length||(i.css("height")||i.css("width")||!isNaN(i.attr("height"))&&!isNaN(i.attr("width"))||(i.attr("height",9),i.attr("width",16)),t=("object"===this.tagName.toLowerCase()||i.attr("height")&&!isNaN(parseInt(i.attr("height"),10))?parseInt(i.attr("height"),10):i.height())/(isNaN(parseInt(i.attr("width"),10))?i.width():parseInt(i.attr("width"),10)),i.attr("name")||(e="fitvid"+n.fn.fitVids._count,i.attr("name",e),n.fn.fitVids._count++),i.wrap('<div class="fluid-width-video-wrapper"></div>').parent(".fluid-width-video-wrapper").css("padding-top",100*t+"%"),i.removeAttr("height").removeAttr("width"))})})},n.fn.fitVids._count=0}(window.jQuery||window.Zepto),function(t){"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof exports?t(require("jquery")):t(window.jQuery||window.Zepto)}(function(c){function t(){}function d(t,e){g.ev.on("mfp"+t+b,e)}function h(t,e,i,o){var s=document.createElement("div");return s.className="mfp-"+t,i&&(s.innerHTML=i),o?e&&e.appendChild(s):(s=c(s),e&&s.appendTo(e)),s}function p(t,e){g.ev.triggerHandler("mfp"+t,e),g.st.callbacks&&(t=t.charAt(0).toLowerCase()+t.slice(1),g.st.callbacks[t]&&g.st.callbacks[t].apply(g,c.isArray(e)?e:[e]))}function u(t){return t===A&&g.currTemplate.closeBtn||(g.currTemplate.closeBtn=c(g.st.closeMarkup.replace("%title%",g.st.tClose)),A=t),g.currTemplate.closeBtn}function n(){c.magnificPopup.instance||((g=new t).init(),c.magnificPopup.instance=g)}function a(){w&&(v.after(w.addClass(l)).detach(),w=null)}function s(){e&&c(document.body).removeClass(e)}function L(){s(),g.req&&g.req.abort()}var g,o,f,r,m,A,l,v,w,e,y="Close",N="BeforeClose",_="MarkupParse",C="Open",b=".mfp",x="mfp-ready",B="mfp-removing",k="mfp-prevent-close",E=!!window.jQuery,T=c(window),i=(c.magnificPopup={instance:null,proto:t.prototype={constructor:t,init:function(){var t=navigator.appVersion;g.isIE7=-1!==t.indexOf("MSIE 7."),g.isIE8=-1!==t.indexOf("MSIE 8."),g.isLowIE=g.isIE7||g.isIE8,g.isAndroid=/android/gi.test(t),g.isIOS=/iphone|ipad|ipod/gi.test(t),g.supportsTransition=function(){var t=document.createElement("p").style,e=["ms","O","Moz","Webkit"];if(void 0!==t.transition)return!0;for(;e.length;)if(e.pop()+"Transition"in t)return!0;return!1}(),g.probablyMobile=g.isAndroid||g.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent),f=c(document),g.popupsCache={}},open:function(t){if(!1===t.isObj){g.items=t.items.toArray(),g.index=0;for(var e,i=t.items,o=0;o<i.length;o++)if((e=(e=i[o]).parsed?e.el[0]:e)===t.el[0]){g.index=o;break}}else g.items=c.isArray(t.items)?t.items:[t.items],g.index=t.index||0;if(!g.isOpen){g.types=[],m="",t.mainEl&&t.mainEl.length?g.ev=t.mainEl.eq(0):g.ev=f,t.key?(g.popupsCache[t.key]||(g.popupsCache[t.key]={}),g.currTemplate=g.popupsCache[t.key]):g.currTemplate={},g.st=c.extend(!0,{},c.magnificPopup.defaults,t),g.fixedContentPos="auto"===g.st.fixedContentPos?!g.probablyMobile:g.st.fixedContentPos,g.st.modal&&(g.st.closeOnContentClick=!1,g.st.closeOnBgClick=!1,g.st.showCloseBtn=!1,g.st.enableEscapeKey=!1),g.bgOverlay||(g.bgOverlay=h("bg").on("click"+b,function(){g.close()}),g.wrap=h("wrap").attr("tabindex",-1).on("click"+b,function(t){g._checkIfClose(t.target)&&g.close()}),g.container=h("container",g.wrap)),g.contentContainer=h("content"),g.st.preloader&&(g.preloader=h("preloader",g.container,g.st.tLoading));var s=c.magnificPopup.modules;for(o=0;o<s.length;o++){var n=(n=s[o]).charAt(0).toUpperCase()+n.slice(1);g["init"+n].call(g)}p("BeforeOpen"),g.st.showCloseBtn&&(g.st.closeBtnInside?(d(_,function(t,e,i,o){i.close_replaceWith=u(o.type)}),m+=" mfp-close-btn-in"):g.wrap.append(u())),g.st.alignTop&&(m+=" mfp-align-top"),g.fixedContentPos?g.wrap.css({overflow:g.st.overflowY,overflowX:"hidden",overflowY:g.st.overflowY}):g.wrap.css({top:T.scrollTop(),position:"absolute"}),!1!==g.st.fixedBgPos&&("auto"!==g.st.fixedBgPos||g.fixedContentPos)||g.bgOverlay.css({height:f.height(),position:"absolute"}),g.st.enableEscapeKey&&f.on("keyup"+b,function(t){27===t.keyCode&&g.close()}),T.on("resize"+b,function(){g.updateSize()}),g.st.closeOnContentClick||(m+=" mfp-auto-cursor"),m&&g.wrap.addClass(m);var a=g.wH=T.height(),r={},l=(g.fixedContentPos&&g._hasScrollBar(a)&&(l=g._getScrollbarSize())&&(r.marginRight=l),g.fixedContentPos&&(g.isIE7?c("body, html").css("overflow","hidden"):r.overflow="hidden"),g.st.mainClass);return g.isIE7&&(l+=" mfp-ie7"),l&&g._addClassToMFP(l),g.updateItemHTML(),p("BuildControls"),c("html").css(r),g.bgOverlay.add(g.wrap).prependTo(g.st.prependTo||c(document.body)),g._lastFocusedEl=document.activeElement,setTimeout(function(){g.content?(g._addClassToMFP(x),g._setFocus()):g.bgOverlay.addClass(x),f.on("focusin"+b,g._onFocusIn)},16),g.isOpen=!0,g.updateSize(a),p(C),t}g.updateItemHTML()},close:function(){g.isOpen&&(p(N),g.isOpen=!1,g.st.removalDelay&&!g.isLowIE&&g.supportsTransition?(g._addClassToMFP(B),setTimeout(function(){g._close()},g.st.removalDelay)):g._close())},_close:function(){p(y);var t=B+" "+x+" ";g.bgOverlay.detach(),g.wrap.detach(),g.container.empty(),g.st.mainClass&&(t+=g.st.mainClass+" "),g._removeClassFromMFP(t),g.fixedContentPos&&(t={marginRight:""},g.isIE7?c("body, html").css("overflow",""):t.overflow="",c("html").css(t)),f.off("keyup.mfp focusin"+b),g.ev.off(b),g.wrap.attr("class","mfp-wrap").removeAttr("style"),g.bgOverlay.attr("class","mfp-bg"),g.container.attr("class","mfp-container"),!g.st.showCloseBtn||g.st.closeBtnInside&&!0!==g.currTemplate[g.currItem.type]||g.currTemplate.closeBtn&&g.currTemplate.closeBtn.detach(),g._lastFocusedEl&&c(g._lastFocusedEl).focus(),g.currItem=null,g.content=null,g.currTemplate=null,g.prevHeight=0,p("AfterClose")},updateSize:function(t){var e;g.isIOS?(e=document.documentElement.clientWidth/window.innerWidth,e=window.innerHeight*e,g.wrap.css("height",e),g.wH=e):g.wH=t||T.height(),g.fixedContentPos||g.wrap.css("height",g.wH),p("Resize")},updateItemHTML:function(){var t=g.items[g.index],e=(g.contentContainer.detach(),g.content&&g.content.detach(),(t=t.parsed?t:g.parseEl(g.index)).type),i=(p("BeforeChange",[g.currItem?g.currItem.type:"",e]),g.currItem=t,g.currTemplate[e]||(i=!!g.st[e]&&g.st[e].markup,p("FirstMarkupParse",i),g.currTemplate[e]=!i||c(i)),r&&r!==t.type&&g.container.removeClass("mfp-"+r+"-holder"),g["get"+e.charAt(0).toUpperCase()+e.slice(1)](t,g.currTemplate[e]));g.appendContent(i,e),t.preloaded=!0,p("Change",t),r=t.type,g.container.prepend(g.contentContainer),p("AfterChange")},appendContent:function(t,e){(g.content=t)?g.st.showCloseBtn&&g.st.closeBtnInside&&!0===g.currTemplate[e]?g.content.find(".mfp-close").length||g.content.append(u()):g.content=t:g.content="",p("BeforeAppend"),g.container.addClass("mfp-"+e+"-holder"),g.contentContainer.append(g.content)},parseEl:function(t){var e,i=g.items[t];if((i=i.tagName?{el:c(i)}:(e=i.type,{data:i,src:i.src})).el){for(var o=g.types,s=0;s<o.length;s++)if(i.el.hasClass("mfp-"+o[s])){e=o[s];break}i.src=i.el.attr("data-mfp-src"),i.src||(i.src=i.el.attr("href"))}return i.type=e||g.st.type||"inline",i.index=t,i.parsed=!0,g.items[t]=i,p("ElementParse",i),g.items[t]},addGroup:function(e,i){function t(t){t.mfpEl=this,g._openClick(t,e,i)}var o="click.magnificPopup";(i=i||{}).mainEl=e,i.items?(i.isObj=!0,e.off(o).on(o,t)):(i.isObj=!1,i.delegate?e.off(o).on(o,i.delegate,t):(i.items=e).off(o).on(o,t))},_openClick:function(t,e,i){if((void 0!==i.midClick?i:c.magnificPopup.defaults).midClick||2!==t.which&&!t.ctrlKey&&!t.metaKey){var o=(void 0!==i.disableOn?i:c.magnificPopup.defaults).disableOn;if(o)if(c.isFunction(o)){if(!o.call(g))return!0}else if(T.width()<o)return!0;t.type&&(t.preventDefault(),g.isOpen&&t.stopPropagation()),i.el=c(t.mfpEl),i.delegate&&(i.items=e.find(i.delegate)),g.open(i)}},updateStatus:function(t,e){var i;g.preloader&&(o!==t&&g.container.removeClass("mfp-s-"+o),i={status:t,text:e=e||"loading"!==t?e:g.st.tLoading},p("UpdateStatus",i),t=i.status,g.preloader.html(e=i.text),g.preloader.find("a").on("click",function(t){t.stopImmediatePropagation()}),g.container.addClass("mfp-s-"+t),o=t)},_checkIfClose:function(t){if(!c(t).hasClass(k)){var e=g.st.closeOnContentClick,i=g.st.closeOnBgClick;if(e&&i)return!0;if(!g.content||c(t).hasClass("mfp-close")||g.preloader&&t===g.preloader[0])return!0;if(t===g.content[0]||c.contains(g.content[0],t)){if(e)return!0}else if(i&&c.contains(document,t))return!0;return!1}},_addClassToMFP:function(t){g.bgOverlay.addClass(t),g.wrap.addClass(t)},_removeClassFromMFP:function(t){this.bgOverlay.removeClass(t),g.wrap.removeClass(t)},_hasScrollBar:function(t){return(g.isIE7?f.height():document.body.scrollHeight)>(t||T.height())},_setFocus:function(){(g.st.focus?g.content.find(g.st.focus).eq(0):g.wrap).focus()},_onFocusIn:function(t){if(t.target!==g.wrap[0]&&!c.contains(g.wrap[0],t.target))return g._setFocus(),!1},_parseMarkup:function(s,t,e){var n;e.data&&(t=c.extend(e.data,t)),p(_,[s,t,e]),c.each(t,function(t,e){if(void 0===e||!1===e)return!0;var i,o;1<(n=t.split("_")).length?0<(i=s.find(b+"-"+n[0])).length&&("replaceWith"===(o=n[1])?i[0]!==e[0]&&i.replaceWith(e):"img"===o?i.is("img")?i.attr("src",e):i.replaceWith('<img src="'+e+'" class="'+i.attr("class")+'" />'):i.attr(n[1],e)):s.find(b+"-"+t).html(e)})},_getScrollbarSize:function(){var t;return void 0===g.scrollbarSize&&((t=document.createElement("div")).style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;",document.body.appendChild(t),g.scrollbarSize=t.offsetWidth-t.clientWidth,document.body.removeChild(t)),g.scrollbarSize}},modules:[],open:function(t,e){return n(),(t=t?c.extend(!0,{},t):{}).isObj=!0,t.index=e||0,this.instance.open(t)},close:function(){return c.magnificPopup.instance&&c.magnificPopup.instance.close()},registerModule:function(t,e){e.options&&(c.magnificPopup.defaults[t]=e.options),c.extend(this.proto,e.proto),this.modules.push(t)},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">&times;</button>',tClose:"Close (Esc)",tLoading:"Loading..."}},c.fn.magnificPopup=function(t){n();var e,i,o,s=c(this);return"string"==typeof t?"open"===t?(e=E?s.data("magnificPopup"):s[0].magnificPopup,i=parseInt(arguments[1],10)||0,o=e.items?e.items[i]:(o=s,(o=e.delegate?o.find(e.delegate):o).eq(i)),g._openClick({mfpEl:o},s,e)):g.isOpen&&g[t].apply(g,Array.prototype.slice.call(arguments,1)):(t=c.extend(!0,{},t),E?s.data("magnificPopup",t):s[0].magnificPopup=t,g.addGroup(s,t)),s},"inline"),I=(c.magnificPopup.registerModule(i,{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){g.types.push(i),d(y+"."+i,function(){a()})},getInline:function(t,e){var i,o,s;return a(),t.src?(i=g.st.inline,(o=c(t.src)).length?((s=o[0].parentNode)&&s.tagName&&(v||(l=i.hiddenClass,v=h(l),l="mfp-"+l),w=o.after(v).detach().removeClass(l)),g.updateStatus("ready")):(g.updateStatus("error",i.tNotFound),o=c("<div>")),t.inlineElement=o):(g.updateStatus("ready"),g._parseMarkup(e,{},t),e)}}}),"ajax");c.magnificPopup.registerModule(I,{options:{settings:null,cursor:"mfp-ajax-cur",tError:'<a href="%url%">The content</a> could not be loaded.'},proto:{initAjax:function(){g.types.push(I),e=g.st.ajax.cursor,d(y+"."+I,L),d("BeforeChange."+I,L)},getAjax:function(o){e&&c(document.body).addClass(e),g.updateStatus("loading");var t=c.extend({url:o.src,success:function(t,e,i){t={data:t,xhr:i};p("ParseAjax",t),g.appendContent(c(t.data),I),o.finished=!0,s(),g._setFocus(),setTimeout(function(){g.wrap.addClass(x)},16),g.updateStatus("ready"),p("AjaxContentAdded")},error:function(){s(),o.finished=o.loadError=!0,g.updateStatus("error",g.st.ajax.tError.replace("%url%",o.src))}},g.st.ajax.settings);return g.req=c.ajax(t),""}}});var $;c.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 t=g.st.image,e=".image";g.types.push("image"),d(C+e,function(){"image"===g.currItem.type&&t.cursor&&c(document.body).addClass(t.cursor)}),d(y+e,function(){t.cursor&&c(document.body).removeClass(t.cursor),T.off("resize"+b)}),d("Resize"+e,g.resizeImage),g.isLowIE&&d("AfterChange",g.resizeImage)},resizeImage:function(){var t,e=g.currItem;e&&e.img&&g.st.image.verticalFit&&(t=0,g.isLowIE&&(t=parseInt(e.img.css("padding-top"),10)+parseInt(e.img.css("padding-bottom"),10)),e.img.css("max-height",g.wH-t))},_onImageHasSize:function(t){t.img&&(t.hasSize=!0,$&&clearInterval($),t.isCheckingImgSize=!1,p("ImageHasSize",t),t.imgHidden&&(g.content&&g.content.removeClass("mfp-loading"),t.imgHidden=!1))},findImageSize:function(e){function i(t){$&&clearInterval($),$=setInterval(function(){0<s.naturalWidth?g._onImageHasSize(e):(200<o&&clearInterval($),3===++o?i(10):40===o?i(50):100===o&&i(500))},t)}var o=0,s=e.img[0];i(1)},getImage:function(t,e){function i(){t&&(t.img[0].complete?(t.img.off(".mfploader"),t===g.currItem&&(g._onImageHasSize(t),g.updateStatus("ready")),t.hasSize=!0,t.loaded=!0,p("ImageLoadComplete")):++n<200?setTimeout(i,100):o())}function o(){t&&(t.img.off(".mfploader"),t===g.currItem&&(g._onImageHasSize(t),g.updateStatus("error",a.tError.replace("%url%",t.src))),t.hasSize=!0,t.loaded=!0,t.loadError=!0)}var s,n=0,a=g.st.image,r=e.find(".mfp-img");return r.length&&((s=document.createElement("img")).className="mfp-img",t.el&&t.el.find("img").length&&(s.alt=t.el.find("img").attr("alt")),t.img=c(s).on("load.mfploader",i).on("error.mfploader",o),s.src=t.src,r.is("img")&&(t.img=t.img.clone()),0<(s=t.img[0]).naturalWidth?t.hasSize=!0:s.width||(t.hasSize=!1)),g._parseMarkup(e,{title:function(t){if(t.data&&void 0!==t.data.title)return t.data.title;var e=g.st.image.titleSrc;if(e){if(c.isFunction(e))return e.call(g,t);if(t.el)return t.el.attr(e)||""}return""}(t),img_replaceWith:t.img},t),g.resizeImage(),t.hasSize?($&&clearInterval($),t.loadError?(e.addClass("mfp-loading"),g.updateStatus("error",a.tError.replace("%url%",t.src))):(e.removeClass("mfp-loading"),g.updateStatus("ready"))):(g.updateStatus("loading"),t.loading=!0,t.hasSize||(t.imgHidden=!0,e.addClass("mfp-loading"),g.findImageSize(t))),e}}});function P(t){var e;g.currTemplate[O]&&(e=g.currTemplate[O].find("iframe")).length&&(t||(e[0].src="//about:blank"),g.isIE8&&e.css("display",t?"block":"none"))}function S(t){var e=g.items.length;return e-1<t?t-e:t<0?e+t:t}function F(t,e,i){return t.replace(/%curr%/gi,e+1).replace(/%total%/gi,i)}c.magnificPopup.registerModule("zoom",{options:{enabled:!1,easing:"ease-in-out",duration:300,opener:function(t){return t.is("img")?t:t.find("img")}},proto:{initZoom:function(){var t,e,i,o,s,n,a=g.st.zoom,r=".zoom";a.enabled&&g.supportsTransition&&(e=a.duration,i=function(t){var t=t.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),e="all "+a.duration/1e3+"s "+a.easing,i={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},o="transition";return i["-webkit-"+o]=i["-moz-"+o]=i["-o-"+o]=i[o]=e,t.css(i),t},o=function(){g.content.css("visibility","visible")},d("BuildControls"+r,function(){g._allowZoom()&&(clearTimeout(s),g.content.css("visibility","hidden"),(t=g._getItemToZoom())?((n=i(t)).css(g._getOffset()),g.wrap.append(n),s=setTimeout(function(){n.css(g._getOffset(!0)),s=setTimeout(function(){o(),setTimeout(function(){n.remove(),t=n=null,p("ZoomAnimationEnded")},16)},e)},16)):o())}),d(N+r,function(){if(g._allowZoom()){if(clearTimeout(s),g.st.removalDelay=e,!t){if(!(t=g._getItemToZoom()))return;n=i(t)}n.css(g._getOffset(!0)),g.wrap.append(n),g.content.css("visibility","hidden"),setTimeout(function(){n.css(g._getOffset())},16)}}),d(y+r,function(){g._allowZoom()&&(o(),n&&n.remove(),t=null)}))},_allowZoom:function(){return"image"===g.currItem.type},_getItemToZoom:function(){return!!g.currItem.hasSize&&g.currItem.img},_getOffset:function(t){var t=t?g.currItem.img:g.st.zoom.opener(g.currItem.el||g.currItem),e=t.offset(),i=parseInt(t.css("padding-top"),10),o=parseInt(t.css("padding-bottom"),10),t=(e.top-=c(window).scrollTop()-i,{width:t.width(),height:(E?t.innerHeight():t[0].offsetHeight)-o-i});return(j=void 0===j?void 0!==document.createElement("p").style.MozTransform:j)?t["-moz-transform"]=t.transform="translate("+e.left+"px,"+e.top+"px)":(t.left=e.left,t.top=e.top),t}}});var j,M,z,O="iframe",D=(c.magnificPopup.registerModule(O,{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(){g.types.push(O),d("BeforeChange",function(t,e,i){e!==i&&(e===O?P():i===O&&P(!0))}),d(y+"."+O,function(){P()})},getIframe:function(t,e){var i=t.src,o=g.st.iframe,s=(c.each(o.patterns,function(){if(-1<i.indexOf(this.index))return this.id&&(i="string"==typeof this.id?i.substr(i.lastIndexOf(this.id)+this.id.length,i.length):this.id.call(this,i)),i=this.src.replace("%id%",i),!1}),{});return o.srcAction&&(s[o.srcAction]=i),g._parseMarkup(e,s,t),g.updateStatus("ready"),e}}}),c.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 n=g.st.gallery,t=".mfp-gallery",o=Boolean(c.fn.mfpFastClick);if(g.direction=!0,!n||!n.enabled)return!1;m+=" mfp-gallery",d(C+t,function(){n.navigateByImgClick&&g.wrap.on("click"+t,".mfp-img",function(){if(1<g.items.length)return g.next(),!1}),f.on("keydown"+t,function(t){37===t.keyCode?g.prev():39===t.keyCode&&g.next()})}),d("UpdateStatus"+t,function(t,e){e.text&&(e.text=F(e.text,g.currItem.index,g.items.length))}),d(_+t,function(t,e,i,o){var s=g.items.length;i.counter=1<s?F(n.tCounter,o.index,s):""}),d("BuildControls"+t,function(){var t,e,i;1<g.items.length&&n.arrows&&!g.arrowLeft&&(e=n.arrowMarkup,t=g.arrowLeft=c(e.replace(/%title%/gi,n.tPrev).replace(/%dir%/gi,"left")).addClass(k),e=g.arrowRight=c(e.replace(/%title%/gi,n.tNext).replace(/%dir%/gi,"right")).addClass(k),t[i=o?"mfpFastClick":"click"](function(){g.prev()}),e[i](function(){g.next()}),g.isIE7&&(h("b",t[0],!1,!0),h("a",t[0],!1,!0),h("b",e[0],!1,!0),h("a",e[0],!1,!0)),g.container.append(t.add(e)))}),d("Change"+t,function(){g._preloadTimeout&&clearTimeout(g._preloadTimeout),g._preloadTimeout=setTimeout(function(){g.preloadNearbyImages(),g._preloadTimeout=null},16)}),d(y+t,function(){f.off(t),g.wrap.off("click"+t),g.arrowLeft&&o&&g.arrowLeft.add(g.arrowRight).destroyMfpFastClick(),g.arrowRight=g.arrowLeft=null})},next:function(){g.direction=!0,g.index=S(g.index+1),g.updateItemHTML()},prev:function(){g.direction=!1,g.index=S(g.index-1),g.updateItemHTML()},goTo:function(t){g.direction=t>=g.index,g.index=t,g.updateItemHTML()},preloadNearbyImages:function(){for(var t=g.st.gallery.preload,e=Math.min(t[0],g.items.length),i=Math.min(t[1],g.items.length),o=1;o<=(g.direction?i:e);o++)g._preloadItem(g.index+o);for(o=1;o<=(g.direction?e:i);o++)g._preloadItem(g.index-o)},_preloadItem:function(t){var e;t=S(t),g.items[t].preloaded||((e=g.items[t]).parsed||(e=g.parseEl(t)),p("LazyLoad",e),"image"===e.type&&(e.img=c('<img class="mfp-img" />').on("load.mfploader",function(){e.hasSize=!0}).on("error.mfploader",function(){e.hasSize=!0,e.loadError=!0,p("LazyLoadError",e)}).attr("src",e.src)),e.preloaded=!0)}}}),"retina");function H(){T.off("touchmove"+z+" touchend"+z)}c.magnificPopup.registerModule(D,{options:{replaceSrc:function(t){return t.src.replace(/\.\w+$/,function(t){return"@2x"+t})},ratio:1},proto:{initRetina:function(){var i,o;1<window.devicePixelRatio&&(i=g.st.retina,o=i.ratio,1<(o=isNaN(o)?o():o)&&(d("ImageHasSize."+D,function(t,e){e.img.css({"max-width":e.img[0].naturalWidth/o,width:"100%"})}),d("ElementParse."+D,function(t,e){e.src=i.replaceSrc(e,o)})))}}}),M="ontouchstart"in window,z=".mfpFastClick",c.fn.mfpFastClick=function(l){return c(this).each(function(){var e,i,o,s,n,a,r,t=c(this);M&&t.on("touchstart"+z,function(t){n=!1,r=1,a=(t.originalEvent||t).touches[0],o=a.clientX,s=a.clientY,T.on("touchmove"+z,function(t){a=(t.originalEvent||t).touches,r=a.length,a=a[0],(10<Math.abs(a.clientX-o)||10<Math.abs(a.clientY-s))&&(n=!0,H())}).on("touchend"+z,function(t){H(),n||1<r||(e=!0,t.preventDefault(),clearTimeout(i),i=setTimeout(function(){e=!1},1e3),l())})}),t.on("click"+z,function(){e||l()})})},c.fn.destroyMfpFastClick=function(){c(this).off("touchstart"+z+" click"+z),M&&T.off("touchmove"+z+" touchend"+z)},n()}),function(l,c,n,a){function i(t,e){this.settings=null,this.options=l.extend({},i.Defaults,e),this.$element=l(t),this.drag=l.extend({},o),this.state=l.extend({},r),this.e=l.extend({},d),this._plugins={},this._supress={},this._current=null,this._speed=null,this._coordinates=[],this._breakpoint=null,this._width=null,this._items=[],this._clones=[],this._mergers=[],this._invalidated={},this._pipe=[],l.each(i.Plugins,l.proxy(function(t,e){this._plugins[t[0].toLowerCase()+t.slice(1)]=new e(this)},this)),l.each(i.Pipe,l.proxy(function(t,e){this._pipe.push({filter:e.filter,run:l.proxy(e.run,this)})},this)),this.setup(),this.initialize()}function s(t){return t.touches!==a?{x:t.touches[0].pageX,y:t.touches[0].pageY}:t.touches===a?t.pageX!==a?{x:t.pageX,y:t.pageY}:t.pageX===a?{x:t.clientX,y:t.clientY}:void 0:void 0}function t(t){var e,i,o=n.createElement("div"),s=t;for(e in s)if(i=s[e],void 0!==o.style[i])return o=null,[i,e];return[!1]}var o={start:0,startX:0,startY:0,current:0,currentX:0,currentY:0,offsetX:0,offsetY:0,distance:null,startTime:0,endTime:0,updatedX:0,targetEl:null},r={isTouch:!1,isScrolling:!1,isSwiping:!1,direction:!1,inMotion:!1},d={_onDragStart:null,_onDragMove:null,_onDragEnd:null,_transitionEnd:null,_resizer:null,_responsiveCall:null,_goToLoop:null,_checkVisibile:null};i.Defaults={items:3,loop:!1,center:!1,mouseDrag:!0,touchDrag:!0,pullDrag:!0,freeDrag:!1,margin:0,stagePadding:0,merge:!1,mergeFit:!0,autoWidth:!1,startPosition:0,rtl:!1,smartSpeed:250,fluidSpeed:!1,dragEndSpeed:!1,responsive:{},responsiveRefreshRate:200,responsiveBaseElement:c,responsiveClass:!1,fallbackEasing:"swing",info:!1,nestedItemSelector:!1,itemElement:"div",stageElement:"div",themeClass:"owl-theme",baseClass:"owl-carousel",itemClass:"owl-item",centerClass:"center",activeClass:"active"},i.Width={Default:"default",Inner:"inner",Outer:"outer"},i.Plugins={},i.Pipe=[{filter:["width","items","settings"],run:function(t){t.current=this._items&&this._items[this.relative(this._current)]}},{filter:["items","settings"],run:function(){var t=this._clones;(this.$stage.children(".cloned").length!==t.length||!this.settings.loop&&0<t.length)&&(this.$stage.children(".cloned").remove(),this._clones=[])}},{filter:["items","settings"],run:function(){for(var t=this._clones,e=this._items,i=this.settings.loop?t.length-Math.max(2*this.settings.items,4):0,o=0,s=Math.abs(i/2);o<s;o++)0<i?(this.$stage.children().eq(e.length+t.length-1).remove(),t.pop(),this.$stage.children().eq(0).remove(),t.pop()):(t.push(t.length/2),this.$stage.append(e[t[t.length-1]].clone().addClass("cloned")),t.push(e.length-1-(t.length-1)/2),this.$stage.prepend(e[t[t.length-1]].clone().addClass("cloned")))}},{filter:["width","items","settings"],run:function(){var t,e,i,o=this.settings.rtl?1:-1,s=(this.width()/this.settings.items).toFixed(3),n=0;for(this._coordinates=[],e=0,i=this._clones.length+this._items.length;e<i;e++)t=this._mergers[this.relative(e)],t=this.settings.mergeFit&&Math.min(t,this.settings.items)||t,n+=(this.settings.autoWidth?this._items[this.relative(e)].width()+this.settings.margin:s*t)*o,this._coordinates.push(n)}},{filter:["width","items","settings"],run:function(){var t,e,i=(this.width()/this.settings.items).toFixed(3),o={width:Math.abs(this._coordinates[this._coordinates.length-1])+2*this.settings.stagePadding,"padding-left":this.settings.stagePadding||"","padding-right":this.settings.stagePadding||""};if(this.$stage.css(o),(o={width:this.settings.autoWidth?"auto":i-this.settings.margin})[this.settings.rtl?"margin-left":"margin-right"]=this.settings.margin,!this.settings.autoWidth&&0<l.grep(this._mergers,function(t){return 1<t}).length)for(t=0,e=this._coordinates.length;t<e;t++)o.width=Math.abs(this._coordinates[t])-Math.abs(this._coordinates[t-1]||0)-this.settings.margin,this.$stage.children().eq(t).css(o);else this.$stage.children().css(o)}},{filter:["width","items","settings"],run:function(t){t.current&&this.reset(this.$stage.children().index(t.current))}},{filter:["position"],run:function(){this.animate(this.coordinates(this._current))}},{filter:["width","position","items","settings"],run:function(){for(var t,e,i=this.settings.rtl?1:-1,o=2*this.settings.stagePadding,s=this.coordinates(this.current())+o,n=s+this.width()*i,a=[],r=0,l=this._coordinates.length;r<l;r++)t=this._coordinates[r-1]||0,e=Math.abs(this._coordinates[r])+o*i,(this.op(t,"<=",s)&&this.op(t,">",n)||this.op(e,"<",s)&&this.op(e,">",n))&&a.push(r);this.$stage.children("."+this.settings.activeClass).removeClass(this.settings.activeClass),this.$stage.children(":eq("+a.join("), :eq(")+")").addClass(this.settings.activeClass),this.settings.center&&(this.$stage.children("."+this.settings.centerClass).removeClass(this.settings.centerClass),this.$stage.children().eq(this.current()).addClass(this.settings.centerClass))}}],i.prototype.initialize=function(){if(this.trigger("initialize"),this.$element.addClass(this.settings.baseClass).addClass(this.settings.themeClass).toggleClass("owl-rtl",this.settings.rtl),this.browserSupport(),this.settings.autoWidth&&!0!==this.state.imagesLoaded){var t=this.$element.find("img"),e=this.settings.nestedItemSelector?"."+this.settings.nestedItemSelector:a,e=this.$element.children(e).width();if(t.length&&e<=0)return this.preloadAutoWidthImages(t),!1}this.$element.addClass("owl-loading"),this.$stage=l("<"+this.settings.stageElement+' class="owl-stage"/>').wrap('<div class="owl-stage-outer">'),this.$element.append(this.$stage.parent()),this.replace(this.$element.children().not(this.$stage.parent())),this._width=this.$element.width(),this.refresh(),this.$element.removeClass("owl-loading").addClass("owl-loaded"),this.eventsCall(),this.internalEvents(),this.addTriggerableEvents(),this.trigger("initialized")},i.prototype.setup=function(){var e=this.viewport(),t=this.options.responsive,i=-1,o=null;t?(l.each(t,function(t){t<=e&&i<t&&(i=Number(t))}),delete(o=l.extend({},this.options,t[i])).responsive,o.responsiveClass&&this.$element.attr("class",function(t,e){return e.replace(/\b owl-responsive-\S+/g,"")}).addClass("owl-responsive-"+i)):o=l.extend({},this.options),null!==this.settings&&this._breakpoint===i||(this.trigger("change",{property:{name:"settings",value:o}}),this._breakpoint=i,this.settings=o,this.invalidate("settings"),this.trigger("changed",{property:{name:"settings",value:this.settings}}))},i.prototype.optionsLogic=function(){this.$element.toggleClass("owl-center",this.settings.center),this.settings.loop&&this._items.length<this.settings.items&&(this.settings.loop=!1),this.settings.autoWidth&&(this.settings.stagePadding=!1,this.settings.merge=!1)},i.prototype.prepare=function(t){var e=this.trigger("prepare",{content:t});return e.data||(e.data=l("<"+this.settings.itemElement+"/>").addClass(this.settings.itemClass).append(t)),this.trigger("prepared",{content:e.data}),e.data},i.prototype.update=function(){for(var t=0,e=this._pipe.length,i=l.proxy(function(t){return this[t]},this._invalidated),o={};t<e;)(this._invalidated.all||0<l.grep(this._pipe[t].filter,i).length)&&this._pipe[t].run(o),t++;this._invalidated={}},i.prototype.width=function(t){switch(t=t||i.Width.Default){case i.Width.Inner:case i.Width.Outer:return this._width;default:return this._width-2*this.settings.stagePadding+this.settings.margin}},i.prototype.refresh=function(){if(0===this._items.length)return!1;(new Date).getTime(),this.trigger("refresh"),this.setup(),this.optionsLogic(),this.$stage.addClass("owl-refresh"),this.update(),this.$stage.removeClass("owl-refresh"),this.state.orientation=c.orientation,this.watchVisibility(),this.trigger("refreshed")},i.prototype.eventsCall=function(){this.e._onDragStart=l.proxy(function(t){this.onDragStart(t)},this),this.e._onDragMove=l.proxy(function(t){this.onDragMove(t)},this),this.e._onDragEnd=l.proxy(function(t){this.onDragEnd(t)},this),this.e._onResize=l.proxy(function(t){this.onResize(t)},this),this.e._transitionEnd=l.proxy(function(t){this.transitionEnd(t)},this),this.e._preventClick=l.proxy(function(t){this.preventClick(t)},this)},i.prototype.onThrottledResize=function(){c.clearTimeout(this.resizeTimer),this.resizeTimer=c.setTimeout(this.e._onResize,this.settings.responsiveRefreshRate)},i.prototype.onResize=function(){return!!this._items.length&&(this._width!==this.$element.width()&&(!this.trigger("resize").isDefaultPrevented()&&(this._width=this.$element.width(),this.invalidate("width"),this.refresh(),void this.trigger("resized"))))},i.prototype.eventsRouter=function(t){var e=t.type;"mousedown"===e||"touchstart"===e?this.onDragStart(t):"mousemove"===e||"touchmove"===e?this.onDragMove(t):"mouseup"!==e&&"touchend"!==e&&"touchcancel"!==e||this.onDragEnd(t)},i.prototype.internalEvents=function(){"ontouchstart"in c||navigator.msMaxTouchPoints;var t=c.navigator.msPointerEnabled;this.settings.mouseDrag?(this.$stage.on("mousedown",l.proxy(function(t){this.eventsRouter(t)},this)),this.$stage.on("dragstart",function(){return!1}),this.$stage.get(0).onselectstart=function(){return!1}):this.$element.addClass("owl-text-select-on"),this.settings.touchDrag&&!t&&this.$stage.on("touchstart touchcancel",l.proxy(function(t){this.eventsRouter(t)},this)),this.transitionEndVendor&&this.on(this.$stage.get(0),this.transitionEndVendor,this.e._transitionEnd,!1),!1!==this.settings.responsive&&this.on(c,"resize",l.proxy(this.onThrottledResize,this))},i.prototype.onDragStart=function(t){var e,i,o,t=t.originalEvent||t||c.event;if(3===t.which||this.state.isTouch)return!1;if("mousedown"===t.type&&this.$stage.addClass("owl-grab"),this.trigger("drag"),this.drag.startTime=(new Date).getTime(),this.speed(0),this.state.isTouch=!0,this.state.isScrolling=!1,this.state.isSwiping=!1,this.drag.distance=0,e=s(t).x,i=s(t).y,this.drag.offsetX=this.$stage.position().left,this.drag.offsetY=this.$stage.position().top,this.settings.rtl&&(this.drag.offsetX=this.$stage.position().left+this.$stage.width()-this.width()+this.settings.margin),this.state.inMotion&&this.support3d)o=this.getTransformProperty(),this.drag.offsetX=o,this.animate(o),this.state.inMotion=!0;else if(this.state.inMotion&&!this.support3d)return this.state.inMotion=!1;this.drag.startX=e-this.drag.offsetX,this.drag.startY=i-this.drag.offsetY,this.drag.start=e-this.drag.startX,this.drag.targetEl=t.target||t.srcElement,this.drag.updatedX=this.drag.start,"IMG"!==this.drag.targetEl.tagName&&"A"!==this.drag.targetEl.tagName||(this.drag.targetEl.draggable=!1),l(n).on("mousemove.owl.dragEvents mouseup.owl.dragEvents touchmove.owl.dragEvents touchend.owl.dragEvents",l.proxy(function(t){this.eventsRouter(t)},this))},i.prototype.onDragMove=function(t){var e,i,o;this.state.isTouch&&!this.state.isScrolling&&(e=s(t=t.originalEvent||t||c.event).x,i=s(t).y,this.drag.currentX=e-this.drag.startX,this.drag.currentY=i-this.drag.startY,this.drag.distance=this.drag.currentX-this.drag.offsetX,this.drag.distance<0?this.state.direction=this.settings.rtl?"right":"left":0<this.drag.distance&&(this.state.direction=this.settings.rtl?"left":"right"),this.settings.loop?this.op(this.drag.currentX,">",this.coordinates(this.minimum()))&&"right"===this.state.direction?this.drag.currentX-=(this.settings.center&&this.coordinates(0))-this.coordinates(this._items.length):this.op(this.drag.currentX,"<",this.coordinates(this.maximum()))&&"left"===this.state.direction&&(this.drag.currentX+=(this.settings.center&&this.coordinates(0))-this.coordinates(this._items.length)):(e=this.coordinates(this.settings.rtl?this.maximum():this.minimum()),i=this.coordinates(this.settings.rtl?this.minimum():this.maximum()),o=this.settings.pullDrag?this.drag.distance/5:0,this.drag.currentX=Math.max(Math.min(this.drag.currentX,e+o),i+o)),(8<this.drag.distance||this.drag.distance<-8)&&(t.preventDefault!==a?t.preventDefault():t.returnValue=!1,this.state.isSwiping=!0),this.drag.updatedX=this.drag.currentX,(16<this.drag.currentY||this.drag.currentY<-16)&&!1===this.state.isSwiping&&(this.state.isScrolling=!0,this.drag.updatedX=this.drag.start),this.animate(this.drag.updatedX))},i.prototype.onDragEnd=function(t){if(this.state.isTouch){if("mouseup"===t.type&&this.$stage.removeClass("owl-grab"),this.trigger("dragged"),this.drag.targetEl.removeAttribute("draggable"),this.state.isTouch=!1,this.state.isScrolling=!1,this.state.isSwiping=!1,0===this.drag.distance&&!0!==this.state.inMotion)return this.state.inMotion=!1;this.drag.endTime=(new Date).getTime(),t=this.drag.endTime-this.drag.startTime,(3<Math.abs(this.drag.distance)||300<t)&&this.removeClick(this.drag.targetEl),t=this.closest(this.drag.updatedX),this.speed(this.settings.dragEndSpeed||this.settings.smartSpeed),this.current(t),this.invalidate("position"),this.update(),this.settings.pullDrag||this.drag.updatedX!==this.coordinates(t)||this.transitionEnd(),this.drag.distance=0,l(n).off(".owl.dragEvents")}},i.prototype.removeClick=function(t){this.drag.targetEl=t,l(t).on("click.preventClick",this.e._preventClick),c.setTimeout(function(){l(t).off("click.preventClick")},300)},i.prototype.preventClick=function(t){t.preventDefault?t.preventDefault():t.returnValue=!1,t.stopPropagation&&t.stopPropagation(),l(t.target).off("click.preventClick")},i.prototype.getTransformProperty=function(){var t=c.getComputedStyle(this.$stage.get(0),null).getPropertyValue(this.vendorName+"transform");return!0!=(16===(t=t.replace(/matrix(3d)?\(|\)/g,"").split(",")).length)?t[4]:t[12]},i.prototype.closest=function(i){var o=-1,s=this.width(),n=this.coordinates();return this.settings.freeDrag||l.each(n,l.proxy(function(t,e){return e-30<i&&i<e+30?o=t:this.op(i,"<",e)&&this.op(i,">",n[t+1]||e-s)&&(o="left"===this.state.direction?t+1:t),-1===o},this)),this.settings.loop||(this.op(i,">",n[this.minimum()])?o=i=this.minimum():this.op(i,"<",n[this.maximum()])&&(o=i=this.maximum())),o},i.prototype.animate=function(t){this.trigger("translate"),this.state.inMotion=0<this.speed(),this.support3d?this.$stage.css({transform:"translate3d("+Math.round(t)+"px,0px, 0px)",transition:this.speed()/1e3+"s"}):this.state.isTouch?this.$stage.css({left:t+"px"}):this.$stage.animate({left:t},this.speed()/1e3,this.settings.fallbackEasing,l.proxy(function(){this.state.inMotion&&this.transitionEnd()},this))},i.prototype.current=function(t){return t===a?this._current:0===this._items.length?a:(t=this.normalize(t),this._current!==t&&((e=this.trigger("change",{property:{name:"position",value:t}})).data!==a&&(t=this.normalize(e.data)),this._current=t,this.invalidate("position"),this.trigger("changed",{property:{name:"position",value:this._current}})),this._current);var e},i.prototype.invalidate=function(t){this._invalidated[t]=!0},i.prototype.reset=function(t){(t=this.normalize(t))!==a&&(this._speed=0,this._current=t,this.suppress(["translate","translated"]),this.animate(this.coordinates(t)),this.release(["translate","translated"]))},i.prototype.normalize=function(t,e){var i=e?this._items.length:this._items.length+this._clones.length;return!l.isNumeric(t)||i<1?a:this._clones.length?(t%i+i)%i:Math.max(this.minimum(e),Math.min(this.maximum(e),t))},i.prototype.relative=function(t){return t=this.normalize(t),t-=this._clones.length/2,this.normalize(t,!0)},i.prototype.maximum=function(t){var e,i,o,s=0,n=this.settings;if(t)return this._items.length-1;if(!n.loop&&n.center)e=this._items.length-1;else if(n.loop||n.center)if(n.loop||n.center)e=this._items.length+n.items;else{if(!n.autoWidth&&!n.merge)throw"Can not detect maximum absolute position.";for(revert=n.rtl?1:-1,i=this.$stage.width()-this.$element.width();(o=this.coordinates(s))&&!(o*revert>=i);)e=++s}else e=this._items.length-n.items;return e},i.prototype.minimum=function(t){return t?0:this._clones.length/2},i.prototype.items=function(t){return t===a?this._items.slice():(t=this.normalize(t,!0),this._items[t])},i.prototype.mergers=function(t){return t===a?this._mergers.slice():(t=this.normalize(t,!0),this._mergers[t])},i.prototype.clones=function(i){function o(t){return t%2==0?s+t/2:e-(t+1)/2}var e=this._clones.length/2,s=e+this._items.length;return i===a?l.map(this._clones,function(t,e){return o(e)}):l.map(this._clones,function(t,e){return t===i?o(e):null})},i.prototype.speed=function(t){return t!==a&&(this._speed=t),this._speed},i.prototype.coordinates=function(t){var e=null;return t===a?l.map(this._coordinates,l.proxy(function(t,e){return this.coordinates(e)},this)):(this.settings.center?(e=this._coordinates[t],e+=(this.width()-e+(this._coordinates[t-1]||0))/2*(this.settings.rtl?-1:1)):e=this._coordinates[t-1]||0,e)},i.prototype.duration=function(t,e,i){return Math.min(Math.max(Math.abs(e-t),1),6)*Math.abs(i||this.settings.smartSpeed)},i.prototype.to=function(t,e){var i,o,s,n,a,r;this.settings.loop?(i=t-this.relative(this.current()),o=this.current(),a=(s=this.current())-(n=this.current()+i)<0,r=this._clones.length+this._items.length,n<this.settings.items&&!1==a?(o=s+this._items.length,this.reset(o)):n>=r-this.settings.items&&!0==a&&(o=s-this._items.length,this.reset(o)),c.clearTimeout(this.e._goToLoop),this.e._goToLoop=c.setTimeout(l.proxy(function(){this.speed(this.duration(this.current(),o+i,e)),this.current(o+i),this.update()},this),30)):(this.speed(this.duration(this.current(),t,e)),this.current(t),this.update())},i.prototype.next=function(t){t=t||!1,this.to(this.relative(this.current())+1,t)},i.prototype.prev=function(t){t=t||!1,this.to(this.relative(this.current())-1,t)},i.prototype.transitionEnd=function(t){return(t===a||(t.stopPropagation(),(t.target||t.srcElement||t.originalTarget)===this.$stage.get(0)))&&(this.state.inMotion=!1,void this.trigger("translated"))},i.prototype.viewport=function(){var t;if(this.options.responsiveBaseElement!==c)t=l(this.options.responsiveBaseElement).width();else if(c.innerWidth)t=c.innerWidth;else{if(!n.documentElement||!n.documentElement.clientWidth)throw"Can not detect viewport width.";t=n.documentElement.clientWidth}return t},i.prototype.replace=function(t){this.$stage.empty(),this._items=[],t=t&&(t instanceof jQuery?t:l(t)),(t=this.settings.nestedItemSelector?t.find("."+this.settings.nestedItemSelector):t).filter(function(){return 1===this.nodeType}).each(l.proxy(function(t,e){e=this.prepare(e),this.$stage.append(e),this._items.push(e),this._mergers.push(+e.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)},this)),this.reset(l.isNumeric(this.settings.startPosition)?this.settings.startPosition:0),this.invalidate("items")},i.prototype.add=function(t,e){e=e===a?this._items.length:this.normalize(e,!0),this.trigger("add",{content:t,position:e}),0===this._items.length||e===this._items.length?(this.$stage.append(t),this._items.push(t),this._mergers.push(+t.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)):(this._items[e].before(t),this._items.splice(e,0,t),this._mergers.splice(e,0,+t.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)),this.invalidate("items"),this.trigger("added",{content:t,position:e})},i.prototype.remove=function(t){(t=this.normalize(t,!0))!==a&&(this.trigger("remove",{content:this._items[t],position:t}),this._items[t].remove(),this._items.splice(t,1),this._mergers.splice(t,1),this.invalidate("items"),this.trigger("removed",{content:null,position:t}))},i.prototype.addTriggerableEvents=function(){var i=l.proxy(function(e,i){return l.proxy(function(t){t.relatedTarget!==this&&(this.suppress([i]),e.apply(this,[].slice.call(arguments,1)),this.release([i]))},this)},this);l.each({next:this.next,prev:this.prev,to:this.to,destroy:this.destroy,refresh:this.refresh,replace:this.replace,add:this.add,remove:this.remove},l.proxy(function(t,e){this.$element.on(t+".owl.carousel",i(e,t+".owl.carousel"))},this))},i.prototype.watchVisibility=function(){function t(t){return 0<t.offsetWidth&&0<t.offsetHeight}t(this.$element.get(0))||(this.$element.addClass("owl-hidden"),c.clearInterval(this.e._checkVisibile),this.e._checkVisibile=c.setInterval(l.proxy(function(){t(this.$element.get(0))&&(this.$element.removeClass("owl-hidden"),this.refresh(),c.clearInterval(this.e._checkVisibile))},this),500))},i.prototype.preloadAutoWidthImages=function(i){var o,s,n=0,a=this;i.each(function(t,e){o=l(e),(s=new Image).onload=function(){n++,o.attr("src",s.src),o.css("opacity",1),n>=i.length&&(a.state.imagesLoaded=!0,a.initialize())},s.src=o.attr("src")||o.attr("data-src")||o.attr("data-src-retina")})},i.prototype.destroy=function(){for(var t in this.$element.hasClass(this.settings.themeClass)&&this.$element.removeClass(this.settings.themeClass),!1!==this.settings.responsive&&l(c).off("resize.owl.carousel"),this.transitionEndVendor&&this.off(this.$stage.get(0),this.transitionEndVendor,this.e._transitionEnd),this._plugins)this._plugins[t].destroy();(this.settings.mouseDrag||this.settings.touchDrag)&&(this.$stage.off("mousedown touchstart touchcancel"),l(n).off(".owl.dragEvents"),this.$stage.get(0).onselectstart=function(){},this.$stage.off("dragstart",function(){return!1})),this.$element.off(".owl"),this.$stage.children(".cloned").remove(),this.e=null,this.$element.removeData("owlCarousel"),this.$stage.children().contents().unwrap(),this.$stage.children().unwrap(),this.$stage.unwrap()},i.prototype.op=function(t,e,i){var o=this.settings.rtl;switch(e){case"<":return o?i<t:t<i;case">":return o?t<i:i<t;case">=":return o?t<=i:i<=t;case"<=":return o?i<=t:t<=i}},i.prototype.on=function(t,e,i,o){t.addEventListener?t.addEventListener(e,i,o):t.attachEvent&&t.attachEvent("on"+e,i)},i.prototype.off=function(t,e,i,o){t.removeEventListener?t.removeEventListener(e,i,o):t.detachEvent&&t.detachEvent("on"+e,i)},i.prototype.trigger=function(t,e,i){var o={item:{count:this._items.length,index:this.current()}},s=l.camelCase(l.grep(["on",t,i],function(t){return t}).join("-").toLowerCase()),n=l.Event([t,"owl",i||"carousel"].join(".").toLowerCase(),l.extend({relatedTarget:this},o,e));return this._supress[t]||(l.each(this._plugins,function(t,e){e.onTrigger&&e.onTrigger(n)}),this.$element.trigger(n),this.settings&&"function"==typeof this.settings[s]&&this.settings[s].apply(this,n)),n},i.prototype.suppress=function(t){l.each(t,l.proxy(function(t,e){this._supress[e]=!0},this))},i.prototype.release=function(t){l.each(t,l.proxy(function(t,e){delete this._supress[e]},this))},i.prototype.browserSupport=function(){this.support3d=t(["perspective","webkitPerspective","MozPerspective","OPerspective","MsPerspective"])[0],this.support3d&&(this.transformVendor=t(["transform","WebkitTransform","MozTransform","OTransform","msTransform"])[0],this.transitionEndVendor=["transitionend","webkitTransitionEnd","transitionend","oTransitionEnd"][t(["transition","WebkitTransition","MozTransition","OTransition"])[1]],this.vendorName=this.transformVendor.replace(/Transform/i,""),this.vendorName=""!==this.vendorName?"-"+this.vendorName.toLowerCase()+"-":""),this.state.orientation=c.orientation},l.fn.owlCarousel=function(t){return this.each(function(){l(this).data("owlCarousel")||l(this).data("owlCarousel",new i(this,t))})},l.fn.owlCarousel.Constructor=i}(window.Zepto||window.jQuery,window,document),function(r,s){function e(t){this._core=t,this._loaded=[],this._handlers={"initialized.owl.carousel change.owl.carousel":r.proxy(function(t){if(t.namespace&&this._core.settings&&this._core.settings.lazyLoad&&(t.property&&"position"==t.property.name||"initialized"==t.type))for(var e=this._core.settings,i=e.center&&Math.ceil(e.items/2)||e.items,o=e.center&&-1*i||0,s=(t.property&&t.property.value||this._core.current())+o,n=this._core.clones().length,a=r.proxy(function(t,e){this.load(e)},this);o++<i;)this.load(n/2+this._core.relative(s)),n&&r.each(this._core.clones(this._core.relative(s++)),a)},this)},this._core.options=r.extend({},e.Defaults,this._core.options),this._core.$element.on(this._handlers)}e.Defaults={lazyLoad:!1},e.prototype.load=function(t){var t=this._core.$stage.children().eq(t),e=t&&t.find(".owl-lazy");!e||-1<r.inArray(t.get(0),this._loaded)||(e.each(r.proxy(function(t,e){var i=r(e),o=1<s.devicePixelRatio&&i.attr("data-src-retina")||i.attr("data-src");this._core.trigger("load",{element:i,url:o},"lazy"),i.is("img")?i.one("load.owl.lazy",r.proxy(function(){i.css("opacity",1),this._core.trigger("loaded",{element:i,url:o},"lazy")},this)).attr("src",o):((e=new Image).onload=r.proxy(function(){i.css({"background-image":"url("+o+")",opacity:"1"}),this._core.trigger("loaded",{element:i,url:o},"lazy")},this),e.src=o)},this)),this._loaded.push(t.get(0)))},e.prototype.destroy=function(){var t,e;for(t in this.handlers)this._core.$element.off(t,this.handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},r.fn.owlCarousel.Constructor.Plugins.Lazy=e}(window.Zepto||window.jQuery,window,document),function(e){function i(t){this._core=t,this._handlers={"initialized.owl.carousel":e.proxy(function(){this._core.settings.autoHeight&&this.update()},this),"changed.owl.carousel":e.proxy(function(t){this._core.settings.autoHeight&&"position"==t.property.name&&this.update()},this),"loaded.owl.lazy":e.proxy(function(t){this._core.settings.autoHeight&&t.element.closest("."+this._core.settings.itemClass)===this._core.$stage.children().eq(this._core.current())&&this.update()},this)},this._core.options=e.extend({},i.Defaults,this._core.options),this._core.$element.on(this._handlers)}i.Defaults={autoHeight:!1,autoHeightClass:"owl-height"},i.prototype.update=function(){this._core.$stage.parent().height(this._core.$stage.children().eq(this._core.current()).height()).addClass(this._core.settings.autoHeightClass)},i.prototype.destroy=function(){var t,e;for(t in this._handlers)this._core.$element.off(t,this._handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},e.fn.owlCarousel.Constructor.Plugins.AutoHeight=i}(window.Zepto||window.jQuery,(window,document)),function(d,e,i){function o(t){this._core=t,this._videos={},this._playing=null,this._fullscreen=!1,this._handlers={"resize.owl.carousel":d.proxy(function(t){this._core.settings.video&&!this.isInFullScreen()&&t.preventDefault()},this),"refresh.owl.carousel changed.owl.carousel":d.proxy(function(){this._playing&&this.stop()},this),"prepared.owl.carousel":d.proxy(function(t){var e=d(t.content).find(".owl-video");e.length&&(e.css("display","none"),this.fetch(e,d(t.content)))},this)},this._core.options=d.extend({},o.Defaults,this._core.options),this._core.$element.on(this._handlers),this._core.$element.on("click.owl.video",".owl-video-play-icon",d.proxy(function(t){this.play(t)},this))}o.Defaults={video:!1,videoHeight:!1,videoWidth:!1},o.prototype.fetch=function(t,e){var i=t.attr("data-vimeo-id")?"vimeo":"youtube",o=t.attr("data-vimeo-id")||t.attr("data-youtube-id"),s=t.attr("data-width")||this._core.settings.videoWidth,n=t.attr("data-height")||this._core.settings.videoHeight,a=t.attr("href");if(!a)throw new Error("Missing video URL.");if(-1<(o=a.match(/(http:|https:|)\/\/(player.|www.)?(vimeo\.com|youtu(be\.com|\.be|be\.googleapis\.com))\/(video\/|embed\/|watch\?v=|v\/)?([A-Za-z0-9._%-]*)(\&\S+)?/))[3].indexOf("youtu"))i="youtube";else{if(!(-1<o[3].indexOf("vimeo")))throw new Error("Video URL not supported.");i="vimeo"}o=o[6],this._videos[a]={type:i,id:o,width:s,height:n},e.attr("data-video",a),this.thumbnail(t,this._videos[a])},o.prototype.thumbnail=function(e,t){function i(t){o=c.lazyLoad?'<div class="owl-video-tn '+l+'" '+r+'="'+t+'"></div>':'<div class="owl-video-tn" style="opacity:1;background-image:url('+t+')"></div>',e.after(o),e.after('<div class="owl-video-play-icon"></div>')}var o,s,n=t.width&&t.height?'style="width:'+t.width+"px;height:"+t.height+'px;"':"",a=e.find("img"),r="src",l="",c=this._core.settings;return e.wrap('<div class="owl-video-wrapper"'+n+"></div>"),this._core.settings.lazyLoad&&(r="data-src",l="owl-lazy"),a.length?(i(a.attr(r)),a.remove(),!1):void("youtube"===t.type?(s="http://img.youtube.com/vi/"+t.id+"/hqdefault.jpg",i(s)):"vimeo"===t.type&&d.ajax({type:"GET",url:"http://vimeo.com/api/v2/video/"+t.id+".json",jsonp:"callback",dataType:"jsonp",success:function(t){s=t[0].thumbnail_large,i(s)}}))},o.prototype.stop=function(){this._core.trigger("stop",null,"video"),this._playing.find(".owl-video-frame").remove(),this._playing.removeClass("owl-video-playing"),this._playing=null},o.prototype.play=function(t){this._core.trigger("play",null,"video"),this._playing&&this.stop();var e,t=d(t.target||t.srcElement),i=t.closest("."+this._core.settings.itemClass),o=this._videos[i.attr("data-video")],s=o.width||"100%",n=o.height||this._core.$stage.height();"youtube"===o.type?e='<iframe width="'+s+'" height="'+n+'" src="http://www.youtube.com/embed/'+o.id+"?autoplay=1&v="+o.id+'" frameborder="0" allowfullscreen></iframe>':"vimeo"===o.type&&(e='<iframe src="http://player.vimeo.com/video/'+o.id+'?autoplay=1" width="'+s+'" height="'+n+'" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>'),i.addClass("owl-video-playing"),this._playing=i,o=d('<div style="height:'+n+"px; width:"+s+'px" class="owl-video-frame">'+e+"</div>"),t.after(o)},o.prototype.isInFullScreen=function(){var t=i.fullscreenElement||i.mozFullScreenElement||i.webkitFullscreenElement;return t&&d(t).parent().hasClass("owl-video-frame")&&(this._core.speed(0),this._fullscreen=!0),!(t&&this._fullscreen&&this._playing)&&(this._fullscreen?this._fullscreen=!1:!this._playing||this._core.state.orientation===e.orientation||(this._core.state.orientation=e.orientation,!1))},o.prototype.destroy=function(){var t,e;for(t in this._core.$element.off("click.owl.video"),this._handlers)this._core.$element.off(t,this._handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},d.fn.owlCarousel.Constructor.Plugins.Video=o}(window.Zepto||window.jQuery,window,document),function(a){function e(t){this.core=t,this.core.options=a.extend({},e.Defaults,this.core.options),this.swapping=!0,this.previous=void 0,this.next=void 0,this.handlers={"change.owl.carousel":a.proxy(function(t){"position"==t.property.name&&(this.previous=this.core.current(),this.next=t.property.value)},this),"drag.owl.carousel dragged.owl.carousel translated.owl.carousel":a.proxy(function(t){this.swapping="translated"==t.type},this),"translate.owl.carousel":a.proxy(function(){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(){var t,e,i,o,s,n;1===this.core.settings.items&&this.core.support3d&&(this.core.speed(0),e=a.proxy(this.clear,this),i=this.core.$stage.children().eq(this.previous),o=this.core.$stage.children().eq(this.next),s=this.core.settings.animateIn,n=this.core.settings.animateOut,this.core.current()!==this.previous&&(n&&(t=this.core.coordinates(this.previous)-this.core.coordinates(this.next),i.css({left:t+"px"}).addClass("animated owl-animated-out").addClass(n).one("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",e)),s&&o.addClass("animated owl-animated-in").addClass(s).one("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",e)))},e.prototype.clear=function(t){a(t.target).css({left:""}).removeClass("animated owl-animated-out owl-animated-in").removeClass(this.core.settings.animateIn).removeClass(this.core.settings.animateOut),this.core.transitionEnd()},e.prototype.destroy=function(){var t,e;for(t in this.handlers)this.core.$element.off(t,this.handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},a.fn.owlCarousel.Constructor.Plugins.Animate=e}(window.Zepto||window.jQuery,(window,document)),function(e,i,t){function o(t){this.core=t,this.core.options=e.extend({},o.Defaults,this.core.options),this.handlers={"translated.owl.carousel refreshed.owl.carousel":e.proxy(function(){this.autoplay()},this),"play.owl.autoplay":e.proxy(function(t,e,i){this.play(e,i)},this),"stop.owl.autoplay":e.proxy(function(){this.stop()},this),"mouseover.owl.autoplay":e.proxy(function(){this.core.settings.autoplayHoverPause&&this.pause()},this),"mouseleave.owl.autoplay":e.proxy(function(){this.core.settings.autoplayHoverPause&&this.autoplay()},this)},this.core.$element.on(this.handlers)}o.Defaults={autoplay:!1,autoplayTimeout:5e3,autoplayHoverPause:!1,autoplaySpeed:!1},o.prototype.autoplay=function(){this.core.settings.autoplay&&!this.core.state.videoPlay?(i.clearInterval(this.interval),this.interval=i.setInterval(e.proxy(function(){this.play()},this),this.core.settings.autoplayTimeout)):i.clearInterval(this.interval)},o.prototype.play=function(){return!0===t.hidden||this.core.state.isTouch||this.core.state.isScrolling||this.core.state.isSwiping||this.core.state.inMotion?void 0:!1===this.core.settings.autoplay?void i.clearInterval(this.interval):void this.core.next(this.core.settings.autoplaySpeed)},o.prototype.stop=function(){i.clearInterval(this.interval),this.core.settings.autoplay=!1},o.prototype.pause=function(){i.clearInterval(this.interval)},o.prototype.destroy=function(){var t,e;for(t in i.clearInterval(this.interval),this.handlers)this.core.$element.off(t,this.handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},e.fn.owlCarousel.Constructor.Plugins.autoplay=o}(window.Zepto||window.jQuery,window,document),function(s){"use strict";function e(t){this._core=t,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":s.proxy(function(t){this._core.settings.dotsData&&this._templates.push(s(t.content).find("[data-dot]").addBack("[data-dot]").attr("data-dot"))},this),"add.owl.carousel":s.proxy(function(t){this._core.settings.dotsData&&this._templates.splice(t.position,0,s(t.content).find("[data-dot]").addBack("[data-dot]").attr("data-dot"))},this),"remove.owl.carousel prepared.owl.carousel":s.proxy(function(t){this._core.settings.dotsData&&this._templates.splice(t.position,1)},this),"change.owl.carousel":s.proxy(function(t){var e,i,o;"position"!=t.property.name||this._core.state.revert||this._core.settings.loop||!this._core.settings.navRewind||(e=this._core.current(),i=this._core.maximum(),o=this._core.minimum(),t.data=t.property.value>i?i<=e?o:i:t.property.value<o?i:t.property.value)},this),"changed.owl.carousel":s.proxy(function(t){"position"==t.property.name&&this.draw()},this),"refreshed.owl.carousel":s.proxy(function(){this._initialized||(this.initialize(),this._initialized=!0),this._core.trigger("refresh",null,"navigation"),this.update(),this.draw(),this._core.trigger("refreshed",null,"navigation")},this)},this._core.options=s.extend({},e.Defaults,this._core.options),this.$element.on(this._handlers)}e.Defaults={nav:!1,navRewind:!0,navText:["prev","next"],navSpeed:!1,navElement:"div",navContainer:!1,navContainerClass:"owl-nav",navClass:["owl-prev","owl-next"],slideBy:1,dotClass:"owl-dot",dotsClass:"owl-dots",dots:!0,dotsEach:!1,dotData:!1,dotsSpeed:!1,dotsContainer:!1,controlsClass:"owl-controls"},e.prototype.initialize=function(){var t,e,i=this._core.settings;for(e in i.dotsData||(this._templates=[s("<div>").addClass(i.dotClass).append(s("<span>")).prop("outerHTML")]),i.navContainer&&i.dotsContainer||(this._controls.$container=s("<div>").addClass(i.controlsClass).appendTo(this.$element)),this._controls.$indicators=i.dotsContainer?s(i.dotsContainer):s("<div>").hide().addClass(i.dotsClass).appendTo(this._controls.$container),this._controls.$indicators.on("click","div",s.proxy(function(t){var e=(s(t.target).parent().is(this._controls.$indicators)?s(t.target):s(t.target).parent()).index();t.preventDefault(),this.to(e,i.dotsSpeed)},this)),t=i.navContainer?s(i.navContainer):s("<div>").addClass(i.navContainerClass).prependTo(this._controls.$container),this._controls.$next=s("<"+i.navElement+">"),this._controls.$previous=this._controls.$next.clone(),this._controls.$previous.addClass(i.navClass[0]).html(i.navText[0]).hide().prependTo(t).on("click",s.proxy(function(){this.prev(i.navSpeed)},this)),this._controls.$next.addClass(i.navClass[1]).html(i.navText[1]).hide().appendTo(t).on("click",s.proxy(function(){this.next(i.navSpeed)},this)),this._overrides)this._core[e]=s.proxy(this[e],this)},e.prototype.destroy=function(){var t,e,i,o;for(t in this._handlers)this.$element.off(t,this._handlers[t]);for(e in this._controls)this._controls[e].remove();for(o in this.overides)this._core[o]=this._overrides[o];for(i in Object.getOwnPropertyNames(this))"function"!=typeof this[i]&&(this[i]=null)},e.prototype.update=function(){var t,e,i=this._core.settings,o=this._core.clones().length/2,s=o+this._core.items().length,n=i.center||i.autoWidth||i.dotData?1:i.dotsEach||i.items;if("page"!==i.slideBy&&(i.slideBy=Math.min(i.slideBy,i.items)),i.dots||"page"==i.slideBy)for(this._pages=[],t=o,e=0;t<s;t++)(n<=e||0===e)&&(this._pages.push({start:t-o,end:t-o+n-1}),e=0,0),e+=this._core.mergers(this._core.relative(t))},e.prototype.draw=function(){var t,e="",i=this._core.settings,o=(this._core.$stage.children(),this._core.relative(this._core.current()));if(!i.nav||i.loop||i.navRewind||(this._controls.$previous.toggleClass("disabled",o<=0),this._controls.$next.toggleClass("disabled",o>=this._core.maximum())),this._controls.$previous.toggle(i.nav),this._controls.$next.toggle(i.nav),i.dots){if(o=this._pages.length-this._controls.$indicators.children().length,i.dotData&&0!=o){for(t=0;t<this._controls.$indicators.children().length;t++)e+=this._templates[this._core.relative(t)];this._controls.$indicators.html(e)}else 0<o?(e=new Array(1+o).join(this._templates[0]),this._controls.$indicators.append(e)):o<0&&this._controls.$indicators.children().slice(o).remove();this._controls.$indicators.find(".active").removeClass("active"),this._controls.$indicators.children().eq(s.inArray(this.current(),this._pages)).addClass("active")}this._controls.$indicators.toggle(i.dots)},e.prototype.onTrigger=function(t){var e=this._core.settings;t.page={index:s.inArray(this.current(),this._pages),count:this._pages.length,size:e&&(e.center||e.autoWidth||e.dotData?1:e.dotsEach||e.items)}},e.prototype.current=function(){var e=this._core.relative(this._core.current());return s.grep(this._pages,function(t){return t.start<=e&&t.end>=e}).pop()},e.prototype.getPosition=function(t){var e,i,o=this._core.settings;return"page"==o.slideBy?(e=s.inArray(this.current(),this._pages),i=this._pages.length,t?++e:--e,e=this._pages[(e%i+i)%i].start):(e=this._core.relative(this._core.current()),i=this._core.items().length,t?e+=o.slideBy:e-=o.slideBy),e},e.prototype.next=function(t){s.proxy(this._overrides.to,this._core)(this.getPosition(!0),t)},e.prototype.prev=function(t){s.proxy(this._overrides.to,this._core)(this.getPosition(!1),t)},e.prototype.to=function(t,e,i){i?s.proxy(this._overrides.to,this._core)(t,e):(i=this._pages.length,s.proxy(this._overrides.to,this._core)(this._pages[(t%i+i)%i].start,e))},s.fn.owlCarousel.Constructor.Plugins.Navigation=e}(window.Zepto||window.jQuery,(window,document)),function(i,o){"use strict";function e(t){this._core=t,this._hashes={},this.$element=this._core.$element,this._handlers={"initialized.owl.carousel":i.proxy(function(){"URLHash"==this._core.settings.startPosition&&i(o).trigger("hashchange.owl.navigation")},this),"prepared.owl.carousel":i.proxy(function(t){var e=i(t.content).find("[data-hash]").addBack("[data-hash]").attr("data-hash");this._hashes[e]=t.content},this)},this._core.options=i.extend({},e.Defaults,this._core.options),this.$element.on(this._handlers),i(o).on("hashchange.owl.navigation",i.proxy(function(){var t=o.location.hash.substring(1),e=this._core.$stage.children(),e=this._hashes[t]&&e.index(this._hashes[t])||0;return!!t&&void this._core.to(e,!1,!0)},this))}e.Defaults={URLhashListener:!1},e.prototype.destroy=function(){var t,e;for(t in i(o).off("hashchange.owl.navigation"),this._handlers)this._core.$element.off(t,this._handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},i.fn.owlCarousel.Constructor.Plugins.Hash=e}(window.Zepto||window.jQuery,window,document),function(){var j=this.jQuery||window.jQuery,M=j(window);j.fn.stick_in_parent=function(t){var b,e,i,o,s,x,k=(t=null==t?{}:t).sticky_class,E=t.inner_scrolling,T=t.recalc_every,I=t.parent,$=t.offset_top,P=t.spacer,S=t.bottoming;for(null==$&&($=0),null==I&&(I=void 0),null==E&&(E=!0),null==k&&(k="is_stuck"),b=j(document),null==S&&(S=!0),x=function(t){var e,i;return window.getComputedStyle?(t[0],e=window.getComputedStyle(t[0]),i=parseFloat(e.getPropertyValue("width"))+parseFloat(e.getPropertyValue("margin-left"))+parseFloat(e.getPropertyValue("margin-right")),"border-box"!==e.getPropertyValue("box-sizing")&&(i+=parseFloat(e.getPropertyValue("border-left-width"))+parseFloat(e.getPropertyValue("border-right-width"))+parseFloat(e.getPropertyValue("padding-left"))+parseFloat(e.getPropertyValue("padding-right"))),i):t.outerWidth(!0)},i=function(n,a,r,l,c,d,h,p){var u,t,g,f,m,v,w,y,e,_,C,o;if(!n.data("sticky_kit")){if(n.data("sticky_kit",!0),m=b.height(),w=n.parent(),!(w=null!=I?w.closest(I):w).length)throw"failed to find stick parent";if(u=g=!1,(C=null!=P?P&&n.closest(P):j("<div />"))&&C.css("position",n.css("position")),(y=function(){var t,e,i;if(!p)return m=b.height(),t=parseInt(w.css("border-top-width"),10),e=parseInt(w.css("padding-top"),10),a=parseInt(w.css("padding-bottom"),10),r=w.offset().top+t+e,l=w.height(),g&&(u=g=!1,null==P&&(n.insertAfter(C),C.detach()),n.css({position:"",width:"",bottom:""}).removeClass(k),i=!0),c=n.offset().top-(parseInt(n.css("margin-top"),10)||0)-$,d=n.outerHeight(!0),h=n.css("float"),C&&C.css({width:x(n),height:d,display:n.css("display"),"vertical-align":n.css("vertical-align"),float:h}),i?o():void 0})(),d!==l)return f=void 0,v=$,_=T,o=function(){var t,e,i,o,s;if(!p)return i=!1,null!=_&&--_<=0&&(_=T,y(),i=!0),i||b.height()===m||(y(),i=!0),i=M.scrollTop(),null!=f&&(e=i-f),f=i,g?(S&&(o=l+r<i+d+v,u&&!o&&(u=!1,n.css({position:"fixed",bottom:"",top:""}).trigger("sticky_kit:unbottom"))),i<c&&(g=!1,v=$,null==P&&("left"!==h&&"right"!==h||n.insertAfter(C),C.detach()),n.css(t={position:"",width:""}).removeClass(k).trigger("sticky_kit:unstick")),E&&(s=M.height())<d+$&&(u||(v-=e,v=Math.max(s-d,v),v=Math.min($,v)))):c<i&&(g=!0,(t={position:"fixed"}).width="border-box"===n.css("box-sizing")?n.outerWidth()+"px":n.width()+"px",n.css(t).addClass(k),null==P&&(n.after(C),"left"!==h&&"right"!==h||C.append(n)),n.trigger("sticky_kit:stick")),g&&S&&(null==o&&(o=l+r<i+d+v),!u&&o)?(u=!0,"static"===w.css("position")&&w.css({position:"relative"}),n.css({position:"absolute",bottom:a,top:"auto"}).trigger("sticky_kit:bottom")):void 0},e=function(){if(!(document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement||document.msFullscreenElement))return y(),o()},t=function(){if(p=!0,M.off("touchmove",o),M.off("scroll",o),M.off("resize",e),j(document.body).off("sticky_kit:recalc",e),n.off("sticky_kit:detach",t),n.removeData("sticky_kit"),n.css({position:"",bottom:"",width:""}),w.position("position",""),g)return null==P&&("left"!==h&&"right"!==h||n.insertAfter(C),C.remove()),n.removeClass(k)},M.on("touchmove",o),M.on("scroll",o),M.on("resize",e),j(document.body).on("sticky_kit:recalc",e),n.on("sticky_kit:detach",t),setTimeout(o,0)}},o=0,s=this.length;o<s;o++)e=this[o],i(j(e));return this}}.call(this),function(O){"use strict";O(document).ready(function(){E(),vlog_js_settings.header_sticky&&(O("#wpadminbar").length&&O("#wpadminbar").is(":visible")&&O(".vlog-sticky-header").css("top",O("#wpadminbar").height()),O(window).scroll(function(){var t=O(window).scrollTop();vlog_js_settings.header_sticky_up?t<e&&t>=vlog_js_settings.header_sticky_offset?O("body").hasClass("vlog-header-sticky-on")||O("body").addClass("vlog-sticky-header-on"):(O("body").removeClass("vlog-sticky-header-on"),O(".vlog-sticky-header .vlog-action-search.active i").addClass("fv-search").removeClass("fv-close"),O(".vlog-sticky-header .vlog-actions-button").removeClass("active")):t>=vlog_js_settings.header_sticky_offset?O("body").hasClass("vlog-header-sticky-on")||O("body").addClass("vlog-sticky-header-on"):(O("body").removeClass("vlog-sticky-header-on"),O(".vlog-sticky-header .vlog-action-search.active i").addClass("fv-search").removeClass("fv-close"),O(".vlog-sticky-header .vlog-actions-button").removeClass("active")),e=t}));var e,t,i,c,d,h,p,o,s,n,a=0;function r(){O(".vlog-responsive-header").length&&(O(".vlog-responsive-header").css("top",a),0<a&&"absolute"==O("#wpadminbar").css("position")&&(O(window).scrollTop()<=a?O(".vlog-responsive-header").css("position","absolute"):O(".vlog-responsive-header").css("position","fixed").css("top",0)))}O("#wpadminbar").length&&O("#wpadminbar").is(":visible")&&(a=O("#wpadminbar").height()),r(),O(window).scroll(function(){r()}),vlog_js_settings.rensponsive_secondary_nav&&(g=O(".vlog-mob-nav"),o=O(".secondary-navigation"),t="",o.length&&(o.each(function(){t+=O(this).find("ul:first").html()}),vlog_js_settings.responsive_more_link&&(t='<li class="menu-item menu-item-has-children"><a href="#" class="vlog-menu-forward"><a href="#">'+vlog_js_settings.responsive_more_link+'</a></a><ul class="sub-menu">'+t+"</ul></li>"),g.append(t))),vlog_js_settings.responsive_social_nav&&(g=O(".vlog-mob-nav"),o=O(".vlog-soc-menu:first li").clone(),i="",o.length&&(o.each(function(){i+=O(this).html()}),g.append('<li class="vlog-soc-menu vlog-soc-responive-menu menu-item">'+i+"</li>"))),/Android/i.test(navigator.userAgent)&&O("body").on("click",".mejs-playpause-button button, .mejs-overlay-play",function(t){t=O(t.target);(t.is("button")||t.is("div"))&&O("body").toggleClass("player-android-on")}),O("#dl-menu").dlmenu({animationClasses:{classin:"dl-animate-in-2",classout:"dl-animate-out-2"}}),O(".vlog-featured-slider").each(function(){(c=O(this)).owlCarousel({loop:!0,autoHeight:!1,autoWidth:!1,items:1,margin:0,nav:!0,animateOut:"fadeOut",animateIn:"fadeIn",center:!1,fluidSpeed:100,mouseDrag:!1,autoplay:!!parseInt(vlog_js_settings.cover_autoplay),autoplayTimeout:1e3*parseInt(vlog_js_settings.cover_autoplay_time),autoplayHoverPause:!0,onChanged:function(t){var e,i,o,s=this.$element.find(".owl-item.active"),n=s.find(".vlog-format-content");void 0===n||0===n.children().length||"audio"!=(i=(e=s.find(".vlog-featured-item")).find(".vlog-cover")).attr("data-action")&&"video"!=i.attr("data-action")||(s=s.find(".vlog-cover-bg"),o=e.find(".vlog-format-inplay"),n.html(""),n.fadeOut(300),o.fadeOut(300),i.fadeIn(300),e.find(".vlog-f-hide").fadeIn(300),s.removeAttr("style"))},navText:['<i class="fa fa-angle-left"></i>','<i class="fa fa-angle-right"></i>']})}),O(".vlog-featured-slider-4").owlCarousel({stagePadding:200,loop:!0,margin:0,items:1,center:!0,nav:!0,autoWidth:!0,autoplay:!!parseInt(vlog_js_settings.cover_autoplay),autoplayTimeout:1e3*parseInt(vlog_js_settings.cover_autoplay_time),autoplayHoverPause:!0,navText:['<i class="fa fa-angle-left"></i>','<i class="fa fa-angle-right"></i>'],responsive:{0:{items:1,stagePadding:200},600:{items:1,stagePadding:200},990:{items:1,stagePadding:200},1200:{items:1,stagePadding:250},1400:{items:1,stagePadding:300},1600:{items:1,stagePadding:350},1800:{items:1,stagePadding:768}}}),O(".vlog-slider").each(function(){var t=O(this).closest(".vlog-module").find(".vlog-slider-controls"),e=O(this).closest(".vlog-module").attr("data-col"),i=t.attr("data-col"),e=e/i,o=!!parseInt(t.attr("data-autoplay")),s=1e3*parseInt(t.attr("data-autoplay-time"));O(this).owlCarousel({rtl:"true"===vlog_js_settings.rtl_mode,loop:!0,autoHeight:!1,autoWidth:!1,items:e,margin:40,nav:!0,center:!1,fluidSpeed:100,autoplay:o,autoplayTimeout:s,autoplayHoverPause:!0,navContainer:t,navText:['<i class="fa fa-angle-left"></i>','<i class="fa fa-angle-right"></i>'],responsive:{0:{margin:0,items:i<=2?2:1},1023:{margin:36,items:e}}})}),O(".vlog-widget-slider").each(function(){var t=O(this).closest(".widget").find(".vlog-slider-controls");O(this).owlCarousel({rtl:"true"===vlog_js_settings.rtl_mode,loop:!0,autoHeight:!1,autoWidth:!1,items:1,nav:!0,center:!1,fluidSpeed:100,margin:0,navContainer:t,navText:['<i class="fa fa-angle-left"></i>','<i class="fa fa-angle-right"></i>']})}),O(window).resize(function(){document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement||document.msFullscreenElement||(y(),E(),_(),j(),S(),P())}),O(".vlog-featured-1").each(function(){var t=O(this),e=O(this).next(),i=e.css("background-color");e.hasClass("vlog-bg")&&t.css("background-color",i)}),T(O(".vlog-single-content .entry-media, .entry-content-single, .vlog-single-cover .vlog-popup-wrapper")),O("body").on("mouseenter",".vlog-featured .vlog-highlight .entry-title a,.vlog-featured .vlog-highlight .action-item,.vlog-active-hover .entry-title,.vlog-active-hover .action-item",function(){O(this).siblings().stop().animate({opacity:.4},150),O(this).parent().siblings().stop().animate({opacity:.4},150),O(this).parent().parent().siblings().stop().animate({opacity:.4},150)}),O("body").on("mouseleave",".vlog-featured .vlog-highlight .entry-title a,.vlog-featured .vlog-highlight .action-item,.vlog-active-hover .entry-title,.vlog-active-hover .action-item",function(){O(this).siblings().stop().animate({opacity:1},150),O(this).parent().siblings().stop().animate({opacity:1},150),O(this).parent().parent().siblings().stop().animate({opacity:1},150)}),O("body").on("click",".vlog-action-search span",function(){O(this).find("i").toggleClass("fv-close","fv-search"),O(this).closest(".vlog-action-search").toggleClass("active"),setTimeout(function(){O('.active input[type="text"]').focus()},150),O(".vlog-responsive-header .vlog-watch-later, .vlog-responsive-header .vlog-listen-later").hasClass("active")&&O(".vlog-responsive-header .vlog-watch-later, .vlog-responsive-header .vlog-listen-later").removeClass("active")}),O("body").on("click",".vlog-responsive-header .vlog-watch-later span",function(){O(this).closest(".vlog-watch-later").toggleClass("active"),O("body").toggleClass("vlog-watch-later-active"),O(".vlog-responsive-header .vlog-action-search").removeClass("active").find("i").removeClass("fv-close"),O(".vlog-responsive-header .vlog-watch-later.active .sub-menu").css("width",O(window).width()).css("height",O(window).height())}),O("body").on("click",".vlog-responsive-header .vlog-listen-later span",function(){O(this).closest(".vlog-listen-later").toggleClass("active"),O(".vlog-responsive-header .vlog-action-search").removeClass("active").find("i").removeClass("fv-close"),O(".vlog-responsive-header .vlog-listen-later.active .sub-menu").css("width",O(window).width()).css("height",O(window).height())}),O(document).on("click",function(t){O(t.target).is(".vlog-responsive-header .vlog-action-search")||(O(".vlog-responsive-header").hasClass("vlog-res-open")&&O(".vlog-responsive-header .dl-trigger").trigger("click"),O(".vlog-responsive-header .vlog-action-search.active .sub-menu").css("width",O(window).width()))}),O("body").imagesLoaded(function(){y(),_()}),O(".vlog-cover-bg:first").imagesLoaded(function(){O(".vlog-cover").animate({opacity:1},300)}),(O(".vlog-infinite-scroll").length||O(".vlog-load-more").length)&&(d=[],p=h=0,o={prev:window.location.href,next:"",offset:O(window).scrollTop(),prev_title:window.document.title,next_title:window.document.title},d.push(o),window.history.pushState(o,"",window.location.href),n=0,O(window).scroll(function(){d[h].offset!=s&&O(window).scrollTop()<d[h].offset&&(s=d[h].offset,n=0,window.document.title=d[h].prev_title,window.history.replaceState(d,"",d[h].prev),0!=(p=h)&&h--),d[p].offset!=n&&O(window).scrollTop()>d[p].offset&&(n=d[p].offset,s=0,window.document.title=d[p].next_title,window.history.replaceState(d,"",d[p].next),(h=p)<d.length-1&&p++)}));var l,u,g,f=0,m=(O("body").on("click",".vlog-load-more a",function(t){t.preventDefault();var n=window.location.href,a=window.document.title,r=O(this),l=r.attr("href");r.addClass("vlog-loader-active"),O(".vlog-loader").show(),O("<div>").load(l,function(){var t=f.toString(),i=r.closest(".vlog-module").find(".vlog-posts"),o=O(this).find(".vlog-module:last article").addClass("vlog-new-"+t),s=O(this);o.imagesLoaded(function(){var t,e;return o.hide().appendTo(i).fadeIn(400),s.find(".vlog-load-more").length?(O(".vlog-load-more").html(s.find(".vlog-load-more").html()),O(".vlog-loader").hide(),r.removeClass("vlog-loader-active")):O(".vlog-load-more").fadeOut("fast").remove(),y(),l!=window.location&&(h++,p++,t=s.find("title").text(),e={prev:n,next:l,offset:O(window).scrollTop(),prev_title:a,next_title:t},d.push(e),window.document.title=t,window.history.pushState(e,"",l)),f++,!1})})}),!0),v=(O(".vlog-infinite-scroll").length&&O(window).scroll(function(){var e,n,a,r;m&&O(".vlog-infinite-scroll").length&&O(this).scrollTop()>O(".vlog-infinite-scroll").offset().top-O(this).height()-200&&(e=O(".vlog-infinite-scroll a"),n=e.attr("href"),a=window.location.href,r=window.document.title,null!=n&&(m=!1,O(".vlog-loader").show(),O("<div>").load(n,function(){var t=f.toString(),i=e.closest(".vlog-module").find(".vlog-posts"),o=O(this).find(".vlog-module:last article").addClass("vlog-new-"+t),s=O(this);o.imagesLoaded(function(){var t,e;return o.hide().appendTo(i).fadeIn(400),s.find(".vlog-infinite-scroll").length?(O(".vlog-infinite-scroll").html(s.find(".vlog-infinite-scroll").html()),O(".vlog-loader").hide(),m=!0):O(".vlog-infinite-scroll").fadeOut("fast").remove(),y(),n!=window.location&&(h++,p++,t=s.find("title").text(),e={prev:a,next:n,offset:O(window).scrollTop(),prev_title:r,next_title:t},d.push(e),window.document.title=t,window.history.pushState(e,"",n)),f++,!1})})))}),null!==vlog_js_settings.ajax_wpml_current_lang?"?wpml_lang="+vlog_js_settings.ajax_wpml_current_lang:""),w=!1;function y(){window.matchMedia("(min-width: 992px)").matches?O(".vlog-sticky").length&&O(".vlog-sidebar").each(function(){var t=O(this).closest(".vlog-section");t=t.find(".vlog-ignore-sticky-height").length?t.height()-t.find(".vlog-ignore-sticky-height").height():t.height(),O(this).css("min-height",t)}):O(".vlog-sidebar").each(function(){O(this).css("height","auto"),O(this).css("min-height","1px")}),O(".vlog-sticky").stick_in_parent({parent:".vlog-sidebar",inner_scrolling:!1,offset_top:99}),window.matchMedia("(max-width: 991px)").matches&&O(".vlog-sticky").trigger("sticky_kit:detach")}function _(){O(".vlog-sidebar-left").each(function(){window.matchMedia("(max-width: 991px)").matches?O(this).insertAfter(O(this).next()):O(this).insertBefore(O(this).prev())})}O("body").on("click",".vlog-cover",function(t){var o,s,n,e,i,a,r,l;w||(r=O(this).attr("data-action"),o=O(this).closest(".vlog-cover-bg").find(".vlog-format-content"),s=O(this).closest(".vlog-featured-item"),n=O(this).closest(".vlog-cover-bg"),e=s.find(".vlog-format-inplay"),"video"==r&&(w=!0,s.parent().hasClass("owl-item")&&c.trigger("stop.owl.autoplay"),i={action:"vlog_format_content",format:"video",display_playlist:!!O(".vlog-single-cover").length,id:O(this).attr("data-id")},O(this).fadeOut(300,function(){o.append('<div class="vlog-format-loader"><div class="uil-ripple-css"><div></div><div></div></div></div>'),o.fadeIn(300),e.find(".container").html(""),e.find(".container").append(s.find(".entry-header").clone()).append(s.find(".entry-actions").clone()),O.post(vlog_js_settings.ajax_url+v,i,function(t){o.find(".vlog-format-loader").remove(),o.append('<div class="vlog-popup-wrapper">'+t+"</div>"),T(o),I(o),$(o),s.find(".vlog-f-hide").fadeOut(300),O("body").addClass("vlog-in-play"),setTimeout(function(){var t,e,i=O(".vlog-playlist");768<O(window).width()?(t=parseInt(o.find(".vlog-popup-wrapper").outerHeight())+72,O(".vlog-popup-wrapper > .vlog-cover-playlist-active").length?(n.css("height","auto"),n.addClass("vlog-cover-playlist-active"),s.addClass("vlog-playlist-mode-acitve")):(t=t>vlog_js_settings.cover_height?t:vlog_js_settings.cover_height,n.animate({height:t},300)),t=n.find(".vlog-playlist-video iframe"),e=n.find(".vlog-playlist-video script"),t.length||e.length||(t=n.find(".vlog-playlist-video video")),e.length?O(document).on("playwire-ready",function(){i.find(".vlog-posts").css("height",e.parent().height()-i.find(".vlog-mod-head").height()-25)}):i.find(".vlog-posts").css("height",t.height()-i.find(".vlog-mod-head").height()-25)):(n.css("height","auto"),n.parent().css("height","auto"),i.css("height",460))},50),e.slideDown(300),w=!1})})),"audio"==r&&(w=!0,s.parent().hasClass("owl-item")&&c.trigger("stop.owl.autoplay"),i={action:"vlog_format_content",format:"audio",id:O(this).attr("data-id")},O(this).fadeOut(300,function(){o.append('<div class="vlog-format-loader"><div class="uil-ripple-css"><div></div><div></div></div></div>'),o.fadeIn(300),s.find(".vlog-f-hide").fadeOut(300),O("body").addClass("vlog-in-play"),e.find(".container").html(""),e.find(".container").append(s.find(".entry-header").clone()).append(s.find(".entry-actions").clone()),O.post(vlog_js_settings.ajax_url+v,i,function(t){o.find(".vlog-format-loader").remove(),o.append('<div class="vlog-popup-wrapper">'+t+"</div>"),T(o),I(o),setTimeout(function(){var t;768<O(window).width()?(t=parseInt(o.find(".vlog-popup-wrapper").outerHeight())+72,O(".vlog-popup-wrapper > .vlog-cover-playlist-active").length||(t=t>vlog_js_settings.cover_height?t:vlog_js_settings.cover_height),n.animate({height:t},300)):(n.css("height","auto"),n.parent().css("height","auto"))},50),e.slideDown(300),w=!1})})),"gallery"==r&&(a=[],o.find(".gallery-item, figure").each(function(){a.push({src:O(this).find("a").attr("href"),caption:O(this).find(".wp-caption-text.gallery-caption, figcaption").text()})}),O.magnificPopup.open({items:a,gallery:{enabled:!0},type:"image",image:{titleSrc:function(t){t=t.data.caption;return"undefined"!=t?t:""}},removalDelay:300,mainClass:"mfp-with-fade",closeBtnInside:!1,closeMarkup:'<button title="%title%" type="button" class="mfp-close"><i class="fv fv-close"></i></button>',callbacks:{open:function(){O.magnificPopup.instance.next=function(){var t=this;t.wrap.removeClass("mfp-image-loaded"),setTimeout(function(){O.magnificPopup.proto.next.call(t)},120)},O.magnificPopup.instance.prev=function(){var t=this;t.wrap.removeClass("mfp-image-loaded"),setTimeout(function(){O.magnificPopup.proto.prev.call(t)},120)}},imageLoadComplete:function(){var t=this;setTimeout(function(){t.wrap.addClass("mfp-image-loaded")},16)}}})),"image"==r&&(r=O(this).attr("data-image"),l=O(this),O.magnificPopup.open({items:{src:r},type:"image",image:{titleSrc:function(t){var e=l.parent().find(".wp-caption-text, figcaption");return void 0!==e?e.text():""}},removalDelay:300,mainClass:"mfp-with-fade",closeBtnInside:!1,closeMarkup:'<button title="%title%" type="button" class="mfp-close"><i class="fv fv-close"></i></button>',callbacks:{open:function(){O.magnificPopup.instance.next=function(){var t=this;t.wrap.removeClass("mfp-image-loaded"),setTimeout(function(){O.magnificPopup.proto.next.call(t)},120)},O.magnificPopup.instance.prev=function(){var t=this;t.wrap.removeClass("mfp-image-loaded"),setTimeout(function(){O.magnificPopup.proto.prev.call(t)},120)}},imageLoadComplete:function(){var t=this;setTimeout(function(){t.wrap.addClass("mfp-image-loaded vlog-f-img")},16)}}})))}),O("body").on("click",".action-item.watch-later",function(t){t.preventDefault();var t=O(".vlog-watch-later"),e=t.find(".vlog-watch-later-count"),i=t.find(".vlog-menu-posts"),t=t.find(".vlog-wl-empty"),o=O(this).attr("data-action"),e=("add"==o?(O(this).find("i.fv").removeClass("fv-watch-later").addClass("fv-added"),e.text(parseInt(e.first().text())+1),O(this).attr("data-action","remove")):(O(this).find("i.fv").removeClass("fv-added").addClass("fv-watch-later"),e.text(parseInt(e.first().text())-1),O(this).attr("data-action","add")),0<parseInt(e.text())?(e.fadeIn(300),t.fadeOut(300)):(e.fadeOut(300),t.fadeIn(300)),O(this).find("span").removeClass("hidden"),O(this).find("span."+o).addClass("hidden"),{action:"vlog_watch_later",what:o,id:O(this).attr("data-id")});O.post(vlog_js_settings.ajax_url+v,e,function(t){i.html(t)})}),O("body").on("click",".vlog-remove-wl",function(t){t.preventDefault();var t=O(".vlog-watch-later"),e=t.find(".vlog-watch-later-count"),i=t.find(".vlog-wl-empty"),o=O(this).attr("data-id"),s=O(".action-item.watch-later"),n=O(".action-item.watch-later").attr("data-id"),t=(e.text(parseInt(e.first().text())-1),t.find('[data-id="'+o+'"]').closest(".wl-post").fadeOut(300).remove(),n==o&&(s.attr("data-action","add"),s.find("i.fv").removeClass("fv-added").addClass("fv-watch-later"),s.find("span.add").removeClass("hidden"),s.find("span.remove").addClass("hidden")),0==parseInt(e.text())&&(e.fadeOut(300),i.fadeIn(300)),{action:"vlog_watch_later",what:"remove",id:O(this).attr("data-id")});O.post(vlog_js_settings.ajax_url+v,t,function(t){})}),vlog_js_settings.watch_later_ajax&&O(".vlog-watch-later").length&&O.post(vlog_js_settings.ajax_url+v,{action:"vlog_load_watch_later"},function(t){O(".vlog-watch-later").html(t)}),O("body").on("click",".action-item.listen-later",function(t){t.preventDefault();var t=O(".vlog-listen-later"),e=t.find(".vlog-listen-later-count"),i=t.find(".vlog-menu-posts"),t=t.find(".vlog-ll-empty"),o=O(this).attr("data-action"),e=("add"==o?(O(this).find("i.fv").removeClass("fv-listen-later").addClass("fv-listen-close"),e.text(parseInt(e.first().text())+1),O(this).attr("data-action","remove")):(O(this).find("i.fv").removeClass("fv-listen-close").addClass("fv-listen-later"),e.text(parseInt(e.first().text())-1),O(this).attr("data-action","add")),0<parseInt(e.text())?(e.fadeIn(300),t.fadeOut(300)):(e.fadeOut(300),t.fadeIn(300)),O(this).find("span").removeClass("hidden"),O(this).find("span."+o).addClass("hidden"),{action:"vlog_listen_later",what:o,id:O(this).attr("data-id")});O.post(vlog_js_settings.ajax_url+v,e,function(t){i.html(t)})}),O("body").on("click",".vlog-remove-ll",function(t){t.preventDefault();var t=O(".vlog-listen-later"),e=t.find(".vlog-listen-later-count"),i=t.find(".vlog-ll-empty"),o=O(this).attr("data-id"),s=O(".action-item.listen-later"),n=O(".action-item.listen-later").attr("data-id"),t=(e.text(parseInt(e.first().text())-1),t.find('[data-id="'+o+'"]').closest(".wl-post").fadeOut(300).remove(),n==o&&(s.attr("data-action","add"),s.find("i.fv").removeClass("fv-listen-close").addClass("fv-listen-later"),s.find("span.add").removeClass("hidden"),s.find("span.remove").addClass("hidden")),0==parseInt(e.text())&&(e.fadeOut(300),i.fadeIn(300)),{action:"vlog_listen_later",what:"remove",id:O(this).attr("data-id")});O.post(vlog_js_settings.ajax_url+v,t,function(t){})}),vlog_js_settings.listen_later_ajax&&O(".vlog-listen-later").length&&O.post(vlog_js_settings.ajax_url+v,{action:"vlog_load_listen_later"},function(t){O(".vlog-listen-later").html(t)}),O("body").on("click",".action-item.cinema-mode",function(t){t.preventDefault();var e,t=O(this).closest(".vlog-featured-item").find(".vlog-format-content");O(window).scrollTop(0),O("body").addClass("vlog-popup-on"),t.addClass("vlog-popup"),O(".vlog-featured-slider").length&&(t.height(),t.width(),990<O(window).width()?t.height(O(window).height()).width(O(window).width()).css("top",-O(".vlog-site-header").height()).css("marginTop",-O(".vlog-site-header").height()/2):(t.height(O(window).height()).width(O(window).width()).css("top",0).css("marginTop",-O(".vlog-site-header").height()/2),O(".vlog-responsive-header").css("z-index",0),O(".owl-carousel").addClass("disable-owl-swipe"),O("body").on("touchmove",".disable-owl-swipe",function(t){t.stopPropagation()})),(e=O(".vlog-popup").parent().parent().parent()).attr("data-width",e.width()).height(O(window).height()).width(O(window).width()),O(".vlog-header-wrapper").css("z-index",0)),O(".vlog-single-content .vlog-format-content").length&&O(window).width()<1367&&(t.height(),t.width(),t.height(O(window).height()).width(O(window).width())),t.find(".vlog-popup-wrapper").length||t.closest(".vlog-cover-bg").find(".vlog-cover").click(),t.append('<a class="vlog-popup-close" href="javascript:void(0);"><i class="fv fv-close"></i></a>'),O(".vlog-featured-slider").length&&O(".vlog-popup-close").css("top",O(".vlog-site-header").height()-20)}),O("body").on("click",".vlog-quick-view",function(t){t.preventDefault();var t=O(this),e=t.data("id"),i=t.data("format"),o=(O("body").append('<div id="vlog-format-content-for-'+e+'" class="vlog-format-content '+i+'"><div class="vlog-popup-wrapper"></div></div>'),t.find(".vlog-format-action")),s=O("body").find("#vlog-format-content-for-"+e),n=s.find(".vlog-popup-wrapper"),a={action:"vlog_format_content",format:i,id:e};n.append('<div class="vlog-format-loader"><div class="uil-ripple-css"><div></div><div></div></div></div>'),O("body").addClass("vlog-popup-on"),s.addClass("vlog-popup"),s.append('<a class="vlog-popup-close vlog-quick-view-close" href="javascript:void(0);" data-id="'+e+'"><i class="fv fv-close"></i></a>'),o.fadeOut(300,function(){O.post(vlog_js_settings.ajax_url+v,a,function(t){n.append(t),T(s),I(n),$(s),o.show(),s.find(".vlog-format-loader").remove(),n.find("script").length&&O(document).on("playwire-ready",function(){u.find(".vlog-posts").css("height",$script.parent().height()-u.find(".vlog-mod-head").height()-25)})})})}),O("body").on("click",".vlog-popup-close",function(t){if(O(this).hasClass("vlog-quick-view-close"))return e=O(this).data("id"),O("#vlog-format-content-for-"+e+".vlog-popup").removeClass("vlog-popup"),O("body").removeClass("vlog-popup-on"),O("body").find("> #vlog-format-content-for-"+e).remove(),void O("#vlog-format-content-for-"+e+" > .vlog-popup-wrapper").html("");var e,i=O(this).closest(".vlog-cover-bg");O(".vlog-featured-slider").length&&(O(this).closest(".vlog-format-content").removeAttr("style"),O(".vlog-header-wrapper").css("z-index",10),(e=O(".vlog-popup").parent().parent().parent()).removeAttr("style").css("width",e.attr("data-width"))),O(".vlog-single-content .vlog-format-content").length&&O(window).width()<1367&&O(this).closest(".vlog-format-content").removeAttr("style"),O(this).closest(".vlog-format-content").removeClass("vlog-popup"),O("body").removeClass("vlog-popup-on"),O(".action-item, .entry-header").removeAttr("style"),O(this).remove(),O(".disable-owl-swipe").off("touchmove"),O(".owl-carousel").removeClass("disable-owl-swipe"),setTimeout(function(){1==!!window.sidebar&&i.removeAttr("style");var t=i.get(0).scrollHeight;i.find(".flowplayer").length&&(t=i.height()),i.animate({height:t},300)},50),O(window).width()<990&&O(".vlog-responsive-header").removeAttr("style")}),O(document).keyup(function(t){27==t.keyCode&&O("body").hasClass("vlog-popup-on")&&O(".vlog-popup-close").click()}),(vlog_js_settings.cover_inplay&&O(".vlog-cover-bg").length&&O(".vlog-cover-bg").hasClass("video")||vlog_js_settings.cover_inplay_audio&&O(".vlog-cover-bg").length&&O(".vlog-cover-bg").hasClass("audio"))&&(l=O(".vlog-cover-bg"),T(O(".vlog-format-content")),$(l),(u=O(".vlog-playlist")).length?setTimeout(function(){var t=l.find(".vlog-playlist-video iframe"),e=l.find(".vlog-playlist-video script");t.length||e.length||(t=l.find(".vlog-playlist-video video")),e.length?u.find(".vlog-posts").css("height",e.parent().height()-u.find(".vlog-mod-head").height()-25):u.find(".vlog-posts").css("height",t.height()-u.find(".vlog-mod-head").height()-25),O(".vlog-cover-bg").animate({height:l.get(0).scrollHeight},300),O(".vlog-format-inplay").slideDown(300)},500):(O(".vlog-cover-bg").animate({height:l.get(0).scrollHeight},300),O(".vlog-format-inplay").slideDown(300)),setTimeout(function(){var t;l.find("iframe").hasClass("zeus_iframe")&&1240<O(window).width()&&(500<(t=l.find(".vlog-popup-wrapper div").height())&&l.css("height",t+70))},1e3)),O(document).on("playwire-ready",function(){O(".vlog-cover-playlist-active").css("margin-bottom","40px"),u.find(".vlog-posts").css("height",$script.parent().height()-u.find(".vlog-mod-head").height())}),O(".vlog-main-nav").on("mouseenter","li",function(t){O(this).closest("body").width()<O(document).width()&&O(this).find("ul").addClass("vlog-rev")}),O("body").on("click",".vlog-single-cover .entry-actions a.comments, .vlog-single-cover .meta-comments a, .vlog-single-content .meta-comments a:first",function(t){t.preventDefault();var e=this.hash,t=O(e);O("html, body").stop().animate({scrollTop:t.offset().top},900,"swing",function(){window.location.hash=e})}),O(".vlog-site-content").find(".gallery, .wp-block-gallery").each(function(){var e=O(this),t=e.hasClass("wp-block-gallery")?"figure a":".gallery-icon a";O(this).find(t).magnificPopup({type:"image",gallery:{enabled:!0},image:{titleSrc:function(t){t=e.hasClass("wp-block-gallery")?t.el.closest("figure").find("figcaption"):t.el.closest(".gallery-item").find(".gallery-caption");return"undefined"!=t?t.text():""}},removalDelay:300,mainClass:"mfp-with-fade",closeBtnInside:!1,closeMarkup:'<button title="%title%" type="button" class="mfp-close"><i class="fv fv-close"></i></button>',callbacks:{open:function(){O.magnificPopup.instance.next=function(){var t=this;t.wrap.removeClass("mfp-image-loaded"),setTimeout(function(){O.magnificPopup.proto.next.call(t)},120)},O.magnificPopup.instance.prev=function(){var t=this;t.wrap.removeClass("mfp-image-loaded"),setTimeout(function(){O.magnificPopup.proto.prev.call(t)},120)}},imageLoadComplete:function(){var t=this;setTimeout(function(){t.wrap.addClass("mfp-image-loaded")},16)}}})}),(g=O(".vlog-content")).find("a.vlog-popup-img").length&&((g=g.find("a.vlog-popup-img")).find("img").each(function(){var t=O(this);t.hasClass("alignright")&&t.removeClass("alignright").parent().addClass("alignright"),t.hasClass("alignleft")&&t.removeClass("alignleft").parent().addClass("alignleft")}),g.magnificPopup({type:"image",gallery:{enabled:!0},image:{titleSrc:function(t){return t.el.closest("figure").find("figcaption").text()}},removalDelay:300,mainClass:"mfp-with-fade",closeBtnInside:!1,closeMarkup:'<button title="%title%" type="button" class="mfp-close"><i class="fv fv-close"></i></button>',callbacks:{open:function(){O.magnificPopup.instance.next=function(){var t=this;t.wrap.removeClass("mfp-image-loaded"),setTimeout(function(){O.magnificPopup.proto.next.call(t)},120)},O.magnificPopup.instance.prev=function(){var t=this;t.wrap.removeClass("mfp-image-loaded"),setTimeout(function(){O.magnificPopup.proto.prev.call(t)},120)}},imageLoadComplete:function(){var t=this;setTimeout(function(){t.wrap.addClass("mfp-image-loaded")},16)}}}));var C,b,x=!1,k=!1;function E(){1<window.devicePixelRatio&&(vlog_js_settings.logo_retina&&!x&&O(".vlog-logo").length&&(O(".vlog-logo").imagesLoaded(function(){O(".vlog-logo").each(function(){var t;O(this).is(":visible")&&(t=O(this).width(),O(this).attr("src",vlog_js_settings.logo_retina).css("width",t+"px"))})}),x=!0),vlog_js_settings.logo_mini_retina&&!k&&O(".vlog-logo-mini").length&&(O(".vlog-logo-mini").imagesLoaded(function(){O(".vlog-logo-mini").each(function(){var t;O(this).is(":visible")&&(t=O(this).width(),O(this).attr("src",vlog_js_settings.logo_mini_retina).css("width",t+"px"))})}),k=!0))}function T(t){t.fitVids({customSelector:["iframe[src*='www.dailymotion.com']","iframe[src*='player.twitch.tv']","iframe[src*='vine.co']","iframe[src*='videopress.com']","iframe[src*='www.facebook.com']","iframe[src*='jwplatform.com']","iframe[src*='wistia.net']","iframe[src*='vooplayer.com']","iframe[src*='zetatv.com.uy']","iframe[src*='wirewax.com']","iframe[src*='playwire.com']","iframe[src*='liveleak.com']","iframe[src*='drive.google.com']","iframe[src*='wistia.com']","iframe[src*='sproutvideo.com']","iframe[src*='xhamster.com']","iframe[src*='pornhub.com']","iframe[src*='rumble.com']","iframe[src*='aparat.com']","iframe[src*='flowplayer.com']","iframe[src*='vod.infomaniak.com']","iframe[src*='ustream.tv']","iframe[src*='vrgtrvideos.click']","iframe[src*='bitchute.com']","iframe[src*='themediacdn.com']","iframe[src*='odysee.com']"].join(",")})}function I(t){var e;vlog_js_settings.force_autoplay&&(t.find("video").length?((e=t.find("video")).attr("autoplay","true"),"function"==typeof mediaelementplayer&&e.mediaelementplayer()):t.find(".flowplayer").length?(e=t.find(".flowplayer")).attr("data-fvautoplay","true"):t.find("iframe").length?((e=t.find("iframe")).attr("src").match(/\?/gi)?e.attr("src",e.attr("src")+"&autoplay=1&auto_play=1"):e.attr("src",e.attr("src")+"?autoplay=1&auto_play=1"),e.attr("allow","autoplay; encrypted-media")):t.find("script").length?((e=t.find("script")).attr("data-onready","vlog_playwire"),e.attr("data-id","vlog_playwire")):t.find("audio").length&&((e=t.find("audio")).attr("autoplay","true"),"function"==typeof mediaelementplayer&&e.mediaelementplayer()))}function $(t){t.find("iframe").length&&((t=t.find("iframe")).attr("src").match(/\?/gi)?t.attr("src",t.attr("src")+"&rel=0"):t.attr("src",t.attr("src")+"?rel=0"))}function P(){var t;t=O(".vlog-body-box").length?".vlog-single-no-sid .alignfull { width: "+O(".vlog-body-box").width()+"px; margin-left: -"+O(".vlog-body-box").width()/2+"px; margin-right: -"+O(".vlog-body-box").width()/2+"px; left:50%; right:50%; max-width: initial; }":".vlog-single-no-sid .alignfull { width: "+O(window).width()+"px; margin-left: -"+O(window).width()/2+"px; margin-right: -"+O(window).width()/2+"px; left:50%; right:50%; max-width: initial; }",O("#vlog-align-fix").length?O("#vlog-align-fix").html(t):O("head").append('<style id="vlog-align-fix" type="text/css">'+t+"</style>")}function S(){var t,e;!vlog_js_settings.video_display_sticky||(t=O(".vlog-single-content .entry-media.video")).length&&(e=O(".vlog-popup-wrapper").height()-1,t.css("min-height",e))}function j(){var t,e;!O(".vlog-featured-custom").length||(t=O(".vlog-featured-custom .vlog-featured-item")).height()<(e=t.find(".vlog-featured-info-custom").height())+140&&(t.attr("style","height: "+(e+140)+"px !important"),t.find(".vlog-cover-bg").attr("style","height: "+(e+140)+"px !important"))}function M(t){function o(t){O(".vlog-main-nav").css("opacity",1),s(t.main_element,t.elements_to_compare)&&(n(t),o(t))}function s(t,e,i,o){void 0===i&&(i=0),void 0===o&&(o=0);var s=t.offset().left-i,i=t.outerWidth(!0),n=s+i+o,a=t.outerHeight(!0),r=!1;return O.each(e,function(){var t=O(this).offset().left,e=t+O(this).outerWidth(!0);if(r)return!1;r=O(this).closest(".vlog-header-4").length||O(this).closest(".vlog-header-6").length?t<=s||70<a:!(n<t||e<s)}),r}function n(t){O(t.menu_selector+" > #vlog-menu-item-more").show();var e=O(t.menu_selector+" > li:not(#vlog-menu-item-more)").last();e.data("breakopint",O(window).width()),O(t.menu_selector+" #vlog-menu-item-more > .sub-menu").prepend(e)}z(t)||O.each(t,function(t,e){return!!z(e.main_element)||(O.extend(i={},{menu_selector:"#header .vlog-header-1 .vlog-main-nav"},e),!z(O(i.menu_selector+" > #vlog-menu-item-more"))&&(O("#vlog-responsive-header").is(":visible")||o(i),void O(window).resize(function(){if(O("#vlog-responsive-header").is(":visible")||window.matchMedia("(max-width: 991px)").matches)return!1;o(i);var t=i,e=O(t.menu_selector+" > #vlog-menu-item-more > .sub-menu > li:first");e.data("breakopint")<O(window).width()&&e.insertBefore(O(t.menu_selector+" > #vlog-menu-item-more")),z(O(t.menu_selector+" > #vlog-menu-item-more > .sub-menu").children())&&O(t.menu_selector+" > #vlog-menu-item-more").hide(),setTimeout(function(){s(t.main_element,t.elements_to_compare)&&n(t)},200)})));var i})}function z(t){return void 0===t||(null===t||(0===t.length||(""===t||!("object"!=typeof t||!O.isEmptyObject(t)))))}vlog_js_settings.video_display_sticky&&O(".vlog-format-content.video").length&&((C=O(".vlog-format-content.video")).prepend('<div class="vlog-video-sticky-header clearfix">\n    <span class="widget-title h5">'+vlog_js_settings.video_sticky_title+'</span>\n    <a id="vlog-video-sticky-close" href="javascript:void(0)"><span class="fv fv-close"></span></a>\n</div>'),b=!1,O(window).scroll(function(){var t,e=O(".vlog-format-content.video iframe, .vlog-format-content.video video");e.length<1||O(window).width()<1200||C.hasClass("vlog-ignore-sticky")||(e=e.position().top+e.outerHeight(!0),t=O(window).scrollTop(),!b&&e<t&&(C.addClass("vlog-sticky-video"),b=!0,setTimeout(function(){C.addClass("vlog-sticky-animation")},300)),b&&t<e&&(C.removeClass("vlog-sticky-video").removeClass("vlog-sticky-animation"),b=!1))})),O("body").on("click","#vlog-video-sticky-close",function(t){t.preventDefault(),O(".vlog-format-content").removeClass("vlog-sticky-video").addClass("vlog-ignore-sticky")}),P(),S(),j(),O("body").imagesLoaded(function(){M([{main_element:O("#header .vlog-header-1 .vlog-main-nav"),elements_to_compare:[O("#header .vlog-header-1 .vlog-slot-r"),O("#header .vlog-header-1 .vlog-slot-l")],menu_selector:"#header .vlog-header-1 .vlog-main-nav"},{main_element:O("#header .vlog-header-2 .vlog-slot-r"),elements_to_compare:[O("#header .vlog-header-2 .vlog-slot-l")],menu_selector:"#header .vlog-header-2 .vlog-main-nav"},{main_element:O("#header .vlog-header-3 .vlog-slot-l"),elements_to_compare:[O("#header .vlog-header-3 .vlog-slot-r")],menu_selector:"#header .vlog-header-3 .vlog-main-nav"},{main_element:O("#header .vlog-header-4 .vlog-header-bottom .vlog-slot-c"),elements_to_compare:[O("#header .vlog-header-4 .vlog-header-bottom .vlog-main-navigation")],menu_selector:"#header .vlog-header-4 .vlog-main-nav"},{main_element:O("#header .vlog-header-5 .vlog-header-bottom .vlog-slot-l"),elements_to_compare:[O("#header .vlog-header-5 .vlog-header-bottom .vlog-slot-r")],menu_selector:"#header .vlog-header-5 .vlog-main-nav"},{main_element:O("#header .vlog-header-6 .vlog-header-bottom .vlog-slot-c"),elements_to_compare:[O("#header .vlog-header-6 .vlog-header-bottom .vlog-main-navigation")],menu_selector:"#header .vlog-header-6 .vlog-main-nav"},{main_element:O("#vlog-sticky-header .vlog-main-navigation"),elements_to_compare:[O("#vlog-sticky-header .vlog-slot-l"),O("#vlog-sticky-header .vlog-slot-r")],menu_selector:"#vlog-sticky-header .vlog-main-navigation .vlog-main-nav"},{main_element:O("#vlog-sticky-header-2 .vlog-slot-r"),elements_to_compare:[O("#vlog-sticky-header-2 .vlog-slot-l")],menu_selector:"#vlog-sticky-header-2 .vlog-main-nav"}])})})}(jQuery);
!function(d,l){"use strict";l.querySelector&&d.addEventListener&&"undefined"!=typeof URL&&(d.wp=d.wp||{},d.wp.receiveEmbedMessage||(d.wp.receiveEmbedMessage=function(e){var t=e.data;if((t||t.secret||t.message||t.value)&&!/[^a-zA-Z0-9]/.test(t.secret)){for(var s,r,n,a=l.querySelectorAll('iframe[data-secret="'+t.secret+'"]'),o=l.querySelectorAll('blockquote[data-secret="'+t.secret+'"]'),c=new RegExp("^https?:$","i"),i=0;i<o.length;i++)o[i].style.display="none";for(i=0;i<a.length;i++)s=a[i],e.source===s.contentWindow&&(s.removeAttribute("style"),"height"===t.message?(1e3<(r=parseInt(t.value,10))?r=1e3:~~r<200&&(r=200),s.height=r):"link"===t.message&&(r=new URL(s.getAttribute("src")),n=new URL(t.value),c.test(n.protocol))&&n.host===r.host&&l.activeElement===s&&(d.top.location.href=t.value))}},d.addEventListener("message",d.wp.receiveEmbedMessage,!1),l.addEventListener("DOMContentLoaded",function(){for(var e,t,s=l.querySelectorAll("iframe.wp-embedded-content"),r=0;r<s.length;r++)(t=(e=s[r]).getAttribute("data-secret"))||(t=Math.random().toString(36).substring(2,12),e.src+="#?secret="+t,e.setAttribute("data-secret",t)),e.contentWindow.postMessage({message:"ready",secret:t},"*")},!1)))}(window,document);
!function(t){let e=t(document),n=(t(".gutentor-element-progressbar"),t(".gutentor-element-counter"),t(window)),a=t("body"),o=n.width(),i=!1,r=!1;function s(t){return"boolean"==typeof t?t:"true"===t}function d(t){let e={};t[0].hasAttribute("data-dots")&&(e.dots=s(t.data("dots"))),t[0].hasAttribute("data-arrows")&&(e.arrows=s(t.data("arrows"))),t[0].hasAttribute("data-infinite")&&(e.infinite=s(t.data("infinite"))),t[0].hasAttribute("data-speed")&&(e.speed=parseInt(t.data("speed"))),t[0].hasAttribute("data-slideitemdesktop")&&(e.slidesToShow=parseInt(t.data("slideitemdesktop"))),t[0].hasAttribute("data-slidescroll-desktop")&&(e.slidesToScroll=parseInt(t.data("slidescroll-desktop"))),t[0].hasAttribute("data-nextarrow")?e.nextArrow='<span class="slick-next"><i class="'+t.data("nextarrow")+'"></i></span>':e.nextArrow='<span class="slick-next"><i class="fas fa-angle-right"></i></span>',t[0].hasAttribute("data-prevarrow")?e.prevArrow='<span class="slick-prev"><i class="'+t.data("prevarrow")+'"></i></span>':e.prevArrow='<span class="slick-prev"><i class="fas fa-angle-left"></i></span>',t[0].hasAttribute("data-autoplay")&&(e.autoplay=s(t.data("autoplay")),t[0].hasAttribute("data-autoplayspeed")&&(e.autoplaySpeed=parseInt(t.data("autoplayspeed"))),t[0].hasAttribute("data-pauseonfocus")&&(e.pauseOnFocus=s(t.data("pauseonfocus"))),t[0].hasAttribute("data-pauseonhover")&&(e.pauseOnHover=s(t.data("pauseonhover")))),t[0].hasAttribute("data-draggable")&&(e.draggable=s(t.data("draggable"))),t[0].hasAttribute("data-fade")&&(e.fade=s(t.data("fade"))),t[0].hasAttribute("data-blockimagesliderfade")&&(e.fade=s(t.data("blockimagesliderfade"))),t[0].hasAttribute("data-cmondesktop")&&(e.centerMode=s(t.data("cmondesktop")),s(t.data("cmondesktop"))&&t[0].hasAttribute("data-cmpaddingdesktop")&&(e.centerPadding=t.data("cmpaddingdesktop")));let n={},o={};t[0].hasAttribute("data-slideitemtablet")&&(n.slidesToShow=parseInt(t.data("slideitemtablet"))),t[0].hasAttribute("data-slidescroll-tablet")&&(n.slidesToScroll=parseInt(t.data("slidescroll-tablet"))),t[0].hasAttribute("data-dotstablet")&&(n.dots=s(t.data("dotstablet"))),t[0].hasAttribute("data-arrowstablet")&&(n.arrows=s(t.data("arrowstablet"))),t[0].hasAttribute("data-cmontablet")&&(n.centerMode=s(t.data("cmontablet")),s(t.data("cmontablet"))&&t[0].hasAttribute("data-cmpaddingtablet")&&(n.centerPadding=t.data("cmpaddingtablet"))),t[0].hasAttribute("data-slideitemmobile")&&(o.slidesToShow=parseInt(t.data("slideitemmobile"))),t[0].hasAttribute("data-slidescroll-mobile")&&(o.slidesToScroll=parseInt(t.data("slidescroll-mobile"))),t[0].hasAttribute("data-dotsmobile")&&(o.dots=s(t.data("dotsmobile"))),t[0].hasAttribute("data-arrowsmobile")&&(o.arrows=s(t.data("arrowsmobile"))),t[0].hasAttribute("data-cmonmobile")&&(o.centerMode=s(t.data("cmonmobile")),s(t.data("cmonmobile"))&&t[0].hasAttribute("data-cmpaddingmobile")&&(o.centerPadding=t.data("cmpaddingmobile")));let i={breakpoint:1024,settings:n},r={breakpoint:480,settings:o};e.responsive=[],e.responsive.push(i),e.responsive.push(r),t[0].hasAttribute("data-arrowspositiondesktop")&&"gutentor-slick-a-default-desktop"!==t.data("arrowspositiondesktop")&&(e.appendArrows=t.siblings(".gutentor-slick-arrows")),a.hasClass("rtl")&&(e.rtl=!0),t.hasClass("slick-initialized")?t.slick("refresh"):t.slick(e)}function l(e,n=!1,a=!1){let o={};o=n?{type:"image",closeBtnInside:!1,fixedContentPos:!1}:{type:"iframe",mainClass:"mfp-fade",removalDelay:160,preloader:!1,fixedContentPos:!1},a&&(o.gallery={enabled:!0,navigateByImgClick:!0,preload:[0,1]},o.callbacks={elementParse:function(t){"g-popup-video"===t.el[0].getAttribute("data-media-type")?t.type="iframe":t.type="image"}}),void 0!==t.fn.magnificPopup&&e.magnificPopup(o)}function c(e){let n=t(window).scrollTop(),a=n+t(window).height(),o=t(e).offset().top;return o+t(e).height()<=a&&o>=n}function u(t){c(t)&&(t.hasClass("g-c-loaded")||(t.addClass("g-c-loaded"),function(t){let e=parseInt(t.data("start")),n=parseInt(t.data("end")),a=parseInt(t.data("duration"));"function"==typeof CountUp&&new CountUp(t[0],e,n,0,a).start()}(t)))}function g(e){c(e)&&(e.hasClass("g-c-loaded")||(e.addClass("g-c-loaded"),function(e){let n={barColor:e.data("barcolor"),trackColor:e.data("trackcolor"),scaleColor:e.data("scalecolor"),size:e.data("size"),lineCap:e.data("linecap"),animate:e.data("animate"),lineWidth:e.data("linewidth")};"function"==typeof t.fn.easyPieChart&&e.easyPieChart(n)}(e)))}function p(t){c(t)&&(t.hasClass("g-c-loaded")||(t.addClass("g-c-loaded"),t.css("width",t.attr("data-width")+"%")))}function f(e=null){e?(e.find(".gutentor-single-item-number,.gutentor-counter-number-main").each(function(){u(t(this))}),e.find(".gutentor-progressbar-circular,.gutentor-element-progressbar-circular").each(function(){g(t(this))}),e.find(".gutentor-porgress-bar-item .progressbar,.gutentor-element-progressbar-box .gutentor-element-progressbar-horizontal").each(function(){p(t(this))})):(t(".gutentor-single-item-number,.gutentor-counter-number-main").each(function(){u(t(this))}),t(".gutentor-progressbar-circular,.gutentor-element-progressbar-circular").each(function(){g(t(this))}),t(".gutentor-porgress-bar-item .progressbar,.gutentor-element-progressbar-box .gutentor-element-progressbar-horizontal").each(function(){p(t(this))}))}function m(t){let e=t.data("eventdate");if(null==e)return t.html("<span>Please set validate Date and time for countdown </span>"),!1;let n=t.data("expiredtext"),a=t.find(".day"),o=t.find(".hour"),i=t.find(".min"),r=t.find(".sec"),s=e.split("T");if(2!==s.length)return!1;let d=s[0],l=s[1],c=d.split("-");if(3!==c.length)return!1;let u=l.split(":");if(3!==u.length)return!1;let g=parseInt(c[0]),p=parseInt(c[1])-1,f=parseInt(c[2]),m=parseInt(u[0]),h=parseInt(u[1]),v=parseInt(u[2]),b=new Date(g,p,f,m,h,v,0).getTime(),w=setInterval(function(){let e=(new Date).getTime(),s=b-e,d=Math.floor(s/864e5),l=Math.floor(s%864e5/36e5),c=Math.floor(s%36e5/6e4),u=Math.floor(s%6e4/1e3);if(a.text(d),o.text(l),i.text(c),r.text(u),s<0){clearInterval(w);const e=document.createElement("span");e.textContent=n,t.html(e.outerHTML)}},1e3)}function h(n){e.on("click",n,function(e){e.preventDefault(),".gutentor-show-more-button"===n?t(this).closest(".gutentor-single-item-content").addClass("show-more-content"):".gutentor-show-less-action-button"===n?t(this).closest(".gutentor-single-item-content").removeClass("show-more-content"):".gutentor-adv-s-m-btn"===n?t(this).closest(".g-m-advance-show-more").addClass("g-show-more-content"):".gutentor-adv-s-l-btn"===n&&t(this).closest(".g-m-advance-show-more").removeClass("g-show-more-content")})}function v(e,n,a=!1){n.innerBlockType=e.data("i-b"),n.blockId=e.find(".gutentor-post-module").data("gbid"),n.postId=e.data("gpid"),e.find(".gutentor-filter-navigation").length?(n.gTax=e.find(".gutentor-filter-navigation").data("gtax"),n.gTerm=e.find(".gutentor-filter-item-active").children().attr("data-gterm"),"gAll"===n.gTerm&&(n.allOpt=e.find(".gutentor-filter-item-active").children().attr("data-all-opt"))):(n.gTax="default",n.gTerm="default"),n.paged||(n.paged=1),e.find(".g-fm-search").length&&(n.s=e.find(".g-fm-search").val()),t.ajax({type:"GET",url:gutentorLS.restUrl+"gutentor-self-api/v1/gadvancedb",data:n,beforeSend:function(t){e.addClass(e.data("l-ani")),t.setRequestHeader("X-WP-Nonce",gutentorLS.restNonce),e.removeClass("gutentor-loaded"),e.find(".gutentor-post-module .grid-container").append(function(t){let e;switch(t){case"gp4-animation-1":case"gp4-animation-4":e='<div class="gutentor-loading-wrap"></div>';break;case"gp4-animation-2":e='<div class="gutentor-loading-wrap"><div class="gutentor-loading-2"><div></div><div></div><div></div></div></div>';break;case"gp4-animation-3":e='<div class="gutentor-loading-wrap"><div class="gutentor-loading-3"><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div></div></div>';break;case"gp4-animation-5":e='<div class="gutentor-loading-wrap"><div class="gutentor-loading-5"></div></div>';break;default:e=""}return e}(e.data("l-ani")))}}).done(function(o){a?e.find(".gutentor-post-module .grid-container .grid-row").append(t(o.pBlog).find(".grid-container .grid-row").html()):e.find(".gutentor-post-module").replaceWith(o.pBlog),e.find(".gutentor-pagination").children().not(":first-child").not(":last-child").remove();let i=parseInt(n.paged),r=parseInt(o.max_num_pages);e.find(".gutentor-pagination").children(".gutentor-pagination-prev").after(o.pagination).children().attr("data-gpage",i>1?i-1:1),e.attr("data-maxnumpages",r),e.find(".gutentor-pagination").children(".gutentor-pagination-next").children().attr("data-gpage",r>i?i+1:r),i<=1?(e.find(".gutentor-pagination").children(".gutentor-pagination-prev").children().addClass("gutentor-disabled"),e.find(".gutentor-navigation").find(".g-nav-prev").addClass("gutentor-disabled")):(e.find(".gutentor-pagination").children(".gutentor-pagination-prev").children().removeClass("gutentor-disabled"),e.find(".gutentor-navigation").find(".g-nav-prev").removeClass("gutentor-disabled")),r<=i?(e.find(".gutentor-pagination").children(".gutentor-pagination-next").children().addClass("gutentor-disabled"),e.find(".gutentor-navigation").find(".g-nav-next").addClass("gutentor-disabled"),e.find(".gutentor-post-footer.g-ap-load-more-template a.gutentor-button").addClass("gutentor-disabled")):(e.find(".gutentor-pagination").children(".gutentor-pagination-next").children().removeClass("gutentor-disabled"),e.find(".gutentor-navigation").find(".g-nav-next").removeClass("gutentor-disabled"),e.find(".gutentor-post-footer.g-ap-load-more-template a.gutentor-button").removeClass("gutentor-disabled")),e.find(".gutentor-post-module").each(function(){!function(t){if(t.hasClass("g-masonry")){let e=t.find(".grid-row");e.imagesLoaded(function(){e.masonry("destroy")})}N(t)}(t(this))})}).fail(function(t,e,n){console.log(t+" :: "+e+" :: "+n)}).always(function(){t(".g-edd-cart .edd-no-js").hide(),t(".g-edd-cart .edd-add-to-cart").addClass("edd-has-js"),e.removeClass(e.data("l-ani")),e.addClass("gutentor-loaded"),e.find(".gutentor-post-module .grid-container").find(".gutentor-loading-wrap").remove()})}f(),t(window).scroll(function(){f()}),e.on("click",".gutentor-filter-navigation .gutentor-filter-item>a",function(e){e.preventDefault();let n=t(this),a=n.closest(".gutentor-filter-list"),o=n.closest(".gutentor-advanced-post-module");if(n.parent().hasClass("gutentor-filter-item-active"))return!1;a.find(".gutentor-filter-item").removeClass("gutentor-filter-item-active"),n.parent().addClass("gutentor-filter-item-active"),o.find(".gutentor-post-footer.g-ap-load-more-template a.gutentor-button").removeAttr("data-gpage"),o.find(".g-fm-search").length&&o.find(".g-fm-search").val(""),v(o,{})}),e.on("click",".gutentor-pagination a",function(e){e.preventDefault();let n=t(this),a=n.closest(".gutentor-advanced-post-module");if(n.hasClass("gutentor-disabled"))return!1;if(n.parent().hasClass("gutentor-pagination-active"))return!1;if(n.parent().siblings(".gutentor-pagination-active").children().attr("data-gpage")==n.attr("data-gpage"))return!1;let o={paged:n.attr("data-gpage")};if(parseInt(a.attr("data-maxnumpages"))<parseInt(o.paged))return!1;v(a,o)}),e.on("click",".gutentor-navigation a",function(e){e.preventDefault();let n=t(this),a=n.closest(".gutentor-navigation"),o=n.closest(".gutentor-advanced-post-module");if(n.hasClass("gutentor-disabled"))return!1;let i,r=parseInt(a.attr("data-gpage"));i=n.hasClass("g-nav-prev")?r-1:r+1;let s={paged:i};a.attr("data-gpage",i),v(o,s)}),e.on("click",".gutentor-post-footer.g-ap-load-more-template a.gutentor-button",function(e){e.preventDefault();let n=t(this),a=n.closest(".gutentor-advanced-post-module");if(n.hasClass("gutentor-disabled"))return!1;n.attr("data-gpage")||n.attr("data-gpage",2);let o={paged:n.attr("data-gpage")};n.attr("data-gpage",parseInt(n.attr("data-gpage"))+1),v(a,o,!0)}),e.on("click",".g-search-icon",function(e){e.preventDefault(),v(t(this).closest(".gutentor-advanced-post-module"),{})}),t(document).on("keydown",".gutentor-advanced-post-module .g-fm-search",function(e){13===e.which&&(e.preventDefault(),v(t(this).closest(".gutentor-advanced-post-module"),{}))});let b=!1,w=[];function y(e,n){if(b)w.push({gma:e,gThis:n});else if(b=!0,n.attr("devices")){let a=JSON.parse(n.attr("devices"));Array.isArray(a)&&(a.includes("desktop")&&window.screen.width>991||a.includes("mobile")&&window.screen.width<768||a.includes("tablet")&&window.screen.width>=767&&window.screen.width<=991)&&t.magnificPopup.open(e)}else t.magnificPopup.open(e)}const C={};let k;function x(){function n(t){return!(!t||"1"!=t)}let a={},o={},i={},r="";t(".g-adv-popup").each(function(s){let d=t(this),l="g-adv-popup-mfp ";if(o[s]={},a[s]={},i[s]=".gadvpopupwow{visibility:hidden;}",d.attr("closeBtnCol")&&(i[s]+="."+d.attr("id")+"-mfp .mfp-close{color:"+d.attr("closeBtnCol")+";}"),d.attr("bgCol")||d.attr("bgGradient")){let t=d.attr("bgType")?d.attr("bgType"):"",e="solid"===t&&d.attr("bgCol")?d.attr("bgCol"):"",n="gradient"===t&&d.attr("bgGradient")?d.attr("bgGradient"):"",a="solid"===t&&e?"none":"",o="gradient"===t&&d.attr("bgGradient")?"transparent":"";i[s]+=".gutentor-active .mfp-bg{"+I("background-color",e)+I("background-image",a)+I("background-image",n)+I("background-color",o)+"}"}if(l+=d.attr("id")+"-mfp ",a[s]={type:"inline",items:{src:"#"+d.attr("id")}},d.attr("type")&&(l+="g-adv-popup-"+d.attr("type")+" ","modal"===d.attr("wval")&&(a[s].modal=!0),"modal"===d.attr("type")&&d.attr("wval")&&d.attr("wunit")&&(i[s]+="."+d.attr("id")+"-mfp .mfp-container .mfp-content{width:"+d.attr("wval")+d.attr("wunit")+";}"),"side"===d.attr("type")&&d.attr("side")&&((d.attr("x")||d.attr("y"))&&d.attr("sideunit")&&("top-left"===d.attr("side")?(r+="left:"+d.attr("x")+d.attr("sideunit")+" !important;",r+="top:"+d.attr("y")+d.attr("sideunit")+" !important;"):"top-right"===d.attr("side")?(r+="right:"+d.attr("x")+d.attr("sideunit")+" !important;",r+="top:"+d.attr("y")+d.attr("sideunit")+" !important;"):"bottom-left"===d.attr("side")?(r+="left:"+d.attr("x")+d.attr("sideunit")+" !important;",r+="bottom:"+d.attr("y")+d.attr("sideunit")+" !important;"):"bottom-right"===d.attr("side")&&(r+="right:"+d.attr("x")+d.attr("sideunit")+" !important;",r+="bottom:"+d.attr("y")+d.attr("sideunit")+" !important;")),d.attr("wval")&&d.attr("wunit")&&(r+="width:"+d.attr("wval")+d.attr("wunit")+";"),i[s]+="."+d.attr("id")+"-mfp {"+r+"}",l+="g-adv-popup-side-"+d.attr("side")+" ")),l&&(a[s].mainClass=l),a[s].closeOnBgClick=n(d.attr("closeonbgclick")),a[s].closeBtnInside=n(d.attr("closebtninside")),a[s].showCloseBtn=n(d.attr("showclosebtn")),a[s].enableEscapeKey=n(d.attr("enableescapekey")),a[s].fixedContentPos=n(d.attr("fixedcontentpos")),a[s].fixedBgPos=n(d.attr("fixedbgpos")),!a[s].closeBtnInside&&t("body").hasClass("admin-bar")&&(i[s]+="."+d.attr("id")+"-mfp {top:32px !important;}"),a[s].callbacks={beforeOpen:function(){i[s]&&t("head").append('<style id="gutentor-adv-popup-style">'+i[s]+"</style>"),d.attr("animation")&&(this.st.mainClass=this.st.mainClass+" animated "+d.attr("animation"))},open:function(){P(t(".mfp-container")),"undefined"!=typeof WOW&&new WOW({boxClass:"gadvpopupwow"}).init(),t(".mfp-bg").removeClass(this.st.mainClass),"top"!==d.attr("type")&&"bottom"!==d.attr("type")&&"side"!==d.attr("type")||t(".mfp-bg").remove()},close:function(){t("#gutentor-adv-popup-style").remove(),"1"===d.attr("dismissenabled")&&function(t,e,n){try{if("forever"===n)return void localStorage.setItem(T(t),"1");var a={hour:3600,day:86400,week:604800,month:2592e3,custom:1},o=Math.max(1,parseInt(e,10)||1)*(a[n]||86400);localStorage.setItem(T(t),String(Date.now()+1e3*o))}catch(t){}}(d.attr("id"),d.attr("dismissduration"),d.attr("dismissunit")),b=!1,setTimeout(function(){if(w.length>0){const t=w.shift();return t.gThis&&D(t.gThis.attr("id"))?(b=!0,t.gThis.remove&&t.gThis.remove(),void y(t.gma,t.gThis)):void y(t.gma,t.gThis)}"1"===d.attr("chainenable")&&function(e){if(!e||"1"!==e.attr("chainenable"))return;const n=e.attr("chaingroup"),a=parseInt(e.attr("chainorder"),10);if(!n||isNaN(a))return;let o=a+1;for(let e=0;e<200;e++){let e=null;if(t(".g-adv-popup").each(function(){const a=t(this);if(a.attr("chaingroup")===n&&parseInt(a.attr("chainorder"),10)===o)return e=a,!1}),!e)return;if(D(e.attr("id"))){o++;continue}const a=C[e.attr("id")];return void(a&&y(a,e))}}(d)},250)}},d.attr("trigger")){if("1"===d.attr("dismissenabled")&&D(d.attr("id")))return void d.remove();"1"===d.attr("chainenable")&&parseInt(d.attr("chainorder"),10)>1||("load"===d.attr("trigger")?d.attr("timing")?setTimeout(function(){y(a[s],d)},1e3*parseFloat(d.attr("timing"))):y(a[s],d):"click"===d.attr("trigger")?e.on("click","."+d.attr("clickclass"),function(t){t.preventDefault(),y(a[s],d)}):"idle"===d.attr("trigger")?function(t,e){function n(){clearTimeout(k),e.attr("timing")&&(k=setTimeout(function(){e.attr("g-adv-popup-open")||(y(t,e),e.attr("g-adv-popup-open",!0))},1e3*parseFloat(e.attr("timing"))))}window.onload=n,window.onmousemove=n,window.onmousedown=n,window.ontouchstart=n,window.ontouchmove=n,window.onclick=n,window.onkeydown=n,window.addEventListener("scroll",n,!0)}(a[s],d):"scroll"===d.attr("trigger")&&(o[s].lastScrollTop=0,o[s].open=!1,o[s].lastDirection="",o[s].scrollDistance=t(window).scrollTop(),o[s].triggerDistance=0,d.attr("sval")&&(o[s].triggerDistance=parseInt(d.attr("sval")),d.attr("sunit")&&"%"===d.attr("sunit")&&(o[s].triggerDistance=t(window).height()*o[s].triggerDistance/100),t(window).scroll(function(e){if(!o[s].open){let e=t(this).scrollTop();e>o[s].lastScrollTop?("downscroll"!==o[s].lastDirection?o[s].scrollDistance=o[s].scrollDistance-(e-o[s].lastScrollTop):o[s].scrollDistance=o[s].scrollDistance+(e-o[s].lastScrollTop),o[s].lastDirection="downscroll","top"===d.attr("direction")&&o[s].scrollDistance>o[s].triggerDistance&&(y(a[s],d),o[s].open=!0)):("upscroll"!==o[s].lastDirection?o[s].scrollDistance=o[s].scrollDistance-(e-o[s].lastScrollTop):o[s].scrollDistance=o[s].scrollDistance+(o[s].lastScrollTop-e),o[s].lastDirection="upscroll","bottom"===d.attr("direction")&&o[s].scrollDistance>o[s].triggerDistance&&(y(a[s],d),o[s].open=!0)),o[s].lastScrollTop=e}}))))}C[d.attr("id")]=a[s]})}function T(t){return"gutentor_popup_dismissed_"+t}function D(t){try{var e=localStorage.getItem(T(t));return!!e&&("1"===e||Date.now()<parseInt(e,10))}catch(t){return!1}}function I(t,e){return e?`${t}: ${e};`:""}function A(t){let e=t.closest(".gutentor-advanced-post-module");e.attr("data-maxnumpages")&&parseInt(e.attr("data-maxnumpages"))<2?t.addClass("gutentor-disabled"):t.removeClass("gutentor-disabled")}function S(){e.on("mouseenter",".g-m-popover.g-po-e-hover .g-m-popover-normal",function(e){t(this).next(".g-m-popover-content").removeClass("d-none")}),e.on("mouseleave",".g-m-popover.g-po-e-hover .g-m-popover-normal",function(e){t(this).next(".g-m-popover-content").addClass("d-none")}),e.on("click",".g-m-popover.g-po-e-hover .g-m-popover-normal",function(t){t.preventDefault()}),e.on("click",".g-m-popover.g-po-e-click .g-m-popover-normal",function(e){t(this).next(".g-m-popover-content").toggleClass("d-none"),e.preventDefault()}),t(".g-m-popover.g-m-popover-c-on").find(".g-m-popover-content").removeClass("d-none")}function M(t){let e=t.find(".gutentor-news-ticker-data"),n=t.find(".gutentor-news-ticker-controls").find(".gutentor-news-ticker-pause"),a=t.find(".gutentor-news-ticker-controls").find(".gutentor-news-ticker-prev"),o=t.find(".gutentor-news-ticker-controls").find(".gutentor-news-ticker-next"),i={type:"horizontal",direction:"right",speed:600,controls:{toggle:n}};t.attr("data-type")&&(i.type=t.attr("data-type"),"marquee"!==t.attr("data-type")&&(i.controls.prev=a,i.controls.next=o)),t.attr("data-direction")&&(i.direction=t.attr("data-direction")),t.attr("data-speed")&&(i.speed=Number(t.attr("data-speed"))),t.attr("data-pauseOnHover")&&(i.pauseOnHover="1"===t.attr("data-pauseOnHover")),e.AcmeTicker(i)}function _(t){let e=t.attr("data-icon"),n=t.find(".gutentor-button");n.hasClass("gutentor-icon-before")&&n.prepend('<i class="gutentor-button-icon '+e+'" ></i>'),n.hasClass("gutentor-icon-after")&&n.append('<i class="gutentor-button-icon '+e+'" ></i>')}function L(n){void 0!==t.fn.flexMenu&&n.length&&(n.flexMenu({threshold:0,cutoff:0,linkText:'<span class="screen-reader-text">More</span>',linkTextAll:'<span class="screen-reader-text">More</span>',linkTitle:"",linkTitleAll:"",showOnHover:o>991}),r||e.click(function(e){let n=t("ul.flexMenu-popup");t(e.target).closest("li.flexMenu-viewMore ").length>0||!n.length||!n.is(":visible")||t("li.flexMenu-viewMore > a").trigger("click")}),r=!0)}function P(e){f(e),e.find(".gutentor-post-footer.g-ap-load-more-template a.gutentor-button").each(function(){A(t(this))}),void 0!==t.fn.slick&&(e.find(".gutentor-slider-wrapper").each(function(){d(t(this))}),e.find(".gutentor-module-slider-row").each(function(){d(t(this))}),e.find(".gutentor-carousel-row").each(function(){d(t(this))}),e.find(".gutentor-image-carousel-row").each(function(){d(t(this))}),e.find(".gutentor-module-carousel-row").each(function(){d(t(this))})),e.find(".gutentor-countdown-wrapper").each(function(){m(t(this))}),S(),void 0!==t.fn.AcmeTicker&&e.find(".gutentor-post-module-p5").each(function(){M(t(this))}),e.find(".g-edd-cart").each(function(){_(t(this))}),L(e.find(".g-responsive-menu")),E(),void 0!==t.fn.theiaStickySidebar&&e.find(".gutentor-enable-sticky-column").each(function(){U(t(this))}),W(),void 0!==t.fn.imagesLoaded&&(e.find(".gutentor-gallery-wrapper").each(function(){O(t(this))}),t(".gutentor-post-module-p1").each(function(){N(t(this))})),i||"function"==typeof t.fn.isotope&&B(),void 0!==t.fn.isotope&&(e.find(".g-gm-item-wrap").hasClass("isotope")&&e.find(".g-gm-item-wrap").isotope("reloadItems").isotope(),e.find(".gutentor-filter-item-wrap").hasClass("isotope")&&e.find(".gutentor-filter-item-wrap").isotope("reloadItems").isotope()),e.find(".gutentor-gallery-wrapper").each(function(){let e=t(this);e.hasClass("enable-masonry")&&e.find(".full-width-row").masonry({itemSelector:".gutentor-gallery-item"})}),e.find(".gutentor-post-module-p1").each(function(){let e=t(this);e.hasClass("g-masonry")&&e.find(".grid-row").masonry({itemSelector:".gutentor-post"})}),e.find(".g-gm-module").each(function(e,n){let a=t(this);a.hasClass("g-on-masonry")&&a.find(".g-gm-item-wrap").masonry({itemSelector:".g-gm-col "})})}function B(){let n,a={},o={},r={},s=t(".g-fm-module");function d(e){let a=e.closest(".g-fm-module");n=a.attr("data-filter-number"),r[n]=new RegExp(e.val(),"gi");let o=e.closest(".g-fm-module").find(".g-gm-item-wrap");o.isotope(),o.data("isotope").filteredItems.length?t(".g-nothing-found").hide():t(".g-nothing-found").show()}s.length&&s.find(".g-gm-item-wrap").isotope({itemSelector:".g-gm-col",layoutMode:"fitRows",filter:function(){let e=t(this),a=!n||!r[n]||e.text().match(r[n]),i=!n||!o[n]||e.is(o[n]);return a&&i}}),e.on("click",".g-fm-fi",function(){t(this).siblings().removeClass("g-fm-active"),t(this).addClass("g-fm-active");let e=t(this).closest(".g-fm-module");n=e.attr("data-filter-number");let i=t(this),r=i.parents(".g-fm-fis").attr("data-filter-group");void 0===a[n]&&(a[n]={}),a[n][r]=i.attr("data-filter"),void 0===o[n]&&(o[n]={}),o[n]=function(t){let e="";for(let n in t)e+=t[n];return e}(a[n]),i.closest(".g-fm-module").find(".g-gm-item-wrap").isotope()}),t(".g-gm-module").find(".grid-container").each(function(){let e=t(".g-nothing-found-text").text();e=e||"Nothing Found!!!!";let n='<div class="g-nothing-found">'+e+"</div>";t(this).append(n),t(".g-nothing-found").hide()}),t(".g-fm-module .g-fm-search").keyup(function(t,e){let n;return e=e||100,function(){clearTimeout(n);let a=arguments,o=this;n=setTimeout(function(){t.apply(o,a)},e)}}(function(){d(t(this))})),t(".g-fm-module .g-fm-search").on("search",function(){d(t(this))}),e.find(".g-fm-module").each(function(e,n){t(this).attr("data-filter-number",e)}),e.find(".g-gm-module").each(function(e,n){let a=t(this);a.hasClass("g-on-masonry")&&a.find(".g-gm-item-wrap").isotope({layoutMode:"masonry"});let o=t(this);if(o.hasClass("g-on-popup")){let e=o.find(".g-gm-item-wrap");void 0!==t.fn.imagesLoaded&&e.imagesLoaded(function(){o.fadeIn("slow"),e.masonry({itemSelector:".g-gm-col "})})}let i=o.find(".g-gm-popup"),r=i.attr("data-media-type");l(i,"g-popup-img"===r,!0)}),i=!0}function O(t){if(t.hasClass("enable-masonry")){let e=t.find(".full-width-row");e.imagesLoaded(function(){t.fadeIn("slow"),e.masonry({itemSelector:".gutentor-gallery-item"})})}l(t.find(".image-gallery"),!0,!0)}function N(t){if(t.hasClass("g-masonry")){let e=t.find(".grid-row");e.imagesLoaded(function(){t.fadeIn("slow"),e.masonry({itemSelector:".gutentor-post"})})}}function W(){let t,e=document.getElementsByClassName("gutentor-bg-video");for(t=0;t<e.length;t++)e[t].hasAttribute("autoplay")&&(e[t].playing||(e[t].hasAttribute("muted")||(e[t].muted=!0),e[t].play()))}function E(){let n,a={},o={},i={},r=t(".gutentor-filter-item-wrap");r.length&&r.isotope({itemSelector:".gutentor-gallery-item",layoutMode:"fitRows",filter:function(){let e=t(this),a=!n||!i[n]||e.text().match(i[n]),r=!n||!o[n]||e.is(o[n]);return a&&r}}),e.on("click",".gutentor-filter-btn",function(){t(this).siblings().removeClass("gutentor-filter-btn-active"),t(this).addClass("gutentor-filter-btn-active");let e=t(this).closest(".gutentor-filter-wrapper");n=e.attr("data-filter-number");let i=t(this),r=i.parents(".gutentor-filter-group").attr("data-filter-group");void 0===a[n]&&(a[n]={}),a[n][r]=i.attr("data-filter"),void 0===o[n]&&(o[n]={}),o[n]=function(t){let e="";for(let n in t)e+=t[n];return e}(a[n]),t(this).closest(".gutentor-filter-container").next(".gutentor-filter-item-wrap").isotope()}),t(".gutentor-search-filter").keyup(function(t,e){let n;return e=e||100,function(){clearTimeout(n);let a=arguments,o=this;n=setTimeout(function(){t.apply(o,a)},e)}}(function(){let e=t(this).closest(".gutentor-filter-wrapper");n=e.attr("data-filter-number"),i[n]=new RegExp(t(this).val(),"gi"),t(this).closest(".gutentor-filter-container").next(".gutentor-filter-item-wrap").isotope()})),e.find(".gutentor-filter-wrapper").each(function(e,n){let a=t(this);a.attr("data-filter-number",e),l(a.find(".image-gallery"),!0,!0);let o=a.find(".gutentor-filter-item-wrap");a.hasClass("enable-masonry")&&o.isotope({layoutMode:"masonry"})})}function U(t){let e=t.find(".grid-row:first").children(".gutentor-single-column"),n=t.attr("data-top"),a=t.attr("data-bottom");e.theiaStickySidebar({additionalMarginTop:parseInt(n),additionalMarginBottom:parseInt(a)})}e.ready(function(){function n(e){let n=e.closest(".gutentor-module-accordion"),a=e.closest(".gutentor-module-accordion-item"),o=a.find(".gutentor-module-accordion-body"),i=a.siblings(".gutentor-module-accordion-item"),r=e.find(".gutentor-module-accordion-icon");n.hasClass("gutentor-module-accordion-enable-toggle")&&(i.removeClass("gutentor-module-accordion-active"),i.each(function(){t(this).find(".gutentor-module-accordion-body").slideUp(),t(this).find(".gutentor-module-accordion-icon").removeClass("gutentor-module-accordion-icon-active")})),o.is(":visible")?(o.slideUp(),r.removeClass("gutentor-module-accordion-icon-active"),o.removeClass("gutentor-module-accordion-icon-active"),a.removeClass("gutentor-module-accordion-active")):(o.slideDown(),o.addClass("gutentor-module-accordion-icon-active"),r.addClass("gutentor-module-accordion-icon-active"),a.addClass("gutentor-module-accordion-active"),P(o))}function o(t){let e=t.index(),n=t.closest(".gutentor-module-tabs-wrap"),a=".gm-tc-"+n.data("id");t.hasClass("gutentor-tabs-nav-active")||(t.addClass("gutentor-tabs-nav-active"),t.siblings().removeClass("gutentor-tabs-nav-active"),n.find(a).eq(e).siblings().removeClass("gutentor-tabs-content-active"),n.find(a).eq(e).addClass("gutentor-tabs-content-active"),P(n.find(a).eq(e)))}"is_admin"in gutentorLS&&"is_on_adv_popup"in gutentorLS&&"adv_popup_load"in gutentorLS&&gutentorLS.is_on_adv_popup&&!gutentorLS.is_admin&&function(){let e=[],n=[];function o(o){o.find("script").each(function(){e.includes(t(this).attr("src"))||t(this).attr("src")&&t("head").append("<script type='text/javascript' src='"+t(this).attr("src")+"' />"),t(this).remove()}),o.find("link").each(function(){n.includes(t(this).attr("href"))||t(this).attr("href")&&t(this).attr("rel")&&"stylesheet"===t(this).attr("rel")&&t("head").append("<link rel='stylesheet' href='"+t(this).attr("href")+"' />"),t(this).remove()}),o.find(".wow").addClass("gadvpopupwow").removeClass("wow"),a.append(o),x()}if(function(){let n=window.document.getElementsByTagName("script");t(n).each(function(){t(this).attr("src")&&e.push(t(this).attr("src"))})}(),function(){let e=window.document.getElementsByTagName("link");t(e).each(function(){t(this).attr("href")&&n.push(t(this).attr("href"))})}(),"ajax"!=gutentorLS.adv_popup_load)o(t(".g-adv-popup"));else{let e={condition:gutentorLS.condition};t.ajax({type:"GET",url:gutentorLS.restUrl+"gutentor-self-api/v1/popup",data:e,beforeSend:function(t){t.setRequestHeader("X-WP-Nonce",gutentorLS.restNonce)}}).done(function(e){e&&e.map((e,n)=>{o(t(e))})}).fail(function(t,e,n){console.log(t+" :: "+e+" :: "+n)}).always(function(){})}}(),e.on("click",".g-adv-popup-close",function(e){e.preventDefault(),t.magnificPopup.close()}),"undefined"!=typeof WOW&&(new WOW).init(),t(".gutentor-video-popup-holder").each(function(){l(t(this))}),t(".g-v-btn").each(function(){l(t(this))}),t(".g-v-fp-btn").each(function(){l(t(this))}),t(".gutentor-element-button-link-popup").each(function(){l(t(this))}),t(".gutentor-post-footer.g-ap-load-more-template a.gutentor-button").each(function(){A(t(this))}),void 0!==t.fn.slick&&(t(".gutentor-slider-wrapper").each(function(){d(t(this))}),t(".gutentor-module-slider-row").each(function(){d(t(this))}),t(".gutentor-carousel-row").each(function(){d(t(this))}),t(".gutentor-image-carousel-row").each(function(){d(t(this))}),t(".gutentor-module-carousel-row").each(function(){d(t(this))})),e.on("click",".gutentor-accordion-heading",function(e){var n=t(this),a=n.closest(".gutentor-accordion-wrap"),o=n.closest(".gutentor-single-item").find(".gutentor-accordion-body");a.siblings(".gutentor-accordion-wrap").each(function(){t(this).find(".gutentor-accordion-body").slideUp(),t(this).find(".gutentor-accordion-heading").removeClass("active")}),o.is(":visible")?(o.slideUp().removeClass("gutentor-active-body"),n.removeClass("active")):(o.slideDown().addClass("gutentor-active-body"),n.addClass("active")),e.preventDefault()}),e.on("click",".gutentor-module-accordion-item-heading",function(e){n(t(this)),e.preventDefault()}),e.on("keypress",".gutentor-module-accordion-item-heading",function(e){13==e.keyCode&&(n(t(this)),e.preventDefault())}),e.on("click",".g-toc-header",function(e){let n=t(this),a=n.closest(".gutentor-module-table-of-contents"),o=a.find(".g-toc-body");a.hasClass("g-enable-collapsible")&&(o.is(":visible")?(o.slideUp(),n.removeClass("g-collapsible-active")):(n.addClass("g-collapsible-active"),o.slideDown())),e.preventDefault()}),e.on("click",".gutentor-module-tabs-item",function(e){o(t(this)),e.preventDefault()}),e.on("keypress",".gutentor-module-tabs-item",function(e){13==e.keyCode&&(o(t(this)),e.preventDefault())}),e.on("click",".gutentor-countup-wrap",function(){t(this).addClass("gutentor-countup-open")}),e.on("click",".gutentor-countup-box-close",function(){t(".gutentor-countup-box").addClass("hide-input"),t(this).hide()}),e.on("click",".gutentor-countup",function(){t(".gutentor-countup-box").removeClass("hide-input")}),t(".gutentor-countdown-wrapper").each(function(){m(t(this))}),S(),L(t(".g-responsive-menu")),h(".gutentor-show-more-button"),h(".gutentor-show-less-action-button"),h(".gutentor-adv-s-m-btn"),h(".gutentor-adv-s-l-btn"),void 0!==t.fn.AcmeTicker&&(t(".gutentor-post-module-p5").each(function(){M(t(this))}),t(document).on("acmeTickerToggle",function(e,n){t(n).closest(".gutentor-news-ticker").toggleClass("gutentor-ticker-pause")})),e.on("click",".gutentor-tabs-list",function(){let e=t(this),n=e.data("index"),a=e.closest(".gutentor-tabs").next(".gutentor-tabs-content-wrap").find("."+n);a.siblings().removeClass("gutentor-tab-content-active"),e.siblings().removeClass("gutentor-tab-active"),a.addClass("gutentor-tab-content-active"),e.addClass("gutentor-tab-active")}),t(".g-edd-cart").each(function(){_(t(this))})}),e.on("click",".g-gm-popup",function(e){e.preventDefault(),t(this).magnificPopup.open()}),n.on("load",function(){void 0!==t.fn.imagesLoaded&&(t(".gutentor-gallery-wrapper").each(function(){O(t(this))}),t(".gutentor-post-module-p1").each(function(){N(t(this))})),E(),void 0!==t.fn.theiaStickySidebar&&t(".gutentor-enable-sticky-column").each(function(){U(t(this))}),t(document.body).on("added_to_cart",function(e,n){setTimeout(function(){t(".gutentor-woo-add-to-cart .added_to_cart.wc-forward").addClass("gutentor-button button gutentor-post-button")},1)}),void 0!==t.fn.isotope&&B(),W()})}(jQuery);