Skip to content

armgit / WSM

Public Imported from GitHub
0

Run macOS applications on your Windows desktop, with a background runtime and integrated app windows.

C++

Prepare WSM 0.2.2 installer and runtime update

mxhm11crce768a5cccd5
diff --git a/packaging/build-release.ps1 b/packaging/build-release.ps1
index 2622952..b1ff361 100644
--- a/packaging/build-release.ps1
+++ b/packaging/build-release.ps1
@@ -13,13 +13,14 @@
# runtime\reims-ctl\qemu\current\ QEMU with reims-vgpu, x86-64 only, debug info stripped
# runtime\reims-ctl\prebuilt\ the GPU option ROM and macOS GPU kexts
# licenses\
-param([string]$Version = "0.2.0", [switch]$NoZip)
+param([string]$Version = "0.2.0", [switch]$NoZip, [string]$BinDir = "")
$ErrorActionPreference = 'Stop'
$root = Split-Path -Parent $PSScriptRoot
$stage = Join-Path $root "dist\WSM-$Version-win64"
$zip = Join-Path $root "dist\WSM-$Version-win64.zip"
$strip = Join-Path $root "toolchains\msys64\clang64\bin\llvm-strip.exe"
+if (-not $BinDir) { $BinDir = Join-Path $root 'build\native\bin' }
function Copy-Dir($from, $to, [string[]]$excludeFiles = @(), [string[]]$excludeDirs = @()) {
New-Item -ItemType Directory -Force -Path $to | Out-Null
@@ -36,7 +37,7 @@ New-Item -ItemType Directory -Force -Path "$stage\bin", "$stage\ui", "$stage\lic
# 1. WSM itself.
foreach ($exe in 'wsm.exe', 'wsmd.exe', 'WsmManager.exe', 'wsmlaunch.exe') {
- $p = Join-Path $root "build\native\bin\$exe"
+ $p = Join-Path $BinDir $exe
if (-not (Test-Path $p)) { throw "missing $exe - build first (cmake --build build\native)" }
Copy-Item $p "$stage\bin\" -Force
}
diff --git a/src/wsm-core/src/qmp_unix.cpp b/src/wsm-core/src/qmp_unix.cpp
index 04b0608..298736f 100644
--- a/src/wsm-core/src/qmp_unix.cpp
+++ b/src/wsm-core/src/qmp_unix.cpp
@@ -237,9 +237,14 @@ bool QmpUnixClient::send_key_combo(const std::vector<std::string>& qcodes, uint3
for (auto it = qcodes.rbegin(); it != qcodes.rend(); ++it) up_ev.emplace_back(*it, false);
std::string resp;
- if (!conn.command(build_input_key_event_cmd(down_ev), resp)) return false;
+ if (!conn.command(build_input_key_event_cmd(down_ev), resp)) {
+ conn.command(build_input_key_event_cmd(up_ev), resp);
+ return false;
+ }
if (hold_ms > 0) Sleep(hold_ms);
- return conn.command(build_input_key_event_cmd(up_ev), resp);
+ if (conn.command(build_input_key_event_cmd(up_ev), resp)) return true;
+ conn.command(build_input_key_event_cmd(up_ev), resp); // best effort: avoid stuck modifiers
+ return false;
}
bool QmpUnixClient::type_ascii_text(const std::string& text, uint32_t hold_ms, uint32_t gap_ms) const {
@@ -267,28 +272,33 @@ bool QmpUnixClient::type_ascii_text(const std::string& text, uint32_t hold_ms, u
bool shift_held = false;
for (char c : text) {
QmpKeySpec spec{};
- if (!ascii_to_qmp_key(c, spec)) continue;
+ if (!ascii_to_qmp_key(c, spec)) {
+ if (shift_held) send_single("shift", false);
+ return false;
+ }
if (spec.shift != shift_held) {
if (!send_single("shift", spec.shift)) {
- if (shift_held) send_single("shift", false);
+ send_single("shift", false);
return false;
}
shift_held = spec.shift;
if (hold_ms > 0) Sleep(hold_ms);
}
if (!send_single(spec.qcode, true)) {
+ send_single(spec.qcode, false);
if (shift_held) send_single("shift", false);
return false;
}
if (hold_ms > 0) Sleep(hold_ms);
if (!send_single(spec.qcode, false)) {
+ send_single(spec.qcode, false);
if (shift_held) send_single("shift", false);
return false;
}
if (gap_ms > 0) Sleep(gap_ms);
}
if (shift_held) {
- if (!send_single("shift", false)) return false;
+ if (!send_single("shift", false)) { send_single("shift", false); return false; }
if (gap_ms > 0) Sleep(gap_ms);
}
return true;
diff --git a/src/wsm-guest/agent/wsm-install.sh b/src/wsm-guest/agent/wsm-install.sh
index 7bcedb4..361ca32 100644
--- a/src/wsm-guest/agent/wsm-install.sh
+++ b/src/wsm-guest/agent/wsm-install.sh
@@ -111,8 +111,14 @@ for a in ${(u)installed}; do
ver=$(/usr/libexec/PlistBuddy -c "Print :CFBundleShortVersionString" "$plist" 2>/dev/null)
[[ -z "$id" ]] && continue
png="$icons/$id.png"
- # The icon exactly as Finder shows it (works for .icns and asset-catalog icons).
- osascript -l JavaScript - "$a" "$png" >/dev/null 2>&1 <<'JXA'
+ # Prefer an app's own .icns: sips does not need a fully started graphical session.
+ iconfile=$(/usr/libexec/PlistBuddy -c 'Print :CFBundleIconFile' "$plist" 2>/dev/null)
+ [[ -n "$iconfile" && "$iconfile" != *.icns ]] && iconfile="$iconfile.icns"
+ [[ -n "$iconfile" && -f "$a/Contents/Resources/$iconfile" ]] && \
+ /usr/bin/sips -s format png "$a/Contents/Resources/$iconfile" --out "$png" >/dev/null 2>&1 || true
+ # Fall back to Finder's icon for apps using asset catalogs.
+ if [[ ! -s "$png" ]]; then
+ osascript -l JavaScript - "$a" "$png" >/dev/null 2>&1 <<'JXA' &
ObjC.import('AppKit');
function run(argv) {
var img = $.NSWorkspace.sharedWorkspace.iconForFile(argv[0]);
@@ -126,5 +132,13 @@ function run(argv) {
rep.representationUsingTypeProperties(4, $()).writeToFileAtomically(argv[1], true);
}
JXA
+ # AppKit may hang during a fresh macOS login. A missing icon must not block app registration.
+ icon_pid=$!
+ ( sleep 30; kill "$icon_pid" 2>/dev/null ) &
+ icon_watchdog=$!
+ wait "$icon_pid" 2>/dev/null || true
+ kill "$icon_watchdog" 2>/dev/null || true
+ wait "$icon_watchdog" 2>/dev/null || true
+ fi
printf 'APP %s\t%s\t%s\t%s\t%s\n' "$id" "$name" "$ver" "$a" "$png"
done
diff --git a/src/wsm-guest/provision/wsm-offline-setup.sh b/src/wsm-guest/provision/wsm-offline-setup.sh
index 8be5dcd..73820e5 100644
--- a/src/wsm-guest/provision/wsm-offline-setup.sh
+++ b/src/wsm-guest/provision/wsm-offline-setup.sh
@@ -21,7 +21,12 @@ if [ -z "$D" ]; then
D=$(diskutil info "$dev" | awk -F': *' '/Mount Point/ {print $2}')
done
fi
-[ -n "$D" ] && [ -d "$D/private/var" ] || { log "no Data volume"; exit 2; }
+[ -n "$D" ] && [ -d "$D/private/var" ] || {
+ log "no Data volume; mounted volumes and APFS layout follow"
+ ls -1 /Volumes 2>/dev/null || true
+ diskutil apfs list 2>/dev/null | grep -E 'APFS Container|APFS Volume Disk|Name:|Mount Point:' || true
+ exit 2
+}
log "data volume: $D"
DS="$D/private/var/db/dslocal/nodes/Default"
diff --git a/src/wsm-manager/app.js b/src/wsm-manager/app.js
index adc3737..e76b54a 100644
--- a/src/wsm-manager/app.js
+++ b/src/wsm-manager/app.js
@@ -21,6 +21,7 @@ async function api(path, opts = {}) {
const RUNTIME_COPY = {
ready: { tone: "ready", text: "Ready" },
waiting_for_guest: { tone: "busy", text: "Waking up…" },
+ setup_attention: { tone: "bad", text: "macOS setup needs attention · save a diagnostic report in Settings" },
booting: { tone: "busy", text: "Waking up…" },
starting: { tone: "busy", text: "Waking up…" },
stopping: { tone: "busy", text: "Going to sleep…" },
@@ -32,7 +33,7 @@ const RUNTIME_COPY = {
function renderStatus() {
let s = RUNTIME_COPY[state.runtime] || { tone: "idle", text: "Checking the runtime…" };
- if (state.setup && state.setup.running) s = { tone: "busy", text: `Installing the runtime · ${Math.round(state.setup.percent || 0)}%` };
+ if (state.setup && state.setup.running) s = { tone: "busy", text: state.setup.state === "downloading" ? "Downloading macOS…" : `Installing the runtime · ${Math.round(state.setup.percent || 0)}%` };
if (state.runtime === "ready" && state.running.size) s = { tone: "ready", text: `Ready · ${state.running.size} open` };
const pill = $("status");
pill.dataset.tone = s.tone;
@@ -41,7 +42,7 @@ function renderStatus() {
if (s.action) { a.hidden = false; a.textContent = s.action[0]; a.onclick = s.action[1]; } else a.hidden = true;
$("rt-state").textContent = s.text;
- const awake = ["ready", "waiting_for_guest", "booting", "starting"].includes(state.runtime);
+ const awake = ["ready", "waiting_for_guest", "setup_attention", "booting", "starting"].includes(state.runtime);
$("rt-toggle").textContent = awake ? "Sleep" : "Wake";
}
@@ -90,11 +91,18 @@ function makeTile(app, i, firstPaint) {
const img = node.querySelector("img");
img.crossOrigin = "anonymous";
img.src = `${API}/api/apps/icon?id=${encodeURIComponent(app.id)}`;
- img.onload = () => node.style.setProperty("--glow", sampleGlow(img, app.id));
+ img.onload = () => {
+ img.hidden = false;
+ node.querySelector(".fallback-icon")?.remove();
+ delete node.dataset.iconRetry;
+ node.style.setProperty("--glow", sampleGlow(img, app.id));
+ };
img.onerror = () => {
+ if (node.querySelector(".fallback-icon")) return;
const f = document.createElement("span");
f.className = "fallback-icon"; f.textContent = initials(app.name);
- img.replaceWith(f);
+ img.hidden = true; img.after(f);
+ node.dataset.iconRetry = String(Date.now() + 30000);
};
if (state.glow.has(app.id)) node.style.setProperty("--glow", state.glow.get(app.id));
if (state.justInstalled.has(app.id)) { node.classList.add("pop"); state.justInstalled.delete(app.id); }
@@ -105,6 +113,10 @@ function makeTile(app, i, firstPaint) {
}
function syncTileState(node, app) {
+ if (node.dataset.iconRetry && Date.now() >= Number(node.dataset.iconRetry)) {
+ node.dataset.iconRetry = String(Date.now() + 30000);
+ node.querySelector("img").src = `${API}/api/apps/icon?id=${encodeURIComponent(app.id)}&t=${Date.now()}`;
+ }
const busy = state.busy.has(app.id);
const running = state.running.has(app.name);
node.toggleAttribute("data-busy", busy);
@@ -131,9 +143,9 @@ function installTile(job) {
function renderApps() {
const shelf = $("shelf");
const installing = state.install && state.install.running;
- const any = state.apps.length > 0 || installing;
- $("empty").hidden = any;
- shelf.hidden = !any;
+ // The shelf also contains the built-in app suggestions and Add app on a fresh install.
+ $("empty").hidden = true;
+ shelf.hidden = false;
$("count").hidden = state.apps.length === 0;
$("count").textContent = state.apps.length;
@@ -283,7 +295,32 @@ async function pollInstall() {
// Drop a Mac app anywhere on the window to install it. The page can't see file paths, so it
// hands the files to WSM's window, which posts the real path back.
-window.chrome?.webview?.addEventListener("message", (e) => { if (e.data?.installPath) installFile(e.data.installPath); });
+window.chrome?.webview?.addEventListener("message", (e) => {
+ if (e.data?.installPath) installFile(e.data.installPath);
+ if (e.data?.type !== "runtimePassword") return;
+ const message = $("password-message");
+ if (e.data.action === "capabilities") {
+ $("macos-account-settings").hidden = !e.data.ok;
+ } else if (e.data.action === "get") {
+ if (!$("settings").classList.contains("open")) return;
+ if (e.data.ok) {
+ $("runtime-password").value = e.data.password;
+ $("runtime-password").type = "text";
+ $("show-runtime-password").textContent = "Hide";
+ message.textContent = "";
+ } else message.textContent = e.data.message || "Password is unavailable.";
+ } else if (e.data.action === "set") {
+ $("save-runtime-password").disabled = false;
+ message.textContent = e.data.ok ? "Password updated." : (e.data.message || "Password could not be changed.");
+ if (e.data.ok) {
+ $("new-runtime-password").value = ""; $("confirm-runtime-password").value = "";
+ $("password-change-form").hidden = true;
+ $("runtime-password").value = ""; $("runtime-password").type = "password";
+ $("show-runtime-password").textContent = "Show";
+ }
+ }
+});
+window.chrome?.webview?.postMessage("runtime-password:capabilities");
let dragDepth = 0;
document.addEventListener("dragenter", (e) => { e.preventDefault(); dragDepth++; document.body.classList.add("dropping"); });
document.addEventListener("dragover", (e) => e.preventDefault());
@@ -333,7 +370,13 @@ function setSettings(open) {
$("settings").setAttribute("aria-hidden", String(!open));
$("scrim").hidden = !open;
requestAnimationFrame(() => $("scrim").classList.toggle("show", open));
- if (open) $("close-settings").focus();
+ if (open) { $("close-settings").focus(); refreshAutoStart(); refreshUsbDevices(); }
+ else {
+ $("runtime-password").value = ""; $("runtime-password").type = "password";
+ $("show-runtime-password").textContent = "Show";
+ $("new-runtime-password").value = ""; $("confirm-runtime-password").value = "";
+ $("password-change-form").hidden = true; $("password-message").textContent = "";
+ }
}
$("open-settings").onclick = () => setSettings(true);
$("close-settings").onclick = () => setSettings(false);
@@ -345,15 +388,84 @@ async function restartRuntime() {
refreshRuntime();
}
$("rt-toggle").onclick = async () => {
- const awake = ["ready", "waiting_for_guest", "booting", "starting"].includes(state.runtime);
+ const awake = ["ready", "waiting_for_guest", "setup_attention", "booting", "starting"].includes(state.runtime);
await api(awake ? "/api/vm/sleep" : "/api/vm/start", { method: "POST" });
refreshRuntime();
};
+$("rt-stop").onclick = async () => {
+ if (!confirm("Shut down macOS? Open Mac apps will close.")) return;
+ const r = await api("/api/vm/stop", { method: "POST" });
+ if (!r.ok) toast(r.error || "Couldn't shut down the runtime.", "bad");
+ refreshRuntime();
+};
+async function refreshAutoStart() {
+ try {
+ const r = await api("/api/settings/auto-start");
+ const b = $("auto-start-toggle"); b.setAttribute("aria-pressed", String(!!r.enabled)); b.textContent = r.enabled ? "On" : "Off";
+ } catch { toast("Couldn't read startup settings.", "bad"); }
+}
+$("auto-start-toggle").onclick = async () => {
+ const b = $("auto-start-toggle"); const enabled = b.getAttribute("aria-pressed") !== "true";
+ b.disabled = true;
+ try {
+ const r = await api("/api/settings/auto-start", { method: "POST", body: enabled ? "on" : "off" });
+ if (!r.ok) toast("Couldn't change startup settings.", "bad");
+ await refreshAutoStart();
+ } catch { toast("Couldn't change startup settings.", "bad"); }
+ finally { b.disabled = false; }
+};
+async function refreshUsbDevices() {
+ const list = $("usb-devices");
+ list.textContent = "Looking for Apple USB devices…";
+ try {
+ const r = await api("/api/usb/devices");
+ if (!r.ok) { list.textContent = r.error || "USB support is unavailable."; return; }
+ list.replaceChildren();
+ if (!r.devices.length) { list.textContent = "No Apple USB devices found."; return; }
+ for (const d of r.devices) {
+ const row = document.createElement("div"); row.className = "row";
+ const name = document.createElement("span");
+ name.textContent = `Apple USB device · ${d.product.toString(16).padStart(4, "0")} · ${d.bus}:${d.address}`;
+ const button = document.createElement("button"); button.className = "btn";
+ button.textContent = d.attached ? "Disconnect" : "Connect";
+ button.onclick = async () => {
+ button.disabled = true;
+ try {
+ const result = await api(d.attached ? "/api/usb/detach" : "/api/usb/attach", {
+ method: "POST", body: `${d.bus} ${d.address} ${d.product}`
+ });
+ if (!result.ok) toast(result.error || "Couldn't change USB connection.", "bad");
+ } catch { toast("Couldn't change USB connection.", "bad"); }
+ await refreshUsbDevices();
+ };
+ row.append(name, button); list.appendChild(row);
+ }
+ } catch { list.textContent = "Couldn't list USB devices."; }
+}
+$("usb-refresh").onclick = refreshUsbDevices;
$("open-shared").onclick = () => api("/api/fs/open", { method: "POST" });
$("export-report").onclick = async () => {
const r = await api("/api/diagnostics/export", { method: "POST" });
toast(r.ok ? `Report saved to ${r.path}` : "Couldn't save the report.", r.ok ? "ok" : "bad");
};
+$("show-runtime-password").onclick = () => {
+ const input = $("runtime-password");
+ if (input.type === "text") { input.value = ""; input.type = "password"; $("show-runtime-password").textContent = "Show"; return; }
+ if (!window.chrome?.webview) { $("password-message").textContent = "Open WSM Manager to view the runtime password."; return; }
+ window.chrome.webview.postMessage("runtime-password:get");
+};
+$("change-runtime-password").onclick = () => { $("password-change-form").hidden = !$("password-change-form").hidden; };
+$("save-runtime-password").onclick = () => {
+ const value = $("new-runtime-password").value;
+ const message = $("password-message");
+ if (value !== $("confirm-runtime-password").value) { message.textContent = "Passwords do not match."; return; }
+ if (value.length < 8 || value.length > 128 || !/^[\x20-\x7e]+$/.test(value)) {
+ message.textContent = "Use 8–128 standard printable characters."; return;
+ }
+ if (!window.chrome?.webview) { message.textContent = "Open WSM Manager to change the password."; return; }
+ $("save-runtime-password").disabled = true; message.textContent = "Changing password…";
+ window.chrome.webview.postMessage("runtime-password:set:" + value);
+};
$("add-app").onclick = addApp;
$("empty-add").onclick = addApp;
@@ -415,6 +527,8 @@ refreshRuntime();
pollInstall();
checkStorage();
setInterval(refreshRuntime, 2500);
+// Pick up App Store registrations even if an automatic job starts and finishes between polls.
+setInterval(refreshApps, 10000);
// Deep link: WsmManager.exe --settings opens straight to Settings.
if (location.hash === "#settings") setSettings(true);
diff --git a/src/wsm-manager/index.html b/src/wsm-manager/index.html
index 23b41cb..ed62c61 100644
--- a/src/wsm-manager/index.html
+++ b/src/wsm-manager/index.html
@@ -73,7 +73,11 @@
<div class="row-title" id="rt-version">macOS Tahoe</div>
<div class="row-sub" id="rt-state">—</div>
</div>
- <button class="btn" id="rt-toggle">Sleep</button>
+ <div><button class="btn" id="rt-toggle">Sleep</button> <button class="btn" id="rt-stop">Shut down</button></div>
+ </div>
+ <div class="row">
+ <div><div class="row-title">Start with Windows</div><div class="row-sub">Start WSM and its runtime automatically when you sign in.</div></div>
+ <button class="btn" id="auto-start-toggle" type="button" aria-pressed="false">Off</button>
</div>
<div class="row">
<div>
@@ -102,6 +106,38 @@
</div>
</section>
+ <section class="group" id="macos-account-settings" hidden>
+ <h3>macOS account</h3>
+ <div class="group-card">
+ <div class="password-settings">
+ <div class="row-title">Runtime password</div>
+ <div class="row-sub">Use this password when a Mac app asks for authorization. The runtime must be running to change it.</div>
+ <div class="password-line">
+ <input id="runtime-password" type="password" readonly value="" placeholder="Hidden" autocomplete="off" aria-label="Current runtime password" />
+ <button class="btn" id="show-runtime-password" type="button">Show</button>
+ <button class="btn" id="change-runtime-password" type="button">Change</button>
+ </div>
+ <div id="password-change-form" class="password-form" hidden>
+ <label>New password<input id="new-runtime-password" type="password" autocomplete="new-password" maxlength="128" /></label>
+ <label>Confirm new password<input id="confirm-runtime-password" type="password" autocomplete="new-password" maxlength="128" /></label>
+ <div class="row-sub">Use 8–128 standard printable characters.</div>
+ <button class="btn" id="save-runtime-password" type="button">Save password</button>
+ </div>
+ <div class="row-sub" id="password-message" role="status" aria-live="polite"></div>
+ </div>
+ </div>
+ </section>
+
+ <section class="group">
+ <h3>Apple USB devices</h3>
+ <div class="group-card">
+ <div class="row"><div><div class="row-title">iPhone and iPad (experimental)</div>
+ <div class="row-sub">A compatible WinUSB driver may be required. Connected devices may be unavailable to Windows.</div></div>
+ <button class="btn" id="usb-refresh">Refresh</button></div>
+ <div id="usb-devices" aria-live="polite" class="row-sub"></div>
+ </div>
+ </section>
+
<section class="group">
<h3>Files</h3>
<div class="group-card">
diff --git a/src/wsm-manager/setup.js b/src/wsm-manager/setup.js
index c171649..98a7be3 100644
--- a/src/wsm-manager/setup.js
+++ b/src/wsm-manager/setup.js
@@ -180,6 +180,7 @@ function animatePercent(to) {
const from = S.shown;
const t0 = performance.now(), dur = reduceMotion ? 0 : 900;
const step = (t) => {
+ if (document.getElementById("ring")?.classList.contains("indeterminate")) return;
const k = dur ? Math.min(1, (t - t0) / dur) : 1;
const v = Math.round(from + (to - from) * (1 - Math.pow(1 - k, 3)));
el.textContent = v + "%";
@@ -194,14 +195,21 @@ async function poll() {
const s = await api("/api/setup/progress");
const ring = document.getElementById("ring"); if (!ring) return;
const pct = Math.max(1, Math.min(100, Math.round(s.percent || 0)));
- ring.style.strokeDashoffset = String(534 * (1 - pct / 100));
- animatePercent(pct);
+ // Download progress belongs to individual files; copy progress is estimated from time.
+ // Neither is a truthful percentage of the whole installation.
+ const indeterminate = s.state === "downloading" || s.state === "copying";
+ ring.classList.toggle("indeterminate", indeterminate);
+ ring.style.strokeDashoffset = indeterminate ? "390" : String(534 * (1 - pct / 100));
+ if (indeterminate) document.getElementById("pct").textContent = "…";
+ else animatePercent(pct);
document.getElementById("eta").textContent = s.title || "Working";
document.getElementById("detail").textContent = s.detail || "";
+ // Recovery and first-run choices are handled automatically by the runtime.
+ const phasePct = s.state === "downloading" ? 8 : pct;
document.querySelectorAll("#phases li").forEach((li, i, all) => {
const at = +li.dataset.at, next = i + 1 < all.length ? +all[i + 1].dataset.at : 101;
- li.classList.toggle("done", pct >= next || s.state === "ready");
- li.classList.toggle("now", pct >= at && pct < next && s.state !== "ready");
+ li.classList.toggle("done", phasePct >= next || s.state === "ready");
+ li.classList.toggle("now", phasePct >= at && phasePct < next && s.state !== "ready");
});
const err = document.getElementById("err");
if (s.state === "failed") {
diff --git a/src/wsm-manager/styles.css b/src/wsm-manager/styles.css
index 73ef2ed..edac0c4 100644
--- a/src/wsm-manager/styles.css
+++ b/src/wsm-manager/styles.css
@@ -3,7 +3,7 @@
Motion is soft and springy, and always stops for prefers-reduced-motion. */
@property --p { syntax: "<number>"; inherits: true; initial-value: 0; }
:root {
- color-scheme: light dark;
+ color-scheme: dark;
--ink: #10131a;
--ink-2: #4c5466;
--ink-3: #868ea0;
@@ -49,8 +49,7 @@
--ease-out: cubic-bezier(.16, 1, .3, 1);
--spring: cubic-bezier(.34, 1.56, .64, 1);
}
-@media (prefers-color-scheme: dark) {
- :root {
+:root {
--ink: #f3f5fb;
--ink-2: #a9b1c4;
--ink-3: #747d92;
@@ -72,7 +71,6 @@
--aurora-a: rgba(49, 86, 255, 0.34);
--aurora-b: rgba(25, 181, 242, 0.22);
--aurora-c: rgba(146, 92, 255, 0.22);
- }
}
* { box-sizing: border-box; }
@@ -309,6 +307,15 @@ body.dropping .drop-card { transform: none; }
.row + .row { border-top: 1px solid var(--line); }
.row-title { font-weight: 600; }
.row-sub { color: var(--ink-2); font-size: var(--t-sm); margin-top: 2px; max-width: 36ch; }
+.password-settings { padding: 14px 16px; }
+.password-line { display: flex; gap: 8px; margin-top: 12px; }
+.password-line input, .password-form input { min-width: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--glass-strong); padding: 8px 10px; }
+.password-line input { flex: 1; }
+.password-form { margin-top: 14px; }
+.password-form[hidden] { display: none; }
+.password-form label { display: block; margin: 8px 0; font-size: var(--t-sm); color: var(--ink-2); }
+.password-form label input { display: block; width: 100%; margin-top: 4px; color: var(--ink); }
+.password-form button { margin-top: 10px; }
.meter { height: 6px; border-radius: 999px; background: var(--hover); margin-top: 8px; overflow: hidden; width: 220px; }
.meter i { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--brand-1), var(--brand-2)); transition: width .8s var(--ease-out); }
.segmented { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--hover); border: 1px solid var(--line); }
@@ -428,6 +435,7 @@ body.dropping .drop-card { transform: none; }
.big-ring circle { fill: none; stroke-width: 12; }
.big-ring .track { stroke: var(--hover); }
.big-ring .fill { stroke: url(#ring-grad); stroke-dasharray: 534; stroke-dashoffset: 534; transition: stroke-dashoffset 1s var(--ease-out); filter: drop-shadow(0 4px 10px color-mix(in srgb, var(--brand-1) 45%, transparent)); }
+.big-ring .fill.indeterminate { transform-origin: 50% 50%; animation: spin 1.2s linear infinite; }
.big-ring .num { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.big-ring .num b { font: 650 40px/1 var(--display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.big-ring .num small { display: block; color: var(--ink-3); font-size: var(--t-sm); margin-top: 4px; }
diff --git a/src/wsm-runtime/CMakeLists.txt b/src/wsm-runtime/CMakeLists.txt
index 205efd6..660e7fc 100644
--- a/src/wsm-runtime/CMakeLists.txt
+++ b/src/wsm-runtime/CMakeLists.txt
@@ -5,6 +5,7 @@ add_library(wsm-appman STATIC
src/provisioner.cpp
src/runtime_host.cpp
src/window_streamer.cpp
+ src/setup_assistant.cpp
src/app_installer.cpp
src/webdav_server.cpp
)
@@ -39,7 +40,8 @@ target_link_libraries(wsmd PRIVATE
ws2_32
)
-add_executable(WsmManager WIN32 src/wsm_manager_launcher.cpp)
+add_executable(WsmManager WIN32 src/wsm_manager_launcher.cpp src/runtime_password.cpp)
+target_include_directories(WsmManager PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/include")
target_include_directories(WsmManager PRIVATE
"F:/WSM/third_party/webview2/build/native/include"
)
@@ -50,6 +52,7 @@ target_link_libraries(WsmManager PRIVATE
ole32
ws2_32
shell32
+ advapi32
)
# Target of every Mac app's Start menu / Desktop shortcut (GUI subsystem: no console flash).
diff --git a/src/wsm-runtime/include/wsm/diagnostic_output.hpp b/src/wsm-runtime/include/wsm/diagnostic_output.hpp
new file mode 100644
index 0000000..476cc04
--- /dev/null
+++ b/src/wsm-runtime/include/wsm/diagnostic_output.hpp
@@ -0,0 +1,25 @@
+#pragma once
+#include <filesystem>
+#include <fstream>
+#include <string>
+#include <vector>
+
+namespace wsm::runtime {
+inline bool write_diagnostic_report(const std::vector<std::filesystem::path>& directories,
+ const std::string& filename, const std::string& text,
+ std::string& output_path) {
+ for (const auto& dir : directories) {
+ if (dir.empty()) continue;
+ const auto file = dir / filename;
+ std::ofstream out(file, std::ios::binary | std::ios::trunc);
+ if (!out) continue;
+ out.write(text.data(), static_cast<std::streamsize>(text.size()));
+ out.flush();
+ if (!out) continue;
+ const auto utf8 = file.u8string();
+ output_path.assign(reinterpret_cast<const char*>(utf8.data()), utf8.size());
+ return true;
+ }
+ return false;
+}
+}
diff --git a/src/wsm-runtime/include/wsm/guest_app_path.hpp b/src/wsm-runtime/include/wsm/guest_app_path.hpp
new file mode 100644
index 0000000..0fa1a64
--- /dev/null
+++ b/src/wsm-runtime/include/wsm/guest_app_path.hpp
@@ -0,0 +1,49 @@
+#pragma once
+#include <string>
+
+namespace wsm::runtime {
+
+// App Store apps are already installed in one of these locations. Treat the path as UTF-8;
+// do not interpret it as a Windows filesystem path.
+inline bool is_guest_app_path(const std::string& path) {
+ if (path.rfind("/Applications/", 0) != 0 && path.rfind("/System/Applications/", 0) != 0) return false;
+ if (path.size() < 5 || path.compare(path.size() - 4, 4, ".app") != 0) return false;
+ for (unsigned char c : path) if (c < 32 || c == 127) return false;
+ size_t begin = 1;
+ while (begin < path.size()) {
+ size_t end = path.find('/', begin);
+ if (end == std::string::npos) end = path.size();
+ const auto part = path.substr(begin, end - begin);
+ if (part.empty() || part == "." || part == "..") return false;
+ begin = end + 1;
+ }
+ return true;
+}
+
+inline std::string guest_app_name(const std::string& path) {
+ const auto slash = path.rfind('/');
+ std::string name = path.substr(slash == std::string::npos ? 0 : slash + 1);
+ if (name.size() >= 4 && name.compare(name.size() - 4, 4, ".app") == 0) name.resize(name.size() - 4);
+ return name;
+}
+
+inline std::string guest_shell_quote(const std::string& text) {
+ std::string result = "'";
+ for (char c : text) result += c == '\'' ? "'\\''" : std::string(1, c);
+ return result + "'";
+}
+
+inline std::string guest_command_base64(const std::string& input) {
+ static const char alphabet[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
+ std::string result;
+ unsigned int val = 0; int bits = -6;
+ for (unsigned char c : input) {
+ val = (val << 8) | c; bits += 8;
+ while (bits >= 0) { result += alphabet[(val >> bits) & 63]; bits -= 6; }
+ }
+ if (bits > -6) result += alphabet[((val << 8) >> (bits + 8)) & 63];
+ while (result.size() % 4) result += '=';
+ return result;
+}
+
+} // namespace wsm::runtime
diff --git a/src/wsm-runtime/include/wsm/reims_registry.hpp b/src/wsm-runtime/include/wsm/reims_registry.hpp
new file mode 100644
index 0000000..9e18436
--- /dev/null
+++ b/src/wsm-runtime/include/wsm/reims_registry.hpp
@@ -0,0 +1,15 @@
+#pragma once
+#include <filesystem>
+#include <system_error>
+
+namespace wsm::runtime {
+// Legacy installations use reims-ctl's shared registry. New installations get a registry
+// under their own root, persisted by the directory so it survives the VM being created.
+inline bool should_isolate_reims_registry(const std::filesystem::path& root) {
+ std::error_code ec;
+ const auto registry = root / "runtime" / "config" / "reims-ctl";
+ if (std::filesystem::is_directory(registry, ec)) return true;
+ ec.clear();
+ return !std::filesystem::exists(root / "runtime" / "reims-ctl" / "vms" / "wsm-default" / "vm.toml", ec) && !ec;
+}
+}
diff --git a/src/wsm-runtime/include/wsm/runtime_password.hpp b/src/wsm-runtime/include/wsm/runtime_password.hpp
new file mode 100644
index 0000000..b40b587
--- /dev/null
+++ b/src/wsm-runtime/include/wsm/runtime_password.hpp
@@ -0,0 +1,7 @@
+#pragma once
+#include <string>
+
+namespace wsm::runtime {
+bool read_runtime_password(const std::string& root, std::string& password, std::string& error);
+bool change_runtime_password(const std::string& root, const std::string& password, std::string& error);
+}
diff --git a/src/wsm-runtime/include/wsm/setup_assistant.hpp b/src/wsm-runtime/include/wsm/setup_assistant.hpp
new file mode 100644
index 0000000..b202dbd
--- /dev/null
+++ b/src/wsm-runtime/include/wsm/setup_assistant.hpp
@@ -0,0 +1,9 @@
+#pragma once
+#include <cstdint>
+
+namespace wsm::runtime {
+enum class SetupAssistantStep { Unknown, Country, Update, Account, AccountMenu, AccountConfirm, AgeRange, FileVault, FileVaultConfirm, Welcome };
+struct SetupAssistantAction { SetupAssistantStep step = SetupAssistantStep::Unknown; int x = 0, y = 0; };
+// Only recognize known setup screens; unknown screens must never cause an automatic click.
+SetupAssistantAction recognize_setup_assistant(const uint8_t* rgb, int width, int height);
+}
diff --git a/src/wsm-runtime/include/wsm/shell_integration.hpp b/src/wsm-runtime/include/wsm/shell_integration.hpp
index 819348e..7d868dc 100644
--- a/src/wsm-runtime/include/wsm/shell_integration.hpp
+++ b/src/wsm-runtime/include/wsm/shell_integration.hpp
@@ -17,7 +17,7 @@ bool create_app_start_menu_shortcut(const std::string& app_name,
// Registers HKCU\Software\Classes file associations for .dmg, .pkg, and .app
// so double-clicking them in Windows Explorer invokes `wsm.exe open "%1"` (no admin required).
// Removes the Start menu and Desktop shortcuts of an app.
-void remove_app_shortcuts(const std::string& app_name);
+void remove_app_shortcuts(const std::string& app_name, const std::string& bundle_id);
bool register_windows_shell_associations(const std::string& wsm_exe_path, std::string& err);
diff --git a/src/wsm-runtime/include/wsm/ssh_private_key.hpp b/src/wsm-runtime/include/wsm/ssh_private_key.hpp
new file mode 100644
index 0000000..e0e6f24
--- /dev/null
+++ b/src/wsm-runtime/include/wsm/ssh_private_key.hpp
@@ -0,0 +1,93 @@
+#pragma once
+#include <windows.h>
+#include <aclapi.h>
+#include <cstdint>
+#include <filesystem>
+#include <fstream>
+#include <iomanip>
+#include <iterator>
+#include <sstream>
+#include <string>
+#include <vector>
+
+namespace wsm::runtime {
+// Restrict a file or directory to the current account, including inherited permissions.
+inline bool restrict_to_current_account(const std::filesystem::path& path, bool directory = false) {
+ HANDLE token = nullptr;
+ if (!OpenProcessToken(GetCurrentProcess(), TOKEN_QUERY, &token)) return false;
+ DWORD size = 0;
+ GetTokenInformation(token, TokenUser, nullptr, 0, &size);
+ std::vector<unsigned char> bytes(size);
+ bool ok = size && GetTokenInformation(token, TokenUser, bytes.data(), size, &size);
+ CloseHandle(token);
+ if (!ok) return false;
+ auto* sid = reinterpret_cast<TOKEN_USER*>(bytes.data())->User.Sid;
+ EXPLICIT_ACCESSW entry{};
+ entry.grfAccessPermissions = FILE_ALL_ACCESS;
+ entry.grfAccessMode = SET_ACCESS;
+ entry.grfInheritance = directory ? SUB_CONTAINERS_AND_OBJECTS_INHERIT : NO_INHERITANCE;
+ entry.Trustee.TrusteeForm = TRUSTEE_IS_SID;
+ entry.Trustee.TrusteeType = TRUSTEE_IS_USER;
+ entry.Trustee.ptstrName = reinterpret_cast<LPWSTR>(sid);
+ PACL acl = nullptr;
+ if (SetEntriesInAclW(1, &entry, nullptr, &acl) != ERROR_SUCCESS) return false;
+ std::wstring name = path.wstring();
+ DWORD rc = SetNamedSecurityInfoW(name.data(), SE_FILE_OBJECT,
+ DACL_SECURITY_INFORMATION | PROTECTED_DACL_SECURITY_INFORMATION, nullptr, nullptr, acl, nullptr);
+ LocalFree(acl);
+ if (rc != ERROR_SUCCESS) return false;
+ PACL actual = nullptr; PSECURITY_DESCRIPTOR descriptor = nullptr;
+ rc = GetNamedSecurityInfoW(name.data(), SE_FILE_OBJECT, DACL_SECURITY_INFORMATION,
+ nullptr, nullptr, &actual, nullptr, &descriptor);
+ if (rc != ERROR_SUCCESS) return false;
+ ACL_SIZE_INFORMATION info{}; void* item = nullptr;
+ SECURITY_DESCRIPTOR_CONTROL control{}; DWORD revision = 0;
+ ok = actual && GetSecurityDescriptorControl(descriptor, &control, &revision) &&
+ (control & SE_DACL_PROTECTED) && GetAclInformation(actual, &info, sizeof(info), AclSizeInformation) &&
+ info.AceCount == 1 && GetAce(actual, 0, &item);
+ if (ok) {
+ auto* ace = static_cast<ACCESS_ALLOWED_ACE*>(item);
+ ok = ace->Header.AceType == ACCESS_ALLOWED_ACE_TYPE && EqualSid(sid, &ace->SidStart) &&
+ (ace->Mask & FILE_ALL_ACCESS) == FILE_ALL_ACCESS;
+ }
+ LocalFree(descriptor);
+ return ok;
+}
+
+inline bool same_key_contents(const std::filesystem::path& a, const std::filesystem::path& b) {
+ std::ifstream x(a, std::ios::binary), y(b, std::ios::binary);
+ if (!x || !y) return false;
+ return std::string(std::istreambuf_iterator<char>(x), {}) == std::string(std::istreambuf_iterator<char>(y), {});
+}
+
+// The guest key remains in its install. If that drive cannot enforce ACLs, use a
+// protected per-install copy on the Windows profile drive, never one shared by installs.
+inline std::string ssh_private_key_path_impl(const std::string& root, bool force_profile_copy) {
+ namespace fs = std::filesystem;
+ const fs::path key = fs::path(root) / "runtime" / "config" / "guest" / "id_ed25519";
+ std::error_code ec;
+ if (!fs::is_regular_file(key, ec)) return {};
+ if (!force_profile_copy && restrict_to_current_account(key)) return key.string();
+ char local[MAX_PATH]{};
+ const DWORD n = GetEnvironmentVariableA("LOCALAPPDATA", local, MAX_PATH);
+ if (!n || n >= MAX_PATH) return {};
+ // Stable FNV-1a identity, rather than the same filename for unrelated WSM roots.
+ uint64_t h = 14695981039346656037ull;
+ for (unsigned char c : fs::path(root).lexically_normal().string()) { h ^= c; h *= 1099511628211ull; }
+ std::ostringstream id; id << std::hex << std::setw(16) << std::setfill('0') << h;
+ const fs::path dir = fs::path(local) / "WSM" / "ssh" / id.str();
+ fs::create_directories(dir, ec);
+ if (ec || !restrict_to_current_account(dir, true)) return {};
+ const fs::path copy = dir / "id_ed25519";
+ if (same_key_contents(key, copy) && restrict_to_current_account(copy)) return copy.string();
+ const fs::path temp = dir / ("key-" + std::to_string(GetCurrentProcessId()) + "-" + std::to_string(GetCurrentThreadId()) + ".tmp");
+ if (!CopyFileW(key.c_str(), temp.c_str(), TRUE)) return {};
+ const bool safe = restrict_to_current_account(temp) &&
+ MoveFileExW(temp.c_str(), copy.c_str(), MOVEFILE_REPLACE_EXISTING | MOVEFILE_WRITE_THROUGH);
+ if (!safe) { DeleteFileW(temp.c_str()); return {}; }
+ return restrict_to_current_account(copy) ? copy.string() : std::string{};
+}
+inline std::string ssh_private_key_path(const std::string& root) {
+ return ssh_private_key_path_impl(root, false);
+}
+}
diff --git a/src/wsm-runtime/include/wsm/usb_passthrough.hpp b/src/wsm-runtime/include/wsm/usb_passthrough.hpp
new file mode 100644
index 0000000..2ad8111
--- /dev/null
+++ b/src/wsm-runtime/include/wsm/usb_passthrough.hpp
@@ -0,0 +1,45 @@
+#pragma once
+#include <windows.h>
+#include <cstdint>
+#include <string>
+#include <vector>
+
+namespace wsm::runtime {
+struct UsbAppleDevice { unsigned bus, address, product; };
+
+// Enumerate Apple's devices using the same libusb shipped with QEMU. Listing does not open or
+// rebind a device. Attaching still requires a suitable Windows driver and an explicit user action.
+inline bool enumerate_apple_usb(const std::string& root, std::vector<UsbAppleDevice>& result) {
+ const std::string dll = root + "\\runtime\\reims-ctl\\qemu\\current\\bin\\libusb-1.0.dll";
+ HMODULE lib = LoadLibraryA(dll.c_str());
+ if (!lib) return false;
+ struct Descriptor { uint8_t len, type; uint16_t usb; uint8_t cls, sub, protocol, packet;
+ uint16_t vendor, product, release; uint8_t manufacturer, name, serial, configs; };
+ static_assert(sizeof(Descriptor) == 18, "libusb descriptor layout");
+ using Init = int (*)(void**); using Exit = void (*)(void*);
+ using List = intptr_t (*)(void*, void***); using Free = void (*)(void**, int);
+ using Desc = int (*)(void*, Descriptor*); using Number = uint8_t (*)(void*);
+ auto init = reinterpret_cast<Init>(GetProcAddress(lib, "libusb_init"));
+ auto exit = reinterpret_cast<Exit>(GetProcAddress(lib, "libusb_exit"));
+ auto list = reinterpret_cast<List>(GetProcAddress(lib, "libusb_get_device_list"));
+ auto free_list = reinterpret_cast<Free>(GetProcAddress(lib, "libusb_free_device_list"));
+ auto desc = reinterpret_cast<Desc>(GetProcAddress(lib, "libusb_get_device_descriptor"));
+ auto bus = reinterpret_cast<Number>(GetProcAddress(lib, "libusb_get_bus_number"));
+ auto address = reinterpret_cast<Number>(GetProcAddress(lib, "libusb_get_device_address"));
+ bool ok = init && exit && list && free_list && desc && bus && address;
+ void* context = nullptr; void** devices = nullptr;
+ if (ok) ok = init(&context) == 0;
+ if (ok) {
+ intptr_t count = list(context, &devices); ok = count >= 0;
+ for (intptr_t i = 0; i < count; ++i) {
+ Descriptor d{};
+ if (desc(devices[i], &d) == 0 && d.vendor == 0x05ac && d.cls != 9)
+ result.push_back({bus(devices[i]), address(devices[i]), d.product});
+ }
+ if (devices) free_list(devices, 1);
+ exit(context);
+ }
+ FreeLibrary(lib);
+ return ok;
+}
+}
diff --git a/src/wsm-runtime/include/wsm/window_streamer.hpp b/src/wsm-runtime/include/wsm/window_streamer.hpp
index 0804579..684b959 100644
--- a/src/wsm-runtime/include/wsm/window_streamer.hpp
+++ b/src/wsm-runtime/include/wsm/window_streamer.hpp
@@ -51,7 +51,8 @@ public:
int guest_exec(const std::string& command, std::string* out = nullptr, uint32_t timeout_ms = 60000,
const std::function<void(const std::string&)>& on_line = {}) const;
// Runs a short command over the persistent shell session (fast path). Returns exit code.
- int quick(const std::string& command, std::string* out = nullptr, uint32_t timeout_ms = 15000);
+ int quick(const std::string& command, std::string* out = nullptr, uint32_t timeout_ms = 15000,
+ bool counts_as_activity = true);
// Copies a file into / out of the runtime user's home (remote paths relative to $HOME).
bool copy_to_guest(const std::string& local, const std::string& remote_rel) const;
bool copy_from_guest(const std::string& remote, const std::string& local) const;
@@ -67,6 +68,8 @@ public:
void kick();
bool watching() const noexcept { return watching_.load(); }
+ bool setup_active() const noexcept { return setup_active_.load(); }
+ bool setup_needs_attention() const noexcept { return setup_needs_attention_.load(); }
// Monotonic ms (steady_clock) of the last command, copy or input sent to the runtime.
int64_t last_activity_ms() const noexcept { return last_activity_ms_.load(); }
size_t window_count() const;
@@ -97,6 +100,7 @@ private:
};
void watch_loop();
+ void setup_assistant_loop();
void capture_loop();
void vnc_loop();
void input_loop();
@@ -114,6 +118,9 @@ private:
std::atomic<bool> running_{false};
std::atomic<bool> watching_{false};
+ std::atomic<bool> setup_active_{false};
+ std::atomic<bool> setup_detection_known_{false};
+ std::atomic<bool> setup_needs_attention_{false};
std::atomic<uint64_t> frames_{0};
std::atomic<int64_t> last_input_ms_{0};
// Diagnostics (ms): last screendump's duration, and input -> first presented change.
@@ -182,7 +189,7 @@ private:
std::deque<std::string> in_q_;
void* watch_proc_ = nullptr; // HANDLE of the ssh process
- std::thread watch_thread_, capture_thread_, input_thread_;
+ std::thread watch_thread_, capture_thread_, input_thread_, setup_thread_;
};
} // namespace wsm::runtime
diff --git a/src/wsm-runtime/src/app_installer.cpp b/src/wsm-runtime/src/app_installer.cpp
index d5ed4cf..7bd4dc5 100644
--- a/src/wsm-runtime/src/app_installer.cpp
+++ b/src/wsm-runtime/src/app_installer.cpp
@@ -1,4 +1,5 @@
#include "wsm/app_installer.hpp"
+#include "wsm/guest_app_path.hpp"
#include "wsm/shell_integration.hpp"
#include <windows.h>
@@ -119,21 +120,14 @@ uint64_t AppInstaller::start(const std::string& raw, bool open_after) {
}
uint64_t AppInstaller::start_builtin(const std::string& a, bool open_after) {
- // Only plain paths of apps that ship with macOS; it ends up inside a quoted shell command.
- bool ok = a.size() > 18 && a.compare(a.size() - 4, 4, ".app") == 0 && a.find("..") == std::string::npos &&
- (a.rfind("/Applications/", 0) == 0 || a.rfind("/System/Applications/", 0) == 0);
- for (char c : a)
- // Inside a single-quoted shell argument: anything but a quote or a control character is
- // literal there; App Store names use + & ( ) , too.
- if (!(std::isalnum(static_cast<unsigned char>(c)) || std::strchr("/ .-_+&(),", c)) || c == 0) ok = false;
- if (!ok || busy_.exchange(true)) return 0;
+ if (!is_guest_app_path(a) || busy_.exchange(true)) return 0;
uint64_t job = next_job_.fetch_add(1);
{
std::lock_guard<std::mutex> lk(mu_);
st_ = InstallStatus{};
st_.job = job;
st_.running = true;
- st_.file = fs::path(a).filename().string();
+ st_.file = guest_app_name(a);
st_.stage = "Getting ready";
st_.opens = open_after;
}
@@ -200,8 +194,12 @@ void AppInstaller::run(uint64_t, std::string path, bool open_after, bool builtin
std::string install_cmd;
if (builtin) {
// Ships with macOS: nothing to copy, the script only reports it (path vetted in start_builtin).
- set(45, "Adding " + fs::path(path).stem().string());
- install_cmd = "zsh ~/Library/Caches/WSM/wsm-install.sh --builtin '" + path + "' ~/Library/Caches/WSM/icons";
+ set(45, "Adding " + guest_app_name(path));
+ const std::string command = "zsh ~/Library/Caches/WSM/wsm-install.sh --builtin " +
+ guest_shell_quote(path) + " ~/Library/Caches/WSM/icons";
+ // SSH is launched through the Windows ANSI API; encode UTF-8 commands so Unicode app
+ // names arrive unchanged and shell metacharacters remain inside the quoted argument.
+ install_cmd = "printf %s " + guest_command_base64(command) + " | base64 -D | zsh";
} else {
// 2. Copy in. A folder (.app on Windows) is packed first; it can't be copied as one file.
set(20, "Copying " + fs::path(path).filename().string());
@@ -243,7 +241,8 @@ void AppInstaller::run(uint64_t, std::string path, bool open_after, bool builtin
});
if (rc != 0 || found.empty()) {
std::string why = last_error.empty() ? "the installer stopped unexpectedly" : last_error;
- fail(std::string(builtin ? "Couldn't add " : "Couldn't install ") + fs::path(path).stem().string() + ": " + why + ".");
+ fail(std::string(builtin ? "Couldn't add " : "Couldn't install ") +
+ (builtin ? guest_app_name(path) : fs::path(path).stem().string()) + ": " + why + ".");
return;
}
diff --git a/src/wsm-runtime/src/app_registry.cpp b/src/wsm-runtime/src/app_registry.cpp
index 076bc68..cf58093 100644
--- a/src/wsm-runtime/src/app_registry.cpp
+++ b/src/wsm-runtime/src/app_registry.cpp
@@ -29,6 +29,7 @@ std::string json_escape(const std::string& s) {
case '\\': out += "\\\\"; break;
case '\n': out += "\\n"; break;
case '\r': out += "\\r"; break;
+ case '\t': out += "\\t"; break;
default: out.push_back(c); break;
}
}
@@ -206,13 +207,24 @@ bool AppRegistry::load() {
if (colon == std::string::npos) return {};
auto q1 = l.find('"', colon + 1);
if (q1 == std::string::npos) return {};
- auto q2 = l.rfind('"');
- if (q2 == std::string::npos || q2 <= q1) return {};
- return l.substr(q1 + 1, q2 - q1 - 1);
+ std::string value;
+ for (size_t i = q1 + 1; i < l.size(); ++i) {
+ char c = l[i];
+ if (c == '"') return value;
+ if (c == '\\' && i + 1 < l.size()) {
+ c = l[++i];
+ if (c == 'n') c = '\n';
+ else if (c == 'r') c = '\r';
+ else if (c == 't') c = '\t';
+ }
+ value += c;
+ }
+ return {};
};
while (std::getline(f, line)) {
- if (line.find('{') != std::string::npos) { cur = AppBundleInfo{}; in_obj = true; }
- else if (line.find('}') != std::string::npos && in_obj) {
+ const auto start = line.find_first_not_of(" \t\r\n");
+ if (start != std::string::npos && line[start] == '{') { cur = AppBundleInfo{}; in_obj = true; }
+ else if (start != std::string::npos && line[start] == '}' && in_obj) {
if (!cur.id.empty()) apps_.push_back(cur);
in_obj = false;
} else if (in_obj) {
diff --git a/src/wsm-runtime/src/provisioner.cpp b/src/wsm-runtime/src/provisioner.cpp
index ea7b2f7..695f334 100644
--- a/src/wsm-runtime/src/provisioner.cpp
+++ b/src/wsm-runtime/src/provisioner.cpp
@@ -1,6 +1,8 @@
#include "wsm/provisioner.hpp"
#include "wsm/host_probe.hpp"
#include "wsm/qmp_unix.hpp"
+#include "wsm/setup_assistant.hpp"
+#include "wsm/ssh_private_key.hpp"
#include <windows.h>
@@ -170,7 +172,12 @@ int Provisioner::reims(const std::string& args, std::string* out) const {
if (b < pct) {
double v = atof(acc.substr(b, pct - b).c_str());
std::lock_guard<std::mutex> l(mu_);
- if (snap_.state == ProvState::Downloading) snap_.percent = 2 + v * 0.38;
+ // reims-ctl reports percentages for individual download/verification steps,
+ // not the total installer. They can legitimately return to zero.
+ if (snap_.state == ProvState::Downloading && v >= 0 && v <= 100) {
+ snap_.detail = "Current download step: " + acc.substr(b, pct - b) +
+ "% (the download has several steps)";
+ }
}
}
}
@@ -232,21 +239,24 @@ bool Provisioner::guest_shell(const std::string& cmd) {
// Paint neutral first so a stale green from a previous command can't be misread.
std::string line = std::string(kColourFns) + " printf '\\033[0m'; printf '\\033[2J\\033[3J\\033[H'; ( " + cmd + " ) && G || R";
log("guest$ " + cmd);
- // Clear any partial line or unclosed-quote continuation prompt (>) from an interrupted
- // command or retry before typing into Terminal.
- q.send_key_combo({"ctrl", "c"}, 40);
- Sleep(200);
// Keystrokes reach the guest after type_ascii_text returns, so the previous command's green
// could still be on screen when the next verdict is read, and pass a command that hadn't
// even run yet. Clear to neutral first and wait until the screen really shows no verdict.
// (The leading empty line also absorbs a keystroke lost while Terminal's window comes up.)
- if (!q.type_ascii_text("\nprintf '\\033[0m\\033[2J\\033[3J\\033[H'\n")) return false;
+ if (!q.type_ascii_text("\nprintf '\\033[0m\\033[2J\\033[3J\\033[H'\n")) {
+ log("failed to send Recovery Terminal reset command");
+ return false;
+ }
for (int i = 0; i < 60; ++i) {
std::vector<uint8_t> px; int w = 0, h = 0;
if (screen_dump(px, w, h) && read_verdict(px, w, h) == Verdict::None) break;
Sleep(1000);
}
- return q.type_ascii_text(line + "\n");
+ if (!q.type_ascii_text(line + "\n")) {
+ log("failed to send Recovery Terminal command");
+ return false;
+ }
+ return true;
}
// Waits for the colour verdict of the last guest_shell command.
@@ -291,7 +301,7 @@ bool Provisioner::open_recovery_terminal() {
for (int attempt = 0; attempt < 4; ++attempt) {
q.send_key_qcode("esc");
Sleep(800);
- q.send_key_combo({"shift", "meta_l", "t"}, 100);
+ if (!q.send_key_combo({"shift", "meta_l", "t"}, 100)) log("couldn't send Recovery Terminal shortcut");
Sleep(6000);
if (!terminal_visible()) {
q.send_mouse_click(static_cast<int>(122.0 / 872 * 32767), static_cast<int>(7.0 / 492 * 32767));
@@ -301,8 +311,7 @@ bool Provisioner::open_recovery_terminal() {
}
if (terminal_visible()) {
Sleep(3000);
- guest_shell("true");
- if (wait_verdict(this, dump, 30, nullptr) == Verdict::Green) return true;
+ if (guest_shell("true") && wait_verdict(this, dump, 30, nullptr) == Verdict::Green) return true;
}
log("Terminal not confirmed, retrying");
q.send_key_qcode("esc");
@@ -320,8 +329,17 @@ bool Provisioner::step_create_runtime() {
p.reuse_installer ? "Preparing macOS" : "Downloading macOS from Apple",
p.reuse_installer ? "Using the installer already on this PC" : "About 19.7 GB");
// reims-util reuses a complete installer image in the downloads folder and resumes a partial one.
- int rc = reims("create wsm-default --macos tahoe --offline --memory 5G --cpus 4 --ssh-port 2222 --network false");
- if (rc != 0) { fail("macOS couldn't be prepared. Check the internet connection and free space, then try again."); return false; }
+ std::string create_output;
+ // The first macOS boot can speak Setup Assistant prompts before the account exists.
+ // Keep only this VM silent during installation; enable its audio after offline setup.
+ int rc = reims("create wsm-default --macos tahoe --offline --memory 5G --cpus 4 --ssh-port 2222 --network false --audio false", &create_output);
+ if (rc != 0) {
+ if (create_output.find("a VM named wsm-default already exists") != std::string::npos)
+ fail("A WSM runtime with this name is already registered elsewhere. Save a diagnostic report so the existing runtime can be located safely.");
+ else
+ fail("macOS couldn't be prepared. Save a diagnostic report to check what went wrong, then try again.");
+ return false;
+ }
reims("set wsm-default --env REIMS_VGPU_WINDOW=1");
return true;
}
@@ -342,33 +360,48 @@ bool Provisioner::step_boot_recovery() {
bool Provisioner::step_install() {
auto dump = [this](std::vector<uint8_t>& p, int& w, int& h) { return screen_dump(p, w, h); };
+ auto verdict = [this, &dump](int timeout, const char* step, const std::function<void(int)>& tick) {
+ const auto result = wait_verdict(this, dump, timeout, tick);
+ log(std::string(step) + " verdict: " + (result == Verdict::Green ? "success" : result == Verdict::Red ? "command failed" : "no verdict before timeout"));
+ return result;
+ };
+ // Inspect structured diskutil data, not human-readable labels which vary across macOS
+ // versions. The exact mount point and writable flag both have to match.
+ const std::string pick_target =
+ "V=; for c in '/Volumes/Macintosh HD' /Volumes/MacintoshHD; do "
+ "I=$(diskutil info -plist \"$c\" 2>/dev/null) || continue; "
+ "M=$(printf '%s' \"$I\" | plutil -extract MountPoint raw -o - - 2>/dev/null); "
+ "W=$(printf '%s' \"$I\" | plutil -extract WritableVolume raw -o - - 2>/dev/null); "
+ "[ \"$M\" = \"$c\" ] && [ \"$W\" = true ] && V=$c; done; [ -n \"$V\" ]";
set(ProvState::PreparingDisk, 46, "Preparing the disk");
// The system disk is the internal physical disk that holds neither OpenCore nor the installer.
// If it already carries "Macintosh HD" with the Install app (an interrupted earlier run), keep it.
- guest_shell(
- "if [ -d '/Volumes/Macintosh HD/Applications' ] || [ -d /Volumes/MacintoshHD/Applications ]; then true; else "
+ if (!guest_shell(
+ "if ( " + pick_target + " ); then true; "
+ "elif [ -e '/Volumes/Macintosh HD' ] || [ -e /Volumes/MacintoshHD ]; then false; else "
"T=; for d in $(diskutil list internal physical | grep '^/dev/disk' | cut -d' ' -f1); do "
"diskutil list $d | grep -qE 'OPENCORE|Installer|RECOVERY' || T=$d; done; "
- "[ -n \"$T\" ] && diskutil eraseDisk APFS 'Macintosh HD' GPT $T; fi");
- if (wait_verdict(this, dump, 180, nullptr) != Verdict::Green) { fail("The disk for macOS couldn't be prepared."); return false; }
+ "[ -n \"$T\" ] && diskutil eraseDisk APFS 'Macintosh HD' GPT $T; fi")) {
+ fail("WSM couldn't send the disk preparation command. Save a diagnostic report."); return false;
+ }
+ if (verdict(180, "disk preparation", nullptr) != Verdict::Green) { fail("The disk for macOS couldn't be prepared."); return false; }
// Resolve the verified target: a mounted, writable volume (never a bare directory on the
// read-only Recovery root, which is what made the old script fail with //Install.XXXX).
- const std::string pick_target =
- "V=; for c in '/Volumes/Macintosh HD' /Volumes/MacintoshHD; do "
- "diskutil info \"$c\" 2>/dev/null | grep -qE '(Volume Read-Only|Read-Only Volume): *No' && V=$c; done; [ -n \"$V\" ]";
- guest_shell(pick_target);
- if (wait_verdict(this, dump, 60, nullptr) != Verdict::Green) { fail("The prepared disk wasn't available to the installer."); return false; }
+ if (!guest_shell(pick_target)) { fail("WSM couldn't check the prepared disk. Save a diagnostic report."); return false; }
+ if (verdict(60, "disk selection", nullptr) != Verdict::Green) { fail("The prepared disk wasn't available to the installer."); return false; }
set(ProvState::CopyingInstaller, 50, "Copying the installer", "This takes a few minutes");
- guest_shell(pick_target + " && A=$(ls -d \"$V\"/Applications/Install\\ macOS*.app 2>/dev/null | head -1); "
- "if [ -z \"$A\" ]; then L=\"${V}Applications\"; mkdir -p \"$V/Applications\"; ln -sfn \"$V/Applications\" \"$L\"; "
+ if (!guest_shell(pick_target + " && A=$(ls -d \"$V\"/Applications/Install\\ macOS*.app 2>/dev/null | head -1); "
+ "if [ -z \"$A\" ] || [ ! -x \"$A/Contents/Resources/startosinstall\" ]; then L=\"${V}Applications\"; mkdir -p \"$V/Applications\"; ln -sfn \"$V/Applications\" \"$L\"; "
"CM_BUILD=CM_BUILD installer -pkg /Volumes/Installer/InstallAssistant.pkg -target \"$V\"; rm -f \"$L\"; "
"A=$(ls -d \"$V\"/Applications/Install\\ macOS*.app | head -1); fi; "
"[ -f \"$A/Contents/SharedSupport/SharedSupport.dmg\" ] || { mkdir -p \"$A/Contents/SharedSupport\"; "
"cp /Volumes/Installer/InstallAssistant.pkg \"$A/Contents/SharedSupport/SharedSupport.dmg\"; }; "
- "chmod -R 755 \"$A\" && [ -x \"$A/Contents/Resources/startosinstall\" ]");
- if (wait_verdict(this, dump, 1800, [this](int t) {
+ "chmod -R 755 \"$A\" && [ -x \"$A/Contents/Resources/startosinstall\" ]")) {
+ fail("WSM couldn't send the installer copy command. Save a diagnostic report."); return false;
+ }
+ if (verdict(1800, "installer copy", [this](int t) {
std::lock_guard<std::mutex> l(mu_); snap_.percent = 50 + std::min(8.0, t / 60.0); }) != Verdict::Green) {
fail("The macOS installer couldn't be copied to the disk."); return false;
}
@@ -376,8 +409,11 @@ bool Provisioner::step_install() {
// License acceptance was given explicitly by the user in the setup wizard (recorded in
// runtime\config\license-acceptance.json) before begin() could be called.
set(ProvState::Installing, 58, "Installing macOS", "Your PC can be used normally meanwhile");
- guest_shell(pick_target + " && A=$(ls -d \"$V\"/Applications/Install\\ macOS*.app | head -1) && "
- "\"$A/Contents/Resources/startosinstall\" --agreetolicense --volume \"$V\"");
+ if (!guest_shell(pick_target + " && A=$(ls -d \"$V\"/Applications/Install\\ macOS*.app | head -1) && "
+ "{ \"$A/Contents/Resources/startosinstall\" --agreetolicense --volume \"$V\" > /tmp/wsm-install.log 2>&1 || "
+ "{ tail -n 16 /tmp/wsm-install.log; sleep 15; false; }; }")) {
+ fail("WSM couldn't start the macOS installation command. Save a diagnostic report."); return false;
+ }
return true;
}
@@ -387,22 +423,58 @@ bool Provisioner::step_wait_first_boot() {
// stays up with the disk quiet.
uint64_t start = disk_bytes(), last = start;
auto quiet_since = std::chrono::steady_clock::now();
- for (int t = 0; t < 4 * 3600; t += 20) {
- Sleep(20000);
+ for (int t = 0; t < 4 * 3600;) {
+ const int interval = t < 180 ? 5 : 20;
+ Sleep(interval * 1000); t += interval;
if (!vm_running()) { // the guest powered off rather than restarting: start it again
log("runtime stopped during install; starting it again");
reims("start wsm-default");
continue;
}
+ // Recovery paints a red verdict when startosinstall fails. A lit red screen is not a
+ // successful first boot; keep the screen for diagnostics and stop instead of claiming 95%.
+ std::vector<uint8_t> frame; int frame_w = 0, frame_h = 0;
+ const bool captured = screen_dump(frame, frame_w, frame_h);
+ const auto screen_verdict = captured ? read_verdict(frame, frame_w, frame_h) : Verdict::None;
+ if (captured && screen_verdict == Verdict::None && t <= 180) {
+ std::error_code ec;
+ fs::create_directories(root_ + "\\logs", ec);
+ fs::copy_file(root_ + "\\cache\\tmp\\prov_screen.ppm", root_ + "\\logs\\last-installer-screen.ppm",
+ fs::copy_options::overwrite_existing, ec);
+ }
+ if (captured && screen_verdict == Verdict::Red) {
+ std::error_code ec;
+ fs::create_directories(root_ + "\\logs", ec);
+ fs::copy_file(root_ + "\\cache\\tmp\\prov_screen.ppm", root_ + "\\logs\\installer-error-screen.ppm",
+ fs::copy_options::overwrite_existing, ec);
+ fail("The macOS installer reported an error before first boot. Save a diagnostic report.");
+ return false;
+ }
uint64_t now = disk_bytes();
- double grown = static_cast<double>(now - start) / (14.0 * 1024 * 1024 * 1024);
+ const uint64_t grown_bytes = now > start ? now - start : 0;
+ double grown = static_cast<double>(grown_bytes) / (14.0 * 1024 * 1024 * 1024);
{
std::lock_guard<std::mutex> l(mu_);
snap_.percent = std::max(snap_.percent, std::min(92.0, 58 + grown * 34));
}
+ const auto setup_screen = captured ? recognize_setup_assistant(frame.data(), frame_w, frame_h) : SetupAssistantAction{};
+ if (captured && (setup_screen.step == SetupAssistantStep::Country || setup_screen.step == SetupAssistantStep::AgeRange)) {
+ Sleep(2000);
+ std::vector<uint8_t> confirmation; int cw = 0, ch = 0;
+ if (screen_dump(confirmation, cw, ch) &&
+ recognize_setup_assistant(confirmation.data(), cw, ch).step == SetupAssistantStep::Country) {
+ log("macOS initial country setup detected; starting WSM account setup");
+ return true;
+ }
+ }
if (now != last) { last = now; quiet_since = std::chrono::steady_clock::now(); }
auto quiet = std::chrono::duration_cast<std::chrono::seconds>(std::chrono::steady_clock::now() - quiet_since).count();
- if (now - start > 6ull * 1024 * 1024 * 1024 && quiet > 240 && screen_fraction_nonblack() > 0.05) return true;
+ // A quiet qcow2 may still be actively written within already allocated blocks. Recovery
+ // Terminal remaining on screen means startosinstall has not reached first boot yet.
+ // File size and a lit screen do not prove installation has completed. Wake a sleeping
+ // display and wait for a positively recognised initial setup screen instead.
+ if (quiet > 240 && captured && screen_fraction_nonblack() <= 0.05)
+ wsm::core::QmpUnixClient(vm_dir_ + "\\qmp.sock").send_key_qcode("shift");
}
fail("Installing macOS took longer than 4 hours and was stopped.");
return false;
@@ -461,7 +533,7 @@ bool Provisioner::make_payload(std::string& dir, std::string& err) {
if (rc != 0 || !fs::exists(key + ".pub", ec)) { err = "Windows' OpenSSH client (ssh-keygen) isn't available."; return false; }
}
// OpenSSH refuses a private key other accounts can read.
- run_quiet("cmd.exe /c icacls.exe \"" + key + "\" /inheritance:r /grant:r \"%USERNAME%:F\"", 15000);
+ if (ssh_private_key_path(root_).empty()) { err = "WSM couldn't protect its private SSH key."; return false; }
// The runtime account's password (only for auto-login; WSM itself logs in with the key).
std::string pw = read_all(pwfile);
while (!pw.empty() && (pw.back() == '\n' || pw.back() == '\r' || pw.back() == ' ')) pw.pop_back();
@@ -570,7 +642,7 @@ bool Provisioner::boot_into_recovery() {
uint64_t before = sig, after = 0;
q.send_key_qcode("esc");
Sleep(800);
- q.send_key_combo({"shift", "meta_l", "t"}, 100);
+ if (!q.send_key_combo({"shift", "meta_l", "t"}, 100)) log("couldn't send Recovery Terminal shortcut");
Sleep(6000);
signature(after);
bool term = terminal_visible();
@@ -592,31 +664,31 @@ bool Provisioner::boot_into_recovery() {
}
bool Provisioner::ssh_ok(uint32_t timeout_ms) const {
- std::string cmd = "\"C:\\Windows\\System32\\OpenSSH\\ssh.exe\" -i \"" + root_ + "\\runtime\\config\\guest\\id_ed25519\"" +
- " -o BatchMode=yes -o StrictHostKeyChecking=no -o UserKnownHostsFile=NUL -o LogLevel=ERROR"
+ const std::string key = ssh_private_key_path(root_);
+ if (key.empty()) return false;
+ std::string cmd = "\"C:\\Windows\\System32\\OpenSSH\\ssh.exe\" -i \"" + key + "\"" +
+ " -o IdentitiesOnly=yes -o BatchMode=yes -o StrictHostKeyChecking=no -o UserKnownHostsFile=NUL -o LogLevel=ERROR"
" -o ConnectTimeout=8 -p " + std::to_string(ssh_port_) +
// sshd answers before anyone is signed in: ready means WSM's account owns the
// desktop (auto-login got past any first-run screen) and sudo needs no password.
- " [email protected] \"sudo -n true && [ \\\"$(stat -f %Su /dev/console)\\\" = wsm ]\"";
+ " [email protected] \"sudo -n true && [ \\\"$(stat -f %Su /dev/console)\\\" = wsm ] && "
+ "pgrep -x Finder >/dev/null && ! pgrep -x 'Setup Assistant' >/dev/null && "
+ "! pgrep -x SetupAssistantSpringboard >/dev/null\"";
return run_quiet(cmd, timeout_ms) == 0;
}
-// Apple's first-run screens put their action ("Get Started", "Continue") in a filled blue
-// button in the lower half. Click the centre of the largest such area, if there is one.
+// Only act on an exactly recognised setup screen, never an arbitrary blue button.
bool Provisioner::click_blue_button() {
std::vector<uint8_t> px; int w = 0, h = 0;
if (!screen_dump(px, w, h)) return false;
- long sx = 0, sy = 0, n = 0;
- for (int y = h / 2; y < h; y += 2)
- for (int x = w / 4; x < w * 3 / 4; x += 2) {
- const uint8_t* p = &px[(static_cast<size_t>(y) * w + x) * 3];
- if (p[2] > 190 && p[0] < 60 && p[1] > 90 && p[1] < 170) { sx += x; sy += y; ++n; }
- }
- if (n < 150) return false; // nothing button-sized
- int cx = static_cast<int>(sx / n), cy = static_cast<int>(sy / n);
- log("clicking the blue button at " + std::to_string(cx) + "," + std::to_string(cy));
- wsm::core::QmpUnixClient(vm_dir_ + "\\qmp.sock").send_mouse_click(cx * 32767 / w, cy * 32767 / h);
- return true;
+ const auto first = recognize_setup_assistant(px.data(), w, h);
+ if (first.step == SetupAssistantStep::Unknown || first.step == SetupAssistantStep::Country) return false;
+ Sleep(500);
+ if (!screen_dump(px, w, h)) return false;
+ const auto second = recognize_setup_assistant(px.data(), w, h);
+ if (second.step != first.step || second.x != first.x || second.y != first.y) return false;
+ log("handling a recognised first-sign-in setup screen");
+ return wsm::core::QmpUnixClient(vm_dir_ + "\\qmp.sock").send_mouse_click(first.x, first.y);
}
bool Provisioner::step_first_boot_setup() {
@@ -634,9 +706,20 @@ bool Provisioner::step_first_boot_setup() {
bool ok = boot_into_recovery();
if (ok) {
set(ProvState::FirstBoot, 95, "Setting up macOS for WSM", "Account, sign-in and remote access");
- auto dump = [this](std::vector<uint8_t>& p, int& w, int& h) { return screen_dump(p, w, h); };
- guest_shell("P=$(dirname \"$(ls /Volumes/*/wsm-offline-setup.sh | head -1)\") && sh \"$P/wsm-offline-setup.sh\" \"$P\"");
- ok = wait_verdict(this, dump, 300, nullptr) == Verdict::Green;
+ auto dump = [this](std::vector<uint8_t>& p, int& w, int& h) {
+ if (!screen_dump(p, w, h)) return false;
+ if (read_verdict(p, w, h) == Verdict::None) {
+ std::error_code ec;
+ fs::create_directories(root_ + "\\logs", ec);
+ fs::copy_file(root_ + "\\cache\\tmp\\prov_screen.ppm", root_ + "\\logs\\last-account-screen.ppm",
+ fs::copy_options::overwrite_existing, ec);
+ }
+ return true;
+ };
+ ok = guest_shell("P=$(dirname \"$(ls /Volumes/*/wsm-offline-setup.sh | head -1)\") && "
+ "{ sh \"$P/wsm-offline-setup.sh\" \"$P\" > /tmp/wsm-offline.log 2>&1 || "
+ "{ tail -n 16 /tmp/wsm-offline.log; sleep 15; false; }; }") &&
+ wait_verdict(this, dump, 300, nullptr) == Verdict::Green;
if (!ok) err = "macOS couldn't be set up for WSM.";
} else {
err = "WSM couldn't start macOS's recovery system to finish the setup.";
@@ -663,6 +746,15 @@ bool Provisioner::step_first_boot_setup() {
if (!ok) { fail(err); return false; }
set(ProvState::FirstBoot, 96, "Starting macOS", "First sign-in");
+ // The SSH forward is present only when networking is enabled at the next boot.
+ if (reims("set " + vm_ + " --network true") != 0) {
+ fail("WSM couldn't enable the macOS runtime's network for first sign-in.");
+ return false;
+ }
+ if (reims("set " + vm_ + " --audio true") != 0) {
+ fail("WSM couldn't enable audio for the macOS runtime.");
+ return false;
+ }
if (!restart_vm()) { fail("macOS didn't start after setup."); return false; }
// Signed in when WSM's key works (and sudo needs no password). Apple's first-run screen may
// still want one "Get Started" click; press it when it shows.
diff --git a/src/wsm-runtime/src/runtime_password.cpp b/src/wsm-runtime/src/runtime_password.cpp
new file mode 100644
index 0000000..71bc708
--- /dev/null
+++ b/src/wsm-runtime/src/runtime_password.cpp
@@ -0,0 +1,128 @@
+#include "wsm/runtime_password.hpp"
+#include "wsm/guest_app_path.hpp"
+#include "wsm/ssh_private_key.hpp"
+#include <windows.h>
+#include <filesystem>
+#include <fstream>
+#include <iterator>
+#include <vector>
+
+namespace wsm::runtime {
+namespace {
+std::string path_for(const std::string& root, const char* name) {
+ return root + "\\runtime\\config\\guest\\" + name;
+}
+
+// macOS auto-login expects this obfuscated, padded representation in /etc/kcpassword.
+std::string kc_password(const std::string& password) {
+ static const unsigned char key[] = {0x7D,0x89,0x52,0x23,0xD2,0xBC,0xDD,0xEA,0xA3,0xB9,0x1F};
+ std::string bytes = password; bytes.push_back('\0');
+ while (bytes.size() % 12) bytes.push_back('\0');
+ for (size_t i = 0; i < bytes.size(); ++i) bytes[i] ^= key[i % sizeof(key)];
+ return bytes;
+}
+
+// The script and secret are delivered on stdin, not in a command line or the local HTTP API.
+int run_guest_script(const std::string& root, const std::string& script) {
+ SECURITY_ATTRIBUTES sa{sizeof(sa), nullptr, TRUE};
+ HANDLE read_pipe = nullptr, write_pipe = nullptr;
+ if (!CreatePipe(&read_pipe, &write_pipe, &sa, 0)) return -1;
+ SetHandleInformation(write_pipe, HANDLE_FLAG_INHERIT, 0);
+ HANDLE nul = CreateFileW(L"NUL", GENERIC_WRITE, FILE_SHARE_READ | FILE_SHARE_WRITE, &sa,
+ OPEN_EXISTING, 0, nullptr);
+ if (nul == INVALID_HANDLE_VALUE) { CloseHandle(read_pipe); CloseHandle(write_pipe); return -1; }
+ std::string key = ssh_private_key_path(root);
+ if (key.empty()) { CloseHandle(read_pipe); CloseHandle(write_pipe); CloseHandle(nul); return -1; }
+ std::string cmd = "\"C:\\Windows\\System32\\OpenSSH\\ssh.exe\" -T -i \"" + key +
+ "\" -p 2222 -o IdentitiesOnly=yes -o BatchMode=yes -o StrictHostKeyChecking=no -o UserKnownHostsFile=NUL"
+ " -o LogLevel=ERROR -o ConnectTimeout=8 [email protected] /bin/sh -s";
+ STARTUPINFOA si{}; si.cb = sizeof(si); si.dwFlags = STARTF_USESTDHANDLES | STARTF_USESHOWWINDOW;
+ si.wShowWindow = SW_HIDE; si.hStdInput = read_pipe; si.hStdOutput = nul; si.hStdError = nul;
+ PROCESS_INFORMATION pi{};
+ std::vector<char> line(cmd.begin(), cmd.end()); line.push_back(0);
+ BOOL started = CreateProcessA(nullptr, line.data(), nullptr, nullptr, TRUE, CREATE_NO_WINDOW,
+ nullptr, nullptr, &si, &pi);
+ CloseHandle(read_pipe); CloseHandle(nul);
+ if (!started) { CloseHandle(write_pipe); return -1; }
+ DWORD written = 0;
+ const bool sent = WriteFile(write_pipe, script.data(), static_cast<DWORD>(script.size()), &written, nullptr)
+ && written == script.size();
+ CloseHandle(write_pipe);
+ DWORD wait = WaitForSingleObject(pi.hProcess, 30000), code = 255;
+ if (wait == WAIT_TIMEOUT) { TerminateProcess(pi.hProcess, 255); WaitForSingleObject(pi.hProcess, 2000); }
+ else GetExitCodeProcess(pi.hProcess, &code);
+ CloseHandle(pi.hThread); CloseHandle(pi.hProcess);
+ return sent ? static_cast<int>(code) : -1;
+}
+} // namespace
+
+bool read_runtime_password(const std::string& root, std::string& password, std::string& error) {
+ std::error_code ec;
+ if (std::filesystem::exists(path_for(root, "password.pending"), ec)) {
+ error = "An earlier password change needs recovery. Keep both password files and contact support."; return false;
+ }
+ std::ifstream in(path_for(root, "password"), std::ios::binary);
+ if (!in) { error = "The runtime password is not available on this PC."; return false; }
+ password.assign(std::istreambuf_iterator<char>(in), std::istreambuf_iterator<char>());
+ while (!password.empty() && (password.back() == '\r' || password.back() == '\n')) password.pop_back();
+ if (password.empty() || password.size() > 128) { error = "The saved runtime password is invalid."; return false; }
+ return true;
+}
+
+bool change_runtime_password_with_runner(const std::string& root, const std::string& password, std::string& error,
+ int (*runner)(const std::string&, const std::string&)) {
+ if (password.size() < 8 || password.size() > 128) { error = "Use 8 to 128 characters."; return false; }
+ for (unsigned char c : password) if (c < 32 || c > 126) {
+ error = "Use standard printable characters without line breaks."; return false;
+ }
+ std::string old;
+ if (!read_runtime_password(root, old, error)) return false;
+ // Most failures happen because the runtime is asleep. Do not create a pending transaction
+ // until an SSH session is actually reachable.
+ if (runner(root, "exit 0\n") != 0) { error = "The macOS runtime is not responding. Start it, then try again."; return false; }
+ const std::string pending = path_for(root, "password.pending");
+ // Exclusive creation prevents two manager windows from changing the account concurrently.
+ HANDLE file = CreateFileA(pending.c_str(), GENERIC_WRITE, 0, nullptr, CREATE_NEW, FILE_ATTRIBUTE_NORMAL, nullptr);
+ if (file == INVALID_HANDLE_VALUE) { error = "Could not create the pending password file. Check for an unfinished change."; return false; }
+ DWORD written = 0;
+ const bool saved = WriteFile(file, password.data(), static_cast<DWORD>(password.size()), &written, nullptr) &&
+ written == password.size() && FlushFileBuffers(file);
+ CloseHandle(file);
+ if (!saved) { DeleteFileA(pending.c_str()); error = "Could not save the pending password."; return false; }
+ const std::string script =
+ "set -u\nold=$(printf %s '" + guest_command_base64(old) + "' | /usr/bin/base64 -D)\n"
+ "new=$(printf %s '" + guest_command_base64(password) + "' | /usr/bin/base64 -D)\n"
+ "/usr/bin/dscl . -authonly wsm \"$old\" >/dev/null 2>&1 || exit 11\n"
+ "sudo -n /usr/bin/true >/dev/null 2>&1 || exit 12\n"
+ "tmp=$(/usr/bin/mktemp /tmp/wsm-password.XXXXXX) || exit 13\n"
+ "dest=/private/etc/.wsm-kcpassword-$$\n"
+ "trap 'rm -f \"$tmp\"; sudo -n rm -f \"$dest\"' EXIT\n"
+ "printf %s '" + guest_command_base64(kc_password(password)) + "' | /usr/bin/base64 -D > \"$tmp\" || exit 13\n"
+ "sudo -n /bin/cp \"$tmp\" \"$dest\" && sudo -n /bin/chmod 600 \"$dest\" && "
+ "sudo -n /usr/sbin/chown root:wheel \"$dest\" || exit 13\n"
+ "sudo -n /usr/bin/dscl . -passwd /Users/wsm \"$new\" || exit 15\n"
+ "if ! sudo -n /bin/mv -f \"$dest\" /private/etc/kcpassword; then\n"
+ " sudo -n /usr/bin/dscl . -passwd /Users/wsm \"$old\" && exit 14\n"
+ " exit 15\nfi\nexit 0\n";
+ const int rc = runner(root, script);
+ if (rc != 0) {
+ if (rc >= 11 && rc <= 14) {
+ std::error_code ec; std::filesystem::remove(pending, ec);
+ error = rc == 11 ? "The saved password does not match the macOS account. Password was not changed."
+ : "The password could not be changed. Start the runtime and try again.";
+ } else {
+ error = "Connection interrupted during the password change. Both password files were kept; check the runtime before retrying.";
+ }
+ return false;
+ }
+ if (!MoveFileExA(pending.c_str(), path_for(root, "password").c_str(), MOVEFILE_REPLACE_EXISTING | MOVEFILE_WRITE_THROUGH)) {
+ error = "macOS accepted the new password, but WSM could not save it. The pending password file was kept.";
+ return false;
+ }
+ return true;
+}
+
+bool change_runtime_password(const std::string& root, const std::string& password, std::string& error) {
+ return change_runtime_password_with_runner(root, password, error, run_guest_script);
+}
+} // namespace wsm::runtime
diff --git a/src/wsm-runtime/src/setup_assistant.cpp b/src/wsm-runtime/src/setup_assistant.cpp
new file mode 100644
index 0000000..0178cc3
--- /dev/null
+++ b/src/wsm-runtime/src/setup_assistant.cpp
@@ -0,0 +1,60 @@
+#include "wsm/setup_assistant.hpp"
+#include <array>
+#include <cstddef>
+#include <limits>
+
+namespace wsm::runtime {
+namespace {
+#include "setup_assistant_templates.inc"
+struct Sample {
+ SetupAssistantStep step;
+ int x0, y0, x1, y1;
+ const unsigned char* pixels;
+ int click_x, click_y; // reference screenshot coordinates (960 x 540)
+};
+constexpr Sample samples[] = {
+ {SetupAssistantStep::Country, 58,23,102,38, sample_country, 0,0},
+ // Choose only downloading, never automatic installation, on this exact update screen.
+ {SetupAssistantStep::Update, 58,23,104,46, sample_update, 325,414},
+ {SetupAssistantStep::Account, 58,24,100,57,sample_account, 335,401},
+ {SetupAssistantStep::AccountMenu, 47,63,68,75, sample_account_menu, 335,429},
+ {SetupAssistantStep::AccountConfirm, 67,31,94,60, sample_account_confirm, 509,331},
+ // Tahoe age-range screen; Adult is the bottom option in the reference frame.
+ {SetupAssistantStep::AgeRange, 42,19,118,88, sample_age_range, 480,382},
+ {SetupAssistantStep::FileVault, 58,24,100,52,sample_filevault, 566,401},
+ {SetupAssistantStep::FileVaultConfirm, 67,34,94,56, sample_filevault_confirm, 510,306},
+ {SetupAssistantStep::Welcome, 55,30,105,84,sample_welcome, 480,481},
+};
+}
+
+SetupAssistantAction recognize_setup_assistant(const uint8_t* rgb, int width, int height) {
+ if (!rgb || width < 160 || height < 90) return {};
+ const Sample* best = nullptr;
+ double best_error = std::numeric_limits<double>::max();
+ for (const auto& sample : samples) {
+ size_t n = 0; double error = 0;
+ for (int y = sample.y0; y < sample.y1; ++y) {
+ const int y0 = y * height / 90, y1 = (y + 1) * height / 90;
+ for (int x = sample.x0; x < sample.x1; ++x) {
+ const int x0 = x * width / 160, x1 = (x + 1) * width / 160;
+ std::array<unsigned int, 3> sum{}; unsigned int count = 0;
+ for (int py = y0; py < y1; ++py) for (int px = x0; px < x1; ++px) {
+ const size_t off = (static_cast<size_t>(py) * width + px) * 3;
+ for (int c = 0; c < 3; ++c) sum[c] += rgb[off + c];
+ ++count;
+ }
+ if (!count) return {};
+ for (int c = 0; c < 3; ++c) {
+ const int delta = static_cast<int>(sum[c] / count) - sample.pixels[n++];
+ error += delta < 0 ? -delta : delta;
+ }
+ }
+ }
+ error /= static_cast<double>(n);
+ if (error < best_error) { best_error = error; best = &sample; }
+ }
+ // Tight threshold intentionally rejects unfamiliar OS versions, languages and screens.
+ if (!best || best_error > 1.5) return {};
+ return {best->step, best->click_x * 32767 / 960, best->click_y * 32767 / 540};
+}
+}
diff --git a/src/wsm-runtime/src/setup_assistant_templates.inc b/src/wsm-runtime/src/setup_assistant_templates.inc
new file mode 100644
index 0000000..73ba174
--- /dev/null
+++ b/src/wsm-runtime/src/setup_assistant_templates.inc
@@ -0,0 +1,1813 @@
+// Samples from blank macOS setup screens; no credentials or personal data.
+static constexpr unsigned char sample_account[] = {255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,243,247,253,232,241,251,232,241,251,242,247,253,255,255,255,237,244,252,227,238,251,230,240,251,228,239,251,231,241,251,242,247,253,225,237,250,228,239,251,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,222,235,250,229,239,251,215,231,249,210,228,248,228,239,251,210,228,248,157,197,240,16,113,220,133,182,237,227,238,251,214,230,249,164,201,241,192,218,245,235,243,252,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,231,241,251,221,235,250,210,228,248,168,203,242,181,211,244,237,244,252,125,178,236,228,239,251,136,184,237,22,117,221,144,189,239,194,219,246,213,230,248,104,165,232,140,187,238,232,241,251,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,214,230,249,107,167,233,166,202,242,223,236,250,216,232,249,202,223,247,210,228,248,214,231,249,195,219,246,219,233,249,222,235,250,145,190,239,156,196,240,218,233,249,220,234,249,251,252,254,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,208,227,248,147,191,239,186,214,245,240,246,252,226,238,250,185,213,244,231,240,251,251,252,254,226,238,250,255,255,255,226,238,250,201,223,247,214,230,249,229,239,251,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,240,246,252,227,238,251,229,239,251,255,255,255,248,251,254,226,238,250,227,239,251,227,238,250,252,253,254,255,255,255,241,247,252,227,238,251,226,238,250,247,250,253,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,250,250,250,247,247,247,255,255,255,253,253,253,255,255,255,255,255,255,255,255,255,252,252,252,255,255,255,255,255,255,252,252,252,255,255,255,255,255,255,245,245,245,255,255,255,252,252,252,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,155,155,155,145,145,145,137,137,137,132,132,132,168,168,168,154,154,154,186,186,186,147,147,147,131,131,131,124,124,124,183,183,183,139,139,139,113,113,113,108,108,108,172,172,172,116,116,116,151,151,151,140,140,140,166,166,166,130,130,130,202,202,202,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,240,240,240,240,240,240,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,247,247,247,246,246,246,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,219,219,219,213,213,213,212,212,212,223,223,223,235,235,235,216,216,216,232,232,232,214,214,214,225,225,225,218,218,218,217,217,217,217,217,217,216,216,216,230,230,230,210,210,210,211,211,211,224,224,224,213,213,213,218,218,218,219,219,219,209,209,209,221,221,221,220,220,220,233,233,233,217,217,217,217,217,217,227,227,227,217,217,217,210,210,210,238,238,238,203,203,203,214,214,214,216,216,216,232,232,232,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,254,254,254,246,246,246,249,249,249,255,255,255,255,255,255,254,254,254,254,254,254,254,254,254,254,254,254,254,254,254,254,254,254,254,254,254,254,254,254,250,250,250,254,254,254,254,254,254,255,255,255,249,249,249,249,249,249,254,254,254,254,254,254,254,254,254,250,250,250,254,254,254,255,255,255,254,254,254,254,254,254,254,254,254,254,254,254,255,255,255,249,249,249,249,249,249,254,254,254,254,254,254,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,231,231,231,209,209,209,226,226,226,221,221,221,220,220,220,232,232,232,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,247,247,247,243,243,243,251,251,251,245,245,245,247,247,247,243,243,243,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,254,254,254,253,253,253,253,253,253,253,253,253,253,253,253,253,253,253,253,253,253,253,253,253,253,253,253,253,253,253,253,253,253,253,253,253,253,253,253,253,253,253,253,253,253,253,253,253,253,253,253,253,253,253,253,253,253,253,253,253,253,253,253,253,253,253,253,253,253,253,253,253,253,253,253,253,253,253,253,253,253,253,253,253,253,253,253,253,253,253,253,253,253,253,253,253,253,253,253,253,253,253,253,253,253,253,253,253,253,253,253,253,253,253,255,255,255,255,255,255,255,255,255,255,255,255,240,240,240,221,221,221,231,231,231,231,231,231,235,235,235,214,214,214,229,229,229,230,230,230,232,232,232,221,221,221,236,236,236,222,222,222,241,241,241,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,254,254,254,255,255,255,255,255,255,255,255,255,255,255,255,250,250,250,241,241,241,245,245,245,249,249,249,248,248,248,247,247,247,246,246,246,246,246,246,248,248,248,241,241,241,251,251,251,241,241,241,250,250,250,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,254,254,254,255,255,255,255,255,255,255,255,255,255,255,255,249,251,254,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,253,254,254,255,255,255,253,253,254,251,253,254,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,211,229,248,190,216,245,202,223,247,210,228,248,181,211,244,194,218,246,200,222,246,188,215,245,193,218,245,200,222,246,194,218,245,198,221,246,209,227,248,220,234,249,245,249,253,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,217,232,249,201,222,247,179,210,243,209,228,248,181,211,244,189,216,245,180,210,244,206,226,247,191,217,245,240,246,252,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,251,253,254,254,254,254,254,254,254,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255};
+static constexpr unsigned char sample_account_menu[] = {254,254,254,254,254,254,254,254,254,254,254,254,254,254,254,254,254,254,254,254,254,254,254,254,254,254,254,254,254,254,254,254,254,254,254,254,254,254,254,254,254,254,226,226,226,229,229,229,230,230,230,237,237,237,203,224,247,203,224,247,208,227,248,253,253,253,252,252,252,251,251,251,251,251,251,251,251,251,251,251,251,251,251,251,251,251,251,251,251,251,251,251,251,251,251,251,251,251,251,251,251,251,251,251,251,251,251,251,251,251,251,252,252,252,253,253,253,254,254,254,255,255,255,255,255,255,251,251,251,249,249,249,246,246,246,245,245,245,245,245,245,245,245,245,245,245,245,245,245,245,245,245,245,245,245,245,245,245,245,245,245,245,245,245,245,245,245,245,245,245,245,246,246,246,249,249,249,252,252,252,254,254,254,255,255,255,255,255,255,249,249,249,245,245,245,236,236,236,223,223,223,230,230,230,234,234,234,228,228,228,231,231,231,232,232,232,232,232,232,230,230,230,232,232,232,229,229,229,237,237,237,223,223,223,241,241,241,245,245,245,250,250,250,253,253,253,254,254,254,255,255,255,248,248,248,240,240,240,228,228,228,216,216,216,220,220,220,225,225,225,218,218,218,219,219,219,222,222,222,221,221,221,216,216,216,221,221,221,217,217,217,223,223,223,219,219,219,228,228,228,233,233,233,245,245,245,252,252,252,254,254,254,255,255,255,246,246,246,235,235,235,242,242,242,241,241,241,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,238,238,238,248,248,248,254,254,254,255,255,255,202,202,202,234,234,234,228,228,228,166,166,166,210,210,210,179,179,179,204,204,204,188,188,188,179,179,179,171,171,171,207,207,207,189,189,189,198,198,198,191,191,191,189,189,189,202,202,202,242,242,242,241,241,241,244,244,244,254,254,254,255,255,255,178,178,178,216,216,216,242,242,242,239,239,239,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,227,227,227,158,158,158,164,164,164,165,165,165,186,186,186,218,218,218,233,233,233,163,163,163,197,197,197,157,157,157,216,216,216,178,178,178,200,200,200,180,180,180,209,209,209,205,205,205,193,193,193,181,181,181,172,172,172,174,174,174,216,216,216,229,229,229,183,183,183,190,190,190,190,190,190,189,189,189,192,192,192,225,225,225,230,230,230,230,230,230,230,230,230,230,230,230,230,230,230,230,230,230,230,230,230,230,230,230,230,230,230,230,230,230,230,230,230,230,230,230,230,230,230,228,228,228,198,198,198,187,187,187,192,192,192,193,193,193,192,192,192,186,186,186,180,180,180,178,178,178,178,178,178,178,178,178,178,178,178,178,178,178,178,178,178,178,178,178,178,178,178,178,178,178,178,178,178,178,178,178,178,178,178,178,178,178,179,179,179,185,185,185,191,191,191,192,192,192,193,193,193,193,193,193,192,192,192,191,191,191,191,191,191,191,191,191,191,191,191,191,191,191,191,191,191,191,191,191,191,191,191,191,191,191,191,191,191,191,191,191,191,191,191,191,191,191,191,191,191,191,191,191,192,192,192,192,192,192,193,193,193,193,193,193};
+static constexpr unsigned char sample_account_confirm[] = {201,202,203,191,196,201,191,196,201,190,195,200,200,200,201,200,200,200,195,197,199,189,194,199,189,193,198,197,198,199,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,201,201,201,201,201,201,202,202,202,202,202,202,203,203,203,203,203,203,202,202,202,201,201,201,198,198,198,213,213,213,222,222,222,228,228,228,228,228,228,228,228,228,228,228,228,228,228,228,228,228,228,228,228,228,228,228,228,228,228,228,228,228,228,228,228,228,228,228,228,228,228,228,228,228,228,228,228,228,228,228,228,223,223,223,214,214,214,200,200,200,201,201,201,202,202,202,203,203,203,201,201,201,198,198,198,216,216,216,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,219,219,219,198,198,198,201,201,201,203,203,203,200,200,200,195,195,195,226,226,226,242,242,242,217,218,220,208,208,212,208,208,212,208,208,212,215,215,218,241,241,241,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,233,233,233,194,194,194,199,199,199,202,202,202,198,198,198,190,190,190,233,233,233,242,242,242,192,193,196,186,187,192,207,207,210,189,189,194,189,190,194,241,241,241,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,229,229,229,190,190,190,198,198,198,202,202,202,170,170,170,149,149,149,226,226,226,242,242,242,182,182,186,223,223,225,255,255,255,203,204,206,179,179,183,241,241,241,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,228,228,228,188,188,188,196,196,196,201,201,201,196,196,196,187,187,187,233,233,233,242,242,242,171,171,174,200,200,203,252,252,253,206,206,208,168,168,171,241,241,241,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,227,227,227,186,186,186,196,196,196,201,201,201,187,187,187,172,172,172,233,233,233,242,242,242,165,165,168,146,146,150,146,146,150,146,146,150,160,160,164,241,241,241,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,227,227,227,167,167,167,180,180,180,186,186,186,196,196,196,186,186,186,233,233,233,242,242,242,234,234,234,227,227,227,227,227,227,227,227,227,233,233,233,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,227,227,227,184,184,184,193,193,193,201,201,201,196,196,196,186,186,186,233,233,233,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,227,227,227,185,185,185,195,195,195,201,201,201,196,196,196,186,186,186,233,233,233,242,242,242,179,179,179,184,184,184,182,182,182,179,179,179,195,195,195,180,180,180,188,188,188,182,182,182,178,178,178,206,206,206,170,170,170,186,186,186,188,188,188,192,192,192,163,163,163,182,182,182,242,242,242,242,242,242,242,242,242,227,227,227,185,185,185,195,195,195,201,201,201,196,196,196,186,186,186,233,233,233,242,242,242,221,221,221,221,221,221,215,215,215,226,226,226,221,221,221,230,230,230,214,214,214,217,217,217,226,226,226,230,230,230,217,217,217,228,228,228,222,222,222,242,242,242,242,242,242,240,240,240,242,242,242,242,242,242,242,242,242,227,227,227,185,185,185,195,195,195,201,201,201,195,195,195,186,186,186,233,233,233,242,242,242,196,196,196,172,172,172,189,189,189,172,172,172,207,207,207,201,201,201,183,183,183,201,201,201,189,189,189,206,206,206,183,183,183,182,182,182,195,195,195,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,227,227,227,185,185,185,194,194,194,200,200,200,186,186,186,178,178,178,232,232,232,242,242,242,177,177,177,187,187,187,182,182,182,181,181,181,179,179,179,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,227,227,227,185,185,185,195,195,195,201,201,201,193,193,193,183,183,183,232,232,232,242,242,242,242,242,242,241,241,241,241,241,241,241,241,241,241,241,241,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,227,227,227,185,185,185,195,195,195,201,201,201,195,195,196,186,186,186,233,233,233,242,242,242,228,228,228,230,230,230,222,222,222,230,230,230,233,233,233,224,224,224,231,231,231,226,226,226,221,221,221,230,230,230,232,232,232,227,227,227,223,223,223,220,220,220,240,240,240,242,242,242,242,242,242,242,242,242,242,242,242,227,227,227,185,185,185,195,195,195,201,201,201,175,183,193,162,172,183,231,232,233,242,242,242,197,197,197,211,211,211,195,195,195,209,209,209,215,215,215,201,201,201,208,208,208,195,195,195,216,216,216,220,220,220,203,203,203,203,203,203,204,204,204,207,207,207,231,231,231,242,242,242,242,242,242,242,242,242,242,242,242,227,227,227,185,185,185,195,195,195,201,201,201,196,196,196,186,186,186,233,233,233,242,242,242,197,197,197,188,188,188,195,195,195,181,181,181,204,204,204,188,188,188,204,204,204,196,196,196,208,208,208,196,196,196,221,221,221,183,183,183,206,206,206,193,193,193,213,213,213,184,184,184,198,198,198,216,216,216,242,242,242,227,227,227,185,185,185,195,195,195,201,201,201,167,179,192,169,176,184,233,233,233,242,242,242,226,226,226,238,238,238,242,242,242,238,238,238,241,241,241,236,236,236,233,233,233,239,239,239,241,241,241,233,233,233,241,241,241,240,240,240,242,242,242,227,227,227,240,240,240,240,240,240,241,241,241,236,236,236,242,242,242,227,227,227,185,185,185,195,195,195,201,201,201,196,196,196,186,186,186,233,233,233,242,242,242,201,201,201,195,195,195,178,178,178,214,214,214,176,176,176,196,196,196,190,190,190,199,199,199,202,202,202,188,188,188,180,180,180,201,201,201,201,201,201,199,199,199,199,199,199,198,198,198,210,210,210,242,242,242,242,242,242,227,227,227,185,185,185,195,195,195,201,201,201,196,196,196,186,186,186,233,233,233,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,227,227,227,185,185,185,195,195,195,201,201,201,196,196,196,186,186,186,233,233,233,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,227,227,227,185,185,185,195,195,195,201,201,201,196,196,196,186,186,186,233,233,233,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,227,227,227,186,186,186,195,195,195,201,201,201,196,196,196,186,186,186,232,232,232,237,237,237,224,224,224,218,218,218,219,219,219,218,218,218,211,211,211,209,209,209,223,223,223,224,224,224,233,233,233,144,186,232,0,104,218,0,104,218,0,104,218,33,123,222,6,107,218,0,104,218,0,104,218,2,105,218,164,197,234,228,228,228,186,186,186,195,195,195,201,201,201,196,196,196,187,187,187,223,223,223,235,235,235,224,224,224,215,215,215,189,189,189,194,194,194,194,194,194,182,182,182,188,188,188,224,224,224,231,231,231,109,166,228,0,104,218,0,104,218,0,104,218,69,145,228,76,149,229,0,104,218,0,104,218,0,104,218,136,181,231,231,231,231,186,186,186,196,196,196,201,201,201,197,197,197,189,189,189,208,208,208,242,242,242,237,237,237,236,236,236,236,236,236,236,236,236,236,236,236,236,236,236,236,236,236,236,236,236,241,241,241,236,238,241,172,202,235,161,195,233,161,196,234,161,196,234,161,196,234,161,196,234,161,196,233,175,203,235,238,240,241,212,213,213,188,188,188,197,197,197,201,201,201,198,198,198,191,191,191,181,181,181,199,199,199,211,211,211,217,217,217,217,217,217,217,217,217,217,217,217,217,217,217,217,217,217,217,217,217,217,217,217,217,217,217,217,217,217,217,217,217,217,217,217,217,217,217,217,217,217,217,217,217,217,217,217,212,212,212,200,200,200,182,182,182,190,190,190,198,198,198,202,202,202,200,200,200,195,195,195,188,188,188,180,180,180,175,175,175,172,172,172,171,171,171,170,170,170,171,171,171,171,171,171,171,171,171,171,171,171,171,171,171,171,171,171,171,171,171,171,171,171,171,171,171,171,171,171,170,170,170,171,171,171,172,172,172,175,175,175,180,180,180,187,187,187,194,194,194,199,199,199,202,202,202,201,201,201,198,198,198,194,194,194,189,189,189,186,186,186,184,184,184,183,183,183,183,183,183,183,183,183,183,183,183,182,182,182,183,183,183,182,182,182,183,183,183,183,183,183,182,182,182,183,183,183,183,183,183,183,183,183,183,183,183,184,184,184,186,186,186,189,189,189,194,194,194,198,198,198,201,201,201,203,203,203};
+static constexpr unsigned char sample_filevault[] = {255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,241,247,253,221,235,250,221,235,250,221,235,250,221,235,250,221,235,250,222,235,250,244,248,253,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,157,197,240,222,235,250,222,235,250,222,235,250,222,235,250,222,235,250,221,235,250,162,200,241,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,160,199,241,255,255,255,255,255,255,180,210,244,188,215,245,255,255,255,255,255,255,160,199,241,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,153,194,240,255,255,255,255,255,255,54,136,225,58,138,226,255,255,255,255,255,255,153,194,240,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,147,190,239,255,255,255,255,255,255,158,198,241,163,200,241,255,255,255,255,255,255,146,190,239,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,155,195,240,54,136,225,95,160,231,95,160,231,95,160,231,95,160,231,95,160,231,95,160,231,54,136,225,163,200,241,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,195,195,195,178,178,178,154,154,154,197,197,197,160,160,160,167,167,167,220,220,220,159,159,159,186,186,186,157,157,157,181,181,181,166,166,166,200,200,200,149,149,149,187,187,187,187,187,187,156,156,156,160,160,160,158,158,158,159,159,159,161,161,161,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,246,246,246,240,240,240,228,228,228,244,244,244,241,241,241,236,236,236,241,241,241,233,233,233,248,248,248,231,231,231,236,236,236,232,232,232,233,233,233,233,233,233,245,245,245,248,248,248,240,240,240,234,234,234,234,234,234,228,228,228,238,238,238,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,222,222,222,215,215,215,226,226,226,222,222,222,229,229,229,242,242,242,213,213,213,228,228,228,227,227,227,236,236,236,229,229,229,230,230,230,231,231,231,222,222,222,220,220,220,230,230,230,235,235,235,222,222,222,229,229,229,235,235,235,229,229,229,232,232,232,227,227,227,232,232,232,227,227,227,228,228,228,226,226,226,220,220,220,240,240,240,230,230,230,223,223,223,240,240,240,219,219,219,220,220,220,234,234,234,230,230,230,221,221,221,252,252,252,255,255,255,255,255,255,255,255,255,255,255,255,252,252,252,244,244,244,243,243,243,243,243,243,243,243,243,250,250,250,243,243,243,242,242,242,237,237,237,245,245,245,239,239,239,240,240,240,245,245,245,246,246,246,244,244,244,242,242,242,245,245,245,242,242,242,245,245,245,246,246,246,242,242,242,245,245,245,249,249,249,242,242,242,232,232,232,242,242,242,248,248,248,224,224,224,240,240,240,245,245,245,240,240,240,249,249,249,240,240,240,242,242,242,245,245,245,245,245,245,243,243,243,254,254,254,255,255,255,255,255,255,255,255,255,255,255,255,236,236,236,227,227,227,222,222,222,222,222,222,228,228,228,221,221,221,234,234,234,226,226,226,235,235,235,217,217,217,229,229,229,232,232,232,222,222,222,230,230,230,231,231,231,224,224,224,227,227,227,229,229,229,230,230,230,229,229,229,237,237,237,227,227,227,248,248,248,231,231,231,222,222,222,229,229,229,235,235,235,231,231,231,225,225,225,235,235,235,241,241,241,227,227,227,240,240,240,227,227,227,242,242,242,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,235,235,235,240,240,240,238,238,238,237,237,237,238,238,238,236,236,236,231,231,231,240,240,240,245,245,245,235,235,235,242,242,242,244,244,244,241,241,241,237,237,237,234,234,234,235,235,235,238,238,238,234,234,234,238,238,238,238,238,238,242,242,242,235,235,235,244,244,244,233,233,233,235,235,235,244,244,244,240,240,240,240,240,240,225,225,225,242,242,242,243,243,243,243,243,243,242,242,242,240,240,240,239,239,239,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,233,233,233,236,236,236,237,237,237,230,230,230,248,248,248,235,235,235,235,235,235,241,241,241,236,236,236,238,238,238,235,235,235,235,235,235,236,236,236,229,229,229,248,248,248,235,235,235,242,242,242,241,241,241,233,233,233,238,238,238,238,238,238,233,233,233,246,246,246,236,236,236,234,234,234,231,231,231,223,223,223,237,237,237,233,233,233,238,238,238,232,232,232,247,247,247,223,223,223,236,236,236,236,236,236,241,241,241,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,244,244,244,240,240,240,222,222,222,238,238,238,234,234,234,241,241,241,231,231,231,240,240,240,234,234,234,235,235,235,230,230,230,234,234,234,240,240,240,229,229,229,234,234,234,241,241,241,238,238,238,241,241,241,234,234,234,241,241,241,237,237,237,233,233,233,235,235,235,239,239,239,229,229,229,247,247,247,236,236,236,239,239,239,239,239,239,234,234,234,239,239,239,243,243,243,236,236,236,229,229,229,246,246,246,241,241,241,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,240,240,240,237,237,237,239,239,239,236,236,236,234,234,234,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,239,239,239,222,222,222,220,220,220,239,239,239,234,234,234,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255};
+static constexpr unsigned char sample_filevault_confirm[] = {204,204,204,203,203,203,203,203,203,203,203,203,203,203,203,203,203,203,203,203,203,203,203,203,203,203,203,203,203,203,203,203,203,203,203,203,203,203,203,202,202,202,203,203,203,203,203,203,203,203,203,203,203,203,203,203,203,203,203,203,203,203,203,203,203,203,203,203,203,203,203,203,204,204,204,203,203,203,204,204,204,203,203,203,203,203,203,202,202,202,202,202,202,201,201,201,201,201,201,201,201,201,201,201,201,201,201,201,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,201,201,201,201,201,201,201,201,201,201,201,201,201,201,201,202,202,202,202,202,202,203,203,203,203,203,203,204,204,204,189,189,189,164,164,164,173,173,173,181,181,181,204,204,204,205,205,205,216,216,216,201,201,201,212,212,212,209,209,209,206,206,206,206,206,206,207,207,207,213,213,213,204,204,204,221,221,221,221,221,221,221,221,221,221,221,221,221,221,221,221,221,221,215,215,215,207,207,207,200,200,200,201,201,201,202,202,202,203,203,203,196,196,196,190,190,190,207,207,207,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,215,215,215,199,199,199,201,201,201,203,203,203,184,184,184,185,185,185,222,222,222,242,242,242,207,207,207,218,218,218,220,220,220,214,214,214,211,211,211,211,211,211,204,204,204,206,206,206,214,214,214,219,219,219,204,204,204,237,237,237,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,232,232,232,183,183,183,194,194,194,189,189,189,194,194,194,187,187,187,231,231,231,242,242,242,204,204,204,195,195,195,220,220,220,197,197,197,196,196,196,218,218,218,206,206,206,219,219,219,197,197,197,219,219,219,194,194,194,230,230,230,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,230,230,230,185,185,185,196,196,196,196,196,196,189,189,189,179,179,179,234,234,234,242,242,242,161,161,161,176,176,176,170,170,170,168,168,168,204,204,204,152,152,152,178,178,178,174,174,174,171,171,171,180,180,180,186,186,186,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,225,225,225,183,183,183,186,186,186,196,196,196,188,188,188,182,182,182,233,233,233,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,231,231,231,242,242,242,242,242,242,230,230,230,236,236,236,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,225,225,225,182,182,182,191,191,191,196,196,196,188,188,188,182,182,182,232,232,232,242,242,242,221,221,221,231,231,231,232,232,232,228,228,228,231,231,231,224,224,224,232,232,232,226,226,226,236,236,236,228,228,228,224,224,224,235,235,235,230,230,230,224,224,224,227,227,227,228,228,228,225,225,225,238,238,238,242,242,242,226,226,226,178,178,178,193,193,193,189,189,189,187,187,187,181,181,181,232,232,232,242,242,242,211,211,211,216,216,216,209,209,209,215,215,215,217,217,217,214,214,214,211,211,211,216,216,216,224,224,224,202,202,202,219,219,219,232,232,232,218,218,218,218,218,218,225,225,225,228,228,228,202,202,202,231,231,231,242,242,242,227,227,227,180,180,180,191,191,191,194,194,194,196,196,196,186,186,186,233,233,233,242,242,242,187,187,187,197,197,197,184,184,184,182,182,182,184,184,184,174,174,174,171,171,171,203,203,203,178,178,178,199,199,199,174,174,174,215,215,215,186,186,186,184,184,184,185,185,185,190,190,190,181,181,181,217,217,217,242,242,242,227,227,227,185,185,185,195,195,195,201,201,201,196,196,196,186,186,186,233,233,233,242,242,242,232,232,232,240,240,240,236,236,236,242,242,242,242,242,242,240,240,240,239,239,239,242,242,242,240,240,240,229,229,229,237,237,237,242,242,242,242,242,242,233,233,233,242,242,242,242,242,242,229,229,229,242,242,242,242,242,242,227,227,227,185,185,185,195,195,195,201,201,201,196,196,196,186,186,186,233,233,233,242,242,242,197,197,197,207,207,207,190,190,190,203,203,203,202,202,202,223,223,223,206,206,206,200,200,200,203,203,203,220,220,220,197,197,197,193,193,193,203,203,203,209,209,209,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,227,227,227,185,185,185,195,195,195,201,201,201,196,196,196,186,186,186,233,233,233,242,242,242,199,199,199,213,213,213,201,201,201,187,187,187,213,213,213,210,210,210,192,192,192,208,208,208,221,221,221,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,227,227,227,185,185,185,195,195,195,201,201,201,196,196,196,186,186,186,233,233,233,242,242,242,223,223,223,225,225,225,225,225,225,219,219,219,230,230,230,225,225,225,228,228,228,221,221,221,227,227,227,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,242,227,227,227,185,185,185,195,195,195,201,201,201,196,196,196,186,186,186,233,233,233,242,242,242,240,240,240,239,239,239,239,239,239,239,239,239,239,239,239,239,239,239,239,239,239,239,239,239,242,242,242,242,242,242,212,225,239,201,218,237,201,219,238,201,219,238,201,219,238,201,219,238,201,219,237,215,226,239,242,242,242,227,227,227,186,186,186,195,195,195,201,201,201,196,196,196,186,186,186,232,232,232,236,236,236,224,224,224,224,224,224,207,207,207,210,210,210,209,209,209,209,209,209,224,224,224,224,224,224,232,232,232,130,178,230,0,104,218,12,111,219,31,122,222,35,125,223,31,122,222,12,111,219,4,106,218,0,104,218,153,191,233,228,228,228,186,186,186,195,195,195,201,201,201,196,196,196,187,187,187,223,223,223,236,236,236,224,224,224,224,224,224,206,206,206,187,187,187,193,193,193,189,189,189,224,224,224,224,224,224,231,231,231,117,171,229,0,104,218,14,112,220,49,133,225,61,140,226,62,140,227,55,137,226,12,111,219,0,104,218,144,186,232,231,231,231,186,186,186,196,196,196,201,201,201,197,197,197,189,189,189,206,206,206,242,242,242,239,239,239,239,239,239,239,239,239,239,239,239,239,239,239,239,239,239,239,239,239,239,239,239,241,241,241,241,241,241,202,219,238,201,219,238,201,219,238,201,219,238,201,219,238,201,219,238,201,219,238,204,220,238,242,242,242,208,208,208,188,188,188,196,196,196,201,201,201,198,198,198,191,191,191,182,182,182,194,194,194,205,205,205,200,200,200,199,199,199,199,199,199,199,199,199,199,199,199,199,199,199,199,199,199,199,199,199,199,199,199,199,199,199,199,199,199,199,199,199,199,199,199,199,199,199,199,199,199,200,200,200,205,205,205,197,197,197,181,181,181,191,191,191,198,198,198,202,202,202,200,200,200,195,195,195,188,188,188,181,181,181,176,176,176,173,173,173,172,172,172,171,171,171,172,172,172,172,172,172,172,172,172,172,172,172,171,171,171,172,172,172,172,172,172,171,171,171,172,172,172,171,171,171,171,171,171,172,172,172,173,173,173,176,176,176,181,181,181,187,187,187,194,194,194,199,199,199,202,202,202,201,201,201,199,199,199,194,194,194,190,190,190,187,187,187,185,185,185,184,184,184,183,183,183,184,184,184,183,183,183,183,183,183,183,183,183,183,183,183,183,183,183,183,183,183,183,183,183,184,184,184,183,183,183,184,184,184,184,184,184,185,185,185,187,187,187,190,190,190,194,194,194,198,198,198,201,201,201,203,203,203};
+static constexpr unsigned char sample_welcome[] = {17,20,21,17,19,21,17,19,22,17,20,21,17,19,21,17,19,21,17,19,21,17,19,22,17,20,21,17,19,21,17,19,22,17,20,21,17,19,21,17,19,21,17,19,21,17,19,22,17,20,21,17,19,21,17,19,22,17,20,21,17,19,21,17,19,21,17,19,21,17,19,22,17,20,21,17,19,21,17,19,22,17,20,21,17,19,21,17,19,21,17,19,21,17,19,22,17,20,21,17,19,21,17,19,22,17,20,21,17,19,21,17,19,21,17,19,21,17,19,22,17,20,21,17,19,21,17,19,22,17,20,21,17,19,21,17,19,21,17,19,21,17,19,22,17,20,21,17,19,21,18,19,21,17,20,21,17,19,21,18,20,21,17,20,22,18,20,21,17,20,21,17,20,22,18,19,21,17,20,21,17,19,21,18,20,21,17,20,22,18,20,21,17,20,21,17,20,22,18,19,21,17,20,21,17,19,21,18,20,21,17,20,22,18,20,21,17,20,21,17,20,22,18,19,21,17,20,21,17,19,21,18,20,21,17,20,22,18,20,21,17,20,21,17,20,22,18,19,21,17,20,21,17,19,21,18,20,21,17,20,22,18,20,21,17,20,21,17,20,22,18,19,21,17,20,21,17,19,21,18,20,21,17,20,22,18,20,21,17,20,21,17,20,22,18,19,21,17,20,21,17,20,21,17,19,21,17,19,22,17,20,21,17,19,21,17,19,21,17,20,21,17,19,22,17,20,21,17,19,21,17,19,22,17,20,21,17,19,21,17,19,21,17,20,21,17,19,22,17,20,21,17,19,21,17,19,22,17,20,21,17,19,21,17,19,21,17,20,21,17,19,22,17,20,21,17,19,21,17,19,22,17,20,21,17,19,21,17,19,21,17,20,21,17,19,22,17,20,21,17,19,21,17,19,22,17,20,21,17,19,21,17,19,21,17,20,21,17,19,22,17,20,21,17,19,21,17,19,22,17,20,21,17,19,21,17,19,21,17,20,21,17,19,22,17,20,21,17,19,21,18,19,21,17,19,21,17,19,21,18,19,21,17,19,21,18,20,21,17,19,21,17,19,21,18,19,21,17,19,21,17,19,21,18,19,21,17,19,21,18,20,21,17,19,21,17,19,21,18,19,21,17,19,21,17,19,21,18,19,21,17,19,21,18,20,21,17,19,21,17,19,21,18,19,21,17,19,21,17,19,21,18,19,21,17,19,21,18,20,21,17,19,21,17,19,21,18,19,21,17,19,21,17,19,21,18,19,21,17,19,21,18,20,21,17,19,21,17,19,21,18,19,21,17,19,21,17,19,21,18,19,21,17,19,21,18,20,21,17,19,21,17,19,21,18,19,21,17,19,21,17,19,21,18,20,22,17,19,21,18,20,21,17,19,22,17,19,21,18,20,21,17,19,22,17,19,21,18,20,22,17,19,21,18,20,21,17,19,22,17,19,21,18,20,21,17,19,22,17,19,21,18,20,22,17,19,21,18,20,21,17,19,22,17,19,21,18,20,21,17,19,22,17,19,21,18,20,22,17,19,21,18,20,21,17,19,22,17,19,21,18,20,21,17,19,22,17,19,21,18,20,22,17,19,21,18,20,21,17,19,22,17,19,21,18,20,21,17,19,22,17,19,21,18,20,22,17,19,21,18,20,21,17,19,22,17,19,21,18,20,21,17,19,22,17,19,21,18,20,22,17,20,21,17,19,21,17,19,22,17,20,21,17,19,21,17,19,21,17,20,21,17,19,22,17,20,21,17,19,21,17,19,22,17,20,21,17,19,21,17,19,21,17,20,21,17,19,22,17,20,21,17,19,21,17,19,22,17,20,21,17,19,21,17,19,21,17,20,21,17,19,22,17,20,21,17,19,21,17,19,22,17,20,21,17,19,21,17,19,21,17,20,21,17,19,22,17,20,21,17,19,21,17,19,22,17,20,21,17,19,21,17,19,21,17,20,21,17,19,22,17,20,21,17,19,21,17,19,22,17,20,21,17,19,21,17,19,21,17,20,21,17,19,22,17,20,21,17,19,21,18,19,21,17,20,21,17,19,22,17,20,21,17,19,21,18,19,22,17,20,21,17,19,21,18,19,21,17,20,21,17,19,22,17,20,21,17,19,21,18,19,22,17,20,21,17,19,21,18,19,21,17,20,21,17,19,22,17,20,21,17,19,21,18,19,22,17,20,21,17,19,21,18,19,21,17,20,21,17,19,22,17,20,21,17,19,21,18,19,22,17,20,21,17,19,21,18,19,21,17,20,21,17,19,22,17,20,21,17,19,21,18,19,22,17,20,21,17,19,21,18,19,21,17,20,21,17,19,22,17,20,21,17,19,21,18,19,22,17,20,21,17,19,21,18,19,21,17,20,21,17,20,21,18,19,21,17,19,21,18,20,21,17,19,21,17,19,21,18,20,21,17,19,21,17,20,21,18,19,21,17,19,21,18,20,21,17,19,21,17,19,21,18,20,21,17,19,21,17,20,21,18,19,21,42,44,46,95,97,98,51,52,54,17,19,21,18,20,21,17,19,21,17,20,21,18,19,21,17,19,21,18,20,21,17,19,21,17,19,21,18,20,21,17,19,21,17,20,21,18,19,21,17,19,21,18,20,21,17,19,21,17,19,21,18,20,21,17,19,21,17,20,21,18,19,21,17,19,21,18,20,21,17,19,21,17,19,21,18,20,21,17,19,21,17,20,21,18,19,21,17,20,21,17,19,21,17,19,22,17,20,21,17,19,21,17,19,21,17,19,21,17,19,22,17,20,21,17,19,21,17,19,22,17,20,21,17,19,21,17,19,21,17,19,21,17,19,22,17,20,21,25,27,29,140,141,141,118,118,119,140,140,141,18,20,22,17,19,21,17,19,22,17,20,21,17,19,21,17,19,22,17,20,21,17,19,21,17,19,21,17,19,21,17,19,22,17,20,21,17,19,21,17,19,22,17,20,21,17,19,21,17,19,21,17,19,21,17,19,22,17,20,21,17,19,21,17,19,22,17,20,21,17,19,21,17,19,21,17,19,21,17,19,22,17,20,21,17,19,21,18,19,21,17,20,21,17,19,21,18,20,21,17,20,22,18,20,21,17,20,21,17,20,22,18,19,21,17,20,21,17,19,21,18,20,21,17,20,22,18,20,21,17,20,21,17,20,22,18,19,21,72,73,74,124,125,125,39,41,42,142,143,143,25,27,28,17,20,21,17,20,22,18,19,21,17,20,21,17,19,21,18,20,21,17,20,22,18,20,21,17,20,21,17,20,22,18,19,21,17,20,21,17,19,21,18,20,21,17,20,22,18,20,21,17,20,21,17,20,22,18,19,21,17,20,21,17,19,21,18,20,21,17,20,22,18,20,21,17,20,21,17,20,22,18,19,21,17,20,21,17,20,21,17,19,21,17,19,22,17,20,21,17,19,21,17,19,21,17,20,21,17,19,22,17,20,21,17,19,21,17,19,22,17,20,21,17,19,21,17,19,21,17,20,21,17,19,22,17,20,21,104,105,106,87,88,89,64,66,67,129,130,131,17,19,21,17,20,21,17,19,22,17,20,21,17,19,21,17,19,22,17,20,21,17,19,21,17,19,21,17,20,21,17,19,22,17,20,21,17,19,21,17,19,22,17,20,21,17,19,21,17,19,21,17,20,21,17,19,22,17,20,21,17,19,21,17,19,22,17,20,21,17,19,21,17,19,21,17,20,21,17,19,22,17,20,21,17,19,21,33,35,37,92,93,94,82,83,84,18,20,22,17,19,21,41,43,44,29,31,33,32,34,35,92,93,94,20,22,24,17,19,21,18,19,21,57,59,60,99,100,101,56,57,59,17,19,21,18,19,21,124,124,125,65,66,67,104,105,106,94,95,96,18,20,21,17,19,21,66,67,69,98,99,100,81,82,83,21,23,25,18,19,21,20,22,24,79,80,82,99,100,101,63,65,66,18,19,21,17,19,21,17,19,21,49,50,52,84,86,87,91,93,94,79,80,81,30,31,33,88,89,90,88,89,90,25,27,29,18,19,21,17,19,21,35,37,38,94,95,96,79,80,82,18,19,21,17,19,21,132,133,133,119,120,120,134,134,135,68,70,71,17,19,22,119,119,120,79,80,81,52,54,55,144,144,145,54,56,57,17,19,21,50,52,53,145,145,146,109,110,111,144,145,145,30,32,34,17,19,21,138,138,138,72,74,75,143,143,143,47,48,50,17,19,21,77,78,79,141,141,142,110,111,112,135,135,136,82,83,84,18,20,21,109,110,111,136,136,137,111,112,112,144,144,145,103,104,105,23,25,27,38,39,41,136,137,138,141,142,142,96,97,98,126,127,128,147,147,148,117,118,119,125,126,127,103,105,106,18,20,21,20,22,24,134,135,136,118,119,120,135,136,136,72,73,75,18,20,22,134,134,134,23,24,26,119,120,121,75,76,77,17,19,21,134,134,135,57,59,60,24,26,28,134,134,135,78,79,81,17,19,22,97,98,99,96,97,97,35,37,39,143,143,144,34,36,38,17,20,21,135,136,136,140,140,141,107,108,109,17,19,21,19,21,23,136,137,137,65,67,68,17,20,21,37,39,41,31,32,34,47,49,51,143,144,144,39,40,42,17,20,21,84,85,87,143,143,143,155,155,156,151,151,152,142,142,143,97,98,98,17,19,21,79,81,82,118,118,119,18,20,22,77,78,79,119,120,121,17,20,21,49,51,52,140,140,140,22,24,26,108,109,110,82,83,84,17,19,21,37,39,40,17,20,21,139,140,140,50,52,53,35,37,38,145,145,145,51,53,54,17,19,21,133,133,133,145,146,146,113,113,114,129,129,130,127,128,129,140,141,141,97,98,99,17,19,21,18,19,21,126,126,127,135,135,136,34,36,38,17,19,21,65,67,68,144,145,145,47,48,50,18,19,21,17,20,21,18,20,22,120,121,121,140,140,141,18,19,22,17,20,21,93,94,95,106,107,108,65,67,68,54,56,57,125,126,126,64,65,66,18,19,22,100,101,102,85,86,87,18,19,21,93,94,95,100,100,101,17,20,21,51,53,54,143,143,144,63,64,66,143,144,144,42,44,45,29,31,33,17,20,21,18,20,22,139,139,140,77,78,79,117,118,119,142,142,142,102,103,104,94,95,96,136,137,137,68,69,71,103,104,105,123,124,124,143,144,144,118,119,119,49,51,53,70,71,73,128,129,130,143,143,143,138,139,139,67,68,70,66,68,69,140,141,141,132,133,133,116,117,118,49,51,52,56,57,59,121,122,123,130,131,131,141,141,141,79,81,82,73,74,75,143,143,144,54,55,56,18,19,21,18,20,22,143,144,144,43,45,47,17,19,21,124,125,125,65,67,68,17,20,21,91,92,93,118,119,120,47,49,51,85,86,88,145,145,146,148,149,149,79,80,81,64,66,67,147,147,148,17,20,21,17,19,21,79,80,81,153,154,154,124,124,125,67,68,69,143,143,143,142,142,142,56,58,59,17,19,21,17,19,22,20,22,24,94,95,96,151,151,151,149,150,150,146,146,146,98,99,100,35,37,38,93,94,95,149,150,150,148,149,149,89,89,91,38,40,41,125,125,126,149,150,150,150,150,151,112,113,113,35,37,39,65,66,68,146,147,147,148,148,148,80,81,82,17,20,21,17,19,21,29,30,32,136,137,137,26,28,30,17,19,21,134,134,135,44,45,47,17,20,21,38,39,41,135,135,136,150,150,150,142,142,143,107,108,109,143,144,144,152,152,153,146,147,147,82,83,84,18,19,21,17,20,21,17,19,21,18,20,21,17,20,22,18,20,21,17,20,21,17,20,22,18,19,21,17,20,21,17,19,21,18,20,21,17,20,22,30,31,33,53,55,56,19,21,23,18,19,21,17,20,21,17,19,21,18,20,21,17,20,22,18,20,21,17,20,21,17,20,22,43,45,46,32,34,36,17,19,21,18,20,21,17,20,22,18,20,21,17,20,21,17,20,22,18,19,21,17,20,21,17,19,21,18,20,22,17,20,22,18,20,21,22,24,26,17,20,22,18,19,21,17,20,21,17,19,21,30,32,33,17,20,22,18,20,21,27,29,31,52,54,56,32,34,36,17,20,21,17,20,21,17,19,21,17,19,22,17,20,21,17,19,21,17,19,21,17,20,21,17,19,22,17,20,21,17,19,21,17,19,22,17,20,21,17,19,21,17,19,21,17,20,21,17,19,22,17,20,21,17,19,21,17,19,22,17,20,21,17,19,21,17,19,21,17,20,21,17,19,22,17,20,21,17,19,21,17,19,22,17,20,21,17,19,21,17,19,21,17,20,21,17,19,22,17,20,21,17,19,21,17,19,22,17,20,21,17,19,21,17,19,21,17,20,21,17,19,22,17,20,21,17,19,21,17,19,22,17,20,21,17,19,21,17,19,21,17,20,21,17,19,22,17,20,21,17,19,21,18,19,21,17,19,21,17,19,21,18,19,21,17,19,21,18,20,21,17,19,21,17,19,21,18,19,21,17,19,21,17,19,21,18,19,21,17,19,21,18,20,21,17,19,21,17,19,21,18,19,21,17,19,21,17,19,21,18,19,21,17,19,21,18,20,21,17,19,21,17,19,21,18,19,21,17,19,21,17,19,21,18,19,21,17,19,21,18,20,21,17,19,21,17,19,21,18,19,21,17,19,21,17,19,21,18,19,21,17,19,21,18,20,21,17,19,21,17,19,21,18,19,21,17,19,21,17,19,21,18,19,21,17,19,21,18,20,21,17,19,21,17,19,21,18,19,21,17,19,21,17,19,21,18,20,22,17,19,21,18,20,21,17,19,22,17,19,21,18,20,21,17,19,22,17,19,21,18,20,22,17,19,21,18,20,21,17,19,22,17,19,21,18,20,21,17,19,22,17,19,21,18,20,22,17,19,21,18,20,21,17,19,22,17,19,21,18,20,21,17,19,22,17,19,21,18,20,22,17,19,21,18,20,21,17,19,22,17,19,21,18,20,21,17,19,22,17,19,21,18,20,22,17,19,21,18,20,21,17,19,22,17,19,21,18,20,21,17,19,22,17,19,21,18,20,22,17,19,21,18,20,21,17,19,22,17,19,21,18,20,21,17,19,22,17,19,21,18,20,22,17,20,21,17,19,21,17,19,22,17,20,21,17,19,21,17,19,21,17,20,21,17,19,22,17,20,21,17,19,21,17,19,22,17,20,21,17,19,21,17,19,21,17,20,21,17,19,22,17,20,21,17,19,21,17,19,22,17,20,21,17,19,21,17,19,21,17,20,21,17,19,22,17,20,21,17,19,21,17,19,22,17,20,21,17,19,21,17,19,21,17,20,21,17,19,22,17,20,21,17,19,21,17,19,22,17,20,21,17,19,21,17,19,21,17,20,21,17,19,22,17,20,21,17,19,21,17,19,22,17,20,21,17,19,21,17,19,21,17,20,21,17,19,22,17,20,21,17,19,21,18,19,21,17,20,21,17,19,22,17,20,21,17,19,21,18,19,22,17,20,21,17,19,21,18,19,21,17,20,21,17,19,22,17,20,21,17,19,21,18,19,22,17,20,21,17,19,21,18,19,21,17,20,21,17,19,22,17,20,21,17,19,21,18,19,22,17,20,21,17,19,21,18,19,21,17,20,21,17,19,22,17,20,21,17,19,21,18,19,22,17,20,21,17,19,21,18,19,21,17,20,21,17,19,22,17,20,21,17,19,21,18,19,22,17,20,21,17,19,21,18,19,21,17,20,21,17,19,22,17,20,21,17,19,21,18,19,22,17,20,21,17,19,21,18,19,21,17,20,21,17,20,21,18,19,21,17,19,21,18,20,21,17,19,21,17,19,21,18,20,21,17,19,21,17,20,21,18,19,21,17,19,21,18,20,21,17,19,21,17,19,21,18,20,21,17,19,21,17,20,21,18,19,21,17,19,21,18,20,21,17,19,21,17,19,21,18,20,21,17,19,21,17,20,21,18,19,21,17,19,21,18,20,21,17,19,21,17,19,21,18,20,21,17,19,21,17,20,21,18,19,21,17,19,21,18,20,21,17,19,21,17,19,21,18,20,21,17,19,21,17,20,21,18,19,21,17,19,21,18,20,21,17,19,21,17,19,21,18,20,21,17,19,21,17,20,21,18,19,21,17,20,21,17,19,21,17,19,22,17,20,21,17,19,21,17,19,21,17,19,21,17,19,22,17,20,21,17,19,21,17,19,22,17,20,21,17,19,21,17,19,21,17,19,21,17,19,22,17,20,21,17,19,21,17,19,22,17,20,21,17,19,21,17,19,21,17,19,21,17,19,22,17,20,21,17,19,21,17,19,22,17,20,21,17,19,21,17,19,21,17,19,21,17,19,22,17,20,21,17,19,21,17,19,22,17,20,21,17,19,21,17,19,21,17,19,21,17,19,22,17,20,21,17,19,21,17,19,22,17,20,21,17,19,21,17,19,21,17,19,21,17,19,22,17,20,21,17,19,21,18,19,21,17,20,21,17,19,21,18,20,21,17,20,22,18,20,21,17,20,21,17,20,22,18,19,21,17,20,21,17,19,21,18,20,21,17,20,22,18,20,21,17,20,21,17,20,22,18,19,21,17,20,21,17,19,21,18,20,21,17,20,22,18,20,21,17,20,21,17,20,22,18,19,21,17,20,21,17,19,21,18,20,21,17,20,22,18,20,21,17,20,21,17,20,22,18,19,21,17,20,21,17,19,21,18,20,21,17,20,22,18,20,21,17,20,21,17,20,22,18,19,21,17,20,21,17,19,21,18,20,21,17,20,22,18,20,21,17,20,21,17,20,22,18,19,21,17,20,21,17,20,21,17,19,21,17,19,22,17,20,21,17,19,21,17,19,21,17,20,21,17,19,22,17,20,21,17,19,21,17,19,22,17,20,21,17,19,21,17,19,21,17,20,21,17,19,22,17,20,21,17,19,21,17,19,22,17,20,21,17,19,21,17,19,21,17,20,21,17,19,22,17,20,21,17,19,21,17,19,22,17,20,21,17,19,21,17,19,21,17,20,21,17,19,22,17,20,21,17,19,21,17,19,22,17,20,21,17,19,21,17,19,21,17,20,21,17,19,22,17,20,21,17,19,21,17,19,22,17,20,21,17,19,21,17,19,21,17,20,21,17,19,22,17,20,21,17,19,21,18,19,21,17,19,21,17,19,21,18,19,21,17,19,21,18,20,21,17,19,21,17,19,21,18,19,21,17,19,21,17,19,21,18,19,21,17,19,21,18,20,21,17,19,21,17,19,21,18,19,21,17,19,21,17,19,21,18,19,21,17,19,21,18,20,21,17,19,21,17,19,21,18,19,21,17,19,21,17,19,21,18,19,21,17,19,21,18,20,21,17,19,21,17,19,21,18,19,21,17,19,21,17,19,21,18,19,21,17,19,21,18,20,21,17,19,21,17,19,21,18,19,21,17,19,21,17,19,21,18,19,21,17,19,21,18,20,21,17,19,21,17,19,21,18,19,21,17,19,21,17,19,21,18,20,22,17,19,21,18,20,21,17,19,22,17,19,21,18,20,21,17,19,22,17,19,21,18,20,22,17,19,21,18,20,21,17,19,22,17,19,21,18,20,21,17,19,22,17,19,21,18,20,22,17,19,21,18,20,21,17,19,22,17,19,21,18,20,21,17,19,22,17,19,21,18,20,22,17,19,21,18,20,21,17,19,22,17,19,21,18,20,21,17,19,22,17,19,21,18,20,22,17,19,21,18,20,21,17,19,22,17,19,21,18,20,21,17,19,22,17,19,21,18,20,22,17,19,21,18,20,21,17,19,22,17,19,21,18,20,21,17,19,22,17,19,21,18,20,22,17,20,21,17,19,21,17,19,22,17,20,21,17,19,21,17,19,21,17,20,21,17,19,22,17,20,21,17,19,21,17,19,22,17,20,21,17,19,21,17,19,21,17,20,21,17,19,22,17,20,21,17,19,21,17,19,22,17,20,21,17,19,21,17,19,21,17,20,21,17,19,22,17,20,21,17,19,21,17,19,22,17,20,21,17,19,21,17,19,21,17,20,21,17,19,22,17,20,21,17,19,21,17,19,22,17,20,21,17,19,21,17,19,21,17,20,21,17,19,22,17,20,21,17,19,21,17,19,22,17,20,21,17,19,21,17,19,21,17,20,21,17,19,22,17,20,21,17,19,21,18,19,21,17,20,21,17,19,22,17,20,21,17,19,21,18,19,22,17,20,21,17,19,21,18,19,21,17,20,21,17,19,22,17,20,21,17,19,21,18,19,22,17,20,21,17,19,21,18,19,21,17,20,21,17,19,22,17,20,21,17,19,21,18,19,22,17,20,21,17,19,21,18,19,21,17,20,21,17,19,22,17,20,21,17,19,21,18,19,22,17,20,21,17,19,21,18,19,21,17,20,21,17,19,22,17,20,21,17,19,21,18,19,22,17,20,21,17,19,21,18,19,21,17,20,21,17,19,22,17,20,21,17,19,21,18,19,22,17,20,21,17,19,21,18,19,21,17,20,21,17,20,21,18,19,21,17,19,21,18,20,21,17,19,21,17,19,21,18,20,21,17,19,21,17,20,21,18,19,21,17,19,21,18,20,21,17,19,21,17,19,21,18,20,21,17,19,21,17,20,21,18,19,21,17,19,21,18,20,21,17,19,21,17,19,21,18,20,21,17,19,21,17,20,21,18,19,21,17,19,21,18,20,21,17,19,21,17,19,21,18,20,21,17,19,21,17,20,21,18,19,21,17,19,21,18,20,21,17,19,21,17,19,21,18,20,21,17,19,21,17,20,21,18,19,21,17,19,21,18,20,21,17,19,21,17,19,21,18,20,21,17,19,21,17,20,21,18,19,21,17,20,21,17,19,21,17,19,22,17,20,21,17,19,21,17,19,21,17,19,21,17,19,22,17,20,21,17,19,21,17,19,22,17,20,21,17,19,21,17,19,21,17,19,21,17,19,22,17,20,21,17,19,21,17,19,22,17,20,21,17,19,21,17,19,21,17,19,21,17,19,22,17,20,21,17,19,21,17,19,22,17,20,21,17,19,21,17,19,21,17,19,21,17,19,22,17,20,21,17,19,21,17,19,22,17,20,21,17,19,21,17,19,21,17,19,21,17,19,22,17,20,21,17,19,21,17,19,22,17,20,21,17,19,21,17,19,21,17,19,21,17,19,22,17,20,21,17,19,21,18,19,21,17,20,21,17,19,21,18,20,21,17,20,22,18,20,21,17,20,21,17,20,22,18,19,21,17,20,21,17,19,21,18,20,21,17,20,22,18,20,21,17,20,21,17,20,22,18,19,21,17,20,21,17,19,21,18,20,21,17,20,22,18,20,21,17,20,21,17,20,22,18,19,21,17,20,21,17,19,21,18,20,21,17,20,22,18,20,21,17,20,21,17,20,22,18,19,21,17,20,21,17,19,21,18,20,21,17,20,22,18,20,21,17,20,21,17,20,22,18,19,21,17,20,21,17,19,21,18,20,21,17,20,22,18,20,21,17,20,21,17,20,22,18,19,21,17,20,21,17,20,21,17,19,21,17,19,22,17,20,21,17,19,21,17,19,21,17,20,21,17,19,22,17,20,21,17,19,21,17,19,22,17,20,21,17,19,21,17,19,21,17,20,21,17,19,22,17,20,21,17,19,21,17,19,22,17,20,21,17,19,21,17,19,21,17,20,21,17,19,22,17,20,21,17,19,21,17,19,22,17,20,21,17,19,21,17,19,21,17,20,21,17,19,22,17,20,21,17,19,21,17,19,22,17,20,21,17,19,21,17,19,21,17,20,21,17,19,22,17,20,21,17,19,21,17,19,22,17,20,21,17,19,21,17,19,21,17,20,21,17,19,22,17,20,21,17,19,21,18,19,21,17,19,21,17,19,21,18,19,21,17,19,21,18,20,21,17,19,21,17,19,21,18,19,21,17,19,21,17,19,21,18,19,21,17,19,21,18,20,21,17,19,21,17,19,21,18,19,21,17,19,21,17,19,21,18,19,21,17,19,21,18,20,21,17,19,21,17,19,21,18,19,21,17,19,21,17,19,21,18,19,21,17,19,21,18,20,21,17,19,21,17,19,21,18,19,21,17,19,21,17,19,21,18,19,21,17,19,21,18,20,21,17,19,21,17,19,21,18,19,21,17,19,21,17,19,21,18,19,21,17,19,21,18,20,21,17,19,21,17,19,21,18,19,21,17,19,21,17,19,21,18,20,22,17,19,21,18,20,21,17,19,22,17,19,21,18,20,21,17,19,22,17,19,21,18,20,22,17,19,21,18,20,21,17,19,22,17,19,21,18,20,21,17,19,22,17,19,21,18,20,22,17,19,21,18,20,21,17,19,22,17,19,21,18,20,21,17,19,22,17,19,21,18,20,22,17,19,21,18,20,21,17,19,22,17,19,21,18,20,21,17,19,22,17,19,21,18,20,22,17,19,21,18,20,21,17,19,22,17,19,21,18,20,21,17,19,22,17,19,21,18,20,22,17,19,21,18,20,21,17,19,22,17,19,21,18,20,21,17,19,22,17,19,21,18,20,22,17,20,21,17,19,21,17,19,22,17,20,21,17,19,21,17,19,21,17,20,21,17,19,22,17,20,21,17,19,21,17,19,22,17,20,21,17,19,21,17,19,21,17,20,21,17,19,22,17,20,21,17,19,21,17,19,22,17,20,21,17,19,21,17,19,21,17,20,21,17,19,22,17,20,21,17,19,21,17,19,22,17,20,21,17,19,21,17,19,21,17,20,21,17,19,22,17,20,21,17,19,21,17,19,22,17,20,21,17,19,21,17,19,21,17,20,21,17,19,22,17,20,21,17,19,21,17,19,22,17,20,21,17,19,21,17,19,21,17,20,21,17,19,22,17,20,21,17,19,21,18,19,21,17,20,21,17,19,22,17,20,21,17,19,21,18,19,22,17,20,21,17,19,21,18,19,21,17,20,21,17,19,22,17,20,21,17,19,21,18,19,22,17,20,21,17,19,21,18,19,21,17,20,21,17,19,22,17,20,21,17,19,21,18,19,22,17,20,21,17,19,21,18,19,21,17,20,21,17,19,22,17,20,21,17,19,21,18,19,22,17,20,21,17,19,21,18,19,21,17,20,21,17,19,22,17,20,21,17,19,21,18,19,22,17,20,21,17,19,21,18,19,21,17,20,21,17,19,22,17,20,21,17,19,21,18,19,22,17,20,21,17,19,21,18,19,21,17,20,21,17,20,21,18,19,21,17,19,21,18,20,21,17,19,21,17,19,21,18,20,21,17,19,21,17,20,21,18,19,21,17,19,21,18,20,21,17,19,21,17,19,21,18,20,21,17,19,21,17,20,21,18,19,21,17,19,21,18,20,21,17,19,21,17,19,21,18,20,21,17,19,21,17,20,21,18,19,21,17,19,21,18,20,21,17,19,21,17,19,21,18,20,21,17,19,21,17,20,21,18,19,21,17,19,21,18,20,21,17,19,21,17,19,21,18,20,21,17,19,21,17,20,21,18,19,21,17,19,21,18,20,21,17,19,21,17,19,21,18,20,21,17,19,21,17,20,21,18,19,21,17,20,21,17,19,21,17,19,22,17,20,21,17,19,21,17,19,21,17,19,21,17,19,22,17,20,21,17,19,21,17,19,22,17,20,21,17,19,21,17,19,21,17,19,21,17,19,22,17,20,21,17,19,21,17,19,22,17,20,21,17,19,21,17,19,21,17,19,21,17,19,22,17,20,21,17,19,21,17,19,22,17,20,21,17,19,21,17,19,21,17,19,21,17,19,22,17,20,21,17,19,21,17,19,22,17,20,21,17,19,21,17,19,21,17,19,21,17,19,22,17,20,21,17,19,21,17,19,22,17,20,21,17,19,21,17,19,21,17,19,21,17,19,22,17,20,21,17,19,21,18,19,21,17,20,21,17,19,21,18,20,21,17,20,22,18,20,21,17,20,21,17,20,22,18,19,21,17,20,21,17,19,21,18,20,21,17,20,22,18,20,21,17,20,21,17,20,22,18,19,21,17,20,21,17,19,21,18,20,21,17,20,22,18,20,21,17,20,21,17,20,22,18,19,21,17,20,21,17,19,21,18,20,21,17,20,22,18,20,21,17,20,21,17,20,22,18,19,21,17,20,21,17,19,21,18,20,21,17,20,22,18,20,21,17,20,21,17,20,22,18,19,21,17,20,21,17,19,21,18,20,21,17,20,22,18,20,21,17,20,21,17,20,22,18,19,21,17,20,21,17,20,21,17,19,21,17,19,22,17,20,21,17,19,21,17,19,21,17,20,21,17,19,22,17,20,21,17,19,21,17,19,22,17,20,21,17,19,21,17,19,21,17,20,21,17,19,22,17,20,21,17,19,21,17,19,22,17,20,21,17,19,21,17,19,21,17,20,21,17,19,22,17,20,21,17,19,21,17,19,22,17,20,21,17,19,21,17,19,21,17,20,21,17,19,22,17,20,21,17,19,21,17,19,22,17,20,21,17,19,21,17,19,21,17,20,21,17,19,22,17,20,21,17,19,21,17,19,22,17,20,21,17,19,21,17,19,21,17,20,21,17,19,22,17,20,21,17,19,21,18,19,21,17,19,21,17,19,21,18,19,21,17,19,21,18,20,21,17,19,21,17,19,21,18,19,21,17,19,21,17,19,21,18,19,21,17,19,21,18,20,21,17,19,21,17,19,21,18,19,21,17,19,21,17,19,21,18,19,21,17,19,21,18,20,21,17,19,21,17,19,21,18,19,21,17,19,21,17,19,21,18,19,21,17,19,21,18,20,21,17,19,21,17,19,21,18,19,21,17,19,21,17,19,21,18,19,21,17,19,21,18,20,21,17,19,21,17,19,21,18,19,21,17,19,21,17,19,21,18,19,21,17,19,21,18,20,21,17,19,21,17,19,21,18,19,21,17,19,21,17,19,21,18,20,22,17,19,21,18,20,21,17,19,22,17,19,21,18,20,21,17,19,22,17,19,21,18,20,22,17,19,21,18,20,21,17,19,22,17,19,21,18,20,21,17,19,22,17,19,21,18,20,22,17,19,21,18,20,21,17,19,22,17,19,21,18,20,21,17,19,22,17,19,21,18,20,22,17,19,21,18,20,21,17,19,22,17,19,21,18,20,21,17,19,22,17,19,21,18,20,22,17,19,21,18,20,21,17,19,22,17,19,21,18,20,21,17,19,22,17,19,21,18,20,22,17,19,21,18,20,21,17,19,22,17,19,21,18,20,21,17,19,22,17,19,21,18,20,22,17,20,21,17,19,21,17,19,22,17,20,21,17,19,21,17,19,21,17,20,21,17,19,22,17,20,21,17,19,21,17,19,22,17,20,21,17,19,21,17,19,21,17,20,21,17,19,22,17,20,21,17,19,21,17,19,22,17,20,21,17,19,21,17,19,21,17,20,21,17,19,22,17,20,21,17,19,21,17,19,22,17,20,21,17,19,21,17,19,21,17,20,21,17,19,22,17,20,21,17,19,21,17,19,22,17,20,21,17,19,21,17,19,21,17,20,21,17,19,22,17,20,21,17,19,21,17,19,22,17,20,21,17,19,21,17,19,21,17,20,21,17,19,22,17,20,21,17,19,21,18,19,21,17,20,21,17,19,22,17,20,21,17,19,21,18,19,22,17,20,21,17,19,21,18,19,21,17,20,21,17,19,22,17,20,21,17,19,21,18,19,22,17,20,21,17,19,21,18,19,21,17,20,21,17,19,22,17,20,21,17,19,21,18,19,22,17,20,21,17,19,21,18,19,21,17,20,21,17,19,22,17,20,21,17,19,21,18,19,22,17,20,21,17,19,21,18,19,21,17,20,21,17,19,22,17,20,21,17,19,21,18,19,22,17,20,21,17,19,21,18,19,21,17,20,21,17,19,22,17,20,21,17,19,21,18,19,22,17,20,21,17,19,21,18,19,21,17,20,21,17,20,21,18,19,21,17,19,21,18,20,21,17,19,21,17,19,21,18,20,21,17,19,21,17,20,21,18,19,21,17,19,21,18,20,21,17,19,21,17,19,21,18,20,21,17,19,21,17,20,21,18,19,21,17,19,21,18,20,21,17,19,21,17,19,21,18,20,21,17,19,21,17,20,21,18,19,21,17,19,21,18,20,21,17,19,21,17,19,21,18,20,21,17,19,21,17,20,21,18,19,21,17,19,21,18,20,21,17,19,21,17,19,21,18,20,21,17,19,21,17,20,21,18,19,21,17,19,21,18,20,21,17,19,21,17,19,21,18,20,21,17,19,21,17,20,21,18,19,21,17,20,21,17,19,21,17,19,22,17,20,21,17,19,21,17,19,21,17,19,21,17,19,22,17,20,21,17,19,21,17,19,22,17,20,21,17,19,21,17,19,21,17,19,21,17,19,22,17,20,21,17,19,21,17,19,22,17,20,21,17,19,21,49,50,52,91,92,94,94,95,96,94,95,96,94,95,96,94,95,96,92,93,94,54,55,57,17,19,21,17,19,21,17,19,22,17,20,21,17,19,21,17,19,22,17,20,21,17,19,21,17,19,21,17,19,21,17,19,22,17,20,21,17,19,21,17,19,22,17,20,21,17,19,21,17,19,21,17,19,21,17,19,22,17,20,21,17,19,21,18,19,21,17,20,21,17,19,21,18,20,21,17,20,22,18,20,21,17,20,21,17,20,22,18,19,21,17,20,21,17,19,21,18,20,21,17,20,22,18,20,21,17,20,21,17,20,22,18,19,21,17,20,21,17,19,21,18,20,21,60,62,64,238,238,239,224,224,225,240,240,241,224,224,225,235,235,236,238,238,239,240,240,241,240,240,241,75,76,78,17,20,21,17,20,22,18,19,21,17,20,21,17,19,21,18,20,21,17,20,22,18,20,21,17,20,21,17,20,22,18,19,21,17,20,21,17,19,21,18,20,21,17,20,22,18,20,21,17,20,21,17,20,22,18,19,21,17,20,21,17,20,21,17,19,21,17,19,22,17,20,21,17,19,21,17,19,21,17,20,21,17,19,22,17,20,21,17,19,21,17,19,22,17,20,21,17,19,21,17,19,21,17,20,21,17,19,22,17,20,21,17,19,21,17,19,22,17,19,21,85,87,88,242,242,243,190,190,191,182,182,183,198,198,199,159,159,160,181,181,182,185,185,186,242,242,243,113,115,116,17,19,21,17,19,22,17,20,21,17,19,21,17,19,22,17,20,21,17,19,21,17,19,21,17,20,21,17,19,22,17,20,21,17,19,21,17,19,22,17,20,21,17,19,21,17,19,21,17,20,21,17,19,22,17,20,21,17,19,21,18,19,21,17,19,21,17,19,21,18,19,21,17,19,21,18,20,21,17,19,21,17,19,21,18,19,21,17,19,21,17,19,21,18,19,21,17,19,21,18,20,21,17,19,21,17,19,21,18,19,21,17,19,21,17,19,21,17,19,21,20,22,24,137,138,139,167,168,169,167,168,169,167,167,169,167,167,168,167,168,169,167,168,169,147,148,149,26,27,29,17,19,21,17,19,21,18,19,21,17,19,21,17,19,21,18,19,21,17,19,21,18,20,21,17,19,21,17,19,21,18,19,21,17,19,21,17,19,21,18,19,21,17,19,21,18,20,21,17,19,21,17,19,21,18,19,21,17,19,21,17,19,21,18,20,22,17,19,21,18,20,21,17,19,22,17,19,21,18,20,21,17,19,22,17,19,21,18,20,22,17,19,21,18,20,21,17,19,22,17,19,21,18,20,21,17,19,22,17,19,21,18,20,22,17,19,21,18,20,21,17,19,21,16,18,20,17,19,20,16,18,21,16,18,20,17,19,21,16,18,20,17,19,20,16,18,21,17,19,21,18,20,21,17,19,22,17,19,21,18,20,22,17,19,21,18,20,21,17,19,22,17,19,21,18,20,21,17,19,22,17,19,21,18,20,22,17,19,21,18,20,21,17,19,22,17,19,21,18,20,21,17,19,22,17,19,21,18,20,22,17,20,21,17,19,21,17,19,22,17,20,21,17,19,21,17,19,21,17,20,21,17,19,22,17,20,21,17,19,21,17,19,22,17,20,21,17,19,21,17,19,21,17,20,21,17,19,22,17,20,21,17,19,21,17,19,22,17,20,21,17,19,21,17,19,21,17,19,21,17,19,21,17,19,21,17,19,21,17,19,21,17,19,21,17,19,21,17,19,21,17,20,21,17,19,22,17,20,21,17,19,21,17,19,22,17,20,21,17,19,21,17,19,21,17,20,21,17,19,22,17,20,21,17,19,21,17,19,22,17,20,21,17,19,21,17,19,21,17,20,21,17,19,22,17,20,21,17,19,21};
+
+static constexpr unsigned char sample_country[] = {255,255,255,255,255,255,255,255,255,255,255,255,243,248,252,235,243,251,254,254,254,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,233,242,251,164,203,238,186,215,242,195,221,244,152,196,236,201,224,245,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,246,250,253,110,170,229,253,254,254,255,255,255,208,227,246,192,218,243,192,218,243,215,231,248,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,180,210,242,205,225,246,196,219,245,170,204,240,161,199,239,251,253,254,255,255,255,165,201,239,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,166,201,240,255,255,255,219,233,249,180,209,242,194,218,245,168,202,240,250,252,254,166,201,240,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,180,208,243,231,240,251,250,252,254,162,197,240,250,251,254,179,207,243,250,252,254,158,195,239,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,249,251,254,133,178,236,249,251,254,219,232,249,170,201,242,199,220,246,170,201,242,219,232,249,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,237,244,252,137,180,237,156,191,240,129,175,236,138,180,237,199,219,246,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,240,245,252,229,238,251,254,254,254,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,245,245,245,250,250,250,246,246,246,255,255,255,252,252,252,248,248,248,248,248,248,255,255,255,255,255,255,243,243,243,252,252,252,255,255,255,255,255,255,252,252,252,255,255,255,255,255,255,255,255,255,248,248,248,246,246,246,255,255,255,244,244,244,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,186,186,186,136,136,136,136,136,136,137,137,137,144,144,144,208,208,208,147,147,147,144,144,144,167,167,167,181,181,181,150,150,150,151,151,151,141,141,141,135,135,135,168,168,168,183,183,183,139,139,139,188,188,188,136,136,136,145,145,145,142,142,142,142,142,142,159,159,159,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,254,254,254,254,254,254,254,254,254,254,254,254,254,254,254,255,255,255,254,254,254,254,254,254,255,255,255,254,254,254,254,254,254,254,254,254,255,255,255,254,254,254,235,235,235,254,254,254,254,254,254,255,255,255,254,254,254,238,238,238,238,238,238,254,254,254,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,246,249,253,243,247,252,243,247,252,243,247,252,243,247,252,243,247,252,243,247,252,243,247,252,243,247,252,243,247,252,243,247,252,243,247,252,243,247,252,243,247,252,243,247,252,243,247,252,243,247,252,243,247,252,243,247,252,243,247,252,243,247,252,243,247,252,243,247,252,243,247,252,243,247,252,243,247,252,243,247,252,243,247,252,243,247,252,243,247,252,243,247,252,243,247,252,243,247,252,243,247,252,243,247,252,243,247,252,243,247,252,243,247,252,243,247,252,243,247,252,243,247,252,245,248,253,255,255,255,255,255,255,88,142,214,57,121,205,63,125,207,55,119,205,49,116,203,51,117,204,56,120,205,43,112,202,33,105,199,33,105,199,33,105,199,33,105,199,33,105,199,33,105,199,33,105,199,33,105,199,33,105,199,33,105,199,33,105,199,33,105,199,33,105,199,33,105,199,33,105,199,33,105,199,33,105,199,33,105,199,33,105,199,33,105,199,33,105,199,33,105,199,33,105,199,33,105,199,33,105,199,33,105,199,33,105,199,33,105,199,33,105,199,33,105,199,33,105,199,33,105,199,183,194,210,171,195,228,255,255,255};
+
+static constexpr unsigned char sample_update[] = {255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,195,219,246,128,180,236,113,171,234,187,214,245,240,246,252,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,140,187,238,111,170,234,219,233,249,250,252,254,185,214,244,133,182,237,240,246,252,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,188,215,245,147,191,239,253,254,254,163,200,241,255,255,255,255,255,255,195,219,246,146,190,239,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,146,190,239,215,231,249,255,255,255,151,193,239,126,178,236,176,208,243,176,208,243,105,166,233,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,171,205,242,203,224,247,255,255,255,132,182,237,131,181,237,254,254,255,254,254,254,131,182,237,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,210,228,248,105,166,233,234,242,252,164,201,241,255,255,255,255,255,255,145,190,239,174,207,243,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,160,199,241,36,125,223,180,210,244,202,224,247,113,171,234,135,184,237,238,244,252,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,214,230,249,131,182,237,110,169,234,207,226,248,241,246,253,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,217,217,217,179,179,179,202,202,202,197,197,197,181,181,181,213,213,213,193,193,193,196,196,196,200,200,200,233,233,233,192,192,192,213,213,213,190,190,190,200,200,200,201,201,201,188,188,188,190,190,190,211,211,211,177,177,177,199,199,199,251,251,251,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,226,226,226,172,172,172,195,195,195,192,192,192,185,185,185,202,202,202,215,215,215,184,184,184,180,180,180,222,222,222,204,204,204,195,195,195,196,196,196,209,209,209,194,194,194,184,184,184,192,192,192,199,199,199,188,188,188,182,182,182,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,241,241,241,249,249,249,248,248,248,255,255,255,255,255,255,255,255,255,255,255,255,241,241,241,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,246,246,246,250,250,250,255,255,255,255,255,255,255,255,255,235,235,235,249,249,249,255,255,255,255,255,255,255,255,255,248,248,248,255,255,255,255,255,255,255,255,255,243,243,243,255,255,255,246,246,246,250,250,250,255,255,255,244,244,244,255,255,255,255,255,255,246,246,246,255,255,255,246,246,246,255,255,255,249,249,249,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,238,238,238,229,229,229,216,216,216,221,221,221,214,214,214,228,228,228,214,214,214,224,224,224,218,218,218,217,217,217,216,216,216,236,236,236,201,201,201,214,214,214,215,215,215,221,221,221,212,212,212,236,236,236,214,214,214,221,221,221,237,237,237,215,215,215,231,231,231,214,214,214,216,216,216,210,210,210,221,221,221,217,217,217,218,218,218,220,220,220,221,221,221,207,207,207,232,232,232,212,212,212,212,212,212,220,220,220,211,211,211,219,219,219,204,204,204,216,216,216,222,222,222,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,253,253,253,253,253,253,255,255,255,255,255,255,255,255,255,251,251,251,255,255,255,252,252,252,251,251,251,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,252,252,252,255,255,255,255,255,255,254,254,254,255,255,255,255,255,255,252,252,252,255,255,255,255,255,255,255,255,255,252,252,252,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,228,228,228,207,207,207,206,206,206,236,236,236,219,219,219,206,206,206,206,206,206,194,194,194,212,212,212,213,213,213,210,210,210,232,232,232,218,218,218,208,208,208,231,231,231,204,204,204,225,225,225,202,202,202,202,202,202,219,219,219,230,230,230,208,208,208,230,230,230,198,198,198,206,206,206,198,198,198,204,204,204,199,199,199,250,250,250,215,215,215,210,210,210,227,227,227,222,222,222,193,193,193,237,237,237,211,211,211,199,199,199,221,221,221,203,203,203,203,203,203,231,231,231,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,248,248,248,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,247,247,247,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,250,250,250,245,245,245,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,241,241,241,214,214,214,217,217,217,230,230,230,236,236,236,221,221,221,225,225,225,217,217,217,222,222,222,227,227,227,230,230,230,225,225,225,226,226,226,226,226,226,221,221,221,220,220,220,232,232,232,231,231,231,224,224,224,237,237,237,219,219,219,228,228,228,232,232,232,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,250,250,250,244,244,244,238,238,238,246,246,246,249,249,249,241,241,241,240,240,240,246,246,246,241,241,241,240,240,240,246,246,246,248,248,248,229,229,229,238,238,238,239,239,239,239,239,239,243,243,243,241,241,241,242,242,242,245,245,245,244,244,244,218,218,218,241,241,241,250,250,250,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255};
+static constexpr unsigned char sample_age_range[] = {
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,192,192,192,189,189,189,187,187,187,185,185,185,185,185,185,
+ 185,185,185,186,186,186,186,186,186,185,185,185,184,184,184,183,183,183,182,182,182,183,183,183,
+ 184,184,184,184,184,184,182,182,182,181,181,181,181,181,181,182,182,182,185,185,185,189,189,189,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,192,192,192,191,191,191,188,188,188,185,185,185,250,250,250,180,180,180,
+ 255,255,255,182,182,182,183,183,183,252,252,252,179,179,179,241,241,241,232,232,232,178,178,178,
+ 179,179,179,189,189,189,251,251,251,249,249,249,197,197,197,177,177,177,211,211,211,188,188,188,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,192,192,192,191,191,191,188,188,188,185,185,185,182,182,182,181,181,181,
+ 182,182,182,183,183,183,184,184,184,182,182,182,180,180,180,179,179,179,179,179,179,179,179,179,
+ 180,180,180,181,181,181,179,179,179,177,177,177,176,176,176,179,179,179,182,182,182,188,188,188,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,192,192,192,191,191,191,188,188,188,187,187,187,186,186,186,
+ 186,186,186,188,188,188,188,188,188,187,187,187,186,186,186,185,185,185,185,185,185,185,185,185,
+ 186,186,186,186,186,186,185,185,185,185,185,185,184,184,184,185,185,185,188,188,188,190,190,190,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,192,192,192,191,191,191,191,191,191,191,191,191,
+ 191,191,191,191,191,191,191,191,191,191,191,191,191,191,191,191,191,191,191,191,191,191,191,191,
+ 191,191,191,191,191,191,191,191,191,190,190,190,190,190,190,191,191,191,191,191,191,192,192,192,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,192,192,192,
+ 192,192,192,193,193,193,193,193,193,193,193,193,192,192,192,192,192,192,192,192,192,192,192,192,
+ 192,192,192,192,192,192,192,192,192,192,192,192,192,192,192,192,192,192,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,192,192,192,191,191,191,189,189,189,189,189,189,
+ 189,189,189,189,189,189,189,189,189,189,189,189,189,189,189,189,189,189,189,189,189,189,189,189,
+ 189,189,189,189,189,189,189,189,189,189,189,189,189,189,189,189,189,189,189,189,189,189,189,189,
+ 189,189,189,189,189,189,189,189,189,189,189,189,189,189,189,189,189,189,189,189,189,189,189,189,
+ 189,189,189,189,189,189,189,189,189,189,189,189,189,189,189,189,189,189,189,189,189,189,189,189,
+ 189,189,189,189,189,189,189,189,189,189,189,189,189,189,189,189,189,189,189,189,189,189,189,189,
+ 189,189,189,189,189,189,189,189,189,189,189,189,189,189,189,189,189,189,189,189,189,189,189,189,
+ 189,189,189,189,189,189,189,189,189,189,189,189,189,189,189,189,189,189,189,189,189,189,189,189,
+ 189,189,189,189,189,189,189,189,189,189,189,189,189,189,189,189,189,189,189,189,189,189,189,189,
+ 189,189,189,189,189,189,189,189,189,191,191,191,192,192,192,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,191,191,191,183,183,183,254,254,254,253,253,253,253,253,253,
+ 253,253,253,254,254,254,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,183,183,183,191,191,191,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,185,185,185,253,253,253,251,251,251,250,250,250,249,249,249,
+ 250,250,250,252,252,252,254,254,254,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,185,185,185,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,192,192,192,180,180,180,251,251,251,248,248,248,242,242,242,242,242,242,
+ 248,248,248,250,250,250,253,253,253,254,254,254,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,122,122,122,180,180,180,192,192,192,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,191,191,191,178,178,178,250,250,250,244,244,244,242,242,242,242,242,242,
+ 242,242,242,247,247,247,252,252,252,254,254,254,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,122,122,122,178,178,178,191,191,191,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,191,191,191,177,177,177,249,249,249,243,243,243,242,242,242,242,242,242,
+ 251,251,251,246,246,246,251,251,251,254,254,254,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,122,122,122,177,177,177,191,191,191,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,191,191,191,177,177,177,250,250,250,246,246,246,241,241,241,240,240,240,
+ 243,243,243,248,248,248,252,252,252,254,254,254,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,122,122,122,177,177,177,191,191,191,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,191,191,191,177,177,177,252,252,252,250,250,250,247,247,247,246,246,246,
+ 248,248,248,251,251,251,253,253,253,254,254,254,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,62,141,227,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,122,122,122,177,177,177,191,191,191,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,191,191,191,177,177,177,254,254,254,253,253,253,252,252,252,251,251,251,
+ 252,252,252,253,253,253,254,254,254,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 153,194,241,255,255,255,255,255,255,255,255,255,50,134,225,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,122,122,122,177,177,177,191,191,191,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,191,191,191,177,177,177,255,255,255,254,254,254,254,254,254,254,254,254,
+ 254,254,254,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,241,246,253,202,224,247,255,255,255,255,255,255,
+ 254,254,255,255,255,255,255,255,255,255,255,255,39,127,223,39,127,223,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,122,122,122,177,177,177,191,191,191,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,191,191,191,177,177,177,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,246,250,254,203,225,248,255,255,255,222,235,250,
+ 142,188,238,142,188,239,255,255,255,28,121,222,28,120,222,28,120,223,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,122,122,122,177,177,177,191,191,191,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,191,191,191,177,177,177,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,196,220,246,196,220,246,197,221,247,136,185,238,
+ 136,184,238,140,187,238,255,255,255,16,114,220,17,114,221,16,114,220,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,122,122,122,177,177,177,191,191,191,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,191,191,191,177,177,177,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,219,234,250,193,218,246,193,218,246,130,181,237,
+ 131,181,237,134,184,237,255,255,255,255,255,255,6,107,220,6,107,219,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,122,122,122,177,177,177,191,191,191,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,191,191,191,177,177,177,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,218,233,250,192,218,246,255,255,255,255,255,255,
+ 128,180,237,132,182,237,255,255,255,255,255,255,0,104,218,1,104,219,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,122,122,122,177,177,177,191,191,191,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,191,191,191,177,177,177,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,218,233,250,192,218,246,255,255,255,255,255,255,
+ 128,180,236,132,182,237,255,255,255,255,255,255,1,104,218,0,104,217,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,122,122,122,177,177,177,191,191,191,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,191,191,191,177,177,177,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,122,122,122,177,177,177,191,191,191,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,191,191,191,177,177,177,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,122,122,122,177,177,177,191,191,191,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,191,191,191,177,177,177,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,122,122,122,177,177,177,191,191,191,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,191,191,191,177,177,177,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,122,122,122,177,177,177,191,191,191,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,191,191,191,177,177,177,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,42,42,42,253,253,253,255,255,255,134,134,134,
+ 134,134,134,255,255,255,253,253,253,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,122,122,122,177,177,177,191,191,191,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,191,191,191,177,177,177,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,122,122,122,177,177,177,191,191,191,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,191,191,191,177,177,177,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,217,217,217,128,128,128,255,255,255,177,177,177,
+ 255,255,255,249,249,249,255,255,255,197,197,197,255,255,255,252,252,252,155,155,155,128,128,128,
+ 235,235,235,255,255,255,255,255,255,213,213,213,255,255,255,255,255,255,157,157,157,255,255,255,
+ 255,255,255,255,255,255,176,176,176,255,255,255,139,139,139,244,244,244,218,218,218,255,255,255,
+ 255,255,255,255,255,255,152,152,152,211,211,211,255,255,255,128,128,128,166,166,166,232,232,232,
+ 187,187,187,255,255,255,132,132,132,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,122,122,122,177,177,177,191,191,191,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,191,191,191,177,177,177,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,122,122,122,177,177,177,191,191,191,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,191,191,191,177,177,177,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,122,122,122,177,177,177,191,191,191,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,191,191,191,177,177,177,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,122,122,122,177,177,177,191,191,191,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,191,191,191,177,177,177,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,254,254,254,255,255,255,255,255,255,254,254,254,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,244,244,244,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 223,223,223,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,122,122,122,177,177,177,191,191,191,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,191,191,191,177,177,177,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,152,152,152,213,213,213,255,255,255,
+ 255,255,255,149,149,149,128,128,128,128,128,128,255,255,255,159,159,159,255,255,255,255,255,255,
+ 175,175,175,233,233,233,255,255,255,205,205,205,131,131,131,255,255,255,255,255,255,128,128,128,
+ 255,255,255,157,157,157,201,201,201,255,255,255,128,128,128,255,255,255,254,254,254,158,158,158,
+ 133,133,133,158,158,158,205,205,205,255,255,255,151,151,151,255,255,255,201,201,201,217,217,217,
+ 195,195,195,255,255,255,167,167,167,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,122,122,122,177,177,177,191,191,191,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,191,191,191,177,177,177,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,122,122,122,177,177,177,191,191,191,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,191,191,191,177,177,177,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,237,237,237,255,255,255,128,128,128,198,198,198,
+ 255,255,255,128,128,128,128,128,128,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,122,122,122,177,177,177,191,191,191,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,191,191,191,177,177,177,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,122,122,122,177,177,177,191,191,191,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,191,191,191,177,177,177,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,122,122,122,177,177,177,191,191,191,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,191,191,191,177,177,177,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,122,122,122,177,177,177,191,191,191,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,191,191,191,177,177,177,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,250,250,250,250,250,250,250,250,250,250,250,250,
+ 250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,
+ 250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,
+ 250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,
+ 250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,
+ 250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,122,122,122,177,177,177,191,191,191,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,191,191,191,177,177,177,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,250,250,250,250,250,250,250,250,250,250,250,250,
+ 250,250,250,141,141,141,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,
+ 250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,
+ 250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,
+ 250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,
+ 250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,122,122,122,177,177,177,191,191,191,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,191,191,191,177,177,177,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,250,250,250,250,250,250,14,112,220,250,250,250,
+ 250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,
+ 250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,
+ 250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,
+ 250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,
+ 250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,122,122,122,177,177,177,191,191,191,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,191,191,191,177,177,177,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,250,250,250,250,250,250,250,250,250,250,250,250,
+ 219,219,219,250,250,250,172,172,172,183,183,183,250,250,250,221,221,221,249,249,249,250,250,250,
+ 250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,
+ 250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,
+ 250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,
+ 250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,122,122,122,177,177,177,191,191,191,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,191,191,191,177,177,177,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,250,250,250,250,250,250,250,250,250,250,250,250,
+ 250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,
+ 250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,
+ 250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,
+ 250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,
+ 250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,122,122,122,177,177,177,191,191,191,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,191,191,191,177,177,177,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,122,122,122,177,177,177,191,191,191,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,191,191,191,177,177,177,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,250,250,250,250,250,250,250,250,250,250,250,250,
+ 250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,
+ 250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,
+ 250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,
+ 250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,
+ 250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,122,122,122,177,177,177,191,191,191,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,191,191,191,177,177,177,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,250,250,250,250,250,250,250,250,250,250,250,250,
+ 250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,
+ 250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,
+ 250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,
+ 250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,
+ 250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,122,122,122,177,177,177,191,191,191,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,191,191,191,177,177,177,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,250,250,250,250,250,250,250,250,250,250,250,250,
+ 250,250,250,47,47,47,99,99,99,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,
+ 250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,
+ 250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,
+ 250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,
+ 250,250,250,250,250,250,250,250,250,241,241,241,250,250,250,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,122,122,122,177,177,177,191,191,191,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,191,191,191,177,177,177,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,250,250,250,250,250,250,250,250,250,250,250,250,
+ 250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,
+ 250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,
+ 250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,
+ 250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,
+ 250,250,250,250,250,250,250,250,250,125,125,125,250,250,250,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,122,122,122,177,177,177,191,191,191,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,191,191,191,177,177,177,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,250,250,250,250,250,250,250,250,250,250,250,250,
+ 250,250,250,250,250,250,244,244,244,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,
+ 250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,
+ 250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,
+ 250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,
+ 250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,122,122,122,177,177,177,191,191,191,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,191,191,191,177,177,177,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,250,250,250,250,250,250,250,250,250,250,250,250,
+ 250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,
+ 250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,
+ 250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,
+ 250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,
+ 250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,122,122,122,177,177,177,191,191,191,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,191,191,191,177,177,177,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,122,122,122,177,177,177,191,191,191,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,191,191,191,177,177,177,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,250,250,250,250,250,250,250,250,250,250,250,250,
+ 250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,
+ 250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,
+ 250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,
+ 250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,
+ 250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,122,122,122,177,177,177,191,191,191,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,191,191,191,177,177,177,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,250,250,250,250,250,250,250,250,250,250,250,250,
+ 250,250,250,46,46,46,132,132,132,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,
+ 250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,
+ 250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,
+ 250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,
+ 250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,122,122,122,177,177,177,191,191,191,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,191,191,191,177,177,177,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,250,250,250,250,250,250,0,104,218,250,250,250,
+ 250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,
+ 250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,
+ 250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,
+ 250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,
+ 250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,122,122,122,177,177,177,191,191,191,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,191,191,191,177,177,177,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,250,250,250,250,250,250,250,250,250,250,250,250,
+ 219,219,219,245,245,245,200,200,200,154,154,154,169,169,169,161,161,161,250,250,250,250,250,250,
+ 250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,
+ 250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,
+ 250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,
+ 250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,122,122,122,177,177,177,191,191,191,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,191,191,191,177,177,177,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,250,250,250,250,250,250,250,250,250,250,250,250,
+ 250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,
+ 250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,
+ 250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,
+ 250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,
+ 250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,122,122,122,177,177,177,191,191,191,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,191,191,191,177,177,177,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,177,177,177,191,191,191,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,191,191,191,177,177,177,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,177,177,177,191,191,191,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,191,191,191,177,177,177,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,177,177,177,191,191,191,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,191,191,191,178,178,178,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,178,178,178,191,191,191,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,192,192,192,181,181,181,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,181,181,181,192,192,192,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,188,188,188,171,171,171,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,171,171,171,188,188,188,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,192,192,192,187,187,187,180,180,180,176,176,176,176,176,176,
+ 175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,
+ 175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,
+ 175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,
+ 175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,
+ 175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,
+ 175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,
+ 175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,
+ 175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,
+ 175,175,175,176,176,176,176,176,176,180,180,180,187,187,187,192,192,192,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,192,192,192,191,191,191,191,191,191,
+ 191,191,191,191,191,191,191,191,191,191,191,191,191,191,191,191,191,191,191,191,191,191,191,191,
+ 191,191,191,191,191,191,191,191,191,191,191,191,191,191,191,191,191,191,191,191,191,191,191,191,
+ 191,191,191,191,191,191,191,191,191,191,191,191,191,191,191,191,191,191,191,191,191,191,191,191,
+ 191,191,191,191,191,191,191,191,191,191,191,191,191,191,191,191,191,191,191,191,191,191,191,191,
+ 191,191,191,191,191,191,191,191,191,191,191,191,191,191,191,191,191,191,191,191,191,191,191,191,
+ 191,191,191,191,191,191,191,191,191,191,191,191,191,191,191,191,191,191,191,191,191,191,191,191,
+ 191,191,191,191,191,191,191,191,191,191,191,191,191,191,191,191,191,191,191,191,191,191,191,191,
+ 191,191,191,191,191,191,191,191,191,191,191,191,191,191,191,191,191,191,191,191,191,191,191,191,
+ 191,191,191,191,191,191,191,191,191,192,192,192,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,
+ 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193
+};
diff --git a/src/wsm-runtime/src/shell_integration.cpp b/src/wsm-runtime/src/shell_integration.cpp
index 26cd933..3ea880b 100644
--- a/src/wsm-runtime/src/shell_integration.cpp
+++ b/src/wsm-runtime/src/shell_integration.cpp
@@ -39,6 +39,15 @@ std::wstring utf8_to_wide(const std::string& s) {
return out;
}
+std::string wide_to_utf8(const std::wstring& s) {
+ if (s.empty()) return {};
+ int len = WideCharToMultiByte(CP_UTF8, 0, s.c_str(), static_cast<int>(s.size()), nullptr, 0, nullptr, nullptr);
+ if (len <= 0) return {};
+ std::string out(static_cast<size_t>(len), '\0');
+ WideCharToMultiByte(CP_UTF8, 0, s.c_str(), static_cast<int>(s.size()), out.data(), len, nullptr, nullptr);
+ return out;
+}
+
bool set_hkcu_string(const std::string& subkey, const std::string& val_name, const std::string& data) {
HKEY hKey = nullptr;
if (RegCreateKeyExA(HKEY_CURRENT_USER, subkey.c_str(), 0, nullptr, 0, KEY_WRITE, nullptr, &hKey, nullptr) != ERROR_SUCCESS) {
@@ -160,6 +169,32 @@ bool write_link(const std::filesystem::path& lnk, const std::string& app_name, c
return SUCCEEDED(link.As(&persist)) && SUCCEEDED(persist->Save(lnk.wstring().c_str(), TRUE));
}
+// Never overwrite or remove a Windows shortcut belonging to another application.
+bool is_our_link(const std::filesystem::path& lnk, const std::string& bundle_id) {
+ Microsoft::WRL::ComPtr<IShellLinkW> link;
+ if (FAILED(CoCreateInstance(CLSID_ShellLink, nullptr, CLSCTX_INPROC_SERVER, IID_PPV_ARGS(&link)))) return false;
+ Microsoft::WRL::ComPtr<IPersistFile> persist;
+ if (FAILED(link.As(&persist)) || FAILED(persist->Load(lnk.c_str(), STGM_READ))) return false;
+ wchar_t target[32768]{}, args[4096]{};
+ if (FAILED(link->GetPath(target, static_cast<int>(std::size(target)), nullptr, SLGP_RAWPATH)) ||
+ FAILED(link->GetArguments(args, static_cast<int>(std::size(args))))) return false;
+ const std::wstring expected_args = L"\"" + utf8_to_wide(bundle_id) + L"\"";
+ return _wcsicmp(target, launcher_exe_path().c_str()) == 0 && args == expected_args;
+}
+
+bool link_available(const std::filesystem::path& lnk, const std::string& bundle_id) {
+ std::error_code ec;
+ const bool exists = std::filesystem::exists(lnk, ec);
+ return !ec && (!exists || is_our_link(lnk, bundle_id));
+}
+
+std::wstring shortcut_name(const std::string& app_name, unsigned int variant) {
+ std::wstring name = safe_file_name(app_name);
+ if (variant == 1) name += L" (macOS)";
+ else if (variant > 1) name += L" (macOS " + std::to_wstring(variant) + L")";
+ return name + L".lnk";
+}
+
template <typename F> void on_sta(F&& f) {
// COM shell objects need an STA; wsmd's request thread may be MTA.
std::thread t([&] {
@@ -172,31 +207,52 @@ template <typename F> void on_sta(F&& f) {
} // namespace
+// Explicit directories also let automated tests check collision handling without touching a
+// person's actual Desktop or Start menu.
+bool create_app_shortcuts_in(const std::string& app_name, const std::string& bundle_id,
+ const std::string& ico_path, const std::filesystem::path& programs,
+ const std::filesystem::path& desktop, std::string& out_lnk_path) {
+ bool ok = false;
+ on_sta([&] {
+ if (programs.empty() || desktop.empty()) return;
+ for (unsigned int variant = 0; variant < 100; ++variant) {
+ const auto file = shortcut_name(app_name, variant);
+ const auto start = programs / file, desk = desktop / file;
+ if (!link_available(start, bundle_id) || !link_available(desk, bundle_id)) continue;
+ const bool start_ok = write_link(start, app_name, bundle_id, ico_path);
+ const bool desk_ok = write_link(desk, app_name, bundle_id, ico_path);
+ ok = start_ok && desk_ok;
+ if (start_ok) out_lnk_path = wide_to_utf8(start.wstring());
+ break;
+ }
+ });
+ return ok;
+}
+
bool create_app_start_menu_shortcut(const std::string& app_name,
const std::string& bundle_id,
const std::string& ico_path,
std::string& out_lnk_path) {
// Installed Mac apps appear exactly like Windows apps: their own entry at the top level of the
// Start menu and an icon on the Desktop, both with the app's real icon.
- bool ok = false;
- on_sta([&] {
- std::wstring file = safe_file_name(app_name) + L".lnk";
- auto start = known_folder(FOLDERID_Programs) / file;
- auto desk = known_folder(FOLDERID_Desktop) / file;
- ok = write_link(start, app_name, bundle_id, ico_path);
- write_link(desk, app_name, bundle_id, ico_path);
- out_lnk_path = start.string();
- });
+ const auto programs = known_folder(FOLDERID_Programs), desktop = known_folder(FOLDERID_Desktop);
+ bool ok = create_app_shortcuts_in(app_name, bundle_id, ico_path, programs, desktop, out_lnk_path);
SHChangeNotify(SHCNE_ASSOCCHANGED, SHCNF_IDLIST, nullptr, nullptr);
return ok;
}
-void remove_app_shortcuts(const std::string& app_name) {
- std::wstring file = safe_file_name(app_name) + L".lnk";
- std::error_code ec;
- std::filesystem::remove(known_folder(FOLDERID_Programs) / file, ec);
- std::filesystem::remove(known_folder(FOLDERID_Desktop) / file, ec);
- std::filesystem::remove(known_folder(FOLDERID_Programs) / L"WSM Apps" / file, ec); // pre-0.2 location
+void remove_app_shortcuts(const std::string& app_name, const std::string& bundle_id) {
+ on_sta([&] {
+ const auto programs = known_folder(FOLDERID_Programs), desktop = known_folder(FOLDERID_Desktop);
+ if (programs.empty() || desktop.empty()) return;
+ for (unsigned int variant = 0; variant < 100; ++variant) {
+ const auto file = shortcut_name(app_name, variant);
+ for (const auto& p : {programs / file, desktop / file, programs / L"WSM Apps" / file}) {
+ std::error_code ec;
+ if (std::filesystem::exists(p, ec) && !ec && is_our_link(p, bundle_id)) std::filesystem::remove(p, ec);
+ }
+ }
+ });
SHChangeNotify(SHCNE_ASSOCCHANGED, SHCNF_IDLIST, nullptr, nullptr);
}
diff --git a/src/wsm-runtime/src/window_streamer.cpp b/src/wsm-runtime/src/window_streamer.cpp
index c4ff826..e6c0f83 100644
--- a/src/wsm-runtime/src/window_streamer.cpp
+++ b/src/wsm-runtime/src/window_streamer.cpp
@@ -1,4 +1,6 @@
#include "wsm/window_streamer.hpp"
+#include "wsm/setup_assistant.hpp"
+#include "wsm/ssh_private_key.hpp"
#include "wsm/qmp_unix.hpp"
#include <winsock2.h>
@@ -96,7 +98,7 @@ function bid(pid) {
var b = (a && a.bundleIdentifier && !a.bundleIdentifier.isNil()) ? ObjC.unwrap(a.bundleIdentifier) : "";
bundles[pid] = b; return b;
}
-var last = "", n = 0;
+var last = "", n = 0, lastSetup = null;
var pb = $.NSPasteboard.generalPasteboard, pbCount = pb.changeCount;
while (true) {
if (pb.changeCount != pbCount) { // the app copied something: send it to Windows
@@ -106,9 +108,11 @@ while (true) {
out("C " + ObjC.unwrap(t.dataUsingEncoding($.NSUTF8StringEncoding).base64EncodedStringWithOptions(0)));
}
var l = ObjC.deepUnwrap(ObjC.castRefToObject($.CGWindowListCopyWindowInfo(1 | 16, 0))) || [];
- var r = [];
+ var r = [], setup = false;
for (var i = l.length - 1; i >= 0; i--) { // back to front
var w = l[i], L = w.kCGWindowLayer, o = w.kCGWindowOwnerName || "";
+ if (L >= 0 && L < 500 && w.kCGWindowAlpha !== 0 &&
+ (o === "Setup Assistant" || o === "SetupAssistantSpringboard")) setup = true;
// App windows, panels and menus (up to 101); never macOS's own overlays above that (the
// first-login "Installer Progress" Apple logo is at 993-996 and covers the whole screen).
if (L < 0 || L >= 500 || L == 20 || L == 24 || L == 25) continue;
@@ -119,6 +123,7 @@ while (true) {
r.push([w.kCGWindowNumber, w.kCGWindowOwnerPID, L, Math.round(b.X), Math.round(b.Y),
Math.round(b.Width), Math.round(b.Height), o.replace(/[|;]/g, " "), bid(w.kCGWindowOwnerPID)].join("|"));
}
+ if (setup !== lastSetup) { out("A " + (setup ? "1" : "0")); lastSetup = setup; }
var s = r.join(";");
if (s != last || ++n % 40 == 0) { out("W " + s); last = s; } else out("K");
delay(0.1);
@@ -232,8 +237,8 @@ WindowStreamer::WindowStreamer(compositor::RootlessCompositor& compositor, std::
WindowStreamer::~WindowStreamer() { stop(); }
std::string WindowStreamer::ssh_base() const {
- return "C:\\Windows\\System32\\OpenSSH\\ssh.exe -i " + quote_arg(root_ + "\\runtime\\config\\guest\\id_ed25519") +
- " -p 2222 -o BatchMode=yes -o StrictHostKeyChecking=no -o UserKnownHostsFile=NUL -o LogLevel=ERROR"
+ return "C:\\Windows\\System32\\OpenSSH\\ssh.exe -i " + quote_arg(ssh_private_key_path(root_)) +
+ " -p 2222 -o IdentitiesOnly=yes -o BatchMode=yes -o StrictHostKeyChecking=no -o UserKnownHostsFile=NUL -o LogLevel=ERROR"
" -o ConnectTimeout=10 -o ServerAliveInterval=10 -o ServerAliveCountMax=3 [email protected] ";
}
@@ -284,8 +289,8 @@ int WindowStreamer::guest_exec(const std::string& command, std::string* out, uin
int WindowStreamer::scp(const std::string& from, const std::string& to, uint32_t timeout_ms) const {
std::string cmd = "C:\\Windows\\System32\\OpenSSH\\scp.exe -q -i " +
- quote_arg(root_ + "\\runtime\\config\\guest\\id_ed25519") +
- " -P 2222 -o BatchMode=yes -o StrictHostKeyChecking=no -o UserKnownHostsFile=NUL"
+ quote_arg(ssh_private_key_path(root_)) +
+ " -P 2222 -o IdentitiesOnly=yes -o BatchMode=yes -o StrictHostKeyChecking=no -o UserKnownHostsFile=NUL"
" -o LogLevel=ERROR -o ConnectTimeout=10 " + quote_arg(from) + " " + quote_arg(to);
Proc p;
if (!spawn(cmd, p)) return -1;
@@ -318,8 +323,8 @@ void WindowStreamer::kick() {
// One SSH session kept open with a shell on the other end: commands run in milliseconds
// instead of paying for a new SSH connection (~1 s) each time.
-int WindowStreamer::quick(const std::string& command, std::string* out, uint32_t timeout_ms) {
- last_activity_ms_.store(now_ms());
+int WindowStreamer::quick(const std::string& command, std::string* out, uint32_t timeout_ms, bool counts_as_activity) {
+ if (counts_as_activity) last_activity_ms_.store(now_ms());
std::lock_guard<std::mutex> lk(sh_mu_);
for (int attempt = 0; attempt < 2; ++attempt) {
if (!sh_proc_ || WaitForSingleObject(static_cast<HANDLE>(sh_proc_), 0) == WAIT_OBJECT_0) {
@@ -343,7 +348,7 @@ int WindowStreamer::quick(const std::string& command, std::string* out, uint32_t
if (m != std::string::npos && buf.find('\n', m) != std::string::npos) {
int rc = std::atoi(buf.c_str() + m + 11);
if (out) *out = buf.substr(0, m);
- last_activity_ms_.store(now_ms());
+ if (counts_as_activity) last_activity_ms_.store(now_ms());
return rc;
}
if (PeekNamedPipe(static_cast<HANDLE>(sh_out_), nullptr, 0, nullptr, &avail, nullptr) && avail > 0) {
@@ -470,17 +475,11 @@ void WindowStreamer::prewarm_apps() {
void WindowStreamer::start() {
if (running_.exchange(true)) return;
std::filesystem::create_directories(root_ + "\\cache\\tmp");
- // Windows OpenSSH ignores a private key that other accounts can read.
- {
- std::string key = root_ + "\\runtime\\config\\guest\\id_ed25519";
- std::string cmd = "icacls.exe " + quote_arg(key) + " /inheritance:r /grant:r \"%USERNAME%:F\"";
- Proc p;
- if (spawn("cmd.exe /c " + cmd, p)) { WaitForSingleObject(p.process, 10000); close_proc(p); }
- }
watch_thread_ = std::thread(&WindowStreamer::watch_loop, this);
capture_thread_ = std::thread(&WindowStreamer::capture_loop, this);
vnc_thread_ = std::thread(&WindowStreamer::vnc_loop, this);
input_thread_ = std::thread(&WindowStreamer::input_loop, this);
+ setup_thread_ = std::thread(&WindowStreamer::setup_assistant_loop, this);
}
void WindowStreamer::stop() {
@@ -493,6 +492,7 @@ void WindowStreamer::stop() {
if (watch_thread_.joinable()) watch_thread_.join();
if (capture_thread_.joinable()) capture_thread_.join();
if (input_thread_.joinable()) input_thread_.join();
+ if (setup_thread_.joinable()) setup_thread_.join();
}
std::string WindowStreamer::debug_json() const {
@@ -532,6 +532,7 @@ size_t WindowStreamer::window_count() const {
void WindowStreamer::watch_loop() {
while (running_.load()) {
+ setup_detection_known_.store(false);
Proc p;
if (!spawn(ssh_base() + quote_arg("osascript -l JavaScript -"), p)) { Sleep(2000); continue; }
watch_proc_ = p.process;
@@ -557,6 +558,10 @@ void WindowStreamer::watch_loop() {
}
if (!watching_.exchange(true)) {
std::thread([this] {
+ // The first SSH response can arrive before Setup Assistant closes.
+ // Avoid prewarming an app or cleaning up while its overlay is active.
+ while (running_.load() && (!setup_detection_known_.load() || setup_active_.load())) Sleep(500);
+ if (!running_.load()) return;
// scp doesn't create folders, and cache cleanup inside macOS can remove it.
quick("mkdir -p ~/Library/Caches/WSM/icons ~/Library/Caches/WSM/inbox", nullptr, 15000);
if (copy_to_guest(root_ + "\\src\\wsm-guest\\agent\\wsm-trim.sh", "Library/Caches/WSM/wsm-trim.sh")) {
@@ -577,16 +582,25 @@ void WindowStreamer::watch_loop() {
last_clip_ = text;
}
if (on_guest_clipboard_) on_guest_clipboard_(text);
+ } else if (line == "A 1") {
+ setup_detection_known_.store(true);
+ if (!setup_active_.exchange(true)) apply_window_list(kDisconnected);
+ } else if (line == "A 0") {
+ setup_detection_known_.store(true);
+ if (setup_active_.exchange(false) && !last_list.empty()) apply_window_list(last_list);
} else if (line.rfind("W", 0) == 0) {
last_list = line.size() > 2 ? line.substr(2) : std::string();
- apply_window_list(last_list);
+ if (!setup_active_) apply_window_list(last_list);
} else if (line == "K") {
// Unchanged: apply it again so windows missing from it finish closing.
- apply_window_list(last_list);
+ if (!setup_active_) apply_window_list(last_list);
}
}
}
watching_.store(false);
+ setup_detection_known_.store(false);
+ setup_active_.store(false);
+ setup_needs_attention_.store(false);
watch_proc_ = nullptr;
TerminateProcess(p.process, 0);
close_proc(p);
@@ -596,6 +610,47 @@ void WindowStreamer::watch_loop() {
}
}
+void WindowStreamer::setup_assistant_loop() {
+ SetupAssistantStep previous = SetupAssistantStep::Unknown;
+ int matching_frames = 0;
+ int64_t unknown_since = 0;
+ const std::string ppm = root_ + "\\cache\\tmp\\wsm-setup-guard.ppm";
+ wsm::core::QmpUnixClient q(root_ + "\\runtime\\reims-ctl\\vms\\wsm-default\\qmp.sock");
+ while (running_.load()) {
+ if (!watching_ || !setup_active_) {
+ previous = SetupAssistantStep::Unknown; matching_frames = 0; unknown_since = 0;
+ setup_needs_attention_.store(false); Sleep(500); continue;
+ }
+ if (!unknown_since) unknown_since = now_ms();
+ if (now_ms() - unknown_since > 90000) setup_needs_attention_.store(true);
+ std::string error;
+ if (!q.capture_screendump_ppm(ppm, error)) { matching_frames = 0; Sleep(1000); continue; }
+ std::ifstream f(ppm, std::ios::binary);
+ std::string magic; int w = 0, h = 0, max = 0;
+ f >> magic >> w >> h >> max; f.get();
+ if (magic != "P6" || w < 160 || h < 90 || w > 8192 || h > 8192 || max != 255) { matching_frames = 0; Sleep(1000); continue; }
+ std::vector<uint8_t> pixels(static_cast<size_t>(w) * h * 3);
+ f.read(reinterpret_cast<char*>(pixels.data()), static_cast<std::streamsize>(pixels.size()));
+ if (static_cast<size_t>(f.gcount()) != pixels.size()) { matching_frames = 0; Sleep(1000); continue; }
+ const auto action = recognize_setup_assistant(pixels.data(), w, h);
+ // The initial country screen is a detection marker, never an actionable button.
+ if (action.step == SetupAssistantStep::Unknown || action.step == SetupAssistantStep::Country) {
+ previous = action.step; matching_frames = 0;
+ Sleep(1000); continue;
+ }
+ unknown_since = 0; setup_needs_attention_.store(false);
+ matching_frames = action.step == previous ? matching_frames + 1 : 1;
+ previous = action.step;
+ if (matching_frames >= 2 && setup_active_.load() && watching_.load()) {
+ // Only these exact setup screens are handled. Unknown screens, including legal or
+ // account-specific prompts, are left untouched; never guess at a blue button.
+ q.send_mouse_click(action.x, action.y);
+ previous = SetupAssistantStep::Unknown; matching_frames = 0;
+ Sleep(2500);
+ } else Sleep(1000);
+ }
+}
+
void WindowStreamer::post_setup_cleanup() {
namespace fs = std::filesystem;
std::error_code ec;
diff --git a/src/wsm-runtime/src/wsm_cli.cpp b/src/wsm-runtime/src/wsm_cli.cpp
index 1d27d61..20c70c4 100644
--- a/src/wsm-runtime/src/wsm_cli.cpp
+++ b/src/wsm-runtime/src/wsm_cli.cpp
@@ -108,7 +108,7 @@ int main(int argc, char** argv) {
wsm::runtime::AppRegistry reg;
reg.load();
for (const auto& a : reg.list()) {
- wsm::runtime::remove_app_shortcuts(a.name);
+ wsm::runtime::remove_app_shortcuts(a.name, a.id);
std::string ico = wsm::core::resolve_wsm_root() + "\\runtime\\apps\\icons\\" + a.id + ".ico";
if (!std::filesystem::exists(ico) && !a.icon_path.empty()) wsm::runtime::convert_icns_to_ico(a.icon_path, ico);
std::string lnk;
diff --git a/src/wsm-runtime/src/wsm_manager_launcher.cpp b/src/wsm-runtime/src/wsm_manager_launcher.cpp
index 64d196e..6dd326c 100644
--- a/src/wsm-runtime/src/wsm_manager_launcher.cpp
+++ b/src/wsm-runtime/src/wsm_manager_launcher.cpp
@@ -11,9 +11,12 @@
#include <WebView2.h>
#include "wsm/paths.hpp"
+#include "wsm/runtime_password.hpp"
+#include <atomic>
#include <filesystem>
#include <string>
+#include <thread>
#pragma comment(lib, "ws2_32.lib")
#pragma comment(lib, "dwmapi.lib")
@@ -27,6 +30,9 @@ namespace {
ComPtr<ICoreWebView2Controller> g_controller;
ComPtr<ICoreWebView2> g_webview;
+std::atomic<bool> g_password_busy{false};
+constexpr UINT kPasswordResult = WM_APP + 42;
+struct PasswordResult { bool ok; std::string error; };
std::wstring utf8_to_wide(const std::string& s) {
if (s.empty()) return {};
@@ -37,6 +43,26 @@ std::wstring utf8_to_wide(const std::string& s) {
return out;
}
+std::wstring json_string(const std::wstring& value) {
+ std::wstring out = L"\"";
+ for (wchar_t c : value) {
+ if (c == L'\\' || c == L'\"') { out += L'\\'; out += c; }
+ else if (c == L'\n') out += L"\\n";
+ else if (c == L'\r') out += L"\\r";
+ else if (c == L'\t') out += L"\\t";
+ else if (c >= 32) out += c;
+ }
+ return out + L"\"";
+}
+
+void send_password_result(const wchar_t* action, bool ok, const std::string& value) {
+ if (!g_webview) return;
+ std::wstring json = L"{\"type\":\"runtimePassword\",\"action\":" + json_string(action) +
+ L",\"ok\":" + (ok ? L"true" : L"false") + (ok && wcscmp(action, L"get") == 0 ? L",\"password\":" : L",\"message\":") +
+ json_string(utf8_to_wide(value)) + L"}";
+ g_webview->PostWebMessageAsJson(json.c_str());
+}
+
bool is_wsmd_listening() {
WSADATA wsa{};
if (WSAStartup(MAKEWORD(2, 2), &wsa) != 0) return false;
@@ -79,6 +105,12 @@ void ensure_wsmd_running() {
LRESULT CALLBACK WndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) {
switch (msg) {
+ case kPasswordResult: {
+ auto* result = reinterpret_cast<PasswordResult*>(lParam);
+ g_password_busy = false;
+ if (result) { send_password_result(L"set", result->ok, result->error); delete result; }
+ return 0;
+ }
case WM_SIZE:
if (g_controller) {
RECT bounds{};
@@ -137,6 +169,9 @@ int WINAPI wWinMain(HINSTANCE hInstance, HINSTANCE, PWSTR, int nCmdShow) {
// Enable Windows 11 Immersive Dark Titlebar & Mica Backdrop
BOOL dark = TRUE;
DwmSetWindowAttribute(hwnd, 20 /* DWMWA_USE_IMMERSIVE_DARK_MODE */, &dark, sizeof(dark));
+ const COLORREF caption = RGB(16, 18, 26), caption_text = RGB(243, 245, 251);
+ DwmSetWindowAttribute(hwnd, 35 /* DWMWA_CAPTION_COLOR */, &caption, sizeof(caption));
+ DwmSetWindowAttribute(hwnd, 36 /* DWMWA_TEXT_COLOR */, &caption_text, sizeof(caption_text));
DWORD backdrop = 2; /* DWMSBT_MAINWINDOW (Mica) */
DwmSetWindowAttribute(hwnd, 38 /* DWMWA_SYSTEMBACKDROP_TYPE */, &backdrop, sizeof(backdrop));
@@ -180,7 +215,50 @@ int WINAPI wWinMain(HINSTANCE hInstance, HINSTANCE, PWSTR, int nCmdShow) {
// can't see file paths, so the host reads them and hands them back.
g_webview->add_WebMessageReceived(
Callback<ICoreWebView2WebMessageReceivedEventHandler>(
- [](ICoreWebView2*, ICoreWebView2WebMessageReceivedEventArgs* args) -> HRESULT {
+ [hwnd](ICoreWebView2*, ICoreWebView2WebMessageReceivedEventArgs* args) -> HRESULT {
+ LPWSTR raw_source = nullptr;
+ std::wstring source;
+ if (SUCCEEDED(args->get_Source(&raw_source)) && raw_source) source = raw_source;
+ CoTaskMemFree(raw_source);
+ const std::wstring allowed = L"http://127.0.0.1:17421/";
+ const bool trusted = source == allowed || source.rfind(allowed + L"#", 0) == 0;
+ LPWSTR raw_message = nullptr;
+ if (trusted && SUCCEEDED(args->TryGetWebMessageAsString(&raw_message)) && raw_message) {
+ std::wstring message(raw_message); CoTaskMemFree(raw_message);
+ if (message == L"runtime-password:capabilities") {
+ send_password_result(L"capabilities", true, "");
+ return S_OK;
+ }
+ if (message == L"runtime-password:get") {
+ std::string password, error;
+ bool ok = !g_password_busy && wsm::runtime::read_runtime_password(wsm::core::resolve_wsm_root(), password, error);
+ if (g_password_busy) error = "A password change is in progress.";
+ send_password_result(L"get", ok, ok ? password : error);
+ return S_OK;
+ }
+ const std::wstring prefix = L"runtime-password:set:";
+ if (message.rfind(prefix, 0) == 0) {
+ std::wstring proposed = message.substr(prefix.size());
+ std::string password;
+ for (wchar_t c : proposed) {
+ if (c < 32 || c > 126) { send_password_result(L"set", false, "Use standard printable characters without line breaks."); return S_OK; }
+ password.push_back(static_cast<char>(c));
+ }
+ if (g_password_busy.exchange(true)) { send_password_result(L"set", false, "A password change is already in progress."); return S_OK; }
+ const std::string root = wsm::core::resolve_wsm_root();
+ std::thread([hwnd, root, password] {
+ auto* result = new PasswordResult{};
+ try {
+ result->ok = wsm::runtime::change_runtime_password(root, password, result->error);
+ } catch (...) {
+ result->ok = false;
+ result->error = "The password change stopped unexpectedly. Check the runtime and any pending password file before retrying.";
+ }
+ if (!PostMessageW(hwnd, kPasswordResult, 0, reinterpret_cast<LPARAM>(result))) delete result;
+ }).detach();
+ return S_OK;
+ }
+ } else if (raw_message) CoTaskMemFree(raw_message);
ComPtr<ICoreWebView2WebMessageReceivedEventArgs2> a2;
ComPtr<ICoreWebView2ObjectCollectionView> objs;
if (FAILED(ComPtr<ICoreWebView2WebMessageReceivedEventArgs>(args).As(&a2)) ||
diff --git a/src/wsm-runtime/src/wsmd.cpp b/src/wsm-runtime/src/wsmd.cpp
index 594636e..0e8eb7a 100644
--- a/src/wsm-runtime/src/wsmd.cpp
+++ b/src/wsm-runtime/src/wsmd.cpp
@@ -13,6 +13,9 @@
#include "wsm/runtime_host.hpp"
#include "wsm/window_streamer.hpp"
#include "wsm/app_installer.hpp"
+#include "wsm/diagnostic_output.hpp"
+#include "wsm/reims_registry.hpp"
+#include "wsm/usb_passthrough.hpp"
#include <winsock2.h>
#include <ws2tcpip.h>
@@ -20,6 +23,7 @@
#include <winioctl.h>
#include <commdlg.h>
#include <shellapi.h>
+#include <shlobj.h>
#include <tlhelp32.h>
#include <atomic>
@@ -164,7 +168,7 @@ std::string icon_png_cached(const std::string& root, const wsm::runtime::AppBund
return p == std::string::npos ? std::string{} : d.substr(p);
}
-// Collects logs into %USERPROFILE%\Desktop\WSM-diagnostics-<time>.txt with the user name redacted.
+// Collects logs to the actual Desktop (which can be redirected to OneDrive), with fallbacks.
bool export_diagnostics(const std::string& root, std::string& out_path) {
namespace fs = std::filesystem;
char user[256] = {}; DWORD n = sizeof(user); GetUserNameA(user, &n);
@@ -189,17 +193,24 @@ bool export_diagnostics(const std::string& root, std::string& out_path) {
fs::path vmdir = fs::path(root) / "runtime" / "reims-ctl" / "vms" / "wsm-default";
r << "\n== vm.toml ==\n" << tail(vmdir / "vm.toml", 8192);
r << "\n== runtime log (tail) ==\n" << tail(vmdir / "logs" / "qemu.log", 64 * 1024);
+ r << "\n== setup log (tail) ==\n" << tail(fs::path(root) / "logs" / "provision.log", 64 * 1024);
r << "\n== daemon runtime log (tail) ==\n" << tail(fs::path(root) / "logs" / "wsm-default-qemu.log", 32 * 1024);
r << "\n== serial (tail) ==\n" << tail(fs::path(root) / "logs" / "wsm-default-serial.log", 16 * 1024);
r << "\n== apps.json ==\n" << tail(fs::path(root) / "runtime" / "config" / "apps.json", 32 * 1024);
char stamp[32]; SYSTEMTIME st; GetLocalTime(&st);
- snprintf(stamp, sizeof(stamp), "%04d%02d%02d-%02d%02d%02d", st.wYear, st.wMonth, st.wDay, st.wHour, st.wMinute, st.wSecond);
- fs::path out = fs::path(prof) / "Desktop" / (std::string("WSM-diagnostics-") + stamp + ".txt");
- std::ofstream o(out, std::ios::binary);
- if (!o) return false;
- o << redact(r.str());
- out_path = out.string();
- return true;
+ snprintf(stamp, sizeof(stamp), "%04d%02d%02d-%02d%02d%02d-%03d", st.wYear, st.wMonth, st.wDay, st.wHour, st.wMinute, st.wSecond, st.wMilliseconds);
+ std::vector<fs::path> locations;
+ PWSTR desktop = nullptr;
+ if (SUCCEEDED(SHGetKnownFolderPath(FOLDERID_Desktop, 0, nullptr, &desktop)) && desktop) locations.emplace_back(desktop);
+ CoTaskMemFree(desktop);
+ std::error_code ec;
+ const fs::path logs = fs::path(root) / "logs";
+ fs::create_directories(logs, ec);
+ locations.push_back(logs);
+ wchar_t temp[MAX_PATH]{};
+ DWORD temp_len = GetTempPathW(MAX_PATH, temp);
+ if (temp_len > 0 && temp_len < MAX_PATH) locations.emplace_back(temp);
+ return wsm::runtime::write_diagnostic_report(locations, std::string("WSM-diagnostics-") + stamp + ".txt", redact(r.str()), out_path);
}
// The macOS runtime must stay invisible: any top-level window owned by a QEMU process is hidden.
@@ -481,6 +492,18 @@ int main() {
}
const std::string wsm_root = wsm::core::resolve_wsm_root();
+ // Keep existing installations on their legacy registry; isolate new installations so
+ // another copy's wsm-default cannot block creation or be accidentally controlled.
+ if (!GetEnvironmentVariableA("REIMS_CTL_CONFIG_DIR", nullptr, 0) &&
+ wsm::runtime::should_isolate_reims_registry(wsm_root)) {
+ const auto registry_dir = std::filesystem::path(wsm_root) / "runtime" / "config" / "reims-ctl";
+ std::error_code ec;
+ std::filesystem::create_directories(registry_dir, ec);
+ if (ec || !SetEnvironmentVariableA("REIMS_CTL_CONFIG_DIR", registry_dir.string().c_str())) {
+ std::cerr << "[wsmd] Failed to configure the isolated runtime registry\n";
+ return 1;
+ }
+ }
const std::string ui_dir = std::filesystem::exists(wsm_root + "\\src\\wsm-manager\\index.html")
? (wsm_root + "\\src\\wsm-manager")
: (wsm_root + "\\ui");
@@ -572,8 +595,28 @@ int main() {
else std::fprintf(stderr, "[wsmd] Windows drives not shared: %s\n", serr.c_str());
}
- // Explorer: double-clicking a .dmg/.pkg/.app installs it through wsmlaunch (no console);
- // WSM starts with Windows so the runtime is warm when an app is opened.
+ const std::string auto_start_file = wsm_root + "\\runtime\\config\\auto-start";
+ const auto configure_startup = [&](bool enabled) {
+ wchar_t me[MAX_PATH]{}; GetModuleFileNameW(nullptr, me, MAX_PATH);
+ const std::string launcher = std::filesystem::path(me).parent_path().string() + "\\wsmlaunch.exe";
+ const std::string expected = "\"" + launcher + "\" --background";
+ HKEY run{};
+ if (RegCreateKeyExA(HKEY_CURRENT_USER, "Software\\Microsoft\\Windows\\CurrentVersion\\Run", 0, nullptr, 0,
+ KEY_QUERY_VALUE | KEY_SET_VALUE, nullptr, &run, nullptr) != ERROR_SUCCESS) return false;
+ LONG result = ERROR_SUCCESS;
+ if (enabled) {
+ result = RegSetValueExA(run, "WSM", 0, REG_SZ, reinterpret_cast<const BYTE*>(expected.c_str()),
+ static_cast<DWORD>(expected.size() + 1));
+ } else {
+ char value[4096]{}; DWORD type = 0, size = sizeof(value);
+ if (RegQueryValueExA(run, "WSM", nullptr, &type, reinterpret_cast<BYTE*>(value), &size) == ERROR_SUCCESS &&
+ type == REG_SZ && size > 0 && size < sizeof(value) && _stricmp(value, expected.c_str()) == 0)
+ result = RegDeleteValueA(run, "WSM");
+ }
+ RegCloseKey(run);
+ return result == ERROR_SUCCESS;
+ };
+ // Register file associations; automatic startup is an explicit user preference.
{
wchar_t me[MAX_PATH]{};
GetModuleFileNameW(nullptr, me, MAX_PATH);
@@ -581,15 +624,11 @@ int main() {
std::string launcher = bin + "\\wsmlaunch.exe";
std::string assoc_err;
wsm::runtime::register_windows_shell_associations(launcher, assoc_err);
- HKEY run{};
- if (RegCreateKeyExA(HKEY_CURRENT_USER, "Software\\Microsoft\\Windows\\CurrentVersion\\Run", 0, nullptr, 0,
- KEY_SET_VALUE, nullptr, &run, nullptr) == ERROR_SUCCESS) {
- std::string v = "\"" + launcher + "\" --background";
- RegSetValueExA(run, "WSM", 0, REG_SZ, reinterpret_cast<const BYTE*>(v.c_str()), static_cast<DWORD>(v.size() + 1));
- RegCloseKey(run);
- }
+ configure_startup(std::filesystem::exists(auto_start_file));
}
+ std::atomic<bool> app_scan_busy{false};
+
// Keeps the runtime warm, like a phone keeps apps in memory: boot it in the background once
// (so the first app opens in seconds, not minutes), and pause it (vCPUs stopped, no CPU use)
// after a few minutes with no app window open. Opening an app resumes it instantly.
@@ -597,7 +636,7 @@ int main() {
Sleep(3000);
std::string e;
// Only a runtime that finished setup; a half-set-up one belongs to setup.
- if (runtime.status().state != wsm::runtime::RtState::NotInstalled &&
+ if (std::filesystem::exists(auto_start_file) && runtime.status().state != wsm::runtime::RtState::NotInstalled &&
std::filesystem::exists(wsm_root + "\\runtime\\config\\runtime-ready.json"))
runtime.ensure_running(e);
int64_t idle_since = 0;
@@ -623,7 +662,7 @@ int main() {
// Idle = no app window, no install or setup, nothing sent to the runtime for a while
// (a launch or install step in flight counts as activity). A file switches it off.
bool idle = st == wsm::runtime::RtState::Running && reached && streamer.window_count() == 0 &&
- !installer.busy() && now - streamer.last_activity_ms() > 3 * 60 * 1000 &&
+ !installer.busy() && !streamer.setup_active() && !app_scan_busy.load() && now - streamer.last_activity_ms() > 3 * 60 * 1000 &&
!std::filesystem::exists(wsm_root + "\\runtime\\config\\no-autopause") &&
![&] { std::lock_guard<std::mutex> l(provision.mutex); return provision.running; }();
if (!idle) { idle_since = 0; continue; }
@@ -673,13 +712,18 @@ int main() {
const std::string hidden_file = wsm_root + "\\runtime\\config\\hidden-apps.txt";
for (;;) {
Sleep(20000);
- if (!streamer.watching() || installer.busy() ||
+ if (!streamer.watching() || streamer.setup_active() || installer.busy() ||
!std::filesystem::exists(wsm_root + "\\runtime\\config\\runtime-ready.json"))
continue;
+ struct ScanActivity {
+ std::atomic<bool>& busy;
+ explicit ScanActivity(std::atomic<bool>& b) : busy(b) { busy.store(true); }
+ ~ScanActivity() { busy.store(false); }
+ } scan_activity(app_scan_busy);
std::string out;
- if (streamer.quick("for a in /Applications/*.app /Applications/*/*.app; do [ -L \"$a\" ] && continue; "
+ if (streamer.quick("(setopt null_glob; for a in /Applications/*.app /Applications/*/*.app; do [ -L \"$a\" ] && continue; "
"i=$(defaults read \"$a/Contents/Info\" CFBundleIdentifier 2>/dev/null) && echo \"APP|$i|$a\"; "
- "done 2>/dev/null; true", &out, 30000) != 0)
+ "done) 2>/dev/null; true", &out, 30000, false) != 0)
continue;
std::set<std::string> hidden;
{
@@ -702,6 +746,10 @@ int main() {
hidden.swap(keep);
}
}
+ // Seed the two built-in apps on a fresh runtime. Respect removals in hidden-apps.txt;
+ // the regular installer imports their real icons and creates the normal shortcuts.
+ out = "APP|com.apple.Safari|/Applications/Safari.app\n"
+ "APP|com.apple.AppStore|/System/Applications/App Store.app\n" + out;
std::istringstream lines(out);
for (std::string l; std::getline(lines, l);) {
if (!l.empty() && l.back() == '\r') l.pop_back();
@@ -832,6 +880,51 @@ int main() {
std::string html = read_file_text(ui_dir + "\\setup.html");
resp = html.empty() ? http_response(404, "Not Found", "Setup not found", "text/plain")
: http_response(200, "OK", html, "text/html; charset=utf-8");
+ } else if ((method == "GET" && path == "/api/usb/devices") ||
+ (method == "POST" && (path == "/api/usb/attach" || path == "/api/usb/detach"))) {
+ // These QMP devices last only for the current QEMU process.
+ static std::string usb_vm_pid;
+ static std::set<std::string> attached_usb;
+ std::string pid = read_file_text(wsm_root + "\\runtime\\reims-ctl\\vms\\wsm-default\\qemu.pid");
+ if (pid != usb_vm_pid) { attached_usb.clear(); usb_vm_pid = pid; }
+ std::vector<wsm::runtime::UsbAppleDevice> devices;
+ if (!wsm::runtime::enumerate_apple_usb(wsm_root, devices)) {
+ resp = http_response(503, "Service Unavailable", "{\"ok\":false,\"error\":\"USB support is unavailable in this runtime.\"}");
+ } else if (method == "GET") {
+ std::ostringstream out; out << "{\"ok\":true,\"devices\":[";
+ bool first = true;
+ for (const auto& d : devices) {
+ const std::string id = std::to_string(d.bus) + "-" + std::to_string(d.address) + "-" + std::to_string(d.product);
+ if (!first) out << ','; first = false;
+ out << "{\"bus\":" << d.bus << ",\"address\":" << d.address << ",\"product\":" << d.product
+ << ",\"attached\":" << (attached_usb.count(id) ? "true" : "false") << '}';
+ }
+ out << "]}"; resp = http_response(200, "OK", out.str());
+ } else {
+ unsigned bus = 0, address = 0, product = 0; std::string extra;
+ std::istringstream body(extract_http_body(req));
+ bool valid = bool(body >> bus >> address >> product) && !(body >> extra) && bus <= 255 && address <= 255 && product <= 65535;
+ unsigned found = 0;
+ for (const auto& d : devices) if (d.bus == bus && d.address == address && d.product == product) ++found;
+ const std::string id = std::to_string(bus) + "-" + std::to_string(address) + "-" + std::to_string(product);
+ const std::string qid = "wsmusb_" + std::to_string(bus) + "_" + std::to_string(address) + "_" + std::to_string(product);
+ bool attach = path == "/api/usb/attach";
+ if (!valid || (found != 1 && attach) || pid.empty() ||
+ std::filesystem::exists(wsm_root + "\\runtime\\config\\setup-running") ||
+ (attach && attached_usb.count(id)) || (!attach && !attached_usb.count(id))) {
+ resp = http_response(400, "Bad Request", "{\"ok\":false,\"error\":\"Device unavailable. Refresh the list and start macOS.\"}");
+ } else {
+ const std::string command = attach ?
+ "{\"execute\":\"device_add\",\"arguments\":{\"driver\":\"usb-host\",\"bus\":\"xhci.0\",\"id\":\"" + qid + "\",\"hostbus\":" + std::to_string(bus) + ",\"hostaddr\":" + std::to_string(address) + ",\"vendorid\":1452,\"productid\":" + std::to_string(product) + "}}" :
+ "{\"execute\":\"device_del\",\"arguments\":{\"id\":\"" + qid + "\"}}";
+ std::string result;
+ wsm::core::QmpUnixClient qmp(wsm_root + "\\runtime\\reims-ctl\\vms\\wsm-default\\qmp.sock");
+ bool ok = qmp.execute(command, result, 10000) && result.find("\"return\"") != std::string::npos;
+ if (ok) { if (attach) attached_usb.insert(id); else attached_usb.erase(id); }
+ resp = http_response(ok ? 200 : 409, ok ? "OK" : "Conflict", ok ? "{\"ok\":true}" :
+ "{\"ok\":false,\"error\":\"Could not connect the device. It may need a compatible WinUSB driver or be in use by Windows.\"}");
+ }
+ }
} else if (method == "GET" && path == "/api/setup/plan") {
auto p = provisioner.plan();
std::ostringstream o;
@@ -940,7 +1033,8 @@ int main() {
// Runtime state comes from the single runtime owner (reims-ctl); "ready" additionally
// requires the in-guest helper to be connected.
std::string state = wsm::runtime::rt_state_name(rt.state);
- if (rt.state == wsm::runtime::RtState::Running && !streamer.watching()) state = "waiting_for_guest";
+ if (rt.state == wsm::runtime::RtState::Running && (!streamer.watching() || streamer.setup_active())) state = "waiting_for_guest";
+ if (rt.state == wsm::runtime::RtState::Running && streamer.setup_active() && streamer.setup_needs_attention()) state = "setup_attention";
body << "{\"state\":\"" << state << "\",\"working_set_mb\":" << rt.working_set_mb
<< ",\"legacy_state\":\"" << vm_state_to_string(st.state)
<< "\",\"pid\":" << st.pid
@@ -978,8 +1072,23 @@ int main() {
// A real OS shutdown first: macOS's normal "quit apps" shutdown waits forever on an
// unsaved-document dialog nobody can see, and then the runtime gets powered off.
if (streamer.watching()) streamer.quick("sudo shutdown -h now", nullptr, 5000);
- std::string e; runtime.shutdown(e);
- resp = http_response(200, "OK", "{\"ok\":true,\"state\":\"stopped\"}");
+ std::string e; bool ok = runtime.shutdown(e);
+ resp = http_response(ok ? 200 : 500, ok ? "OK" : "Internal Server Error", ok ? "{\"ok\":true,\"state\":\"stopped\"}" : "{\"ok\":false,\"error\":\"" + json_escape_str(e) + "\"}");
+ } else if (method == "GET" && path == "/api/settings/auto-start") {
+ resp = http_response(200, "OK", std::string("{\"enabled\":") + (std::filesystem::exists(auto_start_file) ? "true" : "false") + "}");
+ } else if (method == "POST" && path == "/api/settings/auto-start") {
+ const std::string value = extract_http_body(req);
+ if (value != "on" && value != "off") resp = http_response(400, "Bad Request", "{\"ok\":false}");
+ else {
+ const bool enabled = value == "on";
+ std::error_code ec;
+ if (enabled) { std::filesystem::create_directories(std::filesystem::path(auto_start_file).parent_path(), ec); }
+ bool ok = !ec && configure_startup(enabled);
+ if (ok && enabled) { std::ofstream f(auto_start_file); ok = static_cast<bool>(f); }
+ else if (ok) { std::filesystem::remove(auto_start_file, ec); ok = !ec; }
+ if (!ok && enabled) configure_startup(false);
+ resp = http_response(ok ? 200 : 500, ok ? "OK" : "Internal Server Error", ok ? "{\"ok\":true}" : "{\"ok\":false}");
+ }
} else if (method == "POST" && path == "/api/vm/compact") {
// Settings > Free up space: done the next time no Mac app is open for a few minutes.
std::ofstream(wsm_root + "\\runtime\\config\\compact-pending") << "asked\n";
@@ -1152,7 +1261,7 @@ int main() {
std::string app_id = extract_http_body(req);
wsm::runtime::AppBundleInfo gone;
if (apps.find(app_id, gone)) {
- wsm::runtime::remove_app_shortcuts(gone.name);
+ wsm::runtime::remove_app_shortcuts(gone.name, gone.id);
// Remove the app from the runtime too (only bundles WSM installed in /Applications).
// Apps that ship with macOS (Safari, …) are only taken off the library.
if (gone.id.rfind("com.apple.", 0) != 0 &&
@@ -1190,6 +1299,8 @@ int main() {
resp = http_response(200, "OK", installer.status_json());
} else if (method == "GET" && path == "/api/stream/status") {
resp = http_response(200, "OK", std::string("{\"watching\":") + (streamer.watching() ? "true" : "false") +
+ ",\"setup_active\":" + (streamer.setup_active() ? "true" : "false") +
+ ",\"setup_needs_attention\":" + (streamer.setup_needs_attention() ? "true" : "false") +
",\"windows\":" + std::to_string(streamer.window_count()) +
",\"frames\":" + std::to_string(streamer.frames_presented()) +
",\"transport\":\"" + (streamer.vnc_live() ? "vnc" : "screendump") + "\"}");
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
index 8924692..2adce50 100644
--- a/tests/CMakeLists.txt
+++ b/tests/CMakeLists.txt
@@ -6,3 +6,12 @@ target_link_libraries(wsm_core_tests PRIVATE
wsm-appman
)
add_test(NAME wsm_core_tests COMMAND wsm_core_tests)
+
+add_executable(wsm_app_sync_tests wsm_app_sync_tests.cpp ../src/wsm-runtime/src/runtime_password.cpp)
+target_link_libraries(wsm_app_sync_tests PRIVATE wsm-appman)
+target_compile_definitions(wsm_app_sync_tests PRIVATE WSM_TEST_FIXTURE_DIR="${CMAKE_CURRENT_SOURCE_DIR}/fixtures/setup_assistant")
+add_test(NAME wsm_app_sync_tests COMMAND wsm_app_sync_tests)
+
+add_executable(wsm_qmp_input_tests wsm_qmp_input_tests.cpp)
+target_link_libraries(wsm_qmp_input_tests PRIVATE wsm-core)
+add_test(NAME wsm_qmp_input_tests COMMAND wsm_qmp_input_tests)
diff --git a/tests/fixtures/setup_assistant/account.ppm b/tests/fixtures/setup_assistant/account.ppm
new file mode 100644
index 0000000..a0e9da7
--- /dev/null
+++ b/tests/fixtures/setup_assistant/account.ppm
@@ -0,0 +1,4 @@
+P6
+160 90
+255
+�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������ü����������������������������������ɾ�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������ռ�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������¿����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������ž����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������þ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������þ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������þ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������þ�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������q܅�������������������������������������������������������������������������������������������������������������������������þ�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������}��������uݐ��������h�茻������������������������������������������������������������������������������������������������������������þ�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������k��������������������������������������������������������������������������������������������������������������������������������������������������þ���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������þ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������þ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������þ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������þ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������þ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������þ�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������|||������qqqlll���ttt��������������������������������������������������������������������������������������������������������������þ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������þ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������þ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������þ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������þ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������þ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������þ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������þ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������þ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������þ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������þ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������þ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������þ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������þ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������þ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������þ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������þ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������þ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������þ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������þ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������þ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������þ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������þ���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������þ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������þ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������þ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������þ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������þ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������þ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������þ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������þ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������ľ�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������ն��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������
\ No newline at end of file
diff --git a/tests/fixtures/setup_assistant/account_confirm.ppm b/tests/fixtures/setup_assistant/account_confirm.ppm
new file mode 100644
index 0000000..674d62d
--- /dev/null
+++ b/tests/fixtures/setup_assistant/account_confirm.ppm
@@ -0,0 +1,4 @@
+P6
+160 90
+255
+�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������ü����������������������������������ɾ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������Ž�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������̸����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������̴����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������̲����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������̲����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������̲����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������̲����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������̿����ʼ�ɺ����ʺ�ɥ��l�������ʻ�ɧ�Ƴ����������������������������������������������������������������������������������������������������������̲�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������ʾ�ʺ�ɩ�Ǯ����˘����ʜ��n����ų�Ȼ�ɏ�Þ����������������������������������������������������������������������������������������������������������̲����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������̻�ɐ�è�ǿ�ʼ�ɷ�ɺ�ɻ�ɴ�Ƚ�ɾ�ɠ�Ť�ƽ�ɾ����������������������������������������������������������������������������������������������������������̲����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������̹�ɡ�ư�������ʰ�������˿����˿�ɵ�Ǻ����������������������������������������������������������������������������������������������������������������̲�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������˿�ɿ�ɾ����������ǽ�ǽ����������������������������������������������������������������������������������������������������������������̲����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������̲����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������̲����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������̲�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������ƾ����������ĺ����ҽ�½����������������������������������������������徾���������������������������������������������������������������̲����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������̤����������������������������򶶺��������γ����������������������������������������������似���������������������������������������������������������������̲�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������Ļ�������򫫮��������Ш����������������������������������������������㺺���������������������������������������������������������������̲����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������̽�������������ú�������������򥥨��������������������������������������������������������㧧���������������������������������������������������������������̲�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������ĺ�������������������������������������������������������������������㸸���������������������������������������������������������������̲�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������º����������������ĺ�������������������������������������������������������������������㹹���������������������������������������������������������������̲�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������ĺ�������򳳳�����������ô�������������Ϊ����������������������������㹹���������������������������������������������������������������̲�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������ĺ�������������������������������������������������������������������㹹���������������������������������������������������������������̲�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������ú����������Ĭ�������������ɷ����ɽ����η����������������������������㹹���������������������������������������������������������������̲�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������ƾ����������ù�������������򱱱��������������������������������������������������������㹹���������������������������������������������������������������̲����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������㹹���������������������������������������������������������������̲�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������ĺ�������������������������������������������������������������������㹹���������������������������������������������������������������̲����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������̺�ɲ�ȷ�Ⱥ�ɮ�Ʊ�Ư����������������������������������������������������������������������㹹���������������������������������������������������������������̲�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������ĺ����������ż����õ����̼����������������ݷ����������ո�������������㹹���������������������������������������������������������������̲����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������̼�ɶ�ȭ�ǹ�ɮ�ǯ�ŧ����������������������������������������������������������������������㹹���������������������������������������������������������������̲�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������ĺ�������������ò����ְ����ľ�������ʼ�������������������������������㹹���������������������������������������������������������������̲�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������ĺ�������������������������������������������������������������������㹹���������������������������������������������������������������̲�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������ĺ�������������������������������������������������������������������㹹���������������������������������������������������������������̲�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������ĺ�������������������������������������������������������������������㺺���������������������������������������������������������������̲�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������ĺ����������������������������������鐺�h�h�h�!{�k�h�h�iڤ����人���������������������������������������������������������������̲�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������Ļ�������������׽�������¶�����������m��h�h�h�E��L��h�h�hڈ����纺���������������������������������������������������������������̲�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������Ž�����������������������������������������������������������ռ����������������������������������������������������������������̲�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������ƿ����������������������������������������������������������������ȶ�������������������������������������������������������������������̲����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������ü����������������������������������������������������������������������������������������������������������������������������������̲����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������̪�Ǯ�ǹ�������������������½�������������������������������������������������������������������������������������������������������������������������������̲����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������̿����������������������������������������������������������������������������������������������������������������������������������������������������������̲�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������ƿ�������������������������������������������������������������¹����������������������������������������������������������������������������������̲����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������Ŀ�������������������¾����������������þ����������������������������¾�������ƽ����������������������������������������������������̲����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������ķ�ɷ�ȹ�ɴ�ȸ�ɵ�Ⱥ�ɲ�Ⱥ�ɸ�ɲ�ȳ�ȳ�ȷ�������������������������������������������������������������������������������������������������������̲����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������˲����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������ʲ�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������Ŀ�������������������������������ſ����������������������������������������������������������������������������������������������������������������������������������������������������������ɱ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������ɳ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������ɵ�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������ȸ�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������
\ No newline at end of file
diff --git a/tests/fixtures/setup_assistant/account_menu.ppm b/tests/fixtures/setup_assistant/account_menu.ppm
new file mode 100644
index 0000000..ab3f677
--- /dev/null
+++ b/tests/fixtures/setup_assistant/account_menu.ppm
@@ -0,0 +1,4 @@
+P6
+160 90
+255
+�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������ü����������������������������������ɾ�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������ռ�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������¿����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������ž����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������þ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������þ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������þ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������þ�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������q܅�������������������������������������������������������������������������������������������������������������������������þ�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������}��������uݐ��������h�茻������������������������������������������������������������������������������������������������������������þ�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������k��������������������������������������������������������������������������������������������������������������������������������������������������þ���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������þ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������þ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������þ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������þ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������þ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������þ�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������|||������qqqlll���ttt��������������������������������������������������������������������������������������������������������������þ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������þ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������þ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������þ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������þ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������þ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������þ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������þ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������þ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������þ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������þ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������þ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������þ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������þ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������þ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������þ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������þ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������þ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������þ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������þ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������þ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������þ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������þ���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������þ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������þ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������þ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������þ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������þ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������¾����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������¾����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������¾����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������þ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������䦦���ҳ����̼����������Ͻ����ƿ�������������������������������������������������������������������������������������������������������������������������������������������������������������Ӷ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������㞞������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������飣���ŝ����ز����ȴ�������������������������巷���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������ƻ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������
\ No newline at end of file
diff --git a/tests/fixtures/setup_assistant/age_range.ppm b/tests/fixtures/setup_assistant/age_range.ppm
new file mode 100644
index 0000000..6a10432
--- /dev/null
+++ b/tests/fixtures/setup_assistant/age_range.ppm
@@ -0,0 +1,4 @@
+P6
+160 90
+255
+��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������貲���������������ű����Ӽ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������zzz���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������zzz���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������zzz���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������zzz���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������>�����������������������������������������������������������������������������������������������������������������������������������������������zzz���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������2�����������������������������������������������������������������������������������������������������������������������������������������������zzz���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������'�'�������������������������������������������������������������������������������������������������������������������������������������������zzz���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������y�x�x�������������������������������������������������������������������������������������������������������������������������������������������zzz������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������r�r�r�������������������������������������������������������������������������������������������������������������������������������������������zzz��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������탵톸�������k�k�������������������������������������������������������������������������������������������������������������������������������������������zzz�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������턶�������h�h�������������������������������������������������������������������������������������������������������������������������������������������zzz�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������섶�������h�h�������������������������������������������������������������������������������������������������������������������������������������������zzz���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������zzz���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������zzz���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������zzz���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������zzz���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������***���������������������������������������������������������������������������������������������������������������������������������������������������������������������zzz���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������zzz�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������ـ�������������������������������������������������������������������������������������������������������軻����������������������������������������������������������zzz���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������zzz���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������zzz���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������zzz���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������zzz��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������̓�����������������������������������������������������������������������������������������������������������������������zzz���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������zzz���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������zzz���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������zzz���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������zzz���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������zzz���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������zzz���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������zzz���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������p����������������������������������������������������������������������������������������������������������������������������������������������������������������zzz���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������zzz���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������zzz���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������zzz���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������zzz���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������zzz������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������///ccc���������������������������������������������������������������������������������������������������������������������������������������������������zzz������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������}}}������������������������������������������������zzz���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������zzz���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������zzz���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������zzz���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������zzz������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������...������������������������������������������������������������������������������������������������������������������������������������������������������zzz���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������h����������������������������������������������������������������������������������������������������������������������������������������������������������������zzz�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������Ț��������������������������������������������������������������������������������������������������������������������������������������������������zzz���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������zzz���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������
\ No newline at end of file
diff --git a/tests/fixtures/setup_assistant/country.ppm b/tests/fixtures/setup_assistant/country.ppm
new file mode 100644
index 0000000..9bbd2e6
Binary files /dev/null and b/tests/fixtures/setup_assistant/country.ppm differ
diff --git a/tests/fixtures/setup_assistant/filevault.ppm b/tests/fixtures/setup_assistant/filevault.ppm
new file mode 100644
index 0000000..1b60549
--- /dev/null
+++ b/tests/fixtures/setup_assistant/filevault.ppm
@@ -0,0 +1,4 @@
+P6
+160 90
+255
+�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������ü����������������������������������ɾ�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������ռ�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������¿����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������ž����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������þ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������þ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������þ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������þ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������þ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������þ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������6��:����������������������������������������������������������������������������������������������������������������������������������������������þ���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������þ�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������6��_��_��_��_��_��_��6������������������������������������������������������������������������������������������������������������������������������������þ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������þ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������þ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������þ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������þ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������ò�������Š�������ܟ����������������ȕ����������������������������������������������������������������������������������������������������������������������þ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������þ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������þ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������þ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������þ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������þ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������þ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������þ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������þ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������þ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������þ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������þ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������þ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������þ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������þ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������þ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������þ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������þ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������þ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������þ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������þ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������þ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������þ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������þ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������þ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������þ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������þ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������þ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������¾����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������¾����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������¾����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������þ�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������Ӷ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������
\ No newline at end of file
diff --git a/tests/fixtures/setup_assistant/filevault_confirm.ppm b/tests/fixtures/setup_assistant/filevault_confirm.ppm
new file mode 100644
index 0000000..c8a5020
--- /dev/null
+++ b/tests/fixtures/setup_assistant/filevault_confirm.ppm
@@ -0,0 +1,4 @@
+P6
+160 90
+255
+�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������ü����������������������������������ɾ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������Ž�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������̸����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������̴����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������ǻ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������̲����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������̲����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������̲����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������˾�ʾ�ʾ�ʾ�ʾ�ʾ�������������������������������������������������������������������������������������������������������������������������������������̲�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������̥�ƾ�ʿ�ʿ�ʿ�ʿ�ʾ�ʧ����������������������������������������������������������������������������������������������������������������������������������̲�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������̦�������̮�DZ�������̦����������������������������������������������������������������������������������������������������������������������������������̲�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������̣��������{��}�������̣����������������������������������������������������������������������������������������������������������������������������������̲�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������̠�������̥�Ƨ�������̠����������������������������������������������������������������������������������������������������������������������������������̲����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������̤��{����Ì�Ì�Ì�Ì�Ì��{����������������������������������������������������������������������������������������������������������������������������������̲����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������̲����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������̲����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������̲����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������̲����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������̴����������������������������������������������������������������������������������������������������������������������������������������������������������̲�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������ľ�������������������������������������������������������������������������������������������������������������������������������������̲����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������̿����������������Ÿ����������������������������������������������������������������������跷���½����������¾����������������������������������������������̲�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������»�������������������������������������������������������������������湹���������������������������������������������������������������̲����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������򡡡�����������̘�������������������������������������������᷷���������������������������������������������������������������̲����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������¼����������������������������������������������������������������������ᶶ���������������������������������������������������������������̲����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������¼����������������������������������������������������������������������Ⲳ���������������������������������������������������������������̲����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������ƿ����������Ļ����������������������������������������������������������������������㴴���������������������������������������������������������������̲�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������ĺ�������򻻻��Ÿ����������������˲����Ǯ����׺����������������������㹹���������������������������������������������������������������̲�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������ſ����������������ĺ�������������������������������������������������������������������㹹���������������������������������������������������������������̲�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������ĺ�������������Ͼ����������������������������������������������������㹹���������������������������������������������������������������̲�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������ĺ����������������ɻ�������������������������������������������������㹹���������������������������������������������������������������̲�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������ĺ�������������������������������������������������������������������㹹���������������������������������������������������������������̲�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������ĺ�������������������������������������������������������������������㺺���������������������������������������������������������������̲�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������ĺ����������������������������������育�h� o�z�#}�z� o�j�hڙ����人���������������������������������������������������������������̲�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������Ļ����������������λ�����������������u��h�p�1��=��>��7�� o�hڐ����纺���������������������������������������������������������������̲�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������Ž�������������������������������������������������������������������м����������������������������������������������������������������̲�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������ƿ����������������������������������������������������������������ŵ�������������������������������������������������������������������̲����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������ü����������������������������������������������������������������������������������������������������������������������������������̲�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������¾�������������������������������������������������������������������������������������������������������������������������������̲����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������̲����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������̲����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������̲����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������̲����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������̲����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������̲����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������̲����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������̲����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������˲����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������ʲ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������ɱ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������ɳ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������ɵ�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������ȸ�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������
\ No newline at end of file
diff --git a/tests/fixtures/setup_assistant/normal_app.ppm b/tests/fixtures/setup_assistant/normal_app.ppm
new file mode 100644
index 0000000..294d48d
--- /dev/null
+++ b/tests/fixtures/setup_assistant/normal_app.ppm
@@ -0,0 +1,4 @@
+P6
+160 90
+255
+��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������ڿ��VVV��ڸ�������������ڷ����������ړ����������ʪ����������Ī�������������ڙ�������������������ڿ����������������ڵ�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������ڶ��������|||�����ڵ�������������������������Ĭ��������vwxvwxvwxvwxvwxvwxvwxvwxvwxvwxvwxvwxvwxvwxvwxvwxvwxvwxvwxvwxvwxvwxvwxvwxvwxvwxvwxvwxvwxvwxvwxvwxvwxvwxvwxvwxvwxvwxvwxvwxvwxvwxvwxvwxvwxvwxvwxvwxvwxvwxvwxvwxvwxvwxvwxvwxvwxvwxvwxvwxvwxvwxvwxvwxvwxvwxvwxvwxvwxvwxvwxvwxvwxvwxvwxvwxvwxvwxvwxvwxvwxvwxvwxvwxvwxvwxvwxvwxvwxvwxvwxvwxvwxvwxvwxvwxvwxvwxvwxvwxvwxvwxvwxvwxvwxvwxvwxvwxvwxvwxvwxvwxvwxvwxvwxvwxvwxvwxvwxvwxvwxvwxvwxvwxvwxvwxvwxvwxvwxvwxvwxvwxvwxvwxvwxvwxvwxvwxvwxvwxvwxvwxvwxvwxvwxvwxvwxvwxvwxvwxvwxvwxvwxvwxvwxvwxvwxvwxvwxvwx%'(89;8:;8:;8:;8:;8:;8:;8:;8:;8:;8:;8:;8:;8:;8:;8:;8:;8:;8:;8:;8:;8:;8:;8:;679������������������������������������������������������������������������������������WXZ��������������󙙚�����������������������������������������������������������������󧨩�����������������������������������������������������������������������������������󧨩:;=��������������������������������������������������������������������������������������������������Ԫ�Ӫ�Ӫ�Ӫ�Ӫ�Ӫ�Ӫ�Ӫ�Ӫ�Ӫ�Ӫ�Ӫ�Ӫ�Ӫ�Ӫ�Ӫ�Ӫ�Ӫ�Ӫ�Ӫ�Ӫ�Ӫ�Ӫ�Ӫ�Ӫ�Ӫ�Ӫ�Ӫ�Ӫ�Ӫ�Ӫ�Ӫ�Ӫ�Ӫ�Ӫ�Ӫ�Ӫ�Ӫ�Ӫ�Ӫ�Ӫ�Ӫ�ӹ�������������������������������������������������������������������������������������������������������̿����������Ȯ�������ù����������ɽ�������������������Խ����м����򧨩��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������󧨩$%'�����������q��}ڔ���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������׿����������������������������������������������������������������������������󧨩678�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������󠠡�����ɼ����������������������������������������������������������󧨩78:���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������Z[\78:��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������Ƹ��FGH78:������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������34578:������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������57878:������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������67978:������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������68978:������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������68978:������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������68978:������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������68978:������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������68978:������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������68978:������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������68978:������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������68978:������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������68978:������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������68978:������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������68978:������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������68978:������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������68978:������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������68978:������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������68978:������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������68978:������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������68978:������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������68978:������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������68978:������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������68978:������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������68978:������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������68978:������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������68978:������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������68978:������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������68978:������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������68978:������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������68978:������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������68978:������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������68978:������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������68978:������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������68978:������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������68978:������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������68978:������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������68978:������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������68978:������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������68978:������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������68978:������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������68978:������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������68978:������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������68978:������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������68978:������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������68978:������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������68978:������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������68978:������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������68978:������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������68978:������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������68978:������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������68978:������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������68978:������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������68978:������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������68978:������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������68978:������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������68978:������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������68978:������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������68978:������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������68978:������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������68978:������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������68978:������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������68978:������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������68978:������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������68978:������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������68978:������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������68978:������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������68978:������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������68978:������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������689345������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������689������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������457������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������stu������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wxx!"                                                                                                          
\ No newline at end of file
diff --git a/tests/fixtures/setup_assistant/update.ppm b/tests/fixtures/setup_assistant/update.ppm
new file mode 100644
index 0000000..e95dbaf
--- /dev/null
+++ b/tests/fixtures/setup_assistant/update.ppm
@@ -0,0 +1,4 @@
+P6
+160 90
+255
+��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������Ҷ�������������������͹����������������н�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������ȼ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������任���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������幹���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������丸���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������丸���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������丸����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������q���������������������������������������������������������������������������������������������������������������������������������������������������������������丸����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������o��������������������������������������������������������������������������������������������������������������������������������������������������������������������丸���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������丸����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������~������i�������������������������������������������������������������������������������������������������������������������������������������������������������丸���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������탵���������������������������������������������������������������������������������������������������������������������������������������������������������������丸�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������i������������������������������������������������������������������������������������������������������������������������������������������������������������������������丸����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������$}ߴ�����q�ꇸ���������������������������������������������������������������������������������������������������������������������������������������������������������丸����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������n����������������������������������������������������������������������������������������������������������������������������������������������������������������丸���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������丸���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������丸���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������丸������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������ٳ�������ŵ����������������������վ�������ɼ�������ӱ����������������������������������������������������������������������������������������������������������������������丸������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������⬬���������������׸����������������������¸�������Ǽ����������������������������������������������������������������������������������������������������������������������丸���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������丸���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������丸���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������丸���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������丸���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������丸���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������丸���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������丸���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������丸���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������丸���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������丸���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������丸���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������丸���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������丸���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������丸���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������丸���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������丸���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������丸���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������丸���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������丸���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������丸���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������丸���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������丸���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������丸���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������丸���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������丸���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������丸���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������丸���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������丸���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������丸���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������㸸���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������㸸���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������Ḹ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������ϯ����϶�������ķ�������ʵ�������������÷�������������������������������������������������������������������������������������������������������������������������������������������������̭�������������������Ḹ���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������㹹���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������Ļ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������˾��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������
\ No newline at end of file
diff --git a/tests/fixtures/setup_assistant/welcome.ppm b/tests/fixtures/setup_assistant/welcome.ppm
new file mode 100644
index 0000000..fc60a10
--- /dev/null
+++ b/tests/fixtures/setup_assistant/welcome.ppm
@@ -0,0 +1,4 @@
+P6
+160 90
+255
+*,._ab346���vvw���HIJ|}}')*���hijWXY@BC���!#%\]^RST)+,! "#\]^9;<cde89;||}ABChij^_`BCEbcdQRSOPRcde?AB124TVW[]^OPQ!XYZXYZ#%&^_`OPR���wxx���DFGwwxOPQ467���689245���mno��� "���HJK���/02MNO���nop���RSTmno���opp���ghi&')������`ab~����uvw}~gij���vwx���HIK%')���wxyKLM���9;<���NOQabc`aa#%'���"$&������klm���ACD%') "/13���'(*TUW������������abbOQRvvwMNOwxy134���lmnRST%'(���245#%&���356������qqr��������abc~~���"$&ACD���/02xyy���]^_jklACD689}~~@ABdefUVW]^_dde356���?@B���*,-!���MNOuvw���fgh^_`���DEGghi{||���vww135FGI���������CDFBDE������tuv13489;yz{������OQRIJK���678���+-/|}}ACD[\]vwx/13UVX������OPQ@BC���235OPQ���||}CDE������8:;^_`���������bcd#%&]^_������YY[&()}}~������pqq#%'ABD������PQR ������,-/&')���������klm���������RST!578+-. "$ !468 "$124[\^^_`^_`^_`^_`\]^679<>@������������������������KLNUWX��󾾿�����ǟ�����������qst������������������������
\ No newline at end of file
diff --git a/tests/wsm_app_sync_tests.cpp b/tests/wsm_app_sync_tests.cpp
new file mode 100644
index 0000000..f47c949
--- /dev/null
+++ b/tests/wsm_app_sync_tests.cpp
@@ -0,0 +1,187 @@
+#include "wsm/app_registry.hpp"
+#include "wsm/guest_app_path.hpp"
+#include "wsm/runtime_password.hpp"
+#include "wsm/setup_assistant.hpp"
+#include "wsm/diagnostic_output.hpp"
+#include "wsm/reims_registry.hpp"
+#include "wsm/ssh_private_key.hpp"
+#include "wsm/qmp_unix.hpp"
+#include <windows.h>
+#include <cstdlib>
+#include <filesystem>
+#include <fstream>
+#include <iostream>
+#include <vector>
+
+namespace wsm::runtime {
+bool change_runtime_password_with_runner(const std::string&, const std::string&, std::string&,
+ int (*)(const std::string&, const std::string&));
+bool create_app_shortcuts_in(const std::string&, const std::string&, const std::string&,
+ const std::filesystem::path&, const std::filesystem::path&, std::string&);
+}
+namespace fs = std::filesystem;
+static int guest_result = 0;
+static int probe_result = 0;
+static std::string captured_script;
+int fake_guest(const std::string&, const std::string& script) {
+ if (script == "exit 0\n") return probe_result;
+ captured_script = script;
+ if (const char* capture = std::getenv("WSM_TEST_CAPTURE_PATH")) std::ofstream(capture, std::ios::binary) << script;
+ return guest_result;
+}
+#define CHECK(x) do { if (!(x)) { std::cerr << "Failed at line " << __LINE__ << ": " #x "\n"; return 1; } } while (0)
+
+int main() {
+ using namespace wsm::runtime;
+ CHECK(is_guest_app_path("/Applications/Sketch.app"));
+ CHECK(is_guest_app_path("/Applications/Alice's App (2).app"));
+ CHECK(is_guest_app_path("/Applications/Glazba Čarobnjak.app"));
+ CHECK(!is_guest_app_path("/Applications/../tmp/Not.app"));
+ CHECK(!is_guest_app_path("/Applications/Bad\nName.app"));
+ CHECK(!is_guest_app_path("/tmp/Not.app"));
+ CHECK(guest_app_name("/Applications/Alice's App.app") == "Alice's App");
+ CHECK(guest_shell_quote("a'b") == "'a'\\''b'");
+ CHECK(guest_command_base64("hello") == "aGVsbG8=");
+
+ const struct { const char* file; SetupAssistantStep step; int x, y; } screens[] = {
+ {"country.ppm", SetupAssistantStep::Country, 0, 0},
+ {"update.ppm", SetupAssistantStep::Update, 325, 414},
+ {"account.ppm", SetupAssistantStep::Account, 335, 401},
+ {"account_menu.ppm", SetupAssistantStep::AccountMenu, 335, 429},
+ {"account_confirm.ppm", SetupAssistantStep::AccountConfirm, 509, 331},
+ {"age_range.ppm", SetupAssistantStep::AgeRange, 480, 382},
+ {"filevault.ppm", SetupAssistantStep::FileVault, 566, 401},
+ {"filevault_confirm.ppm", SetupAssistantStep::FileVaultConfirm, 510, 306},
+ {"welcome.ppm", SetupAssistantStep::Welcome, 480, 481},
+ {"normal_app.ppm", SetupAssistantStep::Unknown, 0, 0},
+ };
+ for (const auto& s : screens) {
+ std::ifstream f(fs::path(WSM_TEST_FIXTURE_DIR) / s.file, std::ios::binary);
+ std::string magic; int width=0, height=0, max=0;
+ f >> magic >> width >> height >> max; f.get();
+ CHECK(f && magic == "P6" && width == 160 && height == 90 && max == 255);
+ std::vector<uint8_t> pixels(static_cast<size_t>(width) * height * 3);
+ f.read(reinterpret_cast<char*>(pixels.data()), static_cast<std::streamsize>(pixels.size()));
+ CHECK(static_cast<size_t>(f.gcount()) == pixels.size());
+ const auto action = recognize_setup_assistant(pixels.data(), width, height);
+ CHECK(action.step == s.step);
+ CHECK(action.x == s.x * 32767 / 960 && action.y == s.y * 32767 / 540);
+ }
+ CHECK(recognize_setup_assistant(nullptr, 0, 0).step == SetupAssistantStep::Unknown);
+ std::vector<uint8_t> blank(160 * 90 * 3, 255);
+ CHECK(recognize_setup_assistant(blank.data(), 160, 90).step == SetupAssistantStep::Unknown);
+ if (const char* full_dir = std::getenv("WSM_SETUP_FULL_FRAME_DIR")) {
+ for (const auto& s : screens) {
+ std::ifstream f(fs::path(full_dir) / s.file, std::ios::binary);
+ std::string magic; int w = 0, h = 0, max = 0;
+ f >> magic >> w >> h >> max; f.get();
+ CHECK(f && magic == "P6" && w == 960 && h == 540 && max == 255);
+ std::vector<uint8_t> pixels(static_cast<size_t>(w) * h * 3);
+ f.read(reinterpret_cast<char*>(pixels.data()), static_cast<std::streamsize>(pixels.size()));
+ CHECK(static_cast<size_t>(f.gcount()) == pixels.size());
+ CHECK(recognize_setup_assistant(pixels.data(), w, h).step == s.step);
+ }
+ }
+
+ const fs::path root = fs::temp_directory_path() / ("wsm-app-sync-test-" + std::to_string(GetCurrentProcessId()));
+ CHECK(!fs::exists(root));
+ fs::create_directories(root / "runtime" / "config" / "guest");
+ CHECK(!wsm::core::QmpUnixClient((root / "missing-qmp.sock").string()).type_ascii_text("test"));
+ const auto ssh_key = root / "runtime" / "config" / "guest" / "id_ed25519";
+ CHECK(ssh_private_key_path(root.string()).empty());
+ { std::ofstream(ssh_key) << "test key"; }
+ CHECK(ssh_private_key_path(root.string()) == ssh_key.string());
+ CHECK(restrict_to_current_account(ssh_key));
+ char previous_local[MAX_PATH]{};
+ const DWORD previous_len = GetEnvironmentVariableA("LOCALAPPDATA", previous_local, MAX_PATH);
+ CHECK(previous_len > 0 && previous_len < MAX_PATH);
+ CHECK(SetEnvironmentVariableA("LOCALAPPDATA", root.string().c_str()));
+ const std::string copy = ssh_private_key_path_impl(root.string(), true);
+ CHECK(!copy.empty() && fs::path(copy) != ssh_key && same_key_contents(ssh_key, copy));
+ const auto root2 = root / "second-install";
+ fs::create_directories(root2 / "runtime" / "config" / "guest");
+ const auto key2 = root2 / "runtime" / "config" / "guest" / "id_ed25519";
+ { std::ofstream(key2) << "different key"; }
+ const std::string copy2 = ssh_private_key_path_impl(root2.string(), true);
+ CHECK(!copy2.empty() && copy2 != copy && same_key_contents(key2, copy2));
+ CHECK(SetEnvironmentVariableA("LOCALAPPDATA", previous_local));
+ fs::remove(fs::path(copy)); fs::remove(fs::path(copy).parent_path());
+ fs::remove(fs::path(copy2)); fs::remove(fs::path(copy2).parent_path());
+ fs::remove(root / "WSM" / "ssh"); fs::remove(root / "WSM");
+ fs::remove(key2); fs::remove(key2.parent_path()); fs::remove(key2.parent_path().parent_path());
+ fs::remove(key2.parent_path().parent_path().parent_path()); fs::remove(root2);
+ fs::remove(ssh_key);
+ CHECK(should_isolate_reims_registry(root));
+ const auto vm_dir = root / "runtime" / "reims-ctl" / "vms" / "wsm-default";
+ fs::create_directories(vm_dir);
+ { std::ofstream(vm_dir / "vm.toml") << "legacy"; }
+ CHECK(!should_isolate_reims_registry(root));
+ const auto isolated_registry = root / "runtime" / "config" / "reims-ctl";
+ fs::create_directories(isolated_registry);
+ CHECK(should_isolate_reims_registry(root));
+ fs::remove(vm_dir / "vm.toml"); fs::remove(vm_dir); fs::remove(vm_dir.parent_path());
+ fs::remove(vm_dir.parent_path().parent_path()); fs::remove(isolated_registry);
+ const auto redirected = root / "redirected-desktop";
+ fs::create_directories(redirected);
+ std::string report_path;
+ CHECK(write_diagnostic_report({root / "missing-desktop", redirected}, "report.txt", "setup log content", report_path));
+ CHECK(fs::exists(redirected / "report.txt"));
+ { std::ifstream in(redirected / "report.txt"); std::string content; std::getline(in, content); CHECK(content == "setup log content"); }
+ CHECK(!write_diagnostic_report({root / "missing-desktop"}, "report.txt", "x", report_path));
+ const auto programs = root / "start", desktop = root / "desktop";
+ fs::create_directories(programs); fs::create_directories(desktop);
+ { std::ofstream(programs / "Sketch.lnk") << "existing Windows shortcut";
+ std::ofstream(desktop / "Sketch.lnk") << "existing Windows shortcut"; }
+ std::string link;
+ CHECK(create_app_shortcuts_in("Sketch", "com.example.sketch", "", programs, desktop, link));
+ CHECK(fs::exists(programs / "Sketch (macOS).lnk"));
+ CHECK(fs::exists(desktop / "Sketch (macOS).lnk"));
+ { std::ifstream f(desktop / "Sketch.lnk"); std::string content; std::getline(f, content); CHECK(content == "existing Windows shortcut"); }
+ CHECK(create_app_shortcuts_in("Sketch", "com.example.sketch", "", programs, desktop, link));
+ CHECK(!fs::exists(desktop / "Sketch (macOS 2).lnk"));
+ CHECK(create_app_shortcuts_in("Čarobnjak", "com.example.unicode", "", programs, desktop, link));
+ CHECK(fs::exists(desktop / L"Čarobnjak.lnk"));
+ const auto db = (root / "apps.json").string();
+ AppRegistry apps(db);
+ AppBundleInfo app; app.id = "com.example.app"; app.name = "An \"App\" {Example}";
+ app.bundle_path = "/Applications/Alice's App.app"; app.executable_path = app.bundle_path;
+ apps.upsert(app); CHECK(apps.save());
+ AppRegistry reopened(db); CHECK(reopened.load());
+ AppBundleInfo found; CHECK(reopened.find(app.id, found));
+ CHECK(found.name == app.name && found.bundle_path == app.bundle_path);
+
+ const fs::path password_file = root / "runtime" / "config" / "guest" / "password";
+ const fs::path pending_file = root / "runtime" / "config" / "guest" / "password.pending";
+ { std::ofstream f(password_file); f << "original123"; }
+ std::string error, value;
+ CHECK(!change_runtime_password_with_runner(root.string(), "short", error, fake_guest));
+ CHECK(!fs::exists(pending_file));
+ probe_result = 255; error.clear();
+ CHECK(!change_runtime_password_with_runner(root.string(), "new password 123", error, fake_guest));
+ CHECK(!fs::exists(pending_file));
+ probe_result = 0;
+ guest_result = 11; error.clear();
+ CHECK(!change_runtime_password_with_runner(root.string(), "new password 123", error, fake_guest));
+ CHECK(!fs::exists(pending_file));
+ CHECK(read_runtime_password(root.string(), value, error) && value == "original123");
+ guest_result = 255; error.clear();
+ CHECK(!change_runtime_password_with_runner(root.string(), "new password 123", error, fake_guest));
+ CHECK(fs::exists(pending_file));
+ CHECK(!read_runtime_password(root.string(), value, error));
+ CHECK(captured_script.find("new password 123") == std::string::npos);
+ fs::remove(pending_file); // this isolated test simulates resolving an interrupted change
+ guest_result = 0; error.clear();
+ CHECK(change_runtime_password_with_runner(root.string(), "new password 123", error, fake_guest));
+ CHECK(!fs::exists(pending_file));
+ CHECK(read_runtime_password(root.string(), value, error) && value == "new password 123");
+ fs::remove(programs / "Sketch.lnk"); fs::remove(programs / "Sketch (macOS).lnk");
+ fs::remove(desktop / "Sketch.lnk"); fs::remove(desktop / "Sketch (macOS).lnk");
+ fs::remove(programs / L"Čarobnjak.lnk"); fs::remove(desktop / L"Čarobnjak.lnk");
+ fs::remove(programs); fs::remove(desktop);
+ fs::remove(redirected / "report.txt"); fs::remove(redirected);
+ fs::remove(password_file); fs::remove(root / "apps.json");
+ fs::remove(root / "runtime" / "config" / "guest"); fs::remove(root / "runtime" / "config");
+ fs::remove(root / "runtime"); fs::remove(root);
+ std::cout << "App paths, registry and password transaction tests passed.\n";
+ return 0;
+}
diff --git a/tests/wsm_core_tests.cpp b/tests/wsm_core_tests.cpp
index 3b6285d..4a481aa 100644
--- a/tests/wsm_core_tests.cpp
+++ b/tests/wsm_core_tests.cpp
@@ -5,10 +5,8 @@
#include "wsm/app_registry.hpp"
#include "wsm/guest_bridge.hpp"
#include "wsm/shell_integration.hpp"
-#include "wsm/qmp_unix.hpp"
#include <winsock2.h>
-#include <afunix.h>
#include <ws2tcpip.h>
#include <windows.h>
@@ -17,7 +15,6 @@
#include <filesystem>
#include <fstream>
#include <iostream>
-#include <map>
#include <thread>
#include <vector>
@@ -183,108 +180,6 @@ int main() {
WSM_CHECK(std::filesystem::file_size("F:\\WSM\\cache\\tmp\\test.ico") == 22 + 16);
}
- std::cout << "[test] 9. QmpUnixClient ASCII typing & input-send-event reliability...\n";
- {
- wsm::core::QmpKeySpec spec{};
- WSM_CHECK(wsm::core::ascii_to_qmp_key('a', spec) && !spec.shift && std::strcmp(spec.qcode, "a") == 0);
- WSM_CHECK(wsm::core::ascii_to_qmp_key('G', spec) && spec.shift && std::strcmp(spec.qcode, "g") == 0);
- WSM_CHECK(wsm::core::ascii_to_qmp_key('(', spec) && spec.shift && std::strcmp(spec.qcode, "9") == 0);
- WSM_CHECK(wsm::core::ascii_to_qmp_key(')', spec) && spec.shift && std::strcmp(spec.qcode, "0") == 0);
- WSM_CHECK(wsm::core::ascii_to_qmp_key(':', spec) && spec.shift && std::strcmp(spec.qcode, "semicolon") == 0);
- WSM_CHECK(wsm::core::ascii_to_qmp_key(';', spec) && !spec.shift && std::strcmp(spec.qcode, "semicolon") == 0);
- WSM_CHECK(wsm::core::ascii_to_qmp_key('\n', spec) && !spec.shift && std::strcmp(spec.qcode, "ret") == 0);
- WSM_CHECK(!wsm::core::ascii_to_qmp_key('\x01', spec));
-
- WSADATA wsa{};
- WSM_CHECK(WSAStartup(MAKEWORD(2, 2), &wsa) == 0);
- std::string sock_path = (std::filesystem::temp_directory_path() /
- ("wsm_qmp_test_" + std::to_string(GetCurrentProcessId()) + ".sock")).string();
- std::error_code ec;
- std::filesystem::remove(sock_path, ec);
-
- SOCKET srv = socket(AF_UNIX, SOCK_STREAM, 0);
- WSM_CHECK(srv != INVALID_SOCKET);
- SOCKADDR_UN addr{};
- addr.sun_family = AF_UNIX;
- WSM_CHECK(sock_path.size() < sizeof(addr.sun_path));
- std::memcpy(addr.sun_path, sock_path.c_str(), sock_path.size() + 1);
- WSM_CHECK(bind(srv, reinterpret_cast<sockaddr*>(&addr), sizeof(addr)) == 0);
- WSM_CHECK(listen(srv, 4) == 0);
-
- std::vector<std::string> commands;
- std::thread mock_qmp([srv, &commands]() {
- auto read_line = [](SOCKET c, std::string& line) -> bool {
- line.clear();
- char ch = 0;
- while (recv(c, &ch, 1, 0) == 1) {
- if (ch == '\n') return true;
- if (ch != '\r') line.push_back(ch);
- }
- return false;
- };
- // Serve 2 connections: send_key_combo + type_ascii_text
- for (int conn_i = 0; conn_i < 2; ++conn_i) {
- SOCKET cli = accept(srv, nullptr, nullptr);
- if (cli == INVALID_SOCKET) break;
- const char* greet = "{\"QMP\":{\"version\":{\"qemu\":{\"micro\":0,\"minor\":2,\"major\":9}},\"capabilities\":[]}}\n";
- send(cli, greet, static_cast<int>(std::strlen(greet)), 0);
- std::string line;
- while (read_line(cli, line)) {
- commands.push_back(line);
- const char* ret = "{\"return\":{}}\n";
- send(cli, ret, static_cast<int>(std::strlen(ret)), 0);
- }
- closesocket(cli);
- }
- });
-
- wsm::core::QmpUnixClient qmp(sock_path);
- WSM_CHECK(qmp.send_key_combo({"ctrl", "c"}, 0));
-
- const std::string disk_cmd =
- "if [ -d '/Volumes/Macintosh HD/Applications' ]; then true; else "
- "T=; for d in $(diskutil list internal physical | grep '^/dev/disk' | cut -d' ' -f1); do "
- "diskutil list $d | grep -qE 'OPENCORE|Installer|RECOVERY' || T=$d; done; "
- "[ -n \"$T\" ] && diskutil eraseDisk APFS 'Macintosh HD' GPT $T; fi\n";
- WSM_CHECK(qmp.type_ascii_text(disk_cmd, 0, 0));
-
- mock_qmp.join();
- closesocket(srv);
- std::filesystem::remove(sock_path, ec);
- WSACleanup();
-
- // Verify: only 2 qmp_capabilities handshakes (one for send_key_combo, one for whole type_ascii_text),
- // zero async send-key calls, and every key down has a matching up with shift left released.
- int caps_count = 0, send_key_count = 0;
- bool shift_down = false;
- std::map<std::string, int> key_balance;
- for (const auto& cmd : commands) {
- if (cmd.find("qmp_capabilities") != std::string::npos) ++caps_count;
- if (cmd.find("\"send-key\"") != std::string::npos) ++send_key_count;
- if (cmd.find("\"input-send-event\"") == std::string::npos) continue;
- // Ignore the initial all-modifiers release command (contains shift_r)
- if (cmd.find("\"shift_r\"") != std::string::npos) continue;
- size_t pos = 0;
- while ((pos = cmd.find("\"down\":", pos)) != std::string::npos) {
- bool down = (cmd.compare(pos + 7, 4, "true") == 0);
- size_t kpos = cmd.find("\"data\":\"", pos + 7);
- WSM_CHECK(kpos != std::string::npos);
- size_t kend = cmd.find('"', kpos + 8);
- std::string qcode = cmd.substr(kpos + 8, kend - (kpos + 8));
- key_balance[qcode] += (down ? 1 : -1);
- if (qcode == "shift") shift_down = down;
- WSM_CHECK(key_balance[qcode] >= 0 && key_balance[qcode] <= 1);
- pos = kend;
- }
- }
- WSM_CHECK(caps_count == 2);
- WSM_CHECK(send_key_count == 0);
- WSM_CHECK(!shift_down);
- for (const auto& kv : key_balance) {
- WSM_CHECK(kv.second == 0);
- }
- }
-
- std::cout << "[test] ALL 9 CORE & INTEGRATION TESTS PASSED!\n";
+ std::cout << "[test] ALL 8 CORE & INTEGRATION TESTS PASSED!\n";
return 0;
}
diff --git a/tests/wsm_qmp_input_tests.cpp b/tests/wsm_qmp_input_tests.cpp
new file mode 100644
index 0000000..668c787
--- /dev/null
+++ b/tests/wsm_qmp_input_tests.cpp
@@ -0,0 +1,59 @@
+#include "wsm/qmp_unix.hpp"
+#include <winsock2.h>
+#include <afunix.h>
+#include <windows.h>
+#include <cstring>
+#include <filesystem>
+#include <iostream>
+#include <string>
+#include <thread>
+
+static bool read_line(SOCKET socket, std::string& out) {
+ out.clear(); char c;
+ while (recv(socket, &c, 1, 0) == 1) {
+ if (c == '\n') return true;
+ if (c != '\r') out += c;
+ }
+ return false;
+}
+static void respond(SOCKET socket, const char* text) {
+ send(socket, text, static_cast<int>(std::strlen(text)), 0);
+}
+
+int main() {
+ WSADATA winsock{};
+ if (WSAStartup(MAKEWORD(2, 2), &winsock)) return 1;
+ const auto path = (std::filesystem::temp_directory_path() /
+ ("wsm-qmp-input-test-" + std::to_string(GetCurrentProcessId()) + ".sock")).string();
+ if (std::filesystem::exists(path) || path.size() >= sizeof(SOCKADDR_UN{}.sun_path)) return 1;
+ SOCKET listener = socket(AF_UNIX, SOCK_STREAM, 0);
+ SOCKADDR_UN address{}; address.sun_family = AF_UNIX;
+ std::memcpy(address.sun_path, path.c_str(), path.size() + 1);
+ if (listener == INVALID_SOCKET || bind(listener, reinterpret_cast<sockaddr*>(&address), sizeof(address)) || listen(listener, 1)) return 1;
+ bool pressed = false, rejected_release = false, retried_release = false;
+ std::thread server([&] {
+ SOCKET client = accept(listener, nullptr, nullptr);
+ DWORD timeout = 3000;
+ setsockopt(client, SOL_SOCKET, SO_RCVTIMEO, reinterpret_cast<const char*>(&timeout), sizeof(timeout));
+ respond(client, "{\"QMP\":{}}\n");
+ std::string request;
+ if (read_line(client, request)) respond(client, "{\"return\":{}}\n");
+ if (read_line(client, request)) {
+ pressed = request.find("\"down\":true") != std::string::npos;
+ respond(client, "{\"return\":{}}\n");
+ }
+ if (read_line(client, request)) {
+ rejected_release = request.find("\"down\":false") != std::string::npos;
+ respond(client, "{\"error\":{\"class\":\"GenericError\",\"desc\":\"simulated\"}}\n");
+ }
+ retried_release = read_line(client, request) && request.find("\"down\":false") != std::string::npos;
+ if (retried_release) respond(client, "{\"return\":{}}\n");
+ closesocket(client);
+ });
+ const bool result = wsm::core::QmpUnixClient(path).send_key_combo({"ctrl", "c"}, 0);
+ server.join(); closesocket(listener);
+ std::error_code ec; std::filesystem::remove(path, ec);
+ WSACleanup();
+ if (!pressed || !rejected_release || !retried_release || result) return 1;
+ std::cout << "QMP retries a rejected key release and reports the original error.\n";
+}