( function ( g ) { var t = { PLATFORM_WINDOWS: 'windows', PLATFORM_IPHONE: 'iphone', PLATFORM_IPOD: 'ipod', PLATFORM_IPAD: 'ipad', PLATFORM_BLACKBERRY: 'blackberry', PLATFORM_BLACKBERRY_10: 'blackberry_10', PLATFORM_SYMBIAN: 'symbian_series60', PLATFORM_SYMBIAN_S40: 'symbian_series40', PLATFORM_J2ME_MIDP: 'j2me_midp', PLATFORM_ANDROID: 'android', PLATFORM_ANDROID_TABLET: 'android_tablet', PLATFORM_FIREFOX_OS: 'firefoxOS', PLATFORM_MOBILE_GENERIC: 'mobile_generic', userAgent : false, // Shortcut to the browser User Agent String. matchedPlatformName : false, // Matched platform name. False otherwise. matchedUserAgentName : false, // Matched UA String. False otherwise. init: function() { try { t.userAgent = g.navigator.userAgent.toLowerCase(); t.getPlatformName(); t.getMobileUserAgentName(); } catch ( e ) { console.error( e ); } }, initForTest: function( userAgent ) { t.matchedPlatformName = false; t.matchedUserAgentName = false; try { t.userAgent = userAgent.toLowerCase(); t.getPlatformName(); t.getMobileUserAgentName(); } catch ( e ) { console.error( e ); } }, /** * This method detects the mobile User Agent name. */ getMobileUserAgentName: function() { if ( t.matchedUserAgentName !== false ) return t.matchedUserAgentName; if ( t.userAgent === false ) return false; if ( t.isChromeForIOS() ) t.matchedUserAgentName = 'chrome-for-ios'; else if ( t.isTwitterForIpad() ) t.matchedUserAgentName = 'twitter-for-ipad'; else if ( t.isTwitterForIphone() ) t.matchedUserAgentName = 'twitter-for-iphone'; else if ( t.isIPhoneOrIPod() ) t.matchedUserAgentName = 'iphone'; else if ( t.isIPad() ) t.matchedUserAgentName = 'ipad'; else if ( t.isAndroidTablet() ) t.matchedUserAgentName = 'android_tablet'; else if ( t.isAndroid() ) t.matchedUserAgentName = 'android'; else if ( t.isBlackberry10() ) t.matchedUserAgentName = 'blackberry_10'; else if ( has( 'blackberry' ) ) t.matchedUserAgentName = 'blackberry'; else if ( t.isBlackberryTablet() ) t.matchedUserAgentName = 'blackberry_tablet'; else if ( t.isWindowsPhone7() ) t.matchedUserAgentName = 'win7'; else if ( t.isWindowsPhone8() ) t.matchedUserAgentName = 'winphone8'; else if ( t.isOperaMini() ) t.matchedUserAgentName = 'opera-mini'; else if ( t.isOperaMobile() ) t.matchedUserAgentName = 'opera-mobi'; else if ( t.isKindleFire() ) t.matchedUserAgentName = 'kindle-fire'; else if ( t.isSymbianPlatform() ) t.matchedUserAgentName = 'series60'; else if ( t.isFirefoxMobile() ) t.matchedUserAgentName = 'firefox_mobile'; else if ( t.isFirefoxOS() ) t.matchedUserAgentName = 'firefoxOS'; else if ( t.isFacebookForIphone() ) t.matchedUserAgentName = 'facebook-for-iphone'; else if ( t.isFacebookForIpad() ) t.matchedUserAgentName = 'facebook-for-ipad'; else if ( t.isWordPressForIos() ) t.matchedUserAgentName = 'ios-app'; else if ( has( 'iphone' ) ) t.matchedUserAgentName = 'iphone-unknown'; else if ( has( 'ipad' ) ) t.matchedUserAgentName = 'ipad-unknown'; return t.matchedUserAgentName; }, /** * This method detects the mobile platform name. */ getPlatformName : function() { if ( t.matchedPlatformName !== false ) return t.matchedPlatformName; if ( t.userAgent === false ) return false; if ( has( 'windows ce' ) || has( 'windows phone' ) ) { t.matchedPlatformName = t.PLATFORM_WINDOWS; } else if ( has( 'ipad' ) ) { t.matchedPlatformName = t.PLATFORM_IPAD; } else if ( has( 'ipod' ) ) { t.matchedPlatformName = t.PLATFORM_IPOD; } else if ( has( 'iphone' ) ) { t.matchedPlatformName = t.PLATFORM_IPHONE; } else if ( has( 'android' ) ) { if ( t.isAndroidTablet() ) t.matchedPlatformName = t.PLATFORM_ANDROID_TABLET; else t.matchedPlatformName = t.PLATFORM_ANDROID; } else if ( t.isKindleFire() ) { t.matchedPlatformName = t.PLATFORM_ANDROID_TABLET; } else if ( t.isBlackberry10() ) { t.matchedPlatformName = t.PLATFORM_BLACKBERRY_10; } else if ( has( 'blackberry' ) ) { t.matchedPlatformName = t.PLATFORM_BLACKBERRY; } else if ( t.isBlackberryTablet() ) { t.matchedPlatformName = t.PLATFORM_BLACKBERRY; } else if ( t.isSymbianPlatform() ) { t.matchedPlatformName = t.PLATFORM_SYMBIAN; } else if ( t.isSymbianS40Platform() ) { t.matchedPlatformName = t.PLATFORM_SYMBIAN_S40; } else if ( t.isJ2MEPlatform() ) { t.matchedPlatformName = t.PLATFORM_J2ME_MIDP; } else if ( t.isFirefoxOS() ) { t.matchedPlatformName = t.PLATFORM_FIREFOX_OS; } else if ( t.isFirefoxMobile() ) { t.matchedPlatformName = t.PLATFORM_MOBILE_GENERIC; } return t.matchedPlatformName; }, /** * Detect the BlackBerry OS version. * * Note: This is for smartphones only. Does not work on BB tablets. */ getBlackBerryOSVersion : check( function() { if ( t.isBlackberry10() ) return '10'; if ( ! has( 'blackberry' ) ) return false; var rv = -1; // Return value assumes failure. var re; if ( has( 'webkit' ) ) { // Detecting the BB OS version for devices running OS 6.0 or higher re = /Version\/([\d\.]+)/i; } else { // BlackBerry devices <= 5.XX re = /BlackBerry\w+\/([\d\.]+)/i; } if ( re.exec( t.userAgent ) != null ) rv = RegExp.$1.toString(); return rv === -1 ? false : rv; } ), /** * Detects if the current UA is iPhone Mobile Safari or another iPhone or iPod Touch Browser. */ isIPhoneOrIPod : check( function() { return has( 'safari' ) && ( has( 'iphone' ) || has( 'ipod' ) ); } ), /** * Detects if the current device is an iPad. */ isIPad : check( function() { return has( 'ipad' ) && has( 'safari' ); } ), /** * Detects if the current UA is Chrome for iOS */ isChromeForIOS : check( function() { return t.isIPhoneOrIPod() && has( 'crios/' ); } ), /** * Detects if the current browser is the Native Android browser. */ isAndroid : check( function() { if ( has( 'android' ) ) { return ! ( t.isOperaMini() || t.isOperaMobile() || t.isFirefoxMobile() ); } } ), /** * Detects if the current browser is the Native Android Tablet browser. */ isAndroidTablet : check( function() { if ( has( 'android' ) && ! has( 'mobile' ) ) { return ! ( t.isOperaMini() || t.isOperaMobile() || t.isFirefoxMobile() ); } } ), /** * Detects if the current browser is Opera Mobile */ isOperaMobile : check( function() { return has( 'opera' ) && has( 'mobi' ); } ), /** * Detects if the current browser is Opera Mini */ isOperaMini : check( function() { return has( 'opera' ) && has( 'mini' ); } ), /** * isBlackberry10() can be used to check the User Agent for a BlackBerry 10 device. */ isBlackberry10 : check( function() { return has( 'bb10' ) && has( 'mobile' ); } ), /** * isBlackberryTablet() can be used to check the User Agent for a RIM blackberry tablet */ isBlackberryTablet : check( function() { return has( 'playbook' ) && has( 'rim tablet' ); } ), /** * Detects if the current browser is a Windows Phone 7 device. */ isWindowsPhone7 : check( function () { return has( 'windows phone os 7' ); } ), /** * Detects if the current browser is a Windows Phone 8 device. */ isWindowsPhone8 : check( function () { return has( 'windows phone 8' ); } ), /** * Detects if the device platform is J2ME. */ isJ2MEPlatform : check( function () { return has( 'j2me/midp' ) || ( has( 'midp' ) && has( 'cldc' ) ); } ), /** * Detects if the device platform is the Symbian Series 40. */ isSymbianS40Platform : check( function() { if ( has( 'series40' ) ) { return has( 'nokia' ) || has( 'ovibrowser' ) || has( 'nokiabrowser' ); } } ), /** * Detects if the device platform is the Symbian Series 60. */ isSymbianPlatform : check( function() { if ( has( 'webkit' ) ) { // First, test for WebKit, then make sure it's either Symbian or S60. return has( 'symbian' ) || has( 'series60' ); } else if ( has( 'symbianos' ) && has( 'series60' ) ) { return true; } else if ( has( 'nokia' ) && has( 'series60' ) ) { return true; } else if ( has( 'opera mini' ) ) { return has( 'symbianos' ) || has( 'symbos' ) || has( 'series 60' ); } } ), /** * Detects if the current browser is the Kindle Fire Native browser. */ isKindleFire : check( function() { return has( 'silk/' ) && has( 'silk-accelerated=' ); } ), /** * Detects if the current browser is Firefox Mobile (Fennec) */ isFirefoxMobile : check( function() { return has( 'fennec' ); } ), /** * Detects if the current browser is the native FirefoxOS browser */ isFirefoxOS : check( function() { return has( 'mozilla' ) && has( 'mobile' ) && has( 'gecko' ) && has( 'firefox' ); } ), /** * Detects if the current UA is Facebook for iPad */ isFacebookForIpad : check( function() { if ( ! has( 'ipad' ) ) return false; return has( 'facebook' ) || has( 'fbforiphone' ) || has( 'fban/fbios;' ); } ), /** * Detects if the current UA is Facebook for iPhone */ isFacebookForIphone : check( function() { if ( ! has( 'iphone' ) ) return false; return ( has( 'facebook' ) && ! has( 'ipad' ) ) || ( has( 'fbforiphone' ) && ! has( 'tablet' ) ) || ( has( 'fban/fbios;' ) && ! has( 'tablet' ) ); // FB app v5.0 or higher } ), /** * Detects if the current UA is Twitter for iPhone */ isTwitterForIphone : check( function() { if ( has( 'ipad' ) ) return false; return has( 'twitter for iphone' ); } ), /** * Detects if the current UA is Twitter for iPad */ isTwitterForIpad : check( function() { return has( 'twitter for ipad' ) || ( has( 'ipad' ) && has( 'twitter for iphone' ) ); } ), /** * Detects if the current UA is WordPress for iOS */ isWordPressForIos : check( function() { return has( 'wp-iphone' ); } ) }; function has( str ) { return t.userAgent.indexOf( str ) != -1; } function check( fn ) { return function() { return t.userAgent === false ? false : fn() || false; } } g.wpcom_mobile_user_agent_info = t; } )( typeof window !== 'undefined' ? window : this ); ; /** * A class to log JS errors to Kibana * @class * * @constructor * * @property event the event object * @property feature the feature property on the API endpoint */ ( function() { function LogErrors( event, feature ) { this.event = event || window.event; this.feature = feature || ''; } /** * Makes POST request to js-errors public API endpoint */ LogErrors.prototype.logToEndpoint = function() { var xhr = new XMLHttpRequest(); var errorData = JSON.stringify( { feature: this.feature, message: 'Error Message: "' + this.event.message + '"' + '\nLine Number: ' + this.event.lineno + '\nURL: ' + this.event.target.location.href + '\nFile: ' + this.event.filename, } ); var params = 'error=' + encodeURIComponent( errorData ); xhr.onreadystatechange = function() { if ( xhr.readyState === 4 && xhr.status === 200 ) { console.log( 'The JavaScript errors have successfully been reported.' ); } } xhr.open( 'POST', 'https://public-api.wordpress.com/rest/v1.1/js-error', true ); xhr.setRequestHeader( 'Content-type', 'application/x-www-form-urlencoded' ); xhr.send( params ); }; /** * Instantiates LogErrors and fires off call to endpoint, * removing itself after executed once. * * @property event the event object */ var handleInitialError = function( event ) { if ( event.message && 0 === event.message.toLowerCase().indexOf( 'script error' ) && ! event.filename ) { return; } var errors = new LogErrors( event, 'h4_js_errors' ); errors.logToEndpoint(); window.removeEventListener( 'error', handleInitialError ); }; /** * Attach handleInitialError to 'error' event */ window.addEventListener( 'error', handleInitialError ); } )(); ; (()=>{"use strict";var t={2127:(t,e,n)=>{var r=n(9329),s=n(2405);function o(t,e){return t+Math.floor(Math.random()*(e-t+1))}(0,r.A)((()=>{document.querySelectorAll(".lp-footer-section").forEach((t=>{t.querySelectorAll("[data-dictionary]").forEach((t=>{const e=function(t){const{parse:e}=JSON;let n;try{n=e(t)}catch(r){try{n=e(atob(t))}catch(t){}}return Array.isArray(n)?n.map((t=>String(t).trim())).filter(Boolean):[]}(function(t,e){const n=t.getAttribute(e);return t.removeAttribute(e),n}(t,"data-dictionary"));if(e.length<1)return;const n=t.innerHTML.trim();!function(t,e){const n=e.length;let r=-1;const i=i=>{(0,s.A)(i)||(i=((t,e,n)=>{if(!(0,s.A)(n)||n<0||n>e)return o(0,e);const r=o(0,e-1);return r+(r>=n?1:0)})(0,n-1,r)),t.innerHTML=e[i],r=i};if(n<2)return i(0);i(),function(t,e){new IntersectionObserver((t=>{t.forEach((({isIntersecting:t})=>{t||e()}))}),{rootMargin:"1px 1px 1px 1px"}).observe(t)}(t,i)}(t,e.map((t=>t.replace("Automattic",n))))}))}))})),(0,r.A)((()=>{function t(t){const e=t.target.value;((t,e,n)=>{(n={domain:".wordpress.com",expires:1,path:"/",...n}).expires=new Date(Date.now()+24*n.expires*60*60*1e3).toGMTString();const r=[["wpcom_locale",e].map(encodeURIComponent).join("=")];for(const t in n)r.push(`${t}=${n[t]}`);document.cookie=r.join("; ")})(0,e,{expires:1825}),function(t){if(!t)return;const e=t.getAttribute("data-href")+document.location.search;t.setAttribute("href",e),t.click()}(document.querySelector(`.lp-language-picker__link[lang="${e}"]`))}Array.from(document.querySelectorAll(".lp-language-picker__content")).forEach((e=>{e.addEventListener("change",t)}))}));(0,r.A)((()=>{let t=-1;const e=Array.from(document.querySelectorAll(".lp-footer-stack")),n=()=>{e.forEach((t=>t.open=!0))},r=n=>{(0,s.A)(n)&&(t=n),e.forEach(((e,n)=>{n!==t&&(e.open=!1)}))},o=()=>window.innerWidth>=1152,i=()=>{o()?n():r()};addEventListener("resize",i),requestAnimationFrame(i),e.forEach(((e,s)=>{const i=e.querySelector("summary");i.addEventListener("click",(c=>{if(c.detail>0&&i.blur(),o())return c.preventDefault(),c.stopImmediatePropagation(),t=-1,n();s!==t&&!0!==e.open?r(s):t=-1}))}))}))},9329:(t,e,n)=>{n.d(e,{A:()=>s});const r=t=>{o(document,"DOMContentLoaded",t)};r.load=t=>{o(window,"load",t)};const s=r;function o(t,e,n){let r=!1;const s=()=>{r||(n(document),r=!0)};if("complete"===document.readyState)return setTimeout(s,0);t.addEventListener(e,s)}},2405:(t,e,n)=>{n.d(e,{A:()=>r});const r=t=>!isNaN(t)&&"number"==typeof t}},e={};function n(r){var s=e[r];if(void 0!==s)return s.exports;var o=e[r]={exports:{}};return t[r](o,o.exports,n),o.exports}n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var r={};n.r(r),n.d(r,{linear:()=>_,quadraticOut:()=>g,quinticOut:()=>y}),n(2127);const s=JSON.parse('{"zR":"/wp-admin/admin-ajax.php?action=landpack_form_nonce","KY":"https://public-api.wordpress.com/rest/v1/products"}');var o=n(9329);const i="_wpnonce";function c(t,e=!0){t.querySelectorAll("button, input, textarea, select").forEach(e?t=>t.setAttribute("disabled",""):t=>t.removeAttribute("disabled"))}function a(t,e,n){const r=t.querySelector(".lp-form-message"),s=`lp-form-message lp-form-message--${e}`;return r&&!n?r.remove():!r&&n?t.insertAdjacentHTML("afterbegin",`

${n}

`):void(r&&n&&(r.className=s,r.innerHTML=n))}(0,o.A)((()=>{!function(){const t=document.querySelectorAll(`.lp-form input[name="${i}"]`);t.length&&fetch(s.zR).then((t=>t.json())).then((t=>t.success?t[i]:Promise.reject())).then((e=>{t.forEach((t=>{t.setAttribute("value",e)}))})).catch((()=>{console.error(`Could not initialize ${i}`)}))}(),function(){const t=document.querySelector(".lp-form .lp-form-message");t&&t.scrollIntoView()}(),document.querySelectorAll(".lp-form__fetch-data:not(.lp-form--is-xhr)").forEach((t=>{const e=t.getAttribute("method")||"GET",n=t.getAttribute("action");n&&t.addEventListener("submit",(async t=>{t.preventDefault();try{const r=new URL(n),s=new URLSearchParams(new FormData(t.target));for(const[t,e]of s.entries())r.searchParams.append(t,e);const o=await fetch(r.toString(),{method:e});if(!o)return;const i=t.target.dataset;if(!i.fetchCompleteEvent)return;document.querySelector("body").dispatchEvent(new CustomEvent(i.fetchCompleteEvent,{detail:{response:o}}))}catch(t){console.error("There was a problem with the fetch operation:",t.message)}}))})),document.querySelectorAll(".lp-form--is-xhr").forEach((t=>{t.addEventListener("submit",(t=>{t.preventDefault();const e=t.target,n=e.getAttribute("action"),r=Object.fromEntries(new FormData(e));c(e),a(e),n&&fetch(n,{method:e.getAttribute("method"),body:JSON.stringify(r),headers:{Accept:"application/json","Content-Type":"application/json"}}).then((t=>t.json())).then((t=>"ok"===t.status?t:Promise.reject(t))).then((t=>{const n=e.getAttribute("data-success-action");if(n)return location.replace(n);a(e,"success",t?.message||"Your response has been sent.")})).catch((t=>{c(e,!1),a(e,"error",t?.message||"There’s been an error.")}))}))}))})),(0,o.A)((()=>{document.querySelectorAll(".lp-form-typed input").forEach((t=>{const e=t.closest(".lp-form-typed-field");e&&(t.addEventListener("focus",(()=>{e.classList.add("lp-form-field--is-focused")})),t.addEventListener("blur",(()=>{t.value||e.classList.remove("lp-form-field--is-focused")})))}))}));const l=t=>"function"==typeof t;var u=n(2405);let d=new Map;window._landpack_ui_dropdowns instanceof Map?d=window._landpack_ui_dropdowns:window._landpack_ui_dropdowns=d;class p{constructor(t){return t&&t instanceof HTMLElement?d.has(t)?d.get(t):(d.set(t,this),this.rootElement=t,this.triggerElement=t.querySelector("button[aria-expanded]"),this.triggerContentElement=this.triggerElement.querySelector(":first-child"),this.options=[],this.optionElements=Array.from(t.querySelectorAll("[role=option]")).reduce(((t,e)=>{const n=e.getAttribute("data-value");return n?(this.options.push(n),{...t,[n]:e}):t}).bind(this),{}),this.name=String(t.getAttribute("data-name")),this.__setValue(t.getAttribute("data-value")),void this.close().__addEventListeners()):new h}close(){return this.isOpen=!1,this.__clearCurrentIndex().__dispatch("close"),this.rootElement.classList.remove("lp-ui-dropdown--is-open"),this.triggerElement.setAttribute("aria-expanded","false"),this}on(t,e){return l(e)?this.__on(t,(t=>{t.$===this&&e(t)})):this}open(){return this.isOpen||(this.isOpen=!0,this.__clearCurrentIndex().__dispatch("open"),this.rootElement.classList.add("lp-ui-dropdown--is-open"),this.triggerElement.setAttribute("aria-expanded","true")),this}select(t){const e=this.value;return e===t?this:((0,u.A)(t)&&(t=this.options[t]),e===t?this:this.__setValue(t).__dispatch("select"))}__addEventListeners(){const{optionElements:t,triggerElement:e}=this;e.addEventListener("click",(t=>{if(t.preventDefault(),t.stopPropagation(),t.detail>0&&e.blur(),this.isOpen)return this.close();this.open()}).bind(this)),document.addEventListener("click",this.close.bind(this)),this.__on("open",(({$:t})=>{t!==this&&this.close()}));for(const e in t)t[e].addEventListener("click",(t=>{t.preventDefault(),t.stopPropagation(),this.select(e).__click().close()}).bind(this));return document.addEventListener("keydown",(t=>{if(!this.isOpen)return this;const n=()=>t.preventDefault(),r=(()=>{e.focus(),this.close()}).bind(this);switch(t.which){case 0:case 13:case 32:this.__hasCurrentIndex()&&(n(),this.select(this.currentIndex).__click(),r());break;case 38:case 37:n(),this.__moveCurrentIndex(-1);break;case 40:case 39:n(),this.__moveCurrentIndex();break;case 27:case 9:n(),r()}}).bind(this)),this.__on(`select:${this.name}`,(({$:t})=>{t!==this&&this.select(t.value)}))}__clearCurrentIndex(){return delete this.currentIndex,Object.values(this.optionElements).forEach((t=>{t.setAttribute("aria-current","false")})),this}__click(){return this.__dispatch("click")}__dispatch(t){const{name:e,value:n}=this,r={name:e,type:t,value:n,$:this};return[t,e,n].reduce(((t,e)=>(((t,e,n)=>{var r;r=t,"[object String]"===Object.prototype.toString.call(r)&&(n=e,e=t,t=window);const s=n?new CustomEvent(e,{detail:n}):new Event(e);t.dispatchEvent(s)})(t+=`:${e}`,r),t)),"lp:ui-dropdown"),this}__hasCurrentIndex(){return(0,u.A)(this.currentIndex)}__moveCurrentIndex(t=1){let{currentIndex:e,optionElements:n}=this;this.__hasCurrentIndex()?e+=t:e=t<0?-1:0;const r=this.options.length;return this.currentIndex=e=(e+r)%r,this.options.forEach(((t,r)=>{n[t].setAttribute("aria-current",String(r===e))})),this}__on(t,e){return addEventListener(`lp:ui-dropdown:${t}`,(t=>e.call(this,t.detail)).bind(this)),this}__setValue(t){if(this.value===t)return this;this.value=t;const{optionElements:e,rootElement:n}=this;return t?n.setAttribute("data-value",t):n.removeAttribute("data-value"),this.options.forEach((n=>{e[n].setAttribute("aria-selected",String(n===t))})),this.__updateTriggerContent()}__updateTriggerContent(){const t=this.triggerContentElement,e=this.optionElements[this.value].querySelector(":first-child")||{},n=document.createElement(t.tagName);return n.innerHTML=e.innerHTML||"",n.className=` ${e.className||""}`.replace(/(\slp-ui-dropdown__)menu/gi,"$1trigger").trim(),t.replaceWith(n),this.triggerContentElement=n,this}}class h{close(){return this}on(){return this}open(){return this}select(){return this}}(0,o.A)((()=>{document.querySelectorAll(".lp-ui-dropdown").forEach((t=>new p(t)))})),(0,o.A)((()=>{const t=document.querySelectorAll(".lp-section--has-animated-icons");if(0===t.length)return;const e=new Map;t.forEach((t=>{e.set(t,(t=>{const e=t.querySelectorAll('[class^="lp-icon-"][class*="-anim"], [class^="anim-"]');return Array.from(e).map((t=>{const e=t.getAttribute("class");return t.classList.remove(e),{className:e,icon:t}}))})(t))}));const n=new IntersectionObserver((t=>{t.forEach((t=>{e.get(t.target).forEach((e=>{e.icon.classList.toggle(e.className,t.isIntersecting)}))}))}),{threshold:.5});t.forEach((t=>{n.observe(t)}))}));const m="aria-hidden";(0,o.A)((()=>{const t=Array.from(document.querySelectorAll(".lp-block--has-breakpoints, .lp-section--is-breakpoint")),e=()=>{t.forEach((t=>{!function(t){return!t.offsetParent}(t)?t.removeAttribute(m):t.setAttribute(m,"true")}))};addEventListener("resize",e),e()})),(0,o.A)((()=>{const t=document.querySelector(".lp-promo-banner-cswp");if(t){const e=document.querySelector("div.lp-root"),n=document.querySelector("body");t.style.position="sticky",t.style.padding="0",t.style.top="0",t.style.zIndex="990",n.insertBefore(t,e),t.style.display="block";const r=document.querySelector(".close-promo-banner-cswp");function s(){t.style.display="none",r.removeEventListener("click",s)}r.addEventListener("click",s)}}));const f=(t,e="lp-product-price")=>{const n=[];for(const r of t){const t=r.split("--");2===t.length&&t[0]===e&&n.push(t[1])}return n};function _(t){return t}function g(t){return t*(2-t)}function y(t){return--t*t*t*t*t+1}(0,o.A)((()=>{const{search:t}=window.location,e=new URLSearchParams(t).get("currency"),n=Array.from(document.querySelectorAll(".lp-product-price"));if(!e&&0===n.length)return;let r=`${s.KY}?¤cy=${e}`;void 0!==window.landpack_locale&&(r+="&locale="+window.landpack_locale);const o=n.map((t=>Array.from(t.classList.values()))).flat(),i=f(o,"lp-product-price");i.push(...f(o,"lp-product-price-cross-monthly")),i.length>0&&(r+=`&product_slugs=${i.join(",")}`),window.fetch(r,{credentials:"include"}).then((t=>t.json())).then((t=>{[...n].forEach((e=>{const n=f(Array.from(e.classList),"lp-product-price"),r=n.length?t[n[0]]:null;if(!r)return;let{combined_cost_display:s,combined_sale_cost_display:o,product_term_localized:i=""}=r;const c=f(Array.from(e.classList),"lp-product-price-options"),a=c.includes("hide-period-string"),l=c.includes("show-on-sale-after-original-price"),u=f(Array.from(e.classList),"lp-product-price-cross-monthly")[0],d=u&&t[u];d&&(s=d.combined_cost_display,i=d.product_term_localized,o=`${r.cost_per_month_display}/${d.product_term_localized}`);const p=o?(()=>{const t=`${s}${!a&&i?"/"+i:""}`,e=`${o}`;return l?`${t} ${e}`:`${e} ${t}`})():`${s}${!a&&i?"/"+i:""}`;e.innerHTML=p,e.classList.add("lp-product-price--is-loaded")}))})).catch((()=>{}))}));const b=()=>{},v=()=>performance.now(),{max:A,min:E}=Math,w=new class{constructor(t){this.running=!1,this._updateValues(t),this._duration=t.duration,this._ease=r[t.ease]||_}start(t){return t.from&&t.to&&this._updateValues(t),this._onUpdateCallback=t.update,this._onEndCallback=t.end,l(this._onUpdateCallback)||(this._onUpdateCallback=b),l(this._onEndCallback)||(this._onEndCallback=b),this._startAnimation(),this}stop(){return this.running?(this._interrupted=!0,this._endAnimation(),this):this}_updateValues(t){this._valuesFrom={...t.from},this._valuesTo={...t.to}}_startAnimation(){this.running=!0,this._interrupted=!1,this._start=v(),requestAnimationFrame(this._runAnimation.bind(this))}_runAnimation(){this.running&&(this._nextFrame(),requestAnimationFrame(this._runAnimation.bind(this)))}_updateAnimation(){const t=this._getInterpolatedValues();this._onUpdateCallback(t,this._progress)}_endAnimation(){this.running=!1,this._interrupted||this._onUpdateCallback({...this._valuesTo},1),this._onEndCallback()}_nextFrame(){this._progress=(v()-this._start)/this._duration,this._progress<1?this._updateAnimation():this._endAnimation()}_getInterpolatedValues(){const t={};return Object.keys(this._valuesFrom).forEach((e=>{let n=this._valuesFrom[e],r=this._valuesTo[e];(0,u.A)(n)||(n=0),(0,u.A)(r)||(r=0),t[e]=this._ease(this._progress)*(r-n)+n}).bind(this)),t}}({duration:1e3,ease:"quinticOut"});function k(t,e){return t&&t.classList.contains("lp-block")&&(!e||t.classList.contains(e))}(0,o.A)((()=>{Array.from(document.querySelectorAll('.lp-root a[href^="#"]:not([href="#"])')).forEach((t=>{const e=t.getAttribute("href").substring(1),n=document.getElementById(e);n&&t.addEventListener("click",(e=>{var r;e.preventDefault(),r=t.href,history.replaceState({},"",r),setTimeout((()=>function(t){const e=document.documentElement,n=document.body,r=e.scrollLeft,s=e.scrollTop,o=(t=>{const e=t.getBoundingClientRect(),n=t.ownerDocument.defaultView;return{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}})(t),i=A(0,o.left),c=A(0,(p=o.top,p-=50,["wpadminbar","wpcom-domain-upsell"].forEach((t=>{const e=document.getElementById(t);e&&(p-=e.offsetHeight||0)})),p)),a=A(0,n.scrollWidth-window.innerWidth),l=A(0,n.scrollHeight-window.innerHeight),u=E(i,a),d=E(c,l);var p;w.stop(),w.start({from:{x:r,y:s},to:{x:u,y:d},update:({x:t,y:e})=>{window.scrollTo(t,e)},end:()=>function(t){const e=["input","select","textarea"],n=t.tagName.toLowerCase();if(e.includes(n))return t.focus();if("form"===n||function(t){return k(t,"lp-content")}(t)||function(t){return t&&t.classList.contains("lp-form__content")&&k(t.parentNode,"lp-form")}(t)){const n=t.querySelector(e.join(", "));n&&n.focus()}}(t)})}(n)))}))}))})),(0,o.A)((()=>{Array.from(document.getElementsByClassName("lp-sticky-observed")).forEach((t=>{new IntersectionObserver((e=>{e.forEach((e=>{e.isIntersecting?t.classList.remove("lp-is-sticky"):t.classList.add("lp-is-sticky")}))})).observe(t);const e=t.closest(".lp-section");e?e.classList.add("lp-section--has-sticky-content"):t.classList.add("lp-section--has-sticky-content")}))})),(0,o.A)((()=>{const t=new IntersectionObserver((e=>{e.forEach((e=>{if(e.isIntersecting){const n=e.target,r=n.querySelector(".wp-block-heading");try{window._tkq?.push(["recordEvent","wpcom_page_section_view",{name:n.getAttribute("data-section-name")||"",container_class:n.className,heading_text:(r?.textContent||"").trim()}])}catch(t){}t.unobserve(n)}}))}),{threshold:[.1]});document.querySelectorAll(".lp-root > .lp-section, [data-section-name]").forEach((e=>{t.observe(e)}))}))})();; (()=>{"use strict";var e={d:(t,n)=>{for(var o in n)e.o(n,o)&&!e.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:n[o]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{linear:()=>y,quadraticOut:()=>v,quinticOut:()=>g});const n=(e,t,n)=>{var o;o=e,"[object String]"===Object.prototype.toString.call(o)&&(n=t,t=e,e=window);const r=n?new CustomEvent(t,{detail:n}):new Event(t);e.dispatchEvent(r)},o=e=>{i(document,"DOMContentLoaded",e)};o.load=e=>{i(window,"load",e)};const r=o;function i(e,t,n){let o=!1;const r=()=>{o||(n(document),o=!0)};if("complete"===document.readyState)return setTimeout(r,0);e.addEventListener(t,r)}r((()=>{!function(){const e=function(){const e=document.createElement("div");return e.className="x-hidden",e.style.font="-apple-system-body",document.body.appendChild(e)}();requestAnimationFrame((()=>{const t=window.getComputedStyle(e),o=t.getPropertyValue("font-family"),r=parseInt(t.getPropertyValue("font-size"),10),i="UICTFontTextStyleBody"===o&&r>17?()=>{return e="js-dynamic-type-on",document.documentElement.classList.add(e),void n("lp:detect:dynamic-type");var e}:()=>{};requestAnimationFrame((()=>{e.remove(),requestAnimationFrame(i)}))}))}()}));const s=(e,t,n)=>{if(n=Boolean(n),e.setAttribute(`aria-${t}`,String(n)),"hidden"===t&&n){const t=document.activeElement;t!==document.body&&e.contains(t)&&t.blur()}},a=e=>"function"==typeof e,c=d(Object);function d(e){return(()=>{}).toString.call(e)}const u=e=>l(e);function l(e){const t={};return Object.keys(e).forEach((n=>{const o=e[n];if(!(e=>{if(!e)return!1;const t=Object.getPrototypeOf(Object(e));if(null===t)return!0;const n={}.hasOwnProperty.call(t,"constructor")&&t.constructor;return a(n)&&d(n)===c})(o))return void(t[n]=o);const r=l(o);Object.keys(r).forEach((e=>{t[n+"."+e]=r[e]}))})),t}const p=(e,t)=>Array.from(e).reduce(((e,n)=>{const o=n.getAttribute(`data-${t}`);return o&&(e[o]=n),e}),{}),m=(e,t)=>{const n=!a(t);return Object.keys(e).reduce(((o,r)=>({...o,[r]:n?t:t(e[r],r)})),{})},f=e=>!isNaN(e)&&"number"==typeof e,h=(e,t,n,o,r,i=!0)=>{let s=function(e,t,n,o){let r="translate",i=[e,t];return o&&(r+="3d",i.push(n)),i=i.map((e=>e?`${e}px`:0)),`${r}(${i.join(", ")})`}(t,n,o,i);return f(r)&&(s+=` ${function(e,t){return t?`scale3d(${e}, ${e}, 1)`:`scale(${e})`}(r,i)}`),e.style.transform=s};function y(e){return e}function v(e){return e*(2-e)}function g(e){return--e*e*e*e*e+1}const w=()=>{},E=()=>performance.now();class b{constructor(e){this.running=!1,this._updateValues(e),this._duration=e.duration,this._ease=t[e.ease]||y}start(e){return e.from&&e.to&&this._updateValues(e),this._onUpdateCallback=e.update,this._onEndCallback=e.end,a(this._onUpdateCallback)||(this._onUpdateCallback=w),a(this._onEndCallback)||(this._onEndCallback=w),this._startAnimation(),this}stop(){return this.running?(this._interrupted=!0,this._endAnimation(),this):this}_updateValues(e){this._valuesFrom={...e.from},this._valuesTo={...e.to}}_startAnimation(){this.running=!0,this._interrupted=!1,this._start=E(),requestAnimationFrame(this._runAnimation.bind(this))}_runAnimation(){this.running&&(this._nextFrame(),requestAnimationFrame(this._runAnimation.bind(this)))}_updateAnimation(){const e=this._getInterpolatedValues();this._onUpdateCallback(e,this._progress)}_endAnimation(){this.running=!1,this._interrupted||this._onUpdateCallback({...this._valuesTo},1),this._onEndCallback()}_nextFrame(){this._progress=(E()-this._start)/this._duration,this._progress<1?this._updateAnimation():this._endAnimation()}_getInterpolatedValues(){const e={};return Object.keys(this._valuesFrom).forEach((t=>{let n=this._valuesFrom[t],o=this._valuesTo[t];f(n)||(n=0),f(o)||(o=0),e[t]=this._ease(this._progress)*(o-n)+n}).bind(this)),e}}r((()=>{const e=document.querySelector(".x-dropdown");if(!e)return;const t=e.querySelector(".x-dropdown-bottom"),o=t.querySelector(".x-dropdown-bottom-fill"),r=p(e.querySelectorAll(".x-dropdown-content"),"dropdown-name"),i=Object.keys(r),a=m(r,(e=>e.querySelectorAll("[role=menuitem]"))),c=p(document.querySelectorAll("[data-dropdown-trigger]"),"dropdown-trigger"),d=-6,l=.85;let f,y,v,g=0,w=0,E={},_={};function L(){g=e.offsetWidth,E=m(r,(e=>e.offsetHeight)),w=Object.values(E).reduce(((e,t)=>Math.max(e,t)),0),_=m(c,(e=>Math.round((e=>{const t=e.getBoundingClientRect(),n=e.ownerDocument.defaultView;return{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}})(e).left+(e.offsetWidth-g)/2)));const n=w+"px";t.style.height=n,o.style.height=n}let x,O={};const k=m(r,0),S=new IntersectionObserver((e=>{e.forEach((({intersectionRatio:e})=>{e<=0&&n("lp:dropdown:_leave")}))}));function A(t,n){!function(t,n){(n||t!==x)&&(e.style.opacity=t,x=t)}(t["dropdown.opacity"],n),function(e,t){i.forEach((n=>{const o=e["contents.opacity."+n];(t||o!==k[n])&&(r[n].style.opacity=o,k[n]=o)}))}(t,n),function(t,n){const o=t.x||0,r=t.y||0,i=t.scale,s=O;(n||s.x!==o||s.y!==r||s.scale!==i)&&(h(e,o,r,0,i),O={x:o,y:r,scale:i})}({x:t["dropdown.transform.x"],y:t["dropdown.transform.y"],scale:t["dropdown.transform.scale"]},n),function(e,t){e=Math.min(e,w),(t||e!==v)&&(h(o,0,e-w),v=e)}(t["dropdown.height"],n)}function q(e,t){if(f===e)return;y&&y.stop();const o=!(f||y&&y.running),a=!e,c={dropdown:o?{height:E[e],opacity:x,transform:{x:_[e],y:d,scale:l}}:{height:v,opacity:x,transform:O},contents:{opacity:o?m(k,0):k}},p={dropdown:a?{height:v,opacity:0,transform:{x:O.x,y:d,scale:l}}:{height:E[e],opacity:1,transform:{x:_[e],y:0,scale:1}},contents:{opacity:a?k:m(k,((t,n)=>e===n?1:0))}},h={from:u(c),to:u(p),duration:a?150:450,ease:a?"quadraticOut":"quinticOut"};!function(e){f=e,S.disconnect(),e&&S.observe(r[e]),i.forEach((t=>{s(r[t],"hidden",t!==e)})),e?n("lp:dropdown:show",{name:e}):n("lp:dropdown:hide")}(e),t?y=new b(h).start({update:A,complete(){y=!1}}):A(h.to)}function j(){q(!1),L()}function C(e){return i.includes(e)}function F(e){if(!C(f))return;const t=a[f],n=t.length,o=t[(e.detail.index+n)%n];o&&o.focus()}j(),addEventListener("resize",j),addEventListener("load",(function(){L()})),addEventListener("lp:detect:dynamic-type",j),addEventListener("lp:dropdown:_leave",(()=>q(!1))),addEventListener("lp:trigger:select",(e=>{const{name:t}=e.detail;q(!!C(t)&&t,!0)})),addEventListener("lp:trigger:arrow-down",F),addEventListener("lp:trigger:arrow-up",F),i.forEach((e=>{const t=r[e];["mouseenter","mouseleave"].forEach((o=>{t.addEventListener(o,(()=>{n(`lp:dropdown:${o}`,{name:e})}))}))}))})),r((()=>{const e=document.querySelector(".x-menu");if(!e)return;const t=e.querySelector(".x-menu-content"),o=e.querySelector(".x-menu-button"),r=t.querySelectorAll("[role=menuitem]"),i=r.length;let a=!1,c=!1;const d=new IntersectionObserver((e=>{e.forEach((({intersectionRatio:e})=>{e<=0&&n("lp:menu:_leave")}))}));function u(o){a&&o!==c&&(c=o,s(e,"hidden",!o),e.classList.toggle("x-menu--open",o),o?(d.observe(t),n("lp:menu:show")):(d.disconnect(),n("lp:menu:hide")))}function l(e){if(!c)return;const t=(e.detail.index+i)%i,n=r[t];n&&n.focus()}function p(e){e.target.classList.contains("x-menu-link")||a&&e.stopPropagation()}setTimeout((()=>{a||(e.classList.add("x-menu--active"),a=!0)}),0),addEventListener("lp:trigger:select",(e=>{u("menu"===e.detail.name)})),addEventListener("lp:menu:_leave",(()=>u(!1))),addEventListener("lp:trigger:arrow-down",l),addEventListener("lp:trigger:arrow-up",l),o.addEventListener("click",(()=>{a&&(o.blur(),u(!1))})),t.addEventListener("click",p),t.addEventListener("touchstart",p)})),r((()=>{const e=document.querySelector(".x-nav-link--menu"),t={...p(document.querySelectorAll("[data-dropdown-trigger]"),"dropdown-trigger"),...e&&{menu:e}},o=Object.keys(t);if(0===o.length)return;let r,i,a,c;function d(e,t){n(`lp:trigger:${e}`,{...t,name:r})}function u(e){const n=t[r],o=Boolean(n&&n===document.activeElement);switch(e.which){case 38:case 37:e.preventDefault(),d("arrow-up",{index:(c=f(c)?c-1:-1,c)});break;case 40:case 39:e.preventDefault(),d("arrow-down",{index:(c=f(c)?c+1:0,c)});break;case 27:case 9:o||(e.preventDefault(),n.focus()),l(0,!1)}}function l(e,n){clearTimeout(i),i=setTimeout((()=>{!function(e){r!==e&&(r=e,c=null,o.forEach((n=>{s(t[n],"expanded",n===e)})),d("select"))}(n),n?a||(a=!0,document.addEventListener("keydown",u)):(a=!1,document.removeEventListener("keydown",u))}),e)}o.forEach((e=>{const n=t[e],o=t=>{t.preventDefault(),t.stopPropagation(),t.target.closest("button").blur(),l(0,e)},i=()=>{l(0,e)};n.addEventListener("click",o),n.addEventListener("touchstart",o),"menu"!==e&&(n.addEventListener("focus",i),n.addEventListener("mouseenter",(()=>{n.removeEventListener("focus",i),document.activeElement.blur(),l(r?0:150,e)})),n.addEventListener("mouseleave",(()=>{n.addEventListener("focus",i),l(50,!1)})))})),addEventListener("lp:dropdown:mouseenter",(e=>{l(0,e.detail.name)})),addEventListener("lp:dropdown:mouseleave",(()=>{l(350,!1)})),addEventListener("lp:dropdown:hide",(()=>{l(0,!1)})),addEventListener("lp:menu:hide",(()=>{l(0,!1)})),document.addEventListener("click",(()=>{l(50,!1)}))}))})();; (()=>{"use strict";const e=e=>{t(document,"DOMContentLoaded",e)};function t(e,t,n){let o=!1;const r=()=>{o||(n(document),o=!0)};if("complete"===document.readyState)return setTimeout(r,0);e.addEventListener(t,r)}e.load=e=>{t(window,"load",e)},e((()=>{function e(e){e.querySelectorAll(".is-cloned").forEach((e=>e.parentNode.removeChild(e)));const t=e.getBoundingClientRect().width;if(!t)return;let n=Math.ceil(window.innerWidth/t);for(;n>0;)[...e.cloneNode(!0).children].forEach((t=>{t.classList.add("is-cloned"),e.appendChild(t)})),n--;const o=(t+parseInt(getComputedStyle(e).getPropertyValue("row-gap")))*("rtl"===document.documentElement.getAttribute("dir")?1:-1);e.style.setProperty("--scroll-end",`${o}px`)}const t=new IntersectionObserver((e=>{e.forEach((e=>{e.isIntersecting&&e.target.classList.add("is-scrolling")}))}));document.querySelectorAll(".lp-content-area--scrolling").forEach((n=>{let o=window.innerWidth;window.addEventListener("resize",(()=>{const t=window.innerWidth;t!==o&&(e(n),o=t)})),e(n),t.observe(n)}))}))})();; (()=>{"use strict";const t=t=>{n(document,"DOMContentLoaded",t)};t.load=t=>{n(window,"load",t)};const e=t;function n(t,e,n){let i=!1;const s=()=>{i||(n(document),i=!0)};if("complete"===document.readyState)return setTimeout(s,0);t.addEventListener(e,s)}class i{constructor(t){if(this.rootElement=t,t.classList.contains("lp-logo-bar--has-wrap"))return;const e=this.contentElement=t.querySelector("*");e&&(this.contentElementInnerHTML=e.innerHTML,this.__resetContentProperties(),this.__setObserver(),this.__setMouseEvents(),addEventListener("resize",this.__handleResize.bind(this)))}__resetContentProperties(){const{contentElement:t,contentElementInnerHTML:e,rootElement:n}=this,i=this.contextWidth=n.offsetWidth;this.__setContent(e);let s=e,o=1;const r=this.contentWidth=this.__determineContentWidth();for(;(o-1-.5)*r<=i;)s+=e,o+=1;o>1&&(t.innerHTML=s)}__setContent(t){this.contentElement.innerHTML=t||""}__determineContentWidth(){return Array.from(this.contentElement.children).reduce(((t,e)=>{const n=getComputedStyle(e,null);return t+e.offsetWidth+(parseInt(n.getPropertyValue("margin-inline-end"),10)||0)}),0)}__setObserver(){new IntersectionObserver((t=>{t.forEach((({isIntersecting:t})=>{this.isVisible=t,this[t?"start":"stop"]()}).bind(this))}).bind(this)).observe(this.rootElement)}__setMouseEvents(){const{rootElement:t}=this;t.addEventListener("mouseenter",(()=>{this.mouseOverTimeout=setTimeout((()=>{this.hasMouseOver=!0,this.stop()}).bind(this),150)}).bind(this)),t.addEventListener("mouseleave",(()=>{clearTimeout(this.mouseOverTimeout),this.hasMouseOver=!1,this.start()}).bind(this))}__handleResize(){clearTimeout(this.resizeEndTimeout),this.__setContent(),this.resizeEndTimeout=setTimeout(this.__resetContentProperties.bind(this),150)}start(){if(!this.animation){if(!this.isVisible||this.hasMouseOver)return this.stop();this.animationTime=this.__time(),this.animationValue=this.animationValue||0,this.animation=!0,requestAnimationFrame(this.__animate.bind(this))}}__time(){return performance.now()}__animate(){if(!this.animation)return;const{animationTime:t,animationValue:e,contentElement:n,contentWidth:i,contextWidth:s}=this,o=this.__time(),r=e-(o-t)/20,a=.5*i;((t,e,n,i,s,o=!0)=>{let r=function(t,e,n,i){let s="translate",o=[t,e];return i&&(s+="3d",o.push(n)),o=o.map((t=>t?`${t}px`:0)),`${s}(${o.join(", ")})`}(e,n,i,o);(t=>!isNaN(t)&&"number"==typeof t)(s)&&(r+=` ${function(t,e){return e?`scale3d(${t}, ${t}, 1)`:`scale(${t})`}(s,o)}`),t.style.transform=r})(n,((r+a)%i-a)*("rtl"===document.documentElement.getAttribute("dir")?-1:1),0,0,!1,!Boolean("chrome"in window&&s>=2e3)),this.animationTime=o,this.animationValue=r,requestAnimationFrame(this.__animate.bind(this))}stop(){this.animation=!1}}e((()=>{for(const t of document.getElementsByClassName("lp-logo-bar"))new i(t)}))})();; (()=>{"use strict";const t=t=>{s(document,"DOMContentLoaded",t)};t.load=t=>{s(window,"load",t)};const e=t;function s(t,e,s){let n=!1;const o=()=>{n||(s(document),n=!0)};if("complete"===document.readyState)return setTimeout(o,0);t.addEventListener(e,o)}const n="lp-typed--is-on",o="lp-typed--has-focus",r="lp-typed__content__character";class i{constructor(t){this.rootElement=t,this.indicatorElement=this.rootElement.querySelector(".lp-typed__content__indicator");const e=this.rootElement.querySelector(".lp-typed__content__data");if(!this.indicatorElement||!e)return;this.syncedElement=this.rootElement.parentElement.parentElement.querySelector(".lp-image-stack"),this.syncedElement&&this.syncedElement.setAttribute("data-current-frame",0);const s=(n=e.textContent,String(n||"").split(/\n+/).map((t=>t.trim())).filter(Boolean).join("\n"));var n;const o=s.split(/\n+/);this.content=s,this.contentLines=o,this.contentLineCount=o.length,e.remove(),this.reset()}reset(){return clearTimeout(this.__nextStepTimeout),this.rootElement.classList.remove(n,o),this.__clearCharacters(),this.active=!1,this}start(){if(this.content&&!this.active)return this.active=!0,this.rootElement.classList.add(n),this.__scheduleLong((()=>{this.__type(0,0)})),this}__clearCharacters(){const{rootElement:t}=this;t.classList.remove(o),Array.from(t.getElementsByClassName(r)).forEach((t=>t.remove()))}__schedule(t,e){this.active&&(this.__nextStepTimeout=setTimeout(e.bind(this),Math.round(Math.random()*t/2)+t))}__scheduleShort(t){return this.__schedule(50,t)}__scheduleLong(t){return this.__schedule(800,t)}__type(t,e){const s=this.contentLines[t].charAt(e);s?(this.__insertCharacter(s),this.__scheduleShort((()=>{this.__type(t,e+1)}))):this.__scheduleLong((()=>{this.__focus(),this.__scheduleLong((()=>{this.__clearCharacters(),this.__scheduleLong((()=>{this.__type((t+1)%this.contentLineCount,0),this.syncedElement&&this.syncedElement.setAttribute("data-current-frame",(t+1)%this.contentLineCount)}))}))}))}__insertCharacter(t){const{indicatorElement:e}=this,s=document.createElement("span");s.textContent=t.replace(/\s+/," "),s.className=r,e.parentNode.insertBefore(s,e)}__focus(){this.active&&this.rootElement.classList.add(o)}}e.load((()=>{Array.from(document.getElementsByClassName("lp-typed")).forEach((t=>{const e=new i(t);new IntersectionObserver((t=>{t.forEach((t=>{t.intersectionRatio>0?e.start():e.reset()}))}),{threshold:[0,1]}).observe(t)}))}))})();; (()=>{"use strict";const e=JSON.parse('{"CO":"https://public-api.wordpress.com/wpcom/v2/imports/analyze-url"}'),t=e=>{o(document,"DOMContentLoaded",e)};function o(e,t,o){let r=!1;const s=()=>{r||(o(document),r=!0)};if("complete"===document.readyState)return setTimeout(s,0);e.addEventListener(t,s)}t.load=e=>{o(window,"load",e)};const r=/^(http:\/\/www\.|https:\/\/www\.|http:\/\/|https:\/\/)?[a-z0-9]+([-.][a-z0-9]+)*\.[a-z]{2,5}(:[0-9]{1,5})?(\/.*)?$/i;function s(t){t.preventDefault();const o=document.querySelector(".lp-url-analyzer-form input"),s=r.test(o.value);s?function(t){const o=`${e.CO}?site_url=${t}`;new Promise((e=>{!function(){const e=document.querySelector(".lp-url-analyzer-form button");e?.setAttribute("disabled","disabled"),e?.classList.add("is-busy")}(),e(fetch(o,{}))})).then((e=>e.json())).then(n).then((e=>{i(),function(e){const{pathname:t}=window.location,o=t?t.replace(/^\/|\/$/g,""):"",r=""===o?"logged-out-homepage":o,s=`https://wordpress.com/setup/hosted-site-migration/sitePicker?from=${e.url}&ref=${encodeURIComponent(r+"-lp")}&signup=true`;window.open(s,"_blank")}(e),function(){const e=document.getElementById("migration-instructions");e?.scrollIntoView()}()})).catch((e=>{i(),a(e.message,e.type)})).finally((()=>{!function(){const e=document.querySelector(".lp-url-analyzer-form button");e?.removeAttribute("disabled"),e?.classList.remove("is-busy")}()}))}(o.value):a("Please enter a valid website address."),window._tkq.push(["recordEvent","wpcom_landing_pages_url_analyzer_form_submit",{url:o.value,is_valid_url:s}])}function n(e){if(e.code&&e.data.status){if("rate_limit_exceeded"===e?.code)throw new Error("Oops! Rate limit exceeded. Please try again later.");throw new Error("Oops! We couldn’t find a WordPress site at the specified domain. Please double-check the URL and try again.")}if("unknown"===e.platform)throw new Error("Oops! This site isn’t built with WordPress, so it can’t be moved. Please check the URL or try another WordPress site.");if("wordpress"!==e.platform){const t=function(e){switch(e){case"wix":return{name:"Wix",supportLink:"https://wordpress.com/support/import/import-from-wix/"};case"blogger":return{name:"Blogger",supportLink:"https://wordpress.com/support/import/coming-from-blogger/"};case"medium":return{name:"Medium",supportLink:"https://wordpress.com/support/import/import-from-medium/"};case"squarespace":return{name:"Squarespace",supportLink:"https://wordpress.com/support/import/import-from-squarespace/"};default:return{name:e,supportLink:"https://wordpress.com/support"}}}(e.platform);throw{type:"info",message:function(e,...t){let o=0;return e.replace(/%([sd])/g,(function(e,r){const s=t[o++];switch(r){case"s":return String(s);case"d":return parseInt(s);case"f":return parseFloat(s);default:return e}}))}("Looking to move your %s-hosted site to WordPress.com? Visit our support page for step-by-step guidance.",t.name).replace("",``)}}if("wordpress"===e.platform&&e.platform_data?.is_wpcom)throw new Error("Oops! It looks like you’re already using WordPress.com. Please double-check the URL and try again.");return e}function a(e,t="error"){const o=document.querySelector(".lp-url-analyzer-form"),r=document.querySelector(".validation-msg"),s=document.querySelector(".validation-msg > span");o?.classList.toggle("is-error","error"===t),r&&(r.classList.remove("hidden"),s.innerHTML=e),window._tkq.push(["recordEvent","wpcom_landing_pages_url_analyzer_form_error",{message:e,type:t}])}function i(){const e=document.querySelector(".lp-url-analyzer-form"),t=document.querySelector(".validation-msg");e?.classList.remove("is-error"),t?.classList.add("hidden")}t((()=>{const e=document.querySelector(".lp-url-analyzer-form");if(!e)return;const t=e.getAttribute("data-random-placeholder");window._tkq=window._tkq||[],e?.addEventListener("submit",s),"true"===t&&function(e){const t=["gluten-free-gutenberg.com","pool-request.com","ssh-pls.com","hash-salts-bbq-malts.com","splash-cache.com","blue-sky-api.com","java-script-coffee-sip.com","upload-down-code.com","accept-cookies-digest-cookies.com","drag-and-drop-dragon-shop.com","browser-powder.com","information-super-my-way.com","cascading-smile-streets.com","front-end-hydration-station.com","install-de-stijl.com","full-stack-lipstick.com","artificial-eloquence.com","electric-utopia.com","machine-kerning.com","open-sauce.store","web-three-one-four.com","four-oh-four.com","place-hodler.com"],o=t[Math.floor(Math.random()*t.length)];e?.setAttribute("placeholder",o)}(e?.querySelector("input"))}))})();;