/* OK ITHAKI V249526R10F9 — CLASSIC ENTRY / NAMES CENTER / SAFE PROFILE BACKUP / LEXICON / COMMUNITIES */
(function(){
'use strict';
if(window.__ITHAKI_V249526R10F9_OWNER__)return;
window.__ITHAKI_V249526R10F9_OWNER__={version:'V249526R10F9',classicEntry:true,namesCenter:true,safeProfileBackup:true,lexiconLegacy:true,communityHealth:true,shareSingleton:true,at:Date.now()};
window.__ITHAKI_R10F9_CLASSIC_ENTRY_OWNER__=true;
window.CLASSIC_NAME_GUEST_LANGUAGE_ENTRY_R10F9=true;
window.PLUS_NAMES_CENTER_R10F9=false;
window.PROFILE_TERMS_PUBLISH_GATE_R10F9=true;
window.AUTO_PRIVATE_PROFILE_BACKUP_R10F9=true;
window.NOTIFICATION_HEADER_AVATAR_REMOVED_R10F9=true;
window.LEXICON_LEGACY_UNKNOWN_BENEFACTORS_R10F9=true;
window.COMMUNITY_LOADING_SHARING_HEALTH_R10F9=true;
window.R10F9_LAST_FRONTEND_OWNER=true;
const I=()=>window.ITH=window.ITH||{},S=()=>window.state||I().state||{},$=id=>document.getElementById(id),esc=s=>String(s??'').replace(/[&<>"']/g,c=>({'&':'&amp;','<':'&lt;','>':'&gt;','"':'&quot;',"'":'&#39;'}[c]));
const LANGS=[['el','Ελληνικά','🇬🇷'],['en','English','🇬🇧']];
const ENTRY='ith_r10f9_classic_entry_done',GUEST='ith_r10f9_guest',LANG='ith_global_language_r10f7';
function lang(){return String(localStorage.getItem(LANG)||localStorage.getItem('ith_ui_lang')||'el').split('-')[0]}
function tr(el,en){return lang()==='el'?el:en}
function toast(m,ms=5200){try{if(typeof I().toast==='function')return I().toast(m,ms)}catch(_e){}const e=$('toast');if(e){e.textContent=m;e.classList.add('show');setTimeout(()=>e.classList.remove('show'),ms)}}
function options(sel){return LANGS.map(([c,n,f])=>`<option value="${c}"${c===sel?' selected':''}>${f} ${esc(n)}</option>`).join('')}
function isGuest(){return localStorage.getItem(GUEST)==='1'||/^(Επισκέπτης|Visitor|Guest)$/i.test(String(localStorage.getItem('ith_name')||''))}
function fullReady(){const n=String(localStorage.getItem('ith_name')||S().name||'').trim();return !!n&&!isGuest()&&localStorage.getItem('ith_age16')==='1'&&localStorage.getItem('ith_policy_ok')==='1'}
function setLanguage(c){try{localStorage.setItem(LANG,c);localStorage.setItem('ith_global_language_selected_r10f7','1');localStorage.setItem('ith_ui_lang',c);localStorage.setItem('ith_ui_lang_v249141',c);localStorage.setItem('ith_target_lang',c)}catch(_e){}try{if(typeof I().setUiLang==='function')I().setUiLang(c);else if(typeof window.setUiLang==='function')window.setUiLang(c)}catch(_e){}}
function close(id){const e=$(id);if(e)e.remove()}
function openClassicEntry(){close('ithR10F9Entry');close('ith537LanguageModal');close('ith537FullProfileModal');const e=document.createElement('section');e.id='ithR10F9Entry';e.className='ithR10F9Overlay';const current=lang();e.innerHTML=`<div class="ithR10F9Card entry"><div class="ithR10F9Brand">⛵<div><h1>OK ITHAKI</h1><p>${tr('Ένα όνομα, μία γλώσσα και ξεκινάς.','One name, one language, and you are ready.')}</p></div></div><label><b>${tr('Όνομα ή ψευδώνυμο','Name or nickname')}</b><input id="ithR10F9EntryName" maxlength="40" autocomplete="nickname" placeholder="${tr('Γράψε το όνομα που θα εμφανίζεται','Enter the name that will be shown')}"></label><label><b>${tr('Γλώσσα εφαρμογής','App language')}</b><select id="ithR10F9EntryLang">${options(current)}</select></label><div class="ithR10F9Notice"><b>ℹ️ ${tr('Πλήρης ενημέρωση λογαριασμού','Complete account information')}</b><span>${tr('Μπορείς να περιηγηθείς ως επισκέπτης. Για δημοσιεύσεις θα χρειαστεί να ολοκληρώσεις το Προφίλ, να επιβεβαιώσεις ηλικία 16+ και να αποδεχτείς τους όρους.','You may browse as a guest. To publish, complete your Profile, confirm age 16+, and accept the terms.')}</span></div><div class="ithR10F9Actions"><button class="primary" data-enter-name>✓ ${tr('Συνέχεια με όνομα','Continue with name')}</button><button data-enter-guest>👁 ${tr('Επισκέπτης','Guest')}</button></div></div>`;document.body.appendChild(e);e.querySelector('#ithR10F9EntryLang').onchange=x=>setLanguage(x.target.value);e.querySelector('[data-enter-name]').onclick=()=>finishEntry(false);e.querySelector('[data-enter-guest]').onclick=()=>finishEntry(true);e.querySelector('input').addEventListener('keydown',x=>{if(x.key==='Enter')finishEntry(false)});setTimeout(()=>e.querySelector('input')?.focus(),100);return false}
function finishEntry(guest){const e=$('ithR10F9Entry');if(!e)return;const code=e.querySelector('select').value;setLanguage(code);let name=String(e.querySelector('input').value||'').trim();if(guest){name=code==='el'?'Επισκέπτης':'Visitor';localStorage.setItem(GUEST,'1')}else{if(name.length<2){toast(tr('Γράψε όνομα τουλάχιστον 2 χαρακτήρων.','Enter a name with at least 2 characters.'));return}localStorage.removeItem(GUEST)}try{localStorage.setItem('ith_name',name);localStorage.setItem(ENTRY,'1');localStorage.setItem('ith_profile_name_pending_sync','1');const s=S();s.name=name;s.nickname=name}catch(_e){}close('ithR10F9Entry');toast(guest?tr('Συνέχισες ως επισκέπτης.','You continued as guest.'):tr('Το όνομα αποθηκεύτηκε σε αυτή τη συσκευή.','The name was saved on this device.'));decorateHome();return false}
function backupPayload(){const allowed=['ith_device','ith_device_id','ith_room','ith_name','ith_age16','ith_policy_ok','ith_registered_member_v249154','ith_profile_name_locked_v249164','ith_global_language_r10f7','ith_ui_lang','ith_ui_lang_v249141','ith_profile_country_r10f7','ith_profile_birth_year_r10f7','ith_profile_interests_r10f7','ith_profile_bio_r10f7','ith_auto_translate_content_r10f8'];const data={};for(const k of allowed){const v=localStorage.getItem(k);if(v!==null)data[k]=v}return{format:'OK_ITHAKI_PRIVATE_PROFILE_BACKUP',version:'V249526R10F9',created_at:new Date().toISOString(),warning:'PRIVATE FILE - keep it safely. OK ITHAKI has no email or phone recovery.',profile:data}}
function base64Utf8(s){return btoa(unescape(encodeURIComponent(s)))}
function safeName(){return String(localStorage.getItem('ith_name')||'profile').replace(/[^\p{L}\p{N}_.-]+/gu,'_').slice(0,50)||'profile'}
async function exportAccount(auto=false){const text=JSON.stringify(backupPayload(),null,2),name=`OK_ITHAKI_PRIVATE_${safeName()}_${new Date().toISOString().slice(0,10)}.json`;let path='';try{const b=window.OKITHAKI_ANDROID||window.AndroidBridge;if(b&&typeof b.setProfileFolder==='function')b.setProfileFolder(localStorage.getItem('ith_name')||'Profile');if(b&&typeof b.saveBase64ToProfile==='function')path=String(b.saveBase64ToProfile('account',name,'application/json',base64Utf8(text))||'')}catch(_e){}if(!path||/^error:/i.test(path)){const blob=new Blob([text],{type:'application/json'}),u=URL.createObjectURL(blob),a=document.createElement('a');a.href=u;a.download=name;document.body.appendChild(a);a.click();a.remove();setTimeout(()=>URL.revokeObjectURL(u),1500);path=tr('Φάκελος Λήψεις του browser','Browser Downloads folder')}localStorage.setItem('ith_r10f9_last_backup_path',path);if(!auto)toast(tr('Το ιδιωτικό αντίγραφο αποθηκεύτηκε: ','Private backup saved: ')+path,8000);return path}
function showBackupCopyWarningR10F16(path){close('ithR10F16BackupWarning');const e=document.createElement('section');e.id='ithR10F16BackupWarning';e.className='ithR10F9Overlay';e.innerHTML=`<div class="ithR10F9Card"><header><div><h2>🔐 ${tr('Απαραίτητη ενέργεια ασφαλείας','Required security action')}</h2><p>${tr('Η αποθήκευση του μέλους ολοκληρώθηκε.','The member profile has been saved.')}</p></div></header><div class="ithR10F9Security"><b>${tr('Αντέγραψε τώρα το ιδιωτικό αρχείο λογαριασμού','Copy the private account file now')}</b><p>${tr('Φύλαξε ένα δεύτερο αντίγραφο σε ασφαλές USB/στικάκι ή σε άλλον υπολογιστή. Η OK ITHAKI δεν αποθηκεύει email, τηλέφωνο ή στοιχεία ανάκτησης στον server. Αν χαθούν η συσκευή και το ιδιωτικό αρχείο, δεν είναι δυνατή η ανάκτηση του λογαριασμού.','Keep a second copy on a secure USB drive or another computer. OK ITHAKI does not store an email address, phone number, or recovery details on the server. If both the device and private file are lost, the account cannot be recovered.')}</p></div><div class="ithR10F9Declared"><span>${tr('Το αρχείο αποθηκεύτηκε σε','The file was saved in')}</span><b style="font-size:14px;overflow-wrap:anywhere">${esc(path||tr('Φάκελος Λήψεις','Downloads folder'))}</b></div><div class="ithR10F9Actions wrap"><button data-copy-again>⬇ ${tr('Αποθήκευση νέου αντιγράφου','Save another copy')}</button><button class="primary" data-understood>✓ ${tr('Το κατανόησα','I understand')}</button></div></div>`;document.body.appendChild(e);e.querySelector('[data-copy-again]').onclick=()=>exportAccount(false);e.querySelector('[data-understood]').onclick=()=>close('ithR10F16BackupWarning');return false}
function importAccount(file){const r=new FileReader();r.onload=()=>{try{const d=JSON.parse(String(r.result||''));if(d.format!=='OK_ITHAKI_PRIVATE_PROFILE_BACKUP'||!d.profile)throw new Error('Invalid');for(const [k,v] of Object.entries(d.profile)){if(/^ith_/.test(k)&&!/password|token|secret|fcm/i.test(k))localStorage.setItem(k,String(v))}toast(tr('Το προφίλ επαναφέρθηκε. Η εφαρμογή θα ανανεωθεί.','Profile restored. The app will reload.'),6000);setTimeout(()=>location.reload(),900)}catch(_e){toast(tr('Το αρχείο δεν είναι έγκυρο αντίγραφο OK ITHAKI.','This is not a valid OK ITHAKI backup.'))}};r.readAsText(file)}
function openFullProfile(required=false){close('ithR10F9Profile');const name=String(localStorage.getItem('ith_name')||S().name||'').trim(),e=document.createElement('section');e.id='ithR10F9Profile';e.className='ithR10F9Overlay';e.innerHTML=`<div class="ithR10F9Card profile"><header><div><h2>👤 ${tr('Πλήρες προφίλ','Full profile')}</h2><p>${tr('Ολοκλήρωσε τον λογαριασμό σου για να μπορείς να δημοσιεύεις.','Complete your account to publish.')}</p></div>${required?'':`<button data-close-profile>×</button>`}</header><div class="ithR10F9Declared"><span>${tr('Δηλωμένο όνομα','Declared name')}</span><b>${esc(name||tr('Δεν έχει δηλωθεί','Not declared'))}</b>${isGuest()?`<em>${tr('Επισκέπτης — απαιτείται κανονικό όνομα','Guest — a regular name is required')}</em>`:''}</div><div class="ithR10F9Grid"><label><span>${tr('Όνομα','Name')}</span><input id="ithR10F9Name" value="${esc(isGuest()?'':name)}" maxlength="40"></label><label><span>${tr('Γλώσσα εφαρμογής','App language')}</span><select id="ithR10F9Lang">${options(lang())}</select></label><label><span>${tr('Χώρα','Country')}</span><input id="ithR10F9Country" value="${esc(localStorage.getItem('ith_profile_country_r10f7')||'')}"></label><label><span>${tr('Έτος γέννησης (προαιρετικό)','Birth year (optional)')}</span><input id="ithR10F9Birth" type="number" min="1900" max="${new Date().getFullYear()-16}" value="${esc(localStorage.getItem('ith_profile_birth_year_r10f7')||'')}"></label><label class="wide"><span>${tr('Ενδιαφέροντα','Interests')}</span><input id="ithR10F9Interests" value="${esc(localStorage.getItem('ith_profile_interests_r10f7')||'')}"></label><label class="wide"><span>${tr('Λίγα λόγια για εσένα','A few words about you')}</span><textarea id="ithR10F9Bio">${esc(localStorage.getItem('ith_profile_bio_r10f7')||'')}</textarea></label></div><label class="ithR10F9Check"><input id="ithR10F9Age" type="checkbox" ${localStorage.getItem('ith_age16')==='1'?'checked':''}><span>${tr('Επιβεβαιώνω ότι είμαι 16 ετών ή μεγαλύτερος/η.','I confirm that I am 16 years old or older.')}</span></label><label class="ithR10F9Check"><input id="ithR10F9Terms" type="checkbox" ${localStorage.getItem('ith_policy_ok')==='1'?'checked':''}><span>${tr('Αποδέχομαι τους όρους χρήσης και την πολιτική απορρήτου.','I accept the terms and privacy policy.')}</span></label><div class="ithR10F9Security"><b>🔐 ${tr('Προσοχή — ιδιωτική ανάκτηση λογαριασμού','Important — private account recovery')}</b><p>${tr('Η ΙΘΑΚΗ δεν ζητά email ή τηλέφωνο και ο server δεν έχει στοιχεία για ανάκληση λογαριασμού. Μετά την αποθήκευση δημιουργείται αυτόματα ιδιωτικό αρχείο. Κράτησέ το στον υπολογιστή ή σε ασφαλές USB/στικάκι. Μην το στείλεις σε άλλους.','ITHAKI does not request email or phone, so the server cannot recover your account. Saving creates a private backup automatically. Keep it on your computer or a secure USB drive. Do not share it.')}</p></div><div class="ithR10F9Actions wrap"><button data-terms>⚖️ ${tr('Όροι','Terms')}</button><button data-import>↥ ${tr('Επαναφορά','Restore')}</button><button data-export>⬇ ${tr('Αποθήκευση λογαριασμού','Save account')}</button><button class="primary" data-save-profile>💾 ${tr('Αποθήκευση προφίλ','Save profile')}</button></div><input id="ithR10F9Import" type="file" accept="application/json" hidden><div id="ithR10F9ProfileStatus"></div></div>`;document.body.appendChild(e);e.querySelector('[data-close-profile]')?.addEventListener('click',()=>close('ithR10F9Profile'));e.querySelector('#ithR10F9Lang').onchange=x=>setLanguage(x.target.value);e.querySelector('[data-terms]').onclick=()=>{if(typeof I().openLegalPolicy==='function')I().openLegalPolicy();else toast(tr('Οι όροι είναι διαθέσιμοι στην καρτέλα Προφίλ.','Terms are available in Profile.'))};e.querySelector('[data-export]').onclick=()=>exportAccount(false);e.querySelector('[data-import]').onclick=()=>e.querySelector('#ithR10F9Import').click();e.querySelector('#ithR10F9Import').onchange=x=>x.target.files[0]&&importAccount(x.target.files[0]);e.querySelector('[data-save-profile]').onclick=saveProfile;return false}
async function saveProfile(){const e=$('ithR10F9Profile'),status=e?.querySelector('#ithR10F9ProfileStatus');if(!e)return;const name=e.querySelector('#ithR10F9Name').value.trim(),age=e.querySelector('#ithR10F9Age').checked,terms=e.querySelector('#ithR10F9Terms').checked,birth=e.querySelector('#ithR10F9Birth').value.trim();if(name.length<2){status.textContent=tr('Χρειάζεται κανονικό όνομα.','A regular name is required.');status.className='error';return}if(birth&&new Date().getFullYear()-Number(birth)<16){status.textContent=tr('Το έτος γέννησης δείχνει ηλικία κάτω των 16.','Birth year indicates age below 16.');status.className='error';return}if(!age||!terms){status.textContent=tr('Χρειάζεται επιβεβαίωση 16+ και αποδοχή όρων.','Age 16+ and terms acceptance are required.');status.className='error';return}setLanguage(e.querySelector('#ithR10F9Lang').value);localStorage.setItem('ith_name',name);localStorage.removeItem(GUEST);localStorage.setItem('ith_age16','1');localStorage.setItem('ith_policy_ok','1');localStorage.setItem('ith_registered_member_v249154','1');localStorage.setItem('ith_profile_name_locked_v249164',name);localStorage.setItem('ith_profile_country_r10f7',e.querySelector('#ithR10F9Country').value.trim());localStorage.setItem('ith_profile_birth_year_r10f7',birth);localStorage.setItem('ith_profile_interests_r10f7',e.querySelector('#ithR10F9Interests').value.trim());localStorage.setItem('ith_profile_bio_r10f7',e.querySelector('#ithR10F9Bio').value.trim());localStorage.setItem('ith_profile_name_pending_sync','1');const s=S();s.name=name;s.nickname=name;s.age16=true;s.policyOk=true;status.className='working';status.textContent=tr('Αποθήκευση προφίλ και δημιουργία ιδιωτικού αντιγράφου…','Saving profile and creating private backup…');try{if(typeof I().syncProfileNow==='function')await I().syncProfileNow(true)}catch(_e){}const path=await exportAccount(true);status.className='ok';status.innerHTML=`<b>✅ ${tr('Το προφίλ αποθηκεύτηκε.','Profile saved.')}</b><br>${tr('Ιδιωτικό αντίγραφο: ','Private backup: ')}<code>${esc(path)}</code>`;decorateHome();showBackupCopyWarningR10F16(path);return false}
function requireCompleteProfile(action){if(fullReady())return true;openPublishGate(action);return false}
function openPublishGate(){close('ithR10F9PublishGate');const e=document.createElement('section');e.id='ithR10F9PublishGate';e.className='ithR10F9Overlay';e.innerHTML=`<div class="ithR10F9Card gate"><header><div><h2>🔐 ${tr('Ολοκλήρωση προφίλ','Complete profile')}</h2><p>${tr('Η δημοσίευση ενεργοποιείται μετά την ασφαλή ολοκλήρωση του λογαριασμού.','Publishing is enabled after secure account completion.')}</p></div><button data-close>×</button></header><div class="ithR10F9Notice"><b>${tr('Για να δημοσιεύσεις','To publish')}</b><span>${tr('Πήγαινε στο Προφίλ, δήλωσε κανονικό όνομα, επιβεβαίωσε ηλικία 16+ και αποδέξου τους όρους. Με την αποθήκευση δημιουργείται αυτόματα ιδιωτικό αρχείο λογαριασμού.','Open Profile, enter a regular name, confirm age 16+, and accept the terms. Saving automatically creates a private account backup.')}</span></div><button class="primary" data-open-profile>👤 ${tr('Άνοιγμα πλήρους προφίλ','Open full profile')}</button></div>`;document.body.appendChild(e);e.querySelector('[data-close]').onclick=()=>close('ithR10F9PublishGate');e.querySelector('[data-open-profile]').onclick=()=>{close('ithR10F9PublishGate');openFullProfile(true)};return false}
function openNamesCenter(){try{if(typeof I().page==='function')I().page('dm')}catch(_e){}[40,180,500].forEach(ms=>setTimeout(()=>{try{const f=I().showDMFriendListV249235||I().openCommunicationContactsV249230||window.showDMFriendListV249235;if(typeof f==='function')f.call(I())}catch(_e){}},ms));return false}
function decorateHome(){const a=$('ith537HomeProfileCard'),b=$('ithR10F9HomeProfile');if(a)a.remove();if(b)b.remove();return false}
function cleanNotificationHeader(){['ith525NotificationCenter','ith526NotificationCenter'].forEach(id=>{const root=$(id);if(!root)return;const head=root.querySelector('header,.notifyHeader,.ith525Head,.ith526Head');if(!head)return;head.querySelectorAll('img,.avatar,[data-profile],[data-open-profile],button').forEach(x=>{const t=String(x.textContent||x.getAttribute('aria-label')||'');if(x.matches('img,.avatar,[data-profile],[data-open-profile]')||/avatar|profile|προφίλ/i.test(t))x.remove()})})}
function dedupeCommunities(){const roots=['spacesList','spacesGrid','ith517SpacesList','spacesPage'];for(const id of roots){const root=$(id);if(!root)continue;const seen=new Set();root.querySelectorAll('[data-space-id],[data-subroom-id],.spaceCard,.roomCard,.communityCard').forEach(card=>{const key=String(card.dataset.spaceId||card.dataset.subroomId||card.getAttribute('data-id')||card.querySelector('h3,h4,b,strong')?.textContent||card.textContent||'').trim().toLowerCase().replace(/\s+/g,' ');if(!key)return;if(seen.has(key))card.remove();else seen.add(key)})}}
function communityHealth(){if(window.__ITHAKI_R10F13_SINGLE_COMMUNITY_RUNTIME__)return false;const page=$('spacesPage');if(!page||!page.classList.contains('active'))return;dedupeCommunities();if(window.__ITHAKI_COMMUNITY_R10F12_BOOT__||window.__ITHAKI_V249526R10F12_OWNER__||window.__ITHAKI_V249526R10F11_OWNER__)return;const text=String(page.textContent||'');if(/φόρτωση κοινοτήτων|loading communities/i.test(text)&&!page.dataset.r10f9Retry){page.dataset.r10f9Retry='1';setTimeout(()=>{try{const f=I().loadSpacesV249516||I().activateSpacesPageV249516;if(typeof f==='function')f.call(I(),true)}catch(_e){}setTimeout(()=>{delete page.dataset.r10f9Retry;dedupeCommunities()},2500)},1800)}}
function shareSingleton(){const ids=['ith526R3ShareChoice','ith526R2ShareChoice','ith524ShareChoice','ith523ShareChoice','ith509ShareChoice','ithShareChoice'];const active=ids.map(id=>$(id)).filter(Boolean);if(active.length<2)return;const keep=$('ith526R3ShareChoice')||active[active.length-1];active.forEach(e=>{if(e!==keep)e.remove()})}
function scan(){decorateHome();cleanNotificationHeader();communityHealth();shareSingleton();document.querySelectorAll('#ith537FullProfileModal').forEach(e=>e.remove());const ext=$('ith537ProfileExtension');if(ext){ext.innerHTML=`<div><b>👤 ${esc(localStorage.getItem('ith_name')||tr('Επισκέπτης','Visitor'))}</b><small>${fullReady()?tr('Πλήρες προφίλ ενεργό','Full profile active'):tr('Απαιτείται ολοκλήρωση για δημοσιεύσεις','Completion required to publish')}</small></div><button type="button" data-r10f9-language>🌍 ${tr('Γλώσσα','Language')}</button><button type="button" class="gold" data-r10f9-profile>👤 ${tr('Πλήρες προφίλ','Full profile')}</button>`;ext.querySelector('[data-r10f9-language]').onclick=()=>I().openGlobalLanguageR10F7?.();ext.querySelector('[data-r10f9-profile]').onclick=()=>openFullProfile(false)}}
function capture(e){const profile=e.target.closest('#ith537ProfileExtension [data-open-profile],#ith537HomeProfileCard button,[data-r10f9-profile]');if(profile){e.preventDefault();e.stopImmediatePropagation();openFullProfile(false);return false}const p=e.target.closest('[data-page="create"],#nav button[data-page="plus"],#plusSheet [data-r9plus],#createPage button,#previewModal button');if(!p)return;let a=p.getAttribute('data-r9plus')||p.getAttribute('data-page')||'';if(!a&&p.closest('#createPage,#previewModal')&&/send|publish|δημοσί|αποστολ/i.test(String(p.textContent||p.getAttribute('aria-label')||'')))a='publish';if(['text','poll','camera_photo','camera_video','gallery_photo','gallery_video','audio','file','create','publish'].includes(a)&&!fullReady()){e.preventDefault();e.stopImmediatePropagation();openPublishGate();return false}}
function install(){style();I().openNamesCenterR10F9=openNamesCenter;I().requireCompleteProfileR10F9=requireCompleteProfile;I().openClassicEntryR10F9=openClassicEntry;I().openFullProfileR10F9=openFullProfile;I().exportPrivateProfileR10F9=exportAccount;I().openFullProfileR10F7=()=>openFullProfile(false);document.addEventListener('click',capture,true);const mo=new MutationObserver(()=>{clearTimeout(mo._t);mo._t=setTimeout(scan,80)});mo.observe(document.documentElement,{subtree:true,childList:true});setInterval(scan,2400);scan();close('ithR10F9Entry');try{localStorage.setItem(ENTRY,'1')}catch(_e){}document.documentElement.setAttribute('data-ithaki-r10f9','classic-entry-names-profile-lexicon-communities')}
function style(){if($('ithR10F9Style'))return;const s=document.createElement('style');s.id='ithR10F9Style';s.textContent=`.ithR10F9Overlay{position:fixed;inset:0;z-index:2147483600;display:grid;place-items:center;padding:12px;background:rgba(2,9,17,.84);backdrop-filter:blur(12px);color:var(--text,#fff)}.ithR10F9Card{width:min(760px,96vw);max-height:94dvh;overflow:auto;padding:18px;border-radius:26px;background:linear-gradient(145deg,color-mix(in srgb,var(--panel,#0b2030) 95%,#fff 5%),var(--bg,#06131e));border:1px solid color-mix(in srgb,var(--accent,#55d7ff) 38%,var(--line,#29485a));box-shadow:0 28px 90px rgba(0,0,0,.56)}.ithR10F9Brand,.ithR10F9Card header{display:flex;align-items:flex-start;gap:12px}.ithR10F9Brand>div,.ithR10F9Card header>div{flex:1}.ithR10F9Brand>span,.ithR10F9Brand{font-size:34px}.ithR10F9Card h1,.ithR10F9Card h2{margin:0;color:var(--gold,#f5c451)}.ithR10F9Card p{color:var(--muted,#a9bfcc)}.ithR10F9Card label{display:grid;gap:6px;margin:13px 0}.ithR10F9Card input,.ithR10F9Card select,.ithR10F9Card textarea{width:100%;padding:12px;border-radius:15px;border:1px solid var(--line,#29485a);background:color-mix(in srgb,var(--panel,#0b2030) 90%,#000);color:var(--text,#fff)}.ithR10F9Actions{display:flex;justify-content:flex-end;gap:9px;margin-top:15px}.ithR10F9Actions.wrap{flex-wrap:wrap}.ithR10F9Actions button,.ithR10F9Card>button{min-height:44px}.ithR10F9Actions .primary,.ithR10F9Card .primary{background:color-mix(in srgb,var(--green,#36f0a0) 22%,var(--panel,#0b2030));border-color:var(--green,#36f0a0);font-weight:950}.ithR10F9Notice,.ithR10F9Security,.ithR10F9Declared{display:grid;gap:6px;margin:14px 0;padding:13px;border-radius:18px;background:color-mix(in srgb,var(--accent,#55d7ff) 9%,var(--panel,#0b2030));border:1px solid var(--line,#29485a)}.ithR10F9Security{border-color:#ffb347}.ithR10F9Security b{color:#ffd18a}.ithR10F9Declared b{font-size:20px;color:var(--gold,#f5c451)}.ithR10F9Declared em{color:#ffb347}.ithR10F9Grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.ithR10F9Grid label{margin:0}.ithR10F9Grid .wide{grid-column:1/-1}.ithR10F9Check{display:flex!important;grid-template-columns:auto 1fr!important;align-items:flex-start;gap:10px}.ithR10F9Check input{width:22px;height:22px}.ithR10F9HomeProfile{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:13px 15px;margin:10px 0;border-radius:19px;background:linear-gradient(120deg,color-mix(in srgb,var(--accent,#55d7ff) 12%,var(--panel,#0b2030)),color-mix(in srgb,var(--gold,#f5c451) 8%,var(--panel,#0b2030)));border:1px solid var(--line,#29485a)}.ithR10F9HomeProfile.pending{border-color:#ffb347}.ithR10F9HomeProfile div{display:grid}.ithR10F9HomeProfile small{color:var(--muted,#a9bfcc)}#ithR10F9ProfileStatus{margin-top:10px;font-weight:800;overflow-wrap:anywhere}#ithR10F9ProfileStatus.error{color:#ff9b9b}#ithR10F9ProfileStatus.ok{color:var(--green,#36f0a0)}#ithR10F9ProfileStatus code{display:block;margin-top:6px;font-size:11px;color:var(--muted,#a9bfcc)}@media(max-width:620px){.ithR10F9Grid{grid-template-columns:1fr}.ithR10F9Grid .wide{grid-column:auto}.ithR10F9Actions{flex-direction:column}.ithR10F9Actions button{width:100%}.ithR10F9HomeProfile{align-items:stretch;flex-direction:column}.ithR10F9HomeProfile button{width:100%}}`;document.head.appendChild(s)}
if(document.readyState==='loading')document.addEventListener('DOMContentLoaded',install,{once:true});else install();
})();
