/*! jQuery Migrate v1.4.1 | (c) jQuery Foundation and other contributors | jquery.org/license */ "undefined"==typeof jQuery.migrateMute&&(jQuery.migrateMute=!0),function(a,b,c){function d(c){var d=b.console;f[c]||(f[c]=!0,a.migrateWarnings.push(c),d&&d.warn&&!a.migrateMute&&(d.warn("JQMIGRATE: "+c),a.migrateTrace&&d.trace&&d.trace()))}function e(b,c,e,f){if(Object.defineProperty)try{return void Object.defineProperty(b,c,{configurable:!0,enumerable:!0,get:function(){return d(f),e},set:function(a){d(f),e=a}})}catch(g){}a._definePropertyBroken=!0,b[c]=e}a.migrateVersion="1.4.1";var f={};a.migrateWarnings=[],b.console&&b.console.log&&b.console.log("JQMIGRATE: Migrate is installed"+(a.migrateMute?"":" with logging active")+", version "+a.migrateVersion),a.migrateTrace===c&&(a.migrateTrace=!0),a.migrateReset=function(){f={},a.migrateWarnings.length=0},"BackCompat"===document.compatMode&&d("jQuery is not compatible with Quirks Mode");var g=a("",{size:1}).attr("size")&&a.attrFn,h=a.attr,i=a.attrHooks.value&&a.attrHooks.value.get||function(){return null},j=a.attrHooks.value&&a.attrHooks.value.set||function(){return c},k=/^(?:input|button)$/i,l=/^[238]$/,m=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,n=/^(?:checked|selected)$/i;e(a,"attrFn",g||{},"jQuery.attrFn is deprecated"),a.attr=function(b,e,f,i){var j=e.toLowerCase(),o=b&&b.nodeType;return i&&(h.length<4&&d("jQuery.fn.attr( props, pass ) is deprecated"),b&&!l.test(o)&&(g?e in g:a.isFunction(a.fn[e])))?a(b)[e](f):("type"===e&&f!==c&&k.test(b.nodeName)&&b.parentNode&&d("Can't change the 'type' of an input or button in IE 6/7/8"),!a.attrHooks[j]&&m.test(j)&&(a.attrHooks[j]={get:function(b,d){var e,f=a.prop(b,d);return f===!0||"boolean"!=typeof f&&(e=b.getAttributeNode(d))&&e.nodeValue!==!1?d.toLowerCase():c},set:function(b,c,d){var e;return c===!1?a.removeAttr(b,d):(e=a.propFix[d]||d,e in b&&(b[e]=!0),b.setAttribute(d,d.toLowerCase())),d}},n.test(j)&&d("jQuery.fn.attr('"+j+"') might use property instead of attribute")),h.call(a,b,e,f))},a.attrHooks.value={get:function(a,b){var c=(a.nodeName||"").toLowerCase();return"button"===c?i.apply(this,arguments):("input"!==c&&"option"!==c&&d("jQuery.fn.attr('value') no longer gets properties"),b in a?a.value:null)},set:function(a,b){var c=(a.nodeName||"").toLowerCase();return"button"===c?j.apply(this,arguments):("input"!==c&&"option"!==c&&d("jQuery.fn.attr('value', val) no longer sets properties"),void(a.value=b))}};var o,p,q=a.fn.init,r=a.find,s=a.parseJSON,t=/^\s*)([^>]*)$/;a.fn.init=function(b,e,f){var g,h;return b&&"string"==typeof b&&!a.isPlainObject(e)&&(g=w.exec(a.trim(b)))&&g[0]&&(t.test(b)||d("$(html) HTML strings must start with '<' character"),g[3]&&d("$(html) HTML text after last tag is ignored"),"#"===g[0].charAt(0)&&(d("HTML string cannot start with a '#' character"),a.error("JQMIGRATE: Invalid selector string (XSS)")),e&&e.context&&e.context.nodeType&&(e=e.context),a.parseHTML)?q.call(this,a.parseHTML(g[2],e&&e.ownerDocument||e||document,!0),e,f):(h=q.apply(this,arguments),b&&b.selector!==c?(h.selector=b.selector,h.context=b.context):(h.selector="string"==typeof b?b:"",b&&(h.context=b.nodeType?b:e||document)),h)},a.fn.init.prototype=a.fn,a.find=function(a){var b=Array.prototype.slice.call(arguments);if("string"==typeof a&&u.test(a))try{document.querySelector(a)}catch(c){a=a.replace(v,function(a,b,c,d){return"["+b+c+'"'+d+'"]'});try{document.querySelector(a),d("Attribute selector with '#' must be quoted: "+b[0]),b[0]=a}catch(e){d("Attribute selector with '#' was not fixed: "+b[0])}}return r.apply(this,b)};var x;for(x in r)Object.prototype.hasOwnProperty.call(r,x)&&(a.find[x]=r[x]);a.parseJSON=function(a){return a?s.apply(this,arguments):(d("jQuery.parseJSON requires a valid JSON string"),null)},a.uaMatch=function(a){a=a.toLowerCase();var b=/(chrome)[ \/]([\w.]+)/.exec(a)||/(webkit)[ \/]([\w.]+)/.exec(a)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(a)||/(msie) ([\w.]+)/.exec(a)||a.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(a)||[];return{browser:b[1]||"",version:b[2]||"0"}},a.browser||(o=a.uaMatch(navigator.userAgent),p={},o.browser&&(p[o.browser]=!0,p.version=o.version),p.chrome?p.webkit=!0:p.webkit&&(p.safari=!0),a.browser=p),e(a,"browser",a.browser,"jQuery.browser is deprecated"),a.boxModel=a.support.boxModel="CSS1Compat"===document.compatMode,e(a,"boxModel",a.boxModel,"jQuery.boxModel is deprecated"),e(a.support,"boxModel",a.support.boxModel,"jQuery.support.boxModel is deprecated"),a.sub=function(){function b(a,c){return new b.fn.init(a,c)}a.extend(!0,b,this),b.superclass=this,b.fn=b.prototype=this(),b.fn.constructor=b,b.sub=this.sub,b.fn.init=function(d,e){var f=a.fn.init.call(this,d,e,c);return f instanceof b?f:b(f)},b.fn.init.prototype=b.fn;var c=b(document);return d("jQuery.sub() is deprecated"),b},a.fn.size=function(){return d("jQuery.fn.size() is deprecated; use the .length property"),this.length};var y=!1;a.swap&&a.each(["height","width","reliableMarginRight"],function(b,c){var d=a.cssHooks[c]&&a.cssHooks[c].get;d&&(a.cssHooks[c].get=function(){var a;return y=!0,a=d.apply(this,arguments),y=!1,a})}),a.swap=function(a,b,c,e){var f,g,h={};y||d("jQuery.swap() is undocumented and deprecated");for(g in b)h[g]=a.style[g],a.style[g]=b[g];f=c.apply(a,e||[]);for(g in b)a.style[g]=h[g];return f},a.ajaxSetup({converters:{"text json":a.parseJSON}});var z=a.fn.data;a.fn.data=function(b){var e,f,g=this[0];return!g||"events"!==b||1!==arguments.length||(e=a.data(g,b),f=a._data(g,b),e!==c&&e!==f||f===c)?z.apply(this,arguments):(d("Use of jQuery.fn.data('events') is deprecated"),f)};var A=/\/(java|ecma)script/i;a.clean||(a.clean=function(b,c,e,f){c=c||document,c=!c.nodeType&&c[0]||c,c=c.ownerDocument||c,d("jQuery.clean() is deprecated");var g,h,i,j,k=[];if(a.merge(k,a.buildFragment(b,c).childNodes),e)for(i=function(a){return!a.type||A.test(a.type)?f?f.push(a.parentNode?a.parentNode.removeChild(a):a):e.appendChild(a):void 0},g=0;null!=(h=k[g]);g++)a.nodeName(h,"script")&&i(h)||(e.appendChild(h),"undefined"!=typeof h.getElementsByTagName&&(j=a.grep(a.merge([],h.getElementsByTagName("script")),i),k.splice.apply(k,[g+1,0].concat(j)),g+=j.length));return k});var B=a.event.add,C=a.event.remove,D=a.event.trigger,E=a.fn.toggle,F=a.fn.live,G=a.fn.die,H=a.fn.load,I="ajaxStart|ajaxStop|ajaxSend|ajaxComplete|ajaxError|ajaxSuccess",J=new RegExp("\\b(?:"+I+")\\b"),K=/(?:^|\s)hover(\.\S+|)\b/,L=function(b){return"string"!=typeof b||a.event.special.hover?b:(K.test(b)&&d("'hover' pseudo-event is deprecated, use 'mouseenter mouseleave'"),b&&b.replace(K,"mouseenter$1 mouseleave$1"))};a.event.props&&"attrChange"!==a.event.props[0]&&a.event.props.unshift("attrChange","attrName","relatedNode","srcElement"),a.event.dispatch&&e(a.event,"handle",a.event.dispatch,"jQuery.event.handle is undocumented and deprecated"),a.event.add=function(a,b,c,e,f){a!==document&&J.test(b)&&d("AJAX events should be attached to document: "+b),B.call(this,a,L(b||""),c,e,f)},a.event.remove=function(a,b,c,d,e){C.call(this,a,L(b)||"",c,d,e)},a.each(["load","unload","error"],function(b,c){a.fn[c]=function(){var a=Array.prototype.slice.call(arguments,0);return"load"===c&&"string"==typeof a[0]?H.apply(this,a):(d("jQuery.fn."+c+"() is deprecated"),a.splice(0,0,c),arguments.length?this.bind.apply(this,a):(this.triggerHandler.apply(this,a),this))}}),a.fn.toggle=function(b,c){if(!a.isFunction(b)||!a.isFunction(c))return E.apply(this,arguments);d("jQuery.fn.toggle(handler, handler...) is deprecated");var e=arguments,f=b.guid||a.guid++,g=0,h=function(c){var d=(a._data(this,"lastToggle"+b.guid)||0)%g;return a._data(this,"lastToggle"+b.guid,d+1),c.preventDefault(),e[d].apply(this,arguments)||!1};for(h.guid=f;g').addClass('tool-'+self.options.position).addClass('toolbar-'+self.options.style).append('
').append('
').appendTo('body').css('opacity',0).hide();self.toolbar_arrow=self.toolbar.find('.arrow');self.initializeToolbar();},overrideOptions:function(){var self=this;$.each(self.options,function($option){if(typeof(self.$elem.data('toolbar-'+$option))!="undefined"){self.options[$option]=self.$elem.data('toolbar-'+$option);}});},initializeToolbar:function(){var self=this;self.populateContent();self.setTrigger();self.toolbarWidth=self.toolbar.width();},setTrigger:function(){var self=this;if(self.options.event=='onload'){$(window).load(function(event){event.preventDefault();self.show();});} if(self.options.event=='click'){self.$elem.on('click',function(event){event.preventDefault();if(self.$elem.hasClass('pressed')){self.hide();}else{self.show();}});if(self.options.hideOnClick){$('html').on("click.toolbar",function(event){if(event.target!=self.elem&&self.$elem.has(event.target).length===0&&self.toolbar.has(event.target).length===0&&self.toolbar.is(":visible")){self.hide();}});}} if(self.options.hover){var moveTime;function decideTimeout(){if(self.$elem.hasClass('pressed')){moveTime=setTimeout(function(){self.hide();},150);}else{clearTimeout(moveTime);};};self.$elem.on({mouseenter:function(event){if(self.$elem.hasClass('pressed')){clearTimeout(moveTime);}else{self.show();}}});self.$elem.parent().on({mouseleave:function(event){decideTimeout();}});$('.tool-container').on({mouseenter:function(event){clearTimeout(moveTime);},mouseleave:function(event){decideTimeout();}});} $(window).resize(function(event){event.stopPropagation();if(self.toolbar.is(":visible")){self.toolbarCss=self.getCoordinates(self.options.position,20);self.collisionDetection();self.toolbar.css(self.toolbarCss);self.toolbar_arrow.css(self.arrowCss);}});},populateContent:function(){var self=this;var location=self.toolbar.find('.tool-items');var content=$(self.options.content).clone(true).find('a').addClass('tool-item');location.html(content);location.find('.tool-item').on('click',function(event){if(typeof window.glt_request_uri=='undefined') event.preventDefault();self.$elem.trigger('toolbarItemClick',this);});},calculatePosition:function(){var self=this;self.arrowCss={};self.toolbarCss=self.getCoordinates(self.options.position,self.options.adjustment);self.toolbarCss.position='fixed';self.toolbarCss.zIndex=self.options.zIndex;self.collisionDetection();self.toolbar.css(self.toolbarCss);self.toolbar_arrow.css(self.arrowCss);},getCoordinates:function(position,adjustment){var self=this;self.coordinates=self.$elem.offset();if(self.options.adjustment&&self.options.adjustment[self.options.position]){adjustment=self.options.adjustment[self.options.position]+adjustment;} switch(self.options.position){case'top':return{left:self.coordinates.left-(self.toolbar.width()/2)+(self.$elem.outerWidth()/2),top:self.coordinates.top-self.$elem.outerHeight()-adjustment,right:'auto'};case'left':return{left:self.coordinates.left-(self.toolbar.width()/2)-(self.$elem.outerWidth()/2)-adjustment,top:self.coordinates.top-(self.toolbar.height()/2)+(self.$elem.outerHeight()/2),right:'auto'};case'right':return{left:self.coordinates.left+(self.toolbar.width()/2)+(self.$elem.outerWidth()/2)+adjustment,top:self.coordinates.top-(self.toolbar.height()/2)+(self.$elem.outerHeight()/2),right:'auto'};case'bottom':return{left:self.coordinates.left-(self.toolbar.width()/2)+(self.$elem.outerWidth()/2),top:self.coordinates.top+self.$elem.outerHeight()+adjustment,right:'auto'};}},collisionDetection:function(){var self=this;var edgeOffset=20;if(self.options.position=='top'||self.options.position=='bottom'){self.arrowCss={left:'50%',right:'50%'};if(self.toolbarCss.left
';j.settings={},c.swipebox.close=function(){g.closeSlide()},c.swipebox.extend=function(){return g},j.init=function(){j.settings=c.extend({},i,f),c.isArray(e)?(k=e,g.target=c(a),g.init(j.settings.initialIndexOnArray)):c(b).on("click",l,function(a){if("slide current"===a.target.parentNode.className)return!1;c.isArray(e)||(g.destroy(),h=c(l),g.actions()),k=[];var b,d,f;f||(d="data-rel",f=c(this).attr(d)),f||(d="rel",f=c(this).attr(d)),h=f&&""!==f&&"nofollow"!==f?c(l).filter("["+d+'="'+f+'"]'):c(l),h.each(function(){var a=null,b=null;c(this).attr("title")&&(a=c(this).attr("title")),c(this).attr("href")&&(b=c(this).attr("href")),k.push({href:b,title:a})}),b=h.index(c(this)),a.preventDefault(),a.stopPropagation(),g.target=c(a.target),g.init(b)})},g={init:function(a){j.settings.beforeOpen&&j.settings.beforeOpen(),this.target.trigger("swipebox-start"),c.swipebox.isOpen=!0,this.build(),this.openSlide(a),this.openMedia(a),this.preloadMedia(a+1),this.preloadMedia(a-1),j.settings.afterOpen&&j.settings.afterOpen(a)},build:function(){var a,b=this;c("body").append(s),o&&j.settings.useSVG===!0&&(a=c("#swipebox-close").css("background-image"),a=a.replace("png","svg"),c("#swipebox-prev, #swipebox-next, #swipebox-close").css({"background-image":a})),m&&j.settings.removeBarsOnMobile&&c("#swipebox-bottom-bar, #swipebox-top-bar").remove(),c.each(k,function(){c("#swipebox-slider").append('
')}),b.setDim(),b.actions(),n&&b.gesture(),b.keyboard(),b.animBars(),b.resize()},setDim:function(){var b,d,e={};"onorientationchange"in a?a.addEventListener("orientationchange",function(){0===a.orientation?(b=p,d=q):(90===a.orientation||-90===a.orientation)&&(b=q,d=p)},!1):(b=a.innerWidth?a.innerWidth:c(a).width(),d=a.innerHeight?a.innerHeight:c(a).height()),e={width:b,height:d},c("#swipebox-overlay").css(e)},resize:function(){var b=this;c(a).resize(function(){b.setDim()}).resize()},supportTransition:function(){var a,c="transition WebkitTransition MozTransition OTransition msTransition KhtmlTransition".split(" ");for(a=0;a=m||i)){var q=.75-Math.abs(d)/s.height();s.css({top:d+"px"}),s.css({opacity:q}),i=!0}e=b,b=o.pageX-n.pageX,g=100*b/p,!j&&!i&&Math.abs(b)>=l&&(c("#swipebox-slider").css({"-webkit-transition":"",transition:""}),j=!0),j&&(b>0?0===a?c("#swipebox-overlay").addClass("leftSpringTouch"):(c("#swipebox-overlay").removeClass("leftSpringTouch").removeClass("rightSpringTouch"),c("#swipebox-slider").css({"-webkit-transform":"translate3d("+(r+g)+"%, 0, 0)",transform:"translate3d("+(r+g)+"%, 0, 0)"})):0>b&&(k.length===a+1?c("#swipebox-overlay").addClass("rightSpringTouch"):(c("#swipebox-overlay").removeClass("leftSpringTouch").removeClass("rightSpringTouch"),c("#swipebox-slider").css({"-webkit-transform":"translate3d("+(r+g)+"%, 0, 0)",transform:"translate3d("+(r+g)+"%, 0, 0)"}))))}),!1}).bind("touchend",function(a){if(a.preventDefault(),a.stopPropagation(),c("#swipebox-slider").css({"-webkit-transition":"-webkit-transform 0.4s ease",transition:"transform 0.4s ease"}),d=o.pageY-n.pageY,b=o.pageX-n.pageX,g=100*b/p,i)if(i=!1,Math.abs(d)>=2*m&&Math.abs(d)>Math.abs(f)){var k=d>0?s.height():-s.height();s.animate({top:k+"px",opacity:0},300,function(){h.closeSlide()})}else s.animate({top:0,opacity:1},300);else j?(j=!1,b>=l&&b>=e?h.getPrev():-l>=b&&e>=b&&h.getNext()):q.hasClass("visible-bars")?(h.clearTimeout(),h.hideBars()):(h.showBars(),h.setTimeout());c("#swipebox-slider").css({"-webkit-transform":"translate3d("+r+"%, 0, 0)",transform:"translate3d("+r+"%, 0, 0)"}),c("#swipebox-overlay").removeClass("leftSpringTouch").removeClass("rightSpringTouch"),c(".touching").off("touchmove").removeClass("touching")})},setTimeout:function(){if(j.settings.hideBarsDelay>0){var b=this;b.clearTimeout(),b.timeout=a.setTimeout(function(){b.hideBars()},j.settings.hideBarsDelay)}},clearTimeout:function(){a.clearTimeout(this.timeout),this.timeout=null},showBars:function(){var a=c("#swipebox-top-bar, #swipebox-bottom-bar");this.doCssTrans()?a.addClass("visible-bars"):(c("#swipebox-top-bar").animate({top:0},500),c("#swipebox-bottom-bar").animate({bottom:0},500),setTimeout(function(){a.addClass("visible-bars")},1e3))},hideBars:function(){var a=c("#swipebox-top-bar, #swipebox-bottom-bar");this.doCssTrans()?a.removeClass("visible-bars"):(c("#swipebox-top-bar").animate({top:"-50px"},500),c("#swipebox-bottom-bar").animate({bottom:"-50px"},500),setTimeout(function(){a.removeClass("visible-bars")},1e3))},animBars:function(){var a=this,b=c("#swipebox-top-bar, #swipebox-bottom-bar");b.addClass("visible-bars"),a.setTimeout(),c("#swipebox-slider").click(function(){b.hasClass("visible-bars")||(a.showBars(),a.setTimeout())}),c("#swipebox-bottom-bar").hover(function(){a.showBars(),b.addClass("visible-bars"),a.clearTimeout()},function(){j.settings.hideBarsDelay>0&&(b.removeClass("visible-bars"),a.setTimeout())})},keyboard:function(){var b=this;c(a).bind("keyup",function(a){a.preventDefault(),a.stopPropagation(),37===a.keyCode?b.getPrev():39===a.keyCode?b.getNext():27===a.keyCode&&b.closeSlide()})},actions:function(){var a=this,b="touchend click";k.length<2?(c("#swipebox-bottom-bar").hide(),d===k[1]&&c("#swipebox-top-bar").hide()):(c("#swipebox-prev").bind(b,function(b){b.preventDefault(),b.stopPropagation(),a.getPrev(),a.setTimeout()}),c("#swipebox-next").bind(b,function(b){b.preventDefault(),b.stopPropagation(),a.getNext(),a.setTimeout()})),c("#swipebox-close").bind(b,function(){a.closeSlide()})},setSlide:function(a,b){b=b||!1;var d=c("#swipebox-slider");r=100*-a,this.doCssTrans()?d.css({"-webkit-transform":"translate3d("+100*-a+"%, 0, 0)",transform:"translate3d("+100*-a+"%, 0, 0)"}):d.animate({left:100*-a+"%"}),c("#swipebox-slider .slide").removeClass("current"),c("#swipebox-slider .slide").eq(a).addClass("current"),this.setTitle(a),b&&d.fadeIn(),c("#swipebox-prev, #swipebox-next").removeClass("disabled"),0===a?c("#swipebox-prev").addClass("disabled"):a===k.length-1&&j.settings.loopAtEnd!==!0&&c("#swipebox-next").addClass("disabled")},openSlide:function(b){c("html").addClass("swipebox-html"),n?(c("html").addClass("swipebox-touch"),j.settings.hideCloseButtonOnMobile&&c("html").addClass("swipebox-no-close-button")):c("html").addClass("swipebox-no-touch"),c(a).trigger("resize"),this.setSlide(b,!0)},preloadMedia:function(a){var b=this,c=null;k[a]!==d&&(c=k[a].href),b.isVideo(c)?b.openMedia(a):setTimeout(function(){b.openMedia(a)},1e3)},openMedia:function(a){var b,e,f=this;return k[a]!==d&&(b=k[a].href),0>a||a>=k.length?!1:(e=c("#swipebox-slider .slide").eq(a),void(f.isVideo(b)?(e.html(f.getVideo(b)),j.settings.afterMedia&&j.settings.afterMedia(a)):(e.addClass("slide-loading"),f.loadMedia(b,function(){e.removeClass("slide-loading"),e.html(this),j.settings.afterMedia&&j.settings.afterMedia(a)}))))},setTitle:function(a){var b=null;c("#swipebox-title").empty(),k[a]!==d&&(b=k[a].title),b?(c("#swipebox-top-bar").show(),c("#swipebox-title").append(b)):c("#swipebox-top-bar").hide()},isVideo:function(a){if(a){if(a.match(/(youtube\.com|youtube-nocookie\.com)\/watch\?v=([a-zA-Z0-9\-_]+)/)||a.match(/vimeo\.com\/([0-9]*)/)||a.match(/youtu\.be\/([a-zA-Z0-9\-_]+)/))return!0;if(a.toLowerCase().indexOf("swipeboxvideo=1")>=0)return!0}},parseUri:function(a,d){var e=b.createElement("a"),f={};return e.href=/decodeURIComponent(a),e.search&&(f=JSON.parse('{"'+e.search.toLowerCase().replace("?","").replace(/&/g,'","').replace(/=/g,'":"')+'"}')),c.isPlainObject(d)&&(f=c.extend(f,d,j.settings.queryStringData)),c.map(f,function(a,b){return a&&a>""?encodeURIComponent(b)+"="+encodeURIComponent(a):void 0}).join("&")},getVideo:function(a){var b="",c=a.match(/((?:www\.)?youtube\.com|(?:www\.)?youtube-nocookie\.com)\/watch\?v=([a-zA-Z0-9\-_]+)/),d=a.match(/(?:www\.)?youtu\.be\/([a-zA-Z0-9\-_]+)/),e=a.match(/(?:www\.)?vimeo\.com\/([0-9]*)/),f="";return c||d?(d&&(c=d),f=g.parseUri(a,{autoplay:j.settings.autoplayVideos?"1":"0",v:""}),b=''):e?(f=g.parseUri(a,{autoplay:j.settings.autoplayVideos?"1":"0",byline:"0",portrait:"0",color:j.settings.vimeoColor}),b=''):b='','
'+b+"
"},loadMedia:function(a,b){if(0===a.trim().indexOf("#"))b.call(c("
",{"class":"swipebox-inline-container"}).append(c(a).clone().toggleClass(j.settings.toggleClassOnLoad)));else if(!this.isVideo(a)){var d=c("").on("load",function(){b.call(d)});d.attr("src",a)}},getNext:function(){var a,b=this,d=c("#swipebox-slider .slide").index(c("#swipebox-slider .slide.current"));d+10?(a=c("#swipebox-slider .slide").eq(b).contents().find("iframe").attr("src"),c("#swipebox-slider .slide").eq(b).contents().find("iframe").attr("src",a),b--,this.setSlide(b),this.preloadMedia(b-1),j.settings.prevSlide&&j.settings.prevSlide(b)):(c("#swipebox-overlay").addClass("leftSpring"),setTimeout(function(){c("#swipebox-overlay").removeClass("leftSpring")},500))},nextSlide:function(a){},prevSlide:function(a){},closeSlide:function(){c("html").removeClass("swipebox-html"),c("html").removeClass("swipebox-touch"),c(a).trigger("resize"),this.destroy()},destroy:function(){c(a).unbind("keyup"),c("body").unbind("touchstart"),c("body").unbind("touchmove"),c("body").unbind("touchend"),c("#swipebox-slider").unbind(),c("#swipebox-overlay").remove(),c.isArray(e)||e.removeData("_swipebox"),this.target&&this.target.trigger("swipebox-destroy"),c.swipebox.isOpen=!1,j.settings.afterClose&&j.settings.afterClose()}},j.init()},c.fn.swipebox=function(a){if(!c.data(this,"_swipebox")){var b=new c.swipebox(this,a);this.data("_swipebox",b)}return this.data("_swipebox")}}(window,document,jQuery);} !function(t){var i=t(window);t.fn.visible=function(t,e,o){if(!(this.length<1)){var r=this.length>1?this.eq(0):this,n=r.get(0),f=i.width(),h=i.height(),o=o?o:"both",l=e===!0?n.offsetWidth*n.offsetHeight:!0;if("function"==typeof n.getBoundingClientRect){var g=n.getBoundingClientRect(),u=g.top>=0&&g.top0&&g.bottom<=h,c=g.left>=0&&g.left0&&g.right<=f,v=t?u||s:u&&s,b=t?c||a:c&&a;if("both"===o)return l&&v&&b;if("vertical"===o)return l&&v;if("horizontal"===o)return l&&b}else{var d=i.scrollTop(),p=d+h,w=i.scrollLeft(),m=w+f,y=r.offset(),z=y.top,B=z+r.height(),C=y.left,R=C+r.width(),j=t===!0?B:z,q=t===!0?z:B,H=t===!0?R:C,L=t===!0?C:R;if("both"===o)return!!l&&p>=q&&j>=d&&m>=L&&H>=w;if("vertical"===o)return!!l&&p>=q&&j>=d;if("horizontal"===o)return!!l&&m>=L&&H>=w}}}}(jQuery);!function(a){"use strict";function b(b){return l.formatter=e,j=a("body"),a(this).not(".tipper-attached").addClass("tipper-attached").on("mouseenter.tipper",a.extend({},l,b||{}),c)}function c(b){var c=a(this),e=a.extend(!0,{},b.data,c.data("tipper-options"));e.$target=c,k={left:b.pageX,top:b.pageY},e.delay?e.timer=h(e.timer,e.delay,function(){d(e.$target,e)}):d(e.$target,e),e.$target.one("mouseleave.tipper",e,g),!e.follow&&e.match&&e.$target.on("mousemove.tipper",e,f).trigger("mousemove")}function d(b,c){var d="";d+='
',d+='
',d+=c.formatter.apply(j,[b]),d+='',d+="
",d+="
",c.$target=b,c.$tipper=a(d),j.append(c.$tipper),c.$content=c.$tipper.find(".tipper-content"),c.$caret=c.$tipper.find(".tipper-caret"),c.offset=b.offset(),c.height=b.outerHeight(),c.width=b.outerWidth(),c.tipperPos={},c.caretPos={},c.contentPos={};var e=c.$caret.outerHeight(!0),g=c.$caret.outerWidth(!0),h=c.$content.outerHeight(!0),i=c.$content.outerWidth(!0);"right"===c.direction||"left"===c.direction?(c.caretPos.top=(h-e)/2,c.contentPos.top=-h/2,"right"===c.direction?c.contentPos.left=c.margin:"left"===c.direction&&(c.contentPos.left=-(i+c.margin))):(c.caretPos.left=(i-g)/2,c.contentPos.left=-i/2,"bottom"===c.direction?c.contentPos.top=c.margin:"top"===c.direction&&(c.contentPos.top=-(h+c.margin))),c.$content.css(c.contentPos),c.$caret.css(c.caretPos),c.follow?c.$target.on("mousemove.tipper",c,f).trigger("mousemove"):c.match?("right"===c.direction||"left"===c.direction?(c.tipperPos.top=k.top,"right"===c.direction?c.tipperPos.left=c.offset.left+c.width:"left"===c.direction&&(c.tipperPos.left=c.offset.left)):(c.tipperPos.left=k.left,"bottom"===c.direction?c.tipperPos.top=c.offset.top+c.height:"top"===c.direction&&(c.tipperPos.top=c.offset.top)),c.$tipper.css(c.tipperPos)):("right"===c.direction||"left"===c.direction?(c.tipperPos.top=c.offset.top+c.height/2,"right"===c.direction?c.tipperPos.left=c.offset.left+c.width:"left"===c.direction&&(c.tipperPos.left=c.offset.left)):(c.tipperPos.left=c.offset.left+c.width/2,"bottom"===c.direction?c.tipperPos.top=c.offset.top+c.height:"top"===c.direction&&(c.tipperPos.top=c.offset.top)),c.$tipper.css(c.tipperPos)),c.$tipper.addClass("visible")}function e(a){return a.data("cb-tip")}function f(a){var b=a.data;k={left:a.pageX,top:a.pageY},b.follow&&"undefined"!=typeof b.$tipper&&b.$tipper.css({left:k.left,top:k.top})}function g(a){var b=a.data;i(b.timer),"undefined"!=typeof b.$tipper&&(b.$tipper.remove(),b.$target.off("mousemove.tipper mouseleave.tipper"),k=null)}function h(a,b,c){return i(a),setTimeout(c,b)}function i(a){a&&(clearTimeout(a),a=null)}var j,k,l={delay:0,direction:"top",follow:!1,formatter:a.noop,margin:15,match:!1},m={defaults:function(b){return l=a.extend(l,b||{}),"object"==typeof this?a(this):!0},destroy:function(){return a(this).trigger("mouseleave.tipper").off(".tipper").removeClass("tipper-attached")}};a.fn.tipper=function(a){return m[a]?m[a].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof a&&a?this:b.apply(this,arguments)},a.tipper=function(a){"defaults"===a&&m.defaults.apply(this,Array.prototype.slice.call(arguments,1))}}(jQuery); !function(e){"use strict";var t={init:function(){this.cacheDom(),this.cacheData(),this.bindEvents(),this.lightboxInit(),this.tooltipInit(),this.triggers(),1===parseInt(letsReview.letsReviewUReviews)&&this.sliderLoaders()},cacheDom:function(){this.$doc=e(document),this.$win=e(window),this.$body=e("body"),this.$tooltip=e(".lets-review-tip-f"),this.$lightbox=e(".lets-review-lightbox"),this.rtl=!!this.$body.hasClass("rtl"),this.$boxWrap=e(".lets-review-box-wrap"),this.$userRating=e('[id^="cb-user-rating-"]'),this.$formLabels=e(".lets-review-ur-onoff-label"),this.$lrForm=e(".lets-review-form"),1===parseInt(letsReview.letsReviewUReviews)&&(this.dataGather=e(".lets-review-form-crits:first").data(),this.$cSliders=e(".lets-review-c-slider"))},cacheData:function(){this.$winWidth=this.$win.width()},bindEvents:function(){this.$win.on("resize",this.resize.bind(this)),this.$body.on("click",this.$formLabels,this.formLabels),this.$body.on("click touchend","#swipebox-slider .current img",function(){return!1}).on("click touchend","#swipebox-slider .current",function(){e("#swipebox-close").trigger("click")}),this.$doc.on("slide",".lets-review-c-slider",this.slideIt),window.addEventListener?window.addEventListener("scroll",this.triggers.bind(this),!1):window.attachEvent("scroll",this.triggers.bind(this))},formLabels:function(){0!==t.$formLabels.length&&("on"===e(this).find("input[name=lets_review_ur_onoff]:checked").val()?t.$lrForm.slideDown(200):t.$lrForm.slideUp(200))},lightboxInit:function(){e.prototype.swipebox&&this.$lightbox.swipebox({hideBarsDelay:0})},tooltipInit:function(){this.$winWidth<767||this.$tooltip.tipper({direction:"bottom",follow:!0})},resize:function(e,t){this.cacheData(),this.tooltipInit()},triggers:function(t,i){e.each(this.$boxWrap.find(".cb-overlay span"),function(t,i){i=e(i),i.visible(!0)&&(i.removeClass("cb-trigger-zero"),i.closest(".lets-review-box-wrap").data("format")>2?i.addClass("cb-5-trigger"):i.addClass("cb-trigger"))})},slideIt:function(i,s){var a=e(this);a.next().val(s.value),a.next().hasClass("lets-review-ind-crit")&&t.scoreCalc(a.next())},sliderLoaders:function(){this.$cSliders.each(function(){var i=e(this);i.slider({min:0,max:t.dataGather.max,range:"min",step:t.dataGather.step,start:function(e,t){i.find(".ui-slider-range").css("background-color",i.data("color"))}})})},scoreCalc:function(i){var s,a=0,r=i.data("format"),o=i.closest(".lets-review-form-crits").find(".lets-review-all-crits .cb-cri-score"),n=i.closest(".lets-review-form-crits").find(".lets-review-final-score"),l=i.closest(".lets-review-form-crits").find(".lets-review-100");o.each(function(){a+=parseFloat(e(this).val())}),0===a&&n.val()>0||(s=1===parseInt(r)?Math.round(a/o.length):"on"===letsReview.doubleDecimalStars?(a/o.length).toFixed(2):Math.round(a/o.length*10)/10,isNaN(s)?(n.val(""),n.prev().slider("option",{max:t.dataGather.max,step:t.dataGather.step,value:n.val()})):(n.val(s),n.prev().slider("option",{max:t.dataGather.max,step:t.dataGather.step,value:s})),1===parseInt(r)?l.val(n.val()):2===parseInt(r)?l.val(10*n.val()):l.val(20*n.val()))}};t.init()}(jQuery),function(e){"use strict";var t,i,s,a,r,o,n,l,c,d,h,f,v,b,u,w,m,p,g,x=!1,$=e('[id^="cb-user-rating-"]'),y=Cookies.get("lets_review_user_rating");$.length&&$.each(function(){if(v=e(this),b=v.closest(".lets-review-box-wrap"),h=b.data("pid"),f=b.data("uid"),!(v.hasClass("cb-rated")||y instanceof Array&&(y.indexOf(h)>-1||y.indexOf(f)>-1))){switch(b.data("format")){case 1:u=v.find(".cb-bar");break;case 2:u=v.find(".cb-bar");break;default:u=v.find(".cb-overlay")}u.on("mousemove click mouseleave mouseenter",function(h){switch(v=e(this).closest('[id^="cb-user-rating-"]'),b=v.closest(".lets-review-box-wrap"),"mouseenter"===h.type&&(t=v.find(".cb-criteria"),d=t.html(),i=v.find(".cb-criteria-score"),s=i.data("cb-score-cache"),c=i.data("cb-width-cache"),o=v.find(".cb-overlay"),l=o.offset(),a=o.find("> span"),t.html(t.data("cb-txt"))),r=Math.ceil((h.pageX-l.left)/(o.width()/100)),n=x===!0?100-r:r,n>100&&(n=100),n<1&&(n=0),b.data("format")){case 1:p=n,g=!1;break;case 2:p=Math.round(10*n)/100,g=!1;break;default:p=Math.round(n/20*10)/10,g=!0}if(b.hasClass("cb-out-of-5")?a.stop().animate({width:100-n+"%"},15):a.stop().animate({width:n+"%"},15),i.html(p),"mouseleave"!==h.type&&"click"!==h.type||(b.hasClass("cb-out-of-5")?a.stop().animate({width:100-c+"%"},200):a.stop().animate({width:c+"%"},200),i.html(s),t.html(d)),"click"===h.type)return e(this).off("mousemove click mouseleave mouseenter"),v.addClass("cb-rated cb-lr-tip-f"),e.ajax({type:"POST",data:{action:"lets_review_a_cb",letsReviewNonce:letsReview.letsReviewNonce,letsReviewScore:n,letsReviewPostID:b.data("pid"),letsReviewFormat:b.data("format"),letsReviewUID:b.data("uid")},url:letsReview.letsReviewAUrl,dataType:"json",beforeSend:function(){w=b.data("type"),m=b.find(".cb-score-box"),v.addClass("cb-voting"),3===w&&g===!1&&m.addClass("cb-fs-voting")},success:function(e){o.find("> span").css("width",e[0]+"%"),v.find(".cb-votes-count").html(e[2]),i.html(e[1]),Cookies.set("lets_review_user_rating",e[3],{expires:7}),v.removeClass("cb-voting"),3===w&&g===!1&&(m.find(".cb-final-score").html(e[1]),m.removeClass("cb-fs-voting cb-score--")),v.tipper({direction:"bottom",follow:!0})},error:function(e,t,i){console.log("cbur "+e+" :: "+t+" :: "+i)}}),!1})}})}(jQuery); /*! * imagesLoaded PACKAGED v3.2.0 * JavaScript is all like "You images are done yet or what?" * MIT License */ (function(){"use strict";function e(){}function t(e,t){for(var n=e.length;n--;)if(e[n].listener===t)return n;return-1}function n(e){return function(){return this[e].apply(this,arguments)}}var i=e.prototype,r=this,s=r.EventEmitter;i.getListeners=function(e){var t,n,i=this._getEvents();if("object"==typeof e){t={};for(n in i)i.hasOwnProperty(n)&&e.test(n)&&(t[n]=i[n])}else t=i[e]||(i[e]=[]);return t},i.flattenListeners=function(e){var t,n=[];for(t=0;th;h++){var j=this[h],k=a.data(j,b);if(k)if(a.isFunction(k[e])&&"_"!==e.charAt(0)){var l=k[e].apply(k,g);if(void 0!==l)return l}else f("no such method '"+e+"' for "+b+" instance");else f("cannot call methods on "+b+" prior to initialization; attempted to call '"+e+"'")}return this}return this.each(function(){var d=a.data(this,b);d?(d.option(e),d._init()):(d=new c(this,e),a.data(this,b,d))})}}if(a){var f="undefined"==typeof console?b:function(a){console.error(a)};return a.bridget=function(a,b){c(b),e(a,b)},a.bridget}}var d=Array.prototype.slice;"function"==typeof define&&define.amd?define("jquery-bridget/jquery.bridget",["jquery"],c):c("object"==typeof exports?require("jquery"):a.jQuery)}(window),function(a){function b(b){var c=a.event;return c.target=c.target||c.srcElement||b,c}var c=document.documentElement,d=function(){};c.addEventListener?d=function(a,b,c){a.addEventListener(b,c,!1)}:c.attachEvent&&(d=function(a,c,d){a[c+d]=d.handleEvent?function(){var c=b(a);d.handleEvent.call(d,c)}:function(){var c=b(a);d.call(a,c)},a.attachEvent("on"+c,a[c+d])});var e=function(){};c.removeEventListener?e=function(a,b,c){a.removeEventListener(b,c,!1)}:c.detachEvent&&(e=function(a,b,c){a.detachEvent("on"+b,a[b+c]);try{delete a[b+c]}catch(d){a[b+c]=void 0}});var f={bind:d,unbind:e};"function"==typeof define&&define.amd?define("eventie/eventie",f):"object"==typeof exports?module.exports=f:a.eventie=f}(window),function(){function a(){}function b(a,b){for(var c=a.length;c--;)if(a[c].listener===b)return c;return-1}function c(a){return function(){return this[a].apply(this,arguments)}}var d=a.prototype,e=this,f=e.EventEmitter;d.getListeners=function(a){var b,c,d=this._getEvents();if(a instanceof RegExp){b={};for(c in d)d.hasOwnProperty(c)&&a.test(c)&&(b[c]=d[c])}else b=d[a]||(d[a]=[]);return b},d.flattenListeners=function(a){var b,c=[];for(b=0;be;e++)if(b=c[e]+a,"string"==typeof d[b])return b}}var c="Webkit Moz ms Ms O".split(" "),d=document.documentElement.style;"function"==typeof define&&define.amd?define("get-style-property/get-style-property",[],function(){return b}):"object"==typeof exports?module.exports=b:a.getStyleProperty=b}(window),function(a){function b(a){var b=parseFloat(a),c=-1===a.indexOf("%")&&!isNaN(b);return c&&b}function c(){}function d(){for(var a={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},b=0,c=g.length;c>b;b++){var d=g[b];a[d]=0}return a}function e(c){function e(){if(!m){m=!0;var d=a.getComputedStyle;if(j=function(){var a=d?function(a){return d(a,null)}:function(a){return a.currentStyle};return function(b){var c=a(b);return c||f("Style returned "+c+". Are you running this code in a hidden iframe on Firefox? See http://bit.ly/getsizebug1"),c}}(),k=c("boxSizing")){var e=document.createElement("div");e.style.width="200px",e.style.padding="1px 2px 3px 4px",e.style.borderStyle="solid",e.style.borderWidth="1px 2px 3px 4px",e.style[k]="border-box";var g=document.body||document.documentElement;g.appendChild(e);var h=j(e);l=200===b(h.width),g.removeChild(e)}}}function h(a){if(e(),"string"==typeof a&&(a=document.querySelector(a)),a&&"object"==typeof a&&a.nodeType){var c=j(a);if("none"===c.display)return d();var f={};f.width=a.offsetWidth,f.height=a.offsetHeight;for(var h=f.isBorderBox=!(!k||!c[k]||"border-box"!==c[k]),m=0,n=g.length;n>m;m++){var o=g[m],p=c[o];p=i(a,p);var q=parseFloat(p);f[o]=isNaN(q)?0:q}var r=f.paddingLeft+f.paddingRight,s=f.paddingTop+f.paddingBottom,t=f.marginLeft+f.marginRight,u=f.marginTop+f.marginBottom,v=f.borderLeftWidth+f.borderRightWidth,w=f.borderTopWidth+f.borderBottomWidth,x=h&&l,y=b(c.width);y!==!1&&(f.width=y+(x?0:r+v));var z=b(c.height);return z!==!1&&(f.height=z+(x?0:s+w)),f.innerWidth=f.width-(r+v),f.innerHeight=f.height-(s+w),f.outerWidth=f.width+t,f.outerHeight=f.height+u,f}}function i(b,c){if(a.getComputedStyle||-1===c.indexOf("%"))return c;var d=b.style,e=d.left,f=b.runtimeStyle,g=f&&f.left;return g&&(f.left=b.currentStyle.left),d.left=c,c=d.pixelLeft,d.left=e,g&&(f.left=g),c}var j,k,l,m=!1;return h}var f="undefined"==typeof console?c:function(a){console.error(a)},g=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"];"function"==typeof define&&define.amd?define("get-size/get-size",["get-style-property/get-style-property"],e):"object"==typeof exports?module.exports=e(require("desandro-get-style-property")):a.getSize=e(a.getStyleProperty)}(window),function(a){function b(a){"function"==typeof a&&(b.isReady?a():g.push(a))}function c(a){var c="readystatechange"===a.type&&"complete"!==f.readyState;b.isReady||c||d()}function d(){b.isReady=!0;for(var a=0,c=g.length;c>a;a++){var d=g[a];d()}}function e(e){return"complete"===f.readyState?d():(e.bind(f,"DOMContentLoaded",c),e.bind(f,"readystatechange",c),e.bind(a,"load",c)),b}var f=a.document,g=[];b.isReady=!1,"function"==typeof define&&define.amd?define("doc-ready/doc-ready",["eventie/eventie"],e):"object"==typeof exports?module.exports=e(require("eventie")):a.docReady=e(a.eventie)}(window),function(a){function b(a,b){return a[g](b)}function c(a){if(!a.parentNode){var b=document.createDocumentFragment();b.appendChild(a)}}function d(a,b){c(a);for(var d=a.parentNode.querySelectorAll(b),e=0,f=d.length;f>e;e++)if(d[e]===a)return!0;return!1}function e(a,d){return c(a),b(a,d)}var f,g=function(){if(a.matches)return"matches";if(a.matchesSelector)return"matchesSelector";for(var b=["webkit","moz","ms","o"],c=0,d=b.length;d>c;c++){var e=b[c],f=e+"MatchesSelector";if(a[f])return f}}();if(g){var h=document.createElement("div"),i=b(h,"div");f=i?b:e}else f=d;"function"==typeof define&&define.amd?define("matches-selector/matches-selector",[],function(){return f}):"object"==typeof exports?module.exports=f:window.matchesSelector=f}(Element.prototype),function(a,b){"function"==typeof define&&define.amd?define("fizzy-ui-utils/utils",["doc-ready/doc-ready","matches-selector/matches-selector"],function(c,d){return b(a,c,d)}):"object"==typeof exports?module.exports=b(a,require("doc-ready"),require("desandro-matches-selector")):a.fizzyUIUtils=b(a,a.docReady,a.matchesSelector)}(window,function(a,b,c){var d={};d.extend=function(a,b){for(var c in b)a[c]=b[c];return a},d.modulo=function(a,b){return(a%b+b)%b};var e=Object.prototype.toString;d.isArray=function(a){return"[object Array]"==e.call(a)},d.makeArray=function(a){var b=[];if(d.isArray(a))b=a;else if(a&&"number"==typeof a.length)for(var c=0,e=a.length;e>c;c++)b.push(a[c]);else b.push(a);return b},d.indexOf=Array.prototype.indexOf?function(a,b){return a.indexOf(b)}:function(a,b){for(var c=0,d=a.length;d>c;c++)if(a[c]===b)return c;return-1},d.removeFrom=function(a,b){var c=d.indexOf(a,b);-1!=c&&a.splice(c,1)},d.isElement="function"==typeof HTMLElement||"object"==typeof HTMLElement?function(a){return a instanceof HTMLElement}:function(a){return a&&"object"==typeof a&&1==a.nodeType&&"string"==typeof a.nodeName},d.setText=function(){function a(a,c){b=b||(void 0!==document.documentElement.textContent?"textContent":"innerText"),a[b]=c}var b;return a}(),d.getParent=function(a,b){for(;a!=document.body;)if(a=a.parentNode,c(a,b))return a},d.getQueryElement=function(a){return"string"==typeof a?document.querySelector(a):a},d.handleEvent=function(a){var b="on"+a.type;this[b]&&this[b](a)},d.filterFindElements=function(a,b){a=d.makeArray(a);for(var e=[],f=0,g=a.length;g>f;f++){var h=a[f];if(d.isElement(h))if(b){c(h,b)&&e.push(h);for(var i=h.querySelectorAll(b),j=0,k=i.length;k>j;j++)e.push(i[j])}else e.push(h)}return e},d.debounceMethod=function(a,b,c){var d=a.prototype[b],e=b+"Timeout";a.prototype[b]=function(){var a=this[e];a&&clearTimeout(a);var b=arguments,f=this;this[e]=setTimeout(function(){d.apply(f,b),delete f[e]},c||100)}},d.toDashed=function(a){return a.replace(/(.)([A-Z])/g,function(a,b,c){return b+"-"+c}).toLowerCase()};var f=a.console;return d.htmlInit=function(c,e){b(function(){for(var b=d.toDashed(e),g=document.querySelectorAll(".js-"+b),h="data-"+b+"-options",i=0,j=g.length;j>i;i++){var k,l=g[i],m=l.getAttribute(h);try{k=m&&JSON.parse(m)}catch(n){f&&f.error("Error parsing "+h+" on "+l.nodeName.toLowerCase()+(l.id?"#"+l.id:"")+": "+n);continue}var o=new c(l,k),p=a.jQuery;p&&p.data(l,e,o)}})},d}),function(a,b){"function"==typeof define&&define.amd?define("outlayer/item",["eventEmitter/EventEmitter","get-size/get-size","get-style-property/get-style-property","fizzy-ui-utils/utils"],function(c,d,e,f){return b(a,c,d,e,f)}):"object"==typeof exports?module.exports=b(a,require("wolfy87-eventemitter"),require("get-size"),require("desandro-get-style-property"),require("fizzy-ui-utils")):(a.Outlayer={},a.Outlayer.Item=b(a,a.EventEmitter,a.getSize,a.getStyleProperty,a.fizzyUIUtils))}(window,function(a,b,c,d,e){function f(a){for(var b in a)return!1;return b=null,!0}function g(a,b){a&&(this.element=a,this.layout=b,this.position={x:0,y:0},this._create())}function h(a){return a.replace(/([A-Z])/g,function(a){return"-"+a.toLowerCase()})}var i=a.getComputedStyle,j=i?function(a){return i(a,null)}:function(a){return a.currentStyle},k=d("transition"),l=d("transform"),m=k&&l,n=!!d("perspective"),o={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"otransitionend",transition:"transitionend"}[k],p=["transform","transition","transitionDuration","transitionProperty"],q=function(){for(var a={},b=0,c=p.length;c>b;b++){var e=p[b],f=d(e);f&&f!==e&&(a[e]=f)}return a}();e.extend(g.prototype,b.prototype),g.prototype._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}},this.css({position:"absolute"})},g.prototype.handleEvent=function(a){var b="on"+a.type;this[b]&&this[b](a)},g.prototype.getSize=function(){this.size=c(this.element)},g.prototype.css=function(a){var b=this.element.style;for(var c in a){var d=q[c]||c;b[d]=a[c]}},g.prototype.getPosition=function(){var a=j(this.element),b=this.layout.options,c=b.isOriginLeft,d=b.isOriginTop,e=a[c?"left":"right"],f=a[d?"top":"bottom"],g=this.layout.size,h=-1!=e.indexOf("%")?parseFloat(e)/100*g.width:parseInt(e,10),i=-1!=f.indexOf("%")?parseFloat(f)/100*g.height:parseInt(f,10);h=isNaN(h)?0:h,i=isNaN(i)?0:i,h-=c?g.paddingLeft:g.paddingRight,i-=d?g.paddingTop:g.paddingBottom,this.position.x=h,this.position.y=i},g.prototype.layoutPosition=function(){var a=this.layout.size,b=this.layout.options,c={},d=b.isOriginLeft?"paddingLeft":"paddingRight",e=b.isOriginLeft?"left":"right",f=b.isOriginLeft?"right":"left",g=this.position.x+a[d];c[e]=this.getXValue(g),c[f]="";var h=b.isOriginTop?"paddingTop":"paddingBottom",i=b.isOriginTop?"top":"bottom",j=b.isOriginTop?"bottom":"top",k=this.position.y+a[h];c[i]=this.getYValue(k),c[j]="",this.css(c),this.emitEvent("layout",[this])},g.prototype.getXValue=function(a){var b=this.layout.options;return b.percentPosition&&!b.isHorizontal?a/this.layout.size.width*100+"%":a+"px"},g.prototype.getYValue=function(a){var b=this.layout.options;return b.percentPosition&&b.isHorizontal?a/this.layout.size.height*100+"%":a+"px"},g.prototype._transitionTo=function(a,b){this.getPosition();var c=this.position.x,d=this.position.y,e=parseInt(a,10),f=parseInt(b,10),g=e===this.position.x&&f===this.position.y;if(this.setPosition(a,b),g&&!this.isTransitioning)return void this.layoutPosition();var h=a-c,i=b-d,j={};j.transform=this.getTranslate(h,i),this.transition({to:j,onTransitionEnd:{transform:this.layoutPosition},isCleaning:!0})},g.prototype.getTranslate=function(a,b){var c=this.layout.options;return a=c.isOriginLeft?a:-a,b=c.isOriginTop?b:-b,n?"translate3d("+a+"px, "+b+"px, 0)":"translate("+a+"px, "+b+"px)"},g.prototype.goTo=function(a,b){this.setPosition(a,b),this.layoutPosition()},g.prototype.moveTo=m?g.prototype._transitionTo:g.prototype.goTo,g.prototype.setPosition=function(a,b){this.position.x=parseInt(a,10),this.position.y=parseInt(b,10)},g.prototype._nonTransition=function(a){this.css(a.to),a.isCleaning&&this._removeStyles(a.to);for(var b in a.onTransitionEnd)a.onTransitionEnd[b].call(this)},g.prototype._transition=function(a){if(!parseFloat(this.layout.options.transitionDuration))return void this._nonTransition(a);var b=this._transn;for(var c in a.onTransitionEnd)b.onEnd[c]=a.onTransitionEnd[c];for(c in a.to)b.ingProperties[c]=!0,a.isCleaning&&(b.clean[c]=!0);if(a.from){this.css(a.from);var d=this.element.offsetHeight;d=null}this.enableTransition(a.to),this.css(a.to),this.isTransitioning=!0};var r="opacity,"+h(q.transform||"transform");g.prototype.enableTransition=function(){this.isTransitioning||(this.css({transitionProperty:r,transitionDuration:this.layout.options.transitionDuration}),this.element.addEventListener(o,this,!1))},g.prototype.transition=g.prototype[k?"_transition":"_nonTransition"],g.prototype.onwebkitTransitionEnd=function(a){this.ontransitionend(a)},g.prototype.onotransitionend=function(a){this.ontransitionend(a)};var s={"-webkit-transform":"transform","-moz-transform":"transform","-o-transform":"transform"};g.prototype.ontransitionend=function(a){if(a.target===this.element){var b=this._transn,c=s[a.propertyName]||a.propertyName;if(delete b.ingProperties[c],f(b.ingProperties)&&this.disableTransition(),c in b.clean&&(this.element.style[a.propertyName]="",delete b.clean[c]),c in b.onEnd){var d=b.onEnd[c];d.call(this),delete b.onEnd[c]}this.emitEvent("transitionEnd",[this])}},g.prototype.disableTransition=function(){this.removeTransitionStyles(),this.element.removeEventListener(o,this,!1),this.isTransitioning=!1},g.prototype._removeStyles=function(a){var b={};for(var c in a)b[c]="";this.css(b)};var t={transitionProperty:"",transitionDuration:""};return g.prototype.removeTransitionStyles=function(){this.css(t)},g.prototype.removeElem=function(){this.element.parentNode.removeChild(this.element),this.css({display:""}),this.emitEvent("remove",[this])},g.prototype.remove=function(){if(!k||!parseFloat(this.layout.options.transitionDuration))return void this.removeElem();var a=this;this.once("transitionEnd",function(){a.removeElem()}),this.hide()},g.prototype.reveal=function(){delete this.isHidden,this.css({display:""});var a=this.layout.options,b={},c=this.getHideRevealTransitionEndProperty("visibleStyle");b[c]=this.onRevealTransitionEnd,this.transition({from:a.hiddenStyle,to:a.visibleStyle,isCleaning:!0,onTransitionEnd:b})},g.prototype.onRevealTransitionEnd=function(){this.isHidden||this.emitEvent("reveal")},g.prototype.getHideRevealTransitionEndProperty=function(a){var b=this.layout.options[a];if(b.opacity)return"opacity";for(var c in b)return c},g.prototype.hide=function(){this.isHidden=!0,this.css({display:""});var a=this.layout.options,b={},c=this.getHideRevealTransitionEndProperty("hiddenStyle");b[c]=this.onHideTransitionEnd,this.transition({from:a.visibleStyle,to:a.hiddenStyle,isCleaning:!0,onTransitionEnd:b})},g.prototype.onHideTransitionEnd=function(){this.isHidden&&(this.css({display:"none"}),this.emitEvent("hide"))},g.prototype.destroy=function(){this.css({position:"",left:"",right:"",top:"",bottom:"",transition:"",transform:""})},g}),function(a,b){"function"==typeof define&&define.amd?define("outlayer/outlayer",["eventie/eventie","eventEmitter/EventEmitter","get-size/get-size","fizzy-ui-utils/utils","./item"],function(c,d,e,f,g){return b(a,c,d,e,f,g)}):"object"==typeof exports?module.exports=b(a,require("eventie"),require("wolfy87-eventemitter"),require("get-size"),require("fizzy-ui-utils"),require("./item")):a.Outlayer=b(a,a.eventie,a.EventEmitter,a.getSize,a.fizzyUIUtils,a.Outlayer.Item)}(window,function(a,b,c,d,e,f){function g(a,b){var c=e.getQueryElement(a);if(!c)return void(h&&h.error("Bad element for "+this.constructor.namespace+": "+(c||a)));this.element=c,i&&(this.$element=i(this.element)),this.options=e.extend({},this.constructor.defaults),this.option(b);var d=++k;this.element.outlayerGUID=d,l[d]=this,this._create(),this.options.isInitLayout&&this.layout()}var h=a.console,i=a.jQuery,j=function(){},k=0,l={};return g.namespace="outlayer",g.Item=f,g.defaults={containerStyle:{position:"relative"},isInitLayout:!0,isOriginLeft:!0,isOriginTop:!0,isResizeBound:!0,isResizingContainer:!0,transitionDuration:"0.4s",hiddenStyle:{opacity:0,transform:"scale(0.001)"},visibleStyle:{opacity:1,transform:"scale(1)"}},e.extend(g.prototype,c.prototype),g.prototype.option=function(a){e.extend(this.options,a)},g.prototype._create=function(){this.reloadItems(),this.stamps=[],this.stamp(this.options.stamp),e.extend(this.element.style,this.options.containerStyle),this.options.isResizeBound&&this.bindResize()},g.prototype.reloadItems=function(){this.items=this._itemize(this.element.children)},g.prototype._itemize=function(a){for(var b=this._filterFindItemElements(a),c=this.constructor.Item,d=[],e=0,f=b.length;f>e;e++){var g=b[e],h=new c(g,this);d.push(h)}return d},g.prototype._filterFindItemElements=function(a){return e.filterFindElements(a,this.options.itemSelector)},g.prototype.getItemElements=function(){for(var a=[],b=0,c=this.items.length;c>b;b++)a.push(this.items[b].element);return a},g.prototype.layout=function(){this._resetLayout(),this._manageStamps();var a=void 0!==this.options.isLayoutInstant?this.options.isLayoutInstant:!this._isLayoutInited;this.layoutItems(this.items,a),this._isLayoutInited=!0},g.prototype._init=g.prototype.layout,g.prototype._resetLayout=function(){this.getSize()},g.prototype.getSize=function(){this.size=d(this.element)},g.prototype._getMeasurement=function(a,b){var c,f=this.options[a];f?("string"==typeof f?c=this.element.querySelector(f):e.isElement(f)&&(c=f),this[a]=c?d(c)[b]:f):this[a]=0},g.prototype.layoutItems=function(a,b){a=this._getItemsForLayout(a),this._layoutItems(a,b),this._postLayout()},g.prototype._getItemsForLayout=function(a){for(var b=[],c=0,d=a.length;d>c;c++){var e=a[c];e.isIgnored||b.push(e)}return b},g.prototype._layoutItems=function(a,b){if(this._emitCompleteOnItems("layout",a),a&&a.length){for(var c=[],d=0,e=a.length;e>d;d++){var f=a[d],g=this._getItemLayoutPosition(f);g.item=f,g.isInstant=b||f.isLayoutInstant,c.push(g)}this._processLayoutQueue(c)}},g.prototype._getItemLayoutPosition=function(){return{x:0,y:0}},g.prototype._processLayoutQueue=function(a){for(var b=0,c=a.length;c>b;b++){var d=a[b];this._positionItem(d.item,d.x,d.y,d.isInstant)}},g.prototype._positionItem=function(a,b,c,d){d?a.goTo(b,c):a.moveTo(b,c)},g.prototype._postLayout=function(){this.resizeContainer()},g.prototype.resizeContainer=function(){if(this.options.isResizingContainer){var a=this._getContainerSize();a&&(this._setContainerMeasure(a.width,!0),this._setContainerMeasure(a.height,!1))}},g.prototype._getContainerSize=j,g.prototype._setContainerMeasure=function(a,b){if(void 0!==a){var c=this.size;c.isBorderBox&&(a+=b?c.paddingLeft+c.paddingRight+c.borderLeftWidth+c.borderRightWidth:c.paddingBottom+c.paddingTop+c.borderTopWidth+c.borderBottomWidth),a=Math.max(a,0),this.element.style[b?"width":"height"]=a+"px"}},g.prototype._emitCompleteOnItems=function(a,b){function c(){e.dispatchEvent(a+"Complete",null,[b])}function d(){g++,g===f&&c()}var e=this,f=b.length;if(!b||!f)return void c();for(var g=0,h=0,i=b.length;i>h;h++){var j=b[h];j.once(a,d)}},g.prototype.dispatchEvent=function(a,b,c){var d=b?[b].concat(c):c;if(this.emitEvent(a,d),i)if(this.$element=this.$element||i(this.element),b){var e=i.Event(b);e.type=a,this.$element.trigger(e,c)}else this.$element.trigger(a,c)},g.prototype.ignore=function(a){var b=this.getItem(a);b&&(b.isIgnored=!0)},g.prototype.unignore=function(a){var b=this.getItem(a);b&&delete b.isIgnored},g.prototype.stamp=function(a){if(a=this._find(a)){this.stamps=this.stamps.concat(a);for(var b=0,c=a.length;c>b;b++){var d=a[b];this.ignore(d)}}},g.prototype.unstamp=function(a){if(a=this._find(a))for(var b=0,c=a.length;c>b;b++){var d=a[b];e.removeFrom(this.stamps,d),this.unignore(d)}},g.prototype._find=function(a){return a?("string"==typeof a&&(a=this.element.querySelectorAll(a)),a=e.makeArray(a)):void 0},g.prototype._manageStamps=function(){if(this.stamps&&this.stamps.length){this._getBoundingRect();for(var a=0,b=this.stamps.length;b>a;a++){var c=this.stamps[a];this._manageStamp(c)}}},g.prototype._getBoundingRect=function(){var a=this.element.getBoundingClientRect(),b=this.size;this._boundingRect={left:a.left+b.paddingLeft+b.borderLeftWidth,top:a.top+b.paddingTop+b.borderTopWidth,right:a.right-(b.paddingRight+b.borderRightWidth),bottom:a.bottom-(b.paddingBottom+b.borderBottomWidth)}},g.prototype._manageStamp=j,g.prototype._getElementOffset=function(a){var b=a.getBoundingClientRect(),c=this._boundingRect,e=d(a),f={left:b.left-c.left-e.marginLeft,top:b.top-c.top-e.marginTop,right:c.right-b.right-e.marginRight,bottom:c.bottom-b.bottom-e.marginBottom};return f},g.prototype.handleEvent=function(a){var b="on"+a.type;this[b]&&this[b](a)},g.prototype.bindResize=function(){this.isResizeBound||(b.bind(a,"resize",this),this.isResizeBound=!0)},g.prototype.unbindResize=function(){this.isResizeBound&&b.unbind(a,"resize",this),this.isResizeBound=!1},g.prototype.onresize=function(){function a(){b.resize(),delete b.resizeTimeout}this.resizeTimeout&&clearTimeout(this.resizeTimeout);var b=this;this.resizeTimeout=setTimeout(a,100)},g.prototype.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&this.layout()},g.prototype.needsResizeLayout=function(){var a=d(this.element),b=this.size&&a;return b&&a.innerWidth!==this.size.innerWidth},g.prototype.addItems=function(a){var b=this._itemize(a);return b.length&&(this.items=this.items.concat(b)),b},g.prototype.appended=function(a){var b=this.addItems(a);b.length&&(this.layoutItems(b,!0),this.reveal(b))},g.prototype.prepended=function(a){var b=this._itemize(a);if(b.length){var c=this.items.slice(0);this.items=b.concat(c),this._resetLayout(),this._manageStamps(),this.layoutItems(b,!0),this.reveal(b),this.layoutItems(c)}},g.prototype.reveal=function(a){this._emitCompleteOnItems("reveal",a);for(var b=a&&a.length,c=0;b&&b>c;c++){var d=a[c];d.reveal()}},g.prototype.hide=function(a){this._emitCompleteOnItems("hide",a);for(var b=a&&a.length,c=0;b&&b>c;c++){var d=a[c];d.hide()}},g.prototype.revealItemElements=function(a){var b=this.getItems(a);this.reveal(b)},g.prototype.hideItemElements=function(a){var b=this.getItems(a);this.hide(b)},g.prototype.getItem=function(a){for(var b=0,c=this.items.length;c>b;b++){var d=this.items[b];if(d.element===a)return d}},g.prototype.getItems=function(a){a=e.makeArray(a);for(var b=[],c=0,d=a.length;d>c;c++){var f=a[c],g=this.getItem(f);g&&b.push(g)}return b},g.prototype.remove=function(a){var b=this.getItems(a);if(this._emitCompleteOnItems("remove",b),b&&b.length)for(var c=0,d=b.length;d>c;c++){var f=b[c];f.remove(),e.removeFrom(this.items,f)}},g.prototype.destroy=function(){var a=this.element.style;a.height="",a.position="",a.width="";for(var b=0,c=this.items.length;c>b;b++){var d=this.items[b];d.destroy()}this.unbindResize();var e=this.element.outlayerGUID;delete l[e],delete this.element.outlayerGUID,i&&i.removeData(this.element,this.constructor.namespace)},g.data=function(a){a=e.getQueryElement(a);var b=a&&a.outlayerGUID;return b&&l[b]},g.create=function(a,b){function c(){g.apply(this,arguments)}return Object.create?c.prototype=Object.create(g.prototype):e.extend(c.prototype,g.prototype),c.prototype.constructor=c,c.defaults=e.extend({},g.defaults),e.extend(c.defaults,b),c.prototype.settings={},c.namespace=a,c.data=g.data,c.Item=function(){f.apply(this,arguments)},c.Item.prototype=new f,e.htmlInit(c,a),i&&i.bridget&&i.bridget(a,c),c},g.Item=f,g}),function(a,b){"function"==typeof define&&define.amd?define(["outlayer/outlayer","get-size/get-size","fizzy-ui-utils/utils"],b):"object"==typeof exports?module.exports=b(require("outlayer"),require("get-size"),require("fizzy-ui-utils")):a.Masonry=b(a.Outlayer,a.getSize,a.fizzyUIUtils)}(window,function(a,b,c){var d=a.create("masonry");return d.prototype._resetLayout=function(){this.getSize(),this._getMeasurement("columnWidth","outerWidth"),this._getMeasurement("gutter","outerWidth"),this.measureColumns();var a=this.cols;for(this.colYs=[];a--;)this.colYs.push(0);this.maxY=0},d.prototype.measureColumns=function(){if(this.getContainerWidth(),!this.columnWidth){var a=this.items[0],c=a&&a.element;this.columnWidth=c&&b(c).outerWidth||this.containerWidth}var d=this.columnWidth+=this.gutter,e=this.containerWidth+this.gutter,f=e/d,g=d-e%d,h=g&&1>g?"round":"floor";f=Math[h](f),this.cols=Math.max(f,1)},d.prototype.getContainerWidth=function(){var a=this.options.isFitWidth?this.element.parentNode:this.element,c=b(a);this.containerWidth=c&&c.innerWidth},d.prototype._getItemLayoutPosition=function(a){a.getSize();var b=a.size.outerWidth%this.columnWidth,d=b&&1>b?"round":"ceil",e=Math[d](a.size.outerWidth/this.columnWidth);e=Math.min(e,this.cols);for(var f=this._getColGroup(e),g=Math.min.apply(Math,f),h=c.indexOf(f,g),i={x:this.columnWidth*h,y:g},j=g+a.size.outerHeight,k=this.cols+1-f.length,l=0;k>l;l++)this.colYs[h+l]=j;return i},d.prototype._getColGroup=function(a){if(2>a)return this.colYs;for(var b=[],c=this.cols+1-a,d=0;c>d;d++){var e=this.colYs.slice(d,d+a);b[d]=Math.max.apply(Math,e)}return b},d.prototype._manageStamp=function(a){var c=b(a),d=this._getElementOffset(a),e=this.options.isOriginLeft?d.left:d.right,f=e+c.outerWidth,g=Math.floor(e/this.columnWidth);g=Math.max(0,g);var h=Math.floor(f/this.columnWidth);h-=f%this.columnWidth?0:1,h=Math.min(this.cols-1,h);for(var i=(this.options.isOriginTop?d.top:d.bottom)+c.outerHeight,j=g;h>=j;j++)this.colYs[j]=Math.max(i,this.colYs[j])},d.prototype._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var a={height:this.maxY};return this.options.isFitWidth&&(a.width=this._getContainerFitWidth()),a},d.prototype._getContainerFitWidth=function(){for(var a=0,b=this.cols;--b&&0===this.colYs[b];)a++;return(this.cols-a)*this.columnWidth-this.gutter},d.prototype.needsResizeLayout=function(){var a=this.containerWidth;return this.getContainerWidth(),a!==this.containerWidth},d}); /*! * Masonry v2 shim * to maintain backwards compatibility * as of Masonry v3.1.2 * * Cascading grid layout library * http://masonry.desandro.com * MIT License * by David DeSandro */ !function(a){"use strict";var b=a.Masonry;b.prototype._remapV2Options=function(){this._remapOption("gutterWidth","gutter"),this._remapOption("isResizable","isResizeBound"),this._remapOption("isRTL","isOriginLeft",function(a){return!a});var a=this.options.isAnimated;if(void 0!==a&&(this.options.transitionDuration=a?this.options.transitionDuration:0),void 0===a||a){var b=this.options.animationOptions,c=b&&b.duration;c&&(this.options.transitionDuration="string"==typeof c?c:c+"ms")}},b.prototype._remapOption=function(a,b,c){var d=this.options[a];void 0!==d&&(this.options[b]=c?c(d):d)};var c=b.prototype._create;b.prototype._create=function(){var a=this;this._remapV2Options(),c.apply(this,arguments),setTimeout(function(){jQuery(a.element).addClass("masonry")},0)};var d=b.prototype.layout;b.prototype.layout=function(){this._remapV2Options(),d.apply(this,arguments)};var e=b.prototype.option;b.prototype.option=function(){e.apply(this,arguments),this._remapV2Options()};var f=b.prototype._itemize;b.prototype._itemize=function(a){var b=f.apply(this,arguments);return jQuery(a).addClass("masonry-brick"),b};var g=b.prototype.measureColumns;b.prototype.measureColumns=function(){var a=this.options.columnWidth;a&&"function"==typeof a&&(this.getContainerWidth(),this.columnWidth=a(this.containerWidth)),g.apply(this,arguments)},b.prototype.reload=function(){this.reloadItems.apply(this,arguments),this.layout.apply(this)};var h=b.prototype.destroy;b.prototype.destroy=function(){var a=this.getItemElements();jQuery(this.element).removeClass("masonry"),jQuery(a).removeClass("masonry-brick"),h.apply(this,arguments)}}(window); /*! Thrive Architect - 2020-04-10 * http://www.thrivethemes.com/ * Copyright (c) 2020 Thrive Themes */ "use strict";function ownKeys(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),i.push.apply(i,n)}return i}function _objectSpread(e){for(var t=1;t");i.addClass("tcb-form-error"),i.text(tve_frontend_options.translations[e]),n.$form.find('input[name="'+t+'"]').after(i)}})}}]),e}(),n=function(){function n(){return _classCallCheck(this,n),_possibleConstructorReturn(this,_getPrototypeOf(n).apply(this,arguments))}return _inherits(n,o),_createClass(n,[{key:"init",value:function(){var t=this;this.attributes={username:"",password:"",remember_me:""},this.action="login",this.$form.find(".tcb-remberme-label").off("click").on("click",function(){t.$form.find('input[name="remember_me"]').click()})}},{key:"onSuccess",value:function(t){_get(_getPrototypeOf(n.prototype),"onSuccess",this).call(this,t),this.clearForm();var e=t.errors&&t.errors.length;if(e){var i="";t.errors.forEach(function(t){i+=t+"
"}),TCB_Front.toast(i,!0)}"function"==typeof TCB_Front.loginCallbacks[this.config.submit_action]&&TCB_Front.loginCallbacks[this.config.submit_action](this.config,t),e||"noRedirect"!==this.config.submit_action&&"showMessage"!==this.config.submit_action||this.$form.trigger("tcb.change_state",{state:"logged_in"})}},{key:"validate",value:function(){return this.resetErrors(),this.attributes.username.length||this.errors.push("empty_username"),this.attributes.password.length||this.errors.push("empty_password"),0===this.errors.length}}]),n}(),r=function(){function t(){return _classCallCheck(this,t),_possibleConstructorReturn(this,_getPrototypeOf(t).apply(this,arguments))}return _inherits(t,o),_createClass(t,[{key:"init",value:function(){this.attributes={login:""},this.action="recover_password"}},{key:"onSuccess",value:function(e){if(_get(_getPrototypeOf(t.prototype),"onSuccess",this).call(this,e),e.errors&&Object.keys(e.errors).length){var i="";Object.keys(e.errors).forEach(function(t){i+=e.errors[t]+"
"}),TCB_Front.toast(i,!0)}else this.clearForm(),this.$form.trigger("tcb.change_state",{state:"reset_confirmation"})}},{key:"validate",value:function(){return this.resetErrors(),this.attributes.login.length||this.errors.push("empty_login"),0===this.errors.length}}]),t}();t.tve_login_element=function(){return!0!==this.is(".thrv-login-element")?this:this.each(function(t,e){return function(t,e){new i(a(e)).binEvents()}(0,e)})}}(ThriveGlobal.$j,TVE_jQFn)}},events:{"resize.js":function(t,e,i){var n,a,o;n=ThriveGlobal.$j,a=TCB_Front,o=[],a.addResizeCallback=function(t,e){return-1===o.indexOf(t)&&(t.$$scope=e,o.push(t)),a},e.exports=function(){var t=a.$window.width();a.$window.off("resize.tar").on("resize.tar",function(){a.$window.width()!==t&&(n.each(o,function(t,e){e.call(e.$$scope||this)}),t=a.$window.width())})}},"scroll.js":function(t,e,i){var o,r,s;o=ThriveGlobal.$j,r=TCB_Front,s=[],r.add_scroll_callback=function(t,e){return-1===s.indexOf(t)&&(t.$$scope=e,s.push(t)),r},e.exports=function(){var t=r.$document.scrollTop(),e="";r.$window.off("scroll.tar").on("scroll.tar",function(){var i=r.$document.scrollTop(),n=t<=i?"down":"up",a=e!==n;t=i,e=n,o.each(s,function(t,e){e.call(e.$$scope||this,i,n,a)})}),r.$window.trigger("scroll")}}},"thrive_content_builder_frontend.js":function(t,e,i){if(!window.ThriveGlobal||!window.ThriveGlobal.$j){var n=window.$;window.ThriveGlobal={$j:jQuery.noConflict()},n&&(window.$=n)}window.TVE_jQFn={},window.TCB_Front={},window.addEventListener("load",function(){TCB_Front.menu.init(),TCB_Front.divider.init(),tve_frontend_options.is_editor_page||(TCB_Front.sticky.initSticky(TCB_Front.$body,!!tve_frontend_options.is_editor_page),TCB_Front.add_scroll_callback(TCB_Front.show_data_elemements,TCB_Front)),TCB_Front.postGridLayout()}),ThriveGlobal.$j.extend(window.TCB_Front,{browser:null,detectBrowser:function(){var t,e,i={},n=(e=-1,"Microsoft Internet Explorer"===navigator.appName?(t=navigator.userAgent,null!==new RegExp("MSIE ([0-9]{1,}[\\.0-9]{0,})").exec(t)&&(e=parseFloat(RegExp.$1))):"Netscape"===navigator.appName&&(t=navigator.userAgent,null!==new RegExp("Trident/.*rv:([0-9]{1,}[\\.0-9]{0,})").exec(t)&&(e=parseFloat(RegExp.$1))),e);if(0e.oText?1:t.oTexte.text?1:-1}function c(t,e){return t.text==e.text?t.oText>e.oText?-1:t.oTexte.text?-1:1}e.attr("data-direction",s),ThriveGlobal.$j(i).find("tbody tr").each(function(){var t=ThriveGlobal.$j(this),e=t.find("> td").eq(a).text().trim().replace(/\u200B/g,"").toLowerCase(),i=/[$£€]/.test(e),n=i?e:parseFloat(e);isNaN(n)&&!i?o.push({tr:t,text:e,oText:e}):(i&&(n=parseFloat(n.replace(/[$£€]/,""))),r.push({tr:t,text:n,oText:e}))}),"down"==s?o.sort(l):o.sort(c),"down"==s?r.sort(l):r.sort(c),t="down"==s?r.concat(o):o.concat(r),ThriveGlobal.$j.each(t,function(t,e){n.append(e.tr)}),d.attr("data-direction",""),e.attr("data-direction",s)})},getCookie:function(t){for(var e=t+"=",i=document.cookie.split(";"),n=0;nwindow.innerHeight-i)},inlineCssVariable:function(e,i,t,n){e=e.jquery?e[0]:e;var a=window.getComputedStyle(e,n);if(Array.isArray(i)){var o={};return i.forEach(function(t){return o[t]=a.getPropertyValue(t)}),o}if("string"==typeof i)return void 0!==t?void e.style.setProperty(i,t):a.getPropertyValue(i);ThriveGlobal.$j.isPlainObject(i)&&Object.keys(i).forEach(function(t){return e.style.setProperty(t,i[t])})},postGridLayout:function(){var t=ThriveGlobal.$j(".tve_post_grid_masonry");if(0").css(t.extend({},e)),n=t("
").css(t.extend({left:"-1000px",overflow:"scroll",position:"absolute",top:"-1000px"},e)).append(i).appendTo("body").scrollLeft(1e3).scrollTop(1e3),a={height:n.offset().top-i.offset().top||0,width:n.offset().left-i.offset().left||0};return n.remove(),a},openLightbox:function(r,t){if(!r.hasClass("tve_lb_open")&&!r.hasClass("tve_lb_opening")){var i=ThriveGlobal.$j("body"),n=ThriveGlobal.$j("html"),a="tve-o-hidden tve-l-open tve-hide-overflow",e=this.getBrowserScrollSize().width,o=this,s=parseInt(i.css("padding-right")),l=r.find("input[placeholder]").not(":radio").not(":checkbox");l.length&&l.thrive_iphone_placeholder(),r.find('.thrv_responsive_video:not([data-type="dynamic"])').each(function(){var t=ThriveGlobal.$j(this);o.makeAutoplayVideo(t)}),r.off().on("click",".tve_p_lb_close",function(){return c(r),!1}),i.off("keyup.tve_lb_close").on("keyup.tve_lb_close",function(t){if(27==t.which)return c(r),!1}),r.children(".tve_p_lb_overlay").off("click.tve_lb_close").on("click.tve_lb_close",function(){return c(r),!1}),c(ThriveGlobal.$j(".tve_p_lb_background.tve_lb_open"),!0),r.addClass("tve_p_lb_background tve_lb_anim_"+t),r.data("doc-scroll-top",document.documentElement.scrollTop),r.data("bdy-scroll-top",document.body.scrollTop),i.addClass(a),n.addClass(a),TCB_Front.$window.height() ul li").eq(isNaN(e)?0:e).tcbTabsToggle()}):TCB_Front.handleIframes(r),setTimeout(function(){r.css("display",""),r.addClass("tve_lb_opening"),setTimeout(function(){d()},0)},20),r.find(".tve_p_lb_content").trigger("tve.before-lightbox-open"),"none"!==r.css("display")?setTimeout(function(){r.removeClass("tve_lb_opening").addClass("tve_lb_open").find(".tve_p_lb_content").trigger("tve.lightbox-open")},300):(r.removeClass("tve_lb_open"),i.removeClass(a).css("padding-right",""),n.removeClass(a)),TCB_Front.$window.resize(function(){d()}),r.on("lbresize",function(){d(!0)})}function c(t,e){TCB_Front.handleIframes(t,!1),t.find("video").each(function(){ThriveGlobal.$j(this)[0].pause()}),void 0===e&&1===ThriveGlobal.$j(".tve_lb_open").length&&(i.removeClass(a).css("padding-right",""),n.removeClass(a),t.data("doc-scroll-top")?(document.documentElement.scrollTop=t.data("doc-scroll-top"),t.data("doc-scroll-top","")):t.data("bdy-scroll-top")&&(document.body.scrollTop=t.data("bdy-scroll-top"),t.data("doc-scroll-top",""))),t.removeClass("tve_lb_open tve_lb_opening").addClass("tve_lb_closing"),setTimeout(function(){t.removeClass("tve_lb_closing").css("display","none").find("tve_p_lb_content").trigger("tve.lightbox-close")},300),ThriveGlobal.$j("#tve-lg-error-container").hide()}function d(t){var e,i,n=r.find(".tve_p_lb_content"),a=TCB_Front.$window.height(),o=void 0!==t&&t?"animate":"css";TCB_Front.postGridLayout(),i=(a-(e=n.outerHeight(!0)))/2,r.find(".tve_p_lb_overlay")[o]({height:e+80+"px","min-height":a+"px"},200),n[o]({top:(i<40?40:i)+"px"},200),a=t.offset().top+t.outerHeight()&&"hidden"!==t.css("visibility")&&t.addClass("thrv_data_element_start").trigger("tve.start-animation")})},onDOMReady:function(i){if(this.$body=ThriveGlobal.$j("body"),this.body_offset=this.$body.offset(),void 0===i&&(i=this.$body),this.smartComplete.init(i),this.menu.init(),this.divider.init(),this.dynamicElements.init(),tve_frontend_options.is_editor_page||(this.sticky.initSticky(i,!!tve_frontend_options.is_editor_page),this.add_scroll_callback(this.show_data_elemements,this)),this.fix_compat_issues(i),ThriveGlobal.$j(".tcb-video-background-el").each(function(){this.parentNode.classList.add("tcb-video-background-parent")}),this.replaceDynamicContent(),tve_frontend_options.is_editor_page?ThriveGlobal.$j(".tcb-video-background-el iframe.tcb-voo-bg").each(function(){var t=TVE.inner_$(this),e=t.attr("src");t.attr("src",e)}):ThriveGlobal.$j('.thrv_responsive_video[data-type="vooplayer"]').each(function(){var t=ThriveGlobal.$j(this);t.find(".video_overlay_image").length&&t.find(".video-skin-player").css("z-index","-1")}),!window.TVE_Dash||TVE_Dash.ajax_sent?this.getShareCounts():TCB_Front.$document.on("tve-dash.load",function(t){var e=TCB_Front.getShareCounts(ThriveGlobal.$j("body"),{},!0);e&&TVE_Dash.add_load_item("tcb_social",e[0],e[1])}),document.addEventListener("vooPlayerReady",this.playBackgroundVoo,!1),document.addEventListener("vooPlayerReady",this.changeVooOnPlay,!1),tve_frontend_options.is_editor_page||this.floating.init(),ThriveGlobal.$j.each(TVE_jQFn,function(t,e){ThriveGlobal.$j.fn[t]=e}),ThriveGlobal.$j(".tve_scT").each(function(){var t=ThriveGlobal.$j(this),e=parseInt(t.attr("data-selected"));t.data("initDone")||(t.data("initDone",!0),ThriveGlobal.$j.Event("click").button=0,t.find("> ul li").eq(isNaN(e)?0:e).tcbTabsToggle())}),ThriveGlobal.$j(".thrv_toggle_shortcode").each(function(){TCB_Front.handleIframes(ThriveGlobal.$j(this))}),ThriveGlobal.$j(".thrv_toggle").each(function(){var t=ThriveGlobal.$j(this);if(!t.data("tcbToggleInit")){var e=t.find(".thrv_toggle_item").filter(".tve-default-state-expanded");t.hasClass("tve-toggle-auto-collapse")&&(e=e.first()),e.find(".thrv_toggle_title").tcbToggle("show"),t.data("tcbToggleInit",1)}}),tve_frontend_options.is_editor_page)try{ThriveGlobal.$j("html").getNiceScroll().remove()}catch(t){}else{if(location.hash)try{var t=ThriveGlobal.$j(location.hash);t.closest(".thrv_toggle").length&&!t.hasClass("tve-state-expanded")&&t.trigger("click")}catch(t){}if(void 0===window.tcb_autofill){window.tcb_autofill=TCB_Front.getCookie("account_create_fields");try{window.tcb_autofill&&(window.tcb_autofill=decodeURIComponent(window.tcb_autofill),window.tcb_autofill=JSON.parse(window.tcb_autofill))}catch(t){window.tcb_autofill=null}window.tcb_autofill||(window.tcb_autofill=null)}if(window.tcb_autofill&&ThriveGlobal.$j.isArray(window.tcb_autofill)){ThriveGlobal.$j.each(window.tcb_autofill,function(t,e){i.find("input[name="+e.name+"]").each(function(){var t=ThriveGlobal.$j(this);t.data("tcb-autofill")||(t.val(e.value).hide(),t.parent().append('

'+e.value+'

'),t.data("tcb-autofill",1))})}),setTimeout(function(){TCB_Front.setCookie("account_create_fields",null,{path:"/"})},2500)}ThriveGlobal.$j("input[type=password], input[name=confirm_password]").on("keyup",function(){var t=ThriveGlobal.$j(this),e=a(t.val()),i="#e3ecef",n="";t.next().find(".tve-password-strength").css({"background-color":"#e3ecef"}),(e<30?(i="#ef5350",n="Weak",t.next().find(".tve-password-strength").first()):30<=e&&e<60?(i="#ffa726",n="So-so",t.next().find(".tve-password-strength:lt(2)")):60<=e&&e<80?(i="#8bc34a",n="Good",t.next().find(".tve-password-strength:lt(3)")):(i="#4caf50",n="Great!",t.next().find(".tve-password-strength:lt(4)"))).each(function(){ThriveGlobal.$j(this).css({"background-color":i})}),t.next().find(".tve-password-strength-text").text(n).css({color:i})});var a=function(t){var e,i=0,n={},a=0;if(!t)return i;for(var o=0;o
'),r.each(function(){var t=this.parentNode;""===this.getAttribute("data-href")&&(this.setAttribute("data-href",window.location.href.split("?")[0]),this.setAttribute("data-width","100%")),this.classList.add("fb-comments"),setTimeout(function(){FB.XFBML.parse(t)},200)}));var s=ThriveGlobal.$j(".thrv_disqus_comments #disqus_thread");s.length&&(window.disqus_shortname=s.attr("data-disqus_shortname"),""==s.attr("data-disqus_url")?window.disqus_url=window.location:window.disqus_url=s.attr("data-disqus_url"),window.disqus_identifier=window.disqus_url,"undefined"==typeof DISQUS&&ThriveGlobal.$j.getScript("//"+disqus_shortname+".disqus.com/embed.js"))}window.mejs&&ThriveGlobal.$j(".tcb-video-shortcode").not(".mejs-container").filter(function(){return!ThriveGlobal.$j(this).parent().hasClass(".mejs-mediaelement")}).mediaelementplayer(),this.resizePageSection(),setTimeout(function(){window.dispatchEvent(new Event("resize"))}),this.playBackgroundYoutube(ThriveGlobal.$j("div.tcb-yt-bg")),this.init_scroll(),this.initResize()},replaceDynamicContent:function(){ThriveGlobal.$j(".tve-browser-data").text(Object.keys(TCB_Front.detectBrowser()).filter(function(t){return"webkit"!==t}).toString())},resizePageSection:function(t){void 0===t&&(t=ThriveGlobal.$j(".tcb-window-width")),t.each(function(){var t=ThriveGlobal.$j(this),e=t.css("left");e="auto"===e?0:Number(t.css("left").replace("px","")),t.css({width:TCB_Front[tve_frontend_options.is_editor_page?"$body":"$window"].width()+"px",left:-t.offset().left+e+"px"})})},onSocialCustomClick:{wnd:function(t,e,i){var n=void 0!==window.screenLeft?window.screenLeft:screen.left,a=void 0!==window.screenTop?window.screenTop:screen.top,o=(window.innerWidth?window.innerWidth:document.documentElement.clientWidth?document.documentElement.clientWidth:screen.width)/2-e/2+n,r=(window.innerHeight?window.innerHeight:document.documentElement.clientHeight?document.documentElement.clientHeight:screen.height)/2-i/2+a,s=window.open(t,"Thrive Share","scrollbars=yes,resizable=yes,toolbar=no,menubar=no,scrollbars=no,location=no,directories=no,width="+e+", height="+i+", top="+r+", left="+o);return window.focus&&s.focus(),s},fb_share:function(t){var e=t.data();if(e.href||(e.href=/location.href),e.type&&"feed"!=e.type)this.wnd("https://www.facebook.com/sharer/sharer.php?u="+encodeURIComponent(e.href),650,500);else{var i="";e.name&&(i+="&title="+encodeURIComponent(e.name)),e.description&&(i+="&description="+encodeURIComponent(e.description)),e.href&&(i+="&u="+encodeURIComponent(e.href)),e.caption&&(i+="&caption="+encodeURIComponent(e.caption)),e.image&&(i+="&picture="+encodeURIComponent(e.image)),i="?"+i.substr(1),this.wnd("https://www.facebook.com/sharer.php"+i,650,500)}return!1},t_share:function(t){var e=t.data();e.href||(e.href=/location.href),this.wnd("https://twitter.com/intent/tweet?url="+encodeURIComponent(e.href)+(e.tweet?"&text="+encodeURIComponent(e.tweet):"")+(e.via?"&via="+e.via:""),550,450)},in_share:function(t){var e=t.data();e.href||(e.href=/location.href),this.wnd("https://www.linkedin.com/shareArticle?mini=true&url="+encodeURIComponent(e.href),550,400)},pin_share:function(t){var e=t.data();e.href||(e.href=/location.href),this.wnd("https://pinterest.com/pin/create/button/?url="+encodeURIComponent(e.href)+(e.media?"&media="+encodeURIComponent(e.media):"")+(e.description?"&description="+encodeURIComponent(e.description):""),600,600)},xing_share:function(t){var e=t.data();e.href||(e.href=/location.href),this.wnd("https://www.xing.com/spi/shares/new?url="+encodeURIComponent(e.href),600,500)}},getShareCounts:function(t,e,i){var n=(t=t||ThriveGlobal.$j("body")).find(".tve_social_items.tve_social_custom");if(n.length){var o={action:"tve_social_count",for:[]};if(void 0!==e?ThriveGlobal.$j.each(e,function(t,e){o[t]=e}):"undefined"!=typeof tve_path_params&&tve_path_params.post_id&&(o.post_id=tve_path_params.post_id),n.each(function(t){var e=ThriveGlobal.$j(this),i={};if(e.data("tve-social-counts")||!e.hasClass("tve_social_cb")&&"1"!==e.parent().attr("data-counts"))e.data("tve-social-counts",1);else{e.data("tve-social-counts",1);var n=e.prev(".tve_s_share_count"),a=e.children(".tve_s_item").each(function(){var t=ThriveGlobal.$j(this).addClass("tve_count_loading");i[t.attr("data-s")]=t.attr("data-href")});if(i.hasOwnProperty("t_share")&&1===a.length)return a.removeClass("tve_count_loading"),n.remove(),void e.parent().removeAttr("data-counts");o.for[t]=i}}),!o.for.length)return null;TCB_Front.total_share_counts={};var a=function(o){o&&o.counts&&o.totals&&n.each(function(t){var e=ThriveGlobal.$j(this),i=e.prev(".tve_s_share_count"),n=e.children(".tve_s_item");if(ThriveGlobal.$j.each(o.counts[t],function(t,e){n.filter(".tve_s_"+t).find(".tve_s_count").html(e.formatted)}),n.removeClass("tve_count_loading"),o.totals&&o.totals[t]&&"1"===e.parent().attr("data-counts")){var a=parseInt(e.parent().attr("data-min_shares"));a=isNaN(a)?0:a,i.find(".tve_s_cnt").html(o.totals[t].formatted),a
'+t+"
")}),setTimeout(function(){jQuery(".tvd-toast").hide(),"function"==typeof i&&i()},3e3)},footer_styling:function(t){var e=0'),g=t.find("form")),g.find(".tve_lg_textarea.tve-lg-show-counter textarea").off("input.textarea").on("input.textarea",function(){var t=ThriveGlobal.$j(this),e=t.val().length,i=Number(t.attr("maxlength")),n=Number(t.attr("data-min")),a=t.next().find(".tve-fill-text-dynamic");a.text(i?"".concat(e," of ").concat(i):e),a.toggleClass("tve-counter-error",!!(e&&n&&e
'+i.success+"
")}),setTimeout(function(){jQuery(".tvd-toast").hide()},6e3)}else{var s=g.parent(),l=s.parent(),c=l.find(".tve-error-wrapper");1==g.find("#_error_message_option").val()?(s.hide(),0==c.length?(l.append('
'),i.error=i.error.replace("[lead_email]",o),i.error=i.error.replace("[lead_name]",a),l.find(".tve-error-content").append(i.error)):l.find(".tve-error-wrapper").show()):location.reload()}g.tve_form_loading(!0)}var d={errClass:"tve-lg-error",errClassMultiple:"tve-lg-error-multiple",init:function(){this.container=ThriveGlobal.$j("#tve-lg-error-container"),this.container.length||(this.container=ThriveGlobal.$j('
').appendTo("body"),this.container.on("click",".tve-lg-err-close",ThriveGlobal.$j.proxy(this.close,this))),this.container.empty().hide(),this.clear()},close:function(){this.container.fadeOut(200);var t=g.find("."+this.errClass);return t.length||(t=g.find("input,select,textarea")),t.first().focus(),!1},clear:function(){g.find("input,select,textarea").removeClass(this.errClass),g.find('[class^="tve_lg_"]').removeClass(this.errClassMultiple)},markApiError:function(t){return this.container.append('
'+t+"
"),this},_markError:function(t,e,i){if(t){t.addClass(this.errClass);var n=t.attr("type");["radio","checkbox"].includes(n)&&t.closest(".tve_lg_"+n).addClass(this.errClassMultiple)}"required"===i&&this.container.find(".tve-lg-required").length||this.container.append('
'+e+"
")},show:function(){this.container.append('');var a=this;setTimeout(function(){var t=g.offset(),e=parseInt(g.css("margin-top")),i=parseInt(g.css("margin-left")),n=t.top-10-a.container.outerHeight(!0)-(isNaN(e)?0:e);g.parents(".thrv-ribbon").length&&("bottom"==g.parents(".tve-leads-ribbon").attr("data-position")?n+=7:n=t.top+g.outerHeight()),a.container.css({top:n+"px",left:t.left-(isNaN(i)?0:i),width:g.outerWidth()}).fadeIn(200)},50)},phone:function(t,e){return!0},required:function(t,e){var i=!0,n="required";if("radio"===t.attr("type"))i=ThriveGlobal.$j('input[name="'+t.attr("name")+'"]').is(":checked");else if("checkbox"===t.attr("type"))i=ThriveGlobal.$j('input[name="'+t.attr("name")+'"]').is(":checked");else if(t.is("textarea[data-min]")){var a=ThriveGlobal.$j.trim(t.val()).length;!(i=a>=t.attr("data-min"))&&a&&(n="min-chars",e=tve_frontend_options.translations.min_chars.replace("%s",t.attr("data-min")))}else i=0()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(t.val())||(this._markError(t,e,"email"),!1)},getErrors:function(t){try{return JSON.parse(t.find(".tve-lg-err-msg").val())}catch(t){return{required:"Please fill in all of the required fields",phone:"The phone number is not valid",email:"The email address is not valid"}}}};t.data("form-target")&&t.data("form-target").length&&t.find("form").attr("target",t.data("form-target")),function(){var t=TCB_Front.queryString.get("affiliate");if(t){var e=ThriveGlobal.$j("");e.attr("type","hidden").attr("name","tve_affiliate").val(t),g.append(e)}}(),t.find(".tve-lg-err-msg").length&&function(){g.find(".tve_submit_container .thrv_icon").click(function(){g.submit()});var c=d.getErrors(t);g.submit(function(t){if(g.data("tve-force-submit"))return!0;var e=g.find(".consent-config");e.length&&!e.val()&&"none"!==g.find(".tcb-lg-consent").css("display")&&g.find('[name="user_consent"]').attr("data-required",1);var a=!0,i=ThriveGlobal.$j(this),o={};if(d.init(),i.find("input, select, textarea").each(function(){var t=ThriveGlobal.$j(this),e=t.data("validation"),i=t.data("required"),n=t.data("iphone-placeholder");""!==n&&t.val()===n&&t.val(""),"password"==t.attr("type")&&(o[t.attr("name")]=t.val()),1===i&&(d.required(t,c.required)||(a=!1)),void 0!==e&&"none"!==e&&d[e]&&(d[e](t,c[e])||(a=!1))}),0').appendTo(e),e.css({position:"relative",width:e.width()+"px",height:e.height()+"px"})),e.find("button").hide(),e.find(".thrv_icon").hide(),i.show()),this},TVE_jQFn.thrive_tcb_timer=function(){return this.each(function(){var t,a=ThriveGlobal.$j(this),e=new Date,i=new Date(a.attr("data-date")+"T"+a.attr("data-hour")+":"+a.attr("data-min")+":"+(a.attr("data-sec")||"00")+a.attr("data-timezone")),o=0,r=0,s=0,l=0,c=2,n=a.attr("data-text"),d=a.hasClass("thrv-countdown_timer_evergreen")||a.hasClass("tve_countdown_timer_evergreen"),h=a.attr("data-norestart"),u=parseInt(a.attr("data-day")),f=parseInt(a.attr("data-hour")),p=parseInt(a.attr("data-min")),v=parseInt(a.attr("data-sec"));if(a.data("tcb_timer_done"))return this;if(a.data("tcb_timer_done",!0),d){i=new Date;var _=TCB_Front.getCookie(a.attr("data-id"));if(_){_=_.split("-");var g=new Date(_[0],_[1]-1,_[2],_[3],_[4],_[5]);i.setTime(g)}else{i.setTime(e.getTime()+24*u*3600*1e3+3600*f*1e3+60*p*1e3+1e3*v);var m=i.getFullYear()+"-"+(i.getMonth()+1)+"-"+i.getDate()+"-"+i.getHours()+"-"+i.getMinutes()+"-"+i.getSeconds(),b=new Date("2034-01-01");if(!parseInt(h)){var y=new Date(i.getTime());b=y.setDate(i.getDate()+parseInt(a.attr("data-expday"))),b=y.setHours(i.getHours()+parseInt(a.attr("data-exphour"))),b=new Date(b)}TCB_Front.setCookie(a.attr("data-id"),m,{expires:b})}}function w(){setTimeout(function(){a.find(".tve_t_day .t-digits").css("min-width",a.find(".tve_t_sec .t-digits > span").outerWidth()*c+"px")},10)}a.parents(".thrv_content_reveal").on("tve-content-revealed",w),a.parents(".tve_p_lb_content").on("tve.before-lightbox-open",w);function T(t,e){if(t.html()==e)return t;t.removeClass("next");var i=t.clone().removeClass("go-down").addClass("next").html(e);return t.before(i).next(".go-down").remove(),t.addClass("go-down"),setTimeout(function(){i.addClass("go-down")},20),t}function C(t,e,i){void 0===i&&(i=!1);var n=0;if(e<=99)T(t.find(".part-1").first(),e),T(t.find(".part-2").first(),Math.floor(e/10)),n=2;else for(;e;)n++,T(t.find(".part-"+n).first(),e),e=Math.floor(e/10);if(!1!==i&&n '+e+"")}a.find(".tve_t_sec .t-digits").empty().append(t(2,Math.floor(l/10))).append(t(1,l)),a.find(".tve_t_min .t-digits").empty().append(t(2,Math.floor(s/10))).append(t(1,s)),a.find(".tve_t_hour .t-digits").empty().append(t(2,Math.floor(r/10))).append(t(1,r));for(var e=a.find(".tve_t_day .t-digits").empty(),i=o,n=1;n<=c;n++)e.append(t(n,i)),i=Math.floor(i/10);e.css("min-width","")}(),a.addClass("init_done"),t=setInterval(function(){$(),C(a.find(".tve_t_sec .t-digits"),l),C(a.find(".tve_t_min .t-digits"),s),C(a.find(".tve_t_hour .t-digits"),r),C(a.find(".tve_t_day .t-digits"),o,c),o<=0&&r<=0&&s<=0&&l<=0&&(o=r=s=l=0,clearInterval(t),k())},1e3)),d&&i<=e&&(clearInterval(t),k())})},TVE_jQFn.thrive_iphone_placeholder=function(){if(!0===(/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream))return this.each(function(){var t=ThriveGlobal.$j(this),e=t.attr("placeholder");return"password"===t.attr("type")||"checkbox"===this.type||"radio"===this.type?this:t.data("iphone-placeholder")?this:(t.attr("placeholder","").val(e),void t.on("focus",function(){t.val()===e&&t.val("")}).on("blur",function(){""===t.val()&&t.val(e)}).data("iphone-placeholder",e))})},"undefined"!=typeof ThriveGlobal&&(TCB_Front.$window=ThriveGlobal.$j(window),TCB_Front.$document=ThriveGlobal.$j(document),TCB_Front.$body=ThriveGlobal.$j("body"),TCB_Front.browser=TCB_Front.detectBrowser(),TCB_Front.$document.ready(function(){setTimeout(function(){var t=ThriveGlobal.$j(tve_frontend_options.is_editor_page?"#tve_editor":"body");"undefined"!=typeof TVE&&"function"==typeof TVE.apply_filters&&(t=TVE.apply_filters("editor_wrapper",t)),t.on("click",".tve_scT > ul li",function(t){var e=ThriveGlobal.$j(this);e.hasClass("tve_tab_title_item")&&tve_frontend_options.is_editor_page&&!e.closest(".tve-prevent-content-edit").length||e.tcbTabsToggle()}),t.off("click.tvetoggleelemold").on("click.tvetoggleelemold",".thrv_toggle_shortcode .tve_faqB",function(){var t=ThriveGlobal.$j(this).closest(".tve_faq"),e=ThriveGlobal.$j(this),i=ThriveGlobal.$j(e).siblings(".tve_faqC");i.is(":visible")?(TCB_Front.handleIframes(i,!1),i.find("video").each(function(){ThriveGlobal.$j(this)[0].pause()}),i.slideUp("fast",function(){i.trigger("lbresize")}),t.removeClass("tve_oFaq"),t.find(".tve_toggle").first().removeClass("tve_toggle_open"),t.find("h4").first().removeClass("tve_toggle_open_text")):(TCB_Front.handleIframes(i,!0),i.slideDown("fast",function(){i.trigger("lbresize")}),TCB_Front.postGridLayout(),TCB_Front.changeAutoplayVideo(i),t.addClass("tve_oFaq"),t.find(".tve_toggle").first().addClass("tve_toggle_open"),t.find("h4").first().addClass("tve_toggle_open_text"))}).on("click",".thrv_social_custom .tve_s_link",function(){var t=ThriveGlobal.$j(this).parents(".tve_s_item"),e=t.attr("data-s");TCB_Front.onSocialCustomClick[e]&&TCB_Front.onSocialCustomClick[e](t)}),t.off("click.tvetoggleelem").on("click.tvetoggleelem",".thrv_toggle:not(.toggle-edit-mode) .thrv_toggle_title",function(t){var e=ThriveGlobal.$j(this),i=e.closest(".thrv_toggle");!e.hasClass("tve-state-expanded")&&i.hasClass("tve-toggle-auto-collapse")&&i.find(".thrv_toggle_title").tcbToggle("hide"),e.tcbToggle()}),t.off("change.radioinputclick").on("change.radioinputclick",".tve_lg_radio_wrapper input",function(t){var e=ThriveGlobal.$j(this).closest(".tve_lg_radio_wrapper");e.parent().siblings().find(".tve-state-expanded").removeClass("tve-state-expanded"),e.siblings(".tve-state-expanded").removeClass("tve-state-expanded"),e.addClass("tve-state-expanded")}),TCB_Front.PostList=i("./util/post-list"),TCB_Front.Pagination=i("./util/pagination"),tve_frontend_options.is_editor_page||(t.on("click",".thrv_contents_table a",function(t){var e=this;try{var i=ThriveGlobal.$j(this.getAttribute("href"));if(i.length)return ThriveGlobal.$j("html, body").animate({scrollTop:i.offset().top-130},200),setTimeout(function(){location.href=/e.getAttribute("href")},200),!1}catch(t){console.warn("ToC exception",t)}}),"undefined"!=typeof TVE_Event_Manager_Registered_Callbacks&&(TCB_Front.event_triggers(t),tve_frontend_options.page_events&&ThriveGlobal.$j.each(tve_frontend_options.page_events,function(t,n){TVE_Event_Manager_Registered_Callbacks[n.a]&&TCB_Front.$document.on("tve-page-event-"+n.t,function(t,e){var i=!0;return"timer"===n.t&&e&&n.config&&n.config.t_delay!==e&&(i=!1),!!i&&TVE_Event_Manager_Registered_Callbacks[n.a].call(document,n.t,n.a,n.config?n.config:{})})})),ThriveGlobal.$j(".tcb-post-list").each(function(){new TCB_Front.PostList(ThriveGlobal.$j(this)).renderPagination()}),TCB_Front.addResizeCallback(TCB_Front.postGridLayout)),"undefined"==typeof ThriveApp&&(TCB_Front.pageSectionHeight(),TCB_Front.addResizeCallback(TCB_Front.pageSectionHeight)),TCB_Front.addResizeCallback(TCB_Front.resizePageSection),TCB_Front.onDOMReady(),TCB_Front.tableSort(ThriveGlobal.$j(".tve_make_sortable tr:last-child th")),TCB_Front.woocommerce.init()})})),TVE_jQFn.tve_contact_form=function(){var i="tcb-cf-error";function l(t,e,i){this.default_response={success:!0,data:{errors:["Something went wrong. Please try again later!"]}},this.$form=t,this.config=e,this.isZapier=i,this.validator=new n(this.$form,e),this.fail=function(){TCB_Front.toast(this.default_response.data.errors[0],!0)},this.done=function(t){var e=ThriveGlobal.$j.extend({},this.default_response,t);"function"!=typeof this[this.config.submit.action+"_action"]||this.isZapier||this[this.config.submit.action+"_action"](e),i&&this.notification_action(e),this.$form[0].reset()},this.notification_action=function(t){TCB_Front.toast(!0===t.success?this.config.submit.notification:t.data.errors[0],!t.success,ThriveGlobal.$j.proxy(function(){this.$form.find("button").removeAttr("disabled"),this.try_close_parent()},this))},this.redirect_action=function(t){if(!0===t.success)return window.location=this.config.submit.url},this.reload_action=function(t){window.location.reload()},this.try_close_parent=function(){this.$form.closest(".tve-leads-conversion-object, .tve_p_lb_inner, .tve-ult-design").find(".tve_ea_thrive_leads_form_close, .tve_ea_close_lightbox, .tve-ult-bar-close").click()}}function r(){var e=[];this.length=0,this.add=function(t){if(!(t.input&&t.input instanceof HTMLElement&&t.error))throw new Error("Invalid item to be pushed into invalid items");e.push(t),this.length++},this.display_errors=function(){e.forEach(function(t){t.input.classList.contains(i)&&t.input.nextSibling.remove(),t.input.classList.add(i);var e=document.createElement("span");e.classList.add(i),e.innerText=t.error,ThriveGlobal.$j(t.input).after(e)})}}function n(e,t){var n=ThriveGlobal.$j.extend({},t.error_messages||{}),a=new r;function o(t){return"required"===t.getAttribute("required")}this.validate_text_field=function(t){var e=!0,i=t.value.trim();return o(t)&&i.length<=0&&(e=!1,a.add({input:t,error:n.required})),e},this.validate_email_field=function(t){var e=!0,i=t.value.trim();return o(t)&&i.length<=0&&(e=!1,a.add({input:t,error:n.required})),e&&0()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(String(t).toLowerCase())},window.tve_unserialize=function(t){function r(t){for(var e=t.length,i=t.length-1;0<=i;i--){var n=t.charCodeAt(i);127t.length&&C("Error","Invalid"),a.push(o),o=t.slice(e+(n-1),e+n),n+=1;return[a.length,a.join("")]},$=function(t,e,i){var n,a,o=[];for(n=0;n>2,o=(3&e)<<4|(i=t.charCodeAt(c++))>>4,r=(15&i)<<2|(n=t.charCodeAt(c++))>>6,s=63&n,isNaN(i)?r=s=64:isNaN(n)&&(s=64),l=l+this._keyStr.charAt(a)+this._keyStr.charAt(o)+this._keyStr.charAt(r)+this._keyStr.charAt(s);return l},decode:function(t){var e,i,n,a,o,r,s="",l=0;for(t=t.replace(/[^A-Za-z0-9\+\/\=]/g,"");l>4,i=(15&a)<<4|(o=this._keyStr.indexOf(t.charAt(l++)))>>2,n=(3&o)<<6|(r=this._keyStr.indexOf(t.charAt(l++))),s+=String.fromCharCode(e),64!=o&&(s+=String.fromCharCode(i)),64!=r&&(s+=String.fromCharCode(n));return s=this._utf8_decode(s)},_utf8_encode:function(t){t=t.replace(/\r\n/g,"\n");for(var e="",i=0;i>6|192):(e+=String.fromCharCode(n>>12|224),e+=String.fromCharCode(n>>6&63|128)),e+=String.fromCharCode(63&n|128))}return e},_utf8_decode:function(t){for(var e="",i=0,n=0,a=0,o=0;i'+this.cursorChar+""),this.el.after(this.cursor)),this.stringsElement){i.strings=[],this.stringsElement.hide();var t=this.stringsElement.find("p");l.each(t,function(t,e){i.strings.push(l(e).html())})}this.init()},typewrite:function(o,r){if(!0!==this.stop){var t=this.typeSpeed,s=this;l(this.el),s.timeout=setTimeout(function(){var t=0,e=o.substr(r);if("^"===e.charAt(0)){var i=1;/^\^\d+/.test(e)&&(i+=(e=/\d+/.exec(e)[0]).length,t=parseInt(e)),o=o.substring(0,r)+o.substring(r+i)}if("html"===s.contentType){var n=o.substr(r).charAt(0);if("<"===n||"&"===n){var a="";for(a="<"===n?">":";";o.substr(r).charAt(0)!==a;)o.substr(r).charAt(0),r++;r++}}s.timeout=setTimeout(function(){if(r===o.length){if(s.options.onStringTyped(s.arrayPos),s.arrayPos===s.strings.length-1&&(s.options.callback(),s.curLoop++,!1===s.loop||s.curLoop===s.loopCount))return;s.timeout=setTimeout(function(){s.options.highlightClass?s.highlight(o,r):s.backspace(o,r)},s.backDelay)}else{0===r&&s.options.preStringTyped(s.arrayPos);var t=o.substr(0,r+1);s.attr?s.el.attr(s.attr,t):s.isInput?s.el.val(t):"html"===s.contentType?s.el.html(t):s.el.text(t),r++,s.typewrite(o,r)}},t)},t)}},highlight:function(i,n){if(!0!==this.stop){var t=this.backSpeed,a=this;l(a.el),l(""),a.timeout=setTimeout(function(){if("html"===a.contentType&&">"===i.substr(n).charAt(0)){for(;"<"!==i.substr(n).charAt(0);)i.substr(n).charAt(0),n--;n--}var t=i.substr(0,n),e=i.substr(n);a.attr?a.el.attr(a.attr,t):a.el.html(t+''+e+""),n>a.stopNum?(n--,a.highlight(i,n)):n<=a.stopNum&&setTimeout(function(){a.arrayPos++,a.arrayPos===a.strings.length?(a.arrayPos=0,a.init("write")):a.typewrite(a.strings[a.sequence[a.arrayPos]],n)},200)},t)}},backspace:function(e,i){if(!0!==this.stop){var t=this.backSpeed,n=this,a=l(n.el);n.timeout=setTimeout(function(){if("html"===n.contentType&&">"===e.substr(i).charAt(0)){for(;"<"!==e.substr(i).charAt(0);)e.substr(i).charAt(0),i--;i--}var t=e.substr(0,i);n.attr?n.el.attr(n.attr,t):n.isInput?n.el.val(t):"html"===n.contentType?n.el.html(t):n.el.text(t),i>n.stopNum?(i--,n.backspace(e,i)):i<=n.stopNum&&(n.arrayPos++,n.arrayPos===n.strings.length?(n.arrayPos=0,n.shuffle&&(n.sequence=n.shuffleArray(n.sequence)),n.init("write")):n.typewrite(n.strings[n.sequence[n.arrayPos]],i),n.options.highlightClass&&a.is("."+n.options.highlightClass)&&a.removeClass(n.options.highlightClass))},t)}},shuffleArray:function(t){var e,i,n=t.length;if(n)for(;--n;)e=t[i=Math.floor(Math.random()*(n+1))],t[i]=t[n],t[n]=e;return t},pause:function(){this.stop=!0,clearInterval(this.timeout)},start:function(){!1!==this.stop&&(this.stop=!1,this.init())},reset:function(){clearInterval(this.timeout);var t=this.el.attr("id");this.el.after(''),this.el.remove(),void 0!==this.cursor&&this.cursor.remove(),this.options.resetCallback()}},l.fn.typed=function(n){return this.each(function(){var t=l(this),e=t.data("typed"),i="object"==_typeof(n)&&n;e||t.data("typed",e=new a(this,i)),"string"==typeof n&&e[n]()})},l.fn.typed.defaults={strings:["These are the default values...","You know what you should do?","Use your own!","Have a great day!"],stringsElement:null,typeSpeed:0,startDelay:0,backSpeed:0,shuffle:!1,backDelay:500,loop:!1,loopCount:!1,showCursor:!0,cursorChar:"|",attr:null,contentType:"html",callback:function(){},preStringTyped:function(){},onStringTyped:function(){},resetCallback:function(){}}},util:{"compat.js":function(t,e,i){function n(t){return!this.dataset.href||("_blank"===this.dataset.target?window.open(this.dataset.href,"_blank","noopener"):location.href=/this.dataset.href,!1)}var a;a=ThriveGlobal.$j,e.exports=function(t){tve_frontend_options.is_editor_page||(function(t){t.find(".thrv_wrapper > div[data-clip-id]").parent().addClass("safari-ios-decoration-fix")}(t),function(t){t.find("a > .tcb-col, a > .thrv-content-box").each(function(){var t=this.parentNode;a(this).unwrap().css("cursor","pointer").off("click.tcb-block").on("click.tcb-block",n).attr({"data-href":t.href,"data-target":t.getAttribute("target")||""})})}(t))}},"divider.js":function(t,e,i){var n,a,o;n=ThriveGlobal.$j,a=TCB_Front,o={init:function(){a.addResizeCallback(this.customDividerStyle.bind(this,!!tve_frontend_options.is_editor_page)),this.customDividerStyle()},customDividerStyle:function(){n(".thrv-divider").each(function(){var t=n(this),e=t.find("hr");1023e?e:d.getClosestRating(t.dataset.value,e),n=t.dataset.style,a="",o=this.templates[n].viewbox||"-6 -6 70 70",r=Math.floor(i),s=Math.round(i-r),l=1;l<=e;l++){var c="full";r'+d.templates[n][c]+""}return a},getClosestRating:function(t,e){var i=0;t=parseFloat(t);for(var n=0;n<=e&&n<=t;n+=.5)i=n;return i},templates:{style1:{empty:'',half:'',full:''},style2:{viewbox:"-4 -4 60 60",empty:'',half:'',full:''},style3:{viewbox:"-6 -6 80 80",empty:'',half:'',full:''},style4:{viewbox:"-6 -6 68 68",empty:'',half:'',full:''}},updatePrograssBar:function(e){a(".tcb-custom-field-source .tve_progress_bar_fill_wrapper").each(function(){var t=a(this);e&&!t.attr("data-post-list")?(t.css({width:""}),t.head_css({width:t.attr("data-fill")+"%"})):t.css({width:t.attr("data-fill")+"%"})})},updateFillCounter:function(i){a(".tcb-custom-field-source .tve_fill_counter_n").each(function(){var t=a(this),e=t.find(".tve_fill_text");d.applyFill(t,t[0].dataset.fill,i),e.find(".tve-fill-text-dynamic").length&&e.html('
").concat(t[0].dataset.fill,"%
"))})},applyFill:function(t,e,i){var n=Number(e),a=t.find(".tve_fill_counter_circle circle").attr("r"),o=Math.PI*(2*a);t.attr("data-fill",n),n<0&&(n=0),100 ul .tve_tS"),r=n.index(),s=a.find("> ul li"),l=o.index(),c=a.find('> .tve_scTC[style*="block"]'),d=c.data("contentHeight")||c.height(),h=a.find("> .tve_scTC").eq(r),u=o.attr("data-tve-custom-colour"),f=n.attr("data-tve-custom-colour"),p=t.attr("data-animation");p&&0<=l&&"carousel"===p&&(p=l').concat(t.text(),"");a.itemCallback(t,i,a),s[l]+=n}}),e.html(s.map(function(t){return'
'.concat(t,"
")}).join(""))}else a.hideEmpty&&t.hide()}})}},"jumplink.js":function(t,e,i){var d,h;d=ThriveGlobal.$j,(h=TCB_Front).$document.on("click","a.tve-jump-scroll",function(t){if(this.hash.includes("comments")&&this.href!==this.hash)return!0;t.preventDefault(),t.stopPropagation();var e,i=d(this).closest("li.menu-item");try{e=d(this.hash)}catch(t){}if(i.length&&i.trigger("menu_item_anchor_clicked"),e&&e.length){if(history&&history.pushState){var n=location.href;-1 a").each(function(){if(""!==this.getAttribute("href")&&"#"!==this.getAttribute("href")&&0!==this.getAttribute("href").indexOf("javascript")){var t=d(this),e=location.protocol===this.protocol&&location.hostname===this.hostname&&location.pathname===this.pathname&&location.hash===this.hash;t.toggleClass("tve-state-active",e),t.parent().toggleClass("tve-state-active",e)}})},customMenuResponsive:function(){d(".tve-m-trigger:visible").length?d(".tve-m-trigger").each(function(){var t=d(this).parent().find("> ul");if(!t.data("tve-colors-added")&&t.find("ul a").attr("data-tve-custom-colour")){var e=t.find("ul a").attr("data-tve-custom-colour");t.find("> li > a").each(function(){var t=d(this);t.attr("data-tve-custom-colour")&&(t.attr("data-o-color",t.attr("data-tve-custom-colour")),t.attr("data-tve-custom-colour",e))})}t.data("tve-colors-added",!0)}):(d(".tve-m-expanded").removeClass("tve-m-expanded"),d(".tve-m-trigger").each(function(){var t=d(this).parent().find("> ul");if(!t.data("tve-colors-added")&&t.find("> li > a").attr("data-o-color")){var e=t.find("> li > a"),i=e.attr("data-o-color");e.attr("data-tve-custom-colour",i).removeAttr("data-o-color")}t.data("tve-colors-added",!1)}))},customMenuSwitchIcon:function(t){var c=!(0 ul"),r=e.data("tve-frontend-init");e.data("tve-frontend-init",!0),i||n||(i="tablet,mobile"),t=i.split(",");var s=e.hasClass("tve-regular")||!e.find(".tve-m-trigger").is(":visible");if(e.removeClass("tve-custom-menu-switch-icon-desktop tve-custom-menu-switch-icon-tablet tve-custom-menu-switch-icon-mobile"),c&&e.find("ul").removeAttr("style"),1023=e.lastPage)})}},{key:"renderLabel",value:function(){var n=this;this.$label.find(".thrive-shortcode-content").each(function(t,e){var i=e.dataset.shortcode;e.innerText=" ".concat(n.getLabelValue(i)," ")})}},{key:"getLabelValue",value:function(t){var e;switch(t){case"tcb_pagination_current_page":e=this.currentPage;break;case"tcb_pagination_total_pages":e=this.totalPages;break;case"tcb_pagination_current_posts":e=(this.currentPage-1)*this.postsPerPage+1+"-"+this.currentPage*this.postsPerPage;break;case"tcb_pagination_total_posts":e=this.totalPages*this.postsPerPage;break;default:e=""}return e}},{key:"renderPageNumbers",value:function(){this.$pageNumberContainer.empty();for(var t=!0,e=1;e<=this.totalPages;e++){var i=void 0;if(e===this.currentPage)i="current";else if(1===e||e>=this.currentPage-this.pagesAroundCurrent&&e<=this.currentPage+this.pagesAroundCurrent||e===this.totalPages)i="link",t=!0;else{if(i="dots",!t)continue;t=!1}this.$pageNumberContainer.append(n.renderPageNumber(e,i))}}}],[{key:"renderPageNumber",value:function(t,e){var i,n=[r,"thrv_wrapper"],a={};switch(1'.concat(t,"")}return a["data-selector"]=i,o("

".concat(t,"

")).addClass(n.join(" ")).attr(a)}}]),n}(),f=function(){function n(t,e){var i;return _classCallCheck(this,n),(i=_possibleConstructorReturn(this,_getPrototypeOf(n).call(this,t,e))).$button=i.$element.find(".tcb-pagination-load-more-button"),i}return _inherits(n,h),_createClass(n,[{key:"addLoadListeners",value:function(){this.$button.on("click",this.load.bind(this))}},{key:"load",value:function(){var e=this;if(!this.isLoading()){this.enableLoading("load-bot");var t=this.postList.listArgs;t.query.paged+=1,this.postList.getPosts(function(t){e.postList.insertPosts(t),e.render(),e.disableLoading()},t)}}},{key:"render",value:function(){var t=this.postList.listArgs;!(1===parseInt(tve_frontend_options.is_editor_page))&&t.query.paged*t.query.posts_per_page>=this.getTotalPostCount()&&this.$element.hide(),this.$element.removeClass(d)}}]),n}(),e.exports=h},"post-list.js":function(t,e,i){var o,a,n;o=ThriveGlobal.$j,a=i("./pagination"),n=function(){function n(t){_classCallCheck(this,n),this.$element=t,this.content="",this.listArgs={};var e=this.getAttr("data-css"),i=ThriveGlobal.$j.Event("tcb_post_list_identifier.tcb");this.$element.trigger(i),i.identifier&&(e=i.identifier),this.identifier=e,this.setArgs()}return _createClass(n,[{key:"getPaginationInstance",value:function(){var t=this.listArgs.attr["pagination-type"];if(t.length&&"none"!==t)return a.factory(t,this)}},{key:"renderPagination",value:function(){this.pagination=this.getPaginationInstance(),this.pagination&&(tve_frontend_options.is_editor_page||this.pagination.addLoadListeners(),this.pagination.render())}},{key:"setArgs",value:function(){var e=this;tve_frontend_options.is_editor_page?this.listArgs={attr:{"pagination-type":this.getAttr("data-pagination-type"),total_post_count:this.getAttr("data-total_post_count")?this.getAttr("data-total_post_count"):100,pages_near_current:this.getAttr("data-pages_near_current")?this.getAttr("data-pages_near_current"):2},query:{posts_per_page:this.getAttr("data-posts_per_page")?this.getAttr("data-posts_per_page"):6,paged:1}}:"undefined"!=typeof tcb_post_lists?(this.listArgs=tcb_post_lists.find(function(t){return e.$element.is(t.identifier)}),this.listArgs.query&&void 0!==this.listArgs.query.offset&&delete this.listArgs.query.offset,this.listArgs.attr.queried_object=0,this.content=o('.tcb-post-list-template[data-identifier="'+this.listArgs.template+'"]').html(),TCB_Front.$document.on("mousedown",'.tcb-post-list[data-disabled-links="1"] > article',function(t){switch(t.button){case 0:window.open(o(this).attr("data-permalink"),"_self");break;case 1:window.open(o(this).attr("data-permalink"),"_blank")}})):console.warn("Error initializing the post list parameters")}},{key:"getAttr",value:function(t){return this.$element.attr(t)}},{key:"getPosts",value:function(e,t){var i=this,n=1e.offsetHeight&&t.css({position:"",top:""})}}]),n}(),e.exports=n},"query-string.js":function(t,i,e){!function(){"undefined"==typeof URLSearchParams&&(window.URLSearchParams=function(t){var i=this;i.searchString=t,i.get=function(t){var e=new RegExp("[?&]"+t+"=([^&#]*)").exec(i.searchString);return null==e?null:decodeURI(e[1])||0}});var e=new URLSearchParams(window.location.search);i.exports={get:function(t){return"string"!=typeof t&&(t=""),e.get(t)}}}(ThriveGlobal.$j,TCB_Front)},"smartcomplete.js":function(t,e,i){ThriveGlobal.$j,TCB_Front,e.exports={init:function(t){tve_frontend_options.is_editor_page||this.handleSmartComplete(t)},handleSmartComplete:function(t){var n=this;t.find("[default-value]:not([data-complete-type])").each(function(t,e){e.setAttribute("value",e.getAttribute("default-value"))}),t.find("[data-complete-type]").each(function(t,e){var i=e.dataset.completeValue;switch(e.dataset.completeType){case"user":e.dataset.completeValue.includes("wp")?i=tve_frontend_options.current_user[e.dataset.completeValue.replace("wp.","")]:"ip"===e.dataset.completeValue?i=tve_frontend_options.ip:(i=Object.keys(TCB_Front.detectBrowser()).filter(function(t){return"webkit"!==t}).toString()).includes("version")&&(i=i.replace("version",TCB_Front.browser.version));break;case"time":i=n.convertDate(e.dataset.completeValue+" HH:mm:ss");break;case"query":i=TCB_Front.queryString.get(e.dataset.completeValue);break;case"post":i=tve_frontend_options.post_request_data[e.dataset.completeValue];break;case"content":i=tve_frontend_options[e.dataset.completeValue];break;case"source":i=document.referrer;break;case"shortcode":i=i.replace(/\[(.*?)\]/g,"")}(i=i||e.getAttribute("default-value"))&&(e.value=i)}),t.find('[type="radio"][default-value]').each(function(){this.checked=this.value===this.getAttribute("default-value")}),t.find('[type="checkbox"][default-value]').each(function(){this.checked="checked"===this.getAttribute("default-value")})},convertDate:function(t){var e=new Date;function i(t,e){var i=t+"";for(e=e||2;i.lengthu.top+i){!function(){if(!(c=h.data("clone-sticky"))){var t=h.outerHeight();h.parent().hasClass("tcb-clear")&&(t=h.parent().outerHeight()),c=o('
').css({boxSizing:"border-box",padding:0,width:h.outerWidth(),height:t,marginTop:h.css("margin-top"),marginBottom:h.css("margin-bottom"),marginLeft:h.css("margin-left"),marginRight:h.css("margin-right"),position:h.css("position")}),h.data("clone-sticky",c)}}(),h.addClass(s),delete e.position,h.data("saved_props",{offset:u,width:h[0].style.width||"",left:h[0].style.left||""}),h.css(o.extend({width:h.width(),height:h.height(),top:r.top+"px",left:u.left+"px"},e)),h.before(c),h[0].style.setProperty("margin-top","0px","important"),h[0].style.setProperty("margin-left","0px","important"),h[0].style.setProperty("min-width","0","important"),h[0].style.setProperty("max-width","none","important"),h[0].style.setProperty("position",n,"important"),h[0].style.setProperty("box-sizing","content-box","important");var a=Number(h.css("z-index"));h[0].style.setProperty("z-index",isNaN(a)?"10":Math.max(a,10),"important"),l=!0,h.data("append-target")&&(h.appendTo(h.data("append-target")),h.data("$parent").is("a")&&(h.wrap(h.data("$parent").clone().empty().addClass("tcb-sticky-anchor")),h[0].style.setProperty("text-decoration","inherit","important"))),h.hasClass("thrv_header")&&h[0].style.setProperty("z-index",90),d.$body.trigger("tcb-sticky-add",[h])}},_.on_scroll_up_default=function(t,e){if(c&&l){(e=!!e)||"appear"!==r.mode||p(h,{top:r.top});var i=c.offset().top||h.data("saved_props").offset.top;e||t+r.top<=i?(l=!1,h.removeClass(s).stop().css(Object.assign({},n,h.data("saved_props"))),document.contains(c[0])&&h.data("append-target")&&c.before(h),c.detach(),d.$body.find(".tcb-sticky-anchor:empty").remove(),d.$body.trigger("tcb-sticky-remove",h)):d.$body.trigger("tcb-sticky-add",[h])}},_.on_scroll_down_parent=function(t){var e=i(t);l?(h.css({top:e}),d.$body.trigger("tcb-sticky-add",[h])):_.on_scroll_down_default(t,{position:"absolute",left:h.data(h.data("appendTarget").is(d.identifiers.stickyParentType)?"$$position":"$$offset").left,top:e})},_.on_scroll_up_parent=function(t){_.on_scroll_up_default(t),l&&h.css("top",i(t))},_.on_scroll_down_element=function(t){var e={top:Math.min(r.top,h.data("$$stop-offset").top-t-h.outerHeight())};l?(h.css("top",e.top),d.$body.trigger("tcb-sticky-add",[h])):_.on_scroll_down_default(t,e)},_.on_scroll_up_element=function(t){_.on_scroll_up_default(t),l&&(h.css("top",Math.min(r.top,h.data("$$stop-offset").top-t-h.outerHeight())),d.$body.trigger("tcb-sticky-add",[h]))},_.on_scroll_down_parallax=_.on_scroll_up_parallax=function(t){var e=h.data("elem_data"),o=h.data("parallaxSettings");if(o&&Object.keys(o).length&&e){var r,s=[],l=function(t,e){var i=e.top-t-window.innerHeight;return 100/e.elementRange*(-1*i)}(t,e);Object.keys(o).forEach(function(t){var e,i=o[t],n=function(t,e){var i=0,n=e.direction;if(["in-out","out-in"].includes(n)&&(n=n.split("-")[t<=e.middle?"0":"1"],"in-out"===e.direction)){var a=e.middle-e.start;"in"===n?t+=a:t-=a,t===e.middle&&(t="in"===n?-1:101)}ti.end?i.end:l),i);switch(t){case"vertical":case"horizontal":case"rotate":e=function(t,e){return-(t-50)*e}(r="in"===i.direction?r:100-r,i.speed);break;case"scale":e=1+i.speed*n/1e3;break;case"blur":e=i.speed-c(i.speed,n);break;case"transparency":var a=i.speed/10;e=1-a+c(a,n);break;case"3dperspective":i.perspective=Number(i.perspective),e="from"===i.direction?(1e3-i.perspective)*(r-i.start)/100*i.speed+i.perspective:(r=100-r,Math.max(i.perspective,i.perspective*r/100*i.speed)),e=Math.max(e,100),d.inlineCssVariable(h,"--parallaxRY")!=="".concat(i.degrees,"deg")&&s.push({key:"RY",value:"".concat(i.degrees,"deg")})}s.push({key:i.settings.key,value:"".concat(e).concat(i.settings.um)})}),s.length&&s.forEach(function(t){d.inlineCssVariable(h,"--parallax".concat(t.key),t.value)})}function c(t,e){return t*e/100}};var T=t(function(){v.each(function(){w(this),_.on_scroll_up_default(0,!0)}),b(d.$document.scrollTop(),"down",!0)},50);e.initSticky=function(){var t=0=t.offset().top&&t.offset().top>i||"start"===t.attr("data-typefocus")?t.typed("start"):(t.attr("data-typefocus"),t.typed("pause")))})}catch(t){console.log(t)}}var a,o,r;a=ThriveGlobal.$j,o=TCB_Front,r=a(),e.exports=function(t){r=r.add(t.find(".tve_typefocus")),setTimeout(function(){try{r.each(function(){var t=a(this),e=[],i=parseInt(t.attr("data-speed")),n=t.attr("data-colors");0!==t.attr("data-typist").length&&(e.push(t.text()),e=e.concat(t.attr("data-typist").split("|")),t.typed({strings:e,loop:!0,typeSpeed:125,backSpeed:50,highlightClass:1===parseInt(t.attr("data-highlight"))?"tve_selected_typist":"",highlightStyle:1===parseInt(t.attr("data-highlight"))&&n?"background-color:"+n:"",backDelay:i,contentType:"text",startDelay:800,showCursor:t.hasClass("tve_typefocus_cursor")}))})}catch(t){console.log(t)}},1e3),o.add_scroll_callback(n)}}},woo:{"events.js":function(t,e,i){ThriveGlobal.$j,e.exports={added_to_cart:function(t,e,i,n){if("_blank"===n.attr("target")){var a=n.attr("href").replace(/\?.*/,"");window.open(a,"_blank")}},adding_to_cart:function(t,e,i){}}},"woocommerce.js":function(t,e,i){var n,a,o;n=ThriveGlobal.$j,a=i("./events"),o=function(){function i(){_classCallCheck(this,i)}return _createClass(i,null,[{key:"init",value:function(){tve_frontend_options.is_editor_page||(i.updateAddToCartButtons(),n(document.body).on("added_to_cart",a.added_to_cart).on("adding_to_cart",a.adding_to_cart))}},{key:"updateAddToCartButtons",value:function(){n('[data-dynamic-link="thrive_woo_link_shortcode"][data-shortcode-id="add_to_cart"]').each(function(t,e){e.classList.add(i.wooButtonClassName,i.ajaxButtonClassName),e.setAttribute("data-quantity",1),e.setAttribute("data-product_id",i.getPostIdFromElement(e))})}},{key:"getPostIdFromElement",value:function(t){var e=tve_frontend_options.post_id,i=t.closest(".post-wrapper");if(i){var n=i.getAttribute("class").match(/post-(\d+)/);n&&2===n.length&&(e=n[1])}return e}},{key:"ajaxButtonClassName",get:function(){return"ajax_add_to_cart"}},{key:"wooButtonClassName",get:function(){return"add_to_cart_button"}}]),i}(),e.exports=o}}}}}}})("workspace/editor/js/frontend/thrive_content_builder_frontend"); /*! Thrive Themes - 2018-11-07 * https://thrivethemes.com/ * Copyright (c) 2018 Thrive Themes */ if(void 0===ThriveApp)var ThriveApp={};var _isAdmin=0,_is_blankPage=0;ThriveApp.is_theme_layout=!1,ThriveApp.bind_comments=!1,ThriveApp.winWidth=jQuery(window).width(),ThriveApp.viewportHeight=jQuery(window).height(),jQuery(window).on("load",function(){ThriveApp.truncatePostGallery(),ThriveApp.resize_blank_page()}),jQuery(function(){function a(){var a=document.querySelector(".mry");new Masonry(a,{itemSelector:".mry-i",gutter:".mry-g"});jQuery(".bSe").find(".tcb-window-width").removeClass("tcb-window-width").css({width:"auto",left:"auto"})}_isAdmin=jQuery("#wpadminbar").length,_is_blankPage=jQuery(".bp-t").length,_is_blankPage||(ThriveApp.menuPositionTop=jQuery("nav.right").length?jQuery("nav.right").position().top:0),ThriveApp.is_theme_layout=!!(jQuery(".bSe .awr").length+jQuery(".bp-t .wrp").length),ThriveApp.menuResponsive(),ThriveApp.shortcodeTabsResize(),ThriveApp.setPageSectionHeight(),ThriveApp.bind_comments_handlers(),ThriveApp.check_comments_hash(),ThriveApp.image_post_resize(),ThriveApp.videoShorcode(),ThriveApp.blog_gallery(),ThriveApp.post_format_gallery(),jQuery(".cdt").thrive_timer(),ThriveApp.grid_layout(".gin",".art"),ThriveApp.grid_layout(".scbg",".scc"),jQuery(".faqI h4").click(function(){return jQuery(this).toggleClass("oFaq"),jQuery(this).parents(".faqI").find(".faqC").slideToggle("fast"),!1}),jQuery(".tmw").hover(function(){jQuery(this).find(".tmm").slideDown()},function(){jQuery(this).find(".tmm").slideUp()}),jQuery(".accss .acc-h").click(function(){var a=jQuery(this),b=jQuery(this).parents(".accs"),c=b.find(".accss");if(a.parent().hasClass("opac"))return!1;a.parents(".accs").find(".opac").find(".accsi").slideUp(function(){c.removeClass("opac")}),a.next(".accsi").slideDown(function(){a.parents(".accss").addClass("opac")})}),jQuery("section footer ul").children("li").each(function(){jQuery(this).mouseover(function(){jQuery(this).children("ul").show()}),jQuery(this).mouseout(function(){jQuery(this).children("ul").hide()}),jQuery(this).click(function(){jQuery(this).children("ul").toggle()})}),jQuery(".sm_icons, .scfm .ss").each(function(){jQuery(this).mouseover(function(){jQuery(".bubb",this).css("left",function(){return(jQuery(this).parent().width()-jQuery(this).width())/2}).show(0)}),jQuery(this).mouseout(function(){jQuery(".bubb",this).hide()})}),jQuery(".bSe").hasClass("mry")&&(a(),jQuery(window).on("load",a)),jQuery(window).resize(function(){var a=window.innerWidth,b=jQuery(window).height();ThriveApp.winWidth!==a&&ThriveApp.delay(function(){ThriveApp.menuResponsive()},1),ThriveApp.winWidth=a,ThriveApp.viewportHeight=b,ThriveApp.menuPositionTop=jQuery("nav.right").length?jQuery("nav.right").position().top:0,ThriveApp.shortcodeTabsResize(),ThriveApp.videoShorcode(),ThriveApp.setVideoPosition(),ThriveApp.setPageSectionHeight(),ThriveApp.image_post_resize(),ThriveApp.grid_layout(".gin",".art"),ThriveApp.grid_layout(".scbg",".scc")}),jQuery(".thrive-borderless .wp-video-shortcode").length>0&&(jQuery(".thrive-borderless .wp-video-shortcode").css("width","100%"),jQuery(".thrive-borderless div").css("width","100%")),ThriveApp.comments_page=1,1==ThriveApp.lazy_load_comments&&(jQuery(window).scroll(ThriveApp.bind_scroll),ThriveApp.load_comments()),jQuery(window).trigger("scroll"),jQuery("body").on("added_to_cart",function(a,b,c,d){var e=jQuery(b[".mini-cart-contents"]).find("a.cart-contents-btn");jQuery(".mobile-mini-cart").html("").append(e)}),window.FB&&window.FB.XFBML&&jQuery(".fb-comments").each(function(){window.FB.XFBML.parse(this.parentNode)})}),ThriveApp.grid_layout=function(a,b){jQuery(a).length>0&&jQuery(a).each(function(){var c=jQuery(b,this),d=c.length,e=3;ThriveApp.winWidth>=1080?(".scbg"==a&&jQuery(".bSe").hasClass("fullWidth")&&(e=4),(jQuery(".bSe").parents(".bSeCont").length>=1||jQuery(".bSe .bpd").length>=1)&&(e=2)):1080>ThriveApp.winWidth&&ThriveApp.winWidth>=940?jQuery(".bSe").hasClass("fullWidth")&&".gin"!=a||(e=2):940>ThriveApp.winWidth&&ThriveApp.winWidth>=775&&(e=2),function(a){for(var b="",e=0;e0&&(a.attr("data-index",jQuery("#li-thrive-gallery-item-"+d,a).find("a").attr("data-index")),b.css("background-image","url("+jQuery("#li-thrive-gallery-item-"+d,a).find("a").attr("data-src")+")"),e.attr("src",jQuery("#li-thrive-gallery-item-"+d,a).find("a").attr("data-src"))),!1}),c.click(function(){var c=parseInt(a.attr("data-index")),d=c+1;return d>=a.attr("data-count")&&(d=0),jQuery("#li-thrive-gallery-item-"+d,a).length>0&&(a.attr("data-index",jQuery("#li-thrive-gallery-item-"+d,a).find("a").attr("data-index")),b.css("background-image","url("+jQuery("#li-thrive-gallery-item-"+d,a).find("a").attr("data-src")+")"),e.attr("src",jQuery("#li-thrive-gallery-item-"+d,a).find("a").attr("data-src"))),!1})})},ThriveApp.setPageSectionHeight=function(){var a=jQuery(".wrp .bpd,.wrp .fullWidth"),b=a.length;b&&ThriveApp.winWidth;jQuery(".pddbg, .scvps").css("max-width",ThriveApp.winWidth+"px"),jQuery(".pdfbg").each(function(){var a=jQuery(this).css("box-sizing","border-box"),b=parseInt(a.attr("data-height")),c=parseInt(a.attr("data-width")),d="100%";if(b&&!isNaN(b)&&c&&!isNaN(c)){var e=Math.min(ThriveApp.winWidth,a.parent().width());d=(e=722){var a=jQuery(this).children(".sub-menu"),b=jQuery(this).offset().left,c=a.width(),d=jQuery(".wrp.cnt"),e=d.width(),f=d.offset().left;(bf+e)&&(a.addClass("position_menu"),bf+e&&(a.hasClass("position_left")||a.addClass("position_right"))),jQuery(this).children(".sub-menu").stop().fadeIn("fast")}else jQuery(this).children(".sub-menu").show(0)}),jQuery(this).mouseleave(function(){jQuery(this).children(".sub-menu").stop().fadeOut("fast")})})},ThriveApp.shortcodeTabsResize=function(){jQuery(".scT .scT-tab li").on("click",function(a){var b=jQuery(this),c=b.parents(".shortcode_tabs").first(),d=c.find(".scTC").eq(b.index());c.find(".tS").removeClass("tS"),b.addClass("tS"),c.find(".scTC").hide(),d.show(),a.preventDefault()})},ThriveApp.menuResponsive=function(){ThriveApp.winWidth<=768?(jQuery("header nav ul li").each(function(){jQuery(this).unbind("mouseenter"),jQuery(this).unbind("mouseleave")}),jQuery("header #nav_right").hide(0),jQuery(".sub-menu").hide(0),jQuery("header nav ul li a:last").css("border","none"),jQuery(".hmn").unbind("click").click(function(){var a=jQuery("#floating_menu").height(),b=jQuery("#wpadminbar").length?46:0,c=a+b,d=ThriveApp.viewportHeight-c;jQuery("header #nav_right").fadeToggle("fast",function(){var a=jQuery("#floating_menu nav").height();ThriveApp.viewportHeight<=a+c&&(jQuery("#nav_right").css({"max-height":d+"px"}),jQuery("html").addClass("html-hidden")),a<=0&&jQuery("html").removeClass("html-hidden")})})):ThriveApp.winWidth>768&&(jQuery("header #nav_right").show(0),ThriveApp.showMenu())},ThriveApp.delay=function(){var a=0;return function(b,c){clearTimeout(a),a=setTimeout(b,c)}}(),ThriveApp.check_comments_hash=function(){if(location.hash&&-1!==location.hash.indexOf("#comment-")){var a=location.hash.indexOf("#comment-")+9,b=location.hash.substring(a,location.hash.length),c=jQuery("#comment-container-"+b);0!==c.length&&jQuery("html,body").animate({scrollTop:c.offset().top-30},"slow")}},ThriveApp.videoShorcode=function(){jQuery(".scvps .pvb").click(function(){var a=jQuery(this).parents(".scvps").height();if(jQuery(this).parents(".scvps").css("height",a+"px"),jQuery(this).parents(".vdc").find("h2").hide(),jQuery(this).parents(".vdc").find("h3").hide(),jQuery(this).parents(".vdc").find("p").hide(),jQuery(this).hide(),jQuery(this).parents(".scvps").find(".video-container").show(),jQuery(this).parents(".scvps, .bsc").find("iframe").length>0){var b=jQuery(this).parents(".scvps").find("iframe"),c=jQuery(this).parents(".scvps").outerWidth();c<=b.attr("width")&&(b.attr("width",c),b.attr("height",9*c/16))}var d=jQuery(this).parents(".scvps").find(".vwr"),e=jQuery(this).parents(".scvps").outerHeight()/2-d.height()/2;if(d.css({top:e<0?0:e,left:jQuery(this).parents(".scvps").outerWidth()/2-d.width()/2}),jQuery(this).parents(".scvps").find("video").length>0&&jQuery(this).parents(".scvps").find("video")[0].player.play(),jQuery(this).parents(".scvps").find("iframe").length>0){var b=jQuery(this).parents(".scvps").find("iframe"),f=(b.attr("id"),b.attr("src"));f.indexOf("vimeo")>=0?b.attr("src",ThriveApp.updateQueryStringParameter(f,"autoplay","1")):f.indexOf("youtube")>=0&&b.attr("src",ThriveApp.updateQueryStringParameter(f,"autoplay","1")),jQuery(this).parents(".scvps").find("iframe").trigger("click")}})},ThriveApp.bind_scroll=function(){if(jQuery("#comment-bottom").length>0){var a=jQuery("#comment-bottom").offset().top;a>0&&a')},ThriveApp._get_element_height=function(a){var b,c,d=document.getElementById(a);return document.all?(b=d.currentStyle.height,c=parseInt(d.currentStyle.marginTop,10)+parseInt(d.currentStyle.marginBottom,10)+"px"):(b=document.defaultView.getComputedStyle(d,"").getPropertyValue("height"),c=parseInt(document.defaultView.getComputedStyle(d,"").getPropertyValue("margin-top"))+parseInt(document.defaultView.getComputedStyle(d,"").getPropertyValue("margin-bottom"))+"px"),b+c},ThriveApp.updateQueryStringParameter=function(a,b,c){var d=new RegExp("([?|&])"+b+"=.*?(&|$)","i");return separator=-1!==a.indexOf("?")?"&":"?",a.match(d)?a.replace(d,"$1"+b+"="+c+"$2"):a+separator+b+"="+c},ThriveApp.social_scripts={twitter:{src:"https://platform.twitter.com/widgets.js",loaded:0},google:{src:"https://apis.google.com/js/plusone.js?onload=onLoadCallback",loaded:0},facebook:{src:"://platform.twitter.com/widgets.js",loaded:0},linkedin:{src:"//platform.linkedin.com/in.js",loaded:0},pinterest:{src:"//assets.pinterest.com/js/pinit.js",loaded:0},youtube:{src:"https://apis.google.com/js/platform.js",loaded:0}},ThriveApp.load_script=function(a){if(0===ThriveApp.social_scripts[a].loaded)if("//assets.pinterest.com/js/pinit.js"==ThriveApp.social_scripts[a].src){var b=document.createElement("script");b.type="text/javascript",b.async=!0,b.src="https://assets.pinterest.com/js/pinit.js",b["data-pin-build"]="parsePins";var c=document.getElementsByTagName("script")[0];c.parentNode.insertBefore(b,c),ThriveApp.social_scripts[a].loaded=1}else jQuery.getScript(ThriveApp.social_scripts[a].src,function(){ThriveApp.social_scripts[a].loaded=1})},ThriveApp.setVideoPosition=function(){jQuery(".scvps .pvb").each(function(){var a=jQuery(this).parents(".scvps").find(".vwr");a.css({top:jQuery(this).parents(".scvps").outerHeight()/2-a.height()/2,left:jQuery(this).parents(".scvps").outerWidth()/2-a.width()/2})})},ThriveApp.truncatePostGallery=function(){var a=jQuery(".scc .text-truncate");0!==a.length&&(ThriveApp.dot_loaded||(jQuery.getScript(ThriveApp.theme_uri+"/js/jquery.dotdotdot.min.js",function(){a.dotdotdot({ellipsis:" [...]"})}),ThriveApp.dot_loaded=!0))},ThriveApp.open_share_popup=function(a,b,c){var d,e;return d=window.screen.width/2-(b/2+10),e=window.screen.height/2-(c/2+50),window.open(a,"Window","status=no,height="+c+",width="+b+",resizable=yes,left="+d+",top="+e+",screenX="+d+",screenY="+e+",toolbar=no,menubar=no,scrollbars=no,location=no,directories=no"),!1};var _lastScrollTop=0,_theMenu=jQuery("#floating_menu"),_nextElement=_theMenu.next(),_floatingOption=_theMenu.attr("data-float"),_hasFloatingMenu="float-fixed"==_floatingOption||"float-scroll"==_floatingOption,_defaultPadding=_nextElement.css("padding-top"),_menuHeight=_theMenu.outerHeight(),_textLogoHeight=_theMenu.find("#text_logo").height(),_hasCenterLogo=_theMenu.find(".center_logo").length,_custom_header=_theMenu.children("header"),_custom_header_class=_custom_header.attr("class"),_is_custom_header="hic"==_custom_header_class||"hif"==_custom_header_class,_center_header_height;""===_defaultPadding&&(_defaultPadding="0"),ThriveApp.menu_float={current_scroll_top:0,anim_done:!1,scroll_dir:"down",hasScroll:function(){return _is_custom_header?this.current_scroll_top>_center_header_height:this.current_scroll_top>0},onScroll:function(a){return _is_custom_header&&(_center_header_height="hic"==_custom_header_class?jQuery("header .tt-dmy").height():jQuery("header").height()),this.current_scroll_top60?(ThriveApp.menu_float.hideLogo(),_theMenu.addClass("a60")):_theMenu.removeClass("a60"),"float-scroll"==_floatingOption&&("down"==this.scroll_dir?_theMenu.removeClass("mfu mfd").addClass("mfd"):_theMenu.removeClass("mfu mfd").addClass("mfu"))},hideLogo:function(){_hasCenterLogo&&(_theMenu.find("#logo img").hide(),this.anim_done||(_theMenu.find("#text_logo").stop().animate({opacity:0,height:0},50),this.anim_done=!0))},showLogo:function(){_hasCenterLogo&&(_theMenu.find("#logo img").show(),_theMenu.find("#text_logo").animate({height:_textLogoHeight,opacity:1},50),this.anim_done=!1)}},jQuery(window).scroll(function(){var a=jQuery(document).scrollTop(),b=0,c=0,d=jQuery(".entry-title"),e=d.length,f=jQuery(".ssf");if(ThriveApp.is_theme_layout&&(b=_is_blankPage?jQuery(".bp-t .wrp").offset().top:jQuery(".bSe .awr").first().offset().top,c=_is_blankPage?jQuery(".bp-t .wrp").height():jQuery(".bSe .awr").first().height()),ThriveApp.show_shortcodes(a),_hasFloatingMenu&&ThriveApp.menu_float.onScroll(a),1==e&&0!==d.length?(postTitleTop=d.offset().top,condition=a>postTitleTop):condition=a+40>b,f.hasClass("apsf"))return!1;if(condition)if(f.show(0),a>b+c-100-f.height()){f.removeClass("fpss").addClass("apss");var g=jQuery(".ssf.apss");jQuery(".bSe").hasClass("right")?g.css({right:"-97px",left:"auto"}):g.css({left:"-97px",right:"auto"})}else{f.removeClass("apss").addClass("fpss");var g=jQuery(".ssf.fpss");if(_hasFloatingMenu&&(_is_custom_header?g.css({top:"100px",bottom:"auto"}):g.css({top:_menuHeight+40,bottom:"auto"})),jQuery(".bSe").hasClass("right")){var h=parseInt(jQuery(".bSe").offset().left+jQuery(".bSe").outerWidth());g.css("left",h+25+"px")}else{var h=jQuery(".bSe").offset().left;g.css("left",h-g.width()-"25")}}else f.hide(0)}),ThriveApp.number_counter=function(){jQuery(".nbc.nsds").each(function(){function a(c,f){e=Math.ceil(f/100),c<=f?(b.text(c),c+=e,c+e>f&&(b.text(f),clearTimeout(d)),d=setTimeout(function(){a(c,f)},50)):clearTimeout(d)}var b=jQuery(".nbcn",this),c=b.attr("data-counter"),d=null,e=1;"false"==jQuery(this).attr("data-started")&&(a(0,c),jQuery(this).attr("data-started","true"))})},ThriveApp.show_shortcodes=function(a){jQuery(".nsd").each(function(){var b=jQuery(this);a+ThriveApp.viewportHeight>=b.offset().top+b.outerHeight()&&(b.addClass("nsds"),ThriveApp.number_counter())})},ThriveApp.display_no_shares=function(a){function b(){e.val(d),d>999&&f.addClass("tt-share-long"),f.html(ThriveApp._get_share_count_display_text(d,2)),jQuery("#tt-share-count").show()}function c(a){a&&a.total&&(d=parseInt(a.total),b())}var d=0,e=jQuery("#tt-hidden-share-no"),f=jQuery("#share_no_element"),g=[];if(a.linkedin&&g.push("in_share"),a.facebook&&g.push("fb_share"),a.google&&g.push("g_share"),a.pinterest&&g.push("pin_share"),g.length){var h={action:"thrive_get_share_counts",url:a.url,networks:g};window.TVE_Dash&&!TVE_Dash.ajax_sent?jQuery(document).on("tve-dash.load",function(){TVE_Dash.add_load_item("theme_shares",h,c)}):jQuery.post(ThriveApp.ajax_url,h,c)}};var _overlayElement=jQuery(".galleryOverlay");ThriveApp.blog_gallery=function(a){return function(){function b(b,c){b.hasClass("gallery-clicker")||a('
').appendTo(c)}function c(a,b,c){c?a.removeClass("g-n-a"):a.addClass("g-n-a");var f=a.find("img[data-index="+b+"]"),g=f.attr("data-cap"),h=f.attr("data-pos");b=f.parent().index(),a.css({left:"-"+100*b+"%"}),e=b,ThriveApp.winWidth>650&&d(f),jQuery(".img_count").text(h),jQuery(".cap_txt").text(g),""!=g?jQuery(".mob_text").text(g):jQuery(".mob_text").text(" - Swipe left/right to see more")}function d(a){var b=a.parents(".galleryOverlay").first().find(".nav_close");if(!a.width())return b.css({top:"20px",right:"20px"});var c=a.position().left-a.parent().position().left+a.width(),d=a.position().top;a.width()>=ThriveApp.winWidth&&(c-=16,d+=16),_isAdmin&&a.position().top<=32&&(d+=32),b.css({top:d-16+"px",left:c-16+"px"})}var e=0,f=0;a(".thrive-gallery").each(function(){var d=a(this),g=a(this).find(".galleryOverlay"),h=a(this).find(".galleryStage"),i=d.find(".gallery-item a").length,j=!1,k=!1,l=function(){k||(e0?c(h,e-1,!0):(h.addClass("g-n-a").css("left",-100*i+"%"),k=!0,setTimeout(function(){c(h,i-1,!0),k=!1},20)))};d.find(".gallery-item a").each(function(d){a(this).hasClass("no-clicky")||a(this).click(function(){return!jQuery(this).parents(".gallery ").hasClass("no-gallery")&&(j=!0,g.show(0).addClass("g-v"),c(h,d,!1),!1)}),b(a(this),g.find(".galleryStage"))}),d.find(".gallery-holder a").click(function(){var b=a(this).parents("#thrive-gallery-header").attr("data-index");return j=!0,g.show(0).addClass("g-v"),c(h,b,!1),!1}),d.find("a.nav_prev").click(function(){return m(),!1}),d.find("a.nav_next").click(function(){return l(),!1}),d.find(".nav_close").click(function(){return j=!1,g.removeClass("g-v").hide(),!1}),d.find(".galleryWrapper").length&&d.find(".galleryWrapper").touchwipe({wipeLeft:function(){l()},wipeRight:function(){m()},wipeUp:function(){j=!1,g.removeClass("g-v").hide()},wipeDown:function(){return!1},min_move_x:20,min_move_y:20,preventDefaultEvents:!0}),ThriveApp.winWidth<=650?h.click(function(b){if(a(b.target).is("img"))return!1;j=!1,g.removeClass("g-v").hide()}):(h.click(function(b){if(a(b.target).is("img"))return!1;j=!1,g.removeClass("g-v").hide()}),d.mousemove(function(b){clearTimeout(f),a(".gl_ctrl, .gl_ctrl_mob").fadeIn(200),ThriveApp.winWidth<=650||a(b.target).is(".gl_ctrl,.gl_ctrl_mob")||(f=setTimeout(function(){jQuery(".gl_ctrl, .gl_ctrl_mob").fadeOut(200)},1e3))})),a("html").unbind("keydown").keydown(function(a){return!j||(37==a.keyCode?(m(),!1):39==a.keyCode?(l(),!1):27==a.keyCode?(g.removeClass("g-v").hide(),!1):void 0)})})}}(jQuery),ThriveApp.image_post_resize=function(){jQuery(".tt-dmy").css({"max-height":ThriveApp.viewportHeight,"max-width":ThriveApp.winWidth})},jQuery.fn.thrive_timer=function(){return this.each(function(){var a,b=jQuery(this),c=b.attr("data-server-now"),d=c?new Date(c):new Date,e=new Date(b.attr("data-date")),f=0,g=0,h=0,i=0,j=2,k=b.attr("data-fade"),l=b.attr("data-message"),m=function(a,b){if(a.html()==b)return a;a.removeClass("next");var c=a.clone().removeClass("go-down").addClass("next").html(b);return a.before(c).next(".go-down").remove(),a.addClass("go-down"),setTimeout(function(){c.addClass("go-down")},20),a},n=function(a,b,c){void 0===c&&(c=!1);var d=0;if(b<=99)m(a.find(".part-1").first(),b),m(a.find(".part-2").first(),Math.floor(b/10)),d=2;else for(;b;)d++,m(a.find(".part-"+d).first(),b),b=Math.floor(b/10);if(!1!==c&&de?p():(i=Math.floor((e.getTime()-d.getTime())/1e3),h=Math.floor(i/60),i%=60,g=Math.floor(h/60),h%=60,f=Math.floor(g/24),g%=24,f>99&&(j=f.toString().length),function(){var a=function(a,b){return jQuery(''+b+"")};b.find(".second .cdfc").append(a(2,Math.floor(i/10))).append(a(1,i)),b.find(".minute .cdfc").append(a(2,Math.floor(h/10))).append(a(1,h)),b.find(".hour .cdfc").append(a(2,Math.floor(g/10))).append(a(1,g));for(var c=b.find(".day .cdfc"),d=f,e=1;e<=j;e++)c.append(a(e,d)),d=Math.floor(d/10);n(c.css("min-width",30*j+"px"),f,j)}(),b.find(".cdti").addClass("init_done"),a=setInterval(o,1e3))})},ThriveApp._get_share_count_display_text=function(a,b){b=Math.pow(10,b);for(var c=["k","m"],d=c.length-1;d>=0;d--){var e=Math.pow(10,3*(d+1));if(e<=a){a=Math.round(a*b/e)/b,1e3==a&&d=a?b.css("height",ThriveApp.viewportHeight):b.css("height",a)}}; /*! Thrive Dashboard - 2020-04-10 * http://www.thrivethemes.com/ * Copyright (c) 2020 Thrive Themes */ var TVE_Dash=TVE_Dash||{};if(!ThriveGlobal||!ThriveGlobal.$j){var __thrive_$oJ=window.$,ThriveGlobal={$j:jQuery.noConflict()};__thrive_$oJ&&(window.$=__thrive_$oJ)}!function(a){TVE_Dash.ajax_sent=!1;var b={},c={};TVE_Dash.add_load_item=function(d,e,f){if("function"!=typeof f&&(f=a.noop),TVE_Dash.ajax_sent){var g={},h={};return g[d]=e,h[d]=f,this.send_ajax(g,h),!0}return e?(b[d]&&console.error&&console.error(d+" ajax action already defined"),b[d]=e,c[d]=f,!0):(console.error&&console.error("missing ajax data"),!1)},TVE_Dash.ajax_load_css=function(b){a.each(b,function(b,c){b+="-css",a("link#"+b).length||a('').appendTo("head")})},TVE_Dash.ajax_load_js=function(b){var c=document.body;a.each(b,function(d,e){if(-1!==d.indexOf("_before"))return!0;var f=document.createElement("script");if(b[d+"_before"]){a('").after(c.lastChild)}d&&(f.id=d+"-script"),f.src=/e,c.appendChild(f)})},TVE_Dash.send_ajax=function(b,c){a.ajax({url:tve_dash_front.ajaxurl,xhrFields:{withCredentials:!0},data:{action:"tve_dash_front_ajax",tve_dash_data:b},dataType:"json",type:"post"}).done(function(b){b&&a.isPlainObject(b)&&(b.__resources&&(b.__resources.css&&TVE_Dash.ajax_load_css(b.__resources.css),b.__resources.js&&TVE_Dash.ajax_load_js(b.__resources.js),delete b.__resources),a.each(b,function(a,b){if("function"!=typeof c[a])return!0;c[a].call(null,b)}))})},a(function(){setTimeout(function(){var d=new a.Event("tve-dash.load");return a(document).trigger(d),!a.isEmptyObject(b)&&(!(!tve_dash_front.force_ajax_send&&tve_dash_front.is_crawler)&&(TVE_Dash.send_ajax(b,c),void(TVE_Dash.ajax_sent=!0)))})})}(ThriveGlobal.$j); function q2w3_sidebar_init(){for(var e=0;e0&&setInterval(function(){for(var e=0;e0)for(var t=0;t=0;s--)o[s]&&(o[s].next_widgets_height=a,o[s].fixed_margin_bottom+=a,a+=o[s].height,d||((d=widget_obj.parent()).addClass("q2w3-fixed-widget-container"),d.css("height",""),d.height(d.height())));jQuery(window).off("scroll."+e.sidebar);for(s=0;s0&&jQuery("#"+i.clone_id).remove(),_=!0,d=!1,a=!1);else{var w=jQuery(this).scrollTop();w+i.fixed_margin_bottom>=s?(a||(i.obj.css("position","fixed"),i.obj.css("top",""),i.obj.css("width",o),jQuery("#"+i.clone_id).length<=0&&i.obj.before(i.clone),a=!0,d=!1,_=!1),i.obj.css("bottom",w+t+i.next_widgets_height-s)):w>=r?d||(i.obj.css("position","fixed"),i.obj.css("top",i.fixed_margin_top),i.obj.css("bottom",""),i.obj.css("width",o),jQuery("#"+i.clone_id).length<=0&&i.obj.before(i.clone),d=!0,a=!1,_=!1):_||(i.obj.css("position",""),i.obj.css("top",""),i.obj.css("bottom",""),i.obj.css("width",""),jQuery("#"+i.clone_id).length>0&&jQuery("#"+i.clone_id).remove(),_=!0,d=!1,a=!1)}}).trigger("scroll."+e.sidebar)}}"undefined"!=typeof q2w3_sidebar_options&&q2w3_sidebar_options.length>0?window.jQuery?q2w3_sidebar_options[0].window_load_hook?jQuery(window).load(q2w3_sidebar_init):"loading"!=document.readyState?q2w3_sidebar_init():document.addEventListener("DOMContentLoaded",q2w3_sidebar_init):console.log("jQuery is not loaded!"):console.log("q2w3_sidebar_options not found!"); !function(a,b){"use strict";function c(){if(!e){e=!0;var a,c,d,f,g=-1!==navigator.appVersion.indexOf("MSIE 10"),h=!!navigator.userAgent.match(/Trident.*rv:11\./),i=b.querySelectorAll("iframe.wp-embedded-content");for(c=0;c1e3)g=1e3;else if(~~g<200)g=200;f.height=g}if("link"===d.message)if(h=b.createElement("a"),i=b.createElement("a"),h.href=/f.getAttribute("src"),i.href=/d.value,i.host===h.host)if(b.activeElement===f)a.top.location.href=/d.value}else;}},d)a.addEventListener("message",a.wp.receiveEmbedMessage,!1),b.addEventListener("DOMContentLoaded",c,!1),a.addEventListener("load",c,!1)}(window,document);