From d507190b11df75ac11596d8676ced9d822f62365 Mon Sep 17 00:00:00 2001 From: Showdown76py Date: Sun, 16 Aug 2026 18:00:24 +0100 Subject: [PATCH 1/2] WIP ring code: qr-anchored prototype, encoder, bench, lab pages --- pyproject.toml | 3 + rotatyvote/ringcode.py | 105 +++++++++++ static/js/ringcode.js | 360 +++++++++++++++++++++++++++++++++++++ static/ringlab/bench.html | 113 ++++++++++++ static/ringlab/lab.css | 14 ++ static/ringlab/lab.json | 1 + static/ringlab/phone.html | 20 +++ static/ringlab/phone.js | 66 +++++++ static/ringlab/screen.html | 8 + static/ringlab/screen.js | 42 +++++ tests/ringcode_cross.mjs | 24 +++ tests/test_ringcode.py | 55 ++++++ 12 files changed, 811 insertions(+) create mode 100644 rotatyvote/ringcode.py create mode 100644 static/js/ringcode.js create mode 100644 static/ringlab/bench.html create mode 100644 static/ringlab/lab.css create mode 100644 static/ringlab/lab.json create mode 100644 static/ringlab/phone.html create mode 100644 static/ringlab/phone.js create mode 100644 static/ringlab/screen.html create mode 100644 static/ringlab/screen.js create mode 100644 tests/ringcode_cross.mjs create mode 100644 tests/test_ringcode.py diff --git a/pyproject.toml b/pyproject.toml index 18d9246..c8451da 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -14,3 +14,6 @@ dev = [ "httpx>=0.28.1", "pytest>=9.2.0", ] + +[tool.pytest.ini_options] +pythonpath = ["."] diff --git a/rotatyvote/ringcode.py b/rotatyvote/ringcode.py new file mode 100644 index 0000000..1022666 --- /dev/null +++ b/rotatyvote/ringcode.py @@ -0,0 +1,105 @@ +"""ring code: a static qr in the middle (opens the page, anchors geometry) plus rotating rings of dashes +that carry the time token. layout and bit order must match static/js/ringcode.js exactly. + +payload = slot mod 2^16 (2 bytes) + first 4 bytes of the token hmac, reed-solomon(12, 6) over gf(256), +whitened, spread over 3 data rings. the inner ring is a fixed sync pattern used to find the rotation.""" +import hmac + +SYNC = "010001100101001000111111" # 24 sectors, min distance 12 to any of its rotations +RING_SECTORS = (24, 28, 32, 36) # ring 0 is sync, 1..3 carry 96 data bits +NSYM = 6 # rs parity bytes, fixes up to 3 bad bytes +SLOT_BITS = 16 + +_EXP = [0] * 512 +_LOG = [0] * 256 +_x = 1 +for _i in range(255): + _EXP[_i] = _x + _LOG[_x] = _i + _x <<= 1 + if _x & 0x100: + _x ^= 0x11D +for _i in range(255, 512): + _EXP[_i] = _EXP[_i - 255] + + +def _mul(a, b): + return 0 if a == 0 or b == 0 else _EXP[_LOG[a] + _LOG[b]] + + +def _generator(nsym): + g = [1] + for i in range(nsym): + # g *= (x - a^i), coefficients highest degree first + ng = [0] * (len(g) + 1) + for j, c in enumerate(g): + ng[j] ^= c + ng[j + 1] ^= _mul(c, _EXP[i]) + g = ng + return g + + +_GEN = _generator(NSYM) + + +def rs_encode(msg: bytes) -> bytes: + rem = [0] * NSYM + for byte in msg: + f = byte ^ rem[0] + rem = rem[1:] + [0] + if f: + for j in range(NSYM): + rem[j] ^= _mul(_GEN[j + 1], f) + return bytes(msg) + bytes(rem) + + +def whitening(n): + """16-bit galois lfsr, same sequence as the js side""" + lfsr, out = 0xACE1, [] + for _ in range(n): + bit = lfsr & 1 + lfsr >>= 1 + if bit: + lfsr ^= 0xB400 + out.append(bit) + return out + + +def mac32(secret: bytes, poll_id: str, interval_ms: int, slot: int) -> bytes: + msg = f"{poll_id}:{interval_ms}:{slot}".encode() + return hmac.new(secret, msg, "sha256").digest()[:4] + + +def payload(secret: bytes, poll_id: str, interval_ms: int, slot: int) -> bytes: + return (slot & 0xFFFF).to_bytes(2, "big") + mac32(secret, poll_id, interval_ms, slot) + + +def data_bits(codeword: bytes) -> str: + bits = [(b >> (7 - k)) & 1 for b in codeword for k in range(8)] + return "".join(str(b ^ w) for b, w in zip(bits, whitening(len(bits)))) + + +def render_bits(secret: bytes, poll_id: str, interval_ms: int, slot: int) -> str: + """what the projector draws: sync ring then the 96 data sectors, ring by ring""" + return SYNC + data_bits(rs_encode(payload(secret, poll_id, interval_ms, slot))) + + +def token(secret: bytes, poll_id: str, interval_ms: int, slot: int) -> str: + """the compact token the phone sends after decoding: r.""" + return f"r{slot & 0xFFFF}.{mac32(secret, poll_id, interval_ms, slot).hex()}" + + +def resolve(secret: bytes, poll_id: str, interval_ms: int, tok: str, now_slot: int, back: int) -> int | None: + """full slot of a ring token if it matches one of the last `back` slots, else None""" + try: + s16, mac = tok[1:].split(".", 1) + s16 = int(s16) + given = bytes.fromhex(mac) + except (ValueError, IndexError): + return None + if len(given) != 4 or not 0 <= s16 <= 0xFFFF: + return None + for slot in range(now_slot, now_slot - back - 1, -1): + if slot & 0xFFFF == s16: + return slot if hmac.compare_digest(given, mac32(secret, poll_id, interval_ms, slot)) else None + return None diff --git a/static/js/ringcode.js b/static/js/ringcode.js new file mode 100644 index 0000000..24012c9 --- /dev/null +++ b/static/js/ringcode.js @@ -0,0 +1,360 @@ +// ring code: static qr in the middle + rotating rings of dashes carrying the time token. +// layout, bit order and reed-solomon params must match rotatyvote/ringcode.py +// pure functions, no dom: runs in the browser and under node for the cross tests + +export const SYNC = "010001100101001000111111"; +export const RING_SECTORS = [24, 28, 32, 36]; +// radii in units of the center qr side, qr centered on the origin +// tight rings leave more of the diameter to the center qr, which is the detection bottleneck +export const RADII = [0.9, 1.05, 1.2, 1.35]; +export const THICK = 0.105; +export const DASH = 0.74; // part of a sector covered by the dash +export const DISC = 1.5; // background disc radius +const NSYM = 6; + +// gf(256), poly 0x11d, generator 2 +const EXP = new Uint8Array(512), LOG = new Uint8Array(256); +{ + let x = 1; + for (let i = 0; i < 255; i++) { EXP[i] = x; LOG[x] = i; x <<= 1; if (x & 0x100) x ^= 0x11d; } + for (let i = 255; i < 512; i++) EXP[i] = EXP[i - 255]; +} +const mul = (a, b) => (a && b ? EXP[LOG[a] + LOG[b]] : 0); +const div = (a, b) => (a ? EXP[(LOG[a] + 255 - LOG[b]) % 255] : 0); +const pow = (x, p) => EXP[(((LOG[x] * p) % 255) + 255) % 255]; +const inv = (x) => EXP[255 - LOG[x]]; +const polyScale = (p, x) => p.map((c) => mul(c, x)); +const polyAdd = (p, q) => { + const r = new Array(Math.max(p.length, q.length)).fill(0); + for (let i = 0; i < p.length; i++) r[i + r.length - p.length] = p[i]; + for (let i = 0; i < q.length; i++) r[i + r.length - q.length] ^= q[i]; + return r; +}; +const polyMul = (p, q) => { + const r = new Array(p.length + q.length - 1).fill(0); + for (let j = 0; j < q.length; j++) for (let i = 0; i < p.length; i++) r[i + j] ^= mul(p[i], q[j]); + return r; +}; +const polyEval = (p, x) => { let y = p[0]; for (let i = 1; i < p.length; i++) y = mul(y, x) ^ p[i]; return y; }; + +let GEN = [1]; +for (let i = 0; i < NSYM; i++) GEN = polyMul(GEN, [1, pow(2, i)]); + +export function rsEncode(msg) { + const rem = new Array(NSYM).fill(0); + for (const byte of msg) { + const f = byte ^ rem[0]; + rem.shift(); rem.push(0); + if (f) for (let j = 0; j < NSYM; j++) rem[j] ^= mul(GEN[j + 1], f); + } + return [...msg, ...rem]; +} + +// port of the wikiversity "reed-solomon codes for coders" decoder (fcr 0, generator 2) +export function rsDecode(cw) { + const n = cw.length; + const synd = [0]; + for (let i = 0; i < NSYM; i++) synd.push(polyEval(cw, pow(2, i))); + if (Math.max(...synd) === 0) return cw.slice(0, n - NSYM); + let errLoc = [1], oldLoc = [1]; + for (let i = 0; i < NSYM; i++) { + const K = i + 1; + let delta = synd[K]; + for (let j = 1; j < errLoc.length; j++) delta ^= mul(errLoc[errLoc.length - 1 - j], synd[K - j]); + oldLoc = [...oldLoc, 0]; + if (delta) { + if (oldLoc.length > errLoc.length) { + const newLoc = polyScale(oldLoc, delta); + oldLoc = polyScale(errLoc, inv(delta)); + errLoc = newLoc; + } + errLoc = polyAdd(errLoc, polyScale(oldLoc, delta)); + } + } + while (errLoc.length && errLoc[0] === 0) errLoc.shift(); + const errs = errLoc.length - 1; + if (errs * 2 > NSYM) return null; + const rev = [...errLoc].reverse(); + const errPos = []; + for (let i = 0; i < n; i++) if (polyEval(rev, pow(2, i)) === 0) errPos.push(n - 1 - i); + if (errPos.length !== errs) return null; + const coefPos = errPos.map((p) => n - 1 - p); + let eLoc = [1]; + for (const i of coefPos) eLoc = polyMul(eLoc, polyAdd([1], [pow(2, i), 0])); + // error evaluator: (synd reversed * eLoc) mod x^(len) + const prod = polyMul([...synd].reverse(), eLoc); + const evalLen = eLoc.length; + const errEval = prod.slice(prod.length - evalLen).reverse(); + const X = coefPos.map((c) => pow(2, -(255 - c))); + const E = new Array(n).fill(0); + X.forEach((Xi, i) => { + const XiInv = inv(Xi); + let prime = 1; + X.forEach((Xj, j) => { if (j !== i) prime = mul(prime, 1 ^ mul(XiInv, Xj)); }); + if (!prime) return; + const y = mul(Xi, polyEval([...errEval].reverse(), XiInv)); + E[errPos[i]] = div(y, prime); + }); + const fixed = cw.map((c, i) => c ^ E[i]); + for (let i = 0; i < NSYM; i++) if (polyEval(fixed, pow(2, i))) return null; + return fixed.slice(0, n - NSYM); +} + +export function whitening(n) { + let lfsr = 0xace1; + const out = []; + for (let i = 0; i < n; i++) { const bit = lfsr & 1; lfsr >>= 1; if (bit) lfsr ^= 0xb400; out.push(bit); } + return out; +} + +export function dataBits(codeword) { + const bits = []; + for (const b of codeword) for (let k = 7; k >= 0; k--) bits.push((b >> k) & 1); + const w = whitening(bits.length); + return bits.map((b, i) => b ^ w[i]).join(""); +} + +export function bytesFromBits(bits) { + const w = whitening(bits.length); + const out = []; + for (let i = 0; i < bits.length; i += 8) { + let v = 0; + for (let k = 0; k < 8; k++) v = (v << 1) | (bits[i + k] ^ w[i + k]); + out.push(v); + } + return out; +} + +export function tokenFromPayload(p) { + const slot = (p[0] << 8) | p[1]; + return `r${slot}.${p.slice(2).map((b) => b.toString(16).padStart(2, "0")).join("")}`; +} + +// splits the 120 render bits into rings +export function ringsOf(bits) { + const rings = []; + let k = 0; + for (const n of RING_SECTORS) { rings.push(bits.slice(k, k + n)); k += n; } + return rings; +} + +const sectorAngle = (theta, j, n) => theta + ((j + 0.5) * 2 * Math.PI) / n; + +// ---- drawing (projector + bench) ---- + +export function render(ctx, cx, cy, side, theta, bits, modules, colors = {}) { + const ink = colors.ink || "#1c2036", gray = colors.gray || "#a7acbd"; + ctx.fillStyle = colors.disc || "#eef0f6"; + ctx.beginPath(); ctx.arc(cx, cy, DISC * side, 0, 2 * Math.PI); ctx.fill(); + if (modules) { + const n = modules.length, q = 2, s = side / n; + ctx.fillStyle = "#fff"; + ctx.fillRect(cx - side / 2 - q * s, cy - side / 2 - q * s, side + 2 * q * s, side + 2 * q * s); + ctx.fillStyle = "#000"; + for (let y = 0; y < n; y++) for (let x = 0; x < n; x++) { + if (modules[y][x] === "1") ctx.fillRect(cx - side / 2 + x * s, cy - side / 2 + y * s, s + 0.5, s + 0.5); + } + } + const rings = ringsOf(bits); + ctx.lineCap = "round"; + ctx.lineWidth = THICK * side; + rings.forEach((ring, k) => { + const n = ring.length, r = RADII[k] * side, step = (2 * Math.PI) / n; + // round caps stick out by half the stroke, take that off the arc + const cap = (THICK * side) / 2 / r; + const half = Math.max(0.01, (step * DASH) / 2 - cap); + for (let j = 0; j < n; j++) { + const a = sectorAngle(theta, j, n) - Math.PI / 2; + ctx.strokeStyle = ring[j] === "1" ? ink : gray; + ctx.beginPath(); ctx.arc(cx, cy, r, a - half, a + half); ctx.stroke(); + } + }); +} + +// ---- decoding (phone) ---- + +// homography mapping the unit qr square (-.5..+.5) onto the 4 detected corners (tl, tr, br, bl) +export function homography(c) { + const src = [[-0.5, -0.5], [0.5, -0.5], [0.5, 0.5], [-0.5, 0.5]]; + const A = [], B = []; + for (let i = 0; i < 4; i++) { + const [x, y] = src[i], { x: u, y: v } = c[i]; + A.push([x, y, 1, 0, 0, 0, -u * x, -u * y]); B.push(u); + A.push([0, 0, 0, x, y, 1, -v * x, -v * y]); B.push(v); + } + // gaussian elimination 8x8 + for (let i = 0; i < 8; i++) { + let p = i; + for (let r = i + 1; r < 8; r++) if (Math.abs(A[r][i]) > Math.abs(A[p][i])) p = r; + [A[i], A[p]] = [A[p], A[i]]; [B[i], B[p]] = [B[p], B[i]]; + if (Math.abs(A[i][i]) < 1e-12) return null; + for (let r = 0; r < 8; r++) if (r !== i) { + const f = A[r][i] / A[i][i]; + for (let k = i; k < 8; k++) A[r][k] -= f * A[i][k]; + B[r] -= f * B[i]; + } + } + const h = B.map((b, i) => b / A[i][i]); + return (x, y) => { const w = h[6] * x + h[7] * y + 1; return [(h[0] * x + h[1] * y + h[2]) / w, (h[3] * x + h[4] * y + h[5]) / w]; }; +} + +export function grayOf(imageData) { + const { data, width, height } = imageData, g = new Float32Array(width * height); + for (let i = 0, j = 0; i < g.length; i++, j += 4) g[i] = 0.299 * data[j] + 0.587 * data[j + 1] + 0.114 * data[j + 2]; + return { g, w: width, h: height }; +} + +function sampler(img, H) { + const { g, w, h } = img; + return (x, y) => { + const [u, v] = H(x, y); + if (!(u >= 0 && v >= 0 && u < w - 1 && v < h - 1)) return NaN; + const x0 = u | 0, y0 = v | 0, fx = u - x0, fy = v - y0, i = y0 * w + x0; + return (g[i] * (1 - fx) + g[i + 1] * fx) * (1 - fy) + (g[i + w] * (1 - fx) + g[i + w + 1] * fx) * fy; + }; +} + +// mean brightness of one dash: a few points across its middle +function sector(S, r, a, step) { + let sum = 0, n = 0; + for (const dr of [-0.028, 0, 0.028]) for (const da of [-0.18, 0, 0.18]) { + const ang = a + da * step, rr = r + dr; + const v = S(rr * Math.sin(ang), -rr * Math.cos(ang)); + if (!Number.isNaN(v)) { sum += v; n++; } + } + return n >= 6 ? sum / n : NaN; +} + +const SYNC_BITS = [...SYNC].map(Number); + +function corr(vals, bits) { + // dark (1) should be low: correlate values with -bit + const n = vals.length; + let mv = 0, mb = 0; + for (let i = 0; i < n; i++) { mv += vals[i]; mb += bits[i]; } + mv /= n; mb /= n; + let num = 0, dv = 0, db = 0; + for (let i = 0; i < n; i++) { const a = vals[i] - mv, b = -(bits[i] - mb); num += a * b; dv += a * a; db += b * b; } + return dv && db ? num / Math.sqrt(dv * db) : 0; +} + +// otsu split of one ring: threshold + how well it separates (between-class / total variance) +function split(vals) { + const s = [...vals].sort((a, b) => a - b), n = s.length; + const total = s.reduce((a, b) => a + b, 0), mean = total / n; + const tv = s.reduce((a, v) => a + (v - mean) ** 2, 0) || 1; + let best = { quality: -1, thr: mean }, left = 0; + for (let i = 1; i < n; i++) { + left += s[i - 1]; + const m0 = left / i, m1 = (total - left) / (n - i); + const q = (i * (n - i) * (m0 - m1) ** 2) / n / tv; + if (q > best.quality) best = { quality: q, thr: (s[i - 1] + s[i]) / 2 }; + } + return best; +} + +function solve(A, B) { + const n = B.length; + for (let i = 0; i < n; i++) { + let p = i; + for (let r = i + 1; r < n; r++) if (Math.abs(A[r][i]) > Math.abs(A[p][i])) p = r; + [A[i], A[p]] = [A[p], A[i]]; [B[i], B[p]] = [B[p], B[i]]; + if (Math.abs(A[i][i]) < 1e-12) return null; + for (let r = 0; r < n; r++) if (r !== i) { + const f = A[r][i] / A[i][i]; + for (let k = i; k < n; k++) A[r][k] -= f * A[i][k]; + B[r] -= f * B[i]; + } + } + return B.map((b, i) => b / A[i][i]); +} + +// the qr corners are a few px off and that error grows with the radius. the rings themselves are the +// better reference: find their dark bands along rays, fit one ellipse family, undo center/scale/shear +function refine(S) { + const rows = []; + const rays = 160, r0 = 0.72, r1 = 1.48, dr = 0.005; + for (let i = 0; i < rays; i++) { + const phi = (i / rays) * 2 * Math.PI, dx = Math.sin(phi), dy = -Math.cos(phi); + const prof = []; + for (let r = r0; r <= r1 + 1e-9; r += dr) prof.push(S(r * dx, r * dy)); + if (prof.some(Number.isNaN)) continue; + const sorted = [...prof].sort((a, b) => a - b); + const bg = sorted[Math.floor(sorted.length * 0.9)], lo = sorted[0]; + if (bg - lo < 15) continue; + RADII.forEach((R, k) => { + const c = Math.round((R - r0) / dr), w = Math.round(0.065 / dr); + let m = -1; + for (let j = Math.max(1, c - w); j <= Math.min(prof.length - 2, c + w); j++) if (m < 0 || prof[j] < prof[m]) m = j; + if (m <= 0 || m >= prof.length - 1) return; + // a ray through a gap between dashes has no real dip, skip it + if (bg - prof[m] < 0.4 * (bg - lo)) return; + const a = prof[m - 1], b = prof[m], cc = prof[m + 1], den = a - 2 * b + cc; + const off = den > 0 ? (0.5 * (a - cc)) / den : 0; + const r = r0 + (m + Math.max(-1, Math.min(1, off))) * dr; + const x = r * dx, y = r * dy; + rows.push([x * x, x * y, y * y, x, y, 1, R * R]); + }); + } + if (rows.length < 80) return null; + const N = Array.from({ length: 6 }, () => new Array(6).fill(0)), V = new Array(6).fill(0); + for (const row of rows) for (let i = 0; i < 6; i++) { V[i] += row[i] * row[6]; for (let j = 0; j < 6; j++) N[i][j] += row[i] * row[j]; } + const sol = solve(N, V); + if (!sol) return null; + const [a, b, c, d, e] = sol; + const det = a * c - (b * b) / 4; + if (!(a > 0 && det > 0)) return null; + // center: grad = 0 -> [2a b; b 2c] x = -[d e] + const x0 = (-d * 2 * c + e * b) / (4 * a * c - b * b), y0 = (-e * 2 * a + d * b) / (4 * a * c - b * b); + // cholesky of M = [[a, b/2], [b/2, c]] = A^T A, A upper triangular + const p = Math.sqrt(a), q = b / 2 / p, s = Math.sqrt(c - q * q); + if (!(s > 0) || Math.hypot(x0, y0) > 0.15 || Math.abs(Math.log(p * s)) > 0.25) return null; + // true ring space -> measured space: m = c0 + A^-1 t + const i11 = 1 / p, i12 = -q / (p * s), i22 = 1 / s; + return (x, y) => S(x0 + i11 * x + i12 * y, y0 + i22 * y); +} + +// returns { token, theta, score, scale } or null +export function decode(img, corners, opts = {}) { + const H = homography(corners); + if (!H) return null; + const S = (opts.refine !== false && refine(sampler(img, H))) || sampler(img, H); + const steps = opts.steps || 360, minScore = opts.minScore ?? 0.8; + let best = null; + for (const scale of opts.scales || [0.94, 0.97, 1.0, 1.03, 1.06]) { + const r0 = RADII[0] * scale, n0 = RING_SECTORS[0], step0 = (2 * Math.PI) / n0; + // full turn: the sync pattern has no rotational symmetry + for (let t = 0; t < steps; t++) { + const theta = (t / steps) * step0 * n0; + const vals = []; + for (let j = 0; j < n0; j++) vals.push(sector(S, r0, sectorAngle(theta, j, n0), step0)); + if (vals.some(Number.isNaN)) return null; + const c = corr(vals, SYNC_BITS); + if (!best || c > best.score) best = { score: c, theta, scale, vals }; + } + } + // weak sync means we're not looking at a ring code (or a bad frame): don't let rs "fix" noise + if (!best || best.score < minScore) return best ? { token: null, ...best } : null; + const dark = [], light = []; + best.vals.forEach((v, j) => (SYNC_BITS[j] ? dark : light).push(v)); + const md = dark.reduce((a, b) => a + b) / dark.length, ml = light.reduce((a, b) => a + b) / light.length; + if (ml - md < 12) return { token: null, ...best }; + const bits = []; + for (let k = 1; k < RING_SECTORS.length; k++) { + // corners come from the small center square, so outer rings drift under perspective: + // nudge scale and rotation per ring and keep the cleanest dark/light split + const n = RING_SECTORS[k], step = (2 * Math.PI) / n; + let pick = null; + for (const ds of [-0.03, -0.015, 0, 0.015, 0.03]) for (const dt of [-0.22, 0, 0.22]) { + const r = RADII[k] * best.scale * (1 + ds), vals = []; + for (let j = 0; j < n; j++) vals.push(sector(S, r, sectorAngle(best.theta + dt * step, j, n), step)); + if (vals.some(Number.isNaN)) continue; + const sp = split(vals); + if (!pick || sp.quality > pick.quality) pick = { ...sp, vals }; + } + if (!pick) return { token: null, ...best }; + for (const v of pick.vals) bits.push(v < pick.thr ? 1 : 0); + } + const msg = rsDecode(bytesFromBits(bits)); + return { ...best, bits: bits.join(""), token: msg ? tokenFromPayload(msg) : null }; +} diff --git a/static/ringlab/bench.html b/static/ringlab/bench.html new file mode 100644 index 0000000..1d9f34c --- /dev/null +++ b/static/ringlab/bench.html @@ -0,0 +1,113 @@ + + +Ring code bench + + + diff --git a/static/ringlab/lab.css b/static/ringlab/lab.css new file mode 100644 index 0000000..1384ba7 --- /dev/null +++ b/static/ringlab/lab.css @@ -0,0 +1,14 @@ +html, body { margin: 0; height: 100%; background: #f5f6fa; color: #1c2036; font: 16px/1.4 system-ui, -apple-system, sans-serif; } +#stage { position: fixed; inset: 0; width: 100%; height: 100%; } +.bar { position: fixed; left: 12px; bottom: 12px; display: flex; gap: 8px; flex-wrap: wrap; font-size: 13px; color: #8a8fa3; } +.bar a { color: #1c2036; background: #fff; border-radius: 99px; padding: 6px 12px; text-decoration: none; } +.bar a.on { background: #1c2036; color: #fff; } +.phone { padding: 16px; max-width: 520px; margin: 0 auto; } +.phone video { width: 100%; border-radius: 16px; background: #1c2036; aspect-ratio: 3/4; object-fit: cover; } +.big { font-size: 44px; font-weight: 800; letter-spacing: -.02em; margin: 6px 0; } +.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0; } +.grid div { background: #fff; border-radius: 12px; padding: 10px 12px; } +.grid b { display: block; font-size: 22px; } +button { font: 600 16px system-ui; padding: 12px 18px; border-radius: 99px; border: 0; background: #ffcc00; color: #1c2036; width: 100%; margin-top: 8px; } +button.ghost { background: #fff; } +.hist { font-size: 14px; color: #4a4f66; } diff --git a/static/ringlab/lab.json b/static/ringlab/lab.json new file mode 100644 index 0000000..43fa811 --- /dev/null +++ b/static/ringlab/lab.json @@ -0,0 +1 @@ +{"center": ["1111111001111001001111111", "1000001000001000001000001", "1011101001011101101011101", "1011101010110011101011101", "1011101010001000101011101", "1000001001100110101000001", "1111111010101010101111111", "0000000001000100100000000", "1100011101100100000011000", "0101010100101111000101100", "0000101011011001110000011", "1010100010100000100101000", "0001001111110111100001110", "1110110100101110101101000", "1001101000100110011001100", "1011110111111010011110111", "1000101101001100111110101", "0000000011001011100011110", "1111111011001110101010111", "1000001010010111100011111", "1011101000100010111110011", "1011101001010100010001111", "1011101001000000111011001", "1000001010110111101111100", "1111111010011000110010111"], "center_version": 2, "classic": [{"token": "1794850000.7viRXAr7KqFw", "modules": ["1111111001101001111010001111101111111", "1000001001000111110100101111001000001", "1011101010100100100111101010001011101", "1011101011010100010100101111001011101", "1011101010100000001100110110101011101", "1000001010011000101000101001001000001", "1111111010101010101010101010101111111", "0000000011000110100110000000100000000", "1011111000000001001011101011101111100", "0110000110010101110001001001110000010", "0000101001000000000010100011101000111", "1010010101010110101001110001000001001", "1110111101111110110010101110111110111", "1110100010001100011111010000100100010", "1011011100010101010011000001101111001", "0110100110000101111111110011001110011", "0101101111011011100101000110001110101", "0000000101110111001010110010110001110", "0001101001000111101100101011010000011", "1011100110101011000111010010110001001", "0111001001010101110100000101111010100", "1010010001111010101100010000110001010", "0110101011011111101010100101001111001", "0100010010100010000110010001101110010", "1000111000101001001111111101101110101", "1111110101110001100000000110100000000", "1000001001010000011010100111111101011", "1011100101100110101001001000101101000", "1001111011010100110000101111111110101", "0000000010010100110111010010100011000", "1111111000101111110011001110101010101", "1000001011100011111111101010100011011", "1011101010111101100101010011111110101", "1011101010100011001011110000011011101", "1011101010011101100100000101000001011", "1000001001000011001111011010110011001", "1111111011010001010100111111000010111"]}, {"token": "1794850001.V52UVeGOQIxN", "modules": ["1111111001010101001100111001001111111", "1000001010001110010101101110101000001", "1011101010101100000111101011101011101", "1011101010100110110111001100101011101", "1011101000100000001100110010101011101", "1000001000011001101001101110001000001", "1111111010101010101010101010101111111", "0000000010000011100111000001100000000", "1000001011100111001011101111111001110", "0100100101110100010010101010010011110", "0011101111000000000010101011001000111", "1010010110011111101000110001000000001", "1000001111001000000100001001001000001", "0111100011001101011110010001100101010", "1011011100110011010011000011101111001", "0101010100100010011100010000101101111", "0001101100010011100101001010101110101", "0100010010101100001011100001010000110", "0110011011100001011010011101000110101", "1011100101111010000110001010110000001", "0101001001000101110100010101111010100", "0001010011011101001111110011010010110", "1110101011111001101010100111001111001", "0001100010000111000111010010111111010", "1010111111110101111001000101011000011", "1000100010000010100001010101000001000", "1010001011001000011010100111011101011", "1000000110011101001010101011001110100", "1011111011010100110000111111111110101", "0000000010010001110110010111100010000", "1111111000011001000101111000101010011", "1000001001100100111110101011100010011", "1011101000110111100101011011111110101", "1011101001010000101000000001111000001", "1011101000010101100100000101000001011", "1000001000001010001110001011010010001", "1111111011100111100010011000110100001"]}, {"token": "1794850002.lac1LiayjrFZ", "modules": ["1111111000111011011001101110001111111", "1000001001110111001100010111001000001", "1011101001011100010110011010101011101", "1011101001001001001000110011001011101", "1011101000100111001011110001101011101", "1000001011110000100110100101001000001", "1111111010101010101010101010101111111", "0000000001111010011110111000000000000", "1001011011011110111010011110010100000", "1010000000110001101101010100001100001", "0111101010001111000101101100101111111", "0111010101001000100111110110001111000", "1111011110011101010001011100011101011", "0110010011110000100111101100011100101", "1110011101000110100010110000011110111", "0110110010011011100011101111010010000", "1010101000111100100010000001001001101", "1000010011100001000100101110111111111", "0001001110110100001111001000010011111", "0001010000011011111111101011101001110", "0100111100110100000101110100001011010", "0110100101100010110000001100101101001", "0101001101111010101101100110001000001", "1110100101101100001000011101101000011", "1010001010000100101100011100101101001", "0110000101111001011000111110011000111", "1000111110110001101011011110101100101", "0101110101100010110101000101110001011", "1100111000000011110111101001111111101", "0000000010011010111001011000100011001", "1111111000001000010000101011101011001", "1000001011011111000111010010100011100", "1011101001000000010100100110111111011", "1011101010101111010111101100000111110", "1011101001001010100011001010000110011", "1000001001000101000001010101111101000", "1111111010110010110111011101100001011"]}, {"token": "1794850003.A0Hw-RDe2OAP", "modules": ["1111111010011111111101001011001111111", "1000001000010000010011101000101000001", "1011101000001101111111010010001011101", "1011101011111101101100010111101011101", "1011101010100111001011110001101011101", "1000001010011011101111101100001000001", "1111111010101010101010101010101111111", "0000000010111110011110111010000000000", "1000101111101100001100101100111111001", "0110000011010000110110001101110111010", "1010011111110000111010010011110000000", "0001100011110110010001010001111001110", "1011111010111001110101101001111001111", "0001000100001111011000010111100011010", "0011111101101001101011111101010111110", "0010000110011111000111001001110110100", "0111111001011100100010000101001001101", "0111000100000000001101100110110110110", "1010011101100111010100011011101000100", "0001010000010011111111110011101001110", "0010001110000010110011000010111101100", "0101110110111101101011010111110110010", "0110101011100011010010011011110111110", "0000010010111100111110101001001110101", "1110101111001010001000111000101001101", "1110110100000100100111000011000111000", "0000111001101000100010011111000101100", "0000010011010110010001101001110101111", "1110111000010011110111111000111111101", "0000000011010111110000010101100010000", "1111111010010001001011110010101010010", "1000001000111101000111010010100011100", "1011101011011010100010011010111111101", "1011101001100110001100100101011100101", "1011101000111101011100110101111001100", "1000001001110011110111100011101011110", "1111111010010110010011101001000101111"]}, {"token": "1794850004.ZZqBKRCK_Z1I", "modules": ["1111111001011001011010001101101111111", "1000001001000110110100101111001000001", "1011101010111101000111101010001011101", "1011101011000101010100101111001011101", "1011101011100100001100110110101011101", "1000001011011110101000101101001000001", "1111111010101010101010101010101111111", "0000000010000100100110000010100000000", "1011111001100111001011101011001111100", "0010010000011101110001001011110000010", "0010101111010000000010100011101000111", "1011010001001110101001101001000001001", "1100111001101110110010111111111110111", "0110100011001100011111010000100100010", "0111001101110011010011000101101111001", "0010110110000011111111110001001110011", "1101001111111001100101001010101110101", "0100000111111111001010100000110001110", "0001101011010111101100100011010000011", "1011100100101011000111001010010001001", "0101001101010101110100000100111010100", "0010010001111010101100010000110001010", "0010101011011111101010100101011111001", "0100010010100100000110010011101110010", "1101011011000011001111110011101110101", "1001110101110001100000011101100000000", "1011001101010000011010101111011101011", "1011100111101110101001011000001101000", "1001111011010100110000111110111110101", "0000000010010100110111010110100011000", "1111111001101111110011001100101010101", "1000001010100011111111101010100011011", "1011101010011111100101010011111110101", "1011101010101001001011100010011011101", "1011101010001101100100000101000001011", "1000001001010011001111010010010011001", "1111111011010001010100111110000010111"]}, {"token": "1794850005.yYLSWFGiTiEP", "modules": ["1111111001010101001100111001001111111", "1000001010000111010101101110101000001", "1011101010110101000111101010001011101", "1011101010100111110111001100101011101", "1011101000100000001100110010101011101", "1000001001111011101001101110001000001", "1111111010101010101010101010101111111", "0000000010000111100111000011100000000", "1000001010100101001011101011111001110", "0111100111000110010010101010010011110", "0010101101000000000010101011001000111", "1001010100010111101000101000100000001", "1010001111001000000100011000001000001", "1111100010001001011110010001100101010", "0011001100010011010011000111101111001", "0101100100000000011100010010101101111", "1000101110010011100101000010001110101", "0110000000110100001011100000110000110", "0101011111100001011010010101000110101", "1001100101101010000110000010010000001", "0101001001010101110100000100111010100", "1001110010011101001111110011010010110", "0110001011111111101010100111011111001", "1001110011100101000111010010111111010", "1110011100111101111001001001011000011", "1110100110010000100001000100100001000", "1010001101011000011010100111111101011", "1010000110010101001010101010101110100", "1001111111000100110000111110111110101", "0000000011010101110110010111100010000", "1111111001111101000101111110101010011", "1000001000000110111110101011100010011", "1011101000010101100101011011111110101", "1011101001010000101000010001111000001", "1011101000010101100100001101000001011", "1000001000011010001110000011110010001", "1111111011110111100010011000110100001"]}, {"token": "1794850006.zeUFuLsOu5az", "modules": ["1111111001101111101100111000001111111", "1000001010000110110101101110001000001", "1011101010100101100111101010101011101", "1011101010110111110111001100101011101", "1011101001100000001100110010101011101", "1000001001011011101001101010001000001", "1111111010101010101010101010101111111", "0000000010100101100111000011100000000", "1000001011101111001011101011011001110", "0101100101111110010010101010010011110", "0001101001010000000010101011101000111", "1011010000001111101000111000100000001", "1000001111001000000100001001001000001", "1111100011001101011110010101100101010", "0111011100110011010011000011101111001", "1001000100100110011100010010101101111", "0101111110111101100101000110101110101", "0010000110101100001011110010110000110", "0100011101110001011010010101000110101", "1010100101111010000110001010110000001", "0111001001000101110100000101111010100", "1001010011011101001111110011010010110", "1110001011111111101010100101011111001", "0001010011000011000111010010100111010", "1010101110111101111001001101111000011", "1001110010000000100001010101100001000", "1000001101000000011010100111011101011", "1000000000011101001010100011101110100", "1011111011000100110000101110111110101", "0000000010010101110110010111100010000", "1111111001111111000101111000101010011", "1000001001000100111110101011100010011", "1011101001111001100101010111111110101", "1011101001000000101000011001111000001", "1011101000010101100100000101000001011", "1000001000001010001110000011110010001", "1111111011100111100010011000110100001"]}, {"token": "1794850007.ZCwqA3Obc4ip", "modules": ["1111111001110010111010001101101111111", "1000001001000110110100101111101000001", "1011101010101100000111101011001011101", "1011101011010101010100101111001011101", "1011101010100000001100110010101011101", "1000001011011100101000101001001000001", "1111111010101010101010101010101111111", "0000000010000010100110000010100000000", "1011111001100001001011101101101111100", "0110010100011111110001001010110000010", "0010101011011000000010101011101000111", "1001010001000110101001101000100001001", "1110111001101110110010101111111110111", "0110000010001100011111010000100100010", "0011101101110101010011000101101111001", "1110010111100001111111110011001110011", "0101111111111101100101000010101110101", "0011000001110111001010110000110001110", "0011101001011111101100100011110000011", "1011100100111011000111001010010001001", "0111001101000101110100010101111010100", "0010110001111110101100010100110001010", "1110111011011101101010100111011111001", "1000010011000000000110010011110110010", "1000001000001001001111111111001110101", "1001110111011001100000010101100000000", "1011001001010000011010101111011101011", "1010100101101110101001000000001101000", "1001111011000100110000101110111110101", "0000000010010000110111010010100011000", "1111111001001111110011001100101010101", "1000001010000011111111101000100011011", "1011101011111011100101010111111110101", "1011101010011011001011111000011011101", "1011101010001101100100000101000001011", "1000001001010011001111011010010011001", "1111111011010001010100101110000010111"]}, {"token": "1794850008.LnkNHDw2_sfI", "modules": ["1111111001010101001100111011001111111", "1000001010000111110101101110001000001", "1011101010101100100111101010101011101", "1011101010100110110111001101101011101", "1011101001100100001100110110101011101", "1000001001011011101001101000001000001", "1111111010101010101010101010101111111", "0000000011000001100111000001100000000", "1000001011000111001011101011011001110", "0010110001101100010010101010010011110", "0011101001001000000010100011101000111", "1011010010010111101000101001000000001", "1000001011001000000100001000001000001", "0111000011001001011110010001100101010", "0011111101110101010011000011101111001", "0101010100000100011100010010101101111", "1101111110010111100101001110001110101", "0000000110010100001011100011110000110", "0100011001110001011010011101100110101", "1001100101110010000110010011110000001", "0101001101010101110100000100111010100", "0001110010011001001111110011010010110", "0010101011011111101010100111000111001", "1101000010100001000111010010101111010", "1111111110111101111001001011111000011", "1110110000100010100001010111100001000", "1001001111000000011010100111011101011", "1000000100011101001010111010001110100", "1001111011010100110000101110111110101", "0000000011010001110110010011100010000", "1111111000011111000101111010101010011", "1000001000100110111110101001100010011", "1011101000110101100101010011111110101", "1011101001001000101000010001111000001", "1011101000011101100100000101000001011", "1000001000001010001110010010010010001", "1111111011100111100010001000110100001"]}, {"token": "1794850009.2dMzvvRlVhDG", "modules": ["1111111001000011011010001110101111111", "1000001001000110110100101111001000001", "1011101010101100100111101010001011101", "1011101011010101010100101110001011101", "1011101011100000001100110010101011101", "1000001011111000101000101111001000001", "1111111010101010101010101010101111111", "0000000011000010100110000000100000000", "1011111000001011001011101111101111100", "0110000100000111110001001010110000010", "0001101101001000000010100011101000111", "1010010001010110101001110001100001001", "1100111101111110110010101110111110111", "0110000011001000011111010000100100010", "0011001100110101010011000111101111001", "1110100110000001111111110001001110011", "0101001111110001100101001010001110101", "0000000101010101001010100011110001110", "0011101101000111101100101011010000011", "1010100100101011000111000011110001001", "0101001101000101110100000101111010100", "1010110001111110101100010000110001010", "1010111011011001101010100101000111001", "1000100011000010000110010001111110010", "1100111000101011001111111111001110101", "1101100101111001100000000100100000000", "1000001101011000011010101111011101011", "1011100111111110101001001000001101000", "1011111011000100110000111111111110101", "0000000010010000110111010110100011000", "1111111001001011110011001010101010101", "1000001010000011111111101000100011011", "1011101010111011100101011011111110101", "1011101010001001001011110010011011101", "1011101010010101100100001101000001011", "1000001001011011001111010010110011001", "1111111011000001010100101111000010111"]}, {"token": "1794850010.WhVPSBGH5axl", "modules": ["1111111001100110001100111001001111111", "1000001010010111010101101110001000001", "1011101010110101000111101011001011101", "1011101010110110110111001100101011101", "1011101001100000001100110010101011101", "1000001000111001101001101100001000001", "1111111010101010101010101010101111111", "0000000010000011100111000011100000000", "1000001010101101001011101011111001110", "0011100001011100010010101010010011110", "0001101111011000000010101011001000111", "1011010110011111101000100001100000001", "1010001011011000000100001001001000001", "1111000011001101011110010001100101010", "1111011100110101010011000101101111001", "1101010100100000011100010010111101111", "1101111110011001100101001010101110101", "0000010100100110001011110000110000110", "0111011011111001011010011101100110101", "1010100011100010000110001010010000001", "0101001001010101110100010100111010100", "0001010010011101001111110011010010110", "1010011010011011101010100111001111001", "1101110011000001000111010010101111010", "1110011110111011111001000101111000011", "1010110110001010100001010101100001000", "1001001111011000011010100111111101011", "1010000100000101001010101011001110100", "1011111011010100110000101111111110101", "0000000010010101110110010111100010000", "1111111000111101000101111110101010011", "1000001000100000111110101001100010011", "1011101001010111100101011101111110101", "1011101001011000101000010001111000001", "1011101000011101100100000101000001011", "1000001000011010001110000011010010001", "1111111011100111100010011000110100001"]}, {"token": "1794850011.BtkS9jRLlPI1", "modules": ["1111111001010101101100111000101111111", "1000001010000111010101101110101000001", "1011101010101100000111101010001011101", "1011101010110111110111001100101011101", "1011101001100000001100110110101011101", "1000001000111101101001101000001000001", "1111111010101010101010101010101111111", "0000000011100001100111000011100000000", "1000001010000001001011101111111001110", "0010100101110110010010101010010011110", "0000101101010000000010100011101000111", "1010010100001111101000101001000000001", "1000001111011000000100011000001000001", "0111100011001101011110010101100101010", "0011101100110011010011000101101111001", "0001010100100000011100010010111101111", "0100001110011001100101000010001110101", "0010000110111100001011111011110000110", "0110011111100001011010010101100110101", "1010100111100010000110001010110000001", "0101001101010101110100010101111010100", "1001010011011101001111110011010010110", "1010101010111011101010100101001111001", "1001100011000101000111010000111111010", "0010001100111001111001001101011000011", "1001110000100010100001000101100001000", "1001001011000000011010101111011101011", "1010000100011101001010101011101110100", "1011111011000100110000101111111110101", "0000000010010001110110010111100010000", "1111111000111001000101111100101010011", "1000001001100110111110101001100010011", "1011101001011101100101010111111110101", "1011101001010010101000000011111000001", "1011101000010101100100001101000001011", "1000001000000010001110000010010010001", "1111111011100111100010001000110100001"]}, {"token": "1794850012.5SxVj_sMGjQW", "modules": ["1111111000111011011001101111001111111", "1000001001101110001100010111101000001", "1011101001011100010110011011001011101", "1011101001001000001000110011001011101", "1011101000100111001011110001101011101", "1000001010110100100110100011001000001", "1111111010101010101010101010101111111", "0000000001111010011110111000000000000", "1001011010011010111010011010010100000", "1011000110101001101101010111101100001", "0100101100011111000101100100001111111", "0111010101010000100111111111001111000", "1101011110011101010001001101011101011", "1110110010110100100111101100011100101", "1110001100000110100010110110011110111", "0010010010011001100011101111000010000", "0111111010111010100010000001101001101", "1000010101000011000100101100111111111", "0010001100110100001111000000010011111", "0010010110010011111111110010101001110", "0110111000110100000101110100001011010", "1110000101100110110000001100101101001", "0101101101011100101101100010001000001", "0110100100101100001000011101101000011", "0111001010100000101100010000001101001", "0010000011010001011000111101011000111", "1011111000101001101011011110001100101", "0110110011100010110101000101110001011", "1100111100010011110111111000111111101", "0000000011011110111001011000100011001", "1111111001101110010000101001101011001", "1000001010011001000111010010100011100", "1011101000001000010100101010111111011", "1011101010010101010111101100000111110", "1011101001001010100011000010000110011", "1000001001010101000001011100111101000", "1111111010110010110111001100100001011"]}, {"token": "1794850013.KUcBZW86xKW9", "modules": ["1111111001010011011010001111101111111", "1000001001001110110100101111001000001", "1011101010111100000111101010001011101", "1011101011000101010100101111001011101", "1011101011100100001100110110101011101", "1000001010011010101000101101001000001", "1111111010101010101010101010101111111", "0000000011000000100110000000100000000", "1011111001100111001011101011001111100", "0110010000110111110001001011110000010", "0010101011010000000010100011101000111", "1011010001000110101001101000000001001", "1100111101101110110010111111111110111", "0110100010001000011111010000100100010", "0111111101110101010011000111101111001", "1110100111100101111111110011011110011", "0100101100111011100101000100001110101", "0001010001011101001010111010110001110", "0011101001001111101100100011110000011", "1000100110111011000111010011110001001", "0101001001010101110100000101111010100", "1010110001111110101100010100110001010", "1110001011111011101010100001001111001", "1000110010100000000110010001110110010", "0001011000100111001111110101101110101", "1100100001011001100000000111100000000", "1000001011010000011010100111111101011", "1011100101101110101001011000001101000", "1011111011010100110000111110111110101", "0000000010010000110111010010100011000", "1111111000001111110011001110101010101", "1000001011000011111111101000100011011", "1011101011011101100101011111111110101", "1011101010101011001011100010011011101", "1011101010000101100100001101000001011", "1000001001001011001111001011010011001", "1111111011010001010100111110000010111"]}, {"token": "1794850014.hID3nImIcRNM", "modules": ["1111111000100010011001101111001111111", "1000001001101110101100010111001000001", "1011101001000100110110011011101011101", "1011101001001000001000110011001011101", "1011101001100111001011110001101011101", "1000001011010000100110100001001000001", "1111111010101010101010101010101111111", "0000000001011010011110111000000000000", "1001011010010100111010011010010100000", "1001000010011001101101010100001100001", "0101101110000111000101100100001111111", "0100010011001000100111101111101111000", "1101011110011101010001011100011101011", "1110010010110000100111101100011100101", "0010011101100110100010110000011110111", "0010000011011101100011101111000010000", "1010011010110010100010001001001001101", "1010010111001001000100101111111111111", "0010001110100100001111001000010011111", "0000010000010011111111101011101001110", "0110111000100100000101100101001011010", "1110100100100110110000001000101101001", "1101111100011110101101100100011000001", "0010000100001100001000011101100000011", "1011011010101000101100011000101101001", "0101000011011011011000111101011000111", "1010111100101001101011011110101100101", "0101110101101010110101000101010001011", "1100111100000011110111101001111111101", "0000000011011010111001011000100011001", "1111111001001010010000101011101011001", "1000001010111011000111010010100011100", "1011101001001010010100100110111111011", "1011101010010101010111111100000111110", "1011101001000010100011000010000110011", "1000001001000101000001010101111101000", "1111111010100010110111001101100001011"]}, {"token": "1794850015.-6H-GDvf6dv_", "modules": ["1111111001100111101100111011001111111", "1000001010010110110101101110101000001", "1011101010101100100111101011101011101", "1011101010110110110111001101101011101", "1011101001100000001100110010101011101", "1000001001111101101001101110001000001", "1111111010101010101010101010101111111", "0000000010100101100111000011100000000", "1000001011100001001011101011011001110", "0110110001010100010010101011110011110", "0010101101010000000010100011001000111", "1011010010010111101000110000000000001", "1000001111001000000100001000001000001", "0111000010001001011110010001100101010", "1111101100110011010011000011101111001", "1001100101000000011100010010111101111", "1101101110010101100101000110001110101", "0110010110101110001011100010110000110", "0100011101110001011010011101100110101", "1000100011101010000110010011110000001", "0101001101010101110100000101111010100", "0001010011011101001111110011010010110", "1010001010011011101010100111011111001", "1101110011000011000111010000111111010", "1110011110110111111001000001011000011", "1010100110011000100001010101000001000", "1000001111001000011010101111111101011", "1011000010000101001010100010001110100", "1001111011010100110000101110111110101", "0000000011010101110110010011100010000", "1111111001111101000101111000101010011", "1000001000000100111110101001100010011", "1011101001110101100101011101111110101", "1011101001110000101000010001111000001", "1011101000000101100100001101000001011", "1000001000011010001110010010110010001", "1111111011100111100010011001110100001"]}, {"token": "1794850016.fEKG00IKYEXK", "modules": ["1111111001000111001100111000101111111", "1000001010011110110101101110101000001", "1011101010110101000111101010101011101", "1011101010100110110111001100101011101", "1011101000100000001100110010101011101", "1000001000111001101001101000001000001", "1111111010101010101010101010101111111", "0000000010000011100111000001100000000", "1000001011100011001011101101011001110", "0100100111100100010010101000010011110", "0010101111000000000010100011101000111", "1010010110001111101000111001000000001", "1010001011011000000100001000001000001", "1111100010001001011110010001100101010", "1011101101010011010011000001101111001", "1101100100000000011100010010111101111", "1001011100110001100101001010001110101", "0110000010010100001011100000110000110", "0100011101101001011010011101000110101", "1001100101111010000110001010110000001", "0101001001010101110100010101111010100", "0001010011011001001111110111010010110", "0010011011111111101010100001011111001", "1101000011100111000111010010100111010", "0110001100111001111001000101111000011", "1011110100111010100001000100100001000", "1000001001001000011010100111011101011", "1001000010000101001010100011001110100", "1011111111010100110000101111111110101", "0000000010010001110110010111100010000", "1111111001011101000101111010101010011", "1000001001000000111110101011100010011", "1011101000111011100101011011111110101", "1011101001110000101000000001111000001", "1011101000010101100100000101000001011", "1000001000011010001110001010110010001", "1111111011110111100010001000110100001"]}, {"token": "1794850017.IDt88DJqKpB7", "modules": ["1111111000011010111001101101101111111", "1000001011001011001000110011001000001", "1011101001011111100100001000101011101", "1011101001001000001000110010001011101", "1011101011000111101111010101001011101", "1000001001000100110100110101001000001", "1111111010101010101010101010101111111", "0000000000111010111010011100100000000", "1010101000101000101000001000000010010", "1010000110100011101101010100001100001", "0001001110110011100001000000101011011", "0101000101011010110101101101111101010", "1111011110001101010001001100011101011", "0010010111010100000011001100111000001", "0000101110010000110000100000001100101", "0010000010111111100011101101000010000", "1010101100110100000110100001001101001", "1110010101111001010110100100101101101", "0000001100110100001111001000110011111", "0100110100110111011011000111101101010", "0100101010100110010111100110011001000", "1110100100100110110000001000101101001", "0101111000011100001001000110111100101", "1000010110111000011010001101101010001", "0010001000101010101100011100101101001", "0000100011000111111100011011111100011", "1011101110110011111001001100011110111", "0111110101101010110101010101010001011", "1000011100110111010011001101111111001", "0000000011001100101011001110100011011", "1111111000001100010000101011101011001", "1000001001011111100011110110100011000", "1011101011010010000110110000111111001", "1011101000111101010111101100000111110", "1011101011101110000111100110100010111", "1000001001001111010011000111001111010", "1111111010110010110111011101100001011"]}, {"token": "1794850018.5Tx9RNsd5QYc", "modules": ["1111111001010100101100111001001111111", "1000001010011110010101101110101000001", "1011101010110101000111101011001011101", "1011101010100111110111001101101011101", "1011101001100000001100110010101011101", "1000001001111001101001101100001000001", "1111111010101010101010101010101111111", "0000000011000101100111000001100000000", "1000001010001101001011101011111001110", "0011100001110110010010101011110011110", "0010101011001000000010100011001000111", "1010010010011111101000111000000000001", "1000001011001000000100011000001000001", "0111100011001101011110010101100101010", "1111001101110111010011000111101111001", "1101000100100110011100010010111101111", "1101001111011001100101001110101110101", "0101000000111110001011110011110000110", "0111011111110001011010010101100110101", "1001100011110010000110001010110000001", "0111001001010101110100010101111010100", "0001110010011001001111110011010010110", "1110001011011101101010100101000111001", "1101000011100011000111010010101111010", "0111111101011101111001000001011000011", "1101110110001010100001000100100001000", "1000001111011000011010100111111101011", "1011000110011101001010101010001110100", "1011111111000100110000101111111110101", "0000000011010101110110010011100010000", "1111111001111101000101111100101010011", "1000001000100110111110101001100010011", "1011101001110011100101010101111110101", "1011101001001000101000000001111000001", "1011101000010101100100000101000001011", "1000001000011010001110000011110010001", "1111111011110111100010011001110100001"]}, {"token": "1794850019.NOGPJKvND7Zv", "modules": ["1111111001010100101100111011001111111", "1000001010011111110101101110001000001", "1011101010110100000111101011001011101", "1011101010100110110111001100101011101", "1011101001100100001100110110101011101", "1000001000011111101001101100001000001", "1111111010101010101010101010101111111", "0000000011100101100111000001100000000", "1000001011001011001011101011111001110", "0010100011110100010010101010010011110", "0011101011011000000010101011101000111", "1001010110010111101000110001100000001", "1010001111011000000100011001001000001", "0111100011001101011110010101100101010", "0011111100010111010011000101101111001", "1001010100100000011100010000111101111", "0100101101010001100101000110001110101", "0101010010101110001011110010110000110", "0110011001100001011010011101000110101", "1011100001101010000110011011110000001", "0111001101000101110100010100111010100", "1001110011011101001111110011010010110", "1110001010011001101010100111000111001", "0001010011000101000111010000111111010", "0110001111110111111001000101111000011", "1100100100000010100001000100100001000", "1001001111010000011010100111011101011", "1000000110010101001010110011001110100", "1001111111000100110000101110111110101", "0000000011010001110110010111100010000", "1111111001011011000101111000101010011", "1000001001100000111110101001100010011", "1011101001110011100101010011111110101", "1011101001001010101000011011111000001", "1011101000001101100100001101000001011", "1000001000011010001110000010010010001", "1111111011110111100010011000110100001"]}, {"token": "1794850020.KeAgZB4gCN1H", "modules": ["1111111010100111111101001000101111111", "1000001000001000010011101000101000001", "1011101000000100111111010010001011101", "1011101011101100101100010111101011101", "1011101010100011001011110001101011101", "1000001011011101101111101010001000001", "1111111010101010101010101010101111111", "0000000010011100011110111000000000000", "1000101110101000001100101100011111001", "0010000011000010110110001111110111010", "1001011011100000111010010011010000000", "0011100111111110010001010001111001110", "1011111010101001110101111000111001111", "0001100100001111011000010111100011010", "1011111101001011101011111101010111110", "0010000111011101000111001001111110100", "0111011001011110100010001011001001101", "0101010010010000001101100100110110110", "1011011011100111010100011011001000100", "0010010110010011111111110011001001110", "0000001010010010110011000010111101100", "0101110110111101101011010111110110010", "1110001011000101010010011011110111110", "0100010011111000111110101001010110101", "1011111101101100001000110000001001101", "1110110000111110100111011011100111000", "0010111001111000100010010111000101100", "0011010011011110010001101000110101111", "1100111100000011110111111001111111101", "0000000010010011110000010101100010000", "1111111011010001001011110110101010010", "1000001000111011000111010010100011100", "1011101010110100100010011100111111101", "1011101001011110001100100111011100101", "1011101000100101011100111101111001100", "1000001001111011110111100011101011110", "1111111010010110010011101001000101111"]}, {"token": "1794850021.g8ocHjQmEXtz", "modules": ["1111111001001010111010001101101111111", "1000001001001110010100101111101000001", "1011101010100101000111101010001011101", "1011101011000101010100101111001011101", "1011101011100100001100110110101011101", "1000001010011110101000101001001000001", "1111111010101010101010101010101111111", "0000000011000010100110000000100000000", "1011111001101101001011101111001111100", "0010000000101101110001001000110000010", "0010101001001000000010101011101000111", "1010010111000110101001111000100001001", "1100111001111110110010111110111110111", "1110100011001100011111010100100100010", "0011101100110101010011000101101111001", "1010010110000101111111110001000110011", "1100111101011101100101000010001110101", "0001010101001111001010110010110001110", "0010101011011111101100101011010000011", "1010100100101011000111000011010001001", "0101001101010101110100000100111010100", "1010010001111010101100010000110001010", "0110001011111101101010100001001111001", "1100100010000000000110010011111110010", "0101101011001101001111110111101110101", "1101100011011001100000010100000000000", "1000001111000000011010101111111101011", "1011100101111110101001001000101101000", "1001111111000100110000111111111110101", "0000000011010000110111010110100011000", "1111111001001011110011001010101010101", "1000001010000011111111101010100011011", "1011101010010011100101010011111110101", "1011101010111001001011100000011011101", "1011101010010101100100000101000001011", "1000001001011011001111000011110011001", "1111111011000001010100101110000010111"]}, {"token": "1794850022.AmMDo4f1p-sz", "modules": ["1111111001111010011010001100101111111", "1000001001010111110100101111001000001", "1011101010101100000111101011101011101", "1011101011010101010100101111001011101", "1011101010100000001100110110101011101", "1000001010011100101000101111001000001", "1111111010101010101010101010101111111", "0000000010100110100110000010100000000", "1011111000100011001011101101001111100", "0011000010110111110001001011110000010", "0001101111010000000010101011101000111", "1001010001010110101001111001100001001", "1100111001101110110010111110111110111", "0110100010001000011111010000100100010", "0011011101010011010011000011101111001", "0110000111100011111111110001000110011", "0001101111110011100101000110001110101", "0001000001000101001010110001110001110", "0010101011001111101100100011110000011", "1000100010100011000111011011110001001", "0101001001010101110100000100111010100", "0010110001111010101100010000110001010", "1110111010011111101010100111001111001", "1100000011100000000110010001100110010", "1000001000000001001111110101001110101", "1011100101011011100000010110100000000", "1010001011011000011010100111111101011", "1001100011111110101001000001001101000", "1011111011010100110000111111111110101", "0000000011010100110111010010100011000", "1111111001101111110011001000101010101", "1000001010000001111111101010100011011", "1011101010010001100101011111111110101", "1011101010110011001011111010011011101", "1011101010011101100100001101000001011", "1000001001001011001111001011010011001", "1111111011000001010100101110000010111"]}, {"token": "1794850023.3aKjm7764xXq", "modules": ["1111111001011001111010001100101111111", "1000001001000111010100101111001000001", "1011101010111101100111101010001011101", "1011101011000101010100101110001011101", "1011101010100100001100110110101011101", "1000001010111110101000101011001000001", "1111111010101010101010101010101111111", "0000000010100000100110000010100000000", "1011111000000101001011101101001111100", "0111010010000111110001001010110000010", "0001101101001000000010100011101000111", "1000010111001110101001101000000001001", "1110111101111110110010101110111110111", "0110000010001100011111010000100100010", "0011001101110111010011000111101111001", "1110010110100011111111110011000110011", "1001101111011011100101000100001110101", "0110000111000111001010110011110001110", "0011101101001111101100101011110000011", "1010100110111011000111001011010001001", "0101001001000101110100010101111010100", "1010010001111110101100010000110001010", "1110011011111011101010100111001111001", "1000100010000000000110010011110110010", "1101011011101001001111110101001110101", "1000100111010011100000000110100000000", "1000001101000000011010101111111101011", "1011100001100110101001001000001101000", "1001111111000100110000111111111110101", "0000000011010000110111010010100011000", "1111111000101001110011001110101010101", "1000001011000001111111101000100011011", "1011101011111011100101010101111110101", "1011101010010011001011110010011011101", "1011101010011101100100001101000001011", "1000001001010011001111000010110011001", "1111111011010001010100101111000010111"]}, {"token": "1794850024.zHpLVoDYbuRK", "modules": ["1111111000110010011001101100001111111", "1000001001101110001100010111101000001", "1011101001010100010110011010001011101", "1011101001001000001000110010001011101", "1011101001100111001011110101101011101", "1000001011010010100110100001001000001", "1111111010101010101010101010101111111", "0000000000011110011110111000000000000", "1001011010010000111010011110110100000", "1110000010001011101101010101101100001", "0100101010011111000101100100001111111", "0101010101001000100111110111001111000", "1101011110011101010001011100011101011", "1110010010110000100111101100011100101", "1010111100100110100010110110011110111", "0010100011011111100011101111011010000", "1011111010111010100010001101101001101", "1000010011000001000100101110111111111", "0011001010111100001111001000110011111", "0010010100010011111111100011101001110", "0100111100100100000101110101001011010", "1110000100100110110000001100101101001", "1101011100011000101101100100011000001", "0110100100101100001000011111100000011", "0011001010001010101100010000101101001", "0111010001110001011000111111011000111", "1010111110111001101011010110101100101", "0100110101111010110101011100010001011", "1100111100000011110111101001111111101", "0000000011011010111001011000100011001", "1111111001101110010000101011101011001", "1000001011011001000111010010100011100", "1011101001001000010100100110111111011", "1011101010101101010111101100000111110", "1011101001001010100011001010000110011", "1000001001011101000001010100111101000", "1111111010110010110111001101100001011"]}, {"token": "1794850025.r5xbqJC18dpM", "modules": ["1111111001101001011010001110101111111", "1000001001010111010100101111001000001", "1011101010111100000111101010001011101", "1011101011010100010100101111001011101", "1011101010100100001100110010101011101", "1000001010011000101000101001001000001", "1111111010101010101010101010101111111", "0000000010100100100110000010100000000", "1011111000000111001011101011001111100", "0011010010101111110001001000110000010", "0010101101010000000010100011001000111", "1000010001010110101001100001000001001", "1110111101111110110010111110111110111", "1110100010001000011111010100100100010", "1011111101110011010011000101101111001", "1110000111000011111111110001000110011", "1100101110010001100101001010101110101", "0011010011110111001010100000110001110", "0010101001000111101100101011110000011", "1010100010111011000111001011110001001", "0101001101010101110100000101111010100", "0010010001111110101100010000110001010", "0010111010111011101010100101011111001", "0000000011100100000110010011111110010", "1101001001100011001111110101101110101", "1100100101011001100000010110000000000", "1010001011001000011010101111011101011", "1011100001101110101001000000001101000", "1001111011000100110000101111111110101", "0000000011010100110111010010100011000", "1111111000101101110011001000101010101", "1000001010000101111111101010100011011", "1011101010010011100101011101111110101", "1011101010111001001011110010011011101", "1011101010010101100100001101000001011", "1000001001001011001111001010110011001", "1111111011000001010100111110000010111"]}, {"token": "1794850026.7AkaJcBoFLTq", "modules": ["1111111001111010111010001101101111111", "1000001001000110110100101111101000001", "1011101010101101000111101011001011101", "1011101011010100010100101111001011101", "1011101010100000001100110110101011101", "1000001011011100101000101101001000001", "1111111010101010101010101010101111111", "0000000010100100100110000000100000000", "1011111000101101001011101111001111100", "0010000100111101110001001000110000010", "0000101011011000000010100011101000111", "1010010011001110101001101000000001001", "1110111101111110110010101110111110111", "0110000010001000011111010000100100010", "0111001101110111010011000101101111001", "0110000111000101111111110011000110011", "1000001111010001100101000010001110101", "0010000111001111001010110000110001110", "0011101001010111101100101011110000011", "1010100100111011000111000011010001001", "0111001001010101110100000101111010100", "1010010000111110101100010000110001010", "1010101011111011101010100101011111001", "1000000011100010000110010001100110010", "1001111010101011001111110111001110101", "1110100111000011100000000101100000000", "1001001111010000011010101111111101011", "1000100101111110101001000000101101000", "1011111111000100110000111111111110101", "0000000010010100110111010110100011000", "1111111000001111110011001110101010101", "1000001011000001111111101010100011011", "1011101010111101100101011011111110101", "1011101010011011001011100000011011101", "1011101010011101100100001101000001011", "1000001001010011001111010010110011001", "1111111011000001010100101111000010111"]}, {"token": "1794850027.UMzyxRttiZpx", "modules": ["1111111001000100001100111000001111111", "1000001010011110010101101110101000001", "1011101010101100000111101011001011101", "1011101010110111110111001101101011101", "1011101000100000001100110110101011101", "1000001001011011101001101000001000001", "1111111010101010101010101010101111111", "0000000010100111100111000001100000000", "1000001010101011001011101011111001110", "0110100001110100010010101001010011110", "0010101101010000000010101011001000111", "1000010110011111101000101001000000001", "1010001111011000000100001000001000001", "1111000011001101011110010001100101010", "0011011100110101010011000101101111001", "1001000101100010011100010010100101111", "1100101110110001100101000110101110101", "0000010000011110001011110011110000110", "0111011001101001011010011101000110101", "1011100111101010000110001010110000001", "0111001001010101110100000100111010100", "1001010011011101001111110011010010110", "1010011010111001101010100011011111001", "0101100011000101000111010000110111010", "0111101101011101111001000001111000011", "1101100100011010100001010110100001000", "1001001011000000011010101111111101011", "1011000100010101001010111010001110100", "1011111111010100110000111111111110101", "0000000011010101110110010011100010000", "1111111001111101000101111100101010011", "1000001001000010111110101001100010011", "1011101001011011100101010111111110101", "1011101001101010101000000011111000001", "1011101000011101100100000101000001011", "1000001000011010001110001011010010001", "1111111011110111100010001000110100001"]}, {"token": "1794850028.XWVBnCj92Lik", "modules": ["1111111001100100101100111010001111111", "1000001010011110110101101110001000001", "1011101010111101000111101010001011101", "1011101010100111110111001100101011101", "1011101000100100001100110110101011101", "1000001000111101101001101110001000001", "1111111010101010101010101010101111111", "0000000010100111100111000001100000000", "1000001010001001001011101011011001110", "0101110011011110010010101010010011110", "0011101001001000000010100011001000111", "1010010010000111101000111001100000001", "1000001011011000000100001001001000001", "1111100011001101011110010001100101010", "0111001100010011010011000101101111001", "1001000101000000011100010000100101111", "1101011111110011100101001110101110101", "0011010000001100001011110000110000110", "0110011101101001011010010101000110101", "1010100001111010000110001011110000001", "0101001001010101110100010101111010100", "1001010011011101001111110111010010110", "1110111010011111101010100101000111001", "1001100010000101000111010000101111010", "0011101101111001111001001011011000011", "1110110000100010100001010110100001000", "1001001001000000011010101111011101011", "1010000100000101001010100010101110100", "1001111011000100110000111110111110101", "0000000010010101110110010111100010000", "1111111001011111000101111110101010011", "1000001000100010111110101011100010011", "1011101001011011100101011101111110101", "1011101001110000101000000001111000001", "1011101000010101100100001101000001011", "1000001000001010001110011011010010001", "1111111011100111100010011000110100001"]}, {"token": "1794850029.S59dWqSsGjsD", "modules": ["1111111001100011011010001111101111111", "1000001001011110110100101111001000001", "1011101010111100000111101011101011101", "1011101011010100010100101111001011101", "1011101010100100001100110010101011101", "1000001010111110101000101111001000001", "1111111010101010101010101010101111111", "0000000011100000100110000010100000000", "1011111001100011001011101111001111100", "0100000000011101110001001010110000010", "0011101111011000000010101011101000111", "1000010101010110101001100001000001001", "1100111001101110110010101110111110111", "0110000010001000011111010000100100010", "1111111101010111010011000001101111001", "1110110110000101111111110011000110011", "1100111110111111100101001010101110101", "0000010001110111001010100010010001110", "0010101101001111101100100011110000011", "1000100110111011000111011011110001001", "0111001001010101110100000101111010100", "0010110000111010101100010000110001010", "1110101010011111101010100101000111001", "0000100010100000000110010011111110010", "0000101011000011001111110111101110101", "1000100111011001100000010110000000000", "1011001101010000011010101111111101011", "1011100101100110101001011000001101000", "1001111111010100110000111111111110101", "0000000010010000110111010010100011000", "1111111000001101110011001100101010101", "1000001010100001111111101010100011011", "1011101011011101100101011011111110101", "1011101010011001001011110000011011101", "1011101010000101100100000101000001011", "1000001001011011001111010010010011001", "1111111011010001010100101110000010111"]}, {"token": "1794850030.XM6RraR2bZ2B", "modules": ["1111111001101001111010001110101111111", "1000001001001110110100101111001000001", "1011101010101100000111101010001011101", "1011101011000100010100101111001011101", "1011101011100000001100110010101011101", "1000001011011100101000101101001000001", "1111111010101010101010101010101111111", "0000000010100110100110000000100000000", "1011111000001001001011101111101111100", "0011000010101111110001001001110000010", "0011101101011000000010101011001000111", "1011010001001110101001111000100001001", "1110111001111110110010101111111110111", "1110100011001000011111010000100100010", "0011011100110001010011000001101111001", "0010110110000101111111110011010110011", "1000111111011111100101001010101110101", "0111010011011101001010100010010001110", "0011101001010111101100101011110000011", "1000100010111011000111011011110001001", "0111001101010101110100000100111010100", "0010010000111010101100010000110001010", "0010011011011111101010100101001111001", "1000110011100100000110010001101110010", "0101101011101001001111110101001110101", "1101110001001011100000011111100000000", "1001001001011000011010101111011101011", "1010100111100110101001011001001101000", "1001111011010100110000111110111110101", "0000000010010100110111010010100011000", "1111111000001011110011001100101010101", "1000001010100101111111101000100011011", "1011101011011101100101010111111110101", "1011101010110001001011100000011011101", "1011101010000101100100001101000001011", "1000001001010011001111011010010011001", "1111111011010001010100101110000010111"]}, {"token": "1794850031.Gt_vHvz73YMV", "modules": ["1111111001000100001100111011001111111", "1000001010010110110101101110001000001", "1011101010110100000111101010101011101", "1011101010100111110111001100101011101", "1011101000100100001100110110101011101", "1000001001111011101001101000001000001", "1111111010101010101010101010101111111", "0000000011000101100111000001100000000", "1000001011001001001011101111111001110", "0010110101011100010010101001010011110", "0011101111010000000010101011101000111", "1011010100000111101000110001100000001", "1000001011001000000100011000001000001", "0111000010001001011110010001100101010", "0111101101110001010011000111101111001", "0101100101000100011100010010110101111", "0100011110110101100101000110101110101", "0010000100001100001011100010110000110", "0111011001111001011010010101100110101", "1001100101101010000110000010110000001", "0101001001000101110100010101111010100", "0001110010011001001111110111010010110", "1010011011111011101010100101001111001", "0001000011100111000111010000111111010", "0011111110010001111001001011011000011", "1100100000011010100001000111100001000", "1001001111011000011010100111111101011", "1011000010010101001010101011001110100", "1011111011010100110000111111111110101", "0000000010010001110110010011100010000", "1111111000111111000101111000101010011", "1000001000000110111110101011100010011", "1011101000010101100101010101111110101", "1011101001111000101000000001111000001", "1011101000011101100100000101000001011", "1000001000011010001110011010010010001", "1111111011100111100010011000110100001"]}, {"token": "1794850032.Kthf8XBqcWDH", "modules": ["1111111010100110111101001001001111111", "1000001000001001110011101000001000001", "1011101000000101011111010010001011101", "1011101011111100101100010111101011101", "1011101011100011001011110001101011101", "1000001011111011101111101110001000001", "1111111010101010101010101010101111111", "0000000010011100011110111000000000000", "1000101111000110001100101100011111001", "0011000101000010110110001101110111010", "1000011111111000111010010011110000000", "0011100001101110010001010001111001110", "1011111110111001110101111001111001111", "1001100100001011011000010011100011010", "0111111101001101101011111001010111110", "1110110111111001000111001001101110100", "0111101001011110100010001101001001101", "0111000000111010001101100111110110110", "1010011101100111010100010011101000100", "0001010010011011111111111011001001110", "0010001010000010110011000010111101100", "0101010110111101101011010111110110010", "1110101010100001010010011101110111110", "0000110011111010111110101001011110101", "1010111101100110001000111000101001101", "1011100100001100100111000001100111000", "0000111001100000100010011111000101100", "0011010011011110010001101000110101111", "1110111100010011110111101001111111101", "0000000010010011110000010101100010000", "1111111010110111001011110000101010010", "1000001001111111000111010010100011100", "1011101010011100100010010000111111101", "1011101001000100001100100111011100101", "1011101000101101011100111101111001100", "1000001001111011110111100011101011110", "1111111010010110010011101001000101111"]}, {"token": "1794850033.ZrkQqmyEJzf6", "modules": ["1111111001111000011010001110101111111", "1000001001010111010100101111101000001", "1011101010111101100111101011001011101", "1011101011000101010100101111001011101", "1011101011100100001100110010101011101", "1000001011011010101000101001001000001", "1111111010101010101010101010101111111", "0000000011100000100110000010100000000", "1011111001101111001011101111101111100", "0111000100000101110001001001110000010", "0001101111010000000010101011101000111", "1011010111010110101001110000000001001", "1110111001111110110010101110111110111", "1110100011001100011111010100100100010", "0111101101110111010011000011101111001", "1010100110100111111111110011010110011", "1100101101011101100101000110001110101", "0101000101000101001010111010110001110", "0010101101000111101100101011010000011", "1001100110111011000111010010010001001", "0111001001010101110100000101111010100", "1010110000111110101100010100110001010", "1110111011111011101010100001001111001", "1000010011100110000110010011110110010", "1001001000101111001111111011101110101", "1011100001001011100000010100100000000", "1010001011001000011010101111011101011", "1011100001110110101001011000001101000", "1011111011000100110000111110111110101", "0000000011010100110111010010100011000", "1111111000001001110011001010101010101", "1000001010100101111111101010100011011", "1011101010110111100101010011111110101", "1011101010010011001011110000011011101", "1011101010011101100100001101000001011", "1000001001001011001111011010010011001", "1111111011000001010100111110000010111"]}, {"token": "1794850034.7FoWSZwTwEyR", "modules": ["1111111001011000011010001111101111111", "1000001001001111010100101111101000001", "1011101010101101100111101010101011101", "1011101011000101010100101111001011101", "1011101010100000001100110010101011101", "1000001011111010101000101101001000001", "1111111010101010101010101010101111111", "0000000011100100100110000010100000000", "1011111000001111001011101011101111100", "0001000110010101110001001011110000010", "0001101111011000000010101011101000111", "1010010111001110101001111000100001001", "1100111001101110110010101110111110111", "0110100010001000011111010100100100010", "1011011101010001010011000101101111001", "0110010110100101111111110001010110011", "0101101100111111100101000110001110101", "0000000001110101001010100010110001110", "0000101011001111101100100011010000011", "1011100010100011000111001010110001001", "0111001001010101110100010101111010100", "0010110001111110101100010000110001010", "0010111010011111101010100111011111001", "0000000011100000000110010011101110010", "0000111001000111001111110011001110101", "1001100101110001100000010111100000000", "1011001001011000011010100111111101011", "1000100011111110101001000000101101000", "1011111011010100110000101111111110101", "0000000010010100110111010010100011000", "1111111001101111110011001010101010101", "1000001010100001111111101000100011011", "1011101011011101100101011111111110101", "1011101010100001001011100010011011101", "1011101010011101100100000101000001011", "1000001001011011001111010010110011001", "1111111011000001010100101111000010111"]}, {"token": "1794850035.k19XM_hgvsBZ", "modules": ["1111111001001111001100111011001111111", "1000001010010110110101101110001000001", "1011101010101100000111101011001011101", "1011101010100110110111001101101011101", "1011101000100100001100110110101011101", "1000001000011111101001101010001000001", "1111111010101010101010101010101111111", "0000000010100011100111000011100000000", "1000001010101011001011101011111001110", "0111100001110110010010101000010011110", "0000101011010000000010101011101000111", "1000010110010111101000111000000000001", "1010001011001000000100001000001000001", "0111000011001001011110010101100101010", "1011001100110101010011000111101111001", "0101000101000100011100010000110101111", "1000101100111101100101000110101110101", "0110000000000110001011100001010000110", "0111011011110001011010011101000110101", "1001100101101010000110011010010000001", "0111001101010101110100000101111010100", "0001110011011001001111110111010010110", "0010101010011001101010100001011111001", "1101110010100011000111010000111111010", "1011011111010011111001001001011000011", "1100110000111000100001000101000001000", "1001001011010000011010100111111101011", "1001000000010101001010111011101110100", "1001111111000100110000101110111110101", "0000000011010101110110010011100010000", "1111111000111111000101111000101010011", "1000001000000000111110101011100010011", "1011101000011101100101010111111110101", "1011101001110010101000010001111000001", "1011101000001101100100001101000001011", "1000001000011010001110010010110010001", "1111111011100111100010011000110100001"]}, {"token": "1794850036.H7nNaBZ7Pgnl", "modules": ["1111111001111101101100111010001111111", "1000001010010110110101101110001000001", "1011101010101100100111101010101011101", "1011101010110111110111001101101011101", "1011101001100100001100110010101011101", "1000001000111011101001101000001000001", "1111111010101010101010101010101111111", "0000000011000011100111000011100000000", "1000001011100011001011101011011001110", "0001100001111110010010101010010011110", "0001101111011000000010101011001000111", "1000010100001111101000100001100000001", "1010001011011000000100001000001000001", "1111000011001101011110010001100101010", "1011001101010001010011000101101111001", "0101000100000000011100010010110101111", "0101001111110101100101001010001110101", "0110010010111110001011110011110000110", "0110011101100001011010011101000110101", "1000100001101010000110010011110000001", "0111001001000101110100010101111010100", "1001010011011001001111110111010010110", "0010001011111101101010100101011111001", "0101110010000111000111010000100111010", "0110011100111101111001001011011000011", "1100100000000000100001010111000001000", "1010001101011000011010100111011101011", "1000000010000101001010110010101110100", "1001111011000100110000101110111110101", "0000000011010101110110010011100010000", "1111111001111101000101111000101010011", "1000001001000100111110101011100010011", "1011101000010111100101011011111110101", "1011101001100010101000010001111000001", "1011101000000101100100001101000001011", "1000001000010010001110001010010010001", "1111111011100111100010011000110100001"]}, {"token": "1794850037.cBW1ivspUDRa", "modules": ["1111111001111011111010001100101111111", "1000001001000111110100101111101000001", "1011101010100100100111101011001011101", "1011101011000101010100101111001011101", "1011101010100100001100110110101011101", "1000001010011000101000101001001000001", "1111111010101010101010101010101111111", "0000000011100000100110000010100000000", "1011111000100101001011101111101111100", "0110000010011101110001001010010000010", "0010101101001000000010100011101000111", "1001010011010110101001101000100001001", "1110111001101110110010101111111110111", "1110000011001000011111010000100100010", "0011101101010001010011000111101111001", "1110100111100011111111110001010110011", "1101111100011001100101001110101110101", "0100010101001101001010110011110001110", "0010101111001111101100101011010000011", "1001100100100011000111011010010001001", "0111001001010101110100000101111010100", "1010110000111110101100010000110001010", "1110011010011111101010100101011111001", "1000000010000000000110010011110110010", "0101001001101111001111110111001110101", "1001100001001001100000000111100000000", "1000001111010000011010101111111101011", "1000100001101110101001000000001101000", "1011111011010100110000101111111110101", "0000000010010100110111010010100011000", "1111111001101001110011001000101010101", "1000001010000111111111101000100011011", "1011101011011001100101011011111110101", "1011101010111001001011100010011011101", "1011101010011101100100000101000001011", "1000001001001011001111000011110011001", "1111111011010001010100101110000010111"]}, {"token": "1794850038.LGaCh4ttJM02", "modules": ["1111111001011100001100111010001111111", "1000001010010111010101101110101000001", "1011101010111100100111101010001011101", "1011101010100110110111001100101011101", "1011101000100000001100110110101011101", "1000001001111101101001101000001000001", "1111111010101010101010101010101111111", "0000000010000111100111000001100000000", "1000001010100011001011101101011001110", "0011110111101100010010101000010011110", "0010101111011000000010101011101000111", "1011010010000111101000111000000000001", "1000001111011000000100011001001000001", "0111000010001101011110010001100101010", "1111011100010001010011000011101111001", "0001000101000010011100010010110101111", "1101101111110001100101000110001110101", "0000010010110110001011111011110000110", "0110011001110001011010011101000110101", "1001100001110010000110001011110000001", "0111001001000101110100000101111010100", "1001010011011001001111110011010010110", "1010111010011011101010100011000111001", "0101000010100011000111010000101111010", "1011011100111011111001000001111000011", "1111110000010010100001011110100001000", "1000001101010000011010100111011101011", "1011000110011101001010100010001110100", "1011111011000100110000111110111110101", "0000000010010101110110010011100010000", "1111111001111101000101111100101010011", "1000001001100110111110101001100010011", "1011101001010001100101011011111110101", "1011101001110010101000000011111000001", "1011101000001101100100001101000001011", "1000001000001010001110011010010010001", "1111111011110111100010001000110100001"]}, {"token": "1794850039.WHfT1uYs0EUo", "modules": ["1111111011001000111010001110001111111", "1000001010010100101111110100001000001", "1011101001010001001010000110001011101", "1011101011010100010100101111001011101", "1011101000111011010111101001101011101", "1000001001010111000101000100101000001", "1111111010101010101010101010101111111", "0000000010111101111101011001100000000", "1011011101000000100110000010001001011", "0111010110011111110001001011110000010", "1011111110011011011001111000010011100", "0100110100101011000100011101001100100", "1110111101111110110010111111111110111", "1101110001010111000100001011111111001", "0010001000011000111110101110000010100", "1110110111100001111111110011010110011", "1010111101101110111110010001010101110", "1100100100101010100111011111011100011", "0000101001000111101100100011010000011", "0010110111111000011100011000001010010", "1000101000101000011001101001010111001", "0010010000111010101100010100110001010", "1001101000100100110001111010011100010", "1101110110101101101011111110010011111", "0101101000000011001111110111001110101", "0111100110000000111011011100111011011", "0110101100111101110111001010010000110", "1001100011100110101001000000101101000", "0010101100011111101011110100111111110", "0000000011111101011010111111100010101", "1111111011101101110011001100101010101", "1000001010111010100100110001100010000", "1011101000011100001000110000111111000", "1011101010111001001011100010011011101", "1011101011001110111111010110011010000", "1000001000111110100010100111111110100", "1111111011000001010100101110000010111"]}, {"token": "1794850040.j6lk32NHtc0h", "modules": ["1111111001101001111010001110001111111", "1000001001000111010100101111101000001", "1011101010101101100111101010001011101", "1011101011010101010100101110001011101", "1011101011100000001100110010101011101", "1000001011111100101000101101001000001", "1111111010101010101010101010101111111", "0000000011000000100110000010100000000", "1011111001001111001011101101001111100", "0110010100110111110001001010110000010", "0010101111011000000010101011001000111", "1010010111001110101001101001100001001", "1100111101101110110010111110111110111", "0110000010001100011111010000100100010", "1111011101110101010011000101111111001", "0010010111000011111111110001001110011", "0100111100111001100101001010001110101", "0101000111110101001010110000110001110", "0000101001011111101100101011010000011", "1011100110101011000111001010110001001", "0101001101010101110100000101111010100", "0010110001111110101100010100110001010", "1110111011111001101010100111001111001", "0000000011100000000110010001101110010", "1000001011100111001111110011101110101", "1000110101010011100000011100000000000", "1011001101000000011010100111011101011", "1010100001111110101001011000001101000", "1001111111000100110000101110111110101", "0000000011010100110111010110100011000", "1111111001101011110011001000101010101", "1000001010100001111111101000100011011", "1011101011011001100101011111111110101", "1011101010101011001011110010011011101", "1011101010001101100100001101000001011", "1000001001001011001111000011110011001", "1111111011000001010100101110000010111"]}, {"token": "1794850041.u5vI0XIPp2_C", "modules": ["1111111001010110101100111000101111111", "1000001010011110010101101110101000001", "1011101010100101100111101011001011101", "1011101010110110110111001101101011101", "1011101000100100001100110010101011101", "1000001001111011101001101000001000001", "1111111010101010101010101010101111111", "0000000010100001100111000001100000000", "1000001011100111001011101011011001110", "0000100111011110010010101000010011110", "0010101111010000000010100011001000111", "1001010100010111101000111001100000001", "1000001111011000000100011001001000001", "0111000010001101011110010101100101010", "0011011101010101010011000001111111001", "1101100100100100011100010010101101111", "0101011100011111100101001010101110101", "0011000110011100001011100001110000110", "0110011111110001011010010101000110101", "1010100011111010000110010010110000001", "0101001001000101110100010101111010100", "1001010010011101001111110111010010110", "0110001011111101101010100001001111001", "0001000010000101000111010010111111010", "1011111101010101111001000101011000011", "1110100000111000100001000111000001000", "1011001011010000011010101111111101011", "1011000010010101001010111010001110100", "1011111011000100110000101111111110101", "0000000011010101110110010011100010000", "1111111001011111000101111110101010011", "1000001000000000111110101001100010011", "1011101001010101100101010111111110101", "1011101001100000101000011001111000001", "1011101000000101100100001101000001011", "1000001000000010001110001011110010001", "1111111011100111100010011000110100001"]}, {"token": "1794850042.n3KxhY8VDelB", "modules": ["1111111001001110001100111010001111111", "1000001010000110110101101110001000001", "1011101010100101100111101011001011101", "1011101010110111110111001101101011101", "1011101001100000001100110110101011101", "1000001000111111101001101000001000001", "1111111010101010101010101010101111111", "0000000011000011100111000001100000000", "1000001010001011001011101011111001110", "0110110011110100010010101001010011110", "0010101001000000000010101011101000111", "1001010010000111101000111001000000001", "1000001111001000000100011000001000001", "0111100010001001011110010101100101010", "1011101101110111010011000001111111001", "1001100101100110011100010000101101111", "1001111100011011100101001100001110101", "0000000110011100001011100010110000110", "0101011111100001011010011101000110101", "1000100101101010000110000011010000001", "0101001001000101110100010101111010100", "0001110011011101001111110111010010110", "1110001011111111101010100001001111001", "1101010010000001000111010000100111010", "0110001100010111111001001101011000011", "1111110110100010100001010111000001000", "1000001011011000011010100111011101011", "1010000010011101001010100011001110100", "1001111011010100110000101110111110101", "0000000010010001110110010011100010000", "1111111000011011000101111000101010011", "1000001000000010111110101001100010011", "1011101000010101100101011011111110101", "1011101001101000101000010011111000001", "1011101000000101100100001101000001011", "1000001000001010001110000010110010001", "1111111011100111100010011000110100001"]}, {"token": "1794850043.PAZ4NwjXJnS1", "modules": ["1111111001110100101100111011001111111", "1000001010000111010101101110001000001", "1011101010101100100111101011101011101", "1011101010110110110111001100101011101", "1011101000100000001100110110101011101", "1000001001011111101001101110001000001", "1111111010101010101010101010101111111", "0000000010000011100111000001100000000", "1000001011101001001011101111111001110", "0111110011001100010010101001110011110", "0000101001000000000010100011001000111", "1000010010001111101000101001000000001", "1000001011011000000100011000001000001", "1111100011001101011110010001100101010", "1111111101010011010011000111111111001", "0001000100100110011100010000101101111", "0101001111010001100101000110101110101", "0100010000111100001011111000110000110", "0110011001111001011010010101000110101", "1000100011110010000110011010010000001", "0111001001000101110100000101111010100", "1001010010011001001111110111010010110", "0010001010011011101010100101001111001", "1001000010100101000111010000110111010", "0110111101011101111001000101111000011", "1001110010010000100001000110100001000", "1010001001011000011010101111011101011", "1000000010011101001010110010101110100", "1011111011000100110000111111111110101", "0000000010010001110110010111100010000", "1111111000011011000101111110101010011", "1000001001100000111110101001100010011", "1011101001010111100101011011111110101", "1011101001010010101000010011111000001", "1011101000001101100100001101000001011", "1000001000011010001110011011010010001", "1111111011110111100010001000110100001"]}, {"token": "1794850044.XZn8k8o7H9LK", "modules": ["1111111001111100101100111010001111111", "1000001010011110110101101110001000001", "1011101010100101100111101011001011101", "1011101010110111110111001101101011101", "1011101001100100001100110110101011101", "1000001001111011101001101100001000001", "1111111010101010101010101010101111111", "0000000011100001100111000011100000000", "1000001011101111001011101101111001110", "0001100101100100010010101001110011110", "0010101111000000000010100011001000111", "1011010010000111101000111001100000001", "1010001111001000000100001000001000001", "0111100011001101011110010101100101010", "0111101101110011010011000001111111001", "1101000100000010011100010010101101111", "0101011100011111100101001110001110101", "0000000110111100001011100001110000110", "0111011101110001011010011101100110101", "1011100011110010000110000011010000001", "0101001001010101110100010100111010100", "0001110010011001001111110111010010110", "1110011011011101101010100111011111001", "0001100010100011000111010010101111010", "0111011101110011111001001011011000011", "1000100100010000100001000110100001000", "1001001011011000011010100111011101011", "1011000100010101001010101010101110100", "1001111111000100110000111110111110101", "0000000010010101110110010011100010000", "1111111001111111000101111000101010011", "1000001000100100111110101011100010011", "1011101000111011100101010011111110101", "1011101001100000101000011011111000001", "1011101000001101100100001101000001011", "1000001000010010001110001011010010001", "1111111011100111100010001000110100001"]}, {"token": "1794850045.0rJ9UT-0_OBk", "modules": ["1111111001001101101100111001001111111", "1000001010011110010101101110101000001", "1011101010111100000111101011001011101", "1011101010110111110111001101101011101", "1011101001100000001100110010101011101", "1000001001011001101001101010001000001", "1111111010101010101010101010101111111", "0000000011000001100111000011100000000", "1000001011100101001011101011111001110", "0010110111110100010010101001110011110", "0010101101001000000010100011001000111", "1010010000011111101000111001000000001", "1000001011001000000100001000001000001", "0111100010001001011110010001100101010", "1111111100010111010011000011111111001", "1101110101100010011100010010101101111", "0100101111110111100101001100001110101", "0010000010100110001011110000110000110", "0111011011101001011010011101100110101", "1010100111100010000110011011010000001", "0101001101000101110100000101111010100", "0001110010011001001111110111010010110", "0110101011111001101010100011011111001", "1001010011100011000111010010111111010", "0110111111111011111001001011011000011", "1000110010101010100001000111100001000", "1010001101000000011010100111011101011", "1011000100011101001010110010101110100", "1001111011000100110000111111111110101", "0000000010010001110110010011100010000", "1111111001011011000101111110101010011", "1000001000000000111110101001100010011", "1011101000111111100101011011111110101", "1011101001000010101000000001111000001", "1011101000010101100100000101000001011", "1000001000011010001110010011110010001", "1111111011100111100010001001110100001"]}, {"token": "1794850046.4KhVjAq4vpWU", "modules": ["1111111001100010111010001100101111111", "1000001001001111110100101111001000001", "1011101010101101100111101010101011101", "1011101011010100010100101111001011101", "1011101010100000001100110110101011101", "1000001011111010101000101101001000001", "1111111010101010101010101010101111111", "0000000010100000100110000000100000000", "1011111000001001001011101011101111100", "0110000010100101110001001001110000010", "0010101101010000000010100011001000111", "1010010111010110101001100001000001001", "1110111101101110110010101110111110111", "0110000011001000011111010000100100010", "0111011101010101010011000001111111001", "0110010111100011111111110011001110011", "0001001101111111100101000110001110101", "0010010111001101001010100010110001110", "0010101011011111101100100011110000011", "1001100000101011000111010010010001001", "0101001101000101110100000100111010100", "0010110000111010101100010000110001010", "0110101011111001101010100001011111001", "0100100010000110000110010011100110010", "0101011000100011001111110101001110101", "1100110011000011100000000111100000000", "1001001011011000011010101111011101011", "1010100101100110101001001001101101000", "1011111011000100110000101111111110101", "0000000011010000110111010010100011000", "1111111001001111110011001010101010101", "1000001011100101111111101000100011011", "1011101010110001100101010111111110101", "1011101010111011001011110010011011101", "1011101010000101100100001101000001011", "1000001001001011001111010010110011001", "1111111011000001010100101111000010111"]}, {"token": "1794850047.ooq9KpkMgmHy", "modules": ["1111111001100100101100111011001111111", "1000001010001110110101101110101000001", "1011101010101100000111101011001011101", "1011101010110111110111001101101011101", "1011101001100000001100110110101011101", "1000001000111101101001101100001000001", "1111111010101010101010101010101111111", "0000000011000001100111000011100000000", "1000001010000111001011101111111001110", "0010100111011100010010101001110011110", "0011101001000000000010100011101000111", "1010010110000111101000101000000000001", "1000001111001000000100001001001000001", "0111100010001101011110010001100101010", "0011101101010001010011000001111111001", "1001100101100100011100010010101101111", "1100001100110111100101000110101110101", "0000010110000100001011110001110000110", "0101011001101001011010011101000110101", "1011100011100010000110001011110000001", "0101001001000101110100010100111010100", "1001110011011101001111110111010010110", "1010101010011011101010100101011111001", "0001000011100101000111010010110111010", "0110101110111011111001001101111000011", "1101110000111000100001000101100001000", "1001001111010000011010100111111101011", "1011000100010101001010100011001110100", "1001111111000100110000111110111110101", "0000000011010001110110010111100010000", "1111111001011001000101111100101010011", "1000001001000110111110101011100010011", "1011101001011011100101011111111110101", "1011101001001010101000010011111000001", "1011101000010101100100000101000001011", "1000001000001010001110010010110010001", "1111111011110111100010011000110100001"]}, {"token": "1794850048.8In0d5lw5FaV", "modules": ["1111111001010110101100111010001111111", "1000001010011110010101101110001000001", "1011101010100100100111101011001011101", "1011101010100110110111001100101011101", "1011101000100100001100110010101011101", "1000001001111111101001101010001000001", "1111111010101010101010101010101111111", "0000000011100101100111000001100000000", "1000001010100001001011101101111001110", "0101110111001100010010101001110011110", "0010101001010000000010101011001000111", "1010010110011111101000110001100000001", "1010001011001000000100011000001000001", "1111100011001101011110010001100101010", "0011011100110001010011000011111111001", "1101010100100000011100010000101101111", "1101111100011001100101000110001110101", "0000000010100100001011100001110000110", "0110011101111001011010010101000110101", "1000100101100010000110001010010000001", "0111001101010101110100000100111010100", "0001110011011001001111110111010010110", "0110111010011011101010100011000111001", "1001110010000101000111010000101111010", "0011001100011011111001001001111000011", "1010110000000000100001010110100001000", "1010001001010000011010101111011101011", "1001000010000101001010110010101110100", "1011111111010100110000101110111110101", "0000000011010101110110010011100010000", "1111111000111001000101111000101010011", "1000001001000110111110101011100010011", "1011101001010101100101011101111110101", "1011101001111010101000000001111000001", "1011101000010101100100000101000001011", "1000001000011010001110000011110010001", "1111111011110111100010011001110100001"]}, {"token": "1794850049.PIKLkB9lG5VU", "modules": ["1111111000011001011001101111001111111", "1000001001100111001100010111101000001", "1011101001011101110110011010001011101", "1011101001001000001000110010001011101", "1011101001100011001011110001101011101", "1000001010110010100110100011001000001", "1111111010101010101010101010101111111", "0000000000011110011110111010000000000", "1001011011011110111010011010110100000", "1001000100110001101101010101101100001", "0110101100001111000101100100101111111", "0100010101000000100111101110001111000", "1101011110011101010001001101011101011", "0110010010110000100111101000011100101", "0110111100100110100010110100001110111", "1110010011111011100011101101010010000", "1111011001011000100010000011001001101", "1011000011000001000100101101111111111", "0011001100111100001111001000010011111", "0001010000000011111111101011101001110", "0100111100100100000101110101001011010", "1110100100100110110000001000101101001", "0101111101011010101101100110000000001", "0010100100101110001000011101110000011", "0011101000001110101100010100101101001", "0111010011100001011000111101011000111", "1011111100101001101011010110101100101", "0100110111110010110101011101010001011", "1110111100000011110111101000111111101", "0000000011011110111001011000100011001", "1111111001001100010000101001101011001", "1000001011011001000111010000100011100", "1011101001000000010100100010111111011", "1011101010111111010111100100000111110", "1011101001011010100011000010000110011", "1000001001000101000001011100011101000", "1111111010110010110111001101100001011"]}, {"token": "1794850050.LiMPUgvhcZZ_", "modules": ["1111111001011101001100111001001111111", "1000001010000110010101101110001000001", "1011101010101101000111101011001011101", "1011101010100110110111001100101011101", "1011101001100000001100110010101011101", "1000001001011101101001101010001000001", "1111111010101010101010101010101111111", "0000000010100111100111000011100000000", "1000001010001101001011101111111001110", "0000110001001100010010101010010011110", "0000101111010000000010100011101000111", "1010010000001111101000110000100000001", "1010001011011000000100001000001000001", "0111000011001001011110010001100101010", "1111001100110011010011000111111111001", "1101010101100100011100010000111101111", "1000101110111111100101000110001110101", "0111000110000100001011100010110000110", "0111011101101001011010011101000110101", "1001100101111010000110011010010000001", "0101001001010101110100010100111010100", "0001110010011001001111110011010010110", "0010111011111101101010100111001111001", "0001010010000011000111010000101111010", "1010101110110101111001000001111000011", "1101100110101010100001000101100001000", "1001001111010000011010101111011101011", "1000000100011101001010111010001110100", "1011111111010100110000111110111110101", "0000000011010001110110010111100010000", "1111111001011011000101111110101010011", "1000001000100100111110101001100010011", "1011101001011011100101010111111110101", "1011101001111000101000000011111000001", "1011101000001101100100000101000001011", "1000001000011010001110011010010010001", "1111111011110111100010011000110100001"]}, {"token": "1794850051.Y0i7fzLgiTXC", "modules": ["1111111001011000111010001100101111111", "1000001001001111110100101111101000001", "1011101010100101000111101010101011101", "1011101011000101010100101111001011101", "1011101011100000001100110010101011101", "1000001011011100101000101111001000001", "1111111010101010101010101010101111111", "0000000011100010100110000000100000000", "1011111001100011001011101111101111100", "0100010000001101110001001010010000010", "0011101111000000000010100011101000111", "1000010001000110101001111001000001001", "1100111101101110110010101110111110111", "0110000010001000011111010100100100010", "1111011101010111010011000101111111001", "1010010111100011111111110001011110011", "1101101101111111100101001010001110101", "0011010011010101001010100000110001110", "0011101011010111101100101011010000011", "1000100110110011000111001011010001001", "0111001001010101110100010101111010100", "1010010001111110101100010100110001010", "0110101011011011101010100011001111001", "0000000011000010000110010001111110010", "1001101001001001001111110111101110101", "1001110111010011100000000100000000000", "1000001001010000011010101111111101011", "1010100011111110101001000001001101000", "1001111111010100110000101110111110101", "0000000010010100110111010010100011000", "1111111000001101110011001110101010101", "1000001011100001111111101010100011011", "1011101010110001100101010111111110101", "1011101010010011001011100000011011101", "1011101010011101100100000101000001011", "1000001001011011001111001010010011001", "1111111011000001010100111110000010111"]}, {"token": "1794850052.wR6_PNxyqRcr", "modules": ["1111111000111001011001101100001111111", "1000001001101111001100010111001000001", "1011101001000100110110011011001011101", "1011101001011000001000110010001011101", "1011101000100111001011110101101011101", "1000001010110010100110100111001000001", "1111111010101010101010101010101111111", "0000000000111100011110111000000000000", "1001011011010110111010011010010100000", "1001000100001001101101010101101100001", "0111101010000111000101101100001111111", "0101010111011000100111110110101111000", "1111011010001101010001001100011101011", "0110010010110000100111101100011100101", "0010111101100000100010110110001110111", "1010110010011111100011101101000010000", "0011111010011000100010000001101001101", "1000000101101011000100111100011111111", "0011001010110100001111000000110011111", "0011010010000011111111100010101001110", "0110111000110100000101110100001011010", "1110100100100110110000001000101101001", "0001101100011100101101100110001000001", "1110110101001110001000011111101000011", "1110101010100000101100011100001101001", "0100010111110011011000101111011000111", "1011111100100001101011011110001100101", "0110110011111010110101000100110001011", "1100111000010011110111101000111111101", "0000000011011010111001011000100011001", "1111111001101000010000101011101011001", "1000001011011101000111010010100011100", "1011101000001000010100100110111111011", "1011101010001101010111111110000111110", "1011101001011010100011000010000110011", "1000001001010101000001000100111101000", "1111111010110010110111001101100001011"]}, {"token": "1794850053.etKNKAu7vc5A", "modules": ["1111111000111001011001101110001111111", "1000001001100110001100010111101000001", "1011101001010100110110011011001011101", "1011101001001001001000110010001011101", "1011101001100011001011110001101011101", "1000001010010100100110100011001000001", "1111111010101010101010101010101111111", "0000000001011000011110111010000000000", "1001011010110000111010011010110100000", "1010000010101001101101010101101100001", "0101101100010111000101100100101111111", "0110010001000000100111100110001111000", "1111011010001101010001001101011101011", "1110010011110100100111101000011100101", "0010011101100010100010110000001110111", "0110010010011111100011101111000010000", "1010001010010100100010001001001001101", "1000000111010011000100101101111111111", "0001001010101100001111000000110011111", "0000010010011011111111111011001001110", "0110111100110100000101110100001011010", "1110100101100010110000001100101101001", "0101011101111010101101100100001000001", "0010000100001010001000011101111000011", "1110001010001100101100010110001101001", "0001010001100011011000100110011000111", "1001111010101001101011010110001100101", "0100110111101010110101000101110001011", "1110111000000011110111101000111111101", "0000000011011110111001011100100011001", "1111111001101010010000101101101011001", "1000001010011101000111010010100011100", "1011101001100000010100101110111111011", "1011101010111111010111101110000111110", "1011101001001010100011001010000110011", "1000001001010101000001011101111101000", "1111111010110010110111001101100001011"]}, {"token": "1794850054.5grUvIlaiUzP", "modules": ["1111111001110101001100111000001111111", "1000001010000110010101101110101000001", "1011101010101100000111101011101011101", "1011101010110110110111001100101011101", "1011101001100100001100110010101011101", "1000001000011001101001101110001000001", "1111111010101010101010101010101111111", "0000000011000011100111000001100000000", "1000001010000011001011101011111001110", "0000100011110110010010101010010011110", "0011101111000000000010101011001000111", "1011010110010111101000101001000000001", "1000001011001000000100011001001000001", "0111100010001001011110010101100101010", "1111101101010001010011000001111111001", "1101010100000000011100010000111101111", "1101011101111111100101000110101110101", "0100000100001100001011100001110000110", "0111011101111001011010011101000110101", "1000100001101010000110011011110000001", "0101001101010101110100010101111010100", "0001010010011001001111110111010010110", "1110001010011011101010100011011111001", "1001110010000101000111010000101111010", "0011011111011011111001000001111000011", "1111110100110010100001010101100001000", "1001001111011000011010100111111101011", "1001000110001101001010100010001110100", "1011111111000100110000101111111110101", "0000000011010001110110010011100010000", "1111111000111111000101111110101010011", "1000001001000000111110101011100010011", "1011101000110001100101010111111110101", "1011101001100000101000000011111000001", "1011101000000101100100000101000001011", "1000001000011010001110001011110010001", "1111111011110111100010001001110100001"]}, {"token": "1794850055.DeTCXJzQ1j9J", "modules": ["1111111001100111101100111001001111111", "1000001010001110010101101110101000001", "1011101010110100000111101010001011101", "1011101010100110110111001100101011101", "1011101001100100001100110110101011101", "1000001001011111101001101000001000001", "1111111010101010101010101010101111111", "0000000011100011100111000001100000000", "1000001010001001001011101011011001110", "0100110011111100010010101010010011110", "0001101001011000000010101011001000111", "1011010000001111101000111000100000001", "1000001011001000000100001001001000001", "0111100011001001011110010101100101010", "0011101100110011010011000101111111001", "1001000100000010011100010010111101111", "1100001110110011100101001110101110101", "0110010010110100001011100010110000110", "0101011111110001011010010101000110101", "1011100111111010000110001010110000001", "0101001101000101110100010101111010100", "0001110010011001001111110111010010110", "1010111010111001101010100101011111001", "0001010011000011000111010000111111010", "1011011110110001111001000101111000011", "1110110110000010100001011111100001000", "1010001011000000011010101111011101011", "1001000110001101001010111010001110100", "1011111111000100110000111111111110101", "0000000011010101110110010011100010000", "1111111001111011000101111110101010011", "1000001001100110111110101011100010011", "1011101000011011100101011101111110101", "1011101001101000101000010001111000001", "1011101000001101100100000101000001011", "1000001000011010001110001010010010001", "1111111011100111100010011000110100001"]}, {"token": "1794850056.1TjNTS9hAvMk", "modules": ["1111111001110110001100111001001111111", "1000001010011111110101101110001000001", "1011101010111100100111101010101011101", "1011101010110111110111001101101011101", "1011101001100100001100110010101011101", "1000001001011011101001101010001000001", "1111111010101010101010101010101111111", "0000000010100101100111000001100000000", "1000001010001001001011101011011001110", "0011100001101100010010101000010011110", "0001101111001000000010100011001000111", "1010010000000111101000111001000000001", "1010001111001000000100001000001000001", "0111100010001101011110010001100101010", "1011111100110111010011000101111111001", "1101010100100100011100010000111101111", "0001111101010011100101001100001110101", "0101010110111100001011110011110000110", "0100011101110001011010010101100110101", "1001100111101010000110000010110000001", "0111001101000101110100010101111010100", "1001010011011101001111110111010010110", "0010001011111111101010100001011111001", "1101100011000001000111010010100111010", "0110001101111111111001001001011000011", "1100110000000000100001000100100001000", "1010001011001000011010101111111101011", "1001000000000101001010110010101110100", "1001111111000100110000101111111110101", "0000000010010101110110010111100010000", "1111111001111111000101111110101010011", "1000001001000100111110101001100010011", "1011101000110011100101010011111110101", "1011101001110010101000010011111000001", "1011101000010101100100000101000001011", "1000001000010010001110001011110010001", "1111111011110111100010011001110100001"]}, {"token": "1794850057.PAd9VtjZVrCe", "modules": ["1111111001110100101100111001001111111", "1000001010010110110101101110101000001", "1011101010101100000111101011001011101", "1011101010110110110111001101101011101", "1011101001100100001100110010101011101", "1000001000111101101001101110001000001", "1111111010101010101010101010101111111", "0000000011100001100111000001100000000", "1000001011100001001011101111111001110", "0010100011001100010010101001110011110", "0011101101001000000010100011001000111", "1001010100010111101000100000100000001", "1000001011001000000100011001001000001", "0111000010001101011110010001100101010", "1111101101110101010011000011111111001", "0001110100000110011100010010111101111", "0101011111010001100101001110001110101", "0110000110110100001011110001110000110", "0111011011111001011010010101000110101", "1000100001111010000110011010010000001", "0101001001000101110100000101111010100", "0001110010011101001111110111010010110", "0110001010111111101010100101011111001", "0101010011000011000111010000110111010", "0110111110010111111001001101111000011", "1011110110001000100001000110100001000", "1000001011000000011010101111011101011", "1011000010010101001010111010101110100", "1011111011010100110000101111111110101", "0000000010010101110110010111100010000", "1111111001011011000101111010101010011", "1000001000100110111110101001100010011", "1011101000011111100101010011111110101", "1011101001111010101000010001111000001", "1011101000010101100100001101000001011", "1000001000010010001110010011010010001", "1111111011100111100010011000110100001"]}, {"token": "1794850058.KYBzA9CGYmmJ", "modules": ["1111111001011111101100111011001111111", "1000001010001111110101101110001000001", "1011101010110101000111101010001011101", "1011101010100111110111001101101011101", "1011101001100100001100110010101011101", "1000001000011101101001101000001000001", "1111111010101010101010101010101111111", "0000000010100011100111000011100000000", "1000001011100101001011101101111001110", "0100100111011100010010101001010011110", "0000101001011000000010101011001000111", "1011010000011111101000111001000000001", "1010001111011000000100001001001000001", "0111100010001001011110010101100101010", "1111001101010011010011000001111111001", "1001110100000000011100010000111101111", "0000111101110101100101001010001110101", "0000010110101100001011100000110000110", "0110011101110001011010010101000110101", "1010100011100010000110000010010000001", "0111001001010101110100010100111010100", "1001010010011101001111110011010010110", "1010101010111111101010100101000111001", "0001110010100011000111010010101111010", "0110001111111101111001001101011000011", "1010100000111010100001010100100001000", "1011001001001000011010100111111101011", "1010000100001101001010100011101110100", "1011111111010100110000111110111110101", "0000000010010001110110010011100010000", "1111111000011111000101111000101010011", "1000001001000010111110101011100010011", "1011101000011011100101011011111110101", "1011101001010000101000010001111000001", "1011101000011101100100000101000001011", "1000001000000010001110001010010010001", "1111111011110111100010001000110100001"]}, {"token": "1794850059.3aaLMKboE6Xj", "modules": ["1111111000101001011001101110001111111", "1000001001110110001100010111101000001", "1011101001001101110110011010001011101", "1011101001011001001000110010001011101", "1011101001100011001011110001101011101", "1000001010010100100110100101001000001", "1111111010101010101010101010101111111", "0000000001111110011110111010000000000", "1001011011111110111010011010110100000", "1111010100101011101101010101101100001", "0110101000010111000101101100101111111", "0111010111001000100111110111001111000", "1101011110011101010001011100011101011", "1110110010110100100111101100011100101", "1010011100000100100010110100001110111", "1010010011011101100011101111000010000", "1010101001111100100010001001001001101", "1110000101010001000100111110111111111", "0011001110111100001111001000010011111", "0010010100001011111111110011101001110", "0110111100100100000101100100001011010", "1110100101100010110000001100101101001", "0101101101011100101101100010000000001", "0110010101001110001000011111110000011", "0010001011100110101100010100101101001", "0100010001001011011000111100011000111", "1010111100101001101011011110001100101", "0111110001100010110101001100010001011", "1110111000010011110111101000111111101", "0000000011011110111001011000100011001", "1111111000101100010000101101101011001", "1000001010011111000111010010100011100", "1011101001101000010100100010111111011", "1011101010001101010111100100000111110", "1011101001011010100011000010000110011", "1000001001010101000001001100111101000", "1111111010110010110111001100100001011"]}, {"token": "1794850060.tMigSHFuKSqC", "modules": ["1111111010111100111101001000101111111", "1000001000000000010011101000101000001", "1011101000010101011111010010001011101", "1011101011101100101100010111101011101", "1011101010100111001011110101101011101", "1000001010111011101111101010001000001", "1111111010101010101010101010101111111", "0000000011111110011110111010000000000", "1000101110000000001100101100011111001", "0111000011101010110110001111110111010", "1001011111111000111010011011010000000", "0001100101111110010001000001111001110", "1011111010111001110101101001111001111", "0001000100001111011000010011100011010", "1011011100101111101011111001000111110", "1010010111011101000111001001111110100", "1110001000111010100010001101001001101", "0100010110001000001101100111110110110", "1010011101100111010100011011001000100", "0000010010011011111111110011001001110", "0010001010000010110011000011111101100", "1101110111111001101011010111110110010", "1010001011000111010010011111110111110", "0100010011011110111110101001010110101", "0110111110100010001000110000001001101", "1110110000000100100111010000100111000", "0001111011111000100010011111100101100", "0000010001001110010001100001010101111", "1100111100010011110111101000111111101", "0000000010010111110000010101100010000", "1111111010010011001011110010101010010", "1000001001111101000111010010100011100", "1011101010110010100010010100111111101", "1011101001011110001100100111011100101", "1011101000110101011100111101111001100", "1000001001111011110111100010001011110", "1111111010010110010011111001000101111"]}, {"token": "1794850061.heWDG2AsJQYS", "modules": ["1111111000101011111001101110001111111", "1000001001110111101100010111101000001", "1011101001001100110110011010001011101", "1011101001011000001000110011001011101", "1011101000100011001011110101101011101", "1000001010010000100110100001001000001", "1111111010101010101010101010101111111", "0000000001011100011110111010000000000", "1001011011110010111010011100110100000", "1011000110010001101101010111101100001", "0111101000000111000101100100101111111", "0110010011001000100111110110101111000", "1101011110001101010001001100011101011", "1110010010110000100111101000011100101", "1110101101100100100010110100001110111", "1110010010011011100011101101011010000", "1111001000110010100010000101101001101", "1000010101001001000100101111111111111", "0010001100111100001111000000010011111", "0010010010001011111111110011001001110", "0100111100110100000101100100001011010", "1110000101100010110000001100101101001", "1101101101011110101101100110001000001", "0110110100001110001000011101110000011", "1010001001101000101100010100101101001", "0101000101010011011000111110011000111", "1000111010111001101011010110101100101", "0100110001110010110101010101010001011", "1100111100000011110111101001111111101", "0000000010011110111001011100100011001", "1111111000001100010000101111101011001", "1000001011011011000111010010100011100", "1011101000101110010100100010111111011", "1011101010100111010111111100000111110", "1011101001000010100011001010000110011", "1000001001011101000001010101111101000", "1111111010110010110111011101100001011"]}, {"token": "1794850062.67o5_cZ8i4H8", "modules": ["1111111001110010011010001111101111111", "1000001001010111110100101111101000001", "1011101010111100100111101011101011101", "1011101011000100010100101111001011101", "1011101010100100001100110110101011101", "1000001010011110101000101111001000001", "1111111010101010101010101010101111111", "0000000010000100100110000010100000000", "1011111000101111001011101111101111100", "0111000000000101110001001000010000010", "0001101111001000000010101011101000111", "1010010101000110101001101000100001001", "1110111001101110110010111110111110111", "1110100011001100011111010000100100010", "1111101101110101010011000101111111001", "1110010110100011111111110011000110011", "1100101100011101100101000010001110101", "0001010011111101001010111010110001110", "0001101011001111101100101011110000011", "1011100010111011000111001010110001001", "0101001001010101110100010101111010100", "0010010000111010101100010100110001010", "0110011011111101101010100101001111001", "0100010010000110000110010001100110010", "0001001001100011001111111101101110101", "1100100001001001100000000110000000000", "1001001101001000011010101111011101011", "1001100111110110101001000000101101000", "1011111011010100110000101111111110101", "0000000011010100110111010110100011000", "1111111001101001110011001000101010101", "1000001011000111111111101000100011011", "1011101010110101100101010111111110101", "1011101010010011001011111000011011101", "1011101010011101100100000101000001011", "1000001001000011001111001010110011001", "1111111011010001010100111111000010111"]}, {"token": "1794850063.aS5U8O2vXq7M", "modules": ["1111111000011011111001101101101111111", "1000001001110110101100010111001000001", "1011101001001100010110011010001011101", "1011101001001001001000110011001011101", "1011101000100111001011110001101011101", "1000001011110010100110100111001000001", "1111111010101010101010101010101111111", "0000000000011000011110111000000000000", "1001011011111110111010011010010100000", "1111000100010011101101010101101100001", "0101101110001111000101100100101111111", "0101010101000000100111101111101111000", "1111011010011101010001011100011101011", "0110110011110000100111101100011100101", "1110011101000100100010110110001110111", "1010010010111101100011101111011010000", "0011111001111110100010001011101001101", "1110000111110011000100101100011111111", "0001001010100100001111000000010011111", "0001010100001011111111101010101001110", "0100111000110100000101110100001011010", "1110100101100110110000001100101101001", "0001001100011100101101100010001000001", "0010100100101110001000011111111000011", "0011101001101000101100010100001101001", "0100010101011001011000100111011000111", "1001111000100001101011010110001100101", "0101110111111010110101010101010001011", "1100111000010011110111101000111111101", "0000000010011010111001011100100011001", "1111111000101100010000101101101011001", "1000001011111001000111010000100011100", "1011101001100010010100100010111111011", "1011101010010101010111101110000111110", "1011101001000010100011001010000110011", "1000001001011101000001000101111101000", "1111111010110010110111011101100001011"]}, {"token": "1794850064.ERIvIghPj40b", "modules": ["1111111001110101101100111011001111111", "1000001010010110110101101110001000001", "1011101010101101100111101010101011101", "1011101010110111110111001100101011101", "1011101000100100001100110110101011101", "1000001000011001101001101000001000001", "1111111010101010101010101010101111111", "0000000011000111100111000011100000000", "1000001011101111001011101111111001110", "0001110101011110010010101011010011110", "0001101001001000000010101011101000111", "1010010110000111101000111000000000001", "1010001111001000000100011000001000001", "0111100011001001011110010001100101010", "0111101100110011010011000111111111001", "1101010100000000011100010000100101111", "0100101110011101100101001110001110101", "0100000000001110001011110000110000110", "0100011001101001011010011101100110101", "1001100001111010000110001011010000001", "0111001101000101110100000101111010100", "1001110011011001001111110111010010110", "0010101011011101101010100001011111001", "0101010011000011000111010000101111010", "1011001110110101111001000101011000011", "1101100110011010100001011110100001000", "1010001111001000011010101111111101011", "1000000000010101001010100010001110100", "1001111011010100110000101111111110101", "0000000011010101110110010011100010000", "1111111000111001000101111110101010011", "1000001001000010111110101001100010011", "1011101001010001100101010111111110101", "1011101001111010101000011011111000001", "1011101000010101100100001101000001011", "1000001000010010001110011010010010001", "1111111011110111100010001000110100001"]}, {"token": "1794850065.yblyotTZIFGq", "modules": ["1111111011011000111010001100101111111", "1000001010010101001111110100101000001", "1011101001011001101010000110101011101", "1011101011010101010100101110001011101", "1011101000111011010111101101101011101", "1000001001110101000101000010101000001", "1111111010101010101010101010101111111", "0000000011011011111101011001100000000", "1011011101101000100110000010001001011", "0110010010011101110001001010110000010", "1001111000011011011001111000010011100", "0110110000101011000100000100001100100", "1110111101101110110010101110111110111", "0101110001010111000100001011111111001", "1010101000111100111110101110010010100", "1010000110000101111111110001000110011", "1110111110001110111110011001010101110", "1111110000010010100111011111011100011", "0010101011010111101100100011010000011", "0001110111101000011100001001001010010", "1000101000111000011001101000010111001", "0010010001111010101100010000110001010", "0101001000100100110001111000000100010", "0001110111001001101011111100010011111", "0101001010101111001111111011001110101", "0001110100010010111011011101111011011", "0110101000100101110111000010010000110", "1011100111100110101001010001001101000", "0010101000001111101011110101111111110", "0000000010111001011010111011100010101", "1111111011101011110011001100101010101", "1000001010111000100100110011100010000", "1011101000111000001000110110111111000", "1011101010010011001011100000011011101", "1011101011010110111111011110011010000", "1000001000100110100010100111011110100", "1111111011010001010100111110000010111"]}, {"token": "1794850066.I61uCqX4gHGh", "modules": ["1111111010111101011101001010101111111", "1000001000000000110011101000101000001", "1011101000010101011111010011001011101", "1011101011101100101100010111101011101", "1011101010100111001011110101101011101", "1000001011011111101111101010001000001", "1111111010101010101010101010101111111", "0000000011011100011110111010000000000", "1000101111101100001100101000111111001", "0101000111001010110110001101110111010", "1000011011111000111010010011010000000", "0000100111110110010001010001111001110", "1001111110101001110101111000111001111", "0001000101001111011000010111100011010", "0011011100001001101011111001000111110", "1110110111011001000111001011111110100", "0110101001110010100010001101101001101", "0110000000110010001101110101010110110", "1010011111100111010100011011101000100", "0010010000000011111111101010001001110", "0010001110010010110011000010111101100", "1101110110111101101011010011110110010", "1110101011100011010010011001100111110", "1100100010111010111110101001011110101", "0111001111000100001000111010101001101", "1111110100011110100111000001000111000", "0010111001100000100010010111000101100", "0001010101010110010001110001110101111", "1110111000010011110111111001111111101", "0000000011010011110000010101100010000", "1111111010110101001011110010101010010", "1000001001011011000111010000100011100", "1011101010111000100010011000111111101", "1011101001010110001100100111011100101", "1011101000111101011100111101111001100", "1000001001110011110111101011101011110", "1111111010010110010011101001000101111"]}, {"token": "1794850067.6dDiyGa2NpHz", "modules": ["1111111001010001111010001110101111111", "1000001001000111110100101111101000001", "1011101010101100000111101011001011101", "1011101011010101010100101110001011101", "1011101010100000001100110110101011101", "1000001011111010101000101001001000001", "1111111010101010101010101010101111111", "0000000011000110100110000010100000000", "1011111000001111001011101011001111100", "0101000100100101110001001000110000010", "0010101011011000000010101011001000111", "1011010001001110101001111001100001001", "1100111001101110110010111111111110111", "0110100011001000011111010000100100010", "1111101101010111010011000111111111001", "1110110110000101111111110011000110011", "1001111100111011100101000110001110101", "0101000011111101001010110001110001110", "0000101011000111101100101011010000011", "1001100010101011000111001011110001001", "0101001101000101110100010101111010100", "1010110000111110101100010000110001010", "1110111010111001101010100001011111001", "0000010011100110000110010011110110010", "0100111011000011001111111101001110101", "1101100101110001100000000110100000000", "1001001011000000011010101111011101011", "1001100101100110101001001000101101000", "1001111011000100110000101111111110101", "0000000010010000110111010010100011000", "1111111001101111110011001100101010101", "1000001010100111111111101000100011011", "1011101010111001100101010011111110101", "1011101010101011001011110000011011101", "1011101010011101100100001101000001011", "1000001001010011001111010010110011001", "1111111011000001010100111111000010111"]}, {"token": "1794850068.O1KlsfC8U0XG", "modules": ["1111111001100101001100111000001111111", "1000001010000110110101101110001000001", "1011101010100101000111101011101011101", "1011101010100110110111001101101011101", "1011101001100100001100110010101011101", "1000001000011101101001101100001000001", "1111111010101010101010101010101111111", "0000000010100001100111000011100000000", "1000001010101001001011101111011001110", "0111100001100100010010101011010011110", "0000101101010000000010100011101000111", "1011010110001111101000110001000000001", "1000001011011000000100011000001000001", "0111100011001101011110010001100101010", "0011111101110011010011000111111111001", "1001100100100000011100010010100101111", "1001111110010011100101001010001110101", "0100000110101100001011100000110000110", "0101011101111001011010011101000110101", "1011100011111010000110001010010000001", "0111001001000101110100010101111010100", "0001010010011001001111110011010010110", "1110001011111101101010100101000111001", "1101110010000011000111010010101111010", "0110001100110011111001000011011000011", "1110110010001010100001000111000001000", "1001001101011000011010101111111101011", "1000000100011101001010101011001110100", "1001111011000100110000101110111110101", "0000000011010001110110010111100010000", "1111111000011011000101111110101010011", "1000001001100000111110101001100010011", "1011101001110001100101010011111110101", "1011101001101010101000011001111000001", "1011101000001101100100000101000001011", "1000001000000010001110000010010010001", "1111111011100111100010011000110100001"]}, {"token": "1794850069.u2ytlD1r9CoY", "modules": ["1111111001110110101100111010001111111", "1000001010001111010101101110001000001", "1011101010100101100111101011101011101", "1011101010110111110111001100101011101", "1011101000100000001100110110101011101", "1000001001111111101001101010001000001", "1111111010101010101010101010101111111", "0000000011100001100111000001100000000", "1000001010101101001011101011111001110", "0110100011101100010010101011010011110", "0000101011010000000010100011101000111", "1001010110011111101000101000000000001", "1010001011011000000100001000001000001", "1111000011001101011110010001100101010", "1011001101010011010011000011111111001", "1001100100000000011100010010100101111", "0001011111010001100101000100101110101", "0111000110111110001011100011110000110", "0100011101110001011010010101100110101", "1010100101100010000110010011010000001", "0111001001010101110100010101111010100", "1001110010011101001111110011010010110", "0110111010111011101010100001000111001", "1001000010100111000111010010111111010", "1010111100010001111001001001011000011", "1001100100011000100001010111000001000", "1000001011010000011010100111111101011", "1010000100001101001010111010001110100", "1011111111010100110000101111111110101", "0000000011010101110110010011100010000", "1111111001111011000101111010101010011", "1000001000000100111110101001100010011", "1011101000011101100101011101111110101", "1011101001000000101000000001111000001", "1011101000001101100100000101000001011", "1000001000001010001110001011110010001", "1111111011110111100010001000110100001"]}, {"token": "1794850070.ePwtxIs19Yvx", "modules": ["1111111001011110101100111000001111111", "1000001010011111010101101110001000001", "1011101010111100100111101011101011101", "1011101010110110110111001100101011101", "1011101000100000001100110110101011101", "1000001001011001101001101000001000001", "1111111010101010101010101010101111111", "0000000010000011100111000001100000000", "1000001010101001001011101011111001110", "0101100111110100010010101011010011110", "0000101111000000000010101011101000111", "1011010000000111101000101001100000001", "1010001111011000000100001001001000001", "1111000010001101011110010101100101010", "0111011100110101010011000001111111001", "0101000101100000011100010000110101111", "1000111101011111100101000110101110101", "0011010100110110001011110011110000110", "0110011101111001011010011101100110101", "1011100101110010000110010010010000001", "0111001001010101110100000101111010100", "1001010010011101001111110011010010110", "1010011010111101101010100101001111001", "1101000010000001000111010010101111010", "1111101100110001111001000011011000011", "1100110010110010100001010110100001000", "1000001001000000011010100111111101011", "1001000010010101001010101010001110100", "1001111011000100110000111111111110101", "0000000010010001110110010011100010000", "1111111001111011000101111110101010011", "1000001001000100111110101011100010011", "1011101001010101100101010101111110101", "1011101001111010101000000001111000001", "1011101000010101100100000101000001011", "1000001000011010001110001010110010001", "1111111011110111100010001000110100001"]}, {"token": "1794850071.fuOlI2nn7Yxa", "modules": ["1111111001001000111010001101101111111", "1000001001010111010100101111001000001", "1011101010110101000111101011101011101", "1011101011010100010100101110001011101", "1011101010100100001100110110101011101", "1000001010011110101000101001001000001", "1111111010101010101010101010101111111", "0000000010000100100110000010100000000", "1011111001101001001011101101001111100", "0100010100110111110001001010110000010", "0011101001010000000010100011101000111", "1000010011011110101001101000100001001", "1110111001101110110010101110111110111", "0110100010001100011111010000100100010", "1011111101110101010011000101111111001", "1010110111000101111111110001010110011", "0101011110010111100101001110001110101", "0101010111001101001010110001110001110", "0010101101000111101100101011110000011", "1010100110110011000111001011110001001", "0101001101000101110100010101111010100", "1010110000111010101100010100110001010", "1010101011111011101010100111001111001", "0000100010000110000110010001111110010", "0101011011001011001111110111101110101", "1011110011011011100000010100100000000", "1010001001000000011010100111011101011", "1010100011101110101001001000101101000", "1001111111000100110000111111111110101", "0000000010010000110111010110100011000", "1111111000001111110011001110101010101", "1000001011100111111111101000100011011", "1011101010010011100101010101111110101", "1011101010101001001011100010011011101", "1011101010001101100100000101000001011", "1000001001000011001111010011110011001", "1111111011010001010100101110000010111"]}, {"token": "1794850072.p3vrXHJH5rZM", "modules": ["1111111001011100001100111001001111111", "1000001010001110110101101110001000001", "1011101010111100000111101010001011101", "1011101010110111110111001100101011101", "1011101000100000001100110110101011101", "1000001001111011101001101000001000001", "1111111010101010101010101010101111111", "0000000010000111100111000001100000000", "1000001011101111001011101011111001110", "0010110101101100010010101011010011110", "0001101001000000000010100011001000111", "1001010110001111101000100001100000001", "1000001011011000000100001001001000001", "0111000010001101011110010101100101010", "1111011101110101010011000001111111001", "0001010100100100011100010010110101111", "0001101101011111100101001010101110101", "0111010010100100001011100001110000110", "0110011101111001011010011101000110101", "1011100111101010000110011011010000001", "0111001001000101110100010101111010100", "0001110011011101001111110111010010110", "1110001010011001101010100101001111001", "0001000010100011000111010000100111010", "1110011110110101111001000101011000011", "1111110100010010100001000101000001000", "1000001001000000011010101111011101011", "1000000110011101001010111010101110100", "1011111011010100110000101111111110101", "0000000011010101110110010111100010000", "1111111000011011000101111110101010011", "1000001000100100111110101001100010011", "1011101000111001100101010101111110101", "1011101001110010101000010001111000001", "1011101000011101100100000101000001011", "1000001000011010001110000011110010001", "1111111011100111100010011000110100001"]}, {"token": "1794850073.cRsesHVlPQBC", "modules": ["1111111001000001111010001110101111111", "1000001001011111010100101111101000001", "1011101010100101000111101011101011101", "1011101011010100010100101111001011101", "1011101010100000001100110010101011101", "1000001010011010101000101101001000001", "1111111010101010101010101010101111111", "0000000011000000100110000010100000000", "1011111000000001001011101011001111100", "0100010100111111110001001000110000010", "0011101101011000000010100011101000111", "1000010111010110101001111000000001001", "1110111101101110110010101111111110111", "0110100010001100011111010100100100010", "1111111101110011010011000001111111001", "0010000110000011111111110001010110011", "0100101101110101100101001010101110101", "0011000001010101001010100010110001110", "0011101101011111101100101011010000011", "1001100110100011000111011010010001001", "0111001001000101110100000101111010100", "0010110001111110101100010000110001010", "0110011011111101101010100111001111001", "0100100011000100000110010001110110010", "0000011011001101001111111111101110101", "1101100001010011100000000101100000000", "1010001111001000011010100111111101011", "1001100111101110101001001000001101000", "1001111011010100110000101111111110101", "0000000010010000110111010110100011000", "1111111000001001110011001010101010101", "1000001011000101111111101000100011011", "1011101010010001100101010011111110101", "1011101010010001001011100010011011101", "1011101010001101100100001101000001011", "1000001001001011001111001011110011001", "1111111011010001010100101110000010111"]}, {"token": "1794850074.adycHnMxGie5", "modules": ["1111111001011100101100111011001111111", "1000001010001111010101101110101000001", "1011101010100100100111101010001011101", "1011101010110110110111001100101011101", "1011101000100100001100110110101011101", "1000001000011011101001101000001000001", "1111111010101010101010101010101111111", "0000000011100011100111000001100000000", "1000001010101011001011101111011001110", "0001100101101110010010101011010011110", "0001101011000000000010100011101000111", "1011010100011111101000100000000000001", "1000001011011000000100011000001000001", "1111000010001101011110010101100101010", "0011111100010101010011000111111111001", "1101010100000010011100010010110101111", "0001101110111101100101000010101110101", "0000010000111110001011111001110000110", "0100011011110001011010010101100110101", "1000100001110010000110000010110000001", "0101001001010101110100000101111010100", "1001110011011001001111110111010010110", "0110111011011001101010100011011111001", "1101000010100111000111010010101111010", "1010101101011001111001001001111000011", "1000100100101000100001010111100001000", "1010001101011000011010100111111101011", "1001000110000101001010101010101110100", "1001111111000100110000111111111110101", "0000000010010001110110010111100010000", "1111111000111001000101111110101010011", "1000001001100100111110101001100010011", "1011101001010111100101011011111110101", "1011101001011010101000010011111000001", "1011101000000101100100000101000001011", "1000001000011010001110010010110010001", "1111111011100111100010011000110100001"]}, {"token": "1794850075.cXuvjGApnKAO", "modules": ["1111111001010100001100111010001111111", "1000001010001110010101101110001000001", "1011101010110100000111101010101011101", "1011101010110110110111001100101011101", "1011101001100000001100110110101011101", "1000001001111101101001101100001000001", "1111111010101010101010101010101111111", "0000000011100111100111000001100000000", "1000001010000101001011101011111001110", "0011110111111100010010101011010011110", "0011101101001000000010100011101000111", "1001010110001111101000110000100000001", "1000001011001000000100001001001000001", "0111000010001101011110010001100101010", "1111011100110011010011000111111111001", "0101010101100100011100010000110101111", "1100001110011001100101001010101110101", "0001010110101110001011100001110000110", "0111011011101001011010010101100110101", "1000100011100010000110001010010000001", "0101001101000101110100000100111010100", "1001110011011101001111110011010010110", "1110101010111111101010100001011111001", "0001000010100111000111010010111111010", "1010001100010111111001001001011000011", "1101100010101000100001000110100001000", "1000001111001000011010100111111101011", "1000000110010101001010111011101110100", "1001111111010100110000111111111110101", "0000000010010101110110010011100010000", "1111111001011001000101111110101010011", "1000001001100000111110101001100010011", "1011101001011001100101011111111110101", "1011101001011010101000000011111000001", "1011101000010101100100001101000001011", "1000001000011010001110010010110010001", "1111111011100111100010001000110100001"]}, {"token": "1794850076.MVncD7u6NxfS", "modules": ["1111111001101110001100111011001111111", "1000001010010111110101101110101000001", "1011101010110100000111101010001011101", "1011101010110110110111001100101011101", "1011101000100100001100110010101011101", "1000001001011001101001101010001000001", "1111111010101010101010101010101111111", "0000000010100001100111000001100000000", "1000001010000111001011101101011001110", "0110110101000110010010101001010011110", "0000101101010000000010100011001000111", "1010010100010111101000111001100000001", "1010001011001000000100011000001000001", "1111100011001001011110010001100101010", "0111011101010001010011000111111111001", "1101010101000110011100010000110101111", "0000101111110001100101000110001110101", "0011000100101100001011100011110000110", "0101011101101001011010011101100110101", "1010100101111010000110010011110000001", "0111001101000101110100000101111010100", "0001110011011101001111110011010010110", "1010101011011111101010100011011111001", "1001100011100111000111010010100111010", "0011101100010001111001001011011000011", "1011100100000000100001010110100001000", "1001001001000000011010101111111101011", "1010000010011101001010101010001110100", "1011111111010100110000111110111110101", "0000000011010101110110010011100010000", "1111111000011111000101111000101010011", "1000001000100110111110101001100010011", "1011101000010001100101010011111110101", "1011101001100000101000010011111000001", "1011101000001101100100001101000001011", "1000001000001010001110010010010010001", "1111111011100111100010001000110100001"]}, {"token": "1794850077.oBJGAGNrKqFO", "modules": ["1111111001000100001100111011001111111", "1000001010001110010101101110101000001", "1011101010100101000111101010101011101", "1011101010110111110111001100101011101", "1011101001100000001100110010101011101", "1000001001111101101001101000001000001", "1111111010101010101010101010101111111", "0000000010100011100111000011100000000", "1000001010001001001011101011011001110", "0010100011010110010010101010010011110", "0001101101011000000010100011001000111", "1001010010000111101000110001000000001", "1010001011011000000100001000001000001", "1111000011001001011110010001100101010", "1111111101010011010011000111111111001", "1001010100000110011100010000110101111", "0101001110011011100101001010001110101", "0001010110001110001011100000110000110", "0101011001110001011010011101100110101", "1011100001110010000110010011010000001", "0111001101010101110100000101111010100", "1001110011011001001111110111010010110", "1110011010111101101010100111011111001", "1001100011000011000111010000110111010", "0010001110010001111001001001111000011", "1110110110111000100001000110100001000", "1010001111001000011010100111111101011", "1001000110000101001010101011001110100", "1011111111000100110000101110111110101", "0000000010010001110110010011100010000", "1111111000111101000101111010101010011", "1000001000000010111110101001100010011", "1011101001010011100101010011111110101", "1011101001111010101000010011111000001", "1011101000010101100100000101000001011", "1000001000000010001110011010110010001", "1111111011100111100010001000110100001"]}, {"token": "1794850078.GUHybhAeGVeY", "modules": ["1111111001001101001100111010001111111", "1000001010010110010101101110101000001", "1011101010100101100111101011001011101", "1011101010100111110111001101101011101", "1011101000100100001100110010101011101", "1000001000011111101001101100001000001", "1111111010101010101010101010101111111", "0000000010100111100111000001100000000", "1000001011101101001011101111111001110", "0001100001110110010010101011010011110", "0010101011001000000010100011001000111", "1000010010001111101000101000000000001", "1010001011011000000100001000001000001", "0111100010001101011110010101100101010", "1111111100110111010011000001111111001", "1101110100000100011100010010110101111", "0000011101111011100101000010001110101", "0001000010100110001011100000110000110", "0101011101101001011010010101000110101", "1001100011100010000110000010110000001", "0111001001000101110100000101111010100", "1001110010011101001111110011010010110", "1010101010111011101010100001000111001", "1001010011100101000111010010101111010", "0011111110110011111001001001011000011", "1100100000001000100001010100100001000", "1010001001011000011010101111111101011", "1011000000000101001010110011001110100", "1001111011010100110000101111111110101", "0000000011010101110110010011100010000", "1111111000111001000101111100101010011", "1000001000100000111110101011100010011", "1011101000011001100101010011111110101", "1011101001000010101000000011111000001", "1011101000010101100100000101000001011", "1000001000010010001110010010010010001", "1111111011100111100010011000110100001"]}, {"token": "1794850079.5LDa_p3KDkLD", "modules": ["1111111001101110001100111001001111111", "1000001010001110010101101110101000001", "1011101010111101100111101011001011101", "1011101010100110110111001100101011101", "1011101000100100001100110110101011101", "1000001001011101101001101110001000001", "1111111010101010101010101010101111111", "0000000010000111100111000011100000000", "1000001011000011001011101111011001110", "0010100101000110010010101001010011110", "0011101111011000000010101011001000111", "1011010110001111101000100000100000001", "1000001111001000000100011001001000001", "0111000011001101011110010001100101010", "0011101101110001010011000001111111001", "0001100100000010011100010010110101111", "0001101110111111100101001100001110101", "0111010010100110001011100010110000110", "0110011101101001011010011101100110101", "1001100101100010000110000010110000001", "0101001101010101110100010100111010100", "1001010011011001001111110011010010110", "1010111010011011101010100101000111001", "1101110010100111000111010010111111010", "1110011111011111111001001101111000011", "1001110000101000100001000100100001000", "1010001011000000011010100111111101011", "1011000110001101001010111010001110100", "1011111111010100110000111111111110101", "0000000010010001110110010111100010000", "1111111000011101000101111010101010011", "1000001001000000111110101011100010011", "1011101000111101100101011011111110101", "1011101001000000101000010011111000001", "1011101000011101100100001101000001011", "1000001000011010001110000011110010001", "1111111011110111100010011001110100001"]}, {"token": "1794850080.BLgoxfxJCPwU", "modules": ["1111111001010110001100111000001111111", "1000001010000111110101101110101000001", "1011101010111101000111101010101011101", "1011101010110111110111001101101011101", "1011101000100000001100110110101011101", "1000001001111011101001101000001000001", "1111111010101010101010101010101111111", "0000000011100011100111000001100000000", "1000001011000011001011101111011001110", "0001110001011110010010101011010011110", "0010101011001000000010100011101000111", "1011010010001111101000100001100000001", "1000001011011000000100011001001000001", "0111100010001001011110010001100101010", "1111111100010101010011000111100111001", "1001000101100110011100010010101101111", "1101111100011011100101000110001110101", "0000000100001110001011100011110000110", "0111011011111001011010010101100110101", "1010100011110010000110010010110000001", "0111001101010101110100000100111010100", "0001110011011101001111110111010010110", "0010111011011011101010100001001111001", "1101000010100101000111010000101111010", "1010111110110111111001000101111000011", "1010100010110010100001010100100001000", "1010001011000000011010101111011101011", "1011000110011101001010101011101110100", "1011111111000100110000101111111110101", "0000000010010001110110010111100010000", "1111111000111001000101111010101010011", "1000001001100010111110101001100010011", "1011101001011101100101010011111110101", "1011101001101010101000000011111000001", "1011101000011101100100000101000001011", "1000001000010010001110011010010010001", "1111111011100111100010011000110100001"]}, {"token": "1794850081.PMUIfZGqJY8B", "modules": ["1111111000111011111001101111001111111", "1000001001110110101100010111001000001", "1011101001001101110110011010101011101", "1011101001001000001000110010001011101", "1011101000100111001011110101101011101", "1000001010010000100110100001001000001", "1111111010101010101010101010101111111", "0000000001111000011110111000000000000", "1001011010111100111010011010110100000", "1001000010010011101101010111101100001", "0110101010001111000101101100101111111", "0110010111010000100111110111101111000", "1111011010011101010001001100011101011", "1110010010110100100111101100011100101", "0010001101100100100010110100010110111", "0010110011111001100011101101010010000", "0110001000110110100010001101101001101", "1000010001010001000100101111111111111", "0010001010100100001111001000010011111", "0010010010011011111111110011001001110", "0100111100110100000101100101001011010", "0110000100100010110000001100101101001", "0101011100111010101101100000001000001", "1110000101101100001000011101110000011", "1111111011001000101100010100101101001", "0011010001010001011000100111011000111", "1011111010111001101011010110101100101", "0101110001111010110101010101010001011", "1110111000000011110111111000111111101", "0000000011011010111001011100100011001", "1111111001001100010000101011101011001", "1000001010011011000111010010100011100", "1011101001100000010100100010111111011", "1011101010010111010111111100000111110", "1011101001001010100011001010000110011", "1000001001000101000001010100011101000", "1111111010110010110111011101100001011"]}, {"token": "1794850082.bsmq_1uLsNqu", "modules": ["1111111011001010011010001111101111111", "1000001010010101101111110100101000001", "1011101001011001101010000110101011101", "1011101011000100010100101111001011101", "1011101000111011010111101101101011101", "1000001000010101000101000010101000001", "1111111010101010101010101010101111111", "0000000011111111111101011001100000000", "1011011101101010100110000000001001011", "0011010000101101110001001010110000010", "1011111010011011011001111000110011100", "0110110100111011000100001100001100100", "1110111001101110110010101110111110111", "0101010001010111000100001011111111001", "0110001000011000111110101100001010100", "0110110110100011111111110011001110011", "1110101100000100111110011101010101110", "1100110010110010100111011111011100011", "0000101011000111101100100011110000011", "0000110101111000011100010001001010010", "1010101100111000011001101000010111001", "1010010000111010101100010000110001010", "0001111000000000110001111000010100010", "1101010110101111101011111110001011111", "0000011011001111001111110011101110101", "0000110000110000111011001111111011011", "0101101010110101110111000010110000110", "1000100011100110101001010000001101000", "0010101100001111101011100100111111110", "0000000010111001011010111011100010101", "1111111011001011110011001010101010101", "1000001010111110100100110011100010000", "1011101000010110001000110010111111000", "1011101010011011001011100010011011101", "1011101011011110111111011110011010000", "1000001000110110100010110110011110100", "1111111011010001010100101110000010111"]}, {"token": "1794850083.XmQ6T_6sbTJh", "modules": ["1111111001010010011010001111101111111", "1000001001001110010100101111001000001", "1011101010101100100111101010101011101", "1011101011000100010100101111001011101", "1011101010100100001100110010101011101", "1000001010011010101000101011001000001", "1111111010101010101010101010101111111", "0000000011000110100110000000100000000", "1011111000101011001011101011101111100", "0110010110010101110001001010010000010", "0000101111001000000010101011101000111", "1001010101011110101001101001000001001", "1110111001101110110010111111111110111", "1110000010001000011111010100100100010", "0011111101110111010011000111100111001", "0010100111100111111111110011001110011", "0101101100010011100101001100101110101", "0010010001110111001010110011110001110", "0001101101001111101100101011110000011", "1011100110110011000111011011110001001", "0101001101000101110100010100111010100", "0010110001111110101100010000110001010", "0110011010011011101010100111001111001", "1000010010100100000110010001110110010", "1000101010100011001111111111001110101", "1101110011011011100000000110100000000", "1000001011001000011010101111011101011", "1010100101111110101001000001001101000", "1011111011000100110000101110111110101", "0000000011010000110111010010100011000", "1111111000001011110011001100101010101", "1000001011100001111111101010100011011", "1011101010010011100101010111111110101", "1011101010010001001011100000011011101", "1011101010000101100100001101000001011", "1000001001010011001111011010010011001", "1111111011000001010100101110000010111"]}, {"token": "1794850084.-CUMwD2JebNL", "modules": ["1111111000001000111001101101001111111", "1000001001100111101100010111001000001", "1011101001011100010110011010001011101", "1011101001011001001000110010001011101", "1011101000100111001011110101101011101", "1000001011110010100110100001001000001", "1111111010101010101010101010101111111", "0000000001011100011110111010000000000", "1001011010111010111010011010110100000", "1010010100001001101101010101101100001", "0100101110001111000101101100101111111", "0100010001000000100111101111101111000", "1111011110011101010001011100011101011", "1110010010110000100111101000011100101", "1110101101000110100010110010010110111", "1010010011111001100011101101010010000", "0110101011110000100010001011101001101", "1101010011110011000100101101111111111", "0011001000101100001111001000010011111", "0011010110000011111111101010101001110", "0110111100110100000101100100001011010", "0110100100100110110000001100101101001", "1101101100011010101101100010011000001", "0110110100001110001000011111100000011", "0010101010101110101100011000101101001", "0101000011100001011000111101011000111", "1010111000110001101011011110001100101", "0101110001110010110101000101110001011", "1110111000000011110111101001111111101", "0000000010011110111001011000100011001", "1111111000001100010000101111101011001", "1000001010111001000111010000100011100", "1011101001001010010100101110111111011", "1011101010111101010111101100000111110", "1011101001000010100011000010000110011", "1000001001001101000001001101111101000", "1111111010110010110111001100100001011"]}, {"token": "1794850085.b60EBloSLFI_", "modules": ["1111111001111010111010001101101111111", "1000001001000111010100101111101000001", "1011101010111101000111101011101011101", "1011101011000100010100101111001011101", "1011101010100000001100110010101011101", "1000001011011000101000101101001000001", "1111111010101010101010101010101111111", "0000000011100000100110000000100000000", "1011111001000101001011101111001111100", "0110010110000111110001001001110000010", "0011101101010000000010100011001000111", "1011010101000110101001110001000001001", "1110111001111110110010111111111110111", "1110100011001000011111010100100100010", "0011101100110111010011000011100111001", "1010100111100101111111110001001110011", "1101111110011101100101000110101110101", "0100000111001111001010100000010001110", "0000101101011111101100100011010000011", "1000100100101011000111001010110001001", "0111001001000101110100010101111010100", "1010110000111010101100010100110001010", "1110111011011111101010100111011111001", "1000000011000110000110010011111110010", "1100001010000111001111111011101110101", "1011110111000011100000000110000000000", "1010001001011000011010101111011101011", "1011100101101110101001010000001101000", "1011111111000100110000101111111110101", "0000000010010000110111010010100011000", "1111111001101111110011001100101010101", "1000001011000111111111101010100011011", "1011101010011011100101011011111110101", "1011101010011001001011100000011011101", "1011101010001101100100001101000001011", "1000001001001011001111000011110011001", "1111111011010001010100111110000010111"]}, {"token": "1794850086._3v8tmQ_7ZS0", "modules": ["1111111001110110001100111000001111111", "1000001010001111110101101110001000001", "1011101010100100100111101011001011101", "1011101010110111110111001101101011101", "1011101001100000001100110010101011101", "1000001001111011101001101010001000001", "1111111010101010101010101010101111111", "0000000011100001100111000001100000000", "1000001011100011001011101111111001110", "0100100101010110010010101011110011110", "0010101111010000000010101011001000111", "1001010010000111101000101001100000001", "1010001111001000000100011001001000001", "1111000011001101011110010101100101010", "0011101101110001010011000011100111001", "0001100101100000011100010000101101111", "1100101110111001100101000010101110101", "0100010010000100001011111011110000110", "0110011111101001011010010101000110101", "1001100001111010000110011011010000001", "0101001101000101110100000101111010100", "0001010011011001001111110011010010110", "1010101010011011101010100001011111001", "1001110011000011000111010010100111010", "0011001100010111111001000101011000011", "1101110010011010100001000111000001000", "1010001001000000011010101111111101011", "1011000000011101001010111011001110100", "1001111111010100110000111110111110101", "0000000011010101110110010111100010000", "1111111001111101000101111000101010011", "1000001001000010111110101011100010011", "1011101000010011100101010101111110101", "1011101001100010101000000001111000001", "1011101000010101100100000101000001011", "1000001000000010001110010011010010001", "1111111011100111100010011000110100001"]}, {"token": "1794850087.EIUTD7cSSiA2", "modules": ["1111111001010000111010001101101111111", "1000001001001110010100101111001000001", "1011101010110100100111101011101011101", "1011101011010100010100101111001011101", "1011101011100100001100110010101011101", "1000001011011010101000101011001000001", "1111111010101010101010101010101111111", "0000000011100100100110000000100000000", "1011111000000011001011101101101111100", "0001000100001111110001001011110000010", "0001101001000000000010101011101000111", "1000010011010110101001111001100001001", "1100111001101110110010101111111110111", "0110000011001100011111010000100100010", "1011111100110101010011000111100111001", "1110010110000011111111110011001110011", "0001111111011011100101000110101110101", "0110000001001101001010111001110001110", "0010101001011111101100100011110000011", "1011100110110011000111001011010001001", "0101001101010101110100000100111010100", "0010110000111110101100010000110001010", "1010011010011011101010100101011111001", "1100100010100110000110010011110110010", "0100011011000001001111111011001110101", "1110100011001001100000000111100000000", "1010001111000000011010100111111101011", "1001100011111110101001001001101101000", "1001111111010100110000111111111110101", "0000000010010000110111010010100011000", "1111111000001001110011001100101010101", "1000001010100101111111101010100011011", "1011101011011111100101011011111110101", "1011101010101011001011110010011011101", "1011101010010101100100000101000001011", "1000001001001011001111011011010011001", "1111111011010001010100101110000010111"]}, {"token": "1794850088.WT2e0ZGBNYq5", "modules": ["1111111001011100101100111000101111111", "1000001010010111010101101110101000001", "1011101010101100100111101011101011101", "1011101010100110110111001100101011101", "1011101000100000001100110010101011101", "1000001000111101101001101000001000001", "1111111010101010101010101010101111111", "0000000011000011100111000001100000000", "1000001010101101001011101011011001110", "0011100101111100010010101001010011110", "0010101101000000000010100011001000111", "1010010110010111101000100001000000001", "1000001011001000000100011001001000001", "0111100011001101011110010101100101010", "1111001101010011010011000101100111001", "1001010101000010011100010010101101111", "1001101111011011100101000010101110101", "0011000110100100001011111001010000110", "0110011111110001011010010101100110101", "1000100101111010000110001010110000001", "0111001001010101110100000101111010100", "0001110010011101001111110011010010110", "1010111010011011101010100111000111001", "1001010011000111000111010010101111010", "0111011110110101111001000101011000011", "1001100010001010100001010100100001000", "1011001011000000011010100111111101011", "1011000110001101001010101011001110100", "1011111111000100110000111111111110101", "0000000011010001110110010011100010000", "1111111000011001000101111010101010011", "1000001001100010111110101001100010011", "1011101001111001100101010011111110101", "1011101001100000101000000011111000001", "1011101000001101100100001101000001011", "1000001000001010001110010011010010001", "1111111011110111100010001000110100001"]}, {"token": "1794850089.EEfTNmJznBJu", "modules": ["1111111001010100001100111011001111111", "1000001010000111010101101110001000001", "1011101010111101000111101011101011101", "1011101010100111110111001100101011101", "1011101001100100001100110110101011101", "1000001000111111101001101110001000001", "1111111010101010101010101010101111111", "0000000010100101100111000001100000000", "1000001011001001001011101111111001110", "0100110001110100010010101010010011110", "0011101001000000000010100011001000111", "1011010110011111101000100001100000001", "1010001111001000000100011001001000001", "0111100010001101011110010101100101010", "1111001100110111010011000011100111001", "1101010100000110011100010000101101111", "0100011110010111100101000010001110101", "0010010100100100001011110001110000110", "0111011111101001011010011101000110101", "1001100011101010000110011010110000001", "0111001001010101110100010101111010100", "0001010011011001001111110111010010110", "0010001010111101101010100101000111001", "0001100011000011000111010000111111010", "0110111101011011111001001001111000011", "1101100100001000100001000110100001000", "1010001101001000011010101111111101011", "1000000110011101001010111010001110100", "1001111111010100110000101111111110101", "0000000010010101110110010111100010000", "1111111000011111000101111010101010011", "1000001001100010111110101001100010011", "1011101001010011100101011111111110101", "1011101001001010101000000011111000001", "1011101000010101100100001101000001011", "1000001000011010001110010010010010001", "1111111011110111100010001000110100001"]}], "classic_version": 5} \ No newline at end of file diff --git a/static/ringlab/phone.html b/static/ringlab/phone.html new file mode 100644 index 0000000..b22aca1 --- /dev/null +++ b/static/ringlab/phone.html @@ -0,0 +1,20 @@ + + +Labo code circulaire, téléphone + + +
+ +
Prêt
+
+
Images analysées0
+
Images par seconde0
+
QR central détecté0 %
+
Anneaux lus (si QR vu)0 %
+
Codes distincts0 / 5
+
Mode vuaucun
+
+ + +

