( 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 ); } )(); ; (()=>{var e={2127:(e,t,n)=>{"use strict";var r=n(9329),o=n(2405);function s(e,t){return e+Math.floor(Math.random()*(t-e+1))}(0,r.A)((()=>{document.querySelectorAll(".lp-footer-section").forEach((e=>{e.querySelectorAll("[data-dictionary]").forEach((e=>{const t=function(e){const{parse:t}=JSON;let n;try{n=t(e)}catch(r){try{n=t(atob(e))}catch(e){}}return Array.isArray(n)?n.map((e=>String(e).trim())).filter(Boolean):[]}(function(e,t){const n=e.getAttribute(t);return e.removeAttribute(t),n}(e,"data-dictionary"));if(t.length<1)return;const n=e.innerHTML.trim();!function(e,t){const n=t.length;let r=-1;const i=i=>{(0,o.A)(i)||(i=((e,t,n)=>{if(!(0,o.A)(n)||n<0||n>t)return s(0,t);const r=s(0,t-1);return r+(r>=n?1:0)})(0,n-1,r)),e.innerHTML=t[i],r=i};if(n<2)return i(0);i(),function(e,t){new IntersectionObserver((e=>{e.forEach((({isIntersecting:e})=>{e||t()}))}),{rootMargin:"1px 1px 1px 1px"}).observe(e)}(e,i)}(e,t.map((e=>e.replace("Automattic",n))))}))}))})),(0,r.A)((()=>{function e(e){const t=e.target.value;((e,t,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",t].map(encodeURIComponent).join("=")];for(const e in n)r.push(`${e}=${n[e]}`);document.cookie=r.join("; ")})(0,t,{expires:1825}),function(e){if(!e)return;const t=e.getAttribute("data-href")+document.location.search;e.setAttribute("href",t),e.click()}(document.querySelector(`.lp-language-picker__link[lang="${t}"]`))}Array.from(document.querySelectorAll(".lp-language-picker__content")).forEach((t=>{t.addEventListener("change",e)}))}));(0,r.A)((()=>{let e=-1;const t=Array.from(document.querySelectorAll(".lp-footer-stack")),n=()=>{t.forEach((e=>e.open=!0))},r=n=>{(0,o.A)(n)&&(e=n),t.forEach(((t,n)=>{n!==e&&(t.open=!1)}))},s=()=>window.innerWidth>=1152,i=()=>{s()?n():r()};addEventListener("resize",i),requestAnimationFrame(i),t.forEach(((t,o)=>{const i=t.querySelector("summary");i.addEventListener("click",(a=>{if(a.detail>0&&i.blur(),s())return a.preventDefault(),a.stopImmediatePropagation(),e=-1,n();o!==e&&!0!==t.open?r(o):e=-1}))}))}))},9329:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});const r=e=>{s(document,"DOMContentLoaded",e)};r.load=e=>{s(window,"load",e)};const o=r;function s(e,t,n){let r=!1;const o=()=>{r||(n(document),r=!0)};if("complete"===document.readyState)return setTimeout(o,0);e.addEventListener(t,o)}},2405:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=e=>!isNaN(e)&&"number"==typeof e},6866:e=>{e.exports={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}},7833:(e,t,n)=>{t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const n="color: "+this.color;t.splice(1,0,n,"color: inherit");let r=0,o=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(r++,"%c"===e&&(o=r))})),t.splice(o,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")}catch(e){}return!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG),e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=n(736)(t);const{formatters:r}=e.exports;r.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},736:(e,t,n)=>{e.exports=function(e){function t(e){let n,o,s,i=null;function a(...e){if(!a.enabled)return;const r=a,o=Number(new Date),s=o-(n||o);r.diff=s,r.prev=n,r.curr=o,n=o,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let i=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((n,o)=>{if("%%"===n)return"%";i++;const s=t.formatters[o];if("function"==typeof s){const t=e[i];n=s.call(r,t),e.splice(i,1),i--}return n})),t.formatArgs.call(r,e),(r.log||t.log).apply(r,e)}return a.namespace=e,a.useColors=t.useColors(),a.color=t.selectColor(e),a.extend=r,a.destroy=t.destroy,Object.defineProperty(a,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==i?i:(o!==t.namespaces&&(o=t.namespaces,s=t.enabled(e)),s),set:e=>{i=e}}),"function"==typeof t.init&&t.init(a),a}function r(e,n){const r=t(this.namespace+(void 0===n?":":n)+e);return r.log=this.log,r}function o(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){const e=[...t.names.map(o),...t.skips.map(o).map((e=>"-"+e))].join(",");return t.enable(""),e},t.enable=function(e){let n;t.save(e),t.namespaces=e,t.names=[],t.skips=[];const r=("string"==typeof e?e:"").split(/[\s,]+/),o=r.length;for(n=0;n{t[n]=e[n]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let n=0;for(let t=0;t{var t=1e3,n=60*t,r=60*n,o=24*r,s=7*o;function i(e,t,n,r){var o=t>=1.5*n;return Math.round(e/n)+" "+r+(o?"s":"")}e.exports=function(e,a){a=a||{};var c,l,u=typeof e;if("string"===u&&e.length>0)return function(e){if(!((e=String(e)).length>100)){var i=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(i){var a=parseFloat(i[1]);switch((i[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*a;case"weeks":case"week":case"w":return a*s;case"days":case"day":case"d":return a*o;case"hours":case"hour":case"hrs":case"hr":case"h":return a*r;case"minutes":case"minute":case"mins":case"min":case"m":return a*n;case"seconds":case"second":case"secs":case"sec":case"s":return a*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return a;default:return}}}}(e);if("number"===u&&isFinite(e))return a.long?(c=e,(l=Math.abs(c))>=o?i(c,l,o,"day"):l>=r?i(c,l,r,"hour"):l>=n?i(c,l,n,"minute"):l>=t?i(c,l,t,"second"):c+" ms"):function(e){var s=Math.abs(e);return s>=o?Math.round(e/o)+"d":s>=r?Math.round(e/r)+"h":s>=n?Math.round(e/n)+"m":s>=t?Math.round(e/t)+"s":e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},1727:(e,t,n)=>{"use strict";var r=n(9479);e.exports=function(){var e=r.apply(r,arguments);return e.charAt(0).toUpperCase()+e.slice(1)}},9479:e=>{"use strict";e.exports=function(){var e=[].map.call(arguments,(function(e){return e.trim()})).filter((function(e){return e.length})).join("-");return e.length?1!==e.length&&/[_.\- ]+/.test(e)?e.replace(/^[_.\- ]+/,"").toLowerCase().replace(/[_.\- ]+(\w|$)/g,(function(e,t){return t.toUpperCase()})):e[0]===e[0].toLowerCase()&&e.slice(1)!==e.slice(1).toLowerCase()?e:e.toLowerCase():""}},4825:(e,t,n)=>{var r=n(1727),o=n(6866);function s(e,t){if(t)if("number"==typeof t)i(e,t);else{t.status_code&&i(e,t.status_code),t.error&&(e.name=c(t.error)),t.error_description&&(e.message=t.error_description);var n=t.errors;for(var r in n&&s(e,n.length?n[0]:n),t)e[r]=t[r];e.status&&(t.method||t.path)&&a(e)}}function i(e,t){e.name=c(o[t]),e.status=e.statusCode=t,a(e)}function a(e){var t=e.status,n=e.method,r=e.path,o=t+" status code",s=n||r;s&&(o+=' for "'),n&&(o+=n),s&&(o+=" "),r&&(o+=r),s&&(o+='"'),e.message=o}function c(e){return r(String(e).replace(/error$/i,""),"error")}e.exports=function e(){for(var t=new Error,n=0;n{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{"use strict";var e={};n.r(e),n.d(e,{linear:()=>D,quadraticOut:()=>V,quinticOut:()=>z}),n(2127);const t=JSON.parse('{"zR":"/wp-admin/admin-ajax.php?action=landpack_form_nonce"}');var r=n(9329);const o="_wpnonce";function s(e,t=!0){e.querySelectorAll("button, input, textarea, select").forEach(t?e=>e.setAttribute("disabled",""):e=>e.removeAttribute("disabled"))}function i(e,t,n){const r=e.querySelector(".lp-form-message"),o=`lp-form-message lp-form-message--${t}`;return r&&!n?r.remove():!r&&n?e.insertAdjacentHTML("afterbegin",`

${n}

`):void(r&&n&&(r.className=o,r.innerHTML=n))}(0,r.A)((()=>{const e="lp-form--is-fetching",n="lp-form--is-success",r="lp-form--is-failed";function a(e,t){const n=e.target.dataset;n.fetchCompleteEvent&&document.querySelector("body").dispatchEvent(new CustomEvent(n.fetchCompleteEvent,{detail:{response:t}}))}!function(){const e=document.querySelectorAll(`.lp-form input[name="${o}"]`);e.length&&fetch(t.zR).then((e=>e.json())).then((e=>e.success?e[o]:Promise.reject())).then((t=>{e.forEach((e=>{e.setAttribute("value",t)}))})).catch((()=>{console.error(`Could not initialize ${o}`)}))}(),function(){const e=document.querySelector(".lp-form .lp-form-message");e&&e.scrollIntoView()}(),document.querySelectorAll(".lp-form__fetch-data:not(.lp-form--is-xhr)").forEach((t=>{const o=t.getAttribute("method")||"GET",s=t.getAttribute("action");t.classList.remove(n,r),s&&t.addEventListener("submit",(async i=>{i.preventDefault(),t.classList.add(e);try{const r=new URL(s),c=new URLSearchParams(new FormData(i.target));for(const[e,t]of c.entries())r.searchParams.append(e,t);const l=await fetch(r.toString(),{method:o});if(t.classList.remove(e),!l)return;if(200!==l.status)throw new Error("Failed to fetch data");t.classList.add(n),a(i,l)}catch(e){t.classList.add(r),console.error("There was a problem with the fetch operation:",e.message)}}))})),document.querySelectorAll(".lp-form--is-xhr").forEach((t=>{t.addEventListener("submit",(o=>{o.preventDefault();const c=o.target,l=c.getAttribute("action");t.classList.remove(n,r);const u=Object.fromEntries(new FormData(c));s(c),i(c),l&&(t.classList.add(e),fetch(l,{method:c.getAttribute("method"),body:JSON.stringify(u),headers:{Accept:"application/json","Content-Type":"application/json"}}).then((e=>e.json())).then((n=>(t.classList.remove(e),"ok"===n.status||200===n.status?n:Promise.reject(n)))).then((e=>{const r=c.getAttribute("data-success-action");a(o,e),r?location.href=r:(t.classList.add(n),i(c,"success",e?.message||e?.body?.message||"Your response has been sent."))})).catch((e=>{s(c,!1),t.classList.add(r),i(c,"error",e?.message||e?.body?.message||"There’s been an error.")})))}))}))})),(0,r.A)((()=>{document.querySelectorAll(".lp-form-typed input").forEach((e=>{const t=e.closest(".lp-form-typed-field");t&&(e.addEventListener("focus",(()=>{t.classList.add("lp-form-field--is-focused")})),e.addEventListener("blur",(()=>{e.value||t.classList.remove("lp-form-field--is-focused")})))}))}));const a=e=>"function"==typeof e;var c=n(2405);let l=new Map;window._landpack_ui_dropdowns instanceof Map?l=window._landpack_ui_dropdowns:window._landpack_ui_dropdowns=l;class u{constructor(e){return e&&e instanceof HTMLElement?l.has(e)?l.get(e):(l.set(e,this),this.rootElement=e,this.triggerElement=e.querySelector("button[aria-expanded]"),this.triggerContentElement=this.triggerElement.querySelector(":first-child"),this.options=[],this.optionElements=Array.from(e.querySelectorAll("[role=option]")).reduce(((e,t)=>{const n=t.getAttribute("data-value");return n?(this.options.push(n),{...e,[n]:t}):e}).bind(this),{}),this.name=String(e.getAttribute("data-name")),this.__setValue(e.getAttribute("data-value")),void this.close().__addEventListeners()):new d}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(e,t){return a(t)?this.__on(e,(e=>{e.$===this&&t(e)})):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(e){const t=this.value;return t===e?this:((0,c.A)(e)&&(e=this.options[e]),t===e?this:this.__setValue(e).__dispatch("select"))}__addEventListeners(){const{optionElements:e,triggerElement:t}=this;t.addEventListener("click",(e=>{if(e.preventDefault(),e.stopPropagation(),e.detail>0&&t.blur(),this.isOpen)return this.close();this.open()}).bind(this)),document.addEventListener("click",this.close.bind(this)),this.__on("open",(({$:e})=>{e!==this&&this.close()}));for(const t in e)e[t].addEventListener("click",(e=>{e.preventDefault(),e.stopPropagation(),this.select(t).__click().close()}).bind(this));return document.addEventListener("keydown",(e=>{if(!this.isOpen)return this;const n=()=>e.preventDefault(),r=(()=>{t.focus(),this.close()}).bind(this);switch(e.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}`,(({$:e})=>{e!==this&&this.select(e.value)}))}__clearCurrentIndex(){return delete this.currentIndex,Object.values(this.optionElements).forEach((e=>{e.setAttribute("aria-current","false")})),this}__click(){return this.__dispatch("click")}__dispatch(e){const{name:t,value:n}=this,r={name:t,type:e,value:n,$:this};return[e,t,n].reduce(((e,t)=>(((e,t,n)=>{var r;r=e,"[object String]"===Object.prototype.toString.call(r)&&(n=t,t=e,e=window);const o=n?new CustomEvent(t,{detail:n}):new Event(t);e.dispatchEvent(o)})(e+=`:${t}`,r),e)),"lp:ui-dropdown"),this}__hasCurrentIndex(){return(0,c.A)(this.currentIndex)}__moveCurrentIndex(e=1){let{currentIndex:t,optionElements:n}=this;this.__hasCurrentIndex()?t+=e:t=e<0?-1:0;const r=this.options.length;return this.currentIndex=t=(t+r)%r,this.options.forEach(((e,r)=>{n[e].setAttribute("aria-current",String(r===t))})),this}__on(e,t){return addEventListener(`lp:ui-dropdown:${e}`,(e=>t.call(this,e.detail)).bind(this)),this}__setValue(e){if(this.value===e)return this;this.value=e;const{optionElements:t,rootElement:n}=this;return e?n.setAttribute("data-value",e):n.removeAttribute("data-value"),this.options.forEach((n=>{t[n].setAttribute("aria-selected",String(n===e))})),this.__updateTriggerContent()}__updateTriggerContent(){const e=this.triggerContentElement,t=this.optionElements[this.value].querySelector(":first-child")||{},n=document.createElement(e.tagName);return n.innerHTML=t.innerHTML||"",n.className=` ${t.className||""}`.replace(/(\slp-ui-dropdown__)menu/gi,"$1trigger").trim(),e.replaceWith(n),this.triggerContentElement=n,this}}class d{close(){return this}on(){return this}open(){return this}select(){return this}}(0,r.A)((()=>{document.querySelectorAll(".lp-ui-dropdown").forEach((e=>new u(e)))})),(0,r.A)((()=>{const e=document.querySelectorAll(".lp-section--has-animated-icons");if(0===e.length)return;const t=new Map;e.forEach((e=>{t.set(e,(e=>{const t=e.querySelectorAll('[class^="lp-icon-"][class*="-anim"], [class^="anim-"]');return Array.from(t).map((e=>{const t=e.getAttribute("class");return e.classList.remove(t),{className:t,icon:e}}))})(e))}));const n=new IntersectionObserver((e=>{e.forEach((e=>{t.get(e.target).forEach((t=>{t.icon.classList.toggle(t.className,e.isIntersecting)}))}))}),{threshold:.5});e.forEach((e=>{n.observe(e)}))}));const p="aria-hidden";(0,r.A)((()=>{const e=Array.from(document.querySelectorAll(".lp-block--has-breakpoints, .lp-section--is-breakpoint")),t=()=>{e.forEach((e=>{!function(e){return!e.offsetParent}(e)?e.removeAttribute(p):e.setAttribute(p,"true")}))};addEventListener("resize",t),t()})),(0,r.A)((()=>{const e=document.querySelector(".lp-promo-banner-cswp");if(e){const t=document.querySelector("div.lp-root"),n=document.querySelector("body");e.style.position="sticky",e.style.padding="0",e.style.top="0",e.style.zIndex="990",n.insertBefore(e,t),e.style.display="block";const r=document.querySelector(".close-promo-banner-cswp");function o(){e.style.display="none",r.removeEventListener("click",o)}r.addEventListener("click",o)}}));var h,m=n(7833),f=n.n(m),g=new Uint8Array(16);function y(){if(!h&&!(h="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return h(g)}const C=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;for(var v=[],_=0;_<256;++_)v.push((_+256).toString(16).substr(1));const w=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(v[e[t+0]]+v[e[t+1]]+v[e[t+2]]+v[e[t+3]]+"-"+v[e[t+4]]+v[e[t+5]]+"-"+v[e[t+6]]+v[e[t+7]]+"-"+v[e[t+8]]+v[e[t+9]]+"-"+v[e[t+10]]+v[e[t+11]]+v[e[t+12]]+v[e[t+13]]+v[e[t+14]]+v[e[t+15]]).toLowerCase();if(!function(e){return"string"==typeof e&&C.test(e)}(n))throw TypeError("Stringified UUID is invalid");return n},b=function(e,t,n){var r=(e=e||{}).random||(e.rng||y)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var o=0;o<16;++o)t[n+o]=r[o];return t}return w(r)};var A=n(4825),E=n.n(A);const F=f()("wpcom-proxy-request"),L="https://public-api.wordpress.com";let S=null;const x=(()=>{let e=!1;try{window.postMessage({toString:function(){e=!0}},"*")}catch(e){}return e})(),k=(()=>{try{return new window.File(["a"],"test.jpg",{type:"image/jpeg"}),!0}catch(e){return!1}})();let q,I=null,M=!1;const j={},O=(e,t)=>{const n=Object.assign({},e);F("request(%o)",n),I||function(){F("install()"),I&&(F("uninstall()"),window.removeEventListener("message",R),document.body.removeChild(I),M=!1,I=null),q=[],window.addEventListener("message",R),I=document.createElement("iframe");const e=window.location.origin;F('using "origin": %o',e),I.src=L+"/wp-admin/rest-proxy/?v=2.0#"+e,I.style.display="none",document.body.appendChild(I)}();const r=b();n.callback=r,n.supports_args=!0,n.supports_error_obj=!0,n.supports_progress=!0,n.method=String(n.method||"GET").toUpperCase(),F("params object: %o",n);const o=new window.XMLHttpRequest;if(o.params=n,j[r]=o,"function"==typeof t){let e=!1;const n=n=>{if(e)return;e=!0;const r=n.response??o.response;F("body: ",r),F("headers: ",n.headers),t(null,r,n.headers)},r=n=>{if(e)return;e=!0;const r=n.error??n.err??n;F("error: ",r),F("headers: ",n.headers),t(r,null,n.headers)};o.addEventListener("load",n),o.addEventListener("abort",r),o.addEventListener("error",r)}return"function"==typeof n.onStreamRecord&&(S=n.onStreamRecord,delete n.onStreamRecord),M?T(n):(F("buffering API request since proxying