Compare commits
13 Commits
9c46cdf9cf
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| bdd1cae5ae | |||
|
|
3af86d80c7 | ||
|
8093f563f9
|
|||
|
0db96869e1
|
|||
|
96d59c763d
|
|||
|
b70d768eee
|
|||
|
7fcbf1398a
|
|||
|
17d6ee234d
|
|||
|
ac4eaa83e0
|
|||
|
475e88bffb
|
|||
|
9edda5808f
|
|||
|
30cd1c2815
|
|||
|
ee95be1bb3
|
@@ -8,6 +8,7 @@ beszel.use("*", beszelAuth())
|
||||
|
||||
interface BeszelSystemInfo {
|
||||
name: string
|
||||
status: "up" | "down"
|
||||
info: {
|
||||
cpu: number
|
||||
ram: number
|
||||
@@ -17,6 +18,7 @@ interface BeszelSystemInfo {
|
||||
|
||||
interface BeszelApiSystem {
|
||||
name: string
|
||||
status: "up" | "down"
|
||||
info: {
|
||||
cpu: number
|
||||
mp: number // memory percentage
|
||||
@@ -30,6 +32,7 @@ beszel.get("/systems", async (c) => {
|
||||
const token = c.get("beszelToken")
|
||||
|
||||
if (!beszelHost) {
|
||||
console.error("[Beszel API] BESZEL_HOST environment variable not set")
|
||||
return c.json({ error: "BESZEL_HOST environment variable not set" }, 500)
|
||||
}
|
||||
|
||||
@@ -40,10 +43,17 @@ beszel.get("/systems", async (c) => {
|
||||
})
|
||||
|
||||
if (!response.ok) {
|
||||
const errorText = await response.text()
|
||||
console.error(
|
||||
`[Beszel API] Failed to fetch systems: ${response.status} ${response.statusText}`,
|
||||
errorText ? `- ${errorText}` : "",
|
||||
)
|
||||
|
||||
return new Response(
|
||||
JSON.stringify({
|
||||
error: "Failed to fetch Beszel data",
|
||||
status: response.status,
|
||||
statusText: response.statusText,
|
||||
}),
|
||||
{
|
||||
status: response.status,
|
||||
@@ -56,6 +66,7 @@ beszel.get("/systems", async (c) => {
|
||||
|
||||
const systems: BeszelSystemInfo[] = data.items.map((system) => ({
|
||||
name: system.name,
|
||||
status: system.status,
|
||||
info: {
|
||||
cpu: system.info.cpu,
|
||||
ram: system.info.mp,
|
||||
@@ -63,12 +74,15 @@ beszel.get("/systems", async (c) => {
|
||||
},
|
||||
}))
|
||||
|
||||
console.log(`[Beszel API] Successfully fetched ${systems.length} systems`)
|
||||
|
||||
return c.json({
|
||||
lastUpdated: new Date().toISOString(),
|
||||
systems,
|
||||
totalSystems: systems.length,
|
||||
})
|
||||
} catch (error) {
|
||||
console.error("[Beszel API] Internal server error:", error)
|
||||
return c.json({ error: "Internal server error", message: String(error) }, 500)
|
||||
}
|
||||
})
|
||||
|
||||
@@ -6,12 +6,26 @@ interface BeszelAuthResponse {
|
||||
|
||||
export function beszelAuth(): MiddlewareHandler {
|
||||
let cachedToken: string | null = null
|
||||
let tokenExpiry: number | null = null
|
||||
|
||||
// Token lifetime: 50 minutes (tokens typically expire after 1 hour, refresh before that)
|
||||
const TOKEN_LIFETIME_MS = 50 * 60 * 1000
|
||||
|
||||
const authenticate = async (): Promise<string> => {
|
||||
if (cachedToken) {
|
||||
const now = Date.now()
|
||||
|
||||
// Return cached token if it exists and hasn't expired
|
||||
if (cachedToken && tokenExpiry && now < tokenExpiry) {
|
||||
return cachedToken
|
||||
}
|
||||
|
||||
// Log re-authentication for debugging
|
||||
if (cachedToken && tokenExpiry && now >= tokenExpiry) {
|
||||
console.log("[Beszel Auth] Token expired, re-authenticating...")
|
||||
} else {
|
||||
console.log("[Beszel Auth] Initial authentication...")
|
||||
}
|
||||
|
||||
const beszelHost = process.env.BESZEL_HOST
|
||||
const beszelEmail = process.env.BESZEL_EMAIL
|
||||
const beszelPassword = process.env.BESZEL_PASSWORD
|
||||
@@ -34,11 +48,16 @@ export function beszelAuth(): MiddlewareHandler {
|
||||
})
|
||||
|
||||
if (!response.ok) {
|
||||
const errorText = await response.text()
|
||||
console.error(`[Beszel Auth] Authentication failed: ${response.status} - ${errorText}`)
|
||||
throw new Error(`Beszel authentication failed: ${response.status}`)
|
||||
}
|
||||
|
||||
const data = (await response.json()) as BeszelAuthResponse
|
||||
cachedToken = data.token
|
||||
tokenExpiry = now + TOKEN_LIFETIME_MS
|
||||
|
||||
console.log(`[Beszel Auth] Authentication successful, token valid until ${new Date(tokenExpiry).toISOString()}`)
|
||||
|
||||
return cachedToken
|
||||
}
|
||||
@@ -49,6 +68,7 @@ export function beszelAuth(): MiddlewareHandler {
|
||||
c.set("beszelToken", token)
|
||||
await next()
|
||||
} catch (error) {
|
||||
console.error("[Beszel Auth] Middleware error:", error)
|
||||
return c.json({ error: "Authentication failed", message: String(error) }, 500)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -7,6 +7,7 @@ import { useEffect, useLayoutEffect, useRef, useState } from "react"
|
||||
import { beszelSystemsQuery } from "./beszel"
|
||||
import cn from "./components/lib/cn"
|
||||
import { Tile } from "./components/tile"
|
||||
import { Kuromi } from "./kuromi"
|
||||
import {
|
||||
LightControlTile,
|
||||
type LightSceneConfig,
|
||||
@@ -16,6 +17,7 @@ import {
|
||||
stepToBrightness,
|
||||
} from "./light-control"
|
||||
import { StatusSeverity, TubeLine, formatLineName, tflDisruptionsQuery } from "./tfl"
|
||||
import { useAutoTheme } from "./use-auto-theme"
|
||||
import {
|
||||
DEFAULT_LATITUDE,
|
||||
DEFAULT_LONGITUDE,
|
||||
@@ -25,6 +27,21 @@ import {
|
||||
weatherDescriptionQuery,
|
||||
} from "./weather"
|
||||
|
||||
const kuromi = `
|
||||
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣀⣀⣀⣀⣀⢠⠋⠉⠉⠒⠲⢤⣀⣠⡀
|
||||
⠀⠀⠀⠀⠀⠀⣀⣀⣀⢀⡠⠖⠋⠉⠀⠀⠀⠀⠉⠉⠢⣄⠀⠀⠀⢀⠼⠤⠇
|
||||
⠀⠀⠀⣀⠔⠊⠁⠀⢨⠏⠀⠀⠀⣠⣶⣶⣦⠀⠀⠀⠀⠀⠱⣄⡴⠃⠀⠀⠀⠀
|
||||
⢸⣉⠿⣁⠀⠀⠀⢀⡇⠀⠀⠀⠀⢿⣽⣿⣼⡠⠤⢄⣀⠀⠀⢱⠀⠀⠀⠀⠀⠀
|
||||
⠀⠀⠀⠀⠑⢦⡀⢸⠀⠀⠀⡠⠒⠒⠚⠛⠉⠀⢠⣀⡌⠳⡀⡌⠀⠀⠀⠀⠀⠀
|
||||
⠀⠀⠀⠀⠀⠀⠉⠉⣆⠀⢰⠁⣀⣀⠀⠀⣀⠀⠈⡽⣧⢀⡷⠁⠀⠀⠀⠀⠀⠀
|
||||
⠀⠀⠀⠀⠀⡤⢄⠀⠈⠢⣸⣄⢽⣞⡂⠀⠈⠁⣀⡜⠁⣩⡷⠿⠆⠀⠀⠀⠀⠀
|
||||
⠀⠀⠀⠀⢯⣁⡸⠀⠀⠀⡬⣽⣿⡀⠙⣆⡸⠛⠠⢧⠀⡿⠯⠆⠀⠀⠀⠀⠀⠀
|
||||
⠀⠀⠀⠀⣀⡀⠀⠀⡤⠤⣵⠁⢸⣻⡤⠏⠀⠀⠀⠀⢹⠀⠀⠀⡊⠱⣀⠀⠀⠀
|
||||
⠀⠀⢀⠜⠀⢘⠀⠀⠱⠲⢜⣢⣤⣧⠀⠀⠀⠀⠀⢴⠇⠀⠀⠀⠧⠠⠜⠀⠀⠀
|
||||
⠀⠀⠘⠤⠤⠚⠀⠀⠀⠀⠀⠀⢸⠁⠁⠀⣀⠎⠀⠻⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀
|
||||
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠣⣀⣀⡴⠤⠄⠴⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀
|
||||
`
|
||||
|
||||
function App() {
|
||||
const wsProtocol = window.location.protocol === "https:" ? "wss:" : "ws:"
|
||||
const wsHost = import.meta.env.VITE_API_HOST || window.location.host
|
||||
@@ -32,6 +49,8 @@ function App() {
|
||||
|
||||
const store = useStore()
|
||||
|
||||
useAutoTheme(DEFAULT_LATITUDE, DEFAULT_LONGITUDE)
|
||||
|
||||
useEffect(() => {
|
||||
const ws = websocket.current
|
||||
|
||||
@@ -139,7 +158,9 @@ function App() {
|
||||
}}
|
||||
/>
|
||||
|
||||
<Tile className="row-start-5 col-span-2 row-span-1" />
|
||||
<Tile className="row-start-5 col-start-3 col-span-2 row-span-1 flex items-center justify-center overflow-hidden">
|
||||
<Kuromi />
|
||||
</Tile>
|
||||
</div>
|
||||
</div>
|
||||
)
|
||||
@@ -230,7 +251,11 @@ function WeatherTile() {
|
||||
const temperature = Math.round(currentWeather.temperature)
|
||||
const lowTemp = Math.round(dailyForecastData?.forecastDaily?.days[0].temperatureMin ?? 0)
|
||||
const highTemp = Math.round(dailyForecastData?.forecastDaily?.days[0].temperatureMax ?? 0)
|
||||
const percentage = lowTemp && highTemp ? (temperature - lowTemp) / (highTemp - lowTemp) : 0
|
||||
// Calculate percentage: handle case where lowTemp might be 0 (falsy) by checking for valid numbers
|
||||
const tempRange = highTemp - lowTemp
|
||||
const percentage = tempRange !== 0 && !Number.isNaN(tempRange)
|
||||
? Math.max(0, Math.min(1, (temperature - lowTemp) / tempRange))
|
||||
: 0
|
||||
const highlightIndexStart = Math.floor((1 - percentage) * 23)
|
||||
const WeatherIcon = getWeatherIcon(currentWeather.conditionCode)
|
||||
|
||||
@@ -372,7 +397,7 @@ function TFLTile({ className }: { className?: string }) {
|
||||
return (
|
||||
<Tile
|
||||
className={cn(
|
||||
"gap-x-1 pt-1 h-full col-span-2 row-span-1 grid grid-cols-[min-content_1fr] auto-rows-min overflow-y-auto",
|
||||
"pt-1 h-full col-span-2 row-span-1 grid grid-cols-[min-content_1fr] auto-rows-min overflow-y-auto",
|
||||
className,
|
||||
)}
|
||||
>
|
||||
@@ -422,7 +447,7 @@ function TFLDistruptionItem({ lineId, reason, severity }: { lineId: TubeLine; re
|
||||
lineStyleClass = "bg-purple-800"
|
||||
break
|
||||
case "northern":
|
||||
lineStyleClass = "bg-black"
|
||||
lineStyleClass = "bg-black text-neutral-200 dark:bg-neutral-200 dark:text-black"
|
||||
break
|
||||
case "piccadilly":
|
||||
lineStyleClass = "bg-blue-900"
|
||||
@@ -495,7 +520,7 @@ function TFLDistruptionItem({ lineId, reason, severity }: { lineId: TubeLine; re
|
||||
<div className="h-full flex items-center justify-center px-2 py-0.5">
|
||||
<p
|
||||
className={cn(
|
||||
"text-neutral-200 text-xl uppercase font-bold w-full text-center px-1 rounded-lg",
|
||||
"text-neutral-200 text-sm uppercase w-full text-center px-1 rounded-lg",
|
||||
lineStyleClass,
|
||||
)}
|
||||
>
|
||||
@@ -531,10 +556,16 @@ function SystemTile({
|
||||
const onCanvasRef = (elem: HTMLCanvasElement | null) => {
|
||||
if (!elem || chartRef.current) return
|
||||
|
||||
const fillGradient = elem?.getContext("2d")?.createLinearGradient(0, 0, 0, elem.height)
|
||||
fillGradient?.addColorStop(0, "#2dd4bf")
|
||||
fillGradient?.addColorStop(0.5, "rgba(45, 212, 191, 0)")
|
||||
fillGradient?.addColorStop(1, "rgba(45, 212, 191, 0)")
|
||||
const cpuFillGradient = elem?.getContext("2d")?.createLinearGradient(0, 0, 0, elem.height)
|
||||
cpuFillGradient?.addColorStop(0, "#2dd4bf")
|
||||
cpuFillGradient?.addColorStop(0.5, "rgba(45, 212, 191, 0)")
|
||||
cpuFillGradient?.addColorStop(1, "rgba(45, 212, 191, 0)")
|
||||
|
||||
const ramFillGradient = elem?.getContext("2d")?.createLinearGradient(0, 0, 0, elem.height)
|
||||
ramFillGradient?.addColorStop(0, "#a78bfa")
|
||||
ramFillGradient?.addColorStop(0.5, "rgba(167, 139, 250, 0)")
|
||||
ramFillGradient?.addColorStop(1, "rgba(167, 139, 250, 0)")
|
||||
|
||||
chartRef.current = new Chart(elem, {
|
||||
type: "line",
|
||||
data: {
|
||||
@@ -543,10 +574,17 @@ function SystemTile({
|
||||
{
|
||||
data: Array.from({ length: 20 }, (_, __) => null),
|
||||
fill: true,
|
||||
backgroundColor: fillGradient,
|
||||
backgroundColor: cpuFillGradient,
|
||||
borderColor: "#2dd4bf",
|
||||
tension: 0.1,
|
||||
},
|
||||
{
|
||||
data: Array.from({ length: 20 }, (_, __) => null),
|
||||
fill: true,
|
||||
backgroundColor: ramFillGradient,
|
||||
borderColor: "#a78bfa",
|
||||
tension: 0.1,
|
||||
},
|
||||
],
|
||||
},
|
||||
options: {
|
||||
@@ -573,19 +611,30 @@ function SystemTile({
|
||||
|
||||
useLayoutEffect(() => {
|
||||
const cpu = beszelSystemsData?.info.cpu
|
||||
if (!chartRef.current || cpu === undefined) return
|
||||
const ram = beszelSystemsData?.info.ram
|
||||
if (!chartRef.current || cpu === undefined || ram === undefined) return
|
||||
|
||||
const dataset = chartRef.current.data.datasets[0]
|
||||
const cpuDataset = chartRef.current.data.datasets[0]
|
||||
const ramDataset = chartRef.current.data.datasets[1]
|
||||
|
||||
const nextData = Array.from({ length: 20 }, (_, i) => {
|
||||
const nextCpuData = Array.from({ length: 20 }, (_, i) => {
|
||||
if (i === 19) {
|
||||
return null
|
||||
}
|
||||
return dataset.data[i + 1]
|
||||
return cpuDataset.data[i + 1]
|
||||
})
|
||||
nextData[19] = cpu
|
||||
nextCpuData[19] = cpu
|
||||
|
||||
dataset.data = nextData
|
||||
const nextRamData = Array.from({ length: 20 }, (_, i) => {
|
||||
if (i === 19) {
|
||||
return null
|
||||
}
|
||||
return ramDataset.data[i + 1]
|
||||
})
|
||||
nextRamData[19] = ram
|
||||
|
||||
cpuDataset.data = nextCpuData
|
||||
ramDataset.data = nextRamData
|
||||
chartRef.current.update()
|
||||
})
|
||||
|
||||
@@ -597,12 +646,36 @@ function SystemTile({
|
||||
)
|
||||
}
|
||||
|
||||
let systemStatusContent: React.ReactNode
|
||||
switch (beszelSystemsData.status) {
|
||||
case "up":
|
||||
systemStatusContent = (
|
||||
<div className="w-full flex-1 min-w-0 basis-0 relative mb-2">
|
||||
<canvas ref={onCanvasRef} className="min-h-0 absolute top-0 left-0 w-full h-full" />
|
||||
</div>
|
||||
)
|
||||
break
|
||||
|
||||
case "down":
|
||||
systemStatusContent = (
|
||||
<div className="w-full flex-1 flex items-center justify-center">
|
||||
<p className="font-mono text-red-500 uppercase font-bold">System offline</p>
|
||||
</div>
|
||||
)
|
||||
break
|
||||
}
|
||||
|
||||
return (
|
||||
<Tile className={cn("h-full flex flex-col justify-start items-start", className)}>
|
||||
<div className="grid grid-cols-6 px-4 pt-3 w-full">
|
||||
<div className="col-span-3 flex flex-row items-center space-x-2">
|
||||
<p className="text-2xl">{displayName}</p>
|
||||
<div className="size-2 border border-green-300 bg-green-500 rounded-full animate-pulse" />
|
||||
<div className="grid grid-cols-6 px-3 pt-2 w-full">
|
||||
<div className="col-span-3 self-start flex flex-row items-center space-x-2">
|
||||
<p className="leading-none tracking-tight text-2xl">{displayName}</p>
|
||||
<div
|
||||
className={cn("size-2 border rounded-full", {
|
||||
"animate-pulse border-green-300 bg-green-500": beszelSystemsData.status === "up",
|
||||
"border-red-300 bg-red-500": beszelSystemsData.status === "down",
|
||||
})}
|
||||
/>
|
||||
</div>
|
||||
<div className="flex flex-col font-mono">
|
||||
<p className="text-neutral-400 text-right leading-none">CPU</p>
|
||||
@@ -617,9 +690,7 @@ function SystemTile({
|
||||
<p className="text-right">{beszelSystemsData.info.disk.toFixed(0).padStart(3, "0")}</p>
|
||||
</div>
|
||||
</div>
|
||||
<div className="w-full flex-1 min-w-0 basis-0 relative mb-2">
|
||||
<canvas ref={onCanvasRef} className="min-h-0 absolute top-0 left-0 w-full h-full" />
|
||||
</div>
|
||||
{systemStatusContent}
|
||||
</Tile>
|
||||
)
|
||||
}
|
||||
|
||||
550
apps/dashboard/src/assets/kuromi-frames.json
Normal file
550
apps/dashboard/src/assets/kuromi-frames.json
Normal file
@@ -0,0 +1,550 @@
|
||||
[
|
||||
[
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" #*++*# ",
|
||||
" *=.....= ",
|
||||
" *-.......= ",
|
||||
" %*.........* ",
|
||||
" #-.........* ",
|
||||
" #..........+ ",
|
||||
" #..........* ",
|
||||
" *+.........* ",
|
||||
" %*........+# ",
|
||||
" #*......=# ",
|
||||
" #*+::=**# ",
|
||||
" @%******# ",
|
||||
" *******# ",
|
||||
" %********# ",
|
||||
" **********# ",
|
||||
" ****..-****# ",
|
||||
" #***-....+***# ",
|
||||
" #***......=***# ",
|
||||
" ***-.......:***# ",
|
||||
" @***..........***% ",
|
||||
" #**-...........*** ",
|
||||
" ***.............+** ",
|
||||
" **+..............=** ",
|
||||
" %**................-** ",
|
||||
" ***.................:** ",
|
||||
" **-..................:** ",
|
||||
" %**.....................** ",
|
||||
" #*+.......:..............** ",
|
||||
" **........-...............** ",
|
||||
" **........=..-.............*# ",
|
||||
" %*=........+.+...............+# ##*#% ",
|
||||
" #*.......-+**.................+% *:...=*% ",
|
||||
" *+.....:-+***-:................+# =.......*% ",
|
||||
" *-........**+...................*% #........:* ",
|
||||
" %*........+:*-:...................** :.........* ",
|
||||
" *+.......=..=.:....................* ..........+# ",
|
||||
" *:......:...-.......................* :.........+# ",
|
||||
" %*...........:.......................-# %##+.........*@ ",
|
||||
" %+.......:...:........................=% ###****+=--:*.........* ",
|
||||
" *........:.............................+% *:---...............:*.......*% ",
|
||||
" *........=..............................* +-.........................-*:...=*% ",
|
||||
" +.......=+.......................:-=+++******##% @#****-:.............................:*#***# ",
|
||||
" #:.....:-+++:................-+**+++==-----::--=+****#% %**+=...................................*% ",
|
||||
" #.........+..............-**+--------------::.......:+***%% **.......................................* ",
|
||||
" *.........:...........-*+::----------------::...........:+**% @*.......................................=# ",
|
||||
" *.........:.........=+:.--------------------:..............:+*## #+.......................................* ",
|
||||
" +.................+=.-----------------------:.................-**% *.......................................-* ",
|
||||
" -................:.-------------------------::..................:** *.......................................*# ",
|
||||
" #-...................:-----------------------::.....................*+.......................................* ",
|
||||
" %:.....................::---------------------::....................:-......................................+# ",
|
||||
" *........................:-------------------::....................=.......................................* ",
|
||||
" *:.......+................::-----------------::...................+......................................+* ",
|
||||
" #=.....+..................::=+++=-----------::...................+.....................................:* ",
|
||||
" %*..:+..................=**#%%%#**+---------::........................................................+* ",
|
||||
" #=+.................-*#%%%%%%%%%%*=-------:::......................................................=*% ",
|
||||
" #+.................+*%%%%%%%%%%%%%%*-------::......................................................+* ",
|
||||
" %*.................+*%%%%%%%%%%%%%%%%#------:::....................................:..:............+*# ",
|
||||
" *.................+*%%%%%%%%%%%%%%%%%%*------:::................................-..-.-............:+* ",
|
||||
" *:.................*%%%%%%%%%%%%%%%%%%%%+-----::::................................+.+=.............++% ",
|
||||
" #=.................*%%%%%%%%%%%%%%%%%%%%%%=-----:::.................................**+............=+* ",
|
||||
" #*..................*%%%%%%%%%%%%%%%%%%%%%%*------:::.............................-=****:...........++# ",
|
||||
" *:.................:#%%%#%%%%%%%%%%%%%%%%%%*------::::...............................+*+...........++* ",
|
||||
" #+..................=%%%=.#%%%%%%%%%%%%%%%%%#+::----::::.............................+.*.:.........=++# ",
|
||||
" *...................=%%%...#%%%%%%%%%%%%%%%%%+:::----::::...........................-..+..........:++*% ",
|
||||
" #+...................:%%=....%%%%%%%%%%%%%%%%%=.:::----::::.............................=..........+++# ",
|
||||
" *.....................#%:....%%%%%%%%%%%%%%%%%...:::---:::::............................:.........+++* ",
|
||||
" #*.....................*%*...%%%%%%%%%#=..%%%%%....:::---:::::...........................:........=+++# ",
|
||||
" *:.....................:%%*=%%%%%%%%%%....-%%%%.....::::--::::::.........................:.......:++++ ",
|
||||
" *.......................*%%%%%%%%%%%%#.....%%%*......::::--::::::................................++++# ",
|
||||
" #+........................*%%%%%%%%%%%%....:%%%:.......::::--::::::..............................+++++ ",
|
||||
" *:.........................*%%%%%%%%%%%:...%%%*.........::::--::::::............................+++++# ",
|
||||
" *..............=**=........+%%%=%%%%%%%%#+%%%#:..........::::--:::::::.........................++++++ ",
|
||||
" *...........:*@@@@@*-......*%%=:%.%%%%%%%%%%#=............::::--::::::::......................++++++* ##*% ",
|
||||
" %=.........*@@@@@@@@@*:.....+*#.#%.%%%%%%%%%*=..............::::--::::::::....................+++++++% #**-.# ",
|
||||
" #-.......*@@@@@@@@@@@@*:......-***.%%#*****+.................:::---:::::::::................-+++++++*#**=....* ",
|
||||
" *......:*@@@@+@@@@@@@@@*-........+**%*.......................::::---::::::::::............-++++++++**+.......+ ",
|
||||
" *......*@@@@@+#@@@@@@@@@*:.........:+*........................::::----::::::::::........+*+++++++++*.........- ",
|
||||
" *.....*@@@@#@%=@@@@@@@@@@*:......................:+**=.........::::----:::::::::::........-+**++++*+..........# ",
|
||||
" *....-@@@@@#++==@@@@@@@@@@*:..................=*#@@@@@**:.......::::----:::::::::::::........*#***##*:........+ ",
|
||||
" *....@@@@@@@====+@@@@@@@@@@*:..............=@@@@@@@@@@@@*+......:::::-----:::=::::::::::.....* #*........- ",
|
||||
" *...=@@@@@@@=++==+@@@@@@@@@@*:.......:=*%@@@@@@@@@@@@@@@@%*......::::------::+:::::::::::::::* *.........**# ",
|
||||
" *...%@@@@@@+#@@%==*@@@@@@@@@@**=-:+**%@@@@@@@@@@@@@@@@@@@@@*:.....::::-------+:::::::::::::::* *.....*:..%@#* ",
|
||||
" *...@@@@@@@+#*=====#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@*-....:::::------+:::::::::::::::* %-.....**+.*@@%* ",
|
||||
" *..-@@@@@@#+@*++====#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@*:....::::-----+*+-:::::::::::::* *.....+%@@**@@@* ",
|
||||
" *..=@@@@@@+++++++++==@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@*....:::::--+=-*-=+::::::::::::* @=.....*@@@@#@@@*% ",
|
||||
" *..+@@@@@@++++++++++*@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@*....:::::---+*+-==-::::::::::* #*@*.....-*@@@@@@@@*% ",
|
||||
" #..+@@@@@@++++++++++@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@+#@@@@%+....::::*-=***+-*---::::::::***%@#......*@@@@@@@@@* ",
|
||||
" ..+@@@@@@++++++++++@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%++@@@@@@*:...:::-+********=----::::::*%@@+......=#@@@@@@@@@* ",
|
||||
" ..=@@@@@@*++++++++@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@+===@%@@@@@@*....:::+-*****=*-------:::.*#+........*@@@@@@@@@%* ",
|
||||
" +.-@@@@@@@+++++++*@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@*======%+@@@@@@#=...:::+:-***--+---------::+.........*@@@@@@@@@@* ",
|
||||
" #..%@@@@@@%**+++*@@@@@@@@@@@@@@@@@@@@@@@@@@@@@#======+==+%@@@@@@@*...::::+--*=-*-----------==.......-+@@@@@@@@@@@* ",
|
||||
" -.*@@@@@@@@***@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@*++===+%@+==@@@@@@@@#:...::::*+*+*------------*+++++++++@@@@@@@@@@@* ",
|
||||
" *.*@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@*+++++++@===@@@@@@@@@*...:::::-*--------------*%++++++#@@@@@@@@@@@*# ",
|
||||
" #:=@@@@@@@@@@@@@@@@@@@@@@%%@@@@@@@@@@@@@@@@@*++++++++@++@@@@@@@@@*....:::::+--------------*@@*+#%@@@@@@@@@@@@#* ",
|
||||
" *.*@@@@@@@@@@@@@@@@@@@@*##*@@@@@@@@@@@@@@@@#+++++++++++@@@@@@@@@#:...::=::+-------------+%@@@*#@@@@@@@@@@@@#* ",
|
||||
" @=*@@@@@@@@@@@@@@@@@@@*#%%%%@@@@@@@@@@@@@@@%+++++++++++@@@@@@@@@@+...::=::+-------------*@@@@@#*@@@@@@@@@@*# ",
|
||||
" *-#@@@@@@@@@@@@@@@@@@@*%%%#@@@@@@@@@@@@@@@@++++++++++%@@@@@@@@@@+....:#:::------------=#@@@@@@#*@@@@@@@@@* ",
|
||||
" **@@@@@@@@@@@@@@@@@@@#*###@@@@@@@@@@@@@@@@++++++++++@@@@@@@@@@@*....=%#:::-----------*@@@@@@@@#*@@@@@@@@* ",
|
||||
" #*#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%++++++++*@@@@@@@@@@@*....#%%-::----------=#@@@@@@@@@#*@@@@@@%% ",
|
||||
" #*@@@@@@@@@@@@@@@@@@@@@@@@@#*#@@@@@@@@@@@@**++++++@@@@@@@@@@@@*.....#-:::----------*%@@@@@@@@@@#*@@@@@*% ",
|
||||
" **@@@@@@@@@@@@@@@*@@@@@@@%*%##@@@@@@@@@@@@%*****@@@@@@@@@@@@@*.....+:::::--------+#@@@@@@@@@@@@%*%@@@* ",
|
||||
" **@@@@@@@@@@@@@@@*@@@@@@*%#%#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@+.....=:::::-------=*@@@@@@@@@@@@@@@*#@%% ****% ",
|
||||
" #**##**#@@@@@@@@@@**%@@*%###@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@=.....::::::-------*%@@@@@@@@@@@@@@@@%**%@@%@@@@**@ ",
|
||||
" #*@@@@@@%*%@@@@@@@@@@#*****#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@:......::::::-----*%@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@*# ",
|
||||
" @*@@@@@@@@@*#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@#.......::::::----*%@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@* ",
|
||||
" #%@@@@@@@@@@*@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@*.......::::::---+%@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@* ",
|
||||
" *@@@@@@@@@@@@*@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%........:::::::-*%@@%#*#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@# ",
|
||||
" *@@@@@@@@@@@@@%@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@=........:::::::*%@@%*####@@@@@@@@@@@@@@@@@@@@@@@@@@@@# ",
|
||||
" #%@@@@@@@@@@@@*@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@#.........:::::=*#@@@*######@@@@@@@@@@@@@@@@@@@@@@@@@@@@ ",
|
||||
" *@@@@@@@@@@@@#*%@@@@@@@@@@@@@@@@@@@@@@@*****#@@@@@@@@@@@@%...........:::*+..=*#*######@@@@@@@@@@@@@@@@@@@@@@@@@@@@ ",
|
||||
" %#@@@@@@@@@@@%@#*#@@@@@@@@@@@@@@@@@@@**@@@@@%*%@@@@@@@@@%............:-+-......*######@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ ",
|
||||
" ##@@@@@@@@@@@@@@%**%@@@@@@@@@@@@@@@*%@@@@@@@@*%@@@@@@@#:..........=+++........*#####*@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ ",
|
||||
" %*@@@@@@@@@@@@@@@****#@@@@@@@@@@@*@@@@@@@@@@@*@@@@@%*.........-*+++:........*%*###*%@@@@@@@@@@@@@@@@@@@@@@@@@@@@@# ",
|
||||
" %*% @@@@*+++++*#@@@@@@@*%@@@@@@@@@@@*@@@%*:......-+*++++-........+#@@@***@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@* ",
|
||||
" %*#@ @*+++++++++++**#%*@@@@@@@@@@@@*%**...:=+***+++++-.......-*#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@# ",
|
||||
" @% **###% *-=+++++++++++*@*@@@@@@@@@@@@@********+++++****++==++**%@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@# ",
|
||||
" *#*######*:....:=++++**%@@*@@@@@@@@@@@@@*+++++++++++=*@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@* ",
|
||||
" %*######*.......-+**%@@@@@*@@@@@@@@@@@@#+++++++++-...#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@* ",
|
||||
" *######********##%*%@@@@@*@@@@@@@@@@@@*+==-........-%@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@* ",
|
||||
" %*#####* #* #*@@@@*@@@@@@@@@@@**............=@@@@@@@@@@@@@@@@@@@@@@@@#%@@@@@@@@@@@@@@@@@#@@@@@@@@@@@%# ",
|
||||
" **###*@ %** *#@@#@@@@@@@@@%*@#*...........=@@@@@@@@@@@@@@@@@@@@@@%* #*%%@@@@@@@@@%%**% *%@@@@@@@@@*% ",
|
||||
" #***#***# #*#@*@@@@@@@@@@@@#+..........=@@@@@@@@@@@@@@@@@@@@@## #***********# %*%@@@@@@@%* ",
|
||||
" %%# %**@@@@@@@@@@@@@#*.........:%@@@@@@@@@@@@@@@@@@%*@ #**# **%@@@@#*@ ",
|
||||
" %*@@@@@@@@@@@@@@*-........*@@@@@@@@@@@@@@@@%*% %****** ",
|
||||
" #*@@@@@@@@@@@@@@**:......*#*#@@@@@@@@@@%**# ",
|
||||
" #*@@@@@@@@@@@@@@%**-...:*####@@@@@%#**# ",
|
||||
" #*@@@@@@@@@@@@@@@@#**+*#####*****#@ ",
|
||||
" #**@@@@@@@@@@@@@%*****######% ",
|
||||
" #***#%%@@%##*## #*###### ",
|
||||
" %##**#%@ *#####* ",
|
||||
" %*###*# ",
|
||||
" %***# "
|
||||
],
|
||||
[
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" #**#@ ",
|
||||
" #*....:+ ",
|
||||
" #+.......= ",
|
||||
" *.........@ ",
|
||||
" #=.........* ",
|
||||
" *:.........+ ",
|
||||
" *:.........* ",
|
||||
" #=.........* ",
|
||||
" *........-# ",
|
||||
" #+......:* ",
|
||||
" #*-..:+** ",
|
||||
" ********% ",
|
||||
" %*******% ",
|
||||
" #********# ",
|
||||
" *********** ",
|
||||
" ****..:***** ",
|
||||
" %***-....-**** ",
|
||||
" ****.......+***% ",
|
||||
" ***=........-***% ",
|
||||
" ***...........***% ",
|
||||
" ***............=**# ",
|
||||
" @**=..............*** #**# ",
|
||||
" #**................+** #=...-*# ",
|
||||
" ***.................-**@ #.......*% ",
|
||||
" **+...................**% .........* ",
|
||||
" @**.....................+*@ -.........+% ",
|
||||
" #**......................=*# -.........-* ",
|
||||
" %*+........................*# =.........:* ",
|
||||
" **-.......-.................*% *.........=# ",
|
||||
" **........+..................+# ##***-........* ",
|
||||
" **......-.*.=.................=# %##**+=....*.......+# ",
|
||||
" *+.......***...................-* #*+=...........*=...:*# ",
|
||||
" #*.......=****-..................-* %--.................=*****% ",
|
||||
" #*........+**.....................:* #+=......................*% ",
|
||||
" **........:*.-.....................:* =...........................* ",
|
||||
" *=.......:.-........................:# @#**=.............................:* ",
|
||||
" *.......:............................:# #**+-................................*# ",
|
||||
" *.....................................-# #*+....................................* ",
|
||||
" %+......................................*####*##*%% *+.....................................:* ",
|
||||
" *-...............................:=****+++==----==+****## *......................................+% ",
|
||||
" *........=....................+**+=-------::...........-+***%% *......................................* ",
|
||||
" *.......:+:...............:+*+-------------:...............:+**# @=.....................................-* ",
|
||||
" *.....:=+++:............=*=.---------------::..................=**%#:.....................................*# ",
|
||||
" %+........+............*+.------------------::.....................+*......................................* ",
|
||||
" #-........=..........+=.---------------------:......................*.....................................+* ",
|
||||
" *:........:........+=.-----------------------::.....................*.....................................*# ",
|
||||
" #:................+.--------------------------::....................*....................................=* ",
|
||||
" #...................:-------------------------::....................=....................................+* ",
|
||||
" *......................::---------------------:::.......................................................=*% ",
|
||||
" #.........................::-------------------:::......................................:...............+* ",
|
||||
" %...........................:::-=+++=-----------::......................................+..............++# ",
|
||||
" *:........+.................-**#####**+--------:::...................................:.*.+............+*% ",
|
||||
" #=......*.................**%%%%%%%%%%*=-------:::...................................***............++* ",
|
||||
" %*:...*................=*%%%%%%%%%%%%%%*-------:::.................................:****:.........:++% ",
|
||||
" %+.+................=*%%%%%%%%%%%%%%%%#------::::.................................-**=..........++*% ",
|
||||
" *:...............-*%%%%%%%%%%%%%%%%%%#------::::................................+-=.=........:++* ",
|
||||
" %+................*%%%%%%%%%%%%%%%%%%%%*------::::..............................-..=..:.......+++% ",
|
||||
" @*................+#%%%%%%%%%%%%%%%%%%%%#+------::::................................=.........=++* ",
|
||||
" *.................*%%%%%%%%%%%%%%%%%%%%%%*:-----:::::...............................=.........+++* ",
|
||||
" %+................:*%%%%%%%%%%%%%%%%%%%%%%*=::----:::::..............................:........++++ ",
|
||||
" *.................=%%%%*%%%%%%%%%%%%%%%%%%%+:::----:::::.....................................=+++* ",
|
||||
" #+.................=%%%..=%%%%%%%%%%%%%%%%%%=.::::---::::::...................................++++% ",
|
||||
" *..................=%%%....%%%%%%%%%%%%%%%%%-..::::---::::::.................................+++++ ",
|
||||
" *+..................:%%+....%%%%%%%%%%%#%%%%%:....:::---:::::::..............................+++++* ",
|
||||
" *....................*%+....%%%%%%%%=....%%%%......::::--:::::::............................=+++++* ",
|
||||
" %*....................+%%...%%%%%%%%%.....%%%%.......::::---:::::::.........................-+++++* ",
|
||||
" *-.....................#%%%%%%%%%%%%%.....%%%*........::::---:::::::.......................-++++++* ",
|
||||
" *.......................%%%%%%%%%%%%%-....%%%-.........::::---::::::::....................=++++++*% ",
|
||||
" #*.......................:#%%%%%%%%%%%%:..*%%*............::::--:::::::::.................++++++++* ",
|
||||
" #+.........................*%%%%%%%%%%%%%%%%#-.............::::---:::::::::...........:-++++++++++# ##*% ",
|
||||
" *:.........................*%%:+%+%%%%%%%%%*=...............::::---:::::::::::..........-****++++* #**:.# ",
|
||||
" *.............-****=.......*%%.#%.%%%%%%%#*-.................::::---::::::::::::............*###*# %#**-....* ",
|
||||
" *...........-#@@@@@#*......-**+%*.%%*****=...................:::::----::::::::::::::........* %#**+.......+ ",
|
||||
"%*.........-@@@@@@@@@%*........:+***%*:........................:::::-----::::::::::::::::::::+ *+..........- ",
|
||||
"#+.......-#@@@@@@@@@@@@*:..........-+*...........:*****=........:::::-----:::-:::::::::::::::+# %*+..........# ",
|
||||
"%=......+*@@@*@@@@@@@@@@*-.....................+*@@@@@@%*+.......:::::------:::::::::::::::::-* #*:........+ ",
|
||||
"#:.....+*@@@@*+@@@@@@@@@@*+..................#@@@@@@@@@@@%*-......::::--------::::::::::::::::* %*........- ",
|
||||
"*......*@@@@%@+%@@@@@@@@@@**.............-*@@@@@@@@@@@@@@@@*+......::::-------=-::::::::::::::* *.........**# ",
|
||||
"*.....+@@@@@+@==%@@@@@@@@@@#*.........=*@@@@@@@@@@@@@@@@@@@@%*.....:::::----+=*=*-::::::::::::* *.....*:..%@%* ",
|
||||
"*.....@@@@@@+=@==#@@@@@@@@@@%*=....+*#@@@@@@@@@@@@@@@@@@@@@@@@*.....:::::--+-+*--*--::::::::::* %-.....**+.*@@%* ",
|
||||
"#....#@@@@@@*=@===*@@@@@@@@@@@#***#@@@@@@@@@@@@@@@@@@@@@@@@@@@@*.....::::-+--***--+---::::::::* *.....+%@@**@@@* ",
|
||||
"%....@@@@@@@+@@@+==+@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@*....:::::+=*******=----::::::* @=.....*@@@@%@@@*% ",
|
||||
"#:...@@@@@@@++@=====+@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@+%@@@@%*....::-+*******+*--------::-* #*@*.....-#@@@@@@@@*% ",
|
||||
"%=..-@@@@@@+#@@++++==+@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@*+@@@@@@#+....:::+:+***--*-----------* **%@#......*@@@@@@@@@* ",
|
||||
" +..+@@@@@@+++++++++++@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@*==@@@@@@@@*:...:::-:-=**-=-----------=#*%@@+......=#@@@@@@@@@* ",
|
||||
" *..+@@@@@@++++++++++%@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@+====@+%@@@@@@*....:::+--*=++-----------+*%#+........*@@@@@@@@@%* ",
|
||||
" *..+@@@@@@++++++++++@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@+===%===+@@@@@@@#=...:::::+*+-------------*-:.........*@@@@@@@@@@* ",
|
||||
" %..=@@@@@@++++++++++@@@@@@@@@@@@@@@@@@@@@@@@@@@@======@===@@@@@@@@@*....:::::---------------*=........-+@@@@@@@@@@@* ",
|
||||
" ..:@@@@@@*++++++++@@@@@@@@@@@@@@@@@@@@@@@@@@@@++====@@%==@@@@@@@@@%=...:::-::-------------=*++++++++++@@@@@@@@@@@* ",
|
||||
" -..%@@@@@@+++++++*@@@@@@@@@@@@@@@@@@@@@@@@@@@@+++++++%+@+@@@@@@@@@@*....::-::-------------+%@%++++++#@@@@@@@@@@@*# ",
|
||||
" ..*@@@@@@@***++*@@@@@@@@@@@@@@@@@@@@@@@@@@@@@+++++++*+#+@@@@@@@@@@*....::*:::------------*@@@@*+#%@@@@@@@@@@@@#* ",
|
||||
" :.*@@@@@@@@#**@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@+++++++++++@@@@@@@@@@%-....:%:::-----------=#@@@@@*#@@@@@@@@@@@@#* ",
|
||||
" #.=@@@@@@@@@@@@@@@@@@@@@@#*#@@@@@@@@@@@@@@@@@*++++++++++@@@@@@@@@@@+....%%%#+:----------*%@@@@@@#*@@@@@@@@@@*# ",
|
||||
" +.*@@@@@@@@@@@@@@@@@@@@*#%%*@@@@@@@@@@@@@@@@%++++++++++@@@@@@@@@@@*....=%*:::---------=*@@@@@@@@#*@@@@@@@@@* ",
|
||||
" #.+@@@@@@@@@@@@@@@@@@@@*%%%%@@@@@@@@@@@@@@@@@+++++++++*@@@@@@@@@@@*.....#:::::--------*@@@@@@@@@@#*@@@@@@@@* ",
|
||||
" @*.#@@@@@@@@@@@@@@@@@@@%*%%%*@@@@@@@@@@@@@@@@%++++++++@@@@@@@@@@@@*.....-:::::-------+#@@@@@@@@@@@#*@@@@@@%% ",
|
||||
" %++@@@@@@@@@@@@@@@@@@@@%***@@@@@@@@@@@@@@@@@@#*****+%@@@@@@@@@@@@*.....:::::::------*@@@@@@@@@@@@@%*@@@@@*% ",
|
||||
" *=*@@@@@@@@@@@@@@@@@@@@@@@@@@@*#@@@@@@@@@@@@@@#**#@@@@@@@@@@@@@@*......::::::-----*%@@@@@@@@@@@@@@%*%@@@* ",
|
||||
" *+%@@@@@@@@@@@@@@@@@@@@@@@@@*%%*@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@+......::::::----*%@@@@@@@@@@@@@@@@@*#@%% @****# ",
|
||||
" **%**##**#@@@@@@@@#@@@@@@@##%%*@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@=......:::::::--+#@@@@@@@@@@@@@@@@@@@@**%@@%@@@@**% ",
|
||||
" **@@@@@@%*%@@@@@@@#*@@@@@*%*%@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@:.......::::::-=#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@*# ",
|
||||
" @*@@@@@@@@@*#@@@@@@@@***%*#**@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@#........::::::=#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@* ",
|
||||
" #%@@@@@@@@@@*@@@@@@@@@@@%%@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@:........:::::+%@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@# ",
|
||||
" *@@@@@@@@@@@@*@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%.........::::*%@@@@@%#*#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@# ",
|
||||
" *@@@@@@@@@@@@@%@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@..........:::*%@@@@@%*####@@@@@@@@@@@@@@@@@@@@@@@@@@@@# ",
|
||||
" #%@@@@@@@@@@@@*@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@:..........:...:*#@@@*######@@@@@@@@@@@@@@@@@@@@@@@@@@@@ ",
|
||||
" *@@@@@@@@@@@@#@@@@@@@@@@@@@@@@@@@@@@@@@*****#@@@@@@@@@@@@*.........-+...-+..-*#*######@@@@@@@@@@@@@@@@@@@@@@@@@@@@ ",
|
||||
" ##@@@@@@@@@@@%@@@@@@@@@@@@@@@@@@@@@@@**@@@@@%*%@@@@@@@@%*........++..-++=......*######@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ ",
|
||||
" ##@@@@@@@@@@@*#@@@@@@@@@@@@@@@@@@@@*%@@@@@@@@*%@@@@@@%+......=*+-=++++........*#####*@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ ",
|
||||
" %*@@@@@@@@@@@%**#@@@@@@@@@@@@@@@@*@@@@@@@@@@@*@@@@%*:....=**+++++++:........*%*###*%@@@@@@@@@@@@@@@@@@@@@@@@@@@@@# ",
|
||||
" %*% @@@%***%@@@@@@@@@@@*%@@@@@@@@@@@*@@%*=.:=***++++++++-........+#@@@***@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@* ",
|
||||
" %*#% @*++++++**%@@@@@%*@@@@@@@@@@@@********++++++++++-.......=*%@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@# ",
|
||||
" @% **#### *--+++++++++++***@@@@@@@@@@@@@**+++++++++++****++==++**%@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%# ",
|
||||
" *#*#####%*:....:=++++**%@@*@@@@@@@@@@@@@*+++++++++++=*@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@* ",
|
||||
" %*######*.......-+**%@@@@@*@@@@@@@@@@@@#+++++++++-...#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@* ",
|
||||
" *######********##%*%@@@@@*@@@@@@@@@@@@*+=--........-%@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@* ",
|
||||
" %*#####* #* #*@@@@*@@@@@@@@@@@**............=@@@@@@@@@@@@@@@@@@@@@@@@#%@@@@@@@@@@@@@@@@@#@@@@@@@@@@@%# ",
|
||||
" **###*@ %** *#@@#@@@@@@@@@%*@#*...........=@@@@@@@@@@@@@@@@@@@@@@%* #*%%@@@@@@@@@%%**% *%@@@@@@@@@*% ",
|
||||
" #***#***# #*#@*@@@@@@@@@@@@#+..........-@@@@@@@@@@@@@@@@@@@@@## #***********# %*%@@@@@@@%* ",
|
||||
" %%* #**@@@@@@@@@@@@@#*.........:%@@@@@@@@@@@@@@@@@@%*@ #**# **%@@@@#*@ ",
|
||||
" %*@@@@@@@@@@@@@@*-........*@@@@@@@@@@@@@@@@%*% %****** ",
|
||||
" #*@@@@@@@@@@@@@@**:......*#*#@@@@@@@@@@%**# ",
|
||||
" **@@@@@@@@@@@@@@%**=...:*####@@@@@%#**# ",
|
||||
" #*@@@@@@@@@@@@@@@@#**+*#####*****#@ ",
|
||||
" #**@@@@@@@@@@@@@%*****######% ",
|
||||
" #***#%%@@%##*#% **###### ",
|
||||
" %##**##@ *#####* ",
|
||||
" %*###*# ",
|
||||
" %***% "
|
||||
],
|
||||
[
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" #*++*# ",
|
||||
" *=.....= ",
|
||||
" *-.......= ",
|
||||
" %*.........* ",
|
||||
" #-.........* ",
|
||||
" #..........+ ",
|
||||
" #..........* ",
|
||||
" *+.........* ",
|
||||
" %*........+# ",
|
||||
" #*......=# ",
|
||||
" #*+::=**# ",
|
||||
" @%******# ",
|
||||
" *******# ",
|
||||
" %********# ",
|
||||
" **********# ",
|
||||
" ****..-****# ",
|
||||
" #***-....+***# ",
|
||||
" #***......=***# ",
|
||||
" ***-.......:***# ",
|
||||
" @***..........***% ",
|
||||
" #**-...........*** ",
|
||||
" ***.............+** ",
|
||||
" **+..............=** ",
|
||||
" %**................-** ",
|
||||
" ***.................:** ",
|
||||
" **-..................:** ",
|
||||
" %**.....................** ",
|
||||
" #*+.......:..............** ",
|
||||
" **........-...............** ",
|
||||
" **........=..-.............*# ",
|
||||
" %*=........+.+...............+# ##*#% ",
|
||||
" #*.......-+**.................+# *:...=*% ",
|
||||
" *+.....:-+***-:................+# =.......*% ",
|
||||
" *-........**+...................*% #........:* ",
|
||||
" %*........+:*-:...................** :.........* ",
|
||||
" *+.......=..=.:....................* ..........+# ",
|
||||
" *:......:...-.......................* :.........+# ",
|
||||
" %*...........:.......................-# %##+.........*@ ",
|
||||
" %+.......:...:........................=% ###****+=--:*.........* ",
|
||||
" *........:.............................+% *:---...............:*.......*% ",
|
||||
" *........=..............................* +-.........................-*:...=*% ",
|
||||
" +.......=+.......................:-=+++******##% @#****-:.............................:*#***# ",
|
||||
" #:.....:-+++:................-+**+++==-----::--=+****#% %**+=...................................*% ",
|
||||
" #.........+..............-**+--------------::.......:+***%% **.......................................* ",
|
||||
" *.........:...........-*+::----------------::...........:+**% @*.......................................=# ",
|
||||
" *.........:.........=+:.--------------------:..............:+*## #+.......................................* ",
|
||||
" +.................+=.-----------------------:.................-**% *.......................................-* ",
|
||||
" -................:.-------------------------::..................:** *.......................................*# ",
|
||||
" #-...................:-----------------------::.....................*+.......................................* ",
|
||||
" %:.....................::---------------------::....................:-......................................+# ",
|
||||
" *........................:-------------------::....................=.......................................* ",
|
||||
" *:.......+................::-----------------::...................+......................................+* ",
|
||||
" #=.....+..................::=+++==----------::...................+.....................................:* ",
|
||||
" %*..:+..................=**#%%%#**+---------::........................................................+* ",
|
||||
" #=+.................-*#%%%%%%%%%%*=-------:::......................................................=*% ",
|
||||
" #+.................+*%%%%%%%%%%%%%%*-------::......................................................+* ",
|
||||
" %*.................+*%%%%%%%%%%%%%%%%#------:::....................................:..:............+*# ",
|
||||
" *.................+*%%%%%%%%%%%%%%%%%%*------:::................................-..-.-............:+* ",
|
||||
" *:.................*%%%%%%%%%%%%%%%%%%%%+-----::::................................+.+=.............++% ",
|
||||
" #=.................*%%%%%%%%%%%%%%%%%%%%%%=-----:::.................................**+............=+* ",
|
||||
" #*..................*%%%%%%%%%%%%%%%%%%%%%%*------:::.............................-=****-...........++# ",
|
||||
" *:.................:#%%%#%%%%%%%%%%%%%%%%%%*------::::...............................+*+...........++* ",
|
||||
" #+..................=%%%=.#%%%%%%%%%%%%%%%%%#+::----::::.............................+.*.:.........=++# ",
|
||||
" *...................=%%%...#%%%%%%%%%%%%%%%%%+:::----::::...........................-..+..........:++*% ",
|
||||
" #+...................:%%=....%%%%%%%%%%%%%%%%%=.:::----::::.............................=..........+++# ",
|
||||
" *.....................#%:....%%%%%%%%%%%%%%%%%...:::---:::::............................:.........+++* ",
|
||||
" #*.....................*%*...%%%%%%%%%#=..%%%%%....:::---:::::...........................:........=+++# ",
|
||||
" *:.....................-%%*=%%%%%%%%%%....-%%%%.....::::--::::::.........................:.......:++++ ",
|
||||
" *.......................*%%%%%%%%%%%%#.....%%%*......::::--::::::................................++++# ",
|
||||
" #+........................*%%%%%%%%%%%%....:%%%:.......::::--::::::..............................+++++ ",
|
||||
" *:.........................*%%%%%%%%%%%:...%%%*.........::::--::::::............................+++++# ",
|
||||
" *..............=**=........+%%%=%%%%%%%%#+%%%#:..........::::--:::::::.........................++++++ ",
|
||||
" *...........:*@@@@@*-......*%%=:%.%%%%%%%%%%#=............::::--::::::::......................++++++* ##*# ",
|
||||
" %=.........*@@@@@@@@@*:.....+*#.#%.%%%%%%%%%*=..............::::--::::::::....................+++++++% #**-.# ",
|
||||
" #-.......*@@@@@@@@@@@@*:......-***.%%#*****+.................:::---:::::::::................-+++++++*%**=....* ",
|
||||
" *......:*@@@@+@@@@@@@@@*-........+**%*.......................::::---::::::::::............-++++++++**+.......+ ",
|
||||
" *......*@@@@@+#@@@@@@@@@*:.........:+*........................::::----::::::::::........+*+++++++++*.........- ",
|
||||
" *.....*@@@@#@%=@@@@@@@@@@*:......................:+**=.........::::----:::::::::::........-+**++++*+..........# ",
|
||||
" *....-@@@@@#++==@@@@@@@@@@*:..................=*#@@@@@**:.......::::----:::::::::::::........*#***##*:........+ ",
|
||||
" *....@@@@@@@====+@@@@@@@@@@*:..............=@@@@@@@@@@@@*+......:::::-----:::=::::::::::.....* #*........- ",
|
||||
" *...=@@@@@@@=++==+@@@@@@@@@@*:.......:=*%@@@@@@@@@@@@@@@@%*......::::------::+:::::::::::::::* *.........**# ",
|
||||
" *...%@@@@@@+#@@%==*@@@@@@@@@@**=-:+**%@@@@@@@@@@@@@@@@@@@@@*:.....::::-------+:::::::::::::::* *.....*:..%@#* ",
|
||||
" *...@@@@@@@+#*=====#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@*-....:::::------+:::::::::::::::* %-.....**+.*@@%* ",
|
||||
" *..-@@@@@@#+@*++====#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@*:....::::-----+*+-:::::::::::::* *.....+%@@**@@@* ",
|
||||
" *..=@@@@@@+++++++++==@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@*....:::::--+=-*-=+::::::::::::* @=.....*@@@@#@@@*% ",
|
||||
" *..+@@@@@@++++++++++*@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@*....:::::---+**-==-::::::::::* #*@*.....-*@@@@@@@@*% ",
|
||||
" #..+@@@@@@++++++++++@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@+#@@@@%+....::::*-=***+-*---::::::::***%@#......*@@@@@@@@@* ",
|
||||
" ..+@@@@@@++++++++++@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%++@@@@@@*:...:::-*********=----::::::*%@@+......=#@@@@@@@@@* ",
|
||||
" ..=@@@@@@*++++++++@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@+===@%@@@@@@*....:::+-*****=*-------:::.*#+........*@@@@@@@@@%* ",
|
||||
" +.-@@@@@@@+++++++*@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@*======%+@@@@@@#=...:::+:-***--+---------::+.........*@@@@@@@@@@* ",
|
||||
" #..%@@@@@@%***++*@@@@@@@@@@@@@@@@@@@@@@@@@@@@@#======+==+%@@@@@@@*...::::+--*=-*-----------==.......-+@@@@@@@@@@@* ",
|
||||
" -.*@@@@@@@@***@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@*++===+%@+==@@@@@@@@#:...::::*+*+*------------*+++++++++@@@@@@@@@@@* ",
|
||||
" *.*@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@*+++++++@===@@@@@@@@@*...:::::-*--------------*%++++++#@@@@@@@@@@@*# ",
|
||||
" #:=@@@@@@@@@@@@@@@@@@@@@@%@@@@@@@@@@@@@@@@@@*++++++++@++@@@@@@@@@*....:::::+--------------*@@*+#%@@@@@@@@@@@@#* ",
|
||||
" *.*@@@@@@@@@@@@@@@@@@@@*##*@@@@@@@@@@@@@@@@#+++++++++++@@@@@@@@@#:...::=::+-------------+%@@@*#@@@@@@@@@@@@#* ",
|
||||
" @=*@@@@@@@@@@@@@@@@@@@*#%%%%@@@@@@@@@@@@@@@%+++++++++++@@@@@@@@@@+...::=::+-------------*@@@@@#*@@@@@@@@@@*# ",
|
||||
" *-#@@@@@@@@@@@@@@@@@@@*%%%#@@@@@@@@@@@@@@@@++++++++++%@@@@@@@@@@+....:#:::------------=#@@@@@@#*@@@@@@@@@* ",
|
||||
" **@@@@@@@@@@@@@@@@@@@#*###@@@@@@@@@@@@@@@@++++++++++@@@@@@@@@@@*....=%#:::-----------*@@@@@@@@#*@@@@@@@@# ",
|
||||
" #*#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%++++++++*@@@@@@@@@@@*....#%%-::----------=#@@@@@@@@@#*@@@@@@%% ",
|
||||
" #*@@@@@@@@@@@@@@@@@@@@@@@@@#*#@@@@@@@@@@@@**++++++@@@@@@@@@@@@*.....#-:::----------*%@@@@@@@@@@#*@@@@@*% ",
|
||||
" **@@@@@@@@@@@@@@@*@@@@@@@%*%##@@@@@@@@@@@@%*****@@@@@@@@@@@@@*.....+:::::--------+#@@@@@@@@@@@@%*%@@@* ",
|
||||
" **@@@@@@@@@@@@@@@*@@@@@@*%#%#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@+.....=:::::-------=*@@@@@@@@@@@@@@@*#@%# ****% ",
|
||||
" #**##**#@@@@@@@@@@**%@@*%###@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@=.....::::::-------*%@@@@@@@@@@@@@@@@%**%@@%@@@@**@ ",
|
||||
" #*@@@@@@%*%@@@@@@@@@@#*****#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%:......::::::-----*%@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@*# ",
|
||||
" @*@@@@@@@@@*#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@#.......::::::----*%@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@* ",
|
||||
" #%@@@@@@@@@@*@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@*.......::::::---+%@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@* ",
|
||||
" *@@@@@@@@@@@@*@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%........:::::::-*%@@%#*#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@# ",
|
||||
" *@@@@@@@@@@@@@%@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@=........:::::::*%@@%*####@@@@@@@@@@@@@@@@@@@@@@@@@@@@# ",
|
||||
" #%@@@@@@@@@@@@*@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@#.........:::::=*#@@@*######@@@@@@@@@@@@@@@@@@@@@@@@@@@@ ",
|
||||
" *@@@@@@@@@@@@#*%@@@@@@@@@@@@@@@@@@@@@@@*****#@@@@@@@@@@@@%...........:::*+..=*#*######@@@@@@@@@@@@@@@@@@@@@@@@@@@@ ",
|
||||
" %#@@@@@@@@@@@%@**#@@@@@@@@@@@@@@@@@@@**@@@@@%*%@@@@@@@@@%............:-+-......*######@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ ",
|
||||
" ##@@@@@@@@@@@@@@%**%@@@@@@@@@@@@@@@*%@@@@@@@@*%@@@@@@@#:..........=+++........*#####*@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ ",
|
||||
" #*@@@@@@@@@@@@@@@****#@@@@@@@@@@@*@@@@@@@@@@@*@@@@@%*.........-*+++:........*%*###*%@@@@@@@@@@@@@@@@@@@@@@@@@@@@@# ",
|
||||
" %*% @@@@*+++++*#%@@@@@@*%@@@@@@@@@@@*@@@%*:......-+*++++-........+#@@@***@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@* ",
|
||||
" %*#@ @*+++++++++++**#%*@@@@@@@@@@@@*%**...:=+***+++++-.......-*#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@# ",
|
||||
" @% **###% *-=+++++++++++*%*@@@@@@@@@@@@@********+++++****++==++**%@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%# ",
|
||||
" *#*######*:....:=++++**%@@*@@@@@@@@@@@@@*+++++++++++=*@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@* ",
|
||||
" %*######*.......-+**%@@@@@*@@@@@@@@@@@@#+++++++++-...#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@* ",
|
||||
" *######********##%*%@@@@@*@@@@@@@@@@@@*+==-........-%@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@* ",
|
||||
" %*#####* #* #*@@@@*@@@@@@@@@@@**............=@@@@@@@@@@@@@@@@@@@@@@@@#%@@@@@@@@@@@@@@@@@#@@@@@@@@@@@%# ",
|
||||
" **###*@ %** *#@@#@@@@@@@@@%*@#*...........=@@@@@@@@@@@@@@@@@@@@@@%* #*%%@@@@@@@@@%%**% *%@@@@@@@@@*% ",
|
||||
" #***#***# #*#@*@@@@@@@@@@@@#+..........=@@@@@@@@@@@@@@@@@@@@@## #***********# %*%@@@@@@@%* ",
|
||||
" %%# %**@@@@@@@@@@@@@#*.........:%@@@@@@@@@@@@@@@@@@%*% #**# **%@@@@#*@ ",
|
||||
" %*@@@@@@@@@@@@@@*-........*@@@@@@@@@@@@@@@@%*% %****** ",
|
||||
" #*@@@@@@@@@@@@@@**:......*#*#@@@@@@@@@@%**# ",
|
||||
" #*@@@@@@@@@@@@@@%**=...:*####@@@@@%#**# ",
|
||||
" #*@@@@@@@@@@@@@@@@#**+*#####*****#@ ",
|
||||
" #**@@@@@@@@@@@@@%*****######% ",
|
||||
" #***#%%@@%##*## #*###### ",
|
||||
" %##**#%@ *#####* ",
|
||||
" %*###*# ",
|
||||
" #***% "
|
||||
],
|
||||
[
|
||||
" #**#% ",
|
||||
" %*=...=# ",
|
||||
" %*.......+ ",
|
||||
" *:........# ",
|
||||
" *.........- ",
|
||||
" %+.........- ",
|
||||
" #=.........- ",
|
||||
" +.........+ ",
|
||||
" *.........* ",
|
||||
" #*.......*@ ",
|
||||
" #*:...-*% ",
|
||||
" #******# ",
|
||||
" %******% ",
|
||||
" ******** ",
|
||||
" ********* ",
|
||||
" #****-***** ",
|
||||
" ****...+**** ",
|
||||
" #***:....-***% ",
|
||||
" ***+......:***# ",
|
||||
" ***........:*** ",
|
||||
" #**+.........:*** ",
|
||||
" ***............**# ",
|
||||
" #**=............:**% ",
|
||||
" ***..............:**@ ",
|
||||
" @**=...............:** ",
|
||||
" %**.................-** ",
|
||||
" **=..................-*# ",
|
||||
" %**.......:............=*# ",
|
||||
" #*=.......=.............=* ",
|
||||
" **........+..............+*@ ",
|
||||
" %*+.....-..+..-............+* ",
|
||||
" **.......+.+.+..............*# ",
|
||||
" *+........***................*# ",
|
||||
" %*.......:****+:...............* ",
|
||||
" *+........+**=.................:* ",
|
||||
" *........=.---..................-# ",
|
||||
" #*.......:..-..-..................+% ",
|
||||
" *:..........-......................* ",
|
||||
" *.......:...-.......................* ",
|
||||
" #-.......-...-.......................=# %*# ",
|
||||
" *........=...:........................* @*=-=** ",
|
||||
" +.......:+.............................# -.....:*% ",
|
||||
" #:.....:=+++:...........................-% ........:* ",
|
||||
" *........:+..............................* =.........*%",
|
||||
" *.........:.................-=++***********### -.........=#",
|
||||
" #-......................:+*++-::------------=++***#% +.........-*",
|
||||
" #....................=*+..------------------::....+**** %*=-*%%##*###*****.........+#",
|
||||
" *.................-+:.:---------------------::.......:***% %##******::..........................*.........*%",
|
||||
" *..................:------------------------::..........:**% #**+--..................................:*.......-* ",
|
||||
" #...................:-----------------------::.............+*#- %*........................................+*.....=* ",
|
||||
" *....................:----------------------:...............=*# *:........................................=#**++*# ",
|
||||
" *.......::............:--------------------::................=*# @*.........................................* #@ ",
|
||||
" *.....+................:------------------::..................+*%%=........................................+# ",
|
||||
" %:..*..................::----------------::....................**.........................................*% ",
|
||||
" %++.....................:====------------::....................*........................................+# ",
|
||||
" #=...................:***###***=---------::...................:-........................................* ",
|
||||
" *=...................**%%%%%%%%%#*=-------:::..................+........................................+# ",
|
||||
" #+..................=*%%%%%%%%%%%%%#+-------::..................+........................................* ",
|
||||
" #+..................+*%%%%%%%%%%%%%%%%+------:::.................:.......................................*% ",
|
||||
" @*..................=*%%%%%%%%%%%%%%%%%%+------::........................................................-* ",
|
||||
" @*...................*%%%%%%%%%%%%%%%%%%%%------:::...................................:...................*% ",
|
||||
" *-..................+#%%%%%%%%%%%%%%%%%%%%%-----:::...................................:..................+* ",
|
||||
" #+...................*%%%%%%%%%%%%%%%%%%%%%%*-----:::..................................-.................=* ",
|
||||
" *....................*%%%:%%%%%%%%%%%%%%%%%%*=-----:::.................................=................:+* ",
|
||||
" *=...................:#%%...%%%%%%%%%%%%%%%%%#+-----::::................................+..-.............+* ",
|
||||
" %*....................:%%#...:%%%%%%%%%%%%%%%%%*:-----:::..............................:-*.+.............++# ",
|
||||
" *-.....................#%-....%%%%%%%%%%%%%%%%%*::----::::..............................***.............-+* ",
|
||||
" @*......................*%-...:%%%%%%%%%%%%%%%%%+:::----::::............................-***+-:..........++% ",
|
||||
" #=......................+%%..:%%%%%%%%%%%%%%%%%%..:::----::::............................+*+............++* ",
|
||||
" *........................%%%%%%%%%%%%%#....%%%%%...:::---:::::..........................:.*.=..........++*% ",
|
||||
" %+........................:%%%%%%%%%%%%-....#%%%%....:::---:::::...........................+..-........=++* ",
|
||||
" *:.........................+%%%%%%%%%%%:....#%%%......:::---:::::..........................=..........-++*@ ",
|
||||
" *............=*#%%*+........*%%%%%%%%%%+....%%%#.......:::--::::::.........................-.........:+++% ",
|
||||
" #*.........+@@@@@@@@@*......:#%%.%%%%%%%%-..-%%%=........:::--::::::........................:........:+++* ",
|
||||
" #-......:*@@@@@@@@@@@%+.....+#%#.%++%%%%%%%%%%%+..........:::--::::::.......................:........++++% ",
|
||||
" *......+*@@@@#@@@@@@@@#+.....-*+=%.*%%%%%%%%%#*...........::::--::::::..............................++++##*# ",
|
||||
" *.....=#@@@@@+#@@@@@@@@*-......-**.%%%*#%%%#*=.............::::--::::::............................+++++*-.# ",
|
||||
" *.....@@@@@#%%+@@@@@@@@@*:.......:**%*=-+++-................:::---::::::..........................+++++....* ",
|
||||
" +....@@@@@@**+=*@@@@@@@@@*.........:**.......................:::---:::::::......................:+++++-....+ ",
|
||||
" %=...+@@@@@@@====@@@@@@@@@@*..................................::::---:::::::....................=++++++.....- ",
|
||||
" #-...@@@@@@@#=#===@@@@@@@@@#*......................::..........::::---:::::::..................++++++++......# ",
|
||||
" *:..=@@@@@@@=%@@===@@@@@@@@@*=................-+**#%@#*=.......::::----::::::::..............=+++++++*.......+ ",
|
||||
" *...*@@@@@@+*+@====*@@@@@@@@@*+.........-++%@@@@@@@@@@@%*:......::::----:::::::::.......-.-=++++++++++.......- ",
|
||||
" *...%@@@@@@+@**+====%@@@@@@@@@%**+=***%@@@@@@@@@@@@@@@@@@*=......::::----::::::::::......-*+++++++++*.........**# ",
|
||||
" %...@@@@@@%++++++++==@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@*+.....::::-----:::::::::::.......+*+++++**.....*:..%@#* ",
|
||||
" ..:@@@@@@*++++++++++@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@*+.....::::-----::::::::::::......-******=.....**+.*@@%* ",
|
||||
" ..-@@@@@@+++++++++++@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@*=....::::------::::::::::::::...-# @#*.....+%@@**@@@* ",
|
||||
" ..-@@@@@@++++++++++@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@*-....::::-------:::::::::::::::-* @=.....*@@@@%@@@*# ",
|
||||
" +.-@@@@@@#++++++++*@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@*....:::::-----=-::::::::::::::=##*@*.....-*@@@@@@@@*# ",
|
||||
" +.:@@@@@@@++++++++@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%*....::::---++*++:::::::::::::=*%@%......*@@@@@@@@@*@ ",
|
||||
" #..%@@@@@@#++++++@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@+*@@@@*-...:::::-+--*=-*-:::::::::::+%@+......=#@@@@@@@@@* ",
|
||||
" +.*@@@@@@@@***#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@+++@@@@@@*....::::+--***--+-::::::::::*+........*@@@@@@@@@@* ",
|
||||
" *.*@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@*=====@#@@@@@#=...::::++****+-*--:::::::::*........*@@@@@@@@@@*@ ",
|
||||
" %-+@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@*=========*+@@@@@@*...::::=********=---::::::.*......-+@@@@@@@@@@@* ",
|
||||
" *-@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@+======+===+@@@@@@@*:...:::+:+***+-*-----:::::.*+++++++@@@@@@@@@@@* ",
|
||||
" #=*@@@@@@@@@@@@@@@@@@@****@@@@@@@@@@@@@@@@@++++++#@@#=@@@@@@@@@*...:::+:-**=-==-------:::-++++++#@@@@@@@@@@@*# ",
|
||||
" *+@@@@@@@@@@@@@@@@@@@*%%%*@@@@@@@@@@@@@@@@+++++++%++=@@@@@@@@@*...::::*-+*-=+----------:+%*+#%@@@@@@@@@@@@#* ",
|
||||
" #+#@@@@@@@@@@@@@@@@@@*%%%%@@@@@@@@@@@@@@@@+++++++%#@+@@@@@@@@@*:...::::=***=------------*@@*#@@@@@@@@@@@@#* ",
|
||||
" **@@@@@@@@@@@@@@@@@@#*%%#@@@@@@@@@@@@@@@@+++++++++++@@@@@@@@@@=...:::::----------------*@@@#*@@@@@@@@@@*% ",
|
||||
" **@@@@@@@@@@@@@@@@@@@**@@@@@@@@@@@@@@@@@+++++++++++@@@@@@@@@@+...:::::---------------+%@@@@#*@@@@@@@@@* ",
|
||||
" %*@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@+++++++++++@@@@@@@@@@*....::::---------------*@@@@@@#*@@@@@@@@* ",
|
||||
" **@@@@@@@@@@@@@@*@@@@@@@@***@@@@@@@@@@@@+++++++++@@@@@@@@@@@*....:=::=-------------=#@@@@@@@#*@@@@@@%% ",
|
||||
" #*@@@@@@@@@@@@@@*@@@@@@*#%#%@@@@@@@@@@@**++++++#@@@@@@@@@@@*....:%+::-------------*@@@@@@@@@%*@@@@@*# ",
|
||||
" #*@@@@@@@@@@@@@@*%@@@#*%*%%@@@@@@@@@@@@****++#@@@@@@@@@@@@*...=%%%#-:-----------=#@@@@@@@@@@%*%@@@* ",
|
||||
" #*@@@@@@@@@@@@@@#***%%*%%@@@@@@@@@@@@@@@%##@@@@@@@@@@@@@@+....:%=:::-----------*@@@@@@@@@@@@@*#@%% ****% ",
|
||||
" %***#**#@@@@@@@@@@@@@@#*#%@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@+.....#::::----------*%@@@@@@@@@@@@@@%**%@@%@@@@**% ",
|
||||
" #*@@@@@@%*%@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%:.....+:::::--------=*@@@@@@@@@@@@@@@@@@@@@@@@@@@@*% ",
|
||||
" *@@@@@@@@@*#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@#......=:::::-------=*@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@* ",
|
||||
" #%@@@@@@@@@@*@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@*......::::::-------*%@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@# ",
|
||||
" *@@@@@@@@@@@@*@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%:......::::::------*%#*#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@# ",
|
||||
" *@@@@@@@@@@@@@**@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@#.......:::::::----*%*####@@@@@@@@@@@@@@@@@@@@@@@@@@@@* ",
|
||||
" #%@@@@@@@@@@@@*%**@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@-.......:::::::--=*%*######@@@@@@@@@@@@@@@@@@@@@@@@@@@@ ",
|
||||
" *@@@@@@@@@@@@#@@%**@@@@@@@@@@@@@@@@@@@@*****#@@@@@@@@@@@@@:........:::::::-++*#*######@@@@@@@@@@@@@@@@@@@@@@@@@@@@ ",
|
||||
" ##@@@@@@@@@@@%@@@%@#*%@@@@@@@@@@@@@@@**@@@@@%*%@@@@@@@@@@-.........:::::::*:...*######@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ ",
|
||||
" ##@@@@@@@@@@@@@@@#@%+*#@@@@@@@@@@@@*%@@@@@@@@*%@@@@@@@@:..........:::::+=.....*#####*@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ ",
|
||||
" %*@@@@@@@@@@@@@@@#*++++*%@@@@@@@@*%@@@@@@@@@@*@@@@@@%=...........:::.-......+%*###*%@@@@@@@@@@@@@@@@@@@@@@@@@@@@@# ",
|
||||
" #*# @@@@*++++++++*#%%@@*%@@@@@@@@@@@*%@@@%+.............-........+#@@@***@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@* ",
|
||||
" %##% @*+++++++++++++***@@@@@@@@@@@@*%%**...........=*+.......-*#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@# ",
|
||||
" %% #*#### *-=+++++++++++*%#@@@@@@@@@@@@@*+-.....:-=+*****++===+**#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@# ",
|
||||
" *%*#####%*:....:=++++**%@@*@@@@@@@@@@@@@*********++++*@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@* ",
|
||||
" %*######*.......-+**%@@@@@*@@@@@@@@@@@@#+++++++++=...#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@* ",
|
||||
" *######*********#%*%@@@@@*@@@@@@@@@@@@*++=-:.......-%@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@* ",
|
||||
" #*#####* #*@ #*@@@@*@@@@@@@@@@@**............=@@@@@@@@@@@@@@@@@@@@@@@@#%@@@@@@@@@@@@@@@@@#@@@@@@@@@@@%# ",
|
||||
" **###*% %** *#@@#%@@@@@@@@%*@#*...........=@@@@@@@@@@@@@@@@@@@@@@%* #*%%@@@@@@@@@%%**% *%@@@@@@@@@*% ",
|
||||
" #***#***# #*#@*@@@@@@@@@@@@#+..........-@@@@@@@@@@@@@@@@@@@@@%# %***********# #*%@@@@@@@%* ",
|
||||
" @#% %**@@@@@@@@@@@@@#*.........:%@@@@@@@@@@@@@@@@@@%*% #%%# **%@@@@#*% ",
|
||||
" %*@@@@@@@@@@@@@@*-........*@@@@@@@@@@@@@@@@%*% %****** ",
|
||||
" #*@@@@@@@@@@@@@@**:......*#*#@@@@@@@@@@%**% ",
|
||||
" **@@@@@@@@@@@@@@%**=...:*####@@@@@%#**# ",
|
||||
" #*@@@@@@@@@@@@@@@@#**+*#####******% ",
|
||||
" #**@@@@@@@@@@@@@%*****######% ",
|
||||
" #***#%@@@%%#**# #*###### ",
|
||||
" %*#**##% *#####* ",
|
||||
" %*###*% ",
|
||||
" #***% "
|
||||
]
|
||||
]
|
||||
@@ -16,6 +16,7 @@ const API_BASE_URL = getApiBaseUrl()
|
||||
// System Info
|
||||
export interface BeszelSystemInfo {
|
||||
name: string
|
||||
status: "up" | "down"
|
||||
info: {
|
||||
cpu: number
|
||||
ram: number
|
||||
|
||||
25
apps/dashboard/src/kuromi.tsx
Normal file
25
apps/dashboard/src/kuromi.tsx
Normal file
@@ -0,0 +1,25 @@
|
||||
import { useEffect, useState } from "react"
|
||||
import kuromiFrames from "./assets/kuromi-frames.json"
|
||||
|
||||
export function Kuromi() {
|
||||
const [frameIndex, setFrameIndex] = useState(0)
|
||||
|
||||
useEffect(() => {
|
||||
const interval = setInterval(() => {
|
||||
setFrameIndex((prev) => (prev + 1) % kuromiFrames.length)
|
||||
}, 300)
|
||||
|
||||
return () => clearInterval(interval)
|
||||
}, [])
|
||||
|
||||
const currentFrame = kuromiFrames[frameIndex]
|
||||
|
||||
return (
|
||||
<pre className="leading-none tracking-[0.6em] select-none font-mono text-black dark:text-white scale-[5%]">
|
||||
{currentFrame.map((line, index) => (
|
||||
// biome-ignore lint/suspicious/noArrayIndexKey: frame lines don't have unique identifiers
|
||||
<div key={index}>{line}</div>
|
||||
))}
|
||||
</pre>
|
||||
)
|
||||
}
|
||||
@@ -6,7 +6,7 @@ import { useEffect, useRef } from "react"
|
||||
import cn from "./components/lib/cn"
|
||||
import { Tile } from "./components/tile"
|
||||
|
||||
const LIGHT_CONTROL_TILE_SLIDER_BAR_COUNT = 40
|
||||
const LIGHT_CONTROL_TILE_SLIDER_BAR_COUNT = 36
|
||||
|
||||
// Store brightness as step (0-43) to match the 44 bars exactly
|
||||
// Step 0 = OFF, Steps 1-43 map to bars 42-0
|
||||
@@ -320,7 +320,7 @@ function BrightnessLevelLabel({ deviceName }: { deviceName: ZigbeeDeviceName })
|
||||
<p
|
||||
className={cn(
|
||||
"flex-1 text-right font-bold font-mono tracking-tigher",
|
||||
step === 0 ? "text-neutral-400" : "text-teal-400",
|
||||
step === 0 ? "text-neutral-400" : "text-teal-500 dark:text-teal-400",
|
||||
)}
|
||||
>
|
||||
{label}
|
||||
@@ -346,7 +346,7 @@ export function LightSceneTile({
|
||||
className={cn(
|
||||
"w-full gap-2 flex flex-row items-end justify-start h-full border tracking-tigher first:rounded-t-lg last:rounded-b-lg transition-all duration-150 active:transition-none",
|
||||
activeSceneId === id
|
||||
? "p-2 border-teal-500 text-teal-500 border-2 font-bold"
|
||||
? "p-2 border-teal-500 text-teal-500 dark:text-teal-400 border-2 font-bold"
|
||||
: "p-[9px] text-neutral-400 border-neutral-300 dark:border-neutral-800 active:shadow-inner active:bg-neutral-300 dark:active:bg-teal-500 active:text-neutral-900 font-lighter",
|
||||
)}
|
||||
>
|
||||
|
||||
110
apps/dashboard/src/use-auto-theme.ts
Normal file
110
apps/dashboard/src/use-auto-theme.ts
Normal file
@@ -0,0 +1,110 @@
|
||||
import { useEffect } from "react"
|
||||
|
||||
interface SunTimes {
|
||||
sunrise: Date
|
||||
sunset: Date
|
||||
}
|
||||
|
||||
function calculateSunTimes(latitude: number, longitude: number, date: Date = new Date()): SunTimes {
|
||||
const julianDay = getJulianDay(date)
|
||||
const julianCentury = (julianDay - 2451545) / 36525
|
||||
|
||||
const geomMeanLongSun = (280.46646 + julianCentury * (36000.76983 + julianCentury * 0.0003032)) % 360
|
||||
const geomMeanAnomSun = 357.52911 + julianCentury * (35999.05029 - 0.0001537 * julianCentury)
|
||||
|
||||
const eccentEarthOrbit = 0.016708634 - julianCentury * (0.000042037 + 0.0000001267 * julianCentury)
|
||||
|
||||
const sunEqOfCtr =
|
||||
Math.sin(toRadians(geomMeanAnomSun)) * (1.914602 - julianCentury * (0.004817 + 0.000014 * julianCentury)) +
|
||||
Math.sin(toRadians(2 * geomMeanAnomSun)) * (0.019993 - 0.000101 * julianCentury) +
|
||||
Math.sin(toRadians(3 * geomMeanAnomSun)) * 0.000289
|
||||
|
||||
const sunTrueLong = geomMeanLongSun + sunEqOfCtr
|
||||
const sunAppLong = sunTrueLong - 0.00569 - 0.00478 * Math.sin(toRadians(125.04 - 1934.136 * julianCentury))
|
||||
|
||||
const meanObliqEcliptic = 23 + (26 + (21.448 - julianCentury * (46.815 + julianCentury * (0.00059 - julianCentury * 0.001813))) / 60) / 60
|
||||
|
||||
const obliqCorr = meanObliqEcliptic + 0.00256 * Math.cos(toRadians(125.04 - 1934.136 * julianCentury))
|
||||
|
||||
const sunDeclin = toDegrees(Math.asin(Math.sin(toRadians(obliqCorr)) * Math.sin(toRadians(sunAppLong))))
|
||||
|
||||
const varY = Math.tan(toRadians(obliqCorr / 2)) * Math.tan(toRadians(obliqCorr / 2))
|
||||
|
||||
const eqOfTime =
|
||||
4 *
|
||||
toDegrees(
|
||||
varY * Math.sin(2 * toRadians(geomMeanLongSun)) -
|
||||
2 * eccentEarthOrbit * Math.sin(toRadians(geomMeanAnomSun)) +
|
||||
4 * eccentEarthOrbit * varY * Math.sin(toRadians(geomMeanAnomSun)) * Math.cos(2 * toRadians(geomMeanLongSun)) -
|
||||
0.5 * varY * varY * Math.sin(4 * toRadians(geomMeanLongSun)) -
|
||||
1.25 * eccentEarthOrbit * eccentEarthOrbit * Math.sin(2 * toRadians(geomMeanAnomSun)),
|
||||
)
|
||||
|
||||
const haSunrise = toDegrees(Math.acos(Math.cos(toRadians(90.833)) / (Math.cos(toRadians(latitude)) * Math.cos(toRadians(sunDeclin))) - Math.tan(toRadians(latitude)) * Math.tan(toRadians(sunDeclin))))
|
||||
|
||||
const solarNoon = (720 - 4 * longitude - eqOfTime) / 1440
|
||||
const sunriseTime = solarNoon - (haSunrise * 4) / 1440
|
||||
const sunsetTime = solarNoon + (haSunrise * 4) / 1440
|
||||
|
||||
const sunrise = new Date(date)
|
||||
sunrise.setHours(0, 0, 0, 0)
|
||||
sunrise.setMinutes(sunriseTime * 1440)
|
||||
|
||||
const sunset = new Date(date)
|
||||
sunset.setHours(0, 0, 0, 0)
|
||||
sunset.setMinutes(sunsetTime * 1440)
|
||||
|
||||
return { sunrise, sunset }
|
||||
}
|
||||
|
||||
function getJulianDay(date: Date): number {
|
||||
const year = date.getFullYear()
|
||||
const month = date.getMonth() + 1
|
||||
const day = date.getDate()
|
||||
const hour = date.getHours()
|
||||
const minute = date.getMinutes()
|
||||
const second = date.getSeconds()
|
||||
|
||||
let a = Math.floor((14 - month) / 12)
|
||||
let y = year + 4800 - a
|
||||
let m = month + 12 * a - 3
|
||||
|
||||
let jdn = day + Math.floor((153 * m + 2) / 5) + 365 * y + Math.floor(y / 4) - Math.floor(y / 100) + Math.floor(y / 400) - 32045
|
||||
|
||||
return jdn + (hour - 12) / 24 + minute / 1440 + second / 86400
|
||||
}
|
||||
|
||||
function toRadians(degrees: number): number {
|
||||
return (degrees * Math.PI) / 180
|
||||
}
|
||||
|
||||
function toDegrees(radians: number): number {
|
||||
return (radians * 180) / Math.PI
|
||||
}
|
||||
|
||||
function isDarkMode(latitude: number, longitude: number): boolean {
|
||||
const now = new Date()
|
||||
const { sunrise, sunset } = calculateSunTimes(latitude, longitude, now)
|
||||
|
||||
return now < sunrise || now > sunset
|
||||
}
|
||||
|
||||
export function useAutoTheme(latitude: number, longitude: number) {
|
||||
useEffect(() => {
|
||||
const updateTheme = () => {
|
||||
const shouldBeDark = isDarkMode(latitude, longitude)
|
||||
|
||||
if (shouldBeDark) {
|
||||
document.documentElement.classList.add("dark")
|
||||
} else {
|
||||
document.documentElement.classList.remove("dark")
|
||||
}
|
||||
}
|
||||
|
||||
updateTheme()
|
||||
|
||||
const interval = setInterval(updateTheme, 60000)
|
||||
|
||||
return () => clearInterval(interval)
|
||||
}, [latitude, longitude])
|
||||
}
|
||||
@@ -1,5 +1,6 @@
|
||||
/** @type {import('tailwindcss').Config} */
|
||||
export default {
|
||||
darkMode: 'class',
|
||||
content: [
|
||||
"./index.html",
|
||||
"./src/**/*.{js,ts,jsx,tsx}",
|
||||
|
||||
Reference in New Issue
Block a user