+
diff --git a/static/ringlab/phone.js b/static/ringlab/phone.js new file mode 100644 index 0000000..d32daf7 --- /dev/null +++ b/static/ringlab/phone.js @@ -0,0 +1,66 @@ +import { decode, grayOf } from "/static/js/ringcode.js"; + +const $ = (id) => document.getElementById(id); +const video = $("v"), canvas = document.createElement("canvas"), ctx = canvas.getContext("2d", { willReadFrequently: true }); +let engine, running = false, frames = 0, qr = 0, ring = 0, t0 = 0, fpsT = performance.now(), fpsN = 0; +let tokens = new Set(), mode = "aucun"; +const history = []; + +function reset() { + tokens = new Set(); t0 = performance.now(); frames = qr = ring = 0; + $("state").textContent = "Visez l'écran"; +} + +async function start() { + engine = await QrScanner.createQrEngine(); + const stream = await navigator.mediaDevices.getUserMedia({ + video: { facingMode: { ideal: "environment" }, width: { ideal: 1920 }, height: { ideal: 1080 } }, + }); + video.srcObject = stream; + await video.play(); + running = true; + reset(); + loop(); +} + +async function loop() { + if (!running) return; + if (video.readyState >= 2) { + const k = Math.min(1, 1280 / video.videoWidth); + canvas.width = Math.round(video.videoWidth * k); + canvas.height = Math.round(video.videoHeight * k); + ctx.drawImage(video, 0, 0, canvas.width, canvas.height); + frames++; fpsN++; + let res = null; + try { res = await QrScanner.scanImage(canvas, { qrEngine: engine, returnDetailedScanResult: true }); } catch { /* none */ } + if (res) { + qr++; + if (res.data.includes("#")) { + mode = "QR classique"; + tokens.add(res.data.split("#")[1]); + } else { + mode = "anneaux"; + const d = decode(grayOf(ctx.getImageData(0, 0, canvas.width, canvas.height)), res.cornerPoints); + if (d && d.token) { ring++; tokens.add(d.token); } + } + } + if (tokens.size >= 5 && t0) { + const s = (performance.now() - t0) / 1000; + history.push(s.toFixed(1)); + $("state").textContent = `5 codes en ${s.toFixed(1)} s`; + $("hist").textContent = `Essais : ${history.join(" s, ")} s`; + t0 = 0; + } + const now = performance.now(); + if (now - fpsT > 1000) { $("fps").textContent = (fpsN * 1000 / (now - fpsT)).toFixed(1); fpsT = now; fpsN = 0; } + $("frames").textContent = frames; + $("qr").textContent = `${Math.round((100 * qr) / Math.max(1, frames))} %`; + $("ring").textContent = mode === "anneaux" ? `${Math.round((100 * ring) / Math.max(1, qr))} %` : "–"; + $("count").textContent = `${Math.min(tokens.size, 5)} / 5`; + $("mode").textContent = mode; + } + setTimeout(loop, 0); +} + +$("go").addEventListener("click", () => start().catch((e) => { $("state").textContent = `Caméra : ${e.message}`; })); +$("again").addEventListener("click", reset); diff --git a/static/ringlab/screen.html b/static/ringlab/screen.html new file mode 100644 index 0000000..d766032 --- /dev/null +++ b/static/ringlab/screen.html @@ -0,0 +1,8 @@ + + +Labo code circulaire, écran + + + + diff --git a/static/ringlab/screen.js b/static/ringlab/screen.js new file mode 100644 index 0000000..effb7a8 --- /dev/null +++ b/static/ringlab/screen.js @@ -0,0 +1,42 @@ +import { render, rsEncode, dataBits, SYNC, DISC } from "/static/js/ringcode.js"; + +const params = new URLSearchParams(location.search); +const MS = +params.get("ms") || 1000, MODE = params.get("mode") || "ring"; +const lab = await fetch("/static/ringlab/lab.json").then((r) => r.json()); +const cv = document.getElementById("stage"), ctx = cv.getContext("2d"); +document.getElementById(`m-${MODE}`)?.classList.add("on"); +for (const ms of [1000, 500]) { + const a = document.getElementById(`i-${ms}`); + a.href = `?mode=${MODE}&ms=${ms}`; + if (ms === MS) a.classList.add("on"); +} + +let slot = 0, bits = "", idx = 0; +function tick() { + slot = (slot + 1) & 0xffff; + const mac = [...crypto.getRandomValues(new Uint8Array(4))]; + bits = SYNC + dataBits(rsEncode([(slot >> 8) & 255, slot & 255, ...mac])); + idx = (idx + 1) % lab.classic.length; + document.getElementById("info").textContent = MODE === "ring" ? `code ${slot}` : `code ${lab.classic[idx].token.split(".")[0].slice(-4)}`; +} +tick(); +setInterval(tick, MS); + +function frame(t) { + const dpr = devicePixelRatio || 1, w = innerWidth * dpr, h = innerHeight * dpr; + if (cv.width !== w || cv.height !== h) { cv.width = w; cv.height = h; } + ctx.fillStyle = "#f5f6fa"; ctx.fillRect(0, 0, w, h); + const size = Math.min(w, h) * 0.9; + if (MODE === "ring") { + // one full turn every 45 s + render(ctx, w / 2, h / 2, size / (2 * DISC), (t / 1000) * (2 * Math.PI / 45), bits, lab.center); + } else { + const m = lab.classic[idx].modules, n = m.length, s = Math.floor(size / (n + 8)); + const x0 = (w - n * s) / 2, y0 = (h - n * s) / 2; + ctx.fillStyle = "#fff"; ctx.fillRect(x0 - 4 * s, y0 - 4 * s, (n + 8) * s, (n + 8) * s); + ctx.fillStyle = "#000"; + for (let y = 0; y < n; y++) for (let x = 0; x < n; x++) if (m[y][x] === "1") ctx.fillRect(x0 + x * s, y0 + y * s, s, s); + } + requestAnimationFrame(frame); +} +requestAnimationFrame(frame); diff --git a/tests/ringcode_cross.mjs b/tests/ringcode_cross.mjs new file mode 100644 index 0000000..dc9d24c --- /dev/null +++ b/tests/ringcode_cross.mjs @@ -0,0 +1,24 @@ +// cross check against vectors produced by the python encoder: node tests/ringcode_cross.mjs vectors.json +import { readFileSync } from "node:fs"; +import { dataBits, rsEncode, rsDecode, bytesFromBits, tokenFromPayload, SYNC } from "../static/js/ringcode.js"; + +const vectors = JSON.parse(readFileSync(process.argv[2], "utf8")); +let fails = 0; +const fail = (m) => { fails++; console.log("FAIL", m); }; +for (const v of vectors) { + const payload = [...Buffer.from(v.payload, "hex")]; + const cw = rsEncode(payload); + if (Buffer.from(cw).toString("hex") !== v.codeword) fail(`rs encode ${v.codeword}`); + if (SYNC + dataBits(cw) !== v.bits) fail(`bits ${v.token}`); + const back = bytesFromBits([...v.bits.slice(SYNC.length)].map(Number)); + const msg = rsDecode(back); + if (!msg || tokenFromPayload(msg) !== v.token) fail(`roundtrip ${v.token}`); + for (const c of v.corrupted) { + const m = rsDecode([...Buffer.from(c.cw, "hex")]); + const ok = m && tokenFromPayload(m) === v.token; + if (c.errors <= 3 && !ok) fail(`fix ${c.errors} errors ${v.token}`); + if (c.errors > 3 && ok) console.log("note: decoded beyond capacity", c.errors); + } +} +console.log(fails ? `${fails} failures` : `ok ${vectors.length} vectors`); +process.exit(fails ? 1 : 0); diff --git a/tests/test_ringcode.py b/tests/test_ringcode.py new file mode 100644 index 0000000..416f4d2 --- /dev/null +++ b/tests/test_ringcode.py @@ -0,0 +1,55 @@ +import json +import random +import shutil +import subprocess +from pathlib import Path + +import pytest + +from rotatyvote import ringcode + +ROOT = Path(__file__).resolve().parent.parent + + +def test_resolve_accepts_recent_and_rejects_others(): + secret, pid, iv = b"k" * 32, "abcd2345", 1000 + now = 3_000_000_123 + for back in range(0, 4): + tok = ringcode.token(secret, pid, iv, now - back) + assert ringcode.resolve(secret, pid, iv, tok, now, 3) == now - back + assert ringcode.resolve(secret, pid, iv, ringcode.token(secret, pid, iv, now - 5), now, 3) is None # stale + assert ringcode.resolve(secret, "otherpid", iv, ringcode.token(secret, pid, iv, now), now, 3) is None + assert ringcode.resolve(b"x" * 32, pid, iv, ringcode.token(secret, pid, iv, now), now, 3) is None + assert ringcode.resolve(secret, pid, iv, "r12.zz", now, 3) is None + # slot16 wraps every 65536 slots: a token from one wrap ago must not match + assert ringcode.resolve(secret, pid, iv, ringcode.token(secret, pid, iv, now - 65536), now, 3) is None + + +def test_bit_layout(): + bits = ringcode.render_bits(b"s" * 32, "pid", 500, 42) + assert len(bits) == sum(ringcode.RING_SECTORS) == 120 + assert bits.startswith(ringcode.SYNC) + + +@pytest.mark.skipif(shutil.which("node") is None, reason="node not installed") +def test_cross_vectors_with_js(tmp_path): + rng = random.Random(5) + vectors = [] + for _ in range(60): + secret = rng.randbytes(32) + pid = "".join(rng.choice("abcdefghjk23456789") for _ in range(8)) + slot = rng.randrange(1 << 40) + payload = ringcode.payload(secret, pid, 1000, slot) + cw = ringcode.rs_encode(payload) + corrupted = [] + for nerr in (1, 2, 3, 4): + c = bytearray(cw) + for pos in rng.sample(range(len(c)), nerr): + c[pos] ^= rng.randrange(1, 256) + corrupted.append({"errors": nerr, "cw": c.hex()}) + vectors.append({"payload": payload.hex(), "codeword": cw.hex(), "token": ringcode.token(secret, pid, 1000, slot), + "bits": ringcode.render_bits(secret, pid, 1000, slot), "corrupted": corrupted}) + f = tmp_path / "vectors.json" + f.write_text(json.dumps(vectors)) + r = subprocess.run(["node", str(ROOT / "tests" / "ringcode_cross.mjs"), str(f)], capture_output=True, text=True) + assert r.returncode == 0, r.stdout + r.stderr From a6b4b444788a52c86859798956042914853935d4 Mon Sep 17 00:00:00 2001 From: Showdown76py Date: Sun, 16 Aug 2026 18:15:22 +0100 Subject: [PATCH 2/2] Ring code v2: logo disc locator, projective rectification, animated dashes, lab pages, bench tool --- .gitignore | 1 + static/js/ringcode.js | 445 +++++++++++++++++++++++++++++++------- static/ringlab/bench.html | 118 ++++++---- static/ringlab/phone.html | 4 +- static/ringlab/phone.js | 25 +-- static/ringlab/screen.js | 2 +- tools/cdp.py | 183 ++++++++++++++++ tools/ringbench.py | 96 ++++++++ 8 files changed, 736 insertions(+), 138 deletions(-) create mode 100644 tools/cdp.py create mode 100644 tools/ringbench.py diff --git a/.gitignore b/.gitignore index d071572..cf4faf1 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,4 @@ __pycache__/ .pytest_cache/ .claude/ docs/video/ +tools/bench_out/ diff --git a/static/js/ringcode.js b/static/js/ringcode.js index 24012c9..0598c24 100644 --- a/static/js/ringcode.js +++ b/static/js/ringcode.js @@ -1,15 +1,17 @@ -// ring code: static qr in the middle + rotating rings of dashes carrying the time token. +// ring code: dark logo disc in the middle + rotating rings of dashes carrying the time token. // layout, bit order and reed-solomon params must match rotatyvote/ringcode.py // pure functions, no dom: runs in the browser and under node for the cross tests export const SYNC = "010001100101001000111111"; export const RING_SECTORS = [24, 28, 32, 36]; -// radii in units of the center qr side, qr centered on the origin -// tight rings leave more of the diameter to the center qr, which is the detection bottleneck +// code space units, centered on the origin. the solid dark center disc is what the phone looks for +export const CENTER = 0.62; export const RADII = [0.9, 1.05, 1.2, 1.35]; export const THICK = 0.105; -export const DASH = 0.74; // part of a sector covered by the dash -export const DISC = 1.5; // background disc radius +export const DISC = 1.5; // light background disc +// animation bounds: dash length and opacity breathe inside these, the data never depends on them +const LEN = [0.56, 0.86]; // part of the sector covered by the dash +const ALPHA_DARK = [0.86, 1], ALPHA_LIGHT = [0.17, 0.33]; const NSYM = 6; // gf(256), poly 0x11d, generator 2 @@ -142,76 +144,62 @@ const sectorAngle = (theta, j, n) => theta + ((j + 0.5) * 2 * Math.PI) / n; // ---- drawing (projector + bench) ---- -export function render(ctx, cx, cy, side, theta, bits, modules, colors = {}) { - const ink = colors.ink || "#1c2036", gray = colors.gray || "#a7acbd"; - ctx.fillStyle = colors.disc || "#eef0f6"; - ctx.beginPath(); ctx.arc(cx, cy, DISC * side, 0, 2 * Math.PI); ctx.fill(); - if (modules) { - const n = modules.length, q = 2, s = side / n; - ctx.fillStyle = "#fff"; - ctx.fillRect(cx - side / 2 - q * s, cy - side / 2 - q * s, side + 2 * q * s, side + 2 * q * s); - ctx.fillStyle = "#000"; - for (let y = 0; y < n; y++) for (let x = 0; x < n; x++) { - if (modules[y][x] === "1") ctx.fillRect(cx - side / 2 + x * s, cy - side / 2 + y * s, s + 0.5, s + 0.5); - } - } - const rings = ringsOf(bits); +const INK = "#1c2036"; + +function logo(ctx, cx, cy, r, t) { + // the rotaty mark in light tones on the dark disc + const n = 6, rr = r * 0.52, step = (2 * Math.PI) / n; ctx.lineCap = "round"; - ctx.lineWidth = THICK * side; - rings.forEach((ring, k) => { - const n = ring.length, r = RADII[k] * side, step = (2 * Math.PI) / n; - // round caps stick out by half the stroke, take that off the arc - const cap = (THICK * side) / 2 / r; - const half = Math.max(0.01, (step * DASH) / 2 - cap); + ctx.lineWidth = r * 0.17; + for (let j = 0; j < n; j++) { + const a = -Math.PI / 2 + j * step + t * 0.35; + ctx.strokeStyle = j === 0 ? "#ffcc00" : "#ffffff"; + ctx.beginPath(); ctx.arc(cx, cy, rr, a + step * 0.2, a + step * 0.8); ctx.stroke(); + } +} + +// deterministic per-dash phase so every dash breathes on its own rhythm +const phase = (k, j) => ((Math.sin(k * 12.9898 + j * 78.233) * 43758.5453) % 1 + 1) % 1; + +export function render(ctx, cx, cy, unit, theta, bits, t = 0) { + ctx.fillStyle = "#eef0f6"; + ctx.beginPath(); ctx.arc(cx, cy, DISC * unit, 0, 2 * Math.PI); ctx.fill(); + ctx.fillStyle = INK; + ctx.beginPath(); ctx.arc(cx, cy, CENTER * unit, 0, 2 * Math.PI); ctx.fill(); + logo(ctx, cx, cy, CENTER * unit, t); + ctx.lineCap = "round"; + ctx.lineWidth = THICK * unit; + ringsOf(bits).forEach((ring, k) => { + const n = ring.length, r = RADII[k] * unit, step = (2 * Math.PI) / n; + const cap = (THICK * unit) / 2 / r; for (let j = 0; j < n; j++) { + const ph = phase(k, j) * 2 * Math.PI, w = 0.5 + 0.5 * Math.sin(t * 1.3 + ph), w2 = 0.5 + 0.5 * Math.sin(t * 0.9 + ph * 1.7); + const len = LEN[0] + (LEN[1] - LEN[0]) * w; + const dark = ring[j] === "1"; + const [a0, a1] = dark ? ALPHA_DARK : ALPHA_LIGHT; + const half = Math.max(0.01, (step * len) / 2 - cap); const a = sectorAngle(theta, j, n) - Math.PI / 2; - ctx.strokeStyle = ring[j] === "1" ? ink : gray; + ctx.globalAlpha = a0 + (a1 - a0) * w2; + ctx.strokeStyle = INK; ctx.beginPath(); ctx.arc(cx, cy, r, a - half, a + half); ctx.stroke(); } }); + ctx.globalAlpha = 1; } // ---- decoding (phone) ---- -// homography mapping the unit qr square (-.5..+.5) onto the 4 detected corners (tl, tr, br, bl) -export function homography(c) { - const src = [[-0.5, -0.5], [0.5, -0.5], [0.5, 0.5], [-0.5, 0.5]]; - const A = [], B = []; - for (let i = 0; i < 4; i++) { - const [x, y] = src[i], { x: u, y: v } = c[i]; - A.push([x, y, 1, 0, 0, 0, -u * x, -u * y]); B.push(u); - A.push([0, 0, 0, x, y, 1, -v * x, -v * y]); B.push(v); - } - // gaussian elimination 8x8 - for (let i = 0; i < 8; i++) { - let p = i; - for (let r = i + 1; r < 8; r++) if (Math.abs(A[r][i]) > Math.abs(A[p][i])) p = r; - [A[i], A[p]] = [A[p], A[i]]; [B[i], B[p]] = [B[p], B[i]]; - if (Math.abs(A[i][i]) < 1e-12) return null; - for (let r = 0; r < 8; r++) if (r !== i) { - const f = A[r][i] / A[i][i]; - for (let k = i; k < 8; k++) A[r][k] -= f * A[i][k]; - B[r] -= f * B[i]; - } - } - const h = B.map((b, i) => b / A[i][i]); - return (x, y) => { const w = h[6] * x + h[7] * y + 1; return [(h[0] * x + h[1] * y + h[2]) / w, (h[3] * x + h[4] * y + h[5]) / w]; }; -} - export function grayOf(imageData) { const { data, width, height } = imageData, g = new Float32Array(width * height); for (let i = 0, j = 0; i < g.length; i++, j += 4) g[i] = 0.299 * data[j] + 0.587 * data[j + 1] + 0.114 * data[j + 2]; return { g, w: width, h: height }; } -function sampler(img, H) { +function bilinear(img, u, v) { const { g, w, h } = img; - return (x, y) => { - const [u, v] = H(x, y); - if (!(u >= 0 && v >= 0 && u < w - 1 && v < h - 1)) return NaN; - const x0 = u | 0, y0 = v | 0, fx = u - x0, fy = v - y0, i = y0 * w + x0; - return (g[i] * (1 - fx) + g[i + 1] * fx) * (1 - fy) + (g[i + w] * (1 - fx) + g[i + w + 1] * fx) * fy; - }; + if (!(u >= 0 && v >= 0 && u < w - 1 && v < h - 1)) return NaN; + const x0 = u | 0, y0 = v | 0, fx = u - x0, fy = v - y0, i = y0 * w + x0; + return (g[i] * (1 - fx) + g[i + 1] * fx) * (1 - fy) + (g[i + w] * (1 - fx) + g[i + w + 1] * fx) * fy; } // mean brightness of one dash: a few points across its middle @@ -269,11 +257,82 @@ function solve(A, B) { return B.map((b, i) => b / A[i][i]); } -// the qr corners are a few px off and that error grows with the radius. the rings themselves are the -// better reference: find their dark bands along rays, fit one ellipse family, undo center/scale/shear +function otsu(vals) { + const hist = new Float64Array(256); + for (const v of vals) hist[Math.max(0, Math.min(255, v | 0))]++; + let total = 0, sum = 0; + for (let i = 0; i < 256; i++) { total += hist[i]; sum += i * hist[i]; } + let wb = 0, sb = 0, best = 0, thr = 128; + for (let i = 0; i < 256; i++) { + wb += hist[i]; + if (!wb || wb === total) continue; + sb += i * hist[i]; + const mb = sb / wb, mf = (sum - sb) / (total - wb), v = wb * (total - wb) * (mb - mf) ** 2; + if (v > best) { best = v; thr = i; } + } + return thr; +} + +// candidate center discs: solid dark elliptic blobs. returns [{ cx, cy, A }] in image pixels, +// A maps code space (center disc radius CENTER) onto the ellipse, rotation left free +export function locate(img, opts = {}) { + const f = Math.max(1, Math.ceil(Math.max(img.w, img.h) / (opts.maxDim || 480))); + const w = Math.floor(img.w / f), h = Math.floor(img.h / f), small = new Float32Array(w * h); + for (let y = 0; y < h; y++) for (let x = 0; x < w; x++) { + let s = 0; + for (let dy = 0; dy < f; dy++) for (let dx = 0; dx < f; dx++) s += img.g[(y * f + dy) * img.w + x * f + dx]; + small[y * w + x] = s / (f * f); + } + const thr = otsu(small); + const label = new Int32Array(w * h).fill(-1), cands = []; + const stack = []; + for (let start = 0; start < w * h; start++) { + if (label[start] !== -1 || small[start] > thr) continue; + // flood fill one dark component, keep per-row extents + const id = cands.length, rows = new Map(); + let count = 0; + label[start] = id; stack.push(start); + while (stack.length) { + const i = stack.pop(), x = i % w, y = (i / w) | 0; + count++; + const r = rows.get(y); + if (r) { if (x < r[0]) r[0] = x; if (x > r[1]) r[1] = x; } else rows.set(y, [x, x]); + for (const j of [i - 1, i + 1, i - w, i + w]) { + if (j < 0 || j >= w * h || label[j] !== -1 || small[j] > thr) continue; + if ((j === i - 1 && x === 0) || (j === i + 1 && x === w - 1)) continue; + label[j] = id; stack.push(j); + } + } + cands.push(null); + if (count < 30 || rows.size < 6) continue; + // moments of the row-filled shape, so the light logo inside doesn't count as holes + let m0 = 0, mx = 0, my = 0, mxx = 0, myy = 0, mxy = 0; + for (const [y, [x0, x1]] of rows) { + const n = x1 - x0 + 1, sx = ((x0 + x1) * n) / 2, sxx = (x1 * (x1 + 1) * (2 * x1 + 1) - (x0 - 1) * x0 * (2 * x0 - 1)) / 6; + m0 += n; mx += sx; my += y * n; mxx += sxx; myy += y * y * n; mxy += y * sx; + } + const ux = mx / m0, uy = my / m0; + const cxx = mxx / m0 - ux * ux + 1 / 12, cyy = myy / m0 - uy * uy + 1 / 12, cxy = mxy / m0 - ux * uy; + const tr = cxx + cyy, dt = Math.sqrt(Math.max(0, ((cxx - cyy) / 2) ** 2 + cxy * cxy)); + const l1 = tr / 2 + dt, l2 = tr / 2 - dt; + if (l2 <= 0) continue; + const a = 2 * Math.sqrt(l1), b = 2 * Math.sqrt(l2); + const fill = m0 / (Math.PI * a * b), solidity = count / m0; + if (fill < 0.86 || fill > 1.14 || solidity < 0.5 || b / a < 0.38 || b < 5) continue; + const phi = 0.5 * Math.atan2(2 * cxy, cxx - cyy); + const c = Math.cos(phi), s = Math.sin(phi); + const k1 = (a * f) / CENTER, k2 = (b * f) / CENTER; + cands[id] = { cx: (ux + 0.5) * f - 0.5, cy: (uy + 0.5) * f - 0.5, A: [c * k1, -s * k2, s * k1, c * k2], area: m0 }; + } + return cands.filter(Boolean).sort((p, q) => q.area - p.area).slice(0, opts.max || 4); +} + +// the rough ellipse from the center disc is a bit off, and more so as the radius grows. +// the rings themselves are the better reference: find their dark bands along rays, +// fit one concentric ellipse family, undo center/scale/shear function refine(S) { const rows = []; - const rays = 160, r0 = 0.72, r1 = 1.48, dr = 0.005; + const rays = 160, r0 = 0.74, r1 = 1.48, dr = 0.005; for (let i = 0; i < rays; i++) { const phi = (i / rays) * 2 * Math.PI, dx = Math.sin(phi), dy = -Math.cos(phi); const prof = []; @@ -282,12 +341,12 @@ function refine(S) { const sorted = [...prof].sort((a, b) => a - b); const bg = sorted[Math.floor(sorted.length * 0.9)], lo = sorted[0]; if (bg - lo < 15) continue; - RADII.forEach((R, k) => { - const c = Math.round((R - r0) / dr), w = Math.round(0.065 / dr); + RADII.forEach((R) => { + const c = Math.round((R - r0) / dr), wdw = Math.round(0.065 / dr); let m = -1; - for (let j = Math.max(1, c - w); j <= Math.min(prof.length - 2, c + w); j++) if (m < 0 || prof[j] < prof[m]) m = j; + for (let j = Math.max(1, c - wdw); j <= Math.min(prof.length - 2, c + wdw); j++) if (m < 0 || prof[j] < prof[m]) m = j; if (m <= 0 || m >= prof.length - 1) return; - // a ray through a gap between dashes has no real dip, skip it + // a ray through a gap or a pale dash has no real dip, skip it if (bg - prof[m] < 0.4 * (bg - lo)) return; const a = prof[m - 1], b = prof[m], cc = prof[m + 1], den = a - 2 * b + cc; const off = den > 0 ? (0.5 * (a - cc)) / den : 0; @@ -302,30 +361,241 @@ function refine(S) { const sol = solve(N, V); if (!sol) return null; const [a, b, c, d, e] = sol; - const det = a * c - (b * b) / 4; - if (!(a > 0 && det > 0)) return null; - // center: grad = 0 -> [2a b; b 2c] x = -[d e] + if (!(a > 0 && a * c - (b * b) / 4 > 0)) return null; const x0 = (-d * 2 * c + e * b) / (4 * a * c - b * b), y0 = (-e * 2 * a + d * b) / (4 * a * c - b * b); - // cholesky of M = [[a, b/2], [b/2, c]] = A^T A, A upper triangular const p = Math.sqrt(a), q = b / 2 / p, s = Math.sqrt(c - q * q); - if (!(s > 0) || Math.hypot(x0, y0) > 0.15 || Math.abs(Math.log(p * s)) > 0.25) return null; - // true ring space -> measured space: m = c0 + A^-1 t + if (!(s > 0) || Math.hypot(x0, y0) > 0.2 || Math.abs(Math.log(p * s)) > 0.35) return null; const i11 = 1 / p, i12 = -q / (p * s), i22 = 1 / s; return (x, y) => S(x0 + i11 * x + i12 * y, y0 + i22 * y); } -// returns { token, theta, score, scale } or null -export function decode(img, corners, opts = {}) { - const H = homography(corners); - if (!H) return null; - const S = (opts.refine !== false && refine(sampler(img, H))) || sampler(img, H); +// ---- perspective from two concentric circles ---- +// images of concentric circles C1, C2 are conics Q1, Q2. the pencil Q1 - l*Q2 holds a rank-1 member, +// the doubled vanishing line. knowing that line undoes the projective part, the rest is affine. + +function jacobi(M) { + // eigen decomposition of a small symmetric matrix + const n = M.length, A = M.map((r) => [...r]), V = Array.from({ length: n }, (_, i) => Array.from({ length: n }, (_, j) => +(i === j))); + for (let sweep = 0; sweep < 60; sweep++) { + let off = 0; + for (let i = 0; i < n; i++) for (let j = i + 1; j < n; j++) off += A[i][j] * A[i][j]; + if (off < 1e-22) break; + for (let p = 0; p < n; p++) for (let q = p + 1; q < n; q++) { + if (Math.abs(A[p][q]) < 1e-30) continue; + const th = (A[q][q] - A[p][p]) / (2 * A[p][q]); + const t = Math.sign(th || 1) / (Math.abs(th) + Math.sqrt(th * th + 1)), c = 1 / Math.sqrt(t * t + 1), s = t * c; + for (let k = 0; k < n; k++) { + const akp = A[k][p], akq = A[k][q]; + A[k][p] = c * akp - s * akq; A[k][q] = s * akp + c * akq; + } + for (let k = 0; k < n; k++) { + const apk = A[p][k], aqk = A[q][k]; + A[p][k] = c * apk - s * aqk; A[q][k] = s * apk + c * aqk; + } + for (let k = 0; k < n; k++) { + const vkp = V[k][p], vkq = V[k][q]; + V[k][p] = c * vkp - s * vkq; V[k][q] = s * vkp + c * vkq; + } + } + } + return { values: A.map((r, i) => r[i]), vectors: V }; +} + +function fitConic(pts) { + // algebraic fit, smallest eigenvector of the scatter matrix (points already normalized) + if (pts.length < 12) return null; + const S = Array.from({ length: 6 }, () => new Array(6).fill(0)); + for (const [x, y] of pts) { + const r = [x * x, x * y, y * y, x, y, 1]; + for (let i = 0; i < 6; i++) for (let j = 0; j < 6; j++) S[i][j] += r[i] * r[j]; + } + const { values, vectors } = jacobi(S); + let k = 0; + for (let i = 1; i < 6; i++) if (values[i] < values[k]) k = i; + const [a, b, c, d, e, f] = vectors.map((row) => row[k]); + return [[a, b / 2, d / 2], [b / 2, c, e / 2], [d / 2, e / 2, f]]; +} + +const det3 = (m) => m[0][0] * (m[1][1] * m[2][2] - m[1][2] * m[2][1]) - m[0][1] * (m[1][0] * m[2][2] - m[1][2] * m[2][0]) + m[0][2] * (m[1][0] * m[2][1] - m[1][1] * m[2][0]); +const sub3 = (A, B, l) => A.map((r, i) => r.map((v, j) => v - l * B[i][j])); +function inv3(m) { + const d = det3(m); + if (Math.abs(d) < 1e-30) return null; + const c = (i, j) => { + const r = [0, 1, 2].filter((k) => k !== i), q = [0, 1, 2].filter((k) => k !== j); + return ((i + j) % 2 ? -1 : 1) * (m[r[0]][q[0]] * m[r[1]][q[1]] - m[r[0]][q[1]] * m[r[1]][q[0]]); + }; + return [0, 1, 2].map((i) => [0, 1, 2].map((j) => c(j, i) / d)); +} +const mul3 = (A, B) => A.map((r) => [0, 1, 2].map((j) => r[0] * B[0][j] + r[1] * B[1][j] + r[2] * B[2][j])); +const tr3 = (A) => [0, 1, 2].map((i) => [0, 1, 2].map((j) => A[j][i])); + +function cubicRoots(a, b, c, d) { + // real roots of a x^3 + b x^2 + c x + d + b /= a; c /= a; d /= a; + const p = c - (b * b) / 3, q = (2 * b * b * b) / 27 - (b * c) / 3 + d, disc = (q * q) / 4 + (p * p * p) / 27; + if (disc > 0) { + const u = Math.cbrt(-q / 2 + Math.sqrt(disc)), v = Math.cbrt(-q / 2 - Math.sqrt(disc)); + // near a double root the pair turns complex with noise: report its real part twice + return [u + v - b / 3, -(u + v) / 2 - b / 3, -(u + v) / 2 - b / 3]; + } + const r = 2 * Math.sqrt(-p / 3), phi = Math.acos(Math.max(-1, Math.min(1, (3 * q) / (p * r)))); + return [0, 1, 2].map((k) => r * Math.cos(phi / 3 - (2 * Math.PI * k) / 3) - b / 3); +} + +// image points on the center disc edge and on each ring, following rays of the rough affine map +function edgePoints(img, cand) { + const [a11, a12, a21, a22] = cand.A; + const map = (x, y) => [cand.cx + a11 * x + a12 * y, cand.cy + a21 * x + a22 * y]; + const at = (x, y) => { const [u, v] = map(x, y); return bilinear(img, u, v); }; + const disc = [], rings = RADII.map(() => []), rays = 160; + for (let i = 0; i < rays; i++) { + const phi = (i / rays) * 2 * Math.PI, dx = Math.sin(phi), dy = -Math.cos(phi); + // disc edge: strongest dark-to-light step between 0.42 and 0.8 + let best = 0, br = 0; + const prof = []; + for (let r = 0.4; r <= 0.82; r += 0.005) prof.push(at(r * dx, r * dy)); + if (!prof.some(Number.isNaN)) { + for (let j = 2; j < prof.length - 2; j++) { + const gstep = prof[j + 2] - prof[j - 2]; + if (gstep > best) { best = gstep; br = 0.4 + j * 0.005; } + } + if (best > 20) disc.push(map(br * dx, br * dy)); + } + // rings: darkest point around each radius, only when it is a clear dip (a dark dash) + RADII.forEach((R, k) => { + const op = [], span = 0.07; + for (let r = R - span; r <= R + span + 1e-9; r += 0.004) op.push(at(r * dx, r * dy)); + if (op.some(Number.isNaN)) return; + let m = 0; + for (let j = 1; j < op.length; j++) if (op[j] < op[m]) m = j; + const edge = Math.max(op[0], op[op.length - 1]); + if (m > 1 && m < op.length - 2 && edge - op[m] > 35) { + const a = op[m - 1], b = op[m], c = op[m + 1], den = a - 2 * b + c; + const off = den > 0 ? (0.5 * (a - c)) / den : 0; + const r = R - span + (m + off) * 0.004; + rings[k].push(map(r * dx, r * dy)); + } + }); + } + return { disc, rings }; +} + +// center of a conic (3x3 symmetric), in its own coordinates +function conicCenter(Q) { + const d = Q[0][0] * Q[1][1] - Q[0][1] * Q[1][0]; + if (Math.abs(d) < 1e-18) return null; + return [-(Q[1][1] * Q[0][2] - Q[0][1] * Q[1][2]) / d, -(-Q[1][0] * Q[0][2] + Q[0][0] * Q[1][2]) / d]; +} + +function nelderMead(f, x0, step, iters) { + let pts = [x0, [x0[0] + step, x0[1]], [x0[0], x0[1] + step]].map((x) => ({ x, v: f(x) })); + for (let it = 0; it < iters; it++) { + pts.sort((a, b) => a.v - b.v); + const [b, g, w] = pts, c = [(b.x[0] + g.x[0]) / 2, (b.x[1] + g.x[1]) / 2]; + const at = (t) => [c[0] + t * (w.x[0] - c[0]), c[1] + t * (w.x[1] - c[1])]; + const r = { x: at(-1) }; r.v = f(r.x); + if (r.v < b.v) { const e = { x: at(-2) }; e.v = f(e.x); pts[2] = e.v < r.v ? e : r; } + else if (r.v < g.v) pts[2] = r; + else { const k = { x: at(0.5) }; k.v = f(k.x); if (k.v < w.v) pts[2] = k; else pts = [b, ...[g, w].map((p) => { const x = [(p.x[0] + b.x[0]) / 2, (p.x[1] + b.x[1]) / 2]; return { x, v: f(x) }; })]; } + } + pts.sort((a, b) => a.v - b.v); + return pts[0].x; +} + +// projective map code space -> image from the two conics, or null +export let lastProjective = null; +function projective(img, cand) { + const { disc, rings } = edgePoints(img, cand); + const outer = rings[rings.length - 1]; + lastProjective = { disc: disc.length, rings: rings.map((r) => r.length), stage: 'points' }; + if (disc.length < 40 || outer.length < 30) return null; + // normalize coordinates for a well conditioned fit + const all = [disc, ...rings].flat(); + const mx = all.reduce((s, p) => s + p[0], 0) / all.length, my = all.reduce((s, p) => s + p[1], 0) / all.length; + const sc = Math.sqrt(all.reduce((s, p) => s + (p[0] - mx) ** 2 + (p[1] - my) ** 2, 0) / all.length) || 1; + const nrm = (p) => [(p[0] - mx) / sc, (p[1] - my) / sc]; + const Q1 = fitConic(disc.map(nrm)), Q2 = fitConic(outer.map(nrm)); + if (!Q1 || !Q2) return null; + // for concentric circles C1 C2^-1 = diag(1, 1, r1^2/r2^2): its simple eigenvalue belongs to the + // line at infinity. in the image that eigenvector of Q1 Q2^-1 is the vanishing line (stable, unlike the double one) + const Q2i = inv3(Q2); + if (!Q2i) return null; + const N = mul3(Q1, Q2i); + const tr = N[0][0] + N[1][1] + N[2][2]; + const minors = N[0][0] * N[1][1] - N[0][1] * N[1][0] + N[0][0] * N[2][2] - N[0][2] * N[2][0] + N[1][1] * N[2][2] - N[1][2] * N[2][1]; + const roots = cubicRoots(1, -tr, minors, -det3(N)); + let mu = roots[0], gap = -1; + for (let i = 0; i < 3; i++) { + const g = Math.min(...roots.filter((_, j) => j !== i).map((r) => Math.abs(r - roots[i]))); + if (g > gap) { gap = g; mu = roots[i]; } + } + lastProjective.roots = roots; lastProjective.stage = 'roots'; + // left eigenvector: l^T (N - mu I) = 0, so l is orthogonal to the columns of (N - mu I) + const Mt = tr3(sub3(N, [[1, 0, 0], [0, 1, 0], [0, 0, 1]], mu)); + const cross = (u, v) => [u[1] * v[2] - u[2] * v[1], u[2] * v[0] - u[0] * v[2], u[0] * v[1] - u[1] * v[0]]; + let l = null, ln = 0; + for (const [i, j] of [[0, 1], [0, 2], [1, 2]]) { + const c = cross(Mt[i], Mt[j]), n = Math.hypot(...c); + if (n > ln) { ln = n; l = c; } + } + if (!l || Math.abs(l[2]) < 1e-9) return null; + l = l.map((v) => v / l[2]); + lastProjective.l = l; lastProjective.stage = 'line'; + // rectify: P maps the vanishing line to infinity + const P = [[1, 0, 0], [0, 1, 0], l]; + const Pi = inv3(P); + if (!Pi) return null; + const Q1r = mul3(tr3(Pi), mul3(Q1, Pi)); + // Q1r is now an ellipse: x^T M x + 2 g.x + f = 0 + const M = [[Q1r[0][0], Q1r[0][1]], [Q1r[1][0], Q1r[1][1]]], g = [Q1r[0][2], Q1r[1][2]], f = Q1r[2][2]; + const dm = M[0][0] * M[1][1] - M[0][1] * M[1][0]; + if (Math.abs(dm) < 1e-18) return null; + const c0 = [-(M[1][1] * g[0] - M[0][1] * g[1]) / dm, -(-M[1][0] * g[0] + M[0][0] * g[1]) / dm]; + const kk = -(f + g[0] * c0[0] + g[1] * c0[1]); + // (x-c0)^T (M/kk) (x-c0) = 1 is the disc: scale so it becomes radius CENTER + let a = M[0][0] / kk, b = M[0][1] / kk, c = M[1][1] / kk; + if (a < 0) { a = -a; b = -b; c = -c; } + lastProjective.ellipse = [a, b, c]; lastProjective.stage = 'ellipse'; + if (!(a > 0 && a * c - b * b > 0)) return null; + lastProjective.stage = 'ok'; + const p = Math.sqrt(a), q = b / p, s = Math.sqrt(c - q * q); + // affine from code space (radius CENTER) into the rectified plane: x = c0 + B t, B = (A^-1) / CENTER + const B = [[1 / p / CENTER, -q / (p * s) / CENTER], [0, 1 / s / CENTER]]; + const map = (x, y) => { + const u = c0[0] + B[0][0] * x + B[0][1] * y, v = c0[1] + B[1][1] * y; + const w = Pi[2][0] * u + Pi[2][1] * v + Pi[2][2]; + const X = (Pi[0][0] * u + Pi[0][1] * v + Pi[0][2]) / w, Y = (Pi[1][0] * u + Pi[1][1] * v + Pi[1][2]) / w; + return [X * sc + mx, Y * sc + my]; + }; + lastProjective.map = map; + return (x, y) => { const [u, v] = map(x, y); return bilinear(img, u, v); }; +} + +// reads one candidate. returns { token, theta, score, scale } or { token: null, ... } or null. +// tries the projective geometry (better under tilt) and the plain affine one (safer on soft frames) +export function decodeAt(img, cand, opts = {}) { + const [a11, a12, a21, a22] = cand.A; + const affine = (x, y) => bilinear(img, cand.cx + a11 * x + a12 * y, cand.cy + a21 * x + a22 * y); + const maps = [opts.projective !== false && projective(img, cand), affine].filter(Boolean); + let best = null; + for (const S0 of maps) { + const S = (opts.refine !== false && refine(S0)) || S0; + const r = readRings(S, opts); + if (r && r.token) return r; + if (r && (!best || r.score > best.score)) best = r; + } + return best; +} + +function readRings(S, opts) { const steps = opts.steps || 360, minScore = opts.minScore ?? 0.8; let best = null; - for (const scale of opts.scales || [0.94, 0.97, 1.0, 1.03, 1.06]) { + for (const scale of opts.scales || [0.95, 0.975, 1.0, 1.025, 1.05]) { const r0 = RADII[0] * scale, n0 = RING_SECTORS[0], step0 = (2 * Math.PI) / n0; // full turn: the sync pattern has no rotational symmetry for (let t = 0; t < steps; t++) { - const theta = (t / steps) * step0 * n0; + const theta = (t / steps) * 2 * Math.PI; const vals = []; for (let j = 0; j < n0; j++) vals.push(sector(S, r0, sectorAngle(theta, j, n0), step0)); if (vals.some(Number.isNaN)) return null; @@ -337,12 +607,11 @@ export function decode(img, corners, opts = {}) { if (!best || best.score < minScore) return best ? { token: null, ...best } : null; const dark = [], light = []; best.vals.forEach((v, j) => (SYNC_BITS[j] ? dark : light).push(v)); - const md = dark.reduce((a, b) => a + b) / dark.length, ml = light.reduce((a, b) => a + b) / light.length; + const md = dark.reduce((x, y) => x + y) / dark.length, ml = light.reduce((x, y) => x + y) / light.length; if (ml - md < 12) return { token: null, ...best }; const bits = []; for (let k = 1; k < RING_SECTORS.length; k++) { - // corners come from the small center square, so outer rings drift under perspective: - // nudge scale and rotation per ring and keep the cleanest dark/light split + // nudge scale and rotation per ring (perspective is only approximated) and keep the cleanest split const n = RING_SECTORS[k], step = (2 * Math.PI) / n; let pick = null; for (const ds of [-0.03, -0.015, 0, 0.015, 0.03]) for (const dt of [-0.22, 0, 0.22]) { @@ -356,5 +625,17 @@ export function decode(img, corners, opts = {}) { for (const v of pick.vals) bits.push(v < pick.thr ? 1 : 0); } const msg = rsDecode(bytesFromBits(bits)); - return { ...best, bits: bits.join(""), token: msg ? tokenFromPayload(msg) : null }; + return { ...best, vals: undefined, bits: bits.join(""), token: msg ? tokenFromPayload(msg) : null }; +} + +// whole frame: find center discs, read the first one that yields a valid token +export function decodeFrame(img, opts = {}) { + const cands = locate(img, opts); + let last = null; + for (const c of cands) { + const r = decodeAt(img, c, opts); + if (r && r.token) return { ...r, cand: c, found: cands.length }; + last = r || last; + } + return { token: null, found: cands.length, score: last?.score ?? null }; } diff --git a/static/ringlab/bench.html b/static/ringlab/bench.html index 1d9f34c..fa239b3 100644 --- a/static/ringlab/bench.html +++ b/static/ringlab/bench.html @@ -3,7 +3,8 @@ Ring code bench diff --git a/static/ringlab/phone.html b/static/ringlab/phone.html index b22aca1..838525d 100644 --- a/static/ringlab/phone.html +++ b/static/ringlab/phone.html @@ -9,8 +9,8 @@
Images analysées0
Images par seconde0
-
QR central détecté0 %
-
Anneaux lus (si QR vu)0 %
+
Disque central repéré0 %
+
Images lues0 %
Codes distincts0 / 5
Mode vuaucun
diff --git a/static/ringlab/phone.js b/static/ringlab/phone.js index d32daf7..101a048 100644 --- a/static/ringlab/phone.js +++ b/static/ringlab/phone.js @@ -1,4 +1,4 @@ -import { decode, grayOf } from "/static/js/ringcode.js"; +import { decodeFrame, grayOf } from "/static/js/ringcode.js"; const $ = (id) => document.getElementById(id); const video = $("v"), canvas = document.createElement("canvas"), ctx = canvas.getContext("2d", { willReadFrequently: true }); @@ -31,18 +31,15 @@ async function loop() { canvas.height = Math.round(video.videoHeight * k); ctx.drawImage(video, 0, 0, canvas.width, canvas.height); frames++; fpsN++; - let res = null; - try { res = await QrScanner.scanImage(canvas, { qrEngine: engine, returnDetailedScanResult: true }); } catch { /* none */ } - if (res) { - qr++; - if (res.data.includes("#")) { - mode = "QR classique"; - tokens.add(res.data.split("#")[1]); - } else { - mode = "anneaux"; - const d = decode(grayOf(ctx.getImageData(0, 0, canvas.width, canvas.height)), res.cornerPoints); - if (d && d.token) { ring++; tokens.add(d.token); } - } + const img = grayOf(ctx.getImageData(0, 0, canvas.width, canvas.height)); + const d = decodeFrame(img); + if (d.found) qr++; + if (d.token) { ring++; mode = "anneaux"; tokens.add(d.token); } + else if (mode !== "anneaux") { + // reference mode: the classic rotating qr + let res = null; + try { res = await QrScanner.scanImage(canvas, { qrEngine: engine, returnDetailedScanResult: true }); } catch { /* none */ } + if (res && res.data.includes("#")) { mode = "QR classique"; tokens.add(res.data.split("#")[1]); } } if (tokens.size >= 5 && t0) { const s = (performance.now() - t0) / 1000; @@ -55,7 +52,7 @@ async function loop() { if (now - fpsT > 1000) { $("fps").textContent = (fpsN * 1000 / (now - fpsT)).toFixed(1); fpsT = now; fpsN = 0; } $("frames").textContent = frames; $("qr").textContent = `${Math.round((100 * qr) / Math.max(1, frames))} %`; - $("ring").textContent = mode === "anneaux" ? `${Math.round((100 * ring) / Math.max(1, qr))} %` : "–"; + $("ring").textContent = `${Math.round((100 * ring) / Math.max(1, frames))} %`; $("count").textContent = `${Math.min(tokens.size, 5)} / 5`; $("mode").textContent = mode; } diff --git a/static/ringlab/screen.js b/static/ringlab/screen.js index effb7a8..5dee557 100644 --- a/static/ringlab/screen.js +++ b/static/ringlab/screen.js @@ -29,7 +29,7 @@ function frame(t) { const size = Math.min(w, h) * 0.9; if (MODE === "ring") { // one full turn every 45 s - render(ctx, w / 2, h / 2, size / (2 * DISC), (t / 1000) * (2 * Math.PI / 45), bits, lab.center); + render(ctx, w / 2, h / 2, size / (2 * DISC), (t / 1000) * (2 * Math.PI / 45), bits, t / 1000); } else { const m = lab.classic[idx].modules, n = m.length, s = Math.floor(size / (n + 8)); const x0 = (w - n * s) / 2, y0 = (h - n * s) / 2; diff --git a/tools/cdp.py b/tools/cdp.py new file mode 100644 index 0000000..67bff06 --- /dev/null +++ b/tools/cdp.py @@ -0,0 +1,183 @@ +"""tiny chrome devtools protocol client: headless chrome, pages, eval, screencast""" +import asyncio +import base64 +import itertools +import json +import os +import shutil +import subprocess +import tempfile +import time +import urllib.request + +import websockets + +CHROME = "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome" + + +class Browser: + def __init__(self, port=9333): + self.port = port + self.ids = itertools.count(1) + self.pending = {} + self.listeners = {} + + async def start(self): + self.profile = tempfile.mkdtemp(prefix="rv-chrome-") + self.proc = subprocess.Popen([ + CHROME, "--headless=new", f"--remote-debugging-port={self.port}", f"--user-data-dir={self.profile}", + "--no-first-run", "--no-default-browser-check", "--hide-scrollbars", "--mute-audio", + "--disable-background-timer-throttling", "--disable-renderer-backgrounding", + "--disable-backgrounding-occluded-windows", "--use-fake-ui-for-media-stream", + "--force-color-profile=srgb", "--window-size=1920,1080", "about:blank", + ], stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL) + for _ in range(100): + try: + info = json.load(urllib.request.urlopen(f"http://127.0.0.1:{self.port}/json/version")) + break + except OSError: + await asyncio.sleep(0.1) + self.ws = await websockets.connect(info["webSocketDebuggerUrl"], max_size=None) + self.reader = asyncio.create_task(self._read()) + + async def _read(self): + async for raw in self.ws: + m = json.loads(raw) + if "id" in m: + fut = self.pending.pop(m["id"], None) + if fut and not fut.done(): + if "error" in m: + fut.set_exception(RuntimeError(m["error"])) + else: + fut.set_result(m.get("result", {})) + else: + cb = self.listeners.get(m.get("sessionId")) + if cb: + cb(m["method"], m.get("params", {})) + + async def send(self, method, params=None, session=None): + i = next(self.ids) + fut = asyncio.get_running_loop().create_future() + self.pending[i] = fut + msg = {"id": i, "method": method, "params": params or {}} + if session: + msg["sessionId"] = session + await self.ws.send(json.dumps(msg)) + return await asyncio.wait_for(fut, 60) + + async def page(self, width, height, dsf=1, mobile=False): + tid = (await self.send("Target.createTarget", {"url": "about:blank", "newWindow": True}))["targetId"] + sid = (await self.send("Target.attachToTarget", {"targetId": tid, "flatten": True}))["sessionId"] + p = Page(self, sid, width, height, dsf) + self.listeners[sid] = p._event + for m in ("Page.enable", "Runtime.enable"): + await p.send(m) + await p.send("Page.setBypassCSP", {"enabled": True}) + await p.send("Emulation.setFocusEmulationEnabled", {"enabled": True}) + await p.send("Emulation.setDeviceMetricsOverride", + {"width": width, "height": height, "deviceScaleFactor": dsf, "mobile": mobile}) + if mobile: + await p.send("Emulation.setTouchEmulationEnabled", {"enabled": True, "maxTouchPoints": 5}) + return p + + async def close(self): + try: + await asyncio.wait_for(self.send("Browser.close"), 5) + except Exception: + pass + try: + self.proc.wait(5) + except Exception: + self.proc.kill() + shutil.rmtree(self.profile, ignore_errors=True) + + +class Page: + def __init__(self, browser, sid, w, h, dsf): + self.b, self.sid, self.w, self.h, self.dsf = browser, sid, w, h, dsf + self.load = None + self.frames = None + + def send(self, method, params=None): + return self.b.send(method, params, self.sid) + + def _event(self, method, params): + if method == "Page.loadEventFired" and self.load and not self.load.done(): + self.load.set_result(True) + elif method == "Page.screencastFrame": + if self.frames is not None: + ts = params["metadata"].get("timestamp", time.time()) + path = os.path.join(self.frame_dir, f"{len(self.frames):06d}.jpg") + with open(path, "wb") as f: + f.write(base64.b64decode(params["data"])) + self.frames.append((ts, path)) + asyncio.get_running_loop().create_task( + self.send("Page.screencastFrameAck", {"sessionId": params["sessionId"]})) + + async def goto(self, url): + self.load = asyncio.get_running_loop().create_future() + await self.send("Page.navigate", {"url": url}) + await asyncio.wait_for(self.load, 20) + + async def js(self, expr): + r = await self.send("Runtime.evaluate", {"expression": expr, "awaitPromise": True, "returnByValue": True}) + if "exceptionDetails" in r: + raise RuntimeError(r["exceptionDetails"].get("exception", {}).get("description", r["exceptionDetails"])) + return r.get("result", {}).get("value") + + async def on_new_document(self, source): + await self.send("Page.addScriptToEvaluateOnNewDocument", {"source": source}) + + async def record(self, frame_dir): + os.makedirs(frame_dir, exist_ok=True) + self.frame_dir = frame_dir + self.frames = [] + await self.send("Page.startScreencast", {"format": "jpeg", "quality": 90, + "maxWidth": int(self.w * self.dsf), "maxHeight": int(self.h * self.dsf)}) + + async def stop(self): + if getattr(self, "shooter", None): + self.shooting = False + try: + await asyncio.wait_for(self.shooter, 3) + except Exception: + self.shooter.cancel() + else: + try: + await asyncio.wait_for(self.send("Page.stopScreencast"), 3) + except Exception: + pass + + async def record_shots(self, frame_dir, fps=24): + """screenshot polling: slower than screencast but honours deviceScaleFactor""" + os.makedirs(frame_dir, exist_ok=True) + self.frames, self.shooting = [], True + + async def loop(): + while self.shooting: + t = time.time() + r = await self.send("Page.captureScreenshot", {"format": "jpeg", "quality": 90}) + path = os.path.join(frame_dir, f"{len(self.frames):06d}.jpg") + with open(path, "wb") as f: + f.write(base64.b64decode(r["data"])) + self.frames.append((t, path)) + await asyncio.sleep(max(0, 1 / fps - (time.time() - t))) + self.shooter = asyncio.get_running_loop().create_task(loop()) + + async def png(self, path, transparent=False): + if transparent: + await self.send("Emulation.setDefaultBackgroundColorOverride", {"color": {"r": 0, "g": 0, "b": 0, "a": 0}}) + r = await self.send("Page.captureScreenshot", {"format": "png"}) + with open(path, "wb") as f: + f.write(base64.b64decode(r["data"])) + + async def mouse(self, kind, x, y, button="left", clicks=1): + await self.send("Input.dispatchMouseEvent", + {"type": kind, "x": x, "y": y, "button": button, "clickCount": clicks}) + + async def type(self, text, rng, target="document.activeElement"): + # write into the field directly: focus can drift between headless targets while screenshotting + await self.js(f"window.__tt = {target}; __tt.focus()") + for ch in text: + await self.js("__tt.value += " + json.dumps(ch) + "; __tt.dispatchEvent(new Event('input', {bubbles: true}))") + await asyncio.sleep(rng.uniform(0.05, 0.14) + (0.18 if ch == " " and rng.random() < 0.2 else 0)) diff --git a/tools/ringbench.py b/tools/ringbench.py new file mode 100644 index 0000000..d0dda1b --- /dev/null +++ b/tools/ringbench.py @@ -0,0 +1,96 @@ +"""ring code bench: renders codes with perspective, blur, washed contrast and clutter in headless chrome, +runs the real decoder and prints read rates. usage: uv run python tools/ringbench.py [trials per cell]""" +import asyncio +import base64 +import collections +import itertools +import json +import os +import random +import subprocess +import sys +from pathlib import Path + +import httpx + +ROOT = Path(__file__).resolve().parent.parent +sys.path.insert(0, str(ROOT)) +sys.path.insert(0, str(ROOT / "tools")) +from cdp import Browser # noqa: E402 +from rotatyvote import ringcode # noqa: E402 + +PORT = 8200 +rng = random.Random(11) + + +def trials(n): + out = [] + grid = itertools.product([560, 420, 320, 250, 200], [0, 20, 35], [0, 1.2, 2.2], [(1.0, 1.0), (0.55, 1.12)]) + for d, tilt, blur, (contrast, bright) in grid: + for _ in range(n): + secret, slot = rng.randbytes(32), rng.randrange(1 << 36) + out.append({"d": d, "tilt": tilt, "axis": rng.uniform(0, 360), "blur": blur, "contrast": contrast, + "bright": bright, "noise": 7, "dx": rng.uniform(-80, 80), "dy": rng.uniform(-50, 50), + "theta": rng.uniform(0, 6.283), "anim": rng.uniform(0, 100), + "bits": ringcode.render_bits(secret, "abcdefgh", 1000, slot), + "token": ringcode.token(secret, "abcdefgh", 1000, slot)}) + # harsh perspective (phone very close to the screen), for information + for _ in range(n * 6): + secret, slot = rng.randbytes(32), rng.randrange(1 << 36) + out.append({"d": 420, "tilt": 25, "axis": rng.uniform(0, 360), "blur": 0.6, "contrast": 1, "bright": 1, "noise": 7, + "dx": 0, "dy": 0, "theta": rng.uniform(0, 6.283), "anim": rng.uniform(0, 100), "dist": 1.6, "harsh": True, + "bits": ringcode.render_bits(secret, "abcdefgh", 1000, slot), "token": ringcode.token(secret, "abcdefgh", 1000, slot)}) + for _ in range(40): + out.append({"nocode": True, "d": 0, "tilt": 0, "blur": rng.choice([0, 1.2]), "contrast": 1, "bright": 1, "noise": 7}) + return out + + +async def main(): + n = int(sys.argv[1]) if len(sys.argv) > 1 else 3 + env = {**os.environ, "PORT": str(PORT), "HOST": "127.0.0.1", "DB_PATH": "/tmp/rv-bench.db"} + server = subprocess.Popen([sys.executable, "-m", "rotatyvote"], cwd=ROOT, env=env, + stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL) + try: + for _ in range(100): + try: + httpx.get(f"http://127.0.0.1:{PORT}/api/config", timeout=0.5) + break + except httpx.HTTPError: + await asyncio.sleep(0.1) + b = Browser(9336) + await b.start() + p = await b.page(960, 720) + await p.goto(f"http://127.0.0.1:{PORT}/static/ringlab/bench.html") + for _ in range(50): + if await p.js("!!window.benchReady"): + break + await asyncio.sleep(0.1) + ts = trials(n) + res = await p.js(f"runBench({json.dumps({'trials': ts, 'keep': 4})})") + harsh = [r for r in res if r.get("harsh")] + print(f"harsh perspective (close-up, 25 deg): {sum(r['ok'] for r in harsh)}/{len(harsh)}") + codes = [r for r in res if not r.get("nocode") and not r.get("harsh")] + for key in ("d", "tilt", "blur", "contrast"): + agg = collections.defaultdict(lambda: [0, 0, 0]) + for r in codes: + a = agg[r[key]] + a[0] += 1; a[1] += (r["found"] or 0) > 0; a[2] += r["ok"] + print(f"{key:8s}", " ".join(f"{k}: ok {v[2]}/{v[0]}" for k, v in sorted(agg.items()))) + ok = sum(r["ok"] for r in codes) + print(f"codes read {ok}/{len(codes)} ({100 * ok / len(codes):.0f} %), median {sorted(r['ms'] for r in codes)[len(codes) // 2]} ms/frame") + fails = [r for r in codes if not r["ok"]] + print("failures (d, tilt, blur, contrast, found, score, errs):", + [(r["d"], r["tilt"], r["blur"], r["contrast"], r["found"], r["score"], r.get("errs")) for r in fails[:16]]) + wrong = [r for r in res if r["token"] and not r["ok"]] + print("false tokens:", len(wrong), "(no-code frames:", sum(1 for r in res if r.get("nocode")), ")") + out = ROOT / "tools" / "bench_out" + out.mkdir(exist_ok=True) + for i, r in enumerate(res[:4]): + if r.get("png"): + (out / f"sample_{i}.jpg").write_bytes(base64.b64decode(r["png"].split(",")[1])) + await b.close() + finally: + server.terminate() + + +asyncio.run(main())