!function(){"use strict";try{self["workbox:sw:5.1.3"]&&_()}catch(t){}const t={backgroundSync:"background-sync",broadcastUpdate:"broadcast-update",cacheableResponse:"cacheable-response",core:"core",expiration:"expiration",googleAnalytics:"offline-ga",navigationPreload:"navigation-preload",precaching:"precaching",rangeRequests:"range-requests",routing:"routing",strategies:"strategies",streams:"streams"};self.workbox=new class{constructor(){return this.v={},this.t={debug:"localhost"===self.location.hostname,modulePathPrefix:null,modulePathCb:null},this.s=this.t.debug?"dev":"prod",this.o=!1,new Proxy(this,{get(e,s){if(e[s])return e[s];const o=t[s];return o&&e.loadModule(`workbox-${o}`),e[s]}})}setConfig(t={}){if(this.o)throw new Error("Config must be set before accessing workbox.* modules");Object.assign(this.t,t),this.s=this.t.debug?"dev":"prod"}loadModule(t){const e=this.i(t);try{importScripts(e),this.o=!0}catch(s){throw console.error(`Unable to import module '${t}' from '${e}'.`),s}}i(t){if(this.t.modulePathCb)return this.t.modulePathCb(t,this.t.debug);let e=["https://storage.googleapis.com/workbox-cdn/releases/5.1.3"];const s=`${t}.${this.s}.js`,o=this.t.modulePathPrefix;return o&&(e=o.split("/"),""===e[e.length-1]&&e.splice(e.length-1,1)),e.push(s),e.join("/")}}}();workbox.setConfig({"debug":false,"modulePathPrefix":"https://yoast.com/app/plugins/pwa/wp-includes/js/workbox-v5.1.3/"});workbox.core.setCacheNameDetails({"prefix":"wp-/","precache":"precache-front","suffix":"v1"});workbox.core.skipWaiting();workbox.core.clientsClaim();if(!self.wp){self.wp={};}
wp.serviceWorker=workbox;self.addEventListener('message',function(event){if('skipWaiting'===event.data.action){self.skipWaiting();}});(()=>{wp.serviceWorker.precaching.precache([{"url":"https://yoast.com/?wp_error_template=offline","revision":"0.5.0;yoast-theme=5.0.0;yoast-com=1.0.0;options=30e4c086d2eafcefca9326dea6c9da6f;nav=490c73441454e7a73dbea548c4ea164c;deps=585d73d57714fde2905d63d57c338a9c;d0bea54ded190078e2473f0031c67d01"},{"url":"https://yoast.com/?wp_error_template=500","revision":"0.5.0;yoast-theme=5.0.0;yoast-com=1.0.0;options=30e4c086d2eafcefca9326dea6c9da6f;nav=490c73441454e7a73dbea548c4ea164c;deps=585d73d57714fde2905d63d57c338a9c;aae084035959d420e26916cdb3f1d33d"}]);wp.serviceWorker.precaching.addRoute({ignoreUrlParametersMatching:[/^utm_/,/^wp-mce-/,/^ver$/],});})();(()=>{const queue=new wp.serviceWorker.backgroundSync.Queue('wpPendingComments');const errorMessages={"clientOffline":"It seems you are offline. Please check your internet connection and try again.","serverOffline":"The server appears to be down. Please try again later.","error":"Something prevented the page from being rendered. Please try again.","comment":"Your comment will be submitted once you are back online!"};const commentHandler=({event})=>{const clone=event.request.clone();return fetch(event.request).then((response)=>{if(response.status<500){return response;}
return response.text().then(function(errorText){return caches.match(wp.serviceWorker.precaching.getCacheKeyForURL("https://yoast.com/?wp_error_template=500")).then(function(errorResponse){if(!errorResponse){return response;}
return errorResponse.text().then(function(text){const init={status:errorResponse.status,statusText:errorResponse.statusText,headers:errorResponse.headers,};let body=text.replace(/[<]!--WP_SERVICE_WORKER_ERROR_MESSAGE-->/,errorMessages.error);body=body.replace(/([<]!--WP_SERVICE_WORKER_ERROR_TEMPLATE_BEGIN-->)((?:.|\n)+?)([<]!--WP_SERVICE_WORKER_ERROR_TEMPLATE_END-->)/,(details)=>{if(!errorText){return '';}
const src='data:text/html;base64,'+
btoa(errorText);const srcdoc=errorText.replace(/&/g,'&amp;').replace(/'/g,'&#39;').replace(/"/g,'&quot;').replace(/</g,'&lt;').replace(/>/g,'&gt;');const iframe=`<iframe style="width:100%" src="${src}"  srcdoc="${srcdoc}"></iframe>`;details=details.replace('{{{error_details_iframe}}}',iframe);details=details.replace('{{{iframe_src}}}',src);details=details.replace('{{{iframe_srcdoc}}}',srcdoc);details=details.replace('<'+
'!--WP_SERVICE_WORKER_ERROR_TEMPLATE_BEGIN-->','');details=details.replace('<'+
'!--WP_SERVICE_WORKER_ERROR_TEMPLATE_END-->','');return details;});return new Response(body,init);});});});}).catch(()=>{const bodyPromise=clone.blob();bodyPromise.then(function(body){const request=event.request;const req=new Request(request.url,{method:request.method,headers:request.headers,mode:'same-origin',credentials:request.credentials,referrer:request.referrer,redirect:'manual',body,});queue.pushRequest({request:req,});});return caches.match(wp.serviceWorker.precaching.getCacheKeyForURL("https://yoast.com/?wp_error_template=offline")).then(function(response){return response.text().then(function(text){const init={status:response.status,statusText:response.statusText,headers:response.headers,};const body=text.replace(/[<]!--WP_SERVICE_WORKER_ERROR_MESSAGE-->/,errorMessages.comment);return new Response(body,init);});});});};wp.serviceWorker.routing.registerRoute(/\/wp-comments-post\.php$/,commentHandler,'POST');})();(()=>{const navigationPreload=true;const errorMessages={"clientOffline":"It seems you are offline. Please check your internet connection and try again.","serverOffline":"The server appears to be down. Please try again later.","error":"Something prevented the page from being rendered. Please try again.","comment":"Your comment will be submitted once you are back online!"};const navigationRouteEntry={"url":null,"revision":"0.5.0;yoast-theme=5.0.0;yoast-com=1.0.0;options=30e4c086d2eafcefca9326dea6c9da6f;nav=490c73441454e7a73dbea548c4ea164c;deps=585d73d57714fde2905d63d57c338a9c"};if(false!==navigationPreload){if(typeof navigationPreload==='string'){wp.serviceWorker.navigationPreload.enable(navigationPreload);}else{wp.serviceWorker.navigationPreload.enable();}}else{wp.serviceWorker.navigationPreload.disable();}
const navigationCacheStrategy=new wp.serviceWorker.strategies["NetworkOnly"]((function(){const strategyArgs={};if(strategyArgs.cacheName&&wp.serviceWorker.core.cacheNames.prefix){strategyArgs.cacheName=`${wp.serviceWorker.core.cacheNames.prefix}-${strategyArgs.cacheName}`;}strategyArgs.plugins=[];return strategyArgs;})());async function handleNavigationRequest({event}){const handleResponse=(response)=>{if(response.status<500){return response;}
const originalResponse=response.clone();return response.text().then(function(responseBody){if(-1!==responseBody.indexOf('</html>')){return originalResponse;}
return caches.match(wp.serviceWorker.precaching.getCacheKeyForURL("https://yoast.com/?wp_error_template=500")).then(function(errorResponse){if(!errorResponse){return response;}
return errorResponse.text().then(function(text){const init={status:errorResponse.status,statusText:errorResponse.statusText,headers:errorResponse.headers,};let body=text.replace(/[<]!--WP_SERVICE_WORKER_ERROR_MESSAGE-->/,errorMessages.error);body=body.replace(/([<]!--WP_SERVICE_WORKER_ERROR_TEMPLATE_BEGIN-->)((?:.|\n)+?)([<]!--WP_SERVICE_WORKER_ERROR_TEMPLATE_END-->)/,(details)=>{if(!responseBody){return '';}
const src='data:text/html;base64,'+
btoa(responseBody);const srcdoc=responseBody.replace(/&/g,'&amp;').replace(/'/g,'&#39;').replace(/"/g,'&quot;').replace(/</g,'&lt;').replace(/>/g,'&gt;');const iframe=`<iframe style="width:100%" src="${src}" data-srcdoc="${srcdoc}"></iframe>`;details=details.replace('{{{error_details_iframe}}}',iframe);details=details.replace('{{{iframe_src}}}',src);details=details.replace('{{{iframe_srcdoc}}}',srcdoc);details=details.replace('<'+
'!--WP_SERVICE_WORKER_ERROR_TEMPLATE_BEGIN-->','');details=details.replace('<'+
'!--WP_SERVICE_WORKER_ERROR_TEMPLATE_END-->','');return details;});return new Response(body,init);});});});};const sendOfflineResponse=()=>{return caches.match(wp.serviceWorker.precaching.getCacheKeyForURL("https://yoast.com/?wp_error_template=offline")).then(function(response){return response.text().then(function(text){const init={status:response.status,statusText:response.statusText,headers:response.headers,};const body=text.replace(/[<]!--WP_SERVICE_WORKER_ERROR_MESSAGE-->/,navigator.onLine?errorMessages.serverOffline:errorMessages.clientOffline);return new Response(body,init);});});};return navigationCacheStrategy.handle({event,request:event.request}).then(handleResponse).catch(sendOfflineResponse);}
const denylist=["^\\/wp\\/wp\\-admin($|\\?.*|/.*)","[^\\?]*.\\.php($|\\?.*)",".*\\?(.*&)?(wp_service_worker)=","[^\\?]*\\/feed\\/(\\w+\\/)?$","\\?(.+&)*wp_customize=","\\?(.+&)*customize_changeset_uuid=","^\\/wp\\-json\\/.*"].map((pattern)=>new RegExp(pattern));if(navigationRouteEntry&&navigationRouteEntry.url){wp.serviceWorker.routing.registerNavigationRoute(navigationRouteEntry.url,{denylist,});class FetchNavigationRoute extends wp.serviceWorker.routing.Route{constructor(handler,{allowlist:_allowlist=[/./],denylist:_denylist=[]}={}){super((options)=>this._match(options),handler);this._allowlist=_allowlist;this._denylist=_denylist;}
_match({url,request}){if(request.mode!=='same-origin'){return false;}
const pathnameAndSearch=url.pathname+url.search;for(const regExp of this._denylist){if(regExp.test(pathnameAndSearch)){return false;}}
return this._allowlist.some((regExp)=>regExp.test(pathnameAndSearch));}}
wp.serviceWorker.routing.registerRoute(new FetchNavigationRoute(handleNavigationRequest,{denylist}));}else{wp.serviceWorker.routing.registerRoute(new wp.serviceWorker.routing.NavigationRoute(handleNavigationRequest,{denylist,}));}})();wp.serviceWorker.routing.registerRoute(new wp.serviceWorker.routing.NavigationRoute(new wp.serviceWorker.strategies.NetworkOnly(),{allowlist:["^\\/wp\\/wp\\-admin($|\\?.*|/.*)","[^\\?]*.\\.php($|\\?.*)",".*\\?(.*&)?(wp_service_worker)=","[^\\?]*\\/feed\\/(\\w+\\/)?$","\\?(.+&)*wp_customize=","\\?(.+&)*customize_changeset_uuid=","^\\/wp\\-json\\/.*"].map((pattern)=>new RegExp(pattern)),}));