(function(){var currentToken;var parentOrigin;var iframeOrigins;var initializationListeners=[];var hasBeenInitialized=false;var RLT_KEY='jetpack:wpcomRLT';function getOriginFromUrl(url){var parser=document.createElement('a');parser.href=url;return parser.origin;} function rltIframeInjector(event){if(!currentToken){return;} rltInjectToken(currentToken,event.target.contentWindow,getOriginFromUrl(event.target.src));} function rltMonitorIframes(){var iframes=document.querySelectorAll("iframe");for(var i=0;i=0;} function rltInvalidateWindowToken(token,target,origin){if(target&&typeof target.postMessage==='function'){try{target.postMessage(JSON.stringify({type:'rltMessage',data:{event:'invalidate',token:token,sourceOrigin:window.location.origin,},}),origin);}catch(err){return;}}} window.rltInvalidateToken=function(token,sourceOrigin){if(token===currentToken){currentToken=null;} try{if(window.location===window.parent.location&&window.localStorage){if(window.localStorage.getItem(RLT_KEY)===token){window.localStorage.removeItem(RLT_KEY);}}}catch(e){console.info("localstorage access for invalidate denied - probably blocked third-party access",window.location.href);} var iframes=document.querySelectorAll("iframe");for(var i=0;i