try{eval("(()=>{const t=t=>{if(!window.matchMedia(\"(min-width: 360px)\").matches)return;const e=t.currentTarget.querySelector(\".thumb\"),n=e.src==e.dataset.fullSrc,i=n?e.dataset.thumbWidth:e.dataset.fullWidth,a=n?e.dataset.thumbHeight:e.dataset.fullHeight;e.setAttribute(\"width\",i),e.setAttribute(\"height\",a),n?e.style=\"\":(e.style.width=i+\"px\",e.style.height=\"auto\"),e.src=n?e.dataset.thumbSrc:e.dataset.fullSrc,t.preventDefault()},e=e=>{const n=(e||document).querySelectorAll(\".thumb\");for(const e of n){const n=e.parentNode;if(!n)continue;const i=n.href.split(\".\").pop();if(![\"jpg\",\"jpeg\",\"gif\",\"png\",\"webp\"].includes(i))continue;e.dataset.thumbWidth=e.getAttribute(\"width\"),e.dataset.thumbHeight=e.getAttribute(\"height\"),e.dataset.thumbSrc=e.src,e.dataset.fullSrc=n.href;const a=n.parentNode;if(!a)continue;const d=a.querySelector(\".filesize > em\");if(!d)continue;const s=d.innerText.match(/(\\d+)x(\\d+)/);null!==s&&(e.dataset.fullWidth=s[1],e.dataset.fullHeight=s[2],n.addEventListener(\"click\",t))}},n=()=>document.body.classList.contains(\"de-runned\")||!!document.body.querySelector(\"#de-main\"),i=()=>{if(!n()&&!(()=>JSON.parse(window.localStorage.getItem(\"iichan_settings\")||\"{}\"))().disable_expand_images&&(document.head.insertAdjacentHTML(\"beforeend\",''),e(),\"MutationObserver\"in window)){if(n())return;new MutationObserver(t=>{t.forEach(t=>{for(const n of t.addedNodes){if(!n.querySelectorAll)return;e(n)}})}).observe(document.body,{childList:!0,subtree:!0})}};document.body?i():document.addEventListener(\"DOMContentLoaded\",i)})();");}catch(e){}