!function(l){"use strict";var u,f,o,v,p,n={".js":[],".json":[],".css":[],".html":[]},c="function"==typeof require?require:null;return v=function(t){var e=new Error("Could not find module '"+t+"'");return e.code="MODULE_NOT_FOUND",e},p=function(t,e,i){var r,o;if("function"==typeof t[e+i])return e+i;for(r=0;o=n[i][r];++r)if("function"==typeof t[e+o])return e+o;return null},u=function(t,e,i,r,o,n){var a,s,l,c,d,h;for("."!==(a=(i=i.split("/")).pop())&&".."!==a||(i.push(a),a="");null!=(s=i.shift());)if(s&&"."!==s&&(".."===s?(t=e.pop(),n=n.slice(0,n.lastIndexOf("/"))):(e.push(t),t=t[s],n+="/"+s),!t))throw v(r);if(a&&"function"!=typeof t[a]&&((h=p(t,a,".js"))||(h=p(t,a,".json")),h||(h=p(t,a,".css")),h||(h=p(t,a,".html")),h?a=h:2!==o&&"object"==typeof t[a]&&(e.push(t),t=t[a],n+="/"+a,a="")),!a)return 1!==o&&t[":mainpath:"]?u(t,e,t[":mainpath:"],r,1,n):u(t,e,"index",r,2,n);if(!(d=t[a]))throw v(r);return d.hasOwnProperty("module")?d.module.exports:(l={},d.module=c={exports:l,id:n+"/"+a},d.call(l,l,c,f(t,e,n)),c.exports)},o=function(t,e,i,r){var o,n=i,a=i.charAt(0),s=0;if("/"===a){if(n=n.slice(1),!(t=l["/"])){if(c)return c(i);throw v(i)}r="/",e=[]}else if("."!==a){if(o=n.split("/",1)[0],!(t=l[o])){if(c)return c(i);throw v(i)}r=o,e=[],(n=n.slice(o.length+1))||((n=t[":mainpath:"])?s=1:(n="index",s=2))}return u(t,e,n,i,s,r)},(f=function(e,i,r){return function(t){return o(e,[].concat(i),t,r)}})(l,[],"")}({workspace:{editor:{js:{frontend:{events:{"scroll.js":function(t,e,i){var n,a,s;n=ThriveGlobal.$j,a=TCB_Front,s=[],a.add_scroll_callback=function(t,e){return-1===s.indexOf(t)&&(t.$$scope=e,s.push(t)),a},e.exports=function(){var t=a.$document.scrollTop(),e="";a.$window.off("scroll.tar").on("scroll.tar",function(){var i=a.$document.scrollTop(),r=t<=i?"down":"up",o=e!==r;t=i,e=r,n.each(s,function(t,e){e.call(e.$$scope||this,i,r,o)})}),a.$window.trigger("scroll")}}},"thrive_content_builder_frontend.js":function(t,e,i){if(!window.ThriveGlobal||!window.ThriveGlobal.$j){var r=window.$;window.ThriveGlobal={$j:jQuery.noConflict()},r&&(window.$=r)}window.TVE_jQFn={},window.TCB_Front={},ThriveGlobal.$j.extend(window.TCB_Front,{browser:null,detectBrowser:function(){var t,e,i={},r=(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(r).text().trim().replace(/\u200B/g,"").toLowerCase(),i=parseFloat(e);isNaN(i)?n.push({tr:t,text:e,oText:e}):a.push({tr:t,text:i,oText:e})}),"down"==s?n.sort(l):n.sort(c),"down"==s?a.sort(l):a.sort(c),t="down"==s?a.concat(n):n.concat(a),ThriveGlobal.$j.each(t,function(t,e){o.append(e.tr)}),d.attr("data-direction",""),e.attr("data-direction",s)})},getCookie:function(t){for(var e=t+"=",i=document.cookie.split(";"),r=0;r").css(t.extend({},e)),r=t("
").css(t.extend({left:"-1000px",overflow:"scroll",position:"absolute",top:"-1000px"},e)).append(i).appendTo("body").scrollLeft(1e3).scrollTop(1e3),o={height:r.offset().top-i.offset().top||0,width:r.offset().left-i.offset().left||0};return r.remove(),o},openLightbox:function(a,t){var i=ThriveGlobal.$j("body"),r=ThriveGlobal.$j("html"),o="tve-o-hidden tve-l-open tve-hide-overflow",e=this.getBrowserScrollSize().width,n=this,s=parseInt(i.css("padding-right")),l=a.find("input[placeholder]").not(":radio").not(":checkbox");function c(t,e){t.find("iframe").not(".thrv_social_default iframe").each(function(){var t=ThriveGlobal.$j(this).addClass("tcb-dr-done");t.attr("data-src",t.attr("src")),t.attr("src","")}),t.find("video").each(function(){ThriveGlobal.$j(this)[0].pause()}),void 0===e&&1===ThriveGlobal.$j(".tve_lb_open").length&&(i.removeClass(o).css("padding-right",""),r.removeClass(o),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,r=a.find(".tve_p_lb_content"),o=TCB_Front.$window.height(),n=void 0!==t&&t?"animate":"css";TCB_Front.postGridLayout(),i=(o-(e=r.outerHeight(!0)))/2,a.find(".tve_p_lb_overlay")[n]({height:e+80+"px","min-height":o+"px"},200),r[n]({top:(i<40?40:i)+"px"},200),o ul li").eq(isNaN(e)?0:e).click()}):a.find("iframe").not(".thrv_social_default iframe").each(function(){var t=ThriveGlobal.$j(this);t.attr("data-src")&&t.attr("src",t.attr("data-src"))}),setTimeout(function(){a.css("display",""),a.addClass("tve_lb_opening"),setTimeout(function(){d()},0)},20),a.find(".tve_p_lb_content").trigger("tve.before-lightbox-open"),"none"!==a.css("display")?setTimeout(function(){a.removeClass("tve_lb_opening").addClass("tve_lb_open").find(".tve_p_lb_content").trigger("tve.lightbox-open")},300):(a.removeClass("tve_lb_open"),i.removeClass(o).css("padding-right",""),r.removeClass(o)),TCB_Front.$window.resize(function(){d()}),a.on("lbresize",function(){d(!0)})},event_triggers:function(t){window.TVE_Event_Manager_Registered_Callbacks&&t.find(".tve_evt_manager_listen").each(function(){var r=ThriveGlobal.$j(this),t=r.attr("data-tcb-events");if(t||(t=r.closest(".thrv_wrapper").attr("data-tcb-events")),!t)return!0;try{t=ThriveGlobal.$j.parseJSON(t.replace("__TCB_EVENT_","").replace("_TNEVE_BCT__","")),ThriveGlobal.$j.each(t,function(t,e){if(TVE_Event_Manager_Registered_Callbacks[e.a]){var i="mouseover"===e.t?"mouseenter":e.t;r.off(i+".tcbevt"+e.t).on(i+".tcbevt"+e.t,function(){return TVE_Event_Manager_Registered_Callbacks[e.a].call(r[0],e.t,e.a,e.config?e.config:{})})}})}catch(t){console.log("Could not parse events"),console.log(t)}})},show_data_elemements:function(i){ThriveGlobal.$j(".thrv_data_element").not(".thrv_data_element_start").each(function(){var t=ThriveGlobal.$j(this),e=TCB_Front.$window.height();i+e>=t.offset().top+t.outerHeight()&&"hidden"!==t.css("visibility")&&t.addClass("thrv_data_element_start").trigger("tve.start-animation")})},onDOMReady:function(i){this.body_offset=ThriveGlobal.$j("body").offset(),void 0===i&&(i=ThriveGlobal.$j("body")),this.fix_compat_issues(i),ThriveGlobal.$j(".tcb-video-background-el").each(function(){this.parentNode.classList.add("tcb-video-background-parent")}),!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])}),ThriveGlobal.$j.each(TVE_jQFn,function(t,e){ThriveGlobal.$j.fn[t]=e});var t=ThriveGlobal.$j("ul.tve_w_menu.tve_horizontal"),e=t.length;if(t.each(function(){this.style.zIndex=e+5;var t=ThriveGlobal.$j(this);t.find("ul").css("z-index",e+6),t.parentsUntil("#tve_editor").each(function(){var t=ThriveGlobal.$j(this);"static"===t.css("position")||t.hasClass("thrv_header")||t.css("z-index",e+7)}),e--}),ThriveGlobal.$j(".tve_scT").each(function(){var t=ThriveGlobal.$j(this),e=parseInt(t.attr("data-selected"));t.find("iframe").not(".thrv_social_default iframe").each(function(){var t=ThriveGlobal.$j(this);t.is(":visible")&&t.attr("data-src")&&t.attr("data-src").length&&t.attr("src").length<=0?(t.attr("src",t.attr("data-src")),t.attr("data-src",""),t.removeClass("tcb-dr-done")):t.is(":visible")||t.attr("src").length&&(t.addClass("tcb-dr-done"),t.attr("data-src",t.attr("src")),t.attr("src",""))}),tve_frontend_options.is_editor_page||t.find("> ul li").eq(isNaN(e)?0:e).click()}),ThriveGlobal.$j(".thrv_toggle_shortcode").each(function(){ThriveGlobal.$j(this).find("iframe").not(".thrv_social_default iframe").not(".tcb-dr-done").each(function(){var t=ThriveGlobal.$j(this);t.addClass("tcb-dr-done"),t.attr("src")&&t.attr("data-src",t.attr("src")),t.attr("src","")})}),tve_frontend_options.is_editor_page)try{ThriveGlobal.$j("html").getNiceScroll().remove()}catch(t){}else{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,e=ThriveGlobal.$j(this),i=n(e.val()),r="#e3ecef",o="";e.next().find(".tve-password-strength").css({"background-color":"#e3ecef"}),i<30?(r="#ef5350",o="Weak",t=e.next().find(".tve-password-strength").first()):30<=i&&i<60?(r="#ffa726",o="So-so",t=e.next().find(".tve-password-strength:lt(2)")):60<=i&&i<80?(r="#8bc34a",o="Good",t=e.next().find(".tve-password-strength:lt(3)")):(r="#4caf50",o="Great!",t=e.next().find(".tve-password-strength:lt(4)")),t.each(function(){ThriveGlobal.$j(this).css({"background-color":r})}),e.next().find(".tve-password-strength-text").text(o).css({color:r})});var n=function(t){var e,i=0,r={},o=0;if(!t)return i;for(var n=0;n
'),s.each(function(){""===this.getAttribute("data-href")&&this.setAttribute("data-href",window.location.href.split("?")[0]),this.classList.add("fb-comments"),FB.XFBML.parse(this.parentNode)}));var l=ThriveGlobal.$j(".thrv_disqus_comments #disqus_thread");l.length&&(window.disqus_shortname=l.attr("data-disqus_shortname"),""==l.attr("data-disqus_url")?window.disqus_url=window.location:window.disqus_url=l.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(),this.playBackgroundYoutube(ThriveGlobal.$j("div.tcb-yt-bg")),tve_frontend_options.is_editor_page||(this.sticky(i),this.add_scroll_callback(this.show_data_elemements,this)),this.init_scroll()},resizePageSection:function(t){void 0===t&&(t=ThriveGlobal.$j(".tcb-window-width")),t.each(function(){var t=ThriveGlobal.$j(this),e=(t.parent().width(),t.find(".tve-page-section-in"),t.css("left"));e="auto"===e?0:Number(t.css("left").replace("px","")),t.css({width:TCB_Front.$window.width()+"px",left:-t.offset().left+e+"px"})})},onSocialCustomClick:{wnd:function(t,e,i){var r=void 0!==window.screenLeft?window.screenLeft:screen.left,o=void 0!==window.screenTop?window.screenTop:screen.top,n=(window.innerWidth?window.innerWidth:document.documentElement.clientWidth?document.documentElement.clientWidth:screen.width)/2-e/2+r,a=(window.innerHeight?window.innerHeight:document.documentElement.clientHeight?document.documentElement.clientHeight:screen.height)/2-i/2+o,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="+a+", left="+n);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},g_share:function(t){var e=t.data();e.href||(e.href=location.href),this.wnd("https://plus.google.com/share?url="+encodeURIComponent(e.href),600,600)},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 r=(t=t||ThriveGlobal.$j("body")).find(".tve_social_items.tve_social_custom");if(r.length){var n={action:"tve_social_count",for:[]};if(void 0!==e?ThriveGlobal.$j.each(e,function(t,e){n[t]=e}):"undefined"!=typeof tve_path_params&&tve_path_params.post_id&&(n.post_id=tve_path_params.post_id),r.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 r=e.prev(".tve_s_share_count"),o=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===o.length)return o.removeClass("tve_count_loading"),r.remove(),void e.parent().removeAttr("data-counts");n.for[t]=i}}),!n.for.length)return null;TCB_Front.total_share_counts={};var o=function(n){n&&n.counts&&n.totals&&r.each(function(t){var e=ThriveGlobal.$j(this),i=e.prev(".tve_s_share_count"),r=e.children(".tve_s_item");if(ThriveGlobal.$j.each(n.counts[t],function(t,e){r.filter(".tve_s_"+t).find(".tve_s_count").html(e.formatted)}),r.removeClass("tve_count_loading"),n.totals&&n.totals[t]&&"1"===e.parent().attr("data-counts")){var o=parseInt(e.parent().attr("data-min_shares"));o=isNaN(o)?0:o,i.find(".tve_s_cnt").html(n.totals[t].formatted),o
'+t+"
")}),setTimeout(function(){jQuery(".tvd-toast").hide(),"function"==typeof i&&i()},3e3)},footer_styling:function(t){if(!tve_frontend_options.is_editor_page){t||(t=ThriveGlobal.$j("body"));var e=t.find(".thrv_footer");e.length&&(t.height()<=document.documentElement.clientHeight?e.css({position:"absolute",top:document.documentElement.clientHeight-e.height(),"padding-bottom":0}):e.css({position:"",top:""}))}},header_styling:function(t){},init_scroll:i("./events/scroll"),sticky:i("./util/sticky"),fix_compat_issues:i("./util/compat"),init_typefocus:i("./util/typefocus")}),TVE_jQFn.tve_front_tw_qs=function(){return this.each(function(){var i=ThriveGlobal.$j(this);if(i.data("tve_front_tw_qs_done"))return this;i.data("tve_front_tw_qs_done",!0),i.click(function(){window.open(t(),"_blank")});var t=function(){var t=i.attr("data-use_custom_url")&&i.attr("data-custom_url")?i.attr("data-custom_url"):window.location.href,e=i.data("url")+"?text="+encodeURIComponent(i.find("p").text())+"&url="+encodeURIComponent(t);return 0'),_=t.find("form")),_.find('input[type="checkbox"],input[type="radio"]').each(function(){if(!this.id)return!0;ThriveGlobal.$j("#"+this.id).not(this).length&&(this.id=this.id+"-"+window.TCB_PAGE_INDEX++,ThriveGlobal.$j(this).next("label").attr("for",this.id))}),void 0!==e&&"#"==_.attr("action")&&_.attr("action",e),t.data("tve_lg_done"))return this;if(t.data("tve_lg_done",!0),void 0!==window.SegMet&&SegMet&&-1!==_[0].action.indexOf("infusionsoft")&&!_.data("tve-segmet-submit")){_.data("tve-segmet-submit",1);var i=_[0].submit;_[0].submit=function(){return _.data("tve-segmet-submitted")?i.call(_[0]):(_.data("tve-segmet-submitted",1),_.submit())}}var d={errClass:"tve-lg-error",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=_.find("."+this.errClass);return t.length||(t=_.find("input,select,textarea")),t.first().focus(),!1},clear:function(){_.find("input,select,textarea").removeClass(this.errClass)},markApiError:function(t){return this.container.append('
'+t+"
"),this},_markError:function(t,e,i){t&&t.addClass(this.errClass),"required"===i&&this.container.find(".tve-lg-required").length||this.container.append('
'+e+"
")},show:function(){this.container.append('');var o=this;setTimeout(function(){var t=_.offset(),e=parseInt(_.css("margin-top")),i=parseInt(_.css("margin-left")),r=t.top-10-o.container.outerHeight(!0)-(isNaN(e)?0:e);_.parents(".thrv-ribbon").length&&("bottom"==_.parents(".tve-leads-ribbon").attr("data-position")?r+=7:r=t.top+_.outerHeight()),o.container.css({top:r+"px",left:t.left-(isNaN(i)?0:i),width:_.outerWidth()}).fadeIn(200)},50)},phone:function(t,e){return!0},required:function(t,e){return!!("radio"===t.attr("type")?ThriveGlobal.$j('input[name="'+t.attr("name")+'"]').is(":checked"):"checkbox"===t.attr("type")?ThriveGlobal.$j('input[name="'+t.attr("name")+'"]').is(":checked"):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"}}}},m=function(t,e){var i=ThriveGlobal.$j.extend({success:"Success!",error:"Error!"},e),r=_.find("#_form_type").val(),o=_.find("input[name=name]").val()?_.find("input[name=name]").val():"",n=_.find("input[name=email]").val();if(t){_.parents(".tl-style").first().find(".tve_p_lb_close").trigger("click");var a=ThriveGlobal.$j.Event("leads_messages.tcb");_.trigger(a),"lead_generation"==r&&(_.find("input").val(""),_.parents(".tve_p_lb_content").find(".tve_p_lb_close").click()),i.success=i.success.replace("[lead_email]",n),i.success=i.success.replace("[lead_name]",o),jQuery("body").slideDown("fast",function(){jQuery("body").prepend('
'+i.success+"
")}),setTimeout(function(){jQuery(".tvd-toast").hide()},6e3)}else{var s=_.parent(),l=s.parent(),c=l.find(".tve-error-wrapper");1==_.find("#_error_message_option").val()?(s.hide(),0==c.length?(l.append('
'),i.error=i.error.replace("[lead_email]",n),i.error=i.error.replace("[lead_name]",o),l.find(".tve-error-content").append(i.error)):l.find(".tve-error-wrapper").show()):location.reload()}_.tve_form_loading(!0)};t.data("form-target")&&t.data("form-target").length&&t.find("form").attr("target",t.data("form-target")),t.find(".tve-lg-err-msg").length&&function(){_.find(".tve_submit_container .thrv_icon").click(function(){_.submit()});var c=d.getErrors(t);_.submit(function(t){if(_.data("tve-force-submit"))return!0;var e=_.find(".consent-config");e.length&&!e.val()&&"none"!==_.find(".tcb-lg-consent").css("display")&&_.find('[name="user_consent"]').attr("data-required",1);var o=!0,i=ThriveGlobal.$j(this),n={};if(d.init(),i.find("input, select, textarea").each(function(){var t=ThriveGlobal.$j(this),e=t.data("validation"),i=t.data("required"),r=t.data("iphone-placeholder");""!==r&&t.val()===r&&t.val(""),"password"==t.attr("type")&&(n[t.attr("name")]=t.val()),1===i&&(d.required(t,c.required)||(o=!1)),void 0!==e&&"none"!==e&&d[e]&&(d[e](t,c[e])||(o=!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,o=ThriveGlobal.$j(this),e=new Date,i=new Date(o.attr("data-date")+"T"+o.attr("data-hour")+":"+o.attr("data-min")+":"+(o.attr("data-sec")||"00")+o.attr("data-timezone")),n=0,a=0,s=0,l=0,c=2,r=o.attr("data-text"),d=o.hasClass("thrv-countdown_timer_evergreen")||o.hasClass("tve_countdown_timer_evergreen"),h=o.attr("data-norestart"),u=parseInt(o.attr("data-day")),f=parseInt(o.attr("data-hour")),v=parseInt(o.attr("data-min")),p=parseInt(o.attr("data-sec"));if(o.data("tcb_timer_done"))return this;if(o.data("tcb_timer_done",!0),d){i=new Date;var _=TCB_Front.getCookie(o.attr("data-id"));if(_){_=_.split("-");var m=new Date(_[0],_[1]-1,_[2],_[3],_[4],_[5]);i.setTime(m)}else{i.setTime(e.getTime()+24*u*3600*1e3+3600*f*1e3+60*v*1e3+1e3*p);var g=i.getFullYear()+"-"+(i.getMonth()+1)+"-"+i.getDate()+"-"+i.getHours()+"-"+i.getMinutes()+"-"+i.getSeconds(),b=new Date("2034-01-01");if(!parseInt(h)){var w=new Date(i.getTime());b=w.setDate(i.getDate()+parseInt(o.attr("data-expday"))),b=w.setHours(i.getHours()+parseInt(o.attr("data-exphour"))),b=new Date(b)}TCB_Front.setCookie(o.attr("data-id"),g,{expires:b})}}function T(){setTimeout(function(){o.find(".tve_t_day .t-digits").css("min-width",o.find(".tve_t_sec .t-digits > span").outerWidth()*c+"px")},10)}o.parents(".thrv_content_reveal").on("tve-content-revealed",T),o.parents(".tve_p_lb_content").on("tve.before-lightbox-open",T);var y=function(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},C=function(t,e,i){void 0===i&&(i=!1);var r=0;if(e<=99)y(t.find(".part-1").first(),e%10),y(t.find(".part-2").first(),Math.floor(e/10)),r=2;else for(;e;)r++,y(t.find(".part-"+r).first(),e%10),e=Math.floor(e/10);if(!1!==i&&r '+e+"")};o.find(".tve_t_sec .t-digits").empty().append(t(2,Math.floor(l/10))).append(t(1,l%10)),o.find(".tve_t_min .t-digits").empty().append(t(2,Math.floor(s/10))).append(t(1,s%10)),o.find(".tve_t_hour .t-digits").empty().append(t(2,Math.floor(a/10))).append(t(1,a%10));for(var e=o.find(".tve_t_day .t-digits").empty(),i=n,r=1;r<=c;r++)e.append(t(r,i%10)),i=Math.floor(i/10);e.css("min-width","")}(),o.addClass("init_done"),t=setInterval(function(){$(),C(o.find(".tve_t_sec .t-digits"),l),C(o.find(".tve_t_min .t-digits"),s),C(o.find(".tve_t_hour .t-digits"),a),C(o.find(".tve_t_day .t-digits"),n,c),n<=0&&a<=0&&s<=0&&l<=0&&(n=a=s=l=0,clearInterval(t),j())},1e3)),d&&i<=e&&(clearInterval(t),j())})},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.browser=TCB_Front.detectBrowser(),TCB_Front.$document.ready(function(){setTimeout(function(){var t=ThriveGlobal.$j(tve_frontend_options.is_editor_page?"#tve_editor":"body"),e=[];"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 i=ThriveGlobal.$j(this),e=i.parents(".tve_scT").first(),r=e.find("> .tve_scTC").eq(i.index()),o=e.find("> ul .tve_tS"),n=o.attr("data-tve-custom-colour"),a=i.attr("data-tve-custom-colour");i.attr("data-tve-custom-colour",void 0!==n&&!1!==n?n:""),o.attr("data-tve-custom-colour",void 0!==a&&!1!==a?a:""),e.find("> ul .tve_tS").removeClass("tve_tS"),e.find("> .tve_scTC").hide(),i.addClass("tve_tS"),r.show(),TCB_Front.postGridLayout(),r.find("iframe").not(".thrv_social_default iframe").each(function(){var t=ThriveGlobal.$j(this);t.attr("data-src")&&(t.attr("src",t.attr("data-src")),t.attr("data-src",""),t.removeClass("tcb-dr-done"))}),TCB_Front.changeAutoplayVideo(r),e.find("> .tve_scTC").each(function(t){if(t!==i.index()){var e=ThriveGlobal.$j(this);e.find("iframe").not(".thrv_social_default iframe").not(".tcb-dr-done").each(function(){var t=ThriveGlobal.$j(this);t.attr("src")&&(t.attr("data-src",t.attr("src")),t.attr("src",""),t.addClass("tcb-dr-done"))}),e.find("video").each(function(){ThriveGlobal.$j(this)[0].pause()})}})}),t.off("click.tvetoggleelem").on("click.tvetoggleelem",".tve_faqB",function(){var t=ThriveGlobal.$j(this).parents(".tve_faq"),e=ThriveGlobal.$j(this),i=ThriveGlobal.$j(e).siblings(".tve_faqC");i.is(":visible")?(i.find("iframe").not(".thrv_social_default iframe").each(function(){var t=ThriveGlobal.$j(this);t.attr("src")&&t.attr("data-src",t.attr("src")),t.attr("src","")}),i.find("video").each(function(){ThriveGlobal.$j(this)[0].pause()}),i.slideUp("fast",function(){i.trigger("lbresize")}),t.removeClass("tve_oFaq")):(i.find("iframe").not(".thrv_social_default iframe").each(function(){var t=ThriveGlobal.$j(this);t.attr("data-src")&&t.attr("src",t.attr("data-src"))}),i.slideDown("fast",function(){i.trigger("lbresize")}),TCB_Front.postGridLayout(),TCB_Front.changeAutoplayVideo(i),t.addClass("tve_oFaq"))}).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.on("mouseenter.menu",".tve_w_menu.tve_horizontal li",function(){var t=ThriveGlobal.$j(this);if(!t.closest(".thrive-shortcode-html").find(".tve-m-trigger").is(":visible")){if(t.addClass("expand-children"),t.parents(".tve-m-expanded").length)return!!tve_frontend_options.is_editor_page;t.parentsUntil(".tve_w_menu").filter("li").addClass("expand-children")}return!!tve_frontend_options.is_editor_page}).on("mouseleave.menu",".tve_w_menu.tve_horizontal li",function(){var t=ThriveGlobal.$j(this);if(!t.closest(".thrive-shortcode-html").find(".tve-m-trigger").is(":visible")){if(t.parents(".tve-m-expanded").length)return!!tve_frontend_options.is_editor_page;if(t.closest(".tve_w_menu > li").find(".edit_mode").length)return!!tve_frontend_options.is_editor_page;t.closest(".tve_w_menu > li").removeClass("expand-children").find(".expand-children").removeClass("expand-children")}return!!tve_frontend_options.is_editor_page}),TCB_Front.$document.on("click",function(t){(t.force_restore||0===ThriveGlobal.$j(t.target).closest(".thrv_widget_menu").length&&0===ThriveGlobal.$j(t.target).closest("#tcb-inner-actions").length)&&(ThriveGlobal.$j(".thrv_widget_menu").find(".tve-m-expanded").removeClass("tve-m-expanded").addClass("tve-m-collapsed").end().find(".tve-triggered-icon").removeClass("tve-triggered-icon").end().find(".expand-children").removeClass("expand-children").end().find(".tcb-icon-close").removeClass("tve-trigger-active").end().find(".tcb-icon-open").addClass("tve-trigger-active"),ThriveGlobal.$j(".thrv_widget_menu").parents(".thrv-content-box, .thrv-page-section, .thrv-columns").addClass("tve-custom-menu-inside"))});var o=!1;if(tve_frontend_options.is_editor_page&&(t.on("click",".tve_w_menu li a",function(t){var e,i=ThriveGlobal.$j(this),r=i.closest(".tve_w_menu");if(!o)return t.preventDefault(),t.stopPropagation(),0!==(e=r.find(".active-expand-children")).length&&(e.parents(".expand-children").removeClass("expand-children"),e.removeClass("active-expand-children")),i.parent("li").parentsUntil(".tve_w_menu").filter("li").addClass("expand-children"),i.parent("li").toggleClass("active-expand-children"),(r.hasClass("tve_vertical")||i.closest(".thrive-shortcode-html").find(".tve-m-trigger").is(":visible"))&&i.parent("li").toggleClass("expand-children"),o=!0,ThriveGlobal.$j(this).trigger("click"),!1;o=!1}),"undefined"!=typeof TVE&&"function"==typeof TVE.add_action&&TVE.add_action("tcb.group.on_blur",function(t){t&&t.find(".expand-children").removeClass("expand-children")})),!tve_frontend_options.is_editor_page){function r(t,e){t.parent().find(".tcb-icon-open, .tcb-icon-close").toggleClass("tve-trigger-active"),t.toggleClass("tve-triggered-icon"),e.toggleClass("tve-m-expanded"),e.find(".expand-children").toggleClass("expand-children")}function i(){ThriveGlobal.$j(".tve-m-trigger:visible").length?ThriveGlobal.$j(".tve-m-trigger").each(function(){var t=ThriveGlobal.$j(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=ThriveGlobal.$j(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)}):(ThriveGlobal.$j(".tve-m-expanded").removeClass("tve-m-expanded"),ThriveGlobal.$j(".tve-m-trigger").each(function(){var t=ThriveGlobal.$j(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)}))}t.on("click",".tve_w_menu li",function(t){t.stopPropagation();var e=ThriveGlobal.$j(this).find("> a");if(e.find(".tve-item-dropdown-trigger").trigger("click"),!e.attr("href"))return!1;e.attr("href")&&(e.attr("target")||t.ctrlKey)?window.open(e.attr("href"),e.attr("target")):window.location=e.attr("href");var i=ThriveGlobal.$j(this).closest(".thrive-shortcode-html").find(".tve-m-trigger");return r(i,i.parent().find("> ul")),!0}),t.on("click",".tve_w_menu li a",function(t){t.preventDefault()}),t.on("click",".tve_w_menu li span.tve-item-dropdown-trigger",function(t){var e=ThriveGlobal.$j(this);return!e.closest(".thrive-shortcode-html").find(".tve-m-trigger").is(":visible")&&e.closest(".tve_w_menu").hasClass("tve_horizontal")||e.closest("li").toggleClass("expand-children"),!1}),t.on("click.custom_menu",".tve-m-trigger",function(){var t=ThriveGlobal.$j(this);return r(t,t.parent().find("> ul")),!1}),t.on("click",".thrv_contents_table a",function(t){var e=ThriveGlobal.$j,i=e(e(this).attr("href"));i.length&&e("html, body").animate({scrollTop:i.offset().top-130})}),"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,r){TVE_Event_Manager_Registered_Callbacks[r.a]&&TCB_Front.$document.on("tve-page-event-"+r.t,function(t,e){var i=!0;return"timer"===r.t&&e&&r.config&&r.config.t_delay!==e&&(i=!1),!!i&&TVE_Event_Manager_Registered_Callbacks[r.a].call(document,r.t,r.a,r.config?r.config:{})})})),e.push(TCB_Front.postGridLayout),e.push(i),i()}function n(){ThriveGlobal.$j(".thrv_widget_menu").each(function(){var t,e=ThriveGlobal.$j(this),i=e.attr("data-tve-switch-icon"),r=e.attr("data-tve-allhoriz");i||r||(i="tablet,mobile"),e.removeClass(function(t,e){return(e.match(/(^|\s)tve-custom-menu-switch-icon-\S+/g)||[]).join(" ")}),t=i.split(","),768()\[\]\\.,;:\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){var o="undefined"!=typeof window?window:global,a=function(t){for(var e=t.length,i=t.length-1;0<=i;i--){var r=t.charCodeAt(i);127t.length&&C("Error","Invalid"),o.push(n),n=t.slice(e+(r-1),e+r),r+=1;return[o.length,o.join("")]},$=function(t,e,i){var r,o,n=[];for(r=0;r>2,n=(3&e)<<4|(i=t.charCodeAt(c++))>>4,a=(15&i)<<2|(r=t.charCodeAt(c++))>>6,s=63&r,isNaN(i)?a=s=64:isNaN(r)&&(s=64),l=l+this._keyStr.charAt(o)+this._keyStr.charAt(n)+this._keyStr.charAt(a)+this._keyStr.charAt(s);return l},decode:function(t){var e,i,r,o,n,a,s="",l=0;for(t=t.replace(/[^A-Za-z0-9\+\/\=]/g,"");l>4,i=(15&o)<<4|(n=this._keyStr.indexOf(t.charAt(l++)))>>2,r=(3&n)<<6|(a=this._keyStr.indexOf(t.charAt(l++))),s+=String.fromCharCode(e),64!=n&&(s+=String.fromCharCode(i)),64!=a&&(s+=String.fromCharCode(r));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(r>>12|224),e+=String.fromCharCode(r>>6&63|128)),e+=String.fromCharCode(63&r|128))}return e},_utf8_decode:function(t){for(var e="",i=0,r=0,o=0,n=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(n,a){if(!0!==this.stop){var t=this.typeSpeed,s=this;l(this.el);s.timeout=setTimeout(function(){var t=0,e=n.substr(a);if("^"===e.charAt(0)){var i=1;/^\^\d+/.test(e)&&(i+=(e=/\d+/.exec(e)[0]).length,t=parseInt(e)),n=n.substring(0,a)+n.substring(a+i)}if("html"===s.contentType){var r=n.substr(a).charAt(0);if("<"===r||"&"===r){var o="";for(o="<"===r?">":";";n.substr(a).charAt(0)!==o;)n.substr(a).charAt(0),a++;a++,o}}s.timeout=setTimeout(function(){if(a===n.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(n,a):s.backspace(n,a)},s.backDelay)}else{0===a&&s.options.preStringTyped(s.arrayPos);var t=n.substr(0,a+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),a++,s.typewrite(n,a)}},t)},t)}},highlight:function(i,r){if(!0!==this.stop){var t=this.backSpeed,o=this;l(o.el),l("");o.timeout=setTimeout(function(){if("html"===o.contentType&&">"===i.substr(r).charAt(0)){for(;"<"!==i.substr(r).charAt(0);)i.substr(r).charAt(0),r--;r--,"<"}var t=i.substr(0,r),e=i.substr(r);o.attr?o.el.attr(o.attr,t):o.el.html(t+''+e+""),r>o.stopNum?(r--,o.highlight(i,r)):r<=o.stopNum&&setTimeout(function(){o.arrayPos++,o.arrayPos===o.strings.length?(o.arrayPos=0,o.init("write")):o.typewrite(o.strings[o.sequence[o.arrayPos]],r)},200)},t)}},backspace:function(e,i){if(!0!==this.stop){var t=this.backSpeed,r=this,o=l(r.el);r.timeout=setTimeout(function(){if("html"===r.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);r.attr?r.el.attr(r.attr,t):r.isInput?r.el.val(t):"html"===r.contentType?r.el.html(t):r.el.text(t),i>r.stopNum?(i--,r.backspace(e,i)):i<=r.stopNum&&(r.arrayPos++,r.arrayPos===r.strings.length?(r.arrayPos=0,r.shuffle&&(r.sequence=r.shuffleArray(r.sequence)),r.init("write")):r.typewrite(r.strings[r.sequence[r.arrayPos]],i),r.options.highlightClass&&o.is("."+r.options.highlightClass)&&o.removeClass(r.options.highlightClass))},t)}},shuffleArray:function(t){var e,i,r=t.length;if(r)for(;--r;)e=t[i=Math.floor(Math.random()*(r+1))],t[i]=t[r],t[r]=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(r){return this.each(function(){var t=l(this),e=t.data("typed"),i="object"==typeof r&&r;e||t.data("typed",e=new o(this,i)),"string"==typeof r&&e[r]()})},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(){}}}(window.jQuery)},util:{"compat.js":function(t,e,i){ThriveGlobal.$j,e.exports=function(t){tve_frontend_options.is_editor_page||t.find(".thrv_wrapper > div[data-clip-id]").parent().addClass("safari-ios-decoration-fix")}},"sticky.js":function(t,b,e){!function(o,r){var e,i,n,a,s,l,c,d,h,u={boxSizing:"",marginTop:"",marginLeft:"",width:"",height:"",top:"",left:"",bottom:"",position:"",opacity:"",minWidth:""},f=(e=function(t,e){t.stop().animate(e,200)},i=200,function(){clearTimeout(n);var t=!n||p;n=setTimeout(function(){n=null},i),t&&e.apply(this,arguments)}),v=o(),p=!1,_={};function m(t){return Math.min(s.top+t-a.data("append-target").offset().top,a.data("append-target").outerHeight()-a.outerHeight())}function g(t,e,i){p=i,v.each(function(){a=o(this),s=a.data("scroll_config"),l="tve-sticky-"+s.end,c=this.classList.contains(l),d=a.data("clone-sticky"),function(){if(!s.disabled||!s.disabled.length)return!0;var t=r.$window.width();return t<=767?-1===s.disabled.indexOf("mobile"):t<=1023?-1===s.disabled.indexOf("tablet"):-1===s.disabled.indexOf("desktop")}()?(c||(a.data("$$offset",a.offset()),a.data("$$position",a.position()),a.data("$$scroll",t),"element"===s.end&&a.data("$$stop-offset",a.data("stop-target").offset()||{top:1e6})),h=a.data("$$offset"),_["on_scroll_"+e+"_"+s.end].call(_,t)):_.on_scroll_up_default(t,!0)})}_.on_scroll_down_default=function(t,e){var i=0,r=(e=e||{}).position||"fixed";"appear"===s.mode&&(e.top=-a.outerHeight(),i=-e.top),c?"appear"===s.mode&&f(a,e):t+s.top>h.top+i&&((d=a.data("clone-sticky"))||(d=o('
').css({boxSizing:"border-box",padding:0,width:a.outerWidth(),height:a.outerHeight(),marginTop:a.css("margin-top"),marginBottom:a.css("margin-bottom"),marginLeft:a.css("margin-left"),marginRight:a.css("margin-right")}),a.data("clone-sticky",d)),a.addClass(l),delete e.position,a.css(o.extend({width:a.width(),height:a.height(),top:s.top+"px",left:h.left+"px"},e)),"absolute"!==a.css("position")&&a.before(d),a[0].style.setProperty("margin-top","0px","important"),a[0].style.setProperty("margin-left","0px","important"),a[0].style.setProperty("min-width","0","important"),a[0].style.setProperty("position",r,"important"),a[0].style.setProperty("box-sizing","content-box","important"),c=!0,a.appendTo(a.data("append-target")))},_.on_scroll_up_default=function(t,e){d&&c&&((e=!!e)||"appear"!==s.mode||f(a,{top:s.top}),(e||t+s.top<=d.offset().top)&&(c=!1,a.removeClass(l).stop().css(u),document.contains(d[0])&&d.before(a),d.detach()))},_.on_scroll_down_parent=function(t){var e=m(t);c?a.css({top:e}):_.on_scroll_down_default(t,{position:"absolute",left:h.left-a.data("append-target").offset().left,top:e})},_.on_scroll_up_parent=function(t){_.on_scroll_up_default(t),c&&a.css("top",m(t))},_.on_scroll_down_element=function(t){var e={top:Math.min(s.top,a.data("$$stop-offset").top-t-a.outerHeight())};c?a.css("top",e.top):_.on_scroll_down_default(t,e)},_.on_scroll_up_element=function(t){_.on_scroll_up_default(t),c&&a.css("top",Math.min(s.top,a.data("$$stop-offset").top-t-a.outerHeight()))},b.exports=function(t){t.find("[data-tve-scroll]").each(function(){try{var t=JSON.parse(this.dataset.tveScroll),e=o(this);e.hasClass("thrive-shortcode-html")&&(e=e.parent()),t.top=parseInt(t.top||"0")+r.body_offset.top,t.end=t.end||"default",e.data("scroll_config",t).data("append-target",function(t,e){switch(e){case"parent":return t.parent().closest(".tcb-col,.thrv-content-box,.thrv-page-section");case"page":default:return t.closest("#tve_editor,#wrapper,.symbol-section-in,.thrv_wrapper.section,.thrive-symbol-shortcode")}}(e,t.end)),"element"===t.end&&e.data("stop-target",o("#"+(t.el_id&&t.el_id.replace("#","")||"some-not-found-id"))),delete this.dataset.tveScroll,v=v.add(e)}catch(t){console.error(t)}}),r.add_scroll_callback(g)}}(ThriveGlobal.$j,TCB_Front)},"typefocus.js":function(t,i,e){!function(o,r){function e(i){try{n.each(function(){var t=o(this),e=r.$window.height();t.data("typed")&&(i+e>=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 n=o();i.exports=function(t){n=n.add(t.find(".tve_typefocus")),setTimeout(function(){try{n.each(function(){var t=o(this),e=[],i=parseInt(t.attr("data-speed")),r=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"))&&r?"background-color:"+r:"",backDelay:i,contentType:"text",startDelay:800,showCursor:t.hasClass("tve_typefocus_cursor")}))})}catch(t){console.log(t)}},1e3),r.add_scroll_callback(e)}}(ThriveGlobal.$j,TCB_Front)}}}}}}})("workspace/editor/js/frontend/thrive_content_builder_frontend"); var TL_Front=TL_Front||{},ThriveGlobal=ThriveGlobal||{$j:jQuery.noConflict()};TL_Front.add_page_css=function(a){ThriveGlobal.$j.each(a,function(a,b){a+="-css",b=b.replace(/^http(s)?:\/\//,"//"),ThriveGlobal.$j("#"+a).length||ThriveGlobal.$j('link[href="http:'+b+'"]').length||ThriveGlobal.$j('link[href="https:'+b+'"]').length||ThriveGlobal.$j('').prependTo("head")})},TL_Front.document_write=function(a){ThriveGlobal.$j("body").append(a)},TL_Front.add_head_script=function(a,b,c){var d=document.createElement("script"),e=ThriveGlobal.$j("head")[0];d.async=!0,"function"==typeof c&&(d.onload=d.onreadystatechange=c),void 0!==b&&(d.id=b),d.src=a,e.insertBefore(d,e.firstChild)},TL_Front.add_page_js=function(a,b){function c(){if(0===d)return void b();setTimeout(c,50)}"function"!=typeof b&&(b=function(){});var d=0;ThriveGlobal.$j.each(a,function(a,b){if("tve_frontend"===a&&"undefined"!=typeof TCB_Front)return!0;if(a+="-js",b&&!ThriveGlobal.$j("#"+a).length&&!ThriveGlobal.$j('script[src="'+b+'"]').length){if(d++,-1!==b.indexOf("connect.facebook.net"))return TL_Front.add_head_script(b,a,function(){d--}),!0;ThriveGlobal.$j.getScript(b,function(){d--})}}),c()},TL_Front.do_impression=function(){var a=TL_Front.impressions_data;if(void 0===a)return void console.log("No form to register impression for !");var b={security:TL_Const.security,action:TL_Const.action_impression,tl_data:a,current_screen:TL_Const.current_screen};ThriveGlobal.$j.each(TL_Const.custom_post_data,function(a,c){b[a]=c}),window.TVE_Dash&&!TVE_Dash.ajax_sent?TVE_Dash.add_load_item("tl_impression",b):ThriveGlobal.$j.post(TL_Const.ajax_url,b)},ThriveGlobal.$j(function(){function a(){var a,b,c=-1;return"Microsoft Internet Explorer"==navigator.appName?(a=navigator.userAgent,b=new RegExp("MSIE ([0-9]{1,}[\\.0-9]{0,})"),null!==b.exec(a)&&(c=parseFloat(RegExp.$1))):"Netscape"==navigator.appName&&(a=navigator.userAgent,b=new RegExp("Trident/.*rv:([0-9]{1,}[\\.0-9]{0,})"),null!==b.exec(a)&&(c=parseFloat(RegExp.$1))),c}function b(){function a(a){if(a.find('[data-validation="email"]').length)return a.find('[data-validation="email"]').val();var b="";return a.find("input").each(function(){if(this.name&&this.name.match(/email/i))return b=this.value,!1}),b}if(!TL_Const.forms)return!1;ThriveGlobal.$j("body").on("submit",".tve-leads-conversion-object form",function(b){var c=ThriveGlobal.$j(this),d=c.parents(".tve-leads-conversion-object").first().attr("data-tl-type"),e={};if(c.data("tve-force-submit")||c.data("tl-do-submit")||!d||!TL_Const.forms[d])return!0;c.tve_form_loading(),c.find("input").each(function(){var a=ThriveGlobal.$j(this),b=a.attr("name");void 0!==b&&-1===TL_Const.ignored_fields.indexOf(b)&&(e[a.attr("name")]=a.val())});var f={security:TL_Const.security,action:TL_Const.action_conversion,type:d,tl_data:TL_Const.forms[d],custom_fields:e,email:a(c),current_screen:TL_Const.current_screen};return ThriveGlobal.$j.each(TL_Const.custom_post_data,function(a,b){f[a]=b}),ThriveGlobal.$j.ajax({url:TL_Const.ajax_url,data:f,type:"post",xhrFields:{withCredentials:!0}}).always(function(){void 0===c.attr("action")?location.reload():c.data("tve-force-submit",!0).submit()}),!1}),ThriveGlobal.$j("body").on("form_conversion.tcb",".tve-leads-conversion-object form",function(a){var b=ThriveGlobal.$j(this),c=b.parents(".tve-leads-conversion-object").first().attr("data-tl-type");if(!c||!TL_Const.hasOwnProperty("forms")||!TL_Const.forms[c])return!0;var d={type:c,tl_data:TL_Const.forms[c],current_screen:TL_Const.current_screen};ThriveGlobal.$j.each(TL_Const.custom_post_data,function(a,b){d[a]=b}),a.post_data=a.post_data||{},a.post_data.thrive_leads=d}).on("lead_conversion_success.tcb",".tve_lead_lock_shortcode form",function(a){var b=ThriveGlobal.$j(this),c=b.parents(".tve_content_lock");c.removeClass("tve_lead_lock").find(".tve_lead_lock_shortcode").remove(),c.find(".tve_lead_locked_overlay").remove(),a.content_unlocked=!0}).on("leads_states.tcb",".tve-leads-conversion-object form",function(a,b){var c=ThriveGlobal.$j(this);switch(c.find("#_form_type").val()){case"ribbon":var d=c.parents(".tve-leads-ribbon");c.parents(".tve_shortcode_editor").empty().html(b),TL_Front.open_ribbon(d);break;case"lightbox":case"tve_lead_2s_lightbox":c.parents(".tve_p_lb_control").empty().html(b);break;case"widget":case"in-content":case"post-footer":case"php-insert":c.parents(".tve_shortcode_editor").empty().html(b);break;case"slide-in":var e=c.parents(".tve-leads-slide-in");c.parents(".tve_shortcode_editor").empty().html(b),TL_Front.open_slide_in(e);break;case"screen-filler-lightbox":var f=c.parents(".tve-leads-screen-filler");c.parents(".tve_shortcode_editor").empty().html(b),TL_Front.open_screen_filler(f);break;case"scroll-mat":var d=c.parents(".tve-leads-greedy_ribbon");c.parents(".tve_shortcode_editor").empty().html(b),TL_Front.open_ribbon(d);break;case"tve_lead_shortcode":c.parents(".tve-leads-shortcode").empty().html(b);break;case"lead_generation":default:a.change_states=!1}a.change_states=!0}).on("leads_messages.tcb",".tve-leads-conversion-object form",function(a){var b=ThriveGlobal.$j(this);switch(b.find("#_form_type").val()){case"tve_lead_shortcode":a.lightbox_state&&b.parents(".tve-leads-shortcode").hide();break;case"ribbon":b.parents(".thrv-ribbon").find(".tve-ribbon-close").click();break;case"lightbox":case"tve_lead_2s_lightbox":b.parents(".tve_p_lb_content").find(".tve_p_lb_close").click(),b.parents(".tve-leads-screen-filler").find(".tve-screen-filler-close").click();break;case"slide-in":b.parents(".thrv-leads-slide-in").find(".tve-leads-close").click();break;case"screen-filler-lightbox":b.parents(".tve-leads-screen-filler").find(".tve-screen-filler-close").click();break;case"scroll-mat":b.parents(".thrv-greedy-ribbon").find(".tve_et_click").click();break;case"widget":case"in-content":case"post-footer":case"php-insert":default:b.find("input:not(:hidden)").val("")}b.parents(".tve-leads-conversion-object").find(".tve_ea_thrive_leads_form_close").click(),TL_Front.parent_state&&TL_Front.close_form(TL_Front.parent_state)})}if("undefined"!=typeof TL_Const){if(ThriveGlobal.$j(".tve-leads-screen-filler iframe, .tve-leads-ribbon iframe").not(".thrv_social_default iframe").not(".tcb-dr-done").each(function(){var a=ThriveGlobal.$j(this).addClass("tcb-dr-done");a.attr("src")&&a.attr("data-src",a.attr("src")),a.attr("src","")}),"undefined"!=typeof TCB_Front&&ThriveGlobal.$j(TCB_Front).on("content_loaded.thrive",function(a,b){b.find(".tve-tl-anim").each(function(){var a=ThriveGlobal.$j(this);ThriveGlobal.$j(TL_Front).trigger("showform.thriveleads",{$target:a})})}),ThriveGlobal.$j(TL_Front).on("showform.thriveleads",function(a,b){var c,d=b.$target?b.$target:ThriveGlobal.$j("."+b.form_id);d.length&&(b.first&&(d=d.first()),d.attr("data-s-state")&&(d=d.closest(".tl-states-root").find('[data-state="'+d.attr("data-s-state")+'"] .tl-lb-target')),c=d.hasClass("tve-tl-anim")?d:d.find(".tve-tl-anim"),d.css("display",""),setTimeout(function(){c.addClass("tve-leads-triggered"),TL_Front.handle_typefocus(c,"start"),TCB_Front.postGridLayout()},0),"function"==typeof TL_Front["open_"+b.form_type]?TL_Front["open_"+b.form_type](d,b.TargetEvent):d.show(),d.on("switchstate",function(a,b){b.offset().top-ThriveGlobal.$j(window).scrollTop()+b.outerHeight()<0&&ThriveGlobal.$j("html, body").animate({scrollTop:b.offset().top+"px"},50)}),setTimeout(function(){d.find(".thrv_responsive_video iframe, .thrv_custom_html_shortcode iframe").each(function(){var a=ThriveGlobal.$j(this);a.attr("data-src")&&a.attr("src",a.attr("data-src"))})},200))}),ThriveGlobal.$j("body").on("click",".tve-ribbon-close",function(){var a=ThriveGlobal.$j(this).closest(".tve-leads-ribbon"),b=a.data("position");a.find(".thrv_responsive_video iframe, .thrv_custom_html_shortcode iframe, .thrv_responsive_video video").each(function(){var a=ThriveGlobal.$j(this);a.attr("data-src",a.attr("src")),a.attr("src","")}),a.removeClass("tve-leads-triggered"),"top"===b?ThriveGlobal.$j("body").animate({marginTop:0},200,function(){document.body.style.removeProperty("margin-top")}):"bottom"===b&&ThriveGlobal.$j("body").animate({marginBottom:"0px"},200,function(){document.body.style.removeProperty("margin-bottom")}),TL_Front.handle_typefocus(a,"pause"),setTimeout(function(){a.css(b,"")},400),ThriveGlobal.$j("#tve-lg-error-container").hide()}),TL_Const.ajax_load||TL_Front.do_impression(),TL_Front.ajax_load_callback=function(d){function e(a){var b=a.replace("two_step_","");ThriveGlobal.$j(".tl-2step-trigger-"+b).show()}function f(){if(!c)return void setTimeout(f,50);TCB_Front.event_triggers(ThriveGlobal.$j("body")),TCB_Front.onDOMReady(),b(),ThriveGlobal.$j(TCB_Front).trigger("tl-ajax-loaded")}if(d&&d.res&&d.js&&d.html){if(TL_Front.add_page_css(d.res.css),TL_Front.add_page_css(d.res.fonts),d.html&&(d.html.widget||ThriveGlobal.$j(".tl-widget-container").remove(),ThriveGlobal.$j.each(d.html,function(a,b){if(!b)return!0;if("in_content"===a){var c="after",f=ThriveGlobal.$j(".tve-tl-cnt-wrap"),g=f.find("p").filter(":visible");0===g.length&&0==d.in_content_pos?ThriveGlobal.$j(".tve-tl-cnt-wrap").prepend(b):(0==d.in_content_pos&&(d.in_content_pos=1,c="before"),g.eq(parseInt(d.in_content_pos)-1)[c](b))}else{var h=ThriveGlobal.$j(".tl-placeholder-f-type-"+a);if(d.js[a]&&d.js[a].content_locking){var i=h.parents(".tve_content_lock").first();if(d.js[a].has_conversion)return i.removeClass("tve_lock_hide"),!0;"tve_lock_blur"==d.js[a].lock&&i.removeClass("tve_lock_hide").addClass(d.js[a].lock)}h.replaceWith(b),"widget"===a&&ThriveGlobal.$j(".tl-widget-container").children().unwrap(),0===a.indexOf("two_step")&&e(a)}}),a()>0&&setTimeout(function(){var a="";ThriveGlobal.$j("body style.tve_custom_style").each(function(){a=this.innerText,this.innerText=a})})),d.body_end){var g=ThriveGlobal.$j(d.body_end);g.find(".tve_wistia_popover").each(function(){ThriveGlobal.$j("#"+this.id).length&&this.parentNode.removeChild(this)}),g.filter("link[href]").each(function(){ThriveGlobal.$j('link[href="'+this.getAttribute("href")+'"]').length&&(g=g.not(this))}),g.filter("script[src]").each(function(){ThriveGlobal.$j('script[src="'+this.getAttribute("src")+'"]').length&&(g=g.not(this))});try{ThriveGlobal.$j("body").append(g)}catch(a){console.log("Body append: "+a)}}void 0!==d.js.TVO_Form&&(TVO_Form=d.js.TVO_Form),TL_Front.add_page_js(d.res.js,function(){c=!0}),setTimeout(f,50),TL_Const.forms=d.js}},TL_Const.ajax_load){var c=!1,d=(ThriveGlobal.$j(".tve-leads-two-step-trigger").hide(),{tcb_js:"undefined"!=typeof TCB_Front?1:0,main_group_id:TL_Const.main_group_id,shortcode_ids:TL_Const.shortcode_ids,two_step_ids:TL_Const.two_step_ids,action:"tve_leads_ajax_load_forms",security:TL_Const.security,display_options:TL_Const.display_options,current_screen:TL_Const.current_screen});return ThriveGlobal.$j.each(TL_Const.custom_post_data,function(a,b){d[a]=b}),void(window.TVE_Dash&&!TVE_Dash.ajax_sent?ThriveGlobal.$j(document).on("tve-dash.load",function(a){TVE_Dash.add_load_item("tl_lazy_load",d,TL_Front.ajax_load_callback)}):ThriveGlobal.$j.ajax({url:TL_Const.ajax_url,type:"post",dataType:"json",data:d,xhrFields:{withCredentials:!0}}).done(TL_Front.ajax_load_callback))}b()}}),TL_Front.switch_lightbox_state=function(a,b){return a.find(".tve_p_lb_overlay").css("opacity","0.8"),a.find(".tve_p_lb_content").css("top",b.find(".tve_p_lb_content").css("top")).addClass("tve-leads-triggered"),window.tve_lb_switch_state=!0,TL_Front.open_lightbox(a.find(".tl-lb-target"))},TL_Front.close_lightbox=function(){var a=ThriveGlobal.$j("body"),b=ThriveGlobal.$j("html"),c=arguments[0]||a.data("tl-open-lightbox");c&&c.length&&(c.find(".tve-tl-anim").removeClass("tve-leads-triggered"),window.tve_lb_switch_state||(1===ThriveGlobal.$j(".tve_lb_open").length&&(a.removeClass("tve-o-hidden tve-l-open tve-hide-overflow").css("padding-right",""),b.removeClass("tve-o-hidden tve-l-open tve-hide-overflow"),c.data("doc-scroll-top")?(document.documentElement.scrollTop=c.data("doc-scroll-top"),c.data("doc-scroll-top","")):c.data("bdy-scroll-top")&&(document.body.scrollTop=c.data("bdy-scroll-top"),c.data("bdy-scroll-top",""))),b.removeClass(b.data("tl-anim-class"))),window.tve_lb_switch_state=!1,setTimeout(function(){c.addClass("tve_lb_closing"),c.removeClass("tve_lb_open tve_lb_opening tve_lb_closing tve_p_lb_background").css("display","none").find("tve_p_lb_content").trigger("tve.lightbox-close")},200),c.find(".thrv_responsive_video iframe, .thrv_custom_html_shortcode iframe, .thrv_responsive_video video").each(function(){var a=ThriveGlobal.$j(this);a.attr("data-src",a.attr("src")),a.attr("src","")}),TL_Front.handle_typefocus(c,"pause"),ThriveGlobal.$j("#tve-lg-error-container").hide())},TL_Front.open_lightbox=function(a,b){if(!a.hasClass("tve_lb_open")&&!a.hasClass("tve_lb_opening")){var c=window.tve_lb_switch_state;ThriveGlobal.$j.fn.thrive_iphone_placeholder&&a.find("input[placeholder]").thrive_iphone_placeholder(),TL_Front.close_lightbox(ThriveGlobal.$j(".tve_p_lb_background.tve_lb_open")),a.css({visibility:"",position:"",left:"",display:""}).parents(".tl-style").css({visibility:"",position:"",left:"",display:""});var d=ThriveGlobal.$j("body"),e=ThriveGlobal.$j("html"),f=function(){var a=ThriveGlobal.$j,b={border:"none",height:"200px",margin:"0",padding:"0",width:"200px"},c=a("
").css(a.extend({},b)),d=a("
").css(a.extend({left:"-1000px",overflow:"scroll",position:"absolute",top:"-1000px"},b)).append(c).appendTo("body").scrollLeft(1e3).scrollTop(1e3),e={height:d.offset().top-c.offset().top||0,width:d.offset().left-c.offset().left||0};return d.remove(),e}().width,g=parseInt(d.css("paddingRight")),h=ThriveGlobal.$j(".tve_p_lb_background.tve_lb_open").length;isNaN(g)&&(g=0),a.find(".tve_p_lb_close").off().on("click",function(){return TL_Front.close_lightbox(),!1}),d.off("keyup.tve_lb_close").on("keyup.tve_lb_close",function(a){if(27==a.which)return TL_Front.close_lightbox(),!1}),a.find(".tve_p_lb_overlay").off("click.tve_lb_close").on("click.tve_lb_close",function(){return TL_Front.close_lightbox(),!1}),d.data("tl-open-lightbox",a),a.addClass("tve_p_lb_background"),a.data("doc-scroll-top",document.documentElement.scrollTop),a.data("bdy-scroll-top",document.body.scrollTop),d.addClass("tve-o-hidden tve-l-open tve-hide-overflow"),e.addClass("tve-o-hidden tve-l-open tve-hide-overflow");var i=ThriveGlobal.$j(window).height(),j=id&&a.addClass("tve-scroll")}setTimeout(function(){a.addClass("tve_lb_opening")},0),a.find("iframe").not(".thrv_social_default iframe").each(function(){var a=ThriveGlobal.$j(this);!a.data("tve_ifr_loaded")&&a.attr("data-src")&&a.data("tve_ifr_loaded",1).attr("src",a.attr("data-src"))}),b(),ThriveGlobal.$j(window).on("resize",b)},20),setTimeout(function(){a.removeClass("tve_lb_opening").addClass("tve_lb_open").find(".tve_p_lb_content").trigger("tve.lightbox-open"),ThriveGlobal.$j(window).trigger("scroll")},300),b&&b.preventDefault&&(b.preventDefault(),b.stopPropagation()),a.parents(".tl-states-root").off("switchstate").on("switchstate",function(a,b){var c=Array.prototype.slice.call(arguments,1);TL_Front.switch_lightbox_state.apply(TL_Front,c)})}},TL_Front.open_two_step_lightbox=TL_Front.open_lightbox,TL_Front.open_ribbon=function(a){function b(){a.addClass("tve-leads-triggered");var b=a.attr("data-position")||"top";"top"===b?a.css("top",ThriveGlobal.$j("#wpadminbar").length?"32px":"0px"):"bottom"===b&&(a.css("bottom","0px"),a.css("top","auto"));var c=0,d=a.outerHeight(),e=setInterval(function(){c++;var f=a.outerHeight();f==d&&10!=c||clearInterval(e),"top"===b?ThriveGlobal.$j("body").animate({"margin-top":f+"px"},200,function(){document.body.style.setProperty("margin-top",f+"px","important")}):"bottom"===b&&ThriveGlobal.$j("body").animate({"margin-bottom":f+"px"},200)},100);a.off("switchstate").on("switchstate",function(a,b){var c=Array.prototype.slice.call(arguments,1);TL_Front.switch_ribbon_state.apply(TL_Front,c)})}TL_Const.forms.greedy_ribbon?(TL_Const.close_callbacks=TL_Const.close_callbacks||{},TL_Const.close_callbacks.greedy_ribbon=[b]):b()},TL_Front.switch_ribbon_state=function(a){var b=a.outerHeight(!0),c="top"===a.parent().attr("data-position")?"margin-top":"margin-bottom",d={};d[c]=b+"px",a.find(".tve-tl-anim").removeClass(function(a,b){return(b.match(/(^|\s)tl-anim-\S+/g)||[]).join(" ")}).removeClass("tve-tl-anim"),ThriveGlobal.$j("body").animate(d,200)},TL_Front.open_greedy_ribbon=function(a){var b=ThriveGlobal.$j("body"),c=ThriveGlobal.$j(window),d=b.css("position");c.scrollTop(0),b.css("position","static"),b.addClass("tve-tl-gr-anim"),a.css("top",ThriveGlobal.$j("#wpadminbar").length?"32px":"0px");var e=a.outerHeight();b[0].style.setProperty("margin-top",e+"px","important");var f=1;setTimeout(function(){ThriveGlobal.$j('.tve-leads-ribbon[data-position="top"]').removeClass("tve-leads-triggered")},50),c.scroll(function(){var g=b.hasClass("tve-tl-gr-anim");if(1===f&&g){var h=c.scrollTop();if(h>e){(a.find(".tve_ea_thrive_wistia").length||a.find(".tve_with_wistia_popover"))&&ThriveGlobal.$j(".wistia_placebo_close_button").trigger("click"),b.removeClass("tve-tl-gr-anim"),a.addClass("tve-no-animation");var i=h-e;a.removeClass("tve-leads-triggered"),a.find(".thrv_responsive_video iframe, .thrv_custom_html_shortcode iframe, .thrv_responsive_video video").each(function(){var a=ThriveGlobal.$j(this);a.attr("data-src",a.attr("src")),a.attr("src","")}),b.css("margin-top",""),b.css("position",d),c.scrollTop(i),a.removeClass("tve-no-animation"),f=0,TL_Front.form_closed("greedy_ribbon"),TL_Const.forms.greedy_ribbon.allow_callbacks=!1}}}),a.off("switchstate").on("switchstate",function(a,b){})},TL_Front.open_screen_filler=function(a,b){function c(a){a.find(".thrv_responsive_video iframe, .thrv_custom_html_shortcode iframe, .thrv_responsive_video video").each(function(){var a=ThriveGlobal.$j(this);a.attr("data-src",a.attr("src")),a.attr("src","")}),a.removeClass("tve-leads-triggered"),TL_Front.handle_typefocus(a,"pause"),ThriveGlobal.$j(document).off("keyup.close-screenfiller"),0==ThriveGlobal.$j.find(".tve-leads-ribbon").length&&ThriveGlobal.$j("body").animate({"margin-top":"0px"},200),e.removeClass(d),f.removeClass(f.data("tl-s-anim-class")),setTimeout(function(){a.css("top","").hide(),"none"===a.css("display")&&(e.removeClass(d),a.removeClass("tve-leads-triggered"))},400),a.data("doc-scroll-top")?(document.documentElement.scrollTop=a.data("doc-scroll-top"),a.data("doc-scroll-top","")):a.data("bdy-scroll-top")&&(document.body.scrollTop=a.data("bdy-scroll-top"),a.data("bdy-scroll-top","")),ThriveGlobal.$j("#tve-lg-error-container").hide()}var d="tve-so-hidden tve-sl-open tve-s-hide-overflow",e=ThriveGlobal.$j("html,body"),f=ThriveGlobal.$j("html");if(ThriveGlobal.$j.fn.thrive_iphone_placeholder&&a.find("input[placeholder]").thrive_iphone_placeholder(),a.css("top",ThriveGlobal.$j("#wpadminbar").length?"32px":"0px").css("visibility",""),!0===a.hasClass("stl-anim-slip_from_top")){var g=ThriveGlobal.$j(window).scrollTop();a.css("top",g).css("visibility","")}a.find(".tve-screen-filler-close").on("click",function(){c(a)}),a.data("doc-scroll-top",document.documentElement.scrollTop),a.data("bdy-scroll-top",document.body.scrollTop),e.addClass(d);var h="";ThriveGlobal.$j.each(a.attr("class").split(" "),function(a,b){if(0===b.indexOf("stl-anim"))return h=b,!1}),f.addClass(h).data("tl-s-anim-class",h);var i=a.find("> .tl-style").hide(),j=a.find('> .tl-style[data-form-state="already_subscribed"]');j.length?j.show():i.first().show(),TL_Front.close_screen_filler=c,b&&b.preventDefault&&(b.preventDefault(),b.stopPropagation()),ThriveGlobal.$j(document).off("keyup.close-screenfiller").on("keyup.close-screenfiller",function(b){27==b.which&&c(a)}),a.find(".thrv_responsive_video iframe, .thrv_custom_html_shortcode iframe, .thrv_responsive_video video").each(function(){var a=jQuery(this);a.attr("data-src")&&a.attr("src",a.attr("data-src"))})},TL_Front.switch_slide_in_state=function(a){a.find(".tve-tl-anim").removeClass(function(a,b){return(b.match(/(^|\s)tl-anim-\S+/g)||[]).join(" ")}).removeClass("tve-tl-anim"),TL_Front.slide_in_position(a.find(".thrv-leads-slide-in"))},TL_Front.slide_in_position=function(a){var b=ThriveGlobal.$j(window),c=a.outerHeight();if(b.width()<=782||b.height()d&&a.parents(".tve-leads-slide-in").css("overflow-y","scroll")},0)}},TL_Front.open_slide_in=function(a,b){function c(b){b.removeClass("tve-leads-triggered"),TL_Front.handle_typefocus(b,"pause"),ThriveGlobal.$j(document).off("keyup.close-slidein"),e.removeClass(d),f.removeClass(d),b.find(".thrv_responsive_video iframe, .thrv_custom_html_shortcode iframe, .thrv_responsive_video video").each(function(){var a=ThriveGlobal.$j(this);a.attr("data-src",a.attr("src")),a.attr("src","")}),ThriveGlobal.$j("#tve-lg-error-container").hide(),a.data("doc-scroll-top")?(document.documentElement.scrollTop=a.data("doc-scroll-top"),a.data("doc-scroll-top","")):a.data("bdy-scroll-top")&&(document.body.scrollTop=a.data("bdy-scroll-top"),a.data("bdy-scroll-top",""))}var d="tve-o-hidden tve-l-open tve-hide-overflow",e=ThriveGlobal.$j("body"),f=ThriveGlobal.$j("html");ThriveGlobal.$j.fn.thrive_iphone_placeholder&&a.find("input[placeholder]").thrive_iphone_placeholder(),TL_Front.slide_in_position(a.find(".thrv-leads-slide-in").filter(":visible")),a.off().on("click",".tve-leads-close",function(){c(a)}),a.find(".tve_ea_thrive_leads_form_close").on("click",function(){c(a)}),a.on("switchstate",function(a,b){var c=Array.prototype.slice.call(arguments,1);TL_Front.switch_slide_in_state.apply(TL_Front,c)}),ThriveGlobal.$j(document).off("keyup.close-slidein").on("keyup.close-slidein",function(b){27==b.which&&c(a)}),b&&b.preventDefault&&(b.preventDefault(),b.stopPropagation())},TL_Front.close_form=function(a,b,c,d){var e=ThriveGlobal.$j(a),f=e.parents(".tve-leads-triggered"),g=f.attr("data-tl-type");if(void 0===g&&f.hasClass("tve-leads-widget"))g="widget";else if(void 0===g&&f.hasClass("tve-leads-post-footer"))g="post-footer";else if(void 0===g&&f.hasClass("tve-leads-slide-in"))g="slide-in";else if(void 0===g&&f.hasClass("tve-leads-in-content"))g="in-content";else if(void 0===g&&f.hasClass("tve-leads-shortcode"))g="shortcode";else if(void 0===g&&f.hasClass("tve-leads-greedy_ribbon"))g="greedy_ribbon";else{if(void 0===g&&f.hasClass("tve_p_lb_content"))return TL_Front.close_lightbox(),!1;if(void 0===g&&f.hasClass("tve-leads-screen-filler"))return TL_Front.close_screen_filler(f),!1}switch(f.removeClass("tve-leads-triggered"),TL_Front.handle_typefocus(f,"pause"),g){case"ribbon":var h=f.find(".tve-ribbon-close");h.length||(h=jQuery('').appendTo(f)),h.trigger("click");break;case"slide-in":f.find(".tve-leads-close").trigger("click"),f.find(".thrv_responsive_video iframe, .thrv_custom_html_shortcode iframe, .thrv_responsive_video video").each(function(){var a=ThriveGlobal.$j(this);a.attr("data-src",a.attr("src")),a.attr("src","")});break;case"post-footer":case"in-content":case"shortcode":f.fadeOut(200,function(){TL_Front.form_closed(g)});break;case"widget":f.parent().slideUp(200);break;case"greedy_ribbon":var i=ThriveGlobal.$j("body"),j=ThriveGlobal.$j(window),k=i.css("margin-top");i[0].style.removeProperty("margin-top"),f.find(".thrv_responsive_video iframe, .thrv_custom_html_shortcode iframe, .thrv_responsive_video video").each(function(){var a=ThriveGlobal.$j(this);a.attr("data-src",a.attr("src")),a.attr("src","")}),i.css("margin-top",k),j.scrollTop(0),i.animate({"margin-top":"0px"},300,"linear",function(){TL_Front.form_closed(g)}).removeClass("tve-tl-gr-anim")}},TL_Front.form_closed=function(a){TL_Const.close_callbacks&&TL_Const.close_callbacks[a]&&ThriveGlobal.$j.each(TL_Const.close_callbacks[a],function(a,b){ThriveGlobal.$j.isFunction(b)&&b()})},TL_Front.handle_typefocus=function(a,b){a.find(".tve_typefocus").each(function(){jQuery(this).attr("data-typefocus",b)})};