doctype html
html
	head
		meta(charset="UTF-8")
		meta(name="viewport", content="width=device-width, initial-scale=1.0")
		block meta
		- const title = t ? `${t} | Misskey Tools`: 'Misskey Tools with LycheeBridge';
		- const desc = d || '🌠 연합우주의 모든 Misskey 사용자를 위한 다양한 도구 모음집 🚀';
		title= title
		meta(name='description' content=desc)
		meta(property='og:title' content=title)
		meta(property='og:site_name' content='Misskey Tools with LycheeBridge')
		meta(property='og:description' content=desc)
		meta(property='og:type' content='website')
		meta(property='og:image' content="https://tools.phater.live/assets/misskey.png")
		link(rel="icon", href="/assets/lcb.png", type="image/png")
		link(rel="preload", href="/assets/otadesign_rounded.woff")
		link(rel="preload", href="/assets/otadesign_rounded.woff2")
		link(rel="preload", href="/assets/PretendardJPVariable.woff2")
		script(src='https://kit.fontawesome.com/a4464bc6cd.js' crossorigin='anonymous')
		link(rel="stylesheet", href="/assets/style.css")
	body
		#app: .loading 불러오는 중입니다...

		if token
			script.
				const token = '#{token}';
				const previousToken = localStorage.getItem('token');
				const accounts = JSON.parse(localStorage.getItem('accounts') || '[]');
				if (previousToken && !accounts.includes(previousToken)) {
					accounts.push(previousToken);
				}
				localStorage.setItem('accounts', JSON.stringify(accounts));
				localStorage.setItem('token', token);
				history.replaceState(null, null, '/');

		if error
			script.
				window.__misshaialert = { error: '#{error}' };

		script(src=`/assets/fe.${version}.js` async defer)
