/*! jQuery v@1.8.1 jquery.com | jquery.org/license */
function ouibounce(e,t){function n(e,t){return void 0===e?t:e}function a(e){var t=24*e*60*60*1e3,n=new Date;return n.setTime(n.getTime()+t),"; expires="+n.toGMTString()}function o(){g.addEventListener("mouseleave",i),g.addEventListener("keydown",r)}function i(e){e.clientY>d||l("viewedOuibounceModal","true")&&!c||(s(),p())}function r(e){b||l("viewedOuibounceModal","true")&&!c||e.metaKey&&76==e.keyCode&&(b=!0,s(),p())}function l(e,t){return document.cookie.split("; ").reduce(function(e,t){var n=t.split("=");return e[n[0]]=n[1],e},{})[e]===t}function s(){e&&(e.style.display="block"),u()}function u(e){"undefined"!=typeof(e=e||{}).cookieExpire&&(m=a(e.cookieExpire)),!0===e.sitewide&&(f=";path=/"),"undefined"!=typeof e.cookieDomain&&(h=";domain="+e.cookieDomain),document.cookie="viewedOuibounceModal=true"+m+h+f,g.removeEventListener("mouseleave",i),g.removeEventListener("keydown",r)}var c=(t=t||{}).aggressive||!1,d=n(t.sensitivity,20),_=n(t.timer,1e3),p=t.callback||function(){},m=a(t.cookieExpire)||"",h=t.cookieDomain?";domain="+t.cookieDomain:"",f=!0===t.sitewide?";path=/":"",g=document.getElementsByTagName("html")[0];setTimeout(o,_);var b=!1;return{fire:s,disable:u}}function CFbuildAudioPlayer(e,t){try{e.each(function(){var e=$(this),n=e.attr("data-audio-url")||"",a=e.attr("data-audio-controls")||"yes",o=e.attr("data-audio-loop")||"no",i=t&&e.attr("data-audio-autoplay")||"no",r={src:n,"class":"elAudioElement"};r.controls="no"!=a,r.loop="yes"==o,r.autoplay="yes"==i;var l=["playpause","current","progress","duration","volume"];r.controls||(l=["progress","volume"]);var s={audioWidth:"100%",audioHeight:"100%",enableAutosize:!0,enableProgressTooltip:!1,enableKeyboard:r.controls,features:l,loop:r.loop};r.autoplay&&(s.success=function(e){e.play()});e.find("audio").mediaelementplayer(s)})}catch(n){console.log(n)}}function evsfix(){$("iframe[src^='http://player.vimeo.com'], iframe[src^='http://www.youtube.com'], object, embed").each(function(){try{var e;if(el=this,h=el.height,w=el.width,""!==h&&"100%"!=h||(h=9),""!==w&&"100%"!=w||(w=16),ratio=h/w,$(el).attr("data-aspectRatio",h/w).removeAttr("height").removeAttr("width"),0==(e=$(el).parent().width()))0==(e=$(el).parent().parent().parent().width())&&(e=600);100==e?($(el).width("100%").height("56.25%"),$(el).parent().parent().width("100%").height("56.25%")):($(el).width(e).height(e*ratio),$(el).parent().parent().width(e).height(e*ratio)),$(el).parent().parent().parent().css("display","inline"),$(".evs-flash-prompt").hide(),$('[data-role="evp-video"] div').css("background-color","transparent"),$(el).attr("data",$(el).attr("data").replace("http:","https:"))}catch(t){}})}function calcTax(){window.addEventListener("load",function(){if(ClickFunnels.CalculateTaxes.canCalcTaxes()){(new ClickFunnels.CalculateTaxes).run()}})}function cfStripeTokenHandler(e){const t=e.tokenDetails&&e.tokenDetails.token;var n=document.getElementById("cfAR"),a=document.createElement("input");a.setAttribute("type","hidden"),a.setAttribute("name","purchase[stripe_customer_token]"),a.setAttribute("value",t),n.appendChild(a),n.submit()}function cfStripePaymentIntentFormAdder(e){const t=e.tokenDetails&&e.tokenDetails.token;var n=document.getElementById("cfAR");(a=document.createElement("input")).setAttribute("type","hidden"),a.setAttribute("name","purchase[stripe_customer_token]"),a.setAttribute("value",t),n.appendChild(a);var a,o=undefined;o=shouldUseUpdatedSourceApiDeprecation()&&e.tokenDetails&&e.tokenDetails.paymentIntent?e.tokenDetails.paymentIntent:e.id,(a=document.createElement("input")).setAttribute("type","hidden"),a.setAttribute("name","purchase[payment_intent_id]"),a.setAttribute("value",o),n.appendChild(a),n.submit()}function cfCreateElements(e){var t="https://fonts.googleapis.com/css?family="+cfElementsFindFont(e);return stripe.elements({fonts:[{cssSrc:t}]})}function cfCreateStripeToken(){var e={address:"address_line1",city:"address_city",state:"address_state",zip:"address_zip",country:"address_country"},t={};Object.keys(e).forEach(function(n){var a=$("[name="+n+"]").filter(":visible:first");0!==a.size()&&(t[e[n]]=a.val())}),shouldUsePaymentIntentFlow()?(window.ClickFunnels.OrderTotal.calculate(),window.cfHandlePaymentUsingPaymentIntent(t)):window.cfHandlePaymentUsingSetupIntent(t)}function cfHandlePaymentUsingSetupIntent(e){const t={page_id:window.ClickFunnels.Page.publishedPageEncryptedId,stripe_publishable_key:window.ClickFunnels.OrderPage.Stripe.stripePublishableKey,stripe_account_id:window.ClickFunnels.OrderPage.Stripe.stripeAccountId};fetch("/api/non_oauth/stripe_intents/setup_intents/create",{method:"POST",body:JSON.stringify(t),headers:{"Content-Type":"application/json",Accept:"application/json"}}).then(t=>{t.status>=200&&t.status<=300?t.json().then(e=>{window.cfCreateStripePaymentMethod(e)}):t.status>=400&&t.status<500?t.json().then(e=>{cfOrderErrorMessage(e.error)}):stripe.createToken(window.cfStripeElementsCardElement,e).then(function(e){e.error?(window.ClickFunnels.OrderDeclinedMessage.show(e.error.message),window.ClickFunnels.CFPeOrders.SubmitButton.enable(),window.ClickFunnels.CFPeOrders.SubmitButton.replacePreviousContent()):window.cfStripeTokenHandler(cfTransformStripeToken(e.token))})})}function cfOrderErrorMessage(e){window.ClickFunnels.OrderDeclinedMessage.show(e),window.ClickFunnels.CFPeOrders.SubmitButton.enable(),window.ClickFunnels.CFPeOrders.SubmitButton.replacePreviousContent()}function cfHandlePaymentUsingPaymentIntent(e){const t={page_id:window.ClickFunnels.Page.publishedPageEncryptedId,stripe_publishable_key:window.ClickFunnels.OrderPage.Stripe.stripePublishableKey,stripe_account_id:window.ClickFunnels.OrderPage.Stripe.stripeAccountId,price:window.ClickFunnels.OrderTotal.orderTotal(),currency:window.ClickFunnels.OrderTotal.currency()};fetch("/api/non_oauth/stripe_intents/payment_intents/create",{method:"POST",body:JSON.stringify(t),headers:{"Content-Type":"application/json",Accept:"application/json"}}).then(t=>{t.status>=200&&t.status<=300?t.json().then(e=>{window.cfCreateStripePaymentMethod(e)}):t.status>=400&&t.status<500?t.json().then(e=>{cfOrderErrorMessage(e.error)}):stripe.createToken(window.cfStripeElementsCardElement,e).then(function(e){e.error?cfOrderErrorMessage(e.error.message):window.cfStripeTokenHandler(cfTransformStripeToken(e.token))})})}function shouldUsePaymentIntentFlow(){return window.ClickFunnels.FeatureFlags.CanUsePaymentIntentOnFunnelPayments&&!window.ClickFunnels.OtoPage&&!window.cfpe.orderHasSubscription}function shouldUseUpdatedSourceApiDeprecation(){return window.ClickFunnels.FeatureFlags.CanUseUpdatedSourceApiDeprecation&&!window.ClickFunnels.OtoPage&&!window.cfpe.orderHasSubscription}function cfCreateStripePaymentMethod(e){const t=$('[name="address"]').filter(":visible:first").val(),n=$('[name="city"]').filter(":visible:first").val(),a=$('[name="state"]').filter(":visible:first").val(),o=$('[name="zip"]').filter(":visible:first").val(),i=$('[name="country"]').filter(":visible:first").val(),r={name:$('[name="name"]').filter(":visible:first").val(),email:$('[name="email"]').filter(":visible:first").val(),address:{line1:t,city:n,postal_code:o,state:a,country:i}};window.ClickFunnels.OrderPage.LoadingScreen.show(),shouldUseUpdatedSourceApiDeprecation()&&"ideal"==window.cfStripeElementsPaymentType?paymentElement=window.cfStripeElementsPaymentElement:paymentElement=window.cfStripeElementsCardElement,shouldUsePaymentIntentFlow()?confirmPaymentIntent(e.client_secret,paymentElement,r):confirmSetupIntent(e.client_secret,paymentElement,r)}function cfTransformStripeToken(e){let t={last4:null,card_type:null,tokenDetails:{formName:null,token:null}};if("token"==e.object){const n=e.last4||e.card.last4,a=e.card_type||e.card.brand;t.last4=n,t.card_type=a,t.tokenDetails={formName:"credit_card_token",token:e.id}}else"payment_method"==e.object?(t.last4=e.card.last4,t.card_type=e.card.brand,t.tokenDetails={formName:"payment_method_token",token:e.id,customer:e.customer}):"setup_intent"==e.object?(t.id=e.id,t.last4=null,t.card_type=null,t.tokenDetails={formName:"payment_method_token",token:e.payment_method}):"payment_intent"==e.object?(t.id=e.id,t.last4=null,t.card_type=null,t.tokenDetails={formName:"payment_method_token",token:e.payment_method}):"iDEAL"==e.object&&(shouldUseUpdatedSourceApiDeprecation()?(t.id=e.payment_intent_client_secret,t.tokenDetails={formName:"payment_method_token",token:e.payment_intent,paymentIntent:e.payment_intent}):(t.id=e.client_secret,t.tokenDetails={formName:"payment_method_token",token:e.source}),t.last4=null,t.card_type=null);return t}function cfElementsFindFont(e){var t="Open Sans",n=e.closest("[data-google-font]").attr("data-google-font");if(!n){var a=$("html").attr("style");if(a){var o=a.split("font-family:");if(2==o.length){var i=o[1].split(";");2==i.length&&(n=(i=i[0].replace("!important","")).trim())}}}return n=(n=n||t).replace(/\+/g," ")}function confirmPaymentIntent(e,t,n){payment_type=getPaymentType(),stripeConfirmFunction=getStripeConfirmPaymentIntentFunction(),options={setup_future_usage:"off_session",payment_method:{[payment_type]:t,type:window.cfStripeElementsPaymentType,billing_details:n}},shouldUseUpdatedSourceApiDeprecation()&&"ideal"==payment_type&&(options.return_url=window.location.href),stripeConfirmFunction(e,options).then(e=>{if(e.error){let t=e.error.message;!e.error.code||"card_declined"!=e.error.code&&"expired_card"!=e.error.code||(t="Payment Method Declined: "+t),window.ClickFunnels.OrderDeclinedMessage.show(t),window.ClickFunnels.CFPeOrders.SubmitButton.enable(),window.ClickFunnels.OrderPage.LoadingScreen.hide(),window.ClickFunnels.CFPeOrders.SubmitButton.replacePreviousContent()}else{const t=e.paymentIntent;window.cfStripePaymentIntentFormAdder(cfTransformStripeToken(t))}})}function confirmSetupIntent(e,t,n){payment_type=getPaymentType(),stripeConfirmFunction=getStripeConfirmSetupIntentFunction(),options={payment_method:{[payment_type]:t,type:window.cfStripeElementsPaymentType,billing_details:n}},shouldUseUpdatedSourceApiDeprecation()&&"ideal"==payment_type&&(options.return_url=window.location.href),stripeConfirmFunction(e,options).then(e=>{if(e.error){let t=e.error.message;!e.error.code||"card_declined"!=e.error.code&&"expired_card"!=e.error.code||(t="Payment Method Declined: "+t),window.ClickFunnels.OrderDeclinedMessage.show(t),window.ClickFunnels.CFPeOrders.SubmitButton.enable(),window.ClickFunnels.OrderPage.LoadingScreen.hide(),window.ClickFunnels.CFPeOrders.SubmitButton.replacePreviousContent()}else{const t=e.setupIntent;window.cfStripeTokenHandler(cfTransformStripeToken(t))}})}function getPaymentType(){switch(window.cfStripeElementsPaymentType){case"ideal":return"ideal";case"card":default:return"card"}}function getStripeConfirmPaymentIntentFunction(){switch(window.cfStripeElementsPaymentType){case"ideal":return stripe.confirmIdealPayment;case"card":default:return stripe.confirmCardPayment}}function getStripeConfirmSetupIntentFunction(){switch(window.cfStripeElementsPaymentType){case"ideal":return stripe.confirmIdealSetup;case"card":default:return stripe.confirmCardSetup}}function cfCreateiDEALPaymentElement(){(window.cfSaveiDEALSourceInfo(),shouldUseUpdatedSourceApiDeprecation())?$(".elCreditCardForm").each(function(){var e=$(this);if(!t)var t=stripe.elements();var n=t.create("idealBank");$("#ideal-bank-element").length&&($(".ccStripeElementCard").hide(),$(".ccStripeElementExp").length&&$(".ccStripeElementCVC").length&&($(".ccStripeElementExp").hide(),$(".ccStripeElementCVC").hide()),$(".ccStripePaymentElement").show(),n.mount("#ideal-bank-element"),window.styleElementWrapper(e,$(".ccPaymentText").attr("style")),window.cfStripeElementsPaymentElement=n,window.cfStripeElementsPaymentType="ideal",window.location.hash="iDEAL_redirect")}):cfCreateiDEALSource()}function cfCreateiDEALSource(){window.ClickFunnels.OrderPage.LoadingScreen.show(),window.ClickFunnels.CFPeOrders.SubmitButton.disable(),window.ClickFunnels.OrderTotal.calculate(),window.location.hash="iDEAL_redirect",stripe.createSource({type:"ideal",amount:window.ClickFunnels.OrderTotal.orderTotal(),currency:window.ClickFunnels.OrderTotal.currency(),owner:{name:$('input[name="name"]').val(),email:$('input[name="email"]').val()},redirect:{return_url:window.location.href}}).then(function(e){e.error?(window.ClickFunnels.OrderDeclinedMessage.show(e.error.message),window.ClickFunnels.CFPeOrders.SubmitButton.enable(),window.ClickFunnels.CFPeOrders.SubmitButton.replacePreviousContent()):(cfSaveiDEALSourceInfo(),window.location.assign(e.source.redirect.url))})}function cfProcessiDEALSourceRedirect(e){let t={object:"iDEAL"};e.forEach(e=>{[key,value]=e.replace("?","").split("="),t[key]=value}),window.cfPopulateFormForiDEAL(),window.cfStripePaymentIntentFormAdder(cfTransformStripeToken(t))}function cfSaveiDEALSourceInfo(){const e=e=>$("
").text(e).html();window.localStorage.setItem("cf_contact_name",e($('input[name="name"]').val())),window.localStorage.setItem("cf_contact_email",e($('input[name="email"]').val())),window.localStorage.setItem("cf_contact_phone",e($('input[name="phone"]').val()))}function cfPopulateFormForiDEAL(){var e=document.getElementById("cfAR");e.elements.cf_contact_name.value=window.localStorage.getItem("cf_contact_name"),e.elements.cf_contact_email.value=window.localStorage.getItem("cf_contact_email"),e.elements.cf_contact_phone.value=window.localStorage.getItem("cf_contact_phone"),cleanupLocalStorage()}function cfHandleiDEALRedirect(){if("#iDEAL_redirect"===window.location.hash){window.ClickFunnels.OrderPage.LoadingScreen.show(),window.ClickFunnels.CFPeOrders.SubmitButton.disable();let e=window.location.search.split("&");window.cfProcessiDEALSourceRedirect(e)}}function cleanupLocalStorage(){localStorage.getItem("cf_contact_name")&&localStorage.removeItem("cf_contact_name"),localStorage.getItem("cf_contact_email")&&localStorage.removeItem("cf_contact_email"),localStorage.getItem("cf_contact_phone")&&localStorage.removeItem("cf_contact_phone")}function formatFontFamily(e){return'"'+(e=e.replace("+"," "))+'", sans-serif'}function styleForm(e){return{base:{fontFamily:formatFontFamily(cfElementsFindFont(e)),fontSize:extractFontSizeFromInput(e)}}}function extractAttributeFromInput(e,t){var n="";if(e.closest(".elOrder2Step").length>0)(a=e.closest(".elOrder2Step").find(".elInput").attr(t))&&(n=a);else if(e.closest(".elCreditCardForm")){var a;(a=e.closest(".elCreditCardForm").find(".ccInput").attr(t))&&(n=a)}return n}function extractFontSizeFromInlineStyle(e,t){var n=e.split("font-size:");return 2!=n.length?t:n[1].trim().replace(";","")}function extractFontSizeFromInput(e){var t="14px";return extractFontSizeFromInlineStyle(extractAttributeFromInput(e,"style"),t)}function extractStyleClassFromInput(e,t){return extractAttributeFromInput(e,"class").split(" ").reduce(function(e,n){return-1!==t.indexOf(n)&&(e=n),e},t[0])}function findCornerRadiusClass(e){return extractStyleClassFromInput(e,["elInputBR5","elInputBR1","elInputBR1","elInputBR2"])}function findInputStyleClass(e){return extractStyleClassFromInput(e,["elInputStyl0","elInputStyle1","elInputStyle2"])}function findBackgroundColorClass(e){return extractStyleClassFromInput(e,["elInputBG1","elInputBG2","elInputBG3"])}function styleElementWrapper(e,t){$(".ccInputText").attr("style",t),$(".StripeElement").css("padding","14px 18px").css("border","1px solid rgba(0,0,0,.2)");var n=findCornerRadiusClass(e);$(".StripeElement").addClass(n);var a=findInputStyleClass(e);$(".StripeElement").addClass(a);var o=findBackgroundColorClass(e);$(".StripeElement").addClass(o)}function AttachStripeElements(){function e(e){window.cfStripeElementsCardElement=n.create("card",{style:window.styleForm(e),hidePostalCode:!0}),e.find(".ccNumberWrap,.ccCVCWrap,.ccMonthWrap,.ccYearWrap").hide(),e.find(".ccStripeElementCard,.ccStripeElementExp,.ccStripeElementCVC").hide();var t=e.find(".ccCardText"),a='
';shouldUseUpdatedSourceApiDeprecation()&&(a+='
'),e.append(a),window.cfStripeElementsCardElement.mount("#card-element"),window.styleElementWrapper(e,t.attr("style"))}function t(e){var t=window.styleForm(e),a=$(".cc-number").attr("placeholder"),o=$(".cc-cvc").attr("placeholder"),i=$(".cc-exp").attr("placeholder");window.cfStripeElementsCardElement=n.create("cardNumber",{style:t,placeholder:a});var r=n.create("cardCvc",{style:t,placeholder:o}),l=n.create("cardExpiry",{style:t,placeholder:i}),s=e.find(".ccCardText"),u=s.text(),c=e.find(".ccCVCText").text(),d=e.find(".ccExpText").text();""===d&&(d=I18n.t("pe_editor_v2.templates.order2step.expiry"));var _='
';shouldUseUpdatedSourceApiDeprecation()&&(_+='
'),e.find(".ccNumberWrap,.ccCVCWrap,.ccMonthWrap,.ccYearWrap").hide(),e.find(".ccStripeElementCard,.ccStripeElementExp,.ccStripeElementCVC").hide(),e.append(_),window.cfStripeElementsCardElement.mount("#card-number-element"),r.mount("#card-cvc-element"),l.mount("#card-exp-element"),$("#card-number-element").css("width","100%").css("margin-bottom","8px"),$("#card-exp-element").css("width","calc(100% - 4px)").css("margin-left","4px"),$("#card-cvc-element").css("width","calc(100% - 4px)").css("margin-right","4px"),window.styleElementWrapper(e,s.attr("style"))}if(window.stripe){typeof stripe!=undefined&&cfHandleiDEALRedirect($);var n=undefined,a="oneField";$(".elCreditCardForm").each(function(){var o=$(this),i=o.attr("data-stripe-field-layout");n||(n=window.cfCreateElements(o)),i==a?e(o):t(o)})}else setTimeout(AttachStripeElements,200)}function prettyNotify(e,t,n){t=void 0===t?"":t,n=void 0===n?3e3:n;var a=Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,10);$("body").append("
"+e+"
"),$("#"+a).velocity("slideDown",{delay:500,duration:2e3}),$("#"+a).velocity("slideUp",{delay:n,duration:2e3})}function start_firebase(e,t,n,a){url="https://cf-browser-notifier.firebaseio.com/user_pages",void 0!==t&&"null"!=t&&(url=url+"/"+t),void 0!==n&&"null"!=n&&(url=url+"/step_"+n),void 0!==e&&"null"!=e&&""!=e&&(url=url+"/contacts/cf_uvid_"+e);var o=new Firebase(url);void 0!==a&&"null"!=a&&o.child("sales").on("value",function(e){null!=e.val()&&""!=e.val()&&prettyNotify(e.val())})}function displayPageNotifier(e){var t=e.val();t&&"true"!=localStorage.getItem(t.hashCode())&&(localStorage.setItem(t.hashCode(),"true"),setTimeout(function(){prettyNotify(t,"pageNotifier",1e4)},5e3))}function start_page_notifier(e,t){if(e){var n="https://cf-browser-notifier.firebaseio.com/user_pages";new Firebase(n+"/contacts/cf_uvid_"+e).child("message").on("value",displayPageNotifier),new Firebase(n+"/"+t+"/contacts/cf_uvid_"+e).child("message").on("value",displayPageNotifier)}}function start_firebase_quantity_limiter(e,t){function n(){$('.sold-out input[name="purchase[product_id]"]').each(function(){var e=$(this).val();if(-1===$.inArray(e,a)){var t=$('[name="purchase[product_id]"][value="'+e+'"]');t.parents('[data-cf-product-template="true"]').removeClass("sold-out"),t.parents('[data-cf-product-template="true"]').find("label .sold-out-text").remove(),t.attr("disabled",!1),$("#"+e+"_qty").val(0).attr("disabled",!1)}}),$.each(a,function(e,t){var n=$('[name="purchase[product_id]"][value="'+t+'"]');n.attr("checked",!1).attr("disabled",!0),$('#cfAR input[value="'+t+'"]').attr("checked",!1),n.parents('[data-cf-product-template="true"]:not(.sold-out)').addClass("sold-out").find('[data-cf-product-name="true"]').prepend(i)}),undefined!==cfpeRebuildOrderSummary&&cfpeRebuildOrderSummary()}url="https://cf-pql.firebaseio.com/user_pages",void 0!==e&&"null"!=e&&(url=url+"/"+e),void 0!==t&&"null"!=t&&(url=url+"/step_"+t);var a=[],o=new Firebase(url+"/product_limits"),i='
Sold Out! - ';$('.elOrderProductOptinProductName input[name="purchase[product_id]"]:not(input.hide)').each(function(){var e=this,t=null,i=null,r=$(this).val();o.child("product/"+r).on("value",function(o){var l=o.val();l&&null!==l.max&&""!==l.max&&(t=l.max),l&&null!==l.sold&&""!==l.sold&&(i=l.sold),null!==t&&""!==t&&null!==i&&""!==i?($(e).nextAll(".elOrderProdInvDesc").find(".elOrderProdInvMaxAvail").html(t),$(e).nextAll(".elOrderProdInvDesc").find(".elOrderProdInvSold").html(i),$(e).nextAll(".elOrderProdInvDesc").find(".elOrderProdInvCurrAvail").html(t-i),t-i>0?($.inArray(r,a)>-1&&a.splice($.inArray(r,a),1),n()):(-1===$.inArray(r,a)&&a.push(r),n())):$(e).nextAll(".elOrderProdInvDesc").hide()})})}function readCookie(e){for(var t=e+"=",n=document.cookie.split(";"),a=0;a
.payselect-header").first(),t=$(".payselect-container > .payselect-header").last(),n=e.css("border-bottom");$("#"+t.attr("data-target")).is(":visible")?t.css({"border-top":"none","border-bottom":n}):t.css({"border-top":n,"border-bottom":"none"})}function t(e){$(".payselect-header").each(function(){var t=$(this);e.is(t)?e.addClass("active"):t.hasClass("active")&&t.removeClass("active")})}$(".payselect-header").on("click",function(){var n=$(".payselect-method-container"),a=$(this),o=a.attr("data-target"),i=$("#"+o);n.each(function(){var e=$(this);i.is($(e))?e.show():e.hide()}),t(a),e()}),e()}function recalcRoundUp(){var e=0,t=parseInt(100*window.cfpe.orderTotal);Math.ceil(t);switch(window.Clickfunnels.roundTo){case"ten":e=1e3*Math.ceil(t/1e3)-t;break;default:e=100*Math.ceil(t/100)-t}return parseInt(e)||0}function addCharityToSummary(){var e="USD",t=$('#cfAR input[name="purchase[application_fee]"]').val()||"0",n=$('[data-title="cf-order-summary"] .elOrderProductOptinProducts:not(.cf-order-total-row, .taxAmount)').last().clone();n.addClass("round-up-summary-wrapper"),$('[data-title="cf-order-summary"] .round-up-summary-wrapper').remove(),null!==t&&""!==t&&(t=parseInt(t)),Number.isInteger(t)&&parseInt(t)>0&&($(".product-name",n).text("Round Up To Liberate & Educate"),$(".product-price",n).text((t/100).toLocaleString(undefined,{style:"currency",currency:e})),n.insertAfter($('[data-title="cf-order-summary"] .elOrderProductOptinProducts:not(.cf-order-total-row, .taxAmount)').last()))}function addSaasRedirectClickHandler(){$("a[href='#saas-redirect'], .elIMG[data-imagelink='#saas-redirect']").on("click",function(){var e=$.cookie("cf_saas_redirect_url");e?window.location.href=e:alert("The redirect to the software you've just signed up for is missing. Please contact us for assistance.")})}function CFInfusionsoftTokenizationHandler(e,t){function n(e){return{token:e,CardNumber:$('[data-stripe="number"]').val(),CVV2:$('[data-stripe="cvc"]').val(),ExpirationMonth:$('[data-stripe="exp-month"]').val(),ExpirationYear:$('[data-stripe="exp-year"]').val()}}var a=/^[A-Za-z0-9]*$/;if(null===e.match(a))throw new Error("Invalid Infusionsoft Subdomain");var o=$("#cfAR"),i=o.serialize();i+="&purchase[infusionsoft_pci_token]=TOKEN_REQUESTED";var r=o.attr("action"),l=$("",{type:"hidden",name:"purchase[infusionsoft_pci_token]",data:{storage:"false"}}),s=undefined;$.ajax({type:"POST",url:r,data:i}).done(function(a){if(!a||"string"!=typeof a.token)throw new Error("Missing Infusionsoft Submission Token");s=a.token,$.ajax({type:"POST",url:"https://"+e+".infusionsoft.com/app/creditCardSubmission/addCreditCard",data:n(s)}).always(function(){l.attr("value",a.token),l.appendTo(o),t()})}).fail(function(){throw new Error("Missing Infusionsoft Submission Token")})}function webinarDelay(){date=$('.selectAW-date[data-cf-name="webinar-date"]').val(),time=$('.selectAW-date[data-cf-name="webinar-time"]').val(),webinar_datetime=moment(date+" "+time,"YYYY-MM-DD HH:mm"),webinar_datetime_offset=moment.unix(webinar_datetime),now=moment(),now_offset=moment.unix(now),webinar_delay=webinar_datetime.diff(now),webinar_delay_offset=moment.unix(webinar_delay),webinar_delay_offset=moment.unix(webinar_delay),$("#webinar_delay").attr("value",webinar_delay)}function cookieWebinarTime(e){$pID=$("#page-id").val(),$.cookie("webinar_last_time-"+$pID,e)}function getWebinarLastTime(){return $pID=$("#page-id").val(),hardtime=$(".webinar-last-time").text(),cookietime=$.cookie("webinar_last_time-"+$pID),isNaN(parseInt(cookietime))&&(cookietime=0),parseInt(hardtime)'),window._wq=window._wq||[],_wq.push({id:"_all",onReady:CFhandleWistiaBPVideo});break;case"vimeo":$("body").append(''),CFcheckForVimeo(50,n)}})}function CFcheckForVimeo(e,t){e=e>=300?e:e+50,"undefined"==typeof Vimeo?window.setTimeout(CFcheckForVimeo,e,e,t):CFhandleAllVimeoBPVideos(t)}function CFhandleWistiaBPVideo(e){var t=e,n=$(e.container).closest(".elVideoWrapper");CFsetupSessionStarterBP(t,n),n.find(".start-session-wrapper").on("click",function(){t.play(),t.unmute(),$(this).remove()})}function CFhandleAllVimeoBPVideos(e){e.forEach(function(e){var t=new Vimeo.Player(e.find("iframe").attr("id"));t.ready().then(function(){CFhandleVideoLabels(e,t,e,"vimeo",function(){t.play(),t.setVolume(1)})})})}function CFhandleAllYouTubeBPVideos(e){return function(){e.forEach(function(e){var t,n=null;e&&(n=e.find("iframe").attr("id")),n&&CFhandleVideoLabels(e,t=new YT.Player(n,{}),e,"youtube",function(){t.playVideo(),t.unMute()})})}}function CFhandleVideoLabels(e,t,e,n,a){"true"==e.attr("data-"+n+"-block-pause")?(CFsetupSessionStarterBP(t,e),e.find(".start-session-wrapper").on("click",function(){a(),$(this).remove()})):(CFsetupMutedVideos(t,e),e.find(".unmute-player-wrapper").on("click",function(){a(),$(this).closest(".iframeUnmute").remove()}))}function CFsetupSessionStarterBP(e,t){if(e){var n=t.attr("data-session-starter-text")||"Click To Join Session In Progess...";t.find(".iframeBlocker").append(''+n+"
")}}function CFsetupMutedVideos(e,t){e&&t.find(".iframeUnmute").append('
')}function CFrenameVimeoURLAttribute(){$(".elVideoWrapper").each(function(){var e=$(this),t=e.attr("data-vimeo-url");e.removeAttr("data-vimeo-url"),t&&e.attr("data-cfvimeo-url",t)})}if(function(e,t){function n(e){var t=me[e]={};return Z.each(e.split(te),function(e,n){t[n]=!0}),t}function a(e,n,a){if(a===t&&1===e.nodeType){var o="data-"+n.replace(fe,"-$1").toLowerCase();if("string"==typeof(a=e.getAttribute(o))){try{a="true"===a||"false"!==a&&("null"===a?null:+a+""===a?+a:he.test(a)?Z.parseJSON(a):a)}catch(z){}Z.data(e,n,a)}else a=t}return a}function o(e){var t;for(t in e)if(("data"!==t||!Z.isEmptyObject(e[t]))&&"toJSON"!==t)return!1;return!0}function i(){return!1}function r(){return!0}function l(e){return!e||!e.parentNode||11===e.parentNode.nodeType}function s(e,t){do{e=e[t]}while(e&&1!==e.nodeType);return e}function u(e,t,n){if(t=t||0,Z.isFunction(t))return Z.grep(e,function(e,a){return!!t.call(e,a,e)===n});if(t.nodeType)return Z.grep(e,function(e){return e===t===n});if("string"==typeof t){var a=Z.grep(e,function(e){return 1===e.nodeType});if(Re.test(t))return Z.filter(t,a,!n);t=Z.filter(t,a)}return Z.grep(e,function(e){return Z.inArray(e,t)>=0===n})}function c(e){var t=qe.split("|"),n=e.createDocumentFragment();if(n.createElement)for(;t.length;)n.createElement(t.pop());return n}function d(e,t){return e.getElementsByTagName(t)[0]||e.appendChild(e.ownerDocument.createElement(t))}function _(e,t){if(1===t.nodeType&&Z.hasData(e)){var n,a,o,i=Z._data(e),r=Z._data(t,i),l=i.events;if(l)for(n in delete r.handle,r.events={},l)for(a=0,o=l[n].length;a").appendTo(U.body),n=t.css("display");return t.remove(),"none"!==n&&""!==n||(at=U.body.appendChild(at||Z.extend(U.createElement("iframe"),{frameBorder:0,width:0,height:0})),ot&&at.createElement||((ot=(at.contentWindow||at.contentDocument).document).write(""),ot.close()),t=ot.body.appendChild(ot.createElement(e)),n=nt(t,"display"),U.body.removeChild(at)),pt[e]=n,n}function S(e,t,n,a){var o;if(Z.isArray(t))Z.each(t,function(t,o){n||vt.test(e)?a(e,o):S(e+"["+("object"==typeof o?t:"")+"]",o,n,a)});else if(n||"object"!==Z.type(t))a(e,t);else for(o in t)S(e+"["+o+"]",t[o],n,a)}function T(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var a,o,i=t.toLowerCase().split(te),r=0,l=i.length;if(Z.isFunction(n))for(;r)[^>]*$|#([\w\-]*)$)/,oe=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,ie=/^[\],:{}\s]*$/,re=/(?:^|:|,)(?:\s*\[)+/g,le=/\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g,se=/"[^"\\\r\n]*"|true|false|null|-?(?:\d\d*\.|)\d+(?:[eE][\-+]?\d+|)/g,ue=/^-ms-/,ce=/-([\da-z])/gi,de=function(e,t){return(t+"").toUpperCase()},_e=function(){U.addEventListener?(U.removeEventListener("DOMContentLoaded",_e,!1),Z.ready()):"complete"===U.readyState&&(U.detachEvent("onreadystatechange",_e),Z.ready())},pe={};Z.fn=Z.prototype={constructor:Z,init:function(e,n,a){var o,i,r;if(!e)return this;if(e.nodeType)return this.context=this[0]=e,this.length=1,this;if("string"==typeof e){if((o="<"===e.charAt(0)&&">"===e.charAt(e.length-1)&&e.length>=3?[null,e,null]:ae.exec(e))&&(o[1]||!n)){if(o[1])return r=(n=n instanceof Z?n[0]:n)&&n.nodeType?n.ownerDocument||n:U,e=Z.parseHTML(o[1],r,!0),oe.test(o[1])&&Z.isPlainObject(n)&&this.attr.call(e,n,!0),Z.merge(this,e);if((i=U.getElementById(o[2]))&&i.parentNode){if(i.id!==o[2])return a.find(e);this.length=1,this[0]=i}return this.context=U,this.selector=e,this}return!n||n.jquery?(n||a).find(e):this.constructor(n).find(e)}return Z.isFunction(e)?a.ready(e):(e.selector!==t&&(this.selector=e.selector,this.context=e.context),Z.makeArray(e,this))},selector:"",jquery:"1.8.1",length:0,size:function(){return this.length},toArray:function(){return Y.call(this)},get:function(e){return null==e?this.toArray():e<0?this[this.length+e]:this[e]},pushStack:function(e,t,n){var a=Z.merge(this.constructor(),e);return a.prevObject=this,a.context=this.context,"find"===t?a.selector=this.selector+(this.selector?" ":"")+n:t&&(a.selector=this.selector+"."+t+"("+n+")"),a},each:function(e,t){return Z.each(this,e,t)},ready:function(e){return Z.ready.promise().done(e),this},eq:function(e){return-1===(e=+e)?this.slice(e):this.slice(e,e+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(Y.apply(this,arguments),"slice",Y.call(arguments).join(","))},map:function(e){return this.pushStack(Z.map(this,function(t,n){return e.call(t,n,t)}))},end:function(){return this.prevObject||this.constructor(null)},push:W,sort:[].sort,splice:[].splice},Z.fn.init.prototype=Z.fn,Z.extend=Z.fn.extend=function(){var e,n,a,o,i,r,l=arguments[0]||{},s=1,u=arguments.length,c=!1;for("boolean"==typeof l&&(c=l,l=arguments[1]||{},s=2),"object"!=typeof l&&!Z.isFunction(l)&&(l={}),u===s&&(l=this,--s);s0||(B.resolveWith(U,[Z]),Z.fn.trigger&&Z(U).trigger("ready").off("ready"))}},isFunction:function(e){return"function"===Z.type(e)},isArray:Array.isArray||function(e){return"array"===Z.type(e)},isWindow:function(e){return null!=e&&e==e.window},isNumeric:function(e){return!isNaN(parseFloat(e))&&isFinite(e)},type:function(e){return null==e?String(e):pe[K.call(e)]||"object"},isPlainObject:function(e){if(!e||"object"!==Z.type(e)||e.nodeType||Z.isWindow(e))return!1;try{if(e.constructor&&!Q.call(e,"constructor")&&!Q.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(q){return!1}var n;for(n in e);return n===t||Q.call(e,n)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},error:function(e){throw new Error(e)},parseHTML:function(e,t,n){var a;return e&&"string"==typeof e?("boolean"==typeof t&&(n=t,t=0),t=t||U,(a=oe.exec(e))?[t.createElement(a[1])]:(a=Z.buildFragment([e],t,n?null:[]),Z.merge([],(a.cacheable?Z.clone(a.fragment):a.fragment).childNodes))):null},parseJSON:function(t){return t&&"string"==typeof t?(t=Z.trim(t),e.JSON&&e.JSON.parse?e.JSON.parse(t):ie.test(t.replace(le,"@").replace(se,"]").replace(re,""))?new Function("return "+t)():void Z.error("Invalid JSON: "+t)):null},parseXML:function(n){var a;if(!n||"string"!=typeof n)return null;try{e.DOMParser?a=(new DOMParser).parseFromString(n,"text/xml"):((a=new ActiveXObject("Microsoft.XMLDOM")).async="false",a.loadXML(n))}catch(z){a=t}return(!a||!a.documentElement||a.getElementsByTagName("parsererror").length)&&Z.error("Invalid XML: "+n),a},noop:function(){},globalEval:function(t){t&&ee.test(t)&&(e.execScript||function(t){e.eval.call(e,t)})(t)},camelCase:function(e){return e.replace(ue,"ms-").replace(ce,de)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toUpperCase()===t.toUpperCase()},each:function(e,n,a){var o,i=0,r=e.length,l=r===t||Z.isFunction(e);if(a)if(l){for(o in e)if(!1===n.apply(e[o],a))break}else for(;i0&&e[0]&&e[s-1]||0===s||Z.isArray(e)))for(;l-1;)u.splice(n,1),i&&(n<=l&&l--,n<=s&&s--)}),this},has:function(e){return Z.inArray(e,u)>-1},empty:function(){return u=[],this},disable:function(){return u=c=a=t,this},disabled:function(){return!u},lock:function(){return c=t,a||_.disable(),this},locked:function(){return!c},fireWith:function(e,t){return t=[e,(t=t||[]).slice?t.slice():t],u&&(!o||c)&&(i?c.push(t):d(t)),this},fire:function(){return _.fireWith(this,arguments),this},fired:function(){return!!o}};return _},Z.extend({Deferred:function(e){var t=[["resolve","done",Z.Callbacks("once memory"),"resolved"],["reject","fail",Z.Callbacks("once memory"),"rejected"],["notify","progress",Z.Callbacks("memory")]],n="pending",a={state:function(){return n},always:function(){return o.done(arguments).fail(arguments),this},then:function(){var e=arguments;return Z.Deferred(function(n){Z.each(t,function(t,a){var i=a[0],r=e[t];o[a[1]](Z.isFunction(r)?function(){var e=r.apply(this,arguments);e&&Z.isFunction(e.promise)?e.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[i+"With"](this===o?n:this,[e])}:n[i])}),e=null}).promise()},promise:function(e){return"object"==typeof e?Z.extend(e,a):a}},o={};return a.pipe=a.then,Z.each(t,function(e,i){var r=i[2],l=i[3];a[i[1]]=r.add,l&&r.add(function(){n=l},t[1^e][2].disable,t[2][2].lock),o[i[0]]=r.fire,o[i[0]+"With"]=r.fireWith}),a.promise(o),e&&e.call(o,o),o},when:function(e){var t,n,a,o=0,i=Y.call(arguments),r=i.length,l=1!==r||e&&Z.isFunction(e.promise)?r:0,s=1===l?e:Z.Deferred(),u=function(e,n,a){return function(o){n[e]=this,a[e]=arguments.length>1?Y.call(arguments):o,a===t?s.notifyWith(n,a):--l||s.resolveWith(n,a)}};if(r>1)for(t=new Array(r),n=new Array(r),a=new Array(r);oa",n=_.getElementsByTagName("*"),(a=_.getElementsByTagName("a")[0]).style.cssText="top:1px;float:left;opacity:.5",!n||!n.length||!a)return{};i=(o=U.createElement("select")).appendChild(U.createElement("option")),r=_.getElementsByTagName("input")[0],t={leadingWhitespace:3===_.firstChild.nodeType,tbody:!_.getElementsByTagName("tbody").length,htmlSerialize:!!_.getElementsByTagName("link").length,style:/top/.test(a.getAttribute("style")),hrefNormalized:"/a"===a.getAttribute("href"),opacity:/^0.5/.test(a.style.opacity),cssFloat:!!a.style.cssFloat,checkOn:"on"===r.value,optSelected:i.selected,getSetAttribute:"t"!==_.className,enctype:!!U.createElement("form").enctype,html5Clone:"<:nav>"!==U.createElement("nav").cloneNode(!0).outerHTML,boxModel:"CSS1Compat"===U.compatMode,submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0,boxSizingReliable:!0,pixelPosition:!1},r.checked=!0,t.noCloneChecked=r.cloneNode(!0).checked,o.disabled=!0,t.optDisabled=!i.disabled;try{delete _.test}catch(J){t.deleteExpando=!1}if(!_.addEventListener&&_.attachEvent&&_.fireEvent&&(_.attachEvent("onclick",d=function(){t.noCloneEvent=!1}),_.cloneNode(!0).fireEvent("onclick"),_.detachEvent("onclick",d)),(r=U.createElement("input")).value="t",r.setAttribute("type","radio"),t.radioValue="t"===r.value,r.setAttribute("checked","checked"),r.setAttribute("name","t"),_.appendChild(r),(l=U.createDocumentFragment()).appendChild(_.lastChild),t.checkClone=l.cloneNode(!0).cloneNode(!0).lastChild.checked,t.appendChecked=r.checked,l.removeChild(r),l.appendChild(_),_.attachEvent)for(u in{submit:!0,change:!0,focusin:!0})(c=(s="on"+u)in _)||(_.setAttribute(s,"return;"),c="function"==typeof _[s]),t[u+"Bubbles"]=c;return Z(function(){var n,a,o,i,r="padding:0;margin:0;border:0;display:block;overflow:hidden;",l=U.getElementsByTagName("body")[0];l&&((n=U.createElement("div")).style.cssText="visibility:hidden;border:0;width:0;height:0;position:static;top:0;margin-top:1px",l.insertBefore(n,l.firstChild),a=U.createElement("div"),n.appendChild(a),a.innerHTML="",(o=a.getElementsByTagName("td"))[0].style.cssText="padding:0;margin:0;border:0;display:none",c=0===o[0].offsetHeight,o[0].style.display="",o[1].style.display="none",t.reliableHiddenOffsets=c&&0===o[0].offsetHeight,a.innerHTML="",a.style.cssText="box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;position:absolute;top:1%;",t.boxSizing=4===a.offsetWidth,t.doesNotIncludeMarginInBodyOffset=1!==l.offsetTop,e.getComputedStyle&&(t.pixelPosition="1%"!==(e.getComputedStyle(a,null)||{}).top,t.boxSizingReliable="4px"===(e.getComputedStyle(a,null)||{width:"4px"}).width,(i=U.createElement("div")).style.cssText=a.style.cssText=r,i.style.marginRight=i.style.width="0",a.style.width="1px",a.appendChild(i),t.reliableMarginRight=!parseFloat((e.getComputedStyle(i,null)||{}).marginRight)),"undefined"!=typeof a.style.zoom&&(a.innerHTML="",a.style.cssText=r+"width:1px;padding:1px;display:inline;zoom:1",t.inlineBlockNeedsLayout=3===a.offsetWidth,a.style.display="block",a.style.overflow="visible",a.innerHTML="",a.firstChild.style.width="5px",t.shrinkWrapBlocks=3!==a.offsetWidth,n.style.zoom=1),l.removeChild(n),n=a=o=i=null)}),l.removeChild(_),n=a=o=i=r=l=_=null,t}();var he=/(?:\{[\s\S]*\}|\[[\s\S]*\])$/,fe=/([A-Z])/g;Z.extend({cache:{},deletedIds:[],uuid:0,expando:"jQuery"+(Z.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(e){return!!(e=e.nodeType?Z.cache[e[Z.expando]]:e[Z.expando])&&!o(e)},data:function(e,n,a,o){if(Z.acceptData(e)){var i,r,l=Z.expando,s="string"==typeof n,u=e.nodeType,c=u?Z.cache:e,d=u?e[l]:e[l]&&l;if(d&&c[d]&&(o||c[d].data)||!s||a!==t)return d||(u?e[l]=d=Z.deletedIds.pop()||++Z.uuid:d=l),c[d]||(c[d]={},u||(c[d].toJSON=Z.noop)),"object"!=typeof n&&"function"!=typeof n||(o?c[d]=Z.extend(c[d],n):c[d].data=Z.extend(c[d].data,n)),i=c[d],o||(i.data||(i.data={}),i=i.data),a!==t&&(i[Z.camelCase(n)]=a),s?null==(r=i[n])&&(r=i[Z.camelCase(n)]):r=i,r}},removeData:function(e,t,n){if(Z.acceptData(e)){var a,i,r,l=e.nodeType,s=l?Z.cache:e,u=l?e[Z.expando]:Z.expando;if(s[u]){if(t&&(a=n?s[u]:s[u].data)){Z.isArray(t)||(t in a?t=[t]:t=(t=Z.camelCase(t))in a?[t]:t.split(" "));for(i=0,r=t.length;i1,null,!1))},removeData:function(e){return this.each(function(){Z.removeData(this,e)})}}),Z.extend({queue:function(e,t,n){var a;if(e)return t=(t||"fx")+"queue",a=Z._data(e,t),n&&(!a||Z.isArray(n)?a=Z._data(e,t,Z.makeArray(n)):a.push(n)),a||[]},dequeue:function(e,t){t=t||"fx";var n=Z.queue(e,t),a=n.length,o=n.shift(),i=Z._queueHooks(e,t),r=function(){Z.dequeue(e,t)};"inprogress"===o&&(o=n.shift(),a--),o&&("fx"===t&&n.unshift("inprogress"),delete i.stop,o.call(e,r,i)),!a&&i&&i.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return Z._data(e,n)||Z._data(e,n,{empty:Z.Callbacks("once memory").add(function(){Z.removeData(e,t+"queue",!0),Z.removeData(e,n,!0)})})}}),Z.fn.extend({queue:function(e,n){var a=2;return"string"!=typeof e&&(n=e,e="fx",a--),arguments.length1)},removeAttr:function(e){return this.each(function(){Z.removeAttr(this,e)})},prop:function(e,t){return Z.access(this,Z.prop,e,t,arguments.length>1)},removeProp:function(e){return e=Z.propFix[e]||e,this.each(function(){try{this[e]=t,delete this[e]}catch(q){}})},addClass:function(e){var t,n,a,o,i,r,l;if(Z.isFunction(e))return this.each(function(t){Z(this).addClass(e.call(this,t,this.className))});if(e&&"string"==typeof e)for(t=e.split(te),n=0,a=this.length;n-1;)a=a.replace(" "+n[i]+" "," ");o.className=e?Z.trim(a):""}return this},toggleClass:function(e,t){var n=typeof e,a="boolean"==typeof t;return Z.isFunction(e)?this.each(function(n){Z(this).toggleClass(e.call(this,n,this.className,t),t)}):this.each(function(){if("string"===n)for(var o,i=0,r=Z(this),l=t,s=e.split(te);o=s[i++];)r[(l=a?l:!r.hasClass(o))?"addClass":"removeClass"](o);else"undefined"!==n&&"boolean"!==n||(this.className&&Z._data(this,"__className__",this.className),this.className=this.className||!1===e?"":Z._data(this,"__className__")||"")})},hasClass:function(e){for(var t=" "+e+" ",n=0,a=this.length;n-1)return!0;return!1},val:function(e){var n,a,o,i=this[0];return arguments.length?(o=Z.isFunction(e),this.each(function(a){var i,r=Z(this);1===this.nodeType&&(null==(i=o?e.call(this,a,r.val()):e)?i="":"number"==typeof i?i+="":Z.isArray(i)&&(i=Z.map(i,function(e){return null==e?"":e+""})),(n=Z.valHooks[this.type]||Z.valHooks[this.nodeName.toLowerCase()])&&"set"in n&&n.set(this,i,"value")!==t||(this.value=i))})):i?(n=Z.valHooks[i.type]||Z.valHooks[i.nodeName.toLowerCase()])&&"get"in n&&(a=n.get(i,"value"))!==t?a:"string"==typeof(a=i.value)?a.replace(we,""):null==a?"":a:void 0}}),Z.extend({valHooks:{option:{get:function(e){var t=e.attributes.value;return!t||t.specified?e.value:e.text}},select:{get:function(e){var t,n,a,o,i=e.selectedIndex,r=[],l=e.options,s="select-one"===e.type;if(i<0)return null;for(n=s?i:0,a=s?i+1:l.length;n=0}),n.length||(e.selectedIndex=-1),n}}},attrFn:{},attr:function(e,n,a,o){var i,r,l,s=e.nodeType;if(e&&3!==s&&8!==s&&2!==s)return o&&Z.isFunction(Z.fn[n])?Z(e)[n](a):"undefined"==typeof e.getAttribute?Z.prop(e,n,a):((l=1!==s||!Z.isXMLDoc(e))&&(n=n.toLowerCase(),r=Z.attrHooks[n]||(Ce.test(n)?be:ge)),a!==t?null===a?void Z.removeAttr(e,n):r&&"set"in r&&l&&(i=r.set(e,a,n))!==t?i:(e.setAttribute(n,""+a),a):r&&"get"in r&&l&&null!==(i=r.get(e,n))?i:null===(i=e.getAttribute(n))?t:i)},removeAttr:function(e,t){var n,a,o,i,r=0;if(t&&1===e.nodeType)for(a=t.split(te);r=0}})});var Ee=/^(?:textarea|input|select)$/i,Ae=/^([^\.]*|)(?:\.(.+)|)$/,Pe=/(?:^|\s)hover(\.\S+|)\b/,Fe=/^key/,Me=/^(?:mouse|contextmenu)|click/,De=/^(?:focusinfocus|focusoutblur)$/,Le=function(e){return Z.event.special.hover?e:e.replace(Pe,"mouseenter$1 mouseleave$1")};Z.event={add:function(e,n,a,o,i){var r,l,s,u,c,d,_,p,m,h,f;if(3!==e.nodeType&&8!==e.nodeType&&n&&a&&(r=Z._data(e))){for(a.handler&&(a=(m=a).handler,i=m.selector),a.guid||(a.guid=Z.guid++),(s=r.events)||(r.events=s={}),(l=r.handle)||(r.handle=l=function(e){return void 0===Z||e&&Z.event.triggered===e.type?t:Z.event.dispatch.apply(l.elem,arguments)},l.elem=e),n=Z.trim(Le(n)).split(" "),u=0;u=0&&(f=f.slice(0,-1),l=!0),f.indexOf(".")>=0&&(f=(g=f.split(".")).shift(),g.sort()),(!o||Z.event.customEvent[f])&&!Z.event.global[f])return;if((n="object"==typeof n?n[Z.expando]?n:new Z.Event(f,n):new Z.Event(f)).type=f,n.isTrigger=!0,n.exclusive=l,n.namespace=g.join("."),
n.namespace_re=n.namespace?new RegExp("(^|\\.)"+g.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,d=f.indexOf(":")<0?"on"+f:"",!o){for(s in r=Z.cache)r[s].events&&r[s].events[f]&&Z.event.trigger(n,a,r[s].handle.elem,!0);return}if(n.result=t,n.target||(n.target=o),(a=null!=a?Z.makeArray(a):[]).unshift(n),(_=Z.event.special[f]||{}).trigger&&!1===_.trigger.apply(o,a))return;if(m=[[o,_.bindType||f]],!i&&!_.noBubble&&!Z.isWindow(o)){for(h=_.delegateType||f,u=De.test(h+f)?o:o.parentNode,c=o;u;u=u.parentNode)m.push([u,h]),c=u;c===(o.ownerDocument||U)&&m.push([c.defaultView||c.parentWindow||e,h])}for(s=0;s=0),l[d]&&u.push(c);u.length&&g.push({elem:i,matches:u})}for(_.length>p&&g.push({elem:this,matches:_.slice(p)}),a=0;a0?this.on(t,null,e,n):this.trigger(t)},Fe.test(t)&&(Z.event.fixHooks[t]=Z.event.keyHooks),Me.test(t)&&(Z.event.fixHooks[t]=Z.event.mouseHooks)}),function(e,t){function n(e,t,n,a){n=n||[];var o,i,r,l,s=(t=t||A).nodeType;if(1!==s&&9!==s)return[];if(!e||"string"!=typeof e)return n;if(!(r=v(t))&&!a&&(o=G.exec(e)))if(l=o[1]){if(9===s){if(!(i=t.getElementById(l))||!i.parentNode)return n;if(i.id===l)return n.push(i),n}else if(t.ownerDocument&&(i=t.ownerDocument.getElementById(l))&&w(t,i)&&i.id===l)return n.push(i),n}else{if(o[2])return D.apply(n,M.call(t.getElementsByTagName(e),0)),n;if((l=o[3])&&re&&t.getElementsByClassName)return D.apply(n,M.call(t.getElementsByClassName(l),0)),n}return m(e,t,n,a,r)}function a(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function o(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function i(e,t,n){if(e===t)return n;for(var a=e.nextSibling;a;){if(a===t)return-1;a=a.nextSibling}return 1}function r(e,t,a,o){var i,r,l,s,u,c,d,_,p,m=!a&&t!==A,h=(m?"":"")+e.replace(V,"$1"),f=R[E][h];if(f)return o?0:M.call(f,0);for(u=e,c=[],0,_=b.preFilter,p=b.filter;u;){for(s in i&&!(r=H.exec(u))||(r&&(u=u.slice(r[0].length),l.selector=d),c.push(l=[]),d="",m&&(u=" "+u)),i=!1,(r=W.exec(u))&&(d+=r[0],u=u.slice(r[0].length),i=l.push({part:r.pop().replace(V," "),string:r[0],captures:r})),p)(r=te[s].exec(u))&&(!_[s]||(r=_[s](r,t,a)))&&(d+=r[0],u=u.slice(r[0].length),i=l.push({part:s,string:r.shift(),captures:r}));if(!i)break}return d&&(l.selector=d),o?u.length:u?n.error(e):M.call(R(h,c),0)}function l(e,t,n,a){var o=t.dir,i=F++;return e||(e=function(e){return e===n}),t.first?function(t){for(;t=t[o];)if(1===t.nodeType)return e(t)&&t}:a?function(t){for(;t=t[o];)if(1===t.nodeType&&e(t))return t}:function(t){for(var n,a=i+"."+h,r=a+"."+f;t=t[o];)if(1===t.nodeType){if((n=t[E])===r)return t.sizset;if("string"==typeof n&&0===n.indexOf(a)){if(t.sizset)return t}else{if(t[E]=r,e(t))return t.sizset=!0,t;t.sizset=!1}}}}function s(e,t){return e?function(n){var a=t(n);return a&&e(!0===a?n:a)}:t}function u(e,t,n){for(var a,o,i=0;a=e[i];i++)o=b.relative[a.part]?l(o,b.relative[a.part],t,n):s(o,b.filter[a.part].apply(null,a.captures.concat(t,n)));return o}function c(e){return function(t){for(var n,a=0;n=e[a];a++)if(n(t))return!0;return!1}}function d(e,t,a,o){for(var i=0,r=t.length;i0?s(l,a,r):[]}function p(e,a,o,i){for(var r,l,s,u,c,p,m,h,f,g,b,y,v,w=0,k=e.length,S=te.POS,T=new RegExp("^"+S.source+"(?!"+$+")","i"),C=function(){for(var e=1,n=arguments.length-2;em&&(l+=p.slice(m,f.index),m=b,y=[a],W.test(l)&&(h&&(y=h),h=i),(v=Q.test(l))&&(l=l.slice(0,-5).replace(W,"$&*"),m++),f.length>1&&f[0].replace(T,C),h=_(l,f[1],f[2],y,h,v)),l="";g||(l+=p),g=!1}l?W.test(l)?d(l,h||[a],o,i):n(l,a,o,i?i.concat(h):h):D.apply(o,h)}return 1===k?o:n.uniqueSort(o)}function m(e,t,n,a,o){var i,l,s,u,c,d,_,m,g,y=r(e=e.replace(V,"$1"),t,o),v=t.nodeType;if(te.POS.test(e))return p(y,t,n,a);if(a)i=M.call(a,0);else if(1===y.length){if((c=M.call(y[0],0)).length>2&&"ID"===(d=c[0]).part&&9===v&&!o&&b.relative[c[1].part]){if(!(t=b.find.ID(d.captures[0].replace(ee,""),t,o)[0]))return n;e=e.slice(c.shift().string.length)}for(m=(y=K.exec(c[0].string))&&!y.index&&t.parentNode||t,_="",u=c.length-1;u>=0&&(g=(d=c[u]).part,_=d.string+_,!b.relative[g]);u--)if(b.order.test(g)){if(null==(i=b.find[g](d.captures[0].replace(ee,""),m,o)))continue;(e=e.slice(0,e.length-_.length)+_.replace(te[g],""))||D.apply(n,M.call(i,0));break}}if(e)for(l=k(e,t,o),h=l.dirruns++,null==i&&(i=b.find.TAG("*",K.test(e)&&t.parentNode||t)),u=0;s=i[u];u++)f=l.runs++,l(s)&&n.push(s);return n}var h,f,g,b,y,v,w,k,S,T,C=!0,x="undefined",E=("sizcache"+Math.random()).replace(".",""),A=e.document,P=A.documentElement,F=0,M=[].slice,D=[].push,L=function(e,t){return e[E]=t||!0,e},I=function(){var e={},t=[];return L(function(n,a){return t.push(n)>b.cacheLength&&delete e[t.shift()],e[n]=a},e)},N=I(),R=I(),O=I(),$="[\\x20\\t\\r\\n\\f]",q="(?:\\\\.|[-\\w]|[^\\x00-\\xa0])+",B=q.replace("w","w#"),U="\\["+$+"*("+q+")"+$+"*(?:"+"([*^$|!~]?=)"+$+"*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|("+B+")|)|)"+$+"*\\]",z=":("+q+")(?:\\((?:(['\"])((?:\\\\.|[^\\\\])*?)\\2|([^()[\\]]*|(?:(?:"+U+")|[^:]|\\\\.)*|.*))\\)|)",j=":(nth|eq|gt|lt|first|last|even|odd)(?:\\(((?:-\\d)?\\d*)\\)|)(?=[^-]|$)",V=new RegExp("^"+$+"+|((?:^|[^\\\\])(?:\\\\.)*)"+$+"+$","g"),H=new RegExp("^"+$+"*,"+$+"*"),W=new RegExp("^"+$+"*([\\x20\\t\\r\\n\\f>+~])"+$+"*"),Y=new RegExp(z),G=/^(?:#([\w\-]+)|(\w+)|\.([\w\-]+))$/,K=/[\x20\t\r\n\f]*[+~]/,Q=/:not\($/,J=/h\d/i,X=/input|select|textarea|button/i,ee=/\\(?!\\)/g,te={ID:new RegExp("^#("+q+")"),CLASS:new RegExp("^\\.("+q+")"),NAME:new RegExp("^\\[name=['\"]?("+q+")['\"]?\\]"),TAG:new RegExp("^("+q.replace("w","w*")+")"),ATTR:new RegExp("^"+U),PSEUDO:new RegExp("^"+z),CHILD:new RegExp("^:(only|nth|last|first)-child(?:\\("+$+"*(even|odd|(([+-]|)(\\d*)n|)"+$+"*(?:([+-]|)"+$+"*(\\d+)|))"+$+"*\\)|)","i"),POS:new RegExp(j,"ig"),needsContext:new RegExp("^"+$+"*[>+~]|"+j,"i")},ne=function(e){var t=A.createElement("div");try{return e(t)}catch(h){return!1}finally{t=null}},ae=ne(function(e){return e.appendChild(A.createComment("")),!e.getElementsByTagName("*").length}),oe=ne(function(e){return e.innerHTML="",e.firstChild&&typeof e.firstChild.getAttribute!==x&&"#"===e.firstChild.getAttribute("href")}),ie=ne(function(e){e.innerHTML="";var t=typeof e.lastChild.getAttribute("multiple");return"boolean"!==t&&"string"!==t}),re=ne(function(e){return e.innerHTML="",!(!e.getElementsByClassName||!e.getElementsByClassName("e").length)&&(e.lastChild.className="e",2===e.getElementsByClassName("e").length)}),le=ne(function(e){e.id=E+0,e.innerHTML="",P.insertBefore(e,P.firstChild);var t=A.getElementsByName&&A.getElementsByName(E).length===2+A.getElementsByName(E+0).length;return g=!A.getElementById(E),P.removeChild(e),t});try{M.call(P.childNodes,0)[0].nodeType}catch(Me){M=function(e){for(var t,n=[];t=this[e];e++)n.push(t);return n}}n.matches=function(e,t){return n(e,null,null,t)},n.matchesSelector=function(e,t){return n(t,null,null,[e]).length>0},y=n.getText=function(e){var t,n="",a=0,o=e.nodeType;if(o){if(1===o||9===o||11===o){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=y(e)}else if(3===o||4===o)return e.nodeValue}else for(;t=e[a];a++)n+=y(t);return n},v=n.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},w=n.contains=P.contains?function(e,t){var n=9===e.nodeType?e.documentElement:e,a=t&&t.parentNode;return e===a||!!(a&&1===a.nodeType&&n.contains&&n.contains(a))}:P.compareDocumentPosition?function(e,t){return t&&!!(16&e.compareDocumentPosition(t))}:function(e,t){for(;t=t.parentNode;)if(t===e)return!0;return!1},n.attr=function(e,t){var n,a=v(e);return a||(t=t.toLowerCase()),b.attrHandle[t]?b.attrHandle[t](e):ie||a?e.getAttribute(t):(n=e.getAttributeNode(t))?"boolean"==typeof e[t]?e[t]?t:null:n.specified?n.value:null:null},b=n.selectors={cacheLength:50,createPseudo:L,match:te,order:new RegExp("ID|TAG"+(le?"|NAME":"")+(re?"|CLASS":"")),attrHandle:oe?{}:{href:function(e){return e.getAttribute("href",2)},type:function(e){return e.getAttribute("type")}},find:{ID:g?function(e,t,n){if(typeof t.getElementById!==x&&!n){var a=t.getElementById(e);return a&&a.parentNode?[a]:[]}}:function(e,n,a){if(typeof n.getElementById!==x&&!a){var o=n.getElementById(e);return o?o.id===e||typeof o.getAttributeNode!==x&&o.getAttributeNode("id").value===e?[o]:t:[]}},TAG:ae?function(e,t){if(typeof t.getElementsByTagName!==x)return t.getElementsByTagName(e)}:function(e,t){var n=t.getElementsByTagName(e);if("*"===e){for(var a,o=[],i=0;a=n[i];i++)1===a.nodeType&&o.push(a);return o}return n},NAME:function(e,t){if(typeof t.getElementsByName!==x)return t.getElementsByName(name)},CLASS:function(e,t,n){if(typeof t.getElementsByClassName!==x&&!n)return t.getElementsByClassName(e)}},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(ee,""),e[3]=(e[4]||e[5]||"").replace(ee,""),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1]?(e[2]||n.error(e[0]),e[3]=+(e[3]?e[4]+(e[5]||1):2*("even"===e[2]||"odd"===e[2])),e[4]=+(e[6]+e[7]||"odd"===e[2])):e[2]&&n.error(e[0]),e},PSEUDO:function(e,t,n){var a,o;return te.CHILD.test(e[0])?null:(e[3]?e[2]=e[3]:(a=e[4])&&(Y.test(a)&&(o=r(a,t,n,!0))&&(o=a.indexOf(")",a.length-o)-a.length)&&(a=a.slice(0,o),e[0]=e[0].slice(0,o)),e[2]=a),e.slice(0,3))}},filter:{ID:g?function(e){return e=e.replace(ee,""),function(t){return t.getAttribute("id")===e}}:function(e){return e=e.replace(ee,""),function(t){var n=typeof t.getAttributeNode!==x&&t.getAttributeNode("id");return n&&n.value===e}},TAG:function(e){return"*"===e?function(){return!0}:(e=e.replace(ee,"").toLowerCase(),function(t){return t.nodeName&&t.nodeName.toLowerCase()===e})},CLASS:function(e){var t=N[E][e];return t||(t=N(e,new RegExp("(^|"+$+")"+e+"("+$+"|$)"))),function(e){return t.test(e.className||typeof e.getAttribute!==x&&e.getAttribute("class")||"")}},ATTR:function(e,t,a){return t?function(o){var i=n.attr(o,e),r=i+"";if(null==i)return"!="===t;switch(t){case"=":return r===a;case"!=":return r!==a;case"^=":return a&&0===r.indexOf(a);case"*=":return a&&r.indexOf(a)>-1;case"$=":return a&&r.substr(r.length-a.length)===a;case"~=":return(" "+r+" ").indexOf(a)>-1;case"|=":return r===a||r.substr(0,a.length+1)===a+"-"}}:function(t){return null!=n.attr(t,e)}},CHILD:function(e,t,n,a){if("nth"===e){var o=F++;return function(e){var t,i,r=0,l=e;if(1===n&&0===a)return!0;if((t=e.parentNode)&&(t[E]!==o||!e.sizset)){for(l=t.firstChild;l&&(1!==l.nodeType||(l.sizset=++r,l!==e));l=l.nextSibling);t[E]=o}return i=e.sizset-a,0===n?0===i:i%n==0&&i/n>=0}}return function(t){var n=t;switch(e){case"only":case"first":for(;n=n.previousSibling;)if(1===n.nodeType)return!1;if("first"===e)return!0;n=t;case"last":for(;n=n.nextSibling;)if(1===n.nodeType)return!1;return!0}}},PSEUDO:function(e,t,a,o){var i,r=b.pseudos[e]||b.pseudos[e.toLowerCase()];return r||n.error("unsupported pseudo: "+e),r[E]?r(t,a,o):r.length>1?(i=[e,e,"",t],function(e){return r(e,0,i)}):r}},pseudos:{not:L(function(e,t,n){var a=k(e.replace(V,"$1"),t,n);return function(e){return!a(e)}}),enabled:function(e){return!1===e.disabled},disabled:function(e){return!0===e.disabled},checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},parent:function(e){return!b.pseudos.empty(e)},empty:function(e){var t;for(e=e.firstChild;e;){if(e.nodeName>"@"||3===(t=e.nodeType)||4===t)return!1;e=e.nextSibling}return!0},contains:L(function(e){return function(t){return(t.textContent||t.innerText||y(t)).indexOf(e)>-1}}),has:L(function(e){return function(t){return n(e,t).length>0}}),header:function(e){return J.test(e.nodeName)},text:function(e){var t,n;return"input"===e.nodeName.toLowerCase()&&"text"===(t=e.type)&&(null==(n=e.getAttribute("type"))||n.toLowerCase()===t)},radio:a("radio"),checkbox:a("checkbox"),file:a("file"),password:a("password"),image:a("image"),submit:o("submit"),reset:o("reset"),button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},input:function(e){return X.test(e.nodeName)},focus:function(e){var t=e.ownerDocument;return e===t.activeElement&&(!t.hasFocus||t.hasFocus())&&(!!e.type||!!e.href)},active:function(e){return e===e.ownerDocument.activeElement}},setFilters:{first:function(e,t,n){return n?e.slice(1):[e[0]]},last:function(e,t,n){var a=e.pop();return n?e:[a]},even:function(e,t,n){for(var a=[],o=n?1:0,i=e.length;o",e.querySelectorAll("[selected]").length||i.push("\\["+$+"*(?:checked|disabled|ismap|multiple|readonly|selected|value)"),e.querySelectorAll(":checked").length||i.push(":checked")}),ne(function(e){e.innerHTML="",e.querySelectorAll("[test^='']").length&&i.push("[*^$]="+$+"*(?:\"\"|'')"),e.innerHTML="",e.querySelectorAll(":enabled").length||i.push(":enabled",":disabled")}),i=i.length&&new RegExp(i.join("|")),m=function(e,n,o,l,s){if(!(l||s||i&&i.test(e)))if(9===n.nodeType)try{return D.apply(o,M.call(n.querySelectorAll(e),0)),o}catch(w){}else if(1===n.nodeType&&"object"!==n.nodeName.toLowerCase()){var u,c,d,_=n.getAttribute("id"),p=_||E,m=K.test(e)&&n.parentNode||n;for(_?p=p.replace(a,"\\$&"):n.setAttribute("id",p),p="[id='"+p+"']",c=0,d=(u=r(e,n,s)).length;c0})}(),b.setFilters.nth=b.setFilters.eq,b.filters=b.pseudos,n.attr=Z.attr,Z.find=n,Z.expr=n.selectors,Z.expr[":"]=Z.expr.pseudos,Z.unique=n.uniqueSort,Z.text=n.getText,Z.isXMLDoc=n.isXML,Z.contains=n.contains}(e);var Ie=/Until$/,Ne=/^(?:parents|prev(?:Until|All))/,Re=/^.[^:#\[\.,]*$/,Oe=Z.expr.match.needsContext,$e={children:!0,contents:!0,next:!0,prev:!0};Z.fn.extend({find:function(e){var t,n,a,o,i,r,l=this;if("string"!=typeof e)return Z(e).filter(function(){for(t=0,n=l.length;t0)for(o=a;o=0:Z.filter(e,this).length>0:this.filter(e).length>0)},closest:function(e,t){for(var n,a=0,o=this.length,i=[],r=Oe.test(e)||"string"!=typeof e?Z(e,t||this.context):0;a-1:Z.find.matchesSelector(n,e)){i.push(n);break}n=n.parentNode}return i=i.length>1?Z.unique(i):i,this.pushStack(i,"closest",e)},index:function(e){return e?"string"==typeof e?Z.inArray(this[0],Z(e)):Z.inArray(e.jquery?e[0]:e,this):this[0]&&this[0].parentNode?this.prevAll().length:-1},add:function(e,t){var n="string"==typeof e?Z(e,t):Z.makeArray(e&&e.nodeType?[e]:e),a=Z.merge(this.get(),n);return this.pushStack(l(n[0])||l(a[0])?a:Z.unique(a))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),Z.fn.andSelf=Z.fn.addBack,Z.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return Z.dir(e,"parentNode")},parentsUntil:function(e,t,n){return Z.dir(e,"parentNode",n)},next:function(e){return s(e,"nextSibling")},prev:function(e){return s(e,"previousSibling")},nextAll:function(e){return Z.dir(e,"nextSibling")},prevAll:function(e){return Z.dir(e,"previousSibling")},nextUntil:function(e,t,n){return Z.dir(e,"nextSibling",n)},prevUntil:function(e,t,n){return Z.dir(e,"previousSibling",n)},siblings:function(e){return Z.sibling((e.parentNode||{}).firstChild,e)},children:function(e){return Z.sibling(e.firstChild)},contents:function(e){return Z.nodeName(e,"iframe")?e.contentDocument||e.contentWindow.document:Z.merge([],e.childNodes)}},function(e,t){Z.fn[e]=function(n,a){var o=Z.map(this,t,n);return Ie.test(e)||(a=n),a&&"string"==typeof a&&(o=Z.filter(a,o)),o=this.length>1&&!$e[e]?Z.unique(o):o,this.length>1&&Ne.test(e)&&(o=o.reverse()),this.pushStack(o,e,Y.call(arguments).join(","))}}),Z.extend({filter:function(e,t,n){return n&&(e=":not("+e+")"),1===t.length?Z.find.matchesSelector(t[0],e)?[t[0]]:[]:Z.find.matches(e,t)},dir:function(e,n,a){for(var o=[],i=e[n];i&&9!==i.nodeType&&(a===t||1!==i.nodeType||!Z(i).is(a));)1===i.nodeType&&o.push(i),i=i[n];return o},sibling:function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n}});var qe="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",Be=/ jQuery\d+="(?:null|\d+)"/g,Ue=/^\s+/,ze=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,je=/<([\w:]+)/,Ve=/]","i"),Ke=/^(?:checkbox|radio)$/,Qe=/checked\s*(?:[^=]|=\s*.checked.)/i,Je=/\/(java|ecma)script/i,Ze=/^\s*\s*$/g,Xe={option:[1,""],legend:[1,""],thead:[1,""],tr:[2,""],td:[3,""],col:[2,""],area:[1,""],_default:[0,"",""]},et=c(U),tt=et.appendChild(U.createElement("div"));Xe.optgroup=Xe.option,Xe.tbody=Xe.tfoot=Xe.colgroup=Xe.caption=Xe.thead,Xe.th=Xe.td,Z.support.htmlSerialize||(Xe._default=[1,"X","
"]),Z.fn.extend({text:function(e){return Z.access(this,function(e){return e===t?Z.text(this):this.empty().append((this[0]&&this[0].ownerDocument||U).createTextNode(e))},null,e,arguments.length)},wrapAll:function(e){if(Z.isFunction(e))return this.each(function(t){Z(this).wrapAll(e.call(this,t))});if(this[0]){var t=Z(e,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstChild&&1===e.firstChild.nodeType;)e=e.firstChild;return e}).append(this)}return this},wrapInner:function(e){return Z.isFunction(e)?this.each(function(t){Z(this).wrapInner(e.call(this,t))}):this.each(function(){var t=Z(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=Z.isFunction(e);return this.each(function(n){Z(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(){return this.parent().each(function(){Z.nodeName(this,"body")||Z(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(e){(1===this.nodeType||11===this.nodeType)&&this.appendChild(e)})},prepend:function(){return this.domManip(arguments,!0,function(e){(1===this.nodeType||11===this.nodeType)&&this.insertBefore(e,this.firstChild)})},before:function(){if(!l(this[0]))return this.domManip(arguments,!1,function(e){this.parentNode.insertBefore(e,this)});if(arguments.length){var e=Z.clean(arguments);return this.pushStack(Z.merge(e,this),"before",this.selector)}},after:function(){if(!l(this[0]))return this.domManip(arguments,!1,function(e){this.parentNode.insertBefore(e,this.nextSibling)});if(arguments.length){var e=Z.clean(arguments);return this.pushStack(Z.merge(this,e),"after",this.selector)}},remove:function(e,t){for(var n,a=0;null!=(n=this[a]);a++)e&&!Z.filter(e,[n]).length||(!t&&1===n.nodeType&&(Z.cleanData(n.getElementsByTagName("*")),Z.cleanData([n])),n.parentNode&&n.parentNode.removeChild(n));return this},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)for(1===e.nodeType&&Z.cleanData(e.getElementsByTagName("*"));e.firstChild;)e.removeChild(e.firstChild);return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return Z.clone(this,e,t)})},html:function(e){return Z.access(this,function(e){var n=this[0]||{},a=0,o=this.length;if(e===t)return 1===n.nodeType?n.innerHTML.replace(Be,""):t;if("string"==typeof e&&!We.test(e)&&(Z.support.htmlSerialize||!Ge.test(e))&&(Z.support.leadingWhitespace||!Ue.test(e))&&!Xe[(je.exec(e)||["",""])[1].toLowerCase()]){e=e.replace(ze,"<$1>$2>");try{for(;a1&&"string"==typeof u&&Qe.test(u))return this.each(function(){Z(this).domManip(e,n,a)});if(Z.isFunction(u))return this.each(function(o){var i=Z(this);e[0]=u.call(this,o,n?i.html():t),i.domManip(e,n,a)});if(this[0]){if(i=(r=(o=Z.buildFragment(e,this,c)).fragment).firstChild,1===r.childNodes.length&&(r=i),i)for(n=n&&Z.nodeName(i,"tr"),l=o.cacheable||_-1;s<_;s++)a.call(n&&Z.nodeName(this[s],"table")?d(this[s],"tbody"):this[s],s===l?r:Z.clone(r,!0,!0));r=i=null,c.length&&Z.each(c,function(e,t){t.src?Z.ajax?Z.ajax({url:t.src,type:"GET",dataType:"script",async:!1,global:!1,throws:!0}):Z.error("no ajax"):Z.globalEval((t.text||t.textContent||t.innerHTML||"").replace(Ze,"")),t.parentNode&&t.parentNode.removeChild(t)})}return this}}),Z.buildFragment=function(e,n,a){var o,i,r,l=e[0];return n=(n=!(n=n||U).nodeType&&n[0]||n).ownerDocument||n,
1===e.length&&"string"==typeof l&&l.length<512&&n===U&&"<"===l.charAt(0)&&!Ye.test(l)&&(Z.support.checkClone||!Qe.test(l))&&(Z.support.html5Clone||!Ge.test(l))&&(i=!0,r=(o=Z.fragments[l])!==t),o||(o=n.createDocumentFragment(),Z.clean(e,n,o,a),i&&(Z.fragments[l]=r&&o)),{fragment:o,cacheable:i}},Z.fragments={},Z.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){Z.fn[e]=function(n){var a,o=0,i=[],r=Z(n),l=r.length,s=1===this.length&&this[0].parentNode;if((null==s||s&&11===s.nodeType&&1===s.childNodes.length)&&1===l)return r[t](this[0]),this;for(;o0?this.clone(!0):this).get(),Z(r[o])[t](a),i=i.concat(a);return this.pushStack(i,e,r.selector)}}),Z.extend({clone:function(e,t,n){var a,o,i,r;if(Z.support.html5Clone||Z.isXMLDoc(e)||!Ge.test("<"+e.nodeName+">")?r=e.cloneNode(!0):(tt.innerHTML=e.outerHTML,tt.removeChild(r=tt.firstChild)),!(Z.support.noCloneEvent&&Z.support.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||Z.isXMLDoc(e)))for(p(e,r),a=m(e),o=m(r),i=0;a[i];++i)o[i]&&p(a[i],o[i]);if(t&&(_(e,r),n))for(a=m(e),o=m(r),i=0;a[i];++i)_(a[i],o[i]);return a=o=null,r},clean:function(e,t,n,a){var o,i,r,l,s,u,d,_,p,m,f,g=t===U&&et,b=[];for(t&&"undefined"!=typeof t.createDocumentFragment||(t=U),o=0;null!=(r=e[o]);o++)if("number"==typeof r&&(r+=""),r){if("string"==typeof r)if(He.test(r)){for(g=g||c(t),d=t.createElement("div"),g.appendChild(d),r=r.replace(ze,"<$1>$2>"),l=(je.exec(r)||["",""])[1].toLowerCase(),u=(s=Xe[l]||Xe._default)[0],d.innerHTML=s[1]+r+s[2];u--;)d=d.lastChild;if(!Z.support.tbody)for(_=Ve.test(r),i=(p="table"!==l||_?""!==s[1]||_?[]:d.childNodes:d.firstChild&&d.firstChild.childNodes).length-1;i>=0;--i)Z.nodeName(p[i],"tbody")&&!p[i].childNodes.length&&p[i].parentNode.removeChild(p[i]);!Z.support.leadingWhitespace&&Ue.test(r)&&d.insertBefore(t.createTextNode(Ue.exec(r)[0]),d.firstChild),r=d.childNodes,d.parentNode.removeChild(d)}else r=t.createTextNode(r);r.nodeType?b.push(r):Z.merge(b,r)}if(d&&(r=d=g=null),!Z.support.appendChecked)for(o=0;null!=(r=b[o]);o++)Z.nodeName(r,"input")?h(r):"undefined"!=typeof r.getElementsByTagName&&Z.grep(r.getElementsByTagName("input"),h);if(n)for(m=function(e){if(!e.type||Je.test(e.type))return a?a.push(e.parentNode?e.parentNode.removeChild(e):e):n.appendChild(e)},o=0;null!=(r=b[o]);o++)Z.nodeName(r,"script")&&m(r)||(n.appendChild(r),"undefined"!=typeof r.getElementsByTagName&&(f=Z.grep(Z.merge([],r.getElementsByTagName("script")),m),b.splice.apply(b,[o+1,0].concat(f)),o+=f.length));return b},cleanData:function(e,t){for(var n,a,o,i,r=0,l=Z.expando,s=Z.cache,u=Z.support.deleteExpando,c=Z.event.special;null!=(o=e[r]);r++)if((t||Z.acceptData(o))&&(n=(a=o[l])&&s[a])){if(n.events)for(i in n.events)c[i]?Z.event.remove(o,i):Z.removeEvent(o,i,n.handle);s[a]&&(delete s[a],u?delete o[l]:o.removeAttribute?o.removeAttribute(l):o[l]=null,Z.deletedIds.push(a))}}}),function(){var e,t;Z.uaMatch=function(e){e=e.toLowerCase();var t=/(chrome)[ \/]([\w.]+)/.exec(e)||/(webkit)[ \/]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(e)||/(msie) ([\w.]+)/.exec(e)||e.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(e)||[];return{browser:t[1]||"",version:t[2]||"0"}},t={},(e=Z.uaMatch(j.userAgent)).browser&&(t[e.browser]=!0,t.version=e.version),t.chrome?t.webkit=!0:t.webkit&&(t.safari=!0),Z.browser=t,Z.sub=function(){function e(t,n){return new e.fn.init(t,n)}Z.extend(!0,e,this),e.superclass=this,e.fn=e.prototype=this(),e.fn.constructor=e,e.sub=this.sub,e.fn.init=function(n,a){return a&&a instanceof Z&&!(a instanceof e)&&(a=e(a)),Z.fn.init.call(this,n,a,t)},e.fn.init.prototype=e.fn;var t=e(U);return e}}();var nt,at,ot,it=/alpha\([^)]*\)/i,rt=/opacity=([^)]*)/,lt=/^(top|right|bottom|left)$/,st=/^(none|table(?!-c[ea]).+)/,ut=/^margin/,ct=new RegExp("^("+X+")(.*)$","i"),dt=new RegExp("^("+X+")(?!px)[a-z%]+$","i"),_t=new RegExp("^([-+])=("+X+")","i"),pt={},mt={position:"absolute",visibility:"hidden",display:"block"},ht={letterSpacing:0,fontWeight:400},ft=["Top","Right","Bottom","Left"],gt=["Webkit","O","Moz","ms"],bt=Z.fn.toggle;Z.fn.extend({css:function(e,n){return Z.access(this,function(e,n,a){return a!==t?Z.style(e,n,a):Z.css(e,n)},e,n,arguments.length>1)},show:function(){return b(this,!0)},hide:function(){return b(this)},toggle:function(e,t){var n="boolean"==typeof e;return Z.isFunction(e)&&Z.isFunction(t)?bt.apply(this,arguments):this.each(function(){(n?e:g(this))?Z(this).show():Z(this).hide()})}}),Z.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=nt(e,"opacity");return""===n?"1":n}}}},cssNumber:{fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:Z.support.cssFloat?"cssFloat":"styleFloat"},style:function(e,n,a,o){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,r,l,s=Z.camelCase(n),u=e.style;if(n=Z.cssProps[s]||(Z.cssProps[s]=f(u,s)),l=Z.cssHooks[n]||Z.cssHooks[s],a===t)return l&&"get"in l&&(i=l.get(e,!1,o))!==t?i:u[n];if("string"===(r=typeof a)&&(i=_t.exec(a))&&(a=(i[1]+1)*i[2]+parseFloat(Z.css(e,n)),r="number"),!(null==a||"number"===r&&isNaN(a)||("number"===r&&!Z.cssNumber[s]&&(a+="px"),l&&"set"in l&&(a=l.set(e,a,o))===t)))try{u[n]=a}catch(Y){}}},css:function(e,n,a,o){var i,r,l,s=Z.camelCase(n);return n=Z.cssProps[s]||(Z.cssProps[s]=f(e.style,s)),(l=Z.cssHooks[n]||Z.cssHooks[s])&&"get"in l&&(i=l.get(e,!0,o)),i===t&&(i=nt(e,n)),"normal"===i&&n in ht&&(i=ht[n]),a||o!==t?(r=parseFloat(i),a||Z.isNumeric(r)?r||0:i):i},swap:function(e,t,n){var a,o,i={};for(o in t)i[o]=e.style[o],e.style[o]=t[o];for(o in a=n.call(e),t)e.style[o]=i[o];return a}}),e.getComputedStyle?nt=function(t,n){var a,o,i,r,l=e.getComputedStyle(t,null),s=t.style;return l&&(""===(a=l[n])&&!Z.contains(t.ownerDocument,t)&&(a=Z.style(t,n)),dt.test(a)&&ut.test(n)&&(o=s.width,i=s.minWidth,r=s.maxWidth,s.minWidth=s.maxWidth=s.width=a,a=l.width,s.width=o,s.minWidth=i,s.maxWidth=r)),a}:U.documentElement.currentStyle&&(nt=function(e,t){var n,a,o=e.currentStyle&&e.currentStyle[t],i=e.style;return null==o&&i&&i[t]&&(o=i[t]),dt.test(o)&&!lt.test(t)&&(n=i.left,(a=e.runtimeStyle&&e.runtimeStyle.left)&&(e.runtimeStyle.left=e.currentStyle.left),i.left="fontSize"===t?"1em":o,o=i.pixelLeft+"px",i.left=n,a&&(e.runtimeStyle.left=a)),""===o?"auto":o}),Z.each(["height","width"],function(e,t){Z.cssHooks[t]={get:function(e,n,a){if(n)return 0===e.offsetWidth&&st.test(nt(e,"display"))?Z.swap(e,mt,function(){return w(e,t,a)}):w(e,t,a)},set:function(e,n,a){return y(e,n,a?v(e,t,a,Z.support.boxSizing&&"border-box"===Z.css(e,"boxSizing")):0)}}}),Z.support.opacity||(Z.cssHooks.opacity={get:function(e,t){return rt.test((t&&e.currentStyle?e.currentStyle.filter:e.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":t?"1":""},set:function(e,t){var n=e.style,a=e.currentStyle,o=Z.isNumeric(t)?"alpha(opacity="+100*t+")":"",i=a&&a.filter||n.filter||"";n.zoom=1,t>=1&&""===Z.trim(i.replace(it,""))&&n.removeAttribute&&(n.removeAttribute("filter"),a&&!a.filter)||(n.filter=it.test(i)?i.replace(it,o):i+" "+o)}}),Z(function(){Z.support.reliableMarginRight||(Z.cssHooks.marginRight={get:function(e,t){return Z.swap(e,{display:"inline-block"},function(){if(t)return nt(e,"marginRight")})}}),!Z.support.pixelPosition&&Z.fn.position&&Z.each(["top","left"],function(e,t){Z.cssHooks[t]={get:function(e,n){if(n){var a=nt(e,t);return dt.test(a)?Z(e).position()[t]+"px":a}}}})}),Z.expr&&Z.expr.filters&&(Z.expr.filters.hidden=function(e){return 0===e.offsetWidth&&0===e.offsetHeight||!Z.support.reliableHiddenOffsets&&"none"===(e.style&&e.style.display||nt(e,"display"))},Z.expr.filters.visible=function(e){return!Z.expr.filters.hidden(e)}),Z.each({margin:"",padding:"",border:"Width"},function(e,t){Z.cssHooks[e+t]={expand:function(n){var a,o="string"==typeof n?n.split(" "):[n],i={};for(a=0;a<4;a++)i[e+ft[a]+t]=o[a]||o[a-2]||o[0];return i}},ut.test(e)||(Z.cssHooks[e+t].set=y)});var yt=/%20/g,vt=/\[\]$/,wt=/\r?\n/g,kt=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,St=/^(?:select|textarea)/i;Z.fn.extend({serialize:function(){return Z.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?Z.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||St.test(this.nodeName)||kt.test(this.type))}).map(function(e,t){var n=Z(this).val();return null==n?null:Z.isArray(n)?Z.map(n,function(e){return{name:t.name,value:e.replace(wt,"\r\n")}}):{name:t.name,value:n.replace(wt,"\r\n")}}).get()}}),Z.param=function(e,n){var a,o=[],i=function(e,t){t=Z.isFunction(t)?t():null==t?"":t,o[o.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)};if(n===t&&(n=Z.ajaxSettings&&Z.ajaxSettings.traditional),Z.isArray(e)||e.jquery&&!Z.isPlainObject(e))Z.each(e,function(){i(this.name,this.value)});else for(a in e)S(a,e[a],n,i);return o.join("&").replace(yt,"+")};var Tt,Ct,xt=/#.*$/,Et=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,At=/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/,Pt=/^(?:GET|HEAD)$/,Ft=/^\/\//,Mt=/\?/,Dt=/'),$(".ccNumberWrap [data-stripe=number]").replaceWith($('')),$(".ccCVCWrap [data-stripe=cvc]").replaceWith($('')),$($('')).insertBefore(".ccMonthWrap"),$(".ccYearWrap, .ccMonthWrap").remove();var t=$("#cfAR");void 0!==t&&t.append($('').val(hostedFieldTokenId)),setTimeout(function(){var e={hostedPaymentFields:{ccn:"ccn",cvv:"cvv",exp:"exp"},onFieldEventHandler:{onError:function(e){window.ClickFunnels.OrderDeclinedMessage.show("Error with card: "+e+". Please check your data and try again."),$("[href=#submit-form]").prop("disabled",!0)},onValid:function(){window.ClickFunnels.OrderDeclinedMessage.hide(),$("[href=#submit-form]").prop("disabled",!1)}},style:{input:{"font-size":"14px","line-height":"1.42857143"}},ccnPlaceHolder:"1234 5678 9012 3456",cvvPlaceHolder:"123",expPlaceHolder:"MM/YY"};bluesnap.hostedPaymentFieldsCreation(hostedFieldTokenId,e)},3e3)}}function t(e){"undefined"!=typeof bluesnap&&(e.preventDefault(),bluesnap.submitCredentials(function(e){console.log("the card type is "+e.ccType+", last 4 digits are "+e.last4Digits+", exp is "+e.exp+" and issuing Country is "+e.issuingCountry+", after that I can call final submit"),$("#cfAR").get(0).submit()}))}window.ClickFunnels=window.ClickFunnels||{},window.ClickFunnels.OrderPage=window.ClickFunnels.OrderPage||{},window.ClickFunnels.OrderPage.Bluesnap=window.ClickFunnels.OrderPage.Bluesnap||{},window.ClickFunnels.OrderPage.Bluesnap.init=e,window.ClickFunnels.OrderPage.Bluesnap.handleFormSubmit=t}(),function(){function e(){switch(this_url=$("head").data("thisUrl"),!0){case/(localhost|ngrok)/.test(this_url):root_url="";break;default:root_url=document.location.origin}nmi_url=root_url+"/pages/"+page_key+"/payment_gateways/nmi/step-1",$("[data-stripe=number]").prop("disabled",!0),$("[data-stripe=cvc]").prop("disabled",!0),$("[data-stripe=exp]").first().val()?$("[data-stripe=exp]").prop("disabled",!0):($("input[data-stripe=exp-month]").prop("disabled",!0),$("[data-stripe=exp-month]").prop("disabled",!0),$("[data-stripe=exp-year]").prop("disabled",!0)),$.ajax({type:"POST",url:nmi_url,data:$("#cfAR").serialize(),success:function(e){return $("#cfAR").attr("action",e),$("[data-stripe=exp]").first().val()?$("[data-stripe=exp]").prop("disabled",!1).attr("name","billing-cc-exp"):($("input[data-stripe=exp-month]").prop("disabled",!1).attr("name","billing-cc-exp"),$("input[name=billing-cc-exp]").val($("[data-stripe=exp-month]").val()+$("[data-stripe=exp-year]").val().slice(-2))),$("[data-stripe=number]").prop("disabled",!1).attr("name","billing-cc-number"),$("[data-stripe=cvc]").prop("disabled",!1).attr("name","billing-cvv"),$("#cfAR").get(0).submit(),!0},error:function(){return $("[data-href-original]").each(function(){$(this).attr("href",$(this).data("href-original")),$(this).removeAttr("data-href-original")}),window.ClickFunnels.OrderDeclinedMessage.show("Error with card"),window.location="#order-declined-message",$("button").prop("disabled",!1),$("[href=#submit-form], [href=#submit-form-2step-order]").text("Submit and Retry"),$("[href=#submit-form], [href=#submit-form-2step-order]").prop("disabled",!1),!1}})}window.ClickFunnels=window.ClickFunnels||{},window.ClickFunnels.OrderPage=window.ClickFunnels.OrderPage||{},window.ClickFunnels.OrderPage.NMI=window.ClickFunnels.OrderPage.NMI||{},window.ClickFunnels.OrderPage.NMI.handleFormSubmit=e}(),function(){function e(e){return $("#btform")[0]&&""==$("#cfAR").find('[name="purchase[payment_method_nonce]"]').val()?($("#btform input[type=submit]").first().click(),setTimeout(function(){return $("#cfAR").find('[name="purchase[payment_method_nonce]"]').val($('[name="purchase[payment_method_nonce]"]').first().val()),""==$("#cfAR").find('[name="purchase[payment_method_nonce]"]').val()?($("[data-href-original]").each(function(){$(this).attr("href",$(this).data("href-original")),$(this).removeAttr("data-href-original")}),window.ClickFunnels.OrderDeclinedMessage.show("Error with card"),window.location="#order-declined-message",$("button").prop("disabled",!1),$("[href=#submit-form], [href=#submit-form-2step-order]").text("Submit and Retry"),$("[href=#submit-form], [href=#submit-form-2step-order]").prop("disabled",!1),!1):($("#cfAR").get(0).submit(),!0)},5e3),!1):"undefined"==typeof recurly_publishable_key_check||($("body").append(''),setInterval(function(){""==recurly.config.publicKey&&(recurly.configure(recurly_publishable_key_check),recurly.token($("#cfAR").get(0),t))},1e3),e.preventDefault(),!1)}function t(e,t){var n=$("#cfAR");if(void 0!==n)if(e)console.log(e),$("[data-href-original]").each(function(){$(this).attr("href",$(this).data("href-original")),$(this).removeAttr("data-href-original")}),message=e.message,"first_name"==e.fields[0]&&(message+="\n First Name and Last Name fields are Required for Recurly"),window.ClickFunnels.OrderDeclinedMessage.show(message),window.location="#order-declined-message",$("button").prop("disabled",!1),$("[href=#submit-form], [href=#submit-form-2step-order]").text("Submit and Retry"),$("[href=#submit-form], [href=#submit-form-2step-order]").prop("disabled",!1);else{console.log(t);t=t.id;n.append($('').val(t)),n.get(0).submit()}}window.ClickFunnels=window.ClickFunnels||{},window.ClickFunnels.OrderPage=window.ClickFunnels.OrderPage||{},window.ClickFunnels.OrderPage.Default=window.ClickFunnels.OrderPage.Default||{},window.ClickFunnels.OrderPage.Default.handleFormSubmit=e}(),function(){function e(e){let t=document.querySelector('meta[name="'+e+'"]');if(t)return t.content}function t(){return e("stripe_publishable_key")}function n(){return e("stripe_user_id")}window.ClickFunnels=window.ClickFunnels||{},window.ClickFunnels.OrderPage=window.ClickFunnels.OrderPage||{},window.ClickFunnels.OrderPage.Stripe=window.ClickFunnels.OrderPage.Stripe||{},window.addEventListener("load",()=>{window.ClickFunnels.OrderPage.Stripe.stripePublishableKey=t(),window.ClickFunnels.OrderPage.Stripe.stripeAccountId=n()})}(),function(){function e(){if(!window.stripe)return void setTimeout(e,200);const o=a("cfpiclientkey"),i=a("cfpm");o&&"null"!==o&&i&&"null"!==i&&(t(),stripe.confirmCardPayment(o,{payment_method:i}).then(function(e){if(e.error)window.ClickFunnels.OrderDeclinedMessage.show(e.error.message),n();else{const t=e.paymentIntent;let n=document.createElement("form");n.method="POST";let a=document.createElement("input");a.name="purchase_confirmation[payment_intent_id]",a.value=t.id,n.appendChild(a),document.body.appendChild(n),n.submit()}}))}function t(){window.ClickFunnels.OrderPage.LoadingScreen.show(),window.ClickFunnels.CFPeOrders.SubmitButton.disable("Processing...")}function n(){window.ClickFunnels.OrderPage.LoadingScreen.hide(),window.ClickFunnels.CFPeOrders.SubmitButton.enable()}const a=window.CFUtils.getURLParameter;window.ClickFunnels=window.ClickFunnels||{},window.ClickFunnels.OrderPage=window.ClickFunnels.OrderPage||{},window.ClickFunnels.OrderPage.Stripe=window.ClickFunnels.OrderPage.Stripe||{},window.ClickFunnels.OrderPage.Stripe.confirmIfNeeded=e,window.addEventListener("load",()=>{e()})}(),function(){function e(){return null===u&&(u=document.querySelectorAll('[href="#submit-form"], [href="#submit-form-2step-order"]')),u}function t(t){let n=e();t=t||"Submitting...",i(),n.forEach(e=>{let n=e.textContent;e.getAttribute("data-previous-text")===undefined&&e.setAttribute("data-previous-text",n),e.textContent=t,e.setAttribute("disabled",!0),e.setAttribute("href",s)})}function n(t){e().forEach(e=>{(t=t||e.getAttribute("data-previous-text"))&&t.length>0&&(e.textContent=t),e.setAttribute("disabled",!1)}),r()}function a(){e().forEach(e=>{null===e.getAttribute("data-previous-content")&&e.setAttribute("data-previous-content",e.innerHTML)})}function o(){let t=e();setTimeout(l,300,t)}function i(){e().forEach(e=>{e.href!==s&&e.setAttribute("data-href-original",e.hash)})}function r(){e().forEach(e=>{const t=e.getAttribute("data-href-original");e.setAttribute("href",t)})}function l(){e().forEach(e=>{var t=e.getAttribute("data-previous-content");t&&(e.innerHTML=t)})}const s="javascript:void(0)";let u=null;window.ClickFunnels=window.ClickFunnels||{},window.ClickFunnels.CFPeOrders=window.ClickFunnels.CFPeOrders||{},window.ClickFunnels.CFPeOrders.SubmitButton=window.ClickFunnels.SubmitButton||{},window.ClickFunnels.CFPeOrders.SubmitButton.disable=t,window.ClickFunnels.CFPeOrders.SubmitButton.enable=n,window.ClickFunnels.CFPeOrders.SubmitButton.storeContent=a,window.ClickFunnels.CFPeOrders.SubmitButton.replacePreviousContent=o,window.addEventListener("DOMContentLoaded",function(){a(),i()})}(),function(){function e(){var e,t=document.querySelectorAll(".elOrderProductVariationSelect");for(e=0;e0?t.setAttribute("disabled","disabled"):t.removeAttribute("disabled")}function u(e){if(y){var t=m(),n=y[t],a=n[e];return{productId:t,productName:n.product_name,productCurrency:n.product_currency,variantId:a.variant_id,imageUrl:a.image_url,imageAltText:a.image_alt_text,priceCents:a.price_cents,formattedPrice:a.formatted_price,description:a.description,isActive:a.is_active,valueIds:a.value_ids,formattedValueNames:a.formatted_value_names}}}function c(e){return p(d(e))}function d(e){var t,n=[],a=e.querySelectorAll(".elOrderProductVariationSelectValue");if(0!=a.length){for(t=0;t"+e.formattedValueNames),t.find(".pvors-product-price").html(e.formattedPrice),t.data("product-variant",e),t.insertBefore(c),t.show(),a=(n=t.find(".pvors-product-quantity select")).find("option"),i=1;i<=f;i++)(o=a.clone()).val(i+""),o.text(i),n.append(o);s(),n.val(h),d(e,h)}function s(){$('[data-title="cf-pv-order-summary"]').find(".elProductVariationOrderSummaryEmpty").hide()}function u(){0==$(".elProductVariationOrderSummaryProducts").length&&$('[data-title="cf-pv-order-summary"]').find(".elProductVariationOrderSummaryEmpty").show()}function c(){$('[data-title="cf-pv-order-summary"]').on("change",".elProductVariationsOrderSummary .elOrderProductQuantitySelect",function(){var e=$(this);d(e.parents(".elProductVariationOrderSummaryProducts").data("product-variant"),e.val())})}function d(e,t){var n=e.productId,o=e.variantId,i=$('[name="purchase[product_variants][][product_variant_id]"][value='+o+"]"),r=i.prev("input"),l=i.next("input");l[0]&&(0==t?(i.attr("disabled",!0),r.attr("disabled",!0),l.attr("disabled",!0),l[0].setAttribute("value",0)):(i.attr("disabled",!1),r.attr("disabled",!1),l.attr("disabled",!1),r.attr("checked",!0),i.attr("checked",!0),l[0].setAttribute("value",t))),g[n][o].qty=t,a(e),_(),cfpeRebuildOrderSummary()}function _(){var e=$('[data-title="cf-pv-order-summary"]'),t=0,n=y;Object.keys(g).forEach(function(e){var a=g[e];Object.keys(a).forEach(function(e){var o=a[e].priceCents,i=a[e].qty;t+=o*i,n=n||a[e].productCurrency})});var a=e.find(".pvors-product-sub-total-price"),o=e.find(".pvors-product-sales-tax-price"),i=$('[data-title="cf-pv-order-summary"]').find(".elProductVariationOrderSummarySalesTax"),r=e.find(".pvors-product-total-price");t+=b.priceInCents||0,v=t+w+k,window.ClickFunnels.OrderProductVariationSummary.orderTotal=v,window.ClickFunnels.OrderProductVariationSummary.details={total:v,subTotal:t,tax:w,shipping:k,currency:n},a.html(window.CFUtils.displayAmountWithCurrency(t,n)),w?(o.html(window.CFUtils.displayAmountWithCurrency(w,n)),i.show()):i.hide(),r.html(window.CFUtils.displayAmountWithCurrency(v,n))}function p(e,t){if(e&&!isNaN(e)){var n=e*window.CFUtils.currencyFractional(t);w=n}else w=0;_()}function m(e,t){return e.filter(function(e,n){var a=$(n);return(a.data("product-variant")&&a.data("product-variant").variantId)==t})[0]}function h(e){var t,n=$('[data-title="cf-pv-order-summary"]').find(".elProductVariationOrderSummaryBumpProduct"),a=n.find(".pvors-bump-product-name"),o=n.find(".pvors-bump-product-price"),l=$('#cfAR [name="purchase[product_ids][]"][value="'+e.val()+'"]'),c=l.data("product-label"),d=l.data("product-amount"),p=l.data("product-currency-code"),m=window.CFUtils.displayAmountWithCurrency(d,p,{isPriceInCents:!1});e&&e.is(":checked")?(a.text(c),o.text(m),n.show(),s(),i({qty:1,priceInCents:d*window.CFUtils.currencyFractional(p),displayPrice:m,tax:t,name:c,currency:p})):(n.hide(),u(),r()),_()}var f=50,g={},b={},y="USD",v=0,w=0,k=0;window.ClickFunnels=window.ClickFunnels||{},window.ClickFunnels.OrderProductVariationSummary={init:e,setBumpProduct:h,updateTax:p,orderTotal:v}}(),1!=cfpeorders){function getURLParameter(e){return decodeURIComponent((RegExp(e+"=(.+?)(&|$)").exec(location.search)||[,null])[1])}function cfpeRebuildOrderSummary(){var e=(window.cfpe||{}).prodPrices||{},t='[data-de-type="orpo"]',n='[data-title="cf-order-summary"] .elOrderProductOptions:not(table):not(:has(table))',a='[data-title="cf-order-summary"] table.elOrderProductOptions';$(".qty_select").length;$(".o2step_wrapper").length>0?(t=".o2step_step2",n+=', .o2step_wrapper .elOrderProductOptions[data-title="cf-order-summary"]:not(table)',a+=', .o2step_wrapper table.elOrderProductOptions[data-title="cf-order-summary"]'):$('[data-de-type="orpoi"]').length&&(t='[data-de-type="orpoi"]'),$('[data-title="cf-order-summary"]').hide(),0==$('[data-title="cf-order-summary"] .qty-head').length&&$(".qty_select").length>0&&$('[data-title="cf-order-summary"] .elOrderProductOptinLabel .elOrderProductOptinItem').before('Qty
');var o=$("").addClass("clearfix elOrderProductOptinProducts");o.append($("").addClass("pull-left elOrderProductOptinProductName product-name").css("width","inherit")),o.append($("").addClass("pull-right elOrderProductOptinPrice product-price"));var i=$("
").addClass("clearfix elOrderProductOptinProducts");i.append($(" | ").addClass("pull-left elOrderProductOptinProductName product-name").css("width","inherit")),i.append($(" | ").addClass("pull-right elOrderProductOptinPrice product-price"));var r=0,l="USD";$('[data-title="cf-order-summary"] .elOrderProductOptinProducts').remove();var s={};$('#cfAR [name="purchase[product_ids][]"]:checked').each(function(){var e=$(this).val();s.hasOwnProperty(e)?s[e].qty++:s[e]={qty:1},s[e].taxable=$(this).data("product-taxable")||!1,s[e].subscription="onetime"!=$(this).data("product-payment-type")}),$.each(s,function(s,u){var{qty:c}=u,d=s,_=$('#cfAR input[name="purchase[product_ids][]"][value="'+d+'"]').first();_.length||(_=$(t+' [name="purchase[product_id]"][value="'+d+'"]'));var p=_.data("product-name"),m=0,h=c*(m=e.hasOwnProperty(d)?e[d].toFixed(2):parseFloat(_.data("product-amount")||0).toFixed(2)),f=_.data("product-currency-code");l=f;m.toLocaleString(undefined,{style:"currency",currency:f});var g=p;$(".qty_select").length>0&&(g=''+c+""+p);var b="";$.isNumeric(h)&&(b=f?h.toLocaleString(undefined,{style:"currency",currency:f}):h+"");var y=_.data("product-display-amount");void 0!==y&&(b=y),$currTemplate=o.clone(),$currTemplate.find(".product-name").html(g),$currTemplate.find(".product-price").html(b),$currTemplate.appendTo($(n)),$currTemplateTable=i.clone(),$currTemplateTable.find(".product-name").html(g),$currTemplateTable.find(".product-price").html(b),$currTemplateTable.appendTo($(a)),r+=h}),r+=window.ClickFunnels.OrderProductVariationSummary.orderTotal,window.cfpe=window.cfpe||{},window.cfpe.orderTotal=r,window.cfpe.orderHasSubscription=!1,window.cfpe.orderCurrency=l,window.cfpe.cartProds=s||{},window.cfpe.cartVariants=window.cfpe.cartVariants||[],Object.keys(s).forEach(function(e){s[e]&&1==s[e].subscription&&(window.cfpe.orderHasSubscription=!0)}),r?ClickFunnels.CalculateTaxes.calcTaxesAfterProductChange(s):0==s.length&&($currTemplate=o.clone(),$currTemplate.find(".product-name").html("Please Select Your Purchase"),$currTemplate.find(".product-price").html(""),$currTemplate.appendTo($(n)),$currTemplateTable=i.clone(),$currTemplateTable.find(".product-name").html("Please Select Your Purchase"),$currTemplateTable.find(".product-price").html(""),$currTemplateTable.appendTo($(a))),$('[data-title*="cf-order-summary"]').show()}$(".elOrderProductOptionsWrapper, .elProductVariationsOrderSummary").each(function(){$(this).wrap("")}),jQuery(function(){$('.elOrderProductOptions:not(:has(input,select), [data-de-type="ors"] div.elOrderProductOptions), [data-de-type="ors"]').attr("data-title","cf-order-summary"),$('[data-de-type="pvors"] div.elProductVariationsOrderSummary, [data-de-type="pvors"]').attr("data-title","cf-pv-order-summary"),$("#bump-offer").off(),$('input[name="purchase[product_id]"], input[name="order[product_ids][]"], input[name="purchase[product_ids][]"]').not("#cfAR input").on("change",function(){if("purchase[product_id]"==this.name){var e=$('input[name="purchase[product_id]"]').not("#cfAR input");e.prop("checked",!1),e.filter('[value="'+this.value+'"]').prop("checked",!0),$('.elProductOptionsBox option[value="'+this.value+'"], .elOrderProductOptionsSelect option[value="'+this.value+'"]').attr("selected","selected"),""!==$(this).data("payment-gateway-type")&&"subscription"===$(this).data("product-payment-type")&&-1!==$(this).data("payment-gateway-type").toLowerCase().indexOf("paypal")?($('input[name="purchase[product_ids][]"]').not("#cfAR input").prop("checked",!1),$(".dashed.orderFormBump").hide()):""!==$(this).data("payment-gateway-type")&&"onetime"!==$(this).data("product-payment-type")&&-1!==$(this).data("payment-gateway-type").toLowerCase().indexOf("paypal")||$(".dashed.orderFormBump").show()}else"purchase[product_ids][]"==this.name&&$('input[name="purchase[product_ids][]"]').not("#cfAR input").prop("checked",this.checked);$('input[name="purchase[product_id]"]:not(:checked), input[name="purchase[product_ids][]"]:not(:checked)').not("#cfAR input").each(function(){"bump-offer"!==$(this).attr("id")?$('#cfAR span[data-cf-product-template="true"]:not(.hide) input[name="purchase[product_ids][]"]:checkbox[value='+$(this).val()+"]").attr("checked",!1):$('#cfAR input[name="purchase[product_ids][]"]:checkbox[value='+$(this).val()+"]").attr("checked",!1)}),$(this).attr("checked")&&($('#cfAR input[name="'+$(this).attr("name")+'"]:checkbox[value='+$(this).val()+"]").attr("checked",!0),$('#cfAR input[name="purchase[product_ids][]"]:checkbox[value='+$(this).val()+"]").attr("checked",!0)),cfpeRebuildOrderSummary()}),cfpeRebuildOrderSummary(),$('.qty_select, .o2step_step2 [name="purchase[product_id]"], [data-de-type="orpo"] [name="purchase[product_id]"]').on("change",function(){cfpeRebuildOrderSummary()}),$('#bump-offer, [id*="bump_offer_"]').on("change",function(){var e=$(this),t=e.val();e.is(":checked")?$('#cfAR [name="purchase[product_ids][]"][value="'+t+'"]').attr("checked",!0):$('#cfAR [name="purchase[product_ids][]"][value="'+t+'"]').attr("checked",!1),cfpeRebuildOrderSummary(),window.ClickFunnels.isOrderWithProductVariants&&window.ClickFunnels.OrderProductVariationSummary.setBumpProduct(e)}),$(".elOrderProductOptinProducts").not(".hide").find('input[name="purchase[product_id]"], input[name="order[product_ids][]"][id!="bump-offer"], input[name="purchase[product_ids][]"][id!="bump-offer"]').not("#cfAR input").first().click(),$('input[name="order_upsell[unique_order_token]"]').val(getURLParameter("unique_token"))}),calcTax(),jQuery(function(e){jQuery(function(){calcShipping()}),e('[name="purchase[credit_card_exp_date_month_year]"]').on("focus",function(){formatRecurlyExpirationDate()}),e('[name="purchase[credit_card_exp_date_month_year]"]').on("blur",function(){validateRecurlyExpirationDate()}),e('[aria-label="iDEAL"]').on("click",function(){window.cfCreateiDEALPaymentElement()}),e("#cfAR").submit(function(t){window.cfpeRebuildOrderSummary();var n=e(this);n.find("[data-stripe=number]").val(e("[data-stripe=number]").first().val()),n.find("[data-stripe=exp]").val(e("[data-stripe=exp]").first().val()),n.find("[data-stripe=exp-month]").val(e("[data-stripe=exp-month]").first().val()),n.find("[data-stripe=exp-year]").val(e("[data-stripe=exp-year]").first().val()),n.find("[data-stripe=cvc]").val(e("[data-stripe=cvc]").first().val()),[{stripe:"address_line1",primary:"address",fallback:"shipping_address",recurly:"address1"},{stripe:"address_city",primary:"city",fallback:"shipping_city",recurly:"city"},{stripe:"address_state",primary:"state",fallback:"shipping_state",recurly:"state"},{stripe:"address_zip",primary:"zip",fallback:"shipping_zip",recurly:"postal_code"},{stripe:"address_country",primary:"country",fallback:"shipping_country",recurly:"country"},{stripe:"shipping_address"},{stripe:"shipping_city"},{stripe:"shipping_state"},{stripe:"shipping_zip"},{stripe:"shipping_country"}].forEach(function(t){t.primary||(t.primary=t.stripe,t.fallback=t.stripe);var a=e("[name="+t.primary+"]").filter(":visible:first");0===a.size()&&(a=e("[name="+t.fallback+"]")),"undefined"!=typeof recurly&&t.recurly&&(n.append(""),n.find("[data-recurly="+t.recurly+"]").val(a.val())),n.find("[data-stripe="+t.stripe+"]").val(a.val())}),e('#cCmodalPopup [name="purchase[product_id]"]').length&&n.find('[type="radio"][name="purchase[product_id]"]').val(e('#cCmodalPopup [name="purchase[product_id]"]').val()).prop("checked",!0);var a=n.find("[data-stripe=name]");if(0==a.size()&&(n.append(""),a=n.find("[data-stripe=name]")),0===a.val().length){var o=e("[name=first_name]").filter(":visible:first");0==o.size()&&(o=e("[name=first_name]"));var i=e("[name=last_name]").filter(":visible:first");0==i.size()&&(i=e("[name=last_name]"));var r="";o.size()>0&&(r=o.val().trim()),i.size()>0&&(r+=" "+i.val().trim()),(r=r.trim()).length>0&&a.val(r)}if(e("button").prop("disabled",!0),window.ClickFunnels.CFPeOrders.SubmitButton.disable(),window.ClickFunnels.CFPeOrders.SubmitButton.storeContent(),"undefined"!=typeof Stripe){t.preventDefault();var l=e(".elCreditCardForm #card-exp-element").length>0,s=l?3:1,u=e(".StripeElement--complete").length==s,c=!1;if(window.shouldUseUpdatedSourceApiDeprecation()&&(c=e("#ideal-bank-element").is(":visible")&&!e("#card-number-element").is(":visible")),c)window.cfCreateStripeToken();else{if(!u)return l||e(".StripeElement").css("border-color","rgb(185, 21, 23)").css("border-width","3px"),window.ClickFunnels.CFPeOrders.SubmitButton.replacePreviousContent(),window.CFStripeErrorStartTransaction=!0,!1;window.cfCreateStripeToken()}}else{if("undefined"!=typeof hostedFieldTokenId)return window.ClickFunnels.OrderPage.Bluesnap.handleFormSubmit(t),!1;if("undefined"!=typeof Nmi)return window.ClickFunnels.OrderPage.NMI.handleFormSubmit(t),!1;"undefined"!=typeof recurly&&recurlyDateHandler(),window.ClickFunnels.OrderPage.Default.handleFormSubmit(t)}}),jQuery(window.ClickFunnels.OrderPage.Bluesnap.init)}),jQuery(function(){function e(){getVars=undefined,getVars=document.location.search.length>1?document.location.search.substring(1).split("&"):new Array(0);for(var e=0;eEdit Shipping Details'),$step2header=$stepOrderWrapper.find(".order2StepHeader"),$step2header.length&&$step2header.get(0).scrollIntoView()))}),jQuery(function(){$('[href*="#yes-link"], [href*="#no-link"], [data-cf-id=yes-link], [data-cf-id=yes-link-2], [data-cf-id=no-link]').click(function(e){var t=$(this);return t.data("clicked")?(e.preventDefault(),!1):t.data("temp-disabled")?void 0:(window.ClickFunnels.OrderPage.LoadingScreen.show(),!0)})});var recurlyDateHandler=function(){$form=$("#cfAR");var e=null,t=$('[name="purchase[credit_card_exp_date_month_year]"]').val();t&&(e=t.split("/")),$('[name="purchase[credit_card_exp_date_month_year]"]').val().length?($form.append(""),$form.append(""),$form.find("[data-recurly='month']").val(e[0]),$form.find("[data-recurly='year']").val(e[1])):$('[name="purchase[credit_card_exp_date_month]"]').val().length&&$('[name="purchase[credit_card_exp_date_year]"]').val().length&&($form.append(""),$form.append(""),$form.find("[data-recurly='month']").val($('[name="purchase[credit_card_exp_date_month]"]').val()),$form.find("[data-recurly='year']").val($('[name="purchase[credit_card_exp_date_year]"]').val()))},recurlyNameHandler=function(){var e=$('input[name="name"]');first_name=e.val().split(" ")[0],last_name=e.val().split(" ").slice(1).join(" "),$('input[name="contact[first_name]"]').val(first_name).data("recurly","first_name"),$('input[name="contact[last_name]"]').val(last_name).data("recurly","last_name")},recurlyCountryHandler=function(){var e=$('select[name="country"]').val(),t=$('select[name="shipping_country"]').val();e&&"united states of america"==e.toLowerCase()&&$('select[name="country"], input[name="contact[country]"]').val("United States"),t&&"united states of america"==t.toLowerCase()&&$('select[name="shipping_country"], input[name="contact[shipping_country]"]').val("United States")};function formatRecurlyExpirationDate(){"undefined"!=typeof recurly&&$('[name="purchase[credit_card_exp_date_month_year]"]').is(":visible")&&($('[name="purchase[credit_card_exp_date_month_year]"]').attr("maxlength",5),$('[name="purchase[credit_card_exp_date_month_year]"]').on("keyup",function(e){$('[name="purchase[credit_card_exp_date_month_year]"]').css("border","rgba(0,0,0,0.2) 1px");var t=e.key.charCodeAt(0);t>=48&&t<=57&&$(this).val().length<4&&$(this).val().length>0&&(exp_date=$(this).val().match(/.{1,2}/g).join("/"),$('[name="purchase[credit_card_exp_date_month_year]"]').val(exp_date))}))}function validateRecurlyExpirationDate(){if("undefined"!=typeof recurly&&$('[name="purchase[credit_card_exp_date_month_year]"]').is(":visible")){var e=$('[name="purchase[credit_card_exp_date_month_year]"]').val();if(e.length>0){var t=e.split("/")[0],n=e.split("/")[1];(null==n||n&&n.length<2||t>12||t<1)&&$('[name="purchase[credit_card_exp_date_month_year]"]').css("border","rgb(185, 21, 23) 3px solid")}else $('[name="purchase[credit_card_exp_date_month_year]"]').css("border","rgb(185, 21, 23) 3px solid")}}jQuery(function(){"undefined"!=typeof recurly_publishable_key_check&&($("body").append(''),void 0!==$("#cfAR")&&(document.querySelectorAll("#cfAR [data-recurly]").forEach(function(e){var t=e.getAttribute("data-recurly");if("first_name"!=t&&"last_name"!=t){var n=e.getAttribute("data-cf-form-field");n&&null==document.querySelector("[name='"+n+"']")&&e.remove()}}),!$('input[name="name"]').length||$('input[name="first_name"]').length||$('input[name="last_name"]').length||($('input[name="name"]').on("change",function(){recurlyNameHandler()}),setTimeout(function(){recurlyNameHandler()},2e3)),$('select[name="country"], select[name="shipping_country"]').length&&($('select[name="country"]').garlic({onRetrieve:function(){$('select[name="country"]').trigger("change")}}),$('select[name="shipping_country"]').garlic({onRetrieve:function(){$('select[name="shipping_country"]').trigger("change")}}),$('select[name="country"], select[name="shipping_country"]').on("change",function(){recurlyCountryHandler()}))))}),cfpeorders=!0}window.addEventListener("DOMContentLoaded",function(){window.ClickFunnels.isOrderWithProductVariants=$(".elOrderProductVariationSelectContainer").length&&$(".elProductVariationsOrderSummary").length&&!0,window.ClickFunnels.OrderProductVariationSelect.init(),window.ClickFunnels.OrderProductVariationSummary.init(),window.ClickFunnels.OtoPage="true"==$("#cf-page-oto").val(),window.ClickFunnels.FeatureFlags=window.ClickFunnels.FeatureFlags||{},window.ClickFunnels.FeatureFlags.CanUsePaymentIntentOnFunnelPayments="true"==$("#ff-can-use-payment-intent-on-funnel-payments").val(),window.ClickFunnels.FeatureFlags.CanUseUpdatedSourceApiDeprecation="true"==$("#ff-can-use-updated-source-api-deprecation").val()}),
/*! @license Firebase v2.3.1
License: https://www.firebase.com/terms/terms-of-service.html */
function(){function n(e){return void 0!==e}function ba(){}function ca(e){e.ub=function(){return e.uf?e.uf:e.uf=new e}}function da(e){var t=typeof e;if("object"==t){if(!e)return"null";if(e instanceof Array)return"array";if(e instanceof Object)return t;var n=Object.prototype.toString.call(e);if("[object Window]"==n)return"object";if("[object Array]"==n||"number"==typeof e.length&&"undefined"!=typeof e.splice&&"undefined"!=typeof e.propertyIsEnumerable&&!e.propertyIsEnumerable("splice"))return"array";if("[object Function]"==n||"undefined"!=typeof e.call&&"undefined"!=typeof e.propertyIsEnumerable&&!e.propertyIsEnumerable("call"))return"function"}else if("function"==t&&"undefined"==typeof e.call)return"object";return t}function ea(e){return"array"==da(e)}function fa(e){var t=da(e);return"array"==t||"object"==t&&"number"==typeof e.length}function p(e){return"string"==typeof e}function ga(e){return"number"==typeof e}function ha(e){return"function"==da(e)}function ia(e){var t=typeof e;return"object"==t&&null!=e||"function"==t}function ja(e){return e.call.apply(e.bind,arguments)}function ka(e,t){if(!e)throw Error();if(2t?n+="000":256>t?n+="00":4096>t&&(n+="0"),Ea[e]=n+t.toString(16)}),'"')}function Ga(){return Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^la()).toString(36)}function Ka(){this.Va=-1}function La(){this.Va=-1,this.Va=64,this.N=[],this.me=[],this.Wf=[],this.Ld=[],this.Ld[0]=128;for(var e=1;eo;o++)a[o]=t.charCodeAt(n)<<24|t.charCodeAt(n+1)<<16|t.charCodeAt(n+2)<<8|t.charCodeAt(n+3),n+=4;else for(o=0;16>o;o++)a[o]=t[n]<<24|t[n+1]<<16|t[n+2]<<8|t[n+3],n+=4;for(o=16;80>o;o++){var i=a[o-3]^a[o-8]^a[o-14]^a[o-16];a[o]=4294967295&(i<<1|i>>>31)}t=e.N[0],n=e.N[1];var r,l=e.N[2],s=e.N[3],u=e.N[4];for(o=0;80>o;o++)40>o?20>o?(i=s^n&(l^s),r=1518500249):(i=n^l^s,r=1859775393):60>o?(i=n&l|s&(n|l),r=2400959708):(i=n^l^s,r=3395469782),i=(t<<5|t>>>27)+i+u+r+a[o]&4294967295,u=s,s=l,l=4294967295&(n<<30|n>>>2),n=t,t=i;e.N[0]=e.N[0]+t&4294967295,e.N[1]=e.N[1]+n&4294967295,e.N[2]=e.N[2]+l&4294967295,e.N[3]=e.N[3]+s&4294967295,e.N[4]=e.N[4]+u&4294967295}function Ta(e,t){var n=Ua(e,t,void 0);return 0>n?null:p(e)?e.charAt(n):e[n]}function Ua(e,t,n){for(var a=e.length,o=p(e)?e.split(""):e,i=0;i=arguments.length?u.slice.call(e,t):u.slice.call(e,t,n)}function Xa(e,t){e.sort(t||Ya)}function Ya(e,t){return e>t?1:e>2,c=(i=(3&i)<<4|l>>4,l=(15&l)<<2|(c=s?e[o+2]:0)>>6,63&c);s||(c=64,r||(l=64)),a.push(n[u],n[i],n[l],n[c])}return a.join("")}function gb(){if(!cb){cb={},db={},eb={};for(var e=0;65>e;e++)cb[e]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(e),db[e]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_.".charAt(e),eb[db[e]]=e,62<=e&&(eb["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(e)]=e)}}function v(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function w(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]}function ib(e,t){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t(n,e[n])}function jb(e){var t={};return ib(e,function(e,n){t[e]=n}),t}function kb(e){var t=[];return ib(e,function(e,n){ea(n)?Oa(n,function(n){t.push(encodeURIComponent(e)+"="+encodeURIComponent(n))}):t.push(encodeURIComponent(e)+"="+encodeURIComponent(n))}),t.length?"&"+t.join("&"):""}function lb(e){var t={};return e=e.replace(/^\?/,"").split("&"),Oa(e,function(e){e&&(e=e.split("="),t[e[0]]=e[1])}),t}function x(e,t,n,a){var o;if(an&&(o=0===n?"none":"no more than "+n),o)throw Error(e+" failed: Was called with "+a+(1===a?" argument.":" arguments.")+" Expects "+o+".")}function y(e,t,n){var a="";switch(t){case 1:a=n?"first":"First";break;case 2:a=n?"second":"Second";break;case 3:a=n?"third":"Third";break;case 4:a=n?"fourth":"Fourth";break;default:throw Error("errorPrefix called with argumentNumber > 4. Need to update it?")}return e+" failed: "+a+" argument "}function A(e,t,a,o){if((!o||n(a))&&!ha(a))throw Error(y(e,t,o)+"must be a valid function.")}function mb(e,t,a){if(n(a)&&(!ia(a)||null===a))throw Error(y(e,t,!0)+"must be a valid context object.")}function nb(e){return"undefined"!=typeof JSON&&n(JSON.parse)?JSON.parse(e):Aa(e)}function B(e){if("undefined"!=typeof JSON&&n(JSON.stringify))e=JSON.stringify(e);else{var t=[];Ca(new Ba,e,t),e=t.join("")}return e}function ob(){this.Wd=C}function pb(){}function rb(e,t,n){this.Tf=e,this.Ka=t,this.Kd=n}function vb(){this.tb=[]}function wb(e,t){for(var n=null,a=0;an?a=a.left:0o)e=this.Fe?e.left:e.right;else{if(0===o){this.Pa.push(e);break}this.Pa.push(e),e=this.Fe?e.right:e.left}}function J(e){if(0===e.Pa.length)return null;var t,n=e.Pa.pop();if(t=e.Ud?e.Ud(n.key,n.value):{key:n.key,value:n.value},e.Fe)for(n=n.left;!n.e();)e.Pa.push(n),n=n.right;else for(n=n.right;!n.e();)e.Pa.push(n),n=n.left;return t}function ec(e){return 0===e.Pa.length?null:(t=(t=e.Pa)[t.length-1],e.Ud?e.Ud(t.key,t.value):{key:t.key,value:t.value});var t}function fc(e,t,n,a,o){this.key=e,this.value=t,this.color=null==n||n,this.left=null!=a?a:bc,this.right=null!=o?o:bc}function gc(e){return e.left.e()?e:gc(e.left)}function ic(e){return e.left.e()?bc:(e.left.fa()||e.left.left.fa()||(e=jc(e)),hc(e=e.Y(null,null,null,ic(e.left),null)))}function hc(e){return e.right.fa()&&!e.left.fa()&&(e=mc(e)),e.left.fa()&&e.left.left.fa()&&(e=kc(e)),e.left.fa()&&e.right.fa()&&(e=lc(e)),e}function jc(e){return(e=lc(e)).right.left.fa()&&(e=lc(e=mc(e=e.Y(null,null,null,null,kc(e.right))))),e}function mc(e){return e.right.Y(null,null,e.color,e.Y(null,null,!0,null,e.right.left),null)}function kc(e){return e.left.Y(null,null,e.color,null,e.Y(null,null,!0,e.left.right,null))}function lc(e){return e.Y(null,null,!e.color,e.left.Y(null,null,!e.left.color,null,null),e.right.Y(null,null,!e.right.color,null,null))}function nc(){}function oc(e,t){return e&&"object"==typeof e?(K(".sv"in e,"Unexpected leaf node or priority contents"),t[e[".sv"]]):e}function pc(e,t){var n=new qc;return rc(e,new L(""),function(e,a){n.nc(e,sc(a,t))}),n}function sc(e,t){var n,a=oc(a=e.C().I(),t);if(e.K()){var o=oc(e.Ca(),t);return o!==e.Ca()||a!==e.C().I()?new tc(o,M(a)):e}return n=e,a!==e.C().I()&&(n=n.ga(new tc(a))),e.P(N,function(e,a){var o=sc(a,t);o!==a&&(n=n.U(e,o))}),n}function uc(){this.wc={}}function vc(e){this.Fc=e,this.Pd="firebase:"}function wc(e){try{if("undefined"!=typeof window&&"undefined"!=typeof window[e]){var t=window[e];return t.setItem("firebase:sentinel","cache"),t.removeItem("firebase:sentinel"),new vc(t)}}catch(n){}return new uc}function zc(e,t,n,a,o){this.host=e.toLowerCase(),this.domain=this.host.substr(this.host.indexOf(".")+1),this.kb=t,this.hc=n,this.Wg=a,this.Od=o||"",this.Ya=xc.get("host:"+e)||this.host}function Ac(e,t){t!==e.Ya&&(e.Ya=t,"s-"===e.Ya.substr(0,2)&&xc.set("host:"+e.host,e.Ya))}function Bc(e,t,n){if(K("string"==typeof t,"typeof type must == string"),K("object"==typeof n,"typeof params must == object"),t===Cc)t=(e.kb?"wss://":"ws://")+e.Ya+"/.ws?";else{if(t!==Dc)throw Error("Unknown connection type: "+t);t=(e.kb?"https://":"http://")+e.Ya+"/.lp?"}e.host!==e.Ya&&(n.ns=e.hc);var a=[];return r(n,function(e,t){a.push(t+"="+e)}),t+a.join("&")}function K(e,t){if(!e)throw Fc(t)}function Fc(e){return Error("Firebase ("+hb+") INTERNAL ASSERT FAILED: "+e)}function Gc(e){try{var t;if("undefined"!=typeof atob)t=atob(e);else{gb();for(var n=eb,a=[],o=0;o>4),64!=l&&(a.push(r<<4&240|l>>2),64!=s&&a.push(l<<6&192|s))}if(8192>a.length)t=String.fromCharCode.apply(null,a);else{for(e="",n=0;ne.ac?e.update(e.Ld,56-e.ac):e.update(e.Ld,e.Va-(e.ac-56));for(var a=e.Va-1;56<=a;a--)e.me[a]=255&n,n/=256;for(Ma(e,e.me),a=n=0;5>a;a++)for(var o=24;0<=o;o-=8)t[n]=e.N[a]>>o&255,++n;return fb(t)}function Jc(){for(var e="",t=0;te?n.push(e.substring(a,e.length)):n.push(e.substring(a,a+t));return n}function Wc(e,t){if(ea(e))for(var n=0;ne,(e=Math.abs(e))>=Math.pow(2,-1022)?(n=(a=Math.min(Math.floor(Math.log(e)/Math.LN2),1023))+1023,a=Math.round(e*Math.pow(2,52-a)-Math.pow(2,52))):(n=0,a=Math.round(e/Math.pow(2,-1074)))),o=[],e=52;e;--e)o.push(a%2?1:0),a=Math.floor(a/2);for(e=11;e;--e)o.push(n%2?1:0),n=Math.floor(n/2);for(o.push(t?1:0),o.reverse(),t=o.join(""),n="",e=0;64>e;e+=8)1===(a=parseInt(t.substr(e,8),2).toString(16)).length&&(a="0"+a),n+=a;return n.toLowerCase()}function Sc(e){return Yc.test(e)&&(-2147483648<=(e=Number(e))&&2147483647>=e)?e:null}function Db(e){try{e()}catch(b){setTimeout(function(){throw O("Exception was thrown by user callback.",b.stack||""),b},Math.floor(0))}}function P(e){if(ha(e)){var t=Array.prototype.slice.call(arguments,1).slice();Db(function(){e.apply(null,t)})}}function Ic(e){for(var t=[],n=0,a=0;a=o&&(o-=55296,K(++ao?t[n++]=o:(2048>o?t[n++]=o>>6|192:(65536>o?t[n++]=o>>12|224:(t[n++]=o>>18|240,t[n++]=o>>12&63|128),t[n++]=o>>6&63|128),t[n++]=63&o|128)}return t}function Zc(e){for(var t=0,n=0;na?t++:2048>a?t+=2:55296<=a&&56319>=a?(t+=4,n++):t+=3}return t}function $c(e){var t={},n={},a={},o="";try{var i=e.split(".");t=nb(Gc(i[0])||""),n=nb(Gc(i[1])||""),o=i[2],a=n.d||{};delete n.d}catch(h){}return{Zg:t,Bc:n,data:a,Qg:o}}function ad(e){return"object"==typeof(e=$c(e).Bc)&&e.hasOwnProperty("iat")?w(e,"iat"):null}function bd(e){var t=(e=$c(e)).Bc;return!!e.Qg&&!!t&&"object"==typeof t&&t.hasOwnProperty("iat")}function cd(e){this.W=e,this.g=e.n.g}function dd(e,t,n,a){var o=[],i=[];return Oa(t,function(t){"child_changed"===t.type&&e.g.Ad(t.Ke,t.Ja)&&i.push(new D("child_moved",t.Ja,t.Wa))}),ed(e,o,"child_removed",t,a,n),ed(e,o,"child_added",t,a,n),ed(e,o,"child_moved",i,a,n),ed(e,o,"child_changed",t,a,n),ed(e,o,Fb,t,a,n),o}function ed(e,t,n,a,o,i){Xa(a=Pa(a,function(e){return e.type===n}),q(e.hg,e)),Oa(a,function(n){var a=fd(e,n,i);Oa(o,function(o){o.Kf(n.type)&&t.push(o.createEvent(a,e.W))})})}function fd(e,t,n){return"value"!==t.type&&"child_removed"!==t.type&&(t.Qd=n.rf(t.Wa,t.Ja,e.g)),t}function gd(){this.bb={}}function hd(e,t){var n=t.type,a=t.Wa;K("child_added"==n||"child_changed"==n||"child_removed"==n,"Only child changes supported for tracking"),K(".priority"!==a,"Only non-priority child changes can be tracked.");var o=w(e.bb,a);if(o){var i=o.type;if("child_added"==n&&"child_removed"==i)e.bb[a]=new D("child_changed",t.Ja,a,o.Ja);else if("child_removed"==n&&"child_added"==i)delete e.bb[a];else if("child_removed"==n&&"child_changed"==i)e.bb[a]=new D("child_removed",o.Ke,a);else if("child_changed"==n&&"child_added"==i)e.bb[a]=new D("child_added",t.Ja,a);else{if("child_changed"!=n||"child_changed"!=i)throw Fc("Illegal combination of changes: "+t+" occurred after "+o);e.bb[a]=new D("child_changed",t.Ja,a,o.Ke)}}else e.bb[a]=t}function id(e,t,n){this.Rb=e,this.pb=t,this.rb=n||null}function jd(e,t,n){this.ha=e,this.pb=t,this.rb=n}function kd(e){this.g=e}function ld(e){var t;this.Be=new kd(e.g),this.g=e.g,e.ma?(t=md(e),t=e.g.Pc(nd(e),t)):t=e.g.Tc(),this.ed=t,e.pa?(t=od(e),e=e.g.Pc(pd(e),t)):e=e.g.Qc(),this.Gc=e}function qd(e){this.sa=new ld(e),this.g=e.g,K(e.ja,"Only valid if limit has been set"),this.ka=e.ka,this.Jb=!rd(e)}function sd(e,t,n,a,o,i){var r;if(e.Jb){var l=td(e.g);r=function(e,t){return l(t,e)}}else r=td(e.g);K(t.Db()==e.ka,"");var s=new F(n,a),u=e.Jb?ud(t,e.g):vd(t,e.g),c=e.sa.matches(s);if(t.Da(n)){var d=t.R(n);for(u=o.ye(e.g,u,e.Jb);null!=u&&(u.name==n||t.Da(u.name));)u=o.ye(e.g,u,e.Jb);return o=null==u?1:r(u,s),c&&!a.e()&&0<=o?(null!=i&&hd(i,new D("child_changed",a,n,d)),t.U(n,a)):(null!=i&&hd(i,new D("child_removed",d,n)),t=t.U(n,C),null!=u&&e.sa.matches(u)?(null!=i&&hd(i,new D("child_added",u.S,u.name)),t.U(u.name,u.S)):t)}return a.e()?t:c&&0<=r(u,s)?(null!=i&&(hd(i,new D("child_removed",u.S,u.name)),hd(i,new D("child_added",a,n))),t.U(n,a).U(u.name,C)):t}function wd(e,t){this.je=e,this.fg=t}function xd(e){this.V=e}function Hd(e,t,n,a,o,i){var r,l=t.O;if(null!=a.tc(n))return t;if(n.e())K(Ib(t.w()),"If change path is empty, we must have complete server data"),Jb(t.w())?(o=ub(t),a=a.yc(o instanceof R?o:C)):a=a.za(ub(t)),i=e.V.xa(t.O.j(),a,i);else{var s=E(n);if(".priority"==s)K(1==Kd(n),"Can't have a priority with additional path components"),i=l.j(),r=t.w().j(),i=null!=(a=a.ld(n,i,r))?e.V.ga(i,a):l.j();else{var u=H(n);sb(l,s)?(r=t.w().j(),a=null!=(a=a.ld(n,l.j(),r))?l.j().R(s).G(u,a):l.j().R(s)):a=a.xc(s,t.w()),i=null!=a?e.V.G(l.j(),s,a,u,o,i):l.j()}}return Fd(t,i,l.ea||n.e(),e.V.Na())}function Ad(e,t,n,a,o,i,r,l){var s=t.w();if(r=r?e.V:e.V.Wb(),n.e())a=r.xa(s.j(),a,null);else if(r.Na()&&!s.Ub)a=s.j().G(n,a),a=r.xa(s.j(),a,null);else{var u=E(n);if(!Kb(s,n)&&1i.status){try{t=nb(i.responseText)}catch(n){O("Failed to parse JSON response for "+o+": "+i.responseText)}a(null,t)}else 401!==i.status&&404!==i.status&&O("Got unsuccessful REST response for "+o+" Status: "+i.status),a(i.status);a=null}},i.open("GET",o,!0),i.send()}function De(e){K(ea(e)&&0=e.o.length?null:e.o[e.Z]}function Kd(e){return e.o.length-e.Z}function H(e){var t=e.Z;return tr.Mc,"Stacking an older write on top of newer ones"),n(l)||(l=!0),r.na.push({path:t,Ga:a,kd:o,visible:l}),l&&(r.T=ef(r.T,t,a)),r.Mc=o,i?xf(e,new Xb($e,t,a)):[]}function yf(e,t,n,a){var o=e.ib;return K(a>o.Mc,"Stacking an older merge on top of newer ones"),o.na.push({path:t,children:n,kd:a,visible:!0}),o.T=ff(o.T,t,n),o.Mc=a,n=Oe(n),xf(e,new ze($e,t,n))}function zf(e,t,n){n=n||!1;var a=mf(e.ib,t);if(e.ib.Rd(t)){var o=Pd;return null!=a.Ga?o=o.set(G,!0):ib(a.children,function(e,t){o=o.set(new L(e),t)}),xf(e,new Ze(a.path,o,n))}return[]}function Af(e,t,n){return n=Oe(n),xf(e,new ze(bf,t,n))}function Bf(e,t,n,a){if(null!=(a=Cf(e,a))){var o=Df(a);return a=o.path,o=o.Hb,t=T(a,t),Ef(e,a,n=new Xb(new af(!1,!0,o,!0),t,n))}return[]}function Ff(e,t,n,a){if(a=Cf(e,a)){var o=Df(a);return a=o.path,o=o.Hb,t=T(a,t),n=Oe(n),Ef(e,a,n=new ze(new af(!1,!0,o,!0),t,n))}return[]}function Jf(e){return Re(e,function(e,t,n){if(t&&null!=sf(t))return[sf(t)];var a=[];return t&&(a=tf(t)),r(n,function(e){a=a.concat(e)}),a})}function Nf(e,t){for(var n=0;n10485760/3&&10485760=e}else if(-1=e;return!1}function Bg(){var e,t=window.opener.frames;for(e=t.length-1;0<=e;e--)try{if(t[e].location.protocol===window.location.protocol&&t[e].location.host===window.location.host&&"__winchan_relay_frame"===t[e].name)return t[e]}catch(n){}return null}function Cg(e,t,n){e.attachEvent?e.attachEvent("on"+t,n):e.addEventListener&&e.addEventListener(t,n,!1)}function Dg(e,t,n){e.detachEvent?e.detachEvent("on"+t,n):e.removeEventListener&&e.removeEventListener(t,n,!1)}function Eg(e){/^https?:\/\//.test(e)||(e=window.location.href);var t=/^(https?:\/\/[\-_a-zA-Z\.0-9:]+)/.exec(e);return t?t[1]:e}function Fg(e){var t="";try{var n=lb(e=e.replace("#",""));n&&v(n,"__firebase_request_key")&&(t=w(n,"__firebase_request_key"))}catch(a){}return t}function Gg(){var e=Pc(sg);return e.scheme+"://"+e.host+"/v2"}function Hg(e){return Gg()+"/"+e+"/auth/channel"}function Ig(e){var t=this;if(this.Ac=e,this.ce="*",Ag(8)?this.Rc=this.zd=Bg():(this.Rc=window.opener,this.zd=window),!t.Rc)throw"Unable to find relay frame";Cg(this.zd,"message",q(this.jc,this)),Cg(this.zd,"message",q(this.Bf,this));try{Jg(this,{a:"ready"})}catch(n){Cg(this.Rc,"load",function(){Jg(t,{a:"ready"})})}Cg(window,"unload",q(this.Bg,this))}function Jg(e,t){t=B(t),Ag(8)?e.Rc.doPost(t,e.ce):e.Rc.postMessage(t,e.ce)}function Kg(e){this.pc=Ga()+Ga()+Ga(),this.Ef=e}function Mg(e){var t=Error(w(Lg,e),e);return t.code=e,t}function Ng(e){var t;(t=!e.window_features)||(t=-1!==(t=xg()).indexOf("Fennec/")||-1!==t.indexOf("Firefox/")&&-1!==t.indexOf("Android")),t&&(e.window_features=void 0),e.window_name||(e.window_name="_blank"),this.options=e}function Og(e){e.method||(e.method="GET"),e.headers||(e.headers={}),e.headers.content_type||(e.headers.content_type="application/json"),e.headers.content_type=e.headers.content_type.toLowerCase(),this.options=e}function Pg(e){this.pc=Ga()+Ga()+Ga(),this.Ef=e}function Qg(e){e.callback_parameter||(e.callback_parameter="callback"),this.options=e,window.__firebase_auth_jsonp=window.__firebase_auth_jsonp||{}}function Rg(e,t,n){setTimeout(function(){try{var a=document.createElement("script");a.type="text/javascript",a.id=e,a.async=!0,a.src=t,a.onerror=function(){var t=document.getElementById(e);null!==t&&t.parentNode.removeChild(t),n&&n(Mg("NETWORK_ERROR"))};var o=document.getElementsByTagName("head");(o&&0!=o.length?o[0]:document.documentElement).appendChild(a)}catch(i){n&&n(Mg("NETWORK_ERROR"))}},0)}function Sg(e,t,n,a){De.call(this,["auth_status"]),this.F=e,this.df=t,this.Vg=n,this.Le=a,this.sc=new wg(e,[xc,yc]),this.mb=null,this.Se=!1,Tg(this)}function Tg(e){yc.get("redirect_request_id")&&Ug(e);var t=e.sc.get();t&&t.token?(Vg(e,t),e.df(t.token,function(n,a){Wg(e,n,a,!1,t.token,t)},function(t,n){Xg(e,"resumeSession()",t,n)})):Vg(e,null)}function Yg(e,t,n,a,o,i){"firebaseio-demo.com"===e.F.domain&&O("Firebase authentication is not supported on demo Firebases (*.firebaseio-demo.com). To secure your Firebase, create a production Firebase at https://www.firebase.com."),e.df(t,function(i,r){Wg(e,i,r,!0,t,n,a||{},o)},function(t,n){Xg(e,"auth()",t,n,i)})}function Zg(e,t){e.sc.clear(),Vg(e,null),e.Vg(function(e,n){if("ok"===e)P(t,null);else{var a=(e||"error").toUpperCase(),o=a;n&&(o+=": "+n),(o=Error(o)).code=a,P(t,o)}})}function Wg(e,t,n,a,o,i,r,l){"ok"===t?(a&&(t=n.auth,i.auth=t,i.expires=n.expires,i.token=bd(o)?o:"",n=null,t&&v(t,"uid")?n=w(t,"uid"):v(i,"uid")&&(n=w(i,"uid")),i.uid=n,n="custom",t&&v(t,"provider")?n=w(t,"provider"):v(i,"provider")&&(n=w(i,"provider")),i.provider=n,e.sc.clear(),bd(o)&&(n=xc,"sessionOnly"===(r=r||{}).remember&&(n=yc),"none"!==r.remember&&e.sc.set(i,n)),Vg(e,i)),P(l,null,i)):(e.sc.clear(),Vg(e,null),i=e=(t||"error").toUpperCase(),n&&(i+=": "+n),(i=Error(i)).code=e,P(l,i))}function Xg(e,t,n,a,o){O(t+" was canceled: "+a),e.sc.clear(),Vg(e,null),(e=Error(a)).code=n.toUpperCase(),P(o,e)}function $g(e,t,n,a,o){ah(e),bh(e,[Og,Qg],"/auth/"+t,n=new tg(a||{},{},n||{}),o)}function ch(e,t,n,a){ah(e);var o=[Ng,Pg];n=vg(n),"anonymous"===t||"password"===t?setTimeout(function(){P(a,Mg("TRANSPORT_UNAVAILABLE"))},0):(n.ee.window_features="menubar=yes,modal=yes,alwaysRaised=yeslocation=yes,resizable=yes,scrollbars=yes,status=yes,height=625,width=625,top="+("object"==typeof screen?.5*(screen.height-625):0)+",left="+("object"==typeof screen?.5*(screen.width-625):0),n.ee.relay_url=Hg(e.F.hc),n.ee.requestWithCredential=q(e.qc,e),bh(e,o,"/auth/"+t,n,a))}function Ug(e){if(n=yc.get("redirect_request_id")){var t=yc.get("redirect_client_options");yc.remove("redirect_request_id"),yc.remove("redirect_client_options");var n,a=[Og,Qg];t=new tg(t,{},n={requestId:n,requestKey:Fg(document.location.hash)});e.Se=!0;try{document.location.hash=document.location.hash.replace(/&__firebase_request_key=([a-zA-z0-9]*)/,"")}catch(o){}bh(e,a,"/auth/session",t,function(){this.Se=!1}.bind(e))}}function bh(e,t,n,a,o){dh(e,t,n,a,function(t,n){!t&&n&&n.token&&n.uid?Yg(e,n.token,n,a.od,function(e,t){e?P(o,e):P(o,null,t)}):P(o,t||Mg("UNKNOWN_ERROR"))})}function dh(e,t,n,a,o){0===(t=Pa(t,function(e){return"function"==typeof e.isAvailable&&e.isAvailable()})).length?setTimeout(function(){P(o,Mg("TRANSPORT_UNAVAILABLE"))},0):(t=new(t.shift())(a.ee),(a=jb(a.$a)).v="js-"+hb,a.transport=t.Cc(),a.suppress_status_codes=!0,e=Gg()+"/"+e.F.hc+n,t.open(e,a,function(e,t){if(e)P(o,e);else if(t&&t.error){var n=Error(t.error.message);n.code=t.error.code,n.details=t.error.details,P(o,n)}else P(o,null,t)}))}function Vg(e,t){var n=null!==e.mb||null!==t;e.mb=t,n&&e.fe("auth_status",t),e.Le(null!==t)}function ah(e){var t=e.F;if("firebaseio.com"!==t.domain&&"firebaseio-demo.com"!==t.domain&&"auth.firebase.com"===sg)throw Error("This custom Firebase server ('"+e.F.domain+"') does not support delegated login.")}function eh(e){this.jc=e,this.Nd=[],this.Sb=0,this.qe=-1,this.Fb=null}function fh(e,t,n){e.qe=t,e.Fb=n,e.qedocument.domain="'+document.domain+'";'),e=""+e+"";try{this.Ea.eb.open(),this.Ea.eb.write(e),this.Ea.eb.close()}catch(i){Cb("frame writing exception"),i.stack&&Cb(i.stack),Cb(i)}}function nh(e){if(e.le&&e.Xd&&e.Pe.count()<(0=e.ad[0].kf.length+30+n.length;){var o=e.ad.shift();n=n+"&seg"+a+"="+o.Mg+"&ts"+a+"="+o.Ug+"&d"+a+"="+o.kf;a++}return oh(e,t+n,e.te),!0}return!1}function oh(e,t,n){function a(){e.Pe.remove(n),nh(e)}e.Pe.add(n,1);var o=setTimeout(a,Math.floor(25e3));mh(e,t,function(){clearTimeout(o),a()})}function mh(e,t,n){setTimeout(function(){try{if(e.Xd){var a=e.Ea.eb.createElement("script");a.type="text/javascript",a.async=!0,a.src=t,a.onload=a.onreadystatechange=function(){var e=a.readyState;e&&"loaded"!==e&&"complete"!==e||(a.onload=a.onreadystatechange=null,a.parentNode&&a.parentNode.removeChild(a),n())},a.onerror=function(){Cb("Long-poll script failed to load: "+t),e.Xd=!1,e.close()},e.Ea.eb.body.appendChild(a)}}catch(o){}},Math.floor(1))}function qh(e,t,n,a){this.re=e,this.f=Mc(this.re),this.frames=this.Kc=null,this.nb=this.ob=this.bf=0,this.Ua=Rb(t),e={v:"5"},"undefined"!=typeof location&&location.href&&-1!==location.href.indexOf("firebaseio.com")&&(e.r="f"),n&&(e.s=n),a&&(e.ls=a),this.ef=Bc(t,Cc,e)}function th(e,t){if(e.frames.push(t),e.frames.length==e.bf){var n=e.frames.join("");e.frames=null,n=nb(n),e.zg(n)}}function sh(e){clearInterval(e.Kc),e.Kc=setInterval(function(){e.ua&&e.ua.send("0"),sh(e)},Math.floor(45e3))}function uh(e){vh(this,e)}function vh(e,t){var n=qh&&qh.isAvailable(),a=n&&!(xc.wf||!0===xc.get("previous_websocket_failure"));if(t.Wg&&(n||O("wss:// URL used, but browser isn't known to support websockets. Trying anyway."),a=!0),a)e.gd=[qh];else{var o=e.gd=[];Wc(wh,function(e,t){t&&t.isAvailable()&&o.push(t)})}}function xh(e){if(0=e.Mf?(e.f("Secondary connection is healthy."),e.Ab=!0,e.D.Ed(),e.D.start(),e.f("sending client ack on secondary"),e.D.send({t:"c",d:{t:"a",d:{}}}),e.f("Ending transmission on primary"),e.J.send({t:"c",d:{t:"n",d:{}}}),e.hd=e.D,Eh(e)):(e.f("sending ping on secondary."),e.D.send({t:"c",d:{t:"p",d:{}}}))}function Gh(e){e.Ab||(e.Re--,0>=e.Re&&(e.f("Primary connection is healthy."),e.Ab=!0,e.J.Ed()))}function Dh(e,t){e.D=new t("c:"+e.id+":"+e.ff++,e.F,e.Nf),e.Mf=t.responsesRequiredToBeHealthy||0,e.D.open(Ah(e,e.D),Bh(e,e.D)),setTimeout(function(){e.D&&(e.f("Timed out trying to upgrade."),e.D.close())},Math.floor(6e4))}function Ch(e,t,n){e.f("Realtime connection established."),e.J=t,e.Ta=1,e.Wc&&(e.Wc(n,e.Nf),e.Wc=null),0===e.Re?(e.f("Primary connection is healthy."),e.Ab=!0):setTimeout(function(){Hh(e)},Math.floor(5e3))}function Hh(e){e.Ab||1!==e.Ta||(e.f("sending ping on primary."),Jh(e,{t:"c",d:{t:"p",d:{}}}))}function Jh(e,t){if(1!==e.Ta)throw"Connection is not connected";e.hd.send(t)}function Fh(e){e.f("Shutting down all connections"),e.J&&(e.J.close(),e.J=null),e.D&&(e.D.close(),e.D=null),e.yd&&(clearTimeout(e.yd),e.yd=null)}function Kh(e,t,n,a){this.id=Lh++,this.f=Mc("p:"+this.id+":"),this.xf=this.Ee=!1,this.$={},this.qa=[],this.Yc=0,this.Vc=[],this.oa=!1,this.Za=1e3,this.Fd=3e5,this.Gb=t,this.Uc=n,this.Oe=a,this.F=e,this.sb=this.Aa=this.Ia=this.Bb=this.We=null,this.Ob=!1,this.Td={},this.Lg=0,this.nf=!0,this.Lc=this.Ge=null,Mh(this,0),He.ub().Eb("visible",this.Cg,this),-1===e.host.indexOf("fblocal")&&Ge.ub().Eb("online",this.Ag,this)}function Oh(e,t){var n=t.Ig,a=n.path.toString(),o=n.va();e.f("Listen on "+a+" for "+o);var i={p:a};t.tag&&(i.q=ee(n.n),i.t=t.tag),i.h=t.xd(),e.Fa("q",i,function(i){var r=i.d,l=i.s;if(r&&"object"==typeof r&&v(r,"w")){var s=w(r,"w");ea(s)&&0<=Na(s,"no_index")&&O('Using an unspecified index. Consider adding ".indexOn": "'+n.n.g.toString()+'" at '+n.path.toString()+" to your security rules for better performance")}(e.$[a]&&e.$[a][o])===t&&(e.f("listen response",i),"ok"!==l&&Ph(e,a,o),t.H&&t.H(l,r))})}function Qh(e){var t=e.Aa;e.oa&&t&&e.Fa("auth",{cred:t.ig},function(n){var a=n.s;n=n.d||"error","ok"!==a&&e.Aa===t&&delete e.Aa,t.of?"ok"!==a&&t.md&&t.md(a,n):(t.of=!0,t.zc&&t.zc(a,n))})}function Rh(e,t,n,a,o){n={p:n,d:a},e.f("onDisconnect "+t,n),e.Fa(t,n,function(e){o&&setTimeout(function(){o(e.s,e.d)},Math.floor(0))})}function Sh(e,t,a,o,i,r){o={p:a,d:o},n(r)&&(o.h=r),e.qa.push({action:t,Jf:o,H:i}),e.Yc++,t=e.qa.length-1,e.oa?Th(e,t):e.f("Buffering put: "+a)}function Th(e,t){var n=e.qa[t].action,a=e.qa[t].Jf,o=e.qa[t].H;e.qa[t].Jg=e.oa,e.Fa(n,a,function(a){e.f(n+" response",a),delete e.qa[t],e.Yc--,0===e.Yc&&(e.qa=[]),o&&o(a.s,a.d)})}function Mh(e,t){K(!e.Ia,"Scheduling a connect when we're already connected/ing?"),e.sb&&clearTimeout(e.sb),e.sb=setTimeout(function(){e.sb=null,Wh(e)},Math.floor(t))}function Wh(e){if(Xh(e)){e.f("Making a connection attempt"),e.Ge=(new Date).getTime(),e.Lc=null;var t=q(e.Id,e),n=q(e.Wc,e),a=q(e.Df,e),o=e.id+":"+Nh++;e.Ia=new yh(o,e.F,t,n,a,function(t){O(t+" ("+e.F.toString()+")"),e.xf=!0},e.Bb)}}function Uh(e,t,n){(e=Ph(e,t,n=n?Qa(n,function(e){return Uc(e)}).join("$"):"default"))&&e.H&&e.H("permission_denied")}function Ph(e,t,a){var o;return t=new L(t).toString(),n(e.$[t])?(o=e.$[t][a],delete e.$[t][a],0===pa(e.$[t])&&delete e.$[t]):o=void 0,o}function Vh(e){Qh(e),r(e.$,function(t){r(t,function(t){Oh(e,t)})});for(var t=0;t.firebaseio.com instead"),n&&"undefined"!=n||Oc("Cannot parse Firebase url. Please use https://.firebaseio.com"),a.kb||"undefined"!=typeof window&&window.location&&window.location.protocol&&-1!==window.location.protocol.indexOf("https:")&&O("Insecure Firebase access from a secure page. Please use https in calls to new Firebase()."),n=new zc(a.host,a.kb,n,"ws"===a.scheme||"wss"===a.scheme),o=(a=new L(a.$c)).toString(),!(i=!p(n.host)||0===n.host.length||!$f(n.hc))&&(i=0!==o.length)&&(o&&(o=o.replace(/^\/*\.info(\/|$)/,"/")),i=!(p(o)&&0!==o.length&&!Yf.test(o))),i)throw Error(y("new Firebase",1,!1)+'must be a valid firebase URL and the path can\'t contain ".", "#", "$", "[", or "]".');if(t)if(t instanceof W)o=t;else{if(!p(t))throw Error("Expected a valid Firebase.Context for second argument to new Firebase()");o=W.ub(),n.Od=t}else o=W.ub();i=n.toString();var r=w(o.oc,i);r||(r=new Yh(n,o.Sf),o.oc[i]=r),n=r}Y.call(this,n,a,be,!1)}function Lc(e,t){K(!t||!0===e||!1===e,"Can't turn on custom loggers persistently."),!0===e?("undefined"!=typeof console&&("function"==typeof console.log?Bb=q(console.log,console):"object"==typeof console.log&&(Bb=function(e){console.log(e)})),t&&yc.set("logging_enabled",!0)):e?Bb=e:(Bb=null,yc.remove("logging_enabled"))}var g,aa=this,la=Date.now||function(){return+new Date},ya="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" "),Ea={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\x0B":"\\u000b"},Fa=/\uffff/.test("\uffff")?/[\\\"\x00-\x1f\x7f-\uffff]/g:/[\\\"\x00-\x1f\x7f-\xff]/g,Ha;e:{var Ia=aa.navigator;if(Ia){var Ja=Ia.userAgent;if(Ja){Ha=Ja;break e}}Ha=""}ma(La,Ka),La.prototype.reset=function(){this.N[0]=1732584193,this.N[1]=4023233417,this.N[2]=2562383102,this.N[3]=271733878,this.N[4]=3285377520,this.de=this.ac=0},La.prototype.update=function(e,t){if(null!=e){n(t)||(t=e.length);for(var a=t-this.Va,o=0,i=this.me,r=this.ac;on?Math.max(0,e.length+n):n,p(e))return p(t)&&1==t.length?e.indexOf(t,n):-1;for(;nparseFloat(a)&&String(b));var cb=null,db=null,eb=null,hb=hb||"2.3.1";ob.prototype.j=function(e){return this.Wd.Q(e)},ob.prototype.toString=function(){return this.Wd.toString()},pb.prototype.qf=function(){return null},pb.prototype.ye=function(){return null};var qb=new pb;rb.prototype.qf=function(e){var t=this.Ka.O;return sb(t,e)?t.j().R(e):(t=null!=this.Kd?new tb(this.Kd,!0,!1):this.Ka.w(),this.Tf.xc(e,t))},rb.prototype.ye=function(e,t,n){var a=null!=this.Kd?this.Kd:ub(this.Ka);return 0===(e=this.Tf.ne(a,t,1,n,e)).length?null:e[0]},xb.prototype.add=function(e){this.vd.push(e)},xb.prototype.Zb=function(){return this.ra};var Fb="value";Gb.prototype.Zb=function(){var e=this.Zd.Ib();return"value"===this.ud?e.path:e.parent().path},Gb.prototype.ze=function(){return this.ud},Gb.prototype.Vb=function(){return this.ue.Vb(this)},Gb.prototype.toString=function(){return this.Zb().toString()+":"+this.ud+":"+B(this.Zd.mf())},Hb.prototype.Zb=function(){return this.path},Hb.prototype.ze=function(){return"cancel"},Hb.prototype.Vb=function(){return this.ue.Vb(this)},Hb.prototype.toString=function(){return this.path.toString()+":cancel"},tb.prototype.j=function(){return this.A},Lb.prototype.get=function(){var e=this.gg.get(),t=xa(e);if(this.Dd)for(var n in this.Dd)t[n]-=this.Dd[n];return this.Dd=e,t},Mb.prototype.If=function(){var e,t=this.fd.get(),n={},a=!1;for(e in t)0t?n=n.left:0(a=n(e,(o=this).key))?o.Y(null,null,null,o.left.Oa(e,t,n),null):0===a?o.Y(null,t,null,null,null):o.Y(null,null,null,null,o.right.Oa(e,t,n)))},g.remove=function(e,t){var n,a;if(0>t(e,(n=this).key))n.left.e()||n.left.fa()||n.left.left.fa()||(n=jc(n)),n=n.Y(null,null,null,n.left.remove(e,t),null);else{if(n.left.fa()&&(n=kc(n)),n.right.e()||n.right.fa()||n.right.left.fa()||(n=lc(n)).left.left.fa()&&(n=lc(n=kc(n))),0===t(e,n.key)){if(n.right.e())return bc;a=gc(n.right),n=n.Y(a.key,a.value,null,null,ic(n.right))}n=n.Y(null,null,null,null,n.right.remove(e,t))}return hc(n)},g.fa=function(){return this.color},g=nc.prototype,g.Y=function(){return this},g.Oa=function(e,t){return new fc(e,t,null)},g.remove=function(){return this},g.count=function(){return 0},g.e=function(){return!0},g.ia=function(){return!1},g.Sc=function(){return null},g.fc=function(){return null},g.fa=function(){return!1};var bc=new nc;uc.prototype.set=function(e,t){null==t?delete this.wc[e]:this.wc[e]=t},uc.prototype.get=function(e){return v(this.wc,e)?this.wc[e]:null},uc.prototype.remove=function(e){delete this.wc[e]},uc.prototype.wf=!0,g=vc.prototype,g.set=function(e,t){null==t?this.Fc.removeItem(this.Pd+e):this.Fc.setItem(this.Pd+e,B(t))},g.get=function(e){return null==(e=this.Fc.getItem(this.Pd+e))?null:nb(e)},g.remove=function(e){this.Fc.removeItem(this.Pd+e)},g.wf=!1,g.toString=function(){return this.Fc.toString()};var xc=wc("localStorage"),yc=wc("sessionStorage");zc.prototype.toString=function(){var e=(this.kb?"https://":"http://")+this.host;return this.Od&&(e+="<"+this.Od+">"),e};var Ec=function(){var e=1;return function(){return e++}}(),Bb=null,Kc=!0,Yc=/^-?\d{1,10}$/;cd.prototype.hg=function(e,t){if(null==e.Wa||null==t.Wa)throw Fc("Should only compare child_ events.");return this.g.compare(new F(e.Wa,e.Ja),new F(t.Wa,t.Ja))},g=id.prototype,g.Kf=function(e){return"value"===e},g.createEvent=function(e,t){var n=t.n.g;return new Gb("value",this,new Q(e.Ja,t.Ib(),n))},g.Vb=function(e){var t=this.rb;if("cancel"===e.ze()){K(this.pb,"Raising a cancel event on a listener with no cancel callback");var n=this.pb;return function(){n.call(t,e.error)}}var a=this.Rb;return function(){a.call(t,e.Zd)}},g.gf=function(e,t){return this.pb?new Hb(this,e,t):null},g.matches=function(e){return e instanceof id&&(!e.Rb||!this.Rb||e.Rb===this.Rb&&e.rb===this.rb)},g.tf=function(){return null!==this.Rb},g=jd.prototype,g.Kf=function(e){return("children_removed"===(e="children_added"===e?"child_added":e)?"child_removed":e)in this.ha},g.gf=function(e,t){return this.pb?new Hb(this,e,t):null},g.createEvent=function(e,t){K(null!=e.Wa,"Child events should have a childName.");var n=t.Ib().u(e.Wa);return new Gb(e.type,this,new Q(e.Ja,n,t.n.g),e.Qd)},g.Vb=function(e){var t=this.rb;if("cancel"===e.ze()){K(this.pb,"Raising a cancel event on a listener with no cancel callback");var n=this.pb;return function(){n.call(t,e.error)}}var a=this.ha[e.ud];return function(){a.call(t,e.Zd,e.Qd)}},g.matches=function(e){if(e instanceof jd){if(!this.ha||!e.ha)return!0;if(this.rb===e.rb)if((t=pa(e.ha))===pa(this.ha)){if(1===t){var t=qa(e.ha),n=qa(this.ha);return!(n!==t||e.ha[t]&&this.ha[n]&&e.ha[t]!==this.ha[n])}return oa(this.ha,function(t,n){return e.ha[n]===t})}}return!1},g.tf=function(){return null!==this.ha},g=kd.prototype,g.G=function(e,t,n,a,o,i){return K(e.Jc(this.g),"A node must be indexed if only a child is updated"),(o=e.R(t)).Q(a).ca(n.Q(a))&&o.e()==n.e()?e:(null!=i&&(n.e()?e.Da(t)?hd(i,new D("child_removed",o,t)):K(e.K(),"A child remove without an old child only makes sense on a leaf node"):o.e()?hd(i,new D("child_added",n,t)):hd(i,new D("child_changed",n,t,o))),e.K()&&n.e()?e:e.U(t,n).lb(this.g))},g.xa=function(e,t,n){return null!=n&&(e.K()||e.P(N,function(e,a){t.Da(e)||hd(n,new D("child_removed",a,e))}),t.K()||t.P(N,function(t,a){if(e.Da(t)){var o=e.R(t);o.ca(a)||hd(n,new D("child_changed",a,t,o))}else hd(n,new D("child_added",a,t))})),t.lb(this.g)},g.ga=function(e,t){return e.e()?C:e.ga(t)},g.Na=function(){return!1},g.Wb=function(){return this},g=ld.prototype,g.matches=function(e){return 0>=this.g.compare(this.ed,e)&&0>=this.g.compare(e,this.Gc)},g.G=function(e,t,n,a,o,i){return this.matches(new F(t,n))||(n=C),this.Be.G(e,t,n,a,o,i)},g.xa=function(e,t,n){t.K()&&(t=C);var a=(a=t.lb(this.g)).ga(C),o=this;return t.P(N,function(e,t){o.matches(new F(e,t))||(a=a.U(e,C))}),this.Be.xa(e,a,n)},g.ga=function(e){return e},g.Na=function(){return!0},g.Wb=function(){return this.Be},g=qd.prototype,g.G=function(e,t,n,a,o,i){return this.sa.matches(new F(t,n))||(n=C),e.R(t).ca(n)?e:e.Db()=this.g.compare(this.sa.ed,i):0>=this.g.compare(i,this.sa.Gc)))break;a=a.U(i.name,i.S),o++}}else{var r,l,s;if(a=(a=t.lb(this.g)).ga(C),this.Jb){t=a.sf(this.g),r=this.sa.Gc,l=this.sa.ed;var u=td(this.g);s=function(e,t){return u(t,e)}}else t=a.Xb(this.g),r=this.sa.ed,l=this.sa.Gc,s=td(this.g);o=0;for(var c=!1;0=s(r,i)&&(c=!0),c&&o=s(i,l)?o++:a=a.U(i.name,C)}return this.sa.Wb().xa(e,a,n)},g.ga=function(e){return e},g.Na=function(){return!0},g.Wb=function(){return this.sa.Wb()},xd.prototype.ab=function(e,t,n,a){var o,i=new gd;if(t.type===Yb)t.source.we?n=yd(this,e,t.path,t.Ga,n,a,i):(K(t.source.pf,"Unknown source."),o=t.source.af||Jb(e.w())&&!t.path.e(),n=Ad(this,e,t.path,t.Ga,n,a,o,i));else if(t.type===Bd)t.source.we?n=Cd(this,e,t.path,t.children,n,a,i):(K(t.source.pf,"Unknown source."),o=t.source.af||Jb(e.w()),n=Dd(this,e,t.path,t.children,n,a,o,i));else if(t.type===Ed)if(t.Vd)if(t=t.path,null!=n.tc(t))n=e;else{if(o=new rb(n,e,a),a=e.O.j(),t.e()||".priority"===E(t))Ib(e.w())?t=n.za(ub(e)):(K((t=e.w().j())instanceof R,"serverChildren would be complete if leaf node"),t=n.yc(t)),t=this.V.xa(a,t,i);else{var r=E(t),l=n.xc(r,e.w());null==l&&sb(e.w(),r)&&(l=a.R(r)),(t=null!=l?this.V.G(a,r,l,H(t),o,i):e.O.j().Da(r)?this.V.G(a,r,C,H(t),o,i):a).e()&&Ib(e.w())&&((a=n.za(ub(e))).K()&&(t=this.V.xa(t,a,i)))}n=Fd(e,t,a=Ib(e.w())||null!=n.tc(G),this.V.Na())}else n=Gd(this,e,t.path,t.Qb,n,a,i);else{if(t.type!==$b)throw Fc("Unknown operation type: "+t.type);a=t.path,o=(t=e.w()).j(),r=t.ea||a.e(),n=Hd(this,new Id(e.O,new tb(o,r,t.Ub)),a,n,qb,i)}return i=ra(i.bb),(t=(a=n).O).ea&&(o=t.j().K()||t.j().e(),r=Jd(e),(0t.compare(a,e);)J(n),a=ec(n);return n},g.sf=function(e){return this.$b(e.Qc(),e)},g.$b=function(e,t){if(n=qe(this,t))return n.$b(e,function(e){return e});for(var n,a=ec(n=this.m.$b(e.name,Tb));null!=a&&0i;i++)t[i]=Math.floor(64*Math.random());for(i=0;12>i;i++)n+="-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz".charAt(t[i]);return K(20===n.length,"nextPushId: Length should be 20."),n}}();ma(Ge,De),Ge.prototype.Ae=function(e){return K("online"===e,"Unknown event type: "+e),[this.kc]},ca(Ge),ma(He,De),He.prototype.Ae=function(e){return K("visible"===e,"Unknown event type: "+e),[this.Ob]},ca(He),g=L.prototype,g.toString=function(){for(var e="",t=this.Z;t=this.o.length)return null;for(var e=[],t=this.Z;t=this.o.length},g.ca=function(e){if(Kd(this)!==Kd(e))return!1;for(var t=this.Z,n=e.Z;t<=this.o.length;t++,n++)if(this.o[t]!==e.o[n])return!1;return!0},g.contains=function(e){var t=this.Z,n=e.Z;if(Kd(this)>Kd(e))return!1;for(;t=t&&nf(l,n.path)?a=!1:n.path.contains(l.path)&&(o=!0)),i--}if(a){if(o)this.T=of(this.na,pf,G),this.Mc=0i.status){try{e=nb(i.responseText)}catch(t){}n(null,e)}else 500<=i.status&&600>i.status?n(Mg("SERVER_ERROR")):n(Mg("NETWORK_ERROR"));n=null,Dg(window,"beforeunload",a)}},"GET"===r)e+=(/\?/.test(e)?"":"?")+kb(t),o=null;else{var l=this.options.headers.content_type;"application/json"===l&&(o=B(t)),"application/x-www-form-urlencoded"===l&&(o=kb(t))}for(var s in i.open(r,e,!0),za(e={"X-Requested-With":"XMLHttpRequest",Accept:"application/json;text/plain"},this.options.headers),e)i.setRequestHeader(s,e[s]);i.send(o)},Og.isAvailable=function(){var e;return(e=!!window.XMLHttpRequest)&&(e=!((e=xg()).match(/MSIE/)||e.match(/Trident/))||Ag(10)),e},Og.prototype.Cc=function(){return"json"},Pg.prototype.open=function(e,t,n){function a(){n&&(n(Mg("USER_CANCELLED")),n=null)}var o,i=this,r=Pc(sg);t.requestId=this.pc,t.redirectTo=r.scheme+"://"+r.host+"/blank/page.html",e+=/\?/.test(e)?"":"?",e+=kb(t),(o=window.open(e,"_blank","location=no"))&&ha(o.addEventListener)?(o.addEventListener("loadstart",function(e){var t;if(t=e&&e.url)e:{try{var l=document.createElement("a");l.href=e.url,t=l.host===r.host&&"/blank/page.html"===l.pathname;break e}catch(s){}t=!1}t&&(e=Fg(e.url),o.removeEventListener("exit",a),o.close(),e=new tg(null,null,{requestId:i.pc,requestKey:e}),i.Ef.requestWithCredential("/auth/session",e,n),n=null)}),o.addEventListener("exit",a)):n(Mg("TRANSPORT_UNAVAILABLE"))},Pg.isAvailable=function(){return yg()},Pg.prototype.Cc=function(){return"redirect"},Qg.prototype.open=function(e,t,n){function a(){n&&(n(Mg("REQUEST_INTERRUPTED")),n=null)}function o(){setTimeout(function(){window.__firebase_auth_jsonp[i]=void 0,wa(window.__firebase_auth_jsonp)&&(window.__firebase_auth_jsonp=void 0);try{var e=document.getElementById(i);e&&e.parentNode.removeChild(e)}catch(t){}},1),Dg(window,"beforeunload",a)}var i="fn"+(new Date).getTime()+Math.floor(99999*Math.random());t[this.options.callback_parameter]="__firebase_auth_jsonp."+i,e+=(/\?/.test(e)?"":"?")+kb(t),Cg(window,"beforeunload",a),window.__firebase_auth_jsonp[i]=function(e){n&&(n(null,e),n=null),o()},Rg(i,e,n)},Qg.isAvailable=function(){return"undefined"!=typeof document&&null!=document.createElement},Qg.prototype.Cc=function(){return"json"},ma(Sg,De),g=Sg.prototype,g.xe=function(){return this.mb||null},g.se=function(e,t){ah(this);var n=vg(e);n.$a._method="POST",this.qc("/users",n,function(e,n){e?P(t,e):P(t,e,n)})},g.Te=function(e,t){var n=this;ah(this);var a="/users/"+encodeURIComponent(e.email),o=vg(e);o.$a._method="DELETE",this.qc(a,o,function(e,a){!e&&a&&a.uid&&n.mb&&n.mb.uid&&n.mb.uid===a.uid&&Zg(n),P(t,e)})},g.pe=function(e,t){ah(this);var n="/users/"+encodeURIComponent(e.email)+"/password",a=vg(e);a.$a._method="PUT",a.$a.password=e.newPassword,this.qc(n,a,function(e){P(t,e)})},g.oe=function(e,t){ah(this);var n="/users/"+encodeURIComponent(e.oldEmail)+"/email",a=vg(e);a.$a._method="PUT",a.$a.email=e.newEmail,a.$a.password=e.password,this.qc(n,a,function(e){P(t,e)})},g.Ve=function(e,t){ah(this);var n="/users/"+encodeURIComponent(e.email)+"/password",a=vg(e);a.$a._method="POST",this.qc(n,a,function(e){P(t,e)})},g.qc=function(e,t,n){dh(this,[Og,Qg],e,t,n)},g.Ae=function(e){return K("auth_status"===e,'initial event must be of type "auth_status"'),this.Se?null:[this.mb]};var Cc="websocket",Dc="long_polling",ih,jh;hh.prototype.open=function(e,t){this.hf=0,this.la=t,this.Af=new eh(e),this.zb=!1;var n=this;this.qb=setTimeout(function(){n.f("Timed out trying to connect."),n.gb(),n.qb=null},Math.floor(3e4)),Rc(function(){if(!n.zb){n.Sa=new kh(function(e,t,a){if(lh(n,arguments),n.Sa)if(n.qb&&(clearTimeout(n.qb),n.qb=null),n.Hc=!0,"start"==e)n.id=t,n.Gf=a;else{if("close"!==e)throw Error("Unrecognized command received: "+e);t?(n.Sa.Xd=!1,fh(n.Af,t,function(){n.gb()})):n.gb()}},function(e,t){lh(n,arguments),gh(n.Af,e,t)},function(){n.gb()},n.jd);var e={start:"t"};e.ser=Math.floor(1e8*Math.random()),n.Sa.he&&(e.cb=n.Sa.he),e.v="5",n.Qf&&(e.s=n.Qf),n.Bb&&(e.ls=n.Bb),"undefined"!=typeof location&&location.href&&-1!==location.href.indexOf("firebaseio.com")&&(e.r="f"),e=n.jd(e),n.f("Connecting via long-poll to "+e),mh(n.Sa,e,function(){})}})},hh.prototype.start=function(){var e=this.Sa,t=this.Gf;for(e.ug=this.id,e.vg=t,e.le=!0;nh(e););e=this.id,t=this.Gf,this.gc=document.createElement("iframe");var n={dframe:"t"};n.id=e,n.pw=t,this.gc.src=this.jd(n),this.gc.style.display="none",document.body.appendChild(this.gc)},hh.isAvailable=function(){return ih||!jh&&"undefined"!=typeof document&&null!=document.createElement&&!("object"==typeof window&&window.chrome&&window.chrome.extension&&!/^chrome/.test(window.location.href))&&!("object"==typeof Windows&&"object"==typeof Windows.Xg)&&!0},g=hh.prototype,g.Ed=function(){},g.dd=function(){this.zb=!0,this.Sa&&(this.Sa.close(),this.Sa=null),this.gc&&(document.body.removeChild(this.gc),this.gc=null),this.qb&&(clearTimeout(this.qb),this.qb=null)},g.gb=function(){this.zb||(this.f("Longpoll is closing itself"),this.dd(),this.la&&(this.la(this.Hc),this.la=null))},g.close=function(){this.zb||(this.f("Longpoll is being closed."),this.dd())},g.send=function(e){e=B(e),this.ob+=e.length,Ob(this.Ua,"bytes_sent",e.length),e=Vc(e=fb(e=Ic(e),!0),1840);for(var t=0;t=e.length){var t=Number(e);if(!isNaN(t)){a.bf=t,a.frames=[],e=null;break e}}a.bf=1,a.frames=[]}null!==e&&th(a,e)}},this.ua.onerror=function(e){a.f("WebSocket error. Closing connection."),(e=e.message||e.data)&&a.f(e),a.gb()}},qh.prototype.start=function(){},qh.isAvailable=function(){var e=!1;if("undefined"!=typeof navigator&&navigator.userAgent){var t=navigator.userAgent.match(/Android ([0-9]{0,}\.[0-9]{0,})/);t&&1parseFloat(t[1])&&(e=!0)}return!e&&null!==ph&&!rh},qh.responsesRequiredToBeHealthy=2,qh.healthyTimeout=3e4,g=qh.prototype,g.Ed=function(){xc.remove("previous_websocket_failure")},g.send=function(e){sh(this),e=B(e),this.ob+=e.length,Ob(this.Ua,"bytes_sent",e.length),1<(e=Vc(e,16384)).length&&this.ua.send(String(e.length));for(var t=0;t=e)throw Error("Query.limit: First argument must be a positive integer.");if(this.n.ja)throw Error("Query.limit: Limit was already set (by another call to limit, limitToFirst, orlimitToLast.");var t=this.n.He(e);return ti(t),new Y(this.k,this.path,t,this.lc)},g.Ie=function(e){if(x("Query.limitToFirst",1,1,arguments.length),!ga(e)||Math.floor(e)!==e||0>=e)throw Error("Query.limitToFirst: First argument must be a positive integer.");if(this.n.ja)throw Error("Query.limitToFirst: Limit was already set (by another call to limit, limitToFirst, or limitToLast).");return new Y(this.k,this.path,this.n.Ie(e),this.lc)},g.Je=function(e){if(x("Query.limitToLast",1,1,arguments.length),!ga(e)||Math.floor(e)!==e||0>=e)throw Error("Query.limitToLast: First argument must be a positive integer.");if(this.n.ja)throw Error("Query.limitToLast: Limit was already set (by another call to limit, limitToFirst, or limitToLast).");return new Y(this.k,this.path,this.n.Je(e),this.lc)},g.Eg=function(e){if(x("Query.orderByChild",1,1,arguments.length),"$key"===e)throw Error('Query.orderByChild: "$key" is invalid. Use Query.orderByKey() instead.');if("$priority"===e)throw Error('Query.orderByChild: "$priority" is invalid. Use Query.orderByPriority() instead.');if("$value"===e)throw Error('Query.orderByChild: "$value" is invalid. Use Query.orderByValue() instead.');ig("Query.orderByChild",e),ui(this,"Query.orderByChild");var t=new L(e);if(t.e())throw Error("Query.orderByChild: cannot pass in empty path. Use Query.orderByValue() instead.");return t=new Ud(t),si(t=de(this.n,t)),new Y(this.k,this.path,t,!0)},g.Fg=function(){x("Query.orderByKey",0,0,arguments.length),ui(this,"Query.orderByKey");var e=de(this.n,Qd);return si(e),new Y(this.k,this.path,e,!0)},g.Gg=function(){x("Query.orderByPriority",0,0,arguments.length),ui(this,"Query.orderByPriority");var e=de(this.n,N);return si(e),new Y(this.k,this.path,e,!0)},g.Hg=function(){x("Query.orderByValue",0,0,arguments.length),ui(this,"Query.orderByValue");var e=de(this.n,$d);return si(e),new Y(this.k,this.path,e,!0)},g.$d=function(e,t){x("Query.startAt",0,2,arguments.length),bg("Query.startAt",e,this.path,!0),hg("Query.startAt",t);var a=this.n.$d(e,t);if(ti(a),si(a),this.n.ma)throw Error("Query.startAt: Starting point was already set (by another call to startAt or equalTo).");return n(e)||(t=e=null),new Y(this.k,this.path,a,this.lc)},g.td=function(e,t){x("Query.endAt",0,2,arguments.length),bg("Query.endAt",e,this.path,!0),hg("Query.endAt",t);var n=this.n.td(e,t);if(ti(n),si(n),this.n.pa)throw Error("Query.endAt: Ending point was already set (by another call to endAt or equalTo).");return new Y(this.k,this.path,n,this.lc)},g.kg=function(e,t){if(x("Query.equalTo",1,2,arguments.length),bg("Query.equalTo",e,this.path,!1),hg("Query.equalTo",t),this.n.ma)throw Error("Query.equalTo: Starting point was already set (by another call to endAt or equalTo).");if(this.n.pa)throw Error("Query.equalTo: Ending point was already set (by another call to endAt or equalTo).");return this.$d(e,t).td(e,t)},g.toString=function(){x("Query.toString",0,0,arguments.length);for(var e=this.path,t="",n=e.Z;nChange Your Password \n').prependTo(e)}function n(e){return $(e.target).serialize()+"&affiliate[page_key]="+r("page_key")}function a(e){return $(e.target).serialize()}function o(e,t){return $("#affiliate-message-holder").remove(),e.preventDefault(),e.returnValue=!1,$.ajax({type:"post",dataType:"json",url:e.target.action,data:t(e),success:function(t,n,a){t&&t.message!==undefined?i(t.message,"alert-info",e.target):window.location.href=a.getResponseHeader("location")},error:function(t){200===t.status?window.location.href="/affiliate":i(JSON.parse(t.responseText).error,"alert-danger",e.target)}}),!1}function i(e,t,n){$(""+e+"
").prependTo(n)}function r(e){var t,n,a=decodeURIComponent(window.location.search.substring(1)).split("&");for(n=0;n0&&(n+="&"+a.attr("name")+"="+encodeURIComponent(o))}),n.trim().length>0&&(t+=n),$(this).attr("href",t+"&affiliate_id="+readCookie("affiliate_id")+"&cf_affiliate_id="+readCookie("cf_affiliate_id")+"&aff_sub="+readCookie("aff_sub")+"&aff_sub2="+readCookie("aff_sub2"))})}),$(document).ready(PaySelectInit),$(document).ready(function(){function e(e){var t=e.getBoundingClientRect();e.style.position="absolute",e.style.top=document.body.scrollTop+t.y+"px",e.style.height=t.height+"px"}function t(e,t){for(var n in t)e.style[n]=t[n]}function n(e){for(;e&&e!==document;e=e.parentNode)if("fixed"===window.getComputedStyle(e).getPropertyValue("position"))return e;return null}/(iPhone|iPad|iPod).*?(OS 1[12])/.test(navigator.userAgent)&&document.addEventListener("focusin",function(a){if("INPUT"!=!a.target.tagName||"TEXTAREA"==!a.target.tagName){var o=n(a.target);if(o){var i={};["position","top","height"].forEach(function(e){i[e]=o.style[e]}),e(o),a.target.addEventListener("blur",function(e){t(o,i),e.target.removeEventListener(e.type,arguments.callee)})}}})}),function(){function e(e,t){e in d&&d[e](t)}function t(e){var t=document.getElementById("page-id"),a=t&&t.value;if(r("Attempting to redirect by expire action"),r("URL: "+e),r("page ID: "+a),a){var l=n(u);if(l.indexOf(a)>=0)return r("Redirect prevented"),void i(u);r("pushing page id to localStorage: "+a),l.push(a),o(u,l)}_[c]=!0,r("Redirected"),window.location.href=e}function n(e){var t=a(e);return r(e+" visited pages: "+t),t}function a(e){var t=~~((new Date).getTime()/1e3),n=window.localStorage.getItem(e),a=window.CFUtils.safeJSONParse(n),o=[];return a&&(t');var n=$('#cfAR input[name="purchase[application_fee]"]');t?($(".roundUpSelector").attr("disabled",!1),n.val(e)):($(".roundUpSelector").val(""),$(".roundUpSelector").attr("disabled",!0),n.val(0)),cfpeRebuildOrderSummary(),addCharityToSummary()}),$(".roundUpSelector").on("change",function(){var e=(parseInt($(this).val())||0)+recalcRoundUp();$('#cfAR input[name="purchase[application_fee]"]').val(e),cfpeRebuildOrderSummary(),addCharityToSummary()})}),$(function(){$('.qty_select, .o2step_step2 [name="purchase[product_id]"], [data-de-type="orpo"] [name="purchase[product_id]"], #bump-offer, [id*="bump_offer_"]').on("change",function(){recalcRoundUp(),addCharityToSummary()})}),$(document).ready(addSaasRedirectClickHandler),function(){function e(e){$.cookie("cf_survey_results",e,{expires:1})}function t(){return $.cookie("cf_survey_results")}function n(){$.removeCookie("cf_survey_results")}window.ClickFunnels=window.ClickFunnels||{},window.ClickFunnels.SurveyResults=window.ClickFunnels.SurveyResults||{},window.ClickFunnels.SurveyResults.storeCookie=e,window.ClickFunnels.SurveyResults.retrieveCookie=t,window.ClickFunnels.SurveyResults.clearCookie=n}();var CF_KEYCODE_ENTER=13,CF_KEYCODE_SPACE=32;$(document).ready(function(){function e(e){var t={};return window.location.href.replace(location.hash,"").replace(/[?&]+([^=&]+)=?([^&]*)?/gi,function(e,n,a){t[n]=a!==undefined?a:""}),e?t[e]?t[e]:null:t}function t(e){var t=/^(?:https?:\/\/)?(?:www\.)?(?:youtu\.be\/|youtube\.com\/(?:embed\/|v\/|watch\?v=|watch\?.+&v=))((\w|-){11})(?:\S+)?$/;return!!e.match(t)&&RegExp.$1}function n(e,t){var n=$(e),i=$(window);if($ID=n.attr("id"),"mobile"==n.attr("data-hide-on")&&i.width()>770)return!0;if("desktop"==n.attr("data-hide-on")&&i.width()<=770)return!0;n.hide(),"scale"==t&&n.css("display","");var r=0;n.attr("data-timed-minutes")&&(r=""==(r=n.attr("data-timed-minutes"))?0:n.attr("data-timed-minutes")),r*=6e4;var l=0;l=n.attr("data-timed-seconds")?""==(l=n.attr("data-timed-seconds"))?0:n.attr("data-timed-seconds"):0;var s=r+(l*=1e3);0==s?"modalPopup"==$ID?_($ID,t,0):(n.show(),n.addClass("displayImportantTimed")):"fade"==t?a($ID,s):"scale"==t&&o($ID,s)}function a(e,t){setTimeout(function(){_(e,"fade",0),$("#"+e+" .de-video-block").each(function(){$videoType=$(this).attr("data-video-type"),"evp"==$videoType&&($video=$(this).attr("data-evp-url"),""==$video||$video==undefined?$(".elVideo",this).html("No Video Set..."):$(".elVideo",this).html($video))})},t)}function o(e,t){setTimeout(function(){_(e,"scale",0),$("#"+e+" .de-video-block").each(function(){$videoType=$(this).attr("data-video-type"),"evp"==$videoType&&($video=$(this).attr("data-evp-url"),""==$video||$video==undefined?$(".elVideo",this).html("No Video Set..."):$(".elVideo",this).html($video))})},t)}function i(e,t){var n=0;$("#"+e).css("display","block !important"),$("#"+e).css("opacity",0),$("#"+e).hasClass("containerModal")?$("#"+e).css("top",n+"px"):$("#"+e).css("position","relative"),$("#"+e).delay(t).velocity({opacity:1},200).promise().done(function(){$("#"+e).show(),$("#"+e).addClass("displayImportantTimed")})}function r(e,t){var n=0;$("#"+e).css("opacity",0),$("#"+e).hasClass("containerModal")?$("#"+e).css("top",n+"px"):$("#"+e).css("position","relative"),$("#"+e).delay(t).velocity({opacity:1,scaleX:1.1,scaleY:1.1},200,function(){$("#"+e).velocity({scaleX:1,scaleY:1},200)})}function l(e,t){$("#"+e).css("opacity",0),$("#"+e).css("position","relative"),$("#"+e).css("left","-800px").delay(t).velocity({opacity:1,left:30},200,function(){$(this).velocity({left:0},200)})}function s(e,t){$("#"+e).css("opacity",0),$("#"+e).css("position","relative"),$("#"+e).css("right","-800px").delay(t).velocity({opacity:1,right:30},200,function(){$(this).velocity({right:0},200)})}function u(e,t){$("#"+e).css("opacity",0),$("#"+e).hasClass("containerModal")||$("#"+e).css("position","relative"),$("#"+e).css("top","-800px").delay(t).velocity({opacity:1},200,function(){$(this).velocity({top:0},200)})}function c(e,t){$("#"+e).css("opacity",0),$("#"+e).css("position","relative"),$("#"+e).css("bottom","-800px").delay(t).velocity({opacity:1},200,function(){$(this).velocity({bottom:0},200)})}function d(){$ID="modalPopup";var e=$("#"+$ID),t=e.attr("data-animate"),n=e.attr("data-delay");_($ID,t,n)}function _(e,t,n){var a=$("#"+e),o=$(window),i=o.height(),r=o.scrollTop(),l=$(".containerWrapper"),s=0,u=$(".modalBackdropWrapper");if(a.addClass("displayImportantTimed"),a.show(),a.hasClass("containerModal")){var c=a.outerHeight(),d=a.css("marginTop");d=d.replace("px",""),i<(c=c+(d=parseInt(d))+d)?(l.css("overflow","hidden"),l.css("height",c+"px"),a.css("position","absolute"),o.scrollTop(0).promise().done(function(){u.show(),u.css({opacity:1,top:0}),p(e,t,n,s)})):(a.css("position","fixed"),s=r,l.css("overflow","hidden"),u.show(),u.css({opacity:1,top:0}),p(e,t,n,s))}}function p(e,t,n,a){"fadex"==t||"fade"==t?i(e,n,a):"scale"==t?r(e,n,a):"left"==t?l(e,n):"right"==t?s(e,n):"top"==t?u(e,n,a):"bottom"==t&&c(e,n)}function m(e,t){void 0===e&&""!=t?void 0!==t&&$("#"+t.replace(/,/g,", #")).fadeOut(150):void 0===t&&""!=e?void 0!==e&&$("#"+e.replace(/,/g,", #")).fadeIn(150):""!=e&&""!=t&&void 0!==e&&void 0!==t&&($("#"+t.replace(/,/g,", #")).hide(),$("#"+e.replace(/,/g,", #")).fadeIn(150))}function h(e){return e=$.trim(e),/^(([^<>()[\]\\.,;:#`%\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(e)}function f(e){if(document.createEvent){var t=document.createEvent("MouseEvents");t.initMouseEvent("mousedown",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),e[0].dispatchEvent(t)}else element.fireEvent&&e[0].fireEvent("onmousedown")}function g(e){return e&&e.length>0&&e.match(/^http/)&&(domain=e.replace(/(https?:\/\/)([^\/]*)(.*)/,"$2"),1==domain.match(/\./g).length&&(e=e.replace(/(https?:\/\/)(www\.)?(.*)/,"$1www.$3"))),e}function b(e,t){var n,a,o;a="#"+e+" .surveyStep:not(.surveyStepGroup), .surveyStep_v",o=$(a).length,n=(t.index(a)+2)/o*100,$("#"+e+" .surveyStepProgressCounter").css("width",n+"%")}function y(e,t){var n=e,a={},o=t,i={};return $.each(n,function(e,t){$.each(o,function(n,o){o[e]!==undefined&&(a[e]=t)})}),$.each(o,function(e,t){i[e]=0,$.each(a,function(n,a){t[n]!==undefined&&t[n]==a&&i[e]++}),Object.keys(t).length==i[e]||delete i[e]}),$.isEmptyObject(i)?"default":Object.keys(i).reduce(function(e,t){return i[e]>i[t]?e:t})}function v(e,t){$getOutcomeOBJ=$("#"+t).data("outcome"),$(".elButton[href='#survey-next']").hide(),$(".elIMG[data-imagelink='#survey-next']").hide(),$getOutcomeOBJ==undefined?"hide"==e?$("#"+t).hide():"submit"==e?$("a[href='#submit-form']").trigger("click"):"popup"==e?d():"hideshow"==e&&($("#"+t).hide(),$show=$("#"+t).attr("data-show-ids"),$show&&($show=$show.split(","),$.each($show,function(){$("#"+this).show()}))):($outcome_found=y($cfSurvey_outcome,$getOutcomeOBJ),"default"==$outcome_found?($page_action=$("#"+t).attr("data-page-action"),$page_action==undefined&&($page_action=$("#"+t).attr("data-complete"))):$page_action=$(".cf_outcomes_action[data-condition-id='"+$outcome_found+"']").attr("data-page-action"),"load_page_redirect"==$page_action?("default"==$outcome_found?($redirect_url=$("#"+t).attr("data-page-redirect-url"),$load_text=$("#"+t).attr("data-page-loading-text"),$load_sub_text=$("#"+t).attr("data-page-loading-sub-text")):($redirect_url=$(".cf_outcomes_action[data-condition-id='"+$outcome_found+"']").attr("data-page-redirect-url"),$load_text=$(".cf_outcomes_action[data-condition-id='"+$outcome_found+"']").attr("data-page-loading-text"),$load_sub_text=$(".cf_outcomes_action[data-condition-id='"+$outcome_found+"']").attr("data-page-loading-sub-text")),$load_text==undefined&&($load_text="Analyzing Your Results..."),$load_sub_text==undefined&&($load_sub_text="* Do Not Leave The Page or Reload The Page... *"),$("#"+t+" .surveyStep").hide(),$loading_html='',$loading_html+='
'+$load_text+"
",$loading_html+='
',$loading_html+='
'+$load_sub_text+"
",$loading_html+="
",$("#"+t).append($loading_html),setTimeout(function(){$("#"+t+" .cfSurvey_loading_redirect_wrapper .surveyStepProgressCounter").css("width","97%"),setTimeout(function(){w($redirect_url)||($redirect_url+="?surveyoutcome="+$outcome_found+"&surveyresults=true",window.ClickFunnels.SurveyResults.storeCookie(JSON.stringify(CFSurveyQueryOutcome))),window.location.href=$redirect_url},800)},100)):"page_redirect"==$page_action?("default"==$outcome_found?$redirect_url=$("#"+t).attr("data-page-redirect-url"):$redirect_url=$(".cf_outcomes_action[data-condition-id='"+$outcome_found+"']").attr("data-page-redirect-url"),w($redirect_url)||($redirect_url+="?surveyoutcome="+$outcome_found+"&surveyresults=true",window.ClickFunnels.SurveyResults.storeCookie(JSON.stringify(CFSurveyQueryOutcome))),window.location.href=$redirect_url):"hide"==$page_action?$("#"+t).hide():"submit"==$page_action?$("a[href='#submit-form']").trigger("click"):"popup"==$page_action?d():"hideshow"==$page_action&&($("#"+t).hide(),$show=$("#"+t).attr("data-show-ids"),$show&&($show=$show.split(","),$.each($show,function(){$("#"+this).show()}))))}function w(e){var t=document.createElement("a");return t.href=e,t.hostname!==window.location.hostname}function k(e,t,n){return e+"_"+t+"_"+n.replace(".","")}function S(e){if($affiliateID=$("body").attr("data-affiliate-id"),$affiliateLink=$("#"+e+" .affLinkBuilderCustomLinks").val(),$affiliateParam=$("body").attr("data-affiliate-param"),"#"==$affiliateLink)alert("no affiliate link selected...");else{$subID1=$("#"+e+" .affiliateLinkAffSubID1").val(),$subID2=$("#"+e+" .affiliateLinkAffSubID2").val(),$("#"+e+" .affLinkPopups").is(":checked")?$popup=!0:$popup=!1,$("#"+e+" .affLinkAutoplay").is(":checked")?$autoplay=!0:$autoplay=!1,console.log("selecting #"+e+" .affLinkCookiePreview"),$("#"+e+" .affLinkCookiePreview").is(":checked")?$cookiepreview=!0:$cookiepreview=!1;var t=$affiliateLink;-1==$affiliateLink.indexOf($affiliateParam)&&(t="cf_affiliate_id"==$affiliateParam?$affiliateLink+"?"+$affiliateParam+"="+$affiliateID+"&affiliate_id="+$affiliateID:$affiliateLink+"?"+$affiliateParam+"="+$affiliateID),t+="&aff_sub="+encodeURIComponent($subID1)+"&aff_sub2="+encodeURIComponent($subID2)+"&nopopup="+$popup+"&noautoplay="+$autoplay+"&cookiepreview="+$cookiepreview,$("#"+e+" .affiliateLinkAffOutput").val(t)}}$(".elSurvey").each(function(){var e=$(this);$surveyID=e.attr("id"),$("#"+$surveyID).attr("data-page-redirect-url")!=undefined&&""!=$("#"+$surveyID).attr("data-page-redirect-url")||e.attr("data-page-redirect-url","#next-url#"),$outcome_conditions_obj={},$(".cf_outcomes[data-survey-id='"+$surveyID+"']").each(function(){var e=$(this);$surveyID=e.attr("data-survey-id"),$condition_id=e.attr("id"),$outcome_conditions_obj[$condition_id]={},$(".cf_survey_outcome_condition",this).each(function(){var e=$(this);$question=e.attr("data-question-id"),$operator=e.attr("data-operator"),$answer=e.attr("data-answer"),$outcome_conditions_obj[$condition_id][$question]=$answer})}),e.attr("data-outcome",JSON.stringify($outcome_conditions_obj))}),window.ClickFunnels.CountryAndStateSelector.populateCountrySelectors();var T=getURLParameter("cf_uvid")||$.cookie("cf_uvid")||"";if($("#cfAR #cf_uvid").val(T),$cfSurvey_outcome={},CFSurveyQueryOutcome=[],$(function(){function e(e){e=e.replace(/[*+?^$.\[\]{}()|\\\/]/g,"\\$&");var t=location.search.match(new RegExp("[?&]"+e+"=([^&]+)(&|$)"));return t&&decodeURIComponent(t[1].replace(/\+/g," "))}if("true"===e("cookiepreview")){var t=$.cookie("affiliate_id");if(t){var n=$("").css({position:"absolute",top:"0%",right:"0%","z-index":1e4}).text("[affiliate = "+t+"]");$("body").prepend(n)}}}),$('.elIMG:not([data-imagelink=""])').attr("tabindex","0"),$("#tracking-body-top").length){var C=$("#tracking-body-top").text();$("body").prepend(C)}if($("#modalPopup").removeAttr("data-hide-on"),e("cf-screenshot-id")&&($("html").attr("style","background: #fff"),$("html").attr("class",""),$(".container").hide(),$(".row").hide(),$showElID=e("cf-screenshot-id"),$showElID.indexOf("row")>-1||$showElID.indexOf("xxx")>-1?($(".nodoBadge").remove(),$("#"+$showElID).show(),$("#"+$showElID).parent().parent().attr("style","padding: 10px;margin-bottom: 20px;margin-top: 20px"),$("#"+$showElID).parent().parent().show()):($showElID.indexOf("section")>-1||$showElID.indexOf("container")>-1)&&($(".nodoBadge").remove(),$("#"+$showElID).show(),$("#"+$showElID).attr("style",$("#"+$showElID).attr("style")+";margin-top: 25px;margin-bottom: 25px;"),$("#"+$showElID+" .row").show())),parent.postMessage){var x=$("head").html();parent.postMessage({meta:x},"*")}$(".containerWrapper .elInput[name='email'].required0").removeClass("required0").addClass("required1"),$("a").each(function(){target=$(this).attr("target"),"undefined"!=typeof target&&target.indexOf("_self")>=0&&$(this).attr("target","_parent"),str=$(this).attr("href"),"undefined"!=typeof str&&(str.indexOf("http")>=0||str.indexOf("www.")>=0)&&(target=$(this).attr("href"),"undefined"!=typeof target&&0==target.indexOf("_blank")&&$(this).attr("target","_parent"))}),$(".affLinkSideOptions").length&&$(".affLinkSideOptions").each(function(){$(this).find(".affLinkExtraOptions").first().html(' Turn OFF Popups'),$(this).find(".affLinkExtraOptions").slice(1,2).html('
Turn OFF AutoPlay'),$(this).find(".affLinkExtraOptions").last().html('
Turn On Cookie Preview')}),$(".elProductOptionsBox").length&&($(".activeRadioProduct").removeClass("activeRadioProduct"),$(".elProductOptionsBox .elOrderProductOptinProductName").each(function(){var e=$(this);e.find("input").is(":checked")&&e.addClass("activeRadioProduct")}),$(".elOrderProductOptinProductName input").change(function(){var e=$(this);e.is(":checked")&&($(".activeRadioProduct").removeClass("activeRadioProduct"),e.attr("id")&&$("[id='"+e.attr("id")+"']").closest(".elOrderProductOptinProductName").addClass("activeRadioProduct"))}),$(".elProductOptionsBox select").empty(),$(".elProductOptionsBox ~ .elOrderProductOptionsSelect").empty(),$(".elProductOptionsBox .elOrderProductOptinProducts").each(function(){var e=$(this),t=e.find("label").text(),n=e.find("input").val(),a=e.find(".elOrderProductOptinPrice").text();if(!e.hasClass("hide")){0==$('.elProductOptionsBox select option[value="'+n+'"]').length&&$(".elProductOptionsBox select").append('
");var o=e.closest(".elProductOptionsBox").siblings(".elOrderProductOptionsSelect");0==o.find('option[value="'+n+'"]').length&&o.append('
")}}),$(".elProductOptionsBox select, .elOrderProductOptionsSelect").change(function(){id=$(this).val(),$(".elOrderProductOptinProducts input").filter(function(){return $(this).val()===id}).prop("checked",!0).trigger("click").trigger("change")})),function(e,t){var n={ratio:16/9,videoId:"ZCAnLxRvNNc",mute:!0,repeat:!0,width:e(t).width(),wrapperZIndex:99,playButtonClass:"tubular-play",pauseButtonClass:"tubular-pause",muteButtonClass:"tubular-mute",volumeUpClass:"tubular-volume-up",volumeDownClass:"tubular-volume-down",increaseVolumeBy:10,start:0},a=function(a,o){o=e.extend({},n,o);var i=e("body");$node=e(a);var r='
';e("html,body").css({width:"100%",height:"100%"}),i.prepend(r),$node.css({position:"relative","z-index":o.wrapperZIndex}),t.player,t.onYouTubeIframeAPIReady=function(){player=new YT.Player("tubular-player",{width:o.width,height:Math.ceil(o.width/o.ratio),videoId:o.videoId,playerVars:{controls:0,showinfo:0,rel:0,iv_load_policy:3,modestbranding:1,wmode:"transparent"},events:{onReady:onPlayerReady,onStateChange:onPlayerStateChange}})},t.onPlayerReady=function(t){if(l(),o.mute&&t.target.mute(),t.target.seekTo(o.start),t.target.playVideo(),setTimeout(function(){e("#tubular-container").fadeIn(1500)},500),void 0!==e(".modalBackdropWrapper").attr("data-youtube-volume")&&"fadein"==e(".modalBackdropWrapper").attr("data-youtube-volume")&&(vol_number=0,t.target.unMute(),t.target.setVolume(0),fadeVolumeIn=setInterval(function(){vol_number+=5,t.target.setVolume(vol_number)},500),setTimeout(function(){clearInterval(fadeVolumeIn)},1e4)),void 0!==e(".modalBackdropWrapper").attr("data-youtube-hours")||"undefined"!=e(".modalBackdropWrapper").attr("data-youtube-minutes")||"undefined"!=e(".modalBackdropWrapper").attr("data-youtube-seconds")){var n=0|parseInt(e(".modalBackdropWrapper").attr("data-youtube-hours"),10),a=0|parseInt(e(".modalBackdropWrapper").attr("data-youtube-minutes"),10),i=0|parseInt(e(".modalBackdropWrapper").attr("data-youtube-seconds"),10);n*=3600,a*=60,totalSeconds=n+a+i,t.target.seekTo(totalSeconds,!0)}},t.onPlayerStateChange=function(n){if(0===n.data&&o.repeat){var a=e(".modalBackdropWrapper").attr("data-youtube-endaction");if("loop"==a||""==a||a===undefined)player.seekTo(o.start);else if("hidevideo"==a)e("#tubular-container").hide();else if("redirect"==a){e("#tubular-container").hide();var i=e(".modalBackdropWrapper").attr("data-youtube-redirecturl");t.location=i}else"popup"==a&&(e("#tubular-container").hide(),d())}};var l=function(){var n,a,i=e(t).width(),r=e(t).height(),l=e("#tubular-player");i/o.ratio
100-o.increaseVolumeBy&&(t=100-o.increaseVolumeBy),player.setVolume(t+o.increaseVolumeBy)})};if(document.body.innerHTML.search("data-youtube-background")>0||document.body.innerHTML.search('data-video-type="youtube"')>0){var o=document.createElement("script");o.src="//www.youtube.com/iframe_api"
;var i=document.getElementsByTagName("script")[0];i.parentNode.insertBefore(o,i)}e.fn.tubular=function(t){return this.each(function(){e.data(this,"tubular_instantiated")||e.data(this,"tubular_instantiated",a(this,t))})}}(jQuery,window),checkVideoAttr=$(".modalBackdropWrapper").attr("data-youtube-background"),showVideoBG=$(".modalBackdropWrapper").attr("data-youtube-selectbox"),"undefined"==typeof checkVideoAttr||0==t(checkVideoAttr)||"youtube"==showVideoBG&&(videoid=checkVideoAttr.replace("https://www.youtube.com/watch?v=",""),videoid=videoid.replace("https://youtu.be/",""),$("html").tubular({videoId:videoid}));var E=navigator.userAgent.toLowerCase();-1!=E.indexOf("safari")&&(E.indexOf("chrome")>-1||$(".social-likes__button").attr("style","padding-left: 20px !important")),$url=window.location.href,$queries=$.parseParams($url),$.each($queries,function(e,t){$(".elInput[name='"+e+"']").val(t)});var A=window.ClickFunnels.SurveyResults.retrieveCookie(),P=$queries.surveyresults;P&&A&&$.each(JSON.parse(A),function(e,t){var n=document.createElement("input");n.id=t[0],n.name=t[0],n.value=t[1],n.setAttribute("data-cf-form-field",t[0]),n.setAttribute("data-param",e),n.setAttribute("data-storage","false"),$("#cfAR").append(n)}),!P&&A&&window.ClickFunnels.SurveyResults.clearCookie(),$utm_source=$queries.nodo_source,$pID=$("#page-id").val(),$rootID=$("#root-id").val(),$variantcheck=$("#variant-check").val(),$userID=$("#user-id").val(),setTimeout(function(){$(".addthisevent-drop").append("Add to Calendar"),$(".addthisevent_dropdown").find("span").each(function(e,t){$(t).attr("tabindex",0),t.onkeydown=function(e){13===e.keyCode&&t.onclick()}})},1e3),$(".containerWrapper .de-video-block").each(function(){$videoType=$(this).attr("data-video-type"),"evp"==$videoType&&($video=$(this).attr("data-evp-url"),$visible=$(this).is(":visible"),0==$visible||(""==$video||$video==undefined?$(".elVideo",this).html("No Video Set..."):$(".elVideo",this).html($video)))}),$(".editor-video-holder").hide(),$(".editor-audio-holder").hide(),$.velocity.defaults.easing="easeInOutsine";var F=function(){$("[data-trigger='load']").each(function(){$(this).attr("data-trigger","ran"),$ID=$(this).attr("id"),$type=$(this).attr("data-animate"),$delay=$(this).attr("data-delay"),p($ID,$type,$delay,0)})};$iframeCheck=$("#iframeCheck").val(),"true"==$iframeCheck||F(),$("[data-trigger='scroll']").waypoint(function(){var e=$(this).attr("id"),t=$(this).attr("data-animate"),n=$(this).attr("data-delay");$(this).css("opacity",0),$(this).css("position","relative"),$(window).one("scroll",function(){p(e,t,n,0),$(".stickyTop").delay(n).sticky({center:!0,responsiveWidth:!0,getWidthFrom:".sticky-wrapper"})}),$(this).attr("data-trigger","done")},{offset:"75%",triggerOnce:!0}),$("[data-timed-style='fade']").each(function(){return n(this,"fade")}),$("[data-timed-style='scale']").each(function(){return n(this,"scale")}),$(".swipebox").magnificPopup({type:"image"}),$(".elVideoModalWrapper .swipebox").magnificPopup({type:"iframe",iframe:{patterns:{dailymotion:{index:"dailymotion.com",id:function(e){var t=e.match(/^.+dailymotion.com\/(video|hub)\/([^_]+)[^#]*(#video=([^_&]+))?/);return null!==t?t[4]!==undefined?t[4]:t[2]:null},src:"http://www.dailymotion.com/embed/video/%id%"},wistia:{index:"wistia.com",id:function(e){if($url=e,""!=$url&&$url!==undefined)return $url=$url.split("/"),$url=$url[$url.length-1],$url;$url="fqiy4bjdu8"},src:"//fast.wistia.net/embed/iframe/%id%?autoPlay=1&wmode=transparent"}}},callbacks:{open:function(){var e=$(this._lastFocusedEl).closest(".elVideoModalWrapper").attr("data-video-title");$(".mfp-content").find("iframe").attr("title",e)}}}),$(document).on("click","[data-upsell]",function(e){var t=$(this).data("purchase");if(t){e.preventDefault();var n=$("#cfAR");return Object.keys(t).forEach(function(e){var a="purchase["+e+"]";$("").attr("type","hidden").attr("name",a).val(t[e]).appendTo(n)}),"1"==$(this).data("upsell")&&$("").attr("type","hidden").attr("name","upsell").val($(this).data("upsell")).appendTo(n),!1}}),$(document).on("keyup",".elIMG",function(e){13!=e.which&&32!=e.which||$(this).click()}).on("click",".elIMG",function(){$(this).attr("data-imagelink")&&($url=$(this).attr("data-imagelink"),"#open-popup"==$url||"#close-popup"==$url||"#submit-form"==$url||($(this).attr("target")?($target=$(this).attr("target"),"_self"==$target?window.location.href=$url:window.open($url,"_blank")):window.location.href=$url))}),$(document).on("click",".modalBackdropWrapper",function(){return $(".containerModal").delay(0).velocity({opacity:0,top:-800},200,function(){$(".modalBackdropWrapper").css({opacity:0,top:-800}),$(".modalBackdropWrapper").hide(),$(".containerModal").hide()}),$(".containerWrapper").css("overflow","initial"),$(".containerWrapper").css("height",""),!1}),$(document).on("click",".closeLPModal",function(){return $(".containerModal").delay(0).velocity({opacity:0,top:-800},200,function(){$(".modalBackdropWrapper").css({opacity:0,top:-800}),$(".modalBackdropWrapper").hide(),$(".containerModal").hide()}),$(".containerWrapper").css("overflow","initial"),$(".containerWrapper").css("height",""),!1}),$(document).on("click","div[data-elbuttontype='2'] a",function(e){return e.stopPropagation(),m($(this).attr("data-show-button-ids"),$(this).attr("data-hide-button-ids")),!1}),$(document).on("click",".elButton",function(e){if("2"==$(this).parent().attr("data-elbuttontype"))return e.preventDefault(),!1}),$(document).on("click","a[href='#close-popup'], .elIMG[data-imagelink='#close-popup']",function(){return $(".closeLPModal").trigger("click"),!1}),$(document).on("click","a[href='#open-popup'], .elIMG[data-imagelink='#open-popup']",function(){var e=$(this).parent().attr("data-elbuttontype");return void 0!==e&&"2"==e||(d(),$("#"+$ID+" .de-video-block").each(function(){$videoType=$(this).attr("data-video-type"),"evp"==$videoType&&($video=$(this).attr("data-evp-url"),""==$video||$video==undefined?$(".elVideo",this).html("No Video Set..."):$(".elVideo",this).html($video))}),$("#"+$ID+" .de-video-block .elVideo iframe").each(function(){$autoplaycheck=$(this).attr("data-popup-autoplay"),"true"==$autoplaycheck&&($src=$(this).attr("src"),$src=$src.replace("autoplay=0","autoplay=1"),$src=$src.replace("autoPlay=0","autoPlay=1"),$(this).attr("src",$src),$(this).attr("data-popup-autoplay","played"))})),!1}),$(document).on("click","a[href='#print'], .elIMG[data-imagelink='#print']",function(){return window.print(),!1}),$(document).on("click",".btnToggle",function(){return $(this).is(".elB1")?($showThis=$(this).attr("data-show"),$root=$(this).closest(".de-editable").attr("id"),$hideThis=$("#"+$root+" .elB2").attr("data-show"),$($showThis).show(),$($hideThis).hide(),$(this).hasClass("btnToggleActive")||($getB1Color=$("#"+$root+" .elB1").css("color"),$getB2Color=$("#"+$root+" .elB2").css("color"),$(this).css("color",$getB2Color),$("#"+$root+" .elB2").css("color",$getB1Color)),$("#"+$root+" .btnToggle").removeClass("btnToggleActive"),$("#"+$root+" .btnToggle").removeClass("btnToggleDeactive"),$("#"+$root+" .elB1").addClass("btnToggleActive"),$("#"+$root+" .elB2").addClass("btnToggleDeactive")):($showThis=$(this).attr("data-show"),$root=$(this).closest(".de-editable").attr("id"),$hideThis=$("#"+$root+" .elB1").attr("data-show"),$($.trim($showThis)).show(),$($.trim($hideThis)).hide(),$(this).hasClass("btnToggleActive")||($getB1Color=$("#"+$root+" .elB1").css("color"),$getB2Color=$("#"+$root+" .elB2").css("color"),$(this).css("color",$getB1Color),$("#"+$root+" .elB1").css("color",$getB2Color)),$("#"+$root+" .btnToggle").removeClass("btnToggleActive"),$("#"+$root+" .btnToggle").removeClass("btnToggleDeactive"),$("#"+$root+" .elB2").addClass("btnToggleActive"),$("#"+$root+" .elB1").addClass("btnToggleDeactive")),!1}),$(".stickyTop").sticky({center:!0,responsiveWidth:!0,getWidthFrom:".sticky-wrapper"}),$(document).on("click","a[href*='#scroll-'], .elIMG[data-imagelink*='#scroll-']",function(){return $getHref=$(this).attr("href"),$getTitle=$getHref.split("#scroll-"),$getTitle=$getTitle[1],$getTitle=$getTitle.replace(/%20/g," "),$('.container[data-title="'+$getTitle+'"], .container [data-title="'+$getTitle+'"]').first().velocity("scroll",{duration:500}),!1}),$pID=$("#page-id").val(),$requiredCheck="",$(document).on("keypress",":input:not(textarea):not([type=submit])",function(e){if(e.keyCode==CF_KEYCODE_ENTER){var t=$(this);if(t.hasClass("noEnterSubmitForm")||"radio"==t.attr("type"))return;$("a[href='#submit-form']").trigger("click")}}),$(document).on("click","a[href='#submit-form'], .elIMG[data-imagelink='#submit-form'], a[href='#submit-form-2step'], a[href='#submit-form-2step-order'], a[href*='#yes-link'], .elIMG[data-imagelink*='#yes-link']",function(e,t){var n=$(this);if(!n.data("temp-disabled"))return $action=$(this).attr("href"),$(".elInput").each(function(e,t){var n,a,o;if(n=(o=$(this)).attr("name"),t=o.val(),""==n||"not-set"==n||""==t);else if("custom_type"==n||"cfx_all_countries"==n||"cfx_states"==n||"cfx_canada"==n||"cfx_states_canada"==n){if((a=o.attr("data-custom-type"))!=undefined){a=(a=a.toLowerCase()).replace(/\s+/g,"_"),$("#cf_contact_"+a).remove();var i=document.createElement("INPUT");i.id="cf_contact_"+a,i.name=a,i.nodeValue=t,i.setAttribute("value",t),i.setAttribute("data-cf-form-field",a),i.setAttribute("data-param",a),i.setAttribute("data-storage","false"),$("#cfAR").append(i)}}else"order_saas_url"===n?$("input[name='purchase[order_saas_url]']").val(t):$("#cf_contact_"+n).val(t)}).promise().done(function(){$requiredCheck="",$elementPathSelector="",$popupVisibleCheck=$(".modalBackdropWrapper").is(":visible"),1==$popupVisibleCheck?$elementPathSelector="#modalPopup .elInput.required1":$elementPathSelector=".elInput.required1",$($elementPathSelector).each(function(){$thisInput=$(this),$visible=$(this).is(":visible"),0==$visible||(""==$thisInput.val()?($requiredCheck="fail",$thisInput.css("border-color","#B91517"),$thisInput.css("border-width","3px")):"email"==$thisInput.attr("name")?(email=$thisInput.val(),h(email)?($thisInput.css("border-color","#4a8920"),$thisInput.css("border-width","3px")):($requiredCheck="fail",$thisInput.css("border-color","#B91517"),$thisInput.css("border-width","3px"))):($thisInput.css("border-color","#4a8920"),$thisInput.css("border-width","3px")))}).promise().done(function(){if($(".elInput.required0").css("border-color","#4a8920"),$(".elInput.required0").css("border-width","3px"),"fail"==$requiredCheck)return $(".otoloading").hide(),event.stopPropagation(),window.cfARIsValid=!1,"function"==typeof t&&t(),!1;{var a=this;function o(){return new Promise(function(e){var t=$.cookie("cf:clickpush:subscription");if(null!=t){var n=JSON.parse(t);$.each(n,function(e,t){$("").attr("type","hidden").attr("name","clickpush_subscription["+e+"]").attr("value",t).appendTo("#cfAR")})}e()})}o().then(function(){try{$time_zone=Intl.DateTimeFormat().resolvedOptions().timeZone}catch(e){$time_zone="America/New_York"}if($("#cf_contact_time_zone").val($time_zone),$arService=$("#submit-form-action").attr("data-ar-service"),"HTML"==$arService)$(".containerWrapper .de-input-block").each(function(){$ID=$(this).attr("id"),$value=$(".elInput",this).val(),$(".nodoCustomHTML input[data-sync='"+$ID+"']").val($value)}).promise().done(function(){$(".nodoHiddenFormFields .elInput").each(function(){$ID=$(this).attr("id"),$value=$(this).val(),$(".nodoCustomHTML input[data-sync='"+$ID+"']").val($value)}).promise().done(function(){n.text("Submitting..."),n.prop("disabled",!0),n.prop("href","javascript:return false;");var e=$("#cfAR").clone();e.find("input").each(function(){this.id="arclone_"+this.id}),$(".elInput").each(function(t,n){if(name=$(this).attr("name"),n=$(this).val(),""==name||"not-set"==name||""==n);else if("custom_type"==name){if($customType=$(this).attr("data-custom-type"),$customType!=undefined){$customType=$customType.toLowerCase(),$customType=$customType.replace(/\s+/g,"_"),$("#arclone_cf_contact_"+$customType).remove();var a=document.createElement("INPUT");a.id="arclone_cf_contact_"+$customType,a.name=$customType,a.nodeValue=n,a.setAttribute("value",n),e.append(a)}}else e.find("#arclone_cf_contact_"+name).val(n).attr("name","contact["+name+"]")}),$.ajax({type:"POST",url:$("head").attr("data-this-url")||window.location,data:e.serialize()}).always(function(){"#submit-form-2step"==$action?($stepOrderWrapper=$(a).closest(".elOrder2Step"),$stepOrderWrapper.find(".o2step_step1").hide(),$stepOrderWrapper.find(".o2step_step2").show(),$stepOrderWrapper.find(".order2Step-step").removeClass("order2StepActive"),$stepOrderWrapper.find(".order2Step-step-2").addClass("order2StepActive"),$stepOrderWrapper.find(".order2StepProgress").removeClass("order2Step25"),$stepOrderWrapper.find(".order2StepProgress").addClass("order2Step75"),$step2header=$stepOrderWrapper.find(".order2StepHeader"),$step2header.length&&$step2header.get(0).scrollIntoView()):($(".nodoCustomHTML input[type='submit']").remove(),$(".nodoCustomHTML form").submit())})})});else{$("#cfAR input[type='submit']").remove();try{"https://www.backpackcrm.com/orders"==$("#cfAR").attr("action")&&SendData(SendData("cfAR",$("#cfAR")[0].onsubmit))}catch(l){}if("#submit-form-2step"==$action){$stepOrderWrapper=$(a).closest(".elOrder2Step"),$stepOrderWrapper.find(".o2step_step1").hide(),$stepOrderWrapper.find(".o2step_step2").show(),$stepOrderWrapper.find(".order2Step-step").removeClass("order2StepActive"),$stepOrderWrapper.find(".order2Step-step-2").addClass("order2StepActive"),$stepOrderWrapper.find(".order2StepProgress").removeClass("order2Step25"),$stepOrderWrapper.find(".order2StepProgress").addClass("order2Step75"),$step2header=$stepOrderWrapper.find(".order2StepHeader"),$step2header.length&&$step2header.get(0).scrollIntoView(),$("#bump-offer").attr("style","margin: 4px 0px 0px -20px; cursor: pointer; float: left;");var o=$(".checkbox.inline").attr("style");$(".checkbox.inline").attr("style",o+"; cursor: auto !important;"),$(".goBacktoStepOneOrderBump").length||$(".o2step_step2").prepend('Edit Shipping Details'),$.ajax({type:"POST",url:window.location,data:$("#cfAR").serialize()})}else if(window.isPayPalOrderForm)window.cfARIsValid=!0,"function"==typeof t&&t();else{$("#cfAR").one("submit",function(){window.CFStripeErrorStartTransaction?(window.ClickFunnels.CFPeOrders.SubmitButton.enable(),window.CFStripeErrorStartTransaction=!1):window.ClickFunnels.CFPeOrders.SubmitButton.disable()});var i="true"===$("meta[name='can_use_infusionsoft_tokenization']").attr("content"),r=$("meta[name='infusionsoft_subdomain']").attr("content");window.CLICKFUNNELS_OLD_FORM_SUBMIT&&(window.HTMLFormElement.prototype.submit=window.CLICKFUNNELS_OLD_FORM_SUBMIT),i&&r&&r.length>0?window.CFInfusionsoftTokenizationHandler(r,function(){$("#cfAR").submit()}):$("#cfAR").submit()}}})}})}),!1}),$(document).on("click",".goBacktoStepOneOrderBump",function(){$stepOrderWrapper=$(this).closest(".elOrder2Step"),$stepOrderWrapper.find(".o2step_step2").hide(),$stepOrderWrapper.find(".o2step_step1").show(),$stepOrderWrapper.find(".order2Step-step").addClass("order2StepActive"),$stepOrderWrapper.find(".order2Step-step-2").removeClass("order2StepActive"),$stepOrderWrapper.find(".order2StepProgress").addClass("order2Step25"),$stepOrderWrapper.find(".order2StepProgress").removeClass("order2Step75"),$step2header=$stepOrderWrapper.find(".order2StepHeader"),$step2header.length&&$step2header.get(0).scrollIntoView()}),$("input, textarea").placeholder(),$("#modalPopup").hasClass("bounce")&&("true"==$queries.nopopup||ouibounce(!1,{aggressive:!0,timer:500,sensitivity:40,callback:function(){d()}})),"true"==$queries.noautoplay&&$(".elVideoWrapper").each(function(){$elem=$(this),$videoType=$elem.attr("data-video-type"),"youtube"==$videoType?($src=$(".elVideo iframe",this).attr("src"),$src=$src.replace("autoplay=1","autoplay=0"),$(".elVideo iframe",this).attr("src",$src)):"vimeo"==$videoType?($src=$(".elVideo iframe",this).attr("src"),$src=$src.replace("autoplay=1","autoplay=0"),$(".elVideo iframe",this).attr("src",$src)):"wistia"==$videoType&&($src=$(".elVideo iframe",this).attr("src"),$src=$src.replace("autoPlay=1","autoPlay=0"),$(".elVideo iframe",this).attr("src",$src))}),$(".elSelect").click(function(){f($("select",this))}).children().click(function(){return!1}),$(".de-video-block").fitVids({customSelector:"iframe[src*='fast.wistia.net']"}),CFbuildAudioPlayer($(".elAudioWrapper"),!0),$(document).on("click","#closeCFPOPUP",function(){parent.postMessage("closeCF","*")}),$(document).on("click","html",function(e){var t=$(e.target);(t.is(".container")||t.is(".containerWrapper")||t.is("html"))&&parent.postMessage("closeCF","*")});var M=window.addEventListener?"addEventListener":"attachEvent";(0,window[M])("attachEvent"==M?"onmessage":"message",function(e){"reanimate"==e.data&&F()},!1),$(".iframeblocked").append(""),$(".iframeunmuted").append(""),$(document).on("keyup",".elInput",function(){$input=$(this),$val=$input.val(),$attr=$input.attr("name"),"custom_type"==$attr||$(".elInput[name='"+$attr+"']").not($(this)).val($val)}),$(document).on("change",".smsCountryCode",function(){$countryCode=$(this).val(),$(".mobileSMSPhoneInput").val($countryCode)}),$(document).on("click",".elAffCopyPasteImage",function(){$html=$.trim($(".elAffiliateImageAsset",this).html()),$(this).find(" .elAffiliateCopyPopup").fadeIn(),$(this).find(" .elAffiliateCopyPopup").find("textarea").eq(0).val($html),$(this).find(" .elAffiliateCopyPopup").find("textarea").eq(0).select()}),$(document).on("click",".elAffCopyPasteText",function(){$html=$.trim($(".elAffiliateTextAsset",this).html()),$(this).find(" .elAffiliateCopyPopup").fadeIn(),$(this).find(" .elAffiliateCopyPopup").find("textarea").eq(0).val($html),$(this).find(" .elAffiliateCopyPopup").find("textarea").eq(0).select()}),$(document).on("click",".elAffiliateCopyPopup .closeAffiliateCopy",function(e){$(this).parent().fadeOut(),e.stopPropagation()});var D=$("#cfx_all_states"),L=$("#cfx_all_canada");if($(".elInput[name='cfx_all_countries']").find("option").remove(),$(".elInput[name='cfx_all_countries']").html($("#cfx_all_countries").html()),$(".elInput[name='cfx_states']").find("option").remove(),$(".elInput[name='cfx_states']").html(D.html()),$(".elInput[name='cfx_canada']").find("option").remove(),$(".elInput[name='cfx_canada']").html(L.html()),$(".elInput[name='cfx_states_canada']").find("option").remove(),$(".elInput[name='cfx_states_canada']").append($("`)}}),$(function(){if($(".clickfunnels-sticky-video").length>0){var e={Android:function(){return navigator.userAgent.match(/Android/i)},BlackBerry:function(){return navigator.userAgent.match(/BlackBerry/i)},iOS:function(){return navigator.userAgent.match(/iPhone|iPad|iPod/i)},Opera:function(){return navigator.userAgent.match(/Opera Mini/i)},Windows:function(){return navigator.userAgent.match(/IEMobile/i)},any:function(){return e.Android()||e.BlackBerry()||e.iOS()||e.Opera()||e.Windows()}},t=($(window).width(),$(".clickfunnels-sticky-video").first()),n="#"+t.attr("id"),a=t.attr("button-id"),o="off";if($("body").on("click","#cf-sticky-video-closeYesIcon",function(e){e.preventDefault(),$(n+" iframe").attr("style",""),o="on",t.find("#cf-sticky-video-closeYesIcon").remove()}),t.hasClass("cf-sticky-video200"))var i=250,r=140;else if(t.hasClass("cf-sticky-video300"))i=360,r=168;else if(t.hasClass("cf-sticky-video400"))i=400,r=225;else if(t.hasClass("cf-sticky-video500"))i=500,r=281;else i=250,r=140;var l="";if(t.hasClass("cf-sticky-videoBottomLeft")){
l="left: 20px;right: auto;bottom: 20px;top: auto;";var s="bottom: "+(parseInt(r)+15)+"px !important;padding-bottom: 20px;",u="bottom: "+r+"px;left: 10px;"}else if(t.hasClass("cf-sticky-videoTopLeft")){l="left: 20px;right: auto;top: 20px;";s="top: "+(parseInt(r)+15)+"px !important;padding-top: 20px;",u="top: 14px;left: 10px;"}else if(t.hasClass("cf-sticky-videoBottomRight")){l="left: auto;right: 20px;bottom: 20px;top: auto;";s="bottom: "+(parseInt(r)+15)+"px !important;padding-bottom: 20px;",u="bottom: "+r+"px;right: 10px;"}else{l="left: auto;right: 20px;top: 20px;";s="top: "+(parseInt(r)+15)+"px !important;padding-top: 20px;",u="top: 14px;right: 10px;"}if(""!=a)var c=$(a).attr("style");function d(){var e=n+" iframe",o=$(e).height()+100,d=$(window).scrollTop();if(d>=o){if(t.hasClass("cf-sticky-video-theme4")){var _="border: 10px solid rgba(0,0,0,0.1)";u+="background: #000;color: #fff"}else if(t.hasClass("cf-sticky-video-theme2")){_="padding: 5px;border-radius: 4px;background: #fff;box-shadow: 0 5px 10px rgba(0,0,0,0.2);";u+="color: #000;background: #fff;"}else if(t.hasClass("cf-sticky-video-theme3")){_="border: 10px solid rgba(255,255,255,0.3)";u+="color: #000;background: #fff;"}else{_="padding: 5px;border-radius: 4px;background: #000;box-shadow: 0 5px 30px rgba(0,0,0,0.2);";u+="background: #000;color: #fff"}t.hasClass("cf-sticky-video-closeYes")&&(t.find("#cf-sticky-video-closeYesIcon").remove(),t.find(".fluid-width-video-wrapper").append('')),$(e).attr("style","position: fixed;z-index: 999999;"+l+"height: "+r+"px;width: "+i+"px;"+_),$(e).addClass("cf-sticky-video-active"),""!=a&&($(a).addClass("cf-sticky-button-active"),$(a).attr("style","position: fixed;z-index: 999999;"+l+";"+s+";display: block;width: "+i+"px;"))}d2&&(e=t.contents()[2].data)&&"string"==typeof e&&e.length&&160===e.charCodeAt(0)&&(t.contents()[2].data="\u200b"+e.substring(1))})}),$(document).ready(function(){function e(e,t){t=void 0===t||t;var n="",a="",o=null;"showhide"===e.closest(".elCountdown").attr("data-expire-type")?(n=e.attr("data-hide-ids"),a=e.attr("data-show-ids"),n&&(n=n.split(","),$.each(n,function(){$("#"+this).hide()})),a&&(a=a.split(","),$.each(a,function(){$("#"+this).show()}))):""==(o=e.attr("data-url"))||"#"==o?t&&e.hide():window.ClickFunnels.RedirectLoopsLimiter.redirect(window.ClickFunnels.RedirectLoopsLimiter.EXPIRE_ACTION_EVENT_NAME,o)}function t(e){var t=e.attr("data-show-years"),n=e.attr("data-show-months"),a=e.attr("data-show-weeks"),o=e.attr("data-show-days"),i=e.attr("data-show-hours"),r=e.attr("data-show-minutes"),l=e.attr("data-show-seconds"),s="";return"true"==t&&(s+="y"),"true"==n&&(s+="o"),"true"==a&&(s+="w"),"true"!=o&&o!=undefined||(s+="d"),"true"!=i&&i!=undefined||(s+="H"),"true"!=r&&r!=undefined||(s+="M"),"true"!=l&&l!=undefined||(s+="S"),s}function n(n){function a(){var e=$(this);u&&e.find(".countdown-amount").css("color",u),c&&e.find(".countdown-period").css("color",c)}var o=n.attr("data-date").split("/"),r=n.attr("data-time"),l=n.attr("data-tz"),s=n.attr("data-lang"),u=n.attr("data-color-time"),c=n.attr("data-color-label");$.countdown.setDefaults($.countdown.regionalOptions[s]);var d=new Date(o[2],o[0]-1,o[1],r,0,0),_=moment.tz(new Date(o[2],o[0]-1,o[1],r,0,0),l).zone();_/=60,_=i(_=_*=-1),n.countdown({format:t(n.closest(".elCountdown")),until:d,timezone:_,padZeroes:!0,alwaysExpire:!0,onExpiry:function(){e(n,!1)},onTick:a})}function a(e){var t=$(".countdown-time").text(),n=t.split(" "),a=null,o=null,i=e.attr("data-lang");$.countdown.setDefaults($.countdown.regionalOptions[i]),"undefined"!=typeof n[1]&&null!==n[1]||(n=t.split("T")),""!=n[0]&&(t=(t=n[0]).split("/"),a=""===(a=n[1])?[0,0]:a.split(":"),o=$.countdown.UTCDate(0,t[0],t[1]-1,t[2],a[0],a[1],0),e.countdown({until:o,padZeroes:!0,alwaysExpire:!0,onExpiry:function(){window.location.reload()}}))}function o(t){e(t)}function i(e){return"-"==e.toString()[0]?"-"+(((e=(e=e.toString()).replace("-",""))<10?"0":"")+e):"+"+((e<10?"0":"")+e)}function r(){console.log("in EvaluateLaunchTime");var e=$(".modalBackdropWrapper").attr("data-launch-redirect"),t=$(".modalBackdropWrapper").attr("data-launch-before-units")||"hours",n=$(".modalBackdropWrapper").attr("data-launch-before-timezone")||"America/New_York",a=parseInt($(".modalBackdropWrapper").attr("data-launch-before-quantity"));if(isNaN(a)&&(a=48),""==h)return window.location.replace(e);var o=moment("1974-08-04 23:59:59 EDT","YYYY-MM-DD HH:mm:ss ZZ");h&&h.trim().length&&(o=moment(h,"YYYY/MM/DD HH:mm:ss ZZ")),"days"==t&&(o=o.tz(n));var i=o.add(a,t);return"days"==t&&i.startOf("day"),i.diff(moment.utc(),"seconds")>0?window.location.replace(e):void 0}function l(){console.log("in EvaluateDeadlineTime");var e=$(this).attr("data-lang")||"eng",t=$(".modalBackdropWrapper").attr("data-deadline-redirect"),n=$(".modalBackdropWrapper").attr("data-deadline-expire-units")||"hours",a=$(".modalBackdropWrapper").attr("data-deadline-expire-timezone")||"America/New_York",o=parseInt($(".modalBackdropWrapper").attr("data-deadline-expire-quantity"));if(isNaN(o)&&(o=48),""==h)return window.location.replace(t);var i=moment("1974-08-04 23:59:59 EDT","YYYY-MM-DD HH:mm:ss ZZ");h&&h.trim().length&&(i=moment(h,"YYYY/MM/DD HH:mm:ss ZZ")),"days"==n&&(i=i.tz(a));var r=i.add(o,n);"days"==n&&r.endOf("day");var l=r.diff(moment.utc(),"seconds");if(l<=0)return window.location.replace(t);$(".wideCountdownDeadline").each(function(){$.countdown.setDefaults($.countdown.regionalOptions[e]),$(this).countdown({until:l,padZeroes:!0,alwaysExpire:!0,onExpiry:function(){return window.location.replace(t)}})})}function s(e,t,n){return moment(Math[n](+e/+t)*+t)}function u(){date=$('.selectAW-date[data-cf-name="webinar-date"]').val(),time=$('.selectAW-date[data-cf-name="webinar-time"]').val(),webinar_datetime=moment(date+" "+time,"YYYY-MM-DD HH:mm"),webinar_datetime_offset=moment.unix(webinar_datetime),now=moment(),now_offset=moment.unix(now),webinar_delay=webinar_datetime.diff(now),webinar_delay_offset=moment.unix(webinar_delay),webinar_delay_offset=moment.unix(webinar_delay),$("#webinar_delay").attr("value",webinar_delay)}$(document).on("keyup",".smsCheckArea",function(e){13!=e.which&&32!=e.which||$(this).click()}).on("click",".smsCheckArea",function(){return $(".smsExtras").is(":visible")?($(".smsCheck",this).prop("checked",!1),$(".smsExtras").hide(),$(".smsRecieveText",this).removeClass("smsRecieveTextActive")):($(".smsCheck",this).prop("checked",!0),$(".smsExtras").show(),$(".smsRecieveText",this).addClass("smsRecieveTextActive")),!1}),CFSanitizeCountdownElement(),$(".wideCountdown").each(function(){var e=$(this),t=e.attr("data-date"),i=null!=t&&t.length>0,r=$(".countdown-time").text().length>0;i?n(e):r?a(e):o(e)}),$(".wideCountdownEvergreenDaily-demo").remove(),$(".wideCountdownEvergreenDaily").removeClass("hide"),$(".wideCountdownEvergreenDaily").each(function(){$date=moment().format("MM/DD/YYYY"),$date=$date.split("/"),$time=$(this).attr("data-time"),$tz=$(this).attr("data-tz"),$lang=$(this).attr("data-lang"),$countdownDate=new Date($date[2],$date[0]-1,$date[1],$time,0,0),$countdownDateZone=moment.tz(new Date($date[2],$date[0]-1,$date[1],$time,0,0),$tz).zone(),$countdownDateZone/=60,$countdownDateZone=$countdownDateZone*=-1,$countdownDateZone=i($countdownDateZone),$.countdown.setDefaults($.countdown.regionalOptions[$lang]),$thisID=$(this).closest(".elCountdownEvergreenDaily").attr("id"),$.cookie("cf-eg-"+$thisID)?($countdownDate=0,$countdownDateZone=0):$.cookie("cf-eg-nd-"+$thisID)&&($countdownDate=1e44,$(this).hide(),$hide=$(this).attr("data-hide-ids"),$show=$(this).attr("data-show-ids"),$hide&&($hide=$hide.split(","),$.each($hide,function(){$("#"+this).hide()})),$show&&($show=$show.split(","),$.each($show,function(){$("#"+this).hide()})),$show=$(this).attr("data-show-ids-extra"),$show&&($show=$show.split(","),$.each($show,function(){$("#"+this).show()}))),$revisitAction=$(this).closest(".elCountdownEvergreenDaily").attr("data-revisit-action"),"expirecookie"==$revisitAction?($cookieDays=$(this).attr("data-expire-cookie"),$.cookie("cf-eg-"+$thisID,"x",{expires:parseInt($cookieDays)})):"newdiv"==$revisitAction?($cookieDays=$(this).attr("data-expire-cookie-nd"),$.cookie("cf-eg-nd-"+$thisID,"x",{expires:parseInt($cookieDays)})):($.removeCookie("cf-eg-"+$thisID),$.removeCookie("cf-eg-ng-"+$thisID)),$(this).countdown({until:$countdownDate,timezone:$countdownDateZone,padZeroes:!0,alwaysExpire:!0,onExpiry:function(){$action=$(this).closest(".elCountdownEvergreenDaily").attr("data-expire-type"),"showhide"==$action?($hide=$(this).attr("data-hide-ids"),$show=$(this).attr("data-show-ids"),$hide&&($hide=$hide.split(","),$.each($hide,function(){$("#"+this).hide()})),$show&&($show=$show.split(","),$.each($show,function(){$("#"+this).show()}))):($url=$(this).attr("data-url"),""==$url||"#"==$url||window.ClickFunnels.RedirectLoopsLimiter.redirect(window.ClickFunnels.RedirectLoopsLimiter.EXPIRE_ACTION_EVENT_NAME,$url))}})});var c=$(".modalBackdropWrapper").attr("data-autowebinar-type")||"top-of-hour",d=parseInt($(".modalBackdropWrapper").attr("data-countdown-every"))||10,_=0,p=moment().add(1,"hour").startOf("hour");$(".modalBackdropWrapper[data-autowebinar-type]").first().each(function(){"top-of-hour"==c?_=p.diff(moment(),"seconds"):"every-x-mins"==c&&(p=s(moment(),moment.duration(d,"minutes"),"ceil"),_=p.diff(moment(),"seconds")),$("",{"class":"selectAW-date","data-cf-name":"webinar-date",value:p.format("YYYY-MM-DD")}).appendTo("#cfAR"),$("",{"class":"selectAW-date","data-cf-name":"webinar-time",value:p.format("HH:mm")}).appendTo("#cfAR"),u()}),$(".wideCountdownAutowebinar-demo").remove(),$(".wideCountdownAutowebinar").removeClass("hide"),$(".wideCountdownAutowebinar").each(function(){var e=$(this).attr("data-lang")||"eng";$.countdown.setDefaults($.countdown.regionalOptions[e]),$(this).countdown({until:_,padZeroes:!0,alwaysExpire:!0,onExpiry:function(){window.location.reload()}})}),$(".elAutowebinarAtWrapper").each(function(){var e=p.format("h:mm A");$(".elAutowebinarAtTime",this).text(e)});var m=$(".modalBackdropWrapper").attr("data-unknown-visitor-redirect"),h=$(".contact-created").text(),f=$(".modalBackdropWrapper").attr("data-deadline-enabled")||"no",g=$(".modalBackdropWrapper").attr("data-launch-enabled")||"no";if(""==h&&m)return window.location.replace(m);"yes"==g?(r(),"yes"==f&&l()):"yes"==f&&l(),$(".wideCountdownDeadline-demo").remove(),$(".wideCountdownDeadline").removeClass("hide"),$(".wideCountdownEvergreen-demo").remove(),$(".wideCountdownEvergreen").removeClass("hide"),$(".wideCountdownEvergreen").each(function(){$hours=$(this).attr("data-hours"),$minutes=$(this).attr("data-minutes"),$seconds=$(this).attr("data-seconds"),""==$hours||$hours==undefined?$hours=0:$hours=3600*parseInt($hours),""==$minutes||$minutes==undefined?$minutes=0:$minutes=60*parseInt($minutes),""==$seconds||$seconds==undefined?$seconds=0:$seconds=parseInt($seconds),$countdownDate=$hours+$minutes+$seconds,$lang=$(this).attr("data-lang"),$.countdown.setDefaults($.countdown.regionalOptions[$lang]),$thisID=$(this).closest(".elCountdownEvergreen").attr("id"),$.cookie("cf-eg-"+$thisID)?($countdownDate=0,$countdownDateZone=0):$.cookie("cf-eg-nd-"+$thisID)&&($countdownDate=1e44,$(this).hide(),$hide=$(this).attr("data-hide-ids"),$show=$(this).attr("data-show-ids"),"undefined"!=typeof $hide&&($hide=$hide.split(","),$.each($hide,function(){$("#"+this).hide()})),"undefined"!=typeof $show&&($show=$show.split(","),$.each($show,function(){$("#"+this).hide()})),$show=$(this).attr("data-show-ids-extra"),"undefined"!=typeof $show&&($show=$show.split(","),$.each($show,function(){$("#"+this).show()}))),$revisitAction=$(this).closest(".elCountdownEvergreen").attr("data-revisit-action"),"expirecookie"==$revisitAction?($cookieDays=$(this).attr("data-expire-cookie"),$.cookie("cf-eg-"+$thisID,"x",{expires:parseInt($cookieDays)})):"newdiv"==$revisitAction?($cookieDays=$(this).attr("data-expire-cookie-nd"),$.cookie("cf-eg-nd-"+$thisID,"x",{expires:parseInt($cookieDays)})):($.removeCookie("cf-eg-"+$thisID),$.removeCookie("cf-eg-ng-"+$thisID)),$(this).countdown({until:+$countdownDate,padZeroes:!0,alwaysExpire:!0,onExpiry:function(){$action=$(this).closest(".elCountdownEvergreen").attr("data-expire-type"),"showhide"==$action?($hide=$(this).attr("data-hide-ids"),$show=$(this).attr("data-show-ids"),"undefined"!=typeof $hide&&($hide=$hide.split(","),$.each($hide,function(){$("#"+this).hide()})),"undefined"!=typeof $show&&($show=$show.split(","),$.each($show,function(){$("#"+this).show()}))):($url=$(this).attr("data-url"),""==$url||"#"==$url||window.ClickFunnels.RedirectLoopsLimiter.redirect(window.ClickFunnels.RedirectLoopsLimiter.EXPIRE_ACTION_EVENT_NAME,$url))}})}),$localTime=moment().format("h:mm A"),$(".awLocalTime").text($localTime),setInterval(function(){$localTime=moment().format("h:mm A"),$(".awLocalTime").text($localTime)},6e4),$('.selectAW-date[data-cf-name="webinar-date"]').find("option").remove(),$autoWebinarDay1=moment().add("days",1).format("dddd, MMM Do, YYYY"),$autoWebinarDay1_raw=moment().add("days",1).format("YYYY-MM-DD"),$selectText=$('.selectAW-date[data-cf-name="webinar-date"]').attr("data-selecttext"),$selectText||($selectText="Select Desired Date..."),$('.selectAW-date[data-cf-name="webinar-date"]').append('"),$autoWebinarDay0=moment().subtract("days",1).format("dddd, MMM Do, YYYY"),$autoWebinarDay0_raw=moment().subtract("days",1).format("YYYY-MM-DD"),$replayText=$('.selectAW-date[data-cf-name="webinar-date"]').attr("data-replaytext"),$replayText||($replayText="Watch Yesterday's Broadcast Now"),$('.selectAW-date[data-cf-name="webinar-date"]').append('"),$(".selectAW-date").hasClass("short_date_awdt")&&($autoWebinarDay1=$autoWebinarDay1_raw),$('.selectAW-date[data-cf-name="webinar-date"]').append('"),$autoWebinarDay2=moment().add("days",2).format("dddd, MMM Do, YYYY"),$autoWebinarDay2_raw=moment().add("days",2).format("YYYY-MM-DD"),$(".selectAW-date").hasClass("short_date_awdt")&&($autoWebinarDay2=$autoWebinarDay2_raw),$('.selectAW-date[data-cf-name="webinar-date"]').append('"),$autoWebinarDay3=moment().add("days",3).format("dddd, MMM Do, YYYY"),$autoWebinarDay3_raw=moment().add("days",3).format("YYYY-MM-DD"),$(".selectAW-date").hasClass("short_date_awdt")&&($autoWebinarDay3=$autoWebinarDay3_raw),$('.selectAW-date[data-cf-name="webinar-date"]').append('"),$('.selectAW-date[data-cf-name="webinar-time"]').find("option").remove(),$('.selectAW-date[data-cf-name="webinar-time"]').each(function(){$11am=$(this).attr("data-time-11"),$2pm=$(this).attr("data-time-2"),$4pm=$(this).attr("data-time-4"),$6pm=$(this).attr("data-time-6"),$8pm=$(this).attr("data-time-8"),"off"!=$11am&&$(this).append(''),"off"!=$2pm&&$(this).append(''),"off"!=$4pm&&$(this).append(''),"off"!=$6pm&&$(this).append(''),"off"!=$8pm&&$(this).append('')}).promise().done(function(){$('.selectAW-date[data-cf-name="webinar-time"]').val()||$('.selectAW-date[data-cf-name="webinar-time"]').append(''),u()}),$('.de-editable[data-de-type="awdtt"]').hide(),$removeSelectDateOnAutoWebinar=!1,$(document).on("change",'.selectAW-date[data-cf-name="webinar-date"]',function(){u(),$dateSelected=$(this).val(),$autoWebinarDay0_raw==$dateSelected?$('.de-editable[data-de-type="awdtt"]').hide():$('.de-editable[data-de-type="awdtt"]').show(),0==$removeSelectDateOnAutoWebinar&&($("option:first-child",this).remove(),$removeSelectDateOnAutoWebinar=!0)}),$(document).on("change",'.selectAW-date[data-cf-name="webinar-time"]',function(){u()}),$(document).on("load",function(){$('.selectAW-date[data-cf-name="webinar-date"]').size()>0&&u()}),$("body").load(function(){$('.selectAW-date[data-cf-name="webinar-date"]').size()>0&&u()})}),$(function(){$('.selectAW-date[data-cf-name="webinar-date"]').size()>0&&webinarDelay()}),CFrenameVimeoURLAttribute(),CFstartBPVideos(),function(e){if(!e.hasInitialised){var t={escapeRegExp:function(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},hasClass:function(e,t){var n=" ";return 1===e.nodeType&&(n+e.className+n).replace(/[\n\t]/g,n).indexOf(n+t+n)>=0},addClass:function(e,t){e.className+=" "+t},removeClass:function(e,t){var n=new RegExp("\\b"+this.escapeRegExp(t)+"\\b");e.className=e.className.replace(n,"")},interpolateString:function(e,t){var n=/{{([a-z][a-z0-9\-_]*)}}/gi;return e.replace(n,function(){return t(arguments[1])||""})},getCookie:function(e){var t=("; "+document.cookie).split("; "+e+"=");return 2!=t.length?undefined:t.pop().split(";").shift()},setCookie:function(e,t,n,a,o){var i=new Date;i.setDate(i.getDate()+(n||365));var r=[e+"="+t,"expires="+i.toUTCString(),"path="+(o||"/")];a&&r.push("domain="+a),document.cookie=r.join(";")},deepExtend:function(e,t){for(var n in t)t.hasOwnProperty(n)&&(n in e&&this.isPlainObject(e[n])&&this.isPlainObject(t[n])?this.deepExtend(e[n],t[n]):e[n]=t[n]);return e},throttle:function(e,t){var n=!1;return function(){n||(e.apply(this,arguments),n=!0,setTimeout(function(){n=!1},t))}},hash:function(e){var t,n,a=0;if(0===e.length)return a;for(t=0,n=e.length;t=128?"#000":"#fff"},getLuminance:function(e){var t=parseInt(this.normaliseHex(e),16),n=38,a=(t>>16)+n,o=(t>>8&255)+n,i=(255&t)+n;return"#"+(16777216+65536*(a<255?a<1?0:a:255)+256*(o<255?o<1?0:o:255)+(i<255?i<1?0:i:255)).toString(16).slice(1)},isMobile:function(){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)},isPlainObject:function(e){return"object"==typeof e&&null!==e&&e.constructor==Object}};e.status={deny:"deny",allow:"allow",dismiss:"dismiss"},e.transitionEnd=function(){var e=document.createElement("div"),t={t:"transitionend",OT:"oTransitionEnd",msT:"MSTransitionEnd",MozT:"transitionend",WebkitT:"webkitTransitionEnd"};for(var n in t)if(t.hasOwnProperty(n)&&"undefined"!=typeof e.style[n+"ransition"])return t[n];return""}(),e.hasTransition=!!e.transitionEnd;var n=Object.keys(e.status).map(t.escapeRegExp);e.customStyles={},e.Popup=function(){function a(){this.initialise.apply(this,arguments)}function o(e){this.openingTimeout=null,t.removeClass(e,"cc-invisible")}function i(t){t.style.display="none",t.removeEventListener(e.transitionEnd,this.afterTransition),this.afterTransition=null}function r(){var t=this.options.onInitialise.bind(this);if(!window.navigator.cookieEnabled)return t(e.status.deny),!0;if(window.CookiesOK||window.navigator.CookiesOK)return t(e.status.allow),!0;var n=Object.keys(e.status),a=this.getStatus(),o=n.indexOf(a)>=0;return o&&t(a),o}function l(){var e=this.options.position.split("-"),t=[];return e.forEach(function(e){t.push("cc-"+e)}),t}function s(){var e=this.options,n="top"==e.position||"bottom"==e.position?"banner":"floating";t.isMobile()&&(n="floating");var a=["cc-"+n,"cc-type-"+e.type,"cc-theme-"+e.theme];e["static"]&&a.push("cc-static"),a.push.apply(a,l.call(this));_.call(this,this.options.palette);return this.customStyleSelector&&a.push(this.customStyleSelector),a}function u(){function e(e){var t=a.content[e];return e&&"string"==typeof t&&t.length?t:""}var n={},a=this.options;a.showLink||(a.elements.link="",a.elements.messagelink=a.elements.message),Object.keys(a.elements).forEach(function(o){n[o]=t.interpolateString(a.elements[o],e)}),n.message=t.interpolateString(n.message,e),n.messagelink=t.interpolateString(n.messagelink,e);var o=a.compliance[a.type];o||(o=a.compliance.info),n.compliance=t.interpolateString(o,function(e){return n[e]});var i=a.layouts[a.layout];return i||(i=a.layouts.basic),t.interpolateString(i,function(e){return n[e]})}function c(n){var a=this.options,o=document.createElement("div"),i=a.container&&1===a.container.nodeType?a.container:document.body;o.innerHTML=n;var r=o.children[0];return r.style.display="none",t.hasClass(r,"cc-window")&&e.hasTransition&&t.addClass(r,"cc-invisible"),this.onButtonClick=d.bind(this),r.addEventListener("click",this.onButtonClick),a.autoAttach&&(i.firstChild?i.insertBefore(r,i.firstChild):i.appendChild(r)),r}function d(a){var o=a.target;if(t.hasClass(o,"cc-btn")){var i=o.className.match(new RegExp("\\bcc-("+n.join("|")+")\\b")),r=i&&i[1]||!1;r&&(this.setStatus(r),this.close(!0))}t.hasClass(o,"cc-close")&&(this.setStatus(e.status.dismiss),this.close(!0)),t.hasClass(o,"cc-revoke")&&this.revokeChoice()}function _(e){var n=t.hash(JSON.stringify(e)),a="cc-color-override-"+n,o=t.isPlainObject(e);return this.customStyleSelector=o?a:null,o&&p(n,e,"."+a),o}function p(n,a,o){if(e.customStyles[n])++e.customStyles[n].references;else{var i={},r=a.popup,l=a.button,s=a.highlight;r&&(r.text=r.text?r.text:t.getContrast(r.background),r.link=r.link?r.link:r.text,i[o+".cc-window"]=["color: "+r.text,"background-color: "+r.background],i[o+".cc-revoke"]=["color: "+r.text,"background-color: "+r.background],i[o+" .cc-link,"+o+" .cc-link:active,"+o+" .cc-link:visited"]=["color: "+r.link],l&&(l.text=l.text?l.text:t.getContrast(l.background),l.border=l.border?l.border:"transparent",i[o+" .cc-btn"]=["color: "+l.text,"border-color: "+l.border,"background-color: "+l.background],"transparent"!=l.background&&(i[o+" .cc-btn:hover, "+o+" .cc-btn:focus"]=["background-color: "+m(l.background)]),s?(s.text=s.text?s.text:t.getContrast(s.background),s.border=s.border?s.border:"transparent",i[o+" .cc-highlight .cc-btn:first-child"]=["color: "+s.text,"border-color: "+s.border,"background-color: "+s.background]):i[o+" .cc-highlight .cc-btn:first-child"]=["color: "+r.text]));var u=document.createElement("style");document.head.appendChild(u),e.customStyles[n]={references:1,element:u.sheet};var c=-1;for(var d in i)i.hasOwnProperty(d)&&u.sheet.insertRule(d+"{"+i[d].join(";")+"}",++c)}}function m(e){return"000000"==(e=t.normaliseHex(e))?"#222":t.getLuminance(e)}function h(n){if(t.isPlainObject(n)){var a=t.hash(JSON.stringify(n)),o=e.customStyles[a];if(o&&!--o.references){var i=o.element.ownerNode;i&&i.parentNode&&i.parentNode.removeChild(i),e.customStyles[a]=null}}}function f(e,t){for(var n=0,a=e.length;n=0&&(this.dismissTimeout=window.setTimeout(function(){t(e.status.dismiss)},Math.floor(n)));var a=this.options.dismissOnScroll;if("number"==typeof a&&a>=0){var o=function(){window.pageYOffset>Math.floor(a)&&(t(e.status.dismiss),window.removeEventListener("scroll",o),this.onWindowScroll=null)};this.onWindowScroll=o,window.addEventListener("scroll",o)}}function b(){if("info"!=this.options.type&&(this.options.revokable=!0),t.isMobile()&&(this.options.animateRevokable=!1),this.options.revokable){var e=l.call(this);this.options.animateRevokable&&e.push("cc-animate"),this.customStyleSelector&&e.push(this.customStyleSelector);var n=this.options.revokeBtn.replace("{{classes}}",e.join(" "));this.revokeBtn=c.call(this,n);var a=this.revokeBtn;if(this.options.animateRevokable){var o=t.throttle(function(e){var n=!1,o=20,i=window.innerHeight-20;t.hasClass(a,"cc-top")&&e.clientYi&&(n=!0),n?t.hasClass(a,"cc-active")||t.addClass(a,"cc-active"):t.hasClass(a,"cc-active")&&t.removeClass(a,"cc-active")},200);this.onMouseMove=o,window.addEventListener("mousemove",o)}}}var y={enabled:!0,container:null,cookie:{name:"cookieconsent_status",path:"/",domain:"",expiryDays:365},onPopupOpen:function(){},onPopupClose:function(){},onInitialise:function(){},onStatusChange:function(){},onRevokeChoice:function(){},content:{header:"Cookies used on the website!",message:'This site uses cookies to deliver our services. By using our site, you acknowledge, that you have read and understand our Cookie Policy, Privacy Policy, and our Terms of Service. Your use of ClickFunnel\'s Products and Services is subject to these policies and terms.',cookieurl:"https://signup.clickfunnels.com/cookie-policy-1",privacyurl:"https://signup.clickfunnels.com/privacy-policy",termsurl:"/terms",dismiss:"Got it!",allow:"Allow cookies",deny:"Decline",link:"Learn more",href:"http://cookiesandyou.com",close:"❌"},elements:{header:' ',message:'{{message}}',messagelink:'{{message}} {{link}}',dismiss:'{{dismiss}}',allow:'{{allow}}',deny:'{{deny}}',link:'{{link}}',close:'{{close}}'},window:'{{children}}
',revokeBtn:'Cookie Policy
',compliance:{info:'{{dismiss}}
',"opt-in":'{{dismiss}}{{allow}}
',"opt-out":'{{deny}}{{dismiss}}
'},type:"info",layouts:{basic:"{{messagelink}}{{compliance}}","basic-close":"{{messagelink}}{{compliance}}{{close}}","basic-header":"{{header}}{{message}}{{link}}{{compliance}}"},layout:"basic",position:"bottom",theme:"block","static":!1,palette:null,revokable:!1,animateRevokable:!0,showLink:!0,dismissOnScroll:!1,dismissOnTimeout:!1,autoOpen:!0,autoAttach:!0,whitelistPage:[],blacklistPage:[],overrideHTML:null};return a.prototype.initialise=function(e){this.options&&this.destroy(),t.deepExtend(this.options={},y),t.isPlainObject(e)&&t.deepExtend(this.options,e),r.call(this)&&(this.options.enabled=!1),f(this.options.blacklistPage,location.pathname)&&(this.options.enabled=!1),f(this.options.whitelistPage,location.pathname)&&(this.options.enabled=!0);var n=this.options.window.replace("{{classes}}",s.call(this).join(" ")).replace("{{children}}",u.call(this)),a=this.options.overrideHTML;if("string"==typeof a&&a.length&&(n=a),this.options["static"]){var o=c.call(this,''+n+"
");o.style.display="",this.element=o.firstChild,this.element.style.display="none",t.addClass(this.element,"cc-invisible")}else this.element=c.call(this,n);g.call(this),b.call(this),this.options.autoOpen&&this.autoOpen()},a.prototype.destroy=function(){this.onButtonClick&&this.element&&(this.element.removeEventListener("click",this.onButtonClick),this.onButtonClick=null),this.dismissTimeout&&(clearTimeout(this.dismissTimeout),this.dismissTimeout=null),this.onWindowScroll&&(window.removeEventListener("scroll",this.onWindowScroll),this.onWindowScroll=null),this.onMouseMove&&(window.removeEventListener("mousemove",this.onMouseMove),this.onMouseMove=null),this.element&&this.element.parentNode&&this.element.parentNode.removeChild(this.element),this.element=null,this.revokeBtn&&this.revokeBtn.parentNode&&this.revokeBtn.parentNode.removeChild(this.revokeBtn),this.revokeBtn=null,h(this.options.palette),this.options=null},a.prototype.open=function(){if(this.element)return this.isOpen()||(e.hasTransition?this.fadeIn():this.element.style.display="",this.options.revokable&&this.toggleRevokeButton(),this.options.onPopupOpen.call(this)),this},a.prototype.close=function(t){if(this.element)return this.isOpen()&&(e.hasTransition?this.fadeOut():this.element.style.display="none",t&&this.options.revokable&&this.toggleRevokeButton(!0),this.options.onPopupClose.call(this)),this},a.prototype.fadeIn=function(){var n=this.element;if(e.hasTransition&&n&&(this.afterTransition&&i.call(this,n),t.hasClass(n,"cc-invisible"))){if(n.style.display="",this.options["static"]){var a=this.element.clientHeight;this.element.parentNode.style.maxHeight=a+"px"}var r=20;this.openingTimeout=setTimeout(o.bind(this,n),r)}},a.prototype.fadeOut=function(){var n=this.element;e.hasTransition&&n&&(this.openingTimeout&&(clearTimeout(this.openingTimeout),o.bind(this,n)),t.hasClass(n,"cc-invisible")||(this.options["static"]&&(this.element.parentNode.style.maxHeight=""),this.afterTransition=i.bind(this,n),n.addEventListener(e.transitionEnd,this.afterTransition),t.addClass(n,"cc-invisible")))},a.prototype.isOpen=function(){return this.element&&""==this.element.style.display&&(!e.hasTransition||!t.hasClass(this.element,"cc-invisible"))},a.prototype.toggleRevokeButton=function(e){this.revokeBtn&&(this.revokeBtn.style.display=e?"":"none")},a.prototype.revokeChoice=function(e){this.options.enabled=!0,this.clearStatus(),this.options.onRevokeChoice.call(this),e||this.autoOpen()},a.prototype.hasAnswered=function(){return Object.keys(e.status).indexOf(this.getStatus())>=0},a.prototype.hasConsented=function(){var t=this.getStatus();return t==e.status.allow||t==e.status.dismiss},a.prototype.autoOpen=function(){!this.hasAnswered()&&this.options.enabled&&this.open()},a.prototype.setStatus=function(n){var a=this.options.cookie,o=t.getCookie(a.name),i=Object.keys(e.status).indexOf(o)>=0;Object.keys(e.status).indexOf(n)>=0?(t.setCookie(a.name,n,a.expiryDays,a.domain,a.path),this.options.onStatusChange.call(this,n,i)):this.clearStatus()},a.prototype.getStatus=function(){return t.getCookie(this.options.cookie.name)},a.prototype.clearStatus=function(){var e=this.options.cookie;t.setCookie(e.name,"",-1,e.domain,e.path)},a}(),e.Location=function(){function e(e){t.deepExtend(this.options={},i),t.isPlainObject(e)&&t.deepExtend(this.options,e),this.currentServiceIndex=-1}function n(e,t,n){var a,o=document.createElement("script");o.type="text/"+(e.type||"javascript"),o.src=e.src||e,o.async=!1,o.onreadystatechange=o.onload=function(){var e=o.readyState;clearTimeout(a),t.done||e&&!/loaded|complete/.test(e)||(t.done=!0,t(),o.onreadystatechange=o.onload=null)},document.body.appendChild(o),a=setTimeout(function(){t.done=!0,t(),o.onreadystatechange=o.onload=null},n)}function a(e,t,n,a,o){var i=new(window.XMLHttpRequest||window.ActiveXObject)("MSXML2.XMLHTTP.3.0");if(i.open(a?"POST":"GET",e,1),i.setRequestHeader("X-Requested-With","XMLHttpRequest"),i.setRequestHeader("Content-type","application/x-www-form-urlencoded"),Array.isArray(o))for(var r=0,l=o.length;r3&&t(i)}),i.send(a)}function o(e){return new Error("Error ["+(e.code||"UNKNOWN")+"]: "+e.error)}var i={timeout:5e3,services:["freegeoip","ipinfo","maxmind"],serviceDefinitions:{freegeoip:function(){return{url:"//freegeoip.net/json/?callback={callback}",isScript:!0,callback:function(e,t){try{var n=JSON.parse(t);return n.error?o(n):{code:n.country_code}}catch(a){return o({error:"Invalid response ("+a+")"})}}}},ipinfo:function(){return{
url:"//ipinfo.io",headers:["Accept: application/json"],callback:function(e,t){try{var n=JSON.parse(t);return n.error?o(n):{code:n.country}}catch(a){return o({error:"Invalid response ("+a+")"})}}}},ipinfodb:function(){return{url:"//api.ipinfodb.com/v3/ip-country/?key={api_key}&format=json&callback={callback}",isScript:!0,callback:function(e,t){try{var n=JSON.parse(t);return"ERROR"==n.statusCode?o({error:n.statusMessage}):{code:n.countryCode}}catch(a){return o({error:"Invalid response ("+a+")"})}}}},maxmind:function(){return{url:"//js.maxmind.com/js/apis/geoip2/v2.1/geoip2.js",isScript:!0,callback:function(e){window.geoip2?geoip2.country(function(t){try{e({code:t.country.iso_code})}catch(n){e(o(n))}},function(t){e(o(t))}):e(new Error("Unexpected response format. The downloaded script should have exported `geoip2` to the global scope"))}}}}};return e.prototype.getNextService=function(){var e;do{e=this.getServiceByIdx(++this.currentServiceIndex)}while(this.currentServiceIndex=0,revokable:t.revokable.indexOf(e)>=0,explicitAction:t.explicitAction.indexOf(e)>=0}},e.prototype.applyLaw=function(e,t){var n=this.get(t);return n.hasLaw||(e.enabled=!1),this.options.regionalLaw&&(n.revokable&&(e.revokable=!0),n.explicitAction&&(e.dismissOnScroll=!1,e.dismissOnTimeout=!1)),e},e}(),e.initialise=function(t,n,a){var o=new e.Law(t.law);n||(n=function(){}),a||(a=function(){}),e.getCountryCode(t,function(a){delete t.law,delete t.location,a.code&&(t=o.applyLaw(t,a.code)),n(new e.Popup(t))},function(n){delete t.law,delete t.location,a(n,new e.Popup(t))})},e.getCountryCode=function(t,n,a){t.law&&t.law.countryCode?n({code:t.law.countryCode}):t.location?new e.Location(t.location).locate(function(e){n(e||{})},a):n({})},e.utils=t,e.hasInitialised=!0,window.cookieconsent=e}}(window.cookieconsent||{}),options=[{name:"Select Country",code:""},{name:"------------------------------",code:""},{name:"United States",code:"US"},{name:"Canada",code:"CA"},{name:"United Kingdom",code:"GB"},{name:"Ireland",code:"IE"},{name:"Australia",code:"AU"},{name:"New Zealand",code:"NZ"},{name:"------------------------------",code:""},{name:"Afghanistan",code:"AF"},{name:"Aland Islands",code:"AX"},{name:"Albania",code:"AL"},{name:"Algeria",code:"DZ"},{name:"American Samoa",code:"AS"},{name:"Andorra",code:"AD"},{name:"Angola",code:"AO"},{name:"Anguilla",code:"AI"},{name:"Antarctica",code:"AQ"},{name:"Antigua and Barbuda",code:"AG"},{name:"Argentina",code:"AR"},{name:"Armenia",code:"AM"},{name:"Aruba",code:"AW"},{name:"Australia",code:"AU"},{name:"Austria",code:"AT"},{name:"Azerbaijan",code:"AZ"},{name:"Bahamas",code:"BS"},{name:"Bahrain",code:"BH"},{name:"Bangladesh",code:"BD"},{name:"Barbados",code:"BB"},{name:"Belarus",code:"BY"},{name:"Belgium",code:"BE"},{name:"Belize",code:"BZ"},{name:"Benin",code:"BJ"},{name:"Bermuda",code:"BM"},{name:"Bhutan",code:"BT"},{name:"Bolivia",code:"BO"},{name:"Bonaire, Saint Eustatius and Saba ",code:"BQ"},{name:"Bosnia and Herzegovina",code:"BA"},{name:"Botswana",code:"BW"},{name:"Bouvet Island",code:"BV"},{name:"Brazil",code:"BR"},{name:"British Indian Ocean Territory",code:"IO"},{name:"British Virgin Islands",code:"VG"},{name:"Brunei",code:"BN"},{name:"Bulgaria",code:"BG"},{name:"Burkina Faso",code:"BF"},{name:"Burundi",code:"BI"},{name:"Cambodia",code:"KH"},{name:"Cameroon",code:"CM"},{name:"Canada",code:"CA"},{name:"Cape Verde",code:"CV"},{name:"Cayman Islands",code:"KY"},{name:"Central African Republic",code:"CF"},{name:"Chad",code:"TD"},{name:"Chile",code:"CL"},{name:"China",code:"CN"},{name:"Christmas Island",code:"CX"},{name:"Cocos Islands",code:"CC"},{name:"Colombia",code:"CO"},{name:"Comoros",code:"KM"},{name:"Cook Islands",code:"CK"},{name:"Costa Rica",code:"CR"},{name:"Croatia",code:"HR"},{name:"Cuba",code:"CU"},{name:"Curacao",code:"CW"},{name:"Cyprus",code:"CY"},{name:"Czech Republic",code:"CZ"},{name:"Democratic Republic of the Congo",code:"CD"},{name:"Denmark",code:"DK"},{name:"Djibouti",code:"DJ"},{name:"Dominica",code:"DM"},{name:"Dominican Republic",code:"DO"},{name:"East Timor",code:"TL"},{name:"Ecuador",code:"EC"},{name:"Egypt",code:"EG"},{name:"El Salvador",code:"SV"},{name:"Equatorial Guinea",code:"GQ"},{name:"Eritrea",code:"ER"},{name:"Estonia",code:"EE"},{name:"Ethiopia",code:"ET"},{name:"Falkland Islands",code:"FK"},{name:"Faroe Islands",code:"FO"},{name:"Fiji",code:"FJ"},{name:"Finland",code:"FI"},{name:"France",code:"FR"},{name:"French Guiana",code:"GF"},{name:"French Polynesia",code:"PF"},{name:"French Southern Territories",code:"TF"},{name:"Gabon",code:"GA"},{name:"Gambia",code:"GM"},{name:"Georgia",code:"GE"},{name:"Germany",code:"DE"},{name:"Ghana",code:"GH"},{name:"Gibraltar",code:"GI"},{name:"Greece",code:"GR"},{name:"Greenland",code:"GL"},{name:"Grenada",code:"GD"},{name:"Guadeloupe",code:"GP"},{name:"Guam",code:"GU"},{name:"Guatemala",code:"GT"},{name:"Guernsey",code:"GG"},{name:"Guinea",code:"GN"},{name:"Guinea-Bissau",code:"GW"},{name:"Guyana",code:"GY"},{name:"Haiti",code:"HT"},{name:"Heard Island and McDonald Islands",code:"HM"},{name:"Honduras",code:"HN"},{name:"Hong Kong",code:"HK"},{name:"Hungary",code:"HU"},{name:"Iceland",code:"IS"},{name:"India",code:"IN"},{name:"Indonesia",code:"ID"},{name:"Iran",code:"IR"},{name:"Iraq",code:"IQ"},{name:"Ireland",code:"IE"},{name:"Isle of Man",code:"IM"},{name:"Israel",code:"IL"},{name:"Italy",code:"IT"},{name:"Ivory Coast",code:"CI"},{name:"Jamaica",code:"JM"},{name:"Japan",code:"JP"},{name:"Jersey",code:"JE"},{name:"Jordan",code:"JO"},{name:"Kazakhstan",code:"KZ"},{name:"Kenya",code:"KE"},{name:"Kiribati",code:"KI"},{name:"Kosovo",code:"XK"},{name:"Kuwait",code:"KW"},{name:"Kyrgyzstan",code:"KG"},{name:"Laos",code:"LA"},{name:"Latvia",code:"LV"},{name:"Lebanon",code:"LB"},{name:"Lesotho",code:"LS"},{name:"Liberia",code:"LR"},{name:"Libya",code:"LY"},{name:"Liechtenstein",code:"LI"},{name:"Lithuania",code:"LT"},{name:"Luxembourg",code:"LU"},{name:"Macao",code:"MO"},{name:"Macedonia",code:"MK"},{name:"Madagascar",code:"MG"},{name:"Malawi",code:"MW"},{name:"Malaysia",code:"MY"},{name:"Maldives",code:"MV"},{name:"Mali",code:"ML"},{name:"Malta",code:"MT"},{name:"Marshall Islands",code:"MH"},{name:"Martinique",code:"MQ"},{name:"Mauritania",code:"MR"},{name:"Mauritius",code:"MU"},{name:"Mayotte",code:"YT"},{name:"Mexico",code:"MX"},{name:"Micronesia",code:"FM"},{name:"Moldova",code:"MD"},{name:"Monaco",code:"MC"},{name:"Mongolia",code:"MN"},{name:"Montenegro",code:"ME"},{name:"Montserrat",code:"MS"},{name:"Morocco",code:"MA"},{name:"Mozambique",code:"MZ"},{name:"Myanmar",code:"MM"},{name:"Namibia",code:"NA"},{name:"Nauru",code:"NR"},{name:"Nepal",code:"NP"},{name:"Netherlands",code:"NL"},{name:"New Caledonia",code:"NC"},{name:"New Zealand",code:"NZ"},{name:"Nicaragua",code:"NI"},{name:"Niger",code:"NE"},{name:"Nigeria",code:"NG"},{name:"Niue",code:"NU"},{name:"Norfolk Island",code:"NF"},{name:"North Korea",code:"KP"},{name:"Northern Mariana Islands",code:"MP"},{name:"Norway",code:"NO"},{name:"Oman",code:"OM"},{name:"Pakistan",code:"PK"},{name:"Palau",code:"PW"},{name:"Palestinian Territory",code:"PS"},{name:"Panama",code:"PA"},{name:"Papua New Guinea",code:"PG"},{name:"Paraguay",code:"PY"},{name:"Peru",code:"PE"},{name:"Philippines",code:"PH"},{name:"Pitcairn",code:"PN"},{name:"Poland",code:"PL"},{name:"Portugal",code:"PT"},{name:"Puerto Rico",code:"PR"},{name:"Qatar",code:"QA"},{name:"Republic of the Congo",code:"CG"},{name:"Reunion",code:"RE"},{name:"Romania",code:"RO"},{name:"Russia",code:"RU"},{name:"Rwanda",code:"RW"},{name:"Saint Barthelemy",code:"BL"},{name:"Saint Helena",code:"SH"},{name:"Saint Kitts and Nevis",code:"KN"},{name:"Saint Lucia",code:"LC"},{name:"Saint Martin",code:"MF"},{name:"Saint Pierre and Miquelon",code:"PM"},{name:"Saint Vincent and the Grenadines",code:"VC"},{name:"Samoa",code:"WS"},{name:"San Marino",code:"SM"},{name:"Sao Tome and Principe",code:"ST"},{name:"Saudi Arabia",code:"SA"},{name:"Senegal",code:"SN"},{name:"Serbia",code:"RS"},{name:"Seychelles",code:"SC"},{name:"Sierra Leone",code:"SL"},{name:"Singapore",code:"SG"},{name:"Sint Maarten",code:"SX"},{name:"Slovakia",code:"SK"},{name:"Slovenia",code:"SI"},{name:"Solomon Islands",code:"SB"},{name:"Somalia",code:"SO"},{name:"South Africa",code:"ZA"},{name:"South Georgia and the South Sandwich Islands",code:"GS"},{name:"South Korea",code:"KR"},{name:"South Sudan",code:"SS"},{name:"Spain",code:"ES"},{name:"Sri Lanka",code:"LK"},{name:"Sudan",code:"SD"},{name:"Suriname",code:"SR"},{name:"Svalbard and Jan Mayen",code:"SJ"},{name:"Swaziland",code:"SZ"},{name:"Sweden",code:"SE"},{name:"Switzerland",code:"CH"},{name:"Syria",code:"SY"},{name:"Taiwan",code:"TW"},{name:"Tajikistan",code:"TJ"},{name:"Tanzania",code:"TZ"},{name:"Thailand",code:"TH"},{name:"Togo",code:"TG"},{name:"Tokelau",code:"TK"},{name:"Tonga",code:"TO"},{name:"Trinidad and Tobago",code:"TT"},{name:"Tunisia",code:"TN"},{name:"Turkey",code:"TR"},{name:"Turkmenistan",code:"TM"},{name:"Turks and Caicos Islands",code:"TC"},{name:"Tuvalu",code:"TV"},{name:"U.S. Virgin Islands",code:"VI"},{name:"Uganda",code:"UG"},{name:"Ukraine",code:"UA"},{name:"United Arab Emirates",code:"AE"},{name:"United Kingdom",code:"GB"},{name:"United States",code:"US"},{name:"United States Minor Outlying Islands",code:"UM"},{name:"Uruguay",code:"UY"},{name:"Uzbekistan",code:"UZ"},{name:"Vanuatu",code:"VU"},{name:"Vatican",code:"VA"},{name:"Venezuela",code:"VE"},{name:"Vietnam",code:"VN"},{name:"Wallis and Futuna",code:"WF"},{name:"Western Sahara",code:"EH"},{name:"Yemen",code:"YE"},{name:"Zambia",code:"ZM"},{name:"Zimbabwe",code:"ZW"}],window.ClickFunnels=window.ClickFunnels||{},window.ClickFunnels.countryOptions=options,function(){var e={US:[{name:"Select State",code:""},{name:"Alaska",code:"AK"},{name:"Alabama",code:"AL"},{name:"Arkansas",code:"AR"},{name:"Arizona",code:"AZ"},{name:"California",code:"CA"},{name:"Colorado",code:"CO"},{name:"Connecticut",code:"CT"},{name:"District Of Columbia",code:"DC"},{name:"Delaware",code:"DE"},{name:"Florida",code:"FL"},{name:"Georgia",code:"GA"},{name:"Hawaii",code:"HI"},{name:"Iowa",code:"IA"},{name:"Idaho",code:"ID"},{name:"Illinois",code:"IL"},{name:"Indiana",code:"IN"},{name:"Kansas",code:"KS"},{name:"Kentucky",code:"KY"},{name:"Louisiana",code:"LA"},{name:"Massachusetts",code:"MA"},{name:"Maryland",code:"MD"},{name:"Maine",code:"ME"},{name:"Michigan",code:"MI"},{name:"Minnesota",code:"MN"},{name:"Missouri",code:"MO"},{name:"Mississippi",code:"MS"},{name:"Montana",code:"MT"},{name:"Nebraska",code:"NE"},{name:"New Hampshire",code:"NH"},{name:"New Jersey",code:"NJ"},{name:"New Mexico",code:"NM"},{name:"Nevada",code:"NV"},{name:"New York",code:"NY"},{name:"North Carolina",code:"NC"},{name:"North Dakota",code:"ND"},{name:"Ohio",code:"OH"},{name:"Oklahoma",code:"OK"},{name:"Oregon",code:"OR"},{name:"Pennsylvania",code:"PA"},{name:"Puerto Rico",code:"PR"},{name:"Rhode Island",code:"RI"},{name:"South Carolina",code:"SC"},{name:"South Dakota",code:"SD"},{name:"Tennessee",code:"TN"},{name:"Texas",code:"TX"},{name:"Utah",code:"UT"},{name:"Virginia",code:"VA"},{name:"Vermont",code:"VT"},{name:"Washington",code:"WA"},{name:"Wisconsin",code:"WI"},{name:"West Virginia",code:"WV"},{name:"Wyoming",code:"WY"}],CA:[{name:"Select State",code:""},{name:"Alberta",code:"AB"},{name:"British Columbia",code:"BC"},{name:"Manitoba",code:"MB"},{name:"New Brunswick",code:"NB"},{name:"Newfoundland and Labrador",code:"NL"},{name:"Nova Scotia",code:"NS"},{name:"Northwest Territories",code:"NT"},{name:"Nunavut",code:"NU"},{name:"Ontario",code:"ON"},{name:"Prince Edward Island",code:"PE"},{name:"Quebec",code:"QC"},{name:"Saskatchewan",code:"SK"},{name:"Yukon Territory",code:"YT"}],AU:[{name:"Select State",code:""},{name:"Australian Capital Territory",code:"ACT"},{name:"New South Wales",code:"NSW"},{name:"Northern Territory",code:"NT"},{name:"Queensland",code:"QLD"},{name:"South Australia",code:"SA"},{name:"Tasmania",code:"TAS"},{name:"Victoria",code:"VIC"},{name:"Western Australia",code:"WA"}]};window.ClickFunnels=window.ClickFunnels||{},window.ClickFunnels.stateOptions=e}(),function(){function e(){var e=document.querySelector('input[type="hidden"][name="cf-state-county-dropdown-feature-enabled"]');return!!(document.querySelectorAll(".StripeElement").length>0)&&!(!e||"true"!==e.value)}function t(e){return window.ClickFunnels.stateOptions[e]!==undefined}function n(e){var n=e,a=e.value,r=o(n),l=null;t(a)?(r&&"SELECT"!==r.tagName?(s(l=c(r),r),u(r)):l=r,l&&i(l,a)):"SELECT"===r.tagName&&d(r)}function a(e){e.each(function(){this.addEventListener("change",function(){n(this)})})}function o(e){var t=(e=$(e)).parents(".elOrder2Step"),n=e.parents(".elShippingForm"),a=e.closest('[class^="col-"]');return(t.length>0?t:n.length>0?n:a).find('[name="state"], [name="shipping_state"]')[0]}function i(e,t){r(e);var n=0,a=window.ClickFunnels.stateOptions[t];if(a!==undefined)for(var o=a.length,i=null;n'+e.name+"")})})}function h(){if(e()){var t=$('[name="country"], [name="shipping_country"]');t.each(function(){"SELECT"!==this.tagName&&(s(c(this),this),u(this))});var n=$('select[name="country"], select[name="shipping_country"]');m(n),a(n),_()}}var f={};window.addEventListener("load",h),window.ClickFunnels=window.ClickFunnels||{},window.ClickFunnels.CountryAndStateSelector={populateCountrySelectors:m}}(),window.track_capi=function(){var e=window.location,t=document.referrer,n="/v1/track_capi";n+="?page_key="+page_key,n+="&location="+e,n+="&referrer="+t,fetch(n)},$(function(){"null"!=getURLParameter("cf_uvid")&&($('meta[name="robots"]').attr("content","noindex,follow,noodp,noydir"),$('meta[name="googlebot"]').attr("content","noindex,follow"))});