/* OK ITHAKI V249512 - PROFILE AVATAR ONLY / SCHEDULE VISIBLE PUBLISH / SINGLE FRONTEND OWNER */
(function(){'use strict';
if(window.__ITHAKI_V249512_SINGLE_FRONTEND_OWNER__)return;
window.__ITHAKI_V249512_SINGLE_FRONTEND_OWNER__={version:'V249512',singleOwner:true,old249508CanonicalDisabled:true,profileAvatarOnly:true,scheduleVisiblePublish:true,at:Date.now()};
function canonical511(){
  try{
    const u=new URL(location.href);
    if(u.searchParams.get('v')!=='249518'){
      u.searchParams.set('v',(window.ITHAKI_ACTIVE_VERSION||'249526r10f37f1f2'));
      history.replaceState(null,'',u.pathname+'?'+u.searchParams.toString()+u.hash);
    }
  }catch(e){}
}
function clearOldFrontendState(){
  try{
    ['ithaki_feed_cache_v249508','ith_feed_cache_v249508','ith_feed_last_html','ith_last_feed_etag'].forEach(k=>localStorage.removeItem(k));
    localStorage.setItem('ith_frontend_build','V249512-single-frontend-owner');
  }catch(e){}
  try{document.documentElement.removeAttribute('data-ithaki-v249508')}catch(e){}
  try{document.documentElement.setAttribute('data-ithaki-v249512','profile-avatar-schedule-visible-publish')}catch(e){}
}
function install(){canonical511();clearOldFrontendState()}
if(document.readyState==='loading')document.addEventListener('DOMContentLoaded',install,{once:true});else install();
window.addEventListener('pageshow',install);window.addEventListener('popstate',install);
setTimeout(install,300);setTimeout(install,1200);
})();
