"use strict";var _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};!function(l){var f,u,r,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 o,r;if("function"==typeof t[e+i])return e+i;for(o=0;r=n[i][o];++o)if("function"==typeof t[e+r])return e+r;return null},f=function(t,e,i,o,r,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(o);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!==r&&"object"===_typeof(t[a])&&(e.push(t),t=t[a],n+="/"+a,a="")),!a)return 1!==r&&t[":mainpath:"]?f(t,e,t[":mainpath:"],o,1,n):f(t,e,"index",o,2,n);if(!(d=t[a]))throw v(o);return d.hasOwnProperty("module")?d.module.exports:(l={},d.module=c={exports:l,id:n+"/"+a},d.call(l,l,c,u(t,e,n)),c.exports)},r=function(t,e,i,o){var r,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)}o="/",e=[]}else if("."!==a){if(r=n.split("/",1)[0],!(t=l[r])){if(c)return c(i);throw v(i)}o=r,e=[],(n=n.slice(r.length+1))||((n=t[":mainpath:"])?s=1:(n="index",s=2))}return f(t,e,n,i,s,o)},(u=function(e,i,o){return function(t){return r(e,[].concat(i),t,o)}})(l,[],"")}({workspace:{editor:{js:{frontend:{events:{"resize.js":function(t,e,i){var o,r,n;o=ThriveGlobal.$j,r=TCB_Front,n=[],r.addResizeCallback=function(t,e){return-1===n.indexOf(t)&&(t.$$scope=e,n.push(t)),r},e.exports=function(){r.$window.off("resize.tar").on("resize.tar",function(){o.each(n,function(t,e){e.call(e.$$scope||this)})})}},"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(),o=t<=i?"down":"up",r=e!==o;t=i,e=o,n.each(s,function(t,e){e.call(e.$$scope||this,i,o,r)})}),a.$window.trigger("scroll")}}},"thrive_content_builder_frontend.js":function(t,e,i){if(!window.ThriveGlobal||!window.ThriveGlobal.$j){var o=window.$;window.ThriveGlobal={$j:jQuery.noConflict()},o&&(window.$=o)}window.TVE_jQFn={},window.TCB_Front={},ThriveGlobal.$j.extend(window.TCB_Front,{browser:null,detectBrowser:function(){var t,e,i={},o=(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(0<o)i.msie=!0;else{var r=navigator.userAgent.toLowerCase(),n=/(edge)[ \/]([\w.]+)/.exec(r)||/(chrome)[ \/]([\w.]+)/.exec(r)||/(webkit)[ \/]([\w.]+)/.exec(r)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(r)||/(msie) ([\w.]+)/.exec(r)||r.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(r)||[],a=n[1]||"";n[2];n[1]&&(i[a]=!0),i.chrome?i.webkit=!0:i.webkit&&(i.safari=!0)}return i.msie&&(i.version=o),i},tableSort:function(d){d.on("click",function(){var t,e=ThriveGlobal.$j(this),r=e.index(),i=e.parents(".tve_make_sortable"),o=i.find("tbody"),n=[],a=[],s="down"==e.attr("data-direction")?"up":"down";function l(t,e){return t.text==e.text?t.oText>e.oText?1:t.oText<e.oText?-1:0:t.text>e.text?1:-1}function c(t,e){return t.text==e.text?t.oText>e.oText?-1:t.oText<e.oText?1:0:t.text>e.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=/[$£€]/.test(e),o=i?e:parseFloat(e);isNaN(o)&&!i?n.push({tr:t,text:e,oText:e}):(i&&(o=parseFloat(o.replace(/[$£€]/,""))),a.push({tr:t,text:o,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(";"),o=0;o<i.length;o++){for(var r=i[o];" "==r.charAt(0);)r=r.substring(1,r.length);if(0==r.indexOf(e))return r.substring(e.length,r.length)}return null},setCookie:function(t,e,i){if("number"==typeof i.expires){var o=i.expires,r=i.expires=new Date;r.setTime(+r+864e5*o)}return document.cookie=[encodeURIComponent(t),"=",encodeURIComponent(e),i.expires?"; expires="+i.expires.toUTCString():"",i.path?"; path="+i.path:"",i.domain?"; domain="+i.domain:"",i.secure?"; secure":""].join("")},isInViewport:function(t,e){(t instanceof ThriveGlobal.$j||t.jquery)&&(t=t[0]);var i=t.getBoundingClientRect();return!(i.bottom<0||i.top>window.innerHeight-e)},postGridLayout:function(){var t=ThriveGlobal.$j(".tve_post_grid_masonry");if(0<t.length)try{t.each(function(){ThriveGlobal.$j(this).masonry(this.dataset.masonry?JSON.parse(this.dataset.masonry):{}).css("opacity",1)})}catch(t){console.log(t)}var e=ThriveGlobal.$j(".tve_post_grid_grid");e.length<=0||e.find(".tve_pg_row").each(function(){var i=0,t=ThriveGlobal.$j(this).css("height","");t.find(".tve_post").each(function(){var t=ThriveGlobal.$j(this),e=t.outerHeight();i<e&&(i=e),t.css("height","100%")}),t.css("height",i-1+"px")})},changeAutoplayVideo:function(t){var e=this;(void 0===t?ThriveGlobal.$j(".thrv_responsive_video"):t.find(".thrv_responsive_video")).each(function(){if(!tve_frontend_options.is_editor_page){var t=ThriveGlobal.$j(this);t.parents(".tve_p_lb_content").length||e.makeAutoplayVideo(t)}})},makeAutoplayVideo:function(t){var e,i,o,r=t.attr("data-type"),n=this.browser;if("1"===t.attr("data-autoplay")){switch(r){case"youtube":case"vimeo":i="&autoplay=1";break;case"wistia":i="&autoPlay=true"}if(n.safari||n.chrome)switch(r){case"youtube":i+="&mute=1";break;case"vimeo":i+="&muted=1";break;case"wistia":i+="&muted=true"}if("youtube"===r||"vimeo"===r||"wistia"===r)(o=(e=t.find("iframe")).attr("src"))&&0!==o.length&&-1===o.indexOf(i)&&(e.attr("src",o+i),e.attr("data-src",o+i));else if("custom"===r||"self"===r){var a=t.find("video").get(0);(n.safari||n.chrome)&&(a.muted=!0),a.paused&&a.play()}}},isValidUrl:function(t){return/(http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?/.test(t)},pageSectionHeight:function(){var t=TCB_Front.$window;ThriveGlobal.$j(".pdfbg.pdwbg").css({"box-sizing":"border-box",height:t.height()+"px"}),ThriveGlobal.$j(".pddbg").css("max-width",t.width()+"px"),ThriveGlobal.$j(".pddbg.pdfbg").each(function(){var t=ThriveGlobal.$j(this).css("height",""),e=t.attr("data-height"),i=t.attr("data-width");if(void 0!==e&&void 0!==i){var o=t.parent().width(),r=o*e/i;o<=i?t.css("min-height",r+"px"):t.css({"min-height":e+"px"})}})},getBrowserScrollSize:function(){var t=ThriveGlobal.$j,e={border:"none",height:"200px",margin:"0",padding:"0",width:"200px"},i=t("<div>").css(t.extend({},e)),o=t("<div>").css(t.extend({left:"-1000px",overflow:"scroll",position:"absolute",top:"-1000px"},e)).append(i).appendTo("body").scrollLeft(1e3).scrollTop(1e3),r={height:o.offset().top-i.offset().top||0,width:o.offset().left-i.offset().left||0};return o.remove(),r},openLightbox:function(a,t){if(!a.hasClass("tve_lb_open")&&!a.hasClass("tve_lb_opening")){var i=ThriveGlobal.$j("body"),o=ThriveGlobal.$j("html"),r="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");l.length&&l.thrive_iphone_placeholder(),a.find(".thrv_responsive_video").each(function(){var t=ThriveGlobal.$j(this);n.makeAutoplayVideo(t)}),a.off().on("click",".tve_p_lb_close",function(){return c(a),!1}),i.off("keyup.tve_lb_close").on("keyup.tve_lb_close",function(t){if(27==t.which)return c(a),!1}),a.children(".tve_p_lb_overlay").off("click.tve_lb_close").on("click.tve_lb_close",function(){return c(a),!1}),c(ThriveGlobal.$j(".tve_p_lb_background.tve_lb_open"),!0),a.addClass("tve_p_lb_background tve_lb_anim_"+t),a.data("doc-scroll-top",document.documentElement.scrollTop),a.data("bdy-scroll-top",document.body.scrollTop),i.addClass(r),o.addClass(r),TCB_Front.$window.height()<TCB_Front.$document.height()&&i.css("padding-right",s+e+"px"),a.find(".tve_scT").length?a.find(".tve_scT").each(function(){var t=ThriveGlobal.$j(this),e=parseInt(t.attr("data-selected"));tve_frontend_options.is_editor_page||t.find("> 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(r).css("padding-right",""),o.removeClass(r)),TCB_Front.$window.resize(function(){d()}),a.on("lbresize",function(){d(!0)})}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(r).css("padding-right",""),o.removeClass(r),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,o=a.find(".tve_p_lb_content"),r=TCB_Front.$window.height(),n=void 0!==t&&t?"animate":"css";TCB_Front.postGridLayout(),i=(r-(e=o.outerHeight(!0)))/2,a.find(".tve_p_lb_overlay")[n]({height:e+80+"px","min-height":r+"px"},200),o[n]({top:(i<40?40:i)+"px"},200),r<e+40&&a.addClass("tve-scroll")}},event_triggers:function(t){window.TVE_Event_Manager_Registered_Callbacks&&t.find(".tve_evt_manager_listen").each(function(){var o=ThriveGlobal.$j(this),t=o.attr("data-tcb-events");if(t||(t=o.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;o.off(i+".tcbevt"+e.t).on(i+".tcbevt"+e.t,function(){return TVE_Event_Manager_Registered_Callbacks[e.a].call(o[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('<div class="tve-editable-field"><p>'+e.value+'</p><span class="tve_sc_icon icon-lock tve-edit-field"></span></div>'),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()),o="#e3ecef",r="";e.next().find(".tve-password-strength").css({"background-color":"#e3ecef"}),i<30?(o="#ef5350",r="Weak",t=e.next().find(".tve-password-strength").first()):30<=i&&i<60?(o="#ffa726",r="So-so",t=e.next().find(".tve-password-strength:lt(2)")):60<=i&&i<80?(o="#8bc34a",r="Good",t=e.next().find(".tve-password-strength:lt(3)")):(o="#4caf50",r="Great!",t=e.next().find(".tve-password-strength:lt(4)")),t.each(function(){ThriveGlobal.$j(this).css({"background-color":o})}),e.next().find(".tve-password-strength-text").text(r).css({color:o})});var n=function(t){var e,i=0,o={},r=0;if(!t)return i;for(var n=0;n<t.length;n++)o[t[n]]=(o[t[n]]||0)+1,i+=5/o[t[n]];for(var a in e={digits:/\d/.test(t),lower:/[a-z]/.test(t),upper:/[A-Z]/.test(t),nonWords:/\W/.test(t)})r+=1==e[a]?1:0;return i+=10*(r-1),parseInt(i)};TCB_Front.$document.on("click",".tve-edit-field",function(){ThriveGlobal.$j(this).parent().hide().prev().show()}),TCB_Front.$document.on("click",".tve-close-error-message",function(){ThriveGlobal.$j(this).parent().hide().prev().show()}),TCB_Front.$document.on("click",".tve-image-overlay",function(){var t=ThriveGlobal.$j(this).parent();t.is("a")||t.find("img").trigger("click")}),TCB_Front.$document.on("mouseenter mouseout",".tve-image-overlay",function(t){ThriveGlobal.$j(this).parent().find("img").trigger(t.type)}),ThriveGlobal.$j(".thrv_fill_counter").each(function(){var r=ThriveGlobal.$j(this);r.one("tve.start-animation",function(){var t=r.find(".tve_fill_counter").attr("data-fill"),e=2*t,i=["-webkit-transform","-ms-transform","transform"];for(var o in i)ThriveGlobal.$j(".tve_fill_c_in, .tve_fill_circle.tve_fill_circle1",this).css(i[o],"rotate("+t+"deg)"),ThriveGlobal.$j(".tve_fill_c_in-d",this).css(i[o],"rotate("+e+"deg)")})}),ThriveGlobal.$j(".thrv_number_counter").each(function(){ThriveGlobal.$j(this).on("tve.start-animation",function(){var o=ThriveGlobal.$j(".tve_numberc_text",this),t=o.attr("data-counter"),e=o.attr("data-counter-start")?o.attr("data-counter-start"):0,i=parseInt(e),r=null,n=Math.ceil((i<t?t:i)/100);n=n||1,i<t?function t(e,i){e<=i?(o.text(e),i<(e+=n)+n&&(o.text(i),clearTimeout(r)),r=setTimeout(function(){t(e,i)},50)):clearTimeout(r)}(i,t):function t(e,i){i<=e?(o.text(e),(e-=n)-n<i&&(o.text(i),clearTimeout(r)),r=setTimeout(function(){t(e,i)},50)):clearTimeout(r)}(i,t)})}),ThriveGlobal.$j(".tve_p_lb_content").find("video").each(function(){ThriveGlobal.$j(this)[0].pause()}),ThriveGlobal.$j(".tve_p_lb_content iframe").not(".thrv_social_default iframe").not(".thrv_responsive_video iframe").not(".tcb-dr-done").each(function(){var t=ThriveGlobal.$j(this).addClass("tcb-dr-done");t.attr("src")&&t.attr("data-src",t.attr("src")),t.attr("src","")}),ThriveGlobal.$j(".thrv_content_reveal").each(function(){var t=ThriveGlobal.$j(this),e=parseInt(t.attr("data-after")),i=t.parents(".tve_p_lb_content"),o=t.children("thrv_tabs_shortcode").length,r=t.children(".thrv_toggle_shortcode").length;e=isNaN(e)?0:e,t.find("iframe").not(".tcb-dr-done").not(".thrv_social_default iframe").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","")});var n=function(){setTimeout(function(){t.slideDown(200,function(){t.trigger("lbresize")}),t.data("scroll")&&jQuery("html, body").animate({scrollTop:t.offset().top-270}),"1"===tve_frontend_options.is_single&&"string"==typeof t.attr("data-redirect-url")&&t.attr("data-redirect-url").length&&TCB_Front.isValidUrl(t.attr("data-redirect-url"))&&(window.location=t.attr("data-redirect-url")),t.find("iframe").not(".thrv_social_default iframe").each(function(){var t=ThriveGlobal.$j(this);t.attr("src")||o&&r||t.attr("src",t.attr("data-src"))}),TCB_Front.changeAutoplayVideo(t),t.trigger("tve-content-revealed")},1e3*e)};i.length?i.bind("tve.lightbox-open",n):n()}),ThriveGlobal.$j(".thrv_tw_qs").tve_front_tw_qs(),ThriveGlobal.$j(".thrv-countdown_timer_evergreen, .tve_countdown_timer_evergreen").thrive_tcb_timer(),ThriveGlobal.$j(".thrv-countdown_timer_plain, .thrv_countdown_timer:not(.tve_countdown_timer_evergreen)").thrive_tcb_timer(),ThriveGlobal.$j(".thrv_lead_generation").tve_front_lead_generation(),ThriveGlobal.$j(".thrv-contact-form").tve_contact_form(),ThriveGlobal.$j(".thrv-pricing-table").tve_pricing_table(),this.init_typefocus(i),i.find(".thrv_responsive_video").off().click(function(){var t=ThriveGlobal.$j(this),e=t.find(".video_overlay_image"),i=t.attr("data-type"),o=t.attr("data-controls"),r=t.attr("data-overlay"),n=void 0,a=void 0,s=void 0;switch(i){case"youtube":case"vimeo":a="&autoplay=1";break;case"wistia":a="&autoPlay=true"}if("youtube"===i||"vimeo"===i||"wistia"===i)0!==(s=(n=t.find("iframe")).attr("src")).length&&n.attr("src",s+a);else if((!TCB_Front.browser.safari||0===parseInt(o)&&1===parseInt(r))&&("custom"===i||"self"===i)){var l=t.find("video").get(0);l.paused?l.play():l.pause()}0<e.length&&e.fadeOut()})}if(TCB_Front.changeAutoplayVideo(),ThriveGlobal.$j(".thrv_responsive_video:hidden").find("video").each(function(){ThriveGlobal.$j(this)[0].pause()}),TCB_Front.postGridLayout(),TCB_Front.remove_empty_symbols(i),TCB_Front.$window.on("load",function(){TCB_Front.postGridLayout()}),TCB_Front.header_styling(i),TCB_Front.footer_styling(i),window.FB&&setTimeout(function(){ThriveGlobal.$j(".thrv_social_default .tve_s_fb_share, .thrv_social_default .tve_s_fb_like").each(function(){FB.XFBML.parse(this)})},200),!tve_frontend_options.is_editor_page){var o=ThriveGlobal.$j(".tve-captcha-container");if(o.length){var r=function t(){var i;"undefined"!=typeof grecaptcha&&grecaptcha.render?(i=100,o.filter(":not(.tve-recapcha-rendered)").each(function(){this.id=this.id+"-"+ ++i;var t=ThriveGlobal.$j(this),e=window.innerWidth<400?"compact":t.attr("data-size");t.addClass("tve-recaptcha-rendered"),grecaptcha.render(this.id,{sitekey:t.attr("data-site-key"),theme:t.attr("data-theme"),type:t.attr("data-type"),size:e})})):setTimeout(t,50)},a=!1;window.tve_gapi_loaded||(ThriveGlobal.$j.getScript("https://www.google.com/recaptcha/api.js?render=explicit",r),a=!0,window.tve_gapi_loaded=!0),a||r()}var s=ThriveGlobal.$j(".tve-fb-comments");s.length&&(ThriveGlobal.$j("#fb-root").length&&ThriveGlobal.$j("head").append('<div id="fb-root"></div>'),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(),this.initResize()},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 o=void 0!==window.screenLeft?window.screenLeft:screen.left,r=void 0!==window.screenTop?window.screenTop:screen.top,n=(window.innerWidth?window.innerWidth:document.documentElement.clientWidth?document.documentElement.clientWidth:screen.width)/2-e/2+o,a=(window.innerHeight?window.innerHeight:document.documentElement.clientHeight?document.documentElement.clientHeight:screen.height)/2-i/2+r,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 o=(t=t||ThriveGlobal.$j("body")).find(".tve_social_items.tve_social_custom");if(o.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),o.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 o=e.prev(".tve_s_share_count"),r=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===r.length)return r.removeClass("tve_count_loading"),o.remove(),void e.parent().removeAttr("data-counts");n.for[t]=i}}),!n.for.length)return null;TCB_Front.total_share_counts={};var r=function(n){n&&n.counts&&n.totals&&o.each(function(t){var e=ThriveGlobal.$j(this),i=e.prev(".tve_s_share_count"),o=e.children(".tve_s_item");if(ThriveGlobal.$j.each(n.counts[t],function(t,e){o.filter(".tve_s_"+t).find(".tve_s_count").html(e.formatted)}),o.removeClass("tve_count_loading"),n.totals&&n.totals[t]&&"1"===e.parent().attr("data-counts")){var r=parseInt(e.parent().attr("data-min_shares"));r=isNaN(r)?0:r,i.find(".tve_s_cnt").html(n.totals[t].formatted),r<n.totals[t].value?i.css("display","inline-block"):i.css("display","none")}n.totals&&n.totals[t]&&(TCB_Front.total_share_counts[o.attr("data-href")]=n.totals[t])})};if(void 0!==i&&i)return[n,r];ThriveGlobal.$j.ajax({type:"post",xhrFields:{withCredentials:!0},url:tve_frontend_options.ajaxurl,data:n,dataType:"json"}).done(r)}},playBackgroundYoutube:function(t){if(t.length){var e=this;void 0!==window.YT&&window.YT.Player?this._playYTBackground(t):(window.onYouTubeIframeAPIReady=function(){e._playYTBackground(t)},ThriveGlobal.$j.ajax({url:"https://www.youtube.com/iframe_api",type:"get",crossDomain:!0,cache:!0,dataType:"script"}))}},_playYTBackground:function(t){t.each(function(){var t,e=this.getAttribute("data-yt-id");t=34===e.length?new YT.Player(this.id,{playerVars:{autoplay:1,cc_load_policy:0,controls:0,disablekb:1,fs:0,iv_load_policy:0,modestbranding:1,loop:1,playsinline:1,rel:0,showinfo:0,listType:"playlist",list:e},events:{onReady:function(t){t.target.mute()},onStateChange:function(t){t.target.mute()}}}):new YT.Player(this.id,{videoId:e,playerVars:{autoplay:1,cc_load_policy:0,controls:0,disablekb:1,fs:0,iv_load_policy:0,modestbranding:1,loop:1,playsinline:1,rel:0,showinfo:0,playlist:e},events:{onReady:function(t){t.target.mute(),t.target.playVideo()},onStateChange:function(t){t.target&&t.target.mute&&t.target.mute()}}}),ThriveGlobal.$j(t.getIframe()).data("tcb-yt-player",t)})},refreshBackgroundYoutube:function(){if(window.YT&&window.YT.Player){var e=this;ThriveGlobal.$j("iframe.tcb-yt-bg").each(function(){var t=ThriveGlobal.$j(this);t.data("tcb-yt-player")||e._playYTBackground(t)})}},remove_empty_symbols:function(t){t.find("div.thrv_symbol").each(function(){var t=jQuery(this),e=t.clone();t.closest(".tve-symbol-container").length||(e.find(".thrive-shortcode-config").remove(),""===e.html()&&jQuery(this).remove())})},toast:function(t,e,i){e||(e=!1);var o="thrv-icon-checkmark",r="";e&&(o="thrv-icon-cross",r=" tve-toast-error"),jQuery("body").slideDown("fast",function(){jQuery("body").prepend('<div class="tvd-toast tve-fe-message"><div class="tve-toast-message"><div class="tve-toast-icon-container'+r+'"><span class="tve_tick '+o+'"></span></div><div class="tve-toast-message-container">'+t+"</div></div></div>")}),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&&0<t.height()&&(t.height()<=document.documentElement.clientHeight?(e.css({position:"absolute",top:document.documentElement.clientHeight-e.height(),"padding-bottom":0}),t.css("overflow-x","visible")):e.css({position:"",top:""}))}},header_styling:function(t){},init_scroll:i("./events/scroll"),initResize:i("./events/resize"),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<i.data("via").length&&(e+="&via="+i.data("via")),e}})},TVE_jQFn.tve_pricing_table=function(){function e(t){t.stopPropagation(),t.preventDefault();var e=ThriveGlobal.$j(this),i=e.closest(".thrv-pricing-table");i.find(".tcb-active-state").removeClass("tcb-active-state"),i.find(".tcb-pricing-table-box-container").addClass("tcb-permanently-hidden"),e.addClass("tcb-active-state"),i.find('.tcb-pricing-table-box-container[data-instance="'+e.attr("data-instance")+'"]').removeClass("tcb-permanently-hidden")}return this.each(function(){var t=ThriveGlobal.$j(this);t.find(".thrv-button-group").off("click.thrv-button-group-item").on("click.thrv-button-group-item",".thrv-button-group-item",e),t.find('.thrv-button-group-item[data-default="true"]').click()})},TVE_jQFn.tve_front_lead_generation=function(){return window.TCB_PAGE_INDEX=window.TCB_PAGE_INDEX||1,this.each(function(){var t=ThriveGlobal.$j(this),_=t.find("form"),e=_.find(".tve-f-a-hidden").val();if(0==_.length&&(t.find(".thrv_lead_generation_container").wrapInner('<form method="post"></form>'),_=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('<div id="tve-lg-error-container"></div>').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('<div class="tve-lg-err-item tve-lg-ext-err">'+t+"</div>"),this},_markError:function(t,e,i){t&&t.addClass(this.errClass),"required"===i&&this.container.find(".tve-lg-required").length||this.container.append('<div class="tve-lg-err-item tve-lg-'+i+'">'+e+"</div>")},show:function(){this.container.append('<a href="javascript:void(0)" class="tve-lg-err-close" title="Close"><span class="thrv-icon thrv-icon-cross"></span></a>');var r=this;setTimeout(function(){var t=_.offset(),e=parseInt(_.css("margin-top")),i=parseInt(_.css("margin-left")),o=t.top-10-r.container.outerHeight(!0)-(isNaN(e)?0:e);_.parents(".thrv-ribbon").length&&("bottom"==_.parents(".tve-leads-ribbon").attr("data-position")?o+=7:o=t.top+_.outerHeight()),r.container.css({top:o+"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<ThriveGlobal.$j.trim(t.val()).length)||(this._markError(t,e,"required"),!1)},password:function(t,e){var i=!0;return t.val()||1!==t.data("required")||(i=!1),!!i||(this._markError(t,e,"password"),!1)},mismatch:function(t,e){var i=!0;return t.password!=t.confirm_password&&(i=!1),!!i||(this._markError("",e,"passwordmismatch"),!1)},email:function(t,e){return!!/^(([^<>()\[\]\\.,;:\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),o=_.find("#_form_type").val(),r=_.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"==o&&(_.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]",r),jQuery("body").slideDown("fast",function(){jQuery("body").prepend('<div class="tvd-toast tve-fe-message"><div class="tve-toast-message"><div class="tve-toast-icon-container"><span class="tve_tick thrv-icon-checkmark"></span></div><div class="tve-toast-message-container">'+i.success+"</div></div></div>")}),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('<div class="tve-error-wrapper"><div class="tve-error-content"></div><button class="tve-close-error-message">Retry</button></div>'),i.error=i.error.replace("[lead_email]",n),i.error=i.error.replace("[lead_name]",r),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 r=!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"),o=t.data("iphone-placeholder");""!==o&&t.val()===o&&t.val(""),"password"==t.attr("type")&&(n[t.attr("name")]=t.val()),1===i&&(d.required(t,c.required)||(r=!1)),void 0!==e&&"none"!==e&&d[e]&&(d[e](t,c[e])||(r=!1))}),0<i.find("#g-recaptcha-response").length&&""==i.find('textarea[name="g-recaptcha-response"]').first().val()&&(d.markApiError("Please validate captcha form"),r=!1),2==Object.keys(n).length&&(d.mismatch(n,c.passwordmismatch)||(r=!1)),!r)return d.show(),_.find("."+d.errClass).first().focus(),!1;if(_.tve_form_loading(),"api"==_.parents(".thrv_lead_generation").attr("data-connection")){var o=_.serialize()+"&action=tve_api_form_submit&url="+encodeURIComponent(location.href),u=_.find("#_submit_option").val(),a=ThriveGlobal.$j.Event("form_conversion.tcb");_.trigger(a);var v=_.find("#_autofill").val();if(v)var p=_.find("input").not("input[type=hidden]").not("input[type=password]").serializeArray();return a.post_data&&(o+="&"+ThriveGlobal.$j.param(a.post_data)),tve_frontend_options.post_id&&(o+="&post_id="+tve_frontend_options.post_id),ThriveGlobal.$j.ajax({type:"post",xhrFields:{withCredentials:!0},url:tve_frontend_options.ajaxurl,data:o}).fail(function(){d.markApiError("An error occurred while submitting your data. Please try again").show(),_.tve_form_loading(!0)}).done(function(t){try{var e=(t=ThriveGlobal.$j.parseJSON(t)).form_messages||{},i="";if(t.redirect&&(i=t.redirect,delete t.redirect),delete t.form_messages,t.variation&&(t.variation,delete t.variation),t.back_url){var o=t.back_url;delete t.back_url}var r=0<Object.keys(t).length&&!t.error;if(t.error)return void m(r,e)}catch(t){console.log(t)}var n=ThriveGlobal.$j.Event("lead_conversion_success.tcb");if(_.trigger(n),n.content_unlocked&&"message"!==u&&"state"!==u)return!1;var a=_.find("#_error_message_option").val();if(u&&("reload"!==u||!r&&1==a)){if("redirect"===u){var s=_.find("#_back_url").val();if(s=tve_add_http(s),v&&p&&!function(t){function e(t){return t.replace("http://","").replace("https://","").split("/")[0]}return e(location.href)!==e(t)}(s)&&TCB_Front.setCookie("account_create_fields",JSON.stringify(p),{path:"/"}),s&&TCB_Front.isValidUrl(s)&&(r||1!=a))return void(location.href=s)}else{if("state"===u&&r){var l=TL_Front.parent_state,c=_.find(".tve-switch-state-trigger"),d=-1!==c.attr("data-tcb-events").indexOf("tl_state_lightbox"),h=0<_.parents(".tve_post_lightbox").length;if(c.trigger("click"),d)if(h)l&&(TL_Front.close_form(l),delete TL_Front.parent_state);else{var f=ThriveGlobal.$j.Event("leads_messages.tcb");f.lightbox_state=!0,_.trigger(f),_.tve_form_loading(!0)}return void(TL_Front.parent_state&&(_.parents(".tl-style").first().find(".tve_p_lb_close").trigger("click"),delete TL_Front.parent_state))}if("klicktipp-redirect"==u&&r){if(i&&TCB_Front.isValidUrl(i))return void(location.href=i)}else if("page"==u&&r&&o&&TCB_Front.isValidUrl(o))return void(location.href=o)}return ThriveGlobal.$j(".tve_p_lb_background.tve_lb_open .tve_p_lb_close").click(),m(r,e),jQuery(".tve_lead_generated_inputs_container").parent()[0].reset(),!0}location.reload()}),t.stopPropagation(),t.preventDefault(),!1}var s,l=ThriveGlobal.$j.Event("should_submit_form.tcb");return _.trigger(l),"1"!==_.find("input#_asset_option").val()&&!l.flag_need_data||(o=_.serialize()+"&action=tve_custom_form_submit&email="+function(t){if(t.find('[data-validation="email"]').length)return t.find('[data-validation="email"]').val();var e="";return t.find("input").each(function(){if(this.name&&this.name.match(/email/i))return e=this.value,!1}),e}(_)+"&name="+(s=!1,_.find("input").each(function(){var t=ThriveGlobal.$j(this),e=t.attr("placeholder"),i=t.attr("name");if(e&&-1!==e.toLowerCase().indexOf("name")||i&&-1!==i.toLowerCase().indexOf("name"))return s=t,!1}),!1!==s?s.val():""),a=ThriveGlobal.$j.Event("form_conversion.tcb"),_.trigger(a),a.post_data&&(o+="&"+ThriveGlobal.$j.param(a.post_data)),tve_frontend_options.post_id&&(o+="&post_id="+tve_frontend_options.post_id),ThriveGlobal.$j.ajax({type:"post",xhrFields:{withCredentials:!0},url:tve_frontend_options.ajaxurl,data:o}).always(function(t){_.find("input,select,textarea").removeAttr("disabled"),_.data("tve-force-submit",!0).submit()}),t.stopPropagation(),!1)})}()})},TVE_jQFn.tve_form_loading=function(t){var e=this.find("button[type=submit]").parent(),i=this.find(".tcb-form-loader");return void 0!==t&&t?(i.fadeOut(),this.find("input,select,textarea").removeAttr("disabled"),e.find("button").fadeIn(),e.find(".thrv_icon").fadeIn()):(i.length||(i=ThriveGlobal.$j('<div class="tcb-form-loader"><span class="tcb-form-loader-icon thrv-icon-spinner9"></span></div>').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,r=ThriveGlobal.$j(this),e=new Date,i=new Date(r.attr("data-date")+"T"+r.attr("data-hour")+":"+r.attr("data-min")+":"+(r.attr("data-sec")||"00")+r.attr("data-timezone")),n=0,a=0,s=0,l=0,c=2,o=r.attr("data-text"),d=r.hasClass("thrv-countdown_timer_evergreen")||r.hasClass("tve_countdown_timer_evergreen"),h=r.attr("data-norestart"),f=parseInt(r.attr("data-day")),u=parseInt(r.attr("data-hour")),v=parseInt(r.attr("data-min")),p=parseInt(r.attr("data-sec"));if(r.data("tcb_timer_done"))return this;if(r.data("tcb_timer_done",!0),d){i=new Date;var _=TCB_Front.getCookie(r.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*f*3600*1e3+3600*u*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(r.attr("data-expday"))),b=w.setHours(i.getHours()+parseInt(r.attr("data-exphour"))),b=new Date(b)}TCB_Front.setCookie(r.attr("data-id"),g,{expires:b})}}function T(){setTimeout(function(){r.find(".tve_t_day .t-digits").css("min-width",r.find(".tve_t_sec .t-digits > span").outerWidth()*c+"px")},10)}r.parents(".thrv_content_reveal").on("tve-content-revealed",T),r.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 o=0;if(e<=99)y(t.find(".part-1").first(),e%10),y(t.find(".part-2").first(),Math.floor(e/10)),o=2;else for(;e;)o++,y(t.find(".part-"+o).first(),e%10),e=Math.floor(e/10);if(!1!==i&&o<i)for(var r=o+1;r<=i;r++)y(t.find(".part-"+r).first(),0)},j=function(){r.addClass("tve_cd_expired"),r.find(".t-digits span").html("0"),o&&(r.find(".tve_t_part").addClass("ct_finished"),r.find(".tve_t_text").html(o).fadeIn(200));var t=ThriveGlobal.$j.Event("tve.countdown-finished");r.trigger(t),setTimeout(function(){r.find(".t-digits span:not(.ct-d-placeholder)").hide()},100)},$=function(){e=new Date,l=Math.floor((i.getTime()-e.getTime())/1e3),s=Math.floor(l/60),l%=60,a=Math.floor(s/60),s%=60,n=Math.floor(a/24),a%=24,99<n&&(c=n.toString().length)};!d&&i<=e?j():($(),function(){var t=function(t,e){return ThriveGlobal.$j('<span class="part-p ct-d-placeholder">&nbsp;</span><span class="part-'+t+'">'+e+"</span>")};r.find(".tve_t_sec .t-digits").empty().append(t(2,Math.floor(l/10))).append(t(1,l%10)),r.find(".tve_t_min .t-digits").empty().append(t(2,Math.floor(s/10))).append(t(1,s%10)),r.find(".tve_t_hour .t-digits").empty().append(t(2,Math.floor(a/10))).append(t(1,a%10));for(var e=r.find(".tve_t_day .t-digits").empty(),i=n,o=1;o<=c;o++)e.append(t(o,i%10)),i=Math.floor(i/10);e.css("min-width","")}(),r.addClass("init_done"),t=setInterval(function(){$(),C(r.find(".tve_t_sec .t-digits"),l),C(r.find(".tve_t_min .t-digits"),s),C(r.find(".tve_t_hour .t-digits"),a),C(r.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");"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(),o=e.find("> .tve_scTC").eq(i.index()),r=e.find("> ul .tve_tS"),n=r.attr("data-tve-custom-colour"),a=i.attr("data-tve-custom-colour");i.attr("data-tve-custom-colour",void 0!==n&&!1!==n?n:""),r.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"),o.show(),TCB_Front.postGridLayout(),o.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(o),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).closest(".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"),t.find(".tve_toggle").first().removeClass("tve_toggle_open"),t.find("h4").first().removeClass("tve_toggle_open_text")):(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"),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.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 r=!1;if(tve_frontend_options.is_editor_page&&(t.on("click",".tve_w_menu li a",function(t){var e,i=ThriveGlobal.$j(this),o=i.closest(".tve_w_menu");if(!r)return t.preventDefault(),t.stopPropagation(),0!==(e=o.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"),(o.hasClass("tve_vertical")||i.closest(".thrive-shortcode-html").find(".tve-m-trigger").is(":visible"))&&i.parent("li").toggleClass("expand-children"),r=!0,ThriveGlobal.$j(this).trigger("click"),!1;r=!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){var n=function(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")},e=function(){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"),o=i.parent().find("> ul");return n(i,o),!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),e=t.parent().find("> ul");return n(t,e),!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,o){TVE_Event_Manager_Registered_Callbacks[o.a]&&TCB_Front.$document.on("tve-page-event-"+o.t,function(t,e){var i=!0;return"timer"===o.t&&e&&o.config&&o.config.t_delay!==e&&(i=!1),!!i&&TVE_Event_Manager_Registered_Callbacks[o.a].call(document,o.t,o.a,o.config?o.config:{})})})),TCB_Front.addResizeCallback(TCB_Front.postGridLayout).addResizeCallback(e),e()}function i(){ThriveGlobal.$j(".thrv_widget_menu").each(function(){var t,e=ThriveGlobal.$j(this),i=e.attr("data-tve-switch-icon"),o=e.attr("data-tve-allhoriz");i||o||(i="tablet,mobile"),e.removeClass(function(t,e){return(e.match(/(^|\s)tve-custom-menu-switch-icon-\S+/g)||[]).join(" ")}),t=i.split(","),1023<TCB_Front.$window.width()?-1!==t.indexOf("desktop")&&e.addClass("tve-custom-menu-switch-icon-desktop"):767<TCB_Front.$window.width()?-1!==t.indexOf("tablet")&&e.addClass("tve-custom-menu-switch-icon-tablet"):-1!==t.indexOf("mobile")&&e.addClass("tve-custom-menu-switch-icon-mobile")})}i(),TCB_Front.addResizeCallback(i),TCB_Front.onDOMReady(),"undefined"==typeof ThriveApp&&(TCB_Front.pageSectionHeight(),TCB_Front.addResizeCallback(TCB_Front.pageSectionHeight)),TCB_Front.addResizeCallback(TCB_Front.resizePageSection),TCB_Front.tableSort(ThriveGlobal.$j(".tve_make_sortable tr:last-child th"))})})),TVE_jQFn.tve_contact_form=function(){var i="tcb-cf-error";function s(t,e){this.default_response={success:!0,data:{errors:["Something went wrong. Please try again later!"]}},this.$form=t,this.config=e,this.validator=new r(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[this.config.submit.action+"_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 o(){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 r(e,t){var r=ThriveGlobal.$j.extend({},t.error_messages||{}),n=new o;function a(t){return"required"===t.getAttribute("required")}this.validate_text_field=function(t){var e=!0,i=t.value.trim();return a(t)&&i.length<=0&&(e=!1,n.add({input:t,error:r.required})),e},this.validate_email_field=function(t){var e=!0,i=t.value.trim();return a(t)&&i.length<=0&&(e=!1,n.add({input:t,error:r.required})),e&&0<i.length&&!tve_is_email(i)&&(e=!1,n.add({input:t,error:r.email})),e},this.validate_textarea_field=function(t){var e=!0,i=t.value.trim();return"g-recaptcha-response"===t.name?this.validate_recaptcha(t):(a(t)&&i.length<=0&&(e=!1,n.add({input:t,error:r.required})),e)},this.validate_recaptcha=function(t){var e=!0;return t.value.trim().length<=0&&(e=!1,n.add({input:t,error:r.required})),e},this.validate_tel_field=function(t){var e,i=!0,o=t.value.trim();return a(t)&&o.length<=0&&(i=!1,n.add({input:t,error:r.required})),i&&0<o.length&&!((e=o).match(/\d/)&&e.length<=15)&&(i=!1,n.add({input:t,error:r.phone})),i},this.validate_url_field=function(t){var e,i=!0,o=t.value.trim();return a(t)&&o.length<=0&&(i=!1,n.add({input:t,error:r.required})),i&&0<o.length&&(e=o,!(e=tve_add_http(e)).match(/https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#?&=]*)/g))&&(i=!1,n.add({input:t,error:r.url})),i},this.validation_exists=function(t){return"function"==typeof this[t]},this.is_field_valid=function(t){var e=!0,i="validate_"+t.type+"_field";if(this.validation_exists(i))try{e=this[i](t)}catch(t){console.error(t),e=!1}return e},this.is_valid=function(){var t=this;return e.find("input, select, textarea").each(function(){t.is_field_valid(this)}),0===n.length},this.display_errors=function(){n.display_errors()}}function n(t){t.stopPropagation(),t.preventDefault();var e=ThriveGlobal.$j(this),i=e.find('input[name="config"]').val();if(!i)return!1;var o,r=new s(e,(o=i,tve_unserialize(TCB_Front.Base64.decode(o))));try{if(!r.validator.is_valid())return console.log("form invalid"),r.validator.display_errors(),!1;console.log("valid form; continue by sending ajax")}catch(t){console.error(t)}e.find("button").attr("disabled","disabled");var n=e.serializeArray(),a="object"===("undefined"==typeof tve_frontend_options?"undefined":_typeof(tve_frontend_options))?tve_frontend_options.post_id:0;return n.push({name:"action",value:"tve_cf_submit"}),n.push({name:"post_id",value:a}),n.push({name:"security",value:JSON.stringify({check:1,has_recaptcha:e.find(".g-recaptcha").length})}),ThriveGlobal.$j.ajax({type:"post",xhrFields:{withCredentials:!0},url:tve_frontend_options.ajaxurl,data:n}).fail(ThriveGlobal.$j.proxy(r.fail,r)).done(ThriveGlobal.$j.proxy(r.done,r)),!0}function a(t){var e=t.currentTarget;e.classList.contains(i)&&(e.nextSibling.remove(),e.classList.remove(i))}function l(){this.placeholder=""}function c(){this.placeholder=this.getAttribute("data-placeholder")}return this.each(function(){var t,e=ThriveGlobal.$j(this);(t=e.find("form").first()).is("form")&&(t.find(".tve-cf-submit .thrv_icon").click(function(){t.find("button").trigger("click")}),t.off("submit").on("submit",n),t.find(['input[type="text"]','input[type="email"]','input[type="tel"]','input[type="url"]',"textarea"].join(",")).on("input",a).on("focus",l).on("blur",c))})},window.tve_add_http=function(t){return!(t=t.trim())||0===t.indexOf("#")||/^mailto/.test(t)||/^tel/.test(t)||/^(?:f|ht)tps?\:\/\//.test(t)||(t="http://"+t),t},window.tve_is_email=function(t){return/^(([^<>()\[\]\\.,;:\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 r="undefined"!=typeof window?window:global,a=function(t){for(var e=t.length,i=t.length-1;0<=i;i--){var o=t.charCodeAt(i);127<o&&o<=2047?e++:2047<o&&o<=65535&&(e+=2),56320<=o&&o<=57343&&i--}return e-1},C=function(t,e,i,o){throw new r[t](e,i,o)},j=function(t,e,i){for(var o=2,r=[],n=t.slice(e,e+1);n!==i;)o+e>t.length&&C("Error","Invalid"),r.push(n),n=t.slice(e+(o-1),e+o),o+=1;return[r.length,r.join("")]},$=function(t,e,i){var o,r,n=[];for(o=0;o<i;o++)r=t.slice(e+(o-1),e+o),n.push(r),i-=a(r);return[n.length,n.join("")]};return function t(e,i){var o,r,n,a,s,l,c,d,h,f,u,v,p,_,m,g,b,w,T=0,y=function(t){return t};switch(i||(i=0),r=i+2,o=e.slice(i,i+1).toLowerCase()){case"i":y=function(t){return parseInt(t,10)},T=(h=j(e,r,";"))[0],d=h[1],r+=T+1;break;case"b":y=function(t){return 0!==parseInt(t,10)},T=(h=j(e,r,";"))[0],d=h[1],r+=T+1;break;case"d":y=function(t){return parseFloat(t)},T=(h=j(e,r,";"))[0],d=h[1],r+=T+1;break;case"n":d=null;break;case"s":T=(f=j(e,r,":"))[0],u=f[1],T=(h=$(e,(r+=T+2)+1,parseInt(u,10)))[0],d=h[1],r+=T+2,T!==parseInt(u,10)&&T!==d.length&&C("SyntaxError","String length mismatch");break;case"a":for(d={},T=(n=j(e,r,":"))[0],a=n[1],r+=T+2,l=parseInt(a,10),s=!0,v=0;v<l;v++)m=(_=t(e,r))[1],p=_[2],b=(g=t(e,r+=m))[1],w=g[2],r+=b,p!==v&&(s=!1),d[p]=w;if(s){for(c=new Array(l),v=0;v<l;v++)c[v]=d[v];d=c}r+=1;break;default:C("SyntaxError","Unknown / Unhandled data type(s): "+o)}return[o,r-i,y(d)]}(t+"",0)[2]},TCB_Front.Base64={_keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",encode:function(t){var e,i,o,r,n,a,s,l="",c=0;for(t=this._utf8_encode(t);c<t.length;)r=(e=t.charCodeAt(c++))>>2,n=(3&e)<<4|(i=t.charCodeAt(c++))>>4,a=(15&i)<<2|(o=t.charCodeAt(c++))>>6,s=63&o,isNaN(i)?a=s=64:isNaN(o)&&(s=64),l=l+this._keyStr.charAt(r)+this._keyStr.charAt(n)+this._keyStr.charAt(a)+this._keyStr.charAt(s);return l},decode:function(t){var e,i,o,r,n,a,s="",l=0;for(t=t.replace(/[^A-Za-z0-9\+\/\=]/g,"");l<t.length;)e=this._keyStr.indexOf(t.charAt(l++))<<2|(r=this._keyStr.indexOf(t.charAt(l++)))>>4,i=(15&r)<<4|(n=this._keyStr.indexOf(t.charAt(l++)))>>2,o=(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(o));return s=this._utf8_decode(s)},_utf8_encode:function(t){t=t.replace(/\r\n/g,"\n");for(var e="",i=0;i<t.length;i++){var o=t.charCodeAt(i);o<128?e+=String.fromCharCode(o):(127<o&&o<2048?e+=String.fromCharCode(o>>6|192):(e+=String.fromCharCode(o>>12|224),e+=String.fromCharCode(o>>6&63|128)),e+=String.fromCharCode(63&o|128))}return e},_utf8_decode:function(t){for(var e="",i=0,o=0,r=0,n=0;i<t.length;)(o=t.charCodeAt(i))<128?(e+=String.fromCharCode(o),i++):191<o&&o<224?(r=t.charCodeAt(i+1),e+=String.fromCharCode((31&o)<<6|63&r),i+=2):(r=t.charCodeAt(i+1),n=t.charCodeAt(i+2),e+=String.fromCharCode((15&o)<<12|(63&r)<<6|63&n),i+=3);return e}},i("./typed")},"typed.js":function(t,e,i){var l,r;l=window.jQuery,(r=function(t,e){this.el=l(t),this.options=l.extend({},l.fn.typed.defaults,e),this.isInput=this.el.is("input"),this.attr=this.options.attr,this.showCursor=!this.isInput&&this.options.showCursor,this.elContent=this.attr?this.el.attr(this.attr):this.el.text(),this.contentType=this.options.contentType,this.typeSpeed=this.options.typeSpeed,this.startDelay=this.options.startDelay,this.backSpeed=this.options.backSpeed,this.backDelay=this.options.backDelay,this.stringsElement=this.options.stringsElement,this.strings=this.options.strings,this.strPos=0,this.arrayPos=0,this.stopNum=0,this.loop=this.options.loop,this.loopCount=this.options.loopCount,this.curLoop=0,this.stop=!1,this.cursorChar=this.options.cursorChar,this.shuffle=this.options.shuffle,this.sequence=[],this.build()}).prototype={constructor:r,init:function(e){void 0===e&&(e="delete");var i=this;function t(){for(var t=0;t<i.strings.length;++t)i.sequence[t]=t;i.shuffle&&(i.sequence=i.shuffleArray(i.sequence)),"delete"===e?(i.strPos=i.strings[i.sequence[i.arrayPos]].length,i.options.highlightClass?i.highlight(i.strings[i.sequence[i.arrayPos]],i.strPos):i.backspace(i.strings[i.sequence[i.arrayPos]],i.strPos)):(i.strPos=0,i.typewrite(i.strings[i.sequence[i.arrayPos]],i.strPos))}"delete"===e?i.timeout=setTimeout(t,i.startDelay):t()},build:function(){var i=this;if(!0===this.showCursor&&(this.cursor=l('<span class="typed-cursor">'+this.cursorChar+"</span>"),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 o=n.substr(a).charAt(0);if("<"===o||"&"===o){var r="";for(r="<"===o?">":";";n.substr(a).charAt(0)!==r;)n.substr(a).charAt(0),a++;a++}}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,o){if(!0!==this.stop){var t=this.backSpeed,r=this;l(r.el),l("<span/>"),r.timeout=setTimeout(function(){if("html"===r.contentType&&">"===i.substr(o).charAt(0)){for(;"<"!==i.substr(o).charAt(0);)i.substr(o).charAt(0),o--;o--}var t=i.substr(0,o),e=i.substr(o);r.attr?r.el.attr(r.attr,t):r.el.html(t+'<span class="'+r.options.highlightClass+'" style="'+(r.options.highlightStyle||"")+'">'+e+"</span>"),o>r.stopNum?(o--,r.highlight(i,o)):o<=r.stopNum&&setTimeout(function(){r.arrayPos++,r.arrayPos===r.strings.length?(r.arrayPos=0,r.init("write")):r.typewrite(r.strings[r.sequence[r.arrayPos]],o)},200)},t)}},backspace:function(e,i){if(!0!==this.stop){var t=this.backSpeed,o=this,r=l(o.el);o.timeout=setTimeout(function(){if("html"===o.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);o.attr?o.el.attr(o.attr,t):o.isInput?o.el.val(t):"html"===o.contentType?o.el.html(t):o.el.text(t),i>o.stopNum?(i--,o.backspace(e,i)):i<=o.stopNum&&(o.arrayPos++,o.arrayPos===o.strings.length?(o.arrayPos=0,o.shuffle&&(o.sequence=o.shuffleArray(o.sequence)),o.init("write")):o.typewrite(o.strings[o.sequence[o.arrayPos]],i),o.options.highlightClass&&r.is("."+o.options.highlightClass)&&r.removeClass(o.options.highlightClass))},t)}},shuffleArray:function(t){var e,i,o=t.length;if(o)for(;--o;)e=t[i=Math.floor(Math.random()*(o+1))],t[i]=t[o],t[o]=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('<span id="'+t+'"/>'),this.el.remove(),void 0!==this.cursor&&this.cursor.remove(),this.options.resetCallback()}},l.fn.typed=function(o){return this.each(function(){var t=l(this),e=t.data("typed"),i="object"==(void 0===o?"undefined":_typeof(o))&&o;e||t.data("typed",e=new r(this,i)),"string"==typeof o&&e[o]()})},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){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,m,e){!function(r,o){var n={boxSizing:"",marginTop:"",marginLeft:"",height:"",top:"",bottom:"",position:"",opacity:"",minWidth:""},t=function(e,i){var o=void 0;return function(){clearTimeout(o);var t=!o||v;o=setTimeout(function(){o=null},i),t&&e.apply(this,arguments)}},a=t(function(t,e){t.stop().animate(e,200)},200),s=r(),l=void 0,c=void 0,d=void 0,h=void 0,f=void 0,u=void 0,v=!1,p={};function i(t){return Math.min(c.top+t-l.data("append-target").offset().top,l.data("append-target").outerHeight()-l.outerHeight())}function e(t,e,i){v=i,s.each(function(){l=r(this),c=l.data("scroll_config"),d="tve-sticky-"+c.end,h=this.classList.contains(d),f=l.data("clone-sticky"),function(){if(!c.disabled||!c.disabled.length)return!0;var t=o.$window.width();return t<=767?-1===c.disabled.indexOf("mobile"):t<=1023?-1===c.disabled.indexOf("tablet"):-1===c.disabled.indexOf("desktop")}()?(h||(l.data("$$offset",l.offset()),l.data("$$position",l.position()),l.data("$$scroll",t),"element"===c.end&&l.data("$$stop-offset",l.data("stop-target").offset()||{top:1e6})),u=l.data("$$offset"),p["on_scroll_"+e+"_"+c.end].call(p,t)):p.on_scroll_up_default(t,!0)})}p.on_scroll_down_default=function(t,e){var i=0,o=(e=e||{}).position||"fixed";"appear"===c.mode&&(e.top=-l.outerHeight(),i=-e.top),h?"appear"===c.mode&&a(l,e):t+c.top>u.top+i&&((f=l.data("clone-sticky"))||(f=r('<div class="thrv_wrapper"></div>').css({boxSizing:"border-box",padding:0,width:l.outerWidth(),height:l.outerHeight(),marginTop:l.css("margin-top"),marginBottom:l.css("margin-bottom"),marginLeft:l.css("margin-left"),marginRight:l.css("margin-right"),position:l.css("position")}),l.data("clone-sticky",f)),l.addClass(d),delete e.position,l.data("saved_props",{offset:u,width:l[0].style.width||"",left:l[0].style.left||""}),l.css(r.extend({width:l.width(),height:l.height(),top:c.top+"px",left:u.left+"px"},e)),l.before(f),l[0].style.setProperty("margin-top","0px","important"),l[0].style.setProperty("margin-left","0px","important"),l[0].style.setProperty("min-width","0","important"),l[0].style.setProperty("position",o,"important"),l[0].style.setProperty("box-sizing","content-box","important"),h=!0,l.appendTo(l.data("append-target")))},p.on_scroll_up_default=function(t,e){if(f&&h){(e=!!e)||"appear"!==c.mode||a(l,{top:c.top});var i=f.offset().top||l.data("saved_props").offset.top;(e||t+c.top<=i)&&(h=!1,l.removeClass(d).stop().css(Object.assign({},n,l.data("saved_props"))),document.contains(f[0])&&f.before(l),f.detach())}},p.on_scroll_down_parent=function(t){var e=i(t);h?l.css({top:e}):p.on_scroll_down_default(t,{position:"absolute",left:u.left-l.data("append-target").offset().left,top:e})},p.on_scroll_up_parent=function(t){p.on_scroll_up_default(t),h&&l.css("top",i(t))},p.on_scroll_down_element=function(t){var e={top:Math.min(c.top,l.data("$$stop-offset").top-t-l.outerHeight())};h?l.css("top",e.top):p.on_scroll_down_default(t,e)},p.on_scroll_up_element=function(t){p.on_scroll_up_default(t),h&&l.css("top",Math.min(c.top,l.data("$$stop-offset").top-t-l.outerHeight()))};var _=t(function(){p.on_scroll_up_default(0,!0),e(o.$document.scrollTop(),"down",!0)},50);m.exports=function(t){t.find("[data-tve-scroll]").each(function(){try{var t=JSON.parse(this.dataset.tveScroll),e=r(this);e.hasClass("thrive-shortcode-html")&&(e=e.parent()),t.top=parseInt(t.top||"0")+o.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,.theme-section")}}(e,t.end)),"element"===t.end&&e.data("stop-target",r("#"+(t.el_id&&t.el_id.replace("#","")||"some-not-found-id"))),delete this.dataset.tveScroll,s=s.add(e)}catch(t){console.error(t)}}),o.add_scroll_callback(e),o.addResizeCallback(_)}}(ThriveGlobal.$j,TCB_Front)},"typefocus.js":function(t,i,e){!function(r,o){function e(i){try{n.each(function(){var t=r(this),e=o.$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=r();i.exports=function(t){n=n.add(t.find(".tve_typefocus")),setTimeout(function(){try{n.each(function(){var t=r(this),e=[],i=parseInt(t.attr("data-speed")),o=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"))&&o?"background-color:"+o:"",backDelay:i,contentType:"text",startDelay:800,showCursor:t.hasClass("tve_typefocus_cursor")}))})}catch(t){console.log(t)}},1e3),o.add_scroll_callback(e)}}(ThriveGlobal.$j,TCB_Front)}}}}}}})("workspace/editor/js/frontend/thrive_content_builder_frontend");